/*! * CookieConsent 3.1.0 * https://github.com/orestbida/cookieconsent * Author Orest Bida * Released under the MIT License */ var e,t;e=this;t=function(n){"use strict";function wr(n,f,e,l,a){const p=t.o,b=t.ne,w=r("label"),y=r("input"),k=r("span"),d=r("span"),g=r("span"),nt=r("span"),tt=r("span");if(nt.innerHTML=ot(1,3),tt.innerHTML=ot(0,3),y.type="checkbox",s(w,"section__toggle-wrapper"),s(y,"section__toggle"),s(nt,"toggle__icon-on"),s(tt,"toggle__icon-off"),s(k,"toggle__icon"),s(d,"toggle__icon-circle"),s(g,"toggle__label"),u(k,v,"true"),l?(s(w,"toggle-service"),u(y,ct,a),b.ae[a][f]=y):b.se[f]=y,l?(n=>{h(y,"change",()=>{const t=b.ae[n],i=b.se[n];p.Z[n]=[];for(let i in t){const r=t[i];r.checked&&p.Z[n].push(r.value)}i.checked=p.Z[n].length>0})})(a):(n=>{h(y,c,()=>{const t=b.ae[n],i=y.checked;p.Z[n]=[];for(let r in t)t[r].checked=i,i&&p.Z[n].push(r)})})(f),y.value=f,g.textContent=n.replace(/<.*>.*<\/.*>/gm,""),i(d,tt),i(d,nt),i(k,d),p.T)(e.readOnly||e.enabled)&&(y.checked=!0);else if(l){const n=p.Y[a];y.checked=e.readOnly||o(n,f)}else o(p.R,f)&&(y.checked=!0);return e.readOnly&&(y.disabled=!0),i(w,y),i(w,k),i(w,g),w}const di="opt-in",ft="opt-out",bt="show--consent",kt="show--preferences",dt="disable--interaction",ct="data-category",e="div",a="button",v="aria-hidden",et="btn-group",c="click",tt="data-role",gt="consentModal",ni="preferencesModal";class gi{constructor(){this.t={mode:di,revision:0,autoShow:!0,lazyHtmlGeneration:!0,autoClearCookies:!0,manageScriptTags:!0,hideFromBots:!0,cookie:{name:"cc_cookie",expiresAfterDays:182,domain:"",path:"/",secure:!0,sameSite:"Lax"}};this.o={i:{},l:"",_:{},u:{},p:{},m:[],v:!1,h:null,C:null,S:null,M:"",T:!0,D:!1,k:!1,A:!1,N:!1,H:[],V:!1,j:!0,I:[],L:!1,F:"",P:!1,O:[],R:[],B:[],$:[],G:!1,J:!1,U:!1,q:[],K:[],W:[],X:{},Y:{},Z:{},ee:{},te:{},oe:[]};this.ne={se:{},ae:{}};this.ce={};this.re={ie:"cc:onFirstConsent",le:"cc:onConsent",de:"cc:onChange",fe:"cc:onModalShow",_e:"cc:onModalHide",ue:"cc:onModalReady"}}}const t=new gi,nr=(n,t)=>n.indexOf(t),o=(n,t)=>-1!==nr(n,t),it=n=>Array.isArray(n),k=n=>"string"==typeof n,lt=n=>!!n&&"object"==typeof n&&!it(n),y=n=>"function"==typeof n,p=n=>Object.keys(n),ti=n=>Array.from(new Set(n)),at=()=>document.activeElement,rt=n=>n.preventDefault(),ii=(n,t)=>n.querySelectorAll(t),vt=n=>n.dispatchEvent(new Event("change")),r=n=>{const t=document.createElement(n);return n===a&&(t.type=n),t},u=(n,t,i)=>n.setAttribute(t,i),ri=(n,t,i)=>{n.removeAttribute(i?"data-"+t:t)},yt=(n,t,i)=>n.getAttribute(i?"data-"+t:t),i=(n,t)=>n.appendChild(t),s=(n,t)=>n.classList.add(t),l=(n,t)=>s(n,"cm__"+t),f=(n,t)=>s(n,"pm__"+t),g=(n,t)=>n.classList.remove(t),d=n=>{if("object"!=typeof n)return n;if(n instanceof Date)return new Date(n.getTime());let t=Array.isArray(n)?[]:{};for(let i in n){let r=n[i];t[i]=d(r)}return t},cu=()=>{const n={},{O:i,X:r,Y:u}=t.o;for(const t of i)n[t]=pt(u[t],p(r[t]));return n},tr=(n,t)=>dispatchEvent(new CustomEvent(n,{detail:t})),h=(n,i,r,u)=>{n.addEventListener(i,r),u&&t.o.m.push({pe:n,ge:i,me:r})},ir=()=>{const n=t.t.cookie.expiresAfterDays;return y(n)?n(t.o.F):n},pt=(n,t)=>{const i=n||[],r=t||[];return i.filter(n=>!o(r,n)).concat(r.filter(n=>!o(i,n)))},rr=n=>{t.o.R=ti(n),t.o.F=(()=>{let n="custom";const{R:r,O:u,B:f}=t.o,i=r.length;return i===u.length?n="all":i===f.length&&(n="necessary"),n})()},ur=(n,i,r,f)=>{const o="accept-",{show:l,showPreferences:a,hide:v,hidePreferences:y,acceptCategory:p}=i,w=n||document,e=n=>ii(w,`[data-cc="${n}"]`),s=(n,t)=>{rt(n),p(t),y(),v()},b=e("show-preferencesModal"),k=e("show-consentModal"),d=e(o+"all"),g=e(o+"necessary"),nt=e(o+"custom"),tt=t.t.lazyHtmlGeneration;for(const n of b)u(n,"aria-haspopup","dialog"),h(n,c,n=>{rt(n),a()}),tt&&(h(n,"mouseenter",n=>{rt(n),t.o.N||r(i,f)},!0),h(n,"focus",()=>{t.o.N||r(i,f)}));for(let n of k)u(n,"aria-haspopup","dialog"),h(n,c,n=>{rt(n),l(!0)},!0);for(let n of d)h(n,c,n=>{s(n,"all")},!0);for(let n of nt)h(n,c,n=>{s(n)},!0);for(let n of g)h(n,c,n=>{s(n,[])},!0)},w=(n,t)=>{n&&(t&&(n.tabIndex=-1),n.focus(),t&&n.removeAttribute("tabindex"))},fr=(n,i)=>{const r=u=>{u.target.removeEventListener("transitionend",r),"opacity"===u.propertyName&&"1"===getComputedStyle(n).opacity&&w((n=>1===n?t.ne.be:t.ne.ve)(i))};h(n,"transitionend",r)};let er;const or=n=>{clearTimeout(er),n?s(t.ne.ye,dt):er=setTimeout(()=>{g(t.ne.ye,dt)},500)},lu=["M 19.5 4.5 L 4.5 19.5 M 4.5 4.501 L 19.5 19.5","M 3.572 13.406 L 8.281 18.115 L 20.428 5.885","M 21.999 6.94 L 11.639 17.18 L 2.001 6.82 "],ot=(n=0,t=1.5)=>``,sr=n=>{const r=t.ne,i=t.o;(n=>{const t=n===r.he,u=i.i.disablePageInteraction?r.ye:t?r.Ce:r.ye;h(u,"keydown",r=>{if("Tab"===r.key&&(t?i.k&&!i.A:i.A)){const f=at(),u=t?i.q:i.K;0!==u.length&&(r.shiftKey?f!==u[0]&&n.contains(f)||(rt(r),w(u[1])):f!==u[1]&&n.contains(f)||(rt(r),w(u[0])))}},!0)})(n)},au=["[href]",a,"input","details","[tabindex]"].map(n=>n+':not([tabindex="-1"])').join(","),hr=n=>{const{o:i,ne:r}=t,u=(n,t)=>{const i=ii(n,au);t[0]=i[0];t[1]=i[i.length-1]};1===n&&i.D&&u(r.he,i.q);2===n&&i.N&&u(r.we,i.K)},b=(n,i,r)=>{const{de:e,le:o,ie:s,_e:h,ue:c,fe:l}=t.ce,f=t.re;if(i){const t={modalName:i};return n===f.fe?y(l)&&l(t):n===f._e?y(h)&&h(t):(t.modal=r,y(c)&&c(t)),tr(n,t)}const u={cookie:t.o.p};n===f.ie?y(s)&&s(d(u)):n===f.le?y(o)&&o(d(u)):(u.changedCategories=t.o.I,u.changedServices=t.o.ee,y(e)&&e(d(u)));tr(n,d(u))},st=(n,t)=>{try{return n()}catch(n){return!t&&console.warn("CookieConsent:",n),!1}},ui=n=>{const{Y:i,ee:e,O:h,X:c,oe:s,p:l,I:a}=t.o;for(const n of h){const t=e[n]||i[n]||[];for(const r of t){const t=c[n][r];if(t){const{onAccept:u,onReject:f}=t;!t.Se&&o(i[n],r)?(t.Se=!0,y(u)&&u()):t.Se&&!o(i[n],r)&&(t.Se=!1,y(f)&&f())}}}if(t.t.manageScriptTags){const v=s,p=n||l.categories||[],f=(n,t)=>{if(!(t>=n.length)){const c=s[t];if(c.xe)return f(n,t+1);const h=c.Me,v=c.Te,l=c.De,y=o(p,v),w=!!l&&o(i[v],l);if(!l&&!c.ke&&y||!l&&c.ke&&!y&&o(a,v)||l&&!c.ke&&w||l&&c.ke&&!w&&o(e[v]||[],l)){c.xe=!0;const e=yt(h,"type",!0);ri(h,"type",!!e);ri(h,ct);let o=yt(h,"src",!0);o&&ri(h,"src",!0);const i=r("script");i.textContent=h.innerHTML;for(const{nodeName:n}of h.attributes)u(i,n,h[n]||yt(h,n));e&&(i.type=e);o?i.src=o:o=h.src;const s=!!o&&(!e||["text/javascript","module"].includes(e));if(s&&(i.onload=i.onerror=()=>{f(n,++t)}),h.replaceWith(i),s)return}f(n,++t)}};f(v,0)}},wt="bottom",fi="left",cr="center",ei="right",oi="inline",lr="wide",ar="pm--",si=["middle","top",wt],vr=[fi,cr,ei],vu={box:{Ee:[lr,oi],Ae:si,Ne:vr,He:wt,Ve:ei},cloud:{Ee:[oi],Ae:si,Ne:vr,He:wt,Ve:cr},bar:{Ee:[oi],Ae:si.slice(1),Ne:[],He:wt,Ve:""}},yu={box:{Ee:[],Ae:[],Ne:[],He:"",Ve:""},bar:{Ee:[lr],Ae:[],Ne:[fi,ei],He:"",Ve:fi}},yr=n=>{const i=t.o.i.guiOptions,r=i&&i.consentModal,u=i&&i.preferencesModal;0===n&&pr(t.ne.he,vu,r,"cm--","box","cm");1===n&&pr(t.ne.we,yu,u,ar,"box","pm")},pr=(n,i,r,u,f,e)=>{n.className=e;const y=r&&r.layout,p=r&&r.position,it=r&&r.flipButtons,a=!r||!1!==r.equalWeightButtons,w=y&&y.split(" ")||[],b=w[0],k=w[1],d=b in i?b:f,c=i[d],rt=o(c.Ee,k)&&k,v=p&&p.split(" ")||[],nt=v[0],tt=u===ar?v[0]:v[1],ut=o(c.Ae,nt)?nt:c.He,ft=o(c.Ne,tt)?tt:c.Ve,l=t=>{t&&s(n,u+t)};l(d);l(rt);l(ut);l(ft);it&&l("flip");const h=e+"__btn--secondary";if("cm"===e){const{je:n,Ie:i}=t.ne;n&&(a?g(n,h):s(n,h));i&&(a?g(i,h):s(i,h))}else{const{Le:n}=t.ne;n&&(a?g(n,h):s(n,h))}},ut=(n,o)=>{var vt,nt,rt;const w=t.o,l=t.ne,{hide:yt,hidePreferences:it,acceptCategory:pt}=n,ut=n=>{pt(n),it(),yt()},y=w.u&&w.u.preferencesModal;if(y){const ct=y.title,at=y.closeIconLabel,ft=y.acceptAllBtn,st=y.acceptNecessaryBtn,ht=y.savePreferencesBtn,wt=y.sections||[],bt=ft||st||ht;if(l.Fe)l.Pe=r(e),f(l.Pe,"body");else{l.Fe=r(e);s(l.Fe,"pm-wrapper");const n=r("div");s(n,"pm-overlay");i(l.Fe,n);h(n,c,it);l.we=r(e);s(l.we,"pm");u(l.we,"role","dialog");u(l.we,v,!0);u(l.we,"aria-modal",!0);u(l.we,"aria-labelledby","pm__title");h(l.ye,"keydown",n=>{27===n.keyCode&&it()},!0);l.Oe=r(e);f(l.Oe,"header");l.Re=r("h2");f(l.Re,"title");l.Re.id="pm__title";l.Be=r(a);f(l.Be,"close-btn");u(l.Be,"aria-label",y.closeIconLabel||"");h(l.Be,c,it);l.$e=r("span");l.$e.innerHTML=ot();i(l.Be,l.$e);l.Ge=r(e);f(l.Ge,"body");l.Je=r(e);f(l.Je,"footer");vt=r(e);s(vt,"btns");nt=r(e);rt=r(e);f(nt,et);f(rt,et);i(l.Je,nt);i(l.Je,rt);i(l.Oe,l.Re);i(l.Oe,l.Be);l.ve=r(e);u(l.ve,"tabIndex",-1);i(l.we,l.ve);i(l.we,l.Oe);i(l.we,l.Ge);bt&&i(l.we,l.Je);i(l.Fe,l.we)}let d;ct&&(l.Re.innerHTML=ct,at&&u(l.Be,"aria-label",at));wt.forEach((n,t)=>{var b,nt,it,o,pt,ct;const at=n.title,rt=n.description,tt=n.linkedCategory,vt=tt&&w.P[tt],ut=n.cookieTable,yt=ut&&ut.body,wt=ut&&ut.caption,bt=yt&&yt.length>0,ft=!!vt,ht=ft&&w.X[tt],kt=lt(ht)&&p(ht)||[],et=ft&&(!!rt||!!bt||p(ht).length>0);b=r(e);(f(b,"section"),et||rt)&&(nt=r(e),f(nt,"section-desc-wrapper"));let st=kt.length;if(et&&st>0){const n=r(e);f(n,"section-services");for(const t of kt){const h=ht[t],c=h&&h.label||t,u=r(e),o=r(e),l=r(e),s=r(e);f(u,"service");f(s,"service-title");f(o,"service-header");f(l,"service-icon");const a=wr(c,t,vt,!0,tt);s.innerHTML=c;i(o,l);i(o,s);i(u,o);i(u,a);i(n,u)}i(nt,n)}if(at){if(it=r(e),o=r(ft?a:e),f(it,"section-title-wrapper"),f(o,"section-title"),o.innerHTML=at,i(it,o),ft){const t=r("span");t.innerHTML=ot(2,3.5);f(t,"section-arrow");i(it,t);b.className+="--toggle";const e=wr(at,tt,vt);let n=y.serviceCounterLabel;if(st>0&&k(n)){let t=r("span");f(t,"badge");f(t,"service-counter");u(t,v,!0);u(t,"data-servicecounter",st);n&&(n=n.split("|"),n=n.length>1&&st>1?n[1]:n[0],u(t,"data-counterlabel",n));t.innerHTML=st+(n?" "+n:"");i(o,t)}et&&(f(b,"section--expandable"),pt=tt+"-desc",u(o,"aria-expanded",!1),u(o,"aria-controls",pt));i(it,e)}else u(o,"role","heading"),u(o,"aria-level","3");i(b,it)}if(rt&&(ct=r("p"),f(ct,"section-desc"),ct.innerHTML=rt,i(nt,ct)),et&&(u(nt,v,"true"),nt.id=pt,((n,t,i)=>{h(o,c,()=>{t.classList.contains("is-expanded")?(g(t,"is-expanded"),u(i,"aria-expanded","false"),u(n,v,"true")):(s(t,"is-expanded"),u(i,"aria-expanded","true"),u(n,v,"false"))})})(nt,b,o),bt)){const n=r("table"),o=r("thead"),s=r("tbody");if(wt){const t=r("caption");f(t,"table-caption");t.innerHTML=wt;n.appendChild(t)}f(n,"section-table");f(o,"table-head");f(s,"table-body");const h=ut.headers,c=p(h),a=l.Ue.createDocumentFragment(),v=r("tr");for(const n of c){const o=h[n],e=r("th");e.id="cc__row-"+o+t;u(e,"scope","col");f(e,"table-th");e.innerHTML=o;i(a,e)}i(v,a);i(o,v);const y=l.Ue.createDocumentFragment();for(const n of yt){const o=r("tr");f(o,"table-tr");for(const s of c){const l=h[s],v=n[s],c=r("td"),a=r(e);f(c,"table-td");u(c,"data-column",l);u(c,"headers","cc__row-"+l+t);a.insertAdjacentHTML("beforeend",v);i(c,a);i(o,c)}i(y,o)}i(s,y);i(n,o);i(n,s);i(nt,n)}(et||rt)&&i(b,nt);const dt=l.Pe||l.Ge;ft?(d||(d=r(e),f(d,"section-toggles")),d.appendChild(b)):d=null;i(dt,d||b)});ft&&(l.ze||(l.ze=r(a),f(l.ze,"btn"),u(l.ze,tt,"all"),i(nt,l.ze),h(l.ze,c,()=>ut("all"))),l.ze.innerHTML=ft);st&&(l.Le||(l.Le=r(a),f(l.Le,"btn"),u(l.Le,tt,"necessary"),i(nt,l.Le),h(l.Le,c,()=>ut([]))),l.Le.innerHTML=st);ht&&(l.qe||(l.qe=r(a),f(l.qe,"btn"),f(l.qe,"btn--secondary"),u(l.qe,tt,"save"),i(rt,l.qe),h(l.qe,c,()=>ut())),l.qe.innerHTML=ht);l.Pe&&(l.we.replaceChild(l.Pe,l.Ge),l.Ge=l.Pe);yr(1);w.N||(w.N=!0,b(t.re.ue,ni,l.we),o(n),i(l.Ce,l.Fe),sr(l.we),setTimeout(()=>s(l.Fe,"cc--anim"),100));hr(2)}};const hi=()=>{const n=r("span");return t.ne.Ke||(t.ne.Ke=n),n},ci=(n,f)=>{const p=t.o,o=t.ne,{hide:ht,showPreferences:ct,acceptCategory:lt}=n,y=p.u&&p.u.consentModal;if(y){const w=y.acceptAllBtn,k=y.acceptNecessaryBtn,nt=y.showPreferencesBtn,rt=y.closeIconLabel,ft=y.footer,st=y.label,d=y.title,it=n=>{ht(),lt(n)};if(!o.Qe){o.Qe=r(e);o.he=r(e);o.We=r(e);o.Xe=r(e);o.Ye=r(e);s(o.Qe,"cm-wrapper");s(o.he,"cm");l(o.We,"body");l(o.Xe,"texts");l(o.Ye,"btns");u(o.he,"role","dialog");u(o.he,"aria-modal","true");u(o.he,v,"false");u(o.he,"aria-describedby","cm__desc");st?u(o.he,"aria-label",st):d&&u(o.he,"aria-labelledby","cm__title");const n="box",t=p.i.guiOptions,f=t&&t.consentModal,y=(f&&f.layout||n).split(" ")[0]===n;d&&rt&&y&&(o.Ie||(o.Ie=r(a),o.Ie.innerHTML=ot(),l(o.Ie,"btn"),l(o.Ie,"btn--close"),h(o.Ie,c,()=>{it([])}),i(o.We,o.Ie)),u(o.Ie,"aria-label",rt));i(o.We,o.Xe);(w||k||nt)&&i(o.We,o.Ye);o.be=r(e);u(o.be,"tabIndex",-1);i(o.he,o.be);i(o.he,o.We);i(o.Qe,o.he)}d&&(o.Ze||(o.Ze=r("h2"),o.Ze.className=o.Ze.id="cm__title",i(o.Xe,o.Ze)),o.Ze.innerHTML=d);let g=y.description;if(g&&(p.V&&(g=g.replace("{{revisionMessage}}",p.j?"":y.revisionMessage||"")),o.et||(o.et=r("p"),o.et.className=o.et.id="cm__desc",i(o.Xe,o.et)),o.et.innerHTML=g),w&&(o.tt||(o.tt=r(a),i(o.tt,hi()),l(o.tt,"btn"),u(o.tt,tt,"all"),h(o.tt,c,()=>{it("all")})),o.tt.firstElementChild.innerHTML=w),k&&(o.je||(o.je=r(a),i(o.je,hi()),l(o.je,"btn"),u(o.je,tt,"necessary"),h(o.je,c,()=>{it([])})),o.je.firstElementChild.innerHTML=k),nt&&(o.ot||(o.ot=r(a),i(o.ot,hi()),l(o.ot,"btn"),l(o.ot,"btn--secondary"),u(o.ot,tt,"show"),h(o.ot,"mouseenter",()=>{p.N||ut(n,f)}),h(o.ot,c,ct)),o.ot.firstElementChild.innerHTML=nt),o.nt||(o.nt=r(e),l(o.nt,et),w&&i(o.nt,o.tt),k&&i(o.nt,o.je),(w||k)&&i(o.We,o.nt),i(o.Ye,o.nt)),o.ot&&!o.st&&(o.st=r(e),o.je&&o.tt?(l(o.st,et),i(o.st,o.ot),i(o.Ye,o.st)):(i(o.nt,o.ot),l(o.nt,et+"--uneven"))),ft){if(!o.ct){let n=r(e),t=r(e);o.ct=r(e);l(n,"footer");l(t,"links");l(o.ct,"link-group");i(t,o.ct);i(n,t);i(o.he,n)}o.ct.innerHTML=ft}yr(0);p.D||(p.D=!0,b(t.re.ue,gt,o.he),f(n),i(o.Ce,o.Qe),sr(o.he),setTimeout(()=>s(o.Qe,"cc--anim"),100));hr(1);ur(o.We,n,ut,f)}},li=n=>{if(!k(n))return null;if(n in t.o._)return n;let i=n.slice(0,2);return i in t.o._?i:null},ai=()=>t.o.l||t.o.i.language.default,vi=n=>{n&&(t.o.l=n)},br=async n=>{const u=t.o;let r=li(n)?n:ai(),i=u._[r];if(k(i)?i=await(async n=>{try{const t=await fetch(n);return await t.json()}catch(n){return console.error(n),!1}})(i):y(i)&&(i=await i()),!i)throw`Could not load translation for the '${r}' language`;return u.u=i,vi(r),!0},kr=()=>{let n=t.o.i.language.rtl,i=t.ne.Ce;n&&i&&(it(n)||(n=[n]),o(n,t.o.l)?s(i,"cc--rtl"):g(i,"cc--rtl"))},nt=()=>{const n=t.ne;if(!n.Ce){n.Ce=r(e);n.Ce.id="cc-main";n.Ce.setAttribute("data-nosnippet","");kr();let i=t.o.i.root;i&&k(i)&&(i=document.querySelector(i));(i||n.Ue.body).appendChild(n.Ce)}},dr=n=>st(()=>localStorage.removeItem(n)),gr=(n,t)=>{if(t instanceof RegExp)return n.filter(n=>t.test(n));{const i=nr(n,t);return i>-1?[n[i]]:[]}},nu=n=>{const{hostname:s,protocol:h}=location,{name:u,path:c,domain:l,sameSite:a,useLocalStorage:v,secure:y}=t.t.cookie,f=n?(()=>{const n=t.o.S,i=n?new Date-n:0;return 864e5*ir()-i})():864e5*ir(),i=new Date;i.setTime(i.getTime()+f);t.o.p.expirationTime=i.getTime();const e=JSON.stringify(t.o.p);let r=u+"="+encodeURIComponent(e)+(0!==f?"; expires="+i.toUTCString():"")+"; Path="+c+"; SameSite="+a;o(s,".")&&(r+="; Domain="+l);y&&"https:"===h&&(r+="; Secure");v?((n,t)=>{st(()=>localStorage.setItem(n,t))})(u,e):document.cookie=r;t.o.p},yi=(n,i,r)=>{if(0!==n.length){const u=r||t.t.cookie.domain,o=i||t.t.cookie.path,e="www."===u.slice(0,4),s=e&&u.substring(4),f=(n,t)=>{t&&"."!==t.slice(0,1)&&(t="."+t),document.cookie=n+"=; path="+o+(t?"; domain="+t:"")+"; expires=Thu, 01 Jan 1970 00:00:01 GMT;"};for(const t of n)f(t,r),r||f(t,u),e&&f(t,s)}},tu=n=>{const i=n||t.t.cookie.name,r=t.t.cookie.useLocalStorage;return((n,t)=>{let i;return i=st(()=>JSON.parse(t?n:decodeURIComponent(n)),!0)||{},i})(r?(u=i,st(()=>localStorage.getItem(u))||""):pi(i,!0),r);var u},pi=(n,t)=>{const i=document.cookie.match("(^|;)\\s*"+n+"\\s*=\\s*([^;]+)");return i?t?i.pop():n:""},iu=n=>{const i=document.cookie.split(/;\s*/),t=[];for(const r of i){let i=r.split("=")[0];n?st(()=>{n.test(i)&&t.push(i)}):t.push(i)}return t},wi=(n,i=[])=>{((n,i)=>{const{O:u,R:f,B:e,N:s,Z:h,$:c,X:l}=t.o;let r=[];if(n){it(n)?r.push(...n):k(n)&&(r="all"===n?u:[n]);for(const n of u)h[n]=o(r,n)?p(l[n]):[]}else r=[...f,...c],s&&(r=(()=>{const n=t.ne.se;if(!n)return[];let i=[];for(let t in n)n[t].checked&&i.push(t);return i})());r=r.filter(n=>!o(u,n)||!o(i,n));r.push(...e);rr(r)})(n,i),(()=>{const i=t.o,{Z:r,B:u,Y:n,X:f,O:e}=i,s=e;i.te=d(n);for(const t of s){const s=f[t],e=p(s),h=r[t]&&r[t].length>0,c=o(u,t);if(0!==e.length){if(n[t]=[],c)n[t].push(...e);else if(h){const i=r[t];n[t].push(...i)}else n[t]=i.Z[t];n[t]=ti(n[t])}}})(),(()=>{const n=t.o;n.I=t.t.mode===ft&&n.T?pt(n.$,n.R):pt(n.R,n.p.categories);let e=n.I.length>0,u=!1;for(const t of n.O)n.ee[t]=pt(n.Y[t],n.te[t]),n.ee[t].length>0&&(u=!0);const f=t.ne.se;for(const t in f)f[t].checked=o(n.R,t);for(const i of n.O){const r=t.ne.ae[i],u=n.Y[i];for(const n in r)r[n].checked=o(u,n)}n.C||(n.C=new Date);n.M||(n.M=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,n=>(n^crypto.getRandomValues(new Uint8Array(1))[0]&15>>n/4).toString(16)));n.p={categories:d(n.R),revision:t.t.revision,data:n.h,consentTimestamp:n.C.toISOString(),consentId:n.M,services:d(n.Y),languageCode:t.o.l};n.S&&(n.p.lastConsentTimestamp=n.S.toISOString());let i=!1;const r=e||u;(n.T||r)&&(n.T&&(n.T=!1,i=!0),n.S=n.S?new Date:n.C,n.p.lastConsentTimestamp=n.S.toISOString(),nu(),t.t.autoClearCookies&&(i||r)&&(n=>{const i=t.o,r=iu(),u=(n=>{const i=t.o;return(n?i.O:i.I).filter(n=>{const t=i.P[n];return!!t&&!t.readOnly&&!!t.autoClear})})(n);for(const n in i.ee)for(const t of i.ee[n]){const u=i.X[n][t].cookies;if(!o(i.Y[n],t)&&u)for(const n of u){const t=gr(r,n.name);yi(t,n.path,n.domain)}}for(const t of u){const u=i.P[t].autoClear,s=u&&u.cookies||[],h=o(i.I,t),f=!o(i.R,t),e=h&&f;if(n?f:e){u.reloadPage&&e&&(i.L=!0);for(const n of s){const t=gr(r,n.name);yi(t,n.path,n.domain)}}}})(i),ui());i&&(b(t.re.ie),b(t.re.le),t.t.mode===di)||(r&&b(t.re.de),n.L&&(n.L=!1,location.reload()))})()},ru=n=>{const i=t.o.T?[]:t.o.R;return o(i,n)},uu=(n,i)=>{const r=t.o.T?[]:t.o.Y[i]||[];return o(r,n)},fu=(n,t,i)=>{let r=[];const u=n=>{if(k(n)){let t=pi(n);""!==t&&r.push(t)}else r.push(...iu(n))};if(it(n))for(let t of n)u(t);else u(n);yi(r,t,i)},bi=n=>{const{ne:r,o:i}=t;if(!i.k){if(!i.D){if(!n)return;ci(ht,nt)}i.k=!0;i.J=at();i.v&&or(!0);fr(r.he,1);s(r.ye,bt);u(r.he,v,"false");setTimeout(()=>{w(t.ne.be)},100);b(t.re.fe,gt)}},eu=()=>{const{ne:i,o:n,re:r}=t;n.k&&(n.k=!1,n.v&&or(),w(i.Ke,!0),g(i.ye,bt),u(i.he,v,"true"),w(n.J),n.J=null,b(r._e,gt))},ou=()=>{const n=t.o;n.A||(n.N||ut(ht,nt),n.A=!0,n.k?n.U=at():n.J=at(),fr(t.ne.we,2),s(t.ne.ye,kt),u(t.ne.we,v,"false"),setTimeout(()=>{w(t.ne.ve)},100),b(t.re.fe,ni))},su=()=>{const n=t.o;n.A&&(n.A=!1,(()=>{const n=ki(),f=t.o.P,i=t.ne.se,r=t.ne.ae,u=n=>o(t.o.$,n);for(const t in i){const e=!!f[t].readOnly;i[t].checked=e||(n?ru(t):u(t));for(const i in r[t])r[t][i].checked=e||(n?uu(i,t):u(t))}})(),w(t.ne.$e,!0),g(t.ne.ye,kt),u(t.ne.we,v,"true"),n.k?(w(n.U),n.U=null):(w(n.J),n.J=null),b(t.re._e,ni))};var ht={show:bi,hide:eu,showPreferences:ou,hidePreferences:su,acceptCategory:wi};const hu=(n,t)=>{const i=tu(t);return n?i[n]:i},ki=()=>!t.o.T;n.acceptCategory=wi;n.acceptService=(n,i)=>{const{O:r,X:u}=t.o;if(!(n&&i&&k(i)&&o(r,i)&&0!==p(u[i]).length))return!1;((n,i)=>{const f=t.o,{X:l,Z:u,N:e}=f,r=t.ne.ae[i]||{},h=t.ne.se[i]||{},s=p(l[i]);if(u[i]=[],k(n)){if("all"===n){if(u[i].push(...s),e)for(let n in r)r[n].checked=!0,vt(r[n])}else if(o(s,n)&&u[i].push(n),e)for(let t in r)r[t].checked=n===t,vt(r[t])}else if(it(n))for(let t of s){const f=o(n,t);f&&u[i].push(t);e&&(r[t].checked=f,vt(r[t]))}const c=0===u[i].length;f.R=c?f.R.filter(n=>n!==i):ti([...f.R,i]);e&&(h.checked=!c,vt(h))})(n,i);wi()};n.acceptedCategory=ru;n.acceptedService=uu;n.eraseCookies=fu;n.getConfig=n=>{const i=t.t,r=t.o.i;return n?i[n]||r[n]:{...i,...r,cookie:{...i.cookie}}};n.getCookie=hu;n.getUserPreferences=()=>{const{F:n,Y:i}=t.o,{accepted:r,rejected:u}=(()=>{const{T:i,R:n,O:r}=t.o;return{accepted:n,rejected:i?[]:r.filter(t=>!o(n,t))}})();return d({acceptType:n,acceptedCategories:r,rejectedCategories:u,acceptedServices:i,rejectedServices:cu()})};n.hide=eu;n.hidePreferences=su;n.loadScript=(n,t)=>{let f=document.querySelector('script[src="'+n+'"]');return new Promise(e=>{if(f)return e(!0);if(f=r("script"),lt(t))for(const n in t)u(f,n,t[n]);f.onload=()=>e(!0);f.onerror=()=>{f.remove(),e(!1)};f.src=n;i(document.head,f)})};n.reset=n=>{const{Ce:i,ye:r}=t.ne,{name:u,path:f,domain:e,useLocalStorage:o}=t.t.cookie;n&&(o?dr(u):fu(u,f,e));for(const{pe:n,ge:i,me:r}of t.o.m)n.removeEventListener(i,r);i&&i.remove();r&&r.classList.remove(dt,kt,bt);const s=new gi;for(const n in t)t[n]=s[n];window._ccRun=!1};n.run=async n=>{const{o:r,t:u,re:e}=t,f=window;if(!f._ccRun){if(f._ccRun=!0,(n=>{const{ne:s,t:g,o:nt}=t,i=g,r=nt,{cookie:h}=i,u=t.ce,c=n.cookie,l=n.categories,a=p(l)||[],f=navigator,v=document;s.Ue=v;s.ye=v.documentElement;h.domain=location.hostname;r.i=n;r.P=l;r.O=a;r._=n.language.translations;r.v=!!n.disablePageInteraction;u.ie=n.onFirstConsent;u.le=n.onConsent;u.de=n.onChange;u._e=n.onModalHide;u.fe=n.onModalShow;u.ue=n.onModalReady;const{mode:y,autoShow:w,lazyHtmlGeneration:b,autoClearCookies:k,revision:e,manageScriptTags:d,hideFromBots:tt}=n;y===ft&&(i.mode=y);"boolean"==typeof k&&(i.autoClearCookies=k);"boolean"==typeof d&&(i.manageScriptTags=d);"number"==typeof e&&e>=0&&(i.revision=e,r.V=!0);"boolean"==typeof w&&(i.autoShow=w);"boolean"==typeof b&&(i.lazyHtmlGeneration=b);!1===tt&&(i.hideFromBots=!1);!0===i.hideFromBots&&f&&(r.G=f.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(f.userAgent)||f.webdriver);lt(c)&&(i.cookie={...h,...c});i.autoClearCookies;r.V;i.manageScriptTags;(n=>{const{P:u,X:i,Y:r,Z:f,B:e}=t.o;for(let o of n){const s=u[o],n=s.services||{},h=lt(n)&&p(n)||[];i[o]={};r[o]=[];f[o]=[];s.readOnly&&(e.push(o),r[o]=h);t.ne.ae[o]={};for(let t of h){const r=n[t];r.Se=!1;i[o][t]=r}}})(a);(()=>{if(t.t.manageScriptTags){const n=t.o,i=ii(document,"script["+ct+"]");for(const t of i){let i=yt(t,ct),r=t.dataset.service||"",u=!1;if(i&&"!"===i.charAt(0)&&(i=i.slice(1),u=!0),"!"===r.charAt(0)&&(r=r.slice(1),u=!0),o(n.O,i)&&(n.oe.push({Me:t,xe:!1,ke:u,Te:i,De:r}),r)){const t=n.X[i];t[r]||(t[r]={Se:!1})}}}})();vi((()=>{const n=t.o.i.language.autoDetect;if(n){const i={browser:navigator.language,document:document.documentElement.lang},t=li(i[n]);if(t)return t}return ai()})())})(n),r.G)return;(()=>{const n=t.o,i=t.t,r=tu(),{categories:f,services:c,consentId:u,consentTimestamp:e,lastConsentTimestamp:o,data:s,revision:l}=r,a=it(f);n.p=r;n.M=u;const h=!!u&&k(u);n.C=e;n.C&&(n.C=new Date(e));n.S=o;n.S&&(n.S=new Date(o));n.h=void 0!==s?s:null;n.V&&h&&l!==i.revision&&(n.j=!1);n.T=!(h&&n.j&&n.C&&n.S&&a);i.cookie.useLocalStorage&&!n.T&&(n.T=(new Date).getTime()>(r.expirationTime||0),n.T&&dr(i.cookie.name));n.T;(()=>{const n=t.o;for(const t of n.O){const i=n.P[t];if(i.readOnly||i.enabled){n.$.push(t);const i=n.X[t]||{};for(let r in i)n.Z[t].push(r),n.i.mode===ft&&n.Y[t].push(r)}}})();n.T?i.mode===ft&&(n.R=[...n.$]):(n.Y={...n.Y,...c},n.Z={...n.Y},rr([...n.B,...f]))})();const s=ki();if(!await br())return!1;if(ur(null,i=ht,ut,nt),t.o.T&&ci(i,nt),t.t.lazyHtmlGeneration||ut(i,nt),u.autoShow&&!s&&bi(!0),s)return ui(),b(e.le);u.mode===ft&&ui(r.$)}var i};n.setCookieData=n=>{let i,r=n.value,e=n.mode,u=!1;const f=t.o;if("update"===e){f.h=i=hu("data");const n=typeof i==typeof r;if(n&&"object"==typeof i){i||(i={});for(let n in r)i[n]!==r[n]&&(i[n]=r[n],u=!0)}else!n&&i||i===r||(i=r,u=!0)}else i=r,u=!0;return u&&(f.h=i,f.p.data=i,nu(!0)),u};n.setLanguage=async(n,i)=>{if(!li(n))return!1;const r=t.o;return!(n===ai()&&!0!==i||!await br(n)||(vi(n),r.D&&ci(ht,nt),r.N&&ut(ht,nt),kr(),0))};n.show=bi;n.showPreferences=ou;n.validConsent=ki;n.validCookie=n=>""!==pi(n,!0)};"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).CookieConsent={});