var bcu={},SWIPE_TRESHOLD=80,TAP_TRESHOLD=80,TAP_PRECISION=80;(function(n){if(typeof define=="function"&&define.amd)define(n);else if(typeof exports=="object")module.exports=n();else{var i=window.Cookies,t=window.Cookies=n();t.noConflict=function(){return window.Cookies=i,t}}})(function(){function n(){for(var n=0,r={},t,i;n1){f=n({path:"/"},r.defaults,f);typeof f.expires=="number"&&(s=new Date,s.setMilliseconds(s.getMilliseconds()+f.expires*864e5),f.expires=s);try{o=JSON.stringify(u);/^[\{\[]/.test(o)&&(u=o)}catch(y){}return u=encodeURIComponent(String(u)),u=u.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)),t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),t=t.replace(/[\(\)]/g,escape),document.cookie=[t,"=",u,f.expires&&"; expires="+f.expires.toUTCString(),f.path&&"; path="+f.path,f.domain&&"; domain="+f.domain,f.secure?"; secure":""].join("")}t||(o={});for(var l=document.cookie?document.cookie.split("; "):[],a=/(%[0-9A-Z]{2})+/g,h=0;h0)s.length===0&&l.find("[aria-expanded=true]").attr("aria-expanded","false").removeClass(o.openClass).filter("."+o.panelClass).attr("aria-hidden","true");else{if((t.type==="mouseout"||t.type==="focusout")&&s.has(i.activeElement).length>0)return;s.find("[aria-expanded]").attr("aria-expanded","false").removeClass(o.openClass).filter("."+o.panelClass).attr("aria-hidden","true");(t.type==="keydown"&&t.keyCode===r.ESCAPE||t.type==="DOMAttrModified")&&(y=s.find(":tabbable:first"),e(function(){l.find("[aria-expanded]."+c.settings.panelClass).off("DOMAttrModified.accessible-megamenu");y.focus();c.justFocused=!1},99))}else f(c.focusTimeoutID),s.siblings().find("[aria-expanded]").attr("aria-expanded","false").removeClass(o.openClass).filter("."+o.panelClass).attr("aria-hidden","true"),s.find("[aria-expanded]").attr("aria-expanded","true").addClass(o.openClass).filter("."+o.panelClass).attr("aria-hidden","false"),p=n("html")[0].scrollTop,a=n("."+o.panelClass+"."+o.openClass).parent().offset().top,p>a&&(n("html")[0].scrollTop=a),t.type==="mouseover"&&h.is(":tabbable")&&s.length===1&&w.length===0&&l.has(i.activeElement).length>0&&(h.focus(),c.justFocused=!1),v.call(c)},p=function(t){var i=n(t.target).closest(":tabbable"),r=i.closest("."+this.settings.topNavItemClass),u=i.closest("."+this.settings.panelClass);r.length===1&&u.length===0&&r.find("."+this.settings.panelClass).length===1&&(i.hasClass(this.settings.openClass)?this.justFocused?(t.preventDefault(),t.stopPropagation(),this.justFocused=!1):!y&&(y||this.settings.openOnMouseover)||(t.preventDefault(),t.stopPropagation(),h.call(this,t,i.hasClass(this.settings.openClass))):(t.preventDefault(),t.stopPropagation(),h.call(this,t),this.justFocused=!1))},b=function(){this.justMoved=!0},k=function(t){n(t.target).closest(this.menu).length===0&&(t.preventDefault(),t.stopPropagation(),h.call(this,t,!0))},d=function(t){t.originalEvent.attrName==="aria-expanded"&&t.originalEvent.newValue==="false"&&n(t.target).hasClass(this.settings.openClass)&&(t.preventDefault(),t.stopPropagation(),h.call(this,t,!0))},g=function(t){f(this.focusTimeoutID);var i=n(t.target),r=i.closest("."+this.settings.panelClass);i.addClass(this.settings.focusClass);this.justFocused=!this.mouseFocused||!this.settings.openOnMouseover&&this.mouseFocused;this.mouseFocused=!1;this.justFocused&&this.panels.not(r).filter("."+this.settings.openClass).length&&h.call(this,t)},nt=function(i){this.justFocused=!1;var r=this,u=n(i.target),o=u.closest("."+this.settings.topNavItemClass);u.removeClass(this.settings.focusClass);r.focusTimeoutID=t.cvox?e(function(){t.cvox.Api.getCurrentNode(function(n){o.has(n).length?f(r.focusTimeoutID):r.focusTimeoutID=e(function(n,t,i){h.call(n,t,i)},275,r,i,!0)})},25):e(function(){r.mouseFocused&&i.relatedTarget===null||h.call(r,i,!0)},300)},a=function(t){var y=this.constructor===o?this:w(this),v=y.settings,a=n(n(this).is("."+v.hoverClass+":tabbable")?this:t.target),ht=y.menu,k=y.topnavitems,b=a.closest("."+v.topNavItemClass),i=ht.find(":tabbable"),et=a.hasClass(v.panelClass)?a:a.closest("."+v.panelClass),nt=et.find("."+v.panelGroupClass),it=a.closest("."+v.panelGroupClass),tt,ct=t.keyCode||t.which,ut,l,d,rt,u=!1,ot=r.keyMap[t.keyCode]||"",ft,g=b.length===1&&et.length===0;if(!a.is("input:focus, select:focus, textarea:focus, button:focus")){a.is("."+v.hoverClass+":tabbable")&&n("html").off("keydown.accessible-megamenu");switch(ct){case r.ESCAPE:this.mouseFocused=!1;h.call(y,t,!0);break;case r.DOWN:t.preventDefault();this.mouseFocused=!1;g?(h.call(y,t),u=b.find("."+v.panelClass+" :tabbable:first").focus().length===1):u=i.filter(":gt("+i.index(a)+"):first").focus().length===1;!u&&s&&(t.ctrlKey||t.metaKey)&&(i=n(":tabbable"),l=i.index(a),u=n(":tabbable:gt("+n(":tabbable").index(a)+"):first").focus().length===1);break;case r.UP:t.preventDefault();this.mouseFocused=!1;g&&a.hasClass(v.openClass)?(h.call(y,t,!0),tt=k.filter(":lt("+k.index(b)+"):last"),tt.children("."+v.panelClass).length&&(u=tt.find("[aria-expanded]").attr("aria-expanded","true").addClass(v.openClass).filter("."+v.panelClass).attr("aria-hidden","false").find(":tabbable:last").focus()===1)):g||(u=i.filter(":lt("+i.index(a)+"):last").focus().length===1);!u&&s&&(t.ctrlKey||t.metaKey)&&(i=n(":tabbable"),l=i.index(a),u=n(":tabbable:lt("+n(":tabbable").index(a)+"):first").focus().length===1);break;case r.RIGHT:t.preventDefault();this.mouseFocused=!1;g?u=k.filter(":gt("+k.index(b)+"):first").find(":tabbable:first").focus().length===1:(nt.length&&it.length&&(u=nt.filter(":gt("+nt.index(it)+"):first").find(":tabbable:first").focus().length===1),u||(u=b.find(":tabbable:first").focus().length===1));break;case r.LEFT:t.preventDefault();this.mouseFocused=!1;g?u=k.filter(":lt("+k.index(b)+"):last").find(":tabbable:first").focus().length===1:(nt.length&&it.length&&(u=nt.filter(":lt("+nt.index(it)+"):last").find(":tabbable:first").focus().length===1),u||(u=b.find(":tabbable:first").focus().length===1));break;case r.TAB:this.mouseFocused=!1;l=i.index(a);t.shiftKey&&g&&a.hasClass(v.openClass)?(h.call(y,t,!0),tt=k.filter(":lt("+k.index(b)+"):last"),tt.children("."+v.panelClass).length&&(u=tt.children().attr("aria-expanded","true").addClass(v.openClass).filter("."+v.panelClass).attr("aria-hidden","false").find(":tabbable:last").focus())):t.shiftKey&&l>0?u=i.filter(":lt("+l+"):last").focus().length===1:!t.shiftKey&&l=0)&&l(t,!r)}})}(jQuery,window,document);class LiteYTEmbed extends HTMLElement{connectedCallback(){this.videoId=this.getAttribute("videoid");let n=this.querySelector(".lty-playbtn");if(this.playLabel=n&&n.textContent.trim()||this.getAttribute("playlabel")||"Play",this.style.backgroundImage||(this.posterUrl=`https://i.ytimg.com/vi/${this.videoId}/hqdefault.jpg`,LiteYTEmbed.addPrefetch("preload",this.posterUrl,"image"),this.style.backgroundImage=`url("${this.posterUrl}")`),n||(n=document.createElement("button"),n.type="button",n.classList.add("lty-playbtn"),this.append(n)),!n.textContent){const t=document.createElement("span");t.className="lyt-visually-hidden";t.textContent=this.playLabel;n.append(t)}this.addEventListener("pointerover",LiteYTEmbed.warmConnections,{once:!0});this.addEventListener("click",()=>this.addIframe())}static addPrefetch(n,t,i){const r=document.createElement("link");r.rel=n;r.href=t;i&&(r.as=i);document.head.append(r)}static warmConnections(){LiteYTEmbed.preconnected||(LiteYTEmbed.addPrefetch("preconnect","https://www.youtube-nocookie.com"),LiteYTEmbed.addPrefetch("preconnect","https://www.google.com"),LiteYTEmbed.addPrefetch("preconnect","https://googleads.g.doubleclick.net"),LiteYTEmbed.addPrefetch("preconnect","https://static.doubleclick.net"),LiteYTEmbed.preconnected=!0)}addIframe(){const t=new URLSearchParams(this.getAttribute("params")||[]);t.append("autoplay","1");const n=document.createElement("iframe");n.width=560;n.height=315;n.title=this.playLabel;n.allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture";n.allowFullscreen=!0;n.src=`https://www.youtube-nocookie.com/embed/${encodeURIComponent(this.videoId)}?${t.toString()}`;this.append(n);this.classList.add("lyt-activated");this.querySelector("iframe").focus()}}customElements.define("lite-youtube",LiteYTEmbed)