1!function(J){window.BorlabsCookie=function(){"use strict";var n=[],l=[],o=!1,i={uid:null,option:null},a="borlabsCookie",c="borlabsCookieUnblockContent",r=[],d=[],s=[],u="[data-borlabs-cookie-inline='third-party']",p="[data-borlabs-cookie-inline='first-party']",b="[data-borlabs-cookie-blocked-content]",e="[data-borlabs-cookie-unblock]",k="[data-borlabs-cookie-opt-out]",f,t=function(o,e,t){ 2// Default settings, will be overwritten with the options argument 3f=J.extend({ajaxURL:null,language:"en",codeCookieFirstParty:"",codeCookieThirdParty:"",codeFacebookPixel:"",cookieBoxBlocks:!0,cookieBoxShow:!1,cookieLifetime:365,cookieLifetimeOption2:365,cookieLifetimeOption3:365,cookieRespectDoNotTrack:!1,cookiesForBots:!0,executeFirstPartyCodeOnThirdParty:!0,facebookPixelId:"",googleAnalyticsId:"",hideCookieBox:!1,hideCookieBoxOnPage:[],cookieDomain:"",cookiePath:""},o),l=e,n=t, 4// Collect inline code asap 5s=I(u),d=I(p), 6// Implement message box 7J("#borlabsCookieMessageBox").length&&"SCRIPT"===J("#borlabsCookieMessageBox")[0].tagName&&J("body").append(J("#borlabsCookieMessageBox").html()), 8// Check if visitor is a bot and bots should get cookies 9f.cookiesForBots&&/bot|googlebot|crawler|spider|robot|crawling/i.test(navigator.userAgent.toLowerCase())?( 10// Set all cookies for bots 11C(a,"all",f.cookieLifetime), 12// Activate JavaScript that was blocked based on cookie option 13D(), 14// Activate all blocked contents 15S("all")):( 16// Try to find our (fills cookieData) 17P(), 18// If no cookie was found, create UID 19null===i.uid&&(i.uid=z(), 20// Set cookie to no-selection 21C(a,i.uid+",no-selection",f.cookieLifetimeOption3), 22// Log the first visit 23H()), 24// Set default value if possible 25v()&&J("[data-borlabs-cookie-wrap='inline']").length&&J("[data-borlabs-cookie-wrap='inline'] input[name='cookieOption'][value='"+i.option+"']").prop("checked",!0), 26// Register event handler 27J("[data-borlabs-cookie-wrap] input[name='cookieOption']").change(function(){m()}),J("[data-borlabs-cookie-help-link]").on("click",function(){O()}), 28// Register event handler for blocked content 29L(), 30// Check if cookie is available 31v()? 32// Inject JavaScript 33D():("always"===f.cookieBoxShow||"automatic"===f.cookieBoxShow&&(f.codeCookieThirdParty.length||f.codeCookieFirstParty.length||f.codeFacebookPixel.length||s.length||d.length))&&(f.cookieRespectDoNotTrack&&void 0!==navigator.doNotTrack&&"1"===navigator.doNotTrack?( 34// Set option "no cookie" 35C(a,i.uid+",reject-all",f.cookieLifetimeOption3), 36// Log cookie setting 37H("reject-all")): 38// settings.hideCookieBox is deprecated 39!1===f.hideCookieBox&&( 40// Check if the cookie box should be hidden on the page 410!==f.hideCookieBoxOnPage.length&&-1!==f.hideCookieBoxOnPage.indexOf(window.location.href)||h())), 42// Register Google Analytics Opt-out 43J(".borlabs-cookie-google-opt-out").on("click",function(){var o=null;return void 0!==this.dataset.borlabsCookieTrackingId&&(o=this.dataset.borlabsCookieTrackingId),A(o)}), 44// Register Facebook Pixels Opt-out 45J(".borlabs-cookie-facebook-opt-out").on("click",function(){return R()}), 46// Register Opt-out 47J(k+" a").on("click",function(){var o=J(this).parents(k)[0].dataset.borlabsCookieOptOut,e=null;void 0!==o&&("google-analytics"===o?(void 0!==J(this).parents(k)[0].dataset.borlabsCookieTrackingId&&(e=J(this).parents(k)[0].dataset.borlabsCookieTrackingId),A(e)):"facebook-pixel"===o&&R(),J(this).parents(k).find("[data-borlabs-cookie-opt-out-success]").slideDown(400))}), 48// Get history if element is present 49J("[data-borlabs-cookie-log]").length&&G(), 50// Show uid 51J("[data-borlabs-cookie-uid]").length&&J("[data-borlabs-cookie-uid]").each(function(){J(this).html(i.uid)}), 52// Show opt-out message 53M()&&J("[data-borlabs-cookie-opt-out='google-analytics'] [data-borlabs-cookie-opt-out-success]").slideDown(400),N()&&J("[data-borlabs-cookie-opt-out='facebook-pixel'] [data-borlabs-cookie-opt-out-success]").slideDown(400), 54// Activate all blocked content based on cookie setting 55S("cookie"))},h=function(){return"1"!==f.cookieBoxBlocks&&J("[data-borlabs-cookie-wrap='popup']").addClass("dont-block"),J("[data-borlabs-cookie-wrap='popup']").fadeIn(400,function(){J("[data-borlabs-cookie-wrap='popup'] [data-borlabs-cookie]").addClass("borlabsCookieShow")}),!0},g=function(){J("[data-borlabs-cookie-wrap='popup'] [data-borlabs-cookie]").removeClass("borlabsCookieShow"),J("[data-borlabs-cookie-wrap='popup']").fadeOut(400)},m=function(){var o=f.cookieLifetime; 56// Save selected option 57i.option=J("[data-borlabs-cookie-wrap] input[name='cookieOption']:checked").val(),!1===v()&&( 58// Fallback in case of manipulation 59i.option="reject-all",o=f.cookieLifetimeOption3),"first-party"===i.option&&(o=f.cookieLifetimeOption2),"reject-all"===i.option&&(o=f.cookieLifetimeOption3), 60// Set cookie 61C(a,i.uid+","+i.option,o), 62// Log cookie setting 63H(i.option), 64// Inject JavaScript 65D(),J("[data-borlabs-cookie-wrap='popup'] [data-borlabs-selection-list]").slide
65Up(400,function(){J("[data-borlabs-cookie-wrap='popup'] [data-borlabs-selection-success]").slideDown(400,function(){ 66// Close cookie message box 67setTimeout(g,800)})}), 68// If inline element exists 69J("[data-borlabs-cookie-wrap='inline']").length&&J("[data-borlabs-cookie-wrap='inline'] [data-borlabs-selection-success]").slideDown(400,function(){J("[data-borlabs-cookie-wrap='inline'] [data-borlabs-selection-success]").delay(800).slideUp(400)})},v=function(){var o=!0;return"all"!==i.option&&"first-party"!==i.option&&"reject-all"!==i.option&&(o=!1),o},y=function(){return i.option},C=function(o,e,t){var i=new Date;i.setTime(i.getTime()+24*t*60*60*1e3),document.cookie=o+"="+e+";"+(""!==f.cookieDomain?"domain="+f.cookieDomain+";":"")+"path="+(""!==f.cookiePath?f.cookiePath:"/")+";expires="+i.toUTCString()},w=function(o,e,t){ 70// Try to get the cookie 71var i=x(o); 72// If cookie is not available, create the cookie 73null===i.name?( 74// Create the cookie 75C(o,e,t), 76// Log the added cookie value 77H(e)):( 78// Split the cookie value 79i.value=i.value.split(","), 80// Check if the cookieValue is not yet present 81-1===i.value.indexOf(e)&&( 82// Add the cookie value 83i.value.push(e), 84// Only update the cookie when a new value is added 85i.value=i.value.join(","), 86// Update the cookie 87C(o,i.value,t), 88// Log the added cookie value 89H(e)))},x=function(o){var e={name:null,value:null};if(document.cookie.length)for(var t,i=decodeURIComponent(document.cookie).split(";"),a=0;a<i.length;a++){var n=i[a].split("="),l=void 0!==n[0]?n[0].trim():"",c=void 0!==n[1]?n[1].trim():"";l===o&&(e.name=l,e.value=c)}return e},P=function(){var o=x(a);if(null!==o.value){var e=T(o.value);void 0!==e.uid&&void 0!==e.option&&(i.uid=e.uid,i.option=e.option)}},T=function(o){var e={uid:null,option:null},t=o.split(",");return void 0!==t[0]&&void 0!==t[1]&&/[0-9a-z]{8}\-[0-9a-z]{8}\-[0-9a-z]{8}\-[0-9a-z]{8}/i.test(t[0])&&(e.uid=t[0],e.option=t[1]),e},O=function(){return"none"===J("[data-borlabs-help]").css("display")?J("[data-borlabs-selection]").slideUp(400,function(){J("[data-borlabs-help]").slideDown(400,function(){J(this).css("max-height",window.innerHeight-this.offsetTop)})}):J("[data-borlabs-help]").slideUp(400,function(){J("[data-borlabs-selection]").slideDown(400)}),!0},I=function(o){return J(o).map(function(){var o,e,t={};return t={id:this.dataset.borlabsCookieId,code:this.innerHTML},this.innerHTML="",t})},B,D=function(){!1===o&&("all"===y()?(J("body").append(F(f.codeCookieThirdParty)), 90// Add facebook pixel code 910<f.facebookPixelId.length&&!1===N()&&J("body").append(F(f.codeFacebookPixel)),j(s),f.executeFirstPartyCodeOnThirdParty&&(J("body").append(F(f.codeCookieFirstParty)),j(d))):"first-party"===y()&&(J("body").append(F(f.codeCookieFirstParty)),j(d)), 92// Avoid double injection when the user selects another preference within the cookie content box 93o=!0)},j=function(o){o.length&&J.each(o,function(o,e){J("[data-borlabs-cookie-id='"+e.id+"']").html(F(e.code)).css("display","inherit")})},L=function(){J(b+" "+e).on("click",function(){U(J(this).parents(b)[0])})},S=function(o){var e={},t=null; 94// Unblock content based on cookie setting 95if(void 0===o&&(o="cookie"),"cookie"===o){if(null!==(e=x(c)).value)for(t in e.value=e.value.split(","),n)"object"==typeof n[t]&&-1!==e.value.indexOf(n[t].typeId)&&J("#"+t).length&&U(J("#"+t)[0])}else if("all"===o) 96// Unblock all content 97J(b).each(function(){U(this)});else 98// Unblock all content of specific Blocked Content Type 99// Check if Blocked Content Type exists 100if("object"==typeof l[o])for(t in n)n[t].typeId===o&&J("#"+t).length&&U(J("#"+t)[0]);return!0},U=function(o){var e=o.id,t=null,i=!1;if("object"==typeof n[e]&&(t=n[e].typeId,"object"==typeof l[t].settings&&"string"==typeof l[t].settings.unblockAll&&"1"===l[t].settings.unblockAll&&(i=!0), 101// If checkbox was detected and checked 102J(o).find("input[type='checkbox'][name='unblockAll']").length&&(i=!!J(o).find("input[type='checkbox'][name='unblockAll']").prop("checked")),J(o).html(F(n[e].content)), 103// Execute global function 104void 0===r[t]&&(l[t].global(),r[t]=!0), 105// Execute init function 106l[n[e].typeId].init(e),i&&"default"!==t)) 107// Unblock all other contents on the site 108for(var a in 109// Set cookie - using cookie lifetime of option 1 110w(c,t,f.cookieLifetime),n)"object"==typeof n[a]&&a!==e&&n[a].typeId===t&&J(J("#"+a)[0]).html(F(n[a].content))},F=function(o){return decodeURIComponent(Array.prototype.map.call(window.atob(o),function(o){return"%"+("00"+o.charCo
110deAt(0).toString(16)).slice(-2)}).join(""))},A=function(o){var e="ga-disable-"+(o||f.googleAnalyticsId);return document.cookie=e+"=true;"+(""!==f.cookieDomain?"domain="+f.cookieDomain+";":"")+"path="+(""!==f.cookiePath?f.cookiePath:"/")+";expires=Thu, 31 Dec 2099 23:59:59 UTC",window[e]=!0, 111// Log cookie setting 112H("opted-out-ga"),!0},R=function(){return _()?localStorage.setItem("facebook-pixel","opt-out"): 113// Fallback 114document.cookie="fbp-disable=true;"+(""!==f.cookieDomain?"domain="+f.cookieDomain+";":"")+"path="+(""!==f.cookiePath?f.cookiePath:"/")+";expires=Thu, 31 Dec 2099 23:59:59 UTC", 115// Log cookie setting 116H("opted-out-fb"),!0},M=function(){var o=x("ga-disable-"+f.googleAnalyticsId);return null!==o.name&&null!==o.value},N=function(){if(_()){if("opt-out"===localStorage.getItem("facebook-pixel"))return!0}else{var o=x("fbp-disable");if(null!==o.name&&null!==o.value)return!0}return!1},_=function(){try{return localStorage.setItem("test-item","test"),localStorage.removeItem("test-item"),!0}catch(o){return!1}},z=function(){function o(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return o()+o()+"-"+o()+o()+"-"+o()+o()+"-"+o()+o()},H=function(o){J.ajax(f.ajaxURL,{type:"POST",data:{action:"borlabs_cookie_handler",type:"log",id:i.uid,option:o||"no-selection"}})},G=function(){J.ajax(f.ajaxURL,{type:"POST",data:{action:"borlabs_cookie_handler",type:"log_history",id:i.uid,language:f.language}}).done(function(o){(o=J.parseJSON(o)).length&&J.each(o,function(o,e){J("[data-borlabs-cookie-log] table").append("<tr><td>"+e.stamp+"</td><td>"+e.option+"</td></tr>")})})};return{init:t,addCode:function(o,e){return console.log("Borlabs Cookie: function addBinaryCode() is deprecated and will be removed with the next update."),"thirdParty"===e?f.codeCookieThirdParty=o:"firstParty"===e&&(f.codeCookieFirstPary=o),!0},getCookieOption:y,optOutGoogle:A,toggleHelp:O,unblockAllContent:S}}()}(jQuery);
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.