8373491d03ba0fdd145c349b67766ac3-scripts

by

/**handles:generate-menu,generate-modal,generate-back-to-top,smush-lazy-load**/
(()=>{var e=document.querySelectorAll(\”.main-nav .sub-menu, .main-nav .children\”);if(e&&e.forEach(function(e){var t,n=e.closest(\”li\”),s=n.querySelector(\’.dropdown-menu-toggle[role=\”button\”]\’);e.id||(t=n.id||\”menu-item-\”+Math.floor(1e5*Math.random()),e.id=t+\”-sub-menu\”),(s=s||n.querySelector(\’a[role=\”button\”]\’))&&s.setAttribute(\”aria-controls\”,e.id)}),\”querySelector\”in document&&\”addEventListener\”in window){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;if(document.documentElement.contains(this))do{if(t.matches(e))return t}while(null!==(t=t.parentElement));return null});var o=function(t){return Array.prototype.filter.call(t.parentNode.children,function(e){return e!==t})},t=document.querySelectorAll(\”.menu-toggle\”),n=document.querySelectorAll(\”nav .dropdown-menu-toggle\”),s=document.querySelectorAll(\”nav .main-nav ul a\”),l=document.querySelector(\”.mobile-menu-control-wrapper\”),c=document.body,u=document.documentElement,d=function(e){if(e&&c.classList.contains(\”dropdown-hover\”)){var t=e.querySelectorAll(\”li.menu-item-has-children\”);for(h=0;h<t.length;h++)t[h].querySelector(".dropdown-menu-toggle").removeAttribute("tabindex"),t[h].querySelector(".dropdown-menu-toggle").setAttribute("role","presentation"),t[h].querySelector(".dropdown-menu-toggle").removeAttribute("aria-expanded"),t[h].querySelector(".dropdown-menu-toggle").removeAttribute("aria-controls"),t[h].querySelector(".dropdown-menu-toggle").removeAttribute("aria-label")}},r=function(e){"false"!==e.getAttribute("aria-expanded")&&e.getAttribute("aria-expanded")?(e.setAttribute("aria-expanded","false"),e.setAttribute("aria-label",generatepressMenu.openSubMenuLabel)):(e.setAttribute("aria-expanded","true"),e.setAttribute("aria-label",generatepressMenu.closeSubMenuLabel))},a=function(e,t){var n="";if(n=(t=t||this).getAttribute("data-nav")?document.getElementById(t.getAttribute("data-nav")):document.getElementById(t.closest("nav").getAttribute("id"))){var s=!1,o=(t.closest(".mobile-menu-control-wrapper")&&(s=!0),n.getElementsByTagName("ul")[0]);if(n.classList.contains("toggled"))n.classList.remove("toggled"),u.classList.remove("mobile-menu-open"),o&&o.setAttribute("aria-hidden","true"),t.setAttribute("aria-expanded","false"),(s||l&&n.classList.contains("main-navigation"))&&l.classList.remove("toggled"),d(o);else{n.classList.add("toggled"),u.classList.add("mobile-menu-open"),o&&o.setAttribute("aria-hidden","false"),t.setAttribute("aria-expanded","true"),s?(l.classList.add("toggled"),l.querySelector(".search-item")&&l.querySelector(".search-item").classList.contains("active")&&l.querySelector(".search-item").click()):l&&n.classList.contains("main-navigation")&&l.classList.add("toggled");t=o;if(t&&c.classList.contains("dropdown-hover")){var r=t.querySelectorAll("li.menu-item-has-children");for(h=0;h<r.length;h++){var a=r[h].querySelector(".dropdown-menu-toggle"),i=a.closest("li").querySelector(".sub-menu, .children");a.setAttribute("tabindex","0"),a.setAttribute("role","button"),a.setAttribute("aria-expanded","false"),a.setAttribute("aria-controls",i.id),a.setAttribute("aria-label",generatepressMenu.openSubMenuLabel)}}}}};for(h=0;h<t.length;h++)t[h].addEventListener("click",a,!1);var i=function(e,t){if(((t=t||this).closest("nav").classList.contains("toggled")||u.classList.contains("slide-opened"))&&!c.classList.contains("dropdown-click")){e.preventDefault();var n,t=t.closest("li");if(r(t.querySelector(".dropdown-menu-toggle")),n=t.querySelector(".sub-menu")?t.querySelector(".sub-menu"):t.querySelector(".children"),generatepressMenu.toggleOpenedSubMenus){var s=o(t);for(h=0;h<s.length;h++)s[h].classList.contains("sfHover")&&(s[h].classList.remove("sfHover"),s[h].querySelector(".toggled-on").classList.remove("toggled-on"),r(s[h].querySelector(".dropdown-menu-toggle")))}t.classList.toggle("sfHover"),n.classList.toggle("toggled-on")}e.stopPropagation()};for(h=0;h<n.length;h++)n[h].addEventListener("click",i,!1),n[h].addEventListener("keypress",function(e){"Enter"!==e.key&&" "!==e.key||i(e,this)},!1);e=function(){var e=document.querySelectorAll(".toggled, .has-active-search");for(h=0;h<e.length;h++){var t=e[h].querySelector(".menu-toggle");if((t=l&&!t.closest("nav").classList.contains("mobile-menu-control-wrapper")?l.querySelector(".menu-toggle"):t)&&null===t.offsetParent){if(e[h].classList.contains("toggled")){var n,s,o,r=!1;if((r=e[h].classList.contains("mobile-menu-control-wrapper")?!0:r)||(s=(n=e[h].getElementsByTagName("ul")[0])?n.getElementsByTagName("li"):[],o=n?n.getElementsByTagName("ul"):[]),document.activeElement.blur(),e[h].classList.remove("toggled"),u.classList.remove("mobile-menu-open"),t.setAttribute("aria-expanded","false"),!r){for(var a=0;a<s.length;a++)s[a].classList.remove("sfHover");for(var i=0;i<o.length;i++)o[i].classList.remove("toggled-on");n&&n.removeAttribute("aria-hidden")}d(e[h])}l.querySelector(".search-item")&&l.querySelector(".search-item").classList.contains("active")&&l.querySelector(".search-item").click()}}};if(window.addEventListener("resize",e,!1),window.addEventListener("orientationchange",e,!1),c.classList.contains("dropdown-hover"))for(h=0;h a\”),g=function(){if(!this.closest(\”nav\”).classList.contains(\”toggled\”)&&!this.closest(\”nav\”).classList.contains(\”slideout-navigation\”))for(var e=this;-1===e.className.indexOf(\”main-nav\”);)\”li\”===e.tagName.toLowerCase()&&e.classList.toggle(\”sfHover\”),e=e.parentElement},v=function(){if(!this.closest(\”nav\”).classList.contains(\”toggled\”)&&!this.closest(\”nav\”).classList.contains(\”slideout-navigation\”))for(var e=this;-1===e.className.indexOf(\”menu-bar-items\”);)e.classList.contains(\”menu-bar-item\”)&&e.classList.toggle(\”sfHover\”),e=e.parentElement},h=0;h<s.length;h++)s[h].addEventListener("focus",g),s[h].addEventListener("blur",g);for(h=0;h<m.length;h++)m[h].addEventListener("focus",v),m[h].addEventListener("blur",v)}if("ontouchend"in document.documentElement&&document.body.classList.contains("dropdown-hover")){var f=document.querySelectorAll(".sf-menu .menu-item-has-children");for(h=0;h<f.length;h++)f[h].addEventListener("touchend",function(e){if(!(this.closest("nav").classList.contains("toggled")||1!==e.touches.length&&0!==e.touches.length||(e.stopPropagation(),this.classList.contains("sfHover")))){e.target!==this&&e.target.parentNode!==this&&!e.target.parentNode.parentNode||e.preventDefault();var e=this.closest("li"),t=o(e);for(h=0;he.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function f(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var e=function(e){var t=e.targetModal,n=e.openTrigger,e=e.triggers,e=void 0===e?[]:e,r=document.getElementById(t),o,a;function i(){var e,t;r.classList.add("gp-modal–transition"),a=document.activeElement,r.classList.add(o.openClass),l("disable"),r.addEventListener("touchstart",c),r.addEventListener("click",c),document.addEventListener("keydown",d),0!==(e=u()).length&&(0<(t=e.filter(function(e){return!e.hasAttribute(o.closeTrigger)})).length&&t[0].focus(),0===t.length&&e[0].focus()),setTimeout(function(){return r.classList.remove("gp-modal–transition")},100)}function s(){r.classList.add("gp-modal–transition"),r.removeEventListener("touchstart",c),r.removeEventListener("click",c),document.removeEventListener("keydown",d),l("enable"),a&&a.focus&&a.focus(),r.classList.remove(o.openClass),setTimeout(function(){return r.classList.remove("gp-modal–transition")},500)}function l(e){var t=document.querySelector("body");switch(e){case"enable":Object.assign(t.style,{overflow:""});break;case"disable":Object.assign(t.style,{overflow:"hidden"})}}function c(e){(e.target.hasAttribute(o.closeTrigger)||e.target.parentNode.hasAttribute(o.closeTrigger))&&(e.preventDefault(),e.stopPropagation(),s())}function d(e){var t,n,e;27===e.keyCode&&s(),9===e.keyCode&&(t=e,0!==(n=u()).length&&(e=(n=n.filter(function(e){return null!==e.offsetParent})).indexOf(document.activeElement),t.shiftKey&&0===e&&(n[n.length-1].focus(),t.preventDefault()),!t.shiftKey&&0<n.length&&e===n.length-1&&(n[0].focus(),t.preventDefault())))}function u(){var e=r.querySelectorAll(["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex^="-"])']);return Array.apply(void 0,f(e))}r&&(o={openTrigger:n,closeTrigger:"data-gpmodal-close",openClass:"gp-modal–open"},a="",0<e.length&&function(){for(var e=arguments.length,t=new Array(e),n=0;n{var c;\”querySelector\”in document&&\”addEventListener\”in window&&(c=document.querySelector(\”.generate-back-to-top\”))&&(window.addEventListener(\”scroll\”,function(){var e=window.pageYOffset,t=c.getAttribute(\”data-start-scroll\”);t<e&&c.classList.add("generate-back-to-top__show"),e<t&&c.classList.remove("generate-back-to-top__show")}),c.addEventListener("click",function(e){var t,o,n,a,r;e.preventDefault(),generatepressBackToTop.smooth?(document.body,e=c.getAttribute("data-scroll-speed")||400,t=window.pageYOffset,o=document.body.offsetTop,n=(o-t)/(e/16),a=function(){window.pageYOffset<=(o||0)&&(clearInterval(r),document.activeElement.blur())},r=setInterval(function(){window.scrollBy(0,n),a()},16)):window.scrollTo(0,0)},!1))})();
!function(){var e={6879:function(e){!function(t){var n=function(e,t,n){"use strict";var a,i;if(function(){var t,n={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(t in i=e.lazySizesConfig||e.lazysizesConfig||{},n)t in i||(i[t]=n[t])}(),!t||!t.getElementsByClassName)return{init:function(){},cfg:i,noSupport:!0};var r=t.documentElement,o=e.HTMLPictureElement,s="addEventListener",l="getAttribute",c=e[s].bind(e),d=e.setTimeout,u=e.requestAnimationFrame||d,f=e.requestIdleCallback,m=/^picture$/i,v=["load","error","lazyincluded","_lazyloaded"],y={},g=Array.prototype.forEach,p=function(e,t){return y[t]||(y[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),y[t].test(e[l]("class")||"")&&y[t]},z=function(e,t){p(e,t)||e.setAttribute("class",(e[l]("class")||"").trim()+" "+t)},h=function(e,t){var n;(n=p(e,t))&&e.setAttribute("class",(e[l]("class")||"").replace(n," "))},b=function(e,t,n){var a=n?s:"removeEventListener";n&&b(e,t),v.forEach((function(n){e[a](n,t)}))},C=function(e,n,i,r,o){var s=t.createEvent("Event");return i||(i={}),i.instance=a,s.initEvent(n,!r,!o),s.detail=i,e.dispatchEvent(s),s},A=function(t,n){var a;!o&&(a=e.picturefill||i.pf)?(n&&n.src&&!t[l]("srcset")&&t.setAttribute("srcset",n.src),a({reevaluate:!0,elements:[t]})):n&&n.src&&(t.src=n.src)},E=function(e,t){return(getComputedStyle(e,null)||{})[t]},_=function(e,t,n){for(n=n||e.offsetWidth;n49?function(){f(s,{timeout:o}),o!==i.ricTimeout&&(o=i.ricTimeout)}:M((function(){d(s)}),!0);return function(e){var i;(e=!0===e)&&(o=33),t||(t=!0,(i=r-(n.now()-a))<0&&(i=0),e||i<9?l():d(l,i))}},x=function(e){var t,a,i=99,r=function(){t=null,e()},o=function(){var e=n.now()-a;e<i?d(o,i-e):(f||r)(r)};return function(){a=n.now(),t||(t=d(o,i))}},L=(K=/^img$/i,Q=/^iframe$/i,V="onscroll"in e&&!/(gle|ing)bot/.test(navigator.userAgent),X=0,Y=0,Z=0,ee=-1,te=function(e){Z–,(!e||Z0)&&\”visible\”!=E(i,\”overflow\”)&&(a=i.getBoundingClientRect(),o=U>a.left&&ja.top-1&&I<a.bottom+1);return o},ie=function(){var e,n,o,s,c,d,u,f,m,v,y,g,p=a.elements;if((D=i.loadMode)&&Z<8&&(e=p.length)){for(n=0,ee++;n<e;n++)if(p[n]&&!p[n]._lazyRace)if(!V||a.prematureUnveil&&a.prematureUnveil(p[n]))fe(p[n]);else if((f=p[n][l]("data-expand"))&&(d=1*f)||(d=Y),v||(v=!i.expand||i.expand500&&r.clientWidth>500?500:370:i.expand,a._defEx=v,y=v*i.expFactor,g=i.hFac,J=null,Y<y&&Z2&&D>2&&!t.hidden?(Y=y,ee=0):Y=D>1&&ee>1&&Z=u&&(I=o.top)=u*g&&(j=o.left)<=$&&(G||U||j||I)&&(i.loadHidden||ne(p[n]))&&(R&&Z<3&&!f&&(D<3||ee9)break}else!c&&R&&!s&&Z<4&&ee2&&(P[0]||i.preloadAfterLoad)&&(P[0]||!f&&(G||U||j||I||\”auto\”!=p[n][l](i.sizesAttr)))&&(s=P[0]||p[n]);s&&!c&&fe(s)}},re=N(ie),oe=function(e){var t=e.target;t._lazyCache?delete t._lazyCache:(te(e),z(t,i.loadedClass),h(t,i.loadingClass),b(t,le),C(t,\”lazyloaded\”))},se=M(oe),le=function(e){se({target:e.target})},ce=function(e,t){var n=e.getAttribute(\”data-load-mode\”)||i.iframeLoadMode;0==n?e.contentWindow.location.replace(t):1==n&&(e.src=t)},de=function(e){var t,n=e[l](i.srcsetAttr);(t=i.customMedia[e[l](\”data-media\”)||e[l](\”media\”)])&&e.setAttribute(\”media\”,t),n&&e.setAttribute(\”srcset\”,n)},ue=M((function(e,t,n,a,r){var o,s,c,u,f,v;(f=C(e,\”lazybeforeunveil\”,t)).defaultPrevented||(a&&(n?z(e,i.autosizesClass):e.setAttribute(\”sizes\”,a)),s=e[l](i.srcsetAttr),o=e[l](i.srcAttr),r&&(u=(c=e.parentNode)&&m.test(c.nodeName||\”\”)),v=t.firesLoad||\”src\”in e&&(s||o||u),f={target:e},z(e,i.loadingClass),v&&(clearTimeout(k),k=d(te,2500),b(e,le,!0)),u&&g.call(c.getElementsByTagName(\”source\”),de),s?e.setAttribute(\”srcset\”,s):o&&!u&&(Q.test(e.nodeName)?ce(e,o):e.src=o),r&&(s||u)&&A(e,{src:o})),e._lazyRace&&delete e._lazyRace,h(e,i.lazyClass),w((function(){var t=e.complete&&e.naturalWidth>1;v&&!t||(t&&z(e,i.fastLoadedClass),oe(f),e._lazyCache=!0,d((function(){\”_lazyCache\”in e&&delete e._lazyCache}),9)),\”lazy\”==e.loading&&Z–}),!0)})),fe=function(e){if(!e._lazyRace){var t,n=K.test(e.nodeName),a=n&&(e[l](i.sizesAttr)||e[l](\”sizes\”)),r=\”auto\”==a;(!r&&R||!n||!e[l](\”src\”)&&!e.srcset||e.complete||p(e,i.errorClass)||!p(e,i.lazyClass))&&(t=C(e,\”lazyunveilread\”).detail,r&&W.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,Z++,ue(e,t,r,a,n))}},me=x((function(){i.loadMode=3,re()})),ve=function(){3==i.loadMode&&(i.loadMode=2),me()},ye=function(){R||(n.now()-H<999?d(ye,999):(R=!0,i.loadMode=3,re(),c("scroll",ve,!0)))},{_:function(){H=n.now(),a.elements=t.getElementsByClassName(i.lazyClass),P=t.getElementsByClassName(i.lazyClass+" "+i.preloadClass),c("scroll",re,!0),c("resize",re,!0),c("pageshow",(function(e){if(e.persisted){var n=t.querySelectorAll("."+i.loadingClass);n.length&&n.forEach&&u((function(){n.forEach((function(e){e.complete&&fe(e)}))}))}})),e.MutationObserver?new MutationObserver(re).observe(r,{childList:!0,subtree:!0,attributes:!0}):(r[s]("DOMNodeInserted",re,!0),r[s]("DOMAttrModified",re,!0),setInterval(re,999)),c("hashchange",re,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach((function(e){t[s](e,re,!0)})),/d$|^c/.test(t.readyState)?ye():(c("load",ye),t[s]("DOMContentLoaded",re),d(ye,2e4)),a.elements.length?(ie(),w._lsFlush()):re()},checkElems:re,unveil:fe,_aLSL:ve}),W=(T=M((function(e,t,n,a){var i,r,o;if(e._lazysizesWidth=a,a+="px",e.setAttribute("sizes",a),m.test(t.nodeName||""))for(r=0,o=(i=t.getElementsByTagName("source")).length;r<o;r++)i[r].setAttribute("sizes",a);n.detail.dataAttr||A(e,n.detail)})),F=function(e,t,n){var a,i=e.parentNode;i&&(n=_(e,i,n),(a=C(e,"lazybeforesizes",{width:n,dataAttr:!!t})).defaultPrevented||(n=a.detail.width)&&n!==e._lazysizesWidth&&T(e,i,a,n))},O=x((function(){var e,t=B.length;if(t)for(e=0;e<t;e++)F(B[e])})),{_:function(){B=t.getElementsByClassName(i.autosizesClass),c("resize",O)},checkElems:O,updateElem:F}),S=function(){!S.i&&t.getElementsByClassName&&(S.i=!0,W._(),L._())};var B,T,F,O;var P,R,k,D,H,$,q,I,j,U,G,J,K,Q,V,X,Y,Z,ee,te,ne,ae,ie,re,oe,se,le,ce,de,ue,fe,me,ve,ye;var ge,pe,ze,he,be,Ce,Ae;return d((function(){i.init&&S()})),a={cfg:i,autoSizer:W,loader:L,init:S,uP:A,aC:z,rC:h,hC:p,fire:C,gW:_,rAF:w}}(t,t.document,Date);t.lazySizes=n,e.exports&&(e.exports=n)}("undefined"!=typeof window?window:{})}},t={};function n(a){var i=t[a];if(void 0!==i)return i.exports;var r=t[a]={exports:{}};return e[a](r,r.exports,n),r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=n(6879),t=n.n(e);document.addEventListener("lazybeforeunveil",(function(e){!function(e){var t=e.getAttribute("data-bg-image"),n="background-image";if(t||(t=e.getAttribute("data-bg"),n="background"),t){var a=t.replace(/\\s*\\!\\s*important/i,""),i=a!==t?"important":"";e.style.setProperty(n,a,i)}}(e.target)})),t().init()}()}();
//# sourceMappingURL=smush-lazy-load.min.js.map