Current Directory: /home/astoriaah/www/plugins/system/gdpr/assets/js
Viewing File: /home/astoriaah/www/plugins/system/gdpr/assets/js/cookieconsent.min.js
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(b,d,k){b!=Array.prototype&&b!=Object.prototype&&(b[d]=k.value)};$jscomp.getGlobal=function(b){return"undefined"!=typeof window&&window===b?b:"undefined"!=typeof global&&null!=global?global:b};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.Symbol=function(){var b=0;return function(d){return $jscomp.SYMBOL_PREFIX+(d||"")+b++}}();
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var b=$jscomp.global.Symbol.iterator;b||(b=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[b]&&$jscomp.defineProperty(Array.prototype,b,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(b){var d=0;return $jscomp.iteratorPrototype(function(){return d<b.length?{done:!1,value:b[d++]}:{done:!0}})};
$jscomp.iteratorPrototype=function(b){$jscomp.initSymbolIterator();b={next:b};b[$jscomp.global.Symbol.iterator]=function(){return this};return b};$jscomp.iteratorFromArray=function(b,d){$jscomp.initSymbolIterator();b instanceof String&&(b+="");var k=0,a={next:function(){if(k<b.length){var u=k++;return{value:d(u,b[u]),done:!1}}a.next=function(){return{done:!0,value:void 0}};return a.next()}};a[Symbol.iterator]=function(){return a};return a};
$jscomp.polyfill=function(b,d,k,a){if(d){k=$jscomp.global;b=b.split(".");for(a=0;a<b.length-1;a++){var u=b[a];u in k||(k[u]={});k=k[u]}b=b[b.length-1];a=k[b];d=d(a);d!=a&&null!=d&&$jscomp.defineProperty(k,b,{configurable:!0,writable:!0,value:d})}};$jscomp.polyfill("Array.prototype.keys",function(b){return b?b:function(){return $jscomp.iteratorFromArray(this,function(b){return b})}},"es6","es3");$jscomp.owns=function(b,d){return Object.prototype.hasOwnProperty.call(b,d)};
$jscomp.polyfill("Object.entries",function(b){return b?b:function(b){var d=[],a;for(a in b)$jscomp.owns(b,a)&&d.push([a,b[a]]);return d}},"es8","es3");
(function(b){if(!b.hasInitialised){var d={escapeRegExp:function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},hasClass:function(a,b){return 1===a.nodeType&&0<=(" "+a.className+" ").replace(/[\n\t]/g," ").indexOf(" "+b+" ")},addClass:function(a,b){a.className+=" "+b},removeClass:function(a,b){b=new RegExp("\\b"+this.escapeRegExp(b)+"\\b");a.className=a.className.replace(b,"")},interpolateString:function(a,b){return a.replace(/{{([a-z][a-z0-9\-_]*)}}/ig,function(a,d){return b(d)||
""})},getCookie:function(a){a=("; "+document.cookie).split("; "+a+"=");return 2!=a.length?void 0:a.pop().split(";").shift()},setCookie:function(a,b,d,g,x){var c=new Date;c.setDate(c.getDate()+(d||365));a=[a+"="+b,"expires="+c.toUTCString(),"path="+(x||"/")];g&&a.push("domain="+g);gdprConfigurationOptions.cookieConsentSamesitePolicy&&a.push("SameSite="+gdprConfigurationOptions.cookieConsentSamesitePolicy);("https:"==window.location.protocol&&gdprConfigurationOptions.cookieConsentSecure||"None"==gdprConfigurationOptions.cookieConsentSamesitePolicy)&&
a.push("Secure");document.cookie=a.join(";")},deepExtend:function(a,b){for(var d in b)b.hasOwnProperty(d)&&(d in a&&this.isPlainObject(a[d])&&this.isPlainObject(b[d])?this.deepExtend(a[d],b[d]):a[d]=b[d]);return a},throttle:function(b,d){var a=!1;return function(){a||(b.apply(this,arguments),a=!0,setTimeout(function(){a=!1},d))}},hash:function(b){var a=0,d;if(0===b.length)return a;var g=0;for(d=b.length;g<d;++g){var x=b.charCodeAt(g);a=(a<<5)-a+x;a|=0}return a},normaliseHex:function(b){"#"==b[0]&&
(b=b.substr(1));3==b.length&&(b=b[0]+b[0]+b[1]+b[1]+b[2]+b[2]);return b},getContrast:function(b){b=this.normaliseHex(b);var a=parseInt(b.substr(0,2),16),d=parseInt(b.substr(2,2),16);b=parseInt(b.substr(4,2),16);return 128<=(299*a+587*d+114*b)/1E3?"#000":"#fff"},getLuminance:function(b){var a=parseInt(this.normaliseHex(b),16);b=(a>>16)+38;var d=(a>>8&255)+38;a=(a&255)+38;return"#"+(16777216+65536*(255>b?1>b?0:b:255)+256*(255>d?1>d?0:d:255)+(255>a?1>a?0:a:255)).toString(16).slice(1)},isMobile:function(){return gdprConfigurationOptions.autoFloatingOnMobile&&
window.outerWidth<=gdprConfigurationOptions.autoFloatingOnMobileThreshold?!0:!1},isPlainObject:function(b){return"object"===typeof b&&null!==b&&b.constructor==Object}};b.status={deny:"deny",allow:"allow",dismiss:"dismiss"};b.transitionEnd=function(){var b=document.createElement("div"),d={t:"transitionend",OT:"oTransitionEnd",msT:"MSTransitionEnd",MozT:"transitionend",WebkitT:"webkitTransitionEnd"},m;for(m in d)if(d.hasOwnProperty(m)&&"undefined"!=typeof b.style[m+"ransition"])return d[m];return""}();
b.hasTransition=!!b.transitionEnd;var k=Object.keys(b.status).map(d.escapeRegExp);b.customStyles={};b.cookieCategoriesHasChanged=!1;b.cookiesChoicesPropagate=!1;b.applyingPropagateCategoriesSession=!1;b.customScriptExecutionCategories={1:!1,2:!1,3:!1,4:!1};b.Popup=function(){function a(){this.initialise.apply(this,arguments)}function u(b){return(window.screen.width?window.screen.width:jQuery(window).width())<=b?!0:!1}function m(b){this.openingTimeout=null;d.removeClass(b,"cc-invisible");this.options.revokable&&
this.toggleRevokeButton()}function g(e){e.style.display="none";e.removeEventListener(b.transitionEnd,this.afterTransition);this.afterTransition=null}function x(){if(localStorage.getItem("setConsentedCookie")){this.setStatus(b.status.allow,!0);localStorage.removeItem("setConsentedCookie");var e=gdprConfigurationOptions.externalAdvancedBlockingModeCustomAttribute?",["+gdprConfigurationOptions.externalAdvancedBlockingModeCustomAttribute+"*=gdprlock]":"";gdprConfigurationOptions.placeholderBlockedResources?
jQuery("*[src*=gdprlock],*[data-source=gdprlock]"+e).filter(function(b,e){return"script"==e.nodeName.toLowerCase()||"link"==e.nodeName.toLowerCase()?!1:!0}).replaceWith('<div class="gdprlock-placeholder"><div class="gdprlock-placeholder-text">'+gdprConfigurationOptions.placeholderBlockedResourcesText+"</div></div>"):jQuery("*[src*=gdprlock],*[data-source=gdprlock]"+e).remove();plgGdprShowReloadWindow()}e=this.options.onInitialise.bind(this);if(!window.navigator.cookieEnabled)return e(b.status.deny),
!0;if(window.CookiesOK||window.navigator.CookiesOK||"opt-out"==gdprConfigurationOptions.complianceType&&localStorage.getItem("setAllowRevokedCookie"))return e(b.status.allow),!0;var a=Object.keys(b.status),d=this.getStatus();(a=0<=a.indexOf(d))&&e(d);return a}function c(){var b=this.options.position.split("-"),a=[];"center"==this.options.position&&a.push("cc-"+this.options.revokeposition);b.forEach(function(b){a.push("cc-"+b)});return a}function l(){var e=this.options,a="top"==e.position||"bottom"==
e.position?"banner":"floating";d.isMobile()&&(a="floating");a=["cc-"+a,"cc-type-"+e.type,"cc-theme-"+e.theme];"extended"==e.centertheme&&a.push("cc-center-xtd");!e.static||"top"!=e.position&&"bottom"!=e.position||a.push("cc-static");gdprConfigurationOptions.allowallShowbutton&&a.push("cc-allowall-button");a.push("cc-opacity-"+e.palette.highlightOpacity.opacity);a.push.apply(a,c.call(this));var q=this.options.palette;e=d.hash(JSON.stringify(q));var f="cc-color-override-"+e,h=d.isPlainObject(q);this.customStyleSelector=
h?f:null;if(h)if(h="."+f,b.customStyles[e])++b.customStyles[e].references;else{f={};var l=q.popup,p=q.button,g=q.highlight,n=q.highlightDismiss,m=q.buttonall;q=q.buttonSettings;l&&(l.text=l.text?l.text:d.getContrast(l.background),l.link=l.link?l.link:l.text,f[h+".cc-window"]=["color: "+l.text,"background-color: "+l.background],f[h+".cc-revoke"]=["color: "+l.text,"background-color: "+l.background],f[h+" .cc-link,"+h+" .cc-link:active,"+h+" .cc-link:visited"]=["color: "+l.link],f[h+" .cc-link label,"+
h+" .cc-link:active label,"+h+" .cc-link:visited label"]=["color: "+l.link],p&&(p.text=p.text?p.text:d.getContrast(p.background),p.border=p.border?p.border:"transparent",f[h+" a.cc-btn"]=["color: "+p.text,"border-color: "+p.border,"background-color: "+p.background],"transparent"!=p.background&&(f[h+" .cc-btn:hover, "+h+" .cc-btn:focus"]=["border-color: "+r(p.border)]),m&&(f[h+" .cc-btn.cc-allowall"]=["color: "+m.text,"border-color: "+m.border,"background-color: "+m.background],f[h+" .cc-btn.cc-allowall:hover, "+
h+" .cc-btn.cc-allowall:focus"]=["border-color: "+r(m.border)]),q&&(f[h+" .cc-cookie-settings-toggle"]=["color: "+q.text,"border-color: "+q.border,"background-color: "+q.background]),g?(g.text=g.text?g.text:d.getContrast(g.background),g.border=g.border?g.border:"transparent",f[h+" .cc-highlight .cc-btn.cc-deny"]=["color: "+g.text,"border-color: "+g.border,"background-color: "+g.background],"transparent"!=g.background&&(f[h+" .cc-highlight .cc-btn.cc-deny:hover, "+h+" .cc-highlight .cc-btn.cc-deny:focus"]=
["border-color: "+r(g.border)])):f[h+" .cc-highlight .cc-btn.cc-deny"]=["color: "+l.text],n?(n.text=n.text?n.text:d.getContrast(n.background),n.border=n.border?n.border:"transparent",f[h+" .cc-highlight .cc-btn.cc-dismiss"]=["color: "+n.text,"border-color: "+n.border,"background-color: "+n.background],f[h+" span.cc-close"]=["color:transparent; text-shadow: 0 0 0 "+n.text],"transparent"!=n.background&&(f[h+" .cc-highlight .cc-btn.cc-dismiss:hover, "+h+" .cc-highlight .cc-btn.cc-dismiss:focus"]=["border-color: "+
r(n.border)])):(f[h+" .cc-highlight .cc-btn.cc-dismiss"]=["color: "+p.text,"border-color: "+p.border,"background-color: "+p.background],f[h+" span.cc-close"]=["color:transparent; text-shadow: 0 0 0 "+n.text])));q=document.createElement("style");document.head.appendChild(q);b.customStyles[e]={references:1,element:q.sheet};e=-1;for(var u in f)f.hasOwnProperty(u)&&q.sheet.insertRule(u+"{"+f[u].join(";")+"}",++e)}this.customStyleSelector&&a.push(this.customStyleSelector);return a}function p(){var b={},
a=this.options;a.showLink||(a.elements.link="",a.elements.messagelink=a.elements.message);Object.keys(a.elements).forEach(function(e){b[e]=d.interpolateString(a.elements[e],function(b){var e=a.content[b];return b&&"string"==typeof e&&e.length?e:""})});var c=a.compliance[a.type];c||(c=a.compliance.info);"opt-in"==a.type&&a.revokable&&"basic"==gdprConfigurationOptions.revocableToolbarTheme&&(c=a.compliance["opt-in-revokable-basic"]);"opt-in"==a.type&&a.revokable&&"advanced"==gdprConfigurationOptions.revocableToolbarTheme&&
(c=a.compliance["opt-in-revokable-advanced"]);"opt-out"==a.type&&a.revokable&&"advanced"==gdprConfigurationOptions.revocableToolbarTheme&&(c=a.compliance["opt-out-advanced"]);b.compliance=d.interpolateString(c,function(a){return gdprConfigurationOptions.allowallShowbutton&&"allow"==a?b[a]+b.allowall:b[a]});c=a.layouts[a.layout];c||(c=a.layouts.basic);return d.interpolateString(c,function(a){return b[a]})}function n(a){var e=this.options,c=document.createElement("div"),f=e.container&&1===e.container.nodeType?
e.container:document.body;c.innerHTML=a;a=c.children[0];a.style.display="none";d.hasClass(a,"cc-window")&&b.hasTransition&&d.addClass(a,"cc-invisible");this.onButtonClick=t.bind(this);jQuery(a).on("click",this.onButtonClick);e.autoAttach&&(f.firstChild?f.insertBefore(a,f.firstChild):f.appendChild(a));return a}function t(a,c){var e=a.target;if(d.hasClass(e,"cc-btn")){var f=e.className.match(new RegExp("\\bcc-("+k.join("|")+")\\b"));if(f=f&&f[1]||!1)this.setStatus(f),c||this.close(!0)}d.hasClass(e,
"cc-close")&&(this.setStatus(b.status.dismiss),this.close(!0));(d.hasClass(e,"cc-revoke")||jQuery(e).parents(".cc-revoke").length)&&this.revokeChoice();d.hasClass(e,"cc-allow")&&b.cookieCategoriesHasChanged&&gdprConfigurationOptions.alwaysReloadAfterCategoriesChange&&(c=jQuery(e).data("nozeroreload")?1E3:0,setTimeout(function(){plgGdprShowReloadWindow()},c));d.hasClass(e,"cc-allowall")&&gdprConfigurationOptions.allowallShowbutton&&this.acceptAllCallback(a,!0)}function r(b){b=d.normaliseHex(b);return"000000"==
b?"#222":d.getLuminance(b)}function z(b,a){for(var e=0,d=b.length;e<d;++e){var c=b[e];if(c instanceof RegExp&&c.test(a)||"string"==typeof c&&c.length&&c===a)return!0}return!1}function B(){var a=this,d=this.setStatus.bind(this),c=1E3*this.options.dismissOnTimeout;"number"==typeof c&&0<c&&"info"==this.options.type&&(this.dismissTimeout=window.setTimeout(function(){d(b.status.dismiss);a.close(!0)},Math.floor(c)));var f=this.options.dismissOnScroll;if("number"==typeof f&&0<f&&"info"==this.options.type){var h=
function(e){window.pageYOffset>Math.floor(f)&&(d(b.status.dismiss),window.removeEventListener("scroll",h),this.onWindowScroll=null,a.close(!0))};this.onWindowScroll=h;window.addEventListener("scroll",h)}}function C(){if(this.options.revokable){var b=c.call(this);this.options.animateRevokable&&b.push("cc-animate");this.customStyleSelector&&b.push(this.customStyleSelector);b=this.options.revokeBtn.replace("{{classes}}",b.join(" "));var a=this.revokeBtn=n.call(this,b);this.options.animateRevokable&&
(this.onMouseMove=b=d.throttle(function(b){var e=!1,c=window.innerHeight-20;d.hasClass(a,"cc-top")&&20>b.clientY&&(e=!0);d.hasClass(a,"cc-center")&&20>b.clientY&&(e=!0);d.hasClass(a,"cc-bottom")&&b.clientY>c&&(e=!0);d.hasClass(a,"cc-revoke-bottom")&&b.clientY>c&&(e=!0);e?d.hasClass(a,"cc-active")||d.addClass(a,"cc-active"):d.hasClass(a,"cc-active")&&d.removeClass(a,"cc-active")},200),window.addEventListener("mousemove",b))}}var D={enabled:!0,disabledByLaw:!1,container:null,cookie:{name:"cookieconsent_status",
path:"/",domain:"",expiryDays:gdprConfigurationOptions.cookieConsentLifetime,samesite:gdprConfigurationOptions.cookieConsentSamesitePolicy,secure:gdprConfigurationOptions.cookieConsentSecure},onPopupOpen:function(){},onPopupClose:function(){},onInitialise:function(b){},onStatusChange:function(b,a){},onRevokeChoice:function(){},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",allowall:"Allow all cookies",link:"Cookie policy",href:"javascript:void(0)",privacylink:"Privacy policy",privacyhref:"javascript:void(0)",close:"❌",cookiesettings:""},elements:{header:'<span class="cc-header">{{header}}</span> ',message:'<span id="cookieconsent:desc" class="cc-message"><span class="cc-message-text">{{message}}</span>{{cookiesettings}}</span>',messagelink:'<span id="cookieconsent:desc" class="cc-message"><span class="cc-message-text">{{message}}</span> <a aria-label="cookie policy" role="button" tabindex="0" class="cc-link cc-cookie" href="{{href}}" rel="noopener noreferrer noindex nofollow" target="'+
gdprConfigurationOptions.blankLinks+'">{{link}}</a> <a aria-label="privacy policy" role="button" tabindex="0" class="cc-link cc-privacy" href="{{privacyhref}}" rel="noopener noreferrer noindex nofollow" target="'+gdprConfigurationOptions.blankLinks+'">{{privacylink}}</a>{{cookiesettings}}</span>',dismiss:'<a aria-label="dismiss cookie message" role="button" tabindex="0" class="cc-btn cc-dismiss">{{dismiss}}</a>',allow:'<a aria-label="allow cookies" role="button" tabindex="0" class="cc-btn cc-allow">{{allow}}</a>',
deny:'<a aria-label="deny cookies" role="button" tabindex="0" class="cc-btn cc-deny">{{deny}}</a>',allowall:'<a aria-label="allow all cookies" role="button" tabindex="0" class="cc-btn cc-allowall">{{allowall}}</a>',link:'<a aria-label="cookie policy" role="button" tabindex="0" class="cc-link cc-cookie" href="{{href}}" rel="noopener noreferrer noindex nofollow" target="'+gdprConfigurationOptions.blankLinks+'">{{link}}</a> <a aria-label="privacy policy" role="button" tabindex="0" class="cc-link cc-privacy" href="{{privacyhref}}" rel="noopener noreferrer noindex nofollow" target="'+
gdprConfigurationOptions.blankLinks+'">{{privacylink}}</a>',close:'<span aria-label="dismiss cookie message" role="button" tabindex="0" class="cc-close">{{close}}</span>'},window:'<div role="dialog" aria-live="polite" aria-label="cookieconsent" aria-describedby="cookieconsent:desc" class="cc-window {{classes}}">\x3c!--googleoff: all--\x3e{{children}}{{checkboxes}}\x3c!--googleon: all--\x3e</div>',revokeBtn:'<div class="cc-revoke {{classes}}">'+gdprConfigurationOptions.cookiePolicyRevocableTabText+
"</div>",compliance:"decline_first"==gdprConfigurationOptions.toolbarButtonsTheme?{info:'<div class="cc-compliance">{{dismiss}}</div>',"opt-in":'<div class="cc-compliance cc-highlight">{{dismiss}}{{allow}}</div>',"opt-out":'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}</div>',"opt-out-advanced":'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}{{dismiss}}</div>',"opt-in-revokable-basic":'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}</div>',"opt-in-revokable-advanced":'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}{{dismiss}}</div>'}:
{info:'<div class="cc-compliance">{{dismiss}}</div>',"opt-in":'<div class="cc-compliance cc-highlight">{{allow}}{{dismiss}}</div>',"opt-out":'<div class="cc-compliance cc-highlight">{{allow}}{{deny}}</div>',"opt-out-advanced":'<div class="cc-compliance cc-highlight">{{allow}}{{deny}}{{dismiss}}</div>',"opt-in-revokable-basic":'<div class="cc-compliance cc-highlight">{{allow}}{{deny}}</div>',"opt-in-revokable-advanced":'<div class="cc-compliance cc-highlight">{{allow}}{{deny}}{{dismiss}}</div>'},type:"info",
layouts:{basic:"{{messagelink}}{{compliance}}","basic-close":"{{messagelink}}{{compliance}}{{close}}","basic-header":"{{header}}{{message}}{{link}}{{compliance}}","basic-close-header":"{{header}}{{message}}{{link}}{{compliance}}{{close}}"},layout:"basic",position:"bottom",theme:"block",static:!1,palette:null,revokable:!0,animateRevokable:!0,showLink:!0,dismissOnScroll:!1,dismissOnTimeout:!1,autoOpen:!0,autoAttach:!0,whitelistPage:[],blacklistPage:[],overrideHTML:null};a.prototype.initialise=function(a){var c=
this;this.options&&this.destroy();d.deepExtend(this.options={},D);if(gdprConfigurationOptions.hideOnMobileDevices&&u(gdprConfigurationOptions.hideOnMobileDevices))this.destroy();else{d.isPlainObject(a)&&d.deepExtend(this.options,a);gdprConfigurationOptions.denyMessageEnabled&&localStorage.getItem("hasDenyMessage")&&(this.options.content.message=gdprConfigurationOptions.denyMessage);gdprConfigurationOptions.toggleCookieSettings&&"undefined"!==typeof gdprUseCookieCategories&&(this.options.content.cookiesettings=
gdprConfigurationOptions.toggleCookieSettingsText,"center"==this.options.position&&"extended"==this.options.centertheme&&setTimeout(function(){jQuery("span.cc-cookie-settings-toggle").addClass("cc-cookie-settings-toggle-xtd");jQuery("div.cc-window.cc-center.cc-center-xtd").addClass("cc-window-settings-toggle-xtd")},100));x.call(this)&&(this.options.enabled=!1);z(this.options.blacklistPage,location.pathname)&&(this.options.enabled=!1);z(this.options.whitelistPage,location.pathname)&&(this.options.enabled=
!0);gdprConfigurationOptions.customRevokableButton&&(jQuery("*.cc-custom-revoke").on("click",this.revokeChoice.bind(this,!1,!0)),2==gdprConfigurationOptions.customRevokableButton&&setTimeout(function(){jQuery("div.cc-revoke").remove()},0));if(gdprConfigurationOptions.placeholderBlockedResources&&gdprConfigurationOptions.placeholderBlockedResourcesAction||gdprConfigurationOptions.allowallShowbutton){var e=function(a){jQuery("a.cc-btn.cc-allow").data("nozeroreload",!0).trigger("click",[a]);setTimeout(function(){a||
gdprConfigurationOptions.placeholderOnpageUnlock||plgGdprShowReloadWindow()},800)};this.acceptAllCallback=function(a,d){d&&c.close(!0);a=jQuery("div.cc-checkbox-container input.cc-cookie-checkbox");jQuery.each(a,function(a,b){b.hasAttribute("disabled")&&jQuery(b).removeAttr("disabled")});a=1;"slow"==gdprConfigurationOptions.allowallButtonTimingAjax&&(a=2);var y=!!jQuery("div.gdpr-component-view").length||!1;setTimeout(function(){jQuery("#cookie_cat4:not(:checked)").trigger("click");y&&jQuery("#cookie_cat4:not(:checked)").prop("checked",
!0).removeAttr("disabled").trigger("change")},1);setTimeout(function(){jQuery("#cookie_cat3:not(:checked)").trigger("click");y&&jQuery("#cookie_cat3:not(:checked)").prop("checked",!0).removeAttr("disabled").trigger("change")},400*a);setTimeout(function(){jQuery("#cookie_cat2:not(:checked)").trigger("click");y&&jQuery("#cookie_cat2:not(:checked)").prop("checked",!0).removeAttr("disabled").trigger("change")},800*a);setTimeout(function(){jQuery("#cookie_cat1:not(:checked)").trigger("click");y&&jQuery("#cookie_cat1:not(:checked)").prop("checked",
!0).removeAttr("disabled").trigger("change")},1200*a);setTimeout(function(){e(d)},1600*a);gdprConfigurationOptions.optoutIndividualResources&&gdprConfigurationOptions.allowallIndividualResources&&localStorage.getItem("gdprCookiesChoices")&&(b.cookieCategoriesHasChanged=!0,localStorage.removeItem("gdprCookiesChoices"),gdprConfigurationOptions.blockIndividualResourcesServerside&&jQuery.ajax({type:"POST",url:gdpr_ajax_livesite+"index.php?option=com_gdpr&task=user.storeCookiesChoices",data:{cookieschoices:null}}).done(function(a,
b,c){}));gdprConfigurationOptions.optoutIndividualResources&&gdprConfigurationOptions.allowallIndividualResources&&localStorage.getItem("gdprServicesChoices")&&localStorage.removeItem("gdprServicesChoices")}}if(gdprConfigurationOptions.placeholderBlockedResources&&gdprConfigurationOptions.placeholderBlockedResourcesAction)switch(c.getStatus(),jQuery("div.gdprlock-placeholder").on("click",this.revokeChoice.bind(this,!1,!1)).addClass("gdprlock-placeholder-action"),gdprConfigurationOptions.placeholderBlockedResourcesAction){case "accept":jQuery("div.gdprlock-placeholder").on("click",
function(a){e()});break;case "acceptall":jQuery("div.gdprlock-placeholder").on("click",this.acceptAllCallback)}a=this.options.window.replace("{{classes}}",l.call(this).join(" ")).replace("{{children}}",p.call(this));var f=gdprConfigurationOptions.cookieCategory1Enable||gdprConfigurationOptions.cookieCategory2Enable||gdprConfigurationOptions.cookieCategory3Enable||gdprConfigurationOptions.cookieCategory4Enable;if("info"!=gdprConfigurationOptions.complianceType&&f){f='<div class="cc-checkboxes-container '+
gdprConfigurationOptions.categoriesCheckboxTemplate+'"'+(gdprConfigurationOptions.toggleCookieSettings?' style="display:none"':"")+'><div title="'+gdprConfigurationOptions.cookieSettingsDesc+'" class="cc-settings-label">'+gdprConfigurationOptions.cookieSettingsLabel+"</div>{{checkbox}}</div>";var h=[];this.getStatus();var g=localStorage.getItem("hasExplititDeclinedAll"),m=g?" disabled":"";if(gdprConfigurationOptions.cookieCategory1Enable){var r=m,t="undefined"!==typeof gdprCookieCategoryDisabled1||
g?"":" checked",k="",v="";g||(k=gdprConfigurationOptions.cookieCategory1Locked?" readonly":"");gdprConfigurationOptions.preserveLockedCategories&&g&&gdprConfigurationOptions.cookieCategory1Locked&&(r="",k=" readonly",t="undefined"!==typeof gdprCookieCategoryDisabled1?"":" checked");"undefined"!==typeof gdprConfigurationOptions.cookieCategoriesDescriptions.cat1&&(v='<div class="cc-checkbox-description">'+gdprConfigurationOptions.cookieCategoriesDescriptions.cat1+'</div><div class="cc-checkbox-category-readmore" data-category="1">'+
gdprConfigurationOptions.cookieCategoriesDescriptions.categoryReadMore+"</div>");h[1]='<div class="cc-checkbox-container"><input type="checkbox" name="cookie_cat1" id="cookie_cat1" class="cc-cookie-checkbox" value="1" data-category="1"'+t+r+k+'/><span></span><a class="cc-link cc-cookie-checkbox" href="javascript:void(0)" data-category="1"><label for="cookie_cat1">'+gdprConfigurationOptions.cookieCategory1Name+"</label></a>"+v+"</div>"}gdprConfigurationOptions.cookieCategory2Enable&&(r=m,t="undefined"!==
typeof gdprCookieCategoryDisabled2||g?"":" checked",v=k="",g||(k=gdprConfigurationOptions.cookieCategory2Locked?" readonly":""),gdprConfigurationOptions.preserveLockedCategories&&g&&gdprConfigurationOptions.cookieCategory2Locked&&(r="",k=" readonly",t="undefined"!==typeof gdprCookieCategoryDisabled2?"":" checked"),"undefined"!==typeof gdprConfigurationOptions.cookieCategoriesDescriptions.cat2&&(v='<div class="cc-checkbox-description">'+gdprConfigurationOptions.cookieCategoriesDescriptions.cat2+'</div><div class="cc-checkbox-category-readmore" data-category="2">'+
gdprConfigurationOptions.cookieCategoriesDescriptions.categoryReadMore+"</div>"),h[2]='<div class="cc-checkbox-container"><input type="checkbox" name="cookie_cat2" id="cookie_cat2" class="cc-cookie-checkbox" value="1" data-category="2"'+t+r+k+'/><span></span><a class="cc-link cc-cookie-checkbox" href="javascript:void(0)" data-category="2"><label for="cookie_cat2">'+gdprConfigurationOptions.cookieCategory2Name+"</label></a>"+v+"</div>");gdprConfigurationOptions.cookieCategory3Enable&&(r=m,t="undefined"!==
typeof gdprCookieCategoryDisabled3||g?"":" checked",v=k="",g||(k=gdprConfigurationOptions.cookieCategory3Locked?" readonly":""),gdprConfigurationOptions.preserveLockedCategories&&g&&gdprConfigurationOptions.cookieCategory3Locked&&(r="",k=" readonly",t="undefined"!==typeof gdprCookieCategoryDisabled3?"":" checked"),"undefined"!==typeof gdprConfigurationOptions.cookieCategoriesDescriptions.cat3&&(v='<div class="cc-checkbox-description">'+gdprConfigurationOptions.cookieCategoriesDescriptions.cat3+'</div><div class="cc-checkbox-category-readmore" data-category="3">'+
gdprConfigurationOptions.cookieCategoriesDescriptions.categoryReadMore+"</div>"),h[3]='<div class="cc-checkbox-container"><input type="checkbox" name="cookie_cat3" id="cookie_cat3" class="cc-cookie-checkbox" value="1" data-category="3"'+t+r+k+'/><span></span><a class="cc-link cc-cookie-checkbox" href="javascript:void(0)" data-category="3"><label for="cookie_cat3">'+gdprConfigurationOptions.cookieCategory3Name+"</label></a>"+v+"</div>");gdprConfigurationOptions.cookieCategory4Enable&&(r="undefined"!==
typeof gdprCookieCategoryDisabled4||g?"":" checked",k=t="",g||(t=gdprConfigurationOptions.cookieCategory4Locked?" readonly":""),gdprConfigurationOptions.preserveLockedCategories&&g&&gdprConfigurationOptions.cookieCategory4Locked&&(m="",t=" readonly",r="undefined"!==typeof gdprCookieCategoryDisabled4?"":" checked"),"undefined"!==typeof gdprConfigurationOptions.cookieCategoriesDescriptions.cat4&&(k='<div class="cc-checkbox-description">'+gdprConfigurationOptions.cookieCategoriesDescriptions.cat4+'</div><div class="cc-checkbox-category-readmore" data-category="4">'+
gdprConfigurationOptions.cookieCategoriesDescriptions.categoryReadMore+"</div>"),h[4]='<div class="cc-checkbox-container"><input type="checkbox" name="cookie_cat4" id="cookie_cat4" class="cc-cookie-checkbox" value="1" data-category="4"'+r+m+t+'/><span></span><a class="cc-link cc-cookie-checkbox" href="javascript:void(0)" data-category="4"><label for="cookie_cat4">'+gdprConfigurationOptions.cookieCategory4Name+"</label></a>"+k+"</div>");h=h.join(" ");f=f.replace("{{checkbox}}",h);a=a.replace("{{checkboxes}}",
f);jQuery(document).on("click","span.cc-cookie-settings-toggle",function(a){if(gdprConfigurationOptions.toggleCookieSettingsLinkedView)return window.location.href=gdprConfigurationOptions.toggleCookieSettingsLinkedViewSefLink,!1;jQuery("span.cc-cookie-settings-toggler").toggleClass("cc-opened");jQuery("div.cc-checkboxes-container").slideToggle(250)});f=!!jQuery("div.gdpr-component-view").length||!1;!gdprConfigurationOptions.includeAcceptButton||f||gdprConfigurationOptions.toggleCookieSettings||gdprConfigurationOptions.toggleCookieSettingsLinkedView||
setTimeout(function(){var a=jQuery("div.cc-window a.cc-btn.cc-allow").clone(!0,!0).end().remove();jQuery("div.cc-window div.cc-checkboxes-container").append(a)},0);jQuery(document).on("pointerdown","span.cc-cookie-descriptions-toggler",function(a){jQuery(this).toggleClass("cc-cookie-descriptions-toggler-open");jQuery(this).nextAll("div.cc-cookie-descriptions").slideToggle(250)});jQuery(document).on("pointerdown","span.cc-cookie-descriptions-toggler + span.cc-cookie-category-name",function(a){jQuery(this).prev("span.cc-cookie-descriptions-toggler").toggleClass("cc-cookie-descriptions-toggler-open");
jQuery(this).nextAll("div.cc-cookie-descriptions").slideToggle(250)})}else a=a.replace("{{checkboxes}}","");f=this.options.overrideHTML;"string"==typeof f&&f.length&&(a=f);this.options.static?(a=n.call(this,'<div class="cc-grower">'+a+"</div>"),a.style.display="",this.element=a.firstChild,this.element.style.display="none",d.addClass(this.element,"cc-invisible")):this.element=n.call(this,a);B.call(this);C.call(this);gdprConfigurationOptions.defaultClosedToolbar&&!localStorage.getItem("hasFirstDeclined")&&
(this.options.autoOpen=!1);gdprConfigurationOptions.enableGdprBulkConsent&&"undefined"!==typeof gdprBulkConsent&&(this.options.autoOpen=!1,bodyBlurred=document.querySelector("body"),bodyBlurred.style.filter="none",bodyBlurred.style.pointerEvents="all");this.options.autoOpen&&(gdprConfigurationOptions.openAlwaysDeclined?this.autoOpen():gdprConfigurationOptions.openAlwaysDeclined||localStorage.getItem("hasFirstDeclined")||this.autoOpen());this.options.revokable&&this.toggleRevokeButton(!0);"center"==
this.options.position&&"extended"!=this.options.centertheme&&setTimeout(function(){var a=jQuery("div.cc-window.cc-center"),b=a.hasClass("cc-invisible")?40:0,c=a.outerHeight();a.css("margin-top","-"+parseInt((c+b)/2)+"px")},100);"undefined"!==typeof gdprUseFancyboxLinks&&(a="undefined"!==typeof jQuery.gdprfancybox?"gdprfancybox":"fancybox",jQuery("a.cc-link")[a]({type:"iframe",parentEl:jQuery("div.cc-window.cc-center").length?"html":"body",iframe:{css:{width:gdprFancyboxWidth,height:gdprFancyboxHeight}},
buttons:["close"],beforeLoad:function(a){"undefined"===typeof a.$lastFocus&&(a.$lastFocus=this.opts.$orig);if(!a.$lastFocus.hasClass("cc-cookie")&&!a.$lastFocus.hasClass("cc-privacy")||jQuery("div.fancybox-content").length)return a.close(),a.current.src=null,setTimeout(function(){jQuery("div.fancybox-loading").remove();jQuery("div.fancybox-is-closing").hide()},0),!1;"undefined"!==typeof gdpr_ajaxendpoint_cookie_policy&&a.$lastFocus.hasClass("cc-cookie")?a.current.src=gdpr_ajaxendpoint_cookie_policy:
"undefined"!==typeof gdpr_ajaxendpoint_privacy_policy&&a.$lastFocus.hasClass("cc-privacy")?a.current.src=gdpr_ajaxendpoint_privacy_policy:-1==a.current.src.indexOf("tmpl=component")&&(-1==a.current.src.indexOf("?")?a.current.src+="?tmpl=component":a.current.src+="&tmpl=component")},afterLoad:function(a){a=jQuery("div.fancybox-toolbar").clone(!0).end().remove();jQuery("div.fancybox-content").prepend(a)},lang:"all",i18n:{all:{CLOSE:gdprCloseText}}}),gdprConfigurationOptions.autoOpenPrivacyPolicy&&!localStorage.getItem("privacyOpened")&&
(localStorage.setItem("privacyOpened",!0),jQuery("div.cc-window a.cc-link.cc-privacy").focus().trigger("click")));if("undefined"!==typeof gdprUseCookieCategories){jQuery("a.cc-cookie-checkbox").on("click",function(a){c.lastClickedCategory=jQuery(this).attr("data-category")});a="undefined"!==typeof jQuery.gdprfancybox?"gdprfancybox":"fancybox";jQuery("a.cc-cookie-checkbox")[a]({type:"ajax",parentEl:jQuery("div.cc-window.cc-center").length?"html":"body",buttons:["close"],beforeLoad:function(a){"undefined"===
typeof a.$lastFocus&&(a.$lastFocus=this.opts.$orig);var b=parseInt(a.$lastFocus.attr("data-category"));b||0!=jQuery("div.fancybox-content").length||(b=c.lastClickedCategory);if(!b||jQuery("div.fancybox-content").length)return a.close(),a.current.src=null,setTimeout(function(){jQuery("div.fancybox-loading").remove();jQuery("div.fancybox-is-closing").hide()},0),!1;a.current.src=gdpr_ajaxendpoint_cookie_category_desc+"&gdpr_cookie_category="+b;gdprConfigurationOptions.optoutIndividualResources&&(c.$optoutIndividualCategory=
jQuery("input[data-category="+b+"]"))},afterLoad:function(a){A()},lang:"all",i18n:{all:{CLOSE:gdprCloseText}}});var A=function(a){a||c.setStatus(b.status.allow,!0);a=jQuery("div.fancybox-toolbar").clone(!0).end().remove();jQuery("div.fancybox-content").prepend(a);jQuery("div.fancybox-content").addClass("fancybox-30");if(gdprConfigurationOptions.trackConsentDate){var d=!1;a=localStorage.getItem("hasExplititDeclinedAll");var e=JSON.parse(localStorage.getItem("acceptDateCategories"));!a&&e&&e["category"+
c.lastClickedCategory]&&jQuery("div.cc-window div.cc-checkbox-container input[type=checkbox][data-category="+c.lastClickedCategory+"]:checked").length&&(jQuery("div.cc-cookie-category-title").after('<div class="cc-cookie-category-title-acceptdate">'+e["category"+c.lastClickedCategory]+"</div>"),d=!0);var f=!!jQuery("div.gdpr-component-view").length||!1;!a&&e&&f&&jQuery.each(e,function(a,b){a=a.replace("category","");jQuery("div.gdpr-component-view div.cc-cookie-category-title[data-categoryid="+a+
"] input[type=checkbox]:checked").length&&jQuery("div.gdpr-component-view div.cc-cookie-category-title[data-categoryid="+a+"]").after('<div class="cc-cookie-category-title-acceptdate">'+b+"</div>")});e=JSON.parse(localStorage.getItem("acceptDateCookies"));!a&&(d||f)&&e&&jQuery.each(e,function(a,b){var c=jQuery('div.gdpr_onoffswitchcookie[data-bind="'+plgGdprCssEscape(a)+'"]').parent("li");f?setTimeout(function(){var a=c.parents("div.gdpr-component-view"),e="";jQuery("div.cc-checkboxes-container input.cc-cookie-checkbox",
a).prop("checked")||(e=" cc-cookie-acceptdate-hidden");jQuery("span.cc-cookie-category-name",c).after('<div class="cc-cookie-title-acceptdate-spacer'+e+'"></div><span class="cc-cookie-title-acceptdate'+e+'">'+b+"</span>")},1):jQuery("span.cc-cookie-category-name",c).after('<div class="cc-cookie-title-acceptdate-spacer"></div><span class="cc-cookie-title-acceptdate">'+b+"</span>")})}gdprConfigurationOptions.optoutIndividualResources&&(jQuery("div.gdpr_cookie_switcher[data-type!=service]").on("click",
function(a){var c=null,e=jQuery(this);e.hasClass("disabled")?(e.removeClass("disabled"),c=!0):(e.addClass("disabled"),c=!1);b.cookieCategoriesHasChanged=!0;var f=e.data("bind"),g=localStorage.getItem("gdprCookiesChoices");g=g?JSON.parse(g):{};if(c)f in g&&delete g[f];else{var h="cookie"==e.data("type")?!0:!1;g[f]=h}jQuery.isEmptyObject(g)?localStorage.removeItem("gdprCookiesChoices"):localStorage.setItem("gdprCookiesChoices",JSON.stringify(g));gdprConfigurationOptions.blockIndividualResourcesServerside&&
jQuery.ajax({type:"POST",url:gdpr_ajax_livesite+"index.php?option=com_gdpr&task=user.storeCookiesChoices",data:{cookieschoices:JSON.stringify(g)}}).done(function(b,g,h){if(gdprConfigurationOptions.trackConsentDate&&(h=JSON.parse(localStorage.getItem("acceptDateCookies"))||{},b))if(g=e.parent("li"),c){h[f]=b.acceptdate;localStorage.setItem("acceptDateCookies",JSON.stringify(h));h=!!e.parents("div.gdpr-component-view").length||!1;var l=jQuery(a.target).parents("div.gdpr-component-view");l=jQuery("div.cc-cookie-category-title input[type=checkbox]:checked",
l).length;(d||h&&l)&&jQuery("span.cc-cookie-category-name",g).after('<div class="cc-cookie-title-acceptdate-spacer"></div><span class="cc-cookie-title-acceptdate">'+b.acceptdate+"</span>")}else"undefined"!==typeof h[f]&&(jQuery("div.cc-cookie-title-acceptdate-spacer,span.cc-cookie-title-acceptdate",g).remove(),delete h[f],localStorage.setItem("acceptDateCookies",JSON.stringify(h)),0===Object.entries(h).length&&localStorage.removeItem("acceptDateCookies"))})}),jQuery("div.gdpr_cookie_switcher[data-type!=service]").length&&
(a=localStorage.getItem("gdprCookiesChoices"))&&(a=JSON.parse(a),jQuery.each(a,function(a,b){jQuery("div.gdpr_cookie_switcher[data-type!=service][data-bind="+plgGdprCssEscape(a)+"]").addClass("disabled")})),jQuery("div.gdpr_cookie_switcher[data-type=service]").on("click",function(a){var c=jQuery(this);c.hasClass("disabled")?(c.removeClass("disabled"),a=!0):(c.addClass("disabled"),a=!1);b.cookieCategoriesHasChanged=!0;var e=c.parents("fieldset.cc-service-list-title");a&&jQuery("div.gdpr_cookie_switcher.disabled",
e).trigger("click");a||jQuery("div.gdpr_cookie_switcher:not(.disabled)",e).trigger("click");c=c.data("bind");e=(e=localStorage.getItem("gdprServicesChoices"))?JSON.parse(e):{};a?c in e&&delete e[c]:e[c]=!0;jQuery.isEmptyObject(e)?localStorage.removeItem("gdprServicesChoices"):localStorage.setItem("gdprServicesChoices",JSON.stringify(e))}),jQuery("div.gdpr_cookie_switcher[data-type=service]").length&&(a=localStorage.getItem("gdprServicesChoices"))&&(a=JSON.parse(a),jQuery.each(a,function(a,b){jQuery("div.gdpr_cookie_switcher[data-type=service][data-bind="+
plgGdprCssEscape(a)+"]").addClass("disabled")})),"undefined"!==typeof c.$optoutIndividualCategory?c.$optoutIndividualCategory.prop("checked")||(jQuery("div.gdpr_cookie_switcher").addClass("inactive"),gdprConfigurationOptions.disableSwitchersOptoutCategory&&jQuery("div.gdpr_cookie_switcher").addClass("disabled")):setTimeout(function(){if(jQuery("div.gdpr-component-view").length)for(var a=1;4>=a;a++){var b=jQuery("input[id=cookie_cat"+a+"]:not(:checked)").parents("div.gdpr-component-view");b.length&&
(jQuery("div.gdpr_cookie_switcher",b).addClass("inactive"),gdprConfigurationOptions.disableSwitchersOptoutCategory&&jQuery("div.gdpr_cookie_switcher",b).addClass("disabled"))}},1))};jQuery("div.gdpr-component-view").length&&(jQuery("div.gdpr-component-view div.cc-cookie-category-title").each(function(a,b){a=jQuery(b);b=jQuery(b).data("categoryid");b=jQuery("input[id=cookie_cat"+b+"]").clone(!0,!0);a.append('<div class="cc-checkboxes-container"/>');jQuery("div.cc-checkboxes-container",a).append(b);
jQuery("div.cc-checkboxes-container",a).append('<span class="cc-checkboxes-placeholder"></span>')}),A(!0),jQuery("div.gdpr-component-view").first().before('<div class="cc-gdpr-component-view cc-compliance cc-highlight"></div>'),jQuery("div.cc-compliance a[role=button]").each(function(a,b){a=jQuery(b).clone(!0,!0);jQuery("div.cc-gdpr-component-view").append(a)}),jQuery("div.cc-gdpr-component-view").on("click",this.onButtonClick),jQuery("div.cc-window div.cc-checkboxes-container,div.cc-window span.cc-cookie-settings-toggle").remove(),
setTimeout(function(){jQuery("div.gdpr-component-view div.gdpr_cookie_switcher").show()},2));jQuery("input.cc-cookie-checkbox").on("click",function(a){if(jQuery(this).attr("readonly"))return!1});jQuery("input.cc-cookie-checkbox").on("change",function(a){c.setStatus(b.status.allow,!0);b.cookieCategoriesHasChanged=!0;var e={gdpr_cookie_category:parseInt(jQuery(this).data("category")),gdpr_cookie_category_state:jQuery(this).prop("checked")?0:1};gdprConfigurationOptions.blockIndividualResourcesServerside&&
b.cookiesChoicesPropagate&&(localStorage.getItem("gdprCookiesChoices")&&(e.cookieschoices=localStorage.getItem("gdprCookiesChoices")),b.cookiesChoicesPropagate=!1);jQuery.ajax({type:"POST",url:gdpr_ajax_livesite+"index.php?option=com_gdpr&task=user.processCookieCategory",data:e}).done(function(a,c,d){gdprConfigurationOptions["enableCustomScriptExecCategory"+e.gdpr_cookie_category]&&0==e.gdpr_cookie_category_state&&!b.customScriptExecutionCategories[e.gdpr_cookie_category]&&(c=document.createElement("script"),
c.innerHTML=gdprConfigurationOptions["customScriptExecCategory"+e.gdpr_cookie_category],document.head.appendChild(c),b.customScriptExecutionCategories[e.gdpr_cookie_category]=!0);gdprConfigurationOptions.trackConsentDate&&(c=JSON.parse(localStorage.getItem("acceptDateCategories"))||{},a?(c["category"+e.gdpr_cookie_category]=a.acceptdate,localStorage.setItem("acceptDateCategories",JSON.stringify(c))):("undefined"!==typeof c["category"+e.gdpr_cookie_category]&&delete c["category"+e.gdpr_cookie_category],
localStorage.setItem("acceptDateCategories",JSON.stringify(c)),0===Object.entries(c).length&&localStorage.removeItem("acceptDateCategories")));if(jQuery("div.gdpr-component-view").length)if(a){c=jQuery("div.cc-cookie-category-title[data-categoryid="+e.gdpr_cookie_category+"]").parents("div.gdpr-component-view");jQuery("div.gdpr_cookie_switcher",c).removeClass("inactive");if(gdprConfigurationOptions.disableSwitchersOptoutCategory){var f=localStorage.getItem("gdprCookiesChoices");f=f?JSON.parse(f):
{};jQuery("div.gdpr_cookie_switcher",c).each(function(a,b){a=jQuery(b);b=a.data("bind");f.hasOwnProperty(b)||a.removeClass("disabled")})}gdprConfigurationOptions.trackConsentDate&&(jQuery("div.gdpr-component-view div.cc-cookie-category-title[data-categoryid="+e.gdpr_cookie_category+"]").after('<div class="cc-cookie-category-title-acceptdate">'+a.acceptdate+"</div>"),jQuery("span.cc-cookie-title-acceptdate, div.cc-cookie-title-acceptdate-spacer",c).show())}else c=jQuery("div.cc-cookie-category-title[data-categoryid="+
e.gdpr_cookie_category+"]").parents("div.gdpr-component-view"),jQuery("div.gdpr_cookie_switcher",c).addClass("inactive"),gdprConfigurationOptions.disableSwitchersOptoutCategory&&jQuery("div.gdpr_cookie_switcher",c).addClass("disabled"),gdprConfigurationOptions.trackConsentDate&&(jQuery("div.gdpr-component-view div.cc-cookie-category-title[data-categoryid="+e.gdpr_cookie_category+"]").next("div.cc-cookie-category-title-acceptdate").remove(),jQuery("span.cc-cookie-title-acceptdate, div.cc-cookie-title-acceptdate-spacer",
c).hide())});gdprPropagateCategoriesSession&&((a=localStorage.getItem("gdprCategoriesChoices"))?a=JSON.parse(a):(a={},a.jsessid=gdprJSessVal),a[e.gdpr_cookie_category]=e.gdpr_cookie_category_state,localStorage.setItem("gdprCategoriesChoices",JSON.stringify(a)))});jQuery("input.cc-cookie-checkbox + span").on("click",function(a){jQuery(this).prev("input:not([readonly])").trigger("click")});if(gdprPropagateCategoriesSession&&localStorage.getItem("gdprCategoriesChoices")&&(this.getStatus(!0)||gdprAlwaysPropagateCategoriesSession)&&
(a=JSON.parse(localStorage.getItem("gdprCategoriesChoices")),a.jsessid!=gdprJSessVal)){b.applyingPropagateCategoriesSession=!0;f=6E3;if(1==gdprPropagateCategoriesSession){var w=function(a){a.preventDefault();a.returnValue=""};window.addEventListener("beforeunload",w)}a.hasOwnProperty(1)&&((h=jQuery("#cookie_cat1").prop("checked"))&&1==a[1]&&(setTimeout(function(){b.cookiesChoicesPropagate=!0;jQuery("#cookie_cat1").trigger("click")},1),f=1500),h||0!=a[1]||(setTimeout(function(){b.cookiesChoicesPropagate=
!0;jQuery("#cookie_cat1").trigger("click")},1),f=1500));a.hasOwnProperty(2)&&((h=jQuery("#cookie_cat2").prop("checked"))&&1==a[2]&&(setTimeout(function(){b.cookiesChoicesPropagate=!0;jQuery("#cookie_cat2").trigger("click")},1500),f=3E3),h||0!=a[2]||(setTimeout(function(){b.cookiesChoicesPropagate=!0;jQuery("#cookie_cat2").trigger("click")},1500),f=3E3));a.hasOwnProperty(3)&&((h=jQuery("#cookie_cat3").prop("checked"))&&1==a[3]&&(setTimeout(function(){b.cookiesChoicesPropagate=!0;jQuery("#cookie_cat3").trigger("click")},
3E3),f=4500),h||0!=a[3]||(setTimeout(function(){b.cookiesChoicesPropagate=!0;jQuery("#cookie_cat3").trigger("click")},3E3),f=4500));a.hasOwnProperty(4)&&((h=jQuery("#cookie_cat4").prop("checked"))&&1==a[4]&&(setTimeout(function(){b.cookiesChoicesPropagate=!0;jQuery("#cookie_cat4").trigger("click")},4500),f=6E3),h||0!=a[4]||(setTimeout(function(){b.cookiesChoicesPropagate=!0;jQuery("#cookie_cat4").trigger("click")},4500),f=6E3));a.jsessid=gdprJSessVal;localStorage.setItem("gdprCategoriesChoices",JSON.stringify(a));
gdprConfigurationOptions.alwaysReloadAfterCategoriesChange?setTimeout(function(){1==gdprPropagateCategoriesSession&&window.removeEventListener("beforeunload",w);plgGdprShowReloadWindow()},f):(1==gdprPropagateCategoriesSession&&setTimeout(function(){window.removeEventListener("beforeunload",w)},2E3),gdprConfigurationOptions.placeholderOnpageUnlock&&setTimeout(function(){jQuery("a.cc-btn.cc-allow").trigger("click")},f))}jQuery("div.cc-checkbox-category-readmore").on("click",function(a){a=jQuery(this).data("category");
jQuery("a.cc-cookie-checkbox[data-category="+a+"]").trigger("click")})}gdprConfigurationOptions.enableGdprBulkConsent&&!b.applyingPropagateCategoriesSession&&"undefined"!==typeof gdprBulkConsent&&"undefined"!==typeof gdprBulkConsents&&(f=1,gdprBulkConsents=JSON.parse(gdprBulkConsents),"undefined"!==typeof gdprPropagateCategoriesSession&&1==gdprPropagateCategoriesSession&&(w=function(a){a.preventDefault();a.returnValue=""},window.addEventListener("beforeunload",w)),gdprConfigurationOptions.cookieCategory1Enable&&
((h=jQuery("#cookie_cat1").prop("checked"))&&0==gdprBulkConsents.category1&&(setTimeout(function(){jQuery("#cookie_cat1").trigger("click")},1),f=1500),h||1!=gdprBulkConsents.category1||(setTimeout(function(){jQuery("#cookie_cat1").trigger("click")},1),f=1500)),gdprConfigurationOptions.cookieCategory2Enable&&((h=jQuery("#cookie_cat2").prop("checked"))&&0==gdprBulkConsents.category2&&(setTimeout(function(){jQuery("#cookie_cat2").trigger("click")},1500),f=3E3),h||1!=gdprBulkConsents.category2||(setTimeout(function(){jQuery("#cookie_cat2").trigger("click")},
1500),f=3E3)),gdprConfigurationOptions.cookieCategory3Enable&&((h=jQuery("#cookie_cat3").prop("checked"))&&0==gdprBulkConsents.category3&&(setTimeout(function(){jQuery("#cookie_cat3").trigger("click")},3E3),f=4500),h||1!=gdprBulkConsents.category3||(setTimeout(function(){jQuery("#cookie_cat3").trigger("click")},3E3),f=4500)),gdprConfigurationOptions.cookieCategory4Enable&&((h=jQuery("#cookie_cat4").prop("checked"))&&0==gdprBulkConsents.category4&&(setTimeout(function(){jQuery("#cookie_cat4").trigger("click")},
4500),f=6E3),h||1!=gdprBulkConsents.category4||(setTimeout(function(){jQuery("#cookie_cat4").trigger("click")},4500),f=6E3)),setTimeout(function(){"undefined"!==typeof gdprPropagateCategoriesSession&&1==gdprPropagateCategoriesSession&&window.removeEventListener("beforeunload",w);jQuery("a.cc-btn.cc-allow").trigger("click")},f));jQuery(window).on("beforeunload",function(){c.getStatus(!0)||plgGdprAllCookiesDisabledByScript||(localStorage.getItem("hasConsented")||localStorage.getItem("hasDeclined")||
localStorage.getItem("hasFirstDeclined"))&&c.setStatus(b.status.dismiss)});if(gdprConfigurationOptions.hideRevokableButtonOnscroll)jQuery(window).on("scroll",function(a){(isZero=0==jQuery(window).scrollTop())?jQuery("div.cc-revoke:not(.cc-revoke-invisible)").fadeIn():jQuery("div.cc-revoke:not(.cc-revoke-invisible)").fadeOut()})}};a.prototype.destroy=function(){this.onButtonClick&&this.element&&(this.element.removeEventListener("click",this.onButtonClick),this.onButtonClick=null);this.dismissTimeout&&
(clearTimeout(this.dismissTimeout),this.dismissTimeout=null);this.onWindowScroll&&(window.removeEventListener("scroll",this.onWindowScroll),this.onWindowScroll=null);this.onMouseMove&&(window.removeEventListener("mousemove",this.onMouseMove),this.onMouseMove=null);this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element);this.element=null;this.revokeBtn&&this.revokeBtn.parentNode&&this.revokeBtn.parentNode.removeChild(this.revokeBtn);this.revokeBtn=null;var a=this.options.palette;
if(d.isPlainObject(a)){a=d.hash(JSON.stringify(a));var c=b.customStyles[a];c&&!--c.references&&((c=c.element.ownerNode)&&c.parentNode&&c.parentNode.removeChild(c),b.customStyles[a]=null)}this.options=null};a.prototype.open=function(a,c){if(this.element)return this.isOpen()||(b.hasTransition?(this.fadeIn(),"flip"==this.options.palette.popup.effect&&setTimeout(function(a){jQuery(a.element).addClass("flipInX");setTimeout(function(a){jQuery(a.element).removeClass("flipInX")},750,a)},50,this)):this.element.style.display=
"",this.options.revokable&&this.toggleRevokeButton(),this.revokeOpen?(this.revokeOpen=!1,this.options.onPopupOpen.call(this,!0)):this.options.onPopupOpen.call(this),this.dismissTimeout&&c&&(clearTimeout(this.dismissTimeout),this.dismissTimeout=null),"center"==this.options.position&&"extended"==this.options.centertheme&&setTimeout(function(){var a=jQuery(window).scrollTop();jQuery("div.cc-window.cc-center.cc-center-xtd").css("margin-top",a+"px")},c?0:500),"center"==this.options.position&&gdprConfigurationOptions.positionCenterSimpleBackdrop&&
jQuery("body").addClass("gdpr-backdrop-effect"),"center"==this.options.position&&gdprConfigurationOptions.preventPageScrolling&&jQuery("body,div.cc-window.cc-center").addClass("gdpr-prevent-scrolling"),gdprConfigurationOptions.toggleCookieSettings&&gdprConfigurationOptions.toggleCookieSettingsLinkedView&&jQuery("span.cc-cookie-settings-toggler").remove()),this};a.prototype.close=function(a){if(this.element)return this.isOpen()&&(b.hasTransition?("flip"==this.options.palette.popup.effect&&(jQuery(this.element).addClass("flipOutX"),
setTimeout(function(a){jQuery(a.element).hide().addClass("cc-invisible").removeClass("flipOutX")},750,this)),this.fadeOut()):this.element.style.display="none",a&&this.options.revokable&&this.toggleRevokeButton(!0),this.options.onPopupClose.call(this)),"center"==this.options.position&&gdprConfigurationOptions.positionCenterSimpleBackdrop&&jQuery("body").removeClass("gdpr-backdrop-effect"),"center"==this.options.position&&gdprConfigurationOptions.preventPageScrolling&&setTimeout(function(){jQuery("body,div.cc-window.cc-center").removeClass("gdpr-prevent-scrolling")},
750),this};a.prototype.fadeIn=function(){var a=this.element;b.hasTransition&&a&&(this.afterTransition&&g.call(this,a),d.hasClass(a,"cc-invisible")&&(a.style.display="",this.options.static&&(this.element.parentNode.style.maxHeight=this.element.clientHeight+"px"),this.openingTimeout=setTimeout(m.bind(this,a),20)))};a.prototype.fadeOut=function(){var a=this.element;b.hasTransition&&a&&(this.openingTimeout&&(clearTimeout(this.openingTimeout),m.bind(this,a)),d.hasClass(a,"cc-invisible")||(this.options.static&&
(this.element.parentNode.style.maxHeight=""),this.afterTransition=g.bind(this,a),a.addEventListener(b.transitionEnd,this.afterTransition),d.addClass(a,"cc-invisible")))};a.prototype.isOpen=function(){return this.element&&""==this.element.style.display&&(b.hasTransition?!d.hasClass(this.element,"cc-invisible"):!0)};a.prototype.toggleRevokeButton=function(a){this.revokeBtn&&!this.options.disabledByLaw&&(this.revokeBtn.style.display=a?"":"none");a?jQuery(this.revokeBtn).removeClass("cc-revoke-invisible"):
jQuery(this.revokeBtn).addClass("cc-revoke-invisible")};a.prototype.revokeChoice=function(a,b){this.options.enabled=!0;this.clearStatus();this.options.onRevokeChoice.call(this);a||(this.revokeOpen=!0,this.autoOpen(this.options,!0));b&&gdprConfigurationOptions.customRevokableButtonAction&&setTimeout(function(){1==gdprConfigurationOptions.customRevokableButtonAction&&jQuery("a.cc-link.cc-cookie").focus().trigger("click");2==gdprConfigurationOptions.customRevokableButtonAction&&jQuery("a.cc-link.cc-privacy").focus().trigger("click")},
1)};a.prototype.hasAnswered=function(a){return 0<=Object.keys(b.status).indexOf(this.getStatus(!0))};a.prototype.hasConsented=function(a,c){a=this.getStatus();return a==b.status.allow||a==b.status.dismiss};a.prototype.autoOpen=function(a,b){!this.hasAnswered()&&this.options.enabled&&this.open(null,b);var c=this;setTimeout(function(){var b=c.isOpen();b||a||"deny"!=c.getStatus()||!gdprConfigurationOptions.openAlwaysDeclined||c.open();b||a||"dismiss"!=c.getStatus()||"opt-in"!=gdprConfigurationOptions.complianceType||
!gdprConfigurationOptions.openAlwaysDeclined||c.open()},21)};a.prototype.setStatus=function(a,c){var e=this.options.cookie,f=d.getCookie(e.name);f=0<=Object.keys(b.status).indexOf(f);gdprConfigurationOptions.denyMessageEnabled&&"deny"==a&&(localStorage.setItem("hasDenyMessage",!0),this.options.content.message=gdprConfigurationOptions.denyMessage,jQuery("span.cc-message-text").html(gdprConfigurationOptions.denyMessage));0<=Object.keys(b.status).indexOf(a)?(d.setCookie(e.name,a,e.expiryDays,e.domain,
e.path),c||this.options.onStatusChange.call(this,a,f)):this.clearStatus()};a.prototype.getStatus=function(a){return!a&&localStorage.getItem("hasDeclined")?b.status.deny:d.getCookie(this.options.cookie.name)};a.prototype.clearStatus=function(){var a=this.options.cookie;d.setCookie(a.name,"",-1,a.domain,a.path)};return a}();b.Location=function(){function a(a){d.deepExtend(this.options={},k);d.isPlainObject(a)&&d.deepExtend(this.options,a);this.currentServiceIndex=-1}function b(a,b,d){var c=document.createElement("script");
c.type="text/"+(a.type||"javascript");c.src=a.src||a;c.async=!1;c.onreadystatechange=c.onload=function(){var a=c.readyState;clearTimeout(g);b.done||a&&!/loaded|complete/.test(a)||(b.done=!0,b(),c.onreadystatechange=c.onload=null)};document.body.appendChild(c);var g=setTimeout(function(){b.done=!0;b();c.onreadystatechange=c.onload=null},d)}function m(a,b,d,g,m){var c=new (window.XMLHttpRequest||window.ActiveXObject)("MSXML2.XMLHTTP.3.0");c.open(g?"POST":"GET",a,1);c.setRequestHeader("Content-type",
"application/x-www-form-urlencoded");if(Array.isArray(m))for(a=0,d=m.length;a<d;++a){var l=m[a].split(":",2);c.setRequestHeader(l[0].replace(/^\s+|\s+$/g,""),l[1].replace(/^\s+|\s+$/g,""))}"function"==typeof b&&(c.onreadystatechange=function(){3<c.readyState&&b(c)});c.send(g)}function g(a){return Error("Error ["+(a.code||"UNKNOWN")+"]: "+a.error)}var k={timeout:5E3,services:["geoip","geoiplookup","ipinfo"],serviceDefinitions:{geoip:function(){return{url:"https://ipapi.co/json/",callback:function(a,
b){try{var c=JSON.parse(b);gdprConfigurationOptions.usaCCPARegions&&c.region&&sessionStorage.setItem("ccpa_region_code",c.region);return c.error?g(c):{code:c.country}}catch(n){return g({error:"Invalid response ("+n+")"})}}}},geoiplookup:function(){return{url:"https://json.geoiplookup.io/",headers:["Accept: application/json"],callback:function(a,b){try{var c=JSON.parse(b);gdprConfigurationOptions.usaCCPARegions&&c.region&&sessionStorage.setItem("ccpa_region_code",c.region);return c.error?g(c):{code:c.country_code}}catch(n){return g({error:"Invalid response ("+
n+")"})}}}},ipinfo:function(){return{url:"https://ipinfo.io",headers:["Accept: application/json"],callback:function(a,b){try{var c=JSON.parse(b);gdprConfigurationOptions.usaCCPARegions&&c.region&&sessionStorage.setItem("ccpa_region_code",c.region);return c.error?g(c):{code:c.country}}catch(n){return g({error:"Invalid response ("+n+")"})}}}}}};a.prototype.getNextService=function(){do var a=this.getServiceByIdx(++this.currentServiceIndex);while(this.currentServiceIndex<this.options.services.length&&
!a);return a};a.prototype.getServiceByIdx=function(a){a=this.options.services[a];return"function"===typeof a?(a=a(),a.name&&d.deepExtend(a,this.options.serviceDefinitions[a.name](a)),a):"string"===typeof a?this.options.serviceDefinitions[a]():d.isPlainObject(a)?this.options.serviceDefinitions[a.name](a):null};a.prototype.locate=function(a,b){var c=this.getNextService();c?(this.callbackComplete=a,this.callbackError=b,this.runService(c,this.runNextServiceOnError.bind(this))):b(Error("No services to run"))};
a.prototype.setupUrl=function(a){var b=this.getCurrentServiceOpts();return a.url.replace(/\{(.*?)\}/g,function(c,d){if("callback"===d)return c="callback"+Date.now(),window[c]=function(b){a.__JSONP_DATA=JSON.stringify(b)},c;if(d in b.interpolateUrl)return b.interpolateUrl[d]})};a.prototype.runService=function(a,d){var c=this;if(a&&a.url&&a.callback){var g=a.isScript?b:m,l=this.setupUrl(a);g(l,function(b){b=b?b.responseText:"";a.__JSONP_DATA&&(b=a.__JSONP_DATA,delete a.__JSONP_DATA);c.runServiceCallback.call(c,
d,a,b)},this.options.timeout,a.data,a.headers)}};a.prototype.runServiceCallback=function(a,b,d){var c=this,g=b.callback(function(b){g||c.onServiceResult.call(c,a,b)},d);g&&this.onServiceResult.call(this,a,g)};a.prototype.onServiceResult=function(a,b){b instanceof Error||b&&b.error?a.call(this,b,null):a.call(this,null,b)};a.prototype.runNextServiceOnError=function(a,b){a?(this.logError(a),(a=this.getNextService())?this.runService(a,this.runNextServiceOnError.bind(this)):this.completeService.call(this,
this.callbackError,Error("All services failed"))):this.completeService.call(this,this.callbackComplete,b)};a.prototype.getCurrentServiceOpts=function(){var a=this.options.services[this.currentServiceIndex];return"string"==typeof a?{name:a}:"function"==typeof a?a():d.isPlainObject(a)?a:{}};a.prototype.completeService=function(a,b){this.currentServiceIndex=-1;a&&a(b)};a.prototype.logError=function(a){var b=this.currentServiceIndex,c=this.getServiceByIdx(b);console.error("The service["+b+"] ("+c.url+
") responded with the following error",a)};return a}();b.Law=function(){function a(a){this.initialise.apply(this,arguments)}var k={regionalLaw:!0,hasLaw:"AT BE BG HR CZ CY DK EE FI FR DE EL HU IE IT LV LT LU MT NL PL PT SK SI ES SE GB UK".split(" "),revokable:"HR CY DK EE FR DE LV LT NL PT ES".split(" "),explicitAction:["HR","IT","ES"]};a.prototype.initialise=function(a){d.deepExtend(this.options={},k);d.isPlainObject(a)&&d.deepExtend(this.options,a)};a.prototype.get=function(a){var b=this.options;
return{hasLaw:0<=b.hasLaw.indexOf(a),revokable:0<=b.revokable.indexOf(a),explicitAction:0<=b.explicitAction.indexOf(a)}};a.prototype.applyLaw=function(a,d){d=this.get(d);if(gdprConfigurationOptions.usaCCPARegions){var g=sessionStorage.getItem("ccpa_region_code");g&&!d.hasLaw&&-1<jQuery.inArray(g.toLowerCase(),gdprConfigurationOptions.usaCCPARegions)&&(d.hasLaw=!0)}d.hasLaw?("opt-in"!=gdprConfigurationOptions.complianceType||localStorage.getItem("hasConsented")||localStorage.getItem("setConsentedCookie")||
plgGdprDisableAllCookies(),"opt-out"==gdprConfigurationOptions.complianceType&&localStorage.getItem("hasDeclined")&&plgGdprDisableAllCookies()):(a.enabled=!1,a.disabledByLaw=!0,gdprConfigurationOptions.checkboxLawByCountry&&!gdprConfigurationOptions.blockPrivacyPolicy&&("undefined"!==typeof GdprUser&&(jQuery("input[name=gdpr_privacy_policy_checkbox][value=1]").prop("checked",!0),jQuery("input[name=gdpr_privacy_policy_checkbox][value=0]").attr("data-setby","gdprcountrylaw"),jQuery("input[name=gdpr_privacy_policy_checkbox]").parents("div.control-group").hide()),
"undefined"!==typeof GdprCheckbox&&(GdprCheckbox.disabledByLaw=!0,jQuery("input[data-role=gdpr_dynamic_privacy_policy_checkbox]").length&&(jQuery("input[data-role=gdpr_dynamic_privacy_policy_checkbox][value=1]").prop("checked",!0),jQuery("input[data-role=gdpr_dynamic_privacy_policy_checkbox]").parents("div.control-group").hide()))),b.utils.getCookie("cookieconsent_status")||!gdprConfigurationOptions.blockJoomlaSessionCookie&&!gdprConfigurationOptions.blockExternalCookiesDomains&&"undefined"===typeof gdprUseCookieCategories||
(b.utils.setCookie("cookieconsent_status",b.status.allow),setTimeout(function(){jQuery("input.cc-cookie-checkbox:not(:checked)").trigger("click")},0),setTimeout(function(){plgGdprShowReloadWindow()},gdprConfigurationOptions.countryAcceptReloadTimeout)));this.options.regionalLaw&&(d.revokable&&(a.revokable=!0),d.explicitAction&&(a.dismissOnScroll=!1,a.dismissOnTimeout=!1));return a};return a}();b.initialise=function(a,d,k){var g=new b.Law(a.law);d||(d=function(){});k||(k=function(){});b.getCountryCode(a,
function(k){delete a.law;delete a.location;k.code&&(a=g.applyLaw(a,k.code));d(new b.Popup(a))},function(d){delete a.law;delete a.location;k(d,new b.Popup(a))})};b.getCountryCode=function(a,d,k){if(a.law&&a.law.countryCode)d({code:a.law.countryCode});else if(a.location){if(gdprConfigurationOptions.cacheGeolocationCountry){var g=sessionStorage.getItem("cookie_consent_country");if(g){d({code:g});return}}(new b.Location(a.location)).locate(function(a){d(a||{});gdprConfigurationOptions.cacheGeolocationCountry&&
a.code&&sessionStorage.setItem("cookie_consent_country",a.code)},k)}else d({})};b.utils=d;b.hasInitialised=!0;window.cookieconsent=b}})(window.cookieconsent||{});