Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vanilla-cookieconsent

Package Overview
Dependencies
Maintainers
2
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vanilla-cookieconsent - npm Package Compare versions

Comparing version 3.0.0-rc.13 to 3.0.0-rc.14

4

dist/cookieconsent.esm.js
/*!
* CookieConsent 3.0.0-rc.13
* CookieConsent 3.0.0-rc.14
* https://github.com/orestbida/cookieconsent

@@ -7,2 +7,2 @@ * Author Orest Bida

*/
const e='button';class t{constructor(){this.t={mode:'opt-in',revision:0,autoShow:!0,lazyHtmlGeneration:!0,autoClearCookies:!0,manageScriptTags:!0,hideFromBots:!0,cookie:{name:'cc_cookie',expiresAfterDays:182,domain:'',path:'/',sameSite:'Lax'}},this.o={i:{},l:'',_:{},u:{},p:{},m:[],g:!1,v:null,h:null,C:null,S:'',k:!0,M:!1,T:!1,D:!1,A:!1,N:!1,H:!1,I:!1,V:!1,P:[],F:!1,O:!0,j:[],R:!1,B:'',G:!1,J:[],L:[],U:[],$:[],q:!1,K:!1,W:!1,X:[],Y:[],Z:[],ee:{},te:{},oe:{},ne:{},ae:{},ce:[],se:[]},this.ie={re:{},le:{}},this.de={},this.fe={_e:'cc:onFirstConsent',ue:'cc:onConsent',pe:'cc:onChange',me:'cc:onModalShow',ge:'cc:onModalHide',ve:'cc:onModalReady'}}}const o=new t,n=(e,t)=>e.indexOf(t),a=(e,t)=>-1!==n(e,t),c=e=>Array.isArray(e),s=e=>'string'==typeof e,i=e=>!!e&&'object'==typeof e&&!c(e),r=e=>'function'==typeof e,l=e=>Object.keys(e),d=e=>Array.from(new Set(e)),f=()=>document.activeElement,_=e=>e.preventDefault(),u=(e,t)=>e.querySelectorAll(t),p=e=>e.dispatchEvent(new Event('change')),m=t=>{const o=document.createElement(t);return t===e&&(o.type=t),o},g=(e,t,o)=>e.setAttribute(t,o),v=(e,t,o)=>{e.removeAttribute(o?'data-'+t:t)},b=(e,t,o)=>e.getAttribute(o?'data-'+t:t),h=(e,t)=>e.appendChild(t),y=(e,t)=>e.classList.add(t),w=(e,t)=>y(e,'cm__'+t),C=(e,t)=>y(e,'pm__'+t),S=(e,t)=>e.classList.remove(t),k=e=>{if('object'!=typeof e)return e;if(e instanceof Date)return new Date(e.getTime());let t=Array.isArray(e)?[]:{};for(let o in e){let n=e[o];t[o]=k(n)}return t},M=()=>{const e={},{J:t,ee:n,te:a}=o.o;for(const o of t)e[o]=E(a[o],l(n[o]));return e},T=(e,t)=>dispatchEvent(new CustomEvent(e,{detail:t})),x=(e,t,n,a)=>{e.addEventListener(t,n),a&&o.o.m.push({be:e,he:t,ye:n})},D=()=>{const e=o.t.cookie.expiresAfterDays;return r(e)?e(o.o.B):e},E=(e,t)=>{const o=e||[],n=t||[];return o.filter((e=>!a(n,e))).concat(n.filter((e=>!a(o,e))))},A=e=>{o.o.L=d(e),o.o.B=(()=>{let e='custom';const{L:t,J:n,U:a}=o.o,c=t.length;return c===n.length?e='all':c===a.length&&(e='necessary'),e})()},N=(e,t,n,a)=>{const{show:c,showPreferences:s,hide:i,hidePreferences:r,acceptCategory:l}=t,d=e||document,f=e=>u(d,`[data-cc="${e}"]`),p=(e,t)=>{_(e),l(t),r(),i()},m=f('show-preferencesModal'),v=f('show-consentModal'),b=f('accept-all'),h=f('accept-necessary'),y=f('accept-custom'),w=o.t.lazyHtmlGeneration;for(const e of m)g(e,'aria-haspopup','dialog'),x(e,'click',(e=>{_(e),s()})),w&&x(e,'mouseenter',(e=>{_(e),o.o.A||n(t,a)}),!0);for(let e of v)g(e,'aria-haspopup','dialog'),x(e,'click',(e=>{_(e),c(!0)}),!0);for(let e of b)x(e,'click',(e=>{p(e,'all')}),!0);for(let e of y)x(e,'click',(e=>{p(e)}),!0);for(let e of h)x(e,'click',(e=>{p(e,[])}),!0)};let H;const I=e=>{clearTimeout(H),e?y(o.ie.we,'disable--interaction'):H=setTimeout((()=>{S(o.ie.we,'disable--interaction')}),500)},V=()=>{const{o:t,ie:n}=o,a=['[href]',e,'input','details','[tabindex="0"]'].join(':not([tabindex="-1"]), '),c=(e,t)=>{const o=u(e,a);t[0]=o[0],t[1]=o[o.length-1]};t.M&&c(n.Ce,t.X),t.A&&c(n.Se,t.Y),t.I=!1,t.H=!1},P=(e,t,n)=>{const{pe:a,ue:c,_e:s,ge:i,ve:l,me:d}=o.de,f=o.fe,_={cookie:o.o.p};if(t){const o={modalName:t};return e===f.me?r(d)&&d(o):e===f.ge?r(i)&&i(o):(o.modal=n,r(l)&&l(o)),T(e,o)}e===f._e?r(s)&&s(k(_)):e===f.ue?r(c)&&c(k(_)):(_.changedCategories=o.o.j,_.changedServices=o.o.ne,r(a)&&a(k(_))),T(e,k(_))},F=e=>{const{te:t,ne:n,J:c,ee:s,ce:i,se:l,p:d,j:f}=o.o;for(const e of c){const o=n[e]||t[e]||[];for(const n of o){const o=s[e][n];if(!o)continue;const{onAccept:c,onReject:i}=o;!o.ke&&a(t[e],n)&&r(c)?(o.ke=!0,c()):o.ke&&!a(t[e],n)&&r(i)&&(o.ke=!1,i())}}if(!o.t.manageScriptTags)return;const _=i,u=e||d.categories||[],p=(e,o)=>{if(o<e.length){const c=e[o],s=l[o],i=s.Me,r=s.Te,d=a(u,i),_=!!r&&a(t[i],r);if(!s.xe){let t=!r&&!s.De&&d,l=r&&!s.De&&_,u=!r&&s.De&&!d&&a(f,i),h=r&&s.De&&!_&&a(n[i]||[],r);if(t||u||l||h){s.xe=!0;const t=b(c,'type',!0);v(c,'type',!!t),v(c,'data-category');let n=b(c,'src',!0);n&&v(c,'src',!0);const a=m('script');a.textContent=c.innerHTML;for(const{nodeName:e}of c.attributes)g(a,e,c[e]||b(c,e));if(t&&(a.type=t),n?a.src=n:n=c.src,n&&(a.onload=a.onerror=()=>{p(e,++o)}),c.replaceWith(a),n)return}}p(e,++o)}};p(_,0)},O=['middle','top','bottom'],j=['left','center','right'],R={box:{Ee:['wide','inline'],Ae:O,Ne:j,He:'bottom',Ie:'right'},cloud:{Ee:['inline'],Ae:O,Ne:j,He:'bottom',Ie:'center'},bar:{Ee:['inline'],Ae:O.slice(1),Ne:[],He:'bottom',Ie:''}},B={box:{Ee:[],Ae:[],Ne:[],He:'',Ie:''},bar:{Ee:['wide'],Ae:[],Ne:['left','right'],He:'',Ie:'left'}},G=e=>{const t=o.o.i.guiOptions,n=t?.consentModal,a=t?.preferencesModal;0===e&&J(o.ie.Ce,R,n,'cm--','box','cm'),1===e&&J(o.ie.Se,B,a,'pm--','box','pm')},J=(e,t,n,c,s,i)=>{e.className=i;const r=n?.layout,l=n?.position,d=n?.flipButtons,f=!1!==n?.equalWeightButtons,_=r?.split(' ')||[],u=_[0],p=_[1],m=u in t?u:s,g=t[m],v=a(g.Ee,p)&&p,b=l?.split(' ')||[],h=b[0],w='pm--'===c?b[0]:b[1],C=a(g.Ae,h)?h:g.He,k=a(g.Ne,w)?w:g.Ie,M=t=>y(e,c+t);M(m),M(v),M(C),M(k),d&&M('flip');const T=i+'__btn--secondary';if('cm'===i){const{Ve:e,Pe:t}=o.ie;e&&(f?S(e,T):y(e,T)),t&&(f?S(t,T):y(t,T))}else{const{Fe:e}=o.ie;e&&(f?S(e,T):y(e,T))}},L=(t,n)=>{const a=o.o,c=o.ie,{hide:r,hidePreferences:d,acceptCategory:f}=t,_=e=>{f(e),d(),r()},u=a.u&&a.u.preferencesModal;if(!u)return;const p=u.title,v=u.closeIconLabel,b=u.acceptAllBtn,w=u.acceptNecessaryBtn,k=u.savePreferencesBtn,M=u.sections,T=b||w||k;if(c.Oe)c.je=m('div'),C(c.je,'body');else{c.Oe=m('div'),y(c.Oe,'pm-wrapper'),c.Se=m('div'),c.Se.style.visibility='hidden',y(c.Se,'pm'),g(c.Se,'role','dialog'),g(c.Se,'aria-hidden',!0),g(c.Se,'aria-modal',!0),g(c.Se,'aria-labelledby','pm__title'),x(c.we,'keydown',(e=>{27===e.keyCode&&d()}),!0),c.Re=m('div'),C(c.Re,'header'),c.Be=m('div'),C(c.Be,'title'),c.Be.id='pm__title',g(c.Be,'role','heading'),g(c.Be,'aria-level','2'),c.Ge=m(e),C(c.Ge,'close-btn'),g(c.Ge,'aria-label',u.closeIconLabel||''),x(c.Ge,'click',d),c.Je=m('div'),C(c.Je,'body'),c.Le=m('div'),C(c.Le,'footer');var D=m('div');y(D,'btns');var E=m('div'),A=m('div');C(E,'btn-group'),C(A,'btn-group'),h(c.Le,E),h(c.Le,A),h(c.Re,c.Be),h(c.Re,c.Ge),h(c.Se,c.Re),h(c.Se,c.Je),T&&h(c.Se,c.Le),h(c.Oe,c.Se)}let N;p&&(c.Be.innerHTML=p,v&&g(c.Ge,'aria-label',v)),M&&M.forEach((t=>{const o=t.title,n=t.description,r=t.linkedCategory,d=r&&a.G[r],f=t.cookieTable,_=f?.body,p=_?.length>0,v=!!d,b=v&&a.ee[r],w=i(b)&&l(b)||[],k=v&&(!!n||!!p||l(b).length>0);var M=m('div');if(C(M,'section'),k||n){var T=m('div');C(T,'section-desc-wrapper')}let D=w.length;if(k&&D>0){const e=m('div');C(e,'section-services');for(const t of w){const o=b[t]?.label||t,n=m('div'),a=m('div'),c=m('div'),s=m('div');C(n,'service'),C(s,'service-title'),C(a,'service-header'),C(c,'service-icon');const i=U(o,t,d,!0,r);s.innerHTML=o,h(a,c),h(a,s),h(n,a),h(n,i),h(e,n)}h(T,e)}if(o){var E=m('div'),A=m(v?e:'div');if(C(E,'section-title-wrapper'),C(A,'section-title'),A.innerHTML=o,h(E,A),v){const e=m('span');C(e,'section-arrow'),h(E,e),M.className+='--toggle';const t=U(o,r,d);let n=u.serviceCounterLabel;if(D>0&&s(n)){let e=m('span');C(e,'badge'),C(e,'service-counter'),g(e,'aria-hidden',!0),g(e,'data-servicecounter',D),n&&(n=n.split('|'),n=n.length>1&&D>1?n[1]:n[0],g(e,'data-counterlabel',n)),e.innerHTML=D+(n?' '+n:''),h(A,e)}if(k){C(M,'section--expandable');var H=r+'-desc';g(A,'aria-expanded',!1),g(A,'aria-controls',H)}h(E,t)}else g(A,'role','heading'),g(A,'aria-level','3');h(M,E)}if(n){var I=m('div');C(I,'section-desc'),I.innerHTML=n,h(T,I)}if(k&&(g(T,'aria-hidden','true'),T.id=H,((e,t,o)=>{x(A,'click',(()=>{t.classList.contains('is-expanded')?(S(t,'is-expanded'),g(o,'aria-expanded','false'),g(e,'aria-hidden','true')):(y(t,'is-expanded'),g(o,'aria-expanded','true'),g(e,'aria-hidden','false'))}))})(T,M,A),p)){const e=m('table'),t=m('thead'),o=m('tbody');C(e,'section-table'),C(t,'table-head'),C(o,'table-body');const n=f.headers,a=l(n),s=c.Ue.createDocumentFragment(),i=m('tr');g(i,'role','row');for(const e of a){const t=n[e],o=m('th');o.id='cc__row-'+t,g(o,'role','columnheader'),g(o,'scope','col'),C(o,'table-th'),o.innerHTML=t,h(s,o)}h(i,s),h(t,i);const r=c.Ue.createDocumentFragment();for(const e of _){const t=m('tr');g(t,'role','row'),C(t,'table-tr');for(const o of a){const a=n[o],c=e[o],s=m('td'),i=m('div');C(s,'table-td'),g(s,'data-column',a),g(s,'headers','cc__row-'+a),i.insertAdjacentHTML('beforeend',c),h(s,i),h(t,s)}h(r,t)}h(o,r),h(e,t),h(e,o),h(T,e)}(k||n)&&h(M,T);const V=c.je||c.Je;v?(N||(N=m('div'),C(N,'section-toggles')),N.appendChild(M)):N=null,h(V,N||M)})),(b||w)&&(w&&(c.Fe||(c.Fe=m(e),C(c.Fe,'btn'),g(c.Fe,'data-role','necessary'),h(E,c.Fe),x(c.Fe,'click',(()=>_([])))),c.Fe.innerHTML=w),b&&(c.ze||(c.ze=m(e),C(c.ze,'btn'),g(c.ze,'data-role','all'),h(E,c.ze),x(c.ze,'click',(()=>_('all')))),c.ze.innerHTML=b)),k&&(c.$e||(c.$e=m(e),C(c.$e,'btn'),C(c.$e,'btn--secondary'),g(c.$e,'data-role','save'),h(A,c.$e),x(c.$e,'click',(()=>_()))),c.$e.innerHTML=k),c.je&&(c.Se.replaceChild(c.je,c.Je),c.Je=c.je),G(1),a.A||(a.A=!0,P(o.fe.ve,'preferencesModal',c.Se),n(t),setTimeout(V,10),h(c.qe,c.Oe),setTimeout((()=>y(c.Oe,'cc--anim')),100))};function U(e,t,n,c,s){const i=o.o,r=o.ie,l=m('label'),d=m('input'),f=m('span'),_=m('span'),u=m('span'),p=m('span');if(d.type='checkbox',y(l,'section__toggle-wrapper'),y(d,'section__toggle'),y(u,'toggle__icon-on'),y(p,'toggle__icon-off'),y(f,'toggle__icon'),y(_,'toggle__label'),g(f,'aria-hidden','true'),c?(y(l,'toggle-service'),g(d,'data-category',s),r.le[s][t]=d):r.re[t]=d,c?(e=>{x(d,'change',(()=>{const t=r.le[e],o=r.re[e];i.oe[e]=[];for(let o in t){const n=t[o];n.checked&&i.oe[e].push(n.value)}o.checked=i.oe[e].length>0}))})(s):(e=>{x(d,'click',(()=>{const t=r.le[e],o=d.checked;i.oe[e]=[];for(let n in t)t[n].checked=o,o&&i.oe[e].push(n)}))})(t),d.value=t,_.textContent=e.replace(/<.*>.*<\/.*>/gm,''),h(f,p),h(f,u),i.k)(n.readOnly||'opt-out'===i.i.mode&&n.enabled)&&(d.checked=!0);else if(c){const e=i.te[s];d.checked=n.readOnly||a(e,t)}else a(i.L,t)&&(d.checked=!0);return n.readOnly&&(d.disabled=!0),h(l,d),h(l,f),h(l,_),l}const z=(t,n)=>{const a=o.o,c=o.ie,{hide:s,showPreferences:i,acceptCategory:r}=t,l=a.u&&a.u.consentModal;if(!l)return;const d=l.acceptAllBtn,f=l.acceptNecessaryBtn,_=l.showPreferencesBtn,u=l.closeIconLabel,p=l.footer,v=l.label,b=l.title,C=e=>{s(),r(e)};if(!c.Ke){c.Ke=m('div'),c.Ce=m('div'),c.Qe=m('div'),c.We=m('div'),c.Xe=m('div'),y(c.Ke,'cm-wrapper'),y(c.Ce,'cm'),w(c.Qe,'body'),w(c.We,'texts'),w(c.Xe,'btns'),g(c.Ce,'role','dialog'),g(c.Ce,'aria-modal','true'),g(c.Ce,'aria-hidden','false'),g(c.Ce,'aria-describedby','cm__desc'),v?g(c.Ce,'aria-label',v):b&&g(c.Ce,'aria-labelledby','cm__title'),c.Ce.style.visibility='hidden';const t='box',o=a.i.guiOptions?.consentModal,n=(o?.layout||t).split(' ')[0]===t;b&&u&&n&&(c.Pe||(c.Pe=m(e),w(c.Pe,'btn'),w(c.Pe,'btn--close'),x(c.Pe,'click',(()=>{C([])})),h(c.Qe,c.Pe)),g(c.Pe,'aria-label',u)),h(c.Qe,c.We),(d||f||_)&&h(c.Qe,c.Xe),h(c.Ce,c.Qe),h(c.Ke,c.Ce)}b&&(c.Ye||(c.Ye=m('div'),c.Ye.className=c.Ye.id='cm__title',g(c.Ye,'role','heading'),g(c.Ye,'aria-level','2'),h(c.We,c.Ye)),c.Ye.innerHTML=b);let S=l.description;if(S&&(a.F&&(S=S.replace('{{revisionMessage}}',a.O?'':l.revisionMessage||'')),c.Ze||(c.Ze=m('div'),c.Ze.className=c.Ze.id='cm__desc',h(c.We,c.Ze)),c.Ze.innerHTML=S),d&&(c.et||(c.et=m(e),w(c.et,'btn'),g(c.et,'data-role','all'),x(c.et,'click',(()=>{C('all')}))),c.et.innerHTML=d),f&&(c.Ve||(c.Ve=m(e),w(c.Ve,'btn'),g(c.Ve,'data-role','necessary'),x(c.Ve,'click',(()=>{C([])}))),c.Ve.innerHTML=f),_&&(c.tt||(c.tt=m(e),w(c.tt,'btn'),w(c.tt,'btn--secondary'),g(c.tt,'data-role','show'),x(c.tt,'mouseenter',(()=>{a.A||L(t,n)})),x(c.tt,'click',i)),c.tt.innerHTML=_),c.ot||(c.ot=m('div'),w(c.ot,'btn-group'),f&&h(c.ot,c.Ve),d&&h(c.ot,c.et),(d||f)&&h(c.Qe,c.ot),h(c.Xe,c.ot)),c.tt&&!c.nt&&(c.nt=m('div'),c.Ve&&c.et?(w(c.nt,'btn-group'),h(c.nt,c.tt),h(c.Xe,c.nt)):(h(c.ot,c.tt),w(c.ot,'btn-group--uneven'))),p){if(!c.ct){let e=m('div'),t=m('div');c.ct=m('div'),w(e,'footer'),w(t,'links'),w(c.ct,'link-group'),h(t,c.ct),h(e,t),h(c.Ce,e)}c.ct.innerHTML=p}G(0),a.M||(a.M=!0,P(o.fe.ve,'consentModal',c.Ce),n(t),setTimeout(V,10),h(c.qe,c.Ke),setTimeout((()=>y(c.Ke,'cc--anim')),100)),N(c.Qe,t,L,n)},$=e=>s(e)&&e in o.o._,q=()=>o.o.l||o.o.i.language.default,K=e=>{e&&(o.o.l=e)},Q=async e=>{const t=o.o;let n;n=e&&$(e)?e:q();let a=t._[n];if(!a)return!1;if(s(a)){const e=await(async e=>{try{const t=await fetch(e,{method:'GET'});return!!t.ok&&await t.json()}catch(e){return!1}})(a);if(!e)return!1;a=e}return t.u=a,K(n),!0},W=()=>{let e=o.o.i.language.rtl,t=o.ie.qe;e&&t&&(c(e)||(e=[e]),a(e,o.o.l)?y(t,'cc--rtl'):S(t,'cc--rtl'))},X=e=>{const t=o.ie;if(!t.qe){t.qe=m('div'),t.qe.id='cc-main',t.qe.style.position='fixed',t.qe.style.zIndex='2147483647',W();let n=o.o.i.root;n&&s(n)&&(n=document.querySelector(n)),h(n||t.Ue.body,t.qe),(({hidePreferences:e})=>{const t=o.ie;x(t.qe,'click',(n=>{const a=o.o;a.V?t.Se.contains(n.target)?a.N=!0:(e(),a.N=!1):a.T&&t.Ce.contains(n.target)&&(a.N=!0)}))})(e)}},Y=e=>{const{hostname:t,protocol:n}=location,{name:c,path:s,domain:i,sameSite:r}=o.t.cookie,l=encodeURIComponent(JSON.stringify(o.o.p)),d=e?(()=>{const e=o.o.C,t=e?new Date-e:0;return 864e5*D()-t})():864e5*D(),f=new Date;f.setTime(f.getTime()+d);let _=c+'='+l+(0!==d?'; expires='+f.toUTCString():'')+'; Path='+s+'; SameSite='+r;a(t,'.')&&(_+='; Domain='+i),'https:'===n&&(_+='; Secure'),document.cookie=_,o.o.p},Z=(e,t,n)=>{const a=n||o.t.cookie.domain,c=t||o.t.cookie.path,s='www.'===a.slice(0,4),i=s&&a.substring(4),r=(e,t)=>{document.cookie=e+'=; path='+c+(t?'; domain=.'+t:'')+'; expires=Thu, 01 Jan 1970 00:00:01 GMT;'};for(const t of e)r(t),r(t,a),s&&r(t,i)},ee=e=>(e=>{let t;try{t=JSON.parse(decodeURIComponent(e))}catch(e){t={}}return t})(te(e||o.t.cookie.name,!0)),te=(e,t)=>{const o=document.cookie.match('(^|;)\\s*'+e+'\\s*=\\s*([^;]+)');return o?t?o.pop():e:''},oe=e=>{const t=document.cookie.split(/;\s*/),o=[];for(const n of t){let t=n.split('=')[0];if(e)try{e.test(t)&&o.push(t)}catch(e){}else o.push(t)}return o},ne=(e,t=[])=>{((e,t)=>{const{J:n,L:i,U:r,A:d,oe:f,ee:_}=o.o;let u=[];if(e){c(e)?u.push(...e):s(e)&&(u='all'===e?n:[e]);for(const e of n)f[e]=a(u,e)?l(_[e]):[]}else u=d?(()=>{const e=o.ie.re;if(!e)return[];let t=[];for(let o in e)e[o].checked&&t.push(o);return t})():i;u=u.filter((e=>!a(n,e)||!a(t,e))),u.push(...r),A(u)})(e,t),(e=>{const t=o.o,{oe:n,U:c,te:s,ee:i,J:r}=t,f=r;t.ae=k(s);for(const e of f){const t=i[e],o=l(t),r=n[e]?.length>0,f=a(c,e);if(0!==o.length){if(s[e]=[],f)s[e].push(...o);else if(r){const t=n[e];s[e].push(...t)}else s[e]=[];s[e]=d(s[e])}}})(),(()=>{const e=o.o;'opt-out'===o.t.mode&&e.k?e.j=E(e.$,e.L):e.j=E(e.L,e.p.categories);let t=e.j.length>0,c=!1;for(const t of e.J)e.ne[t]=E(e.te[t],e.ae[t]),e.ne[t].length>0&&(c=!0);const s=o.ie.re;for(let t in s)s[t].checked=a(e.L,t);for(const t of e.J){const n=o.ie.le[t],c=e.te[t];for(const e in n)n[e].checked=a(c,e)}e.h||(e.h=new Date),e.S||(e.S=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))),e.p={categories:k(e.L),revision:o.t.revision,data:e.v,consentTimestamp:e.h.toISOString(),consentId:e.S,services:k(e.te)};let i=!1;(e.k||t||c)&&(e.k&&(e.k=!1,i=!0),e.C?e.C=new Date:e.C=e.h,e.p.lastConsentTimestamp=e.C.toISOString(),Y(),o.t.autoClearCookies&&(i||!e.k&&t)&&(e=>{const t=o.o,c=oe();t.R=!1;let s=e?t.J:t.j;s=s.filter((e=>{let o=t.G[e];return!!o&&!o.readOnly&&!!o.autoClear}));for(const o of s){const s=t.G[o].autoClear,i=s?.cookies||[],r=a(t.j,o),l=!a(t.L,o),d=r&&l;if(e&&l||!e&&d){!0===s.reloadPage&&d&&(t.R=!0);for(const e of i){let t=[];const o=e.name,a=e.domain,s=e.path;if(o instanceof RegExp)for(let e of c)o.test(e)&&t.push(e);else{let e=n(c,o);e>-1&&t.push(c[e])}t.length>0&&Z(t,s,a)}}}})(i),F()),i&&(P(o.fe._e),P(o.fe.ue),'opt-in'===o.t.mode)||((t||c)&&P(o.fe.pe),e.R&&location.reload())})()},ae=e=>{const t=o.o.k?[]:o.o.L;return a(t,e)},ce=(e,t)=>{const{J:n,ee:i}=o.o;if(!(e&&t&&s(t)&&a(n,t)&&0!==l(i[t]).length))return!1;((e,t)=>{const n=o.o,{ee:i,oe:r,A:f}=n,_=o.ie.le[t]||{},u=o.ie.re[t]||{},m=l(i[t]);if(r[t]=[],s(e)){if('all'===e){if(r[t].push(...m),f)for(let e in _)_[e].checked=!0,p(_[e])}else if(a(m,e)&&r[t].push(e),f)for(let t in _)_[t].checked=e===t,p(_[t])}else if(c(e))for(let o of m){const n=a(e,o);n&&r[t].push(o),f&&(_[o].checked=n,p(_[o]))}const g=0===r[t].length;n.L=g?n.L.filter((e=>e!==t)):d([...n.L,t]),f&&(u.checked=!g,p(u))})(e,t),ne()},se=(e,t)=>{const n=o.o.k?[]:o.o.te[t];return a(n,e)},ie=e=>''!==te(e,!0),re=(e,t,o)=>{let n=[];const a=e=>{if(s(e)){let t=te(e);''!==t&&n.push(t)}else n.push(...oe(e))};if(c(e))for(let t of e)a(t);else a(e);Z(n,t,o)},le=e=>{const{ie:t,o:n}=o;e&&!n.M&&z(ue,X),n.M&&(n.T=!0,n.g&&I(!0),y(t.we,'show--consent'),g(t.Ce,'aria-hidden','false'),setTimeout((()=>{n.K=f(),n.P=n.X}),200),P(o.fe.me,'consentModal'))},de=()=>{const{ie:e,o:t,fe:n}=o;t.M&&(t.T=!1,t.g&&I(),S(e.we,'show--consent'),g(e.Ce,'aria-hidden','true'),setTimeout((()=>{t.K.focus(),t.P=[]}),200),P(n.ge,'consentModal'))},fe=()=>{const e=o.o;e.A&&e.D||(e.A||L(ue,X),y(o.ie.we,'show--preferences'),g(o.ie.Se,'aria-hidden','false'),e.D=!0,setTimeout((()=>{e.V=!0}),1),setTimeout((()=>{e.T?e.W=f():e.K=f(),0!==e.Y.length&&(e.Y[0].focus(),e.P=e.Y)}),200),P(o.fe.me,'preferencesModal'))},_e=()=>{const e=o.o;e.D&&(S(o.ie.we,'show--preferences'),g(o.ie.Se,'aria-hidden','true'),e.D=!1,setTimeout((()=>{e.V=!1}),1),e.T?(e.W&&e.W.focus(),e.P=e.X):(e.K&&e.K.focus(),e.P=[]),e.N=!1,P(o.fe.ge,'preferencesModal'))};var ue={show:le,hide:de,showPreferences:fe,hidePreferences:_e,acceptCategory:ne};const pe=async(e,t)=>{if(!$(e))return!1;const n=o.o;return!(e===q()&&!0!==t||!await Q(e)||(K(e),n.M&&z(ue,X),n.A&&L(ue,X),W(),V(),0))},me=()=>{const{B:e,te:t}=o.o,{accepted:n,rejected:c}=(()=>{const{k:e,L:t,J:n}=o.o;return{accepted:t,rejected:e?[]:n.filter((e=>!a(t,e)))}})();return k({acceptType:e,acceptedCategories:n,rejectedCategories:c,acceptedServices:t,rejectedServices:M()})},ge=(e,t)=>{let o=document.querySelector('script[src="'+e+'"]');return new Promise((n=>{if(o)return n(!0);if(o=m('script'),i(t))for(const e in t)g(o,e,t[e]);o.onload=()=>n(!0),o.onerror=()=>{o.remove(),n(!1)},o.src=e,h(document.head,o)}))},ve=e=>{let t,n=e.value,a=e.mode,c=!1;const s=o.o;if('update'===a){s.v=t=be('data');const e=typeof t==typeof n;if(e&&'object'==typeof t){!t&&(t={});for(let e in n)t[e]!==n[e]&&(t[e]=n[e],c=!0)}else!e&&t||t===n||(t=n,c=!0)}else t=n,c=!0;return c&&(s.v=t,s.p.data=t,Y(!0)),c},be=(e,t)=>{const o=ee(t);return e?o[e]:o},he=e=>{const t=o.t,n=o.o.i;return e?t[e]||n[e]:{...t,...n,cookie:{...t.cookie}}},ye=()=>!o.o.k,we=async e=>{const{o:t,t:n,fe:r}=o,d=window;if(!d._ccRun){if(d._ccRun=!0,(e=>{const{ie:t,t:n,o:c}=o,s=n,r=c,{cookie:d}=s,f=o.de,_=e.cookie,p=e.categories,m=l(p)||[],g=navigator,v=document;t.Ue=v,t.we=v.documentElement,d.domain=location.hostname,r.i=e,r.G=p,r.J=m,r._=e.language.translations,r.g=!!e.disablePageInteraction,f._e=e.onFirstConsent,f.ue=e.onConsent,f.pe=e.onChange,f.ge=e.onModalHide,f.me=e.onModalShow,f.ve=e.onModalReady;const{mode:h,autoShow:y,lazyHtmlGeneration:w,autoClearCookies:C,revision:S,manageScriptTags:k,hideFromBots:M}=e;'opt-out'===h&&(s.mode=h),'boolean'==typeof C&&(s.autoClearCookies=C),'boolean'==typeof k&&(s.manageScriptTags=k),'number'==typeof S&&S>=0&&(s.revision=S,r.F=!0),'boolean'==typeof y&&(s.autoShow=y),'boolean'==typeof w&&(s.lazyHtmlGeneration=w),!1===M&&(s.hideFromBots=!1),!0===s.hideFromBots&&g&&(r.q=g.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(g.userAgent)||g.webdriver),i(_)&&(s.cookie={...d,..._}),s.autoClearCookies,r.F,s.manageScriptTags,(e=>{const{G:t,ee:n,te:a,oe:c,U:s}=o.o;for(let r of e){const e=t[r],d=e.services||{},f=i(d)&&l(d)||[];n[r]={},a[r]=[],c[r]=[],e.readOnly&&(s.push(r),a[r]=f),o.ie.le[r]={};for(let e of f){const t=d[e];t.ke=!1,n[r][e]=t}}})(m),(()=>{if(!o.t.manageScriptTags)return;const e=o.o;e.ce=u(o.ie.Ue,'script[data-category]'),e.se=[];for(const t of e.ce){let o=b(t,'data-category'),n=t.dataset.service||'',c=!1;if(o&&'!'===o.charAt(0)&&(o=o.slice(1),c=!0),'!'===n.charAt(0)&&(n=n.slice(1),c=!0),a(e.J,o)&&(e.se.push({xe:!1,De:c,Me:o,Te:n}),n)){const t=e.ee[o];t[n]||(t[n]={ke:!1})}}})(),K((()=>{const e=o.o.i.language.autoDetect;if(e){let t;if('browser'===e?t=navigator.language.slice(0,2).toLowerCase():'document'===e&&(t=document.documentElement.lang),$(t))return t}return q()})())})(e),t.q)return;(()=>{const e=o.o,t=o.t,n=ee(),{categories:a,services:i,consentId:r,consentTimestamp:l,lastConsentTimestamp:d,data:f,revision:_}=n,u=c(a);e.p=n,e.S=r;const p=!!r&&s(r);e.h=l,e.h&&(e.h=new Date(l)),e.C=d,e.C&&(e.C=new Date(d)),e.v=void 0!==f?f:null,e.F&&p&&_!==t.revision&&(e.O=!1),e.k=!(p&&e.O&&e.h&&e.C&&u),e.k,e.k?'opt-out'===t.mode&&((()=>{const e=o.o;for(const t of e.J){const o=e.G[t];if(o.enabled||o.readOnly){e.$.push(t);const o=e.ee[t]||{};for(let n in o)e.te[t].push(n)}}})(),e.L=[...e.$]):(e.te={...e.te,...i},A([...e.U,...a])),e.oe={...e.te}})();const p=ye();if(!await Q())return!1;if(await(async e=>{N(null,e,L,X),o.o.k&&z(e,X),o.t.lazyHtmlGeneration||L(e,X),(()=>{const e=o.ie,t=o.o;x(e.we,'keydown',(e=>{if('Tab'!==e.key)return;const n=t.P;if(n.length>0){const a=f();e.shiftKey?a===n[0]&&(n[1].focus(),_(e)):a===n[1]&&(n[0].focus(),_(e)),t.H||o.o.N||(t.H=!0,!t.I&&_(e),e.shiftKey?n[1].focus():n[0].focus())}!t.H&&(t.I=!0)}),!0)})()})(ue),n.autoShow&&!p&&le(!0),p)return F(),P(r.ue);'opt-out'===n.mode&&F(t.$)}},Ce=e=>{const{qe:n,we:a}=o.ie,{name:c,path:s,domain:i}=o.t.cookie;e&&re(c,s,i);for(const{be:e,he:t,ye:n}of o.o.m)e.removeEventListener(t,n);n?.remove(),a?.classList.remove('disable--interaction','show--preferences','show--consent');const r=new t;for(const e in o)o[e]=r[e];window._ccRun=!1};export{ne as acceptCategory,ce as acceptService,ae as acceptedCategory,se as acceptedService,re as eraseCookies,he as getConfig,be as getCookie,me as getUserPreferences,de as hide,_e as hidePreferences,ge as loadScript,Ce as reset,we as run,ve as setCookieData,pe as setLanguage,le as show,fe as showPreferences,ye as validConsent,ie as validCookie};
const e='opt-in',t='opt-out',o='show--consent',n='show--preferences',a='disable--interaction',s='data-category',c='div',r='button',i='aria-hidden',l='btn-group',d='click',f='data-role',_='consentModal',u='preferencesModal';class p{constructor(){this.t={mode:e,revision:0,autoShow:!0,lazyHtmlGeneration:!0,autoClearCookies:!0,manageScriptTags:!0,hideFromBots:!0,cookie:{name:'cc_cookie',expiresAfterDays:182,domain:'',path:'/',sameSite:'Lax'}},this.o={i:{},l:'',_:{},u:{},p:{},m:[],g:!1,v:null,h:null,C:null,S:'',M:!0,D:!1,T:!1,k:!1,A:!1,N:[],H:!1,F:!0,V:[],j:!1,P:'',I:!1,L:[],O:[],R:[],B:[],G:!1,J:!1,U:!1,$:[],q:[],K:null,W:[],X:[],Y:{},Z:{},ee:{},te:{},oe:{},ne:[]},this.ae={se:{},ce:{}},this.re={},this.ie={le:'cc:onFirstConsent',de:'cc:onConsent',fe:'cc:onChange',_e:'cc:onModalShow',ue:'cc:onModalHide',pe:'cc:onModalReady'}}}const m=new p,g=(e,t)=>e.indexOf(t),b=(e,t)=>-1!==g(e,t),v=e=>Array.isArray(e),y=e=>'string'==typeof e,h=e=>!!e&&'object'==typeof e&&!v(e),C=e=>'function'==typeof e,w=e=>Object.keys(e),S=e=>Array.from(new Set(e)),x=()=>document.activeElement,M=e=>e.preventDefault(),D=(e,t)=>e.querySelectorAll(t),T=e=>e.dispatchEvent(new Event('change')),E=e=>{const t=document.createElement(e);return e===r&&(t.type=e),t},k=(e,t,o)=>e.setAttribute(t,o),A=(e,t,o)=>{e.removeAttribute(o?'data-'+t:t)},N=(e,t,o)=>e.getAttribute(o?'data-'+t:t),H=(e,t)=>e.appendChild(t),F=(e,t)=>e.classList.add(t),V=(e,t)=>F(e,'cm__'+t),j=(e,t)=>F(e,'pm__'+t),P=(e,t)=>e.classList.remove(t),I=e=>{if('object'!=typeof e)return e;if(e instanceof Date)return new Date(e.getTime());let t=Array.isArray(e)?[]:{};for(let o in e){let n=e[o];t[o]=I(n)}return t},L=()=>{const e={},{L:t,Y:o,Z:n}=m.o;for(const a of t)e[a]=G(n[a],w(o[a]));return e},O=(e,t)=>dispatchEvent(new CustomEvent(e,{detail:t})),R=(e,t,o,n)=>{e.addEventListener(t,o),n&&m.o.m.push({me:e,ge:t,be:o})},B=()=>{const e=m.t.cookie.expiresAfterDays;return C(e)?e(m.o.P):e},G=(e,t)=>{const o=e||[],n=t||[];return o.filter((e=>!b(n,e))).concat(n.filter((e=>!b(o,e))))},J=e=>{m.o.O=S(e),m.o.P=(()=>{let e='custom';const{O:t,L:o,R:n}=m.o,a=t.length;return a===o.length?e='all':a===n.length&&(e='necessary'),e})()},U=(e,t,o,n)=>{const a='accept-',{show:s,showPreferences:c,hide:r,hidePreferences:i,acceptCategory:l}=t,f=e||document,_=e=>D(f,`[data-cc="${e}"]`),u=(e,t)=>{M(e),l(t),i(),r()},p=_('show-preferencesModal'),g=_('show-consentModal'),b=_(a+'all'),v=_(a+'necessary'),y=_(a+'custom'),h=m.t.lazyHtmlGeneration;for(const e of p)k(e,'aria-haspopup','dialog'),R(e,d,(e=>{M(e),c()})),h&&(R(e,'mouseenter',(e=>{M(e),m.o.A||o(t,n)}),!0),R(e,'focus',(()=>{m.o.A||o(t,n)})));for(let e of g)k(e,'aria-haspopup','dialog'),R(e,d,(e=>{M(e),s(!0)}),!0);for(let e of b)R(e,d,(e=>{u(e,'all')}),!0);for(let e of y)R(e,d,(e=>{u(e)}),!0);for(let e of v)R(e,d,(e=>{u(e,[])}),!0)},$=(e,t)=>{e&&e.focus(),t&&(m.o.K=1===t?m.ae.ve:m.ae.ye,m.o.W=1===t?m.o.$:m.o.q)};let z;const q=e=>{clearTimeout(z),e?F(m.ae.he,a):z=setTimeout((()=>{P(m.ae.he,a)}),500)},K=['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 '],Q=(e=0,t=1.5)=>`<svg viewBox="0 0 24 24" stroke-width="${t}"><path d="${K[e]}"/></svg>`,W=['[href]',r,'input','details','[tabindex]'].map((e=>e+':not([tabindex="-1"])')).join(','),X=e=>{const{o:t,ae:o}=m,n=(e,t)=>{const o=D(e,W);t[0]=o[0],t[1]=o[o.length-1]};1===e&&t.D&&n(o.Ce,t.$),2===e&&t.A&&n(o.we,t.q)},Y=(e,t,o)=>{const{fe:n,de:a,le:s,ue:c,pe:r,_e:i}=m.re,l=m.ie,d={cookie:m.o.p};if(t){const n={modalName:t};return e===l._e?C(i)&&i(n):e===l.ue?C(c)&&c(n):(n.modal=o,C(r)&&r(n)),O(e,n)}e===l.le?C(s)&&s(I(d)):e===l.de?C(a)&&a(I(d)):(d.changedCategories=m.o.V,d.changedServices=m.o.te,C(n)&&n(I(d))),O(e,I(d))},Z=e=>{const{Z:t,te:o,L:n,Y:a,ne:c,p:r,V:i}=m.o;for(const e of n){const n=o[e]||t[e]||[];for(const o of n){const n=a[e][o];if(!n)continue;const{onAccept:s,onReject:c}=n;!n.Se&&b(t[e],o)&&C(s)?(n.Se=!0,s()):n.Se&&!b(t[e],o)&&C(c)&&(n.Se=!1,c())}}if(!m.t.manageScriptTags)return;const l=c,d=e||r.categories||[],f=(e,n)=>{if(n>=e.length)return;const a=c[n];if(a.xe)return f(e,n+1);const r=a.Me,l=a.De,_=a.Te,u=b(d,l),p=!!_&&b(t[l],_);if(!_&&!a.Ee&&u||!_&&a.Ee&&!u&&b(i,l)||_&&!a.Ee&&p||_&&a.Ee&&!p&&b(o[l]||[],_)){a.xe=!0;const t=N(r,'type',!0);A(r,'type',!!t),A(r,s);let o=N(r,'src',!0);o&&A(r,'src',!0);const c=E('script');c.textContent=r.innerHTML;for(const{nodeName:e}of r.attributes)k(c,e,r[e]||N(r,e));t&&(c.type=t),o?c.src=o:o=r.src;const i=!!o&&(!t||['text/javascript','module'].includes(t));if(i&&(c.onload=c.onerror=()=>{f(e,++n)}),r.replaceWith(c),i)return}f(e,++n)};f(l,0)},ee='bottom',te='left',oe='center',ne='right',ae='inline',se='wide',ce='pm--',re=['middle','top',ee],ie=[te,oe,ne],le={box:{ke:[se,ae],Ae:re,Ne:ie,He:ee,Fe:ne},cloud:{ke:[ae],Ae:re,Ne:ie,He:ee,Fe:oe},bar:{ke:[ae],Ae:re.slice(1),Ne:[],He:ee,Fe:''}},de={box:{ke:[],Ae:[],Ne:[],He:'',Fe:''},bar:{ke:[se],Ae:[],Ne:[te,ne],He:'',Fe:te}},fe=e=>{const t=m.o.i.guiOptions,o=t&&t.consentModal,n=t&&t.preferencesModal;0===e&&_e(m.ae.Ce,le,o,'cm--','box','cm'),1===e&&_e(m.ae.we,de,n,ce,'box','pm')},_e=(e,t,o,n,a,s)=>{e.className=s;const c=o&&o.layout,r=o&&o.position,i=o&&o.flipButtons,l=o&&!1!==o.equalWeightButtons,d=c&&c.split(' ')||[],f=d[0],_=d[1],u=f in t?f:a,p=t[u],g=b(p.ke,_)&&_,v=r&&r.split(' ')||[],y=v[0],h=n===ce?v[0]:v[1],C=b(p.Ae,y)?y:p.He,w=b(p.Ne,h)?h:p.Fe,S=t=>F(e,n+t);S(u),S(g),S(C),S(w),i&&S('flip');const x=s+'__btn--secondary';if('cm'===s){const{Ve:e,je:t}=m.ae;e&&(l?P(e,x):F(e,x)),t&&(l?P(t,x):F(t,x))}else{const{Pe:e}=m.ae;e&&(l?P(e,x):F(e,x))}},ue=(e,t)=>{const o=m.o,n=m.ae,{hide:a,hidePreferences:s,acceptCategory:_}=e,p=e=>{_(e),s(),a()},g=o.u&&o.u.preferencesModal;if(!g)return;const b=g.title,v=g.closeIconLabel,C=g.acceptAllBtn,S=g.acceptNecessaryBtn,x=g.savePreferencesBtn,M=g.sections,D=C||S||x;if(n.ye)n.Ie=E(c),j(n.Ie,'body');else{n.ye=E(c),F(n.ye,'pm-wrapper'),n.ye.tabIndex=-1;const e=E('div');F(e,'pm-overlay'),H(n.ye,e),R(e,d,s),n.we=E(c),n.we.style.visibility='hidden',F(n.we,'pm'),k(n.we,'role','dialog'),k(n.we,i,!0),k(n.we,'aria-modal',!0),k(n.we,'aria-labelledby','pm__title'),R(n.he,'keydown',(e=>{27===e.keyCode&&s()}),!0),n.Le=E(c),j(n.Le,'header'),n.Oe=E(c),j(n.Oe,'title'),n.Oe.id='pm__title',k(n.Oe,'role','heading'),k(n.Oe,'aria-level','2'),n.Re=E(r),j(n.Re,'close-btn'),k(n.Re,'aria-label',g.closeIconLabel||''),R(n.Re,d,s),n.Be=E('span'),n.Be.tabIndex=-1,n.Be.innerHTML=Q(),H(n.Re,n.Be),n.Ge=E(c),j(n.Ge,'body'),n.Je=E(c),j(n.Je,'footer');var T=E(c);F(T,'btns');var A=E(c),N=E(c);j(A,l),j(N,l),H(n.Je,A),H(n.Je,N),H(n.Le,n.Oe),H(n.Le,n.Re),H(n.we,n.Le),H(n.we,n.Ge),D&&H(n.we,n.Je),H(n.ye,n.we)}let V;b&&(n.Oe.innerHTML=b,v&&k(n.Re,'aria-label',v)),M&&M.forEach(((e,t)=>{const a=e.title,s=e.description,l=e.linkedCategory,f=l&&o.I[l],_=e.cookieTable,u=_&&_.body,p=_&&_.caption,m=u&&u.length>0,b=!!f,v=b&&o.Y[l],C=h(v)&&w(v)||[],S=b&&(!!s||!!m||w(v).length>0);var x=E(c);if(j(x,'section'),S||s){var M=E(c);j(M,'section-desc-wrapper')}let D=C.length;if(S&&D>0){const e=E(c);j(e,'section-services');for(const t of C){const o=v[t],n=o&&o.label||t,a=E(c),s=E(c),r=E(c),i=E(c);j(a,'service'),j(i,'service-title'),j(s,'service-header'),j(r,'service-icon');const d=pe(n,t,f,!0,l);i.innerHTML=n,H(s,r),H(s,i),H(a,s),H(a,d),H(e,a)}H(M,e)}if(a){var T=E(c),A=E(b?r:c);if(j(T,'section-title-wrapper'),j(A,'section-title'),A.innerHTML=a,H(T,A),b){const e=E('span');e.innerHTML=Q(2,3.5),j(e,'section-arrow'),H(T,e),x.className+='--toggle';const t=pe(a,l,f);let o=g.serviceCounterLabel;if(D>0&&y(o)){let e=E('span');j(e,'badge'),j(e,'service-counter'),k(e,i,!0),k(e,'data-servicecounter',D),o&&(o=o.split('|'),o=o.length>1&&D>1?o[1]:o[0],k(e,'data-counterlabel',o)),e.innerHTML=D+(o?' '+o:''),H(A,e)}if(S){j(x,'section--expandable');var N=l+'-desc';k(A,'aria-expanded',!1),k(A,'aria-controls',N)}H(T,t)}else k(A,'role','heading'),k(A,'aria-level','3');H(x,T)}if(s){var I=E(c);j(I,'section-desc'),I.innerHTML=s,H(M,I)}if(S&&(k(M,i,'true'),M.id=N,((e,t,o)=>{R(A,d,(()=>{t.classList.contains('is-expanded')?(P(t,'is-expanded'),k(o,'aria-expanded','false'),k(e,i,'true')):(F(t,'is-expanded'),k(o,'aria-expanded','true'),k(e,i,'false'))}))})(M,x,A),m)){const e=E('table'),o=E('thead'),a=E('tbody');if(p){const t=E('caption');j(t,'table-caption'),t.innerHTML=p,e.appendChild(t)}j(e,'section-table'),j(o,'table-head'),j(a,'table-body');const s=_.headers,r=w(s),i=n.Ue.createDocumentFragment(),l=E('tr');k(l,'role','row');for(const e of r){const o=s[e],n=E('th');n.id='cc__row-'+o+t,k(n,'scope','col'),j(n,'table-th'),n.innerHTML=o,H(i,n)}H(l,i),H(o,l);const d=n.Ue.createDocumentFragment();for(const e of u){const o=E('tr');k(o,'role','row'),j(o,'table-tr');for(const n of r){const a=s[n],r=e[n],i=E('td'),l=E(c);j(i,'table-td'),k(i,'data-column',a),k(i,'headers','cc__row-'+a+t),l.insertAdjacentHTML('beforeend',r),H(i,l),H(o,i)}H(d,o)}H(a,d),H(e,o),H(e,a),H(M,e)}(S||s)&&H(x,M);const L=n.Ie||n.Ge;b?(V||(V=E(c),j(V,'section-toggles')),V.appendChild(x)):V=null,H(L,V||x)})),(C||S)&&(S&&(n.Pe||(n.Pe=E(r),j(n.Pe,'btn'),k(n.Pe,f,'necessary'),H(A,n.Pe),R(n.Pe,d,(()=>p([])))),n.Pe.innerHTML=S),C&&(n.$e||(n.$e=E(r),j(n.$e,'btn'),k(n.$e,f,'all'),H(A,n.$e),R(n.$e,d,(()=>p('all')))),n.$e.innerHTML=C)),x&&(n.ze||(n.ze=E(r),j(n.ze,'btn'),j(n.ze,'btn--secondary'),k(n.ze,f,'save'),H(N,n.ze),R(n.ze,d,(()=>p()))),n.ze.innerHTML=x),n.Ie&&(n.we.replaceChild(n.Ie,n.Ge),n.Ge=n.Ie),fe(1),o.A||(o.A=!0,Y(m.ie.pe,u,n.we),t(e),H(n.qe,n.ye),setTimeout((()=>F(n.ye,'cc--anim')),100)),X(2)};function pe(e,o,n,a,c){const r=m.o,l=m.ae,f=E('label'),_=E('input'),u=E('span'),p=E('span'),g=E('span'),v=E('span'),y=E('span');if(v.innerHTML=Q(1,3),y.innerHTML=Q(0,3),_.type='checkbox',F(f,'section__toggle-wrapper'),F(_,'section__toggle'),F(v,'toggle__icon-on'),F(y,'toggle__icon-off'),F(u,'toggle__icon'),F(p,'toggle__icon-circle'),F(g,'toggle__label'),k(u,i,'true'),a?(F(f,'toggle-service'),k(_,s,c),l.ce[c][o]=_):l.se[o]=_,a?(e=>{R(_,'change',(()=>{const t=l.ce[e],o=l.se[e];r.ee[e]=[];for(let o in t){const n=t[o];n.checked&&r.ee[e].push(n.value)}o.checked=r.ee[e].length>0}))})(c):(e=>{R(_,d,(()=>{const t=l.ce[e],o=_.checked;r.ee[e]=[];for(let n in t)t[n].checked=o,o&&r.ee[e].push(n)}))})(o),_.value=o,g.textContent=e.replace(/<.*>.*<\/.*>/gm,''),H(p,y),H(p,v),H(u,p),r.M)(n.readOnly||r.i.mode===t&&n.enabled)&&(_.checked=!0);else if(a){const e=r.Z[c];_.checked=n.readOnly||b(e,o)}else b(r.O,o)&&(_.checked=!0);return n.readOnly&&(_.disabled=!0),H(f,_),H(f,u),H(f,g),f}const me=()=>{const e=E('span');return e.tabIndex=-1,m.ae.Ke||(m.ae.Ke=e),e},ge=(e,t)=>{const o=m.o,n=m.ae,{hide:a,showPreferences:s,acceptCategory:u}=e,p=o.u&&o.u.consentModal;if(!p)return;const g=p.acceptAllBtn,b=p.acceptNecessaryBtn,v=p.showPreferencesBtn,y=p.closeIconLabel,h=p.footer,C=p.label,w=p.title,S=e=>{a(),u(e)};if(!n.ve){n.ve=E(c),n.Ce=E(c),n.Qe=E(c),n.We=E(c),n.Xe=E(c),F(n.ve,'cm-wrapper'),F(n.Ce,'cm'),V(n.Qe,'body'),V(n.We,'texts'),V(n.Xe,'btns'),n.ve.tabIndex=-1,k(n.Ce,'role','dialog'),k(n.Ce,'aria-modal','true'),k(n.Ce,i,'false'),k(n.Ce,'aria-describedby','cm__desc'),C?k(n.Ce,'aria-label',C):w&&k(n.Ce,'aria-labelledby','cm__title'),n.Ce.style.visibility='hidden';const e='box',t=o.i.guiOptions,a=t&&t.consentModal,s=(a&&a.layout||e).split(' ')[0]===e;w&&y&&s&&(n.je||(n.je=E(r),n.je.innerHTML=Q(),V(n.je,'btn'),V(n.je,'btn--close'),R(n.je,d,(()=>{S([])})),H(n.Qe,n.je)),k(n.je,'aria-label',y)),H(n.Qe,n.We),(g||b||v)&&H(n.Qe,n.Xe),H(n.Ce,n.Qe),H(n.ve,n.Ce)}w&&(n.Ye||(n.Ye=E(c),n.Ye.className=n.Ye.id='cm__title',k(n.Ye,'role','heading'),k(n.Ye,'aria-level','2'),H(n.We,n.Ye)),n.Ye.innerHTML=w);let x=p.description;if(x&&(o.H&&(x=x.replace('{{revisionMessage}}',o.F?'':p.revisionMessage||'')),n.Ze||(n.Ze=E(c),n.Ze.className=n.Ze.id='cm__desc',H(n.We,n.Ze)),n.Ze.innerHTML=x),g&&(n.et||(n.et=E(r),H(n.et,me()),V(n.et,'btn'),k(n.et,f,'all'),R(n.et,d,(()=>{S('all')}))),n.et.firstElementChild.innerHTML=g),b&&(n.Ve||(n.Ve=E(r),H(n.Ve,me()),V(n.Ve,'btn'),k(n.Ve,f,'necessary'),R(n.Ve,d,(()=>{S([])}))),n.Ve.firstElementChild.innerHTML=b),v&&(n.tt||(n.tt=E(r),H(n.tt,me()),V(n.tt,'btn'),V(n.tt,'btn--secondary'),k(n.tt,f,'show'),R(n.tt,'mouseenter',(()=>{o.A||ue(e,t)})),R(n.tt,d,s)),n.tt.firstElementChild.innerHTML=v),n.ot||(n.ot=E(c),V(n.ot,l),b&&H(n.ot,n.Ve),g&&H(n.ot,n.et),(g||b)&&H(n.Qe,n.ot),H(n.Xe,n.ot)),n.tt&&!n.nt&&(n.nt=E(c),n.Ve&&n.et?(V(n.nt,l),H(n.nt,n.tt),H(n.Xe,n.nt)):(H(n.ot,n.tt),V(n.ot,l+'--uneven'))),h){if(!n.st){let e=E(c),t=E(c);n.st=E(c),V(e,'footer'),V(t,'links'),V(n.st,'link-group'),H(t,n.st),H(e,t),H(n.Ce,e)}n.st.innerHTML=h}fe(0),o.D||(o.D=!0,Y(m.ie.pe,_,n.Ce),t(e),H(n.qe,n.ve),setTimeout((()=>F(n.ve,'cc--anim')),100)),X(1),U(n.Qe,e,ue,t)},be=e=>y(e)&&e in m.o._,ve=()=>m.o.l||m.o.i.language.default,ye=e=>{e&&(m.o.l=e)},he=async e=>{const t=m.o;let o=be(e)?e:ve(),n=t._[o];if(!n)return!1;if(y(n)){const e=await(async e=>{try{const t=await fetch(e);return!(!t||!t.ok)&&await t.json()}catch(e){return!1}})(n);if(!e)return!1;n=e}return t.u=n,ye(o),!0},Ce=()=>{let e=m.o.i.language.rtl,t=m.ae.qe;e&&t&&(v(e)||(e=[e]),b(e,m.o.l)?F(t,'cc--rtl'):P(t,'cc--rtl'))},we=()=>{const e=m.ae;if(!e.qe){e.qe=E(c),e.qe.id='cc-main',Ce();let t=m.o.i.root;t&&y(t)&&(t=document.querySelector(t)),(t||e.Ue.body).appendChild(e.qe)}},Se=e=>{const{hostname:t,protocol:o}=location,{name:n,path:a,domain:s,sameSite:c}=m.t.cookie,r=encodeURIComponent(JSON.stringify(m.o.p)),i=e?(()=>{const e=m.o.C,t=e?new Date-e:0;return 864e5*B()-t})():864e5*B(),l=new Date;l.setTime(l.getTime()+i);let d=n+'='+r+(0!==i?'; expires='+l.toUTCString():'')+'; Path='+a+'; SameSite='+c;b(t,'.')&&(d+='; Domain='+s),'https:'===o&&(d+='; Secure'),document.cookie=d,m.o.p},xe=(e,t,o)=>{const n=o||m.t.cookie.domain,a=t||m.t.cookie.path,s='www.'===n.slice(0,4),c=s&&n.substring(4),r=(e,t)=>{document.cookie=e+'=; path='+a+(t?'; domain=.'+t:'')+'; expires=Thu, 01 Jan 1970 00:00:01 GMT;'};for(const t of e)r(t),r(t,n),s&&r(t,c)},Me=e=>(e=>{let t;try{t=JSON.parse(decodeURIComponent(e))}catch(e){t={}}return t})(De(e||m.t.cookie.name,!0)),De=(e,t)=>{const o=document.cookie.match('(^|;)\\s*'+e+'\\s*=\\s*([^;]+)');return o?t?o.pop():e:''},Te=e=>{const t=document.cookie.split(/;\s*/),o=[];for(const n of t){let t=n.split('=')[0];if(e)try{e.test(t)&&o.push(t)}catch(e){}else o.push(t)}return o},Ee=(o,n=[])=>{((e,t)=>{const{L:o,O:n,R:a,A:s,ee:c,Y:r}=m.o;let i=[];if(e){v(e)?i.push(...e):y(e)&&(i='all'===e?o:[e]);for(const e of o)c[e]=b(i,e)?w(r[e]):[]}else i=s?(()=>{const e=m.ae.se;if(!e)return[];let t=[];for(let o in e)e[o].checked&&t.push(o);return t})():n;i=i.filter((e=>!b(o,e)||!b(t,e))),i.push(...a),J(i)})(o,n),(e=>{const t=m.o,{ee:o,R:n,Z:a,Y:s,L:c}=t,r=c;t.oe=I(a);for(const e of r){const t=s[e],c=w(t),r=o[e]&&o[e].length>0,i=b(n,e);if(0!==c.length){if(a[e]=[],i)a[e].push(...c);else if(r){const t=o[e];a[e].push(...t)}else a[e]=[];a[e]=S(a[e])}}})(),(()=>{const o=m.o;m.t.mode===t&&o.M?o.V=G(o.B,o.O):o.V=G(o.O,o.p.categories);let n=o.V.length>0,a=!1;for(const e of o.L)o.te[e]=G(o.Z[e],o.oe[e]),o.te[e].length>0&&(a=!0);const s=m.ae.se;for(let e in s)s[e].checked=b(o.O,e);for(const e of o.L){const t=m.ae.ce[e],n=o.Z[e];for(const e in t)t[e].checked=b(n,e)}o.h||(o.h=new Date),o.S||(o.S=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))),o.p={categories:I(o.O),revision:m.t.revision,data:o.v,consentTimestamp:o.h.toISOString(),consentId:o.S,services:I(o.Z)};let c=!1;(o.M||n||a)&&(o.M&&(o.M=!1,c=!0),o.C?o.C=new Date:o.C=o.h,o.p.lastConsentTimestamp=o.C.toISOString(),Se(),m.t.autoClearCookies&&(c||!o.M&&n)&&(e=>{const t=m.o,o=Te();t.j=!1;let n=e?t.L:t.V;n=n.filter((e=>{let o=t.I[e];return!!o&&!o.readOnly&&!!o.autoClear}));for(const a of n){const n=t.I[a].autoClear,s=n&&n.cookies||[],c=b(t.V,a),r=!b(t.O,a),i=c&&r;if(e&&r||!e&&i){!0===n.reloadPage&&i&&(t.j=!0);for(const e of s){let t=[];const n=e.name,a=e.domain,s=e.path;if(n instanceof RegExp)for(let e of o)n.test(e)&&t.push(e);else{let e=g(o,n);e>-1&&t.push(o[e])}t.length>0&&xe(t,s,a)}}}})(c),Z()),c&&(Y(m.ie.le),Y(m.ie.de),m.t.mode===e)||((n||a)&&Y(m.ie.fe),o.j&&location.reload())})()},ke=e=>{const t=m.o.M?[]:m.o.O;return b(t,e)},Ae=(e,t)=>{const{L:o,Y:n}=m.o;if(!(e&&t&&y(t)&&b(o,t)&&0!==w(n[t]).length))return!1;((e,t)=>{const o=m.o,{Y:n,ee:a,A:s}=o,c=m.ae.ce[t]||{},r=m.ae.se[t]||{},i=w(n[t]);if(a[t]=[],y(e)){if('all'===e){if(a[t].push(...i),s)for(let e in c)c[e].checked=!0,T(c[e])}else if(b(i,e)&&a[t].push(e),s)for(let t in c)c[t].checked=e===t,T(c[t])}else if(v(e))for(let o of i){const n=b(e,o);n&&a[t].push(o),s&&(c[o].checked=n,T(c[o]))}const l=0===a[t].length;o.O=l?o.O.filter((e=>e!==t)):S([...o.O,t]),s&&(r.checked=!l,T(r))})(e,t),Ee()},Ne=(e,t)=>{const o=m.o.M?[]:m.o.Z[t];return b(o,e)},He=e=>''!==De(e,!0),Fe=(e,t,o)=>{let n=[];const a=e=>{if(y(e)){let t=De(e);''!==t&&n.push(t)}else n.push(...Te(e))};if(v(e))for(let t of e)a(t);else a(e);xe(n,t,o)},Ve=e=>{const{ae:t,o:n}=m;if(!n.T){if(!n.D){if(!e)return;ge(Le,we)}n.T=!0,n.J=x(),n.g&&q(!0),F(t.he,o),k(t.Ce,i,'false'),$(t.ve,1),Y(m.ie._e,_)}},je=()=>{const{ae:e,o:t,ie:n}=m;t.T&&(t.T=!1,t.g&&q(),$(e.Ke),P(e.he,o),k(e.Ce,i,'true'),$(t.J),t.J=null,Y(n.ue,_))},Pe=()=>{const e=m.o;e.k||(e.A||ue(Le,we),e.k=!0,F(m.ae.he,n),k(m.ae.we,i,'false'),e.T?e.U=x():e.J=x(),$(m.ae.ye,2),Y(m.ie._e,u))},Ie=()=>{const e=m.o;e.k&&(e.k=!1,(()=>{const e=$e(),o=m.o.I,n=m.ae.se,a=m.ae.ce,s=e=>m.o.i.mode===t&&!!o[e].enabled;for(const t in n){const c=!!o[t].readOnly;n[t].checked=c||(e?ke(t):s(t));for(const o in a[t])a[t][o].checked=c||(e?Ne(o,t):s(t))}})(),$(m.ae.Be),P(m.ae.he,n),k(m.ae.we,i,'true'),e.T?($(e.U,1),e.U=null):($(e.J),e.J=null),Y(m.ie.ue,u))};var Le={show:Ve,hide:je,showPreferences:Pe,hidePreferences:Ie,acceptCategory:Ee};const Oe=async(e,t)=>{if(!be(e))return!1;const o=m.o;return!(e===ve()&&!0!==t||!await he(e)||(ye(e),o.D&&ge(Le,we),o.A&&ue(Le,we),Ce(),0))},Re=()=>{const{P:e,Z:t}=m.o,{accepted:o,rejected:n}=(()=>{const{M:e,O:t,L:o}=m.o;return{accepted:t,rejected:e?[]:o.filter((e=>!b(t,e)))}})();return I({acceptType:e,acceptedCategories:o,rejectedCategories:n,acceptedServices:t,rejectedServices:L()})},Be=(e,t)=>{let o=document.querySelector('script[src="'+e+'"]');return new Promise((n=>{if(o)return n(!0);if(o=E('script'),h(t))for(const e in t)k(o,e,t[e]);o.onload=()=>n(!0),o.onerror=()=>{o.remove(),n(!1)},o.src=e,H(document.head,o)}))},Ge=e=>{let t,o=e.value,n=e.mode,a=!1;const s=m.o;if('update'===n){s.v=t=Je('data');const e=typeof t==typeof o;if(e&&'object'==typeof t){!t&&(t={});for(let e in o)t[e]!==o[e]&&(t[e]=o[e],a=!0)}else!e&&t||t===o||(t=o,a=!0)}else t=o,a=!0;return a&&(s.v=t,s.p.data=t,Se(!0)),a},Je=(e,t)=>{const o=Me(t);return e?o[e]:o},Ue=e=>{const t=m.t,o=m.o.i;return e?t[e]||o[e]:{...t,...o,cookie:{...t.cookie}}},$e=()=>!m.o.M,ze=async e=>{const{o:o,t:n,ie:a}=m,c=window;if(!c._ccRun){if(c._ccRun=!0,(e=>{const{ae:o,t:n,o:a}=m,c=n,r=a,{cookie:i}=c,l=m.re,d=e.cookie,f=e.categories,_=w(f)||[],u=navigator,p=document;o.Ue=p,o.he=p.documentElement,i.domain=location.hostname,r.i=e,r.I=f,r.L=_,r._=e.language.translations,r.g=!!e.disablePageInteraction,l.le=e.onFirstConsent,l.de=e.onConsent,l.fe=e.onChange,l.ue=e.onModalHide,l._e=e.onModalShow,l.pe=e.onModalReady;const{mode:g,autoShow:v,lazyHtmlGeneration:y,autoClearCookies:C,revision:S,manageScriptTags:x,hideFromBots:M}=e;g===t&&(c.mode=g),'boolean'==typeof C&&(c.autoClearCookies=C),'boolean'==typeof x&&(c.manageScriptTags=x),'number'==typeof S&&S>=0&&(c.revision=S,r.H=!0),'boolean'==typeof v&&(c.autoShow=v),'boolean'==typeof y&&(c.lazyHtmlGeneration=y),!1===M&&(c.hideFromBots=!1),!0===c.hideFromBots&&u&&(r.G=u.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(u.userAgent)||u.webdriver),h(d)&&(c.cookie={...i,...d}),c.autoClearCookies,r.H,c.manageScriptTags,(e=>{const{I:t,Y:o,Z:n,ee:a,R:s}=m.o;for(let c of e){const e=t[c],r=e.services||{},i=h(r)&&w(r)||[];o[c]={},n[c]=[],a[c]=[],e.readOnly&&(s.push(c),n[c]=i),m.ae.ce[c]={};for(let e of i){const t=r[e];t.Se=!1,o[c][e]=t}}})(_),(()=>{if(!m.t.manageScriptTags)return;const e=m.o,t=D(document,'script['+s+']');for(const o of t){let t=N(o,s),n=o.dataset.service||'',a=!1;if(t&&'!'===t.charAt(0)&&(t=t.slice(1),a=!0),'!'===n.charAt(0)&&(n=n.slice(1),a=!0),b(e.L,t)&&(e.ne.push({Me:o,xe:!1,Ee:a,De:t,Te:n}),n)){const o=e.Y[t];o[n]||(o[n]={Se:!1})}}})(),ye((()=>{const e=m.o.i.language.autoDetect;if(e){let t;if('browser'===e?t=navigator.language.slice(0,2).toLowerCase():'document'===e&&(t=document.documentElement.lang),be(t))return t}return ve()})())})(e),o.G)return;(()=>{const e=m.o,o=m.t,n=Me(),{categories:a,services:s,consentId:c,consentTimestamp:r,lastConsentTimestamp:i,data:l,revision:d}=n,f=v(a);e.p=n,e.S=c;const _=!!c&&y(c);e.h=r,e.h&&(e.h=new Date(r)),e.C=i,e.C&&(e.C=new Date(i)),e.v=void 0!==l?l:null,e.H&&_&&d!==o.revision&&(e.F=!1),e.M=!(_&&e.F&&e.h&&e.C&&f),e.M,e.M?o.mode===t&&((()=>{const e=m.o;for(const o of e.L){const n=e.I[o];if(n.readOnly||n.enabled&&e.i.mode===t){e.B.push(o);const t=e.Y[o]||{};for(let n in t)e.Z[o].push(n)}}})(),e.O=[...e.B]):(e.Z={...e.Z,...s},J([...e.R,...a])),e.ee={...e.Z}})();const i=$e();if(!await he())return!1;if(U(null,r=Le,ue,we),m.o.M&&ge(r,we),m.t.lazyHtmlGeneration||ue(r,we),(()=>{const e=m.ae,t=m.o;R(e.he,'keydown',(e=>{if('Tab'!==e.key)return;if(!t.k&&!t.T)return;const o=t.W,n=t.K;if(o.length>0){const t=x();e.shiftKey?t!==o[0]&&n.contains(t)||(M(e),$(o[1])):t!==o[1]&&n.contains(t)||(M(e),$(o[0]))}}),!0)})(),n.autoShow&&!i&&Ve(!0),i)return Z(),Y(a.de);n.mode===t&&Z(o.B)}var r},qe=e=>{const{qe:t,he:s}=m.ae,{name:c,path:r,domain:i}=m.t.cookie;e&&Fe(c,r,i);for(const{me:e,ge:t,be:o}of m.o.m)e.removeEventListener(t,o);t&&t.remove(),s&&s.classList.remove(a,n,o);const l=new p;for(const e in m)m[e]=l[e];window._ccRun=!1};export{Ee as acceptCategory,Ae as acceptService,ke as acceptedCategory,Ne as acceptedService,Fe as eraseCookies,Ue as getConfig,Je as getCookie,Re as getUserPreferences,je as hide,Ie as hidePreferences,Be as loadScript,qe as reset,ze as run,Ge as setCookieData,Oe as setLanguage,Ve as show,Pe as showPreferences,$e as validConsent,He as validCookie};
/*!
* CookieConsent 3.0.0-rc.13
* CookieConsent 3.0.0-rc.14
* https://github.com/orestbida/cookieconsent

@@ -7,2 +7,2 @@ * Author Orest Bida

*/
var e,t;e=this,t=function(e){'use strict';const t='opt-in',o='opt-out',n='show--consent',a='show--preferences',s='disable--interaction',c='data-category',r='div',i='button',l='aria-hidden',d='btn-group',f='click',_='data-role',u='consentModal',p='preferencesModal';class m{constructor(){this.t={mode:t,revision:0,autoShow:!0,lazyHtmlGeneration:!0,autoClearCookies:!0,manageScriptTags:!0,hideFromBots:!0,cookie:{name:'cc_cookie',expiresAfterDays:182,domain:'',path:'/',sameSite:'Lax'}},this.o={i:{},l:'',_:{},u:{},p:{},m:[],g:!1,v:null,h:null,C:null,S:'',T:!0,M:!1,D:!1,k:!1,A:!1,N:!1,H:!1,I:!1,V:!1,P:[],j:!1,F:!0,O:[],R:!1,B:'',G:!1,J:[],L:[],U:[],$:[],q:!1,K:!1,W:!1,X:[],Y:[],Z:[],ee:{},te:{},oe:{},ne:{},ae:{},se:[],ce:[]},this.re={ie:{},le:{}},this.de={},this.fe={_e:'cc:onFirstConsent',ue:'cc:onConsent',pe:'cc:onChange',me:'cc:onModalShow',ge:'cc:onModalHide',be:'cc:onModalReady'}}}const g=new m,b=(e,t)=>e.indexOf(t),y=(e,t)=>-1!==b(e,t),v=e=>Array.isArray(e),h=e=>'string'==typeof e,C=e=>!!e&&'object'==typeof e&&!v(e),w=e=>'function'==typeof e,S=e=>Object.keys(e),T=e=>Array.from(new Set(e)),x=()=>document.activeElement,M=e=>e.preventDefault(),D=(e,t)=>e.querySelectorAll(t),E=e=>e.dispatchEvent(new Event('change')),k=e=>{const t=document.createElement(e);return e===i&&(t.type=e),t},A=(e,t,o)=>e.setAttribute(t,o),N=(e,t,o)=>{e.removeAttribute(o?'data-'+t:t)},H=(e,t,o)=>e.getAttribute(o?'data-'+t:t),I=(e,t)=>e.appendChild(t),V=(e,t)=>e.classList.add(t),P=(e,t)=>V(e,'cm__'+t),j=(e,t)=>V(e,'pm__'+t),F=(e,t)=>e.classList.remove(t),O=e=>{if('object'!=typeof e)return e;if(e instanceof Date)return new Date(e.getTime());let t=Array.isArray(e)?[]:{};for(let o in e){let n=e[o];t[o]=O(n)}return t},R=()=>{const e={},{J:t,ee:o,te:n}=g.o;for(const a of t)e[a]=L(n[a],S(o[a]));return e},B=(e,t)=>dispatchEvent(new CustomEvent(e,{detail:t})),G=(e,t,o,n)=>{e.addEventListener(t,o),n&&g.o.m.push({ye:e,ve:t,he:o})},J=()=>{const e=g.t.cookie.expiresAfterDays;return w(e)?e(g.o.B):e},L=(e,t)=>{const o=e||[],n=t||[];return o.filter((e=>!y(n,e))).concat(n.filter((e=>!y(o,e))))},U=e=>{g.o.L=T(e),g.o.B=(()=>{let e='custom';const{L:t,J:o,U:n}=g.o,a=t.length;return a===o.length?e='all':a===n.length&&(e='necessary'),e})()},z=(e,t,o,n)=>{const{show:a,showPreferences:s,hide:c,hidePreferences:r,acceptCategory:i}=t,l=e||document,d=e=>D(l,`[data-cc="${e}"]`),_=(e,t)=>{M(e),i(t),r(),c()},u=d('show-preferencesModal'),p=d('show-consentModal'),m=d('accept-all'),b=d('accept-necessary'),y=d('accept-custom'),v=g.t.lazyHtmlGeneration;for(const e of u)A(e,'aria-haspopup','dialog'),G(e,f,(e=>{M(e),s()})),v&&G(e,'mouseenter',(e=>{M(e),g.o.A||o(t,n)}),!0);for(let e of p)A(e,'aria-haspopup','dialog'),G(e,f,(e=>{M(e),a(!0)}),!0);for(let e of m)G(e,f,(e=>{_(e,'all')}),!0);for(let e of y)G(e,f,(e=>{_(e)}),!0);for(let e of b)G(e,f,(e=>{_(e,[])}),!0)};let $;const q=e=>{clearTimeout($),e?V(g.re.Ce,s):$=setTimeout((()=>{F(g.re.Ce,s)}),500)},K=()=>{const{o:e,re:t}=g,o=['[href]',i,'input','details','[tabindex="0"]'].join(':not([tabindex="-1"]), '),n=(e,t)=>{const n=D(e,o);t[0]=n[0],t[1]=n[n.length-1]};e.M&&n(t.we,e.X),e.A&&n(t.Se,e.Y),e.I=!1,e.H=!1},Q=(e,t,o)=>{const{pe:n,ue:a,_e:s,ge:c,be:r,me:i}=g.de,l=g.fe,d={cookie:g.o.p};if(t){const n={modalName:t};return e===l.me?w(i)&&i(n):e===l.ge?w(c)&&c(n):(n.modal=o,w(r)&&r(n)),B(e,n)}e===l._e?w(s)&&s(O(d)):e===l.ue?w(a)&&a(O(d)):(d.changedCategories=g.o.O,d.changedServices=g.o.ne,w(n)&&n(O(d))),B(e,O(d))},W=e=>{const{te:t,ne:o,J:n,ee:a,se:s,ce:r,p:i,O:l}=g.o;for(const e of n){const n=o[e]||t[e]||[];for(const o of n){const n=a[e][o];if(!n)continue;const{onAccept:s,onReject:c}=n;!n.Te&&y(t[e],o)&&w(s)?(n.Te=!0,s()):n.Te&&!y(t[e],o)&&w(c)&&(n.Te=!1,c())}}if(!g.t.manageScriptTags)return;const d=s,f=e||i.categories||[],_=(e,n)=>{if(n<e.length){const a=e[n],s=r[n],i=s.xe,d=s.Me,u=y(f,i),p=!!d&&y(t[i],d);if(!s.De){let t=!d&&!s.Ee&&u,r=d&&!s.Ee&&p,f=!d&&s.Ee&&!u&&y(l,i),m=d&&s.Ee&&!p&&y(o[i]||[],d);if(t||f||r||m){s.De=!0;const t=H(a,'type',!0);N(a,'type',!!t),N(a,c);let o=H(a,'src',!0);o&&N(a,'src',!0);const r=k('script');r.textContent=a.innerHTML;for(const{nodeName:e}of a.attributes)A(r,e,a[e]||H(a,e));if(t&&(r.type=t),o?r.src=o:o=a.src,o&&(r.onload=r.onerror=()=>{_(e,++n)}),a.replaceWith(r),o)return}}_(e,++n)}};_(d,0)},X='bottom',Y='left',Z='center',ee='right',te='inline',oe='wide',ne='pm--',ae=['middle','top',X],se=[Y,Z,ee],ce={box:{ke:[oe,te],Ae:ae,Ne:se,He:X,Ie:ee},cloud:{ke:[te],Ae:ae,Ne:se,He:X,Ie:Z},bar:{ke:[te],Ae:ae.slice(1),Ne:[],He:X,Ie:''}},re={box:{ke:[],Ae:[],Ne:[],He:'',Ie:''},bar:{ke:[oe],Ae:[],Ne:[Y,ee],He:'',Ie:Y}},ie=e=>{const t=g.o.i.guiOptions,o=t?.consentModal,n=t?.preferencesModal;0===e&&le(g.re.we,ce,o,'cm--','box','cm'),1===e&&le(g.re.Se,re,n,ne,'box','pm')},le=(e,t,o,n,a,s)=>{e.className=s;const c=o?.layout,r=o?.position,i=o?.flipButtons,l=!1!==o?.equalWeightButtons,d=c?.split(' ')||[],f=d[0],_=d[1],u=f in t?f:a,p=t[u],m=y(p.ke,_)&&_,b=r?.split(' ')||[],v=b[0],h=n===ne?b[0]:b[1],C=y(p.Ae,v)?v:p.He,w=y(p.Ne,h)?h:p.Ie,S=t=>V(e,n+t);S(u),S(m),S(C),S(w),i&&S('flip');const T=s+'__btn--secondary';if('cm'===s){const{Ve:e,Pe:t}=g.re;e&&(l?F(e,T):V(e,T)),t&&(l?F(t,T):V(t,T))}else{const{je:e}=g.re;e&&(l?F(e,T):V(e,T))}},de=(e,t)=>{const o=g.o,n=g.re,{hide:a,hidePreferences:s,acceptCategory:c}=e,u=e=>{c(e),s(),a()},m=o.u&&o.u.preferencesModal;if(!m)return;const b=m.title,y=m.closeIconLabel,v=m.acceptAllBtn,w=m.acceptNecessaryBtn,T=m.savePreferencesBtn,x=m.sections,M=v||w||T;if(n.Fe)n.Oe=k(r),j(n.Oe,'body');else{n.Fe=k(r),V(n.Fe,'pm-wrapper'),n.Se=k(r),n.Se.style.visibility='hidden',V(n.Se,'pm'),A(n.Se,'role','dialog'),A(n.Se,l,!0),A(n.Se,'aria-modal',!0),A(n.Se,'aria-labelledby','pm__title'),G(n.Ce,'keydown',(e=>{27===e.keyCode&&s()}),!0),n.Re=k(r),j(n.Re,'header'),n.Be=k(r),j(n.Be,'title'),n.Be.id='pm__title',A(n.Be,'role','heading'),A(n.Be,'aria-level','2'),n.Ge=k(i),j(n.Ge,'close-btn'),A(n.Ge,'aria-label',m.closeIconLabel||''),G(n.Ge,f,s),n.Je=k(r),j(n.Je,'body'),n.Le=k(r),j(n.Le,'footer');var D=k(r);V(D,'btns');var E=k(r),N=k(r);j(E,d),j(N,d),I(n.Le,E),I(n.Le,N),I(n.Re,n.Be),I(n.Re,n.Ge),I(n.Se,n.Re),I(n.Se,n.Je),M&&I(n.Se,n.Le),I(n.Fe,n.Se)}let H;b&&(n.Be.innerHTML=b,y&&A(n.Ge,'aria-label',y)),x&&x.forEach((e=>{const t=e.title,a=e.description,s=e.linkedCategory,c=s&&o.G[s],d=e.cookieTable,_=d?.body,u=_?.length>0,p=!!c,g=p&&o.ee[s],b=C(g)&&S(g)||[],y=p&&(!!a||!!u||S(g).length>0);var v=k(r);if(j(v,'section'),y||a){var w=k(r);j(w,'section-desc-wrapper')}let T=b.length;if(y&&T>0){const e=k(r);j(e,'section-services');for(const t of b){const o=g[t]?.label||t,n=k(r),a=k(r),i=k(r),l=k(r);j(n,'service'),j(l,'service-title'),j(a,'service-header'),j(i,'service-icon');const d=fe(o,t,c,!0,s);l.innerHTML=o,I(a,i),I(a,l),I(n,a),I(n,d),I(e,n)}I(w,e)}if(t){var x=k(r),M=k(p?i:r);if(j(x,'section-title-wrapper'),j(M,'section-title'),M.innerHTML=t,I(x,M),p){const e=k('span');j(e,'section-arrow'),I(x,e),v.className+='--toggle';const o=fe(t,s,c);let n=m.serviceCounterLabel;if(T>0&&h(n)){let e=k('span');j(e,'badge'),j(e,'service-counter'),A(e,l,!0),A(e,'data-servicecounter',T),n&&(n=n.split('|'),n=n.length>1&&T>1?n[1]:n[0],A(e,'data-counterlabel',n)),e.innerHTML=T+(n?' '+n:''),I(M,e)}if(y){j(v,'section--expandable');var D=s+'-desc';A(M,'aria-expanded',!1),A(M,'aria-controls',D)}I(x,o)}else A(M,'role','heading'),A(M,'aria-level','3');I(v,x)}if(a){var E=k(r);j(E,'section-desc'),E.innerHTML=a,I(w,E)}if(y&&(A(w,l,'true'),w.id=D,((e,t,o)=>{G(M,f,(()=>{t.classList.contains('is-expanded')?(F(t,'is-expanded'),A(o,'aria-expanded','false'),A(e,l,'true')):(V(t,'is-expanded'),A(o,'aria-expanded','true'),A(e,l,'false'))}))})(w,v,M),u)){const e=k('table'),t=k('thead'),o=k('tbody');j(e,'section-table'),j(t,'table-head'),j(o,'table-body');const a=d.headers,s=S(a),c=n.Ue.createDocumentFragment(),i=k('tr');A(i,'role','row');for(const e of s){const t=a[e],o=k('th');o.id='cc__row-'+t,A(o,'role','columnheader'),A(o,'scope','col'),j(o,'table-th'),o.innerHTML=t,I(c,o)}I(i,c),I(t,i);const l=n.Ue.createDocumentFragment();for(const e of _){const t=k('tr');A(t,'role','row'),j(t,'table-tr');for(const o of s){const n=a[o],s=e[o],c=k('td'),i=k(r);j(c,'table-td'),A(c,'data-column',n),A(c,'headers','cc__row-'+n),i.insertAdjacentHTML('beforeend',s),I(c,i),I(t,c)}I(l,t)}I(o,l),I(e,t),I(e,o),I(w,e)}(y||a)&&I(v,w);const N=n.Oe||n.Je;p?(H||(H=k(r),j(H,'section-toggles')),H.appendChild(v)):H=null,I(N,H||v)})),(v||w)&&(w&&(n.je||(n.je=k(i),j(n.je,'btn'),A(n.je,_,'necessary'),I(E,n.je),G(n.je,f,(()=>u([])))),n.je.innerHTML=w),v&&(n.ze||(n.ze=k(i),j(n.ze,'btn'),A(n.ze,_,'all'),I(E,n.ze),G(n.ze,f,(()=>u('all')))),n.ze.innerHTML=v)),T&&(n.$e||(n.$e=k(i),j(n.$e,'btn'),j(n.$e,'btn--secondary'),A(n.$e,_,'save'),I(N,n.$e),G(n.$e,f,(()=>u()))),n.$e.innerHTML=T),n.Oe&&(n.Se.replaceChild(n.Oe,n.Je),n.Je=n.Oe),ie(1),o.A||(o.A=!0,Q(g.fe.be,p,n.Se),t(e),setTimeout(K,10),I(n.qe,n.Fe),setTimeout((()=>V(n.Fe,'cc--anim')),100))};function fe(e,t,n,a,s){const r=g.o,i=g.re,d=k('label'),_=k('input'),u=k('span'),p=k('span'),m=k('span'),b=k('span');if(_.type='checkbox',V(d,'section__toggle-wrapper'),V(_,'section__toggle'),V(m,'toggle__icon-on'),V(b,'toggle__icon-off'),V(u,'toggle__icon'),V(p,'toggle__label'),A(u,l,'true'),a?(V(d,'toggle-service'),A(_,c,s),i.le[s][t]=_):i.ie[t]=_,a?(e=>{G(_,'change',(()=>{const t=i.le[e],o=i.ie[e];r.oe[e]=[];for(let o in t){const n=t[o];n.checked&&r.oe[e].push(n.value)}o.checked=r.oe[e].length>0}))})(s):(e=>{G(_,f,(()=>{const t=i.le[e],o=_.checked;r.oe[e]=[];for(let n in t)t[n].checked=o,o&&r.oe[e].push(n)}))})(t),_.value=t,p.textContent=e.replace(/<.*>.*<\/.*>/gm,''),I(u,b),I(u,m),r.T)(n.readOnly||r.i.mode===o&&n.enabled)&&(_.checked=!0);else if(a){const e=r.te[s];_.checked=n.readOnly||y(e,t)}else y(r.L,t)&&(_.checked=!0);return n.readOnly&&(_.disabled=!0),I(d,_),I(d,u),I(d,p),d}const _e=(e,t)=>{const o=g.o,n=g.re,{hide:a,showPreferences:s,acceptCategory:c}=e,p=o.u&&o.u.consentModal;if(!p)return;const m=p.acceptAllBtn,b=p.acceptNecessaryBtn,y=p.showPreferencesBtn,v=p.closeIconLabel,h=p.footer,C=p.label,w=p.title,S=e=>{a(),c(e)};if(!n.Ke){n.Ke=k(r),n.we=k(r),n.Qe=k(r),n.We=k(r),n.Xe=k(r),V(n.Ke,'cm-wrapper'),V(n.we,'cm'),P(n.Qe,'body'),P(n.We,'texts'),P(n.Xe,'btns'),A(n.we,'role','dialog'),A(n.we,'aria-modal','true'),A(n.we,l,'false'),A(n.we,'aria-describedby','cm__desc'),C?A(n.we,'aria-label',C):w&&A(n.we,'aria-labelledby','cm__title'),n.we.style.visibility='hidden';const e='box',t=o.i.guiOptions?.consentModal,a=(t?.layout||e).split(' ')[0]===e;w&&v&&a&&(n.Pe||(n.Pe=k(i),P(n.Pe,'btn'),P(n.Pe,'btn--close'),G(n.Pe,f,(()=>{S([])})),I(n.Qe,n.Pe)),A(n.Pe,'aria-label',v)),I(n.Qe,n.We),(m||b||y)&&I(n.Qe,n.Xe),I(n.we,n.Qe),I(n.Ke,n.we)}w&&(n.Ye||(n.Ye=k(r),n.Ye.className=n.Ye.id='cm__title',A(n.Ye,'role','heading'),A(n.Ye,'aria-level','2'),I(n.We,n.Ye)),n.Ye.innerHTML=w);let T=p.description;if(T&&(o.j&&(T=T.replace('{{revisionMessage}}',o.F?'':p.revisionMessage||'')),n.Ze||(n.Ze=k(r),n.Ze.className=n.Ze.id='cm__desc',I(n.We,n.Ze)),n.Ze.innerHTML=T),m&&(n.et||(n.et=k(i),P(n.et,'btn'),A(n.et,_,'all'),G(n.et,f,(()=>{S('all')}))),n.et.innerHTML=m),b&&(n.Ve||(n.Ve=k(i),P(n.Ve,'btn'),A(n.Ve,_,'necessary'),G(n.Ve,f,(()=>{S([])}))),n.Ve.innerHTML=b),y&&(n.tt||(n.tt=k(i),P(n.tt,'btn'),P(n.tt,'btn--secondary'),A(n.tt,_,'show'),G(n.tt,'mouseenter',(()=>{o.A||de(e,t)})),G(n.tt,f,s)),n.tt.innerHTML=y),n.ot||(n.ot=k(r),P(n.ot,d),b&&I(n.ot,n.Ve),m&&I(n.ot,n.et),(m||b)&&I(n.Qe,n.ot),I(n.Xe,n.ot)),n.tt&&!n.nt&&(n.nt=k(r),n.Ve&&n.et?(P(n.nt,d),I(n.nt,n.tt),I(n.Xe,n.nt)):(I(n.ot,n.tt),P(n.ot,'btn-group--uneven'))),h){if(!n.st){let e=k(r),t=k(r);n.st=k(r),P(e,'footer'),P(t,'links'),P(n.st,'link-group'),I(t,n.st),I(e,t),I(n.we,e)}n.st.innerHTML=h}ie(0),o.M||(o.M=!0,Q(g.fe.be,u,n.we),t(e),setTimeout(K,10),I(n.qe,n.Ke),setTimeout((()=>V(n.Ke,'cc--anim')),100)),z(n.Qe,e,de,t)},ue=e=>h(e)&&e in g.o._,pe=()=>g.o.l||g.o.i.language.default,me=e=>{e&&(g.o.l=e)},ge=async e=>{const t=g.o;let o;o=e&&ue(e)?e:pe();let n=t._[o];if(!n)return!1;if(h(n)){const e=await(async e=>{try{const t=await fetch(e,{method:'GET'});return!!t.ok&&await t.json()}catch(e){return!1}})(n);if(!e)return!1;n=e}return t.u=n,me(o),!0},be=()=>{let e=g.o.i.language.rtl,t=g.re.qe;e&&t&&(v(e)||(e=[e]),y(e,g.o.l)?V(t,'cc--rtl'):F(t,'cc--rtl'))},ye=e=>{const t=g.re;if(!t.qe){t.qe=k(r),t.qe.id='cc-main',t.qe.style.position='fixed',t.qe.style.zIndex='2147483647',be();let o=g.o.i.root;o&&h(o)&&(o=document.querySelector(o)),I(o||t.Ue.body,t.qe),(({hidePreferences:e})=>{const t=g.re;G(t.qe,f,(o=>{const n=g.o;n.V?t.Se.contains(o.target)?n.N=!0:(e(),n.N=!1):n.D&&t.we.contains(o.target)&&(n.N=!0)}))})(e)}},ve=e=>{const{hostname:t,protocol:o}=location,{name:n,path:a,domain:s,sameSite:c}=g.t.cookie,r=encodeURIComponent(JSON.stringify(g.o.p)),i=e?(()=>{const e=g.o.C,t=e?new Date-e:0;return 864e5*J()-t})():864e5*J(),l=new Date;l.setTime(l.getTime()+i);let d=n+'='+r+(0!==i?'; expires='+l.toUTCString():'')+'; Path='+a+'; SameSite='+c;y(t,'.')&&(d+='; Domain='+s),'https:'===o&&(d+='; Secure'),document.cookie=d,g.o.p},he=(e,t,o)=>{const n=o||g.t.cookie.domain,a=t||g.t.cookie.path,s='www.'===n.slice(0,4),c=s&&n.substring(4),r=(e,t)=>{document.cookie=e+'=; path='+a+(t?'; domain=.'+t:'')+'; expires=Thu, 01 Jan 1970 00:00:01 GMT;'};for(const t of e)r(t),r(t,n),s&&r(t,c)},Ce=e=>(e=>{let t;try{t=JSON.parse(decodeURIComponent(e))}catch(e){t={}}return t})(we(e||g.t.cookie.name,!0)),we=(e,t)=>{const o=document.cookie.match('(^|;)\\s*'+e+'\\s*=\\s*([^;]+)');return o?t?o.pop():e:''},Se=e=>{const t=document.cookie.split(/;\s*/),o=[];for(const n of t){let t=n.split('=')[0];if(e)try{e.test(t)&&o.push(t)}catch(e){}else o.push(t)}return o},Te=(e,n=[])=>{((e,t)=>{const{J:o,L:n,U:a,A:s,oe:c,ee:r}=g.o;let i=[];if(e){v(e)?i.push(...e):h(e)&&(i='all'===e?o:[e]);for(const e of o)c[e]=y(i,e)?S(r[e]):[]}else i=s?(()=>{const e=g.re.ie;if(!e)return[];let t=[];for(let o in e)e[o].checked&&t.push(o);return t})():n;i=i.filter((e=>!y(o,e)||!y(t,e))),i.push(...a),U(i)})(e,n),(e=>{const t=g.o,{oe:o,U:n,te:a,ee:s,J:c}=t,r=c;t.ae=O(a);for(const e of r){const t=s[e],c=S(t),r=o[e]?.length>0,i=y(n,e);if(0!==c.length){if(a[e]=[],i)a[e].push(...c);else if(r){const t=o[e];a[e].push(...t)}else a[e]=[];a[e]=T(a[e])}}})(),(()=>{const e=g.o;g.t.mode===o&&e.T?e.O=L(e.$,e.L):e.O=L(e.L,e.p.categories);let n=e.O.length>0,a=!1;for(const t of e.J)e.ne[t]=L(e.te[t],e.ae[t]),e.ne[t].length>0&&(a=!0);const s=g.re.ie;for(let t in s)s[t].checked=y(e.L,t);for(const t of e.J){const o=g.re.le[t],n=e.te[t];for(const e in o)o[e].checked=y(n,e)}e.h||(e.h=new Date),e.S||(e.S=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))),e.p={categories:O(e.L),revision:g.t.revision,data:e.v,consentTimestamp:e.h.toISOString(),consentId:e.S,services:O(e.te)};let c=!1;(e.T||n||a)&&(e.T&&(e.T=!1,c=!0),e.C?e.C=new Date:e.C=e.h,e.p.lastConsentTimestamp=e.C.toISOString(),ve(),g.t.autoClearCookies&&(c||!e.T&&n)&&(e=>{const t=g.o,o=Se();t.R=!1;let n=e?t.J:t.O;n=n.filter((e=>{let o=t.G[e];return!!o&&!o.readOnly&&!!o.autoClear}));for(const a of n){const n=t.G[a].autoClear,s=n?.cookies||[],c=y(t.O,a),r=!y(t.L,a),i=c&&r;if(e&&r||!e&&i){!0===n.reloadPage&&i&&(t.R=!0);for(const e of s){let t=[];const n=e.name,a=e.domain,s=e.path;if(n instanceof RegExp)for(let e of o)n.test(e)&&t.push(e);else{let e=b(o,n);e>-1&&t.push(o[e])}t.length>0&&he(t,s,a)}}}})(c),W()),c&&(Q(g.fe._e),Q(g.fe.ue),g.t.mode===t)||((n||a)&&Q(g.fe.pe),e.R&&location.reload())})()},xe=(e,t,o)=>{let n=[];const a=e=>{if(h(e)){let t=we(e);''!==t&&n.push(t)}else n.push(...Se(e))};if(v(e))for(let t of e)a(t);else a(e);he(n,t,o)},Me=e=>{const{re:t,o:o}=g;e&&!o.M&&_e(Ae,ye),o.M&&(o.D=!0,o.g&&q(!0),V(t.Ce,n),A(t.we,l,'false'),setTimeout((()=>{o.K=x(),o.P=o.X}),200),Q(g.fe.me,u))},De=()=>{const{re:e,o:t,fe:o}=g;t.M&&(t.D=!1,t.g&&q(),F(e.Ce,n),A(e.we,l,'true'),setTimeout((()=>{t.K.focus(),t.P=[]}),200),Q(o.ge,u))},Ee=()=>{const e=g.o;e.A&&e.k||(e.A||de(Ae,ye),V(g.re.Ce,a),A(g.re.Se,l,'false'),e.k=!0,setTimeout((()=>{e.V=!0}),1),setTimeout((()=>{e.D?e.W=x():e.K=x(),0!==e.Y.length&&(e.Y[0].focus(),e.P=e.Y)}),200),Q(g.fe.me,p))},ke=()=>{const e=g.o;e.k&&(F(g.re.Ce,a),A(g.re.Se,l,'true'),e.k=!1,setTimeout((()=>{e.V=!1}),1),e.D?(e.W&&e.W.focus(),e.P=e.X):(e.K&&e.K.focus(),e.P=[]),e.N=!1,Q(g.fe.ge,p))};var Ae={show:Me,hide:De,showPreferences:Ee,hidePreferences:ke,acceptCategory:Te};const Ne=(e,t)=>{const o=Ce(t);return e?o[e]:o},He=()=>!g.o.T;e.acceptCategory=Te,e.acceptService=(e,t)=>{const{J:o,ee:n}=g.o;if(!(e&&t&&h(t)&&y(o,t)&&0!==S(n[t]).length))return!1;((e,t)=>{const o=g.o,{ee:n,oe:a,A:s}=o,c=g.re.le[t]||{},r=g.re.ie[t]||{},i=S(n[t]);if(a[t]=[],h(e)){if('all'===e){if(a[t].push(...i),s)for(let e in c)c[e].checked=!0,E(c[e])}else if(y(i,e)&&a[t].push(e),s)for(let t in c)c[t].checked=e===t,E(c[t])}else if(v(e))for(let o of i){const n=y(e,o);n&&a[t].push(o),s&&(c[o].checked=n,E(c[o]))}const l=0===a[t].length;o.L=l?o.L.filter((e=>e!==t)):T([...o.L,t]),s&&(r.checked=!l,E(r))})(e,t),Te()},e.acceptedCategory=e=>{const t=g.o.T?[]:g.o.L;return y(t,e)},e.acceptedService=(e,t)=>{const o=g.o.T?[]:g.o.te[t];return y(o,e)},e.eraseCookies=xe,e.getConfig=e=>{const t=g.t,o=g.o.i;return e?t[e]||o[e]:{...t,...o,cookie:{...t.cookie}}},e.getCookie=Ne,e.getUserPreferences=()=>{const{B:e,te:t}=g.o,{accepted:o,rejected:n}=(()=>{const{T:e,L:t,J:o}=g.o;return{accepted:t,rejected:e?[]:o.filter((e=>!y(t,e)))}})();return O({acceptType:e,acceptedCategories:o,rejectedCategories:n,acceptedServices:t,rejectedServices:R()})},e.hide=De,e.hidePreferences=ke,e.loadScript=(e,t)=>{let o=document.querySelector('script[src="'+e+'"]');return new Promise((n=>{if(o)return n(!0);if(o=k('script'),C(t))for(const e in t)A(o,e,t[e]);o.onload=()=>n(!0),o.onerror=()=>{o.remove(),n(!1)},o.src=e,I(document.head,o)}))},e.reset=e=>{const{qe:t,Ce:o}=g.re,{name:c,path:r,domain:i}=g.t.cookie;e&&xe(c,r,i);for(const{ye:e,ve:t,he:o}of g.o.m)e.removeEventListener(t,o);t?.remove(),o?.classList.remove(s,a,n);const l=new m;for(const e in g)g[e]=l[e];window._ccRun=!1},e.run=async e=>{const{o:t,t:n,fe:a}=g,s=window;if(!s._ccRun){if(s._ccRun=!0,(e=>{const{re:t,t:n,o:a}=g,s=n,r=a,{cookie:i}=s,l=g.de,d=e.cookie,f=e.categories,_=S(f)||[],u=navigator,p=document;t.Ue=p,t.Ce=p.documentElement,i.domain=location.hostname,r.i=e,r.G=f,r.J=_,r._=e.language.translations,r.g=!!e.disablePageInteraction,l._e=e.onFirstConsent,l.ue=e.onConsent,l.pe=e.onChange,l.ge=e.onModalHide,l.me=e.onModalShow,l.be=e.onModalReady;const{mode:m,autoShow:b,lazyHtmlGeneration:v,autoClearCookies:h,revision:w,manageScriptTags:T,hideFromBots:x}=e;m===o&&(s.mode=m),'boolean'==typeof h&&(s.autoClearCookies=h),'boolean'==typeof T&&(s.manageScriptTags=T),'number'==typeof w&&w>=0&&(s.revision=w,r.j=!0),'boolean'==typeof b&&(s.autoShow=b),'boolean'==typeof v&&(s.lazyHtmlGeneration=v),!1===x&&(s.hideFromBots=!1),!0===s.hideFromBots&&u&&(r.q=u.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(u.userAgent)||u.webdriver),C(d)&&(s.cookie={...i,...d}),s.autoClearCookies,r.j,s.manageScriptTags,(e=>{const{G:t,ee:o,te:n,oe:a,U:s}=g.o;for(let c of e){const e=t[c],r=e.services||{},i=C(r)&&S(r)||[];o[c]={},n[c]=[],a[c]=[],e.readOnly&&(s.push(c),n[c]=i),g.re.le[c]={};for(let e of i){const t=r[e];t.Te=!1,o[c][e]=t}}})(_),(()=>{if(!g.t.manageScriptTags)return;const e=g.o;e.se=D(g.re.Ue,'script[data-category]'),e.ce=[];for(const t of e.se){let o=H(t,c),n=t.dataset.service||'',a=!1;if(o&&'!'===o.charAt(0)&&(o=o.slice(1),a=!0),'!'===n.charAt(0)&&(n=n.slice(1),a=!0),y(e.J,o)&&(e.ce.push({De:!1,Ee:a,xe:o,Me:n}),n)){const t=e.ee[o];t[n]||(t[n]={Te:!1})}}})(),me((()=>{const e=g.o.i.language.autoDetect;if(e){let t;if('browser'===e?t=navigator.language.slice(0,2).toLowerCase():'document'===e&&(t=document.documentElement.lang),ue(t))return t}return pe()})())})(e),t.q)return;(()=>{const e=g.o,t=g.t,n=Ce(),{categories:a,services:s,consentId:c,consentTimestamp:r,lastConsentTimestamp:i,data:l,revision:d}=n,f=v(a);e.p=n,e.S=c;const _=!!c&&h(c);e.h=r,e.h&&(e.h=new Date(r)),e.C=i,e.C&&(e.C=new Date(i)),e.v=void 0!==l?l:null,e.j&&_&&d!==t.revision&&(e.F=!1),e.T=!(_&&e.F&&e.h&&e.C&&f),e.T,e.T?t.mode===o&&((()=>{const e=g.o;for(const t of e.J){const o=e.G[t];if(o.enabled||o.readOnly){e.$.push(t);const o=e.ee[t]||{};for(let n in o)e.te[t].push(n)}}})(),e.L=[...e.$]):(e.te={...e.te,...s},U([...e.U,...a])),e.oe={...e.te}})();const r=He();if(!await ge())return!1;if(await(async e=>{z(null,e,de,ye),g.o.T&&_e(e,ye),g.t.lazyHtmlGeneration||de(e,ye),(()=>{const e=g.re,t=g.o;G(e.Ce,'keydown',(e=>{if('Tab'!==e.key)return;const o=t.P;if(o.length>0){const n=x();e.shiftKey?n===o[0]&&(o[1].focus(),M(e)):n===o[1]&&(o[0].focus(),M(e)),t.H||g.o.N||(t.H=!0,!t.I&&M(e),e.shiftKey?o[1].focus():o[0].focus())}!t.H&&(t.I=!0)}),!0)})()})(Ae),n.autoShow&&!r&&Me(!0),r)return W(),Q(a.ue);n.mode===o&&W(t.$)}},e.setCookieData=e=>{let t,o=e.value,n=e.mode,a=!1;const s=g.o;if('update'===n){s.v=t=Ne('data');const e=typeof t==typeof o;if(e&&'object'==typeof t){!t&&(t={});for(let e in o)t[e]!==o[e]&&(t[e]=o[e],a=!0)}else!e&&t||t===o||(t=o,a=!0)}else t=o,a=!0;return a&&(s.v=t,s.p.data=t,ve(!0)),a},e.setLanguage=async(e,t)=>{if(!ue(e))return!1;const o=g.o;return!(e===pe()&&!0!==t||!await ge(e)||(me(e),o.M&&_e(Ae,ye),o.A&&de(Ae,ye),be(),K(),0))},e.show=Me,e.showPreferences=Ee,e.validConsent=He,e.validCookie=e=>''!==we(e,!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={});
var e,t;e=this,t=function(e){'use strict';const t='opt-in',o='opt-out',n='show--consent',s='show--preferences',a='disable--interaction',c='data-category',r='div',i='button',l='aria-hidden',d='btn-group',f='click',_='data-role',u='consentModal',p='preferencesModal';class m{constructor(){this.t={mode:t,revision:0,autoShow:!0,lazyHtmlGeneration:!0,autoClearCookies:!0,manageScriptTags:!0,hideFromBots:!0,cookie:{name:'cc_cookie',expiresAfterDays:182,domain:'',path:'/',sameSite:'Lax'}},this.o={i:{},l:'',_:{},u:{},p:{},m:[],g:!1,v:null,h:null,C:null,S:'',M:!0,D:!1,T:!1,k:!1,A:!1,N:[],H:!1,F:!0,V:[],j:!1,P:'',I:!1,L:[],O:[],R:[],B:[],G:!1,J:!1,U:!1,$:[],q:[],K:null,W:[],X:[],Y:{},Z:{},ee:{},te:{},oe:{},ne:[]},this.se={ae:{},ce:{}},this.re={},this.ie={le:'cc:onFirstConsent',de:'cc:onConsent',fe:'cc:onChange',_e:'cc:onModalShow',ue:'cc:onModalHide',pe:'cc:onModalReady'}}}const g=new m,b=(e,t)=>e.indexOf(t),v=(e,t)=>-1!==b(e,t),y=e=>Array.isArray(e),h=e=>'string'==typeof e,C=e=>!!e&&'object'==typeof e&&!y(e),w=e=>'function'==typeof e,S=e=>Object.keys(e),x=e=>Array.from(new Set(e)),M=()=>document.activeElement,D=e=>e.preventDefault(),T=(e,t)=>e.querySelectorAll(t),E=e=>e.dispatchEvent(new Event('change')),k=e=>{const t=document.createElement(e);return e===i&&(t.type=e),t},A=(e,t,o)=>e.setAttribute(t,o),N=(e,t,o)=>{e.removeAttribute(o?'data-'+t:t)},H=(e,t,o)=>e.getAttribute(o?'data-'+t:t),F=(e,t)=>e.appendChild(t),V=(e,t)=>e.classList.add(t),j=(e,t)=>V(e,'cm__'+t),P=(e,t)=>V(e,'pm__'+t),I=(e,t)=>e.classList.remove(t),L=e=>{if('object'!=typeof e)return e;if(e instanceof Date)return new Date(e.getTime());let t=Array.isArray(e)?[]:{};for(let o in e){let n=e[o];t[o]=L(n)}return t},O=()=>{const e={},{L:t,Y:o,Z:n}=g.o;for(const s of t)e[s]=J(n[s],S(o[s]));return e},R=(e,t)=>dispatchEvent(new CustomEvent(e,{detail:t})),B=(e,t,o,n)=>{e.addEventListener(t,o),n&&g.o.m.push({me:e,ge:t,be:o})},G=()=>{const e=g.t.cookie.expiresAfterDays;return w(e)?e(g.o.P):e},J=(e,t)=>{const o=e||[],n=t||[];return o.filter((e=>!v(n,e))).concat(n.filter((e=>!v(o,e))))},U=e=>{g.o.O=x(e),g.o.P=(()=>{let e='custom';const{O:t,L:o,R:n}=g.o,s=t.length;return s===o.length?e='all':s===n.length&&(e='necessary'),e})()},$=(e,t,o,n)=>{const s='accept-',{show:a,showPreferences:c,hide:r,hidePreferences:i,acceptCategory:l}=t,d=e||document,_=e=>T(d,`[data-cc="${e}"]`),u=(e,t)=>{D(e),l(t),i(),r()},p=_('show-preferencesModal'),m=_('show-consentModal'),b=_(s+'all'),v=_(s+'necessary'),y=_(s+'custom'),h=g.t.lazyHtmlGeneration;for(const e of p)A(e,'aria-haspopup','dialog'),B(e,f,(e=>{D(e),c()})),h&&(B(e,'mouseenter',(e=>{D(e),g.o.A||o(t,n)}),!0),B(e,'focus',(()=>{g.o.A||o(t,n)})));for(let e of m)A(e,'aria-haspopup','dialog'),B(e,f,(e=>{D(e),a(!0)}),!0);for(let e of b)B(e,f,(e=>{u(e,'all')}),!0);for(let e of y)B(e,f,(e=>{u(e)}),!0);for(let e of v)B(e,f,(e=>{u(e,[])}),!0)},z=(e,t)=>{e&&e.focus(),t&&(g.o.K=1===t?g.se.ve:g.se.ye,g.o.W=1===t?g.o.$:g.o.q)};let q;const K=e=>{clearTimeout(q),e?V(g.se.he,a):q=setTimeout((()=>{I(g.se.he,a)}),500)},Q=['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 '],W=(e=0,t=1.5)=>`<svg viewBox="0 0 24 24" stroke-width="${t}"><path d="${Q[e]}"/></svg>`,X=['[href]',i,'input','details','[tabindex]'].map((e=>e+':not([tabindex="-1"])')).join(','),Y=e=>{const{o:t,se:o}=g,n=(e,t)=>{const o=T(e,X);t[0]=o[0],t[1]=o[o.length-1]};1===e&&t.D&&n(o.Ce,t.$),2===e&&t.A&&n(o.we,t.q)},Z=(e,t,o)=>{const{fe:n,de:s,le:a,ue:c,pe:r,_e:i}=g.re,l=g.ie,d={cookie:g.o.p};if(t){const n={modalName:t};return e===l._e?w(i)&&i(n):e===l.ue?w(c)&&c(n):(n.modal=o,w(r)&&r(n)),R(e,n)}e===l.le?w(a)&&a(L(d)):e===l.de?w(s)&&s(L(d)):(d.changedCategories=g.o.V,d.changedServices=g.o.te,w(n)&&n(L(d))),R(e,L(d))},ee=e=>{const{Z:t,te:o,L:n,Y:s,ne:a,p:r,V:i}=g.o;for(const e of n){const n=o[e]||t[e]||[];for(const o of n){const n=s[e][o];if(!n)continue;const{onAccept:a,onReject:c}=n;!n.Se&&v(t[e],o)&&w(a)?(n.Se=!0,a()):n.Se&&!v(t[e],o)&&w(c)&&(n.Se=!1,c())}}if(!g.t.manageScriptTags)return;const l=a,d=e||r.categories||[],f=(e,n)=>{if(n>=e.length)return;const s=a[n];if(s.xe)return f(e,n+1);const r=s.Me,l=s.De,_=s.Te,u=v(d,l),p=!!_&&v(t[l],_);if(!_&&!s.Ee&&u||!_&&s.Ee&&!u&&v(i,l)||_&&!s.Ee&&p||_&&s.Ee&&!p&&v(o[l]||[],_)){s.xe=!0;const t=H(r,'type',!0);N(r,'type',!!t),N(r,c);let o=H(r,'src',!0);o&&N(r,'src',!0);const a=k('script');a.textContent=r.innerHTML;for(const{nodeName:e}of r.attributes)A(a,e,r[e]||H(r,e));t&&(a.type=t),o?a.src=o:o=r.src;const i=!!o&&(!t||['text/javascript','module'].includes(t));if(i&&(a.onload=a.onerror=()=>{f(e,++n)}),r.replaceWith(a),i)return}f(e,++n)};f(l,0)},te='bottom',oe='left',ne='center',se='right',ae='inline',ce='wide',re='pm--',ie=['middle','top',te],le=[oe,ne,se],de={box:{ke:[ce,ae],Ae:ie,Ne:le,He:te,Fe:se},cloud:{ke:[ae],Ae:ie,Ne:le,He:te,Fe:ne},bar:{ke:[ae],Ae:ie.slice(1),Ne:[],He:te,Fe:''}},fe={box:{ke:[],Ae:[],Ne:[],He:'',Fe:''},bar:{ke:[ce],Ae:[],Ne:[oe,se],He:'',Fe:oe}},_e=e=>{const t=g.o.i.guiOptions,o=t&&t.consentModal,n=t&&t.preferencesModal;0===e&&ue(g.se.Ce,de,o,'cm--','box','cm'),1===e&&ue(g.se.we,fe,n,re,'box','pm')},ue=(e,t,o,n,s,a)=>{e.className=a;const c=o&&o.layout,r=o&&o.position,i=o&&o.flipButtons,l=o&&!1!==o.equalWeightButtons,d=c&&c.split(' ')||[],f=d[0],_=d[1],u=f in t?f:s,p=t[u],m=v(p.ke,_)&&_,b=r&&r.split(' ')||[],y=b[0],h=n===re?b[0]:b[1],C=v(p.Ae,y)?y:p.He,w=v(p.Ne,h)?h:p.Fe,S=t=>V(e,n+t);S(u),S(m),S(C),S(w),i&&S('flip');const x=a+'__btn--secondary';if('cm'===a){const{Ve:e,je:t}=g.se;e&&(l?I(e,x):V(e,x)),t&&(l?I(t,x):V(t,x))}else{const{Pe:e}=g.se;e&&(l?I(e,x):V(e,x))}},pe=(e,t)=>{const o=g.o,n=g.se,{hide:s,hidePreferences:a,acceptCategory:c}=e,u=e=>{c(e),a(),s()},m=o.u&&o.u.preferencesModal;if(!m)return;const b=m.title,v=m.closeIconLabel,y=m.acceptAllBtn,w=m.acceptNecessaryBtn,x=m.savePreferencesBtn,M=m.sections,D=y||w||x;if(n.ye)n.Ie=k(r),P(n.Ie,'body');else{n.ye=k(r),V(n.ye,'pm-wrapper'),n.ye.tabIndex=-1;const e=k('div');V(e,'pm-overlay'),F(n.ye,e),B(e,f,a),n.we=k(r),n.we.style.visibility='hidden',V(n.we,'pm'),A(n.we,'role','dialog'),A(n.we,l,!0),A(n.we,'aria-modal',!0),A(n.we,'aria-labelledby','pm__title'),B(n.he,'keydown',(e=>{27===e.keyCode&&a()}),!0),n.Le=k(r),P(n.Le,'header'),n.Oe=k(r),P(n.Oe,'title'),n.Oe.id='pm__title',A(n.Oe,'role','heading'),A(n.Oe,'aria-level','2'),n.Re=k(i),P(n.Re,'close-btn'),A(n.Re,'aria-label',m.closeIconLabel||''),B(n.Re,f,a),n.Be=k('span'),n.Be.tabIndex=-1,n.Be.innerHTML=W(),F(n.Re,n.Be),n.Ge=k(r),P(n.Ge,'body'),n.Je=k(r),P(n.Je,'footer');var T=k(r);V(T,'btns');var E=k(r),N=k(r);P(E,d),P(N,d),F(n.Je,E),F(n.Je,N),F(n.Le,n.Oe),F(n.Le,n.Re),F(n.we,n.Le),F(n.we,n.Ge),D&&F(n.we,n.Je),F(n.ye,n.we)}let H;b&&(n.Oe.innerHTML=b,v&&A(n.Re,'aria-label',v)),M&&M.forEach(((e,t)=>{const s=e.title,a=e.description,c=e.linkedCategory,d=c&&o.I[c],_=e.cookieTable,u=_&&_.body,p=_&&_.caption,g=u&&u.length>0,b=!!d,v=b&&o.Y[c],y=C(v)&&S(v)||[],w=b&&(!!a||!!g||S(v).length>0);var x=k(r);if(P(x,'section'),w||a){var M=k(r);P(M,'section-desc-wrapper')}let D=y.length;if(w&&D>0){const e=k(r);P(e,'section-services');for(const t of y){const o=v[t],n=o&&o.label||t,s=k(r),a=k(r),i=k(r),l=k(r);P(s,'service'),P(l,'service-title'),P(a,'service-header'),P(i,'service-icon');const f=me(n,t,d,!0,c);l.innerHTML=n,F(a,i),F(a,l),F(s,a),F(s,f),F(e,s)}F(M,e)}if(s){var T=k(r),E=k(b?i:r);if(P(T,'section-title-wrapper'),P(E,'section-title'),E.innerHTML=s,F(T,E),b){const e=k('span');e.innerHTML=W(2,3.5),P(e,'section-arrow'),F(T,e),x.className+='--toggle';const t=me(s,c,d);let o=m.serviceCounterLabel;if(D>0&&h(o)){let e=k('span');P(e,'badge'),P(e,'service-counter'),A(e,l,!0),A(e,'data-servicecounter',D),o&&(o=o.split('|'),o=o.length>1&&D>1?o[1]:o[0],A(e,'data-counterlabel',o)),e.innerHTML=D+(o?' '+o:''),F(E,e)}if(w){P(x,'section--expandable');var N=c+'-desc';A(E,'aria-expanded',!1),A(E,'aria-controls',N)}F(T,t)}else A(E,'role','heading'),A(E,'aria-level','3');F(x,T)}if(a){var j=k(r);P(j,'section-desc'),j.innerHTML=a,F(M,j)}if(w&&(A(M,l,'true'),M.id=N,((e,t,o)=>{B(E,f,(()=>{t.classList.contains('is-expanded')?(I(t,'is-expanded'),A(o,'aria-expanded','false'),A(e,l,'true')):(V(t,'is-expanded'),A(o,'aria-expanded','true'),A(e,l,'false'))}))})(M,x,E),g)){const e=k('table'),o=k('thead'),s=k('tbody');if(p){const t=k('caption');P(t,'table-caption'),t.innerHTML=p,e.appendChild(t)}P(e,'section-table'),P(o,'table-head'),P(s,'table-body');const a=_.headers,c=S(a),i=n.Ue.createDocumentFragment(),l=k('tr');A(l,'role','row');for(const e of c){const o=a[e],n=k('th');n.id='cc__row-'+o+t,A(n,'scope','col'),P(n,'table-th'),n.innerHTML=o,F(i,n)}F(l,i),F(o,l);const d=n.Ue.createDocumentFragment();for(const e of u){const o=k('tr');A(o,'role','row'),P(o,'table-tr');for(const n of c){const s=a[n],c=e[n],i=k('td'),l=k(r);P(i,'table-td'),A(i,'data-column',s),A(i,'headers','cc__row-'+s+t),l.insertAdjacentHTML('beforeend',c),F(i,l),F(o,i)}F(d,o)}F(s,d),F(e,o),F(e,s),F(M,e)}(w||a)&&F(x,M);const L=n.Ie||n.Ge;b?(H||(H=k(r),P(H,'section-toggles')),H.appendChild(x)):H=null,F(L,H||x)})),(y||w)&&(w&&(n.Pe||(n.Pe=k(i),P(n.Pe,'btn'),A(n.Pe,_,'necessary'),F(E,n.Pe),B(n.Pe,f,(()=>u([])))),n.Pe.innerHTML=w),y&&(n.$e||(n.$e=k(i),P(n.$e,'btn'),A(n.$e,_,'all'),F(E,n.$e),B(n.$e,f,(()=>u('all')))),n.$e.innerHTML=y)),x&&(n.ze||(n.ze=k(i),P(n.ze,'btn'),P(n.ze,'btn--secondary'),A(n.ze,_,'save'),F(N,n.ze),B(n.ze,f,(()=>u()))),n.ze.innerHTML=x),n.Ie&&(n.we.replaceChild(n.Ie,n.Ge),n.Ge=n.Ie),_e(1),o.A||(o.A=!0,Z(g.ie.pe,p,n.we),t(e),F(n.qe,n.ye),setTimeout((()=>V(n.ye,'cc--anim')),100)),Y(2)};function me(e,t,n,s,a){const r=g.o,i=g.se,d=k('label'),_=k('input'),u=k('span'),p=k('span'),m=k('span'),b=k('span'),y=k('span');if(b.innerHTML=W(1,3),y.innerHTML=W(0,3),_.type='checkbox',V(d,'section__toggle-wrapper'),V(_,'section__toggle'),V(b,'toggle__icon-on'),V(y,'toggle__icon-off'),V(u,'toggle__icon'),V(p,'toggle__icon-circle'),V(m,'toggle__label'),A(u,l,'true'),s?(V(d,'toggle-service'),A(_,c,a),i.ce[a][t]=_):i.ae[t]=_,s?(e=>{B(_,'change',(()=>{const t=i.ce[e],o=i.ae[e];r.ee[e]=[];for(let o in t){const n=t[o];n.checked&&r.ee[e].push(n.value)}o.checked=r.ee[e].length>0}))})(a):(e=>{B(_,f,(()=>{const t=i.ce[e],o=_.checked;r.ee[e]=[];for(let n in t)t[n].checked=o,o&&r.ee[e].push(n)}))})(t),_.value=t,m.textContent=e.replace(/<.*>.*<\/.*>/gm,''),F(p,y),F(p,b),F(u,p),r.M)(n.readOnly||r.i.mode===o&&n.enabled)&&(_.checked=!0);else if(s){const e=r.Z[a];_.checked=n.readOnly||v(e,t)}else v(r.O,t)&&(_.checked=!0);return n.readOnly&&(_.disabled=!0),F(d,_),F(d,u),F(d,m),d}const ge=()=>{const e=k('span');return e.tabIndex=-1,g.se.Ke||(g.se.Ke=e),e},be=(e,t)=>{const o=g.o,n=g.se,{hide:s,showPreferences:a,acceptCategory:c}=e,p=o.u&&o.u.consentModal;if(!p)return;const m=p.acceptAllBtn,b=p.acceptNecessaryBtn,v=p.showPreferencesBtn,y=p.closeIconLabel,h=p.footer,C=p.label,w=p.title,S=e=>{s(),c(e)};if(!n.ve){n.ve=k(r),n.Ce=k(r),n.Qe=k(r),n.We=k(r),n.Xe=k(r),V(n.ve,'cm-wrapper'),V(n.Ce,'cm'),j(n.Qe,'body'),j(n.We,'texts'),j(n.Xe,'btns'),n.ve.tabIndex=-1,A(n.Ce,'role','dialog'),A(n.Ce,'aria-modal','true'),A(n.Ce,l,'false'),A(n.Ce,'aria-describedby','cm__desc'),C?A(n.Ce,'aria-label',C):w&&A(n.Ce,'aria-labelledby','cm__title'),n.Ce.style.visibility='hidden';const e='box',t=o.i.guiOptions,s=t&&t.consentModal,a=(s&&s.layout||e).split(' ')[0]===e;w&&y&&a&&(n.je||(n.je=k(i),n.je.innerHTML=W(),j(n.je,'btn'),j(n.je,'btn--close'),B(n.je,f,(()=>{S([])})),F(n.Qe,n.je)),A(n.je,'aria-label',y)),F(n.Qe,n.We),(m||b||v)&&F(n.Qe,n.Xe),F(n.Ce,n.Qe),F(n.ve,n.Ce)}w&&(n.Ye||(n.Ye=k(r),n.Ye.className=n.Ye.id='cm__title',A(n.Ye,'role','heading'),A(n.Ye,'aria-level','2'),F(n.We,n.Ye)),n.Ye.innerHTML=w);let x=p.description;if(x&&(o.H&&(x=x.replace('{{revisionMessage}}',o.F?'':p.revisionMessage||'')),n.Ze||(n.Ze=k(r),n.Ze.className=n.Ze.id='cm__desc',F(n.We,n.Ze)),n.Ze.innerHTML=x),m&&(n.et||(n.et=k(i),F(n.et,ge()),j(n.et,'btn'),A(n.et,_,'all'),B(n.et,f,(()=>{S('all')}))),n.et.firstElementChild.innerHTML=m),b&&(n.Ve||(n.Ve=k(i),F(n.Ve,ge()),j(n.Ve,'btn'),A(n.Ve,_,'necessary'),B(n.Ve,f,(()=>{S([])}))),n.Ve.firstElementChild.innerHTML=b),v&&(n.tt||(n.tt=k(i),F(n.tt,ge()),j(n.tt,'btn'),j(n.tt,'btn--secondary'),A(n.tt,_,'show'),B(n.tt,'mouseenter',(()=>{o.A||pe(e,t)})),B(n.tt,f,a)),n.tt.firstElementChild.innerHTML=v),n.ot||(n.ot=k(r),j(n.ot,d),b&&F(n.ot,n.Ve),m&&F(n.ot,n.et),(m||b)&&F(n.Qe,n.ot),F(n.Xe,n.ot)),n.tt&&!n.nt&&(n.nt=k(r),n.Ve&&n.et?(j(n.nt,d),F(n.nt,n.tt),F(n.Xe,n.nt)):(F(n.ot,n.tt),j(n.ot,d+'--uneven'))),h){if(!n.st){let e=k(r),t=k(r);n.st=k(r),j(e,'footer'),j(t,'links'),j(n.st,'link-group'),F(t,n.st),F(e,t),F(n.Ce,e)}n.st.innerHTML=h}_e(0),o.D||(o.D=!0,Z(g.ie.pe,u,n.Ce),t(e),F(n.qe,n.ve),setTimeout((()=>V(n.ve,'cc--anim')),100)),Y(1),$(n.Qe,e,pe,t)},ve=e=>h(e)&&e in g.o._,ye=()=>g.o.l||g.o.i.language.default,he=e=>{e&&(g.o.l=e)},Ce=async e=>{const t=g.o;let o=ve(e)?e:ye(),n=t._[o];if(!n)return!1;if(h(n)){const e=await(async e=>{try{const t=await fetch(e);return!(!t||!t.ok)&&await t.json()}catch(e){return!1}})(n);if(!e)return!1;n=e}return t.u=n,he(o),!0},we=()=>{let e=g.o.i.language.rtl,t=g.se.qe;e&&t&&(y(e)||(e=[e]),v(e,g.o.l)?V(t,'cc--rtl'):I(t,'cc--rtl'))},Se=()=>{const e=g.se;if(!e.qe){e.qe=k(r),e.qe.id='cc-main',we();let t=g.o.i.root;t&&h(t)&&(t=document.querySelector(t)),(t||e.Ue.body).appendChild(e.qe)}},xe=e=>{const{hostname:t,protocol:o}=location,{name:n,path:s,domain:a,sameSite:c}=g.t.cookie,r=encodeURIComponent(JSON.stringify(g.o.p)),i=e?(()=>{const e=g.o.C,t=e?new Date-e:0;return 864e5*G()-t})():864e5*G(),l=new Date;l.setTime(l.getTime()+i);let d=n+'='+r+(0!==i?'; expires='+l.toUTCString():'')+'; Path='+s+'; SameSite='+c;v(t,'.')&&(d+='; Domain='+a),'https:'===o&&(d+='; Secure'),document.cookie=d,g.o.p},Me=(e,t,o)=>{const n=o||g.t.cookie.domain,s=t||g.t.cookie.path,a='www.'===n.slice(0,4),c=a&&n.substring(4),r=(e,t)=>{document.cookie=e+'=; path='+s+(t?'; domain=.'+t:'')+'; expires=Thu, 01 Jan 1970 00:00:01 GMT;'};for(const t of e)r(t),r(t,n),a&&r(t,c)},De=e=>(e=>{let t;try{t=JSON.parse(decodeURIComponent(e))}catch(e){t={}}return t})(Te(e||g.t.cookie.name,!0)),Te=(e,t)=>{const o=document.cookie.match('(^|;)\\s*'+e+'\\s*=\\s*([^;]+)');return o?t?o.pop():e:''},Ee=e=>{const t=document.cookie.split(/;\s*/),o=[];for(const n of t){let t=n.split('=')[0];if(e)try{e.test(t)&&o.push(t)}catch(e){}else o.push(t)}return o},ke=(e,n=[])=>{((e,t)=>{const{L:o,O:n,R:s,A:a,ee:c,Y:r}=g.o;let i=[];if(e){y(e)?i.push(...e):h(e)&&(i='all'===e?o:[e]);for(const e of o)c[e]=v(i,e)?S(r[e]):[]}else i=a?(()=>{const e=g.se.ae;if(!e)return[];let t=[];for(let o in e)e[o].checked&&t.push(o);return t})():n;i=i.filter((e=>!v(o,e)||!v(t,e))),i.push(...s),U(i)})(e,n),(e=>{const t=g.o,{ee:o,R:n,Z:s,Y:a,L:c}=t,r=c;t.oe=L(s);for(const e of r){const t=a[e],c=S(t),r=o[e]&&o[e].length>0,i=v(n,e);if(0!==c.length){if(s[e]=[],i)s[e].push(...c);else if(r){const t=o[e];s[e].push(...t)}else s[e]=[];s[e]=x(s[e])}}})(),(()=>{const e=g.o;g.t.mode===o&&e.M?e.V=J(e.B,e.O):e.V=J(e.O,e.p.categories);let n=e.V.length>0,s=!1;for(const t of e.L)e.te[t]=J(e.Z[t],e.oe[t]),e.te[t].length>0&&(s=!0);const a=g.se.ae;for(let t in a)a[t].checked=v(e.O,t);for(const t of e.L){const o=g.se.ce[t],n=e.Z[t];for(const e in o)o[e].checked=v(n,e)}e.h||(e.h=new Date),e.S||(e.S=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))),e.p={categories:L(e.O),revision:g.t.revision,data:e.v,consentTimestamp:e.h.toISOString(),consentId:e.S,services:L(e.Z)};let c=!1;(e.M||n||s)&&(e.M&&(e.M=!1,c=!0),e.C?e.C=new Date:e.C=e.h,e.p.lastConsentTimestamp=e.C.toISOString(),xe(),g.t.autoClearCookies&&(c||!e.M&&n)&&(e=>{const t=g.o,o=Ee();t.j=!1;let n=e?t.L:t.V;n=n.filter((e=>{let o=t.I[e];return!!o&&!o.readOnly&&!!o.autoClear}));for(const s of n){const n=t.I[s].autoClear,a=n&&n.cookies||[],c=v(t.V,s),r=!v(t.O,s),i=c&&r;if(e&&r||!e&&i){!0===n.reloadPage&&i&&(t.j=!0);for(const e of a){let t=[];const n=e.name,s=e.domain,a=e.path;if(n instanceof RegExp)for(let e of o)n.test(e)&&t.push(e);else{let e=b(o,n);e>-1&&t.push(o[e])}t.length>0&&Me(t,a,s)}}}})(c),ee()),c&&(Z(g.ie.le),Z(g.ie.de),g.t.mode===t)||((n||s)&&Z(g.ie.fe),e.j&&location.reload())})()},Ae=e=>{const t=g.o.M?[]:g.o.O;return v(t,e)},Ne=(e,t)=>{const o=g.o.M?[]:g.o.Z[t];return v(o,e)},He=(e,t,o)=>{let n=[];const s=e=>{if(h(e)){let t=Te(e);''!==t&&n.push(t)}else n.push(...Ee(e))};if(y(e))for(let t of e)s(t);else s(e);Me(n,t,o)},Fe=e=>{const{se:t,o:o}=g;if(!o.T){if(!o.D){if(!e)return;be(Ie,Se)}o.T=!0,o.J=M(),o.g&&K(!0),V(t.he,n),A(t.Ce,l,'false'),z(t.ve,1),Z(g.ie._e,u)}},Ve=()=>{const{se:e,o:t,ie:o}=g;t.T&&(t.T=!1,t.g&&K(),z(e.Ke),I(e.he,n),A(e.Ce,l,'true'),z(t.J),t.J=null,Z(o.ue,u))},je=()=>{const e=g.o;e.k||(e.A||pe(Ie,Se),e.k=!0,V(g.se.he,s),A(g.se.we,l,'false'),e.T?e.U=M():e.J=M(),z(g.se.ye,2),Z(g.ie._e,p))},Pe=()=>{const e=g.o;e.k&&(e.k=!1,(()=>{const e=Oe(),t=g.o.I,n=g.se.ae,s=g.se.ce,a=e=>g.o.i.mode===o&&!!t[e].enabled;for(const o in n){const c=!!t[o].readOnly;n[o].checked=c||(e?Ae(o):a(o));for(const t in s[o])s[o][t].checked=c||(e?Ne(t,o):a(o))}})(),z(g.se.Be),I(g.se.he,s),A(g.se.we,l,'true'),e.T?(z(e.U,1),e.U=null):(z(e.J),e.J=null),Z(g.ie.ue,p))};var Ie={show:Fe,hide:Ve,showPreferences:je,hidePreferences:Pe,acceptCategory:ke};const Le=(e,t)=>{const o=De(t);return e?o[e]:o},Oe=()=>!g.o.M;e.acceptCategory=ke,e.acceptService=(e,t)=>{const{L:o,Y:n}=g.o;if(!(e&&t&&h(t)&&v(o,t)&&0!==S(n[t]).length))return!1;((e,t)=>{const o=g.o,{Y:n,ee:s,A:a}=o,c=g.se.ce[t]||{},r=g.se.ae[t]||{},i=S(n[t]);if(s[t]=[],h(e)){if('all'===e){if(s[t].push(...i),a)for(let e in c)c[e].checked=!0,E(c[e])}else if(v(i,e)&&s[t].push(e),a)for(let t in c)c[t].checked=e===t,E(c[t])}else if(y(e))for(let o of i){const n=v(e,o);n&&s[t].push(o),a&&(c[o].checked=n,E(c[o]))}const l=0===s[t].length;o.O=l?o.O.filter((e=>e!==t)):x([...o.O,t]),a&&(r.checked=!l,E(r))})(e,t),ke()},e.acceptedCategory=Ae,e.acceptedService=Ne,e.eraseCookies=He,e.getConfig=e=>{const t=g.t,o=g.o.i;return e?t[e]||o[e]:{...t,...o,cookie:{...t.cookie}}},e.getCookie=Le,e.getUserPreferences=()=>{const{P:e,Z:t}=g.o,{accepted:o,rejected:n}=(()=>{const{M:e,O:t,L:o}=g.o;return{accepted:t,rejected:e?[]:o.filter((e=>!v(t,e)))}})();return L({acceptType:e,acceptedCategories:o,rejectedCategories:n,acceptedServices:t,rejectedServices:O()})},e.hide=Ve,e.hidePreferences=Pe,e.loadScript=(e,t)=>{let o=document.querySelector('script[src="'+e+'"]');return new Promise((n=>{if(o)return n(!0);if(o=k('script'),C(t))for(const e in t)A(o,e,t[e]);o.onload=()=>n(!0),o.onerror=()=>{o.remove(),n(!1)},o.src=e,F(document.head,o)}))},e.reset=e=>{const{qe:t,he:o}=g.se,{name:c,path:r,domain:i}=g.t.cookie;e&&He(c,r,i);for(const{me:e,ge:t,be:o}of g.o.m)e.removeEventListener(t,o);t&&t.remove(),o&&o.classList.remove(a,s,n);const l=new m;for(const e in g)g[e]=l[e];window._ccRun=!1},e.run=async e=>{const{o:t,t:n,ie:s}=g,a=window;if(!a._ccRun){if(a._ccRun=!0,(e=>{const{se:t,t:n,o:s}=g,a=n,r=s,{cookie:i}=a,l=g.re,d=e.cookie,f=e.categories,_=S(f)||[],u=navigator,p=document;t.Ue=p,t.he=p.documentElement,i.domain=location.hostname,r.i=e,r.I=f,r.L=_,r._=e.language.translations,r.g=!!e.disablePageInteraction,l.le=e.onFirstConsent,l.de=e.onConsent,l.fe=e.onChange,l.ue=e.onModalHide,l._e=e.onModalShow,l.pe=e.onModalReady;const{mode:m,autoShow:b,lazyHtmlGeneration:y,autoClearCookies:h,revision:w,manageScriptTags:x,hideFromBots:M}=e;m===o&&(a.mode=m),'boolean'==typeof h&&(a.autoClearCookies=h),'boolean'==typeof x&&(a.manageScriptTags=x),'number'==typeof w&&w>=0&&(a.revision=w,r.H=!0),'boolean'==typeof b&&(a.autoShow=b),'boolean'==typeof y&&(a.lazyHtmlGeneration=y),!1===M&&(a.hideFromBots=!1),!0===a.hideFromBots&&u&&(r.G=u.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(u.userAgent)||u.webdriver),C(d)&&(a.cookie={...i,...d}),a.autoClearCookies,r.H,a.manageScriptTags,(e=>{const{I:t,Y:o,Z:n,ee:s,R:a}=g.o;for(let c of e){const e=t[c],r=e.services||{},i=C(r)&&S(r)||[];o[c]={},n[c]=[],s[c]=[],e.readOnly&&(a.push(c),n[c]=i),g.se.ce[c]={};for(let e of i){const t=r[e];t.Se=!1,o[c][e]=t}}})(_),(()=>{if(!g.t.manageScriptTags)return;const e=g.o,t=T(document,'script['+c+']');for(const o of t){let t=H(o,c),n=o.dataset.service||'',s=!1;if(t&&'!'===t.charAt(0)&&(t=t.slice(1),s=!0),'!'===n.charAt(0)&&(n=n.slice(1),s=!0),v(e.L,t)&&(e.ne.push({Me:o,xe:!1,Ee:s,De:t,Te:n}),n)){const o=e.Y[t];o[n]||(o[n]={Se:!1})}}})(),he((()=>{const e=g.o.i.language.autoDetect;if(e){let t;if('browser'===e?t=navigator.language.slice(0,2).toLowerCase():'document'===e&&(t=document.documentElement.lang),ve(t))return t}return ye()})())})(e),t.G)return;(()=>{const e=g.o,t=g.t,n=De(),{categories:s,services:a,consentId:c,consentTimestamp:r,lastConsentTimestamp:i,data:l,revision:d}=n,f=y(s);e.p=n,e.S=c;const _=!!c&&h(c);e.h=r,e.h&&(e.h=new Date(r)),e.C=i,e.C&&(e.C=new Date(i)),e.v=void 0!==l?l:null,e.H&&_&&d!==t.revision&&(e.F=!1),e.M=!(_&&e.F&&e.h&&e.C&&f),e.M,e.M?t.mode===o&&((()=>{const e=g.o;for(const t of e.L){const n=e.I[t];if(n.readOnly||n.enabled&&e.i.mode===o){e.B.push(t);const o=e.Y[t]||{};for(let n in o)e.Z[t].push(n)}}})(),e.O=[...e.B]):(e.Z={...e.Z,...a},U([...e.R,...s])),e.ee={...e.Z}})();const i=Oe();if(!await Ce())return!1;if($(null,r=Ie,pe,Se),g.o.M&&be(r,Se),g.t.lazyHtmlGeneration||pe(r,Se),(()=>{const e=g.se,t=g.o;B(e.he,'keydown',(e=>{if('Tab'!==e.key)return;if(!t.k&&!t.T)return;const o=t.W,n=t.K;if(o.length>0){const t=M();e.shiftKey?t!==o[0]&&n.contains(t)||(D(e),z(o[1])):t!==o[1]&&n.contains(t)||(D(e),z(o[0]))}}),!0)})(),n.autoShow&&!i&&Fe(!0),i)return ee(),Z(s.de);n.mode===o&&ee(t.B)}var r},e.setCookieData=e=>{let t,o=e.value,n=e.mode,s=!1;const a=g.o;if('update'===n){a.v=t=Le('data');const e=typeof t==typeof o;if(e&&'object'==typeof t){!t&&(t={});for(let e in o)t[e]!==o[e]&&(t[e]=o[e],s=!0)}else!e&&t||t===o||(t=o,s=!0)}else t=o,s=!0;return s&&(a.v=t,a.p.data=t,xe(!0)),s},e.setLanguage=async(e,t)=>{if(!ve(e))return!1;const o=g.o;return!(e===ye()&&!0!==t||!await Ce(e)||(he(e),o.D&&be(Ie,Se),o.A&&pe(Ie,Se),we(),0))},e.show=Fe,e.showPreferences=je,e.validConsent=Oe,e.validCookie=e=>''!==Te(e,!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={});
/*!
* CookieConsent 3.0.0-rc.13
* CookieConsent 3.0.0-rc.14
* https://github.com/orestbida/cookieconsent

@@ -7,2 +7,2 @@ * Author Orest Bida

*/
class e{constructor(){this.t={mode:'opt-in',revision:0,autoClearCookies:!0,manageScriptTags:!0,hideFromBots:!0,cookie:{name:'cc_cookie',expiresAfterDays:182,domain:'',path:'/',sameSite:'Lax'}},this.o={i:{},l:'',_:{},p:{},u:{},m:[],g:!1,C:null,v:null,S:null,h:'',D:!0,T:!1,N:!0,k:[],I:!1,j:'',F:!1,O:[],M:[],A:[],R:[],P:!1,B:!1,J:!1,L:[],U:[],G:[],H:{},q:{},K:{},V:{},W:{},X:[],Y:[]},this.Z={$:{},ee:{}},this.te={},this.oe={ne:'cc:onFirstConsent',se:'cc:onConsent',ae:'cc:onChange'}}}const t=new e,o=(e,t)=>e.indexOf(t),n=(e,t)=>-1!==o(e,t),s=e=>Array.isArray(e),a=e=>'string'==typeof e,c=e=>!!e&&'object'==typeof e&&!s(e),r=e=>'function'==typeof e,i=e=>Object.keys(e),l=e=>Array.from(new Set(e)),f=e=>e.dispatchEvent(new Event('change')),d=e=>{const t=document.createElement(e);return'button'===e&&(t.type=e),t},_=(e,t,o)=>e.setAttribute(t,o),p=(e,t,o)=>{e.removeAttribute(o?'data-'+t:t)},u=(e,t,o)=>e.getAttribute(o?'data-'+t:t),m=e=>{if('object'!=typeof e)return e;if(e instanceof Date)return new Date(e.getTime());let t=Array.isArray(e)?[]:{};for(let o in e){let n=e[o];t[o]=m(n)}return t},g=()=>{const e={},{O:o,H:n,q:s}=t.o;for(const t of o)e[t]=v(s[t],i(n[t]));return e},C=()=>{const e=t.t.cookie.expiresAfterDays;return r(e)?e(t.o.j):e},v=(e,t)=>{const o=e||[],s=t||[];return o.filter((e=>!n(s,e))).concat(s.filter((e=>!n(o,e))))},y=e=>{t.o.M=l(e),t.o.j=(()=>{let e='custom';const{M:o,O:n,A:s}=t.o,a=o.length;return a===n.length?e='all':a===s.length&&(e='necessary'),e})()},S=(e,o,n)=>{const{ae:s,se:a,ne:c,ce:i,re:l,ie:f}=t.te,d=t.oe,_={cookie:t.o.u};e===d.ne?r(c)&&c(m(_)):e===d.se?r(a)&&a(m(_)):(_.changedCategories=t.o.k,_.changedServices=t.o.V,r(s)&&s(m(_))),((e,t)=>{dispatchEvent(new CustomEvent(e,{detail:t}))})(e,m(_))},h=e=>{const{q:o,V:s,O:a,H:c,X:i,Y:l,u:f,k:m}=t.o;for(const e of a){const t=s[e]||o[e]||[];for(const s of t){const t=c[e][s];if(!t)continue;const{onAccept:a,onReject:i}=t;!t.le&&n(o[e],s)&&r(a)?(t.le=!0,a()):t.le&&!n(o[e],s)&&r(i)&&(t.le=!1,i())}}if(!t.t.manageScriptTags)return;const g=i,C=e||f.categories||[],v=(e,t)=>{if(t<e.length){const a=e[t],c=l[t],r=c.fe,i=c.de,f=n(C,r),g=!!i&&n(o[r],i);if(!c._e){let o=!i&&!c.pe&&f,l=i&&!c.pe&&g,C=!i&&c.pe&&!f&&n(m,r),y=i&&c.pe&&!g&&n(s[r]||[],i);if(o||C||l||y){c._e=!0;const o=u(a,'type',!0);p(a,'type',!!o),p(a,'data-category');let n=u(a,'src',!0);n&&p(a,'src',!0);const s=d('script');s.textContent=a.innerHTML;for(const{nodeName:e}of a.attributes)_(s,e,a[e]||u(a,e));if(o&&(s.type=o),n?s.src=n:n=a.src,n&&(s.onload=s.onerror=()=>{v(e,++t)}),a.replaceWith(s),n)return}}v(e,++t)}};v(g,0)},b=e=>{const{hostname:o,protocol:s}=location,{name:a,path:c,domain:r,sameSite:i}=t.t.cookie,l=encodeURIComponent(JSON.stringify(t.o.u)),f=e?(()=>{const e=t.o.S,o=e?new Date-e:0;return 864e5*C()-o})():864e5*C(),d=new Date;d.setTime(d.getTime()+f);let _=a+'='+l+(0!==f?'; expires='+d.toUTCString():'')+'; Path='+c+'; SameSite='+i;n(o,'.')&&(_+='; Domain='+r),'https:'===s&&(_+='; Secure'),document.cookie=_,t.o.u},w=(e,o,n)=>{const s=n||t.t.cookie.domain,a=o||t.t.cookie.path,c='www.'===s.slice(0,4),r=c&&s.substring(4),i=(e,t)=>{document.cookie=e+'=; path='+a+(t?'; domain=.'+t:'')+'; expires=Thu, 01 Jan 1970 00:00:01 GMT;'};for(const t of e)i(t),i(t,s),c&&i(t,r)},D=e=>(e=>{let t;try{t=JSON.parse(decodeURIComponent(e))}catch(e){t={}}return t})(T(e||t.t.cookie.name,!0)),T=(e,t)=>{const o=document.cookie.match('(^|;)\\s*'+e+'\\s*=\\s*([^;]+)');return o?t?o.pop():e:''},E=e=>{const t=document.cookie.split(/;\s*/),o=[];for(const n of t){let t=n.split('=')[0];if(e)try{e.test(t)&&o.push(t)}catch(e){}else o.push(t)}return o},N=(e,c=[])=>{((e,o)=>{const{O:c,M:r,A:l,ue:f,K:d,H:_}=t.o;let p=[];if(e){s(e)?p.push(...e):a(e)&&(p='all'===e?c:[e]);for(const e of c)d[e]=n(p,e)?i(_[e]):[]}else p=f?(()=>{const e=t.Z.$;if(!e)return[];let o=[];for(let t in e)e[t].checked&&o.push(t);return o})():r;p=p.filter((e=>!n(c,e)||!n(o,e))),p.push(...l),y(p)})(e,c),(e=>{const o=t.o,{K:s,A:a,q:c,H:r,O:f}=o,d=f;o.W=m(c);for(const e of d){const t=r[e],o=i(t),f=s[e]?.length>0,d=n(a,e);if(0!==o.length){if(c[e]=[],d)c[e].push(...o);else if(f){const t=s[e];c[e].push(...t)}else c[e]=[];c[e]=l(c[e])}}})(),(()=>{const e=t.o;'opt-out'===t.t.mode&&e.D?e.k=v(e.R,e.M):e.k=v(e.M,e.u.categories);let s=e.k.length>0,a=!1;for(const t of e.O)e.V[t]=v(e.q[t],e.W[t]),e.V[t].length>0&&(a=!0);const c=t.Z.$;for(let t in c)c[t].checked=n(e.M,t);for(const o of e.O){const s=t.Z.ee[o],a=e.q[o];for(const e in s)s[e].checked=n(a,e)}e.v||(e.v=new Date),e.h||(e.h=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))),e.u={categories:m(e.M),revision:t.t.revision,data:e.C,consentTimestamp:e.v.toISOString(),consentId:e.h,services:m(e.q)};let r=!1;(e.D||s||a)&&(e.D&&(e.D=!1,r=!0),e.S?e.S=new Date:e.S=e.v,e.u.lastConsentTimestamp=e.S.toISOString(),b(),t.t.autoClearCookies&&(r||!e.D&&s)&&(e=>{const s=t.o,a=E();s.I=!1;let c=e?s.O:s.k;c=c.filter((e=>{let t=s.F[e];return!!t&&!t.readOnly&&!!t.autoClear}));for(const t of c){const c=s.F[t].autoClear,r=c?.cookies||[],i=n(s.k,t),l=!n(s.M,t),f=i&&l;if(e&&l||!e&&f){!0===c.reloadPage&&f&&(s.I=!0);for(const e of r){let t=[];const n=e.name,s=e.domain,c=e.path;if(n instanceof RegExp)for(let e of a)n.test(e)&&t.push(e);else{let e=o(a,n);e>-1&&t.push(a[e])}t.length>0&&w(t,c,s)}}}})(r),h()),r&&(S(t.oe.ne),S(t.oe.se),'opt-in'===t.t.mode)||((s||a)&&S(t.oe.ae),e.I&&location.reload())})()},k=e=>{const o=t.o.D?[]:t.o.M;return n(o,e)},x=(e,o)=>{const{O:c,H:r}=t.o;if(!(e&&o&&a(o)&&n(c,o)&&0!==i(r[o]).length))return!1;((e,o)=>{const c=t.o,{H:r,K:d,ue:_}=c,p=t.Z.ee[o]||{},u=t.Z.$[o]||{},m=i(r[o]);if(d[o]=[],a(e)){if('all'===e){if(d[o].push(...m),_)for(let e in p)p[e].checked=!0,f(p[e])}else if(n(m,e)&&d[o].push(e),_)for(let t in p)p[t].checked=e===t,f(p[t])}else if(s(e))for(let t of m){const s=n(e,t);s&&d[o].push(t),_&&(p[t].checked=s,f(p[t]))}const g=0===d[o].length;c.M=g?c.M.filter((e=>e!==o)):l([...c.M,o]),_&&(u.checked=!g,f(u))})(e,o),N()},I=(e,o)=>{const s=t.o.D?[]:t.o.q[o];return n(s,e)},j=e=>''!==T(e,!0),F=(e,t,o)=>{let n=[];const c=e=>{if(a(e)){let t=T(e);''!==t&&n.push(t)}else n.push(...E(e))};if(s(e))for(let t of e)c(t);else c(e);w(n,t,o)},O=()=>{const{j:e,q:o}=t.o,{accepted:s,rejected:a}=(()=>{const{D:e,M:o,O:s}=t.o;return{accepted:o,rejected:e?[]:s.filter((e=>!n(o,e)))}})();return m({acceptType:e,acceptedCategories:s,rejectedCategories:a,acceptedServices:o,rejectedServices:g()})},M=(e,t)=>{let o=document.querySelector('script[src="'+e+'"]');return new Promise((n=>{if(o)return n(!0);if(o=d('script'),c(t))for(const e in t)_(o,e,t[e]);var s,a;o.onload=()=>n(!0),o.onerror=()=>{o.remove(),n(!1)},o.src=e,s=document.head,a=o,s.appendChild(a)}))},A=e=>{let o,n=e.value,s=e.mode,a=!1;const c=t.o;if('update'===s){c.C=o=R('data');const e=typeof o==typeof n;if(e&&'object'==typeof o){!o&&(o={});for(let e in n)o[e]!==n[e]&&(o[e]=n[e],a=!0)}else!e&&o||o===n||(o=n,a=!0)}else o=n,a=!0;return a&&(c.C=o,c.u.data=o,b(!0)),a},R=(e,t)=>{const o=D(t);return e?o[e]:o},P=e=>{const o=t.t,n=t.o.i;return e?o[e]||n[e]:{...o,...n,cookie:{...o.cookie}}},B=()=>!t.o.D,J=async e=>{const{o:o,t:r,oe:l}=t,f=window;if(!f._ccRun){if(f._ccRun=!0,(e=>{const{Z:o,t:s,o:a}=t,r=s,l=a,{cookie:f}=r,d=t.te,_=e.cookie,p=e.categories,m=i(p)||[],g=navigator,C=document;o.me=C,o.ge=C.documentElement,f.domain=location.hostname,l.i=e,l.F=p,l.O=m,d.ne=e.onFirstConsent,d.se=e.onConsent,d.ae=e.onChange;const{mode:v,autoClearCookies:y,revision:S,manageScriptTags:h,hideFromBots:b}=e;'opt-out'===v&&(r.mode=v),'boolean'==typeof y&&(r.autoClearCookies=y),'boolean'==typeof h&&(r.manageScriptTags=h),'number'==typeof S&&S>=0&&(r.revision=S,l.T=!0),!1===b&&(r.hideFromBots=!1),!0===r.hideFromBots&&g&&(l.P=g.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(g.userAgent)||g.webdriver),c(_)&&(r.cookie={...f,..._}),r.autoClearCookies,l.T,r.manageScriptTags,(e=>{const{F:o,H:n,q:s,K:a,A:r}=t.o;for(let l of e){const e=o[l],f=e.services||{},d=c(f)&&i(f)||[];n[l]={},s[l]=[],a[l]=[],e.readOnly&&(r.push(l),s[l]=d),t.Z.ee[l]={};for(let e of d){const t=f[e];t.le=!1,n[l][e]=t}}})(m),(()=>{if(!t.t.manageScriptTags)return;const e=t.o;e.X=t.Z.me.querySelectorAll('script[data-category]'),e.Y=[];for(const t of e.X){let o=u(t,'data-category'),s=t.dataset.service||'',a=!1;if(o&&'!'===o.charAt(0)&&(o=o.slice(1),a=!0),'!'===s.charAt(0)&&(s=s.slice(1),a=!0),n(e.O,o)&&(e.Y.push({_e:!1,pe:a,fe:o,de:s}),s)){const t=e.H[o];t[s]||(t[s]={le:!1})}}})()})(e),o.P)return;if((()=>{const e=t.o,o=t.t,n=D(),{categories:c,services:r,consentId:i,consentTimestamp:l,lastConsentTimestamp:f,data:d,revision:_}=n,p=s(c);e.u=n,e.h=i;const u=!!i&&a(i);e.v=l,e.v&&(e.v=new Date(l)),e.S=f,e.S&&(e.S=new Date(f)),e.C=void 0!==d?d:null,e.T&&u&&_!==o.revision&&(e.N=!1),e.D=!(u&&e.N&&e.v&&e.S&&p),e.D,e.D?'opt-out'===o.mode&&((()=>{const e=t.o;for(const t of e.O){const o=e.F[t];if(o.enabled||o.readOnly){e.R.push(t);const o=e.H[t]||{};for(let n in o)e.q[t].push(n)}}})(),e.M=[...e.R]):(e.q={...e.q,...r},y([...e.A,...c])),e.K={...e.q}})(),B())return h(),S(l.se);'opt-out'===r.mode&&h(o.R)}},L=o=>{const{name:n,path:s,domain:a}=t.t.cookie;o&&F(n,s,a);for(const{Ce:e,ve:o,ye:n}of t.o.m)e.removeEventListener(o,n);const c=new e;for(const e in t)t[e]=c[e];window._ccRun=!1};export{N as acceptCategory,x as acceptService,k as acceptedCategory,I as acceptedService,F as eraseCookies,P as getConfig,R as getCookie,O as getUserPreferences,M as loadScript,L as reset,J as run,A as setCookieData,B as validConsent,j as validCookie};
const e='opt-in',t='opt-out',o='data-category';class n{constructor(){this.t={mode:e,revision:0,autoClearCookies:!0,manageScriptTags:!0,hideFromBots:!0,cookie:{name:'cc_cookie',expiresAfterDays:182,domain:'',path:'/',sameSite:'Lax'}},this.o={i:{},l:'',_:{},u:{},p:{},m:[],g:!1,C:null,v:null,S:null,h:'',D:!0,T:!1,N:!0,k:[],F:!1,j:'',M:!1,O:[],I:[],A:[],R:[],P:!1,B:!1,J:!1,L:[],U:[],G:null,H:[],q:[],K:{},V:{},W:{},X:{},Y:{},Z:[]},this.$={ee:{},te:{}},this.oe={},this.ne={se:'cc:onFirstConsent',ce:'cc:onConsent',re:'cc:onChange'}}}const s=new n,c=(e,t)=>e.indexOf(t),r=(e,t)=>-1!==c(e,t),a=e=>Array.isArray(e),i=e=>'string'==typeof e,l=e=>!!e&&'object'==typeof e&&!a(e),f=e=>'function'==typeof e,d=e=>Object.keys(e),_=e=>Array.from(new Set(e)),u=e=>e.dispatchEvent(new Event('change')),p=e=>{const t=document.createElement(e);return'button'===e&&(t.type=e),t},m=(e,t,o)=>e.setAttribute(t,o),g=(e,t,o)=>{e.removeAttribute(o?'data-'+t:t)},C=(e,t,o)=>e.getAttribute(o?'data-'+t:t),v=e=>{if('object'!=typeof e)return e;if(e instanceof Date)return new Date(e.getTime());let t=Array.isArray(e)?[]:{};for(let o in e){let n=e[o];t[o]=v(n)}return t},y=()=>{const e={},{O:t,K:o,V:n}=s.o;for(const s of t)e[s]=h(n[s],d(o[s]));return e},S=()=>{const e=s.t.cookie.expiresAfterDays;return f(e)?e(s.o.j):e},h=(e,t)=>{const o=e||[],n=t||[];return o.filter((e=>!r(n,e))).concat(n.filter((e=>!r(o,e))))},b=e=>{s.o.I=_(e),s.o.j=(()=>{let e='custom';const{I:t,O:o,A:n}=s.o,c=t.length;return c===o.length?e='all':c===n.length&&(e='necessary'),e})()},w=(e,t,o)=>{const{re:n,ce:c,se:r,ae:a,ie:i,le:l}=s.oe,d=s.ne,_={cookie:s.o.p};e===d.se?f(r)&&r(v(_)):e===d.ce?f(c)&&c(v(_)):(_.changedCategories=s.o.k,_.changedServices=s.o.X,f(n)&&n(v(_))),((e,t)=>{dispatchEvent(new CustomEvent(e,{detail:t}))})(e,v(_))},D=e=>{const{V:t,X:n,O:c,K:a,Z:i,p:l,k:d}=s.o;for(const e of c){const o=n[e]||t[e]||[];for(const n of o){const o=a[e][n];if(!o)continue;const{onAccept:s,onReject:c}=o;!o.fe&&r(t[e],n)&&f(s)?(o.fe=!0,s()):o.fe&&!r(t[e],n)&&f(c)&&(o.fe=!1,c())}}if(!s.t.manageScriptTags)return;const _=i,u=e||l.categories||[],v=(e,s)=>{if(s>=e.length)return;const c=i[s];if(c.de)return v(e,s+1);const a=c._e,l=c.ue,f=c.pe,_=r(u,l),y=!!f&&r(t[l],f);if(!f&&!c.me&&_||!f&&c.me&&!_&&r(d,l)||f&&!c.me&&y||f&&c.me&&!y&&r(n[l]||[],f)){c.de=!0;const t=C(a,'type',!0);g(a,'type',!!t),g(a,o);let n=C(a,'src',!0);n&&g(a,'src',!0);const r=p('script');r.textContent=a.innerHTML;for(const{nodeName:e}of a.attributes)m(r,e,a[e]||C(a,e));t&&(r.type=t),n?r.src=n:n=a.src;const i=!!n&&(!t||['text/javascript','module'].includes(t));if(i&&(r.onload=r.onerror=()=>{v(e,++s)}),a.replaceWith(r),i)return}v(e,++s)};v(_,0)},T=e=>{const{hostname:t,protocol:o}=location,{name:n,path:c,domain:a,sameSite:i}=s.t.cookie,l=encodeURIComponent(JSON.stringify(s.o.p)),f=e?(()=>{const e=s.o.S,t=e?new Date-e:0;return 864e5*S()-t})():864e5*S(),d=new Date;d.setTime(d.getTime()+f);let _=n+'='+l+(0!==f?'; expires='+d.toUTCString():'')+'; Path='+c+'; SameSite='+i;r(t,'.')&&(_+='; Domain='+a),'https:'===o&&(_+='; Secure'),document.cookie=_,s.o.p},E=(e,t,o)=>{const n=o||s.t.cookie.domain,c=t||s.t.cookie.path,r='www.'===n.slice(0,4),a=r&&n.substring(4),i=(e,t)=>{document.cookie=e+'=; path='+c+(t?'; domain=.'+t:'')+'; expires=Thu, 01 Jan 1970 00:00:01 GMT;'};for(const t of e)i(t),i(t,n),r&&i(t,a)},N=e=>(e=>{let t;try{t=JSON.parse(decodeURIComponent(e))}catch(e){t={}}return t})(k(e||s.t.cookie.name,!0)),k=(e,t)=>{const o=document.cookie.match('(^|;)\\s*'+e+'\\s*=\\s*([^;]+)');return o?t?o.pop():e:''},x=e=>{const t=document.cookie.split(/;\s*/),o=[];for(const n of t){let t=n.split('=')[0];if(e)try{e.test(t)&&o.push(t)}catch(e){}else o.push(t)}return o},F=(o,n=[])=>{((e,t)=>{const{O:o,I:n,A:c,ge:l,W:f,K:_}=s.o;let u=[];if(e){a(e)?u.push(...e):i(e)&&(u='all'===e?o:[e]);for(const e of o)f[e]=r(u,e)?d(_[e]):[]}else u=l?(()=>{const e=s.$.ee;if(!e)return[];let t=[];for(let o in e)e[o].checked&&t.push(o);return t})():n;u=u.filter((e=>!r(o,e)||!r(t,e))),u.push(...c),b(u)})(o,n),(e=>{const t=s.o,{W:o,A:n,V:c,K:a,O:i}=t,l=i;t.Y=v(c);for(const e of l){const t=a[e],s=d(t),i=o[e]&&o[e].length>0,l=r(n,e);if(0!==s.length){if(c[e]=[],l)c[e].push(...s);else if(i){const t=o[e];c[e].push(...t)}else c[e]=[];c[e]=_(c[e])}}})(),(()=>{const o=s.o;s.t.mode===t&&o.D?o.k=h(o.R,o.I):o.k=h(o.I,o.p.categories);let n=o.k.length>0,a=!1;for(const e of o.O)o.X[e]=h(o.V[e],o.Y[e]),o.X[e].length>0&&(a=!0);const i=s.$.ee;for(let e in i)i[e].checked=r(o.I,e);for(const e of o.O){const t=s.$.te[e],n=o.V[e];for(const e in t)t[e].checked=r(n,e)}o.v||(o.v=new Date),o.h||(o.h=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))),o.p={categories:v(o.I),revision:s.t.revision,data:o.C,consentTimestamp:o.v.toISOString(),consentId:o.h,services:v(o.V)};let l=!1;(o.D||n||a)&&(o.D&&(o.D=!1,l=!0),o.S?o.S=new Date:o.S=o.v,o.p.lastConsentTimestamp=o.S.toISOString(),T(),s.t.autoClearCookies&&(l||!o.D&&n)&&(e=>{const t=s.o,o=x();t.F=!1;let n=e?t.O:t.k;n=n.filter((e=>{let o=t.M[e];return!!o&&!o.readOnly&&!!o.autoClear}));for(const s of n){const n=t.M[s].autoClear,a=n&&n.cookies||[],i=r(t.k,s),l=!r(t.I,s),f=i&&l;if(e&&l||!e&&f){!0===n.reloadPage&&f&&(t.F=!0);for(const e of a){let t=[];const n=e.name,s=e.domain,r=e.path;if(n instanceof RegExp)for(let e of o)n.test(e)&&t.push(e);else{let e=c(o,n);e>-1&&t.push(o[e])}t.length>0&&E(t,r,s)}}}})(l),D()),l&&(w(s.ne.se),w(s.ne.ce),s.t.mode===e)||((n||a)&&w(s.ne.re),o.F&&location.reload())})()},j=e=>{const t=s.o.D?[]:s.o.I;return r(t,e)},M=(e,t)=>{const{O:o,K:n}=s.o;if(!(e&&t&&i(t)&&r(o,t)&&0!==d(n[t]).length))return!1;((e,t)=>{const o=s.o,{K:n,W:c,ge:l}=o,f=s.$.te[t]||{},p=s.$.ee[t]||{},m=d(n[t]);if(c[t]=[],i(e)){if('all'===e){if(c[t].push(...m),l)for(let e in f)f[e].checked=!0,u(f[e])}else if(r(m,e)&&c[t].push(e),l)for(let t in f)f[t].checked=e===t,u(f[t])}else if(a(e))for(let o of m){const n=r(e,o);n&&c[t].push(o),l&&(f[o].checked=n,u(f[o]))}const g=0===c[t].length;o.I=g?o.I.filter((e=>e!==t)):_([...o.I,t]),l&&(p.checked=!g,u(p))})(e,t),F()},O=(e,t)=>{const o=s.o.D?[]:s.o.V[t];return r(o,e)},I=e=>''!==k(e,!0),A=(e,t,o)=>{let n=[];const s=e=>{if(i(e)){let t=k(e);''!==t&&n.push(t)}else n.push(...x(e))};if(a(e))for(let t of e)s(t);else s(e);E(n,t,o)},R=()=>{const{j:e,V:t}=s.o,{accepted:o,rejected:n}=(()=>{const{D:e,I:t,O:o}=s.o;return{accepted:t,rejected:e?[]:o.filter((e=>!r(t,e)))}})();return v({acceptType:e,acceptedCategories:o,rejectedCategories:n,acceptedServices:t,rejectedServices:y()})},P=(e,t)=>{let o=document.querySelector('script[src="'+e+'"]');return new Promise((n=>{if(o)return n(!0);if(o=p('script'),l(t))for(const e in t)m(o,e,t[e]);var s,c;o.onload=()=>n(!0),o.onerror=()=>{o.remove(),n(!1)},o.src=e,s=document.head,c=o,s.appendChild(c)}))},B=e=>{let t,o=e.value,n=e.mode,c=!1;const r=s.o;if('update'===n){r.C=t=J('data');const e=typeof t==typeof o;if(e&&'object'==typeof t){!t&&(t={});for(let e in o)t[e]!==o[e]&&(t[e]=o[e],c=!0)}else!e&&t||t===o||(t=o,c=!0)}else t=o,c=!0;return c&&(r.C=t,r.p.data=t,T(!0)),c},J=(e,t)=>{const o=N(t);return e?o[e]:o},L=e=>{const t=s.t,o=s.o.i;return e?t[e]||o[e]:{...t,...o,cookie:{...t.cookie}}},U=()=>!s.o.D,G=async e=>{const{o:n,t:c,ne:f}=s,_=window;if(!_._ccRun){if(_._ccRun=!0,(e=>{const{$:n,t:c,o:a}=s,i=c,f=a,{cookie:_}=i,u=s.oe,p=e.cookie,m=e.categories,g=d(m)||[],v=navigator,y=document;n.Ce=y,n.ve=y.documentElement,_.domain=location.hostname,f.i=e,f.M=m,f.O=g,u.se=e.onFirstConsent,u.ce=e.onConsent,u.re=e.onChange;const{mode:S,autoClearCookies:h,revision:b,manageScriptTags:w,hideFromBots:D}=e;S===t&&(i.mode=S),'boolean'==typeof h&&(i.autoClearCookies=h),'boolean'==typeof w&&(i.manageScriptTags=w),'number'==typeof b&&b>=0&&(i.revision=b,f.T=!0),!1===D&&(i.hideFromBots=!1),!0===i.hideFromBots&&v&&(f.P=v.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(v.userAgent)||v.webdriver),l(p)&&(i.cookie={..._,...p}),i.autoClearCookies,f.T,i.manageScriptTags,(e=>{const{M:t,K:o,V:n,W:c,A:r}=s.o;for(let a of e){const e=t[a],i=e.services||{},f=l(i)&&d(i)||[];o[a]={},n[a]=[],c[a]=[],e.readOnly&&(r.push(a),n[a]=f),s.$.te[a]={};for(let e of f){const t=i[e];t.fe=!1,o[a][e]=t}}})(g),(()=>{if(!s.t.manageScriptTags)return;const e=s.o,t=(n=document,c='script['+o+']',n.querySelectorAll(c));var n,c;for(const n of t){let t=C(n,o),s=n.dataset.service||'',c=!1;if(t&&'!'===t.charAt(0)&&(t=t.slice(1),c=!0),'!'===s.charAt(0)&&(s=s.slice(1),c=!0),r(e.O,t)&&(e.Z.push({_e:n,de:!1,me:c,ue:t,pe:s}),s)){const o=e.K[t];o[s]||(o[s]={fe:!1})}}})()})(e),n.P)return;if((()=>{const e=s.o,o=s.t,n=N(),{categories:c,services:r,consentId:l,consentTimestamp:f,lastConsentTimestamp:d,data:_,revision:u}=n,p=a(c);e.p=n,e.h=l;const m=!!l&&i(l);e.v=f,e.v&&(e.v=new Date(f)),e.S=d,e.S&&(e.S=new Date(d)),e.C=void 0!==_?_:null,e.T&&m&&u!==o.revision&&(e.N=!1),e.D=!(m&&e.N&&e.v&&e.S&&p),e.D,e.D?o.mode===t&&((()=>{const e=s.o;for(const o of e.O){const n=e.M[o];if(n.readOnly||n.enabled&&e.i.mode===t){e.R.push(o);const t=e.K[o]||{};for(let n in t)e.V[o].push(n)}}})(),e.I=[...e.R]):(e.V={...e.V,...r},b([...e.A,...c])),e.W={...e.V}})(),U())return D(),w(f.ce);c.mode===t&&D(n.R)}},H=e=>{const{name:t,path:o,domain:c}=s.t.cookie;e&&A(t,o,c);for(const{ye:e,Se:t,he:o}of s.o.m)e.removeEventListener(t,o);const r=new n;for(const e in s)s[e]=r[e];window._ccRun=!1};export{F as acceptCategory,M as acceptService,j as acceptedCategory,O as acceptedService,A as eraseCookies,L as getConfig,J as getCookie,R as getUserPreferences,P as loadScript,H as reset,G as run,B as setCookieData,U as validConsent,I as validCookie};
/*!
* CookieConsent 3.0.0-rc.13
* CookieConsent 3.0.0-rc.14
* https://github.com/orestbida/cookieconsent

@@ -7,2 +7,2 @@ * Author Orest Bida

*/
var e,t;e=this,t=function(e){'use strict';const t='opt-in',o='opt-out',n='data-category';class s{constructor(){this.t={mode:t,revision:0,autoClearCookies:!0,manageScriptTags:!0,hideFromBots:!0,cookie:{name:'cc_cookie',expiresAfterDays:182,domain:'',path:'/',sameSite:'Lax'}},this.o={i:{},l:'',_:{},p:{},u:{},m:[],g:!1,C:null,v:null,S:null,h:'',D:!0,T:!1,N:!0,k:[],j:!1,I:'',F:!1,O:[],M:[],A:[],R:[],P:!1,B:!1,J:!1,L:[],U:[],G:[],H:{},q:{},K:{},V:{},W:{},X:[],Y:[]},this.Z={$:{},ee:{}},this.te={},this.oe={ne:'cc:onFirstConsent',se:'cc:onConsent',ce:'cc:onChange'}}}const c=new s,a=(e,t)=>e.indexOf(t),r=(e,t)=>-1!==a(e,t),i=e=>Array.isArray(e),l=e=>'string'==typeof e,f=e=>!!e&&'object'==typeof e&&!i(e),d=e=>'function'==typeof e,_=e=>Object.keys(e),p=e=>Array.from(new Set(e)),u=e=>e.dispatchEvent(new Event('change')),m=e=>{const t=document.createElement(e);return'button'===e&&(t.type=e),t},g=(e,t,o)=>e.setAttribute(t,o),C=(e,t,o)=>{e.removeAttribute(o?'data-'+t:t)},v=(e,t,o)=>e.getAttribute(o?'data-'+t:t),y=e=>{if('object'!=typeof e)return e;if(e instanceof Date)return new Date(e.getTime());let t=Array.isArray(e)?[]:{};for(let o in e){let n=e[o];t[o]=y(n)}return t},S=()=>{const e={},{O:t,H:o,q:n}=c.o;for(const s of t)e[s]=b(n[s],_(o[s]));return e},h=()=>{const e=c.t.cookie.expiresAfterDays;return d(e)?e(c.o.I):e},b=(e,t)=>{const o=e||[],n=t||[];return o.filter((e=>!r(n,e))).concat(n.filter((e=>!r(o,e))))},w=e=>{c.o.M=p(e),c.o.I=(()=>{let e='custom';const{M:t,O:o,A:n}=c.o,s=t.length;return s===o.length?e='all':s===n.length&&(e='necessary'),e})()},D=(e,t,o)=>{const{ce:n,se:s,ne:a,ae:r,re:i,ie:l}=c.te,f=c.oe,_={cookie:c.o.u};e===f.ne?d(a)&&a(y(_)):e===f.se?d(s)&&s(y(_)):(_.changedCategories=c.o.k,_.changedServices=c.o.V,d(n)&&n(y(_))),((e,t)=>{dispatchEvent(new CustomEvent(e,{detail:t}))})(e,y(_))},T=e=>{const{q:t,V:o,O:s,H:a,X:i,Y:l,u:f,k:_}=c.o;for(const e of s){const n=o[e]||t[e]||[];for(const o of n){const n=a[e][o];if(!n)continue;const{onAccept:s,onReject:c}=n;!n.le&&r(t[e],o)&&d(s)?(n.le=!0,s()):n.le&&!r(t[e],o)&&d(c)&&(n.le=!1,c())}}if(!c.t.manageScriptTags)return;const p=i,u=e||f.categories||[],y=(e,s)=>{if(s<e.length){const c=e[s],a=l[s],i=a.fe,f=a.de,d=r(u,i),p=!!f&&r(t[i],f);if(!a._e){let t=!f&&!a.pe&&d,l=f&&!a.pe&&p,u=!f&&a.pe&&!d&&r(_,i),S=f&&a.pe&&!p&&r(o[i]||[],f);if(t||u||l||S){a._e=!0;const t=v(c,'type',!0);C(c,'type',!!t),C(c,n);let o=v(c,'src',!0);o&&C(c,'src',!0);const r=m('script');r.textContent=c.innerHTML;for(const{nodeName:e}of c.attributes)g(r,e,c[e]||v(c,e));if(t&&(r.type=t),o?r.src=o:o=c.src,o&&(r.onload=r.onerror=()=>{y(e,++s)}),c.replaceWith(r),o)return}}y(e,++s)}};y(p,0)},E=e=>{const{hostname:t,protocol:o}=location,{name:n,path:s,domain:a,sameSite:i}=c.t.cookie,l=encodeURIComponent(JSON.stringify(c.o.u)),f=e?(()=>{const e=c.o.S,t=e?new Date-e:0;return 864e5*h()-t})():864e5*h(),d=new Date;d.setTime(d.getTime()+f);let _=n+'='+l+(0!==f?'; expires='+d.toUTCString():'')+'; Path='+s+'; SameSite='+i;r(t,'.')&&(_+='; Domain='+a),'https:'===o&&(_+='; Secure'),document.cookie=_,c.o.u},N=(e,t,o)=>{const n=o||c.t.cookie.domain,s=t||c.t.cookie.path,a='www.'===n.slice(0,4),r=a&&n.substring(4),i=(e,t)=>{document.cookie=e+'=; path='+s+(t?'; domain=.'+t:'')+'; expires=Thu, 01 Jan 1970 00:00:01 GMT;'};for(const t of e)i(t),i(t,n),a&&i(t,r)},x=e=>(e=>{let t;try{t=JSON.parse(decodeURIComponent(e))}catch(e){t={}}return t})(k(e||c.t.cookie.name,!0)),k=(e,t)=>{const o=document.cookie.match('(^|;)\\s*'+e+'\\s*=\\s*([^;]+)');return o?t?o.pop():e:''},j=e=>{const t=document.cookie.split(/;\s*/),o=[];for(const n of t){let t=n.split('=')[0];if(e)try{e.test(t)&&o.push(t)}catch(e){}else o.push(t)}return o},I=(e,n=[])=>{((e,t)=>{const{O:o,M:n,A:s,ue:a,K:f,H:d}=c.o;let p=[];if(e){i(e)?p.push(...e):l(e)&&(p='all'===e?o:[e]);for(const e of o)f[e]=r(p,e)?_(d[e]):[]}else p=a?(()=>{const e=c.Z.$;if(!e)return[];let t=[];for(let o in e)e[o].checked&&t.push(o);return t})():n;p=p.filter((e=>!r(o,e)||!r(t,e))),p.push(...s),w(p)})(e,n),(e=>{const t=c.o,{K:o,A:n,q:s,H:a,O:i}=t,l=i;t.W=y(s);for(const e of l){const t=a[e],c=_(t),i=o[e]?.length>0,l=r(n,e);if(0!==c.length){if(s[e]=[],l)s[e].push(...c);else if(i){const t=o[e];s[e].push(...t)}else s[e]=[];s[e]=p(s[e])}}})(),(()=>{const e=c.o;c.t.mode===o&&e.D?e.k=b(e.R,e.M):e.k=b(e.M,e.u.categories);let n=e.k.length>0,s=!1;for(const t of e.O)e.V[t]=b(e.q[t],e.W[t]),e.V[t].length>0&&(s=!0);const i=c.Z.$;for(let t in i)i[t].checked=r(e.M,t);for(const t of e.O){const o=c.Z.ee[t],n=e.q[t];for(const e in o)o[e].checked=r(n,e)}e.v||(e.v=new Date),e.h||(e.h=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))),e.u={categories:y(e.M),revision:c.t.revision,data:e.C,consentTimestamp:e.v.toISOString(),consentId:e.h,services:y(e.q)};let l=!1;(e.D||n||s)&&(e.D&&(e.D=!1,l=!0),e.S?e.S=new Date:e.S=e.v,e.u.lastConsentTimestamp=e.S.toISOString(),E(),c.t.autoClearCookies&&(l||!e.D&&n)&&(e=>{const t=c.o,o=j();t.j=!1;let n=e?t.O:t.k;n=n.filter((e=>{let o=t.F[e];return!!o&&!o.readOnly&&!!o.autoClear}));for(const s of n){const n=t.F[s].autoClear,c=n?.cookies||[],i=r(t.k,s),l=!r(t.M,s),f=i&&l;if(e&&l||!e&&f){!0===n.reloadPage&&f&&(t.j=!0);for(const e of c){let t=[];const n=e.name,s=e.domain,c=e.path;if(n instanceof RegExp)for(let e of o)n.test(e)&&t.push(e);else{let e=a(o,n);e>-1&&t.push(o[e])}t.length>0&&N(t,c,s)}}}})(l),T()),l&&(D(c.oe.ne),D(c.oe.se),c.t.mode===t)||((n||s)&&D(c.oe.ce),e.j&&location.reload())})()},F=(e,t,o)=>{let n=[];const s=e=>{if(l(e)){let t=k(e);''!==t&&n.push(t)}else n.push(...j(e))};if(i(e))for(let t of e)s(t);else s(e);N(n,t,o)},O=(e,t)=>{const o=x(t);return e?o[e]:o},M=()=>!c.o.D;e.acceptCategory=I,e.acceptService=(e,t)=>{const{O:o,H:n}=c.o;if(!(e&&t&&l(t)&&r(o,t)&&0!==_(n[t]).length))return!1;((e,t)=>{const o=c.o,{H:n,K:s,ue:a}=o,f=c.Z.ee[t]||{},d=c.Z.$[t]||{},m=_(n[t]);if(s[t]=[],l(e)){if('all'===e){if(s[t].push(...m),a)for(let e in f)f[e].checked=!0,u(f[e])}else if(r(m,e)&&s[t].push(e),a)for(let t in f)f[t].checked=e===t,u(f[t])}else if(i(e))for(let o of m){const n=r(e,o);n&&s[t].push(o),a&&(f[o].checked=n,u(f[o]))}const g=0===s[t].length;o.M=g?o.M.filter((e=>e!==t)):p([...o.M,t]),a&&(d.checked=!g,u(d))})(e,t),I()},e.acceptedCategory=e=>{const t=c.o.D?[]:c.o.M;return r(t,e)},e.acceptedService=(e,t)=>{const o=c.o.D?[]:c.o.q[t];return r(o,e)},e.eraseCookies=F,e.getConfig=e=>{const t=c.t,o=c.o.i;return e?t[e]||o[e]:{...t,...o,cookie:{...t.cookie}}},e.getCookie=O,e.getUserPreferences=()=>{const{I:e,q:t}=c.o,{accepted:o,rejected:n}=(()=>{const{D:e,M:t,O:o}=c.o;return{accepted:t,rejected:e?[]:o.filter((e=>!r(t,e)))}})();return y({acceptType:e,acceptedCategories:o,rejectedCategories:n,acceptedServices:t,rejectedServices:S()})},e.loadScript=(e,t)=>{let o=document.querySelector('script[src="'+e+'"]');return new Promise((n=>{if(o)return n(!0);if(o=m('script'),f(t))for(const e in t)g(o,e,t[e]);var s,c;o.onload=()=>n(!0),o.onerror=()=>{o.remove(),n(!1)},o.src=e,s=document.head,c=o,s.appendChild(c)}))},e.reset=e=>{const{name:t,path:o,domain:n}=c.t.cookie;e&&F(t,o,n);for(const{me:e,ge:t,Ce:o}of c.o.m)e.removeEventListener(t,o);const a=new s;for(const e in c)c[e]=a[e];window._ccRun=!1},e.run=async e=>{const{o:t,t:s,oe:a}=c,d=window;if(!d._ccRun){if(d._ccRun=!0,(e=>{const{Z:t,t:s,o:a}=c,i=s,l=a,{cookie:d}=i,p=c.te,u=e.cookie,m=e.categories,g=_(m)||[],C=navigator,y=document;t.ve=y,t.ye=y.documentElement,d.domain=location.hostname,l.i=e,l.F=m,l.O=g,p.ne=e.onFirstConsent,p.se=e.onConsent,p.ce=e.onChange;const{mode:S,autoClearCookies:h,revision:b,manageScriptTags:w,hideFromBots:D}=e;S===o&&(i.mode=S),'boolean'==typeof h&&(i.autoClearCookies=h),'boolean'==typeof w&&(i.manageScriptTags=w),'number'==typeof b&&b>=0&&(i.revision=b,l.T=!0),!1===D&&(i.hideFromBots=!1),!0===i.hideFromBots&&C&&(l.P=C.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(C.userAgent)||C.webdriver),f(u)&&(i.cookie={...d,...u}),i.autoClearCookies,l.T,i.manageScriptTags,(e=>{const{F:t,H:o,q:n,K:s,A:a}=c.o;for(let r of e){const e=t[r],i=e.services||{},l=f(i)&&_(i)||[];o[r]={},n[r]=[],s[r]=[],e.readOnly&&(a.push(r),n[r]=l),c.Z.ee[r]={};for(let e of l){const t=i[e];t.le=!1,o[r][e]=t}}})(g),(()=>{if(!c.t.manageScriptTags)return;const e=c.o;e.X=c.Z.ve.querySelectorAll('script[data-category]'),e.Y=[];for(const t of e.X){let o=v(t,n),s=t.dataset.service||'',c=!1;if(o&&'!'===o.charAt(0)&&(o=o.slice(1),c=!0),'!'===s.charAt(0)&&(s=s.slice(1),c=!0),r(e.O,o)&&(e.Y.push({_e:!1,pe:c,fe:o,de:s}),s)){const t=e.H[o];t[s]||(t[s]={le:!1})}}})()})(e),t.P)return;if((()=>{const e=c.o,t=c.t,n=x(),{categories:s,services:a,consentId:r,consentTimestamp:f,lastConsentTimestamp:d,data:_,revision:p}=n,u=i(s);e.u=n,e.h=r;const m=!!r&&l(r);e.v=f,e.v&&(e.v=new Date(f)),e.S=d,e.S&&(e.S=new Date(d)),e.C=void 0!==_?_:null,e.T&&m&&p!==t.revision&&(e.N=!1),e.D=!(m&&e.N&&e.v&&e.S&&u),e.D,e.D?t.mode===o&&((()=>{const e=c.o;for(const t of e.O){const o=e.F[t];if(o.enabled||o.readOnly){e.R.push(t);const o=e.H[t]||{};for(let n in o)e.q[t].push(n)}}})(),e.M=[...e.R]):(e.q={...e.q,...a},w([...e.A,...s])),e.K={...e.q}})(),M())return T(),D(a.se);s.mode===o&&T(t.R)}},e.setCookieData=e=>{let t,o=e.value,n=e.mode,s=!1;const a=c.o;if('update'===n){a.C=t=O('data');const e=typeof t==typeof o;if(e&&'object'==typeof t){!t&&(t={});for(let e in o)t[e]!==o[e]&&(t[e]=o[e],s=!0)}else!e&&t||t===o||(t=o,s=!0)}else t=o,s=!0;return s&&(a.C=t,a.u.data=t,E(!0)),s},e.validConsent=M,e.validCookie=e=>''!==k(e,!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={});
var e,t;e=this,t=function(e){'use strict';const t='opt-in',o='opt-out',n='data-category';class s{constructor(){this.t={mode:t,revision:0,autoClearCookies:!0,manageScriptTags:!0,hideFromBots:!0,cookie:{name:'cc_cookie',expiresAfterDays:182,domain:'',path:'/',sameSite:'Lax'}},this.o={i:{},l:'',_:{},u:{},p:{},m:[],g:!1,C:null,v:null,S:null,h:'',D:!0,T:!1,N:!0,k:[],j:!1,F:'',M:!1,O:[],I:[],A:[],R:[],P:!1,B:!1,J:!1,L:[],U:[],G:null,H:[],q:[],K:{},V:{},W:{},X:{},Y:{},Z:[]},this.$={ee:{},te:{}},this.oe={},this.ne={se:'cc:onFirstConsent',ce:'cc:onConsent',re:'cc:onChange'}}}const c=new s,r=(e,t)=>e.indexOf(t),a=(e,t)=>-1!==r(e,t),i=e=>Array.isArray(e),l=e=>'string'==typeof e,f=e=>!!e&&'object'==typeof e&&!i(e),d=e=>'function'==typeof e,_=e=>Object.keys(e),u=e=>Array.from(new Set(e)),p=e=>e.dispatchEvent(new Event('change')),m=e=>{const t=document.createElement(e);return'button'===e&&(t.type=e),t},g=(e,t,o)=>e.setAttribute(t,o),C=(e,t,o)=>{e.removeAttribute(o?'data-'+t:t)},v=(e,t,o)=>e.getAttribute(o?'data-'+t:t),y=e=>{if('object'!=typeof e)return e;if(e instanceof Date)return new Date(e.getTime());let t=Array.isArray(e)?[]:{};for(let o in e){let n=e[o];t[o]=y(n)}return t},S=()=>{const e={},{O:t,K:o,V:n}=c.o;for(const s of t)e[s]=b(n[s],_(o[s]));return e},h=()=>{const e=c.t.cookie.expiresAfterDays;return d(e)?e(c.o.F):e},b=(e,t)=>{const o=e||[],n=t||[];return o.filter((e=>!a(n,e))).concat(n.filter((e=>!a(o,e))))},w=e=>{c.o.I=u(e),c.o.F=(()=>{let e='custom';const{I:t,O:o,A:n}=c.o,s=t.length;return s===o.length?e='all':s===n.length&&(e='necessary'),e})()},D=(e,t,o)=>{const{re:n,ce:s,se:r,ae:a,ie:i,le:l}=c.oe,f=c.ne,_={cookie:c.o.p};e===f.se?d(r)&&r(y(_)):e===f.ce?d(s)&&s(y(_)):(_.changedCategories=c.o.k,_.changedServices=c.o.X,d(n)&&n(y(_))),((e,t)=>{dispatchEvent(new CustomEvent(e,{detail:t}))})(e,y(_))},T=e=>{const{V:t,X:o,O:s,K:r,Z:i,p:l,k:f}=c.o;for(const e of s){const n=o[e]||t[e]||[];for(const o of n){const n=r[e][o];if(!n)continue;const{onAccept:s,onReject:c}=n;!n.fe&&a(t[e],o)&&d(s)?(n.fe=!0,s()):n.fe&&!a(t[e],o)&&d(c)&&(n.fe=!1,c())}}if(!c.t.manageScriptTags)return;const _=i,u=e||l.categories||[],p=(e,s)=>{if(s>=e.length)return;const c=i[s];if(c.de)return p(e,s+1);const r=c._e,l=c.ue,d=c.pe,_=a(u,l),y=!!d&&a(t[l],d);if(!d&&!c.me&&_||!d&&c.me&&!_&&a(f,l)||d&&!c.me&&y||d&&c.me&&!y&&a(o[l]||[],d)){c.de=!0;const t=v(r,'type',!0);C(r,'type',!!t),C(r,n);let o=v(r,'src',!0);o&&C(r,'src',!0);const a=m('script');a.textContent=r.innerHTML;for(const{nodeName:e}of r.attributes)g(a,e,r[e]||v(r,e));t&&(a.type=t),o?a.src=o:o=r.src;const i=!!o&&(!t||['text/javascript','module'].includes(t));if(i&&(a.onload=a.onerror=()=>{p(e,++s)}),r.replaceWith(a),i)return}p(e,++s)};p(_,0)},E=e=>{const{hostname:t,protocol:o}=location,{name:n,path:s,domain:r,sameSite:i}=c.t.cookie,l=encodeURIComponent(JSON.stringify(c.o.p)),f=e?(()=>{const e=c.o.S,t=e?new Date-e:0;return 864e5*h()-t})():864e5*h(),d=new Date;d.setTime(d.getTime()+f);let _=n+'='+l+(0!==f?'; expires='+d.toUTCString():'')+'; Path='+s+'; SameSite='+i;a(t,'.')&&(_+='; Domain='+r),'https:'===o&&(_+='; Secure'),document.cookie=_,c.o.p},N=(e,t,o)=>{const n=o||c.t.cookie.domain,s=t||c.t.cookie.path,r='www.'===n.slice(0,4),a=r&&n.substring(4),i=(e,t)=>{document.cookie=e+'=; path='+s+(t?'; domain=.'+t:'')+'; expires=Thu, 01 Jan 1970 00:00:01 GMT;'};for(const t of e)i(t),i(t,n),r&&i(t,a)},x=e=>(e=>{let t;try{t=JSON.parse(decodeURIComponent(e))}catch(e){t={}}return t})(k(e||c.t.cookie.name,!0)),k=(e,t)=>{const o=document.cookie.match('(^|;)\\s*'+e+'\\s*=\\s*([^;]+)');return o?t?o.pop():e:''},j=e=>{const t=document.cookie.split(/;\s*/),o=[];for(const n of t){let t=n.split('=')[0];if(e)try{e.test(t)&&o.push(t)}catch(e){}else o.push(t)}return o},F=(e,n=[])=>{((e,t)=>{const{O:o,I:n,A:s,ge:r,W:f,K:d}=c.o;let u=[];if(e){i(e)?u.push(...e):l(e)&&(u='all'===e?o:[e]);for(const e of o)f[e]=a(u,e)?_(d[e]):[]}else u=r?(()=>{const e=c.$.ee;if(!e)return[];let t=[];for(let o in e)e[o].checked&&t.push(o);return t})():n;u=u.filter((e=>!a(o,e)||!a(t,e))),u.push(...s),w(u)})(e,n),(e=>{const t=c.o,{W:o,A:n,V:s,K:r,O:i}=t,l=i;t.Y=y(s);for(const e of l){const t=r[e],c=_(t),i=o[e]&&o[e].length>0,l=a(n,e);if(0!==c.length){if(s[e]=[],l)s[e].push(...c);else if(i){const t=o[e];s[e].push(...t)}else s[e]=[];s[e]=u(s[e])}}})(),(()=>{const e=c.o;c.t.mode===o&&e.D?e.k=b(e.R,e.I):e.k=b(e.I,e.p.categories);let n=e.k.length>0,s=!1;for(const t of e.O)e.X[t]=b(e.V[t],e.Y[t]),e.X[t].length>0&&(s=!0);const i=c.$.ee;for(let t in i)i[t].checked=a(e.I,t);for(const t of e.O){const o=c.$.te[t],n=e.V[t];for(const e in o)o[e].checked=a(n,e)}e.v||(e.v=new Date),e.h||(e.h=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))),e.p={categories:y(e.I),revision:c.t.revision,data:e.C,consentTimestamp:e.v.toISOString(),consentId:e.h,services:y(e.V)};let l=!1;(e.D||n||s)&&(e.D&&(e.D=!1,l=!0),e.S?e.S=new Date:e.S=e.v,e.p.lastConsentTimestamp=e.S.toISOString(),E(),c.t.autoClearCookies&&(l||!e.D&&n)&&(e=>{const t=c.o,o=j();t.j=!1;let n=e?t.O:t.k;n=n.filter((e=>{let o=t.M[e];return!!o&&!o.readOnly&&!!o.autoClear}));for(const s of n){const n=t.M[s].autoClear,c=n&&n.cookies||[],i=a(t.k,s),l=!a(t.I,s),f=i&&l;if(e&&l||!e&&f){!0===n.reloadPage&&f&&(t.j=!0);for(const e of c){let t=[];const n=e.name,s=e.domain,c=e.path;if(n instanceof RegExp)for(let e of o)n.test(e)&&t.push(e);else{let e=r(o,n);e>-1&&t.push(o[e])}t.length>0&&N(t,c,s)}}}})(l),T()),l&&(D(c.ne.se),D(c.ne.ce),c.t.mode===t)||((n||s)&&D(c.ne.re),e.j&&location.reload())})()},M=(e,t,o)=>{let n=[];const s=e=>{if(l(e)){let t=k(e);''!==t&&n.push(t)}else n.push(...j(e))};if(i(e))for(let t of e)s(t);else s(e);N(n,t,o)},O=(e,t)=>{const o=x(t);return e?o[e]:o},I=()=>!c.o.D;e.acceptCategory=F,e.acceptService=(e,t)=>{const{O:o,K:n}=c.o;if(!(e&&t&&l(t)&&a(o,t)&&0!==_(n[t]).length))return!1;((e,t)=>{const o=c.o,{K:n,W:s,ge:r}=o,f=c.$.te[t]||{},d=c.$.ee[t]||{},m=_(n[t]);if(s[t]=[],l(e)){if('all'===e){if(s[t].push(...m),r)for(let e in f)f[e].checked=!0,p(f[e])}else if(a(m,e)&&s[t].push(e),r)for(let t in f)f[t].checked=e===t,p(f[t])}else if(i(e))for(let o of m){const n=a(e,o);n&&s[t].push(o),r&&(f[o].checked=n,p(f[o]))}const g=0===s[t].length;o.I=g?o.I.filter((e=>e!==t)):u([...o.I,t]),r&&(d.checked=!g,p(d))})(e,t),F()},e.acceptedCategory=e=>{const t=c.o.D?[]:c.o.I;return a(t,e)},e.acceptedService=(e,t)=>{const o=c.o.D?[]:c.o.V[t];return a(o,e)},e.eraseCookies=M,e.getConfig=e=>{const t=c.t,o=c.o.i;return e?t[e]||o[e]:{...t,...o,cookie:{...t.cookie}}},e.getCookie=O,e.getUserPreferences=()=>{const{F:e,V:t}=c.o,{accepted:o,rejected:n}=(()=>{const{D:e,I:t,O:o}=c.o;return{accepted:t,rejected:e?[]:o.filter((e=>!a(t,e)))}})();return y({acceptType:e,acceptedCategories:o,rejectedCategories:n,acceptedServices:t,rejectedServices:S()})},e.loadScript=(e,t)=>{let o=document.querySelector('script[src="'+e+'"]');return new Promise((n=>{if(o)return n(!0);if(o=m('script'),f(t))for(const e in t)g(o,e,t[e]);var s,c;o.onload=()=>n(!0),o.onerror=()=>{o.remove(),n(!1)},o.src=e,s=document.head,c=o,s.appendChild(c)}))},e.reset=e=>{const{name:t,path:o,domain:n}=c.t.cookie;e&&M(t,o,n);for(const{Ce:e,ve:t,ye:o}of c.o.m)e.removeEventListener(t,o);const r=new s;for(const e in c)c[e]=r[e];window._ccRun=!1},e.run=async e=>{const{o:t,t:s,ne:r}=c,d=window;if(!d._ccRun){if(d._ccRun=!0,(e=>{const{$:t,t:s,o:r}=c,i=s,l=r,{cookie:d}=i,u=c.oe,p=e.cookie,m=e.categories,g=_(m)||[],C=navigator,y=document;t.Se=y,t.he=y.documentElement,d.domain=location.hostname,l.i=e,l.M=m,l.O=g,u.se=e.onFirstConsent,u.ce=e.onConsent,u.re=e.onChange;const{mode:S,autoClearCookies:h,revision:b,manageScriptTags:w,hideFromBots:D}=e;S===o&&(i.mode=S),'boolean'==typeof h&&(i.autoClearCookies=h),'boolean'==typeof w&&(i.manageScriptTags=w),'number'==typeof b&&b>=0&&(i.revision=b,l.T=!0),!1===D&&(i.hideFromBots=!1),!0===i.hideFromBots&&C&&(l.P=C.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(C.userAgent)||C.webdriver),f(p)&&(i.cookie={...d,...p}),i.autoClearCookies,l.T,i.manageScriptTags,(e=>{const{M:t,K:o,V:n,W:s,A:r}=c.o;for(let a of e){const e=t[a],i=e.services||{},l=f(i)&&_(i)||[];o[a]={},n[a]=[],s[a]=[],e.readOnly&&(r.push(a),n[a]=l),c.$.te[a]={};for(let e of l){const t=i[e];t.fe=!1,o[a][e]=t}}})(g),(()=>{if(!c.t.manageScriptTags)return;const e=c.o,t=(o=document,s='script['+n+']',o.querySelectorAll(s));var o,s;for(const o of t){let t=v(o,n),s=o.dataset.service||'',c=!1;if(t&&'!'===t.charAt(0)&&(t=t.slice(1),c=!0),'!'===s.charAt(0)&&(s=s.slice(1),c=!0),a(e.O,t)&&(e.Z.push({_e:o,de:!1,me:c,ue:t,pe:s}),s)){const o=e.K[t];o[s]||(o[s]={fe:!1})}}})()})(e),t.P)return;if((()=>{const e=c.o,t=c.t,n=x(),{categories:s,services:r,consentId:a,consentTimestamp:f,lastConsentTimestamp:d,data:_,revision:u}=n,p=i(s);e.p=n,e.h=a;const m=!!a&&l(a);e.v=f,e.v&&(e.v=new Date(f)),e.S=d,e.S&&(e.S=new Date(d)),e.C=void 0!==_?_:null,e.T&&m&&u!==t.revision&&(e.N=!1),e.D=!(m&&e.N&&e.v&&e.S&&p),e.D,e.D?t.mode===o&&((()=>{const e=c.o;for(const t of e.O){const n=e.M[t];if(n.readOnly||n.enabled&&e.i.mode===o){e.R.push(t);const o=e.K[t]||{};for(let n in o)e.V[t].push(n)}}})(),e.I=[...e.R]):(e.V={...e.V,...r},w([...e.A,...s])),e.W={...e.V}})(),I())return T(),D(r.ce);s.mode===o&&T(t.R)}},e.setCookieData=e=>{let t,o=e.value,n=e.mode,s=!1;const r=c.o;if('update'===n){r.C=t=O('data');const e=typeof t==typeof o;if(e&&'object'==typeof t){!t&&(t={});for(let e in o)t[e]!==o[e]&&(t[e]=o[e],s=!0)}else!e&&t||t===o||(t=o,s=!0)}else t=o,s=!0;return s&&(r.C=t,r.p.data=t,E(!0)),s},e.validConsent=I,e.validCookie=e=>''!==k(e,!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={});
{
"name": "vanilla-cookieconsent",
"version": "3.0.0-rc.13",
"version": "3.0.0-rc.14",
"description": "🍪 Simple cross-browser cookie-consent plugin written in vanilla js.",

@@ -41,19 +41,19 @@ "main": "dist/cookieconsent.umd.js",

"devDependencies": {
"@babel/core": "^7.20.12",
"@babel/preset-env": "^7.20.2",
"@rollup/plugin-eslint": "^9.0.3",
"@rollup/plugin-terser": "^0.4.0",
"@types/jest": "^29.4.0",
"babel-jest": "^29.4.0",
"cssnano": "^5.1.14",
"eslint": "^8.32.0",
"@babel/core": "^7.22.1",
"@babel/preset-env": "^7.22.2",
"@rollup/plugin-eslint": "^9.0.4",
"@rollup/plugin-terser": "^0.4.3",
"@types/jest": "^29.5.1",
"babel-jest": "^29.5.0",
"cssnano": "^6.0.1",
"eslint": "^8.41.0",
"fast-glob": "^3.2.12",
"jest": "^29.4.0",
"jest-environment-jsdom": "^29.4.0",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"postcss-combine-duplicated-selectors": "^10.0.3",
"rollup": "^3.10.1",
"rollup": "^3.23.0",
"rollup-plugin-postcss": "^4.0.2",
"sass": "^1.57.1",
"sass": "^1.62.1",
"sitemap": "^7.1.1",
"vitepress": "1.0.0-alpha.40"
"vitepress": "1.0.0-beta.1"
},

@@ -60,0 +60,0 @@ "jest": {

# CookieConsent v3
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
[![Latest version](https://img.shields.io/github/package-json/v/orestbida/cookieconsent/v3.0-beta?color=2b4eed&label=Release)](https://github.com/orestbida/cookieconsent/releases/v3.0.0-rc.13)
[![Latest version](https://img.shields.io/github/package-json/v/orestbida/cookieconsent/v3.0-beta?color=2b4eed&label=Release)](https://github.com/orestbida/cookieconsent/releases/v3.0.0-rc.14)
[![CircleCI](https://dl.circleci.com/status-badge/img/gh/orestbida/cookieconsent/tree/v3%2E0-beta.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/orestbida/cookieconsent/tree/v3%2E0-beta)

@@ -6,0 +6,0 @@

@@ -302,3 +302,9 @@ export = CookieConsent

interface CookieTable {
/**
* Table caption
*/
caption?: string,
/**
* Define the table headers (columns).

@@ -305,0 +311,0 @@ */

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc