1"use strict";function _toConsumableArray(e){if(Array.isArray(e)){for(var i=0,t=Array(e.length);i<e.length;i++)t[i]=e[i];return t}return Array.from(e)}function _defineProperty(e,i,t){return i in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}function scripts(){var e=document.querySelectorAll(".site__colour");if(e){Array.from(e).forEach(function(s){s.addEventListener("click",function(){var e,i,t=s.querySelector(".var__name").textContent;e=t,(i=document.createElement("textarea")).value=e,document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i)})})}setMenuColumns(),runCustomAccordion(".menu__list",".menu__list__item__button",".menu__list__item__sub",400);var i=document.querySelector(".hero__slideshow"),t=document.querySelector(".hero__slideshow__controls__pause"),s=(createSwiper(i,!0,{init:!0,allowTouchMove:!1,slidesPerView:1,watchSlidesProgress:!0,watchSlidesVisibility:!0,slideVisibleClass:"swiper-slide-visible",speed:1e3,loop:!0,effect:"fade",autoplay:!blnReducedMotion&&{delay:6e3,disableOnInteraction:!1},navigation:{prevEl:".hero__slideshow__controls__prev",nextEl:".hero__slideshow__controls__next"},extendedInit:function(){bindSwiperPause(this,t)},a11y:{enabled:!0,id:"heroSlideshow",prevSlideMessage:"Previous Slideshow Item",nextSlideMessage:"Next Slideshow Item",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}"}}),document.querySelector(".subnav__container")),a=document.querySelector(".main"),l=!1;window.addEventListener("scroll",function(){l||(window.requestAnimationFrame(function(){var e;(e=s)&&(a.offsetTop+a.offsetHeight-10<=window.scrollY+window.innerHeight?e.classList.add("sticky__scroll__active"):e.classList.remove("sticky__scroll__active")),l=!1}),l=!0)});var n=document.querySelector(".subnav__container"),o=!1;if(n&&n.addEventListener("click",function(){o?(o=!1,n.classList.remove("active")):(o=!0,n.classList.add("active"))}),blnHome){var r=document.querySelector(".urgent__list"),d=document.querySelector(".urgent__navigation__pause");if(null!==r)createSwiper(r,!1,{init:!0,autoplay:!blnReducedMotion&&{delay:6e3,disableOnInteraction:!1},loop:!0,navigation:{prevEl:".urgent__navigation__prev",nextEl:".urgent__navigation__next"},slidesPerView:1,spaceBetween:20,speed:1e3,autoHeight:!1,watchSlidesProgress:!0,watchSlidesVisibility:!0,slideVisibleClass:"swiper-slide-visible",checkInView:!1,extendedInit:function(){bindSwiperPause(this,d)},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}"}});var c=document.querySelector(".motto__region p:nth-child(1)"),_=document.querySelector(".motto__region p:nth-child(2)"),u=document.querySelector(".motto__region p:nth-child(3)");splitStringToSpans(c),splitStringToSpans(_),splitStringToSpans(u);var p=document.querySelectorAll(".entry__point__grid__item__container"),g=document.querySelectorAll(".entry__point__popover__item");Array.from(p).forEach(function(e){e.addEventListener("click",function(e){var i=e.currentTarget.getAttribute("data-entry-point-grid-item");g.forEach(function(e){e.getAttribute("data-entry-point-popout-item")==i&&e.classList.add("active")})})}),document.querySelectorAll(".entry__point__popover__item__close__button").forEach(function(e){e.addEventListener("click",function(){g.forEach(function(e){e.classList.remove("active")})})});var v=document.querySelector(".cambridge__location__list"),h=null;if(null!==v){(h=createSwiper(v,!1,{init:!0,autoplay:!1,navigation:{prevEl:".cambridge__location__navigation__prev",nextEl:".cambridge__location__navigation__next"},slidesPerView:1,spaceBetween:20,speed:800,autoHeight:!0,watchSlidesProgress:!0,watchSlidesVisibility:!0,slideVisibleClass:"swiper-slide-visible",checkInView:!1,effect:"fade",fadeEffect:{crossFade:!0},pagination:{el:".cambridge__location__pagination",type:"bullets",clickable:!0,dynamicBullets:!0,dynamicMainBullets:4},breakpoints:{950:{direction:"vertical",spaceBetween:40},mousewheel:{enabled:!0,sensitivity:1,forceToAxis:!1,releaseOnEdges:!0}},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}"}})).on("slideChange",function(){var e;e=h.activeIndex,Array.from(f).forEach(function(e,i){e.classList.remove("active")}),f[e].classList.add("active"),f[e].parentNode.appendChild(f[e])})}var f=document.querySelectorAll(".school__marker__pin");f[0].classList.add("active"),Array.from(f).forEach(function(e,i){e.addEventListener("click",function(e){var a,i=e.currentTarget.dataset.mapPinId;console.log(i),a=i,v.querySelectorAll(".cambridge__location__item").forEach(function(e,i){var t=e.dataset.listLocationId,s=Number(i);if(t==a){if(isNaN(s)||null===h)return void console.warn("schoolSwiperUpd
1ate: invalid index or swiper not ready:",a);h.slideTo(s)}})})});var m=document.querySelector(".our__alumni__list");if(null!==m){var y=function(e){var i=window.innerWidth,a=e.el.querySelector(".swiper-wrapper");if(i<950){var t=Array.from(e.slides);t.some(function(e){return e.classList.contains("grouped-slide")})&&(a.innerHTML="",t.forEach(function(e){e.classList.contains("grouped-slide")?Array.from(e.children).forEach(function(e){var i=document.createElement("li");i.classList.add("swiper-slide"),e.style.removeProperty("width"),e.style.removeProperty("height"),i.appendChild(e),a.appendChild(i)}):a.appendChild(e)}),e.update())}else{var l=Array.from(e.slides);if(!l.some(function(e){return e.classList.contains("grouped-slide")})){a.innerHTML="";var n=[];l.forEach(function(e,i){var t=e.querySelector(".social__item__block");if(n.push(t),2===n.length||i===l.length-1){var s=document.createElement("li");s.classList.add("swiper-slide","grouped-slide"),s.style.display="flex",s.style.flexDirection="row",s.style.justifyContent="space-between",s.style.height="300px",n.forEach(function(e){s.appendChild(e)}),a.appendChild(s),n=[]}})}}e.update()},b=(createSwiper(m,!1,{init:!0,autoplay:!1,effect:"coverflow",grabCursor:!0,centeredSlides:!0,slidesPerView:"auto",navigation:{prevEl:".our__alumni__navigation__prev",nextEl:".our__alumni__navigation__next"},speed:500,autoHeight:!1,watchSlidesProgress:!0,watchSlidesVisibility:!0,slideVisibleClass:"swiper-slide-visible",checkInView:!1,freeMode:!0,mousewheel:{enabled:!0,sensitivity:1,forceToAxis:!0},coverflowEffect:{rotate:0,depth:200,stretch:170,modifier:1},pagination:{el:".our__alumni__pagination",type:"bullets",clickable:!0,dynamicBullets:!0,dynamicMainBullets:3},breakpoints:{450:{coverflowEffect:{rotate:0,stretch:170,depth:300,modifier:1,slideShadows:!1}}},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}"}}),document.getElementById("socialFeed"));null!==b&&createSwiper(b,!1,{init:!0,autoplay:!1,navigation:{prevEl:".social__navigation__prev",nextEl:".social__navigation__next"},slidesPerView:1,spaceBetween:10,direction:"horizontal",watchSlidesProgress:!0,watchSlidesVisibility:!0,slideVisibleClass:"swiper-slide-visible",lazy:!0,freeMode:!0,mousewheel:{enabled:!0,sensitivity:1,forceToAxis:!0,releaseOnEdges:!0},checkInView:!1,pagination:{el:".social__pagination",type:"bullets",clickable:!0,dynamicBullets:!0,dynamicMainBullets:2},on:{init:function(){y(this)},resize:function(){y(this)}},breakpoints:{650:{spaceBetween:10,slidesPerView:2,direction:"horizontal"},950:{spaceBetween:30,slidesPerView:1,direction:"vertical"}},a11y:{enabled:!0,id:"socialFeed",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}"}}),null!==b&&document.querySelectorAll("#socialFeed")[1].removeAttribute("id")}}if(blnLanding||blnHome){var w=document.querySelector(".why__sp__image__list"),S=void 0;null!==w&&(S=createSwiper(w,!1,{init:!0,autoplay:!1,watchSlidesProgress:!0,watchSlidesVisibility:!0,checkInView:!1,speed:500,slidesPerView:1,spaceBetween:10,slideVisibleClass:"swiper-slide-visible",freeMode:!0,mousewheel:{enabled:!0,forceToAxis:!0,releaseOnEdges:!0},breakpoints:{950:{direction:"vertical",slidesPerView:1,spaceBetween:0}},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}"}}));var x=document.querySelector(".why__sp__text__list"),M=void 0;if(null!==x&&(M=createSwiper(x,!1,{init:!0,autoplay:!1,navigation:{prevEl:".why__sp__navigation__prev",nextEl:".why__sp__navigation__next"},watchSlidesProgress:!0,watchSlidesVisibility:!0,checkInView:!1,speed:500,slidesPerView:1,spaceBetween:10,slideVisibleClass:"swiper-slide-visible",freeMode:!0,mou
1sewheel:{enabled:!0,forceToAxis:!0,releaseOnEdges:!0},pagination:{el:".why__sp__pagination",type:"bullets",clickable:!0,dynamicBullets:!0,dynamicMainBullets:2},breakpoints:{950:{direction:"vertical",slidesPerView:1,spaceBetween:230}},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}"}})),S&&M){var E=!1;S.on("setTransition",function(e,i){E||(E=!0,M.setTransition(i),E=!1)}),M.on("setTransition",function(e,i){E||(E=!0,S.setTransition(i),E=!1)}),S.on("progress",function(e,i){E||(E=!0,M.setProgress(i,0),E=!1)}),M.on("progress",function(e,i){E||(E=!0,S.setProgress(i,0),E=!1)})}}if(blnLanding){var L=document.querySelector(".EY__location__list");if(null!==L)createSwiper(L,!1,{init:!0,autoplay:!1,navigation:{prevEl:".ey__locations__navigation__prev",nextEl:".ey__locations__navigation__next"},slidesPerView:"auto",spaceBetween:30,speed:500,autoHeight:!0,watchSlidesProgress:!0,watchSlidesVisibility:!0,slideVisibleClass:"swiper-slide-visible",checkInView:!1,freeMode:!0,mousewheel:{enabled:!0,sensitivity:1,forceToAxis:!0},pagination:{el:".ey__locations__pagination",type:"bullets",clickable:!0,dynamicBullets:!0,dynamicMainBullets:5},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}"}});var T=document.querySelector(".ey__nursery__image__links__list");if(null!==T)createSwiper(T,!1,{init:!0,autoplay:!1,navigation:{prevEl:".ey__stages__navigation__prev",nextEl:".ey__stages__navigation__next"},slidesPerView:"auto",spaceBetween:40,speed:500,freeMode:!0,mousewheel:{enabled:!0,sensitivity:1,forceToAxis:!0},autoHeight:!0,watchSlidesProgress:!0,watchSlidesVisibility:!0,slideVisibleClass:"swiper-slide-visible",checkInView:!1,pagination:{el:".ey__nursery__stages__pagination",type:"bullets",clickable:!0,dynamicBullets:!0,dynamicMainBullets:5},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}"}});var V,P=document.querySelector(".curriculum__subject__title__list"),k=void 0;if(null!==P)k=createSwiper(P,!1,(_defineProperty(V={init:!0,autoplay:!1,navigation:{prevEl:".curriculum__navigation__prev",nextEl:".curriculum__navigation__next"},slidesPerView:"auto",spaceBetween:20,speed:500,autoHeight:!0,watchSlidesProgress:!0,watchSlidesVisibility:!0,slideVisibleClass:"swiper-slide-visible",checkInView:!1,pagination:{el:".curriculum__pagination",type:"bullets",clickable:!0,dynamicBullets:!0,dynamicMainBullets:5},freeMode:!0,mousewheel:{enabled:!0,sensitivity:1,forceToAxis:!0,releaseOnEdges:!0},direction:"vertical",breakpoints:{950:{}}},"direction","vertical"),_defineProperty(V,"a11y",{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}"}),V));var B=document.querySelector(".curriculum__details__list"),C=void 0;if(null!==B&&(C=createSwiper(B,!1,{init:!0,autoplay:!1,allowTouchMove:!1,slidesPerView:"auto",spaceBetween:0,speed:500,autoHeight:!1,watchSlidesProgress:!0,watchSlidesVisibility:!0,slideVisibleClass:"swiper-slide-visible",checkInView:!1,effect:"fade",fadeEffect:{crossFade:!0},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}"}})),k&&C){var q=!1;k.on("slideChange",function(){q||(q=!0,C.slideTo(this.activeIndex),q=!1)}),P.querySelectorAll(".swiper-slide").forEach(function(e,i){e.addEventListener("click",function(){k.slideTo(i),C.slideTo(i)})})}var A=document.querySelector(".spotlight__list");if(null!==A)createSwiper(A,!1,{init:!0,autoplay:!1,navigation:{prevEl:".spotlight__navigation__prev",nextEl:".spotlight__navigation__next"},slidesPerView:1,speed:500,autoHeight:!0,watchSlidesProgress:!0,watchSlidesVisibility:!0,slideVisibleClass:"swiper-slide-visible",checkInView:!1,effect:"fade",fadeEffect:{crossFade:!0},pagination:{el:".spotlight__pagination",type:"bullets",clickable:!0,dynamicBullets:!0,dynamicMainBullets:5},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}"}});var I=document.querySelector(".text__offer__list");if(null!==I)createSwiper(I,!1,{init:!0,autoplay:!1,navigation:{prevEl:".text__offers__navigation__prev",nextEl:".text__offers__navigation__next"},slidesPerView:1,speed:500,autoHeight:!1,effect:"fade",fadeEffect:{crossFade:!0},watchSlidesProgress:!0,watchSlidesVisibility:!0,slideVisibleClass:"swiper-slide-visible",checkInView:!1,direction:"vertical",pagination:{el:".text__offers__pagination",type:"bullets",clickable:!0,dynamicBullets:!0,dynamicMainBullets:4},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}"}});var N=document.querySelector(".co__curricular__list"),H=document.querySelector(".co__curricular__pause"),G=document.querySelector(".co__curricular__navigation__prev"),O=document.querySelector(".co__curricular__navigation__next");if(null!==N){var F=!1,D=createSwiper(N,!1,{init:!0,navigation:!1,slidesPerView:"auto",spaceBetween:0,speed:4e3,freeMode:!0,mou
1sewheel:{enabled:!0,sensitivity:1,forceToAxis:!0},centeredSlides:!1,autoHeight:!0,watchSlidesProgress:!0,watchSlidesVisibility:!0,autoplay:blnReducedMotion?{delay:5e3,disableOnInteraction:!0}:{delay:0,disableOnInteraction:!1,pauseOnMouseEnter:!1},loop:!0,loopAdditionalSlides:2,initialSlide:0,cssMode:!1,on:{init:function(){this.wrapperEl.style.transitionTimingFunction="linear"}},slideVisibleClass:"swiper-slide-visible",checkInView:!1,pagination:{el:".co__curricular__pagination",type:"bullets",clickable:!0},breakpoints:{600:{spaceBetween:0,slidesPerView:2},1000:{spaceBetween:0,slidesPerView:3}},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}"}});G&&G.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),D.autoplay.stop(),D.params.speed=500,D.wrapperEl.style.transitionDuration="500ms",D.wrapperEl.style.transitionTimingFunction="ease-out",D.slidePrev(),setTimeout(function(){F=!0,H&&H.classList.add("active")},550)}),O&&O.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),D.autoplay.stop(),D.params.speed=500,D.wrapperEl.style.transitionDuration="500ms",D.wrapperEl.style.transitionTimingFunction="ease-out",D.slideNext(),setTimeout(function(){F=!0,H&&H.classList.add("active")},550)}),H&&H.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),F?(D.params.speed=4e3,D.wrapperEl.style.transitionDuration="4000ms",D.wrapperEl.style.transitionTimingFunction="linear",D.autoplay.start(),H.classList.remove("active"),F=!1):(D.autoplay.stop(),D.params.speed=200,D.wrapperEl.style.transitionDuration="200ms",setTimeout(function(){F=!0,H.classList.add("active")},250))})}var Y=document.querySelectorAll("[data-load-svg]");0<Y.length&&Y.forEach(function(i){var e=i.dataset.loadSvg;fetch(e).then(function(e){return e.text()}).then(function(e){i.innerHTML=e}).catch(function(e){return console.error("Error loading SVG:",e)})});var z=document.querySelector(".icon__offer__button__container"),j=void 0;null!==z&&(j=createSwiper(z,!1,{init:!0,autoplay:!1,navigation:{prevEl:".icon__offerings__button__navigation__prev",nextEl:".icon__offerings__button__navigation__next"},slidesPerView:"auto",spaceBetween:0,speed:500,autoHeight:!0,freeMode:!0,mousewheel:{enabled:!0,sensitivity:1,forceToAxis:!0},watchSlidesProgress:!0,watchSlidesVisibility:!0,slideVisibleClass:"swiper-slide-visible",checkInView:!1,a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}"}}));var R=document.querySelector(".icon__offer__icon__details__container");null!==R&&createSwiper(R,!1,{init:!0,autoplay:!1,slidesPerView:1,spaceBetween:20,speed:500,autoHeight:!0,watchSlidesProgress:!0,watchSlidesVisibility:!0,slideVisibleClass:"swiper-slide-visible",checkInView:!1,thumbs:{swiper:j},effect:"fade",fadeEffect:{crossFade:!0},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}"}});var X=document.querySelector(".facilities__list");if(null!==X){var W=createSwiper(X,!1,{init:!0,autoplay:!1,navigation:{prevEl:".facilities__navigation__prev",nextEl:".facilities__navigation__next"},slidesPerView:"auto",spaceBetween:10,speed:500,freeMode:!0,mousewheel:{enabled:!0,sensitivity:1,forceToAxis:!0,releaseOnEdges:!0},autoHeight:!0,watchSlidesProgress:!0,watchSlidesVisibility:!0,slideVisibleClass:"swiper-slide-visible",checkInView:!1,pagination:{el:".facilities__pagination",type:"bullets",clickable:!0,dynamicBullets:!0,dynamicMainBullets:4},breakpoints:{950:{direction:"vertical"}},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}"}}),Q=document.querySelector(".facilities__section__content__block");if(Q){Q.addEventListener("wheel",function(e){if(!(window.innerWidth<950)){var i=e.deltaY||e.deltaX,t=W.getTranslate(),s=-W.virtualSize+W.size;
1if(!(0<=t&&i<0||t<=s&&0<i)){e.preventDefault(),e.stopPropagation();var a=t-1*i,l=Math.max(s,Math.min(0,a));W.setTranslate(l),W.updateProgress(),W.updateSlidesClasses()}}},{passive:!1})}}var U=document.querySelector(".outcome__objective__list");if(null!==U)createSwiper(U,!1,{init:!0,navigation:{prevEl:".outcome__objective__navigation__prev",nextEl:".outcome__objective__navigation__next"},slidesPerView:"auto",speed:6e3,autoHeight:!1,autoplay:blnReducedMotion?{delay:5e3,disableOnInteraction:!0}:{delay:2e3,disableOnInteraction:!1},watchSlidesProgress:!0,watchSlidesVisibility:!0,slideVisibleClass:"swiper-slide-visible",checkInView:!1,breakpoints:{950:{}},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}"}});var $=document.querySelector(".core__principles__list");if(null!==$)createSwiper($,!1,{init:!0,autoplay:!1,navigation:{prevEl:".core__principles__navigation__prev",nextEl:".core__principles__navigation__next"},slidesPerView:"auto",spaceBetween:50,speed:500,autoHeight:!0,watchSlidesProgress:!0,watchSlidesVisibility:!0,slideVisibleClass:"swiper-slide-visible",checkInView:!1,freeMode:!0,mousewheel:{enabled:!0,sensitivity:1,forceToAxis:!0},pagination:{el:".core__principles__pagination",type:"bullets",clickable:!0},breakpoints:{950:{spaceBetween:70}},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}"}});var J=document.querySelector(".opportunities__section__image__wall");if(null!==J)createSwiper(J,!1,{init:!0,autoplay:!1,navigation:{prevEl:".opportunities__gallery__navigation__prev",nextEl:".opportunities__gallery__navigation__next"},slidesPerView:"auto",speed:500,autoHeight:!0,watchSlidesProgress:!0,watchSlidesVisibility:!0,freeMode:!0,mousewheel:{enabled:!0,sensitivity:1,forceToAxis:!0},slideVisibleClass:"swiper-slide-visible",checkInView:!1,pagination:{el:".opportunities__gallery__pagination",type:"bullets",clickable:!0},breakpoints:{950:{enabled:!1}},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}"}});var K=void 0,Z=void 0,ee=void 0,ie=document.querySelector(".testimonial__image__list");if(null!==ie)Z=createSwiper(ie,!1,{init:!0,autoplay:!1,slidesPerView:"auto",speed:500,autoHeight:!1,watchSlidesProgress:!0,watchSlidesVisibility:!0,slideVisibleClass:"swiper-slide-visible",checkInView:!1,loopAdditionalSlides:3,freeMode:!0,mousewheel:{enabled:!0,sensitivity:1,forceToAxis:!0},navigation:{prevEl:".testimonials__navigation__prev",nextEl:".testimonials__navigation__next"},pagination:{el:".testimonials__pagination",type:"bullets",clickable:!0,dynamicBullets:!0,dynamicMainBullets:4},breakpoints:{950:{direction:"vertical",spaceBetween:30,loop:!0,loopAdditionalSlides:3}},on:{slideChange:function(){this.slides.forEach(function(e){return e.classList.remove("active")}),this.slides[this.activeIndex].classList.add("active"),K&&ee&&(K.slideToLoop(this.realIndex),ee.slideToLoop(this.realIndex))},init:function(){this.slides[this.activeIndex].classList.add("active")}},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}"}}),ie.querySelectorAll(".swiper-slide:not(.swiper-slide-duplicate)").forEach(function(e,i){e.addEventListener("click",function(){Z.slideToLoop(i),K&&ee&&(K.slideToLoop(i),ee.slideToLoop(i))})});var te=document.querySelector(".testimonial__image__list__large");null!==te&&(K=createSwiper(te,!1,{init:!0,autoplay:!1,slidesPerView:1,speed:500,autoHeight:!1,watchSlidesProgress:!0,watchSlidesVisibility:!0,slideVisibleClass:"swiper-slide-visible",checkInView:!1,effect:"fade",freeMode:!0,mou
1sewheel:{enabled:!0,sensitivity:1,forceToAxis:!0},fadeEffect:{crossFade:!0},navigation:{prevEl:".testimonials__navigation__prev",nextEl:".testimonials__navigation__next"},breakpoints:{950:{loop:!0,loopAdditionalSlides:3}},on:{slideChange:function(){Z&&Z.slideToLoop(this.realIndex),ee&&ee.slideToLoop(this.realIndex)}},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}"}}));var se=document.querySelector(".testimonial__text__list");null!==se&&(ee=createSwiper(se,!1,{init:!0,autoplay:!1,slidesPerView:1,spaceBetween:20,speed:500,autoHeight:!1,watchSlidesProgress:!0,watchSlidesVisibility:!0,slideVisibleClass:"swiper-slide-visible",checkInView:!1,effect:"fade",loopAdditionalSlides:3,fadeEffect:{crossFade:!0},navigation:{prevEl:".testimonials__navigation__prev",nextEl:".testimonials__navigation__next"},breakpoints:{1024:{loop:!0,loopAdditionalSlides:3}},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}"}}))}if(blnAdmissions){var ae=document.querySelectorAll("li[data-admission-school]"),le=document.querySelector(".mason--admissions");if(ae){var ne=new Set(Array.from(ae).map(function(e){return e.dataset.admissionSchool})),oe=Array.from(ne),re=document.querySelector(".process__filter__buttons"),de=oe[0],ce=[];le.setAttribute("data-active-title",de),oe.forEach(function(e){var i=document.createElement("div");i.className="filter__button button__link",i.setAttribute("data-filter-title",e);var t=document.createElement("a");t.href="#admissions__process",t.className="reset__a",t.setAttribute("aria-label","show admissions process for "+e+" (scrolls to content)"),(t.textContent=e)===de&&(i.className="filter__button button__link reset__button active"),i.appendChild(t),re.appendChild(i),ce.push(i),i.addEventListener("click",function(){ce.forEach(function(e){e===i?(e.classList.add("active"),le.setAttribute("data-active-title",e.textContent)):e.classList.remove("active")}),ae.forEach(function(e){e.dataset.admissionSchool==t.textContent?e.classList.add("active"):e.classList.remove("active")})})}),ae.forEach(function(e){e.dataset.admissionSchool==de&&e.classList.add("active")})}var _e=document.querySelector(".admissions__steps__center"),ue=document.querySelector(".admissions__steps__center__progress"),pe=document.querySelector(".admissions__steps__center__point--end");if(_e&&ue){var ge=function(){var e=_e.getBoundingClientRect().top+window.scrollY,i=e+_e.offsetHeight,t=window.scrollY+.65*window.innerHeight,s=0;e<t&&t<i?(s=(t-e)/(i-e),pe&&pe.classList.remove("active")):i<=t&&(s=1,pe&&pe.classList.add("active")),ue.style.transform="scaleY("+s+")"};document.addEventListener("scroll",ge),ge()}}if(blnParents){var ve=document.querySelector(".system__details__list");if(null!==ve){var he=function(t){me.forEach(function(e,i){i===t?e.classList.add("active"):e.classList.remove("active")})},fe=createSwiper(ve,!1,{init:!0,autoplay:!1,navigation:{prevEl:".systems__navigation__prev",nextEl:".systems__navigation__next"},slidesPerView:1,spaceBetween:20,speed:500,autoHeight:!0,watchSlidesProgress:!0,watchSlidesVisibility:!0,slideVisibleClass:"swiper-slide-visible",checkInView:!1,pagination:{el:".systems__pagination",type:"bullets",clickable:!0,dynamicBullets:!0,dynamicMainBullets:4},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}"}}),me=document.querySelectorAll(".system__title__item__button"),ye=document.querySelectorAll(".system__details__item");fe.on("slideChange",function(){he(this.activeIndex)}),me.forEach(function(e,i){0===i&&e.classList.add("active"),e.addEventListener("click",function(){var t=this.getAttribute("data-system-button-title"),s=-1;ye.forEach(function(e,i){e.getAttribute("data-system-details-title")===t&&(s=i)}),-1!==s&&fe&&fe.slideTo(s)})}),he(0)}var be=document.querySelector(".events__list"),we=document.querySelector(".events__filter"),Se=null;if(be&&we){var xe=function(e){e.updateSlides(),e.updateProgress(),e.updateSize();var i=window.innerWidth,a=e.el.querySelector(".swiper-wrapper"),l=Array.from(a.children);if(i<950)l.some(function(e){return e.classList.contains("grouped-slide")})&&(a.innerHTML="",l.forEach(function(e){e.classList.contains("grouped-slide")?[].concat(_toConsumableArray(e.children)).forEac
1h(function(e){var i=document.createElement("div");i.className="swiper-slide",i.appendChild(e),a.appendChild(i)}):a.appendChild(e)}));else if(!l.some(function(e){return e.classList.contains("grouped-slide")})){a.innerHTML="";var n=[];l.forEach(function(e,i){var t=e.querySelector(".event__date__group");if(t&&(n.push(t),2===n.length||i===l.length-1)){var s=document.createElement("div");s.className="swiper-slide grouped-slide",n.forEach(function(e){return s.appendChild(e)}),a.appendChild(s),n=[]}})}e.update()},Me=function(){var d=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"all",e=Object.keys(Ve).sort(),c="";e.forEach(function(e){var i=Ve[e];if("all"!==d&&(i=i.filter(function(e){return e.calId===d})),0!==i.length){var t=e.substring(0,4),s=e.substring(4,6),a=e.substring(6,8),l=new Date(t,s-1,a),n=l.toLocaleDateString("en-GB",{weekday:"long"}),o=l.toLocaleDateString("en-GB",{day:"2-digit"}),r=l.toLocaleDateString("en-GB",{month:"long"});c+='\n <div class="swiper-slide">\n <div class="event__date__group">\n <div class="event__date__card">\n <div class="event__date__header">\n <span class="day__name">'+n+'</span>\n <span class="day__number">'+o+'</span>\n <span class="month__name">'+r+'</span>\n </div>\n </div>\n <div class="event__items anim__up__10 delay__1600">',i.forEach(function(e){c+='\n <div class="event__item " data-cal-id="'+e.calId+'">\n <h3 class="event__title">'+e.title+'</h3>\n <p class="event__time">'+e.time+'</p>\n <p class="event__calendar">'+e.calendar+"</p>\n </div>"}),c+="\n </div>\n </div>\n </div>"}}),c?(Pe.innerHTML=c,Se&&(xe(Se),Se.slideTo(0))):Pe.innerHTML="<p>No events found for this filter.</p>"},Ee=document.querySelectorAll(".events__item"),Le=new Map;Ee.forEach(function(e){var i=e.querySelector(".hidden-calendar-data"),t=i?i.textContent.trim():"",s=e.dataset.eventCalid;t&&s&&Le.set(s,t)});var Te='<button class="filter__btn group__anim__up reset__button filter__btn--active" data-filter="all"><span>All Events</span></button>';Le.forEach(function(e,i){Te+='<button class="filter__btn group__anim__up reset__button" data-filter="'+i+'"><span>'+e+"</span></button>"}),we.innerHTML=Te;var Ve={};Ee.forEach(function(e){var i=e.dataset.eventDate;Ve[i]||(Ve[i]=[]);var t=e.querySelector(".hidden-calendar-data"),s=t?t.textContent.trim():"";Ve[i].push({date:i,time:e.dataset.eventTime,title:e.dataset.eventTitle,calendar:s,calId:e.dataset.eventCalid})}),Ee.forEach(function(e){e.remove()});var Pe=be.querySelector(".swiper-wrapper");Pe||((Pe=document.createElement("ul")).className="swiper-wrapper reset__ul container",be.appendChild(Pe)),be.classList.add("swiper"),Me("all"),Se=createSwiper(be,!1,{init:!0,autoplay:!1,navigation:{prevEl:".events__navigation__prev",nextEl:".events__navigation__next"},slidesPerView:1,spaceBetween:20,speed:500,direction:"horizontal",autoHeight:!0,watchSlidesProgress:!0,watchSlidesVisibility:!0,slideVisibleClass:"swiper-slide-visible",checkInView:!1,freeMode:!0,mousewheel:{enabled:!0,sensitivity:1,forceToAxis:!0,releaseOnEdges:!0},pagination:{el:".events__pagination",type:"bullets",clickable:!0,dynamicBullets:!0,dynamicMainBullets:4},on:{init:function(){xe(this)},resize:function(){xe(this)}},breakpoints:{950:{spaceBetween:40,slidesPerView:1,direction:"vertical"}},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}"}});
1var ke=we.querySelectorAll(".filter__btn");ke.forEach(function(e){e.addEventListener("click",function(){ke.forEach(function(e){return e.classList.remove("filter__btn--active")}),this.classList.add("filter__btn--active");var e=this.dataset.filter;Me(e)})})}}if(blnSupportUs){var Be=document.querySelector(".partnership__feature__list");if(null!==Be)createSwiper(Be,!1,{init:!0,autoplay:!1,navigation:{prevEl:".partnerships__spotlight__navigation__prev",nextEl:".partnerships__spotlight__navigation__next"},slidesPerView:1,speed:500,effect:"fade",fadeEffect:{crossFade:!0},autoHeight:!1,watchSlidesProgress:!0,watchSlidesVisibility:!0,slideVisibleClass:"swiper-slide-visible",checkInView:!1,pagination:{el:".partnerships__spotlight__pagination",type:"bullets",clickable:!0,dynamicBullets:!0,dynamicMainBullets:4},breakpoints:{},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}"}});var Ce=document.querySelector(".community__partnerships__list");if(null!==Ce)createSwiper(Ce,!1,{init:!0,autoplay:!1,navigation:{prevEl:".community__partnerships__navigation__prev",nextEl:".community__partnerships__navigation__next"},slidesPerView:1,spaceBetween:20,speed:500,effect:"fade",fadeEffect:{crossFade:!0},autoHeight:!1,watchSlidesProgress:!0,watchSlidesVisibility:!0,slideVisibleClass:"swiper-slide-visible",checkInView:!1,pagination:{el:".community__partnerships__pagination",type:"bullets",clickable:!0,dynamicBullets:!0,dynamicMainBullets:4},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}"}})}if(blnInner){var qe=document.querySelector(".main"),Ae=qe.getBoundingClientRect().height;qe&&1400<Ae?qe.setAttribute("data-gradient","show"):qe.setAttribute("data-gradient","hide")}if(blnInner&&!blnAdmin){manageContentTables();var Ie=document.querySelector(".blockquote__list");if(null!==Ie){var Ne=document.querySelector(".blockquote__navigation.swiper__navigation");if(!Ne.querySelector(".blockquote__navigation__prev")){var He=document.createElement("div");He.setAttribute("role","button"),He.className="swiper__navigation__button swiper__navigation__button__prev reset__button blockquote__navigation__prev",He.title="Previous Quote",He.innerHTML='<i class="far fa-arrow-left"></i>',Ne.appendChild(He)}if(!Ne.querySelector(".blockquote__navigation__next")){var Ge=document.createElement("div");Ge.setAttribute("role","button"),Ge.className="swiper__navigation__button swiper__navigation__button__next reset__button blockquote__navigation__next",Ge.title="Next Quote",Ge.innerHTML='<i class="far fa-arrow-right"></i>',Ne.appendChild(Ge)}if(!Ne.querySelector(".blockquote__pagination")){var Oe=document.createElement("div");Oe.className="swiper__pagination blockquote__pagination",Ne.appendChild(Oe)}if(Ne)for(var Fe=Ne.childNodes,De=Fe.length-1;0<=De;De--){var Ye=Fe[De];Ye.nodeType===Node.TEXT_NODE&&/^[\s\u00A0]*$/.test(Ye.nodeValue)&&Ne.removeChild(Ye)}createSwiper(Ie,!1,{init:!0,autoplay:!1,navigation:{prevEl:".blockquote__navigation__prev",nextEl:".blockquote__navigation__next"},slidesPerView:1,spaceBetween:30,freeMode:!0,mousewheel:{enabled:!0,sensitivity:1,forceToAxis:!0,releaseOnEdges:!0},speed:500,autoHeight:!0,watchSlidesProgress:!0,watchSlidesVisibility:!0,slideVisibleClass:"swiper-slide-visible",checkInView:!1,pagination:{el:".blockquote__pagination",type:"bullets",clickable:!0,dynamicBullets:!0,dynamicMainBullets:2},breakpoints:{950:{direction:"vertical"}},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}"}})}}blnForm&&document.querySelectorAll(".content__form, form.content__block__form").forEach(function(e,i){var t=e.querySelectorAll(".form__page");if(1<t.length){var a=document.createElement("div");a.classList.add("form__page__progress"),a.dataset.formcount=i,e.parentNode.insertBefore(a,e),t.forEach(function(e,i){var t=document.createElement("div");t.classList.add("form__page__progress__item"),0===i&&t.classList.add("active"),t.dataset.pageindex=i+1;var s=document.createElement("div");s.classList.add("form__page__progress__item__circle"),s.innerHTML="<span>"+(i+1)+"</span>",t.appendChild(s),a.appendChild(t)}),document.addEventListener("click",function(e){if(e.target.closest(".form__page__pagination")){var i=e.target.closest(".form__page__pagination"),t=i.dataset.pageTo,s=i.closest("form"),a=s.parentNode.querySelector(".form__page__progress");setTimeout(function(){0<s.querySelectorAll(".content__form__error, .content__block__form__error").length||(a.querySelector('[data-pageindex="'+t+'"]').classList.add("active"),Array.from(a.children).forEac
1h(function(e){e.dataset.pageindex!==t&&e.classList.remove("active")}))},250)}})}})}function swiperPauseToggle(e){var i=e.target.closest("[data-pause]"),t=i.getAttribute("data-pause"),s=window[t];s&&(getCurrentAutoplayState(s)?(s.autoplay.stop(),i.classList.add("active")):(s.autoplay.start(),i.classList.remove("active")))}function customScroll(e){}function mapLoaded(e,i){}var swiperPauseButtons=document.querySelectorAll("[data-pause]");if(swiperPauseButtons&&swiperPauseButtons.forEach(function(e){e.addEventListener("click",swiperPauseToggle)}),blnAdmin){$("#related__choose").e4eDialog({diagTitle:"Choose Custom Related Image Links ",buttons:["Save"],buttonClasses:["primary"],buttonFunctions:["updateSelected()"],showClose:!1,resizeable:!1,allowDialogs:!0,width:"1250px",height:"67vh"});var activatePinSetter=!1;if(activatePinSetter){var showTooltip=function(e){pt.x=e.clientX,pt.y=e.clientY;var i=pt.matrixTransform(svgEl.getScreenCTM().inverse()),t=Math.round(i.x)-customOffsetX,s=Math.round(i.y)-customOffsetY;tooltipEl.textContent="x: "+t+", y: "+s+" - click to copy coordinated to clipboard",tooltipEl.style.display="block"},copyCoordinates=function(e){pt.x=e.clientX,pt.y=e.clientY;var i=pt.matrixTransform(svgEl.getScreenCTM().inverse()),t='x="'+(Math.round(i.x)-customOffsetX)+'" y="'+(Math.round(i.y)-customOffsetY)+'"';if(navigator.clipboard&&navigator.clipboard.writeText)navigator.clipboard.writeText(t).then(function(){console.log("Copied to clipboard: "+t)}).catch(function(e){console.error("Failed to copy: ",e)});else{var s=document.createElement("textarea");s.value=t,document.body.appendChild(s),s.select();try{document.execCommand("copy"),console.log("Copied to clipboard (fallback): "+t);var a=tooltipEl.textContent;tooltipEl.textContent="â
coordinates copied to clipboard!",setTimeout(function(){tooltipEl.textContent=a},2e3)}catch(e){console.error("Fallback copy failed: ",e)}document.body.removeChild(s)}},hideTooltip=function(){tooltipEl.textContent="To get coordinates, hover over the map to find the coordinates"},svgEl=document.getElementById("cambridge__map__svg"),tooltipEl=document.getElementById("svgTooltip");tooltipEl.classList.add("active");var pt=svgEl.createSVGPoint(),customOffsetX=8,customOffsetY=8;svgEl.addEventListener("mousemove",showTooltip),svgEl.addEventListener("click",copyCoordinates),svgEl.addEventListener("mouseleave",hideTooltip)}}
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.