(()=>{var e={3261:(e,n,t)=>{"use strict";t.d(n,{g5:()=>f,BI:()=>v,Ft:()=>w});var o=t(4617),a=t(2834);function r(e,n){try{return JSON.parse(e)}catch(t){return(0,a.BI)("EVError",t,`Bad-JSON-${null==n?void 0:n.className}-${null==n?void 0:n.tagName}-${null==n?void 0:n.id}-${location.pathname}-${e}`),null}}const i=dataLayer[0];function c(){var e,n;return(null===(e=window.crypto)||void 0===e||null===(n=e.randomUUID)||void 0===n?void 0:n.call(e))||(()=>{const e=Date.now().toString()+Math.random().toString().substr(2),n=(0,o.A)(e,0).toString(16).padStart(8,"0"),t=(0,o.A)(e,1).toString(16).padStart(8,"0"),a=(0,o.A)(e,2).toString(16).padStart(8,"0"),r=(0,o.A)(e,3).toString(16).padStart(8,"0");return`${n}-${t.substring(0,4)}-${t.substring(4,8)}-${a.substring(0,4)}-${a.substring(4)+r}`})()}const l=document.referrer?new URL(document.referrer):{},d=()=>{var e,n,t,o;return{timestampLocal:(new Date).toISOString(),sessionId:(0,a.v8)("_sessionId"),locationPathname:window.location.pathname,locationHostname:window.location.hostname,locationSearch:window.location.search||null,referrerPathname:(null==l?void 0:l.pathname)||null,referrerHostname:(null==l?void 0:l.hostname)||null,referrerSearch:(null==l?void 0:l.search)||null,documentTitle:document.title,pageType:(null===(e=i.page)||void 0===e?void 0:e.type)||null,pageId:(null===(n=i.page)||void 0===n?void 0:n.id)||null,loggedIn:null===(t=i.user)||void 0===t?void 0:t.loggedIn,twinklid:(null===(o=i.user)||void 0===o?void 0:o.twinklid)||null,browserViewport:window.innerWidth+"x"+window.innerHeight,experiments:window.babData?Object.entries(babData).map((e=>({name:window.atob(e[0]),variantIndex:e[1].v,variantName:window.atob(e[1].a[e[1].v])}))):null}},s=()=>{var e,n,t,o;const r=null!==(e=i.user)&&void 0!==e&&e.subscription&&!Array.isArray(i.user.subscription)?i.user.subscription:null;return{userAgent:navigator.userAgent,screenResolution:window.screen.width+"x"+window.screen.height,browserLang:navigator.language,serverGeo:i.geo,browserId:(0,a.v8)("twinkl_zz"),userAccountCreateDate:(null===(n=i.user)||void 0===n?void 0:n.userAccountCreateDate)||null,subBundle:r&&(null==r||null===(t=r.bundle)||void 0===t?void 0:t.name)||null,subType:r&&(null==r?void 0:r.type_id)||null,subOfferCode:r&&(null==r?void 0:r.offer_code)||null,sub_id:r&&(null==r?void 0:r.sub_id)||null,county_id:(null===(o=i.user)||void 0===o?void 0:o.county_id)||null,...Object.assign({},...g.filter((e=>"twinklid"!==e.name)).map((e=>{var n={};return n[e.mapName?e.mapName:e.name]=dataLayer[0].user[e.name]||null,n})))}};let u=[];function p(e,...n){try{var t;"sessionStart"!==e&&function(){if((0,a.v8)("_sessionId"))(0,a.n0)("_sessionId",(0,a.v8)("_sessionId"),null,1800);else{(0,a.n0)("_sessionId",c(),null,1800);const e=(0,o.A)(JSON.stringify(s()));window.localStorage.setItem("_sessionState",e),p("sessionStart",s,d)}}();const r=n.reduce(((e,n)=>"function"!=typeof n?e:Object.assign(e,n())),{}),i=null===(t=Object.keys(r))||void 0===t?void 0:t.sort(),l=(0,o.A)(JSON.stringify(i),0);Object.assign(r,{versionId:l});let m=(new Date).toISOString(),h={specversion:"1.0",type:`com.twinkl.${e}`,id:c(),source:window.location.hostname,time:m,data:r};u.push(h),u.length>8&&y()}catch(e){v("ABError",e,"helpers-addAnalyticsHit")}}const m=e=>Object.entries(e).map((e=>e.map(encodeURIComponent).join("="))).join("&"),h=(e,n="_et")=>{let t=JSON.parse(window.sessionStorage.getItem(n))||[];t.push(m(e)),window.sessionStorage.setItem("_et",window.JSON.stringify(t))};let g=[{name:"twinklid",shortName:"td"},{name:"loggedIn",shortName:"lo"},{name:"type",shortName:"t",mapName:"subStatus"},{name:"schoolAccount",shortName:"sa"},{name:"career_id",shortName:"ca"},{name:"country_id",shortName:"co"},{name:"language_id",shortName:"la"}];async function y(e=!1){if(u&&u.length>0&&(!e&&window.navigator.sendBeacon||e&&window.fetch))try{const t=(0,a.v8)("twinkl_ev_enabled")&&/^web\-devfe01\.twinkl/.test(window.location.hostname)?"https://ev.twinkl.co.uk/staging/":"https://ev.twinkl.co.uk";u.forEach((e=>{Object.assign(e.data,{timestampSent:(new Date).toISOString()})}));const o=JSON.stringify(u);if(e)try{(await window.fetch(t,{method:"POST",headers:{"Content-Type":"text/html"},body:o})).ok?u=[]:v("EVError","response not OK","analytics-fetch-response Error")}catch(e){v("EVError",e,"analytics-fetch-wrapper Error")}else try{var n;(null===(n=window.navigator)||void 0===n?void 0:n.sendBeacon(t,o))?u=[]:v("EVError","failed to queue","analytics-sendBeacon failed to queue")}catch(e){v("EVError",e,-1===navigator.sendBeacon.toString().indexOf("[native code]")?"cro-analytics-sendBeacon Monkey Patched":"cro-analytics-sendBeacon Error")}}catch(e){v("EVError",e,"sendAnalytics Error")}}function w(){var e,n,t,o;if(/local/.test(window.location.hostname)||/^web\-devfe01\.twinkl|local/.test(window.location.hostname)&&!(0,a.v8)("twinkl_ev_enabled"))return!1;document.body.addEventListener("click",(e=>{try{const t=e.target.closest("[data-track]"),o=e.target.tagName;if(t){const{clientX:a,clientY:i,screenX:c,screenY:l}=e;if(t){var n;let e=r(null==t?void 0:t.getAttribute("data-track"),t);if(!e)return;null===(n=document.fn)||void 0===n||null===(n=n.events)||void 0===n||n.emit("clickEventTrigger",{clickedEl:o,clientX:a,clientY:i,screenX:c,screenY:l,...e})}}}catch(e){(0,a.BI)("EVError",e,"clickEventListener")}})),document.body.addEventListener("submit",(e=>{const n=e.target;if(n.hasAttribute("data-track-form"))try{var t;let e=r(n.getAttribute("data-track-form"),n);if(!e)return;const o={formId:n.id||"",formAction:n.action,formMethod:n.method,formElements:Array.from(n.elements).filter((e=>e.hasAttribute("data-track-element"))).map((e=>({name:e.name,type:e.type,value:"password"===e.type?"[REDACTED]":e.value})))};null===(t=document.fn)||void 0===t||null===(t=t.events)||void 0===t||t.emit("formSubmitEventTrigger",{...o,...e})}catch(e){(0,a.BI)("EVError",e,"formSubmitEventListener")}})),function(){function e(e){try{var n;if(e.hasAttribute("data-impression-tracked"))return;const t=r(e.getAttribute("data-track-impression"),e);if(!t)return;null===(n=document.fn)||void 0===n||null===(n=n.events)||void 0===n||n.emit("impressionEventTrigger",{elementId:e.id||"",...t})}catch(e){(0,a.BI)("EVError",e,"impressionEventListener")}finally{e.setAttribute("data-impression-tracked",!0)}}document.querySelectorAll("[data-track-impression]").forEach(e),new MutationObserver((n=>{n.forEach((n=>{n.addedNodes.forEach((n=>{n.nodeType===Node.ELEMENT_NODE&&n.querySelectorAll("[data-track-impression]").forEach(e)}))}))})).observe(document.body,{childList:!0,subtree:!0,attributeFilter:["data-track-impression"]})}(),p("pageview",s,d),null===(e=document.fn)||void 0===e||null===(e=e.events)||void 0===e||e.on("ajaxComplete",(e=>{/^https:\/\/www.twinkl[.\w]+\/search\?/.test(e.responseURL)&&p("pageview",s,d)})),null===(n=document.fn)||void 0===n||null===(n=n.events)||void 0===n||n.on("clickEventTrigger",(e=>{try{p("click",s,d,(()=>e))}catch(e){v("ABError",e,"clickEventTrigger emitter")}})),null===(t=document.fn)||void 0===t||null===(t=t.events)||void 0===t||t.on("formSubmitEventTrigger",(e=>{try{p("formSubmit",s,d,(()=>e))}catch(e){v("ABError",e,"formSubmitEventTrigger emitter")}})),null===(o=document.fn)||void 0===o||null===(o=o.events)||void 0===o||o.on("impressionEventTrigger",(e=>{try{p("impression",s,d,(()=>e))}catch(e){v("ABError",e,"impressionEventTrigger emitter")}})),setTimeout((()=>{window.fetch&&y()}),3e4),(0,a.v8)("twinkl_zz")&&window.document.addEventListener("visibilitychange",(()=>{try{if("hidden"===document.visibilityState){if(window.sessionStorage._et){let e=JSON.parse(sessionStorage.getItem("_et"));if(e&&e.length>0){e.forEach((e=>{if(/pageViewDuration/.test(e)){let t=(n=Date.now()-1e3*+e.split("&et=")[1].match(/^[^&]*/)[0])<5e3?"<5s":n>=5e3&&n<1e4?"5-10s":n>=1e4&&n<15e3?"10-15s":n>=15e3&&n<2e4?"15-20s":">20s";window.sessionStorage.setItem("_et",window.sessionStorage.getItem("_et").split(e).join(e.split("pageViewDuration").join("pageViewDuration"+t)))}var n})),e=JSON.parse(window.sessionStorage.getItem("_et"));let n=g.reduce(((e,n)=>(e[n.shortName]=window.dataLayer[0].user[n.name],e)),{});n.g=window.dataLayer[0].geo,n.v=1,n.t=""==n.t?"none":n.t;let t=m({zz:(0,a.v8)("twinkl_zz")||0,...n});if(t+=e.map((e=>`\n${e}`)).join(""),window.navigator.sendBeacon&&e.length){const e="https://ab.twinkl.co.uk";window.navigator.sendBeacon(e,t)&&(sessionStorage._et=JSON.stringify([]))}}}u&&u.length&&y()}}catch(e){v("ABError",e,"helpers-VisibilityChange")}}))}function v(e,n,t,o,a){try{var r;if("AB"==e&&2==n.split(".").length){var i;let[e,o]=n.split(".");const a=new Date;let r={exn:e,exv:o,exh:t,et:Math.floor(a/1e3),tzo:0==a.getTimezoneOffset()?0:60*a.getTimezoneOffset()};const{exv:c,exh:l}=r;null===(i=document.fn)||void 0===i||null===(i=i.events)||void 0===i||i.on("abReady",(()=>{p("experiment",s,d,(()=>({expName:e,expVariant:c,expEvent:l})))})),h(r)}if(("ABError"==e||"EVError"==e)&&null!==(r=window.newrelic)&&void 0!==r&&r.noticeError){var c,l,u=new Error(`${"ABError"==e?"CRO":"EV"}-${n}-${t}`);null===(c=window.newrelic)||void 0===c||null===(l=c.noticeError)||void 0===l||l.call(c,u)}}catch(e){}}function f(e,n){const t=function(e,n){const t=864e5,o=Math.round(Math.abs((e.getTime()-n.getTime())/t)),a=Math.abs(e.getTime()-n.getTime())%t;return Math.round(a/1e3)+86400*o}(e,n),o=[{range:"0-20",min:0,max:20},{range:"21-120",min:21,max:120},{range:"121+",min:121,max:1/0}];for(const e of o)if(t>=e.min&&t<=e.max)return e.range}},4617:(e,n,t)=>{"use strict";t.d(n,{A:()=>r});const o=3432918353,a=461845907;function r(e,n=0){const t=3&e.length,r=e.length-t;let l=n,d=0;for(;d=3&&(r^=e.charCodeAt(n+2)<<16),t>=2&&(r^=e.charCodeAt(n+1)<<8),t>=1&&(r^=e.charCodeAt(n),r=Math.imul(r,o),r=r<<15|r>>>17,r=Math.imul(r,a)),r}(e,d,t);return l^=s,function(e,n){return e^=n,e^=e>>>16,e=Math.imul(e,2246822507),e^=e>>>13,e=Math.imul(e,3266489909),(e^=e>>>16)>>>0}(l,e.length)}function i(e,n){let t=255&e.charCodeAt(n)|(255&e.charCodeAt(n+1))<<8|(255&e.charCodeAt(n+2))<<16|(255&e.charCodeAt(n+3))<<24;return t=Math.imul(t,o),t=t<<15|t>>>17,t=Math.imul(t,a),t}function c(e,n){return e=(e^=n)<<13|e>>>19,Math.imul(e,5)+3864292196}},5133:(e,n,t)=>{"use strict";t.d(n,{A:()=>a});var o=t(2834);const a=(r=console.log,i=function(e,n){var t=localStorage._x?JSON.parse(localStorage._x):{};n&&n.length>0&&n.forEach((function(e){t[e]&&delete t[e]})),t[e.en]=e.ce,localStorage._x=JSON.stringify(t)},c=function(e,n){var t;if(null==e||null===(t=e.ce)||void 0===t||!t.g)return;const o=e.n+"."+e.b[e.v].name,a=n.name,c=void 0;if(o&&a){var l=e.o.encodeCookie?btoa(a).replace(/[=]+/,""):a;if(e.ce.g[l]){var d=e.ce.g[l].c?e.ce.g[l].c++:e.ce.g[l].c=1;i(e),n.mod&&d%n.mod==0&&r("AB",o,n.bypass?a:a+":"+d,c,!0)}else r("AB",o,a,c,!0),e.ce.g[l]={t:Date.now(),c:1},i(e)}},l=function(e,n){var t,o,a=n.o.encodeCookie?btoa(e.name).replace(/[=]+/,""):e.name;if(null===(t=n.ce)||void 0===t||null===(t=t.g)||void 0===t||!t[a]||e.mod&&!((null===(o=n.ce)||void 0===o||null===(o=o.g)||void 0===o||null===(o=o[a])||void 0===o?void 0:o.c)>20))if("on"!==e.type){var r=[].slice.call(document.querySelectorAll(e.parentEl));r&&r.length>0&&r.forEach((function(t){t.addEventListener(e.type,(function(t){t.target.closest(e.childEl)&&c(n,e)}))}))}else"on"==e.type&&n.o.evq&&e.on&&n.o.evq.on(e.on,(function(t){let o={...e};e.cb&&(o={...e.cb(t)}),function(e,n){c(n,e)}(o,n)}))},d=function(e){var n,t=!(null===(n=e.b[e.v])||void 0===n||!n.name);e.b[e.v].run(),e.g.e.length>0&&t&&e.g.e.forEach((function(n){null!=n.path||null!=n.options&&!n.options||l(n,e)})),u(e)},s=function(e){e.v=e.o.bucket>-1?e.o.bucket:function(e){var n=e.b.reduce((function(e,n){return e+n.weight||0}),0),t=0,o=Math.random()*n;return e.b.map((function(e){return e.weight})).findIndex((function(e){return o<(t+=e)}))}(e),d(e)},u=function(e){var n,t=!(null===(n=e.b[e.v])||void 0===n||!n.name);if(e.t()){if(!e.ae[e.en]){if(function(e){if(!e.ce){var n=Object.keys(e.ae).filter((function(n){if(new Date>new Date(e.ae[n].b+864e5*e.ae[n].t))return n}));e.ce=e.ae[e.en]={g:{},v:e.v,t:e.ttl,b:Date.now()},i(e,n)}}(e),!t)return;r("AB",e.n+"."+e.b[e.v].name,"hit",void 0,!0)}if(!t)return;window.babData=window.babData||{};var o=e.b.map((e=>window.btoa(e.name).replace(/=/g,""))),a={v:e.v,a:o};window.babData[e.en]=a}e.g.gh.length>0&&e.isb&&e.g.gh.forEach((function(n){c(e,n)})),e.goalEventPath&&e.goalEventPath.length>0&&e.isb&&e.goalEventPath.forEach((function(n){(null==n.options||n.options)&&l(n,e)}))},{init:e=>{if(e.o.deploy>0)e.t()&&e.b[e.o.deploy].run();else if(r="ga"==e.o.fnDataApi||null==e.o.fnDataApi?o.BI:e.o.fnDataApi,e.en=e.o.encodeCookie?btoa(e.n).replace(/[=]+/,""):e.n,e.ae=localStorage._x?JSON.parse(localStorage._x):{},e.ce=!!e.ae&&e.ae[e.en],e.isb=!!e.ce,e.g.gh=e.g.u.filter((function(e){return e.regex.test(location[e.type||"pathname"])&&(null==e.options||e.options)})),e.goalEventPath=e.g.e.filter((function(e){return void 0!==e.path&&e.path.test(location.pathname)&&(null==e.options||e.options)})),e.t())!function(e){e.isb?e.ce&&(e.v=+e.ce.v,e.v0||e.goalEventPath&&e.goalEventPath.length>0)&&e.isb){if(e.v=e.ce.v,e.b[e.v]&&!e.b[e.v].name)return;u(e)}}});var r,i,c,l,d,s,u},2834:(e,n,t)=>{"use strict";t.d(n,{se:()=>p,n0:()=>u,kQ:()=>k,DX:()=>w,e9:()=>l,xl:()=>v,Fr:()=>f,Hh:()=>c,v8:()=>s,Gc:()=>i,b3:()=>g,BI:()=>a.BI,aC:()=>x});var o=t(5133),a=t(3261),r=t(4617);function i(e){"loading"!=document.readyState?e():document.addEventListener("DOMContentLoaded",e)}function c(e){"complete"==document.readyState?e():document.addEventListener("readystatechange",(n=>{"complete"===n.target.readyState&&e()}))}function l(e){var n;return!(null===(n=JSON.parse(localStorage.getItem("_x")))||void 0===n||!n[window.btoa(e).replace(/=/g,"")])}const d=window.dataLayer[0];function s(e){for(var n=escape(e)+"=",t=window.document.cookie.split(";"),o=0;oe.regex.test(window.location[e.type||"pathname"])&&(!e.hasOwnProperty("options")||e.options)))}function h(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}const g=(e,n=i,t=c)=>i=>{var c;if(!(m(e.tg)||i&&null!=i&&i[null===(c=window.btoa(e.n))||void 0===c?void 0:c.replace(/=/g,"")]&&(m(e.g.u)||h(e.g.e))))return!1;if(e.t=()=>m(e.tg),e.t()){if(-1===e.o.bucket&&0==e.o.deploy){var l,u,p;const n=null!=d&&null!==(l=d.user)&&void 0!==l&&l.twinklid?d.user.twinklid:null===(u=s("twinkl_zz"))||void 0===u?void 0:u.slice(-5);if(void 0===n)return!1;if(null!=i&&i[null===(p=window.btoa(e.n))||void 0===p?void 0:p.replace(/=/g,"")]||(e.o.bucket=((e,n,t=[{weight:1},{weight:1}],o={})=>{let i=null,c=null;try{var l,d;c=null===(l=dataLayer[0])||void 0===l?void 0:l.abTests[n],(null===(d=c)||void 0===d?void 0:d.variantIndex)>-1&&(i=c.variantIndex)}catch(e){console.error(e)}const{population:u}=Object.assign({population:100},o),p=1e4,m=`${n}${e}`,h=(0,r.A)(m,0),g=h/(Math.pow(2,32)-1),y=parseInt(Math.floor(g*p),10),w=function(e){const n=function(){const e=[];let n=0;for(let e=0;ee<=n.upperBound));return n>-1?n:null}(y);if(s("twinklSplitTesting")&&console.log(w,p,h,g,m),null!==w&&null!==i&&w!==i){var v,f,b;const o={"Test name":n,"Back end":c,"Front end":{variantIndex:w,variantName:null!==(v=null==t||null===(f=t[w])||void 0===f?void 0:f.name)&&void 0!==v?v:"unknown",user:e,hashKey:m,hashValue:h,hashRatio:g,bucket:y,variantList:t.map((e=>e.name)),dlUser:null===(b=dataLayer[0])||void 0===b?void 0:b.user.twinklid,cookieUser:s("twinklid")}};(0,a.BI)("ABError","Bucketing mismatch",JSON.stringify(o))}return w})(+n,e.n,e.b,{population:e.o.population||100})),null==e.o.bucket)return!1}return n((function(){o.A.init(e)})),!0}(m(e.g.u)||h(e.g.e))&&t((function(){o.A.init(e)}))};function y(e){if(!e)return"";const n=new RegExp("\\b("+["twinkl","bundle","unlimited","downloads"].join("|")+")\\b","gi");return e.replace(n,"").replace(/\s+/g," ").trim().toLowerCase()}function w(e,n={}){var t,o,a,r,i;let c={},l=n.expName,d=/^\/premium-thanks/.test(window.location.pathname)?null===(t=window.dataLayer[0].ecommerce)||void 0===t||null===(t=t.purchase)||void 0===t||null===(t=t.products)||void 0===t?void 0:t[0]:void 0,s=null==d?void 0:d.variant,u=s&&"string"==typeof s?null!==(null==s?void 0:s.match(/24\s[0-6]$/))?"Biennial":null==s||null===(o=s.match(/^\w+/))||void 0===o||null===(o=o[0])||void 0===o?void 0:o.replace("Standard","Annual"):void 0,p=d&&null!==(a=window.dataLayer[0].ecommerce)&&void 0!==a&&null!==(a=a.purchase)&&void 0!==a&&null!==(a=a.actionField)&&void 0!==a&&a.coupon?null===(r=window.dataLayer[0].ecommerce)||void 0===r||null===(r=r.purchase)||void 0===r||null===(r=r.actionField)||void 0===r?void 0:r.coupon:void 0;var m,h;if(c.funnel=/^\/premium|^\/payment|^\/a-payment|^\/trial$|^\/free-trial-payment\/|^\/trial-free$|^\/free-trial-landing$/.test(window.location.pathname)?[{name:"premium",regex:/^\/premium$|^\/premium\/individual$|^\/premium\/individual\/primary$|^\/premium\/choose$/,options:!document.querySelector("#premium_page.subscription")},{name:"premiumPaidMember",regex:/^\/premium$|^\/premium\/individual$|^\/premium\/individual\/primary$/,options:!!document.querySelector("#premium_page.subscription")},{name:"paymentTrial",regex:/^\/trial$|^\/free-trial-payment\/|^\/trial-free$/,options:!!document.querySelector(".payMonthlyDiv")||!!document.querySelector(".newRadios")},{name:"payment",regex:/^\/trial$|^\/free-trial-payment\/|^\/trial-free$/,options:!!document.querySelector(".payMonthlyDiv")||!!document.querySelector(".newRadios")},{name:"payment",regex:/^\/payment$/,options:!!document.querySelector(".payMonthlyDiv")||!!document.querySelector(".newRadios")},{name:"payFinal",regex:/^\/a-payment\/monthly\/\d+$/},{name:"payFinalOffer",regex:/^\/a-payment\/monthly\/\d+$/,options:!!document.querySelector(".freeTrial99Label")},{name:"payFinal",regex:/^\/payment$/,options:!document.querySelector(".payMonthlyDiv")&&!document.querySelector(".newRadios")},{name:"payFastTrack",regex:/^\/payment-sign-up$/},{name:"Subscription",regex:/^\/premium-thanks/,options:!(null==d||!d.variant||/\d\s3/.test(d.variant))},{name:`Subscription-${m=p,m?m.replace(/^99P-MONTHLY-/,"").toLowerCase():""}`,regex:/^\/premium-thanks/,options:!(null==d||!d.variant||!p||/\d\s3/.test(d.variant))},{name:"premiumThanks",regex:/^\/premium-thanks/,options:!0},{name:"freeTrialLanding",regex:/^\/free-trial-landing$/,options:!0}]:[],c.prospects=[{name:"sign-in",type:"search",regex:/sign_in/,options:!0},{name:"signed-up",type:"search",regex:/signed_up/,options:!0}],/sign_in/.test(location.search)&&l&&c.prospects.push({name:"signInBeforeUp",type:"search",regex:/sign_in/,options:!(null!==(h=JSON.parse(localStorage.getItem("_x")))&&void 0!==h&&null!==(h=h[window.btoa(l).replace(/=/g,"")])&&void 0!==h&&null!==(h=h.g)&&void 0!==h&&h.c2lnbmVkLXVw)}),c.upgrades=null!=d&&d.variant&&null!=d&&d.name&&/\d\s3/.test(d.variant)?[{name:"upgrade",regex:/^\/premium-thanks/,options:!!d.variant&&/\d\s3/.test(d.variant)},{name:"upgrade-paid",regex:/^\/premium-thanks/,options:!!d.variant&&/\d\s3/.test(d.variant)},{name:"upgrade-"+y(d.name)+"-"+u,regex:/^\/premium-thanks/,options:!!d.variant&&/\d\s3/.test(d.variant)},{name:"upgrade-"+u,regex:/^\/premium-thanks/,options:!!d.variant&&/\d\s3/.test(d.variant)}]:[],c.products=null!=d&&d.variant?[{name:"Subscription-"+y(null==d?void 0:d.name),regex:/^\/premium-thanks/,options:!(null==d||!d.variant||/\d\s3/.test(d.variant))},{name:"upgrade-"+y(d.name),regex:/^\/premium-thanks/,options:!!d.variant&&/\d\s3/.test(d.variant)},{name:"upgrade-"+u,regex:/^\/premium-thanks/,options:!!d.variant&&/\d\s3/.test(d.variant)},{name:"Subscription-"+u,regex:/^\/premium-thanks/,options:!(null==d||!d.variant||/\d\s3/.test(d.variant))}]:[],c.cancel=/^\/cancel-membership/.test(window.location.pathname)?[{name:"cancelStarted",regex:/^\/cancel-membership$/},{name:"cancelMembershipSwitchAndDowngradeOptions",regex:/^\/cancel-membership\/membership-options\/[\w]+$/},{name:"cancelPauseNow",regex:/^\/cancel-membership\/pause-now$/},{name:"cancelProducts",regex:/^\/cancel-membership\/products\/[\w]+$/},{name:"cancelOptions",regex:/^\/cancel-membership\/options/},{name:"cancelComplete",regex:/^\/cancel-membership\/cancel-now\/[\w]+$/},{name:"cancelDowngradeComplete",regex:/^\/cancel-membership\/downgrade-now\//},{name:"switchedToAnnual-cancelJourney",regex:/^\/cancel-membership\/switch-to-annual\/[\w]+$/,options:/type=cancellation/.test(window.location.search)},{name:"switchedToMonthly-cancelJourney",regex:/^\/cancel-membership\/switch-to-monthly\/[\w]+$/,options:/type=cancellation/.test(window.location.search)}]:[],c.switchMethod=/^\/cancel-membership/.test(window.location.pathname)?[{name:"switchedToAnnual"+(/type=/.test(window.document.referrer)?null===(i=window.document.referrer.split("type="))||void 0===i?void 0:i[1]:""),regex:/^\/cancel-membership\/switch-to-annual\/[\w]+$/,options:!/type=cancellation/.test(window.location.search)},{name:"switchedToAnnualConfirm",regex:/^\/cancel-membership\/switch-to-annual-confirmation\/[\w]+$/}]:[],/^\/payment$/.test(location.pathname)&&document.querySelector(".upgradeMonthlySub")){var g;const e=null===(g=document.querySelector(".upgradeMonthlySub>div>div>p"))||void 0===g||null===(g=g.innerText)||void 0===g||null===(g=g.split(".")[0])||void 0===g||null===(g=g.split(" "))||void 0===g?void 0:g.reverse()[0];e&&(c.products.push({name:"upgrade-"+e,regex:/^\/payment$/,options:!0}),c.products.push({name:"upgrade-"+e+"-one-click",regex:/^\/payment$/,options:!0}),c.products.push({name:"upgrade-Monthly",regex:/^\/payment$/,options:!0}),c.upgrades.push({name:"upgrade",regex:/^\/payment$/,options:!0}),c.upgrades.push({name:"upgrade-one-click",regex:/^\/payment$/,options:!0,mod:1}),c.products.push({name:"upgrade-"+e+"-Monthly",regex:/^\/payment$/,options:!0}))}/^\/a-payment\/cancel-upgrade\//.test(location.pathname)&&document.querySelector(".upgradeMonthlySub")&&c.upgrades.push({name:"upgrade-cancel-one-click",regex:/^\/a-payment\/cancel-upgrade\//,options:!0,mod:1});let w=[];return Array.isArray(e)&&e.forEach((function(e){w=c[e]?w.concat(c[e].filter((e=>e.regex.test(window.location[e.type||"pathname"])))):w})),w}const v=!!window.document.querySelector("body.is-desktop-device"),f=!!window.document.querySelector("body.is-mobile-device"),b=(e,n="strict")=>(t,o=n)=>{const a=t.toString().split(",").map((e=>((e,n)=>"startsWith"==n?`^${e}`:"endsWith"==n?`${e}$`:"has"==n?e:`^${e}$`)(e.trim(),o))).join("|");return new RegExp(a).test(e)},x={lang:{en:b(d.user.language_id)("1,11,12,25,136,159,160,161"),is:b(d.user.language_id)},country:{uk:b(d.user.country_id)("244,247,246,245"),is:b(d.user.country_id),startsWith:b(d.user.country_id,"startsWith")},member:{schoolAccount:d.user.schoolAccount>0},geo:{us:b(d.geo,"startsWith")("US"),uk:b(d.geo,"startsWith")("GB"),startsWith:b(d.geo,"startsWith")},domain:{endsWith:b(location.host,"endsWith"),com:b(location.host)("www.twinkl.com"),is:b(location.host)},career:{is:b(d.user.career)},path:{is:b(location.pathname),startsWith:b(location.pathname,"startsWith")},device:{isMobile:f,isDesktop:v}};function k(e){let n={download:[{path:/^\/resource\//,type:"click",name:"Download",parentEl:'#download_link[data-download="yes"]',childEl:"a"},{path:/^\/resource\//,type:"click",name:"DownloadAlt",parentEl:"#download_alternate_selector_container",childEl:"a.download_link"},{path:/^\/resource\//,type:"click",name:"Download",parentEl:"#download_alternate_selector_container",childEl:"a.download_link"}]};n.switchMethodReversed=[{path:/^\/cancel-membership\/switch-to-annual\/[\w]+/,type:"click",name:"switchedToAnnualReversed"+(/type=/.test(window.document.referrer)?window.document.referrer.split("type=")[1]:""),parentEl:".cancellation-box-grey",childEl:'a[href^="/cancel-membership/switch-back-to-monthly/"]'}];let t=[];return Array.isArray(e)&&e.forEach((function(e){t=n[e]?t.concat(n[e].filter((e=>e.path.test(window.location.pathname)))):t})),t}},869:(e,n,t)=>{"use strict";t.d(n,{A:()=>a});var o=t(2834);function a(e){try{(0,o.se)('\n.chart-container {\n padding: 20px;\n width: 100%;\nclear: both;\nborder: 1px solid #ccc;\nborder-radius: 4px;\nmargin-top: 1rem;\n}\n\n.chart-title {\n font-size: 16px;\n color: #333;\n margin-bottom: 20px;\n}\n\n.chart {\n display: flex;\n align-items: flex-end;\n justify-content: space-between;\n height: 150px;\n gap: 15px;\n margin-bottom: 10px;\n}\n\n.bar-group {\n display: flex;\n flex-direction: column;\n align-items: center;\n flex: 1;\n height:100%;\n}\n\n.bar-wrapper {\n width: 100%;\n display: flex;\n justify-content: center;\n height: 100%;\n align-items: flex-end;\n}\n\n.bar-wrapper .bar {\n width: 100%;\n background-color: #ffb800;\n border-radius: 4px 4px 0 0;\n transition: height 0.3s ease;\n/* max-width: 28px;*/\n border: 1px solid #ff7000;\n padding:0px;\n}\n\n.value-label {\n margin-bottom: 5px;\n font-size: 14px;\n color: #666;\n}\n\n.year-label {\n margin-top: 8px;\n font-size: 14px;\n color: #666;\n text-align: center;\n height: 17px;\n}.containerWrapper {\n left: 20px;\n top: 30px;\n display: flex;\n cursor: default;\n position: absolute;\n z-index: 200000000000;\n background: #fff;\n border: 1px solid #ccc;\n padding: .6rem 0 .6rem .3rem;\n box-shadow: 2px 6px 12px 4px rgba(0, 0, 0, .4);\n border-radius: 4px;\n}\n /*.ratingWrapper {\n position:relative;\n width:auto;\n background:unset;\n border:none;\n padding:none;\n box-shadow:none;\n border-radius:0px;\n left: 0px!important;\n top: 0px!important;\n }*/\n .bar .value-label{position: absolute;\n top: -20px;\n width: 100%;\n display: flex;\n justify-content: center;\n}.chart-title {\n margin-bottom: 0px!important;\n text-align: center;\n font-size: 0.8rem!important;\n}.containerWrapper {\n padding: 20px;\n}.value-label {\n font-size: 0.7rem;\n}.bar[style="height: 0%;"] {\n display: none;\n}.chart-title {\n padding-bottom: 1em;\n}');const e='',c=window.dataLayer[0];var n=(()=>{var e=document.createElement("div");e.className="chart-container";var n=document.createElement("div");n.className="chart-title";var t=244==c.user.country_id?"Years":"Grades";n.textContent=t+" used with",e.appendChild(n);var o=document.createElement("div");return o.className="chart",["EYFS","Year 1","Year 2","Year 3","Year 4","Year 5","Year 6","Secondary"].forEach((e=>{var n=document.createElement("div");n.className="bar-group";var t=document.createElement("div");t.className="value-label",t.textContent="0%";var a=document.createElement("div");a.className="bar-wrapper";var r=document.createElement("div");r.className=`bar ${e.replace(/\s/g,"")}`,r.style.height="0%",r.appendChild(t);var i=document.createElement("div");i.className="year-label",i.innerHTML=e,a.appendChild(r),r.appendChild(t),n.appendChild(a),n.appendChild(i),o.appendChild(n)})),e.appendChild(o),e})();dataLayer[0].resource.age_profile.forEach((e=>{var t=n.querySelector(`.bar.${e.filter_tag.replace(/\s/g,"")}`);t&&(t.style.height=`${e.proportion}%`,t.querySelector(".value-label").textContent=`${e.proportion}%`),n.querySelector(".bar.Secondary").parentNode.parentNode.querySelector(".year-label").textContent="Year 7+"}));var t=226==dataLayer[0].user.country_id?{EYFS:"Pre-K","Year 1":"K","Year 2":"1st","Year 3":"2nd","Year 4":"3rd","Year 5":"4th","Year 6":"5th","Year 7+":"6th-12th",Secondary:"6th-12th"}:110==dataLayer[0].user.career_id?{EYFS:"Pre-school","Year 1":"Year 1","Year 2":"Year 2","Year 3":"Year 3","Year 4":"Year 4","Year 5":"Year 5","Year 6":"Year 6","Year 7+":"Year 7+",Secondary:"Year 7+"}:{};(e=>{var o=new Set;n.querySelectorAll(".bar-group").forEach((n=>{var a=n.querySelector(".year-label"),r=n.querySelector(".bar"),i=a?a.textContent:"",c=t[i];if(a&&r&&c&&!o.has(c)){var l=e[c];a.innerHTML=c,a.className="year-label changed",r.style.height=`${l}%`,r.querySelector(".value-label").textContent=`${l}%`,o.add(c)}}))})((l=dataLayer[0].resource.age_profile,d={},l.forEach((({filter_tag:e,proportion:n})=>{var o=t[e];o&&(d[o]||(d[o]=0),d[o]+=n)})),d)),document.querySelectorAll(".year-label:not(.changed)").forEach((e=>{var n;null===(n=e.parentNode)||void 0===n||n.remove()}));var a=0;n.querySelectorAll("[style*=height]").forEach((e=>{var n=+e.getAttribute("style").split("height: ")[1].split("%")[0];a=a>n?a:n}));var r=n.querySelector(`[style="height: ${a}%;"]`).parentNode.parentNode.querySelector(".year-label").innerText,i=document.createElement("div");i.className="dropdown",i.id="mostlyUsedWithContainer",i.innerHTML=`\n \n \n `,document.querySelector(".avg-rating-wrapper").insertAdjacentElement("beforeend",i),(0,o.se)("\n .dropdown {\n position: relative;\n display: inline-block;\n cursor: pointer;\n user-select: none;\n padding-left: 2em;\n .chevronDown {\n width: 0.7em;\n margin-left: 0.5em;\n }\n }\n .dropdown-content {\n display: none;\n position: absolute;\n background-color: #fff;\n padding: 1em;\n min-width: 520px;\n box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);\n z-index: 2;\nborder-radius: 6px;\nborder: 1px solid #ccc;\n }\n .is-desktop-device .dropdown:hover .dropdown-content {\n display: block;\n }\n span.mostUsedWithText {\n text-decoration: underline;\n min-width: max-content;\n }\n .avg-rating-wrapper {\n flex-wrap: wrap;\n row-gap: 0.5em;\n margin-bottom: 1em;\n #average_rating {\n margin-right: 1em;\n margin-bottom: 0;\n }\n .dropdown {\n min-width: min-content;\n padding-left: 0;\n }\n }\n .is-mobile-device {\n span.mostUsedWithText {\n text-decoration: none;\n }\n }\n"),document.querySelector(".avg-rating-wrapper .dropdown").addEventListener("mouseover",(()=>{var e;document.querySelector(".mostUsedWithText")&&(null===(e=document.querySelector("#download_link"))||void 0===e||e.classList.add("openedDistribution"))}))}catch(e){var c;(0,o.BI)("ABError",e,window.location.pathname+`mostlyUsedByModule${null===(c=dataLayer[0])||void 0===c||null===(c=c.user)||void 0===c?void 0:c.country_id}`)}var l,d}},8633:(e,n,t)=>{"use strict";t.d(n,{A:()=>a});var o=t(2834);function a(e){try{var n,t;(0,o.se)('\n .standardContainer {\n display: none;\n }\n .resourceDataParentFlex {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n flex-flow: wrap-reverse;\n .parentCTAContainer {\n display: flex;\n flex: 1 200px;\n flex-direction: column;\n padding-top: 2em;\n #actual_downloads {\n float: none;\n width: 100%;\n margin: 0 !important;\n .download {\n float: none;\n width: 100%;\n min-width: 16rem;\n display: block;\n #download_link {\n }\n #download_link::before {\n }\n }\n }\n #download_selector_wrapper {\n width: 100%;\n display: flex;\n flex-direction: column;\n max-width: 100%;\n .download-selector-inner {\n .altHeader {\n display: none;\n }\n }\n .alt-version-include {\n display: none;\n }\n .alt-summary {\n display: none;\n }\n }\n .g-drive-container.g-drive-container-large {\n width: 100%;\n min-width: 100%;\n margin: 0;\n }\n }\n .parentForDataFlex {\n position: relative;\n width: 100%;\n display: flex;\n flex: 1 200px;\n flex-direction: column;\n padding: 0 1em;\n h6.dataHeader {\n letter-spacing: 0.7px;\n padding: 0;\n margin: 2em 1em 1em 0;\n color: #666666;\n font-weight: 100;\n }\n p#resData-formatText {\n margin: 0;\n }\n .dropdown {\n position: relative;\n display: inline-block;\n cursor: pointer;\n user-select: none;\n padding-left: 0;\n .dropDownFlexContainer {\n flex-direction: row;\n .mostUsedWithText {\n \n }\n } \n }\n .dataContainer {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n .dataChips {\n background: #F5F5F5;\n width: max-content;\n padding: 2px 5px;\n font-size: small;\n border-radius: 10px;\n margin: 0 0.5em 0.5em 0;\n cursor: pointer;\n color: #333333;\n font-size: 9pt;\n } \n }\n }\n #resData-usaStandardsParent > a {\n padding: 2px 1em\n }\n }\n #container #resource #actual_downloads a#download_link:not([href^="/go/"]):not([href^="/ar-3d/"]):before {\n left: 0 !important;\n }\n .is-mobile-device {\n .parentForDataFlex {\n padding: 0 1em;\n }\n }\n ');const c=document.querySelector("#actual_downloads"),l=(dataLayer[0].user.type,null===(n=document.querySelector("#download_link"))||void 0===n?void 0:n.href),d=document.querySelector("#download_link"),s=document.querySelector("#resource_image");if(document.querySelector(".dropdown div span.mostUsedWithText"))var a=document.querySelector(".dropdown div span.mostUsedWithText").closest(".dropdown");const u=function(){const e=document.getElementById("download_link"),n=null==e?void 0:e.getAttribute("data-ext");if(n){return n.toUpperCase()||!1}return!1},p=document.querySelector(".g-drive-container-large"),m=document.querySelector(".g-drive-container-small"),h=null===(t=dataLayer[0])||void 0===t?void 0:t.resource.alts,g=document.querySelector("#download_selector_wrapper"),y=(document.querySelector("a.altFilemanager"),document.querySelector(".download-selector-inner a.alternativeDownloadsFileManagerPopup")),w=document.querySelector(".standardContainer"),v=document.querySelector('meta[name="page-count"]'),f=v?v.getAttribute("content"):null;if(window&&c&&l&&d&&s&&a&&u()){function b(e,n,t,o,a,r,i,c){const l=Object.assign(document.createElement(e),{className:`${n}`,id:`${t}`,innerText:`${r||""}`,href:`${i||""}`,title:`${c||""}`});return a.insertAdjacentElement(`${o}`,l),l}const x=b("div","resourceDataParentFlex","resourceDataParent","afterend",s),k=b("div","parentCTAContainer","parentForCTAs","afterbegin",x);k.appendChild(c),!g||k.appendChild(g);const E=b("section","parentForDataFlex","parentForData","afterbegin",x),S=b("h6","dataHeader","resData-levelHeader","beforeend",E,"LEARNER LEVEL"),A=a.cloneNode(!0),C=(S.insertAdjacentElement("afterend",e?a:A),h&&b("h6","dataHeader","resData-altVersionsHeader","beforeend",E,"ALTERNATIVE VERSIONS"),!!h&&b("div","dataContainer","resData-altVersionsParent","beforeend",E));function T(e,n,t){Array.isArray(e)||(e=[...Object.values(e)]);let o=1,a=!1;const r=y?"":l;e.forEach(((e,i)=>{o<=3&&(b("a","dataChips",`resData-${t}${i}`,"beforeend",n,e,r),o++),o>3&&!a&&(b("a","dataChips",`resData-altVersionsTextChip${i}`,"beforeend",n,"..."),a=!0)}))}if(b("h6","dataHeader","resData-formatHeader","beforeEnd",E,"FORMATS INCLUDED"),b("p","dataText","resData-formatText","beforeend",E,`${u()}`),!p||k.insertAdjacentElement("beforeend",p),!m||k.insertAdjacentElement("beforeend",m),h&&C&&T(h,C,"altVersionsChip"),"PDF"==u()&&null!==f&&f>1){let q=null;q=1==f?"page":"pages",b("h6","dataHeader","resData-pagesHeader","beforeEnd",E,"PAGES"),b("p","dataText","resData-pagesText","beforeend",E,f+" "+q)}const B=document.querySelector("#resData-altVersionsParent");if(h&&y&&B&&C.addEventListener("click",(e=>{"A"==e.target.tagName&&(e.preventDefault(),y.click())})),w){var r;function _(e,n,t){Array.isArray(e)||(e=[...Object.values(e)]);let o=1,a=!1;e.forEach(((e,r)=>{o<=5&&(b("a","dataChips",`resData-${t}${r}`,"beforeend",n,e.innerText,e.href,e.title),o++),o>5&&!a&&(b("p","dataChips","resData-ShowMoreStandards","beforeend",n,"..."),a=!0)}))}const L=[...document.querySelectorAll(".standardContainer .standard a")],$=[],R=[];function I(){L.forEach((e=>{let n=e.parentElement.classList,t={};t.innerText=e.innerText,t.href=e.href,t.title=e.parentElement.title,n.contains("second")?n.contains("second")&&R.push(t):$.push(t)}))}I(),b("h6","dataHeader","resData-usaStandardsHeader","beforeend",E,"ALIGNED STANDARDS");const D=b("div","dataContainer","resData-usaStandardsParent","beforeend",E),N=b("div","dataContainer","resData-usaStandardsMidParent","beforeend",E);!$||_($,D,"usaStandDataTop"),!R||_(R,N,"usaStandDataTop"),null===(r=document.querySelector("#resData-ShowMoreStandards"))||void 0===r||r.addEventListener("click",(e=>{(0,o.se)("\n .standardContainer {\n display: flex;\n }")}))}}}catch(M){var i;(0,o.BI)("ABError",M,window.location.pathname+`resourceDataModule-${null===(i=dataLayer[0])||void 0===i||null===(i=i.user)||void 0===i?void 0:i.country_id}`)}}},3528:(e,n,t)=>{"use strict";t.d(n,{A:()=>r});var o=t(3261);const a=[{type:"click",name:"ClickedFuzzyResults",parentEl:"#noResults .searchMain .left",childEl:".resultContainer:not(.linked-container) a"},{type:"click",name:"ClickedInternationalResults",parentEl:".searchMain .left",childEl:".internationalResultsContainer .resultContainer:not(.linked-container) a:not(.download):not(.download-alt)"},{type:"click",name:"ClickedResults",parentEl:".searchMain .left",childEl:".resultContainer:not(.linked-container) a:not(.download):not(.download-alt)"},{type:"click",name:"Clicked21+",parentEl:".searchMain .left",childEl:".resultContainer:not(.linked-container):nth-child(n+21) a:not(.download):not(.download-alt)"},{type:"click",name:"Clicked1-8",parentEl:".searchMain .left",childEl:".resultContainer:not(.linked-container):nth-child(n+2):nth-child(-n+9) a:not(.download):not(.download-alt)"},{type:"click",name:"Clicked9-20",parentEl:".searchMain .left",childEl:".resultContainer:not(.linked-container):nth-child(n+10):nth-child(-n+21) a:not(.download):not(.download-alt)"},{type:"click",name:"ClickedSuggestion",parentEl:".similarSearches",childEl:"a.similar",mod:3},{path:/^\/resource\//,type:"click",name:"ClickedAllAutocomplete",parentEl:"#search_form",childEl:".ui-autocomplete a"},{path:/^\/resource\//,type:"click",name:"ClickedResourceSuggestion",parentEl:".similarSearches",childEl:"a.similar"},{type:"click",name:"ClickedSuggestionBlock",parentEl:".searchBlockContent",childEl:"a.similar",mod:3},{type:"click",name:"ClickedFirstSuggestion",parentEl:".similarSearches",childEl:"a.similar:nth-of-type(1)"},{type:"click",name:"ClickedSecondSuggestion",parentEl:".similarSearches",childEl:"a.similar:nth-of-type(2)"},{type:"click",name:"ClickedThirdSuggestion",parentEl:".similarSearches",childEl:"a.similar:nth-of-type(3)"},{type:"click",name:"ClickedFourthSuggestion",parentEl:".similarSearches",childEl:"a.similar:nth-of-type(4)"},{type:"click",name:"ClickedFifthSuggestion",parentEl:".similarSearches",childEl:"a.similar:nth-of-type(5)"},{type:"click",name:"clickedClearFilterItem",parentEl:"#filters",childEl:".selected-filter"},{type:"click",name:"clickedClearFilters",parentEl:"#filters",childEl:"a#clearFilters"},{type:"click",name:"downloadFromSearch",parentEl:"body",childEl:"a#download_link"},{type:"on",on:"clickedFilters",name:"filterClick",cb:function(e){let n={...this};return n.name+=e,n}},{path:/^\/resource\//,type:"on",on:"download",name:"Download",cb:function(e){let n={...this},t=(JSON.parse(sessionStorage.getItem("clickedInternational"))||[]).includes(e)?"AfterClickIntl":"";return n.name+=t,n}},{path:/^\/resource\//,type:"on",on:"download",name:"downloaded",cb:function(e){let n={...this},t=JSON.parse(sessionStorage.getItem("latestSearch"))||!1,a=t?(0,o.g5)(new Date(t.time),new Date):"";return n.name+=a||"",n}},{path:/^\/resource\//,type:"click",name:"thumbsUp",parentEl:"#resourceMain",childEl:"#feedback_link_yes"},{path:/^\/resource\//,type:"click",name:"thumbsDown",parentEl:"#resourceMain",childEl:"#feedback_link_no"}];CSS.supports("selector(:has(*))")&&a.push({type:"click",name:"ClickedAutocompleteSearchSvg",parentEl:"#search_form",childEl:"a:has(svg)"},{type:"click",name:"ClickedAutocompleteSearchMag",parentEl:"#search_form",childEl:"a:has(img[src='https://images.twinkl.co.uk/tr/raw/upload/u/ux/combined-shape_ver_1.png'])"},{type:"click",name:"ClickedAutocompleteSearchImg",parentEl:"#search_form",childEl:"a:has(img[src^='https://images.twinkl.co.uk/tw1n/image/private'])"},{path:/^\/resource\//,type:"click",name:"ClickedAutocompleteResourceSvg",parentEl:"#search_form",childEl:"a:has(svg)"},{path:/^\/resource\//,type:"click",name:"ClickedAutocompleteResourceMag",parentEl:"#search_form",childEl:"a:has(img[src='https://images.twinkl.co.uk/tr/raw/upload/u/ux/combined-shape_ver_1.png'])"},{path:/^\/resource\//,type:"click",name:"ClickedAutocompleteResourceImg",parentEl:"#search_form",childEl:"a:has(img[src^='https://images.twinkl.co.uk/tw1n/image/private'])"});const r=a},9348:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const s=window.dataLayer[0];localStorage.catDownloadId&&JSON.parse(localStorage.catDownloadId)&&localStorage.removeItem("catDownloadId");var e=!1,n=!1,t=[],r=!!(/^244$|^245$|^246$|^247$/.test(s.user.country_id)&&/^1$|^11$|^12$|^25$/.test(s.user.language_id)&&s.user.loggedIn&&a.xl),i=!!localStorage.categoryDownloadId&&JSON.parse(localStorage.categoryDownloadId);if(/^\/resources\//.test(location.pathname)&&r&&(t=Array.from(document.querySelectorAll('#resources .resource-preview[data-download="1"][data-version="A"]'))).length>0){var c=!1;i||(i={}),t.forEach((e=>{var n,t=null==e||null===(n=e.querySelector("img"))||void 0===n?void 0:n.getAttribute("data-resource-id");t&&!i[t]&&(c=!0,i[t]=0)})),c&&(localStorage.categoryDownloadId=JSON.stringify(i))}if(/^\/resource\//.test(location.pathname)&&i&&r){var l,d=null===(l=n=document.querySelector("#actual_downloads"))||void 0===l?void 0:l.getAttribute("data-resource-id");0==i[d]&&(n.classList.add("instantDownload"),e=!0)}const u=[{regex:/^\/resources\/|^\/resource\//,options:r&&(/^\/resources\//.test(location.pathname)&&t&&t.length>0||/^\/resource\//.test(location.pathname)&&e)}],p=(0,a.DX)(["funnel","products","upgrades"]),m=(0,a.kQ)(["download"]);m.push({type:"click",name:"Download",parentEl:".resource-preview",childEl:".buttonContainer a"}),m.push({type:"click",name:"downloadedFlaggedCategoryPage",parentEl:".resource-preview",childEl:".buttonContainer a"}),m.push({type:"click",name:"DownloadedFlagged",parentEl:".resource-preview",childEl:".buttonContainer a",mod:5}),m.push({type:"click",name:"downloadedFlaggedResourcePage",parentEl:"#actual_downloads",childEl:".instantDownload a"}),m.push({type:"click",name:"DownloadedFlagged",parentEl:"#actual_downloads",childEl:".instantDownload a",mod:5}),m.push({type:"click",name:"clickedFlaggedResource",parentEl:"#resources .resource-preview[data-download='1']",childEl:".resource-preview[data-download='1']>a:not(.saveIcon)"});const h=()=>{try{/^\/resources\//.test(location.pathname)&&(t.forEach((e=>{var n,t,o=null==e||null===(n=e.querySelector("img"))||void 0===n?void 0:n.getAttribute("data-resource-id");if(o){var a=e.querySelector(".stars");e.insertAdjacentHTML("beforeend",``);var r=e.querySelector(".buttonContainer"),i=r.querySelector(".needsright");a?(a.classList.add("col-6"),i.classList.add("col-6"),r.insertAdjacentElement("afterbegin",a)):i.classList.add("col-12")}})),(0,a.se)(".resource-preview .btn{ width: 100px; height: 25px;font-size: 12px;border-radius: 4px; background-color: #5d8200; background-size: cover;color: #fff;text-decoration: none solid #fff; text-align: center; box-shadow: 0 3px 5px rgb(0 0 0 / 20%); font-size: 12px; border: 2px solid #4c6509; text-decoration: none;\n }.resource-preview .btn .downloadImg{transform: scale(0.8);}.downloadContainer{display:flex;align-items: center;}.resource-preview:hover .downloadContainer img{ box-shadow:none!important;border:none}.buttonContainer a{display:flex;} ul#resources li .stars .reviews,ul#resources li .stars .arrowRatings {display:none}.buttonContainer{display: flex;\n justify-content: space-between; align-items: center; margin-top: 6px;}.buttonContainer .needsright{display:flex; justify-content:flex-end}"))}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+g)}},g="categoryInstantDownloadButtonReset4",y={n:g,t:()=>w(u),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:h}],g:{u:p,e:m},o:{bucket:-1,testing:!0,fnDataApi:"ga",encodeCookie:!0,deploy:1}};function w(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function v(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return w(u)||!!e&&e[null===(n=window.btoa(g))||void 0===n?void 0:n.replace(/=/g,"")]&&(w(p)||v(m))},codeToRun:()=>{w(u)?(0,a.Gc)((function(){o.A.init(y)})):(w(p)||v(m))&&(0,a.Hh)((function(){o.A.init(y)}))}}}catch(f){const b="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",f,window.location.pathname+"-"+b)}}},3342:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\//,options:o.aC.lang.en&&/^244$/.test(e.user.country_id)&&0==e.user.twinklid&&document.querySelector('#header a[href="/resources/home-key-stage-1-subjects"]')&&document.querySelector('#header a[href="/resources/keystage2-ks2"]')}],t=(0,o.DX)(["funnel","upgrades","products","cancel"]);t.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),t.push({name:"resourcePageVisit",regex:/^\/resource\//,options:!0}),t.push({name:"sign-up",type:"search",regex:/signed_up/,options:!0});const a=(0,o.kQ)(["download"]);a.push({type:"click",name:"clickedCTAsAny",parentEl:".topCatPage",childEl:".subjects a"}),a.push({type:"click",name:"clickedCTAsAny",parentEl:".vb-page",childEl:"a"}),a.push({type:"click",name:"clickedBreadcrumb",parentEl:".topCatPage",childEl:"div#breadcrumb"});const r=()=>{},i=()=>{try{var e,n;const t=document.querySelector('#header a[href="/resources/home-key-stage-1-subjects"]'),o=(document.querySelector('#header a.subTitle[href="/resources/home-key-stage-1-subjects"]'),null===(e=document.querySelector('#header a.subTitle[href="/resources/home-key-stage-1-subjects"]'))||void 0===e||null===(e=e.parentElement)||void 0===e?void 0:e.querySelectorAll("a")),a=document.querySelector('#header a[href="/resources/keystage2-ks2"]'),r=(document.querySelector('#header a.subTitle[href="/resources/keystage2-ks2/ks2-subjects"]'),null===(n=document.querySelector('#header a.subTitle[href="/resources/keystage2-ks2/ks2-subjects"]'))||void 0===n||null===(n=n.parentElement)||void 0===n?void 0:n.querySelectorAll("a")),i={science:"/subjects/science",geography:"/subjects/geography",history:"/subjects/history",languages:"/subjects/languages",pe:"/subjects/pe",music:"/subjects/music",computing:"/subjects/computing",art:"/subjects/art-and-design","pshce/rshe":"/subjects/pshe",re:"/subjects/re","design & technology":"/subjects/design-and-technology","design and technology":"/subjects/design-and-technology"},c=e=>{e.forEach((e=>{const n=e.textContent.trim().toLowerCase();i[n]&&"Subject"!=i[n]&&(e.href=i[n])}))};t&&a&&12==o.length&&12==r.length&&(c(o),c(r))}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+c)}},c="categoryTopicLinksRedirect-eng"+(o.Fr?"-mobile":"-desktop"),l={n:c,tg:n,ttl:60,b:[{name:"original",weight:1,run:r},{name:"variant",weight:1,run:i}],g:{u:t,e:a},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(l),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},3206:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{window.dataLayer[0];const e=[{regex:/^\/resources\/twinkl-phonics\//,options:!o.aC.member.schoolAccount&&!!document.querySelector(".banner-ribbon-large")&&!!document.querySelector(".uk-points")}],n=(0,o.DX)(["funnel","upgrades","products"]);n.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),n.push({name:"signedUp",type:"search",regex:/signed_up/,options:!0});const t=(0,o.kQ)(["download"]);t.push({type:"click",name:"clickedHeaderGreenCTA",parentEl:"body",childEl:"a.banner-btn-uk"}),t.push({type:"click",name:"clickedHeaderGreenCTA-freeProgramgGuide",parentEl:"body",childEl:"a.banner-btn-uk[href='/resource/t-ug-039-twinkl-phonics-user-guide']"}),t.push({type:"click",name:"clickedHeaderGreenCTA-orderPhysicalResources",parentEl:"body",childEl:"a.banner-btn-uk[href='/phonics/phonics-enquiry']"}),t.push({type:"click",name:"clickedHeaderGreenCTA-twinklPhonicsForWeb",parentEl:"body",childEl:"a.banner-btn-uk[href='/phonics-app']"}),t.push({type:"click",name:"clickedHeaderGreenCTA-twinklPhonicsTraining",parentEl:"body",childEl:"a.banner-btn-uk[href='/phonics_training']"}),t.push({type:"click",name:"clickedTab",parentEl:"body",childEl:".tab-link"}),t.push({type:"click",name:"clickedResource",parentEl:"body",childEl:".res-preview a"}),t.push({type:"click",name:"clickedExtraSectionCta",parentEl:".extra-section",childEl:"a"}),t.push({type:"click",name:"clickedBannerCta",parentEl:".banner-ribbon-large",childEl:"a"});const a=()=>{try{var e,n;null===(e=document.querySelector(".banner-ribbon-large"))||void 0===e||e.remove(),null===(n=document.querySelector(".uk-points"))||void 0===n||n.remove()}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+i)}},r=()=>{try{var e,n,t,a,r;null===(e=document.querySelector(".banner-ribbon-large"))||void 0===e||e.remove(),null===(n=document.querySelector(".uk-points"))||void 0===n||n.remove(),(0,o.se)(".container-fluid.uk-header.bg-repeat-no.bg-size-cover {\n background: radial-gradient(circle at center, white 29%, #4dade3 113%) !important;\n}p.subtext.text-black.mt-2 {\n font-family: robotobold;\n text-shadow: none!important;\n}.banner-btn-uk {\n width: 265px;\n}.ctaContainer {\n width: auto;\n display: grid;\n grid-template-columns: 1fr 1fr;\n grid-template-rows: 1fr 1fr;\n justify-items: center;\n justify-content: center;\n align-content: center;\n align-items: center;\n gap: 10px;\n}.banner-btn-uk {\n font-size: 1rem!important;\n}.pt-1.row {\n display: flex;\n justify-content: center;\n}"),null===(t=document.querySelector(".banner-btn-uk"))||void 0===t||null===(t=t.parentNode)||void 0===t||null===(t=t.classList)||void 0===t||t.add("ctaContainer"),null===(a=document.querySelector(".ctaContainer"))||void 0===a||null===(a=a.classList)||void 0===a||a.remove("col-12"),null===(r=document.querySelector(".ctaContainer .clearfix"))||void 0===r||r.remove()}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+i)}},i="phonicsLandingPageCleanup",c={n:i,tg:e,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:a},{name:"variant2",weight:1,run:r}],g:{u:n,e:t},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:2}};return{shouldRun:(0,o.b3)(c),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},8280:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/$/,options:!!a.xl&&!e.user.loggedIn&&0==e.user.twinklid&&!!document.querySelector(".front_panel_container")&&/^12$|^226$/.test(e.user.country_id)&&/^1$|^11$|^12$|^25$/.test(e.user.language_id)}],t=[],r=[],i=()=>{try{var e=document.querySelector(".signUpBox h1"),n=document.querySelector(".signUpBox button.green:not(#next):not(.withArrow)");e&&(e.innerText="Create FREE account"),n&&(n.innerText="Create your FREE Twinkl account")}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+c)}},c="ProspectDashyAddFREEWordingAUSUS",l={n:c,t:()=>d(n),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"ProspectDashyAddFREEWordingAUSUS",weight:1,run:i}],g:{u:t,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",encodeCookie:!0,deploy:1}};function d(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function s(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var o;return d(n)||!!e&&e[null===(o=window.btoa(c))||void 0===o?void 0:o.replace(/=/g,"")]&&(d(t)||s(r))},codeToRun:()=>{d(n)?document.fn.events.on("twoStepSignUpDone",(()=>o.A.init(l))):(d(t)||s(r))&&(0,a.Hh)((function(){o.A.init(l)}))}}}catch(u){const p="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",u,window.location.pathname+"-"+p)}}},9861:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const t=window.dataLayer[0];var e=document.querySelector(".header-card.active"),n=document.getElementById("recently-viewed");const r=[{regex:/^\/$/,options:t.user.loggedIn&&a.xl&&a.aC.country.uk&&a.aC.lang.en&&!!e&&!!n&&!!document.getElementById("recentlyViewedList")}],i=(0,a.DX)(["funnel","upgrades","products"]);i.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const c=(0,a.kQ)(["download"]);c.push({type:"click",name:"clickedDashyResource",parentEl:"#homepage-main",childEl:".display-box a"}),c.push({type:"click",name:"clickedRecentlyViewed",parentEl:"#homepage-main",childEl:".recently-viewed-resource a"}),c.push({type:"click",name:"clickedSimilarCareers",parentEl:".members-with-similar-careers-downloaded",childEl:"a"}),c.push({type:"click",name:"clickedRecommended",parentEl:"#homepage-main",childEl:".recommended-resource a"}),c.push({type:"click",name:"clickedCalendarEvent",parentEl:"#eventsTopicsList",childEl:".event-box a"}),c.push({type:"click",name:"clickedMembersDownloading",parentEl:".members-downloading-box",childEl:".members-downloading a"}),c.push({type:"click",name:"clickedRecentlyDownloaded",parentEl:".box-body",childEl:".recently-downloaded>a"}),c.push({type:"click",name:"openedRecentlyViewedTab",parentEl:"body",childEl:".header-card"}),c.push({type:"click",name:"clickedResourceInTab",parentEl:"body",childEl:".rv-resource a"}),c.push({type:"click",name:"clickedRecentlyViewedCombined",parentEl:"body",childEl:".rv-resource a, #homepage-main .recently-viewed-resource a"});const l=()=>{try{e.remove(),n.remove()}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+d)}},d="dashyRemoveRecentlyViewedTab",s={n:d,t:()=>u(r),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:l}],g:{u:i,e:c},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function u(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function p(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return u(r)||!!e&&e[null===(n=window.btoa(d))||void 0===n?void 0:n.replace(/=/g,"")]&&(u(i)||p(c))},codeToRun:()=>{u(r)?(0,a.Gc)((function(){o.A.init(s)})):(u(i)||p(c))&&(0,a.Hh)((function(){o.A.init(s)}))}}}catch(m){const h="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",m,window.location.pathname+"-"+h)}}},8785:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/$/,options:o.Fr&&e.user.loggedIn&&/free|paid/.test(e.user.type)}];n[0].regex.test(location.pathname)&&n[0].options&&document.getElementById("homepage-main").addEventListener("click",(e=>{var n=e.target.closest("a"),t=null==n?void 0:n.closest(".display-box");n&&t&&document.fn.events.emit("clickedWidgetEvent",[...t.parentNode.children].indexOf(t))}));const t=(0,o.DX)(["funnel"]),a=(0,o.kQ)(["download"]);a.push({type:"click",name:"allClicksHomePageResources",parentEl:"#homepage-main",childEl:"a"}),a.push({type:"click",name:"clickedRecentlyViewed",parentEl:"#recentlyViewedList",childEl:".recently-viewed-resource"}),a.push({type:"click",name:"clickedTopic",parentEl:"#eventsTopicsList",childEl:".topic-calendar-image"}),a.push({type:"click",name:"clickedMembersDownloadingNow",parentEl:".members-downloading-box",childEl:".res-item a"}),a.push({type:"on",on:"clickedWidgetEvent",name:"clickedWidget-",cb:function(e){let n={...this};return n.name+=e,n}});const r=()=>{try{(0,o.se)("\n@media (max-width: 767px){\n .display-box .hidden-sm-down, .display-box .hidden-md-down {\n display: block!important;\n }\n .box-body {\n display: flex;\n flex-wrap: wrap;\n gap: 1rem 0;\n }\n}\n")}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+i)}},i="dashyWidgetsExpandedMobile",c={n:i,tg:n,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:r}],g:{u:t,e:a},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(c),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},5806:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const n=window.dataLayer[0],t=[{regex:/^\/$/,options:!o.aC.member.schoolAccount&&n.user.loggedIn&&"free"==n.user.type&&o.aC.lang.en&&o.aC.country.uk&&o.xl&&document.querySelector("div.ultimateCTAContainer.t-dropdown-container a[href^='/free-trial']")&&document.querySelector("#dashy-home .user-dashy-item[data-item='membership']")}],a=(0,o.DX)(["funnel","upgrades","products"]);a.push({name:"landedOnFreeTrial",regex:/^\/free-trial-landing/,options:!0});const r=(0,o.kQ)(["download"]);r.push({type:"click",name:"clickedLeftHandSide",parentEl:".order-1",childEl:"a"}),r.push({type:"click",name:"clickedMembership",parentEl:".order-1",childEl:"div.user-dashy-item[data-item='membership'] a"});var e=()=>{document.querySelector('.user-dashy-item[data-item="membership"]').innerHTML='
1
\n

FREE Trial

',(0,o.se)('.membershipNotification {\n position: absolute;\n top: 8px;\n right: 18px;\n background: #ff0000;\n width: 15px;\n height: 15px;\n color: white;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n align-content: center;\n font-size: 10px;\n }.user-dashy-item[data-item="membership"] a{\n position:relative;\n }')};const i=()=>{try{e()}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-control-"+l)}},c=()=>{try{e(),(0,o.se)('.membershipNotification, .user-dashy-item[data-item="membership"] svg, .user-dashy-item[data-item="membership"] p {\n animation: bounce2 1.5s ease infinite;\n}\n@keyframes bounce2 {\n\t0%, 20%, 50%, 80%, 100% {transform: translateY(0);}\n\t40% {transform: translateY(-10px);}\n\t60% {transform: translateY(-5px);}\n}\n')}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+l)}},l="freeTrialLeftHandDashyBounce",d={n:l,tg:t,ttl:60,b:[{name:"original",weight:1,run:i},{name:"variant",weight:1,run:c}],g:{u:a,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(d),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},2231:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/$/,options:!o.aC.member.schoolAccount&&e.user.loggedIn&&"free"==e.user.type&&document.querySelector('.user-dashy-item[data-item="home"]')&&document.querySelector('.user-dashy-item[data-item="membership"]')&&o.aC.lang.en&&o.aC.country.uk}],t=(0,o.DX)(["funnel","upgrades","products"]);t.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const a=(0,o.kQ)(["download"]);a.push({type:"click",name:"clickedLeftHandSide",parentEl:".order-1",childEl:"a"}),a.push({type:"click",name:"clickedMembership",parentEl:".order-1",childEl:"div.user-dashy-item[data-item='membership'] a"});const r=()=>{try{document.querySelector('.user-dashy-item[data-item="home"]').insertAdjacentElement("afterend",document.querySelector('.user-dashy-item[data-item="membership"]'))}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+i)}},i="moveFreeTrialIconToPos1",c={n:i,tg:n,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:r}],g:{u:t,e:a},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(c),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},4230:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const c=window.dataLayer[0];var e=document.querySelector(".formField.js-validate:not(.occDiv)"),n=document.querySelector(".formField.js-validate:nth-of-type(2)"),t=document.querySelector(".bottomFormHolder > button.green"),r=document.getElementById("email"),i=document.getElementById("password");const l=[{regex:/^\/$/,options:a.xl&&!c.user.loggedIn&&0==c.user.twinklid&&!!e&&!!n&&!!t&&!!r&&!!i&&/^226$/.test(c.user.country_id)&&/^1$|^11$|^12$|^25$/.test(c.user.language_id)&&"www.twinkl.com"==location.hostname&&/^US/.test(c.geo)}],d=(0,a.DX)(["funnel"]);d.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),d.push({name:"sign-up",type:"search",regex:/signed_up/,options:!0}),d.push({name:"visitedSignUp",type:"pathname",regex:/^\/sign-up$/,options:!0}),d.push({name:"visitedSignIn",type:"pathname",regex:/^\/sign-in$/,options:!0}),d.push({name:"visitedProspectDashy",type:"pathname",regex:/^\/$/,options:!c.user.loggedIn&&0==c.user.twinklid});const s=(0,a.kQ)(["download"]);s.push({type:"click",name:"clickedSignInInstead",parentEl:"#new_sign_up_form",childEl:".signInHolder a"}),s.push({type:"click",name:"clickedNext",parentEl:"#new_sign_up_form",childEl:"#next"}),s.push({type:"click",name:"clickedBack",parentEl:"#new_sign_up_form",childEl:"#back"}),s.push({type:"click",name:"clickedSubmit",parentEl:"#new_sign_up_form",childEl:"button.button.green:not(#next)"});const u=()=>{try{document.fn.events.emit("twoStepSignUpDone")}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-control-"+m)}},p=()=>{try{var o=!1,c=new RegExp("^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$");r.addEventListener("input",(function(){var e=r.value;o=c.test(e)}));var l=document.createElement("div");l.className="email-input-div",r.insertAdjacentElement("beforebegin",l),l.appendChild(r),n.classList.add("hidden"),i.placeholder="Create a password",r.placeholder="Enter your email",t.classList.add("hidden"),t.classList.add("withArrow"),t.innerHTML='',n.insertAdjacentElement("beforeend",t);var d=document.createElement("button");d.id="next",d.className="button green",d.innerHTML='',e.insertAdjacentElement("beforeend",d);var s=document.createElement("div");s.id="back",s.className="hidden",s.className="backToEmail hidden",s.innerHTML='',n.insertAdjacentElement("afterend",s),d.addEventListener("click",(a=>{a.preventDefault(),o&&(e.classList.add("hidden"),n.classList.remove("hidden"),n.focus(),s.classList.remove("hidden"),t.classList.remove("hidden"),document.querySelector(".form-error")&&document.querySelector(".form-error").remove())})),document.querySelector("#back .backToEmailLink").addEventListener("click",(function(){n.classList.add("hidden"),e.classList.remove("hidden"),e.focus(),s.classList.add("hidden")}));var u=document.createElement("div");u.className="signInHolder",u.innerHTML='Already have an account? Sign in instead',document.querySelector(".signUpBox").appendChild(u),(0,a.se)(".hidden, .hide {display: none!important;} #new_sign_up .formField:not(.occDiv):not(.otherOccupation), .signUpInHolder .formField:not(.occDiv):not(.otherOccupation) {display: flex; flex-wrap: wrap; column-gap: 10px;} .formField .password-input-div, .formField .email-input-div {flex: 6; display: flex;} .formField button {flex: 1} .has-error .form-error {width: 100%;} #back {color: #0066c0; width: 100%; text-align: left; font-size: 12px; margin-top: 10px;} .password-input-div input, .email-input-div input {height: 100%;} #next {background-color: #5d8200;} #next:hover {background-color: #4c6509;} #new_sign_up_form .bottomFormHolder {padding: 1px 0 0;} #new_sign_up, .signUpInHolder, #front_panel_search .new_sign_up_form {width: 500px!important; max-width: 500px!important;} .prospect-height {height: 420px!important;} .backToEmailLink {max-width: max-content; white-space: nowrap; display: inline-block; cursor: pointer;} .backToEmailLink:hover {text-decoration: underline;} .new_sign_up .signUpBox {margin-top: 0;} #new_sign_up .formField, .signUpInHolder .formField {margin-bottom: 18px; margin-bottom: 0;} .signInHolder {font-size: 12px;} #new_sign_up label {position: absolute; left: 26px; top: 58px; background: #fff; max-width: max-content; padding-right: 5px; padding-left: 5px; z-index: 1;} #new_sign_up input, .signUpInHolder input {padding: 4px 10px;} .email-input-div {position: relative; cursor: pointer;} .signInHolder a:hover {color: #0066c0;}"),document.fn.events.emit("twoStepSignUpDone"),(0,a.Hh)((()=>{$(document).on("ajaxComplete",(function(e,n,t){var o;/\/user\/create$/.test(t.url)&&(null===(o=document.querySelector(".backToEmailLink"))||void 0===o||o.click(),document.querySelector("#new_sign_up label").classList.add("error"),(0,a.se)(".email-input-div.has-error {\n display: flex;\n flex-direction: column;\n }.has-error .form-error {\n margin-top: 12px;\n }"))}))}))}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+m)}},m="prospectDashyTwoStepSignUpUKDesktop",h={n:m,t:()=>g(l),ttl:60,b:[{name:"original",weight:1,run:u},{name:"variant",weight:1,run:p}],g:{u:d,e:s},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function g(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function y(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return g(l)||!!e&&e[null===(n=window.btoa(m))||void 0===n?void 0:n.replace(/=/g,"")]&&(g(d)||y(s))},codeToRun:()=>{g(l)?(0,a.Gc)((function(){o.A.init(h)})):(g(d)||y(s))&&(0,a.Hh)((function(){o.A.init(h)}))}}}catch(w){const v="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",w,window.location.pathname+"-"+v)}}},9199:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const t=window.dataLayer[0];var e=t.recommendation,n=function(){var n=document.querySelector("#rvl");n.innerHTML="",e.user.forEach((function(e,t){if(t<=3){n.insertAdjacentHTML("beforeend",'');for(var o=e.rating.average,a=0;a<5;a++)a'):document.querySelectorAll("#rvl .starRating")[t].insertAdjacentHTML("beforeend",'
')}})),document.fn.events.emit("loadedContent")};const r=[{regex:/^\/$/,options:!!e&&e.user.length>3&&/^244$|^247$|^246$|^245$/.test(t.user.country_id)&&/^1$|^11$|^12$|^25$|^136$|^159$|^161$/.test(t.user.language_id)}],i=(0,a.DX)(["funnel","upgrades","products"]);i.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const c=(0,a.kQ)(["download"]);c.push({type:"click",name:"allClicksHomePageResources",parentEl:"#homepage-main",childEl:"a"}),c.push({type:"click",name:"clickedRecentlyViewed",parentEl:"#recentlyViewedList",childEl:".recently-viewed-resource"}),c.push({type:"click",name:"clickedTopic",parentEl:"#eventsTopicsList",childEl:".topic-calendar-image"}),c.push({type:"click",name:"clickedMembersDownloadingNow",parentEl:".members-downloading-box",childEl:".members-downloading"}),c.push({type:"click",name:"clickedRecommendedForYou",parentEl:".box-body#recommendedViewedList",childEl:".recommended-resource a"}),c.push({type:"click",name:"clickedRecommendedForYou",parentEl:".box-body#rvl",childEl:".recommended-resource a"}),c.push({type:"click",name:"membersWithSimilarCareersDownloaded",parentEl:".display-box .box-body .members-with-similar-careers-downloaded",childEl:"a"});const l="recommendedForYouDashyReset1",d={n:l,t:()=>s(r),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"recommendedForYouDashy",weight:1,run:()=>{try{document.querySelector("#recommendedViewedList").id="rvl",n()}catch(e){}}},{name:"recommendedForYouDashy2",weight:1,run:()=>{try{document.querySelector("#recommendedViewedList").id="rvl",n(),document.querySelector('.display-box[data-title="recently-viewed"]').insertAdjacentElement("afterend",document.querySelector(".display-box#recommended-list-show"))}catch(e){}}}],g:{u:i,e:c},o:{bucket:-1,testing:!1,fnDataApi:"ga",encodeCookie:!0,deploy:2}};function s(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function u(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return s(r)||!!e&&e[null===(n=window.btoa(l))||void 0===n?void 0:n.replace(/=/g,"")]&&(s(i)||u(c))},codeToRun:()=>{s(r)?o.A.init(d):(s(i)||u(c))&&(0,a.Gc)((function(){o.A.init(d)}))}}}catch(p){(0,a.BI)("AB",p,location.pathname+"-"+expName)}}},8032:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/$/,options:!o.aC.member.schoolAccount&&!e.user.loggedIn&&!!e.user.twinklid&&"free"==e.user.type&&!!document.querySelector(".aboutTwinklBox")&&!!document.querySelector(".welcome-back-box")&&document.querySelector('.display-box[data-title="recently-viewed"]')}],t=(0,o.DX)(["funnel","upgrades","products"]);t.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),t.push({name:"sign-up",type:"search",regex:/signed_up/,options:!0});const a=(0,o.kQ)(["download"]);a.push({type:"click",name:"clickSignInButtonOnPage",parentEl:"#homepage-main",childEl:"a[href='sign-in']"}),a.push({type:"click",name:"clickedRecentlyViewed",parentEl:"#homepage-main",childEl:".res-item a"}),a.push({type:"click",name:"clickedWelcomeBackSignIn",parentEl:"#homepage-main",childEl:".welcome-back-box a"});const r=()=>{try{var e;null===(e=document.querySelector(".welcome-back-box"))||void 0===e||e.remove();var n=document.querySelector(".aboutTwinklBox");document.querySelector("#homepage-main").insertAdjacentElement("afterbegin",n)}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+i)}},i="signInButtonAtTheTopOfDashyLoggedOut",c={n:i,tg:n,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:r}],g:{u:t,e:a},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(c),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},6906:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{var e;const t=window.dataLayer[0],a="MMOrder",r=[{regex:/^\//,options:o.aC.country.is("244")&&/^21$|^22$|^23$|^47$|^110$|^0$/.test(null==t||null===(e=t.user)||void 0===e?void 0:e.career_id)&&o.Fr&&!!window.document.querySelector(".menuTab")}];if(r[0].options){var n=document.querySelector(".menuTab");n&&n.addEventListener("click",(e=>{var n=e.target.closest(".menuTab>li>a");if(n){var t=n.parentNode;window.document.fn.events.emit("mmHeaderClick",[...t.parentNode.children].indexOf(t))}}))}const i=(0,o.DX)(["funnel"]);i.push({name:"signed-up",type:"search",regex:/signed_up/,options:!0});const c=(0,o.kQ)(["download"]);c.push({type:"click",name:"clickedMMHome",parentEl:".menuTab",childEl:'.menuTab>li>a[href="/"]'}),c.push({type:"click",name:"clickedAnyMMTop",parentEl:".menuTab",childEl:".menuTab>li>a"}),c.push({type:"click",name:"clickedAnyMMDropdownTop",parentEl:".menuTab",childEl:"a.megaMenuArrowDown"}),c.push({type:"click",name:"clickedAnyMM",parentEl:".menuTab",childEl:"a"}),c.push({type:"click",name:"clickedAnyMMNested",parentEl:".menuTab",childEl:".megaMenuArrowDown ~ ul a"}),c.push({type:"on",on:"mmClicked",name:"clickedAnyMMNested",parentEl:".menuTab",childEl:".megaMenuArrowDown ~ ul a"}),c.push({type:"on",on:"mmHeaderClick",name:"clickedMMIndex-",cb:function(e){let n={...this};return n.name+=e,n}});const l={n:a,tg:r,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:()=>{try{var e=document.querySelectorAll(".megaMenuArrowDown"),n=null==e?void 0:e[e.length-1].parentNode.nextElementSibling;e&&e.length&&n&&[...document.querySelectorAll(".menuTab>li>a")].some((e=>("/"!==e.getAttribute("href")&&-1==e.getAttribute("href").indexOf("recommendation")&&-1==e.className.indexOf("megaMenuArrowDown")&&n.insertAdjacentElement("beforebegin",e.parentNode),e.className.indexOf("megaMenuArrowDown")>-1)))}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+a)}}}],g:{u:i,e:c},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(l),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},737:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/free-trial-payment\//,options:!a.aC.member.schoolAccount&&e.user.loggedIn&&"free"==e.user.type&&a.aC.lang.en&&a.xl&&document.querySelector(".yearly")&&document.querySelector(".monthly")&&(a.aC.country.uk||/^226$|^154$|^12$/.test(e.user.country_id))}],t=(0,a.DX)(["funnel","products"]);t.push({name:"paymentTrial",regex:/^\/trial$|^\/free-trial-payment\/|^\/trial-free$/,options:!!document.querySelector(".payMonthlyDiv")}),t.push({name:"payment",regex:/^\/trial$|^\/free-trial-payment\/|^\/trial-free$/,options:!!document.querySelector(".payMonthlyDiv")}),t.push({name:"payFinalOffer",regex:/^\/a-payment\/monthly\//,options:!!document.querySelector(".freeTrial99Label")});const r=(0,a.kQ)(["download"]);r.push({type:"click",name:"clickedAnnualButton",parentEl:"body",childEl:".yearly"}),r.push({type:"click",name:"clickedMonthlyButton",parentEl:"body",childEl:".monthly"});const i=()=>{},c=()=>{try{document.querySelectorAll(".payableAs").forEach((e=>e.innerText="Cancel trial any time"))}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+d)}},l=()=>{try{document.querySelectorAll(".payableAs").forEach(((n,t)=>{n.innerText=0==t?226==e.user.country_id&&12==e.user.language_id?"Paid annually":"Paid Annually":226==e.user.country_id&&12==e.user.language_id?"Cancel any time":"Paid Monthly"}))}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+d)}},d=`cancelTrialAnyTimeABC-${a.aC.country.uk?"UK":e.user.country_id}-${e.user.language_id}`,s={n:d,t:()=>u(n),ttl:60,b:[{name:"original",weight:1,run:i},{name:"variant",weight:1,run:c},{name:"variant2",weight:1,run:l}],g:{u:t,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function u(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function p(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var o;return u(n)||!!e&&e[null===(o=window.btoa(d))||void 0===o?void 0:o.replace(/=/g,"")]&&(u(t)||p(r))},codeToRun:()=>{u(n)?(0,a.Gc)((function(){o.A.init(s)})):(u(t)||p(r))&&(0,a.Hh)((function(){o.A.init(s)}))}}}catch(m){const h="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",m,window.location.pathname+"-"+h)}}},1515:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const c=window.dataLayer[0];if(a.Fr&&/^\/payment$/.test(window.location.pathname))var e=document.getElementById("monthly-payment-btn"),n=document.getElementById("payment-form"),t=document.querySelector("#front_panel_1.paymentPanel.mobile-paymentPanel .topUSP")?document.querySelector("#front_panel_1.paymentPanel.mobile-paymentPanel .topUSP").innerText.match(/Core|Extra|Ultimate/):void 0,r=t&&"Core"==t?"£53.88":t&&"Extra"==t?"£74.88":t&&"Ultimate"==t?"£101.88":void 0,i=t&&"Core"==t?"5.29":t&&"Extra"==t?"7.39":t&&"Ultimate"==t?"9.99":void 0;const l=[{regex:/^\/payment$/,options:!!a.Fr&&c.user.loggedIn&&"free"==c.user.type&&!!e&&!!n&&!!t&&!!r&&!!i&&!/^47$|^781$/.test(c.user.career_id)&&/^244$|^245$|^246$|^247$/.test(c.user.country_id)&&/^1$|^11$|^12$|^25$/.test(c.user.language_id)}],d=[],s=[],u=()=>{try{var t=document.createElement("div"),o=document.createElement("div");t.className="annualTab",o.className="annualTabOverlay";var c=e.getAttribute("href"),l=n.cloneNode(!0);l.id="payment-formDupe",l.querySelector("button").innerText="Select Annual",l.style="display: block";var d=l.outerHTML,s=12*+i;s=s.toFixed(2),t.innerHTML=`
Switch to annual and save!

Only ${r}/year compared to £${s}/year with a monthly plan

${d}Continue with Monthly`,document.body.appendChild(t),document.body.appendChild(o),e.addEventListener("click",(function(e){e.preventDefault(),o.classList.add("showing"),t.classList.add("showing")})),(0,a.se)(".annualTab{position: absolute; display: none}.annualTabOverlay{display: none; position: fixed; width: 100%; height: 100%; background-color: #000; top: 0; opacity: 0.5; left: 0; animation: bottomNavOverlay 0.35s linear; z-index: 111111;}.annualPinkBanner{font-family: robotobold,Arial,Helvetica,sans-serif; background-color: #d91878; color: #fff; padding: 6px 0; height: max-content; width: 100%; box-shadow: 0 2px 4px rgb(0 0 0 / 40%);}.annualTab p.annualPrice{padding: 25px 20px 10px 20px;}.keepMonthly{font-family: robotobold,Arial,Helvetica,sans-serif; padding-top: 30px; padding-bottom: 20px;}.annualTab a.largeButton{width: 85%;}.annualTab a.green:hover{color: #fff; text-decoration: none;.annual}.annualTabOverlay.showing{display: block;}.annualTab.showing{position: fixed; overflow: hidden; display: flex; flex-direction: column; align-items: center; width: 100%; text-align: center; background: white; bottom: 0; height: 280px; border-radius: 15px 15px 0 0; z-index: 1111111111; padding: 20px 0; animation: moveUp .35s cubic-bezier(0.895, 0.030, 0.685, 0.220) forwards;}.annualTab form{width: 100%;}.annualTab form button{width: 75%;}@keyframes moveUp{0%{bottom:-280px;}100%{bottom:0;}")}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+p)}},p="mobilePaymentAnnualPrompt",m={n:p,t:()=>h(l),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"mobilePaymentAnnualPrompt",weight:1,run:u}],g:{u:d,e:s},o:{bucket:-1,testing:!0,fnDataApi:"ga",encodeCookie:!0,deploy:1}};function h(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function g(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return h(l)||!!e&&e[null===(n=window.btoa(p))||void 0===n?void 0:n.replace(/=/g,"")]&&(h(d)||g(s))},codeToRun:()=>{h(l)?(0,a.Gc)((function(){o.A.init(m)})):(h(d)||g(s))&&(0,a.Hh)((function(){o.A.init(m)}))}}}catch(y){const w="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",y,window.location.pathname+"-"+w)}}},2848:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const n=window.dataLayer[0],t=[{regex:/^\/a-payment\/monthly\//,options:a.xl&&!a.aC.member.schoolAccount&&n.user.loggedIn&&"free"==n.user.type&&!!document.querySelector(".freeTrial99Label")&&a.aC.lang.en&&(a.aC.country.uk||/^226$|^154$|^12$/.test(n.user.country_id))&&document.querySelector("#order_summary")}],r=(0,a.DX)(["funnel","upgrades","products"]);r.push({name:"premiumThanksSub",regex:/^\/premium-thanks/,options:!0});const i=(0,a.kQ)(["download"]);i.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),i.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"});var e=e=>{document.querySelector("#order_summary").insertAdjacentHTML("afterend",`
Trusted Icon

${e}

\n \n
Trusted Icon

Cancel trial anytime.

\n\n\n
Trusted Icon

Unlimited access to millions of resources!

\n \n
`),(0,a.se)(".noPaymentTaken{\n display: none;}\n .uspPara {\n border-radius: 5px;\n font-size: 13px;\n margin:0!important;\n }.uspContainer{\n padding: 15px;\n background: #ddeffd94;\n border: 2px solid #2399f9a1;\n display: flex;\n flex-direction: column;\n gap: 14px;\n border-radius: 15px;\n margin-bottom:25px;\n }.paymentPageUsp {\n display: flex;\n align-items: center;\n align-content: center;\n gap: 15px;\n }")};const c=()=>{try{e("Nothing to pay today.")}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-control-"+d)}},l=()=>{try{e("Rest easy, nothing to pay today!")}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+d)}},d=`nothingToPayTodayVariant${a.aC.country.uk?"UK":n.user.country_id}`,s={n:d,t:()=>u(t),ttl:60,b:[{name:"original",weight:1,run:c},{name:"variant",weight:1,run:l}],g:{u:r,e:i},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function u(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function p(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return u(t)||!!e&&e[null===(n=window.btoa(d))||void 0===n?void 0:n.replace(/=/g,"")]&&(u(r)||p(i))},codeToRun:()=>{u(t)?(0,a.Gc)((function(){o.A.init(s)})):(u(r)||p(i))&&(0,a.Hh)((function(){o.A.init(s)}))}}}catch(m){const h="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",m,window.location.pathname+"-"+h)}}},4370:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/premium\/individual\/secondary$/,options:!!a.xl&&"paid"!==e.user.type&&/^244$|^245$|^246$|^247$/.test(e.user.country_id)&&/^1$|^11$|^12$|^25$/.test(e.user.language_id)}],t=(0,a.DX)(["funnel","upgrades","products"]),r=(0,a.kQ)(["download"]),i=()=>{try{(0,a.se)('.bg-beyond-blue[data-id="secondary-resource-pack"] {\n display: none;\n}')}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+c)}},c="removeFreeResourcePackSecondaryPremium",l={n:c,t:()=>d(n),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:i}],g:{u:t,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",encodeCookie:!0,deploy:1}};function d(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function s(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var o;return d(n)||!!e&&e[null===(o=window.btoa(c))||void 0===o?void 0:o.replace(/=/g,"")]&&(d(t)||s(r))},codeToRun:()=>{d(n)?(0,a.Gc)((function(){o.A.init(l)})):(d(t)||s(r))&&(0,a.Hh)((function(){o.A.init(l)}))}}}catch(u){const p="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",u,window.location.pathname+"-"+p)}}},6186:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/premium\/school\/primary$/,options:e.user.loggedIn&&!!e.user.schoolAccount&&(document.querySelector(".coreSub.current")||document.querySelector(".extraSub.current"))&&a.aC.country.uk&&a.aC.lang.en&&a.xl}],t=(0,a.DX)(["funnel","upgrades","products"]);t.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const r=(0,a.kQ)(["download"]);r.push({type:"click",name:"requestAccess",parentEl:".packages",childEl:".contactAdmin.green"});const i=()=>{try{if(document.querySelector(".coreSub.current")){(0,a.se)(".packageBox-wrapper {\n padding: 0px!important;\n}.current .packageBox-wrapper-intro {\n color: grey!important;\n}.packageBox-wrapper.col-12.col-md-4.coreSub.current {\n background: unset;\n border: unset!important;\n box-shadow: unset!important;\n}.order-5.order-md-0 {\n border-radius: 5px;\n}.current .order-5.order-md-0 {\n border: 3px solid #bebebe;\n}.header {\n padding-top: 0!important;\n}p.largeTitle {\n margin: unset!important;\n padding: 15px 0!important;\n color:white!important;\n line-height:unset!important;\n}.coreSub p.largeTitle {\n background: #bebebe;\n}.extraSub p.largeTitle {\n background: #bebebe;\n}.ultimateSub p.largeTitle {\n background-color: #601a91;\n font-size: 35px!important;\n padding: 15px 0!important;\n}a.whatsInTheBundle {\n border-bottom: unset!important;\n}.packageBox-wrapper {\n max-width: 30%!important;\n margin-right: 26px;\n}.extraSub .header {\n border: 3px solid #e873ae;\n border-radius: 4px;\n border-bottom:3px solid #e873ae!important;\n}.ultimateSub .header{\n border: 3px solid #601a91;\n border-radius: 4px;\n border-bottom: 3px solid #601a91!important;\n}.ultimateSub .packageBox-wrapper-intro {\n color: grey;\n}.extraSub p.largeTitle {\n background-color: #e873ae;\n}.schoolPackageBox.schoolCore .header {\n border-bottom: unset!important;\n}.schoolPremiumPackages .packages {\n clear: both;\n display: flex;\n align-items: flex-end;\n}.header {\n height: 336px!important;\n}.ultimateSub .subTitle {\n margin-top: 10px;\n}");var e=(n=document.querySelector(".packageBox-wrapper-intro")).cloneNode(!0);(t=n.cloneNode(!0)).innerText="Our Most Popular Subscription!",document.querySelector(".extraSub").insertAdjacentElement("afterbegin",e),document.querySelector(".ultimateSub").insertAdjacentElement("afterbegin",t),document.querySelectorAll(".header .contactAdmin.green").forEach((e=>{e.innerText="Request Access"}))}else if(document.querySelector(".extraSub.current")){var n,t;(0,a.se)(".packageBox-wrapper {\n padding: 0px!important;\n}.current .packageBox-wrapper-intro {\n color: grey!important;\n background-color:unset!important;\n}.extraSub.current {\n background: unset;\n border: unset!important;\n box-shadow: unset!important;\n}.order-5.order-md-0 {\n border-radius: 5px;\n}.current .order-5.order-md-0 {\n border: 3px solid #bebebe;\n}.header {\n padding-top: 0!important;\n}p.largeTitle {\n margin: unset!important;\n padding: 15px 0!important;\n color:white!important;\n line-height:unset!important;\n}.extraSub p.largeTitle {\n background: #bebebe;\n}.ultimateSub p.largeTitle {\n background-color: #601a91;\n font-size: 35px!important;\n padding: 15px 0!important;\n}a.whatsInTheBundle {\n border-bottom: unset!important;\n}.packageBox-wrapper {\n max-width: 30%!important;\n margin-right: 26px;\n}.ultimateSub .header{\n border: 3px solid #601a91;\n border-radius: 4px;\n border-bottom: 3px solid #601a91!important;\n}.ultimateSub .packageBox-wrapper-intro {\n color: grey;\n}.schoolPackageBox.schoolCore .header {\n border-bottom: unset!important;\n}.header {\n height: 336px!important;\n}.ultimateSub .subTitle {\n margin-top: 10px;\n}.packageBox-wrapper.current.extraSub{\n background:unset!important;\n}.current .header {\n border: 3px solid #bebebe;\n border-radius: 4px;\n border-bottom: 3px solid #bebebe!important;\n}.coreSub{\n display:none!important;\n}.schoolPremiumPackages .packages {\n clear: both;\n display: flex;\n align-items: center;\n justify-content: center;\n}"),(t=(n=document.querySelector(".packageBox-wrapper-intro")).cloneNode(!0)).innerText="Our Most Popular Subscription!",document.querySelector(".ultimateSub").insertAdjacentElement("afterbegin",t),document.querySelectorAll(".header .contactAdmin.green").forEach((e=>{e.innerText="Request Access"}))}}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+c)}},c="schoolAccountPremiumPage",l={n:c,t:()=>d(n),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:i}],g:{u:t,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",encodeCookie:!0,deploy:1}};function d(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function s(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var o;return d(n)||!!e&&e[null===(o=window.btoa(c))||void 0===o?void 0:o.replace(/=/g,"")]&&(d(t)||s(r))},codeToRun:()=>{d(n)?(0,a.Gc)((function(){o.A.init(l)})):(d(t)||s(r))&&(0,a.Hh)((function(){o.A.init(l)}))}}}catch(u){const p="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",u,window.location.pathname+"-"+p)}}},7681:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{var e,n;const t=window.dataLayer[0],r=[{regex:/^\/premium$|^\/premium\/individual$/,options:a.xl&&t.user.loggedIn&&"paid"==t.user.type&&"Ultimate"!=(null===(e=t.user.subscription)||void 0===e||null===(e=e.bundle)||void 0===e?void 0:e.name)&&(null===(n=t.user.subscription)||void 0===n||null===(n=n.bundle)||void 0===n?void 0:n.name)&&/^244$|^247$|^246$|^245$/.test(t.user.country_id)&&/^1$|^11$|^12$|^25$|^136$|^159$|^161$/.test(t.user.language_id)}],i=(0,a.DX)(["funnel","upgrades","products"]);i.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const c=(0,a.kQ)(["download"]);c.push({type:"click",name:"clickedUpgrade",parentEl:"#choose-package",childEl:"label.green"}),c.push({type:"click",name:"clickedUltimateUpgrade",parentEl:"#choose-package",childEl:"label.green[for='bundleType3']"}),c.push({type:"click",name:"clickedExtraUpgrade",parentEl:"#choose-package",childEl:"label.green[for='bundleType2']"}),c.push({type:"click",name:"clickedWhatsInsideUltimate",parentEl:"#choose-package",childEl:".platinumPlus a.whatsInTheBundle"}),c.push({type:"click",name:"clickedWhatsInsideExtra",parentEl:"#choose-package",childEl:".platinum a.whatsInTheBundle"});const l=()=>{try{var e,n=(e,n,o,r)=>{var i;if("Core"==(null==t||null===(i=t.user)||void 0===i||null===(i=i.subscription)||void 0===i||null===(i=i.bundle)||void 0===i?void 0:i.name)){var c,l;(0,a.se)(".current p.largeTitle{background-color:#bebebe;margin-top:-17px;padding:16px;width:103%;margin-left:-5px;color:#fff}.packageBox-wrapper.col-12.col-md-4.classicSub.current{background-color:unset;border:unset;box-shadow:unset}.current .header{border:unset}.packageBox.classicSub.current{border:2px solid #bebebe!important}.current p.updatePaymentMethods{padding:11px;margin-top:50px;opacity:.7}.current a.whatsInTheBundle{opacity:.6}.packageBox.platinum.upgrade{box-shadow:unset;border:3px solid #e765a6;opacity:.9}.platinum p.largeTitle{background-color:#e765a6;margin-top:-17px;padding:16px;width:103%;margin-left:-5px;color:#fff}.platinumPlus .header{border-radius:0}.platinumPlus p.largeTitle{background-color:#601a91;margin-top:-17px;padding:16px;width:103%;margin-left:-5px;color:#fff;border-radius:0!important}.packageBox.platinumPlus.upgrade{border:4px solid #601a91}.packageBox-wrapper.col-12.col-md-4.platinumPlus.upgrade{margin-top:27px!important}.platinum .header{border-radius:0;border-bottom:0!important}.subscription .packageBox-wrapper a.whatsInTheBundle{border-bottom:0}p.upgradeFor{font-size:16px;margin-bottom:8px;font-weight:800;margin-top:28px}p.strikethroughPrice{font-size:15px;text-decoration:line-through;color:#909090;font-weight:700}.strikethroughPrice span{font-size:10px}p.money{font-size:30px;font-weight:700;margin-top:5px;color:#5d8200}.money span{font-size:14px}.packageBox.platinumPlus.upgrade{border:4px solid #601a91}.current .header{border-radius:unset}.packageBox-wrapper.col-12.col-md-4.platinumPlus.upgrade{margin-top:-13px!important}.packageBox{overflow:hidden}.packageBox-wrapper-intro{color:grey!important}.packageBox-wrapper.col-12.col-md-4.platinumSub.upgrade{margin-top:27px!important}.packageBox.platinumPlus.upgrade.open .header{border-bottom:unset!important}.header {border: unset!important;border-radius: 0px!important;}.platinum .largeTitle {margin-bottom: 30px;}.platinum label.green {background-color: #5d8200d4;}"),null===(c=document.querySelector(".platinumPlus.upgrade .largeTitle"))||void 0===c||c.insertAdjacentHTML("afterend",`

Upgrade to Ultimate for an extra:

${e}pcm

${n}pcm

`);var d,s=null===(l=document.querySelector(".packageBox-wrapper-intro"))||void 0===l?void 0:l.cloneNode(!0);s&&(s.innerText="Our Most Popular Bundle!",null===(d=document.querySelector(".packageBox-wrapper.platinumPlus"))||void 0===d||d.insertAdjacentElement("afterbegin",s))}else{var u,p;if((0,a.se)(".upgradeContainer {width: 100%;display: flex;justify-content: center;}.packageBox-wrapper.col-12.col-md-4.platinumPlus.upgrade {margin-top: -10px!important;}.subscription .packageBox-wrapper.current.extraSub, .subscription .packageBox-wrapper.current.platinumSub {border: none;background-color: transparent;box-shadow: none;}.packageBox .header {background-color: #fff;padding-top: 15px;border-top-left-radius: 4px;border-top-right-radius: 4px;font-size: 13px;border: 2px solid #bebebe;}.packageBox.platinum .header {border-bottom: 2px solid #bebebe;border-color: #bebebe;border-bottom-right-radius: 4px;border-bottom-left-radius: 4px}.header{max-height:414px!important;padding:0px;margin:0px;overflow:hidden;display:flex;flex-direction:column;width:100%}.topElement {background-color: #bebebe;width: 100%;margin-top: -15px;margin-bottom: 25px;}#premium_form:not(.subscription) .packageBox-wrapper .packageBox .header p:last-child{padding-top:10px}.subscription .packageBox-wrapper-intro{color:#727272}.subscription .packageBox-wrapper.current .packageBox, .subscription .packageBox-wrapper.current .schoolPackageBox{border-color:#fff0;box-shadow:none;}.packageBox .largeTitle{color:#fff}.packageBox.platinumPlus.upgrade .topElement{background:#601a91;}.packageBox.platinumPlus.upgrade {margin-top: -2px;}.packageBox{border:none}.packageBox.platinumPlus .header {border-color: #601a91;border: 4px solid #601a91;border-bottom: 8px solid #601a91;}.subscription .packageBox-wrapper a.whatsInTheBundle{border:none}.packageBox .header{border-bottom-right-radius: 4px;border-bottom-left-radius: 4px;}.subscription .packageBox-wrapper.extraSub a.whatsInTheBundle, .subscription .packageBox-wrapper.platinumSub a.whatsInTheBundle{color: #f067abab;}p.money {font-size: 30px;font-weight: 700;}p.upgradeFor {font-size: 16px;margin-bottom: 8px;font-weight: 800;}p.strikethroughPrice {font-size: 15px;text-decoration: line-through;color: #909090;font-weight: 700;}.strikethroughPrice span {font-size: 10px;}p.money {font-size: 30px;font-weight: 700;margin-top: 5px;color: #5d8200;}.money span {font-size: 14px;}.platinumPlus.upgrade p:nth-of-type(n+4){opacity:0.8;margin-top:10px}.packageBox p.updatePaymentMethods{padding: 0 20px;color: #888888;}.packageBox.platinumPlus.upgrade.open .header {border-bottom: none;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;border-right: none;border-left: none;}.packageBox.platinumPlus.upgrade.open {border-bottom: 8px solid #601a91;border-right: 4px solid #601a91;border-left: 4px solid #601a91;border-top-right-radius: 8px;border-top-left-radius: 8px;}"),"Extra"==(null===(u=t.user)||void 0===u||null===(u=u.subscription)||void 0===u||null===(u=u.bundle)||void 0===u?void 0:u.name)){var m,h,g,y=document.querySelector(".inactive");y&&y.remove(),null===(m=document.querySelector(".current"))||void 0===m||null===(m=m.parentNode)||void 0===m||m.insertAdjacentHTML("afterbegin",'
'),document.querySelectorAll(".packageBox-wrapper").forEach((function(e){var n,t,o;null===(n=e.querySelector(".header"))||void 0===n||n.insertAdjacentHTML("afterbegin",'
');var a=e.querySelector(".largeTitle");null===(t=e.querySelector(".topElement"))||void 0===t||t.insertAdjacentElement("afterbegin",a),null===(o=document)||void 0===o||null===(o=o.querySelector(".upgradeContainer"))||void 0===o||o.insertAdjacentElement("beforeend",e)})),null===(h=document.querySelector(".upgrade .packRec"))||void 0===h||h.remove();var w,v=null===(g=document.querySelector(".packageBox-wrapper-intro"))||void 0===g?void 0:g.cloneNode(!0);v&&(v.innerText="Our Most Popular Bundle!",null===(w=document.querySelector(".upgrade"))||void 0===w||w.insertAdjacentElement("afterbegin",v))}null===(p=document.querySelector(".platinumPlus .topElement"))||void 0===p||p.insertAdjacentHTML("afterend",`

Upgrade to Ultimate for an extra:

${o}pcm

${r}pcm

`)}};/^19$|^20$/.test(null===(e=t.user.subscription)||void 0===e?void 0:e.type_id)?n("£4.70","£3.20","£2.60","£1.10"):n("£6.29","£4.00","£4.49","£2.25");var o=document.querySelectorAll(".packageBox:not(.current) label.green");null==o||o.forEach((e=>{e&&(e.innerText="Continue")})),document.fn.events.emit("upgraderedesignFinished")}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+d)}},d="freeWordingUpgradePage1",s={n:d,t:()=>u(r),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:l}],g:{u:i,e:c},o:{bucket:-1,testing:!0,fnDataApi:"ga",encodeCookie:!0,deploy:1}};function u(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function p(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return u(r)||!!e&&e[null===(n=window.btoa(d))||void 0===n?void 0:n.replace(/=/g,"")]&&(u(i)||p(c))},codeToRun:()=>{u(r)?(0,a.Gc)((function(){o.A.init(s)})):(u(i)||p(c))&&(0,a.Hh)((function(){o.A.init(s)}))}}}catch(m){const h="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",m,window.location.pathname+"-"+h)}}},3371:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const n=window.dataLayer[0];var e=document.querySelector("a[href*='/resource'] > .primaryCTA");const t=[{regex:/^\/resources\/inclusion-teaching-resources$|^\/resources\/planit-primary-teaching-resources$|^\/resources\/twinkl-boost$/,options:!!e&&n.user.loggedIn&&"free"==n.user.type&&a.aC.country.uk}],r=(0,a.DX)(["funnel","products"]);r.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),r.push({name:"visitedGuideResourcePage",type:"pathname",regex:/^\/resource\/t-ug-042-twinkl-boost-user-guide$|\/resource\/t-ug-043-twinkl-inclusion-user-guide$|\/resource\/tp-t-000-planit-user-guide$/,options:!0}),r.push({name:"visitedResourcePage",type:"pathname",regex:/^\/resource\//,options:!0});const i=(0,a.kQ)(["download"]);i.push({type:"click",name:"clickedPrimaryCTA",parentEl:".bannerContent",childEl:"a .primaryCTA"}),i.push({path:/^\/resource\/t-ug-042-twinkl-boost-user-guide$|\/resource\/t-ug-043-twinkl-inclusion-user-guide$|\/resource\/tp-t-000-planit-user-guide$/,type:"click",name:"DownloadedGuide",parentEl:"body",childEl:"#actual_downloads a[data-download='yes']"});const c=()=>{try{e.parentNode.target="_self"}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-control-"+d)}},l=()=>{try{e.parentNode.outerHTML='
Get Access Now
\n
',(0,a.se)("a .primaryCTA {padding: 0px 22px 0 30px;}")}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+d)}},d="landingPagePrimaryCTA-Free-Reset",s={n:d,t:()=>u(t),ttl:60,b:[{name:"original",weight:1,run:c},{name:"variant",weight:1,run:l}],g:{u:r,e:i},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function u(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function p(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return u(t)||!!e&&e[null===(n=window.btoa(d))||void 0===n?void 0:n.replace(/=/g,"")]&&(u(r)||p(i))},codeToRun:()=>{u(t)?(0,a.Gc)((function(){o.A.init(s)})):(u(r)||p(i))&&(0,a.Hh)((function(){o.A.init(s)}))}}}catch(m){const h="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",m,window.location.pathname+"-"+h)}}},3641:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const n=window.dataLayer[0];var e=document.querySelector("a[href*='/resource'] > .primaryCTA");const t=[{regex:/^\/resources\/inclusion-teaching-resources$|^\/resources\/planit-primary-teaching-resources$|^\/resources\/twinkl-boost$/,options:0==n.user.twinklid&&!n.user.loggedIn&&/^$|^none$/.test(n.user.type)&&!!e&&a.aC.country.uk}],r=(0,a.DX)(["funnel","products"]);r.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),r.push({name:"sign-up",type:"search",regex:/signed_up/,options:!0}),r.push({name:"visitedPaymentSignUp",type:"pathname",regex:/^\/payment-sign-up$/,options:!0}),r.push({name:"visitedSignUp",type:"pathname",regex:/^\/sign-up$/,options:!0}),r.push({name:"visitedGuideResourcePage",type:"pathname",regex:/^\/resource\/t-ug-042-twinkl-boost-user-guide$|\/resource\/t-ug-043-twinkl-inclusion-user-guide$|\/resource\/tp-t-000-planit-user-guide$/,options:!0}),r.push({name:"visitedResourcePage",type:"pathname",regex:/^\/resource\//,options:!0});const i=(0,a.kQ)(["download"]);i.push({type:"click",name:"clickedPrimaryCTA",parentEl:".bannerContent",childEl:"a .primaryCTA"}),i.push({path:/^\/resource\/t-ug-042-twinkl-boost-user-guide$|\/resource\/t-ug-043-twinkl-inclusion-user-guide$|\/resource\/tp-t-000-planit-user-guide$/,type:"click",name:"DownloadedGuide",parentEl:"body",childEl:"#actual_downloads a[data-download='yes']"});const c=()=>{try{e.parentNode.target="_self"}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-control-"+d)}},l=()=>{try{e.parentNode.outerHTML='
Get Access Now
\n
',(0,a.se)("a .primaryCTA {padding: 0px 22px 0 30px;}")}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+d)}},d="landingPagePrimaryCTA-Prospect-Reset",s={n:d,t:()=>u(t),ttl:60,b:[{name:"original",weight:1,run:c},{name:"variant",weight:1,run:l}],g:{u:r,e:i},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function u(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function p(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return u(t)||!!e&&e[null===(n=window.btoa(d))||void 0===n?void 0:n.replace(/=/g,"")]&&(u(r)||p(i))},codeToRun:()=>{u(t)?(0,a.Gc)((function(){o.A.init(s)})):(u(r)||p(i))&&(0,a.Hh)((function(){o.A.init(s)}))}}}catch(m){const h="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",m,window.location.pathname+"-"+h)}}},1454:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{var e,n,t;const s=window.dataLayer[0];var a,r,i,c,l;const u=[{regex:/^\/sign-up$/,options:/^\/sign-up$/.test(window.location.pathname)&&!(null!==(e=s.user)&&void 0!==e&&e.loggedIn)&&!(null!==(n=s.user)&&void 0!==n&&n.twinklid)&&o.aC.lang.en&&(/^226$|^154$|^12$/.test(null===(t=s.user)||void 0===t?void 0:t.country_id)||o.aC.country.uk)&&(a=document.querySelector(".formField.js-validate:not(.occDiv)"),r=document.querySelector(".formField.js-validate:nth-of-type(2)"),i=document.querySelector(".bottomFormHolder > button.green"),c=document.getElementById("email"),l=document.getElementById("password"),!!(a&&r&&i&&c&&l))}],p=(0,o.DX)(["funnel"]);p.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),p.push({name:"sign-up",type:"search",regex:/signed_up/,options:!0}),p.push({name:"visitedSignUp",type:"pathname",regex:/^\/sign-up$/,options:!0}),p.push({name:"visitedSignIn",type:"pathname",regex:/^\/sign-in$/,options:!0});var d=()=>!!Array.from(document.querySelector(".formField.js-validate:not(.hidden)").classList).includes("has-error");const m=(0,o.kQ)(["download"]);m.push({type:"click",name:"clickedSignInInstead",parentEl:"#new_sign_up_form",childEl:"a.no-track"}),m.push({type:"click",name:"clickedBack",parentEl:"#new_sign_up_form",childEl:"#back"}),m.push({type:"click",name:"clickedSubmit",parentEl:"#new_sign_up_form",childEl:"button.button.green:not(#next)"}),m.push({type:"click",name:"clickedFirstButton",parentEl:"#new_sign_up_form",childEl:"button#next"}),m.push({type:"click",name:"clickedSecondButton",parentEl:"#new_sign_up_form",childEl:"button.withArrow"}),m.push({type:"on",on:"firstClicked",name:"clickedFirst",cb:function(e){let n={...this};var t=d()?"withError":"noError";return n.name+=t,n}}),m.push({type:"on",on:"secondClicked",name:"clickedSecond",cb:function(e){let n={...this};var t=d()?"withError":"noError";return n.name+=t,n}});const h=()=>{try{var e;null===(e=document.querySelector(".signUpBox"))||void 0===e||e.addEventListener("click",(e=>{e.target.closest(".button.green:not(.withArrow)")&&setTimeout((()=>{document.fn.events.emit("firstClicked")}),300),e.target.closest(".button.green.withArrow")&&setTimeout((()=>{document.fn.events.emit("secondClicked")}),300)}))}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-control-"+y)}},g=()=>{try{var e;null===(e=document.querySelector(".signUpBox"))||void 0===e||e.addEventListener("click",(e=>{e.target.closest(".button.green:not(.withArrow)")&&setTimeout((()=>{document.fn.events.emit("firstClicked")}),300),e.target.closest(".button.green.withArrow")&&setTimeout((()=>{document.fn.events.emit("secondClicked")}),300)}));var n=!1,t=new RegExp("^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$");c.addEventListener("input",(function(){var e=c.value;n=t.test(e)}));var d=document.createElement("div");d.className="email-input-div",c.insertAdjacentElement("beforebegin",d),d.appendChild(c),r.classList.add("hidden"),c.placeholder="Enter your email",i.classList.add("hidden"),i.classList.add("withArrow"),i.innerHTML='',r.insertAdjacentElement("beforeend",i);var s=document.createElement("button");function p(e){13===e.keyCode&&i.click()}s.id="next",s.className="button green",s.innerHTML='',a.insertAdjacentElement("beforeend",s),l.placeholder="Create a password",l.addEventListener("keydown",p);var u=document.createElement("div");u.id="back",u.className="hidden",u.className="backToEmail hidden",u.innerHTML='',r.insertAdjacentElement("afterend",u),s.addEventListener("click",(e=>{e.preventDefault(),n&&(a.classList.add("hidden"),r.classList.remove("hidden"),l.focus(),u.classList.remove("hidden"),i.classList.remove("hidden"),document.querySelector(".form-error")&&document.querySelector(".form-error").remove())})),document.querySelector("#back .backToEmailLink").addEventListener("click",(function(){r.classList.add("hidden"),a.classList.remove("hidden"),a.focus(),u.classList.add("hidden")})),(0,o.se)(".hidden, .hide {display: none!important;} #new_sign_up .formField:not(.occDiv):not(.otherOccupation), .signUpInHolder .formField:not(.occDiv):not(.otherOccupation) {display: flex; flex-wrap: wrap; column-gap: 10px;} .formField .password-input-div, .formField .email-input-div {flex: 6; display: flex;} .formField button {flex: 1} .has-error .form-error {width: 100%;} #back {color: #0066c0; width: 100%; text-align: left; font-size: 12px; margin-top: 10px;} .password-input-div input, .email-input-div input {height: 100%;} #next {background-color: #5d8200;} #next:hover {background-color: #4c6509;} #new_sign_up_form .bottomFormHolder {padding: 1px 0 0;} .is-desktop-device #new_sign_up, .is-desktop-device .signUpInHolder, .is-desktop-device #front_panel_search .new_sign_up_form {width: 500px!important; max-width: 500px!important;} .prospect-height {height: 420px!important;} .backToEmailLink {max-width: max-content; white-space: nowrap; display: inline-block; cursor: pointer;} .backToEmailLink:hover {text-decoration: underline;} .new_sign_up .signUpBox {margin-top: 0;} #new_sign_up .formField, .signUpInHolder .formField {margin-bottom: 18px; margin-bottom: 0;} .signInHolder {font-size: 12px;} #new_sign_up label {position: absolute; left: 26px; top: 64px; background: #fff; max-width: max-content; padding-right: 5px; padding-left: 5px; z-index: 1;} #new_sign_up input, .signUpInHolder input {padding: 4px 10px;} .email-input-div {position: relative; cursor: pointer;} .signInHolder a:hover {color: #0066c0;} .new_sign_up .smallText {padding-top: 0;}"),(0,o.se)("#new_sign_up .formField:not(.occDiv):not(.otherOccupation), .signUpInHolder .formField:not(.occDiv):not(.otherOccupation) {\n flex-direction: column;\n }.email-input-div, .password-input-div {\n min-height: 52px;\n margin-bottom: 20px;\n }input#password,input#email {\n min-height: 52px;\n }"),document.querySelector("button#next").innerHTML="Next",document.querySelector(".formField.js-validate button.withArrow").innerHTML="Continue",window.setTimeout((function(){var e;null===(e=document.querySelector("#email"))||void 0===e||e.focus()}),0),(0,o.Hh)((()=>{$(document).on("ajaxComplete",(function(e,n,t){var a;/\/user\/create$/.test(t.url)&&(null===(a=document.querySelector(".backToEmailLink"))||void 0===a||a.click(),document.querySelector("#new_sign_up label").classList.add("error"),(0,o.se)(".email-input-div.has-error {\n display: flex;\n flex-direction: column;\n }.has-error .form-error {\n margin-top: 12px;\n }"))}))}))}catch(m){(0,o.BI)("ABError",m,window.location.pathname+"-variant-"+y)}},y=o.xl?`prospectTwoStepSignUp-v3-${o.aC.country.uk?"UK":s.user.country_id}`:`prospectTwoStepSignUpMobile-v3-${o.aC.country.uk?"UK":s.user.country_id}`,w={n:y,tg:u,ttl:60,b:[{name:"original",weight:1,run:h},{name:"variant",weight:1,run:g}],g:{u:p,e:m},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(w),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},7184:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/blog\/|^\/parenting-wiki\/|^\/teaching-wiki\//,options:!e.user.twinklid&&a.xl&&document.querySelectorAll(".blogSignUpBanner,.wikiResourceBanner").length>0&&(a.aC.country.uk||/^226$|^154$|^12$/.test(e.user.country_id))&&a.aC.lang.en}],t=(0,a.DX)(["funnel","upgrades","products"]);t.push({name:"signedUp",type:"search",regex:/signed_up/,options:!0}),t.push({name:"landedOnSignUp",regex:/sign-up/,options:!0}),t.push({name:"landedOnTrial",regex:/^\/free-trial-landing/,options:!0});const r=(0,a.kQ)(["download"]);r.push({type:"click",name:"clickedCTA",parentEl:"body",childEl:".bannerCTA a.button.green"});const i=()=>{},c=()=>{try{var e="";document.querySelectorAll(".blogSignUpBanner,.wikiResourceBanner").forEach((n=>{e=n.cloneNode(!0)})),document.querySelectorAll("#blog-content,.extraData").forEach((n=>{n.insertAdjacentElement("afterend",e)}))}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+l)}},l=`wikiBlogCtaDuplicateBanner${a.aC.country.uk?"UK":e.user.country_id}`,d={n:l,t:()=>s(n),ttl:60,b:[{name:"original",weight:1,run:i},{name:"variant",weight:1,run:c}],g:{u:t,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function s(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function u(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var o;return s(n)||!!e&&e[null===(o=window.btoa(l))||void 0===o?void 0:o.replace(/=/g,"")]&&(s(t)||u(r))},codeToRun:()=>{s(n)?(0,a.Gc)((function(){o.A.init(d)})):(s(t)||u(r))&&(0,a.Hh)((function(){o.A.init(d)}))}}}catch(p){const m="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",p,window.location.pathname+"-"+m)}}},3601:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const t=window.dataLayer[0];var e=!!document.querySelector(".wikiContent, .extraData"),n=document.querySelectorAll("h2.phrase, .wikiContent h2, .wikiContent h3, .wikiContent h4, .extraData h2, .extraData h3, .extraData h4");const r=[{regex:/^\/parenting-wiki\//,options:a.xl&&e&&!!n&&n.length>0&&/^244$|^247$|^246$|^245$/.test(t.user.country_id)}],i=(0,a.DX)(["funnel"]);i.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),i.push({name:"sign-up",type:"search",regex:/signed_up/,options:!0}),i.push({name:"visitedResourcePage",type:"pathname",regex:/^\/resource\//,options:!0});const c=(0,a.kQ)(["download"]);c.push({type:"click",name:"clickedContents",parentEl:".wikiCol",childEl:".wikiContents a"}),c.push({type:"click",name:"clickedSimilarSearches",parentEl:".similarSearches",childEl:"a"}),c.push({type:"click",name:"clickedMl",parentEl:"#youll_love_resource_box",childEl:".what-are-members-downloading-now a"}),c.push({type:"click",name:"clickedLinkInArticle",parentEl:".extraData",childEl:"a"}),c.push({type:"click",name:"clickedAnyLinkOnPage",parentEl:".wikiCol",childEl:"a"});const l=()=>{try{var e={};for(let a=0;a0){const e=document.createElement("ul");u.children.forEach((n=>{const t=document.createElement("li"),o=document.createElement("a");o.setAttribute("href",`#${n.id}`),o.textContent=n.text,t.appendChild(o),e.appendChild(t)})),p.appendChild(e)}s.appendChild(p)}l.appendChild(s),document.querySelector("h2.phrase").insertAdjacentElement("afterend",l),l.insertAdjacentHTML("afterbegin",'
Contents
'),(0,a.se)(".wikiContents {font-size: 14px; padding-bottom: 12px; margin-bottom: 20px; margin-top: 20px; border-bottom: 1px solid #ddd;} .wikiContents ul li a {display: block; overflow: hidden; padding-top: 12px;} .wikiContents ul {list-style: none; padding: 0 0 0 10px;} .wikiContents ul {margin: 0 0;} .contTitle {font-family: robotobold,Arial,Helvetica,sans-serif; font-size: 16px; padding-bottom: 10px; padding-left: 10px; width: 100%; border-bottom: 1px solid #ddd;} .scrollTo {scroll-margin-top: 100px;} html {scroll-behavior: smooth;} .row.wikiCol img {height: auto;}")}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+d)}},d="wikiContentsInlineParentsAll",s={n:d,t:()=>u(r),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:l}],g:{u:i,e:c},o:{bucket:-1,testing:!0,fnDataApi:"ga",encodeCookie:!0,deploy:1}};function u(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function p(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return u(r)||!!e&&e[null===(n=window.btoa(d))||void 0===n?void 0:n.replace(/=/g,"")]&&(u(i)||p(c))},codeToRun:()=>{u(r)?(0,a.Gc)((function(){o.A.init(s)})):(u(i)||p(c))&&(0,a.Hh)((function(){o.A.init(s)}))}}}catch(m){const h="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",m,window.location.pathname+"-"+h)}}},2439:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const t=window.dataLayer[0];var e=!!document.querySelector(".wikiContent, .extraData"),n=document.querySelectorAll("h2.phrase, .wikiContent h2, .wikiContent h3, .wikiContent h4, .extraData h2, .extraData h3, .extraData h4");const r=[{regex:/^\/teaching-wiki\//,options:a.xl&&e&&!!n&&n.length>0&&/^244$|^247$|^246$|^245$/.test(t.user.country_id)}],i=(0,a.DX)(["funnel"]);i.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),i.push({name:"sign-up",type:"search",regex:/signed_up/,options:!0}),i.push({name:"visitedResourcePage",type:"pathname",regex:/^\/resource\//,options:!0});const c=(0,a.kQ)(["download"]);c.push({type:"click",name:"clickedContents",parentEl:".wikiCol",childEl:".wikiContents a"}),c.push({type:"click",name:"clickedSimilarSearches",parentEl:".similarSearches",childEl:"a"}),c.push({type:"click",name:"clickedMl",parentEl:"#youll_love_resource_box",childEl:".what-are-members-downloading-now a"}),c.push({type:"click",name:"clickedLinkInArticle",parentEl:".extraData",childEl:"a"}),c.push({type:"click",name:"clickedAnyLinkOnPage",parentEl:".wikiCol",childEl:"a"});const l=()=>{try{var e={};for(let a=0;a0){const e=document.createElement("ul");u.children.forEach((n=>{const t=document.createElement("li"),o=document.createElement("a");o.setAttribute("href",`#${n.id}`),o.textContent=n.text,t.appendChild(o),e.appendChild(t)})),p.appendChild(e)}s.appendChild(p)}l.appendChild(s),document.querySelector("h2.phrase").insertAdjacentElement("afterend",l),l.insertAdjacentHTML("afterbegin",'
Contents
'),(0,a.se)(".wikiContents {font-size: 14px; padding-bottom: 12px; margin-bottom: 20px; margin-top: 20px; border-bottom: 1px solid #ddd;} .wikiContents ul li a {display: block; overflow: hidden; padding-top: 12px;} .wikiContents ul {list-style: none; padding: 0 0 0 10px;} .wikiContents ul {margin: 0 0;} .contTitle {font-family: robotobold,Arial,Helvetica,sans-serif; font-size: 16px; padding-bottom: 10px; padding-left: 10px; width: 100%; border-bottom: 1px solid #ddd;} .scrollTo {scroll-margin-top: 100px;} html {scroll-behavior: smooth;} .row.wikiCol img {height: auto;}")}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+d)}},d="wikiContentsInlineTeachingAll",s={n:d,t:()=>u(r),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:l}],g:{u:i,e:c},o:{bucket:-1,testing:!0,fnDataApi:"ga",encodeCookie:!0,deploy:1}};function u(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function p(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return u(r)||!!e&&e[null===(n=window.btoa(d))||void 0===n?void 0:n.replace(/=/g,"")]&&(u(i)||p(c))},codeToRun:()=>{u(r)?(0,a.Gc)((function(){o.A.init(s)})):(u(i)||p(c))&&(0,a.Hh)((function(){o.A.init(s)}))}}}catch(m){const h="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",m,window.location.pathname+"-"+h)}}},634:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\//,options:/^226$/.test(e.user.country_id)&&document.querySelector("#all-stars-banner .winning-text")}],t=(0,o.DX)(["funnel","products"]);t.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),t.push({name:"landed-twinkl-stars",regex:/^\/twinkl-stars\/leader-board$/,options:!0});const a=(0,o.kQ)(["download"]);a.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),a.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"}),a.push({type:"click",name:"clickedBannerCTA",parentEl:"#all-stars-banner",childEl:"a.getStartedBtn"});const r=()=>{},i=()=>{try{var e=document.querySelector("#all-stars-banner"),n=null==e?void 0:e.querySelector("div.text-lg-right a.btn.getStartedBtn");e&&n&&(n.innerText="Continue",n.insertAdjacentHTML("beforeend",''),n.id="allStarsCta",(0,o.se)("\n #all-stars-banner {\n #allStarsCta {\n color: #ffffff;\n background: #5d8200;\n border: solid 2px white;\n padding: 7px 30px;\n box-shadow: black 0px 2px 11px -6px;\n font-size: large;\n }\n #allStarsCta:hover {\n background: #4c6509;\n }\n #allStarsCta:hover #continueChevron {\n transform: matrix(1, 0, 0, 1, 2, 0);\n }\n #continueChevron {\n transition: all 154ms cubic-bezier(0, 0.51, 0.46, 0.99);\n padding-left: 0.5em;\n }\n }\n "))}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+c)}},c="allStarsBannerUSACta"+(o.Fr?"-mobile":""),l={n:c,tg:n,ttl:60,b:[{name:"original",weight:1,run:r},{name:"variant",weight:1,run:i}],g:{u:t,e:a},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(l),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},726:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const n=window.dataLayer[0],t=[{regex:/^\//,options:!o.aC.member.schoolAccount&&n.user.loggedIn&&document.querySelector(".credit-button")&&o.aC.country.uk&&o.aC.lang.en&&o.xl}],a=(0,o.DX)(["funnel","upgrades","products"]);a.push({name:"landedOnCreate",regex:/^\/create/,options:!0}),a.push({name:"landedOnCredit",regex:/^\/my-credit/,options:!0});const r=(0,o.kQ)(["download"]);r.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),r.push({path:/^\/create/,type:"click",name:"startedCreateSession",parentEl:".bg-create-orange",childEl:"a[href='/create/app']"}),r.push({type:"click",name:"clickedCreate",parentEl:"#header",childEl:"a.createButtonNextToCredit",mod:3}),r.push({type:"click",name:"clickedCreate",parentEl:"#header",childEl:"a.t-create-link",mod:3}),r.push({type:"click",name:"clickedCredit",parentEl:"#header",childEl:".credit-button a"}),r.push({type:"click",name:"clickedMM",parentEl:"#header",childEl:".menuTab a"});var e=()=>{var e;(0,o.se)("a.t-button.t-outline-pink.t-full-width.t-shadow.createButtonNextToCredit {\n background-color: white;\n color: #ff8501;\n border-color: #ff8501;\n }a.t-button.t-outline-pink.t-full-width.t-shadow.createButtonNextToCredit {\n display: flex;\n gap: 12px;\n align-items: baseline;\n }.createButtonNextToCredit svg {\n fill: #ff8501;\n transform: scale(2.4);\n height: 12px;\n }a.t-button.t-outline-pink.t-full-width.t-shadow.createButtonNextToCredit:hover {\n color: white;\n background-color: #ff8501;\n }"),document.querySelector(".credit-button").insertAdjacentHTML("beforebegin",'Create'),null===(e=document.querySelector(".t-create-link-item"))||void 0===e||e.remove()};const i=()=>{try{e()}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-control-"+l)}},c=()=>{try{e()}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+l)}},l="tryCreateNow",d={n:l,tg:t,ttl:60,b:[{name:"original",weight:1,run:i},{name:"variant",weight:1,run:c}],g:{u:a,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(d),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},1602:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\//,options:a.xl&&!a.aC.member.schoolAccount&&e.user.loggedIn&&"free"==e.user.type&&(a.aC.country.uk||/^226$|^154$|^12$/.test(e.user.country_id))&&document.querySelector('.ultimateCTAContainer a[href^="/free-trial"]')&&a.aC.lang.en&&!!document.querySelector(".ultimateCTAContainer .t-title")}],t=(0,a.DX)(["funnel","upgrades","products"]);t.push({name:"paymentTrial",regex:/^\/trial$|^\/free-trial-payment\/|^\/trial-free$/,options:!!document.querySelector(".payMonthlyDiv")}),t.push({name:"payment",regex:/^\/trial$|^\/free-trial-payment\/|^\/trial-free$/,options:!!document.querySelector(".payMonthlyDiv")}),t.push({name:"payFinalOffer",regex:/^\/a-payment\/monthly\//,options:!!document.querySelector(".freeTrial99Label")});const r=(0,a.kQ)(["download"]);r.push({type:"click",name:"clickedHeaderCTA",parentEl:"body",childEl:".ultimateCTAContainer > a"}),r.push({type:"click",name:"clickedCTAInsideHeader",parentEl:"body",childEl:"a#tryUltimateB.button"});const i=()=>{},c=()=>{try{document.querySelector(".ultimateCTAContainer .t-title").innerHTML&&document.querySelector(".ultimateCTAContainer .t-title").innerText&&(document.querySelector(".ultimateCTAContainer .t-title").innerHTML=`${document.querySelector(".ultimateCTAContainer .t-title").innerText.match(/\$|£/)}0.00 Twinkl Trial`)}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+l)}},l=`headerFreeTrialCtaChange${a.aC.country.uk?"UK":e.user.country_id}`,d={n:l,t:()=>s(n),ttl:60,b:[{name:"original",weight:1,run:i},{name:"variant",weight:1,run:c}],g:{u:t,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function s(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function u(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var o;return s(n)||!!e&&e[null===(o=window.btoa(l))||void 0===o?void 0:o.replace(/=/g,"")]&&(s(t)||u(r))},codeToRun:()=>{s(n)?(0,a.Gc)((function(){o.A.init(d)})):(s(t)||u(r))&&(0,a.Hh)((function(){o.A.init(d)}))}}}catch(p){const m="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",p,window.location.pathname+"-"+m)}}},8228:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\//,options:a.xl&&!a.aC.member.schoolAccount&&e.user.loggedIn&&"free"==e.user.type&&(a.aC.country.uk||/^226$|^154$|^12$/.test(e.user.country_id))&&document.querySelector('.ultimateCTAContainer a[href^="/free-trial"]')&&a.aC.lang.en}],t=(0,a.DX)(["funnel","upgrades","products"]);t.push({name:"paymentTrial",regex:/^\/trial$|^\/free-trial-payment\/|^\/trial-free$/,options:!!document.querySelector(".payMonthlyDiv")}),t.push({name:"payment",regex:/^\/trial$|^\/free-trial-payment\/|^\/trial-free$/,options:!!document.querySelector(".payMonthlyDiv")}),t.push({name:"payFinalOffer",regex:/^\/a-payment\/monthly\//,options:!!document.querySelector(".freeTrial99Label")});const r=(0,a.kQ)(["download"]);r.push({type:"click",name:"clickedHeaderCTA",parentEl:"body",childEl:".ultimateCTAContainer > a"}),r.push({type:"click",name:"clickedCTAInsideHeader",parentEl:"body",childEl:"a#tryUltimateB.button"});const i=()=>{try{var e;null!==(e=document.querySelector("#tryUltimateB.button"))&&void 0!==e&&e.innerText&&(document.querySelector("#tryUltimateB.button").innerText=document.querySelector("#tryUltimateB.button").innerText.replace("Start Your","Continue to"))}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+l)}},c=()=>{try{var e;null!==(e=document.querySelector("#tryUltimateB.button"))&&void 0!==e&&e.innerText&&(document.querySelector("#tryUltimateB.button").innerText="Continue")}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+l)}},l=`headerHoverCTAWordingChangeToContinue${a.aC.country.uk?"UK":e.user.country_id}`,d={n:l,t:()=>s(n),ttl:60,b:[{name:"original",weight:1,run:i},{name:"variant",weight:1,run:c}],g:{u:t,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function s(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function u(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var o;return s(n)||!!e&&e[null===(o=window.btoa(l))||void 0===o?void 0:o.replace(/=/g,"")]&&(s(t)||u(r))},codeToRun:()=>{s(n)?document.querySelector(".ultimateCTAContainer.t-dropdown-container").addEventListener("mouseover",(e=>{o.A.init(d)}),{once:!0}):(s(t)||u(r))&&(0,a.Hh)((function(){o.A.init(d)}))}}}catch(p){const m="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",p,window.location.pathname+"-"+m)}}},5846:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const n=window.dataLayer[0],t=[{regex:/^\//,options:!o.aC.member.schoolAccount&&n.user.loggedIn&&"free"==n.user.type&&110!=n.user.career_id&&document.querySelector("#premiumMiniMenu")&&document.querySelector("#header .free-trial")&&o.xl&&o.aC.lang.en&&o.aC.country.uk}],a=(0,o.DX)(["funnel","upgrades","products"]);a.push({name:"landedOnFreeTrial",regex:/^\/free-trial-landing/,options:!0}),a.push({name:"landedOnSchoolPage",regex:/^\/premium\/school/,options:!0});const r=(0,o.kQ)(["download"]);r.push({type:"click",name:"sentFormSubmissionOnSchoolPage",parentEl:"#schoolBoxForm",childEl:"input[type='submit']"}),r.push({type:"click",name:"clickedSchoolEnquiry",parentEl:"#header",childEl:"#premiumMiniMenu a"}),r.push({type:"click",name:"clickedTryTrial",parentEl:"#header",childEl:".ultimateCTAContainer a"}),r.push({type:"click",name:"clickedInnerTryUltimateA",parentEl:"#header",childEl:".ultimateCTAContainer .ultimateBubble a"}),r.push({type:"click",name:"clickedAccountLink",parentEl:"#header",childEl:".user-menu-list-new-sub a"}),r.push({type:"click",name:"clickedMM",parentEl:"#header",childEl:".menuTab a"}),r.push({type:"click",name:"clickedHome",parentEl:"#sticky-header",childEl:"a[href='/']"}),r.push({type:"click",name:"clickedSearch",parentEl:"#sticky-header",childEl:"#search_box"});var e=()=>{var e;(0,o.se)("#premiumMiniMenu ::after{\n display:none!important\t\n }");var n=document.querySelector("#premiumMiniMenu a");n.querySelector(".t-title b").innerText="School Enquiries",n.href="/premium/school",null===(e=document.querySelector(".premium_menu"))||void 0===e||e.remove(),"/"!=location.pathname&&(document.querySelector(".ultimateCTAContainer").insertAdjacentHTML("afterbegin",'
1
'),(0,o.se)(".membershipNotification {\n position: absolute;\n top: -5px;\n right: -5px;\n background: #ff0000;\n width: 15px;\n height: 15px;\n color: white;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n align-content: center;\n font-size: 10px;\n z-index: 1;\n}")),document.querySelector(".ultimateBubble a.other-pay-options").innerText="Paid plans",document.querySelector(".ultimateCTAContainer .free-trial .t-title b").innerText="- Unlimited Downloads"};const i=()=>{try{e()}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-control-"+l)}},c=()=>{try{e()}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+l)}},l="headerFreeTrialButtonToFinalPaymentPage",d={n:l,tg:t,ttl:60,b:[{name:"original",weight:1,run:i},{name:"variant",weight:1,run:c}],g:{u:a,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(d),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},4012:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\//,options:!o.aC.member.schoolAccount&&!e.user.loggedIn&&0==e.user.twinklid&&o.aC.lang.en&&o.aC.country.uk&&o.xl&&document.querySelector("#login_options a")}],t=(0,o.DX)(["funnel","upgrades","products"]);t.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),t.push({name:"sign-up",type:"search",regex:/signed_up/,options:!0});const a=(0,o.kQ)(["download"]);a.push({type:"click",name:"clickedSignUpButton",parentEl:"#header",childEl:"#login_options a"}),a.push({type:"click",name:"clickedSignInButton",parentEl:"#header",childEl:"a.signIn"});const r=()=>{try{(0,o.se)("#login_options{\n \tmargin-right: 30px!important;\n }")}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+i)}},i="joinButtonMarginProspectReset",c={n:i,tg:n,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:r}],g:{u:t,e:a},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(c),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},2562:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{var e;const n=window.dataLayer[0],t=[{regex:/^\//,options:!o.aC.member.schoolAccount&&n.user.loggedIn&&"free"==n.user.type&&o.Fr&&document.querySelector("#m-library")&&document.querySelector("#m-memberships")&&o.aC.lang.en&&document.querySelector(".mobile-bottom-menu-tab")&&!/^99P/.test(null===(e=dataLayer[0].user)||void 0===e||null===(e=e.lastSubscription)||void 0===e?void 0:e.offer_code)}],a=(0,o.DX)(["funnel","upgrades","products"]);a.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const r=(0,o.kQ)(["download"]);r.push({type:"click",name:"clickedFreeTrial",parentEl:"#m-memberships",childEl:"a"}),r.push({type:"click",name:"clickedBottomBanner",parentEl:".mobile-bottom-menu-tab",childEl:"a"}),r.push({type:"click",name:"clickedLibraryIcon",parentEl:"body",childEl:"#m-library"}),r.push({type:"click",name:"clickedHomeIcon",parentEl:"body",childEl:"#m-home"});const i=()=>{try{document.querySelector("#m-memberships label").innerText="FREE Trial",null===(e=document.querySelector("#m-memberships i"))||void 0===e||e.insertAdjacentHTML("afterbegin",'
1
'),(0,o.se)(".membershipNotification {\n position: absolute;\n top: -6px;\n right: -6px;\n background: #ff0000;\n width: 15px;\n height: 15px;\n color: white;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n align-content: center;\n font-size: 10px;\n }i.memberships-icon {\n position: relative;\n }")}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+c)}var e},c="notificationFreeTrialMobileSwapWithLibraryHome",l={n:c,tg:t,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:i}],g:{u:a,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(l),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},7498:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\//,options:!o.aC.member.schoolAccount&&e.user.loggedIn&&"free"==e.user.type&&o.aC.lang.en&&o.aC.country.uk&&o.xl&&document.querySelector("div.ultimateCTAContainer.t-dropdown-container a[href^='/free-trial']")}],t=(0,o.DX)(["funnel","upgrades","products"]);t.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const a=(0,o.kQ)(["download"]);a.push({type:"click",name:"clickedOuterButton",parentEl:"#header",childEl:"a.free-trial.t-purple.t-dropdown"}),a.push({type:"click",name:"clickedInnerButton",parentEl:"#header",childEl:"a#tryUltimateB"}),a.push({type:"click",name:"clickedSeeMoreOption",parentEl:"#header",childEl:"a.other-pay-options"});const r=()=>{try{var e;null===(e=document.querySelector(".ultimatebenefits"))||void 0===e||e.insertAdjacentHTML("beforeend",'
  • We\'ll remind you seven days before your trial ends.
  • ')}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+i)}},i="reminderTryUltimateHeaderNoGreen",c={n:i,tg:n,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:r}],g:{u:t,e:a},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(c,(e=>document.querySelector("a.free-trial.t-purple.t-dropdown").addEventListener("mouseover",e,{once:!0}))),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},5404:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{var e,n,t,r;const s=window.dataLayer[0];var i,c=!1,l=!1,d=!1;s.user.loggedIn&&a.xl&&a.aC.country.uk&&a.aC.lang.en&&document.querySelector("#header .ultimateCTAContainer")&&"paid"==(null===(e=s.user)||void 0===e?void 0:e.type)&&/^Core$|^Extra$/.test(null===(n=s.user.subscription)||void 0===n||null===(n=n.bundle)||void 0===n?void 0:n.name)&&0==(null===(t=s.user)||void 0===t?void 0:t.schoolAccount)&&localStorage.hasVC&&/^19$|^20$/.test(null===(r=s.user)||void 0===r||null===(r=r.subscription)||void 0===r?void 0:r.type_id)&&(c=document.querySelector('.ultimateCTAContainer a[href="/premium?type=ultimate"] .t-title'),l=document.querySelector(".ultimateBubble"),d=null===(i=s.user)||void 0===i||null===(i=i.subscription)||void 0===i?void 0:i.end_date);const u=[{regex:/^\//,options:!!l&&!!d&&!!c}],p=(0,a.DX)(["funnel","upgrades"]),m=(0,a.kQ)(["download"]);m.push({type:"click",name:"clickedButtonHeader",parentEl:".wrapperSearch ",childEl:".ultimateCTAContainer a"}),m.push({type:"click",name:"clickedButtonHeader",parentEl:".wrapperSearch ",childEl:".ultimateCTAContainer a"}),m.push({type:"click",name:"clickedUpGradeDrownHeader",parentEl:".wrapperSearch ",childEl:".ultimateCTAContainer .ultimateBubble a.green "});const h=()=>{try{if(c.innerText="Upgrade for £0.00",d=new Date(d).toLocaleDateString(),l.insertAdjacentHTML("beforeend",`
    Don't pay anything until ${d}
    `),(0,a.se)(".smallContext{display: flex;\n padding: 7px;\n color: grey;\n font-size: 11px;\n justify-content: center;flex-direction: column;align-items: center;}.bottomBubble a {margin-bottom: 2px}.packageBox-wrapper.platinumPlus .strikethroughPrice{display:none}.money{ padding-bottom: 10px!important;}"),/premium/.test(location.pathname)){var e,n=document.querySelector(".upgradeFor.ulti"),t=document.querySelector(".packageBox.platinumPlus.upgrade .money "),o=document.querySelector(".packageBox-wrapper.platinumPlus .whatsInTheBundle "),r=null===(e=document.querySelector(".packageBox-wrapper.platinumPlus .strikethroughPrice"))||void 0===e?void 0:e.innerText;r&&d&&o&&n&&t&&(n.innerText="Upgrade today for ",t.innerText="£0.00",o.insertAdjacentHTML("beforebegin",`

    Don't pay anything until ${d}

    Then pay an extra ${r}

    `))}}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+g)}},g="upgradeHeaderandpremium",y={n:g,t:()=>w(u),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:h}],g:{u:p,e:m},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function w(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function v(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return w(u)||!!e&&e[null===(n=window.btoa(g))||void 0===n?void 0:n.replace(/=/g,"")]&&(w(p)||v(m))},codeToRun:()=>{w(u)?(0,a.Gc)((function(){o.A.init(y)})):(w(p)||v(m))&&(0,a.Hh)((function(){o.A.init(y)}))}}}catch(f){const b="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",f,window.location.pathname+"-"+b)}}},2878:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{var e,n;const t=window.dataLayer[0];/^\/ari-ai/.test(location.pathname)&&a.xl&&a.aC.lang.en&&"paid"!=t.user.type&&document.querySelector(".upgradeAI")&&(a.aC.country.uk||/^226$|^154$|^12$/.test(t.user.country_id))&&null!==(e=document.querySelector(".ultimateCTAContainer .t-title"))&&void 0!==e&&e.innerText&&document.querySelector(".suggestions").addEventListener("click",(e=>{e.target.closest(".pr1-1")&&document.fn.events.emit("ariNoAccessPromptClick")}));const r=[{regex:/^\/ari-ai/,options:a.aC.lang.en&&a.xl&&"paid"!=t.user.type&&document.querySelector(".upgradeAI")&&document.querySelectorAll(".pr1-1").length>10&&(a.aC.country.uk||/^226$|^154$|^12$/.test(t.user.country_id))&&!(null===(n=document.querySelector(".ultimateCTAContainer .t-title"))||void 0===n||!n.innerText)}],i=(0,a.DX)(["funnel","upgrades","products"]);i.push({name:"revisitedAri",regex:/^\/ari-ai/,options:!0,mod:3}),i.push({type:"search",name:"signedUp",regex:/^\/signed_up/,options:!0});const c=(0,a.kQ)(["download"]);c.push({type:"click",name:"clickedPrompt",parentEl:".description",childEl:".pr1-1 a",mod:3}),c.push({type:"click",name:"clickedCTA",parentEl:"body",childEl:".upgradeAI .ultimateCTA"});const l=()=>{try{document.querySelector(".upgradeAI .ultimateCTA").href="/free-trial-landing",document.querySelector(".upgradeAI .ultimateCTA").innerText="Continue",document.querySelector(".upgradeAI p strong").innerText=`Try 30 days of Twinkl Ultimate for ${document.querySelector(".ultimateCTAContainer .t-title").innerText.match(/\$|£/)}0.00`}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+d)}},d="ariNoAccessToTrial",s={n:d,t:()=>u(r),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:l}],g:{u:i,e:c},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function u(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function p(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return u(r)||!!e&&e[null===(n=window.btoa(d))||void 0===n?void 0:n.replace(/=/g,"")]&&(u(i)||p(c))},codeToRun:()=>{u(r)?document.fn.events.on("ariNoAccessPromptClick",(()=>o.A.init(s))):(u(i)||p(c))&&(0,a.Hh)((function(){o.A.init(s)}))}}}catch(m){const h="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",m,window.location.pathname+"-"+h)}}},9594:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0],n=()=>{var e;return null===(e=document.querySelector("#user-menu-burger"))||void 0===e||e.addEventListener("click",(e=>{document.fn.events.emit("clickedBurger")})),!0},t=[{regex:/^\//,options:/^\//.test(location.pathname)&&!/^\/$|^\/trial-free$|^\/a?-?payment|\/premium/.test(location.pathname)&&o.xl&&o.aC.country.uk&&o.aC.lang.en&&!o.aC.member.schoolAccount&&e.user.loggedIn&&"free"==e.user.type&&!!document.querySelector("#header .ultimateCTAContainer a.free-trial[href^='/free-trial']")&&!!document.querySelector(".user-menu-burger")&&!!document.querySelector(".user-dashy .membership .upgrade-button")&&n()}],a=(0,o.DX)(["funnel"]);a.push({name:"free-trial-landing",type:"pathname",regex:/free-trial-landing/,options:!0});const r=(0,o.kQ)(["download"]);r.push({type:"click",name:"clickedMainCTA",parentEl:".user-dashy",childEl:".membership a.upgrade-button"}),r.push({type:"click",name:"clickedMembershipStar",parentEl:".user-dashy",childEl:".user-dashy-item[data-item='membership'] a"}),r.push({type:"click",name:"clickedAnyMenu",parentEl:".user-dashy",childEl:"a"});const i=()=>{try{var e,n=document.querySelector(".user-dashy .membership");/Upgrade/.test(null===(e=document.querySelector(".membership .button"))||void 0===e?void 0:e.innerText)&&n&&(n.innerHTML='£0.00 Twinkl Trial'),(0,o.se)("\n .membership {\n padding-left: 20px!important;\n padding-right: 20px!important;\n }\n\n .membership .upgrade-button { \n background-color: #601a91;\n font-size: 16px!important;\n }\n\n .membership .upgrade-button span {\n font-family: robotoregular;\n }\n\n .membership .upgrade-button:hover {\n background-color: #410f64;\n }\n ")}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+c)}},c="burgerFreeTrialMembershipButton",l={n:c,tg:t,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:i}],g:{u:a,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(l,(e=>document.fn.events.on("clickedBurger",e))),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},9133:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{var e,n;const t=window.dataLayer[0],a=[{regex:/^\/cancel-membership\/products\//,options:!o.aC.member.schoolAccount&&t.user.loggedIn&&o.aC.lang.en&&o.aC.country.uk&&!(null===(e=t.user)||void 0===e||null===(e=e.subscription)||void 0===e||!e.offer_code)&&"99P-MONTHLY-ULTIMATE-OFFER-CODE-FREE"==(null===(n=t.user)||void 0===n||null===(n=n.subscription)||void 0===n?void 0:n.offer_code)}],r=(0,o.DX)(["funnel","upgrades","cancel"]),i=(0,o.kQ)(["download"]);i.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"});const c=()=>{try{var e=document.querySelector(".cancellation-main-container>.row.m-4>div.text-center.pb-2 h2:nth-child(2)");e&&(e.innerText="You will lose access immediately and will not be able to reactivate your free trial")}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+l)}},l="cancelFreeProductCopy",d={n:l,tg:a,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:c}],g:{u:r,e:i},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(d),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},5337:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{window.dataLayer[0];const e=[{regex:/^\/resources\/inclusion-teaching-resources$/,options:!!document.querySelector(".uspContainer")&&o.xl}],n=(0,o.DX)(["funnel","upgrades","products"]);n.push({name:"signed_up",type:"search",regex:/signed_up/,options:!0});const t=(0,o.kQ)(["download"]);t.push({type:"click",name:"mainGreenCta",parentEl:".CTAbuttons",childEl:"a"}),t.push({type:"click",name:"clickedDownloadTasterPack",parentEl:".col-6",childEl:"a.free-taster-pack-button"}),t.push({type:"click",name:"clickedDownloadTasterPack",parentEl:".col-6",childEl:"a.free-taster-pack-button"}),t.push({type:"click",name:"clickedCardLink",parentEl:".card",childEl:"a"});const a=()=>{try{var e;null===(e=document.querySelector(".uspContainer"))||void 0===e||e.remove(),(0,o.se)(".vb-widget.col-12 {padding-top: 5px;}")}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+r)}},r="inclusionRemoveUsps",i={n:r,tg:e,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:a}],g:{u:n,e:t},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(i),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},8140:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=[{regex:/^\/mailing-preferences$/,options:window.dataLayer[0].user.loggedIn}],n=(0,o.DX)(["funnel","cancel"]);n.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const t=(0,o.kQ)(["download"]);t.push({type:"click",name:"clickedUnsubscribeLink",parentEl:"#other-preferences",childEl:"a.unsubscribe_all"}),t.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"});const a=()=>{},r=()=>{try{var e=document.querySelector("#other-preferences");null==e||e.classList.remove("hide");var n=document.querySelector(".unsubscribe_all");null==n||n.setAttribute("style","color: #0060c0;");var t=document.querySelector(".other-info");t&&(t.className="hide"),(0,o.se)("#other-preferences>hr{display: none;}")}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+i)}},i="unsubscribeClarity"+(o.Fr?"Mobile":""),c={n:i,tg:e,ttl:60,b:[{name:"original",weight:1,run:a},{name:"variant",weight:1,run:r}],g:{u:n,e:t},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(c),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},9460:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/my-credit$/,options:!a.aC.member.schoolAccount&&a.xl&&e.user.loggedIn&&!!document.querySelector("h2 span.float-right.text-pink-dark")&&!!document.querySelector(".text-align-center.my-3 a.button")&&a.aC.lang.en&&a.aC.country.uk&&!!document.querySelector(".px-2")}],t=(0,a.DX)(["funnel","upgrades","products"]);t.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const r=(0,a.kQ)(["download"]);r.push({type:"click",name:"clickedButton",parentEl:".col-12.col-lg-8.col-xl-9",childEl:"a.button"}),r.push({type:"click",name:"clickedLegal",parentEl:"body",childEl:"a[href='/legal']"});const i=()=>{try{var e,n,t,o;(0,a.se)(".availableBalanceContainer {\n width: 80%;\n border: 2px dashed #d23888;\n border-radius: 5px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 35px 50px;\n}h1.availableBalanceHeader {\n font-size: 22px!important;\n color: #6e6e6e;\n}.availableBalanceInnerContainer span.float-right.text-pink-dark {\n font-size: 50px;\n font-weight: 700;\n}.availableBalanceInnerContainer {\n display: flex;\n justify-content: space-between;\n}.px-2 {\n display: flex;\n gap: 20px;\n margin-bottom: 20px;\n padding-left: unset!important;\n}.display-flex.my-2 {\n background: #d23888;\n display: flex;\n flex-direction: column;\n align-items: center;\n align-content: center;\n max-width: 360px;\n padding: 20px;\n border-radius: 12px;\n box-shadow: 2px 2px 2px rgb(0 0 0 / 31%);\n}.bullet {\n display: inline-block;\n scale: 1.5;\n margin-bottom: 20px;\n}.display-flex.my-2 .desc {\n color: white;\n}.text-align-center.my-3 {\n width: 80%;\n}.bullet path {\n fill: white;\n}"),null===(e=document.querySelector(".px-2"))||void 0===e||e.insertAdjacentHTML("afterend",'

    Available Credit

    '),null===(n=document.querySelector(".availableBalanceInnerContainer"))||void 0===n||n.insertAdjacentElement("afterbegin",document.querySelector("h2 span.float-right.text-pink-dark")),null===(t=document.querySelector(".availableBalanceInnerContainer"))||void 0===t||t.insertAdjacentElement("beforeend",document.querySelector(".text-align-center.my-3 a.button")),null===(o=document.querySelector(".d-lsg-block"))||void 0===o||o.remove()}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+c)}},c="redesignMyCredit",l={n:c,t:()=>d(n),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:i}],g:{u:t,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function d(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function s(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var o;return d(n)||!!e&&e[null===(o=window.btoa(c))||void 0===o?void 0:o.replace(/=/g,"")]&&(d(t)||s(r))},codeToRun:()=>{d(n)?(0,a.Gc)((function(){o.A.init(l)})):(d(t)||s(r))&&(0,a.Hh)((function(){o.A.init(l)}))}}}catch(u){const p="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",u,window.location.pathname+"-"+p)}}},6982:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{var e,n;const a=window.dataLayer[0],r=[{regex:/^\/payment-history$/,options:!o.aC.member.schoolAccount&&(null===(e=a.user)||void 0===e||null===(e=e.subscription)||void 0===e?void 0:e.offer_code)&&/99P-MONTHLY-ULTIMATE-OFFER-CODE/.test(null===(n=a.user)||void 0===n||null===(n=n.subscription)||void 0===n?void 0:n.offer_code)}];if(r[0].regex.test(location.pathname)&&r[0].options){var t=document.querySelector(".payments-memberships-page #manage-membership span");t&&t.addEventListener("click",(e=>{window.document.fn.events.emit("clickedCancelSpan")}),{once:!0})}const i=(0,o.DX)(["funnel","upgrades","cancel"]);i.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const c=(0,o.kQ)(["download"]);c.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),c.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"});const l=()=>{try{var e=document.querySelector("#manage-membership-list .membership-card-new a.button.defaultGrayOutlineButton");e&&(e.className="button defaultBlueOutlineButton")}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+d)}},d="paymentHistoryCTABlue",s={n:d,tg:r,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:l}],g:{u:i,e:c},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(s,(e=>document.fn.events.on("clickedCancelSpan",e))),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},9180:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/premium$|^\/premium\/individual$|^\/premium\/individual\/primary$|^\/payment$|^\/a-payment\/monthly\/\d+$/,options:!!a.xl&&(0==e.user.twinklid||"free"==e.user.type)&&/^1$|^11$|^12$|^25$/.test(e.user.language_id)&&/^244$|^247$|^246$|^245$/.test(e.user.country_id)}],t=[],r=[],i=()=>{try{const e=document.querySelector("body"),n={childList:!0};new MutationObserver((function(e,n){for(const n of e)if("childList"===n.type){var t=document.querySelectorAll('iframe[title="Message from company"], iframe[title="Button to launch messaging window"], iframe[style*="height: 20px; width: 40px; position: fixed;"]');t&&!!t.length>0&&t.forEach((function(e){e.classList.add("hide")}))}})).observe(e,n)}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+c)}},c="premiumPaymentRemoveChatBubbleDesktop",l={n:c,t:()=>d(n),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"premiumPaymentRemoveChatBubbleDesktop",weight:1,run:i}],g:{u:t,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",encodeCookie:!0,deploy:1}};function d(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function s(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var o;return d(n)||!!e&&e[null===(o=window.btoa(c))||void 0===o?void 0:o.replace(/=/g,"")]&&(d(t)||s(r))},codeToRun:()=>{d(n)?(0,a.Gc)((function(){o.A.init(l)})):(d(t)||s(r))&&(0,a.Hh)((function(){o.A.init(l)}))}}}catch(u){const p="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",u,window.location.pathname+"-"+p)}}},5054:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{window.dataLayer[0];const e=[{regex:/^\/premium\/school$/,options:!0}],n=(0,a.DX)(["funnel","upgrades","products"]);n.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const t=[];t.push({type:"click",name:"clicked-1-ContactUs",parentEl:".d-lg-flex.bg-story-area-blue",childEl:"button#contact_us"},{type:"click",name:"clicked-2-FindOutMore",parentEl:".what-is-included",childEl:"button#find_out_more"},{type:"click",name:"clicked-3-FindOutMore",parentEl:".membership.mt-1",childEl:"button#contact_us"},{type:"submit",name:"clickedSubmit",parentEl:"#schoolBoxForm",childEl:"#schoolBoxForm"});const r=()=>{try{document.querySelectorAll(".contact-button span").forEach((e=>e.innerText="Continue"))}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+i)}},i="premiumSchools",c={n:i,t:()=>l(e),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:r}],g:{u:n,e:t},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function l(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function d(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:o=>{var a;return l(e)||!!o&&o[null===(a=window.btoa(i))||void 0===a?void 0:a.replace(/=/g,"")]&&(l(n)||d(t))},codeToRun:()=>{l(e)?(0,a.Gc)((function(){o.A.init(c)})):(l(n)||d(t))&&(0,a.Hh)((function(){o.A.init(c)}))}}}catch(s){const u="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",s,window.location.pathname+"-"+u)}}},6590:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{var e,n;const t=window.dataLayer[0],a=[{regex:/^\/premium-thanks/,options:/^\/premium-thanks/.test(location.pathname)&&o.aC.lang.en&&o.aC.country.uk&&t.user.loggedIn&&(null===(e=t.user)||void 0===e||null===(e=e.subscription)||void 0===e?void 0:e.offer_code)&&/99P-MONTHLY-ULTIMATE-OFFER-CODE-FREE/.test(null===(n=t.user)||void 0===n||null===(n=n.subscription)||void 0===n?void 0:n.offer_code)}],r=(0,o.DX)(["cancel"]),i=(0,o.kQ)(["download"]);i.push({type:"click",name:"clickedUpdateEmail",parentEl:".premium-thanks",childEl:'a[href="/edit-details"]'}),i.push({type:"click",name:"clickedChangeContactPref",parentEl:".premium-thanks",childEl:'a[href="/mailing-preferences"]'}),i.push({type:"click",name:"clickedSubsAndPayment",parentEl:".premium-thanks",childEl:'a[href="/payment-history"]'}),i.push({type:"click",name:"clickedResourceLink",parentEl:".resource-suggestion",childEl:"a"});const c=()=>{try{document.querySelector("p.welcome-label").insertAdjacentHTML("afterend",'

    We\'ll remind you 7 days before your trial ends

    ')}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+l)}},l="premiumThanksReminder",d={n:l,tg:a,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:c}],g:{u:r,e:i},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(d),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},6356:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/resource\//,options:a.xl&&!a.aC.member.schoolAccount&&e.user.loggedIn&&"free"==e.user.type&&(a.aC.country.uk||/^226$|^154$|^12$/.test(e.user.country_id))&&a.aC.lang.en&&document.querySelector('#download_link[data-download="no"]')&&document.querySelector(".trialPriceFlag")&&document.querySelector(".trialPriceFlag .trialPrice")}],t=(0,a.DX)(["funnel","upgrades","products"]);t.push({name:"paymentTrial",regex:/^\/trial$|^\/free-trial-payment\/|^\/trial-free$/,options:!!document.querySelector(".payMonthlyDiv")}),t.push({name:"payment",regex:/^\/trial$|^\/free-trial-payment\/|^\/trial-free$/,options:!!document.querySelector(".payMonthlyDiv")}),t.push({name:"payFinalOffer",regex:/^\/a-payment\/monthly\//,options:!!document.querySelector(".freeTrial99Label")});const r=(0,a.kQ)(["download"]);r.push({type:"click",name:"clickedCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"}),r.push({type:"click",name:"clickedCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"}),r.push({type:"click",name:"clickedCTA",parentEl:"#actual_downloads",childEl:".flagPresentSpan a"});const i=()=>{},c=()=>{try{document.querySelector(".flag.trialPriceFlag div").insertAdjacentElement("afterbegin",document.querySelector(".trialPriceFlag .trialPrice"))}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+l)}},l=`0before30DayTrial${a.aC.country.uk?"UK":e.user.country_id}`,d={n:l,t:()=>s(n),ttl:60,b:[{name:"original",weight:1,run:i},{name:"variant",weight:1,run:c}],g:{u:t,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function s(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function u(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var o;return s(n)||!!e&&e[null===(o=window.btoa(l))||void 0===o?void 0:o.replace(/=/g,"")]&&(s(t)||u(r))},codeToRun:()=>{s(n)?(0,a.Gc)((function(){o.A.init(d)})):(s(t)||u(r))&&(0,a.Hh)((function(){o.A.init(d)}))}}}catch(p){const m="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",p,window.location.pathname+"-"+m)}}},9782:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const n=window.dataLayer[0],t=[{regex:/^\/resource\//,options:a.xl&&n.user.loggedIn&&"free"==n.user.type&&a.aC.country.uk&&a.aC.lang.en&&document.querySelector('#download_link[data-download="no"]')&&document.querySelector(".trialPriceFlag")}],r=(0,a.DX)(["funnel","upgrades","products"]);r.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),r.push({name:"paymentTrial",regex:/^\/trial$|^\/free-trial-payment\/|^\/trial-free$/,options:!!document.querySelector(".payMonthlyDiv")}),r.push({name:"payment",regex:/^\/trial$|^\/free-trial-payment\/|^\/trial-free$/,options:!!document.querySelector(".payMonthlyDiv")}),r.push({name:"payFinalOffer",regex:/^\/a-payment\/monthly\//,options:!!document.querySelector(".freeTrial99Label")});const i=(0,a.kQ)(["download"]);i.push({type:"click",name:"clickedCTA",parentEl:"#actual_downloads",childEl:"a"});const c=()=>{try{document.querySelector('#download_link[data-download="no"]').innerHTML=document.querySelector('#download_link[data-download="no"]').innerHTML.replaceAll(/Core|Extra|Ultimate/g,"")}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+l)}},l="99FreeTrialCTAWordingUKK",d={n:l,t:()=>s(t),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:c}],g:{u:r,e:i},o:{bucket:(e=n.user.twinklid,e%8<=3?0:1),testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function s(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function u(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return s(t)||!!e&&e[null===(n=window.btoa(l))||void 0===n?void 0:n.replace(/=/g,"")]&&(s(r)||u(i))},codeToRun:()=>{s(t)?(0,a.Gc)((function(){o.A.init(d)})):(s(r)||u(i))&&(0,a.Hh)((function(){o.A.init(d)}))}}}catch(p){const m="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",p,window.location.pathname+"-"+m)}var e}},8732:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const i=window.dataLayer[0];var e=document.querySelectorAll("#resourceMain .avg-rating-wrapper>.return-resource-average-rating .starRating>.starOn"),n=document.getElementById("comments"),t=n?Array.from(n.querySelectorAll(".comment")):void 0;document.fn.reviews=t;var r=function(){var e,o,r=document.createElement("a"),i=document.getElementById("tabbedContent"),c=Math.ceil(t.length/5),l=Array.from({length:c},(function(e,n){var o=5*n;return t.slice(o,o+5)})),d=function(){l.shift().forEach((function(e){n.appendChild(e)})),0===l.length&&r.remove()};(o=document.createElement("div")).innerHTML='

    Reviews

    ',r.className="loadMore button button-outline-blue-link",r.innerText="Load more reviews",r.addEventListener("click",d),o.className="reviewWrapper",n.innerHTML="",n.setAttribute("id","comment"),o.appendChild(n),o.appendChild(r),i.appendChild(o),null===(e=document.querySelector("#tabContent3"))||void 0===e||e.insertAdjacentHTML("beforeend",''),document.querySelector(".ratings-link").setAttribute("href","#breadcrumb"),(0,a.se)(".reviewWrapper{clear:both; text-align:center; padding-top: 3rem;}li.comment .comment-meta .comment-author .icon-profile { position: absolute; left: -42px;font-size: 2rem; top: 6px;}.comment, .replyToComment{line-height:1.3rem; list-style:none;margin-bottom:1rem;}#comment .comment{border-bottom:1px solid #ddd;}.replyToComment.twinkl{border-left:3px solid #2399F9 ; background: #E9F5FE; padding: 1rem;}li.comment .comment-actions{float:none;}.icon-profile:before{color:deeppink;}li.comment .comment-author span:nth-of-type(2){font-size:1.1rem; font-weight:300}.comment .starRating{margin-left: 0;}.reviewWrapper .reviewsHeading{text-align: left; padding-bottom: 1.8rem;}.loadMore{margin: 2rem 0;}#tabContent3 .commentsList{overflow-y:unset; margin-top: 0;}#resourceMain .comment .comment-actions,#resourceMain .comment .commentThankYou, #resourceMain .comment button {display:none;}.seeReviewsLink{margin-top: 3rem;}"),document.querySelector("ul#comment").addEventListener("click",(e=>{var n=e.target.closest(".reply");if(n){n.parentNode.insertAdjacentHTML("afterend",'
    ');var t=n.closest(".comment"),o=t.getAttribute("data-comment-id");n.classList.add("hidden"),t.querySelector(".replyButton").addEventListener("click",(()=>{submitComment("reply",o)}))}})),d(),document.fn.events.emit("reviewRedesignComplete")};/^\/resource\//.test(window.location.pathname)&&a.xl&&n&&t&&t.length>0&&/^1$|^11$|^12$|^25$|^136$|^159$|^161$/.test(i.user.language_id)&&e&&e.length>0&&r();const c=[{regex:/^\/resource\//,options:a.Fr&&!!n&&!!t&&t.length>0&&/^1$|^11$|^12$|^25$|^136$|^159$|^161$/.test(i.user.language_id)&&!!e&&e.length>0}],l=(0,a.DX)(["funnel","upgrades","products"]);l.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const d=(0,a.kQ)(["download"]);d.push({type:"click",name:"clickedDownload",parentEl:"body",childEl:"#actual_downloads a"}),d.push({type:"click",name:"clickedSeeReviews",parentEl:"#tabbed_content",childEl:"a[href='#breadcrumb']"}),d.push({type:"click",name:"clickedShowMoreReviews",parentEl:"#resource",childEl:"a.showMoreReviewsLink, a.loadMore"}),d.push({type:"click",name:"clickedHelpful",parentEl:"#resource",childEl:".comment .commentLike"}),d.push({type:"click",name:"clickedML",parentEl:"#resourceMl",childEl:".what-are-members-downloading-now"}),d.push({type:"click",name:"clickedSimilarSearches",parentEl:".similarSearches",childEl:"a.similar"}),d.push({type:"click",name:"leftStarRating",parentEl:".tabContent .starRating",childEl:"div"}),d.push({type:"click",name:"postedReview",parentEl:".tabContent",childEl:"button#postReview"});const s=()=>{try{r()}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+u)}},u="resourceReviewsMobile",p={n:u,t:()=>m(c),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:s}],g:{u:l,e:d},o:{bucket:-1,testing:!1,fnDataApi:"ga",encodeCookie:!0,deploy:1}};function m(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function h(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return m(c)||!!e&&e[null===(n=window.btoa(u))||void 0===n?void 0:n.replace(/=/g,"")]&&(m(l)||h(d))},codeToRun:()=>{m(c)?(0,a.Gc)((function(){o.A.init(p)})):(m(l)||h(d))&&(0,a.Hh)((function(){o.A.init(p)}))}}}catch(g){const y="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",g,window.location.pathname+"-"+y)}}},8967:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{var e;const l=window.dataLayer[0];var n=!1,t=a.Fr?"mobile":"desktop",r=!1;const d=[{regex:/^\/resource\//,options:a.aC.country.uk&&/^1$|^11$|^12$|^25$|^136$|^159$|^161$/.test(l.user.language_id)&&0==(null===(e=l.user)||void 0===e?void 0:e.twinklid)&&(c=null===(i=n=document.querySelector("#download_link"))||void 0===i?void 0:i.getAttribute("data-ext"),r=document.querySelector("#resource_image"),!(!n||!c||/^html$|^pptx$/.test(c)||!r||!t))}],s=(0,a.DX)(["funnel","upgrades","products"]);s.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),s.push({name:"sign-up",type:"search",regex:/signed_up/,options:!0});const u=(0,a.kQ)(["download"]);u.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),u.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"}),u.push({type:"click",name:"clickedMyDownload",parentEl:"#download_link",childEl:".myHolder"});const p=()=>{try{r.insertAdjacentHTML("afterbegin","
    "),a.xl&&(0,a.se)(".myHolder{background:#5d8200;position: absolute; width:70px;padding: 10px;\nopacity:0.4;\n display: flex;\n align-content: center;\n justify-content: center;\n top: 40%;\n right: 46%;border-radius:50%;}.myHolder:hover{cursor:pointer;background:#4c6509;opacity:1}#resource_image:hover .myHolder{opacity:1}"),a.Fr&&(0,a.se)(".myHolder{ background: #5d8200;\n position: absolute;\n width: 60px;\n padding: 10px;\n display: flex;\n align-content: center;\n justify-content: center;\n top: 35%;\n right: 40%;\n border-radius: 50%;}");var e=document.querySelector(".myHolder");null==e||e.addEventListener("click",(function(e){n.click()}))}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+m)}},m=`downloadButtonOnPreviewProspect${t}1`,h={n:m,t:()=>g(d),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:p}],g:{u:s,e:u},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function g(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function y(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return g(d)||!!e&&e[null===(n=window.btoa(m))||void 0===n?void 0:n.replace(/=/g,"")]&&(g(s)||y(u))},codeToRun:()=>{g(d)?(0,a.Gc)((function(){o.A.init(h)})):(g(s)||y(u))&&(0,a.Hh)((function(){o.A.init(h)}))}}}catch(w){const v="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",w,window.location.pathname+"-"+v)}var i,c}},4191:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/resource\//,options:!o.aC.member.schoolAccount&&e.user.loggedIn&&o.xl&&o.aC.country.uk&&o.aC.lang.en&&document.querySelector("#resource_image picture")&&document.querySelector('a#download_link[data-download="yes"]')&&"free"==e.user.type&&document.querySelector("#header .free-trial")}],t=(0,o.DX)(["funnel","upgrades","products"]);t.push({name:"landedOnFreeTrial",regex:/^\/free-trial-landing/,options:!0});const a=(0,o.kQ)(["download"]);a.push({type:"click",name:"clickedImage",parentEl:"#resource_image",childEl:"picture"}),a.push({type:"click",name:"clickedDownloadableCTA",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"});const r=()=>{try{document.querySelector("#resource_image picture").outerHTML=`${document.querySelector("#resource_image picture").outerHTML}`}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+c)}},i=()=>{try{document.querySelector("#resource_image picture").addEventListener("click",(()=>document.querySelector('#download_link[data-download="yes"]').click())),(0,o.se)("#resource_image picture {\n cursor: pointer;\n}")}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant2-"+c)}},c="downloadableImageClickAction",l={n:c,tg:n,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:r},{name:"variant2",weight:1,run:i}],g:{u:t,e:a},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(l),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},7799:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{var e;const n=window.dataLayer[0],t=[{regex:/^\/resource\//,options:!!n.user.twinklid&&"free"==n.user.type&&n.user.loggedIn&&a.Fr&&document.querySelector('#actual_downloads #download_link[data-download="no"]')&&!!document.querySelector(".flag")&&!(null===(e=dataLayer[0].trial)||void 0===e||null===(e=e.free)||void 0===e||!e.link)&&!/^244$|^226$|^20$|^100$|^107$|^110$|^129$|^150$|^169$|^171$|^232$|^113$/.test(n.user.country_id)}],r=(0,a.DX)(["funnel","upgrades","products"]);r.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),r.push({name:"paymentTrial",regex:/^\/trial$|^\/free-trial-payment\/|^\/trial-free$/,options:!!document.querySelector(".payMonthlyDiv")}),r.push({name:"payment",regex:/^\/trial$|^\/free-trial-payment\/|^\/trial-free$/,options:!!document.querySelector(".payMonthlyDiv")}),r.push({name:"payFinalOffer",regex:/^\/a-payment\/monthly\//,options:!!document.querySelector(".freeTrial99Label")});const i=(0,a.kQ)(["download"]);i.push({type:"click",name:"clickedCTA",parentEl:"#actual_downloads",childEl:"a"});const c=()=>{},l=()=>{try{(0,a.se)("#actual_downloads .flagPresentSpan .flag.trialPriceFlag {\n display: none;\n }\n @media (max-width: 575px) {\n #actual_downloads:has(#download_link.freeTrial){ width: 100%}\n }\n #actual_downloads #download_link.freeTrial .dlButtonContainer{\n justify-content: space-around;\n }");var e=document.querySelector(".trialPriceFlag"),n=document.querySelector(".download.flagPresentSpan");if(e&&n){var t=document.querySelector(".download.flagPresentSpan>a");t.className="button freeTrial",t.innerHTML=dataLayer[0].trial.free.button,n.querySelectorAll("a").forEach((e=>{e.href="/free-trial-landing"}))}}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+d)}},d="99trialMobileRetesttt"+(/^226/.test(n.user.country_id)?"US":"UK"),s={n:d,t:()=>u(t),ttl:60,b:[{name:"original",weight:1,run:c},{name:"variant",weight:1,run:l}],g:{u:r,e:i},o:{bucket:n.user.twinklid%2,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function u(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function p(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return u(t)||!!e&&e[null===(n=window.btoa(d))||void 0===n?void 0:n.replace(/=/g,"")]&&(u(r)||p(i))},codeToRun:()=>{u(t)?(0,a.Gc)((function(){o.A.init(s)})):(u(r)||p(i))&&(0,a.Hh)((function(){o.A.init(s)}))}}}catch(m){const h="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",m,window.location.pathname+"-"+h)}}},7919:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{window.dataLayer[0];const e=[{regex:/^\/resource\//,options:a.aC.country.uk&&a.aC.lang.en&&a.xl}],n=(0,a.DX)(["funnel","upgrades","products"]),t=(0,a.kQ)(["download"]);t.push({type:"click",name:"clickedDownloadableCTA",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),t.push({type:"click",name:"clickednondownloadablecta",parentel:"#actual_downloads",childel:"a[data-download='no']"}),t.push({type:"click",name:"clickedCTA",parentel:"#actual_downloads",childel:"a"}),t.push({type:"click",name:"clickedML",parentel:"#mlResources",childel:"a"}),t.push({type:"click",name:"clickedPreviewImage",parentel:"#resource_image",childel:"a"});const r=()=>{try{(0,a.se)("#resource #resourceMl #mlResources {\n grid-gap: calc(1rem - 2px)!important;}\n @media screen and (min-width: 1200px) {\n #container.resource-page {\n width: calc(1139px + 2rem)!important;\n }\n }")}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+i)}},i="mlandPreviewResolutionPixels",c={n:i,t:()=>l(e),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:r}],g:{u:n,e:t},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function l(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function d(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:o=>{var a;return l(e)||!!o&&o[null===(a=window.btoa(i))||void 0===a?void 0:a.replace(/=/g,"")]&&(l(n)||d(t))},codeToRun:()=>{l(e)?(0,a.Gc)((function(){o.A.init(c)})):(l(n)||d(t))&&(0,a.Hh)((function(){o.A.init(c)}))}}}catch(s){const u="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",s,window.location.pathname+"-"+u)}}},6624:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/resource\//,options:!o.aC.member.schoolAccount&&e.user.loggedIn&&o.Fr&&"free"==e.user.type&&document.querySelector('#download_link.flagPresent[data-download="no"]')&&o.aC.country.uk&&o.aC.lang.en&&document.querySelector(".trialPriceFlag")}],t=(0,o.DX)(["funnel","upgrades","products"]);t.push({name:"landedOnFreeTrialLanding",regex:/^\/free-trial-landing/,options:!0});const a=(0,o.kQ)(["download"]);a.push({type:"click",name:"clickedNonDownloadableCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']",mod:5});const r=()=>{try{(0,o.se)('.trialPriceFlag{\n background:none!important;\n left: 10px;\n top: 8px!important;\n color: white !important;\n border: 0 !important;\n box-shadow: none !important;\n border-right:2px solid #ffffff26!important;\n width:100px!important;\n height:56px!important;\n border-radius:0!important;\n }#actual_downloads a#download_link:not([href^="/go/"]):not([href^="/ar-3d/"]):not(.freeTrial):not(.mobile-download) {\n padding-left: 115px!important;\n }#actual_downloads a#download_link:not([href^="/go/"]):not([href^="/ar-3d/"]):not(.freeTrial):not(.mobile-download):before {\n content:\'\'!important\n }svg.downloadSVG {\n right: 12px;\n top: 12px;\n position: absolute;\n fill: white;\n }a#download_link {\n height: 70px!important;\n padding-top: 10px !important;\n }a#download_link {\n background-color: #039500 !important;\n }.stickyRContainer a.flag.core.trialPriceFlag {\n font-size: 21px!important;\n }a#download_link {\n padding-right: 50px!important;\n }'),document.querySelector(".trialPriceFlag").innerHTML="£0.0030 day trial",document.querySelector("#download_link").insertAdjacentHTML("beforeend",''),setTimeout((()=>document.querySelectorAll("#actual_downloads a[href]").forEach((e=>e.href="/free-trial-landing"))),1e3)}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+i)}},i="mobileCtaWithPipe",c={n:i,tg:n,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:r}],g:{u:t,e:a},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(c),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},2726:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>i});var o=t(869),a=t(2834),r=t(8633);const i=()=>{try{var e;const n=window.dataLayer[0],t=[{regex:/^\/resource\//,options:n.user.twinklid>0&&!!document.querySelector("#average_rating")&&a.aC.lang.en&&(/^US/.test(n.geo)&&"226"==n.user.country_id||"244"==n.user.country_id)&&!(null===(e=n.resource)||void 0===e||!e.age_profile)}],i=[],c=[],l=()=>{try{a.xl&&(0,o.A)()}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+u)}},d=()=>{try{(0,o.A)(),a.xl?(0,r.A)(!1):(0,r.A)(!0)}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+u)}},s=()=>{try{(0,o.A)(),(0,r.A)(!0)}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+u)}},u=`resourceExtraInfo-v2${a.aC.country.uk?"-England"+(/^110$/.test(n.user.career_id)?"-parent":""):"-US"}${a.Fr?"-mobile":"-desktop"}`,p={n:u,tg:t,ttl:60,b:[{name:"original",weight:1,run:l},{name:"variant",weight:1,run:d},{name:"variant2",weight:1,run:s}],g:{u:i,e:c},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,a.b3)(p),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",e,window.location.pathname+"-"+n)}}},4357:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/resource\//,options:e.user.loggedIn&&"free"==e.user.type&&document.querySelector('#actual_downloads #download_link[data-download="no"]')&&a.aC.country.uk&&a.aC.lang.en&&a.xl&&document.querySelectorAll(".emailCheck,.generic_pop:not(#logout-popup)").length>0}],t=(0,a.DX)(["funnel","upgrades","products"]),r=(0,a.kQ)(["download"]);r.push({type:"click",name:"clickedCTA",parentEl:"#actual_downloads",childEl:"a"}),r.push({type:"click",name:"clickedCTA",parentEl:"#resource_image",childEl:"a"}),r.push({type:"click",name:"clickedML",parentEl:"#mlResources",childEl:"a"});const i=()=>{try{(0,a.se)("body .generic_pop:not(#logout-popup),body .emailCheck{\n display:none!important;\n}#header-overlay::after, #messageOverlay, #overlay, #overlayNotDismissible, #popUpOverlay{\n display:none!important;\n}")}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+c)}},c="noPopUpsResourceFreeNonDownloadableNoMerchRetest",l={n:c,t:()=>d(n),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:i}],g:{u:t,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function d(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function s(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var o;return d(n)||!!e&&e[null===(o=window.btoa(c))||void 0===o?void 0:o.replace(/=/g,"")]&&(d(t)||s(r))},codeToRun:()=>{d(n)?(0,a.Gc)((function(){o.A.init(l)})):(d(t)||s(r))&&(0,a.Hh)((function(){o.A.init(l)}))}}}catch(u){const p="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",u,window.location.pathname+"-"+p)}}},5852:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/resource\//,options:!a.aC.member.schoolAccount&&e.user.loggedIn&&a.Fr&&a.aC.country.uk&&a.aC.lang.en}],t=(0,a.DX)(["funnel","upgrades","products"]);t.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const r=(0,a.kQ)(["download"]);r.push({type:"click",name:"clickedPostDownloadresource",parentEl:"#resources_overlay",childEl:".res-card a "}),r.push({type:"click",name:"clickedMLResource",parentEl:"#resourceMl",childEl:".what-are-members-downloading-now a "});const i=()=>{try{(0,a.se)(".ml-res-display-box .starRating {display:none} .ml-res-display-box span {display:none} .resource-page #resource_image .ml-res-display-box{padding:5px}.resource-page #resource_image .ml-res-display-box .res-container {width:45%} .closeRevOverlay {font-size: 2rem;right:0.3rem!important}.resource-page #resource_image .ml-res-display-box .res-card{column-gap:5px!important} ")}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+c)}},c="postDownloadMobileOverlay",l={n:c,t:()=>d(n),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:i}],g:{u:t,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function d(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function s(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var o;return d(n)||!!e&&e[null===(o=window.btoa(c))||void 0===o?void 0:o.replace(/=/g,"")]&&(d(t)||s(r))},codeToRun:()=>{d(n)?document.fn.events.on("download",(()=>{o.A.init(l)})):(d(t)||s(r))&&(0,a.Hh)((function(){o.A.init(l)}))}}}catch(u){const p="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",u,window.location.pathname+"-"+p)}}},2651:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const t=window.dataLayer[0],a=[{regex:/^\/resource\//,options:!o.aC.member.schoolAccount&&t.user.loggedIn&&"free"==t.user.type&&o.aC.lang.en&&o.xl&&o.aC.country.uk&&document.querySelector('#download_link[data-download="no"]')&&document.querySelector('.ultimateCTAContainer a[href^="/free-trial"]')&&document.querySelector("#download_link.freeTrial")}],r=(0,o.DX)(["funnel","upgrades","products"]);r.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const i=(0,o.kQ)(["download"]);i.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),i.push({type:"click",name:"clickedCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']",mod:5});var e=()=>{(0,o.se)("#actual_downloads #download_link.freeTrial .dlButtonContainer .trialFlag{border:0!important;border-right:2px solid #ffffff26!important;border-radius:0!important;padding-right:10px!important;}")};const c="resourceCTAColourRetestWithPipe";var n=[{name:"NormalGreenPipedCategory",weight:1,run:()=>{try{e()}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant1-"+c)}}},{name:"DarkGreenPipedCategory",weight:1,run:()=>{try{(0,o.se)("#actual_downloads #download_link.freeTrial{background-color:#039500!important;}"),e()}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant5-"+c)}}}];const l={n:c,tg:a,ttl:60,b:n,g:{u:r,e:i},o:{bucket:t.user.twinklid%n.length,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(l),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},5156:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const l=window.dataLayer[0];var e=!1,n=!1,t=!1,r=!1,i=!1,c=!1;a.aC.lang.en&&a.aC.country.uk&&a.Fr&&/^\/resource\//.test(location.pathname)&&(e=document.querySelector(".descriptionWrap"),n=document.querySelector(".descriptionWrap .showMoreDes"),t=document.querySelector(".resourceDescription"),i=Array.from(document.querySelectorAll(".comment.has-rating")),r=document.querySelector(".shortDescription"),i&&i.length>3&&(c=i.find((function(e){var n;if((null===(n=e.querySelector("p"))||void 0===n||null===(n=n.innerText)||void 0===n?void 0:n.length)>50&&e.querySelector(".starRating[data-rating-number='5'"))return e}))));const d=[{regex:/^\/resource\//,options:a.aC.lang.en&&a.aC.country.uk&&a.Fr&&e&&t&&l.user.loggedIn&&n&&r||a.aC.lang.en&&a.aC.country.uk&&a.Fr&&l.user.loggedIn&&i&&i.length>3}],s=(0,a.DX)(["funnel","upgrades","products"]);s.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const u=(0,a.kQ)(["download"]);u.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),u.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"}),u.push({type:"click",name:"clickedInfinteScrollResource",parentEl:"#newResCont ",childEl:".resultContainer "}),u.push({type:"click",name:"clickedMLColumn",parentEl:"#mlResources",childEl:".what-are-members-downloading-now"}),u.push({type:"click",name:"clickedShowMoreDescription",parentEl:"#resource",childEl:".showMoreDesLink"}),u.push({type:"click",name:"clickedShowMoreReviews",parentEl:"#resource",childEl:".loadMore"}),u.push({type:"click",name:"clickedStarReviews",parentEl:"#tabbedContent",childEl:".starOff "}),u.push({type:"click",name:"clickedRequestSupport",parentEl:"#tabbedContent",childEl:".request-support "}),u.push({type:"click",name:"clickedRequestSupport",parentEl:"#tabbedContent",childEl:".request-support "}),u.push({type:"click",name:"clickedUpgradeToLeaveAReview",parentEl:"#tabbedContent",childEl:"#join_to_comment "});const p=()=>{try{e&&t&&n&&r&&(e.insertAdjacentElement("afterbegin",t),n.addEventListener("click",(function(e){t.classList.add("showMe"),r.classList.add("hide"),n.classList.add("hide")})),(0,a.se)(".resourceDescription{display:none}.resourceDescription.showMe{display:block} .shortDescription.hide,.showMoreDes.hide{display:none!important}")),i&&i.length>3&&document.fn.events.on("reviewRedesignComplete",(()=>{var e=document.querySelector(".reviewWrapper"),n=document.querySelector(".reviewWrapper #comment"),t=document.querySelector(".tabContent .seeReviewsLink");if(e&&n&&t){var o=document.querySelector(".loadMore"),r=document.querySelector(".seeReviewsLink a");if(r&&(r.innerText="See more reviews",r.addEventListener("click",(function(e){null==o||o.classList.add("showMe"),(0,a.se)(".reviewWrapper {display:block!important}.comment{display:block!important}.what-are-members-downloading-now{display:block!important}.replyToComment{display:block!important}")}))),c&&c.outerHTML){c.classList.add("showMe");var i=c.outerHTML;t.insertAdjacentHTML("beforebegin",i),(0,a.se)(".replyToComment {display:none}")}else if(document.querySelector(".comment.has-rating .starRating[data-rating-number='5")){var l;(s=document.querySelector(".comment.has-rating .starRating[data-rating-number='5"))&&s.parentNode&&s.parentNode.parentNode&&t.insertAdjacentElement("beforebegin",s.parentNode.parentNode),null===(l=s)||void 0===l||null===(l=l.parentNode)||void 0===l||null===(l=l.parentNode)||void 0===l||l.classList.add("showMe")}else if(document.querySelector(".comment.has-rating")){var d,s;(s=document.querySelector(".comment.has-rating .starRating[data-rating-number='5"))&&s.parentNode&&s.parentNode.parentNode&&t.insertAdjacentElement("beforebegin",s.parentNode.parentNode),null===(d=s)||void 0===d||null===(d=d.parentNode)||void 0===d||null===(d=d.parentNode)||void 0===d||d.classList.add("showMe")}(0,a.se)(".tabContent .commentsList{display:none} .tabContent #join_to_comment {border: none;margin:2px!important;\n text-align: left!important;\n float: left!important;\n padding: 0px!important;\n font-size: 12px!important;} .seeReviewsLink a{text-decoration:none!important}.seeReviewsLink{ display: flex;\n border: 1px solid #2a97d4;\n justify-content: center;\n padding: 7px;\n border-radius: 5px;}.tabContent .commentLike,.tabContent .comment-actions {display:none!important} .request-support { text-align: left!important; text-decoration: underline;margin: 0px;\n border: none;\n font-weight: normal;\n font-size: 13px;}.seeReviewsLink {margin-top:0px!important}.tabContent .replyToComment {display:none!important} .tabContent .alert{display:none} #ratingMainDiv {margin-top:0px!important} .tabContent .icon-profile{position:static!important}.reviewWrapper {display:none!important}.comment.showMe{display:block}.loadMore{display:none!important}.myLoad{display:block!important}.myLoad.hideMe{display:none!important}.loadMore.showMe{display:block!important}.what-are-members-downloading-now:nth-of-type(n+21){display:none}.reviewWrapper{padding-top:0px}.reviewsHeading{padding-bottom:0px!important}.comment.showMe:nth-of-type(n+2){display:none!important}.showMoreReviewsLink{display:none}.myLoad {border-color:none }")}}))}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+m)}},m="reduceReviewsAndDescriptionMobile2",h={n:m,t:()=>g(d),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:p}],g:{u:s,e:u},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function g(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function y(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return g(d)||!!e&&e[null===(n=window.btoa(m))||void 0===n?void 0:n.replace(/=/g,"")]&&(g(s)||y(u))},codeToRun:()=>{g(d)?(0,a.Gc)((function(){o.A.init(h)})):(g(s)||y(u))&&(0,a.Hh)((function(){o.A.init(h)}))}}}catch(w){const v="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",w,window.location.pathname+"-"+v)}}},372:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{window.dataLayer[0];const e=[{regex:/^\/resource\//,options:!!a.Fr}],n=[],t=[],r=()=>{try{(0,a.se)(".similarSearches a.similar{flex: 1 1 150px; text-align: initial; line-height: initial; justify-content: left; overflow: hidden; font-size: 12px; padding: 5px!important; height: auto!important;}.similarSearches .similar img{margin-right: 10px;}#resource .similarSearches{margin-right: -10px; height: max-content; max-height: unset;}.similarSearches a.similar:nth-child(n+7){display: none!important;}")}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+i)}},i="relatedSearchOneSizeMobile",c={n:i,t:()=>l(e),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:r}],g:{u:n,e:t},o:{bucket:-1,testing:!0,fnDataApi:"ga",encodeCookie:!0,deploy:1}};function l(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function d(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:o=>{var a;return l(e)||!!o&&o[null===(a=window.btoa(i))||void 0===a?void 0:a.replace(/=/g,"")]&&(l(n)||d(t))},codeToRun:()=>{l(e)?(0,a.Gc)((function(){o.A.init(c)})):(l(n)||d(t))&&(0,a.Hh)((function(){o.A.init(c)}))}}}catch(s){const u="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",s,window.location.pathname+"-"+u)}}},7606:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{var e;window.dataLayer[0];const n=[{regex:/^\/resource\//,options:!o.aC.member.schoolAccount&&1==(null===(e=document.querySelectorAll("#breadcrumb a"))||void 0===e?void 0:e.length)&&document.querySelector('#breadcrumb a[href="/"]')&&o.xl}],t=(0,o.DX)(["funnel","upgrades","products"]);t.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const a=(0,o.kQ)(["download"]);a.push({type:"click",name:"clickedTwinklBreadcrumb",parentEl:"#breadcrumb",childEl:"a[href='/']"}),a.push({type:"click",name:"clickedBreadcrumb",parentEl:"#breadcrumb",childEl:"a"}),a.push({type:"click",name:"clickedOtherA",parentEl:"body",childEl:"a"});const r=()=>{try{var e;null===(e=document.querySelector("#breadcrumb"))||void 0===e||e.remove()}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+i)}},i="removeSingularBreadCrumb",c={n:i,tg:n,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:r}],g:{u:t,e:a},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(c),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},4247:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/resource\//,options:!o.aC.member.schoolAccount&&e.user.loggedIn&&"free"==e.user.type&&(o.aC.country.uk||226==e.user.country_id)&&!!document.querySelector('a#download_link[data-download="no"]')&&document.querySelector("#resource_image a")}],t=(0,o.DX)(["funnel","upgrades","products"]);t.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const a=(0,o.kQ)(["download"]);a.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),a.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"});const r=()=>{try{setTimeout((()=>{document.querySelectorAll('a#download_link[data-download="no"][href^="/free-trial-payment"],#resource_image a[href^="/free-trial-payment"]').forEach((e=>{e.href="/free-trial-landing"}))}),500)}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+i)}},i="resourceCTADirectTestUSMobile",c={n:i,tg:n,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:r}],g:{u:t,e:a},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(c),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},2750:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{window.dataLayer[0];const e=[{regex:/^\/resource\//,options:!!document.querySelector(".similarSearches>.similar")}],n=(0,o.DX)(["funnel"]);n.push({name:"searchAfterResource",regex:/^\/search$/,options:/\/resource\//.test(document.referrer)}),n.push({name:"search",regex:/^\/search$/,options:!0});const t=(0,o.kQ)(["download"]);t.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),t.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"}),t.push({type:"click",name:"clickedML",parentEl:"#resourceMl",childEl:".what-are-members-downloading-now"});const a=()=>{try{(0,o.se)("section#tabbedContent>h4, #tabbedContent>.similarSearches{display:none;}")}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+r)}},r="resourceHideSearchSuggestions",i={n:r,tg:e,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:a}],g:{u:n,e:t},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(i),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},2332:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const r=window.dataLayer[0];var e,n,t,a=()=>{};const i=[{regex:/^\/resource\//,options:/^\/resource\/(?!free-resource)/.test(location.pathname)&&r.user.loggedIn&&!!sessionStorage.latestSearch&&(()=>{var o,r,i=null===(o=sessionStorage)||void 0===o||null===(o=o.latestSearch)||void 0===o?void 0:o.substring(8,21);if(void 0!==i&&Date.now()-+i>12e5)return!1;if(!(t=document.querySelector("#mlResources")))return!1;e=[...t.querySelectorAll("div.what-are-members-downloading-now")];var c=null===(r=JSON.parse(sessionStorage.latestSearch))||void 0===r?void 0:r.results;if(c&&c.length>0){n=new Set(c);var l=e.slice(0,12).some((e=>{var t=e.querySelector("a > img").getAttribute("data-resource-id");return n.has(t)}));return l&&(a=(o=5)=>{var a=[];e.forEach(((e,t)=>{var r=(Math.pow(1/(Math.pow(t/25,.8)+1),5)+.015)/1.015,i=e.querySelector("a > img").getAttribute("data-resource-id");if(n.has(i))var c=r*o;else c=r;a.push({index:t,new_score:c})})),a=a.sort(((e,n)=>n.new_score-e.new_score)),t.innerHTML="",a.forEach((n=>{var o=e[n.index];t.appendChild(o)}))}),l}return!1})()}],c=(0,o.DX)(["funnel","products"]);c.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const l=[];l.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),l.push({type:"click",name:"clickedML",parentEl:".whatsPopular",childEl:".what-are-members-downloading-now a",mod:3}),l.push({type:"click",name:"clickedFirst4",parentEl:".whatsPopular",childEl:".what-are-members-downloading-now:nth-of-type(-n+5) a"});const d=()=>{try{a(5)}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-original-"+u)}},s=()=>{try{a(100)}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+u)}},u="resourcePageSearchMlMix-v7",p={n:u,tg:i,ttl:60,b:[{name:"original",weight:1,run:d},{name:"variant",weight:1,run:s}],g:{u:c,e:l},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(p),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},812:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const t=window.dataLayer[0];var e=!1,n=!1;/^\/resource\//.test(location.pathname)&&!t.user.loggedIn&&0==t.user.twinklid&&a.aC.country.uk&&a.aC.lang.en&&""==t.user.type&&(e=document.querySelector("#resource_image .sticker.sticker-free"),a.Fr?n="mobile":a.xl&&(n="desktop"));const r=[{regex:/^\/resource\//,options:!!e&&n}],i=(0,a.DX)([]);i.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),i.push({name:"sign-up",type:"search",regex:/signed_up/,options:!0}),i.push({name:"visitedSignUp",type:"pathname",regex:/^\/sign-up$/,options:!0});const c=(0,a.kQ)(["download"]);c.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),c.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"});const l=()=>{try{(0,a.se)("#resource_image .sticker.sticker-free{display:none}")}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+d)}},d=`resourceMobileProspectRemoveFreeBanner${n}`,s={n:d,t:()=>u(r),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:l}],g:{u:i,e:c},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function u(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function p(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return u(r)||!!e&&e[null===(n=window.btoa(d))||void 0===n?void 0:n.replace(/=/g,"")]&&(u(i)||p(c))},codeToRun:()=>{u(r)?(0,a.Gc)((function(){o.A.init(s)})):(u(i)||p(c))&&(0,a.Hh)((function(){o.A.init(s)}))}}}catch(m){const h="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",m,window.location.pathname+"-"+h)}}},3738:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const t=window.dataLayer[0];var e=!!document.querySelector("#actual_downloads a[data-download='no']"),n=document.querySelector("#resource_image .getFreeResources");const r=[{regex:/^\/resource\//,options:a.xl&&t.user.loggedIn&&"free"==t.user.type&&e&&!!n&&/^244$|^247$|^246$|^245$/.test(t.user.country_id)&&/^1$|^11$|^12$|^25$|^136$|^159$|^161$/.test(t.user.language_id)}],i=(0,a.DX)(["funnel","products"]),c=(0,a.kQ)(["download"]);c.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a"}),c.push({type:"click",name:"clickedNewsletterCTA",parentEl:"#resource_image",childEl:".getFreeResources.resourcePagePreview"}),c.push({type:"click",name:"joinedNewsletter",parentEl:"body",childEl:".newsletterContainer .joinButton"});const l=()=>{try{(0,a.se)("body .getFreeResources { display: none!important; }")}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+d)}},d="resourceNewsletterCTAPremium",s={n:d,t:()=>u(r),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:l}],g:{u:i,e:c},o:{bucket:-1,testing:!0,fnDataApi:"ga",encodeCookie:!0,deploy:1}};function u(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function p(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return u(r)||!!e&&e[null===(n=window.btoa(d))||void 0===n?void 0:n.replace(/=/g,"")]&&(u(i)||p(c))},codeToRun:()=>{u(r)?(0,a.Gc)((function(){o.A.init(s)})):(u(i)||p(c))&&(0,a.Hh)((function(){o.A.init(s)}))}}}catch(m){const h="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",m,window.location.pathname+"-"+h)}}},4015:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e="resourcePinchToZoomUpscaleV2",n=window.dataLayer[0],t=[{regex:/^\/resource\/(?!free-resource)/,options:o.Fr&&/^\/resource\/(?!free-resource)/.test(window.location.pathname)&&((0,o.e9)(e)||!(n.user.loggedIn&&"paid"==n.user.type&&n.user.twinklid))&&!!window.visualViewport}];t[0].options&&(0,o.Gc)((()=>{var e=!1;window.visualViewport.addEventListener("resize",(function(){1===window.visualViewport.scale||e||(document.fn.events.emit("pinchToZoom"),e=!0)})),document.fn.events.on("last",(()=>{document.fn.events.emit("pageViewDurationStart")}))}));const a=(0,o.DX)(["funnel","upgrades","products"]);a.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const r=(0,o.kQ)(["download"]);r.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),r.push({type:"click",name:"saveButtonClick",parentEl:"#fav_wrapper",childEl:"a.create_fav"}),r.push({path:/^\/resource\//,type:"on",name:"pinchToZoom",on:"pinchToZoom",mod:3}),r.push({type:"on",on:"pageViewDurationStart",name:"pageViewDuration",mod:1,bypass:!0}),a.push({name:"signed-up",regex:/signed_up/,type:"search",options:!0});const i={n:e,tg:t,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:()=>{try{let e=()=>{var e;let n=null===(e=document.querySelector('link[rel="preload"]'))||void 0===e?void 0:e.href;if(n){var t,o;let c=/\.([0-9a-z]+)(?:[\?#]|$)/i,l=null===(o=(null===(t=document.querySelector("#resource_image picture img"))||void 0===t?void 0:t.src).match(c))||void 0===o||null===(o=o[0])||void 0===o?void 0:o.toString();var a,r,i=(/\/u\/ux\//.test(n)?"https://images.twinkl.co.uk/tr/raw/upload"+(null==n||null===(a=n.match(/(\/u\/ux\/[\w\-\.\_]+)$/))||void 0===a?void 0:a[0]):"https://content.twinkl.co.uk/image"+(null==n||null===(r=n.match(/(\/[\w]+\/[\w\-\.]+\/[\w\-\.]+)$/g))||void 0===r?void 0:r[0])).replace(/\.\w+$/,`${l}`);let d=document.querySelector("#resource_image picture source");function s(){d.srcset=i}setTimeout(s,1e3)}};document.fn.events.on("pinchToZoom",e)}catch(n){(0,o.BI)("ABError",n,window.location.pathname+"-variant-"+e)}}}],g:{u:a,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(i,(e=>{o.e9?(0,o.Gc)(e):document.fn.events.on("pinchToZoom",e)})),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},4508:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{window.dataLayer[0];var e=document.querySelectorAll(".what-are-members-downloading-now .sticker.sticker-aus.sticker-no-hover");const n=[{regex:/^\/resource\//,options:a.xl&&!!e&&e.length>0&&a.aC.country.uk&&a.aC.lang.en}],t=(0,a.DX)(["funnel"]);t.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const r=(0,a.kQ)(["download"]);r.push({type:"click",name:"clickedDownloadCTA",parentEl:"body",childEl:"#actual_downloads a"}),r.push({type:"click",name:"clickedMl",parentEl:"#resourceMl",childEl:".what-are-members-downloading-now a"}),r.push({type:"click",name:"clickedMl-AustralianResource",parentEl:"#resourceMl",childEl:".what-are-members-downloading-now.aus_res a"}),r.push({path:/^\/resource\//,type:"click",name:"downloadedAustralianResource",parentEl:"body",childEl:"#actual_downloads a[data-download='yes']",options:!!document.querySelector("#resource_image .sticker-aus")}),r.push({path:/^\/resource\//,type:"click",name:"clickedAustralianResourceCTA",parentEl:"body",childEl:"#actual_downloads a",options:!!document.querySelector("#resource_image .sticker-aus")});const i=()=>{try{e.forEach((e=>{var n=e.closest(".what-are-members-downloading-now");n&&n.classList.add("aus_res")}))}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+l)}},c=()=>{try{e.forEach((e=>{var n=e.closest(".what-are-members-downloading-now");n&&n.classList.add("aus_res"),e.remove()}))}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+l)}},l="resourceRemoveAusMlBanner2",d={n:l,t:()=>s(n),ttl:60,b:[{name:"original",weight:1,run:i},{name:"variant",weight:1,run:c}],g:{u:t,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function s(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function u(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var o;return s(n)||!!e&&e[null===(o=window.btoa(l))||void 0===o?void 0:o.replace(/=/g,"")]&&(s(t)||u(r))},codeToRun:()=>{s(n)?(0,a.Gc)((function(){o.A.init(d)})):(s(t)||u(r))&&(0,a.Hh)((function(){o.A.init(d)}))}}}catch(p){const m="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",p,window.location.pathname+"-"+m)}}},462:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const n=window.dataLayer[0];var e=document.querySelector(".newSignUpFree");const t=[{regex:/^\/resource\//,options:a.xl&&!!e&&0==n.user.twinklid&&!n.user.loggedIn&&/^$|^none$/.test(n.user.type)&&/^244$|^245$|^246$|^247$/.test(n.user.country_id)}],r=(0,a.DX)(["funnel"]);r.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),r.push({name:"sign-up",type:"search",regex:/signed_up/,options:!0}),r.push({name:"visitedSignUp",type:"pathname",regex:/^\/sign-up$/,options:!0});const i=(0,a.kQ)(["download"]);i.push({type:"click",name:"clickedDownloadCTA",parentEl:"#actual_downloads",childEl:"a"}),i.push({type:"click",name:"clickedPreviewImage",parentEl:"#resource_image",childEl:"a"}),i.push({type:"click",name:"clickedFreeAccountIncludesCTA",parentEl:".newSignUpFree",childEl:".freeUspBody a"}),i.push({type:"click",name:"clickedAnyResourceSignUpLink",parentEl:"#resource",childEl:"a[href='/sign-up']"}),i.push({type:"click",name:"clickedHeaderSignUp",parentEl:"#sticky-header",childEl:"a[href='/sign-up']"});const c=()=>{try{(0,a.se)(".newSignUpFree{display: none!important;}")}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+l)}},l="resourceRemoveFreeAccIncludes",d={n:l,t:()=>s(t),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:c}],g:{u:r,e:i},o:{bucket:-1,testing:!0,fnDataApi:"ga",encodeCookie:!0,deploy:1}};function s(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function u(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return s(t)||!!e&&e[null===(n=window.btoa(l))||void 0===n?void 0:n.replace(/=/g,"")]&&(s(r)||u(i))},codeToRun:()=>{s(t)?(0,a.Gc)((function(){o.A.init(d)})):(s(r)||u(i))&&(0,a.Hh)((function(){o.A.init(d)}))}}}catch(p){const m="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",p,window.location.pathname+"-"+m)}}},5960:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/resource\//,options:!!a.xl&&/^244$|^247$|^246$|^245$/.test(e.user.country_id)}],t=[],r=[],i=()=>{try{(0,a.se)("#resource #tabbed_content .tab { background-color: #f9f9f9; border: 2px solid #ddd; border-bottom: 0; }\n .tabContent.top-minus-3px.selected { border-radius: 0 5px 5px 5px; }\n #resource #tabbed_content .tabContent { border: 2px solid #ddd; }\n #resource #tabbedContent #tabContent3 .seeReviewsLink { margin-top: 2rem; }\n #resource #tabbedContent #tabContent3 .seeReviewsLink a{ text-decoration: none; }\n #resource #tabbedContent #tabContent3 .seeReviewsLink a:hover {text-decoration: underline;}\n .request-support { min-width: 50%; font-size: 16px; }\n #tabbed_content button.button-outline-blue-link.alert { padding: 10px; }\n #resource #resourceMain h1 { font-size: 1.45em; }\n #resource #tabbed_content .first { border-left: 2px solid #ddd!important; }\n .ratingWrapper { border: 0; }\n .ratingWrapper .ratingBar>div.barInner { background: #FFB800; }\n .ratingHolder.before-reviews .rating .rate-this { margin-bottom: 10px; }\n #resource #tabbed_content .tab:not(.selected):hover { background-color: #F0F0F0; }\n #tabbed_content ul#comments { display: none; }\n #tabContent3 .commentsList.m-b-2 { margin-bottom: 0.5rem!important; }")}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+c)}},c="resourceTabbedSectionUI",l={n:c,t:()=>d(n),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:i}],g:{u:t,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",encodeCookie:!0,deploy:1}};function d(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function s(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var o;return d(n)||!!e&&e[null===(o=window.btoa(c))||void 0===o?void 0:o.replace(/=/g,"")]&&(d(t)||s(r))},codeToRun:()=>{d(n)?(0,a.Gc)((function(){o.A.init(l)})):(d(t)||s(r))&&(0,a.Hh)((function(){o.A.init(l)}))}}}catch(u){const p="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",u,window.location.pathname+"-"+p)}}},6126:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{var e,n,t,r;const l=window.dataLayer[0];var i=!1,c=!1;/^\/resource\//.test(location.pathname)&&!a.aC.member.schoolAccount&&l.user.loggedIn&&a.xl&&a.aC.country.uk&&a.aC.lang.en&&"paid"==(null===(e=l.user)||void 0===e?void 0:e.type)&&/^Core$|^Extra$/.test(null===(n=l.user.subscription)||void 0===n||null===(n=n.bundle)||void 0===n?void 0:n.name)&&0==(null===(t=l.user)||void 0===t?void 0:t.schoolAccount)&&localStorage.hasVC&&/^19$|^20$/.test(null===(r=l.user)||void 0===r||null===(r=r.subscription)||void 0===r?void 0:r.type_id)&&(i=document.querySelector(".flag.ultimate.upgrade-now-monthly"),c=document.querySelector(".flag.ultimate.upgrade-now-monthly div"));const d=[{regex:/^\/resource\//,options:!!i&&!!c}],s=(0,a.DX)(["funnel","upgrades","products"]);s.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const u=(0,a.kQ)(["download"]);u.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),u.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"});const p=()=>{try{i.outerHTML='\n \n
    Upgrade
    for
    £0.00
    '}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+m)}},m="resourceUltimateFreeTrialCTA1",h={n:m,t:()=>g(d),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:p}],g:{u:s,e:u},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function g(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function y(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return g(d)||!!e&&e[null===(n=window.btoa(m))||void 0===n?void 0:n.replace(/=/g,"")]&&(g(s)||y(u))},codeToRun:()=>{g(d)?(0,a.Gc)((function(){o.A.init(h)})):(g(s)||y(u))&&(0,a.Hh)((function(){o.A.init(h)}))}}}catch(w){const v="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",w,window.location.pathname+"-"+v)}}},1846:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{var e,n,t,r;const l=window.dataLayer[0];var i=!1,c=!1;/^\/resource\//.test(location.pathname)&&!a.aC.member.schoolAccount&&l.user.loggedIn&&a.xl&&a.aC.country.uk&&a.aC.lang.en&&"paid"==(null===(e=l.user)||void 0===e?void 0:e.type)&&/^Core$|^Extra$/.test(null===(n=l.user.subscription)||void 0===n||null===(n=n.bundle)||void 0===n?void 0:n.name)&&0==(null===(t=l.user)||void 0===t?void 0:t.schoolAccount)&&localStorage.hasVC&&!/^19$|^20$/.test(null===(r=l.user)||void 0===r||null===(r=r.subscription)||void 0===r?void 0:r.type_id)&&(i=document.querySelector(".flag.ultimate.upgrade-now-yearly"),c=document.querySelector(".flag.ultimate.upgrade-now-yearly div"));const d=[{regex:/^\/resource\//,options:!!i&&!!c}],s=(0,a.DX)(["funnel","upgrades","products"]);s.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const u=(0,a.kQ)(["download"]);u.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),u.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"});const p=()=>{try{i.outerHTML='\n \n
    Upgrade
    for
    £0.00
    '}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+m)}},m="resourceUltimateFreeTrialCTAAnnual",h={n:m,t:()=>g(d),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:p}],g:{u:s,e:u},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function g(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function y(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return g(d)||!!e&&e[null===(n=window.btoa(m))||void 0===n?void 0:n.replace(/=/g,"")]&&(g(s)||y(u))},codeToRun:()=>{g(d)?(0,a.Gc)((function(){o.A.init(h)})):(g(s)||y(u))&&(0,a.Hh)((function(){o.A.init(h)}))}}}catch(w){const v="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",w,window.location.pathname+"-"+v)}}},1144:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/resource\//,options:e.user.loggedIn&&!!e.user.schoolAccount&&document.querySelector('#download_link[data-download="no"][href^="/school/upgrade-alert"]')&&a.aC.lang.en&&a.aC.country.uk}],t=(0,a.DX)(["funnel","upgrades","products"]);t.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const r=(0,a.kQ)(["download"]);r.push({type:"click",name:"clickedRequestAccess",parentEl:"#actual_downloads",childEl:"a[data-download='no']",mod:5});const i=()=>{try{(0,a.se)("#download_link b {\n font-size: 26px;\n}"),document.querySelectorAll('#download_link[data-download="no"]').forEach((e=>{e.innerHTML="Request access to
    Download"}))}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-control-"+l)}},c=()=>{try{(0,a.se)("#actual_downloads span.download a {\n font-size: 1em!important;\n}#download_link b {\n font-size: 26px;\n}"),document.querySelectorAll('#download_link[data-download="no"]').forEach((e=>{e.innerHTML="Request to
    Download"}))}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+l)}},l="schoolAccountCtaCopyNewTest",d={n:l,t:()=>s(n),ttl:60,b:[{name:"original",weight:1,run:i},{name:"variant",weight:1,run:c}],g:{u:t,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",encodeCookie:!0,deploy:1}};function s(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function u(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var o;return s(n)||!!e&&e[null===(o=window.btoa(l))||void 0===o?void 0:o.replace(/=/g,"")]&&(s(t)||u(r))},codeToRun:()=>{s(n)?(0,a.Gc)((function(){o.A.init(d)})):(s(t)||u(r))&&(0,a.Hh)((function(){o.A.init(d)}))}}}catch(p){const m="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",p,window.location.pathname+"-"+m)}}},3986:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{var e;const n=window.dataLayer[0],t=[{regex:/^\/resources\//,options:a.xl&&n.user.loggedIn&&!document.querySelector(".topCatPage")&&document.querySelectorAll(".similarSearches .similar").length>0&&document.querySelector(".main_title")&&a.aC.country.uk}],r=(0,a.DX)([]),i=(0,a.kQ)(["download"]);i.push({type:"click",name:"clickedResult",parentEl:"#resources",childEl:".resource-preview a"}),i.push({type:"click",name:"clickedSearchSuggestions",parentEl:"body",childEl:".similarSearches a"}),i.push({type:"click",name:"clickedBreadcrumb",parentEl:"#breadcrumb",childEl:"a"}),i.push({type:"click",name:"clickedLinkedListLink",parentEl:"#category-link-list",childEl:"a"}),i.push({path:/^\/search/,type:"click",name:"clickedResultAfterSSclick",parentEl:".left",childEl:".resultContainer",options:(null===(e=location)||void 0===e||null===(e=e.search)||void 0===e?void 0:e.split("&from_category_similar=1").length)>1}),i.push({path:/^\/search/,type:"click",name:"clickedSearchResult",parentEl:".left",childEl:".resultContainer",options:!0});const c=()=>{try{var e,n=document.querySelector(".similarSearches");document.querySelector(".main_title").insertAdjacentElement("beforebegin",n),(0,a.se)(".similarSearches {\n margin-left:0!important;\n margin-top: 20px;\n margin-bottom: 20px;\n }"),null===(e=document.querySelector("#related-searches-heading"))||void 0===e||e.remove(),n.querySelectorAll(".similar").forEach((e=>{e.href+="&from_category_similar=1"}))}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+l)}},l="searchSuggestionsCategoryPageIteration",d={n:l,t:()=>s(t),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:c}],g:{u:r,e:i},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function s(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function u(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return s(t)||!!e&&e[null===(n=window.btoa(l))||void 0===n?void 0:n.replace(/=/g,"")]&&(s(r)||u(i))},codeToRun:()=>{s(t)?(0,a.Gc)((function(){o.A.init(d)})):(s(r)||u(i))&&(0,a.Hh)((function(){o.A.init(d)}))}}}catch(p){const m="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",p,window.location.pathname+"-"+m)}}},6877:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const e=[{regex:/^\/resource\//,options:window.dataLayer[0].user.loggedIn&&a.aC.country.uk&&a.aC.lang.en&&document.querySelector('#download_link[data-download="yes"]')&&a.xl}],n=(0,a.DX)(["funnel","upgrades","products"]);n.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const t=(0,a.kQ)(["download"]);t.push({type:"click",name:"clickedMl",parentEl:"#youll_love_resource_box",childEl:"a"}),t.push({type:"click",name:"ClickedFirstML",parentEl:"#youll_love_resource_box",childEl:".what-are-members-downloading-now:nth-of-type(-n+1) a"}),t.push({type:"click",name:"clickedDownloadAgain",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"});const r=()=>{try{(0,a.se)('#resource{\n grid-template-columns: 2fr 3fr; \n transition:300ms;\n }#resource #actual_downloads a#download_link:not([href^="/go/"]):not([href^="/ar-3d/"]):before {\n left: -32px!important;\n }.g-drive-container{\n display:none\n }#resource #resourceMl .mlRecBubblesContainer {\n width: 640px!important;\n }#tabbed_content li#tab5 {\n display: none!important;\n}')}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+i)}},i="3columnMlPostDownloadReset1",c={n:i,t:()=>l(e),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:r}],g:{u:n,e:t},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function l(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function d(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:o=>{var a;return l(e)||!!o&&o[null===(a=window.btoa(i))||void 0===a?void 0:a.replace(/=/g,"")]&&(l(n)||d(t))},codeToRun:()=>{l(e)?document.fn.events.on("download",(()=>o.A.init(c))):(l(n)||d(t))&&(0,a.Hh)((function(){o.A.init(c)}))}}}catch(s){const u="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",s,window.location.pathname+"-"+u)}}},7090:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{window.dataLayer[0];const n=[{regex:/^\/search/,options:a.xl&&a.aC.country.uk&&a.aC.lang.en&&document.querySelector(".resultContainer.searchSuggestionsBlock .boxTitle")}],t=(0,a.DX)(["funnel","upgrades","products"]),r=(0,a.kQ)(["download"]);r.push({type:"click",name:"clickedResult",parentEl:".left",childEl:".resultContainer:not(.searchSuggestionsBlock)"}),r.push({type:"click",name:"clickedSearchSuggestionSuggestionBlock",parentEl:".left",childEl:".resultContainer.searchSuggestionsBlock .similar"}),r.push({type:"click",name:"clickedSimilarSearches",parentEl:".similarSearches",childEl:".similar"});var e=()=>{(0,a.se)("#search_container .searchMain .searchSuggestionsBlock .searchBlockContent{\n border-right: unset!important;\n border-bottom: unset!important;\n border-left: unset!important;\n}.searchBlockContent a.similar.color {\n margin-top: 10px;\n}.searchBlockContent a.similar.color {\n border-radius: 10px!important;\n display: -ms-flexbox!important;\n display: flex!important;\n -ms-flex-direction: row-reverse;\n flex-direction: row-reverse;\n -ms-flex-align: center;\n align-items: center;\n background: #2399f92b;\n border: 2px solid #2399f99e!important;\n -ms-flex: 1 1 160px;\n flex: 1 1 160px;\n text-align: initial;\n line-height: initial;\n -ms-flex-pack: left;\n justify-content: left;\n overflow: hidden;\n padding: 5px!important;\n height: auto!important;\n font-size: 14px;\n text-decoration: none!important;\n max-height: 87px;\n}.searchSuggestionsBlock .boxTitle{\n border:unset!important;\n justify-content:unset!important;\n}"),document.querySelectorAll(".searchSuggestionsBlock .boxTitle").forEach((e=>{e.innerText="Related Searches"}))};const i=()=>{try{e()}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+l)}},c=()=>{try{e(),(0,a.se)(".searchBlockContent a.similar.color div{\n text-transform: capitalize!important;\n font-family:'robotobold';\n}")}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+l)}},l="inplaceSearchSuggestionsCapitaliseAndBold",d={n:l,t:()=>s(n),ttl:60,b:[{name:"original",weight:1,run:i},{name:"variant",weight:1,run:c}],g:{u:t,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function s(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function u(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var o;return s(n)||!!e&&e[null===(o=window.btoa(l))||void 0===o?void 0:o.replace(/=/g,"")]&&(s(t)||u(r))},codeToRun:()=>{s(n)?(0,a.Gc)((function(){o.A.init(d)})):(s(t)||u(r))&&(0,a.Hh)((function(){o.A.init(d)}))}}}catch(p){const m="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",p,window.location.pathname+"-"+m)}}},6345:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{window.dataLayer[0];const e=[{regex:/^\/search/,options:a.Fr&&document.querySelectorAll(".resultContainer").length>=8}],n=(0,a.DX)([]),t=(0,a.kQ)(["download"]);t.push({type:"click",name:"clickedResult",parentEl:".left",childEl:".resultContainer a",mod:5}),t.push({type:"click",name:"openedFilters",parentEl:"#search_container",childEl:".filterButton"}),t.push({type:"click",name:"clickedFirst8",parentEl:".left",childEl:".resultContainer:nth-of-type(-n+9) a"});const r=()=>{try{(0,a.se)(".resultContainer a.title{\n font-size:14px!important;\n}.resultContainer a.reviewLink .reviews strong{\n font-size:12px!important;\n}a.reviewLink {\n display: flex;\n flex-direction: row-reverse!important;\n flex-wrap: nowrap;\n align-items: center;\n justify-content: flex-end;\n}#search_container .searchMain .left .resultContainer .stars {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-align: center;\n align-items: center;\n padding-left: 6px;\n}.resultContainer a.reviewLink .reviews {\n width: 18px!important;\n overflow-x: hidden;\n overflow-y: hidden;\n height: 20px;\n}#search_container .searchMain .left .resultContainer .reviewLink .reviews {\n padding-left: .3rem;\n font-size: .9rem;\n display: flex;\n align-items: center;\n}.left{\n margin-top:-12px!important;\n}body #search_container .searchMain .resultContainer .control a.title {\n margin: 5px 0!important;\n}#search_container .searchMain .left .resultContainer .reviewLink .reviews{\n padding-left:0px!important;\n}.search_results_found{\n padding-left:0px!important;\n}.search_results_found h1{\n font-size:12px!important;\n}#search_container .filterButton{\n height:2.5rem!important;\n}div#zenDeskLoadButton {\n display: none!important;\n}")}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+i)}},i="mobileSearchPageLayout",c={n:i,t:()=>l(e),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:r}],g:{u:n,e:t},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function l(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function d(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:o=>{var a;return l(e)||!!o&&o[null===(a=window.btoa(i))||void 0===a?void 0:a.replace(/=/g,"")]&&(l(n)||d(t))},codeToRun:()=>{l(e)?(0,a.Gc)((function(){o.A.init(c)})):(l(n)||d(t))&&(0,a.Hh)((function(){o.A.init(c)}))}}}catch(s){const u="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",s,window.location.pathname+"-"+u)}}},9337:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const i=window.dataLayer[0];var e=!1,n=!1,t=!1,r=!1;t=!1,/^\/search$/.test(location.pathname)&&i.user.loggedIn&&a.xl&&a.aC.country.uk&&a.aC.lang.en&&(e=document.querySelector("#filters"))&&(n=e.querySelector("#filter-n"),r=e.querySelector("#filter-fa"),t=e.querySelector(".filterDivider.d-none"));const c=[{regex:/^\/search$/,options:!!r&&!!n}],l=(0,a.DX)(["funnel"]),d=(0,a.kQ)(["download"]);d.push({type:"change",name:"clickedAnyFilter",parentEl:"#filters",childEl:".filter input"}),d.push({type:"change",name:"clickedAgeFilterTop",parentEl:".block#filter-fa",childEl:".filter input "}),d.push({type:"change",name:"clickedAgeFilterSticky",parentEl:"#filters",childEl:".stickyDiv .filter input"}),d.push({type:"change",name:"clickedAgeFilterAny",parentEl:"#filters",childEl:"#filter-fa .filter input"}),d.push({type:"change",name:"clickedTypeFilter",parentEl:"#filter-ft",childEl:".filter input "}),d.push({type:"change",name:"clickedCountryFilter",parentEl:"#filters",childEl:"#filter-fco .filter input "}),d.push({type:"change",name:"clickedNewestFilter",parentEl:"#filters",childEl:"#filter-n .filter input",mod:5}),d.push({type:"click",name:"clickedResource",parentEl:".left",childEl:".resultContainer:not(.linked-container):not(.searchSuggestionsBlock)"});const s=()=>{try{r.insertAdjacentHTML("afterend",function(e){return`
    ${e.outerHTML}
    `}(n)),(0,a.se)(".filterNewestArea #filter-n{display:block!important}#filter-n .title{display:none}#filter-fa{margin-bottom:0px} ")}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+u)}},u="newestFilterPositionAges",p={n:u,t:()=>m(c),ttl:60,b:[{name:"original",weight:1,run:()=>{n.classList.remove("d-none"),t.classList.remove("d-none")}},{name:"variant",weight:1,run:s}],g:{u:l,e:d},o:{bucket:-1,testing:!0,fnDataApi:"ga",encodeCookie:!0,deploy:1}};function m(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function h(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return m(c)||!!e&&e[null===(n=window.btoa(u))||void 0===n?void 0:n.replace(/=/g,"")]&&(m(l)||h(d))},codeToRun:()=>{m(c)?(0,a.Gc)((function(){o.A.init(p)})):(m(l)||h(d))&&(0,a.Hh)((function(){o.A.init(p)}))}}}catch(g){const y="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",g,window.location.pathname+"-"+y)}}},2920:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/search/,options:!a.aC.member.schoolAccount&&e.user.loggedIn&&"free"==e.user.type&&location.search&&/q=free&|\+free\+|\+free$|free\+/i.test(location.search)&&!/sonic|Sonic the Hedgehog|Spider-man|Spiderman|Spider Man|Play-Doh|Play Doh|Playdoh|Numberblocks|CoCmelon|Scuderia Ferrari|Ferrari|Diary of a wimpy kid|Wimpy Kid|Puss in boots|Shrek|Wikki Stix|Little baby Bum/i.test(location.search)&&a.aC.lang.en&&document.querySelector("#header .free-trial")}],t=(0,a.DX)(["funnel","upgrades","products"]);t.push({name:"paymentTrial",regex:/^\/trial$|^\/free-trial-payment\/|^\/trial-free$/,options:!!document.querySelector(".payMonthlyDiv")}),t.push({name:"payment",regex:/^\/trial$|^\/free-trial-payment\/|^\/trial-free$/,options:!!document.querySelector(".payMonthlyDiv")}),t.push({name:"payFinalOffer",regex:/^\/a-payment\/monthly\//,options:!!document.querySelector(".freeTrial99Label")});const r=(0,a.kQ)(["download"]);r.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),r.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"});const i=()=>{try{window.location.href="/free-trial-landing"}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+l)}},c=()=>{try{window.location.href="/trial-free"}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant2-"+l)}},l="redirectFreeSearchToFreeTrialLandingRetestABC",d={n:l,t:()=>s(n),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:i},{name:"variant2",weight:1,run:c}],g:{u:t,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function s(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function u(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var o;return s(n)||!!e&&e[null===(o=window.btoa(l))||void 0===o?void 0:o.replace(/=/g,"")]&&(s(t)||u(r))},codeToRun:()=>{s(n)?(0,a.Gc)((function(){o.A.init(d)})):(s(t)||u(r))&&(0,a.Hh)((function(){o.A.init(d)}))}}}catch(p){const m="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",p,window.location.pathname+"-"+m)}}},5665:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const l=window.dataLayer[0];var e=document.getElementById("show-more-search-result-btn"),n=!1;if(a.xl&&/^\/search/.test(window.location.pathname)&&l.user.loggedIn&&/^244$|^247$|^246$|^245$/.test(l.user.country_id)&&/^1$|^11$|^12$|^25$|^136$|^159$|^161$/.test(l.user.language_id)&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype&&"isIntersecting"in window.IntersectionObserverEntry.prototype)var t=function(n){var t=n.querySelectorAll(".left .resultContainer"),o=document.createElement("div");o.className="matchingFewer",o.innerHTML='
    Related results matching fewer filters
    ',e.insertAdjacentElement("beforebegin",o),t.forEach((function(n){n.classList.add("fetchedResource"),e.insertAdjacentElement("beforebegin",n)})),document.fn.events.emit("loadedContent"),e.remove()},r=new IntersectionObserver((function(o,a){o.forEach((function(o){var a;o.isIntersecting&&n&&(a=e.querySelector("a").href,new Promise((function(e,n){fetch(a).then((function(e){return e.text()})).then((function(n){var t=(new DOMParser).parseFromString(n,"text/html");e(t)})).catch((function(e){n(e)}))}))).then(t).catch((e=>{}))}))}),{rootMargin:"200px",threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]}),i=new MutationObserver((n=>{n.forEach((n=>{n.addedNodes&&n.addedNodes.forEach((n=>{var t,o;"show-more-search-result-btn"==n.id&&(i.disconnect(),e=document.getElementById("show-more-search-result-btn"),!localStorage._x||null!==(t=JSON.parse(null===(o=localStorage)||void 0===o?void 0:o._x))&&void 0!==t&&t[window.btoa(m).replace(/=/g,"")]||document.fn.events.emit("scrolledToShowMore"),e&&r.observe(e))}))}))}));var c={childList:!0,subtree:!0};e&&a.xl&&/^\/search/.test(window.location.pathname)&&l.user.loggedIn&&/^244$|^247$|^246$|^245$/.test(l.user.country_id)&&/^1$|^11$|^12$|^25$|^136$|^159$|^161$/.test(l.user.language_id)&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype&&"isIntersecting"in window.IntersectionObserverEntry.prototype?document.fn.events.emit("scrolledToShowMore"):!e&&a.xl&&/^\/search/.test(window.location.pathname)&&l.user.loggedIn&&/^244$|^247$|^246$|^245$/.test(l.user.country_id)&&/^1$|^11$|^12$|^25$|^136$|^159$|^161$/.test(l.user.language_id)&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype&&"isIntersecting"in window.IntersectionObserverEntry.prototype&&i.observe(document.body,c);const d=[{regex:/^\/search/,options:!!a.xl&&l.user.loggedIn&&/^244$|^247$|^246$|^245$/.test(l.user.country_id)&&/^1$|^11$|^12$|^25$|^136$|^159$|^161$/.test(l.user.language_id)&&!!("IntersectionObserver"in window)&&!!("IntersectionObserverEntry"in window)&&!!("intersectionRatio"in window.IntersectionObserverEntry.prototype)&&!!("isIntersecting"in window.IntersectionObserverEntry.prototype)}],s=[],u=[],p=()=>{try{n=!0,e&&r.observe(e);var t=document.getElementById("filters");t&&t.addEventListener("click",(function(e){e.target.closest("#filters a#clearFilters, #filters div.filter, #filters select option")&&i.observe(document.body,c)})),(0,a.se)(".matchingFewer{display: flex; width: 100%; padding: 16px 16px 12px 16px; background: #f2f2f2; border-radius: 4px; margin: 0 10px 2rem 10px;}.matchingFewer svg{fill: #0075FF;}.fewerText{padding: 2px 0 0 8px;}#show-more-search-result-btn{opacity: 0;}")}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+m)}},m="searchAutoLoadShowMore",h={n:m,t:()=>g(d),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"searchAutoLoadShowMore",weight:1,run:p}],g:{u:s,e:u},o:{bucket:-1,testing:!0,fnDataApi:"ga",encodeCookie:!0,deploy:1}};function g(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function y(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return g(d)||!!e&&e[null===(n=window.btoa(m))||void 0===n?void 0:n.replace(/=/g,"")]&&(g(s)||y(u))},codeToRun:()=>{var e,n;g(d)?localStorage._x&&null!==(e=JSON.parse(null===(n=localStorage)||void 0===n?void 0:n._x))&&void 0!==e&&e[window.btoa(m).replace(/=/g,"")]?o.A.init(h):document.fn.events.on("scrolledToShowMore",(()=>o.A.init(h))):(g(s)||y(u))&&(0,a.Hh)((function(){o.A.init(h)}))}}}catch(w){const v="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",w,window.location.pathname+"-"+v)}}},72:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const r=window.dataLayer[0];var e=!1,n=!1,t=!1;/^\/search$/.test(location.pathname)&&a.xl&&(t=document.querySelector("#filter-fa form"),e=document.querySelector(".order-0"),n=document.querySelector("#filters"),r.user.career_id);const i=[{regex:/^\/search$/,options:!!e&&!!n&&!!t}],c=[],l=(0,a.kQ)(["download"]);l.push({type:"change",name:"clickedAnyFilter",parentEl:"#filters",childEl:".filter input"}),l.push({type:"change",name:"clickedAgeFilterTop",parentEl:".block#filter-fa",childEl:".filter input "}),l.push({type:"change",name:"clickedAgeFilterSticky",parentEl:"#filters",childEl:".stickyDiv .filter input"}),l.push({type:"change",name:"clickedAgeFilterAny",parentEl:"#filter-fa",childEl:".filter input"}),l.push({type:"change",name:"clickedTypeFilter",parentEl:"#filter-ft",childEl:".filter input "});const d=()=>{try{e.insertAdjacentElement("beforebegin",n),e.remove();var o=document.createElement("div");o.className="stickyDiv col-12 ",o.innerHTML="
    \n
    Age Filters
    \n
    \n
    ",n.insertAdjacentElement("beforeend",o),(0,a.se)(".stickyDiv{position:sticky; top:140px}"),o.querySelector(".ageFilters").insertAdjacentElement("afterbegin",t.cloneNode(!0)),n.addEventListener("change",(function(e){if(e.target.closest(".filter")&&e.target.id){var t=e.target;n.querySelectorAll(`[id="${t.id}"]`).forEach((function(e){e.checked=0==!t.checked}))}}))}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+s)}},s="searchFilterAgeFilterSticky",u={n:s,t:()=>p(i),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:d}],g:{u:c,e:l},o:{bucket:-1,testing:!0,fnDataApi:"ga",encodeCookie:!0,deploy:1}};function p(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function m(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return p(i)||!!e&&e[null===(n=window.btoa(s))||void 0===n?void 0:n.replace(/=/g,"")]&&(p(c)||m(l))},codeToRun:()=>{p(i)?(0,a.Gc)((function(){o.A.init(u)})):(p(c)||m(l))&&(0,a.Hh)((function(){o.A.init(u)}))}}}catch(h){const g="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",h,window.location.pathname+"-"+g)}}},8455:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{window.dataLayer[0];var e=document.getElementById("similarSearchesObserver");const n=[{regex:/^\/search/,options:a.Fr&&!!e}],t=(0,a.DX)(["funnel"]),r=(0,a.kQ)(["download"]);r.push({type:"click",name:"clickedSearchResult",parentEl:"#search_container",childEl:".resultContainer:not(.linked-container):not(.searchSuggestionsBlock) a"}),r.push({type:"click",name:"clickedAnySimilarSearch",parentEl:"body",childEl:"a.similar"}),r.push({type:"click",name:"clickedSimilarSearch-Top",parentEl:"#similarSearchesObserver",childEl:"a.similar"}),r.push({type:"click",name:"clickedSimilarSearch-OnPage",parentEl:"#search_container",childEl:".searchBlockContent a.similar"}),r.push({type:"click",name:"openedFiltersTop",parentEl:"body",childEl:"#showFilters:not(.scrollBottom)"});const i=()=>{try{e.remove()}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+c)}},c="searchMobileRemoveSimilar",l={n:c,t:()=>d(n),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:i}],g:{u:t,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",encodeCookie:!0,deploy:1}};function d(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function s(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var o;return d(n)||!!e&&e[null===(o=window.btoa(c))||void 0===o?void 0:o.replace(/=/g,"")]&&(d(t)||s(r))},codeToRun:()=>{d(n)?(0,a.Gc)((function(){o.A.init(l)})):(d(t)||s(r))&&(0,a.Hh)((function(){o.A.init(l)}))}}}catch(u){const p="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",u,window.location.pathname+"-"+p)}}},8301:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const r=window.dataLayer[0];var e=document.querySelectorAll("a.similar"),n=document.querySelector(".similarSearches"),t=void 0;a.xl&&r.user.loggedIn&&/^\/search/.test(window.location.pathname)&&e&&e.length>0&&/^244$|^245$|^246$|^247$/.test(r.user.country_id)&&n.addEventListener("click",(function(e){var n;e.target.closest("a.similar")&&(e.preventDefault(),t=null===(n=e.target.closest("a.similar"))||void 0===n?void 0:n.getAttribute("href"),document.fn.events.emit("clickedSimilarCRO"))}));const i=[{regex:/^\/search/,options:a.xl&&r.user.loggedIn&&!!e&&e.length>0&&/^244$|^245$|^246$|^247$/.test(r.user.country_id)}],c=(0,a.DX)(["funnel"]);c.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),c.push({name:"clickedNextPageResourceWithoutFiltering",type:"pathname",regex:/^\/resource\//,options:!!document.referrer&&document.referrer.includes("from_similar"),mod:5}),c.push({name:"visitedResourcePage",type:"pathname",regex:/^\/resource\//,options:!0}),c.push({name:"visitedSearch",type:"pathname",regex:/^\/search/,options:!0});const l=(0,a.kQ)(["download"]);l.push({path:/^\/resource\//,type:"click",name:"downloadedResourceFromNextPageDirectly",parentEl:"body",childEl:"#actual_downloads a[data-download='yes']",options:!!document.referrer&&document.referrer.includes("from_similar")}),l.push({path:/^\/resource\//,type:"click",name:"clickedResourceCTAFromNextPageDirectly",parentEl:"body",childEl:"#actual_downloads a",options:!!document.referrer&&document.referrer.includes("from_similar")}),l[0].mod=20;const d=()=>{try{var e=t.concat("&","from_similar");window.location.href=e}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-original-"+u)}},s=()=>{try{var e=new URLSearchParams(location.search),n=new URLSearchParams(t.split("?")[1]);e.set("q",n.get("q")),n.get("fw")&&e.set("fw",n.get("fw")),n.get("vague")&&e.set("vague",n.get("vague")),e.set("from_similar","1"),window.location.href="/search?"+e.toString()}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+u)}},u="searchSimilarCopyFilters",p={n:u,t:()=>m(i),ttl:60,b:[{name:"original",weight:1,run:d},{name:"variant",weight:1,run:s}],g:{u:c,e:l},o:{bucket:-1,testing:!0,fnDataApi:"ga",encodeCookie:!0,deploy:1}};function m(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function h(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return m(i)||!!e&&e[null===(n=window.btoa(u))||void 0===n?void 0:n.replace(/=/g,"")]&&(m(c)||h(l))},codeToRun:()=>{m(i)?document.fn.events.on("clickedSimilarCRO",(function(){o.A.init(p)})):(m(c)||h(l))&&(0,a.Hh)((function(){o.A.init(p)}))}}}catch(g){const y="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",g,window.location.pathname+"-"+y)}}},1964:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{window.dataLayer[0];const e=[{regex:/^\/search/,options:a.xl&&a.aC.country.uk&&a.aC.lang.en}],n=(0,a.DX)([]),t=(0,a.kQ)(["download"]);t.push({type:"click",name:"clickedResult",parentEl:".left",childEl:".resultContainer a",mod:10});const r=()=>{try{(0,a.se)(".imageContainer{\n overflow:hidden;\n }.imageContainer img{\n scale:1;\n transition:scale 0.5s;\n }.imageContainer img:hover{\n scale:1.1;\n box-shadow:none!important;\n }\n\n ")}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+i)}},i="zoomOnHoverSearch",c={n:i,t:()=>l(e),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:r}],g:{u:n,e:t},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function l(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function d(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:o=>{var a;return l(e)||!!o&&o[null===(a=window.btoa(i))||void 0===a?void 0:a.replace(/=/g,"")]&&(l(n)||d(t))},codeToRun:()=>{l(e)?(0,a.Gc)((function(){o.A.init(c)})):(l(n)||d(t))&&(0,a.Hh)((function(){o.A.init(c)}))}}}catch(s){const u="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",s,window.location.pathname+"-"+u)}}},8451:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/trial-free$|^\/a-payment\/monthly|^\/free-trial-payment\//,options:!o.aC.member.schoolAccount&&e.user.loggedIn&&"free"==e.user.type&&(!!document.querySelector(".payMonthlyDiv")||!!document.querySelector(".freeTrial99Label"))&&o.xl&&o.aC.lang.en&&(o.aC.country.uk||/^37$|^103$|^154$|^12$|^226$/.test(e.user.country_id))}],t=(0,o.DX)(["funnel","upgrades","products","cancel"]);t.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const a=(0,o.kQ)(["download"]);a.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),a.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"});const r=()=>{try{document.querySelectorAll(".then,#order_summary tbody").forEach((e=>{e.insertAdjacentHTML("afterend",'

    We\'ll remind you seven days before your trial ends.

    ')})),(0,o.se)("p.sevenDays {\n margin: 0;\n margin: 10px 10px;\n color: #5d8202;\n font-family: robotobold;\n }.payMonthlyDiv p.sevenDays {\n font-size: 12px;\n }")}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-control-"+c)}},i=()=>{try{document.querySelectorAll(".then,#order_summary tbody").forEach((e=>{e.insertAdjacentHTML("afterend",'

    We\'ll remind you seven days before your trial ends.

    ')})),(0,o.se)("p.sevenDays {\n margin: 0;\n margin: 10px 10px;\n color: #5d8202;\n font-family: robotobold;\n }.payMonthlyDiv p.sevenDays {\n font-size: 12px;\n }")}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+c)}},c=o.aC.country.uk?"remindUsersIn23UK":"remindUsersIn23"+e.user.country_id,l={n:c,tg:n,ttl:60,b:[{name:"original",weight:1,run:r},{name:"variant",weight:1,run:i}],g:{u:t,e:a},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(l),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},9941:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const n=window.dataLayer[0],t=[{regex:/^\/trial$|^\/free-trial-payment\/|^\/trial-free$|^\/a-payment\/monthly\//,options:a.xl&&!a.aC.member.schoolAccount&&n.user.loggedIn&&"free"==n.user.type&&a.aC.lang.en&&(a.aC.country.uk||/^226$|^154$|^12$/.test(n.user.country_id))}],r=(0,a.DX)(["funnel","upgrades","products"]);r.push({name:"paymentTrial",regex:/^\/trial$|^\/free-trial-payment\/|^\/trial-free$/,options:!!document.querySelector(".payMonthlyDiv")}),r.push({name:"payment",regex:/^\/trial$|^\/free-trial-payment\/|^\/trial-free$/,options:!!document.querySelector(".payMonthlyDiv")}),r.push({name:"payFinalOffer",regex:/^\/a-payment\/monthly\//,options:!!document.querySelector(".freeTrial99Label")});const i=(0,a.kQ)(["download"]);i.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),i.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"});const c=()=>{},l=()=>{try{document.querySelectorAll(".yearly .type, .monthly .type").forEach((e=>{e.innerHTML=e.innerHTML.replace("Ultimate","")})),/^\/a-payment\/monthly\//.test(location.pathname)&&document.querySelector(".freeTrial99Label")&&(document.querySelectorAll(".freeTrial99Label").forEach((e=>{e.innerText=e.innerText.replace("Ultimate","Unlimited Downloads")})),document.querySelector("#order_summary tr").innerHTML=document.querySelector("#order_summary tr").innerHTML.replace("Ultimate",""))}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+d)}},d=`removeUltimateWordingFromTrialFunnel${a.aC.country.uk?"UK":n.user.country_id}`,s={n:d,t:()=>u(t),ttl:60,b:[{name:"original",weight:1,run:c},{name:"variant",weight:1,run:l}],g:{u:r,e:i},o:{bucket:(e=n.user.twinklid,e%16<=7?0:1),testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function u(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function p(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return u(t)||!!e&&e[null===(n=window.btoa(d))||void 0===n?void 0:n.replace(/=/g,"")]&&(u(r)||p(i))},codeToRun:()=>{u(t)?(0,a.Gc)((function(){o.A.init(s)})):(u(r)||p(i))&&(0,a.Hh)((function(){o.A.init(s)}))}}}catch(m){const h="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",m,window.location.pathname+"-"+h)}var e}},1308:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/trial-free|^\/free-trial-payment/,options:!o.aC.member.schoolAccount&&e.user.loggedIn&&"free"==e.user.type&&document.querySelector(".seeOtherPlans")&&o.aC.country.uk&&o.aC.lang.en}],t=(0,o.DX)(["funnel","upgrades","products"]),a=(0,o.kQ)(["download"]);a.push({type:"click",name:"clickedSeeMorePlans",parentEl:"body",childEl:".seeOtherPlans"});const r=()=>{try{document.querySelector(".seeOtherPlans").innerText="See paid plans"}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-control-"+c)}},i=()=>{try{document.querySelector(".seeOtherPlans").innerText="Paid plans"}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+c)}},c="SeePaidPlansToPaidPlansFreeTrialFunnel",l={n:c,tg:n,ttl:60,b:[{name:"original",weight:1,run:r},{name:"variant",weight:1,run:i}],g:{u:t,e:a},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(l),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},4588:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/trial-free|^\/free-trial-payment/,options:!a.aC.member.schoolAccount&&e.user.loggedIn&&"free"==e.user.type&&a.aC.lang.en}],t=(0,a.DX)(["funnel","upgrades","products"]);t.push({name:"paymentTrial",regex:/^\/trial$|^\/free-trial-payment\/|^\/trial-free$/,options:!!document.querySelector(".payMonthlyDiv")}),t.push({name:"payment",regex:/^\/trial$|^\/free-trial-payment\/|^\/trial-free$/,options:!!document.querySelector(".payMonthlyDiv")}),t.push({name:"payFinalOffer",regex:/^\/a-payment\/monthly\//,options:!!document.querySelector(".freeTrial99Label")});const r=(0,a.kQ)(["download"]),i=()=>{},c=()=>{try{document.querySelector(".then")&&(document.querySelector(".payableAs").innerText="Paid Annually")}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+l)}},l=`showActualAnnualPriceOnPayment${a.aC.country.uk?"UK":e.user.country_id}`,d={n:l,t:()=>s(n),ttl:60,b:[{name:"original",weight:1,run:i},{name:"variant",weight:1,run:c}],g:{u:t,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function s(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function u(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var o;return s(n)||!!e&&e[null===(o=window.btoa(l))||void 0===o?void 0:o.replace(/=/g,"")]&&(s(t)||u(r))},codeToRun:()=>{s(n)?(0,a.Gc)((function(){o.A.init(d)})):(s(t)||u(r))&&(0,a.Hh)((function(){o.A.init(d)}))}}}catch(p){const m="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",p,window.location.pathname+"-"+m)}}},7413:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const n=window.dataLayer[0],t=[{regex:/^\//,options:/^\//.test(location.pathname)&&o.aC.country.uk&&o.aC.lang.en&&o.xl&&!/^110$/.test(n.career_id)&&!!document.querySelector('.menuTab>li>a[href="/ari-ai"]')}];if(t[0].options){var e=document.querySelector(".menuTab");e&&e.addEventListener("click",(e=>{var n,t=e.target.closest(".menuTab>li>a");t&&window.document.fn.events.emit("mmHeaderClickText",null===(n=t.innerText)||void 0===n?void 0:n.replace(/\s+/g,""))}))}const a=(0,o.DX)(["funnel","products"]);a.push({name:"visitedReadingComp",regex:/^\/ai-reading-comprehension-text-generator$/,options:!0},{name:"visitedImageGen",regex:/^\/ai-image-generator$/,options:!0},{name:"visitedReportWriter",regex:/^\/report-writer$/,options:!0},{name:"visitedQuizGen",regex:/^\/ai-quiz-generator$/,options:!0},{name:"visitedWordSearchGen",regex:/^\/ai-word-search-generator$/,options:!0},{name:"visitedCrosswordGen",regex:/^\/ai-crossword-generator$/,options:!0},{name:"visitedClozeGen",regex:/^\/ai-cloze-passage-generator$/,options:!0},{name:"visitedVocabGen",regex:/^\/ai-vocabulary-sheet-generator$/,options:!0},{name:"visitedLessonPlanner",regex:/^\/ai-lesson-planner-tool$/,options:!0},{name:"visitedAi",regex:/^\/ai$/,options:!0},{name:"visitedAriAi",regex:/^\/ari-ai$/,options:!0});const r=(0,o.kQ)(["download"]);r.push({type:"click",name:"clickedAriTopMM",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"},{type:"click",name:"clickedAiDropdown",parentEl:".menuTab",childEl:'li>a[href="/ari-ai"]~ul a'},{type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"},{type:"on",on:"mmHeaderClickText",name:"clicked-",cb:function(e){let n={...this};return n.name+=e,n}});const i=()=>{try{var e=document.querySelector('.menuTab>li>a[href="/ari-ai"]');e&&e.insertAdjacentHTML("afterend",''),e&&(e.className="megaMenuArrowDown")}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+c)}},c="aiMegamenuDropdown",l={n:c,tg:t,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:i}],g:{u:a,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(l),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},1029:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\//,options:!o.aC.member.schoolAccount&&"free"==e.user.type&&e.freeTrialFourMonthTest>-1}],t=(0,o.DX)(["funnel","products"]),a=(0,o.kQ)(["download"]);a.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),a.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"});const r=()=>{},i={n:"freeTrialFourMonthTest",tg:n,ttl:60,b:[{name:"original",weight:1,run:r},{name:"variant",weight:1,run:r}],g:{u:t,e:a},o:{bucket:e.freeTrialFourMonthTest>-1?e.freeTrialFourMonthTest:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(i),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},3025:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\//,options:!o.aC.member.schoolAccount&&e.user.loggedIn&&"free"==e.user.type&&document.querySelector("#header .free-trial")&&document.querySelector("#header .ultimateCTAContainer")&&(o.aC.country.uk||226==e.user.country_id)&&o.aC.lang.en&&o.xl}],t=(0,o.DX)(["funnel","upgrades","products"]);t.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const a=(0,o.kQ)(["download"]);a.push({type:"click",name:"clickedCtaHeader",parentEl:"#header .ultimateBubble",childEl:"a.tryUltimateB"}),a.push({type:"click",name:"clickedDownload",parentEl:"#header .ultimateBubble",childEl:"a.other-pay-options"}),a.push({type:"click",name:"clickedHeaderFreeTrialCTA",parentEl:"#header",childEl:"a.free-trial"}),a.push({type:"click",name:"clickedCtaHeader",parentEl:"#header .ultimateBubble",childEl:"a.headerContinue"});const r=()=>{},i=()=>{try{(0,o.se)(".freeTrialHeaderBackground {\n height: 260px;\n background-size: cover;\n border-radius: 7px;\n}.freeTrialHeaderPopUpContainer {\n padding: 5px;\n}.freeTrialHeaderContent {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n height: 100%;\n gap:1rem;\n}.bgHeader {\n font-size: 1.6rem;\n color: white;\n text-align: center;\n width: 85%;\n font-family: robotobold;\n margin:0;\n}a.headerContinue.button.green.d-inline-block {\n padding: 10px 47px;\n box-shadow: 0px 15px 20px 5px rgb(0 0 0 / 32%), 0px 10px 15px -3px rgb(0 0 0 / 71%);\n}p.cancelanytime {\n margin: 0;\n color: #ffffffd6;\n font-size: 0.7rem;\n}.ultimateCTAContainer .ultimateBubble .menuHoverStay {\n top: -18px;\n}.ultimateCTAContainer .ultimateBubble {\n width: 450px;\n top: 53px;\n right: -105px;\n}"),document.querySelector(".ultimateBubble").innerHTML=`

    ${dataLayer[0].user.first_name?dataLayer[0].user.first_name+", w":"W"}e're giving you 30 days of unlimited downloads for FREE

    Continue

    Cancel any time.

    `,((e,n,t,a="src")=>{try{let o="string"==typeof t?document.querySelector(t):t;r=e,"src"===a?o.src=r:o.style.backgroundImage=`url('${r}')`;const i=new Image;i.onload=()=>{"src"===a?o.src=i.src:o.style.backgroundImage=`url('${i.src}')`},i.src=n}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant imageloader-"+c)}var r})("https://images.twinkl.co.uk/tr/raw/upload/u/ux/millionsresourcebg-lowres_ver_1.png","https://images.twinkl.co.uk/tr/raw/upload/u/ux/millionsresourcebg_ver_1.png",document.querySelector(".freeTrialHeaderBackground"),"background-image")}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+c)}},c="headerCtaBgImageRetest-"+(o.aC.country.uk?"uk":"US"),l={n:c,tg:n,ttl:60,b:[{name:"original",weight:1,run:r},{name:"variant",weight:1,run:i}],g:{u:t,e:a},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(l,(e=>{var n;return null===(n=document.querySelector("#header .ultimateCTAContainer"))||void 0===n?void 0:n.addEventListener("mouseover",e,{once:!0})})),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},738:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const n=window.dataLayer[0],t=[{regex:/^\//,options:!o.aC.member.schoolAccount&&n.user.loggedIn&&o.xl&&/^110$/.test(n.user.career_id)&&!!document.querySelector(".menuTab")}];if(t[0].options){var e=document.querySelector(".menuTab");e&&e.addEventListener("click",(e=>{var n=e.target.closest(".menuTab>li>a");if(n){var t=n.parentNode;window.document.fn.events.emit("mmHeaderClickParents",[...t.parentNode.children].indexOf(t))}}))}const a=(0,o.DX)(["funnel","products"]),r=(0,o.kQ)(["download"]),i=()=>{try{var e=document.querySelectorAll(".megaMenuArrowDown"),n=e[e.length-1].parentNode,t=n.nextElementSibling;e&&e.length&&t&&[...document.querySelectorAll(".menuTab>li>a")].some((e=>("/"!==e.getAttribute("href")&&-1==e.getAttribute("href").indexOf("recommendations")&&-1==e.className.indexOf("megaMenuArrowDown")&&e.parentNode&&t.insertAdjacentElement("beforebegin",e.parentNode),e.className.indexOf("megaMenuArrowDown")>-1)));var a=document.querySelector(".menuTab>li");[...document.querySelectorAll('.menuTab>li[title="Apps"],.menuTab>li[title="Digital Hub"]')].forEach((e=>{e&&n.insertAdjacentElement("beforebegin",e)}));var r=document.querySelector('.menuTab li[title="Parents"]');r&&a.insertAdjacentElement("afterend",r),(0,o.se)(".cd-panel__container{display:none;}")}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+c)}},c="megamenuParents",l={n:c,tg:t,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:i}],g:{u:a,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(l),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},6784:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\//,options:!o.aC.member.schoolAccount&&e.user.loggedIn&&/^328$/.test(e.user.career_id)}],t=(0,o.DX)(["funnel"]),a=(0,o.kQ)(["download"]);a.push({type:"click",name:"clickedSupplyRoles",parentEl:".menuTab",childEl:".menuTab>li>a[href$='elevatesupplyjobpostings']"}),a.push({type:"click",name:"clickedMMTopNav",parentEl:".menuTab",childEl:".menuTab>li>a"});const r=()=>{try{(0,o.se)('.menuTab>li>a[href$="elevatesupply"]{font-weight:bold;}')}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+i)}},i="megaMenuSupplyBold-v3",c={n:i,tg:n,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:r}],g:{u:t,e:a},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(c),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},364:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\//,options:!o.aC.member.schoolAccount&&e.canSeeAusPlanners<2&&e.user.loggedIn}],t=[],a=(0,o.kQ)(["download"]);a.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),a.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"});const r={n:"aus_planners_test",tg:n,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:()=>{}}],g:{u:t,e:a},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(r),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},8737:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\//,options:document.querySelector(".unrated-pop-up-div-container")&&o.aC.lang.en&&o.xl&&(o.aC.country.uk||226==e.user.country_id)}],t=(0,o.DX)(["funnel","upgrades","products"]);t.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const a=(0,o.kQ)(["download"]);a.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),a.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"}),a.push({type:"click",name:"rateMyDownloadsClick",parentEl:".unrated-pop-up-div-container",childEl:"#unrated-popup-button"}),a.push({type:"click",name:"noThanksClick",parentEl:".unrated-pop-up-div-container",childEl:".no-thanks"}),a.push({type:"click",name:"dismissClick",parentEl:".unrated-pop-up-div-container",childEl:".dismiss"}),a.push({type:"click",name:"dismissClick",parentEl:"body",childEl:"#rating-popup .dismiss-button"}),a.push({type:"click",name:"dismissOrNoClick",parentEl:".unrated-pop-up-div-container",childEl:".no-thanks"}),a.push({type:"click",name:"dismissOrNoClick",parentEl:"body",childEl:"#rating-popup .dismiss-button"}),a.push({type:"click",name:"dismissOrNoClick",parentEl:".unrated-pop-up-div-container",childEl:".dismiss"}),a.push({type:"click",name:"ratedResource",parentEl:"body",childEl:".unrated-downloads .rateable>div",mod:3}),a.push({type:"click",name:"ratedResource",parentEl:"body",childEl:"#rating-popup .starOff",mod:3});const r=()=>{try{!function(){if(document.querySelector(".unrated-pop-up-div-container")){(0,o.se)("\n a#back-to-top {\n z-index: 10;\n }\n div#zenDeskLoadButton {\n display: none;\n }\n .unrated-pop-up-div-container {\n #unrated-pop-up-div {\n background-color: #f6f6f6;\n display: flex;\n flex-direction: column;\n width: fit-content;\n align-items: center;\n border-radius: 1.5rem;\n #unrated-popup-button {\n transition: all 300ms cubic-bezier(0, 0.51, 0.46, 0.99);\n text-decoration: none;\n padding: 5px 8px;\n width: 100%;\n height: 3em;\n border-radius: 5rem;\n display: flex;\n flex-direction: column;\n flex-wrap: nowrap;\n justify-content: center;\n font-size: 1.4em;\n margin-bottom: 1em;\n background: linear-gradient(9deg, rgba(20,28,0,1) 0%, rgba(93,130,0,0.4766281512605042) 95%), linear-gradient(0deg, rgba(20,28,0,1) 0%, rgba(93,130,0,1) 95%);\n box-shadow: 0px 26px 45px -24px #263500,-8px 26px 50px -26px #263500;\n }\n #unrated-popup-button:hover {\n background: linear-gradient(9deg, rgba(20,28,0,1) 0%, rgba(93,130,0,0.4766281512605042) 95%), linear-gradient(0deg, rgba(20,28,0,1) 25%, rgba(74,102,4,1) 100%);\n box-shadow: 0px -4px 19px -17px #263500,-8px 16px 28px -25px #263500;\n }\n .dismiss {\n display:none;\n }\n p {\n width: 16rem;\n color: #262626;\n }\n .row {\n .col-8.textCenter {\n display: none;\n }\n .col-4.textCenter.align-self-center {\n .no-thanks {\n color: #262626;\n width: max-content;\n font-weight: 600;\n }\n }\n }\n }\n }\n ");const e=document.querySelector(".unrated-pop-up-div-container a").cloneNode(!0);document.querySelector(".unrated-downloads-box").insertAdjacentElement("afterbegin",e)}}()}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-control-"+l)}},i=()=>{try{var e;null===(e=document.querySelector(".unrated-pop-up-div-container"))||void 0===e||e.remove(),document.querySelector("body").insertAdjacentHTML("beforeend",'
    '),(0,o.se)("\n #rating-popup {\n position: fixed;\n bottom: 70px;\n right: 20px;\n width: 300px;\n background-color: white;\n border-radius: 16px;\n box-shadow: 0 4px 10px rgb(0 0 0 / 46%);\n font-family: Arial, sans-serif;\n padding: 30px;\n display: flex!important;\n flex-direction: column;\n align-items: center;\n align-content: center;\n justify-content: center;\n gap: 0.4rem;\n z-index: 1111111;\n}\n#rating-popup h1 {\n margin: 0;\n font-size: 24px;\n font-weight: bold;\n}\n#rating-popup h2 {\n margin: 10px 0;\n font-size: 0.8rem;\n font-weight: normal;\n color: #666;\n}\n#rating-popup img {\n max-width: 100%;\n border-radius: 8px;\n margin: 15px 0;\n border: 4px solid #FFD700;\n}\n#rating-popup p {\n margin: 0px;\n font-size: 16px;\n text-align:center;\n}\n#rating-popup .starRating {\n display: flex;\n justify-content: center;\n flex-direction: row-reverse;\n}\n#rating-popup span.starOff {\n height: 37px!important;\n width: 37px!important;\n background-image: url('https://images.twinkl.co.uk/tr/raw/upload/t/images/star_off_large.png');\n background-size: contain;\n background-repeat: no-repeat;\n cursor: pointer;\n}\n#rating-popup .starRating:hover span.starOff {\n background-image: url('https://images.twinkl.co.uk/tr/raw/upload/t/images/star_off_large.png');\n}\n#rating-popup .starRating span.starOff:hover,\n#rating-popup .starRating span.starOff:hover ~ span.starOff {\n background-image: url('https://images.twinkl.co.uk/tr/raw/upload/t/images/star_on_large.png');\n}\n#rating-popup span.starOff.active,\n#rating-popup span.starOff.active ~ span.starOff {\n background-image: url('https://images.twinkl.co.uk/tr/raw/upload/t/images/star_on_large.png');\n}\n#rating-popup .thank-you {\n display: none;\n text-align: center;\n}\n#rating-popup .dismiss-button {\n position: absolute;\n top: 10px;\n right: 10px;\n background: none;\n border: none;\n font-size: 20px;\n cursor: pointer;\n color: #666;\n}\n#rating-popup .dismiss-button:hover {\n color: #333;\n}\n"),fetch("https://www.twinkl.co.uk/php/ajax/getUnratedDownloadsPopup.php",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"action=getUnratedDownloadsPopup"}).then((e=>e.json())).then((e=>{if("success"===e.message){var n=document.createElement("div");n.innerHTML=e.html;var t=n.querySelectorAll(".row.m-b-1"),o=t[t.length-1],a=document.getElementById("rating-popup"),r=o.querySelector("img"),i=o.querySelector("h2").textContent,c=o.querySelector(".starRating").getAttribute("data-resource");a.innerHTML=`\n \n
    \n

    Rate your Download!

    \n

    ${i}

    \n ${i}\n

    Click stars to rate:

    \n
    \n \n \n \n \n \n
    \n
    \n
    \n

    Thank You!

    \n

    We appreciate your feedback.

    \n
    \n `,a.style.display="block",a.querySelectorAll(".starOff").forEach(((e,n)=>{e.addEventListener("click",(()=>{((e,n)=>{var t=Math.random();fetch(`https://www.twinkl.co.uk/php/ajax/submitComment.php?action=submitRatingWithoutComments&type=resource&item_id=${e}&sid=${t}&rating=${n}`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then((e=>e.json())).then((e=>{console.log("Rating submitted successfully:",e)})).catch((e=>{console.error("Error submitting rating:",e)}))})(c,5-n),a.querySelector(".rating-content").style.display="none",a.querySelector(".thank-you").style.display="block",setTimeout((()=>{document.querySelector("#rating-popup").remove()}),4e3)}))})),a.querySelector(".dismiss-button").addEventListener("click",(()=>{document.querySelector("#rating-popup").remove()}))}})).catch((e=>{console.error("Error:",e)}))}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+l)}},c=()=>{try{var e;null===(e=document.querySelector(".unrated-pop-up-div-container"))||void 0===e||e.remove()}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant2-"+l)}},l="rateMyDownloadsPopUpVsRateNow-"+(o.aC.country.uk?"uk":"us"),d={n:l,tg:n,ttl:60,b:[{name:"original",weight:1,run:r},{name:"variant",weight:1,run:i},{name:"variant2",weight:1,run:c}],g:{u:t,e:a},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(d),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},935:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\//,options:!e.user.loggedIn&&!e.user.twinklid&&o.aC.lang.en&&o.aC.country.uk&&o.Fr&&document.querySelector(".zEWidget-launcher")}],t=(0,o.DX)(["funnel","upgrades","products"]);t.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),t.push({name:"signedUp",type:"search",regex:/signed_up/,options:!0});const a=(0,o.kQ)(["download"]);a.push({type:"click",name:"clickedHelp",parentEl:"body",childEl:".zEWidget-launcher"});const r=()=>{try{var e;null===(e=document.querySelector(".zEWidget-launcher"))||void 0===e||e.remove()}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+i)}},i="removeHelpButtonMobileProspect",c={n:i,tg:n,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:r}],g:{u:t,e:a},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(c),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},8025:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{window.dataLayer[0];var e=JSON.parse(sessionStorage.getItem("search:recent")),n=()=>{document.querySelector(".suggestions").addEventListener("click",(e=>{try{if(e.target.closest(".pr1-1>a")){var n,t=e.target.closest(".pr1-1"),o=[...t.parentNode.children].indexOf(t),a=null===(n=t.querySelector("a"))||void 0===n?void 0:n.getAttribute("data-id");document.fn.events.emit("clickedPrompt",{index:o,dataId:a})}}catch(e){}}))};const t=[{regex:/^\/ari-ai$/,options:!!e}],a=(0,o.DX)(["funnel","upgrades","products"]);a.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const r=[];r.push({type:"click",name:"clickedAnyPrompt",parentEl:".suggestions",childEl:"a"}),r.push({type:"on",on:"clickedPrompt",name:"clickedPromptPosition",cb:function(e){let n={...this};return n.name+=e.index,n}}),r.push({type:"on",on:"clickedPrompt",name:"clickedPromptId",cb:function(e){let n={...this};return n.name+=e.dataId,n}});const i=()=>{try{n();var e=document.querySelector(".suggestions"),t=JSON.parse(sessionStorage.getItem("search:recent")),a=e.querySelectorAll(".pr1-1");for(let n=t.length-1;n>=0;n--){var r=t[n].toLowerCase();if(!(r.length<3)){var i=new RegExp("\\b"+r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"\\b","i");for(let n=0;n{n()}},{name:"variant",weight:1,run:i}],g:{u:a,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(l),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},5745:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{var e,n;const t=window.dataLayer[0],a=[{regex:/^\/resources\//,options:/^\/resources\//.test(location.pathname)&&document.body.classList.contains("default-category")&&!(null===(e=t.category_test)||void 0===e||!e.sub_category_ordering)&&t.user.loggedIn}],r=(0,o.DX)(["funnel"]);r.push({name:"resourcePageVisit",regex:/^\/resource\//,options:!0}),r.push({name:"signedUp",type:"search",regex:/signed_up/,options:!0}),r.push({name:"search",regex:/^\/search$/,options:!0});const i=[];i.push({type:"click",name:"Clicked1-8",parentEl:"#resources",childEl:"li:nth-child(n+1):nth-child(-n+8) a"}),i.push({type:"click",name:"clickedBreadcrumb",parentEl:".container",childEl:"div#breadcrumb"}),i.push({type:"click",name:"clickedResources",parentEl:"#resources",childEl:"a"}),i.push({type:"click",name:"clickedMM",parentEl:"#header",childEl:".menuTab a"});const c=()=>{},l=()=>{},d="categoryOrdering"+(o.Fr?"-mobile":"-desktop"),s=[{name:"original",weight:1,run:c},{name:"variant",weight:1,run:l}],u=null===(n=t.abTests)||void 0===n?void 0:n.sub_category_ordering,p={n:d,tg:a,ttl:60,b:s,g:{u:r,e:i},o:{bucket:(null==u?void 0:u.variantIndex)>-1?u.variantIndex:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(p),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},6361:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{window.dataLayer[0];const e=[{regex:/^\//,options:o.xl&&document.querySelector(".uspContainer")&&document.querySelector(".vb-main")}],n=(0,o.DX)(["funnel","upgrades","products"]),t=(0,o.kQ)(["download"]);t.push({type:"click",name:"clickedBelowUsps",parentEl:".vb-main",childEl:"a"}),t.push({type:"click",name:"clickedAnywhere",parentEl:".body",childEl:"a"});const a=()=>{try{document.querySelector(".uspContainer").remove()}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+r)}},r="removeUspsLandingPages",i={n:r,tg:e,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:a}],g:{u:n,e:t},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(i),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},6446:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{var e,n;const i=window.dataLayer[0];var t=null==i||null===(e=i.user)||void 0===e?void 0:e.country_id,a="hotwheels",r=!1;t&&(r=/^244$|^246$|^247$|^245$/.test(t)?"UK":t);const c=()=>{window.document.querySelector(".display-box").insertAdjacentHTML("afterend",'\n ');var e=document.getElementById("featured-list"),n=e.querySelector("#dashyWidget"),t=e.querySelector("span.dismiss"),c="https://images.twinkl.co.uk/tw1n/image/private/t_{width}";({UK:[{title:"Click here for free resources",img:c+"/u/ux/hotwheels_ver_1."+i.support.image,url:"/resources/twinkl-partnerships/mattel/hot-wheels"},{title:"Hot Wheels: Maths Code Breaker Activity [Ages 5-7]",img:c+"/image_repo/e4/55/t-m-1727345925-hot-wheels-maths-code-breaker-activity-ages-5-7_ver_1."+i.support.image,url:"/resource/hot-wheels-maths-code-breaker-activity-ages-5-7-t-m-1727345925"},{title:"Hot Wheels: Colouring Pages",img:c+"/image_repo/d2/ab/t-1726130486-hot-wheels-colouring-sheets-1_ver_1."+i.support.image,url:"/resource/hot-wheels-colouring-sheets-t-1726130486"},{title:"Hot Wheels: 60-Second Reads Activity Pack [Ages 7-9]",img:c+"/image_repo/7b/15/t-e-1725889076-hot-wheels-60-second-reads-activity-pack-ages-7-9-2_ver_1."+i.support.image,url:"/resource/hot-wheels-60-second-reads-activity-pack-ages-7-9-t-e-1725889076"}],226:[{title:"Click here for free resources",img:c+"/u/ux/hotwheels_ver_1."+i.support.image,url:"/resources/partnerships-usa/mattel-usa/hot-wheels-usa"},{title:"Hot Wheels: Coloring Sheets",img:c+"/image_repo/7a/3d/hot-wheels-coloring-sheets-us-ac-1730764633_ver_1."+i.support.image,url:"/resource/hot-wheels-coloring-sheets-us-ac-1730764633"},{title:"Hot Wheels: I Spy Activity",img:c+"/image_repo/04/05/hot-wheels-i-spy-activity-us-ac-1730812532_ver_1."+i.support.image,url:"/resource/hot-wheels-i-spy-activity-us-ac-1730812532"},{title:"Hot Wheels: Count and Color Activity",img:c+"/image_repo/a3/2d/hot-wheels-count-and-color-activity-us-m-1730820295_ver_1."+i.support.image,url:"/resource/hot-wheels-count-and-color-activity-us-m-1730820295"}]})[r].forEach((e=>{var t;n.innerHTML+=``})),t.addEventListener("click",(()=>{e.remove(),(0,o.n0)(`${a}Timer`,1,-1)})),document.fn.events.emit("loadedContent"),(0,o.v8)(`${a}Widget`)||((0,o.n0)(`${a}Widget`,1,30),(0,o.n0)(`${a}Timer`,1,2))},l=[{regex:/^\/$/,options:(!!(0,o.v8)(`${a}Widget`)&&!!(0,o.v8)(`${a}Timer`)||!(0,o.v8)(`${a}Widget`))&&i.user.loggedIn&&!(null===(n=i.support)||void 0===n||!n.image)&&o.xl&&!!t&&(o.aC.country.uk||/^226$/.test(i.user.country_id))&&new Date{try{c()}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+p)}},p=`hotWheels-${r}`,m={n:p,tg:l,ttl:60,b:[{name:"original",weight:1,run:()=>{try{c()}catch(e){}}},{name:"variant",weight:1,run:u}],g:{u:d,e:s},o:{bucket:-1,testing:!0,fnDataApi:"ga",encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(m),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},7107:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{var e;const t=window.dataLayer[0],a=[{regex:/^\/$/,options:!o.aC.member.schoolAccount&&t.user.loggedIn&&"free"==t.user.type&&o.xl&&document.querySelector("#recentlyViewedList")&&screen.width>1150&&!!sessionStorage.getItem("search:recent")&&(null===(e=JSON.parse(sessionStorage.getItem("search:recent")))||void 0===e?void 0:e.length)>2}],r=(0,o.DX)(["funnel","upgrades","products"]);r.push({name:"landedOnSearch",regex:/^\/search/,options:!0});const i=(0,o.kQ)(["download"]);i.push({type:"click",name:"clickedPreviousSearch",parentEl:".previousSearches",childEl:"a.previousSearch"}),i.push({type:"click",name:"clickedPreviousSearchfFirst",parentEl:".previousSearches",childEl:"a.previousSearch:first-of-type"}),i.push({type:"click",name:"clickedPreviousSearchSecond",parentEl:".previousSearches",childEl:"a.previousSearch:nth-of-type(2)"}),i.push({type:"click",name:"clickedPreviousSearchfThird",parentEl:".previousSearches",childEl:"a.previousSearch:nth-of-type(3)"}),i.push({type:"click",name:"clickedPreviousSearchfFourth",parentEl:".previousSearches",childEl:"a.previousSearch:nth-of-type(4)"}),i.push({type:"click",name:"clickedPreviousBox",parentEl:"#recentlyViewedList",childEl:"a"}),i.push({type:"click",name:"clickedOnDashy",parentEl:"body",childEl:"a"}),i.push({type:"click",name:"clickedOnMembersWithaSimilarCareer",parentEl:"#dashy_similar_careers_box",childEl:"a"});var n=(e,n)=>{var t;n&&(null===(t=document.querySelectorAll("#recentlyViewedList .res-item")[3])||void 0===t||t.remove()),document.querySelector("#recentlyViewedList").insertAdjacentHTML(e,'

    Previous Searches:

    '),JSON.parse(sessionStorage["search:recent"]).forEach(((e,n)=>{n<3&&document.querySelector(".previousSearches").insertAdjacentHTML("beforeend",`year 3 summer maths

    ${e}

    `)})),(0,o.se)(".res-item.previousSearches {\n gap: 10px;\n display: flex;\n flex-direction: column;\n }a.previousSearch {\n padding: 10px;\n width: 100%;\n display: block;\n border: 2px solid #2399f99e!important;\n background: #2399f92b;\n color: black;\n border-radius: 10px;\n text-transform: capitalize;\n font-family: robotobold;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n gap: 10px;\n font-size:13px!important;\n }.previousSearch img {\n width: 22px;\n height: 22px;\n box-shadow: none!important;\n }p.previousSearchTitle {\n margin: 0;\n font-size: 15px;\n }a.previousSearch:hover {\n box-shadow: 0 1px 4px 0 rgba(0, 0, 0, .36);\n }p.prevousSearchesText {\n font-family: robotobold;\n margin: 0!important;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }");var a="";document.querySelectorAll('#search_box input[type="hidden"]').forEach((e=>{e.name&&e.value&&(a+=`&${null==e?void 0:e.name}=${null==e?void 0:e.value}`)})),a&&document.querySelectorAll(".previousSearch").forEach((e=>{e.href+=a}))};const c=()=>{try{n("beforeend",!0)}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-control-"+d)}},l=()=>{try{n("beforeend",!0)}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+d)}},d="previousSearchesOnDashyFourthVsAboveRecentlyViewed",s={n:d,tg:a,ttl:60,b:[{name:"original",weight:1,run:c},{name:"variant",weight:1,run:l}],g:{u:r,e:i},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(s),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},2143:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const n=window.dataLayer[0],t=[{regex:/^\/$/,options:!o.aC.member.schoolAccount&&n.user.loggedIn&&o.xl&&!!document.querySelector("#dashy_recently_downloaded_box")&&!!document.querySelector(".display-box")&&document.querySelector("#dashy_recently_downloaded_box .recently-downloaded .starOff")&&o.aC.lang.en&&(o.aC.country.uk||226==n.user.country_id)}],a=(0,o.DX)(["funnel","upgrades","products"]),r=(0,o.kQ)(["download"]);r.push({type:"click",name:"leftReview",parentEl:"#dashy_recently_downloaded_box",childEl:".recently-downloaded .starOn",mod:2}),r.push({type:"click",name:"Rated1",parentEl:"#dashy_recently_downloaded_box",childEl:".recently-downloaded .starOn[data-star-rate='1']"}),r.push({type:"click",name:"Rated2",parentEl:"#dashy_recently_downloaded_box",childEl:".recently-downloaded .starOn[data-star-rate='2']"}),r.push({type:"click",name:"Rated3",parentEl:"#dashy_recently_downloaded_box",childEl:".recently-downloaded .starOn[data-star-rate='3']"}),r.push({type:"click",name:"Rated4",parentEl:"#dashy_recently_downloaded_box",childEl:".recently-downloaded .starOn[data-star-rate='4']"}),r.push({type:"click",name:"Rated5",parentEl:"#dashy_recently_downloaded_box",childEl:".recently-downloaded .starOn[data-star-rate='5']"}),r.push({type:"click",name:"clickedViewAllLink",parentEl:"#dashy_recently_downloaded_box",childEl:"span.viewAllLink a"}),r.push({type:"click",name:"clickedRecentlyDownloadedResource",parentEl:"#dashy_recently_downloaded_box",childEl:".recently-downloaded a"}),r.push({type:"click",name:"clickedDashy",parentEl:"body",childEl:"a"}),r.push({type:"click",name:"clickedRecentlyViewed",parentEl:"#recentlyViewedList",childEl:"a"}),r.push({type:"click",name:"clickedMembersWithASimilarCareer",parentEl:"#dashy_similar_careers_box",childEl:"a"}),r.push({type:"click",name:"clickedRecommendedForYou",parentEl:"#recommended-list-show",childEl:"a"});var e=()=>{let e=document.querySelector("#dashy_recently_downloaded_box");document.querySelector(".display-box").insertAdjacentElement("beforebegin",e),document.querySelectorAll("#dashy_recently_downloaded_box .recently-downloaded .starRating").forEach(((e,n)=>{let t=e.closest(".recently-downloaded");n?t.className+=" hidden upNext":t.classList.add("curr"),t.insertAdjacentHTML("afterbegin",'

    Rate your Download!

    '),t.querySelector(".reviewsTitle").insertAdjacentElement("beforeend",t.querySelector(".res-title"))})),document.querySelectorAll("#dashy_recently_downloaded_box .recently-downloaded").forEach((e=>{!e.querySelector(".starRating")&&e.classList.add("hidden")})),(0,o.se)(".recently-downloaded.curr {\n height: auto;\n padding: 20px;\n border-radius: 14px;\n box-shadow: 0 2px 6px 0 rgba(0,0,0,.2);\n display: flex;\n flex-direction: column;\n gap: 20px;\n}.recently-downloaded.rated {\n height: auto;\n padding: 20px;\n border-radius: 14px;\n display: flex;\n flex-direction: column;\n gap: 20px;\n}.curr .rating .text-subtitle-grey{\n display:none;\n}.curr .ratingHolder{\n display: flex;\n justify-content: center;\n height: 37px;\n align-items: center;\n}.rating {\n height: 55px;\n}.reviewYourDownload{\n font-weight:700;\n margin:0; \n}.reviewsTitle {\n display: flex;\n flex-direction: column;\n gap: 1px;\n}.reviewsTitle span {\n color: grey!important;\n}#dashy_recently_downloaded_box .box-header{\n display:none;\n}"),document.querySelector("#dashy_recently_downloaded_box").addEventListener("click",(e=>{var n,t;console.log(e.target),e.target.closest(".curr .starOn")&&(null===(n=document.querySelector(".upNext"))||void 0===n||n.classList.remove("hidden"),document.querySelector(".curr").classList.add("rated"),document.querySelector(".curr").classList.toggle("curr"),null===(t=document.querySelector(".upNext"))||void 0===t||t.classList.toggle("curr"))})),(0,o.se)("p.reviewYourDownload {\n font-size: 1.4rem;\n}p.reviewYourDownload {\n font-size: 1.4rem;\n margin-bottom: 10px;\n}.recently-downloaded img {\n border-radius: 8px;\n}.directionToRate {\n text-align: center;\n margin-bottom: 10px;\n font-size: 0.9rem;\n}.recently-downloaded .rating {\n height: auto!important;\n}.recently-downloaded {\n padding:30px!important;\n gap: 30px!important;\n}"),document.querySelector(".recently-downloaded .starRating").insertAdjacentHTML("beforebegin",'
    Click stars to rate:
    ')};const i=()=>{try{e()}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-control-"+l)}},c=()=>{try{e()}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+l)}},l="recentlyDownlSwitchedOrderResetWithGoals-"+(o.aC.country.uk?"uk":"us"),d={n:l,tg:t,ttl:60,b:[{name:"original",weight:1,run:i},{name:"variant",weight:1,run:c}],g:{u:a,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(d),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},8126:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{window.dataLayer[0];const e=[{regex:/^\/free-trial-landing$/,options:!0}],n=(0,o.DX)(["funnel","products"]),t=(0,o.kQ)(["download"]),a=()=>{},r={n:"freeTrialLandingAA",tg:e,ttl:60,b:[{name:"original",weight:1,run:a},{name:"variant",weight:1,run:a}],g:{u:n,e:t},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(r),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},4736:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{window.dataLayer[0];const e="freeTrialLandingHeroTunnel-UK"+(o.Fr?"-mobile":"-desktop"),n=[{regex:/^\/free-trial-landing$/,options:!o.aC.member.schoolAccount&&o.aC.lang.en&&o.aC.country.uk&&!!document.querySelector("#trial-offer")}];n[0].options&&((new Image).src="https://images.twinkl.co.uk/tr/raw/upload/u/ux/freetriallandinghero2-tunnel1-uk1-3-compressed_ver_2.jpg");const t=(0,o.DX)(["funnel","upgrades","products","cancel"]);t.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),t.push({name:"sign-up",type:"search",regex:/signed_up/,options:!0});const a=(0,o.kQ)(["download"]);a.push({type:"click",name:"anyCTAclick",parentEl:"#trial-offer",childEl:'a[href="/trial-free"]'}),a.push({type:"click",name:"primaryCTAclick",parentEl:".headingPanel-hero",childEl:'a[href="/trial-free"]'}),a.push({type:"click",name:"secondaryCTAclick",parentEl:".secondCTABtn",childEl:'a[href="/trial-free"]'}),a.push({type:"click",name:"secondaryCTAclick",parentEl:"#popupCTAHero",childEl:'a[href="/trial-free"]'}),a.push({type:"click",name:"headerLogoClick",parentEl:".simple-header",childEl:'a[href="/"]'});const r={n:e,tg:n,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant1",weight:1,run:()=>{try{(0,o.se)("\n #trial-offer.trial-offer-hero .heading-panel.headingPanel-hero {\n background-image: \n url(https://images.twinkl.co.uk/tr/raw/upload/u/ux/freetriallandinghero2-tunnel1-uk1-3-compressed_ver_2.jpg);\n .mainTextParent-hero {\n filter: drop-shadow(0px 10px 28px #000000d1);\n }\n }\n .is-mobile-device {\n #trial-offer.trial-offer-hero .heading-panel.headingPanel-hero {\n background-position-x: 65%;\n }\n }\n ")}catch(n){(0,o.BI)("ABError",n,window.location.pathname+"-variant1-"+e)}}}],g:{u:t,e:a},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(r),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},4352:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0],n="freeTrialLandingHeroTunnel1-USA-v2"+(o.Fr?"-mobile":"-desktop"),t=[{regex:/^\/free-trial-landing$/,options:!o.aC.member.schoolAccount&&"paid"!==e.user.type&&o.aC.lang.en&&226==e.user.country_id&&"www.twinkl.com"==location.hostname&&!!document.querySelector("#trial-offer")}];t[0].options&&((new Image).src="https://images.twinkl.co.uk/tr/raw/upload/u/ux/freetriallandinghero2-tunnel1-usa1-jpeg-compressed-progressive_ver_3.jpg");const a=(0,o.DX)(["funnel","upgrades","products"]);a.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),a.push({name:"sign-up",type:"search",regex:/signed_up/,options:!0});const r=(0,o.kQ)(["download"]);r.push({type:"click",name:"anyCTAclick",parentEl:"#trial-offer",childEl:'a[href="/trial-free"]'}),r.push({type:"click",name:"primaryCTAclick",parentEl:".headingPanel-hero",childEl:'a[href="/trial-free"]'}),r.push({type:"click",name:"secondaryCTAclick",parentEl:".secondCTABtn",childEl:'a[href="/trial-free"]'}),r.push({type:"click",name:"headerLogoClick",parentEl:".simple-header",childEl:'a[href="/"]'});const i={n,tg:t,ttl:60,b:[{name:"original",weight:1,run:()=>{try{!function(){try{const t=document.querySelector(".mainTextParent-hero"),a=document.querySelector(".heading-panel.headingPanel-hero"),r=document.querySelector("#trial-offer .container .my-3");if(t&&a&&r){var e,n;n="Official Partnerships";const t=`\n
    \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n

    ${n}

    \n
    `;r.insertAdjacentHTML("beforebegin",t),(0,o.se)("\n #trial-offer.trial-offer-hero {\n .heading-panel.headingPanel-hero {\n box-shadow: 0 0 200px rgba(0,0,0,0.9) inset;\n overflow: clip;\n }\n .partnersElement {\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-bottom: 2rem;\n .heroPartnersContainer {\n display: flex;\n flex-wrap: wrap;\n flex-direction: row;\n align-content: center;\n align-items: center;\n justify-content: center;\n .logoContainer-hero {\n transition: all 100ms cubic-bezier(0, 0.51, 0.46, 0.99);\n max-width: 13rem;\n min-width: 7rem;\n max-height: 6rem;\n min-height: 100px;\n display: flex;\n justify-content: center;\n align-items: center;\n .logoImg-hero {\n max-height: inherit;\n }\n img#tp-palos {\n width: 60%;\n }\n img#tp-lebanon {\n width: 60%;\n }\n }\n }\n p.partnersText {\n font-weight: normal;\n color: #333333;\n font-size: 16px;\n margin-top: 1em;\n }\n }\n }\n .is-mobile-device {\n #trial-offer.trial-offer-hero {\n .partnersElement {\n .heroPartnersContainer {\n .logoContainer-hero {\n transition: all 100ms cubic-bezier(0, 0.51, 0.46, 0.99);\n max-width: 9rem;\n min-width: 7rem;\n max-height: 6rem;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n }\n p.partnersText {\n font-weight: normal;\n color: gray;\n font-size: 14px;\n margin-top: 1em;\n }\n }\n } \n }\n ")}}catch(e){var t;(0,o.BI)("ABError",e,window.location.pathname+`freeTrialLandingHeroPartners${null===(t=dataLayer[0])||void 0===t||null===(t=t.user)||void 0===t?void 0:t.country_id}`)}}()}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-control-"+n)}}},{name:"variant1",weight:1,run:()=>{try{(0,o.se)("\n #trial-offer.trial-offer-hero .heading-panel.headingPanel-hero {\n background-image: \n url(https://images.twinkl.co.uk/tr/raw/upload/u/ux/freetriallandinghero2-tunnel1-usa1-jpeg-compressed-progressive_ver_3.jpg);\n .mainTextParent-hero {\n filter: drop-shadow(0px 10px 28px #000000d1);\n }\n }\n .is-mobile-device {\n #trial-offer.trial-offer-hero .heading-panel.headingPanel-hero {\n background-position-x: 65%;\n }\n }\n ")}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant1-"+n)}}}],g:{u:a,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(i),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},9544:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{var e;const n="prospectHomeLandingAA",t=[{regex:/^\/$/,options:!window.dataLayer[0].user.twinklid}],a=(0,o.DX)(["funnel","products"]);a.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),a.push({name:"signInBeforeUp",type:"search",regex:/sign_in/,options:!(null!==(e=JSON.parse(localStorage.getItem("_x")))&&void 0!==e&&null!==(e=e[btoa(n).replace(/=/g,"")])&&void 0!==e&&null!==(e=e.g)&&void 0!==e&&e.c2lnbmVkLXVw)}),a.push({name:"signedUpFromHome",regex:/signed_up/,type:"search",options:/twinkl[A-Za-z.]+\/$/.test(document.referrer)}),a.push({name:"signedUp",regex:/signed_up/,type:"search",options:!0});const r=(0,o.kQ)(["download"]);r.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),r.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"});const i={n,tg:t,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:()=>{}}],g:{u:a,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(i),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},507:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{var e;const n="prospectHomeLandingGoogleAA",t=[{regex:/^\/$/,options:!window.dataLayer[0].user.twinklid&&/^https:\/\/www\.google\./.test(document.referrer)}],a=(0,o.DX)(["funnel","products"]);a.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),a.push({name:"signInBeforeUp",type:"search",regex:/sign_in/,options:!(null!==(e=JSON.parse(localStorage.getItem("_x")))&&void 0!==e&&null!==(e=e[btoa(n).replace(/=/g,"")])&&void 0!==e&&null!==(e=e.g)&&void 0!==e&&e.c2lnbmVkLXVw)}),a.push({name:"signedUpFromHome",regex:/signed_up/,type:"search",options:/twinkl[A-Za-z.]+\/$/.test(document.referrer)}),a.push({name:"signedUp",regex:/signed_up/,type:"search",options:!0});const r=(0,o.kQ)(["download"]);r.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),r.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"});const i={n,tg:t,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:()=>{}}],g:{u:a,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(i),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},9361:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{var e;const n="prospectHomeLandingNullAA",t=[{regex:/^\/$/,options:!window.dataLayer[0].user.twinklid&&/^$/.test(document.referrer)}],a=(0,o.DX)(["funnel","products"]);a.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),a.push({name:"signInBeforeUp",type:"search",regex:/sign_in/,options:!(null!==(e=JSON.parse(localStorage.getItem("_x")))&&void 0!==e&&null!==(e=e[btoa(n).replace(/=/g,"")])&&void 0!==e&&null!==(e=e.g)&&void 0!==e&&e.c2lnbmVkLXVw)}),a.push({name:"signedUpFromHome",regex:/signed_up/,type:"search",options:/twinkl[A-Za-z.]+\/$/.test(document.referrer)}),a.push({name:"signedUp",regex:/signed_up/,type:"search",options:!0});const r=(0,o.kQ)(["download"]);r.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),r.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"});const i={n,tg:t,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:()=>{}}],g:{u:a,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(i),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},2924:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{var e;const n="prospectHomeLandingOtherAA",t=[{regex:/^\/$/,options:!window.dataLayer[0].user.twinklid&&!/^https:\/\/www\.google\.|^https:\/\/www.twinkl\.|^$/.test(document.referrer)}],a=(0,o.DX)(["funnel","products"]);a.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),a.push({name:"signInBeforeUp",type:"search",regex:/sign_in/,options:!(null!==(e=JSON.parse(localStorage.getItem("_x")))&&void 0!==e&&null!==(e=e[btoa(n).replace(/=/g,"")])&&void 0!==e&&null!==(e=e.g)&&void 0!==e&&e.c2lnbmVkLXVw)}),a.push({name:"signedUpFromHome",regex:/signed_up/,type:"search",options:/twinkl[A-Za-z.]+\/$/.test(document.referrer)}),a.push({name:"signedUp",regex:/signed_up/,type:"search",options:!0});const r=(0,o.kQ)(["download"]);r.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),r.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"});const i={n,tg:t,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:()=>{}}],g:{u:a,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(i),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},6370:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{window.dataLayer[0];const e=[{regex:/^\/news$|^\/news\//,options:/^\/news$|^\/news\//.test(window.location.pathname)}],n=(0,o.DX)(["funnel","upgrades","products"]);n.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const t=(0,o.kQ)(["download"]);t.push({type:"click",name:"clickedAnyDigestLink",parentEl:"#twinkl-digest",childEl:"a",mod:3}),t.push({type:"click",name:"clickedMegaMenu",parentEl:"#header .menuTab",childEl:"li a",mod:3}),t.push({type:"click",name:"clickedDigestMenu",parentEl:".digest-container",childEl:"li",mod:3}),t.push({type:"click",name:"clickedAnyArticle",parentEl:"article.article",childEl:"a",mod:3});const a=()=>{},r=()=>{},i={n:`newsPagesAA-${/^\/news$/.test(window.location.pathname)?"homePage":"articlePage"}${o.xl?"-desktop":"-mobile"}`,tg:e,ttl:60,b:[{name:"original",weight:1,run:a},{name:"variant",weight:1,run:r}],g:{u:n,e:t},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(i),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},9425:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/resources\/parents$/,options:!o.aC.member.schoolAccount&&110==e.user.career_id}],t=(0,o.DX)(["funnel","products"]);t.push({name:"visitedSearch",regex:/^\/search$/,options:!0},{name:"visitedResourcePage",regex:/^\/resource\//,options:!0},{name:"visitedDashy",regex:/^\/$/,options:!0});const a=(0,o.kQ)(["download"]);a.push({type:"click",name:"clickedLinkInCard",parentEl:".link-block-container",childEl:".link-block a"},{type:"click",name:"clickedOtherInCard",parentEl:".link-block-container",childEl:"h3, div.link-image"},{type:"click",name:"clickedTopCTAs",parentEl:".new-buttons",childEl:"a"},{type:"click",name:"clickedBlogLinks",parentEl:"parents-container.px-4",childEl:"a"},{type:"click",name:"clickedTealCards",parentEl:".banner-backgound.alpha-teal",childEl:"a"},{type:"click",name:"clickedMoreResourcesForYou",parentEl:"#parents",childEl:"#more-resources-for-you a"},{type:"click",path:/^\/$/,name:"clickedDashyLinks",parentEl:"#dashy-home",childEl:".display-box a"},{type:"click",name:"clickedAnyParentPageLink",parentEl:"#parents",childEl:"a"});const r=()=>{},i=()=>{},c={n:"parentLandingAA"+(o.xl?"":"-mobile"),tg:n,ttl:60,b:[{name:"original",weight:1,run:r},{name:"variant",weight:1,run:i}],g:{u:t,e:a},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(c),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},5836:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/trial-free|^\/free-trial-payment/,options:e.user.loggedIn&&"free"==e.user.type&&document.querySelector(".seeOtherPlans")&&document.querySelector(".price_container_row")&&!o.aC.lang.en&&document.querySelector(".then")&&e.translations&&e.annual_monthly_equivalent&&e.monthly_rolling_price}],t=(0,o.DX)(["funnel","upgrades","products"]);t.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const a=(0,o.kQ)(["download"]);a.push({type:"click",name:"clickedSeeOtherPlans",parentEl:"body",childEl:".seeOtherPlans"}),a.push({type:"click",name:"clickedSeeOtherPlans",parentEl:"body",childEl:".SeeOtherNewButton"}),a.push({type:"click",name:"clickedYearly",parentEl:"body",childEl:".yearly .button"}),a.push({type:"click",name:"clickedMonthly",parentEl:"body",childEl:".monthly .button"});const r=()=>{},i=()=>{try{var e,n;if(document.querySelector(".monthly .then")){var t,a=document.querySelector(".monthly .then").innerText.split(dataLayer[0].monthly_rolling_price.value)[1];null===(t=document.querySelector(".price_container_row"))||void 0===t||t.insertAdjacentHTML("beforeend",`
    \n
    \n\n
    Pay Now Plan
    \n\n
    \n
    \n Unlimited Downloads\n
    \n
    \n
    \n ${dataLayer[0].monthly_rolling_price.currency_symbol}${dataLayer[0].monthly_rolling_price.value}${a}
    \n \n
    No free trial period
    \n
    \n ${dataLayer[0].translations.pay_now}\n
    \n
    \n
    `)}(0,o.se)(".seeOtherPlans{\ndisplay:none;\n}.price_container_row {\ndisplay: flex;\njustify-content: center!important;\nalign-items: flex-end;\n}span.trialPriceAmount span {\nfont-size: 12px;\n}.payMonthlyDiv h2 {\ntext-align: center;\n}.ribbon-wrapper {\ndisplay: none;\n}a.green.button.largeButton.SeeOtherNewButton {\ncolor: #5d8200;\nborder: 2px solid #5d8200;\nbackground: white;\ntext-shadow: none;\n}a.green.button.largeButton.SeeOtherNewButton:hover {\nbackground: #5d8200;\ncolor: white;\nborder: 2px solid white;\ntext-shadow: 1px 1px 3px rgba(0,0,0,.4);\n}.paypalRedirect{\n display:none!important;\n }"),document.querySelector(".yearly .boxTitle").innerText&&document.querySelector(".monthly .boxTitle").innerText&&(document.querySelector(".yearly .boxTitle").innerText="30 Day Trial - Annual Plan",document.querySelector(".monthly .boxTitle").innerText="30 Day Trial - Monthly Plan"),document.querySelector(".then").innerText.match(/(.)(\d+\.\d+)|(\d+)/)[2],document.querySelectorAll(".then")[1].innerText,document.querySelector(".price_container_row").insertAdjacentElement("beforeend",document.querySelectorAll(".col-md-6.col-12.m-x-0.p-x-0")[2].cloneNode(!0)),document.querySelector(".col-md-6.col-12.m-x-0.p-x-0").remove(),document.querySelector(".col-md-6.col-12.m-x-0.p-x-0 .boxTitle").innerText=dataLayer[0].translations.thirty_day_free_trial,document.querySelectorAll(".col-md-6.col-12.m-x-0.p-x-0 .type").forEach((e=>e.remove())),document.querySelectorAll(".col-md-6.col-12.m-x-0.p-x-0 .boxTitle")[1].innerText=`${dataLayer[0].translations.pay_now} - ${dataLayer[0].translations.annual}`,document.querySelectorAll(".col-md-6.col-12.m-x-0.p-x-0 .boxTitle")[2].innerText=`${dataLayer[0].translations.pay_now} - ${dataLayer[0].translations.monthly}`,document.querySelector(".boxTitle").insertAdjacentHTML("beforebegin",`
    ${dataLayer[0].translations.new_to_twinkl_start_here}
    `),null===(e=document.querySelector(".then"))||void 0===e||e.remove(),null===(n=document.querySelector(".sevenDays"))||void 0===n||n.remove(),(0,o.se)(".payableAs{\n display:none!important;\n}.payMonthlyDiv .box .boxTitle.ultimate {\n border-bottom: 0!important;\n}.payMonthlyDiv .box .content {\n border-top: 0!important;\n}a.green.button.largeButton {\n width: 100%;\n margin-bottom: 25px;\n}.tickAndParaContainer {\n display: grid;\n grid-template-columns: 1fr 5fr;\n}p.para,p.membershipTitle {\n text-align: left;\n}.payMonthlyDiv h2 {\n margin-bottom: 40px!important;\n}.tickAndParaContainer {\n font-size: 14px;\n}.col-12.box.monthly {\n box-shadow: 1px 0px 13px 0 rgba(0,0,0,.2);\n}.panel_container .price_container_row {\n align-items: flex-start;\n}.payMonthlyDiv .box .content {\n background: white!important;\n}.payMonthlyDiv .box .boxTitle {\n background-color: white!important;\n}"),document.querySelectorAll(".trialPriceAmount")[1].innerHTML=`${dataLayer[0].annual_monthly_equivalent.currency_symbol}${dataLayer[0].annual_monthly_equivalent.value}${dataLayer[0].translations.monthly_annual_billing.split(`${dataLayer[0].annual_monthly_equivalent.currency_symbol}${dataLayer[0].annual_monthly_equivalent.value}`)[1]}`,document.querySelectorAll(".col-md-6.col-12.m-x-0.p-x-0").forEach(((e,n)=>{e.querySelector(".green.button").insertAdjacentHTML("afterend",`
    \n

    ${dataLayer[0].translations.benefits}:

    \n
    \n ${0==n?'

    ':'

    '}

    ${dataLayer[0].translations.thirty_day_free_trial}

    \n ${1==n?`

    ${dataLayer[0].translations.annual_discount}

    `:""}\n

    ${dataLayer[0].translations.unlimited_downloads_sitewide}

    \n

    ${dataLayer[0].translations.access_to_1_000_000_plus_twinkl_resources}

    \n

    ${dataLayer[0].translations.twenty_four_seven_customer_support_team}

    \n

    ${dataLayer[0].translations.further_member_benefits}

    \n ${0==n?`

    ${dataLayer[0].translations.membership_activation_after_30_days}`:""}\n \n

    \n
    `)})),document.querySelector(".SeeOtherNewButton").href+="/yearly",document.querySelectorAll(".SeeOtherNewButton")[1].href+="/monthly"}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+c)}},c=`decoyTestingNonEnglishLanguageTranslated-${e.user.country_id}-${o.xl?"desktop":"mobile"}`,l={n:c,tg:n,ttl:60,b:[{name:"original",weight:1,run:r},{name:"variant",weight:1,run:i}],g:{u:t,e:a},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(l),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},7035:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/a-payment\/monthly\//,options:e.user.loggedIn&&!!document.querySelector("#order_summary table tr td.lineTop")&&!!document.getElementById("order_summary")&&o.aC.lang.en&&/^244$/.test(e.user.country_id)}],t=(0,o.DX)(["funnel","upgrades","products","cancel"]);t.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const a=(0,o.kQ)(["download"]),r=()=>{},i=()=>{try{document.querySelector("#order_summary table tr td.lineTop").innerHTML=`${dataLayer[0].email}`}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+c)}},c=`payFinalEmail${o.xl?"-":"-mobile-"}${e.user.country_id}`,l={n:c,tg:n,ttl:60,b:[{name:"original",weight:1,run:r},{name:"variant",weight:1,run:i}],g:{u:t,e:a},o:{bucket:e.user.twinklid%2,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(l),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},2479:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{window.dataLayer[0];const e=[{regex:/^\/payment$/,options:document.querySelector(".payMonthlyDiv .ultimate")}],n=(0,a.DX)(["funnel","products"]),t=[],r="paymentChoiceUltLoggerAA",i={n:r,t:()=>c(e),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:()=>{}}],g:{u:n,e:t},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};function c(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function l(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:o=>{var a;return c(e)||!!o&&o[null===(a=window.btoa(r))||void 0===a?void 0:a.replace(/=/g,"")]&&(c(n)||l(t))},codeToRun:()=>{c(e)?(0,a.Gc)((function(){o.A.init(i)})):(c(n)||l(t))&&(0,a.Hh)((function(){o.A.init(i)}))}}}catch(d){const s="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",d,window.location.pathname+"-"+s)}}},3409:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const n=window.dataLayer[0],t=[{regex:/^\/trial-free|^\/free-trial-payment/,options:n.user.loggedIn&&"free"==n.user.type&&document.querySelector(".seeOtherPlans")&&document.querySelector(".price_container_row")&&o.aC.lang.en&&document.querySelector(".then")}],a=(0,o.DX)(["funnel","upgrades","products"]);a.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const r=(0,o.kQ)(["download"]);r.push({type:"click",name:"clickedSeeOtherPlans",parentEl:"body",childEl:".seeOtherPlans"}),r.push({type:"click",name:"clickedSeeOtherPlans",parentEl:"body",childEl:".SeeOtherNewButton"}),r.push({type:"click",name:"clickedYearly",parentEl:"body",childEl:".yearly .button"}),r.push({type:"click",name:"clickedMonthly",parentEl:"body",childEl:".monthly .button"});var e=()=>{var e,n,t,a=null===(e=document.querySelector(".monthly .then"))||void 0===e||null===(e=e.innerText)||void 0===e?void 0:e.split("then ");a&&(null===(n=document.querySelector(".price_container_row"))||void 0===n||n.insertAdjacentHTML("beforeend",`
    \n
    \n\n
    Pay Now Plan
    \n\n
    \n
    \n Unlimited Downloads\n
    \n
    \n
    \n ${null===(t=a[1])||void 0===t||null===(t=t.split("/month"))||void 0===t?void 0:t[0]}/month
    \n \n
    No free trial period
    \n
    \n Pay now\n
    \n
    \n
    `)),(0,o.se)(".seeOtherPlans{\ndisplay:none;\n}.price_container_row {\ndisplay: flex;\njustify-content: center!important;\nalign-items: flex-end;\n}span.trialPriceAmount span {\nfont-size: 12px;\n}.payMonthlyDiv h2 {\ntext-align: center;\n}.ribbon-wrapper {\ndisplay: none;\n}a.green.button.largeButton.SeeOtherNewButton {\ncolor: #5d8200;\nborder: 2px solid #5d8200;\nbackground: white;\ntext-shadow: none;\n}a.green.button.largeButton.SeeOtherNewButton:hover {\nbackground: #5d8200;\ncolor: white;\nborder: 2px solid white;\ntext-shadow: 1px 1px 3px rgba(0,0,0,.4);\n}.paypalRedirect{\n display:none!important;\n }p.para.gr {\n color: #5d8202;\n font-family: robotobold;\n}"),document.querySelector(".yearly .boxTitle").innerText&&document.querySelector(".monthly .boxTitle").innerText&&(document.querySelector(".yearly .boxTitle").innerText="30 Day Trial - Annual Plan",document.querySelector(".monthly .boxTitle").innerText="30 Day Trial - Monthly Plan")};const i=()=>{try{e()}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+l)}},c=()=>{try{e(),a=document.querySelector(".then").innerText.match(/(.)(\d+\.\d+)|(\d+)/),r=(12*Number(a[2])).toFixed(2),i=document.querySelectorAll(".then")[1].innerText,document.querySelector(".price_container_row").insertAdjacentElement("beforeend",document.querySelectorAll(".col-md-6.col-12.m-x-0.p-x-0")[2].cloneNode(!0)),document.querySelector(".col-md-6.col-12.m-x-0.p-x-0").remove(),document.querySelector(".col-md-6.col-12.m-x-0.p-x-0 .boxTitle").innerText="30-Day FREE Trial",document.querySelectorAll(".col-md-6.col-12.m-x-0.p-x-0 .type").forEach((e=>e.remove())),document.querySelectorAll(".col-md-6.col-12.m-x-0.p-x-0 .boxTitle")[1].innerText="Pay Now - Annual",document.querySelectorAll(".col-md-6.col-12.m-x-0.p-x-0 .boxTitle")[2].innerText="Pay Now - Monthly",document.querySelector(".boxTitle").insertAdjacentHTML("beforebegin",'
    New to Twinkl? Start here.
    '),null===(n=document.querySelector(".then"))||void 0===n||n.remove(),null===(t=document.querySelector(".sevenDays"))||void 0===t||t.remove(),(0,o.se)(".payableAs{\n display:none!important;\n}.payMonthlyDiv .box .boxTitle.ultimate {\n border-bottom: 0!important;\n}.payMonthlyDiv .box .content {\n border-top: 0!important;\n}a.green.button.largeButton {\n width: 100%;\n margin-bottom: 25px;\n}.tickAndParaContainer {\n display: grid;\n grid-template-columns: 1fr 5fr;\n}p.para,p.membershipTitle {\n text-align: left;\n}.payMonthlyDiv h2 {\n margin-bottom: 40px!important;\n}.tickAndParaContainer {\n font-size: 14px;\n}.col-12.box.monthly {\n box-shadow: 1px 0px 13px 0 rgba(0,0,0,.2);\n}.panel_container .price_container_row {\n align-items: flex-start;\n}.payMonthlyDiv .box .content {\n background: white!important;\n}.payMonthlyDiv .box .boxTitle {\n background-color: white!important;\n}"),document.querySelectorAll(".trialPriceAmount")[1].innerHTML=`${a[0]}/month, ${a[1]}${r} billed annually`,document.querySelectorAll(".col-md-6.col-12.m-x-0.p-x-0").forEach(((e,n)=>{e.querySelector(".green.button").insertAdjacentHTML("afterend",`
    \n

    Benefits:

    \n
    \n ${0==n?'

    30 Day FREE Trial

    Cancel trial anytime.

    ':'

    30 Day FREE Trial

    '}\n ${2==n?'

    Cancel anytime.

    ':""}\n ${1==n?'

    Annual Discount.

    ':""}\n

    Unlimited Downloads Sitewide.

    \n

    Access to 1,000,000+ Twinkl Resources.

    \n

    24/7 Customer Support Team

    \n

    Further member benefits.

    \n ${0==n?`

    Your membership will activate after 30 days ${i}.

    We'll remind you 7 days before your trial end date.

    `:""}\n \n
    \n
    `)})),document.querySelector(".SeeOtherNewButton").href+="/yearly",document.querySelectorAll(".SeeOtherNewButton")[1].href+="/monthly"}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+l)}var n,t,a,r,i},l=o.aC.country.uk&&o.xl?"decoyTestingWithoutAnnualTrialRetest-UKDesktop":`decoyTestingWithoutAnnualTrialRetest-${n.user.country_id}-${o.xl?"desktop":"mobile"}`,d={n:l,tg:t,ttl:60,b:[{name:"original",weight:1,run:i},{name:"variant",weight:1,run:c}],g:{u:a,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(d),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},6289:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{var e,n,t;const a=window.dataLayer[0],r=[{regex:/^\/payment-history$/,options:o.aC.lang.en&&(o.aC.country.uk||/^226$|^12$|^37$|^154$/.test(a.user.country_id))&&a.user.loggedIn&&(null===(e=a.user)||void 0===e||null===(e=e.subscription)||void 0===e?void 0:e.offer_code)&&/99P-MONTHLY-ULTIMATE-OFFER-CODE-FREE/.test(null===(n=a.user)||void 0===n||null===(n=n.subscription)||void 0===n?void 0:n.offer_code)&&!(0,o.v8)("CancelPopUp5")&&!(null===(t=a.user)||void 0===t||null===(t=t.subscription)||void 0===t||!t.end_date)&&(()=>{const e=new Date(a.user.subscription.end_date),n=new Date(e.setDate(e.getDate()-7));return new Date{try{var e=document.querySelector('.current-membership a[href="/cancel-membership/options"]');e&&e.addEventListener("click",(e=>{if(!document.querySelector(".cancelPopUp")){e.preventDefault(),createCookie("CancelPopUp5",1,30),(0,o.se)(`\n .cancelPopUp {\n z-index: 100001;\nposition: ${o.xl?"absolute":"fixed"};\n display: flex;\n top: 50%;\n right: 50%;\n transform: translate(50%, -50%);\n width: 400px;\n flex-direction: column;\n align-items: center;\n padding: 1rem 2rem;\n border-radius: 1rem;\n background: #fff;\n .ctasCancelPopup {\n display: flex;\n justify-content: space-between;\n margin: 1rem 0;\n width: 100%;\n button {\n padding: .4rem 1rem;\n }\n .green-cta {\n background: #5d8200;\n color: #fff;\n }\n }\n \n }\n `),document.body.insertAdjacentHTML("beforeend",'
    \n

    Keep exploring!

    \n

    Get a friendly reminder email 7 days before your trial ends so you don\'t miss out on all the ultimate benefits!

    \n

    Please note: If you choose to cancel now, you will lose access immediately and will not be able to reactivate your trial.

    \n
    \n \n \n
    \n
    ');var n=document.querySelector(".cancelPopUp"),t=n.querySelector("p"),a=n.querySelector(".cancelAnyway"),r=document.getElementById("overlay"),i=n.querySelector(".sendEmail");r.style.display="block",r.addEventListener("click",(()=>{(0,o.se)(".cancelPopUp{display: none;}")})),a.addEventListener("click",(()=>{r.click(),window.location.href="/cancel-membership/options"})),i.addEventListener("click",(e=>{"green-cta"==e.target.className?r.click():(t.innerHTML='We\'ll send you a reminder 7 days before your payment is due.

    View your dashboard',i.classList.remove("sendEmail"),i.innerText="Close",(0,o.se)(".cancelAnyway {display: none;}"))}))}}),{once:!0})}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+d)}},d="paymentHistoryReminderPopup-v5-mobile",s={n:d,tg:r,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:l}],g:{u:i,e:c},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(s),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},1888:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const n=window.dataLayer[0],t=[{regex:/^\/premium-thanks/,options:n.user.loggedIn&&!!document.querySelector(".resource-suggestion")&&o.aC.country.uk&&o.aC.lang.en}],a=(0,o.DX)(["funnel","upgrades","products","cancel"]),r=(0,o.kQ)(["download"]);r.push({type:"click",name:"clickedResource",parentEl:".premium-thanks",childEl:".resource-image a"}),r.push({type:"click",name:"clickedResource",parentEl:".premium-thanks",childEl:"a.resourceA"}),r.push({type:"click",name:"clickedResource",parentEl:".premium-thanks",childEl:".resource-suggestion a"}),r.push({type:"click",name:"clickedImg",parentEl:"#actual_downloads",childEl:"a[data-download='no']"}),r.push({path:/^\/resource\//,type:"click",name:"downloadedTheirResource",parentEl:"#actual_downloads",childEl:"a[data-download='yes']",options:location.search.includes("clickedThroughRes=true")});var e=()=>{var e;null!==(e=document.querySelector(".resource-image a"))&&void 0!==e&&e.href&&(document.querySelector(".resource-image a").href+="?clickedThroughRes=true")};const i=()=>{try{var n,t,a,r,i,c,d;null===(n=document.querySelector(".premium-thanks img"))||void 0===n||n.remove(),null===(t=document.querySelector(".col-lg-5.p-t-2"))||void 0===t||t.remove(),null===(a=document.querySelector(".sub-heading+p"))||void 0===a||a.remove(),null===(r=document.querySelector(".sub-heading"))||void 0===r||r.remove(),document.querySelector(".col-lg-7.p-t-2").className="p-t-2",null===(i=document.querySelector(".welcome-label"))||void 0===i||i.insertAdjacentElement("afterend",null===(c=document.querySelector(".resource-suggestion"))||void 0===c?void 0:c.parentNode),(0,o.se)(".col-md-12 {\n padding: 0;\n margin-bottom: 3rem;\n margin-top: 1rem;\n padding-bottom: 45px;\n}span.thanks-heading {\n font-family: robotobold!important;\n}.resource-image>a {\n gap: 10px;\n display: flex;\n flex-direction: column;\n}.resource-label label:hover{\n cursor:pointer;\n}.resource-image:hover img {\n box-shadow: 2px 0 12px #2399f9;\n border-radius: 3px;\n}.premium-thanks .resource-suggestion .resource-image, .premium-thanks .resource-suggestion img.rimage{height: unset;}"),null===(d=document.querySelector(".resource-image a"))||void 0===d||d.insertAdjacentElement("beforeend",document.querySelector(".resource-label")),document.querySelector(".sub-two-heading").innerText="Download your resource",e()}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+l)}},c=()=>{try{var t,a;e(),document.querySelector(".premium-thanks").insertAdjacentHTML("afterbegin",`
    \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n

    Done! Thanks for joining the Twinkl community${n.user.first_name?`, ${n.user.first_name}.`:"."}

    \n

    Your ${null!==(t=n.user)&&void 0!==t&&null!==(t=t.subscription)&&void 0!==t&&t.offer_code&&/99P-MONTHLY-ULTIMATE-OFFER-CODE-FREE/.test(null===(a=n.user)||void 0===a||null===(a=a.subscription)||void 0===a?void 0:a.offer_code)?"30 day free trial":"subscription"} starts now. We can't wait to show you all the ways we can support you.

    \n
    \n

    Download your first resource

    \n\n
    \n
    `),(0,o.se)(".premiumThanksSection1, .premiumThanksSection2 {\n padding: 30px;\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n}.premiumThanksSection2 {\n background: #F1FAFF;\n}.premiumThanksSection1 h1 {\n font-family: 'robotobold';\n text-align: center;\n}.premiumThanksSection1 p {\n text-align: center;\n margin: 0;\n}.premiumThanksSection2 h2 {\n font-family: robotobold;\n text-align: center;\n}a.resourceA {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 1.5rem;\n}img.rimage {\n max-width: 370px;\n}button.dl {\n width: 250px;\n height: 43px;\n border-radius: 5px;\n background: #5D8200;\n}.resourceRight {\n display: flex;\n flex-direction: column;\n height: 100%;\n gap: 20px;\n}.row {\n display: flex;\n justify-content: center;\n}.row p{\n text-align:center;\n}.premiumThanksSection3 {\n height: 100px;\n width: 200px;\n content: '';\n color: white;\n}"),document.querySelector(".resourceA").href=document.querySelector(".resource-image a").href,document.querySelector(".resourceLeft").insertAdjacentElement("afterbegin",document.querySelector(".resource-image img")),document.querySelector(".resourceRight").insertAdjacentElement("afterbegin",document.querySelector(".resource-label")),document.querySelectorAll(".thanks-heading,.welcome-label,.sub-heading + p,.sub-heading,.col-lg-5.p-t-2,.sub-two-heading,.planners").forEach((e=>{e.remove()})),o.Fr&&(0,o.se)("\n a.resourceA {\n flex-direction: column!important;\ngap:0!important;\n }.resource-label {\n display: flex;\n flex-direction: column;\n align-items: center;\n}img.rimage {\n max-width: 100%!important;\n padding: unset!important;\n margin-bottom: 10px;\n}")}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant2-"+l)}},l="premiumThanksBC-"+(o.Fr?"mobile":"desktop"),d={n:l,tg:t,ttl:60,b:[{name:"original",weight:1,run:i},{name:"variant",weight:1,run:c}],g:{u:a,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(d),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},527:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0],n=window.document.querySelector("#resourceMl"),t=[{regex:/^\/resource\//,options:e.user.loggedIn&&!!e.sideBarTestDataUsed&&!!n}],a=[],r=[];r.push({type:"click",name:"clickedDownloadCTA",parentEl:'#download_link[data-download="no"]',childEl:"a"},{type:"click",name:"clickedDownload",parentEl:'#download_link[data-download="yes"]',childEl:"a"},{type:"click",name:"clickedML",parentEl:".what-are-members-downloading-now",childEl:"a"});const i=()=>{},c={n:"sideBarRecommendations20250115",tg:t,ttl:60,b:[{name:"original",weight:1,run:i},{name:"test_id_1",weight:1,run:i},{name:"test_id_2",weight:1,run:i},{name:"test_id_3",weight:1,run:i},{name:"test_id_4",weight:1,run:i}],g:{u:a,e:r},o:{bucket:-1,testing:!1,fnDataApi:"ga",encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(c),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},7142:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(2834),a=t(3528);const r=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/search$/,options:/^\/search$/.test(location.pathname)&&/^244$/.test(e.user.country_id)}],t=(0,o.DX)(["funnel","upgrades","products"]);t.push({name:"searchNoResults",regex:/^\/search$/,options:!!document.querySelector("#noResults")});const r=(0,o.kQ)(["download"]);r.push(...a.A);const i=()=>{var e;null===(e=document.querySelector("#filters"))||void 0===e||e.addEventListener("click",(e=>{try{var n=e.target.closest(".filter");if(n){var t,o=null==n||null===(t=n.closest(".area"))||void 0===t?void 0:t.querySelector(".title").innerText;o&&document.fn.events.emit("clickedFilters",o.replace(/\s/g,""))}}catch(e){}}))},c={n:"searchAutoFilterEngland",tg:n,ttl:60,b:[{name:"original",weight:1,run:i},{name:"srch_590_auto_filter_england",weight:1,run:i}],g:{u:t,e:r},o:{bucket:-1,population:100,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(c),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},5645:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(2834),a=t(3528);const r=()=>{try{window.dataLayer[0];const e=[{regex:/^\/search$/,options:!0}],n=[],t=(0,o.kQ)(["download"]);t.push(...a.A);const r=()=>{},i={n:"searchEngagementGrouping20241018",tg:e,ttl:60,b:[{name:"original",weight:1,run:r},{name:"variant",weight:1,run:r}],g:{u:n,e:t},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(i),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},4087:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(2834),a=t(3528);const r=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/search$/,options:/^\/search$/.test(location.pathname)&&/^226$/.test(e.user.country_id)}],t=(0,o.DX)(["funnel","products"]);t.push({name:"searchNoResults",regex:/^\/search$/,options:!!document.querySelector("#noResults")});const r=(0,o.kQ)(["download"]);r.push(...a.A);const i=()=>{var e;null===(e=document.querySelector("#filters"))||void 0===e||e.addEventListener("click",(e=>{try{var n=e.target.closest(".filter");if(n){var t,o=null==n||null===(t=n.closest(".area"))||void 0===t?void 0:t.querySelector(".title").innerText;o&&document.fn.events.emit("clickedFilters",o.replace(/\s/g,""))}}catch(e){}}))},c={n:"searchInternationalResultsModuleUS",tg:n,ttl:60,b:[{name:"original",weight:1,run:i},{name:"variant",weight:1,run:i}],g:{u:t,e:r},o:{bucket:-1,population:100,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(c),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},7862:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(2834),a=t(3528);const r=()=>{try{window.dataLayer[0];const e=[{regex:/^\/search$/,options:!0}],n=(0,o.DX)(["funnel","products"]);n.push({name:"searchNoResults",regex:/^\/search$/,options:!!document.querySelector("#noResults")});const t=(0,o.kQ)(["download"]);t.push(...a.A);const r=()=>{var e;null===(e=document.querySelector("#filters"))||void 0===e||e.addEventListener("click",(e=>{try{var n=e.target.closest(".filter");if(n){var t,o=null==n||null===(t=n.closest(".area"))||void 0===t?void 0:t.querySelector(".title").innerText;o&&document.fn.events.emit("clickedFilters",o.replace(/\s/g,""))}}catch(e){}}))},i={n:"searchPhraseMatch",tg:e,ttl:60,b:[{name:"original",weight:1,run:r},{name:"srch_821_phrase_match",weight:1,run:r}],g:{u:n,e:t},o:{bucket:-1,population:100,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(i),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},4072:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/resource\//,options:!!e.user.twinklid&&"free"==e.user.type&&e.user.loggedIn&&a.Fr&&document.querySelector('#actual_downloads #download_link[data-download="no"]')&&!!document.querySelector(".flag")&&a.aC.lang.en&&/^244$|^226$/.test(e.user.country_id)}],t=(0,a.DX)(["funnel","upgrades","products"]);t.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),t.push({name:"paymentTrial",regex:/^\/trial$|^\/free-trial-payment\/|^\/trial-free$/,options:!!document.querySelector(".payMonthlyDiv")}),t.push({name:"payment",regex:/^\/trial$|^\/free-trial-payment\/|^\/trial-free$/,options:!!document.querySelector(".payMonthlyDiv")}),t.push({name:"payFinalOffer",regex:/^\/a-payment\/monthly\//,options:!!document.querySelector(".freeTrial99Label")});const r=(0,a.kQ)(["download"]);r.push({type:"click",name:"clickedCTA",parentEl:"#actual_downloads",childEl:"a"});const i=()=>{},c=()=>{try{(0,a.se)(".flag span {\n font-size: 13px;\n }.flag{\n display: flex!important;\n flex-direction: column;\n font-size:23px!important;\n align-items: center;\n justify-content: center;\n padding-top: 8px!important;\n padding-bottom: 6px!important;\n }"),document.querySelector(".flag").innerHTML="30 day trialFREE!",fetch("/csrf/generate/free_trial_free").then((e=>e.text())).then((e=>{document.querySelectorAll("#actual_downloads a").forEach((n=>{n.href&&e&&(n.href=`/free-trial-payment/${e}/split/free`)}))}))}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+l)}},l="99trialMobileRetesttt"+(/^226/.test(e.user.country_id)?"US":"UK"),d={n:l,t:()=>s(n),ttl:60,b:[{name:"original",weight:1,run:i},{name:"variant",weight:1,run:c}],g:{u:t,e:r},o:{bucket:e.user.twinklid%2,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};function s(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function u(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var o;return s(n)||!!e&&e[null===(o=window.btoa(l))||void 0===o?void 0:o.replace(/=/g,"")]&&(s(t)||u(r))},codeToRun:()=>{s(n)?(0,a.Gc)((function(){o.A.init(d)})):(s(t)||u(r))&&(0,a.Hh)((function(){o.A.init(d)}))}}}catch(p){const m="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",p,window.location.pathname+"-"+m)}}},4167:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const n=window.dataLayer[0],t=[{regex:/^\/resource\//,options:!o.aC.member.schoolAccount&&!!document.querySelector("#average_rating")&&o.xl&&(/^US/.test(n.geo)&&"226"==n.user.country_id||o.aC.country.uk)&&o.aC.lang.en&&!!document.querySelector("#average_rating .starRating .starOn")}],a=(0,o.DX)(["funnel","upgrades","products"]);a.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const r=(0,o.kQ)(["download"]);var e=5;const i=()=>{},c=()=>{try{let i=document.querySelectorAll("#average_rating .starRating .starOn").length;document.querySelector("#actual_downloads a[data-download]").dataset.numStars=i,r=(e=>{const n=e,t=null===JSON||void 0===JSON?void 0:JSON.parse(n);let o=0,a=0;for(const e in t){const n=t[e];o+=e*n,a+=n}return(0===a?0:o/a).toFixed(1)})(null===(n=document.querySelector("review-summary"))||void 0===n?void 0:n.getAttribute("summary")),e=r,null===(t=document.querySelector(".return-resource-average-rating"))||void 0===t||t.insertAdjacentHTML("afterbegin",`

    ${r}

    `),(0,o.se)("#resource .ratings-link {\n margin-left: 0px!important;\n gap: 10px!important;\n display: flex;\n }body #resourceMain .starRating .starOff, body #resourceMain .starRating .starOn {\n width: 1.7rem!important;\n height: 1.7rem!important;\n }p.averageRatingPara {\n margin: 0;\n font-family: robotobold;\n }div#average_rating {\n gap: 10px;\n margin-bottom:0px!important;\n }img.chevronDown {\n width: 15%;\n }"),null===(a=document.querySelector(".reviewWrapper"))||void 0===a||a.insertAdjacentHTML("afterbegin",'
    '),(0,o.se)(".reviewWrapper{position:relative}#stReviews{position:absolute;top:-250px}"),document.querySelector(".ratings-link")&&(document.querySelector(".ratings-link").href="#stReviews"),(0,o.se)(" #star-ratingNew {\n display: flex;\n}\n.star {\n width: 30px;\n height: 30px;\n position: relative;\n}\n.popUpRatings .star {\n width: 20px;\n height: 20px;\n position: relative;\n}\n.star svg {\n width: 100%;\n height: 100%;\n}"),document.querySelector(".starRating").insertAdjacentHTML("afterend",'
    ');const c='',l='',s='';function u(e,n=5){for(let t=0;t{e.innerHTML=n{document.querySelector("#average_rating").addEventListener("mouseover",(n=>{n.preventDefault();const t=document.querySelector(".popUpAverageRating"),o=document.querySelector(".popUpRatings"),a=`

    ${e} out of 5

    `;t&&o&&e&&(t.innerHTML=a,document.querySelector(".seeAllReviewsLink").href="#stReviews")}),{once:!0})}))}catch(h){(0,o.BI)("ABError",h,window.location.pathname+"-variant-"+d)}var n,t,a,r},l=()=>{},d="jonnyTesting-averageStarRatingResourceRetest"+(o.aC.country.uk?"UK":"US"),s={n:d,tg:t,ttl:60,b:[{name:"original",weight:1,run:i},{name:"variant",weight:1,run:c},{name:"variant2",weight:1,run:l}],g:{u:a,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(s),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},7400:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a}),t(5133);var o=t(2834);const a=()=>{try{var e,n;const i=window.dataLayer[0];var t=!1;const c=[{regex:/^\/resource\//,options:i.user.loggedIn&&o.xl&&o.aC.country.uk&&/^1$|^11$|^12$|^25$|^136$|^159$|^161$/.test(null===(e=i.user)||void 0===e?void 0:e.language_id)&&/^23$|^11$|^481$|^28$/.test(null===(n=i.user)||void 0===n?void 0:n.career_id)&&(a=document.querySelector("#actual_downloads"),r=null==a?void 0:a.getAttribute("data-resource-id"),r&&(t=/^1$/.test(r%2)),t)}],l=(0,o.DX)(["funnel","upgrades","products"]);l.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const d=(0,o.kQ)(["download"]);d.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),d.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"}),d.push({type:"click",name:"clickedResourceInOverlay",parentEl:"#resource",childEl:".res-container"}),d.push({type:"click",name:"clickedSomethingOnOverlay",parentEl:"#resource",childEl:"#resources_overlay"}),d.push({type:"click",name:"clickedMLCoulumn",parentEl:"#resourceMl",childEl:".what-are-members-downloading-now a "}),d.push({type:"click",name:"clickedEducakeLink",parentEl:"#resource",childEl:".educake "});const s=()=>{try{var e,n=null===(e=[...document.querySelectorAll("#resources_overlay .res-container")])||void 0===e||null===(e=e.slice(-1))||void 0===e?void 0:e[0];n&&(n.innerHTML="\n Educake Logo\n ")}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+u)}},u="resourcePostDownloadEducakeNew",p={n:u,tg:c,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:s}],g:{u:l,e:d},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(p,(e=>document.fn.events.on("download",e))),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}var a,r}},6261:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(869),a=t(2834);const r=()=>{try{var e;const n=window.dataLayer[0],t=[{regex:/^\/resource\//,options:!n.user.twinklid&&!!document.querySelector("#average_rating")&&a.aC.lang.en&&"244"==n.user.country_id&&!(null===(e=n.resource)||void 0===e||!e.age_profile)}],r=(0,a.DX)(["funnel","products","cancel"]);r.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),r.push({name:"sign-up",type:"search",regex:/signed_up/,options:!0});const i=(0,a.kQ)(["download"]);i.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),i.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"}),i.push({type:"click",name:"clickedDownloadAfterDistribution",parentEl:"#actual_downloads",childEl:"a[data-download='yes'].openedDistribution"}),i.push({type:"click",name:"clickedLogInCTAAfterDistribution",parentEl:"#actual_downloads",childEl:"a[data-download='no'].openedDistribution"}),i.push({type:"click",name:"clickedStars",parentEl:"#resource",childEl:"#average_rating"}),i.push({type:"mouseover",name:"hoveredOverReviews",parentEl:"#resource",childEl:"#average_rating",mod:5}),i.push({type:"mouseover",name:"hoveredOverMostlyUsedWith",parentEl:"#resource",childEl:".mostUsedWithText",mod:5}),i.push({type:"click",name:"clickedMostlyUsedWith",parentEl:"#resource",childEl:".mostUsedWithText",mod:5}),i.push({type:"mouseover",name:"hoveredOverMostlyUsedWith-bottom",parentEl:"#resource",childEl:"#resourceDataParent .mostUsedWithText",mod:5}),i.push({type:"click",name:"clickedMostlyUsedWith-bottom",parentEl:"#resource",childEl:"#resourceDataParent .mostUsedWithText",mod:5}),i.push({type:"mouseover",name:"hoveredOverMostlyUsedWith-top",parentEl:".avg-rating-wrapper",childEl:".mostUsedWithText",mod:5}),i.push({type:"click",name:"clickedMostlyUsedWith-top",parentEl:".avg-rating-wrapper",childEl:".mostUsedWithText",mod:3}),i.push({type:"click",name:"clickedSeeAllReviewsLink",parentEl:"#resource",childEl:".seeAllReviewsLink"}),i.push({type:"click",name:"clickedRatingsLink",parentEl:"#resource",childEl:".ratings-link"}),document.querySelector("#download_link[data-download='yes']")?(i.push({type:"click",name:"clickedAltTags-paid",parentEl:"body",childEl:"#resData-altVersionsParent a, .alt-summary > span"}),i.push({type:"click",name:"clickedAlternativeVersions",parentEl:".altFilemanager",childEl:"a"})):i.push({type:"click",name:"clickedAltTags-notPaid",parentEl:"body",childEl:"#resData-altVersionsParent a, .alt-summary > span"}),i.push({type:"click",name:"clickedUSAStandardAtag",parentEl:"body",childEl:"#resData-usaStandardsParent a, #resData-usaStandardsMidParent a, .standardContainer a"}),i.push({type:"click",name:"clickedMLColumn",parentEl:"#mlResources",childEl:".what-are-members-downloading-now"});const c=()=>{},l=()=>{try{(0,o.A)()}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+d)}},d="resourceMostlyUsedBy-prospects-England"+(a.Fr?"-mobile":"-desktop"),s={n:d,tg:t,ttl:60,b:[{name:"original",weight:1,run:c},{name:"variant",weight:1,run:l}],g:{u:r,e:i},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,a.b3)(s),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",e,window.location.pathname+"-"+n)}}},2393:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{var e;const n=window.dataLayer[0],t=[{regex:/^\/resource\//,options:!o.aC.member.schoolAccount&&0==n.user.twinklid&&226==n.user.country_id&&/^US/.test(n.geo)&&"Free Download"==(null===(e=document.querySelector('#actual_downloads #download_link[data-download="no"]'))||void 0===e?void 0:e.innerText)}],a=(0,o.DX)(["funnel","upgrades","products"]);a.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),a.push({name:"sign-up",type:"search",regex:/signed_up/,options:!0});const r=(0,o.kQ)(["download"]);r.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),r.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"});const i=()=>{},c=()=>{try{const e=document.querySelector('#actual_downloads #download_link[data-download="no"]');if("Free Download"==e.innerText){const n=Object.assign(document.createElement("p"),{title:"No credit card required",id:"noCardReqEl",innerText:"✓ No credit card required"}),t=Object.assign(document.createElement("div"),{id:"noCardDiv"});t.appendChild(n),e.insertAdjacentElement("afterend",t),(0,o.se)("\n #noCardDiv {\n position: relative;\n z-index: -1;\n #noCardReqEl {\n text-align: center;\n margin-bottom: 0;\n transform: translateY(0.5em);\n position: relative;\n z-index: -1;\n }\n }\n ")}}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+l)}},l="noCreditCardRequiredResourceUSA"+(o.Fr?"-mobile":"-desktop"),d={n:l,tg:t,ttl:60,b:[{name:"original",weight:1,run:i},{name:"variant",weight:1,run:c}],g:{u:a,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(d),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},3072:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{const n=window.dataLayer[0];document.fn.events.on("ajaxComplete",(e=>{/submitComment\.php\?comment.*rating=5|submitComment\.php\?comment.*rating=4/.test(e.responseURL)&&document.fn.events.emit("refferalclicked")}));var e=document.querySelector("#share-twinkl-altruism");const t=[{regex:/^\/resource\//,options:!a.aC.member.schoolAccount&&!!e&&a.xl&&n.user.loggedIn&&"paid"==n.user.type&&document.querySelector("#share-twinkl-altruism")&&"www.twinkl.com"==window.location.hostname&&/^US_/.test(n.geo)&&/^226$/.test(n.user.country_id)&&/^1$|^11$|^12$|^25$/.test(n.user.language_id)}],r=(0,a.DX)(["funnel","upgrades","products"]);r.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const i=(0,a.kQ)(["download"]);i.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),i.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"}),i.push({type:"click",name:"clickedCTAinHeader",parentEl:"#header",childEl:"#share-twinkl-altruism"}),i.push({type:"click",name:"sentGift",parentEl:"body",childEl:"#share-twinkl-altruism-pop-container button.green"}),i.push({type:"click",name:"clickedNotNow",parentEl:"body",childEl:"#share-twinkl-altruism-pop-container .buttons button#notNow"}),i.push({type:"click",name:"clickedSendAnother",parentEl:"body",childEl:"#share-twinkl-altruism-pop-container .buttons button#sendAnotherGift"}),i.push({type:"click",name:"clickedCTAinOverlay",parentEl:"body",childEl:".reviewOverlay #share-twinkl-altruism "}),i.push({type:"click",name:"clickedContinueFromStarRating",parentEl:"body",childEl:".myConatiner .continue "}),i.push({type:"click",name:"clickedCloseStarRatingOverlay",parentEl:"body",childEl:".myConatiner .myClose "}),i.push({type:"click",name:"clickedMLSidebar",parentEl:"#resourceMl",childEl:".what-are-members-downloading-now "});const c=()=>{try{setTimeout((function(){var n=document.querySelector("#review-submitted .modal-contents");if(n){n.innerHTML='
    \n

    \n

    X
    \n Thanks for submitting your rating!

    \n
    \n

    Enjoyed this resource? Let a friend download it!

    \n

    Give 1 month of Twinkl Ultimate to someone who doesn\'t currently have a paid membership. It\'s absolutely free!

    \n
    \n
    \n
    \n \n \n
    \n
    ';var t=document.querySelector(".myConatiner .continue"),o=document.querySelector(".myClose");t&&o&&n.parentNode&&(o.addEventListener("click",(function(e){n.parentNode.classList.add("remove"),(0,a.se)("#overlay{display:none!important\n }")})),t.addEventListener("click",(function(n){e.click()})))}}),200),(0,a.se)("#tabbed_content {display:none!important}#tabContent3{display:none!important}#review-submitted.remove{display:none!important} .myThing{display:flex;justify-content:center}.myText{text-align:center!important}.myClose {position:absolute; top:10px; right:10px}.myClose:hover{cursor:pointer} .myConatiner{\n display: flex;\n flex-direction: column;\n align-content: center;\n align-items: center;\n }")}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+l)}},l="positiveReviewShowReferal",d={n:l,t:()=>s(t),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:c}],g:{u:r,e:i},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};function s(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function u(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return s(t)||!!e&&e[null===(n=window.btoa(l))||void 0===n?void 0:n.replace(/=/g,"")]&&(s(r)||u(i))},codeToRun:()=>{s(t)?document.fn.events.on("refferalclicked",(function(){o.A.init(d)})):(s(r)||u(i))&&(0,a.Hh)((function(){o.A.init(d)}))}}}catch(p){const m="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",p,window.location.pathname+"-"+m)}}},1202:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/resource\//,options:!e.user.loggedIn&&(o.aC.country.uk||/^12$/.test(e.user.country_id))&&0==e.user.twinklid&&document.querySelector('a[data-download="no"]')&&document.querySelector("#actual_downloads")&&!!document.querySelector("#download_link")&&document.querySelector('#download_link[href="/free-trial-landing"]')&&!document.querySelector('#download_link[href^="/go"]')&&o.aC.lang.en}],t=(0,o.DX)(["funnel","upgrades","products"]);t.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),t.push({name:"signedUp",type:"search",regex:/signed_up/,options:!0}),t.push({name:"landedOnLogin",regex:/login/,options:!0});const a=(0,o.kQ)(["download"]);a.push({type:"click",name:"clickedCTA",parentEl:"body",childEl:"a#download_link"}),a.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"}),a.push({type:"on",on:"pageViewDurationStart",name:"pageViewDuration",mod:1,bypass:!0});const r=`prospectResourceCtaCopyWithFreeTrial-${o.aC.country.uk?"UK":e.user.country_id}`,i={n:r,tg:n,ttl:60,b:[{name:"original",weight:1,run:()=>{try{o.aC.country.uk&&(document.querySelector("#download_link").innerHTML="Free trial
    Download
    ")}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-control-"+r)}}},{name:"variant1",weight:1,run:()=>{try{document.querySelector("#download_link").innerHTML="
    Free Download
    with FREE trial"}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant1-"+r)}}}],g:{u:t,e:a},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(i),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},3401:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/resource\//,options:/^\/resource\//.test(location.pathname)&&!!e.ai_advert_text&&e.user.loggedIn&&"free"==e.user.type&&/^1$|^11$|^136$^160$|^25$|^159$|^161$|^12$|^21$|^131$|^17$|^2$/.test(e.user.language_id)}],t=(0,o.DX)(["funnel","upgrades","products"]);t.push({name:"viewedreport-writer",regex:/^\/report-writer$/,options:!0}),t.push({name:"viewedai-image-generator",regex:/^\/ai-image-generator$/,options:!0}),t.push({name:"viewedai-reading-comprehension-text-generator",regex:/^\/ai-reading-comprehension-text-generator$/,options:!0}),t.push({name:"viewedai-quiz-generator",regex:/^\/ai-quiz-generator$/,options:!0}),t.push({name:"viewedai-lesson-planner-tool",regex:/^\/ai-lesson-planner-tool$/,options:!0}),t.push({name:"viewedai-word-search-generator",regex:/^\/ai-word-search-generator$/,options:!0}),t.push({name:"viewedai-talk-to-a-historical-figure",regex:/^\/ai-talk-to-a-historical-figure$/,options:!0}),t.push({name:"viewedai-cloze-passage-generator",regex:/^\/ai-cloze-passage-generator$/,options:!0}),t.push({name:"viewedai-acrostic-poem-generator",regex:/^\/ai-acrostic-poem-generator$/,options:!0}),t.push({name:"viewedai-crossword-generator",regex:/^\/ai-crossword-generator$/,options:!0}),t.push({name:"viewedai-matching-activity-generator",regex:/^\/ai-matching-activity-generator$/,options:!0}),t.push({name:"viewedai-vocabulary-sheet-generator",regex:/^\/ai-vocabulary-sheet-generator$/,options:!0}),t.push({name:"viewedai-discussion-generator",regex:/^\/ai-discussion-generator$/,options:!0}),t.push({name:"viewedai-play-script-generator",regex:/^\/ai-play-script-generator$/,options:!0}),t.push({name:"viewedai-adventure-story-generator",regex:/^\/ai-adventure-story-generator$/,options:!0}),t.push({name:"viewedai-sentence-scrambler-generator",regex:/^\/ai-sentence-scrambler-generator$/,options:!0}),t.push({name:"viewedai-ppt-quiz-generator",regex:/^\/ai-ppt-quiz-generator$/,options:!0});const a=(0,o.kQ)(["download"]);a.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),a.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"}),a.push({type:"click",name:"clickedMoreDownloads",parentEl:"#download_selector_wrapper",childEl:"a.altFilemanager"}),a.push({type:"click",name:"clickedML",parentEl:"#resourceMl",childEl:".what-are-members-downloading-now"}),a.push({type:"click",name:"clickedSimilarSearches",parentEl:".similarSearches",childEl:"a.similar"}),a.push({type:"click",name:"clickedAiLink",parentEl:"#actual_downloads",childEl:"a.aiLink"}),t.push({name:"sign-up",type:"search",regex:/signed_up/,options:!0});const r=()=>{},i=()=>{try{if(e.ai_advert_text){const{url:n,text:t}=e.ai_advert_text;document.querySelector("#actual_downloads>li").insertAdjacentHTML("afterend",`\n
  • ${t}
  • \n `),(0,o.se)(".stickyR .aiLink{display: none;}")}}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+c)}},c=`resourceAiCta-${/^1$|^11$|^136$^160$|^25$|^159$|^161$|^12$/.test(e.user.language_id)?"en":e.user.language_id}`,l={n:c,tg:n,ttl:60,b:[{name:"original",weight:1,run:r},{name:"variant",weight:1,run:i}],g:{u:t,e:a},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(l),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},7776:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const n=window.dataLayer[0];var e=document.querySelector('#download_link[data-meta-dl-free][data-download="yes"]');const t=[{regex:/^\/resource\//,options:n.user.loggedIn&&"free"==n.user.type&&!!e&&"Download Now"==e.innerText&&o.aC.lang.en&&o.aC.country.is("226")}],a=(0,o.DX)(["funnel","products"]),r=(0,o.kQ)(["download"]);r.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"});const i=()=>{try{e.innerText="Free Download"}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+c)}},c="resourceCTAFreeCopy-US",l={n:c,tg:t,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:i}],g:{u:a,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(l),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},5220:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/resource\//,options:o.xl&&/^244$/.test(e.user.country_id)&&!e.user.loggedIn&&0==e.user.twinklid&&document.querySelector("#tabbed_content")}],t=(0,o.DX)(["funnel","upgrades","products"]);t.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),t.push({name:"signedUp",type:"search",regex:/signed_up/,options:!0});const a=(0,o.kQ)(["download"]);a.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),a.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"}),a.push({type:"click",name:"clickedCurriculumLink",parentEl:"#tabbed_content",childEl:"a"}),a.push({type:"click",name:"clickedStarReviews",parentEl:"#tabbedContent",childEl:".starRating"}),a.push({type:"click",name:"clickedMlColumn",parentEl:"#mlResources",childEl:".what-are-members-downloading-now "}),a.push({type:"click",name:"clickedBreadcrumb",parentEl:"#breadcrumb",childEl:"a"}),a.push({type:"click",name:"clickedSecondBreadcrumb",parentEl:"#breadcrumbSimple",childEl:"a"});const r=()=>{try{var e;null===(e=document.querySelector("#tabbed_content"))||void 0===e||e.remove()}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+i)}},i="resourceCurriculumTabbedContent",c={n:i,tg:n,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:r}],g:{u:t,e:a},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(c),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},8673:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0];let n=0;const t=[{regex:/^\/resource\//,options:!(!o.xl||!o.aC.country.uk||o.aC.member.schoolAccount||!e.resource_preview||!document.querySelector("#resource_image")||!document.querySelector(".smallPreviewJpegContainer"))}];t[0].options&&document.fn.events.on("last",(()=>{document.fn.events.emit("pageViewDurationStart")}));const a=(0,o.DX)(["funnel","upgrades","products"]);a.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const r=(0,o.kQ)(["download"]);r.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),r.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"}),r.push({type:"on",on:"pageViewDurationStart",name:"pageViewDuration",mod:1,bypass:!0}),r.push({type:"on",on:"hoveredThumb",name:"hoveredBoxAny",mod:20}),r.push({type:"on",on:"hoveredThumb0",name:"hoveredBox1",mod:20}),r.push({type:"on",on:"hoveredThumb1",name:"hoveredBox2",mod:20}),r.push({type:"on",on:"hoveredThumb2",name:"hoveredBox3",mod:20}),r.push({type:"on",on:"mouseEntPrev",name:"mouseEnterPreviewAny",mod:20}),r.push({type:"on",on:"mouseEntPage",name:"mouseEnterPreviewPage",mod:20}),r.push({type:"on",on:"toggleOff",name:"clickedBoxAny",mod:10});const i=()=>{try{var t,a,r;const i=e.resource_preview,l=Object.values(i),d=document.querySelector("#resource_image"),s=document.querySelector(".smallPreviewJpegContainer"),u=null===(t=document.querySelector("meta[name='twinkl-image']"))||void 0===t?void 0:t.content,p=null===(a=document.querySelector(".smlResJpeg.pointerFix"))||void 0===a||null===(a=a.dataset)||void 0===a?void 0:a.src,m=null===(r=document.querySelector(".smlResJpeg.pointerFix"))||void 0===r?void 0:r.src,h=[{full:p||m,thumb:u},...l],g=(document.querySelector(".jpegPreviewHoverParent"),document.querySelector("img.smlResJpeg.pointerFix")),y='\n \n \n ';if(l.length>0){function w(){const e=`\n
    \n
    \n ${y}\n
    \n
    \n \n `;d.insertAdjacentHTML("afterend",e)}w();const v=document.getElementById("resPrevCont");function f(e){e.forEach(((e,n)=>{const t=`\n
    \n
    \n `;v.insertAdjacentHTML("beforeend",t)}))}f(h);const b=document.querySelector(".resPrev-preview-box"),x=document.querySelectorAll(".resPrev-preview-box");function k(e,n){x.forEach((e=>{e.classList.remove("activeHoverSignal")})),"add"==n?e.classList.add("activeHoverSignal"):"remove"==n&&e.classList.remove("activeHoverSignal")}const E={attributes:!0,attributeFilter:["src"]};function S(e){g.src=h[e].full}function A(){var e;null===(e=document.querySelectorAll(".resPrev-preview-box"))||void 0===e||e.forEach((e=>{e.addEventListener("mouseenter",(()=>{const t=e.getAttribute("data-index");n=parseInt(t,10),S(n),k(s,"add"),k(e,"add"),document.fn.events.emit("hoveredThumb"),document.fn.events.emit(`hoveredThumb${n}`)})),e.addEventListener("click",(n=>{k(s,"remove"),k(e,"remove"),S(0),document.fn.events.emit("toggleOff")}))}))}function C(){k(x[0],"add")}function T(){b&&b.addEventListener("mouseenter",(e=>{const n=dataLayer[0].resource_preview,t=Object.values(n);t.forEach(((e,n)=>{let o=new Image,a=t[n].full;o.src=`${a}`}))}),{once:!0})}new MutationObserver(((e,t)=>{for(const o of e)"attributes"===o.type&&"src"===o.attributeName&&g.src!=h[n].full&&(t.disconnect(),g.src=h[n].full)})).observe(g,E),A(),C(),T(),s&&s.addEventListener("mouseenter",(e=>{document.fn.events.emit("mouseEntPrev"),n>0&&document.fn.events.emit("mouseEntPage")})),(0,o.se)('\n /* REFORMATING HOVER TO ZOOM */\n #resource .jpegPreviewHoverParent .previewJpeg {\n display: block;\n }\n #resource .jpegPreviewHoverParent .smallPreviewJpegContainer { \n aspect-ratio: 2 / 1;\n }\n #resource .jpegPreviewHoverParent {\n .previewJpeg {\n border-radius: 7px;\n }\n .smallPreviewJpegContainer {\n transform: none;\n filter: opacity(0);\n }\n }\n label.pInfoLabel {\n display: none;\n }\n \n .thumbnailContainer {\n display: flex;\n width: 100%;\n .zoomIconParent {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 3rem;\n height: 4rem;\n margin-top: 1em;\n margin-right: 1em;\n svg.hovSymbolIcon {\n width: 3rem;\n }\n }\n }\n \n .resPrev-preview-box {\n margin-top: 1em;\n margin-right: 1em;\n width: 4em;\n height: 4em;\n background-size: cover;\n background-position: top;\n border: 1px solid #ddd;\n cursor: pointer;\n border-radius: 7px;\n transition: all ease 300ms;\n }\n .resPrev-preview-box.activeHoverSignal:after {\n content: "";\n border: solid #434343 2px;\n width: 100%;\n display: flow;\n height: 100%;\n border-radius: 7px;\n filter: opacity(0);\n }\n .resPrev-preview-box:hover:after, .resPrev-preview-box.activeHoverSignal:after {\n filter: opacity(1);\n transition: border ease 100ms;\n }\n #resource .jpegPreviewHoverParent .smallPreviewJpegContainer.activeHoverSignal {\n z-index: 11;\n width: 100%;\n -webkit-filter: opacity(1);\n filter: opacity(1);\n }\n ')}}catch(B){(0,o.BI)("ABError",B,window.location.pathname+"-variant-"+c)}},c="resourcePreviewInnerPagesModal-v2-UK",l={n:c,tg:t,ttl:60,b:[{name:"original",weight:1,run:()=>{const e=document.querySelector(".smallPreviewJpegContainer");e&&e.addEventListener("mouseenter",(e=>{document.fn.events.emit("mouseEntPrev"),n>0&&document.fn.events.emit("mouseEntPage")}))}},{name:"variant",weight:1,run:i}],g:{u:a,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(l),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},9979:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{window.dataLayer[0];const e=[{regex:/^\/resource\//,options:!!document.querySelector(".ratings-link")&&o.aC.lang.en&&o.aC.country.uk&&o.xl}],n=(0,o.DX)(["funnel"]);n.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const t=(0,o.kQ)(["download"]);t.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"},{type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"},{type:"click",name:"clickedRatingsLink",parentEl:"#resourceMain .avg-rating-wrapper .ratings-link",childEl:"a"},{type:"click",name:"clickedSeeReviewsLink",parentEl:".avg-rating-wrapper",childEl:"a.seeAllReviewsLink"});const a=()=>{try{let e=document.querySelector(".ratings-link");e.innerHTML=e.innerHTML.replace("reviews","ratings")}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+r)}},r="resourceRatings-v2",i={n:r,tg:e,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:a}],g:{u:n,e:t},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(i),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},1441:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{window.dataLayer[0];var e=document.querySelector("#resource_image .sticker.sticker-aus.sticker-no-hover");const n=[{regex:/^\/resource\//,options:!!e&&a.aC.country.uk&&a.aC.lang.en}],t=(0,a.DX)(["funnel"]),r=(0,a.kQ)(["download"]);r.push({type:"click",name:"clickedResourceCTA",parentEl:"body",childEl:"#actual_downloads a"}),r.push({type:"click",name:"clickedMlResource",parentEl:"#mlResources",childEl:".what-are-members-downloading-now a"});const i=()=>{try{e.remove()}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+c)}},c="resourceRemoveAusBannerMain",l={n:c,t:()=>d(n),ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:i}],g:{u:t,e:r},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};function d(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function s(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var o;return d(n)||!!e&&e[null===(o=window.btoa(c))||void 0===o?void 0:o.replace(/=/g,"")]&&(d(t)||s(r))},codeToRun:()=>{d(n)?(0,a.Gc)((function(){o.A.init(l)})):(d(t)||s(r))&&(0,a.Hh)((function(){o.A.init(l)}))}}}catch(u){const p="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",u,window.location.pathname+"-"+p)}}},9695:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const i=window.dataLayer[0];var e,n=!1,t=!1,a=!1,r=!1;o.aC.lang.en&&o.aC.country.uk&&o.xl&&/^\/resource\//.test(location.pathname)&&(t=document.querySelector(".descriptionWrap"),a=document.querySelector(".resourceDescription "),n=null===(e=a)||void 0===e?void 0:e.querySelector(".resourceDescriptionContent"),r=document.querySelector(".descriptionWrap .showMoreDesLink"),Array.from(document.querySelectorAll(".comment.has-rating")));const c=[{regex:/^\/resource\//,options:o.aC.lang.en&&o.aC.country.uk&&o.xl&&i.user.loggedIn&&t&&a&&n&&r}],l=(0,o.DX)(["funnel","upgrades","products"]);l.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const d=(0,o.kQ)(["download"]);d.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),d.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"}),d.push({type:"click",name:"clickedInfiniteScrollResource",parentEl:"body",childEl:".more-resources-for-you>a"}),d.push({type:"click",name:"clickedMLColumn",parentEl:"#mlResources",childEl:".what-are-members-downloading-now>a"}),d.push({type:"click",name:"clickedShowMoreDescription",parentEl:".showMoreDes",childEl:".showMoreDesLink"}),d.push({type:"click",name:"clickedShowMoreReviews",parentEl:"body",childEl:"#loadMoreButton"}),d.push({type:"click",name:"clickedStarReviews",parentEl:"#tabbedContent",childEl:".starOff "});const s=()=>{try{var e;r&&n&&a&&t&&(t.insertAdjacentElement("afterbegin",a),null===(e=r)||void 0===e||e.addEventListener("click",(function(e){n.classList.add("myShow"),a.classList.add("myShow"),(0,o.se)("#resource .shortDescription,.showMoreDes{display:none}")})),(0,o.se)(".resourceDescription.myShow{background:#f9f9f9!important} .resourceDescriptionContent{display:none}.resourceDescriptionContent.myShow{display:block}.resourceDescription{display:none}.resourceDescription.myShow{display:block!important} "))}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-original-"+p)}},u=()=>{try{t.insertAdjacentElement("beforebegin",a),(0,o.se)("\n .descriptionWrap{display:none}\n ")}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant1-"+p)}},p="resourceShowFullDescription",m={n:p,tg:c,ttl:60,b:[{name:"original",weight:1,run:s},{name:"variant",weight:1,run:u}],g:{u:l,e:d},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(m),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},1851:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/resource\//,options:o.xl&&document.querySelector(".averageRatingPara")&&o.aC.lang.en&&(/^US/.test(e.geo)&&"226"==e.user.country_id||o.aC.country.uk)}],t=(0,o.DX)(["funnel","upgrades","products"]);t.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),t.push({name:"signed-up",type:"search",regex:/signed_up/,options:!0});const a=(0,o.kQ)(["download"]),r=()=>{},i=()=>{try{var e,n,t,a,r;(0,o.se)("\n.review-system {\n margin: 0 auto;\n border-radius: 8px;\n padding: 20px;\n position: relative;\n display: flex;\n flex-direction: row;\n gap: 3rem;\n z-index:0;\n}.rating-summary {\n display: flex;\n align-items: center;\n margin-bottom: 20px;\n}.overall-rating {\n font-size: 36px;\n font-weight: bold;\n margin: 0;\n}.rating-summary p{\n margin:0;\n}.star-rating {\n display: inline-block;\n}.review-count {\n margin-left: auto;\n color: #666;\n}.filter-buttons {\n margin-bottom: 20px;\n}.filter-btn {\n background-color: white;\n border: 1px solid #80808024;\n padding: 8px 16px;\n margin-right: 8px;\n border-radius: 8px;\n cursor: pointer;\n color: #000000b8;\n box-shadow: 0 0px 1px 0 rgba(0,0,0,.2);\n}.filter-btn.active {\n background-color: #4a90e2;\n color: white;\n}.review-list {\n list-style-type: none;\n padding: 0;\n}.review-list .comment {\n background-color: #f9f9f9;\n border-radius: 8px;\n padding: 15px;\n margin-bottom: 15px;\n}.comment-meta {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 10px;\n}.comment-author {\n font-weight: bold;\n}.member-since {\n font-size: 0.8em;\n color: #666;\n}.starRating {\n display: flex;\n}.commentDate {\n font-size: 0.8em;\n color: #666;\n}.commentLike {\n background-color: #4a90e2;\n color: white;\n border: none;\n padding: 5px 10px;\n border-radius: 4px;\n cursor: pointer;\n}.commentThankYou {\n display: none;\n color: green;\n margin-top: 5px;\n}li.comment .comment-meta .comment-author .icon-profile {\n position: relative!important;\n left:0px;\n top:0px;\n margin-right:10px;\n}.ratingsRight {\n width: 100%;\n}.rating-summary {\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-bottom: 20px;\n border: 1px solid #80808024;\n box-shadow: 0 0px 1px 0 rgba(0,0,0,.2);\n border-radius: 10px;\n padding: 25px 10px;\n height: fit-content;\n min-width:320px;\n}.topPart {\n display: flex;\n flex-direction: column;\n align-content: center;\n align-items: center;\n justify-content: center;\n gap: 10px;\n}.comment .starRating svg {\n width: 24px;\n height: 24px;\n}button.filter-btn svg {\n width: 20px;\n height: 20px;\n}.filter-buttons {\n display: flex;\n}.filter-btn {\n background-color: white;\n border: 1px solid #80808024;\n padding: 8px 16px;\n margin-right: 8px;\n border-radius: 8px;\n cursor: pointer;\n color: #000000b8;\n box-shadow: 0 0px 1px 0 rgba(0,0,0,.2);\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 7px;\n}body .comment.showMe:nth-of-type(n+2) {\n display: block!important;\n}.load-more-btn {\n display: block;\n margin: 20px auto;\n background-color: #4a90e2;\n color: white;\n border: none;\n padding: 10px 20px;\n border-radius: 4px;\n cursor: pointer;\n font-size: 16px;\n transition: background-color 0.3s ease;\n}.load-more-btn:hover {\n background-color: #3a7bc8;\n}span.comment-author svg {\n width: 25px;\n height: 25px;\n margin-right: 10px;\n}.comment-author span.member-since {\n color: black!important;\n font-size: 14px!important;\n display: flex;\n align-items: center;\n}.comment-author span {\n font-size: 1.2rem!important;\n}.comment-author span.member-since {\n color: black!important;\n font-size: 11px!important;\n display: flex;\n align-items: center;\n color: #26819e!important;\n align-content: center;\n gap: 4px;\n}.member-since svg {\n width: 20px!important;\n height: 20px!important;\n margin-right: 0!important;\n fill: #26819e;\n}.commentDate {\n position: absolute;\n top: 20px;\n right: 20px;\n}div#resource {\n border-bottom: 2px solid #80808021;\n margin-bottom: 40px;\n padding-bottom: 40px;\n}h2.reviewsHeading {\n width: 100%;\n text-align: center;\n font-size: 2rem;\n}.recentRatings {\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n margin-top: 20px;\n border-top: 1px solid #8080801a;\n}.recentRating {\n display: flex;\n justify-content: space-between;\n width: 100%;\n padding: 5px 15px;\n}.recentRatings p.title {\n margin: 25px 0;\n}.recentRating p {\n font-size: 13px;\n color: grey;\n}.review-system .ratingWrapper {\n border-top: 1px solid #8080801a;\n border-radius: 0;\n padding-top: 25px;\n margin-top: 25px;\n}p.foundHelpful {\n color: grey;\n}.search-container {\n margin-bottom: 20px;\n}#reviewSearch {\n width: 100%;\n padding: 10px;\n border: 1px solid #80808024;\n box-shadow: 0 0px 1px 0 rgba(0,0,0,.2);\n border-radius: 8px;\n font-size: 16px;\n}.star {\n width: 30px;\n height: 30px;\n position: relative;\n}#star-ratingNew {\n display: flex;\n}.star svg {\n width: 100%;\n height: 100%;\n}@media only screen and (max-width: 990px){\n .review-system {\n flex-direction: column;\n align-items: center;\n}.rating-summary{\n max-width:330px;\n}\n }"),document.querySelector("#resource").insertAdjacentHTML("afterend",`

    Reviews

    \n
    \n

    ${document.querySelector(".averageRatingPara").innerText}

    ${null!==(e=document.querySelector("#star-ratingNew"))&&void 0!==e&&e.outerHTML?document.querySelector("#star-ratingNew").outerHTML:`
    ${'
    '.repeat(5)}
    `}

    ${document.querySelector(".ratings-link").innerText}

    \n
    \n ${document.querySelector(".ratingWrapper")?null===(n=document.querySelector(".ratingWrapper"))||void 0===n?void 0:n.outerHTML:""}\n
    \n
    \n
    \n \n
    \n
    \n \n \n \n \n \n \n
    \n
      \n
    \n
    \n
    `);var i=e=>{let n=0;n+=1e7*e.rating,e.content&&""!==e.content.trim()&&(n+=1e6),n+=1e3*e.helpfulCount;const t=new Date(e.date),o=(new Date-t)/864e5;return n+=Math.max(0,100-o),n};const c=document.querySelector(".review-list"),m=document.querySelectorAll(".filter-btn");var l=document.fn.reviews;const h=Array.from(l).map((e=>{var n,t,o,a,r,i,c,l;const d=null===(n=e.dataset)||void 0===n?void 0:n.commentId,s=null===(t=e.querySelector(".comment-author span:nth-child(2)"))||void 0===t?void 0:t.textContent,u=null===(o=e.querySelector(".member-since"))||void 0===o?void 0:o.textContent,p=null!=u&&u.match(/\d{4}/)[0]?'':"",m=parseInt(null===(a=e.querySelector(".starRating"))||void 0===a||null===(a=a.dataset)||void 0===a?void 0:a.ratingNumber),h=null===(r=e.querySelector(".commentDate"))||void 0===r||null===(r=r.textContent)||void 0===r?void 0:r.replace("Reviewed on ",""),g=null!==(i=e.querySelector('p[dir="auto"]'))&&void 0!==i&&i.textContent?null===(c=e.querySelector('p[dir="auto"]'))||void 0===c?void 0:c.textContent:"";var y=null===(l=e.querySelector(".commentHelpful"))||void 0===l||null===(l=l.innerText)||void 0===l?void 0:l.split(" ")[0];return{id:d,author:s,memberSince:p,rating:m,date:h,content:g,helpfulCount:y?"One"==y?1:y:0}}));var d=(e,n)=>{const t=``,o=``;let a='
    ';for(let n=1;n<=5;n++)a+=n<=e?t:o;return a+"
    "};document.querySelector(".rating-summary").insertAdjacentHTML("beforeend",'

    Most recent ratings

    '),h.forEach(((e,n)=>{n<5&&document.querySelector(".recentRatings").insertAdjacentHTML("beforeend",`

    ${e.author}

    ${d(e.rating,"20px")}
    `)}));let g="";const y=document.getElementById("reviewSearch");y.addEventListener("input",(function(){g=this.value.toLowerCase(),f="featured",v=0,u(h)}));var s=e=>!g||e.content.toLowerCase().includes(g);const w=5;let v=0,f="featured";var u=(e=h,n=!1)=>{let t=e.filter(s);t=t.sort(((e,n)=>i(n)-i(e)));const o=n?v:0,a=o+w,r=t.slice(o,a);n||(c.innerHTML=""),r.forEach((e=>{c.appendChild((e=>{const n=document.createElement("li");return n.className="comment has-rating clearfix active showMe",n.dataset.commentId=e.id,n.id=`comment-${e.id}`,n.innerHTML=`\n \n
    \n \n \n ${e.author}\n ${e.memberSince} Verified \n \n
    \n ${d(e.rating,"30px")}\n
    \n
    ${e.date}
    \n
    \n\n ${e.content?`

    ${e.content}

    `:""}\n ${e.content?`
    \n \n
    ✔ Thank you for your feedback
    \n
    `:""}\n ${e.helpfulCount?`

    ${e.helpfulCount?e.helpfulCount>1?e.helpfulCount+" users found this helpful":"One user found this helpful":""}

    `:""}\n
    \n Comment | \n Report\n
    \n `,n})(e))})),v=a,p(t.length)},p=e=>{let n=document.querySelector("#loadMoreButton");n||(n=document.createElement("button"),n.id="loadMoreButton",n.className="load-more-btn",n.textContent="Load More",document.querySelector(".ratingsRight").appendChild(n),n.addEventListener("click",(()=>{const e="featured"===f?h:h.filter((e=>e.rating===parseInt(f)));u(e,!0)}))),n.style.display=v>=e?"none":"block"};m.forEach((e=>{e.addEventListener("click",(function(){const e=this.dataset.filter;if(m.forEach((e=>e.classList.remove("active"))),this.classList.add("active"),f=e,v=0,y.value="",g="","featured"===e)u(h);else{const n=h.filter((n=>n.rating===parseInt(e)));u(n)}}))})),u(),c.addEventListener("click",(e=>{if(e.target.classList.contains("commentLike")){const n=e.target.dataset.commentId,t=document.getElementById(`commentThankYou-${n}`);e.target.style.display="none",t.style.display="block"}})),document.querySelector(".review-system").insertAdjacentElement("afterbegin",document.querySelector("#stReviews")),null===(t=document.querySelector(".loadMore.myLoad"))||void 0===t||t.remove(),null===(a=document.querySelector("ul#comment"))||void 0===a||a.remove(),null===(r=document.querySelector("#tabbedContent .reviewWrapper"))||void 0===r||r.remove()}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+c)}},c="reviewResourceRedesign-"+(o.aC.country.uk?"UK":"US"),l={n:c,tg:n,ttl:60,b:[{name:"original",weight:1,run:r},{name:"variant",weight:1,run:i}],g:{u:t,e:a},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(l),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},8630:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{window.dataLayer[0];const e=[{regex:/^\/resource\//,options:/^\/resource\//.test(location.pathname)&&o.xl&&o.aC.lang.en&&!!document.querySelector('#download_link[data-download="yes"]')}],n=(0,o.DX)(["funnel"]),t=[];t.push({type:"click",name:"thumbsUp",parentEl:"#resourceMain",childEl:"#feedback_link_yes"}),t.push({type:"click",name:"thumbsDown",parentEl:"#resourceMain",childEl:"#feedback_link_no"});const a=()=>{},r={n:"searchFeedback",tg:e,ttl:60,b:[{name:"original",weight:1,run:a},{name:"variant",weight:1,run:a}],g:{u:n,e:t},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(r,(e=>document.fn.events.on("download",e))),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},287:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(2834),a=t(8633);const r=()=>{try{var e,n;const t=window.dataLayer[0],r="topDownResourceUsRedesignReset",i=[{regex:/^\/resource\//,options:!o.aC.member.schoolAccount&&(!t.user.twinklid||!(null===(e=JSON.parse(localStorage.getItem("_x")))||void 0===e||!e[btoa(r).replace(/=/g,"")]))&&"paid"!=t.user.type&&/^US/.test(t.geo)&&226==t.user.country_id&&window.innerWidth>=1100&&o.xl}],c=(0,o.DX)(["funnel","upgrades","products"]);c.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),c.push({name:"sign-up",type:"search",regex:/signed_up/,options:!0}),c.push({name:"searched",regex:/\/search/,options:!0});const l=(0,o.kQ)(["download"]);l.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),l.push({type:"click",name:"clickedLogInCTA",parentEl:"#actual_downloads",childEl:"a[data-download='no']"}),c.push({name:"signInBeforeUp",type:"search",regex:/sign_in/,options:!(null!==(n=JSON.parse(localStorage.getItem("_x")))&&void 0!==n&&null!==(n=n[btoa(r).replace(/=/g,"")])&&void 0!==n&&null!==(n=n.g)&&void 0!==n&&n.c2lnbmVkLXVw)}),l.push({type:"mouseover",name:"hoveredOverRatings",parentEl:"body",childEl:".reviewLink",mod:5}),l.push({type:"mouseover",name:"hoveredOverMostlyUsedWith",parentEl:"#resource",childEl:".mostUsedWithText",mod:5}),l.push({type:"click",name:"clickedStickyNavTab",parentEl:"body",childEl:"a.quickLink",mod:5}),l.push({type:"click",name:"clickedStickyNavTab-Description",parentEl:"body",childEl:"a.quickLink.desc"}),l.push({type:"click",name:"clickedStickyNavTab-RelatedResources",parentEl:"body",childEl:"a.quickLink.rel"}),l.push({type:"click",name:"clickedStickyNavTab-Reviews",parentEl:"body",childEl:"a.quickLink.reviews"}),l.push({type:"click",name:"clickedStickyNavTab-More",parentEl:"body",childEl:"a.quickLink.moree"}),l.push({type:"click",name:"clicksOnMlResources",parentEl:"#mlResources",childEl:".what-are-members-downloading-now a"}),l.push({type:"click",name:"interactedWithReviews",parentEl:"body",childEl:".review-system button"}),l.push({type:"click",name:"clickedInfiniteResources",parentEl:"#more-resources-for-you",childEl:".more-resources-for-you a"}),l.push({type:"click",name:"clickedBreadcrumb",parentEl:"#breadcrumbSimple",childEl:"a"}),l.push({type:"click",name:"clickedBreadcrumb",parentEl:"#breadcrumb",childEl:"a"}),l.push({type:"click",name:"clickedShowMoreDescription",parentEl:"#resource",childEl:"a.showMoreDesLink"}),l.push({type:"click",name:"clickedSaveForLater",parentEl:"body",childEl:".ctaContainer .saveResource"}),l.push({type:"click",name:"clickedFreeTrialHeaderButtonPurple",parentEl:"#header",childEl:".ultimateCTAContainer"}),l.push({type:"click",name:"clickedMembershipHeaderButton",parentEl:"#header",childEl:"#premiumMiniMenu a"}),l.push({type:"click",name:"clickedMM",parentEl:"#header",childEl:".menuTab a"}),l.push({type:"click",name:"clickedSaveForLater",parentEl:"body",childEl:".favButtonContainer .saveForLater"}),l.push({type:"click",name:"clickedSuggestResource",parentEl:"#resource",childEl:".suggestResource"}),l.push({type:"click",name:"clickedMainGreenCta",parentEl:"body",childEl:"a#download_link"}),l.push({type:"click",name:"clickedMainGreenCtaStickyOnly",parentEl:".stickyRContainer",childEl:"a#download_link"}),l.push({type:"click",name:"clickedMainGreenCta",parentEl:"body",childEl:".buyNowButton"}),l.push({type:"click",name:"clickedMainGreenCta-Downloadable",parentEl:"body",childEl:"a#download_link[data-download='yes']"}),l.push({type:"click",name:"clickedMainGreenCta-Downloadable",parentEl:"body",childEl:'.buyNowButton[href*="/download/"]'}),l.push({type:"click",name:"Download",parentEl:"body",childEl:'.buyNowButton[href*="/download/"]'}),l.push({type:"click",name:"clickedMainGreenCta-NOTDownloadable",parentEl:"body",childEl:'a#download_link[data-download="no"]'}),l.push({type:"click",name:"clickedMainGreenCta-NOTDownloadable",parentEl:"body",childEl:'.buyNowButton[href*="/free-trial-landing"],.buyNowButton[href*="/sign-up"],.buyNowButton[href*="/sign-in"] '});const d={n:r,tg:i,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:()=>{try{var e,n,i,c,l,d,s;t.user.twinklid||(0,a.A)(!0);var u=document.querySelector("#download_link").href;(0,o.se)(".tpRightHandSide{\n grid-area:tpRightHandSide;\n}#resource {\n grid-template-columns: 1fr 250px!important;\n}#resource {\n grid-template-areas: \"title title\"\n \"main tpRightHandSide\"\n \"tabs tpRightHandSide\"\n \"ml tpRightHandSide\";\n}#resource {\n gap: 0 4rem!important;\n}#resource #resourceMl .mlRecBubblesContainer {\n width: 552px!important;\n}section.tpRightHandSide {\n display: grid;\n margin-top: 109px;\n grid-template-columns: 1fr 1fr;\n gap: 2rem;\n}.tpCta {\n min-width: 250px!important;\n}.ctaContainer {\n background: #fff;\n border: 1px solid rgba(50, 53, 62, .11);\n border-radius: 4px;\n padding: 32px;\n display: flex;\n flex-direction: column;\n gap: 10px;\n}p.moreInfoHeading {\n color: #9a9a9a;\n margin-bottom: 10px;\n font-size:0.8rem;\n}p.moreinfoInfo {\n margin: 0;\n margin-bottom: 30px;\n line-height: 1.6rem;\n text-transform: capitalize;\n}.priceRight {\n font-size: 1.8rem;\n font-family: 'robotobold';\n text-align: center;\n margin-bottom: 20px;\n}.buyNowButton {\n width: 100%;\n background-color: #5d8200;\n color: white!important;\n padding: 10px;\n border-radius: 50px;\n text-align: center;\n cursor: pointer;\n text-decoration: none;\n}.buySchoolLicense,.saveResource {\n width: 100%;\n padding: 10px;\n border-radius: 50px;\n text-align: center;\n cursor: pointer;\n border: 1px solid rgba(50, 53, 62, .11);\n}#fav_wrapper{\n display:none;\n}#resource {\n gap: 0 2rem!important;\n}#tabbed_content li {\n font-size: 0.9rem!important;\n}#resourceMain #mostlyUsedWithContainer, .resourceDataParentFlex,.proudly-human-created-icon{\n display:none;\n}.moreinfo .dataChips {\n background-color: #f5f5f5;\n border-radius: 24px;\n cursor: pointer;\n display: inline-flex;\n margin-bottom: 4px;\n margin-right: 4px;\n overflow: hidden;\n color: #32353e!important;\n padding: 8px;\n font-size: 0.8rem;\n}#mostlyUsedWithContainer{\n padding-left:0px!important;\n margin-bottom: 30px;\n}p.moreinfoInfo.formats {\n text-transform: uppercase;\n}h1.resourcePageTitle {\n margin-top: 5px;\n font-family: 'robotobold';\n font-size: 2rem;\n}section#titleSection {\n grid-area: title;\n}div#resource {\n margin-top: 50px;\n}.previewAndInfo {\n display: flex;\n gap: 30px;\n padding-bottom: 60px;\n border-bottom: 1px solid #d6d6d6;\n margin-top: 35px;\n}.moreinfo div#mostlyUsedWithContainer {\n display: block!important;\n}.stickyRContainer.stickyG {\n display: none!important;\n}div#resData-altVersionsParent,div#resData-usaStandardsMidParent {\n margin-bottom: 30px;\n}.ctaContainer {\n position: sticky;\n top: calc(0px + 50px + 2rem);\n}body #resource #tabbedContent .resourceDescription h2.quickLinkHeader,body #resource h2.quickLinkHeader.relatedResources {\n font-size: 2rem!important;\n font-family: 'robotoregular';\n}.relatedResources {\n padding-bottom: 50px;\n padding-top: 50px;\n margin-top: 50px;\n}#resource #resourceMl .mlRecBubblesContainer {\n width: 850px!important;\n}.stickNavQuickLinks {\n display: flex;\n justify-content: space-between;\n height: 63px;\n align-content: flex-start;\n align-items: flex-end;\n border-bottom: 1px solid #d6d6d6;\n margin: 50px 0;\n}.quickLink {\n font-size: 1.1rem;\n border-bottom: 4px solid #2299f900;\n padding-bottom: 10px;\n width: 100%;\n text-align: center;\n cursor:pointer;\n}.quickLink:hover {\n border-bottom: 4px solid #2299f9;\n}span.greyedNumb {\n color: #73767e;\n font-size: 0.9rem;\n position: absolute;\n top: 18px;\n padding-left: 6px;\n}.stickNavQuickLinks {\n display: flex;\n justify-content: space-between;\n height: 70px;\n align-content: flex-start;\n align-items: flex-end;\n border-bottom: 1px solid #d6d6d6;\n margin: 50px 0;\n position: sticky;\n top: 0px;\n z-index: 11111;\n background: #fffffff7;\n}div#sticky-header {\n position: relative!important;\n}.review-system {\n flex-direction: column!important;\n}.rating-summary {\n width: 50%;\n}.review-system {\n padding: 0!important;\n width:100%;\n gap:0!important;\n}div#resource {\n border-bottom: none!important;\n}h2.quickLinkHeader.reviewsss {\n margin: 50px 0;\n font-size: 2rem !important;\n font-family: 'robotoregular';\n}a.quickLink {\n color: black!important;\n text-decoration: none!important;\n font-family: robotoregular!important;\n}h2#descriptionQuicklink {\n padding-top: 50px;\n padding-bottom: 50px;\n}.tpCta {\n min-width: 300px!important;\n}.ctaContainer {\n align-items: center;\n border-radius:10px!important;\n gap:15px!important;\n}.rrpprice {\n text-decoration: line-through;\n color: grey;\n}.priceRight {\n margin-bottom:0px!important;\n}.specialOffer {\n font-size: 0.9rem;\n text-align: center;\n}.offerLasts {\n font-size: 0.9rem;\n color: grey;\n}section.tpRightHandSide {\n display: grid;\n margin-top: 0px!important;\n grid-template-columns: 1fr 1fr;\n gap: 2rem;\n}.cd-panel--from-right{\n display:none!important;\n}.priceRight span {\n background: #d93c1e;\n color: white;\n font-size: 0.8rem;\n padding: 3px;\n border-radius: 3px;\n}.priceRight {\n font-size: 2.3rem;\n display: flex;\n align-items: center;\n gap: 10px;\n}.ctaContainer {\n box-shadow: 0 2px 6px 0 rgba(0,0,0,.2);\n}.rrpprice {\n color: #d93c1e;\n}.specialOffer {\n color: #5d8200;\n}.tpCta{\n margin-top:64px;\n}a.quickLink.active {\n border-bottom: 4px solid #2299f9;\n}a.quickLink.moree {\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 10px;\n}.moree img {\n width: 42px;\n border-radius: 50%;\n}.moreFromInner {\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: flex-start;\n color: #9d9d9d;\n font-size: 0.8rem;\n}.moreFromInner span {\n color: black;\n font-size: 1rem;\n}a.suggestResource.button {\n display: none!important;\n}ul#actual_downloads {\n display: none;\n}#resource #resource_image {\n max-width: 630px!important;\n}h2#descriptionQuicklink {\n padding-top: 100px;\n}h2#relatedResourcesQuicklink {\n padding-top: 100px;\n}h2#reviewsQuicklink {\n padding-top: 100px;\n}#more-resources-for-you .box-header.text-black-default.text-align-center.border-top-line {\n margin: 50px 0;\n font-size: 2rem !important;\n font-family: 'robotoregular';\n font-weight: 100;\n padding-top: 50px;\n padding-bottom: 0px!important;\n}");var p=()=>{var e=new Set([]);const n=new Set(["art","classroom management","common core","english language arts","florida standards","health education","holidays & events","math","maths","music","next gen science","pe","science","social emotional health","social studies","steam","technology","texas essential knowledge","reading","phonics","english"]);return document.querySelectorAll("#resource_breadcrumbs a").forEach((t=>{n.has(t.innerText.toLowerCase())&&!e.has(t.innerText.toLowerCase())&&e.add(t.innerText.toLowerCase())})),e};document.querySelector("#resourceMain").insertAdjacentHTML("afterend",`\n
    \n
    \n
    \n

    GRADE LEVELS

    \n ${document.querySelector("#mostlyUsedWithContainer")?document.querySelector("#mostlyUsedWithContainer").outerHTML:"N/A"}\n
    \n${p().size>0?`\n
    \n

    SUBJECTS

    \n

    ${[...p()].join(", ")}

    \n
    \n`:""}\n ${document.querySelector("#resData-formatText")?`\n
    \n

    FORMATS INCLUDED

    \n

    ${null===(e=document.querySelector("#resData-formatText"))||void 0===e?void 0:e.innerText}

    \n
    `:""}\n ${document.querySelector("#resData-altVersionsParent")?`
    \n

    ALTERNATIVE VERSIONS

    \n ${document.querySelector("#resData-altVersionsParent").outerHTML}\n
    `:""}\n ${document.querySelector("#resData-usaStandardsHeader")?`
    \n

    ALIGNED STANDARDS

    \n ${document.querySelector("#resData-usaStandardsParent").outerHTML}\n ${document.querySelector("#resData-usaStandardsMidParent").outerHTML}\n
    `:""} \n
    \n
    \n
    \n${document.querySelector('#download_link[data-download="no"]')?"Free Download"==document.querySelector("#download_link div").innerText?`
    FREE
    \n Log in to Download\n\n`:`
    RRP: $6.00
    \n
    $0.00 Special Sale
    \n
    Save $6.00 per resource!
    \n
    Limited time offer
    \n Get Resource\n`:`
    FREE
    \n Download Now`}\n
    Save for later
    \n\n
    \n
    \n
    `),document.querySelector("#resource").insertAdjacentHTML("afterbegin",'
    '),document.querySelector("#titleSection").insertAdjacentElement("afterbegin",document.querySelector(".resourcePageTitle")),document.querySelector("#resource_image").insertAdjacentHTML("beforebegin",'
    '),document.querySelector(".previewAndInfo").insertAdjacentElement("afterbegin",document.querySelector("#resource_image")),document.querySelector("#resource_image").insertAdjacentElement("afterend",document.querySelector(".moreinfo")),null===(n=document.querySelector(".resourceDescription"))||void 0===n||n.insertAdjacentHTML("afterbegin",''),document.querySelector("#resourceMl").insertAdjacentHTML("afterbegin",'');var m,h=document.querySelector(".resourcePageTitle").innerText;document.querySelector("#tabbed_content").insertAdjacentHTML("beforebegin",`\n\n\n`),document.querySelectorAll(".stickNavQuickLinks a").forEach((e=>{e.addEventListener("click",(function(e){(e=>{const n=document.querySelector(e);if(!n)return;const t=n.getBoundingClientRect().top+window.scrollY,o=window.scrollY,a=t-o;let r=null;requestAnimationFrame((function e(n){null===r&&(r=n);const t=n-r,i=(c=t,l=o,d=a,(c/=200)<1?d/2*c*c+l:-d/2*(--c*(c-2)-1)+l);var c,l,d;window.scrollTo(0,i),t<400&&requestAnimationFrame(e)}))})(this.getAttribute("data-destination"))}))})),document.querySelector("#tabbedContent").insertAdjacentElement("beforeend",document.querySelector("#resourceMl")),document.querySelector(".review-system")&&(document.querySelector("#tabbedContent").insertAdjacentElement("beforeend",document.querySelector(".review-system")),null===(m=document.querySelector(".reviewsHeading"))||void 0===m||m.remove(),document.querySelector(".review-system").insertAdjacentHTML("afterbegin",''));const r=document.querySelector(".stickNavQuickLinks"),v=document.querySelectorAll(".resourceDescription,#resourceMl,.review-system");null===(i=document.querySelector(".resourceDescription"))||void 0===i||i.setAttribute("data-id",0),null===(c=document.querySelector("#resourceMl"))||void 0===c||c.setAttribute("data-id",1),null===(l=document.querySelector(".review-system"))||void 0===l||l.setAttribute("data-id",2);var g,y=new IntersectionObserver((e=>{e.forEach((e=>{const n=e.target.getAttribute("data-id"),t=r.querySelector(`[data-id="${n}"]`);e.isIntersecting&&(r.querySelectorAll("[data-id]").forEach((e=>{e.classList.remove("active")})),t&&t.classList.add("active"))}))}),{rootMargin:"-20% 0px -80% 0px",threshold:0});v.forEach((e=>{y.observe(e)})),document.querySelector(".stickNavQuickLinks").insertAdjacentElement("afterend",document.querySelector(".resourceDescription")),null===(d=document.querySelector("#breadcrumb"))||void 0===d||d.remove(),null===(s=document.querySelector("#breadcrumbSimple"))||void 0===s||s.remove(),t.user.twinklid&&t.user.loggedIn&&!document.querySelector('#download_link[data-download="no"]')||null===(g=document.querySelector("#tabbed_content"))||void 0===g||g.remove()}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+r)}var w}}],g:{u:c,e:l},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(d),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},5933:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const e=window.dataLayer[0],n=[{regex:/^\/search/,options:!o.aC.member.schoolAccount&&e.user.loggedIn&&"free"==e.user.type&&document.querySelector(".resultContainer")&&o.xl&&(/^US/.test(e.geo)&&"226"==e.user.country_id||o.aC.country.uk)&&o.aC.lang.en}],t=(0,o.DX)(["funnel","upgrades","products"]);t.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0});const a=(0,o.kQ)(["download"]);a.push({type:"click",name:"clickedDownload",parentEl:"#actual_downloads",childEl:"a[data-download='yes']"}),a.push({type:"mouseover",name:"hoveredOverRatings",parentEl:"body",childEl:".reviewLink",mod:5}),a.push({type:"click",name:"clickedResult",parentEl:".left",childEl:".resultContainer a"}),a.push({type:"click",name:"clicked5Star",parentEl:".left",childEl:".resultContainer:not(.searchSuggestionsBlock):not(.linked-container):not(.hasStarOff) a"}),a.push({type:"click",name:"clickedFirst8",parentEl:".left",childEl:".resultContainer:not(.searchSuggestionsBlock):not(.linked-container):nth-of-type(-n+10) a"}),a.push({type:"click",name:"clickedResult",parentEl:".left",childEl:".resultContainer a"});for(let e=50;e>=10;e--){const n=(e/10).toFixed(1);a.push({type:"click",name:`clickedResultWithAverage-${n}`,parentEl:".left",childEl:`.resultContainer a[data-average-review='${n}']`})}const r=()=>{},i=()=>{try{document.querySelectorAll(".resultContainer").forEach((e=>{var n;let t=(e=>{var n;if(null!=e&&null!==(n=e.dataset)&&void 0!==n&&n.rating){var t;const n=JSON.parse(null==e||null===(t=e.dataset)||void 0===t?void 0:t.rating);let o=0,a=0;for(let e in n)o+=e*n[e],a+=n[e];return a?(o/a).toFixed(1):""}})(e);t&&(null!==(n=e.querySelector(".reviewLink"))&&void 0!==n&&n.insertAdjacentHTML("afterbegin",`

    ${t}

    `),e.querySelector("a").dataset.averageReview=t)}))}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+c)}},c="averageReviewsSearch-"+(o.aC.country.uk?"uk":"us"),l={n:c,tg:n,ttl:60,b:[{name:"original",weight:1,run:r},{name:"variant",weight:1,run:i}],g:{u:t,e:a},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(l),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},4514:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{window.dataLayer[0];const e=[{regex:/^\/search$/,options:!!document.querySelector("#search_box.searchNotFound")&&o.aC.country.uk&&o.aC.lang.en}],n=(0,o.DX)(["funnel"]);n.push({name:"searchPage",regex:/^\/search$/}),n.push({name:"createPage",regex:/^\/create$/});const t=(0,o.kQ)(["download"]);t.push({type:"click",name:"clickedCreate",parentEl:"#search_container",childEl:".create-box a"});const a={n:"searchEmptyAA",tg:e,ttl:60,b:[{name:"original",weight:1,run:()=>{}},{name:"variant",weight:1,run:()=>{}}],g:{u:n,e:t},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};return{shouldRun:(0,o.b3)(a),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},6544:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{window.dataLayer[0];var e=!1,n=function(e,n){e.forEach((e=>{var t;null===(t=e.closest(".resultContainer"))||void 0===t||null===(t=t.classList)||void 0===t||t.add("hasAusBanner"),n&&e.remove()}))},t=document.querySelectorAll(".sticker.sticker-aus.sticker-no-hover");/^\/search/.test(window.location.pathname)&&a.xl&&a.aC.country.uk&&a.aC.lang.en&&t&&t.length>0?document.fn.events.emit("bannerOnPageAus"):/^\/search/.test(window.location.pathname)&&a.xl&&a.aC.country.uk&&a.aC.lang.en&&t&&0==t.length&&document.fn.events.on("loadedContent",(function(){(t=document.querySelectorAll(".sticker.sticker-aus.sticker-no-hover"))&&t.length>0&&document.fn.events.emit("bannerOnPageAus")}));const r=[{regex:/^\/search/,options:a.xl&&a.aC.country.uk&&a.aC.lang.en}],i=(0,a.DX)(["funnel"]),c=(0,a.kQ)(["download"]);c.push({type:"click",name:"clickedAnyResource",parentEl:".left",childEl:".resultContainer > a"}),c.push({type:"click",name:"clickedResourceWithBanner",parentEl:".left",childEl:".resultContainer.hasAusBanner > a"});const l=()=>{try{n(t,e),document.fn.events.on("loadedContent",(function(){(t=document.querySelectorAll(".sticker.sticker-aus.sticker-no-hover"))&&t.length>0&&n(t,e)}))}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-original-"+s)}},d=()=>{try{n(t,e=!0),document.fn.events.on("loadedContent",(function(){(t=document.querySelectorAll(".sticker.sticker-aus.sticker-no-hover"))&&t.length>0&&n(t,e)}))}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+s)}},s="searchRemoveAusBanner",u={n:s,t:()=>p(r),ttl:60,b:[{name:"original",weight:1,run:l},{name:"variant",weight:1,run:d}],g:{u:i,e:c},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:0}};function p(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function m(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return p(r)||!!e&&e[null===(n=window.btoa(s))||void 0===n?void 0:n.replace(/=/g,"")]&&(p(i)||m(c))},codeToRun:()=>{var e,n;p(r)?localStorage._x&&null!==(e=JSON.parse(null===(n=localStorage)||void 0===n?void 0:n._x))&&void 0!==e&&e[window.btoa(s).replace(/=/g,"")]?o.A.init(u):document.fn.events.on("bannerOnPageAus",(()=>o.A.init(u))):(p(i)||m(c))&&(0,a.Hh)((function(){o.A.init(u)}))}}}catch(h){const g="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",h,window.location.pathname+"-"+g)}}},493:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>a});var o=t(2834);const a=()=>{try{const r=window.dataLayer[0],i=[{regex:/^\/login$|^\/sign-up$/,options:!r.user.loggedIn&&document.querySelector(".overlayContainerinner")&&0==r.user.twinklid&&o.aC.lang.en&&244==r.user.country_id}],c=(0,o.DX)(["funnel","upgrades","products"]);c.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),c.push({name:"signed-up",type:"search",regex:/signed_up/,options:!0});const l=(0,o.kQ)(["download"]);var e=["EYFS","KS1","KS2","Adults","KS3","KS4","KS5","Other"],n=["1111","3637","3749","3638","3634","8098","3633","8963","3639","3640"],t=["8839","9036","8093","3635","3634","8918","3631","8097","9031","3640"],a=["3625","3626","3627","8097","3628","3628","3629","3640"];["Teacher in a school","SEN Teacher","Private Tutor","Teaching Assistant","Senior Leadership","Supply Teacher","EAL","ECT","Trainee","Not listed"].forEach(((e,t)=>{l.push({type:"click",name:`Clicked_${e.replace(/\s+/g,"")}`,parentEl:".signUp.overlayOcc",childEl:`.occItem[data-value='${n[t]}']`})})),e.forEach(((e,n)=>{l.push({type:"click",name:`Clicked_${e.replace(/\s+/g,"")}`,parentEl:".signUp.overlayOcc",childEl:`.occItem[data-value='${a[n]}']`})})),["Speech and Language Therapist","Occupational therapist","Librarian","Home Educator","Senior Leadership","Nannies / Au pairs","Childminder","Adult educator","Early Years Apprentice","Not Listed"].forEach(((e,n)=>{l.push({type:"click",name:`Clicked_${e.replace(/\s+/g,"")}`,parentEl:".signUp.overlayOcc",childEl:`.occItem[data-value='${t[n]}']`})})),e.forEach(((e,n)=>{l.push({type:"click",name:`Clicked_Ages_${e.replace(/\s+/g,"")}`,parentEl:"body",childEl:`.secondTeacherChoice .choiceBoxSecond[value='${a[n]}']`})})),l.push({type:"click",name:"clickedTeacherInSchool",parentEl:"body",childEl:".teacherOptions .choiceBoxSecond[value='1111']"}),l.push({type:"click",name:"ClickedParent",parentEl:".signUp.overlayOcc",childEl:".occItem[data-value='3636']"}),l.push({type:"click",name:"clickedTeacherFirstchoice",parentEl:"body",childEl:".teacherParentContainer .choiceBox.teacher"}),l.push({type:"click",name:"clickedParentFirstChoice",parentEl:"body",childEl:".teacherParentContainer .choiceBox.parent"}),l.push({type:"click",name:"clickedSomethingElseFirstChoice",parentEl:"body",childEl:".teacherParentContainer .choiceBox.other"}),l.push({type:"click",name:"clickedAddAnotherChild",parentEl:"body",childEl:".parentOptions .addAnother"}),l.push({type:"click",name:"clickedContinueParent",parentEl:"body",childEl:".parentOptions .parentContinue"}),l.push({type:"click",name:"clickedSkipParent",parentEl:"body",childEl:".parentOptions .parentSkip"}),l.push({type:"click",name:"clickedBackParent",parentEl:"body",childEl:".getStartedContainer.expandParent .backButtonSignUp"}),l.push({type:"click",name:"clickedBack",parentEl:"body",childEl:".getStartedContainer .backButtonSignUp"}),l.push({type:"click",name:"clickedFirstChoice",parentEl:"body",childEl:".teacherParentContainer .choiceBox"}),l.push({type:"click",name:"clickedTeacherSecondChoice",parentEl:"body",childEl:".teacherOptions .choiceBoxSecond"}),l.push({type:"click",name:"clickedTeacherThirdChoice",parentEl:"body",childEl:".teacherOptions.secondTeacherChoice .choiceBoxSecond"}),l.push({type:"click",name:"clickedParentSecondChoice",parentEl:"body",childEl:".parentOptions .parentContinue"}),l.push({type:"click",name:"clickedParentSecondChoice",parentEl:"body",childEl:".parentOptions .parentSkip"}),l.push({type:"click",name:"clickedSomethingElseSecondChoice",parentEl:"body",childEl:".otherOptions .choiceBoxSecondOther"}),l.push({type:"click",name:"clickedBack",parentEl:"body",childEl:".getStartedContainer .backButtonSignUp"});const d=()=>{},s=()=>{try{var e,n=["Teacher in a school","SEN Teacher","Private Tutor","Teaching Assistant","Senior Leadership","Supply Teacher","EAL","ECT","Trainee","Not listed"],t=["EYFS","KS1","KS2","Adults","KS3","KS4","KS5","Other"],a=["Speech and Language Therapist","Occupational therapist","Librarian","Home Educator","Senior Leadership","Nannies / Au pairs","Childminder","Adult educator","Early Years Apprentice","Not Listed"],r=["1111","3637","3749","3638","3634","8098","3633","8963","3639","3640"],i=["3625","3626","3627","8097","3628","3628","3629","3640"],c=["8839","9036","8093","3635","3634","8918","3631","8097","9031","3640"];(0,o.se)("#front_panel_search .front_panel_container {\n display: block;\n display: flex;\n flex-direction:column;\n align-items: center;\n}#front_panel_search {\n margin-bottom: 0;\n height: 615px;\n}.getStartedContainer {\n margin-top: 50px;\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-bottom: 33px;\n width: 730px;\n height:370px;\n padding: 20px;\n border-radius: 14px;\n position: relative;\n transition: all 0.8s;\n padding-bottom:2rem;\n}body p.areYou {\n margin-top: 40px;\n margin-bottom: 20px;\n font-size: 1.8rem!important;\n color: #00000082;\n}.getStartedContainer p {\n color: #2399f9;\n font-size: 1.2rem!important;\n margin: 0px;\n}.teacherParentContainer {\n display: flex;\n width: 100%;\n justify-content: center;\n margin-bottom: 30px;\n}.choiceBox {\n border: 2px solid #2399f9;\n width: 168px;\n height: 168px;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n margin: 15px;\n border-radius: 20px;\n cursor: pointer;\n background: #ffffff;\n box-shadow: 3px 3px 5px rgb(0 0 0 / 10%);\n visibility:visible;\n opacity:1;\n}.choiceBoxSecond {\n border: 2px solid #2399f9;\n width: 130px;\n height: 130px;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n margin: 15px;\n border-radius: 20px;\n cursor: pointer;\n background: #ffffff;\n box-shadow: 3px 3px 5px rgb(0 0 0 / 10%);\n visibility: visible;\n opacity:0;\n animation-name: fadeIn;\n animation-duration:2s;\n animation-fill-mode: forwards;\n padding: 10px;\n}.choiceBoxSecondParents {\n border: 2px solid #2399f9;\n width: 150px;\n height: 150px;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n margin: 15px;\n border-radius: 20px;\n cursor: pointer;\n background: #ffffff;\n box-shadow: 3px 3px 5px rgb(0 0 0 / 10%);\n padding: 10px;\n opacity:0;\n animation-name: fadeIn;\n animation-duration:2s;\n animation-fill-mode: forwards;\n position:relative;\n}.choiceBoxSecondOther {\n border: 2px solid #2399f9;\n width: 125px;\n height: 125px;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n margin: 15px;\n border-radius: 20px;\n cursor: pointer;\n background: #ffffff;\n box-shadow: 3px 3px 5px rgb(0 0 0 / 10%);\n padding: 10px;\n opacity:0;\n animation-name: fadeIn;\n animation-duration:2s;\n animation-fill-mode: forwards;\n position:relative;\n}.choiceBoxSecondParents:nth-child(2){\n animation-delay:0.04s;\n}\n.choiceBoxSecondParents:nth-child(3){\n animation-delay:0.08s;\n}\n.choiceBoxSecondParents:nth-child(4){\n animation-delay:0.12s;\n}\n.choiceBoxSecondParents:nth-child(5){\n animation-delay:0.16s;\n}\n.choiceBoxSecondParents:nth-child(6){\n animation-delay:0.2s;\n}\n.choiceBoxSecond:nth-child(2){\n animation-delay:0.02s;\n}\n.choiceBoxSecond:nth-child(3){\n animation-delay:0.04s;\n}\n.choiceBoxSecond:nth-child(4){\n animation-delay:0.06s;\n}\n.choiceBoxSecond:nth-child(5){\n animation-delay:0.08s;\n}\n.choiceBoxSecond:nth-child(6){\n animation-delay:0.1s;\n}\n.choiceBoxSecond:nth-child(7){\n animation-delay:0.12s;\n}.choiceBoxSecond:nth-child(2){\n animation-delay:0.14s;\n}\n.choiceBoxSecond:nth-child(8){\n animation-delay:0.16s;\n}\n.choiceBoxSecond:nth-child(9){\n animation-delay:0.18s;\n}\n.choiceBoxSecond:nth-child(10){\n animation-delay:0.2s;\n}\n.choiceBoxSecond:nth-child(11){\n animation-delay:0.22s;\n}\n.choiceBoxSecond:nth-child(12){\n animation-delay:0.24s;\n}.choiceBoxSecond:nth-child(13){\n animation-delay:0.26s;\n}\n.choiceBoxSecond:nth-child(14){\n animation-delay:0.28s;\n}\n.choiceBoxSecond:nth-child(15){\n animation-delay:0.3s;\n}\n.choiceBoxSecond:nth-child(16){\n animation-delay:0.32s;\n}\n.choiceBoxSecond:nth-child(17){\n animation-delay:0.34s;\n}\n.choiceBoxSecond:nth-child(18){\n animation-delay:0.36s;\n}.choiceBoxSecond:nth-child(19){\n animation-delay:0.38s;\n}\n@keyframes fadeIn{\n 0%{\n opacity:0;\n }100%{\n opacity:1;\n }\n}@keyframes fadeOut{\n 0%{\n opacity:1;\n visibility:visibile;\n display:block;\n }100%{\n opacity:0;\n visibility:hidden;\n display:none;\n }\n}.teacherOptions.fadeOut{\n animation-name:fadeOut;\n animation-duration:1s;\n animation-fill-mode:forwards;\n }.choiceBoxSecond:hover{\n background-color: #e2f2ff;\n}.choiceBoxSecondParents:hover{\n background-color: #e2f2ff;\n}.choiceBoxSecondOther:hover{\n background-color: #e2f2ff;\n}.choiceBoxSecond p {\n font-size: 1.3rem;\n}.teacherParentContainer svg {\n fill: #2399f9;\n transform: scale(1.3);\n margin-bottom: 10px;\n}a.alreadyHaveAnAccount {\n background-color: #d91878;\n color: white;\n padding: 10px 20px;\n border-radius: 7px;\n font-family: 'robotobold';\n font-size: 16px;\n box-shadow: 0 0 1px 1px #fff, 0 2px 2px rgb(0 0 0 / 18%);\n cursor: pointer;\n text-decoration: none;\n}.choiceBox:hover {\n background-color: #e2f2ff;\n}.choiceBox.hidden{\n display:none;\n}.getStartedContainer.expand {\n width: 100%;\n height: 100%;\n}.getStartedContainer.expandOther {\n width: 100%;\n height: 100%;\n}.getStartedContainer.expandParent {\n width: 100%;\n height: 100%;\n}#front_panel_search.heighten {\n height: 1000px;\n}#front_panel_search.heightenOther {\n height: 820px;\n}#front_panel_search.heightenParent {\n height: 970px;\n}.choiceBox.fadeOut{\n display:none;\n}.teacherOptions {\n display: flex;\n width: 100%;\n height: 100%;\n flex-wrap: wrap;\n align-items: center;\n margin-left: 84px;\n max-height:641px;\n align-content:center;\n}.parentOptions {\n display: flex;\n width: 94%;\n height: 63%;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n margin-top: 20px;\n}.otherOptions {\n display: flex;\n width: 94%;\n height: 70%;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n margin-top: 20px;\n align-content:center;\n}p.ageGroup {\n margin-bottom: 6px;\n font-size: 22px;\n font-weight: 600;\n}.choiceBoxSecondParents \n p:not(.ageGroup) {\n font-size: 15px;\n color: #2399f9;\n}.choiceBoxSecondParents.selected{\n background-color: #e2f2ff;\n}.choiceBoxSecondParents.selected::after {\n content: '✔';\n font-size: 22px;\n color: #ffffff;\n font-weight: 900;\n position: absolute;\n right: -18px;\n color: white;\n top: -18px;\n background: #679000;\n width: 50px;\n height: 50px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n border: 3px solid white;\n animation-name:fadeIn;\n animation-duration:0.3s;\n animation-fill-mode:forwards\n}.continueButtonParent{\n padding: 10px 20px;\n border: 2px solid white;\n border-radius: 7px;\n color: white!important;\n font-size: 26px;\n font-family: 'robotobold';\n text-shadow: 5px 5px 20px #3333335c;\n background: #d91878;\n display:none;\n margin-top: 97px;\n animation-name:fadeIn;\n animation-duration:1s;\n animation-fill-mode:forwards;\n cursor:pointer;\n}.continueButtonParent.show{\n display:block!important;\n}.getStartedContainer.expandParent.expandContinue {\n height: 775px;\n}.getStartedContainer.expandParent.expandContinue.teacherForm {\n width: 485px;\n height: 545px;\n}.hiddenBar{\n display:none;\n}#front_panel_search #new_sign_up {\n display: contents;\n}.getStartedContainer.expand.teacherForm,.getStartedContainer.expandOther.teacherForm {\n width: 485px;\n height: 545px;\n}#front_panel_search .new_sign_up_form {\n box-shadow: 0px 0 25px 0px #a7a3a38f;\n border: 3px solid #2399f9;\n border-radius: 13px;\n overflow: hidden;\n}#front_panel_search .boxed-text {\n background-color: #2399f914;\n}#front_panel_search .flex-wrapper {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: end;\n justify-content: center;\n animation-name:fadeIn;\n animation-duration:2s;\n animation-fill-mode:forwards;\n}#front_panel_search.heighten.form,#front_panel_search.heightenParent.form,#front_panel_search.heightenParent.form {\n height: 830px;\n}p.seeMore {\n margin-top: -12px;\n color: #0000007d;\n font-size: 17px;\n cursor: pointer;\n}p.seeMore:hover {\n color: #000000b3;\n}.backButtonSignUp {\n position: absolute;\n left: 40px;\n top: 54px;\n width: 40px;\n height: 40px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n border: 2px solid #2399f9;\n cursor: pointer;\n}.backButtonSignUp svg {\n fill: #2399f9;\n transform: scale(0.5);\n}#new_sign_up .otherOccupation.show{\n display:block!important;\n}.getStartedContainer.expandOther.teacherForm.notListed{\n height:620px;\n}.prospect-height {\n margin-bottom: 0;\n height: 100vh!important;\n}.secondTeacherChoice .choiceBoxSecond {\n width: 145px;\n height: 145px;\n}.teacherOptions {\n display: flex;\n width: 100%;\n height: 100%;\n flex-wrap: wrap;\n align-items: center;\n margin-left:0!important;\n max-height: 641px;\n align-content: center;\n justify-content: center;\n}body p.areYou {\n margin-top: 40px;\n margin-bottom: 20px;\n font-size: 33px;\n color: #000000fc;\n}.occPlease{\n display:none;\n}.overlayContainer.career {\n display: flex;\n align-items: center;\n justify-content: center;\n}.choiceBoxSecond p,.choiceBoxSecondOther p {\n text-align: center;\n}.childInputContainer {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n align-content: center;\n justify-content: center;\n align-items: center;\n gap: 20px;\n}.addAnother {\n cursor: pointer;\n display: flex;\n flex-wrap: nowrap;\n flex-direction: row;\n align-items: center;\n gap: 10px;\n}.parentOptions {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n gap: 2rem;\n}select#months,.childInputContainer input {\n border: 2px solid #2399f9;\n padding: 16px;\n background: white;\n border-radius: 20px;\n box-shadow: 3px 3px 5px rgb(0 0 0 / 10%);\n}.otherOptions,.teacherOptions {\n max-width: 800px!important;\n}.parentContinue {\n padding: 10px 20px;\n background: #5d8200;\n color: white;\n border-radius: 6px;\n font-size: 1.2rem;\n font-family: robotobold;\n cursor:pointer;\n}.parentSkip:hover {\n text-decoration: underline;\n}.parentSkip {\n color: grey;\n}input[type=\"number\"] {\n width: 123px;\n}@media screen and (max-width: 768px) {\n .teacherParentContainer {\n display: flex;\n flex-direction: row;\n align-items: center;\n flex-wrap: wrap;\n }.choiceBox {\n width: 130px;\n height: 130px;\n display: flex;\n}body p.areYou {\n margin-top: 0px!important;\n text-align:center;\n}.teacherOptions {\n max-height: 100%!important;\n gap:20px;\n}.backButtonSignUp {\n top: -40px;\n left: -13px;\n}.secondTeacherChoice .choiceBoxSecond {\n width: 100px;\n height: 100px;\n}.childInputContainer {\n display: flex;\n flex-direction: column;\n}.getStartedContainer select#months,.getStartedContainer input {\n width: 200px!important;\n}\n.getStartedContainer p {\n text-align: center;\n}body p.areYou {\n font-size: 1.4rem!important;\n line-height: 1.9rem;\n}\n.choiceBoxSecond p {\n font-size: 1rem!important;\n}.choiceBoxSecond {\n width: 100px;\n height: 100px;\n margin:0px;\n}.getStartedContainer {\n gap: 20px;\n}\n.choiceBoxSecondOther {\n height: 100px;\n width: 100px;\n margin: 0;\n}.choiceBoxSecondOther p {\n font-size: 1rem!important;\n}.otherOptions {\n display: flex;\n width: 100%;\n height: 100%;\n flex-wrap: wrap;\n align-items: center;\n margin-left: 0 !important;\n max-height: 641px;\n align-content: center;\n justify-content: center;\n gap: 20px;\n}\n}.overlayContainerinner.hidden {\n display: none;\n}.parentSkip {\n color: grey;\n cursor: pointer;\n}.parentContinue:hover {\n text-decoration: underline;\n}p.areYou {\n text-align: center;\n max-width: 600px;\n}"),document.querySelectorAll(".overlayContainerinner").forEach((e=>e.classList.add("hidden"))),("/login"==location.pathname?document.querySelectorAll(".overlayContainer")[1]:document.querySelector(".overlayContainer")).insertAdjacentHTML("beforeend",'
    \n

    Tell us who you are so we can make everything perfect for you.

    \n
    \n
    \n\n

    Teacher

    \n
    \n
    \n \n

    Parent

    \n
    \n
    \n \n

    Something else

    \n
    \n
    \n
    '),null===(e=document.querySelector("select#occupation option[selected]"))||void 0===e||e.removeAttribute("selected"),document.querySelector(".teacherParentContainer").addEventListener("click",(e=>{var l,d,s,u,p;if(e.target.closest(".choiceBox"))if(document.querySelectorAll(".choiceBox").forEach((e=>{e.classList.add("fadeOut")})),(0,o.se)("#front_panel_search {transition:height 1s}"),null===(l=document.querySelector(".alreadyHaveAnAccount"))||void 0===l||l.classList.add("hiddenBar"),document.querySelector(".teacherParentContainer").style="display:none",e.target.closest(".teacher"))null===(d=document.querySelector("#front_panel_search"))||void 0===d||d.classList.add("heighten"),null===(s=document.querySelector(".getStartedContainer"))||void 0===s||s.classList.add("expand"),document.querySelector(".areYou").innerText="Which describes you best?",document.querySelector(".teacherParentContainer").insertAdjacentHTML("beforebegin",'
    '),n.forEach(((e,n)=>{document.querySelector(".teacherOptions").insertAdjacentHTML("beforeend",`

    ${e}

    `)})),document.querySelector(".teacherOptions").addEventListener("click",(e=>{var n,o,a,r;e.target.closest(".teacherOptions:not(.secondTeacherChoice) .choiceBoxSecond")&&(1111==(null===(n=e.target.closest(".choiceBoxSecond"))||void 0===n?void 0:n.getAttribute("value"))?document.querySelector(".getStartedContainer").dataset.career="1111":document.querySelector(".getStartedContainer").dataset.career=null===(o=e.target.closest(".choiceBoxSecond"))||void 0===o?void 0:o.getAttribute("value"),document.querySelector(".teacherOptions").innerHTML="",document.querySelector(".teacherOptions").classList.add("secondTeacherChoice"),t.forEach(((e,n)=>{document.querySelector(".teacherOptions").insertAdjacentHTML("beforeend",`

    ${e}

    `)})),document.querySelector(".areYou").innerText="What age do you teach?");e.target.closest(".teacherOptions.secondTeacherChoice .choiceBoxSecond")&&("1111"==document.querySelector(".getStartedContainer").dataset.career?(localStorage.setItem("extraCareerInfo",document.querySelector(".getStartedContainer").dataset.career),null===(a=document.querySelector(`.occItem[data-value="${e.target.closest(".teacherOptions.secondTeacherChoice .choiceBoxSecond").getAttribute("value")}"`))||void 0===a||a.click()):(localStorage.setItem("extraCareerInfo",e.target.closest(".teacherOptions.secondTeacherChoice .choiceBoxSecond").getAttribute("value")),null===(r=document.querySelector(`.occItem[data-value="${document.querySelector(".getStartedContainer").dataset.career}"`))||void 0===r||r.click()))})),null===(u=document.querySelector(".getStartedContainer"))||void 0===u||u.insertAdjacentHTML("afterbegin",'
    '),null===(p=document.querySelector(".backButtonSignUp"))||void 0===p||p.addEventListener("click",(()=>{var e,n,t,o,a;null===(e=document.querySelector(".teacherOptions"))||void 0===e||e.remove(),document.querySelector(".teacherParentContainer").style="",null===(n=document.querySelector(".getStartedContainer"))||void 0===n||n.classList.remove("expand"),null===(t=document.querySelector("#front_panel_search"))||void 0===t||t.classList.remove("heighten"),document.querySelectorAll(".choiceBox.fadeOut").forEach((e=>{e.classList.remove("fadeOut")})),null===(o=document.querySelector(".backButtonSignUp"))||void 0===o||o.remove(),document.querySelector(".areYou").innerText="Tell us who you are so we can make everything perfect for you.",null===(a=document.querySelector(".alreadyHaveAnAccount"))||void 0===a||a.classList.remove("hiddenBar")}));else if(e.target.closest(".parent")){var m,h,g,y,w;null===(m=document.querySelector("#front_panel_search"))||void 0===m||m.classList.add("heightenParent"),null===(h=document.querySelector(".getStartedContainer"))||void 0===h||h.classList.add("expandParent"),document.querySelector(".areYou").innerText="Tell us a little about your child and we'll recommend tailored teaching materials for them.";var v='
    \n \n
    ';null===(g=document.querySelector(".teacherParentContainer"))||void 0===g||g.insertAdjacentHTML("beforebegin",`
    ${v}
    Add another child
    \n\n
    Continue
    skip
    `),document.querySelector(".addAnother").addEventListener("click",(()=>{document.querySelector(".addAnother").insertAdjacentHTML("beforebegin",v)}));var f=()=>{var e,n=[];document.querySelectorAll(".childInputContainer").forEach(((e,t)=>{var o=e.querySelector('input[placeholder="First Name"]').value,a=e.querySelector('select[name="birthMonth"]').value,r=e.querySelector('input[type="number"]').value;(o||a||r)&&n.push({firstName:o,birthMonth:a,birthYear:r||null})})),n.length&&localStorage.setItem("parentChildren",JSON.stringify(n)),null===(e=document.querySelector('.occItem[data-value="3636"]'))||void 0===e||e.click()};document.querySelector(".parentContinue").addEventListener("click",(()=>{f()})),document.querySelector(".parentSkip").addEventListener("click",(()=>{f()})),null===(y=document.querySelector(".getStartedContainer"))||void 0===y||y.insertAdjacentHTML("afterbegin",'
    '),null===(w=document.querySelector(".backButtonSignUp"))||void 0===w||w.addEventListener("click",(()=>{var e,n,t,o,a,r;null===(e=document.querySelector(".parentOptions"))||void 0===e||e.remove(),document.querySelector(".teacherParentContainer").style="",null===(n=document.querySelector(".getStartedContainer"))||void 0===n||n.classList.remove("expandParent"),null===(t=document.querySelector("#front_panel_search"))||void 0===t||t.classList.remove("heightenParent"),document.querySelectorAll(".choiceBox.fadeOut").forEach((e=>{e.classList.remove("fadeOut")})),null===(o=document.querySelector(".backButtonSignUp"))||void 0===o||o.remove(),null===(a=document.querySelector(".continueButtonParent"))||void 0===a||a.remove(),document.querySelector(".areYou").innerText="Tell us who you are so we can make everything perfect for you.",null===(r=document.querySelector(".alreadyHaveAnAccount"))||void 0===r||r.classList.remove("hiddenBar")}))}else{var b,x,k,E,S;null===(b=document.querySelector("#front_panel_search"))||void 0===b||b.classList.add("heighten"),null===(x=document.querySelector(".getStartedContainer"))||void 0===x||x.classList.add("expand"),document.querySelector(".areYou").innerText="Which describes you best?",null===(k=document.querySelector(".teacherParentContainer"))||void 0===k||k.insertAdjacentHTML("beforebegin",'
    '),a.forEach(((e,n)=>{var t;null===(t=document.querySelector(".otherOptions"))||void 0===t||t.insertAdjacentHTML("beforeend",`

    ${e}

    `)})),null===(E=document.querySelector(".otherOptions"))||void 0===E||E.addEventListener("click",(e=>{if(e.target.closest(".choiceBoxSecondOther")&&e.target.closest(".choiceBoxSecondOther").getAttribute("value")){var n,t=e.target.closest(".choiceBoxSecondOther").getAttribute("value");null===(n=document.querySelector(`.occItem[data-value="${t}"`))||void 0===n||n.click()}})),document.querySelector(".getStartedContainer").insertAdjacentHTML("afterbegin",'
    '),null===(S=document.querySelector(".backButtonSignUp"))||void 0===S||S.addEventListener("click",(()=>{var e,n,t,o;null===(e=document.querySelector(".otherOptions"))||void 0===e||e.remove(),document.querySelector(".teacherParentContainer")&&(document.querySelector(".teacherParentContainer").style=""),null===(n=document.querySelector(".getStartedContainer"))||void 0===n||n.classList.remove("expand"),null===(t=document.querySelector("#front_panel_search"))||void 0===t||t.classList.remove("height"),document.querySelectorAll(".choiceBox.fadeOut").forEach((e=>{e.classList.remove("fadeOut")})),null===(o=document.querySelector(".backButtonSignUp"))||void 0===o||o.remove(),document.querySelector(".areYou")&&(document.querySelector(".areYou").innerText="Tell us who you are so we can make everything perfect for you.")}))}}))}catch(e){(0,o.BI)("ABError",e,window.location.pathname+"-variant-"+u)}},u="interactiveJourneySignUpReset"+(o.xl?"-desktop":"-mobile"),p={n:u,tg:i,ttl:60,b:[{name:"original",weight:1,run:d},{name:"variant",weight:1,run:s}],g:{u:c,e:l},o:{bucket:-1,testing:!0,fnDataApi:"ga",evq:window.document.fn.events,encodeCookie:!0,deploy:1}};return{shouldRun:(0,o.b3)(p),codeToRun:()=>{}}}catch(e){const n="undefined"!=typeof expName?expName:"unset";(0,o.BI)("ABError",e,window.location.pathname+"-"+n)}}},3627:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>r});var o=t(5133),a=t(2834);const r=()=>{try{var e;const r=window.dataLayer[0];/^\/teaching-wiki\/|^\/parenting-wiki\//.test(location.pathname)&&(0,a.se)("#mlResources {\n display: grid;\n grid-template-columns: repeat(auto-fit,minmax(210px,1fr));\n gap: 1rem;\n }");var n=null==r||null===(e=r.wiki)||void 0===e?void 0:e.recommendation,t=document.getElementById("mlResources");const i=[{regex:/^\/teaching-wiki\/|^\/parenting-wiki\//,options:!!n&&20==n.length&&!!t}],c=(0,a.DX)(["funnel"]);c.push({name:"sign-in",type:"search",regex:/sign_in/,options:!0}),c.push({name:"sign-up",type:"search",regex:/signed_up/,options:!0}),c.push({name:"searched",type:"pathname",regex:/^\/search/,options:!0}),c.push({name:"visitedResource",type:"pathname",regex:/^\/resource\//,options:!0});const l=(0,a.kQ)(["download"]);l.push({type:"click",name:"clickedMl",parentEl:"#mlResources",childEl:".what-are-members-downloading-now a"});const d=()=>{try{t.innerHTML="",n.forEach((e=>{var n;t.insertAdjacentHTML("beforeend",`\n \n
    `)})),(0,a.se)("#mlResources{width:100%;padding:0px!important}#youll_love_resource_box.dashy>div{padding:0px!important}")}catch(e){(0,a.BI)("ABError",e,window.location.pathname+"-variant-"+s)}},s="wikiMlSideBarRecs0807",u={n:s,t:()=>p(i),ttl:60,b:[{name:"original",weight:1,run:()=>{(0,a.se)("#mlResources{width:100%;padding:0px!important}#youll_love_resource_box.dashy>div{padding:0px!important}")}},{name:"variant",weight:1,run:d}],g:{u:c,e:l},o:{bucket:-1,testing:!0,fnDataApi:"ga",encodeCookie:!0,deploy:0}};function p(e){return e.some((e=>e.regex.test(window.location[e.type||"pathname"])&&(void 0===e.options||e.options)))}function m(e){return e.some((e=>!!e.path&&e.path.test(window.location.pathname)))}return{shouldRun:e=>{var n;return p(i)||!!e&&e[null===(n=window.btoa(s))||void 0===n?void 0:n.replace(/=/g,"")]&&(p(c)||m(l))},codeToRun:()=>{p(i)?(0,a.Gc)((function(){o.A.init(u)})):(p(c)||m(l))&&(0,a.Hh)((function(){o.A.init(u)}))}}}catch(h){const g="undefined"!=typeof expName?expName:"unset";(0,a.BI)("ABError",h,window.location.pathname+"-"+g)}}},2361:(e,n,t)=>{var o={"./Active/Category/categoryInstantDownloadButtonReset4.js":9348,"./Active/Category/categoryTopicsRedirect.js":3342,"./Active/Category/phonicsLandingPageCleanup.js":3206,"./Active/Dashy/ProspectDashyAddFREEWordingAUSUS.js":8280,"./Active/Dashy/dashyRemoveRecentlyViewedTab.js":9861,"./Active/Dashy/dashyWidgetsMobile.js":8785,"./Active/Dashy/freeTrialLeftHandDashy.js":5806,"./Active/Dashy/moveFreeTrialIconToPos1.js":2231,"./Active/Dashy/prospectDashyTwoStepSignUpUS.js":4230,"./Active/Dashy/recommendedForYourDashy.js":9199,"./Active/Dashy/signInButtonAtTheTopOfDashyLoggedOut.js":8032,"./Active/MMOrder-no-tfx.js":6906,"./Active/Payment/canelTryialAnyTime.js":737,"./Active/Payment/mobilePaymentAnnualPrompt.js":1515,"./Active/Payment/noPaymentTodayFinalPaymentPage-TFX-3596.js":2848,"./Active/Premium/removeFreeResourcePacksSecondaryPremium.js":4370,"./Active/Premium/schoolAccountPremiumPage.js":6186,"./Active/Premium/upgradeRedesign-tfx-4001.js":7681,"./Active/ProductLandingPages/landingPagePrimaryCTA-Free-Reset.js":3371,"./Active/ProductLandingPages/landingPagePrimaryCTA-Prospect-Reset.js":3641,"./Active/SignUp/prospectTwoStepSignUpAU.js":1454,"./Active/Wiki/wikiBlogCtaTrial.js":7184,"./Active/Wiki/wikiContentsInlineParentsAll.js":3601,"./Active/Wiki/wikiContentsInlineTeachingAll.js":2439,"./Active/all/allStarsBannerUSACta.js":634,"./Active/all/createBannerResourcePage.js":726,"./Active/all/headerFreeTrialCtaChange.js":1602,"./Active/all/headerHoverCTAWordingchange.js":8228,"./Active/all/headerfreeTrialHeaderCopyChange.js":5846,"./Active/all/joinButtonMarginProspects.js":4012,"./Active/all/notificationFreeTrialMobile.js":2562,"./Active/all/reminderTryUltimateHeader.js":7498,"./Active/all/upgradeHeaderandpremium.js":5404,"./Active/ari/ariNoAccessToTrial-TFX-3597.js":2878,"./Active/burgerFreeTrialMembershipButton.js":9594,"./Active/cancellation/cancelFreeProductCopy.js":9133,"./Active/inclusion/inclusionRemoveUsps.js":5337,"./Active/myAccount/unsubClarity.js":8140,"./Active/myCredit/myCreditPageRedesign.js":9460,"./Active/paymentHistory/paymentHistoryCTA.js":6982,"./Active/premiumPaymentRemoveChatBubbleDesktop.js":9180,"./Active/premiumSchools/premiumSchools.js":5054,"./Active/premiumThanks/premiumThanksReminder.js":6590,"./Active/resource/0before30DayTrialWordingResourceCTA.js":6356,"./Active/resource/99FreeTrialCTAWordingUK.js":9782,"./Active/resource/GTM-resourceReviews-resourceReviewsMobile.js":8732,"./Active/resource/downloadButtonOnPreviewProspect.js":8967,"./Active/resource/downloadableImageClickAction.js":4191,"./Active/resource/freeMobileAll.js":7799,"./Active/resource/mlandPreviewResolutionPixels-TFX-4235.js":7919,"./Active/resource/mobileCtaWithPipe.js":6624,"./Active/resource/mostlyUsedBy.js":2726,"./Active/resource/noPopUpsResourceFreeNonDownloadable.js":4357,"./Active/resource/postDownloadMobileOverlay.js":5852,"./Active/resource/redesignResourceCTA.js":2651,"./Active/resource/reduceReviewsAndDescriptionMobile2.js":5156,"./Active/resource/relatedSearchOneSizeMobile.js":372,"./Active/resource/removeSingularBreadcrumb.js":7606,"./Active/resource/resourceCTAdirectTest.js":4247,"./Active/resource/resourceHideSuggestions-tfx-4292.js":2750,"./Active/resource/resourceMlBoostFromSearch.js":2332,"./Active/resource/resourceMobileProspectRemoveFreeBanner.js":812,"./Active/resource/resourceNewsletterCTAPremium.js":3738,"./Active/resource/resourcePinchToZoomPreviewUpscale.js":4015,"./Active/resource/resourceRemoveAusMlBanner2.js":4508,"./Active/resource/resourceRemoveFreeAccIncludes.js":462,"./Active/resource/resourceTabbedSectionUI-tfx-4289.js":5960,"./Active/resource/resourceUltimateFreeTrialCTA1.js":6126,"./Active/resource/resourceUltimateFreeTrialCTAAnnual.js":1846,"./Active/resource/schoolAccountCTACopy.js":1144,"./Active/resource/searchSuggestionsCategoryPage.js":3986,"./Active/resource/threeColumnPostDownloadMl.js":6877,"./Active/search/inplaceSearchSuggestionsRedesign.js":7090,"./Active/search/mobileSearchPageLayout.js":6345,"./Active/search/newestFilterPositionAges.js":9337,"./Active/search/redirectFreeSearchToFreeTrialLanding.js":2920,"./Active/search/searchAutoLoadShowMore.js":5665,"./Active/search/searchFilterAgeFilterSticky.js":72,"./Active/search/searchMobileRemoveSimilar.js":8455,"./Active/search/searchSimilarCopyFilters.js":8301,"./Active/search/zoomOnHoverSearch.js":1964,"./Active/trial/remindUserSevenDaysBefore.js":8451,"./Active/trial/removeUltimateWordingFromTrial.js":9941,"./Active/trial/seePaidPlansToPaidPlansFreeTrialFunnel.js":1308,"./Active/trial/showActualAnnualPriceOnPayment.js":4588,"./All/aiMegamenu.js":7413,"./All/freeTrialFourMonths.js":1029,"./All/headerCtaBgImage.js":3025,"./All/megamenuParents.js":738,"./All/mmSupplyBold.js":6784,"./All/plannersAus.js":364,"./All/rateMyDownloadsPopupVsRateNow.js":8737,"./All/removeHelpButtonMobile.js":935,"./ai/aiPromptChangeAfterSearch.js":8025,"./category/categoryOrdering.js":5745,"./category/removeUspsLandingPages.js":6361,"./dashy/dashyHW.js":6446,"./dashy/previousSearchesOnDashy.js":7107,"./dashy/recentlyDownloadedRatingDashy.js":2143,"./freeTrialLanding/freeTrialLandingAA.js":8126,"./freeTrialLanding/freeTrialLandingPageUK.js":4736,"./freeTrialLanding/freeTrialLandingPageUS.js":4352,"./home/prospectHomeLanding.js":9544,"./home/prospectHomeLandingGoogle.js":507,"./home/prospectHomeLandingNull.js":9361,"./home/prospectHomeLandingOther.js":2924,"./news/newsPageDesignUpdates.js":6370,"./parentLanding/parentLandingAA.js":9425,"./payment/decoyTestingNonEnglishLanguageTranslated.js":5836,"./payment/payFinalEmail.js":7035,"./payment/paymentChoiceUltLog.js":2479,"./payment/xxdecoyTestingFreeTrialPaymentChoicePage.js":3409,"./paymentHistory/paymentHistoryReminderPopup.js":6289,"./paymentThanks/paymentThanksRedesign.js":1888,"./productSearch/mlSidebar.js":527,"./productSearch/searchAutoFilterEngland.js":7142,"./productSearch/searchEngagement.js":5645,"./productSearch/searchIntlResultsModule.js":4087,"./productSearch/searchPhraseMatch.js":7862,"./resource/99trialMobileUKandUS.js":4072,"./resource/averageStarRatingResource.js":4167,"./resource/educakePostDownloadIteration2.js":7400,"./resource/mostlyUsedBy-prospects.js":6261,"./resource/noCardRequiredFreeRes.js":2393,"./resource/positiveReviewShowReferal.js":3072,"./resource/prospectResourceCtaCopyUK.js":1202,"./resource/resourceAiCta.js":3401,"./resource/resourceCTAFreeCopy.js":7776,"./resource/resourceCurriculumLinksShow.js":5220,"./resource/resourcePagesPreviewv2.js":8673,"./resource/resourceRatings.js":9979,"./resource/resourceRemoveAusBannerMain.js":1441,"./resource/resourceShowFullDescription.js":9695,"./resource/reviewsResourceRedesign.js":1851,"./resource/searchFeedback.js":8630,"./resource/tpresourcepagerip.js":287,"./search/averageReviewsSearch.js":5933,"./search/searchEmptyAA.js":4514,"./search/searchRemoveAusBanner.js":6544,"./signup/interactiveJourneySignUp.js":493,"./wiki/wikiMlSideBarRecsNew.js":3627};function a(e){var n=r(e);return t(n)}function r(e){if(!t.o(o,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return o[e]}a.keys=function(){return Object.keys(o)},a.resolve=r,e.exports=a,a.id=2361}},n={};function t(o){var a=n[o];if(void 0!==a)return a.exports;var r=n[o]={exports:{}};return e[o](r,r.exports,t),r.exports}t.d=(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=t(3261),n=t(2834);if(!document.documentMode){function s(e){const t=window.localStorage._x?JSON.parse(window.localStorage._x):{};e.keys().forEach((o=>{var a,r,i;let c=null===(a=e(o))||void 0===a||null===(r=a.default)||void 0===r?void 0:r.call(a);var l;null!=c&&null!==(i=c.shouldRun)&&void 0!==i&&i.call(c,t)&&(null==c||null===(l=c.codeToRun)||void 0===l||l.call(c),(0,n.v8)("twinklSplitTesting")&&console.log(o))}))}if(window.localStorage.setItem&&window.sessionStorage.setItem&&window.navigator.sendBeacon){var o,a,r,i,c;let u=null===(o=performance)||void 0===o?void 0:o.now();s(t(2361)),null===(a=document.fn)||void 0===a||null===(a=a.events)||void 0===a||a.emit("abReady");let p=null===(r=performance)||void 0===r?void 0:r.now();u&&p&&(0,n.v8)("twinklSplitTesting")&&console.log("AB Ready in "+(p-u).toFixed(0)+"ms");let m=null===(i=performance)||void 0===i?void 0:i.now();(0,e.Ft)();let h=null===(c=performance)||void 0===c?void 0:c.now();var l,d;m&&h&&(0,n.v8)("twinklSplitTesting")&&console.log("Tracker Ready in "+(h-m).toFixed(0)+"ms"),m&&h&&"object"==typeof newrelic&&(null===(l=newrelic)||void 0===l||l.setCustomAttribute("timingMsAb",parseInt(p-u)),null===(d=newrelic)||void 0===d||d.setCustomAttribute("timingMsEv",parseInt(h-m)))}}})()})(); //# sourceMappingURL=main.js.map