rozmova-analytics 1.0.27 → 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +40 -38
- package/dist/index.js +40 -38
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -12189,48 +12189,50 @@ const storeGeoParam = () => {
|
|
|
12189
12189
|
*/
|
|
12190
12190
|
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:true,lazyHtmlGeneration:true,autoClearCookies:true,manageScriptTags:true,hideFromBots:true,cookie:{name:'cc_cookie',expiresAfterDays:182,domain:'',path:'/',sameSite:'Lax'}},this.o={i:{},l:'',_:{},u:{},p:{},m:[],v:false,h:null,C:null,S:null,M:'',D:true,T:false,k:false,A:false,N:false,H:[],V:false,I:true,L:[],j:false,F:'',P:false,O:[],R:[],B:[],G:[],J:false,U:false,$:false,q:[],K:[],W:[],X:{},Y:{},Z:{},ee:{},te:{},oe:[]},this.ne={ae:{},se:{}},this.ce={},this.re={ie:'cc:onFirstConsent',le:'cc:onConsent',de:'cc:onChange',fe:'cc:onModalShow',_e:'cc:onModalHide',ue:'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),k=e=>{const t=document.createElement(e);return e===r&&(t.type=e),t},E=(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),V=(e,t)=>e.classList.add(t),I=(e,t)=>V(e,'cm__'+t),L=(e,t)=>V(e,'pm__'+t),j=(e,t)=>e.classList.remove(t),F=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]=F(n);}return t},O=(e,t)=>dispatchEvent(new CustomEvent(e,{detail:t})),R=(e,t,o,n)=>{e.addEventListener(t,o),n&&m.o.m.push({pe:e,me:t,ge:o});},B=()=>{const e=m.t.cookie.expiresAfterDays;return C(e)?e(m.o.F):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.R=S(e),m.o.F=(()=>{let e='custom';const{R:t,O:o,B: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)E(e,'aria-haspopup','dialog'),R(e,d,(e=>{M(e),c();})),h&&(R(e,'mouseenter',(e=>{M(e),m.o.N||o(t,n);}),true),R(e,'focus',(()=>{m.o.N||o(t,n);})));for(let e of g)E(e,'aria-haspopup','dialog'),R(e,d,(e=>{M(e),s(true);}),true);for(let e of b)R(e,d,(e=>{u(e,'all');}),true);for(let e of y)R(e,d,(e=>{u(e);}),true);for(let e of v)R(e,d,(e=>{u(e,[]);}),true);},$=(e,t)=>{e&&(t&&(e.tabIndex=-1),e.focus(),t&&e.removeAttribute('tabindex'));},z=(e,t)=>{const o=n=>{n.target.removeEventListener('transitionend',o),'opacity'===n.propertyName&&'1'===getComputedStyle(e).opacity&&$((e=>1===e?m.ne.be:m.ne.ve)(t));};R(e,'transitionend',o);};let q;const K=e=>{clearTimeout(q),e?V(m.ne.ye,a):q=setTimeout((()=>{j(m.ne.ye,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=e=>{const t=m.ne,o=m.o;(e=>{const n=e===t.he,a=o.i.disablePageInteraction?t.ye:n?t.Ce:t.ye;R(a,'keydown',(t=>{if('Tab'!==t.key||!(n?o.k&&!o.A:o.A))return;const a=x(),s=n?o.q:o.K;0!==s.length&&(t.shiftKey?a!==s[0]&&e.contains(a)||(M(t),$(s[1])):a!==s[1]&&e.contains(a)||(M(t),$(s[0])));}),true);})(e);},Y=['[href]',r,'input','details','[tabindex]'].map((e=>e+':not([tabindex="-1"])')).join(','),Z=e=>{const{o:t,ne:o}=m,n=(e,t)=>{const o=D(e,Y);t[0]=o[0],t[1]=o[o.length-1];};1===e&&t.T&&n(o.he,t.q),2===e&&t.N&&n(o.we,t.K);},ee=(e,t,o)=>{const{de:n,le:a,ie:s,_e:c,ue:r,fe:i}=m.ce,l=m.re;if(t){const n={modalName:t};return e===l.fe?C(i)&&i(n):e===l._e?C(c)&&c(n):(n.modal=o,C(r)&&r(n)),O(e,n)}const d={cookie:m.o.p};e===l.ie?C(s)&&s(F(d)):e===l.le?C(a)&&a(F(d)):(d.changedCategories=m.o.L,d.changedServices=m.o.ee,C(n)&&n(F(d))),O(e,F(d));},te=(e,t)=>{try{return e()}catch(e){return !t&&console.warn('CookieConsent:',e),false}},oe=e=>{const{Y:t,ee:o,O:n,X:a,oe:c,p:r,L: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)?(n.Se=true,C(s)&&s()):n.Se&&!b(t[e],o)&&(n.Se=false,C(c)&&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.ke&&u||!_&&a.ke&&!u&&b(i,l)||_&&!a.ke&&p||_&&a.ke&&!p&&b(o[l]||[],_)){a.xe=true;const t=N(r,'type',true);A(r,'type',!!t),A(r,s);let o=N(r,'src',true);o&&A(r,'src',true);const c=k('script');c.textContent=r.innerHTML;for(const{nodeName:e}of r.attributes)E(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);},ne='bottom',ae='left',se='center',ce='right',re='inline',ie='wide',le='pm--',de=['middle','top',ne],fe=[ae,se,ce],_e={box:{Ee:[ie,re],Ae:de,Ne:fe,He:ne,Ve:ce},cloud:{Ee:[re],Ae:de,Ne:fe,He:ne,Ve:se},bar:{Ee:[re],Ae:de.slice(1),Ne:[],He:ne,Ve:''}},ue={box:{Ee:[],Ae:[],Ne:[],He:'',Ve:''},bar:{Ee:[ie],Ae:[],Ne:[ae,ce],He:'',Ve:ae}},pe=e=>{const t=m.o.i.guiOptions,o=t&&t.consentModal,n=t&&t.preferencesModal;0===e&&me(m.ne.he,_e,o,'cm--','box','cm'),1===e&&me(m.ne.we,ue,n,le,'box','pm');},me=(e,t,o,n,a,s)=>{e.className=s;const c=o&&o.layout,r=o&&o.position,i=o&&o.flipButtons,l=!o||false!==o.equalWeightButtons,d=c&&c.split(' ')||[],f=d[0],_=d[1],u=f in t?f:a,p=t[u],g=b(p.Ee,_)&&_,v=r&&r.split(' ')||[],y=v[0],h=n===le?v[0]:v[1],C=b(p.Ae,y)?y:p.He,w=b(p.Ne,h)?h:p.Ve,S=t=>{t&&V(e,n+t);};S(u),S(g),S(C),S(w),i&&S('flip');const x=s+'__btn--secondary';if('cm'===s){const{Ie:e,Le:t}=m.ne;e&&(l?j(e,x):V(e,x)),t&&(l?j(t,x):V(t,x));}else {const{je:e}=m.ne;e&&(l?j(e,x):V(e,x));}},ge=(e,t)=>{const o=m.o,n=m.ne,{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.Fe)n.Pe=k(c),L(n.Pe,'body');else {n.Fe=k(c),V(n.Fe,'pm-wrapper');const e=k('div');V(e,'pm-overlay'),H(n.Fe,e),R(e,d,s),n.we=k(c),V(n.we,'pm'),E(n.we,'role','dialog'),E(n.we,i,true),E(n.we,'aria-modal',true),E(n.we,'aria-labelledby','pm__title'),R(n.ye,'keydown',(e=>{27===e.keyCode&&s();}),true),n.Oe=k(c),L(n.Oe,'header'),n.Re=k('h2'),L(n.Re,'title'),n.Re.id='pm__title',n.Be=k(r),L(n.Be,'close-btn'),E(n.Be,'aria-label',g.closeIconLabel||''),R(n.Be,d,s),n.Ge=k('span'),n.Ge.innerHTML=W(),H(n.Be,n.Ge),n.Je=k(c),L(n.Je,'body'),n.Ue=k(c),L(n.Ue,'footer');var T=k(c);V(T,'btns');var A=k(c),N=k(c);L(A,l),L(N,l),H(n.Ue,A),H(n.Ue,N),H(n.Oe,n.Re),H(n.Oe,n.Be),n.ve=k(c),E(n.ve,'tabIndex',-1),H(n.we,n.ve),H(n.we,n.Oe),H(n.we,n.Je),D&&H(n.we,n.Ue),H(n.Fe,n.we);}let I;b&&(n.Re.innerHTML=b,v&&E(n.Be,'aria-label',v)),M.forEach(((e,t)=>{const a=e.title,s=e.description,l=e.linkedCategory,f=l&&o.P[l],_=e.cookieTable,u=_&&_.body,p=_&&_.caption,m=u&&u.length>0,b=!!f,v=b&&o.X[l],C=h(v)&&w(v)||[],S=b&&(!!s||!!m||w(v).length>0);var x=k(c);if(L(x,'section'),S||s){var M=k(c);L(M,'section-desc-wrapper');}let D=C.length;if(S&&D>0){const e=k(c);L(e,'section-services');for(const t of C){const o=v[t],n=o&&o.label||t,a=k(c),s=k(c),r=k(c),i=k(c);L(a,'service'),L(i,'service-title'),L(s,'service-header'),L(r,'service-icon');const d=be(n,t,f,true,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=k(c),A=k(b?r:c);if(L(T,'section-title-wrapper'),L(A,'section-title'),A.innerHTML=a,H(T,A),b){const e=k('span');e.innerHTML=W(2,3.5),L(e,'section-arrow'),H(T,e),x.className+='--toggle';const t=be(a,l,f);let o=g.serviceCounterLabel;if(D>0&&y(o)){let e=k('span');L(e,'badge'),L(e,'service-counter'),E(e,i,true),E(e,'data-servicecounter',D),o&&(o=o.split('|'),o=o.length>1&&D>1?o[1]:o[0],E(e,'data-counterlabel',o)),e.innerHTML=D+(o?' '+o:''),H(A,e);}if(S){L(x,'section--expandable');var N=l+'-desc';E(A,'aria-expanded',false),E(A,'aria-controls',N);}H(T,t);}else E(A,'role','heading'),E(A,'aria-level','3');H(x,T);}if(s){var F=k('p');L(F,'section-desc'),F.innerHTML=s,H(M,F);}if(S&&(E(M,i,'true'),M.id=N,((e,t,o)=>{R(A,d,(()=>{t.classList.contains('is-expanded')?(j(t,'is-expanded'),E(o,'aria-expanded','false'),E(e,i,'true')):(V(t,'is-expanded'),E(o,'aria-expanded','true'),E(e,i,'false'));}));})(M,x,A),m)){const e=k('table'),o=k('thead'),a=k('tbody');if(p){const t=k('caption');L(t,'table-caption'),t.innerHTML=p,e.appendChild(t);}L(e,'section-table'),L(o,'table-head'),L(a,'table-body');const s=_.headers,r=w(s),i=n.$e.createDocumentFragment(),l=k('tr');for(const e of r){const o=s[e],n=k('th');n.id='cc__row-'+o+t,E(n,'scope','col'),L(n,'table-th'),n.innerHTML=o,H(i,n);}H(l,i),H(o,l);const d=n.$e.createDocumentFragment();for(const e of u){const o=k('tr');L(o,'table-tr');for(const n of r){const a=s[n],r=e[n],i=k('td'),l=k(c);L(i,'table-td'),E(i,'data-column',a),E(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 P=n.Pe||n.Je;b?(I||(I=k(c),L(I,'section-toggles')),I.appendChild(x)):I=null,H(P,I||x);})),C&&(n.ze||(n.ze=k(r),L(n.ze,'btn'),E(n.ze,f,'all'),H(A,n.ze),R(n.ze,d,(()=>p('all')))),n.ze.innerHTML=C),S&&(n.je||(n.je=k(r),L(n.je,'btn'),E(n.je,f,'necessary'),H(A,n.je),R(n.je,d,(()=>p([])))),n.je.innerHTML=S),x&&(n.qe||(n.qe=k(r),L(n.qe,'btn'),L(n.qe,'btn--secondary'),E(n.qe,f,'save'),H(N,n.qe),R(n.qe,d,(()=>p()))),n.qe.innerHTML=x),n.Pe&&(n.we.replaceChild(n.Pe,n.Je),n.Je=n.Pe),pe(1),o.N||(o.N=true,ee(m.re.ue,u,n.we),t(e),H(n.Ce,n.Fe),X(n.we),setTimeout((()=>V(n.Fe,'cc--anim')),100)),Z(2);};function be(e,t,o,n,a){const c=m.o,r=m.ne,l=k('label'),f=k('input'),_=k('span'),u=k('span'),p=k('span'),g=k('span'),v=k('span');if(g.innerHTML=W(1,3),v.innerHTML=W(0,3),f.type='checkbox',V(l,'section__toggle-wrapper'),V(f,'section__toggle'),V(g,'toggle__icon-on'),V(v,'toggle__icon-off'),V(_,'toggle__icon'),V(u,'toggle__icon-circle'),V(p,'toggle__label'),E(_,i,'true'),n?(V(l,'toggle-service'),E(f,s,a),r.se[a][t]=f):r.ae[t]=f,n?(e=>{R(f,'change',(()=>{const t=r.se[e],o=r.ae[e];c.Z[e]=[];for(let o in t){const n=t[o];n.checked&&c.Z[e].push(n.value);}o.checked=c.Z[e].length>0;}));})(a):(e=>{R(f,d,(()=>{const t=r.se[e],o=f.checked;c.Z[e]=[];for(let n in t)t[n].checked=o,o&&c.Z[e].push(n);}));})(t),f.value=t,p.textContent=e.replace(/<.*>.*<\/.*>/gm,''),H(u,v),H(u,g),H(_,u),c.D)(o.readOnly||o.enabled)&&(f.checked=true);else if(n){const e=c.Y[a];f.checked=o.readOnly||b(e,t);}else b(c.R,t)&&(f.checked=true);return o.readOnly&&(f.disabled=true),H(l,f),H(l,_),H(l,p),l}const ve=()=>{const e=k('span');return m.ne.Ke||(m.ne.Ke=e),e},ye=(e,t)=>{const o=m.o,n=m.ne,{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.Qe){n.Qe=k(c),n.he=k(c),n.We=k(c),n.Xe=k(c),n.Ye=k(c),V(n.Qe,'cm-wrapper'),V(n.he,'cm'),I(n.We,'body'),I(n.Xe,'texts'),I(n.Ye,'btns'),E(n.he,'role','dialog'),E(n.he,'aria-modal','true'),E(n.he,i,'false'),E(n.he,'aria-describedby','cm__desc'),C?E(n.he,'aria-label',C):w&&E(n.he,'aria-labelledby','cm__title');const e='box',t=o.i.guiOptions,a=t&&t.consentModal,s=(a&&a.layout||e).split(' ')[0]===e;w&&y&&s&&(n.Le||(n.Le=k(r),n.Le.innerHTML=W(),I(n.Le,'btn'),I(n.Le,'btn--close'),R(n.Le,d,(()=>{S([]);})),H(n.We,n.Le)),E(n.Le,'aria-label',y)),H(n.We,n.Xe),(g||b||v)&&H(n.We,n.Ye),n.be=k(c),E(n.be,'tabIndex',-1),H(n.he,n.be),H(n.he,n.We),H(n.Qe,n.he);}w&&(n.Ze||(n.Ze=k('h2'),n.Ze.className=n.Ze.id='cm__title',H(n.Xe,n.Ze)),n.Ze.innerHTML=w);let x=p.description;if(x&&(o.V&&(x=x.replace('{{revisionMessage}}',o.I?'':p.revisionMessage||'')),n.et||(n.et=k('p'),n.et.className=n.et.id='cm__desc',H(n.Xe,n.et)),n.et.innerHTML=x),g&&(n.tt||(n.tt=k(r),H(n.tt,ve()),I(n.tt,'btn'),E(n.tt,f,'all'),R(n.tt,d,(()=>{S('all');}))),n.tt.firstElementChild.innerHTML=g),b&&(n.Ie||(n.Ie=k(r),H(n.Ie,ve()),I(n.Ie,'btn'),E(n.Ie,f,'necessary'),R(n.Ie,d,(()=>{S([]);}))),n.Ie.firstElementChild.innerHTML=b),v&&(n.ot||(n.ot=k(r),H(n.ot,ve()),I(n.ot,'btn'),I(n.ot,'btn--secondary'),E(n.ot,f,'show'),R(n.ot,'mouseenter',(()=>{o.N||ge(e,t);})),R(n.ot,d,s)),n.ot.firstElementChild.innerHTML=v),n.nt||(n.nt=k(c),I(n.nt,l),g&&H(n.nt,n.tt),b&&H(n.nt,n.Ie),(g||b)&&H(n.We,n.nt),H(n.Ye,n.nt)),n.ot&&!n.st&&(n.st=k(c),n.Ie&&n.tt?(I(n.st,l),H(n.st,n.ot),H(n.Ye,n.st)):(H(n.nt,n.ot),I(n.nt,l+'--uneven'))),h){if(!n.ct){let e=k(c),t=k(c);n.ct=k(c),I(e,'footer'),I(t,'links'),I(n.ct,'link-group'),H(t,n.ct),H(e,t),H(n.he,e);}n.ct.innerHTML=h;}pe(0),o.T||(o.T=true,ee(m.re.ue,_,n.he),t(e),H(n.Ce,n.Qe),X(n.he),setTimeout((()=>V(n.Qe,'cc--anim')),100)),Z(1),U(n.We,e,ge,t);},he=e=>{if(!y(e))return null;if(e in m.o._)return e;let t=e.slice(0,2);return t in m.o._?t:null},Ce=()=>m.o.l||m.o.i.language.default,we=e=>{e&&(m.o.l=e);},Se=async e=>{const t=m.o;let o=he(e)?e:Ce(),n=t._[o];return y(n)?n=await(async e=>{try{const t=await fetch(e);return await t.json()}catch(e){return console.error(e),false}})(n):C(n)&&(n=await n()),!!n&&(t.u=n,we(o),true)},xe=()=>{let e=m.o.i.language.rtl,t=m.ne.Ce;e&&t&&(v(e)||(e=[e]),b(e,m.o.l)?V(t,'cc--rtl'):j(t,'cc--rtl'));},Me=()=>{const e=m.ne;if(e.Ce)return;e.Ce=k(c),e.Ce.id='cc-main',e.Ce.setAttribute('data-nosnippet',''),xe();let t=m.o.i.root;t&&y(t)&&(t=document.querySelector(t)),(t||e.$e.body).appendChild(e.Ce);},De=e=>te((()=>localStorage.removeItem(e))),Te=(e,t)=>{if(t instanceof RegExp)return e.filter((e=>t.test(e)));{const o=g(e,t);return o>-1?[e[o]]:[]}},ke=e=>{const{hostname:t,protocol:o}=location,{name:n,path:a,domain:s,sameSite:c,useLocalStorage:r}=m.t.cookie,i=864e5*B(),l=new Date;l.setTime(l.getTime()+i),m.o.p.expirationTime=l.getTime();const d=JSON.stringify(m.o.p);let f=n+'='+encodeURIComponent(d)+(0!==i?'; expires='+l.toUTCString():'')+'; Path='+a+'; SameSite='+c;b(t,'.')&&(f+='; Domain='+s),'https:'===o&&(f+='; Secure'),r?((e,t)=>{te((()=>localStorage.setItem(e,t)));})(n,d):document.cookie=f,m.o.p;},Ee=(e,t,o)=>{if(0===e.length)return;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);},Ae=e=>{const t=m.t.cookie.name,o=m.t.cookie.useLocalStorage;return ((e,t)=>{let o;return o=te((()=>JSON.parse(t?e:decodeURIComponent(e))),true)||{},o})(o?(n=t,te((()=>localStorage.getItem(n)))||''):Ne(t),o);var n;},Ne=(e,t)=>{const o=document.cookie.match('(^|;)\\s*'+e+'\\s*=\\s*([^;]+)');return o?o.pop():''},He=e=>{const t=document.cookie.split(/;\s*/),o=[];for(const n of t){let t=n.split('=')[0];o.push(t);}return o},Ve=(o,n=[])=>{((e,t)=>{const{O:o,R:n,B:a,N:s,Z:c,G:r,X:i}=m.o;let l=[];if(e){v(e)?l.push(...e):y(e)&&(l='all'===e?o:[e]);for(const e of o)c[e]=b(l,e)?w(i[e]):[];}else l=[...n,...r],s&&(l=(()=>{const e=m.ne.ae;if(!e)return [];let t=[];for(let o in e)e[o].checked&&t.push(o);return t})());l=l.filter((e=>!b(o,e)||!b(t,e))),l.push(...a),J(l);})(o,n),(e=>{const t=m.o,{Z:o,B:n,Y:a,X:s,O:c}=t,r=c;t.te=F(a);for(const e of r){const c=s[e],r=w(c),i=o[e]&&o[e].length>0,l=b(n,e);if(0!==r.length){if(a[e]=[],l)a[e].push(...r);else if(i){const t=o[e];a[e].push(...t);}else a[e]=t.Z[e];a[e]=S(a[e]);}}})(),(()=>{const o=m.o;o.L=m.t.mode===t&&o.D?G(o.G,o.R):G(o.R,o.p.categories);let n=o.L.length>0,a=false;for(const e of o.O)o.ee[e]=G(o.Y[e],o.te[e]),o.ee[e].length>0&&(a=true);const s=m.ne.ae;for(const e in s)s[e].checked=b(o.R,e);for(const e of o.O){const t=m.ne.se[e],n=o.Y[e];for(const e in t)t[e].checked=b(n,e);}o.C||(o.C=new Date),o.M||(o.M=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))),o.p={categories:F(o.R),revision:m.t.revision,data:o.h,consentTimestamp:o.C.toISOString(),consentId:o.M,services:F(o.Y)};let c=false;const r=n||a;(o.D||r)&&(o.D&&(o.D=false,c=true),o.S=o.S?new Date:o.C,o.p.lastConsentTimestamp=o.S.toISOString(),ke(),m.t.autoClearCookies&&(c||r)&&(e=>{const t=m.o,o=He(),n=(e=>{const t=m.o;return (e?t.O:t.L).filter((e=>{const o=t.P[e];return !!o&&!o.readOnly&&!!o.autoClear}))})(e);for(const e in t.ee)for(const n of t.ee[e]){const a=t.X[e][n].cookies;if(!b(t.Y[e],n)&&a)for(const e of a){const t=Te(o,e.name);Ee(t,e.path,e.domain);}}for(const a of n){const n=t.P[a].autoClear,s=n&&n.cookies||[],c=b(t.L,a),r=!b(t.R,a),i=c&&r;if(e?r:i){n.reloadPage&&i&&(t.j=true);for(const e of s){const t=Te(o,e.name);Ee(t,e.path,e.domain);}}}})(c),oe()),c&&(ee(m.re.ie),ee(m.re.le),m.t.mode===e)||(r&&ee(m.re.de),o.j&&(o.j=false,location.reload()));})();},Ie=e=>{const t=m.o.D?[]:m.o.R;return b(t,e)},je=(e,t)=>{const o=m.o.D?[]:m.o.Y[t]||[];return b(o,e)},Oe=e=>{const{ne:t,o:n}=m;if(!n.k){if(!n.T){if(!e)return;ye(Je,Me);}n.k=true,n.U=x(),n.v&&K(true),z(t.he,1),V(t.ye,o),E(t.he,i,'false'),setTimeout((()=>{$(m.ne.be);}),100),ee(m.re.fe,_);}},Re=()=>{const{ne:e,o:t,re:n}=m;t.k&&(t.k=false,t.v&&K(),$(e.Ke,true),j(e.ye,o),E(e.he,i,'true'),$(t.U),t.U=null,ee(n._e,_));},Be=()=>{const e=m.o;e.A||(e.N||ge(Je,Me),e.A=true,e.k?e.$=x():e.U=x(),z(m.ne.we,2),V(m.ne.ye,n),E(m.ne.we,i,'false'),setTimeout((()=>{$(m.ne.ve);}),100),ee(m.re.fe,u));},Ge=()=>{const e=m.o;e.A&&(e.A=false,(()=>{const e=We(),t=m.o.P,o=m.ne.ae,n=m.ne.se,a=e=>b(m.o.G,e);for(const s in o){const c=!!t[s].readOnly;o[s].checked=c||(e?Ie(s):a(s));for(const t in n[s])n[s][t].checked=c||(e?je(t,s):a(s));}})(),$(m.ne.Ge,true),j(m.ne.ye,n),E(m.ne.we,i,'true'),e.k?($(e.$),e.$=null):($(e.U),e.U=null),ee(m.re._e,u));};var Je={show:Oe,hide:Re,showPreferences:Be,hidePreferences:Ge,acceptCategory:Ve};const We=()=>!m.o.D,Xe=async e=>{const{o:o,t:n,re:a}=m,c=window;if(!c._ccRun){if(c._ccRun=true,(e=>{const{ne:o,t:n,o:a}=m,c=n,r=a,{cookie:i}=c,l=m.ce,d=e.cookie,f=e.categories,_=w(f)||[],u=navigator,p=document;o.$e=p,o.ye=p.documentElement,i.domain=location.hostname,r.i=e,r.P=f,r.O=_,r._=e.language.translations,r.v=!!e.disablePageInteraction,l.ie=e.onFirstConsent,l.le=e.onConsent,l.de=e.onChange,l._e=e.onModalHide,l.fe=e.onModalShow,l.ue=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.V=true),'boolean'==typeof v&&(c.autoShow=v),'boolean'==typeof y&&(c.lazyHtmlGeneration=y),false===M&&(c.hideFromBots=false),true===c.hideFromBots&&u&&(r.J=u.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(u.userAgent)||u.webdriver),h(d)&&(c.cookie={...i,...d}),c.autoClearCookies,r.V,c.manageScriptTags,(e=>{const{P:t,X:o,Y:n,Z:a,B: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.ne.se[c]={};for(let e of i){const t=r[e];t.Se=false,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=false;if(t&&'!'===t.charAt(0)&&(t=t.slice(1),a=true),'!'===n.charAt(0)&&(n=n.slice(1),a=true),b(e.O,t)&&(e.oe.push({Me:o,xe:false,ke:a,De:t,Te:n}),n)){const o=e.X[t];o[n]||(o[n]={Se:false});}}})(),we((()=>{const e=m.o.i.language.autoDetect;if(e){const t={browser:navigator.language,document:document.documentElement.lang},o=he(t[e]);if(o)return o}return Ce()})());})(e),o.J)return;(()=>{const e=m.o,o=m.t,n=Ae(),{categories:a,services:s,consentId:c,consentTimestamp:r,lastConsentTimestamp:i,data:l,revision:d}=n,f=v(a);e.p=n,e.M=c;const _=!!c&&y(c);e.C=r,e.C&&(e.C=new Date(r)),e.S=i,e.S&&(e.S=new Date(i)),e.h=undefined!==l?l:null,e.V&&_&&d!==o.revision&&(e.I=false),e.D=!(_&&e.I&&e.C&&e.S&&f),o.cookie.useLocalStorage&&!e.D&&(e.D=(new Date).getTime()>(n.expirationTime||0),e.D&&De(o.cookie.name)),e.D,(()=>{const e=m.o;for(const o of e.O){const n=e.P[o];if(n.readOnly||n.enabled){e.G.push(o);const n=e.X[o]||{};for(let a in n)e.Z[o].push(a),e.i.mode===t&&e.Y[o].push(a);}}})(),e.D?o.mode===t&&(e.R=[...e.G]):(e.Z={...e.Y},e.Y={...e.Y,...s},J([...e.B,...a]));})();const i=We();if(!await Se())return false;if(U(null,r=Je,ge,Me),m.o.D&&ye(r,Me),m.t.lazyHtmlGeneration||ge(r,Me),n.autoShow&&!i&&Oe(true),i)return oe(),ee(a.le);n.mode===t&&oe(o.G);}var r;};
|
|
12191
12191
|
|
|
12192
|
-
const
|
|
12193
|
-
const
|
|
12194
|
-
|
|
12195
|
-
|
|
12196
|
-
|
|
12197
|
-
|
|
12198
|
-
|
|
12199
|
-
|
|
12200
|
-
|
|
12201
|
-
|
|
12202
|
-
|
|
12203
|
-
|
|
12204
|
-
|
|
12205
|
-
|
|
12206
|
-
|
|
12207
|
-
|
|
12208
|
-
|
|
12209
|
-
|
|
12210
|
-
|
|
12211
|
-
|
|
12212
|
-
|
|
12213
|
-
|
|
12214
|
-
|
|
12215
|
-
|
|
12216
|
-
|
|
12217
|
-
|
|
12218
|
-
|
|
12219
|
-
|
|
12220
|
-
|
|
12221
|
-
|
|
12222
|
-
|
|
12223
|
-
|
|
12224
|
-
|
|
12225
|
-
|
|
12226
|
-
|
|
12227
|
-
|
|
12192
|
+
const getCookieBannerConfig = (lng, isClearly) => {
|
|
12193
|
+
const cookieDomain = getDomain();
|
|
12194
|
+
return {
|
|
12195
|
+
language: {
|
|
12196
|
+
default: lng,
|
|
12197
|
+
translations: getTranslations(isClearly),
|
|
12198
|
+
},
|
|
12199
|
+
cookie: {
|
|
12200
|
+
domain: cookieDomain,
|
|
12201
|
+
},
|
|
12202
|
+
guiOptions: {
|
|
12203
|
+
consentModal: { layout: "box wide", position: "bottom left" },
|
|
12204
|
+
preferencesModal: { layout: "bar" },
|
|
12205
|
+
},
|
|
12206
|
+
categories: {
|
|
12207
|
+
necessary: { enabled: true, readOnly: true },
|
|
12208
|
+
analytics: {
|
|
12209
|
+
enabled: true,
|
|
12210
|
+
readOnly: false,
|
|
12211
|
+
services: {
|
|
12212
|
+
ga: {
|
|
12213
|
+
label: "Google Analytics",
|
|
12214
|
+
onAccept: () => {
|
|
12215
|
+
gtag("consent", "update", {
|
|
12216
|
+
ad_storage: "granted",
|
|
12217
|
+
ad_user_data: "granted",
|
|
12218
|
+
ad_personalization: "granted",
|
|
12219
|
+
analytics_storage: "granted",
|
|
12220
|
+
});
|
|
12221
|
+
},
|
|
12222
|
+
onReject: () => {
|
|
12223
|
+
gtag("consent", "update", {
|
|
12224
|
+
ad_storage: "granted",
|
|
12225
|
+
ad_user_data: "granted",
|
|
12226
|
+
ad_personalization: "granted",
|
|
12227
|
+
analytics_storage: "granted",
|
|
12228
|
+
});
|
|
12229
|
+
},
|
|
12228
12230
|
},
|
|
12229
12231
|
},
|
|
12230
12232
|
},
|
|
12231
12233
|
},
|
|
12232
|
-
}
|
|
12233
|
-
}
|
|
12234
|
+
};
|
|
12235
|
+
};
|
|
12234
12236
|
const getTranslations = (isClearly) => ({
|
|
12235
12237
|
en: {
|
|
12236
12238
|
consentModal: {
|
package/dist/index.js
CHANGED
|
@@ -12191,48 +12191,50 @@ const storeGeoParam = () => {
|
|
|
12191
12191
|
*/
|
|
12192
12192
|
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:true,lazyHtmlGeneration:true,autoClearCookies:true,manageScriptTags:true,hideFromBots:true,cookie:{name:'cc_cookie',expiresAfterDays:182,domain:'',path:'/',sameSite:'Lax'}},this.o={i:{},l:'',_:{},u:{},p:{},m:[],v:false,h:null,C:null,S:null,M:'',D:true,T:false,k:false,A:false,N:false,H:[],V:false,I:true,L:[],j:false,F:'',P:false,O:[],R:[],B:[],G:[],J:false,U:false,$:false,q:[],K:[],W:[],X:{},Y:{},Z:{},ee:{},te:{},oe:[]},this.ne={ae:{},se:{}},this.ce={},this.re={ie:'cc:onFirstConsent',le:'cc:onConsent',de:'cc:onChange',fe:'cc:onModalShow',_e:'cc:onModalHide',ue:'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),k=e=>{const t=document.createElement(e);return e===r&&(t.type=e),t},E=(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),V=(e,t)=>e.classList.add(t),I=(e,t)=>V(e,'cm__'+t),L=(e,t)=>V(e,'pm__'+t),j=(e,t)=>e.classList.remove(t),F=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]=F(n);}return t},O=(e,t)=>dispatchEvent(new CustomEvent(e,{detail:t})),R=(e,t,o,n)=>{e.addEventListener(t,o),n&&m.o.m.push({pe:e,me:t,ge:o});},B=()=>{const e=m.t.cookie.expiresAfterDays;return C(e)?e(m.o.F):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.R=S(e),m.o.F=(()=>{let e='custom';const{R:t,O:o,B: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)E(e,'aria-haspopup','dialog'),R(e,d,(e=>{M(e),c();})),h&&(R(e,'mouseenter',(e=>{M(e),m.o.N||o(t,n);}),true),R(e,'focus',(()=>{m.o.N||o(t,n);})));for(let e of g)E(e,'aria-haspopup','dialog'),R(e,d,(e=>{M(e),s(true);}),true);for(let e of b)R(e,d,(e=>{u(e,'all');}),true);for(let e of y)R(e,d,(e=>{u(e);}),true);for(let e of v)R(e,d,(e=>{u(e,[]);}),true);},$=(e,t)=>{e&&(t&&(e.tabIndex=-1),e.focus(),t&&e.removeAttribute('tabindex'));},z=(e,t)=>{const o=n=>{n.target.removeEventListener('transitionend',o),'opacity'===n.propertyName&&'1'===getComputedStyle(e).opacity&&$((e=>1===e?m.ne.be:m.ne.ve)(t));};R(e,'transitionend',o);};let q;const K=e=>{clearTimeout(q),e?V(m.ne.ye,a):q=setTimeout((()=>{j(m.ne.ye,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=e=>{const t=m.ne,o=m.o;(e=>{const n=e===t.he,a=o.i.disablePageInteraction?t.ye:n?t.Ce:t.ye;R(a,'keydown',(t=>{if('Tab'!==t.key||!(n?o.k&&!o.A:o.A))return;const a=x(),s=n?o.q:o.K;0!==s.length&&(t.shiftKey?a!==s[0]&&e.contains(a)||(M(t),$(s[1])):a!==s[1]&&e.contains(a)||(M(t),$(s[0])));}),true);})(e);},Y=['[href]',r,'input','details','[tabindex]'].map((e=>e+':not([tabindex="-1"])')).join(','),Z=e=>{const{o:t,ne:o}=m,n=(e,t)=>{const o=D(e,Y);t[0]=o[0],t[1]=o[o.length-1];};1===e&&t.T&&n(o.he,t.q),2===e&&t.N&&n(o.we,t.K);},ee=(e,t,o)=>{const{de:n,le:a,ie:s,_e:c,ue:r,fe:i}=m.ce,l=m.re;if(t){const n={modalName:t};return e===l.fe?C(i)&&i(n):e===l._e?C(c)&&c(n):(n.modal=o,C(r)&&r(n)),O(e,n)}const d={cookie:m.o.p};e===l.ie?C(s)&&s(F(d)):e===l.le?C(a)&&a(F(d)):(d.changedCategories=m.o.L,d.changedServices=m.o.ee,C(n)&&n(F(d))),O(e,F(d));},te=(e,t)=>{try{return e()}catch(e){return !t&&console.warn('CookieConsent:',e),false}},oe=e=>{const{Y:t,ee:o,O:n,X:a,oe:c,p:r,L: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)?(n.Se=true,C(s)&&s()):n.Se&&!b(t[e],o)&&(n.Se=false,C(c)&&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.ke&&u||!_&&a.ke&&!u&&b(i,l)||_&&!a.ke&&p||_&&a.ke&&!p&&b(o[l]||[],_)){a.xe=true;const t=N(r,'type',true);A(r,'type',!!t),A(r,s);let o=N(r,'src',true);o&&A(r,'src',true);const c=k('script');c.textContent=r.innerHTML;for(const{nodeName:e}of r.attributes)E(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);},ne='bottom',ae='left',se='center',ce='right',re='inline',ie='wide',le='pm--',de=['middle','top',ne],fe=[ae,se,ce],_e={box:{Ee:[ie,re],Ae:de,Ne:fe,He:ne,Ve:ce},cloud:{Ee:[re],Ae:de,Ne:fe,He:ne,Ve:se},bar:{Ee:[re],Ae:de.slice(1),Ne:[],He:ne,Ve:''}},ue={box:{Ee:[],Ae:[],Ne:[],He:'',Ve:''},bar:{Ee:[ie],Ae:[],Ne:[ae,ce],He:'',Ve:ae}},pe=e=>{const t=m.o.i.guiOptions,o=t&&t.consentModal,n=t&&t.preferencesModal;0===e&&me(m.ne.he,_e,o,'cm--','box','cm'),1===e&&me(m.ne.we,ue,n,le,'box','pm');},me=(e,t,o,n,a,s)=>{e.className=s;const c=o&&o.layout,r=o&&o.position,i=o&&o.flipButtons,l=!o||false!==o.equalWeightButtons,d=c&&c.split(' ')||[],f=d[0],_=d[1],u=f in t?f:a,p=t[u],g=b(p.Ee,_)&&_,v=r&&r.split(' ')||[],y=v[0],h=n===le?v[0]:v[1],C=b(p.Ae,y)?y:p.He,w=b(p.Ne,h)?h:p.Ve,S=t=>{t&&V(e,n+t);};S(u),S(g),S(C),S(w),i&&S('flip');const x=s+'__btn--secondary';if('cm'===s){const{Ie:e,Le:t}=m.ne;e&&(l?j(e,x):V(e,x)),t&&(l?j(t,x):V(t,x));}else {const{je:e}=m.ne;e&&(l?j(e,x):V(e,x));}},ge=(e,t)=>{const o=m.o,n=m.ne,{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.Fe)n.Pe=k(c),L(n.Pe,'body');else {n.Fe=k(c),V(n.Fe,'pm-wrapper');const e=k('div');V(e,'pm-overlay'),H(n.Fe,e),R(e,d,s),n.we=k(c),V(n.we,'pm'),E(n.we,'role','dialog'),E(n.we,i,true),E(n.we,'aria-modal',true),E(n.we,'aria-labelledby','pm__title'),R(n.ye,'keydown',(e=>{27===e.keyCode&&s();}),true),n.Oe=k(c),L(n.Oe,'header'),n.Re=k('h2'),L(n.Re,'title'),n.Re.id='pm__title',n.Be=k(r),L(n.Be,'close-btn'),E(n.Be,'aria-label',g.closeIconLabel||''),R(n.Be,d,s),n.Ge=k('span'),n.Ge.innerHTML=W(),H(n.Be,n.Ge),n.Je=k(c),L(n.Je,'body'),n.Ue=k(c),L(n.Ue,'footer');var T=k(c);V(T,'btns');var A=k(c),N=k(c);L(A,l),L(N,l),H(n.Ue,A),H(n.Ue,N),H(n.Oe,n.Re),H(n.Oe,n.Be),n.ve=k(c),E(n.ve,'tabIndex',-1),H(n.we,n.ve),H(n.we,n.Oe),H(n.we,n.Je),D&&H(n.we,n.Ue),H(n.Fe,n.we);}let I;b&&(n.Re.innerHTML=b,v&&E(n.Be,'aria-label',v)),M.forEach(((e,t)=>{const a=e.title,s=e.description,l=e.linkedCategory,f=l&&o.P[l],_=e.cookieTable,u=_&&_.body,p=_&&_.caption,m=u&&u.length>0,b=!!f,v=b&&o.X[l],C=h(v)&&w(v)||[],S=b&&(!!s||!!m||w(v).length>0);var x=k(c);if(L(x,'section'),S||s){var M=k(c);L(M,'section-desc-wrapper');}let D=C.length;if(S&&D>0){const e=k(c);L(e,'section-services');for(const t of C){const o=v[t],n=o&&o.label||t,a=k(c),s=k(c),r=k(c),i=k(c);L(a,'service'),L(i,'service-title'),L(s,'service-header'),L(r,'service-icon');const d=be(n,t,f,true,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=k(c),A=k(b?r:c);if(L(T,'section-title-wrapper'),L(A,'section-title'),A.innerHTML=a,H(T,A),b){const e=k('span');e.innerHTML=W(2,3.5),L(e,'section-arrow'),H(T,e),x.className+='--toggle';const t=be(a,l,f);let o=g.serviceCounterLabel;if(D>0&&y(o)){let e=k('span');L(e,'badge'),L(e,'service-counter'),E(e,i,true),E(e,'data-servicecounter',D),o&&(o=o.split('|'),o=o.length>1&&D>1?o[1]:o[0],E(e,'data-counterlabel',o)),e.innerHTML=D+(o?' '+o:''),H(A,e);}if(S){L(x,'section--expandable');var N=l+'-desc';E(A,'aria-expanded',false),E(A,'aria-controls',N);}H(T,t);}else E(A,'role','heading'),E(A,'aria-level','3');H(x,T);}if(s){var F=k('p');L(F,'section-desc'),F.innerHTML=s,H(M,F);}if(S&&(E(M,i,'true'),M.id=N,((e,t,o)=>{R(A,d,(()=>{t.classList.contains('is-expanded')?(j(t,'is-expanded'),E(o,'aria-expanded','false'),E(e,i,'true')):(V(t,'is-expanded'),E(o,'aria-expanded','true'),E(e,i,'false'));}));})(M,x,A),m)){const e=k('table'),o=k('thead'),a=k('tbody');if(p){const t=k('caption');L(t,'table-caption'),t.innerHTML=p,e.appendChild(t);}L(e,'section-table'),L(o,'table-head'),L(a,'table-body');const s=_.headers,r=w(s),i=n.$e.createDocumentFragment(),l=k('tr');for(const e of r){const o=s[e],n=k('th');n.id='cc__row-'+o+t,E(n,'scope','col'),L(n,'table-th'),n.innerHTML=o,H(i,n);}H(l,i),H(o,l);const d=n.$e.createDocumentFragment();for(const e of u){const o=k('tr');L(o,'table-tr');for(const n of r){const a=s[n],r=e[n],i=k('td'),l=k(c);L(i,'table-td'),E(i,'data-column',a),E(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 P=n.Pe||n.Je;b?(I||(I=k(c),L(I,'section-toggles')),I.appendChild(x)):I=null,H(P,I||x);})),C&&(n.ze||(n.ze=k(r),L(n.ze,'btn'),E(n.ze,f,'all'),H(A,n.ze),R(n.ze,d,(()=>p('all')))),n.ze.innerHTML=C),S&&(n.je||(n.je=k(r),L(n.je,'btn'),E(n.je,f,'necessary'),H(A,n.je),R(n.je,d,(()=>p([])))),n.je.innerHTML=S),x&&(n.qe||(n.qe=k(r),L(n.qe,'btn'),L(n.qe,'btn--secondary'),E(n.qe,f,'save'),H(N,n.qe),R(n.qe,d,(()=>p()))),n.qe.innerHTML=x),n.Pe&&(n.we.replaceChild(n.Pe,n.Je),n.Je=n.Pe),pe(1),o.N||(o.N=true,ee(m.re.ue,u,n.we),t(e),H(n.Ce,n.Fe),X(n.we),setTimeout((()=>V(n.Fe,'cc--anim')),100)),Z(2);};function be(e,t,o,n,a){const c=m.o,r=m.ne,l=k('label'),f=k('input'),_=k('span'),u=k('span'),p=k('span'),g=k('span'),v=k('span');if(g.innerHTML=W(1,3),v.innerHTML=W(0,3),f.type='checkbox',V(l,'section__toggle-wrapper'),V(f,'section__toggle'),V(g,'toggle__icon-on'),V(v,'toggle__icon-off'),V(_,'toggle__icon'),V(u,'toggle__icon-circle'),V(p,'toggle__label'),E(_,i,'true'),n?(V(l,'toggle-service'),E(f,s,a),r.se[a][t]=f):r.ae[t]=f,n?(e=>{R(f,'change',(()=>{const t=r.se[e],o=r.ae[e];c.Z[e]=[];for(let o in t){const n=t[o];n.checked&&c.Z[e].push(n.value);}o.checked=c.Z[e].length>0;}));})(a):(e=>{R(f,d,(()=>{const t=r.se[e],o=f.checked;c.Z[e]=[];for(let n in t)t[n].checked=o,o&&c.Z[e].push(n);}));})(t),f.value=t,p.textContent=e.replace(/<.*>.*<\/.*>/gm,''),H(u,v),H(u,g),H(_,u),c.D)(o.readOnly||o.enabled)&&(f.checked=true);else if(n){const e=c.Y[a];f.checked=o.readOnly||b(e,t);}else b(c.R,t)&&(f.checked=true);return o.readOnly&&(f.disabled=true),H(l,f),H(l,_),H(l,p),l}const ve=()=>{const e=k('span');return m.ne.Ke||(m.ne.Ke=e),e},ye=(e,t)=>{const o=m.o,n=m.ne,{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.Qe){n.Qe=k(c),n.he=k(c),n.We=k(c),n.Xe=k(c),n.Ye=k(c),V(n.Qe,'cm-wrapper'),V(n.he,'cm'),I(n.We,'body'),I(n.Xe,'texts'),I(n.Ye,'btns'),E(n.he,'role','dialog'),E(n.he,'aria-modal','true'),E(n.he,i,'false'),E(n.he,'aria-describedby','cm__desc'),C?E(n.he,'aria-label',C):w&&E(n.he,'aria-labelledby','cm__title');const e='box',t=o.i.guiOptions,a=t&&t.consentModal,s=(a&&a.layout||e).split(' ')[0]===e;w&&y&&s&&(n.Le||(n.Le=k(r),n.Le.innerHTML=W(),I(n.Le,'btn'),I(n.Le,'btn--close'),R(n.Le,d,(()=>{S([]);})),H(n.We,n.Le)),E(n.Le,'aria-label',y)),H(n.We,n.Xe),(g||b||v)&&H(n.We,n.Ye),n.be=k(c),E(n.be,'tabIndex',-1),H(n.he,n.be),H(n.he,n.We),H(n.Qe,n.he);}w&&(n.Ze||(n.Ze=k('h2'),n.Ze.className=n.Ze.id='cm__title',H(n.Xe,n.Ze)),n.Ze.innerHTML=w);let x=p.description;if(x&&(o.V&&(x=x.replace('{{revisionMessage}}',o.I?'':p.revisionMessage||'')),n.et||(n.et=k('p'),n.et.className=n.et.id='cm__desc',H(n.Xe,n.et)),n.et.innerHTML=x),g&&(n.tt||(n.tt=k(r),H(n.tt,ve()),I(n.tt,'btn'),E(n.tt,f,'all'),R(n.tt,d,(()=>{S('all');}))),n.tt.firstElementChild.innerHTML=g),b&&(n.Ie||(n.Ie=k(r),H(n.Ie,ve()),I(n.Ie,'btn'),E(n.Ie,f,'necessary'),R(n.Ie,d,(()=>{S([]);}))),n.Ie.firstElementChild.innerHTML=b),v&&(n.ot||(n.ot=k(r),H(n.ot,ve()),I(n.ot,'btn'),I(n.ot,'btn--secondary'),E(n.ot,f,'show'),R(n.ot,'mouseenter',(()=>{o.N||ge(e,t);})),R(n.ot,d,s)),n.ot.firstElementChild.innerHTML=v),n.nt||(n.nt=k(c),I(n.nt,l),g&&H(n.nt,n.tt),b&&H(n.nt,n.Ie),(g||b)&&H(n.We,n.nt),H(n.Ye,n.nt)),n.ot&&!n.st&&(n.st=k(c),n.Ie&&n.tt?(I(n.st,l),H(n.st,n.ot),H(n.Ye,n.st)):(H(n.nt,n.ot),I(n.nt,l+'--uneven'))),h){if(!n.ct){let e=k(c),t=k(c);n.ct=k(c),I(e,'footer'),I(t,'links'),I(n.ct,'link-group'),H(t,n.ct),H(e,t),H(n.he,e);}n.ct.innerHTML=h;}pe(0),o.T||(o.T=true,ee(m.re.ue,_,n.he),t(e),H(n.Ce,n.Qe),X(n.he),setTimeout((()=>V(n.Qe,'cc--anim')),100)),Z(1),U(n.We,e,ge,t);},he=e=>{if(!y(e))return null;if(e in m.o._)return e;let t=e.slice(0,2);return t in m.o._?t:null},Ce=()=>m.o.l||m.o.i.language.default,we=e=>{e&&(m.o.l=e);},Se=async e=>{const t=m.o;let o=he(e)?e:Ce(),n=t._[o];return y(n)?n=await(async e=>{try{const t=await fetch(e);return await t.json()}catch(e){return console.error(e),false}})(n):C(n)&&(n=await n()),!!n&&(t.u=n,we(o),true)},xe=()=>{let e=m.o.i.language.rtl,t=m.ne.Ce;e&&t&&(v(e)||(e=[e]),b(e,m.o.l)?V(t,'cc--rtl'):j(t,'cc--rtl'));},Me=()=>{const e=m.ne;if(e.Ce)return;e.Ce=k(c),e.Ce.id='cc-main',e.Ce.setAttribute('data-nosnippet',''),xe();let t=m.o.i.root;t&&y(t)&&(t=document.querySelector(t)),(t||e.$e.body).appendChild(e.Ce);},De=e=>te((()=>localStorage.removeItem(e))),Te=(e,t)=>{if(t instanceof RegExp)return e.filter((e=>t.test(e)));{const o=g(e,t);return o>-1?[e[o]]:[]}},ke=e=>{const{hostname:t,protocol:o}=location,{name:n,path:a,domain:s,sameSite:c,useLocalStorage:r}=m.t.cookie,i=864e5*B(),l=new Date;l.setTime(l.getTime()+i),m.o.p.expirationTime=l.getTime();const d=JSON.stringify(m.o.p);let f=n+'='+encodeURIComponent(d)+(0!==i?'; expires='+l.toUTCString():'')+'; Path='+a+'; SameSite='+c;b(t,'.')&&(f+='; Domain='+s),'https:'===o&&(f+='; Secure'),r?((e,t)=>{te((()=>localStorage.setItem(e,t)));})(n,d):document.cookie=f,m.o.p;},Ee=(e,t,o)=>{if(0===e.length)return;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);},Ae=e=>{const t=m.t.cookie.name,o=m.t.cookie.useLocalStorage;return ((e,t)=>{let o;return o=te((()=>JSON.parse(t?e:decodeURIComponent(e))),true)||{},o})(o?(n=t,te((()=>localStorage.getItem(n)))||''):Ne(t),o);var n;},Ne=(e,t)=>{const o=document.cookie.match('(^|;)\\s*'+e+'\\s*=\\s*([^;]+)');return o?o.pop():''},He=e=>{const t=document.cookie.split(/;\s*/),o=[];for(const n of t){let t=n.split('=')[0];o.push(t);}return o},Ve=(o,n=[])=>{((e,t)=>{const{O:o,R:n,B:a,N:s,Z:c,G:r,X:i}=m.o;let l=[];if(e){v(e)?l.push(...e):y(e)&&(l='all'===e?o:[e]);for(const e of o)c[e]=b(l,e)?w(i[e]):[];}else l=[...n,...r],s&&(l=(()=>{const e=m.ne.ae;if(!e)return [];let t=[];for(let o in e)e[o].checked&&t.push(o);return t})());l=l.filter((e=>!b(o,e)||!b(t,e))),l.push(...a),J(l);})(o,n),(e=>{const t=m.o,{Z:o,B:n,Y:a,X:s,O:c}=t,r=c;t.te=F(a);for(const e of r){const c=s[e],r=w(c),i=o[e]&&o[e].length>0,l=b(n,e);if(0!==r.length){if(a[e]=[],l)a[e].push(...r);else if(i){const t=o[e];a[e].push(...t);}else a[e]=t.Z[e];a[e]=S(a[e]);}}})(),(()=>{const o=m.o;o.L=m.t.mode===t&&o.D?G(o.G,o.R):G(o.R,o.p.categories);let n=o.L.length>0,a=false;for(const e of o.O)o.ee[e]=G(o.Y[e],o.te[e]),o.ee[e].length>0&&(a=true);const s=m.ne.ae;for(const e in s)s[e].checked=b(o.R,e);for(const e of o.O){const t=m.ne.se[e],n=o.Y[e];for(const e in t)t[e].checked=b(n,e);}o.C||(o.C=new Date),o.M||(o.M=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))),o.p={categories:F(o.R),revision:m.t.revision,data:o.h,consentTimestamp:o.C.toISOString(),consentId:o.M,services:F(o.Y)};let c=false;const r=n||a;(o.D||r)&&(o.D&&(o.D=false,c=true),o.S=o.S?new Date:o.C,o.p.lastConsentTimestamp=o.S.toISOString(),ke(),m.t.autoClearCookies&&(c||r)&&(e=>{const t=m.o,o=He(),n=(e=>{const t=m.o;return (e?t.O:t.L).filter((e=>{const o=t.P[e];return !!o&&!o.readOnly&&!!o.autoClear}))})(e);for(const e in t.ee)for(const n of t.ee[e]){const a=t.X[e][n].cookies;if(!b(t.Y[e],n)&&a)for(const e of a){const t=Te(o,e.name);Ee(t,e.path,e.domain);}}for(const a of n){const n=t.P[a].autoClear,s=n&&n.cookies||[],c=b(t.L,a),r=!b(t.R,a),i=c&&r;if(e?r:i){n.reloadPage&&i&&(t.j=true);for(const e of s){const t=Te(o,e.name);Ee(t,e.path,e.domain);}}}})(c),oe()),c&&(ee(m.re.ie),ee(m.re.le),m.t.mode===e)||(r&&ee(m.re.de),o.j&&(o.j=false,location.reload()));})();},Ie=e=>{const t=m.o.D?[]:m.o.R;return b(t,e)},je=(e,t)=>{const o=m.o.D?[]:m.o.Y[t]||[];return b(o,e)},Oe=e=>{const{ne:t,o:n}=m;if(!n.k){if(!n.T){if(!e)return;ye(Je,Me);}n.k=true,n.U=x(),n.v&&K(true),z(t.he,1),V(t.ye,o),E(t.he,i,'false'),setTimeout((()=>{$(m.ne.be);}),100),ee(m.re.fe,_);}},Re=()=>{const{ne:e,o:t,re:n}=m;t.k&&(t.k=false,t.v&&K(),$(e.Ke,true),j(e.ye,o),E(e.he,i,'true'),$(t.U),t.U=null,ee(n._e,_));},Be=()=>{const e=m.o;e.A||(e.N||ge(Je,Me),e.A=true,e.k?e.$=x():e.U=x(),z(m.ne.we,2),V(m.ne.ye,n),E(m.ne.we,i,'false'),setTimeout((()=>{$(m.ne.ve);}),100),ee(m.re.fe,u));},Ge=()=>{const e=m.o;e.A&&(e.A=false,(()=>{const e=We(),t=m.o.P,o=m.ne.ae,n=m.ne.se,a=e=>b(m.o.G,e);for(const s in o){const c=!!t[s].readOnly;o[s].checked=c||(e?Ie(s):a(s));for(const t in n[s])n[s][t].checked=c||(e?je(t,s):a(s));}})(),$(m.ne.Ge,true),j(m.ne.ye,n),E(m.ne.we,i,'true'),e.k?($(e.$),e.$=null):($(e.U),e.U=null),ee(m.re._e,u));};var Je={show:Oe,hide:Re,showPreferences:Be,hidePreferences:Ge,acceptCategory:Ve};const We=()=>!m.o.D,Xe=async e=>{const{o:o,t:n,re:a}=m,c=window;if(!c._ccRun){if(c._ccRun=true,(e=>{const{ne:o,t:n,o:a}=m,c=n,r=a,{cookie:i}=c,l=m.ce,d=e.cookie,f=e.categories,_=w(f)||[],u=navigator,p=document;o.$e=p,o.ye=p.documentElement,i.domain=location.hostname,r.i=e,r.P=f,r.O=_,r._=e.language.translations,r.v=!!e.disablePageInteraction,l.ie=e.onFirstConsent,l.le=e.onConsent,l.de=e.onChange,l._e=e.onModalHide,l.fe=e.onModalShow,l.ue=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.V=true),'boolean'==typeof v&&(c.autoShow=v),'boolean'==typeof y&&(c.lazyHtmlGeneration=y),false===M&&(c.hideFromBots=false),true===c.hideFromBots&&u&&(r.J=u.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(u.userAgent)||u.webdriver),h(d)&&(c.cookie={...i,...d}),c.autoClearCookies,r.V,c.manageScriptTags,(e=>{const{P:t,X:o,Y:n,Z:a,B: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.ne.se[c]={};for(let e of i){const t=r[e];t.Se=false,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=false;if(t&&'!'===t.charAt(0)&&(t=t.slice(1),a=true),'!'===n.charAt(0)&&(n=n.slice(1),a=true),b(e.O,t)&&(e.oe.push({Me:o,xe:false,ke:a,De:t,Te:n}),n)){const o=e.X[t];o[n]||(o[n]={Se:false});}}})(),we((()=>{const e=m.o.i.language.autoDetect;if(e){const t={browser:navigator.language,document:document.documentElement.lang},o=he(t[e]);if(o)return o}return Ce()})());})(e),o.J)return;(()=>{const e=m.o,o=m.t,n=Ae(),{categories:a,services:s,consentId:c,consentTimestamp:r,lastConsentTimestamp:i,data:l,revision:d}=n,f=v(a);e.p=n,e.M=c;const _=!!c&&y(c);e.C=r,e.C&&(e.C=new Date(r)),e.S=i,e.S&&(e.S=new Date(i)),e.h=undefined!==l?l:null,e.V&&_&&d!==o.revision&&(e.I=false),e.D=!(_&&e.I&&e.C&&e.S&&f),o.cookie.useLocalStorage&&!e.D&&(e.D=(new Date).getTime()>(n.expirationTime||0),e.D&&De(o.cookie.name)),e.D,(()=>{const e=m.o;for(const o of e.O){const n=e.P[o];if(n.readOnly||n.enabled){e.G.push(o);const n=e.X[o]||{};for(let a in n)e.Z[o].push(a),e.i.mode===t&&e.Y[o].push(a);}}})(),e.D?o.mode===t&&(e.R=[...e.G]):(e.Z={...e.Y},e.Y={...e.Y,...s},J([...e.B,...a]));})();const i=We();if(!await Se())return false;if(U(null,r=Je,ge,Me),m.o.D&&ye(r,Me),m.t.lazyHtmlGeneration||ge(r,Me),n.autoShow&&!i&&Oe(true),i)return oe(),ee(a.le);n.mode===t&&oe(o.G);}var r;};
|
|
12193
12193
|
|
|
12194
|
-
const
|
|
12195
|
-
const
|
|
12196
|
-
|
|
12197
|
-
|
|
12198
|
-
|
|
12199
|
-
|
|
12200
|
-
|
|
12201
|
-
|
|
12202
|
-
|
|
12203
|
-
|
|
12204
|
-
|
|
12205
|
-
|
|
12206
|
-
|
|
12207
|
-
|
|
12208
|
-
|
|
12209
|
-
|
|
12210
|
-
|
|
12211
|
-
|
|
12212
|
-
|
|
12213
|
-
|
|
12214
|
-
|
|
12215
|
-
|
|
12216
|
-
|
|
12217
|
-
|
|
12218
|
-
|
|
12219
|
-
|
|
12220
|
-
|
|
12221
|
-
|
|
12222
|
-
|
|
12223
|
-
|
|
12224
|
-
|
|
12225
|
-
|
|
12226
|
-
|
|
12227
|
-
|
|
12228
|
-
|
|
12229
|
-
|
|
12194
|
+
const getCookieBannerConfig = (lng, isClearly) => {
|
|
12195
|
+
const cookieDomain = getDomain();
|
|
12196
|
+
return {
|
|
12197
|
+
language: {
|
|
12198
|
+
default: lng,
|
|
12199
|
+
translations: getTranslations(isClearly),
|
|
12200
|
+
},
|
|
12201
|
+
cookie: {
|
|
12202
|
+
domain: cookieDomain,
|
|
12203
|
+
},
|
|
12204
|
+
guiOptions: {
|
|
12205
|
+
consentModal: { layout: "box wide", position: "bottom left" },
|
|
12206
|
+
preferencesModal: { layout: "bar" },
|
|
12207
|
+
},
|
|
12208
|
+
categories: {
|
|
12209
|
+
necessary: { enabled: true, readOnly: true },
|
|
12210
|
+
analytics: {
|
|
12211
|
+
enabled: true,
|
|
12212
|
+
readOnly: false,
|
|
12213
|
+
services: {
|
|
12214
|
+
ga: {
|
|
12215
|
+
label: "Google Analytics",
|
|
12216
|
+
onAccept: () => {
|
|
12217
|
+
gtag("consent", "update", {
|
|
12218
|
+
ad_storage: "granted",
|
|
12219
|
+
ad_user_data: "granted",
|
|
12220
|
+
ad_personalization: "granted",
|
|
12221
|
+
analytics_storage: "granted",
|
|
12222
|
+
});
|
|
12223
|
+
},
|
|
12224
|
+
onReject: () => {
|
|
12225
|
+
gtag("consent", "update", {
|
|
12226
|
+
ad_storage: "granted",
|
|
12227
|
+
ad_user_data: "granted",
|
|
12228
|
+
ad_personalization: "granted",
|
|
12229
|
+
analytics_storage: "granted",
|
|
12230
|
+
});
|
|
12231
|
+
},
|
|
12230
12232
|
},
|
|
12231
12233
|
},
|
|
12232
12234
|
},
|
|
12233
12235
|
},
|
|
12234
|
-
}
|
|
12235
|
-
}
|
|
12236
|
+
};
|
|
12237
|
+
};
|
|
12236
12238
|
const getTranslations = (isClearly) => ({
|
|
12237
12239
|
en: {
|
|
12238
12240
|
consentModal: {
|
package/dist/index.umd.js
CHANGED
|
@@ -28,4 +28,4 @@
|
|
|
28
28
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
29
29
|
PERFORMANCE OF THIS SOFTWARE.
|
|
30
30
|
***************************************************************************** */
|
|
31
|
-
function e(e,t,r,n){return new(r||(r=Promise))((function(t,o){function i(e){try{a(n.next(e))}catch(e){o(e)}}function s(e){try{a(n.throw(e))}catch(e){o(e)}}function a(e){var n;e.done?t(e.value):(n=e.value,n instanceof r?n:new r((function(e){e(n)}))).then(i,s)}a((n=n.apply(e,[])).next())}))}for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="undefined"==typeof Uint8Array?[]:new Uint8Array(256),n=0;n<64;n++)r[t.charCodeAt(n)]=n;var o=function(e){var r,n=new Uint8Array(e),o=n.length,i="";for(r=0;r<o;r+=3)i+=t[n[r]>>2],i+=t[(3&n[r])<<4|n[r+1]>>4],i+=t[(15&n[r+1])<<2|n[r+2]>>6],i+=t[63&n[r+2]];return o%3==2?i=i.substring(0,i.length-1)+"=":o%3==1&&(i=i.substring(0,i.length-2)+"=="),i};const i=new Map,s=new Map,a=self;a.onmessage=function(t){return e(this,0,void 0,(function*(){if(!("OffscreenCanvas"in globalThis))return a.postMessage({id:t.data.id});{const{id:r,bitmap:n,width:c,height:l,dataURLOptions:u}=t.data,p=function(t,r,n){return e(this,0,void 0,(function*(){const e=`${t}-${r}`;if("OffscreenCanvas"in globalThis){if(s.has(e))return s.get(e);const i=new OffscreenCanvas(t,r);i.getContext("2d");const a=yield i.convertToBlob(n),c=yield a.arrayBuffer(),l=o(c);return s.set(e,l),l}return""}))}(c,l,u),d=new OffscreenCanvas(c,l);d.getContext("2d").drawImage(n,0,0),n.close();const h=yield d.convertToBlob(u),f=h.type,m=yield h.arrayBuffer(),g=o(m);if(!i.has(r)&&(yield p)===g)return i.set(r,g),a.postMessage({id:r});if(i.get(r)===g)return a.postMessage({id:r});a.postMessage({id:r,type:f,base64:g,width:c,height:l}),i.set(r,g)}}))}}()},function(e){return Xe=Xe||function(e){var t=function(e){var t=e.toString().split("\n");t.pop(),t.shift();for(var r=t[0].search(/\S/),n=/(['"])__worker_loader_strict__(['"])/g,o=0,i=t.length;o<i;++o)t[o]=t[o].substring(r).replace(n,"$1use strict$2")+"\n";return t}(e),r=new Blob(t,{type:"application/javascript"});return URL.createObjectURL(r)}(Ye),new Worker(Xe,e)});class Ke{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};const{sampling:t="all",win:r,blockClass:n,blockSelector:o,recordCanvas:i,dataURLOptions:s}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,i&&"all"===t&&this.initCanvasMutationObserver(r,n,o),i&&"number"==typeof t&&this.initCanvasFPSObserver(t,r,n,o,{dataURLOptions:s})}initCanvasFPSObserver(e,t,r,n,o){const i=Ge(t,r,n,!0),s=new Map,a=new Qe;a.onmessage=e=>{const{id:t}=e.data;if(s.set(t,!1),!("base64"in e.data))return;const{base64:r,type:n,width:o,height:i}=e.data;this.mutationCb({id:t,type:ce["2D"],commands:[{property:"clearRect",args:[0,0,o,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:n}]},0,0]}]})};const c=1e3/e;let l,u=0;const p=e=>{u&&e-u<c||(u=e,(()=>{const e=[];return t.document.querySelectorAll("canvas").forEach((t=>{G(t,r,n,!0)||e.push(t)})),e})().forEach((e=>Fe(this,0,void 0,(function*(){var t;const r=this.mirror.getId(e);if(s.get(r))return;if(0===e.width||0===e.height)return;if(s.set(r,!0),["webgl","webgl2"].includes(e.__context)){const r=e.getContext(e.__context);!1===(null===(t=null==r?void 0:r.getContextAttributes())||void 0===t?void 0:t.preserveDrawingBuffer)&&r.clear(r.COLOR_BUFFER_BIT)}const n=yield createImageBitmap(e);a.postMessage({id:r,bitmap:n,width:e.width,height:e.height,dataURLOptions:o.dataURLOptions},[n])}))))),l=requestAnimationFrame(p)};l=requestAnimationFrame(p),this.resetObservers=()=>{i(),cancelAnimationFrame(l)}}initCanvasMutationObserver(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const n=Ge(e,t,r,!1),o=function(e,t,r,n){const o=[],i=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const s of i)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[s])continue;const i=z(t.CanvasRenderingContext2D.prototype,s,(function(o){return function(...i){return G(this.canvas,r,n,!0)||setTimeout((()=>{const r=He(i,t,this);e(this.canvas,{type:ce["2D"],property:s,args:r})}),0),o.apply(this,i)}}));o.push(i)}catch(r){const n=U(t.CanvasRenderingContext2D.prototype,s,{set(t){e(this.canvas,{type:ce["2D"],property:s,args:[t],setter:!0})}});o.push(n)}return()=>{o.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,r),i=function(e,t,r,n){const o=[];return o.push(...Je(t.WebGLRenderingContext.prototype,ce.WebGL,e,r,n,0,t)),void 0!==t.WebGL2RenderingContext&&o.push(...Je(t.WebGL2RenderingContext.prototype,ce.WebGL2,e,r,n,0,t)),()=>{o.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,r,this.mirror);this.resetObservers=()=>{n(),o(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{const r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)})),requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;const n=r.map((e=>{const t=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["type"]);return t})),{type:o}=r[0];this.mutationCb({id:t,type:o,commands:n}),this.pendingCanvasMutations.delete(e)}}class Ze{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new ee,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const r={id:t,styleIds:[]},n=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:a(e),index:t})))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class et{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){requestAnimationFrame((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const r=this.nodeMap.get(e);return r&&Array.from(r).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function tt(e){return Object.assign(Object.assign({},e),{timestamp:B()})}let rt,nt,ot,it=!1;const st=new c;function at(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:o="rr-block",blockSelector:i=null,ignoreClass:s="rr-ignore",ignoreSelector:a=null,maskTextClass:l="rr-mask",maskTextSelector:u=null,inlineStylesheet:p=!0,maskAllInputs:d,maskInputOptions:h,slimDOMOptions:f,maskInputFn:m,maskTextFn:g,hooks:_,packFn:y,sampling:v={},dataURLOptions:b={},mousemoveWait:k,recordDOM:S=!0,recordCanvas:w=!1,recordCrossOriginIframes:I=!1,recordAfter:C=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:M=!1,collectFonts:x=!1,inlineImages:E=!1,plugins:O,keepIframeSrcFn:T=()=>!1,ignoreCSSAttributes:R=new Set([]),errorHandler:L}=e;ve(L);const N=!I||window.parent===window;let D=!1;if(!N)try{window.parent.document&&(D=!1)}catch(e){D=!0}if(N&&!t)throw new Error("emit function is required");void 0!==k&&void 0===v.mousemove&&(v.mousemove=k),st.reset();const P=!0===d?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==h?h:{password:!0},F=!0===f||"all"===f?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===f,headMetaDescKeywords:"all"===f}:f||{};let j;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let U=0;const z=e=>{for(const t of O||[])t.eventProcessor&&(e=t.eventProcessor(e));return y&&!D&&(e=y(e)),e};rt=(e,o)=>{var i;if(!(null===(i=Se[0])||void 0===i?void 0:i.isFrozen())||e.type===oe.FullSnapshot||e.type===oe.IncrementalSnapshot&&e.data.source===ie.Mutation||Se.forEach((e=>e.unfreeze())),N)null==t||t(z(e),o);else if(D){const t={type:"rrweb",event:z(e),origin:window.location.origin,isCheckout:o};window.parent.postMessage(t,"*")}if(e.type===oe.FullSnapshot)j=e,U=0;else if(e.type===oe.IncrementalSnapshot){if(e.data.source===ie.Mutation&&e.data.isAttachIframe)return;U++;const t=n&&U>=n,o=r&&e.timestamp-j.timestamp>r;(t||o)&&nt(!0)}};const B=e=>{rt(tt({type:oe.IncrementalSnapshot,data:Object.assign({source:ie.Mutation},e)}))},V=e=>rt(tt({type:oe.IncrementalSnapshot,data:Object.assign({source:ie.Scroll},e)})),G=e=>rt(tt({type:oe.IncrementalSnapshot,data:Object.assign({source:ie.CanvasMutation},e)})),J=new Ze({mutationCb:B,adoptedStyleSheetCb:e=>rt(tt({type:oe.IncrementalSnapshot,data:Object.assign({source:ie.AdoptedStyleSheet},e)}))}),Y=new qe({mirror:st,mutationCb:B,stylesheetManager:J,recordCrossOriginIframes:I,wrappedEmit:rt});for(const e of O||[])e.getMirror&&e.getMirror({nodeMirror:st,crossOriginIframeMirror:Y.crossOriginIframeMirror,crossOriginIframeStyleMirror:Y.crossOriginIframeStyleMirror});const X=new et;ot=new Ke({recordCanvas:w,mutationCb:G,win:window,blockClass:o,blockSelector:i,mirror:st,sampling:v.canvas,dataURLOptions:b});const ee=new Pe({mutationCb:B,scrollCb:V,bypassOptions:{blockClass:o,blockSelector:i,maskTextClass:l,maskTextSelector:u,inlineStylesheet:p,maskInputOptions:P,dataURLOptions:b,maskTextFn:g,maskInputFn:m,recordCanvas:w,inlineImages:E,sampling:v,slimDOMOptions:F,iframeManager:Y,stylesheetManager:J,canvasManager:ot,keepIframeSrcFn:T,processedNodeManager:X},mirror:st});nt=(e=!1)=>{if(!S)return;rt(tt({type:oe.Meta,data:{href:window.location.href,width:H(),height:W()}}),e),J.reset(),ee.init(),Se.forEach((e=>e.lock()));const t=function(e,t){const{mirror:r=new c,blockClass:n="rr-block",blockSelector:o=null,maskTextClass:i="rr-mask",maskTextSelector:s=null,inlineStylesheet:a=!0,inlineImages:l=!1,recordCanvas:u=!1,maskAllInputs:p=!1,maskTextFn:d,maskInputFn:h,slimDOM:f=!1,dataURLOptions:m,preserveWhiteSpace:g,onSerialize:_,onIframeLoad:y,iframeLoadTimeout:v,onStylesheetLoad:b,stylesheetLoadTimeout:k,keepIframeSrcFn:S=()=>!1}=t;return A(e,{doc:e,mirror:r,blockClass:n,blockSelector:o,maskTextClass:i,maskTextSelector:s,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===p?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===p?{password:!0}:p,maskTextFn:d,maskInputFn:h,slimDOMOptions:!0===f||"all"===f?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===f,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===f?{}:f,dataURLOptions:m,inlineImages:l,recordCanvas:u,preserveWhiteSpace:g,onSerialize:_,onIframeLoad:y,iframeLoadTimeout:v,onStylesheetLoad:b,stylesheetLoadTimeout:k,keepIframeSrcFn:S,newlyAddedElement:!1})}(document,{mirror:st,blockClass:o,blockSelector:i,maskTextClass:l,maskTextSelector:u,inlineStylesheet:p,maskAllInputs:P,maskTextFn:g,slimDOM:F,dataURLOptions:b,recordCanvas:w,inlineImages:E,onSerialize:e=>{Q(e,st)&&Y.addIframe(e),K(e,st)&&J.trackLinkElement(e),Z(e)&&ee.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Y.attachIframe(e,t),ee.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{J.attachLinkElement(e,t)},keepIframeSrcFn:T});if(!t)return console.warn("Failed to snapshot the document");rt(tt({type:oe.FullSnapshot,data:{node:t,initialOffset:$(window)}}),e),Se.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&J.adoptStyleSheets(document.adoptedStyleSheets,st.getId(document))};try{const e=[],t=e=>{var t;return ke(Le)({mutationCb:B,mousemoveCb:(e,t)=>rt(tt({type:oe.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>rt(tt({type:oe.IncrementalSnapshot,data:Object.assign({source:ie.MouseInteraction},e)})),scrollCb:V,viewportResizeCb:e=>rt(tt({type:oe.IncrementalSnapshot,data:Object.assign({source:ie.ViewportResize},e)})),inputCb:e=>rt(tt({type:oe.IncrementalSnapshot,data:Object.assign({source:ie.Input},e)})),mediaInteractionCb:e=>rt(tt({type:oe.IncrementalSnapshot,data:Object.assign({source:ie.MediaInteraction},e)})),styleSheetRuleCb:e=>rt(tt({type:oe.IncrementalSnapshot,data:Object.assign({source:ie.StyleSheetRule},e)})),styleDeclarationCb:e=>rt(tt({type:oe.IncrementalSnapshot,data:Object.assign({source:ie.StyleDeclaration},e)})),canvasMutationCb:G,fontCb:e=>rt(tt({type:oe.IncrementalSnapshot,data:Object.assign({source:ie.Font},e)})),selectionCb:e=>{rt(tt({type:oe.IncrementalSnapshot,data:Object.assign({source:ie.Selection},e)}))},customElementCb:e=>{rt(tt({type:oe.IncrementalSnapshot,data:Object.assign({source:ie.CustomElement},e)}))},blockClass:o,ignoreClass:s,ignoreSelector:a,maskTextClass:l,maskTextSelector:u,maskInputOptions:P,inlineStylesheet:p,sampling:v,recordDOM:S,recordCanvas:w,inlineImages:E,userTriggeredOnInput:M,collectFonts:x,doc:e,maskInputFn:m,maskTextFn:g,keepIframeSrcFn:T,blockSelector:i,slimDOMOptions:F,dataURLOptions:b,mirror:st,iframeManager:Y,stylesheetManager:J,shadowDomManager:ee,processedNodeManager:X,canvasManager:ot,ignoreCSSAttributes:R,plugins:(null===(t=null==O?void 0:O.filter((e=>e.observer)))||void 0===t?void 0:t.map((e=>({observer:e.observer,options:e.options,callback:t=>rt(tt({type:oe.Plugin,data:{plugin:e.name,payload:t}}))}))))||[]},_)};Y.addLoadListener((r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}}));const r=()=>{nt(),e.push(t(document)),it=!0};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(q("DOMContentLoaded",(()=>{rt(tt({type:oe.DomContentLoaded,data:{}})),"DOMContentLoaded"===C&&r()}))),e.push(q("load",(()=>{rt(tt({type:oe.Load,data:{}})),"load"===C&&r()}),window))),()=>{e.forEach((e=>e())),X.destroy(),it=!1,be()}}catch(e){console.warn(e)}}at.addCustomEvent=(e,t)=>{if(!it)throw new Error("please add custom event after start recording");rt(tt({type:oe.Custom,data:{tag:e,payload:t}}))},at.freezePage=()=>{Se.forEach((e=>e.freeze()))},at.takeFullSnapshot=e=>{if(!it)throw new Error("please take full snapshot after start recording");nt(e)},at.mirror=st;var ct,lt=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(lt||{}),ut=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(ut||{}),pt={DEBUG:!1,LIB_VERSION:"2.58.0"};if("undefined"==typeof window){var dt={hostname:""};ct={navigator:{userAgent:"",onLine:!0},document:{location:dt,referrer:""},screen:{width:0,height:0},location:dt}}else ct=window;var ht,ft,mt,gt=ct.setImmediate,_t=Object.prototype.toString,yt=void 0!==gt?function(e){return gt(e)}:setTimeout;try{Object.defineProperty({},"x",{}),ht=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(e){ht=function(e,t,r){return e[t]=r,e}}function vt(e,t){mt.add(e,t),ft||(ft=yt(mt.drain))}function bt(e){var t,r=typeof e;return null===e||"object"!==r&&"function"!==r||(t=e.then),"function"==typeof t&&t}function kt(){for(var e=0;e<this.chain.length;e++)St(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function St(e,t,r){var n,o;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(o=bt(n))?o.call(n,r.resolve,r.reject):r.resolve(n)}catch(e){r.reject(e)}}function wt(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=bt(e))?vt((function(){var n=new Mt(r);try{t.call(e,(function(){wt.apply(n,arguments)}),(function(){It.apply(n,arguments)}))}catch(e){It.call(n,e)}})):(r.msg=e,r.state=1,r.chain.length>0&&vt(kt,r))}catch(e){It.call(new Mt(r),e)}}}function It(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&vt(kt,t))}function Ct(e,t,r,n){for(var o=0;o<t.length;o++)!function(o){e.resolve(t[o]).then((function(e){r(o,e)}),n)}(o)}function Mt(e){this.def=e,this.triggered=!1}function xt(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function Et(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new xt(this);this.then=function(e,r){var n={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return n.promise=new this.constructor((function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t})),t.chain.push(n),0!==t.state&&vt(kt,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,(function(e){wt.call(t,e)}),(function(e){It.call(t,e)}))}catch(e){It.call(t,e)}}mt=function(){var e,t,r;function n(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(o,i){r=new n(o,i),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;for(e=t=ft=void 0;r;)r.fn.call(r.self),r=r.next}}}();var Ot,Tt=ht({},"constructor",Et,!1);Et.prototype=Tt,ht(Tt,"__NPO__",0,!1),ht(Et,"resolve",(function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this((function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)}))})),ht(Et,"reject",(function(e){return new this((function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)}))})),ht(Et,"all",(function(e){var t=this;return"[object Array]"!==_t.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t((function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var o=e.length,i=Array(o),s=0;Ct(t,e,(function(e,t){i[e]=t,++s===o&&r(i)}),n)}))})),ht(Et,"race",(function(e){var t=this;return"[object Array]"!==_t.call(e)?t.reject(TypeError("Not an array")):new t((function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");Ct(t,e,(function(e,t){r(t)}),n)}))})),Ot="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:Et;var Rt,Lt,Nt,Dt,At,qt,Pt,Ft,jt,Ut,zt,Bt=864e5,$t=8e3,Wt=Array.prototype,Ht=Function.prototype,Vt=Object.prototype,Gt=Wt.slice,Jt=Vt.toString,Yt=Vt.hasOwnProperty,Xt=ct.console,Qt=ct.navigator,Kt=ct.document,Zt=ct.opera,er=ct.screen,tr=Qt.userAgent,rr=Ht.bind,nr=Wt.forEach,or=Wt.indexOf,ir=Wt.map,sr=Array.isArray,ar={},cr={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},lr={log:function(){if(pt.DEBUG&&!cr.isUndefined(Xt)&&Xt)try{Xt.log.apply(Xt,arguments)}catch(e){cr.each(arguments,(function(e){Xt.log(e)}))}},warn:function(){if(pt.DEBUG&&!cr.isUndefined(Xt)&&Xt){var e=["Mixpanel warning:"].concat(cr.toArray(arguments));try{Xt.warn.apply(Xt,e)}catch(t){cr.each(e,(function(e){Xt.warn(e)}))}}},error:function(){if(pt.DEBUG&&!cr.isUndefined(Xt)&&Xt){var e=["Mixpanel error:"].concat(cr.toArray(arguments));try{Xt.error.apply(Xt,e)}catch(t){cr.each(e,(function(e){Xt.error(e)}))}}},critical:function(){if(!cr.isUndefined(Xt)&&Xt){var e=["Mixpanel error:"].concat(cr.toArray(arguments));try{Xt.error.apply(Xt,e)}catch(t){cr.each(e,(function(e){Xt.error(e)}))}}}},ur=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(lr,arguments)}},pr=function(e){return{log:ur(lr.log,e),error:ur(lr.error,e),critical:ur(lr.critical,e)}};cr.bind=function(e,t){var r,n;if(rr&&e.bind===rr)return rr.apply(e,Gt.call(arguments,1));if(!cr.isFunction(e))throw new TypeError;return r=Gt.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(Gt.call(arguments)));var o={};o.prototype=e.prototype;var i=new o;o.prototype=null;var s=e.apply(i,r.concat(Gt.call(arguments)));return Object(s)===s?s:i},n},cr.each=function(e,t,r){if(null!=e)if(nr&&e.forEach===nr)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,o=e.length;n<o;n++)if(n in e&&t.call(r,e[n],n,e)===ar)return}else for(var i in e)if(Yt.call(e,i)&&t.call(r,e[i],i,e)===ar)return},cr.extend=function(e){return cr.each(Gt.call(arguments,1),(function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])})),e},cr.isArray=sr||function(e){return"[object Array]"===Jt.call(e)},cr.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(e){return!1}},cr.isArguments=function(e){return!(!e||!Yt.call(e,"callee"))},cr.toArray=function(e){return e?e.toArray?e.toArray():cr.isArray(e)||cr.isArguments(e)?Gt.call(e):cr.values(e):[]},cr.map=function(e,t,r){if(ir&&e.map===ir)return e.map(t,r);var n=[];return cr.each(e,(function(e){n.push(t.call(r,e))})),n},cr.keys=function(e){var t=[];return null===e||cr.each(e,(function(e,r){t[t.length]=r})),t},cr.values=function(e){var t=[];return null===e||cr.each(e,(function(e){t[t.length]=e})),t},cr.include=function(e,t){var r=!1;return null===e?r:or&&e.indexOf===or?-1!=e.indexOf(t):(cr.each(e,(function(e){if(r||(r=e===t))return ar})),r)},cr.includes=function(e,t){return-1!==e.indexOf(t)},cr.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},cr.isObject=function(e){return e===Object(e)&&!cr.isArray(e)},cr.isEmptyObject=function(e){if(cr.isObject(e)){for(var t in e)if(Yt.call(e,t))return!1;return!0}return!1},cr.isUndefined=function(e){return void 0===e},cr.isString=function(e){return"[object String]"==Jt.call(e)},cr.isDate=function(e){return"[object Date]"==Jt.call(e)},cr.isNumber=function(e){return"[object Number]"==Jt.call(e)},cr.isElement=function(e){return!(!e||1!==e.nodeType)},cr.encodeDates=function(e){return cr.each(e,(function(t,r){cr.isDate(t)?e[r]=cr.formatDate(t):cr.isObject(t)&&(e[r]=cr.encodeDates(t))})),e},cr.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},cr.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},cr.strip_empty_properties=function(e){var t={};return cr.each(e,(function(e,r){cr.isString(e)&&e.length>0&&(t[r]=e)})),t},cr.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):cr.isArray(e)?(r=[],cr.each(e,(function(e){r.push(cr.truncate(e,t))}))):cr.isObject(e)?(r={},cr.each(e,(function(e,n){r[n]=cr.truncate(e,t)}))):r=e,r},cr.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,(function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'},r=function(e,n){var o="",i=0,s="",a="",c=0,l=o,u=[],p=n[e];switch(p&&"object"==typeof p&&"function"==typeof p.toJSON&&(p=p.toJSON(e)),typeof p){case"string":return t(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(o+=" ",u=[],"[object Array]"===Jt.apply(p)){for(c=p.length,i=0;i<c;i+=1)u[i]=r(i,p)||"null";return a=0===u.length?"[]":o?"[\n"+o+u.join(",\n"+o)+"\n"+l+"]":"["+u.join(",")+"]",o=l,a}for(s in p)Yt.call(p,s)&&(a=r(s,p))&&u.push(t(s)+(o?": ":":")+a);return a=0===u.length?"{}":o?"{"+u.join(",")+l+"}":"{"+u.join(",")+"}",o=l,a}};return r("",{"":e})},cr.JSONDecode=(At={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},qt=function(e){var t=new SyntaxError(e);throw t.at=Rt,t.text=Nt,t},Pt=function(e){return e&&e!==Lt&&qt("Expected '"+e+"' instead of '"+Lt+"'"),Lt=Nt.charAt(Rt),Rt+=1,Lt},Ft=function(){var e,t="";for("-"===Lt&&(t="-",Pt("-"));Lt>="0"&&Lt<="9";)t+=Lt,Pt();if("."===Lt)for(t+=".";Pt()&&Lt>="0"&&Lt<="9";)t+=Lt;if("e"===Lt||"E"===Lt)for(t+=Lt,Pt(),"-"!==Lt&&"+"!==Lt||(t+=Lt,Pt());Lt>="0"&&Lt<="9";)t+=Lt,Pt();if(e=+t,isFinite(e))return e;qt("Bad number")},jt=function(){var e,t,r,n="";if('"'===Lt)for(;Pt();){if('"'===Lt)return Pt(),n;if("\\"===Lt)if(Pt(),"u"===Lt){for(r=0,t=0;t<4&&(e=parseInt(Pt(),16),isFinite(e));t+=1)r=16*r+e;n+=String.fromCharCode(r)}else{if("string"!=typeof At[Lt])break;n+=At[Lt]}else n+=Lt}qt("Bad string")},Ut=function(){for(;Lt&&Lt<=" ";)Pt()},Dt=function(){switch(Ut(),Lt){case"{":return function(){var e,t={};if("{"===Lt){if(Pt("{"),Ut(),"}"===Lt)return Pt("}"),t;for(;Lt;){if(e=jt(),Ut(),Pt(":"),Object.hasOwnProperty.call(t,e)&&qt('Duplicate key "'+e+'"'),t[e]=Dt(),Ut(),"}"===Lt)return Pt("}"),t;Pt(","),Ut()}}qt("Bad object")}();case"[":return function(){var e=[];if("["===Lt){if(Pt("["),Ut(),"]"===Lt)return Pt("]"),e;for(;Lt;){if(e.push(Dt()),Ut(),"]"===Lt)return Pt("]"),e;Pt(","),Ut()}}qt("Bad array")}();case'"':return jt();case"-":return Ft();default:return Lt>="0"&&Lt<="9"?Ft():function(){switch(Lt){case"t":return Pt("t"),Pt("r"),Pt("u"),Pt("e"),!0;case"f":return Pt("f"),Pt("a"),Pt("l"),Pt("s"),Pt("e"),!1;case"n":return Pt("n"),Pt("u"),Pt("l"),Pt("l"),null}qt('Unexpected "'+Lt+'"')}()}},function(e){var t;return Nt=e,Rt=0,Lt=" ",t=Dt(),Ut(),Lt&&qt("Syntax error"),t}),cr.base64Encode=function(e){var t,r,n,o,i,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,c=0,l="",u=[];if(!e)return e;e=cr.utf8Encode(e);do{t=(i=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,r=i>>12&63,n=i>>6&63,o=63&i,u[c++]=s.charAt(t)+s.charAt(r)+s.charAt(n)+s.charAt(o)}while(a<e.length);switch(l=u.join(""),e.length%3){case 1:l=l.slice(0,-2)+"==";break;case 2:l=l.slice(0,-1)+"="}return l},cr.utf8Encode=function(e){var t,r,n,o,i="";for(t=r=0,n=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,o=0;o<n;o++){var s=e.charCodeAt(o),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(i+=e.substring(t,r)),i+=a,t=r=o+1)}return r>t&&(i+=e.substring(t,e.length)),i},cr.UUID=(zt=function(){var e,t=1*new Date;if(ct.performance&&ct.performance.now)e=ct.performance.now();else for(e=0;t==1*new Date;)e++;return t.toString(16)+Math.floor(e).toString(16)},function(){var e=(er.height*er.width).toString(16);return zt()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var e,t,r=tr,n=[],o=0;function i(e,t){var r,o=0;for(r=0;r<t.length;r++)o|=n[r]<<8*r;return e^o}for(e=0;e<r.length;e++)t=r.charCodeAt(e),n.unshift(255&t),n.length>=4&&(o=i(o,n),n=[]);return n.length>0&&(o=i(o,n)),o.toString(16)}()+"-"+e+"-"+zt()});var dr=["ahrefsbot","ahrefssiteaudit","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];cr.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<dr.length;t++)if(-1!==e.indexOf(dr[t]))return!0;return!1},cr.HTTPBuildQuery=function(e,t){var r,n,o=[];return cr.isUndefined(t)&&(t="&"),cr.each(e,(function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),o[o.length]=n+"="+r})),o.join(t)},cr.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(e){lr.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},cr.cookie={get:function(e){for(var t=e+"=",r=Kt.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "==o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return decodeURIComponent(o.substring(t.length,o.length))}return null},parse:function(e){var t;try{t=cr.JSONDecode(cr.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,n,o,i,s){var a="",c="",l="";if(s)a="; domain="+s;else if(n){var u=kr(Kt.location.hostname);a=u?"; domain=."+u:""}if(r){var p=new Date;p.setTime(p.getTime()+1e3*r),c="; expires="+p.toGMTString()}i&&(o=!0,l="; SameSite=None"),o&&(l+="; secure"),Kt.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+a+l},set:function(e,t,r,n,o,i,s){var a="",c="",l="";if(s)a="; domain="+s;else if(n){var u=kr(Kt.location.hostname);a=u?"; domain=."+u:""}if(r){var p=new Date;p.setTime(p.getTime()+24*r*60*60*1e3),c="; expires="+p.toGMTString()}i&&(o=!0,l="; SameSite=None"),o&&(l+="; secure");var d=e+"="+encodeURIComponent(t)+c+"; path=/"+a+l;return Kt.cookie=d,d},remove:function(e,t,r){cr.cookie.set(e,"",-1,t,!1,!1,r)}};var hr=null,fr=function(e,t){if(null!==hr&&!t)return hr;var r=!0;try{e=e||ct.localStorage;var n="__mplss_"+yr(8);e.setItem(n,"xyz"),"xyz"!==e.getItem(n)&&(r=!1),e.removeItem(n)}catch(e){r=!1}return hr=r,r};cr.localStorage={is_supported:function(e){var t=fr(null,e);return t||lr.error("localStorage unsupported; falling back to cookie store"),t},error:function(e){lr.error("localStorage error: "+e)},get:function(e){try{return ct.localStorage.getItem(e)}catch(e){cr.localStorage.error(e)}return null},parse:function(e){try{return cr.JSONDecode(cr.localStorage.get(e))||{}}catch(e){}return null},set:function(e,t){try{ct.localStorage.setItem(e,t)}catch(e){cr.localStorage.error(e)}},remove:function(e){try{ct.localStorage.removeItem(e)}catch(e){cr.localStorage.error(e)}}},cr.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,r,n,o,i){if(t)if(t.addEventListener&&!o)t.addEventListener(r,n,!!i);else{var s="on"+r,a=t[s];t[s]=function(t,r,n){var o=function(o){if(o=o||e(ct.event)){var i,s,a=!0;return cr.isFunction(n)&&(i=n(o)),s=r.call(t,o),!1!==i&&!1!==s||(a=!1),a}};return o}(t,n,a)}else lr.error("No valid element provided to register_event")}}();var mr=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');cr.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(e,r){var n=" "+r+" ";return(" "+e.className+" ").replace(t," ").indexOf(n)>=0}function n(t){if(!Kt.getElementsByTagName)return[];var n,o,i,s,a,c,l,u,p,d,h=t.split(" "),f=[Kt];for(c=0;c<h.length;c++)if((n=h[c].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){i=(o=n.split("#"))[0];var m=o[1],g=Kt.getElementById(m);if(!g||i&&g.nodeName.toLowerCase()!=i)return[];f=[g]}else if(n.indexOf(".")>-1){i=(o=n.split("."))[0];var _=o[1];for(i||(i="*"),s=[],a=0,l=0;l<f.length;l++)for(p="*"==i?e(f[l]):f[l].getElementsByTagName(i),u=0;u<p.length;u++)s[a++]=p[u];for(f=[],d=0,l=0;l<s.length;l++)s[l].className&&cr.isString(s[l].className)&&r(s[l],_)&&(f[d++]=s[l])}else{var y=n.match(mr);if(y){i=y[1];var v,b=y[2],k=y[3],S=y[4];for(i||(i="*"),s=[],a=0,l=0;l<f.length;l++)for(p="*"==i?e(f[l]):f[l].getElementsByTagName(i),u=0;u<p.length;u++)s[a++]=p[u];switch(f=[],d=0,k){case"=":v=function(e){return e.getAttribute(b)==S};break;case"~":v=function(e){return e.getAttribute(b).match(new RegExp("\\b"+S+"\\b"))};break;case"|":v=function(e){return e.getAttribute(b).match(new RegExp("^"+S+"-?"))};break;case"^":v=function(e){return 0===e.getAttribute(b).indexOf(S)};break;case"$":v=function(e){return e.getAttribute(b).lastIndexOf(S)==e.getAttribute(b).length-S.length};break;case"*":v=function(e){return e.getAttribute(b).indexOf(S)>-1};break;default:v=function(e){return e.getAttribute(b)}}for(f=[],d=0,l=0;l<s.length;l++)v(s[l])&&(f[d++]=s[l])}else{for(i=n,s=[],a=0,l=0;l<f.length;l++)for(p=f[l].getElementsByTagName(i),u=0;u<p.length;u++)s[a++]=p[u];f=s}}return f}return function(e){return cr.isElement(e)?[e]:cr.isObject(e)&&!cr.isUndefined(e.length)?e:n.call(this,e)}}();var gr=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],_r=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];cr.info={campaignParams:function(e){var t="",r={};return cr.each(gr,(function(n){(t=cr.getQueryParam(Kt.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)})),r},clickParams:function(){var e="",t={};return cr.each(_r,(function(r){(e=cr.getQueryParam(Kt.URL,r)).length&&(t[r]=e)})),t},marketingParams:function(){return cr.extend(cr.info.campaignParams(),cr.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=cr.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n.$search_engine=t;var o=cr.getQueryParam(e,r);o.length&&(n.mp_keyword=o)}return n},browser:function(e,t,r){return t=t||"",r||cr.includes(e," OPR/")?cr.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":cr.includes(e,"IEMobile")||cr.includes(e,"WPDesktop")?"Internet Explorer Mobile":cr.includes(e,"SamsungBrowser/")?"Samsung Internet":cr.includes(e,"Edge")||cr.includes(e,"Edg/")?"Microsoft Edge":cr.includes(e,"FBIOS")?"Facebook Mobile":cr.includes(e,"Chrome")?"Chrome":cr.includes(e,"CriOS")?"Chrome iOS":cr.includes(e,"UCWEB")||cr.includes(e,"UCBrowser")?"UC Browser":cr.includes(e,"FxiOS")?"Firefox iOS":cr.includes(t,"Apple")?cr.includes(e,"Mobile")?"Mobile Safari":"Safari":cr.includes(e,"Android")?"Android Mobile":cr.includes(e,"Konqueror")?"Konqueror":cr.includes(e,"Firefox")?"Firefox":cr.includes(e,"MSIE")||cr.includes(e,"Trident/")?"Internet Explorer":cr.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[cr.info.browser(e,t,r)];if(void 0===n)return null;var o=e.match(n);return o?parseFloat(o[o.length-2]):null},os:function(){var e=tr;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return ct.location.href},properties:function(e){return"object"!=typeof e&&(e={}),cr.extend(cr.strip_empty_properties({$os:cr.info.os(),$browser:cr.info.browser(tr,Qt.vendor,Zt),$referrer:Kt.referrer,$referring_domain:cr.info.referringDomain(Kt.referrer),$device:cr.info.device(tr)}),{$current_url:cr.info.currentUrl(),$browser_version:cr.info.browserVersion(tr,Qt.vendor,Zt),$screen_height:er.height,$screen_width:er.width,mp_lib:"web",$lib_version:pt.LIB_VERSION,$insert_id:yr(),time:cr.timestamp()/1e3},cr.strip_empty_properties(e))},people_properties:function(){return cr.extend(cr.strip_empty_properties({$os:cr.info.os(),$browser:cr.info.browser(tr,Qt.vendor,Zt)}),{$browser_version:cr.info.browserVersion(tr,Qt.vendor,Zt)})},mpPageViewProperties:function(){return cr.strip_empty_properties({current_page_title:Kt.title,current_domain:ct.location.hostname,current_url_path:ct.location.pathname,current_url_protocol:ct.location.protocol,current_url_search:ct.location.search})}};var yr=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},vr=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,br=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,kr=function(e){var t=br,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=vr);var o=e.match(t);return o?o[0]:""},Sr=null,wr=null;"undefined"!=typeof JSON&&(Sr=JSON.stringify,wr=JSON.parse),Sr=Sr||cr.JSONEncode,wr=wr||cr.JSONDecode,cr.toArray=cr.toArray,cr.isObject=cr.isObject,cr.JSONEncode=cr.JSONEncode,cr.JSONDecode=cr.JSONDecode,cr.isBlockedUA=cr.isBlockedUA,cr.isEmptyObject=cr.isEmptyObject,cr.info=cr.info,cr.info.device=cr.info.device,cr.info.browser=cr.info.browser,cr.info.browserVersion=cr.info.browserVersion,cr.info.properties=cr.info.properties,cr.NPO=Et;function Ir(e,t){Ar(!0,e,t)}function Cr(e,t){Ar(!1,e,t)}function Mr(e,t){return"1"===Dr(e,t)}function xr(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||ct,r=t.navigator||{},n=!1;return cr.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],(function(e){cr.includes([!0,1,"1","yes"],e)&&(n=!0)})),n}(t))return lr.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===Dr(e,t);return r&&lr.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function Er(e){return qr(e,(function(e){return this.get_config(e)}))}function Or(e){return qr(e,(function(e){return this._get_config(e)}))}function Tr(e){return qr(e,(function(e){return this._get_config(e)}))}function Rr(e,t){Lr(t=t||{}).remove(Nr(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function Lr(e){return"localStorage"===(e=e||{}).persistenceType?cr.localStorage:cr.cookie}function Nr(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function Dr(e,t){return Lr(t).get(Nr(e,t))}function Ar(e,t,r){cr.isString(t)&&t.length?(Lr(r=r||{}).set(Nr(t,r),e?1:0,cr.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):lr.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function qr(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),o=t.call(this,"ignore_dnt"),i=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=xr(n,{ignoreDnt:o,persistenceType:i,persistencePrefix:s,window:a}))}catch(e){lr.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments);var c=arguments[arguments.length-1];"function"==typeof c&&c(0)}}var Pr=pr("lock"),Fr=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||Ot};Fr.prototype.withLock=function(e,t){return new(0,this.promiseImpl)(cr.bind((function(r,n){var o=t||(new Date).getTime()+"|"+Math.random(),i=(new Date).getTime(),s=this.storageKey,a=this.pollIntervalMS,c=this.timeoutMS,l=this.storage,u=s+":X",p=s+":Y",d=s+":Z",h=function(e){if((new Date).getTime()-i>c)return Pr.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+o+"]"),l.removeItem(d),l.removeItem(p),void g();setTimeout((function(){try{e()}catch(e){n(e)}}),a*(Math.random()+.1))},f=function(e,t){e()?t():h((function(){f(e,t)}))},m=function(){var e=l.getItem(p);return(!e||e===o)&&(l.setItem(p,o),l.getItem(p)===o||(fr(l,!0)||n(new Error("localStorage support dropped while acquiring lock")),!1))},g=function(){l.setItem(u,o),f(m,(function(){l.getItem(u)!==o?h((function(){l.getItem(p)===o?f((function(){return!l.getItem(d)}),_):g()})):_()}))},_=function(){l.setItem(d,"1");var t=function(){l.removeItem(d),l.getItem(p)===o&&l.removeItem(p),l.getItem(u)===o&&l.removeItem(u)};e().then((function(e){t(),r(e)})).catch((function(e){t(),n(e)}))};try{if(!fr(l,!0))throw new Error("localStorage support check failed");g()}catch(e){n(e)}}),this))};var jr=function(e){this.storage=e||localStorage};jr.prototype.init=function(){return Ot.resolve()},jr.prototype.setItem=function(e,t){return new Ot(cr.bind((function(r,n){try{this.storage.setItem(e,t)}catch(e){n(e)}r()}),this))},jr.prototype.getItem=function(e){return new Ot(cr.bind((function(t,r){var n;try{n=this.storage.getItem(e)}catch(e){r(e)}t(n)}),this))},jr.prototype.removeItem=function(e){return new Ot(cr.bind((function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()}),this))};var Ur=pr("batch"),zr=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new jr,this.lock=new Fr(e,{storage:t.sharedLockStorage||window.localStorage}),this.queueStorage.init()),this.reportError=t.errorReporter||cr.bind(Ur.error,Ur),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1};zr.prototype.ensureInit=function(){return this.initialized?Ot.resolve():this.queueStorage.init().then(cr.bind((function(){this.initialized=!0}),this)).catch(cr.bind((function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1}),this))},zr.prototype.enqueue=function(e,t){var r={id:yr(),flushAfter:(new Date).getTime()+2*t,payload:e};if(this.usePersistence){var n=cr.bind((function(){return this.ensureInit().then(cr.bind((function(){return this.readFromStorage()}),this)).then(cr.bind((function(e){return e.push(r),this.saveToStorage(e)}),this)).then(cr.bind((function(e){return e&&this.memQueue.push(r),e}),this)).catch(cr.bind((function(t){return this.reportError("Error enqueueing item",t,e),!1}),this))}),this);return this.lock.withLock(n,this.pid).catch(cr.bind((function(e){return this.reportError("Error acquiring storage lock",e),!1}),this))}return this.memQueue.push(r),Ot.resolve(!0)},zr.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(cr.bind((function(){return this.readFromStorage()}),this)).then(cr.bind((function(r){if(r.length){var n={};cr.each(t,(function(e){n[e.id]=!0}));for(var o=0;o<r.length;o++){var i=r[o];if((new Date).getTime()>i.flushAfter&&!n[i.id]&&(i.orphaned=!0,t.push(i),t.length>=e))break}}return t}),this)):Ot.resolve(t)};var Br=function(e,t){var r=[];return cr.each(e,(function(e){e.id&&!t[e.id]&&r.push(e)})),r};zr.prototype.removeItemsByID=function(e){var t={};if(cr.each(e,(function(e){t[e]=!0})),this.memQueue=Br(this.memQueue,t),this.usePersistence){var r=cr.bind((function(){return this.ensureInit().then(cr.bind((function(){return this.readFromStorage()}),this)).then(cr.bind((function(e){return e=Br(e,t),this.saveToStorage(e)}),this)).then(cr.bind((function(){return this.readFromStorage()}),this)).then(cr.bind((function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n.id&&t[n.id])throw new Error("Item not removed from storage")}return!0}),this)).catch(cr.bind((function(t){return this.reportError("Error removing items",t,e),!1}),this))}),this);return this.lock.withLock(r,this.pid).catch(cr.bind((function(e){return this.reportError("Error acquiring storage lock",e),!fr(this.queueStorage.storage,!0)&&r().then(cr.bind((function(e){return e||this.queueStorage.removeItem(this.storageKey).then((function(){return e}))}),this)).catch(cr.bind((function(e){return this.reportError("Error clearing queue",e),!1}),this))}),this))}return Ot.resolve(!0)};var $r=function(e,t){var r=[];return cr.each(e,(function(e){var n=e.id;if(n in t){var o=t[n];null!==o&&(e.payload=o,r.push(e))}else r.push(e)})),r};zr.prototype.updatePayloads=function(e){return this.memQueue=$r(this.memQueue,e),this.usePersistence?this.lock.withLock(cr.bind((function(){return this.ensureInit().then(cr.bind((function(){return this.readFromStorage()}),this)).then(cr.bind((function(t){return t=$r(t,e),this.saveToStorage(t)}),this)).catch(cr.bind((function(t){return this.reportError("Error updating items",e,t),!1}),this))}),this),this.pid).catch(cr.bind((function(e){return this.reportError("Error acquiring storage lock",e),!1}),this)):Ot.resolve(!0)},zr.prototype.readFromStorage=function(){return this.ensureInit().then(cr.bind((function(){return this.queueStorage.getItem(this.storageKey)}),this)).then(cr.bind((function(e){return e&&(e=wr(e),cr.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]}),this)).catch(cr.bind((function(e){return this.reportError("Error retrieving queue",e),[]}),this))},zr.prototype.saveToStorage=function(e){try{var t=Sr(e)}catch(e){return this.reportError("Error serializing queue",e),Ot.resolve(!1)}return this.ensureInit().then(cr.bind((function(){return this.queueStorage.setItem(this.storageKey,t)}),this)).then((function(){return!0})).catch(cr.bind((function(e){return this.reportError("Error saving queue",e),!1}),this))},zr.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(cr.bind((function(){return this.queueStorage.removeItem(this.storageKey)}),this)):Ot.resolve()};var Wr=pr("batch"),Hr=function(e,t){this.errorReporter=t.errorReporter,this.queue=new zr(e,{errorReporter:cr.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,usePersistence:t.usePersistence}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1};Hr.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},Hr.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Hr.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Hr.prototype.clear=function(){return this.queue.clear()},Hr.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},Hr.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},Hr.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(cr.bind((function(){this.stopped||this.flush()}),this),this.flushInterval))},Hr.prototype.sendRequestPromise=function(e,t){return new Ot(cr.bind((function(r){this.sendRequest(e,t,r)}),this))},Hr.prototype.flush=function(e){if(this.requestInProgress)return Wr.log("Flush: Request already in progress"),Ot.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=(new Date).getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(cr.bind((function(o){var i=o.length===n,s=[],a={};if(cr.each(o,(function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=cr.extend({},t.properties,{mp_sent_by_lib_version:pt.LIB_VERSION}));var r=!0,n=e.id;n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&s.push(t)}a[e.id]=t}),this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),Ot.resolve();var c=cr.bind((function(){return this.queue.removeItemsByID(cr.map(o,(function(e){return e.id}))).then(cr.bind((function(e){return cr.each(o,cr.bind((function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})}),this)),e?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!i?(this.resetFlush(),Ot.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),Ot.resolve())}),this))}),this),l=cr.bind((function(i){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(cr.isObject(i)&&"timeout"===i.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(cr.isObject(i)&&(i.httpStatusCode>=500||429===i.httpStatusCode||i.httpStatusCode<=0&&(u=ct.navigator.onLine,!cr.isUndefined(u)&&!u)||"timeout"===i.error)){var s=2*this.flushInterval;return i.retryAfter&&(s=1e3*parseInt(i.retryAfter,10)||s),s=Math.min(6e5,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),Ot.resolve()}if(cr.isObject(i)&&413===i.httpStatusCode){if(o.length>1){var l=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,l,o.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),Ot.resolve()}return this.reportError("Single-event request too large; dropping",o),this.resetBatchSize(),c()}return c()}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}var u}),this),u={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(u.transport="sendBeacon"),Wr.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,u).then(l)}),this)).catch(cr.bind((function(e){this.reportError("Error flushing request queue",e),this.resetFlush()}),this))},Hr.prototype.reportError=function(e,t){if(Wr.error.apply(Wr.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){Wr.error(t)}};var Vr=pr("recorder"),Gr=ct.CompressionStream,Jr={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Yr=new Set([ut.MouseMove,ut.MouseInteraction,ut.Scroll,ut.ViewportResize,ut.Input,ut.TouchMove,ut.MediaInteraction,ut.Drag,ut.Selection]);var Xr=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout,this._onMaxLengthReached=e.onMaxLengthReached,this._rrwebRecord=e.rrwebRecord,this.replayId=e.replayId,this._stopRecording=null,this.seqNo=0,this.replayStartTime=null,this.replayStartUrl=null,this.batchStartUrl=null,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=Bt,this.recordMinMs=0;var t="__mprec_"+this.getConfig("token")+"_"+this.replayId;this.batcher=new Hr(t,{errorReporter:cr.bind(this.reportError,this),flushOnlyOnInterval:!0,libConfig:Jr,sendRequestFunc:cr.bind(this.flushEventsWithOptOut,this),usePersistence:!1})};Xr.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},Xr.prototype.get_config=function(e){return this.getConfig(e)},Xr.prototype.startRecording=function(e){if(null===this._stopRecording){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>Bt&&(this.recordMaxMs=Bt,Vr.critical("record_max_ms cannot be greater than "+Bt+"ms. Capping value.")),this.recordMinMs=this.getConfig("record_min_ms"),this.recordMinMs>$t&&(this.recordMinMs=$t,Vr.critical("record_min_ms cannot be greater than 8000ms. Capping value.")),this.replayStartTime=(new Date).getTime(),this.batchStartUrl=cr.info.currentUrl(),this.replayStartUrl=cr.info.currentUrl(),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=cr.bind((function(){clearTimeout(this.idleTimeoutId),this.idleTimeoutId=setTimeout(this._onIdleTimeout,this.getConfig("record_idle_timeout_ms"))}),this),r=this.getConfig("record_block_selector");if(""!==r&&null!==r||(r=void 0),this._stopRecording=this._rrwebRecord({emit:cr.bind((function(e){this.batcher.enqueue(e),function(e){return e.type===lt.IncrementalSnapshot&&Yr.has(e.data.source)}(e)&&(this.batcher.stopped&&(new Date).getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t())}),this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15}}),"function"!=typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();t(),this.maxTimeoutId=setTimeout(cr.bind(this._onMaxLengthReached,this),this.recordMaxMs)}else Vr.log("Recording already in progress, skipping startRecording.")},Xr.prototype.stopRecording=function(){if(!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}this.batcher.stopped?this.batcher.clear():(this.batcher.flush(),this.batcher.stop()),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId)},Xr.prototype.isRrwebStopped=function(){return null===this._stopRecording},Xr.prototype.flushEventsWithOptOut=function(e,t,r){this._flushEvents(e,t,r,cr.bind(this._onOptOut,this))},Xr.prototype._onOptOut=function(e){0===e&&this.stopRecording()},Xr.prototype._sendRequest=function(e,t,r,n){var o=cr.bind((function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=cr.info.currentUrl()),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}),this);ct.fetch(this.getConfig("api_host")+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then((function(e){e.json().then((function(t){o(e,t)})).catch((function(e){n({error:e})}))})).catch((function(e){n({error:e,httpStatusCode:0})}))},Xr.prototype._flushEvents=Er((function(e,t,r){const n=e.length;if(n>0){var o=this.replayId,i=e[0].timestamp;0!==this.seqNo&&this.replayStartTime||(0!==this.seqNo&&this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=i);var s=e[n-1].timestamp-this.replayStartTime,a={$current_url:this.batchStartUrl,$lib_version:pt.LIB_VERSION,batch_start_time:i/1e3,distinct_id:String(this._mixpanel.get_distinct_id()),mp_lib:"web",replay_id:o,replay_length_ms:s,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},c=cr.JSONEncode(e),l=this._mixpanel.get_property("$device_id");l&&(a.$device_id=l);var u=this._mixpanel.get_property("$user_id");if(u&&(a.$user_id=u),Gr){var p=new Blob([c],{type:"application/json"}).stream().pipeThrough(new Gr("gzip"));new Response(p).blob().then(cr.bind((function(e){a.format="gzip",this._sendRequest(o,a,e,r)}),this))}else a.format="body",this._sendRequest(o,a,c,r)}})),Xr.prototype.reportError=function(e,t){Vr.error.apply(Vr.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){Vr.error(t)}};var Qr=pr("recorder"),Kr=function(e){this._mixpanel=e,this.activeRecording=null};Kr.prototype.startRecording=function(e){if(!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=cr.bind((function(){Qr.log("Idle timeout reached, restarting recording."),this.resetRecording()}),this),r=cr.bind((function(){Qr.log("Max recording length reached, stopping recording."),this.resetRecording()}),this);this.activeRecording=new Xr({mixpanelInstance:this._mixpanel,onIdleTimeout:t,onMaxLengthReached:r,replayId:cr.UUID(),rrwebRecord:at}),this.activeRecording.startRecording(e)}else Qr.log("Recording already in progress, skipping startRecording.")},Kr.prototype.stopRecording=function(){this.activeRecording&&(this.activeRecording.stopRecording(),this.activeRecording=null)},Kr.prototype.resetRecording=function(){this.stopRecording(),this.startRecording(!0)},Kr.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(Kr.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),ct.__mp_recorder=Kr;var Zr=function(){};Zr.prototype.create_properties=function(){},Zr.prototype.event_handler=function(){},Zr.prototype.after_track_handler=function(){},Zr.prototype.init=function(e){return this.mp=e,this},Zr.prototype.track=function(e,t,r,n){var o=this,i=cr.dom_query(e);if(0!==i.length)return cr.each(i,(function(e){cr.register_event(e,this.override_event,(function(e){var i={},s=o.create_properties(r,this),a=o.mp.get_config("track_links_timeout");o.event_handler(e,this,i),window.setTimeout(o.track_callback(n,s,i,!0),a),o.mp.track(t,s,o.track_callback(n,s,i))}))}),this),!0;lr.error("The DOM query ("+e+") returned 0 elements")},Zr.prototype.track_callback=function(e,t,r,n){n=n||!1;var o=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||o.after_track_handler(t,r,n))}},Zr.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):cr.extend({},e)};var en=function(){this.override_event="click"};cr.inherit(en,Zr),en.prototype.create_properties=function(e,t){var r=en.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},en.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},en.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout((function(){window.location=t.href}),0)};var tn=function(){this.override_event="submit"};cr.inherit(tn,Zr),tn.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},tn.prototype.after_track_handler=function(e,t){setTimeout((function(){t.element.submit()}),0)};var rn="$set",nn="$set_once",on="$unset",sn="$add",an="$append",cn="$union",ln="$remove",un={set_action:function(e,t){var r={},n={};return cr.isObject(e)?cr.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[rn]=n,r},unset_action:function(e){var t={},r=[];return cr.isArray(e)||(e=[e]),cr.each(e,(function(e){this._is_reserved_property(e)||r.push(e)}),this),t[on]=r,t},set_once_action:function(e,t){var r={},n={};return cr.isObject(e)?cr.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[nn]=n,r},union_action:function(e,t){var r={},n={};return cr.isObject(e)?cr.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=cr.isArray(e)?e:[e])}),this):n[e]=cr.isArray(t)?t:[t],r[cn]=n,r},append_action:function(e,t){var r={},n={};return cr.isObject(e)?cr.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[an]=n,r},remove_action:function(e,t){var r={},n={};return cr.isObject(e)?cr.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[ln]=n,r},delete_action:function(){var e={$delete:""};return e}},pn=function(){};cr.extend(pn.prototype,un),pn.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},pn.prototype.set=Tr((function(e,t,r){var n=this.set_action(e,t);return cr.isObject(e)&&(r=t),this._send_request(n,r)})),pn.prototype.set_once=Tr((function(e,t,r){var n=this.set_once_action(e,t);return cr.isObject(e)&&(r=t),this._send_request(n,r)})),pn.prototype.unset=Tr((function(e,t){var r=this.unset_action(e);return this._send_request(r,t)})),pn.prototype.union=Tr((function(e,t,r){cr.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)})),pn.prototype.delete=Tr((function(e){var t=this.delete_action();return this._send_request(t,e)})),pn.prototype.remove=Tr((function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)})),pn.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=cr.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},pn.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},pn.prototype._get_config=function(e){return this._mixpanel.get_config(e)},pn.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},pn.prototype.remove=pn.prototype.remove,pn.prototype.set=pn.prototype.set,pn.prototype.set_once=pn.prototype.set_once,pn.prototype.union=pn.prototype.union,pn.prototype.unset=pn.prototype.unset,pn.prototype.toString=pn.prototype.toString;var dn=function(){};cr.extend(dn.prototype,un),dn.prototype._init=function(e){this._mixpanel=e},dn.prototype.set=Or((function(e,t,r){var n=this.set_action(e,t);return cr.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[rn]=cr.extend({},cr.info.people_properties(),n[rn]),this._send_request(n,r)})),dn.prototype.set_once=Or((function(e,t,r){var n=this.set_once_action(e,t);return cr.isObject(e)&&(r=t),this._send_request(n,r)})),dn.prototype.unset=Or((function(e,t){var r=this.unset_action(e);return this._send_request(r,t)})),dn.prototype.increment=Or((function(e,t,r){var n={},o={};return cr.isObject(e)?(cr.each(e,(function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void lr.error("Invalid increment value passed to mixpanel.people.increment - must be a number");o[t]=e}}),this),r=t):(cr.isUndefined(t)&&(t=1),o[e]=t),n[sn]=o,this._send_request(n,r)})),dn.prototype.append=Or((function(e,t,r){cr.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)})),dn.prototype.remove=Or((function(e,t,r){cr.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)})),dn.prototype.union=Or((function(e,t,r){cr.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)})),dn.prototype.track_charge=Or((function(e,t,r){if(cr.isNumber(e)||(e=parseFloat(e),!isNaN(e)))return this.append("$transactions",cr.extend({$amount:e},t),r);lr.error("Invalid value passed to mixpanel.people.track_charge - must be a number")})),dn.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},dn.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}lr.error("mixpanel.people.delete_user() requires you to call identify() first")},dn.prototype.toString=function(){return this._mixpanel.toString()+".people"},dn.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),o=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),o&&(e.$had_persisted_distinct_id=o);var i=cr.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:i,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),cr.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),cr.truncate(i,255))},dn.prototype._get_config=function(e){return this._mixpanel.get_config(e)},dn.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},dn.prototype._enqueue=function(e){rn in e?this._mixpanel.persistence._add_to_people_queue(rn,e):nn in e?this._mixpanel.persistence._add_to_people_queue(nn,e):on in e?this._mixpanel.persistence._add_to_people_queue(on,e):sn in e?this._mixpanel.persistence._add_to_people_queue(sn,e):an in e?this._mixpanel.persistence._add_to_people_queue(an,e):ln in e?this._mixpanel.persistence._add_to_people_queue(ln,e):cn in e?this._mixpanel.persistence._add_to_people_queue(cn,e):lr.error("Invalid call to _enqueue():",e)},dn.prototype._flush_one_queue=function(e,t,r,n){var o=this,i=cr.extend({},this._mixpanel.persistence.load_queue(e)),s=i;cr.isUndefined(i)||!cr.isObject(i)||cr.isEmptyObject(i)||(o._mixpanel.persistence._pop_from_people_queue(e,i),o._mixpanel.persistence.save(),n&&(s=n(i)),t.call(o,s,(function(t,n){0===t&&o._mixpanel.persistence._add_to_people_queue(e,i),cr.isUndefined(r)||r(t,n)})))},dn.prototype._flush=function(e,t,r,n,o,i,s){var a=this;this._flush_one_queue(rn,this.set,e),this._flush_one_queue(nn,this.set_once,n),this._flush_one_queue(on,this.unset,i,(function(e){return cr.keys(e)})),this._flush_one_queue(sn,this.increment,t),this._flush_one_queue(cn,this.union,o);var c=this._mixpanel.persistence.load_queue(an);if(!cr.isUndefined(c)&&cr.isArray(c)&&c.length)for(var l,u=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(an,l),cr.isUndefined(r)||r(e,t)},p=c.length-1;p>=0;p--)c=this._mixpanel.persistence.load_queue(an),l=c.pop(),a._mixpanel.persistence.save(),cr.isEmptyObject(l)||a.append(l,u);var d=this._mixpanel.persistence.load_queue(ln);if(!cr.isUndefined(d)&&cr.isArray(d)&&d.length)for(var h,f=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(ln,h),cr.isUndefined(s)||s(e,t)},m=d.length-1;m>=0;m--)d=this._mixpanel.persistence.load_queue(ln),h=d.pop(),a._mixpanel.persistence.save(),cr.isEmptyObject(h)||a.remove(h,f)},dn.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},dn.prototype.set=dn.prototype.set,dn.prototype.set_once=dn.prototype.set_once,dn.prototype.unset=dn.prototype.unset,dn.prototype.increment=dn.prototype.increment,dn.prototype.append=dn.prototype.append,dn.prototype.remove=dn.prototype.remove,dn.prototype.union=dn.prototype.union,dn.prototype.track_charge=dn.prototype.track_charge,dn.prototype.clear_charges=dn.prototype.clear_charges,dn.prototype.delete_user=dn.prototype.delete_user,dn.prototype.toString=dn.prototype.toString;var hn,fn="__mps",mn="__mpso",gn="__mpus",_n="__mpa",yn="__mpap",vn="__mpr",bn="__mpu",kn="$people_distinct_id",Sn="__alias",wn="__timers",In=[fn,mn,gn,_n,yn,vn,bn,kn,Sn,wn],Cn=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(lr.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&cr.localStorage.is_supported()?this.storage=cr.localStorage:this.storage=cr.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};Cn.prototype.properties=function(){var e={};return this.load(),cr.each(this.props,(function(t,r){cr.include(In,r)||(e[r]=t)})),e},Cn.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=cr.extend({},e))}},Cn.prototype.upgrade=function(){var e,t;this.storage===cr.localStorage?(e=cr.cookie.parse(this.name),cr.cookie.remove(this.name),cr.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===cr.cookie&&(t=cr.localStorage.parse(this.name),cr.localStorage.remove(this.name),t&&this.register_once(t))},Cn.prototype.save=function(){this.disabled||this.storage.set(this.name,cr.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},Cn.prototype.load_prop=function(e){return this.load(),this.props[e]},Cn.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},Cn.prototype.clear=function(){this.remove(),this.props={}},Cn.prototype.register_once=function(e,t,r){return!!cr.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),cr.each(e,(function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)}),this),this.save(),!0)},Cn.prototype.register=function(e,t){return!!cr.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),cr.extend(this.props,e),this.save(),!0)},Cn.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},Cn.prototype.update_search_keyword=function(e){this.register(cr.info.searchInfo(e))},Cn.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:cr.info.referringDomain(e)||"$direct"},"")},Cn.prototype.get_referrer_info=function(){return cr.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},Cn.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},Cn.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},Cn.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},Cn.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},Cn.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},Cn.prototype.get_cross_subdomain=function(){return this.cross_subdomain},Cn.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},Cn.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],o=this._get_or_create_queue(rn),i=this._get_or_create_queue(nn),s=this._get_or_create_queue(on),a=this._get_or_create_queue(sn),c=this._get_or_create_queue(cn),l=this._get_or_create_queue(ln,[]),u=this._get_or_create_queue(an,[]);r===fn?(cr.extend(o,n),this._pop_from_people_queue(sn,n),this._pop_from_people_queue(cn,n),this._pop_from_people_queue(on,n)):r===mn?(cr.each(n,(function(e,t){t in i||(i[t]=e)})),this._pop_from_people_queue(on,n)):r===gn?cr.each(n,(function(e){cr.each([o,i,a,c],(function(t){e in t&&delete t[e]})),cr.each(u,(function(t){e in t&&delete t[e]})),s[e]=!0})):r===_n?(cr.each(n,(function(e,t){t in o?o[t]+=e:(t in a||(a[t]=0),a[t]+=e)}),this),this._pop_from_people_queue(on,n)):r===bn?(cr.each(n,(function(e,t){cr.isArray(e)&&(t in c||(c[t]=[]),c[t]=c[t].concat(e))})),this._pop_from_people_queue(on,n)):r===vn?(l.push(n),this._pop_from_people_queue(an,n)):r===yn&&(u.push(n),this._pop_from_people_queue(on,n)),lr.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),lr.log(t),this.save()},Cn.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];cr.isUndefined(r)||cr.each(t,(function(t,n){e===an||e===ln?cr.each(r,(function(e){e[n]===t&&delete e[n]})):delete r[n]}),this)},Cn.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},Cn.prototype._get_queue_key=function(e){return e===rn?fn:e===nn?mn:e===on?gn:e===sn?_n:e===an?yn:e===ln?vn:e===cn?bn:void lr.error("Invalid queue:",e)},Cn.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=cr.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},Cn.prototype.set_event_timer=function(e,t){var r=this.load_prop(wn)||{};r[e]=t,this.props[wn]=r,this.save()},Cn.prototype.remove_event_timer=function(e){var t=(this.load_prop(wn)||{})[e];return cr.isUndefined(t)||(delete this.props[wn][e],this.save()),t};var Mn,xn=function(e,t){throw new Error(e+" not available in this build.")},En=function(e){return e},On=function(){},Tn="mixpanel",Rn="base64",Ln="$device:",Nn=ct.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Dn=!Nn&&-1===tr.indexOf("MSIE")&&-1===tr.indexOf("Mozilla"),An=null;Qt.sendBeacon&&(An=function(){return Qt.sendBeacon.apply(Qt,arguments)});var qn={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},Pn={api_host:"https://api-js.mixpanel.com",api_routes:qn,api_method:"POST",api_transport:"XHR",api_payload_format:Rn,app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:On,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:On,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video",record_canvas:!1,record_collect_fonts:!1,record_idle_timeout_ms:18e5,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:Bt,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},Fn=!1,jn=function(){},Un=function(e,t,r){var n,o=r===Tn?Mn:Mn[r];if(o&&0===hn)n=o;else{if(o&&!cr.isArray(o))return void lr.error("You have already initialized "+r);n=new jn}if(n._cached_groups={},n._init(e,t,r),n.people=new dn,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var i=cr.info.campaignParams(null),s={},a=!1;cr.each(i,(function(e,t){s["initial_"+t]=e,e&&(a=!0)})),a&&n.people.set_once(s)}return pt.DEBUG=pt.DEBUG||n.get_config("debug"),!cr.isUndefined(o)&&cr.isArray(o)&&(n._execute_array.call(n.people,o.people),n._execute_array(o)),n};jn.prototype.init=function(e,t,r){if(cr.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==Tn){var n=Un(e,t,r);return Mn[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},jn.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};"api_payload_format"in t||(t.api_host||Pn.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json");if(this.set_config(cr.extend({},Pn,n,t,{name:r,token:e,callback_fn:(r===Tn?r:Tn+"."+r)+"._jsc"})),this._jsc=On,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(cr.localStorage.is_supported(!0)&&Nn){if(this.init_batchers(),An&&ct.addEventListener){var o=cr.bind((function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})}),this);ct.addEventListener("pagehide",(function(e){e.persisted&&o()})),ct.addEventListener("visibilitychange",(function(){"hidden"===Kt.visibilityState&&o()}))}}else this._batch_requests=!1,lr.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),cr.each(this.get_batcher_configs(),(function(e){lr.log("Clearing batch queue "+e.queue_key),cr.localStorage.remove(e.queue_key)}));this.persistence=this.cookie=new Cn(this.config),this.unpersisted_superprops={},this._gdpr_init();var i=cr.UUID();this.get_distinct_id()||this.register_once({distinct_id:Ln+i,$device_id:i},"");var s=this.get_config("track_pageview");s&&this._init_url_change_tracking(s),this.get_config("record_sessions_percent")>0&&100*Math.random()<=this.get_config("record_sessions_percent")&&this.start_session_recording()},jn.prototype.start_session_recording=Er((function(){if(ct.MutationObserver){var e=cr.bind((function(){this._recorder=this._recorder||new ct.__mp_recorder(this),this._recorder.startRecording()}),this);cr.isUndefined(ct.__mp_recorder)?xn(this.get_config("recorder_src"),e):e()}else lr.critical("Browser does not support MutationObserver; skipping session recording")})),jn.prototype.stop_session_recording=function(){this._recorder?this._recorder.stopRecording():lr.critical("Session recorder module not loaded")},jn.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e},jn.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();t&&(e="https://mixpanel.com/projects/replay-redirect?"+cr.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")}));return e},jn.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},jn.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=cr.info.campaignParams(null);cr.each(e,function(e,t){this.unregister(t)}.bind(this))}},jn.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(Kt.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(cr.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(Kt.referrer)},jn.prototype._dom_loaded=function(){cr.each(this.__dom_loaded_queue,(function(e){this._track_dom.apply(this,e)}),this),this.has_opted_out_tracking()||cr.each(this.__request_queue,(function(e){this._send_request.apply(this,e)}),this),delete this.__dom_loaded_queue,delete this.__request_queue},jn.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!Fn)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},jn.prototype._init_url_change_tracking=function(e){var t="";if(this.track_pageview()&&(t=cr.info.currentUrl()),cr.include(["full-url","url-with-path-and-query-string","url-with-path"],e)){ct.addEventListener("popstate",(function(){ct.dispatchEvent(new Event("mp_locationchange"))})),ct.addEventListener("hashchange",(function(){ct.dispatchEvent(new Event("mp_locationchange"))}));var r=ct.history.pushState;"function"==typeof r&&(ct.history.pushState=function(e,t,n){r.call(ct.history,e,t,n),ct.dispatchEvent(new Event("mp_locationchange"))});var n=ct.history.replaceState;"function"==typeof n&&(ct.history.replaceState=function(e,t,r){n.call(ct.history,e,t,r),ct.dispatchEvent(new Event("mp_locationchange"))}),ct.addEventListener("mp_locationchange",function(){var r=cr.info.currentUrl(),n=!1;("full-url"===e?n=r!==t:"url-with-path-and-query-string"===e?n=r.split("#")[0]!==t.split("#")[0]:"url-with-path"===e&&(n=r.split("#")[0].split("?")[0]!==t.split("#")[0].split("?")[0]),n)&&(this.track_pageview()&&(t=r))}.bind(this))}},jn.prototype._prepare_callback=function(e,t){if(cr.isUndefined(e))return null;if(Nn){return function(r){e(r,t)}}var r=this._jsc,n=""+Math.floor(1e8*Math.random()),o=this.get_config("callback_fn")+"["+n+"]";return r[n]=function(o){delete r[n],e(o,t)},o},jn.prototype._send_request=function(e,t,r,n){var o=!0;if(Dn)return this.__request_queue.push(arguments),o;var i={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;n||!cr.isFunction(r)&&"string"!=typeof r||(n=r,r=null),r=cr.extend(i,r||{}),Nn||(r.method="GET");var a="POST"===r.method,c=An&&a&&"sendbeacon"===r.transport.toLowerCase(),l=r.verbose;t.verbose&&(l=!0),this.get_config("test")&&(t.test=1),l&&(t.verbose=1),this.get_config("img")&&(t.img=1),Nn||(n?t.callback=n:(l||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),e+="?"+cr.HTTPBuildQuery(t);var u=this;if("img"in t){var p=Kt.createElement("img");p.src=e,Kt.body.appendChild(p)}else if(c){try{o=An(e,s)}catch(e){u.report_error(e),o=!1}try{n&&n(o?1:0)}catch(e){u.report_error(e)}}else if(Nn)try{var d=new XMLHttpRequest;d.open(r.method,e,!0);var h=this.get_config("xhr_headers");if(a&&(h["Content-Type"]="application/x-www-form-urlencoded"),cr.each(h,(function(e,t){d.setRequestHeader(t,e)})),r.timeout_ms&&void 0!==d.timeout){d.timeout=r.timeout_ms;var f=(new Date).getTime()}d.withCredentials=!0,d.onreadystatechange=function(){var e;if(4===d.readyState)if(200===d.status){if(n)if(l){var t;try{t=cr.JSONDecode(d.responseText)}catch(e){if(u.report_error(e),!r.ignore_json_errors)return;t=d.responseText}n(t)}else n(Number(d.responseText))}else if(e=d.timeout&&!d.status&&(new Date).getTime()-f>=d.timeout?"timeout":"Bad HTTP status: "+d.status+" "+d.statusText,u.report_error(e),n)if(l){var o=d.responseHeaders||{};n({status:0,httpStatusCode:d.status,error:e,retryAfter:o["Retry-After"]})}else n(0)},d.send(s)}catch(e){u.report_error(e),o=!1}else{var m=Kt.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var g=Kt.getElementsByTagName("script")[0];g.parentNode.insertBefore(m,g)}return o},jn.prototype._execute_array=function(e){var t,r=[],n=[],o=[];cr.each(e,(function(e){e&&(t=e[0],cr.isArray(t)?o.push(e):"function"==typeof e?e.call(this):cr.isArray(e)&&"alias"===t?r.push(e):cr.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?o.push(e):n.push(e))}),this);var i=function(e,t){cr.each(e,(function(e){if(cr.isArray(e[0])){var r=t;cr.each(e,(function(e){r=r[e[0]].apply(r,e.slice(1))}))}else this[e[0]].apply(this,e.slice(1))}),t)};i(r,this),i(n,this),i(o,this)},jn.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},jn.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token"),t=this.get_config("api_routes");return this._batcher_configs=this._batcher_configs||{events:{type:"events",endpoint:"/"+t.track,queue_key:e+"_ev"},people:{type:"people",endpoint:"/"+t.engage,queue_key:e+"_pp"},groups:{type:"groups",endpoint:"/"+t.groups,queue_key:e+"_gr"}},this._batcher_configs},jn.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=cr.bind((function(e){return new Hr(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:cr.bind((function(t,r,n){this._send_request(this.get_config("api_host")+e.endpoint,this._encode_data_for_request(t),r,this._prepare_callback(n,t))}),this),beforeSendHook:cr.bind((function(t){return this._run_hook("before_send_"+e.type,t)}),this),stopAllBatchingFunc:cr.bind(this.stop_batch_senders,this),usePersistence:!0})}),this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},jn.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,cr.each(this.request_batchers,(function(e){e.start()})))},jn.prototype.stop_batch_senders=function(){this._batch_requests=!1,cr.each(this.request_batchers,(function(e){e.stop(),e.clear()}))},jn.prototype.push=function(e){this._execute_array([e])},jn.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},jn.prototype._encode_data_for_request=function(e){var t=cr.JSONEncode(e);return this.get_config("api_payload_format")===Rn&&(t=cr.base64Encode(t)),{data:t}},jn.prototype._track_or_batch=function(e,t){var r=cr.truncate(e.data,255),n=e.endpoint,o=e.batcher,i=e.should_send_immediately,s=e.send_request_options||{};t=t||On;var a=!0,c=cr.bind((function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r?(lr.log("MIXPANEL REQUEST:"),lr.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null}),this);return this._batch_requests&&!i?o.enqueue(r).then((function(e){e?t(1,r):c()})):a=c(),a&&r},jn.prototype.track=Er((function(e,t,r,n){n||"function"!=typeof r||(n=r,r=null);var o=(r=r||{}).transport;o&&(r.transport=o);var i=r.send_immediately;if("function"!=typeof n&&(n=On),cr.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=cr.extend({},t)).token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!cr.isUndefined(s)){var a=(new Date).getTime()-s;t.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?cr.info.marketingParams():{};t=cr.extend({},cr.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var l=this.get_config("property_blacklist");cr.isArray(l)?cr.each(l,(function(e){delete t[e]})):this.report_error("Invalid value for property_blacklist config: "+l);var u={event:e,properties:t};return this._track_or_batch({type:"events",data:u,endpoint:this.get_config("api_host")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:i,send_request_options:r},n)}n(0)}})),jn.prototype.set_group=Er((function(e,t,r){cr.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)})),jn.prototype.add_group=Er((function(e,t,r){var n=this.get_property(e),o={};return void 0===n?(o[e]=[t],this.register(o)):-1===n.indexOf(t)&&(n.push(t),o[e]=n,this.register(o)),this.people.union(e,t,r)})),jn.prototype.remove_group=Er((function(e,t,r){var n=this.get_property(e);if(void 0!==n){var o=n.indexOf(t);o>-1&&(n.splice(o,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this.people.remove(e,t,r)})),jn.prototype.track_with_groups=Er((function(e,t,r,n){var o=cr.extend({},t||{});return cr.each(r,(function(e,t){null!=e&&(o[t]=e)})),this.track(e,o,n)})),jn.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},jn.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},jn.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return void 0!==n&&n._group_key===e&&n._group_id===t||((n=new pn)._init(this,e,t),this._cached_groups[r]=n),n},jn.prototype.track_pageview=Er((function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=cr.extend(cr.info.mpPageViewProperties(),cr.info.campaignParams(),cr.info.clickParams()),o=cr.extend({},n,e);return this.track(r,o)})),jn.prototype.track_links=function(){return this._track_dom.call(this,en,arguments)},jn.prototype.track_forms=function(){return this._track_dom.call(this,tn,arguments)},jn.prototype.time_event=function(e){cr.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())};var zn={persistent:!0},Bn=function(e){var t;return t=cr.isObject(e)?e:cr.isUndefined(e)?{}:{days:e},cr.extend({},zn,t)};jn.prototype.register=function(e,t){var r=Bn(t);r.persistent?this.persistence.register(e,r.days):cr.extend(this.unpersisted_superprops,e)},jn.prototype.register_once=function(e,t,r){var n=Bn(r);n.persistent?this.persistence.register_once(e,t,n.days):(void 0===t&&(t="None"),cr.each(e,(function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)}),this))},jn.prototype.unregister=function(e,t){(t=Bn(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},jn.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},jn.prototype.identify=function(e,t,r,n,o,i,s,a){var c=this.get_distinct_id();if(e&&c!==e){if("string"==typeof e&&0===e.indexOf(Ln))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var l=c;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}e!==c&&e!==this.get_property(Sn)&&(this.unregister(Sn),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,o,i,s,a),e!==c&&this.track("$identify",{distinct_id:e,$anon_distinct_id:c},{skip_hooks:!0})},jn.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=cr.UUID();this.register_once({distinct_id:Ln+e,$device_id:e},"")},jn.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},jn.prototype.alias=function(e,t){if(e===this.get_property(kn))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return cr.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(Sn,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},(function(){r.identify(e)}))):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},jn.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},jn.prototype.set_config=function(e){cr.isObject(e)&&(cr.extend(this.config,e),e.batch_size&&cr.each(this.request_batchers,(function(e){e.resetBatchSize()})),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),pt.DEBUG=pt.DEBUG||this.get_config("debug"))},jn.prototype.get_config=function(e){return this.config[e]},jn.prototype._run_hook=function(e){var t=(this.config.hooks[e]||En).apply(this,Gt.call(arguments,1));return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},jn.prototype.get_property=function(e){return this.persistence.load_prop([e])},jn.prototype.toString=function(){var e=this.get_config("name");return e!==Tn&&(e=Tn+"."+e),e},jn.prototype._event_is_disabled=function(e){return cr.isBlockedUA(tr)||this._flags.disable_all_events||cr.include(this.__disabled_events,e)},jn.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&cr.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!cr.cookie.get("mp_optout")||(cr.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},jn.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?this.stop_batch_senders():this._batchers_were_started&&this.start_batch_senders()},jn.prototype._gdpr_call_func=function(e,t){return t=cr.extend({track:cr.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),cr.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},jn.prototype.opt_in_tracking=function(e){e=cr.extend({enable_persistence:!0},e),this._gdpr_call_func(Ir,e),this._gdpr_update_persistence(e)},jn.prototype.opt_out_tracking=function(e){(e=cr.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(Cr,e),this._gdpr_update_persistence(e)},jn.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(Mr,e)},jn.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(xr,e)},jn.prototype.clear_opt_in_out_tracking=function(e){e=cr.extend({enable_persistence:!0},e),this._gdpr_call_func(Rr,e),this._gdpr_update_persistence(e)},jn.prototype.report_error=function(e,t){lr.error.apply(lr.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){lr.error(t)}},jn.prototype.init=jn.prototype.init,jn.prototype.reset=jn.prototype.reset,jn.prototype.disable=jn.prototype.disable,jn.prototype.time_event=jn.prototype.time_event,jn.prototype.track=jn.prototype.track,jn.prototype.track_links=jn.prototype.track_links,jn.prototype.track_forms=jn.prototype.track_forms,jn.prototype.track_pageview=jn.prototype.track_pageview,jn.prototype.register=jn.prototype.register,jn.prototype.register_once=jn.prototype.register_once,jn.prototype.unregister=jn.prototype.unregister,jn.prototype.identify=jn.prototype.identify,jn.prototype.alias=jn.prototype.alias,jn.prototype.name_tag=jn.prototype.name_tag,jn.prototype.set_config=jn.prototype.set_config,jn.prototype.get_config=jn.prototype.get_config,jn.prototype.get_property=jn.prototype.get_property,jn.prototype.get_distinct_id=jn.prototype.get_distinct_id,jn.prototype.toString=jn.prototype.toString,jn.prototype.opt_out_tracking=jn.prototype.opt_out_tracking,jn.prototype.opt_in_tracking=jn.prototype.opt_in_tracking,jn.prototype.has_opted_out_tracking=jn.prototype.has_opted_out_tracking,jn.prototype.has_opted_in_tracking=jn.prototype.has_opted_in_tracking,jn.prototype.clear_opt_in_out_tracking=jn.prototype.clear_opt_in_out_tracking,jn.prototype.get_group=jn.prototype.get_group,jn.prototype.set_group=jn.prototype.set_group,jn.prototype.add_group=jn.prototype.add_group,jn.prototype.remove_group=jn.prototype.remove_group,jn.prototype.track_with_groups=jn.prototype.track_with_groups,jn.prototype.start_batch_senders=jn.prototype.start_batch_senders,jn.prototype.stop_batch_senders=jn.prototype.stop_batch_senders,jn.prototype.start_session_recording=jn.prototype.start_session_recording,jn.prototype.stop_session_recording=jn.prototype.stop_session_recording,jn.prototype.get_session_recording_properties=jn.prototype.get_session_recording_properties,jn.prototype.get_session_replay_url=jn.prototype.get_session_replay_url,jn.prototype.DEFAULT_API_ROUTES=qn,Cn.prototype.properties=Cn.prototype.properties,Cn.prototype.update_search_keyword=Cn.prototype.update_search_keyword,Cn.prototype.update_referrer_info=Cn.prototype.update_referrer_info,Cn.prototype.get_cross_subdomain=Cn.prototype.get_cross_subdomain,Cn.prototype.clear=Cn.prototype.clear;var $n={},Wn=function(){Mn.init=function(e,t,r){if(r)return Mn[r]||(Mn[r]=$n[r]=Un(e,t,r),Mn[r]._loaded()),Mn[r];var n=Mn;$n[Tn]?n=$n[Tn]:e&&((n=Un(e,t,Tn))._loaded(),$n[Tn]=n),Mn=n,1===hn&&(ct[Tn]=Mn),cr.each($n,(function(e,t){t!==Tn&&(Mn[t]=e)})),Mn._=cr}};var Hn=(xn=function(e,t){t()},hn=0,Mn=new jn,Wn(),Mn.init(),function(){function e(){e.done||(e.done=!0,Fn=!0,Dn=!1,cr.each($n,(function(e){e._dom_loaded()})))}if(Kt.addEventListener)"complete"===Kt.readyState?e():Kt.addEventListener("DOMContentLoaded",e,!1);else if(Kt.attachEvent){Kt.attachEvent("onreadystatechange",e);var t=!1;try{t=null===ct.frameElement}catch(e){}Kt.documentElement.doScroll&&t&&function t(){try{Kt.documentElement.doScroll("left")}catch(e){return void setTimeout(t,1)}e()}()}cr.register_event(ct,"load",e,!0)}(),Mn);const Vn="rid",Gn="rozmovaAnalyticsParams",Jn=["utm_source","utm_medium","utm_campaign","utm_campaign_id","utm_advertiser_id","utm_adset_id","utm_adset_name","utm_ad_id","utm_ad_name","utm_keyword"],Yn="G-GYQLL028VQ",Xn="https://tagging.clearly.help",Qn=["en","uk","pl","es","ru"],Kn=e=>new URLSearchParams(window.location.search).get(e);function Zn(){const e=navigator.userAgent;return e.indexOf("Edg")>-1?"Microsoft Edge":e.indexOf("Chrome")>-1?"Chrome":e.indexOf("Firefox")>-1?"Firefox":e.indexOf("Safari")>-1?"Safari":e.indexOf("Opera")>-1?"Opera":e.indexOf("Trident")>-1||e.indexOf("MSIE")>-1?"Internet Explorer":"Unknown"}function eo(){const e=navigator.userAgent;return/Mobi|Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)?"Mobile":"Desktop"}function to(){const e=navigator.userAgent;return e.includes("Win")?"Windows":e.includes("Mac")?"macOS":e.includes("X11")||e.includes("Linux")?"Linux":e.includes("Android")?"Android":e.includes("like Mac")?"iOS":"Unknown OS"}const ro=()=>{const e=window.location.hostname.split("."),t=e.length;return 1===e.length?e[0]:e.slice(t-2,t).join(".")},no=["accounts.google.com","appleid.apple.com","checkout.stripe.com"],oo=()=>{const e=document.referrer;if(e){const t=new URL(e);if([...no,ro()].some((e=>t.hostname.includes(e))))return null}return e};function io(){const e=oo();if(!e)return null;const t={"google.com":"q","bing.com":"q","yahoo.com":"p","duckduckgo.com":"q","ask.com":"q","baidu.com":"wd","yandex.com":"text"},r=new URL(e);for(const[e,n]of Object.entries(t))if(r.hostname.includes(e)){const e=r.searchParams.get(n);return e?decodeURIComponent(e):null}return null}const so=()=>{const e=n.get("_ga");if(!e)return"";const t=e.split(".");return t[2]+"."+t[3]};function ao(){const e=document.cookie.match(/_ga_GYQLL028VQ=GS\d\.\d\.(.+?)(?:;|$)/),t=e?.[1].split(".");return t?t[0]:null}const co=e=>{const t=ro();n.set(Vn,e,{domain:t}),localStorage.setItem(Vn,e)},lo=()=>{const e=((e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),""))();return co(e),e},uo=()=>{const e=Kn(Vn);return e&&co(e),e||localStorage.getItem(Vn)||n.get(Vn)||lo()},po="opt-in",ho="opt-out",fo="show--consent",mo="show--preferences",go="disable--interaction",_o="data-category",yo="div",vo="button",bo="aria-hidden",ko="btn-group",So="click",wo="data-role",Io="consentModal",Co="preferencesModal";const Mo=new class{constructor(){this.t={mode:po,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:[],v:!1,h:null,C:null,S:null,M:"",D:!0,T:!1,k:!1,A:!1,N:!1,H:[],V:!1,I:!0,L:[],j:!1,F:"",P:!1,O:[],R:[],B:[],G:[],J:!1,U:!1,$:!1,q:[],K:[],W:[],X:{},Y:{},Z:{},ee:{},te:{},oe:[]},this.ne={ae:{},se:{}},this.ce={},this.re={ie:"cc:onFirstConsent",le:"cc:onConsent",de:"cc:onChange",fe:"cc:onModalShow",_e:"cc:onModalHide",ue:"cc:onModalReady"}}},xo=(e,t)=>e.indexOf(t),Eo=(e,t)=>-1!==xo(e,t),Oo=e=>Array.isArray(e),To=e=>"string"==typeof e,Ro=e=>!!e&&"object"==typeof e&&!Oo(e),Lo=e=>"function"==typeof e,No=e=>Object.keys(e),Do=e=>Array.from(new Set(e)),Ao=()=>document.activeElement,qo=e=>e.preventDefault(),Po=(e,t)=>e.querySelectorAll(t),Fo=e=>{const t=document.createElement(e);return e===vo&&(t.type=e),t},jo=(e,t,r)=>e.setAttribute(t,r),Uo=(e,t,r)=>{e.removeAttribute(r?"data-"+t:t)},zo=(e,t,r)=>e.getAttribute(r?"data-"+t:t),Bo=(e,t)=>e.appendChild(t),$o=(e,t)=>e.classList.add(t),Wo=(e,t)=>$o(e,"cm__"+t),Ho=(e,t)=>$o(e,"pm__"+t),Vo=(e,t)=>e.classList.remove(t),Go=e=>{if("object"!=typeof e)return e;if(e instanceof Date)return new Date(e.getTime());let t=Array.isArray(e)?[]:{};for(let r in e){let n=e[r];t[r]=Go(n)}return t},Jo=(e,t)=>dispatchEvent(new CustomEvent(e,{detail:t})),Yo=(e,t,r,n)=>{e.addEventListener(t,r),n&&Mo.o.m.push({pe:e,me:t,ge:r})},Xo=(e,t)=>{const r=e||[],n=t||[];return r.filter((e=>!Eo(n,e))).concat(n.filter((e=>!Eo(r,e))))},Qo=e=>{Mo.o.R=Do(e),Mo.o.F=(()=>{let e="custom";const{R:t,O:r,B:n}=Mo.o,o=t.length;return o===r.length?e="all":o===n.length&&(e="necessary"),e})()},Ko=(e,t,r,n)=>{const o="accept-",{show:i,showPreferences:s,hide:a,hidePreferences:c,acceptCategory:l}=t,u=e||document,p=e=>Po(u,`[data-cc="${e}"]`),d=(e,t)=>{qo(e),l(t),c(),a()},h=p("show-preferencesModal"),f=p("show-consentModal"),m=p(o+"all"),g=p(o+"necessary"),_=p(o+"custom"),y=Mo.t.lazyHtmlGeneration;for(const e of h)jo(e,"aria-haspopup","dialog"),Yo(e,So,(e=>{qo(e),s()})),y&&(Yo(e,"mouseenter",(e=>{qo(e),Mo.o.N||r(t,n)}),!0),Yo(e,"focus",(()=>{Mo.o.N||r(t,n)})));for(let e of f)jo(e,"aria-haspopup","dialog"),Yo(e,So,(e=>{qo(e),i(!0)}),!0);for(let e of m)Yo(e,So,(e=>{d(e,"all")}),!0);for(let e of _)Yo(e,So,(e=>{d(e)}),!0);for(let e of g)Yo(e,So,(e=>{d(e,[])}),!0)},Zo=(e,t)=>{e&&(t&&(e.tabIndex=-1),e.focus(),t&&e.removeAttribute("tabindex"))},ei=(e,t)=>{const r=n=>{n.target.removeEventListener("transitionend",r),"opacity"===n.propertyName&&"1"===getComputedStyle(e).opacity&&Zo((e=>1===e?Mo.ne.be:Mo.ne.ve)(t))};Yo(e,"transitionend",r)};let ti;const ri=e=>{clearTimeout(ti),e?$o(Mo.ne.ye,go):ti=setTimeout((()=>{Vo(Mo.ne.ye,go)}),500)},ni=["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 "],oi=(e=0,t=1.5)=>`<svg viewBox="0 0 24 24" stroke-width="${t}"><path d="${ni[e]}"/></svg>`,ii=e=>{const t=Mo.ne,r=Mo.o;(e=>{const n=e===t.he,o=r.i.disablePageInteraction?t.ye:n?t.Ce:t.ye;Yo(o,"keydown",(t=>{if("Tab"!==t.key||!(n?r.k&&!r.A:r.A))return;const o=Ao(),i=n?r.q:r.K;0!==i.length&&(t.shiftKey?o!==i[0]&&e.contains(o)||(qo(t),Zo(i[1])):o!==i[1]&&e.contains(o)||(qo(t),Zo(i[0])))}),!0)})(e)},si=["[href]",vo,"input","details","[tabindex]"].map((e=>e+':not([tabindex="-1"])')).join(","),ai=e=>{const{o:t,ne:r}=Mo,n=(e,t)=>{const r=Po(e,si);t[0]=r[0],t[1]=r[r.length-1]};1===e&&t.T&&n(r.he,t.q),2===e&&t.N&&n(r.we,t.K)},ci=(e,t,r)=>{const{de:n,le:o,ie:i,_e:s,ue:a,fe:c}=Mo.ce,l=Mo.re;if(t){const n={modalName:t};return e===l.fe?Lo(c)&&c(n):e===l._e?Lo(s)&&s(n):(n.modal=r,Lo(a)&&a(n)),Jo(e,n)}const u={cookie:Mo.o.p};e===l.ie?Lo(i)&&i(Go(u)):e===l.le?Lo(o)&&o(Go(u)):(u.changedCategories=Mo.o.L,u.changedServices=Mo.o.ee,Lo(n)&&n(Go(u))),Jo(e,Go(u))},li=(e,t)=>{try{return e()}catch(e){return!t&&console.warn("CookieConsent:",e),!1}},ui=e=>{const{Y:t,ee:r,O:n,X:o,oe:i,p:s,L:a}=Mo.o;for(const e of n){const n=r[e]||t[e]||[];for(const r of n){const n=o[e][r];if(!n)continue;const{onAccept:i,onReject:s}=n;!n.Se&&Eo(t[e],r)?(n.Se=!0,Lo(i)&&i()):n.Se&&!Eo(t[e],r)&&(n.Se=!1,Lo(s)&&s())}}if(!Mo.t.manageScriptTags)return;const c=i,l=e||s.categories||[],u=(e,n)=>{if(n>=e.length)return;const o=i[n];if(o.xe)return u(e,n+1);const s=o.Me,c=o.De,p=o.Te,d=Eo(l,c),h=!!p&&Eo(t[c],p);if(!p&&!o.ke&&d||!p&&o.ke&&!d&&Eo(a,c)||p&&!o.ke&&h||p&&o.ke&&!h&&Eo(r[c]||[],p)){o.xe=!0;const t=zo(s,"type",!0);Uo(s,"type",!!t),Uo(s,_o);let r=zo(s,"src",!0);r&&Uo(s,"src",!0);const i=Fo("script");i.textContent=s.innerHTML;for(const{nodeName:e}of s.attributes)jo(i,e,s[e]||zo(s,e));t&&(i.type=t),r?i.src=r:r=s.src;const a=!!r&&(!t||["text/javascript","module"].includes(t));if(a&&(i.onload=i.onerror=()=>{u(e,++n)}),s.replaceWith(i),a)return}u(e,++n)};u(c,0)},pi="bottom",di="left",hi="center",fi="right",mi="inline",gi="wide",_i="pm--",yi=["middle","top",pi],vi=[di,hi,fi],bi={box:{Ee:[gi,mi],Ae:yi,Ne:vi,He:pi,Ve:fi},cloud:{Ee:[mi],Ae:yi,Ne:vi,He:pi,Ve:hi},bar:{Ee:[mi],Ae:yi.slice(1),Ne:[],He:pi,Ve:""}},ki={box:{Ee:[],Ae:[],Ne:[],He:"",Ve:""},bar:{Ee:[gi],Ae:[],Ne:[di,fi],He:"",Ve:di}},Si=e=>{const t=Mo.o.i.guiOptions,r=t&&t.consentModal,n=t&&t.preferencesModal;0===e&&wi(Mo.ne.he,bi,r,"cm--","box","cm"),1===e&&wi(Mo.ne.we,ki,n,_i,"box","pm")},wi=(e,t,r,n,o,i)=>{e.className=i;const s=r&&r.layout,a=r&&r.position,c=r&&r.flipButtons,l=!r||!1!==r.equalWeightButtons,u=s&&s.split(" ")||[],p=u[0],d=u[1],h=p in t?p:o,f=t[h],m=Eo(f.Ee,d)&&d,g=a&&a.split(" ")||[],_=g[0],y=n===_i?g[0]:g[1],v=Eo(f.Ae,_)?_:f.He,b=Eo(f.Ne,y)?y:f.Ve,k=t=>{t&&$o(e,n+t)};k(h),k(m),k(v),k(b),c&&k("flip");const S=i+"__btn--secondary";if("cm"===i){const{Ie:e,Le:t}=Mo.ne;e&&(l?Vo(e,S):$o(e,S)),t&&(l?Vo(t,S):$o(t,S))}else{const{je:e}=Mo.ne;e&&(l?Vo(e,S):$o(e,S))}},Ii=(e,t)=>{const r=Mo.o,n=Mo.ne,{hide:o,hidePreferences:i,acceptCategory:s}=e,a=e=>{s(e),i(),o()},c=r.u&&r.u.preferencesModal;if(!c)return;const l=c.title,u=c.closeIconLabel,p=c.acceptAllBtn,d=c.acceptNecessaryBtn,h=c.savePreferencesBtn,f=c.sections||[],m=p||d||h;if(n.Fe)n.Pe=Fo(yo),Ho(n.Pe,"body");else{n.Fe=Fo(yo),$o(n.Fe,"pm-wrapper");const e=Fo("div");$o(e,"pm-overlay"),Bo(n.Fe,e),Yo(e,So,i),n.we=Fo(yo),$o(n.we,"pm"),jo(n.we,"role","dialog"),jo(n.we,bo,!0),jo(n.we,"aria-modal",!0),jo(n.we,"aria-labelledby","pm__title"),Yo(n.ye,"keydown",(e=>{27===e.keyCode&&i()}),!0),n.Oe=Fo(yo),Ho(n.Oe,"header"),n.Re=Fo("h2"),Ho(n.Re,"title"),n.Re.id="pm__title",n.Be=Fo(vo),Ho(n.Be,"close-btn"),jo(n.Be,"aria-label",c.closeIconLabel||""),Yo(n.Be,So,i),n.Ge=Fo("span"),n.Ge.innerHTML=oi(),Bo(n.Be,n.Ge),n.Je=Fo(yo),Ho(n.Je,"body"),n.Ue=Fo(yo),Ho(n.Ue,"footer");var g=Fo(yo);$o(g,"btns");var _=Fo(yo),y=Fo(yo);Ho(_,ko),Ho(y,ko),Bo(n.Ue,_),Bo(n.Ue,y),Bo(n.Oe,n.Re),Bo(n.Oe,n.Be),n.ve=Fo(yo),jo(n.ve,"tabIndex",-1),Bo(n.we,n.ve),Bo(n.we,n.Oe),Bo(n.we,n.Je),m&&Bo(n.we,n.Ue),Bo(n.Fe,n.we)}let v;l&&(n.Re.innerHTML=l,u&&jo(n.Be,"aria-label",u)),f.forEach(((e,t)=>{const o=e.title,i=e.description,s=e.linkedCategory,a=s&&r.P[s],l=e.cookieTable,u=l&&l.body,p=l&&l.caption,d=u&&u.length>0,h=!!a,f=h&&r.X[s],m=Ro(f)&&No(f)||[],g=h&&(!!i||!!d||No(f).length>0);var _=Fo(yo);if(Ho(_,"section"),g||i){var y=Fo(yo);Ho(y,"section-desc-wrapper")}let b=m.length;if(g&&b>0){const e=Fo(yo);Ho(e,"section-services");for(const t of m){const r=f[t],n=r&&r.label||t,o=Fo(yo),i=Fo(yo),c=Fo(yo),l=Fo(yo);Ho(o,"service"),Ho(l,"service-title"),Ho(i,"service-header"),Ho(c,"service-icon");const u=Ci(n,t,a,!0,s);l.innerHTML=n,Bo(i,c),Bo(i,l),Bo(o,i),Bo(o,u),Bo(e,o)}Bo(y,e)}if(o){var k=Fo(yo),S=Fo(h?vo:yo);if(Ho(k,"section-title-wrapper"),Ho(S,"section-title"),S.innerHTML=o,Bo(k,S),h){const e=Fo("span");e.innerHTML=oi(2,3.5),Ho(e,"section-arrow"),Bo(k,e),_.className+="--toggle";const t=Ci(o,s,a);let r=c.serviceCounterLabel;if(b>0&&To(r)){let e=Fo("span");Ho(e,"badge"),Ho(e,"service-counter"),jo(e,bo,!0),jo(e,"data-servicecounter",b),r&&(r=r.split("|"),r=r.length>1&&b>1?r[1]:r[0],jo(e,"data-counterlabel",r)),e.innerHTML=b+(r?" "+r:""),Bo(S,e)}if(g){Ho(_,"section--expandable");var w=s+"-desc";jo(S,"aria-expanded",!1),jo(S,"aria-controls",w)}Bo(k,t)}else jo(S,"role","heading"),jo(S,"aria-level","3");Bo(_,k)}if(i){var I=Fo("p");Ho(I,"section-desc"),I.innerHTML=i,Bo(y,I)}if(g&&(jo(y,bo,"true"),y.id=w,((e,t,r)=>{Yo(S,So,(()=>{t.classList.contains("is-expanded")?(Vo(t,"is-expanded"),jo(r,"aria-expanded","false"),jo(e,bo,"true")):($o(t,"is-expanded"),jo(r,"aria-expanded","true"),jo(e,bo,"false"))}))})(y,_,S),d)){const e=Fo("table"),r=Fo("thead"),o=Fo("tbody");if(p){const t=Fo("caption");Ho(t,"table-caption"),t.innerHTML=p,e.appendChild(t)}Ho(e,"section-table"),Ho(r,"table-head"),Ho(o,"table-body");const i=l.headers,s=No(i),a=n.$e.createDocumentFragment(),c=Fo("tr");for(const e of s){const r=i[e],n=Fo("th");n.id="cc__row-"+r+t,jo(n,"scope","col"),Ho(n,"table-th"),n.innerHTML=r,Bo(a,n)}Bo(c,a),Bo(r,c);const d=n.$e.createDocumentFragment();for(const e of u){const r=Fo("tr");Ho(r,"table-tr");for(const n of s){const o=i[n],s=e[n],a=Fo("td"),c=Fo(yo);Ho(a,"table-td"),jo(a,"data-column",o),jo(a,"headers","cc__row-"+o+t),c.insertAdjacentHTML("beforeend",s),Bo(a,c),Bo(r,a)}Bo(d,r)}Bo(o,d),Bo(e,r),Bo(e,o),Bo(y,e)}(g||i)&&Bo(_,y);const C=n.Pe||n.Je;h?(v||(v=Fo(yo),Ho(v,"section-toggles")),v.appendChild(_)):v=null,Bo(C,v||_)})),p&&(n.ze||(n.ze=Fo(vo),Ho(n.ze,"btn"),jo(n.ze,wo,"all"),Bo(_,n.ze),Yo(n.ze,So,(()=>a("all")))),n.ze.innerHTML=p),d&&(n.je||(n.je=Fo(vo),Ho(n.je,"btn"),jo(n.je,wo,"necessary"),Bo(_,n.je),Yo(n.je,So,(()=>a([])))),n.je.innerHTML=d),h&&(n.qe||(n.qe=Fo(vo),Ho(n.qe,"btn"),Ho(n.qe,"btn--secondary"),jo(n.qe,wo,"save"),Bo(y,n.qe),Yo(n.qe,So,(()=>a()))),n.qe.innerHTML=h),n.Pe&&(n.we.replaceChild(n.Pe,n.Je),n.Je=n.Pe),Si(1),r.N||(r.N=!0,ci(Mo.re.ue,Co,n.we),t(e),Bo(n.Ce,n.Fe),ii(n.we),setTimeout((()=>$o(n.Fe,"cc--anim")),100)),ai(2)};function Ci(e,t,r,n,o){const i=Mo.o,s=Mo.ne,a=Fo("label"),c=Fo("input"),l=Fo("span"),u=Fo("span"),p=Fo("span"),d=Fo("span"),h=Fo("span");if(d.innerHTML=oi(1,3),h.innerHTML=oi(0,3),c.type="checkbox",$o(a,"section__toggle-wrapper"),$o(c,"section__toggle"),$o(d,"toggle__icon-on"),$o(h,"toggle__icon-off"),$o(l,"toggle__icon"),$o(u,"toggle__icon-circle"),$o(p,"toggle__label"),jo(l,bo,"true"),n?($o(a,"toggle-service"),jo(c,_o,o),s.se[o][t]=c):s.ae[t]=c,n?(e=>{Yo(c,"change",(()=>{const t=s.se[e],r=s.ae[e];i.Z[e]=[];for(let r in t){const n=t[r];n.checked&&i.Z[e].push(n.value)}r.checked=i.Z[e].length>0}))})(o):(e=>{Yo(c,So,(()=>{const t=s.se[e],r=c.checked;i.Z[e]=[];for(let n in t)t[n].checked=r,r&&i.Z[e].push(n)}))})(t),c.value=t,p.textContent=e.replace(/<.*>.*<\/.*>/gm,""),Bo(u,h),Bo(u,d),Bo(l,u),i.D)(r.readOnly||r.enabled)&&(c.checked=!0);else if(n){const e=i.Y[o];c.checked=r.readOnly||Eo(e,t)}else Eo(i.R,t)&&(c.checked=!0);return r.readOnly&&(c.disabled=!0),Bo(a,c),Bo(a,l),Bo(a,p),a}const Mi=()=>{const e=Fo("span");return Mo.ne.Ke||(Mo.ne.Ke=e),e},xi=(e,t)=>{const r=Mo.o,n=Mo.ne,{hide:o,showPreferences:i,acceptCategory:s}=e,a=r.u&&r.u.consentModal;if(!a)return;const c=a.acceptAllBtn,l=a.acceptNecessaryBtn,u=a.showPreferencesBtn,p=a.closeIconLabel,d=a.footer,h=a.label,f=a.title,m=e=>{o(),s(e)};if(!n.Qe){n.Qe=Fo(yo),n.he=Fo(yo),n.We=Fo(yo),n.Xe=Fo(yo),n.Ye=Fo(yo),$o(n.Qe,"cm-wrapper"),$o(n.he,"cm"),Wo(n.We,"body"),Wo(n.Xe,"texts"),Wo(n.Ye,"btns"),jo(n.he,"role","dialog"),jo(n.he,"aria-modal","true"),jo(n.he,bo,"false"),jo(n.he,"aria-describedby","cm__desc"),h?jo(n.he,"aria-label",h):f&&jo(n.he,"aria-labelledby","cm__title");const e="box",t=r.i.guiOptions,o=t&&t.consentModal,i=(o&&o.layout||e).split(" ")[0]===e;f&&p&&i&&(n.Le||(n.Le=Fo(vo),n.Le.innerHTML=oi(),Wo(n.Le,"btn"),Wo(n.Le,"btn--close"),Yo(n.Le,So,(()=>{m([])})),Bo(n.We,n.Le)),jo(n.Le,"aria-label",p)),Bo(n.We,n.Xe),(c||l||u)&&Bo(n.We,n.Ye),n.be=Fo(yo),jo(n.be,"tabIndex",-1),Bo(n.he,n.be),Bo(n.he,n.We),Bo(n.Qe,n.he)}f&&(n.Ze||(n.Ze=Fo("h2"),n.Ze.className=n.Ze.id="cm__title",Bo(n.Xe,n.Ze)),n.Ze.innerHTML=f);let g=a.description;if(g&&(r.V&&(g=g.replace("{{revisionMessage}}",r.I?"":a.revisionMessage||"")),n.et||(n.et=Fo("p"),n.et.className=n.et.id="cm__desc",Bo(n.Xe,n.et)),n.et.innerHTML=g),c&&(n.tt||(n.tt=Fo(vo),Bo(n.tt,Mi()),Wo(n.tt,"btn"),jo(n.tt,wo,"all"),Yo(n.tt,So,(()=>{m("all")}))),n.tt.firstElementChild.innerHTML=c),l&&(n.Ie||(n.Ie=Fo(vo),Bo(n.Ie,Mi()),Wo(n.Ie,"btn"),jo(n.Ie,wo,"necessary"),Yo(n.Ie,So,(()=>{m([])}))),n.Ie.firstElementChild.innerHTML=l),u&&(n.ot||(n.ot=Fo(vo),Bo(n.ot,Mi()),Wo(n.ot,"btn"),Wo(n.ot,"btn--secondary"),jo(n.ot,wo,"show"),Yo(n.ot,"mouseenter",(()=>{r.N||Ii(e,t)})),Yo(n.ot,So,i)),n.ot.firstElementChild.innerHTML=u),n.nt||(n.nt=Fo(yo),Wo(n.nt,ko),c&&Bo(n.nt,n.tt),l&&Bo(n.nt,n.Ie),(c||l)&&Bo(n.We,n.nt),Bo(n.Ye,n.nt)),n.ot&&!n.st&&(n.st=Fo(yo),n.Ie&&n.tt?(Wo(n.st,ko),Bo(n.st,n.ot),Bo(n.Ye,n.st)):(Bo(n.nt,n.ot),Wo(n.nt,ko+"--uneven"))),d){if(!n.ct){let e=Fo(yo),t=Fo(yo);n.ct=Fo(yo),Wo(e,"footer"),Wo(t,"links"),Wo(n.ct,"link-group"),Bo(t,n.ct),Bo(e,t),Bo(n.he,e)}n.ct.innerHTML=d}Si(0),r.T||(r.T=!0,ci(Mo.re.ue,Io,n.he),t(e),Bo(n.Ce,n.Qe),ii(n.he),setTimeout((()=>$o(n.Qe,"cc--anim")),100)),ai(1),Ko(n.We,e,Ii,t)},Ei=e=>{if(!To(e))return null;if(e in Mo.o._)return e;let t=e.slice(0,2);return t in Mo.o._?t:null},Oi=()=>Mo.o.l||Mo.o.i.language.default,Ti=e=>{e&&(Mo.o.l=e)},Ri=()=>{const e=Mo.ne;if(e.Ce)return;e.Ce=Fo(yo),e.Ce.id="cc-main",e.Ce.setAttribute("data-nosnippet",""),(()=>{let e=Mo.o.i.language.rtl,t=Mo.ne.Ce;e&&t&&(Oo(e)||(e=[e]),Eo(e,Mo.o.l)?$o(t,"cc--rtl"):Vo(t,"cc--rtl"))})();let t=Mo.o.i.root;t&&To(t)&&(t=document.querySelector(t)),(t||e.$e.body).appendChild(e.Ce)},Li=(e,t)=>{if(t instanceof RegExp)return e.filter((e=>t.test(e)));{const r=xo(e,t);return r>-1?[e[r]]:[]}},Ni=e=>{const{hostname:t,protocol:r}=location,{name:n,path:o,domain:i,sameSite:s,useLocalStorage:a}=Mo.t.cookie,c=864e5*(()=>{const e=Mo.t.cookie.expiresAfterDays;return Lo(e)?e(Mo.o.F):e})(),l=new Date;l.setTime(l.getTime()+c),Mo.o.p.expirationTime=l.getTime();const u=JSON.stringify(Mo.o.p);let p=n+"="+encodeURIComponent(u)+(0!==c?"; expires="+l.toUTCString():"")+"; Path="+o+"; SameSite="+s;Eo(t,".")&&(p+="; Domain="+i),"https:"===r&&(p+="; Secure"),a?((e,t)=>{li((()=>localStorage.setItem(e,t)))})(n,u):document.cookie=p,Mo.o.p},Di=(e,t,r)=>{if(0===e.length)return;const n=r||Mo.t.cookie.domain,o=t||Mo.t.cookie.path,i="www."===n.slice(0,4),s=i&&n.substring(4),a=(e,t)=>{document.cookie=e+"=; path="+o+(t?"; domain=."+t:"")+"; expires=Thu, 01 Jan 1970 00:00:01 GMT;"};for(const t of e)a(t),a(t,n),i&&a(t,s)},Ai=(e,t)=>{const r=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return r?r.pop():""},qi=e=>{const t=Mo.o.D?[]:Mo.o.R;return Eo(t,e)},Pi=(e,t)=>{const r=Mo.o.D?[]:Mo.o.Y[t]||[];return Eo(r,e)},Fi=e=>{const{ne:t,o:r}=Mo;if(!r.k){if(!r.T){if(!e)return;xi(ji,Ri)}r.k=!0,r.U=Ao(),r.v&&ri(!0),ei(t.he,1),$o(t.ye,fo),jo(t.he,bo,"false"),setTimeout((()=>{Zo(Mo.ne.be)}),100),ci(Mo.re.fe,Io)}};var ji={show:Fi,hide:()=>{const{ne:e,o:t,re:r}=Mo;t.k&&(t.k=!1,t.v&&ri(),Zo(e.Ke,!0),Vo(e.ye,fo),jo(e.he,bo,"true"),Zo(t.U),t.U=null,ci(r._e,Io))},showPreferences:()=>{const e=Mo.o;e.A||(e.N||Ii(ji,Ri),e.A=!0,e.k?e.$=Ao():e.U=Ao(),ei(Mo.ne.we,2),$o(Mo.ne.ye,mo),jo(Mo.ne.we,bo,"false"),setTimeout((()=>{Zo(Mo.ne.ve)}),100),ci(Mo.re.fe,Co))},hidePreferences:()=>{const e=Mo.o;e.A&&(e.A=!1,(()=>{const e=Ui(),t=Mo.o.P,r=Mo.ne.ae,n=Mo.ne.se,o=e=>Eo(Mo.o.G,e);for(const i in r){const s=!!t[i].readOnly;r[i].checked=s||(e?qi(i):o(i));for(const t in n[i])n[i][t].checked=s||(e?Pi(t,i):o(i))}})(),Zo(Mo.ne.Ge,!0),Vo(Mo.ne.ye,mo),jo(Mo.ne.we,bo,"true"),e.k?(Zo(e.$),e.$=null):(Zo(e.U),e.U=null),ci(Mo.re._e,Co))},acceptCategory:(e,t=[])=>{((e,t)=>{const{O:r,R:n,B:o,N:i,Z:s,G:a,X:c}=Mo.o;let l=[];if(e){Oo(e)?l.push(...e):To(e)&&(l="all"===e?r:[e]);for(const e of r)s[e]=Eo(l,e)?No(c[e]):[]}else l=[...n,...a],i&&(l=(()=>{const e=Mo.ne.ae;if(!e)return[];let t=[];for(let r in e)e[r].checked&&t.push(r);return t})());l=l.filter((e=>!Eo(r,e)||!Eo(t,e))),l.push(...o),Qo(l)})(e,t),(()=>{const e=Mo.o,{Z:t,B:r,Y:n,X:o,O:i}=e,s=i;e.te=Go(n);for(const i of s){const s=o[i],a=No(s),c=t[i]&&t[i].length>0,l=Eo(r,i);if(0!==a.length){if(n[i]=[],l)n[i].push(...a);else if(c){const e=t[i];n[i].push(...e)}else n[i]=e.Z[i];n[i]=Do(n[i])}}})(),(()=>{const e=Mo.o;e.L=Mo.t.mode===ho&&e.D?Xo(e.G,e.R):Xo(e.R,e.p.categories);let t=e.L.length>0,r=!1;for(const t of e.O)e.ee[t]=Xo(e.Y[t],e.te[t]),e.ee[t].length>0&&(r=!0);const n=Mo.ne.ae;for(const t in n)n[t].checked=Eo(e.R,t);for(const t of e.O){const r=Mo.ne.se[t],n=e.Y[t];for(const e in r)r[e].checked=Eo(n,e)}e.C||(e.C=new Date),e.M||(e.M=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))),e.p={categories:Go(e.R),revision:Mo.t.revision,data:e.h,consentTimestamp:e.C.toISOString(),consentId:e.M,services:Go(e.Y)};let o=!1;const i=t||r;(e.D||i)&&(e.D&&(e.D=!1,o=!0),e.S=e.S?new Date:e.C,e.p.lastConsentTimestamp=e.S.toISOString(),Ni(),Mo.t.autoClearCookies&&(o||i)&&(e=>{const t=Mo.o,r=(()=>{const e=document.cookie.split(/;\s*/),t=[];for(const r of e){let e=r.split("=")[0];t.push(e)}return t})(),n=(e=>{const t=Mo.o;return(e?t.O:t.L).filter((e=>{const r=t.P[e];return!!r&&!r.readOnly&&!!r.autoClear}))})(e);for(const e in t.ee)for(const n of t.ee[e]){const o=t.X[e][n].cookies;if(!Eo(t.Y[e],n)&&o)for(const e of o){const t=Li(r,e.name);Di(t,e.path,e.domain)}}for(const o of n){const n=t.P[o].autoClear,i=n&&n.cookies||[],s=Eo(t.L,o),a=!Eo(t.R,o),c=s&&a;if(e?a:c){n.reloadPage&&c&&(t.j=!0);for(const e of i){const t=Li(r,e.name);Di(t,e.path,e.domain)}}}})(o),ui()),o&&(ci(Mo.re.ie),ci(Mo.re.le),Mo.t.mode===po)||(i&&ci(Mo.re.de),e.j&&(e.j=!1,location.reload()))})()}};const Ui=()=>!Mo.o.D,zi=async e=>{const{o:t,t:r,re:n}=Mo,o=window;if(!o._ccRun){if(o._ccRun=!0,(e=>{const{ne:t,t:r,o:n}=Mo,o=r,i=n,{cookie:s}=o,a=Mo.ce,c=e.cookie,l=e.categories,u=No(l)||[],p=navigator,d=document;t.$e=d,t.ye=d.documentElement,s.domain=location.hostname,i.i=e,i.P=l,i.O=u,i._=e.language.translations,i.v=!!e.disablePageInteraction,a.ie=e.onFirstConsent,a.le=e.onConsent,a.de=e.onChange,a._e=e.onModalHide,a.fe=e.onModalShow,a.ue=e.onModalReady;const{mode:h,autoShow:f,lazyHtmlGeneration:m,autoClearCookies:g,revision:_,manageScriptTags:y,hideFromBots:v}=e;h===ho&&(o.mode=h),"boolean"==typeof g&&(o.autoClearCookies=g),"boolean"==typeof y&&(o.manageScriptTags=y),"number"==typeof _&&_>=0&&(o.revision=_,i.V=!0),"boolean"==typeof f&&(o.autoShow=f),"boolean"==typeof m&&(o.lazyHtmlGeneration=m),!1===v&&(o.hideFromBots=!1),!0===o.hideFromBots&&p&&(i.J=p.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(p.userAgent)||p.webdriver),Ro(c)&&(o.cookie={...s,...c}),o.autoClearCookies,i.V,o.manageScriptTags,(e=>{const{P:t,X:r,Y:n,Z:o,B:i}=Mo.o;for(let s of e){const e=t[s],a=e.services||{},c=Ro(a)&&No(a)||[];r[s]={},n[s]=[],o[s]=[],e.readOnly&&(i.push(s),n[s]=c),Mo.ne.se[s]={};for(let e of c){const t=a[e];t.Se=!1,r[s][e]=t}}})(u),(()=>{if(!Mo.t.manageScriptTags)return;const e=Mo.o,t=Po(document,"script["+_o+"]");for(const r of t){let t=zo(r,_o),n=r.dataset.service||"",o=!1;if(t&&"!"===t.charAt(0)&&(t=t.slice(1),o=!0),"!"===n.charAt(0)&&(n=n.slice(1),o=!0),Eo(e.O,t)&&(e.oe.push({Me:r,xe:!1,ke:o,De:t,Te:n}),n)){const r=e.X[t];r[n]||(r[n]={Se:!1})}}})(),Ti((()=>{const e=Mo.o.i.language.autoDetect;if(e){const t={browser:navigator.language,document:document.documentElement.lang},r=Ei(t[e]);if(r)return r}return Oi()})())})(e),t.J)return;(()=>{const e=Mo.o,t=Mo.t,r=(()=>{const e=Mo.t.cookie.name,t=Mo.t.cookie.useLocalStorage;return((e,t)=>{let r;return r=li((()=>JSON.parse(t?e:decodeURIComponent(e))),!0)||{},r})(t?(r=e,li((()=>localStorage.getItem(r)))||""):Ai(e),t);var r})(),{categories:n,services:o,consentId:i,consentTimestamp:s,lastConsentTimestamp:a,data:c,revision:l}=r,u=Oo(n);e.p=r,e.M=i;const p=!!i&&To(i);e.C=s,e.C&&(e.C=new Date(s)),e.S=a,e.S&&(e.S=new Date(a)),e.h=void 0!==c?c:null,e.V&&p&&l!==t.revision&&(e.I=!1),e.D=!(p&&e.I&&e.C&&e.S&&u),t.cookie.useLocalStorage&&!e.D&&(e.D=(new Date).getTime()>(r.expirationTime||0),e.D&&(e=>{li((()=>localStorage.removeItem(e)))})(t.cookie.name)),e.D,(()=>{const e=Mo.o;for(const t of e.O){const r=e.P[t];if(r.readOnly||r.enabled){e.G.push(t);const r=e.X[t]||{};for(let n in r)e.Z[t].push(n),e.i.mode===ho&&e.Y[t].push(n)}}})(),e.D?t.mode===ho&&(e.R=[...e.G]):(e.Z={...e.Y},e.Y={...e.Y,...o},Qo([...e.B,...n]))})();const s=Ui();if(!await(async e=>{const t=Mo.o;let r=Ei(e)?e:Oi(),n=t._[r];return To(n)?n=await(async e=>{try{const t=await fetch(e);return await t.json()}catch(e){return console.error(e),!1}})(n):Lo(n)&&(n=await n()),!!n&&(t.u=n,Ti(r),!0)})())return!1;if(Ko(null,i=ji,Ii,Ri),Mo.o.D&&xi(i,Ri),Mo.t.lazyHtmlGeneration||Ii(i,Ri),r.autoShow&&!s&&Fi(!0),s)return ui(),ci(n.le);r.mode===ho&&ui(t.G)}var i},Bi=ro(),$i=e=>({en:{consentModal:{title:"We use cookies",description:"Our website uses essential cookies to ensure its proper operation and tracking cookies to understand how you interact with it. Tracking will be enabled only upon your explicit consent.",acceptAllBtn:"Accept all",acceptNecessaryBtn:"Reject all",showPreferencesBtn:"Manage preferences"},preferencesModal:{title:"Consent preferences center",acceptAllBtn:"Accept all",acceptNecessaryBtn:"Reject all",savePreferencesBtn:"Accept current selection",closeIconLabel:"Close modal",sections:[{title:"Tracking technologies and your consent",description:"Cookies are small files that websites place on users' devices to collect data and enhance user experience. They can remember preferences, and track browsing habits. You can modify your preferences regarding cookies and tracking at any time."},{title:"Strictly necessary cookies",description:"These cookies are essential for the proper functioning of the website and cannot be disabled.",linkedCategory:"necessary"},{title:"Analytics cookies",description:"These cookies collect information about how you use our website. All of the data is anonymized and cannot be used to identify you.",linkedCategory:"analytics"},{title:"More information",description:`For any queries in relation to our policy on cookies and your choices, please <a href="mailto:${e?"hello@clearly.help":"hello@rozmova.me"}">contact us</a>`}]}},pl:{consentModal:{title:"Używamy plików cookie",description:"Nasza strona internetowa używa niezbędnych plików cookie do jej prawidłowego działania oraz plików śledzących, aby zrozumieć, jak z niej korzystasz. Śledzenie zostanie włączone tylko po Twojej wyraźnej zgodzie.",acceptAllBtn:"Akceptuj wszystkie",acceptNecessaryBtn:"Odrzuć wszystkie",showPreferencesBtn:"Zarządzaj ustawieniami"},preferencesModal:{title:"Centrum preferencji zgody",acceptAllBtn:"Akceptuj wszystkie",acceptNecessaryBtn:"Odrzuć wszystkie",savePreferencesBtn:"Akceptuj bieżący wybór",closeIconLabel:"Zamknij okno",sections:[{title:"Technologie śledzenia i Twoja zgoda",description:"Pliki cookie to małe pliki, które strony internetowe umieszczają na urządzeniach użytkowników, aby zbierać dane i poprawiać doświadczenie użytkownika. Mogą zapamiętywać preferencje i śledzić nawyki przeglądania. Możesz zmienić swoje preferencje dotyczące plików cookie i śledzenia w dowolnym momencie."},{title:"Niezbędne pliki cookie",description:"Te pliki cookie są niezbędne do prawidłowego funkcjonowania strony internetowej i nie można ich wyłączyć.",linkedCategory:"necessary"},{title:"Pliki cookie analityczne",description:"Te pliki cookie zbierają informacje o tym, jak korzystasz z naszej strony internetowej. Wszystkie dane są anonimizowane i nie mogą zostać wykorzystane do Twojej identyfikacji.",linkedCategory:"analytics"},{title:"Więcej informacji",description:`W przypadku pytań dotyczących naszej polityki plików cookie i Twoich wyborów, prosimy <a href="mailto:${e?"hello@clearly.help":"hello@rozmova.me"}">skontaktować się z nami</a>.`}]}},es:{consentModal:{title:"Usamos cookies",description:"Nuestro sitio web utiliza cookies esenciales para garantizar su correcto funcionamiento y cookies de seguimiento para comprender cómo interactúas con él. El seguimiento solo se habilitará con tu consentimiento explícito.",acceptAllBtn:"Aceptar todas",acceptNecessaryBtn:"Rechazar todas",showPreferencesBtn:"Gestionar preferencias"},preferencesModal:{title:"Centro de preferencias de consentimiento",acceptAllBtn:"Aceptar todas",acceptNecessaryBtn:"Rechazar todas",savePreferencesBtn:"Aceptar selección actual",closeIconLabel:"Cerrar ventana",sections:[{title:"Tecnologías de seguimiento y tu consentimiento",description:"Las cookies son pequeños archivos que los sitios web colocan en los dispositivos de los usuarios para recopilar datos y mejorar la experiencia del usuario. Pueden recordar preferencias y rastrear hábitos de navegación. Puedes modificar tus preferencias sobre cookies y seguimiento en cualquier momento."},{title:"Cookies estrictamente necesarias",description:"Estas cookies son esenciales para el funcionamiento adecuado del sitio web y no se pueden desactivar.",linkedCategory:"necessary"},{title:"Cookies de análisis",description:"Estas cookies recopilan información sobre cómo usas nuestro sitio web. Todos los datos están anonimizados y no pueden utilizarse para identificarte.",linkedCategory:"analytics"},{title:"Más información",description:`Para cualquier consulta sobre nuestra política de cookies y tus elecciones, por favor <a href="mailto:${e?"hello@clearly.help":"hello@rozmova.me"}">contáctanos</a>.`}]}},uk:{consentModal:{title:"Ми використовуємо файли cookie",description:"Наш вебсайт використовує необхідні файли cookie для забезпечення його належної роботи, а також файли відстеження, щоб зрозуміти, як ви з ним взаємодієте. Відстеження буде увімкнено лише після вашої явної згоди.",acceptAllBtn:"Прийняти всі",acceptNecessaryBtn:"Відхилити всі",showPreferencesBtn:"Керувати налаштуваннями"},preferencesModal:{title:"Центр налаштувань згоди",acceptAllBtn:"Прийняти всі",acceptNecessaryBtn:"Відхилити всі",savePreferencesBtn:"Прийняти поточний вибір",closeIconLabel:"Закрити вікно",sections:[{title:"Технології відстеження та ваша згода",description:"Файли cookie – це невеликі файли, які вебсайти зберігають на пристроях користувачів для збору даних і покращення взаємодії. Вони можуть запам'ятовувати вподобання та відстежувати поведінку перегляду. Ви можете змінити свої налаштування щодо файлів cookie та відстеження у будь-який час."},{title:"Строго необхідні файли cookie",description:"Ці файли cookie є необхідними для належного функціонування вебсайту і їх не можна вимкнути.",linkedCategory:"necessary"},{title:"Аналітичні файли cookie",description:"Ці файли cookie збирають інформацію про те, як ви використовуєте наш вебсайт. Усі дані анонімізовані і не можуть бути використані для ідентифікації вас.",linkedCategory:"analytics"},{title:"Додаткова інформація",description:`Якщо у вас є запитання щодо нашої політики використання файлів cookie та ваших налаштувань, будь ласка, <a href="mailto:${e?"hello@clearly.help":"hello@rozmova.me"}">зв'яжіться з нами</a>.`}]}}}),Wi=(e,t)=>{const r=document.createElement("link");r.rel="stylesheet",r.href="https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@3.0.1/dist/cookieconsent.css",document.head.appendChild(r);const n=document.createElement("style");n.innerHTML='\n :root {\n /** Change font **/\n --cc-font-family: "Inter", sans-serif;\n\n /** Change button primary color to black **/\n --cc-btn-primary-bg: #4C6EF5;\n --cc-btn-primary-border-color: #4C6EF5;\n }\n',document.head.appendChild(n),zi(((e,t)=>({language:{default:e,translations:$i(t)},cookie:{domain:Bi},guiOptions:{consentModal:{layout:"box wide",position:"bottom left"},preferencesModal:{layout:"bar"}},categories:{necessary:{enabled:!0,readOnly:!0},analytics:{enabled:!0,readOnly:!1,services:{ga:{label:"Google Analytics",onAccept:()=>{gtag("consent","update",{ad_storage:"granted",ad_user_data:"granted",ad_personalization:"granted",analytics_storage:"granted"})},onReject:()=>{gtag("consent","update",{ad_storage:"granted",ad_user_data:"granted",ad_personalization:"granted",analytics_storage:"granted"})}}}}}}))(e,t))};var Hi=new class{initialized=!1;locale="uk";platform="web";dataLayer=[];init({locale:e,platform:t,isClearly:r}={}){if(this.initialized)return;!function(){const e=document.createElement("script");e.type="text/javascript",e.text='\n (function(){\n var analytics = window.analytics = window.analytics || [];\n if (!analytics.initialize) \n if (analytics.invoked) \n window.console && console.error && console.error("Snippet included twice.");\n else {\n analytics.invoked = !0;\n analytics.methods = ["trackSubmit", "trackClick", "trackLink", "trackForm", "pageview", "identify", "reset", "group", "track", "ready", "alias", "debug", "page", "once", "off", "on", "addSourceMiddleware", "addIntegrationMiddleware", "setAnonymousId", "addDestinationMiddleware"];\n analytics.factory = function(e) {\n return function() {\n var t = Array.prototype.slice.call(arguments);\n t.unshift(e);\n analytics.push(t);\n return analytics;\n }\n };\n for (var e = 0; e < analytics.methods.length; e++) {\n var key = analytics.methods[e];\n analytics[key] = analytics.factory(key);\n }\n analytics.load = function(key, e) {\n var t = document.createElement("script");\n t.type = "text/javascript";\n t.async = !0;\n t.src = "https://cdp-eu.customer.io/v1/analytics-js/snippet/" + key + "/analytics.min.js";\n var n = document.getElementsByTagName("script")[0];\n n.parentNode.insertBefore(t, n);\n analytics._writeKey = key;\n analytics._loadOptions = e;\n };\n analytics.SNIPPET_VERSION = "4.15.3";\n analytics.load("e6d009719c77519432c3");\n analytics.page();\n }\n })();\n ',document.head.appendChild(e)}(),(()=>{const e=Kn("geo");if(e){const t=ro();n.set("geo",e,{domain:t})}})();const o=uo();(navigator.userAgent||navigator.vendor||window.opera).match(/FBAN|FBAV|Instagram/i)&&((e,t)=>{const r=new URL(window.location.href);r.searchParams.set(e,t),window.history.replaceState({path:r.toString()},"",r.toString())})(Vn,o),this.locale=e||(e=>{const t=window.location.pathname.split("/")[1];return Qn.includes(t)?t:e?"en":"uk"})(r),t&&(this.platform=t),"web"===this.platform&&r&&Wi(this.locale,r),Hn.init("9d4cb3d213e5aee689ea01dd68ad65ad",{debug:!1,track_pageview:"url-with-path",persistence:"cookie"});const i=this.getCommonParams();for(Hn.register(i),gtag("config",Yn,{user_properties:i,server_container_url:Xn}),this.initialized=!0;this.dataLayer.length>0;){const e=this.dataLayer.shift();this.trackEvent(e?.eventName,e?.eventParams)}}trackEvent(e,t){if(!this.initialized)return void this.dataLayer.push({eventName:e,eventParams:t});const r=this.getCommonParams(),n={...r,...t};try{Hn.track(e,n)}catch(e){console.log(e)}try{const n={locale:r.locale,platform:r.platform,funnel_name:r.funnel_name,funnel_type:r.funnel_type,...t};gtag("event",e,n)}catch(e){console.log(e)}try{window.analytics.track(e,n)}catch(e){console.log(e)}}setUser(e,t){if(!this.initialized)return void console.warn("Analytics is not initialized.");const{email:r,name:n}=t;Hn.identify(e),Hn.people.set({$email:r,name:n}),gtag("config",Yn,{user_properties:this.getCommonParams(),user_id:e,server_container_url:Xn}),window.analytics.identify(e,t)}getCommonParams(){return{...(()=>{const e=n.get(Gn),t=e?JSON.parse(e):{},r=new URLSearchParams(window.location.search),o={...Jn.some((e=>r.get(e)&&r.get(e)!==t[e]))?Jn.reduce(((e,t)=>({...e,[t]:r.get(t)})),{}):Jn.reduce(((e,r)=>({...e,[r]:t[r]})),{}),referrer:oo()||t.referrer,search_query:io()||t.search_query,landing_page_url:t.landing_page_url||window.location.href};return n.set(Gn,JSON.stringify(o),{domain:ro()}),o})(),fbc:n.get("_fbc"),fbp:n.get("_fbp"),session_id:ao(),user_pseudo_id:so(),rid:uo(),funnel_name:n.get("funnel_name"),funnel_type:n.get("funnel_type"),language:window.navigator.language,platform:this.platform,url:window.location.href,device:eo(),browser:Zn(),system:to(),locale:this.locale,logged_in:!1}}setLocale(e){this.locale=e}resetUser(){this.initialized?(Hn.reset(),window.analytics.reset(),lo(),this.init()):console.warn("Analytics is not initialized.")}getUserId=uo};return Hi}));
|
|
31
|
+
function e(e,t,r,n){return new(r||(r=Promise))((function(t,o){function i(e){try{a(n.next(e))}catch(e){o(e)}}function s(e){try{a(n.throw(e))}catch(e){o(e)}}function a(e){var n;e.done?t(e.value):(n=e.value,n instanceof r?n:new r((function(e){e(n)}))).then(i,s)}a((n=n.apply(e,[])).next())}))}for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="undefined"==typeof Uint8Array?[]:new Uint8Array(256),n=0;n<64;n++)r[t.charCodeAt(n)]=n;var o=function(e){var r,n=new Uint8Array(e),o=n.length,i="";for(r=0;r<o;r+=3)i+=t[n[r]>>2],i+=t[(3&n[r])<<4|n[r+1]>>4],i+=t[(15&n[r+1])<<2|n[r+2]>>6],i+=t[63&n[r+2]];return o%3==2?i=i.substring(0,i.length-1)+"=":o%3==1&&(i=i.substring(0,i.length-2)+"=="),i};const i=new Map,s=new Map,a=self;a.onmessage=function(t){return e(this,0,void 0,(function*(){if(!("OffscreenCanvas"in globalThis))return a.postMessage({id:t.data.id});{const{id:r,bitmap:n,width:c,height:l,dataURLOptions:u}=t.data,p=function(t,r,n){return e(this,0,void 0,(function*(){const e=`${t}-${r}`;if("OffscreenCanvas"in globalThis){if(s.has(e))return s.get(e);const i=new OffscreenCanvas(t,r);i.getContext("2d");const a=yield i.convertToBlob(n),c=yield a.arrayBuffer(),l=o(c);return s.set(e,l),l}return""}))}(c,l,u),d=new OffscreenCanvas(c,l);d.getContext("2d").drawImage(n,0,0),n.close();const h=yield d.convertToBlob(u),f=h.type,m=yield h.arrayBuffer(),g=o(m);if(!i.has(r)&&(yield p)===g)return i.set(r,g),a.postMessage({id:r});if(i.get(r)===g)return a.postMessage({id:r});a.postMessage({id:r,type:f,base64:g,width:c,height:l}),i.set(r,g)}}))}}()},function(e){return Xe=Xe||function(e){var t=function(e){var t=e.toString().split("\n");t.pop(),t.shift();for(var r=t[0].search(/\S/),n=/(['"])__worker_loader_strict__(['"])/g,o=0,i=t.length;o<i;++o)t[o]=t[o].substring(r).replace(n,"$1use strict$2")+"\n";return t}(e),r=new Blob(t,{type:"application/javascript"});return URL.createObjectURL(r)}(Ye),new Worker(Xe,e)});class Ke{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};const{sampling:t="all",win:r,blockClass:n,blockSelector:o,recordCanvas:i,dataURLOptions:s}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,i&&"all"===t&&this.initCanvasMutationObserver(r,n,o),i&&"number"==typeof t&&this.initCanvasFPSObserver(t,r,n,o,{dataURLOptions:s})}initCanvasFPSObserver(e,t,r,n,o){const i=Ge(t,r,n,!0),s=new Map,a=new Qe;a.onmessage=e=>{const{id:t}=e.data;if(s.set(t,!1),!("base64"in e.data))return;const{base64:r,type:n,width:o,height:i}=e.data;this.mutationCb({id:t,type:ce["2D"],commands:[{property:"clearRect",args:[0,0,o,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:n}]},0,0]}]})};const c=1e3/e;let l,u=0;const p=e=>{u&&e-u<c||(u=e,(()=>{const e=[];return t.document.querySelectorAll("canvas").forEach((t=>{G(t,r,n,!0)||e.push(t)})),e})().forEach((e=>Fe(this,0,void 0,(function*(){var t;const r=this.mirror.getId(e);if(s.get(r))return;if(0===e.width||0===e.height)return;if(s.set(r,!0),["webgl","webgl2"].includes(e.__context)){const r=e.getContext(e.__context);!1===(null===(t=null==r?void 0:r.getContextAttributes())||void 0===t?void 0:t.preserveDrawingBuffer)&&r.clear(r.COLOR_BUFFER_BIT)}const n=yield createImageBitmap(e);a.postMessage({id:r,bitmap:n,width:e.width,height:e.height,dataURLOptions:o.dataURLOptions},[n])}))))),l=requestAnimationFrame(p)};l=requestAnimationFrame(p),this.resetObservers=()=>{i(),cancelAnimationFrame(l)}}initCanvasMutationObserver(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const n=Ge(e,t,r,!1),o=function(e,t,r,n){const o=[],i=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const s of i)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[s])continue;const i=z(t.CanvasRenderingContext2D.prototype,s,(function(o){return function(...i){return G(this.canvas,r,n,!0)||setTimeout((()=>{const r=He(i,t,this);e(this.canvas,{type:ce["2D"],property:s,args:r})}),0),o.apply(this,i)}}));o.push(i)}catch(r){const n=U(t.CanvasRenderingContext2D.prototype,s,{set(t){e(this.canvas,{type:ce["2D"],property:s,args:[t],setter:!0})}});o.push(n)}return()=>{o.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,r),i=function(e,t,r,n){const o=[];return o.push(...Je(t.WebGLRenderingContext.prototype,ce.WebGL,e,r,n,0,t)),void 0!==t.WebGL2RenderingContext&&o.push(...Je(t.WebGL2RenderingContext.prototype,ce.WebGL2,e,r,n,0,t)),()=>{o.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,r,this.mirror);this.resetObservers=()=>{n(),o(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{const r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)})),requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;const n=r.map((e=>{const t=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["type"]);return t})),{type:o}=r[0];this.mutationCb({id:t,type:o,commands:n}),this.pendingCanvasMutations.delete(e)}}class Ze{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new ee,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const r={id:t,styleIds:[]},n=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:a(e),index:t})))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class et{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){requestAnimationFrame((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const r=this.nodeMap.get(e);return r&&Array.from(r).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function tt(e){return Object.assign(Object.assign({},e),{timestamp:B()})}let rt,nt,ot,it=!1;const st=new c;function at(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:o="rr-block",blockSelector:i=null,ignoreClass:s="rr-ignore",ignoreSelector:a=null,maskTextClass:l="rr-mask",maskTextSelector:u=null,inlineStylesheet:p=!0,maskAllInputs:d,maskInputOptions:h,slimDOMOptions:f,maskInputFn:m,maskTextFn:g,hooks:_,packFn:y,sampling:v={},dataURLOptions:b={},mousemoveWait:k,recordDOM:S=!0,recordCanvas:w=!1,recordCrossOriginIframes:I=!1,recordAfter:C=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:M=!1,collectFonts:x=!1,inlineImages:E=!1,plugins:O,keepIframeSrcFn:T=()=>!1,ignoreCSSAttributes:R=new Set([]),errorHandler:L}=e;ve(L);const N=!I||window.parent===window;let D=!1;if(!N)try{window.parent.document&&(D=!1)}catch(e){D=!0}if(N&&!t)throw new Error("emit function is required");void 0!==k&&void 0===v.mousemove&&(v.mousemove=k),st.reset();const P=!0===d?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==h?h:{password:!0},F=!0===f||"all"===f?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===f,headMetaDescKeywords:"all"===f}:f||{};let j;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let U=0;const z=e=>{for(const t of O||[])t.eventProcessor&&(e=t.eventProcessor(e));return y&&!D&&(e=y(e)),e};rt=(e,o)=>{var i;if(!(null===(i=Se[0])||void 0===i?void 0:i.isFrozen())||e.type===oe.FullSnapshot||e.type===oe.IncrementalSnapshot&&e.data.source===ie.Mutation||Se.forEach((e=>e.unfreeze())),N)null==t||t(z(e),o);else if(D){const t={type:"rrweb",event:z(e),origin:window.location.origin,isCheckout:o};window.parent.postMessage(t,"*")}if(e.type===oe.FullSnapshot)j=e,U=0;else if(e.type===oe.IncrementalSnapshot){if(e.data.source===ie.Mutation&&e.data.isAttachIframe)return;U++;const t=n&&U>=n,o=r&&e.timestamp-j.timestamp>r;(t||o)&&nt(!0)}};const B=e=>{rt(tt({type:oe.IncrementalSnapshot,data:Object.assign({source:ie.Mutation},e)}))},V=e=>rt(tt({type:oe.IncrementalSnapshot,data:Object.assign({source:ie.Scroll},e)})),G=e=>rt(tt({type:oe.IncrementalSnapshot,data:Object.assign({source:ie.CanvasMutation},e)})),J=new Ze({mutationCb:B,adoptedStyleSheetCb:e=>rt(tt({type:oe.IncrementalSnapshot,data:Object.assign({source:ie.AdoptedStyleSheet},e)}))}),Y=new qe({mirror:st,mutationCb:B,stylesheetManager:J,recordCrossOriginIframes:I,wrappedEmit:rt});for(const e of O||[])e.getMirror&&e.getMirror({nodeMirror:st,crossOriginIframeMirror:Y.crossOriginIframeMirror,crossOriginIframeStyleMirror:Y.crossOriginIframeStyleMirror});const X=new et;ot=new Ke({recordCanvas:w,mutationCb:G,win:window,blockClass:o,blockSelector:i,mirror:st,sampling:v.canvas,dataURLOptions:b});const ee=new Pe({mutationCb:B,scrollCb:V,bypassOptions:{blockClass:o,blockSelector:i,maskTextClass:l,maskTextSelector:u,inlineStylesheet:p,maskInputOptions:P,dataURLOptions:b,maskTextFn:g,maskInputFn:m,recordCanvas:w,inlineImages:E,sampling:v,slimDOMOptions:F,iframeManager:Y,stylesheetManager:J,canvasManager:ot,keepIframeSrcFn:T,processedNodeManager:X},mirror:st});nt=(e=!1)=>{if(!S)return;rt(tt({type:oe.Meta,data:{href:window.location.href,width:H(),height:W()}}),e),J.reset(),ee.init(),Se.forEach((e=>e.lock()));const t=function(e,t){const{mirror:r=new c,blockClass:n="rr-block",blockSelector:o=null,maskTextClass:i="rr-mask",maskTextSelector:s=null,inlineStylesheet:a=!0,inlineImages:l=!1,recordCanvas:u=!1,maskAllInputs:p=!1,maskTextFn:d,maskInputFn:h,slimDOM:f=!1,dataURLOptions:m,preserveWhiteSpace:g,onSerialize:_,onIframeLoad:y,iframeLoadTimeout:v,onStylesheetLoad:b,stylesheetLoadTimeout:k,keepIframeSrcFn:S=()=>!1}=t;return A(e,{doc:e,mirror:r,blockClass:n,blockSelector:o,maskTextClass:i,maskTextSelector:s,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===p?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===p?{password:!0}:p,maskTextFn:d,maskInputFn:h,slimDOMOptions:!0===f||"all"===f?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===f,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===f?{}:f,dataURLOptions:m,inlineImages:l,recordCanvas:u,preserveWhiteSpace:g,onSerialize:_,onIframeLoad:y,iframeLoadTimeout:v,onStylesheetLoad:b,stylesheetLoadTimeout:k,keepIframeSrcFn:S,newlyAddedElement:!1})}(document,{mirror:st,blockClass:o,blockSelector:i,maskTextClass:l,maskTextSelector:u,inlineStylesheet:p,maskAllInputs:P,maskTextFn:g,slimDOM:F,dataURLOptions:b,recordCanvas:w,inlineImages:E,onSerialize:e=>{Q(e,st)&&Y.addIframe(e),K(e,st)&&J.trackLinkElement(e),Z(e)&&ee.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Y.attachIframe(e,t),ee.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{J.attachLinkElement(e,t)},keepIframeSrcFn:T});if(!t)return console.warn("Failed to snapshot the document");rt(tt({type:oe.FullSnapshot,data:{node:t,initialOffset:$(window)}}),e),Se.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&J.adoptStyleSheets(document.adoptedStyleSheets,st.getId(document))};try{const e=[],t=e=>{var t;return ke(Le)({mutationCb:B,mousemoveCb:(e,t)=>rt(tt({type:oe.IncrementalSnapshot,data:{source:t,positions:e}})),mouseInteractionCb:e=>rt(tt({type:oe.IncrementalSnapshot,data:Object.assign({source:ie.MouseInteraction},e)})),scrollCb:V,viewportResizeCb:e=>rt(tt({type:oe.IncrementalSnapshot,data:Object.assign({source:ie.ViewportResize},e)})),inputCb:e=>rt(tt({type:oe.IncrementalSnapshot,data:Object.assign({source:ie.Input},e)})),mediaInteractionCb:e=>rt(tt({type:oe.IncrementalSnapshot,data:Object.assign({source:ie.MediaInteraction},e)})),styleSheetRuleCb:e=>rt(tt({type:oe.IncrementalSnapshot,data:Object.assign({source:ie.StyleSheetRule},e)})),styleDeclarationCb:e=>rt(tt({type:oe.IncrementalSnapshot,data:Object.assign({source:ie.StyleDeclaration},e)})),canvasMutationCb:G,fontCb:e=>rt(tt({type:oe.IncrementalSnapshot,data:Object.assign({source:ie.Font},e)})),selectionCb:e=>{rt(tt({type:oe.IncrementalSnapshot,data:Object.assign({source:ie.Selection},e)}))},customElementCb:e=>{rt(tt({type:oe.IncrementalSnapshot,data:Object.assign({source:ie.CustomElement},e)}))},blockClass:o,ignoreClass:s,ignoreSelector:a,maskTextClass:l,maskTextSelector:u,maskInputOptions:P,inlineStylesheet:p,sampling:v,recordDOM:S,recordCanvas:w,inlineImages:E,userTriggeredOnInput:M,collectFonts:x,doc:e,maskInputFn:m,maskTextFn:g,keepIframeSrcFn:T,blockSelector:i,slimDOMOptions:F,dataURLOptions:b,mirror:st,iframeManager:Y,stylesheetManager:J,shadowDomManager:ee,processedNodeManager:X,canvasManager:ot,ignoreCSSAttributes:R,plugins:(null===(t=null==O?void 0:O.filter((e=>e.observer)))||void 0===t?void 0:t.map((e=>({observer:e.observer,options:e.options,callback:t=>rt(tt({type:oe.Plugin,data:{plugin:e.name,payload:t}}))}))))||[]},_)};Y.addLoadListener((r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}}));const r=()=>{nt(),e.push(t(document)),it=!0};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(q("DOMContentLoaded",(()=>{rt(tt({type:oe.DomContentLoaded,data:{}})),"DOMContentLoaded"===C&&r()}))),e.push(q("load",(()=>{rt(tt({type:oe.Load,data:{}})),"load"===C&&r()}),window))),()=>{e.forEach((e=>e())),X.destroy(),it=!1,be()}}catch(e){console.warn(e)}}at.addCustomEvent=(e,t)=>{if(!it)throw new Error("please add custom event after start recording");rt(tt({type:oe.Custom,data:{tag:e,payload:t}}))},at.freezePage=()=>{Se.forEach((e=>e.freeze()))},at.takeFullSnapshot=e=>{if(!it)throw new Error("please take full snapshot after start recording");nt(e)},at.mirror=st;var ct,lt=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(lt||{}),ut=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(ut||{}),pt={DEBUG:!1,LIB_VERSION:"2.58.0"};if("undefined"==typeof window){var dt={hostname:""};ct={navigator:{userAgent:"",onLine:!0},document:{location:dt,referrer:""},screen:{width:0,height:0},location:dt}}else ct=window;var ht,ft,mt,gt=ct.setImmediate,_t=Object.prototype.toString,yt=void 0!==gt?function(e){return gt(e)}:setTimeout;try{Object.defineProperty({},"x",{}),ht=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(e){ht=function(e,t,r){return e[t]=r,e}}function vt(e,t){mt.add(e,t),ft||(ft=yt(mt.drain))}function bt(e){var t,r=typeof e;return null===e||"object"!==r&&"function"!==r||(t=e.then),"function"==typeof t&&t}function kt(){for(var e=0;e<this.chain.length;e++)St(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function St(e,t,r){var n,o;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(o=bt(n))?o.call(n,r.resolve,r.reject):r.resolve(n)}catch(e){r.reject(e)}}function wt(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=bt(e))?vt((function(){var n=new Mt(r);try{t.call(e,(function(){wt.apply(n,arguments)}),(function(){It.apply(n,arguments)}))}catch(e){It.call(n,e)}})):(r.msg=e,r.state=1,r.chain.length>0&&vt(kt,r))}catch(e){It.call(new Mt(r),e)}}}function It(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&vt(kt,t))}function Ct(e,t,r,n){for(var o=0;o<t.length;o++)!function(o){e.resolve(t[o]).then((function(e){r(o,e)}),n)}(o)}function Mt(e){this.def=e,this.triggered=!1}function xt(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function Et(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new xt(this);this.then=function(e,r){var n={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return n.promise=new this.constructor((function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t})),t.chain.push(n),0!==t.state&&vt(kt,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,(function(e){wt.call(t,e)}),(function(e){It.call(t,e)}))}catch(e){It.call(t,e)}}mt=function(){var e,t,r;function n(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(o,i){r=new n(o,i),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;for(e=t=ft=void 0;r;)r.fn.call(r.self),r=r.next}}}();var Ot,Tt=ht({},"constructor",Et,!1);Et.prototype=Tt,ht(Tt,"__NPO__",0,!1),ht(Et,"resolve",(function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this((function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)}))})),ht(Et,"reject",(function(e){return new this((function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)}))})),ht(Et,"all",(function(e){var t=this;return"[object Array]"!==_t.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t((function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var o=e.length,i=Array(o),s=0;Ct(t,e,(function(e,t){i[e]=t,++s===o&&r(i)}),n)}))})),ht(Et,"race",(function(e){var t=this;return"[object Array]"!==_t.call(e)?t.reject(TypeError("Not an array")):new t((function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");Ct(t,e,(function(e,t){r(t)}),n)}))})),Ot="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:Et;var Rt,Lt,Nt,Dt,At,qt,Pt,Ft,jt,Ut,zt,Bt=864e5,$t=8e3,Wt=Array.prototype,Ht=Function.prototype,Vt=Object.prototype,Gt=Wt.slice,Jt=Vt.toString,Yt=Vt.hasOwnProperty,Xt=ct.console,Qt=ct.navigator,Kt=ct.document,Zt=ct.opera,er=ct.screen,tr=Qt.userAgent,rr=Ht.bind,nr=Wt.forEach,or=Wt.indexOf,ir=Wt.map,sr=Array.isArray,ar={},cr={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},lr={log:function(){if(pt.DEBUG&&!cr.isUndefined(Xt)&&Xt)try{Xt.log.apply(Xt,arguments)}catch(e){cr.each(arguments,(function(e){Xt.log(e)}))}},warn:function(){if(pt.DEBUG&&!cr.isUndefined(Xt)&&Xt){var e=["Mixpanel warning:"].concat(cr.toArray(arguments));try{Xt.warn.apply(Xt,e)}catch(t){cr.each(e,(function(e){Xt.warn(e)}))}}},error:function(){if(pt.DEBUG&&!cr.isUndefined(Xt)&&Xt){var e=["Mixpanel error:"].concat(cr.toArray(arguments));try{Xt.error.apply(Xt,e)}catch(t){cr.each(e,(function(e){Xt.error(e)}))}}},critical:function(){if(!cr.isUndefined(Xt)&&Xt){var e=["Mixpanel error:"].concat(cr.toArray(arguments));try{Xt.error.apply(Xt,e)}catch(t){cr.each(e,(function(e){Xt.error(e)}))}}}},ur=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(lr,arguments)}},pr=function(e){return{log:ur(lr.log,e),error:ur(lr.error,e),critical:ur(lr.critical,e)}};cr.bind=function(e,t){var r,n;if(rr&&e.bind===rr)return rr.apply(e,Gt.call(arguments,1));if(!cr.isFunction(e))throw new TypeError;return r=Gt.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(Gt.call(arguments)));var o={};o.prototype=e.prototype;var i=new o;o.prototype=null;var s=e.apply(i,r.concat(Gt.call(arguments)));return Object(s)===s?s:i},n},cr.each=function(e,t,r){if(null!=e)if(nr&&e.forEach===nr)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,o=e.length;n<o;n++)if(n in e&&t.call(r,e[n],n,e)===ar)return}else for(var i in e)if(Yt.call(e,i)&&t.call(r,e[i],i,e)===ar)return},cr.extend=function(e){return cr.each(Gt.call(arguments,1),(function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])})),e},cr.isArray=sr||function(e){return"[object Array]"===Jt.call(e)},cr.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(e){return!1}},cr.isArguments=function(e){return!(!e||!Yt.call(e,"callee"))},cr.toArray=function(e){return e?e.toArray?e.toArray():cr.isArray(e)||cr.isArguments(e)?Gt.call(e):cr.values(e):[]},cr.map=function(e,t,r){if(ir&&e.map===ir)return e.map(t,r);var n=[];return cr.each(e,(function(e){n.push(t.call(r,e))})),n},cr.keys=function(e){var t=[];return null===e||cr.each(e,(function(e,r){t[t.length]=r})),t},cr.values=function(e){var t=[];return null===e||cr.each(e,(function(e){t[t.length]=e})),t},cr.include=function(e,t){var r=!1;return null===e?r:or&&e.indexOf===or?-1!=e.indexOf(t):(cr.each(e,(function(e){if(r||(r=e===t))return ar})),r)},cr.includes=function(e,t){return-1!==e.indexOf(t)},cr.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},cr.isObject=function(e){return e===Object(e)&&!cr.isArray(e)},cr.isEmptyObject=function(e){if(cr.isObject(e)){for(var t in e)if(Yt.call(e,t))return!1;return!0}return!1},cr.isUndefined=function(e){return void 0===e},cr.isString=function(e){return"[object String]"==Jt.call(e)},cr.isDate=function(e){return"[object Date]"==Jt.call(e)},cr.isNumber=function(e){return"[object Number]"==Jt.call(e)},cr.isElement=function(e){return!(!e||1!==e.nodeType)},cr.encodeDates=function(e){return cr.each(e,(function(t,r){cr.isDate(t)?e[r]=cr.formatDate(t):cr.isObject(t)&&(e[r]=cr.encodeDates(t))})),e},cr.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},cr.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},cr.strip_empty_properties=function(e){var t={};return cr.each(e,(function(e,r){cr.isString(e)&&e.length>0&&(t[r]=e)})),t},cr.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):cr.isArray(e)?(r=[],cr.each(e,(function(e){r.push(cr.truncate(e,t))}))):cr.isObject(e)?(r={},cr.each(e,(function(e,n){r[n]=cr.truncate(e,t)}))):r=e,r},cr.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,(function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'},r=function(e,n){var o="",i=0,s="",a="",c=0,l=o,u=[],p=n[e];switch(p&&"object"==typeof p&&"function"==typeof p.toJSON&&(p=p.toJSON(e)),typeof p){case"string":return t(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(o+=" ",u=[],"[object Array]"===Jt.apply(p)){for(c=p.length,i=0;i<c;i+=1)u[i]=r(i,p)||"null";return a=0===u.length?"[]":o?"[\n"+o+u.join(",\n"+o)+"\n"+l+"]":"["+u.join(",")+"]",o=l,a}for(s in p)Yt.call(p,s)&&(a=r(s,p))&&u.push(t(s)+(o?": ":":")+a);return a=0===u.length?"{}":o?"{"+u.join(",")+l+"}":"{"+u.join(",")+"}",o=l,a}};return r("",{"":e})},cr.JSONDecode=(At={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},qt=function(e){var t=new SyntaxError(e);throw t.at=Rt,t.text=Nt,t},Pt=function(e){return e&&e!==Lt&&qt("Expected '"+e+"' instead of '"+Lt+"'"),Lt=Nt.charAt(Rt),Rt+=1,Lt},Ft=function(){var e,t="";for("-"===Lt&&(t="-",Pt("-"));Lt>="0"&&Lt<="9";)t+=Lt,Pt();if("."===Lt)for(t+=".";Pt()&&Lt>="0"&&Lt<="9";)t+=Lt;if("e"===Lt||"E"===Lt)for(t+=Lt,Pt(),"-"!==Lt&&"+"!==Lt||(t+=Lt,Pt());Lt>="0"&&Lt<="9";)t+=Lt,Pt();if(e=+t,isFinite(e))return e;qt("Bad number")},jt=function(){var e,t,r,n="";if('"'===Lt)for(;Pt();){if('"'===Lt)return Pt(),n;if("\\"===Lt)if(Pt(),"u"===Lt){for(r=0,t=0;t<4&&(e=parseInt(Pt(),16),isFinite(e));t+=1)r=16*r+e;n+=String.fromCharCode(r)}else{if("string"!=typeof At[Lt])break;n+=At[Lt]}else n+=Lt}qt("Bad string")},Ut=function(){for(;Lt&&Lt<=" ";)Pt()},Dt=function(){switch(Ut(),Lt){case"{":return function(){var e,t={};if("{"===Lt){if(Pt("{"),Ut(),"}"===Lt)return Pt("}"),t;for(;Lt;){if(e=jt(),Ut(),Pt(":"),Object.hasOwnProperty.call(t,e)&&qt('Duplicate key "'+e+'"'),t[e]=Dt(),Ut(),"}"===Lt)return Pt("}"),t;Pt(","),Ut()}}qt("Bad object")}();case"[":return function(){var e=[];if("["===Lt){if(Pt("["),Ut(),"]"===Lt)return Pt("]"),e;for(;Lt;){if(e.push(Dt()),Ut(),"]"===Lt)return Pt("]"),e;Pt(","),Ut()}}qt("Bad array")}();case'"':return jt();case"-":return Ft();default:return Lt>="0"&&Lt<="9"?Ft():function(){switch(Lt){case"t":return Pt("t"),Pt("r"),Pt("u"),Pt("e"),!0;case"f":return Pt("f"),Pt("a"),Pt("l"),Pt("s"),Pt("e"),!1;case"n":return Pt("n"),Pt("u"),Pt("l"),Pt("l"),null}qt('Unexpected "'+Lt+'"')}()}},function(e){var t;return Nt=e,Rt=0,Lt=" ",t=Dt(),Ut(),Lt&&qt("Syntax error"),t}),cr.base64Encode=function(e){var t,r,n,o,i,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,c=0,l="",u=[];if(!e)return e;e=cr.utf8Encode(e);do{t=(i=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,r=i>>12&63,n=i>>6&63,o=63&i,u[c++]=s.charAt(t)+s.charAt(r)+s.charAt(n)+s.charAt(o)}while(a<e.length);switch(l=u.join(""),e.length%3){case 1:l=l.slice(0,-2)+"==";break;case 2:l=l.slice(0,-1)+"="}return l},cr.utf8Encode=function(e){var t,r,n,o,i="";for(t=r=0,n=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,o=0;o<n;o++){var s=e.charCodeAt(o),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(i+=e.substring(t,r)),i+=a,t=r=o+1)}return r>t&&(i+=e.substring(t,e.length)),i},cr.UUID=(zt=function(){var e,t=1*new Date;if(ct.performance&&ct.performance.now)e=ct.performance.now();else for(e=0;t==1*new Date;)e++;return t.toString(16)+Math.floor(e).toString(16)},function(){var e=(er.height*er.width).toString(16);return zt()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var e,t,r=tr,n=[],o=0;function i(e,t){var r,o=0;for(r=0;r<t.length;r++)o|=n[r]<<8*r;return e^o}for(e=0;e<r.length;e++)t=r.charCodeAt(e),n.unshift(255&t),n.length>=4&&(o=i(o,n),n=[]);return n.length>0&&(o=i(o,n)),o.toString(16)}()+"-"+e+"-"+zt()});var dr=["ahrefsbot","ahrefssiteaudit","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];cr.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<dr.length;t++)if(-1!==e.indexOf(dr[t]))return!0;return!1},cr.HTTPBuildQuery=function(e,t){var r,n,o=[];return cr.isUndefined(t)&&(t="&"),cr.each(e,(function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),o[o.length]=n+"="+r})),o.join(t)},cr.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(e){lr.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},cr.cookie={get:function(e){for(var t=e+"=",r=Kt.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "==o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return decodeURIComponent(o.substring(t.length,o.length))}return null},parse:function(e){var t;try{t=cr.JSONDecode(cr.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,n,o,i,s){var a="",c="",l="";if(s)a="; domain="+s;else if(n){var u=kr(Kt.location.hostname);a=u?"; domain=."+u:""}if(r){var p=new Date;p.setTime(p.getTime()+1e3*r),c="; expires="+p.toGMTString()}i&&(o=!0,l="; SameSite=None"),o&&(l+="; secure"),Kt.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+a+l},set:function(e,t,r,n,o,i,s){var a="",c="",l="";if(s)a="; domain="+s;else if(n){var u=kr(Kt.location.hostname);a=u?"; domain=."+u:""}if(r){var p=new Date;p.setTime(p.getTime()+24*r*60*60*1e3),c="; expires="+p.toGMTString()}i&&(o=!0,l="; SameSite=None"),o&&(l+="; secure");var d=e+"="+encodeURIComponent(t)+c+"; path=/"+a+l;return Kt.cookie=d,d},remove:function(e,t,r){cr.cookie.set(e,"",-1,t,!1,!1,r)}};var hr=null,fr=function(e,t){if(null!==hr&&!t)return hr;var r=!0;try{e=e||ct.localStorage;var n="__mplss_"+yr(8);e.setItem(n,"xyz"),"xyz"!==e.getItem(n)&&(r=!1),e.removeItem(n)}catch(e){r=!1}return hr=r,r};cr.localStorage={is_supported:function(e){var t=fr(null,e);return t||lr.error("localStorage unsupported; falling back to cookie store"),t},error:function(e){lr.error("localStorage error: "+e)},get:function(e){try{return ct.localStorage.getItem(e)}catch(e){cr.localStorage.error(e)}return null},parse:function(e){try{return cr.JSONDecode(cr.localStorage.get(e))||{}}catch(e){}return null},set:function(e,t){try{ct.localStorage.setItem(e,t)}catch(e){cr.localStorage.error(e)}},remove:function(e){try{ct.localStorage.removeItem(e)}catch(e){cr.localStorage.error(e)}}},cr.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,r,n,o,i){if(t)if(t.addEventListener&&!o)t.addEventListener(r,n,!!i);else{var s="on"+r,a=t[s];t[s]=function(t,r,n){var o=function(o){if(o=o||e(ct.event)){var i,s,a=!0;return cr.isFunction(n)&&(i=n(o)),s=r.call(t,o),!1!==i&&!1!==s||(a=!1),a}};return o}(t,n,a)}else lr.error("No valid element provided to register_event")}}();var mr=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');cr.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(e,r){var n=" "+r+" ";return(" "+e.className+" ").replace(t," ").indexOf(n)>=0}function n(t){if(!Kt.getElementsByTagName)return[];var n,o,i,s,a,c,l,u,p,d,h=t.split(" "),f=[Kt];for(c=0;c<h.length;c++)if((n=h[c].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){i=(o=n.split("#"))[0];var m=o[1],g=Kt.getElementById(m);if(!g||i&&g.nodeName.toLowerCase()!=i)return[];f=[g]}else if(n.indexOf(".")>-1){i=(o=n.split("."))[0];var _=o[1];for(i||(i="*"),s=[],a=0,l=0;l<f.length;l++)for(p="*"==i?e(f[l]):f[l].getElementsByTagName(i),u=0;u<p.length;u++)s[a++]=p[u];for(f=[],d=0,l=0;l<s.length;l++)s[l].className&&cr.isString(s[l].className)&&r(s[l],_)&&(f[d++]=s[l])}else{var y=n.match(mr);if(y){i=y[1];var v,b=y[2],k=y[3],S=y[4];for(i||(i="*"),s=[],a=0,l=0;l<f.length;l++)for(p="*"==i?e(f[l]):f[l].getElementsByTagName(i),u=0;u<p.length;u++)s[a++]=p[u];switch(f=[],d=0,k){case"=":v=function(e){return e.getAttribute(b)==S};break;case"~":v=function(e){return e.getAttribute(b).match(new RegExp("\\b"+S+"\\b"))};break;case"|":v=function(e){return e.getAttribute(b).match(new RegExp("^"+S+"-?"))};break;case"^":v=function(e){return 0===e.getAttribute(b).indexOf(S)};break;case"$":v=function(e){return e.getAttribute(b).lastIndexOf(S)==e.getAttribute(b).length-S.length};break;case"*":v=function(e){return e.getAttribute(b).indexOf(S)>-1};break;default:v=function(e){return e.getAttribute(b)}}for(f=[],d=0,l=0;l<s.length;l++)v(s[l])&&(f[d++]=s[l])}else{for(i=n,s=[],a=0,l=0;l<f.length;l++)for(p=f[l].getElementsByTagName(i),u=0;u<p.length;u++)s[a++]=p[u];f=s}}return f}return function(e){return cr.isElement(e)?[e]:cr.isObject(e)&&!cr.isUndefined(e.length)?e:n.call(this,e)}}();var gr=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],_r=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];cr.info={campaignParams:function(e){var t="",r={};return cr.each(gr,(function(n){(t=cr.getQueryParam(Kt.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)})),r},clickParams:function(){var e="",t={};return cr.each(_r,(function(r){(e=cr.getQueryParam(Kt.URL,r)).length&&(t[r]=e)})),t},marketingParams:function(){return cr.extend(cr.info.campaignParams(),cr.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=cr.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n.$search_engine=t;var o=cr.getQueryParam(e,r);o.length&&(n.mp_keyword=o)}return n},browser:function(e,t,r){return t=t||"",r||cr.includes(e," OPR/")?cr.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":cr.includes(e,"IEMobile")||cr.includes(e,"WPDesktop")?"Internet Explorer Mobile":cr.includes(e,"SamsungBrowser/")?"Samsung Internet":cr.includes(e,"Edge")||cr.includes(e,"Edg/")?"Microsoft Edge":cr.includes(e,"FBIOS")?"Facebook Mobile":cr.includes(e,"Chrome")?"Chrome":cr.includes(e,"CriOS")?"Chrome iOS":cr.includes(e,"UCWEB")||cr.includes(e,"UCBrowser")?"UC Browser":cr.includes(e,"FxiOS")?"Firefox iOS":cr.includes(t,"Apple")?cr.includes(e,"Mobile")?"Mobile Safari":"Safari":cr.includes(e,"Android")?"Android Mobile":cr.includes(e,"Konqueror")?"Konqueror":cr.includes(e,"Firefox")?"Firefox":cr.includes(e,"MSIE")||cr.includes(e,"Trident/")?"Internet Explorer":cr.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[cr.info.browser(e,t,r)];if(void 0===n)return null;var o=e.match(n);return o?parseFloat(o[o.length-2]):null},os:function(){var e=tr;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return ct.location.href},properties:function(e){return"object"!=typeof e&&(e={}),cr.extend(cr.strip_empty_properties({$os:cr.info.os(),$browser:cr.info.browser(tr,Qt.vendor,Zt),$referrer:Kt.referrer,$referring_domain:cr.info.referringDomain(Kt.referrer),$device:cr.info.device(tr)}),{$current_url:cr.info.currentUrl(),$browser_version:cr.info.browserVersion(tr,Qt.vendor,Zt),$screen_height:er.height,$screen_width:er.width,mp_lib:"web",$lib_version:pt.LIB_VERSION,$insert_id:yr(),time:cr.timestamp()/1e3},cr.strip_empty_properties(e))},people_properties:function(){return cr.extend(cr.strip_empty_properties({$os:cr.info.os(),$browser:cr.info.browser(tr,Qt.vendor,Zt)}),{$browser_version:cr.info.browserVersion(tr,Qt.vendor,Zt)})},mpPageViewProperties:function(){return cr.strip_empty_properties({current_page_title:Kt.title,current_domain:ct.location.hostname,current_url_path:ct.location.pathname,current_url_protocol:ct.location.protocol,current_url_search:ct.location.search})}};var yr=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},vr=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,br=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,kr=function(e){var t=br,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=vr);var o=e.match(t);return o?o[0]:""},Sr=null,wr=null;"undefined"!=typeof JSON&&(Sr=JSON.stringify,wr=JSON.parse),Sr=Sr||cr.JSONEncode,wr=wr||cr.JSONDecode,cr.toArray=cr.toArray,cr.isObject=cr.isObject,cr.JSONEncode=cr.JSONEncode,cr.JSONDecode=cr.JSONDecode,cr.isBlockedUA=cr.isBlockedUA,cr.isEmptyObject=cr.isEmptyObject,cr.info=cr.info,cr.info.device=cr.info.device,cr.info.browser=cr.info.browser,cr.info.browserVersion=cr.info.browserVersion,cr.info.properties=cr.info.properties,cr.NPO=Et;function Ir(e,t){Ar(!0,e,t)}function Cr(e,t){Ar(!1,e,t)}function Mr(e,t){return"1"===Dr(e,t)}function xr(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||ct,r=t.navigator||{},n=!1;return cr.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],(function(e){cr.includes([!0,1,"1","yes"],e)&&(n=!0)})),n}(t))return lr.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===Dr(e,t);return r&&lr.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function Er(e){return qr(e,(function(e){return this.get_config(e)}))}function Or(e){return qr(e,(function(e){return this._get_config(e)}))}function Tr(e){return qr(e,(function(e){return this._get_config(e)}))}function Rr(e,t){Lr(t=t||{}).remove(Nr(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function Lr(e){return"localStorage"===(e=e||{}).persistenceType?cr.localStorage:cr.cookie}function Nr(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function Dr(e,t){return Lr(t).get(Nr(e,t))}function Ar(e,t,r){cr.isString(t)&&t.length?(Lr(r=r||{}).set(Nr(t,r),e?1:0,cr.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):lr.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function qr(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),o=t.call(this,"ignore_dnt"),i=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=xr(n,{ignoreDnt:o,persistenceType:i,persistencePrefix:s,window:a}))}catch(e){lr.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments);var c=arguments[arguments.length-1];"function"==typeof c&&c(0)}}var Pr=pr("lock"),Fr=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||Ot};Fr.prototype.withLock=function(e,t){return new(0,this.promiseImpl)(cr.bind((function(r,n){var o=t||(new Date).getTime()+"|"+Math.random(),i=(new Date).getTime(),s=this.storageKey,a=this.pollIntervalMS,c=this.timeoutMS,l=this.storage,u=s+":X",p=s+":Y",d=s+":Z",h=function(e){if((new Date).getTime()-i>c)return Pr.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+o+"]"),l.removeItem(d),l.removeItem(p),void g();setTimeout((function(){try{e()}catch(e){n(e)}}),a*(Math.random()+.1))},f=function(e,t){e()?t():h((function(){f(e,t)}))},m=function(){var e=l.getItem(p);return(!e||e===o)&&(l.setItem(p,o),l.getItem(p)===o||(fr(l,!0)||n(new Error("localStorage support dropped while acquiring lock")),!1))},g=function(){l.setItem(u,o),f(m,(function(){l.getItem(u)!==o?h((function(){l.getItem(p)===o?f((function(){return!l.getItem(d)}),_):g()})):_()}))},_=function(){l.setItem(d,"1");var t=function(){l.removeItem(d),l.getItem(p)===o&&l.removeItem(p),l.getItem(u)===o&&l.removeItem(u)};e().then((function(e){t(),r(e)})).catch((function(e){t(),n(e)}))};try{if(!fr(l,!0))throw new Error("localStorage support check failed");g()}catch(e){n(e)}}),this))};var jr=function(e){this.storage=e||localStorage};jr.prototype.init=function(){return Ot.resolve()},jr.prototype.setItem=function(e,t){return new Ot(cr.bind((function(r,n){try{this.storage.setItem(e,t)}catch(e){n(e)}r()}),this))},jr.prototype.getItem=function(e){return new Ot(cr.bind((function(t,r){var n;try{n=this.storage.getItem(e)}catch(e){r(e)}t(n)}),this))},jr.prototype.removeItem=function(e){return new Ot(cr.bind((function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()}),this))};var Ur=pr("batch"),zr=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new jr,this.lock=new Fr(e,{storage:t.sharedLockStorage||window.localStorage}),this.queueStorage.init()),this.reportError=t.errorReporter||cr.bind(Ur.error,Ur),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1};zr.prototype.ensureInit=function(){return this.initialized?Ot.resolve():this.queueStorage.init().then(cr.bind((function(){this.initialized=!0}),this)).catch(cr.bind((function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1}),this))},zr.prototype.enqueue=function(e,t){var r={id:yr(),flushAfter:(new Date).getTime()+2*t,payload:e};if(this.usePersistence){var n=cr.bind((function(){return this.ensureInit().then(cr.bind((function(){return this.readFromStorage()}),this)).then(cr.bind((function(e){return e.push(r),this.saveToStorage(e)}),this)).then(cr.bind((function(e){return e&&this.memQueue.push(r),e}),this)).catch(cr.bind((function(t){return this.reportError("Error enqueueing item",t,e),!1}),this))}),this);return this.lock.withLock(n,this.pid).catch(cr.bind((function(e){return this.reportError("Error acquiring storage lock",e),!1}),this))}return this.memQueue.push(r),Ot.resolve(!0)},zr.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(cr.bind((function(){return this.readFromStorage()}),this)).then(cr.bind((function(r){if(r.length){var n={};cr.each(t,(function(e){n[e.id]=!0}));for(var o=0;o<r.length;o++){var i=r[o];if((new Date).getTime()>i.flushAfter&&!n[i.id]&&(i.orphaned=!0,t.push(i),t.length>=e))break}}return t}),this)):Ot.resolve(t)};var Br=function(e,t){var r=[];return cr.each(e,(function(e){e.id&&!t[e.id]&&r.push(e)})),r};zr.prototype.removeItemsByID=function(e){var t={};if(cr.each(e,(function(e){t[e]=!0})),this.memQueue=Br(this.memQueue,t),this.usePersistence){var r=cr.bind((function(){return this.ensureInit().then(cr.bind((function(){return this.readFromStorage()}),this)).then(cr.bind((function(e){return e=Br(e,t),this.saveToStorage(e)}),this)).then(cr.bind((function(){return this.readFromStorage()}),this)).then(cr.bind((function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n.id&&t[n.id])throw new Error("Item not removed from storage")}return!0}),this)).catch(cr.bind((function(t){return this.reportError("Error removing items",t,e),!1}),this))}),this);return this.lock.withLock(r,this.pid).catch(cr.bind((function(e){return this.reportError("Error acquiring storage lock",e),!fr(this.queueStorage.storage,!0)&&r().then(cr.bind((function(e){return e||this.queueStorage.removeItem(this.storageKey).then((function(){return e}))}),this)).catch(cr.bind((function(e){return this.reportError("Error clearing queue",e),!1}),this))}),this))}return Ot.resolve(!0)};var $r=function(e,t){var r=[];return cr.each(e,(function(e){var n=e.id;if(n in t){var o=t[n];null!==o&&(e.payload=o,r.push(e))}else r.push(e)})),r};zr.prototype.updatePayloads=function(e){return this.memQueue=$r(this.memQueue,e),this.usePersistence?this.lock.withLock(cr.bind((function(){return this.ensureInit().then(cr.bind((function(){return this.readFromStorage()}),this)).then(cr.bind((function(t){return t=$r(t,e),this.saveToStorage(t)}),this)).catch(cr.bind((function(t){return this.reportError("Error updating items",e,t),!1}),this))}),this),this.pid).catch(cr.bind((function(e){return this.reportError("Error acquiring storage lock",e),!1}),this)):Ot.resolve(!0)},zr.prototype.readFromStorage=function(){return this.ensureInit().then(cr.bind((function(){return this.queueStorage.getItem(this.storageKey)}),this)).then(cr.bind((function(e){return e&&(e=wr(e),cr.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]}),this)).catch(cr.bind((function(e){return this.reportError("Error retrieving queue",e),[]}),this))},zr.prototype.saveToStorage=function(e){try{var t=Sr(e)}catch(e){return this.reportError("Error serializing queue",e),Ot.resolve(!1)}return this.ensureInit().then(cr.bind((function(){return this.queueStorage.setItem(this.storageKey,t)}),this)).then((function(){return!0})).catch(cr.bind((function(e){return this.reportError("Error saving queue",e),!1}),this))},zr.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(cr.bind((function(){return this.queueStorage.removeItem(this.storageKey)}),this)):Ot.resolve()};var Wr=pr("batch"),Hr=function(e,t){this.errorReporter=t.errorReporter,this.queue=new zr(e,{errorReporter:cr.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,usePersistence:t.usePersistence}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1};Hr.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},Hr.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Hr.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Hr.prototype.clear=function(){return this.queue.clear()},Hr.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},Hr.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},Hr.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(cr.bind((function(){this.stopped||this.flush()}),this),this.flushInterval))},Hr.prototype.sendRequestPromise=function(e,t){return new Ot(cr.bind((function(r){this.sendRequest(e,t,r)}),this))},Hr.prototype.flush=function(e){if(this.requestInProgress)return Wr.log("Flush: Request already in progress"),Ot.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=(new Date).getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(cr.bind((function(o){var i=o.length===n,s=[],a={};if(cr.each(o,(function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=cr.extend({},t.properties,{mp_sent_by_lib_version:pt.LIB_VERSION}));var r=!0,n=e.id;n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&s.push(t)}a[e.id]=t}),this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),Ot.resolve();var c=cr.bind((function(){return this.queue.removeItemsByID(cr.map(o,(function(e){return e.id}))).then(cr.bind((function(e){return cr.each(o,cr.bind((function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})}),this)),e?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!i?(this.resetFlush(),Ot.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),Ot.resolve())}),this))}),this),l=cr.bind((function(i){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(cr.isObject(i)&&"timeout"===i.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(cr.isObject(i)&&(i.httpStatusCode>=500||429===i.httpStatusCode||i.httpStatusCode<=0&&(u=ct.navigator.onLine,!cr.isUndefined(u)&&!u)||"timeout"===i.error)){var s=2*this.flushInterval;return i.retryAfter&&(s=1e3*parseInt(i.retryAfter,10)||s),s=Math.min(6e5,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),Ot.resolve()}if(cr.isObject(i)&&413===i.httpStatusCode){if(o.length>1){var l=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,l,o.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),Ot.resolve()}return this.reportError("Single-event request too large; dropping",o),this.resetBatchSize(),c()}return c()}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}var u}),this),u={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(u.transport="sendBeacon"),Wr.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,u).then(l)}),this)).catch(cr.bind((function(e){this.reportError("Error flushing request queue",e),this.resetFlush()}),this))},Hr.prototype.reportError=function(e,t){if(Wr.error.apply(Wr.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){Wr.error(t)}};var Vr=pr("recorder"),Gr=ct.CompressionStream,Jr={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Yr=new Set([ut.MouseMove,ut.MouseInteraction,ut.Scroll,ut.ViewportResize,ut.Input,ut.TouchMove,ut.MediaInteraction,ut.Drag,ut.Selection]);var Xr=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout,this._onMaxLengthReached=e.onMaxLengthReached,this._rrwebRecord=e.rrwebRecord,this.replayId=e.replayId,this._stopRecording=null,this.seqNo=0,this.replayStartTime=null,this.replayStartUrl=null,this.batchStartUrl=null,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=Bt,this.recordMinMs=0;var t="__mprec_"+this.getConfig("token")+"_"+this.replayId;this.batcher=new Hr(t,{errorReporter:cr.bind(this.reportError,this),flushOnlyOnInterval:!0,libConfig:Jr,sendRequestFunc:cr.bind(this.flushEventsWithOptOut,this),usePersistence:!1})};Xr.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},Xr.prototype.get_config=function(e){return this.getConfig(e)},Xr.prototype.startRecording=function(e){if(null===this._stopRecording){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>Bt&&(this.recordMaxMs=Bt,Vr.critical("record_max_ms cannot be greater than "+Bt+"ms. Capping value.")),this.recordMinMs=this.getConfig("record_min_ms"),this.recordMinMs>$t&&(this.recordMinMs=$t,Vr.critical("record_min_ms cannot be greater than 8000ms. Capping value.")),this.replayStartTime=(new Date).getTime(),this.batchStartUrl=cr.info.currentUrl(),this.replayStartUrl=cr.info.currentUrl(),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=cr.bind((function(){clearTimeout(this.idleTimeoutId),this.idleTimeoutId=setTimeout(this._onIdleTimeout,this.getConfig("record_idle_timeout_ms"))}),this),r=this.getConfig("record_block_selector");if(""!==r&&null!==r||(r=void 0),this._stopRecording=this._rrwebRecord({emit:cr.bind((function(e){this.batcher.enqueue(e),function(e){return e.type===lt.IncrementalSnapshot&&Yr.has(e.data.source)}(e)&&(this.batcher.stopped&&(new Date).getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t())}),this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15}}),"function"!=typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();t(),this.maxTimeoutId=setTimeout(cr.bind(this._onMaxLengthReached,this),this.recordMaxMs)}else Vr.log("Recording already in progress, skipping startRecording.")},Xr.prototype.stopRecording=function(){if(!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}this.batcher.stopped?this.batcher.clear():(this.batcher.flush(),this.batcher.stop()),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId)},Xr.prototype.isRrwebStopped=function(){return null===this._stopRecording},Xr.prototype.flushEventsWithOptOut=function(e,t,r){this._flushEvents(e,t,r,cr.bind(this._onOptOut,this))},Xr.prototype._onOptOut=function(e){0===e&&this.stopRecording()},Xr.prototype._sendRequest=function(e,t,r,n){var o=cr.bind((function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=cr.info.currentUrl()),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}),this);ct.fetch(this.getConfig("api_host")+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then((function(e){e.json().then((function(t){o(e,t)})).catch((function(e){n({error:e})}))})).catch((function(e){n({error:e,httpStatusCode:0})}))},Xr.prototype._flushEvents=Er((function(e,t,r){const n=e.length;if(n>0){var o=this.replayId,i=e[0].timestamp;0!==this.seqNo&&this.replayStartTime||(0!==this.seqNo&&this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=i);var s=e[n-1].timestamp-this.replayStartTime,a={$current_url:this.batchStartUrl,$lib_version:pt.LIB_VERSION,batch_start_time:i/1e3,distinct_id:String(this._mixpanel.get_distinct_id()),mp_lib:"web",replay_id:o,replay_length_ms:s,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},c=cr.JSONEncode(e),l=this._mixpanel.get_property("$device_id");l&&(a.$device_id=l);var u=this._mixpanel.get_property("$user_id");if(u&&(a.$user_id=u),Gr){var p=new Blob([c],{type:"application/json"}).stream().pipeThrough(new Gr("gzip"));new Response(p).blob().then(cr.bind((function(e){a.format="gzip",this._sendRequest(o,a,e,r)}),this))}else a.format="body",this._sendRequest(o,a,c,r)}})),Xr.prototype.reportError=function(e,t){Vr.error.apply(Vr.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){Vr.error(t)}};var Qr=pr("recorder"),Kr=function(e){this._mixpanel=e,this.activeRecording=null};Kr.prototype.startRecording=function(e){if(!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=cr.bind((function(){Qr.log("Idle timeout reached, restarting recording."),this.resetRecording()}),this),r=cr.bind((function(){Qr.log("Max recording length reached, stopping recording."),this.resetRecording()}),this);this.activeRecording=new Xr({mixpanelInstance:this._mixpanel,onIdleTimeout:t,onMaxLengthReached:r,replayId:cr.UUID(),rrwebRecord:at}),this.activeRecording.startRecording(e)}else Qr.log("Recording already in progress, skipping startRecording.")},Kr.prototype.stopRecording=function(){this.activeRecording&&(this.activeRecording.stopRecording(),this.activeRecording=null)},Kr.prototype.resetRecording=function(){this.stopRecording(),this.startRecording(!0)},Kr.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(Kr.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),ct.__mp_recorder=Kr;var Zr=function(){};Zr.prototype.create_properties=function(){},Zr.prototype.event_handler=function(){},Zr.prototype.after_track_handler=function(){},Zr.prototype.init=function(e){return this.mp=e,this},Zr.prototype.track=function(e,t,r,n){var o=this,i=cr.dom_query(e);if(0!==i.length)return cr.each(i,(function(e){cr.register_event(e,this.override_event,(function(e){var i={},s=o.create_properties(r,this),a=o.mp.get_config("track_links_timeout");o.event_handler(e,this,i),window.setTimeout(o.track_callback(n,s,i,!0),a),o.mp.track(t,s,o.track_callback(n,s,i))}))}),this),!0;lr.error("The DOM query ("+e+") returned 0 elements")},Zr.prototype.track_callback=function(e,t,r,n){n=n||!1;var o=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||o.after_track_handler(t,r,n))}},Zr.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):cr.extend({},e)};var en=function(){this.override_event="click"};cr.inherit(en,Zr),en.prototype.create_properties=function(e,t){var r=en.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},en.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},en.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout((function(){window.location=t.href}),0)};var tn=function(){this.override_event="submit"};cr.inherit(tn,Zr),tn.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},tn.prototype.after_track_handler=function(e,t){setTimeout((function(){t.element.submit()}),0)};var rn="$set",nn="$set_once",on="$unset",sn="$add",an="$append",cn="$union",ln="$remove",un={set_action:function(e,t){var r={},n={};return cr.isObject(e)?cr.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[rn]=n,r},unset_action:function(e){var t={},r=[];return cr.isArray(e)||(e=[e]),cr.each(e,(function(e){this._is_reserved_property(e)||r.push(e)}),this),t[on]=r,t},set_once_action:function(e,t){var r={},n={};return cr.isObject(e)?cr.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[nn]=n,r},union_action:function(e,t){var r={},n={};return cr.isObject(e)?cr.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=cr.isArray(e)?e:[e])}),this):n[e]=cr.isArray(t)?t:[t],r[cn]=n,r},append_action:function(e,t){var r={},n={};return cr.isObject(e)?cr.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[an]=n,r},remove_action:function(e,t){var r={},n={};return cr.isObject(e)?cr.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[ln]=n,r},delete_action:function(){var e={$delete:""};return e}},pn=function(){};cr.extend(pn.prototype,un),pn.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},pn.prototype.set=Tr((function(e,t,r){var n=this.set_action(e,t);return cr.isObject(e)&&(r=t),this._send_request(n,r)})),pn.prototype.set_once=Tr((function(e,t,r){var n=this.set_once_action(e,t);return cr.isObject(e)&&(r=t),this._send_request(n,r)})),pn.prototype.unset=Tr((function(e,t){var r=this.unset_action(e);return this._send_request(r,t)})),pn.prototype.union=Tr((function(e,t,r){cr.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)})),pn.prototype.delete=Tr((function(e){var t=this.delete_action();return this._send_request(t,e)})),pn.prototype.remove=Tr((function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)})),pn.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=cr.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},pn.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},pn.prototype._get_config=function(e){return this._mixpanel.get_config(e)},pn.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},pn.prototype.remove=pn.prototype.remove,pn.prototype.set=pn.prototype.set,pn.prototype.set_once=pn.prototype.set_once,pn.prototype.union=pn.prototype.union,pn.prototype.unset=pn.prototype.unset,pn.prototype.toString=pn.prototype.toString;var dn=function(){};cr.extend(dn.prototype,un),dn.prototype._init=function(e){this._mixpanel=e},dn.prototype.set=Or((function(e,t,r){var n=this.set_action(e,t);return cr.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[rn]=cr.extend({},cr.info.people_properties(),n[rn]),this._send_request(n,r)})),dn.prototype.set_once=Or((function(e,t,r){var n=this.set_once_action(e,t);return cr.isObject(e)&&(r=t),this._send_request(n,r)})),dn.prototype.unset=Or((function(e,t){var r=this.unset_action(e);return this._send_request(r,t)})),dn.prototype.increment=Or((function(e,t,r){var n={},o={};return cr.isObject(e)?(cr.each(e,(function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void lr.error("Invalid increment value passed to mixpanel.people.increment - must be a number");o[t]=e}}),this),r=t):(cr.isUndefined(t)&&(t=1),o[e]=t),n[sn]=o,this._send_request(n,r)})),dn.prototype.append=Or((function(e,t,r){cr.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)})),dn.prototype.remove=Or((function(e,t,r){cr.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)})),dn.prototype.union=Or((function(e,t,r){cr.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)})),dn.prototype.track_charge=Or((function(e,t,r){if(cr.isNumber(e)||(e=parseFloat(e),!isNaN(e)))return this.append("$transactions",cr.extend({$amount:e},t),r);lr.error("Invalid value passed to mixpanel.people.track_charge - must be a number")})),dn.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},dn.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}lr.error("mixpanel.people.delete_user() requires you to call identify() first")},dn.prototype.toString=function(){return this._mixpanel.toString()+".people"},dn.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),o=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),o&&(e.$had_persisted_distinct_id=o);var i=cr.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:i,endpoint:this._get_config("api_host")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),cr.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),cr.truncate(i,255))},dn.prototype._get_config=function(e){return this._mixpanel.get_config(e)},dn.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},dn.prototype._enqueue=function(e){rn in e?this._mixpanel.persistence._add_to_people_queue(rn,e):nn in e?this._mixpanel.persistence._add_to_people_queue(nn,e):on in e?this._mixpanel.persistence._add_to_people_queue(on,e):sn in e?this._mixpanel.persistence._add_to_people_queue(sn,e):an in e?this._mixpanel.persistence._add_to_people_queue(an,e):ln in e?this._mixpanel.persistence._add_to_people_queue(ln,e):cn in e?this._mixpanel.persistence._add_to_people_queue(cn,e):lr.error("Invalid call to _enqueue():",e)},dn.prototype._flush_one_queue=function(e,t,r,n){var o=this,i=cr.extend({},this._mixpanel.persistence.load_queue(e)),s=i;cr.isUndefined(i)||!cr.isObject(i)||cr.isEmptyObject(i)||(o._mixpanel.persistence._pop_from_people_queue(e,i),o._mixpanel.persistence.save(),n&&(s=n(i)),t.call(o,s,(function(t,n){0===t&&o._mixpanel.persistence._add_to_people_queue(e,i),cr.isUndefined(r)||r(t,n)})))},dn.prototype._flush=function(e,t,r,n,o,i,s){var a=this;this._flush_one_queue(rn,this.set,e),this._flush_one_queue(nn,this.set_once,n),this._flush_one_queue(on,this.unset,i,(function(e){return cr.keys(e)})),this._flush_one_queue(sn,this.increment,t),this._flush_one_queue(cn,this.union,o);var c=this._mixpanel.persistence.load_queue(an);if(!cr.isUndefined(c)&&cr.isArray(c)&&c.length)for(var l,u=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(an,l),cr.isUndefined(r)||r(e,t)},p=c.length-1;p>=0;p--)c=this._mixpanel.persistence.load_queue(an),l=c.pop(),a._mixpanel.persistence.save(),cr.isEmptyObject(l)||a.append(l,u);var d=this._mixpanel.persistence.load_queue(ln);if(!cr.isUndefined(d)&&cr.isArray(d)&&d.length)for(var h,f=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(ln,h),cr.isUndefined(s)||s(e,t)},m=d.length-1;m>=0;m--)d=this._mixpanel.persistence.load_queue(ln),h=d.pop(),a._mixpanel.persistence.save(),cr.isEmptyObject(h)||a.remove(h,f)},dn.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},dn.prototype.set=dn.prototype.set,dn.prototype.set_once=dn.prototype.set_once,dn.prototype.unset=dn.prototype.unset,dn.prototype.increment=dn.prototype.increment,dn.prototype.append=dn.prototype.append,dn.prototype.remove=dn.prototype.remove,dn.prototype.union=dn.prototype.union,dn.prototype.track_charge=dn.prototype.track_charge,dn.prototype.clear_charges=dn.prototype.clear_charges,dn.prototype.delete_user=dn.prototype.delete_user,dn.prototype.toString=dn.prototype.toString;var hn,fn="__mps",mn="__mpso",gn="__mpus",_n="__mpa",yn="__mpap",vn="__mpr",bn="__mpu",kn="$people_distinct_id",Sn="__alias",wn="__timers",In=[fn,mn,gn,_n,yn,vn,bn,kn,Sn,wn],Cn=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(lr.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&cr.localStorage.is_supported()?this.storage=cr.localStorage:this.storage=cr.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};Cn.prototype.properties=function(){var e={};return this.load(),cr.each(this.props,(function(t,r){cr.include(In,r)||(e[r]=t)})),e},Cn.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=cr.extend({},e))}},Cn.prototype.upgrade=function(){var e,t;this.storage===cr.localStorage?(e=cr.cookie.parse(this.name),cr.cookie.remove(this.name),cr.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===cr.cookie&&(t=cr.localStorage.parse(this.name),cr.localStorage.remove(this.name),t&&this.register_once(t))},Cn.prototype.save=function(){this.disabled||this.storage.set(this.name,cr.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},Cn.prototype.load_prop=function(e){return this.load(),this.props[e]},Cn.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},Cn.prototype.clear=function(){this.remove(),this.props={}},Cn.prototype.register_once=function(e,t,r){return!!cr.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),cr.each(e,(function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)}),this),this.save(),!0)},Cn.prototype.register=function(e,t){return!!cr.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),cr.extend(this.props,e),this.save(),!0)},Cn.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},Cn.prototype.update_search_keyword=function(e){this.register(cr.info.searchInfo(e))},Cn.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:cr.info.referringDomain(e)||"$direct"},"")},Cn.prototype.get_referrer_info=function(){return cr.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},Cn.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},Cn.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},Cn.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},Cn.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},Cn.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},Cn.prototype.get_cross_subdomain=function(){return this.cross_subdomain},Cn.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},Cn.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],o=this._get_or_create_queue(rn),i=this._get_or_create_queue(nn),s=this._get_or_create_queue(on),a=this._get_or_create_queue(sn),c=this._get_or_create_queue(cn),l=this._get_or_create_queue(ln,[]),u=this._get_or_create_queue(an,[]);r===fn?(cr.extend(o,n),this._pop_from_people_queue(sn,n),this._pop_from_people_queue(cn,n),this._pop_from_people_queue(on,n)):r===mn?(cr.each(n,(function(e,t){t in i||(i[t]=e)})),this._pop_from_people_queue(on,n)):r===gn?cr.each(n,(function(e){cr.each([o,i,a,c],(function(t){e in t&&delete t[e]})),cr.each(u,(function(t){e in t&&delete t[e]})),s[e]=!0})):r===_n?(cr.each(n,(function(e,t){t in o?o[t]+=e:(t in a||(a[t]=0),a[t]+=e)}),this),this._pop_from_people_queue(on,n)):r===bn?(cr.each(n,(function(e,t){cr.isArray(e)&&(t in c||(c[t]=[]),c[t]=c[t].concat(e))})),this._pop_from_people_queue(on,n)):r===vn?(l.push(n),this._pop_from_people_queue(an,n)):r===yn&&(u.push(n),this._pop_from_people_queue(on,n)),lr.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),lr.log(t),this.save()},Cn.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];cr.isUndefined(r)||cr.each(t,(function(t,n){e===an||e===ln?cr.each(r,(function(e){e[n]===t&&delete e[n]})):delete r[n]}),this)},Cn.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},Cn.prototype._get_queue_key=function(e){return e===rn?fn:e===nn?mn:e===on?gn:e===sn?_n:e===an?yn:e===ln?vn:e===cn?bn:void lr.error("Invalid queue:",e)},Cn.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=cr.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},Cn.prototype.set_event_timer=function(e,t){var r=this.load_prop(wn)||{};r[e]=t,this.props[wn]=r,this.save()},Cn.prototype.remove_event_timer=function(e){var t=(this.load_prop(wn)||{})[e];return cr.isUndefined(t)||(delete this.props[wn][e],this.save()),t};var Mn,xn=function(e,t){throw new Error(e+" not available in this build.")},En=function(e){return e},On=function(){},Tn="mixpanel",Rn="base64",Ln="$device:",Nn=ct.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Dn=!Nn&&-1===tr.indexOf("MSIE")&&-1===tr.indexOf("Mozilla"),An=null;Qt.sendBeacon&&(An=function(){return Qt.sendBeacon.apply(Qt,arguments)});var qn={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},Pn={api_host:"https://api-js.mixpanel.com",api_routes:qn,api_method:"POST",api_transport:"XHR",api_payload_format:Rn,app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:On,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:On,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video",record_canvas:!1,record_collect_fonts:!1,record_idle_timeout_ms:18e5,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:Bt,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},Fn=!1,jn=function(){},Un=function(e,t,r){var n,o=r===Tn?Mn:Mn[r];if(o&&0===hn)n=o;else{if(o&&!cr.isArray(o))return void lr.error("You have already initialized "+r);n=new jn}if(n._cached_groups={},n._init(e,t,r),n.people=new dn,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var i=cr.info.campaignParams(null),s={},a=!1;cr.each(i,(function(e,t){s["initial_"+t]=e,e&&(a=!0)})),a&&n.people.set_once(s)}return pt.DEBUG=pt.DEBUG||n.get_config("debug"),!cr.isUndefined(o)&&cr.isArray(o)&&(n._execute_array.call(n.people,o.people),n._execute_array(o)),n};jn.prototype.init=function(e,t,r){if(cr.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==Tn){var n=Un(e,t,r);return Mn[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},jn.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};"api_payload_format"in t||(t.api_host||Pn.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json");if(this.set_config(cr.extend({},Pn,n,t,{name:r,token:e,callback_fn:(r===Tn?r:Tn+"."+r)+"._jsc"})),this._jsc=On,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(cr.localStorage.is_supported(!0)&&Nn){if(this.init_batchers(),An&&ct.addEventListener){var o=cr.bind((function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})}),this);ct.addEventListener("pagehide",(function(e){e.persisted&&o()})),ct.addEventListener("visibilitychange",(function(){"hidden"===Kt.visibilityState&&o()}))}}else this._batch_requests=!1,lr.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),cr.each(this.get_batcher_configs(),(function(e){lr.log("Clearing batch queue "+e.queue_key),cr.localStorage.remove(e.queue_key)}));this.persistence=this.cookie=new Cn(this.config),this.unpersisted_superprops={},this._gdpr_init();var i=cr.UUID();this.get_distinct_id()||this.register_once({distinct_id:Ln+i,$device_id:i},"");var s=this.get_config("track_pageview");s&&this._init_url_change_tracking(s),this.get_config("record_sessions_percent")>0&&100*Math.random()<=this.get_config("record_sessions_percent")&&this.start_session_recording()},jn.prototype.start_session_recording=Er((function(){if(ct.MutationObserver){var e=cr.bind((function(){this._recorder=this._recorder||new ct.__mp_recorder(this),this._recorder.startRecording()}),this);cr.isUndefined(ct.__mp_recorder)?xn(this.get_config("recorder_src"),e):e()}else lr.critical("Browser does not support MutationObserver; skipping session recording")})),jn.prototype.stop_session_recording=function(){this._recorder?this._recorder.stopRecording():lr.critical("Session recorder module not loaded")},jn.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e},jn.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();t&&(e="https://mixpanel.com/projects/replay-redirect?"+cr.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")}));return e},jn.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},jn.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=cr.info.campaignParams(null);cr.each(e,function(e,t){this.unregister(t)}.bind(this))}},jn.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(Kt.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(cr.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(Kt.referrer)},jn.prototype._dom_loaded=function(){cr.each(this.__dom_loaded_queue,(function(e){this._track_dom.apply(this,e)}),this),this.has_opted_out_tracking()||cr.each(this.__request_queue,(function(e){this._send_request.apply(this,e)}),this),delete this.__dom_loaded_queue,delete this.__request_queue},jn.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!Fn)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},jn.prototype._init_url_change_tracking=function(e){var t="";if(this.track_pageview()&&(t=cr.info.currentUrl()),cr.include(["full-url","url-with-path-and-query-string","url-with-path"],e)){ct.addEventListener("popstate",(function(){ct.dispatchEvent(new Event("mp_locationchange"))})),ct.addEventListener("hashchange",(function(){ct.dispatchEvent(new Event("mp_locationchange"))}));var r=ct.history.pushState;"function"==typeof r&&(ct.history.pushState=function(e,t,n){r.call(ct.history,e,t,n),ct.dispatchEvent(new Event("mp_locationchange"))});var n=ct.history.replaceState;"function"==typeof n&&(ct.history.replaceState=function(e,t,r){n.call(ct.history,e,t,r),ct.dispatchEvent(new Event("mp_locationchange"))}),ct.addEventListener("mp_locationchange",function(){var r=cr.info.currentUrl(),n=!1;("full-url"===e?n=r!==t:"url-with-path-and-query-string"===e?n=r.split("#")[0]!==t.split("#")[0]:"url-with-path"===e&&(n=r.split("#")[0].split("?")[0]!==t.split("#")[0].split("?")[0]),n)&&(this.track_pageview()&&(t=r))}.bind(this))}},jn.prototype._prepare_callback=function(e,t){if(cr.isUndefined(e))return null;if(Nn){return function(r){e(r,t)}}var r=this._jsc,n=""+Math.floor(1e8*Math.random()),o=this.get_config("callback_fn")+"["+n+"]";return r[n]=function(o){delete r[n],e(o,t)},o},jn.prototype._send_request=function(e,t,r,n){var o=!0;if(Dn)return this.__request_queue.push(arguments),o;var i={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;n||!cr.isFunction(r)&&"string"!=typeof r||(n=r,r=null),r=cr.extend(i,r||{}),Nn||(r.method="GET");var a="POST"===r.method,c=An&&a&&"sendbeacon"===r.transport.toLowerCase(),l=r.verbose;t.verbose&&(l=!0),this.get_config("test")&&(t.test=1),l&&(t.verbose=1),this.get_config("img")&&(t.img=1),Nn||(n?t.callback=n:(l||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),e+="?"+cr.HTTPBuildQuery(t);var u=this;if("img"in t){var p=Kt.createElement("img");p.src=e,Kt.body.appendChild(p)}else if(c){try{o=An(e,s)}catch(e){u.report_error(e),o=!1}try{n&&n(o?1:0)}catch(e){u.report_error(e)}}else if(Nn)try{var d=new XMLHttpRequest;d.open(r.method,e,!0);var h=this.get_config("xhr_headers");if(a&&(h["Content-Type"]="application/x-www-form-urlencoded"),cr.each(h,(function(e,t){d.setRequestHeader(t,e)})),r.timeout_ms&&void 0!==d.timeout){d.timeout=r.timeout_ms;var f=(new Date).getTime()}d.withCredentials=!0,d.onreadystatechange=function(){var e;if(4===d.readyState)if(200===d.status){if(n)if(l){var t;try{t=cr.JSONDecode(d.responseText)}catch(e){if(u.report_error(e),!r.ignore_json_errors)return;t=d.responseText}n(t)}else n(Number(d.responseText))}else if(e=d.timeout&&!d.status&&(new Date).getTime()-f>=d.timeout?"timeout":"Bad HTTP status: "+d.status+" "+d.statusText,u.report_error(e),n)if(l){var o=d.responseHeaders||{};n({status:0,httpStatusCode:d.status,error:e,retryAfter:o["Retry-After"]})}else n(0)},d.send(s)}catch(e){u.report_error(e),o=!1}else{var m=Kt.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var g=Kt.getElementsByTagName("script")[0];g.parentNode.insertBefore(m,g)}return o},jn.prototype._execute_array=function(e){var t,r=[],n=[],o=[];cr.each(e,(function(e){e&&(t=e[0],cr.isArray(t)?o.push(e):"function"==typeof e?e.call(this):cr.isArray(e)&&"alias"===t?r.push(e):cr.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?o.push(e):n.push(e))}),this);var i=function(e,t){cr.each(e,(function(e){if(cr.isArray(e[0])){var r=t;cr.each(e,(function(e){r=r[e[0]].apply(r,e.slice(1))}))}else this[e[0]].apply(this,e.slice(1))}),t)};i(r,this),i(n,this),i(o,this)},jn.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},jn.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token"),t=this.get_config("api_routes");return this._batcher_configs=this._batcher_configs||{events:{type:"events",endpoint:"/"+t.track,queue_key:e+"_ev"},people:{type:"people",endpoint:"/"+t.engage,queue_key:e+"_pp"},groups:{type:"groups",endpoint:"/"+t.groups,queue_key:e+"_gr"}},this._batcher_configs},jn.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=cr.bind((function(e){return new Hr(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:cr.bind((function(t,r,n){this._send_request(this.get_config("api_host")+e.endpoint,this._encode_data_for_request(t),r,this._prepare_callback(n,t))}),this),beforeSendHook:cr.bind((function(t){return this._run_hook("before_send_"+e.type,t)}),this),stopAllBatchingFunc:cr.bind(this.stop_batch_senders,this),usePersistence:!0})}),this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},jn.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,cr.each(this.request_batchers,(function(e){e.start()})))},jn.prototype.stop_batch_senders=function(){this._batch_requests=!1,cr.each(this.request_batchers,(function(e){e.stop(),e.clear()}))},jn.prototype.push=function(e){this._execute_array([e])},jn.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},jn.prototype._encode_data_for_request=function(e){var t=cr.JSONEncode(e);return this.get_config("api_payload_format")===Rn&&(t=cr.base64Encode(t)),{data:t}},jn.prototype._track_or_batch=function(e,t){var r=cr.truncate(e.data,255),n=e.endpoint,o=e.batcher,i=e.should_send_immediately,s=e.send_request_options||{};t=t||On;var a=!0,c=cr.bind((function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r?(lr.log("MIXPANEL REQUEST:"),lr.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null}),this);return this._batch_requests&&!i?o.enqueue(r).then((function(e){e?t(1,r):c()})):a=c(),a&&r},jn.prototype.track=Er((function(e,t,r,n){n||"function"!=typeof r||(n=r,r=null);var o=(r=r||{}).transport;o&&(r.transport=o);var i=r.send_immediately;if("function"!=typeof n&&(n=On),cr.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=cr.extend({},t)).token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!cr.isUndefined(s)){var a=(new Date).getTime()-s;t.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?cr.info.marketingParams():{};t=cr.extend({},cr.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var l=this.get_config("property_blacklist");cr.isArray(l)?cr.each(l,(function(e){delete t[e]})):this.report_error("Invalid value for property_blacklist config: "+l);var u={event:e,properties:t};return this._track_or_batch({type:"events",data:u,endpoint:this.get_config("api_host")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:i,send_request_options:r},n)}n(0)}})),jn.prototype.set_group=Er((function(e,t,r){cr.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)})),jn.prototype.add_group=Er((function(e,t,r){var n=this.get_property(e),o={};return void 0===n?(o[e]=[t],this.register(o)):-1===n.indexOf(t)&&(n.push(t),o[e]=n,this.register(o)),this.people.union(e,t,r)})),jn.prototype.remove_group=Er((function(e,t,r){var n=this.get_property(e);if(void 0!==n){var o=n.indexOf(t);o>-1&&(n.splice(o,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this.people.remove(e,t,r)})),jn.prototype.track_with_groups=Er((function(e,t,r,n){var o=cr.extend({},t||{});return cr.each(r,(function(e,t){null!=e&&(o[t]=e)})),this.track(e,o,n)})),jn.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},jn.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},jn.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return void 0!==n&&n._group_key===e&&n._group_id===t||((n=new pn)._init(this,e,t),this._cached_groups[r]=n),n},jn.prototype.track_pageview=Er((function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=cr.extend(cr.info.mpPageViewProperties(),cr.info.campaignParams(),cr.info.clickParams()),o=cr.extend({},n,e);return this.track(r,o)})),jn.prototype.track_links=function(){return this._track_dom.call(this,en,arguments)},jn.prototype.track_forms=function(){return this._track_dom.call(this,tn,arguments)},jn.prototype.time_event=function(e){cr.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())};var zn={persistent:!0},Bn=function(e){var t;return t=cr.isObject(e)?e:cr.isUndefined(e)?{}:{days:e},cr.extend({},zn,t)};jn.prototype.register=function(e,t){var r=Bn(t);r.persistent?this.persistence.register(e,r.days):cr.extend(this.unpersisted_superprops,e)},jn.prototype.register_once=function(e,t,r){var n=Bn(r);n.persistent?this.persistence.register_once(e,t,n.days):(void 0===t&&(t="None"),cr.each(e,(function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)}),this))},jn.prototype.unregister=function(e,t){(t=Bn(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},jn.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},jn.prototype.identify=function(e,t,r,n,o,i,s,a){var c=this.get_distinct_id();if(e&&c!==e){if("string"==typeof e&&0===e.indexOf(Ln))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var l=c;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}e!==c&&e!==this.get_property(Sn)&&(this.unregister(Sn),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,o,i,s,a),e!==c&&this.track("$identify",{distinct_id:e,$anon_distinct_id:c},{skip_hooks:!0})},jn.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=cr.UUID();this.register_once({distinct_id:Ln+e,$device_id:e},"")},jn.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},jn.prototype.alias=function(e,t){if(e===this.get_property(kn))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return cr.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(Sn,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},(function(){r.identify(e)}))):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},jn.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},jn.prototype.set_config=function(e){cr.isObject(e)&&(cr.extend(this.config,e),e.batch_size&&cr.each(this.request_batchers,(function(e){e.resetBatchSize()})),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),pt.DEBUG=pt.DEBUG||this.get_config("debug"))},jn.prototype.get_config=function(e){return this.config[e]},jn.prototype._run_hook=function(e){var t=(this.config.hooks[e]||En).apply(this,Gt.call(arguments,1));return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},jn.prototype.get_property=function(e){return this.persistence.load_prop([e])},jn.prototype.toString=function(){var e=this.get_config("name");return e!==Tn&&(e=Tn+"."+e),e},jn.prototype._event_is_disabled=function(e){return cr.isBlockedUA(tr)||this._flags.disable_all_events||cr.include(this.__disabled_events,e)},jn.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&cr.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!cr.cookie.get("mp_optout")||(cr.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},jn.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?this.stop_batch_senders():this._batchers_were_started&&this.start_batch_senders()},jn.prototype._gdpr_call_func=function(e,t){return t=cr.extend({track:cr.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),cr.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},jn.prototype.opt_in_tracking=function(e){e=cr.extend({enable_persistence:!0},e),this._gdpr_call_func(Ir,e),this._gdpr_update_persistence(e)},jn.prototype.opt_out_tracking=function(e){(e=cr.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(Cr,e),this._gdpr_update_persistence(e)},jn.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(Mr,e)},jn.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(xr,e)},jn.prototype.clear_opt_in_out_tracking=function(e){e=cr.extend({enable_persistence:!0},e),this._gdpr_call_func(Rr,e),this._gdpr_update_persistence(e)},jn.prototype.report_error=function(e,t){lr.error.apply(lr.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){lr.error(t)}},jn.prototype.init=jn.prototype.init,jn.prototype.reset=jn.prototype.reset,jn.prototype.disable=jn.prototype.disable,jn.prototype.time_event=jn.prototype.time_event,jn.prototype.track=jn.prototype.track,jn.prototype.track_links=jn.prototype.track_links,jn.prototype.track_forms=jn.prototype.track_forms,jn.prototype.track_pageview=jn.prototype.track_pageview,jn.prototype.register=jn.prototype.register,jn.prototype.register_once=jn.prototype.register_once,jn.prototype.unregister=jn.prototype.unregister,jn.prototype.identify=jn.prototype.identify,jn.prototype.alias=jn.prototype.alias,jn.prototype.name_tag=jn.prototype.name_tag,jn.prototype.set_config=jn.prototype.set_config,jn.prototype.get_config=jn.prototype.get_config,jn.prototype.get_property=jn.prototype.get_property,jn.prototype.get_distinct_id=jn.prototype.get_distinct_id,jn.prototype.toString=jn.prototype.toString,jn.prototype.opt_out_tracking=jn.prototype.opt_out_tracking,jn.prototype.opt_in_tracking=jn.prototype.opt_in_tracking,jn.prototype.has_opted_out_tracking=jn.prototype.has_opted_out_tracking,jn.prototype.has_opted_in_tracking=jn.prototype.has_opted_in_tracking,jn.prototype.clear_opt_in_out_tracking=jn.prototype.clear_opt_in_out_tracking,jn.prototype.get_group=jn.prototype.get_group,jn.prototype.set_group=jn.prototype.set_group,jn.prototype.add_group=jn.prototype.add_group,jn.prototype.remove_group=jn.prototype.remove_group,jn.prototype.track_with_groups=jn.prototype.track_with_groups,jn.prototype.start_batch_senders=jn.prototype.start_batch_senders,jn.prototype.stop_batch_senders=jn.prototype.stop_batch_senders,jn.prototype.start_session_recording=jn.prototype.start_session_recording,jn.prototype.stop_session_recording=jn.prototype.stop_session_recording,jn.prototype.get_session_recording_properties=jn.prototype.get_session_recording_properties,jn.prototype.get_session_replay_url=jn.prototype.get_session_replay_url,jn.prototype.DEFAULT_API_ROUTES=qn,Cn.prototype.properties=Cn.prototype.properties,Cn.prototype.update_search_keyword=Cn.prototype.update_search_keyword,Cn.prototype.update_referrer_info=Cn.prototype.update_referrer_info,Cn.prototype.get_cross_subdomain=Cn.prototype.get_cross_subdomain,Cn.prototype.clear=Cn.prototype.clear;var $n={},Wn=function(){Mn.init=function(e,t,r){if(r)return Mn[r]||(Mn[r]=$n[r]=Un(e,t,r),Mn[r]._loaded()),Mn[r];var n=Mn;$n[Tn]?n=$n[Tn]:e&&((n=Un(e,t,Tn))._loaded(),$n[Tn]=n),Mn=n,1===hn&&(ct[Tn]=Mn),cr.each($n,(function(e,t){t!==Tn&&(Mn[t]=e)})),Mn._=cr}};var Hn=(xn=function(e,t){t()},hn=0,Mn=new jn,Wn(),Mn.init(),function(){function e(){e.done||(e.done=!0,Fn=!0,Dn=!1,cr.each($n,(function(e){e._dom_loaded()})))}if(Kt.addEventListener)"complete"===Kt.readyState?e():Kt.addEventListener("DOMContentLoaded",e,!1);else if(Kt.attachEvent){Kt.attachEvent("onreadystatechange",e);var t=!1;try{t=null===ct.frameElement}catch(e){}Kt.documentElement.doScroll&&t&&function t(){try{Kt.documentElement.doScroll("left")}catch(e){return void setTimeout(t,1)}e()}()}cr.register_event(ct,"load",e,!0)}(),Mn);const Vn="rid",Gn="rozmovaAnalyticsParams",Jn=["utm_source","utm_medium","utm_campaign","utm_campaign_id","utm_advertiser_id","utm_adset_id","utm_adset_name","utm_ad_id","utm_ad_name","utm_keyword"],Yn="G-GYQLL028VQ",Xn="https://tagging.clearly.help",Qn=["en","uk","pl","es","ru"],Kn=e=>new URLSearchParams(window.location.search).get(e);function Zn(){const e=navigator.userAgent;return e.indexOf("Edg")>-1?"Microsoft Edge":e.indexOf("Chrome")>-1?"Chrome":e.indexOf("Firefox")>-1?"Firefox":e.indexOf("Safari")>-1?"Safari":e.indexOf("Opera")>-1?"Opera":e.indexOf("Trident")>-1||e.indexOf("MSIE")>-1?"Internet Explorer":"Unknown"}function eo(){const e=navigator.userAgent;return/Mobi|Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)?"Mobile":"Desktop"}function to(){const e=navigator.userAgent;return e.includes("Win")?"Windows":e.includes("Mac")?"macOS":e.includes("X11")||e.includes("Linux")?"Linux":e.includes("Android")?"Android":e.includes("like Mac")?"iOS":"Unknown OS"}const ro=()=>{const e=window.location.hostname.split("."),t=e.length;return 1===e.length?e[0]:e.slice(t-2,t).join(".")},no=["accounts.google.com","appleid.apple.com","checkout.stripe.com"],oo=()=>{const e=document.referrer;if(e){const t=new URL(e);if([...no,ro()].some((e=>t.hostname.includes(e))))return null}return e};function io(){const e=oo();if(!e)return null;const t={"google.com":"q","bing.com":"q","yahoo.com":"p","duckduckgo.com":"q","ask.com":"q","baidu.com":"wd","yandex.com":"text"},r=new URL(e);for(const[e,n]of Object.entries(t))if(r.hostname.includes(e)){const e=r.searchParams.get(n);return e?decodeURIComponent(e):null}return null}const so=()=>{const e=n.get("_ga");if(!e)return"";const t=e.split(".");return t[2]+"."+t[3]};function ao(){const e=document.cookie.match(/_ga_GYQLL028VQ=GS\d\.\d\.(.+?)(?:;|$)/),t=e?.[1].split(".");return t?t[0]:null}const co=e=>{const t=ro();n.set(Vn,e,{domain:t}),localStorage.setItem(Vn,e)},lo=()=>{const e=((e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),""))();return co(e),e},uo=()=>{const e=Kn(Vn);return e&&co(e),e||localStorage.getItem(Vn)||n.get(Vn)||lo()},po="opt-in",ho="opt-out",fo="show--consent",mo="show--preferences",go="disable--interaction",_o="data-category",yo="div",vo="button",bo="aria-hidden",ko="btn-group",So="click",wo="data-role",Io="consentModal",Co="preferencesModal";const Mo=new class{constructor(){this.t={mode:po,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:[],v:!1,h:null,C:null,S:null,M:"",D:!0,T:!1,k:!1,A:!1,N:!1,H:[],V:!1,I:!0,L:[],j:!1,F:"",P:!1,O:[],R:[],B:[],G:[],J:!1,U:!1,$:!1,q:[],K:[],W:[],X:{},Y:{},Z:{},ee:{},te:{},oe:[]},this.ne={ae:{},se:{}},this.ce={},this.re={ie:"cc:onFirstConsent",le:"cc:onConsent",de:"cc:onChange",fe:"cc:onModalShow",_e:"cc:onModalHide",ue:"cc:onModalReady"}}},xo=(e,t)=>e.indexOf(t),Eo=(e,t)=>-1!==xo(e,t),Oo=e=>Array.isArray(e),To=e=>"string"==typeof e,Ro=e=>!!e&&"object"==typeof e&&!Oo(e),Lo=e=>"function"==typeof e,No=e=>Object.keys(e),Do=e=>Array.from(new Set(e)),Ao=()=>document.activeElement,qo=e=>e.preventDefault(),Po=(e,t)=>e.querySelectorAll(t),Fo=e=>{const t=document.createElement(e);return e===vo&&(t.type=e),t},jo=(e,t,r)=>e.setAttribute(t,r),Uo=(e,t,r)=>{e.removeAttribute(r?"data-"+t:t)},zo=(e,t,r)=>e.getAttribute(r?"data-"+t:t),Bo=(e,t)=>e.appendChild(t),$o=(e,t)=>e.classList.add(t),Wo=(e,t)=>$o(e,"cm__"+t),Ho=(e,t)=>$o(e,"pm__"+t),Vo=(e,t)=>e.classList.remove(t),Go=e=>{if("object"!=typeof e)return e;if(e instanceof Date)return new Date(e.getTime());let t=Array.isArray(e)?[]:{};for(let r in e){let n=e[r];t[r]=Go(n)}return t},Jo=(e,t)=>dispatchEvent(new CustomEvent(e,{detail:t})),Yo=(e,t,r,n)=>{e.addEventListener(t,r),n&&Mo.o.m.push({pe:e,me:t,ge:r})},Xo=(e,t)=>{const r=e||[],n=t||[];return r.filter((e=>!Eo(n,e))).concat(n.filter((e=>!Eo(r,e))))},Qo=e=>{Mo.o.R=Do(e),Mo.o.F=(()=>{let e="custom";const{R:t,O:r,B:n}=Mo.o,o=t.length;return o===r.length?e="all":o===n.length&&(e="necessary"),e})()},Ko=(e,t,r,n)=>{const o="accept-",{show:i,showPreferences:s,hide:a,hidePreferences:c,acceptCategory:l}=t,u=e||document,p=e=>Po(u,`[data-cc="${e}"]`),d=(e,t)=>{qo(e),l(t),c(),a()},h=p("show-preferencesModal"),f=p("show-consentModal"),m=p(o+"all"),g=p(o+"necessary"),_=p(o+"custom"),y=Mo.t.lazyHtmlGeneration;for(const e of h)jo(e,"aria-haspopup","dialog"),Yo(e,So,(e=>{qo(e),s()})),y&&(Yo(e,"mouseenter",(e=>{qo(e),Mo.o.N||r(t,n)}),!0),Yo(e,"focus",(()=>{Mo.o.N||r(t,n)})));for(let e of f)jo(e,"aria-haspopup","dialog"),Yo(e,So,(e=>{qo(e),i(!0)}),!0);for(let e of m)Yo(e,So,(e=>{d(e,"all")}),!0);for(let e of _)Yo(e,So,(e=>{d(e)}),!0);for(let e of g)Yo(e,So,(e=>{d(e,[])}),!0)},Zo=(e,t)=>{e&&(t&&(e.tabIndex=-1),e.focus(),t&&e.removeAttribute("tabindex"))},ei=(e,t)=>{const r=n=>{n.target.removeEventListener("transitionend",r),"opacity"===n.propertyName&&"1"===getComputedStyle(e).opacity&&Zo((e=>1===e?Mo.ne.be:Mo.ne.ve)(t))};Yo(e,"transitionend",r)};let ti;const ri=e=>{clearTimeout(ti),e?$o(Mo.ne.ye,go):ti=setTimeout((()=>{Vo(Mo.ne.ye,go)}),500)},ni=["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 "],oi=(e=0,t=1.5)=>`<svg viewBox="0 0 24 24" stroke-width="${t}"><path d="${ni[e]}"/></svg>`,ii=e=>{const t=Mo.ne,r=Mo.o;(e=>{const n=e===t.he,o=r.i.disablePageInteraction?t.ye:n?t.Ce:t.ye;Yo(o,"keydown",(t=>{if("Tab"!==t.key||!(n?r.k&&!r.A:r.A))return;const o=Ao(),i=n?r.q:r.K;0!==i.length&&(t.shiftKey?o!==i[0]&&e.contains(o)||(qo(t),Zo(i[1])):o!==i[1]&&e.contains(o)||(qo(t),Zo(i[0])))}),!0)})(e)},si=["[href]",vo,"input","details","[tabindex]"].map((e=>e+':not([tabindex="-1"])')).join(","),ai=e=>{const{o:t,ne:r}=Mo,n=(e,t)=>{const r=Po(e,si);t[0]=r[0],t[1]=r[r.length-1]};1===e&&t.T&&n(r.he,t.q),2===e&&t.N&&n(r.we,t.K)},ci=(e,t,r)=>{const{de:n,le:o,ie:i,_e:s,ue:a,fe:c}=Mo.ce,l=Mo.re;if(t){const n={modalName:t};return e===l.fe?Lo(c)&&c(n):e===l._e?Lo(s)&&s(n):(n.modal=r,Lo(a)&&a(n)),Jo(e,n)}const u={cookie:Mo.o.p};e===l.ie?Lo(i)&&i(Go(u)):e===l.le?Lo(o)&&o(Go(u)):(u.changedCategories=Mo.o.L,u.changedServices=Mo.o.ee,Lo(n)&&n(Go(u))),Jo(e,Go(u))},li=(e,t)=>{try{return e()}catch(e){return!t&&console.warn("CookieConsent:",e),!1}},ui=e=>{const{Y:t,ee:r,O:n,X:o,oe:i,p:s,L:a}=Mo.o;for(const e of n){const n=r[e]||t[e]||[];for(const r of n){const n=o[e][r];if(!n)continue;const{onAccept:i,onReject:s}=n;!n.Se&&Eo(t[e],r)?(n.Se=!0,Lo(i)&&i()):n.Se&&!Eo(t[e],r)&&(n.Se=!1,Lo(s)&&s())}}if(!Mo.t.manageScriptTags)return;const c=i,l=e||s.categories||[],u=(e,n)=>{if(n>=e.length)return;const o=i[n];if(o.xe)return u(e,n+1);const s=o.Me,c=o.De,p=o.Te,d=Eo(l,c),h=!!p&&Eo(t[c],p);if(!p&&!o.ke&&d||!p&&o.ke&&!d&&Eo(a,c)||p&&!o.ke&&h||p&&o.ke&&!h&&Eo(r[c]||[],p)){o.xe=!0;const t=zo(s,"type",!0);Uo(s,"type",!!t),Uo(s,_o);let r=zo(s,"src",!0);r&&Uo(s,"src",!0);const i=Fo("script");i.textContent=s.innerHTML;for(const{nodeName:e}of s.attributes)jo(i,e,s[e]||zo(s,e));t&&(i.type=t),r?i.src=r:r=s.src;const a=!!r&&(!t||["text/javascript","module"].includes(t));if(a&&(i.onload=i.onerror=()=>{u(e,++n)}),s.replaceWith(i),a)return}u(e,++n)};u(c,0)},pi="bottom",di="left",hi="center",fi="right",mi="inline",gi="wide",_i="pm--",yi=["middle","top",pi],vi=[di,hi,fi],bi={box:{Ee:[gi,mi],Ae:yi,Ne:vi,He:pi,Ve:fi},cloud:{Ee:[mi],Ae:yi,Ne:vi,He:pi,Ve:hi},bar:{Ee:[mi],Ae:yi.slice(1),Ne:[],He:pi,Ve:""}},ki={box:{Ee:[],Ae:[],Ne:[],He:"",Ve:""},bar:{Ee:[gi],Ae:[],Ne:[di,fi],He:"",Ve:di}},Si=e=>{const t=Mo.o.i.guiOptions,r=t&&t.consentModal,n=t&&t.preferencesModal;0===e&&wi(Mo.ne.he,bi,r,"cm--","box","cm"),1===e&&wi(Mo.ne.we,ki,n,_i,"box","pm")},wi=(e,t,r,n,o,i)=>{e.className=i;const s=r&&r.layout,a=r&&r.position,c=r&&r.flipButtons,l=!r||!1!==r.equalWeightButtons,u=s&&s.split(" ")||[],p=u[0],d=u[1],h=p in t?p:o,f=t[h],m=Eo(f.Ee,d)&&d,g=a&&a.split(" ")||[],_=g[0],y=n===_i?g[0]:g[1],v=Eo(f.Ae,_)?_:f.He,b=Eo(f.Ne,y)?y:f.Ve,k=t=>{t&&$o(e,n+t)};k(h),k(m),k(v),k(b),c&&k("flip");const S=i+"__btn--secondary";if("cm"===i){const{Ie:e,Le:t}=Mo.ne;e&&(l?Vo(e,S):$o(e,S)),t&&(l?Vo(t,S):$o(t,S))}else{const{je:e}=Mo.ne;e&&(l?Vo(e,S):$o(e,S))}},Ii=(e,t)=>{const r=Mo.o,n=Mo.ne,{hide:o,hidePreferences:i,acceptCategory:s}=e,a=e=>{s(e),i(),o()},c=r.u&&r.u.preferencesModal;if(!c)return;const l=c.title,u=c.closeIconLabel,p=c.acceptAllBtn,d=c.acceptNecessaryBtn,h=c.savePreferencesBtn,f=c.sections||[],m=p||d||h;if(n.Fe)n.Pe=Fo(yo),Ho(n.Pe,"body");else{n.Fe=Fo(yo),$o(n.Fe,"pm-wrapper");const e=Fo("div");$o(e,"pm-overlay"),Bo(n.Fe,e),Yo(e,So,i),n.we=Fo(yo),$o(n.we,"pm"),jo(n.we,"role","dialog"),jo(n.we,bo,!0),jo(n.we,"aria-modal",!0),jo(n.we,"aria-labelledby","pm__title"),Yo(n.ye,"keydown",(e=>{27===e.keyCode&&i()}),!0),n.Oe=Fo(yo),Ho(n.Oe,"header"),n.Re=Fo("h2"),Ho(n.Re,"title"),n.Re.id="pm__title",n.Be=Fo(vo),Ho(n.Be,"close-btn"),jo(n.Be,"aria-label",c.closeIconLabel||""),Yo(n.Be,So,i),n.Ge=Fo("span"),n.Ge.innerHTML=oi(),Bo(n.Be,n.Ge),n.Je=Fo(yo),Ho(n.Je,"body"),n.Ue=Fo(yo),Ho(n.Ue,"footer");var g=Fo(yo);$o(g,"btns");var _=Fo(yo),y=Fo(yo);Ho(_,ko),Ho(y,ko),Bo(n.Ue,_),Bo(n.Ue,y),Bo(n.Oe,n.Re),Bo(n.Oe,n.Be),n.ve=Fo(yo),jo(n.ve,"tabIndex",-1),Bo(n.we,n.ve),Bo(n.we,n.Oe),Bo(n.we,n.Je),m&&Bo(n.we,n.Ue),Bo(n.Fe,n.we)}let v;l&&(n.Re.innerHTML=l,u&&jo(n.Be,"aria-label",u)),f.forEach(((e,t)=>{const o=e.title,i=e.description,s=e.linkedCategory,a=s&&r.P[s],l=e.cookieTable,u=l&&l.body,p=l&&l.caption,d=u&&u.length>0,h=!!a,f=h&&r.X[s],m=Ro(f)&&No(f)||[],g=h&&(!!i||!!d||No(f).length>0);var _=Fo(yo);if(Ho(_,"section"),g||i){var y=Fo(yo);Ho(y,"section-desc-wrapper")}let b=m.length;if(g&&b>0){const e=Fo(yo);Ho(e,"section-services");for(const t of m){const r=f[t],n=r&&r.label||t,o=Fo(yo),i=Fo(yo),c=Fo(yo),l=Fo(yo);Ho(o,"service"),Ho(l,"service-title"),Ho(i,"service-header"),Ho(c,"service-icon");const u=Ci(n,t,a,!0,s);l.innerHTML=n,Bo(i,c),Bo(i,l),Bo(o,i),Bo(o,u),Bo(e,o)}Bo(y,e)}if(o){var k=Fo(yo),S=Fo(h?vo:yo);if(Ho(k,"section-title-wrapper"),Ho(S,"section-title"),S.innerHTML=o,Bo(k,S),h){const e=Fo("span");e.innerHTML=oi(2,3.5),Ho(e,"section-arrow"),Bo(k,e),_.className+="--toggle";const t=Ci(o,s,a);let r=c.serviceCounterLabel;if(b>0&&To(r)){let e=Fo("span");Ho(e,"badge"),Ho(e,"service-counter"),jo(e,bo,!0),jo(e,"data-servicecounter",b),r&&(r=r.split("|"),r=r.length>1&&b>1?r[1]:r[0],jo(e,"data-counterlabel",r)),e.innerHTML=b+(r?" "+r:""),Bo(S,e)}if(g){Ho(_,"section--expandable");var w=s+"-desc";jo(S,"aria-expanded",!1),jo(S,"aria-controls",w)}Bo(k,t)}else jo(S,"role","heading"),jo(S,"aria-level","3");Bo(_,k)}if(i){var I=Fo("p");Ho(I,"section-desc"),I.innerHTML=i,Bo(y,I)}if(g&&(jo(y,bo,"true"),y.id=w,((e,t,r)=>{Yo(S,So,(()=>{t.classList.contains("is-expanded")?(Vo(t,"is-expanded"),jo(r,"aria-expanded","false"),jo(e,bo,"true")):($o(t,"is-expanded"),jo(r,"aria-expanded","true"),jo(e,bo,"false"))}))})(y,_,S),d)){const e=Fo("table"),r=Fo("thead"),o=Fo("tbody");if(p){const t=Fo("caption");Ho(t,"table-caption"),t.innerHTML=p,e.appendChild(t)}Ho(e,"section-table"),Ho(r,"table-head"),Ho(o,"table-body");const i=l.headers,s=No(i),a=n.$e.createDocumentFragment(),c=Fo("tr");for(const e of s){const r=i[e],n=Fo("th");n.id="cc__row-"+r+t,jo(n,"scope","col"),Ho(n,"table-th"),n.innerHTML=r,Bo(a,n)}Bo(c,a),Bo(r,c);const d=n.$e.createDocumentFragment();for(const e of u){const r=Fo("tr");Ho(r,"table-tr");for(const n of s){const o=i[n],s=e[n],a=Fo("td"),c=Fo(yo);Ho(a,"table-td"),jo(a,"data-column",o),jo(a,"headers","cc__row-"+o+t),c.insertAdjacentHTML("beforeend",s),Bo(a,c),Bo(r,a)}Bo(d,r)}Bo(o,d),Bo(e,r),Bo(e,o),Bo(y,e)}(g||i)&&Bo(_,y);const C=n.Pe||n.Je;h?(v||(v=Fo(yo),Ho(v,"section-toggles")),v.appendChild(_)):v=null,Bo(C,v||_)})),p&&(n.ze||(n.ze=Fo(vo),Ho(n.ze,"btn"),jo(n.ze,wo,"all"),Bo(_,n.ze),Yo(n.ze,So,(()=>a("all")))),n.ze.innerHTML=p),d&&(n.je||(n.je=Fo(vo),Ho(n.je,"btn"),jo(n.je,wo,"necessary"),Bo(_,n.je),Yo(n.je,So,(()=>a([])))),n.je.innerHTML=d),h&&(n.qe||(n.qe=Fo(vo),Ho(n.qe,"btn"),Ho(n.qe,"btn--secondary"),jo(n.qe,wo,"save"),Bo(y,n.qe),Yo(n.qe,So,(()=>a()))),n.qe.innerHTML=h),n.Pe&&(n.we.replaceChild(n.Pe,n.Je),n.Je=n.Pe),Si(1),r.N||(r.N=!0,ci(Mo.re.ue,Co,n.we),t(e),Bo(n.Ce,n.Fe),ii(n.we),setTimeout((()=>$o(n.Fe,"cc--anim")),100)),ai(2)};function Ci(e,t,r,n,o){const i=Mo.o,s=Mo.ne,a=Fo("label"),c=Fo("input"),l=Fo("span"),u=Fo("span"),p=Fo("span"),d=Fo("span"),h=Fo("span");if(d.innerHTML=oi(1,3),h.innerHTML=oi(0,3),c.type="checkbox",$o(a,"section__toggle-wrapper"),$o(c,"section__toggle"),$o(d,"toggle__icon-on"),$o(h,"toggle__icon-off"),$o(l,"toggle__icon"),$o(u,"toggle__icon-circle"),$o(p,"toggle__label"),jo(l,bo,"true"),n?($o(a,"toggle-service"),jo(c,_o,o),s.se[o][t]=c):s.ae[t]=c,n?(e=>{Yo(c,"change",(()=>{const t=s.se[e],r=s.ae[e];i.Z[e]=[];for(let r in t){const n=t[r];n.checked&&i.Z[e].push(n.value)}r.checked=i.Z[e].length>0}))})(o):(e=>{Yo(c,So,(()=>{const t=s.se[e],r=c.checked;i.Z[e]=[];for(let n in t)t[n].checked=r,r&&i.Z[e].push(n)}))})(t),c.value=t,p.textContent=e.replace(/<.*>.*<\/.*>/gm,""),Bo(u,h),Bo(u,d),Bo(l,u),i.D)(r.readOnly||r.enabled)&&(c.checked=!0);else if(n){const e=i.Y[o];c.checked=r.readOnly||Eo(e,t)}else Eo(i.R,t)&&(c.checked=!0);return r.readOnly&&(c.disabled=!0),Bo(a,c),Bo(a,l),Bo(a,p),a}const Mi=()=>{const e=Fo("span");return Mo.ne.Ke||(Mo.ne.Ke=e),e},xi=(e,t)=>{const r=Mo.o,n=Mo.ne,{hide:o,showPreferences:i,acceptCategory:s}=e,a=r.u&&r.u.consentModal;if(!a)return;const c=a.acceptAllBtn,l=a.acceptNecessaryBtn,u=a.showPreferencesBtn,p=a.closeIconLabel,d=a.footer,h=a.label,f=a.title,m=e=>{o(),s(e)};if(!n.Qe){n.Qe=Fo(yo),n.he=Fo(yo),n.We=Fo(yo),n.Xe=Fo(yo),n.Ye=Fo(yo),$o(n.Qe,"cm-wrapper"),$o(n.he,"cm"),Wo(n.We,"body"),Wo(n.Xe,"texts"),Wo(n.Ye,"btns"),jo(n.he,"role","dialog"),jo(n.he,"aria-modal","true"),jo(n.he,bo,"false"),jo(n.he,"aria-describedby","cm__desc"),h?jo(n.he,"aria-label",h):f&&jo(n.he,"aria-labelledby","cm__title");const e="box",t=r.i.guiOptions,o=t&&t.consentModal,i=(o&&o.layout||e).split(" ")[0]===e;f&&p&&i&&(n.Le||(n.Le=Fo(vo),n.Le.innerHTML=oi(),Wo(n.Le,"btn"),Wo(n.Le,"btn--close"),Yo(n.Le,So,(()=>{m([])})),Bo(n.We,n.Le)),jo(n.Le,"aria-label",p)),Bo(n.We,n.Xe),(c||l||u)&&Bo(n.We,n.Ye),n.be=Fo(yo),jo(n.be,"tabIndex",-1),Bo(n.he,n.be),Bo(n.he,n.We),Bo(n.Qe,n.he)}f&&(n.Ze||(n.Ze=Fo("h2"),n.Ze.className=n.Ze.id="cm__title",Bo(n.Xe,n.Ze)),n.Ze.innerHTML=f);let g=a.description;if(g&&(r.V&&(g=g.replace("{{revisionMessage}}",r.I?"":a.revisionMessage||"")),n.et||(n.et=Fo("p"),n.et.className=n.et.id="cm__desc",Bo(n.Xe,n.et)),n.et.innerHTML=g),c&&(n.tt||(n.tt=Fo(vo),Bo(n.tt,Mi()),Wo(n.tt,"btn"),jo(n.tt,wo,"all"),Yo(n.tt,So,(()=>{m("all")}))),n.tt.firstElementChild.innerHTML=c),l&&(n.Ie||(n.Ie=Fo(vo),Bo(n.Ie,Mi()),Wo(n.Ie,"btn"),jo(n.Ie,wo,"necessary"),Yo(n.Ie,So,(()=>{m([])}))),n.Ie.firstElementChild.innerHTML=l),u&&(n.ot||(n.ot=Fo(vo),Bo(n.ot,Mi()),Wo(n.ot,"btn"),Wo(n.ot,"btn--secondary"),jo(n.ot,wo,"show"),Yo(n.ot,"mouseenter",(()=>{r.N||Ii(e,t)})),Yo(n.ot,So,i)),n.ot.firstElementChild.innerHTML=u),n.nt||(n.nt=Fo(yo),Wo(n.nt,ko),c&&Bo(n.nt,n.tt),l&&Bo(n.nt,n.Ie),(c||l)&&Bo(n.We,n.nt),Bo(n.Ye,n.nt)),n.ot&&!n.st&&(n.st=Fo(yo),n.Ie&&n.tt?(Wo(n.st,ko),Bo(n.st,n.ot),Bo(n.Ye,n.st)):(Bo(n.nt,n.ot),Wo(n.nt,ko+"--uneven"))),d){if(!n.ct){let e=Fo(yo),t=Fo(yo);n.ct=Fo(yo),Wo(e,"footer"),Wo(t,"links"),Wo(n.ct,"link-group"),Bo(t,n.ct),Bo(e,t),Bo(n.he,e)}n.ct.innerHTML=d}Si(0),r.T||(r.T=!0,ci(Mo.re.ue,Io,n.he),t(e),Bo(n.Ce,n.Qe),ii(n.he),setTimeout((()=>$o(n.Qe,"cc--anim")),100)),ai(1),Ko(n.We,e,Ii,t)},Ei=e=>{if(!To(e))return null;if(e in Mo.o._)return e;let t=e.slice(0,2);return t in Mo.o._?t:null},Oi=()=>Mo.o.l||Mo.o.i.language.default,Ti=e=>{e&&(Mo.o.l=e)},Ri=()=>{const e=Mo.ne;if(e.Ce)return;e.Ce=Fo(yo),e.Ce.id="cc-main",e.Ce.setAttribute("data-nosnippet",""),(()=>{let e=Mo.o.i.language.rtl,t=Mo.ne.Ce;e&&t&&(Oo(e)||(e=[e]),Eo(e,Mo.o.l)?$o(t,"cc--rtl"):Vo(t,"cc--rtl"))})();let t=Mo.o.i.root;t&&To(t)&&(t=document.querySelector(t)),(t||e.$e.body).appendChild(e.Ce)},Li=(e,t)=>{if(t instanceof RegExp)return e.filter((e=>t.test(e)));{const r=xo(e,t);return r>-1?[e[r]]:[]}},Ni=e=>{const{hostname:t,protocol:r}=location,{name:n,path:o,domain:i,sameSite:s,useLocalStorage:a}=Mo.t.cookie,c=864e5*(()=>{const e=Mo.t.cookie.expiresAfterDays;return Lo(e)?e(Mo.o.F):e})(),l=new Date;l.setTime(l.getTime()+c),Mo.o.p.expirationTime=l.getTime();const u=JSON.stringify(Mo.o.p);let p=n+"="+encodeURIComponent(u)+(0!==c?"; expires="+l.toUTCString():"")+"; Path="+o+"; SameSite="+s;Eo(t,".")&&(p+="; Domain="+i),"https:"===r&&(p+="; Secure"),a?((e,t)=>{li((()=>localStorage.setItem(e,t)))})(n,u):document.cookie=p,Mo.o.p},Di=(e,t,r)=>{if(0===e.length)return;const n=r||Mo.t.cookie.domain,o=t||Mo.t.cookie.path,i="www."===n.slice(0,4),s=i&&n.substring(4),a=(e,t)=>{document.cookie=e+"=; path="+o+(t?"; domain=."+t:"")+"; expires=Thu, 01 Jan 1970 00:00:01 GMT;"};for(const t of e)a(t),a(t,n),i&&a(t,s)},Ai=(e,t)=>{const r=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return r?r.pop():""},qi=e=>{const t=Mo.o.D?[]:Mo.o.R;return Eo(t,e)},Pi=(e,t)=>{const r=Mo.o.D?[]:Mo.o.Y[t]||[];return Eo(r,e)},Fi=e=>{const{ne:t,o:r}=Mo;if(!r.k){if(!r.T){if(!e)return;xi(ji,Ri)}r.k=!0,r.U=Ao(),r.v&&ri(!0),ei(t.he,1),$o(t.ye,fo),jo(t.he,bo,"false"),setTimeout((()=>{Zo(Mo.ne.be)}),100),ci(Mo.re.fe,Io)}};var ji={show:Fi,hide:()=>{const{ne:e,o:t,re:r}=Mo;t.k&&(t.k=!1,t.v&&ri(),Zo(e.Ke,!0),Vo(e.ye,fo),jo(e.he,bo,"true"),Zo(t.U),t.U=null,ci(r._e,Io))},showPreferences:()=>{const e=Mo.o;e.A||(e.N||Ii(ji,Ri),e.A=!0,e.k?e.$=Ao():e.U=Ao(),ei(Mo.ne.we,2),$o(Mo.ne.ye,mo),jo(Mo.ne.we,bo,"false"),setTimeout((()=>{Zo(Mo.ne.ve)}),100),ci(Mo.re.fe,Co))},hidePreferences:()=>{const e=Mo.o;e.A&&(e.A=!1,(()=>{const e=Ui(),t=Mo.o.P,r=Mo.ne.ae,n=Mo.ne.se,o=e=>Eo(Mo.o.G,e);for(const i in r){const s=!!t[i].readOnly;r[i].checked=s||(e?qi(i):o(i));for(const t in n[i])n[i][t].checked=s||(e?Pi(t,i):o(i))}})(),Zo(Mo.ne.Ge,!0),Vo(Mo.ne.ye,mo),jo(Mo.ne.we,bo,"true"),e.k?(Zo(e.$),e.$=null):(Zo(e.U),e.U=null),ci(Mo.re._e,Co))},acceptCategory:(e,t=[])=>{((e,t)=>{const{O:r,R:n,B:o,N:i,Z:s,G:a,X:c}=Mo.o;let l=[];if(e){Oo(e)?l.push(...e):To(e)&&(l="all"===e?r:[e]);for(const e of r)s[e]=Eo(l,e)?No(c[e]):[]}else l=[...n,...a],i&&(l=(()=>{const e=Mo.ne.ae;if(!e)return[];let t=[];for(let r in e)e[r].checked&&t.push(r);return t})());l=l.filter((e=>!Eo(r,e)||!Eo(t,e))),l.push(...o),Qo(l)})(e,t),(()=>{const e=Mo.o,{Z:t,B:r,Y:n,X:o,O:i}=e,s=i;e.te=Go(n);for(const i of s){const s=o[i],a=No(s),c=t[i]&&t[i].length>0,l=Eo(r,i);if(0!==a.length){if(n[i]=[],l)n[i].push(...a);else if(c){const e=t[i];n[i].push(...e)}else n[i]=e.Z[i];n[i]=Do(n[i])}}})(),(()=>{const e=Mo.o;e.L=Mo.t.mode===ho&&e.D?Xo(e.G,e.R):Xo(e.R,e.p.categories);let t=e.L.length>0,r=!1;for(const t of e.O)e.ee[t]=Xo(e.Y[t],e.te[t]),e.ee[t].length>0&&(r=!0);const n=Mo.ne.ae;for(const t in n)n[t].checked=Eo(e.R,t);for(const t of e.O){const r=Mo.ne.se[t],n=e.Y[t];for(const e in r)r[e].checked=Eo(n,e)}e.C||(e.C=new Date),e.M||(e.M=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))),e.p={categories:Go(e.R),revision:Mo.t.revision,data:e.h,consentTimestamp:e.C.toISOString(),consentId:e.M,services:Go(e.Y)};let o=!1;const i=t||r;(e.D||i)&&(e.D&&(e.D=!1,o=!0),e.S=e.S?new Date:e.C,e.p.lastConsentTimestamp=e.S.toISOString(),Ni(),Mo.t.autoClearCookies&&(o||i)&&(e=>{const t=Mo.o,r=(()=>{const e=document.cookie.split(/;\s*/),t=[];for(const r of e){let e=r.split("=")[0];t.push(e)}return t})(),n=(e=>{const t=Mo.o;return(e?t.O:t.L).filter((e=>{const r=t.P[e];return!!r&&!r.readOnly&&!!r.autoClear}))})(e);for(const e in t.ee)for(const n of t.ee[e]){const o=t.X[e][n].cookies;if(!Eo(t.Y[e],n)&&o)for(const e of o){const t=Li(r,e.name);Di(t,e.path,e.domain)}}for(const o of n){const n=t.P[o].autoClear,i=n&&n.cookies||[],s=Eo(t.L,o),a=!Eo(t.R,o),c=s&&a;if(e?a:c){n.reloadPage&&c&&(t.j=!0);for(const e of i){const t=Li(r,e.name);Di(t,e.path,e.domain)}}}})(o),ui()),o&&(ci(Mo.re.ie),ci(Mo.re.le),Mo.t.mode===po)||(i&&ci(Mo.re.de),e.j&&(e.j=!1,location.reload()))})()}};const Ui=()=>!Mo.o.D,zi=async e=>{const{o:t,t:r,re:n}=Mo,o=window;if(!o._ccRun){if(o._ccRun=!0,(e=>{const{ne:t,t:r,o:n}=Mo,o=r,i=n,{cookie:s}=o,a=Mo.ce,c=e.cookie,l=e.categories,u=No(l)||[],p=navigator,d=document;t.$e=d,t.ye=d.documentElement,s.domain=location.hostname,i.i=e,i.P=l,i.O=u,i._=e.language.translations,i.v=!!e.disablePageInteraction,a.ie=e.onFirstConsent,a.le=e.onConsent,a.de=e.onChange,a._e=e.onModalHide,a.fe=e.onModalShow,a.ue=e.onModalReady;const{mode:h,autoShow:f,lazyHtmlGeneration:m,autoClearCookies:g,revision:_,manageScriptTags:y,hideFromBots:v}=e;h===ho&&(o.mode=h),"boolean"==typeof g&&(o.autoClearCookies=g),"boolean"==typeof y&&(o.manageScriptTags=y),"number"==typeof _&&_>=0&&(o.revision=_,i.V=!0),"boolean"==typeof f&&(o.autoShow=f),"boolean"==typeof m&&(o.lazyHtmlGeneration=m),!1===v&&(o.hideFromBots=!1),!0===o.hideFromBots&&p&&(i.J=p.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(p.userAgent)||p.webdriver),Ro(c)&&(o.cookie={...s,...c}),o.autoClearCookies,i.V,o.manageScriptTags,(e=>{const{P:t,X:r,Y:n,Z:o,B:i}=Mo.o;for(let s of e){const e=t[s],a=e.services||{},c=Ro(a)&&No(a)||[];r[s]={},n[s]=[],o[s]=[],e.readOnly&&(i.push(s),n[s]=c),Mo.ne.se[s]={};for(let e of c){const t=a[e];t.Se=!1,r[s][e]=t}}})(u),(()=>{if(!Mo.t.manageScriptTags)return;const e=Mo.o,t=Po(document,"script["+_o+"]");for(const r of t){let t=zo(r,_o),n=r.dataset.service||"",o=!1;if(t&&"!"===t.charAt(0)&&(t=t.slice(1),o=!0),"!"===n.charAt(0)&&(n=n.slice(1),o=!0),Eo(e.O,t)&&(e.oe.push({Me:r,xe:!1,ke:o,De:t,Te:n}),n)){const r=e.X[t];r[n]||(r[n]={Se:!1})}}})(),Ti((()=>{const e=Mo.o.i.language.autoDetect;if(e){const t={browser:navigator.language,document:document.documentElement.lang},r=Ei(t[e]);if(r)return r}return Oi()})())})(e),t.J)return;(()=>{const e=Mo.o,t=Mo.t,r=(()=>{const e=Mo.t.cookie.name,t=Mo.t.cookie.useLocalStorage;return((e,t)=>{let r;return r=li((()=>JSON.parse(t?e:decodeURIComponent(e))),!0)||{},r})(t?(r=e,li((()=>localStorage.getItem(r)))||""):Ai(e),t);var r})(),{categories:n,services:o,consentId:i,consentTimestamp:s,lastConsentTimestamp:a,data:c,revision:l}=r,u=Oo(n);e.p=r,e.M=i;const p=!!i&&To(i);e.C=s,e.C&&(e.C=new Date(s)),e.S=a,e.S&&(e.S=new Date(a)),e.h=void 0!==c?c:null,e.V&&p&&l!==t.revision&&(e.I=!1),e.D=!(p&&e.I&&e.C&&e.S&&u),t.cookie.useLocalStorage&&!e.D&&(e.D=(new Date).getTime()>(r.expirationTime||0),e.D&&(e=>{li((()=>localStorage.removeItem(e)))})(t.cookie.name)),e.D,(()=>{const e=Mo.o;for(const t of e.O){const r=e.P[t];if(r.readOnly||r.enabled){e.G.push(t);const r=e.X[t]||{};for(let n in r)e.Z[t].push(n),e.i.mode===ho&&e.Y[t].push(n)}}})(),e.D?t.mode===ho&&(e.R=[...e.G]):(e.Z={...e.Y},e.Y={...e.Y,...o},Qo([...e.B,...n]))})();const s=Ui();if(!await(async e=>{const t=Mo.o;let r=Ei(e)?e:Oi(),n=t._[r];return To(n)?n=await(async e=>{try{const t=await fetch(e);return await t.json()}catch(e){return console.error(e),!1}})(n):Lo(n)&&(n=await n()),!!n&&(t.u=n,Ti(r),!0)})())return!1;if(Ko(null,i=ji,Ii,Ri),Mo.o.D&&xi(i,Ri),Mo.t.lazyHtmlGeneration||Ii(i,Ri),r.autoShow&&!s&&Fi(!0),s)return ui(),ci(n.le);r.mode===ho&&ui(t.G)}var i},Bi=e=>({en:{consentModal:{title:"We use cookies",description:"Our website uses essential cookies to ensure its proper operation and tracking cookies to understand how you interact with it. Tracking will be enabled only upon your explicit consent.",acceptAllBtn:"Accept all",acceptNecessaryBtn:"Reject all",showPreferencesBtn:"Manage preferences"},preferencesModal:{title:"Consent preferences center",acceptAllBtn:"Accept all",acceptNecessaryBtn:"Reject all",savePreferencesBtn:"Accept current selection",closeIconLabel:"Close modal",sections:[{title:"Tracking technologies and your consent",description:"Cookies are small files that websites place on users' devices to collect data and enhance user experience. They can remember preferences, and track browsing habits. You can modify your preferences regarding cookies and tracking at any time."},{title:"Strictly necessary cookies",description:"These cookies are essential for the proper functioning of the website and cannot be disabled.",linkedCategory:"necessary"},{title:"Analytics cookies",description:"These cookies collect information about how you use our website. All of the data is anonymized and cannot be used to identify you.",linkedCategory:"analytics"},{title:"More information",description:`For any queries in relation to our policy on cookies and your choices, please <a href="mailto:${e?"hello@clearly.help":"hello@rozmova.me"}">contact us</a>`}]}},pl:{consentModal:{title:"Używamy plików cookie",description:"Nasza strona internetowa używa niezbędnych plików cookie do jej prawidłowego działania oraz plików śledzących, aby zrozumieć, jak z niej korzystasz. Śledzenie zostanie włączone tylko po Twojej wyraźnej zgodzie.",acceptAllBtn:"Akceptuj wszystkie",acceptNecessaryBtn:"Odrzuć wszystkie",showPreferencesBtn:"Zarządzaj ustawieniami"},preferencesModal:{title:"Centrum preferencji zgody",acceptAllBtn:"Akceptuj wszystkie",acceptNecessaryBtn:"Odrzuć wszystkie",savePreferencesBtn:"Akceptuj bieżący wybór",closeIconLabel:"Zamknij okno",sections:[{title:"Technologie śledzenia i Twoja zgoda",description:"Pliki cookie to małe pliki, które strony internetowe umieszczają na urządzeniach użytkowników, aby zbierać dane i poprawiać doświadczenie użytkownika. Mogą zapamiętywać preferencje i śledzić nawyki przeglądania. Możesz zmienić swoje preferencje dotyczące plików cookie i śledzenia w dowolnym momencie."},{title:"Niezbędne pliki cookie",description:"Te pliki cookie są niezbędne do prawidłowego funkcjonowania strony internetowej i nie można ich wyłączyć.",linkedCategory:"necessary"},{title:"Pliki cookie analityczne",description:"Te pliki cookie zbierają informacje o tym, jak korzystasz z naszej strony internetowej. Wszystkie dane są anonimizowane i nie mogą zostać wykorzystane do Twojej identyfikacji.",linkedCategory:"analytics"},{title:"Więcej informacji",description:`W przypadku pytań dotyczących naszej polityki plików cookie i Twoich wyborów, prosimy <a href="mailto:${e?"hello@clearly.help":"hello@rozmova.me"}">skontaktować się z nami</a>.`}]}},es:{consentModal:{title:"Usamos cookies",description:"Nuestro sitio web utiliza cookies esenciales para garantizar su correcto funcionamiento y cookies de seguimiento para comprender cómo interactúas con él. El seguimiento solo se habilitará con tu consentimiento explícito.",acceptAllBtn:"Aceptar todas",acceptNecessaryBtn:"Rechazar todas",showPreferencesBtn:"Gestionar preferencias"},preferencesModal:{title:"Centro de preferencias de consentimiento",acceptAllBtn:"Aceptar todas",acceptNecessaryBtn:"Rechazar todas",savePreferencesBtn:"Aceptar selección actual",closeIconLabel:"Cerrar ventana",sections:[{title:"Tecnologías de seguimiento y tu consentimiento",description:"Las cookies son pequeños archivos que los sitios web colocan en los dispositivos de los usuarios para recopilar datos y mejorar la experiencia del usuario. Pueden recordar preferencias y rastrear hábitos de navegación. Puedes modificar tus preferencias sobre cookies y seguimiento en cualquier momento."},{title:"Cookies estrictamente necesarias",description:"Estas cookies son esenciales para el funcionamiento adecuado del sitio web y no se pueden desactivar.",linkedCategory:"necessary"},{title:"Cookies de análisis",description:"Estas cookies recopilan información sobre cómo usas nuestro sitio web. Todos los datos están anonimizados y no pueden utilizarse para identificarte.",linkedCategory:"analytics"},{title:"Más información",description:`Para cualquier consulta sobre nuestra política de cookies y tus elecciones, por favor <a href="mailto:${e?"hello@clearly.help":"hello@rozmova.me"}">contáctanos</a>.`}]}},uk:{consentModal:{title:"Ми використовуємо файли cookie",description:"Наш вебсайт використовує необхідні файли cookie для забезпечення його належної роботи, а також файли відстеження, щоб зрозуміти, як ви з ним взаємодієте. Відстеження буде увімкнено лише після вашої явної згоди.",acceptAllBtn:"Прийняти всі",acceptNecessaryBtn:"Відхилити всі",showPreferencesBtn:"Керувати налаштуваннями"},preferencesModal:{title:"Центр налаштувань згоди",acceptAllBtn:"Прийняти всі",acceptNecessaryBtn:"Відхилити всі",savePreferencesBtn:"Прийняти поточний вибір",closeIconLabel:"Закрити вікно",sections:[{title:"Технології відстеження та ваша згода",description:"Файли cookie – це невеликі файли, які вебсайти зберігають на пристроях користувачів для збору даних і покращення взаємодії. Вони можуть запам'ятовувати вподобання та відстежувати поведінку перегляду. Ви можете змінити свої налаштування щодо файлів cookie та відстеження у будь-який час."},{title:"Строго необхідні файли cookie",description:"Ці файли cookie є необхідними для належного функціонування вебсайту і їх не можна вимкнути.",linkedCategory:"necessary"},{title:"Аналітичні файли cookie",description:"Ці файли cookie збирають інформацію про те, як ви використовуєте наш вебсайт. Усі дані анонімізовані і не можуть бути використані для ідентифікації вас.",linkedCategory:"analytics"},{title:"Додаткова інформація",description:`Якщо у вас є запитання щодо нашої політики використання файлів cookie та ваших налаштувань, будь ласка, <a href="mailto:${e?"hello@clearly.help":"hello@rozmova.me"}">зв'яжіться з нами</a>.`}]}}}),$i=(e,t)=>{const r=document.createElement("link");r.rel="stylesheet",r.href="https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@3.0.1/dist/cookieconsent.css",document.head.appendChild(r);const n=document.createElement("style");n.innerHTML='\n :root {\n /** Change font **/\n --cc-font-family: "Inter", sans-serif;\n\n /** Change button primary color to black **/\n --cc-btn-primary-bg: #4C6EF5;\n --cc-btn-primary-border-color: #4C6EF5;\n }\n',document.head.appendChild(n),zi(((e,t)=>{const r=ro();return{language:{default:e,translations:Bi(t)},cookie:{domain:r},guiOptions:{consentModal:{layout:"box wide",position:"bottom left"},preferencesModal:{layout:"bar"}},categories:{necessary:{enabled:!0,readOnly:!0},analytics:{enabled:!0,readOnly:!1,services:{ga:{label:"Google Analytics",onAccept:()=>{gtag("consent","update",{ad_storage:"granted",ad_user_data:"granted",ad_personalization:"granted",analytics_storage:"granted"})},onReject:()=>{gtag("consent","update",{ad_storage:"granted",ad_user_data:"granted",ad_personalization:"granted",analytics_storage:"granted"})}}}}}}})(e,t))};var Wi=new class{initialized=!1;locale="uk";platform="web";dataLayer=[];init({locale:e,platform:t,isClearly:r}={}){if(this.initialized)return;!function(){const e=document.createElement("script");e.type="text/javascript",e.text='\n (function(){\n var analytics = window.analytics = window.analytics || [];\n if (!analytics.initialize) \n if (analytics.invoked) \n window.console && console.error && console.error("Snippet included twice.");\n else {\n analytics.invoked = !0;\n analytics.methods = ["trackSubmit", "trackClick", "trackLink", "trackForm", "pageview", "identify", "reset", "group", "track", "ready", "alias", "debug", "page", "once", "off", "on", "addSourceMiddleware", "addIntegrationMiddleware", "setAnonymousId", "addDestinationMiddleware"];\n analytics.factory = function(e) {\n return function() {\n var t = Array.prototype.slice.call(arguments);\n t.unshift(e);\n analytics.push(t);\n return analytics;\n }\n };\n for (var e = 0; e < analytics.methods.length; e++) {\n var key = analytics.methods[e];\n analytics[key] = analytics.factory(key);\n }\n analytics.load = function(key, e) {\n var t = document.createElement("script");\n t.type = "text/javascript";\n t.async = !0;\n t.src = "https://cdp-eu.customer.io/v1/analytics-js/snippet/" + key + "/analytics.min.js";\n var n = document.getElementsByTagName("script")[0];\n n.parentNode.insertBefore(t, n);\n analytics._writeKey = key;\n analytics._loadOptions = e;\n };\n analytics.SNIPPET_VERSION = "4.15.3";\n analytics.load("e6d009719c77519432c3");\n analytics.page();\n }\n })();\n ',document.head.appendChild(e)}(),(()=>{const e=Kn("geo");if(e){const t=ro();n.set("geo",e,{domain:t})}})();const o=uo();(navigator.userAgent||navigator.vendor||window.opera).match(/FBAN|FBAV|Instagram/i)&&((e,t)=>{const r=new URL(window.location.href);r.searchParams.set(e,t),window.history.replaceState({path:r.toString()},"",r.toString())})(Vn,o),this.locale=e||(e=>{const t=window.location.pathname.split("/")[1];return Qn.includes(t)?t:e?"en":"uk"})(r),t&&(this.platform=t),"web"===this.platform&&r&&$i(this.locale,r),Hn.init("9d4cb3d213e5aee689ea01dd68ad65ad",{debug:!1,track_pageview:"url-with-path",persistence:"cookie"});const i=this.getCommonParams();for(Hn.register(i),gtag("config",Yn,{user_properties:i,server_container_url:Xn}),this.initialized=!0;this.dataLayer.length>0;){const e=this.dataLayer.shift();this.trackEvent(e?.eventName,e?.eventParams)}}trackEvent(e,t){if(!this.initialized)return void this.dataLayer.push({eventName:e,eventParams:t});const r=this.getCommonParams(),n={...r,...t};try{Hn.track(e,n)}catch(e){console.log(e)}try{const n={locale:r.locale,platform:r.platform,funnel_name:r.funnel_name,funnel_type:r.funnel_type,...t};gtag("event",e,n)}catch(e){console.log(e)}try{window.analytics.track(e,n)}catch(e){console.log(e)}}setUser(e,t){if(!this.initialized)return void console.warn("Analytics is not initialized.");const{email:r,name:n}=t;Hn.identify(e),Hn.people.set({$email:r,name:n}),gtag("config",Yn,{user_properties:this.getCommonParams(),user_id:e,server_container_url:Xn}),window.analytics.identify(e,t)}getCommonParams(){return{...(()=>{const e=n.get(Gn),t=e?JSON.parse(e):{},r=new URLSearchParams(window.location.search),o={...Jn.some((e=>r.get(e)&&r.get(e)!==t[e]))?Jn.reduce(((e,t)=>({...e,[t]:r.get(t)})),{}):Jn.reduce(((e,r)=>({...e,[r]:t[r]})),{}),referrer:oo()||t.referrer,search_query:io()||t.search_query,landing_page_url:t.landing_page_url||window.location.href};return n.set(Gn,JSON.stringify(o),{domain:ro()}),o})(),fbc:n.get("_fbc"),fbp:n.get("_fbp"),session_id:ao(),user_pseudo_id:so(),rid:uo(),funnel_name:n.get("funnel_name"),funnel_type:n.get("funnel_type"),language:window.navigator.language,platform:this.platform,url:window.location.href,device:eo(),browser:Zn(),system:to(),locale:this.locale,logged_in:!1}}setLocale(e){this.locale=e}resetUser(){this.initialized?(Hn.reset(),window.analytics.reset(),lo(),this.init()):console.warn("Analytics is not initialized.")}getUserId=uo};return Wi}));
|