').appendTo('body').css('opacity',0).hide();self.toolbar_arrow=self.toolbar.find('.arrow');self.initializeToolbar();},overrideOptions:function(){var self=this;$.each(self.options,function($option){if(typeof(self.$elem.data('toolbar-'+$option))!="undefined"){self.options[$option]=self.$elem.data('toolbar-'+$option);}});},initializeToolbar:function(){var self=this;self.populateContent();self.setTrigger();self.toolbarWidth=self.toolbar.width();},setTrigger:function(){var self=this;if(self.options.event=='onload'){$(window).load(function(event){event.preventDefault();self.show();});}
if(self.options.event=='click'){self.$elem.on('click',function(event){event.preventDefault();if(self.$elem.hasClass('pressed')){self.hide();}else{self.show();}});if(self.options.hideOnClick){$('html').on("click.toolbar",function(event){if(event.target!=self.elem&&self.$elem.has(event.target).length===0&&self.toolbar.has(event.target).length===0&&self.toolbar.is(":visible")){self.hide();}});}}
if(self.options.hover){var moveTime;function decideTimeout(){if(self.$elem.hasClass('pressed')){moveTime=setTimeout(function(){self.hide();},150);}else{clearTimeout(moveTime);};};self.$elem.on({mouseenter:function(event){if(self.$elem.hasClass('pressed')){clearTimeout(moveTime);}else{self.show();}}});self.$elem.parent().on({mouseleave:function(event){decideTimeout();}});$('.tool-container').on({mouseenter:function(event){clearTimeout(moveTime);},mouseleave:function(event){decideTimeout();}});}
$(window).resize(function(event){event.stopPropagation();if(self.toolbar.is(":visible")){self.toolbarCss=self.getCoordinates(self.options.position,20);self.collisionDetection();self.toolbar.css(self.toolbarCss);self.toolbar_arrow.css(self.arrowCss);}});},populateContent:function(){var self=this;var location=self.toolbar.find('.tool-items');var content=$(self.options.content).clone(true).find('a').addClass('tool-item');location.html(content);location.find('.tool-item').on('click',function(event){if(typeof window.glt_request_uri=='undefined')
event.preventDefault();self.$elem.trigger('toolbarItemClick',this);});},calculatePosition:function(){var self=this;self.arrowCss={};self.toolbarCss=self.getCoordinates(self.options.position,self.options.adjustment);self.toolbarCss.position='fixed';self.toolbarCss.zIndex=self.options.zIndex;self.collisionDetection();self.toolbar.css(self.toolbarCss);self.toolbar_arrow.css(self.arrowCss);},getCoordinates:function(position,adjustment){var self=this;self.coordinates=self.$elem.offset();if(self.options.adjustment&&self.options.adjustment[self.options.position]){adjustment=self.options.adjustment[self.options.position]+adjustment;}
switch(self.options.position){case'top':return{left:self.coordinates.left-(self.toolbar.width()/2)+(self.$elem.outerWidth()/2),top:self.coordinates.top-self.$elem.outerHeight()-adjustment,right:'auto'};case'left':return{left:self.coordinates.left-(self.toolbar.width()/2)-(self.$elem.outerWidth()/2)-adjustment,top:self.coordinates.top-(self.toolbar.height()/2)+(self.$elem.outerHeight()/2),right:'auto'};case'right':return{left:self.coordinates.left+(self.toolbar.width()/2)+(self.$elem.outerWidth()/2)+adjustment,top:self.coordinates.top-(self.toolbar.height()/2)+(self.$elem.outerHeight()/2),right:'auto'};case'bottom':return{left:self.coordinates.left-(self.toolbar.width()/2)+(self.$elem.outerWidth()/2),top:self.coordinates.top+self.$elem.outerHeight()+adjustment,right:'auto'};}},collisionDetection:function(){var self=this;var edgeOffset=20;if(self.options.position=='top'||self.options.position=='bottom'){self.arrowCss={left:'50%',right:'50%'};if(self.toolbarCss.left
=0},addClass:function(e,t){e.className+=" "+t},removeClass:function(e,t){var i=new RegExp("\\b"+this.escapeRegExp(t)+"\\b");e.className=e.className.replace(i,"")},interpolateString:function(e,t){return e.replace(/{{([a-z][a-z0-9\-_]*)}}/gi,function(e){return t(arguments[1])||""})},getCookie:function(e){var t=("; "+document.cookie).split("; "+e+"=");return t.length<2?void 0:t.pop().split(";").shift()},setCookie:function(e,t,i,o,n,s){var a=new Date;a.setHours(a.getHours()+24*(i||365));var c=[e+"="+t,"expires="+a.toUTCString(),"samesite=lax;path="+(n||"/")];o&&c.push("domain="+o),s&&c.push("secure"),document.cookie=c.join(";")},deepExtend:function(e,t){for(var i in t)t.hasOwnProperty(i)&&(i in e&&this.isPlainObject(e[i])&&this.isPlainObject(t[i])?this.deepExtend(e[i],t[i]):e[i]=t[i]);return e},throttle:function(e,t){var i=!1;return function(){i||(e.apply(this,arguments),i=!0,setTimeout(function(){i=!1},t))}},hash:function(e){var t,i,o=0;if(0===e.length)return o;for(t=0,i=e.length;t=128?"#000":"#fff"},getLuminance:function(e){var t=parseInt(this.normaliseHex(e),16),i=38+(t>>16),o=38+(t>>8&255),n=38+(255&t);return"#"+(16777216+65536*(i<255?i<1?0:i:255)+256*(o<255?o<1?0:o:255)+(n<255?n<1?0:n:255)).toString(16).slice(1)},isMobile:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},isPlainObject:function(e){return"object"==typeof e&&null!==e&&e.constructor==Object},traverseDOMPath:function(e,i){return e&&e.parentNode?t.hasClass(e,i)?e:this.traverseDOMPath(e.parentNode,i):null}};e.status={deny:"deny",allow:"allow",dismiss:"dismiss",allowall:"allowall",savesettings:"savesettings",detailed:"detailed",close:"close",discard:"discard"},e.transitionEnd=function(){var e=document.createElement("div"),t={t:"transitionend",OT:"oTransitionEnd",msT:"MSTransitionEnd",MozT:"transitionend",WebkitT:"webkitTransitionEnd"};for(var i in t)if(t.hasOwnProperty(i)&&void 0!==e.style[i+"ransition"])return t[i];return""}(),e.hasTransition=!!e.transitionEnd;var i=Object.keys(e.status).map(t.escapeRegExp);e.customStyles={},e.Popup=function(){var o={enabled:!0,container:null,cookie:{name:"cookieconsent_status",path:"/",domain:"",expiryDays:365,secure:!1},onPopupOpen:function(){},onPopupClose:function(){},onInitialise:function(e){},onStatusChange:function(e,t){},onRevokeChoice:function(){},onNoCookieLaw:function(e,t){},content:{header:"Cookies used on the website!",message:"This website uses cookies to ensure you get the best experience on our website.",dismiss:"Got it!",allow:"Allow cookies",deny:"Decline",savesettings:"Save Settings",link:"Learn more",href:"https://www.cookiescanner.com",close:"x",target:"_blank",policy:"Cookie Policy"},elements:{header:' ',message:'{{message}} ',messagelink:'{{message}} {{link}} ',messageswitchlink:'{{message}} {{link}} {{allswitches}}
',dismiss:'{{dismiss}} ',allow:'{{allow}} ',deny:'{{deny}} ',savesettings:'{{savesettings}} ',allowall:'{{allow}} ',link:'{{link}} ',close:'{{close}} ',closeCustomText:'{{close}} ',switch:'{{label}} {{label}} '},window:' \x3c!--googleoff: all--\x3e{{children}}\x3c!--googleon: all--\x3e
',revokeBtnText:'{{policy}}
',revokeBtnIcon:'',revokeBtnType:"textOnly",revokeBtnIconDValue:"M14.5 10C13.67 10 13 9.33 13 8.5V8H12.5C11.67 8 11 7.33 11 6.5V5.07C7.91 5.5 5.47 8 5.07 11.08C5.25 10.46 5.82 10 6.5 10C7.33 10 8 10.67 8 11.5S7.33 13 6.5 13C5.71 13 5.07 12.39 5 11.62C5 12.11 5 12.61 5.09 13.12C5.5 15.81 7.54 18.04 10.16 18.74C9.76 18.47 9.5 18 9.5 17.5C9.5 16.67 10.17 16 11 16C11.59 16 12.1 16.35 12.34 16.84C12.16 17.39 12.06 17.97 12 18.57C11.83 18.76 11.6 18.9 11.32 18.96C11.55 19 11.78 19 12 19V19C12 19.69 12.11 20.36 12.29 21C12.19 21 12.1 21 12 21C7.03 21 3 16.97 3 12S7.03 3 12 3C12 3 13 3 13 4V6H14C14 6 15 6 15 7V8H17C17 8 18 8 18 9V10H20C20 10 20.6 10 20.87 10.5C20.96 11 21 11.5 21 12C21 12.1 21 12.19 21 12.29C20.36 12.11 19.69 12 19 12H17.5C16.67 12 16 11.33 16 10.5V10H14.5M11.5 11C10.67 11 10 11.67 10 12.5S10.67 14 11.5 14 13 13.33 13 12.5 12.33 11 11.5 11M11 7.5C11 6.67 10.33 6 9.5 6S8 6.67 8 7.5 8.67 9 9.5 9 11 8.33 11 7.5M23.8 20.4C23.9 20.4 23.9 20.5 23.8 20.6L22.8 22.3C22.7 22.4 22.6 22.4 22.5 22.4L21.3 22C21 22.2 20.8 22.3 20.5 22.5L20.3 23.8C20.3 23.9 20.2 24 20.1 24H18.1C18 24 17.9 23.9 17.8 23.8L17.6 22.5C17.3 22.4 17 22.2 16.8 22L15.6 22.5C15.5 22.5 15.4 22.5 15.3 22.4L14.3 20.7C14.2 20.6 14.3 20.5 14.4 20.4L15.5 19.6V18.6L14.4 17.8C14.3 17.7 14.3 17.6 14.3 17.5L15.3 15.8C15.4 15.7 15.5 15.7 15.6 15.7L16.8 16.2C17.1 16 17.3 15.9 17.6 15.7L17.8 14.4C17.8 14.3 17.9 14.2 18.1 14.2H20.1C20.2 14.2 20.3 14.3 20.3 14.4L20.5 15.7C20.8 15.8 21.1 16 21.4 16.2L22.6 15.7C22.7 15.7 22.9 15.7 22.9 15.8L23.9 17.5C24 17.6 23.9 17.7 23.8 17.8L22.7 18.6V19.6L23.8 20.4M20.5 19C20.5 18.2 19.8 17.5 19 17.5S17.5 18.2 17.5 19 18.2 20.5 19 20.5 20.5 19.8 20.5 19Z",revokeBtnIconColor:"#009868",revokeBtnIconHeight:"2em",blockingScreen:'
',blockScreen:!1,makeButtonsEqual:!1,buttonOrderAllowFirst:!1,activateConsentMode:!1,consentModeConfig:{},compliance:{info:'{{dismiss}}
',"opt-in":'{{deny}}{{allow}}
',"opt-out":'{{deny}}{{allow}}
',detailed:'{{savesettings}}
',detailedRev:'{{savesettings}}{{allowall}}
',detailedRevDeny:'{{deny}}{{savesettings}}{{allowall}}
'},type:"info",layouts:{basic:"{{messagelink}}{{compliance}}","basic-close":"{{messagelink}}{{compliance}}{{close}}","basic-closeCustomText":"{{messagelink}}{{compliance}}{{closeCustomText}}","basic-header":"{{header}}{{message}}{{link}}{{compliance}}",detailed:"{{messageswitchlink}}{{compliance}}","detailed-close":"{{messageswitchlink}}{{compliance}}{{close}}","detailed-closeCustomText":"{{messageswitchlink}}{{compliance}}{{closeCustomText}}"},cookietypes:null,statsUrl:null,statsSendOnOpen:!1,statsCountOpens:!1,layout:"basic",position:"bottom",positionRevokeButton:"bottom-right",centerBanner:!1,theme:"block",static:!1,palette:null,revokable:!0,animateRevokable:!0,showLink:!0,dismissOnScroll:!1,dismissOnTimeout:!1,dismissOnWindowClick:!1,ignoreClicksFrom:["cc-revoke","cc-btn"],autoOpen:!0,autoAttach:!0,forceToAppend:!0,whitelistPage:[],blacklistPage:[],disableWithiniFrames:"0",overrideHTML:null,closeXClickStatus:"default",dataLayerName:"dataLayer"};function n(){this.initialise.apply(this,arguments)}function s(){var e;try{e=localStorage.getItem("beautiful_cookie_banner_open_counter"),e=parseInt(e,10)}catch(e){return console.error(e),0}return("number"!=typeof e||isNaN(e))&&(e=0),e}function a(e,t,i,o,n,s,a){if(!window.pmw||!window.pmw.consent||!window.pmw.consent.api||"function"!=typeof window.pmw.consent.api.updateSelectively)return;const c=[{key:"statistics",values:e},{key:"marketing",values:t},{key:"preferences",values:i},{key:"necessary",values:o}],l={};for(let e=0;ec[e].values.includes(t)).length>0?l[c[e].key]=!0:l[c[e].key]=!1}window.pmw.consent.api.updateSelectively(l),"1"==n&&(window[s]=window[s]||[],window[s].push({event:"pixelManagerWooConsent_update",consents:l}))}function c(e,t,i,o,n,s,a,c){if("function"!=typeof window.wp_set_consent)return;const l={},r=[{key:"statistics",values:e},{key:"statistics-anonymous",values:t},{key:"marketing",values:i},{key:"functional",values:o},{key:"preferences",values:n}];for(let e=0;er[e].values.includes(t)).length>0?(l[r[e].key]=!0,window.wp_set_consent(r[e].key,"allow")):(l[r[e].key]=!1,window.wp_set_consent(r[e].key,"deny"))}"1"==s&&(window[a]=window[a]||[],window[a].push({event:"wpConsentApi_update",consents:l}))}function l(e,t,i,o){"dismiss"===e&&(e="allow"),void 0===e&&"info"===t&&(e="allow"),void 0===e&&"opt-out"===t&&(e="allow"),void 0===e&&(e="deny");const n=[];if("detailed"!==t&&"detailedRev"!==t&&"detailedRevDeny"!==t)return n.push(e),n;for(let e=0;e{{allow}}{{deny}} '),this.options.customOrderConsentButtons&&!1===this.options.buttonOrderAllowFirst&&(this.options.compliance.detailedRevDeny='
"),this.options.customOrderConsentButtons&&!0===this.options.buttonOrderAllowFirst&&(this.options.compliance.detailedRevDeny='
"),function(){var t=this.options.onInitialise.bind(this);if(!window.navigator.cookieEnabled)return t(e.status.deny),!0;if(window.CookiesOK||window.navigator.CookiesOK)return t(e.status.allow),!0;var i=Object.keys(e.status),o=this.getStatus(),n=i.indexOf(o)>=0;n&&t(o);return n}.call(this)&&(this.options.enabled=!1),y(this.options.blacklistPage,location.pathname)&&(this.options.enabled=!1),y(this.options.whitelistPage,location.pathname)&&(this.options.enabled=!0);var s=this.options.window.replace("{{classes}}",function(){var i=this.options;positionStyle=u.call(this);var o=["cc-"+positionStyle,"cc-type-"+i.type,"cc-theme-"+i.theme];i.static&&o.push("cc-static");i.showCloseX&&o.push("cc-addedcloseX");o.push.apply(o,function(){var e=this.options.position.split("-"),t=[];if(1===e.length&&"centered"===e[0])return["cc-top","cc-right","cc-popovercenter"];return e.forEach(function(e){t.push("cc-"+e)}),t}.call(this));(function(i,o){var n=t.hash(JSON.stringify(i)),s="cc-color-override-"+n,a=t.isPlainObject(i);this.customStyleSelector=a?s:null,a&&function(i,o,n,s){if(e.customStyles[i])return void++e.customStyles[i].references;var a={},c=o.popup,l=o.button,r=o.highlight,p=o.switches;c&&(c.text=c.text?c.text:t.getContrast(c.background),c.link=c.link?c.link:c.text,a[n+".cc-window"]=["color: "+c.text,"background-color: "+c.background],a[n+".cc-revoke"]=["color: "+c.text,"background-color: "+c.background],a[n+" .cc-link,"+n+" .cc-link:active,"+n+" .cc-link:visited"]=["color: "+c.link],l&&(l.text=l.text?l.text:t.getContrast(l.background),l.border=l.border?l.border:"transparent",a[n+" .cc-btn"]=["color: "+l.text,"border-color: "+l.border,"background-color: "+l.background],l.padding&&a[n+" .cc-btn"].push("padding: "+l.padding),"transparent"!=l.background&&(a[n+" .cc-btn:hover, "+n+" .cc-btn:focus"]=["background-color: "+(l.hover||k(l.background))]),r?(r.text=r.text?r.text:t.getContrast(r.background),r.border=r.border?r.border:"transparent",a[n+" .cc-highlight .cc-btn:first-child"]=["color: "+r.text,"border-color: "+r.border,"background-color: "+r.background]):!0===s?a[n+" .cc-first-highlight .cc-btn:last-child"]=["color: "+c.text]:a[n+" .cc-highlight .cc-btn:first-child"]=["color: "+c.text]));p&&(a[".cc-slider"]=["background-color: "+p.background+"!important"],a[".cc-slider:before"]=["background-color: "+p.switch+"!important"],a[".cc-switch-label"]=["color: "+p.text],a["input:checked+.cc-slider"]=["background-color: "+p.backgroundChecked+"!important"],a["input:focus+.cc-slider"]=["background-color: "+p.backgroundChecked+"!important"]);var h=document.createElement("style");document.head.appendChild(h),e.customStyles[i]={references:1,element:h.sheet};var u=-1;for(var d in a)a.hasOwnProperty(d)&&h.sheet.insertRule(d+"{"+a[d].join(";")+"}",++u)}(n,i,"."+s,o);return a}).call(this,this.options.palette,this.options.buttonOrderAllowFirst);this.customStyleSelector&&o.push(this.customStyleSelector);return o}.call(this).join(" ")).replace("{{children}}",function(){var e={},i=this.options;i.showLink||(i.elements.link="",i.elements.messagelink=i.elements.message);if(i.cookietypes){var o="",n=this.options.cookie;i.cookietypes.forEach(function(e){var s=e.checked,a=t.getCookie(n.name+"_"+e.cookie_suffix);"deny"===a&&(s=""),"allow"===a&&(s="checked"),o+=i.elements.switch.replace(/\{\{cc\-cookietype\-id\}\}/g,e.cookie_suffix).replace(/\{\{label\}\}/g,e.label).replace(/\{\{checked\}\}/g,s).replace(/\{\{disabled\}\}/g,e.disabled).replace(/\{\{theme\}\}/g,i.theme)}),i.elements.messageswitchlink=i.elements.messageswitchlink.replace(/\{\{allswitches\}\}/g,o).replace("{{allswitchesclasses}}",function(){positionStyle=u.call(this);var e=["cc-"+positionStyle];this.customStyleSelector&&e.push(this.customStyleSelector);return e}.call(this).join(" "))}Object.keys(i.elements).forEach(function(o){e[o]=t.interpolateString(i.elements[o],function(e){var t=i.content[e];return e&&"string"==typeof t&&t.length?t:""})});var s=i.compliance[i.type];s||(s=i.compliance.info);e.compliance=t.interpolateString(s,function(t){return e[t]});var a=function(e){if(!e.showCloseX)return e.layouts[e.layout];if("detailed"===e.type||"detailedRev"===e.type||"detailedRevDeny"===e.type)return"x"!==e.content.close?e.layouts["detailed-closeCustomText"]:e.layouts["detailed-close"];if("x"!==e.content.close)return e.layouts["basic-closeCustomText"];return e.layouts["basic-close"]}(i);a||(a=i.layouts.basic);return t.interpolateString(a,function(t){return e[t]})}.call(this));this.options.makeButtonsEqual&&(s=(s=s.replace("cc-highlight","")).replace("cc-first-highlight",""));var r=this.options.overrideHTML;if("string"==typeof r&&r.length&&(s=r),this.options.static){var p=f.call(this,'
");p.style.display="",this.element=p.firstChild,this.element.style.display="none",t.addClass(this.element,"cc-invisible")}else this.element=f.call(this,s);(function(){var i=this.setStatus.bind(this),o=this.close.bind(this),n=this.options.dismissOnTimeout,s=e.status.dismiss;"detailed"===this.options.type&&(s=e.status.savesettings);"detailedRev"===this.options.type&&(s=e.status.allowall);"detailedRevDeny"===this.options.type&&(s=e.status.allowall);"opt-in"!==this.options.type&&"opt-out"!==this.options.type||(s=e.status.allow);"number"==typeof n&&n>=0&&this.options.enabled&&(this.dismissTimeout=window.setTimeout(function(){i(s),o(!0)},Math.floor(n)));var a=this.options.dismissOnScroll;if("number"==typeof a&&a>=0){var c=function(e){window.pageYOffset>Math.floor(a)&&(i(s),o(!0),window.removeEventListener("scroll",c,{passive:!0}),this.onWindowScroll=null)};this.options.enabled&&(this.onWindowScroll=c,window.addEventListener("scroll",c,{passive:!0}))}var l=this.options.dismissOnWindowClick,r=this.options.ignoreClicksFrom;if(l){var p=function(e){for(var n=!1,a=e.path.length,c=r.length,l=0;l