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