!function(){window.LI={"appId":"a-093o","advertiserId":78549,"sync":true,"euns":false,"identifiersToResolve":"_sharedid,dsq__s,s_vi,trc_cookie_storage,gup_anonid,_li_uuid,hid,_parrable_id,tmguid,ajs_user_id,globalTI_SID,muuid,dsq__u,dtm_token,_shopify_y,_pubcid,IXWRAPPERLiveIntentIp,_aalyticsuid,s_ecid","contextSelectors":"","contextElementsLength":5000,"identityResolutionConfig":{"publisherId":78549}}}();!function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r=function(e){try{return!!e()}catch(e){return!0}},n=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),o=n,i=Function.prototype,s=i.call,a=o&&i.bind.bind(s,s),l=o?a:function(e){return function(){return s.apply(e,arguments)}},c=function(e){return null==e},u=c,d=TypeError,p=function(e){if(u(e))throw new d("Can't call method on "+e);return e},f=p,h=Object,g=function(e){return h(f(e))},v=g,m=l({}.hasOwnProperty),y=Object.ownProp||function(e,t){return m(v(e),t)},w=l,b=w({}.toString),S=w("".slice),C=function(e){return S(b(e),8,-1)},E=C,x=Array.isArray||function(e){return"Array"===E(e)},P="object"==typeof document&&document.all,k=void 0===P&&void 0!==P?function(e){return"function"==typeof e||e===P}:function(e){return"function"==typeof e},I=r,R=k,O=/#|\.prototype\./,U=function(e,t){var r=A[_(e)];return r===T||r!==j&&(R(t)?I(t):!!t)},_=U.normalize=function(e){return String(e).replace(O,".").toLowerCase()},A=U.data={},j=U.NATIVE="N",T=U.POLYFILL="P",D=U,L={exports:{}},F=!0,H=function(e){return e&&e.Math===Math&&e},$=H("object"==typeof globalThis&&globalThis)||H("object"==typeof window&&window)||H("object"==typeof self&&self)||H("object"==typeof e&&e)||H("object"==typeof e&&e)||function(){return this}()||Function("return this")(),N=$,q=Object.defineProperty,M=$,B=function(e,t){try{q(N,e,{value:t,configurable:!0,writable:!0})}catch(r){N[e]=t}return t},Q="__core-js_shared__",V=L.exports=M[Q]||B(Q,{});(V.versions||(V.versions=[])).push({version:"3.42.0",mode:"pure",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"});var z=L.exports,G=y,J=x,W=D,X=z,K=W.data,Z=W.normalize,Y="USE_FUNCTION_CONSTRUCTOR",ee="AsyncIteratorPrototype",te=function(e,t){if(J(e))for(var r=0;r0&&be[0]<4?1:+(be[0]+be[1])),!Se&&Qe&&(!(be=Qe.match(/Edge\/(\d+)/))||be[1]>=74)&&(be=Qe.match(/Chrome\/(\d+)/))&&(Se=+be[1]);var We=Se,Xe=We,Ke=r,Ze=$.String,Ye=!!Object.getOwnPropertySymbols&&!Ke((function(){var e=Symbol("symbol detection");return!Ze(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Xe&&Xe<41})),et=Ye&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,tt=He,rt=k,nt=$e,ot=Object,it=et?function(e){return"symbol"==typeof e}:function(e){var t=tt("Symbol");return rt(t)&&nt(t.prototype,ot(e))},st=String,at=function(e){try{return st(e)}catch(e){return"Object"}},lt=k,ct=at,ut=TypeError,dt=function(e){if(lt(e))return e;throw new ut(ct(e)+" is not a function")},pt=dt,ft=c,ht=function(e,t){var r=e[t];return ft(r)?void 0:pt(r)},gt=ge,vt=k,mt=Ae,yt=TypeError,wt=z,bt=function(e,t){return wt[e]||(wt[e]=t||{})},St=l,Ct=0,Et=Math.random(),xt=St(1..toString),Pt=function(e){return"Symbol("+(void 0===e?"":e)+")_"+xt(++Ct+Et,36)},kt=bt,It=y,Rt=Pt,Ot=Ye,Ut=et,_t=$.Symbol,At=kt("wks"),jt=Ut?_t.for||_t:_t&&_t.withoutSetter||Rt,Tt=function(e){return It(At,e)||(At[e]=Ot&&It(_t,e)?_t[e]:jt("Symbol."+e)),At[e]},Dt=ge,Lt=Ae,Ft=it,Ht=ht,$t=function(e,t){var r,n;if("string"===t&&vt(r=e.toString)&&!mt(n=gt(r,e)))return n;if(vt(r=e.valueOf)&&!mt(n=gt(r,e)))return n;if("string"!==t&&vt(r=e.toString)&&!mt(n=gt(r,e)))return n;throw new yt("Can't convert object to primitive value")},Nt=TypeError,qt=Tt("toPrimitive"),Mt=function(e,t){if(!Lt(e)||Ft(e))return e;var r,n=Ht(e,qt);if(n){if(void 0===t&&(t="default"),r=Dt(n,e,t),!Lt(r)||Ft(r))return r;throw new Nt("Can't convert object to primitive value")}return void 0===t&&(t="number"),$t(e,t)},Bt=it,Qt=function(e){var t=Mt(e,"string");return Bt(t)?t:t+""},Vt=Ae,zt=$.document,Gt=Vt(zt)&&Vt(zt.createElement),Jt=function(e){return Gt?zt.createElement(e):{}},Wt=Jt,Xt=!pe&&!r((function(){return 7!==Object.defineProperty(Wt("div"),"a",{get:function(){return 7}}).a})),Kt=pe,Zt=ge,Yt=ve,er=Ce,tr=Ue,rr=Qt,nr=y,or=Xt,ir=Object.getOwnPropertyDescriptor;de.f=Kt?ir:function(e,t){if(e=tr(e),t=rr(t),or)try{return ir(e,t)}catch(e){}if(nr(e,t))return er(!Zt(Yt.f,e,t),e[t])};var sr=dt,ar=n,lr=ue(ue.bind),cr=function(e,t){return sr(e),void 0===t?e:ar?lr(e,t):function(){return e.apply(t,arguments)}},ur={},dr=pe&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),pr=Ae,fr=String,hr=TypeError,gr=function(e){if(pr(e))return e;throw new hr(fr(e)+" is not an object")},vr=pe,mr=Xt,yr=dr,wr=gr,br=Qt,Sr=TypeError,Cr=Object.defineProperty,Er=Object.getOwnPropertyDescriptor,xr="enumerable",Pr="configurable",kr="writable";ur.f=vr?yr?function(e,t,r){if(wr(e),t=br(t),wr(r),"function"==typeof e&&"prototype"===t&&"value"in r&&kr in r&&!r[kr]){var n=Er(e,t);n&&n[kr]&&(e[t]=r.value,r={configurable:Pr in r?r[Pr]:n[Pr],enumerable:xr in r?r[xr]:n[xr],writable:!1})}return Cr(e,t,r)}:Cr:function(e,t,r){if(wr(e),t=br(t),wr(r),mr)try{return Cr(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new Sr("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Ir=ur,Rr=Ce,Or=pe?function(e,t,r){return Ir.f(e,t,Rr(1,r))}:function(e,t,r){return e[t]=r,e},Ur=$,_r=ae,Ar=ue,jr=k,Tr=de.f,Dr=D,Lr=je,Fr=cr,Hr=Or,$r=y,Nr=function(e){var t=function(r,n,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,o)}return _r(e,this,arguments)};return t.prototype=e.prototype,t},qr=function(e,t){var r,n,o,i,s,a,l,c,u,d=e.target,p=e.global,f=e.stat,h=e.proto,g=p?Ur:f?Ur[d]:Ur[d]&&Ur[d].prototype,v=p?Lr:Lr[d]||Hr(Lr,d,{})[d],m=v.prototype;for(i in t)n=!(r=Dr(p?i:d+(f?".":"#")+i,e.forced))&&g&&$r(g,i),a=v[i],n&&(l=e.dontCallGetSet?(u=Tr(g,i))&&u.value:g[i]),s=n&&l?l:t[i],(r||h||typeof a!=typeof s)&&(c=e.bind&&n?Fr(s,Ur):e.wrap&&n?Nr(s):h&&jr(s)?Ar(s):s,(e.sham||s&&s.sham||a&&a.sham)&&Hr(c,"sham",!0),Hr(v,i,c),h&&($r(Lr,o=d+"Prototype")||Hr(Lr,o,{}),Hr(Lr[o],i,s),e.real&&m&&(r||!m[i])&&Hr(m,i,s)))},Mr={},Br=Math.ceil,Qr=Math.floor,Vr=Math.trunc||function(e){var t=+e;return(t>0?Qr:Br)(t)},zr=Vr,Gr=function(e){var t=+e;return t!=t||0===t?0:zr(t)},Jr=Gr,Wr=Math.max,Xr=Math.min,Kr=function(e,t){var r=Jr(e);return r<0?Wr(r+t,0):Xr(r,t)},Zr=Gr,Yr=Math.min,en=function(e){var t=Zr(e);return t>0?Yr(t,9007199254740991):0},tn=function(e){return en(e.length)},rn=Ue,nn=Kr,on=tn,sn=function(e){return function(t,r,n){var o=rn(t),i=on(o);if(0===i)return!e&&-1;var s,a=nn(n,i);if(e&&r!=r){for(;i>a;)if((s=o[a++])!=s)return!0}else for(;i>a;a++)if((e||a in o)&&o[a]===r)return e||a||0;return!e&&-1}},an={includes:sn(!0),indexOf:sn(!1)},ln={},cn=y,un=Ue,dn=an.indexOf,pn=ln,fn=l([].push),hn=function(e,t){var r,n=un(e),o=0,i=[];for(r in n)!cn(pn,r)&&cn(n,r)&&fn(i,r);for(;t.length>o;)cn(n,r=t[o++])&&(~dn(i,r)||fn(i,r));return i},gn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],vn=hn,mn=gn.concat("length","prototype");Mr.f=Object.getOwnPropertyNames||function(e){return vn(e,mn)};var yn={};yn.f=Object.getOwnPropertySymbols;var wn=He,bn=Mr,Sn=yn,Cn=gr,En=l([].concat),xn=wn("Reflect","ownKeys")||function(e){var t=bn.f(Cn(e)),r=Sn.f;return r?En(t,r(e)):t},Pn=pe,kn=ur,In=Ce,Rn=function(e,t,r){Pn?kn.f(e,t,In(0,r)):e[t]=r},On=xn,Un=Ue,_n=de,An=Rn;qr({target:"Object",stat:!0,sham:!pe},{getOwnPropertyDescriptors:function(e){for(var t,r,n=Un(e),o=_n.f,i=On(n),s={},a=0;i.length>a;)void 0!==(r=o(n,t=i[a++]))&&An(s,t,r);return s}});var jn=t(je.Object.getOwnPropertyDescriptors),Tn=pe,Dn=x,Ln=TypeError,Fn=Object.getOwnPropertyDescriptor,Hn=Tn&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}()?function(e,t){if(Dn(e)&&!Fn(e,"length").writable)throw new Ln("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},$n=TypeError,Nn=function(e){if(e>9007199254740991)throw $n("Maximum allowed index exceeded");return e},qn=g,Mn=tn,Bn=Hn,Qn=Nn;qr({target:"Array",proto:!0,arity:1,forced:r((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=qn(this),r=Mn(t),n=arguments.length;Qn(r+n);for(var o=0;os;)Lo.f(e,r=o[s++],n[r]);return e};var No,qo=He("document","documentElement"),Mo=gr,Bo=Uo,Qo=gn,Vo=ln,zo=qo,Go=Jt,Jo="prototype",Wo="script",Xo=lo("IE_PROTO"),Ko=function(){},Zo=function(e){return"<"+Wo+">"+e+""},Yo=function(e){e.write(Zo("")),e.close();var t=e.parentWindow.Object;return e=null,t},ei=function(){try{No=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;ei="undefined"!=typeof document?document.domain&&No?Yo(No):(t=Go("iframe"),r="java"+Wo+":",t.style.display="none",zo.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Zo("document.F=Object")),e.close(),e.F):Yo(No);for(var n=Qo.length;n--;)delete ei[Jo][Qo[n]];return ei()};Vo[Xo]=!0;var ti,ri,ni,oi=Object.create||function(e,t){var r;return null!==e?(Ko[Jo]=Mo(e),r=new Ko,Ko[Jo]=null,r[Xo]=e):r=ei(),void 0===t?r:Bo.f(r,t)},ii=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),si=y,ai=k,li=g,ci=ii,ui=lo("IE_PROTO"),di=Object,pi=di.prototype,fi=ci?di.getPrototypeOf:function(e){var t=li(e);if(si(t,ui))return t[ui];var r=t.constructor;return ai(r)&&t instanceof r?r.prototype:t instanceof di?pi:null},hi=Or,gi=function(e,t,r,n){return n&&n.enumerable?e[t]=r:hi(e,t,r),e},vi=r,mi=k,yi=Ae,wi=oi,bi=fi,Si=gi,Ci=Tt("iterator"),Ei=!1;[].keys&&("next"in(ni=[].keys())?(ri=bi(bi(ni)))!==Object.prototype&&(ti=ri):Ei=!0);var xi=!yi(ti)||vi((function(){var e={};return ti[Ci].call(e)!==e}));mi((ti=xi?{}:wi(ti))[Ci])||Si(ti,Ci,(function(){return this}));var Pi={IteratorPrototype:ti,BUGGY_SAFARI_ITERATORS:Ei},ki={};ki[Tt("toStringTag")]="z";var Ii="[object z]"===String(ki),Ri=Ii,Oi=k,Ui=C,_i=Tt("toStringTag"),Ai=Object,ji="Arguments"===Ui(function(){return arguments}()),Ti=Ri?Ui:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Ai(e),_i))?r:ji?Ui(t):"Object"===(n=Ui(t))&&Oi(t.callee)?"Arguments":n},Di=Ti,Li=Ii?{}.toString:function(){return"[object "+Di(this)+"]"},Fi=Ii,Hi=ur.f,$i=Or,Ni=y,qi=Li,Mi=Tt("toStringTag"),Bi=function(e,t,r,n){var o=r?e:e&&e.prototype;o&&(Ni(o,Mi)||Hi(o,Mi,{configurable:!0,value:t}),n&&!Fi&&$i(o,"toString",qi))},Qi=Pi.IteratorPrototype,Vi=oi,zi=Ce,Gi=Bi,Ji=ro,Wi=function(){return this},Xi=function(e,t,r,n){var o=t+" Iterator";return e.prototype=Vi(Qi,{next:zi(+!n,r)}),Gi(e,o,!1,!0),Ji[o]=Wi,e},Ki=l,Zi=dt,Yi=Ae,es=function(e){return Yi(e)||null===e},ts=String,rs=TypeError,ns=function(e,t,r){try{return Ki(Zi(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},os=Ae,is=p,ss=function(e){if(es(e))return e;throw new rs("Can't set "+ts(e)+" as a prototype")},as=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=ns(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return is(r),ss(n),os(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0),ls=qr,cs=ge,us=Oo,ds=Xi,ps=fi,fs=Bi,hs=gi,gs=ro,vs=Pi,ms=us.PROPER,ys=vs.BUGGY_SAFARI_ITERATORS,ws=Tt("iterator"),bs="keys",Ss="values",Cs="entries",Es=function(){return this},xs=function(e,t,r,n,o,i,s){ds(r,t,n);var a,l,c,u=function(e){if(e===o&&g)return g;if(!ys&&e&&e in f)return f[e];switch(e){case bs:case Ss:case Cs:return function(){return new r(this,e)}}return function(){return new r(this)}},d=t+" Iterator",p=!1,f=e.prototype,h=f[ws]||f["@@iterator"]||o&&f[o],g=!ys&&h||u(o),v="Array"===t&&f.entries||h;if(v&&(a=ps(v.call(new e)))!==Object.prototype&&a.next&&(fs(a,d,!0,!0),gs[d]=Es),ms&&o===Ss&&h&&h.name!==Ss&&(p=!0,g=function(){return cs(h,this)}),o)if(l={values:u(Ss),keys:i?g:u(bs),entries:u(Cs)},s)for(c in l)(ys||p||!(c in f))&&hs(f,c,l[c]);else ls({target:t,proto:!0,forced:ys||p},l);return s&&f[ws]!==g&&hs(f,ws,g,{name:o}),gs[t]=g,l},Ps=function(e,t){return{value:e,done:t}},ks=Ue,Is=ro,Rs=Eo;ur.f;var Os=xs,Us=Ps,_s="Array Iterator",As=Rs.set,js=Rs.getterFor(_s);Os(Array,"Array",(function(e,t){As(this,{type:_s,target:ks(e),index:0,kind:t})}),(function(){var e=js(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Us(void 0,!0);switch(e.kind){case"keys":return Us(r,!1);case"values":return Us(t[r],!1)}return Us([r,t[r]],!1)}),"values"),Is.Arguments=Is.Array;var Ts=qr,Ds=l,Ls=Kr,Fs=RangeError,Hs=String.fromCharCode,$s=String.fromCodePoint,Ns=Ds([].join);Ts({target:"String",stat:!0,arity:1,forced:!!$s&&1!==$s.length},{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,o=0;n>o;){if(t=+arguments[o++],Ls(t,1114111)!==t)throw new Fs(t+" is not a valid code point");r[o]=t<65536?Hs(t):Hs(55296+((t-=65536)>>10),t%1024+56320)}return Ns(r,"")}});var qs=$,Ms=pe,Bs=Object.getOwnPropertyDescriptor,Qs=function(e){if(!Ms)return qs[e];var t=Bs(qs,e);return t&&t.value},Vs=r,zs=F,Gs=Tt("iterator"),Js=!Vs((function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),r.delete("a",2),r.delete("b",void 0),!e.toJSON||!r.has("a",1)||r.has("a",2)||!r.has("a",void 0)||r.has("b")||!t.size&&zs||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[Gs]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host})),Ws=ur,Xs=function(e,t,r){return Ws.f(e,t,r)},Ks=gi,Zs=$e,Ys=TypeError,ea=function(e,t){if(Zs(t,e))return e;throw new Ys("Incorrect invocation")},ta=Ti,ra=String,na=function(e){if("Symbol"===ta(e))throw new TypeError("Cannot convert a Symbol value to a string");return ra(e)},oa=Ti,ia=ht,sa=c,aa=ro,la=Tt("iterator"),ca=function(e){if(!sa(e))return ia(e,la)||ia(e,"@@iterator")||aa[oa(e)]},ua=ge,da=dt,pa=gr,fa=at,ha=ca,ga=TypeError,va=function(e,t){var r=arguments.length<2?ha(e):t;if(da(r))return pa(ua(r,e));throw new ga(fa(e)+" is not iterable")},ma=TypeError,ya=function(e,t){if(e0;)e[o]=e[--o];o!==i++&&(e[o]=n)}else for(var s=Sa(r/2),a=Ca(ba(e,0,s),t),l=Ca(ba(e,s),t),c=a.length,u=l.length,d=0,p=0;d0&&e&r;r>>=1)t++;return t},Il=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},Rl=function(e){for(var t=(e=ml(e,El," ")).length,r="",n=0;nt){r+="%",n++;continue}var i=Pl(e,n+1);if(i!=i){r+=o,n++;continue}n+=2;var s=kl(i);if(0===s)o=dl(i);else{if(1===s||s>4){r+="�",n++;continue}for(var a=[i],l=1;lt||"%"!==hl(e,n));){var c=Pl(e,n+1);if(c!=c){n+=3;break}if(c>191||c<128)break;vl(a,c),n+=2,l++}if(a.length!==s){r+="�";continue}var u=Il(a);null===u?r+="�":o=pl(u)}}r+=o,n++}return r},Ol=/[!'()~]|%20/g,Ul={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},_l=function(e){return Ul[e]},Al=function(e){return ml(ul(e),Ol,_l)},jl=Da((function(e,t){tl(this,{type:el,target:rl(e).entries,index:0,kind:t})}),Ya,(function(){var e=nl(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Wa(void 0,!0);var n=t[r];switch(e.kind){case"keys":return Wa(n.key,!1);case"values":return Wa(n.value,!1)}return Wa([n.key,n.value],!1)}),!0),Tl=function(e){this.entries=[],this.url=null,void 0!==e&&(Ba(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===hl(e,0)?Sl(e,1):e:Qa(e)))};Tl.prototype={type:Ya,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,s,a,l=this.entries,c=Ja(e);if(c)for(r=(t=Ga(e,c)).next;!(n=Ia(r,t)).done;){if(i=(o=Ga(Ma(n.value))).next,(s=Ia(i,o)).done||(a=Ia(i,o)).done||!Ia(i,o).done)throw new cl("Expected sequence with length 2");vl(l,{key:Qa(s.value),value:Qa(a.value)})}else for(var u in e)$a(e,u)&&vl(l,{key:u,value:Qa(e[u])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,o=bl(e,"&"),i=0;i0?arguments[0]:void 0));Oa||(this.size=e.entries.length)},Ll=Dl.prototype;if(ja(Ll,{append:function(e,t){var r=rl(this);Xa(arguments.length,2),vl(r.entries,{key:Qa(e),value:Qa(t)}),Oa||this.length++,r.updateURL()},delete:function(e){for(var t=rl(this),r=Xa(arguments.length,1),n=t.entries,o=Qa(e),i=r<2?void 0:arguments[1],s=void 0===i?i:Qa(i),a=0;at.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=rl(this).entries,n=Na(e,arguments.length>1?arguments[1]:void 0),o=0;o1?$l(arguments[1]):{})}}),Ha(il)){var Nl=function(e){return Fa(this,al),new il(e,arguments.length>1?$l(arguments[1]):{})};al.constructor=Nl,Nl.prototype=al,Ea({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Nl})}}var ql={URLSearchParams:Dl,getState:rl},Ml=l,Bl=Gr,Ql=na,Vl=p,zl=Ml("".charAt),Gl=Ml("".charCodeAt),Jl=Ml("".slice),Wl=function(e){return function(t,r){var n,o,i=Ql(Vl(t)),s=Bl(r),a=i.length;return s<0||s>=a?e?"":void 0:(n=Gl(i,s))<55296||n>56319||s+1===a||(o=Gl(i,s+1))<56320||o>57343?e?zl(i,s):n:e?Jl(i,s,s+2):o-56320+(n-55296<<10)+65536}},Xl={codeAt:Wl(!1),charAt:Wl(!0)},Kl=Xl.charAt,Zl=na,Yl=Eo,ec=xs,tc=Ps,rc="String Iterator",nc=Yl.set,oc=Yl.getterFor(rc);ec(String,"String",(function(e){nc(this,{type:rc,string:Zl(e),index:0})}),(function(){var e,t=oc(this),r=t.string,n=t.index;return n>=r.length?tc(void 0,!0):(e=Kl(r,n),t.index+=e.length,tc(e,!1))}));var ic=pe,sc=l,ac=ge,lc=r,cc=jo,uc=yn,dc=ve,pc=g,fc=Ie,hc=Object.assign,gc=Object.defineProperty,vc=sc([].concat),mc=!hc||lc((function(){if(ic&&1!==hc({b:1},hc(gc({},"a",{enumerable:!0,get:function(){gc(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!==hc({},e)[r]||cc(hc({},t)).join("")!==n}))?function(e,t){for(var r=pc(e),n=arguments.length,o=1,i=uc.f,s=dc.f;n>o;)for(var a,l=fc(arguments[o++]),c=i?vc(cc(l),i(l)):cc(l),u=c.length,d=0;u>d;)a=c[d++],ic&&!ac(s,l,a)||(r[a]=l[a]);return r}:hc,yc=ge,wc=gr,bc=ht,Sc=function(e,t,r){var n,o;wc(e);try{if(!(n=bc(e,"return"))){if("throw"===t)throw r;return r}n=yc(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return wc(n),r},Cc=gr,Ec=Sc,xc=ro,Pc=Tt("iterator"),kc=Array.prototype,Ic=function(e){return void 0!==e&&(xc.Array===e||kc[Pc]===e)},Rc=k,Oc=z,Uc=l(Function.toString);Rc(Oc.inspectSource)||(Oc.inspectSource=function(e){return Uc(e)});var _c=Oc.inspectSource,Ac=l,jc=r,Tc=k,Dc=Ti,Lc=_c,Fc=function(){},Hc=He("Reflect","construct"),$c=/^\s*(?:class|function)\b/,Nc=Ac($c.exec),qc=!$c.test(Fc),Mc=function(e){if(!Tc(e))return!1;try{return Hc(Fc,[],e),!0}catch(e){return!1}},Bc=function(e){if(!Tc(e))return!1;switch(Dc(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return qc||!!Nc($c,Lc(e))}catch(e){return!0}};Bc.sham=!0;var Qc,Vc=!Hc||jc((function(){var e;return Mc(Mc.call)||!Mc(Object)||!Mc((function(){e=!0}))||e}))?Bc:Mc,zc=cr,Gc=ge,Jc=g,Wc=function(e,t,r,n){try{return n?t(Cc(r)[0],r[1]):t(r)}catch(t){Ec(e,"throw",t)}},Xc=Ic,Kc=Vc,Zc=tn,Yc=Rn,eu=va,tu=ca,ru=Array,nu=l,ou=2147483647,iu=/[^\0-\u007E]/,su=/[.\u3002\uFF0E\uFF61]/g,au="Overflow: input needs wider integers to process",lu=RangeError,cu=nu(su.exec),uu=Math.floor,du=String.fromCharCode,pu=nu("".charCodeAt),fu=nu([].join),hu=nu([].push),gu=nu("".replace),vu=nu("".split),mu=nu("".toLowerCase),yu=function(e){return e+22+75*(e<26)},wu=function(e,t,r){var n=0;for(e=r?uu(e/700):e>>1,e+=uu(e/t);e>455;)e=uu(e/35),n+=36;return uu(n+36*e/(e+38))},bu=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r=55296&&o<=56319&&r=i&&nuu((ou-s)/d))throw new lu(au);for(s+=(u-i)*d,i=u,r=0;rou)throw new lu(au);if(n===i){for(var p=s,f=36;;){var h=f<=a?1:f>=a+26?26:f-a;if(p1?arguments[1]:void 0,i=void 0!==o;i&&(o=zc(o,n>2?arguments[2]:void 0));var s,a,l,c,u,d,p=tu(t),f=0;if(!p||this===ru&&Xc(p))for(s=Zc(t),a=r?new this(s):ru(s);s>f;f++)d=i?o(t[f],f):t[f],Yc(a,f,d);else for(a=r?new this:[],u=(c=eu(t,p)).next;!(l=Gc(u,c)).done;f++)d=i?Wc(c,o,[l.value,f],!0):l.value,Yc(a,f,d);return a.length=f,a},ju=wa,Tu=Xl.codeAt,Du=function(e){var t,r,n=[],o=vu(gu(mu(e),su,"."),".");for(t=0;t?@[\\\]^|]/,wd=/[\0\t\n\r #/:<>?@[\\\]^|]/,bd=/^[\u0000-\u0020]+/,Sd=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Cd=/[\t\n\r]/g,Ed=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)ad(t,e%256),e=Ju(e/256);return Zu(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r?n:t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=Yu(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},xd={},Pd=_u({},xd,{" ":1,'"':1,"<":1,">":1,"`":1}),kd=_u({},Pd,{"#":1,"?":1,"{":1,"}":1}),Id=_u({},kd,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Rd=function(e,t){var r=Tu(e,0);return r>32&&r<127&&!Uu(t,e)?e:encodeURIComponent(e)},Od={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Ud=function(e,t){var r;return 2===e.length&&Ku(dd,Xu(e,0))&&(":"===(r=Xu(e,1))||!t&&"|"===r)},_d=function(e){var t;return e.length>1&&Ud(id(e,0,2))&&(2===e.length||"/"===(t=Xu(e,2))||"\\"===t||"?"===t||"#"===t)},Ad=function(e){return"."===e||"%2e"===sd(e)},jd={},Td={},Dd={},Ld={},Fd={},Hd={},$d={},Nd={},qd={},Md={},Bd={},Qd={},Vd={},zd={},Gd={},Jd={},Wd={},Xd={},Kd={},Zd={},Yd={},ep=function(e,t,r){var n,o,i,s=Lu(e);if(t){if(o=this.parse(s))throw new zu(o);this.searchParams=null}else{if(void 0!==r&&(n=new ep(r,!0)),o=this.parse(s,null,n))throw new zu(o);(i=Qu(new Bu)).bindURL(this),this.searchParams=i}};ep.prototype={type:"URL",parse:function(e,t,r){var n,o,i,s,a,l=this,c=t||jd,u=0,d="",p=!1,f=!1,h=!1;for(e=Lu(e),t||(l.scheme="",l.username="",l.password="",l.host=null,l.port=null,l.path=[],l.query=null,l.fragment=null,l.cannotBeABaseURL=!1,e=rd(e,bd,""),e=rd(e,Sd,"$1")),e=rd(e,Cd,""),n=Au(e);u<=n.length;){switch(o=n[u],c){case jd:if(!o||!Ku(dd,o)){if(t)return ld;c=Dd;continue}d+=sd(o),c=Td;break;case Td:if(o&&(Ku(pd,o)||"+"===o||"-"===o||"."===o))d+=sd(o);else{if(":"!==o){if(t)return ld;d="",c=Dd,u=0;continue}if(t&&(l.isSpecial()!==Uu(Od,d)||"file"===d&&(l.includesCredentials()||null!==l.port)||"file"===l.scheme&&!l.host))return;if(l.scheme=d,t)return void(l.isSpecial()&&Od[l.scheme]===l.port&&(l.port=null));d="","file"===l.scheme?c=zd:l.isSpecial()&&r&&r.scheme===l.scheme?c=Ld:l.isSpecial()?c=Nd:"/"===n[u+1]?(c=Fd,u++):(l.cannotBeABaseURL=!0,td(l.path,""),c=Kd)}break;case Dd:if(!r||r.cannotBeABaseURL&&"#"!==o)return ld;if(r.cannotBeABaseURL&&"#"===o){l.scheme=r.scheme,l.path=ju(r.path),l.query=r.query,l.fragment="",l.cannotBeABaseURL=!0,c=Yd;break}c="file"===r.scheme?zd:Hd;continue;case Ld:if("/"!==o||"/"!==n[u+1]){c=Hd;continue}c=qd,u++;break;case Fd:if("/"===o){c=Md;break}c=Xd;continue;case Hd:if(l.scheme=r.scheme,o===Qc)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=ju(r.path),l.query=r.query;else if("/"===o||"\\"===o&&l.isSpecial())c=$d;else if("?"===o)l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=ju(r.path),l.query="",c=Zd;else{if("#"!==o){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=ju(r.path),l.path.length--,c=Xd;continue}l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,l.path=ju(r.path),l.query=r.query,l.fragment="",c=Yd}break;case $d:if(!l.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){l.username=r.username,l.password=r.password,l.host=r.host,l.port=r.port,c=Xd;continue}c=Md}else c=qd;break;case Nd:if(c=qd,"/"!==o||"/"!==Xu(d,u+1))continue;u++;break;case qd:if("/"!==o&&"\\"!==o){c=Md;continue}break;case Md:if("@"===o){p&&(d="%40"+d),p=!0,i=Au(d);for(var g=0;g65535)return ud;l.port=l.isSpecial()&&y===Od[l.scheme]?null:y,d=""}if(t)return;c=Wd;continue}return ud}d+=o;break;case zd:if(l.scheme="file","/"===o||"\\"===o)c=Gd;else{if(!r||"file"!==r.scheme){c=Xd;continue}switch(o){case Qc:l.host=r.host,l.path=ju(r.path),l.query=r.query;break;case"?":l.host=r.host,l.path=ju(r.path),l.query="",c=Zd;break;case"#":l.host=r.host,l.path=ju(r.path),l.query=r.query,l.fragment="",c=Yd;break;default:_d(Zu(ju(n,u),""))||(l.host=r.host,l.path=ju(r.path),l.shortenPath()),c=Xd;continue}}break;case Gd:if("/"===o||"\\"===o){c=Jd;break}r&&"file"===r.scheme&&!_d(Zu(ju(n,u),""))&&(Ud(r.path[0],!0)?td(l.path,r.path[0]):l.host=r.host),c=Xd;continue;case Jd:if(o===Qc||"/"===o||"\\"===o||"?"===o||"#"===o){if(!t&&Ud(d))c=Xd;else if(""===d){if(l.host="",t)return;c=Wd}else{if(s=l.parseHost(d))return s;if("localhost"===l.host&&(l.host=""),t)return;d="",c=Wd}continue}d+=o;break;case Wd:if(l.isSpecial()){if(c=Xd,"/"!==o&&"\\"!==o)continue}else if(t||"?"!==o)if(t||"#"!==o){if(o!==Qc&&(c=Xd,"/"!==o))continue}else l.fragment="",c=Yd;else l.query="",c=Zd;break;case Xd:if(o===Qc||"/"===o||"\\"===o&&l.isSpecial()||!t&&("?"===o||"#"===o)){if(".."===(a=sd(a=d))||"%2e."===a||".%2e"===a||"%2e%2e"===a?(l.shortenPath(),"/"===o||"\\"===o&&l.isSpecial()||td(l.path,"")):Ad(d)?"/"===o||"\\"===o&&l.isSpecial()||td(l.path,""):("file"===l.scheme&&!l.path.length&&Ud(d)&&(l.host&&(l.host=""),d=Xu(d,0)+":"),td(l.path,d)),d="","file"===l.scheme&&(o===Qc||"?"===o||"#"===o))for(;l.path.length>1&&""===l.path[0];)nd(l.path);"?"===o?(l.query="",c=Zd):"#"===o&&(l.fragment="",c=Yd)}else d+=Rd(o,kd);break;case Kd:"?"===o?(l.query="",c=Zd):"#"===o?(l.fragment="",c=Yd):o!==Qc&&(l.path[0]+=Rd(o,xd));break;case Zd:t||"#"!==o?o!==Qc&&("'"===o&&l.isSpecial()?l.query+="%27":l.query+="#"===o?"%23":Rd(o,xd)):(l.fragment="",c=Yd);break;case Yd:o!==Qc&&(l.fragment+=Rd(o,Pd))}u++}},parseHost:function(e){var t,r,n;if("["===Xu(e,0)){if("]"!==Xu(e,e.length-1))return cd;if(t=function(e){var t,r,n,o,i,s,a,l=[0,0,0,0,0,0,0,0],c=0,u=null,d=0,p=function(){return Xu(e,d)};if(":"===p()){if(":"!==Xu(e,1))return;d+=2,u=++c}for(;p();){if(8===c)return;if(":"!==p()){for(t=r=0;r<4&&Ku(md,p());)t=16*t+Gu(p(),16),d++,r++;if("."===p()){if(0===r)return;if(d-=r,c>6)return;for(n=0;p();){if(o=null,n>0){if(!("."===p()&&n<4))return;d++}if(!Ku(fd,p()))return;for(;Ku(fd,p());){if(i=Gu(p(),10),null===o)o=i;else{if(0===o)return;o=10*o+i}if(o>255)return;d++}l[c]=256*l[c]+o,2!=++n&&4!==n||c++}if(4!==n)return;break}if(":"===p()){if(d++,!p())return}else if(p())return;l[c++]=t}else{if(null!==u)return;d++,u=++c}}if(null!==u)for(s=c-u,c=7;0!==c&&s>0;)a=l[c],l[c--]=l[u+s-1],l[u+--s]=a;else if(8!==c)return;return l}(id(e,1,-1)),!t)return cd;this.host=t}else if(this.isSpecial()){if(e=Du(e),Ku(yd,e))return cd;if(t=function(e){var t,r,n,o,i,s,a,l=od(e,".");if(l.length&&""===l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(r=[],n=0;n1&&"0"===Xu(o,0)&&(i=Ku(hd,o)?16:8,o=id(o,8===i?1:2)),""===o)s=0;else{if(!Ku(10===i?vd:8===i?gd:md,o))return e;s=Gu(o,i)}td(r,s)}for(n=0;n=Wu(256,5-t))return null}else if(s>255)return null;for(a=ed(r),n=0;n1?arguments[1]:void 0,n=qu(t,new ep(e,!1,r));Cu||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},rp=tp.prototype,np=function(e,t){return{get:function(){return Mu(this)[e]()},set:t&&function(e){return Mu(this)[t](e)},configurable:!0,enumerable:!0}};if(Cu&&(Ru(rp,"href",np("serialize","setHref")),Ru(rp,"origin",np("getOrigin")),Ru(rp,"protocol",np("getProtocol","setProtocol")),Ru(rp,"username",np("getUsername","setUsername")),Ru(rp,"password",np("getPassword","setPassword")),Ru(rp,"host",np("getHost","setHost")),Ru(rp,"hostname",np("getHostname","setHostname")),Ru(rp,"port",np("getPort","setPort")),Ru(rp,"pathname",np("getPathname","setPathname")),Ru(rp,"search",np("getSearch","setSearch")),Ru(rp,"searchParams",np("getSearchParams")),Ru(rp,"hash",np("getHash","setHash"))),Iu(rp,"toJSON",(function(){return Mu(this).serialize()}),{enumerable:!0}),Iu(rp,"toString",(function(){return Mu(this).serialize()}),{enumerable:!0}),Vu){var op=Vu.createObjectURL,ip=Vu.revokeObjectURL;op&&Iu(tp,"createObjectURL",Pu(op,Vu)),ip&&Iu(tp,"revokeObjectURL",Pu(ip,Vu))}Fu(tp,"URL"),Su({global:!0,constructor:!0,forced:!Eu,sham:!Cu},{URL:tp});var sp=qr,ap=r,lp=ya,cp=na,up=Js,dp=He("URL"),pp=up&&ap((function(){dp.canParse()})),fp=ap((function(){return 1!==dp.canParse.length}));sp({target:"URL",stat:!0,forced:!pp||fp},{canParse:function(e){var t=lp(arguments.length,1),r=cp(e),n=t<2||void 0===arguments[1]?void 0:cp(arguments[1]);try{return!!new dp(r,n)}catch(e){return!1}}});var hp=qr,gp=ya,vp=na,mp=Js,yp=He("URL");hp({target:"URL",stat:!0,forced:!mp},{parse:function(e){var t=gp(arguments.length,1),r=vp(e),n=t<2||void 0===arguments[1]?void 0:vp(arguments[1]);try{return new yp(r,n)}catch(e){return null}}});var wp=t(je.URL),bp=at,Sp=TypeError,Cp=g,Ep=tn,xp=Hn,Pp=function(e,t){if(!delete e[t])throw new Sp("Cannot delete property "+bp(t)+" of "+bp(e))},kp=Nn;qr({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}()},{unshift:function(e){var t=Cp(this),r=Ep(t),n=arguments.length;if(n){kp(r+n);for(var o=r;o--;){var i=o+n;o in t?t[i]=t[o]:Pp(t,i)}for(var s=0;s1?arguments[1]:void 0)}});var jp=Xn("Array","includes"),Tp=Ae,Dp=C,Lp=Tt("match"),Fp=function(e){var t;return Tp(e)&&(void 0!==(t=e[Lp])?!!t:"RegExp"===Dp(e))},Hp=TypeError,$p=Tt("match"),Np=qr,qp=function(e){if(Fp(e))throw new Hp("The method doesn't accept regular expressions");return e},Mp=p,Bp=na,Qp=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[$p]=!1,"/./"[e](t)}catch(e){}}return!1},Vp=l("".indexOf);Np({target:"String",proto:!0,forced:!Qp("includes")},{includes:function(e){return!!~Vp(Bp(Mp(this)),Bp(qp(e)),arguments.length>1?arguments[1]:void 0)}});var zp=Xn("String","includes"),Gp=$e,Jp=jp,Wp=zp,Xp=Array.prototype,Kp=String.prototype,Zp=t((function(e){var t=e.includes;return e===Xp||Gp(Xp,e)&&t===Xp.includes?Jp:"string"==typeof e||e===Kp||Gp(Kp,e)&&t===Kp.includes?Wp:t})),Yp=qr,ef=Date,tf=l(ef.prototype.getTime);Yp({target:"Date",stat:!0},{now:function(){return tf(new ef)}});var rf=t(je.Date.now),nf=pe,of=r,sf=l,af=fi,lf=jo,cf=Ue,uf=sf(ve.f),df=sf([].push),pf=nf&&of((function(){var e=Object.create(null);return e[2]=2,!uf(e,2)})),ff=function(e){return function(t){for(var r,n=cf(t),o=lf(n),i=pf&&null===af(n),s=o.length,a=0,l=[];s>a;)r=o[a++],nf&&!(i?r in n:uf(n,r))||df(l,e?[r,n[r]]:n[r]);return l}},hf={entries:ff(!0),values:ff(!1)}.entries;qr({target:"Object",stat:!0},{entries:function(e){return hf(e)}});var gf=t(je.Object.entries),vf=y,mf=xn,yf=de,wf=ur,bf=Ae,Sf=Or,Cf=Error,Ef=l("".replace),xf=String(new Cf("zxcasd").stack),Pf=/\n\s*at [^:]*:[^\n]*/,kf=Pf.test(xf),If=Ce,Rf=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",If(1,7)),7!==e.stack)})),Of=Or,Uf=function(e,t){if(kf&&"string"==typeof e&&!Cf.prepareStackTrace)for(;t--;)e=Ef(e,Pf,"");return e},_f=Rf,Af=Error.captureStackTrace,jf=cr,Tf=ge,Df=gr,Lf=at,Ff=Ic,Hf=tn,$f=$e,Nf=va,qf=ca,Mf=Sc,Bf=TypeError,Qf=function(e,t){this.stopped=e,this.result=t},Vf=Qf.prototype,zf=function(e,t,r){var n,o,i,s,a,l,c,u=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_RECORD),f=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),g=jf(t,u),v=function(e){return n&&Mf(n,"normal",e),new Qf(!0,e)},m=function(e){return d?(Df(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)n=e.iterator;else if(f)n=e;else{if(!(o=qf(e)))throw new Bf(Lf(e)+" is not iterable");if(Ff(o)){for(i=0,s=Hf(e);s>i;i++)if((a=m(e[i]))&&$f(Vf,a))return a;return new Qf(!1)}n=Nf(e,o)}for(l=p?e.next:n.next;!(c=Tf(l,n)).done;){try{a=m(c.value)}catch(e){Mf(n,"throw",e)}if("object"==typeof a&&a&&$f(Vf,a))return a}return new Qf(!1)},Gf=na,Jf=qr,Wf=$e,Xf=fi,Kf=as,Zf=function(e,t,r){for(var n=mf(t),o=wf.f,i=yf.f,s=0;s2&&rh(r,arguments[2]);var o=[];return oh(e,lh,{that:o}),eh(r,"errors",o),r};Kf?Kf(ch,ah):Zf(ch,ah,{name:!0});var uh=ch.prototype=Yf(ah.prototype,{constructor:th(1,ch),message:th(1,""),name:th(1,"AggregateError")});Jf({global:!0,constructor:!0,arity:2},{AggregateError:ch});var dh,ph,fh,hh,gh=$,vh=Me,mh=C,yh=function(e){return vh.slice(0,e.length)===e},wh=yh("Bun/")?"BUN":yh("Cloudflare-Workers")?"CLOUDFLARE":yh("Deno/")?"DENO":yh("Node.js/")?"NODE":gh.Bun&&"string"==typeof Bun.version?"BUN":gh.Deno&&"object"==typeof Deno.version?"DENO":"process"===mh(gh.process)?"NODE":gh.window&&gh.document?"BROWSER":"REST",bh="NODE"===wh,Sh=He,Ch=Xs,Eh=pe,xh=Tt("species"),Ph=Vc,kh=at,Ih=TypeError,Rh=gr,Oh=function(e){if(Ph(e))return e;throw new Ih(kh(e)+" is not a constructor")},Uh=c,_h=Tt("species"),Ah=function(e,t){var r,n=Rh(e).constructor;return void 0===n||Uh(r=Rh(n)[_h])?t:Oh(r)},jh=/(?:ipad|iphone|ipod).*applewebkit/i.test(Me),Th=$,Dh=ae,Lh=cr,Fh=k,Hh=y,$h=r,Nh=qo,qh=wa,Mh=Jt,Bh=ya,Qh=jh,Vh=bh,zh=Th.setImmediate,Gh=Th.clearImmediate,Jh=Th.process,Wh=Th.Dispatch,Xh=Th.Function,Kh=Th.MessageChannel,Zh=Th.String,Yh=0,eg={},tg="onreadystatechange";$h((function(){dh=Th.location}));var rg=function(e){if(Hh(eg,e)){var t=eg[e];delete eg[e],t()}},ng=function(e){return function(){rg(e)}},og=function(e){rg(e.data)},ig=function(e){Th.postMessage(Zh(e),dh.protocol+"//"+dh.host)};zh&&Gh||(zh=function(e){Bh(arguments.length,1);var t=Fh(e)?e:Xh(e),r=qh(arguments,1);return eg[++Yh]=function(){Dh(t,void 0,r)},ph(Yh),Yh},Gh=function(e){delete eg[e]},Vh?ph=function(e){Jh.nextTick(ng(e))}:Wh&&Wh.now?ph=function(e){Wh.now(ng(e))}:Kh&&!Qh?(hh=(fh=new Kh).port2,fh.port1.onmessage=og,ph=Lh(hh.postMessage,hh)):Th.addEventListener&&Fh(Th.postMessage)&&!Th.importScripts&&dh&&"file:"!==dh.protocol&&!$h(ig)?(ph=ig,Th.addEventListener("message",og,!1)):ph=tg in Mh("script")?function(e){Nh.appendChild(Mh("script"))[tg]=function(){Nh.removeChild(this),rg(e)}}:function(e){setTimeout(ng(e),0)});var sg={set:zh,clear:Gh},ag=function(){this.head=null,this.tail=null};ag.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var lg,cg,ug,dg,pg,fg=ag,hg=/ipad|iphone|ipod/i.test(Me)&&"undefined"!=typeof Pebble,gg=/web0s(?!.*chrome)/i.test(Me),vg=$,mg=Qs,yg=cr,wg=sg.set,bg=fg,Sg=jh,Cg=hg,Eg=gg,xg=bh,Pg=vg.MutationObserver||vg.WebKitMutationObserver,kg=vg.document,Ig=vg.process,Rg=vg.Promise,Og=mg("queueMicrotask");if(!Og){var Ug=new bg,_g=function(){var e,t;for(xg&&(e=Ig.domain)&&e.exit();t=Ug.get();)try{t()}catch(e){throw Ug.head&&lg(),e}e&&e.enter()};Sg||xg||Eg||!Pg||!kg?!Cg&&Rg&&Rg.resolve?((dg=Rg.resolve(void 0)).constructor=Rg,pg=yg(dg.then,dg),lg=function(){pg(_g)}):xg?lg=function(){Ig.nextTick(_g)}:(wg=yg(wg,vg),lg=function(){wg(_g)}):(cg=!0,ug=kg.createTextNode(""),new Pg(_g).observe(ug,{characterData:!0}),lg=function(){ug.data=cg=!cg}),Og=function(e){Ug.head||lg(),Ug.add(e)}}var Ag=Og,jg=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Tg=$.Promise,Dg=$,Lg=Tg,Fg=k,Hg=D,$g=_c,Ng=Tt,qg=wh,Mg=We,Bg=Lg&&Lg.prototype,Qg=Ng("species"),Vg=!1,zg=Fg(Dg.PromiseRejectionEvent),Gg=Hg("Promise",(function(){var e=$g(Lg),t=e!==String(Lg);if(!t&&66===Mg)return!0;if(!Bg.catch||!Bg.finally)return!0;if(!Mg||Mg<51||!/native code/.test(e)){var r=new Lg((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[Qg]=n,!(Vg=r.then((function(){}))instanceof n))return!0}return!(t||"BROWSER"!==qg&&"DENO"!==qg||zg)})),Jg={CONSTRUCTOR:Gg,REJECTION_EVENT:zg,SUBCLASSING:Vg},Wg={},Xg=dt,Kg=TypeError,Zg=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw new Kg("Bad Promise constructor");t=e,r=n})),this.resolve=Xg(t),this.reject=Xg(r)};Wg.f=function(e){return new Zg(e)};var Yg,ev,tv=qr,rv=bh,nv=$,ov=ge,iv=gi,sv=Bi,av=function(e){var t=Sh(e);Eh&&t&&!t[xh]&&Ch(t,xh,{configurable:!0,get:function(){return this}})},lv=dt,cv=k,uv=Ae,dv=ea,pv=Ah,fv=sg.set,hv=Ag,gv=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}},vv=jg,mv=fg,yv=Eo,wv=Tg,bv=Jg,Sv=Wg,Cv="Promise",Ev=bv.CONSTRUCTOR,xv=bv.REJECTION_EVENT,Pv=yv.getterFor(Cv),kv=yv.set,Iv=wv&&wv.prototype,Rv=wv,Ov=Iv,Uv=nv.TypeError,_v=nv.document,Av=nv.process,jv=Sv.f,Tv=jv,Dv=!!(_v&&_v.createEvent&&nv.dispatchEvent),Lv="unhandledrejection",Fv=function(e){var t;return!(!uv(e)||!cv(t=e.then))&&t},Hv=function(e,t){var r,n,o,i=t.value,s=1===t.state,a=s?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{a?(s||(2===t.rejection&&Bv(t),t.rejection=1),!0===a?r=i:(u&&u.enter(),r=a(i),u&&(u.exit(),o=!0)),r===e.promise?c(new Uv("Promise-chain cycle")):(n=Fv(r))?ov(n,r,l,c):l(r)):c(i)}catch(e){u&&!o&&u.exit(),c(e)}},$v=function(e,t){e.notified||(e.notified=!0,hv((function(){for(var r,n=e.reactions;r=n.get();)Hv(r,e);e.notified=!1,t&&!e.rejection&&qv(e)})))},Nv=function(e,t,r){var n,o;Dv?((n=_v.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),nv.dispatchEvent(n)):n={promise:t,reason:r},!xv&&(o=nv["on"+e])?o(n):e===Lv&&gv("Unhandled promise rejection",r)},qv=function(e){ov(fv,nv,(function(){var t,r=e.facade,n=e.value;if(Mv(e)&&(t=vv((function(){rv?Av.emit("unhandledRejection",n,r):Nv(Lv,r,n)})),e.rejection=rv||Mv(e)?2:1,t.error))throw t.value}))},Mv=function(e){return 1!==e.rejection&&!e.parent},Bv=function(e){ov(fv,nv,(function(){var t=e.facade;rv?Av.emit("rejectionHandled",t):Nv("rejectionhandled",t,e.value)}))},Qv=function(e,t,r){return function(n){e(t,n,r)}},Vv=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,$v(e,!0))},zv=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new Uv("Promise can't be resolved itself");var n=Fv(t);n?hv((function(){var r={done:!1};try{ov(n,t,Qv(zv,r,e),Qv(Vv,r,e))}catch(t){Vv(r,t,e)}})):(e.value=t,e.state=1,$v(e,!1))}catch(t){Vv({done:!1},t,e)}}};Ev&&(Ov=(Rv=function(e){dv(this,Ov),lv(e),ov(Yg,this);var t=Pv(this);try{e(Qv(zv,t),Qv(Vv,t))}catch(e){Vv(t,e)}}).prototype,(Yg=function(e){kv(this,{type:Cv,done:!1,notified:!1,parent:!1,reactions:new mv,rejection:!1,state:0,value:null})}).prototype=iv(Ov,"then",(function(e,t){var r=Pv(this),n=jv(pv(this,Rv));return r.parent=!0,n.ok=!cv(e)||e,n.fail=cv(t)&&t,n.domain=rv?Av.domain:void 0,0===r.state?r.reactions.add(n):hv((function(){Hv(n,r)})),n.promise})),ev=function(){var e=new Yg,t=Pv(e);this.promise=e,this.resolve=Qv(zv,t),this.reject=Qv(Vv,t)},Sv.f=jv=function(e){return e===Rv||undefined===e?new ev(e):Tv(e)}),tv({global:!0,constructor:!0,wrap:!0,forced:Ev},{Promise:Rv}),sv(Rv,Cv,!1,!0),av(Cv);var Gv=Tt("iterator"),Jv=!1;try{var Wv=0,Xv={next:function(){return{done:!!Wv++}},return:function(){Jv=!0}};Xv[Gv]=function(){return this},Array.from(Xv,(function(){throw 2}))}catch(e){}var Kv=Tg,Zv=function(e,t){try{if(!t&&!Jv)return!1}catch(e){return!1}var r=!1;try{var n={};n[Gv]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},Yv=Jg.CONSTRUCTOR||!Zv((function(e){Kv.all(e).then(void 0,(function(){}))})),em=ge,tm=dt,rm=Wg,nm=jg,om=zf;qr({target:"Promise",stat:!0,forced:Yv},{all:function(e){var t=this,r=rm.f(t),n=r.resolve,o=r.reject,i=nm((function(){var r=tm(t.resolve),i=[],s=0,a=1;om(e,(function(e){var l=s++,c=!1;a++,em(r,t,e).then((function(e){c||(c=!0,i[l]=e,--a||n(i))}),o)})),--a||n(i)}));return i.error&&o(i.value),r.promise}});var im=qr,sm=Jg.CONSTRUCTOR;Tg&&Tg.prototype,im({target:"Promise",proto:!0,forced:sm,real:!0},{catch:function(e){return this.then(void 0,e)}});var am=ge,lm=dt,cm=Wg,um=jg,dm=zf;qr({target:"Promise",stat:!0,forced:Yv},{race:function(e){var t=this,r=cm.f(t),n=r.reject,o=um((function(){var o=lm(t.resolve);dm(e,(function(e){am(o,t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var pm=Wg;qr({target:"Promise",stat:!0,forced:Jg.CONSTRUCTOR},{reject:function(e){var t=pm.f(this);return(0,t.reject)(e),t.promise}});var fm=gr,hm=Ae,gm=Wg,vm=function(e,t){if(fm(e),hm(t)&&t.constructor===e)return t;var r=gm.f(e);return(0,r.resolve)(t),r.promise},mm=qr,ym=Tg,wm=Jg.CONSTRUCTOR,bm=vm,Sm=He("Promise"),Cm=!wm;mm({target:"Promise",stat:!0,forced:true},{resolve:function(e){return bm(Cm&&this===Sm?ym:this,e)}});var Em=ge,xm=dt,Pm=Wg,km=jg,Im=zf;qr({target:"Promise",stat:!0,forced:Yv},{allSettled:function(e){var t=this,r=Pm.f(t),n=r.resolve,o=r.reject,i=km((function(){var r=xm(t.resolve),o=[],i=0,s=1;Im(e,(function(e){var a=i++,l=!1;s++,Em(r,t,e).then((function(e){l||(l=!0,o[a]={status:"fulfilled",value:e},--s||n(o))}),(function(e){l||(l=!0,o[a]={status:"rejected",reason:e},--s||n(o))}))})),--s||n(o)}));return i.error&&o(i.value),r.promise}});var Rm=ge,Om=dt,Um=He,_m=Wg,Am=jg,jm=zf,Tm="No one promise resolved";qr({target:"Promise",stat:!0,forced:Yv},{any:function(e){var t=this,r=Um("AggregateError"),n=_m.f(t),o=n.resolve,i=n.reject,s=Am((function(){var n=Om(t.resolve),s=[],a=0,l=1,c=!1;jm(e,(function(e){var u=a++,d=!1;l++,Rm(n,t,e).then((function(e){d||c||(c=!0,o(e))}),(function(e){d||c||(d=!0,s[u]=e,--l||i(new r(s,Tm)))}))})),--l||i(new r(s,Tm))}));return s.error&&i(s.value),n.promise}});var Dm=qr,Lm=ae,Fm=wa,Hm=Wg,$m=dt,Nm=jg,qm=$.Promise,Mm=!1;Dm({target:"Promise",stat:!0,forced:!qm||!qm.try||Nm((function(){qm.try((function(e){Mm=8===e}),8)})).error||!Mm},{try:function(e){var t=arguments.length>1?Fm(arguments,1):[],r=Hm.f(this),n=Nm((function(){return Lm($m(e),void 0,t)}));return(n.error?r.reject:r.resolve)(n.value),r.promise}});var Bm=Wg;qr({target:"Promise",stat:!0},{withResolvers:function(){var e=Bm.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}});var Qm=qr,Vm=Tg,zm=r,Gm=He,Jm=k,Wm=Ah,Xm=vm,Km=Vm&&Vm.prototype;Qm({target:"Promise",proto:!0,real:!0,forced:!!Vm&&zm((function(){Km.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=Wm(this,Gm("Promise")),r=Jm(e);return this.then(r?function(r){return Xm(t,e()).then((function(){return r}))}:e,r?function(r){return Xm(t,e()).then((function(){throw r}))}:e)}});var Zm=je.Promise,Ym={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},ey=$,ty=Bi,ry=ro;for(var ny in Ym)ty(ey[ny],ny),ry[ny]=ry.Array;var oy=t(Zm),iy=Xn("Array","values"),sy=Ti,ay=y,ly=$e,cy=iy,uy=Array.prototype,dy={DOMTokenList:!0,NodeList:!0},py=t((function(e){var t=e.values;return e===uy||ly(uy,e)&&t===uy.values||ay(dy,sy(e))?cy:t}));qr({target:"Object",stat:!0},{ownProp:y});var fy=t(je.Object.ownProp),hy="\t\n\v\f\r                 \u2028\u2029\ufeff",gy=p,vy=na,my=hy,yy=l("".replace),wy=RegExp("^["+my+"]+"),by=RegExp("(^|[^"+my+"])["+my+"]+$"),Sy=function(e){return function(t){var r=vy(gy(t));return 1&e&&(r=yy(r,wy,"")),2&e&&(r=yy(r,by,"$1")),r}},Cy={start:Sy(1),end:Sy(2),trim:Sy(3)},Ey=Oo.PROPER,xy=r,Py=hy,ky=Cy.trim;qr({target:"String",proto:!0,forced:function(e){return xy((function(){return!!Py[e]()||"​…᠎"!=="​…᠎"[e]()||Ey&&Py[e].name!==e}))}("trim")},{trim:function(){return ky(this)}});var Iy=Xn("String","trim"),Ry=$e,Oy=Iy,Uy=String.prototype,_y=t((function(e){var t=e.trim;return"string"==typeof e||e===Uy||Ry(Uy,e)&&t===Uy.trim?Oy:t})),Ay=g,jy=jo;qr({target:"Object",stat:!0,forced:r((function(){jy(1)}))},{keys:function(e){return jy(Ay(e))}});var Ty=l,Dy=y,Ly=SyntaxError,Fy=parseInt,Hy=String.fromCharCode,$y=Ty("".charAt),Ny=Ty("".slice),qy=Ty(/./.exec),My={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},By=/^[\da-f]{4}$/i,Qy=/^[\u0000-\u001F]$/,Vy=qr,zy=pe,Gy=$,Jy=He,Wy=l,Xy=ge,Ky=k,Zy=Ae,Yy=x,ew=y,tw=na,rw=tn,nw=Rn,ow=r,iw=function(e,t){for(var r=!0,n="";t({pageUrl:Lw(),referrer:Fw()}),Lw=()=>{const e=Hw((()=>window.location.ancestorOrigins))||[],t=[];let r,n=window;for(;n!==top;)to(t).call(t,n),n=n.parent;to(t).call(t,n);for(let n=t.length-1;n>=0&&!r;n--)r=Hw((()=>t[n].location.href)),0!==n&&(r||(r=Hw((()=>t[n-1].document.referrer))),r||(r=e[n-1]));return null!=r?new wp(r):void 0},Fw=()=>Hw((()=>{var e;return null===(e=window.top)||void 0===e?void 0:e.document.referrer})),Hw=e=>{try{return e()}catch(e){return}},$w=e=>{const t=encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,((e,t)=>String.fromCharCode(parseInt("0x"+t,16))));return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")};class Nw{constructor(e=[]){Tw(this,"tuples",void 0),this.tuples=e}static empty(){return new Nw}add(e,t,r={}){const{stripEmpty:n=!0,prepend:o=!1,base64UrlEncode:i=!1}=r;if(""===e)return this;if(n&&""===t)return this;let s;var a,l;return s=i?$w(t.toString()):t,o?(_p(a=this.tuples).call(a,[e,s]),this):(to(l=this.tuples).call(l,[e,s]),this)}addArray(e,t,r={}){return t.forEach((t=>this.add(e,t,r))),this}valuesFor(e){return this.tuples.filter((([t])=>t===e)).map((([,e])=>e))}addOptional(e,t,r={}){return null!=t?this.add(e,t,r):this}addParamsMap(e){for(const t in e){const r=e[t];Array.isArray(r)?r.forEach((e=>this.add(t,e))):this.add(t,r)}return this}copy(){return new Nw(this.tuples.slice())}build(){let e="";return this.tuples.forEach((([t,r])=>{const n=0===e.length?"?":"&";e=`${e}${n}${encodeURIComponent(t)}=${encodeURIComponent(r)}`})),e}}class qw extends Error{constructor(e,t,r){super(t,r),Tw(this,"cause",void 0),this.name=e,r&&r.cause&&(this.cause=r.cause)}}class Mw extends qw{constructor(){super("BlockedByConsentError","Blocked by consent settings")}}const Bw=e=>e instanceof Mw||e instanceof Error&&null!=e.cause&&Bw(e.cause);class Qw{constructor(e){var t;Tw(this,"callHandler",void 0),Tw(this,"baseQuery",void 0),Tw(this,"pixelBaseUrl",void 0),Tw(this,"sampleRate",void 0),this.callHandler=e.callHandler;const r=Dw();let n;null!=r.pageUrl&&(n=new wp(r.pageUrl),n.search=""),this.baseQuery=Nw.empty().add("tv",e.version).addOptional("refr",r.referrer).addOptional("pu",null===(t=n)||void 0===t?void 0:t.toString()),this.pixelBaseUrl=e.pixelBaseUrl,this.sampleRate=e.sampleRate}handleEvent(e){var t=this;return jw((function*(){if("error"===e.level&&!Bw(e.error)&&t.isSampled()){const r=Vw(e.error);for(const n of r)try{yield t.sendError(n,e.context)}catch(e){}}}))()}isSampled(){return Math.random()<=this.sampleRate}sendError(e,t){const r=null!=t&&"appId"in t&&"string"==typeof t.appId?t.appId:void 0,n=null!=t&&"distributorId"in t&&"string"==typeof t.distributorId?t.distributorId:void 0,o=null!=t&&"wrapperName"in t&&"string"==typeof t.wrapperName?t.wrapperName:void 0,i=this.baseQuery.copy().addOptional("aid",r).addOptional("did",n).addOptional("wpn",o).add("ae",JSON.stringify(e),{base64UrlEncode:!0}).build(),s=`${this.pixelBaseUrl}/p${i}`;return this.callHandler.pixelGet(s)}}const Vw=e=>{const t=[];let r=e;for(;null!=r&&"object"==typeof r&&r instanceof Error;)to(t).call(t,{name:r.name.substring(0,120),message:r.message.substring(0,120),stackTrace:zw(r).substring(0,1e3)}),r=r.cause;return t},zw=e=>{let t=e;const r=[];for(;null!=t&&"object"==typeof t&&t instanceof Error;){const e=(n=t.message,o=120,null!=n?n.substring(0,o):void 0);to(r).call(r,null!=e?e:"No message available"),t=t.cause}var n,o;return r.join("\ncaused by: ")},Gw=e=>{let t=window,r=null;for(;!r;){try{e in t.frames&&(r=t)}catch(e){}if(t===window.top||!t.parent)break;t=t.parent}return r},Jw=e=>{var t;return e.gdpr&&e.gdpr.gdprApplies||e.gpp&&Zp(t=e.gpp.applicableSections).call(t,2)||!1};class Ww{fromConsent(e,t){return Jw(e)?(t.info("Using blocked call handler due to privacy mode"),new Xw):new Zw(t)}}class Xw{ajaxGet(){return jw((function*(){throw new Mw}))()}pixelGet(){return jw((function*(){throw new Mw}))()}}const Kw=null!=window.XMLHttpRequest?(e,t,r,n,o)=>(r,i)=>{const s=new XMLHttpRequest,a=rf();if(s.onreadystatechange=()=>{4===s.readyState&&(s.status>=200&&s.status<300||304===s.status?r({getBodyAsText:()=>s.responseText,expiresAt:n(s)}):i(new tb(`Error during XHR call: ${s.status}, url: ${e}`)))},s.ontimeout=()=>{const r=rf()-a;i(new tb(`Timeout after ${r} (${t}), url: ${e}`))},s.open("GET",e,!0),s.timeout=t,s.withCredentials=!0,null!=o)for(const[e,t]of gf(o))null!=t&&s.setRequestHeader(e,t);s.send()}:null!=window.XDomainRequest?(e,t,r,n,o)=>(n,i)=>{const s=new window.XDomainRequest,a=rf();s.onprogress=()=>{},s.onload=()=>n({getBodyAsText:()=>s.responseText}),s.onerror=()=>i(new rb(`Error during XDR call: ${s.responseText}, url: ${e}`)),s.ontimeout=()=>{const r=rf()-a;i(new rb(`Timeout after ${r} (${t}), url: ${e}`))},s.open("GET",e),s.timeout=t,null!=o&&r.error(new ob),s.send()}:(e,t,r,n,o)=>(e,t)=>t(new eb("No supported request api found"));class Zw{constructor(e){Tw(this,"logger",void 0),this.logger=e}ajaxGet(e){var t=this;return jw((function*(){const{url:r,responseHandler:n,headers:o}=e,i=e.timeout||5e3,s=Kw(r,i,t.logger,t.responseExpires.bind(t),o),a=yield new oy(s).catch((e=>{throw new eb(`Failed sending request to url ${r}`,e)}));return{data:n.apply(a),expiresAt:a.expiresAt}}))()}pixelGet(e){const t=new Image,r=new oy(((r,n)=>{t.onload=()=>r(),t.onerror=()=>n(new Yw(`Failed loading pixel: ${e}`))}));return t.src=e,r}responseExpires(e){const t=e.getResponseHeader("expires");if(t)try{return new Date(t)}catch(e){return void this.logger.error(new nb(t))}}}class Yw extends qw{constructor(e){super("PixelError",e)}}class eb extends qw{constructor(e,t){super("RequestError",e,{cause:t})}}class tb extends qw{constructor(e){super("XhrRequestError",e)}}class rb extends qw{constructor(e){super("XdrRequestError",e)}}class nb extends qw{constructor(e){super("ExpiresHeaderParsingError","Failed parsing expires header"),Tw(this,"expiresHeader",void 0),this.expiresHeader=e}}class ob extends qw{constructor(){super("CustomHeadersUnsupportedError","Tried to send custom headers via XDR")}}const ib="1.1",sb=e=>{let t;return"function"==typeof window.__gpp?(e=>{const t={};return new oy(((r,n)=>{const o=e("addEventListener",((e,o)=>lb({evt:e,success:o,resolve:r,reject:n,state:t})),void 0,ib);o&&lb({evt:o,success:!0,resolve:r,reject:n,state:t})})).finally((()=>{t.listenerId&&e("removeEventListener",(()=>{}),t.listenerId,ib)}))})(window.__gpp):(t=Gw("__gppLocator"))?(e=>{const t=`li_gpp_call_${Math.random()}`;let r;const n={};return new oy(((o,i)=>{r=e=>{var r;const s=null==e||null===(r=e.data)||void 0===r?void 0:r.__gppReturn;(null==s?void 0:s.callId)===t&&lb({evt:s.returnValue,success:s.success,resolve:o,reject:i,state:n})},window.addEventListener("message",r,!1);const s={__gppCall:{command:"addEventListener",version:ib,callId:t}};e.postMessage(s,"*")})).finally((()=>{if(window.removeEventListener("message",r,!1),n.listenerId){const r={__gppCall:{command:"removeEventListener",version:ib,callId:t,parameter:n.listenerId}};e.postMessage(r,"*")}}))})(t):(e.info("GPP API not found"),new oy((e=>e(void 0))))},ab=(e,t)=>{"ready"===e.signalStatus&&t({consentString:e.gppString,applicableSections:e.applicableSections})},lb=({evt:e,success:t,resolve:r,reject:n,state:o})=>{if("number"==typeof(null==e?void 0:e.listenerId)&&(o.listenerId=e.listenerId),null==t||t||n(Error("Failed registering GPP event listener")),e.pingData)if(e.pingData.gppVersion){const t=e.pingData,o=t.gppVersion.toString();o!==ib&&"1.0"!==o?n(Error(`unsupported GPP version ${t.gppVersion}`)):"ready"===t.signalStatus&&ab(e.pingData,r)}else try{ab(e.pingData,r)}catch(e){n(Error("Failed to handle GPP event",{cause:e}))}},cb=()=>`li_tcf_call_${Math.random()}`,ub=function(){var e=jw((function*(e){let t;return"function"==typeof window.__tcfapi?db(window.__tcfapi):(t=Gw("__tcfapiLocator"))?pb(t):void e.info("TCF API not found")}));return function(t){return e.apply(this,arguments)}}(),db=function(){var e=jw((function*(e){const t={};return new oy(((r,n)=>{e("addEventListener",2,((e,o)=>fb(e,o,r,n,t)))})).finally((()=>{t.listenerId&&e("removeEventListener",2,(()=>{}),t.listenerId)}))}));return function(t){return e.apply(this,arguments)}}(),pb=function(){var e=jw((function*(e){const t=cb();let r;const n={};return new oy(((o,i)=>{r=e=>{var r;const s=null==e||null===(r=e.data)||void 0===r?void 0:r.__tcfapiReturn;null!=s&&s.success||i(Error("Failed to register TCF API event listener")),(null==s?void 0:s.callId)===t&&fb(s.returnValue,s.success,o,i,n)},window.addEventListener("message",r,!1);const s={__tcfapiCall:{command:"addEventListener",version:2,callId:t}};e.postMessage(s,"*")})).finally((()=>{if(window.removeEventListener("message",r,!1),n.listenerId){const t={__tcfapiCall:{command:"removeEventListener",version:2,callId:cb(),parameter:n.listenerId}};e.postMessage(t,"*")}}))}));return function(t){return e.apply(this,arguments)}}(),fb=(e,t,r,n,o)=>{"number"==typeof(null==e?void 0:e.listenerId)&&(o.listenerId=e.listenerId),t?"tcloaded"!==e.eventStatus&&"useractioncomplete"!==e.eventStatus||r({gdprApplies:null==e.gdprApplies?void 0:!!e.gdprApplies,consentString:e.tcString}):n(Error("Failed to register TCF API event listener"))},hb=function(){var e=jw((function*(e){let t;return"function"==typeof window.__uspapi?gb(window.__uspapi):(t=Gw("__uspapiLocator"))?vb(t):void e.info("USP API not found")}));return function(t){return e.apply(this,arguments)}}(),gb=function(){var e=jw((function*(e){return new oy(((t,r)=>{e("getUSPData",1,((e,n)=>mb(e,n,t,r)))}))}));return function(t){return e.apply(this,arguments)}}(),vb=function(){var e=jw((function*(e){const t=`li_uspapi_call_${Math.random()}`;let r;return new oy(((n,o)=>{r=e=>{var r;const i=null==e||null===(r=e.data)||void 0===r?void 0:r.__uspapiReturn;(null==i?void 0:i.callId)===t&&mb(i.returnValue,i.success,n,o)},window.addEventListener("message",r,!1);const i={__uspapiCall:{command:"getUSPData",version:1,callId:t}};e.postMessage(i,"*")})).finally((()=>{window.removeEventListener("message",r,!1)}))}));return function(t){return e.apply(this,arguments)}}(),mb=(e,t,r,n)=>{t&&"string"==typeof e.uspString?r({consentString:e.uspString}):n(Error("Response from USP API frame was not successful"))},yb=(e,t)=>{let r;return oy.race([e,new oy((e=>{r=setTimeout((()=>e(void 0)),t)}))]).finally((()=>clearTimeout(r)))};class wb{constructor(e){Tw(this,"logger",void 0),Tw(this,"cachedConsent",void 0),this.logger=e}loadConsent(){var e=this;return jw((function*(){return e.cachedConsent||(e.cachedConsent=e.loadConsentUncached()),yield e.cachedConsent}))()}loadConsentUncached(){var e=this;return jw((function*(){return{gdpr:yield yb(ub(e.logger).catch((()=>{})),100),gpp:yield yb(sb(e.logger).catch((()=>{})),100),usPrivacy:yield yb(hb(e.logger).catch((()=>{})),100)}}))()}} /*! js-cookie v3.0.5 | MIT */function bb(e){for(var t=1;tr.indexOf(e)>=0&&null!==t[r])).map((e=>t[e]))}catch(e){return this.logger.error(new Pb("Failed fetching from cookie jar",e)),[]}}localStorageIsEnabled(){return null==this.cachedLocalStorageIsEnabled&&(this.cachedLocalStorageIsEnabled=this.checkLocalStorage()),this.cachedLocalStorageIsEnabled}getDataFromLocalStorage(e){if(this.localStorageIsEnabled())try{var t;return null!==(t=window.localStorage.getItem(e))&&void 0!==t?t:void 0}catch(e){this.logger.error(new kb("Failed fetching from local storage",{cause:e}))}}setDataInLocalStorage(e,t){if(this.localStorageIsEnabled())try{window.localStorage.setItem(e,t)}catch(e){this.logger.error(new kb("Failed saving to local storage",{cause:e}))}}removeDataFromLocalStorage(e){if(this.localStorageIsEnabled())try{window.localStorage.removeItem(e)}catch(e){this.logger.error(new kb("Failed removing from local storage",{cause:e}))}}checkLocalStorage(){let e=!1;try{if(window&&window.localStorage){const t=Math.random().toString();window.localStorage.setItem(t,t),e=window.localStorage.getItem(t)===t,window.localStorage.removeItem(t)}}catch(e){this.logger.error(new kb("Failed checking local storage",{cause:e}))}return e}}class Pb extends qw{constructor(e,t){super("CookieJarError",e,{cause:t})}}class kb extends qw{constructor(e,t){super("LocalStorageError",e,t)}}class Ib{constructor(e){Tw(this,"size",void 0),Tw(this,"buffer",[]),Tw(this,"pointer",0),Tw(this,"full",!1),this.size=e}push(e){var t;this.full?this.buffer[this.pointer]=e:(to(t=this.buffer).call(t,e),this.pointer===this.size-1&&(this.full=!0));this.pointer=(this.pointer+1)%this.size}getLast(e){if(e>=this.size)throw new Rb("index out of bounds");const t=(this.pointer+this.size-e)%this.size;return this.buffer[t]}values(){if(!this.full)return this.buffer;const e=[];for(let t=this.pointer;t1?`(${n.join(` ${t} `)})`:null!==(r=n[0])&&void 0!==r?r:"never"}function zb(e,t){return{kind:"schema",type:"array",reference:zb,expects:"Array",async:!1,item:e,message:t,_run(e,t){const r=e.value;if(Array.isArray(r)){e.typed=!0,e.value=[];for(let s=0;se.expects)),"|"),async:!1,options:e,message:t,_run(e,t){var r;let n,o,i;for(const r of this.options){const s=r._run({typed:!1,value:e.value},t);if(s.typed){if(!s.issues){n=s;break}o?to(o).call(o,s):o=[s]}else i?to(i).call(i,s):i=[s]}if(n)return n;if(o){if(1===o.length)return o[0];Bb(this,"type",e,t,{issues:nS(o)}),e.typed=!0}else{if(1===(null===(r=i)||void 0===r?void 0:r.length))return i[0];Bb(this,"type",e,t,{issues:nS(i)})}return e}}}function iS(){return{kind:"schema",type:"unknown",reference:iS,expects:"unknown",async:!1,_run:e=>(e.typed=!0,e)}}function sS(e,t,r){return{kind:"schema",type:"variant",reference:sS,expects:"Object",async:!1,key:e,options:t,message:r,_run(e,t){const r=e.value;if(r&&"object"==typeof r){let n,o=0,i=this.key,s=[];const a=(e,l)=>{for(const c of e.options){if("variant"===c.type)a(c,new Set(l).add(c.key));else{let e=!0,a=0;for(const n of l){if(c.entries[n]._run({typed:!1,value:r[n]},t).issues){e=!1,i!==n&&(o{if(null==e.pageUrl)return{isPathRemoved:!1,blockedQueryParams:[]};if(pS(t))return{url:e.pageUrl,isPathRemoved:!1,blockedQueryParams:[]};const n=new wp(e.pageUrl);return{url:n,isPathRemoved:uS(n,t),blockedQueryParams:dS(n,t,r)}},uS=(e,t)=>"no_path"===t.mode&&"/"!==e.pathname&&(e.pathname="",!0),dS=(e,t,r)=>{if(null==t.queryParametersFilter||""===t.queryParametersFilter)return[];try{const r=new RegExp(t.queryParametersFilter),n=new Set;return e.searchParams.forEach(((e,t)=>{r.test(t)&&n.add(t)})),n.forEach((t=>e.searchParams.delete(t))),Array.from(n)}catch(e){return r.error(new fS(e)),[]}},pS=e=>"full"===e.mode&&""===e.queryParametersFilter;class fS extends qw{constructor(e){super("FailedToStripQueryParameterError","Failed to strip query parameters",{cause:e})}}for(var hS=[],gS=0;gS<64;)hS[gS]=0|4294967296*Math.sin(++gS%Math.PI);function vS(e){var t,r,n,o=[t=1732584193,r=4023233417,~t,~r],i=[],s=unescape(encodeURI(e))+"€",a=s.length;for(e=--a/4+2|15,i[--e]=8*a;~a;)i[a>>2]|=s.charCodeAt(a)<<8*a--;for(gS=s=0;gS>4]+hS[s]+~~i[gS|15&[s,5*s+1,3*s+5,7*s][a]])<<(a=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*a+s++%4])|n>>>-a),t,r])t=0|a[1],r=a[2];for(s=4;s;)o[--s]+=a[s]}for(e="";s<32;)e+=(o[s>>3]>>4*(1^s++)&15).toString(16);return e}function mS(e){var t,r,n,o,i,s=[],a=[r=1732584193,n=4023233417,~r,~n,3285377520],l=[],c=unescape(encodeURI(e))+"€",u=c.length;for(l[e=--u/4+2|15]=8*u;~u;)l[u>>2]|=c.charCodeAt(u)<<8*~u--;for(t=u=0;t>2]+((c=r[0])<<5|c>>>27),c,n<<30|n>>>2,o,i])c=s[u-3]^s[u-8]^s[u-14]^s[u-16],n=r[1],o=r[2],i=r[3];for(u=5;u;)a[--u]+=r[u]}for(c="";u<40;)c+=(a[u>>3]>>4*(7-u++)&15).toString(16);return c}for(var yS,wS=18,bS=[],SS=[];wS>1;wS--)for(yS=wS;yS<320;)bS[yS+=wS]=1;function CS(e,t){return 4294967296*Math.pow(e,1/t)|0}for(yS=0;yS<64;)bS[++wS]||(SS[yS]=CS(wS,2),bS[yS++]=CS(wS,3));function ES(e,t){return e>>>t|e<<-t}function xS(e){var t=SS.slice(wS=yS=0,8),r=[],n=unescape(encodeURI(e))+"€",o=n.length;for(r[e=--o/4+2|15]=8*o;~o;)r[o>>2]|=n.charCodeAt(o)<<8*~o--;for(o=[];wS>>10)+o[yS-7]+(ES(n=o[yS-15],7)^ES(n,18)^n>>>3)+o[yS-16])+CS.pop()+(ES(n=CS[4],6)^ES(n,11)^ES(n,25))+(n&CS[5]^~n&CS[6])+bS[yS++];for(yS=8;yS;)t[--yS]+=CS[yS]}for(n="";yS<64;)n+=(t[yS>>3]>>4*(7-yS++)&15).toString(16);return n}const PS="[\\s'\"]",kS=e=>`(?:${(e=>`(?:${e?`^${PS}*`:"\\b"}([A-Z0-9._%+\\-]+@[A-Z0-9.\\-]+\\.[A-Z]{2,})${e?`${PS}*$`:"\\b"})`)(e)}|${(e=>`(?:${e?`^${PS}*`:"\\b"}((?:[A-Z0-9._\\-]|%25|%2B)+%40[A-Z0-9.\\-]+\\.[A-Z]{2,})${e?`${PS}*$`:"\\b"})`)(e)})`,IS=e=>`(?:${(e=>`(?:${e?`^${PS}*`:"\\b"}([A-F0-9]{32,64})${e?`${PS}*$`:"\\b"})`)(e)}|${kS(e)})`,RS=new RegExp(kS(!1),"gi"),OS=new RegExp(IS(!0),"i"),US=new RegExp(IS(!1),"gi"),_S=new Map([[32,"md5"],[40,"sha1"],[64,"sha256"]]),AS=(e,t,r,n)=>e.substring(0,t)+n+e.substring(r),jS=e=>{try{const t=[];let r=e,n=RS.exec(e),o=0;for(;n;){let i;i=n[1]?TS(n[1]):TS(decodeURIComponent(n[2])),to(t).call(t,i),r=AS(r,o+n.index,o+n.index+n[0].length,i.md5),o+=i.md5.length-n[0].length,n=RS.exec(e)}return{stringWithoutRawEmails:r,hashesFromOriginalString:t}}finally{RS.lastIndex=0}},TS=e=>{const t=e.toLowerCase();return{md5:vS(t),sha1:mS(t),sha256:xS(t)}},DS=(e,t)=>"string"==typeof t?t.replace(RS,"*********"):t,LS=e=>{if(null!=e[1]){const r=(t=e[1],_S.get(t.length));if(null!=r)return{type:"hashed",value:{type:r,value:e[1]}}}else{if(null!=e[2])return{type:"raw",value:e[2]};if(null!=e[3])return{type:"raw",value:decodeURIComponent(e[3])}}var t},FS=e=>{const t=OS.exec(e);if(t)return LS(t)},HS=(e,t)=>{const r=window.document.querySelectorAll(e);let n="";return r.forEach((e=>{const r=jS(e.outerHTML).stringWithoutRawEmails,o=n+r;if($S(o)>t)return o;n=o})),n},$S=e=>Math.ceil(4*new Blob([e]).size/3),NS=e=>{throw new Error(`Pattern not exhaustive. Encountered unknown value ${e}`)},qS=e=>((e,t)=>new Date((new Date).getTime()+e*t))(e,864e5),MS="lidids.",BS=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/,QS=(e,t,r)=>r.indexOf(e)===t,VS=e=>"string"==typeof e&&BS.test(e);class zS extends qw{constructor(e,t){super("LoadAndStoreDecisionsError",e,{cause:t})}}const GS=e=>[...e].map((e=>_y(e).call(e))),JS=(e,t)=>{const r=[],n=[];return e.forEach((e=>{const o=t.getCookie(e)||t.getDataFromLocalStorage(e);if(o){const{stringWithoutRawEmails:t,hashesFromOriginalString:i}=jS(o);to(r).call(r,{name:e,value:t}),to(n).call(n,...i)}})),{retrieved:r,extractedHashes:WS(n)}},WS=e=>{const t=new Set,r=[];return e.forEach((e=>{t.has(e.md5)||(to(r).call(r,e),t.add(e.md5))})),r};class XS extends qw{constructor(e,t){super("ResolvePartnerCookiesError",e,{cause:t})}}const KS="0123456789ABCDEFGHJKMNPQRSTVWXYZ",ZS=Math.pow(2,48)-1,YS=(()=>{const e="undefined"!=typeof window?window:null,t=e&&(e.crypto||e.msCrypto);return t?()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]/255}:()=>Math.random()})(),eC=()=>{let e=Math.floor(32*YS());return 32===e&&(e=31),KS.charAt(e)},tC=()=>((e,t)=>{if(e>ZS)throw new rC("cannot encode time greater than "+ZS);let r,n="";for(;t>0;t--)r=e%32,n=KS.charAt(r)+n,e=(e-r)/32;return n})(rf(),10)+(e=>{let t="";for(;e>0;e--)t=eC()+t;return t})(16);class rC extends qw{constructor(e){super("UlidError",e)}}const nC="_lc2_fpi",oC="_lc2_fpi_js",iC="_li_duid",sC=(e,t=12)=>mS(e.replace(/^\./,"")).substring(0,t),aC=(e,t,r)=>{let n;try{n=e.getCookie(nC)}catch(e){r.error(new cC("Error while loading old FPC from cookie",e))}if(null==n)try{n=e.getCookie(oC)}catch(e){r.error(new cC("Error while loading old FPC from JS-only cookie",e))}if(null==n)try{n=e.getDataFromLocalStorage(iC)}catch(e){r.error(new cC("Error while loading old FPC from local storage",e))}return null!=n?n:(e=>`${sC(e)}--${tC()}`.toLocaleLowerCase())(t)},lC=(e,t,r,n)=>{let o=!1;try{e.getCookie(nC)!==t&&e.setCookie(nC,t,{domain:r,expires:qS(730)}),o=!0}catch(e){n.error(new cC("Couldn't store FPC in cookie",e))}try{e.setCookie(oC,t,{domain:r}),o=!0}catch(e){n.error(new cC("Couldn't store FPC in JS-only cookie",e))}try{e.setDataInLocalStorage(iC,t),o=!0}catch(e){n.error(new cC("Couldn't store FPC in local storage",e))}return o};class cC extends qw{constructor(e,t){super("GenerateAndStoreLiveConnectIdsError",e,{cause:t})}}class uC extends qw{constructor(e){super("InvalidCollectedEmailError",e)}}const dC=["email","emailhash","hash","hashedemail"],pC=["items","itemids"];class fC{constructor(e){Tw(this,"value",void 0),this.value=e}}class hC extends qw{constructor(e,t){super("InvalidSourceEventPageUrlError",e,{cause:t})}}class gC{constructor(e){Tw(this,"apply",void 0),this.apply=e}map(e){return new gC((t=>e(this.apply(t))))}defaultOnEmpty(e){return new gC((t=>{const r=t.getBodyAsText();return""===r?e:this.apply({getBodyAsText:()=>r})}))}}!function(e){e.ignore=new e((()=>{})),e.constant=t=>new e((()=>t)),e.text=new e((e=>e.getBodyAsText())),e.parseJson=t=>new e((e=>{const r=e.getBodyAsText();let n;try{n=Rw(r)}catch(e){throw new vC(e)}const o=lS(t,n);if(o.success)return o.output;throw new mC(`Failed parsing response: ${JSON.stringify(n)}`)})),e.fail=new e((()=>{throw new yC}))}(gC||(gC={}));class vC extends qw{constructor(e){super("JsonParsingError","Failed parsing response to json",{cause:e})}}class mC extends qw{constructor(e){super("ResponseParsingError",`Failed parsing response: ${e}`)}}class yC extends qw{constructor(){super("UnexpectedResponseError","Unexpected response")}}const wC=e=>{const{callHandler:t,resolutionUrl:r,resolveSettings:n}=e,o=`${r.base}${r.query.build()}`;return t.ajaxGet({url:o,responseHandler:SC,timeout:n.timeout})},bC=e=>{var t,r,n,o,i;const{liveConnectFpc:s,pageDetails:a,domainDetails:l,consent:c,integration:u,requestedAttributes:d,identityPool:p}=e,f=Nw.empty();let h;null!=(null===(t=c.gdpr)||void 0===t?void 0:t.gdprApplies)&&(h=c.gdpr.gdprApplies?"1":"0"),f.addOptional("duid",s);let g="any";switch(u.type){case"application":u.publisherId&&(g=u.publisherId);break;case"distributor":f.add("did",u.distributorId);break;case"custom":u.publisherId&&(g=u.publisherId),f.addOptional("did",u.distributorId);break;default:NS(u)}return f.addOptional("cd",l.cookieDomain).addOptional("pu",a.pageUrl?CC(a.pageUrl).toString():void 0).addOptional("gdpr",h).addOptional("gdpr_consent",null===(r=c.gdpr)||void 0===r?void 0:r.consentString).addOptional("us_privacy",null===(n=c.usPrivacy)||void 0===n?void 0:n.consentString).addOptional("gpp_s",null===(o=c.gpp)||void 0===o?void 0:o.consentString).addOptional("gpp_as",null===(i=c.gpp)||void 0===i||null===(i=i.applicableSections)||void 0===i?void 0:i.join(",")),EC(f,p.getProvidedEmailHashes()),d.forEach((e=>{f.add("resolve",e)})),p.getRetrievedIdentifiers().forEach((e=>{f.add(e.name,e.value)})),f.addOptional("pip",e.identityPool.getIpv4(),{base64UrlEncode:!0}).addOptional("pip6",e.identityPool.getIpv6(),{base64UrlEncode:!0}),e.additionalResolveParameters&&f.addParamsMap(e.additionalResolveParameters),{base:`${e.idexEndpointUrl}/${encodeURIComponent(e.resolveSettings.identityPartner)}/${encodeURIComponent(g)}`,query:f}},SC=gC.parseJson(tS(rS(),rS())).defaultOnEmpty({}),CC=e=>{const t=new wp(e.toString());return t.pathname="",t.search="",t},EC=(e,t)=>{t.forEach((t=>{switch(t.type){case"md5":e.addOptional("m",t.value);break;case"sha1":e.addOptional("sh1",t.value);break;case"sha256":e.addOptional("sh2",t.value)}}))},xC=Yb({bakers:eS(zb(rS()))}),PC=gC.parseJson(xC);function kC(){return kC=jw((function*(e){const{pixelUrls:t,callHandler:r,timestamp:n,collectSettings:o,logger:i,pixelBaseUrl:s,identityPool:a}=e,{retries:l,timeout:c}=o,u={"X-LI-Provided-User-Agent":a.getUserAgent()};for(let e=0;ee.pixelGet(t.makePUrl(r)).catch((()=>{})),RC=({callHandler:e,response:t,timestamp:r,logger:n})=>{var o;const i=null!==(o=t.bakers)&&void 0!==o?o:[];return oy.all(i.map((t=>(n.info(`Calling baker ${t}`),e.pixelGet(`${t}?dtstmp=${r.getTime()}`).catch((()=>{})))))).then((()=>{}))};class OC extends qw{constructor(e,t){super("SendPixelError",e,{cause:t})}}class UC extends qw{constructor(e){super("SendPixelRetriesExhaustedError",e)}}const _C=({cssSelectors:e,logger:t})=>{const r=[];if(0===e.length)return r;try{const t=e.join(", ");document.querySelectorAll(t).forEach((e=>{if(e instanceof HTMLInputElement){const t=FS(e.value);t&&to(r).call(r,t)}else{const t=(e=>{const t=[];try{let r=US.exec(e);for(;null!=r;){const n=LS(r);n&&to(t).call(t,n),r=US.exec(e)}return t}finally{US.lastIndex=0}})(e.outerHTML);to(r).call(r,...t)}}))}catch(r){t.error(new AC(`Failed to collect emails from css selectors ${e}`,r))}return r};class AC extends qw{constructor(e,t){super("CollectEmailsFromCssSelectorError",e,{cause:t})}}class jC extends qw{constructor(e,t){super("CollectEmailsFromQueryParamsError",e,{cause:t})}}class TC extends qw{constructor(e,t){super("CollectEmailsFromWindowPropertyError",e,{cause:t})}}class DC{constructor(e){Tw(this,"props",void 0);const{logger:t,consent:r,storageHandler:n,callHandler:o,clientDetails:i,integration:s,urlCollectionSettings:a,partnerCookiesToResolve:l,contextElementCollectionSettings:c,collectSettings:u,autoCollectSettings:d,resolveSettings:p,pixelSyncSettings:f,hubConfig:h,emailExtractionSettings:g,eventTriggeredCollectionSettings:v,sharedData:m,identityPool:y,id5CollectionSettings:w}=e,{pageDetails:b,domainDetails:S}=m,C=(({storageHandler:e,partnerCookiesToResolve:t,logger:r})=>{try{const r=GS(t);return JS(r,e)}catch(e){return r.error(new XS("Error while enriching identifiers",e)),{retrieved:[],extractedHashes:[]}}})({storageHandler:n,partnerCookiesToResolve:l,logger:t});y.addPartnerCookies(C);const E=cS({pageDetails:b,urlCollectionSettings:a,logger:t}),x=(({contextElementCollectionSettings:e})=>{if(!e.enabled)return{};const{contextSelectors:t,maxLength:r}=e;return""===t||r<=0?{}:{collectedElements:HS(t,r)}})({contextElementCollectionSettings:c}),P=(({storageHandler:e,domainDetails:t,logger:r})=>{const n=t.cookieDomain,o=aC(e,n,r);if(lC(e,o,n,r))return o})({domainDetails:S,storageHandler:n,logger:t}),k=(({pageDetails:e,domainDetails:t,storageHandler:r,logger:n})=>{var o;const i=((null===(o=e.pageUrl)||void 0===o?void 0:o.searchParams.getAll("li_did"))||[]).map((e=>_y(e).call(e))).filter((e=>e.length>0&&VS(e))).filter(QS);let s;try{s=r.findSimilarCookies(MS)}catch(e){n.error(new zS("Error while searching for decisions in cookies",e)),s=[]}const a=s.map((e=>_y(e).call(e))).filter((e=>e.length>0&&VS(e)));return i.forEach((e=>{try{r.setCookie(`${MS}${e}`,e,{expires:qS(30),sameSite:"lax",domain:t.cookieDomain})}catch(e){n.error(new zS("Error while storing decision in cookie",e))}})),{decisionIds:i.concat(a).filter(QS)}})({pageDetails:b,domainDetails:S,storageHandler:n,logger:t});let I=[];null!=b.pageUrl&&(I=(({pageUrl:e,queryParamRegexes:t,logger:r})=>{const n=[];if(0===t.length)return n;try{const r=e.searchParams,o=new RegExp(t.join("|"),"i");r.forEach(((e,t)=>{if(o.test(t)){const t=FS(e);t&&to(n).call(n,t)}}))}catch(e){r.error(new jC("Failed to collect emails from query params",e))}return n})({pageUrl:b.pageUrl,queryParamRegexes:g.queryParameterRegexes,logger:t})),this.props={logger:t,hubConfig:h,callHandler:o,storageHandler:n,consent:r,pageDetails:b,domainDetails:S,liveConnectFpc:P,decisions:k,collectedUrl:E,contextElements:x,clientDetails:i,integration:s,urlCollectionSettings:a,collectSettings:u,autoCollectSettings:d,resolveSettings:p,pixelSyncSettings:f,emailExtractionSettings:g,emailsFromQueryParams:I,eventTriggeredCollectionSettings:v,identityPool:y,id5CollectionSettings:w,pageViewId:m.pageViewId}}resolve(e){var t=this;return jw((function*(){var r;const{requestedAttributes:n,additionalResolveParameters:o,onSuccess:i,onFailure:s}=e,{logger:a,consent:l,callHandler:c,liveConnectFpc:u,pageDetails:d,domainDetails:p,resolveSettings:f,integration:h,hubConfig:g,storageHandler:v,identityPool:m}=t.props;try{const e=yield(e=>{const{callHandler:t,resolveSettings:r,identityPool:n}=e,o=bC(e);return wC({callHandler:t,resolutionUrl:o,resolveSettings:r,identityPool:n})})({consent:l,liveConnectFpc:u,pageDetails:d,domainDetails:p,callHandler:c,resolveSettings:f,integration:h,requestedAttributes:n,additionalResolveParameters:o,idexEndpointUrl:g.idexEndpointUrl,identityPool:m});for(const t of i)try{switch(t.type){case"write_to_local_storage":v.setDataInLocalStorage(t.targetKey,JSON.stringify(e.data));break;case"write_to_cookie":v.setCookie(t.targetKey,JSON.stringify(e.data),{expires:null!==(r=e.expiresAt)&&void 0!==r?r:qS(730),sameSite:t.sameSite,domain:t.domain});break;case"callback":t.callback(e.data);break;default:NS(t)}}catch(e){a.error(new LC("Failed to handle onResolveSuccess action",e))}}catch(e){if(a.error(new LC("Failed to resolve identity",e)),s)try{s(e)}catch(e){a.error(new LC("Failed to call onFailure callback",e))}}}))()}collect(e){var t=this;return jw((function*(){const{callHandler:r,pageDetails:n,collectedUrl:o,urlCollectionSettings:i,contextElements:s,integration:a,clientDetails:l,collectSettings:c,liveConnectFpc:u,decisions:d,consent:p,domainDetails:f,logger:h,hubConfig:g,identityPool:v,pageViewId:m}=t.props;try{const t=new Date,y=(({pageDetails:e,sourceEvent:t,logger:r})=>{if("pageUrl"in t&&"string"==typeof t.pageUrl)try{return{pageUrl:new wp(t.pageUrl),referrer:e.referrer}}catch(e){r.error(new hC("Cannot create pageUrl with invalid source",e))}})({pageDetails:n,sourceEvent:e,logger:h});let w=o,b=n;null!=y&&(w=cS({pageDetails:y,urlCollectionSettings:i,logger:h}),b=y);const S=((e,t)=>{const r=[];for(const n in e)if(Zp(dC).call(dC,n.toLowerCase())&&0===r.length){const o=e[n];if("string"==typeof o){const e=FS(o);switch(null==e?void 0:e.type){case"raw":{const t=TS(e.value);to(r).call(r,{type:"md5",value:t.md5},{type:"sha1",value:t.sha1},{type:"sha256",value:t.sha256});break}case"hashed":to(r).call(r,e.value);break;case void 0:t.error(new uC(`Invalid email format, key: ${n}`))}}else t.error(new uC(`Input with ${n} is not a string: ${typeof o}`))}const n=t=>{const r=e[t];if("string"==typeof r)return r};return{hashedEmails:r,ipv4:n("ipv4"),ipv6:n("ipv6"),userAgent:n("userAgent")}})(e,h);v.addSourceEventEmails(S),v.addIpv4(S),v.addIpv6(S),v.addUserAgent(S);const C=(({sourceEvent:e})=>{const t=_w({},e);for(const r in e)if(Zp(pC).call(pC,r.toLowerCase())){const n=e[r];Array.isArray(n)&&n.length>10&&(t[r]=n.slice(0,10))}return new fC(t)})({sourceEvent:e}),E=(e=>{var t,r,n,o,i;const s=Nw.empty().add("dtstmp",e.timestamp.getTime());switch(e.integration.type){case"application":s.addOptional("aid",e.integration.appId);break;case"distributor":s.add("did",e.integration.distributorId);break;case"custom":s.addOptional("did",e.integration.distributorId);break;default:NS(e.integration)}let a;s.add("se",JSON.stringify(e.limitedSourceEvent.value,DS),{base64UrlEncode:!0}).addOptional("duid",e.liveConnectFpc).add("tv",e.hubVersion).addOptional("pu",e.collectedUrl.url?e.collectedUrl.url.toString():void 0).addOptional("pu_rp",e.collectedUrl.isPathRemoved?"1":void 0).addOptional("pu_rqp",e.collectedUrl.blockedQueryParams.length>0?e.collectedUrl.blockedQueryParams.join(","):void 0),e.identityPool.getRetrievedIdentifiers().forEach((e=>{s.add(`ext_${e.name}`,e.value)})),e.identityPool.getExtractedHashes().forEach((e=>{s.add("scre",`${e.md5},${e.sha1},${e.sha256}`)})),null!=(null===(t=e.consent.gdpr)||void 0===t?void 0:t.gdprApplies)&&(a=e.consent.gdpr.gdprApplies?"1":"0"),s.add("li_did",e.decisions.decisionIds.join(",")).addOptional("e",e.identityPool.getProvidedEmailHashes().map((e=>e.value)).join(",")).addOptional("us_privacy",null===(r=e.consent.usPrivacy)||void 0===r?void 0:r.consentString).add("wpn",e.clientDetails.name).add("wpv",e.clientDetails.version).addOptional("co",e.clientDetails.collaborator).addOptional("gdpr",a).addOptional("gdpr_consent",null===(n=e.consent.gdpr)||void 0===n?void 0:n.consentString).addOptional("refr",e.pageDetails.referrer).addOptional("gpp_s",null===(o=e.consent.gpp)||void 0===o?void 0:o.consentString).addOptional("gpp_as",null===(i=e.consent.gpp)||void 0===i?void 0:i.applicableSections.join(",")).addOptional("cd",e.domainDetails.cookieDomain).addOptional("c",e.contextElements.collectedElements,{base64UrlEncode:!0}).add("pv",e.pageViewId).addOptional("pip",e.identityPool.getIpv4(),{base64UrlEncode:!0}).addOptional("pip6",e.identityPool.getIpv6(),{base64UrlEncode:!0});const l=s.build();return{makeJUrl:e=>`${e}/j${l}`,makePUrl:e=>`${e}/p${l}`}})({integration:a,timestamp:t,limitedSourceEvent:C,contextElements:s,clientDetails:l,liveConnectFpc:u,decisions:d,domainDetails:f,consent:p,collectedUrl:w,pageDetails:b,hubVersion:g.hubVersion,identityPool:v,pageViewId:m});yield function(e){return kC.apply(this,arguments)}({pixelBaseUrl:g.pixelBaseUrl,pixelUrls:E,callHandler:r,collectSettings:c,timestamp:t,logger:h,identityPool:v})}catch(e){h.error(new FC(e))}}))()}tryCollectToSideChannel(){var e=this;return jw((function*(){const{logger:t,emailExtractionSettings:r,emailsFromQueryParams:n,liveConnectFpc:o,pageDetails:i,integration:s}=e.props,a=e.props.identityPool.getId5Data();try{const l=_C({cssSelectors:r.emailCssSelectors,logger:t}),c=(({logger:e,propertyPaths:t})=>{const r=[];return t.forEach((t=>{try{const e=t.split(".");let n=window;for(const t of e)n=n[t];if("string"==typeof n){const e=FS(n);e&&to(r).call(r,e)}}catch(r){e.error(new TC(`Failed to collect emails from window property ${t}`,r))}})),r})({propertyPaths:r.windowPropertyPaths,logger:t});if(0===l.length&&0===c.length&&0===n.length&&null==a)return void t.debug("No data to collect to side channel, skipping");let u;switch(s.type){case"application":u=s.appId;break;case"distributor":case"custom":u=s.distributorId;break;default:NS(s)}const d={fpc:o,page_url:i.pageUrl,customer_id:u,window_properties:c,css_selectors:l,query_parameters:n,id5_data:a,timestamp:(new Date).toISOString()},p=$w(JSON.stringify(d)),f=`${e.props.hubConfig.sideChannelCollectorUrl}?${p}`;t.info("Sending data to side channel",{eventToSend:d}),yield e.props.callHandler.pixelGet(f)}catch(e){t.error(new HC(e))}}))()}runStartupTasks(e,t){var r=this;return jw((function*(){e.scheduleAfterDelay(0,{type:"sync_container",consent:r.props.consent,domainDetails:r.props.domainDetails,liveConnectFpc:r.props.liveConnectFpc,pixelSyncSettings:r.props.pixelSyncSettings,logger:r.props.logger,identityPool:r.props.identityPool,integration:r.props.integration,storageHandler:r.props.storageHandler}),r.props.id5CollectionSettings.enabled&&e.scheduleId5Collection(r.props.id5CollectionSettings.pollingInterval),r.props.eventTriggeredCollectionSettings.pageEvents.length>0&&e.scheduleOnPageEvents(r.props.eventTriggeredCollectionSettings.pageEvents,{type:"collect_to_side_channel",clientRef:t}),(r.props.emailExtractionSettings.queryParameterRegexes.length>0||r.props.emailExtractionSettings.emailCssSelectors.length>0||r.props.emailExtractionSettings.windowPropertyPaths.length>0)&&e.scheduleAfterDelay(r.props.hubConfig.sideChannelRegisterCollectDelay,{type:"collect_to_side_channel",clientRef:t}),r.props.autoCollectSettings.enabled&&e.scheduleAfterDelay(r.props.autoCollectSettings.delay,{type:"attempt_auto_collect",clientRef:t})}))()}collectsOnId5Change(){return this.props.eventTriggeredCollectionSettings.onId5Change.enabled}}class LC extends qw{constructor(e,t){super("ResolveIdentityError",e,{cause:t})}}class FC extends qw{constructor(e){super("CollectError","Failed to collect",{cause:e})}}class HC extends qw{constructor(e){super("CollectToSideChannelError","Failed to collect to side channel",{cause:e})}}const $C=e=>gf(e).map((([e,t])=>[new RegExp(e),gf(t).map((([e,t])=>[new RegExp(e),t]))])),NC=e=>null==e.pageUrl?["",""]:[e.pageUrl.hostname,e.pageUrl.pathname];class qC extends qw{constructor(e,t){super("EvalPageSettingsError",e,{cause:t})}}const MC={empty:{emailCssSelectors:[],queryParameterRegexes:[],windowPropertyPaths:[]},combine:(e,t)=>({emailCssSelectors:e.emailCssSelectors.concat(t.emailCssSelectors),queryParameterRegexes:e.queryParameterRegexes.concat(t.queryParameterRegexes),windowPropertyPaths:e.windowPropertyPaths.concat(t.windowPropertyPaths)})},BC={empty:{pageEvents:[],onId5Change:{enabled:!1}},combine:(e,t)=>({pageEvents:e.pageEvents.concat(t.pageEvents),onId5Change:{enabled:e.onId5Change.enabled||t.onId5Change.enabled}})},QC={empty:{emailExtractionSettings:MC.empty,eventTriggeredCollectionSettings:BC.empty},combine:(e,t)=>({emailExtractionSettings:MC.combine(e.emailExtractionSettings,t.emailExtractionSettings),eventTriggeredCollectionSettings:BC.combine(e.eventTriggeredCollectionSettings,t.eventTriggeredCollectionSettings)})},VC=e=>{var t;const r=e.getEvents().find((e=>{var t;return"register_client"===(null==e||null===(t=e.context)||void 0===t||null===(t=t.command)||void 0===t?void 0:t.type)})),n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{let r=!1;try{t.forEach((e=>{e.eventBus.once("pre_lips",(()=>{r=!0}))}))}catch(t){e.error(new JC("Error while checking if collect has been called globally",t))}return r};class GC{constructor(e){Tw(this,"config",void 0),Tw(this,"eventBus",{once:(e,t)=>{"pre_lips"===e&&t()}}),this.config=e}}class JC extends qw{constructor(e,t){super("LiQInstancesError",e,{cause:t})}}class WC{constructor(){Tw(this,"retrievedIdentifiersFromPartnerCookies",new Map),Tw(this,"extractedHashesFromPartnerCookies",new Map),Tw(this,"providedEmailHashes",[]),Tw(this,"ipv4",void 0),Tw(this,"ipv6",void 0),Tw(this,"userAgent",void 0),Tw(this,"id5",void 0)}addPartnerCookies(e){return e.retrieved.forEach((e=>{this.retrievedIdentifiersFromPartnerCookies.set(e.name,e.value)})),e.extractedHashes.forEach((e=>{this.extractedHashesFromPartnerCookies.set(e.md5,e)})),this}getRetrievedIdentifiers(){return Array.from(this.retrievedIdentifiersFromPartnerCookies,(([e,t])=>({name:e,value:t})))}getExtractedHashes(){return Array.from(this.extractedHashesFromPartnerCookies,(([e,t])=>t))}addSourceEventEmails(e){return e.hashedEmails.forEach((e=>{var t;to(t=this.providedEmailHashes).call(t,e)})),this}getProvidedEmailHashes(){return this.providedEmailHashes}addIpv4(e){return this.ipv4=e.ipv4,this}getIpv4(){return this.ipv4}addIpv6(e){return this.ipv6=e.ipv6,this}getIpv6(){return this.ipv6}addUserAgent(e){return this.userAgent=e.userAgent,this}getUserAgent(){return this.userAgent}addId5Data(e){return this.id5=e,this}getId5Data(){return this.id5}}const XC="_li_dcdm_c",KC=(e,t)=>{const r=document.domain||document.location&&document.location.host||window&&window.location&&window.location.host||"localhost",n=r.split(".");for(let r=n.length;r>0;r--){const o=`.${n.slice(r-1,n.length).join(".")}`;if(ZC(o,e,t),YC(e,t)===o)return o}return eE(r,e,t),`.${r}`},ZC=(e,t,r)=>{try{t.setCookie(XC,e,{sameSite:"lax",domain:e})}catch(e){r.warn("Failed to set TLD cache",{error:e})}},YC=(e,t)=>{try{return e.getCookie(XC)}catch(e){t.warn("Failed to get TLD cache",{error:e})}},eE=(e,t,r)=>{try{t.deleteCookie(XC,e)}catch(e){r.warn("Failed to delete TLD cache",{error:e})}};let tE;const rE=new Uint8Array(16);function nE(){if(!tE&&(tE="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!tE))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return tE(rE)}const oE=[];for(let e=0;e<256;++e)to(oE).call(oE,(e+256).toString(16).slice(1));var iE={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function sE(e,t,r){if(iE.randomUUID&&!t&&!e)return iE.randomUUID();const n=(e=e||{}).random||(e.rng||nE)();return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return oE[e[t+0]]+oE[e[t+1]]+oE[e[t+2]]+oE[e[t+3]]+"-"+oE[e[t+4]]+oE[e[t+5]]+"-"+oE[e[t+6]]+oE[e[t+7]]+"-"+oE[e[t+8]]+oE[e[t+9]]+"-"+oE[e[t+10]]+oE[e[t+11]]+oE[e[t+12]]+oE[e[t+13]]+oE[e[t+14]]+oE[e[t+15]]}(n)}const aE="_li_ss",lE="li_sync_frame";let cE=!1,uE=null;const dE=e=>{null===document.getElementById(lE)?(uE||setTimeout((()=>pE(e.iframeMessageTimeout)),e.syncWait),uE=((e,t)=>{var r,n,o,i,s;return _w(_w(_w({},e),t),{},{pixelSyncSettings:{euns:(void 0!==(null===(r=e.pixelSyncSettings)||void 0===r?void 0:r.euns)?e.pixelSyncSettings.euns:t.pixelSyncSettings.euns)||t.pixelSyncSettings.euns,pixelTimeout:Math.max(null!==(n=null===(o=e.pixelSyncSettings)||void 0===o?void 0:o.pixelTimeout)&&void 0!==n?n:0,null!==(i=t.pixelSyncSettings.pixelTimeout)&&void 0!==i?i:0)||void 0},consent:e.appId?e.consent:t.consent,appId:null!==(s=e.appId)&&void 0!==s?s:"application"===t.integration.type?t.integration.appId:void 0,distributorIds:[...e.distributorIds||[],..."distributor"===t.integration.type?[t.integration.distributorId]:[]]})})(uE||{},e)):e.logger.info("Sync container already launched")},pE=e=>{if(!uE)return;const{storageHandler:t,logger:r,syncContainerEndpointUrl:n,domainDetails:o}=uE;try{const i=fE(t,r)||"",s=yE(_w(_w({},uE),{},{syncState:i})),a=document.createElement("iframe");if(!a||!document.body)return void r.error(new bE("Failed to create iframe for sync container"));if(a.style.opacity="0",a.style.width="0px",a.style.height="0px",a.style.border="0px",a.style.position="absolute",a.style.top="0px",a.style.left="0px",a.style.zIndex="-1000",a.id=lE,"postMessage"in window){const e=new wp(n).origin;wE((n=>{n.origin===e&&n.data&&"string"==typeof n.data&&(cE=!0,vE(t,n.data,r,o.cookieDomain))}))}a.src=s,document.body.appendChild(a),a.onload=function(){setTimeout((()=>{cE||r.error(new SE("Error while loading sync container"))}),e)}}catch(e){r.error(new bE("Error while launching sync container",e))}},fE=(e,t)=>{var r;return null!==(r=hE(e,t))&&void 0!==r?r:gE(e,t)},hE=(e,t)=>{try{return e.getDataFromLocalStorage(aE)}catch(e){t.error(new bE("Error while loading sync state from local storage",{cause:e}))}},gE=(e,t)=>{try{return e.getCookie(aE)}catch(e){t.error(new bE("Error while loading sync state form cookie storage",e))}},vE=(e,t,r,n)=>{try{t&&t.replace(/([^=]+)=([^&]*)&?/g,((t,o,i)=>{if(o=decodeURIComponent(o),i=decodeURIComponent(i),o===aE){try{e.setDataInLocalStorage(o,i)}catch(e){r.error(new bE("Error while persisting sync state in local storage",e))}try{e.setCookie(o,i,{expires:qS(730),sameSite:"lax",domain:n})}catch(e){r.error(new bE("Error while persisting sync state in cookie storage",e))}}return""}))}catch(e){r.error(new bE("Error while handling SC message",e))}},mE={stripEmpty:!1},yE=e=>`${e.syncContainerEndpointUrl}${(({pageViewId:e,appId:t,distributorIds:r,consent:n,domainDetails:o,liveConnectFpc:i,syncState:s,pixelSyncSettings:a,hubVersion:l})=>{var c,u,d;return Nw.empty().addOptional("duid",i,mE).addOptional("appId",t,mE).addArray("ds",(r||[]).filter(Boolean),mE).add("euns",a.euns?1:0,mE).addOptional("pt",a.pixelTimeout,mE).addOptional("s",s,mE).addOptional("us_privacy",null===(c=n.usPrivacy)||void 0===c?void 0:c.consentString,mE).addOptional("gpp_s",null===(u=n.gpp)||void 0===u?void 0:u.consentString,mE).addOptional("gpp_as",null===(d=n.gpp)||void 0===d||null===(d=d.applicableSections)||void 0===d?void 0:d.join(","),mE).addOptional("version",l,mE).addOptional("cd",o.cookieDomain,mE).add("pv",e).build()})(e)}`,wE=e=>window.addEventListener?window.addEventListener("message",e,!1):window.attachEvent("onmessage",e);class bE extends qw{constructor(e,t){super("SyncContainerError",e,{cause:t})}}class SE extends qw{constructor(e,t){super("SyncContainerLoadError",e,{cause:t})}}class CE{constructor(e,t,r,n,o,i,s,a){Tw(this,"storageHandlerFactory",void 0),Tw(this,"callHandlerFactory",void 0),Tw(this,"consentManager",void 0),Tw(this,"logger",void 0),Tw(this,"hubConfig",void 0),Tw(this,"commandQueue",void 0),Tw(this,"scheduler",void 0),Tw(this,"sharedData",void 0),Tw(this,"clientHandlers",new Map),Tw(this,"sharedIdentityPool",new WC),this.storageHandlerFactory=e,this.callHandlerFactory=t,this.consentManager=r,this.logger=n,this.hubConfig=o,this.commandQueue=i,this.scheduler=s,this.sharedData=a}static makeAsync(e,t,r,n,o,i,s){const a=e.unrestricted(n),l=Dw(),c=(({storageHandler:e,logger:t})=>({cookieDomain:KC(e,t)}))({logger:n,storageHandler:a}),u={pageDetails:l,domainDetails:c,pageViewId:sE()};return oy.resolve(new CE(e,t,r,n,o,i,s,u))}processCommand(e){var t=this;return jw((function*(){switch(t.logger.info(`hub received command of type ${e.type}`,{command:e}),e.type){case"register_client":return t.processRegisterClientCommand(e);case"collect":return t.processCollectCommand(e);case"resolve":return t.processResolveCommand(e);case"log":return t.processLogCommand(e);case"debug":return t.processDebugCommand(e);case"sync_container":return t.syncContainer(e),oy.resolve();case"collect_to_side_channel":return t.processCollectToSideChannelCommand(e);case"attempt_auto_collect":return t.processAttemptAutoCollectCommand(e);case"new_id5_available":return t.processNewId5AvailableEvent(e);default:NS(e)}}))()}syncContainer(e){e.pixelSyncSettings.enabled&&!Jw(e.consent)&&dE({integration:e.integration,consent:e.consent,domainDetails:e.domainDetails,liveConnectFpc:e.liveConnectFpc,storageHandler:e.storageHandler,pixelSyncSettings:e.pixelSyncSettings,syncWait:this.hubConfig.syncWait,syncContainerEndpointUrl:this.hubConfig.syncContainerEndpointUrl,hubVersion:this.hubConfig.hubVersion,logger:e.logger,identityPool:e.identityPool,pageViewId:this.sharedData.pageViewId,iframeMessageTimeout:this.hubConfig.iframeMessageTimeout})}processRegisterClientCommand(e){var t=this;return jw((function*(){const r=e.clientRef;if(t.clientHandlers.has(r))t.logger.error(new EE,{clientRef:r,command:e,existingState:t.clientHandlers.get(r)});else try{var n;const o=null!=e.consent?e.consent:yield t.consentManager.loadConsent(),i=Jw(o)?new WC:t.sharedIdentityPool,s=t.logger.withContext({clientRef:r,registration:e,appId:"application"===e.integration.type?e.integration.appId:void 0,distributorId:"distributor"===e.integration.type?e.integration.distributorId:void 0,wrapperName:""!==_y(n=e.clientDetails.name).call(n)?e.clientDetails.name:"not-provided"}),a=t.callHandlerFactory.fromConsent(o,s),l=t.storageHandlerFactory.fromConsent(o,s),c=(({settings:e,monoid:t,pageDetails:r,logger:n})=>{let o=t.empty;try{const n=$C(e),[i,s]=NC(r);n.filter((([e])=>e.test(i))).forEach((([,e])=>{e.filter((([e])=>e.test(s))).forEach((([,e])=>{o=t.combine(o,e)}))}))}catch(e){n.error(new qC("Failed to evaluate page settings",e))}return o})({settings:e.pageDependentSettings,monoid:QC,pageDetails:t.sharedData.pageDetails,logger:s}),u=MC.combine(e.emailExtractionSettings,c.emailExtractionSettings),d=BC.combine(e.eventTriggeredCollectionSettings,c.eventTriggeredCollectionSettings),p=new DC({logger:s,callHandler:a,storageHandler:l,consent:o,hubConfig:t.hubConfig,sharedData:t.sharedData,contextElementCollectionSettings:e.contextElementCollectionSettings,partnerCookiesToResolve:e.partnerCookies,clientDetails:e.clientDetails,integration:e.integration,urlCollectionSettings:e.urlCollectionSettings,collectSettings:e.collectSettings,autoCollectSettings:e.autoCollectSettings,resolveSettings:e.resolveSettings,pixelSyncSettings:e.pixelSyncSettings,id5CollectionSettings:e.id5CollectionSettings,emailExtractionSettings:u,eventTriggeredCollectionSettings:d,identityPool:i});t.clientHandlers.set(r,p),t.logger.info("Client registered",{clientRef:r}),yield p.runStartupTasks(t.scheduler,r)}catch(r){t.logger.error(new xE(r),{command:e})}}))()}processCollectCommand(e){const t=this.loadClientHandler(e.clientRef);return null==t?oy.resolve():this.doCollect(t,e.sourceEvent)}processCollectToSideChannelCommand(e){const t=this.loadClientHandler(e.clientRef);return null==t?oy.resolve():t.tryCollectToSideChannel()}processResolveCommand(e){const t=this.loadClientHandler(e.clientRef);return null==t?oy.resolve():t.resolve({requestedAttributes:e.requestedAttributes,additionalResolveParameters:e.additionalResolveParameters,onSuccess:e.onSuccess,onFailure:e.onFailure})}processAttemptAutoCollectCommand(e){const t=this.loadClientHandler(e.clientRef);return null==t?oy.resolve():(r=this.logger,window.liQ_instances=null!==(n=window.liQ_instances)&&void 0!==n?n:[],zC(r,window.liQ_instances)||this.commandQueue.collectQueued()?(this.logger.info("Auto collect was attempted but was skipped",{clientRef:e.clientRef}),oy.resolve()):this.doCollect(t,{}));var r,n}processLogCommand(e){switch(e.level){case"debug":this.logger.debug(e.message,e.context);break;case"info":this.logger.info(e.message,e.context);break;case"warn":this.logger.warn(e.message,e.context);break;case"error":{const t=new qw(e.name,e.message,{cause:e.cause});this.logger.error(t,e.context)}break;default:NS(e)}return oy.resolve()}processDebugCommand(e){return null!=e.onEvents&&e.onEvents(this.logger.getEvents()),null!=e.onHub&&e.onHub(this),oy.resolve()}processNewId5AvailableEvent(e){return this.sharedIdentityPool.addId5Data({id5:e.id5,linkType:e.linkType}),this.forAllClients(((e,t)=>{t.collectsOnId5Change()&&this.commandQueue.pushInternal({type:"collect_to_side_channel",clientRef:e})})),oy.resolve()}loadClientHandler(e){const t=this.clientHandlers.get(e);return null==t&&this.logger.error(new PE,{ref:e}),t}forAllClients(e){this.clientHandlers.forEach(((t,r)=>e(r,t)))}doCollect(e,t){return(e=>{if(null==window.liQ_instances)window.liQ_instances=[new GC(VC(e))];else if(!zC(e,window.liQ_instances)){var t;to(t=window.liQ_instances).call(t,new GC(VC(e)))}})(this.logger),e.collect(t)}}class EE extends qw{constructor(){super("DuplicateClientRegisterError","Received duplicate registration for the same ref")}}class xE extends qw{constructor(e){super("RegisterClientError","Failed registering a new client",{cause:e})}}class PE extends qw{constructor(){super("UnknownClientError","Client passed an unknown client ref")}}class kE extends qw{constructor(e,t){super("SubscribeToPageEventsError",e,{cause:t})}}class IE{constructor(e,t){Tw(this,"commandQueue",void 0),Tw(this,"logger",void 0),Tw(this,"id5CollectionEnabled",!1),this.commandQueue=e,this.logger=t}scheduleAfterDelay(e,t){this.logger.info(`Scheduling ${t.type} for ${e}ms from now`),setTimeout((()=>{this.logger.info(`Executing scheduled ${t.type}`),this.commandQueue.pushInternal(t)}),e)}scheduleOnPageEvents(e,t){const r=e.map((e=>({cssSelector:e.eventSourceCssSelector,eventType:e.eventType,action:()=>{this.logger.info(`Scheduling ${t.type} for page event`,{event:e,command:t}),this.commandQueue.pushInternal(t)}})));this.logger.info(`Subscribing to ${r.length} page events`,{events:e}),(({listeners:e,logger:t})=>{if(0===e.length)return;const r=()=>{e.forEach((e=>{try{document.querySelectorAll(e.cssSelector).forEach((r=>{r.addEventListener(e.eventType,(()=>{try{e.action()}catch(e){t.error(new kE("Failed to execute action for listener",e))}}))}))}catch(e){t.error(new kE("Failed to subscribe listener",e))}}))};try{"loading"!==document.readyState?r():document.addEventListener("DOMContentLoaded",r)}catch(e){t.error(new kE("Failed to subscribe to DOMContentLoaded event",e))}})({listeners:r,logger:this.logger})}scheduleId5Collection(e){const t=this,r=()=>(()=>{if(null==window.ID5)return!1;try{window.ID5.init({partnerId:"538"}).onUpdate((e=>{const r=e.getUserId(),n=e.getLinkType();t.logger.info("Received id5 data",{id5:r,linkType:n}),t.commandQueue.pushInternal({type:"new_id5_available",id5:r,linkType:n})}))}catch(e){t.logger.error(new RE(e))}return!0})()?oy.resolve():new oy((t=>setTimeout(t,e))).then(r);this.id5CollectionEnabled||(this.id5CollectionEnabled=!0,this.logger.info("Scheduling id5 collection"),r())}}class RE extends qw{constructor(e){super("Id5RegisterError","Failed to register to id5 api",{cause:e})}}const OE=()=>Jb((e=>"function"==typeof e),"A function is required!"),UE=oS([rS(),Zb(),Gb(),function e(t){return{kind:"schema",type:"null",reference:e,expects:"null",async:!1,message:t,_run(e,t){return null===e.value?e.typed=!0:Bb(this,"type",e,t),e}}}(),function e(t){return{kind:"schema",type:"undefined",reference:e,expects:"undefined",async:!1,message:t,_run(e,t){return void 0===e.value?e.typed=!0:Bb(this,"type",e,t),e}}}(),zb(Wb((()=>UE))),tS(rS(),Wb((()=>UE))),Yb({toJSON:OE()})]),_E=tS(rS(),UE),AE=eS(function e(t,r){return{kind:"schema",type:"set",reference:e,expects:"Set",async:!1,value:t,message:r,_run(e,t){const r=e.value;if(r instanceof Set){e.typed=!0,e.value=new Set;for(const i of r){const s=this.value._run({typed:!1,value:i},t);if(s.issues){const a={type:"set",origin:"value",input:r,key:null,value:i};for(const t of s.issues){var n,o;if(t.path)_p(o=t.path).call(o,a);else t.path=[a];null===(n=e.issues)||void 0===n||to(n).call(n,t)}if(e.issues||(e.issues=s.issues),t.abortEarly){e.typed=!1;break}}s.typed||(e.typed=!1),e.value.add(s.value)}}else Bb(this,"type",e,t);return e}}}(rS()),new Set),jE=eS(Yb({retries:eS(Zb(),3),timeout:eS(Zb(),0)}),{}),TE=eS(Yb({enabled:eS(Gb(),!0),delay:eS(Zb(),120)}),{}),DE=aS(eS(Kb({type:eS(rS(),"generated")}),{}),sS("type",[Yb({type:Xb("generated")}),Yb({type:Xb("provided"),source:oS([Xb("cookie"),Xb("local_storage")]),key:rS()})])),LE=Yb({gdprApplies:eS(Gb()),consentString:rS()}),FE=Yb({consentString:rS()}),HE=Yb({consentString:rS(),applicableSections:zb(Zb())}),$E=Yb({gdpr:eS(LE),usPrivacy:eS(FE),gpp:eS(HE)}),NE=eS($E),qE=Jb((e=>"object"==typeof e),"An object is required!"),ME=sS("type",[Yb({type:Xb("application"),appId:eS(rS()),publisherId:eS(rS())}),Yb({type:Xb("distributor"),distributorId:rS()}),Yb({type:Xb("custom"),publisherId:eS(rS()),distributorId:eS(rS())})]),BE=Yb({name:rS(),version:rS(),collaborator:eS(rS())}),QE=eS(Yb({mode:eS(oS([Xb("full"),Xb("no_path")]),"full"),queryParametersFilter:eS(rS())}),{}),VE=aS(eS(Kb({enabled:eS(Gb(),!1)}),{}),sS("enabled",[Yb({enabled:Xb(!1)}),Yb({enabled:Xb(!0),contextSelectors:rS(),maxLength:Zb()})])),zE=eS(Yb({timeout:eS(Zb(),5e3),identityPartner:eS(rS(),"unknown")}),{}),GE=sS("type",[Yb({type:Xb("write_to_local_storage"),targetKey:rS()}),Yb({type:Xb("write_to_cookie"),targetKey:rS(),sameSite:eS(oS([Xb("strict"),Xb("lax"),Xb("none")])),domain:eS(rS())}),Yb({type:Xb("callback"),callback:OE()})]),JE=aS(eS(Kb({enabled:eS(Gb(),!1)}),{}),sS("enabled",[Yb({enabled:Xb(!1)}),Yb({enabled:Xb(!0),euns:eS(Gb(),!1),pixelTimeout:eS(Zb())})])),WE=eS(Yb({emailCssSelectors:eS(zb(rS()),[]),queryParameterRegexes:eS(zb(rS()),[]),windowPropertyPaths:eS(zb(rS()),[])}),{}),XE=aS(eS(Kb({enabled:eS(Gb(),!1)}),{}),sS("enabled",[Yb({enabled:Xb(!1)}),Yb({enabled:Xb(!0),pollingInterval:eS(Zb(),500)})])),KE=Yb({eventSourceCssSelector:rS(),eventType:rS()}),ZE=eS(Yb({pageEvents:eS(zb(KE),[]),onId5Change:eS(Yb({enabled:eS(Gb(),!1)}),{})}),{}),YE=eS(aS(zb(rS()),function e(t){return{kind:"transformation",type:"transform",reference:e,async:!1,operation:t,_run(e){return e.value=this.operation(e.value),e}}}((e=>new Set(e)))),[]),ex=oS([rS(),Zb(),Gb()]),tx=eS(tS(rS(),oS([ex,zb(ex)])),{}),rx=eS(tS(rS(),tS(rS(),Yb({emailExtractionSettings:eS(WE,{}),eventTriggeredCollectionSettings:eS(ZE,{})}))),{}),nx=Yb({type:Xb("register_client"),clientRef:qE,clientDetails:BE,integration:ME,consent:NE,partnerCookies:AE,idCookieSettings:DE,urlCollectionSettings:QE,contextElementCollectionSettings:VE,collectSettings:jE,autoCollectSettings:TE,resolveSettings:zE,pixelSyncSettings:JE,eventTriggeredCollectionSettings:ZE,emailExtractionSettings:WE,id5CollectionSettings:XE,pageDependentSettings:rx}),ox=Yb({type:Xb("collect"),clientRef:qE,sourceEvent:_E}),ix=Yb({type:Xb("resolve"),clientRef:qE,requestedAttributes:YE,additionalResolveParameters:tx,onFailure:eS(OE()),onSuccess:zb(GE)}),sx=sS("level",[Yb({type:Xb("log"),level:Xb("debug"),message:rS(),context:eS(Kb({}))}),Yb({type:Xb("log"),level:Xb("info"),message:rS(),context:eS(Kb({}))}),Yb({type:Xb("log"),level:Xb("warn"),message:rS(),context:eS(Kb({}))}),Yb({type:Xb("log"),level:Xb("error"),name:rS(),message:rS(),cause:eS(function e(t,r){return{kind:"schema",type:"instance",reference:e,expects:t.name,async:!1,class:t,message:r,_run(e,t){return e.value instanceof this.class?e.typed=!0:Bb(this,"type",e,t),e}}}(Error)),context:eS(Kb({}))})]),ax=sS("type",[nx,ox,ix,Yb({type:Xb("debug"),onEvents:eS(OE()),onHub:eS(OE())}),sx]);Kb({globalVarName:rS(),distributorId:rS(),wrapperName:eS(rS()),collaborator:eS(rS()),usPrivacyString:eS(rS()),gdprApplies:eS(Gb(),!1),gdprConsent:eS(rS()),sync:eS(Gb()),euns:eS(Gb()),pixelTimeout:eS(Zb()),identifiersToResolve:eS(oS([rS(),zb(rS())])),identityResolutionConfig:eS(Yb({ajaxTimeout:eS(Zb()),source:eS(rS()),requestedAttributes:eS(zb(rS())),idCookieMode:eS(oS([Xb("generated"),Xb("provided")]))})),urlCollectionMode:eS(oS([Xb("full"),Xb("no_path")]),"full"),queryParametersFilter:eS(rS()),ajaxTimeout:eS(Zb()),ajaxRetries:eS(Zb()),contextSelectors:eS(rS()),contextElementsLength:eS(Zb()),peopleVerifiedId:eS(rS()),gppString:eS(rS()),gppApplicableSections:eS(zb(Zb())),resolutionSync:aS(eS(Kb({enabled:eS(Gb(),!1)}),{}),sS("enabled",[Yb({enabled:Xb(!1)}),Yb({enabled:Xb(!0),targetKey:rS(),strategy:oS([Xb("cookie"),Xb("ls")]),resolutionOptions:tx})])),scrapingCookieNames:eS(oS([rS(),zb(rS())])),defaultEventDelay:eS(Zb()),emailExtraction:eS(iS()),id5Collection:eS(iS()),eventTriggeredCollection:eS(iS()),pageDependentSettings:eS(iS())});const lx=Yb({appId:eS(rS()),wrapperName:eS(rS()),usPrivacyString:eS(rS()),collaborator:eS(rS()),gdprApplies:eS(Gb(),!1),gdprConsent:eS(rS()),identifiersToResolve:eS(oS([rS(),zb(rS())])),identityResolutionConfig:eS(Yb({ajaxTimeout:eS(Zb()),source:eS(rS()),publisherId:eS(oS([rS(),Zb()])),requestedAttributes:eS(zb(rS())),idCookieMode:eS(oS([Xb("generated"),Xb("provided")]))})),urlCollectionMode:eS(oS([Xb("full"),Xb("no_path")]),"full"),queryParametersFilter:eS(rS()),ajaxTimeout:eS(Zb()),ajaxRetries:eS(Zb()),contextSelectors:eS(rS()),contextElementsLength:eS(Zb()),gppString:eS(rS()),gppApplicableSections:eS(zb(Zb())),scrapingCookieNames:eS(oS([rS(),zb(rS())])),defaultEventDelay:eS(Zb()),sync:eS(Gb()),euns:eS(Gb()),pixelTimeout:eS(Zb()),emailExtraction:eS(iS()),id5Collection:eS(iS()),eventTriggeredCollection:eS(iS()),pageDependentSettings:eS(iS())});class cx{constructor(e,t,r,n,o){Tw(this,"logger",void 0),Tw(this,"running",!1),Tw(this,"hubPromise",void 0),Tw(this,"bufferedCommands",[]),this.logger=n;const i=new IE(this,this.logger.withContext({component:"scheduler"}));this.hubPromise=CE.makeAsync(e,t,r,n,o,this,i)}push(...e){for(const t of e){const e=lS(ax,t);e.success?this.pushInternal(e.output):this.logger.error(new ux(t,e.issues))}return this.bufferedCommands.length}pushInternal(...e){var t;const r=to(t=this.bufferedCommands).call(t,...e);return this.running||(this.running=!0,this.drain()),r}collectQueued(){return this.bufferedCommands.some((e=>"collect"===e.type))}get length(){return this.bufferedCommands.length}drain(){var e=this;return jw((function*(){const t=yield e.hubPromise;for(;e.bufferedCommands.length>0;){const r=e.bufferedCommands.shift();try{yield t.processCommand(r)}catch(t){e.logger.error(new dx(t),{command:r})}}e.running=!1}))()}}class ux extends qw{constructor(e,t){super("MalformedCommandError","hub received malformed command"),Tw(this,"command",void 0),Tw(this,"issues",void 0),this.command=e,this.issues=t,this.command=e,this.issues=t}}class dx extends qw{constructor(e){super("CommandExecutionError","Failed to execute command",{cause:e})}}if(null==window.liQHub||Array.isArray(window.liQHub)){const e=new Qw({callHandler:new Zw(Ob.make()),pixelBaseUrl:Lb,sampleRate:Ab,version:Tb}),t=Ob.make(Db,[e]).withContext({wrapperName:"hub"}),r=new Ww,n=new cx(new Cb,r,new wb(t),t,{hubVersion:Tb,syncContainerEndpointUrl:$b,idexEndpointUrl:jb,syncWait:Nb,pixelBaseUrl:Lb,sideChannelCollectorUrl:Fb,sideChannelRegisterCollectDelay:Hb,iframeMessageTimeout:qb});Array.isArray(window.liQHub)&&window.liQHub.forEach((e=>to(n).call(n,e))),window.liQHub={push:(...e)=>to(n).call(n,...e),length:n.length}}else console.log("Not starting liQHub: window.liQHub is neither undefined nor an array");class px{constructor(e,t){Tw(this,"pusher",void 0),Tw(this,"version",void 0),Tw(this,"clientRef",void 0),Tw(this,"bufferedPushes",[]),Tw(this,"ready",!1),Tw(this,"config",void 0),this.pusher=e,this.version=t}push(...e){return e.forEach((e=>this.pushOne(e))),this.pusher().length}get length(){return this.pusher().length}resolve(e,t,r){"function"==typeof t?this.resolveHelper(e,t,r):this.resolveHelper(e,void 0,t)}resolveHelper(e,t,r){if(null==this.clientRef){var n;to(n=this.pusher()).call(n,{type:"log",level:"error",name:"StandardClientEventBeforeConfig",message:"Cannot resolve before configuration is received"})}else{var o,i;const n=this.config.identityResolutionConfig;to(o=this.pusher()).call(o,{type:"resolve",clientRef:this.clientRef,onSuccess:[{type:"callback",callback:e}],onFailure:t,requestedAttributes:null!==(i=null==n?void 0:n.requestedAttributes)&&void 0!==i?i:[],additionalResolveParameters:r})}}pushOne(e){if(null!=e&&"object"==typeof e){if("config"in e){const r=lS(lx,e.config);var t;if(!r.success)return void to(t=this.pusher()).call(t,{type:"log",level:"error",name:"StandardClientInvalidConfig",message:"Invalid configuration received",context:{issues:r.issues}});this.handleConfigEvent(r.output)}else if(null==this.clientRef){var r;to(r=this.bufferedPushes).call(r,e)}else{var n;const t=lS(_E,e);var o;if(!t.success)return void to(o=this.pusher()).call(o,{type:"log",level:"error",name:"StandardClientInvalidEvent",message:"Invalid event received",context:{event:e}});to(n=this.pusher()).call(n,{type:"collect",clientRef:this.clientRef,sourceEvent:t.output})}}}handleConfigEvent(e){if(null==this.clientRef){var t,r,n;this.config=e,this.clientRef={},to(t=this.pusher()).call(t,{type:"register_client",clientRef:this.clientRef,integration:mx(e),partnerCookies:vx(e),clientDetails:{name:null!==(r=e.wrapperName)&&void 0!==r?r:"lc-bundle",version:this.version,collaborator:e.collaborator},consent:gx(e),contextElementCollectionSettings:yx(e),urlCollectionSettings:hx(e),collectSettings:{timeout:e.ajaxTimeout,retries:e.ajaxRetries},autoCollectSettings:{delay:e.defaultEventDelay},resolveSettings:{identityPartner:null===(n=e.identityResolutionConfig)||void 0===n?void 0:n.source},pixelSyncSettings:{enabled:e.sync,euns:e.euns,pixelTimeout:e.pt},emailExtractionSettings:e.emailExtraction,id5CollectionSettings:e.id5Collection,eventTriggeredCollectionSettings:e.eventTriggeredCollection,pageDependentSettings:e.pageDependentSettings}),this.bufferedPushes.forEach((e=>this.pushOne(e))),this.bufferedPushes=[],this.ready=!0}else{const t=fx(this.config,e);var o;if(null!=t)to(o=this.pusher()).call(o,{type:"log",level:"error",name:"StandardClientConfigMismatch",message:`Additional mismatched configuration received: ${JSON.stringify(t)}`})}}}const fx=(e,t)=>{if(!(e.appId===t.appId&&e.wrapperName===t.wrapperName))return{appId:[e.appId,t.appId],wrapperName:[e.wrapperName,t.wrapperName]}},hx=e=>({mode:e.urlCollectionMode,queryParametersFilter:e.queryParametersFilter}),gx=e=>{var t;if(!(null!=e.gdprConsent||null!=e.usPrivacyString||null!=e.gppString))return;return{gdpr:null!=e.gdprConsent?{gdprApplies:e.gdprApplies,consentString:e.gdprConsent}:void 0,usPrivacy:null!=e.usPrivacyString?{consentString:e.usPrivacyString}:void 0,gpp:null!=e.gppString?{consentString:e.gppString,applicableSections:null!==(t=e.gppApplicableSections)&&void 0!==t?t:[]}:void 0}},vx=e=>{var t,r;const n=null!==(t=null!==(r=e.identifiersToResolve)&&void 0!==r?r:e.scrapingCookieNames)&&void 0!==t?t:[];return"string"==typeof n?new Set(n.split(",").map((e=>_y(e).call(e)))):new Set(n)},mx=e=>{var t;return{type:"application",publisherId:null===(t=e.identityResolutionConfig)||void 0===t||null===(t=t.publisherId)||void 0===t?void 0:t.toString(),appId:e.appId}},yx=e=>{var t;return null!=e.contextSelectors?{enabled:!0,contextSelectors:e.contextSelectors,maxLength:null!==(t=e.contextElementsLength)&&void 0!==t?t:0}:{enabled:!1}};if(window.liQHub=null!==(Iw=window.liQHub)&&void 0!==Iw?Iw:[],null==window.liQ||Array.isArray(window.liQ)){const e=new px((()=>window.liQHub),Tb);null!=window.LI&&to(e).call(e,{config:window.LI}),Array.isArray(window.liQ)&&window.liQ.forEach((t=>to(e).call(e,t))),window.liQ=e}}();