https://www.ugine.com/wp-content/plugins/complianz-gdpr-premium/assets/js/complianz.min.js?ver=4.8.2
1"use strict";jQuery(document).ready(function($){var ccStatus;var ccName;var ccStatsEnabled=false;var ccAllEnabled=false;var waitingInlineScripts=[];var waitingScripts=[];var placeholderClassIndex=0;var curClass="";var cmplzAllScriptsHookFired=false;var cmplzLocalhostWarningShown=false;var cmplzCategories=["cmplz_marketing","cmplz_stats","cmplz_prefs"];$(document).on("click",".cc-btn-no-href",function(e){e.preventDefault()});function setStatusAsBodyClass(status){var ccBody=$("body");ccBody.removeClass(curClass);ccBody.addClass("cmplz-status-"+status);curClass="cmplz-status-"+status}function setBlockedContentContainer(){$(".cmplz-placeholder-element").each(function(){var blockedContentContainer;if($(this).hasClass("cmplz-iframe")){if($(this).attr("loading")==="lazy"){$(this).removeAttr("loading");$(this).data("deferlazy",1)}blockedContentContainer=$(this).parent()}else{blockedContentContainer=$(this)}var curIndex=blockedContentContainer.data("placeholderClassIndex");if(typeof curIndex==="undefined"){placeholderClassIndex++;blockedContentContainer.addClass("cmplz-placeholder-"+placeholderClassIndex);blockedContentContainer.addClass("cmplz-blocked-content-container");blockedContentContainer.data("placeholderClassIndex",placeholderClassIndex);if(cmplzGetHighestAcceptance()!=="marketing"&&!blockedContentContainer.find(".cmplz-blocked-content-notice").length){var placeholderText=complianz.placeholdertext;if(typeof placeholderText!=="undefined")blockedContentContainer.append('<button tabindex=0 class="cmplz-blocked-content-notice cmplz-accept-marketing">'+placeholderText+"</button>")}var src=$(this).data("placeholder-image");if(typeof src!=="undefined"&&src.length){src=src.replace("url(","").replace(")","").replace(/\"/gi,"");$("head").append("<style>.cmplz-placeholder-"+placeholderClassIndex+" {background-image: url("+src+") !important;}</style>");setBlockedContentContainerAspectRatio($(this),src,placeholderClassIndex)}}});if(cmplzGetHighestAcceptance()==="marketing"){cmplzEnableMarketing()}}function setBlockedContentContainerAspectRatio(container,src,placeholderClassIndex){if(typeof container==="undefined")return;var blockedContentContainer=container.parent();var img=new Image;img.addEventListener("load",function(){var imgWidth=this.naturalWidth;var imgHeight=this.naturalHeight;if(imgWidth===0)imgWidth=1;var w=blockedContentContainer.width();var h=imgHeight*(w/imgWidth);var heightCSS="";if(src.indexOf("placeholder.jpg")===-1){heightCSS="height:"+h+"px;"}$("head").append("<style>.cmplz-placeholder-"+placeholderClassIndex+" {"+heightCSS+"}</style>")});img.src=src}$(window).bind("resize",function(e){if(cmplzGetHighestAcceptance()!=="marketing"){$(window).resize(function(){clearTimeout(window.resizeEvt);window.resizeEvt=setTimeout(function(){setBlockedContentContainer()},100)})}});if(complianz.block_ajax_content==1){setInterval(function(){setBlockedContentContainer()},2e3)}function cmplzEnableMarketing(){$.event.trigger({type:"cmplzRunBeforeAllScripts"});if(complianz.use_categories==="no"&&!ccStatsEnabled){cmplzEnableStats()}if(!ccAllEnabled){cmplzIntegrationsConsent();$(".cmplz-style-element").each(function(i,obj){var src=$(this).data("href");$("head").append('<link rel="stylesheet" type="text/css" href="'+src+'">')});$(".cmplz-blocked-content-notice").each(function(){$(this).remove()})}$(".cmplz-iframe").each(function(i,obj){var src=$(this).data("src-cmplz");var autoplay=cmplzGetUrlParameter($(this).attr("src"),"autoplay");if(autoplay==="1")src=src+"&autoplay=1";$(this).attr("src",src).on("load",function(){if(typeof $(this).parent().fitVids=="function"){$(this).parent().fitVids()}var curElement=$(this);if($(this).data("deferlazy")){$(this).attr("loading","lazy")}var blockedContentContainer=$(this).closest(".cmplz-blocked-content-container");blockedContentContainer.animate({"background-image":"url('')"},400,function(){var cssIndex=blockedContentContainer.data("placeholderClassIndex");blockedContentContainer.removeClass("cmplz-blocked-content-container");blockedContentContainer.removeClass("cmplz-placeholder-"+cssIndex);curElement.removeClass("cmplz-iframe-styles");curElement.removeClass("cmplz-iframe");curElement.removeClass("video-wrap");curElement.removeClass("cmplz-hidden")})})});$(".cmplz-noframe").each(function(i,obj){var blockedContentContainer=$(this);var cssIndex=blockedContentContainer.data("placeholderClassIndex");blockedContentContainer.removeClass("cmplz-blocked-content-container");blockedContentContainer.removeClass("cmplz-noframe");blockedContentContainer.removeClass("cmplz-placeholder-"+cssIndex)});if(!ccAllEnabled){var scriptElements=$(".cmplz-script");scriptElements.each(function(i,obj){var waitfor=$(this).data("waitfor");var src=$(this).attr("src");if(src&&src.length){if(typeof waitfor!=="undefined"){waitingScripts[waitfor]=src}}else if($(this).text().length){if(typeof waitfor!=="undefined"){waitingInlineScripts[waitfor]=$(this)}}});scriptElements.each(function(i,obj){if($(this).hasClass("cmplz-stats"))return true;var src=$(this).attr("src");if(src&&src.length){$(this).attr("type","text/javascript");
1if(cmplzIsWaitingScript(waitingScripts,src)){return}if(typeof $(this).data("post_scribe_id")!=="undefined"){var psID="#"+$(this).data("post_scribe_id");if($(psID).length){$(psID).html("");$(function(){postscribe(psID,"<script src="+src+"><\/script>")})}}else{$.getScript(src).done(function(s,Status){var waitingScript=cmplzGetWaitingScript(waitingScripts,src);if(waitingScript){$.getScript(waitingScript).done(function(script,textStatus){cmplzRunAfterAllScripts()}).fail(function(jqxhr,settings,exception){console.warn("Something went wrong "+exception)})}var waitingInlineScript=cmplzGetWaitingScript(waitingInlineScripts,src);if(waitingInlineScript){cmplzRunInlineScript(waitingInlineScript)}cmplzRunAfterAllScripts()}).fail(function(jqxhr,settings,exception){console.warn("Something went wrong "+exception)})}}else if($(this).text().length){if(cmplzIsWaitingScript(waitingInlineScripts,$(this).text())){return}cmplzRunInlineScript($(this));var waitingScript=cmplzGetWaitingScript(waitingScripts,$(this).text());if(waitingScript!==false){$.getScript(waitingScript).done(function(s,Status){cmplzRunAfterAllScripts()}).fail(function(jqxhr,settings,exception){console.warn("Something went wrong "+exception)})}}})}if(!ccAllEnabled){$.event.trigger({type:"cmplzEnableScripts",consentLevel:"marketing"});$.event.trigger({type:"cmplzEnableScripts",consentLevel:"all"});var event=document.createEvent("Event");event.initEvent("cmplzEnableScriptsMarketing",true,true);document.dispatchEvent(event);cmplzRunAfterAllScripts();ccAllEnabled=true}}function cmplzGetWaitingScript(waitingScripts,src){for(var waitfor in waitingScripts){var waitingScript;if(waitingScripts.hasOwnProperty(waitfor)){waitingScript=waitingScripts[waitfor];if(typeof waitingScript!=="string")waitingScript=waitingScript.text();if(src.indexOf(waitfor)!==-1){var output=waitingScripts[waitfor];delete waitingScripts[waitfor];return output}}}return false}function cmplzArrayIsEmpty(arr){for(var key in arr){if(arr.hasOwnProperty(key)){return false}}return true}function cmplzIsWaitingScript(waitingScripts,srcOrScript){for(var waitfor in waitingScripts){if(waitingScripts.hasOwnProperty(waitfor)){var waitingScript=waitingScripts[waitfor];if(typeof waitingScript!=="string")waitingScript=waitingScript.text();if(srcOrScript.indexOf(waitingScript)!==-1||waitingScript.indexOf(srcOrScript)!==-1){return true}}}return false}function cmplzRunAfterAllScripts(){if(!cmplzAllScriptsHookFired&&cmplzArrayIsEmpty(waitingInlineScripts)&&cmplzArrayIsEmpty(waitingScripts)){$.event.trigger({type:"cmplzRunAfterAllScripts"});cmplzAllScriptsHookFired=true}}function cmplzRunInlineScript(script){$("<script>").attr("type","text/javascript").text(script.text()).appendTo(script.parent());script.remove()}function cmplzEnableStats(){if(ccStatsEnabled)return;if($(this).hasClass("cmplz-native"))return true;console.log("fire cmplz_event_statistics");$(".cmplz-stats").each(function(i,obj){var src=$(this).attr("src");if(src&&src.length){$(this).attr("type","text/javascript");$.getScript(src).done(function(s,Status){}).fail(function(jqxhr,settings,exception){console.warn("Something went wrong "+exception)})}else if($(this).text().length){var str=$(this).text();$("<script>").attr("type","text/javascript").text(str).appendTo($(this).parent());$(this).remove()}});ccStatsEnabled=true;$.event.trigger({type:"cmplzEnableScripts",consentLevel:"statistics"})}var cmplzFiredEvents=[];function cmplzRunTmEvent(event){if(cmplzFiredEvents.indexOf(event)===-1){if(event==="cmplz_event_marketing"&&complianz.tm_categories){console.log("fire "+event);cmplzFiredEvents.push("cmplz_event_marketing");window.dataLayer.push({event:"cmplz_event_marketing"});console.log("Deprecated event: The cmplz_event_all will be deprecated
1in the future.");cmplzFiredEvents.push("cmplz_event_all");window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:"cmplz_event_all"})}else{console.log("fire "+event);cmplzFiredEvents.push(event);window.dataLayer=window.dataLayer||[];window.dataLayer.push({event:event})}}}var cmplz_user_data=[];if(typeof Storage!=="undefined"&&sessionStorage.cmplz_user_data){cmplz_user_data=JSON.parse(sessionStorage.cmplz_user_data)}if(complianz.geoip==1&&(cmplz_user_data.length===0||cmplz_user_data.version!==complianz.version||cmplz_user_data.banner_version!==complianz.banner_version)){$.ajax({type:"GET",url:complianz.url,dataType:"json",data:{action:"cmplz_user_settings"},success:function(response){cmplz_user_data=response;sessionStorage.cmplz_user_data=JSON.stringify(cmplz_user_data);conditionally_show_warning()}})}else{conditionally_show_warning()}function conditionally_show_warning(){complianz=cmplzMergeObject(complianz,cmplz_user_data);cmplzMaybeAutoRedirect();setBlockedContentContainer();window.wp_consent_type=complianz.consenttype;$.event.trigger({type:"wp_consent_type_defined"});var event=new CustomEvent("wp_consent_type_defined");document.dispatchEvent(event);if(complianz.consenttype==="optinstats"){complianz.use_categories=complianz.use_categories_optinstats;complianz.consenttype="optin"}if(complianz.use_categories!=="no"){complianz.type="categories";complianz.layout="categories-layout"}cmplzIntegrationsInit();cmplzCheckCookiePolicyID();complianz.readmore_url=complianz.readmore_url[complianz.region];$.event.trigger({type:"cmplzCookieBannerData",data:complianz});var cbd_event=new CustomEvent("cmplzCookieBannerData");document.dispatchEvent(cbd_event);if(cmplzGetCookie("cmplz_choice")!=="set"){if(complianz.do_not_track||complianz.consenttype!=="optin"&&complianz.consenttype!=="optout"){complianz_track_status("no-warning")}else if(complianz.consenttype==="optout"){complianz_track_status("marketing")}else{complianz_track_status("no-choice")}}if(!complianz.do_not_track){if(complianz.consenttype==="optin"){setStatusAsBodyClass("deny");if(complianz.forceEnableStats){complianz.categories=cmplzRemoveStatisticsCategory(complianz.categories);var revokeContainer=$(".cmplz-manage-consent-container");if(revokeContainer.length){revokeContainer.html(cmplzRemoveStatisticsCategory(revokeContainer.html()))}cmplzEnableStats()}complianz.dismiss_on_scroll=false;complianz.dismiss_on_timeout=false;complianz.readmore=complianz.readmore_optin;complianz.message=complianz.message_optin;console.log("opt-in");cmplz_cookie_warning()}else if(complianz.consenttype==="optout"){console.log("opt-out");setStatusAsBodyClass("allow");complianz.type="opt-out";complianz.layout="basic";if(cmplzGetCookie("complianz_consent_status")=="deny"){cmplzDisableAutoDismiss()}complianz.readmore=complianz.readmore_optout;complianz.dismiss=complianz.accept_informational;complianz.message=complianz.message_optout;cmplz_cookie_warning()}else{console.log("other consenttype, no cookie warning");cmplzFireCategories("all",true)}}else{setStatusAsBodyClass("deny");cmplzLoadRevokeContainer()}}function cmplzDisableAutoDismiss(){complianz.dismiss_on_scroll=false;complianz.dismiss_on_timeout=false}function cmplz_cookie_warning(){var css="";if(complianz.use_categories==="hidden"||complianz.use_categories==="visible"||complianz.use_custom_cookie_css){css+="#cc-window.cc-window .cc-compliance .cc-btn.cc-accept-all {color:"+complianz.accept_all_text_color+";background-color:"+complianz.accept_all_background_color+";border-color:"+complianz.accept_all_border_color+"}";css+="#cc-window.cc-window .cc-compliance .cc-btn.cc-accept-all:hover{background-color:"+getHoverColour(complianz.accept_all_background_color)+"}"}css+="#cc-window.cc-window .cc-compliance .cc-btn.cc-dismiss{color:"+complianz.functional_text_color+";background-color:"+complianz.functional_background_color+";border-color:"+complianz.functional_border_color+"}";css+="#cc-window.cc-window .cc-compliance .cc-btn.cc-dismiss:hover{background-color:"+getHoverColour(complianz.functional_background_color)+"}";if(complianz.banner_width!==468){css+="#cc-window.cc-floating {max-width:"+complianz.banner_width+"px;}"}
1if(complianz.use_custom_cookie_css){css+=complianz.custom_css}if(css.length>0){$("<style>").prop("type","text/css").html(css).appendTo("head")}var save_button='<a aria-label="{{save_preferences}}" href="#" class="cc-btn cc-save cc-save-settings">{{save_preferences}}</a>';if(complianz.use_categories==="hidden"){if(complianz.tcf_active){save_button='<a aria-label="{{settings}}" href="#" class="cc-btn cc-save cc-show-settings">{{settings}}</a><a aria-label="{{dismiss}}" href="#" class="cc-btn cc-dismiss">{{dismiss}}</a>'}else{save_button='<a aria-label="{{dismiss}}" href="#" class="cc-btn cc-dismiss">{{dismiss}}</a><a aria-label="{{settings}}" href="#" class="cc-btn cc-save cc-show-settings">{{settings}}</a>'}}if(complianz.use_categories==="visible"||complianz.use_categories==="hidden"){save_button='<a aria-label="{{accept_all}}" href="#" class="cc-btn cc-accept-all">{{accept_all}}</a>'+save_button}var dismiss_button='<a aria-label="{{dismiss}}" href="#" role="button" class="cc-btn cc-dismiss">{{dismiss}}</a>';var allow_button='<a aria-label="{{allow}}" href="#" role="button" class="cc-btn cc-save cc-allow">{{allow}}</a>';if(complianz.consenttype==="optout"){dismiss_button='<a aria-label="{{dismiss}}" href="#" role="button" class="cc-btn cc-allow">{{dismiss}}</a>'}var domain=cmplzGetCookieDomain();var autoOpen=$(".cmplz-tcf-container").length&&complianz.tcf_active?false:true;window.cookieconsent.initialise({cookie:{name:"complianz_consent_status",expiryDays:complianz.cookie_expiry,domain:domain},onInitialise:function(status){ccStatus=status;if(complianz.soft_cookiewall&&(status==="allow"||status==="dismiss")){dismissCookieWall()}if(status==="allow"){var all=false;if(complianz.use_categories==="no")all="all";cmplzFireCategories(all,true)}},onStatusChange:function(status,chosenBefore){if(complianz.soft_cookiewall&&(status==="allow"||status==="dismiss")){dismissCookieWall()}if((complianz.dismiss_on_scroll||complianz.dismiss_on_timeout)&&(status==="dismiss"||status==="allow")){cmplzFireCategories("all",true);ccName.close();$(".cc-revoke").fadeIn()}cmplzUpdateStatusCustomLink(false);ccStatus=status;if(complianz.use_categories==="no"){complianz_track_status()}if(status==="allow"){if(complianz.use_categories==="no"){cmplzFireCategories("all",true)}else{cmplzFireCategories(false,true)}}if(status==="deny"&&complianz.consenttype==="optout"){cmplzRevoke()}},onRevokeChoice:function(){if(complianz.soft_cookiewall){activateCookieWall()}if(complianz.use_categories==="no"&&ccStatus==="allow"){cmplzRevoke();$(".cc-revoke").fadeOut();ccName.open()}},autoOpen:autoOpen,dismissOnTimeout:parseInt(complianz.dismiss_on_timeout),dismissOnScroll:parseInt(complianz.dismiss_on_scroll),dismissOnWindowClick:true,revokeBtn:'<div class="cc-revoke '+complianz.hide_revoke+' {{classes}}">'+complianz.revoke+"</div>",palette:{popup:{background:complianz.popup_background_color,text:complianz.popup_text_color},button:{background:complianz.button_background_color,text:complianz.button_text_color,border:complianz.border_color}},theme:complianz.theme,static:complianz.static,position:complianz.position,type:complianz.type,layout:complianz.layout,layouts:{"categories-layout":"{{messagelink}}{{categories-checkboxes}}{{compliance}}",compliance:"{{messagelink}}{{compliance}}"},compliance:{categories:'<div class="cc-compliance cc-highlight">{{save}}</div>'},elements:{dismiss:dismiss_button,allow:allow_button,save:save_button,"categories-checkboxes":complianz.categories,messagelink:'<span id="cookieconsent:desc" class="cc-message">{{message}} <a aria-label="{{link}}" class="cc-link" href="{{href}}">{{link}}</a>'+complianz.privacy_link[complianz.region]+"</span>"},content:{save_preferences:complianz.save_preferences,deny:"",message:complianz.message,dismiss:complianz.dismiss,allow:complianz.accept,link:complianz.readmore,href:complianz.readmore_url,accept_all:complianz.accept_all,settings:complianz.view_preferences}},function(popup){ccName=popup;if(complianz.soft_cookiewall)$(".cc-window").wrap('<div id="cc-banner-wrap"></div>');if(complianz.soft_cookiewall&&ccStatus==undefined){activateCookieWall()}$(".cc-btn").each(function(){$(this).addClass("cc-btn-no-href")});if(complianz.use_categories==="hidden"){$(".cmplz-categories-wrap").hide();$(document).on("click",".cc-show-settings",function(){var catsContainer=$(".cmplz-categories-wrap");if(catsContainer.is(":visible")){catsContainer.fadeOut(800);var showSettingsBtn=$(".cc-save-settings");showSettingsBtn.html(complianz.view_preferences);showSettingsBtn.removeClass("cc-show-settings");showSettingsBtn.addClass("cc-save-settings")}else{catsContainer.fadeIn(1600);var showSettingsBtn=$(".cc-show-settings");showSettingsBtn.html(complianz.save_preferences);showSettingsBtn.addClass("cc-save-settings");showSettingsBtn.removeClass("cc-show-settings")}});$(document).on("click",".cc-dismiss",function(){cmplzRevoke()})}$(".cc-window").addClass("cmplz-categories-"+complianz.use_categories);if(complianz.consenttype!=="optout"&&complianz.use_categories!=="no"){cmplzSyncCategoryCheckboxes()}cmplzFireCategories();if(complianz.consenttype==="optout"&&cmplzGetCookie("complianz_consent_status")!=="deny"){cmplzFireCategories("all")}cmplzLoadRevokeContainer();$.event.trigger({type:"cmplzCookieWarningLoaded",consentType:complianz.consenttype});var event=new CustomEvent("cmplzCookieWarningLoaded",{detail:complianz.region});document.dispatchEvent(event)})}$(document).on("click",".cc-save-settings",function(){cmplzSaveCategoriesSelection();cmplzFireCategories(false,true)});function cmplzRemoveStatisticsCategory(categories){if(complianz.use_categories!=="no"&&complianz.forceEnableStats){return categories.replace(/(.*)(<div class="cmplz-categories-wrap"><label.*?>.*?<input.*?class=".*?cmplz_stats.*?<\/label><\/div>)(.*)/g,function(a,b,c,d){return b+d})}return categories}function cmplzSaveCategoriesSelection(){if(complianz.soft_cookiewall){dismissCookieWall()}if(complianz.use_categories)ccName.setStatus("dismiss");var reload=false;if($(".cmplz_marketing").length){if(!$(".cmplz_marketing").is(":checked")&&cmplzGetCookie("cmplz_marketing")==="allow"){reload=true}else if(!$(".cmplz_marketing").is(":checked")&&complianz.consenttype==="optout"&&cmplzGetCookie("cmplz_marketing")===""){reload=true}}if(complianz.consenttype!=="optinstats")cmplz_wp_set_consent("statistics-anonymous","allow");if(complianz.tm_categories){for(var i=0;i<complianz.cat_num;i++){if($(".cmplz_"+i).is(":checked")){cmplzSetCookie("cmplz_event_"+i,"allow",complianz.cookie_expiry);cmplz_wp_set_consent("cmplz_event_"+i,"allow")}else{cmplzSetCookie("cmplz_event_"+i,"deny",complianz.cookie_expiry);cmplz_wp_set_consent("cmplz_event_"+i,"deny")}}}if($(".cmplz_stats").length){if($(".cmplz_stats").is(":checked")){cmplzSetCookie("cmplz_stats","allow",complianz.cookie_expiry);cmplz_wp_set_consent("statistics","allow");cmplz_wp_set_consent("statistics-anonymous","allow")}else{cmplzSetCookie("cmplz_stats","deny",complianz.cookie_expiry);cmplz_wp_set_consent("statistics","deny");if(complianz.consenttype==="optinstats")cmplz_wp_set_consent("statistics-anonymous","deny")}}if($(".cmplz_prefs").length){if($(".cmplz_prefs").is(":checked")){cmplzSetCookie("cmplz_prefs","allow",complianz.cookie_expiry);cmplz_wp_set_consent("preferences","allow")}else{cmplzSetCookie("cmplz_prefs","deny",complianz.cookie_expiry);cmplz_wp_set_consent("preferences","deny")}}if($(".cmplz_marketing").length){if($(".cmplz_marketing").is(":checked")){ccName.setStatus(cookieconsent.status.allow);cmplzSetCookie("cmplz_marketing","allow",complianz.cookie_expiry);cmplz_wp_set_consent("marketing","allow")}else{cmplzSetCookie("cmplz_marketing","deny",complianz.cookie_expiry);cmplzSetCookie("complianz_consent_status","deny",complianz.cookie_expiry);cmplz_wp_set_consent("marketing","deny")}}complianz_track_status();if(complianz.use_categories!=="no"){if(cmplzGetHighestAcceptance()==="no-choice"||cmplzGetHighestAcceptance()==="functional"){cmplzRevoke()}}cmplzUpdateStatusCustomLink(false);ccName.close();$(".cc-revoke").fadeIn();
1if(reload){location.reload()}}function complianz_track_status(status){status=typeof status!=="undefined"?status:false;if(!status)status=cmplzGetHighestAcceptance();if(status)setStatusAsBodyClass(status);if(!complianz.a_b_testing)return;cmplzSetCookie("cmplz_choice","set",complianz.cookie_expiry);$.ajax({type:"GET",url:complianz.url,dataType:"json",data:{action:"cmplz_track_status",status:status,consenttype:complianz.consenttype}})}var cmplzUpdateCheckbox=true;$(document).on("change",".cmplz-consent-checkbox",function(){cmplzUpdateCheckbox=false;var category=$(this).data("category");var checked=$(this).is(":checked");$("."+category).each(function(){$(this).prop("checked",checked)});if(!$(this).closest(".cc-window").length){cmplzFireCategories();cmplzDisableAutoDismiss();cmplzSaveCategoriesSelection()}});$(document).on("click",".cc-revoke-custom",function(){if(complianz.consenttype==="optin"||complianz.consenttype==="optinstats"){if(complianz.tm_categories){for(var i=0;i<complianz.cat_num;i++){$(".cmplz_"+i).each(function(){$(this).prop("checked",false)})}}var cmplzCategories=["cmplz_marketing","cmplz_stats","cmplz_prefs"];for(var key in cmplzCategories){if(cmplzCategories.hasOwnProperty(key)){var cat=cmplzCategories[key];$("."+cat).each(function(){$(this).prop("checked",false)})}}}if(cmplzGetCookie("complianz_consent_status")==="deny"){$(".cc-revoke").click();$(".cc-revoke").fadeOut()}else{cmplzRevoke()}});$(document).on("click",".cmplz-accept-cookies",function(event){event.preventDefault();cmplzAcceptAllCookies()});$(document).on("click",".cmplz-accept-marketing",function(event){event.preventDefault();$(".cmplz_marketing").each(function(){$(this).prop("checked",true)});cmplzFireCategories("marketing",true);cmplzSaveCategoriesSelection();cmplzEnableMarketing()});$(document).on("click",".cc-accept-all",function(event){cmplzAcceptAllCookies()});function cmplzAcceptAllCookies(){ccName.setStatus(cookieconsent.status.allow);cmplzSyncCategoryCheckboxes(true);cmplzFireCategories("all",true);cmplzSaveCategoriesSelection();var details=new Object;details.region=complianz.region;var event=new CustomEvent("cmplzAcceptAll",{detail:details});document.dispatchEvent(event);ccName.close();$(".cc-revoke").fadeIn()}$(".cmplz-hide-cats").show();function cmplzUpdateStatusCustomLink(updateCheckbox){updateCheckbox=typeof updateCheckbox!=="undefined"?updateCheckbox:true;if(!updateCheckbox)cmplzUpdateCheckbox=false;if(cmplzUpdateCheckbox){cmplzSyncCategoryCheckboxes()}if($(".cc-revoke-custom").length){var accepted=$(".cmplz-status-accepted");var denied=$(".cmplz-status-denied");if(complianz.consenttype==="optout"){if(cmplzGetCookie("complianz_consent_status")==="deny"){accepted.hide();denied.show()}else{accepted.show();denied.hide()}}else{if(cmplzGetHighestAcceptance()==="marketing"){accepted.show();denied.hide()}else{accepted.hide();denied.show()}}}}cmplzUpdateStatusCustomLink();function cmplzSetCookie(name,value,days){var secure=";secure";var date=new Date;date.setTime(date.getTime()+days*24*60*60*1e3);var expires=";expires="+date.toGMTString();if(window.location.protocol!=="https:")secure="";var domain=cmplzGetCookieDomain();if(domain.length>0){domain=";domain=."+complianz.cookie_domain}document.cookie=name+"="+value+";SameSite=Lax"+secure+expires+domain+";path=/"}function cmplzGetCookieDomain(){var domain="";if(complianz.set_cookies_on_root==1&&complianz.cookie_domain.length>3){domain=complianz.cookie_domain}if(domain.indexOf("localhost")!==-1){domain="";if(!cmplzLocalhostWarningShown)console.log("Configuration warning: cookies can't be set on root domain on localhost setups");cmplzLocalhostWarningShown=true}return domain}function cmplzGetCookie(cname){var name=cname+"=";var cArr=window.document.cookie.split(";");for(var i=0;i<cArr.length;i++){var c=cArr[i].trim();if(c.indexOf(name)==0)return c.substring(name.length,c.length)}return""}function dismissCookieWall(){$("#cc-banner-wrap").removeClass("cmplz-soft-cookiewall")}function activateCookieWall(){$("#cc-banner-wrap").addClass("cmplz-soft-cookiewall")}function cmplzGetHighestAcceptance(){var status=cmplzGetCookie("complianz_consent_status");if(status==="allow"||status!=="deny"&&complianz.consenttype==="optout"){return"marketing"}if(cmplzGetCookie("cmplz_marketing")==="allow"){return"marketing"}if(complianz.tm_categories){for(var i=complianz.cat_num-1;i>=0;i--){if(cmplzGetCookie("cmplz_event_"+i)==="allow"){return"cmplz_event_"+i}}}if(cmplzGetCookie("cmplz_stats")==="allow"){return"stats"}if(cmplzGetCookie("cmplz_prefs")==="allow"){return"prefs"}
1if(status==="dismiss"){return"functional"}return"no-choice"}function cmplzFireCategories(category,save){cmplzSetAcceptedCookiePolicyID();category=typeof category!=="undefined"?category:false;var forceMarketing=category==="all"||category==="marketing";var forceStatistics=category==="all"||category==="statistics";var forcePreferences=category==="all"||category==="preferences";var highestCategoryAccepted="functional";save=typeof save!=="undefined"?save:false;cmplz_wp_set_consent("functional","allow");if(complianz.consenttype!=="optinstats")cmplz_wp_set_consent("statistics-anonymous","allow");cmplzRunTmEvent("cmplz_event_functional");if(complianz.tm_categories){for(var i=0;i<complianz.cat_num;i++){if(category==="all"||$(".cmplz_"+i).is(":checked")){cmplzRunTmEvent("cmplz_event_"+i)}}}else{if(forcePreferences||$(".cmplz_prefs").length&&$(".cmplz_prefs").is(":checked")){cmplz_wp_set_consent("preferences","allow");highestCategoryAccepted="preferences"}if(forceStatistics||$(".cmplz_stats").length&&$(".cmplz_stats").is(":checked")){cmplz_wp_set_consent("statistics","allow");cmplz_wp_set_consent("statistics-anonymous","allow");cmplzEnableStats();highestCategoryAccepted="statistics"}}if(forceMarketing||$(".cmplz_marketing").length&&$(".cmplz_marketing").is(":checked")){setStatusAsBodyClass("allow");cmplz_wp_set_consent("marketing","allow");cmplzRunTmEvent("cmplz_event_marketing");cmplzEnableMarketing();highestCategoryAccepted="marketing"}var details=new Object;details.category=highestCategoryAccepted;details.region=complianz.region;var event=new CustomEvent("cmplzFireCategories",{detail:details});document.dispatchEvent(event);if(save){if(forceMarketing||$(".cmplz_marketing").length&&$(".cmplz_marketing").is(":checked")){cmplzSetCookie("complianz_consent_status","allow",complianz.cookie_expiry)}}}function cmplzSyncCategoryCheckboxes(force){force=typeof force!=="undefined"?force:false;if(complianz.tm_categories){for(var i=0;i<complianz.cat_num;i++){if(cmplzGetCookie("cmplz_event_"+i)==="allow"||force){$(".cmplz_"+i).each(function(){$(this).prop("checked",true)})}else{$(".cmplz_"+i).each(function(){$(this).prop("checked",false)})}}}for(var key in cmplzCategories){if(cmplzCategories.hasOwnProperty(key)){var cat=cmplzCategories[key];if(cmplzGetCookie(cat)==="allow"||force){$("."+cat).each(function(){$(this).prop("checked",true)})}else{$("."+cat).each(function(){$(this).prop("checked",false)})}}}if(cmplzGetHighestAcceptance()==="marketing"||force){$(".cmplz_marketing").each(function(){$(this).prop("checked",true)})}else{$(".cmplz_marketing").each(function(){$(this).prop("checked",false)})}}function cmplzMergeObject(userdata,ajax_data){var output=[];for(key in ajax_data){if(ajax_data.hasOwnProperty(key))output[key]=ajax_data[key]}for(var key in userdata){if(!ajax_data.hasOwnProperty(key)||typeof ajax_data[key]==="undefined"){if(userdata.hasOwnProperty(key))output[key]=userdata[key]}}return output}function cmplzCheckCookiePolicyID(){var user_policy_id=cmplzGetCookie("complianz_policy_id");if(user_policy_id&&complianz.current_policy_id!==user_policy_id){cmplzSetCookie("complianz_consent_status","",0)}}function cmplzSetAcceptedCookiePolicyID(){cmplzSetCookie("complianz_policy_id",complianz.current_policy_id,complianz.cookie_expiry)}function cmplzIntegrationsInit(){var cookiesToSet=complianz.set_cookies;for(var key in cookiesToSet){if(cookiesToSet.hasOwnProperty(key)&&cookiesToSet[key][1]==="1"){cmplzSetCookie(key,cookiesToSet[key][1],0)}}}function cmplzIntegrationsRevoke(){var cookiesToSet=complianz.set_cookies;for(var key in cookiesToSet){if(cookiesToSet.hasOwnProperty(key)){cmplzSetCookie(key,cookiesToSet[key][1],0)}}}function cmplzIntegrationsConsent(){var cookiesToSet=complianz.set_cookies;for(var key in cookiesToSet){if(cookiesToSet.hasOwnProperty(key)){cmplzSetCookie(key,cookiesToSet[key][0],complianz.cookie_expiry)}}}function cmplzRevoke(){var consentLevel=cmplzGetHighestAcceptance();var reload=false;if(consentLevel!=="no-choice"&&consentLevel!=="functional"){reload=true}if(consentLevel==="no-choice"&&complianz.use_categories==="no"){reload=true}if(complianz.tm_categories){for(var i=0;i<complianz.cat_num;i++){cmplzSetCookie("cmplz_event_"+i,"deny",complianz.cookie_expiry);cmplz_wp_set_consent("cmplz_event_"+i,"deny")}}if($(".cmplz_stats").length){cmplzSetCookie("cmplz_stats","deny",complianz.cookie_expiry);cmplz_wp_set_consent("statistics","deny");if(complianz.consenttype==="optinstats")cmplz_wp_set_consent("statistics-anonymous","deny")}if($(".cmplz_prefs").length){cmplzSetCookie("cmplz_prefs","deny",complianz.cookie_expiry);cmplz_wp_set_consent("preferences","deny")}if($(".cmplz_marketing").length){cmplzSetCookie("cmplz_marketing","deny",complianz.cookie_expiry);cmplz_wp_set_consent("marketing","deny")}cmplzSetCookie("complianz_consent_status","deny",complianz.cookie_expiry);cmplzIntegrationsRevoke();cmplzSyncCategoryCheckboxes();cmplzFireCategories();complianz_track_status();var event=new CustomEvent("cmplzRevoke",{detail:reload});document.dispatchEvent(event);cmplzUpdateStatusCustomLink();if(!complianz.tcf_active&&reload){location.reload()}}function cmplzGetUrlParameter(sPageURL,sParam){if(typeof sPageURL==="undefined")return false;var queryString=sPageURL.split("?");if(queryString.length==1)return false;var sURLVariables=queryString[1].split("&"),sParameterName,i;for(i=0;i<sURLVariables.length;i++){sParameterName=sURLVariables[i].split("=");if(sParameterName[0]===sParam){return sParameterName[1]===undefined?true:decodeURIComponent(sParameterName[1])}}return false}function cmplzInArray(needle,haystack){var length=haystack.length;for(var i=0;i<length;i++){if(haystack[i].indexOf(needle)!==-1)return true}return false}function cmplzMaybeAutoRedirect(){var redirect=cmplzGetUrlParameter(window.location.href,"cmplz_region_redirect");
1var region=cmplzGetUrlParameter(window.location.href,"region");if(redirect&&!region){window.location.href=window.location.href+"®ion="+complianz.region}}function cmplz_wp_set_consent(type,value){if(typeof wp_set_consent=="function"){wp_set_consent(type,value)}}function cmplzLoadRevokeContainer(){if($(".cmplz-manage-consent-container").length){$.ajax({type:"GET",url:complianz.url,dataType:"json",data:{action:"cmplz_manage_consent_html_ajax"},success:function(response){$(".cmplz-manage-consent-container").html(response.html);cmplzSyncCategoryCheckboxes();cmplzUpdateStatusCustomLink()}})}}$(document).on("click",".cmplz-service-header",function(){var item=$(this).next();if(item.hasClass("cmplz-service-hidden")){$(this).addClass("cmplz-service-open");item.removeClass("cmplz-service-hidden")}else{$(this).removeClass("cmplz-service-open");item.addClass("cmplz-service-hidden")}});function getHoverColour(hex){if(hex[0]=="#"){hex=hex.substr(1)}if(hex.length==3){hex=hex[0]+hex[0]+hex[1]+hex[1]+hex[2]+hex[2]}if(hex=="000000"){return"#222"}var num=parseInt(hex,16),amt=38,R=(num>>16)+amt,B=(num>>8&255)+amt,G=(num&255)+amt;var newColour=(16777216+(R<255?R<1?0:R:255)*65536+(B<255?B<1?0:B:255)*256+(G<255?G<1?0:G:255)).toString(16).slice(1);return"#"+newColour}});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.