1!function(j){j.cf.installer(".revise-studypicker",function(){var n,e=j(this),t=e.closest("form"),a=t.find(".fm-property-topic");a.length&&(n=new l(a,t),e.find("select").on("change",function(){var e={subject:{uri:""},level:{uri:""}},t=j(this).val().split(",");t.length&&(e.level.uri=t[0],1<t.length)&&(e.subject.uri=t[1]),n.update(e.level.uri,e.subject.uri)}))}),j.cf.installer(".reviseExamAvailability",function(){var n,a,e=j(this),t=e.closest("form"),i=e.find(".fm-property-board"),r=e.find(".fm-property-other_board, .fm-property-other-board"),o=(0===i.length&&(i=t.find(".fm-property-board"),r=t.find(".fm-property-other_board, .fm-property-other-board")),t.find(".fm-property-topic")),s=new u(e,t);e.data("subjects-sl-picker",s),i.length&&r.length&&(n=new c(i,r),i.data("subjects-board-picker",n),e=function(e,t){(t=t).subject.uri.match(/^fun$/)||t.level.uri.match(/^fun$/)?n.hide():n.show()},j(s).on("change",e),e(0,s.subject_level())),o.length&&(a=new l(o,t),o.data("subjects-topic-picker",a),r=function(e,t,n){n||a.update(t.level.uri,t.subject.uri)},j(s).on("change",r),r(0,s.subject_level(),!0))});var c=function(a,i){a.find("select").on("change",function(e){"other"===j(this).val()?i.show():(i.hide(),i.find('input[type="text"]').val(""))}),this.val=function(e){var t,n=a.find("select");return void 0===e?"other"===(t=n.val())?i.find('input[type="text"]').val():t:((n.find('option[value="'+e+'"]').length?n:(n.val("other"),i.find('input[type="text"]'))).val(e),this)},this.show=function(){a.show(),"other"===a.find("select").val()?i.show():i.hide()},this.hide=function(){a.hide(),a.find("select").val("none"),i.hide(),i.find('input[type="text"]').val("")},this.show()},l=function(a,e){a.parents(".fm-field").first().addClass("fm-field-topic");function i(){a.find(".topic-field").remove(),s(null,""),a.find("label").first().text("Please identify the topic for this resource *:");var e=j("<div>",{class:"topic-field topic-freetext-field"}).append(j("<input>",{type:"text",class:"textbox topic-freetext"})).append(j("<input>",{type:"hidden",name:t}));n.length?n.before(e):a.append(e),e.find(".topic-freetext").focus(),$topicClone=a.find(".topic-field").clone()}var n,r=a.find(".topic-field").first().clone(),o=(r.find('select option[value!=""]').remove(),r.find('input[type="hidden"]').val(""),a.find("label").first().text()),t=r.find('input[type="hidden"]').attr("name"),s=(a.data("empty-label")||r.find("select option").text(),a.hasClass("fm-multiple")?(n=j('<span class="add_footer"><span class="add_property">Add another topic</span></span>'),a.append(n)):n=j(),a.on("change keyup",".topic-freetext, select",function(e){var e=j(e.target),t=e.closest(".topic-field");t.find('input[type="hidden"]');e.is("select")&&":other"===e.val()?(c(t),s(t,"")):(e.is(".topic-other")||l(t),s(t,e.val()))}),n.on("click",function(e){var t=a.find(".topic-field").last(),n=t.clone();t.after(n),l(n),n.find("select, input").val(""),n.cf_install()}),function(e,t){t.length?n.show():n.hide(),e&&e.find('input[type="hidden"]').val()!=t&&(e.find('input[type="hidden"]').val(t),e.trigger("topic_change",[t]))}),c=function(e,t){0===e.find(".topic-other").length&&(e.append(j("<div>",{class:"fm-options topic-other-wrapper"}).append(j("<label>",{text:"Please identify the topic for this resource *:",class:"topic-other-wrapper"}).append(j("<input>",{type:"text",class:"textbox topic-freetext topic-other"})))),void 0===t?e.find(".topic-freetext").focus():e.find(".topic-freetext").val(t))},l=function(e){e.find(".topic-other-wrapper").remove()};this.clear=function(){var e=r.clone();a.find(".topic-field").remove(),n.length?n.before(e):a.append(e),a.cf_install()},this.update=function(e,t){a.show(),e&&t?j.ajax({type:"GET",url:a.data("api-url").replace(/{level_id}/,e).replace(/{subject_id}/,t),success:function(e){var t,n;"ok"===e.status&&(e.results.length?(e=e.results,a.find("label").first().text(o),a.find(".topic-field").remove(),t=r.clone(),(n=t.find("select")).removeAttr("disabled"),n.find('option[value!=""]').remove(),j.each(e,function(){n.append(j("<option>",{text:this,value:this}))}),n.append(j("<option>",{text:"Other",value:":other"})),0===a.find(".topic-field").length&&(a.find(".fm-options").append(t),s(t,"")),$topicClone=a.find(".topic-field").clone(),a.cf_install()):i())},error:function(e){i()}}):this.clear()},this.hide=function(){this.clear(),a.hide()},0!==a.find('.topic-field input[type="hidden"][value=""]').length&&n.hide(),a.find('.topic-field select option:selected[value=":other"]').each(function(){var e=j(this).closest(".topic-field");c(e,e.find('input[type="hidden"]').val())}),this.topics=function(){var e=[];return a.find('.topic-field input[type="hidden"]').each(function(){e.push(this.value)}),e}},u=function(i,t){var n,r,o,a,s=this,c=[],l={},e=i.data("s-empty-label"),u=i.data("l-empty-label");function d(e){return!("all"===e&&!i.data("show-all")||"fun"===e&&!i.data("show-fun")||"other"===e&&!i.data("show-other"))}function p(a){var i=o.get(0),r=0;j.each(c,function(e,t){var n;d(t.uri)&&((n=document.createElement("option")).setAttribute("value",t.uri),n.textContent=t.title,i.appendChild(n),a&&a===n.subject.uri&&(i.selectedIndex=r),++r)})}
1function h(){var e,t={subject:{uri:null,title:null},level:{uri:null,title:null}};return(t.subject.uri=o.val())&&(t.subject.title=o.find("option").eq(o.prop("selectedIndex")).text()),(t.level.uri=r.val())&&(t.level.title=r.find("option").eq(r.prop("selectedIndex")).text()),a.length&&(e=a.val(),t.board={uri:e,title:a.find('option[value="'+e+'"]').text()}),t}function f(){var e=h();j(document).trigger("slb_update",[e]),j(s).trigger("change",[e]),i.trigger("slchange",[e]),j(".page-body select, .modal-body select").trigger("render")}function m(e,t){return e.title<t.title?-1:e.title>t.title?1:0}function g(e){e=j(e.target);e.is("select")&&(e.hasClass("levels")&&v(),_(),b(),f())}function v(){var n,t=o.val(),e=(o.children().remove(),/MSIE [0-9]/.test(navigator.userAgent)&&(e=o.parent(),o.remove(),i.parent().is(".studies-editor__cell")?e.append(o):r.after(o),o.on("change",g)),l[r.val()]),a=j("<option>",{value:"",text:"Select a subject"});o.append(a),"object"==typeof e&&(n=[],j.each(e.subjects,function(e,t){n.push(c[t])}),n.length)?(o.attr("disabled",!1),n.sort(m),n.forEach(function(e){d(e.uri)&&(e=j("<option>",{value:e.uri,text:e.title}),o.append(e),t)&&t===e.val()&&o.val(t)})):i.hasClass("slb-no-require-level")?p(t):o.attr("disabled",!0)}function _(){var e=h();i.hasClass("slb-no-require-level")||e.subject.uri&&e.level.uri?n.val(e.level.uri+","+e.subject.uri):n.val("")}function b(){var e=t.find("div.fm-property-other-level").first();(e=0==e.length?t.find("div.fm-property-other_level").first():e).length&&("other"===r.val()?e.css("display","block"):e.css("display","none"))}u=u||"Select a level of study",e=e||"Select a subject",this.subject_level=h;var y,w,k=i.find("select").first();if("object"==typeof window.examAvailability)C=i.find(".fm-options").first(),R=(n=C.find("[type=hidden]").first()).attr("name").replace(/-value$/,""),w=n.val(),l=window.examAvailability.levels,c=window.examAvailability.subjects;else{if(!k.length)return;C=k.parent(),R=k.attr("name"),y=k.attr("id")||R,n=j("#"+y.replace(/\//,"-")+"-value"),w=n.val(),k.find("optgroup").each(function(){var n={uri:"",title:this.label};j(this).find("option").each(function(){var e=j(this),t=e.val().split(",");n.uri=t[1],void 0===l[t[0]]&&(l[t[0]]={uri:t[0],title:e.text(),subjects:[]}),l[t[0]].subjects.push(c.length)}),c.push(n)})}w=w&&w.split(","),a=t.find('select[name="'+R.replace("subject_level","board")+'"]'),k.remove(),n=j("<input>",{type:"hidden",name:R,id:R+"_value",value:w}),C.append(n),0==(k=i.find("p.error").first()).length&&(k=n),r=j("<select class='select levels'>"),k.before(r);var x,C=j("<option>",{value:""}),R=(C.text(u),r.append(C),j("#"+(R+"/default-level").replace(/\//g,"-"))),E=(R&&(x=R.val(),R.attr("name","")),1);j.each(j.map(l,function(e,t){return e}).sort(m),function(){var e,t=this;y="opt-ex-"+E++,d(t.uri)&&(e=j("<option>",{value:t.uri,text:t.title}),r.append(e),w&&w[0]===t.uri||!(w&&w[0]||x!==t.uri))&&r.val(t.uri)}),o=j("<select class='select subjects'>"),i.parent().is(".studies-editor__cell")?(i.find("label").first().text("Level"),R=j("<div>",{class:"fm-field fm-property-subject"}),o.attr("id","fm-property-subject-"+E++),R.append(j("<label>",{for:o.attr("id"),text:"Subject",class:"fm-field-name"})),R.append(j("<div>",{class:"fm-options reviseExamAvailability"}).append(o)),i.parent().next().append(R)):k.before(o),(C=j("<option value=''>")).text(e),o.append(C),(w&&w[0]||x)&&v(),w&&w[1]&&o.val(w[1]),o.val()||(i.hasClass("slb-no-require-level")?p():o.attr("disabled",!0)),r.on("change",g),o.on("change",g),_(),i.find("input.tm").remove(),b(),f()}}(jQuery),function(n,a){function e(){var e=n.cookies.get("viewport_width"),t=a.cfui.mediaQuery("desk-and-up")?"desk":a.cfui.mediaQuery("lap-only")?"lap":a.cfui.mediaQuery("palm-landscape-only")?"palm-landscape":"palm-portrait";n.cookies.set("viewport_width",t,{hoursToLive:8760,path:"/"}),e!==t&&n(document).trigger("breakpointchange",[e,t])}a.cfui=a.cfui||{},n(document).ready(e),n(window).on("resize",e)}(jQuery,window),function(o,s){o.cf.installer(".collapsable",function(n){function e(){for(var e in i.off("click"),a.css("max-height",""),s.cfui.mediaQueryBreakpoints())if(s.cfui.mediaQuery(e)){var t=n.attr("class").match(/collapsable--only-([a-z0-9_-]+)/);t&&t[1]!==e||n.addClass("collapsable"),n.hasClass("collapsable--in--"+e)&&n.removeClass("collapsable--in--"+e).addClass("collapsable--in")}else if(n.hasClass("collapsable--only-"+e))return void n.removeClass("collapsable");n.hasClass("collapsable--in")&&0===n.find(".collapsable").length&&0===n.find(".collapsable-variable-height").length&&(r=a.outerHeight(),a.css("max-height",r+"px")),i.on({click:function(e){n.hasClass("collapsable--in")?(n.removeClass("collapsable--in"),a.css("max-height","0px")):(n.addClass("collapsable--in"),r?a.css("max-height",r+"px"):(a.css("max-height",""),a.bind("webkitTransitionEnd.collapse_transition_done oTransitionEnd.collapse_transition_done otransitionend.collapse_transition_done transitionend.collapse_transition_done msTransitionEnd.collapse_transition_done",function(){n.hasClass("collapsable--in")&&0===n.find(".collapsable").length&&0===n.find(".collapsable-variable-height").length&&(r=a.outerHeight())&&a.css("max-height",r+"px"),o(this).off(".collapse_transition_done")})))}})}var a=n.find(".collapsable__body, body").first(),i=n.find(".collapsable__toggle").first(),r=0;o(window).on("resize orientationchange",e),e()})}(jQuery,window),function(e){function t(){e(window).width()<549?e(".homepage__search__searchbox").attr("placeholder","Try the 'Cold War' or 'DNA'"):e(".homepage__search__searchbox").attr("placeholder","Try the 'Cold War', 'DNA' or 'Algebra'...")}e(document).ready(function(){t()}),e(window).on("resize",function(){t()})}(jQuery),function(g,s){function c(){g(".nav-main").removeClass("nav-main--selected"),g(".nav-main__item--hover").removeClass("nav-main__item--hover"),g(".nav-main__wrapper").removeClass("nav-main__wrapper--active").removeClass("nav-main__wrapper--focused")}function l(){g(".nav-main").toggleClass("nav-main--selected"),g(".nav-main__wrapper").toggleClass("nav-main__wrapper--active"),g(".nav-main__wrapper").toggleClass("nav-main__wrapper--focused"),d(),u()}var u=function(){g(".page-header__user-menu").removeClass("page-header__user-menu--active").removeClass("page-header__user-menu--focused")},d=function(){g(".page-header__search").removeClass("page-header__search--active").removeClass("page-header__search--focused").find("[type=text]").first().blur()};g.cf.installer(".page-header__search",function(t){g(document.body).on("touchstart",function(e){g(e.target).parents(".page-header").length||(c(),d(),u())}),t.hoverIntent(function(){t.addClass("page-header__search--active"),u(),c()},function(){t.removeClass("page-header__search--active")}),t.on("touchend",function(e){if(t.is(e.target))return t.off(".hoverIntent"),(t.hasClass("page-header__search--active")?d:(t.addClass("page-header__search--active"),u(),c))(),!1}
1),t.find("[type=text]").on({focus:function(e){t.addClass("page-header__search--focused")},blur:function(e){t.removeClass("page-header__search--focused")}}),t.find("select").on({click:function(e){t.addClass("page-header__search--focused")}}),t.on({change:function(e){"SELECT"===e.target.tagName&&t.find("[type=text]").first().focus()}});function e(e){var t=a.clone();s.mediaQuery("desk-and-up")||t.find("option").filter(function(){return this.value&&-1===window.gr_mobile_resource_kinds.indexOf(this.value)}).remove(),n.children().remove(),n.append(t)}var n=(a=t.find("select[name=filter_kind]")).parent(),a=a.clone();g(document).on("breakpointchange",e),e()}),g.cf.installer(".page-header__user-menu__join",function(t){var e,n=t.parents(".page-header__user-menu"),a=t.find(".page-header__user-menu__join-menu");s.mediaQuery("desk-and-up")?(e=t.parent().find(".page-header__user-menu__login-link"),a.appendTo(e.parent()),a.removeClass("not-desk-and-up"),a.find(".signin-menu__login h2").text("Log in to your account"),e.on("click",function(e){if("none"!==a.css("display"))return g(".page-header__search").find("[type=text]").first().blur(),n.toggleClass("page-header__user-menu--focused"),n.toggleClass("page-header__user-menu--active"),!1}),e.hoverIntent(function(){g(".page-header__search").find("[type=text]").first().blur(),n.addClass("page-header__user-menu--active"),d(),c()},function(){n.removeClass("page-header__user-menu--active")})):(t.find(".page-header__user-menu__join-link").on("click touchend",function(e){return"touchend"===e.type&&t.off(".hoverIntent"),n.hasClass("page-header__user-menu--active")?u():(c(),d(),g(".page-header__search").find("[type=text]").first().blur(),n.toggleClass("page-header__user-menu--focused"),n.toggleClass("page-header__user-menu--active")),!1}),t.hoverIntent(function(){g(".page-header").find(":focus").first().blur(),n.addClass("page-header__user-menu--active"),c(),d()},function(){g(".page-header").find(":focus").first().blur(),n.removeClass("page-header__user-menu--active")}))}),g.cf.installer(".page-header__user-menu--member",function(t){t.hoverIntent(function(e){c(),d(),s.mediaQuery("lap-and-up")&&t.addClass("page-header__user-menu--active")},function(){t.removeClass("page-header__user-menu--active")}),t.on("click touchend",function(e){if(console.log(e.target),t.is(e.target))return"touchend"!==e.type&&t.hasClass("page-header__user-menu--active")?t.removeClass("page-header__user-menu--active"):(c(),d(),t.addClass("page-header__user-menu--active")),!1;t.hasClass("page-header__user-menu--active")||e.preventDefault()})}),g.cf.installer(".nav-main",function(e){function t(e,t,n){r(e,"gcse",t,n),r(e,"a_ib",t,n),r(e,"uni",t,n)}function n(){var e=g(".nav-main__subjects:visible");e.find(".nav-main__topics:visible").slideToggle(),e.find(".nav-main__subject-link--selected").removeClass("nav-main__subject-link--selected"),g(this).parent().find(".nav-main__subjects").is(":hidden")&&e.slideToggle(),g(this).parent().find(".nav-main__subjects").slideToggle()}function a(){return!1}function i(){function e(){g(".nav-main .nav-main__item").on("hover",function(){g(this).addClass("nav-main__item--hover")},function(){g(this).removeClass("nav-main__item--hover")});var n=!1;g(".nav-main .nav-item__link").on("touchstart.lap-and-up",function(e){g(".nav-main .nav-main__item").off("mouseenter mouseleave"),g(".nav-main .nav-item__link").off("touchstart"),n=!0}),g(".nav-main .nav-item__link").on("click.lap-and-up",function(e){var t;if(n&&g(this).parent().find(".nav-main__subject-container").length)return(t=g(this).closest(".nav-main__item")).toggleClass("nav-main__item--hover"),g(".nav-main__item--hover").not(t).removeClass("nav-main__item--hover"),e.preventDefault(),!1})}o=g(window).width(),s.mediaQuery("lap-and-up")||(g(".nav-main__list").removeClass("pack").removeClass("pack--auto").removeClass("pack--middle"),g(".nav-main__item").removeClass("pack__item")),s.mediaQuery("desk-and-up")?(t("desk",21),e()):s.mediaQuery("lap-only")?(t("mobile",10,!0),e()):(t("mobile",10,!0),g(".nav-main__hamburger").on("click touchend",function(e){return g(".nav-main__wrapper").hasClass("nav-main__wrapper--active")?c():(d(),u(),g(".nav-main__wrapper").toggleClass("nav-main__wrapper--focused"),g(".nav-main__wrapper").toggleClass("nav-main__wrapper--active")),!1}),g(".nav-main").hoverIntent(function(){d(),u(),g(".nav-main").addClass("nav-main--selected"),g(".nav-main__wrapper").addClass("nav-main__wrapper--active")},function(){g(".nav-main__wrapper").removeClass("nav-main__wrapper--active"),g(".nav-main").removeClass("nav-main--selected")}),g(".nav-item--gcse .nav-item__link, .nav-item--a_ib .nav-item__link, .nav-item--uni .nav-item__link").bind("click",a),g(".nav-main__subjects").hide(),g(".nav-item__link").bind("click",n)),s.mediaQuery("lap-and-under")&&g(".nav-main__subject-link").on("click",function(e){var t=g(this);
1if(!t.hasClass("nav-main__subject-link--all")&&0!==t.next(".nav-main__topics").length)return e.preventDefault(),(t=g(this).parent().siblings()).find(".nav-main__topics:visible").slideToggle(),t.find(".nav-main__subject-link--selected").removeClass("nav-main__subject-link--selected"),g(this).siblings(".nav-main__topics").slideToggle(),g(this).toggleClass("nav-main__subject-link--selected"),!1})}var m=window.gr_navigation,r=function(e,t,n,a){for(var i=m[e][t],e=g(".nav-item--"+t),r=g("<div></div>",{class:"nav-main__subject-container"}).append('<h5 class="nav-main__subject-heading not-lap-and-under">'+i.title+'</h5><div class="nav-main__full-subjects not-lap-and-under"><h5 class="nav-main__full-subjects__heading">Your subject not listed?</h5><p class="nav-main__full-subjects__text">Have a look at our <a href="/resources/level/'+t+'/subjects">full subject list</a></p></div>'),o=g("<ul></ul>",{class:"nav-main__subjects"}),s=0,c=Math.min(n,i.subjects.length);s<c;s++){var l=i.subjects[s],u=g("<li></li>",{class:"nav-main__subject"}).append('<a href="'+l.url+'" class="nav-main__subject-link">'+l.label+(a?"":" ("+l.count+")")+"</a>");if(a&&l.topics&&l.topics.length){for(var d=g("<ul></ul>",{class:"nav-main__topics"}),p=0,h=Math.min(n,l.topics.length);p<h;p++){var f=l.topics[p];d.append(g('<li><a href="'+l.url+"&topic[]="+escape(f)+'" class="nav-main__topic-link">'+f+"</a></li>"))}d.append('<li><a href="'+l.url+'" class="nav-main__topic-link nav-main__topic-link--all">All '+l.label+" topics »</a></li>").appendTo(u).hide()}o.append(u)}a&&l&&o.append('<li class="nav-main__subject"><a href="/resources/level/'+t+'/subjects" class="nav-main__subject-link nav-main__subject-link--all">All '+e.find(".nav-item__link span").text()+" subjects »</a></li>"),e.append(r.append(o))},o=g(window).width();i(),g(window).on("resize orientationchange",function(e){"resize"===e.type&&g(window).width()===o||(g(".nav-main__subject-container").remove(),g(".nav-main__hamburger").unbind("click",l),g(".nav-main").off(".hoverIntent"),g(".nav-item__link").unbind("click",n),g(".nav-item--gcse .nav-item__link, .nav-item--a_ib .nav-item__link, .nav-item--uni .nav-item__link").unbind("click",a),g(".nav-main").removeClass("nav-main--selected"),g(".nav-main__list").addClass("nav-main__list--hide").addClass("pack").addClass("pack--auto").addClass("pack--middle"),g(".nav-main__item").addClass("pack__item"),g(".nav-main .nav-main__item").off("mouseenter mouseleave"),g(".nav-main .nav-item__link").off(".lap-and-up"),i())})}),g.cf.installer(".dfp-ad-unit",function(n){var a=null,i=n.data("dfp-units"),r=/env-(local|dev)/.test(document.documentElement.className);function t(){var e,t;i&&(t=s.mediaQuery("standard-banner-ad-and-up")?i.desk:s.mediaQuery("lap-and-up")?i.lap:i.palm)&&t.id!==a&&(a=t.id,n.children().hide(),(e=n.find("#"+t.id)).length?(e.show(),r?e.text("Ad unit "+t.id):whenNearlyVisible(t.id,function(){googletag.cmd.push(function(){googletag.display(t.id)})})):(e=g("<div>",{class:"ad-unit__inner dfp-ad-unit__inner",id:t.id}),n.append(e),e.css({width:t.size[0]+"px",height:t.size[1]+"px"}),r?e.text("Ad unit "+t.id):whenNearlyVisible(t.id,function(){googletag.cmd.push(function(){googletag.defineSlot(t.slot,t.size,t.id).addService(googletag.pubads()),googletag.display(t.id)})})))}g(window).on("resize orientationchange",function(e){t()}),t()})}(window.jQuery,window.cfui),function(t){function n(e,t){return e&&null!=(t=new RegExp("[\\?&#]"+t+"=([^&#]*)").exec(e))?unescape(t[1]):void 0}function a(e){var t;e&&(e.target&&"A"==e.target.nodeName?t=n(e.target.href,"url"):e.target&&"IFRAME"==e.target.nodeName&&(t=n(e.target.src,"url")),ccore.gaq(["_trackSocial","twitter","tweet",t]),ccore.stats.action("social.twitter.tweet",t))}window.twttr=function(e,t){var n,a=e.getElementsByTagName("script")[0];if(!e.getElementById(t))return(e=e.createElement("script")).id=t,e.src="//platform.twitter.com/widgets.js",a.parentNode.insertBefore(e,a),window.twttr||(n={_e:[],ready:function(e){n._e.push(e)}})}(document,"twitter-wjs"),twttr.ready(function(e){e.events.bind("tweet",a),t.cf&&t.cf.installer&&t.cf.installer(function(){e.widgets.load()})});var i=function(e){ccore.gaq(["_trackSocial","facebook","share",e]),ccore.stats.action("social.fb.share",e)},r=function(e){ccore.gaq(["_trackSocial","facebook","like",e]),ccore.stats.action("social.fb.like",e)},o=function(e){ccore.gaq(["_trackSocial","facebook","unlike",e]),ccore.stats.action("social.fb.unlike",e)};window.grFB={init:function(e){FB.init({appId:e,xfbml:!0,version:"v2.2"}),window.grFBID&&delete window.grFBID,FB.Event.subscribe("edge.create",r),FB.Event.subscribe("edge.remove",o),FB.Event.subscribe("message.send",i)},share:function(t){FB.ui({method:"share",href:t},function(e){e&&!e.error_code&&i(t)})}},window.grFBID&&"undefined"!=typeof FB&&window.grFB.init(window.grFBID),window.grGPlus={share:function(e){window.open("https://plus.google.com/share?url="+escape(e),"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600");ccore.gaq(["_trackSocial","google","share",e]),ccore.stats.action("social.gplus.share",e)}}}(jQuery),window.onerror=function(e,t,n,a,i){t.match(/^https?:\/\/(static.)?getrevising.co.uk/)&&!e.match(/SecurityError: DOM Exception 18/)&&(a=a||"",i=i?(i.stack||i).toString():"",(new Image).src="/jserror?m="+escape(e)+"&u="+escape(t)+"&l="+escape(n)+"&c="+escape(a)+"&e="+escape(i)+"&p="+escape(document.location.href))},function(p){if(!p)throw new Error("jQuery not loaded");var h=/^\/g\//.test(document.location.pathname)?"/g/":"/";function n(){var e;return{guest:"Guest",member:"Member",subscriber:"Subscriber"}[(e=p("#page")).hasClass("is-subscriber")?"subscriber":e.hasClass("is-member")?"member":"guest"]}var a=null;function f(e,t,n){n=n||"";var a={},i=p("#page");a.cta_label=e,a.cta_id=t,n&&(a.cta_loc=n),a.url=document.location.href,a.page_type=i.data("page_type"),"resource"===a.page_type?(a.page_subtype=i.data("page_subtype"),(e=i.data("resource-meta"))&&(a.level=e.level_id,a.subject=e.subject_id,a.kind=e.kind_id)):(t=i.data("page_meta"))&&p.each(t,function(e,t){a[e]=t}),p.cookies.set("GRSS",a)}function m(){return!cfui.mediaQuery("lap-and-under")}function i(e){e=p(e.target).closest("a").attr("href");return e&&(e+=(-1===e.indexOf("?")?"?":"&")+"back="+escape(p('meta[property="og:title"]').attr("content")),document.location.href=e,1)}window.grABTemplate=function(e){null!==a&&(clearTimeout(a),a=null),0;var t=/-a$/.test(e)?e.replace(/-a$/,"-b"):e.replace(/-b$/,"-a");p("#page").removeClass("ab-"+t).addClass("ab-"+e).trigger("gr_abchange",[e]),setTimeout(function(){p("#page").removeClass("ab-"+t+"-2").addClass("ab-"+e+"-2")},1)},window.isABTemplate=function(e){return p("#page").hasClass("ab-"+e)},window.trackOptimizely=function(e){(e=e.replace("{userTypeName}",n()))&&e.length},window.trackDY=function(e,t){t=t||{},(e=e.replace("{userTypeName}",n()))&&0!=e.length&&p(document.documentElement).is(".env-stage, .env-dev, .env-local")&&console.log("DY: "+JSON.stringify({name:e,properties:t}))},p.lang=p.lang||{},p.lang.number_format=function(e,t,n,a){var t=isNaN(t=Math.abs(t))?2:t,n=void 0===n?".":n,a=void 0===a?",":a,i=e<0?"-":"",r=parseInt(e=Math.abs(+e||0).toFixed(t),10)+"",o=3<(o=r.length)?o%3:0;return i+(o?r.substr(0,o)+a:"")+r.substr(o).replace(/(\d{3})(?=\d)/g,"$1"+a)+(t?n+Math.abs(e-r).toFixed(t).slice(2):"")},p.cf.access.validator("subscriber",function(){return 1===p("#page.is-subscriber").size()}).validator("user",function(){return 1===p("#page.is-member").length}).validator("owner",function(e){return(e=p(e)).closest(".resource-view").hasClass("is-owner")||e.hasClass("dia-root")&&"1"==e.data("dia-owner")}).validator("moderator",function(e){return 1===p("#page.is-moderator").length}).validator("admin",function(e){return 1===p("#page.is-admin").length}).validator("print_service",function(e){return/print/.test(window.location.search)}).validator("freebie",function(e){return p(e).closest(".resource-view").hasClass("is-full-view")||p(e).closest(".grCards").hasClass("is-full-view")||p(e).hasClass("is-free-preview")}).validator("print_service",function(e){return!1}).rules(function(){return p("#page").data("access-ui")}).action("",function(e){var t,n,a,i,r,o,s,c,l,u,d;m()?(c=(e=p(e)).data("access-title")||"Want to read more?",a=e.data("access-body"),l=(l=p("#page").data("resource-count"))||"425,000",a?t={title:c,body:a}:(t=e.data("access-dialog"),a=p("#page").data("access-dialogs"),t&&void 0!==a[t]&&void 0!==a[t]?t=a[t]:(t={t
1itle:c}).body="Our library has "+l+" learning resources just like this one."),e=p("#page.is-member").length,n=e?"subscribe now":"sign up now",ccore.gaq(["_trackEvent","Promotion","Join Now Show"]),a=t,i=function(){f(n,"paywall-popup-primary",t.feature);var e=p("#page").data("resource-meta");window.trackOptimizely("paywall-pop-up-primary-cta-click"),ccore.gaq(["_trackEvent","cta","paywall-pop-up-primary-cta-click",e?e.kind:""])},/\/revision-notes\//.test(document.location.href)&&window.trackOptimizely("OptimizelyNotesPopUp"),r=h+"register",a=p("<h3>",{text:a.title}).add(p("<p>",{text:a.body,class:"subtitle"})).add(p("<span>",{class:"close"})),c=(c=p("#page").data("resource-count"))||"425,000",c=p(p("<ul>",{class:"usp-list"}).append(p("<li>",{text:"Access over "+c+" learning resources"})).append(p("<li>",{text:"Track your progress with testing technology"})).append(p("<li>",{text:"Join study groups to learn with other students"}))).add(p("<div>",{class:"signup-block"}).append(p("<p><span class='cta'>Premium <strong>only £6.99</strong> </span><button class='btn btn-hook'>"+n+'</button><a href="/auth/login?referer='+encodeURIComponent(location.pathname+location.search)+"\" class='signup-block__login'>Log in</a><span class='notnow close'>Not now, thanks</span></p>"))),l=p("#page"),e=l.data("similar-resource-stats"),u=l.data("similar-member-stats"),(l=l.data("resource-meta"))&&(e||u)&&(o=p("<div>",{class:"could-access"}).append(p("<h4>",{text:"You could immediately access"})),s=p("<ul>"),e&&l.subject&&(s.append(p("<li>",{text:p.lang.number_format(e.subject,0)+" "+l.subject+" resources"})),s.append(p("<li>",{text:p.lang.number_format(e.kind,0)+" "+l.subject+" "+l.kind_plural.toLowerCase()}))),u&&l.subject&&s.append(p("<li>",{text:p.lang.number_format(u,0)+" registered students revising "+l.subject})),s.children().length)&&(o.append(s),c=c.add(o)),(d=p.MessageBox({class:"modal-subscribe-dialog",header:a,body:c})).on("hidden",function(){p(this).remove()}),d.find(".close").on("click",function(){d.modal("hide")}),c.find(".btn-hook").on("click",function(){i(),document.location.href=r}),d.modal()):(e=h+"register",e+="?back="+escape(p('meta[property="og:title"]').attr("content")),document.location.href=e)}),p(document).ready(function(){p("html").removeClass("nojs"),p("html").addClass("hasjs"),p(document.body).addClass("jsi"),p.cookie("gr_client",{hoursToLive:8760,secure:"https:"===document.location.protocol}).set("js",!0),document.title.replace(/^(.+?)( -.*)?$/,"$1"),/\/revision-notes\//.test(document.location.href)&&p("#div-gpt-ad-1334060026094-0").on("click",function(){window.trackOptimizely("OptimizelyNotesMPU")}),p("#page.home").length&&videojs("video-player").ready(function(){var e=!1;this.on("play",function(){e?ccore.gaq(["_trackEvent","Video","Resume","GR-testimonial"]):(e=!0,ccore.gaq(["_trackEvent","Video","Play","GR-testimonial"]))}),this.on("pause",function(){ccore.gaq(["_trackEvent","Video","Pause","GR-testimonial"])}),this.on("ended",function(){e=!1,ccore.gaq(["_trackEvent","Video","End","GR-testimonial"])})}),p(".resource-view--video .video-js").each(function(){videojs(this).ready(function(){var e=!1,t=document.location.pathname;this.on("play",function(){e?ccore.gaq(["_trackEvent","Video","Resume",t]):(e=!0,ccore.gaq(["_trackEvent","Video","Play",t]))}),this.on("pause",function(){ccore.gaq(["_trackEvent","Video","Pause",t])}),this.on("ended",function(){e=!1,ccore.gaq(["_trackEvent","Video","End",t])})})}),p(document.body).on("click cfpopoverload","[data-cta-id]",function(e){e=p(e.target).closest("a");e.length&&f(e.text(),e.data("cta-id"),e.data("cta-loc"))}),p("[data-ga-event-category]").on("click",function(e){var t=p(this);ccore.gaq(["_trackEvent",t.data("ga-event-category"),t.data("ga-event-action")])}),p(document.body).on("click","[data-optimizely-event], [data-optimizely-event] span",function(e){e=p(e.target).closest("[data-optimizely-event]");window.trackOptimizely(e.data("optimizely-event"))}),p("[data-gr-event]").on("click",function(e){var t,n=p(this),a=n.data("gr-url"),i={event:n.data("gr-event"),subject:n.data("gr-subject"),data:n.data("gr-data")},r=function(){};
1return n.is("a")&&(t=!1,e.preventDefault(),r=function(){document.location.href=n.attr("href")}),p.ajax({type:"POST",url:a,data:i,complete:r}),t}),p(document.body).on("click",".btn-download-pdf, .a6 a, .a7 a",function(e){var e=p(e.target).closest("a");/(\/subscribe|#$)/.test(e.attr("href"))||(e=document.location.pathname+document.location.search,ccore.gaq(["_trackSocial","gr","pdf",e]),ccore.stats.action("social.gr.pdf",e))}),(n=p("#page").data("registration_complete"))?(window.trackOptimizely("registered-free"),window.trackDY("registered",n)):(n=p("#page").data("login_complete"))&&window.trackDY("login",n),(n=p("#page").data("resource_created"))&&window.trackDY("resource_created",n),(n=p("#page").data("planner_created"))&&window.trackDY("planner_created",n),p(document.body).on("click",".resources-mlt",function(e){var t,e=p(e.target);e.is("a")&&(e={url:e.attr("href")},(t=p("#page").data("resource-meta"))&&(e.level=t.level_id,e.subject=t.subject_id),window.trackDY("related_resource_clicked",e))}),p(document.body).on("click",".require-access",function(e){if(m()){if(!p.cf.access.can(p(this).data("access"),p(this)))return p.cf.access.resolve(this),!1}else if(i(e))return!1}),p(document.body).on("click",".subscribe-popover",function(e){return m()?(p.cf.access.run_action("",p(this)),!1):!i(e)&&void 0}),p(document.body).on("click",".promo-popover, .cfui-popover",function(e){return m()?((new p.cfui.Popover).title("Loadingâ¦").load(p(this).attr("href")).show(),!1):!i(e)&&void 0});var t,e,n=p("#page").data("gr-modal");n&&p.MessageBox(n).modal(),(n=p("#select-all")).length&&(t=p("ul.picker input[type=checkbox]")).length&&n.text("Select all and Continue").on("click",function(e){t.attr("checked","checked")}),p("a").filter(function(){return"http"===this.href.substring(0,4)&&(window.location.hostname!==this.hostname||"external"===this.getAttribute("rel"))}).attr("target","_blank"),p(".documentcontainer a, .resource-view .download a, .btn-download-pdf, .a6 a, .a7 a").attr("target","_blank"),/\/auth\/login|\/register/.test(document.location.href)&&void 0!==navigator.cookieEnabled&&!navigator.cookieEnabled&&p(".page-content").prepend('<div class="alert alert-block alert-error">It looks like you have Cookies disabled in your browser.<br />You will need to enable them if you wish to register or log in.</div>'),p(".browse-by").on("click",function(e){e=p(e.target);e.is("a")&&_gaq&&(e.is(".a-s")?ccore.gaq(["_trackEvent","Related Resources","Click - Subject",e.innerText]):e.is(".a-sl")?ccore.gaq(["_trackEvent","Related Resources","Click - Level+Subject",e.innerText]):e.is(".a-ls")?ccore.gaq(["_trackEvent","Related Resources","Click - Subject+Level",e.innerText]):e.parents("ul.tags").length?ccore.gaq(["_trackEvent","Related Resources","Click - Topic",e.innerText]):e.parents(".listing").length?ccore.gaq(["_trackEvent","Related Resources","Click - Similar Resources",e.innerText]):e.parents(".more-results").length&&ccore.gaq(["_trackEvent","Related Resources","Click - More Resources",e.innerText]))}),p.fn.placeholder&&p.cf.installer(function(){p("input, textarea").placeholder()}),p.fn.popover&&(p.cf.installer(".popover-toggle",function(e){e.popover({html:!0,placement:"top",container:"body"}).on("click",function(e){return p(".popover-toggle").not(this).popover("hide"),e.preventDefault(),!1})}),p.cf.installer(".popover-auto",function(e){e.popover({html:!0,placement:"top",container:"body"}).popover("show")}),p("body").on("click",function(){p(".popover-toggle, .popover-auto").popover("hide")})),p.cfui&&p.cfui.Popover&&p.cf.installer(".cf-popover-link",function(e){e.on("click",function(e){var t=this.href;return-1==t.lastIndexOf("?")?t+="?popover=1":t+="&popover=1",p((new p.cfui.Popover).title("Loadingâ¦").load(t).show()),!1})}),p.fn.tooltip&&p(".with-tooltip").tooltip({container:"body"}),document.location.hash&&(e=document.location.hash,p('.nav-tabs a[data-toggle="tab"]').each(function(){this.href.substring(this.href.length-e.length)===e&&p(this).tab("show")})),p('[data-toggle="toggle"]').each(function(){var e,t=p(this);t.is('input[type="radio"]')&&(e=function(){t.is(":checked")?p(t.data("target")).show(100):p(t.data("target")).hide(100)},p(document).on("click",'input[type="radio"][name="'+t.attr("name")+'"]',e),e())}),p(document.body).on("click","a.post-link",function(e){return e.preventDefault(),p("<form>",{action:this.href,method:"post",css:{visibility:"hidden",position:"absolute",top:"-9999em",left:"-9999em"}}).appendTo(p(document.body)).submit(),!1}),p("form[data-redirect]").on("submit",function(){var e=p(this).data("redirect");setTimeout(function(){document.location.href=e},500)}),p(".resources-list[data-kinds]").each(function(){var n=p(this).data("kinds");p(this).find(".item").each(function(){var e=p(this),t=e.attr("class").match(/resource-kind-([a-z_-]+)/);t&&p("<div>",{title:n[t[1]],class:"icon-type"}).appendTo(e).tooltip({placement:"bottom",container:"body"})})})}),p.cf.installer(".cms-widget.collapsable",function(n){var a=n.find(".body");a.addClass("collapse"),a.hasClass("in")?n.removeClass("collapsable-closed"):n.addClass("collapsable-closed"),n.find(".title").on("click",function(e){a.collapse("toggle"),a.hasClass("in")?n.removeClass("collapsable-closed"):n.addClass("collapsable-closed");var t=n.parents(".cf-popover").first();t.length&&t.data("cf-popover").resize(300)})}),p.cf.installer("#content-is-teacher-1-opt1",function(t){var n=this;t.parents("div").on("click",function(e){n.checked?(t.parents("form").addClass("is-teacher"),p("#group-teacher").show(),p("#group-student").hide()):(t.parents("form").removeClass("is-teacher"),p("#group-teacher").hide(),p("#group-student").show())}).trigger("click")}),p.cf.installer(".resource-view .resource-meta-collapsable",function(){var e=p(this),t=e.find(".resource-description"),n=p("<sp
1an>",{class:"collapse-details collapse-details-open",text:"Show all resource details"}),a=p("<span>",{class:"collapse-details collapse-details-close",text:"Hide resource details"});e.after(n),e.after(a),p("#page.is-member").length&&e.closest(".resource-view").is(".resource-type-resource.is-preview")?n.hide():(a.hide(),t.collapse("toggle")),t.on({show:function(){n.hide("fade",100)},shown:function(){a.show("fade")},hide:function(){a.hide("fade",100)},hidden:function(){p(this).hasClass("in")||n.show("fade")}}),n.on("click",function(){t.collapse("show"),e.addClass("in")}),a.on("click",function(){t.collapse("hide"),e.removeClass("in")})}),p.cf.installer(".fb-popup",function(e){e.on("click",function(e){e=p(e.target).closest("a");return window.open(e.attr("href"),e.text(),"width=500, height=400"),!1})}),/\/(revision-tests|make)\//.test(document.location.href)||p.cf.installer(".resources-types-list",function(e){e.find(".revision-tool a").on({click:function(e){trackOptimizely("OptimizelyResourceTypes"),e.stopImmediatePropagation()}}),p(".category-list a").on({click:function(e){trackOptimizely("OptimizelyFilter"),e.stopImmediatePropagation()}}),e.find(".revision-tool").addClass("revision-tool--all-active").on({click:function(e){trackOptimizely("OptimizelyResourceTypes"),document.location=p(this).find("a").attr("href"),e.stopImmediatePropagation()}})}),p.receiveMessage&&p.receiveMessage(function(e){if("string"!=typeof e.data||"{"===e.data.substring(0,1)){var t;try{t=JSON.parse(e.data)}catch(e){return}switch(t.do){case"resize":p(t.target).show().css({height:t.height+"px"});break;case"collapse":p(t.target).hide()}}},document.location.protocol+"//"+document.location.hostname),p.cf.installer(".resource-editor .tab_panel_file",function(e){e.append(p("<div>",{className:"fm-description",text:"Accepted file types: doc, docx, rtf, txt, pps, ppt, pptx, mp3, wav, wma, mp4, mov, wmp, gif, jpeg, png, tiff, pdf, xls, xlsx"}))})}(window.jQuery),function(_){function e(t){var e,n=this,a="",i="",r=t.outerWidth(),o=t.outerHeight(),s=Math.floor(r/5),c="0.0",l=!1;if(t.css("position","relative").removeAttr("title"),!1 in document.documentElement)for(var u=["Very poor, no useful content","Poor, needs some work","Useful, but could be improved","Great, extremely useful","Superb, an essential resource"],d=0;d<u.length;++d)_("<div>",{class:"rating-tip-helper",title:u[d]}).css({position:"absolute",width:s+"px",height:o+"px",top:0,left:s*d+"px"}).appendTo(t).tooltip({container:"body",placement:"bottom"}).hide();function p(e){e.rating_total&&e.rating_count?(n.allowRating(!1),t.find("span.rating").first().html((Math.round(2*e.rating_total/e.rating_count)/2).toFixed(1,1)),n.updateRating(),e.html?h(e.html):_.ajax({type:"GET",url:a.replace("/rate","/render"),success:function(e){h()}})):e.html&&h(e.html);e=t;(e=t.hasClass(".rating--enabled")?e:t.find(".rating--enabled")).trigger("ratingcomplete")}function h(){_(".rating-prefix, .rating-suffix").remove(),t.before(_("<div class='rating-saved'>Rating saved</div>")),t.remove()}function f(e){e=Math.round((e.pageX+Math.floor(s/2)-t.offset().left)/s);return(e=e<1?1:e).toFixed(1,1)}function m(e){if(i&&!_.cf.access.can(i,t))return _.cf.access.resolve(t),!1;e=y(f(e));n.allowRating(!1),n.setRating(e),_.ajax({url:a,type:"POST",data:{rating:e},success:p})}function g(e){n.setRating(f(e))}function v(e){n.updateRating()}this.update=function(){n.updateRating()},this.allowRating=function(e){!1===e?l&&(t.off(".ratings"),t.css("cursor","auto"),l=!1):l||(t.on({"mousemove.ratings":g,"mouseout.ratings":v,"click.ratings":m}),t.css("cursor","pointer"),l=!0),l?t.find(".rating-tip-helper").show():t.find(".rating-tip-helper").hide()},this.updateRating=function(){var e=b(t.find(".rating__value").html()).toFixed(1,1);isNaN(e)&&(e=0..toFixed(1,1)),n.setRating(e)},this.setRating=function(e){1==c.length&&(c+=".0"),t.removeClass("rating--"+c.replace(/\./,"-")),1==(e=""+e).length&&(e+=".0"),t.addClass("rating--"+e.replace(/\./,"-")),c=e},a=t.data("rating-url"),i=t.data("access"),(a||i)&&n.allowRating(!0),c=""+b(t.find("span.rating").html()),0<(e=y(t.find("span.best").html()))&&(s=r/e)}var b=_.lang.floatval,y=_.lang.intval;_(document).ready(function(){_(".rating--enabled").each(function(){new e(_(this))})})}(jQuery),function(a){function t(e){var t=e.closest(".main-content").find(".resource-sidebar").first();
1t.length&&0<(e=t.outerHeight()-e.outerHeight())&&(t=t.find(".resources-mlt .item"),e=Math.ceil(e/t.first().outerHeight()),0<(e=t.length-e<5?Math.min(t.size(),t.size()-5):e))&&t.slice(-e).hide()}var i=!1;a.cf.installer(".resource-view",t),a.cf.installer(".resource-view",function(e){var t,n=a("#page").data("resource-meta");n&&n.kind&&"flashcards"!==n.kind.toLowerCase()&&"revision cards"!==n.kind.toLowerCase()&&(t=n.kind,e.hasClass("is-owner")&&(t="Own "+t),i||(ccore.gaq(["_trackEvent",t,"View",document.location.href.replace(/^https?:\/\/[^/]+/,""),!0]),i=!0),e.find(".documentcontainer a").click(function(){ccore.gaq(["_trackEvent",t,"Download",document.location.href.replace(/^https?:\/\/[^/]+/,"")])}))}),a(document).ready(function(){"undefined"!=typeof googletag&&googletag.cmd.push(function(){googletag.pubads().addEventListener("slotRenderEnded",function(e){setTimeout(function(){t(a(".resource-view"))},1)})})})}(jQuery),jQuery.cf.installer(".resources-mlt",function(e){e.find(".listing--resources > .listing--resources__item:gt(4)").addClass("last-five")}),function(i){var r;function t(e){if(console.log("goFullscreen",e),i(".resource-view--mindmap").length&&"desk"!==i.cookies.get("viewport_width"))window.open(window.location.href+"/pdf");else{if(!e.find(".cards-set").hasClass("is-free-preview")&&!i.cf.access.can("view",e.closest(".resource-view")))return i.cf.access.resolve(e);var t,n,a;if(i(".resource-view--image").length)window.open(i(".resource-view--image .download .btn--cta").attr("href"));else if(!i(document.body).hasClass("js-is-fullscreen"))return i(document.body).addClass("js-is-fullscreen"),t=e.children().clone(),e.find(".diagram").length&&(t.find(".dia-scrollbox").children().remove(),t.find(".zoom").remove()),i(window).outerWidth()<729&&i(".modal-backdrop").css({opacity:1,"background-color":"white"}),r=i("body").scrollTop(),e=i("#page").data("page_subtype"),e=i('<div class="fullscreen__wrapper fullscreen__wrapper--'+e+'"></div>'),n=i('<div class="modal-fullscreen"></div>'),a=i('<div class="fullscreen__content-container"></div>'),e.append(n),n.append(a),e.append('<div class="modal-backdrop fade in "></div>'),i("body").append(e),a.append(t.clone()),a.append('<span class="btn btn--fullscreen--close"><span class="hide">Close</span></span>'),n.append('<span class="rotate"><strong>rotate</strong> to view</span>'),e.cf_install(),n.find(".notes-resource").length&&a.addClass("notes-no-rotate"),a.find(".btn").not(".btn-next, .btn-previous, .btn-flip, .btn--fullscreen--close, .in, .out").remove(),i("html,body").animate({scrollTop:0},100),setTimeout(function(){i("html,body").css({overflow:"hidden",height:"100%",width:"100%"}),i(window).trigger("resize")},90),a.hide().fadeIn(200).css("display",""),e}}i.cf.installer(".js-resource-fullscreen",function(e){e.find(".btn--fullscreen").on("click",function(){t(e)})}),i.cf.installer(".resource-view--cardset, .resource-view--notes",function(e){e.on("click",".btn--test-yourself",function(){i.ajax({url:document.location.pathname+"/test?r=1",success:function(e){t(i(e)).addClass("test-yourself")},error:function(e){console.error(e)}})})}),i.cf.installer(".modal-fullscreen",function(a){function t(){var e,t,n=a.find(".grNotes .grPhraseGame__content");n.length&&(e=n.parents(".fullscreen__content-container").first(),t=n.position(),n.innerHeight()!=e.height()-t.top)&&n.css("height",e.height()-t.top)}a.find(".btn--fullscreen--close").click(function(){i("html,body").delay("slow").css({overflow:"",height:"",width:""}).scrollTop(r),i(".fullscreen__wrapper").fadeOut(200,function(){i(this).remove(),i(".js-is-fullscreen").removeClass("js-is-fullscreen")})}),a.find(".rotate").click(function(){i(this).fadeOut(200)}),i(window).on("resize",function(){var e;cfui.mediaQuery("desk-and-up")?a.find(".fullscreen__content-container").removeAttr("style"):(e=i(window).outerHeight()>i(window).outerWidth()?"portrait":"landscape",i(".fullscreen__wrapper").addClass("fullscreen--"+e),"portrait"!=e||a.find(".notes-resource").length?(i(".fullscreen__wrapper").removeClass("fullscreen--portrait"),a.find(".fullscreen__content-container").removeAttr("style"),a.find(".rotate").hide()):(i(".fullscreen__wrapper").removeClass("fullscreen--landscape"),a.parent().find(".modal
1-backdrop").css("display","none"),a.find(".fullscreen__content-container").height(i(window).outerWidth()),a.find(".fullscreen__content-container").width(i(window).outerHeight()),e=(i(window).height()-i(window).width())/2,a.find(".fullscreen__content-container").css({"margin-top":e+"px","margin-left":"-"+e+"px"}),a.find(".rotate").show()),setTimeout(function(){a.find(".slides__viewport").trigger("updateCards")},100)),t()}),t(),a.find(".diagram").length&&i(window).on("resize",function(){var e=window.innerHeight>window.innerWidth?.95:1;i(".modal-fullscreen .dia-scrollbox").height(i(".fullscreen__content-container").height()*e)})})}(jQuery),function(i){var r=!1,a=null;i(window).on("popstate",function(e){r&&(history.state?i("#content").html(history.state.html):i("#content").html(a)).cf_install()}),i(document).ready(function(){if(i(".search-page").length)if(history.state)if(history.state.ajaxContent)for(var e=0,t=history.state.ajaxContent.length;e<t;e++){var n=i(".search-page").find("[data-ajax-replace-target]");n.length?n.replaceWith(history.state.ajaxContent[e]):console.error("ajax-replace-target not found when appending from history state object.")}else console.error('History state object already exists but has no "ajaxContent" property.');else history.replaceState&&history.replaceState({ajaxContent:[]},"");a=i("#content").html()}),i.cf.installer(".ajax-replace",function(n){var a=i(n.data("ajax-replace-target"));a.length?n.on("click",function(e){var t=n.attr("href");return t+=(-1===t.indexOf("?")?"?":"&")+"ajax",e.preventDefault(),n.addClass("ajax-replace--loading"),i.ajax({url:t,success:function(e){i(".search-page").length&&history.replaceState&&history.replaceState({ajaxContent:history.state.ajaxContent.concat([e.html])},"");e=i(e.html);a.replaceWith(e),n.data("ajax-replace-update-history")&&(r=!0,history.pushState)&&history.pushState({html:i("#content").html()},null,n.attr("href")),e.cf_install()},error:function(){document.location.href=n.attr("href")}}),!1}):console.error("ajax-replace-target not found")})}(window.jQuery),function(t){t.cf.installer(".results-list__again",function(e){e.on("click",function(e){t("html, body").animate({scrollTop:0},800),t(".results-filter__form").addClass("collapsable--in"),t(".results-filter__form .collapsable__body").removeAttr("style")})})}(window.jQuery),function(e){e.cf.installer("time",function(e){var t=e.clone(),n=(e.addClass("not-palm-landscape-and-under"),t.addClass("not-lap-and-up"),e.attr("datetime"));t.html(n.substring(8,10)+"/"+n.substring(5,7)+"/"+n.substring(0,4)),e.after(t)}),e.cf.installer(".comment-form",function(e){var t=e.find(".btn-submit");e.on("submit",function(){t.prop("disabled",!0)})})}(window.jQuery,window),function(r){var e,t,n,a,i,o,s,c,l,u,d,p,h;function f(e){var t;"undefined"!=typeof history&&history.pushState&&((t=new URL(window.location)).searchParams.set("page",e),history.pushState({},"",t))}function m(e,t){return e.filter(function(e){return!e.filter||e.filter(t)})}function g(e,t){return Math.max(Math.min(e.findIndex(function(e){return e.id===t}),e.length-1),0)}function v(e,t){return e[g(e,t)]}window.displayDPC=function(t,e){var n,a,i;"undefined"!=typeof React&&t.dpc?(r(document.documentElement).addClass("dpc-modal"),n=document.createElement("div"),document.body.appendChild(n),a=t.dpc_clearing||/clearing/.test(window.location.search),i=l,ReactDOM.render(React.createElement(d,{nextUrl:e,render:function(e){return React.createElement(i,{pages:a?h:p,close:e.close,profile:t,dpc:t.dpc||{}})}}),n)):e&&(window.location=e)},Array.prototype.findIndex=Array.prototype.findIndex||function(e){if(null===this)throw new TypeError("Array.prototype.findIndex called on null or undefined");if("function"!=typeof e)throw new TypeError("callback must be a function");for(var t=Object(this),n=t.length>>>0,a=arguments[1],i=0;i<n;i++)if(e.call(a,t[i],i,t))return i;return-1},r(document).ready(function(){var e=r("#page").data("profile");e&&e.prompt_uni_courses&&window.displayDPC(e)}),"undefined"!=typeof React&&(e=React.createClass({displayName:"ClearingSteps",componentDidMount:function(){r.ajax({method:"POST",url:"/profile/uni_courses_prompted",success:function(){},error:console.error})},getInitialState:function(){return{clearing_terms:!1,clearing_terms_error:null,email_address:"",mobile_no:""}},componentWillMount:function(){this.setState({email_address:this.props.dpc.email_address||"",mobile_no:this.props.dpc.mobile_no||""})},handleEmailAddress:function(e){this.setState({email_address:e.target.value,email_error:null})},handleMobileNo:function(e){this.setState({mobile_no:e.target.value})},handleTerms:function(e){this.setState({clearing_terms:!!e.target.checked,clearing_terms_error:null})},handleSubmit:function(){var e,t,n,a=this;this.state.clearing_terms?this.state.saving||(jQuery("#page.is-guest").length&&!this.state.email_address.length?this.setState({email_error:"Please enter your email address"}):(e=this.props.dpc.email_address||"",t=this.props.dpc.mobile_no||"",(n={email_address:this.state.email_address,mobile_no:this.state.mobile_no,clearing_terms:!0}).mobile_no!==t||n.email_address!==e?(this.setState({saving:!0}),r.ajax({method:"POST",url:"/profile/dpc_contact_prefs",data:{email_address:n.email_address,mobile_no:n.mobile_no,clearing_terms:"1"},success:function(){a.setState({saving:!1}),a.props.onChangeState(n).then(function(){return a.props.onNext()})},error:function(e){a.setState({saving:!1}),console.error(e)}})):this.props.onNext())):jQuery("#page.is-guest").length&&!this.state.email_address.length?this.setState({email_error:"Please enter your email address",clearing_terms_error:"If you want to re
1ceive clearing comms, you must tick the box"}):this.setState({clearing_terms_error:"If you want to receive clearing comms, you must tick the box"})},render:function(){var t=this,e=(new Date).getFullYear();return React.createElement(u,{title:this.props.title,render:function(){return React.createElement("div",{className:"clearing-intro"},React.createElement("ul",{className:"clearing-intro__steps"},React.createElement("li",{className:"clearing-intro__step clearing-intro__step-1"},React.createElement("h2",null,"Step 1"),React.createElement("p",null,"Tell us what you hope to study in September "+e)),React.createElement("li",{className:"clearing-intro__step clearing-intro__step-2"},React.createElement("h2",null,"Step 2"),React.createElement("p",null,"Weâll send you supportive exam guidance and university alerts")),React.createElement("li",{className:"clearing-intro__step clearing-intro__step-3"},React.createElement("h2",null,"Step 3"),React.createElement("p",null,"You wonât miss getting on the right course for you"))),React.createElement("div",{className:"clearing-intro__footer"},jQuery("#page.is-guest").length?React.createElement("div",null,React.createElement("h2",null,"Email address"),React.createElement("p",{className:"clearing-contact-prefs__text-desc"},"Your email address will be used for exam support and Clearing opportunities"),React.createElement("div",{className:"clearing-contact-prefs__email"},t.state.email_error?React.createElement("p",{className:"clearing-error"},t.state.email_error):null,React.createElement("input",{"aria-label":"Your email address",type:"text",value:t.state.email_address,placeholder:"Your email address",onChange:function(e){return t.handleEmailAddress(e)}}))):null,React.createElement("h2",null,"Mobile number"),React.createElement("p",{className:"clearing-contact-prefs__text-desc"},"Your mobile number will be used to send exam support and Clearing opportunities"),React.createElement("div",{className:"clearing-contact-prefs__mobile"},React.createElement("input",{"aria-label":"Your mobile number",type:"text",value:t.state.mobile_no,placeholder:"Your phone number",onChange:function(e){return t.handleMobileNo(e)}})),t.state.clearing_terms_error?React.createElement("p",{className:"clearing-error"},t.state.clearing_terms_error):null,React.createElement("div",{className:"clearing-intro__footer-terms"},React.createElement("div",{className:"clearing-intro__terms"},React.createElement("input",{type:"checkbox",id:"clearing-intro__terms",checked:t.state.clearing_terms,onChange:function(e){return t.handleTerms(e)}}),React.createElement("label",{htmlFor:"clearing-intro__terms"},"I want to receive emails about clearing opportunities from universities and other organisations this summer. (Your data will be processed in accordance with the ",React.createElement("a",{target:"_blank",href:"/pages/privacy"},"GR privacy notice"),")")),React.createElement("div",{className:"clearing-intro__submit"},React.createElement("button",{className:"btn btn--primary",onClick:function(){return t.handleSubmit()}},"Submit"))),React.createElement("div",{className:"clearing-intro__nope"},React.createElement("span",{"aria-role":"button",className:"clearing-intro__nope-text",onClick:function(){return t.props.onClose()}},"Not interested"))))}})}}),t=React.createClass({displayName:"Thanks",render:function(){var e=this;return React.createElement(u,{title:this.props.title,render:function(){return React.createElement("div",{className:"uni-thanks"},React.createElement("button",{className:"btn btn--primary",onClick:function(){return e.props.onClose()}},"Close"))},renderFooter:function(){return React.createElement(c,{onBack:function(){return e.props.onBack()}})}})}}),n=React.createClass({displayName:"CourseSelector",getInitialState:function(){return{courses:[],searchTerm:""}},componentWillMount:function(){this.setState({courses:this.props.dpc.courses})},add:function(e){var t;-1===this.state.courses.indexOf(e)&&((t=[].concat(this.state.courses)).push(e),t.sort(),this.setState({courses:t,searchTerm:""}))},remove:function(t){var e=[].concat(this.state.courses).filter(function(e){return e!==t});this.setState({courses:e})},toggle:function(e,t){t?this.add(e):this.remove(e)},onDontKnow:function(){var e=this;this.setState({courses:["I don't know"]},function(){e.handleNext()})},handleNext:function(){var e,t=this;
1this.state.saving||((e=[].concat(this.state.courses)).length?(this.setState({saving:!0}),r.ajax({method:"POST",url:"/profile/uni_courses",data:{course:e},success:function(){t.setState({saving:!1}),t.props.onChangeState({courses:e}).then(function(){return t.props.onNext()})},error:function(e){t.setState({saving:!1}),console.error(e)}})):this.props.onNext())},render:function(){var n=this,a=this.state.courses,e=this.props.profile.uni_courses,t="I'm open to studying any subject";return React.createElement(u,{title:this.props.title,render:function(){return React.createElement("div",null,React.createElement("p",{className:"uni-choices__subtext"},"Keep your options open, ",React.createElement("strong",null,"choose more than one subject")," for more opportunities"),React.createElement("div",{className:"uni-courses"},React.createElement("ul",{className:"list-bare uni-courses__courses"},e.map(function(t,e){return React.createElement("li",{key:t},React.createElement("input",{type:"checkbox",checked:-1<a.indexOf(t),id:"uc-course-"+e,onChange:function(e){return n.toggle(t,e.target.checked)}}),React.createElement("label",{htmlFor:"uc-course-"+e},t))}),React.createElement("li",{key:t},React.createElement("input",{type:"checkbox",checked:-1<a.indexOf(t),id:"uc-course-dunno",onChange:function(e){return n.toggle(t,e.target.checked)}}),React.createElement("label",{htmlFor:"uc-course-dunno"},t)))))},renderFooter:function(){return React.createElement(c,{onBack:function(){return n.props.onBack()},onNext:function(){return n.handleNext()},saving:n.state.saving})}})}}),a=React.createClass({displayName:"UniList",render:function(){var n,t,e=!!this.props.checks,a=this.props.onChange,i=this.props.onRemove,r=this.props.searchTerm,o=this.props.selections,s=this.props.profile.universities;return e||(s=s.filter(function(e){return-1===o.indexOf(e)})),r.length&&(s=s.filter(function(e){return-1<e.toLowerCase().indexOf(r.toLowerCase())})),e?(n=function(e,t){(t?a:i)(e)},t="I don't know where yet",React.createElement("div",{className:"uni-choices__checks"},React.createElement("ul",{className:"list-bare uni-choices__check-list"},s.map(function(t,e){return React.createElement("li",{key:t},React.createElement("input",{type:"checkbox",checked:-1<o.indexOf(t),id:"uni-"+e,onChange:function(e){return n(t,e.target.checked)}}),React.createElement("label",{htmlFor:"uni-"+e},t))}),React.createElement("li",{key:t},React.createElement("input",{type:"checkbox",checked:-1<o.indexOf(t),id:"uni-dunno",onChange:function(e){return n(t,e.target.checked)}}),React.createElement("label",{htmlFor:"uni-dunno"},t))))):React.createElement("ul",{className:"list-bare uni-choices__search-results"},s.map(function(e){return React.createElement("li",{key:e,"aria-role":"button",onClick:function(){return a(e)},className:"uni-choices__result"},e)}))}}),React.createClass({displayName:"UniSelections",render:function(){var t=this,e=(this.props.onChange,this.props.universities);return React.createElement("div",{className:"uni-choices__selections"},React.createElement("h2",null,"My university choices"),e.map(function(e){return"I don't know"===e?null:React.createElement("button",{key:e,className:"uni-choices__selection",value:e,onClick:function(){return t.props.onChange(e)}},e)}))}}),i=React.createClass({displayName:"UniSelector",getInitialState:function(){return{universities:[],searchTerm:"",focused:!1}},componentWillMount:function(){this.setState({universities:this.props.dpc.universities})},add:function(e){var t;-1===this.state.universities.indexOf(e)&&((t=[].concat(this.state.universities)).push(e),t.sort(),this.setState({universities:t,searchTerm:""}))},remove:function(t){var e=[].concat(this.state.universities).filter(function(e){return e!==t});this.setState({universities:e})},onDontKnow:function(){var e=this;this.setState({universities:["I don't know"]},function(){e.handleNext()})},handleNext:function(){var e=this,t=[].concat(this.state.universities);t.length?r.ajax({method:"POST",url:"/profile/uni_choices",data:{university:t},success:function(){e.props.onChangeState({universities:t}).then(function(){return e.props.onNext()})},error:console.error}):this.props.onNext()},handleFocus:function(){this.setState({focused:!0})},handleBlur:function(){var e=this;window.setTimeout(function(){e.setState({focused:!1})},150)},render:function(){var t=this,e=this.state.searchTerm,n=this.state.universities;return React.createElement(u,{title:this.props.title,render:function(){return React.createElement("div",{className:"uni-choices"},React.createElement(a,{profile:t.props.profile,checks:!0,searchTerm:e,selections:n,onChange:function(e){return t.add(e)},onRemove:function(e){return t.remove(e)}}))},renderFooter:function(){return React.createElement(c,{onBack:function(){return t.props.onBack()},onNext:function(){return t.handleNext()},nextLabel:t.props.nextLabel||"Continue"})}})}}),o=React.createClass({displayName:"YearSelector",getInitialState:function(){return{year:null}},componentDidMount:function(){this.setState({year:this.props.dpc.year}),r.ajax({method:"POST",url:"/profile/uni_courses_prompted",success:function(){},error:console.error})},handleClick:function(e){var t=this;r.ajax({method:"POST",url:"/profile/uni_year",data:{year:e},success:function(){return t.props.onChangeState({year:e}).then(function(){return t.next(e)})},error:console.error})},next:function(e){"not_going"===e?this.props.onClose():this.props.onNext()},render:function(){for(var n=this,e=[],t=new Date,a=7<t.getMonth()?1:0,i=t.getFullYear()+a,r=0;r<4;++r,++i)e.push([i,"Yes (start in "+i+")"]);return e.push(["other","Yes (other year)"]),e.push(["not_going","No"]),e.push(["unsure","Unsure"]),React.createElement(u,{title:this.props.title,render:function(){return React.createElement("div",{className:"uni-years"},e.map(function(e){var t=e[0],e=e[1];return React.createElement("button",{key:t,className:"uni-years__year"+(t==n.state.year?" uni-years__year--selected":""),value:t,onClick:function(){return n.handleClick(t)}},e)}))}})}}),s=React.createClass({displayName:"UnsureUni",getInitialState:function(){return{saving:!1,course_update_emails:!1,mobile_no:""}},componentDidMount:function(){this.setState({course_update_emails:!!this.props.dpc.course_update_emails,mobile_no:this.props.dpc.mobile_no||""})},handleNext:function(e){var t=this,n=(this.setState({saving:!0}
1),{mobile_no:this.state.mobile_no,course_update_emails:this.state.course_update_emails});r.ajax({method:"POST",url:"/profile/dpc_contact_prefs",data:n,success:function(){t.setState({saving:!1}),t.props.onChangeState(n).then(function(){return t.props.onNext()})},error:function(e){t.setState({saving:!1}),console.error(e)}})},render:function(){var t=this;return React.createElement(u,{title:this.props.title,render:function(){return React.createElement("div",{className:"uni-unsure"},React.createElement("p",null,"More than 70,000 students found their university place through Clearing last year. If you're not sure what to expect from results day, sign up for our Clearing alerts. We'll update you with helpful advice and new course spaces that match your interests."),React.createElement("div",{className:"clearing-contact-prefs__mobile"},React.createElement("input",{type:"checkbox",checked:!!t.state.course_update_emails,id:"course_update_emails",onChange:function(e){return t.setState({course_update_emails:!!e.target.checked})}}),React.createElement("label",{htmlFor:"course_update_emails"},"Yes, please email me about these opportunities during the results period")),React.createElement("p",{className:"clearing-contact-prefs__text-desc"},"To also get these opportunities by text, enter your mobile number"),React.createElement("div",{className:"clearing-contact-prefs__mobile"},React.createElement("input",{"aria-label":"Your mobile number",type:"text",value:t.state.mobile_no,placeholder:"Your phone number",onChange:function(e){return t.setState({mobile_no:e.target.value})}})),React.createElement("p",null,"We are always careful with your data and we wonât be sharing your details. The ",React.createElement("a",{href:"/pages/privacy",target:"_blank"},"site privacy notice")," has full details of how your personal data will be used."))},renderFooter:function(){return React.createElement(c,{onBack:function(){return t.props.onBack()},onNext:function(){return t.handleNext()},nextLabel:"Submit"})}})}}),c=function(e){return React.createElement("div",{className:"uni-choices-page__pager"},e.onBack?React.createElement("div",{className:"uni-choices-pager__back"},React.createElement("button",{className:"btn--text",onClick:e.onBack},"« Back")):null,e.children?React.createElement("div",{className:"uni-choices-page__inner"},e.children):null,e.onNext?React.createElement("div",{className:"uni-choices-pager__next"},React.createElement("button",{className:"btn btn--primary",disabled:e.saving,onClick:e.saving?function(){}:e.onNext},e.saving?"Savingâ¦":e.nextLabel||"Continue")):null)},l=React.createClass({displayName:"UniChoices",getInitialState:function(){var e=location.search.match(/page=(.+)/);return{pages:this.props.pages,page:v(this.props.pages,e?e[1]:"").id,universities:[],courses:[]}},componentWillMount:function(){var t=this,e=(r(window).on("popstate",function(){var e=location.search.match(/^page=(.+)/),e=v(t.state.pages,e?e[1]:"").id;t.setState({page:e})}),this.props.dpc);e.pages=m(this.props.pages,e),this.setState(e)},componentWillUnmount:function(){r(window).off("popstate")},onChangeState:function(t){var n=this;return t.pages=m(this.props.pages,Object.assign({},this.state,t)),new Promise(function(e){n.setState(t,e)})},handleClose:function(){this.props.close()},handleBack:function(){var e=g(this.state.pages,this.state.page),e=this.state.pages[Math.max(0,e-1)].id;f(e),this.setState({page:e})},handleNext:function(){var e=g(this.state.pages,this.state.page),e=this.state.pages[Math.min(this.state.pages.length-1,e+1)].id;f(e),this.setState({page:e})},render:function(){var e=this,t=v(this.state.pages,this.state.page),n=t.component;return React.createElement(n,{dpc:this.state,profile:this.props.profile,title:t.title,nextLabel:t.nextLabel,onChangeState:this.onChangeState,onClose:function(){return e.handleClose()},onBack:function(){return e.handleBack()},onNext:function(){return e.handleNext()}})}}),u=React.createClass({displayName:"UniChoicesPage",render:function(){var e=this.props.title,t=this.props.render,n=this.props.renderFooter;return React.createElement("div",{className:"uni-choices-page"+(this.props.id?" uni-choices-page--"+this.props.id:"")},React.createElement("img",{className:"uni-choices-page__logo",src:"/assets/524ba46-181430/application/styles/images/logo-600x140.png",width:"250",alt:""}),e?React.createElement("h1",null,e):null,React.createElement("div",{className:"uni-choices-page__content"},t(this.props)),n?n(this.props):null)}}),d=React.createClass({displayName:"ModalRoot",getInitialState:function(){return{visible:!0}},componentDidMount:function(){var e=this,t=r(window);t.on("resize",function(){t.outerWidth()<729&&e.setState({visible:e.state.visible,needsRotate:!1})}).triggerHandler("resize")},show:function(){this.setVisible(!0)},hide:function(){this.props.nextUrl?window.location=this.props.nextUrl:this.setVisible(!1)}
1,dismiss:function(){r.ajax({method:"POST",url:"/profile/uni_courses_dismiss",success:function(){},error:console.error}),this.hide()},setVisible:function(e){var t=this,n=this.state;e!==n.visible&&((n.visible=e)?(n.pageScroll=r("body").scrollTop(),setTimeout(function(){r("html,body").animate({scrollTop:0},100),setTimeout(function(){r("html,body").css({overflow:"hidden",height:"100%",width:"100%"}),r(window).trigger("resize"),t.setState(n)},90)},300)):(this.setState(n),setTimeout(function(){r("html,body").delay("slow").css({overflow:"",height:"",width:""}).scrollTop(n.pageScroll)},300)))},render:function(){var e=this;return React.createElement("div",{className:"fullscreen__wrapper fullscreen__wrapper--fixed",style:{display:this.state.visible?"":"none"}},React.createElement("div",{className:"modal-fullscreen"},React.createElement("div",{className:"fullscreen__content-container fullscreen__content-container--dpc",key:"fullscreen__content--container"},this.props.render({close:this.hide}),React.createElement("span",{className:"btn btn--fullscreen--close",onClick:function(){return e.dismiss()}},React.createElement("span",{className:"hide"},"Close"))),React.createElement(React.addons.CSSTransitionGroup,{transitionName:"react-transition",transitionEnterTimeout:260,transitionLeaveTimeout:260},function(){if(e.state.needsRotate)return React.createElement("span",{className:"rotate",key:"fullscreen__content__rotate"},React.createElement("strong",null,"rotate")," to view")}())),React.createElement("div",{className:"modal-backdrop fade in "}))}}),p=[{id:"year",title:"Are you interested in applying to university?",component:o},{id:"contact",title:"Unsure about your uni place?",component:s,filter:function(e){return"unsure"===e.
1year||2021===parseInt(""+e.year,10)}},{id:"subjects",title:"What subjects might you like to study at uni?",component:n},{id:"uni",title:"Which universities are you applying to or interested in?",component:i},{id:"thanks",title:"Thank you for submitting",component:t}],h=[{id:"clearing-intro",title:"Don't miss out this year!",component:e},{id:"courses",title:"What subjects might you like to study at uni?",component:n},{id:"uni",title:"Which universities are you applying to or interested in?",component:i,nextLabel:"Finish"},{id:"thanks",title:"Thank you for submitting",component:t}])}(jQuery); 2//# sourceMappingURL=gr.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.