!function(){if(this.cookieChoices)return this.cookieChoices;const{document:e}=this,t="textContent"in e.body,n=(()=>{const n="displayCookieConsent",o="cookieChoiceInfo",i="cookieChoiceDismiss";function c(e,n){t?e.textContent=n:e.innerText=n}function s(t){const n=e.createElement("span");return c(n,t),n}function d(t){const n=e.createElement("a");return c(n,t),n.id=i,n.href="#",n.style.marginLeft="24px",n}function l(t,n){const o=e.createElement("a");return c(o,t),o.href=n,o.target="_blank",o.style.marginLeft="8px",o}function a(){return function(){const t=new Date;t.setFullYear(t.getFullYear()+1),e.cookie=`${n}=y; expires=${t.toGMTString()}`}(),p(),!1}function r(t,c,r,h,f,u){if(!e.cookie.match(new RegExp(`${n}=([^;]+)`))){p();const n=f?function(t,n,i,c){const a=e.createElement("div");a.id=o;const r=e.createElement("div");r.style.cssText="position:fixed;width:100%;height:100%;z-index:999;top:0;left:0;opacity:0.5;filter:alpha(opacity=50);background-color:#ccc;";const p=e.createElement("div");p.style.cssText="position:relative;left:-50%;margin-top:-25%;background-color:#fff;padding:20px;box-shadow:4px 4px 25px #888;";const h=e.createElement("div");h.style.cssText="z-index:1000;position:fixed;left:50%;top:50%";const f=d(n);return f.style.display="block",f.style.textAlign="right",f.style.marginTop="8px",p.appendChild(s(t)),i&&c&&p.appendChild(l(i,c)),p.appendChild(f),h.appendChild(p),a.appendChild(r),a.appendChild(h),a}(t,c,r,h):function(t,n,i,c,a){const r="position:fixed;width:100%;background-color:#eee;margin:0; left:0; "+(a?"bottom":"top")+":0;padding:4px;z-index:1000;text-align:center;",p=e.createElement("div");return p.id=o,p.style.cssText=r,p.appendChild(s(t)),i&&c&&p.appendChild(l(i,c)),p.appendChild(d(n)),p}(t,c,r,h,u),x=e.createDocumentFragment();x.appendChild(n),e.body.appendChild(x.cloneNode(!0)),e.getElementById(i).onclick=a}}function p(){const t=e.getElementById(o);null!==t&&t.parentNode.removeChild(t)}const h={showCookieConsentBar:function(e,t,n,o,i){r(e,t,n,o,!1,i)},showCookieConsentDialog:function(e,t,n,o,i){r(e,t,n,o,!0,!1)}};return h})();this.cookieChoices=n}();
