1var lr=Object.defineProperty;var cr=(s,e,t)=>e in s?lr(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var Z=(s,e,t)=>cr(s,typeof e!="symbol"?e+"":e,t);import{a as $,m as Y,g as je,l as P,e as Is,t as hr,c as Ie,b as Si,d as ur,D as Ds}from"./index-dGdZwZSJ.js";/*! modernizr 3.6.0 (Custom Build) | MIT * 2 * https://modernizr.com/download/?-cssanimations-input-inputtypes-placeholder-addtest-mq-setclasses-teststyles-cssclassprefix:mdn- !*/(function(s,e,t){function i(b,w){return typeof b===w}function r(){var b,w,E,A,I,W,j;for(var te in k)if(k.hasOwnProperty(te)){if(b=[],w=k[te],w.name&&(b.push(w.name.toLowerCase()),w.options&&w.options.aliases&&w.options.aliases.length))for(E=0;E<w.options.aliases.length;E++)b.push(w.options.aliases[E].toLowerCase());for(A=i(w.fn,"function")?w.fn():w.fn,I=0;I<b.length;I++)W=b[I],j=W.split("."),j.length===1?O[j[0]]=A:(!O[j[0]]||O[j[0]]instanceof Boolean||(O[j[0]]=new Boolean(O[j[0]])),O[j[0]][j[1]]=A),T.push((A?"":"no-")+j.join("-"))}}function n(b){var w=H.className,E=O._config.classPrefix||"";if(J&&(w=w.baseVal),O._config.enableJSClass){var A=new RegExp("(^|\\s)"+E+"no-js(\\s|$)");w=w.replace(A,"$1"+E+"js$2")}O._config.enableClasses&&(w+=" "+E+b.join(" "+E),J?H.className.baseVal=w:H.className=w)}function o(b,w){if(typeof b=="object")for(var E in b)X(b,E)&&o(E,b[E]);else{b=b.toLowerCase();var A=b.split("."),I=O[A[0]];if(A.length==2&&(I=I[A[1]]),typeof I<"u")return O;w=typeof w=="function"?w():w,A.length==1?O[A[0]]=w:(!O[A[0]]||O[A[0]]instanceof Boolean||(O[A[0]]=new Boolean(O[A[0]])),O[A[0]][A[1]]=w),n([(w&&w!=0?"":"no-")+A.join("-")]),O._trigger(b,w)}return O}function c(){return typeof e.createElement!="function"?e.createElement(arguments[0]):J?e.createElementNS.call(e,"http://www.w3.org/2000/svg",arguments[0]):e.createElement.apply(e,arguments)}function a(){var b=e.body;return b||(b=c(J?"svg":"body"),b.fake=!0),b}function l(b,w,E,A){var I,W,j,te,re="modernizr",F=c("div"),U=a();if(parseInt(E,10))for(;E--;)j=c("div"),j.id=A?A[E]:re+(E+1),F.appendChild(j);return I=c("style"),I.type="text/css",I.id="s"+re,(U.fake?U:F).appendChild(I),U.appendChild(F),I.styleSheet?I.styleSheet.cssText=b:I.appendChild(e.createTextNode(b)),F.id=re,U.fake&&(U.style.background="",U.style.overflow="hidden",te=H.style.overflow,H.style.overflow="hidden",H.appendChild(U)),W=w(F,b),U.fake?(U.parentNode.removeChild(U),H.style.overflow=te,H.offsetHeight):F.parentNode.removeChild(F),!!W}function h(b,w){return!!~(""+b).indexOf(w)}function u(b){return b.replace(/([a-z])-([a-z])/g,function(w,E,A){return E+A.toUpperCase()}).replace(/^-/,"")}function y(b,w){return function(){return b.apply(w,arguments)}}function d(b,w,E){var A;for(var I in b)if(b[I]in w)return E===!1?b[I]:(A=w[b[I]],i(A,"function")?y(A,E||w):A);return!1}function p(b){return b.replace(/([A-Z])/g,function(w,E){return"-"+E.toLowerCase()}).replace(/^ms-/,"-ms-")}function g(b,w,E){var A;if("getComputedStyle"in s){A=getComputedStyle.call(s,b,w);var I=s.console;if(A!==null)A=A.getPropertyValue(E);else if(I){var W=I.error?"error":"log";I[W].call(I,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else A=b.currentStyle&&b.currentStyle[E];return A}function m(b,w){var E=b.length;if("CSS"in s&&"supports"in s.CSS){for(;E--;)if(s.CSS.supports(p(b[E]),w))return!0;return!1}if("CSSSupportsRule"in s){for(var A=[];E--;)A.push("("+p(b[E])+":"+w+")");return A=A.join(" or "),l("@supports ("+A+") { #modernizr { position: absolute; } }",function(I){return g(I,null,"position")=="absolute"})}return t}function B(b,w,E,A){function I(){j&&(delete L.style,delete L.modElem)}if(A=i(A,"undefined")?!1:A,!i(E,"undefined")){var W=m(b,E);if(!i(W,"undefined"))return W}for(var j,te,re,F,U,Q=["modernizr","tspan","samp"];!L.style&&Q.length;)j=!0,L.modElem=c(Q.shift()),L.style=L.modElem.style;for(re=b.length,te=0;re>te;te++)if(F=b[te],U=L.style[F],h(F,"-")&&(F=u(F)),L.style[F]!==t){if(A||i(E,"undefined"))return I(),w=="pfx"?F:!0;try{L.style[F]=E}catch{}if(L.style[F]!=U)return I(),w=="pfx"?F:!0}return I(),!1}function f(b,w,E,A,I){var W=b.charAt(0).toUpperCase()+b.slice(1),j=(b+" "+le.join(W+" ")+W).split(" ");return i(w,"string")||i(w,"undefined")?B(j,w,A,I):(j=(b+" "+qe.join(W+" ")+W).split(" "),d(j,w,E))}function S(b,w,E){return f(b,t,t,w,E)}var T=[],k=[],_={_version:"3.6.0",_config:{classPrefix:"mdn-",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(b,w){var E=this;setTimeout(function(){w(E[b])},0)},addTest:function(b,w,E){k.push({name:b,fn:w,options:E})},addAsyncTest:function(b){k.push({name:null,fn:b})}},O=function(){};O.prototype=_,O=new O;var X,H=e.documentElement,J=H.nodeName.toLowerCase()==="svg";(function(){var b={}.hasOwnProperty;X=i(b,"undefined")||i(b.call,"undefined")?function(w,E){return E in w&&i(w.constructor.prototype[E],"undefined")}:function(w,E){return b.call(w,E)}})(),_._l={},_.on=function(b,w){this._l[b]||(this._l[b]=[]),this._l[b].push(w),O.hasOwnProperty(b)&&setTimeout(function(){O._trigger(b,O[b])},0)},_._trigger=function(b,w){if(this._l[b]){var E=this._l[b];setTimeout(function(){var A;for(A=0;A<E.length;A++)E[A](w)},0),delete this._l[b]}},O._q.push(function(){_.addTest=o}),O.addTest("placeholder","placeholder"in c("input")&&"placeholder"in c("textarea"));var x=c("input"),z="autocomplete autofocus list placeholder max min multiple pattern required step".split(" "),N={};O.input=function(b){for(var w=0,E=b.length;E>w;w++)N[b[w]]=b[w]in x;return N.list&&(N.list=!(!c("datalist")||!s.HTMLDataListElement)),N}(z);var q="search tel url email datetime date month week time datetime-local number range color".split(" "),D={};O.inputtypes=function(b){for(var w,E,A,I=b.length,W="1)",j=0;I>j;j++)x.setAttribute("type",w=b[j]),A=x.type!=="text"&&"style"in x,A&&(x.value=W,x.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(w)&&x.style.WebkitAppearance!==t?(H.appendChild(x),E=e.defaultView,A=E.getComputedStyle&&E.getComputedStyle(x,null).WebkitAppearance!=="textfield"&&x.offsetHeight!==0,H.removeChild(x)):/^(search|tel)$/.test(w)||(A=/^(url|email)$/.test(w)?x.checkValidity&&x.checkValidity()===!1:x.value!=W)),D[b[j]]=!!A;return D}(q);var M=function(){var b=s.matchMedia||s.msMatchMedia;return b?function(w){var E=b(w);return E&&E.matches||!1}:function(w){var E=!1;return l("@media "+w+" { #modernizr { position: absolute; } }",function(A){E=(s.getComputedStyle?s.getComputedStyle(A,null):A.currentStyle).position=="absolute"}),E}}();_.mq=M;var ee=(_.testStyles=l,"Moz O ms Webkit"),le=_._config.usePrefixes?ee.split(" "):[];_._cssomPrefixes=le;var qe=_._config.usePrefixes?ee.toLowerCase().split(" "):[];_._domPrefixes=qe;var v={elem:c("modernizr")};O._q.push(function(){delete v.elem});var L={style:v.elem.style};O._q.unshift(function(){delete L.style}),_.testAllProps=f,_.testAllProps=S,O.addTest("cssanimations",S("animationName","a",!0)),r(),n(T),delete _.addTest,delete _.addAsyncTest;for(var R=0;R<O._q.length;R++)O._q[R]();s.Modernizr=O})(window,document);/*! 3 * Detectizr v2.2.0 4 * http://barisaydinoglu.github.com/Detectizr/ 5 * 6 * Written by Baris Aydinoglu (http://baris.aydinoglu.info) - Copyright 2012 7 * Released under the MIT license 8 * 9 * Date: 2015-09-28T21:37Z 10 */window.Detectizr=function(s,e,t,i){var r={},n=s.Modernizr,o=["tv","tablet","mobile","desktop"],c={addAllFeaturesAsClass:!1,detectDevice:!0,detectDeviceModel:!0,detectScreen:!0,detectOS:!0,detectBrowser:!0,detectPlugins:!0},a=[{name:"adobereader",substrs:["Adobe","Acrobat"],progIds:["AcroPDF.PDF","PDF.PDFCtrl.5"]},{name:"flash",substrs:["Shockwave Flash"],progIds:["ShockwaveFlash.ShockwaveFlash.1"]},{name:"wmplayer",substrs:["Windows Media"],progIds:["wmplayer.ocx"]},{name:"silverlight",substrs:["Silverlight"],progIds:["AgControl.AgControl"]},{name:"quicktime",substrs:["QuickTime"],progIds:["QuickTime.QuickTime"]}],l=/[\t\r\n]/g,h=t.documentElement,u,y;function d(x,z){var N,q,D;if(arguments.length>2)for(N=1,q=arguments.length;N<q;N+=1)d(x,arguments[N]);else for(D in z)z.hasOwnProperty(D)&&(x[D]=z[D]);return x}function p(x){return r.browser.userAgent.indexOf(x)>-1}function g(x){return x.test(r.browser.userAgent)}function m(x){return x.exec(r.browser.userAgent)}function B(x){return x.replace(/^\s+|\s+$/g,"")}function f(x){return x===null||x===i?"":String(x).replace(/((\s|\-|\.)+[a-z0-9])/g,function(z){return z.toUpperCase().replace(/(\s|\-|\.)/g,"")})}function S(x,z){var N=z||"",q=x.nodeType===1&&(x.className?(" "+x.className+" ").replace(l," "):"");if(q){for(;q.indexOf(" "+N+" ")>=0;)q=q.replace(" "+N+" "," ");x.className=z?B(q):""}}function T(x,z,N){x&&(x=f(x),z&&(z=f(z),k(x+z,!0),N&&k(x+z+"_"+N,!0)))}function k(x,z){x&&n&&(c.addAllFeaturesAsClass?n.addTest(x,z):(z=typeof z=="function"?z():z,z?n.addTest(x,!0):(delete n[x],S(h,x))))}function _(x,z){x.version=z;var N=z.split(".");N.length>0?(N=N.reverse(),x.major=N.pop(),N.length>0?(x.minor=N.pop(),N.length>0?(N=N.reverse(),x.patch=N.join(".")):x.patch="0"):x.minor="0"):x.major="0"}function O(){s.clearTimeout(u),u=s.setTimeout(function(){y=r.device.orientation,s.innerHeight>s.innerWidth?r.device.orientation="portrait":r.device.orientation="landscape",k(r.device.orientation,!0),y!==r.device.orientation&&k(y,!1)},10)}function X(x){var z=e.plugins,N,q,D,M,ee;
10for(M=z.length-1;M>=0;M--){for(N=z[M],q=N.name+N.description,D=0,ee=x.length;ee>=0;ee--)q.indexOf(x[ee])!==-1&&(D+=1);if(D===x.length)return!0}return!1}function H(x){var z;for(z=x.length-1;z>=0;z--)try{new ActiveXObject(x[z])}catch{}return!1}function J(x){var z,N,q,D,M,ee,le;if(c=d({},c,x||{}),c.detectDevice){for(r.device={type:"",model:"",orientation:""},q=r.device,g(/googletv|smarttv|smart-tv|internet.tv|netcast|nettv|appletv|boxee|kylo|roku|dlnadoc|roku|pov_tv|hbbtv|ce\-html/)?(q.type=o[0],q.model="smartTv"):g(/xbox|playstation.3|wii/)?(q.type=o[0],q.model="gameConsole"):g(/ip(a|ro)d/)?(q.type=o[1],q.model="ipad"):g(/tablet/)&&!g(/rx-34/)||g(/folio/)?(q.type=o[1],q.model=String(m(/playbook/)||"")):g(/linux/)&&g(/android/)&&!g(/fennec|mobi|htc.magic|htcX06ht|nexus.one|sc-02b|fone.945/)?(q.type=o[1],q.model="android"):g(/kindle/)||g(/mac.os/)&&g(/silk/)?(q.type=o[1],q.model="kindle"):g(/gt-p10|sc-01c|shw-m180s|sgh-t849|sch-i800|shw-m180l|sph-p100|sgh-i987|zt180|htc(.flyer|\_flyer)|sprint.atp51|viewpad7|pandigital(sprnova|nova)|ideos.s7|dell.streak.7|advent.vega|a101it|a70bht|mid7015|next2|nook/)||g(/mb511/)&&g(/rutem/)?(q.type=o[1],q.model="android"):g(/bb10/)?(q.type=o[1],q.model="blackberry"):(q.model=m(/iphone|ipod|android|blackberry|opera mini|opera mobi|skyfire|maemo|windows phone|palm|iemobile|symbian|symbianos|fennec|j2me/),q.model!==null?(q.type=o[2],q.model=String(q.model)):(q.model="",g(/bolt|fennec|iris|maemo|minimo|mobi|mowser|netfront|novarra|prism|rx-34|skyfire|tear|xv6875|xv6975|google.wireless.transcoder/)||g(/opera/)&&g(/windows.nt.5/)&&g(/htc|xda|mini|vario|samsung\-gt\-i8000|samsung\-sgh\-i9/)?q.type=o[2]:g(/windows.(nt|xp|me|9)/)&&!g(/phone/)||g(/win(9|.9|nt)/)||g(/\(windows 8\)/)?q.type=o[3]:g(/macintosh|powerpc/)&&!g(/silk/)?(q.type=o[3],q.model="mac"):g(/linux/)&&g(/x11/)||g(/solaris|sunos|bsd/)||g(/cros/)?q.type=o[3]:g(/bot|crawler|spider|yahoo|ia_archiver|covario-ids|findlinks|dataparksearch|larbin|mediapartners-google|ng-search|snappy|teoma|jeeves|tineye/)&&!g(/mobile/)?(q.type=o[3],q.model="crawler"):q.type=o[2])),z=0,N=o.length;z<N;z+=1)k(o[z],q.type===o[z]);c.detectDeviceModel&&k(f(q.model),!0)}if(c.detectScreen&&(q.screen={},n&&n.mq&&(n.mq("only screen and (max-width: 240px)")?(q.screen.size="veryVerySmall",k("veryVerySmallScreen",!0)):n.mq("only screen and (max-width: 320px)")?(q.screen.size="verySmall",k("verySmallScreen",!0)):n.mq("only screen and (max-width: 480px)")&&(q.screen.size="small",k("smallScreen",!0)),(q.type===o[1]||q.type===o[2])&&n.mq("only screen and (-moz-min-device-pixel-ratio: 1.3), only screen and (-o-min-device-pixel-ratio: 2.6/2), only screen and (-webkit-min-device-pixel-ratio: 1.3), only screen and (min-device-pixel-ratio: 1.3), only screen and (min-resolution: 1.3dppx)")&&(q.screen.resolution="high",k("highresolution",!0))),q.type===o[1]||q.type===o[2]?(s.onresize=function(qe){O()},O()):(q.orientation="landscape",k(q.orientation,!0))),c.detectOS&&(r.os={},D=r.os,q.model!==""&&(q.model==="ipad"||q.model==="iphone"||q.model==="ipod"?(D.name="ios",_(D,(g(/os\s([\d_]+)/)?RegExp.$1:"").replace(/_/g,"."))):q.model==="android"?(D.name="android",_(D,g(/android\s([\d\.]+)/)?RegExp.$1:"")):q.model==="blackberry"?(D.name="blackberry",_(D,g(/version\/([^\s]+)/)?RegExp.$1:"")):q.model==="playbook"&&(D.name="blackberry",_(D,g(/os ([^\s]+)/)?RegExp.$1.replace(";",""):""))),D.name||(p("win")||p("16bit")?(D.name="windows",p("windows nt 10")?_(D,"10"):p("windows nt 6.3")?_(D,"8.1"):p("windows nt 6.2")||g(/\(windows 8\)/)?_(D,"8"):p("windows nt 6.1")?_(D,"7"):p("windows nt 6.0")?_(D,"vista"):p("windows nt 5.2")||p("windows nt 5.1")||p("windows xp")?_(D,"xp"):p("windows nt 5.0")||p("windows 2000")?_(D,"2k"):p("winnt")||p("windows nt")?_(D,"nt"):p("win98")||p("windows 98")?_(D,"98"):(p("win95")||p("windows 95"))&&_(D,"95")):p("mac")||p("darwin")?(D.name="mac os",p("68k")||p("68000")?_(D,"68k"):p("ppc")||p("powerpc")?_(D,"ppc"):p("os x")&&_(D,(g(/os\sx\s([\d_]+)/)?RegExp.$1:"os x").replace(/_/g,"."))):p("webtv")?D.name="webtv":p("x11")||p("inux")?D.name="linux":p("sunos")?D.name="sun":p("irix")?D.name="irix":p("freebsd")?D.name="freebsd":p("bsd")&&(D.name="bsd")),D.name&&(k(D.name,!0),D.major&&(T(D.name,D.major),D.minor&&T(D.name,D.major,D.minor))),g(/\sx64|\sx86|\swin64|\swow64|\samd64/)?D.addressRegisterSize="64bit":D.addressRegisterSize="32bit",k(D.addressRegisterSize,!0)),c.detectBrowser&&(M=r.browser,!g(/opera|webtv/)&&(g(/msie\s([\d\w\.]+)/)||p("trident"))?(M.engine="trident",M.name="ie",!s.addEventListener&&t.documentMode&&t.documentMode===7?_(M,"8.compat"):g(/trident.*rv[ :](\d+)\./)?_(M,RegExp.$1):_(M,g(/trident\/4\.0/)?"8":RegExp.$1)):p("firefox")?(M.engine="gecko",M.name="firefox",_(M,g(/firefox\/([\d\w\.]+)/)?RegExp.$1:"")):p("gecko/")?M.engine="gecko":p("opera")?(M.name="opera",M.engine="presto",_(M,g(/version\/([\d\.]+)/)?RegExp.$1:g(/opera(\s|\/)([\d\.]+)/)?RegExp.$2:"")):p("konqueror")?M.name="k
10onqueror":p("edge")?(M.engine="webkit",M.name="edge",_(M,g(/edge\/([\d\.]+)/)?RegExp.$1:"")):p("chrome")?(M.engine="webkit",M.name="chrome",_(M,g(/chrome\/([\d\.]+)/)?RegExp.$1:"")):p("iron")?(M.engine="webkit",M.name="iron"):p("crios")?(M.name="chrome",M.engine="webkit",_(M,g(/crios\/([\d\.]+)/)?RegExp.$1:"")):p("applewebkit/")?(M.name="safari",M.engine="webkit",_(M,g(/version\/([\d\.]+)/)?RegExp.$1:"")):p("mozilla/")&&(M.engine="gecko"),M.name&&(k(M.name,!0),M.major&&(T(M.name,M.major),M.minor&&T(M.name,M.major,M.minor))),k(M.engine,!0),M.language=e.userLanguage||e.language,k(M.language,!0)),c.detectPlugins){for(M.plugins=[],z=a.length-1;z>=0;z--)ee=a[z],le=!1,s.ActiveXObject?le=H(ee.progIds):e.plugins&&(le=X(ee.substrs)),le&&(M.plugins.push(ee.name),k(ee.name,!0));e.javaEnabled()&&(M.plugins.push("java"),k("java",!0))}}return r.detect=function(x){return J(x)},r.init=function(){r!==i&&(r.browser={userAgent:(e.userAgent||e.vendor||s.opera).toLowerCase()},r.detect())},r.init(),r}(window,window.navigator,window.document);let dr=class{constructor(e){if(this.toggler=e,this.id=this.toggler.dataset.accordionToggler,this.id)switch(this.id){case"next":this.content=this.toggler.nextElementSibling;break;default:this.content=document.querySelector(`[data-accordion-content="${this.id}"]`);break}if(!this.id||!this.content)return console.error("no accordion content detected");this.animate=this.content.dataset.accordionAnimate||!1,this.isOpen=this.toggler.getAttribute("aria-expanded")==="true",this.isOpen||this.close(),this.bind()}bind(){this.toggle=this.toggle.bind(this),this.toggler.addEventListener("click",this.toggle)}destroy(){this.toggler.removeEventListener("click",this.toggle)}toggle(e){e&&e.preventDefault(),this[this.isOpen?"close":"open"]()}open(){this.animate||(console.info("foo"),this.content.style.display="block"),this.content.classList.add("is-visible"),this.toggler.classList.add("is-open"),this.toggler.setAttribute("aria-expanded","true"),this.isOpen=!0}close(){this.animate||(this.content.style.display="none"),this.content.classList.remove("is-visible"),this.toggler.classList.remove("is-open"),this.toggler.setAttribute("aria-expanded","false"),this.isOpen=!1}};class fr{constructor(e){this.el=e,this.trigger=this.el.querySelector("[data-toggle]"),this.hidden=this.el.querySelector("[data-hidden]"),this.icon=this.el.querySelector("[data-icon]"),this.isOpen=!1,this.bind()}bind(){this.trigger.addEventListener("click",this.toggle.bind(this))}toggle(){this.isOpen?this.close():this.open()}open(){this.icon.innerText="-",this.hidden.classList.add("visible"),this.isOpen=!0}close(){this.icon.innerText="+",this.hidden.classList.remove("visible"),this.isOpen=!1}}class pr{constructor(e){this.isOpen=!1,this.el=e,this.container=document.querySelector("#filteredList"),this.bind()}bind(){this.el&&this.container.addEventListener("click",this.toggle.bind(this)),this.onOutsideClick=this.onOutsideClick.bind(this)}toggle(e){if(this.calendar=document.querySelector(".u-article-calendar"),this.el=document.querySelector("[data-article-calendar]"),e.target.parentNode.classList.contains("Day")){this.close();return}else if(!this.el.contains(e.target))return;this.isOpen?this.close():this.open()}open(){this.calendar.style.display="block",$({targets:this.calendar,opacity:1,easing:"easeOutQuad",duration:350,complete:()=>{this.isOpen=!0,document.addEventListener("click",this.onOutsideClick)}})}close(){this.isOpen=!1,document.removeEventListener("click",this.onOutsideClick),$({targets:this.calendar,opacity:0,easing:"easeOutQuad",duration:350,complete:()=>{this.calendar.style.display="none"}})}onOutsideClick(e){this.container.contains(e.target)||this.close()}}class gr{constructor(){this.bind()}bind(){document.addEventListener("click",this.click.bind(this))}click(e){let t=e.target;if(t.nodeName==="A"&&!t.dataset.clickableTarget)return;for(;t&&(!t.dataset||t.dataset.clickable===void 0);)t=t.parentNode;if(!t)return!1;const i=t.querySelector("[data-clickable-target]");if(!i||!i.href)return!1;e.preventDefault();let r=i.hasAttribute("target");(e.which>1||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)&&(r=!0),r?window.open(i.href):window.location=i.href}}class vr{constructor(e){this.root=e;const t=this;Y.register("nav",{match(){t.init()},unmatch(){t.destroy()}})}init(){console.info("init"),document.querySelector(".u-nav-header__bar").appendChild(this.root)}destroy(){console.info("destroy"),document.querySelector(".u-courses-header-outer").appendChild(this.root)}}class mr{constructor(e){this.el=e,this.isOpen=!this.el.classList.contains("is-collapsed"),this.tbody=this.el.querySelector("tbody"),this.div=this.el.nextElementSibling,this.setContentElement()}setContentElement(){this.el.tagName==="TABLE"?(this.el.querySelector("caption").addEventListener("click",this.toggle.bind(this)),this.content=this.tbody):(this.el.addEventListener("click",this.toggle.bind(this)),this.content=this.div)}toggle(){this.isOpen?this.close():this.open()}open(){this.content.style.display="table",this.isOpen=!0,this.el.classList.remove("is-collapsed")}close(){this.content.style.display="none",this.el.classList.add("is-collapsed"),this.isOpen=!1}}let V,he,wi,ye,ue=0;class yr{constructor(e){console.log("ð Experience",this),this.root=e,this.nav=document.querySelectorAll(".u-nav-portal, .u-nav-header"),this.container=this.root.querySelector(".u-experience__c
10ontainer"),this.canvas=this.root.querySelector("canvas"),this.trigger=this.root.querySelector("[data-experience-trigger]"),this.close=this.root.querySelector("[data-experience-close]"),this.sources=[...window.experience],this.legend=this.root.querySelector("[data-experience-legend]"),this.tip=this.root.querySelector(".u-experience__container__tip"),this.legendTitle=this.legend.querySelector(".title"),this.legendSubtitle=this.legend.querySelector(".subtitle"),this.legendLink=this.legend.querySelector("a"),this.legendLinkLabel=this.legendLink.querySelector(".split-lines-inner"),this.isActive=!1,this.scrollCoef=.005,this.hasOnboarded=sessionStorage.getItem("experience-onboarding-played"),this.angle=0,this.radius=150,this.diameter=Math.PI*2*this.sources.length,V=window.THREE,he=window.gsap,wi=[new V.Color("rgb(0, 112, 127)"),new V.Color("rgb(44, 163, 73)"),new V.Color("rgb(0, 190, 219)")],ye=Y.isLessThan("medium")?window.experience.length*6:window.experience.length*4,this.init()}init(){this.detectBrowser(),this.bind(),this.initEvents(),this.initScene(),this.hasOnboarded&&document.querySelector(".u-museum").classList.add("onboarded")}detectBrowser(){Detectizr.browser.name==="firefox"&&Detectizr.browser.major<88&&(this.scrollCoef=.2),this.isMobile=Detectizr.device.type==="mobile",this.isMobile&&(this.scrollCoef=.1)}bind(){this.activate=this.activate.bind(this),this.deactivate=this.deactivate.bind(this),this.onResize=this.onResize.bind(this),this.onMouseMove=this.onMouseMove.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onClick=this.onClick.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.onWheel=this.onWheel.bind(this),this.onLegendClick=this.onLegendClick.bind(this),this.tick=this.tick.bind(this),this.selectObject=this.selectObject.bind(this),this.unselect=this.unselect.bind(this)}initEvents(){this.trigger.addEventListener("click",this.activate),this.close.addEventListener("click",this.deactivate),this.legendLink.addEventListener("click",this.onLegendClick),window.addEventListener("resize",this.onResize),window.addEventListener("keyup",this.onKeyUp),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("click",this.onClick),document.addEventListener("wheel",this.onWheel,{passive:!1}),document.addEventListener("touchstart",this.onTouchStart,{passive:!1}),document.addEventListener("touchmove",this.onTouchMove,{passive:!1})}initScene(){this.context=this.canvas.getContext("webgl"),this.scene=new V.Scene;{const e=new V.Color("rgb(0, 22, 24)"),t=.08;this.scene.fog=new V.FogExp2(e,t)}this.mouse=new V.Vector2,this.touch=new V.Vector2,this.intersected=null,this.selected=null,this.sizes={width:this.root.clientWidth,height:window.innerHeight},this.renderer=new V.WebGLRenderer({canvas:this.canvas}),this.renderer.setSize(this.canvas.clientWidth,this.canvas.clientHeight+60),this.renderer.setPixelRatio(Math.min(window.devicePixelRatio,2)),this.camera=new V.PerspectiveCamera(75,this.sizes.width/this.sizes.height),this.cameraZ=this.hasOnboarded?ye+10:ye+20,this.camera.position.z=this.cameraZ,this.scene.add(this.camera),this.loader=new V.TextureLoader,this.raycaster=new V.Raycaster,this.objects=new V.Group,this.scene.add(this.objects),this.sources=this.sources.sort(()=>Math.random()-.5),this.addObjects(),this.triangles=new V.Group,this.scene.add(this.triangles),this.addTriangles(),this.tick()}onboard(){const e=document.querySelector(".u-museum"),t=e.querySelector(".u-nav"),i=e.querySelector(".u-nav-header"),r=e.querySelector(".u-experience"),n=e.querySelector(".u-experience__heading h1"),o=e.querySelector(".u-experience__trigger"),c=e.querySelector(".u-experience__introduction"),a=he.timeline({onComplete:()=>{e.classList.add("onboarded"),sessionStorage.setItem("experience-onboarding-played","1")}});this.cameraZ=ye-10,a.set([n,c],{y:50}),a.to(e,{opacity:1,duration:1.5}),a.add("visible"),a.to(r,{opacity:1,duration:1.5},"visible"),a.to(this.camera.position,{z:this.cameraZ,duration:4,ease:"Power4.in"},"visible"),a.to([t,i],{opacity:1},"visible+=1"),a.to([n,o],{opacity:1,y:0,stagger:.5},"visible+=2"),a.to(c,{opacity:1,y:0,duration:1.5},"-=0.5")}activate(e){e.preventDefault(),e.stopPropagation(),window.scrollTo({top:0,left:0,behavior:"smooth"}),this.isActive=!0,this.root.classList.add("is-active"),this.renderer.setSize(this.canvas.clientWidth,this.canvas.clientHeight);const t=he.timeline({onStart:()=>{document.querySelector(".u-museum").classList.add("no-scroll"),document.body.style.overscrollBehavior="none",document.querySelector(".u-experience__introduction").style.zIndex=10,ue=-1}});t.set(this.canvas,{position:"fixed"}),t.to(this.container,{height:"100vh",ease:Power4.in}),t.to(this.nav,{yPercent:-130,ease:Power4.in},0)}deactivate(){this.root.classList.remove("is-active"),this.selected&&this.unselect();const e=he.timeline({onStart:()=>{this.isActive=!1,document.querySelector(".u-museum").classList.remove("no-scroll"),document.body.removeAttribute("style")},onComplete:()=>{document.querySelector(".u-experience__introduction").removeAttribute("style"),he.set([this.container,this.nav],{clearProps:"all"}),window.cancelAnimationFrame(this.tick)}});e.set(this.canvas,{position:"absolute"}),e.to(this.camera.position,{z:this.camera.position.z+.1},0),e.to(this.camera.rotation,{x:0,y:0},0),e.to(this.container,{height:"80vh",ease:Power4.out}),e.to(this.nav,{yPercent:0,ease:Power4.out},0)}
10addObjects(){this.sources.forEach((e,t)=>this.createObject(t))}addTriangles(){for(let e=0;e<this.sources.length*3;e++)this.createTriangle(e)}createObject(e){let i;this.loader.load(this.sources[e].src,r=>{const n=6/r.image.width,o=6,c=r.image.height*n,a=new V.PlaneGeometry(o,c),l=new V.MeshBasicMaterial({map:r});i=new V.Mesh(a,l),this.objects.add(i),i.userData.initialPosition={...i.position},this.positionAlongLine(i,e);const h=(this.sources.length-e)/this.sources.length;i.position.z=ye*h,i.userData.initialPosition.z=i.position.z,i.updateMatrixWorld(),i.userData.index=e,this.objects.children.length===this.sources.length&&!this.hasOnboarded&&this.onboard()})}createTriangle(e){const t=new V.MeshBasicMaterial({color:wi[Math.round(Math.random()*2)],transparent:!0,reflectivity:0,opacity:.5}),i=new V.BufferGeometry,r=Math.round(Math.random()*3)/10,n=[];n.push(-r,-r,0),n.push(r,-r,0),n.push(0,r,0),i.setAttribute("position",new V.Float32BufferAttribute(n,3)),i.computeVertexNormals();const o=new V.Mesh(i,t);this.triangles.add(o);const c=4,a=(this.sources.length*3-e)/this.sources.length*5;o.position.z=ye*a/5,o.position.x=Math.random()*c*2-c,o.position.y=Math.random()*c*2-c,o.userData.initialPosition={...o.position},o.rotation.z=Math.random()*Math.PI,o.userData.index=e}positionAlongLine(e,t){const i=t%4,r=Y.isLessThan("medium")?7:11,n=(Y.isLessThan("medium"),9);let o,c;switch(t){case 0:o=-10,c=5;break;case 1:o=-8,c=-2;break;case 2:o=6,c=5;break;case 3:o=8,c=-3;break;default:o=Math.random()*r+.1,c=Math.random()*n,(i===0||i===1)&&(o*=-1),(i===1||i===3)&&(c*=-1);break}e.position.x=o,e.position.y=c,e.userData.initialPosition.x=o,e.userData.initialPosition.y=c,e.userData.selectedPosition={x:o*=1.2,y:c*=1.2},e.rotation.x=-e.position.y/100*Math.PI,e.rotation.y=-e.position.x/90*Math.PI}positionAlongCircle(e,t){const r=t/this.sources.length*360;e.userData.angle=r,e.position.x=Math.random()*10-10/2,e.position.y=Math.sin(r)*this.radius,e.position.z=Math.cos(r)*this.radius}tick(){if(this.isActive){this.raycaster.setFromCamera(this.mouse,this.camera);const e=this.raycaster.intersectObjects(this.objects.children);if(e.length>0){const t=Y.isLessThan("medium")?20:30;let i=e[0].object;this.cameraZ-e[0].object.position.z<2&&(i=e[1]?e[1].object:null),i&&this.intersected!==i&&this.camera.position.z-i.position.z<t&&(this.intersected=i,this.canvas.style.cursor="pointer",this.isMobile?this.selectObject(this.intersected):he.to(this.intersected.scale,{x:1.1,y:1.1,z:1.1,duration:.5}))}else this.intersected&&!this.selected?he.to(this.intersected.scale,{x:1,y:1,z:1,duration:.5,onComplete:()=>{this.intersected=null,this.canvas.style.cursor="default"}}):(this.intersected=null,this.canvas.style.cursor="default");this.updateCamera(),this.updateRotations()}this.renderer.render(this.scene,this.camera),window.requestAnimationFrame(this.tick)}updateOpacities(){this.objects.children.forEach((e,t)=>{})}updateRotations(){if(this.isMobile)return;const e=new V.Vector2;e.x=this.mouse.x*-.5,e.y=this.mouse.y*.5,this.objects.children.forEach(t=>{t.rotation.x+=.025*(e.y-t.rotation.x),t.rotation.y+=.025*(e.x-t.rotation.y)})}updateObjects(){ue*=.9;const e=parseFloat(ue.toFixed(4));this.angle+=e,this.angle=this.angle%360,this.objects.rotation.x=-this.angle,this.objects.children.forEach(t=>{})}updateCamera(){const e=this.isMobile?0:.05,t=new V.Vector2;t.x=this.mouse.x*-.5,t.y=this.mouse.y*.5;const i=t.y-this.camera.rotation.x,r=t.x-this.camera.rotation.y;if(this.camera.rotation.x+=e*i,this.camera.rotation.y+=e*r,this.selected&&!Y.isLessThan("medium")){const n=this.selected.el.position.clone(),o=new V.Box3().setFromObject(this.selected.el);n.x=o.max.x,n.project(this.camera);let c=(n.x*.5+.5)*this.canvas.clientWidth-i;const a=(n.y*-.5+.5)*this.canvas.clientHeight-r;this.legend.style.transform=`translate(${c}px,${a}px)`}if(this.cameraAnimating){ue=0,this.cameraZ=this.camera.position.z,this.camera.updateMatrixWorld();return}this.cameraZ+=ue,ue*=.9,this.cameraZ>ye+20?this.cameraZ=5:this.cameraZ<4&&(this.cameraZ=ye+15,this.objects.children.forEach((n,o)=>{this.positionAlongLine(n,o)}
10),this.triangles.children.forEach((n,o)=>{this.positionAlongLine(n,o)})),this.camera.position.z=this.cameraZ,this.camera.updateMatrixWorld()}selectObject(e){if(this.isAnimating)return;this.selected={el:e,initialPosition:{...e.position},initialRotation:{...e.rotation}},this.legendTitle.innerHTML=this.sources[e.userData.index].title,this.legendSubtitle.innerHTML=this.sources[e.userData.index].subtitle?this.sources[e.userData.index].subtitle:"",this.sources[e.userData.index].url?(this.legendLinkLabel.innerHTML=this.sources[e.userData.index].liburl,this.legendLink.setAttribute("href",this.sources[e.userData.index].url),this.legendLink.style.display="block"):this.legendLink.style.display="none";const t=he.timeline({onStart:()=>{this.isAnimating=!0,this.cameraAnimating=!0},onComplete:()=>{this.legend.classList.add("is-visible"),this.isAnimating=!1,this.cameraAnimating=!1}});this.objects.children.forEach(i=>{i!==this.selected.el&&(t.to(i.position,{x:i.userData.selectedPosition.x,y:i.userData.selectedPosition.y,duration:1,ease:"Power4.out"},0),i.position.z>this.selected.initialPosition.z&&t.to(i.position,{z:i.position.z+5,duration:1,ease:"Power4.out"},0))}),this.triangles.children.forEach(i=>{this.camera.position.z-i.position.z<=10&&t.to(i.material,{opacity:0,duration:1,ease:"Power4.out"},0)}),t.to(this.tip,{opacity:0},0).to(this.selected.el.position,{x:0,y:Y.isLessThan("medium")?1.5:0,z:Y.isLessThan("medium")?this.selected.el.position.z-3:this.selected.el.position.z,ease:"expo.out",duration:1},0).to(this.selected.el.rotation,{x:0,y:0,duration:1},0).to(this.camera.position,{z:this.selected.el.position.z+6.5},0)}unselect(){if(this.isAnimating||!this.selected)return;this.legend.classList.remove("is-visible");const e=he.timeline({onStart:()=>{this.legend.classList.remove("is-visible"),this.isAnimating=!0},onComplete:()=>{this.selected=null,this.isAnimating=!1}});e.to(this.tip,{opacity:1},0).to(this.selected.el.rotation,{x:this.selected.initialRotation._x,y:this.selected.initialRotation._y,duration:.5},0).to(this.selected.el.scale,{x:1,y:1,z:1,duration:.5},0),this.objects.children.forEach(t=>{e.to(t.position,{x:t.userData.initialPosition.x,y:t.userData.initialPosition.y,z:t.userData.initialPosition.z,duration:.5,ease:"Power4.in"},0)}),this.triangles.children.forEach(t=>{e.to(t.material,{opacity:.75,duration:.5},0)})}onResize(){this.sizes.width=this.root.clientWidth,this.sizes.height=window.innerHeight,this.camera.aspect=this.sizes.width/this.sizes.height,this.camera.updateProjectionMatrix(),this.renderer.setSize(this.sizes.width,this.sizes.height),this.renderer.setPixelRatio(Math.min(window.devicePixelRatio,2))}onMouseMove(e){const i=this.renderer.domElement.getBoundingClientRect();this.mouse.x=(e.clientX-i.left)/(i.width-i.left)*2-1,this.mouse.y=-((e.clientY-i.top)/(i.bottom-i.top))*2+1}onClick(){this.isActive&&(this.intersected?this.selected&&this.selected.el===this.intersected?this.unselect():this.selectObject(this.intersected):this.selected&&this.unselect())}onWheel(e){this.isActive&&(e.preventDefault(),this.selected&&this.unselect(),ue=e.deltaY*-this.scrollCoef)}onTouchStart(e){if(!this.isActive)return;const t=e.targetTouches?e.targetTouches[0].pageY:e;this.touchStartY=t}onTouchMove(e){if(!this.isActive)return;e.preventDefault(),this.selected&&this.unselect();const t=e.targetTouches?e.targetTouches[0].pageY:e;ue=(this.touchStartY-t)*10*.001}onKeyUp(e){this.isActive&&(e.key==="Escape"&&this.deactivate(),e.key==="ArrowUp"&&(ue=-.5,this.unselect()),e.key==="ArrowDown"&&(ue=.5,this.unselect()))}onLegendClick(e){const t=e.currentTarget.href;e.preventDefault(),he.to(document.body,{opacity:0,onComplete:()=>{window.location=t}})}}class br{constructor(e){this.root=e,this.select=e.querySelector("select"),this.value=e.querySelector(".u-fake-select__value"),this.bind()}bind(){this.onChange=this.onChange.bind(this),this.select.addEventListener("change",this.onChange)}destroy(){}onChange(e){const t=this.select.selectedIndex,i=this.select.options[t].textContent;this.value.textContent=i}}var tt={exports:{}},it={exports:{}},Ge={exports:{}},Sr=Ge.exports,xi;function Je(){return xi||(xi=1,function(s){(function(e,t){s.exports?s.exports=t():e.EvEmitter=t()})(typeof window<"u"?window:Sr,function(){function e(){}var t=e.prototype;return t.on=function(i,r){if(!(!i||!r)){var n=this._events=this._events||{},o=n[i]=n[i]||[];return o.indexOf(r)==-1&&o.push(r),this}},t.once=function(i,r){if(!(!i||!r)){this.on(i,r);var n=this._onceEvents=this._onceEvents||{},o=n[i]=n[i]||{};return o[r]=!0,this}},t.off=function(i,r){var n=this._events&&this._events[i];if(!(!n||!n.length)){var o=n.indexOf(r);return o!=-1&&n.splice(o,1),this}},t.emitEvent=function(i,r){var n=this._events&&this._events[i];if(!(!n||!n.length)){n=n.slice(0),r=r||[];for(var o=this._onceEvents&&this._onceEvents[i],c=0;c<n.length;c++){var a=n[c],l=o&&o[a];l&&(this.off(i,a),delete o[a]),a.apply(this,r)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e})}(Ge)),Ge.exports}var st={exports:{}};/*! 11 * getSize v2.0.3 12 * measure size of elements 13 * MIT license 14 */var Ei;function zs(){return Ei||(Ei=1,function(s){(function(e,t){s.exports?s.exports=t():e.getSize=t()})(window,function(){function t(d){var p=parseFloat(d),g=d.indexOf("%")==-1&&!isNaN(p);return g&&p}function i(){}var r=typeof console>"u"?i:function(d){console.error(d)},n=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],o=n.length;function c(){for(var d={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},p=0;p<o;p++){var g=n[p];d[g]=0}return d}function a(d){var p=getComputedStyle(d);return p||r("Style returned "+p+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),p}var l=!1,h;function u(){if(!l){l=!0;var d=document.createElement("div");d.style.width="200px",d.style.padding="1px 2px 3px 4px",d.style.borderStyle="solid",d.style.borderWidth="1px 2px 3px 4px",d.style.boxSizing="border-box";var p=document.body||document.documentElement;p.appendChild(d);var g=a(d);h=Math.round(t(g.width))==200,y.isBoxSizeOuter=h,p.removeChild(d)}}
14function y(d){if(u(),typeof d=="string"&&(d=document.querySelector(d)),!(!d||typeof d!="object"||!d.nodeType)){var p=a(d);if(p.display=="none")return c();var g={};g.width=d.offsetWidth,g.height=d.offsetHeight;for(var m=g.isBorderBox=p.boxSizing=="border-box",B=0;B<o;B++){var f=n[B],S=p[f],T=parseFloat(S);g[f]=isNaN(T)?0:T}var k=g.paddingLeft+g.paddingRight,_=g.paddingTop+g.paddingBottom,O=g.marginLeft+g.marginRight,X=g.marginTop+g.marginBottom,H=g.borderLeftWidth+g.borderRightWidth,J=g.borderTopWidth+g.borderBottomWidth,x=m&&h,z=t(p.width);z!==!1&&(g.width=z+(x?0:k+H));var N=t(p.height);return N!==!1&&(g.height=N+(x?0:_+J)),g.innerWidth=g.width-(k+H),g.innerHeight=g.height-(_+J),g.outerWidth=g.width+O,g.outerHeight=g.height+X,g}}return y})}(st)),st.exports}var rt={exports:{}},nt={exports:{}},ki;function wr(){return ki||(ki=1,function(s){(function(e,t){s.exports?s.exports=t():e.matchesSelector=t()})(window,function(){var t=function(){var i=window.Element.prototype;if(i.matches)return"matches";if(i.matchesSelector)return"matchesSelector";for(var r=["webkit","moz","ms","o"],n=0;n<r.length;n++){var o=r[n],c=o+"MatchesSelector";if(i[c])return c}}();return function(r,n){return r[t](n)}})}(nt)),nt.exports}var _i;function we(){return _i||(_i=1,function(s){(function(e,t){s.exports?s.exports=t(e,wr()):e.fizzyUIUtils=t(e,e.matchesSelector)})(window,function(t,i){var r={};r.extend=function(c,a){for(var l in a)c[l]=a[l];return c},r.modulo=function(c,a){return(c%a+a)%a};var n=Array.prototype.slice;r.makeArray=function(c){if(Array.isArray(c))return c;if(c==null)return[];var a=typeof c=="object"&&typeof c.length=="number";return a?n.call(c):[c]},r.removeFrom=function(c,a){var l=c.indexOf(a);l!=-1&&c.splice(l,1)},r.getParent=function(c,a){for(;c.parentNode&&c!=document.body;)if(c=c.parentNode,i(c,a))return c},r.getQueryElement=function(c){return typeof c=="string"?document.querySelector(c):c},r.handleEvent=function(c){var a="on"+c.type;this[a]&&this[a](c)},r.filterFindElements=function(c,a){c=r.makeArray(c);var l=[];return c.forEach(function(h){if(h instanceof HTMLElement){if(!a){l.push(h);return}i(h,a)&&l.push(h);for(var u=h.querySelectorAll(a),y=0;y<u.length;y++)l.push(u[y])}}),l},r.debounceMethod=function(c,a,l){l=l||100;var h=c.prototype[a],u=a+"Timeout";c.prototype[a]=function(){var y=this[u];clearTimeout(y);var d=arguments,p=this;this[u]=setTimeout(function(){h.apply(p,d),delete p[u]},l)}},r.docReady=function(c){var a=document.readyState;a=="complete"||a=="interactive"?setTimeout(c):document.addEventListener("DOMContentLoaded",c)},r.toDashed=function(c){return c.replace(/(.)([A-Z])/g,function(a,l,h){return l+"-"+h}).toLowerCase()};var o=t.console;return r.htmlInit=function(c,a){r.docReady(function(){var l=r.toDashed(a),h="data-"+l,u=document.querySelectorAll("["+h+"]"),y=document.querySelectorAll(".js-"+l),d=r.makeArray(u).concat(r.makeArray(y)),p=h+"-options",g=t.jQuery;d.forEach(function(m){var B=m.getAttribute(h)||m.getAttribute(p),f;try{f=B&&JSON.parse(B)}catch(T){o&&o.error("Error parsing "+h+" on "+m.className+": "+T);return}var S=new c(m,f);g&&g.data(m,a,S)})})},r})}(rt)),rt.exports}var ot={exports:{}},Li;function xr(){return Li||(Li=1,function(s){(function(e,t){s.exports?s.exports=t(e,zs()):(e.Flickity=e.Flickity||{},e.Flickity.Cell=t(e,e.getSize))})(window,function(t,i){function r(o,c){this.element=o,this.parent=c,this.create()}var n=r.prototype;return n.create=function(){this.element.style.position="absolute",this.element.setAttribute("aria-hidden","true"),this.x=0,this.shift=0,this.element.style[this.parent.originSide]=0},n.destroy=function(){this.unselect(),this.element.style.position="";var o=this.parent.originSide;this.element.style[o]="",this.element.style.transform="",this.element.removeAttribute("aria-hidden")},n.getSize=function(){this.size=i(this.element)},n.setPosition=function(o){this.x=o,this.updateTarget(),this.renderPosition(o)},n.updateTarget=n.setDefaultTarget=function(){var o=this.parent.originSide=="left"?"marginLeft":"marginRight";this.target=this.x+this.size[o]+this.size.width*this.parent.cellAlign},n.renderPosition=function(o){var c=this.parent.originSide==="left"?1:-1,a=this.parent.options.percentPosition?o*c*(this.parent.size.innerWidth/this.size.width):o*c;this.element.style.transform="translateX("+this.parent.getPositionValue(a)+")"},n.select=function(){this.element.classList.add("is-selected"),this.element.removeAttribute("aria-hidden")},n.unselect=function(){this.element.classList.remove("is-selected"),this.element.setAttribute("aria-hidden","true")},n.wrapShift=function(o){this.shift=o,this.renderPosition(this.x+this.parent.slideableWidth*o)},n.remove=function(){this.element.parentNode.removeChild(this.element)},r})}(ot)),ot.exports}var at={exports:{}},Ci;function Er(){return Ci||(Ci=1,function(s){(function(e,t){s.exports?s.exports=t():(e.Flickity=e.Flickity||{},e.Flickity.Slide=t())})(window,function(){function t(r){this.parent=r,this.isOriginLeft=r.originSide=="left",this.cells=[],this.outerWidth=0,this.height=0}var i=t.prototype;return i.addCell=function(r){if(this.cells.push(r),this.outerWidth+=r.size.outerWidth,this.height=Math.max(r.size.outerHeight,this.height),this.cells.length==1){this.x=r.x;var n=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=r.size[n]}},i.updateTarget=function(){var r=this.isOriginLeft?"marginRight":"marginLeft",n=this.getLastCell(),o=n?n.size[r]:0,c=this.outerWidth-(this.firstMargin+o);this.target=this.x+this.firstMargin+c*this.parent.cellAlign},i.getLastCell=function(){return this.cells[this.cells.length-1]}
14,i.select=function(){this.cells.forEach(function(r){r.select()})},i.unselect=function(){this.cells.forEach(function(r){r.unselect()})},i.getCellElements=function(){return this.cells.map(function(r){return r.element})},t})}(at)),at.exports}var lt={exports:{}},Ai;function kr(){return Ai||(Ai=1,function(s){(function(e,t){s.exports?s.exports=t(e,we()):(e.Flickity=e.Flickity||{},e.Flickity.animatePrototype=t(e,e.fizzyUIUtils))})(window,function(t,i){var r={};return r.startAnimation=function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},r.animate=function(){this.applyDragForce(),this.applySelectedAttraction();var n=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(n),this.isAnimating){var o=this;requestAnimationFrame(function(){o.animate()})}},r.positionSlider=function(){var n=this.x;this.options.wrapAround&&this.cells.length>1&&(n=i.modulo(n,this.slideableWidth),n-=this.slideableWidth,this.shiftWrapCells(n)),this.setTranslateX(n,this.isAnimating),this.dispatchScrollEvent()},r.setTranslateX=function(n,o){n+=this.cursorPosition,n=this.options.rightToLeft?-n:n;var c=this.getPositionValue(n);this.slider.style.transform=o?"translate3d("+c+",0,0)":"translateX("+c+")"},r.dispatchScrollEvent=function(){var n=this.slides[0];if(n){var o=-this.x-n.target,c=o/this.slidesWidth;this.dispatchEvent("scroll",null,[c,o])}},r.positionSliderAtSelected=function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},r.getPositionValue=function(n){return this.options.percentPosition?Math.round(n/this.size.innerWidth*1e4)*.01+"%":Math.round(n)+"px"},r.settle=function(n){var o=!this.isPointerDown&&Math.round(this.x*100)==Math.round(n*100);o&&this.restingFrames++,this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},r.shiftWrapCells=function(n){var o=this.cursorPosition+n;this._shiftCells(this.beforeShiftCells,o,-1);var c=this.size.innerWidth-(n+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,c,1)},r._shiftCells=function(n,o,c){for(var a=0;a<n.length;a++){var l=n[a],h=o>0?c:0;l.wrapShift(h),o-=l.size.outerWidth}},r._unshiftCells=function(n){if(!(!n||!n.length))for(var o=0;o<n.length;o++)n[o].wrapShift(0)},r.integratePhysics=function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},r.applyForce=function(n){this.velocity+=n},r.getFrictionFactor=function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},r.getRestingPosition=function(){return this.x+this.velocity/(1-this.getFrictionFactor())},r.applyDragForce=function(){if(!(!this.isDraggable||!this.isPointerDown)){var n=this.dragX-this.x,o=n-this.velocity;this.applyForce(o)}},r.applySelectedAttraction=function(){var n=this.isDraggable&&this.isPointerDown;if(!(n||this.isFreeScrolling||!this.slides.length)){var o=this.selectedSlide.target*-1-this.x,c=o*this.options.selectedAttraction;this.applyForce(c)}},r})}(lt)),lt.exports}var qi;function Ce(){return qi||(qi=1,function(s){(function(e,t){if(s.exports)s.exports=t(e,Je(),zs(),we(),xr(),Er(),kr());else{var i=e.Flickity;e.Flickity=t(e,e.EvEmitter,e.getSize,e.fizzyUIUtils,i.Cell,i.Slide,i.animatePrototype)}})(window,function(t,i,r,n,o,c,a){var l=t.jQuery,h=t.getComputedStyle,u=t.console;function y(f,S){for(f=n.makeArray(f);f.length;)S.appendChild(f.shift())}var d=0,p={};function g(f,S){var T=n.getQueryElement(f);if(!T){u&&u.error("Bad element for Flickity: "+(T||f));return}if(this.element=T,this.element.flickityGUID){var k=p[this.element.flickityGUID];return k&&k.option(S),k}l&&(this.$element=l(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(S),this._create()}g.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},g.createMethods=[];var m=g.prototype;n.extend(m,i.prototype),m._create=function(){var f=this.guid=++d;this.element.flickityGUID=f,p[f]=this,this.selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.originSide=this.options.rightToLeft?"right":"left",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",this._createSlider(),(this.options.resize||this.options.watchCSS)&&t.addEventListener("resize",this);for(var S in this.options.on){var T=this.options.on[S];this.on(S,T)}g.createMethods.forEach(function(k){this[k]()},this),this.options.watchCSS?this.watchCSS():this.activate()},m.option=function(f){n.extend(this.options,f)},m.activate=function(){if(!this.isActive){this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.get
vendor: 5,522 bytes, line 14
14Size();var f=this._filterFindCellElements(this.element.children);y(f,this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate"),this.selectInitialIndex(),this.isInitActivated=!0,this.dispatchEvent("ready")}},m._createSlider=function(){var f=document.createElement("div");f.className="flickity-slider",f.style[this.originSide]=0,this.slider=f},m._filterFindCellElements=function(f){return n.filterFindElements(f,this.options.cellSelector)},m.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},m._makeCells=function(f){var S=this._filterFindCellElements(f),T=S.map(function(k){return new o(k,this)},this);return T},m.getLastCell=function(){return this.cells[this.cells.length-1]},m.getLastSlide=function(){return this.slides[this.slides.length-1]},m.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},m._positionCells=function(f){f=f||0,this.maxCellHeight=f&&this.maxCellHeight||0;var S=0;if(f>0){var T=this.cells[f-1];S=T.x+T.size.outerWidth}for(var k=this.cells.length,_=f;_<k;_++){var O=this.cells[_];O.setPosition(S),S+=O.size.outerWidth,this.maxCellHeight=Math.max(O.size.outerHeight,this.maxCellHeight)}this.slideableWidth=S,this.updateSlides(),this._containSlides(),this.slidesWidth=k?this.getLastSlide().target-this.slides[0].target:0},m._sizeCells=function(f){f.forEach(function(S){S.getSize()})},m.updateSlides=function(){if(this.slides=[],!!this.cells.length){var f=new c(this);this.slides.push(f);var S=this.originSide=="left",T=S?"marginRight":"marginLeft",k=this._getCanCellFit();this.cells.forEach(function(_,O){if(!f.cells.length){f.addCell(_);return}var X=f.outerWidth-f.firstMargin+(_.size.outerWidth-_.size[T]);k.call(this,O,X)||(f.updateTarget(),f=new c(this),this.slides.push(f)),f.addCell(_)},this),f.updateTarget(),this.updateSelectedSlide()}},m._getCanCellFit=function(){var f=this.options.groupCells;if(f){if(typeof f=="number"){var S=parseInt(f,10);return function(_){return _%S!==0}}}else return function(){return!1};var T=typeof f=="string"&&f.match(/^(\d+)%$/),k=T?parseInt(T[1],10)/100:1;return function(_,O){return O<=(this.size.innerWidth+1)*k}},m._init=m.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},m.getSize=function(){this.size=r(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var B={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};return m.setCellAlign=function(){var f=B[this.options.cellAlign];this.cellAlign=f?f[this.originSide]:this.options.cellAlign},m.setGallerySize=function(){if(this.options.setGallerySize){var f=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=f+"px"}},m._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var f=this.cursorPosition,S=this.cells.length-1;this.beforeShiftCells=this._getGapCells(f,S,-1),f=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(f,0,1)}},m._getGapCells=function(f,S,T){for(var k=[];f>0;){var _=this.cells[S];if(!_)break;k.push(_),S+=T,f-=_.size.outerWidth}return k},m._containSlides=function(){if(!(!this.options.contain||this.options.wrapAround||!this.cells.length)){var f=this.options.rightToLeft,S=f?"marginRight":"marginLeft",T=f?"marginLeft":"marginRight",k=this.slideableWidth-this.getLastCell().size[T],_=k<this.size.innerWidth,O=this.cursorPosition+this.cells[0].size[S],X=k-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach(function(H){_?H.target=k*this.cellAlign:(H.target=Math.max(H.target,O),H.target=Math.min(H.target,X))},this)}},m.dispatchEvent=function(f,S,T){var k=S?[S].concat(T):T;if(this.emitEvent(f,k),l&&this.$element){f+=this.options.namespaceJQueryEvents?".flickity":"";var _=f;if(S){var O=new l.Event(S);O.type=f,_=O}this.$element.trigger(_,T)}},m.select=function(f,S,T){if(this.isActive&&(f=parseInt(f,10),this._wrapSelect(f),(this.options.wrapAround||S)&&(f=n.modulo(f,this.slides.length)),!!this.slides[f])){var k=this.selectedIndex;this.selectedIndex=f,this.updateSelectedSlide(),T?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[f]),f!=k&&this.dispatchEvent("change",null,[f]),this.dispatchEvent("cellSelect")}},m._wrapSelect=function(f){var S=this.slides.length,T=this.options.wrapAround&&S>1;if(!T)return f;var k=n.modulo(f,S),_=Math.abs(k-this.selectedIndex),O=Math.abs(k+S-this.selectedIndex),X=Math.abs(k-S-this.selectedIndex);!this.isDragSelect&&O<_?f+=S:!this.isDragSelect&&X<_&&(f-=S),f<0?this.x-=this.slideableWidth:f>=S&&(this.x+=this.slideableWidth)},m.previous=function(f,S){this.select(this.selectedIndex-1,f,S)},m.next=function(f,S){this.select(this.selectedIndex+1,f,S)},m.updateSelectedSlide=function(){var f=this.slides[this.selectedIndex];f&&(this.unselectSelectedSlide(),this.selectedSlide=f,f.select(),this.selectedCells=f.cells,this.selectedElements=f.getCellElements(),this.selectedCell=f.cells[0],this.selectedElement=this.selectedElements[0])},m.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},m.selectInitialIndex=function(){var f=this.options.initialIndex;
14if(this.isInitActivated){this.select(this.selectedIndex,!1,!0);return}if(f&&typeof f=="string"){var S=this.queryCell(f);if(S){this.selectCell(f,!1,!0);return}}var T=0;f&&this.slides[f]&&(T=f),this.select(T,!1,!0)},m.selectCell=function(f,S,T){var k=this.queryCell(f);if(k){var _=this.getCellSlideIndex(k);this.select(_,S,T)}},m.getCellSlideIndex=function(f){for(var S=0;S<this.slides.length;S++){var T=this.slides[S],k=T.cells.indexOf(f);if(k!=-1)return S}},m.getCell=function(f){for(var S=0;S<this.cells.length;S++){var T=this.cells[S];if(T.element==f)return T}},m.getCells=function(f){f=n.makeArray(f);var S=[];return f.forEach(function(T){var k=this.getCell(T);k&&S.push(k)},this),S},m.getCellElements=function(){return this.cells.map(function(f){return f.element})},m.getParentCell=function(f){var S=this.getCell(f);return S||(f=n.getParent(f,".flickity-slider > *"),this.getCell(f))},m.getAdjacentCellElements=function(f,S){if(!f)return this.selectedSlide.getCellElements();S=S===void 0?this.selectedIndex:S;var T=this.slides.length;if(1+f*2>=T)return this.getCellElements();for(var k=[],_=S-f;_<=S+f;_++){var O=this.options.wrapAround?n.modulo(_,T):_,X=this.slides[O];X&&(k=k.concat(X.getCellElements()))}return k},m.queryCell=function(f){if(typeof f=="number")return this.cells[f];if(typeof f=="string"){if(f.match(/^[#.]?[\d/]/))return;f=this.element.querySelector(f)}return this.getCell(f)},m.uiChange=function(){this.emitEvent("uiChange")},m.childUIPointerDown=function(f){f.type!="touchstart"&&f.preventDefault(),this.focus()},m.onresize=function(){this.watchCSS(),this.resize()},n.debounceMethod(g,"onresize",150),m.resize=function(){if(!(!this.isActive||this.isAnimating||this.isDragging)){this.getSize(),this.options.wrapAround&&(this.x=n.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");var f=this.selectedElements&&this.selectedElements[0];this.selectCell(f,!1,!0)}},m.watchCSS=function(){var f=this.options.watchCSS;if(f){var S=h(this.element,":after").content;S.indexOf("flickity")!=-1?this.activate():this.deactivate()}},m.onkeydown=function(f){var S=document.activeElement&&document.activeElement!=this.element;if(!(!this.options.accessibility||S)){var T=g.keyboardHandlers[f.keyCode];T&&T.call(this)}},g.keyboardHandlers={37:function(){var f=this.options.rightToLeft?"next":"previous";this.uiChange(),this[f]()},39:function(){var f=this.options.rightToLeft?"previous":"next";this.uiChange(),this[f]()}},m.focus=function(){var f=t.pageYOffset;this.element.focus({preventScroll:!0}),t.pageYOffset!=f&&t.scrollTo(t.pageXOffset,f)},m.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach(function(f){f.destroy()}),this.element.removeChild(this.viewport),y(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},m.destroy=function(){this.deactivate(),t.removeEventListener("resize",this),this.allOff(),this.emitEvent("destroy"),l&&this.$element&&l.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete p[this.guid]},n.extend(m,a),g.data=function(f){f=n.getQueryElement(f);var S=f&&f.flickityGUID;return S&&p[S]},n.htmlInit(g,"flickity"),l&&l.bridget&&l.bridget("flickity",g),g.setJQuery=function(f){l=f},g.Cell=o,g.Slide=c,g})}(it)),it.exports}var ct={exports:{}},ht={exports:{}},ut={exports:{}};/*! 15 * Unipointer v2.4.0 16 * base class for doing one thing with pointer event 17 * MIT license 18 */var Ti;function oi(){return Ti||(Ti=1,function(s){(function(e,t){s.exports?s.exports=t(e,Je()):e.Unipointer=t(e,e.EvEmitter)})(window,function(t,i){function r(){}function n(){}var o=n.prototype=Object.create(i.prototype);o.bindStartEvent=function(a){this._bindStartEvent(a,!0)},o.unbindStartEvent=function(a){this._bindStartEvent(a,!1)},o._bindStartEvent=function(a,l){l=l===void 0?!0:l;
vendor: 4,426 bytes, lines 18-22
18var h=l?"addEventListener":"removeEventListener",u="mousedown";"ontouchstart"in t?u="touchstart":t.PointerEvent&&(u="pointerdown"),a[h](u,this)},o.handleEvent=function(a){var l="on"+a.type;this[l]&&this[l](a)},o.getTouch=function(a){for(var l=0;l<a.length;l++){var h=a[l];if(h.identifier==this.pointerIdentifier)return h}},o.onmousedown=function(a){var l=a.button;l&&l!==0&&l!==1||this._pointerDown(a,a)},o.ontouchstart=function(a){this._pointerDown(a,a.changedTouches[0])},o.onpointerdown=function(a){this._pointerDown(a,a)},o._pointerDown=function(a,l){a.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=l.pointerId!==void 0?l.pointerId:l.identifier,this.pointerDown(a,l))},o.pointerDown=function(a,l){this._bindPostStartEvents(a),this.emitEvent("pointerDown",[a,l])};var c={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return o._bindPostStartEvents=function(a){if(a){var l=c[a.type];l.forEach(function(h){t.addEventListener(h,this)},this),this._boundPointerEvents=l}},o._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(a){t.removeEventListener(a,this)},this),delete this._boundPointerEvents)},o.onmousemove=function(a){this._pointerMove(a,a)},o.onpointermove=function(a){a.pointerId==this.pointerIdentifier&&this._pointerMove(a,a)},o.ontouchmove=function(a){var l=this.getTouch(a.changedTouches);l&&this._pointerMove(a,l)},o._pointerMove=function(a,l){this.pointerMove(a,l)},o.pointerMove=function(a,l){this.emitEvent("pointerMove",[a,l])},o.onmouseup=function(a){this._pointerUp(a,a)},o.onpointerup=function(a){a.pointerId==this.pointerIdentifier&&this._pointerUp(a,a)},o.ontouchend=function(a){var l=this.getTouch(a.changedTouches);l&&this._pointerUp(a,l)},o._pointerUp=function(a,l){this._pointerDone(),this.pointerUp(a,l)},o.pointerUp=function(a,l){this.emitEvent("pointerUp",[a,l])},o._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},o._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},o.pointerDone=r,o.onpointercancel=function(a){a.pointerId==this.pointerIdentifier&&this._pointerCancel(a,a)},o.ontouchcancel=function(a){var l=this.getTouch(a.changedTouches);l&&this._pointerCancel(a,l)},o._pointerCancel=function(a,l){this._pointerDone(),this.pointerCancel(a,l)},o.pointerCancel=function(a,l){this.emitEvent("pointerCancel",[a,l])},n.getPointerPoint=function(a){return{x:a.pageX,y:a.pageY}},n})}(ut)),ut.exports}/*! 19 * Unidragger v2.4.0 20 * Draggable base class 21 * MIT license 22 */var Pi;function _r(){return Pi||(Pi=1,function(s){(function(e,t){s.exports?s.exports=t(e,oi()):e.Unidragger=t(e,e.Unipointer)})(window,function(t,i){function r(){}var n=r.prototype=Object.create(i.prototype);n.bindHandles=function(){this._bindHandles(!0)},n.unbindHandles=function(){this._bindHandles(!1)},n._bindHandles=function(a){a=a===void 0?!0:a;for(var l=a?"addEventListener":"removeEventListener",h=a?this._touchActionValue:"",u=0;u<this.handles.length;u++){var y=this.handles[u];this._bindStartEvent(y,a),y[l]("click",this),t.PointerEvent&&(y.style.touchAction=h)}},n._touchActionValue="none",n.pointerDown=function(a,l){var h=this.okayPointerDown(a);h&&(this.pointerDownPointer={pageX:l.pageX,pageY:l.pageY},a.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(a),this.emitEvent("pointerDown",[a,l]))};var o={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},c={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return n.okayPointerDown=function(a){var l=o[a.target.nodeName],h=c[a.target.type],u=!l||h;return u||this._pointerReset(),u},n.pointerDownBlur=function(){var a=document.activeElement,l=a&&a.blur&&a!=document.body;l&&a.blur()},n.pointerMove=function(a,l){var h=this._dragPointerMove(a,l);this.emitEvent("pointerMove",[a,l,h]),this._dragMove(a,l,h)},n._dragPointerMove=function(a,l){var h={x:l.pageX-this.pointerDownPointer.pageX,y:l.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(h)&&this._dragStart(a,l),h},n.hasDragStarted=function(a){return Math.abs(a.x)>3||Math.abs(a.y)>3},n.pointerUp=function(a,l){this.emitEvent("pointerUp",[a,l]),this._dragPointerUp(a,l)},n._dragPointerUp=function(a,l){this.isDragging?this._dragEnd(a,l):this._staticClick(a,l)},n._dragStart=function(a,l){this.isDragging=!0,this.isPreventing
22Clicks=!0,this.dragStart(a,l)},n.dragStart=function(a,l){this.emitEvent("dragStart",[a,l])},n._dragMove=function(a,l,h){this.isDragging&&this.dragMove(a,l,h)},n.dragMove=function(a,l,h){a.preventDefault(),this.emitEvent("dragMove",[a,l,h])},n._dragEnd=function(a,l){this.isDragging=!1,setTimeout((function(){delete this.isPreventingClicks}).bind(this)),this.dragEnd(a,l)},n.dragEnd=function(a,l){this.emitEvent("dragEnd",[a,l])},n.onclick=function(a){this.isPreventingClicks&&a.preventDefault()},n._staticClick=function(a,l){this.isIgnoringMouseUp&&a.type=="mouseup"||(this.staticClick(a,l),a.type!="mouseup"&&(this.isIgnoringMouseUp=!0,setTimeout((function(){delete this.isIgnoringMouseUp}).bind(this),400)))},n.staticClick=function(a,l){this.emitEvent("staticClick",[a,l])},r.getPointerPoint=i.getPointerPoint,r})}(ht)),ht.exports}var Oi;function Lr(){return Oi||(Oi=1,function(s){(function(e,t){s.exports?s.exports=t(e,Ce(),_r(),we()):e.Flickity=t(e,e.Flickity,e.Unidragger,e.fizzyUIUtils)})(window,function(t,i,r,n){n.extend(i.defaults,{draggable:">1",dragThreshold:3}),i.createMethods.push("_createDrag");var o=i.prototype;n.extend(o,r.prototype),o._touchActionValue="pan-y",o._createDrag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable)},o.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},o.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},o.updateDraggable=function(){this.options.draggable==">1"?this.isDraggable=this.slides.length>1:this.isDraggable=this.options.draggable,this.isDraggable?this.element.classList.add("is-draggable"):this.element.classList.remove("is-draggable")},o.bindDrag=function(){this.options.draggable=!0,this.updateDraggable()},o.unbindDrag=function(){this.options.draggable=!1,this.updateDraggable()},o._uiChangeDrag=function(){delete this.isFreeScrolling},o.pointerDown=function(l,h){if(!this.isDraggable){this._pointerDownDefault(l,h);return}var u=this.okayPointerDown(l);u&&(this._pointerDownPreventDefault(l),this.pointerDownFocus(l),document.activeElement!=this.element&&this.pointerDownBlur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=a(),t.addEventListener("scroll",this),this._pointerDownDefault(l,h))},o._pointerDownDefault=function(l,h){this.pointerDownPointer={pageX:h.pageX,pageY:h.pageY},this._bindPostStartEvents(l),this.dispatchEvent("pointerDown",l,[h])};var c={INPUT:!0,TEXTAREA:!0,SELECT:!0};o.pointerDownFocus=function(l){var h=c[l.target.nodeName];h||this.focus()},o._pointerDownPreventDefault=function(l){var h=l.type=="touchstart",u=l.pointerType=="touch",y=c[l.target.nodeName];!h&&!u&&!y&&l.preventDefault()},o.hasDragStarted=function(l){return Math.abs(l.x)>this.options.dragThreshold},o.pointerUp=function(l,h){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",l,[h]),this._dragPointerUp(l,h)},o.pointerDone=function(){t.removeEventListener("scroll",this),delete this.pointerDownScroll},o.dragStart=function(l,h){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),t.removeEventListener("scroll",this),this.dispatchEvent("dragStart",l,[h]))},o.pointerMove=function(l,h){var u=this._dragPointerMove(l,h);this.dispatchEvent("pointerMove",l,[h,u]),this._dragMove(l,h,u)},o.dragMove=function(l,h,u){if(this.isDraggable){l.preventDefault(),this.previousDragX=this.dragX;var y=this.options.rightToLeft?-1:1;this.options.wrapAround&&(u.x%=this.slideableWidth);var d=this.dragStartPosition+u.x*y;if(!this.options.wrapAround&&this.slides.length){var p=Math.max(-this.slides[0].target,this.dragStartPosition);d=d>p?(d+p)*.5:d;var g=Math.min(-this.getLastSlide().target,this.dragStartPosition);d=d<g?(d+g)*.5:d}this.dragX=d,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",l,[h,u])}},o.dragEnd=function(l,h){if(this.isDraggable){this.options.freeScroll&&(this.isFreeScrolling=!0);var u=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var y=this.getRestingPosition();this.isFreeScrolling=-y>this.slides[0].target&&-y<this.getLastSlide().target}else!this.options.freeScroll&&u==this.selectedIndex&&(u+=this.dragEndBoostSelect());delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(u),delete this.isDragSelect,this.dispatchEvent("dragEnd",l,[h])}},o.dragEndRestingSelect=function(){var l=this.getRestingPosition(),h=Math.abs(this.getSlideDistance(-l,this.selectedIndex)),u=this._getClosestResting(l,h,1),y=this._getClosestResting(l,h,-1),d=u.distance<y.distance?u.
22index:y.index;return d},o._getClosestResting=function(l,h,u){for(var y=this.selectedIndex,d=1/0,p=this.options.contain&&!this.options.wrapAround?function(g,m){return g<=m}:function(g,m){return g<m};p(h,d)&&(y+=u,d=h,h=this.getSlideDistance(-l,y),h!==null);)h=Math.abs(h);return{distance:d,index:y-u}},o.getSlideDistance=function(l,h){var u=this.slides.length,y=this.options.wrapAround&&u>1,d=y?n.modulo(h,u):h,p=this.slides[d];if(!p)return null;var g=y?this.slideableWidth*Math.floor(h/u):0;return l-(p.target+g)},o.dragEndBoostSelect=function(){if(this.previousDragX===void 0||!this.dragMoveTime||new Date-this.dragMoveTime>100)return 0;var l=this.getSlideDistance(-this.dragX,this.selectedIndex),h=this.previousDragX-this.dragX;return l>0&&h>0?1:l<0&&h<0?-1:0},o.staticClick=function(l,h){var u=this.getParentCell(l.target),y=u&&u.element,d=u&&this.cells.indexOf(u);this.dispatchEvent("staticClick",l,[h,y,d])},o.onscroll=function(){var l=a(),h=this.pointerDownScroll.x-l.x,u=this.pointerDownScroll.y-l.y;(Math.abs(h)>3||Math.abs(u)>3)&&this._pointerDone()};function a(){return{x:t.pageXOffset,y:t.pageYOffset}}return i})}(ct)),ct.exports}var dt={exports:{}},Ii;function Cr(){return Ii||(Ii=1,function(s){(function(e,t){s.exports?s.exports=t(e,Ce(),oi(),we()):t(e,e.Flickity,e.Unipointer,e.fizzyUIUtils)})(window,function(t,i,r,n){var o="http://www.w3.org/2000/svg";function c(h,u){this.direction=h,this.parent=u,this._create()}c.prototype=Object.create(r.prototype),c.prototype._create=function(){this.isEnabled=!0,this.isPrevious=this.direction==-1;var h=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==h;var u=this.element=document.createElement("button");u.className="flickity-button flickity-prev-next-button",u.className+=this.isPrevious?" previous":" next",u.setAttribute("type","button"),this.disable(),u.setAttribute("aria-label",this.isPrevious?"Previous":"Next");var y=this.createSVG();u.appendChild(y),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},c.prototype.activate=function(){this.bindStartEvent(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},c.prototype.deactivate=function(){this.parent.element.removeChild(this.element),this.unbindStartEvent(this.element),this.element.removeEventListener("click",this)},c.prototype.createSVG=function(){var h=document.createElementNS(o,"svg");h.setAttribute("class","flickity-button-icon"),h.setAttribute("viewBox","0 0 100 100");var u=document.createElementNS(o,"path"),y=a(this.parent.options.arrowShape);return u.setAttribute("d",y),u.setAttribute("class","arrow"),this.isLeft||u.setAttribute("transform","translate(100, 100) rotate(180) "),h.appendChild(u),h};function a(h){return typeof h=="string"?h:"M "+h.x0+",50 L "+h.x1+","+(h.y1+50)+" L "+h.x2+","+(h.y2+50)+" L "+h.x3+",50 L "+h.x2+","+(50-h.y2)+" L "+h.x1+","+(50-h.y1)+" Z"}c.prototype.handleEvent=n.handleEvent,c.prototype.onclick=function(){if(this.isEnabled){this.parent.uiChange();var h=this.isPrevious?"previous":"next";this.parent[h]()}},c.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},c.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},c.prototype.update=function(){var h=this.parent.slides;if(this.parent.options.wrapAround&&h.length>1){this.enable();return}var u=h.length?h.length-1:0,y=this.isPrevious?0:u,d=this.parent.selectedIndex==y?"disable":"enable";this[d]()},c.prototype.destroy=function(){this.deactivate(),this.allOff()},n.extend(i.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),i.createMethods.push("_createPrevNextButtons");var l=i.prototype;return l._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new c(-1,this),this.nextButton=new c(1,this),this.on("activate",this.activatePrevNextButtons))},l.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},l.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},i.PrevNextButton=c,i})}(dt)),dt.exports}var ft={exports:{}},Di;function Ar(){return Di||(Di=1,function(s){(function(e,t){s.exports?s.exports=t(e,Ce(),oi(),we()):t(e,e.Flickity,e.Unipointer,e.fizzyUIUtils)})(window,function(t,i,r,n){function o(a){this.parent=a,this._create()}o.prototype=Object.create(r.prototype),o.prototype._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",this.dots=[],this.handleClick=this.onClick.bind(this),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},o.prototype.activate=function(){this.setDots(),this.holder.addEventListener("click",this.handleClick),this.bindStartEvent(this.holder),this.parent.element.appendChild(this.holder)},o.prototype.deactivate=function(){this.holder.removeEventListener("click",this.handleClick),this.unbindStartEvent(this.holder),this.parent.element.removeChild(this.holder)},o.prototype.setDots=function(){var a=this.parent.slides.length-this.dots.length;a>0?this.addDots(a):a<0&&this.removeDots(-a)},o.prototype.addDots=function(a){for(var l=document.createDocumentFragment(),h=[],u=this.dots.length,y=u+a,d=u;d<y;d++){var p=document.createElement("li");p.className="dot",p.setAttribute("aria-label","Page dot "+(d+1)),l.appendChild(p),h.push(p)}this.holder.appendChild(l),this.dots=this.dots.concat(h)},o.prototype.removeDots=function(a){var l=this.dots.splice(this.dots.length-a,a);l.forEach(function(h){this.holder.removeChild(h)},this)},o.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot",this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected",this.selectedDot.setAttribute("aria-current","step"))},o.prototype.onTap=o.prototype.onClick=function(a){var l=a.target;if(l.nodeName=="LI"){this.parent.uiChange();var h=this.dots.indexOf(l);this.parent.select(h)}},o.prototype.destroy=function(){this.deactivate(),this.allOff()},i.PageDots=o,n.extend(i.defaults,{pageDots:!0}),i.createMethods.push("_createPageDots");var c=i.prototype;return c._createPageDots=function(){this.options.pageDots&&(this.pageDots=new o(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))},c.activatePageDots=function(){this.pageDots.activate()},c.updateSelectedPageDots=function(){this.pageDots.updateSelected()},c.updatePageDots=function(){this.pageDots.setDots()},c.deactivatePageDots=function(){this.pageDots.deactivate()},i.PageDots=o,i})}(ft)),ft.exports}var pt={exports:{}},zi;function qr(){return zi||(zi=1,function(s){(function(e,t){s.exports?s.exports=t(Je(),we(),Ce()):t(e.EvEmitter,e.fizzyUIUtils,e.Flickity)})(window,function(t,i,r){function n(c){this.parent=c,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}n.prototype=Object.create(t.prototype),n.prototype.play=function(){if(this.state!="playing"){var c=document.hidden;if(c){document.addEventListener("visibilitychange",this.onVisibilityPlay);return}this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick()}},n.prototype.tick=function(){if(this.state=="playing"){var c=this.parent.options.autoPlay;c=typeof c=="number"?c:3e3;var a=this;this.clear(),this.timeout=setTimeout(function(){a.parent.next(!0),a.tick()},c)}},n.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},n.prototype.clear=function(){clearTimeout(this.timeout)},n.prototype.pause=function(){this.state=="playing"&&(this.state="paused",this.clear())},n.prototype.unpause=function(){this.state=="paused"&&this.play()},n.prototype.visibilityChange=function(){var c=document.hidden;this[c?"pause":"unpause"]()},n.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},i.extend(r.defaults,{pauseAutoPlayOnHover:!0}),r.createMethods.push("_createPlayer");var o=r.prototype;return o._createPlayer=function(){this.player=new n(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},o.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},o.playPlayer=function(){this.player.play()},o.stopPlayer=function(){this.player.stop()},o.pausePlayer=function(){this.player.pause()},o.unpausePlayer=function(){this.player.unpause()},o.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},o.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},o.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},r.Player=n,r})}(pt)),pt.exports}var gt={exports:{}},Mi;function Tr(){return Mi||(Mi=1,function(s){(function(e,t){s.exports?s.exports=t(e,Ce(),we()):t(e,e.Flickity,e.fizzyUIUtils)})(window,function(t,i,r){function n(c){var a=document.createDocumentFragment();
22return c.forEach(function(l){a.appendChild(l.element)}),a}var o=i.prototype;return o.insert=function(c,a){var l=this._makeCells(c);if(!(!l||!l.length)){var h=this.cells.length;a=a===void 0?h:a;var u=n(l),y=a==h;if(y)this.slider.appendChild(u);else{var d=this.cells[a].element;this.slider.insertBefore(u,d)}if(a===0)this.cells=l.concat(this.cells);else if(y)this.cells=this.cells.concat(l);else{var p=this.cells.splice(a,h-a);this.cells=this.cells.concat(l).concat(p)}this._sizeCells(l),this.cellChange(a,!0)}},o.append=function(c){this.insert(c,this.cells.length)},o.prepend=function(c){this.insert(c,0)},o.remove=function(c){var a=this.getCells(c);if(!(!a||!a.length)){var l=this.cells.length-1;a.forEach(function(h){h.remove();var u=this.cells.indexOf(h);l=Math.min(u,l),r.removeFrom(this.cells,h)},this),this.cellChange(l,!0)}},o.cellSizeChange=function(c){var a=this.getCell(c);if(a){a.getSize();var l=this.cells.indexOf(a);this.cellChange(l)}},o.cellChange=function(c,a){var l=this.selectedElement;this._positionCells(c),this._getWrapShiftCells(),this.setGallerySize();var h=this.getCell(l);h&&(this.selectedIndex=this.getCellSlideIndex(h)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[c]),this.select(this.selectedIndex),a&&this.positionSliderAtSelected()},i})}(gt)),gt.exports}var vt={exports:{}},Bi;function Pr(){return Bi||(Bi=1,function(s){(function(e,t){s.exports?s.exports=t(e,Ce(),we()):t(e,e.Flickity,e.fizzyUIUtils)})(window,function(t,i,r){i.createMethods.push("_createLazyload");var n=i.prototype;n._createLazyload=function(){this.on("select",this.lazyLoad)},n.lazyLoad=function(){var a=this.options.lazyLoad;if(a){var l=typeof a=="number"?a:0,h=this.getAdjacentCellElements(l),u=[];h.forEach(function(y){var d=o(y);u=u.concat(d)}),u.forEach(function(y){new c(y,this)},this)}};function o(a){if(a.nodeName=="IMG"){var l=a.getAttribute("data-flickity-lazyload"),h=a.getAttribute("data-flickity-lazyload-src"),u=a.getAttribute("data-flickity-lazyload-srcset");if(l||h||u)return[a]}var y="img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]",d=a.querySelectorAll(y);return r.makeArray(d)}function c(a,l){this.img=a,this.flickity=l,this.load()}return c.prototype.handleEvent=r.handleEvent,c.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);var a=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),l=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=a,l&&this.img.setAttribute("srcset",l),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},c.prototype.onload=function(a){this.complete(a,"flickity-lazyloaded")},c.prototype.onerror=function(a){this.complete(a,"flickity-lazyerror")},c.prototype.complete=function(a,l){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var h=this.flickity.getParentCell(this.img),u=h&&h.element;this.flickity.cellSizeChange(u),this.img.classList.add(l),this.flickity.dispatchEvent("lazyLoad",a,u)},i.LazyLoader=c,i})}(vt)),vt.exports}/*! 23 * Flickity v2.3.0 24 * Touch, responsive, flickable carousels 25 * 26 * Licensed GPLv3 for open source use 27 * or Flickity Commercial License for commercial use 28 * 29 * https://flickity.metafizzy.co 30 * Copyright 2015-2021 Metafizzy 31 */var Ri;function Ms(){return Ri||(Ri=1,function(s){(function(e,t){s.exports&&(s.exports=t(Ce(),Lr(),Cr(),Ar(),qr(),Tr(),Pr()))})(window,function(t){return t})}(tt)),tt.exports}var Or=Ms();const ai=je(Or);var Ir=function(){for(var s="clipPath",e=["webkit","moz","ms","o"],t=[s],i=document.createElement("testelement"),r="polygon(50% 0%, 0% 100%, 100% 100%)",n=0,o=e.length;n<o;n++){var c=e[n]+s.charAt(0).toUpperCase()+s.slice(1);t.push(c)}for(var n=0,o=t.length;n<o;n++){var a=t[n];if(i.style[a]===""&&(i.style[a]=r,i.style[a]!==""))return!0}return!1};const Dr=Ir();let Ni={};class li{constructor(e){this.root=e,this.list=this.root.querySelector(".u-slider__list"),this.prevBtn=this.root.querySelector(".u-slider__pagination__prev"),this.nextBtn=this.root.querySelector(".u-slider__pagination__next"),this.videoSlides=this.root.querySelectorAll(".u-slider__slide.has-video"),this.id=P.uniqueId("slider_"),this.root.dataset.id=this.id,Ni[this.id]=this,this.hasVideoPlaying=!1,this.bind()}static getInstanceByElement(e){if(!(!e.dataset||!e.dataset.id))return Ni[e.dataset.id]}bind(){this.transition=this.transition.bind(this),this.basicTransition=this.basicTransition.bind(this);const e=Dr?this.transition:this.basicTransition;this.slidy=new Is.Slidy(this.list,{controls:!1,transition:e,click:!1,afterInit:function(){this.items[0].style.zIndex=5,P.forEach(this.items,t=>{t.style.display="block"})}}),this.goPrev=this.goPrev.bind(this),this.goNext=this.goNext.bind(this),this.prevBtn.addEventListener("click",this.goPrev),this.nextBtn.addEventListener("click",this.goNext),this.onVideoClick=this.onVideoClick.bind(this),this.videoSlides.forEac
31h(t=>{const i=t.querySelector(".u-slider__slide__video-overlay");i&&i.addEventListener("click",this.onVideoClick)})}destroy(){}goPrev(e){e&&e.preventDefault(),this.slidy.slidePrev()}goNext(e){e&&e.preventDefault(),this.slidy.slideNext()}transition(e,t,i){this.hasVideoPlaying&&this.deleteIframe(),e.style.zIndex=5,t.style.zIndex=1;let r=i==="next"?0:100,n=i==="next"?100:0,o={tl:r,tr:n,br:n,bl:r},c=[[o.tl,0],[o.tr,0],[o.br,100],[o.bl,100]];const a=$.timeline({autoplay:!1}),l=new Promise(h=>{a.add({targets:o,tl:[{value:n,duration:1e3,delay:75,easing:"easeInOutQuart"}],tr:[{value:n,duration:1e3,delay:75,easing:"easeInOutQuart"}],br:[{value:n,duration:1e3,delay:0,easing:"easeInOutQuart"}],bl:[{value:n,duration:1e3,delay:0,easing:"easeInOutQuart"}],update:()=>{c[0][0]=o.tl,c[1][0]=o.tr,c[2][0]=o.br,c[3][0]=o.bl,this.applyClip(e,c)}}).add({targets:t.querySelector("img"),scale:1.1,duration:1e3,easing:"easeOutQuart",complete:()=>{t.style.zIndex=5,e.style.zIndex=0,e.querySelector("img").style.transform="",this.cleanClip(e),h()},offset:"-=500"})});return a.play(),a.finished=l,l}basicTransition(e,t,i){return this.hasVideoPlaying&&this.deleteIframe(),e.style.zIndex=5,t.style.display="block",t.style.zIndex=4,$({targets:e,opacity:0,complete:()=>{e.style.display="none",e.style.zIndex=0,e.style.opacity=1,t.style.zIndex=5}}).finished}applyClip(e,t){let i=[];P.forEach(t,n=>{const[o,c]=n;i.push(`${o}% ${c}%`)});const r=`polygon(${i.join(",")})`;e.style.clipPath=r,e.style.webkitClipPath=r}cleanClip(e){e.style.clipPath="",e.style.webkitClipPath=""}createIframe(e){const t=document.createElement("iframe");return t.allowFullscreen=!0,t.src=e,t}deleteIframe(){const e=this.root.querySelector(".has-video.is-playing");if(!e)return;const t=e.querySelector("iframe");t.parentNode.removeChild(t),e.classList.remove("is-playing"),this.hasVideoPlaying=!1}onVideoClick(e){e.preventDefault(),e.stopPropagation();const{currentTarget:t}=e,i=t.parentNode,r=i.querySelector(".u-slider__slide__video-iframe");if(r&&r.children.length===0){const n=this.createIframe(r.dataset.src);r.appendChild(n),i.classList.add("is-playing"),this.hasVideoPlaying=!0}}}class zr{constructor(e){this.root=e,this.current=0,this.contentSliderEl=this.root.querySelector(".u-focus__slider"),this.imageSliderEl=this.root.querySelector(".u-slider"),this.slides=this.root.querySelectorAll(".u-slider__slide"),this.thumbsList=this.root.querySelector(".u-focus__thumbs__list"),this.thumbs=this.root.querySelectorAll(".u-focus__thumbs__list > li"),this.prevBtn=this.root.querySelector(".u-focus__thumbs .u-slider__pagination__prev"),this.nextBtn=this.root.querySelector(".u-focus__thumbs .u-slider__pagination__next"),this.currentPageEl=this.root.querySelector(".u-focus__thumbs .u-slider__pagination__pages__current"),this.bind()}bind(){this.slides.length&&(this.imageSlider=li.getInstanceByElement(this.imageSliderEl),this.contentSlider=new ai(this.contentSliderEl,{draggable:!1,accessibility:!1,prevNextButtons:!1,pageDots:!1}),P.forEach(this.thumbs,(e,t)=>{e.addEventListener("click",()=>this.select(t,!0))}),this.prevBtn&&this.prevBtn.addEventListener("click",this.prev.bind(this)),this.nextBtn&&this.nextBtn.addEventListener("click",this.next.bind(this)))}destroy(){}selectThumb(e){P.forEach(this.thumbs,(t,i)=>{const r=e===i?"add":"remove";t.classList[r]("u-focus__thumbs__active")}),this.slideToThumb(e)}slideToThumb(e){const i=this.root.querySelector(".u-focus__thumbs__list-outer");if(Y.isLessThan("medium")){const r=e*80;i.scroll({top:0,left:r,behavior:"smooth"})}else{const r=e*80;i.scroll({top:r,left:0,behavior:"smooth"})}}next(){this.imageSlider.slidy._queue._isAnimating||(this.imageSlider.slidy.slideNext(),this.select(this.current+1))}prev(){this.imageSlider.slidy._queue._isAnimating||(this.imageSlider.slidy.slidePrev(),this.select(this.current-1))}select(e,t=!1){if(e===this.current)return;const i=this.contentSlider.slides.length;if(e<0&&(e=i-1),e=e%i,t&&this.imageSlider.slidy.slideTo(e),this.contentSlider.select(e),this.selectThumb(e),this.currentPageEl){const r=e+1;this.currentPageEl.innerHTML=r<10?`0${r}`:r}this.current=e}}class Bs{constructor(e){e&&(this.root=e,this.img=this.root.querySelector(".u-mosaic__picture__img"),this.src=this.img.src,this.srcset=this.img.srcset,this.link=this.root.querySelector(".u-mosaic__picture__link"),this.overlayerParent=document.querySelector(".u-mosaic-overlayer"),this.overlayer=null,this.bind())}bind(){this.open=this.open.bind(this),this.close=this.close.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.createElement=this.createElement.bind(this),this.link.addEventListener("click",this.open),window.addEventListener("keyup",this.onKeyUp)}open(e){e.preventDefault(),e.stopPropagation(),!this.isOpen&&(document.body.classList.add("no-scroll"),this.overlayerParent&&(this.overlayerParent.style.overflow="hidden"),this.createElement(),this.isOpen=!0)}close(e){e.preventDefault(),e.stopPropagation(),this.isOpen&&$({targets:this.overlayer,opacity:0,duration:200,easing:"easeInExpo",complete:()=>{this.root.removeChild(this.overlayer),this.overlayerParent?this.overlayerParent.removeAttribute("style"):document.body.classList.remove("no-scroll"),this.isOpen=!1}})}createElement(){this.overlayer=document.createElement("div"),this.overlayer.style.opacity=0,this.overlayer.classList.add("u-mosaic__picture__fullscreen");const e=document.createElement("img");e.src=this.src,e.srcset=this.srcset;const t=document.createElement("button");this.overlayer.appendChild(e),this.overlayer.appendChild(t),this.root.appendChild(this.overlayer),this.overlayer.addEventListener("click",this.close),t.focu
31s(),$({targets:this.overlayer,opacity:[0,1],duration:800,easing:"easeOutExpo"})}onKeyUp(e){this.isOpen&&e.key==="Escape"?this.close(e):this.isOpen&&e.key==="Tab"&&this.button.focus()}destroy(){window.removeEventListener("keyup",this.onKeyUp)}}var mt={exports:{}},Ye={exports:{}};/*! 32 * imagesLoaded v4.1.4 33 * JavaScript is all like "You images are done yet or what?" 34 * MIT License 35 */var Mr=Ye.exports,Fi;function Br(){return Fi||(Fi=1,function(s){(function(e,t){s.exports?s.exports=t(e,Je()):e.imagesLoaded=t(e,e.EvEmitter)})(typeof window<"u"?window:Mr,function(t,i){var r=t.jQuery,n=t.console;function o(d,p){for(var g in p)d[g]=p[g];return d}var c=Array.prototype.slice;function a(d){if(Array.isArray(d))return d;var p=typeof d=="object"&&typeof d.length=="number";return p?c.call(d):[d]}function l(d,p,g){if(!(this instanceof l))return new l(d,p,g);var m=d;if(typeof d=="string"&&(m=document.querySelectorAll(d)),!m){n.error("Bad element for imagesLoaded "+(m||d));return}this.elements=a(m),this.options=o({},this.options),typeof p=="function"?g=p:o(this.options,p),g&&this.on("always",g),this.getImages(),r&&(this.jqDeferred=new r.Deferred),setTimeout(this.check.bind(this))}l.prototype=Object.create(i.prototype),l.prototype.options={},l.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},l.prototype.addElementImages=function(d){d.nodeName=="IMG"&&this.addImage(d),this.options.background===!0&&this.addElementBackgroundImages(d);var p=d.nodeType;if(!(!p||!h[p])){for(var g=d.querySelectorAll("img"),m=0;m<g.length;m++){var B=g[m];this.addImage(B)}if(typeof this.options.background=="string"){var f=d.querySelectorAll(this.options.background);for(m=0;m<f.length;m++){var S=f[m];this.addElementBackgroundImages(S)}}}};var h={1:!0,9:!0,11:!0};l.prototype.addElementBackgroundImages=function(d){var p=getComputedStyle(d);if(p)for(var g=/url\((['"])?(.*?)\1\)/gi,m=g.exec(p.backgroundImage);m!==null;){var B=m&&m[2];B&&this.addBackground(B,d),m=g.exec(p.backgroundImage)}},l.prototype.addImage=function(d){var p=new u(d);this.images.push(p)},l.prototype.addBackground=function(d,p){var g=new y(d,p);this.images.push(g)},l.prototype.check=function(){var d=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length){this.complete();return}function p(g,m,B){setTimeout(function(){d.progress(g,m,B)})}this.images.forEach(function(g){g.once("progress",p),g.check()})},l.prototype.progress=function(d,p,g){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!d.isLoaded,this.emitEvent("progress",[this,d,p]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,d),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&n&&n.log("progress: "+g,d,p)},l.prototype.complete=function(){var d=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(d,[this]),this.emitEvent("always",[this]),this.jqDeferred){var p=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[p](this)}};function u(d){this.img=d}u.prototype=Object.create(i.prototype),u.prototype.check=function(){var d=this.getIsImageComplete();if(d){this.confirm(this.img.naturalWidth!==0,"naturalWidth");return}this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src},u.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},u.prototype.confirm=function(d,p){this.isLoaded=d,this.emitEvent("progress",[this,this.img,p])},u.prototype.handleEvent=function(d){var p="on"+d.type;this[p]&&this[p](d)},u.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},u.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},u.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)};function y(d,p){this.url=d,this.element=p,this.img=new Image}return y.prototype=Object.create(u.prototype),y.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var d=this.getIsImageComplete();
35d&&(this.confirm(this.img.naturalWidth!==0,"naturalWidth"),this.unbindEvents())},y.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},y.prototype.confirm=function(d,p){this.isLoaded=d,this.emitEvent("progress",[this,this.element,p])},l.makeJQueryPlugin=function(d){d=d||t.jQuery,d&&(r=d,r.fn.imagesLoaded=function(p,g){var m=new l(this,p,g);return m.jqDeferred.promise(r(this))})},l.makeJQueryPlugin(),l})}(Ye)),Ye.exports}/*! 36 * Flickity imagesLoaded v2.0.0 37 * enables imagesLoaded option for Flickity 38 */var Wi;function Rr(){return Wi||(Wi=1,function(s){(function(e,t){s.exports?s.exports=t(e,Ms(),Br()):e.Flickity=t(e,e.Flickity,e.imagesLoaded)})(window,function(t,i,r){i.createMethods.push("_createImagesLoaded");var n=i.prototype;return n._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)},n.imagesLoaded=function(){if(!this.options.imagesLoaded)return;var o=this;function c(a,l){var h=o.getParentCell(l.img);o.cellSizeChange(h&&h.element),o.options.freeScroll||o.positionSliderAtSelected()}r(this.slider).on("progress",c)},i})}(mt)),mt.exports}var Nr=Rr();const Fr=je(Nr);class Wr{constructor(e){this.root=e,this.list=this.root.querySelector(".u-gallery__list"),this.prevBtn=this.root.querySelector(".u-slider__pagination__prev"),this.nextBtn=this.root.querySelector(".u-slider__pagination__next"),this.init()}
38async init(){this.bind(),this.root.classList.add("is-loading"),await this.waitForPicturesLoad(),this.root.classList.remove("is-loading"),this.shouldSlide()?this.initSlider():window.addEventListener("viewport:resize",this.onResize)}bind(){this.goPrev=this.goPrev.bind(this),this.goNext=this.goNext.bind(this),this.onResize=hr(200,this.onResize.bind(this))}waitForPicturesLoad(){const e=[];return this.list.querySelectorAll(".u-gallery__slide img").forEach(t=>{e.push(new Promise(i=>{t.complete?i():t.onload=()=>{i()}}))}),Promise.all(e)}shouldSlide(){return this.list.clientWidth>window.innerWidth}shouldWrap(){const e=Array.from(this.list.children).map(i=>{var r;return((r=i.querySelector("img"))==null?void 0:r.clientWidth)+40||0}).sort((i,r)=>i>r?-1:1);return e.reduce((i,r)=>i+r,0)-window.innerWidth>e[0]}initSlider(){const e=this.list.getAttribute("data-start-index")?parseInt(this.list.getAttribute("data-start-index"),10):Math.floor(this.list.children.length/2);this.list.classList.add("flickity-ready"),this.flkty=new Fr(this.list,{prevNextButtons:!1,pageDots:!1,initialIndex:e,wrapAround:this.shouldWrap(),imagesLoaded:!0,on:{resize:()=>{if(this.flkty.slideableWidth<window.innerWidth){this.destroySlider();return}this.shouldWrap()!==this.flkty.wrapAround&&(this.destroySlider(),this.init())}}}),this.prevBtn.addEventListener("click",this.goPrev),this.nextBtn.addEventListener("click",this.goNext),window.removeEventListener("viewport:resize",this.onResize)}destroySlider(){this.flkty.destroy(),this.flkty=null,this.list.classList.remove("flickity-ready"),this.prevBtn.removeEventListener("click",this.goPrev),this.nextBtn.removeEventListener("click",this.goNext),window.addEventListener("viewport:resize",this.onResize)}goPrev(e){e&&e.preventDefault(),this.flkty.previous()}goNext(e){e&&e.preventDefault(),this.flkty.next()}onResize(){this.shouldSlide()&&!this.flkty&&(this.initSlider(),window.removeEventListener("viewport:resize",this.onResize))}destroy(){}}var Xe={exports:{}};/*! 39 * VERSION: 0.5.7 40 * DATE: 2017-06-19 41 * UPDATES AND DOCS AT: http://greensock.com 42 * 43 * @license Copyright (c) 2008-2017, GreenSock. All rights reserved. 44 * SplitText is a Club GreenSock membership benefit; You must have a valid membership to use 45 * this code without violating the terms of use. Visit http://greensock.com/club/ to sign up or get more details. 46 * This work is subject to the software agreement that was issued with your membership. 47 * 48 * @author: Jack Doyle, [email protected] 49 */var jr=Xe.exports,ji;function $r(){return ji||(ji=1,function(s){var e=s.exports&&typeof Ie<"u"?Ie:jr||window;(function(t){var i=t.GreenSockGlobals||t,r=function(v){var L=v.split("."),R=i,b;for(b=0;b<L.length;b++)R[L[b]]=R=R[L[b]]||{};return R},n=r("com.greensock.utils"),o=function(v){var L=v.nodeType,R="";if(L===1||L===9||L===11){if(typeof v.textContent=="string")return v.textContent;for(v=v.firstChild;v;v=v.nextSibling)R+=o(v)}else if(L===3||L===4)return v.nodeValue;return R},c=document,a=c.defaultView?c.defaultView.getComputedStyle:function(){},l=/([A-Z])/g,h=function(v,L,R,b){var w;return(R=R||a(v,null))?(v=R.getPropertyValue(L.replace(l,"-$1").toLowerCase()),w=v||R.length?v:R[L]):v.currentStyle&&(R=v.currentStyle,w=R[L]),b?w:parseInt(w,10)||0},u=function(v){return!!(v.length&&v[0]&&(v[0].nodeType&&v[0].style&&!v.nodeType||v[0].length&&v[0][0]))},y=function(v){var L=[],R=v.length,b,w,E;for(b=0;b<R;b++)if(w=v[b],u(w))for(E=w.length,E=0;E<w.length;E++)L.push(w[E]);else L.push(w);return L},d=/(?:\r|\n|\t\t)/g,p=/(?:\s\s+)/g,g=55296,m=56319,B=56320,f=127462,S=127487,T=127995,k=127999,_=function(v){return(v.charCodeAt(0)-g<<10)+(v.charCodeAt(1)-B)+65536},O=c.all&&!c.addEventListener,X=" style='position:relative;display:inline-block;"+(O?"*display:inline;*zoom:1;'":"'"),H=function(v,L){v=v||"";var R=v.indexOf("++")!==-1,b=1;return R&&(v=v.split("++").join("")),function(){return"<"+L+X+(v?" class='"+v+(R?b++:"")+"'>":">")}},J=n.SplitText=i.SplitText=function(v,L){if(typeof v=="string"&&(v=J.selector(v)),!v)throw"cannot split a null element.";this.elements=u(v)?y(v):[v],this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=L||{},this.split(L)},x=function(v,L,R){var b=v.nodeType;if(b===1||b===9||b===11)for(v=v.firstChild;v;v=v.nextSibling)x(v,L,R);else(b===3||b===4)&&(v.nodeValue=v.nodeValue.split(L).join(R))},z=function(v,L){for(var R=L.length;--R>-1;)v.push(L[R])},N=function(v){var L=[],R=v.length,b;for(b=0;b!==R;L.push(v[b++]));return L},q=function(v,L,R){for(var b;v&&v!==L;){if(b=v._next||v.nextSibling,b)return b.textContent.charAt(0)===R;v=v.parentNode||v._parent}return!1},D=function(v){var L=N(v.childNodes),R=L.length,b,w;for(b=0;b<R;b++)w=L[b],w._isSplit?D(w):(b&&w.previousSibling.nodeType===3?w.previousSibling.nodeValue+=w.nodeType===3?w.nodeValue:w.firstChild.nodeValue:w.nodeType!==3&&v.insertBefore(w.firstChild,w),v.removeChild(w))},M=function(v,L,R,b,w,E,A){var I=a(v),W=h(v,"paddingLeft",I),j=-999,te=h(v,"borderBottomWidth",I)+h(v,"borderTopWidth",I),re=h(v,"borderLeftWidth",I)+h(v,"borderRightWidth",I),F=h(v,"paddingTop",I)+h(v,"paddingBottom",I),U=h(v,"paddingLeft",I)+
49h(v,"paddingRight",I),Q=h(v,"fontSize")*.2,xe=h(v,"textAlign",I,!0),Ee=[],ne=[],Te=[],ke=L.wordDelimiter||" ",ve=L.span?"span":"div",_e=L.type||L.split||"chars,words,lines",se=w&&_e.indexOf("lines")!==-1?[]:null,me=_e.indexOf("words")!==-1,Pe=_e.indexOf("chars")!==-1,ae=L.position==="absolute"||L.absolute===!0,Ne=L.linesClass,mi=(Ne||"").indexOf("++")!==-1,Ve=[],G,de,fe,C,Oe,pe,Le,yi,ge,K,bi,ce;for(se&&v.children.length===1&&v.children[0]._isSplit&&(v=v.children[0]),mi&&(Ne=Ne.split("++").join("")),de=v.getElementsByTagName("*"),fe=de.length,Oe=[],G=0;G<fe;G++)Oe[G]=de[G];if(se||ae)for(G=0;G<fe;G++)C=Oe[G],pe=C.parentNode===v,(pe||ae||Pe&&!me)&&(ce=C.offsetTop,se&&pe&&Math.abs(ce-j)>Q&&C.nodeName!=="BR"&&(Le=[],se.push(Le),j=ce),ae&&(C._x=C.offsetLeft,C._y=ce,C._w=C.offsetWidth,C._h=C.offsetHeight),se&&((C._isSplit&&pe||!Pe&&pe||me&&pe||!me&&C.parentNode.parentNode===v&&!C.parentNode._isSplit)&&(Le.push(C),C._x-=W,q(C,v,ke)&&(C._wordEnd=!0)),C.nodeName==="BR"&&C.nextSibling&&C.nextSibling.nodeName==="BR"&&se.push([])));for(G=0;G<fe;G++){if(C=Oe[G],pe=C.parentNode===v,C.nodeName==="BR"){se||ae?(C.parentNode&&C.parentNode.removeChild(C),Oe.splice(G--,1),fe--):me||v.appendChild(C);continue}ae&&(ge=C.style,!me&&!pe&&(C._x+=C.parentNode._x,C._y+=C.parentNode._y),ge.left=C._x+"px",ge.top=C._y+"px",ge.position="absolute",ge.display="block",ge.width=C._w+1+"px",ge.height=C._h+"px"),!me&&Pe?C._isSplit?(C._next=C.nextSibling,C.parentNode.appendChild(C)):C.parentNode._isSplit?(C._parent=C.parentNode,!C.previousSibling&&C.firstChild&&(C.firstChild._isFirst=!0),C.nextSibling&&C.nextSibling.textContent===" "&&!C.nextSibling.nextSibling&&Ve.push(C.nextSibling),C._next=C.nextSibling&&C.nextSibling._isFirst?null:C.nextSibling,C.parentNode.removeChild(C),Oe.splice(G--,1),fe--):pe||(ce=!C.nextSibling&&q(C.parentNode,v,ke),C.parentNode._parent&&C.parentNode._parent.appendChild(C),ce&&C.parentNode.appendChild(c.createTextNode(" ")),L.span&&(C.style.display="inline"),Ee.push(C)):C.parentNode._isSplit&&!C._isSplit&&C.innerHTML!==""?ne.push(C):Pe&&!C._isSplit&&(L.span&&(C.style.display="inline"),Ee.push(C))}for(G=Ve.length;--G>-1;)Ve[G].parentNode.removeChild(Ve[G]);if(se){for(ae&&(K=c.createElement(ve),v.appendChild(K),bi=K.offsetWidth+"px",ce=K.offsetParent===v?0:v.offsetLeft,v.removeChild(K)),ge=v.style.cssText,v.style.cssText="display:none;";v.firstChild;)v.removeChild(v.firstChild);for(yi=ke===" "&&(!ae||!me&&!Pe),G=0;G<se.length;G++){for(Le=se[G],K=c.createElement(ve),K.style.cssText="display:block;text-align:"+xe+";position:"+(ae?"absolute;":"relative;"),Ne&&(K.className=Ne+(mi?G+1:"")),Te.push(K),fe=Le.length,de=0;de<fe;de++)Le[de].nodeName!=="BR"&&(C=Le[de],K.appendChild(C),yi&&C._wordEnd&&K.appendChild(c.createTextNode(" ")),ae&&(de===0&&(K.style.top=C._y+"px",K.style.left=W+ce+"px"),C.style.top="0px",ce&&(C.style.left=C._x-ce+"px")));fe===0?K.innerHTML=" ":!me&&!Pe&&(D(K),x(K,"Â "," ")),ae&&(K.style.width=bi,K.style.height=C._h+"px"),v.appendChild(K)}v.style.cssText=ge}ae&&(A>v.clientHeight&&(v.style.height=A-F+"px",v.clientHeight<A&&(v.style.height=A+te+"px")),E>v.clientWidth&&(v.style.width=E-U+"px",v.clientWidth<E&&(v.style.width=E+re+"px"))),z(R,Ee),z(b,ne),z(w,Te)},ee=function(v,L,R,b){var w=L.span?"span":"div",E=L.type||L.split||"chars,words,lines";E.indexOf("words");var A=E.indexOf("chars")!==-1,I=L.position==="absolute"||L.absolute===!0,W=L.wordDelimiter||" ",j=W!==" "?"":I?"­ ":" ",te=L.span?"</span>":"</div>",re=!0,F,U,Q,xe,Ee,ne,Te,ke,ve,_e=c.createElement("div"),se=v.parentNode;for(se.insertBefore(_e,v),_e.textContent=v.nodeValue,se.removeChild(v),v=_e,F=o(v),Te=F.indexOf("<")!==-1,L.reduceWhiteSpace!==!1&&(F=F.replace(p," ").replace(d,"")),Te&&(F=F.split("<").join("{{LT}}")),Ee=F.length,U=(F.charAt(0)===" "?j:"")+R(),Q=0;Q<Ee;Q++)if(ne=F.charAt(Q),ne===W&&F.charAt(Q-1)!==W&&Q){for(U+=re?te:"",re=!1;F.charAt(Q+1)===W;)U+=j,Q++;Q===Ee-1?U+=j:F.charAt(Q+1)!==")"&&(U+=j+R(),re=!0)}else ne==="{"&&F.substr(Q,6)==="{{LT}}"?(U+=A?b()+"{{LT}}</"+w+">":"{{LT}}",Q+=5):ne.charCodeAt(0)>=g&&ne.charCodeAt(0)<=m||F.charCodeAt(Q+1)>=65024&&F.charCodeAt(Q+1)<=65039?(ke=_(F.substr(Q,2)),ve=_(F.substr(Q+2,2)),xe=ke>=f&&ke<=S&&ve>=f&&ve<=S||ve>=T&&ve<=k?4:2,U+=A&&ne!==" "?b()+F.substr(Q,xe)+"</"+w+">":F.substr(Q,xe),Q+=xe-1):U+=A&&ne!==" "?b()+ne+"</"+w+">":ne;v.outerHTML=U+(re?te:""),Te&&x(se,"{{LT}}","<")},le=function(v,L,R,b){var w=N(v.childNodes),E=w.length,A=L.position==="absolute"||L.absolute===!0,I,W;if(v.nodeType!==3||E>1){for(L.absolute=!1,I=0;I<E;I++)W=w[I],(W.nodeType!==3||/\S+/.test(W.nodeValue))&&(A&&W.nodeType!==3&&h(W,"display",null,!0)==="inline"&&(W.style.display="inline-block",W.style.position="relative"),W._isSplit=!0,le(W,L,R,b));L.absolute=A,v._isSplit=!0;return}ee(v,L,R,b)},qe=J.prototype;qe.split=function(v){this.isSplit&&this.revert(),this.vars=v=v||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;var L=this.elements.length,R=v.span?"span":"div";v.position==="absolute"||v.absolute;for(var b=H(v.wordsClass,R),w=H(v.charsClass,R),E,A,I;--L>-1;)I=this.elements[L],this._originals[L]=I.innerHTML,E=I.clientHeight,A=I.clientWidth,le(I,v,b,w),M(I,v,this.chars,this.words,this.lines,A,E);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},qe.revert=function(){if(!this._originals)throw"revert() call wasn't scoped properly.";for(var v=this._originals.length;--v>-1;)this.elements[v].innerHTML=this._originals[v];return this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},J.selector=t.$||t.jQuery||function(v){var L=t.$||t.jQuery;return L?(J.selector=L,L(v)):typeof document>"u"?v:document.querySelectorAll?document.querySelectorAll(v):document.getElementById(v.charAt(0)==="#"?v.substr(1):v)},J.version="0.5.7"})(e),function(t){var i=function(){return(e.GreenSockGlobals||e)[t]};s.exports&&(s.exports=i())}("SplitText")}(Xe)),Xe.exports}var Hr=$r();const Rs=je(Hr);
49class Ur{constructor(e){if(e){if(this.$el=e,this.isPlayed=sessionStorage.getItem("homepage-onboarding-played"),this.isPlayed){this.$el.classList.add("is-completed");return}this.$logo=this.$el.querySelector('[data-ref="home-onboarding.logo"]'),this.$polygons=this.$logo.querySelectorAll("polygon"),this.$title=this.$el.querySelector('[data-ref="home-onboarding.title"]'),this.$top=this.$el.querySelector('[data-ref="home-onboarding.top"]'),this.$bottom=this.$el.querySelector('[data-ref="home-onboarding.bottom"]'),this.slogan=new Rs(this.$title,{type:"chars"}),this.$content=this.$el.querySelector(".u-card__content"),this.$mainLogo=document.querySelector(".u-nav-portal__logo"),this.$mainNav=document.querySelector(".u-nav-portal__list"),this.$langSwitcher=document.querySelector(".u-nav-portal .js-nav-lang"),this.$user=document.querySelector(".u-nav-portal .js-nav-user"),this.$navContainer=document.querySelector(".u-nav-portal"),this.$mainQuickNav=[this.$mainLogo,this.$mainNav,...document.querySelectorAll(".u-nav-quicklinks__item"),this.$langSwitcher,this.$user],this.play()}}play(){const e=$.timeline({autoplay:!1});e.add({targets:this.$title,scaleX:{value:[.8,1],duration:2e3,easing:"easeOutCirc"},opacity:{value:1,duration:200,easing:"easeOutQuart"}}).add({targets:this.slogan.chars,offset:0,opacity:{value:1,duration:1e3,delay:(t,i)=>i*50}}).add({targets:this.$polygons,offset:0,opacity:{value:1,duration:1200,delay:(t,i)=>i*50}}).add({targets:[this.$logo,this.$title],opacity:{value:0,duration:1}}).add({targets:[this.$top,this.$bottom],offset:"+=100",scaleY:{value:0,duration:600},easing:"easeInOutQuart"}).add({targets:this.$content,offset:"-=300",opacity:{value:1,duration:300},translateY:{value:[100,0],duration:300},easing:"easeOutQuad",complete:()=>{this.$el.classList.add("is-completed"),sessionStorage.setItem("homepage-onboarding-played","1")}}),setTimeout(()=>e.play(),1e3)}}class Vr{constructor(e){const t=e.querySelector(".u-mosaic-gallery__list");jQuery(t).justifiedGallery({margins:5})}}class Qr{constructor(e){this.el=e,this.init()}init(){this.lines=[],this.chars=[],this.text=this.el.textContent,this.empty(),this.text.split("").forEach(e=>{const t=document.createElement("span");t.textContent=e,this.chars.push(t),this.el.appendChild(t)}),this.parseChars(),this.writeLines()}parseChars(){let e=null,t=-1;this.chars.forEach(i=>{const r=i.getBoundingClientRect().top;r!==e&&(this.lines.push([]),t++),this.lines[t].push(i.textContent),e=r})}writeLines(){this.empty(),this.lines.forEach(e=>{const t=document.createElement("div"),i=document.createElement("span");t.classList.add("split-lines-outer"),i.classList.add("split-lines-inner"),i.textContent=e.join(""),t.appendChild(i),this.el.appendChild(t)})}empty(){this.el.textContent=""}clear(){this.el.textContent=this.text}}class Gr{constructor(){this.links=document.querySelectorAll('.u-link, [class*="u-link--"]'),this.init()}init(){P.forEach(this.links,e=>{this.split(e)}),this.bind()}split(e){e.innerHTML=e.textContent,new Qr(e)}bind(){window.addEventListener("resize",P.debounce(this.resize.bind(this),250))}resize(){P.forEach(this.links,e=>{this.split(e)})}destroy(){P.forEach(this.links,e=>{this.split(e)})}}class Yr{constructor(e){this.root=e,this.current=0,this.list=this.root.querySelector(".u-map__list"),this.buttons=this.root.querySelectorAll(".u-map__list li"),this.contents=this.root.querySelectorAll("[data-map-content]"),this.mapEurope=this.root.querySelector(".u-map__image__europe"),this.mapBelgium=this.root.querySelector(".u-map__image__belgium"),this.mapLabels=this.root.querySelectorAll(".u-map__image [data-map-label]"),this.list&&this.bind()}bind(){this.onSelect=this.onSelect.bind(this),this.onLabelClick=this.onLabelClick.bind(this),this.flkty=new ai(this.list,{prevNextButtons:!0,pageDots:!1,arrowShape:`M4.8,43.2C1.6,46.4,1.1,51.3,3.4,55c0.4,0.6,0.8,1.2,1.4,1.8l36.4,36.4C45,97,51,97,54.8,93.2c3.8-3.7,3.7-9.8,0-13.6 50 l-20-20l53.6,0c5.3,0,9.6-4.3,9.6-9.6c0-5.3-4.3-9.6-9.6-9.6H34.8l20-20l0,0c3.7-3.7,3.8-9.8,0-13.6C51,3.1,45,3.1,41.2,6.8 51 c0,0,0,0-0.1,0.1L4.8,43.2C4.9,43.2,4.8,43.2,4.8,43.2`,watchCSS:!0,initialIndex:this.current}),P.forEach(this.buttons,(e,t)=>{e.addEventListener("click",i=>{i.preventDefault(),this.flkty.isActive||this.setCurrent(t)})}),P.forEach(this.mapLabels,e=>{e.addEventListener("click",this.onLabelClick)}),this.flkty.on("select",this.onSelect)}onLabelClick(e){e.preventDefault();const t=+e.currentTarget.dataset.mapLabel;t&&this.setCurrent(t)}onSelect(e){const t=this.flkty.selectedIndex;t!==this.current&&this.setCurrent(t)}setCurrent(e){if(e==this.current)return;console.log("setCurrent ",e),this.current=e,this.flkty.select(e),this.clearButtons(),this.clearContents(),this.clearLabels(),this.buttons[e].classList.add("active"),this.contents[e].classList.add("active");const t=this.root.querySelector(`.u-map__image [data-map-label="${e}"]`);t&&t.setAttribute("class","active"),e>0?(this.mapEurope.classList.remove("active"),this.mapBelgium.classList.add("active")):(this.mapEurope.classList.add("active"),this.mapBelgium.classList.remove("active"))}clearButtons(){P.forEach(this.buttons,e=>{e.classList.remove("active")})}clearContents(){P.forEach(this.contents,e=>{e.classList.remove("active")})}clearLabels(){P.forEach(this.mapLabels,e=>
51{e.setAttribute("class","")})}}class Xr{constructor(e){e&&(this.$el=e,this.items=this.$el.querySelectorAll(".u-mosaic-gallery__item-inner"),this.overlayer=this.$el.querySelector(".u-mosaic-overlayer"),this.wrapper=this.overlayer.querySelector(".u-mosaic-overlayer-wrapper"),this.content=this.overlayer.querySelector(".u-mosaic-overlayer__content"),this.closeButton=this.overlayer.querySelector("[data-mosaic-close]"),this.nav=this.overlayer.querySelector(".u-mosaic-overlayer__nav"),this.previousButton=this.overlayer.querySelector("[data-mosaic-previous]"),this.nextButton=this.overlayer.querySelector("[data-mosaic-next]"),this.url=window.location.href,window.history.replaceState("overlayer-closed","",this.url),this.isOpen=!1,this.index=0,this.itemTitle=null,this.itemUrl=null,this.mouse={x:0,y:0},this.bind())}bind(){this.onItemClick=this.onItemClick.bind(this),this.onOverlayerClick=this.onOverlayerClick.bind(this),this.onNavClick=this.onNavClick.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.onPopstate=this.onPopstate.bind(this),this.onMouseMove=this.onMouseMove.bind(this),this.close=this.close.bind(this),this.items.forEach(e=>e.addEventListener("click",this.onItemClick)),this.overlayer.addEventListener("click",this.onOverlayerClick),this.closeButton.addEventListener("click",this.close),this.previousButton.addEventListener("click",this.onNavClick),this.nextButton.addEventListener("click",this.onNavClick),window.addEventListener("keyup",this.onKeyUp),window.addEventListener("popstate",this.onPopstate)}onItemClick(e){e.preventDefault();const t=e.currentTarget;this.feedOverlayer(t)}onOverlayerClick(e){e.target===e.currentTarget&&this.close()}onNavClick(e){e.preventDefault(),e.currentTarget&&(e.currentTarget.hasAttribute("data-mosaic-previous")?this.changeItem(!1):this.changeItem(!0))}onKeyUp(e){!this.isOpen||document.querySelector(".u-mosaic__picture__fullscreen")||(e.key==="ArrowRight"?this.changeItem():e.key==="ArrowLeft"?this.changeItem(!1):e.key==="Escape"&&this.close())}onPopstate(e){if(window.location.href===this.url)this.close(e,!0);else{const t=this.$el.querySelector(`.u-mosaic-gallery__item-inner[href="${window.location.href}"]`);this.feedOverlayer(t)}}changeItem(e=!0){if(this.fullscreen.destroy(),e){if(this.index===this.items.length-1)return;this.index+=1}else{if(this.index===0)return;this.index-=1}const t=document.querySelector(`[data-mosaic-index="${this.index}"]`);$({targets:this.content,opacity:0,duration:600,easing:"easeInExpo",complete:()=>{this.feedOverlayer(t),window.history.replaceState("overlayer-open","",this.itemUrl)}})}feedOverlayer(e){this.index=parseInt(e.dataset.mosaicIndex),this.itemUrl=e.href,this.itemTitle=e.querySelector("span").innerHTML;const t=e.dataset.mosaicId,i=e.dataset.mosaicLang,r=`/galerieMosaiqueServlet?id=${t}&lang=${i}`;fetch(r).then(n=>n.text()).then(n=>{this.content.innerHTML=n,this.fullscreen=new Bs(this.content.querySelector(".u-mosaic__picture-container[data-fullscreen]")),this.isOpen?this.displayChangedContent():this.open()}).catch(n=>{console.error(n)})}open(){window.addEventListener("mousemove",this.onMouseMove),this.previousButton.disabled=this.index===0,this.nextButton.disabled=this.index===this.items.length-1,$.timeline({begin:()=>{this.overlayer.style.display="block",this.wrapper.style.opacity=0,this.nav.style.opacity=0,this.isAnimating=!0,document.body.classList.add("no-scroll"),window.history.pushState("overlayer-open","",this.itemUrl)},complete:()=>{this.isOpen=!0,this.isAnimating=!1,this.overlayer.classList.add("is-visible")}}).add({targets:this.overlayer,opacity:[0,1],duration:500,easing:"easeOutExpo"}).add({targets:this.wrapper,opacity:[0,1],translateY:["100%","0%"],duration:600,easing:"easeOutExpo",complete:()=>{this.wrapper.removeAttribute("style")}},"-=400").add({targets:this.nav,opacity:[0,1],duration:400,easing:"easeOutExpo"})}displayChangedContent(){this.previousButton.disabled=this.index===0,this.nextButton.disabled=this.index===this.items.length-1,$({targets:this.content,opacity:[0,1],duration:600,easing:"easeOutExpo"})}close(e,t=!1){if(!this.isOpen||this.isAnimating)return;window.removeEventListener("mousemove",this.onMouseMove),$.timeline({easing:"easeOutExpo",begin:()=>{this.isAnimating=!0},complete:()=>{document.body.classList.remove("no-scroll"),this.overlayer.removeAttribute("style"),this.overlayer.classList.remove("is-visible"),this.previousButton.removeAttribute("style"),this.nextButton.removeAttribute("style"),this.isOpen=!1,this.isAnimating=!1,this.content.innerHTML="",t||window.history.back()}}).add({targets:this.wrapper,opacity:0,translateY:["0%","100%"],easing:"easeInExpo",duration:250}).add({targets:this.overlayer,opacity:0,duration:500},"200")}onMouseMove(e){Y.isLessThan("large")||(this.mouse.x=e.clientX,this.mouse.y=e.clientY)}}class Ns{constructor(e){!e||e.classList.contains("is-ready")||(this.el=e,this.triggerEl=e.querySelector("[data-filters-trigger]"),this.closeEl=e.querySelector("[data-filters-close]"),this.formEl=e.querySelector("[data-filters-form]"),this.clearEl=e.querySelector("[data-filters-clear]"),this.listEl=e.querySelector("[data-filters-list]"),this.legendsEl=this.formEl.querySelectorAll("legend button"),this.filtersEl=this.formEl.querySelectorAll("[data-filters-item]"),this.checkboxesEl=this.formEl.querySelectorAll('[data-filters-form] input[type="checkbox"]'),this.bind(),this.init())}bind(){this.onTriggerClick=this.onTriggerClick.bind(this),this.onCloseClick=this.onCloseClick.bind(this),this.onClearClick=this.onClearClick.bind(this),this.onFilterClick=this.onFilterClick.bind(this),this.onLegendClick=this.onLegendClick.bind(this),this.onOutsideClick=this.onOutsideClick.bind(this),this.onInput=this.onInput.bind(this),this.onFormSubmit=this.onFormSubmit.bind(this),this.triggerEl.addEventListener("click",this.onTriggerClick),this.closeEl.addEventListener("click",this.onCloseClick),this.clearEl.addEventListener("click",this.onClearClick),this.legendsEl.forEach(e
51=>e.addEventListener("click",this.onLegendClick)),this.checkboxesEl.forEach(e=>e.addEventListener("input",this.onInput)),this.formEl.addEventListener("submit",this.onFormSubmit)}init(){this.el.classList.add("is-ready");const t=new URLSearchParams(window.location.search).getAll("cid").filter(i=>i!=="");for(const i of t){const r=[...this.checkboxesEl].find(a=>a.value===i);if(!r)return;r.checked=!0;const n=r.parentElement.querySelector("label"),o=document.createElement("li"),c=document.createElement("button");c.innerHTML=n.innerHTML,c.dataset.filter=r.value,c.addEventListener("click",this.onFilterClick),o.appendChild(c),this.listEl.appendChild(o)}this.filtersEl.forEach(i=>{if(!i.querySelector("input:checked")){const n=i.querySelector('input[value=""]');n&&(n.checked=!0)}}),t.length===0&&this.listEl.parentElement.classList.add("is-empty")}show(){this.el.classList.add("is-open"),Y.isLessThan("large")?document.body.classList.add("no-scroll"):document.addEventListener("click",this.onOutsideClick)}hide(){this.el.classList.remove("is-open"),document.body.classList.remove("no-scroll"),document.removeEventListener("click",this.onOutsideClick)}onTriggerClick(){this.el.classList.contains("is-open")?this.hide():this.show()}onCloseClick(){this.hide()}onInput(e){const{target:t}=e;if(!t)return;const i=t.closest("[data-filters-item]");if(i)if(t.value==="")t.checked&&i.querySelectorAll('input:not([value=""])').forEach(n=>n.checked=!1);else{const r=i.querySelector('input[value=""]');r&&(r.checked=!i.querySelector("input:checked"))}}onClearClick(){this.formEl.querySelectorAll('input[type="checkbox"]:checked').forEach(t=>t.checked=!1)}onFilterClick(e){const t=e.currentTarget.dataset.filter,i=new URLSearchParams(window.location.search),r=i.getAll("cid");r.includes(t)&&r.splice(r.indexOf(t),1);const n=new URL(window.location.href);n.search="",r.forEach(c=>n.searchParams.append("cid",c));const o=i.get("curDate");o&&n.searchParams.set("curDate",o),window.location.href=n.href}onLegendClick(e){if(Y.isMoreThan("large"))return;const t=e.currentTarget.parentElement.parentElement;t&&t.classList.contains("is-open")?$({targets:t,height:0,paddingBottom:0,easing:"easeOutQuad",duration:350,complete:()=>{t.classList.remove("is-open"),t.removeAttribute("style")}}):t&&$({targets:t,height:t.clientHeight+t.scrollHeight+15,paddingBottom:"15",easing:"easeOutQuad",duration:350,complete:()=>{t.classList.add("is-open"),t.removeAttribute("style")}})}onOutsideClick(e){this.triggerEl.contains(e.target)||this.triggerEl===e.target||this.formEl.contains(e.target)||this.formEl===e.target||this.hide()}onFormSubmit(e){e.preventDefault();const t=new FormData(this.formEl),i=new URL(window.location.href),r=new URLSearchParams(t),n=new URLSearchParams(window.location.search).get("curDate");n&&r.set("curDate",n),i.search=r.toString(),window.location.href=i.href}}class Kr{constructor(e){Z(this,"root");Z(this,"slider");Z(this,"prevBtn");Z(this,"nextBtn");Z(this,"playBtn");Z(this,"pauseBtn");Z(this,"activeClass");Z(this,"slidy");Z(this,"delay");Z(this,"delayTimeout");Z(this,"isPaused");Z(this,"isPausedByUser");Z(this,"observer");Z(this,"pauseAnimation");if(this.root=e,this.slider=this.root.querySelector('[data-ref="slider"]'),this.prevBtn=this.root.querySelector('[data-ref="prev"]'),this.nextBtn=this.root.querySelector('[data-ref="next"]'),this.playBtn=this.root.querySelector('[data-ref="play"]'),this.pauseBtn=this.root.querySelector('[data-ref="pause"]'),this.activeClass="is-active",this.delay=8e3,this.delayTimeout=null,this.isPaused=!1,this.isPausedByUser=!1,this.observer=null,this.pauseAnimation=null,this.slider&&this.slider.children.length<=1){this.root.classList.add("is-static");return}this.bind(),this.init()}bind(){var e,t,i,r;this.transition=this.transition.bind(this),this.onPrev=this.onPrev.bind(this),this.onNext=this.onNext.bind(this),this.onPause=this.onPause.bind(this),this.onPlay=this.onPlay.bind(this),this.onIntersect=this.onIntersect.bind(this),(e=this.prevBtn)==null||e.addEventListener("click",this.onPrev),(t=this.nextBtn)==null||t.addEventListener("click",this.onNext),(i=this.pauseBtn)==null||i.addEventListener("click",this.onPause),(r=this.playBtn)==null||r.addEventListener("click",this.onPlay)}setDelay(){if(this.delayTimeout&&clearTimeout(this.delayTimeout),this.isPaused){this.pauseAnimation&&this.pauseAnimation.pause();return}this.delayTimeout=setTimeout(()=>this.slidy.slideNext(),this.delay),this.pauseAnimation?this.pauseAnimation.restart():this.pauseBtn&&(this.pauseAnimation=Si.timeline().add({targets:this.pauseBtn,duration:this.delay,easing:"linear",update:e=>{this.pauseBtn.style.setProperty("--progress",`${e.progress}%`)}}))}init(){if(!this.slider)return;this.slidy=new Is.Slidy(this.slider,{controls:!1,nav:!1,transition:this.transition,click:!1,swipe:!0,resize:!0,afterInit:()=>{var i,r;
51(r=(i=this.slider)==null?void 0:i.querySelector(":scope > li:first-child"))==null||r.classList.add(this.activeClass),this.setSliderHeight(),this.root.classList.add("is-active");const{top:t}=this.root.getBoundingClientRect();t>=0&&this.setDelay()},afterResize:()=>{this.setSliderHeight()},beforeSlide:()=>this.setDelay()});const e={rootMargin:"-50px",threshold:[.5]};this.observer=new IntersectionObserver(this.onIntersect,e),this.observer.observe(this.root)}getSliderHeight(){return this.slider?Array.from(this.slider.children).map(t=>t.clientHeight).sort((t,i)=>t<i?1:-1)[0]:void 0}setSliderHeight(){var e;(e=this.slider)==null||e.removeAttribute("style"),Y.isMoreThan("large")&&(this.slider.style.height=`${this.getSliderHeight()}px`)}transition(e,t,i){const r=e.querySelectorAll(":scope > *:not(figure)"),n=e.querySelector("figure"),o=t.querySelectorAll(":scope > *:not(figure)"),c="easeOutCubic",a=i==="next"?0:100,l=i==="next"?100:0,h={tl:a,tr:l,br:l,bl:a},u=[[h.tl,0],[h.tr,0],[h.br,100],[h.bl,100]];return new Promise(y=>{Si.timeline({complete:()=>
51{[e,t,...r,...o,n].forEach(p=>p==null?void 0:p.removeAttribute("style")),e.classList.remove(this.activeClass),t.classList.add(this.activeClass),y()}}).add({targets:t,opacity:1,offset:0,duration:1,easing:c}).add({targets:o,opacity:0,offset:0,duration:1,easing:c}).add({targets:r,opacity:0,offset:0,duration:200,easing:c}).add({targets:h,tl:[{value:l,duration:1e3,delay:75,easing:"easeInOutQuart"}],tr:[{value:l,duration:1e3,delay:75,easing:"easeInOutQuart"}],br:[{value:l,duration:1e3,delay:0,easing:"easeInOutQuart"}],bl:[{value:l,duration:1e3,delay:0,easing:"easeInOutQuart"}],update:p=>{p.progress!==100&&(u[0][0]=h.tl,u[1][0]=h.tr,u[2][0]=h.br,u[3][0]=h.bl,this.applyClip(n,u))}}).add({targets:this.slider,height:()=>Y.isLessThan("large")?t.clientHeight:"auto",offset:0,duration:200,easing:c}).add({targets:o,offset:300,opacity:[0,1],duration:800,easing:c})})}applyClip(e,t){const i=t.reduce((r,n,o)=>(o>0&&(r=`${r}, `),`${r}${n[0]}% ${n[1]}%`),"");e.style.clipPath=`polygon(${i})`}play(e=!0){var t,i;this.isPaused=!1,(t=this.playBtn)==null||t.classList.add("hidden"),(i=this.pauseBtn)==null||i.classList.remove("hidden"),this.pauseAnimation&&this.pauseAnimation.play(),e?this.slidy.slideNext():this.setDelay()}pause(){var e,t;this.isPaused=!0,(e=this.pauseBtn)==null||e.classList.add("hidden"),(t=this.playBtn)==null||t.classList.remove("hidden"),this.pauseAnimation&&this.pauseAnimation.pause(),this.delayTimeout&&clearTimeout(this.delayTimeout)}onPrev(e){e&&e.preventDefault(),this.delayTimeout&&clearTimeout(this.delayTimeout),this.slidy.slidePrev()}onNext(e){e&&e.preventDefault(),this.delayTimeout&&clearTimeout(this.delayTimeout),this.slidy.slideNext()}onPause(){this.isPaused||(this.isPausedByUser=!0,this.pause())}onPlay(){this.isPaused&&(this.isPausedByUser=!1,this.play())}onIntersect(e){e.forEach(t=>{this.isPausedByUser||(t.isIntersecting?this.isPaused&&this.play(!1):this.isPaused||this.pause())})}}class Zr{constructor(e){e&&(this.$el=e,this.items=this.$el.querySelectorAll("[data-slider-item]"),this.links=this.$el.querySelectorAll("[data-slider-link]"),this.isPlaying=!1,this.bind())}bind(){this.onLinkClick=this.onLinkClick.bind(this),this.links.forEach(e=>e.addEventListener("click",this.onLinkClick))}select(e){const t=this.$el.querySelector("li.is-active"),i=t.querySelector("figure"),r=this.items[e],n=r.querySelector(".u-news-slider__item__content"),o=r.querySelector("figure"),c=r.querySelector("svg");!t||!r||$({targets:[n,o,c],opacity:1,duration:500,easing:"easeOutExpo",begin:()=>{this.isPlaying=!0,i.style.opacity=1,i.style.zIndex=-2,t.classList.remove("is-active")},complete:()=>{i.removeAttribute("style"),r.classList.add("is-active"),n.removeAttribute("style"),o.removeAttribute("style"),c.removeAttribute("style"),this.isPlaying=!1}})}onLinkClick(e){const t=e.currentTarget.dataset.sliderLink-1;if(this.items[t].classList.contains("is-active")){console.log("Active",t);return}e.preventDefault(),this.select(t)}}const De={insertAfter(s,e){s.parentNode.insertBefore(e,s.nextSibling)},siblings(s){return Array.prototype.filter.call(s.parentNode.children,e=>e!==s)},nextSiblings(s){let e=[];for(s=s.nextElementSibling;s;)e.push(s),s=s.nextElementSibling;return e},parents(s,e){for(s=s.parentNode;s&&s!==document;s=s.parentNode)if(s.classList.contains(e))return s;return null},offset(s){return{left:s.getBoundingClientRect().left+document.body.scrollLeft,top:s.getBoundingClientRect().top+document.body.scrollTop}}};class Jr{constructor(e){this.root=e,this.content=this.root.querySelector(".u-card__content"),Y.isMoreThan("medium")&&this.init()}init(){this.hasSlider=!1,this.root.matches(".u-card--hero")&&this.initHero(),this.root.matches(".u-card--full")&&this.initFull()}
51initHero(){this.content.style.clipPath="polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%)",this.content.style.webkitClipPath="polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%)",this.root.querySelector(".u-slider")?(this.hasSlider=!0,this.cover=this.root.querySelector(".u-slider")):this.cover=this.root.querySelector(".u-card__cover-inner"),this.cover.style.clipPath="polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%)",this.cover.style.webkitClipPath="polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%)",this.hasSlider&&(this.pagination=this.cover.querySelector(".u-slider__pagination"),this.pagination.style.opacity=0),this.els=this.content.querySelectorAll(".u-card__content__inner > *"),setTimeout(this.animeHero.bind(this),1e3)}animeHero(){let e=this.initClip().obj,t=this.initClip().coords,i=this.initClip().obj,r=this.initClip().coords;const n=$.timeline({autoplay:!1});n.add({targets:this.els,opacity:0,translateY:30,duration:1}).add({targets:i,top:[{value:100,duration:1500,delay:100,easing:"easeInOutQuart"}],bottom:[{value:100,duration:1500,delay:0,easing:"easeInOutQuart"}],update:()=>{r[1][0]=i.top,r[2][0]=i.bottom,this.applyClip(this.cover,r)}}).add({targets:e,top:[{value:100,duration:1e3,delay:100,easing:"easeInOutQuart"}],bottom:[{value:100,duration:1e3,delay:0,easing:"easeInOutQuart"}],update:()=>{t[1][0]=e.top,t[2][0]=e.bottom,this.applyClip(this.content,t)},offset:400}).add({targets:this.els,opacity:[0,1],translateY:[30,0],duration:500,delay:(o,c)=>c*100,complete:()=>{this.cleanClip(this.cover),this.cleanClip(this.content),this.els.forEac
51h(o=>o.removeAttribute("style"))},easing:"easeOutQuad",offset:"-=350"}),this.hasSlider&&$({targets:this.pagination,opacity:[0,1],duration:500,easing:"easeOutQuad",delay:2500,begin:()=>{this.cleanClip(this.cover),this.cleanClip(this.content)}}),this.setReady(),n.play()}initFull(){this.root.querySelector(".u-slider")?(this.hasSlider=!0,this.cover=this.root.querySelector(".u-slider")):this.cover=this.root.querySelector(".u-card__cover-inner"),this.logo=this.content.querySelector("img"),this.category=this.content.querySelector(".u-card__content__header__category"),this.title=this.content.querySelector(".u-card__content__header__title"),this.subtitle=this.content.querySelector(".u-card__content__header__subtitle"),this.text=this.content.querySelector(".u-card__content__text"),this.link=this.content.querySelector('.u-link, [class*="u-link--"]'),this.split=new Rs(this.title,{type:"words,lines",linesClass:"u-onboarding-line",wordsClass:"u-onboarding-word"}),setTimeout(this.animeFull.bind(this),1e3)}animeFull(){this.cover.style.clipPath="pol
51ygon(0% 0%, 0% 0%, 0% 100%, 0% 100%)",this.cover.style.webkitClipPath="polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%)";let e=this.initClip().obj,t=this.initClip().coords,i;Y.isMoreThan("nav")&&(i=$.timeline({autoplay:!1}),i.add({targets:this.logo,opacity:[0,1],scale:[.7,1],duration:4500,easing:"easeOutExpo"}));const r=$.timeline({autoplay:!1});r.add({targets:this.category,translateY:["100%",0],opacity:[0,1],duration:350,easing:"easeOutQuad"}).add({targets:this.split.words,translateY:["100%",0],duration:500,delay:(n,o)=>o*100,easing:"easeOutQuad",offset:Y.isMoreThan("nav")?1e3:0}).add({targets:this.subtitle,translateY:["100%",0],opacity:[0,1],duration:350,easing:"easeOutQuad"}).add({targets:this.text,translateY:["100%",0],opacity:[0,1],duration:350,easing:"easeOutQuad"}).add({targets:this.link,translateY:[20,0],opacity:[0,1],duration:350,easing:"easeOutQuad"}).add({targets:e,top:[{value:100,duration:1e3,delay:100,easing:"easeInOutQuart"}],bottom:[{value:100,duration:1e3,delay:0,easing:"easeInOutQuart"}],update:()=>{t[1][0]=e.top,t[2][0]=e.bottom,this.applyClip(this.cover,t)},complete:()=>{this.cleanClip(this.cover),this.root.classList.add("is-done")}}),this.setReady(),Y.isMoreThan("nav")&&i.play(),r.play()}applyClip(e,t){let i=[];P.forEach(t,n=>{const[o,c]=n;i.push(`${o}% ${c}%`)});const r=`polygon(${i.join(",")})`;e.style.clipPath=r,e.style.webkitClipPath=r}cleanClip(e){console.info("cleanClip",e),e.style.clipPath="",e.style.webkitClipPath=""}initClip(){const e={top:0,bottom:0},t=[[0,0],[e.top,0],[e.bottom,100],[0,100]];return{obj:e,coords:t}}setReady(){this.root.classList.add("is-ready")}destroy(){console.info("Onboarding:destroy")}}class en{constructor(e){e&&(this.$el=e,this.y=0,this.lastPosition=window.pageYOffset,this.$cover=this.$el.querySelector('[data-ref="parallaxable.cover"]'),this.elBCR=this.$el.getBoundingClientRect(),this.bind(),this.initObserver())}initObserver(){this.observer=new IntersectionObserver(this.checkVisibility,{threshold:.1}),this.observer.observe(this.$el)}checkVisibility(e){e[0].isIntersecting?this.raf=requestAnimationFrame(this.update):cancelAnimationFrame(this.raf)}bind(){this.onScroll=this.onScroll.bind(this),this.update=this.update.bind(this),this.checkVisibility=this.checkVisibility.bind(this),window.addEventListener("wheel",this.onScroll)}onScroll(e){this.direction=this.getYDelta(e)?"up":"down"}getYDelta(e){return e.wheelDelta?e.wheelDelta>0:e.deltaY<0}update(e){this.y=window.pageYOffset*.2,this.$cover.style.willChange="transform",this.$cover.style.transform=`translateY(${this.y}px)`,this.lastPosition=window.pageYOffset,this.raf=requestAnimationFrame(this.update)}}class tn{constructor(e){if(this.el=e,this.images=this.el.querySelector('[data-ref="scrolling-hero.images"]'),this.tick=this.tick.bind(this),this.scrollSpeed=.5,!this.images)return;document.body.classList.add("scrolling-hero"),this.items=[...this.images.querySelectorAll('[data-ref="scrolling-hero.item"]')],this.files=[...this.images.querySelectorAll("img")];const t=this.files.map(i=>new Promise(r=>{i.complete?(r(),this.test(i)):i.addEventListener("load",()=>{this.test(i),r()})}));Promise.all(t).finally(()=>{this.totalItemsWidth=this.items.reduce((i,r)=>i+r.offsetWidth,0),this.items.length>1&&this.totalItemsWidth>window.innerWidth?this.initSlider():this.el.classList.add("is-static")})}test(e){e.width>e.height?e.parentNode.classList.add("is-horizontal"):e.parentNode.classList.add("is-vertical")}initSlider(){const e=window.innerWidth<this.totalItemsWidth*1.5;e||this.el.classList.add("no-wrap"),this.flickity=new ai(this.images,{autoPlay:!1,prevNextButtons:!1,pageDots:!1,wrapAround:e,draggable:!0,imagesLoaded:!0,cellAlign:e?"center":"left",contain:!e,on:{ready:()=>{setTimeout(()=>{this.el.classList.add("is-active"),e&&(this.isPlaying=!0,this.raf=window.requestAnimationFrame(this.tick),this.items.forEach(t=>{t.addEventListener("mouseover",()=>{this.isPlaying=!1}),t.addEventListener("focusin",()=>{this.isPlaying=!1}),t.addEventListener("mouseout",()=>{this.isPlaying=!0,this.tick()}),t.addEventListener("focusout",()=>{this.isPlaying=!0,this.tick()})}))},200)}}})}tick(){this.isPlaying&&(this.flickity.x=(this.flickity.x-this.scrollSpeed)%this.flickity.slideableWidth,this.flickity.selectedIndex=this.flickity.dragEndRestingSelect(),this.flickity.updateSelectedSlide(),this.flickity.settle(this.flickity.x),this.raf=window.requestAnimationFrame(this.tick))}}class sn{constructor(e){this.select=e,this.bind()}bind(){this.onChange=this.onChange.bind(this),this.select.addEventListener("change",this.onChange)}onChange(e){e.preventDefault();const t=this.select.selectedIndex,r=this.select.options[t].value;r&&this.redirect(r)}redirect(e){window.location=e}}class rn{constructor(){this.FB_ID=window.ULIEGE_FB_ID||"382136236312849",console.info(this.FB_ID),this.bind()}bind(){this.onClick=this.onClick.bind(this),document.addEventListener("click",this.onClick)}onClick(e){let t=e.target;for(;t&&(!t.dataset||!t.dataset.share);)t=t.parentNode;if(t&&t.dataset&&t.dataset.share){e.preventDefault(),e.stopPropagation();const i=t.dataset.share;i==="facebook"&&this.openFacebook(),i==="linkedin"&&this.openLinkedin(),i==="twitter"&&this.openTwitter(window.location.href,t.dataset.text,t.dataset.via)}}openFacebook(e=window.location.href){const t=this.e(e),i=`https://www.facebook.com/dialog/share?app_id=${this.FB_ID}&display=popup&href=${t}`;return this.openPopup(i,"Share on Facebook",575,300)}openTwitter(e=window.location.href,t="",i=""){const r=this.e(t),n=this.e(i),c=`https://twitter.com/intent/tweet?url=${this.e(e)}&text=${r}&via=${n}`;return this.openPopup(c,"Share on Twitter",550,255)}openLinkedin(e=window.location.href){const i=`https://www.linkedin.com/shareArticle?mini=true&url=${this.e(e)}`;return this.openPopup(i,"Share on Linkedin",550,255)}openPopup(e,t,i,r){const n=(window.screen.width-i)/2,o=(window.screen.height-r)/2;return window.open(e,t,`status=no,resizable=yes,height=${r},width=${i},top=${o},left=${n},toolbar=no,menubar=no,location=no,directories=no`)}e(e){return window.encodeURIComponent(e)}}class nn{constructor(){const e=this;Y.register("large",{match(){e.init()},unmatch(){e.destroy()}})}init(){console.info("Sidebar:init")}destroy(){console.info("Sidebar:destroy")}}var yt={exports:{}},$i;function on(){return $i||($i=1,function(s){var e=Object.prototype.hasOwnProperty,t="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(t=!1));function r(a,l,h){this.fn=a,this.context=l,this.once=h||!1}function n(a,l,h,u,y){if(typeof h!="function")throw new TypeError("The listener must be a function");var d=new r(h,u||a,y),p=t?t+l:l;return a._events[p]?a._events[p].fn?a._events[p]=[a._events[p],d]:a._events[p].push(d):(a._events[p]=d,a._eventsCount++),a}function o(a,l){--a._eventsCount===0?a._events=new i:delete a._events[l]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var l=[],h,u;if(this._eventsCount===0)return l;for(u in h=this._events)e.call(h,u)&&l.push(t?u.slice(1):u);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(h)):l},c.prototype.listeners=function(l){var h=t?t+l:l,u=this._events[h];if(!u)return[];if(u.fn)return[u.fn];for(var y=0,d=u.length,p=new Array(d);y<d;y++)p[y]=u[y].fn;return p},c.prototype.listenerCount=function(l){var h=t?t+l:l,u=this._events[h];return u?u.fn?1:u.length:0},c.prototype.emit=function(l,h,u,y,d,p){var g=t?t+l:l;if(!this._events[g])return!1;
51var m=this._events[g],B=arguments.length,f,S;if(m.fn){switch(m.once&&this.removeListener(l,m.fn,void 0,!0),B){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,h),!0;case 3:return m.fn.call(m.context,h,u),!0;case 4:return m.fn.call(m.context,h,u,y),!0;case 5:return m.fn.call(m.context,h,u,y,d),!0;case 6:return m.fn.call(m.context,h,u,y,d,p),!0}for(S=1,f=new Array(B-1);S<B;S++)f[S-1]=arguments[S];m.fn.apply(m.context,f)}else{var T=m.length,k;for(S=0;S<T;S++)switch(m[S].once&&this.removeListener(l,m[S].fn,void 0,!0),B){case 1:m[S].fn.call(m[S].context);break;case 2:m[S].fn.call(m[S].context,h);break;case 3:m[S].fn.call(m[S].context,h,u);break;case 4:m[S].fn.call(m[S].context,h,u,y);break;default:if(!f)for(k=1,f=new Array(B-1);k<B;k++)f[k-1]=arguments[k];m[S].fn.apply(m[S].context,f)}}return!0},c.prototype.on=function(l,h,u){return n(this,l,h,u,!1)},c.prototype.once=function(l,h,u){return n(this,l,h,u,!0)},c.prototype.removeListener=function(l,h,u,y){var d=t?t+l:l;if(!this._events[d])return this;if(!h)return o(this,d),this;var p=this._events[d];if(p.fn)p.fn===h&&(!y||p.once)&&(!u||p.context===u)&&o(this,d);else{for(var g=0,m=[],B=p.length;g<B;g++)(p[g].fn!==h||y&&!p[g].once||u&&p[g].context!==u)&&m.push(p[g]);m.length?this._events[d]=m.length===1?m[0]:m:o(this,d)}return this},c.prototype.removeAllListeners=function(l){var h;return l?(h=t?t+l:l,this._events[h]&&o(this,h)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=t,c.EventEmitter=c,s.exports=c}(yt)),yt.exports}var an=on();const ln=je(an);class cn extends ln{emit(...e){const[t,...i]=e;this.logBlacklist&&this.logBlacklist.indexOf(t)===-1&&console.info(t,i),super.emit(...e)}}const ie=new cn;ie.logBlacklist=[];ie.STICK="stick";ie.UNSTICK="unstick";class hn{constructor(){if(this.body=document.querySelector(".u-body"),this.header=document.querySelector(".u-nav-header,[class*='u-nav-header--']"),this.placeholder=document.querySelector(".u-nav-header-placeholder"),this.hasSticky=!1,this.body.classList.contains("desktop-hide-header")||document.body.classList.contains("desktop-hide-header")||!this.header||!this.placeholder||this.header.classList.contains("u-nav-header--unit")||this.header.classList.contains("no-sticky"))return!1;this.hasSticky=!0,this.treshold=this.getOffset(),this.y=this.getCurrent(),this.isSticky=this.y>this.treshold,this[this.isSticky?"sticky":"unsticky"](),this.bind()}bind(){this.update=this.update.bind(this),this.updateTreshold=this.updateTreshold.bind(this),window.addEventListener("scroll",this.update),window.addEventListener("resize",this.updateTreshold),window.addEventListener("resize",this.update),this.update()}update(){const e=this.getCurrent();e>this.treshold&&!this.isSticky?this.sticky():e<this.treshold&&this.isSticky&&this.unsticky()}getCurrent(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}updateTreshold(){this.treshold=this.getOffset()}getOffset(){let e=this.placeholder.offsetTop;return document.querySelector(".topbar.navbar")&&(e-=41),e}sticky(){ie.emit(ie.STICK),this.header.classList.add("u-nav-header--sticky"),this.placeholder.classList.add("active"),this.isSticky=!0}unsticky(){ie.emit(ie.UNSTICK),this.header.classList.remove("u-nav-header--sticky"),this.placeholder.classList.remove("active"),this.isSticky=!1}}class un{constructor(){this.init(),window.uRefreshTableResultsLinks=this.init.bind(this)}init(){this.rows=document.querySelectorAll('[data-results="root"] [data-results="row"]'),this.bind()}bind(){P.forEach(this.rows,e=>{e.addEventListener("click",function(){const t=this.querySelector("a"),i=t.getAttribute("href");t.getAttribute("target")==="_blank"?window.open(i,""):window.location=i})})}}var bt,Hi;function dn(){if(Hi)return bt;Hi=1;function s(e,t){for(var i=-1,r=e==null?0:e.length;++i<r&&t(e[i],i,e)!==!1;);return e}return bt=s,bt}var St,Ui;function fn(){if(Ui)return St;Ui=1;function s(e){return function(t,i,r){for(var n=-1,o=Object(t),c=r(t),a=c.length;a--;){var l=c[e?a:++n];if(i(o[l],l,o)===!1)break}return t}}return St=s,St}var wt,Vi;function pn(){if(Vi)return wt;Vi=1;var s=fn(),e=s();return wt=e,wt}var xt,Qi;function gn(){if(Qi)return xt;Qi=1;function s(e,t){for(var i=-1,r=Array(e);++i<e;)r[i]=t(i);return r}return xt=s,xt}var Et,Gi;function Fs(){if(Gi)return Et;Gi=1;var s=typeof Ie=="object"&&Ie&&Ie.Object===Object&&Ie;return Et=s,Et}var kt,Yi;function Ws(){if(Yi)return kt;Yi=1;var s=Fs(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=s||e||Function("return this")();return kt=t,kt}var _t,Xi;function js(){if(Xi)return _t;Xi=1;var s=Ws(),e=s.Symbol;return _t=e,_t}var Lt,Ki;function vn(){if(Ki)return Lt;Ki=1;var s=js(),e=Object.prototype,t=e.hasOwnProperty,i=e.toString,r=s?s.toStringTag:void 0;function n(o){var c=t.call(o,r),a=o[r];try{o[r]=void 0;var l=!0}catch{}var h=i.call(o);return l&&(c?o[r]=a:delete o[r]),h}return Lt=n,Lt}var Ct,Zi;function mn(){if(Zi)return Ct;Zi=1;var s=Object.prototype,e=s.toString;function t(i){return e.call(i)}return Ct=t,Ct}var At,Ji;function ci(){if(Ji)return At;Ji=1;
51var s=js(),e=vn(),t=mn(),i="[object Null]",r="[object Undefined]",n=s?s.toStringTag:void 0;function o(c){return c==null?c===void 0?r:i:n&&n in Object(c)?e(c):t(c)}return At=o,At}var qt,es;function hi(){if(es)return qt;es=1;function s(e){return e!=null&&typeof e=="object"}return qt=s,qt}var Tt,ts;function yn(){if(ts)return Tt;ts=1;var s=ci(),e=hi(),t="[object Arguments]";function i(r){return e(r)&&s(r)==t}return Tt=i,Tt}var Pt,is;function bn(){if(is)return Pt;is=1;var s=yn(),e=hi(),t=Object.prototype,i=t.hasOwnProperty,r=t.propertyIsEnumerable,n=s(function(){return arguments}())?s:function(o){return e(o)&&i.call(o,"callee")&&!r.call(o,"callee")};return Pt=n,Pt}var Ot,ss;function $s(){if(ss)return Ot;ss=1;var s=Array.isArray;return Ot=s,Ot}var Fe={exports:{}},It,rs;function Sn(){if(rs)return It;rs=1;function s(){return!1}return It=s,It}Fe.exports;var ns;function wn(){return ns||(ns=1,function(s,e){var t=Ws(),i=Sn(),r=e&&!e.nodeType&&e,n=r&&!0&&s&&!s.nodeType&&s,o=n&&n.exports===r,c=o?t.Buffer:void 0,a=c?c.isBuffer:void 0,l=a||i;s.exports=l}(Fe,Fe.exports)),Fe.exports}var Dt,os;function xn(){if(os)return Dt;os=1;var s=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function t(i,r){return r=r??s,!!r&&(typeof i=="number"||e.test(i))&&i>-1&&i%1==0&&i<r}return Dt=t,Dt}var zt,as;function Hs(){if(as)return zt;as=1;var s=9007199254740991;function e(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=s}return zt=e,zt}var Mt,ls;function En(){if(ls)return Mt;ls=1;var s=ci(),e=Hs(),t=hi(),i="[object Arguments]",r="[object Array]",n="[object Boolean]",o="[object Date]",c="[object Error]",a="[object Function]",l="[object Map]",h="[object Number]",u="[object Object]",y="[object RegExp]",d="[object Set]",p="[object String]",g="[object WeakMap]",m="[object ArrayBuffer]",B="[object DataView]",f="[object Float32Array]",S="[object Float64Array]",T="[object Int8Array]",k="[object Int16Array]",_="[object Int32Array]",O="[object Uint8Array]",X="[object Uint8ClampedArray]",H="[object Uint16Array]",J="[object Uint32Array]",x={};x[f]=x[S]=x[T]=x[k]=x[_]=x[O]=x[X]=x[H]=x[J]=!0,x[i]=x[r]=x[m]=x[n]=x[B]=x[o]=x[c]=x[a]=x[l]=x[h]=x[u]=x[y]=x[d]=x[p]=x[g]=!1;function z(N){return t(N)&&e(N.length)&&!!x[s(N)]}return Mt=z,Mt}var Bt,cs;function kn(){if(cs)return Bt;cs=1;function s(e){return function(t){return e(t)}}return Bt=s,Bt}var We={exports:{}};We.exports;var hs;function _n(){return hs||(hs=1,function(s,e){var t=Fs(),i=e&&!e.nodeType&&e,r=i&&!0&&s&&!s.nodeType&&s,n=r&&r.exports===i,o=n&&t.process,c=function(){try{return o&&o.binding&&o.binding("util")}catch{}}();s.exports=c}(We,We.exports)),We.exports}var Rt,us;function Ln(){if(us)return Rt;us=1;var s=En(),e=kn(),t=_n(),i=t&&t.isTypedArray,r=i?e(i):s;return Rt=r,Rt}var Nt,ds;function Cn(){if(ds)return Nt;ds=1;var s=gn(),e=bn(),t=$s(),i=wn(),r=xn(),n=Ln(),o=Object.prototype,c=o.hasOwnProperty;function a(l,h){var u=t(l),y=!u&&e(l),d=!u&&!y&&i(l),p=!u&&!y&&!d&&n(l),g=u||y||d||p,m=g?s(l.length,String):[],B=m.length;for(var f in l)(h||c.call(l,f))&&!(g&&(f=="length"||d&&(f=="offset"||f=="parent")||p&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||r(f,B)))&&m.push(f);return m}return Nt=a,Nt}var Ft,fs;function An(){if(fs)return Ft;fs=1;var s=Object.prototype;function e(t){var i=t&&t.constructor,r=typeof i=="function"&&i.prototype||s;return t===r}return Ft=e,Ft}var Wt,ps;function qn(){if(ps)return Wt;ps=1;function s(e,t){return function(i){return e(t(i))}}return Wt=s,Wt}var jt,gs;function Tn(){if(gs)return jt;gs=1;var s=qn(),e=s(Object.keys,Object);return jt=e,jt}var $t,vs;function Pn(){if(vs)return $t;vs=1;var s=An(),e=Tn(),t=Object.prototype,i=t.hasOwnProperty;function r(n){if(!s(n))return e(n);var o=[];for(var c in Object(n))i.call(n,c)&&c!="constructor"&&o.push(c);return o}return $t=r,$t}var Ht,ms;function On(){if(ms)return Ht;ms=1;function s(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}return Ht=s,Ht}var Ut,ys;function In(){if(ys)return Ut;ys=1;var s=ci(),e=On(),t="[object AsyncFunction]",i="[object Function]",r="[object GeneratorFunction]",n="[object Proxy]";function o(c){if(!e(c))return!1;var a=s(c);return a==i||a==r||a==t||a==n}return Ut=o,Ut}var Vt,bs;function Us(){if(bs)return Vt;bs=1;var s=In(),e=Hs();function t(i){return i!=null&&e(i.length)&&!s(i)}return Vt=t,Vt}var Qt,Ss;function Dn(){if(Ss)return Qt;Ss=1;var s=Cn(),e=Pn(),t=Us();function i(r){return t(r)?s(r):e(r)}return Qt=i,Qt}var Gt,ws;function zn(){if(ws)return Gt;ws=1;var s=pn(),e=Dn();function t(i,r){return i&&s(i,r,e)}return Gt=t,Gt}var Yt,xs;function Mn(){if(xs)return Yt;xs=1;var s=Us();function e(t,i){return function(r,n){if(r==null)return r;if(!s(r))return t(r,n);for(var o=r.length,c=i?o:-1,a=Object(r);(i?c--:++c<o)&&n(a[c],c,a)!==!1;);return r}}return Yt=e,Yt}var Xt,Es;function Bn(){if(Es)return Xt;Es=1;var s=zn(),e=Mn(),t=e(s);return Xt=t,Xt}var Kt,ks;function Rn(){if(ks)return Kt;ks=1;function s(e){return e}return Kt=s,Kt}var Zt,_s;function Nn(){if(_s)return Zt;_s=1;var s=Rn();function e(t){return typeof t=="function"?t:s}return Zt=e,Zt}var Jt,Ls;function Fn(){if(Ls)return Jt;Ls=1;var s=dn(),e=Bn(),t=Nn(),i=$s();function r(n,o){var c=i(n)?s:e;return c(n,t(o))}return Jt=r,Jt}var Wn=Fn();const Qe=je(Wn),ei="active";class jn{constructor(e){this.root=e,this.map(),this.bind(),this.setCurrent()}bind(){this.hide=this.hide.bind(this),this.show=this.show.bind(this),Qe(this.data,e=>{e.link.addEventListener("click",t=>{t.preventDefault(),this.changeTo(e)})})}map(){this.data=[],this.links=this.root.querySelectorAll("[data-nav-tab-link]"),Qe(this.links,e=>{const t=e.dataset.navTabLink,i=document.querySelector(`${t}`),r=e.parentNode,n=r.classList.contains(ei);!t||!i||this.data.push({link:e,id:t,target:i,parent:r,isActive:n})})}changeTo(e){this.hideAll(),this.show(e)}hideAll(){Qe(this.data,this.hide)}hide(e){e.target.style.display="none",e.parent.classList.remove(ei),e.isActive=!1}show(e){e.target.style.display="block",e.parent.classList.add(ei),e.isActive=!0}setCurrent(){Qe(this.data,e=>{this[e.isActive?"show":"hide"](e)})}}class Vs{constructor(e){this.root=e,this.isPlaying=!1,this.iframeC
vendor: 7,665 bytes, lines 51-74
51ontainer=this.root.querySelector(".u-card__video-iframe"),this.overlay=this.root.querySelector(".u-card__video-overlay"),this.cover=this.root.querySelector(".u-card__cover"),this.src=this.iframeContainer.dataset.src,this.bind()}bind(){this.play=this.play.bind(this),this.overlay.addEventListener("click",this.play)}play(){if(this.isPlaying)return;$.timeline().add({targets:this.overlay,opacity:[1,0]}).add({targets:this.cover,translateY:[0,-30],easing:"easeOutQuad",duration:300,complete:()=>{this.root.classList.add("is-playing")}}).add({targets:this.cover,translateY:[-30,0],easing:"easeInQuad",duration:300});const t=this.createIframe(this.src);this.iframeContainer.appendChild(t),this.isPlaying=!0}createIframe(e){const t=document.createElement("iframe");return t.frameBorder=0,t.allowFullscreen=!0,t.src=e,t}}class $n{constructor(){Z(this,"width");Z(this,"height");Z(this,"scrollbarWidth");this.width=this.getWidth(),this.height=this.getHeight(),this.scrollbarWidth=this.getScrollBarWidth(),this.bind(),this.setScrollbarWidth(),this.onResize()}bind(){this.onResize=ur(10,this.onResize.bind(this)),window.addEventListener("resize",this.onResize)}destroy(){window.removeEventListener("resize",this.onResize)}getWidth(){return window.innerWidth}getHeight(){return window.innerHeight}getScrollBarWidth(){const e=document.createElement("p");e.style.width="100%",e.style.height="200px";const t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.overflow="hidden",t.appendChild(e),document.body.appendChild(t);const i=e.offsetWidth;t.style.overflow="scroll";let r=e.offsetWidth;return i===r&&(r=t.clientWidth),document.body.removeChild(t),i-r}setScrollbarWidth(){document.documentElement.style.setProperty("--scrollbar-width",`${this.scrollbarWidth}px`)}setCSSProperties(){document.documentElement.style.setProperty("--vw",`${(this.width-this.scrollbarWidth)*.01}px`),document.documentElement.style.setProperty("--vh",`${this.height*.01}px`)}onResize(){this.width=this.getWidth(),this.height=this.getHeight(),this.setCSSProperties(),window.dispatchEvent(new CustomEvent("viewport:resize",{detail:{width:this.width,height:this.height}}))}}/**! 52 * @fileOverview Kickass library to create and place poppers near their reference elements. 53 * @version 1.16.1 54 * @license 55 * Copyright (c) 2016 Federico Zivolo and contributors 56 * 57 * Permission is hereby granted, free of charge, to any person obtaining a copy 58 * of this software and associated documentation files (the "Software"), to deal 59 * in the Software without restriction, including without limitation the rights 60 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 61 * copies of the Software, and to permit persons to whom the Software is 62 * furnished to do so, subject to the following conditions: 63 * 64 * The above copyright notice and this permission notice shall be included in all 65 * copies or substantial portions of the Software. 66 * 67 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 68 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 69 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 70 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 71 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 72 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 73 * SOFTWARE. 74 */var $e=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",Hn=function(){for(var s=["Edge","Trident","Firefox"],e=0;e<s.length;e+=1)if($e&&navigator.userAgent.indexOf(s[e])>=0)return 1;return 0}();function Un(s){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,s()}))}}function Vn(s){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,s()},Hn))}}var Qn=$e&&window.Promise,Gn=Qn?Un:Vn;function Qs(s){var e={};return s&&e.toString.call(s)==="[object Function]"}function Ae(s,e){if(s.nodeType!==1)return[];var t=s.ownerDocument.defaultView,i=t.getComputedStyle(s,null);return e?i[e]:i}function ui(s){return s.nodeName==="HTML"?s:s.parentNode||s.host}function He(s){if(!s)return document.body;switch(s.nodeName){case"HTML":case"BODY":return s.ownerDocument.body;case"#document":return s.body}var e=Ae(s),t=e.overflow,i=e.overflowX,r=e.overflowY;return/(auto|scroll|overlay)/.test(t+r+i)?s:He(ui(s))}function Gs(s){return s&&s.referenceNode?s.referenceNode:s}var Cs=$e&&!!(window.MSInputMethodContext&&document.documentMode),As=$e&&/MSIE 10/.test(navigator.userAgent);function Re(s){return s===11?Cs:s===10?As:Cs||As}function ze(s){if(!s)return document.documentElement;for(var e=Re(10)?document.body:null,t=s.offsetParent||null;t===e&&s.nextElementSibling;)t=(s=s.nextElementSibling).offsetParent;var i=t&&t.nodeName;return!i||i==="BODY"||i==="HTML"?s?s.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(t.nodeName)!==-1&&Ae(t,"position")==="static"?ze(t):t}function Yn(s){var e=s.nodeName;return e==="BODY"?!1:e==="HTML"||ze(s.firstElementChild)===s}function si(s){return s.parentNode!==null?si(s.parentNode):s}function Ke(s,e){if(!s||!s.nodeType||!e||!e.nodeType)return document.documentElement;var t=s.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=t?s:e,r=t?e:s,n=document.createRange();n.setStart(i,0),n.setEnd(r,0);var o=n.commonAncestorContainer;if(s!==o&&e!==o||i.contains(r))return Yn(o)?o:ze(o);var c=si(s);return c.host?Ke(c.host,e):Ke(s,si(e).host)}function Me(s){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",t=e==="top"?"scrollTop":"scrollLeft",i=s.nodeName;if(i==="BODY"||i==="HTML"){var r=s.ownerDocument.documentElement,n=s.ownerDocument.scrollingElement||r;return n[t]}return s[t]}function Xn(s,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=Me(e,"top"),r=Me(e,"left"),n=t?-1:1;return s.top+=i*n,s.bottom+=i*n,s.left+=r*n,s.right+=r*n,s}function qs(s,e){var t=e==="x"?"Left":"Top",i=t==="Left"?"Right":"Bottom";return parseFloat(s["border"+t+"Width"])+parseFloat(s["border"+i+"Width"])}function Ts(s,e,t,i){return Math.max(e["offset"+s],e["scroll"+s],t["client"+s],t["offset"+s],t["scroll"+s],Re(10)?parseInt(t["offset"+s])+parseInt(i["margin"+(s==="Height"?"Top":"Left")])+parseInt(i["margin"+(s==="Height"?"Bottom":"Right")]):0)}function Ys(s){var e=s.body,t=s.documentElement,i=Re(10)&&getComputedStyle(t);return{height:Ts("Height",e,t,i),width:Ts("Width",e,t,i)}}var Kn=function(s,e){if(!(s instanceof e))throw new TypeError("Cannot call a class as a function")},Zn=function(){function s(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,i){return t&&s(e.prototype,t),i&&s(e,i),e}}(),Be=function(s,e,t){return e in s?Object.defineProperty(s,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):s[e]=t,s},oe=Object.assign||function(s){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(s[i]=t[i])}return s};function Se(s){return oe({},s,{right:s.left+s.width,bottom:s.top+s.height})}function ri(s){var e={};try{if(Re(10)){e=s.getBoundingClientRect();var t=Me(s,"top"),i=Me(s,"left");e.top+=t,e.left+=i,e.bottom+=t,e.right+=i}else e=s.getBoundingClientRect()}catch{}var r={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},n=s.nodeName==="HTML"?Ys(s.ownerDocument):{},o=n.width||s.clientWidth||r.width,c=n.height||s.clientHeight||r.height,a=s.offsetWidth-o,l=s.offsetHeight-c;
vendor: 18,850 bytes, line 74
74if(a||l){var h=Ae(s);a-=qs(h,"x"),l-=qs(h,"y"),r.width-=a,r.height-=l}return Se(r)}function di(s,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=Re(10),r=e.nodeName==="HTML",n=ri(s),o=ri(e),c=He(s),a=Ae(e),l=parseFloat(a.borderTopWidth),h=parseFloat(a.borderLeftWidth);t&&r&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var u=Se({top:n.top-o.top-l,left:n.left-o.left-h,width:n.width,height:n.height});if(u.marginTop=0,u.marginLeft=0,!i&&r){var y=parseFloat(a.marginTop),d=parseFloat(a.marginLeft);u.top-=l-y,u.bottom-=l-y,u.left-=h-d,u.right-=h-d,u.marginTop=y,u.marginLeft=d}return(i&&!t?e.contains(c):e===c&&c.nodeName!=="BODY")&&(u=Xn(u,e)),u}function Jn(s){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=s.ownerDocument.documentElement,i=di(s,t),r=Math.max(t.clientWidth,window.innerWidth||0),n=Math.max(t.clientHeight,window.innerHeight||0),o=e?0:Me(t),c=e?0:Me(t,"left"),a={top:o-i.top+i.marginTop,left:c-i.left+i.marginLeft,width:r,height:n};return Se(a)}function Xs(s){var e=s.nodeName;if(e==="BODY"||e==="HTML")return!1;if(Ae(s,"position")==="fixed")return!0;var t=ui(s);return t?Xs(t):!1}function Ks(s){if(!s||!s.parentElement||Re())return document.documentElement;for(var e=s.parentElement;e&&Ae(e,"transform")==="none";)e=e.parentElement;return e||document.documentElement}function fi(s,e,t,i){var r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,n={top:0,left:0},o=r?Ks(s):Ke(s,Gs(e));if(i==="viewport")n=Jn(o,r);else{var c=void 0;i==="scrollParent"?(c=He(ui(e)),c.nodeName==="BODY"&&(c=s.ownerDocument.documentElement)):i==="window"?c=s.ownerDocument.documentElement:c=i;var a=di(c,o,r);if(c.nodeName==="HTML"&&!Xs(o)){var l=Ys(s.ownerDocument),h=l.height,u=l.width;n.top+=a.top-a.marginTop,n.bottom=h+a.top,n.left+=a.left-a.marginLeft,n.right=u+a.left}else n=a}t=t||0;var y=typeof t=="number";return n.left+=y?t:t.left||0,n.top+=y?t:t.top||0,n.right-=y?t:t.right||0,n.bottom-=y?t:t.bottom||0,n}function eo(s){var e=s.width,t=s.height;return e*t}function Zs(s,e,t,i,r){var n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(s.indexOf("auto")===-1)return s;var o=fi(t,i,n,r),c={top:{width:o.width,height:e.top-o.top},right:{width:o.right-e.right,height:o.height},bottom:{width:o.width,height:o.bottom-e.bottom},left:{width:e.left-o.left,height:o.height}},a=Object.keys(c).map(function(y){return oe({key:y},c[y],{area:eo(c[y])})}).sort(function(y,d){return d.area-y.area}),l=a.filter(function(y){var d=y.width,p=y.height;return d>=t.clientWidth&&p>=t.clientHeight}),h=l.length>0?l[0].key:a[0].key,u=s.split("-")[1];return h+(u?"-"+u:"")}function Js(s,e,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,r=i?Ks(e):Ke(e,Gs(t));return di(t,r,i)}function er(s){var e=s.ownerDocument.defaultView,t=e.getComputedStyle(s),i=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0),n={width:s.offsetWidth+r,height:s.offsetHeight+i};return n}function Ze(s){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return s.replace(/left|right|bottom|top/g,function(t){return e[t]})}function tr(s,e,t){t=t.split("-")[0];var i=er(s),r={width:i.width,height:i.height},n=["right","left"].indexOf(t)!==-1,o=n?"top":"left",c=n?"left":"top",a=n?"height":"width",l=n?"width":"height";return r[o]=e[o]+e[a]/2-i[a]/2,t===c?r[c]=e[c]-i[l]:r[c]=e[Ze(c)],r}function Ue(s,e){return Array.prototype.find?s.find(e):s.filter(e)[0]}function to(s,e,t){if(Array.prototype.findIndex)return s.findIndex(function(r){return r[e]===t});var i=Ue(s,function(r){return r[e]===t});return s.indexOf(i)}function ir(s,e,t){var i=t===void 0?s:s.slice(0,to(s,"name",t));return i.forEach(function(r){r.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=r.function||r.fn;r.enabled&&Qs(n)&&(e.offsets.popper=Se(e.offsets.popper),e.offsets.reference=Se(e.offsets.reference),e=n(e,r))}),e}function io(){if(!this.state.isDestroyed){var s={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};s.offsets.reference=Js(this.state,this.popper,this.reference,this.options.positionFixed),s.placement=Zs(this.options.placement,s.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),s.originalPlacement=s.placement,s.positionFixed=this.options.positionFixed,s.offsets.popper=tr(this.popper,s.offsets.reference,s.placement),s.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",s=ir(this.modifiers,s),this.state.isCreated?this.options.onUpdate(s):(this.state.isCreated=!0,this.options.onCreate(s))}}function sr(s,e){return s.some(function(t){var i=t.name,r=t.enabled;return r&&i===e})}function pi(s){for(var e=[!1,"ms","Webkit","Moz","O"],t=s.charAt(0).toUpperCase()+s.slice(1),i=0;i<e.length;i++){var r=e[i],n=r?""+r+t:s;if(typeof document.body.style[n]<"u")return n}return null}function so(){return this.state.isDestroyed=!0,sr(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[pi("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function rr(s){var e=s.ownerDocument;return e?e.defaultView:window}function nr(s,e,t,i){var r=s.nodeName==="BODY",n=r?s.ownerDocument.defaultView:s;n.addEventListener(e,t,{passive:!0}),r||nr(He(n.parentNode),e,t,i),i.push(n)}function ro(s,e,t,i){t.updateBound=i,rr(s).addEventListener("resize",t.updateBound,{passive:!0});var r=He(s);return nr(r,"scroll",t.updateBound,t.scrollParents),t.scrollElement=r,t.eventsEnabled=!0,t}function no(){this.state.eventsEnabled||(this.state=ro(this.reference,this.options,this.state,this.scheduleUpdate))}function oo(s,e){return rr(s).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function ao(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=oo(this.reference,this.state))}function gi(s){return s!==""&&!isNaN(parseFloat(s))&&isFinite(s)}function ni(s,e){Object.keys(e).forEach(function(t){var i="";["width","height","top","right","bottom","left"].indexOf(t)!==-1&&gi(e[t])&&(i="px"),s.style[t]=e[t]+i})}function lo(s,e){Object.keys(e).forEach(function(t){var i=e[t];i!==!1?s.setAttribute(t,e[t]):s.removeAttribute(t)})}function co(s){return ni(s.instance.popper,s.styles),lo(s.instance.popper,s.attributes),s.arrowElement&&Object.keys(s.arrowStyles).length&&ni(s.arrowElement,s.arrowStyles),s}function ho(s,e,t,i,r){var n=Js(r,e,s,t.positionFixed),o=Zs(t.placement,n,e,s,t.modifiers.flip.boundariesElement,t.modifiers.flip.padding);return e.setAttribute("x-placement",o),ni(e,{position:t.positionFixed?"fixed":"absolute"}),t}function uo(s,e){var t=s.offsets,i=t.popper,r=t.reference,n=Math.round,o=Math.floor,c=function(B){return B},a=n(r.width),l=n(i.width),h=["left","right"].indexOf(s.placement)!==-1,u=s.placement.indexOf("-")!==-1,y=a%2===l%2,d=a%2===1&&l%2===1,p=e?h||u||y?n:o:c,g=e?n:c;return{left:p(d&&!u&&e?i.left-1:i.left),top:g(i.top),bottom:g(i.bottom),right:p(i.right)}}var fo=$e&&/Firefox/i.test(navigator.userAgent);function po(s,e){var t=e.x,i=e.y,r=s.offsets.popper,n=Ue(s.instance.modifiers,function(S){return S.name==="applyStyle"}).gpuAcceleration;n!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=n!==void 0?n:e.gpuAcceleration,c=ze(s.instance.popper),a=ri(c),l={position:r.position},h=uo(s,window.devicePixelRatio<2||!fo),u=t==="bottom"?"top":"bottom",y=i==="right"?"left":"right",d=pi("transform"),p=void 0,g=void 0;if(u==="bottom"?c.nodeName==="HTML"?g=-c.clientHeight+h.bottom:g=-a.height+h.bottom:g=h.top,y==="right"?c.nodeName==="HTML"?p=-c.clientWidth+h.right:p=-a.width+h.right:p=h.left,o&&d)l[d]="translate3d("+p+"px, "+g+"px, 0)",l[u]=0,l[y]=0,l.willChange="transform";else{var m=u==="bottom"?-1:1,B=y==="right"?-1:1;l[u]=g*m,l[y]=p*B,l.willChange=u+", "+y}var f={"x-placement":s.placement};return s.attributes=oe({},f,s.attributes),s.styles=oe({},l,s.styles),s.arrowStyles=oe({},s.offsets.arrow,s.arrowStyles),s}function or(s,e,t){var i=Ue(s,function(c){var a=c.name;return a===e}),r=!!i&&s.some(function(c){return c.name===t&&c.enabled&&c.order<i.order});if(!r){var n="`"+e+"`",o="`"+t+"`";console.warn(o+" modifier is required by "+n+" modifier in order to work, be sure to include it before "+n+"!")}return r}function go(s,e){var t;if(!or(s.instance.modifiers,"arrow","keepTogether"))return s;var i=e.element;if(typeof i=="string"){if(i=s.instance.popper.querySelector(i),!i)return s}else if(!s.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),s;var r=s.placement.split("-")[0],n=s.offsets,o=n.popper,c=n.reference,a=["left","right"].indexOf(r)!==-1,l=a?"height":"width",h=a?"Top":"Left",u=h.toLowerCase(),y=a?"left":"top",d=a?"bottom":"right",p=er(i)[l];c[d]-p<o[u]&&(s.offsets.popper[u]-=o[u]-(c[d]-p)),c[u]+p>o[d]&&(s.offsets.popper[u]+=c[u]+p-o[d]),s.offsets.popper=Se(s.offsets.popper);var g=c[u]+c[l]/2-p/2,m=Ae(s.instance.popper),B=parseFloat(m["margin"+h]),f=parseFloat(m["border"+h+"Width"]),S=g-s.offsets.popper[u]-B-f;return S=Math.max(Math.min(o[l]-p,S),0),s.arrowElement=i,s.offsets.arrow=(t={},Be(t,u,Math.round(S)),Be(t,y,""),t),s}function vo(s){return s==="end"?"start":s==="start"?"end":s}var ar=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ti=ar.slice(3);function Ps(s){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=ti.indexOf(s),i=ti.slice(t+1).concat(ti.slice(0,t));return e?i.reverse():i}var ii={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function mo(s,e){if(sr(s.instance.modifiers,"inner")||s.flipped&&s.placement===s.originalPlacement)return s;var t=fi(s.instance.popper,s.instance.reference,e.padding,e.boundariesElement,s.positionFixed),i=s.placement.split("-")[0],r=Ze(i),n=s.placement.split("-")[1]||"",o=[];switch(e.behavior){case ii.FLIP:o=[i,r];break;case ii.CLOCKWISE:o=Ps(i);break;case ii.COUNTERCLOCKWISE:o=Ps(i,!0);break;default:o=e.behavior}return o.forEach(function(c,a){if(i!==c||o.length===a+1)return s;i=s.placement.split("-")[0],r=Ze(i);var l=s.offsets.popper,h=s.offsets.reference,u=Math.floor,y=i==="left"&&u(l.right)>u(h.left)||i==="right"&&u(l.left)<u(h.right)||i==="top"&&u(l.bottom)>u(h.top)||i==="bottom"&&u(l.top)<u(h.bottom),d=u(l.left)<u(t.left),p=u(l.right)>u(t.right),g=u(l.top)<u(t.top),m=u(l.bottom)>u(t.bottom),B=i==="left"&&d||i==="right"&&p||i==="top"&&g||i==="bottom"&&m,f=["top","bottom"].indexOf(i)!==-1,S=!!e.flipVariations&&(f&&n==="start"&&d||f&&n==="end"&&p||!f&&n==="start"&&g||!f&&n==="end"&&m),T=!!e.flipVariationsByContent&&(f&&n==="start"&&p||f&&n==="end"&&d||!f&&n==="start"&&m||!f&&n==="end"&&g),k=S||T;(y||B||k)&&(s.flipped=!0,(y||B)&&(i=o[a+1]),k&&(n=vo(n)),s.placement=i+(n?"-"+n:""),s.offsets.popper=oe({},s.offsets.popper,tr(s.instance.popper,s.offsets.reference,s.placement)),s=ir(s.instance.modifiers,s,"flip"))}),s}function yo(s){var e=s.offsets,t=e.popper,i=e.reference,r=s.placement.split("-")[0],n=Math.floor,o=["top","bottom"].indexOf(r)!==-1,c=o?"right":"bottom",a=o?"left":"top",l=o?"width":"height";return t[c]<n(i[a])&&(s.offsets.popper[a]=n(i[a])-t[l]),t[a]>n(i[c])&&(s.offsets.popper[a]=n(i[c])),s}function bo(s,e,t,i){var r=s.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),n=+r[1],o=r[2];if(!n)return s;if(o.indexOf("%")===0){var c=void 0;switch(o){case"%p":c=t;break;case"%":case"%r":default:c=i}var a=Se(c);return a[e]/100*n}else if(o==="vh"||o==="vw"){var l=void 0;return o==="vh"?l=Math.max(document.documentElement.clientHeight,window.innerHeight||0):l=Math.max(document.documentElement.clientWidth,window.innerWidth||0),l/100*n}else return n}function So(s,e,t,i){var r=[0,0],n=["right","left"].indexOf(i)!==-1,o=s.split(/(\+|\-)/).map(function(h){return h.trim()}),c=o.indexOf(Ue(o,function(h){return h.search(/,|\s/)!==-1}));o[c]&&o[c].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var a=/\s*,\s*|\s+/,l=c!==-1?[o.slice(0,c).concat([o[c].split(a)[0]]),[o[c].split(a)[1]].concat(o.slice(c+1))]:[o];return l=l.map(function(h,u){var y=(u===1?!n:n)?"height":"width",d=!1;return h.reduce(function(p,g){return p[p.length-1]===""&&["+","-"].indexOf(g)!==-1?(p[p.length-1]=g,d=!0,p):d?(p[p.length-1]+=g,d=!1,p):p.concat(g)},[]).map(function(p){return bo(p,y,e,t)})}),l.forEach(function(h,u){h.forEach(function(y,d){gi(y)&&(r[u]+=y*(h[d-1]==="-"?-1:1))})}),r}function wo(s,e){var t=e.offset,i=s.placement,r=s.offsets,n=r.popper,o=r.reference,c=i.split("-")[0],a=void 0;return gi(+t)?a=[+t,0]:a=So(t,n,o,c),c==="left"?(n.top+=a[0],n.left-=a[1]):c==="right"?(n.top+=a[0],n.left+=a[1]):c==="top"?(n.left+=a[0],n.top-=a[1]):c==="bottom"&&(n.left+=a[0],n.top+=a[1]),s.popper=n,s}function xo(s,e){var t=e.boundariesElement||ze(s.instance.popper);s.instance.reference===t&&(t=ze(t));var i=pi("transform"),r=s.instance.popper.style,n=r.top,o=r.left,c=r[i];r.top="",r.left="",r[i]="";var a=fi(s.instance.popper,s.instance.reference,e.padding,t,s.positionFixed);r.top=n,r.left=o,r[i]=c,e.boundaries=a;var l=e.priority,h=s.offsets.popper,u={primary:function(d){var p=h[d];return h[d]<a[d]&&!e.escapeWithReference&&(p=Math.max(h[d],a[d])),Be({},d,p)},secondary:function(d){var p=d==="right"?"left":"top",g=h[p];return h[d]>a[d]&&!e.escapeWithReference&&(g=Math.min(h[p],a[d]-(d==="right"?h.width:h.height))),Be({},p,g)}};return l.forEach(function(y){var d=["left","top"].indexOf(y)!==-1?"primary":"secondary";h=oe({},h,u[d](y))}),s.offsets.popper=h,s}function Eo(s){var e=s.placement,t=e.split("-")[0],i=e.split("-")[1];if(i){var r=s.offsets,n=r.reference,o=r.popper,c=["bottom","top"].indexOf(t)!==-1,a=c?"left":"top",l=c?"width":"height",h={start:Be({},a,n[a]),end:Be({},a,n[a]+n[l]-o[l])};s.offsets.popper=oe({},o,h[i])}return s}function ko(s){if(!or(s.instance.modifiers,"hide","preventOverflow"))return s;var e=s.offsets.reference,t=Ue(s.instance.modifiers,function(i){return i.name==="preventOverflow"}).boundaries;if(e.bottom<t.top||e.left>t.right||e.top>t.bottom||e.right<t.left){if(s.hide===!0)return s;s.hide=!0,s.attributes["x-out-of-boundaries"]=""}else{if(s.hide===!1)return s;s.hide=!1,s.attributes["x-out-of-boundaries"]=!1}return s}function _o(s){var e=s.placement,t=e.split("-")[0],i=s.offsets,r=i.popper,n=i.reference,o=["left","right"].indexOf(t)!==-1,c=["top","left"].indexOf(t)===-1;return r[o?"left":"top"]=n[t]-(c?r[o?"width":"height"]:0),s.placement=Ze(e),s.offsets.popper=Se(r),s}var Lo={shift:{order:100,enabled:!0,fn:Eo},offset:{order:200,enabled:!0,fn:wo,offset:0},preventOverflow:{order:300,enabled:!0,fn:xo,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:yo},arrow:{order:500,enabled:!0,fn:go,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:mo,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:_o},hide:{order:800,enabled:!0,fn:ko},computeStyle:{order:850,enabled:!0,fn:po,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:co,onLoad:ho,gpuAcceleration:void 0}},Co={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Lo},et=function(){function s(e,t){var i=this,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Kn(this,s),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=Gn(this.update.bind(this)),this.options=oe({},s.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(oe({},s.Defaults.modifiers,r.modifiers)).forEach(function(o){i.options.modifiers[o]=oe({},s.Defaults.modifiers[o]||{},r.modifiers?r.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return oe({name:o},i.options.modifiers[o])}).sort(function(o,c){return o.order-c.order}),this.modifiers.forEach(function(o){o.enabled&&Qs(o.onLoad)&&o.onLoad(i.reference,i.popper,i.options,o,i.state)}),this.update();var n=this.options.eventsEnabled;n&&this.enableEventListeners(),this.state.eventsEnabled=n}return Zn(s,[{key:"update",value:function(){return io.call(this)}},{key:"destroy",value:function(){return so.call(this)}},{key:"enableEventListeners",value:function(){return no.call(this)}},{key:"disableEventListeners",value:function(){return ao.call(this)}}]),s}();et.Utils=(typeof window<"u"?window:global).PopperUtils;et.placements=ar;et.Defaults=Co;function Ao(s){var e={};return s&&e.toString.call(s)==="[object Function]"}var qo=function(s,e){if(!(s instanceof e))throw new TypeError("Cannot call a class as a function")},To=function(){function s(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,i){return t&&s(e.prototype,t),i&&s(e,i),e}}(),Po=Object.assign||function(s){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(s[i]=t[i])}return s},Oo={container:!1,delay:0,html:!1,placement:"top",title:"",template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",offset:0},Io=function(){function s(e,t){qo(this,s),Do.call(this),t=Po({},Oo,t),e.jquery&&(e=e[0]),this.reference=e,this.options=t;var i=typeof t.trigger=="string"?t.trigger.split(" ").filter(function(r){return["click","hover","focus"].indexOf(r)!==-1}):[];this._isOpen=!1,this._setEventListeners(e,i,t)}return To(s,[{key:"_create",value:function(t,i,r,n){var o=window.document.createElement("div");o.innerHTML=i.trim();var c=o.childNodes[0];c.id="tooltip_"+Math.random().toString(36).substr(2,10),c.setAttribute("aria-hidden","false");var a=o.querySelector(this.innerSelector);if(r.nodeType===1)n&&a.appendChild(r);else if(Ao(r)){var l=r.call(t);n?a.innerHTML=l:a.innerText=l}else n?a.innerHTML=r:a.innerText=r;return c}},{key:"_show",value:function(t,i){if(this._isOpen)return this;if(this._isOpen=!0,this._tooltipNode)return this._tooltipNode.style.display="",this._tooltipNode.setAttribute("aria-hidden","false"),this.popperInstance.update(
74),this;var r=t.getAttribute("title")||i.title;if(!r)return this;var n=this._create(t,i.template,r,i.html);n.setAttribute("aria-describedby",n.id);var o=this._findContainer(i.container,t);this._append(n,o);var c={placement:i.placement,modifiers:{arrow:{element:this.arrowSelector}}};return i.boundariesElement&&(c.modifiers.preventOverflow={boundariesElement:i.boundariesElement}),this.popperInstance=new et(t,n,c),this._tooltipNode=n,this}},{key:"_hide",value:function(){return this._isOpen?(this._isOpen=!1,this._tooltipNode.style.display="none",this._tooltipNode.setAttribute("aria-hidden","true"),this):this}},{key:"_dispose",value:function(){var t=this;return this._tooltipNode&&(this._hide(),this.popperInstance.destroy(),this._events.forEach(function(i){var r=i.func,n=i.event;t.reference.removeEventListener(n,r)}),this._events=[],this._tooltipNode.parentNode.removeChild(this._tooltipNode),this._tooltipNode=null),this}},{key:"_findContainer",value:function(t,i){return typeof t=="string"?t=window.document.querySelector(t):t===!1&&(t=i.parentNode),t}},{key:"_append",value:function(t,i){i.appendChild(t)}},{key:"_setEventListeners",value:function(t,i,r){var n=this,o=[],c=[];i.forEach(function(a){switch(a){case"hover":o.push("mouseenter"),c.push("mouseleave");case"focus":o.push("focus"),c.push("blur");case"click":o.push("click"),c.push("click")}}),o.forEach(function(a){var l=function(u){n._isOpen!==!0&&(u.usedByTooltip=!0,n._scheduleShow(t,r.delay,r,u))};n._events.push({event:a,func:l}),t.addEventListener(a,l)}),c.forEach(function(a){var l=function(u){u.usedByTooltip!==!0&&n._scheduleHide(t,r.delay,r,u)};n._events.push({event:a,func:l}),t.addEventListener(a,l)})}},{key:"_scheduleShow",value:function(t,i,r){var n=this,o=i&&i.show||i||0;window.setTimeout(function(){return n._show(t,r)},o)}},{key:"_scheduleHide",value:function(t,i,r,n){var o=this,c=i&&i.hide||i||0;window.setTimeout(function(){if(o._isOpen!==!1&&document.body.contains(o._tooltipNode)){if(n.type==="mouseleave"){var a=o._setTooltipNodeEvent(n,t,i,r);if(a)return}o._hide(t,r)}},c)}}]),s}(),Do=function(){var e=this;this.show=function(){return e._show(e.reference,e.options)},this.hide=function(){return e._hide()},this.dispose=function(){return e._dispose()},this.toggle=function(){return e._isOpen?e.hide():e.show()},this.arrowSelector=".tooltip-arrow, .tooltip__arrow",this.innerSelector=".tooltip-inner, .tooltip__inner",this._events=[],this._setTooltipNodeEvent=function(t,i,r,n){var o=t.relatedreference||t.toElement,c=function a(l){var h=l.relatedreference||l.toElement;e._tooltipNode.removeEventListener(t.type,a),i.contains(h)||e._scheduleHide(i,n.delay,n,l)};return e._tooltipNode.contains(o)?(e._tooltipNode.addEventListener(t.type,c),!0):!1}};class zo{constructor(e){e&&!Modernizr.touchevents&&(this.root=e,this.init())}init(){const e=this.root.querySelector("video"),t=document.createElement("source");t.setAttribute("src",e.dataset.src),t.setAttribute("type",e.dataset.type),e.appendChild(t)}}class Mo{constructor(e){this.root=e,this.toggler=this.root.querySelector("[data-nav-trigger]"),this.container=this.root.querySelector("[data-nav-target]"),this.scrollable=this.container.querySelector(".u-nav-mobile__scrollable"),this.panel=this.container.querySelector('.u-nav-mobile-level[data-nav-level="0"]'),this.items=this.container.querySelectorAll(".u-nav-item"),this.links=this.container.querySelectorAll(".u-nav-item > a"),this.backBtn=this.container.querySelectorAll("[data-back]"),this.isOpen=!1,this.current=null,this.previous=null,this.level=0,this.container.style.display="block",this.bind()}bind(){this.toggle=this.toggle.bind(this),this.onLiClick=this.onLiClick.bind(this),this.prevLevel=this.prevLevel.bind(this),this.toggler.addEventListener("click",this.toggle),P.forEach(this.links,e=>{e.addEventListener("click",this.onLiClick)}),P.forEach(this.backBtn,e=>{e.addEventListener("click",this.prevLevel)})}destroy(){this.toggler.removeEventListener("click",this.toggle),P.forEach(this.links,e=>{e.removeEventListener("click",this.onLiClick)}),P.forEach(this.backBtn,e=>{e.removeEventListener("click",this.prevLevel)}),this.close(),this.container.style.display="",this.panel.style.transform="",P.forEach(this.getLevelEls(),e=>{e.removeAttribute("style")})}
74toggle(){this[this.isOpen?"close":"open"]()}open(){document.body.classList.add("menu-open"),this.toggler.classList.add("is-open"),this.checkActive(),this.container.classList.add("is-open"),this.isOpen=!0}close(){document.body.classList.remove("menu-open"),this.toggler.classList.remove("is-open"),this.container.classList.remove("is-open"),this.isOpen=!1,P.forEach(this.items,e=>{e.style.display="block"}),P.forEach(this.container.querySelectorAll(".u-nav-card"),e=>{e.style.display="block"}),this.setLevel({level:0,duration:1})}onLiClick(e){const i=e.currentTarget.parentNode,r=i.querySelector('[class*="u-nav-mobile-level"]');r?(e.preventDefault(),this.previous=this.current,this.current=i,r.style.display="block",this.nextLevel()):this.close()}setLevel(e={}){const t=P.assign({dir:"none",level:this.level,duration:200},e);t.level=parseInt(t.level),this.scrollable.scrollTop=0,t.dir==="prev"&&(P.forEach(De.siblings(this.previous),r=>{r.style.display="block"}),this.current&&this.current.querySelector('.u-nav-card[data-nav-level="1"]')&&(this.current.querySelector('.u-nav-card[data-nav-level="1"]').style.display="block")),$({targets:this.panel,translateX:`-${t.level*100}%`,duration:t.duration,easing:"easeOutExpo"}).finished.then(()=>{this.hideLevelEls({level:t.level+1,not:t.level}),t.dir==="next"&&(P.forEach(De.siblings(this.current),r=>{r.style.display="none"}),this.previous&&this.previous.querySelector('.u-nav-card[data-nav-level="1"]')&&(this.previous.querySelector('.u-nav-card[data-nav-level="1"]').style.display="none"))}),this.level=t.level}nextLevel(){this.setLevel({dir:"next",level:this.level+1})}prevLevel(e){e&&e.preventDefault&&e.preventDefault(),this.previous=this.current,this.current=De.parents(this.current,"u-nav-item"),this.setLevel({dir:"prev",level:this.level-1})}updateLevelEls(){}hideLevelEls(e={}){const t=this.getLevelEls(e);P.forEach(t,i=>i.style.display="none")}getLevelEls(e={}){let t=[...this.container.querySelectorAll('[class*="u-nav-mobile-level"]')];return e.level&&P.remove(t,i=>i.dataset.navLevel!=e.level),e.not&&P.remove(t,i=>i===e.not),t}getLevelParents(e){let t=[];const i=r=>r&&r.dataset&&r.dataset.navLevel;for(;e;)i(e)&&t.push(e),e=e.parentNode;return t}checkActive(){const e=this.container.querySelectorAll(".u-nav-item.is-active");if(!e.length)return;console.info("actives",e);const t=e[e.length-1],i=t.querySelector('[class*="u-nav-mobile-level"][data-nav-level]');if(!i||!i.dataset.navLevel)return;const r=i.dataset.navLevel;this.current=t,P.forEach(this.getLevelEls(),n=>{n.style.display="none"}),P.forEach(this.getLevelParents(i),n=>{n.style.display="block"}),this.setLevel({dir:"next",level:r,duration:1})}}class be{constructor(e,t){if(this.root=e,this.placeholder=document.querySelector(".u-nav-header-placeholder"),this.topbar=document.querySelector(".topbar"),this.level0=this.root.querySelectorAll("li.has-mega > a"),this.isOpen=!1,this.isStickable=!1,this.headerNodes=[".u-nav-portal",".u-nav-header-placeholder",".u-nav-header",".topbar"],this.stickyHeightOffset=this.getHeaderNodesHeight(),this.level0.length===0)return{empty:!0};document.querySelector(".u-nav-mega")?this.mega=document.querySelector(".u-nav-mega"):(this.mega=document.createElement("div"),this.mega.setAttribute("id","u-nav-mega"),this.mega.classList.add("u-nav-mega"),this.root.matches('[class*="u-nav-portal"]')&&this.mega.classList.add("u-nav-mega--portal"),this.root.matches('[class*="u-nav-site"]')&&(this.mega.classList.add("u-nav-mega--site"),t&&(this.isStickable=t,this.topSticky=this.stickyHeightOffset.sticky,this.topUnsticky=this.stickyHeightOffset.fixed,this.mega.style.top=`${this.topUnsticky}px`,this.placeholder.classList.contains("active")&&this.stick(),this.mega.classList.add("is-stickable"))),document.querySelector(".u-body").appendChild(this.mega)),this.bind()}get top(){return De.offset(this.root).top+this.root.offsetHeight}bind(){this.onClick=this.click.bind(this),this.onClickOutside=this.clickOutside.bind(this),this.onResize=this.resize.bind(this),this.onStick=this.stick.bind(this),this.onUnstick=this.unstick.bind(this),document.addEventListener("click",this.onClickOutside),P.forEach(this.level0,e=>{e.addEventListener("click",this.onClick)}),window.addEventListener("resize",this.onResize),this.isStickable&&(ie.on(ie.STICK,this.onStick),ie.on(ie.UNSTICK,this.onUnstick))}destroy(){document.removeEventListener("click",this.onClickOutside),P.forEach(this.level0,e=>{e.removeEventListener("click",this.onClick)}),window.removeEventListener("resize",this.onResize),this.isStickable&&(ie.off(ie.STICK,this.onStick),ie.off(ie.UNSTICK,this.onUnstick)),this.emptyMega(),this.isOpen=!1}click(e){const r=e.currentTarget.parentNode.querySelector('.u-nav-level[data-nav-level="1"]');r&&!r.classList.contains("is-open")?(e.preventDefault(),this.openLevel(r)):(e.preventDefault(),this.closeMega(),this.closeAll())}getHeaderNodesHeight(){const e=this.headerNodes.reduce((n,o)=>(o=document.querySelector(o),o&&(n+=o.offsetHeight),n-1),0),t=document.querySelector(".u-nav-header"),i=t?t.offsetHeight:0,r=this.topbar?i:i-40;return{fixed:e,sticky:r}}clickOutside(e){if(!this.isOpen)return;let t=e.target,i=r=>r&&r.classList&&(r.classList.contains("u-nav-mega")||r.classList.contains("has-mega"));for(;t&&!i(t);)t=t.parentNode;i(t)||(this.closeAll(),this.closeMega())}resize(){if(this.isOpen){this.level.style.height="auto";const e=this.level.offsetHeight;this.level.style.height=`${e}px`,this.mega.style.height=`${e}px`}}stick(){console.info("stick"),this.mega.style.top=`${this.topSticky}px`,this.mega.style.position="fixed"}unstick(){console.info("unstick"),this.mega.style.top=`${this.topUnsticky}px`,this.mega.style.position="absolute"}setTop(e,t=!1){this.mega.style.top=`${e}px`}closeAll(){const e=this.root.querySelectorAll('.u-nav-level[data-nav-level="1"]');P.forEach(e,t=>{this.closeLevel(t)}
74)}closeLevel(e){e.classList.remove("is-open"),e.previousElementSibling.classList.remove("has-open")}openLevel(e){if(this.isAnimate)return;this.closeAll(),e.classList.add("is-open"),e.previousElementSibling.classList.add("has-open");const t=e.cloneNode(!0);t.style.display="block",this.level=t,this.isAnimate||(this.isOpen?this.updateMega(t):this.openMega(t))}openMega(e){this.isOpen=!0,this.isAnimate=!0,this.mega.appendChild(e),document.body.classList.add("menu-open");const t=e.offsetHeight;this.mega.style.transform=`translateY(-${t+20}px)`,this.mega.style.height=`${t+100}px`,$({targets:this.mega,translateY:0,duration:500,easing:"easeOutQuad"}).finished.then(()=>{this.isAnimate=!1})}static clipRect(e){return`rect(${e.top}px, ${e.right}px, ${e.bottom}px, ${e.left}px)`}updateMega(e){this.isAnimate=!0;const t=this.mega.querySelector('.u-nav-level[data-nav-level="1"]'),i=t.querySelector('nav[data-nav-level="1"]'),r=t.querySelector(".u-nav-card"),n=e.querySelector('nav[data-nav-level="1"]'),o=e.querySelector(".u-nav-card");e.style.opacity=0,e.style.position="absolute",n.style.opacity=0,this.mega.appendChild(e);const c=e.offsetHeight,a=$.timeline();if(a.add({targets:i,opacity:0,duration:250,easing:"easeInQuad"}),r){r.style.height=`${r.offsetHeight}px`;const l=t.querySelector(".u-card__cover img"),h=l.offsetWidth,u=l.offsetHeight,y={top:0,right:h,bottom:u,left:0},d=t.querySelector(".u-card__content"),p=d.offsetHeight,g=d.offsetWidth,m=window.getComputedStyle(d,null).getPropertyValue("margin-left"),B={top:0,right:g,bottom:p,left:0};d.style.left=m,d.style.position="absolute",a.add({targets:y,left:h,duration:350,offset:0,easing:"easeInQuad",update(){l.style.clip=be.clipRect(y)}}).add({targets:B,left:g,duration:350,offset:50,easing:"easeInQuad",update(){d.style.clip=be.clipRect(B)}})}if(a.add({targets:this.mega,height:c,duration:200,offset:"-=25",easing:"easeInOutQuad"}),o){o.style.height=`${o.offsetHeight}px`;const l=e.querySelector(".u-card__cover img"),h=l.offsetWidth,y={top:0,right:0,bottom:l.offsetHeight,left:0};l.style.clip=be.clipRect(y);const d=e.querySelector(".u-card__content"),p=d.offsetHeight,g=d.offsetWidth,m=window.getComputedStyle(d,null).getPropertyValue("margin-left"),B={top:0,right:0,bottom:p,left:0};d.style.bottom=0,d.style.left=m,d.style.position="absolute",d.style.clip=be.clipRect(B),a.add({targets:y,right:h,duration:550,offset:"-=50",easing:"easeOutQuad",update(){l.style.clip=be.clipRect(y)}}).add({targets:B,right:g,duration:550,offset:"-=100",easing:"easeOutQuad",update(){d.style.clip=be.clipRect(B)}})}e.style.opacity=1,a.add({targets:n,opacity:1,duration:200,offset:"-=150",easing:"easeOutQuad"}),a.finished.then(()=>{if(this.mega.removeChild(t),o){const l=e.querySelector(".u-card__cover img"),h=e.querySelector(".u-card__content");l.style.clip="",h.style.clip="",h.style.left="",h.style.position="relative"}this.isAnimate=!1,console.info("update")})}closeMega(){this.isAnimate=!0,$({targets:this.mega,translateY:-this.mega.offsetHeight-20,duration:500,easing:"easeInQuad"}).finished.then(()=>{this.emptyMega(),this.isOpen=!1,this.isAnimate=!1,document.body.classList.remove("menu-open")})}emptyMega(){document.querySelector(".u-nav-mega")&&(this.mega.innerHTML="",this.mega.style.height=0)}}class Bo{constructor(e){if(this.root=e,this.lis=this.root.querySelectorAll("li.has-dropdown"),this.lis.length===0)return{empty:!0};this.init()}init(){P.forEach(this.lis,e=>{const t=e.parentNode.querySelector("li.has-dropdown > a"),i=e.querySelector('nav[data-nav-level="1"]');e.setAttribute("data-dropdown",""),t.setAttribute("data-dropdown-trigger",""),i.setAttribute("data-dropdown-content",""),i.classList.add("u-dropdown"),e.dropdown=new Ds(e)})}destroy(){P.forEach(this.lis,e=>{const t=e.parentNode.querySelector("li.has-dropdown > a"),i=e.querySelector('nav[data-nav-level="1"]');e.removeAttribute("data-dropdown"),t.removeAttribute("data-dropdown-trigger"),i.removeAttribute("data-dropdown-content"),i.classList.remove("u-dropdown"),e.dropdown.destroy()})}}class Ro{constructor(e){this.root=e,this.items=this.root.querySelectorAll("li.has-children"),this.init()}init(){this.onClick=this.click.bind(this),P.forEach(this.items,e=>{e.querySelector(".u-nav-sidebar__link").addEventListener("click",this.onClick)})}click(e){e.preventDefault();const t=e.target.parentNode;t.classList.contains("is-open")?this.close(t):(this.closeAll(),this.open(t))}open(e){console.info("open",e),e.classList.add("is-open");const t=e.querySelector(".u-nav-sidebar__list__list"),i=t.cloneNode(!0);i.style.height="auto",i.style.opacity=0,this.root.appendChild(i);const r=i.offsetHeight;this.root.removeChild(i),$({targets:t,height:r,duration:500,easing:"easeOutExpo"})}close(e){console.info("close",e),e.classList.remove("is-open");const t=e.querySelector(".u-nav-sidebar__list__list");$({targets:t,height:0,duration:250,easing:"easeOutExpo"})}closeAll(){P.forEach(this.items,e=>{e.classList.contains("is-open")&&this.close(e)})}destroy(){P.forEach(this.items,e=>{e.removeEventListener("click",this.onClick)})}}class No{constructor(e,t){this.root=e,this.hasSticky=t,this.megas=[],this.dropdowns=[],this.init()}init(){const e=document.querySelectorAll('.u-nav-portal, [class*="u-nav-portal--"], .u-nav-site, [class*="u-nav-site--"]');P.forEach(e,t=>{const i=new be(t,this.hasSticky),r=new Bo(t);i.empty||this.megas.push(i),r.empty||this.dropdowns.push(r)}
74),this.root.querySelector(".u-nav-sidebar")&&(this.sidebar=new Ro(this.root.querySelector(".u-nav-sidebar")))}destroy(){this.megas.forEach(e=>{e.destroy()}),this.dropdowns.forEach(e=>{e.destroy()}),this.sidebar&&this.sidebar.destroy()}}class Fo{constructor(e){this.root=e,this.list=this.root.querySelector(".u-nav-local__list"),this.elements=this.root.querySelectorAll(".u-nav-local__item"),this.more=this.root.querySelector(".u-nav-local__more"),this.moreUl=this.more.querySelector(".u-dropdown ul"),this.onResize(),this.bind(),window.setTimeout(()=>{this.onResize()},200)}bind(){this.onResize=P.throttle(this.onResize.bind(this),300),window.addEventListener("resize",this.onResize)}destroy(){window.removeEventListener("resize",this.onResize)}update(){this.moreUl.innerHTML="";let e=0;P.forEach(this.elements,t=>{this.updateSingle(t)&&e++}),e>=this.elements.length?this.more.style.display="none":(console.info("show",e),this.more.style.display="block")}updateSingle(e){const t=this.isElementVisible(e),i=e.cloneNode(!0);return e.classList[t?"add":"remove"]("is-visible"),t||this.moreUl.appendChild(i),t}onResize(){this.listWidth=this.list.clientWidth,this.update()}isElementVisible(e){const t=e.offsetLeft,i=e.clientWidth;return t+i<=this.listWidth+5&&Y.isMoreThan("xxsmall")}}class Wo{constructor(e){this.root=document.body,this.hasSticky=e,this.initMobile(),this.initDesktop(),this.initFlexible()}initFlexible(){let e=document.querySelectorAll('[class*="u-nav-local--"][class*="--flexible"]');P.forEach(e,t=>new Fo(t))}initMobile(){const e=this.root.querySelector(".u-nav-mobile, [class*='u-nav-mobile--']");e&&(this.mobile=new Mo(e))}initDesktop(){this.desktop=new No(this.root,this.hasSticky)}}class jo{constructor(e){this.formError=!1,this.formEl=e,this.onFormSubmit=this.onFormSubmit.bind(this),this.formEl&&this.formEl.addEventListener("submit",this.onFormSubmit)}onFormSubmit(e){e.preventDefault(),this.formError=!1;const t=grecaptcha.getResponse();if(t)this.formEl.querySelector("[data-captcha-required]").style.display="none";else{this.formEl.querySelector("[data-captcha-required]").style.display="block";return}let i=0;const r=[];this.formEl.querySelectorAll("[data-question]").forEach(a=>{const l=a.querySelector("[data-question-label]"),h=a.querySelector('input[type="radio"]:checked'),u=a.querySelector(`label[for="${h.getAttribute("id")}"]`);if(r.push({label:l.textContent,value:u.textContent}),h&&h.getAttribute("value")==="yes"){const y=parseInt(a.getAttribute("data-question-score"),10);i+=y}});let o="low";i>=3&&i<5?o="moderate":i>=5&&(o="high");const c={responsable:{"responsable-firstname":this.formEl.querySelector("[name='responsable-firstname']").value,"responsable-lastname":this.formEl.querySelector("[name='responsable-lastname']").value,"responsable-email":this.formEl.querySelector("[name='responsable-email']").value},project:{"project-partners":this.formEl.querySelector("[name='project-partners']").value,"project-country":this.formEl.querySelector("[name='project-country']").value,"project-duration":this.formEl.querySelector("[name='project-duration']").value},answers:r,score:{score:i,level:o},"g-recaptcha-response":t};axios.post("http://uliege.api.v1.staging.epic-sys.io/api/v1/form/",JSON.stringify(c),{headers:{"Content-Type":"application/json"}}).catch(()=>{this.formError=!0,document.querySelector("[data-form-error]").style.display="block"}).then(()=>{this.formError||this.updateUI(i)})}updateUI(e){this.formEl.style.display="none";let t="[data-quizz-results-low]";e>=3&&e<5?t="[data-quizz-results-moderate]":e>=5&&(t="[data-quizz-results-high]");const i=document.querySelector(t);if(i){const r=i.querySelector("[data-quizz-results-score]");r&&(r.innerHTML=e),i.style.display="block"}}}class $o{constructor(e){this.isOpen=!1,this.toggler=e;const t=De.parents(this.toggler,"u-nav-quicklinks");if(t){if(this.content=t.parentNode.querySelector(".u-search"),this.closeBtn=document.querySelector(".u-search__close__btn"),!this.toggler||!this.content){console.error("no search elements found");return}this.isSearchFormOpen=!1,this.container=this.content.querySelector(".u-search__container"),this.localSearchForm=this.content.querySelector(".u-search__bottom"),this.localSearchToggle=this.content.querySelector("[data-local-search]"),this.bind()}}bind(){this.onToggle=this.onToggle.bind(this),this.close=this.close.bind(this),this.onClickOutside=this.onClickOutside.bind(this),this.toggler.addEventListener("click",this.onToggle),this.localSearchToggle.addEventListener("click",this.showSearchForm.bind(this)),document.body.addEventListener("click",this.onClickOutside),document.body.addEventListener("touchend",this.onClickOutside),this.closeBtn&&this.closeBtn.addEventListener("click",this.close)}showSearchForm(e){e.preventDefault(),Y.isLessThan("medium")?this.appendForm():this.toggleForm()}appendForm(){this.isSearchFormOpen?(this.isSearchFormOpen=!1,this.localSearchToggle.classList.remove("active"),this.localSearchForm.querySelector(".u-wrapper").appendChild(this.container.querySelector(".u-search__options form"))):(this.isSearchFormOpen=!0,this.localSearchToggle.classList.add("active"),De.insertAfter(this.localSearchToggle,this.localSearchForm.querySelector("form")))}toggleForm(){this.isSearchFormOpen?(this.localSearchToggle.classList.remove("active"),$({targets:this.localSearchForm,translateY:["0%","-100%"],easing:"easeOutQuad",duration:550,complete:()=>{this.isSearchFormOpen=!1,document.body.classList.remove("menu-open")}})):(this.localSearchToggle.classList.add("active"),$({targets:this.localSearchForm,translateY:["-100%","0%"],easing:"easeOutQuad",duration:550,complete:()=>{this.isSearchFormOpen=!0}}))}onClickOutside(e){if(!this.isOpen)return;let t=e.target,i=r=>r&&r===this.content;for(;t&&!i(t);)t=t.parentNode;i(t)||this.close()}onToggle(e){e.preventDefault(),this.toggle()}
74toggle(){this[this.isOpen?"close":"open"]()}open(){Y.isLessThan("nav")||document.body.classList.add("menu-open"),$({targets:this.container,translateY:["-100%","0%"],easing:"easeOutQuad",duration:550,complete:()=>{this.isOpen=!0}}),this.content.style.display="block",this.toggler.classList.add("active")}close(e){e&&e.preventDefault(),$({targets:this.container,translateY:["0%","-100%"],easing:"easeOutQuad",duration:550,complete:()=>{this.isOpen=!1,this.content.style.display="none",this.toggler.classList.remove("active"),Y.isLessThan("nav")||document.body.classList.remove("menu-open")}})}}const Os={Slider:li,Video:Vs,Filters:Ns};window.applyComponent=function(s,e){if(!Os[P.capitalize(s)])return!1;P.forEach(e,t=>new Os[P.capitalize(s)](t))};document.querySelector(".topbar")&&document.documentElement.classList.add("with-topbar");class vi{constructor(){vi.domReady().then(this.ready.bind(this)),this.detectColorScheme()}ready(){this.applyScrollingHero(),this.applyNewsHero(),this.applyJustifiedGallery(),this.applyStickyHeader(),this.applyClickable(),this.applyLinks(),this.applySlider(),this.applyShare(),this.applyFocus(),this.applyDropdown(),this.applyVideo(),this.applyFakeSelect(),this.applyGallery(),this.applyAccordion(),this.applyTabNavigation(),this.applySidebar(),this.applyMap(),this.applySelectRedirect(),this.applyOnboarding(),this.applyTableResults(),this.applyTests(),this.applyTooltip(),this.applyNav(),this.applySearch(),this.applyHomeVideo(),this.applyCalendar(),this.applyAgendaSchedule(),this.applyCoursesToggle(),this.applyHomeOnboarding(),this.applyParallaxable(),this.applyExperience(),this.applyFullscreenPicture(),this.applyMosaicOverlayer(),this.applyNewsFilters(),this.applyNewsSlider(),this.applyViewport(),this.applyQuizz()}detectColorScheme(){const e=document.body.getAttribute("data-color-scheme");(!e||e==="auto")&&window.matchMedia("(prefers-color-scheme: dark)").matches&&document.body.classList.add("dark")}applyScrollingHero(){const e=document.querySelector('[data-component="scrolling-hero"]');e&&new tn(e)}applyNewsHero(){const e=document.querySelector('[data-component="news-hero"]');e&&new Kr(e)}applyJustifiedGallery(){const e=document.querySelectorAll('[class*="u-mosaic-gallery--"][class*="--justified"]');P.forEach(e,t=>{new Vr(t)})}applyParallaxable(){const e=document.querySelectorAll('[data-component="parallaxable"]');P.forEach(e,t=>{new en(t)})}applyHomeOnboarding(){const e=document.querySelector('[data-component="home-onboarding"]');new Ur(e)}applyNav(){this.nav=new Wo(this.sticky.hasSticky)}applySearch(){const e=document.querySelectorAll('[href$="#search"]');P.forEach(e,t=>{new $o(t)})}applyClickable(){new gr}
74applySlider(){const e=document.querySelectorAll(".u-slider");P.forEach(e,t=>new li(t))}applyShare(){new rn}applyLinks(){new Gr}applyFocus(){const e=document.querySelectorAll(".u-focus");P.forEach(e,t=>new zr(t))}applyDropdown(){const e=document.querySelectorAll("[data-dropdown]");P.forEach(e,t=>new Ds(t))}applyVideo(){const e=document.querySelectorAll('[class*="u-card--"][class*="--video"]:not([class*="--tiny"])');P.forEach(e,t=>new Vs(t))}applyFakeSelect(){const e=document.querySelectorAll(".u-fake-select");P.forEach(e,t=>new br(t))}applyGallery(){const e=document.querySelectorAll(".u-gallery");P.forEach(e,t=>new Wr(t))}applyAccordion(){const e=document.querySelectorAll("[data-accordion-toggler]");P.forEach(e,t=>new dr(t))}applyTabNavigation(){const e=document.querySelectorAll("[data-nav-tab]");P.forEach(e,t=>new jn(t))}applyTests(){if("CSS"in window&&"supports"in window.CSS){var e=window.CSS.supports("mix-blend-mode","multiply");e=e?"mix-blend-mode":"no-mix-blend-mode",document.documentElement.classList.add(e)}}applyTooltip(){const e=document.querySelectorAll("[data-tooltip]");P.forEach(e,t=>new Io(t,{placement:"top",title:()=>{const r=t.dataset.tooltip.split("/");return`<strong>${r[0]}</strong><span>${r[1]}</span>`},html:!0}))}applyCoursesHeader(){const e=document.querySelector(".u-courses-header");e&&new vr(e)}applyStickyHeader(){this.sticky=new hn}applyMap(){const e=document.querySelectorAll(".u-map");P.forEach(e,t=>new Yr(t))}applySelectRedirect(){const e=document.querySelectorAll("[data-select-redirect]");P.forEach(e,t=>new sn(t))}applySidebar(){const e=document.querySelector(".u-sidebar-inner");e&&new nn(e)}applyHomeVideo(){const e=document.querySelector("[data-home-video]");new zo(e)}applyCalendar(){const e=document.querySelector("[data-article-calendar]");new pr(e)}applyAgendaSchedule(){const e=document.querySelectorAll("[data-agenda-schedule-item]");e.length&&P.forEach(e,t=>new fr(t))}applyCoursesToggle(){const e=document.querySelectorAll("[data-courses-toggle]");e.length&&P.forEach(e,t=>new mr(t))}applyOnboarding(){const e=document.querySelector(".u-card--full, .u-card--hero");e&&new Jr(e)}applyTableResults(){new un}applyExperience(){const e=document.querySelector("[data-experience]");e&&new yr(e)}applyFullscreenPicture(){const e=document.querySelectorAll(".u-mosaic__picture-container[data-fullscreen]");P.forEach(e,t=>new Bs(t))}applyMosaicOverlayer(){const e=document.querySelectorAll('[data-mosaic-overlayer="true"]');e.length&&P.forEach(e,t=>new Xr(t))}applyNewsFilters(){const e=document.querySelector("[data-news-filters]");new Ns(e)}applyNewsSlider(){const e=document.querySelectorAll("[data-news-slider]");e.length&&P.forEach(e,t=>new Zr(t))}applyQuizz(){const e=document.querySelector("[data-quizz]");e&&new jo(e)}applyViewport(){new $n}static domReady(){return new Promise(e=>{document.addEventListener("DOMContentLoaded",e)})}}new vi; 75//# sourceMappingURL=main.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.