"use strict";function _slicedToArray(n,t){return _arrayWithHoles(n)||_iterableToArrayLimit(n,t)||_unsupportedIterableToArray(n,t)||_nonIterableRest()}function _nonIterableRest(){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 _iterableToArrayLimit(n,t){var i=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=i){var e,o,s,u,f=[],r=!0,h=!1;try{if(s=(i=i.call(n)).next,0===t){if(Object(i)!==i)return;r=!1}else for(;!(r=(e=s.call(i)).done)&&(f.push(e.value),f.length!==t);r=!0);}catch(n){h=!0;o=n}finally{try{if(!r&&null!=i.return&&(u=i.return(),Object(u)!==u))return}finally{if(h)throw o;}}return f}}function _arrayWithHoles(n){if(Array.isArray(n))return n}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(n,t,i){var u=_superPropBase(n,t),r;if(u)return r=Object.getOwnPropertyDescriptor(u,t),r.get?r.get.call(arguments.length<3?n:i):r.value},_get.apply(this,arguments)}function _superPropBase(n,t){for(;!Object.prototype.hasOwnProperty.call(n,t)&&null!==(n=_getPrototypeOf(n)););return n}function _inherits(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}});Object.defineProperty(n,"prototype",{writable:!1});t&&_setPrototypeOf(n,t)}function _setPrototypeOf(n,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n},_setPrototypeOf(n,t)}function _createSuper(n){var t=_isNativeReflectConstruct();return function(){var i,r=_getPrototypeOf(n),u;return t?(u=_getPrototypeOf(this).constructor,i=Reflect.construct(r,arguments,u)):i=r.apply(this,arguments),_possibleConstructorReturn(this,i)}}function _possibleConstructorReturn(n,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 _assertThisInitialized(n)}function _assertThisInitialized(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}function _getPrototypeOf(n){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf(n)}function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function _defineProperties(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,_toPropertyKey(i.key),i)}function _createClass(n,t,i){return t&&_defineProperties(n.prototype,t),i&&_defineProperties(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function _toConsumableArray(n){return _arrayWithoutHoles(n)||_iterableToArray(n)||_unsupportedIterableToArray(n)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(n,t){if(n){if("string"==typeof n)return _arrayLikeToArray(n,t);var i=Object.prototype.toString.call(n).slice(8,-1);return"Object"===i&&n.constructor&&(i=n.constructor.name),"Map"===i||"Set"===i?Array.from(n):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(n,t):void 0}}function _iterableToArray(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}function _arrayWithoutHoles(n){if(Array.isArray(n))return _arrayLikeToArray(n)}function _arrayLikeToArray(n,t){(null==t||t>n.length)&&(t=n.length);for(var i=0,r=new Array(t);i<t;i++)r[i]=n[i];return r}function ownKeys(n,t){var r=Object.keys(n),i;return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(n),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})),r.push.apply(r,i)),r}function _objectSpread(n){for(var i,t=1;t<arguments.length;t++)i=null!=arguments[t]?arguments[t]:{},t%2?ownKeys(Object(i),!0).forEach(function(t){_defineProperty(n,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(i,t))});return n}function _defineProperty(n,t,i){return(t=_toPropertyKey(t))in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}function _toPropertyKey(n){var t=_toPrimitive(n,"string");return"symbol"===_typeof(t)?t:String(t)}function _toPrimitive(n,t){var i,r;if("object"!==_typeof(n)||null===n)return n;if(i=n[Symbol.toPrimitive],void 0!==i){if(r=i.call(n,t||"default"),"object"!==_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===t?String:Number)(n)}function _typeof(n){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof(n)}!function(){function yc(){var n=document.querySelectorAll(".videoContainer--youTube"),t=!1,i={};document.querySelectorAll(".youtubeLink").forEach(function(n){n.setAttribute("role","button")});document.addEventListener("click",function(n){n.target.closest(".youtubeLink")&&(n.preventDefault(),function(n){var f=n.dataset,r=f.vid,e=f.time,u="";t||(gu(),nf());"undefined"!=typeof OptanonActiveGroups&&-1===OptanonActiveGroups.indexOf("0004")&&(u="https://www.youtube-nocookie.com");i.vid=new YT.Player("yt-".concat(r),_objectSpread(_objectSpread({height:"390",width:"640",videoId:r},u&&{host:u}),{},{playerVars:_objectSpread(_objectSpread({},e&&{start:e.replace("s","")}),{},{playsinline:1,allow:"autoplay",autoplay:1,rel:0,modestbranding:1,enablejsapi:1,origin:window.location.host}),events:{onReady:onPlayerReady,onStateChange:onPlayerStateChange}}));document.querySelector("#yt-".concat(r)).closest(".videoContainer").classList.add("videoLoaded")}(n.target.closest(".youtubeLink")))});e.on("onYouTubePlayerAPIReady",function(){t=!0});e.on("onPlayerReady",function(n){n.target.unMute();n.target.playVideo()});n.length&&(gu(),nf(),"fetch"in window&&function(){var t=[];n.forEach(function(n){n.classList.contains("getDuration")&&t.push(n.dataset.vid)});t.length&&function(n){!function(n){fetch(n).then(function(n){return n.json()}).then(function(n){var t=n.items.map(function(n){return{vid:n.id,duration:n.contentDetails.duration,title:n.snippet.title,description:n.snippet.description,uploadDate:n.snippet.publishedAt,thumbnailUrl:n.snippet.thumbnails.maxres.url}});!function(n){var i={"@context":"https://schema.org","@type":"VideoObject",name:n[0].title,description:n[0].description,uploadDate:n[0].uploadDate,thumbnailUrl:n[0].thumbnailUrl,contentUrl:"https://www.youtube.com/watch?v=".concat(n[0].vid)},t=document.createElement("script");t.setAttribute("type","application/ld+json");t.textContent=JSON.stringify(i);document.head.appendChild(t)}(t),function(n){n.forEach(function(n){document.querySelector(".ytVidTime[data-vid='".concat(n.vid,"']")).innerText=function(n){var t=/^P([0-9]*D)?T([0-9]*H)?([0-9]*M)?([0-9]*S)?$/i.exec(n);if(t){var r="",u=parseInt(t[1],10)||"",f=parseInt(t[2],10)||"",e=parseInt(t[3],10)||"",i=parseInt(t[4],10)||"";return u&&(r+="".concat(u,":")),f&&(r+="".concat(f,":")),(r+=e?"".concat(e,":"):"0:")+(i?i<10?"0".concat(i):i:"00")}return 0}(n.duration)})}(t)})}("https://youtube.googleapis.com/youtube/v3/videos?part=contentDetails%2C%20snippet&id=".concat(n,"&key=AIzaSyBBVui1BbYy1RS9rdpbnhS1h4c-pM4RNek"))}(t.join(","))}())}function g(n){n.length=0}function ft(n,t,i){return Array.prototype.slice.call(n,t,i)}function i(n){return n.bind.apply(n,[null].concat(ft(arguments,1)))}function ao(n){return requestAnimationFrame(n)}function vr(n,t){return _typeof(t)===n}function li(n){return!ff(n)&&vr("object",n)}function ff(n){return null===n}function yo(n){try{return n instanceof(n.ownerDocument.defaultView||window).HTMLElement}catch(n){return!1}}function vi(n){return uf(n)?n:[n]}function c(n,t){vi(n).forEach(t)}function ef(n,t){return n.indexOf(t)>-1}function yr(n,t){return n.push.apply(n,vi(t)),n}function nt(n,t,i){n&&c(t,function(t){t&&n.classList[i?"add":"remove"](t)})}function w(n,t){nt(n,et(t)?t.split(" "):t,!0)}function yi(n,t){c(t,n.appendChild.bind(n))}function of(n,t){c(n,function(n){var i=(t||n).parentNode;i&&i.insertBefore(n,t)})}function pi(n,t){return yo(n)&&(n.msMatchesSelector||n.matches).call(n,t)}function po(n,t){var i=n?ft(n.children):[];return t?i.filter(function(n){return pi(n,t)}):i}function wi(n,t){return t?po(n,t)[0]:n.firstElementChild}function lt(n,t,i){return n&&(i?wt(n).reverse():wt(n)).forEach(function(i){"__proto__"!==i&&t(n[i],i)}),n}function bi(n){return ft(arguments,1).forEach(function(t){lt(t,function(i,r){n[r]=t[r]})}),n}function ot(n){return ft(arguments,1).forEach(function(t){lt(t,function(t,i){n[i]=uf(t)?t.slice():li(t)?ot({},li(n[i])?n[i]:{},t):t})}),n}function wo(n,t){c(t||wt(n),function(t){delete n[t]})}function b(n,t){c(n,function(n){c(t,function(t){n&&n.removeAttribute(t)})})}function t(n,i,r){li(i)?lt(i,function(i,r){t(n,r,i)}):c(n,function(n){ff(r)||""===r?b(n,i):n.setAttribute(i,String(r))})}function bt(n,i,r){var u=document.createElement(n);return i&&(et(i)?w(u,i):t(u,i)),r&&yi(r,u),u}function v(n,t,i){if(ai(i))return getComputedStyle(n)[t];ff(i)||(n.style[t]=""+i)}function ki(n,t){v(n,"display",t)}function bo(n){n.setActive&&n.setActive()||n.focus({preventScroll:!0})}function y(n,t){return n.getAttribute(t)}function ko(n,t){return n&&n.classList.contains(t)}function l(n){return n.getBoundingClientRect()}function at(n){c(n,function(n){n&&n.parentNode&&n.parentNode.removeChild(n)})}function go(n){return wi((new DOMParser).parseFromString(n,"text/html").body)}function tt(n,t){n.preventDefault();t&&(n.stopPropagation(),n.stopImmediatePropagation())}function ns(n,t){return n&&n.querySelector(t)}function sf(n,t){return t?ft(n.querySelectorAll(t)):[]}function it(n,t){nt(n,t,!1)}function hf(n){return n.timeStamp}function vt(n){return et(n)?n:n?n+"px":""}function di(n,t){if(!n)throw new Error("["+kt+"] "+(t||""));}function ts(n,t,i){return o(n-t)<i}function kr(n,t,i,r){var u=st(t,i),f=wr(t,i);return r?u<n&&n<f:u<=n&&n<=f}function dt(n,t,i){var r=st(t,i),u=wr(t,i);return st(wr(r,n),u)}function cf(n){return+(n>0)-+(n<0)}function lf(n,t){return c(t,function(t){n=n.replace("%s",""+t)}),n}function af(n){return n<10?"0"+n:""+n}function is(){function t(n,t,i){c(n,function(n){n&&c(t,function(t){t.split(" ").forEach(function(t){var r=t.split(".");i(n,r[0],r[1])})})})}var n=[];return{bind:function(i,r,u,f){t(i,r,function(t,i,r){var e="addEventListener"in t,o=e?t.removeEventListener.bind(t,i,u,f):t.removeListener.bind(t,u);e?t.addEventListener(i,u,f):t.addListener(u);n.push([t,i,r,u,o])})},unbind:function(i,r,u){t(i,r,function(t,i,r){n=n.filter(function(n){return!!(n[0]!==t||n[1]!==i||n[2]!==r||u&&n[3]!==u)||(n[4](),!1)})})},dispatch:function(n,t,i){var r;return"function"==typeof CustomEvent?r=new CustomEvent(t,{bubbles:!0,detail:i}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!1,i),n.dispatchEvent(r),r},destroy:function(){n.forEach(function(n){n[4]()});g(n)}}}function r(n){var r=n?n.event.bus:document.createDocumentFragment(),t=is();return n&&n.event.on(fs,t.destroy),bi(t,{bus:r,on:function(n,i){t.bind(r,vi(n).join(" "),function(n){i.apply(i,uf(n.detail)?n.detail:[])})},off:i(t.unbind,r),emit:function(n){t.dispatch(r,n,ft(arguments,1))}})}function gr(n,t,i,r){function h(){if(!e){if(u=n?st((s()-o)/n,1):1,i&&i(u),u>=1&&(t(),o=s(),r&&++a>=r))return c();f=ao(h)}}function c(){e=!0}function l(){f&&cancelAnimationFrame(f);u=0;f=0;e=!0}var o,f,s=Date.now,u=0,e=!0,a=0;return{start:function(t){t||l();o=s()-(t?u*n:0);e=!1;f=ao(h)},rewind:function(){o=s();u=0;i&&i(u)},pause:c,cancel:l,set:function(t){n=t},isPaused:function(){return e}}}function fe(n){return n=et(n)?n:n.key,rl[n]||n}function sl(n,t,i){function e(){u.forEach(function(n){n.style("transform","translateX(-"+100*n.index+"%)")})}var u=t.Slides;return{mount:function(){r(n).on([yt,f],e)},start:function(n,t){u.style("transition","opacity "+i.speed+"ms "+i.easing);rf(t)},cancel:ar}}function hl(n,t,u){function a(){l("");c.cancel()}var e,f=t.Move,h=t.Controller,c=t.Scroll,s=t.Elements.list,l=i(v,s,"transition");return{mount:function(){r(n).bind(s,"transitionend",function(n){n.target===s&&e&&(a(),e())})},start:function(t,i){var r=f.toPosition(t,!0),a=f.getPosition(),s=function(t){var f=u.rewindSpeed,i,r;return n.is(ti)&&f&&(i=h.getIndex(!0),r=h.getEnd(),0===i&&t>=r||i>=r&&0===t)?f:u.speed}(t);o(r-a)>=1&&s>=1?u.useScroll?c.scroll(r,s,!1,i):(l("transform "+s+"ms "+u.easing),f.translate(r,!0),e=i):(f.jump(t),i())},cancel:a}}function ee(n,t,i){return Array.prototype.slice.call(n,t,i)}function hu(n){return n.bind.apply(n,[null].concat(ee(arguments,1)))}function oe(n,t){return _typeof(t)===n}function he(n){return se(n)?n:[n]}function hh(n,t){he(n).forEach(t)}function cu(n){var i=n?n.event.bus:document.createDocumentFragment(),t=function(){function t(n,t,i){hh(n,function(n){n&&hh(t,function(t){t.split(" ").forEach(function(t){var r=t.split(".");i(n,r[0],r[1])})})})}var n=[];return{bind:function(i,r,u,f){t(i,r,function(t,i,r){var e="addEventListener"in t,o=e?t.removeEventListener.bind(t,i,u,f):t.removeListener.bind(t,u);e?t.addEventListener(i,u,f):t.addListener(u);n.push([t,i,r,u,o])})},unbind:function(i,r,u){t(i,r,function(t,i,r){n=n.filter(function(n){return!!(n[0]!==t||n[1]!==i||n[2]!==r||u&&n[3]!==u)||(n[4](),!1)})})},dispatch:function(n,t,i){var r;return"function"==typeof CustomEvent?r=new CustomEvent(t,{bubbles:!0,detail:i}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!1,i),n.dispatchEvent(r),r},destroy:function(){n.forEach(function(n){n[4]()});n.length=0}}}();return n&&n.event.on(ll,t.destroy),function(n){return ee(arguments,1).forEach(function(t){!function(n,t){var u,i,r;if(n)for(u=cl(n),i=0;i<u.length;i++)if(r=u[i],"__proto__"!==r&&!1===t(n[r],r))break}(t,function(i,r){n[r]=t[r]})}),n}(t,{bus:i,on:function(n,r){t.bind(i,he(n).join(" "),function(n){r.apply(r,se(n.detail)?n.detail:[])})},off:hu(t.unbind,i),emit:function(n){t.dispatch(i,n,ee(arguments,1))}})}function ui(n,t,i){return Array.prototype.slice.call(n,t,i)}function le(n){return n.bind.apply(n,[null].concat(_toConsumableArray(ui(arguments,1))))}function au(n,t){return _typeof(t)===n}function ae(n){return!ve(n)&&au("object",n)}function ve(n){return null===n}function fi(n,t){var i;(i=n,ch(i)?i:[i]).forEach(t)}function vu(n,t,i){n&&fi(t,function(t){t&&n.classList[i?"add":"remove"](t)})}function yu(n,t){vu(n,lh(t)?t.split(" "):t,!0)}function ei(n,t,i){var r,u,f;if(n)for(r=vh(n),r=i?r.reverse():r,u=0;u<r.length;u++)if(f=r[u],"__proto__"!==f&&!1===t(n[f],f))break;return n}function ye(n){return ui(arguments,1).forEach(function(t){ei(t,function(i,r){n[r]=t[r]})}),n}function pe(n){return ui(arguments,1).forEach(function(t){ei(t,function(t,i){n[i]=ch(t)?t.slice():ae(t)?pe({},ae(n[i])?n[i]:{},t):t})}),n}function yh(n,t,i){ae(t)?ei(t,function(t,i){yh(n,i,t)}):fi(n,function(n){ve(i)||""===i?function(n,t){fi(n,function(n){fi(t,function(t){n&&n.removeAttribute(t)})})}(n,t):n.setAttribute(t,String(i))})}function oi(n,t,i){var r=document.createElement(n);return t&&(lh(t)?yu(r,t):yh(r,t)),i&&function(n,t){fi(t,n.appendChild.bind(n))}(i,r),r}function ph(n,t){!function(n,t,i){if(ah(i))return getComputedStyle(n)[t];ve(i)||(n.style[t]="".concat(i))}(n,"display",t)}function wh(n,t){vu(n,t,!1)}function ke(n,t,i){var r=we(t,i),u=be(t,i);return we(be(r,n),u)}function dh(n,t){return 0===n.indexOf(t.toLowerCase())?n:"".concat(t.toLowerCase()).concat(n.substr(0,1).toUpperCase()).concat(n.substr(1))}function si(n){return/^(https?:)?\/\/((player|www)\.)?vimeo\.com(?=$|\/)/.test(n)}function gh(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=r.id,u=r.url,n=i||u;if(!n)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(t=n,!isNaN(parseFloat(t))&&isFinite(t)&&Math.floor(t)==t)return"https://vimeo.com/".concat(n);if(si(n))return n.replace("http:","https:");if(i)throw new TypeError("“".concat(i,"” is not a valid video id."));throw new TypeError("“".concat(n,"” is not a vimeo.com url."));}function sr(n,t,i){var r=d.get(n.element)||{};t in r||(r[t]=[]);r[t].push(i);d.set(n.element,r)}function pu(n,t){return(d.get(n.element)||{})[t]||[]}function wu(n,t,i){var r=d.get(n.element)||{},u;return r[t]?i?(u=r[t].indexOf(i),-1!==u&&r[t].splice(u,1),d.set(n.element,r),r[t]&&0===r[t].length):(r[t]=[],d.set(n.element,r),!0):!0}function to(n){if("string"==typeof n)try{n=JSON.parse(n)}catch(n){return console.warn(n),{}}return n}function hr(n,t,i){var r,u;n.element.contentWindow&&n.element.contentWindow.postMessage&&(r={method:t},void 0!==i&&(r.value=i),u=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1")),u>=8&&u<10&&(r=JSON.stringify(r)),n.element.contentWindow.postMessage(r,n.origin))}function fc(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return uc.reduce(function(t,i){var r=n.getAttribute("data-vimeo-".concat(i));return(r||""===r)&&(t[i]=""===r?1:r),t},t)}function io(n,t){var r=n.html,i;if(!t)throw new TypeError("An element must be provided");return null!==t.getAttribute("data-vimeo-initialized")?t.querySelector("iframe"):(i=document.createElement("div"),i.innerHTML=r,t.appendChild(i.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe"))}function ec(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;return new Promise(function(r,u){var o,e,f;if(!si(n))throw new TypeError("“".concat(n,"” is not a vimeo.com url."));o="https://vimeo.com/api/oembed.json?url=".concat(encodeURIComponent(n));for(e in t)t.hasOwnProperty(e)&&(o+="&".concat(e,"=").concat(encodeURIComponent(t[e])));f="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;f.open("GET",o,!0);f.onload=function(){if(404!==f.status)if(403!==f.status)try{var t=JSON.parse(f.responseText);if(403===t.domain_status_code)return io(t,i),void u(new Error("“".concat(n,"” is not embeddable.")));r(t)}catch(n){u(n)}else u(new Error("“".concat(n,"” is not embeddable.")));else u(new Error("“".concat(n,"” was not found.")))};f.onerror=function(){var n=f.status?" (".concat(f.status,")"):"";u(new Error("There was an error fetching the embed code from Vimeo".concat(n,".")))};f.send()})}function gl(n,t){function u(){r.forEach(function(t){var r,u,f=t.slide;u="".concat(er).concat(or);(r=f)&&r.classList.contains(u)||(i[t.index]=new dl(n,f))});r.update()}var f=cu(n).on,r=t.Slides,i={};return{mount:function(){u();f("refresh",u)},destroy:function(){ei(i,function(n){n.destroy()})},play:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.index,t=i[r];t&&t.play()},pause:function(){ei(i,function(n){n.pause()})},disable:function(n){ei(i,function(t){t.disable(n)})}}}function na(n){n.preventDefault();var t=n.target.closest(".allStories__toggle"),r=t.getAttribute("aria-controls"),i=document.getElementById(r);i.hasAttribute("hidden")?fo(i,t):uo(i,t)}function cc(n,t){var i=n.nextElementSibling;t&&(i.id="allStoriesDropdown".concat(t),n.setAttribute("aria-controls","allStoriesDropdown".concat(t)));"none"!==window.getComputedStyle(n).display?i.setAttribute("hidden","true"):i.removeAttribute("hidden")}function ta(n){var t=document.querySelector("#aboutDropdown");t.hasAttribute("hidden")?hc(t,n.target.closest("button"),901):ku(t,n.target.closest("button"))}function ia(n){var t=document.querySelector("#topicsDropdown"),i;t.hasAttribute("hidden")?(hc(t,n.target.closest("button"),800),co())&&(i=document.querySelector(".header__searchboxContainer"),i.style.display="block",setTimeout(function(){i.children[0].style.opacity="1"},1)):ku(t,n.target.closest("button"))}function eo(n){n.preventDefault();var t=n.target.closest(".header__category").querySelector(".header__categoryTopics");t.hasAttribute("hidden")?fo(t,n.target.closest("a")):uo(t,n.target.closest("a"))}function lc(n){"Space"===n.code&&n.target.parentElement.classList.contains("header__category")&&(n.preventDefault(),eo(n))}function ac(){var n=document.querySelectorAll(".header__category > a"),t=document.querySelectorAll(".header__categoryTopics");co()?(n.forEach(function(n){n.addEventListener("click",eo);n.addEventListener("keydown",lc);n.setAttribute("aria-expanded",!1)}),t.forEach(function(n){n.setAttribute("hidden",!0)})):n[0].hasAttribute("aria-expanded")&&(n.forEach(function(n){n.removeEventListener("click",eo);n.removeEventListener("keydown",lc);n.removeAttribute("aria-expanded")}),t.forEach(function(n){n.removeAttribute("hidden")}))}function fa(){navigator.share&&navigator.share({text:vc,url:cr,title:du}).then(function(){e.trigger("socialShare")}).catch(console.log)}function ea(n){var t=function(n){for(var o=function(n){var t=n.getAttribute("data-".concat("sharer"));return null===t?"":t}(n).toLowerCase(),f=ua[o],r=f.params||{},i=Object.keys(r),u=i.length>0?"?":"",e,t=0;t<i.length;t+=1)("?"!==u&&(u+="&"),r[i[t]])&&(e="via"===i[t]?r[i[t]].replace("@",""):r[i[t]],u+="".concat(i[t],"=").concat(encodeURIComponent(e)));return f.shareUrl+u}(n.target.closest("button")),r=window.innerWidth/2-290+window.screenX,u="scrollbars=no, width=580, height=580, top=".concat(window.innerHeight/2-290+window.screenY,", left=").concat(r),i;"email"===n.target.closest("button").dataset.sharer?window.location.href=t:(i=window.open(t,"",u),window.focus&&i.focus())}var ci={},gu,nf,tf,rf,ar,wt,kt,pr,vf,sh,su,se,er,lu,vh,we,be,nc,tc,no,ic,rc,ut,d,uc;ci.g=function(){if("object"==("undefined"==typeof globalThis?"undefined":_typeof(globalThis)))return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==("undefined"==typeof window?"undefined":_typeof(window)))return window}}();var oo=function(){return"object"==("undefined"==typeof Sitecore?"undefined":_typeof(Sitecore))&&!!(Sitecore&&Sitecore.PageModes&&Sitecore.PageModes.PageEditor)},so=function(n){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){for(var o,e=arguments.length,f=new Array(e),u=0;u<e;u++)f[u]=arguments[u];o=i&&!t;clearTimeout(t);t=setTimeout(function(){t=null;i||n.apply(void 0,f)},r);o&&n.apply(void 0,f)}},ho=function(n,t){for(var f,r=arguments.length,u=new Array(r>2?r-2:0),i=2;i<r;i++)u[i-2]=arguments[i];return function(){return n&&(f=n.apply(t||void 0,u),n=null),f}},co=function(){return window.innerWidth<=640},lo={events:{},on:function(n,t){this.events[n]=this.events[n]||[];this.events[n].push(t)},off:function(n,t){if(this.events[n])for(var i=0;i<this.events[n].length;i+=1)if(this.events[n][i]===t){this.events[n].splice(i,1);break}},trigger:function(n,t){this.events[n]&&this.events[n].forEach(function(n){n(t)})}};document.events=lo;var e=lo,u=null,lr="",n={};n.Utils={};n.focus={};n.Utils.IgnoreUtilFocusChanges=!1;n.triggerNames=".modalLink, .modalButton";n.Utils.focusFirstDescendant=function(t){for(var r,i=0;i<t.childNodes.length;i+=1)if(r=t.childNodes[i],n.Utils.attemptFocus(r)||n.Utils.focusFirstDescendant(r))return!0;return!1};n.Utils.focusLastDescendant=function(t){for(var r,i=t.childNodes.length-1;i>=0;i-=1)if(r=t.childNodes[i],n.Utils.attemptFocus(r)||n.Utils.focusLastDescendant(r))return!0;return!1};n.Utils.attemptFocus=function(t){if(!n.Utils.isFocusable(t))return!1;n.Utils.IgnoreUtilFocusChanges=!0;try{t.focus()}catch(t){}return n.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===t};n.Utils.checkOverflow=function(){u.classList.contains("modalContainer--visible")&&(n.Utils.isOverflow()?u.classList.add("modalContainer--overflow"):u.classList.remove("modalContainer--overflow"))};n.Utils.isOverflow=function(){var n=window.innerHeight;return u.children[0].clientHeight>=n};n.init=function(){var i=document.querySelectorAll(n.triggerNames),t=document.querySelectorAll(".modalContainer");i.length&&(n.build(t),n.bindEvents(i),t.length>0&&oo()&&t.forEach(function(n){n.classList.add("modalShow","scEditorView")}))};n.build=function(n,t){function r(n){var t=document.createElement("button"),i,r;t.type="button";t.classList.add("modalContainer__close");t.classList.add("icon-close");t.setAttribute("aria-label","Close");t.dataset.modalclose=!0;t.innerHTML='<i class="fas fa-times" data-modalclose="true"><\/i>';i=n.querySelector(".modalContainer__content");r=n.querySelector(".modalContainer__close");n.dataset.modalclose=!0;n.setAttribute("tabindex","-1");n.setAttribute("aria-modal","true");n.setAttribute("role","dialog");null!==i&&null===r&&i.prepend(t)}for(var i=0;i<n.length;i+=1)r(n[i]);t&&r(n)};n.bindEvents=function(t){for(var i=0;i<t.length;i+=1)t[i].addEventListener("click",n.handleClick)};n.handleClick=function(t){t.preventDefault();var i=t.target.closest("a, button"),f=i.hasAttribute("href")?i.getAttribute("href").replace("#",""):i.dataset.modal,r=document.getElementById(f);if(!r)throw new Error('No element found with id="'.concat(f,'".'));r.classList.contains("modalContainer--visible")||(u=r,n.open())};n.handleKeyPress=function(n){"Escape"===n.key&&e.trigger("modalClose")};n.handleFocus=function(t){n.Utils.IgnoreUtilFocusChanges||(u.contains(t.target)?n.focus.lastModalFocus=t.target:(n.Utils.focusFirstDescendant(u),n.focus.lastModalFocus===document.activeElement&&n.Utils.focusLastDescendant(u),n.focus.lastModalFocus=document.activeElement))};n.open=function(){var t,i;(n.focus.lastFocus=document.activeElement,n.Utils.isBusy)||(n.Utils.isBusy=!0,u.querySelector(".modalContainer__close")||n.build(u,!0),lr=window.pageYOffset,t=document.querySelector(".modalContainer--visible"),t&&(t.classList.remove("modalContainer--visible"),lr=-1*parseInt(document.body.style.top,10)),document.body.classList.add("modal-enabled"),document.body.style.top="-".concat(lr,"px"),u.classList.add("modalContainer--visible"),n.Utils.isBusy=!1,n.Utils.checkOverflow(),document.addEventListener("focus",n.handleFocus,!0),e.on("windowResized",n.Utils.checkOverflow),e.on("modalClose",n.close),u.addEventListener("click",n.close),u.querySelector(".modalContainer__close").addEventListener("click",n.close),document.addEventListener("keydown",n.handleKeyPress,!0),i=u.querySelector(".form__firstFocus"),i?i.focus():n.Utils.focusFirstDescendant(u))};n.close=function(t){t&&!t.target.dataset.modalclose||n.Utils.isBusy||(n.Utils.isBusy=!0,document.body.classList.remove("modal-enabled"),window.scrollTo(0,lr),document.body.style.top=null,u.classList.add("modalContainer--hiding"),u.classList.remove("modalContainer--visible"),setTimeout(function(){u.classList.remove("modalContainer--hiding")},300),e.off("windowResized",n.Utils.checkOverflow),e.off("modalClose",n.close),document.removeEventListener("focus",n.handleFocus,!0),u.removeEventListener("click",n.close),u.querySelector(".modalContainer__close").removeEventListener("click",n.close),document.removeEventListener("keydown",n.handleKeyPress,!0),n.Utils.isBusy=!1,n.focus.lastFocus.focus())};n.Utils.isFocusable=function(n){if(n.tabIndex<0||n.disabled)return!1;switch(n.nodeName){case"A":return!!n.href&&"ignore"!==n.rel;case"INPUT":return"hidden"!==n.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}};gu=ho(function(){var t=document.createElement("script"),n;t.textContent="\n\tfunction onYouTubePlayerAPIReady() {\n\t\tdocument.events.trigger('onYouTubePlayerAPIReady')\n\t}\n\tfunction onPlayerReady(event) {\n\t\tdocument.events.trigger('onPlayerReady', event)\n\t}\n\tfunction onPlayerStateChange(event) {\n\t\tdocument.events.trigger('onPlayerStateChange', event)\n\t}\n";n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n)});nf=ho(function(){var t=document.createElement("script"),n;t.src="https://www.youtube.com/iframe_api";n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n)});tf="(prefers-reduced-motion: reduce)";rf=setTimeout;ar=function(){};var uf=Array.isArray,vo=i(vr,"function"),et=i(vr,"string"),ai=i(vr,"undefined");wt=Object.keys;kt="splide";pr="data-"+kt;var st=Math.min,wr=Math.max,br=Math.floor,gi=Math.ceil,o=Math.abs;vf={};var yt="mounted",rs="ready",ht="move",nr="moved",us="click",f="refresh",s="updated",tr="resize",yf="resized",pf="scroll",gt="scrolled",fs="destroy",es="navigation:mounted",os="autoplay:play",ss="autoplay:pause",hs="lazyload:loaded",dr="ei";var nu="Arrow",tu=nu+"Left",iu=nu+"Right",cs=nu+"Up",ls=nu+"Down",ru="ttb",wf={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[cs,iu],ArrowRight:[ls,tu]},rt="role",ni="tabindex",p="aria-",ir=p+"controls",as=p+"current",vs=p+"selected",a=p+"label",bf=p+"labelledby",ys=p+"hidden",kf=p+"orientation",rr=p+"roledescription",ps=p+"live",ws=p+"busy",bs=p+"atomic",df=[rt,ni,"disabled",ir,as,a,bf,ys,kf,rr],k=kt+"__",ct="is-",gf=kt,ks=k+"track",pc=k+"list",uu=k+"slide",ds=uu+"--clone",wc=uu+"__container",ne=k+"arrows",fu=k+"arrow",gs=fu+"--prev",nh=fu+"--next",eu=k+"pagination",th=eu+"__page",bc=k+"progress__bar",kc=k+"toggle",dc=k+"sr",gc=ct+"initialized",pt=ct+"active",ih=ct+"prev",rh=ct+"next",te=ct+"visible",ie=ct+"loading",uh=ct+"focus-in",fh=ct+"overflow",nl=[pt,te,ih,rh,ie,uh,fh],tl={slide:uu,clone:ds,arrows:ne,arrow:fu,prev:gs,next:nh,pagination:eu,page:th,spinner:k+"spinner"},eh="touchstart mousedown",re="touchmove mousemove",ue="touchend touchcancel mouseup click",ti="slide",ii="loop",ur="fade",il=pr+"-interval",ri={passive:!1,capture:!0},rl={Spacebar:" ",Right:iu,Left:tu,Up:cs,Down:ls};var oh="keydown",fr=pr+"-lazy",ou=fr+"-srcset",ul="["+fr+"], ["+ou+"]",fl=[" ","Enter"],el=Object.freeze({__proto__:null,Media:function(n,t,i){function h(n){n&&e.destroy()}function c(n,t){var i=matchMedia(t);e.bind(i,"change",l);o.push([n,i])}function l(){var t=u.is(7),r=i.direction,f=o.reduce(function(n,t){return ot(n,t[1].matches?t[0]:{})},{});wo(i);a(f);i.destroy?n.destroy("completely"===i.destroy):t?(h(!0),n.mount()):r!==i.direction&&n.refresh()}function a(t,r,f){ot(i,t);r&&ot(Object.getPrototypeOf(i),t);!f&&u.is(1)||n.emit(s,i)}var u=n.state,f=i.breakpoints||{},r=i.reducedMotion||{},e=is(),o=[];return{setup:function(){var n="min"===i.mediaQuery;wt(f).sort(function(t,i){return n?+t-+i:+i-+t}).forEach(function(t){c(f[t],"("+(n?"min":"max")+"-width:"+t+"px)")});c(r,tf);l()},destroy:h,reduce:function(n){matchMedia(tf).matches&&(n?ot(i,r):wo(i,wt(r)))},set:a}},Direction:function(n,t,i){return{resolve:function(n,t,r){var u="rtl"!==(r=r||i.direction)||t?r===ru?0:-1:1;return wf[n]&&wf[n][u]||n.replace(/width|left|right/i,function(n,t){var i=wf[n.toLowerCase()][u]||n;return t>0?i.charAt(0).toUpperCase()+i.slice(1):i})},orient:function(n){return n*("rtl"===i.direction?1:-1)}}},Elements:function(n,i,u){function ft(){var i,n,r;o=st("."+ks);h=wi(o,"."+pc);di(o&&h,"A track/list element is missing.");yr(k,po(h,"."+uu+":not(."+ds+")"));lt({arrows:ne,pagination:eu,prev:gs,next:nh,bar:bc,toggle:kc},function(n,t){p[t]=st("."+n)});bi(p,{root:e,track:o,list:h,slides:k});n=e.id||""+(i=kt)+af(vf[i]=(vf[i]||0)+1);r=u.role;e.id=n;o.id=o.id||n+"-track";h.id=h.id||n+"-list";!y(e,rt)&&"SECTION"!==e.tagName&&r&&t(e,rt,r);t(e,rr,ct.carousel);t(h,rt,"presentation");ot()}function et(n){var t=df.concat("style");g(k);it(e,c);it(o,l);b([o,h],t);b(e,n?t:["style",rr])}function ot(){it(e,c);it(o,l);c=ht(gf);l=ht(ks);w(e,c);w(o,l);t(e,a,u.label);t(e,bf,u.labelledby)}function st(n){var t=ns(e,n);if(t&&function(n,t){if(vo(n.closest))return n.closest(t);for(var i=n;i&&1===i.nodeType&&!pi(i,t);)i=i.parentElement;return i}(t,"."+gf)===e)return t}function ht(n){return[n+"--"+u.type,n+"--"+u.direction,u.drag&&n+"--draggable",u.isNavigation&&n+"--nav",n===gf&&pt]}var o,h,d,tt=r(n),v=tt.on,ut=tt.bind,e=n.root,ct=u.i18n,p={},k=[],c=[],l=[];return bi(p,{setup:ft,mount:function(){v(f,et);v(f,ft);v(s,ot);ut(document,eh+" keydown",function(n){d="keydown"===n.type},{capture:!0});ut(e,"focusin",function(){nt(e,uh,!!d)})},destroy:et})},Slides:function(n,u,e){function ot(){tt.forEach(function(n,t){lt(n,t,-1)})}function ct(){p(function(n){n.destroy()});g(s)}function lt(u,f,e){var h=function(n,u,f,e){function dt(){var i=n.splides.map(function(n){var t=n.splide.Components.Slides.getAt(u);return t?t.slide.id:""}).join(" ");t(e,a,lf(tt.slideX,(h?f:u)+1));t(e,ir,i);t(e,rt,ut?"button":"");ut&&b(e,rr)}function ti(){k||ft()}function ft(){var r,i;k||(r=n.index,(i=et())!==ko(e,pt)&&(nt(e,pt,i),t(e,as,yt&&i||""),w(i?"active":"inactive",c)),function(){var i=function(){if(n.is(ur))return et();var t=l(g.Elements.track),i=l(e),r=ct("left",!0),u=ct("right",!0);return br(t[r])<=gi(i[r])&&br(i[u])<=gi(t[u])}(),r=!i&&(!et()||h),u;(n.state.is([4,5])||t(e,ys,r||""),t(sf(e,s.focusableNodes||""),ni,r?-1:""),ut&&t(e,ni,r?-1:0),i!==ko(e,te)&&(nt(e,te,i),w(i?"visible":"hidden",c)),i||document.activeElement!==e)||(u=g.Slides.getAt(n.index),u&&bo(u.slide))}(),nt(e,ih,u===r-1),nt(e,rh,u===r+1))}function et(){var t=n.index;return t===u||s.cloneStatus&&t===f}var k,p=r(n),d=p.on,w=p.emit,ot=p.bind,g=n.Components,vt=n.root,s=n.options,yt=s.isNavigation,wt=s.updateOnMove,tt=s.i18n,bt=s.pagination,ut=s.slideFocus,ct=g.Direction.resolve,kt=y(e,"style"),lt=y(e,a),h=f>-1,at=wi(e,"."+wc),c={index:u,slideIndex:f,slide:e,container:at,isClone:h,mount:function(){h||(e.id=vt.id+"-slide"+af(u+1),t(e,rt,bt?"tabpanel":"group"),t(e,rr,tt.slide),t(e,a,lt||lf(tt.slideLabel,[u+1,n.length])));ot(e,"click",i(w,us,c));ot(e,"keydown",i(w,"sk",c));d([nr,"sh",gt],ft);d(es,dt);wt&&d(ht,ti)},destroy:function(){k=!0;p.destroy();it(e,nl);b(e,df);t(e,"style",kt);t(e,a,lt||"")},update:ft,style:function(n,t,i){v(i&&at||e,n,t)},isWithin:function(t,i){var r=o(t-u);return h||!s.rewind&&!n.is(ii)||(r=st(r,n.length-r)),r<=i}};return c}(n,f,e,u);h.mount();s.push(h);s.sort(function(n,t){return n.index-t.index})}function vt(n){return n?h(function(n){return!n.isClone}):s}function p(n,t){vt(t).forEach(n)}function h(n){return s.filter(vo(n)?n:function(t){return et(n)?pi(t.slide,n):ef(vi(n),t.index)})}var k=r(n),ut=k.on,d=k.emit,yt=k.bind,ft=u.Elements,tt=ft.slides,wt=ft.list,s=[];return{mount:function(){ot();ut(f,ct);ut(f,ot)},destroy:ct,update:function(){p(function(n){n.update()})},register:lt,get:vt,getIn:function(n){var t=u.Controller,i=t.toIndex(n),r=t.hasFocus()?1:e.perPage;return h(function(n){return kr(n.index,i,i+r-1)})},getAt:function(n){return h(n)[0]},add:function(n,t){c(n,function(n){var r,o,u,f,s;(et(n)&&(n=go(n)),yo(n))&&(r=tt[t],r?of(n,r):yi(wt,n),w(n,e.classes.slide),o=n,u=i(d,tr),f=sf(o,"img"),(s=f.length)?f.forEach(function(n){yt(n,"load error",function(){--s||u()})}):u())});d(f)},remove:function(n){at(h(n).map(function(n){return n.slide}));d(f)},forEach:p,filter:h,style:function(n,t,i){p(function(r){r.style(n,t,i)})},getLength:function(n){return n?tt.length:s.length},isEnough:function(){return s.length>e.perPage}}},Layout:function(n,t,u){function ot(){h=u.direction===ru;v(d,"maxWidth",vt(u.width));v(a,e("paddingLeft"),y(!1));v(a,e("paddingRight"),y(!0));rt(!0)}function rt(n){var t,i=l(d);(n||p.width!==i.width||p.height!==i.height)&&(v(a,"height",(t="",h&&(di(t=st(),"height or heightRatio is missing."),t="calc("+t+" - "+y(!1)+" - "+y(!0)+")"),t)),it(e("marginRight"),vt(u.gap)),it("width",u.autoWidth?null:vt(u.fixedWidth)||(h?"":ht())),it("height",vt(u.fixedHeight)||(h?u.autoHeight?null:ht():st()),!0),p=i,b(yf),c!==(c=pt())&&(nt(d,fh,c),b("overflow",c)))}function y(n){var t=u.padding,i=e(n?"right":"left");return t&&vt(t[i]||(li(t)?0:t))||"0px"}function st(){return vt(u.height||l(g).width*u.heightRatio)}function ht(){var n=vt(u.gap);return"calc((100%"+(n&&" + "+n)+")/"+(u.perPage||1)+(n&&" - "+n)+")"}function ct(){return l(g)[e("width")]}function lt(n,t){var i=tt(n||0);return i?l(i.slide)[e("width")]+(t?0:yt()):0}function ut(n,t){var i=tt(n),r,u;return i?(r=l(i.slide)[e("right")],u=l(g)[e("left")],o(r-u)+(t?0:yt())):0}function at(t){return ut(n.length-1)-ut(0)+lt(0,t)}function yt(){var n=tt(0);return n&&parseFloat(v(n.slide,e("marginRight")))||0}function pt(){return n.is(ur)||at(!0)>ct()}var h,p,c,w=r(n),ft=w.on,wt=w.bind,b=w.emit,et=t.Slides,e=t.Direction.resolve,k=t.Elements,d=k.root,a=k.track,g=k.list,tt=et.getAt,it=et.style;return{mount:function(){var t,n;ot();wt(window,"resize load",(t=i(b,tr),n=gr(0,t,null,1),function(){n.isPaused()&&n.start()}));ft([s,f],ot);ft(tr,rt)},resize:rt,listSize:ct,slideSize:lt,sliderSize:at,totalSize:ut,getPadding:function(n){return parseFloat(v(a,e("padding"+(n?"Right":"Left"))))||0},isOverflow:pt}},Clones:function(n,t,i){function y(){c(f,k);c([s,tr],d);(u=b())&&(function(t){var r=v.get().slice(),u=r.length;if(u){for(;r.length<t;)yr(r,r);yr(r.slice(-t),r.slice(0,t)).forEach(function(f,e){var s=e<t,o=function(t,r){var u=t.cloneNode(!0);return w(u,i.classes.clone),u.id=n.root.id+"-clone"+af(r+1),u}(f.slide,e);s?of(o,r[0].slide):yi(a.list,o);yr(h,o);v.register(o,e-t+(s?0:u),f.index)})}}(u),t.Layout.resize(!0))}function k(){p();y()}function p(){at(h);g(h);e.destroy()}function d(){var n=b();u!==n&&(u<n||!n)&&e.emit(f)}function b(){var r=i.clones,u;return n.is(ii)?ai(r)&&(u=i[o("fixedWidth")]&&t.Layout.slideSize(0),r=u&&gi(l(a.track)[o("width")]/u)||i[o("autoWidth")]&&n.length||2*i.perPage):r=0,r}var u,e=r(n),c=e.on,a=t.Elements,v=t.Slides,o=t.Direction.resolve,h=[];return{mount:y,destroy:p}},Move:function(n,t,i){function ot(){t.Controller.isBusy()||(t.Scroll.cancel(),st(n.index),t.Slides.update())}function st(n){a(p(n,!0))}function a(i,r){if(!n.is(ur)){var u=r?i:function(i){if(n.is(ii)){var r=lt(i),u=r>t.Controller.getEnd();(r<0||u)&&(i=y(i,u))}return i}(i);v(d,"transform","translate"+c("X")+"("+u+"px)");i!==u&&k("sh")}}function y(n,t){var r=n-w(t),i=rt();return n-u(i*(gi(o(r)/i)||1))*(t?1:-1)}function ct(){a(h(),!0);b.cancel()}function lt(n){for(var r,u,f=t.Slides.get(),e=0,s=1/0,i=0;i<f.length;i++){if(r=f[i].index,u=o(p(r,!0)-n),!(u<=s))break;s=u;e=r}return e}function p(t,r){var f=u(pt(t-1)-function(n){var t=i.focus;return"center"===t?(it()-tt(n,!0))/2:+t*tt(n)||0}(t));return r?function(t){return i.trimSpace&&n.is(ti)&&(t=dt(t,0,u(rt(!0)-it()))),t}(f):f}function h(){var n=c("left");return l(d)[n]-l(et)[n]+u(vt(!1))}function w(n){return p(n?t.Controller.getEnd():0,!!i.trimSpace)}var b,g=r(n),at=g.on,k=g.emit,nt=n.state.set,e=t.Layout,tt=e.slideSize,vt=e.getPadding,pt=e.totalSize,it=e.listSize,rt=e.sliderSize,ut=t.Direction,c=ut.resolve,u=ut.orient,ft=t.Elements,d=ft.list,et=ft.track;return{mount:function(){b=t.Transition;at([yt,yf,s,f],ot)},move:function(n,t,i,r){var f,e;n!==t&&(f=n>i,e=u(y(h(),f)),f?e>=0:e<=d[c("scrollWidth")]-l(et)[c("width")])&&(ct(),a(y(h(),n>i),!0));nt(4);k(ht,t,i,n);b.start(t,function(){nt(3);k(nr,t,i,n);r&&r()})},jump:st,translate:a,shift:y,cancel:ct,toIndex:lt,toPosition:p,getPosition:h,getLimit:w,exceededLimit:function(n,t){t=ai(t)?h():t;var i=!0!==n&&u(t)<u(w(!1)),r=!1!==n&&u(t)>u(w(!0));return i||r},reposition:ot}},Controller:function(n,t,u){function at(){h=kt(!0);v=u.perMove;c=u.perPage;o=it();var n=dt(e,0,k?o:h-1);n!==e&&(e=n,l.reposition())}function gt(){o!==it()&&pt(dr)}function nt(n,t){var r=v||(a()?1:c),i=vt(e+r*(n?-1:1),e,!(v||a()));return-1===i&&d&&!ts(w(),wt(!n),1)?n?0:o:t?i:tt(i)}function vt(t,i,r){if(bt()||a()){var f=function(t){if(d&&"move"===u.trimSpace&&t!==e)for(var i=w();i===b(t,!0)&&kr(t,0,n.length-1,!u.rewind);)t<e?--t:++t;return t}(t);f!==t&&(i=t,t=f,r=!1);t<0||t>o?t=v||!kr(0,t,i,!0)&&!kr(o,i,t,!0)?y?r?t<0?-(h%c||c):h:t:u.rewind?t<0?o:0:-1:p(rt(t)):r&&t!==i&&(t=p(rt(i)+(t<i?-1:1)))}else t=-1;return t}function tt(n){return y?(n+h)%h||0:n}function it(){for(var n=h-(a()||y&&v?1:c);k&&n-->0;)if(b(h-1,!0)!==b(n,!0)){n++;break}return dt(n,0,h-1)}function p(n){return dt(a()?n:c*n,0,o)}function rt(n){return a()?st(n,o):br((n>=o?h-1:n)/c)}function ut(n){n!==e&&(g=e,e=n)}function a(){return!ai(u.focus)||u.isNavigation}function yt(){return n.state.is([4,5])&&!!u.waitForTransition}var o,h,v,c,ft=r(n),ot=ft.on,pt=ft.emit,l=t.Move,w=l.getPosition,wt=l.getLimit,b=l.toPosition,ht=t.Slides,bt=ht.isEnough,kt=ht.getLength,k=u.omitEnd,y=n.is(ii),d=n.is(ti),ct=i(nt,!1),lt=i(nt,!0),e=u.start||0,g=e;return{mount:function(){at();ot([s,f,dr],at);ot(yf,gt)},go:function(n,t,i){if(!yt()){var u=function(n){var t=e;if(et(n)){var u=n.match(/([+\-<>])(\d+)?/)||[],i=u[1],r=u[2];"+"===i||"-"===i?t=vt(e+ +(""+i+(+r||1)),e):">"===i?t=r?p(+r):ct(!0):"<"===i&&(t=lt(!0))}else t=y?n:dt(n,0,o);return t}(n),r=tt(u);r>-1&&(t||r!==e)&&(ut(r),l.move(u,r,g,i))}},scroll:function(n,i,r,u){t.Scroll.scroll(n,i,r,function(){var n=tt(l.toIndex(w()));ut(k?st(n,o):n);u&&u()})},getNext:ct,getPrev:lt,getAdjacent:nt,getEnd:it,setIndex:ut,getIndex:function(n){return n?g:e},toIndex:p,toPage:rt,toDest:function(n){var t=l.toIndex(n);return d?dt(t,0,o):t},hasFocus:a,isBusy:yt}},Arrows:function(n,u,e){function st(){var n;(n=e.arrows)&&(!o||!h)&&(c=k||bt("div",v.arrows),o=lt(!0),h=lt(!1),nt=!0,yi(c,[o,h]),!k&&of(c,et));o&&h&&(bi(ot,{prev:o,next:h}),ki(c,n?"":"none"),w(c,tt=ne+"--"+e.direction),n&&(rt([yt,nr,f,gt,dr],g),ut(h,"click",i(ct,">")),ut(o,"click",i(ct,"<")),g(),t([o,h],ir,et.id),ft("arrows:mounted",o,h)));rt(s,vt)}function vt(){ht();st()}function ht(){l.destroy();it(c,tt);nt?(at(k?[o,h]:c),o=h=null):b([o,h],df)}function ct(n){d.go(n,!0)}function lt(n){return go('<button class="'+v.arrow+" "+(n?v.prev:v.next)+'" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40" focusable="false"><path d="'+(e.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z")+'" />')}function g(){if(o&&h){var u=n.index,i=d.getPrev(),r=d.getNext(),f=i>-1&&u<i?y.last:y.prev,e=r>-1&&u>r?y.first:y.next;o.disabled=i<0;h.disabled=r<0;t(o,a,f);t(h,a,e);ft("arrows:updated",o,h,i,r)}}var nt,tt,l=r(n),rt=l.on,ut=l.bind,ft=l.emit,v=e.classes,y=e.i18n,p=u.Elements,d=u.Controller,k=p.arrows,et=p.track,c=k,o=p.prev,h=p.next,ot={};return{arrows:ot,mount:st,destroy:ht,update:g}},Autoplay:function(n,i,u){function h(){k()&&i.Slides.isEnough()&&(s.start(!u.resetProgress),l=c=o=!1,g(),b(os))}function d(n){void 0===n&&(n=!0);o=!!n;g();k()||(s.pause(),b(ss))}function et(){o||(c||l?d(!1):h())}function g(){e&&(nt(e,pt,!o),t(e,a,u.i18n[o?"play":"pause"]))}function ot(n){var t=i.Slides.getAt(n);s.set(t&&+y(t.slide,il)||u.interval)}var c,l,p=r(n),tt=p.on,w=p.bind,b=p.emit,s=gr(u.interval,n.go.bind(n,">"),function(n){var t=it.bar;t&&v(t,"width",100*n+"%");b("autoplay:playing",n)}),k=s.isPaused,it=i.Elements,rt=i.Elements,ut=rt.root,e=rt.toggle,ft=u.autoplay,o="pause"===ft;return{mount:function(){ft&&(u.pauseOnHover&&w(ut,"mouseenter mouseleave",function(n){c="mouseenter"===n.type;et()}),u.pauseOnFocus&&w(ut,"focusin focusout",function(n){l="focusin"===n.type;et()}),e&&w(e,"click",function(){o?h():d(!0)}),tt([ht,pf,f],s.rewind),tt(ht,ot),e&&t(e,ir,it.track.id),o||h(),g())},destroy:s.cancel,play:h,pause:d,isPaused:k}},Cover:function(n,t,u){function o(n){t.Slides.forEach(function(t){var i=wi(t.container||t.slide,"img");i&&i.src&&h(n,i,t)})}function h(n,t,i){i.style("background",n?'center/cover no-repeat url("'+t.src+'")':"",!0);ki(t,n?"none":"")}var e=r(n).on;return{mount:function(){u.cover&&(e(hs,i(h,!0)),e([yt,s,f],i(o,!0)))},destroy:i(o,!1)}},Scroll:function(n,t,u){function g(n,r,u,f,s){var p=k(),y,g,tt;(l(),!u||d&&a())||(y=t.Layout.sliderSize(),g=cf(n)*y*br(o(n)/y)||0,n=h.toPosition(t.Controller.toDest(n%y))+g);tt=ts(p,n,1);v=1;r=tt?0:r||wr(o(n-p)/1.5,800);c=f;e=gr(r,nt,i(ut,p,n,s),1);b(5);w(pf);e.start()}function nt(){b(3);c&&c();w(gt)}function ut(n,t,i,r){var f,e,s=k(),h=(n+(t-n)*(f=r,(e=u.easingFunc)?e(f):1-Math.pow(1-f,4))-s)*v;rt(s+h);d&&!i&&a()&&(v*=.6,o(h)<10&&g(it(a(!0)),600,!1,c,!0))}function l(){e&&e.cancel()}function tt(){e&&!e.isPaused()&&(l(),nt())}var e,c,y=r(n),p=y.on,w=y.emit,b=n.state.set,h=t.Move,k=h.getPosition,it=h.getLimit,a=h.exceededLimit,rt=h.translate,d=n.is(ti),v=1;return{mount:function(){p(ht,l);p([s,f],tt)},destroy:l,scroll:g,cancel:tt}},Drag:function(n,t,i){function ui(){var n=i.drag;bt(!n);k="free"===n}function fi(n){var t,r,o;(d=!1,g)||(t=it(n),r=n.target,o=i.noDrag,pi(r,"."+th+", ."+fu)||o&&pi(r,o)||!t&&n.button||(e.isBusy()?tt(n,!0):(c=t?h:window,f=l.is([4,5]),b=null,u(c,re,ct,ri),u(c,ue,lt,ri),w.cancel(),dt.cancel(),at(n))))}function ct(t){if(l.is(6)||(l.set(6),nt("drag")),t.cancelable)if(f){w.translate(rt+v(t)/(a&&n.is(ti)?5:1));var r=vt(t)>200,u=a!==(a=ht());(r||u)&&at(t);d=!0;nt("dragging");tt(t)}else(function(n){return o(v(n))>o(v(n,!0))})(t)&&(f=function(n){var t=i.dragMinThreshold,r=li(t),u=r&&t.mouse||0,f=(r?t.touch:+t)||10;return o(v(n))>(it(n)?f:u)}(t),tt(t))}function lt(r){l.is(6)&&(l.set(3),nt("dragged"));f&&(function(r){var f=function(t){if(n.is(ii)||!a){var i=vt(t);if(i&&i<200)return v(t)/i}return 0}(r),s=function(n){return ot()+cf(n)*st(o(n)*(i.flickPower||600),k?1/0:t.Layout.listSize()*(i.flickMaxPages||1))}(f),u=i.rewind&&i.rewindByDrag;ft(!1);k?e.scroll(s,0,i.snap):n.is(ur)?e.go(ni(cf(f))<0?u?"<":"-":u?">":"+"):n.is(ti)&&a&&u?e.go(ht(!0)?">":"<"):e.go(e.toDest(s),!0);ft(!0)}(r),tt(r));ut(c,re,ct);ut(c,ue,lt);f=!1}function ei(n){!g&&d&&tt(n,!0)}function at(n){b=y;y=n;rt=ot()}function v(n,t){return wt(n,t)-wt(pt(n),t)}function vt(n){return hf(n)-hf(pt(n))}function pt(n){return y===n&&b||y}function wt(n,t){return(it(n)?n.changedTouches[0]:n)["page"+gt(t?"Y":"X")]}function it(n){return"undefined"!=typeof TouchEvent&&n instanceof TouchEvent}function bt(n){g=n}var rt,y,b,k,f,d,g,c,p=r(n),kt=p.on,nt=p.emit,u=p.bind,ut=p.unbind,l=n.state,w=t.Move,dt=t.Scroll,e=t.Controller,h=t.Elements.track,ft=t.Media.reduce,et=t.Direction,gt=et.resolve,ni=et.orient,ot=w.getPosition,ht=w.exceededLimit,a=!1;return{mount:function(){u(h,re,ar,ri);u(h,ue,ar,ri);u(h,eh,fi,ri);u(h,"click",ei,{capture:!0});u(h,"dragstart",tt);kt([yt,s],ui)},disable:bt,isDragging:function(){return f}}},Keyboard:function(n,t,i){function c(){var n=i.keyboard;n&&(f="global"===n?window:y,a(f,oh,w))}function l(){v(f,oh)}function p(){var n=u;u=!0;rf(function(){u=n})}function w(t){if(!u){var i=fe(t);i===h(tu)?n.go("<"):i===h(iu)&&n.go(">")}}var f,u,e=r(n),o=e.on,a=e.bind,v=e.unbind,y=n.root,h=t.Direction.resolve;return{mount:function(){c();o(s,l);o(s,c);o(ht,p)},destroy:l,disable:function(n){u=n}}},LazyLoad:function(n,u,e){function k(){g(o);u.Slides.forEach(function(n){sf(n.slide,ul).forEach(function(t){var u=y(t,fr),f=y(t,ou);if(u!==t.src||f!==t.srcset){var i=e.classes.spinner,r=t.parentElement,s=wi(r,"."+i)||bt("span",i,r);o.push([t,n,s]);t.src||ki(t,"none")}})});p?nt():(a(h),l(h,c),c())}function c(){(o=o.filter(function(t){var i=e.perPage*((e.preloadPages||1)+1)-1;return!t[1].isWithin(n.index,i)||d(t)})).length||a(h)}function d(n){var r=n[0];w(n[1].slide,ie);tt(r,"load error",i(rt,n));t(r,"src",y(r,fr));t(r,"srcset",y(r,ou));b(r,fr);b(r,ou)}function rt(n,t){var i=n[0],r=n[1];it(r.slide,ie);"error"!==t.type&&(at(n[2]),ki(i,""),v(hs,i,r),v(tr));p&&nt()}function nt(){o.length&&d(o.shift())}var s=r(n),l=s.on,a=s.off,tt=s.bind,v=s.emit,p="sequential"===e.lazyLoad,h=[nr,gt],o=[];return{mount:function(){e.lazyLoad&&(k(),l(f,k))},destroy:i(g,o),check:c}},Pagination:function(n,u,e){function yt(){o&&(at(v?ft(o.children):o),it(o,d),g(h),o=null);l.destroy()}function kt(n){lt(">"+n,!0)}function dt(n,t){var r=h.length,u=fe(t),e=p(),i=-1,f;u===vt(iu,!1,e)?i=++n%r:u===vt(tu,!1,e)?i=(--n+r)%r:"Home"===u?i=0:"End"===u&&(i=r-1);f=h[i];f&&(bo(f.button),lt(">"+i),tt(t,!0))}function p(){return e.paginationDirection||e.direction}function y(n){return h[c.toPage(n)]}function k(){var r=y(ct(!0)),u=y(ct()),n,i;r&&(n=r.button,it(n,pt),b(n,vs),t(n,ni,-1));u&&(i=u.button,w(i,pt),t(i,vs,!0),t(i,ni,""));ut("pagination:updated",{list:o,items:h},r,u)}var o,d,l=r(n),nt=l.on,ut=l.emit,et=l.bind,wt=u.Slides,ot=u.Elements,c=u.Controller,st=c.hasFocus,ct=c.getIndex,lt=c.go,vt=u.Direction.resolve,v=ot.pagination,h=[];return{items:h,mount:function u(){yt();nt([s,f,dr],u);var r=e.pagination;v&&ki(v,r?"":"none");r&&(nt([ht,pf,gt],k),function(){var b=n.length,l=e.classes,f=e.i18n,y=e.perPage,k=st()?c.getEnd()+1:gi(b/y),r;for(w(o=v||bt("ul",l.pagination,ot.track.parentElement),d=eu+"--"+p()),t(o,rt,"tablist"),t(o,a,f.select),t(o,kf,p()===ru?"vertical":""),r=0;r<k;r++){var s=bt("li",null,o),u=bt("button",{"class":l.page,type:"button"},s),g=wt.getIn(r).map(function(n){return n.slide.id}),nt=!st()&&y>1?f.pageX:f.slideX;et(u,"click",i(kt,r));e.paginationKeyboard&&et(u,"keydown",i(dt,r));t(s,rt,"presentation");t(u,rt,"tab");t(u,ir,g.join(" "));t(u,a,lf(nt,r+1));t(u,ni,-1);h.push({li:s,button:u,page:r})}}(),k(),ut("pagination:mounted",{list:o,items:h},y(n.index)))},destroy:yt,getAt:y,update:k}},Sync:function(n,u,f){function c(){var t,i;n.splides.forEach(function(t){t.isParent||(a(n,t.splide),a(t.splide,n))});o&&((i=(t=r(n)).on)(us,v),i("sk",p),i([yt,s],y),e.push(t),t.emit(es,n.splides))}function l(){e.forEach(function(n){n.destroy()});g(e)}function a(n,t){var i=r(n);i.on(ht,function(n,i,r){t.go(t.is(ii)?r:n)});e.push(i)}function y(){t(u.Elements.list,kf,f.direction===ru?"vertical":"")}function v(t){n.go(t.index)}function p(n,t){ef(fl,fe(t))&&(v(n),tt(t))}var o=f.isNavigation,h=f.slideFocus,e=[];return{setup:i(u.Media.set,{slideFocus:ai(h)?o:h},!0),mount:c,destroy:l,remount:function(){l();c()}}},Wheel:function(n,t,i){function e(r){if(r.cancelable){var f=r.deltaY,e=f<0,s=hf(r),h=i.wheelMinThreshold||0,c=i.wheelSleep||0;o(f)>h&&s-u>c&&(n.go(e?"<":">"),u=s),function(r){return!i.releaseWheel||n.state.is(4)||-1!==t.Controller.getAdjacent(r)}(e)&&tt(r)}}var f=r(n).bind,u=0;return{mount:function(){i.wheel&&f(t.Elements.track,"wheel",e,ri)}}},Live:function(n,u,f){function a(n){t(e,ws,n);n?(yi(e,o),l.start()):(at(o),l.cancel())}function s(n){c&&t(e,ps,n?"off":"polite")}var h=r(n).on,e=u.Elements.track,c=f.live&&!f.isNavigation,o=bt("span",dc),l=gr(90,i(a,!1));return{mount:function(){c&&(s(!u.Autoplay.isPaused()),t(e,bs,!0),o.textContent="…",h(os,i(s,!0)),h(ss,i(s,!1)),h([nr,gt],i(a,!0)))},disable:s,destroy:function(){b(e,[ps,bs,ws]);at(o)}}}}),ol={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:tl,i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};sh=function(){function t(n,i){var f,u;this.event=r();this.Components={};this.state=(f=1,{set:function(n){f=n},is:function(n){return ef(vi(n),f)}});this.splides=[];this._o={};this._E={};u=et(n)?ns(document,n):n;di(u,u+" is invalid.");this.root=u;i=ot({label:y(u,a)||"",labelledby:y(u,bf)||""},ol,t.defaults,i||{});try{ot(i,JSON.parse(y(u,pr)))}catch(t){di(!1,"Invalid JSON")}this._o=Object.create(ot({},i))}var i,u,n=t.prototype;return n.mount=function(n,t){var u=this,r=this.state,i=this.Components;return di(r.is([1,7]),"Already mounted!"),r.set(1),this._C=i,this._T=t||this._T||(this.is(ur)?sl:hl),this._E=n||this._E,lt(bi({},el,this._E,{Transition:this._T}),function(n,t){var r=n(u,i,u._o);i[t]=r;r.setup&&r.setup()}),lt(i,function(n){n.mount&&n.mount()}),this.emit(yt),w(this.root,gc),r.set(3),this.emit(rs),this},n.sync=function(n){return this.splides.push({splide:n}),n.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._C.Sync.remount(),n.Components.Sync.remount()),this},n.go=function(n){return this._C.Controller.go(n),this},n.on=function(n,t){return this.event.on(n,t),this},n.off=function(n){return this.event.off(n),this},n.emit=function(n){var t;return(t=this.event).emit.apply(t,[n].concat(ft(arguments,1))),this},n.add=function(n,t){return this._C.Slides.add(n,t),this},n.remove=function(n){return this._C.Slides.remove(n),this},n.is=function(n){return this._o.type===n},n.refresh=function(){return this.emit(f),this},n.destroy=function(n){void 0===n&&(n=!0);var t=this.event,i=this.state;return i.is(1)?r(this).on(rs,this.destroy.bind(this,n)):(lt(this._C,function(t){t.destroy&&t.destroy(n)},!0),t.emit(fs),t.destroy(),n&&g(this.splides),i.set(7)),this},i=t,(u=[{key:"options",get:function(){return this._o},set:function(n){this._C.Media.set(n,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}])&&function(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}(i.prototype,u),Object.defineProperty(i,"prototype",{writable:!1}),t}();su=sh;su.defaults={};su.STATES={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,SCROLLING:5,DRAGGING:6,DESTROYED:7};se=Array.isArray;hu(oe,"function");hu(oe,"string");hu(oe,"undefined");var cl=Object.keys,ce="dragging",ll="destroy";er="splide__slide";lu=er+"__container";var ch=Array.isArray,al=le(au,"function"),lh=le(au,"string"),ah=le(au,"undefined");vh=Object.keys;we=Math.min;be=Math.max;Math.floor;Math.ceil;Math.abs;var de="splide__video",vl="".concat(de,"__wrapper"),yl="".concat(de,"__play"),or="--has-video",pl={hideControls:!1,loop:!1,mute:!1,volume:.2},bh="video:click",ge=function(){function n(t,i,r){var u;_classCallCheck(this,n);this.state=(u=1,{set:function(n){u=n},is:function(n){return t=he(n),i=u,t.indexOf(i)>-1;var t,i}});this.event=cu();this.target=t;this.videoId=i;this.options=r||{};this.onPlay=this.onPlay.bind(this);this.onPause=this.onPause.bind(this);this.onEnded=this.onEnded.bind(this);this.onPlayerReady=this.onPlayerReady.bind(this);this.onError=this.onError.bind(this)}return _createClass(n,[{key:"on",value:function(n,t){this.event.on(n,t)}},{key:"play",value:function(){var n=this.state;return n.is(9)?void console.error("[splide] Can not play this video."):(this.event.emit("play"),n.is(2)?n.set(4):n.is(3)?(this.player=this.createPlayer(this.videoId),n.set(4)):void(n.is([4,8])||n.is(5)&&(n.set(6),this.playVideo())))}},{key:"pause",value:function(){var n=this.state;if(!n.is(9))return this.event.emit("pause"),n.is(4)?n.set(2):n.is(6)?n.set(7):void(n.is(8)&&(this.pauseVideo(),this.state.set(5)))}},{key:"isPaused",value:function(){return!this.state.is(8)}},{key:"destroy",value:function(){this.event.destroy()}},{key:"onPlayerReady",value:function(){var n=this.state,t=n.is(4);n.set(5);t&&this.play()}},{key:"onPlay",value:function(){var n=this.state,t=n.is(7);n.set(8);t?this.pause():this.event.emit("played")}},{key:"onPause",value:function(){this.state.set(5);this.event.emit("paused")}},{key:"onEnded",value:function(){this.state.set(5);this.event.emit("ended")}},{key:"onError",value:function(){this.state.set(9);this.event.emit("error")}}]),n}(),kh=void 0!==ci.g&&"[object global]"==={}.toString.call(ci.g);if(nc=void 0!==Array.prototype.indexOf,tc="undefined"!=typeof window&&void 0!==window.postMessage,!(kh||nc&&tc))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");no="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==ci.g?ci.g:"undefined"!=typeof self?self:{};!function(n){function i(n){return Object(n)===n}if(!n.WeakMap){var r=Object.prototype.hasOwnProperty,u=Object.defineProperty&&function(){try{return 1===Object.defineProperty({},"x",{value:1}).x}catch(n){}}(),t=function(n,t,i){u?Object.defineProperty(n,t,{configurable:!0,writable:!0,value:i}):n[t]=i};n.WeakMap=function(){function n(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(t(this,"_id","_WeakMap_"+f()+"."+f()),arguments.length>0)throw new TypeError("WeakMap iterable is not supported");}function u(n,t){if(!i(n)||!r.call(n,"_id"))throw new TypeError(t+" method called on incompatible receiver "+_typeof(n));}function f(){return Math.random().toString().substring(2)}return t(n.prototype,"delete",function(n){if(u(this,"delete"),!i(n))return!1;var t=n[this._id];return!(!t||t[0]!==n||(delete n[this._id],0))}),t(n.prototype,"get",function(n){if(u(this,"get"),i(n)){var t=n[this._id];return t&&t[0]===n?t[1]:void 0}}),t(n.prototype,"has",function(n){if(u(this,"has"),!i(n))return!1;var t=n[this._id];return!(!t||t[0]!==n)}),t(n.prototype,"set",function(n,r){if(u(this,"set"),!i(n))throw new TypeError("Invalid value used as weak map key");var f=n[this._id];return f&&f[0]===n?(f[1]=r,this):(t(n,this._id,[n,r]),this)}),t(n,"_polyfill",!0),n}()}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:no);ut=(ic=function(n){var t,i,r;r=function(){function r(n,t){f.add(n,t);u||(u=v(f.drain))}function h(n){var t,i=_typeof(n);return null==n||"object"!=i&&"function"!=i||(t=n.then),"function"==typeof t&&t}function e(){for(var n=0;n<this.chain.length;n++)y(this,1===this.state?this.chain[n].success:this.chain[n].failure,this.chain[n]);this.chain.length=0}function y(n,t,i){var r,u;try{!1===t?i.reject(n.msg):(r=!0===t?n.msg:t.call(void 0,n.msg))===i.promise?i.reject(TypeError("Promise-chain cycle")):(u=h(r))?u.call(r,i.resolve,i.reject):i.resolve(r)}catch(n){i.reject(n)}}function c(n){var u,t=this;if(!t.triggered){t.triggered=!0;t.def&&(t=t.def);try{(u=h(n))?r(function(){var r=new a(t);try{u.call(n,function(){c.apply(r,arguments)},function(){i.apply(r,arguments)})}catch(n){i.call(r,n)}}):(t.msg=n,t.state=1,t.chain.length>0&&r(e,t))}catch(n){i.call(new a(t),n)}}}function i(n){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=n,t.state=2,t.chain.length>0&&r(e,t))}function l(n,t,i,r){for(var u=0;u<t.length;u++)!function(u){n.resolve(t[u]).then(function(n){i(u,n)},r)}(u)}function a(n){this.def=n;this.triggered=!1}function p(n){this.promise=n;this.state=0;this.triggered=!1;this.chain=[];this.msg=void 0}function t(n){if("function"!=typeof n)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new p(this);this.then=function(n,i){var u={success:"function"!=typeof n||n,failure:"function"==typeof i&&i};return u.promise=new this.constructor(function(n,t){if("function"!=typeof n||"function"!=typeof t)throw TypeError("Not a function");u.resolve=n;u.reject=t}),t.chain.push(u),0!==t.state&&r(e,t),u.promise};this.catch=function(n){return this.then(void 0,n)};try{n.call(void 0,function(n){c.call(t,n)},function(n){i.call(t,n)})}catch(n){i.call(t,n)}}var n,u,f,s=Object.prototype.toString,v="undefined"!=typeof setImmediate?function(n){return setImmediate(n)}:setTimeout,o;try{Object.defineProperty({},"x",{});n=function(n,t,i,r){return Object.defineProperty(n,t,{value:i,writable:!0,configurable:!1!==r})}}catch(u){n=function(n,t,i){return n[t]=i,n}}return f=function(){function r(n,t){this.fn=n;this.self=t;this.next=void 0}var i,t,n;return{add:function(u,f){n=new r(u,f);t?t.next=n:i=n;t=n;n=void 0},drain:function(){var n=i;for(i=t=u=void 0;n;)n.fn.call(n.self),n=n.next}}}(),o=n({},"constructor",t,!1),t.prototype=o,n(o,"__NPO__",0,!1),n(t,"resolve",function(n){return n&&"object"==_typeof(n)&&1===n.__NPO__?n:new this(function(t,i){if("function"!=typeof t||"function"!=typeof i)throw TypeError("Not a function");t(n)})}),n(t,"reject",function(n){return new this(function(t,i){if("function"!=typeof t||"function"!=typeof i)throw TypeError("Not a function");i(n)})}),n(t,"all",function(n){var t=this;return"[object Array]"!=s.call(n)?t.reject(TypeError("Not an array")):0===n.length?t.resolve([]):new t(function(i,r){if("function"!=typeof i||"function"!=typeof r)throw TypeError("Not a function");var u=n.length,f=Array(u),e=0;l(t,n,function(n,t){f[n]=t;++e===u&&i(f)},r)})}),n(t,"race",function(n){var t=this;return"[object Array]"!=s.call(n)?t.reject(TypeError("Not an array")):new t(function(i,r){if("function"!=typeof i||"function"!=typeof r)throw TypeError("Not a function");l(t,n,function(n,t){i(t)},r)})}),t};(i=no)[t="Promise"]=i[t]||r();n.exports&&(n.exports=i[t])},ic(rc={exports:{}}),rc.exports);d=new WeakMap;uc=["autopause","autoplay","background","byline","color","controls","dnt","height","id","interactive_params","keyboard","loop","maxheight","maxwidth","muted","playsinline","portrait","responsive","speed","texttrack","title","transparent","url","width"];var hi=new WeakMap,ro=new WeakMap,h={},oc=function(){function n(t){var i=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r,f,u;if(function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}(this,n),window.jQuery&&t instanceof jQuery&&(t.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),t=t[0]),"undefined"!=typeof document&&"string"==typeof t&&(t=document.getElementById(t)),!function(n){return Boolean(n&&1===n.nodeType&&"nodeName"in n&&n.ownerDocument&&n.ownerDocument.defaultView)}(t))throw new TypeError("You must pass either a valid element or a valid id.");if("IFRAME"!==t.nodeName&&(r=t.querySelector("iframe"),r&&(t=r)),"IFRAME"===t.nodeName&&!si(t.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");return hi.has(t)?hi.get(t):(this._window=t.ownerDocument.defaultView,this.element=t,this.origin="*",f=new ut(function(n,r){if(i._onMessage=function(t){var u,f,e,o;if(si(t.origin)&&i.element.contentWindow===t.source){if("*"===i.origin&&(i.origin=t.origin),u=to(t.data),u&&"error"===u.event&&u.data&&"ready"===u.data.method)return f=new Error(u.data.message),f.name=u.data.name,void r(f);if(e=u&&"ready"===u.event,o=u&&"ping"===u.method,e||o)return i.element.setAttribute("data-ready","true"),void n();!function(n,t){var i,r=[],u;(t=to(t)).event?("error"===t.event&&pu(n,t.data.method).forEach(function(i){var r=new Error(t.data.message);r.name=t.data.name;i.reject(r);wu(n,t.data.method,i)}),r=pu(n,"event:".concat(t.event)),i=t.data):t.method&&(u=function(n,t){var r=pu(n,t),i;return r.length<1?!1:(i=r.shift(),wu(n,t,i),i)}(n,t.method),u&&(r.push(u),i=t.value));r.forEach(function(t){try{if("function"==typeof t)return void t.call(n,i);t.resolve(i)}catch(n){}})}(i,u)}},i._window.addEventListener("message",i._onMessage),"IFRAME"!==i.element.nodeName){var u=fc(t,e);ec(gh(u),u,t).then(function(n){var r,u,f,e=io(n,t);return i.element=e,i._originalElement=t,r=t,u=e,f=d.get(r),d.set(u,f),d.delete(r),hi.set(i.element,i),n}).catch(r)}}),(ro.set(this,f),hi.set(this.element,this),"IFRAME"===this.element.nodeName&&hr(this,"ping"),h.isEnabled)&&(u=function(){return h.exit()},this.fullscreenchangeHandler=function(){h.isFullscreen?sr(i,"event:exitFullscreen",u):wu(i,"event:exitFullscreen",u);i.ready().then(function(){hr(i,"fullscreenchange",h.isFullscreen)})},h.on("fullscreenchange",this.fullscreenchangeHandler)),this)}var t;return t=[{key:"callMethod",value:function(n){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new ut(function(r,u){return t.ready().then(function(){sr(t,n,{resolve:r,reject:u});hr(t,n,i)}).catch(u)})}},{key:"get",value:function(n){var t=this;return new ut(function(i,r){return n=dh(n,"get"),t.ready().then(function(){sr(t,n,{resolve:i,reject:r});hr(t,n)}).catch(r)})}},{key:"set",value:function(n,t){var i=this;return new ut(function(r,u){if(n=dh(n,"set"),null==t)throw new TypeError("There must be a value to set.");return i.ready().then(function(){sr(i,n,{resolve:r,reject:u});hr(i,n,t)}).catch(u)})}},{key:"on",value:function(n,t){if(!n)throw new TypeError("You must pass an event name.");if(!t)throw new TypeError("You must pass a callback function.");if("function"!=typeof t)throw new TypeError("The callback must be a function.");0===pu(this,"event:".concat(n)).length&&this.callMethod("addEventListener",n).catch(function(){});sr(this,"event:".concat(n),t)}},{key:"off",value:function(n,t){if(!n)throw new TypeError("You must pass an event name.");if(t&&"function"!=typeof t)throw new TypeError("The callback must be a function.");wu(this,"event:".concat(n),t)&&this.callMethod("removeEventListener",n).catch(function(){})}},{key:"loadVideo",value:function(n){return this.callMethod("loadVideo",n)}},{key:"ready",value:function(){var n=ro.get(this)||new ut(function(n,t){t(new Error("Unknown player. Probably unloaded."))});return ut.resolve(n)}},{key:"addCuePoint",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:n,data:t})}},{key:"removeCuePoint",value:function(n){return this.callMethod("removeCuePoint",n)}},{key:"enableTextTrack",value:function(n,t){if(!n)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:n,kind:t})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return h.isEnabled?h.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return h.isEnabled?h.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return h.isEnabled?ut.resolve(h.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var n=this;return new ut(function(t){if(ro.delete(n),hi.delete(n.element),n._originalElement&&(hi.delete(n._originalElement),n._originalElement.removeAttribute("data-vimeo-initialized")),n.element&&"IFRAME"===n.element.nodeName&&n.element.parentNode&&(n.element.parentNode.parentNode&&n._originalElement&&n._originalElement!==n.element.parentNode?n.element.parentNode.parentNode.removeChild(n.element.parentNode):n.element.parentNode.removeChild(n.element)),n.element&&"DIV"===n.element.nodeName&&n.element.parentNode){n.element.removeAttribute("data-vimeo-initialized");var i=n.element.querySelector("iframe");i&&i.parentNode&&(i.parentNode.parentNode&&n._originalElement&&n._originalElement!==i.parentNode?i.parentNode.parentNode.removeChild(i.parentNode):i.parentNode.removeChild(i))}n._window.removeEventListener("message",n._onMessage);h.isEnabled&&h.off("fullscreenchange",n.fullscreenchangeHandler);t()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(n){return this.set("autopause",n)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(n){return this.set("cameraProps",n)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"setColor",value:function(n){return this.set("color",n)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(n){return this.set("currentTime",n)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(n){return this.set("loop",n)}},{key:"setMuted",value:function(n){return this.set("muted",n)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(n){return this.set("playbackRate",n)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}},{key:"setQuality",value:function(n){return this.set("quality",n)}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(n){return this.set("volume",n)}}],t&&function(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}(n.prototype,t),n}();kh||(h=function(){var n=function(){for(var t,i=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n=0,u=i.length,r={};n<u;n++)if((t=i[n])&&t[1]in document){for(n=0;n<t.length;n++)r[i[0][n]]=t[n];return r}return!1}(),i={fullscreenchange:n.fullscreenchange,fullscreenerror:n.fullscreenerror},t={request:function(i){return new Promise(function(r,u){var e=function n(){t.off("fullscreenchange",n);r()},f;t.on("fullscreenchange",e);f=(i=i||document.documentElement)[n.requestFullscreen]();f instanceof Promise&&f.then(e).catch(u)})},exit:function(){return new Promise(function(i,r){var u,f;if(t.isFullscreen){u=function n(){t.off("fullscreenchange",n);i()};t.on("fullscreenchange",u);f=document[n.exitFullscreen]();f instanceof Promise&&f.then(u).catch(r)}else i()})},on:function(n,t){var r=i[n];r&&document.addEventListener(r,t)},off:function(n,t){var r=i[n];r&&document.removeEventListener(r,t)}};return Object.defineProperties(t,{isFullscreen:{get:function(){return Boolean(document[n.fullscreenElement])}},element:{enumerable:!0,get:function(){return document[n.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(document[n.fullscreenEnabled])}}}),t}(),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,i=[].slice.call(t.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=function(n){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(n))};i.forEach(function(t){try{if(null!==t.getAttribute("data-vimeo-defer"))return;var i=fc(t);ec(gh(i),i,t).then(function(n){return io(n,t)}).catch(n)}catch(t){n(t)}})}(),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoPlayerResizeEmbeds_||(window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener("message",function(t){if(si(t.origin)&&t.data&&"spacechange"===t.data.event)for(var r=n.querySelectorAll("iframe"),i=0;i<r.length;i++)if(r[i].contentWindow===t.source){r[i].parentElement.style.paddingBottom="".concat(t.data.data[0].bottom,"px");break}}))}(),function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoSeoMetadataAppended||(window.VimeoSeoMetadataAppended=!0,window.addEventListener("message",function(t){var u,e,f,i,r,o;if(si(t.origin)&&(u=to(t.data),u&&"ready"===u.event))for(f=n.querySelectorAll("iframe"),i=0;i<f.length;i++)r=f[i],o=r.contentWindow===t.source,e=r.src,/^https:\/\/player\.vimeo\.com\/video\/\d+/.test(e)&&o&&new oc(r).callMethod("appendVideoMetadata",window.location.href)}))}());var sc="//www.youtube.com/player_api",wl=function(){function n(){_classCallCheck(this,n)}return _createClass(n,[{key:"load",value:function(n){if(window.YT&&al(window.YT.Player))return n();this.attachCallback(n);this.shouldLoad()&&oi("script",{src:"".concat(location.protocol).concat(sc)},document.head)}},{key:"shouldLoad",value:function(){return!(t=document,n="script",n?ui(t.querySelectorAll(n)):[]).some(function(n){return n.src.replace(/^https?:/,"")===sc});var t,n}},{key:"attachCallback",value:function(n){var t;ah(window.onYouTubeIframeAPIReady)||(t=window.onYouTubeIframeAPIReady);window.onYouTubeIframeAPIReady=function(){t&&t();n()}}}]),n}(),bl=function(){function n(t,i){_classCallCheck(this,n);this.event=cu();this.Splide=t;this.slide=i;this.container=function(n,t){return t?function(n,t){var i=n?ui(n.children):[];return t?i.filter(function(n){return function(n,t){return n instanceof HTMLElement&&(n.msMatchesSelector||n.matches).call(n,t)}(n,t)}):i}(n,t)[0]:n.firstElementChild}(this.slide,".".concat(lu));this.parent=this.container||this.slide;this.init();this.create();this.show();this.listen()}return _createClass(n,[{key:"init",value:function(){yu(this.slide,"".concat(er).concat(or));yu(this.container,"".concat(lu).concat(or))}},{key:"create",value:function(){this.video=oi("div",de,this.parent);this.playButton=oi("button",{"class":yl,type:"button","aria-label":this.Splide.options.i18n.playVideo||"Play Video"},this.video);this.wrapper=oi("div",vl,this.video);this.placeholder=oi("div",null,this.wrapper)}},{key:"listen",value:function(){var n=this;this.parent.addEventListener("click",function(){n.event.emit("click")})}},{key:"toggleButton",value:function(n){ph(this.playButton,n?"":"none")}},{key:"toggleWrapper",value:function(n){ph(this.wrapper,n?"":"none")}},{key:"getPlaceholder",value:function(){return this.placeholder}},{key:"hide",value:function(){this.toggleButton(!1);this.toggleWrapper(!0)}},{key:"show",value:function(){this.disabled||this.toggleButton(!0);this.toggleWrapper(!1)}},{key:"disable",value:function(n){this.disabled=n;n&&this.toggleButton(!1)}},{key:"on",value:function(n,t){this.event.on(n,t)}},{key:"destroy",value:function(){wh(this.slide,"".concat(er).concat(or));wh(this.container,"".concat(lu).concat(or));fi(this.video,function(n){n&&n.parentNode&&n.parentNode.removeChild(n)});this.event.destroy()}}]),n}(),kl=[["data-splide-youtube",function(n){function t(n,r){var u,f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return _classCallCheck(this,t),(u=i.call(this,n,r,f)).videoId=u.parseVideoId(r),u.videoId&&(u.state.set(2),(new wl).load(u.onAPIReady.bind(_assertThisInitialized(u)))),u}_inherits(t,n);var i=_createSuper(t);return _createClass(t,[{key:"onAPIReady",value:function(){var n=this.state,t=n.is(4);n.set(3);t&&this.play()}},{key:"createPlayer",value:function(n){var t=this.options,i=this.options.playerOptions,r=void 0===i?{}:i;return new YT.Player(this.target,{videoId:n,playerVars:ye({controls:t.hideControls?0:1,iv_load_policy:3,loop:t.loop?1:0,playlist:t.loop?n:void 0,rel:0,autoplay:0,mute:t.mute?1:0},r.youtube||{}),events:{onReady:this.onPlayerReady.bind(this),onStateChange:this.onPlayerStateChange.bind(this),onError:this.onError.bind(this)}})}},{key:"onPlayerReady",value:function(){_get(_getPrototypeOf(t.prototype),"onPlayerReady",this).call(this);this.player.setVolume(100*ke(this.options.volume,0,1))}},{key:"onPlayerStateChange",value:function(n){var t=YT.PlayerState,i=t.PLAYING,r=t.PAUSED,u=t.ENDED;switch(!0){case n.data===i:this.onPlay();break;case n.data===r:this.onPause();break;case n.data===u:this.onEnded()}}},{key:"playVideo",value:function(){this.player.playVideo()}},{key:"pauseVideo",value:function(){this.player.pauseVideo()}},{key:"parseVideoId",value:function(n){return 0===n.indexOf("http")?this.parseUrl(n):n}},{key:"parseUrl",value:function(n){var t,i=(t=function(n){return 0===n.indexOf("v=")},ui(_slicedToArray(n.split(/[#?]/),2)[1].split("&")).filter(t)[0]);return i&&i.replace("v=","")}}]),t}(ge)],["data-splide-vimeo",function(n){function t(n,r){var u,f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return _classCallCheck(this,t),(u=i.call(this,n,r,f)).state.set(3),u}_inherits(t,n);var i=_createSuper(t);return _createClass(t,[{key:"createPlayer",value:function(n){var i=this.options,r=this.options.playerOptions,u=void 0===r?{}:r,f=0===n.indexOf("http")?{url:n}:{id:+n},t=new oc(this.target,ye(f,{controls:!i.hideControls,loop:i.loop,muted:i.mute},u.vimeo||{}));return t.on("play",this.onPlay),t.on("pause",this.onPause),t.on("ended",this.onEnded),t.ready().then(this.onPlayerReady,this.onError),t.getMuted()||t.setVolume(ke(i.volume,0,1)),t}},{key:"playVideo",value:function(){var n=this;this.player.play().catch(function(){n.state.is(7)&&n.state.set(5)})}},{key:"pauseVideo",value:function(){this.player.pause()}}]),t}(ge)],["data-splide-html-video",function(n){function t(n,r){var u,f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return _classCallCheck(this,t),(u=i.call(this,n,r,f)).state.set(3),u}_inherits(t,n);var i=_createSuper(t);return _createClass(t,[{key:"createPlayer",value:function(n){var i=this.options,u=this.options.playerOptions,f=void 0===u?{}:u,r=oi("video",{src:n},this.target),t=r.addEventListener.bind(r);return ye(r,{controls:!i.hideControls,loop:i.loop,volume:ke(i.volume,0,1),muted:i.mute},f.htmlVideo||{}),t("play",this.onPlay),t("pause",this.onPause),t("ended",this.onEnded),t("loadeddata",this.onPlayerReady),t("error",this.onError),r}},{key:"playVideo",value:function(){var n=this.player.play();n&&n.catch(this.onError.bind(this))}},{key:"pauseVideo",value:function(){this.player.pause()}},{key:"onError",value:function(){this.state.is(7)?this.state.set(5):_get(_getPrototypeOf(t.prototype),"onError",this).call(this)}},{key:"destroy",value:function(){_get(_getPrototypeOf(t.prototype),"destroy",this).call(this);var i=this.player,n=i.addEventListener.bind(i);n("play",this.onPlay);n("pause",this.onPause);n("ended",this.onEnded);n("loadeddata",this.onPlayerReady)}}]),t}(ge)]],dl=function(){function n(t,i){_classCallCheck(this,n);this.Splide=t;this.slide=i;this.event=cu(t);this.options=pe(pe({},pl),this.Splide.options.video);this.createPlayer(i);this.player&&this.listen()}return _createClass(n,[{key:"createPlayer",value:function(n){var t=this;kl.forEach(function(i){var r=_slicedToArray(i,2),f=r[0],e=r[1],u=function(n,t){return n.getAttribute(t)}(n,f);u&&(t.ui=new bl(t.Splide,n),t.player=new e(t.ui.getPlaceholder(),u,t.options),t.ui.disable(t.options.disableOverlayUI))})}},{key:"listen",value:function(){var i=this,t=this.player,n=this.event;this.ui.on("click",this.onClick.bind(this));t.on("play",this.onPlay.bind(this));t.on("played",this.onPlayed.bind(this));t.on("pause",this.onPause.bind(this));t.on("paused",this.onPaused.bind(this));t.on("ended",this.onEnded.bind(this));t.on("error",this.onError.bind(this));n.on(["move","scroll"],this.pause.bind(this));n.on(bh,this.onVideoClick.bind(this));n.on("drag",function(){n.off(ce);n.on(ce,function(){i.pause();n.off(ce)})});this.options.autoplay&&n.on(["mounted","moved","scrolled"],this.onAutoplayRequested.bind(this))}},{key:"onClick",value:function(){this.isPaused()?this.play():this.pause();this.event.emit(bh,this)}},{key:"onVideoClick",value:function(n){this!==n&&this.pause()}},{key:"onPlay",value:function(){this.ui.hide()}},{key:"onPlayed",value:function(){this.ui.hide();this.togglePlaying(!0);this.event.emit("video:play",this)}},{key:"onPause",value:function(){this.ui.show()}},{key:"onPaused",value:function(){this.togglePlaying(!1);this.event.emit("video:pause",this)}},{key:"onEnded",value:function(){this.togglePlaying(!1);this.event.emit("video:ended",this)}},{key:"onError",value:function(){yu(this.slide,"is-error");this.ui.show();this.event.emit("video:error",this)}},{key:"onAutoplayRequested",value:function(){this.Splide.Components.Slides.getAt(this.Splide.index).slide===this.slide&&this.play()}},{key:"togglePlaying",value:function(n){vu(this.Splide.root,"is-playing",n)}},{key:"play",value:function(){this.player&&!this.disabled&&this.player.play()}},{key:"pause",value:function(){this.player&&!this.disabled&&this.player.pause()}},{key:"destroy",value:function(){this.player&&(this.ui.destroy(),this.player.destroy());this.disable(!1)}},{key:"disable",value:function(n){this.disabled=n;vu(this.Splide.root,"is-video-disabled",n)}},{key:"isPaused",value:function(){return this.player.isPaused()}}]),n}();var bu=function(){document.expandedElement&&document.expandedElement.closeFn(document.expandedElement.element,document.expandedElement.trigger)},uo=function(n,t){var i=n.scrollHeight,r=n.style.transition;n.style.transition="";t.setAttribute("aria-expanded",!1);t.classList.remove("expanded"),function(){var n=document.querySelector(".header__searchboxContainer"),t=document.querySelector("#topicsToggle");n.hasAttribute("style")&&!t.classList.contains("expanded")&&(n.children[0].removeAttribute("style"),setTimeout(function(){n.removeAttribute("style")},250))}();requestAnimationFrame(function(){n.style.height="".concat(i,"px");n.style.transition=r;requestAnimationFrame(function(){n.style.height="0px"})});n.addEventListener("transitionend",function t(){n.removeEventListener("transitionend",t);n.removeAttribute("style");n.setAttribute("hidden","")})},fo=function(n,t){var i=n.scrollHeight;t.setAttribute("aria-expanded",!0);t.classList.add("expanded");n.style.height="".concat(i,"px");n.removeAttribute("hidden");n.addEventListener("transitionend",function t(){n.removeEventListener("transitionend",t);n.style.height=""})},ku=function(n,t){document.expandedElement="",function(){var n=document.querySelector("#overlay");n&&(n.style.opacity=0,setTimeout(function(){n.remove()},100),n.removeEventListener("click",null))}();uo(n,t)},hc=function(n,t,i){bu(),function(n,t,i){document.expandedElement={element:n,trigger:t,closeFn:i}}(n,t,ku);fo(n,t),function(n,t,i){var r=document.createElement("div");r.dataset.triggerid=n;r.setAttribute("id","overlay");i&&(r.style.zIndex=i);document.body.appendChild(r);setTimeout(function(){document.querySelector("#overlay").style.opacity=""},1);r.addEventListener("click",function(){!function(n,t){var i=document.querySelector("#".concat(n));t(document.querySelector("#".concat(i.getAttribute("aria-controls"))),i,!0)}(n,t)})}(t.id,ku,i)};var cr=window.location.href,du=document.querySelector('meta[property="og:title"]').content,vc=document.querySelector('meta[name="twitter:description"]').content,ra=document.querySelector('meta[name="twitter:site"]').content,ua={facebook:{shareUrl:"https://www.facebook.com/sharer/sharer.php",params:{u:cr,hashtag:"hashtag",quote:du}},linkedin:{shareUrl:"https://www.linkedin.com/shareArticle",params:{url:cr,mini:!0}},twitter:{shareUrl:"https://twitter.com/intent/tweet",params:{text:du,url:cr,via:ra}},email:{shareUrl:"mailto:",params:{subject:du,body:"".concat(vc,"\n").concat(cr)}}};document.addEventListener("DOMContentLoaded",function(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);Element.prototype.closest||(Element.prototype.closest=function(n){var t=this;do{if(Element.prototype.matches.call(t,n))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null});n.init();yc(),function(){for(var n=document.querySelectorAll(".splide"),i=function(t){var r=n[t].classList.contains("splide--multi-tile")?2:1,i=new su(n[t],{drag:!0,gap:"5px",keyboard:!1,slideFocus:!1,wheel:!1,perPage:r,perMove:1,focus:"center",updateOnMove:!0});i.mount({Video:gl});n[t].addEventListener("click",function(n){var t=n.target.closest(".splide__slide");t&&t.classList.contains("is-prev")&&i.go("<");t&&t.classList.contains("is-next")&&i.go(">")});i.on("active",function(n){var i={slider:t+1,index:n.index+1,totalSlides:n.slide.closest(".splide__list").childElementCount};document.events.trigger("carouselMoved",i)})},t=0;t<n.length;t+=1)i(t)}(),function(){function t(){n.style.right="".concat(r.offsetLeft,"px")}var n=document.getElementById("back-to-top"),r=document.querySelector(".bux-container"),i;n&&(n.addEventListener("click",function(){document.body.scrollTop=0;document.documentElement.scrollTop=0;document.getElementById("top").focus({preventScroll:!0})}),t(),i=so(t,25),window.addEventListener("resize",i),window.onscroll=function(){document.body.scrollTop>1e3||document.documentElement.scrollTop>1e3?n.classList.add("active"):n.classList.remove("active"),function(){var i=window.innerHeight,t=document.querySelector(".footer__osu-logo");(window.innerWidth<640?t.getBoundingClientRect().top+12:t.getBoundingClientRect().bottom+24)-i<0?n.classList.add("anchored"):n.classList.remove("anchored")}()})}(),function(){var n=document.querySelectorAll(".allStories__toggle");n.length&&n.forEach(function(n,t){cc(n,t+1);e.on("windowResized",function(){cc(n)});n.addEventListener("click",na)})}(),function(){var n=document.querySelector("#aboutToggle"),t=document.querySelector("#aboutDropdown"),i=document.querySelector("#topicsToggle"),r=document.querySelector("#topicsDropdown");!function(){var n=document.querySelector("#headerSearchbox"),t=document.querySelector("#searchButton"),i=document.querySelector(".header__searchboxContainer");n.addEventListener("input",function(){n.value.replace(/\s/g,"").length?(t.removeAttribute("disabled"),i.removeAttribute("onsubmit")):(i.setAttribute("onsubmit","return false"),t.setAttribute("disabled",!0))})}();ac();e.on("windowResized",function(){ac()});n.addEventListener("click",ta);i.addEventListener("click",ia);e.on("escapePressed",function(){t.getAttribute("hidden")||bu();r.getAttribute("hidden")||bu()})}(),function(){for(var t=document.querySelector("#sharePageBtn"),i=document.querySelectorAll("[data-sharer]"),r=i.length,n=0;n<r;n+=1)i[n].addEventListener("click",ea);t&&navigator.share&&(t.removeAttribute("hidden"),t.addEventListener("click",fa))}(),function(){var n=document.querySelector("#emailFormTrigger"),t=document.getElementById("emailSubscribeBanner");"true"===function(){for(var i,t=window.location.search.substring(1).split("&"),n=0;n<t.length;n+=1)if(i=t[n].split("="),"subscribe"===i[0])return i[1];return!1}()&&(null!=n&&n.click(),function(){if("URLSearchParams"in window){var t=window.location.pathname,i=window.location.search,n=new URLSearchParams(i);n.delete("subscribe");t+=n.toString().length?"?".concat(n):"";window.history.replaceState({},"",t)}}());null!=n&&n.addEventListener("click",function(){var t=document.querySelector(".emailSubscribe__emailInputContainer #email"),n=document.querySelector(".emailSubscribe__modalEmail");n&&(n.value=t.value.trim(),function(n){n.focus()}(n))});null==t||t.addEventListener("submit",function(t){t.preventDefault();n.click()})}(),function(){var n=window.innerWidth,t=so(function(){window.innerWidth!==n&&(e.trigger("windowResized"),n=window.innerWidth)},250);window.addEventListener("resize",t);e.on("windowResized",bu);oo()&&document.body.classList.add("pageEditor");document.onkeydown=function(n){27===(n||window.event).keyCode&&e.trigger("escapedPressed")},function(){var n=document.querySelector("body");window.innerWidth>n.clientWidth+5?(n.classList.add("has-scrollbar"),n.setAttribute("style","--scroll-bar: ".concat(window.innerWidth-n.clientWidth,"px"))):n.classList.remove("has-scrollbar")}()}(),function(){function t(n){for(var i=document.querySelectorAll(".cookieBlock-".concat(n)),t=0;t<i.length;t+=1)i[t].classList.remove("cookieBlock-".concat(n))}if(document.querySelectorAll(".noCookieBlock").length)for(var n=0;n<3;n+=1)t(n+2);document.body.addEventListener("cookie:update",function(){var n=OptanonActiveGroups.replaceAll("C000","").split(",");n.pop();n.forEach(function(n){t(n)})})}()})}()