!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Logic={})}(this,(function(e){"use strict";function t(e){"false"===e.getAttribute("aria-expanded")?e.setAttribute("aria-expanded",!0):e.setAttribute("aria-expanded",!1)}function n(){n=function(){return t};var e,t={},i=Object.prototype,o=i.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function d(e,t,n,i){var o=t&&t.prototype instanceof y?t:y,a=Object.create(o.prototype),s=new P(i||[]);return r(a,"_invoke",{value:T(e,n,s)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var h="suspendedStart",f="suspendedYield",m="executing",v="completed",g={};function y(){}function b(){}function w(){}var L={};u(L,s,(function(){return this}));var E=Object.getPrototypeOf,_=E&&E(E(D([])));_&&_!==i&&o.call(_,s)&&(L=_);var S=w.prototype=y.prototype=Object.create(L);function k(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(i,r,a,s){var l=p(e[i],e,r);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;r(this,"_invoke",{value:function(e,o){function r(){return new t((function(t,i){n(e,o,t,i)}))}return i=i?i.then(r,r):r()}})}function T(t,n,i){var o=h;return function(r,a){if(o===m)throw new Error("Generator is already running");if(o===v){if("throw"===r)throw a;return{value:e,done:!0}}for(i.method=r,i.arg=a;;){var s=i.delegate;if(s){var l=A(s,i);if(l){if(l===g)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(o===h)throw o=v,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);o=m;var c=p(t,n,i);if("normal"===c.type){if(o=i.done?v:f,c.arg===g)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(o=v,i.method="throw",i.arg=c.arg)}}}function A(t,n){var i=n.method,o=t.iterator[i];if(o===e)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=e,A(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var r=p(o,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var a=r.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function q(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(q,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return r.next=r}}throw new TypeError(typeof t+" is not iterable")}return b.prototype=w,r(S,"constructor",{value:w,configurable:!0}),r(w,"constructor",{value:b,configurable:!0}),b.displayName=u(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,u(e,c,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},k(C.prototype),u(C.prototype,l,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,i,o,r){void 0===r&&(r=Promise);var a=new C(d(e,n,i,o),r);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(S),u(S,c,"Generator"),u(S,s,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},t.values=D,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(x),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(i,o){return s.type="throw",s.arg=t,n.next=i,o&&(n.method="next",n.arg=e),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var o=i.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:D(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}function i(e,t,n,i,o,r,a){try{var s=e[r](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var a=e.apply(t,n);function s(e){i(a,o,r,s,l,"next",e)}function l(e){i(a,o,r,s,l,"throw",e)}s(void 0)}))}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(o=i.key,r=void 0,"symbol"==typeof(r=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?r:String(r)),i)}var o,r}function s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function d(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return d(this,n)}}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,r,a,s=[],l=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=r.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||f(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var v=function(){var e=document.querySelectorAll(".sub-nav-wrapper");e.length&&e.forEach((function(e){var t=e.querySelector(".sub-nav-container"),n=e.querySelector(".sub-nav"),i=e.querySelectorAll(".sub-nav-item"),o=i.length,r=n.offsetWidth/o,a=e.querySelector(".left-arrow"),s=e.querySelector(".right-arrow"),l=e.querySelector(".current"),c=document.querySelectorAll(".a-to-z"),u="",d="",p="",h="";function f(e){e.classList.remove("current"),e.removeAttribute("aria-current")}function m(e){for(var t=0;t<i.length;t++)f(i[t]);e.target.classList.add("current"),e.target.setAttribute("aria-current","page")}a.addEventListener("click",(function(){u=t.scrollLeft-r,L(t,u,300),setTimeout(w,500)})),a.addEventListener("mousedown",(function(e){e.preventDefault()})),s.addEventListener("click",(function(){u=t.scrollLeft+r,L(t,u,300),setTimeout(w,500)})),s.addEventListener("mousedown",(function(e){e.preventDefault()})),t.addEventListener("scroll",w),window.addEventListener("resize",(function(){var e;clearTimeout(e),e=setTimeout((function(){w()}),1e3)}));var v,g=window.location.hash;if(0===c.length)for(var y=0;y<i.length;y++)i[y].addEventListener("mousedown",(function(e){e.preventDefault()})),i[y].addEventListener("click",(function(e){m(e)})),(g||0!==y)&&f(i[y]),p=(d=i[y].attributes[0].value).replace(/\s+/g,"-").toLowerCase(),window.location.href.indexOf(p)>-1&&(h=e.querySelectorAll("[data-current='"+d+"']"));for(var b=0;b<h.length;b++)(v=h[b]).classList.add("current"),v.setAttribute("aria-current","page");function w(){var e=window.innerWidth-t.getBoundingClientRect().right;window.innerWidth-n.getBoundingClientRect().right>=e-1?s.classList.add("hide"):s.classList.remove("hide"),t.scrollLeft>0?a.classList.remove("hide"):a.classList.add("hide"),a.style.opacity=1,s.style.opacity=1}function L(e,t,n){var i=e.scrollLeft,o=t-i,r=0;!function t(){r+=20;var a=Math.easeInOutQuad(r,i,o,n);e.scrollLeft=a,r<n&&setTimeout(t,20)}()}setTimeout(w,500),Math.easeInOutQuad=function(e,t,n,i){return(e/=i/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t};!function(){var n=e.querySelector(".current");if(n){if(n===l)return;var o,r=l=n,a=i,s=window.innerWidth/2,c=l.offsetWidth;a.forEach((function(e){if(r===e){var t=parseInt(window.getComputedStyle(e.parentElement).paddingRight);o=e.offsetLeft-s+c/2+t}})),L(t,o,500)}}()}))},g=function(){if(!document.querySelector('[data-anchor="true"]'))return!1;v();var e=document.querySelectorAll('[data-anchor="true"]'),t=!1,n=new function(){this.isScrolling=!1;var e=this;document.querySelector(".course-page-header").querySelectorAll('a[href^="#"]').forEach((function(t){t.addEventListener("click",(function(){e.isScrolling=!0}))}));!function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:66;e&&"function"==typeof e&&window.addEventListener("scroll",(function(){window.clearTimeout(t),t=setTimeout(e,n)}),!1)}((function(){e.isScrolling=!1}))};window.addEventListener("scroll",(function(){n.isScrolling||t||(window.requestAnimationFrame((function(){var n;n=[],e.forEach((function(e){var t=e.getBoundingClientRect().top;t>60&&t<window.innerHeight/2&&""!==e.id&&n.push(e.id)})),0!==n.length&&(window.history.replaceState(null,null,"#"+n[0]),v()),t=!1})),t=!0)}))};function y(e,t,n,i,o){document.querySelectorAll(e).forEach((function(e){var r=e.querySelectorAll(t),a=e.querySelectorAll(n),s=[];performance.now(),a.forEach((function(e,t){var n=new Image;n.onload=function(){s.push(t),l&&(e.src=n.src,e.removeAttribute("data-src")),s.length===a.length&&(performance.now(),s=[],!0===o?function(e,t){e.forEach((function(e){e.style.opacity="1"})),t()}(r,i):i())};var l=e.hasAttribute("data-src");n.src=l?e.getAttribute("data-src"):e.getAttribute("src")}))}))}function b(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Array.from(document.querySelectorAll(e)).forEach((function(e){return function(e){var n=e.querySelectorAll(t),i=0;function o(){for(var e=0;e<n.length;e++)n[e].clientHeight>i&&(i=n[e].clientHeight)}function r(){i=0,o();for(var e=0;e<n.length;e++){var t=i-n[e].clientHeight;n[e].style.marginTop=t+"px"}}function a(){for(var e=0;e<n.length;e++)n[e].style.marginTop="0px"}function s(){window.innerWidth<600?a():r()}s()}(e)})),"function"==typeof n&&n()}var w=function(){document.querySelectorAll(".vertical-nav").forEach((function(e){if(null!==e.querySelector(".vertical-nav .nav-container")){for(var t=e.querySelectorAll(".vertical-nav li"),n="",i="",o="",r=0;r<t.length;r++)t[r].addEventListener("mousedown",(function(e){e.preventDefault()})),t[r].classList.remove("current"),t[r].removeAttribute("aria-current"),i=(n=t[r].attributes[0].value).replace(/\s+/g,"-").toLowerCase(),window.location.href.indexOf(i)>-1&&(o=e.querySelectorAll("[data-current='"+n+"']")[0]);null!==t&&null!==o&&(s(),l());for(var a=0;a<o.length;a++)o[a].classList.add("current"),o[a].setAttribute("aria-current","page")}function s(){for(var e=0;e<t.length;e++)t[e].addEventListener("click",c),t[e].removeAttribute("class"),t[e].removeAttribute("aria-current")}function l(){var n=e.querySelector(".nav-active-bar"),i=o;o.parentNode;for(var r=t,a=r.length,s=0;s<a;++s)if(i===r[s]){var l=44*s;n.style.marginTop=l+"px";break}}function c(e){o=e.target.parentNode,s(),o.classList.add("current"),o.setAttribute("aria-current","page"),l()}}))};class L{constructor(e,t){t=Object.assign({},L.defaults,t),this.element=e,this.opts=t,this.touchStartX=null,this.touchStartY=null,this.touchEndX=null,this.touchEndY=null,this.velocityX=null,this.velocityY=null,this.longPressTimer=null,this.doubleTapWaiting=!1,this.handlers={panstart:[],panmove:[],panend:[],swipeleft:[],swiperight:[],swipeup:[],swipedown:[],tap:[],doubletap:[],longpress:[]},this._onTouchStart=this.onTouchStart.bind(this),this._onTouchMove=this.onTouchMove.bind(this),this._onTouchEnd=this.onTouchEnd.bind(this),this.element.addEventListener("touchstart",this._onTouchStart,E),this.element.addEventListener("touchmove",this._onTouchMove,E),this.element.addEventListener("touchend",this._onTouchEnd,E),this.opts.mouseSupport&&!("ontouchstart"in window)&&(this.element.addEventListener("mousedown",this._onTouchStart,E),document.addEventListener("mousemove",this._onTouchMove,E),document.addEventListener("mouseup",this._onTouchEnd,E))}destroy(){this.element.removeEventListener("touchstart",this._onTouchStart),this.element.removeEventListener("touchmove",this._onTouchMove),this.element.removeEventListener("touchend",this._onTouchEnd),this.element.removeEventListener("mousedown",this._onTouchStart),document.removeEventListener("mousemove",this._onTouchMove),document.removeEventListener("mouseup",this._onTouchEnd),clearTimeout(this.longPressTimer),clearTimeout(this.doubleTapTimer)}on(e,t){if(this.handlers[e])return this.handlers[e].push(t),{type:e,fn:t,cancel:()=>this.off(e,t)}}off(e,t){if(this.handlers[e]){const n=this.handlers[e].indexOf(t);-1!==n&&this.handlers[e].splice(n,1)}}fire(e,t){for(let n=0;n<this.handlers[e].length;n++)this.handlers[e][n](t)}onTouchStart(e){this.thresholdX=this.opts.threshold("x",this),this.thresholdY=this.opts.threshold("y",this),this.disregardVelocityThresholdX=this.opts.disregardVelocityThreshold("x",this),this.disregardVelocityThresholdY=this.opts.disregardVelocityThreshold("y",this),this.touchStartX="mousedown"===e.type?e.screenX:e.changedTouches[0].screenX,this.touchStartY="mousedown"===e.type?e.screenY:e.changedTouches[0].screenY,this.touchMoveX=null,this.touchMoveY=null,this.touchEndX=null,this.touchEndY=null,this.longPressTimer=setTimeout((()=>this.fire("longpress",e)),this.opts.longPressTime),this.fire("panstart",e)}onTouchMove(e){if("mousemove"===e.type&&(!this.touchStartX||null!==this.touchEndX))return;const t=("mousemove"===e.type?e.screenX:e.changedTouches[0].screenX)-this.touchStartX;this.velocityX=t-this.touchMoveX,this.touchMoveX=t;const n=("mousemove"===e.type?e.screenY:e.changedTouches[0].screenY)-this.touchStartY;this.velocityY=n-this.touchMoveY,this.touchMoveY=n;const i=Math.abs(this.touchMoveX),o=Math.abs(this.touchMoveY);this.swipingHorizontal=i>this.thresholdX,this.swipingVertical=o>this.thresholdY,this.swipingDirection=i>o?this.swipingHorizontal?"horizontal":"pre-horizontal":this.swipingVertical?"vertical":"pre-vertical",Math.max(i,o)>this.opts.pressThreshold&&clearTimeout(this.longPressTimer),this.fire("panmove",e)}onTouchEnd(e){if("mouseup"===e.type&&(!this.touchStartX||null!==this.touchEndX))return;this.touchEndX="mouseup"===e.type?e.screenX:e.changedTouches[0].screenX,this.touchEndY="mouseup"===e.type?e.screenY:e.changedTouches[0].screenY,this.fire("panend",e),clearTimeout(this.longPressTimer);const t=this.touchEndX-this.touchStartX,n=Math.abs(t),i=this.touchEndY-this.touchStartY,o=Math.abs(i);n>this.thresholdX||o>this.thresholdY?(this.swipedHorizontal=this.opts.diagonalSwipes?Math.abs(t/i)<=this.opts.diagonalLimit:n>=o&&n>this.thresholdX,this.swipedVertical=this.opts.diagonalSwipes?Math.abs(i/t)<=this.opts.diagonalLimit:o>n&&o>this.thresholdY,this.swipedHorizontal&&(t<0?(this.velocityX<-this.opts.velocityThreshold||t<-this.disregardVelocityThresholdX)&&this.fire("swipeleft",e):(this.velocityX>this.opts.velocityThreshold||t>this.disregardVelocityThresholdX)&&this.fire("swiperight",e)),this.swipedVertical&&(i<0?(this.velocityY<-this.opts.velocityThreshold||i<-this.disregardVelocityThresholdY)&&this.fire("swipeup",e):(this.velocityY>this.opts.velocityThreshold||i>this.disregardVelocityThresholdY)&&this.fire("swipedown",e))):n<this.opts.pressThreshold&&o<this.opts.pressThreshold&&(this.doubleTapWaiting?(this.doubleTapWaiting=!1,clearTimeout(this.doubleTapTimer),this.fire("doubletap",e)):(this.doubleTapWaiting=!0,this.doubleTapTimer=setTimeout((()=>this.doubleTapWaiting=!1),this.opts.doubleTapTime),this.fire("tap",e)))}}L.defaults={threshold:(e,t)=>Math.max(25,Math.floor(.15*("x"===e?window.innerWidth||document.body.clientWidth:window.innerHeight||document.body.clientHeight))),velocityThreshold:10,disregardVelocityThreshold:(e,t)=>Math.floor(.5*("x"===e?t.element.clientWidth:t.element.clientHeight)),pressThreshold:8,diagonalSwipes:!1,diagonalLimit:Math.tan(.375*Math.PI),longPressTime:500,doubleTapTime:300,mouseSupport:!0};let E=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){E={passive:!0}}}))}catch(e){}var _=function(){var e=document.querySelectorAll(".filters details");document.addEventListener("click",(function(t){t.target.classList.contains("filter-group")||t.target.classList.contains("checkbox-wrapper")||e.forEach((function(e){e.querySelector("summary")!==t.target&&(e.open=!1)}))})),e.forEach((function(t){t.addEventListener("click",(function(){e.forEach((function(e){e!==t&&e.removeAttribute("open")}))}))})),document.querySelectorAll(".filters input").forEach((function(t){t.addEventListener("blur",(function(t){t.relatedTarget?t.target.getAttribute("name")!==t.relatedTarget.getAttribute("name")&&e.forEach((function(e){return e.open=!1})):e.forEach((function(e){return e.open=!1}))}))}))};function S(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return void 0===e[t]?n:e[t]}var k=function(){function e(){r(this,e),this.apiKey="AIzaSyDbDzDqUdBI3BkKl6sQcr0HYCqwOl-4YQQ",this.mapClass=".gmaps--wrapper",this.cssVariable="--static-url",this.markerURL="https://ual-media-res.cloudinary.com/image/upload/v1592912183/download_onlpn2.png",this.defaultZoom=17,this.buildMaps()}return s(e,[{key:"getMaps",value:function(){return!!document.querySelector(this.mapClass)&&Array.from(document.querySelectorAll(this.mapClass))}},{key:"buildMaps",value:function(){var e=this,t=this.getMaps();if(!t)return!1;t.forEach((function(t){return e.buildMap(t)}))}},{key:"buildMap",value:function(e){var t=Object.assign({},e.dataset);if(!Object.prototype.hasOwnProperty.call(t,"address")&&!Object.prototype.hasOwnProperty.call(t,"longitude")&&!Object.prototype.hasOwnProperty.call(t,"latitude"))return!1;var n="light"===t.variant?this.getLightStyles():this.getDarkStyles(),i="https://maps.googleapis.com/maps/api/staticmap?&key=".concat(this.apiKey,"&center=").concat(this.getLocation(t),"&zoom=").concat(this.defaultZoom,"&format=jpeg&sensor=false&size=1000x594&scale=2&maptype=roadmap").concat(this.getMarker(t),"&").concat(this.buildStyles(n));e.style.setProperty("--static-url","url('".concat(i,"')"))}},{key:"getLocation",value:function(e){return Object.prototype.hasOwnProperty.call(e,"latitude")&&Object.prototype.hasOwnProperty.call(e,"longitude")?"".concat(e.latitude,",").concat(e.longitude):encodeURI(e.address)}},{key:"getMarker",value:function(e){return"true"!==e.marker?null:"&markers=icon:".concat(this.markerURL,"|").concat(this.getLocation(e))}},{key:"buildStyles",value:function(e){var t=[];return e.forEach((function(e){var n="";e.stylers&&e.stylers.length>0&&(n+=(Object.prototype.hasOwnProperty.call(e,"featureType")?"feature:"+e.featureType:"feature:all")+"|",n+=(Object.prototype.hasOwnProperty.call(e,"elementType")?"element:"+e.elementType:"element:all")+"|",e.stylers.forEach((function(e){var t=Object.keys(e)[0],i=e[t].toString().replace("#","0x");n+=t+":"+i+"|"}))),t.push("style="+encodeURIComponent(n))})),t.join("&")}},{key:"getLightStyles",value:function(){return[{featureType:"water",elementType:"geometry",stylers:[{color:"#e9e9e9"},{lightness:17}]},{featureType:"landscape",elementType:"geometry",stylers:[{color:"#f5f5f5"},{lightness:20}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#ffffff"},{lightness:17}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#ffffff"},{lightness:29},{weight:.2}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#ffffff"},{lightness:18}]},{featureType:"road.local",elementType:"geometry",stylers:[{color:"#ffffff"},{lightness:16}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#f5f5f5"},{lightness:21}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#dedede"},{lightness:21}]},{elementType:"labels.text.stroke",stylers:[{visibility:"on"},{color:"#ffffff"},{lightness:16}]},{elementType:"labels.text.fill",stylers:[{saturation:0},{color:"#333333"},{lightness:40}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#f2f2f2"},{lightness:19}]},{featureType:"administrative",elementType:"geometry.fill",stylers:[{color:"#fefefe"},{lightness:20}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#fefefe"},{lightness:17},{weight:1.2}]},{featureType:"poi",elementType:"labels.text",stylers:[{visibility:"off"}]}]}},{key:"getDarkStyles",value:function(){return[{featureType:"all",elementType:"labels.text.fill",stylers:[{saturation:0},{color:"#000000"},{lightness:40}]},{featureType:"all",elementType:"labels.text.stroke",stylers:[{visibility:"on"},{color:"#000000"},{lightness:16}]},{featureType:"all",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"administrative",elementType:"geometry.fill",stylers:[{color:"#000000"},{lightness:20}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#000000"},{lightness:17},{weight:1.2}]},{featureType:"administrative",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"administrative.country",elementType:"all",stylers:[{visibility:"simplified"}]},{featureType:"administrative.country",elementType:"geometry",stylers:[{visibility:"simplified"}]},{featureType:"administrative.country",elementType:"labels.text",stylers:[{visibility:"simplified"}]},{featureType:"administrative.province",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",elementType:"all",stylers:[{visibility:"simplified"},{saturation:"-100"},{lightness:"30"}]},{featureType:"administrative.neighborhood",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"administrative.land_parcel",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"landscape",elementType:"all",stylers:[{visibility:"simplified"},{gamma:"0.00"},{lightness:"74"}]},{featureType:"landscape",elementType:"geometry",stylers:[{color:"#000000"},{lightness:20}]},{featureType:"landscape.man_made",elementType:"all",stylers:[{lightness:"3"}]},{featureType:"poi",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#000000"},{lightness:21}]},{featureType:"road",elementType:"geometry",stylers:[{visibility:"simplified"}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#000000"},{lightness:17}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#000000"},{lightness:29},{weight:.2}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#000000"},{lightness:18}]},{featureType:"road.local",elementType:"geometry",stylers:[{color:"#000000"},{lightness:16}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#000000"},{lightness:19}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#000000"},{lightness:17}]},{featureType:"poi",elementType:"labels.text",stylers:[{visibility:"off"}]}]}}]),e}();function C(){var e=document.querySelector("#language-flagIcon"),t=document.querySelector("#language-dropdown-list"),n=document.querySelectorAll(".language-opt"),i=document.querySelectorAll(".language-selectedLang");function o(e){var n=e.getAttribute("data-lang"),o=e.querySelector(".language-flag").getAttribute("src"),r=i[0].getAttribute("src");i.forEach((function(e,i){r!==o&&(e.setAttribute("src",o),_handleLanguageClick(n),0===i&&t.classList.toggle("language-hideList"))}))}null!==e&&e.addEventListener("click",(function(){t.classList.toggle("language-hideList"),t.classList.contains("language-hideList")||function(){t.focus();var e=document.querySelector("#"+t.getAttribute("aria-activedescendant"));function n(){var i=window.event,r=i.which||i.keyCode,a=38,s=40,l=13,c=t.querySelectorAll(".language-opt"),u=Array.from(c);function d(e){var n=e.getAttribute("id");t.setAttribute("aria-activedescendant",n),e.setAttribute("aria-selected",!0),e.classList.add("focused"),u.filter((function(t){return t!==e})).forEach((function(e){e.classList.remove("focused"),e.removeAttribute("aria-selected")}))}r!==s&&r!==a||i.preventDefault(),r===s&&null!==e.nextElementSibling&&d(e=e.nextElementSibling),r===a&&null!==e.previousElementSibling&&d(e=e.previousElementSibling),r===l&&("true"===i.target.getAttribute("aria-expanded")&&(i.preventDefault(),i.target.setAttribute("aria-expanded",!1),t.classList.remove("language-hideList")),o(e),t.removeEventListener("keydown",n))}e.classList.add("focused"),e.setAttribute("aria-selected",!0),t.addEventListener("keydown",n)}()})),n.forEach((function(e){e.addEventListener("click",(function(){o(e)}))}))}
/*!
    * tabbable 6.2.0
    * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
    */
var T=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],A=T.join(","),q="undefined"==typeof Element,x=q?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,P=!q&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},D=function e(t,n){var i;void 0===n&&(n=!0);var o=null==t||null===(i=t.getAttribute)||void 0===i?void 0:i.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},N=function(e,t,n){if(D(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(A));return t&&x.call(e,A)&&i.unshift(e),i=i.filter(n)},O=function e(t,n,i){for(var o=[],r=Array.from(t);r.length;){var a=r.shift();if(!D(a,!1))if("SLOT"===a.tagName){var s=a.assignedElements(),l=e(s.length?s:a.children,!0,i);i.flatten?o.push.apply(o,l):o.push({scopeParent:a,candidates:l})}else{x.call(a,A)&&i.filter(a)&&(n||!t.includes(a))&&o.push(a);var c=a.shadowRoot||"function"==typeof i.getShadowRoot&&i.getShadowRoot(a),u=!D(c,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(a));if(c&&u){var d=e(!0===c?a.children:c.children,!0,i);i.flatten?o.push.apply(o,d):o.push({scopeParent:a,candidates:d})}else r.unshift.apply(r,a.children)}}return o},M=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},I=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!M(e)?0:e.tabIndex},R=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},B=function(e){return"INPUT"===e.tagName},F=function(e){return function(e){return B(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||P(e),i=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=i(window.CSS.escape(e.name));else try{t=i(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)},H=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return 0===n&&0===i},j=function(e,t){var n=t.displayCheck,i=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=x.call(e,"details>summary:first-of-type")?e.parentElement:e;if(x.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return H(e)}else{if("function"==typeof i){for(var r=e;e;){var a=e.parentElement,s=P(e);if(a&&!a.shadowRoot&&!0===i(a))return H(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=r}if(function(e){var t,n,i,o,r=e&&P(e),a=null===(t=r)||void 0===t?void 0:t.host,s=!1;if(r&&r!==e)for(s=!!(null!==(n=a)&&void 0!==n&&null!==(i=n.ownerDocument)&&void 0!==i&&i.contains(a)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!s&&a;){var l,c,u;s=!(null===(c=a=null===(l=r=P(a))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(a))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},V=function(e,t){return!(t.disabled||D(t)||function(e){return B(e)&&"hidden"===e.type}(t)||j(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var i=t.children.item(n);if("LEGEND"===i.tagName)return!!x.call(t,"fieldset[disabled] *")||!i.contains(e)}return!0}t=t.parentElement}return!1}(t))},W=function(e,t){return!(F(t)||I(t)<0||!V(e,t))},Y=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},G=function e(t){var n=[],i=[];return t.forEach((function(t,o){var r=!!t.scopeParent,a=r?t.scopeParent:t,s=function(e,t){var n=I(e);return n<0&&t&&!M(e)?0:n}(a,r),l=r?e(t.candidates):a;0===s?r?n.push.apply(n,l):n.push(a):i.push({documentOrder:o,tabIndex:s,item:t,isScope:r,content:l})})),i.sort(R).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},X=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==x.call(e,A)&&W(t,e)},z=T.concat("iframe").join(","),U=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==x.call(e,z)&&V(t,e)};
/*!
    * focus-trap 7.6.0
    * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
    */
function K(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $=function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n.pause()}var i=e.indexOf(t);-1===i||e.splice(i,1),e.push(t)},J=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()},ee=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},te=function(e){return ee(e)&&!e.shiftKey},ne=function(e){return ee(e)&&e.shiftKey},ie=function(e){return setTimeout(e,0)},oe=function(e,t){var n=-1;return e.every((function(e,i){return!t(e)||(n=i,!1)})),n},re=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return"function"==typeof e?e.apply(void 0,n):e},ae=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},se=[],le=function(e,t){var n,i=(null==t?void 0:t.document)||document,o=(null==t?void 0:t.trapStack)||se,r=Q({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:te,isKeyBackward:ne},t),a={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},s=function(e,t,n){return e&&void 0!==e[t]?e[t]:r[n||t]},l=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return a.containerGroups.findIndex((function(t){var i=t.container,o=t.tabbableNodes;return i.contains(e)||(null==n?void 0:n.includes(i))||o.find((function(t){return t===e}))}))},c=function(e){var t=r[e];if("function"==typeof t){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];t=t.apply(void 0,o)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var s=t;if("string"==typeof t&&!(s=i.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return s},u=function(){var e=c("initialFocus");if(!1===e)return!1;if(void 0===e||!U(e,r.tabbableOptions))if(l(i.activeElement)>=0)e=i.activeElement;else{var t=a.tabbableGroups[0];e=t&&t.firstTabbableNode||c("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(a.containerGroups=a.containers.map((function(e){var t=function(e,t){var n;return n=(t=t||{}).getShadowRoot?O([e],t.includeContainer,{filter:W.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Y}):N(e,t.includeContainer,W.bind(null,t)),G(n)}(e,r.tabbableOptions),n=function(e,t){return(t=t||{}).getShadowRoot?O([e],t.includeContainer,{filter:V.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):N(e,t.includeContainer,V.bind(null,t))}(e,r.tabbableOptions),i=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,a=n.find((function(e){return X(e)})),s=n.slice().reverse().find((function(e){return X(e)})),l=!!t.find((function(e){return I(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:l,firstTabbableNode:i,lastTabbableNode:o,firstDomTabbableNode:a,lastDomTabbableNode:s,nextTabbableNode:function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=t.indexOf(e);return o<0?i?n.slice(n.indexOf(e)+1).find((function(e){return X(e)})):n.slice(0,n.indexOf(e)).reverse().find((function(e){return X(e)})):t[o+(i?1:-1)]}}})),a.tabbableGroups=a.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),a.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(a.containerGroups.find((function(e){return e.posTabIndexesFound}))&&a.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},p=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?p(t.shadowRoot):t},h=function(e){!1!==e&&e!==p(document)&&(e&&e.focus?(e.focus({preventScroll:!!r.preventScroll}),a.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):h(u()))},f=function(e){var t=c("setReturnFocus",e);return t||!1!==t&&e},m=function(e){var t=e.target,n=e.event,i=e.isBackward,o=void 0!==i&&i;t=t||ae(n),d();var s=null;if(a.tabbableGroups.length>0){var u=l(t,n),p=u>=0?a.containerGroups[u]:void 0;if(u<0)s=o?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(o){var h=oe(a.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(h<0&&(p.container===t||U(t,r.tabbableOptions)&&!X(t,r.tabbableOptions)&&!p.nextTabbableNode(t,!1))&&(h=u),h>=0){var f=0===h?a.tabbableGroups.length-1:h-1,m=a.tabbableGroups[f];s=I(t)>=0?m.lastTabbableNode:m.lastDomTabbableNode}else ee(n)||(s=p.nextTabbableNode(t,!1))}else{var v=oe(a.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(v<0&&(p.container===t||U(t,r.tabbableOptions)&&!X(t,r.tabbableOptions)&&!p.nextTabbableNode(t))&&(v=u),v>=0){var g=v===a.tabbableGroups.length-1?0:v+1,y=a.tabbableGroups[g];s=I(t)>=0?y.firstTabbableNode:y.firstDomTabbableNode}else ee(n)||(s=p.nextTabbableNode(t))}}else s=c("fallbackFocus");return s},v=function(e){var t=ae(e);l(t,e)>=0||(re(r.clickOutsideDeactivates,e)?n.deactivate({returnFocus:r.returnFocusOnDeactivate}):re(r.allowOutsideClick,e)||e.preventDefault())},g=function(e){var t=ae(e),n=l(t,e)>=0;if(n||t instanceof Document)n&&(a.mostRecentlyFocusedNode=t);else{var i;e.stopImmediatePropagation();var o=!0;if(a.mostRecentlyFocusedNode)if(I(a.mostRecentlyFocusedNode)>0){var s=l(a.mostRecentlyFocusedNode),c=a.containerGroups[s].tabbableNodes;if(c.length>0){var d=c.findIndex((function(e){return e===a.mostRecentlyFocusedNode}));d>=0&&(r.isKeyForward(a.recentNavEvent)?d+1<c.length&&(i=c[d+1],o=!1):d-1>=0&&(i=c[d-1],o=!1))}}else a.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return I(e)>0}))}))||(o=!1);else o=!1;o&&(i=m({target:a.mostRecentlyFocusedNode,isBackward:r.isKeyBackward(a.recentNavEvent)})),h(i||(a.mostRecentlyFocusedNode||u()))}a.recentNavEvent=void 0},y=function(e){(r.isKeyForward(e)||r.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];a.recentNavEvent=e;var n=m({event:e,isBackward:t});n&&(ee(e)&&e.preventDefault(),h(n))}(e,r.isKeyBackward(e))},b=function(e){var t;"Escape"!==(null==(t=e)?void 0:t.key)&&"Esc"!==(null==t?void 0:t.key)&&27!==(null==t?void 0:t.keyCode)||!1===re(r.escapeDeactivates,e)||(e.preventDefault(),n.deactivate())},w=function(e){var t=ae(e);l(t,e)>=0||re(r.clickOutsideDeactivates,e)||re(r.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},L=function(){if(a.active)return $(o,n),a.delayInitialFocusTimer=r.delayInitialFocus?ie((function(){h(u())})):h(u()),i.addEventListener("focusin",g,!0),i.addEventListener("mousedown",v,{capture:!0,passive:!1}),i.addEventListener("touchstart",v,{capture:!0,passive:!1}),i.addEventListener("click",w,{capture:!0,passive:!1}),i.addEventListener("keydown",y,{capture:!0,passive:!1}),i.addEventListener("keydown",b),n},E=function(){if(a.active)return i.removeEventListener("focusin",g,!0),i.removeEventListener("mousedown",v,!0),i.removeEventListener("touchstart",v,!0),i.removeEventListener("click",w,!0),i.removeEventListener("keydown",y,!0),i.removeEventListener("keydown",b),n},_="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver((function(e){e.some((function(e){return Array.from(e.removedNodes).some((function(e){return e===a.mostRecentlyFocusedNode}))}))&&h(u())})):void 0,S=function(){_&&(_.disconnect(),a.active&&!a.paused&&a.containers.map((function(e){_.observe(e,{subtree:!0,childList:!0})})))};return(n={get active(){return a.active},get paused(){return a.paused},activate:function(e){if(a.active)return this;var t=s(e,"onActivate"),n=s(e,"onPostActivate"),o=s(e,"checkCanFocusTrap");o||d(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=i.activeElement,null==t||t();var r=function(){o&&d(),L(),S(),null==n||n()};return o?(o(a.containers.concat()).then(r,r),this):(r(),this)},deactivate:function(e){if(!a.active)return this;var t=Q({onDeactivate:r.onDeactivate,onPostDeactivate:r.onPostDeactivate,checkCanReturnFocus:r.checkCanReturnFocus},e);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,E(),a.active=!1,a.paused=!1,S(),J(o,n);var i=s(t,"onDeactivate"),l=s(t,"onPostDeactivate"),c=s(t,"checkCanReturnFocus"),u=s(t,"returnFocus","returnFocusOnDeactivate");null==i||i();var d=function(){ie((function(){u&&h(f(a.nodeFocusedBeforeActivation)),null==l||l()}))};return u&&c?(c(f(a.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(e){if(a.paused||!a.active)return this;var t=s(e,"onPause"),n=s(e,"onPostPause");return a.paused=!0,null==t||t(),E(),S(),null==n||n(),this},unpause:function(e){if(!a.paused||!a.active)return this;var t=s(e,"onUnpause"),n=s(e,"onPostUnpause");return a.paused=!1,null==t||t(),d(),L(),S(),null==n||n(),this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return a.containers=t.map((function(e){return"string"==typeof e?i.querySelector(e):e})),a.active&&d(),S(),this}}).updateContainerElements(e),n};e.AccordionLogic=function(){document.querySelectorAll(".ual-accordion__title").forEach((function(e){e.addEventListener("click",(function(e){var t=e.target.parentElement,n=e.target.nextElementSibling;if(t.classList.contains("animating"))return t.classList.remove("animating","collapsing"),void t.offsetWidth;var i=function(e){return n.addEventListener("animationend",e,{once:!0})};requestAnimationFrame((function(){return t.classList.add("animating")})),i((function(){return t.classList.remove("animating")})),null!==t.getAttribute("open")&&(e.preventDefault(),t.classList.add("collapsing"),i((function(){t.removeAttribute("open"),t.classList.remove("collapsing")})))}))}))},e.AfterApplicationLogic=function(){var e=document.getElementById("after-application-home-btn"),t=document.getElementById("after-application-international-btn");function n(n){var i,o,r,a=n.currentTarget.section;for(n.currentTarget.setAttribute("aria-checked","true"),"after-application-home-btn"===n.currentTarget.id&&t.setAttribute("aria-checked","false"),"after-application-international-btn"===n.currentTarget.id&&e.setAttribute("aria-checked","false"),o=document.getElementsByClassName("after-application-tab"),i=0;i<o.length;i++)o[i].style.display="none";for(r=document.getElementsByClassName("tab-link"),i=0;i<r.length;i++)r[i].className=r[i].className.replace(" selected","");document.getElementsByClassName(a)[0].style.display="grid"}e&&(document.addEventListener("keydown",(function(n){var i=document.activeElement===t,o=document.activeElement===e,r=13===n.keyCode;(r&&i||r&&o)&&document.activeElement.click(n)})),e.addEventListener("click",n),e.buttonName="home-btn",e.section="home",t.addEventListener("click",n),t.buttonName="international-btn",t.section="international")},e.ApplyNow23Logic=function(){var e=document.getElementById("home-tab-title"),t=document.getElementById("international-tab-title");function n(n){var i,o,r=n.currentTarget.section;for(n.currentTarget.setAttribute("aria-expanded","true"),"home-tab-title"===n.currentTarget.id&&(t.setAttribute("aria-expanded","false"),e.classList.add("active"),e.classList.remove("inactive"),t.classList.add("inactive"),t.classList.remove("active")),"international-tab-title"===n.currentTarget.id&&(e.setAttribute("aria-expanded","false"),e.classList.remove("active"),e.classList.add("inactive"),t.classList.remove("inactive"),t.classList.add("active")),o=document.getElementsByClassName("info-container"),i=0;i<o.length;i++)o[i].style.display="none";document.getElementsByClassName(r)[0].style.display="block"}e&&(document.addEventListener("keydown",(function(n){var i=document.activeElement===t,o=document.activeElement===e,r=13===n.keyCode&&32;(r&&i||r&&o)&&document.activeElement.click(n)})),e.addEventListener("click",n),e.buttonName="home-tab-title",e.section="home-tab-container",t.addEventListener("click",n),t.buttonName="apply-now-radio-btn-international",t.section="international-tab-container")},e.ApplyNowLogic=function(){var e=document.getElementById("apply-now-btn"),t=document.getElementById("apply-now-radio-btn-international");function n(n){var i,o,r,a=n.currentTarget.section;for(n.currentTarget.setAttribute("aria-checked","true"),"apply-now-btn"===n.currentTarget.id&&t.setAttribute("aria-checked","false"),"apply-now-radio-btn-international"===n.currentTarget.id&&e.setAttribute("aria-checked","false"),o=document.getElementsByClassName("apply-now-tab"),i=0;i<o.length;i++)o[i].style.display="none";for(r=document.getElementsByClassName("tab-link"),i=0;i<r.length;i++)r[i].className=r[i].className.replace(" selected","");document.getElementsByClassName(a)[0].style.display="block"}e&&(document.addEventListener("keydown",(function(n){var i=document.activeElement===t,o=document.activeElement===e,r=13===n.keyCode;(r&&i||r&&o)&&document.activeElement.click(n)})),e.addEventListener("click",n),e.buttonName="apply-now-btn",e.section="apply-home",t.addEventListener("click",n),t.buttonName="apply-now-radio-btn-international",t.section="apply-international")},e.AvailabilityTableLogic=function(){},e.BannerLogic=function(){var e=document.getElementsByClassName("btn");function t(){document.querySelector(".banner-container").classList.add("retract")}for(var n=0;n<e.length;n++)e[n].addEventListener("click",t)},e.BottomAlignCards=function(){var e=document.querySelectorAll(".bottom-align-cards");e.length>0&&e.forEach((function(e,t){var n=e.querySelectorAll(".caption-container"),i=e.querySelectorAll(".caption-container img"),o=e.querySelectorAll(".image-container"),r=Array.from(n),a=Array.from(i),s=Array.from(o),l=0,c=[];function u(e,t){var n=e.order,i=t.order,o=0;return n>i?o=1:n<i&&(o=-1),o}window.innerWidth<600&&(s.forEach((function(e,t){e.style.height=""})),r.forEach((function(e){e.classList.remove("caption-container-bottom-align")}))),window.innerWidth>600&&(r.forEach((function(e){e.classList.add("caption-container-bottom-align")})),s.forEach((function(e,t){e.style.height="400px"})),s.forEach((function(e,t){var n=document.body.getBoundingClientRect(),i=e.getBoundingClientRect().top-n.top,o=new Image;o.onload=function(){c.push({order:t,naturalOffset:i,offset:100*Math.ceil(i/100)+100,height:a[t].clientHeight}),l===a.length-1&&function(e){for(var t=e.reduce((function(e,t){var n=t.offset;return e.hasOwnProperty(n)?(e[n].push(t),e):(e[n]=[t],e)}),{}),n=null,i=function(){var e=h(r[o],2);e[0];var t=e[1];t.forEach((function(e,i){(0===i||e.height>n)&&(n=e.height),i===t.length-1&&t.forEach((function(e,t){s[e.order].style.height=n+"px"}))}))},o=0,r=Object.entries(t);o<r.length;o++)i()}(c.sort(u)),l++},o.onerror=function(e){l++},o.src=a[t].src})))}))},e.BottomAlignedCardLogic=function(){if(!document.querySelector(".bottom-aligned-opt"))return!1;var e,t;document.querySelector(".bottom-aligned-opt-1")?e=".bottom-aligned-opt-1":document.querySelector(".bottom-aligned-opt-2")&&(e=".bottom-aligned-opt-2"),document.querySelector(".card-article").querySelector(".caption-container-image").querySelector("img")?t=".caption-container-image img":document.querySelector(".card-article").querySelector(".caption-container-image")&&(t=".caption-container-image"),y(e,".card-article",t,(function(){b(e,t,(function(){window.addEventListener("resize",(function(){b(e,t)}))}))}),!0)},e.CaptionLogic=function(){for(var e=document.getElementsByClassName("caption-icon-button"),n=document.getElementsByClassName("stretch-left")[0],i=document.getElementsByClassName("stretch-right")[0],o=document.querySelectorAll(".b-lazy")[0],r=document.querySelectorAll(".header-banner .caption-icon-button"),a=document.querySelectorAll(".card-article"),s=0;s<e.length;s++)e[s].addEventListener("click",d);if(r.length>0)for(var l=0;l<r.length;l++)r[l].addEventListener("click",c);function c(){document.body.contains(n)?(n.classList.toggle("inverse"),i.classList.toggle("inverse"),o.classList.toggle("inverse")):document.body.contains(o)&&o.classList.toggle("inverse")}function u(e){var t=e.currentTarget.myParam;this.querySelectorAll(".caption-icon-button")[0],e.target.classList.contains("caption-icon")||e.target.classList.contains("caption-icon-button")||e.target.classList.contains("open-state")||e.target.classList.contains("closed-state")||(window.location.href=t)}function d(){var e=this.nextElementSibling,n=e.nextElementSibling,i=this.querySelector(".closed-state"),o=this.querySelector(".open-state");i.classList.toggle("hide-icon"),o.classList.toggle("hide-icon"),e.classList.toggle("inverse"),n.classList.toggle("display-caption-text"),t(this)}a.forEach((function(e){var t=e.querySelector(".card-anchor"),n=e.querySelector(".image-container"),i=e.querySelector(".caption-text-container");if(!t||!n||!t.hasAttribute("href")||i)return!1;n.addEventListener("click",u),n.myParam=t.getAttribute("href"),n.style.cursor="pointer"}))},e.CardHoverLogic=function(){if(!document.querySelector(".card-article"))return!1;var e=Array.from(document.querySelectorAll(".card-article")).filter((function(e){return e.querySelector(".card-text-container")}));if(!e)return!1;e.forEach((function(e){var t=e.querySelector(".caption-container"),n=e.querySelector("button"),i=e.querySelector(".card-anchor");e.addEventListener("mousemove",(function(i){if(t&&n){var o="true"===n.getAttribute("aria-expanded");n.contains(i.target)||o&&t.contains(i.target)?e.classList.remove("card-hover"):e.classList.add("card-hover")}else e.classList.add("card-hover")})),e.addEventListener("mouseleave",(function(){n&&n.contains(document.activeElement)&&document.activeElement.blur(),e.classList.remove("card-hover")})),i.addEventListener("focus",(function(){"true"===n.getAttribute("aria-expanded")?e.classList.remove("card-hover"):e.classList.add("card-hover")})),i.addEventListener("blur",(function(){e.classList.remove("card-hover")}))}))},e.CardPeopleLogic=function(){function e(){window.addEventListener("resize",(function(){b(".people-card-container",".image-container")}))}y(".people-card-container",".people-card",".people-card-img",(function(){return b(".people-card-container",".image-container",e)}),!0)},e.CheckBoxLogic=function(){},e.CollegeBannerLogic=function(){var e=document.getElementById("college-mobile-banner");null==e&&(window.onscroll=function(){var t=(e.currentStyle||window.getComputedStyle(e,!1)).backgroundImage.replace(/url\((['"])?(.*?)\1\)/gi,"$2").split(",")[0],n=new Image;if("none"!==t){n.src=t;var i=n.width-window.screen.width,o=2*(window.scrollY-e.offsetTop);window.scrollY>e.offsetTop&&(this.oldScroll>this.scrollY&&e.style.backgroundPosition>=0?e.style.backgroundPosition=o+"px":o<=i&&(e.style.backgroundPosition=-o+"px"),this.oldScroll=this.scrollY)}})},e.CountdownLogic=function(){var e,t=1e3,n=document.getElementById("countdown-val");function i(){var n,o,r,a,s,l;n=(new Date).getTime(),o=e-n,r=Math.floor(o/864e5),a=Math.floor(o%864e5/36e5),s=Math.floor(o%36e5/6e4),l=Math.floor(o%6e4/1e3),document.getElementById("countdown-val").innerHTML="<div class='countdown-unit-val'>"+r+":"+a+":"+s+":"+l+"</div>",o<0&&(window.clearTimeout(i),clearTimeout(i),document.getElementById("countdown-val").innerHTML="<div class='countdown-unit-val'>0<span class='countdown-unit'>days</span></div><div class='countdown-unit-val'>0<span class='countdown-unit'>hours</span></div><div class='countdown-unit-val'>0<span class='countdown-unit'>minutes</span></div><div class='countdown-unit-val'>0<span class='countdown-unit'>seconds</span></div>"),window.setTimeout(i,t)}n&&(e=new Date(n.getAttribute("data-custom-countdown-end"))),i()},e.CourseApplicationLogic=function(){var e=document.getElementsByClassName("home-btn")[0],t=document.getElementsByClassName("international-btn")[0];function n(e){var t,n,i,o=e.currentTarget.section;for(n=document.getElementsByClassName("course-application-tab"),t=0;t<n.length;t++)n[t].style.display="none";for(i=document.getElementsByClassName("tab-link"),t=0;t<i.length;t++)i[t].className=i[t].className.replace(" selected","");document.getElementsByClassName(o)[0].style.display="block",e.currentTarget.className+=" selected"}e&&(e.addEventListener("click",n),e.buttonName="home-btn",e.section="home",t.addEventListener("click",n),t.buttonName="international-btn",t.section="international")},e.CourseLogic=function(){g()},e.CourseLogics=g,e.CoursePageLogic=function(){document.querySelectorAll(".course-page-header").forEach((function(e){if(!e.querySelector(".course-header-nav"))return!1;var t=e.querySelector(".course-header-nav"),n=e.querySelector(".headings");e.querySelector(".course-page-header .btn");var i,o,r=!1;function a(){window.innerWidth>600?t.classList.add("big"):t.classList.remove("big"),r=window.innerWidth>1008}function s(){var e=n.getBoundingClientRect().bottom,i=document.getElementsByTagName("nav")[0].clientHeight;e<=i&&!r?(t.classList.add("stick"),t.style.top=i+"px"):e>=i&&!r?(t.classList.remove("stick"),t.style.top="auto"):e<=i&&r?(t.classList.add("stick"),t.style.top=i+"px"):(t.classList.remove("stick"),t.style.top="auto")}a(),s(),window.addEventListener("scroll",(function(){i||(s(),window.requestAnimationFrame((function(){a(),i=!1})),i=!0)})),window.addEventListener("resize",(function(){window.clearTimeout(o),a(),o=setTimeout((function(){s()}),100)}),!1)}))},e.CoursePageLogic22=function(){document.querySelectorAll(".course-page-header").forEach((function(e){if(!e.querySelector(".course-header-nav"))return!1;var t,n,i=e.querySelector(".course-header-nav"),o=e.querySelector(".headings"),r=!1;function a(){window.innerWidth>600?i.classList.add("big"):i.classList.remove("big"),r=window.innerWidth>1008}function s(){var e=o.getBoundingClientRect().bottom,t=document.getElementsByTagName("nav")[0].clientHeight;e<=t&&!r?(i.classList.add("stick"),i.style.top=t+"px"):e>=t&&!r?(i.classList.remove("stick"),i.style.top="auto"):e<=t&&r?(i.classList.add("stick"),i.style.top=t+"px"):(i.classList.remove("stick"),i.style.top="auto")}a(),s(),window.addEventListener("scroll",(function(){t||(s(),window.requestAnimationFrame((function(){a(),t=!1})),t=!0)})),window.addEventListener("resize",(function(){window.clearTimeout(n),a(),n=setTimeout((function(){s()}),100)}),!1)}))},e.CourseUnitsLogic=function(){var e=document.getElementsByClassName("scroll-right")[0],t=document.getElementsByClassName("scroll-left")[0],n=document.getElementsByClassName("course-units")[0],i=document.getElementsByClassName("course-units-intro")[0],o=document.getElementsByClassName("course-learning-teaching")[0],r=0,a=document.getElementsByClassName("course-units-txt")[0];e.addEventListener("click",c),t.addEventListener("click",u);var s={threshold:function(e){return Math.max(25,Math.floor(.15*("x"===e?window.innerWidth||document.body.clientWidth:window.innerHeight||document.body.clientHeight)))},velocityThreshold:5,disregardVelocityThreshold:function(e,t){return Math.floor(.5*("x"===e?t.element.clientWidth:t.element.clientHeight))},pressThreshold:8,diagonalSwipes:!1,diagonalLimit:Math.tan(.375*Math.PI),mouseSupport:!0},l=new L(n,s);function c(){window.innerWidth>1008?(o.getBoundingClientRect().x>0&&(r-=80),a.style.marginLeft=r+"vw",t.style.display="inline-block",o.getBoundingClientRect().left-1500<200&&(e.style.display="none")):window.innerWidth<=1008&&window.innerWidth>=600?o.getBoundingClientRect().x>-400&&(r-=85,a.style.marginLeft=r+"vw",t.style.display="inline-block",o.getBoundingClientRect().left-500.75<-400&&(e.style.display="none")):window.innerHeight>650?o.getBoundingClientRect().x>-200&&(r-=85,a.style.marginLeft=r+"vw",t.style.display="inline-block",o.getBoundingClientRect().left-284.75<-200&&(e.style.display="none")):o.getBoundingClientRect().x>-500&&(r-=85,a.style.marginLeft=r+"vw",t.style.display="inline-block",o.getBoundingClientRect().left-284.75<-500&&(e.style.display="none"))}function u(){i.getBoundingClientRect().x<0&&(window.innerWidth>1008?r+=80:r+=85),a.style.marginLeft=r+"vw",window.innerWidth>=1008?i.getBoundingClientRect().x>-1500&&(t.style.display="none"):window.innerWidth<=1008&&window.innerWidth>=600?i.getBoundingClientRect().x>-1e3&&(t.style.display="none"):i.getBoundingClientRect().x>-500&&(t.style.display="none"),e.style.display="inline-block"}l.on("swiperight",(function(){u()})),l.on("swipeleft",(function(){c()}))},e.DropDownNavLogic=function(){document.addEventListener("click",(function(e){e.target.matches("li")&&(e.preventDefault(),e.target.classList.toggle("active"))}),!1)},e.FilterLogic=function(){var e,t=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=f(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}(document.querySelectorAll(".filter-container .filter-heading"));try{for(t.s();!(e=t.n()).done;){for(var n=e.value,i=document.querySelectorAll(".filter-content"),o=0;o<i.length;o++)i[o].classList.add("hide");n.addEventListener("click",(function(e){if(e.target.classList.toggle("filter-open"),e.target.classList.toggle("filter-closed"),e.target.hasAttribute("aria-expanded")){var t=e.target.getAttribute("aria-expanded");e.target.setAttribute("aria-expanded","false"===t?"true":"false")}e.target.nextElementSibling.classList.toggle("hide")}))}}catch(e){t.e(e)}finally{t.f()}},e.FiltersLogic=_,e.FormLogic=function(){var e=document.getElementById("course-application-form"),t=document.getElementById("colleges"),n=document.getElementById("learning"),i=document.getElementById("courses"),o=document.getElementById("mode"),r=document.getElementById("button");e.addEventListener("submit",(function(e){e.preventDefault(),function(){var e=document.getElementById("collegesValue").value,s=document.getElementById("learningValue").value,l=document.getElementById("coursesValue").value,c=document.getElementById("modeValue").value,u=function(e){e.parentNode.className="course-application-field-left error"},d=function(e){e.parentNode.className="course-application-field-left"},p=function(e){e.parentNode.className="course-application-field-right error"},h=function(e){e.parentNode.className="course-application-field-right"};""===e?u(t):d(t),""===s?p(n):h(n),""===l?u(i):d(i),""===c?p(o):h(o);var f=a.filter((function(t){return t.course===l&&t.study_modes===c&&t.distance_learning===s&&t.college===e}));r.setAttribute("value",f[0].application_link),window.open(f[0].application_link)}()}));var a=[{course:"MPhil",study_modes:"Full time",college:"CCW",distance_learning:"No",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=CCWREMPHFD01&code2=0003"},{course:"MPhil",study_modes:"Part time",college:"CCW",distance_learning:"No",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=CCWREMPHPD01&code2=0003"},{course:"PhD",study_modes:"Full time",college:"CCW",distance_learning:"No",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=CCWREPHDFD01&code2=0003"},{course:"PhD",study_modes:"Part time",college:"CCW",distance_learning:"No",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=CCWREPHDPD01&code2=0003"},{course:"MPhil",study_modes:"Full time",college:"CCW",distance_learning:"Yes",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=CCWREMPHDD01&code2=0001"},{course:"MPhil",study_modes:"Part time",college:"CCW",distance_learning:"Yes",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=CCWREMPHGD01&code2=0001"},{course:"PhD",study_modes:"Full time",college:"CCW",distance_learning:"Yes",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=CCWREPHDDD01&code2=0001"},{course:"PhD",study_modes:"Part time",college:"CCW",distance_learning:"Yes",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=CCWREPHDGD01&code2=0001"},{course:"MPhil",study_modes:"Full time",college:"CSM",distance_learning:"No",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=CSMREMPHFD01&code2=0005"},{course:"MPhil",study_modes:"Part time",college:"CSM",distance_learning:"No",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=CSMREMPHPD01&code2=0005"},{course:"PhD",study_modes:"Full time",college:"CSM",distance_learning:"No",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=CSMREPHDFD01&code2=0005"},{course:"PhD",study_modes:"Part time",college:"CSM",distance_learning:"No",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=CSMREPHDPD01&code2=0005"},{course:"MPhil",study_modes:"Full time",college:"CSM",distance_learning:"Yes",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=CSMREMPHDD01&code2=0001"},{course:"MPhil",study_modes:"Part time",college:"CSM",distance_learning:"Yes",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=CSMREMPHGD01&code2=0001"},{course:"PhD",study_modes:"Full time",college:"CSM",distance_learning:"Yes",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=CSMREPHDDD01&code2=0001"},{course:"PhD",study_modes:"Part time",college:"CSM",distance_learning:"Yes",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=CSMREPHDGD01&code2=0001"},{course:"MPhil",study_modes:"Full time",college:"LCC",distance_learning:"No",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=LCCREMPHFD01&code2=0005"},{course:"MPhil",study_modes:"Part time",college:"LCC",distance_learning:"No",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=LCCREMPHPD01&code2=0005"},{course:"PhD",study_modes:"Full time",college:"LCC",distance_learning:"No",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=LCCREPHDFD01&code2=0005"},{course:"PhD",study_modes:"Part time",college:"LCC",distance_learning:"No",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=LCCREPHDPD01&code2=0005"},{course:"MPhil",study_modes:"Full time",college:"LCC",distance_learning:"Yes",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=LCCREMPHDD01&code2=0001"},{course:"MPhil",study_modes:"Part time",college:"LCC",distance_learning:"Yes",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=LCCREMPHGD01&code2=0001"},{course:"PhD",study_modes:"Full time",college:"LCC",distance_learning:"Yes",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=LCCREPHDDD01&code2=0001"},{course:"PhD",study_modes:"Part time",college:"LCC",distance_learning:"Yes",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=LCCREPHDGD01&code2=0001"},{course:"MPhil",study_modes:"Full time",college:"LCF",distance_learning:"No",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=LCFREMPHFD01&code2=0004"},{course:"MPhil",study_modes:"Part time",college:"LCF",distance_learning:"No",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=LCFREMPHPD01&code2=0005"},{course:"PhD",study_modes:"Full time",college:"LCF",distance_learning:"No",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=LCFREPHDFD01&code2=0005"},{course:"PhD",study_modes:"Part time",college:"LCF",distance_learning:"No",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=LCFREPHDPD01&code2=0005"},{course:"MPhil",study_modes:"Full time",college:"LCF",distance_learning:"Yes",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=LCFREMPHDD01&code2=0001"},{course:"MPhil",study_modes:"Part time",college:"LCF",distance_learning:"Yes",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=LCFREMPHGD01&code2=0001"},{course:"PhD",study_modes:"Full time",college:"LCF",distance_learning:"Yes",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=LCFREPHDDD01&code2=0001"},{course:"PhD",study_modes:"Part time",college:"LCF",distance_learning:"Yes",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=LCFREPHDGD01&code2=0001"},{course:"MPhil",study_modes:"Full time",college:"CCI",distance_learning:"No",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=CCIREMPHFD01&code2=0004"},{course:"MPhil",study_modes:"Part time",college:"CCI",distance_learning:"No",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=CCIREMPHPD01&code2=0004"},{course:"PhD",study_modes:"Full time",college:"CCI",distance_learning:"No",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=CCIREPHDFD01&code2=0004"},{course:"PhD",study_modes:"Part time",college:"CCI",distance_learning:"No",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=CCIREPHDPD01&code2=0004"},{course:"MPhil",study_modes:"Full time",college:"CCI",distance_learning:"Yes",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=CCIREMPHDD01&code2=0001"},{course:"MPhil",study_modes:"Part time",college:"CCI",distance_learning:"Yes",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=CCIREMPHGD01&code2=0001"},{course:"PhD",study_modes:"Full time",college:"CCI",distance_learning:"Yes",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=CCIREPHDDD01&code2=0001"},{course:"PhD",study_modes:"Part time",college:"CCI",distance_learning:"Yes",application_link:"https://sits.arts.ac.uk/urd/sits.urd/run/siw_ipp_lgn.login?process=siw_ipp_app&code1=CCIREPHDGD01&code2=0001"}]},e.GalleryLogic=function(e){y(".gallery-image-container",".gallery-image",".caption-container-image",(function(){document.querySelectorAll(".image-gallery-container").forEach((function(t){var n=t.querySelectorAll(".image-gallery .gallery-image img"),i=t.querySelectorAll(".image-gallery .glide__slides li"),o=t.querySelector(".close-btn"),r=t.querySelector(".open-btn"),a=t.querySelector(".image-gallery"),s=a.parentNode,l=t.querySelector(".image-expand-btn"),c=t.querySelector(".glide__arrow--left"),u=t.querySelector(".glide__arrow--right"),d=t.querySelector(".glide__track"),p=t.querySelectorAll(".interactive-btn"),h=t.querySelectorAll(".caption-icon-button"),f=t.querySelector(".glide__slides"),m="",v="",g=!1,y=!1,b=!1,w=t.querySelectorAll(".image-gallery"),L="";w.forEach((function(t){(L=new e(t,{focusAt:"center",perView:3,rewind:!1,keyboard:!1,gap:20})).mount()}));for(var E=function(){var e="";m=t.querySelector(".image-gallery li.glide__slide--active");for(var o=0;o<n.length;o++){var r=m.getBoundingClientRect(),a=i[o].getBoundingClientRect(),s=r.left+r.width,l=a.left+a.width,c=Math.pow(s-l,2),u=Math.sqrt(c)-Math.floor(45*Math.random());n[o].style.marginLeft=e+u+"px",n[o].parentNode.parentNode.parentNode.className.match(/\bglide__slide--active\b/)?e="-":n[o].style.marginLeft=e+u+"px"}},_=function(){for(var e=0;e<h.length;e++)h[e].classList.add("hide"),"true"===h[e].attributes[1].value&&h[e].click()},S=function(){y&&!b?C():b||k()},k=function(){a.classList.add("disable"),c.classList.add("disabled"),u.classList.add("disabled"),r.classList.remove("hide"),o.classList.add("hide"),E(),g=!1,T(l),T(f,!1)},C=function(){A(l),s.classList.remove("expand"),L.update({perView:3}),y=!1,_()},T=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.classList.add("disabled"),t&&e.setAttribute("aria-hidden","true")},A=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.classList.remove("disabled"),t&&e.setAttribute("aria-hidden","false")},q=0;q<p.length;q++)p[q].addEventListener("mousedown",(function(e){e.preventDefault()}));o.addEventListener("click",S),r.addEventListener("click",(function(){for(var e=0;e<n.length;e++)n[e].style.marginLeft="0px";a.classList.remove("disable"),r.classList.add("hide"),o.classList.remove("hide"),g=!0,A(l),A(f,!1)})),l.addEventListener("click",(function(){L.update({perView:1}),s.classList.add("expand"),y=!0,T(l),function(){for(var e=0;e<h.length;e++)h[e].classList.remove("hide")}()})),d.addEventListener("mousedown",(function(e){e.target.classList.contains("gallery-image-container")&&y&&S()})),window.addEventListener("resize",(function(){y?S():g||E()})),L.mount(),L.on("run.before",(function(){b=!0})),L.on("move.after",(function(){var e;b=!1,v=t.querySelector(".image-gallery li.glide__slide--active img"),e=L.index,g&&0===e?T(c):A(c),function(e){g&&e===n.length-1?T(u):A(u)}(L.index),l.style.height=v.offsetHeight+"px",l.style.width=v.offsetWidth+"px"})),window.addEventListener("keydown",(function(e){"Escape"===e.key&&g&&L._o.keyboard&&S()})),a.addEventListener("mouseenter",(function(){L.update({keyboard:!0})})),a.addEventListener("mouseleave",(function(){L.update({keyboard:!1})})),_(),S()}))}),!0)},e.GlobalNavLogic=function(){var e;C();var n=document.querySelectorAll(".nav-menu .list-item-element"),i=Array.from(n);n.forEach((function(e,n){e.addEventListener("click",(function(){var n=e.getAttribute("aria-expanded"),o=e.getAttribute("aria-label");if(null!==n){var r=i.filter((function(t,n){return t!==e&&3!==n}));r.forEach((function(e){e.setAttribute("aria-expanded",!1)})),t(e),function(e){var t,n;if(e.classList.contains("expandable-icon")){var o=e.querySelector(".open-icon"),r=e.querySelector(".close-icon");null==o||o.classList.toggle("display-none"),null==r||r.classList.toggle("display-none"),a()}e.classList.contains("main-menu-btn")&&s();e.classList.contains("search-ic")&&"true"===(null===(t=document.querySelector("[data-ual-submenu-is-open]"))||void 0===t?void 0:t.getAttribute("data-ual-submenu-is-open"))&&(null===(n=document.querySelector("#global-nav-menu-icon"))||void 0===n||n.click());function a(){var t=i.filter((function(t,n){return t!==e&&n>2}));t.forEach((function(e){var t=e.querySelector(".open-icon"),n=e.querySelector(".close-icon");null!==t&&null!==n&&t.classList.contains("display-none")&&(t.classList.remove("display-none"),n.classList.add("display-none")),"language-flagIcon"===e.id&&e.nextElementSibling.classList.add("language-hideList")}))}function s(){(document.body.scrollTop>60||document.documentElement.scrollTop>60)&&(document.body.scrollTop=0,document.documentElement.scrollTop=0)}}(e)}e.setAttribute("aria-label","Open"===o?"Closed":"Open")}))})),null===(e=document.querySelector("#global-nav-menu-icon"))||void 0===e||e.addEventListener("click",(function(e){var t,n,i;"false"===(null===(t=document.querySelector("[data-ual-submenu-is-open]"))||void 0===t?void 0:t.getAttribute("data-ual-submenu-is-open"))&&"block"==(null===(n=document.querySelector("div.search-concierge"))||void 0===n?void 0:n.style.display)&&(null===(i=document.querySelector("#mainSearch"))||void 0===i||i.click())}))},e.HandleHeaderFluidScroll=function(){window.addEventListener("scroll",(function(){var e=document.getElementById("header-fluid");document.body.scrollTop>250||document.documentElement.scrollTop>250?e.classList.add("header-fluid-sm-version"):e.classList.remove("header-fluid-sm-version")}))},e.HandlePlayers=function(e,t){var n=function(){function e(t){r(this,e),this.offCanvasConfig=t,this.elements=this.createElements(),this.currentVideoInstance=null,this.currentPlayerElement=null,this.previousScrollPosition=0,this.videoCardInstance=null,this.handleOutsideClick=this.handleOutsideClick.bind(this),this.unsetVideo=this.unsetVideo.bind(this),this.handleKeyboardExit=this.handleKeyboardExit.bind(this),this.handleStop=this.handleStop.bind(this),this.toggleControlsOn=this.toggleControlsOn.bind(this),this.toggleControlsOff=this.toggleControlsOff.bind(this),this.videoStopped=!1}return s(e,[{key:"registerEvents",value:function(){if(this.elements.videoExitButton.addEventListener("click",this.unsetVideo),window.addEventListener("click",this.handleOutsideClick),window.addEventListener("keydown",this.handleKeyboardExit),this.currentVideoInstance.on("timeupdate",this.handleStop),"vimeo"===this.currentVideoInstance.provider){var e=this.elements.videoWrapper.querySelector(".plyr");e.addEventListener("mouseenter",this.toggleControlsOn),e.addEventListener("mouseleave",this.toggleControlsOff)}}},{key:"unregisterEvents",value:function(){if(this.elements.videoExitButton.removeEventListener("click",this.unsetVideo),window.removeEventListener("click",this.handleOutsideClick),window.removeEventListener("keydown",this.handleKeyboardExit),"vimeo"===this.currentVideoInstance.provider){var e=this.elements.videoWrapper.querySelector(".plyr");e.removeEventListener("mouseenter",this.toggleControlsOn),e.removeEventListener("mouseleave",this.toggleControlsOff)}}},{key:"toggleControlsOn",value:function(){this.currentVideoInstance.toggleControls(!0)}},{key:"toggleControlsOff",value:function(){this.currentVideoInstance.toggleControls(!0)}},{key:"createElements",value:function(){return document.querySelector(this.offCanvasConfig.appendTo).insertAdjacentHTML("afterbegin",'\n      <section class="grid-container-25 video-off-canvas" data-overlay="inactive" data-ual-video-overlay="true"> \n          <div class="video-off-canvas__container grid-col-full-width md-offset-left-2 md-offset-right-2 lg-offset-left-3 lg-offset-right-3">\n              <div class="plyr__video-embed video-off-canvas__wrapper">\n              <button class="video-off-canvas__btn" aria-label="Close video">\n              <svg\n                width="1em"\n                height="1em"\n                viewBox="0 0 14 14"\n                fill="none"\n                className="exit-svg"\n              >\n                <path\n                  fillRule="evenodd"\n                  clipRule="evenodd"\n                  d="M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z"\n                  fill="white"\n                />\n            </svg>\n            </button>\n          </div>\n          </div>\n      </section>'),{videoOverlay:document.querySelector(".video-off-canvas"),videoContainer:document.querySelector(".video-off-canvas__container"),videoWrapper:document.querySelector(".video-off-canvas__wrapper"),videoExitButton:document.querySelector(".video-off-canvas__btn")}}},{key:"setVideo",value:function(e){var t=this;this.previousScrollPosition=document.documentElement.scrollTop||document.body.scrollTop,this.videoCardInstance=e,window.scroll(0,0),this.hideOrShowMainPageContent(),this.elements.videoOverlay.setAttribute("data-overlay","active");var n=this.elements.videoWrapper,i=this.createElementWithClasses("div");i.setAttribute("data-plyr-provider",this.videoCardInstance.provider),i.setAttribute("data-plyr-embed-id",this.videoCardInstance.videoURL),n.insertBefore(i,this.elements.videoExitButton),this.currentPlayerElement=i,this.elements.videoOverlay.setAttribute("data-provider",this.videoCardInstance.provider),this.currentVideoInstance=new e.plyrInstance(i,this.getOptions()),"vimeo"===this.videoCardInstance.provider&&(this.currentVideoInstance.poster=this.videoCardInstance.poster),this.currentVideoInstance.on("ready",(function(){t.scrollIntoCenter(),t.videoStopped=!1,t.currentVideoInstance.play(),t.registerEvents()}))}},{key:"unsetVideo",value:function(){this.currentVideoInstance.stop(),this.destroyOverlayPlayer(),this.unregisterEvents(),this.currentVideoInstance=null,this.elements.videoOverlay.setAttribute("data-overlay","inactive"),this.hideOrShowMainPageContent(),window.scroll(0,this.previousScrollPosition),this.restoreFocus()}},{key:"handleStop",value:function(){var e=(100*this.currentVideoInstance.currentTime/this.currentVideoInstance.duration).toFixed();if(!Number(e))return!1;100===Number(e)&&(this.videoStopped=!0,this.currentVideoInstance.stop())}},{key:"handleKeyboardExit",value:function(e){return"escape"===e.key.toLowerCase()&&this.handleOutsideClick(e)}},{key:"handleOutsideClick",value:function(e){return!!this.currentVideoInstance&&(!(0===this.currentVideoInstance.currentTime&&!this.videoStopped)&&void(this.elements.videoWrapper.querySelector(".plyr").contains(e.target)||this.unsetVideo()))}},{key:"createElementWithClasses",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=document.createElement(e);return t&&(n.className=t),n}},{key:"destroyOverlayPlayer",value:function(){this.currentVideoInstance.destroy(),this.currentPlayerElement.remove()}},{key:"getOptions",value:function(){var e={youtube:{modestbranding:1,controls:1,disablekb:0},vimeo:{background:!0},keyboard:{focused:!0,global:!1},controls:["play","progress","mute","volume","captions","pip","airplay","fullscreen"],autoplay:!0};return e}},{key:"scrollIntoCenter",value:function(){return document.querySelector(".plyr").scrollIntoView({behavior:"smooth",block:"center",inline:"center"})}},{key:"hideOrShowMainPageContent",value:function(){var e=this.offCanvasConfig.pageContent,t=this.offCanvasConfig.className;Array.isArray(e)?e.forEach((function(e){if(!document.querySelector(e))return!1;document.querySelector(e).classList.toggle(t)})):e.querySelector(e).classList.toggle(t)}},{key:"restoreFocus",value:function(){this.videoCardInstance.playButton.focus()}}]),e}(),i=function(){function e(t,n,i){r(this,e),this.rootElement=t,this.plyrInstance=n,this.overlayInstance=i,this.playerElement=t.querySelector('[data-ual-plyr-root="true"]'),this.videoURL=this.getAttributeFromElement("data-plyr-embed-id"),this.provider=this.getAttributeFromElement("data-plyr-provider"),this.playButton=t.querySelector(".video-card__svg"),this.plyr=this.createPlyr(),this.poster=null,this.registerEvents()}return s(e,[{key:"getAttributeFromElement",value:function(e){return this.playerElement.getAttribute(e)}},{key:"createPlyr",value:function(){var t=e.maybeSetVideoURL(this.rootElement.querySelector('[data-ual-plyr-root="true"]')),n=new this.plyrInstance(t,this.getOptions());return"vimeo"==this.provider&&this.fetchAndSetPoster(),n}},{key:"getOptions",value:function(){return{}}},{key:"registerEvents",value:function(){var e=this;this.rootElement.addEventListener("click",(function(){e.overlayInstance.setVideo(e)})),this.plyr.on("ready",(function(e){return e.srcElement.setAttribute("tabindex","-1")}))}},{key:"fetchAndSetPoster",value:function(){var t=this,n=e.getVimeoVideoId(this.videoURL);n||(n=this.videoURL),fetch("https://vimeo.com/api/v2/video/".concat(n,".json")).then((function(e){return e.json()})).then((function(e){var n=e[0].thumbnail_large;t.poster=n,t.plyr.poster=t.poster}))}}],[{key:"maybeSetVideoURL",value:function(e){var t=e.getAttribute("data-plyr-embed-id"),n=/vimeo.*\/(\d+)/i.exec(t);return n&&e.setAttribute("data-plyr-embed-id","https://player.vimeo.com/video/".concat(n[1])),e}},{key:"getVimeoVideoId",value:function(e){var t=e.match(/(https?:\/\/)?(www\.)?(player\.)?vimeo\.com\/?(showcase\/)*([0-9))([a-z]*\/)*([0-9]{6,11})[?]?.*/),n=!1;return t&&7==t.length&&(n=t[6]),n}}]),e}(),o=function(e){l(n,e);var t=p(n);function n(){return r(this,n),t.apply(this,arguments)}return s(n,[{key:"registerEvents",value:function(){var e=this;this.rootElement.addEventListener("click",(function(){e.rootElement.classList.add("active"),e.plyr.play()}))}},{key:"getOptions",value:function(){var e={youtube:{modestbranding:1,controls:1,disablekb:0},vimeo:{background:!0},keyboard:{focused:!0,global:!1},controls:["stop","play","progress","mute","volume","captions","pip","airplay","fullscreen"],autoplay:!1,clickToPlay:!1,ratio:"1:1"};return e}}]),n}(i),a=Array.from(document.querySelectorAll('[data-ual-video="true"]'));if(0===a.length)return!1;var c=new n(t);a.forEach((function(t){if(!t.querySelector('[data-ual-plyr-root="true"]'))return!1;t.hasAttribute("data-ual-plyr-inline")&&"true"===t.getAttribute("data-ual-plyr-inline")?new o(t,e):new i(t,e,c)}))},e.LayoutMasonryGrid=function(){function e(e){var t,n,i,o=document.getElementsByClassName("card-masonry-grid")[0],r=parseInt(window.getComputedStyle(o).getPropertyValue("grid-auto-rows")),a=parseInt(window.getComputedStyle(o).getPropertyValue("grid-row-gap")),s=Math.ceil((e.querySelector(".content").getBoundingClientRect().height+a)/(r+a));if(null===e.previousElementSibling||null===e.previousElementSibling.previousElementSibling)e.style.gridRowStart="1";else{var l=e.previousElementSibling.previousElementSibling;e.style.gridRowStart=(n=(t=l).style.gridRowStart.split(" ").pop(),i=t.style.gridRowEnd.split(" ").pop(),parseFloat(n)+parseFloat(i))}e.style.gridRowEnd="span "+s,e.style.opacity="1"}function t(){for(var t=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,n=document.getElementsByClassName("card-article"),i=0;i<n.length;i++);t>575&&function(){for(var t=document.getElementsByClassName("card-masonry-grid"),n=0;n<t.length;n++)for(var i=t[n].getElementsByClassName("card-article"),o=0;o<i.length;o++)e(i[o])}()}window.addEventListener("resize",t),document.getElementsByClassName("card-masonry-grid").length>0&&y(".card-masonry-grid",".card-article",".caption-container-image",t,!0)},e.NavLogic=v,e.OnlineCourseLogic=function(){var e=document.querySelector(".drop-btn"),t=document.querySelector(".sub-nav-mobile");if(t){g();var n=function(){var t=Array.from(document.querySelectorAll("[data-section]")).find((function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.getBoundingClientRect();return n.bottom>160&&n.top<=window.innerHeight*t}(e)}));t&&function(t){for(var n=document.querySelectorAll(".sub-nav-item-mobile"),i=0;i<n.length;i++){var o=n[i];o.classList.remove("selected"),o.dataset.current===t&&(o.classList.add("selected"),e.textContent=t)}}(t.getAttribute("data-section"))},i=function(){e.classList.toggle("active"),t.classList.toggle("active");var i=e.classList.contains("active");e.setAttribute("aria-expanded",i?"true":"false"),i?window.removeEventListener("scroll",n):window.addEventListener("scroll",n)};document.addEventListener("click",(function(i){t.contains(i.target)||e.contains(i.target)||(e.classList.remove("active"),t.classList.remove("active"),e.setAttribute("aria-expanded","false"),window.addEventListener("scroll",n))})),e&&e.addEventListener("click",i),t.addEventListener("click",(function(t){if("A"===t.target.tagName){for(var o=document.querySelectorAll(".sub-nav-item-mobile"),r=0;r<o.length;r++){o[r].classList.remove("selected")}t.target.classList.add("selected"),e.textContent=t.target.dataset.current,i(),e.setAttribute("aria-expanded","false"),window.removeEventListener("scroll",n)}setTimeout((function(){window.addEventListener("scroll",n)}),1e3)})),window.addEventListener("scroll",n)}},e.PDFCatalogueLogic=function(e){var t,n;t=document.querySelectorAll(".pdf-catalogue-container"),n=document.querySelector(".pdf-catalogue-container"),t.forEach((function(t){var i=t.querySelectorAll(".pdf-catalogue-item"),o=t.querySelectorAll(".pdf-catalogue"),r=t.querySelector(".background-gradient");t.querySelectorAll(".pdf-catalogue-item a");var a=t.querySelectorAll(".pdf-image-container"),s=t.querySelector(".glide__slides"),l=t.querySelector(".glide__arrow--right"),c=t.querySelector(".glide__arrow--left"),u=t.querySelector(".glide__arrows"),d="";o.forEach((function(t){n.classList.contains("fifty-fifty-container")?(l.style.width="40%",c.style.width="40%",d=new e(t,{focusAt:0,perView:1,rewind:!1,keyboard:!0,dragThreshold:!0,swipeThreshold:!1,bound:!0,gap:0,breakpoints:{600:{perView:1,peek:{before:0,after:window.innerWidth/2}}},peek:{before:0,after:window.innerWidth/4.5}})):d=new e(t,{focusAt:0,perView:3,rewind:!1,keyboard:!0,dragThreshold:!0,swipeThreshold:!1,bound:!0,gap:0,breakpoints:{600:{perView:1,peek:{before:0,after:window.innerWidth/3}}},peek:{before:0,after:window.innerWidth/6.5}})}));var p=function(e){e.classList.add("hide"),e.setAttribute("aria-hidden","true")},h=function(e){e.classList.remove("hide"),e.setAttribute("aria-hidden","false")},f=function(){for(var e=0,t=0;t<a.length;t++)a[t].clientHeight>e&&(e=a[t].clientHeight);return e},m=function(){var e=f();!function(){for(var t=0;t<a.length;t++){var n=e-a[t].clientHeight;a[t].style.marginTop=n+"px"}}(),function(e){r.style.height="calc("+e+"px + 4vw)"}(f())},v=function(){i.length<d._o.perView&&p(u),i.length>d._o.perView&&h(u)};d.on("build.after",(function(){m(),v()})),d.on("run",(function(){d.index+d._o.perView+.5>=i.length?(s.style.marginLeft=i[0].offsetWidth/2+"px",p(l)):(s.style.marginLeft=0,h(l)),d.index>0?h(c):p(c)})),d.mount(),window.addEventListener("resize",(function(){m(),v(),window.innerWidth>600?d.update({perView:3,peek:{before:0,after:window.innerWidth/6.5}}):d.update({perView:1,peek:{before:0,after:window.innerWidth/3}})})),c.addEventListener("mousedown",(function(e){e.preventDefault()})),l.addEventListener("mousedown",(function(e){e.preventDefault()}));for(var g=0;g<i.length;g++)i[g].addEventListener("mousedown",(function(e){e.preventDefault()}))}))},e.PaginationLogic=function(){var e=document.getElementsByClassName("pagination-next"),t=document.getElementsByClassName("pagination-previous"),n=document.getElementsByClassName("dots-page");if(n.length>0)for(var i=0;i<n.length;i++)n[i].innerHTML="",n[i].className="ellipsis";if(window.innerWidth<600){if(e.length>0)for(var o=0;o<e.length;o++)e[o].children[0].innerHTML="<span class='sr-only'>Next page</span>";if(t.length>0)for(var r=0;r<t.length;r++)t[r].children[0].innerHTML="<span class='sr-only'>Previous page</span>"}else!function(){if(e.length>0)for(var n=0;n<e.length;n++)e[n].children[0].innerHTML="Next <span class='sr-only'>page</span>";if(t.length>0)for(var i=0;i<t.length;i++)t[i].children[0].innerHTML="Previous <span class='sr-only'>page</span>"}()},e.PeopleLogic=function(){document.querySelectorAll(".people-header").forEach((function(e){var t,n,i,o,r,a,s=e.querySelector(".sub-nav-wrapper"),l=e.querySelector(".people-header__content--bottom-margin"),c=e.querySelectorAll(".description-section");if(s){r=e.querySelectorAll(".sub-nav li"),a=e.querySelectorAll(".nav-tabs li"),(r.length<=1||a.length<=1)&&(a[0].parentNode.parentNode.remove(),r[0].parentNode.remove());var u=function(){l.getBoundingClientRect().bottom<=48?s.parentNode.classList.add("stick"):l.getBoundingClientRect().bottom>0&&s.parentNode.classList.remove("stick")};u();var d=(n=function(){var e;e=[],c.forEach((function(t){var n=t.getBoundingClientRect().top;n>60&&n<window.innerHeight/2&&e.push(t.id)})),void 0!==e[0]&&(window.history.replaceState(null,null,"#"+e[0]),window.innerWidth<600?v():w())},i=500,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];clearTimeout(o),o=setTimeout((function(){clearTimeout(o),n.apply(void 0,t)}),i)});window.addEventListener("scroll",(function(){t||(window.requestAnimationFrame((function(){u(),d(),t=!1})),t=!0)}))}}))},e.SearchListingDropDown=function(){document.querySelectorAll(".search-listing-drop-down").forEach((function(e){var t=e.querySelector(".toggle-btn"),n=e.querySelectorAll(".search-listing-drop-down .list li");t.addEventListener("click",(function(e){e.target.classList.toggle("open")})),n.forEach((function(e){e.addEventListener("click",(function(e){t.innerHTML=e.currentTarget.innerHTML}))}))}))},e.ShortCoursesWidgetLogic=function(){var e=document.querySelector('[data-component="course-widget"]');if(null!==e){var t=e.getAttribute("data-course-id"),i=e.hasAttribute("data-env")?e.getAttribute("data-env"):"dev";!function(e,t,i){var r={data:[],currentChunk:0,chunkSize:4,root:e,courseId:t,env:i,query:{mode:null,month:null}};function a(){return s.apply(this,arguments)}function s(){return(s=o(n().mark((function e(){var t;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r.courseId){e.next=3;break}throw new y;case 3:return e.next=5,l();case 5:if("ELearning"!==S((t=e.sent).Type,0,"")){e.next=9;break}return r.root.innerHTML='\n                        <ul class="grid-col-full-width ual-widget__container">\n            '.concat(v(t),"\n        </ul>\n        "),e.abrupt("return");case 9:r.data=p(t),r.root.innerHTML='\n            <div class="grid-col-lg-1of2">\n            <p aria-live="assertive" role="alert" class="sr-only">'.concat(r.data.length,' course dates loaded</p>\n         <form class="ual-widget__form filters" method="get" action="/" role="search">\n        ').concat(h(),'\n        </form>\n        </div>\n              <ul class="grid-col-full-width ual-widget__container">\n            ').concat(f(),"\n        </ul>\n        ").concat(g(),"\n      "),b(),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),r.root.innerHTML=y();case 17:case"end":return e.stop()}}),e,null,[[0,14]])})))).apply(this,arguments)}function l(){return c.apply(this,arguments)}function c(){return c=o(n().mark((function e(){var t,i,o,a,s,l,c;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i="dev"===r.env?"searchtest":"search",o="https://".concat(i,".arts.ac.uk/s/search.html?collection=ual-short-courses&query=%21nullquery&meta_CourseID_sand=").concat(r.courseId,"&form=widget"),e.next=4,fetch(o);case 4:return a=e.sent,e.next=7,a.json();case 7:if(s=e.sent,0!==(l=(null==s||null===(t=s.data)||void 0===t?void 0:t.result)||[]).length){e.next=11;break}throw new y;case 11:if(c=l.find((function(e){return Array.isArray(e.CourseDateID)&&e.CourseDateID.length>0&&Array.isArray(e.StartDate)&&e.StartDate.length>0}))){e.next=14;break}throw new y;case 14:return e.abrupt("return",c);case 15:case"end":return e.stop()}}),e)}))),c.apply(this,arguments)}function u(){if(null===r.root.querySelector("form"))return r.data;var e=r.query.mode,t=r.query.month;return r.data.filter((function(n){var i="All"===t||null===t||n.month===t,o=null===e||n.mode===e;return i&&o}))}function d(){var e=r.query.mode,t=r.query.month,n=r.data.reduce((function(n,i){var o=i.month,r=i.mode;return(null===e||e===r)&&(n.month[o]||(n.month[o]={label:o,count:0,selected:o===t}),n.month[o].count+=1),(null===t||t===o||"All"===t)&&!n.mode[r]&&(n.mode[r]={label:r,selected:r===e}),n}),{month:{},mode:{}}),i=Object.values(n.month);return i.unshift({label:"All",count:i.reduce((function(e,t){return e+t.count}),0),selected:"All"===t}),{month:i,mode:Object.values(n.mode).sort((function(e,t){return"On campus"===e.label?-1:"On campus"===t.label?1:0}))}}function p(e){var t=new Date;return e.CourseDateID.map((function(t,n){return function(e,t){var n=function(e){var t=new Date(e),n=new Intl.DateTimeFormat("en-GB",{day:"2-digit",timeZone:"Europe/London"}).format(t),i=new Intl.DateTimeFormat("en-GB",{month:"short",timeZone:"Europe/London"}).format(t),o=new Intl.DateTimeFormat("en-GB",{year:"numeric",timeZone:"Europe/London"}).format(t);return"".concat(n," ").concat(i.substring(0,3)," ").concat(o)},i=function(e){var t=new Date(e),n={hour:"2-digit",minute:"2-digit",timeZone:"Europe/London",hour12:!1};return new Intl.DateTimeFormat("en-GB",n).format(t)},o=function(e){var t=new Date(e);return new Intl.DateTimeFormat("en-GB",{timeZone:"Europe/London",timeZoneName:"short"}).formatToParts(t).find((function(e){return"timeZoneName"===e.type})).value},r=function(e){var t=new Date(e),n=new Intl.DateTimeFormat("en-GB",{month:"short",timeZone:"Europe/London"}).format(t),i=new Intl.DateTimeFormat("en-GB",{year:"numeric",timeZone:"Europe/London"}).format(t);return"".concat(n," ").concat(i)};return{id:S(e.CourseDateID,t),start:n(S(e.StartDate,t)),end:n(S(e.EndDate,t)),startTime:i(S(e.StartDate,t)),endTime:i(S(e.EndDate,t)),location:["Online","Online Short Course"].includes(S(e.Venue,t))?"Online":S(e.Location,t),price:S(e.Price,t),placesRemaining:parseInt(S(e.PlacesRemaining,t,0),10),mode:["Online","Online Short Course"].includes(S(e.Venue,t))?"Online":"On campus",schedule:S(e.Schedule,t),tutor:S(e.Tutor,t).split(",").join(", "),startRaw:S(e.StartDate,t),month:r(S(e.StartDate,t)),timeZone:o(S(e.EndDate,t))}}(e,n)})).filter((function(e){return new Date(e.startRaw)>t})).sort((function(e,t){return new Date(e.startRaw)-new Date(t.startRaw)}))}function h(){var e=d(),t=e.month,n=t.find((function(e){return e.selected}));void 0===n&&(n=t.find((function(e){return"All"===e.label})));var i=e.mode;return'\n    <fieldset class="month checkbox-wrapper">\n          <legend>Filter by starting month</legend>\n          <details>\n            <summary>'.concat(n.label," (").concat(n.count,')</summary>\n            <div role="listbox">\n            ').concat(t.map((function(e){return'\n                <div role="option">\n                <input type="checkbox" id="'.concat(e.label.toLowerCase(),'" name="month" value="').concat(e.label,'" ').concat(e.selected?"checked":"",'/>\n                <label for="').concat(e.label.toLowerCase(),'">').concat(e.label," (").concat(e.count,")</label>\n                </div>\n                ")})).join(""),'\n            </div>\n          </details>\n          </fieldset>\n                 <fieldset class="mode">\n          <legend class="sr-only">Mode</legend>\n          <div>\n              ').concat(i.map((function(e){return'\n                            <div>\n              <input type="checkbox" id="'.concat(e.label.toLowerCase().replace(/\s/g,""),'" name="mode" value="').concat(e.label,'" ').concat(e.selected?"checked":"",'/>\n              <label for="').concat(e.label.toLowerCase().replace(/\s/g,""),'"  >').concat(e.label,"</label>\n            </div>  \n                ")})).join(""),"\n          </div>\n        </fieldset>")}function f(){var e=function(e,t){for(var n=[],i=0;i<e.length;i+=t)n.push(e.slice(i,i+t));return n}(u(),r.chunkSize),t=r.root.querySelector(".ual-widget__load-more");return null!==t&&(void 0===e[r.currentChunk+1]?t.classList.add("hide"):t.classList.remove("hide")),e[r.currentChunk].map((function(e){return m(e)})).join("")}function m(e){var t=e.id,n=e.start,i=e.end,o=e.location,a=e.price,s=e.startTime,l=e.endTime,c=e.placesRemaining,u=e.schedule,d=e.tutor,p=e.timeZone,h={Schedule:u,Time:"".concat(s," - ").concat(l," ").concat(p)},f={Tutor:d},m="dev"===r.env?"https://ual.accessplanit.com/accessplansandbox/checkout/AddItems":"https://shortcourses.arts.ac.uk/bookings/checkout/AddItems";return'\n          <li class="ual-apply-widget" id="card-'.concat(t,'">\n  <div class="ual-apply-widget__content">\n    <div class="ual-apply-widget__body">\n      <div class="ual-apply-heading__container">\n        <h3 class="heading3" tabindex="-1">\n          ').concat(n,'\n          <svg viewBox="0 0 17 16" aria-hidden="true">\n            <path\n              d="M8.98816 0.00268555L8.15067 0.811371L14.3994 7.28246H0.604156V8.44657H14.4234L8.15159 14.917L8.98747 15.7273L16.5943 7.87971L8.98816 0.00268555Z"\n            ></path>\n          </svg>\n          <span class="sr-only">to</span>\n          ').concat(i,"\n        </h3>\n        <span>").concat(o,"</span>\n      </div>\n      ").concat(Object.keys(h).some((function(e){return h[e]}))?'\n        <ul class="ual-apply-widget__list" data-align="end">\n        '.concat(Object.keys(h).map((function(e){return h[e]?"\n          <li>\n          <strong>".concat(e,":</strong>\n          ").concat(h[e],"\n          </li>\n          "):""})).join(""),"\n      </ul>"):"","\n            ").concat(Object.keys(f).some((function(e){return f[e]}))?'\n              <ul class="ual-apply-widget__list" data-align="end">\n        '.concat(Object.keys(f).map((function(e){return f[e]?"\n          <li>\n          <strong>".concat(e,":</strong>\n          ").concat(f[e],"\n          </li>\n          "):""})).join(""),"\n      </ul>"):"",'\n      <div class="meta-container">\n      ').concat(c<=5?'              <div>\n                <span class="ual-apply-widget__alert">\n                  <svg\n                    viewBox="0 0 14 16"\n                    fill="none"\n                    xmlns="http://www.w3.org/2000/svg"\n                    aria-hidden="true"\n                  >\n                    <path\n                      d="M0.66687 10.1037C0.66687 8.64534 1.01409 7.34673 1.70854 6.20785C2.40298 5.06896 3.16687 4.11062 4.0002 3.33284C4.83354 2.55507 5.59743 1.96132 6.29187 1.5516L7.33354 0.937012V3.68701C7.33354 4.2009 7.50715 4.60715 7.85437 4.90576C8.20159 5.20437 8.59048 5.35368 9.02104 5.35368C9.25715 5.35368 9.48284 5.30507 9.69812 5.20784C9.9134 5.11062 10.1113 4.9509 10.2919 4.72868L10.6669 4.27034C11.6669 4.85368 12.4724 5.66271 13.0835 6.69743C13.6946 7.73215 14.0002 8.86757 14.0002 10.1037C14.0002 11.3259 13.7016 12.4405 13.1044 13.4474C12.5071 14.4544 11.7224 15.2495 10.7502 15.8328C10.9863 15.4995 11.1703 15.1349 11.3023 14.7391C11.4342 14.3433 11.5002 13.9231 11.5002 13.4787C11.5002 12.9231 11.396 12.3988 11.1877 11.9058C10.9794 11.4127 10.6808 10.9717 10.2919 10.5828L7.33354 7.68701L4.39604 10.5828C3.99326 10.9856 3.6877 11.4301 3.47937 11.9162C3.27104 12.4023 3.16687 12.9231 3.16687 13.4787C3.16687 13.9231 3.23284 14.3433 3.36479 14.7391C3.49673 15.1349 3.68076 15.4995 3.91687 15.8328C2.94465 15.2495 2.15993 14.4544 1.5627 13.4474C0.965481 12.4405 0.66687 11.3259 0.66687 10.1037ZM7.33354 10.0203L9.10437 11.7495C9.34048 11.9856 9.52104 12.2495 9.64604 12.5412C9.77104 12.8328 9.83354 13.1453 9.83354 13.4787C9.83354 14.1592 9.59048 14.7391 9.10437 15.2183C8.61826 15.6974 8.02798 15.937 7.33354 15.937C6.63909 15.937 6.04881 15.6974 5.5627 15.2183C5.07659 14.7391 4.83354 14.1592 4.83354 13.4787C4.83354 13.1592 4.89604 12.8502 5.02104 12.5516C5.14604 12.253 5.32659 11.9856 5.5627 11.7495L7.33354 10.0203Z"\n                      fill="#1C1B1F"\n                    ></path>\n                  </svg>\n                  Last places\n                </span>\n              </div>':"",'\n        <div>\n          <h4 class="heading3">£').concat(a,".00</h4>\n          <span>(incl. taxes)</span>\n        </div>\n        ").concat(c>0?'<a href="'.concat(m,"?coursedateid=").concat(t,'" class="btn">\n          Book course\n          <span class="arrow-right" aria-hidden="true">\n            <svg viewBox="0 0 17 16" aria-hidden="true">\n              <path\n                d="M8.98816 0.00268555L8.15067 0.811371L14.3994 7.28246H0.604156V8.44657H14.4234L8.15159 14.917L8.98747 15.7273L16.5943 7.87971L8.98816 0.00268555Z"\n              ></path>\n            </svg>\n          </span>\n        </a>'):'<a role="link" aria-disabled="true">Fully booked</a>',"\n      </div>\n    </div>\n  </div>\n</li>   \n    ")}function v(e){var t=e.CourseID,n=e.BookingLink,i=e.Price,o=e.PublishDate,r=!1;o.length>0&&n.length>0&&(new Date("".concat(o[0],"T00:00:00Z")).getTime()<(new Date).getTime()&&(r=!0));return'          <li class="ual-apply-widget" id="card-'.concat(t,'">\n  <div class="ual-apply-widget__content">\n    <div class="ual-apply-widget__body">\n      <div class="ual-apply-heading__container">\n        <h3 class="heading3" tabindex="-1">\n        Self-paced\n        </h3>\n        <span>Online</span>\n      </div>\n\n      <ul class="ual-apply-widget__list" data-align="end">\n      <li><strong>Start: </strong> On enrolment</li>\n      </ul>\n      <div class="meta-container">\n        ').concat(i.length>0?'<div>\n          <h4 class="heading3">£'.concat(i[0],".00</h4>\n          <span>(incl. taxes)</span>\n        </div>"):"","\n        ").concat(r?'<a href="'.concat(n[0],'" class="btn">\n          Book course\n          <span class="arrow-right" aria-hidden="true">\n            <svg viewBox="0 0 17 16" aria-hidden="true">\n              <path\n                d="M8.98816 0.00268555L8.15067 0.811371L14.3994 7.28246H0.604156V8.44657H14.4234L8.15159 14.917L8.98747 15.7273L16.5943 7.87971L8.98816 0.00268555Z"\n              ></path>\n            </svg>\n          </span>\n        </a>'):'<a role="link" aria-disabled="true">Unavailable</a>',"\n      </div>\n    </div>\n  </div>\n</li>")}function g(){var e=r.data.length<=r.chunkSize;return'<div class="grid-col-full-width ual-widget__load-more '.concat(e?"hide":"",'">\n      <button class="btn light">\n        Load more\n        <span class="arrow-right" aria-hidden="true">\n          <svg viewBox="0 0 17 16" aria-hidden="true">\n            <path\n              d="M8.98816 0.00268555L8.15067 0.811371L14.3994 7.28246H0.604156V8.44657H14.4234L8.15159 14.917L8.98747 15.7273L16.5943 7.87971L8.98816 0.00268555Z"\n            ></path>\n          </svg>\n        </span>\n      </button>\n    </div>')}function y(){return"<p class=\"grid-col-md-1of1\">\n            We're sorry, we couldn't find any matching dates for this course.\n        </p>"}function b(){var e=r.root.querySelector("form");e.addEventListener("submit",(function(e){return e.preventDefault()}));var t=r.root.querySelector(".ual-widget__container"),n=r.root.querySelector(".ual-widget__load-more");e.addEventListener("change",(function(n){e.querySelectorAll(":checked").forEach((function(e){return e.checked=!1})),r.query[n.target.name]===n.target.value?r.query[n.target.name]=null:r.query[n.target.name]=n.target.value,r.currentChunk=0,e.innerHTML=h(),t.innerHTML=f(),_()})),n.addEventListener("click",(function(){r.currentChunk+=1,t.innerHTML+=f();var e=r.currentChunk*r.chunkSize;t.querySelectorAll(".ual-apply-widget")[e].querySelector("h3").focus()})),_()}a()}(e,t,i)}},e.SplitPageAdvertLogic=function(){document.querySelectorAll(".creative-ops-advert").forEach((function(e){var t,n,i=e.querySelector(".advert-header__content__title"),o=e.querySelector(".advert__content__img"),r=e.querySelector(".advert__content__description"),a=e.querySelector(".advert__content--right"),s=e.querySelector(".advert__content--left"),l=e.querySelector(".advert__content--left .content-left-wrapper"),c=function(){window.innerWidth<=600?i.appendChild(o):r.prepend(o)},u=function(){a.getBoundingClientRect().top>=60&&window.innerWidth>=600?s.classList.add("top-stick"):a.getBoundingClientRect().bottom-80<=l.offsetHeight?s.classList.add("bottom-stick"):(s.classList.remove("bottom-stick"),s.classList.remove("top-stick"))};null!==o&&(c(),u()),window.addEventListener("resize",(function(){n||(window.requestAnimationFrame((function(){c(),n=!1})),n=!0)})),window.addEventListener("scroll",(function(){t||(window.requestAnimationFrame((function(){u(),t=!1})),t=!0)}))}))},e.SplitPageLogic=function(){document.querySelectorAll(".people-header").forEach((function(e){var t,n,i=e.querySelector(".people-header__content__title"),o=e.querySelector(".people-header__content__img"),r=e.querySelector(".people-header__content__description"),a=e.querySelector(".people-header__content--right"),s=e.querySelector(".people-header__content--left"),l=e.querySelector(".people-header__content--left .content-left-wrapper"),c=function(){window.innerWidth<=600?i.appendChild(o):r.prepend(o)},u=function(){a.getBoundingClientRect().top>=60&&window.innerWidth>=600?s.classList.add("top-stick"):a.getBoundingClientRect().bottom-80<=l.offsetHeight?s.classList.add("bottom-stick"):(s.classList.remove("bottom-stick"),s.classList.remove("top-stick"))};null!==o&&(c(),u()),window.addEventListener("resize",(function(){n||(window.requestAnimationFrame((function(){c(),n=!1})),n=!0)})),window.addEventListener("scroll",(function(){t||(window.requestAnimationFrame((function(){u(),t=!1})),t=!0)}))}))},e.StaticMap=k,e.Sticky=function(e,t){var n,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"bottom",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"mobile",a=!1,s={mobile:320,tablet:600,desktop:1008,xldesktop:1280};function l(){a=window.innerWidth>1008}function c(){var n=document.querySelector("nav").clientHeight,i=window.getComputedStyle(t),r=t.getBoundingClientRect()[o]+parseInt(i.marginBottom);document.querySelector("#offCanvas").classList.contains("is-open")?(e.classList.remove("stick"),e.style.top="auto"):r<=n&&!a?(e.classList.add("stick"),e.style.top=n+"px"):r>=n&&!a?(e.classList.remove("stick"),e.style.top="auto"):r<=n&&a?(e.classList.add("stick"),e.style.top=n+"px"):(e.classList.remove("stick"),e.style.top="auto")}window.innerWidth>=s[r]&&(l(),c()),window.addEventListener("scroll",(function(){!n&&window.innerWidth>=s[r]&&window.devicePixelRatio<5&&(c(),window.requestAnimationFrame((function(){l(),n=!1})),n=!0)})),window.addEventListener("resize",(function(){window.clearTimeout(i),window.innerWidth>=s[r]&&window.devicePixelRatio<5?(l(),i=setTimeout((function(){c()}),100)):e.classList.remove("stick")}),!1)},e.SubMenuLogic=function e(){var t;this.rootElement=null!==(t=document.querySelector('[data-ual-submenu-toggle="true"]'))&&void 0!==t?t:null,null!=this.rootElement?(this.button=this.rootElement.querySelector("button"),this.defaultAriaLabel=this.button.getAttribute("aria-label"),this.toggleAriaLabel=this.button.getAttribute("data-ual-togglelabel"),this.toggleClass=this.button.getAttribute("data-ual-toggleclass"),this.subMenu=document.querySelector('[data-ual-submenu="true"]'),this.focusTrapRoot=document.querySelector('[data-ual-focus-trap="true"]'),this.focusTrap=null,this.reducedMotionActivated=window.matchMedia("(prefers-reduced-motion: reduce)"),this.getAriaLabel=function(){return this.isOpen()?this.toggleAriaLabel:this.defaultAriaLabel},this.setupFocusTrap=function(){this.focusTrap=le(this.focusTrapRoot,{clickOutsideDeactivates:!0,initialFocus:this.subMenu.querySelector("a"),onDeactivate:this.close.bind(this)})},this.registerEvents=function(){this.rootElement.addEventListener("click",this.handleClick.bind(this)),this.subMenu.addEventListener("transitionend",this.handleTransitionEnd.bind(this))},this.setState=function(e){this.rootElement.setAttribute("data-ual-submenu-is-open",e),this.button.setAttribute("aria-expanded",e);var t=this.getAriaLabel();this.button.setAttribute("aria-label",t)},this.handleClick=function(e){var t=e.target;return this.isOpen()?!this.isOutSideClick(t)&&this.close():this.open()},this.handleTransitionEnd=function(e){return"transform"===e.propertyName&&(!this.isOpen()&&void this.subMenu.classList.add(this.toggleClass))},this.open=function(){this.subMenu.classList.remove(this.toggleClass),this.setState(!0),this.focusTrap.activate(),document.body.style.overflow="hidden"},this.close=function(){if(!this.isOpen())return!1;this.setState(!1),this.focusTrap.deactivate(),this.reducedMotionActivated&&!this.reducedMotionActivated.matches||this.subMenu.classList.add(this.toggleClass),document.body.style.overflow="unset"},this.isOutSideClick=function(e){return this.subMenu.contains(e)},this.isOpen=function(){return"true"===this.rootElement.getAttribute("data-ual-submenu-is-open")},this.setupFocusTrap(),this.registerEvents()):setInterval((function(){e()}),500)},e.Test=function(){document.querySelectorAll(".js-hazel-test-component").forEach((function(e){!function(e){var t=e.querySelector(".js-increment"),n=e.querySelector(".js-decrement"),i=0,o=e.querySelector(".js-count"),r=function(e){o.innerText=e};function a(){i++,r(i)}var s=function(){0!==i&&(i--,r(i))};t.addEventListener("click",a),n.addEventListener("click",s)}(e)}))},e.TestDemoLogic=function(){},e.TimelineLogic=function(){for(var e=document.getElementsByClassName("timeline"),t=function(t){var n,i,o,r,a=document.getElementsByClassName("start")[t],s=new Date(a.getAttribute("data-custom-date-start")),l=document.getElementsByClassName("end")[t],c=new Date(l.getAttribute("data-custom-date-end"));n=s,i=l,o=c,r=function(t){var n=new Date,i=document.getElementsByClassName("progress")[t],o=Math.round((n-s)/(c-s)*100)+"%";if(!0===e[t].classList.contains("horizontal")){if(i.style.width=o,document.getElementsByClassName("timeline-event")[t]){var r=document.getElementsByClassName("timeline-event-year")[t],a=document.getElementsByClassName("timeline-event-time")[t];parseInt(o)>0&&parseInt(o)<100?(r.style.marginRight=100-parseInt(o)+"%",a.style.marginRight=100-parseInt(o)+"%"):(r.classList.add("align-center"),a.classList.add("align-center"))}}else i.style.height=o},a.innerHTML=n.toLocaleDateString("en-US",{day:"2-digit",timeZone:"UTC"})+"<br/>"+n.toLocaleDateString("en-US",{month:"short",timeZone:"UTC"}),i.innerHTML=o.toLocaleDateString("en-US",{day:"2-digit",timeZone:"UTC"})+"<br/>"+o.toLocaleDateString("en-US",{month:"short",timeZone:"UTC"}),r(t,n,o)},n=0;n<e.length;n++)t(n)},e.ToggleLogic=function(){var e=document.querySelector(".toggle-off"),t=document.querySelector(".toggle-on"),n=document.querySelector(".toggle-icon");null!==e&&null!==t&&null!==n&&n.addEventListener("click",(function(){var i=document.querySelector(".toggle-icon").getAttribute("aria-checked"),o=document.querySelector(".toggle-icon").getAttribute("aria-label");e.classList.toggle("display-none"),t.classList.toggle("display-none"),n.setAttribute("aria-checked","True"===i?"False":"True"),n.setAttribute("aria-label","Closed"===o?"Open":"Closed")}))},e.TranslateLanguage=C,e.VerticalNavDynamicLogic=function(){var e=document.querySelectorAll(".vertical-nav");if(null!==e){var t=document.querySelectorAll(".people-header__content--right .navSectionAnchor h2");if(null!==t){t.length;var n=document.querySelector(".vertical-nav .nav-container .nav-tabs"),i=[];t.forEach((function(e,t){var o=e.innerText.replace(/\s/g,"").substring(0,25);if(i.includes(o)){for(var r=1;i.includes(o+r);)r++;o+=r}e.parentElement.setAttribute("id",o),i.push(o);var a="<li data-current='"+e.innerText+"' data-section-id='"+o+"'><a class='btn cta' href='#"+o+"'>"+e.innerText+"</a></li></li>";n.insertAdjacentHTML("beforeend",a)})),e.forEach((function(e){var t=e.querySelectorAll(".vertical-nav li"),n="",i="",o="";function r(){for(var e=0;e<t.length;e++)t[e].addEventListener("click",l),t[e].removeAttribute("class"),t[e].removeAttribute("aria-current")}for(var a=0;a<t.length;a++)t[a].addEventListener("mousedown",(function(e){e.preventDefault()})),t[a].classList.remove("current"),t[a].removeAttribute("aria-current"),i=(n=t[a].attributes[0].value).replace(/\s+/g,"-").toLowerCase(),window.location.href.indexOf(i)>-1&&(o=e.querySelectorAll("[data-current='"+n+"']")[0]);function s(){var n=e.querySelector(".nav-active-bar"),i=o;o.parentNode;for(var r=t,a=r.length,s=0;s<a;++s)if(i===r[s]){var l=44*s;n.style.marginTop=l+"px";break}}function l(e){o=e.target.parentNode,r(),o.classList.add("current"),o.setAttribute("aria-current","page"),s()}null!==t&&null!==o&&(r(),s());for(var c=0;c<o.length;c++)o[c].classList.add("current"),o[c].setAttribute("aria-current","page")}));var o=document.querySelectorAll(".people-header__content--right>section,.people-header__content--right>div");Array.from(o);for(var r,a,s=document.querySelectorAll(".vertical-nav li"),l={threshold:[0,.8,1],rootMargin:"60px 0px 0px 0px"},c=new IntersectionObserver((function(e,t){if(!(e[0].intersectionRatio<l.threshold[1])){e[0].target;for(var n=e[0].target;n&&!n.classList.contains("navSectionAnchorContainer");)n=n.previousElementSibling;if(a=n.querySelector(".navSectionAnchor").getAttribute("id"),r){var i=document.querySelector(".nav-tabs li[data-section-id='"+r+"']");i.classList.remove("current"),i.removeAttribute("aria-current")}var o=document.querySelector(".nav-tabs li[data-section-id='"+a+"']");o.classList.add("current"),o.setAttribute("aria-current","page");var c=document.querySelector(".nav-active-bar"),u=document.querySelector(".nav-tabs li[data-section-id='"+a+"']");u.parentNode;for(var d=s,p=d.length,h=0;h<p;++h)if(u===d[h]){var f=44*h;c.style.marginTop=f+"px";break}r=a}}),l),u=0;u<o.length;u++)c.observe(o[u])}}},e.VerticalNavLogic=w,e.VideoV3Logic=function(){document.querySelectorAll(".three-play-media-component").forEach((function(e){e.querySelector(".three-play-media-overlay").addEventListener("click",(function(){e.classList.remove("three-play-media-overlayed");var t=e.querySelector("iframe");t.contentWindow.postMessage('{ "event":"command", "func":"playVideo"}',"*"),t.contentWindow.postMessage('{ "method":"play"}',"*")}))}))},e.bottomAlignedEventCardLogic=function(){if(!document.querySelector(".event-grid-bottom-aligned"))return!1;y(".event-grid-bottom-aligned",".event-card",".caption-container-image",(function(){b(".event-grid-bottom-aligned",".caption-container-image",(function(){window.addEventListener("resize",(function(){b(".event-grid-bottom-aligned",".caption-container-image")}))}))}),!0)},e.componentLogic=function(){document.getElementById("myTitle").addEventListener("click",(function(){}))},e.handlePlayer=function(e){var t=function(){function e(t,n,i){r(this,e),this.rootElement=t,this.videoState="stopped",this.transitionLength=700,this.instance=n,this.controller=i}return s(e,[{key:"transitionEnd",value:function(e){setTimeout(e.bind(this),this.transitionLength)}},{key:"setVideoState",value:function(e){this.videoState=e,this.controller.elements.videoContainer.setAttribute("data-video-state",e)}},{key:"setExpandedState",value:function(e){this.controller.elements.videoComponent.setAttribute("data-video-expanded",e)}},{key:"handleOpen",value:function(){if("stopped"!==this.videoState)return!1;this.controller.unregisterEvents(),this.rootElement.querySelector(".video-contained")||this.scrollIntoCenter(),this.controller.elements.videoContainer.classList.add("fade-out"),this.controller.elements.videoCaption.classList.add("fade-out"),this.setVideoState("loading"),this.transitionEnd(this.open)}},{key:"open",value:function(){this.rootElement.querySelector(".video-contained")?this.setExpandedState("false"):this.setExpandedState("true"),this.controller.elements.videoContainer.classList.remove("fade-out"),this.transitionEnd(this.play)}},{key:"play",value:function(){var e=this;this.rootElement.querySelector(".video-contained")||this.controller.elements.videoComponent.classList.add("bg-dark"),Promise.resolve(this.instance.play()).then((function(){return e.controller.registerEvents()})),this.setVideoState("playing")}},{key:"handleClose",value:function(){this.setVideoState("stopping"),this.instance.toggleControls(!1),this.instance.stop(),this.controller.unregisterEvents(),this.controller.elements.videoComponent.classList.remove("bg-dark"),this.controller.elements.videoContainer.classList.add("fade-out"),this.transitionEnd(this.close)}},{key:"close",value:function(){this.setExpandedState("false"),this.setVideoState("loading"),this.transitionEnd(this.prepareReset)}},{key:"prepareReset",value:function(){this.controller.elements.videoContainer.classList.remove("fade-out"),this.controller.elements.videoContainer.classList.add("fade-in"),this.setVideoState("stopped"),this.controller.elements.videoCaption.classList.remove("fade-out"),this.controller.elements.videoCaption.classList.add("fade-in"),this.transitionEnd(this.reset)}},{key:"reset",value:function(){this.controller.elements.videoContainer.classList.remove("fade-in"),this.controller.elements.videoCaption.classList.remove("fade-in"),this.controller.registerEvents()}},{key:"scrollIntoCenter",value:function(){return this.controller.elements.videoContainer.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})}}]),e}(),n=function(e){l(n,e);var t=p(n);function n(e,i,o){var a;return r(this,n),(a=t.call(this,e,i,o)).transitionLength=100,a}return s(n,[{key:"handleOpen",value:function(){var e=this;if("stopped"!==this.videoState)return!1;this.setVideoState("loading"),this.controller.unregisterEvents(),this.rootElement.querySelector(".video-contained")||(this.rootElement.classList.add("video-component-lightbox"),this.controller.elements.videoComponent.classList.add("bg-dark")),Promise.resolve(this.instance.play()).then((function(){return e.controller.registerEvents()})),this.transitionEnd((function(){return e.setVideoState("playing")}))}},{key:"handleClose",value:function(){this.controller.unregisterEvents(),this.rootElement.querySelector(".video-contained")||(this.controller.elements.videoComponent.classList.remove("bg-dark"),this.rootElement.classList.remove("video-component-lightbox")),this.instance.stop(),this.setVideoState("stopped"),this.controller.registerEvents()}}]),n}(t),i=function(){function e(t,n){r(this,e),this.rootElement=t,this.elements=this.registerElements(),this.instance=n,this.player=this.getPlayerType(),this.keysObject={toggle:[75],click:[31,13],exit:[27]},this.clickHandler=this.handleClickEvents.bind(this),this.handleClose=this.player.handleClose.bind(this.player),this.handleOutsideClick=this.handleOutsideClick.bind(this),this.handleKeyboardEvents=this.handleKeyboardEvents.bind(this),this.handleStop=this.handleStop.bind(this),this.registerEvents()}return s(e,[{key:"getPlayerType",value:function(){return this.rootElement.querySelector(".video-grid-item")||this.rootElement.querySelector(".video-lightbox-full-width")?new n(this.rootElement,this.instance,this):new t(this.rootElement,this.instance,this)}},{key:"registerElements",value:function(){var e={videoComponent:".video-component",videoContainer:".video-wrapper",overlayContent:".overlay-container",videoCaption:".video-caption-container",exitContainer:".exit-container",clickHandler:".video-overlay-content",playSVG:".svg-path",svgButton:".svg-container",plyrEl:".plyr__video-embed"};for(var t in e)e[t]=this.rootElement.querySelector(e[t]);return e}},{key:"registerEvents",value:function(){this.elements.clickHandler.addEventListener("click",this.clickHandler),this.elements.exitContainer.addEventListener("click",this.handleClose),this.elements.exitContainer.addEventListener("keydown",this.handleKeyboardEvents),this.elements.plyrEl.addEventListener("keydown",this.handleKeyboardEvents),this.elements.svgButton.addEventListener("keydown",this.handleKeyboardEvents),window.addEventListener("click",this.handleOutsideClick)}},{key:"unregisterEvents",value:function(){this.elements.clickHandler.removeEventListener("click",this.clickHandler),this.elements.exitContainer.removeEventListener("click",this.handleClose),this.elements.exitContainer.removeEventListener("keydown",this.handleKeyboardEvents),this.elements.plyrEl.addEventListener("keydown",this.handleKeyboardEvents),this.elements.svgButton.removeEventListener("keydown",this.handleKeyboardEvents),window.removeEventListener("click",this.handleOutsideClick)}},{key:"handleClickEvents",value:function(){"stopped"!==this.player.videoState||this.player.handleOpen()}},{key:"handleKeyboardEvents",value:function(e){if(document.activeElement.classList.contains("svg-container")){var t=e.which;if(this.keysObject.toggle.includes(t))return void this.handleClickEvents()}if(document.activeElement.classList.contains("exit-container")){var n=e.which;if(this.keysObject.click.includes(n)||this.keysObject.exit.includes(n))return void this.player.handleClose()}if(document.activeElement.classList.contains("plyr")){var i=e.which;if(this.keysObject.exit.includes(i))return void this.player.handleClose()}}},{key:"handleOutsideClick",value:function(e){if(0===this.instance.currentTime)return!1;this.rootElement.querySelector(".video-container").contains(e.target)||this.player.handleClose()}},{key:"handleStop",value:function(){var e=(100*this.instance.currentTime/this.instance.duration).toFixed();if(!Number(e))return!1;100===e&&this.player.handleClose()}}]),e}();void 0!==e&&function(){var t={youtube:{modestbranding:1,controls:1,disablekb:0},keyboard:{focused:!0,global:!1},controls:["play-large","restart","rewind","play","fast-forward","progress","current-time","duration","mute","volume","captions","settings","pip","airplay","fullscreen"]};document.querySelector(".video-contained")&&(t.ratio="1:1");var n=Array.from(document.querySelectorAll(".video-component-container"));if(!n)return!1;n.forEach((function(n){var o=n.querySelector(".__player_root");if(o){!function(e){var t=e.querySelector("iframe"),n=t.src,i=/vimeo.*\/(\d+)/i.exec(n);if(i)t.src="https://player.vimeo.com/video/".concat(i[1])}(o);var r=new e(o,t);new i(n,r)}}))}()},e.sbPeopleLogic=function(){var e=document.querySelectorAll(".sub-nav li"),t=document.querySelectorAll(".nav-tabs li"),n=document.querySelectorAll(".description-section");document.querySelector(".people-header__content__description"),n.forEach((function(i,o){null!==n[o].querySelector(".no-content")&&(e[o].classList.add("deleteme"),t[o].classList.add("deleteme"),n[o].classList.add("deleteme"))})),document.querySelectorAll(".deleteme"),document.querySelectorAll(".deleteme").forEach((function(e){return e.remove()}))},e.textBlockCombinedCourseLogic=function(){if(!document.querySelector('[data-reflow-content="true"]'))return!1;if(document.querySelector('[data-reflow-content-wrapped="true"]'))return!1;function e(e,t){var n=[];for(e=e.nextElementSibling;e&&!t.some((function(t){return e.matches(t)}))&&(n.push(e),e.nextElementSibling);)e=e.nextElementSibling;return n}function t(e,t,n){var i=document.createElement("div");i.classList.add("grid-col-md-1of2"),i.classList.add("text-block"),n%2==0?i.classList.add("course-grid-item-left"):i.classList.add("course-grid-item-right"),i.setAttribute("data-reflow-content-wrapped","true"),i.appendChild(e.cloneNode(!0)),t.length>0&&t.forEach((function(e){return i.appendChild(e)})),e.parentNode.replaceChild(i,e)}var n=document.querySelectorAll('[data-reflow-content="true"]'),i=["h2","h3","h4"];n.forEach((function(n){var o=n.firstElementChild,r=!1;if(!i.some((function(e){return o.matches(e)}))){var a=e(o,i);t(o,a,0),r=!0}var s=n.querySelectorAll(i.join(","));if(!s)return!1;s.forEach((function(n,o){n.classList.add("heading3"),n.classList.add("utility-heading-md"),t(n,e(n,i),o=r?o+1:o)})),n.classList=n.getAttribute("data-reflow-content-classlist")}))}}));
