1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2function loadcookie(e){console.warn("loadcookie() method is deprecated use cookieConsent()"),cookieConsent()}function cookieConsent(){let e=drupalSettings.cookieConsent,t=e.showPopup,i="yes"===navigator.doNotTrack||"1"===navigator.doNotTrack||"yes"===window.doNotTrack||"1"===window.doNotTrack,n=null===w("cookiesaccepted"),s=w("cookiesaccepted")??"false",a=b();i&&(e.options.types.tracking.isEnabled=!1,e.options.types.tracking.isToggable=!1),a.length>0&&(!i&&a.includes("tracking")&&(e.options.types.tracking.isEnabled=!0),a.includes("analytical")&&(e.options.types.analytical.isEnabled=!0));let o=T("div","cookie-options"),l=T("div","cookie-overlay","fixed","cover");l.appendChild(o);let c,d,r;t||(c=T("div","cookie-message","fixed","left","all-100"),d=T("div","cookie-message-container"),(r=T("div","cookie-message-container-cell")).innerHTML=e.message);let p=document.body;if(document.querySelectorAll(".cookiesettings").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),C()})}),function n(c){let d=document.createElement("h2");d.innerHTML=`<strong>${c.title}</strong> | ${c.description}`;let r=document.createElement("div");r.className="close",r.innerHTML='<div class="bar"></div><div class="bar"></div>',r.onclick=function(e){l.classList.remove("show"),o.classList.remove("show"),setTimeout(function(){l.style.zIndex="-1"},500),L(!0)};let p=document.createElement("header");p.appendChild(d),p.appendChild(r);let h=T("div","intro");h.innerHTML=`<p>${e.message}</p>`;let u=document.createElement("nav"),f=document.createElement("ul"),m=T("div","descriptions"),g=0;for(let v in c.types){let k=c.types[v],y=0===g?"active":"";g++;let C=document.createTextNode(k.title),b=document.createElement("li");b.className=y,b.appendChild(C),k.tab=b,I(k),f.appendChild(b);let $=document.createElement("div"),w=document.createTextNode(k.title),E=document.createTextNode(k.description);i&&"tracking"===v&&(E=document.createTextNode(k.disabled_message));let x=document.createElement("div"),N=document.createElement("p"),_=document.createElement("h3");_.appendChild(w),N.appendChild(E),x.classList.add("text"),x.appendChild(_),x.appendChild(N),"true"===s&&(k.isEnabled=a.includes(k.type));let S=T("div","switch");S.classList.add(k.isEnabled?"on":"off"),k.switch=S,!0===k.isToggable?q(k):(S.classList.remove("on","off"),S.classList.add("disabled")),"functional"!==k.type&&$.appendChild(S),$.appendChild(x),$.classList.add("description"),""!==y&&$.classList.add(y),k.body=$,m.appendChild($)}u.appendChild(f);let M=T("div","buttons");if(e.showDenyButton){let z=T("a","button","deny"),B=document.createTextNode(e.denyLabel);z.appendChild(B),z.onclick=function(e){l.classList.remove("show"),o.classList.remove("show");let t=document.querySelector("html");t.classList.remove("noscroll"),setTimeout(function(){l.style.zIndex="-1"},500),L(!1)},M.appendChild(z)}let D=T("a","button"),H=document.createTextNode(e.acceptLabel);function I(e){e.tab.onclick=function(){let t=e.type;for(let i in c.types)i!==t?(c.types[i].tab.classList.remove("active"),c.types[i].body.classList.remove("active")):(c.types[i].tab.classList.add("active"),c.types[i].body.classList.add("active"))}}function q(e){e.switch.onclick=function(){e.isEnabled?(e.switch.classList.remove("on"),e.switch.classList.add("off"),e.isEnabled=!1):(e.switch.classList.remove("off"),e.switch.classList.add("on"),e.isEnabled=!0)}}D.appendChild(H),D.onclick=function(e){l.classList.remove("show"),o.classList.remove("show");let t=document.querySelector("html");t.classList.remove("noscroll"),setTimeout(function(){l.style.zIndex="-1"},500),L(!0)},M.appendChild(D),o.appendChild(p),t&&o.appendChild(h),o.appendChild(u),o.appendChild(m),o.appendChild(M)}(e.options),n){if(t)C();else{let h=T("a","settings"),u=document.createTextNode(e.settingsLabel);h.appendChild(u),h.onclick=function(e){e.preventDefault(),C()};let f=T("a","button"),m=document.createTextNode(e.acceptLabel);f.appendChild(m),f.onclick=function(e){c.classList.add("closed"),L(!0)};let g=T("div","actions");if(g.appendChild(h),e.showDenyButton){let v=T("a","button","deny"),k=document.createTextNode(e.denyLabel);v.appendChild(k),v.onclick=function(e){c.classList.add("closed"),L(!1)},g.appendChild(v)}if(g.appendChild(f),e.showCloseButton){let y=T("div","close");y.innerHTML='<div class="bar"></div><div class="bar"></div>',y.onclick=function(t){c.classList.add("closed"),L(e.acceptOnClose)},g.appendChild(y)}d.appendChild(r),d.appendChild(g),c.appendChild(d),p.insertBefore(c,p.firstChild)}}function C(){l.style.zIndex="999999",setTimeout(function(){l.classList.add("show"),o.classList.add("show")},50)}function L(t){for(let i in console.log(t),a=["functional"],e.options.types)"functional"!==i&&e.options.types[i].isEnabled&&t&&a.push(i);let n=JSON.stringify(a);$("cookiesaccepted",t?"true":"false",120),$("cookiesettings",n,120);let o={analytics:!1,marketing:!1};a.includes("analytical")&&(o.analytics=!0),a.includes("tracking")&&(o.marketing=!0);let l={ad_storage:o.marketing?"granted":"denied",ad_user_data:o.marketing?"granted":"denied",ad_personalization:o.marketing?"granted":"denied",analytics_storage:o.analytics?"granted":"denied"};gtag("consent","update",l),localStorage.setItem("consentMode",JSON.stringify(l)),e.reloadAfterSave&&(window.location=location),s=w("cookiesaccepted"),a=b(),"true"===s&&(a.includes("analytical")||a.includes("tracking"))&&dataLayer.push({event:"gtmCookieTriggers"})}function b(){let e=["functional"],t=w("cookiesettings");return t&&(e=JSON.parse(t)),e}function $(e,t,i){let n="",s=e+"="+t;if(i){let a=new Date;a.setTime(a.getTime()+864e5*i),n="; Expires="+a.toUTCString()}let o;s+=n+"; path=/; SameSite=Lax; Domain="+(o=window.location.hostname,o.startsWith("wwww.")&&(o=o.substring(4,o.length)),"."+o)+"; ","https:"===window.location.protocol&&(s+="Secure; "),document.cookie=s}function w(e){let t=e+"=",i=decodeURIComponent(document.cookie),n=i.split(";").map(e=>e.trim()),s=null;
2return n.forEach(e=>{e.startsWith(t)&&(s=e.substring(t.length))}),s}function E(e){}function T(e,...t){let i=document.createElement(e);return t.forEach(e=>i.classList.add(e)),i}p.insertBefore(l,p.firstChild)};
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.