1(()=>{let n=Math.floor(Date.now()/1e3);function c(){return parseInt(mhCookie.maxExpiry)||31536e3}let i=null,r=null,s=null,a=null;function h(){localStorage.setItem(mhCookie.consentKey,JSON.stringify(mhCookie.userConsent));var e=new Date(1e3*mhCookie.userConsent.expiry).toUTCString();document.cookie=mhCookie.consentCookie+"="+btoa(JSON.stringify(mhCookie.userConsent))+"; expires="+e+"; path=/",document.dispatchEvent(new Event("mhcookie/store_consent"))}function t(e){if(navigator.serviceWorker&&navigator.serviceWorker.controller){var o=!1,t=function(){o||(o=!0,e&&e())},n=(setTimeout(t,500),new MessageChannel);n.port1.onmessage=t;try{navigator.serviceWorker.controller.postMessage({type:"SEND_DATA",cookieConsent:mhcookie_worker_data()},[n.port2])}catch(e){console.log(e),t()}}else e&&e()}function u(e){if(e=parseInt(e||mhCookie.expiry)||c(),mhCookie.userConsent.expiry=Math.floor(Date.now()/1e3)+Math.min(e,c()),mhCookie.userConsent.timestamp=n,h(),mhCookie.loggingEnabled&&(e=JSON.stringify({device_id:m(),consent:btoa(JSON.stringify(mhCookie.userConsent))}),navigator.sendBeacon(mhCookie.logEndpoint,e),g()),mhCookie.reload)t(function(){document.location.reload()});else{for(var o in t(),document.dispatchEvent(new Event("mhcookie/gcmv2")),document.dispatchEvent(new Event("mhcookie/save_consent")),mhCookie.preventedCookies)mhCookie.preventedCookies.hasOwnProperty(o)&&(document.cookie=mhCookie.preventedCookies[o]);mhCookie.blockedCookieHeaders&&fetch(document.location.href,{method:"HEAD",credentials:"include"})}}function m(){var e=localStorage.getItem(mhCookie.deviceKey)||null;return e||(e="xxxxxxxx-xxxxxxxx-xxxxxxxx".replace(/x/g,function(){return(16*Math.random()|0).toString(16)}),localStorage.setItem(mhCookie.deviceKey,e)),e}function l(){document.querySelectorAll(".mhcookie-box .mhcookie-checkbox:not([disabled])").forEach(e=>{e.checked=!1}),mhCookie.userConsent.groups.includes("all")?document.querySelectorAll(".mhcookie-box .mhcookie-checkbox").forEach(e=>{e.checked=!0}):(mhCookie.userConsent.groups.forEach(e=>{e=document.getElementById("mhcookie-group--"+e);e&&(e.checked=!0,e.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0})))}),mhCookie.userConsent.services.cookie.concat(mhCookie.userConsent.services.domain).concat(mhCookie.userConsent.services.resource).forEach(e=>{e=document.querySelector('.mhcookie-group--list-item [value="'+e+'"]');e&&(e.checked=!0)})),document.querySelector(".mhcookie-dialog-wrapper").classList.add("mhcookie-show"),setTimeout(function(){document.querySelector(".mhcookie-box").focus()},100),o(),mhCookie.showToggle&&(document.querySelector(".mhcookie-preferences-toggle").classList.remove("mhcookie-show"),document.dispatchEvent(new Event("mhcookie/hide_toggle")));{var e=".mhcookie-dialog-wrapper",n=".mhcookie-box";let o=document.querySelector(e),t=document.querySelector(n);o&&t&&(i=document.activeElement,s=o,(a=t).hasAttribute("tabindex")||t.setAttribute("tabindex","-1"),r=function(e){o.classList.contains("mhcookie-show")&&!t.contains(e.target)&&t.focu
1s()},document.addEventListener("focusin",r,!0),setTimeout(()=>{try{t.focus()}catch(e){}},0))}document.dispatchEvent(new Event("mhcookie/show_dialog"))}function d(){document.querySelector(".mhcookie-dialog-wrapper").classList.remove("mhcookie-show"),o(),k(),e(),document.querySelector(".mhcookie-functional-blocked").classList.remove("mhcookie-show"),document.dispatchEvent(new Event("mhcookie/hide_blocked_banner"));{r&&document.removeEventListener("focusin",r,!0),r=null,s=null,a=null;let e=i;i=null,e&&"function"==typeof e.focus&&setTimeout(()=>{try{e.focus()}catch(e){}},0)}document.dispatchEvent(new Event("mhcookie/hide_dialog"))}function e(){mhCookie.showToggle&&(document.querySelector(".mhcookie-preferences-toggle").classList.add("mhcookie-show"),document.dispatchEvent(new Event("mhcookie/show_toggle")))}function k(){var e=document.querySelector(".mhcookie-banner");e&&(e.classList.remove("mhcookie-show"),document.dispatchEvent(new Event("mhcookie/hide_banner")))}function o(){var o=document.querySelector(".mhcookie-dialog-wrapper.mhcookie-show")?"true":"false";document.querySelectorAll(".mhcookie-preferences-toggle, .mhcookie-show-dialog").forEach(e=>{e.setAttribute("aria-expanded",o)})}function g(){document.querySelectorAll(".mhcookie-consent-history").forEach(function(e){e.classList.remove("mhcookie-hidden")}),document.querySelectorAll(".mhcookie-deviceID").forEach(function(e){e.innerHTML=m()}),document.querySelectorAll(".mhcookie-consent-date").forEach(function(e){e.innerHTML=new Date(1e3*mhCookie.userConsent.timestamp).toLocaleString()})}function p(e){mhCookie.userConsent.services.domain.includes(e)||mhCookie.userConsent.services.domain.push(e),t(),u(),mhCookie.reload||document.querySelectorAll('[data-mhcookie-host="'+e+'"]').forEach(e=>{v(e)}),document.dispatchEvent(new CustomEvent("mhcookie/allow_host",{detail:{host:e}}))}function C(e){"all"==e?(mhCookie.userConsent.groups=["all"],u(c())):mhCookie.userConsent.groups.includes(e)||(mhCookie.userConsent.groups.push(e),u());for(cb of document.querySelectorAll(".mhcookie-group-trigger"))cb.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}));t(),f(),document.dispatchEvent(new CustomEvent("mhcookie/allow_group",{detail:{group:e}}))}function v(n){let c=n.cloneNode(!0);["src","href","data","poster","srcset"].forEach(e=>{var o,t="data-mhcookie-"+e;c.hasAttribute(t)&&(o=c.getAttribute(t),c.setAttribute(e,o),c.removeAttribute(t),c.removeAttribute("data-mhcookie-host")),n.replaceWith(c)})}function f(){t(),document.querySelectorAll("[data-mhcookie-host]").forEach(e=>{v(e)})}document.addEventListener("click",function(o){var e,t;o.target.classList.contains("mhcookie-group-show-details")?(o.preventDefault(),(e=o.target.nextElementSibling).style.maxHeight?(e.style.maxHeight=null,e.querySelectorAll(".mhcookie-pseudo-checkbox").forEach(e=>{e.removeAttribute("tabindex")})):(e.style.maxHeight=e.scrollHeight+"px",e.querySelectorAll(".mhcookie-pseudo-checkbox").forEach(e=>{e.setAttribute("tabindex","0")}))):o.target.closest('.mhcookie-revoke, a[href="#mhcookie-revoke"]')?(o.preventDefault(),mhCookie.userConsent={groups:["essential"],services:{cookie:[],domain:[],resource:[]},iab_vendors:[],expiry:0},u(),document.body.dispatchEvent(new Event("mhcookie/revoke_consent"))):o.target.closest('.mhcookie-accept-all, a[href="#mhcookie-accept-all"]')?(o.preventDefault(),mhCookie.userConsent={groups:["all"],services:{cookie:[],domain:[],resource:[]},iab_vendors:["all"],expiry:0},u(c()),f(),d()):o.target.closest('.mhcookie-accept-required, a[href="#mhcookie-accept-required"]')?(o.preventDefault(),mhCookie.userConsent={groups:["essential","functional"],services:{cookie:[],domain:[],resource:[]},iab_vendors:[],expiry:0},u(),d()):o.target.closest('.mhcookie-allow-required, a[href="#mhcookie-allow-required"]')?(o.preventDefault(),C("functional"),d()):o.target.closest(".mhcookie-close")||o.target.matches(".mhcookie-dialog-wrapper")?(o.preventDefault(),mhCookie.userConsent.expiry<n&&(mhCookie.userConsent={groups:["essential"],services:{cookie:[],domain:[],resource:[]},iab_vendors:[],expiry:0},u()),d()):o.target.closest(".mhcookie-save")?(o.preventDefault(),mhCookie.userConsent.groups=[],document.querySelectorAll(".mhcookie-group-wrapper").forEach(e
1=>{var o=e.querySelector(".mhcookie-group-trigger");o?o.checked?mhCookie.userConsent.groups.includes(e.dataset.group)||(mhCookie.userConsent.groups.push(e.dataset.group),e.querySelectorAll(".mhcookie-group--list-item .mhcookie-checkbox").forEach(e=>{var o=e.dataset.type,e=e.getAttribute("value");mhCookie.userConsent.services[o]&&-1<(e=mhCookie.userConsent.services[o].indexOf(e))&&mhCookie.userConsent.services[o].splice(e,1)})):(-1<(o=mhCookie.userConsent.groups.indexOf(e.dataset.group))&&mhCookie.userConsent.groups.splice(o,1),e.querySelectorAll(".mhcookie-group--list-item .mhcookie-checkbox").forEach(e=>{var o=e.dataset.type,t=e.getAttribute("value");e.checked&&mhCookie.userConsent.services[o]&&!mhCookie.userConsent.services[o].includes(t)?mhCookie.userConsent.services[o].push(t):mhCookie.userConsent.services[o]&&-1<(e=mhCookie.userConsent.services[o].indexOf(t))&&mhCookie.userConsent.services[o].splice(e,1)})):mhCookie.userConsent.groups.includes(e.dataset.group)||mhCookie.userConsent.groups.push(e.dataset.group)}),(e=document.querySelectorAll(".mhcookie-group-wrapper .mhcookie-group-trigger")).length&&Array.from(e).every(e=>e.checked)&&(mhCookie.userConsent.groups=["all"]),u(),f(),d()):o.target.closest(".mhcookie-aknowledge")?(mhCookie.userConsent.expiry=Math.floor(Date.now()/1e3)+Math.min(parseInt(mhCookie.expiry)||c(),c()),h(),document.dispatchEvent(new Event("mhcookie/aknowledge")),k()):o.target.closest(".mhcookie-preferences-toggle")?l():o.target.closest('.mhcookie-show-dialog, a[href="#mhcookie-show-dialog"]')?(k(),l()):o.target.matches("img[data-mhcookie-host]")&&(o.preventDefault(),(t=o.target.getBoundingClientRect()).width<200||t.height<100?fetch(o.target.src).then(e=>e.text()).then(e=>{e=(new DOMParser).parseFromString(e,"image/svg+xml").querySelector("foreignObject"),e=e.querySelector("span:first-child").textContent+". "+e.querySelector("span:last-child").textContent;confirm(e)&&p(o.target.dataset.mhcookieHost)}):p(o.target.dataset.mhcookieHost),o.stopPropagation())}),document.addEventListener("keyup",function(e){"Escape"===e.key&&document.querySelector(".mhcookie-close")&&document.querySelector(".mhcookie-dialog-wrapper.mhcookie-show")&&(mhCookie.userConsent.expiry<n&&(mhCookie.userConsent={groups:["essential"],services:{cookie:[],domain:[],resource:[]},iab_vendors:[],expiry:0},u()),d()),"Enter"===e.key&&(e.target.matches(".mhcookie-preferences-toggle")?l():e.target.matches(".mhcookie-pseudo-checkbox, .mhcookie-btn")&&e.target.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})))}),document.addEventListener("change",function(o){var e,t;o.target.classList.contains("mhcookie-group-trigger")?(t=(e=o.target.closest(".mhcookie-group-wrapper")).getAttribute("data-group"),e.querySelectorAll(`.mhcookie-group-details[data-group="${t}"] input[type="checkbox"]`).forEach(function(e){e.checked=o.target.checked})):o.target.matches(".mhcookie-group--list-item .mhcookie-checkbox")&&!o.target.checked&&(o.target.closest(".mhcookie-group-wrapper").querySelector(".mhcookie-group-trigger").checked=!1)}),window.addEventListener("message",e=>{"mhcookie/allowHost"===e.data.type&&e.data.host&&!mhCookie.userConsent.services.domain.includes(e.data.host)?p(e.data.host):"mhcookie/allowMedia"!==e.data.type||mhCookie.userConsent.groups.includes("media")?"mhcookie/allowAll"!==e.data.type||mhCookie.userConsent.groups.includes("all")?"mhcookie/forceReload"===e.data.type&&(mhCookie.reload=!0):C("all"):C("media")}),0<mhCookie.userConsent.expiry&&document.dispatchEvent(new Event("mhcookie/gcmv2")),document.addEventListener("mhcookie/init",function(){mhCookie.restoreConsent&&u(),mhCookie.maybeDisabled||(mhCookie.optin?mhCookie.functionalBlocked?(document.querySelector(".mhcookie-functional-blocked").classList.add("mhcookie-show"),setTimeout(function(){document.querySelector(".mhcookie-functional-blocked").focus()},100),document.dispatchEvent(new Event("mhcookie/show_blocked_banner"))):mhCookie.userConsent.expiry<n?"notice-only"==mhCookie.mode||"banner"==mhCookie.displayMode?(document.querySelector(".mhcookie-banner").classList.add("mhcookie-show"),document.dispatchEvent(new Event("mhcookie/show_banner"))):l():e():e(),mhCookie.loggingEnabled&&mhCookie.userConsent.timestamp&&g())}),document.addEventListener("mhcookie/do/show_dialog",l),document.addEventListener("mhcookie/do/hide_dialog",d),document.addEventListener("mhcookie/do/store_consent",h)})();
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.