UNPKG

@68publishers/cookie-consent

Version:

Cookie consent wrapper based on orestbida/cookieconsent with GTM integration.

1 lines 83.1 kB
var CookieConsentWrapper;(()=>{var t={9021:function(t,e,n){var o;t.exports=(o=o||function(t,e){var o;if("undefined"!=typeof window&&window.crypto&&(o=window.crypto),"undefined"!=typeof self&&self.crypto&&(o=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(o=globalThis.crypto),!o&&"undefined"!=typeof window&&window.msCrypto&&(o=window.msCrypto),!o&&void 0!==n.g&&n.g.crypto&&(o=n.g.crypto),!o)try{o=n(477)}catch(t){}var i=function(){if(o){if("function"==typeof o.getRandomValues)try{return o.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof o.randomBytes)try{return o.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},r=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),s={},a=s.lib={},c=a.Base={extend:function(t){var e=r(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},l=a.WordArray=c.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:4*t.length},toString:function(t){return(t||d).stringify(this)},concat:function(t){var e=this.words,n=t.words,o=this.sigBytes,i=t.sigBytes;if(this.clamp(),o%4)for(var r=0;r<i;r++){var s=n[r>>>2]>>>24-r%4*8&255;e[o+r>>>2]|=s<<24-(o+r)%4*8}else for(var a=0;a<i;a+=4)e[o+a>>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(i());return new l.init(e,t)}}),u=s.enc={},d=u.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,o=[],i=0;i<n;i++){var r=e[i>>>2]>>>24-i%4*8&255;o.push((r>>>4).toString(16)),o.push((15&r).toString(16))}return o.join("")},parse:function(t){for(var e=t.length,n=[],o=0;o<e;o+=2)n[o>>>3]|=parseInt(t.substr(o,2),16)<<24-o%8*4;return new l.init(n,e/2)}},p=u.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,o=[],i=0;i<n;i++){var r=e[i>>>2]>>>24-i%4*8&255;o.push(String.fromCharCode(r))}return o.join("")},parse:function(t){for(var e=t.length,n=[],o=0;o<e;o++)n[o>>>2]|=(255&t.charCodeAt(o))<<24-o%4*8;return new l.init(n,e)}},h=u.Utf8={stringify:function(t){try{return decodeURIComponent(escape(p.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return p.parse(unescape(encodeURIComponent(t)))}},_=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=h.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,o=this._data,i=o.words,r=o.sigBytes,s=this.blockSize,a=r/(4*s),c=(a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*s,u=t.min(4*c,r);if(c){for(var d=0;d<c;d+=s)this._doProcessBlock(i,d);n=i.splice(0,c),o.sigBytes-=u}return new l.init(n,u)},clone:function(){var t=c.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),f=(a.Hasher=_.extend({cfg:c.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){_.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new f.HMAC.init(t,n).finalize(e)}}}),s.algo={});return s}(Math),o)},3009:function(t,e,n){var o;t.exports=(o=n(9021),function(t){var e=o,n=e.lib,i=n.WordArray,r=n.Hasher,s=e.algo,a=[],c=[];!function(){function e(e){for(var n=t.sqrt(e),o=2;o<=n;o++)if(!(e%o))return!1;return!0}function n(t){return 4294967296*(t-(0|t))|0}for(var o=2,i=0;i<64;)e(o)&&(i<8&&(a[i]=n(t.pow(o,.5))),c[i]=n(t.pow(o,1/3)),i++),o++}();var l=[],u=s.SHA256=r.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,o=n[0],i=n[1],r=n[2],s=n[3],a=n[4],u=n[5],d=n[6],p=n[7],h=0;h<64;h++){if(h<16)l[h]=0|t[e+h];else{var _=l[h-15],f=(_<<25|_>>>7)^(_<<14|_>>>18)^_>>>3,g=l[h-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;l[h]=f+l[h-7]+v+l[h-16]}var m=o&i^o&r^i&r,y=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),b=p+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&u^~a&d)+c[h]+l[h];p=d,d=u,u=a,a=s+b|0,s=r,r=i,i=o,o=b+(y+m)|0}n[0]=n[0]+o|0,n[1]=n[1]+i|0,n[2]=n[2]+r|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+p|0},_doFinalize:function(){var e=this._data,n=e.words,o=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(o/4294967296),n[15+(i+64>>>9<<4)]=o,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=r._createHelper(u),e.HmacSHA256=r._createHmacHelper(u)}(Math),o.SHA256)},3757:()=>{!function(){"use strict";var t="initCookieConsent";"undefined"!=typeof window&&"function"!=typeof window[t]&&(window[t]=function(t){var e,n,o,i,r,s,a,c,l,u,d,p,h,_,f,g,v,m,y,b,w,C,k,x,O,E,S,A,T,N,P,j,I,L,R,M={mode:"opt-in",current_lang:"en",auto_language:null,autorun:!0,page_scripts:!0,hide_from_bots:!0,cookie_name:"cc_cookie",cookie_expiration:182,cookie_domain:location.hostname,cookie_path:"/",cookie_same_site:"Lax",use_rfc_cookie:!1,autoclear_cookies:!0,revision:0,script_selector:"data-cookiecategory"},D={},B={},F=null,H=!0,U=!1,$=!1,W=!1,z=!1,G=!0,Y=[],q=!1,J=[],V=[],K=[],X=!1,Q=[],Z=[],tt=[],et=[],nt=[],ot=document.documentElement,it=function(t){pt("CookieConsent [CONFIG]: received_config_settings ",e=t),"number"==typeof e.cookie_expiration&&(M.cookie_expiration=e.cookie_expiration),"number"==typeof e.cookie_necessary_only_expiration&&(M.cookie_necessary_only_expiration=e.cookie_necessary_only_expiration),"boolean"==typeof e.autorun&&(M.autorun=e.autorun),"string"==typeof e.cookie_domain&&(M.cookie_domain=e.cookie_domain),"string"==typeof e.cookie_same_site&&(M.cookie_same_site=e.cookie_same_site),"string"==typeof e.cookie_path&&(M.cookie_path=e.cookie_path),"string"==typeof e.cookie_name&&(M.cookie_name=e.cookie_name),"function"==typeof e.onAccept&&(d=e.onAccept),"function"==typeof e.onFirstAction&&(h=e.onFirstAction),"function"==typeof e.onChange&&(p=e.onChange),"opt-out"===e.mode&&(M.mode="opt-out"),"number"==typeof e.revision&&(e.revision>-1&&(M.revision=e.revision),z=!0),"boolean"==typeof e.autoclear_cookies&&(M.autoclear_cookies=e.autoclear_cookies),!0===e.use_rfc_cookie&&(M.use_rfc_cookie=!0),"boolean"==typeof e.hide_from_bots&&(M.hide_from_bots=e.hide_from_bots),M.hide_from_bots&&(X=navigator&&(navigator.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(navigator.userAgent)||navigator.webdriver)),M.page_scripts=!0===e.page_scripts,"browser"===e.auto_language||!0===e.auto_language?M.auto_language="browser":"document"===e.auto_language&&(M.auto_language="document"),pt("CookieConsent [LANG]: auto_language strategy is '"+M.auto_language+"'"),M.current_lang=ft(e.languages,e.current_lang)},rt=function(t){for(var e="accept-",n=a("c-settings"),o=a(e+"all"),i=a(e+"necessary"),r=a(e+"custom"),s=0;s<n.length;s++)n[s].setAttribute("aria-haspopup","dialog"),kt(n[s],"click",(function(t){t.preventDefault(),D.showSettings(0)}));for(s=0;s<o.length;s++)kt(o[s],"click",(function(t){c(t,"all")}));for(s=0;s<r.length;s++)kt(r[s],"click",(function(t){c(t)}));for(s=0;s<i.length;s++)kt(i[s],"click",(function(t){c(t,[])}));function a(e){return(t||document).querySelectorAll('[data-cc="'+e+'"]')}function c(t,e){t.preventDefault(),D.accept(e),D.hideSettings(),D.hide()}},st=function(t,e){return e.hasOwnProperty(t)?t:xt(e).length>0?e.hasOwnProperty(M.current_lang)?M.current_lang:xt(e)[0]:void 0},at=function(){var t=["[href]","button","input","details",'[tabindex="0"]'];function e(e,n){try{var o=e.querySelectorAll(t.join(':not([tabindex="-1"]), '))}catch(n){return e.querySelectorAll(t.join(", "))}const i=Array.from(o);n[0]=i.find((t=>CookieConsentWrapper.utils.checkVisibility(t))),n[1]=i.reverse().find((t=>CookieConsentWrapper.utils.checkVisibility(t)))}e(S,Z),U&&e(y,Q)},ct=function(t){if(!0===e.force_consent&&Ot(ot,"force--consent"),!y){y=ht("div");var n=ht("div"),o=ht("div");y.id="cm",n.id="c-inr-i",o.id="cm-ov",y.tabIndex=-1,y.setAttribute("role","dialog"),y.setAttribute("aria-modal","true"),y.setAttribute("aria-hidden","false"),y.setAttribute("aria-labelledby","c-ttl"),y.setAttribute("aria-describedby","c-txt"),m.appendChild(y),m.appendChild(o),y.style.visibility=o.style.visibility="hidden",o.style.opacity=0}var i=e.languages[t].consent_modal.title;i&&(b||((b=ht("h2")).id="c-ttl",n.appendChild(b)),b.innerHTML=i);var r=e.languages[t].consent_modal.description;z&&(r=G?r.replace("{{revision_message}}",""):r.replace("{{revision_message}}",e.languages[t].consent_modal.revision_message||"")),w||((w=ht("div")).id="c-txt",n.appendChild(w)),w.innerHTML=r;var s,a=e.languages[t].consent_modal.primary_btn,c=e.languages[t].consent_modal.secondary_btn;a&&(C||((C=ht("button")).id="c-p-bn",C.className="c-bn",C.appendChild(At(1)),"accept_all"===a.role&&(s="all"),kt(C,"click",(function(){D.hide(),pt("CookieConsent [ACCEPT]: cookie_consent was accepted!"),D.accept(s)}))),C.firstElementChild.innerHTML=e.languages[t].consent_modal.primary_btn.text);c&&(k||((k=ht("button")).id="c-s-bn",k.className="c-bn c_link",k.appendChild(At(1)),"accept_necessary"===c.role?kt(k,"click",(function(){D.hide(),D.accept([])})):kt(k,"click",(function(){D.showSettings(0)}))),k.firstElementChild.innerHTML=e.languages[t].consent_modal.secondary_btn.text);var l=e.gui_options;O||((O=ht("div")).id="c-inr",O.appendChild(n)),x||((x=ht("div")).id="c-bns",l&&l.consent_modal&&!0===l.consent_modal.swap_buttons?(c&&x.appendChild(k),a&&x.appendChild(C),x.className="swap"):(a&&x.appendChild(C),c&&x.appendChild(k)),(a||c)&&O.appendChild(x),y.appendChild(O)),U=!0,rt(O)},lt=function(t){if(E)(P=ht("div")).id="s-bl";else{(E=ht("div")).tabIndex=-1;var n=ht("div"),o=ht("div"),i=ht("div");S=ht("div"),A=ht("h2");var r=ht("div");(T=ht("button")).appendChild(At(2));var s=ht("div");N=ht("div");var a=ht("div"),c=!1;kt(E,"mouseup",(function(t){!W||c||S.contains(t.target)||D.hideSettings()})),kt(E,"mousedown",(function(t){W&&(c=S.contains(t.target))})),E.id="s-cnt",n.id="c-vln",i.id="c-s-in",o.id="cs",A.id="s-ttl",S.id="s-inr",r.id="s-hdr",N.id="s-bl",T.id="s-c-bn",a.id="cs-ov",s.id="s-c-bnc",T.className="c-bn",E.setAttribute("role","dialog"),E.setAttribute("aria-modal","true"),E.setAttribute("aria-hidden","true"),E.setAttribute("aria-labelledby","s-ttl"),E.style.visibility=a.style.visibility="hidden",a.style.opacity=0,s.appendChild(T),kt(document,"keydown",(function(t){27===t.keyCode&&W&&D.hideSettings()}),!0),kt(T,"click",(function(){D.hideSettings()}))}var d=e.languages[t].settings_modal;T.setAttribute("aria-label",d.close_btn_label||"Close"),u=d.blocks,l=d.cookie_table_headers;var p=d.cookie_table_caption,h=u.length;A.innerHTML=d.title;for(var _=0;_<h;++_){var f=u[_].title,g=u[_].description,v=u[_].toggle,y=u[_].cookie_table,b=!0===e.remove_cookie_tables,w=!!g||!b&&!!y,C=ht("div"),k=ht("div");if(g){var x=ht("div");x.className="p",x.insertAdjacentHTML("beforeend",g)}var O=ht("div");if(O.className="title",C.className="c-bl",k.className="desc",void 0!==v){var M="c-ac-"+_,F=ht(w?"button":"div"),U=ht("label"),$=ht("input"),z=ht("span"),G=ht("span"),Y=ht("span"),q=ht("span");F.className=w?"b-tl exp":"b-tl",U.className="b-tg",$.className="c-tgl",Y.className="on-i",q.className="off-i",z.className="c-tg",G.className="t-lb",w&&(F.setAttribute("aria-expanded","false"),F.setAttribute("aria-controls",M)),$.type="checkbox",z.setAttribute("aria-hidden","true");var J=v.value;$.value=J,G.textContent=f,F.insertAdjacentHTML("beforeend",f),O.appendChild(F),z.appendChild(Y),z.appendChild(q),H?v.enabled?($.checked=!0,!P&&tt.push(!0),v.enabled&&!P&&K.push(J)):!P&&tt.push(!1):dt(B.categories,J)>-1?($.checked=!0,!P&&tt.push(!0)):!P&&tt.push(!1),!P&&et.push(J),v.readonly&&($.disabled=!0,Ot(z,"c-ro"),!P&&nt.push(J)),Ot(k,"b-acc"),Ot(O,"b-bn"),Ot(C,"b-ex"),k.id=M,k.setAttribute("aria-hidden","true"),U.appendChild($),U.appendChild(z),U.appendChild(G),O.appendChild(U),w&&function(t,e,n){kt(F,"click",(function(){St(e,"act")?(Et(e,"act"),n.setAttribute("aria-expanded","false"),t.setAttribute("aria-hidden","true")):(Ot(e,"act"),n.setAttribute("aria-expanded","true"),t.setAttribute("aria-hidden","false"))}),!1)}(k,C,F)}else if(f){var V=ht("div");V.className="b-tl",V.setAttribute("role","heading"),V.setAttribute("aria-level","3"),V.insertAdjacentHTML("beforeend",f),O.appendChild(V)}if(f&&C.appendChild(O),g&&k.appendChild(x),!b&&void 0!==y){for(var X=document.createDocumentFragment(),Q=0;Q<l.length;++Q){var Z=ht("th"),ot=l[Q];if(Z.setAttribute("scope","col"),ot){var it=ot&&xt(ot)[0];Z.textContent=l[Q][it],X.appendChild(Z)}}var rt=ht("tr");rt.appendChild(X);var st=ht("thead");st.appendChild(rt);var at=ht("table");if(p){var ct=ht("caption");ct.innerHTML=p,at.appendChild(ct)}at.appendChild(st);for(var lt=document.createDocumentFragment(),ut=0;ut<y.length;ut++){for(var pt=ht("tr"),_t=0;_t<l.length;++_t)if(ot=l[_t]){it=xt(ot)[0];var ft=ht("td");ft.insertAdjacentHTML("beforeend",y[ut][it]),ft.setAttribute("data-column",ot[it]),pt.appendChild(ft)}lt.appendChild(pt)}var gt=ht("tbody");gt.appendChild(lt),at.appendChild(gt),k.appendChild(at)}(v&&f||!v&&(f||g))&&(C.appendChild(k),P?P.appendChild(C):N.appendChild(C))}j||((j=ht("div")).id="s-bns"),L||((L=ht("button")).id="s-all-bn",L.className="c-bn",j.appendChild(L),kt(L,"click",(function(){D.accept("all"),D.hideSettings(),D.hide()}))),L.innerHTML=d.accept_all_btn;var vt=d.reject_all_btn;if(vt&&(R||((R=ht("button")).id="s-rall-bn",R.className="c-bn",kt(R,"click",(function(){D.accept([]),D.hideSettings(),D.hide()})),S.className="bns-t",j.appendChild(R)),R.innerHTML=vt),I||((I=ht("button")).id="s-sv-bn",I.className="c-bn",j.appendChild(I),kt(I,"click",(function(){D.accept(),D.hideSettings(),D.hide()}))),I.innerHTML=d.save_settings_btn,P)return S.replaceChild(P,N),void(N=P);r.appendChild(A),r.appendChild(s),S.appendChild(r),S.appendChild(N),S.appendChild(j),i.appendChild(S),o.appendChild(i),n.appendChild(o),E.appendChild(n),m.appendChild(E),m.appendChild(a)};D.updateLanguage=function(t,n){if("string"==typeof t){var o=st(t,e.languages);return(o!==M.current_lang||!0===n)&&(M.current_lang=o,U&&ct(o),lt(o),pt("CookieConsent [LANGUAGE]: curr_lang: '"+o+"'"),!0)}};var ut=function(t){var e=u.length,n=-1;q=!1;var o=wt("","all"),i=[M.cookie_domain,"."+M.cookie_domain];if("www."===M.cookie_domain.slice(0,4)){var r=M.cookie_domain.substr(4);i.push(r),i.push("."+r)}for(var s=0;s<e;s++){var a=u[s];if(a.hasOwnProperty("toggle")){var c=dt(Y,a.toggle.value)>-1;if(!tt[++n]&&a.hasOwnProperty("cookie_table")&&(t||c)){var d=a.cookie_table,p=xt(l[0])[0],h=d.length;"on_disable"===a.toggle.reload&&c&&(q=!0);for(var _=0;_<h;_++){var f=i,g=d[_],v=[],m=g[p],y=g.is_regex||!1,b=g.domain||null,w=g.path||!1;if(b&&(f=[b,"."+b]),y)for(var C=0;C<o.length;C++)o[C].match(m)&&v.push(o[C]);else{var k=dt(o,m);k>-1&&v.push(o[k])}pt("CookieConsent [AUTOCLEAR]: search cookie: '"+m+"', found:",v),v.length>0&&(Ct(v,w,f),"on_clear"===a.toggle.reload&&(q=!0))}}}}},dt=function(t,e){return t.indexOf(e)},pt=function(t,e,n){n?console.error(t,e||""):console.log(t,void 0!==e?e:" ")},ht=function(t){var e=document.createElement(t);return"button"===t&&e.setAttribute("type",t),e},_t=function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){try{return(t^(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}catch(t){return""}}))},ft=function(t,e){return"browser"===M.auto_language?st(gt(),t):"document"===M.auto_language?st(document.documentElement.lang,t):"string"==typeof e?M.current_lang=st(e,t):(pt("CookieConsent [LANG]: setting current_lang = '"+M.current_lang+"'"),M.current_lang)},gt=function(){var t=navigator.language||navigator.browserLanguage;return t.length>2&&(t=t[0]+t[1]),pt("CookieConsent [LANG]: detected_browser_lang = '"+t+"'"),t.toLowerCase()};D.allowedCategory=function(t){if(H&&"opt-in"!==M.mode)e=K;else var e=JSON.parse(wt(M.cookie_name,"one",!0)||"{}").categories||[];return dt(e,t)>-1},D.run=function(e){if(document.getElementById("cc_div"))pt("CookieConsent [NOTICE]: cookie consent already attached to body!");else{if(it(e),X)return;B=JSON.parse(wt(M.cookie_name,"one",!0)||"{}");var a=void 0!==(i=B.consent_uuid);if((n=B.consent_date)&&(n=new Date(n)),(o=B.last_consent_update)&&(o=new Date(o)),F=void 0!==B.data?B.data:null,z&&B.revision!==M.revision&&(G=!1),U=H=!(a&&G&&n&&o&&i),function(){(v=ht("div")).id="cc--main",v.style.position="fixed",v.innerHTML='<div id="cc_div" class="cc_div"></div>',m=v.children[0];var e=M.current_lang;U&&ct(e),lt(e),(t||document.body).appendChild(v)}(),at(),function(t,e){if("object"==typeof t){var n=t.consent_modal,o=t.settings_modal;U&&n&&i(y,["box","bar","cloud"],["top","middle","bottom"],["zoom","slide"],n.layout,n.position,n.transition),!e&&o&&i(E,["bar"],["left","right"],["zoom","slide"],o.layout,o.position,o.transition)}function i(t,e,n,o,i,r,s){if(r=r&&r.split(" ")||[],dt(e,i)>-1&&(Ot(t,i),("bar"!==i||"middle"!==r[0])&&dt(n,r[0])>-1))for(var a=0;a<r.length;a++)Ot(t,r[a]);dt(o,s)>-1&&Ot(t,s)}}(e.gui_options),rt(),M.autorun&&U&&D.show(e.delay||0),setTimeout((function(){Ot(v,"c--anim")}),30),setTimeout((function(){kt(document,"keydown",(function(t){if("Tab"===t.key&&($||W)&&r){var e=Pt();t.shiftKey?e!==r[0]&&s.contains(e)||(t.preventDefault(),Tt(r[1])):e!==r[1]&&s.contains(e)||(t.preventDefault(),Tt(r[0]))}}))}),100),H)"opt-out"===M.mode&&(pt("CookieConsent [CONFIG] mode='"+M.mode+"', default enabled categories:",K),vt()),pt("CookieConsent [NOTICE]: ask for consent!");else{var c="boolean"==typeof B.rfc_cookie;(!c||c&&B.rfc_cookie!==M.use_rfc_cookie)&&(B.rfc_cookie=M.use_rfc_cookie,bt(M.cookie_name,JSON.stringify(B))),_=yt(mt()),vt(),"function"==typeof d&&d(B),pt("CookieConsent [NOTICE]: consent already given!",B)}}};var vt=function(){if(M.page_scripts){var t=B.categories||[];H&&"opt-out"===M.mode&&(t=K);var e=document.querySelectorAll("script["+M.script_selector+"]"),n=function(e,o){if(o<e.length){var i=e[o],r=i.getAttribute(M.script_selector);if(dt(t,r)>-1){i.type=i.getAttribute("data-type")||"text/javascript",i.removeAttribute(M.script_selector);var s=i.getAttribute("data-src");s&&i.removeAttribute("data-src");var a=ht("script");if(a.textContent=i.innerHTML,function(t,e){for(var n=e.attributes,o=n.length,i=0;i<o;i++){var r=n[i].nodeName;t.setAttribute(r,e[r]||e.getAttribute(r))}}(a,i),s?a.src=s:s=i.src,s&&(a.readyState?a.onreadystatechange=function(){"loaded"!==a.readyState&&"complete"!==a.readyState||(a.onreadystatechange=null,n(e,++o))}:a.onload=function(){a.onload=null,n(e,++o)}),i.parentNode.replaceChild(a,i),s)return}n(e,++o)}};n(e,0)}};D.set=function(t,e){return"data"===t&&function(t,e){var n=!1;if("update"===e){var o=typeof(F=D.get("data"))==typeof t;if(o&&"object"==typeof F)for(var i in!F&&(F={}),t)F[i]!==t[i]&&(F[i]=t[i],n=!0);else!o&&F||F===t||(F=t,n=!0)}else F=t,n=!0;return n&&(B.data=F,bt(M.cookie_name,JSON.stringify(B))),n}(e.value,e.mode)},D.get=function(t,e){return JSON.parse(wt(e||M.cookie_name,"one",!0)||"{}")[t]},D.getConfig=function(t){return M[t]||e[t]};var mt=function(){return J=B.categories||[],V=et.filter((function(t){return-1===dt(J,t)})),{accepted:J,rejected:V}},yt=function(t){var e="custom",n=nt.length;return t.accepted.length===et.length?e="all":t.accepted.length===n&&(e="necessary"),e};D.getUserPreferences=function(){var t=mt();return{accept_type:yt(t),accepted_categories:t.accepted,rejected_categories:t.rejected}},D.loadScript=function(t,e,n){var o="function"==typeof e;if(document.querySelector('script[src="'+t+'"]'))o&&e();else{var i=ht("script");if(n&&n.length>0)for(var r=0;r<n.length;++r)n[r]&&i.setAttribute(n[r].name,n[r].value);o&&(i.onload=e),i.src=t,document.head.appendChild(i)}},D.updateScripts=function(){vt()},D.show=function(t,e){!0===e&&ct(M.current_lang),U&&(f=Pt(),r=Q,s=y,$=!0,y.removeAttribute("aria-hidden"),setTimeout((function(){at(),r=Q,s.addEventListener("transitionend",(()=>Tt(r[0])),{once:!0}),Ot(ot,"show--consent"),pt("CookieConsent [MODAL]: show consent_modal")}),t>0?t:e?30:0))},D.hide=function(){U&&($=!1,Tt(a),y.setAttribute("aria-hidden","true"),Et(ot,"show--consent"),Tt(f),f=null,pt("CookieConsent [MODAL]: hide"))},D.showSettings=function(t){W=!0,E.removeAttribute("aria-hidden"),$?g=Pt():f=Pt(),s=E,r=Z,setTimeout((function(){at(),r=Z,s.addEventListener("transitionend",(()=>Tt(r[0])),{once:!0}),Ot(ot,"show--settings"),pt("CookieConsent [SETTINGS]: show settings_modal")}),t>0?t:0)},D.hideSettings=function(){W=!1,Nt(),Tt(c),E.setAttribute("aria-hidden","true"),Et(ot,"show--settings"),$?(Tt(g),g=null,s=y,r=Q):(Tt(f),f=null),pt("CookieConsent [SETTINGS]: hide settings_modal")},D.accept=function(t,e){var r=t||void 0,s=e||[],a=[];if(r)if("object"==typeof r&&"number"==typeof r.length)for(var c=0;c<r.length;c++)-1!==dt(et,r[c])&&a.push(r[c]);else"string"==typeof r&&("all"===r?a=et.slice():-1!==dt(et,r)&&a.push(r));else a=function(){for(var t=document.querySelectorAll(".c-tgl")||[],e=[],n=0;n<t.length;n++)t[n].checked&&e.push(t[n].value);return e}();if(s.length>=1)for(c=0;c<s.length;c++)a=a.filter((function(t){return t!==s[c]}));for(c=0;c<et.length;c++)!0===nt.includes(et[c])&&-1===dt(a,et[c])&&a.push(et[c]);!function(t){Y=[];var e=E.querySelectorAll(".c-tgl")||[];if(e.length>0)for(var r=0;r<e.length;r++)-1!==dt(t,et[r])?(e[r].checked=!0,tt[r]||(Y.push(et[r]),tt[r]=!0)):(e[r].checked=!1,tt[r]&&(Y.push(et[r]),tt[r]=!1));!H&&M.autoclear_cookies&&Y.length>0&&ut(),n||(n=new Date),i||(i=_t()),B={categories:t,level:t,revision:M.revision,data:F,rfc_cookie:M.use_rfc_cookie,consent_date:n.toISOString(),consent_uuid:i},(H||Y.length>0)&&(G=!0,o=o?new Date:n,B.last_consent_update=o.toISOString(),_=yt(mt()),bt(M.cookie_name,JSON.stringify(B)),vt()),H&&(M.autoclear_cookies&&ut(!0),"function"==typeof h&&h(D.getUserPreferences(),B),"function"==typeof d&&d(B),H=!1,"opt-in"===M.mode)||("function"==typeof p&&Y.length>0&&p(B,Y),q&&location.reload())}(a)},D.eraseCookies=function(t,e,n){var o=[],i=n?[n,"."+n]:[M.cookie_domain,"."+M.cookie_domain];if("object"==typeof t&&t.length>0)for(var r=0;r<t.length;r++)this.validCookie(t[r])&&o.push(t[r]);else this.validCookie(t)&&o.push(t);Ct(o,e,i)};var bt=function(t,e){var n=M.cookie_expiration;"number"==typeof M.cookie_necessary_only_expiration&&"necessary"===_&&(n=M.cookie_necessary_only_expiration),e=M.use_rfc_cookie?encodeURIComponent(e):e;var o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3);var i=t+"="+(e||"")+"; expires="+o.toUTCString()+"; Path="+M.cookie_path+";";i+=" SameSite="+M.cookie_same_site+";",location.hostname.indexOf(".")>-1&&M.cookie_domain&&(i+=" Domain="+M.cookie_domain+";"),"https:"===location.protocol&&(i+=" Secure;"),document.cookie=i,pt("CookieConsent [SET_COOKIE]: '"+t+"' expires after "+n+" day(s)")},wt=function(t,e,n){var o;if("one"===e){if((o=(o=document.cookie.match("(^|;)\\s*"+t+"\\s*=\\s*([^;]+)"))?n?o.pop():t:"")&&t===M.cookie_name){try{o=JSON.parse(o)}catch(t){try{o=JSON.parse(decodeURIComponent(o))}catch(t){o={}}}o=JSON.stringify(o)}}else if("all"===e){var i=document.cookie.split(/;\s*/);o=[];for(var r=0;r<i.length;r++)o.push(i[r].split("=")[0])}return o},Ct=function(t,e,n){for(var o=e||"/",i=0;i<t.length;i++){for(var r=0;r<n.length;r++)document.cookie=t[i]+"=; path="+o+(0==n[r].indexOf(".")?"; domain="+n[r]:"")+"; Expires=Thu, 01 Jan 1970 00:00:01 GMT;";pt("CookieConsent [AUTOCLEAR]: deleting cookie: '"+t[i]+"' path: '"+o+"' domain:",n)}};D.validCookie=function(t){return""!==wt(t,"one",!0)},D.validConsent=function(){return!H};var kt=function(t,e,n,o){t.addEventListener(e,n,!0===o&&{passive:!0})},xt=function(t){if("object"==typeof t)return Object.keys(t)},Ot=function(t,e){t.classList.add(e)},Et=function(t,e){t.classList.remove(e)},St=function(t,e){return t.classList.contains(e)},At=function(t){var e=ht("span");return e.tabIndex=-1,1===t?a=e:c=e,e},Tt=function(t){t&&t instanceof HTMLElement&&t.focus()},Nt=function(){for(var t=S.querySelectorAll(".c-tgl"),e=0;e<t.length;e++){var n=t[e].value,o=nt.includes(n);t[e].checked=o||D.allowedCategory(n)}},Pt=function(){return document.activeElement};return D.__updateModalFocusableData=at,D.__getFocusableEdges=()=>r,D.__generateFocusSpan=At,D.__isConsentModalExists=()=>U,D.__getFocusedModal=()=>s,D})}()},477:()=>{},9306:(t,e,n)=>{"use strict";var o=n(4901),i=n(6823),r=TypeError;t.exports=function(t){if(o(t))return t;throw new r(i(t)+" is not a function")}},3463:t=>{"use strict";var e=TypeError;t.exports=function(t){if("string"==typeof t)return t;throw new e("Argument is not a string")}},679:(t,e,n)=>{"use strict";var o=n(1625),i=TypeError;t.exports=function(t,e){if(o(e,t))return t;throw new i("Incorrect invocation")}},8551:(t,e,n)=>{"use strict";var o=n(34),i=String,r=TypeError;t.exports=function(t){if(o(t))return t;throw new r(i(t)+" is not an object")}},9617:(t,e,n)=>{"use strict";var o=n(5397),i=n(5610),r=n(6198),s=function(t){return function(e,n,s){var a=o(e),c=r(a);if(0===c)return!t&&-1;var l,u=i(s,c);if(t&&n!=n){for(;c>u;)if((l=a[u++])!=l)return!0}else for(;c>u;u++)if((t||u in a)&&a[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},4527:(t,e,n)=>{"use strict";var o=n(3724),i=n(4376),r=TypeError,s=Object.getOwnPropertyDescriptor,a=o&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(i(t)&&!s(t,"length").writable)throw new r("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},6319:(t,e,n)=>{"use strict";var o=n(8551),i=n(9539);t.exports=function(t,e,n,r){try{return r?e(o(n)[0],n[1]):e(n)}catch(e){i(t,"throw",e)}}},2195:(t,e,n)=>{"use strict";var o=n(9504),i=o({}.toString),r=o("".slice);t.exports=function(t){return r(i(t),8,-1)}},6955:(t,e,n)=>{"use strict";var o=n(2140),i=n(4901),r=n(2195),s=n(8227)("toStringTag"),a=Object,c="Arguments"===r(function(){return arguments}());t.exports=o?r:function(t){var e,n,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=a(t),s))?n:c?r(e):"Object"===(o=r(e))&&i(e.callee)?"Arguments":o}},7740:(t,e,n)=>{"use strict";var o=n(9297),i=n(5031),r=n(7347),s=n(4913);t.exports=function(t,e,n){for(var a=i(e),c=s.f,l=r.f,u=0;u<a.length;u++){var d=a[u];o(t,d)||n&&o(n,d)||c(t,d,l(e,d))}}},2211:(t,e,n)=>{"use strict";var o=n(9039);t.exports=!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},2529:t=>{"use strict";t.exports=function(t,e){return{value:t,done:e}}},6699:(t,e,n)=>{"use strict";var o=n(3724),i=n(4913),r=n(6980);t.exports=o?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},6980:t=>{"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4659:(t,e,n)=>{"use strict";var o=n(3724),i=n(4913),r=n(6980);t.exports=function(t,e,n){o?i.f(t,e,r(0,n)):t[e]=n}},2106:(t,e,n)=>{"use strict";var o=n(283),i=n(4913);t.exports=function(t,e,n){return n.get&&o(n.get,e,{getter:!0}),n.set&&o(n.set,e,{setter:!0}),i.f(t,e,n)}},6840:(t,e,n)=>{"use strict";var o=n(4901),i=n(4913),r=n(283),s=n(9433);t.exports=function(t,e,n,a){a||(a={});var c=a.enumerable,l=void 0!==a.name?a.name:e;if(o(n)&&r(n,l,a),a.global)c?t[e]=n:s(e,n);else{try{a.unsafe?t[e]&&(c=!0):delete t[e]}catch(t){}c?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},6279:(t,e,n)=>{"use strict";var o=n(6840);t.exports=function(t,e,n){for(var i in e)o(t,i,e[i],n);return t}},9433:(t,e,n)=>{"use strict";var o=n(4576),i=Object.defineProperty;t.exports=function(t,e){try{i(o,t,{value:e,configurable:!0,writable:!0})}catch(n){o[t]=e}return e}},3724:(t,e,n)=>{"use strict";var o=n(9039);t.exports=!o((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4055:(t,e,n)=>{"use strict";var o=n(4576),i=n(34),r=o.document,s=i(r)&&i(r.createElement);t.exports=function(t){return s?r.createElement(t):{}}},6837:t=>{"use strict";var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},8727:t=>{"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2839:(t,e,n)=>{"use strict";var o=n(4576).navigator,i=o&&o.userAgent;t.exports=i?String(i):""},9519:(t,e,n)=>{"use strict";var o,i,r=n(4576),s=n(2839),a=r.process,c=r.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(i=(o=u.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!i&&s&&(!(o=s.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=s.match(/Chrome\/(\d+)/))&&(i=+o[1]),t.exports=i},6518:(t,e,n)=>{"use strict";var o=n(4576),i=n(7347).f,r=n(6699),s=n(6840),a=n(9433),c=n(7740),l=n(2796);t.exports=function(t,e){var n,u,d,p,h,_=t.target,f=t.global,g=t.stat;if(n=f?o:g?o[_]||a(_,{}):o[_]&&o[_].prototype)for(u in e){if(p=e[u],d=t.dontCallGetSet?(h=i(n,u))&&h.value:n[u],!l(f?u:_+(g?".":"#")+u,t.forced)&&void 0!==d){if(typeof p==typeof d)continue;c(p,d)}(t.sham||d&&d.sham)&&r(p,"sham",!0),s(n,u,p,t)}}},9039:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},6080:(t,e,n)=>{"use strict";var o=n(7476),i=n(9306),r=n(616),s=o(o.bind);t.exports=function(t,e){return i(t),void 0===e?t:r?s(t,e):function(){return t.apply(e,arguments)}}},616:(t,e,n)=>{"use strict";var o=n(9039);t.exports=!o((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},9565:(t,e,n)=>{"use strict";var o=n(616),i=Function.prototype.call;t.exports=o?i.bind(i):function(){return i.apply(i,arguments)}},350:(t,e,n)=>{"use strict";var o=n(3724),i=n(9297),r=Function.prototype,s=o&&Object.getOwnPropertyDescriptor,a=i(r,"name"),c=a&&"something"===function(){}.name,l=a&&(!o||o&&s(r,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},7476:(t,e,n)=>{"use strict";var o=n(2195),i=n(9504);t.exports=function(t){if("Function"===o(t))return i(t)}},9504:(t,e,n)=>{"use strict";var o=n(616),i=Function.prototype,r=i.call,s=o&&i.bind.bind(r,r);t.exports=o?s:function(t){return function(){return r.apply(t,arguments)}}},7751:(t,e,n)=>{"use strict";var o=n(4576),i=n(4901);t.exports=function(t,e){return arguments.length<2?(n=o[t],i(n)?n:void 0):o[t]&&o[t][e];var n}},1767:t=>{"use strict";t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},851:(t,e,n)=>{"use strict";var o=n(6955),i=n(5966),r=n(4117),s=n(6269),a=n(8227)("iterator");t.exports=function(t){if(!r(t))return i(t,a)||i(t,"@@iterator")||s[o(t)]}},81:(t,e,n)=>{"use strict";var o=n(9565),i=n(9306),r=n(8551),s=n(6823),a=n(851),c=TypeError;t.exports=function(t,e){var n=arguments.length<2?a(t):e;if(i(n))return r(o(n,t));throw new c(s(t)+" is not iterable")}},5966:(t,e,n)=>{"use strict";var o=n(9306),i=n(4117);t.exports=function(t,e){var n=t[e];return i(n)?void 0:o(n)}},4576:function(t,e,n){"use strict";var o=function(t){return t&&t.Math===Math&&t};t.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n.g&&n.g)||o("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:(t,e,n)=>{"use strict";var o=n(9504),i=n(8981),r=o({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return r(i(t),e)}},421:t=>{"use strict";t.exports={}},397:(t,e,n)=>{"use strict";var o=n(7751);t.exports=o("document","documentElement")},5917:(t,e,n)=>{"use strict";var o=n(3724),i=n(9039),r=n(4055);t.exports=!o&&!i((function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},7055:(t,e,n)=>{"use strict";var o=n(9504),i=n(9039),r=n(2195),s=Object,a=o("".split);t.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"===r(t)?a(t,""):s(t)}:s},3706:(t,e,n)=>{"use strict";var o=n(9504),i=n(4901),r=n(7629),s=o(Function.toString);i(r.inspectSource)||(r.inspectSource=function(t){return s(t)}),t.exports=r.inspectSource},1181:(t,e,n)=>{"use strict";var o,i,r,s=n(8622),a=n(4576),c=n(34),l=n(6699),u=n(9297),d=n(7629),p=n(6119),h=n(421),_="Object already initialized",f=a.TypeError,g=a.WeakMap;if(s||d.state){var v=d.state||(d.state=new g);v.get=v.get,v.has=v.has,v.set=v.set,o=function(t,e){if(v.has(t))throw new f(_);return e.facade=t,v.set(t,e),e},i=function(t){return v.get(t)||{}},r=function(t){return v.has(t)}}else{var m=p("state");h[m]=!0,o=function(t,e){if(u(t,m))throw new f(_);return e.facade=t,l(t,m,e),e},i=function(t){return u(t,m)?t[m]:{}},r=function(t){return u(t,m)}}t.exports={set:o,get:i,has:r,enforce:function(t){return r(t)?i(t):o(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=i(e)).type!==t)throw new f("Incompatible receiver, "+t+" required");return n}}}},4209:(t,e,n)=>{"use strict";var o=n(8227),i=n(6269),r=o("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||s[r]===t)}},4376:(t,e,n)=>{"use strict";var o=n(2195);t.exports=Array.isArray||function(t){return"Array"===o(t)}},4901:t=>{"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},2796:(t,e,n)=>{"use strict";var o=n(9039),i=n(4901),r=/#|\.prototype\./,s=function(t,e){var n=c[a(t)];return n===u||n!==l&&(i(e)?o(e):!!e)},a=s.normalize=function(t){return String(t).replace(r,".").toLowerCase()},c=s.data={},l=s.NATIVE="N",u=s.POLYFILL="P";t.exports=s},4117:t=>{"use strict";t.exports=function(t){return null==t}},34:(t,e,n)=>{"use strict";var o=n(4901);t.exports=function(t){return"object"==typeof t?null!==t:o(t)}},6395:t=>{"use strict";t.exports=!1},757:(t,e,n)=>{"use strict";var o=n(7751),i=n(4901),r=n(1625),s=n(7040),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return i(e)&&r(e.prototype,a(t))}},2652:(t,e,n)=>{"use strict";var o=n(6080),i=n(9565),r=n(8551),s=n(6823),a=n(4209),c=n(6198),l=n(1625),u=n(81),d=n(851),p=n(9539),h=TypeError,_=function(t,e){this.stopped=t,this.result=e},f=_.prototype;t.exports=function(t,e,n){var g,v,m,y,b,w,C,k=n&&n.that,x=!(!n||!n.AS_ENTRIES),O=!(!n||!n.IS_RECORD),E=!(!n||!n.IS_ITERATOR),S=!(!n||!n.INTERRUPTED),A=o(e,k),T=function(t){return g&&p(g,"normal",t),new _(!0,t)},N=function(t){return x?(r(t),S?A(t[0],t[1],T):A(t[0],t[1])):S?A(t,T):A(t)};if(O)g=t.iterator;else if(E)g=t;else{if(!(v=d(t)))throw new h(s(t)+" is not iterable");if(a(v)){for(m=0,y=c(t);y>m;m++)if((b=N(t[m]))&&l(f,b))return b;return new _(!1)}g=u(t,v)}for(w=O?t.next:g.next;!(C=i(w,g)).done;){try{b=N(C.value)}catch(t){p(g,"throw",t)}if("object"==typeof b&&b&&l(f,b))return b}return new _(!1)}},9539:(t,e,n)=>{"use strict";var o=n(9565),i=n(8551),r=n(5966);t.exports=function(t,e,n){var s,a;i(t);try{if(!(s=r(t,"return"))){if("throw"===e)throw n;return n}s=o(s,t)}catch(t){a=!0,s=t}if("throw"===e)throw n;if(a)throw s;return i(s),n}},9462:(t,e,n)=>{"use strict";var o=n(9565),i=n(2360),r=n(6699),s=n(6279),a=n(8227),c=n(1181),l=n(5966),u=n(7657).IteratorPrototype,d=n(2529),p=n(9539),h=a("toStringTag"),_="IteratorHelper",f="WrapForValidIterator",g=c.set,v=function(t){var e=c.getterFor(t?f:_);return s(i(u),{next:function(){var n=e(this);if(t)return n.nextHandler();try{var o=n.done?void 0:n.nextHandler();return d(o,n.done)}catch(t){throw n.done=!0,t}},return:function(){var n=e(this),i=n.iterator;if(n.done=!0,t){var r=l(i,"return");return r?o(r,i):d(void 0,!0)}if(n.inner)try{p(n.inner.iterator,"normal")}catch(t){return p(i,"throw",t)}return i&&p(i,"normal"),d(void 0,!0)}})},m=v(!0),y=v(!1);r(y,h,"Iterator Helper"),t.exports=function(t,e){var n=function(n,o){o?(o.iterator=n.iterator,o.next=n.next):o=n,o.type=e?f:_,o.nextHandler=t,o.counter=0,o.done=!1,g(this,o)};return n.prototype=e?m:y,n}},713:(t,e,n)=>{"use strict";var o=n(9565),i=n(9306),r=n(8551),s=n(1767),a=n(9462),c=n(6319),l=a((function(){var t=this.iterator,e=r(o(this.next,t));if(!(this.done=!!e.done))return c(t,this.mapper,[e.value,this.counter++],!0)}));t.exports=function(t){return r(this),i(t),new l(s(this),{mapper:t})}},7657:(t,e,n)=>{"use strict";var o,i,r,s=n(9039),a=n(4901),c=n(34),l=n(2360),u=n(2787),d=n(6840),p=n(8227),h=n(6395),_=p("iterator"),f=!1;[].keys&&("next"in(r=[].keys())?(i=u(u(r)))!==Object.prototype&&(o=i):f=!0),!c(o)||s((function(){var t={};return o[_].call(t)!==t}))?o={}:h&&(o=l(o)),a(o[_])||d(o,_,(function(){return this})),t.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:f}},6269:t=>{"use strict";t.exports={}},6198:(t,e,n)=>{"use strict";var o=n(8014);t.exports=function(t){return o(t.length)}},283:(t,e,n)=>{"use strict";var o=n(9504),i=n(9039),r=n(4901),s=n(9297),a=n(3724),c=n(350).CONFIGURABLE,l=n(3706),u=n(1181),d=u.enforce,p=u.get,h=String,_=Object.defineProperty,f=o("".slice),g=o("".replace),v=o([].join),m=a&&!i((function(){return 8!==_((function(){}),"length",{value:8}).length})),y=String(String).split("String"),b=t.exports=function(t,e,n){"Symbol("===f(h(e),0,7)&&(e="["+g(h(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!s(t,"name")||c&&t.name!==e)&&(a?_(t,"name",{value:e,configurable:!0}):t.name=e),m&&n&&s(n,"arity")&&t.length!==n.arity&&_(t,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?a&&_(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var o=d(t);return s(o,"source")||(o.source=v(y,"string"==typeof e?e:"")),t};Function.prototype.toString=b((function(){return r(this)&&p(this).source||l(this)}),"toString")},741:t=>{"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var o=+t;return(o>0?n:e)(o)}},2360:(t,e,n)=>{"use strict";var o,i=n(8551),r=n(6801),s=n(8727),a=n(421),c=n(397),l=n(4055),u=n(6119),d="prototype",p="script",h=u("IE_PROTO"),_=function(){},f=function(t){return"<"+p+">"+t+"</"+p+">"},g=function(t){t.write(f("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){try{o=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;v="undefined"!=typeof document?document.domain&&o?g(o):(e=l("iframe"),n="java"+p+":",e.style.display="none",c.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F):g(o);for(var i=s.length;i--;)delete v[d][s[i]];return v()};a[h]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(_[d]=i(t),n=new _,_[d]=null,n[h]=t):n=v(),void 0===e?n:r.f(n,e)}},6801:(t,e,n)=>{"use strict";var o=n(3724),i=n(8686),r=n(4913),s=n(8551),a=n(5397),c=n(1072);e.f=o&&!i?Object.defineProperties:function(t,e){s(t);for(var n,o=a(e),i=c(e),l=i.length,u=0;l>u;)r.f(t,n=i[u++],o[n]);return t}},4913:(t,e,n)=>{"use strict";var o=n(3724),i=n(5917),r=n(8686),s=n(8551),a=n(6969),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",h="writable";e.f=o?r?function(t,e,n){if(s(t),e=a(e),s(n),"function"==typeof t&&"prototype"===e&&"value"in n&&h in n&&!n[h]){var o=u(t,e);o&&o[h]&&(t[e]=n.value,n={configurable:p in n?n[p]:o[p],enumerable:d in n?n[d]:o[d],writable:!1})}return l(t,e,n)}:l:function(t,e,n){if(s(t),e=a(e),s(n),i)try{return l(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},7347:(t,e,n)=>{"use strict";var o=n(3724),i=n(9565),r=n(8773),s=n(6980),a=n(5397),c=n(6969),l=n(9297),u=n(5917),d=Object.getOwnPropertyDescriptor;e.f=o?d:function(t,e){if(t=a(t),e=c(e),u)try{return d(t,e)}catch(t){}if(l(t,e))return s(!i(r.f,t,e),t[e])}},8480:(t,e,n)=>{"use strict";var o=n(1828),i=n(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return o(t,i)}},3717:(t,e)=>{"use strict";e.f=Object.getOwnPropertySymbols},2787:(t,e,n)=>{"use strict";var o=n(9297),i=n(4901),r=n(8981),s=n(6119),a=n(2211),c=s("IE_PROTO"),l=Object,u=l.prototype;t.exports=a?l.getPrototypeOf:function(t){var e=r(t);if(o(e,c))return e[c];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof l?u:null}},1625:(t,e,n)=>{"use strict";var o=n(9504);t.exports=o({}.isPrototypeOf)},1828:(t,e,n)=>{"use strict";var o=n(9504),i=n(9297),r=n(5397),s=n(9617).indexOf,a=n(421),c=o([].push);t.exports=function(t,e){var n,o=r(t),l=0,u=[];for(n in o)!i(a,n)&&i(o,n)&&c(u,n);for(;e.length>l;)i(o,n=e[l++])&&(~s(u,n)||c(u,n));return u}},1072:(t,e,n)=>{"use strict";var o=n(1828),i=n(8727);t.exports=Object.keys||function(t){return o(t,i)}},8773:(t,e)=>{"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:n},4270:(t,e,n)=>{"use strict";var o=n(9565),i=n(4901),r=n(34),s=TypeError;t.exports=function(t,e){var n,a;if("string"===e&&i(n=t.toString)&&!r(a=o(n,t)))return a;if(i(n=t.valueOf)&&!r(a=o(n,t)))return a;if("string"!==e&&i(n=t.toString)&&!r(a=o(n,t)))return a;throw new s("Can't convert object to primitive value")}},5031:(t,e,n)=>{"use strict";var o=n(7751),i=n(9504),r=n(8480),s=n(3717),a=n(8551),c=i([].concat);t.exports=o("Reflect","ownKeys")||function(t){var e=r.f(a(t)),n=s.f;return n?c(e,n(t)):e}},7750:(t,e,n)=>{"use strict";var o=n(4117),i=TypeError;t.exports=function(t){if(o(t))throw new i("Can't call method on "+t);return t}},6119:(t,e,n)=>{"use strict";var o=n(5745),i=n(3392),r=o("keys");t.exports=function(t){return r[t]||(r[t]=i(t))}},7629:(t,e,n)=>{"use strict";var o=n(6395),i=n(4576),r=n(9433),s="__core-js_shared__",a=t.exports=i[s]||r(s,{});(a.versions||(a.versions=[])).push({version:"3.39.0",mode:o?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:(t,e,n)=>{"use strict";var o=n(7629);t.exports=function(t,e){return o[t]||(o[t]=e||{})}},533:(t,e,n)=>{"use strict";var o=n(9504),i=n(8014),r=n(655),s=n(2333),a=n(7750),c=o(s),l=o("".slice),u=Math.ceil,d=function(t){return function(e,n,o){var s,d,p=r(a(e)),h=i(n),_=p.length,f=void 0===o?" ":r(o);return h<=_||""===f?p:((d=c(f,u((s=h-_)/f.length))).length>s&&(d=l(d,0,s)),t?p+d:d+p)}};t.exports={start:d(!1),end:d(!0)}},2333:(t,e,n)=>{"use strict";var o=n(1291),i=n(655),r=n(7750),s=RangeError;t.exports=function(t){var e=i(r(this)),n="",a=o(t);if(a<0||a===1/0)throw new s("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(n+=e);return n}},4495:(t,e,n)=>{"use strict";var o=n(9519),i=n(9039),r=n(4576).String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},5610:(t,e,n)=>{"use strict";var o=n(1291),i=Math.max,r=Math.min;t.exports=function(t,e){var n=o(t);return n<0?i(n+e,0):r(n,e)}},5397:(t,e,n)=>{"use strict";var o=n(7055),i=n(7750);t.exports=function(t){return o(i(t))}},1291:(t,e,n)=>{"use strict";var o=n(741);t.exports=function(t){var e=+t;return e!=e||0===e?0:o(e)}},8014:(t,e,n)=>{"use strict";var o=n(1291),i=Math.min;t.exports=function(t){var e=o(t);return e>0?i(e,9007199254740991):0}},8981:(t,e,n)=>{"use strict";var o=n(7750),i=Object;t.exports=function(t){return i(o(t))}},2777:(t,e,n)=>{"use strict";var o=n(9565),i=n(34),r=n(757),s=n(5966),a=n(4270),c=n(8227),l=TypeError,u=c("toPrimitive");t.exports=function(t,e){if(!i(t)||r(t))return t;var n,c=s(t,u);if(c){if(void 0===e&&(e="default"),n=o(c,t,e),!i(n)||r(n))return n;throw new l("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},6969:(t,e,n)=>{"use strict";var o=n(2777),i=n(757);t.exports=function(t){var e=o(t,"string");return i(e)?e:e+""}},2140:(t,e,n)=>{"use strict";var o={};o[n(8227)("toStringTag")]="z",t.exports="[object z]"===String(o)},655:(t,e,n)=>{"use strict";var o=n(6955),i=String;t.exports=function(t){if("Symbol"===o(t))throw new TypeError("Cannot convert a Symbol value to a string");return i(t)}},6823:t=>{"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},3392:(t,e,n)=>{"use strict";var o=n(9504),i=0,r=Math.random(),s=o(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++i+r,36)}},7040:(t,e,n)=>{"use strict";var o=n(4495);t.exports=o&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:(t,e,n)=>{"use strict";var o=n(3724),i=n(9039);t.exports=o&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},2812:t=>{"use strict";var e=TypeError;t.exports=function(t,n){if(t<n)throw new e("Not enough arguments");return t}},8622:(t,e,n)=>{"use strict";var o=n(4576),i=n(4901),r=o.WeakMap;t.exports=i(r)&&/native code/.test(String(r))},8227:(t,e,n)=>{"use strict";var o=n(4576),i=n(5745),r=n(9297),s=n(3392),a=n(4495),c=n(7040),l=o.Symbol,u=i("wks"),d=c?l.for||l:l&&l.withoutSetter||s;t.exports=function(t){return r(u,t)||(u[t]=a&&r(l,t)?l[t]:d("Symbol."+t)),u[t]}},7452:t=>{"use strict";t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},4114:(t,e,n)=>{"use strict";var o=n(6518),i=n(8981),r=n(6198),s=n(4527),a=n(6837);o({target:"Array",proto:!0,arity:1,forced:n(9039)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=i(this),n=r(e),o=arguments.length;a(n+o);for(var c=0;c<o;c++)e[n]=arguments[c],n++;return s(e,n),n}})},8111:(t,e,n)=>{"use strict";var o=n(6518),i=n(4576),r=n(679),s=n(8551),a=n(4901),c=n(2787),l=n(2106),u=n(4659),d=n(9039),p=n(9297),h=n(8227),_=n(7657).IteratorPrototype,f=n(3724),g=n(6395),v="constructor",m="Iterator",y=h("toStringTag"),b=TypeError,w=i[m],C=g||!a(w)||w.prototype!==_||!d((function(){w({})})),k=function(){if(r(this,_),c(this)===_)throw new b("Abstract class Iterator not directly constructable")},x=function(t,e){f?l(_,t,{configurable:!0,get:function(){return e},set:function(e){if(s(this),this===_)throw new b("You can't redefine this property");p(this,t)?this[t]=e:u(this,t,e)}}):_[t]=e};p(_,y)||x(y,m),!C&&p(_,v)&&_[v]!==Object||x(v,k),k.prototype=_,o({global:!0,constructor:!0,forced:C},{Iterator:k})},2489:(t,e,n)=>{"use strict";var o=n(6518),i=n(9565),r=n(9306),s=n(8551),a=n(1767),c=n(9462),l=n(6319),u=n(6395),d=c((function(){for(var t,e,n=this.iterator,o=this.predicate,r=this.next;;){if(t=s(i(r,n)),this.done=!!t.done)return;if(e=t.value,l(n,o,[e,this.counter++],!0))return e}}));o({target:"Iterator",proto:!0,real:!0,forced:u},{filter:function(t){return s(this),r(t),new d(a(this),{predicate:t})}})},7588:(t,e,n)=>{"use strict";var o=n(6518),i=n(2652),r=n(9306),s=n(8551),a=n(1767);o({target:"Iterator",proto:!0,real:!0},{forEach:function(t){s(this),r(t);var e=a(this),n=0;i(e,(function(e){t(e,n++)}),{IS_RECORD:!0})}})},1701:(t,e,n)=>{"use strict";var o=n(6518),i=n(713);o({target:"Iterator",proto:!0,real:!0,forced:n(6395)},{map:i})},3579:(t,e,n)=>{"use strict";var o=n(6518),i=n(2652),r=n(9306),s=n(8551),a=n(1767);o({target:"Iterator",proto:!0,real:!0},{some:function(t){s(this),r(t);var e=a(this),n=0;return i(e,(function(e,o){if(t(e,n++))return o()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},8992:(t,e,n)=>{"use strict";n(8111)},4520:(t,e,n)=>{"use strict";n(2489)},3949:(t,e,n)=>{"use strict";n(7588)},1454:(t,e,n)=>{"use strict";n(1701)},7550:(t,e,n)=>{"use strict";n(3579)},7108:(t,e,n)=>{"use strict";var o=n(6518),i=n(9504),r=n(3463),s=n(9297),a=n(533).start,c=n(7452),l=Array,u=RegExp.escape,d=i("".charAt),p=i("".charCodeAt),h=i(1.1.toString),_=i([].join),f=/^[0-9a-z]/i,g=/^[$()*+./?[\\\]^{|}]/,v=RegExp("^[!\"#%&',\\-:;<=>@`~"+c+"]"),m=i(f.exec),y={"\t":"t","\n":"n","\v":"v","\f":"f","\r":"r"},b=function(t){var e=h(p(t,0),16);return e.length<3?"\\x"+a(e,2,"0"):"\\u"+a(e,4,"0")};o({target:"RegExp",stat:!0,forced:!u||"\\x61b"!==u("ab")},{escape:function(t){r(t);for(var e=t.length,n=l(e),o=0;o<e;o++){var i=d(t,o);if(0===o&&m(f,i))n[o]=b(i);else if(s(y,i))n[o]="\\"+y[i];else if(m(g,i))n[o]="\\"+i;else if(m(v,i))n[o]=b(i);else{var a=p(i,0);55296!=(63488&a)?n[o]=i:a>=56320||o+1>=e||56320!=(64512&p(t,o+1))?n[o]=b(i):(n[o]=i,n[++o]=d(t,o))}}return _(n,"")}})},4603:(t,e,n)=>{"use strict";var o=n(6840),i=n(9504),r=n(655),s=n(2812),a=URLSearchParams,c=a.prototype,l=i(c.append),u=i(c.delete),d=i(c.forEach),p=i([].push),h=new a("a=1&a=2&b=3");h.delete("a",1),h.delete("b",void 0),h+""!="a=2"&&o(c,"delete",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return u(this,t);var o=[];d(this,(function(t,e){p(o,{key:e,value:t})})),s(e,1);for(var i,a=r(t),c=r(n),h=0,_=0,f=!1,g=o.length;h<g;)i=o[h++],f||i.key===a?(f=!0,u(this,i.key)):_++;for(;_<g;)(i=o[_++]).key===a&&i.value===c||l(this,i.key,i.value)}),{enumerable:!0,unsafe:!0})},7566:(t,e,n)=>{"use strict";var o=n(6840),i=n(9504),r=n(655),s=n(2812),a=URLSearchParams,c=a.prototype,l=i(c.getAll),u=i(c.has),d=new a("a=1");!d.has("a",2)&&d.has("a",void 0)||o(c,"has",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return u(this,t);var o=l(this,t);s(e,1);for(var i=r(n),a=0;a<o.length;)if(o[a++]===i)return!0;return!1}),{enumerable:!0,unsafe:!0})},8721:(t,e,n)=>{"use strict";var o=n(3724),i=n(9504),r=n(2106),s=URLSearchParams.prototype,a=i(s.forEach);o&&!("size"in s)&&r(s,"size",{get:function(){var t=0;return a(this,(function(){t++})),t},configurable:!0,enumerable:!0})}},e={};function n(o){var i=e[o];if(void 0!==i)return i.exports;var r=e[o]={exports:{}};return t[o]