@sprig-technologies/sprig-browser 2.16.7 → 2.16.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +14 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
var X_=Object.create;var Wn=Object.defineProperty,Q_=Object.defineProperties,Z_=Object.getOwnPropertyDescriptor,J_=Object.getOwnPropertyDescriptors,eR=Object.getOwnPropertyNames,hf=Object.getOwnPropertySymbols,rR=Object.getPrototypeOf,mf=Object.prototype.hasOwnProperty,tR=Object.prototype.propertyIsEnumerable;var ys=(e,r,t)=>r in e?Wn(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,z=(e,r)=>{for(var t in r||(r={}))mf.call(r,t)&&ys(e,t,r[t]);if(hf)for(var t of hf(r))tR.call(r,t)&&ys(e,t,r[t]);return e},ue=(e,r)=>Q_(e,J_(r));var l=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),yf=(e,r)=>{for(var t in r)Wn(e,t,{get:r[t],enumerable:!0})},qf=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of eR(r))!mf.call(e,a)&&a!==t&&Wn(e,a,{get:()=>r[a],enumerable:!(n=Z_(r,a))||n.enumerable});return e};var oi=(e,r,t)=>(t=e!=null?X_(rR(e)):{},qf(r||!e||!e.__esModule?Wn(t,"default",{value:e,enumerable:!0}):t,e)),nR=e=>qf(Wn({},"__esModule",{value:!0}),e);var bf=(e,r,t)=>(ys(e,typeof r!="symbol"?r+"":r,t),t);var B=l((rne,wf)=>{var li=function(e){return e&&e.Math==Math&&e};wf.exports=li(typeof globalThis=="object"&&globalThis)||li(typeof window=="object"&&window)||li(typeof self=="object"&&self)||li(typeof global=="object"&&global)||Function("return this")()});var L=l((tne,Af)=>{Af.exports=function(e){try{return!!e()}catch(r){return!0}}});var Z=l((nne,_f)=>{var aR=L();_f.exports=!aR(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})});var Yn=l(Tf=>{"use strict";var Rf={}.propertyIsEnumerable,Cf=Object.getOwnPropertyDescriptor,iR=Cf&&!Rf.call({1:2},1);Tf.f=iR?function(r){var t=Cf(this,r);return!!t&&t.enumerable}:Rf});var qr=l((ine,Of)=>{Of.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var ze=l((one,Pf)=>{var oR={}.toString;Pf.exports=function(e){return oR.call(e).slice(8,-1)}});var Yt=l((sne,Lf)=>{var sR=L(),uR=ze(),lR="".split;Lf.exports=sR(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return uR(e)=="String"?lR.call(e,""):Object(e)}:Object});var Ie=l((une,Nf)=>{Nf.exports=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e}});var Fe=l((lne,Mf)=>{var cR=Yt(),dR=Ie();Mf.exports=function(e){return cR(dR(e))}});var Q=l((cne,Df)=>{Df.exports=function(e){return typeof e=="object"?e!==null:typeof e=="function"}});var Qe=l((dne,Uf)=>{var ci=Q();Uf.exports=function(e,r){if(!ci(e))return e;var t,n;if(r&&typeof(t=e.toString)=="function"&&!ci(n=t.call(e))||typeof(t=e.valueOf)=="function"&&!ci(n=t.call(e))||!r&&typeof(t=e.toString)=="function"&&!ci(n=t.call(e)))return n;throw TypeError("Can't convert object to primitive value")}});var le=l((fne,jf)=>{var fR={}.hasOwnProperty;jf.exports=function(e,r){return fR.call(e,r)}});var di=l((vne,Ff)=>{var vR=B(),kf=Q(),bs=vR.document,pR=kf(bs)&&kf(bs.createElement);Ff.exports=function(e){return pR?bs.createElement(e):{}}});var Es=l((pne,Bf)=>{var gR=Z(),hR=L(),mR=di();Bf.exports=!gR&&!hR(function(){return Object.defineProperty(mR("div"),"a",{get:function(){return 7}}).a!=7})});var Re=l(Vf=>{var yR=Z(),qR=Yn(),bR=qr(),ER=Fe(),SR=Qe(),IR=le(),xR=Es(),$f=Object.getOwnPropertyDescriptor;Vf.f=yR?$f:function(r,t){if(r=ER(r),t=SR(t,!0),xR)try{return $f(r,t)}catch(n){}if(IR(r,t))return bR(!qR.f.call(r,t),r[t])}});var x=l((hne,Hf)=>{var wR=Q();Hf.exports=function(e){if(!wR(e))throw TypeError(String(e)+" is not an object");return e}});var re=l(zf=>{var AR=Z(),_R=Es(),Gf=x(),RR=Qe(),Kf=Object.defineProperty;zf.f=AR?Kf:function(r,t,n){if(Gf(r),t=RR(t,!0),Gf(n),_R)try{return Kf(r,t,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var de=l((yne,Wf)=>{var CR=Z(),TR=re(),OR=qr();Wf.exports=CR?function(e,r,t){return TR.f(e,r,OR(1,t))}:function(e,r,t){return e[r]=t,e}});var fi=l((qne,Xf)=>{var Yf=B(),PR=de();Xf.exports=function(e,r){try{PR(Yf,e,r)}catch(t){Yf[e]=r}return r}});var vi=l((bne,Zf)=>{var LR=B(),NR=fi(),Qf="__core-js_shared__",MR=LR[Qf]||NR(Qf,{});Zf.exports=MR});var pi=l((Ene,Jf)=>{var Ss=vi(),DR=Function.toString;typeof Ss.inspectSource!="function"&&(Ss.inspectSource=function(e){return DR.call(e)});Jf.exports=Ss.inspectSource});var Is=l((Sne,rv)=>{var UR=B(),jR=pi(),ev=UR.WeakMap;rv.exports=typeof ev=="function"&&/native code/.test(jR(ev))});var k=l((Ine,tv)=>{tv.exports=!1});var Xn=l((xne,av)=>{var kR=k(),nv=vi();(av.exports=function(e,r){return nv[e]||(nv[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.5.0",mode:kR?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})});var Xt=l((wne,iv)=>{var FR=0,BR=Math.random();iv.exports=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++FR+BR).toString(36)}});var Qn=l((Ane,sv)=>{var $R=Xn(),VR=Xt(),ov=$R("keys");sv.exports=function(e){return ov[e]||(ov[e]=VR(e))}});var Qt=l((_ne,uv)=>{uv.exports={}});var ge=l((Rne,vv)=>{var HR=Is(),GR=B(),KR=Q(),zR=de(),lv=le(),WR=Qn(),YR=Qt(),XR=GR.WeakMap,gi,Zn,hi,QR=function(e){return hi(e)?Zn(e):gi(e,{})},ZR=function(e){return function(r){var t;if(!KR(r)||(t=Zn(r)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return t}};HR?(It=new XR,cv=It.get,dv=It.has,fv=It.set,gi=function(e,r){return fv.call(It,e,r),r},Zn=function(e){return cv.call(It,e)||{}},hi=function(e){return dv.call(It,e)}):(Zt=WR("state"),YR[Zt]=!0,gi=function(e,r){return zR(e,Zt,r),r},Zn=function(e){return lv(e,Zt)?e[Zt]:{}},hi=function(e){return lv(e,Zt)});var It,cv,dv,fv,Zt;vv.exports={set:gi,get:Zn,has:hi,enforce:QR,getterFor:ZR}});var Ce=l((Cne,hv)=>{var JR=B(),pv=de(),eC=le(),rC=fi(),tC=pi(),gv=ge(),nC=gv.get,aC=gv.enforce,iC=String(String).split("String");(hv.exports=function(e,r,t,n){var a=n?!!n.unsafe:!1,i=n?!!n.enumerable:!1,s=n?!!n.noTargetGet:!1;if(typeof t=="function"&&(typeof r=="string"&&!eC(t,"name")&&pv(t,"name",r),aC(t).source=iC.join(typeof r=="string"?r:"")),e===JR){i?e[r]=t:rC(r,t);return}else a?!s&&e[r]&&(i=!0):delete e[r];i?e[r]=t:pv(e,r,t)})(Function.prototype,"toString",function(){return typeof this=="function"&&nC(this).source||tC(this)})});var ir=l((Tne,mv)=>{var oC=B();mv.exports=oC});var te=l((One,qv)=>{var xs=ir(),ws=B(),yv=function(e){return typeof e=="function"?e:void 0};qv.exports=function(e,r){return arguments.length<2?yv(xs[e])||yv(ws[e]):xs[e]&&xs[e][r]||ws[e]&&ws[e][r]}});var Be=l((Pne,bv)=>{var sC=Math.ceil,uC=Math.floor;bv.exports=function(e){return isNaN(e=+e)?0:(e>0?uC:sC)(e)}});var J=l((Lne,Ev)=>{var lC=Be(),cC=Math.min;Ev.exports=function(e){return e>0?cC(lC(e),9007199254740991):0}});var jr=l((Nne,Sv)=>{var dC=Be(),fC=Math.max,vC=Math.min;Sv.exports=function(e,r){var t=dC(e);return t<0?fC(t+r,0):vC(t,r)}});var Jt=l((Mne,xv)=>{var pC=Fe(),gC=J(),hC=jr(),Iv=function(e){return function(r,t,n){var a=pC(r),i=gC(a.length),s=hC(n,i),u;if(e&&t!=t){for(;i>s;)if(u=a[s++],u!=u)return!0}else for(;i>s;s++)if((e||s in a)&&a[s]===t)return e||s||0;return!e&&-1}};xv.exports={includes:Iv(!0),indexOf:Iv(!1)}});var _s=l((Dne,wv)=>{var As=le(),mC=Fe(),yC=Jt().indexOf,qC=Qt();wv.exports=function(e,r){var t=mC(e),n=0,a=[],i;for(i in t)!As(qC,i)&&As(t,i)&&a.push(i);for(;r.length>n;)As(t,i=r[n++])&&(~yC(a,i)||a.push(i));return a}});var mi=l((Une,Av)=>{Av.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var et=l(_v=>{var bC=_s(),EC=mi(),SC=EC.concat("length","prototype");_v.f=Object.getOwnPropertyNames||function(r){return bC(r,SC)}});var yi=l(Rv=>{Rv.f=Object.getOwnPropertySymbols});var qi=l((Fne,Cv)=>{var IC=te(),xC=et(),wC=yi(),AC=x();Cv.exports=IC("Reflect","ownKeys")||function(r){var t=xC.f(AC(r)),n=wC.f;return n?t.concat(n(r)):t}});var Rs=l((Bne,Tv)=>{var _C=le(),RC=qi(),CC=Re(),TC=re();Tv.exports=function(e,r){for(var t=RC(r),n=TC.f,a=CC.f,i=0;i<t.length;i++){var s=t[i];_C(e,s)||n(e,s,a(r,s))}}});var en=l(($ne,Ov)=>{var OC=L(),PC=/#|\.prototype\./,Jn=function(e,r){var t=NC[LC(e)];return t==DC?!0:t==MC?!1:typeof r=="function"?OC(r):!!r},LC=Jn.normalize=function(e){return String(e).replace(PC,".").toLowerCase()},NC=Jn.data={},MC=Jn.NATIVE="N",DC=Jn.POLYFILL="P";Ov.exports=Jn});var p=l((Vne,Pv)=>{var Cs=B(),UC=Re().f,jC=de(),kC=Ce(),FC=fi(),BC=Rs(),$C=en();Pv.exports=function(e,r){var t=e.target,n=e.global,a=e.stat,i,s,u,o,c,f;if(n?s=Cs:a?s=Cs[t]||FC(t,{}):s=(Cs[t]||{}).prototype,s)for(u in r){if(c=r[u],e.noTargetGet?(f=UC(s,u),o=f&&f.value):o=s[u],i=$C(n?u:t+(a?".":"#")+u,e.forced),!i&&o!==void 0){if(typeof c==typeof o)continue;BC(c,o)}(e.sham||o&&o.sham)&&jC(c,"sham",!0),kC(s,u,c,e)}}});var bi=l((Hne,Lv)=>{var VC=L();Lv.exports=!!Object.getOwnPropertySymbols&&!VC(function(){return!String(Symbol())})});var Ts=l((Gne,Nv)=>{var HC=bi();Nv.exports=HC&&!Symbol.sham&&typeof Symbol()=="symbol"});var kr=l((Kne,Mv)=>{var GC=ze();Mv.exports=Array.isArray||function(r){return GC(r)=="Array"}});var ne=l((zne,Dv)=>{var KC=Ie();Dv.exports=function(e){return Object(KC(e))}});var xt=l((Wne,Uv)=>{var zC=_s(),WC=mi();Uv.exports=Object.keys||function(r){return zC(r,WC)}});var Ei=l((Yne,jv)=>{var YC=Z(),XC=re(),QC=x(),ZC=xt();jv.exports=YC?Object.defineProperties:function(r,t){QC(r);for(var n=ZC(t),a=n.length,i=0,s;a>i;)XC.f(r,s=n[i++],t[s]);return r}});var Os=l((Xne,kv)=>{var JC=te();kv.exports=JC("document","documentElement")});var je=l((Qne,$v)=>{var eT=x(),rT=Ei(),Fv=mi(),tT=Qt(),nT=Os(),aT=di(),iT=Qn(),Bv=iT("IE_PROTO"),Ls="prototype",Ps=function(){},Si=function(){var e=aT("iframe"),r=Fv.length,t="<",n="script",a=">",i="java"+n+":",s;for(e.style.display="none",nT.appendChild(e),e.src=String(i),s=e.contentWindow.document,s.open(),s.write(t+n+a+"document.F=Object"+t+"/"+n+a),s.close(),Si=s.F;r--;)delete Si[Ls][Fv[r]];return Si()};$v.exports=Object.create||function(r,t){var n;return r!==null?(Ps[Ls]=eT(r),n=new Ps,Ps[Ls]=null,n[Bv]=r):n=Si(),t===void 0?n:rT(n,t)};tT[Bv]=!0});var Ns=l((Zne,Gv)=>{var oT=Fe(),Vv=et().f,sT={}.toString,Hv=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],uT=function(e){try{return Vv(e)}catch(r){return Hv.slice()}};Gv.exports.f=function(r){return Hv&&sT.call(r)=="[object Window]"?uT(r):Vv(oT(r))}});var W=l((Jne,zv)=>{var lT=B(),cT=Xn(),Kv=le(),dT=Xt(),fT=bi(),vT=Ts(),Ii=cT("wks"),Ms=lT.Symbol,pT=vT?Ms:dT;zv.exports=function(e){return Kv(Ii,e)||(fT&&Kv(Ms,e)?Ii[e]=Ms[e]:Ii[e]=pT("Symbol."+e)),Ii[e]}});var Ds=l(Wv=>{var gT=W();Wv.f=gT});var qe=l((rae,Xv)=>{var Yv=ir(),hT=le(),mT=Ds(),yT=re().f;Xv.exports=function(e){var r=Yv.Symbol||(Yv.Symbol={});hT(r,e)||yT(r,e,{value:mT.f(e)})}});var or=l((tae,Zv)=>{var qT=re().f,bT=le(),ET=W(),Qv=ET("toStringTag");Zv.exports=function(e,r,t){e&&!bT(e=t?e:e.prototype,Qv)&&qT(e,Qv,{configurable:!0,value:r})}});var j=l((nae,Jv)=>{Jv.exports=function(e){if(typeof e!="function")throw TypeError(String(e)+" is not a function");return e}});var pe=l((aae,ep)=>{var ST=j();ep.exports=function(e,r,t){if(ST(e),r===void 0)return e;switch(t){case 0:return function(){return e.call(r)};case 1:return function(n){return e.call(r,n)};case 2:return function(n,a){return e.call(r,n,a)};case 3:return function(n,a,i){return e.call(r,n,a,i)}}return function(){return e.apply(r,arguments)}}});var rn=l((iae,tp)=>{var IT=Q(),rp=kr(),xT=W(),wT=xT("species");tp.exports=function(e,r){var t;return rp(e)&&(t=e.constructor,typeof t=="function"&&(t===Array||rp(t.prototype))?t=void 0:IT(t)&&(t=t[wT],t===null&&(t=void 0))),new(t===void 0?Array:t)(r===0?0:r)}});var xe=l((oae,np)=>{var AT=pe(),_T=Yt(),RT=ne(),CT=J(),TT=rn(),OT=[].push,wt=function(e){var r=e==1,t=e==2,n=e==3,a=e==4,i=e==6,s=e==5||i;return function(u,o,c,f){for(var d=RT(u),v=_T(d),q=AT(o,c,3),g=CT(v.length),y=0,m=f||TT,b=r?m(u,g):t?m(u,0):void 0,_,E;g>y;y++)if((s||y in v)&&(_=v[y],E=q(_,y,d),e)){if(r)b[y]=E;else if(E)switch(e){case 3:return!0;case 5:return _;case 6:return y;case 2:OT.call(b,_)}else if(a)return!1}return i?-1:n||a?a:b}};np.exports={forEach:wt(0),map:wt(1),filter:wt(2),some:wt(3),every:wt(4),find:wt(5),findIndex:wt(6)}});var Ip=l(()=>{"use strict";var nn=p(),up=B(),PT=te(),LT=k(),tn=Z(),tt=bi(),NT=Ts(),zs=L(),be=le(),MT=kr(),DT=Q(),Fs=x(),UT=ne(),xi=Fe(),Ws=Qe(),Bs=qr(),ra=je(),lp=xt(),jT=et(),cp=Ns(),$s=yi(),dp=Re(),fp=re(),vp=Yn(),kT=de(),ap=Ce(),ta=Xn(),FT=Qn(),pp=Qt(),BT=Xt(),gp=W(),$T=Ds(),VT=qe(),HT=or(),hp=ge(),wi=xe().forEach,$e=FT("hidden"),Ai="Symbol",Fr="prototype",ip=gp("toPrimitive"),GT=hp.set,op=hp.getterFor(Ai),Ze=Object[Fr],Ve=up.Symbol,ea=PT("JSON","stringify"),mp=dp.f,rt=fp.f,yp=cp.f,KT=vp.f,Br=ta("symbols"),na=ta("op-symbols"),Us=ta("string-to-symbol-registry"),js=ta("symbol-to-string-registry"),zT=ta("wks"),ks=up.QObject,Vs=!ks||!ks[Fr]||!ks[Fr].findChild,Hs=tn&&zs(function(){return ra(rt({},"a",{get:function(){return rt(this,"a",{value:7}).a}})).a!=7})?function(e,r,t){var n=mp(Ze,r);n&&delete Ze[r],rt(e,r,t),n&&e!==Ze&&rt(Ze,r,n)}:rt,qp=function(e,r){var t=Br[e]=ra(Ve[Fr]);return GT(t,{type:Ai,tag:e,description:r}),tn||(t.description=r),t},Gs=tt&&typeof Ve.iterator=="symbol"?function(e){return typeof e=="symbol"}:function(e){return Object(e)instanceof Ve},_i=function(r,t,n){r===Ze&&_i(na,t,n),Fs(r);var a=Ws(t,!0);return Fs(n),be(Br,a)?(n.enumerable?(be(r,$e)&&r[$e][a]&&(r[$e][a]=!1),n=ra(n,{enumerable:Bs(0,!1)})):(be(r,$e)||rt(r,$e,Bs(1,{})),r[$e][a]=!0),Hs(r,a,n)):rt(r,a,n)},bp=function(r,t){Fs(r);var n=xi(t),a=lp(n).concat(Ys(n));return wi(a,function(i){(!tn||Ks.call(n,i))&&_i(r,i,n[i])}),r},WT=function(r,t){return t===void 0?ra(r):bp(ra(r),t)},Ks=function(r){var t=Ws(r,!0),n=KT.call(this,t);return this===Ze&&be(Br,t)&&!be(na,t)?!1:n||!be(this,t)||!be(Br,t)||be(this,$e)&&this[$e][t]?n:!0},Ep=function(r,t){var n=xi(r),a=Ws(t,!0);if(!(n===Ze&&be(Br,a)&&!be(na,a))){var i=mp(n,a);return i&&be(Br,a)&&!(be(n,$e)&&n[$e][a])&&(i.enumerable=!0),i}},Sp=function(r){var t=yp(xi(r)),n=[];return wi(t,function(a){!be(Br,a)&&!be(pp,a)&&n.push(a)}),n},Ys=function(r){var t=r===Ze,n=yp(t?na:xi(r)),a=[];return wi(n,function(i){be(Br,i)&&(!t||be(Ze,i))&&a.push(Br[i])}),a};tt||(Ve=function(){if(this instanceof Ve)throw TypeError("Symbol is not a constructor");var r=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),t=BT(r),n=function(a){this===Ze&&n.call(na,a),be(this,$e)&&be(this[$e],t)&&(this[$e][t]=!1),Hs(this,t,Bs(1,a))};return tn&&Vs&&Hs(Ze,t,{configurable:!0,set:n}),qp(t,r)},ap(Ve[Fr],"toString",function(){return op(this).tag}),vp.f=Ks,fp.f=_i,dp.f=Ep,jT.f=cp.f=Sp,$s.f=Ys,tn&&(rt(Ve[Fr],"description",{configurable:!0,get:function(){return op(this).description}}),LT||ap(Ze,"propertyIsEnumerable",Ks,{unsafe:!0})));NT||($T.f=function(e){return qp(gp(e),e)});nn({global:!0,wrap:!0,forced:!tt,sham:!tt},{Symbol:Ve});wi(lp(zT),function(e){VT(e)});nn({target:Ai,stat:!0,forced:!tt},{for:function(e){var r=String(e);if(be(Us,r))return Us[r];var t=Ve(r);return Us[r]=t,js[t]=r,t},keyFor:function(r){if(!Gs(r))throw TypeError(r+" is not a symbol");if(be(js,r))return js[r]},useSetter:function(){Vs=!0},useSimple:function(){Vs=!1}});nn({target:"Object",stat:!0,forced:!tt,sham:!tn},{create:WT,defineProperty:_i,defineProperties:bp,getOwnPropertyDescriptor:Ep});nn({target:"Object",stat:!0,forced:!tt},{getOwnPropertyNames:Sp,getOwnPropertySymbols:Ys});nn({target:"Object",stat:!0,forced:zs(function(){$s.f(1)})},{getOwnPropertySymbols:function(r){return $s.f(UT(r))}});ea&&(sp=!tt||zs(function(){var e=Ve();return ea([e])!="[null]"||ea({a:e})!="{}"||ea(Object(e))!="{}"}),nn({target:"JSON",stat:!0,forced:sp},{stringify:function(r,t,n){for(var a=[r],i=1,s;arguments.length>i;)a.push(arguments[i++]);if(s=t,!(!DT(t)&&r===void 0||Gs(r)))return MT(t)||(t=function(u,o){if(typeof s=="function"&&(o=s.call(this,u,o)),!Gs(o))return o}),a[1]=t,ea.apply(null,a)}}));var sp;Ve[Fr][ip]||kT(Ve[Fr],ip,Ve[Fr].valueOf);HT(Ve,Ai);pp[$e]=!0});var xp=l(()=>{var YT=qe();YT("asyncIterator")});var Rp=l(()=>{"use strict";var XT=p(),QT=Z(),ZT=B(),JT=le(),eO=Q(),rO=re().f,tO=Rs(),$r=ZT.Symbol;QT&&typeof $r=="function"&&(!("description"in $r.prototype)||$r().description!==void 0)&&(Xs={},an=function(){var r=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),t=this instanceof an?new $r(r):r===void 0?$r():$r(r);return r===""&&(Xs[t]=!0),t},tO(an,$r),Ri=an.prototype=$r.prototype,Ri.constructor=an,wp=Ri.toString,Ap=String($r("test"))=="Symbol(test)",_p=/^Symbol\((.*)\)[^)]+$/,rO(Ri,"description",{configurable:!0,get:function(){var r=eO(this)?this.valueOf():this,t=wp.call(r);if(JT(Xs,r))return"";var n=Ap?t.slice(7,-1):t.replace(_p,"$1");return n===""?void 0:n}}),XT({global:!0,forced:!0},{Symbol:an}));var Xs,an,Ri,wp,Ap,_p});var Cp=l(()=>{var nO=qe();nO("hasInstance")});var Tp=l(()=>{var aO=qe();aO("isConcatSpreadable")});var Op=l(()=>{var iO=qe();iO("iterator")});var Pp=l(()=>{var oO=qe();oO("match")});var Lp=l(()=>{var sO=qe();sO("matchAll")});var Np=l(()=>{var uO=qe();uO("replace")});var Mp=l(()=>{var lO=qe();lO("search")});var Dp=l(()=>{var cO=qe();cO("species")});var Up=l(()=>{var dO=qe();dO("split")});var jp=l(()=>{var fO=qe();fO("toPrimitive")});var kp=l(()=>{var vO=qe();vO("toStringTag")});var Fp=l(()=>{var pO=qe();pO("unscopables")});var Zs=l((Uae,Vp)=>{"use strict";var Bp=Z(),gO=L(),Qs=xt(),hO=yi(),mO=Yn(),yO=ne(),qO=Yt(),on=Object.assign,$p=Object.defineProperty;Vp.exports=!on||gO(function(){if(Bp&&on({b:1},on($p({},"a",{enumerable:!0,get:function(){$p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},r={},t=Symbol(),n="abcdefghijklmnopqrst";return e[t]=7,n.split("").forEach(function(a){r[a]=a}),on({},e)[t]!=7||Qs(on({},r)).join("")!=n})?function(r,t){for(var n=yO(r),a=arguments.length,i=1,s=hO.f,u=mO.f;a>i;)for(var o=qO(arguments[i++]),c=s?Qs(o).concat(s(o)):Qs(o),f=c.length,d=0,v;f>d;)v=c[d++],(!Bp||u.call(o,v))&&(n[v]=o[v]);return n}:on});var Gp=l(()=>{var bO=p(),Hp=Zs();bO({target:"Object",stat:!0,forced:Object.assign!==Hp},{assign:Hp})});var Kp=l(()=>{var EO=p(),SO=Z(),IO=je();EO({target:"Object",stat:!0,sham:!SO},{create:IO})});var Wp=l(()=>{var xO=p(),zp=Z(),wO=re();xO({target:"Object",stat:!0,forced:!zp,sham:!zp},{defineProperty:wO.f})});var Xp=l(()=>{var AO=p(),Yp=Z(),_O=Ei();AO({target:"Object",stat:!0,forced:!Yp,sham:!Yp},{defineProperties:_O})});var Js=l((Kae,Zp)=>{var RO=Z(),CO=xt(),TO=Fe(),OO=Yn().f,Qp=function(e){return function(r){for(var t=TO(r),n=CO(t),a=n.length,i=0,s=[],u;a>i;)u=n[i++],(!RO||OO.call(t,u))&&s.push(e?[u,t[u]]:t[u]);return s}};Zp.exports={entries:Qp(!0),values:Qp(!1)}});var Jp=l(()=>{var PO=p(),LO=Js().entries;PO({target:"Object",stat:!0},{entries:function(r){return LO(r)}})});var sn=l((Yae,eg)=>{var NO=L();eg.exports=!NO(function(){return Object.isExtensible(Object.preventExtensions({}))})});var nt=l((Xae,rg)=>{var MO=Qt(),DO=Q(),eu=le(),UO=re().f,jO=Xt(),kO=sn(),At=jO("meta"),FO=0,ru=Object.isExtensible||function(){return!0},tu=function(e){UO(e,At,{value:{objectID:"O"+ ++FO,weakData:{}}})},BO=function(e,r){if(!DO(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!eu(e,At)){if(!ru(e))return"F";if(!r)return"E";tu(e)}return e[At].objectID},$O=function(e,r){if(!eu(e,At)){if(!ru(e))return!0;if(!r)return!1;tu(e)}return e[At].weakData},VO=function(e){return kO&&HO.REQUIRED&&ru(e)&&!eu(e,At)&&tu(e),e},HO=rg.exports={REQUIRED:!1,fastKey:BO,getWeakData:$O,onFreeze:VO};MO[At]=!0});var tg=l(()=>{var GO=p(),KO=sn(),zO=L(),WO=Q(),YO=nt().onFreeze,nu=Object.freeze,XO=zO(function(){nu(1)});GO({target:"Object",stat:!0,forced:XO,sham:!KO},{freeze:function(r){return nu&&WO(r)?nu(YO(r)):r}})});var un=l((Jae,ng)=>{ng.exports={}});var Ci=l((eie,ag)=>{var QO=W(),ZO=un(),JO=QO("iterator"),e8=Array.prototype;ag.exports=function(e){return e!==void 0&&(ZO.Array===e||e8[JO]===e)}});var Ti=l((rie,og)=>{var r8=W(),t8=r8("toStringTag"),ig={};ig[t8]="z";og.exports=String(ig)==="[object z]"});var ln=l((tie,sg)=>{var n8=Ti(),Oi=ze(),a8=W(),i8=a8("toStringTag"),o8=Oi(function(){return arguments}())=="Arguments",s8=function(e,r){try{return e[r]}catch(t){}};sg.exports=n8?Oi:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=s8(r=Object(e),i8))=="string"?t:o8?Oi(r):(n=Oi(r))=="Object"&&typeof r.callee=="function"?"Arguments":n}});var Vr=l((nie,ug)=>{var u8=ln(),l8=un(),c8=W(),d8=c8("iterator");ug.exports=function(e){if(e!=null)return e[d8]||e["@@iterator"]||l8[u8(e)]}});var cn=l((aie,cg)=>{var lg=x();cg.exports=function(e,r,t,n){try{return n?r(lg(t)[0],t[1]):r(t)}catch(i){var a=e.return;throw a!==void 0&&lg(a.call(e)),i}}});var $=l((iie,dg)=>{var f8=x(),v8=Ci(),p8=J(),g8=pe(),h8=Vr(),m8=cn(),aa=function(e,r){this.stopped=e,this.result=r},y8=dg.exports=function(e,r,t,n,a){var i=g8(r,t,n?2:1),s,u,o,c,f,d,v;if(a)s=e;else{if(u=h8(e),typeof u!="function")throw TypeError("Target is not iterable");if(v8(u)){for(o=0,c=p8(e.length);c>o;o++)if(f=n?i(f8(v=e[o])[0],v[1]):i(e[o]),f&&f instanceof aa)return f;return new aa(!1)}s=u.call(e)}for(d=s.next;!(v=d.call(s)).done;)if(f=m8(s,i,v.value,n),typeof f=="object"&&f&&f instanceof aa)return f;return new aa(!1)};y8.stop=function(e){return new aa(!0,e)}});var at=l((oie,fg)=>{"use strict";var q8=Qe(),b8=re(),E8=qr();fg.exports=function(e,r,t){var n=q8(r);n in e?b8.f(e,n,E8(0,t)):e[n]=t}});var vg=l(()=>{var S8=p(),I8=$(),x8=at();S8({target:"Object",stat:!0},{fromEntries:function(r){var t={};return I8(r,function(n,a){x8(t,n,a)},void 0,!0),t}})});var hg=l(()=>{var w8=p(),A8=L(),_8=Fe(),pg=Re().f,gg=Z(),R8=A8(function(){pg(1)}),C8=!gg||R8;w8({target:"Object",stat:!0,forced:C8,sham:!gg},{getOwnPropertyDescriptor:function(r,t){return pg(_8(r),t)}})});var mg=l(()=>{var T8=p(),O8=Z(),P8=qi(),L8=Fe(),N8=Re(),M8=at();T8({target:"Object",stat:!0,sham:!O8},{getOwnPropertyDescriptors:function(r){for(var t=L8(r),n=N8.f,a=P8(t),i={},s=0,u,o;a.length>s;)o=n(t,u=a[s++]),o!==void 0&&M8(i,u,o);return i}})});var yg=l(()=>{var D8=p(),U8=L(),j8=Ns().f,k8=U8(function(){return!Object.getOwnPropertyNames(1)});D8({target:"Object",stat:!0,forced:k8},{getOwnPropertyNames:j8})});var Pi=l((gie,qg)=>{var F8=L();qg.exports=!F8(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Pe=l((hie,Eg)=>{var B8=le(),$8=ne(),V8=Qn(),H8=Pi(),bg=V8("IE_PROTO"),G8=Object.prototype;Eg.exports=H8?Object.getPrototypeOf:function(e){return e=$8(e),B8(e,bg)?e[bg]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?G8:null}});var Ig=l(()=>{var K8=p(),z8=L(),W8=ne(),Sg=Pe(),Y8=Pi(),X8=z8(function(){Sg(1)});K8({target:"Object",stat:!0,forced:X8,sham:!Y8},{getPrototypeOf:function(r){return Sg(W8(r))}})});var au=l((qie,xg)=>{xg.exports=Object.is||function(r,t){return r===t?r!==0||1/r===1/t:r!=r&&t!=t}});var wg=l(()=>{var Q8=p(),Z8=au();Q8({target:"Object",stat:!0},{is:Z8})});var Ag=l(()=>{var J8=p(),e9=L(),r9=Q(),iu=Object.isExtensible,t9=e9(function(){iu(1)});J8({target:"Object",stat:!0,forced:t9},{isExtensible:function(r){return r9(r)?iu?iu(r):!0:!1}})});var _g=l(()=>{var n9=p(),a9=L(),i9=Q(),ou=Object.isFrozen,o9=a9(function(){ou(1)});n9({target:"Object",stat:!0,forced:o9},{isFrozen:function(r){return i9(r)?ou?ou(r):!1:!0}})});var Rg=l(()=>{var s9=p(),u9=L(),l9=Q(),su=Object.isSealed,c9=u9(function(){su(1)});s9({target:"Object",stat:!0,forced:c9},{isSealed:function(r){return l9(r)?su?su(r):!1:!0}})});var Tg=l(()=>{var d9=p(),f9=ne(),Cg=xt(),v9=L(),p9=v9(function(){Cg(1)});d9({target:"Object",stat:!0,forced:p9},{keys:function(r){return Cg(f9(r))}})});var Og=l(()=>{var g9=p(),h9=Q(),m9=nt().onFreeze,y9=sn(),q9=L(),uu=Object.preventExtensions,b9=q9(function(){uu(1)});g9({target:"Object",stat:!0,forced:b9,sham:!y9},{preventExtensions:function(r){return uu&&h9(r)?uu(m9(r)):r}})});var Pg=l(()=>{var E9=p(),S9=Q(),I9=nt().onFreeze,x9=sn(),w9=L(),lu=Object.seal,A9=w9(function(){lu(1)});E9({target:"Object",stat:!0,forced:A9,sham:!x9},{seal:function(r){return lu&&S9(r)?lu(I9(r)):r}})});var cu=l((Nie,Lg)=>{var _9=Q();Lg.exports=function(e){if(!_9(e)&&e!==null)throw TypeError("Can't set "+String(e)+" as a prototype");return e}});var it=l((Mie,Ng)=>{var R9=x(),C9=cu();Ng.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(r,[]),e=r instanceof Array}catch(n){}return function(a,i){return R9(a),C9(i),e?t.call(a,i):a.__proto__=i,a}}():void 0)});var Mg=l(()=>{var T9=p(),O9=it();T9({target:"Object",stat:!0},{setPrototypeOf:O9})});var Dg=l(()=>{var P9=p(),L9=Js().values;P9({target:"Object",stat:!0},{values:function(r){return L9(r)}})});var jg=l((Fie,Ug)=>{"use strict";var N9=Ti(),M9=ln();Ug.exports=N9?{}.toString:function(){return"[object "+M9(this)+"]"}});var kg=l(()=>{var D9=Ti(),U9=Ce(),j9=jg();D9||U9(Object.prototype,"toString",j9,{unsafe:!0})});var ia=l((Vie,Fg)=>{"use strict";var k9=k(),F9=B(),B9=L();Fg.exports=k9||!B9(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete F9[e]})});var Bg=l(()=>{"use strict";var $9=p(),V9=Z(),H9=ia(),G9=ne(),K9=j(),z9=re();V9&&$9({target:"Object",proto:!0,forced:H9},{__defineGetter__:function(r,t){z9.f(G9(this),r,{get:K9(t),enumerable:!0,configurable:!0})}})});var $g=l(()=>{"use strict";var W9=p(),Y9=Z(),X9=ia(),Q9=ne(),Z9=j(),J9=re();Y9&&W9({target:"Object",proto:!0,forced:X9},{__defineSetter__:function(r,t){J9.f(Q9(this),r,{set:Z9(t),enumerable:!0,configurable:!0})}})});var Vg=l(()=>{"use strict";var e6=p(),r6=Z(),t6=ia(),n6=ne(),a6=Qe(),i6=Pe(),o6=Re().f;r6&&e6({target:"Object",proto:!0,forced:t6},{__lookupGetter__:function(r){var t=n6(this),n=a6(r,!0),a;do if(a=o6(t,n))return a.get;while(t=i6(t))}})});var Hg=l(()=>{"use strict";var s6=p(),u6=Z(),l6=ia(),c6=ne(),d6=Qe(),f6=Pe(),v6=Re().f;u6&&s6({target:"Object",proto:!0,forced:l6},{__lookupSetter__:function(r){var t=c6(this),n=d6(r,!0),a;do if(a=v6(t,n))return a.set;while(t=f6(t))}})});var fu=l((Zie,Kg)=>{"use strict";var p6=j(),g6=Q(),Gg=[].slice,du={},h6=function(e,r,t){if(!(r in du)){for(var n=[],a=0;a<r;a++)n[a]="a["+a+"]";du[r]=Function("C,a","return new C("+n.join(",")+")")}return du[r](e,t)};Kg.exports=Function.bind||function(r){var t=p6(this),n=Gg.call(arguments,1),a=function(){var s=n.concat(Gg.call(arguments));return this instanceof a?h6(t,s.length,s):t.apply(r,s)};return g6(t.prototype)&&(a.prototype=t.prototype),a}});var zg=l(()=>{var m6=p(),y6=fu();m6({target:"Function",proto:!0},{bind:y6})});var Yg=l(()=>{var q6=Z(),b6=re().f,vu=Function.prototype,E6=vu.toString,S6=/^\s*function ([^ (]*)/,Wg="name";q6&&!(Wg in vu)&&b6(vu,Wg,{configurable:!0,get:function(){try{return E6.call(this).match(S6)[1]}catch(e){return""}}})});var Jg=l(()=>{"use strict";var Xg=Q(),I6=re(),x6=Pe(),w6=W(),Qg=w6("hasInstance"),Zg=Function.prototype;Qg in Zg||I6.f(Zg,Qg,{value:function(e){if(typeof this!="function"||!Xg(e))return!1;if(!Xg(this.prototype))return e instanceof this;for(;e=x6(e);)if(this.prototype===e)return!0;return!1}})});var pu=l(()=>{var A6=p(),_6=B();A6({global:!0},{globalThis:_6})});var gu=l((soe,rh)=>{"use strict";var R6=pe(),C6=ne(),T6=cn(),O6=Ci(),P6=J(),eh=at(),L6=Vr();rh.exports=function(r){var t=C6(r),n=typeof this=="function"?this:Array,a=arguments.length,i=a>1?arguments[1]:void 0,s=i!==void 0,u=0,o=L6(t),c,f,d,v,q;if(s&&(i=R6(i,a>2?arguments[2]:void 0,2)),o!=null&&!(n==Array&&O6(o)))for(v=o.call(t),q=v.next,f=new n;!(d=q.call(v)).done;u++)eh(f,u,s?T6(v,i,[d.value,u],!0):d.value);else for(c=P6(t.length),f=new n(c);c>u;u++)eh(f,u,s?i(t[u],u):t[u]);return f.length=u,f}});var oa=l((uoe,ih)=>{var N6=W(),nh=N6("iterator"),ah=!1;try{th=0,hu={next:function(){return{done:!!th++}},return:function(){ah=!0}},hu[nh]=function(){return this},Array.from(hu,function(){throw 2})}catch(e){}var th,hu;ih.exports=function(e,r){if(!r&&!ah)return!1;var t=!1;try{var n={};n[nh]=function(){return{next:function(){return{done:t=!0}}}},e(n)}catch(a){}return t}});var oh=l(()=>{var M6=p(),D6=gu(),U6=oa(),j6=!U6(function(e){Array.from(e)});M6({target:"Array",stat:!0,forced:j6},{from:D6})});var sh=l(()=>{var k6=p(),F6=kr();k6({target:"Array",stat:!0},{isArray:F6})});var uh=l(()=>{"use strict";var B6=p(),$6=L(),V6=at(),H6=$6(function(){function e(){}return!(Array.of.call(e)instanceof e)});B6({target:"Array",stat:!0,forced:H6},{of:function(){for(var r=0,t=arguments.length,n=new(typeof this=="function"?this:Array)(t);t>r;)V6(n,r,arguments[r++]);return n.length=t,n}})});var sa=l((goe,lh)=>{var G6=te();lh.exports=G6("navigator","userAgent")||""});var Ni=l((hoe,vh)=>{var K6=B(),mu=sa(),ch=K6.process,dh=ch&&ch.versions,fh=dh&&dh.v8,Hr,Li;fh?(Hr=fh.split("."),Li=Hr[0]+Hr[1]):mu&&(Hr=mu.match(/Edge\/(\d+)/),(!Hr||Hr[1]>=74)&&(Hr=mu.match(/Chrome\/(\d+)/),Hr&&(Li=Hr[1])));vh.exports=Li&&+Li});var dn=l((moe,ph)=>{var z6=L(),W6=W(),Y6=Ni(),X6=W6("species");ph.exports=function(e){return Y6>=51||!z6(function(){var r=[],t=r.constructor={};return t[X6]=function(){return{foo:1}},r[e](Boolean).foo!==1})}});var qh=l(()=>{"use strict";var Q6=p(),Z6=L(),J6=kr(),e4=Q(),r4=ne(),t4=J(),gh=at(),n4=rn(),a4=dn(),i4=W(),o4=Ni(),yh=i4("isConcatSpreadable"),hh=9007199254740991,mh="Maximum allowed index exceeded",s4=o4>=51||!Z6(function(){var e=[];return e[yh]=!1,e.concat()[0]!==e}),u4=a4("concat"),l4=function(e){if(!e4(e))return!1;var r=e[yh];return r!==void 0?!!r:J6(e)},c4=!s4||!u4;Q6({target:"Array",proto:!0,forced:c4},{concat:function(r){var t=r4(this),n=n4(t,0),a=0,i,s,u,o,c;for(i=-1,u=arguments.length;i<u;i++)if(c=i===-1?t:arguments[i],l4(c)){if(o=t4(c.length),a+o>hh)throw TypeError(mh);for(s=0;s<o;s++,a++)s in c&&gh(n,a,c[s])}else{if(a>=hh)throw TypeError(mh);gh(n,a++,c)}return n.length=a,n}})});var qu=l((boe,bh)=>{"use strict";var d4=ne(),yu=jr(),f4=J(),v4=Math.min;bh.exports=[].copyWithin||function(r,t){var n=d4(this),a=f4(n.length),i=yu(r,a),s=yu(t,a),u=arguments.length>2?arguments[2]:void 0,o=v4((u===void 0?a:yu(u,a))-s,a-i),c=1;for(s<i&&i<s+o&&(c=-1,s+=o-1,i+=o-1);o-- >0;)s in n?n[i]=n[s]:delete n[i],i+=c,s+=c;return n}});var sr=l((Eoe,Eh)=>{var p4=W(),g4=je(),h4=de(),bu=p4("unscopables"),Eu=Array.prototype;Eu[bu]==null&&h4(Eu,bu,g4(null));Eh.exports=function(e){Eu[bu][e]=!0}});var Sh=l(()=>{var m4=p(),y4=qu(),q4=sr();m4({target:"Array",proto:!0},{copyWithin:y4});q4("copyWithin")});var br=l((xoe,Ih)=>{"use strict";var b4=L();Ih.exports=function(e,r){var t=[][e];return!t||!b4(function(){t.call(null,r||function(){throw 1},1)})}});var xh=l(()=>{"use strict";var E4=p(),S4=xe().every,I4=br();E4({target:"Array",proto:!0,forced:I4("every")},{every:function(r){return S4(this,r,arguments.length>1?arguments[1]:void 0)}})});var Mi=l((_oe,Ah)=>{"use strict";var x4=ne(),wh=jr(),w4=J();Ah.exports=function(r){for(var t=x4(this),n=w4(t.length),a=arguments.length,i=wh(a>1?arguments[1]:void 0,n),s=a>2?arguments[2]:void 0,u=s===void 0?n:wh(s,n);u>i;)t[i++]=r;return t}});var _h=l(()=>{var A4=p(),_4=Mi(),R4=sr();A4({target:"Array",proto:!0},{fill:_4});R4("fill")});var Ch=l(()=>{"use strict";var C4=p(),T4=xe().filter,O4=L(),P4=dn(),Rh=P4("filter"),L4=Rh&&!O4(function(){[].filter.call({length:-1,0:1},function(e){throw e})});C4({target:"Array",proto:!0,forced:!Rh||!L4},{filter:function(r){return T4(this,r,arguments.length>1?arguments[1]:void 0)}})});var Oh=l(()=>{"use strict";var N4=p(),M4=xe().find,D4=sr(),Su="find",Th=!0;Su in[]&&Array(1)[Su](function(){Th=!1});N4({target:"Array",proto:!0,forced:Th},{find:function(r){return M4(this,r,arguments.length>1?arguments[1]:void 0)}});D4(Su)});var Lh=l(()=>{"use strict";var U4=p(),j4=xe().findIndex,k4=sr(),Iu="findIndex",Ph=!0;Iu in[]&&Array(1)[Iu](function(){Ph=!1});U4({target:"Array",proto:!0,forced:Ph},{findIndex:function(r){return j4(this,r,arguments.length>1?arguments[1]:void 0)}});k4(Iu)});var xu=l((Doe,Mh)=>{"use strict";var F4=kr(),B4=J(),$4=pe(),Nh=function(e,r,t,n,a,i,s,u){for(var o=a,c=0,f=s?$4(s,u,3):!1,d;c<n;){if(c in t){if(d=f?f(t[c],c,r):t[c],i>0&&F4(d))o=Nh(e,r,d,B4(d.length),o,i-1)-1;else{if(o>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[o]=d}o++}c++}return o};Mh.exports=Nh});var Dh=l(()=>{"use strict";var V4=p(),H4=xu(),G4=ne(),K4=J(),z4=Be(),W4=rn();V4({target:"Array",proto:!0},{flat:function(){var r=arguments.length?arguments[0]:void 0,t=G4(this),n=K4(t.length),a=W4(t,0);return a.length=H4(a,t,t,n,0,r===void 0?1:z4(r)),a}})});var Uh=l(()=>{"use strict";var Y4=p(),X4=xu(),Q4=ne(),Z4=J(),J4=j(),eP=rn();Y4({target:"Array",proto:!0},{flatMap:function(r){var t=Q4(this),n=Z4(t.length),a;return J4(r),a=eP(t,0),a.length=X4(a,t,t,n,0,1,r,arguments.length>1?arguments[1]:void 0),a}})});var wu=l((Boe,jh)=>{"use strict";var rP=xe().forEach,tP=br();jh.exports=tP("forEach")?function(r){return rP(this,r,arguments.length>1?arguments[1]:void 0)}:[].forEach});var Fh=l(()=>{"use strict";var nP=p(),kh=wu();nP({target:"Array",proto:!0,forced:[].forEach!=kh},{forEach:kh})});var Bh=l(()=>{"use strict";var aP=p(),iP=Jt().includes,oP=sr();aP({target:"Array",proto:!0},{includes:function(r){return iP(this,r,arguments.length>1?arguments[1]:void 0)}});oP("includes")});var Hh=l(()=>{"use strict";var sP=p(),uP=Jt().indexOf,lP=br(),Vh=[].indexOf,$h=!!Vh&&1/[1].indexOf(1,-0)<0,cP=lP("indexOf");sP({target:"Array",proto:!0,forced:$h||cP},{indexOf:function(r){return $h?Vh.apply(this,arguments)||0:uP(this,r,arguments.length>1?arguments[1]:void 0)}})});var Gh=l(()=>{"use strict";var dP=p(),fP=Yt(),vP=Fe(),pP=br(),gP=[].join,hP=fP!=Object,mP=pP("join",",");dP({target:"Array",proto:!0,forced:hP||mP},{join:function(r){return gP.call(vP(this),r===void 0?",":r)}})});var _u=l((Xoe,zh)=>{"use strict";var yP=Fe(),qP=Be(),bP=J(),EP=br(),SP=Math.min,Au=[].lastIndexOf,Kh=!!Au&&1/[1].lastIndexOf(1,-0)<0,IP=EP("lastIndexOf");zh.exports=Kh||IP?function(r){if(Kh)return Au.apply(this,arguments)||0;var t=yP(this),n=bP(t.length),a=n-1;for(arguments.length>1&&(a=SP(a,qP(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in t&&t[a]===r)return a||0;return-1}:Au});var Yh=l(()=>{var xP=p(),Wh=_u();xP({target:"Array",proto:!0,forced:Wh!==[].lastIndexOf},{lastIndexOf:Wh})});var Qh=l(()=>{"use strict";var wP=p(),AP=xe().map,_P=L(),RP=dn(),Xh=RP("map"),CP=Xh&&!_P(function(){[].map.call({length:-1,0:1},function(e){throw e})});wP({target:"Array",proto:!0,forced:!Xh||!CP},{map:function(r){return AP(this,r,arguments.length>1?arguments[1]:void 0)}})});var ua=l((rse,Jh)=>{var TP=j(),OP=ne(),PP=Yt(),LP=J(),Zh=function(e){return function(r,t,n,a){TP(t);var i=OP(r),s=PP(i),u=LP(i.length),o=e?u-1:0,c=e?-1:1;if(n<2)for(;;){if(o in s){a=s[o],o+=c;break}if(o+=c,e?o<0:u<=o)throw TypeError("Reduce of empty array with no initial value")}for(;e?o>=0:u>o;o+=c)o in s&&(a=t(a,s[o],o,i));return a}};Jh.exports={left:Zh(!1),right:Zh(!0)}});var em=l(()=>{"use strict";var NP=p(),MP=ua().left,DP=br();NP({target:"Array",proto:!0,forced:DP("reduce")},{reduce:function(r){return MP(this,r,arguments.length,arguments.length>1?arguments[1]:void 0)}})});var rm=l(()=>{"use strict";var UP=p(),jP=ua().right,kP=br();UP({target:"Array",proto:!0,forced:kP("reduceRight")},{reduceRight:function(r){return jP(this,r,arguments.length,arguments.length>1?arguments[1]:void 0)}})});var nm=l(()=>{"use strict";var FP=p(),BP=kr(),$P=[].reverse,tm=[1,2];FP({target:"Array",proto:!0,forced:String(tm)===String(tm.reverse())},{reverse:function(){return BP(this)&&(this.length=this.length),$P.call(this)}})});var om=l(()=>{"use strict";var VP=p(),HP=Q(),am=kr(),im=jr(),GP=J(),KP=Fe(),zP=at(),WP=dn(),YP=W(),XP=YP("species"),QP=[].slice,ZP=Math.max;VP({target:"Array",proto:!0,forced:!WP("slice")},{slice:function(r,t){var n=KP(this),a=GP(n.length),i=im(r,a),s=im(t===void 0?a:t,a),u,o,c;if(am(n)&&(u=n.constructor,typeof u=="function"&&(u===Array||am(u.prototype))?u=void 0:HP(u)&&(u=u[XP],u===null&&(u=void 0)),u===Array||u===void 0))return QP.call(n,i,s);for(o=new(u===void 0?Array:u)(ZP(s-i,0)),c=0;i<s;i++,c++)i in n&&zP(o,c,n[i]);return o.length=c,o}})});var sm=l(()=>{"use strict";var JP=p(),eL=xe().some,rL=br();JP({target:"Array",proto:!0,forced:rL("some")},{some:function(r){return eL(this,r,arguments.length>1?arguments[1]:void 0)}})});var dm=l(()=>{"use strict";var tL=p(),nL=j(),um=ne(),cm=L(),aL=br(),Ru=[],lm=Ru.sort,iL=cm(function(){Ru.sort(void 0)}),oL=cm(function(){Ru.sort(null)}),sL=aL("sort"),uL=iL||!oL||sL;tL({target:"Array",proto:!0,forced:uL},{sort:function(r){return r===void 0?lm.call(um(this)):lm.call(um(this),nL(r))}})});var fm=l(()=>{"use strict";var lL=p(),cL=jr(),dL=Be(),fL=J(),vL=ne(),pL=rn(),gL=at(),hL=dn(),mL=Math.max,yL=Math.min,qL=9007199254740991,bL="Maximum allowed length exceeded";lL({target:"Array",proto:!0,forced:!hL("splice")},{splice:function(r,t){var n=vL(this),a=fL(n.length),i=cL(r,a),s=arguments.length,u,o,c,f,d,v;if(s===0?u=o=0:s===1?(u=0,o=a-i):(u=s-2,o=yL(mL(dL(t),0),a-i)),a+u-o>qL)throw TypeError(bL);for(c=pL(n,o),f=0;f<o;f++)d=i+f,d in n&&gL(c,f,n[d]);if(c.length=o,u<o){for(f=i;f<a-o;f++)d=f+o,v=f+u,d in n?n[v]=n[d]:delete n[v];for(f=a;f>a-o+u;f--)delete n[f-1]}else if(u>o)for(f=a-o;f>i;f--)d=f+o-1,v=f+u-1,d in n?n[v]=n[d]:delete n[v];for(f=0;f<u;f++)n[f+i]=arguments[f+2];return n.length=a-o+u,c}})});var ot=l((hse,pm)=>{"use strict";var EL=te(),SL=re(),IL=W(),xL=Z(),vm=IL("species");pm.exports=function(e){var r=EL(e),t=SL.f;xL&&r&&!r[vm]&&t(r,vm,{configurable:!0,get:function(){return this}})}});var gm=l(()=>{var wL=ot();wL("Array")});var hm=l(()=>{var AL=sr();AL("flat")});var mm=l(()=>{var _L=sr();_L("flatMap")});var Di=l((Ise,Em)=>{"use strict";var ym=Pe(),RL=de(),CL=le(),TL=W(),OL=k(),qm=TL("iterator"),bm=!1,PL=function(){return this},fn,Cu,Tu;[].keys&&(Tu=[].keys(),"next"in Tu?(Cu=ym(ym(Tu)),Cu!==Object.prototype&&(fn=Cu)):bm=!0);fn==null&&(fn={});!OL&&!CL(fn,qm)&&RL(fn,qm,PL);Em.exports={IteratorPrototype:fn,BUGGY_SAFARI_ITERATORS:bm}});var _t=l((xse,Sm)=>{"use strict";var LL=Di().IteratorPrototype,NL=je(),ML=qr(),DL=or(),UL=un(),jL=function(){return this};Sm.exports=function(e,r,t){var n=r+" Iterator";return e.prototype=NL(LL,{next:ML(1,t)}),DL(e,n,!1,!0),UL[n]=jL,e}});var ki=l((wse,Om)=>{"use strict";var kL=p(),FL=_t(),Im=Pe(),xm=it(),BL=or(),wm=de(),$L=Ce(),VL=W(),Ou=k(),Am=un(),Tm=Di(),Pu=Tm.IteratorPrototype,Ui=Tm.BUGGY_SAFARI_ITERATORS,la=VL("iterator"),_m="keys",ji="values",Rm="entries",Cm=function(){return this};Om.exports=function(e,r,t,n,a,i,s){FL(t,r,n);var u=function(b){if(b===a&&v)return v;if(!Ui&&b in f)return f[b];switch(b){case _m:return function(){return new t(this,b)};case ji:return function(){return new t(this,b)};case Rm:return function(){return new t(this,b)}}return function(){return new t(this)}},o=r+" Iterator",c=!1,f=e.prototype,d=f[la]||f["@@iterator"]||a&&f[a],v=!Ui&&d||u(a),q=r=="Array"&&f.entries||d,g,y,m;if(q&&(g=Im(q.call(new e)),Pu!==Object.prototype&&g.next&&(!Ou&&Im(g)!==Pu&&(xm?xm(g,Pu):typeof g[la]!="function"&&wm(g,la,Cm)),BL(g,o,!0,!0),Ou&&(Am[o]=Cm))),a==ji&&d&&d.name!==ji&&(c=!0,v=function(){return d.call(this)}),(!Ou||s)&&f[la]!==v&&wm(f,la,v),Am[r]=v,a)if(y={values:u(ji),keys:i?v:u(_m),entries:u(Rm)},s)for(m in y)(Ui||c||!(m in f))&&$L(f,m,y[m]);else kL({target:r,proto:!0,forced:Ui||c},y);return y}});var ca=l((Ase,Mm)=>{"use strict";var HL=Fe(),Lu=sr(),Pm=un(),Lm=ge(),GL=ki(),Nm="Array Iterator",KL=Lm.set,zL=Lm.getterFor(Nm);Mm.exports=GL(Array,"Array",function(e,r){KL(this,{type:Nm,target:HL(e),index:0,kind:r})},function(){var e=zL(this),r=e.target,t=e.kind,n=e.index++;return!r||n>=r.length?(e.target=void 0,{value:void 0,done:!0}):t=="keys"?{value:n,done:!1}:t=="values"?{value:r[n],done:!1}:{value:[n,r[n]],done:!1}},"values");Pm.Arguments=Pm.Array;Lu("keys");Lu("values");Lu("entries")});var jm=l(()=>{var WL=p(),YL=jr(),Dm=String.fromCharCode,Um=String.fromCodePoint,XL=!!Um&&Um.length!=1;WL({target:"String",stat:!0,forced:XL},{fromCodePoint:function(r){for(var t=[],n=arguments.length,a=0,i;n>a;){if(i=+arguments[a++],YL(i,1114111)!==i)throw RangeError(i+" is not a valid code point");t.push(i<65536?Dm(i):Dm(((i-=65536)>>10)+55296,i%1024+56320))}return t.join("")}})});var km=l(()=>{var QL=p(),ZL=Fe(),JL=J();QL({target:"String",stat:!0},{raw:function(r){for(var t=ZL(r.raw),n=JL(t.length),a=arguments.length,i=[],s=0;n>s;)i.push(String(t[s++])),s<a&&i.push(String(arguments[s]));return i.join("")}})});var Rt=l((Ose,Bm)=>{var e7=Be(),r7=Ie(),Fm=function(e){return function(r,t){var n=String(r7(r)),a=e7(t),i=n.length,s,u;return a<0||a>=i?e?"":void 0:(s=n.charCodeAt(a),s<55296||s>56319||a+1===i||(u=n.charCodeAt(a+1))<56320||u>57343?e?n.charAt(a):s:e?n.slice(a,a+2):(s-55296<<10)+(u-56320)+65536)}};Bm.exports={codeAt:Fm(!1),charAt:Fm(!0)}});var $m=l(()=>{"use strict";var t7=p(),n7=Rt().codeAt;t7({target:"String",proto:!0},{codePointAt:function(r){return n7(this,r)}})});var vn=l((Nse,Vm)=>{var a7=Q(),i7=ze(),o7=W(),s7=o7("match");Vm.exports=function(e){var r;return a7(e)&&((r=e[s7])!==void 0?!!r:i7(e)=="RegExp")}});var Fi=l((Mse,Hm)=>{var u7=vn();Hm.exports=function(e){if(u7(e))throw TypeError("The method doesn't accept regular expressions");return e}});var Bi=l((Dse,Gm)=>{var l7=W(),c7=l7("match");Gm.exports=function(e){var r=/./;try{"/./"[e](r)}catch(t){try{return r[c7]=!1,"/./"[e](r)}catch(n){}}return!1}});var Ym=l(()=>{"use strict";var d7=p(),f7=Re().f,Km=J(),v7=Fi(),p7=Ie(),g7=Bi(),h7=k(),zm="".endsWith,m7=Math.min,Wm=g7("endsWith"),y7=!h7&&!Wm&&!!function(){var e=f7(String.prototype,"endsWith");return e&&!e.writable}();d7({target:"String",proto:!0,forced:!y7&&!Wm},{endsWith:function(r){var t=String(p7(this));v7(r);var n=arguments.length>1?arguments[1]:void 0,a=Km(t.length),i=n===void 0?a:m7(Km(n),a),s=String(r);return zm?zm.call(t,s,i):t.slice(i-s.length,i)===s}})});var Xm=l(()=>{"use strict";var q7=p(),b7=Fi(),E7=Ie(),S7=Bi();q7({target:"String",proto:!0,forced:!S7("includes")},{includes:function(r){return!!~String(E7(this)).indexOf(b7(r),arguments.length>1?arguments[1]:void 0)}})});var Ct=l((Bse,Qm)=>{"use strict";var I7=x();Qm.exports=function(){var e=I7(this),r="";return e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.sticky&&(r+="y"),r}});var da=l(($se,Jm)=>{"use strict";var x7=Ct(),$i=RegExp.prototype.exec,w7=String.prototype.replace,Zm=$i,Nu=function(){var e=/a/,r=/b*/g;return $i.call(e,"a"),$i.call(r,"a"),e.lastIndex!==0||r.lastIndex!==0}(),Mu=/()??/.exec("")[1]!==void 0,A7=Nu||Mu;A7&&(Zm=function(r){var t=this,n,a,i,s;return Mu&&(a=new RegExp("^"+t.source+"$(?!\\s)",x7.call(t))),Nu&&(n=t.lastIndex),i=$i.call(t,r),Nu&&i&&(t.lastIndex=t.global?i.index+i[0].length:n),Mu&&i&&i.length>1&&w7.call(i[0],a,function(){for(s=1;s<arguments.length-2;s++)arguments[s]===void 0&&(i[s]=void 0)}),i});Jm.exports=Zm});var fa=l((Vse,ty)=>{"use strict";var _7=de(),ey=Ce(),Vi=L(),ry=W(),R7=da(),C7=ry("species"),T7=!Vi(function(){var e=/./;return e.exec=function(){var r=[];return r.groups={a:"7"},r},"".replace(e,"$<a>")!=="7"}),O7=!Vi(function(){var e=/(?:)/,r=e.exec;e.exec=function(){return r.apply(this,arguments)};var t="ab".split(e);return t.length!==2||t[0]!=="a"||t[1]!=="b"});ty.exports=function(e,r,t,n){var a=ry(e),i=!Vi(function(){var d={};return d[a]=function(){return 7},""[e](d)!=7}),s=i&&!Vi(function(){var d=!1,v=/a/;return e==="split"&&(v={},v.constructor={},v.constructor[C7]=function(){return v},v.flags="",v[a]=/./[a]),v.exec=function(){return d=!0,null},v[a](""),!d});if(!i||!s||e==="replace"&&!T7||e==="split"&&!O7){var u=/./[a],o=t(a,""[e],function(d,v,q,g,y){return v.exec===R7?i&&!y?{done:!0,value:u.call(v,q,g)}:{done:!0,value:d.call(q,v,g)}:{done:!1}}),c=o[0],f=o[1];ey(String.prototype,e,c),ey(RegExp.prototype,a,r==2?function(d,v){return f.call(d,this,v)}:function(d){return f.call(d,this)}),n&&_7(RegExp.prototype[a],"sham",!0)}}});var va=l((Hse,ny)=>{"use strict";var P7=Rt().charAt;ny.exports=function(e,r,t){return r+(t?P7(e,r).length:1)}});var pa=l((Gse,ay)=>{var L7=ze(),N7=da();ay.exports=function(e,r){var t=e.exec;if(typeof t=="function"){var n=t.call(e,r);if(typeof n!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return n}if(L7(e)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return N7.call(e,r)}});var oy=l(()=>{"use strict";var M7=fa(),D7=x(),U7=J(),j7=Ie(),k7=va(),iy=pa();M7("match",1,function(e,r,t){return[function(a){var i=j7(this),s=a==null?void 0:a[e];return s!==void 0?s.call(a,i):new RegExp(a)[e](String(i))},function(n){var a=t(r,n,this);if(a.done)return a.value;var i=D7(n),s=String(this);if(!i.global)return iy(i,s);var u=i.unicode;i.lastIndex=0;for(var o=[],c=0,f;(f=iy(i,s))!==null;){var d=String(f[0]);o[c]=d,d===""&&(i.lastIndex=k7(s,U7(i.lastIndex),u)),c++}return c===0?null:o}]})});var Ee=l((Wse,uy)=>{var sy=x(),F7=j(),B7=W(),$7=B7("species");uy.exports=function(e,r){var t=sy(e).constructor,n;return t===void 0||(n=sy(t)[$7])==null?r:F7(n)}});var Fu=l(()=>{"use strict";var V7=p(),H7=_t(),ly=Ie(),cy=J(),G7=j(),K7=x(),z7=ze(),W7=vn(),dy=Ct(),Y7=de(),X7=L(),Q7=W(),Z7=Ee(),J7=va(),fy=ge(),Uu=k(),Hi=Q7("matchAll"),vy="RegExp String",py=vy+" Iterator",eN=fy.set,rN=fy.getterFor(py),ga=RegExp.prototype,tN=ga.exec,ju="".matchAll,Du=!!ju&&!X7(function(){"a".matchAll(/./)}),nN=function(e,r){var t=e.exec,n;if(typeof t=="function"){if(n=t.call(e,r),typeof n!="object")throw TypeError("Incorrect exec result");return n}return tN.call(e,r)},aN=H7(function(r,t,n,a){eN(this,{type:py,regexp:r,string:t,global:n,unicode:a,done:!1})},vy,function(){var r=rN(this);if(r.done)return{value:void 0,done:!0};var t=r.regexp,n=r.string,a=nN(t,n);return a===null?{value:void 0,done:r.done=!0}:r.global?(String(a[0])==""&&(t.lastIndex=J7(n,cy(t.lastIndex),r.unicode)),{value:a,done:!1}):(r.done=!0,{value:a,done:!1})}),ku=function(e){var r=K7(this),t=String(e),n,a,i,s,u,o;return n=Z7(r,RegExp),a=r.flags,a===void 0&&r instanceof RegExp&&!("flags"in ga)&&(a=dy.call(r)),i=a===void 0?"":String(a),s=new n(n===RegExp?r.source:r,i),u=!!~i.indexOf("g"),o=!!~i.indexOf("u"),s.lastIndex=cy(r.lastIndex),new aN(s,t,u,o)};V7({target:"String",proto:!0,forced:Du},{matchAll:function(r){var t=ly(this),n,a,i,s;if(r!=null){if(W7(r)&&(n=String(ly("flags"in ga?r.flags:dy.call(r))),!~n.indexOf("g")))throw TypeError("`.matchAll` does not allow non-global regexes");if(Du)return ju.apply(t,arguments);if(i=r[Hi],i===void 0&&Uu&&z7(r)=="RegExp"&&(i=ku),i!=null)return G7(i).call(r,t)}else if(Du)return ju.apply(t,arguments);return a=String(t),s=new RegExp(r,"g"),Uu?ku.call(s,a):s[Hi](a)}});Uu||Hi in ga||Y7(ga,Hi,ku)});var Gi=l((Qse,gy)=>{"use strict";var iN=Be(),oN=Ie();gy.exports="".repeat||function(r){var t=String(oN(this)),n="",a=iN(r);if(a<0||a==1/0)throw RangeError("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(t+=t))a&1&&(n+=t);return n}});var Ki=l((Zse,my)=>{var sN=J(),uN=Gi(),lN=Ie(),cN=Math.ceil,hy=function(e){return function(r,t,n){var a=String(lN(r)),i=a.length,s=n===void 0?" ":String(n),u=sN(t),o,c;return u<=i||s==""?a:(o=u-i,c=uN.call(s,cN(o/s.length)),c.length>o&&(c=c.slice(0,o)),e?a+c:c+a)}};my.exports={start:hy(!1),end:hy(!0)}});var Bu=l((Jse,yy)=>{var dN=sa();yy.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(dN)});var qy=l(()=>{"use strict";var fN=p(),vN=Ki().end,pN=Bu();fN({target:"String",proto:!0,forced:pN},{padEnd:function(r){return vN(this,r,arguments.length>1?arguments[1]:void 0)}})});var by=l(()=>{"use strict";var gN=p(),hN=Ki().start,mN=Bu();gN({target:"String",proto:!0,forced:mN},{padStart:function(r){return hN(this,r,arguments.length>1?arguments[1]:void 0)}})});var Ey=l(()=>{var yN=p(),qN=Gi();yN({target:"String",proto:!0},{repeat:qN})});var Sy=l(()=>{"use strict";var bN=fa(),EN=x(),SN=ne(),IN=J(),xN=Be(),wN=Ie(),AN=va(),_N=pa(),RN=Math.max,CN=Math.min,TN=Math.floor,ON=/\$([$&'`]|\d\d?|<[^>]*>)/g,PN=/\$([$&'`]|\d\d?)/g,LN=function(e){return e===void 0?e:String(e)};bN("replace",2,function(e,r,t){return[function(i,s){var u=wN(this),o=i==null?void 0:i[e];return o!==void 0?o.call(i,u,s):r.call(String(u),i,s)},function(a,i){var s=t(r,a,this,i);if(s.done)return s.value;var u=EN(a),o=String(this),c=typeof i=="function";c||(i=String(i));var f=u.global;if(f){var d=u.unicode;u.lastIndex=0}for(var v=[];;){var q=_N(u,o);if(q===null||(v.push(q),!f))break;var g=String(q[0]);g===""&&(u.lastIndex=AN(o,IN(u.lastIndex),d))}for(var y="",m=0,b=0;b<v.length;b++){q=v[b];for(var _=String(q[0]),E=RN(CN(xN(q.index),o.length),0),w=[],C=1;C<q.length;C++)w.push(LN(q[C]));var U=q.groups;if(c){var M=[_].concat(w,E,o);U!==void 0&&M.push(U);var F=String(i.apply(void 0,M))}else F=n(_,o,E,w,U,i);E>=m&&(y+=o.slice(m,E)+F,m=E+_.length)}return y+o.slice(m)}];function n(a,i,s,u,o,c){var f=s+a.length,d=u.length,v=PN;return o!==void 0&&(o=SN(o),v=ON),r.call(c,v,function(q,g){var y;switch(g.charAt(0)){case"$":return"$";case"&":return a;case"`":return i.slice(0,s);case"'":return i.slice(f);case"<":y=o[g.slice(1,-1)];break;default:var m=+g;if(m===0)return q;if(m>d){var b=TN(m/10);return b===0?q:b<=d?u[b-1]===void 0?g.charAt(1):u[b-1]+g.charAt(1):q}y=u[m-1]}return y===void 0?"":y})}})});var xy=l(()=>{"use strict";var NN=fa(),MN=x(),DN=Ie(),Iy=au(),UN=pa();NN("search",1,function(e,r,t){return[function(a){var i=DN(this),s=a==null?void 0:a[e];return s!==void 0?s.call(a,i):new RegExp(a)[e](String(i))},function(n){var a=t(r,n,this);if(a.done)return a.value;var i=MN(n),s=String(this),u=i.lastIndex;Iy(u,0)||(i.lastIndex=0);var o=UN(i,s);return Iy(i.lastIndex,u)||(i.lastIndex=u),o===null?-1:o.index}]})});var _y=l(()=>{"use strict";var jN=fa(),kN=vn(),FN=x(),wy=Ie(),BN=Ee(),$N=va(),VN=J(),Ay=pa(),HN=da(),GN=L(),KN=[].push,zN=Math.min,$u=4294967295,pn=!GN(function(){return!RegExp($u,"y")});jN("split",2,function(e,r,t){var n;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?n=function(a,i){var s=String(wy(this)),u=i===void 0?$u:i>>>0;if(u===0)return[];if(a===void 0)return[s];if(!kN(a))return r.call(s,a,u);for(var o=[],c=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(a.sticky?"y":""),f=0,d=new RegExp(a.source,c+"g"),v,q,g;(v=HN.call(d,s))&&(q=d.lastIndex,!(q>f&&(o.push(s.slice(f,v.index)),v.length>1&&v.index<s.length&&KN.apply(o,v.slice(1)),g=v[0].length,f=q,o.length>=u)));)d.lastIndex===v.index&&d.lastIndex++;return f===s.length?(g||!d.test(""))&&o.push(""):o.push(s.slice(f)),o.length>u?o.slice(0,u):o}:"0".split(void 0,0).length?n=function(a,i){return a===void 0&&i===0?[]:r.call(this,a,i)}:n=r,[function(i,s){var u=wy(this),o=i==null?void 0:i[e];return o!==void 0?o.call(i,u,s):n.call(String(u),i,s)},function(a,i){var s=t(n,a,this,i,n!==r);if(s.done)return s.value;var u=FN(a),o=String(this),c=BN(u,RegExp),f=u.unicode,d=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(pn?"y":"g"),v=new c(pn?u:"^(?:"+u.source+")",d),q=i===void 0?$u:i>>>0;if(q===0)return[];if(o.length===0)return Ay(v,o)===null?[o]:[];for(var g=0,y=0,m=[];y<o.length;){v.lastIndex=pn?y:0;var b=Ay(v,pn?o:o.slice(y)),_;if(b===null||(_=zN(VN(v.lastIndex+(pn?0:y)),o.length))===g)y=$N(o,y,f);else{if(m.push(o.slice(g,y)),m.length===q)return m;for(var E=1;E<=b.length-1;E++)if(m.push(b[E]),m.length===q)return m;y=g=_}}return m.push(o.slice(g)),m}]},!pn)});var Ty=l(()=>{"use strict";var WN=p(),YN=Re().f,XN=J(),QN=Fi(),ZN=Ie(),JN=Bi(),eM=k(),Ry="".startsWith,rM=Math.min,Cy=JN("startsWith"),tM=!eM&&!Cy&&!!function(){var e=YN(String.prototype,"startsWith");return e&&!e.writable}();WN({target:"String",proto:!0,forced:!tM&&!Cy},{startsWith:function(r){var t=String(ZN(this));QN(r);var n=XN(rM(arguments.length>1?arguments[1]:void 0,t.length)),a=String(r);return Ry?Ry.call(t,a,n):t.slice(n,n+a.length)===a}})});var ha=l((pue,Oy)=>{Oy.exports=`
|
|
2
|
-
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var Tt=l((gue,Py)=>{var nM=Ie(),aM=ha(),zi="["+aM+"]",iM=RegExp("^"+zi+zi+"*"),oM=RegExp(zi+zi+"*$"),Vu=function(e){return function(r){var t=String(nM(r));return e&1&&(t=t.replace(iM,"")),e&2&&(t=t.replace(oM,"")),t}};Py.exports={start:Vu(1),end:Vu(2),trim:Vu(3)}});var Wi=l((hue,My)=>{var sM=L(),Ly=ha(),Ny="\u200B\x85\u180E";My.exports=function(e){return sM(function(){return!!Ly[e]()||Ny[e]()!=Ny||Ly[e].name!==e})}});var Dy=l(()=>{"use strict";var uM=p(),lM=Tt().trim,cM=Wi();uM({target:"String",proto:!0,forced:cM("trim")},{trim:function(){return lM(this)}})});var ky=l(()=>{"use strict";var dM=p(),fM=Tt().start,vM=Wi(),jy=vM("trimStart"),Uy=jy?function(){return fM(this)}:"".trimStart;dM({target:"String",proto:!0,forced:jy},{trimStart:Uy,trimLeft:Uy})});var $y=l(()=>{"use strict";var pM=p(),gM=Tt().end,hM=Wi(),By=hM("trimEnd"),Fy=By?function(){return gM(this)}:"".trimEnd;pM({target:"String",proto:!0,forced:By},{trimEnd:Fy,trimRight:Fy})});var Hu=l(()=>{"use strict";var mM=Rt().charAt,Vy=ge(),yM=ki(),Hy="String Iterator",qM=Vy.set,bM=Vy.getterFor(Hy);yM(String,"String",function(e){qM(this,{type:Hy,string:String(e),index:0})},function(){var r=bM(this),t=r.string,n=r.index,a;return n>=t.length?{value:void 0,done:!0}:(a=mM(t,n),r.index+=a.length,{value:a,done:!1})})});var He=l((wue,Gy)=>{var EM=Ie(),SM=/"/g;Gy.exports=function(e,r,t,n){var a=String(EM(e)),i="<"+r;return t!==""&&(i+=" "+t+'="'+String(n).replace(SM,""")+'"'),i+">"+a+"</"+r+">"}});var Ge=l((Aue,Ky)=>{var IM=L();Ky.exports=function(e){return IM(function(){var r=""[e]('"');return r!==r.toLowerCase()||r.split('"').length>3})}});var zy=l(()=>{"use strict";var xM=p(),wM=He(),AM=Ge();xM({target:"String",proto:!0,forced:AM("anchor")},{anchor:function(r){return wM(this,"a","name",r)}})});var Wy=l(()=>{"use strict";var _M=p(),RM=He(),CM=Ge();_M({target:"String",proto:!0,forced:CM("big")},{big:function(){return RM(this,"big","","")}})});var Yy=l(()=>{"use strict";var TM=p(),OM=He(),PM=Ge();TM({target:"String",proto:!0,forced:PM("blink")},{blink:function(){return OM(this,"blink","","")}})});var Xy=l(()=>{"use strict";var LM=p(),NM=He(),MM=Ge();LM({target:"String",proto:!0,forced:MM("bold")},{bold:function(){return NM(this,"b","","")}})});var Qy=l(()=>{"use strict";var DM=p(),UM=He(),jM=Ge();DM({target:"String",proto:!0,forced:jM("fixed")},{fixed:function(){return UM(this,"tt","","")}})});var Zy=l(()=>{"use strict";var kM=p(),FM=He(),BM=Ge();kM({target:"String",proto:!0,forced:BM("fontcolor")},{fontcolor:function(r){return FM(this,"font","color",r)}})});var Jy=l(()=>{"use strict";var $M=p(),VM=He(),HM=Ge();$M({target:"String",proto:!0,forced:HM("fontsize")},{fontsize:function(r){return VM(this,"font","size",r)}})});var e0=l(()=>{"use strict";var GM=p(),KM=He(),zM=Ge();GM({target:"String",proto:!0,forced:zM("italics")},{italics:function(){return KM(this,"i","","")}})});var r0=l(()=>{"use strict";var WM=p(),YM=He(),XM=Ge();WM({target:"String",proto:!0,forced:XM("link")},{link:function(r){return YM(this,"a","href",r)}})});var t0=l(()=>{"use strict";var QM=p(),ZM=He(),JM=Ge();QM({target:"String",proto:!0,forced:JM("small")},{small:function(){return ZM(this,"small","","")}})});var n0=l(()=>{"use strict";var eD=p(),rD=He(),tD=Ge();eD({target:"String",proto:!0,forced:tD("strike")},{strike:function(){return rD(this,"strike","","")}})});var a0=l(()=>{"use strict";var nD=p(),aD=He(),iD=Ge();nD({target:"String",proto:!0,forced:iD("sub")},{sub:function(){return aD(this,"sub","","")}})});var i0=l(()=>{"use strict";var oD=p(),sD=He(),uD=Ge();oD({target:"String",proto:!0,forced:uD("sup")},{sup:function(){return sD(this,"sup","","")}})});var ma=l((Jue,s0)=>{var lD=Q(),o0=it();s0.exports=function(e,r,t){var n,a;return o0&&typeof(n=r.constructor)=="function"&&n!==t&&lD(a=n.prototype)&&a!==t.prototype&&o0(e,a),e}});var d0=l(()=>{var cD=Z(),l0=B(),dD=en(),fD=ma(),vD=re().f,pD=et().f,gD=vn(),hD=Ct(),mD=Ce(),yD=L(),qD=ot(),bD=W(),ED=bD("match"),Sr=l0.RegExp,Gu=Sr.prototype,ya=/a/g,Ku=/a/g,c0=new Sr(ya)!==ya,SD=cD&&dD("RegExp",!c0||yD(function(){return Ku[ED]=!1,Sr(ya)!=ya||Sr(Ku)==Ku||Sr(ya,"i")!="/a/i"}));if(SD){for(Er=function(r,t){var n=this instanceof Er,a=gD(r),i=t===void 0;return!n&&a&&r.constructor===Er&&i?r:fD(c0?new Sr(a&&!i?r.source:r,t):Sr((a=r instanceof Er)?r.source:r,a&&i?hD.call(r):t),n?this:Gu,Er)},u0=function(e){e in Er||vD(Er,e,{configurable:!0,get:function(){return Sr[e]},set:function(r){Sr[e]=r}})},zu=pD(Sr),Wu=0;zu.length>Wu;)u0(zu[Wu++]);Gu.constructor=Er,Er.prototype=Gu,mD(l0,"RegExp",Er)}var Er,u0,zu,Wu;qD("RegExp")});var v0=l(()=>{"use strict";var ID=p(),f0=da();ID({target:"RegExp",proto:!0,forced:/./.exec!==f0},{exec:f0})});var p0=l(()=>{var xD=Z(),wD=re(),AD=Ct();xD&&/./g.flags!="g"&&wD.f(RegExp.prototype,"flags",{configurable:!0,get:AD})});var m0=l(()=>{"use strict";var _D=Ce(),RD=x(),CD=L(),TD=Ct(),Yu="toString",g0=RegExp.prototype,h0=g0[Yu],OD=CD(function(){return h0.call({source:"a",flags:"b"})!="/a/b"}),PD=h0.name!=Yu;(OD||PD)&&_D(RegExp.prototype,Yu,function(){var r=RD(this),t=String(r.source),n=r.flags,a=String(n===void 0&&r instanceof RegExp&&!("flags"in g0)?TD.call(r):n);return"/"+t+"/"+a},{unsafe:!0})});var Xi=l((ule,q0)=>{var LD=B(),ND=Tt().trim,y0=ha(),Yi=LD.parseInt,MD=/^[+-]?0[Xx]/,DD=Yi(y0+"08")!==8||Yi(y0+"0x16")!==22;q0.exports=DD?function(r,t){var n=ND(String(r));return Yi(n,t>>>0||(MD.test(n)?16:10))}:Yi});var E0=l(()=>{var UD=p(),b0=Xi();UD({global:!0,forced:parseInt!=b0},{parseInt:b0})});var Qu=l((dle,S0)=>{var jD=B(),kD=Tt().trim,FD=ha(),Xu=jD.parseFloat,BD=1/Xu(FD+"-0")!==-1/0;S0.exports=BD?function(r){var t=kD(String(r)),n=Xu(t);return n===0&&t.charAt(0)=="-"?-0:n}:Xu});var x0=l(()=>{var $D=p(),I0=Qu();$D({global:!0,forced:parseFloat!=I0},{parseFloat:I0})});var C0=l(()=>{"use strict";var VD=Z(),_0=B(),HD=en(),GD=Ce(),w0=le(),R0=ze(),KD=ma(),zD=Qe(),WD=L(),YD=je(),XD=et().f,QD=Re().f,ZD=re().f,JD=Tt().trim,ba="Number",ut=_0[ba],Zi=ut.prototype,eU=R0(YD(Zi))==ba,A0=function(e){var r=zD(e,!1),t,n,a,i,s,u,o,c;if(typeof r=="string"&&r.length>2){if(r=JD(r),t=r.charCodeAt(0),t===43||t===45){if(n=r.charCodeAt(2),n===88||n===120)return NaN}else if(t===48){switch(r.charCodeAt(1)){case 66:case 98:a=2,i=49;break;case 79:case 111:a=8,i=55;break;default:return+r}for(s=r.slice(2),u=s.length,o=0;o<u;o++)if(c=s.charCodeAt(o),c<48||c>i)return NaN;return parseInt(s,a)}}return+r};if(HD(ba,!ut(" 0o1")||!ut("0b1")||ut("+0x1"))){for(st=function(r){var t=arguments.length<1?0:r,n=this;return n instanceof st&&(eU?WD(function(){Zi.valueOf.call(n)}):R0(n)!=ba)?KD(new ut(A0(t)),n,st):A0(t)},Zu=VD?XD(ut):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Qi=0;Zu.length>Qi;Qi++)w0(ut,qa=Zu[Qi])&&!w0(st,qa)&&ZD(st,qa,QD(ut,qa));st.prototype=Zi,Zi.constructor=st,GD(_0,ba,st)}var st,Zu,Qi,qa});var T0=l(()=>{var rU=p();rU({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})});var Ju=l((yle,O0)=>{var tU=B(),nU=tU.isFinite;O0.exports=Number.isFinite||function(r){return typeof r=="number"&&nU(r)}});var P0=l(()=>{var aU=p(),iU=Ju();aU({target:"Number",stat:!0},{isFinite:iU})});var el=l((Ele,L0)=>{var oU=Q(),sU=Math.floor;L0.exports=function(r){return!oU(r)&&isFinite(r)&&sU(r)===r}});var N0=l(()=>{var uU=p(),lU=el();uU({target:"Number",stat:!0},{isInteger:lU})});var M0=l(()=>{var cU=p();cU({target:"Number",stat:!0},{isNaN:function(r){return r!=r}})});var D0=l(()=>{var dU=p(),fU=el(),vU=Math.abs;dU({target:"Number",stat:!0},{isSafeInteger:function(r){return fU(r)&&vU(r)<=9007199254740991}})});var U0=l(()=>{var pU=p();pU({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})});var j0=l(()=>{var gU=p();gU({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})});var F0=l(()=>{var hU=p(),k0=Qu();hU({target:"Number",stat:!0,forced:Number.parseFloat!=k0},{parseFloat:k0})});var $0=l(()=>{var mU=p(),B0=Xi();mU({target:"Number",stat:!0,forced:Number.parseInt!=B0},{parseInt:B0})});var rl=l((Dle,V0)=>{var yU=ze();V0.exports=function(e){if(typeof e!="number"&&yU(e)!="Number")throw TypeError("Incorrect invocation");return+e}});var K0=l(()=>{"use strict";var qU=p(),bU=Be(),EU=rl(),tl=Gi(),SU=L(),H0=1 .toFixed,G0=Math.floor,gn=function(e,r,t){return r===0?t:r%2===1?gn(e,r-1,t*e):gn(e*e,r/2,t)},IU=function(e){for(var r=0,t=e;t>=4096;)r+=12,t/=4096;for(;t>=2;)r+=1,t/=2;return r},xU=H0&&(8e-5 .toFixed(3)!=="0.000"||.9 .toFixed(0)!=="1"||1.255 .toFixed(2)!=="1.25"||0xde0b6b3a7640080 .toFixed(0)!=="1000000000000000128")||!SU(function(){H0.call({})});qU({target:"Number",proto:!0,forced:xU},{toFixed:function(r){var t=EU(this),n=bU(r),a=[0,0,0,0,0,0],i="",s="0",u,o,c,f,d=function(g,y){for(var m=-1,b=y;++m<6;)b+=g*a[m],a[m]=b%1e7,b=G0(b/1e7)},v=function(g){for(var y=6,m=0;--y>=0;)m+=a[y],a[y]=G0(m/g),m=m%g*1e7},q=function(){for(var g=6,y="";--g>=0;)if(y!==""||g===0||a[g]!==0){var m=String(a[g]);y=y===""?m:y+tl.call("0",7-m.length)+m}return y};if(n<0||n>20)throw RangeError("Incorrect fraction digits");if(t!=t)return"NaN";if(t<=-1e21||t>=1e21)return String(t);if(t<0&&(i="-",t=-t),t>1e-21)if(u=IU(t*gn(2,69,1))-69,o=u<0?t*gn(2,-u,1):t/gn(2,u,1),o*=4503599627370496,u=52-u,u>0){for(d(0,o),c=n;c>=7;)d(1e7,0),c-=7;for(d(gn(10,c,1),0),c=u-1;c>=23;)v(1<<23),c-=23;v(1<<c),d(1,1),v(2),s=q()}else d(0,o),d(1<<-u,0),s=q()+tl.call("0",n);return n>0?(f=s.length,s=i+(f<=n?"0."+tl.call("0",n-f)+s:s.slice(0,f-n)+"."+s.slice(f-n))):s=i+s,s}})});var Y0=l(()=>{"use strict";var wU=p(),z0=L(),W0=rl(),Ji=1 .toPrecision,AU=z0(function(){return Ji.call(1,void 0)!=="1"})||!z0(function(){Ji.call({})});wU({target:"Number",proto:!0,forced:AU},{toPrecision:function(r){return r===void 0?Ji.call(W0(this)):Ji.call(W0(this),r)}})});var nl=l((Ble,X0)=>{var _U=Math.log;X0.exports=Math.log1p||function(r){return(r=+r)>-1e-8&&r<1e-8?r-r*r/2:_U(1+r)}});var Z0=l(()=>{var RU=p(),CU=nl(),al=Math.acosh,TU=Math.log,Q0=Math.sqrt,OU=Math.LN2,PU=!al||Math.floor(al(Number.MAX_VALUE))!=710||al(1/0)!=1/0;RU({target:"Math",stat:!0,forced:PU},{acosh:function(r){return(r=+r)<1?NaN:r>9490626562425156e-8?TU(r)+OU:CU(r-1+Q0(r-1)*Q0(r+1))}})});var r1=l(()=>{var LU=p(),J0=Math.asinh,NU=Math.log,MU=Math.sqrt;function e1(e){return!isFinite(e=+e)||e==0?e:e<0?-e1(-e):NU(e+MU(e*e+1))}LU({target:"Math",stat:!0,forced:!(J0&&1/J0(0)>0)},{asinh:e1})});var n1=l(()=>{var DU=p(),t1=Math.atanh,UU=Math.log;DU({target:"Math",stat:!0,forced:!(t1&&1/t1(-0)<0)},{atanh:function(r){return(r=+r)==0?r:UU((1+r)/(1-r))/2}})});var eo=l((Wle,a1)=>{a1.exports=Math.sign||function(r){return(r=+r)==0||r!=r?r:r<0?-1:1}});var i1=l(()=>{var jU=p(),kU=eo(),FU=Math.abs,BU=Math.pow;jU({target:"Math",stat:!0},{cbrt:function(r){return kU(r=+r)*BU(FU(r),1/3)}})});var o1=l(()=>{var $U=p(),VU=Math.floor,HU=Math.log,GU=Math.LOG2E;$U({target:"Math",stat:!0},{clz32:function(r){return(r>>>=0)?31-VU(HU(r+.5)*GU):32}})});var Sa=l((Jle,s1)=>{var Ea=Math.expm1,KU=Math.exp;s1.exports=!Ea||Ea(10)>22025.465794806718||Ea(10)<22025.465794806718||Ea(-2e-17)!=-2e-17?function(r){return(r=+r)==0?r:r>-1e-6&&r<1e-6?r+r*r/2:KU(r)-1}:Ea});var l1=l(()=>{var zU=p(),WU=Sa(),u1=Math.cosh,YU=Math.abs,il=Math.E;zU({target:"Math",stat:!0,forced:!u1||u1(710)===1/0},{cosh:function(r){var t=WU(YU(r)-1)+1;return(t+1/(t*il*il))*(il/2)}})});var d1=l(()=>{var XU=p(),c1=Sa();XU({target:"Math",stat:!0,forced:c1!=Math.expm1},{expm1:c1})});var ul=l((ace,f1)=>{var QU=eo(),ZU=Math.abs,to=Math.pow,sl=to(2,-52),ro=to(2,-23),JU=to(2,127)*(2-ro),ol=to(2,-126),ej=function(e){return e+1/sl-1/sl};f1.exports=Math.fround||function(r){var t=ZU(r),n=QU(r),a,i;return t<ol?n*ej(t/ol/ro)*ol*ro:(a=(1+ro/sl)*t,i=a-(a-t),i>JU||i!=i?n*(1/0):n*i)}});var v1=l(()=>{var rj=p(),tj=ul();rj({target:"Math",stat:!0},{fround:tj})});var g1=l(()=>{var nj=p(),p1=Math.hypot,aj=Math.abs,ij=Math.sqrt,oj=!!p1&&p1(1/0,NaN)!==1/0;nj({target:"Math",stat:!0,forced:oj},{hypot:function(r,t){for(var n=0,a=0,i=arguments.length,s=0,u,o;a<i;)u=aj(arguments[a++]),s<u?(o=s/u,n=n*o*o+1,s=u):u>0?(o=u/s,n+=o*o):n+=u;return s===1/0?1/0:s*ij(n)}})});var m1=l(()=>{var sj=p(),uj=L(),h1=Math.imul,lj=uj(function(){return h1(4294967295,5)!=-5||h1.length!=2});sj({target:"Math",stat:!0,forced:lj},{imul:function(r,t){var n=65535,a=+r,i=+t,s=n&a,u=n&i;return 0|s*u+((n&a>>>16)*u+s*(n&i>>>16)<<16>>>0)}})});var y1=l(()=>{var cj=p(),dj=Math.log,fj=Math.LOG10E;cj({target:"Math",stat:!0},{log10:function(r){return dj(r)*fj}})});var q1=l(()=>{var vj=p(),pj=nl();vj({target:"Math",stat:!0},{log1p:pj})});var b1=l(()=>{var gj=p(),hj=Math.log,mj=Math.LN2;gj({target:"Math",stat:!0},{log2:function(r){return hj(r)/mj}})});var E1=l(()=>{var yj=p(),qj=eo();yj({target:"Math",stat:!0},{sign:qj})});var x1=l(()=>{var bj=p(),Ej=L(),S1=Sa(),Sj=Math.abs,I1=Math.exp,Ij=Math.E,xj=Ej(function(){return Math.sinh(-2e-17)!=-2e-17});bj({target:"Math",stat:!0,forced:xj},{sinh:function(r){return Sj(r=+r)<1?(S1(r)-S1(-r))/2:(I1(r-1)-I1(-r-1))*(Ij/2)}})});var _1=l(()=>{var wj=p(),w1=Sa(),A1=Math.exp;wj({target:"Math",stat:!0},{tanh:function(r){var t=w1(r=+r),n=w1(-r);return t==1/0?1:n==1/0?-1:(t-n)/(A1(r)+A1(-r))}})});var R1=l(()=>{var Aj=or();Aj(Math,"Math",!0)});var C1=l(()=>{var _j=p(),Rj=Math.ceil,Cj=Math.floor;_j({target:"Math",stat:!0},{trunc:function(r){return(r>0?Cj:Rj)(r)}})});var T1=l(()=>{var Tj=p();Tj({target:"Date",stat:!0},{now:function(){return new Date().getTime()}})});var O1=l(()=>{"use strict";var Oj=p(),Pj=L(),Lj=ne(),Nj=Qe(),Mj=Pj(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1});Oj({target:"Date",proto:!0,forced:Mj},{toJSON:function(r){var t=Lj(this),n=Nj(t);return typeof n=="number"&&!isFinite(n)?null:t.toISOString()}})});var M1=l((Oce,N1)=>{"use strict";var P1=L(),Ot=Ki().start,Dj=Math.abs,L1=Date.prototype,Uj=L1.getTime,ll=L1.toISOString;N1.exports=P1(function(){return ll.call(new Date(-5e13-1))!="0385-07-25T07:06:39.999Z"})||!P1(function(){ll.call(new Date(NaN))})?function(){if(!isFinite(Uj.call(this)))throw RangeError("Invalid time value");var r=this,t=r.getUTCFullYear(),n=r.getUTCMilliseconds(),a=t<0?"-":t>9999?"+":"";return a+Ot(Dj(t),a?6:4,0)+"-"+Ot(r.getUTCMonth()+1,2,0)+"-"+Ot(r.getUTCDate(),2,0)+"T"+Ot(r.getUTCHours(),2,0)+":"+Ot(r.getUTCMinutes(),2,0)+":"+Ot(r.getUTCSeconds(),2,0)+"."+Ot(n,3,0)+"Z"}:ll});var U1=l(()=>{var jj=p(),D1=M1();jj({target:"Date",proto:!0,forced:Date.prototype.toISOString!==D1},{toISOString:D1})});var F1=l(()=>{var kj=Ce(),cl=Date.prototype,j1="Invalid Date",k1="toString",Fj=cl[k1],Bj=cl.getTime;new Date(NaN)+""!=j1&&kj(cl,k1,function(){var r=Bj.call(this);return r===r?Fj.call(this):j1})});var $1=l((Dce,B1)=>{"use strict";var $j=x(),Vj=Qe();B1.exports=function(e){if(e!=="string"&&e!=="number"&&e!=="default")throw TypeError("Incorrect hint");return Vj($j(this),e!=="number")}});var G1=l(()=>{var Hj=de(),Gj=$1(),Kj=W(),V1=Kj("toPrimitive"),H1=Date.prototype;V1 in H1||Hj(H1,V1,Gj)});var W1=l(()=>{var zj=p(),Wj=te(),Yj=L(),no=Wj("JSON","stringify"),Xj=/[\uD800-\uDFFF]/g,K1=/^[\uD800-\uDBFF]$/,z1=/^[\uDC00-\uDFFF]$/,Qj=function(e,r,t){var n=t.charAt(r-1),a=t.charAt(r+1);return K1.test(e)&&!z1.test(a)||z1.test(e)&&!K1.test(n)?"\\u"+e.charCodeAt(0).toString(16):e},Zj=Yj(function(){return no("\uDF06\uD834")!=='"\\udf06\\ud834"'||no("\uDEAD")!=='"\\udead"'});no&&zj({target:"JSON",stat:!0,forced:Zj},{stringify:function(r,t,n){var a=no.apply(null,arguments);return typeof a=="string"?a.replace(Xj,Qj):a}})});var Y1=l(()=>{var Jj=B(),ek=or();ek(Jj.JSON,"JSON",!0)});var dl=l((Vce,X1)=>{var rk=B();X1.exports=rk.Promise});var Ir=l((Hce,Q1)=>{var tk=Ce();Q1.exports=function(e,r,t){for(var n in r)tk(e,n,r[n],t);return e}});var Je=l((Gce,Z1)=>{Z1.exports=function(e,r,t){if(!(e instanceof r))throw TypeError("Incorrect "+(t?t+" ":"")+"invocation");return e}});var fl=l((Kce,J1)=>{var nk=sa();J1.exports=/(iphone|ipod|ipad).*applewebkit/i.test(nk)});var ao=l((zce,uq)=>{var xr=B(),ak=L(),ik=ze(),ok=pe(),eq=Os(),rq=di(),sk=fl(),tq=xr.location,yl=xr.setImmediate,ql=xr.clearImmediate,nq=xr.process,aq=xr.MessageChannel,vl=xr.Dispatch,pl=0,Ia={},iq="onreadystatechange",Pt,gl,hl,bl=function(e){if(Ia.hasOwnProperty(e)){var r=Ia[e];delete Ia[e],r()}},ml=function(e){return function(){bl(e)}},oq=function(e){bl(e.data)},sq=function(e){xr.postMessage(e+"",tq.protocol+"//"+tq.host)};(!yl||!ql)&&(yl=function(r){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return Ia[++pl]=function(){(typeof r=="function"?r:Function(r)).apply(void 0,t)},Pt(pl),pl},ql=function(r){delete Ia[r]},ik(nq)=="process"?Pt=function(e){nq.nextTick(ml(e))}:vl&&vl.now?Pt=function(e){vl.now(ml(e))}:aq&&!sk?(gl=new aq,hl=gl.port2,gl.port1.onmessage=oq,Pt=ok(hl.postMessage,hl,1)):xr.addEventListener&&typeof postMessage=="function"&&!xr.importScripts&&!ak(sq)?(Pt=sq,xr.addEventListener("message",oq,!1)):iq in rq("script")?Pt=function(e){eq.appendChild(rq("script"))[iq]=function(){eq.removeChild(this),bl(e)}}:Pt=function(e){setTimeout(ml(e),0)});uq.exports={set:yl,clear:ql}});var Al=l((Wce,pq)=>{var mn=B(),uk=Re().f,lk=ze(),ck=ao().set,dk=fl(),lq=mn.MutationObserver||mn.WebKitMutationObserver,wl=mn.process,El=mn.Promise,cq=lk(wl)=="process",dq=uk(mn,"queueMicrotask"),vq=dq&&dq.value,xa,Lt,wa,hn,Sl,Il,xl,fq;vq||(xa=function(){var e,r;for(cq&&(e=wl.domain)&&e.exit();Lt;){r=Lt.fn,Lt=Lt.next;try{r()}catch(t){throw Lt?hn():wa=void 0,t}}wa=void 0,e&&e.enter()},cq?hn=function(){wl.nextTick(xa)}:lq&&!dk?(Sl=!0,Il=document.createTextNode(""),new lq(xa).observe(Il,{characterData:!0}),hn=function(){Il.data=Sl=!Sl}):El&&El.resolve?(xl=El.resolve(void 0),fq=xl.then,hn=function(){fq.call(xl,xa)}):hn=function(){ck.call(mn,xa)});pq.exports=vq||function(e){var r={fn:e,next:void 0};wa&&(wa.next=r),Lt||(Lt=r,hn()),wa=r}});var yn=l((Yce,hq)=>{"use strict";var gq=j(),fk=function(e){var r,t;this.promise=new e(function(n,a){if(r!==void 0||t!==void 0)throw TypeError("Bad Promise constructor");r=n,t=a}),this.resolve=gq(r),this.reject=gq(t)};hq.exports.f=function(e){return new fk(e)}});var _l=l((Xce,mq)=>{var vk=x(),pk=Q(),gk=yn();mq.exports=function(e,r){if(vk(e),pk(r)&&r.constructor===e)return r;var t=gk.f(e),n=t.resolve;return n(r),t.promise}});var Rl=l((Qce,yq)=>{var hk=B();yq.exports=function(e,r){var t=hk.console;t&&t.error&&(arguments.length===1?t.error(e):t.error(e,r))}});var Aa=l((Zce,qq)=>{qq.exports=function(e){try{return{error:!1,value:e()}}catch(r){return{error:!0,value:r}}}});var kq=l(()=>{"use strict";var Ra=p(),so=k(),Gr=B(),Rq=te(),oo=dl(),mk=Ce(),yk=Ir(),qk=or(),bk=ot(),Ek=Q(),Cl=j(),Sk=Je(),Ik=ze(),xk=pi(),bq=$(),wk=oa(),Ak=Ee(),Cq=ao().set,Tq=Al(),Oq=_l(),_k=Rl(),Pq=yn(),Tl=Aa(),Ll=ge(),Rk=en(),Ck=W(),Eq=Ni(),Tk=Ck("species"),wr="Promise",Sq=Ll.get,Ok=Ll.set,Pk=Ll.getterFor(wr),Le=oo,Lq=Gr.TypeError,Ol=Gr.document,uo=Gr.process,Iq=Rq("fetch"),En=Pq.f,Lk=En,_a=Ik(uo)=="process",Nk=!!(Ol&&Ol.createEvent&&Gr.dispatchEvent),Nq="unhandledrejection",Mk="rejectionhandled",xq=0,Mq=1,Dk=2,Nl=1,Dq=2,io,wq,Ml,Aq,Ca=Rk(wr,function(){var e=xk(Le)!==String(Le);if(!e&&(Eq===66||!_a&&typeof PromiseRejectionEvent!="function")||so&&!Le.prototype.finally)return!0;if(Eq>=51&&/native code/.test(Le))return!1;var r=Le.resolve(1),t=function(a){a(function(){},function(){})},n=r.constructor={};return n[Tk]=t,!(r.then(function(){})instanceof t)}),Uk=Ca||!wk(function(e){Le.all(e).catch(function(){})}),Uq=function(e){var r;return Ek(e)&&typeof(r=e.then)=="function"?r:!1},Dl=function(e,r,t){if(!r.notified){r.notified=!0;var n=r.reactions;Tq(function(){for(var a=r.value,i=r.state==Mq,s=0;n.length>s;){var u=n[s++],o=i?u.ok:u.fail,c=u.resolve,f=u.reject,d=u.domain,v,q,g;try{o?(i||(r.rejection===Dq&&kk(e,r),r.rejection=Nl),o===!0?v=a:(d&&d.enter(),v=o(a),d&&(d.exit(),g=!0)),v===u.promise?f(Lq("Promise-chain cycle")):(q=Uq(v))?q.call(v,c,f):c(v)):f(a)}catch(y){d&&!g&&d.exit(),f(y)}}r.reactions=[],r.notified=!1,t&&!r.rejection&&jk(e,r)})}},jq=function(e,r,t){var n,a;Nk?(n=Ol.createEvent("Event"),n.promise=r,n.reason=t,n.initEvent(e,!1,!0),Gr.dispatchEvent(n)):n={promise:r,reason:t},(a=Gr["on"+e])?a(n):e===Nq&&_k("Unhandled promise rejection",t)},jk=function(e,r){Cq.call(Gr,function(){var t=r.value,n=_q(r),a;if(n&&(a=Tl(function(){_a?uo.emit("unhandledRejection",t,e):jq(Nq,e,t)}),r.rejection=_a||_q(r)?Dq:Nl,a.error))throw a.value})},_q=function(e){return e.rejection!==Nl&&!e.parent},kk=function(e,r){Cq.call(Gr,function(){_a?uo.emit("rejectionHandled",e):jq(Mk,e,r.value)})},qn=function(e,r,t,n){return function(a){e(r,t,a,n)}},bn=function(e,r,t,n){r.done||(r.done=!0,n&&(r=n),r.value=t,r.state=Dk,Dl(e,r,!0))},Pl=function(e,r,t,n){if(!r.done){r.done=!0,n&&(r=n);try{if(e===t)throw Lq("Promise can't be resolved itself");var a=Uq(t);a?Tq(function(){var i={done:!1};try{a.call(t,qn(Pl,e,i,r),qn(bn,e,i,r))}catch(s){bn(e,i,s,r)}}):(r.value=t,r.state=Mq,Dl(e,r,!1))}catch(i){bn(e,{done:!1},i,r)}}};Ca&&(Le=function(r){Sk(this,Le,wr),Cl(r),io.call(this);var t=Sq(this);try{r(qn(Pl,this,t),qn(bn,this,t))}catch(n){bn(this,t,n)}},io=function(r){Ok(this,{type:wr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:xq,value:void 0})},io.prototype=yk(Le.prototype,{then:function(r,t){var n=Pk(this),a=En(Ak(this,Le));return a.ok=typeof r=="function"?r:!0,a.fail=typeof t=="function"&&t,a.domain=_a?uo.domain:void 0,n.parent=!0,n.reactions.push(a),n.state!=xq&&Dl(this,n,!1),a.promise},catch:function(e){return this.then(void 0,e)}}),wq=function(){var e=new io,r=Sq(e);this.promise=e,this.resolve=qn(Pl,e,r),this.reject=qn(bn,e,r)},Pq.f=En=function(e){return e===Le||e===Ml?new wq(e):Lk(e)},!so&&typeof oo=="function"&&(Aq=oo.prototype.then,mk(oo.prototype,"then",function(r,t){var n=this;return new Le(function(a,i){Aq.call(n,a,i)}).then(r,t)},{unsafe:!0}),typeof Iq=="function"&&Ra({global:!0,enumerable:!0,forced:!0},{fetch:function(r){return Oq(Le,Iq.apply(Gr,arguments))}})));Ra({global:!0,wrap:!0,forced:Ca},{Promise:Le});qk(Le,wr,!1,!0);bk(wr);Ml=Rq(wr);Ra({target:wr,stat:!0,forced:Ca},{reject:function(r){var t=En(this);return t.reject.call(void 0,r),t.promise}});Ra({target:wr,stat:!0,forced:so||Ca},{resolve:function(r){return Oq(so&&this===Ml?Le:this,r)}});Ra({target:wr,stat:!0,forced:Uk},{all:function(r){var t=this,n=En(t),a=n.resolve,i=n.reject,s=Tl(function(){var u=Cl(t.resolve),o=[],c=0,f=1;bq(r,function(d){var v=c++,q=!1;o.push(void 0),f++,u.call(t,d).then(function(g){q||(q=!0,o[v]=g,--f||a(o))},i)}),--f||a(o)});return s.error&&i(s.value),n.promise},race:function(r){var t=this,n=En(t),a=n.reject,i=Tl(function(){var s=Cl(t.resolve);bq(r,function(u){s.call(t,u).then(n.resolve,a)})});return i.error&&a(i.value),n.promise}})});var Ul=l(()=>{"use strict";var Fk=p(),Bk=j(),$k=yn(),Vk=Aa(),Hk=$();Fk({target:"Promise",stat:!0},{allSettled:function(r){var t=this,n=$k.f(t),a=n.resolve,i=n.reject,s=Vk(function(){var u=Bk(t.resolve),o=[],c=0,f=1;Hk(r,function(d){var v=c++,q=!1;o.push(void 0),f++,u.call(t,d).then(function(g){q||(q=!0,o[v]={status:"fulfilled",value:g},--f||a(o))},function(g){q||(q=!0,o[v]={status:"rejected",reason:g},--f||a(o))})}),--f||a(o)});return s.error&&i(s.value),n.promise}})});var $q=l(()=>{"use strict";var Gk=p(),Kk=k(),Ta=dl(),zk=L(),Bq=te(),Wk=Ee(),Fq=_l(),Yk=Ce(),Xk=!!Ta&&zk(function(){Ta.prototype.finally.call({then:function(){}},function(){})});Gk({target:"Promise",proto:!0,real:!0,forced:Xk},{finally:function(e){var r=Wk(this,Bq("Promise")),t=typeof e=="function";return this.then(t?function(n){return Fq(r,e()).then(function(){return n})}:e,t?function(n){return Fq(r,e()).then(function(){throw n})}:e)}});!Kk&&typeof Ta=="function"&&!Ta.prototype.finally&&Yk(Ta.prototype,"finally",Bq("Promise").prototype.finally)});var Oa=l((ide,Hq)=>{"use strict";var Qk=p(),Zk=B(),Vq=en(),Jk=Ce(),eF=nt(),rF=$(),tF=Je(),jl=Q(),kl=L(),nF=oa(),aF=or(),iF=ma();Hq.exports=function(e,r,t){var n=e.indexOf("Map")!==-1,a=e.indexOf("Weak")!==-1,i=n?"set":"add",s=Zk[e],u=s&&s.prototype,o=s,c={},f=function(m){var b=u[m];Jk(u,m,m=="add"?function(E){return b.call(this,E===0?0:E),this}:m=="delete"?function(_){return a&&!jl(_)?!1:b.call(this,_===0?0:_)}:m=="get"?function(E){return a&&!jl(E)?void 0:b.call(this,E===0?0:E)}:m=="has"?function(E){return a&&!jl(E)?!1:b.call(this,E===0?0:E)}:function(E,w){return b.call(this,E===0?0:E,w),this})};if(Vq(e,typeof s!="function"||!(a||u.forEach&&!kl(function(){new s().entries().next()}))))o=t.getConstructor(r,e,n,i),eF.REQUIRED=!0;else if(Vq(e,!0)){var d=new o,v=d[i](a?{}:-0,1)!=d,q=kl(function(){d.has(1)}),g=nF(function(m){new s(m)}),y=!a&&kl(function(){for(var m=new s,b=5;b--;)m[i](b,b);return!m.has(-0)});g||(o=r(function(m,b){tF(m,o,e);var _=iF(new s,m,o);return b!=null&&rF(b,_[i],_,n),_}),o.prototype=u,u.constructor=o),(q||y)&&(f("delete"),f("has"),n&&f("get")),(y||v)&&f(i),a&&u.clear&&delete u.clear}return c[e]=o,Qk({global:!0,forced:o!=s},c),aF(o,e),a||t.setStrong(o,e,n),o}});var Bl=l((ode,Yq)=>{"use strict";var oF=re().f,sF=je(),Gq=Ir(),uF=pe(),lF=Je(),cF=$(),dF=ki(),fF=ot(),Pa=Z(),Kq=nt().fastKey,Wq=ge(),zq=Wq.set,Fl=Wq.getterFor;Yq.exports={getConstructor:function(e,r,t,n){var a=e(function(o,c){lF(o,a,r),zq(o,{type:r,index:sF(null),first:void 0,last:void 0,size:0}),Pa||(o.size=0),c!=null&&cF(c,o[n],o,t)}),i=Fl(r),s=function(o,c,f){var d=i(o),v=u(o,c),q,g;return v?v.value=f:(d.last=v={index:g=Kq(c,!0),key:c,value:f,previous:q=d.last,next:void 0,removed:!1},d.first||(d.first=v),q&&(q.next=v),Pa?d.size++:o.size++,g!=="F"&&(d.index[g]=v)),o},u=function(o,c){var f=i(o),d=Kq(c),v;if(d!=="F")return f.index[d];for(v=f.first;v;v=v.next)if(v.key==c)return v};return Gq(a.prototype,{clear:function(){for(var c=this,f=i(c),d=f.index,v=f.first;v;)v.removed=!0,v.previous&&(v.previous=v.previous.next=void 0),delete d[v.index],v=v.next;f.first=f.last=void 0,Pa?f.size=0:c.size=0},delete:function(o){var c=this,f=i(c),d=u(c,o);if(d){var v=d.next,q=d.previous;delete f.index[d.index],d.removed=!0,q&&(q.next=v),v&&(v.previous=q),f.first==d&&(f.first=v),f.last==d&&(f.last=q),Pa?f.size--:c.size--}return!!d},forEach:function(c){for(var f=i(this),d=uF(c,arguments.length>1?arguments[1]:void 0,3),v;v=v?v.next:f.first;)for(d(v.value,v.key,this);v&&v.removed;)v=v.previous},has:function(c){return!!u(this,c)}}),Gq(a.prototype,t?{get:function(c){var f=u(this,c);return f&&f.value},set:function(c,f){return s(this,c===0?0:c,f)}}:{add:function(c){return s(this,c=c===0?0:c,c)}}),Pa&&oF(a.prototype,"size",{get:function(){return i(this).size}}),a},setStrong:function(e,r,t){var n=r+" Iterator",a=Fl(r),i=Fl(n);dF(e,r,function(s,u){zq(this,{type:n,target:s,state:a(s),kind:u,last:void 0})},function(){for(var s=i(this),u=s.kind,o=s.last;o&&o.removed;)o=o.previous;return!s.target||!(s.last=o=o?o.next:s.state.first)?(s.target=void 0,{value:void 0,done:!0}):u=="keys"?{value:o.key,done:!1}:u=="values"?{value:o.value,done:!1}:{value:[o.key,o.value],done:!1}},t?"entries":"values",!t,!0),fF(r)}}});var lo=l((sde,Xq)=>{"use strict";var vF=Oa(),pF=Bl();Xq.exports=vF("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},pF)});var $l=l((ude,Qq)=>{"use strict";var gF=Oa(),hF=Bl();Qq.exports=gF("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},hF)});var Gl=l((lde,nb)=>{"use strict";var Zq=Ir(),co=nt().getWeakData,mF=x(),Vl=Q(),yF=Je(),qF=$(),eb=xe(),Jq=le(),rb=ge(),bF=rb.set,EF=rb.getterFor,SF=eb.find,IF=eb.findIndex,xF=0,fo=function(e){return e.frozen||(e.frozen=new tb)},tb=function(){this.entries=[]},Hl=function(e,r){return SF(e.entries,function(t){return t[0]===r})};tb.prototype={get:function(e){var r=Hl(this,e);if(r)return r[1]},has:function(e){return!!Hl(this,e)},set:function(e,r){var t=Hl(this,e);t?t[1]=r:this.entries.push([e,r])},delete:function(e){var r=IF(this.entries,function(t){return t[0]===e});return~r&&this.entries.splice(r,1),!!~r}};nb.exports={getConstructor:function(e,r,t,n){var a=e(function(u,o){yF(u,a,r),bF(u,{type:r,id:xF++,frozen:void 0}),o!=null&&qF(o,u[n],u,t)}),i=EF(r),s=function(u,o,c){var f=i(u),d=co(mF(o),!0);return d===!0?fo(f).set(o,c):d[f.id]=c,u};return Zq(a.prototype,{delete:function(u){var o=i(this);if(!Vl(u))return!1;var c=co(u);return c===!0?fo(o).delete(u):c&&Jq(c,o.id)&&delete c[o.id]},has:function(o){var c=i(this);if(!Vl(o))return!1;var f=co(o);return f===!0?fo(c).has(o):f&&Jq(f,c.id)}}),Zq(a.prototype,t?{get:function(o){var c=i(this);if(Vl(o)){var f=co(o);return f===!0?fo(c).get(o):f?f[c.id]:void 0}},set:function(o,c){return s(this,o,c)}}:{add:function(o){return s(this,o,!0)}}),a}}});var ho=l((cde,sb)=>{"use strict";var ab=B(),wF=Ir(),AF=nt(),_F=Oa(),ib=Gl(),vo=Q(),po=ge().enforce,RF=Is(),CF=!ab.ActiveXObject&&"ActiveXObject"in ab,go=Object.isExtensible,La,ob=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},TF=sb.exports=_F("WeakMap",ob,ib);RF&&CF&&(La=ib.getConstructor(ob,"WeakMap",!0),AF.REQUIRED=!0,Sn=TF.prototype,Kl=Sn.delete,Na=Sn.has,zl=Sn.get,Wl=Sn.set,wF(Sn,{delete:function(e){if(vo(e)&&!go(e)){var r=po(this);return r.frozen||(r.frozen=new La),Kl.call(this,e)||r.frozen.delete(e)}return Kl.call(this,e)},has:function(r){if(vo(r)&&!go(r)){var t=po(this);return t.frozen||(t.frozen=new La),Na.call(this,r)||t.frozen.has(r)}return Na.call(this,r)},get:function(r){if(vo(r)&&!go(r)){var t=po(this);return t.frozen||(t.frozen=new La),Na.call(this,r)?zl.call(this,r):t.frozen.get(r)}return zl.call(this,r)},set:function(r,t){if(vo(r)&&!go(r)){var n=po(this);n.frozen||(n.frozen=new La),Na.call(this,r)?Wl.call(this,r,t):n.frozen.set(r,t)}else Wl.call(this,r,t);return this}}));var Sn,Kl,Na,zl,Wl});var ub=l(()=>{"use strict";var OF=Oa(),PF=Gl();OF("WeakSet",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},PF)});var ee=l((vde,mb)=>{"use strict";var Jl=Z(),Ne=B(),pb=Q(),In=le(),ec=ln(),LF=de(),Yl=Ce(),NF=re().f,yo=Pe(),lt=it(),MF=W(),DF=Xt(),Xl=Ne.DataView,lb=Xl&&Xl.prototype,Ma=Ne.Int8Array,Ql=Ma&&Ma.prototype,cb=Ne.Uint8ClampedArray,db=cb&&cb.prototype,Kr=Ma&&yo(Ma),ur=Ql&&yo(Ql),mo=Object.prototype,fb=mo.isPrototypeOf,vb=MF("toStringTag"),Zl=DF("TYPED_ARRAY_TAG"),rc=!!(Ne.ArrayBuffer&&Xl),zr=rc&&!!lt&&ec(Ne.opera)!=="Opera",gb=!1,We,lr={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},UF=function(r){var t=ec(r);return t==="DataView"||In(lr,t)},hb=function(e){return pb(e)&&In(lr,ec(e))},jF=function(e){if(hb(e))return e;throw TypeError("Target is not a typed array")},kF=function(e){if(lt){if(fb.call(Kr,e))return e}else for(var r in lr)if(In(lr,We)){var t=Ne[r];if(t&&(e===t||fb.call(t,e)))return e}throw TypeError("Target is not a typed array constructor")},FF=function(e,r,t){if(!!Jl){if(t)for(var n in lr){var a=Ne[n];a&&In(a.prototype,e)&&delete a.prototype[e]}(!ur[e]||t)&&Yl(ur,e,t?r:zr&&Ql[e]||r)}},BF=function(e,r,t){var n,a;if(!!Jl){if(lt){if(t)for(n in lr)a=Ne[n],a&&In(a,e)&&delete a[e];if(!Kr[e]||t)try{return Yl(Kr,e,t?r:zr&&Ma[e]||r)}catch(i){}else return}for(n in lr)a=Ne[n],a&&(!a[e]||t)&&Yl(a,e,r)}};for(We in lr)Ne[We]||(zr=!1);if((!zr||typeof Kr!="function"||Kr===Function.prototype)&&(Kr=function(){throw TypeError("Incorrect invocation")},zr))for(We in lr)Ne[We]&<(Ne[We],Kr);if((!zr||!ur||ur===mo)&&(ur=Kr.prototype,zr))for(We in lr)Ne[We]&<(Ne[We].prototype,ur);zr&&yo(db)!==ur&<(db,ur);if(Jl&&!In(ur,vb)){gb=!0,NF(ur,vb,{get:function(){return pb(this)?this[Zl]:void 0}});for(We in lr)Ne[We]&&LF(Ne[We],Zl,We)}rc&<&&yo(lb)!==mo&<(lb,mo);mb.exports={NATIVE_ARRAY_BUFFER:rc,NATIVE_ARRAY_BUFFER_VIEWS:zr,TYPED_ARRAY_TAG:gb&&Zl,aTypedArray:jF,aTypedArrayConstructor:kF,exportTypedArrayMethod:FF,exportTypedArrayStaticMethod:BF,isView:UF,isTypedArray:hb,TypedArray:Kr,TypedArrayPrototype:ur}});var tc=l((pde,yb)=>{var $F=Be(),VF=J();yb.exports=function(e){if(e===void 0)return 0;var r=$F(e),t=VF(r);if(r!==t)throw RangeError("Wrong length or index");return t}});var bb=l((gde,qb)=>{var nc=1/0,HF=Math.abs,Wr=Math.pow,GF=Math.floor,KF=Math.log,zF=Math.LN2,WF=function(e,r,t){var n=new Array(t),a=t*8-r-1,i=(1<<a)-1,s=i>>1,u=r===23?Wr(2,-24)-Wr(2,-77):0,o=e<0||e===0&&1/e<0?1:0,c=0,f,d,v;for(e=HF(e),e!=e||e===nc?(d=e!=e?1:0,f=i):(f=GF(KF(e)/zF),e*(v=Wr(2,-f))<1&&(f--,v*=2),f+s>=1?e+=u/v:e+=u*Wr(2,1-s),e*v>=2&&(f++,v/=2),f+s>=i?(d=0,f=i):f+s>=1?(d=(e*v-1)*Wr(2,r),f=f+s):(d=e*Wr(2,s-1)*Wr(2,r),f=0));r>=8;n[c++]=d&255,d/=256,r-=8);for(f=f<<r|d,a+=r;a>0;n[c++]=f&255,f/=256,a-=8);return n[--c]|=o*128,n},YF=function(e,r){var t=e.length,n=t*8-r-1,a=(1<<n)-1,i=a>>1,s=n-7,u=t-1,o=e[u--],c=o&127,f;for(o>>=7;s>0;c=c*256+e[u],u--,s-=8);for(f=c&(1<<-s)-1,c>>=-s,s+=r;s>0;f=f*256+e[u],u--,s-=8);if(c===0)c=1-i;else{if(c===a)return f?NaN:o?-nc:nc;f=f+Wr(2,r),c=c-i}return(o?-1:1)*f*Wr(2,c-r)};qb.exports={pack:WF,unpack:YF}});var Ua=l((hde,Nb)=>{"use strict";var lc=B(),ac=Z(),XF=ee().NATIVE_ARRAY_BUFFER,QF=de(),Eb=Ir(),ic=L(),qo=Je(),ZF=Be(),JF=J(),So=tc(),Cb=bb(),eB=et().f,rB=re().f,tB=Mi(),Tb=or(),Ob=ge(),wn=Ob.get,Sb=Ob.set,Io="ArrayBuffer",xo="DataView",xn="prototype",nB="Wrong length",Pb="Wrong index",cr=lc[Io],Ye=cr,dr=lc[xo],wo=lc.RangeError,Lb=Cb.pack,Ib=Cb.unpack,xb=function(e){return[e&255]},wb=function(e){return[e&255,e>>8&255]},Ab=function(e){return[e&255,e>>8&255,e>>16&255,e>>24&255]},_b=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},aB=function(e){return Lb(e,23,4)},iB=function(e){return Lb(e,52,8)},bo=function(e,r){rB(e[xn],r,{get:function(){return wn(this)[r]}})},ct=function(e,r,t,n){var a=So(t),i=wn(e);if(a+r>i.byteLength)throw wo(Pb);var s=wn(i.buffer).bytes,u=a+i.byteOffset,o=s.slice(u,u+r);return n?o:o.reverse()},dt=function(e,r,t,n,a,i){var s=So(t),u=wn(e);if(s+r>u.byteLength)throw wo(Pb);for(var o=wn(u.buffer).bytes,c=s+u.byteOffset,f=n(+a),d=0;d<r;d++)o[c+d]=f[i?d:r-d-1]};if(!XF)Ye=function(r){qo(this,Ye,Io);var t=So(r);Sb(this,{bytes:tB.call(new Array(t),0),byteLength:t}),ac||(this.byteLength=t)},dr=function(r,t,n){qo(this,dr,xo),qo(r,Ye,xo);var a=wn(r).byteLength,i=ZF(t);if(i<0||i>a)throw wo("Wrong offset");if(n=n===void 0?a-i:JF(n),i+n>a)throw wo(nB);Sb(this,{buffer:r,byteLength:n,byteOffset:i}),ac||(this.buffer=r,this.byteLength=n,this.byteOffset=i)},ac&&(bo(Ye,"byteLength"),bo(dr,"buffer"),bo(dr,"byteLength"),bo(dr,"byteOffset")),Eb(dr[xn],{getInt8:function(r){return ct(this,1,r)[0]<<24>>24},getUint8:function(r){return ct(this,1,r)[0]},getInt16:function(r){var t=ct(this,2,r,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(r){var t=ct(this,2,r,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(r){return _b(ct(this,4,r,arguments.length>1?arguments[1]:void 0))},getUint32:function(r){return _b(ct(this,4,r,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(r){return Ib(ct(this,4,r,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(r){return Ib(ct(this,8,r,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(r,t){dt(this,1,r,xb,t)},setUint8:function(r,t){dt(this,1,r,xb,t)},setInt16:function(r,t){dt(this,2,r,wb,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(r,t){dt(this,2,r,wb,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(r,t){dt(this,4,r,Ab,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(r,t){dt(this,4,r,Ab,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(r,t){dt(this,4,r,aB,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(r,t){dt(this,8,r,iB,t,arguments.length>2?arguments[2]:void 0)}});else{if(!ic(function(){cr(1)})||!ic(function(){new cr(-1)})||ic(function(){return new cr,new cr(1.5),new cr(NaN),cr.name!=Io})){for(Ye=function(r){return qo(this,Ye),new cr(So(r))},Rb=Ye[xn]=cr[xn],oc=eB(cr),sc=0;oc.length>sc;)(Eo=oc[sc++])in Ye||QF(Ye,Eo,cr[Eo]);Rb.constructor=Ye}Da=new dr(new Ye(2)),uc=dr[xn].setInt8,Da.setInt8(0,2147483648),Da.setInt8(1,2147483649),(Da.getInt8(0)||!Da.getInt8(1))&&Eb(dr[xn],{setInt8:function(r,t){uc.call(this,r,t<<24>>24)},setUint8:function(r,t){uc.call(this,r,t<<24>>24)}},{unsafe:!0})}var Rb,oc,sc,Eo,Da,uc;Tb(Ye,Io);Tb(dr,xo);Nb.exports={ArrayBuffer:Ye,DataView:dr}});var Db=l(()=>{"use strict";var oB=p(),sB=B(),uB=Ua(),lB=ot(),cc="ArrayBuffer",Mb=uB[cc],cB=sB[cc];oB({global:!0,forced:cB!==Mb},{ArrayBuffer:Mb});lB(cc)});var jb=l(()=>{var dB=p(),Ub=ee(),fB=Ub.NATIVE_ARRAY_BUFFER_VIEWS;dB({target:"ArrayBuffer",stat:!0,forced:!fB},{isView:Ub.isView})});var Hb=l(()=>{"use strict";var vB=p(),pB=L(),Vb=Ua(),kb=x(),Fb=jr(),gB=J(),hB=Ee(),dc=Vb.ArrayBuffer,Bb=Vb.DataView,$b=dc.prototype.slice,mB=pB(function(){return!new dc(2).slice(1,void 0).byteLength});vB({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:mB},{slice:function(r,t){if($b!==void 0&&t===void 0)return $b.call(kb(this),r);for(var n=kb(this).byteLength,a=Fb(r,n),i=Fb(t===void 0?n:t,n),s=new(hB(this,dc))(gB(i-a)),u=new Bb(this),o=new Bb(s),c=0;a<i;)o.setUint8(c++,u.getUint8(a++));return s}})});var Gb=l(()=>{var yB=p(),qB=Ua(),bB=ee().NATIVE_ARRAY_BUFFER;yB({global:!0,forced:!bB},{DataView:qB.DataView})});var Ao=l((wde,zb)=>{var Kb=B(),fc=L(),EB=oa(),SB=ee().NATIVE_ARRAY_BUFFER_VIEWS,IB=Kb.ArrayBuffer,Nt=Kb.Int8Array;zb.exports=!SB||!fc(function(){Nt(1)})||!fc(function(){new Nt(-1)})||!EB(function(e){new Nt,new Nt(null),new Nt(1.5),new Nt(e)},!0)||fc(function(){return new Nt(new IB(2),1,void 0).length!==1})});var An=l((Ade,Wb)=>{var xB=Be();Wb.exports=function(e){var r=xB(e);if(r<0)throw RangeError("The argument can't be less than 0");return r}});var vc=l((_de,Yb)=>{var wB=An();Yb.exports=function(e,r){var t=wB(e);if(t%r)throw RangeError("Wrong offset");return t}});var pc=l((Rde,Xb)=>{var AB=ne(),_B=J(),RB=Vr(),CB=Ci(),TB=pe(),OB=ee().aTypedArrayConstructor;Xb.exports=function(r){var t=AB(r),n=arguments.length,a=n>1?arguments[1]:void 0,i=a!==void 0,s=RB(t),u,o,c,f,d,v;if(s!=null&&!CB(s))for(d=s.call(t),v=d.next,t=[];!(f=v.call(d)).done;)t.push(f.value);for(i&&n>2&&(a=TB(a,arguments[2],2)),o=_B(t.length),c=new(OB(this))(o),u=0;o>u;u++)c[u]=i?a(t[u],u):t[u];return c}});var Ar=l((Cde,Ec)=>{"use strict";var Qb=p(),sE=B(),PB=Z(),LB=Ao(),_n=ee(),uE=Ua(),Zb=Je(),NB=qr(),ja=de(),MB=J(),Jb=tc(),gc=vc(),lE=Qe(),ka=le(),DB=ln(),yc=Q(),UB=je(),_o=it(),jB=et().f,eE=pc(),kB=xe().forEach,FB=ot(),cE=re(),dE=Re(),fE=ge(),BB=ma(),qc=fE.get,$B=fE.set,Sc=cE.f,VB=dE.f,HB=Math.round,hc=sE.RangeError,vE=uE.ArrayBuffer,GB=uE.DataView,Ro=_n.NATIVE_ARRAY_BUFFER_VIEWS,rE=_n.TYPED_ARRAY_TAG,tE=_n.TypedArray,Fa=_n.TypedArrayPrototype,KB=_n.aTypedArrayConstructor,bc=_n.isTypedArray,Co="BYTES_PER_ELEMENT",mc="Wrong length",nE=function(e,r){for(var t=0,n=r.length,a=new(KB(e))(n);n>t;)a[t]=r[t++];return a},To=function(e,r){Sc(e,r,{get:function(){return qc(this)[r]}})},aE=function(e){var r;return e instanceof vE||(r=DB(e))=="ArrayBuffer"||r=="SharedArrayBuffer"},pE=function(e,r){return bc(e)&&typeof r!="symbol"&&r in e&&String(+r)==String(r)},iE=function(r,t){return pE(r,t=lE(t,!0))?NB(2,r[t]):VB(r,t)},oE=function(r,t,n){return pE(r,t=lE(t,!0))&&yc(n)&&ka(n,"value")&&!ka(n,"get")&&!ka(n,"set")&&!n.configurable&&(!ka(n,"writable")||n.writable)&&(!ka(n,"enumerable")||n.enumerable)?(r[t]=n.value,r):Sc(r,t,n)};PB?(Ro||(dE.f=iE,cE.f=oE,To(Fa,"buffer"),To(Fa,"byteOffset"),To(Fa,"byteLength"),To(Fa,"length")),Qb({target:"Object",stat:!0,forced:!Ro},{getOwnPropertyDescriptor:iE,defineProperty:oE}),Ec.exports=function(e,r,t){var n=e.match(/\d+$/)[0]/8,a=e+(t?"Clamped":"")+"Array",i="get"+e,s="set"+e,u=sE[a],o=u,c=o&&o.prototype,f={},d=function(g,y){var m=qc(g);return m.view[i](y*n+m.byteOffset,!0)},v=function(g,y,m){var b=qc(g);t&&(m=(m=HB(m))<0?0:m>255?255:m&255),b.view[s](y*n+b.byteOffset,m,!0)},q=function(g,y){Sc(g,y,{get:function(){return d(this,y)},set:function(m){return v(this,y,m)},enumerable:!0})};Ro?LB&&(o=r(function(g,y,m,b){return Zb(g,o,a),BB(function(){return yc(y)?aE(y)?b!==void 0?new u(y,gc(m,n),b):m!==void 0?new u(y,gc(m,n)):new u(y):bc(y)?nE(o,y):eE.call(o,y):new u(Jb(y))}(),g,o)}),_o&&_o(o,tE),kB(jB(u),function(g){g in o||ja(o,g,u[g])}),o.prototype=c):(o=r(function(g,y,m,b){Zb(g,o,a);var _=0,E=0,w,C,U;if(!yc(y))U=Jb(y),C=U*n,w=new vE(C);else if(aE(y)){w=y,E=gc(m,n);var M=y.byteLength;if(b===void 0){if(M%n||(C=M-E,C<0))throw hc(mc)}else if(C=MB(b)*n,C+E>M)throw hc(mc);U=C/n}else return bc(y)?nE(o,y):eE.call(o,y);for($B(g,{buffer:w,byteOffset:E,byteLength:C,length:U,view:new GB(w)});_<U;)q(g,_++)}),_o&&_o(o,tE),c=o.prototype=UB(Fa)),c.constructor!==o&&ja(c,"constructor",o),rE&&ja(c,rE,a),f[a]=o,Qb({global:!0,forced:o!=u,sham:!Ro},f),Co in o||ja(o,Co,n),Co in c||ja(c,Co,n),FB(a)}):Ec.exports=function(){}});var gE=l(()=>{var zB=Ar();zB("Int8",function(e){return function(t,n,a){return e(this,t,n,a)}})});var hE=l(()=>{var WB=Ar();WB("Uint8",function(e){return function(t,n,a){return e(this,t,n,a)}})});var mE=l(()=>{var YB=Ar();YB("Uint8",function(e){return function(t,n,a){return e(this,t,n,a)}},!0)});var yE=l(()=>{var XB=Ar();XB("Int16",function(e){return function(t,n,a){return e(this,t,n,a)}})});var qE=l(()=>{var QB=Ar();QB("Uint16",function(e){return function(t,n,a){return e(this,t,n,a)}})});var bE=l(()=>{var ZB=Ar();ZB("Int32",function(e){return function(t,n,a){return e(this,t,n,a)}})});var EE=l(()=>{var JB=Ar();JB("Uint32",function(e){return function(t,n,a){return e(this,t,n,a)}})});var SE=l(()=>{var e$=Ar();e$("Float32",function(e){return function(t,n,a){return e(this,t,n,a)}})});var IE=l(()=>{var r$=Ar();r$("Float64",function(e){return function(t,n,a){return e(this,t,n,a)}})});var xE=l(()=>{"use strict";var t$=Ao(),n$=ee().exportTypedArrayStaticMethod,a$=pc();n$("from",a$,t$)});var AE=l(()=>{"use strict";var wE=ee(),i$=Ao(),o$=wE.aTypedArrayConstructor,s$=wE.exportTypedArrayStaticMethod;s$("of",function(){for(var r=0,t=arguments.length,n=new(o$(this))(t);t>r;)n[r]=arguments[r++];return n},i$)});var RE=l(()=>{"use strict";var _E=ee(),u$=qu(),l$=_E.aTypedArray,c$=_E.exportTypedArrayMethod;c$("copyWithin",function(r,t){return u$.call(l$(this),r,t,arguments.length>2?arguments[2]:void 0)})});var TE=l(()=>{"use strict";var CE=ee(),d$=xe().every,f$=CE.aTypedArray,v$=CE.exportTypedArrayMethod;v$("every",function(r){return d$(f$(this),r,arguments.length>1?arguments[1]:void 0)})});var PE=l(()=>{"use strict";var OE=ee(),p$=Mi(),g$=OE.aTypedArray,h$=OE.exportTypedArrayMethod;h$("fill",function(r){return p$.apply(g$(this),arguments)})});var LE=l(()=>{"use strict";var Ic=ee(),m$=xe().filter,y$=Ee(),q$=Ic.aTypedArray,b$=Ic.aTypedArrayConstructor,E$=Ic.exportTypedArrayMethod;E$("filter",function(r){for(var t=m$(q$(this),r,arguments.length>1?arguments[1]:void 0),n=y$(this,this.constructor),a=0,i=t.length,s=new(b$(n))(i);i>a;)s[a]=t[a++];return s})});var ME=l(()=>{"use strict";var NE=ee(),S$=xe().find,I$=NE.aTypedArray,x$=NE.exportTypedArrayMethod;x$("find",function(r){return S$(I$(this),r,arguments.length>1?arguments[1]:void 0)})});var UE=l(()=>{"use strict";var DE=ee(),w$=xe().findIndex,A$=DE.aTypedArray,_$=DE.exportTypedArrayMethod;_$("findIndex",function(r){return w$(A$(this),r,arguments.length>1?arguments[1]:void 0)})});var kE=l(()=>{"use strict";var jE=ee(),R$=xe().forEach,C$=jE.aTypedArray,T$=jE.exportTypedArrayMethod;T$("forEach",function(r){R$(C$(this),r,arguments.length>1?arguments[1]:void 0)})});var BE=l(()=>{"use strict";var FE=ee(),O$=Jt().includes,P$=FE.aTypedArray,L$=FE.exportTypedArrayMethod;L$("includes",function(r){return O$(P$(this),r,arguments.length>1?arguments[1]:void 0)})});var VE=l(()=>{"use strict";var $E=ee(),N$=Jt().indexOf,M$=$E.aTypedArray,D$=$E.exportTypedArrayMethod;D$("indexOf",function(r){return N$(M$(this),r,arguments.length>1?arguments[1]:void 0)})});var YE=l(()=>{"use strict";var U$=B(),GE=ee(),wc=ca(),j$=W(),KE=j$("iterator"),HE=U$.Uint8Array,k$=wc.values,F$=wc.keys,B$=wc.entries,Ac=GE.aTypedArray,Oo=GE.exportTypedArrayMethod,xc=HE&&HE.prototype[KE],zE=!!xc&&(xc.name=="values"||xc.name==null),WE=function(){return k$.call(Ac(this))};Oo("entries",function(){return B$.call(Ac(this))});Oo("keys",function(){return F$.call(Ac(this))});Oo("values",WE,!zE);Oo(KE,WE,!zE)});var QE=l(()=>{"use strict";var XE=ee(),$$=XE.aTypedArray,V$=XE.exportTypedArrayMethod,H$=[].join;V$("join",function(r){return H$.apply($$(this),arguments)})});var JE=l(()=>{"use strict";var ZE=ee(),G$=_u(),K$=ZE.aTypedArray,z$=ZE.exportTypedArrayMethod;z$("lastIndexOf",function(r){return G$.apply(K$(this),arguments)})});var eS=l(()=>{"use strict";var _c=ee(),W$=xe().map,Y$=Ee(),X$=_c.aTypedArray,Q$=_c.aTypedArrayConstructor,Z$=_c.exportTypedArrayMethod;Z$("map",function(r){return W$(X$(this),r,arguments.length>1?arguments[1]:void 0,function(t,n){return new(Q$(Y$(t,t.constructor)))(n)})})});var tS=l(()=>{"use strict";var rS=ee(),J$=ua().left,eV=rS.aTypedArray,rV=rS.exportTypedArrayMethod;rV("reduce",function(r){return J$(eV(this),r,arguments.length,arguments.length>1?arguments[1]:void 0)})});var aS=l(()=>{"use strict";var nS=ee(),tV=ua().right,nV=nS.aTypedArray,aV=nS.exportTypedArrayMethod;aV("reduceRight",function(r){return tV(nV(this),r,arguments.length,arguments.length>1?arguments[1]:void 0)})});var oS=l(()=>{"use strict";var iS=ee(),iV=iS.aTypedArray,oV=iS.exportTypedArrayMethod,sV=Math.floor;oV("reverse",function(){for(var r=this,t=iV(r).length,n=sV(t/2),a=0,i;a<n;)i=r[a],r[a++]=r[--t],r[t]=i;return r})});var uS=l(()=>{"use strict";var sS=ee(),uV=J(),lV=vc(),cV=ne(),dV=L(),fV=sS.aTypedArray,vV=sS.exportTypedArrayMethod,pV=dV(function(){new Int8Array(1).set({})});vV("set",function(r){fV(this);var t=lV(arguments.length>1?arguments[1]:void 0,1),n=this.length,a=cV(r),i=uV(a.length),s=0;if(i+t>n)throw RangeError("Wrong length");for(;s<i;)this[t+s]=a[s++]},pV)});var lS=l(()=>{"use strict";var Rc=ee(),gV=Ee(),hV=L(),mV=Rc.aTypedArray,yV=Rc.aTypedArrayConstructor,qV=Rc.exportTypedArrayMethod,bV=[].slice,EV=hV(function(){new Int8Array(1).slice()});qV("slice",function(r,t){for(var n=bV.call(mV(this),r,t),a=gV(this,this.constructor),i=0,s=n.length,u=new(yV(a))(s);s>i;)u[i]=n[i++];return u},EV)});var dS=l(()=>{"use strict";var cS=ee(),SV=xe().some,IV=cS.aTypedArray,xV=cS.exportTypedArrayMethod;xV("some",function(r){return SV(IV(this),r,arguments.length>1?arguments[1]:void 0)})});var vS=l(()=>{"use strict";var fS=ee(),wV=fS.aTypedArray,AV=fS.exportTypedArrayMethod,_V=[].sort;AV("sort",function(r){return _V.call(wV(this),r)})});var hS=l(()=>{"use strict";var gS=ee(),RV=J(),pS=jr(),CV=Ee(),TV=gS.aTypedArray,OV=gS.exportTypedArrayMethod;OV("subarray",function(r,t){var n=TV(this),a=n.length,i=pS(r,a);return new(CV(n,n.constructor))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,RV((t===void 0?a:pS(t,a))-i))})});var bS=l(()=>{"use strict";var PV=B(),yS=ee(),Cc=L(),Po=PV.Int8Array,mS=yS.aTypedArray,LV=yS.exportTypedArrayMethod,qS=[].toLocaleString,NV=[].slice,MV=!!Po&&Cc(function(){qS.call(new Po(1))}),DV=Cc(function(){return[1,2].toLocaleString()!=new Po([1,2]).toLocaleString()})||!Cc(function(){Po.prototype.toLocaleString.call([1,2])});LV("toLocaleString",function(){return qS.apply(MV?NV.call(mS(this)):mS(this),arguments)},DV)});var SS=l(()=>{"use strict";var UV=ee().exportTypedArrayMethod,jV=L(),kV=B(),ES=kV.Uint8Array,FV=ES&&ES.prototype||{},Lo=[].toString,BV=[].join;jV(function(){Lo.call({})})&&(Lo=function(){return BV.call(this)});var $V=FV.toString!=Lo;UV("toString",Lo,$V)});var IS=l(()=>{var VV=p(),HV=te(),GV=j(),KV=x(),zV=L(),Tc=HV("Reflect","apply"),WV=Function.apply,YV=!zV(function(){Tc(function(){})});VV({target:"Reflect",stat:!0,forced:YV},{apply:function(r,t,n){return GV(r),KV(n),Tc?Tc(r,t,n):WV.call(r,t,n)}})});var TS=l(()=>{var XV=p(),QV=te(),xS=j(),ZV=x(),wS=Q(),JV=je(),eH=fu(),_S=L(),Oc=QV("Reflect","construct"),RS=_S(function(){function e(){}return!(Oc(function(){},[],e)instanceof e)}),CS=!_S(function(){Oc(function(){})}),AS=RS||CS;XV({target:"Reflect",stat:!0,forced:AS,sham:AS},{construct:function(r,t){xS(r),ZV(t);var n=arguments.length<3?r:xS(arguments[2]);if(CS&&!RS)return Oc(r,t,n);if(r==n){switch(t.length){case 0:return new r;case 1:return new r(t[0]);case 2:return new r(t[0],t[1]);case 3:return new r(t[0],t[1],t[2]);case 4:return new r(t[0],t[1],t[2],t[3])}var a=[null];return a.push.apply(a,t),new(eH.apply(r,a))}var i=n.prototype,s=JV(wS(i)?i:Object.prototype),u=Function.apply.call(r,s,t);return wS(u)?u:s}})});var LS=l(()=>{var rH=p(),tH=Z(),OS=x(),nH=Qe(),PS=re(),aH=L(),iH=aH(function(){Reflect.defineProperty(PS.f({},1,{value:1}),1,{value:2})});rH({target:"Reflect",stat:!0,forced:iH,sham:!tH},{defineProperty:function(r,t,n){OS(r);var a=nH(t,!0);OS(n);try{return PS.f(r,a,n),!0}catch(i){return!1}}})});var NS=l(()=>{var oH=p(),sH=x(),uH=Re().f;oH({target:"Reflect",stat:!0},{deleteProperty:function(r,t){var n=uH(sH(r),t);return n&&!n.configurable?!1:delete r[t]}})});var DS=l(()=>{var lH=p(),cH=Q(),dH=x(),fH=le(),vH=Re(),pH=Pe();function MS(e,r){var t=arguments.length<3?e:arguments[2],n,a;if(dH(e)===t)return e[r];if(n=vH.f(e,r))return fH(n,"value")?n.value:n.get===void 0?void 0:n.get.call(t);if(cH(a=pH(e)))return MS(a,r,t)}lH({target:"Reflect",stat:!0},{get:MS})});var US=l(()=>{var gH=p(),hH=Z(),mH=x(),yH=Re();gH({target:"Reflect",stat:!0,sham:!hH},{getOwnPropertyDescriptor:function(r,t){return yH.f(mH(r),t)}})});var jS=l(()=>{var qH=p(),bH=x(),EH=Pe(),SH=Pi();qH({target:"Reflect",stat:!0,sham:!SH},{getPrototypeOf:function(r){return EH(bH(r))}})});var kS=l(()=>{var IH=p();IH({target:"Reflect",stat:!0},{has:function(r,t){return t in r}})});var BS=l(()=>{var xH=p(),wH=x(),FS=Object.isExtensible;xH({target:"Reflect",stat:!0},{isExtensible:function(r){return wH(r),FS?FS(r):!0}})});var $S=l(()=>{var AH=p(),_H=qi();AH({target:"Reflect",stat:!0},{ownKeys:_H})});var VS=l(()=>{var RH=p(),CH=te(),TH=x(),OH=sn();RH({target:"Reflect",stat:!0,sham:!OH},{preventExtensions:function(r){TH(r);try{var t=CH("Object","preventExtensions");return t&&t(r),!0}catch(n){return!1}}})});var YS=l(()=>{var PH=p(),LH=x(),HS=Q(),NH=le(),MH=L(),Pc=re(),GS=Re(),zS=Pe(),KS=qr();function WS(e,r,t){var n=arguments.length<4?e:arguments[3],a=GS.f(LH(e),r),i,s;if(!a){if(HS(s=zS(e)))return WS(s,r,t,n);a=KS(0)}if(NH(a,"value")){if(a.writable===!1||!HS(n))return!1;if(i=GS.f(n,r)){if(i.get||i.set||i.writable===!1)return!1;i.value=t,Pc.f(n,r,i)}else Pc.f(n,r,KS(0,t));return!0}return a.set===void 0?!1:(a.set.call(n,t),!0)}var DH=MH(function(){var e=Pc.f({},"a",{configurable:!0});return Reflect.set(zS(e),"a",1,e)!==!1});PH({target:"Reflect",stat:!0,forced:DH},{set:WS})});var QS=l(()=>{var UH=p(),jH=x(),kH=cu(),XS=it();XS&&UH({target:"Reflect",stat:!0},{setPrototypeOf:function(r,t){jH(r),kH(t);try{return XS(r,t),!0}catch(n){return!1}}})});var JS=l((hve,ZS)=>{Ip();xp();Rp();Cp();Tp();Op();Pp();Lp();Np();Mp();Dp();Up();jp();kp();Fp();Gp();Kp();Wp();Xp();Jp();tg();vg();hg();mg();yg();Ig();wg();Ag();_g();Rg();Tg();Og();Pg();Mg();Dg();kg();Bg();$g();Vg();Hg();zg();Yg();Jg();pu();oh();sh();uh();qh();Sh();xh();_h();Ch();Oh();Lh();Dh();Uh();Fh();Bh();Hh();Gh();Yh();Qh();em();rm();nm();om();sm();dm();fm();gm();hm();mm();ca();jm();km();$m();Ym();Xm();oy();Fu();qy();by();Ey();Sy();xy();_y();Ty();Dy();ky();$y();Hu();zy();Wy();Yy();Xy();Qy();Zy();Jy();e0();r0();t0();n0();a0();i0();d0();v0();p0();m0();E0();x0();C0();T0();P0();N0();M0();D0();U0();j0();F0();$0();K0();Y0();Z0();r1();n1();i1();o1();l1();d1();v1();g1();m1();y1();q1();b1();E1();x1();_1();R1();C1();T1();O1();U1();F1();G1();W1();Y1();kq();Ul();$q();lo();$l();ho();ub();Db();jb();Hb();Gb();gE();hE();mE();yE();qE();bE();EE();SE();IE();xE();AE();RE();TE();PE();LE();ME();UE();kE();BE();VE();YE();QE();JE();eS();tS();aS();oS();uS();lS();dS();vS();hS();bS();SS();IS();TS();LS();NS();DS();US();jS();kS();BS();$S();VS();YS();QS();var FH=ir();ZS.exports=FH});var _r=l((mve,tI)=>{var eI=lo(),BH=ho(),$H=Xn(),rI=$H("metadata"),Lc=rI.store||(rI.store=new BH),Ba=function(e,r,t){var n=Lc.get(e);if(!n){if(!t)return;Lc.set(e,n=new eI)}var a=n.get(r);if(!a){if(!t)return;n.set(r,a=new eI)}return a},VH=function(e,r,t){var n=Ba(r,t,!1);return n===void 0?!1:n.has(e)},HH=function(e,r,t){var n=Ba(r,t,!1);return n===void 0?void 0:n.get(e)},GH=function(e,r,t,n){Ba(t,n,!0).set(e,r)},KH=function(e,r){var t=Ba(e,r,!1),n=[];return t&&t.forEach(function(a,i){n.push(i)}),n},zH=function(e){return e===void 0||typeof e=="symbol"?e:String(e)};tI.exports={store:Lc,getMap:Ba,has:VH,get:HH,set:GH,keys:KH,toKey:zH}});var aI=l(()=>{var WH=p(),nI=_r(),YH=x(),XH=nI.toKey,QH=nI.set;WH({target:"Reflect",stat:!0},{defineMetadata:function(r,t,n){var a=arguments.length<4?void 0:XH(arguments[3]);QH(r,t,YH(n),a)}})});var oI=l(()=>{var ZH=p(),Nc=_r(),JH=x(),eG=Nc.toKey,rG=Nc.getMap,iI=Nc.store;ZH({target:"Reflect",stat:!0},{deleteMetadata:function(r,t){var n=arguments.length<3?void 0:eG(arguments[2]),a=rG(JH(t),n,!1);if(a===void 0||!a.delete(r))return!1;if(a.size)return!0;var i=iI.get(t);return i.delete(n),!!i.size||iI.delete(t)}})});var uI=l(()=>{var tG=p(),Mc=_r(),nG=x(),aG=Pe(),iG=Mc.has,oG=Mc.get,sG=Mc.toKey,sI=function(e,r,t){var n=iG(e,r,t);if(n)return oG(e,r,t);var a=aG(r);return a!==null?sI(e,a,t):void 0};tG({target:"Reflect",stat:!0},{getMetadata:function(r,t){var n=arguments.length<3?void 0:sG(arguments[2]);return sI(r,nG(t),n)}})});var dI=l(()=>{var uG=p(),lG=$l(),lI=_r(),cG=x(),dG=Pe(),fG=$(),vG=lI.keys,pG=lI.toKey,gG=function(e){var r=[];return fG(e,r.push,r),r},cI=function(e,r){var t=vG(e,r),n=dG(e);if(n===null)return t;var a=cI(n,r);return a.length?t.length?gG(new lG(t.concat(a))):a:t};uG({target:"Reflect",stat:!0},{getMetadataKeys:function(r){var t=arguments.length<2?void 0:pG(arguments[1]);return cI(cG(r),t)}})});var vI=l(()=>{var hG=p(),fI=_r(),mG=x(),yG=fI.get,qG=fI.toKey;hG({target:"Reflect",stat:!0},{getOwnMetadata:function(r,t){var n=arguments.length<3?void 0:qG(arguments[2]);return yG(r,mG(t),n)}})});var gI=l(()=>{var bG=p(),pI=_r(),EG=x(),SG=pI.keys,IG=pI.toKey;bG({target:"Reflect",stat:!0},{getOwnMetadataKeys:function(r){var t=arguments.length<2?void 0:IG(arguments[1]);return SG(EG(r),t)}})});var yI=l(()=>{var xG=p(),hI=_r(),wG=x(),AG=Pe(),_G=hI.has,RG=hI.toKey,mI=function(e,r,t){var n=_G(e,r,t);if(n)return!0;var a=AG(r);return a!==null?mI(e,a,t):!1};xG({target:"Reflect",stat:!0},{hasMetadata:function(r,t){var n=arguments.length<3?void 0:RG(arguments[2]);return mI(r,wG(t),n)}})});var bI=l(()=>{var CG=p(),qI=_r(),TG=x(),OG=qI.has,PG=qI.toKey;CG({target:"Reflect",stat:!0},{hasOwnMetadata:function(r,t){var n=arguments.length<3?void 0:PG(arguments[2]);return OG(r,TG(t),n)}})});var SI=l(()=>{var LG=p(),EI=_r(),NG=x(),MG=EI.toKey,DG=EI.set;LG({target:"Reflect",stat:!0},{metadata:function(r,t){return function(a,i){DG(r,t,NG(a),MG(i))}}})});var II=l(()=>{aI();oI();uI();dI();vI();gI();yI();bI();SI()});var xI=l(()=>{var UG=p();UG({target:"Math",stat:!0},{iaddh:function(r,t,n,a){var i=r>>>0,s=t>>>0,u=n>>>0;return s+(a>>>0)+((i&u|(i|u)&~(i+u>>>0))>>>31)|0}})});var wI=l(()=>{var jG=p();jG({target:"Math",stat:!0},{isubh:function(r,t,n,a){var i=r>>>0,s=t>>>0,u=n>>>0;return s-(a>>>0)-((~i&u|~(i^u)&i-u>>>0)>>>31)|0}})});var AI=l(()=>{var kG=p();kG({target:"Math",stat:!0},{imulh:function(r,t){var n=65535,a=+r,i=+t,s=a&n,u=i&n,o=a>>16,c=i>>16,f=(o*u>>>0)+(s*u>>>16);return o*c+(f>>16)+((s*c>>>0)+(f&n)>>16)}})});var _I=l(()=>{var FG=p();FG({target:"Math",stat:!0},{umulh:function(r,t){var n=65535,a=+r,i=+t,s=a&n,u=i&n,o=a>>>16,c=i>>>16,f=(o*u>>>0)+(s*u>>>16);return o*c+(f>>>16)+((s*c>>>0)+(f&n)>>>16)}})});var RI=l(()=>{xI();wI();AI();_I()});var CI=l(()=>{"use strict";var BG=p(),$G=Rt().charAt;BG({target:"String",proto:!0},{at:function(r){return $G(this,r)}})});var TI=l(()=>{CI()});var Dc=l((Zve,OI)=>{var VG=L(),HG=W(),GG=k(),KG=HG("iterator");OI.exports=!VG(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),r=e.searchParams,t="";return e.pathname="c%20d",r.forEach(function(n,a){r.delete("b"),t+=a+n}),GG&&!e.toJSON||!r.sort||e.href!=="http://a/c%20d?a=1&c=3"||r.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!r[KG]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||t!=="a1c3"||new URL("http://x",void 0).host!=="x"})});var DI=l((Jve,MI)=>{"use strict";var Uc=2147483647,$a=36,NI=1,Fc=26,zG=38,WG=700,YG=72,XG=128,QG="-",ZG=/[^\0-\u007E]/,JG=/[.\u3002\uFF0E\uFF61]/g,PI="Overflow: input needs wider integers to process",jc=$a-NI,Rn=Math.floor,kc=String.fromCharCode,eK=function(e){for(var r=[],t=0,n=e.length;t<n;){var a=e.charCodeAt(t++);if(a>=55296&&a<=56319&&t<n){var i=e.charCodeAt(t++);(i&64512)==56320?r.push(((a&1023)<<10)+(i&1023)+65536):(r.push(a),t--)}else r.push(a)}return r},LI=function(e){return e+22+75*(e<26)},rK=function(e,r,t){var n=0;for(e=t?Rn(e/WG):e>>1,e+=Rn(e/r);e>jc*Fc>>1;n+=$a)e=Rn(e/jc);return Rn(n+(jc+1)*e/(e+zG))},tK=function(e){var r=[];e=eK(e);var t=e.length,n=XG,a=0,i=YG,s,u;for(s=0;s<e.length;s++)u=e[s],u<128&&r.push(kc(u));var o=r.length,c=o;for(o&&r.push(QG);c<t;){var f=Uc;for(s=0;s<e.length;s++)u=e[s],u>=n&&u<f&&(f=u);var d=c+1;if(f-n>Rn((Uc-a)/d))throw RangeError(PI);for(a+=(f-n)*d,n=f,s=0;s<e.length;s++){if(u=e[s],u<n&&++a>Uc)throw RangeError(PI);if(u==n){for(var v=a,q=$a;;q+=$a){var g=q<=i?NI:q>=i+Fc?Fc:q-i;if(v<g)break;var y=v-g,m=$a-g;r.push(kc(LI(g+y%m))),v=Rn(y/m)}r.push(kc(LI(v))),i=rK(a,d,c==o),a=0,++c}}++a,++n}return r.join("")};MI.exports=function(e){var r=[],t=e.toLowerCase().replace(JG,".").split("."),n,a;for(n=0;n<t.length;n++)a=t[n],r.push(ZG.test(a)?"xn--"+tK(a):a);return r.join(".")}});var Cn=l((epe,UI)=>{var nK=x(),aK=Vr();UI.exports=function(e){var r=aK(e);if(typeof r!="function")throw TypeError(String(e)+" is not iterable");return nK(r.call(e))}});var Mo=l((rpe,ZI)=>{"use strict";ca();var VI=p(),HI=te(),GI=Dc(),KI=Ce(),iK=Ir(),oK=or(),sK=_t(),Vc=ge(),uK=Je(),lK=le(),cK=pe(),dK=ln(),fK=x(),zI=Q(),vK=je(),jI=qr(),WI=Cn(),pK=Vr(),gK=W(),kI=HI("fetch"),Bc=HI("Headers"),hK=gK("iterator"),On="URLSearchParams",YI=On+"Iterator",XI=Vc.set,fr=Vc.getterFor(On),mK=Vc.getterFor(YI),yK=/\+/g,FI=Array(4),qK=function(e){return FI[e-1]||(FI[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},bK=function(e){try{return decodeURIComponent(e)}catch(r){return e}},BI=function(e){var r=e.replace(yK," "),t=4;try{return decodeURIComponent(r)}catch(n){for(;t;)r=r.replace(qK(t--),bK);return r}},EK=/[!'()~]|%20/g,SK={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},IK=function(e){return SK[e]},$I=function(e){return encodeURIComponent(e).replace(EK,IK)},QI=function(e,r){if(r)for(var t=r.split("&"),n=0,a,i;n<t.length;)a=t[n++],a.length&&(i=a.split("="),e.push({key:BI(i.shift()),value:BI(i.join("="))}))},xK=function(e){this.entries.length=0,QI(this.entries,e)},Tn=function(e,r){if(e<r)throw TypeError("Not enough arguments")},$c=sK(function(r,t){XI(this,{type:YI,iterator:WI(fr(r).entries),kind:t})},"Iterator",function(){var r=mK(this),t=r.kind,n=r.iterator.next(),a=n.value;return n.done||(n.value=t==="keys"?a.key:t==="values"?a.value:[a.key,a.value]),n}),Va=function(){uK(this,Va,On);var r=arguments.length>0?arguments[0]:void 0,t=this,n=[],a,i,s,u,o,c,f,d,v;if(XI(t,{type:On,entries:n,updateURL:function(){},updateSearchParams:xK}),r!==void 0)if(zI(r))if(a=pK(r),typeof a=="function")for(i=a.call(r),s=i.next;!(u=s.call(i)).done;){if(o=WI(fK(u.value)),c=o.next,(f=c.call(o)).done||(d=c.call(o)).done||!c.call(o).done)throw TypeError("Expected sequence with length 2");n.push({key:f.value+"",value:d.value+""})}else for(v in r)lK(r,v)&&n.push({key:v,value:r[v]+""});else QI(n,typeof r=="string"?r.charAt(0)==="?"?r.slice(1):r:r+"")},No=Va.prototype;iK(No,{append:function(r,t){Tn(arguments.length,2);var n=fr(this);n.entries.push({key:r+"",value:t+""}),n.updateURL()},delete:function(e){Tn(arguments.length,1);for(var r=fr(this),t=r.entries,n=e+"",a=0;a<t.length;)t[a].key===n?t.splice(a,1):a++;r.updateURL()},get:function(r){Tn(arguments.length,1);for(var t=fr(this).entries,n=r+"",a=0;a<t.length;a++)if(t[a].key===n)return t[a].value;return null},getAll:function(r){Tn(arguments.length,1);for(var t=fr(this).entries,n=r+"",a=[],i=0;i<t.length;i++)t[i].key===n&&a.push(t[i].value);return a},has:function(r){Tn(arguments.length,1);for(var t=fr(this).entries,n=r+"",a=0;a<t.length;)if(t[a++].key===n)return!0;return!1},set:function(r,t){Tn(arguments.length,1);for(var n=fr(this),a=n.entries,i=!1,s=r+"",u=t+"",o=0,c;o<a.length;o++)c=a[o],c.key===s&&(i?a.splice(o--,1):(i=!0,c.value=u));i||a.push({key:s,value:u}),n.updateURL()},sort:function(){var r=fr(this),t=r.entries,n=t.slice(),a,i,s;for(t.length=0,s=0;s<n.length;s++){for(a=n[s],i=0;i<s;i++)if(t[i].key>a.key){t.splice(i,0,a);break}i===s&&t.push(a)}r.updateURL()},forEach:function(r){for(var t=fr(this).entries,n=cK(r,arguments.length>1?arguments[1]:void 0,3),a=0,i;a<t.length;)i=t[a++],n(i.value,i.key,this)},keys:function(){return new $c(this,"keys")},values:function(){return new $c(this,"values")},entries:function(){return new $c(this,"entries")}},{enumerable:!0});KI(No,hK,No.entries);KI(No,"toString",function(){for(var r=fr(this).entries,t=[],n=0,a;n<r.length;)a=r[n++],t.push($I(a.key)+"="+$I(a.value));return t.join("&")},{enumerable:!0});oK(Va,On);VI({global:!0,forced:!GI},{URLSearchParams:Va});!GI&&typeof kI=="function"&&typeof Bc=="function"&&VI({global:!0,enumerable:!0,forced:!0},{fetch:function(r){var t=[r],n,a,i;return arguments.length>1&&(n=arguments[1],zI(n)&&(a=n.body,dK(a)===On&&(i=n.headers?new Bc(n.headers):new Bc,i.has("content-type")||i.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),n=vK(n,{body:jI(0,String(a)),headers:jI(0,i)}))),t.push(n)),kI.apply(this,t)}});ZI.exports={URLSearchParams:Va,getState:fr}});var dd=l(()=>{"use strict";Hu();var wK=p(),sd=Z(),AK=Dc(),_K=B(),RK=Ei(),ko=Ce(),CK=Je(),ud=le(),ld=Zs(),Ln=gu(),TK=Rt().codeAt,OK=DI(),PK=or(),cx=Mo(),dx=ge(),Ha=_K.URL,LK=cx.URLSearchParams,Jc=cx.getState,NK=dx.set,ve=dx.getterFor("URL"),MK=Math.floor,JI=Math.pow,DK="Invalid authority",Hc="Invalid scheme",Dt="Invalid host",ex="Invalid port",fx=/[A-Za-z]/,UK=/[\d+\-.A-Za-z]/,ed=/\d/,jK=/^(0x|0X)/,kK=/^[0-7]+$/,FK=/^\d+$/,vx=/^[\dA-Fa-f]+$/,BK=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,$K=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,VK=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,HK=/[\u0009\u000A\u000D]/g,er,Gc=function(e,r){var t,n,a;if(r.charAt(0)=="["){if(r.charAt(r.length-1)!="]"||(t=KK(r.slice(1,-1)),!t))return Dt;e.host=t}else if(we(e)){if(r=OK(r),BK.test(r)||(t=GK(r),t===null))return Dt;e.host=t}else{if($K.test(r))return Dt;for(t="",n=Ln(r),a=0;a<n.length;a++)t+=ft(n[a],Fo);e.host=t}},GK=function(e){var r=e.split("."),t,n,a,i,s,u,o;if(r.length&&r[r.length-1]==""&&r.pop(),t=r.length,t>4)return e;for(n=[],a=0;a<t;a++){if(i=r[a],i=="")return e;if(s=10,i.length>1&&i.charAt(0)=="0"&&(s=jK.test(i)?16:8,i=i.slice(s==8?1:2)),i==="")u=0;else{if(!(s==10?FK:s==8?kK:vx).test(i))return e;u=parseInt(i,s)}n.push(u)}for(a=0;a<t;a++)if(u=n[a],a==t-1){if(u>=JI(256,5-t))return null}else if(u>255)return null;for(o=n.pop(),a=0;a<n.length;a++)o+=n[a]*JI(256,3-a);return o},KK=function(e){var r=[0,0,0,0,0,0,0,0],t=0,n=null,a=0,i,s,u,o,c,f,d,v=function(){return e.charAt(a)};if(v()==":"){if(e.charAt(1)!=":")return;a+=2,t++,n=t}for(;v();){if(t==8)return;if(v()==":"){if(n!==null)return;a++,t++,n=t;continue}for(i=s=0;s<4&&vx.test(v());)i=i*16+parseInt(v(),16),a++,s++;if(v()=="."){if(s==0||(a-=s,t>6))return;for(u=0;v();){if(o=null,u>0)if(v()=="."&&u<4)a++;else return;if(!ed.test(v()))return;for(;ed.test(v());){if(c=parseInt(v(),10),o===null)o=c;else{if(o==0)return;o=o*10+c}if(o>255)return;a++}r[t]=r[t]*256+o,u++,(u==2||u==4)&&t++}if(u!=4)return;break}else if(v()==":"){if(a++,!v())return}else if(v())return;r[t++]=i}if(n!==null)for(f=t-n,t=7;t!=0&&f>0;)d=r[t],r[t--]=r[n+f-1],r[n+--f]=d;else if(t!=8)return;return r},zK=function(e){for(var r=null,t=1,n=null,a=0,i=0;i<8;i++)e[i]!==0?(a>t&&(r=n,t=a),n=null,a=0):(n===null&&(n=i),++a);return a>t&&(r=n,t=a),r},Ka=function(e){var r,t,n,a;if(typeof e=="number"){for(r=[],t=0;t<4;t++)r.unshift(e%256),e=MK(e/256);return r.join(".")}else if(typeof e=="object"){for(r="",n=zK(e),t=0;t<8;t++)a&&e[t]===0||(a&&(a=!1),n===t?(r+=t?":":"::",a=!0):(r+=e[t].toString(16),t<7&&(r+=":")));return"["+r+"]"}return e},Fo={},px=ld({},Fo,{" ":1,'"':1,"<":1,">":1,"`":1}),gx=ld({},px,{"#":1,"?":1,"{":1,"}":1}),rd=ld({},gx,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ft=function(e,r){var t=TK(e,0);return t>32&&t<127&&!ud(r,e)?e:encodeURIComponent(e)},jo={ftp:21,file:null,http:80,https:443,ws:80,wss:443},we=function(e){return ud(jo,e.scheme)},td=function(e){return e.username!=""||e.password!=""},Kc=function(e){return!e.host||e.cannotBeABaseURL||e.scheme=="file"},Ga=function(e,r){var t;return e.length==2&&fx.test(e.charAt(0))&&((t=e.charAt(1))==":"||!r&&t=="|")},rx=function(e){var r;return e.length>1&&Ga(e.slice(0,2))&&(e.length==2||(r=e.charAt(2))==="/"||r==="\\"||r==="?"||r==="#")},tx=function(e){var r=e.path,t=r.length;t&&(e.scheme!="file"||t!=1||!Ga(r[0],!0))&&r.pop()},WK=function(e){return e==="."||e.toLowerCase()==="%2e"},YK=function(e){return e=e.toLowerCase(),e===".."||e==="%2e."||e===".%2e"||e==="%2e%2e"},nd={},nx={},zc={},ax={},ix={},Wc={},ox={},sx={},Do={},Uo={},ad={},id={},od={},Yc={},ux={},Xc={},Pn={},Rr={},lx={},Mt={},Yr={},Cr=function(e,r,t,n){var a=t||nd,i=0,s="",u=!1,o=!1,c=!1,f,d,v,q;for(t||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,r=r.replace(VK,"")),r=r.replace(HK,""),f=Ln(r);i<=f.length;){switch(d=f[i],a){case nd:if(d&&fx.test(d))s+=d.toLowerCase(),a=nx;else{if(t)return Hc;a=zc;continue}break;case nx:if(d&&(UK.test(d)||d=="+"||d=="-"||d=="."))s+=d.toLowerCase();else if(d==":"){if(t&&(we(e)!=ud(jo,s)||s=="file"&&(td(e)||e.port!==null)||e.scheme=="file"&&!e.host))return;if(e.scheme=s,t){we(e)&&jo[e.scheme]==e.port&&(e.port=null);return}s="",e.scheme=="file"?a=Yc:we(e)&&n&&n.scheme==e.scheme?a=ax:we(e)?a=sx:f[i+1]=="/"?(a=ix,i++):(e.cannotBeABaseURL=!0,e.path.push(""),a=lx)}else{if(t)return Hc;s="",a=zc,i=0;continue}break;case zc:if(!n||n.cannotBeABaseURL&&d!="#")return Hc;if(n.cannotBeABaseURL&&d=="#"){e.scheme=n.scheme,e.path=n.path.slice(),e.query=n.query,e.fragment="",e.cannotBeABaseURL=!0,a=Yr;break}a=n.scheme=="file"?Yc:Wc;continue;case ax:if(d=="/"&&f[i+1]=="/")a=Do,i++;else{a=Wc;continue}break;case ix:if(d=="/"){a=Uo;break}else{a=Rr;continue}case Wc:if(e.scheme=n.scheme,d==er)e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query=n.query;else if(d=="/"||d=="\\"&&we(e))a=ox;else if(d=="?")e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query="",a=Mt;else if(d=="#")e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query=n.query,e.fragment="",a=Yr;else{e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.path.pop(),a=Rr;continue}break;case ox:if(we(e)&&(d=="/"||d=="\\"))a=Do;else if(d=="/")a=Uo;else{e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,a=Rr;continue}break;case sx:if(a=Do,d!="/"||s.charAt(i+1)!="/")continue;i++;break;case Do:if(d!="/"&&d!="\\"){a=Uo;continue}break;case Uo:if(d=="@"){u&&(s="%40"+s),u=!0,v=Ln(s);for(var g=0;g<v.length;g++){var y=v[g];if(y==":"&&!c){c=!0;continue}var m=ft(y,rd);c?e.password+=m:e.username+=m}s=""}else if(d==er||d=="/"||d=="?"||d=="#"||d=="\\"&&we(e)){if(u&&s=="")return DK;i-=Ln(s).length+1,s="",a=ad}else s+=d;break;case ad:case id:if(t&&e.scheme=="file"){a=Xc;continue}else if(d==":"&&!o){if(s=="")return Dt;if(q=Gc(e,s),q)return q;if(s="",a=od,t==id)return}else if(d==er||d=="/"||d=="?"||d=="#"||d=="\\"&&we(e)){if(we(e)&&s=="")return Dt;if(t&&s==""&&(td(e)||e.port!==null))return;if(q=Gc(e,s),q)return q;if(s="",a=Pn,t)return;continue}else d=="["?o=!0:d=="]"&&(o=!1),s+=d;break;case od:if(ed.test(d))s+=d;else if(d==er||d=="/"||d=="?"||d=="#"||d=="\\"&&we(e)||t){if(s!=""){var b=parseInt(s,10);if(b>65535)return ex;e.port=we(e)&&b===jo[e.scheme]?null:b,s=""}if(t)return;a=Pn;continue}else return ex;break;case Yc:if(e.scheme="file",d=="/"||d=="\\")a=ux;else if(n&&n.scheme=="file")if(d==er)e.host=n.host,e.path=n.path.slice(),e.query=n.query;else if(d=="?")e.host=n.host,e.path=n.path.slice(),e.query="",a=Mt;else if(d=="#")e.host=n.host,e.path=n.path.slice(),e.query=n.query,e.fragment="",a=Yr;else{rx(f.slice(i).join(""))||(e.host=n.host,e.path=n.path.slice(),tx(e)),a=Rr;continue}else{a=Rr;continue}break;case ux:if(d=="/"||d=="\\"){a=Xc;break}n&&n.scheme=="file"&&!rx(f.slice(i).join(""))&&(Ga(n.path[0],!0)?e.path.push(n.path[0]):e.host=n.host),a=Rr;continue;case Xc:if(d==er||d=="/"||d=="\\"||d=="?"||d=="#"){if(!t&&Ga(s))a=Rr;else if(s==""){if(e.host="",t)return;a=Pn}else{if(q=Gc(e,s),q)return q;if(e.host=="localhost"&&(e.host=""),t)return;s="",a=Pn}continue}else s+=d;break;case Pn:if(we(e)){if(a=Rr,d!="/"&&d!="\\")continue}else if(!t&&d=="?")e.query="",a=Mt;else if(!t&&d=="#")e.fragment="",a=Yr;else if(d!=er&&(a=Rr,d!="/"))continue;break;case Rr:if(d==er||d=="/"||d=="\\"&&we(e)||!t&&(d=="?"||d=="#")){if(YK(s)?(tx(e),d!="/"&&!(d=="\\"&&we(e))&&e.path.push("")):WK(s)?d!="/"&&!(d=="\\"&&we(e))&&e.path.push(""):(e.scheme=="file"&&!e.path.length&&Ga(s)&&(e.host&&(e.host=""),s=s.charAt(0)+":"),e.path.push(s)),s="",e.scheme=="file"&&(d==er||d=="?"||d=="#"))for(;e.path.length>1&&e.path[0]==="";)e.path.shift();d=="?"?(e.query="",a=Mt):d=="#"&&(e.fragment="",a=Yr)}else s+=ft(d,gx);break;case lx:d=="?"?(e.query="",a=Mt):d=="#"?(e.fragment="",a=Yr):d!=er&&(e.path[0]+=ft(d,Fo));break;case Mt:!t&&d=="#"?(e.fragment="",a=Yr):d!=er&&(d=="'"&&we(e)?e.query+="%27":d=="#"?e.query+="%23":e.query+=ft(d,Fo));break;case Yr:d!=er&&(e.fragment+=ft(d,px));break}i++}},Ut=function(r){var t=CK(this,Ut,"URL"),n=arguments.length>1?arguments[1]:void 0,a=String(r),i=NK(t,{type:"URL"}),s,u;if(n!==void 0){if(n instanceof Ut)s=ve(n);else if(u=Cr(s={},String(n)),u)throw TypeError(u)}if(u=Cr(i,a,null,s),u)throw TypeError(u);var o=i.searchParams=new LK,c=Jc(o);c.updateSearchParams(i.query),c.updateURL=function(){i.query=String(o)||null},sd||(t.href=Bo.call(t),t.origin=hx.call(t),t.protocol=mx.call(t),t.username=yx.call(t),t.password=qx.call(t),t.host=bx.call(t),t.hostname=Ex.call(t),t.port=Sx.call(t),t.pathname=Ix.call(t),t.search=xx.call(t),t.searchParams=wx.call(t),t.hash=Ax.call(t))},cd=Ut.prototype,Bo=function(){var e=ve(this),r=e.scheme,t=e.username,n=e.password,a=e.host,i=e.port,s=e.path,u=e.query,o=e.fragment,c=r+":";return a!==null?(c+="//",td(e)&&(c+=t+(n?":"+n:"")+"@"),c+=Ka(a),i!==null&&(c+=":"+i)):r=="file"&&(c+="//"),c+=e.cannotBeABaseURL?s[0]:s.length?"/"+s.join("/"):"",u!==null&&(c+="?"+u),o!==null&&(c+="#"+o),c},hx=function(){var e=ve(this),r=e.scheme,t=e.port;if(r=="blob")try{return new URL(r.path[0]).origin}catch(n){return"null"}return r=="file"||!we(e)?"null":r+"://"+Ka(e.host)+(t!==null?":"+t:"")},mx=function(){return ve(this).scheme+":"},yx=function(){return ve(this).username},qx=function(){return ve(this).password},bx=function(){var e=ve(this),r=e.host,t=e.port;return r===null?"":t===null?Ka(r):Ka(r)+":"+t},Ex=function(){var e=ve(this).host;return e===null?"":Ka(e)},Sx=function(){var e=ve(this).port;return e===null?"":String(e)},Ix=function(){var e=ve(this),r=e.path;return e.cannotBeABaseURL?r[0]:r.length?"/"+r.join("/"):""},xx=function(){var e=ve(this).query;return e?"?"+e:""},wx=function(){return ve(this).searchParams},Ax=function(){var e=ve(this).fragment;return e?"#"+e:""},rr=function(e,r){return{get:e,set:r,configurable:!0,enumerable:!0}};sd&&RK(cd,{href:rr(Bo,function(e){var r=ve(this),t=String(e),n=Cr(r,t);if(n)throw TypeError(n);Jc(r.searchParams).updateSearchParams(r.query)}),origin:rr(hx),protocol:rr(mx,function(e){var r=ve(this);Cr(r,String(e)+":",nd)}),username:rr(yx,function(e){var r=ve(this),t=Ln(String(e));if(!Kc(r)){r.username="";for(var n=0;n<t.length;n++)r.username+=ft(t[n],rd)}}),password:rr(qx,function(e){var r=ve(this),t=Ln(String(e));if(!Kc(r)){r.password="";for(var n=0;n<t.length;n++)r.password+=ft(t[n],rd)}}),host:rr(bx,function(e){var r=ve(this);r.cannotBeABaseURL||Cr(r,String(e),ad)}),hostname:rr(Ex,function(e){var r=ve(this);r.cannotBeABaseURL||Cr(r,String(e),id)}),port:rr(Sx,function(e){var r=ve(this);Kc(r)||(e=String(e),e==""?r.port=null:Cr(r,e,od))}),pathname:rr(Ix,function(e){var r=ve(this);r.cannotBeABaseURL||(r.path=[],Cr(r,e+"",Pn))}),search:rr(xx,function(e){var r=ve(this);e=String(e),e==""?r.query=null:(e.charAt(0)=="?"&&(e=e.slice(1)),r.query="",Cr(r,e,Mt)),Jc(r.searchParams).updateSearchParams(r.query)}),searchParams:rr(wx),hash:rr(Ax,function(e){var r=ve(this);if(e=String(e),e==""){r.fragment=null;return}e.charAt(0)=="#"&&(e=e.slice(1)),r.fragment="",Cr(r,e,Yr)})});ko(cd,"toJSON",function(){return Bo.call(this)},{enumerable:!0});ko(cd,"toString",function(){return Bo.call(this)},{enumerable:!0});Ha&&(Qc=Ha.createObjectURL,Zc=Ha.revokeObjectURL,Qc&&ko(Ut,"createObjectURL",function(r){return Qc.apply(Ha,arguments)}),Zc&&ko(Ut,"revokeObjectURL",function(r){return Zc.apply(Ha,arguments)}));var Qc,Zc;PK(Ut,"URL");wK({global:!0,forced:!AK,sham:!sd},{URL:Ut})});var fd=l(()=>{"use strict";var XK=p();XK({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})});var _x=l(()=>{dd();fd();Mo()});var Rx=l(()=>{"use strict";var QK=Z(),ZK=sr(),JK=ne(),ez=J(),rz=re().f;QK&&!("lastIndex"in[])&&(rz(Array.prototype,"lastIndex",{configurable:!0,get:function(){var r=JK(this),t=ez(r.length);return t==0?0:t-1}}),ZK("lastIndex"))});var Ox=l(()=>{"use strict";var tz=Z(),nz=sr(),Cx=ne(),Tx=J(),az=re().f;tz&&!("lastItem"in[])&&(az(Array.prototype,"lastItem",{configurable:!0,get:function(){var r=Cx(this),t=Tx(r.length);return t==0?void 0:r[t-1]},set:function(r){var t=Cx(this),n=Tx(t.length);return t[n==0?0:n-1]=r}}),nz("lastItem"))});var Px=l(()=>{Rx();Ox()});var Lx=l(()=>{"use strict";var iz=p(),oz=$(),$o=j();iz({target:"Map",stat:!0},{groupBy:function(r,t){var n=new this;$o(t);var a=$o(n.has),i=$o(n.get),s=$o(n.set);return oz(r,function(u){var o=t(u);a.call(n,o)?i.call(n,o).push(u):s.call(n,o,[u])}),n}})});var Mx=l(()=>{"use strict";var sz=p(),uz=$(),Nx=j();sz({target:"Map",stat:!0},{keyBy:function(r,t){var n=new this;Nx(t);var a=Nx(n.set);return uz(r,function(i){a.call(n,t(i),i)}),n}})});var za=l((ype,Dx)=>{"use strict";var lz=x(),cz=j();Dx.exports=function(){for(var e=lz(this),r=cz(e.delete),t=!0,n,a=0,i=arguments.length;a<i;a++)n=r.call(e,arguments[a]),t=t&&n;return!!t}});var Ux=l(()=>{"use strict";var dz=p(),fz=k(),vz=za();dz({target:"Map",proto:!0,real:!0,forced:fz},{deleteAll:function(){return vz.apply(this,arguments)}})});var vr=l((Epe,jx)=>{var pz=k(),gz=Cn();jx.exports=pz?gz:function(e){return Map.prototype.entries.call(e)}});var Fx=l(()=>{"use strict";var hz=p(),mz=k(),yz=x(),qz=pe(),bz=vr(),kx=$();hz({target:"Map",proto:!0,real:!0,forced:mz},{every:function(r){var t=yz(this),n=bz(t),a=qz(r,arguments.length>1?arguments[1]:void 0,3);return!kx(n,function(i,s){if(!a(s,i,t))return kx.stop()},void 0,!0,!0).stopped}})});var Bx=l(()=>{"use strict";var Ez=p(),Sz=k(),Iz=te(),xz=x(),wz=j(),Az=pe(),_z=Ee(),Rz=vr(),Cz=$();Ez({target:"Map",proto:!0,real:!0,forced:Sz},{filter:function(r){var t=xz(this),n=Rz(t),a=Az(r,arguments.length>1?arguments[1]:void 0,3),i=new(_z(t,Iz("Map"))),s=wz(i.set);return Cz(n,function(u,o){a(o,u,t)&&s.call(i,u,o)},void 0,!0,!0),i}})});var Vx=l(()=>{"use strict";var Tz=p(),Oz=k(),Pz=x(),Lz=pe(),Nz=vr(),$x=$();Tz({target:"Map",proto:!0,real:!0,forced:Oz},{find:function(r){var t=Pz(this),n=Nz(t),a=Lz(r,arguments.length>1?arguments[1]:void 0,3);return $x(n,function(i,s){if(a(s,i,t))return $x.stop(s)},void 0,!0,!0).result}})});var Gx=l(()=>{"use strict";var Mz=p(),Dz=k(),Uz=x(),jz=pe(),kz=vr(),Hx=$();Mz({target:"Map",proto:!0,real:!0,forced:Dz},{findKey:function(r){var t=Uz(this),n=kz(t),a=jz(r,arguments.length>1?arguments[1]:void 0,3);return Hx(n,function(i,s){if(a(s,i,t))return Hx.stop(i)},void 0,!0,!0).result}})});var zx=l((Tpe,Kx)=>{Kx.exports=function(e,r){return e===r||e!=e&&r!=r}});var Yx=l(()=>{"use strict";var Fz=p(),Bz=k(),$z=x(),Vz=vr(),Hz=zx(),Wx=$();Fz({target:"Map",proto:!0,real:!0,forced:Bz},{includes:function(r){return Wx(Vz($z(this)),function(t,n){if(Hz(n,r))return Wx.stop()},void 0,!0,!0).stopped}})});var Qx=l(()=>{"use strict";var Gz=p(),Kz=k(),zz=x(),Wz=vr(),Xx=$();Gz({target:"Map",proto:!0,real:!0,forced:Kz},{keyOf:function(r){return Xx(Wz(zz(this)),function(t,n){if(n===r)return Xx.stop(t)},void 0,!0,!0).result}})});var Zx=l(()=>{"use strict";var Yz=p(),Xz=k(),Qz=te(),Zz=x(),Jz=j(),eW=pe(),rW=Ee(),tW=vr(),nW=$();Yz({target:"Map",proto:!0,real:!0,forced:Xz},{mapKeys:function(r){var t=Zz(this),n=tW(t),a=eW(r,arguments.length>1?arguments[1]:void 0,3),i=new(rW(t,Qz("Map"))),s=Jz(i.set);return nW(n,function(u,o){s.call(i,a(o,u,t),o)},void 0,!0,!0),i}})});var Jx=l(()=>{"use strict";var aW=p(),iW=k(),oW=te(),sW=x(),uW=j(),lW=pe(),cW=Ee(),dW=vr(),fW=$();aW({target:"Map",proto:!0,real:!0,forced:iW},{mapValues:function(r){var t=sW(this),n=dW(t),a=lW(r,arguments.length>1?arguments[1]:void 0,3),i=new(cW(t,oW("Map"))),s=uW(i.set);return fW(n,function(u,o){s.call(i,u,a(o,u,t))},void 0,!0,!0),i}})});var ew=l(()=>{"use strict";var vW=p(),pW=k(),gW=x(),hW=j(),mW=$();vW({target:"Map",proto:!0,real:!0,forced:pW},{merge:function(r){for(var t=gW(this),n=hW(t.set),a=0;a<arguments.length;)mW(arguments[a++],n,t,!0);return t}})});var rw=l(()=>{"use strict";var yW=p(),qW=k(),bW=x(),EW=j(),SW=vr(),IW=$();yW({target:"Map",proto:!0,real:!0,forced:qW},{reduce:function(r){var t=bW(this),n=SW(t),a=arguments.length<2,i=a?void 0:arguments[1];if(EW(r),IW(n,function(s,u){a?(a=!1,i=u):i=r(i,u,s,t)},void 0,!0,!0),a)throw TypeError("Reduce of empty map with no initial value");return i}})});var nw=l(()=>{"use strict";var xW=p(),wW=k(),AW=x(),_W=pe(),RW=vr(),tw=$();xW({target:"Map",proto:!0,real:!0,forced:wW},{some:function(r){var t=AW(this),n=RW(t),a=_W(r,arguments.length>1?arguments[1]:void 0,3);return tw(n,function(i,s){if(a(s,i,t))return tw.stop()},void 0,!0,!0).stopped}})});var iw=l(()=>{"use strict";var CW=p(),TW=k(),OW=x(),aw=j();CW({target:"Map",proto:!0,real:!0,forced:TW},{update:function(r,t){var n=OW(this),a=arguments.length;aw(t);var i=n.has(r);if(!i&&a<3)throw TypeError("Updating absent value");var s=i?n.get(r):aw(a>2?arguments[2]:void 0)(r,n);return n.set(r,t(s,r,n)),n}})});var vd=l((zpe,ow)=>{"use strict";var PW=x(),LW=j();ow.exports=function(){for(var e=PW(this),r=LW(e.add),t=0,n=arguments.length;t<n;t++)r.call(e,arguments[t]);return e}});var sw=l(()=>{"use strict";var NW=p(),MW=k(),DW=vd();NW({target:"Set",proto:!0,real:!0,forced:MW},{addAll:function(){return DW.apply(this,arguments)}})});var uw=l(()=>{"use strict";var UW=p(),jW=k(),kW=za();UW({target:"Set",proto:!0,real:!0,forced:jW},{deleteAll:function(){return kW.apply(this,arguments)}})});var vt=l((Zpe,lw)=>{var FW=k(),BW=Cn();lw.exports=FW?BW:function(e){return Set.prototype.values.call(e)}});var dw=l(()=>{"use strict";var $W=p(),VW=k(),HW=x(),GW=pe(),KW=vt(),cw=$();$W({target:"Set",proto:!0,real:!0,forced:VW},{every:function(r){var t=HW(this),n=KW(t),a=GW(r,arguments.length>1?arguments[1]:void 0,3);return!cw(n,function(i){if(!a(i,i,t))return cw.stop()},void 0,!1,!0).stopped}})});var fw=l(()=>{"use strict";var zW=p(),WW=k(),YW=te(),XW=x(),QW=j(),ZW=pe(),JW=Ee(),eY=vt(),rY=$();zW({target:"Set",proto:!0,real:!0,forced:WW},{filter:function(r){var t=XW(this),n=eY(t),a=ZW(r,arguments.length>1?arguments[1]:void 0,3),i=new(JW(t,YW("Set"))),s=QW(i.add);return rY(n,function(u){a(u,u,t)&&s.call(i,u)},void 0,!1,!0),i}})});var pw=l(()=>{"use strict";var tY=p(),nY=k(),aY=x(),iY=pe(),oY=vt(),vw=$();tY({target:"Set",proto:!0,real:!0,forced:nY},{find:function(r){var t=aY(this),n=oY(t),a=iY(r,arguments.length>1?arguments[1]:void 0,3);return vw(n,function(i){if(a(i,i,t))return vw.stop(i)},void 0,!1,!0).result}})});var gw=l(()=>{"use strict";var sY=p(),uY=k(),lY=x(),cY=vt(),dY=$();sY({target:"Set",proto:!0,real:!0,forced:uY},{join:function(r){var t=lY(this),n=cY(t),a=r===void 0?",":String(r),i=[];return dY(n,i.push,i,!1,!0),i.join(a)}})});var hw=l(()=>{"use strict";var fY=p(),vY=k(),pY=te(),gY=x(),hY=j(),mY=pe(),yY=Ee(),qY=vt(),bY=$();fY({target:"Set",proto:!0,real:!0,forced:vY},{map:function(r){var t=gY(this),n=qY(t),a=mY(r,arguments.length>1?arguments[1]:void 0,3),i=new(yY(t,pY("Set"))),s=hY(i.add);return bY(n,function(u){s.call(i,a(u,u,t))},void 0,!1,!0),i}})});var mw=l(()=>{"use strict";var EY=p(),SY=k(),IY=x(),xY=j(),wY=vt(),AY=$();EY({target:"Set",proto:!0,real:!0,forced:SY},{reduce:function(r){var t=IY(this),n=wY(t),a=arguments.length<2,i=a?void 0:arguments[1];if(xY(r),AY(n,function(s){a?(a=!1,i=s):i=r(i,s,s,t)},void 0,!1,!0),a)throw TypeError("Reduce of empty set with no initial value");return i}})});var qw=l(()=>{"use strict";var _Y=p(),RY=k(),CY=x(),TY=pe(),OY=vt(),yw=$();_Y({target:"Set",proto:!0,real:!0,forced:RY},{some:function(r){var t=CY(this),n=OY(t),a=TY(r,arguments.length>1?arguments[1]:void 0,3);return yw(n,function(i){if(a(i,i,t))return yw.stop()},void 0,!1,!0).stopped}})});var bw=l(()=>{"use strict";var PY=p(),LY=k(),NY=za();PY({target:"WeakMap",proto:!0,real:!0,forced:LY},{deleteAll:function(){return NY.apply(this,arguments)}})});var Ew=l(()=>{"use strict";var MY=p(),DY=k(),UY=vd();MY({target:"WeakSet",proto:!0,real:!0,forced:DY},{addAll:function(){return UY.apply(this,arguments)}})});var Sw=l(()=>{"use strict";var jY=p(),kY=k(),FY=za();jY({target:"WeakSet",proto:!0,real:!0,forced:kY},{deleteAll:function(){return FY.apply(this,arguments)}})});var Iw=l(()=>{Lx();Mx();Ux();Fx();Bx();Vx();Gx();Yx();Qx();Zx();Jx();ew();rw();nw();iw();sw();uw();dw();fw();pw();gw();hw();mw();qw();bw();Ew();Sw()});var Wa=l((Ege,Aw)=>{"use strict";var xw=j(),BY=pe(),ww=$();Aw.exports=function(r){var t=arguments.length,n=t>1?arguments[1]:void 0,a,i,s,u;return xw(this),a=n!==void 0,a&&xw(n),r==null?new this:(i=[],a?(s=0,u=BY(n,t>2?arguments[2]:void 0,2),ww(r,function(o){i.push(u(o,s++))})):ww(r,i.push,i),new this(i))}});var _w=l(()=>{var $Y=p(),VY=Wa();$Y({target:"Map",stat:!0},{from:VY})});var Ya=l((xge,Rw)=>{"use strict";Rw.exports=function(){for(var r=arguments.length,t=new Array(r);r--;)t[r]=arguments[r];return new this(t)}});var Cw=l(()=>{var HY=p(),GY=Ya();HY({target:"Map",stat:!0},{of:GY})});var Tw=l(()=>{var KY=p(),zY=Wa();KY({target:"Set",stat:!0},{from:zY})});var Ow=l(()=>{var WY=p(),YY=Ya();WY({target:"Set",stat:!0},{of:YY})});var Pw=l(()=>{var XY=p(),QY=Wa();XY({target:"WeakMap",stat:!0},{from:QY})});var Lw=l(()=>{var ZY=p(),JY=Ya();ZY({target:"WeakMap",stat:!0},{of:JY})});var Nw=l(()=>{var eX=p(),rX=Wa();eX({target:"WeakSet",stat:!0},{from:rX})});var Mw=l(()=>{var tX=p(),nX=Ya();tX({target:"WeakSet",stat:!0},{of:nX})});var Dw=l(()=>{_w();Cw();Tw();Ow();Pw();Lw();Nw();Mw()});var pd=l((Bge,kw)=>{var aX=lo(),iX=ho(),oX=je(),Uw=Q(),Vo=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=oX(null)};Vo.prototype.get=function(e,r){return this[e]||(this[e]=r())};Vo.prototype.next=function(e,r,t){var n=t?this.objectsByIndex[e]||(this.objectsByIndex[e]=new iX):this.primitives||(this.primitives=new aX),a=n.get(r);return a||n.set(r,a=new Vo),a};var jw=new Vo;kw.exports=function(){var e=jw,r=arguments.length,t,n;for(t=0;t<r;t++)Uw(n=arguments[t])&&(e=e.next(t,n,!0));if(this===Object&&e===jw)throw TypeError("Composite keys must contain a non-primitive component");for(t=0;t<r;t++)Uw(n=arguments[t])||(e=e.next(t,n,!1));return e}});var Bw=l(()=>{var sX=p(),uX=pd(),lX=te(),Fw=je(),cX=function(){var e=lX("Object","freeze");return e?e(Fw(null)):Fw(null)};sX({global:!0},{compositeKey:function(){return uX.apply(Object,arguments).get("object",cX)}})});var Vw=l(()=>{var dX=p(),fX=pd(),$w=te();dX({global:!0},{compositeSymbol:function(){return arguments.length===1&&typeof arguments[0]=="string"?$w("Symbol").for(arguments[0]):fX.apply(null,arguments).get("symbol",$w("Symbol"))}})});var Hw=l(()=>{Bw();Vw()});var Gw=l(()=>{var vX=p(),pX=Math.min,gX=Math.max;vX({target:"Math",stat:!0},{clamp:function(r,t,n){return pX(n,gX(t,r))}})});var Kw=l(()=>{var hX=p();hX({target:"Math",stat:!0},{DEG_PER_RAD:Math.PI/180})});var zw=l(()=>{var mX=p(),yX=180/Math.PI;mX({target:"Math",stat:!0},{degrees:function(r){return r*yX}})});var gd=l((ehe,Ww)=>{Ww.exports=Math.scale||function(r,t,n,a,i){return arguments.length===0||r!=r||t!=t||n!=n||a!=a||i!=i?NaN:r===1/0||r===-1/0?r:(r-t)*(i-a)/(n-t)+a}});var Yw=l(()=>{var qX=p(),bX=gd(),EX=ul();qX({target:"Math",stat:!0},{fscale:function(r,t,n,a,i){return EX(bX(r,t,n,a,i))}})});var Xw=l(()=>{var SX=p();SX({target:"Math",stat:!0},{RAD_PER_DEG:180/Math.PI})});var Qw=l(()=>{var IX=p(),xX=Math.PI/180;IX({target:"Math",stat:!0},{radians:function(r){return r*xX}})});var Zw=l(()=>{var wX=p(),AX=gd();wX({target:"Math",stat:!0},{scale:AX})});var Jw=l(()=>{Gw();Kw();zw();Yw();Xw();Qw();Zw()});var e2=l(()=>{var _X=p();_X({target:"Math",stat:!0},{signbit:function(r){return(r=+r)==r&&r==0?1/r==-1/0:r<0}})});var r2=l(()=>{e2()});var t2=l(()=>{"use strict";var RX=p(),CX=Be(),TX=Xi(),Ho="Invalid number representation",OX="Invalid radix",PX=/^[\da-z]+$/;RX({target:"Number",stat:!0},{fromString:function(r,t){var n=1,a,i;if(typeof r!="string")throw TypeError(Ho);if(!r.length||r.charAt(0)=="-"&&(n=-1,r=r.slice(1),!r.length))throw SyntaxError(Ho);if(a=t===void 0?10:CX(t),a<2||a>36)throw RangeError(OX);if(!PX.test(r)||(i=TX(r,a)).toString(a)!==r)throw SyntaxError(Ho);return n*i}})});var n2=l(()=>{t2()});var Go=l((qhe,o2)=>{"use strict";var a2=ge(),LX=_t(),NX=le(),MX=xt(),DX=ne(),i2="Object Iterator",UX=a2.set,jX=a2.getterFor(i2);o2.exports=LX(function(r,t){var n=DX(r);UX(this,{type:i2,mode:t,object:n,keys:MX(n),index:0})},"Object",function(){for(var r=jX(this),t=r.keys;;){if(t===null||r.index>=t.length)return r.object=r.keys=null,{value:void 0,done:!0};var n=t[r.index++],a=r.object;if(!!NX(a,n)){switch(r.mode){case"keys":return{value:n,done:!1};case"values":return{value:a[n],done:!1}}return{value:[n,a[n]],done:!1}}}})});var s2=l(()=>{"use strict";var kX=p(),FX=Go();kX({target:"Object",stat:!0},{iterateEntries:function(r){return new FX(r,"entries")}})});var u2=l(()=>{"use strict";var BX=p(),$X=Go();BX({target:"Object",stat:!0},{iterateKeys:function(r){return new $X(r,"keys")}})});var l2=l(()=>{"use strict";var VX=p(),HX=Go();VX({target:"Object",stat:!0},{iterateValues:function(r){return new HX(r,"values")}})});var c2=l(()=>{s2();u2();l2()});var g2=l(()=>{"use strict";var GX=p(),Qa=Z(),KX=ot(),yd=j(),hd=x(),zX=Q(),WX=Je(),f2=re().f,YX=de(),zo=Ir(),XX=Cn(),d2=$(),Nn=Rl(),QX=W(),v2=ge(),p2=QX("observable"),pr=v2.get,qd=v2.set,Xa=function(e){return e==null?void 0:yd(e)},Ko=function(e){var r=e.cleanup;if(r){e.cleanup=void 0;try{r()}catch(t){Nn(t)}}},pt=function(e){return e.observer===void 0},md=function(e,r){if(!Qa){e.closed=!0;var t=r.subscriptionObserver;t&&(t.closed=!0)}r.observer=void 0},bd=function(e,r){var t=qd(this,{cleanup:void 0,observer:hd(e),subscriptionObserver:void 0}),n;Qa||(this.closed=!1);try{(n=Xa(e.start))&&n.call(e,this)}catch(u){Nn(u)}if(!pt(t)){var a=t.subscriptionObserver=new Ed(this);try{var i=r(a),s=i;i!=null&&(t.cleanup=typeof i.unsubscribe=="function"?function(){s.unsubscribe()}:yd(i))}catch(u){a.error(u);return}pt(t)&&Ko(t)}};bd.prototype=zo({},{unsubscribe:function(){var r=pr(this);pt(r)||(md(this,r),Ko(r))}});Qa&&f2(bd.prototype,"closed",{configurable:!0,get:function(){return pt(pr(this))}});var Ed=function(e){qd(this,{subscription:e}),Qa||(this.closed=!1)};Ed.prototype=zo({},{next:function(r){var t=pr(pr(this).subscription);if(!pt(t)){var n=t.observer;try{var a=Xa(n.next);a&&a.call(n,r)}catch(i){Nn(i)}}},error:function(r){var t=pr(this).subscription,n=pr(t);if(!pt(n)){var a=n.observer;md(t,n);try{var i=Xa(a.error);i?i.call(a,r):Nn(r)}catch(s){Nn(s)}Ko(n)}},complete:function(){var r=pr(this).subscription,t=pr(r);if(!pt(t)){var n=t.observer;md(r,t);try{var a=Xa(n.complete);a&&a.call(n)}catch(i){Nn(i)}Ko(t)}}});Qa&&f2(Ed.prototype,"closed",{configurable:!0,get:function(){return pt(pr(pr(this).subscription))}});var jt=function(r){WX(this,jt,"Observable"),qd(this,{subscriber:yd(r)})};zo(jt.prototype,{subscribe:function(r){var t=arguments.length;return new bd(typeof r=="function"?{next:r,error:t>1?arguments[1]:void 0,complete:t>2?arguments[2]:void 0}:zX(r)?r:{},pr(this).subscriber)}});zo(jt,{from:function(r){var t=typeof this=="function"?this:jt,n=Xa(hd(r)[p2]);if(n){var a=hd(n.call(r));return a.constructor===t?a:new t(function(s){return a.subscribe(s)})}var i=XX(r);return new t(function(s){d2(i,function(u){if(s.next(u),s.closed)return d2.stop()},void 0,!1,!0),s.complete()})},of:function(){for(var r=typeof this=="function"?this:jt,t=arguments.length,n=new Array(t),a=0;a<t;)n[a]=arguments[a++];return new r(function(i){for(var s=0;s<t;s++)if(i.next(n[s]),i.closed)return;i.complete()})}});YX(jt.prototype,p2,function(){return this});GX({global:!0},{Observable:jt});KX("Observable")});var h2=l(()=>{var ZX=qe();ZX("observable")});var m2=l(()=>{g2();h2()});var y2=l(()=>{var JX=qe();JX("patternMatch")});var q2=l(()=>{y2()});var b2=l(()=>{"use strict";var eQ=p(),rQ=yn(),tQ=Aa();eQ({target:"Promise",stat:!0},{try:function(e){var r=rQ.f(this),t=tQ(e);return(t.error?r.reject:r.resolve)(t.value),r.promise}})});var E2=l(()=>{b2()});var w2=l(()=>{var nQ=p(),aQ=x(),iQ=Ju(),oQ=_t(),S2=ge(),I2="Seeded Random",x2=I2+" Generator",sQ=S2.set,uQ=S2.getterFor(x2),lQ='Math.seededPRNG() argument should have a "seed" field with a finite value.',cQ=oQ(function(r){sQ(this,{type:x2,seed:r%2147483647})},I2,function(){var r=uQ(this),t=r.seed=(r.seed*1103515245+12345)%2147483647;return{value:(t&1073741823)/1073741823,done:!1}});nQ({target:"Math",stat:!0,forced:!0},{seededPRNG:function(r){var t=aQ(r).seed;if(!iQ(t))throw TypeError(lQ);return new cQ(t)}})});var A2=l(()=>{w2()});var T2=l(()=>{"use strict";var dQ=p(),fQ=_t(),vQ=Ie(),_2=ge(),R2=Rt(),pQ=R2.codeAt,gQ=R2.charAt,C2="String Iterator",hQ=_2.set,mQ=_2.getterFor(C2),yQ=fQ(function(r){hQ(this,{type:C2,string:r,index:0})},"String",function(){var r=mQ(this),t=r.string,n=r.index,a;return n>=t.length?{value:void 0,done:!0}:(a=gQ(t,n),r.index+=a.length,{value:{codePoint:pQ(a,0),position:n},done:!1})});dQ({target:"String",proto:!0},{codePoints:function(){return new yQ(String(vQ(this)))}})});var O2=l(()=>{T2()});var N2=l(()=>{var qQ=p(),bQ=kr(),P2=Object.isFrozen,L2=function(e,r){if(!P2||!bQ(e)||!P2(e))return!1;for(var t=0,n=e.length,a;t<n;)if(a=e[t++],!(typeof a=="string"||r&&typeof a>"u"))return!1;return n!==0};qQ({target:"Array",stat:!0},{isTemplateObject:function(r){if(!L2(r,!0))return!1;var t=r.raw;return!(t.length!==r.length||!L2(t,!1))}})});var M2=l(()=>{N2()});var V2=l((eme,$2)=>{var F2=B(),B2=vi(),Wo=Pe(),EQ=le(),SQ=de(),IQ=W(),xQ=k(),D2="USE_FUNCTION_CONSTRUCTOR",U2=IQ("asyncIterator"),j2=F2.AsyncIterator,k2=B2.AsyncIteratorPrototype,gt,Sd;if(!xQ){if(k2)gt=k2;else if(typeof j2=="function")gt=j2.prototype;else if(B2[D2]||F2[D2])try{Sd=Wo(Wo(Wo(Function("return async function*(){}()")()))),Wo(Sd)===Object.prototype&&(gt=Sd)}catch(e){}}gt||(gt={});EQ(gt,U2)||SQ(gt,U2,function(){return this});$2.exports=gt});var z2=l(()=>{"use strict";var wQ=p(),AQ=Je(),G2=de(),K2=le(),_Q=W(),Mn=V2(),RQ=k(),H2=_Q("toStringTag"),Yo=function(){AQ(this,Yo)};Yo.prototype=Mn;K2(Mn,H2)||G2(Mn,H2,"AsyncIterator");(!K2(Mn,"constructor")||Mn.constructor===Object)&&G2(Mn,"constructor",Yo);wQ({global:!0,forced:RQ},{AsyncIterator:Yo})});var ht=l((nme,X2)=>{"use strict";var CQ=ir(),TQ=j(),W2=x(),OQ=je(),PQ=de(),LQ=Ir(),NQ=W(),Y2=ge(),MQ=te(),Dn=MQ("Promise"),DQ=Y2.set,Id=Y2.get,UQ=NQ("toStringTag"),jQ=function(e){var r=Id(this).iterator,t=r.return;return t===void 0?Dn.resolve({done:!0,value:e}):W2(t.call(r,e))},kQ=function(e){var r=Id(this).iterator,t=r.throw;return t===void 0?Dn.reject(e):t.call(r,e)};X2.exports=function(e,r){var t=function(a){a.next=TQ(a.iterator.next),a.done=!1,DQ(this,a)};return t.prototype=LQ(OQ(CQ.AsyncIterator.prototype),{next:function(a){var i=Id(this);if(i.done)return Dn.resolve({done:!0,value:void 0});try{return Dn.resolve(W2(e.call(i,a,Dn)))}catch(s){return Dn.reject(s)}},return:jQ,throw:kQ}),r||PQ(t.prototype,UQ,"Generator"),t}});var Q2=l(()=>{"use strict";var FQ=p(),xd=x(),BQ=ht(),$Q=BQ(function(e,r){var t=this,n=t.iterator;return r.resolve(xd(t.next.call(n,e))).then(function(a){return xd(a).done?(t.done=!0,{done:!0,value:void 0}):{done:!1,value:[t.index++,a.value]}})});FQ({target:"AsyncIterator",proto:!0,real:!0},{asIndexedPairs:function(){return new $Q({iterator:xd(this),index:0})}})});var Z2=l(()=>{"use strict";var VQ=p(),wd=x(),HQ=An(),GQ=ht(),KQ=GQ(function(e,r){var t=this;return new r(function(n,a){var i=function(){try{r.resolve(wd(t.next.call(t.iterator,t.remaining?void 0:e))).then(function(s){try{wd(s).done?(t.done=!0,n({done:!0,value:void 0})):t.remaining?(t.remaining--,i()):n({done:!1,value:s.value})}catch(u){a(u)}},a)}catch(s){a(s)}};i()})});VQ({target:"AsyncIterator",proto:!0,real:!0},{drop:function(r){return new KQ({iterator:wd(this),remaining:HQ(r)})}})});var Un=l((ume,e3)=>{"use strict";var J2=j(),Ad=x(),zQ=te(),_d=zQ("Promise"),WQ=[].push,Za=function(e){var r=e==0,t=e==1,n=e==2,a=e==3;return function(i,s){Ad(i);var u=J2(i.next),o=r?[]:void 0;return r||J2(s),new _d(function(c,f){var d=function(){try{_d.resolve(Ad(u.call(i))).then(function(v){try{if(Ad(v).done)c(r?o:a?!1:n||void 0);else{var q=v.value;r?(WQ.call(o,q),d()):_d.resolve(s(q)).then(function(g){t?d():n?g?d():c(!1):g?c(a||q):d()},f)}}catch(g){f(g)}},f)}catch(v){f(v)}};d()})}};e3.exports={toArray:Za(0),forEach:Za(1),every:Za(2),some:Za(3),find:Za(4)}});var r3=l(()=>{"use strict";var YQ=p(),XQ=Un().every;YQ({target:"AsyncIterator",proto:!0,real:!0},{every:function(r){return XQ(this,r)}})});var t3=l(()=>{"use strict";var QQ=p(),ZQ=j(),Rd=x(),JQ=ht(),eZ=JQ(function(e,r){var t=this,n=t.filterer;return new r(function(a,i){var s=function(){try{r.resolve(Rd(t.next.call(t.iterator,e))).then(function(u){try{if(Rd(u).done)t.done=!0,a({done:!0,value:void 0});else{var o=u.value;r.resolve(n(o)).then(function(c){c?a({done:!1,value:o}):s()},i)}}catch(c){i(c)}},i)}catch(u){i(u)}};s()})});QQ({target:"AsyncIterator",proto:!0,real:!0},{filter:function(r){return new eZ({iterator:Rd(this),filterer:ZQ(r)})}})});var n3=l(()=>{"use strict";var rZ=p(),tZ=Un().find;rZ({target:"AsyncIterator",proto:!0,real:!0},{find:function(r){return tZ(this,r)}})});var Cd=l((gme,a3)=>{var nZ=Vr(),aZ=W(),iZ=aZ("asyncIterator");a3.exports=function(e){var r=e[iZ];return r===void 0?nZ(e):r}});var o3=l(()=>{"use strict";var oZ=p(),i3=j(),jn=x(),sZ=ht(),uZ=Cd(),lZ=sZ(function(e,r){var t=this,n=t.mapper,a,i;return new r(function(s,u){var o=function(){try{r.resolve(jn(t.next.call(t.iterator,e))).then(function(f){try{jn(f).done?(t.done=!0,s({done:!0,value:void 0})):r.resolve(n(f.value)).then(function(d){try{if(i=uZ(d),i!==void 0)return t.innerIterator=a=jn(i.call(d)),t.innerNext=i3(a.next),c();u(TypeError(".flatMap callback should return an iterable object"))}catch(v){u(v)}},u)}catch(d){u(d)}},u)}catch(f){u(f)}},c=function(){if(a=t.innerIterator)try{r.resolve(jn(t.innerNext.call(a))).then(function(f){try{jn(f).done?(t.innerIterator=t.innerNext=null,o()):s({done:!1,value:f.value})}catch(d){u(d)}},u)}catch(f){u(f)}else o()};c()})});oZ({target:"AsyncIterator",proto:!0,real:!0},{flatMap:function(r){return new lZ({iterator:jn(this),mapper:i3(r),innerIterator:null,innerNext:null})}})});var s3=l(()=>{"use strict";var cZ=p(),dZ=Un().forEach;cZ({target:"AsyncIterator",proto:!0,real:!0},{forEach:function(r){return dZ(this,r)}})});var u3=l(()=>{var fZ=p(),vZ=ir(),pZ=j(),gZ=x(),hZ=ne(),mZ=ht(),yZ=Cd(),qZ=vZ.AsyncIterator,bZ=mZ(function(e){return gZ(this.next.call(this.iterator,e))},!0);fZ({target:"AsyncIterator",stat:!0},{from:function(r){var t=hZ(r),n=yZ(t),a;if(n!=null){if(a=pZ(n).call(t),a instanceof qZ)return a}else a=t;return new bZ({iterator:a})}})});var l3=l(()=>{"use strict";var EZ=p(),SZ=j(),Td=x(),IZ=ht(),xZ=IZ(function(e,r){var t=this,n=t.mapper;return r.resolve(Td(t.next.call(t.iterator,e))).then(function(a){return Td(a).done?(t.done=!0,{done:!0,value:void 0}):r.resolve(n(a.value)).then(function(i){return{done:!1,value:i}})})});EZ({target:"AsyncIterator",proto:!0,real:!0},{map:function(r){return new xZ({iterator:Td(this),mapper:SZ(r)})}})});var d3=l(()=>{"use strict";var wZ=p(),c3=j(),Od=x(),AZ=te(),Pd=AZ("Promise");wZ({target:"AsyncIterator",proto:!0,real:!0},{reduce:function(r){var t=Od(this),n=c3(t.next),a=arguments.length<2,i=a?void 0:arguments[1];return c3(r),new Pd(function(s,u){var o=function(){try{Pd.resolve(Od(n.call(t))).then(function(c){try{if(Od(c).done)a?u(TypeError("Reduce of empty iterator with no initial value")):s(i);else{var f=c.value;a?(a=!1,i=f,o()):Pd.resolve(r(i,f)).then(function(d){i=d,o()},u)}}catch(d){u(d)}},u)}catch(c){u(c)}};o()})}})});var f3=l(()=>{"use strict";var _Z=p(),RZ=Un().some;_Z({target:"AsyncIterator",proto:!0,real:!0},{some:function(r){return RZ(this,r)}})});var v3=l(()=>{"use strict";var CZ=p(),TZ=x(),OZ=An(),PZ=ht(),LZ=PZ(function(e){return this.remaining--?this.next.call(this.iterator,e):(this.done=!0,{done:!0,value:void 0})});CZ({target:"AsyncIterator",proto:!0,real:!0},{take:function(r){return new LZ({iterator:TZ(this),remaining:OZ(r)})}})});var p3=l(()=>{"use strict";var NZ=p(),MZ=Un().toArray;NZ({target:"AsyncIterator",proto:!0,real:!0},{toArray:function(){return MZ(this)}})});var b3=l(()=>{"use strict";var DZ=p(),UZ=B(),jZ=Je(),Nd=de(),kZ=L(),h3=le(),m3=W(),Xr=Di().IteratorPrototype,y3=k(),FZ=m3("iterator"),g3=m3("toStringTag"),Ld=UZ.Iterator,q3=y3||typeof Ld!="function"||Ld.prototype!==Xr||!kZ(function(){Ld({})}),Xo=function(){jZ(this,Xo)};y3&&(Xr={},Nd(Xr,FZ,function(){return this}));h3(Xr,g3)||Nd(Xr,g3,"Iterator");(q3||!h3(Xr,"constructor")||Xr.constructor===Object)&&Nd(Xr,"constructor",Xo);Xo.prototype=Xr;DZ({global:!0,forced:q3},{Iterator:Xo})});var mt=l((Nme,S3)=>{"use strict";var BZ=ir(),$Z=j(),VZ=x(),HZ=je(),GZ=de(),KZ=Ir(),zZ=W(),E3=ge(),WZ=E3.set,Md=E3.get,YZ=zZ("toStringTag"),XZ=function(e){var r=Md(this).iterator,t=r.return;return t===void 0?{done:!0,value:e}:VZ(t.call(r,e))},QZ=function(e){var r=Md(this).iterator,t=r.throw;if(t===void 0)throw e;return t.call(r,e)};S3.exports=function(e,r){var t=function(a){a.next=$Z(a.iterator.next),a.done=!1,WZ(this,a)};return t.prototype=KZ(HZ(BZ.Iterator.prototype),{next:function(){var a=Md(this),i=a.done?void 0:e.apply(a,arguments);return{done:a.done,value:i}},return:XZ,throw:QZ}),r||GZ(t.prototype,YZ,"Generator"),t}});var x3=l(()=>{"use strict";var ZZ=p(),I3=x(),JZ=mt(),eJ=JZ(function(e){var r=I3(this.next.call(this.iterator,e)),t=this.done=!!r.done;if(!t)return[this.index++,r.value]});ZZ({target:"Iterator",proto:!0,real:!0},{asIndexedPairs:function(){return new eJ({iterator:I3(this),index:0})}})});var w3=l(()=>{"use strict";var rJ=p(),Dd=x(),tJ=An(),nJ=mt(),aJ=nJ(function(e){for(var r=this.iterator,t=this.next,n,a;this.remaining;)if(this.remaining--,n=Dd(t.call(r)),a=this.done=!!n.done,a)return;if(n=Dd(t.call(r,e)),a=this.done=!!n.done,!a)return n.value});rJ({target:"Iterator",proto:!0,real:!0},{drop:function(r){return new aJ({iterator:Dd(this),remaining:tJ(r)})}})});var _3=l(()=>{"use strict";var iJ=p(),A3=$(),oJ=j(),sJ=x();iJ({target:"Iterator",proto:!0,real:!0},{every:function(r){return sJ(this),oJ(r),!A3(this,function(t){if(!r(t))return A3.stop()},void 0,!1,!0).stopped}})});var C3=l(()=>{"use strict";var uJ=p(),lJ=j(),R3=x(),cJ=mt(),dJ=cn(),fJ=cJ(function(e){for(var r=this.iterator,t=this.filterer,n=this.next,a,i,s;;){if(a=R3(n.call(r,e)),i=this.done=!!a.done,i)return;if(s=a.value,dJ(r,t,s))return s}});uJ({target:"Iterator",proto:!0,real:!0},{filter:function(r){return new fJ({iterator:R3(this),filterer:lJ(r)})}})});var O3=l(()=>{"use strict";var vJ=p(),T3=$(),pJ=j(),gJ=x();vJ({target:"Iterator",proto:!0,real:!0},{find:function(r){return gJ(this),pJ(r),T3(this,function(t){if(r(t))return T3.stop(t)},void 0,!1,!0).result}})});var L3=l(()=>{"use strict";var hJ=p(),P3=j(),Qo=x(),mJ=Vr(),yJ=mt(),qJ=cn(),bJ=yJ(function(e){for(var r=this.iterator,t,n,a,i;;){if(i=this.innerIterator){if(t=Qo(this.innerNext.call(i)),!t.done)return t.value;this.innerIterator=this.innerNext=null}if(t=Qo(this.next.call(r,e)),this.done=!!t.done)return;if(n=qJ(r,this.mapper,t.value),a=mJ(n),a===void 0)throw TypeError(".flatMap callback should return an iterable object");this.innerIterator=i=Qo(a.call(n)),this.innerNext=P3(i.next)}});hJ({target:"Iterator",proto:!0,real:!0},{flatMap:function(r){return new bJ({iterator:Qo(this),mapper:P3(r),innerIterator:null,innerNext:null})}})});var N3=l(()=>{"use strict";var EJ=p(),SJ=$(),IJ=x();EJ({target:"Iterator",proto:!0,real:!0},{forEach:function(r){SJ(IJ(this),r,void 0,!1,!0)}})});var M3=l(()=>{var xJ=p(),wJ=ir(),AJ=j(),_J=x(),RJ=ne(),CJ=mt(),TJ=Vr(),OJ=wJ.Iterator,PJ=CJ(function(e){var r=_J(this.next.call(this.iterator,e)),t=this.done=!!r.done;if(!t)return r.value},!0);xJ({target:"Iterator",stat:!0},{from:function(r){var t=RJ(r),n=TJ(t),a;if(n!=null){if(a=AJ(n).call(t),a instanceof OJ)return a}else a=t;return new PJ({iterator:a})}})});var U3=l(()=>{"use strict";var LJ=p(),NJ=j(),D3=x(),MJ=mt(),DJ=cn(),UJ=MJ(function(e){var r=this.iterator,t=D3(this.next.call(r,e)),n=this.done=!!t.done;if(!n)return DJ(r,this.mapper,t.value)});LJ({target:"Iterator",proto:!0,real:!0},{map:function(r){return new UJ({iterator:D3(this),mapper:NJ(r)})}})});var j3=l(()=>{"use strict";var jJ=p(),kJ=$(),FJ=j(),BJ=x();jJ({target:"Iterator",proto:!0,real:!0},{reduce:function(r){BJ(this),FJ(r);var t=arguments.length<2,n=t?void 0:arguments[1];if(kJ(this,function(a){t?(t=!1,n=a):n=r(n,a)},void 0,!1,!0),t)throw TypeError("Reduce of empty iterator with no initial value");return n}})});var F3=l(()=>{"use strict";var $J=p(),k3=$(),VJ=j(),HJ=x();$J({target:"Iterator",proto:!0,real:!0},{some:function(r){return HJ(this),VJ(r),k3(this,function(t){if(r(t))return k3.stop()},void 0,!1,!0).stopped}})});var $3=l(()=>{"use strict";var GJ=p(),B3=x(),KJ=An(),zJ=mt(),WJ=zJ(function(e){if(!this.remaining--){this.done=!0;return}var r=B3(this.next.call(this.iterator,e)),t=this.done=!!r.done;if(!t)return r.value});GJ({target:"Iterator",proto:!0,real:!0},{take:function(r){return new WJ({iterator:B3(this),remaining:KJ(r)})}})});var V3=l(()=>{"use strict";var YJ=p(),XJ=$(),QJ=x(),ZJ=[].push;YJ({target:"Iterator",proto:!0,real:!0},{toArray:function(){var r=[];return XJ(QJ(this),ZJ,r,!1,!0),r}})});var H3=l(()=>{z2();Q2();Z2();r3();t3();n3();o3();s3();u3();l3();d3();f3();v3();p3();b3();x3();w3();_3();C3();O3();L3();N3();M3();U3();j3();F3();$3();V3()});var Zo=l((lye,G3)=>{"use strict";var JJ=x();G3.exports=function(r,t){var n=JJ(this),a=arguments.length>2?arguments[2]:void 0,i;if(typeof t!="function"&&typeof a!="function")throw TypeError("At least one callback required");return n.has(r)?(i=n.get(r),typeof t=="function"&&(i=t(i),n.set(r,i))):typeof a=="function"&&(i=a(),n.set(r,i)),i}});var K3=l(()=>{"use strict";var eee=p(),ree=k(),tee=Zo();eee({target:"Map",proto:!0,real:!0,forced:ree},{updateOrInsert:tee})});var z3=l(()=>{"use strict";var nee=p(),aee=k(),iee=Zo();nee({target:"Map",proto:!0,real:!0,forced:aee},{upsert:iee})});var W3=l(()=>{"use strict";var oee=p(),see=k(),uee=Zo();oee({target:"WeakMap",proto:!0,real:!0,forced:see},{upsert:uee})});var Y3=l(()=>{K3();z3();W3()});var X3=l(()=>{"use strict";var lee=p(),cee=k(),dee=te(),fee=x(),vee=j(),pee=Ee(),gee=$();lee({target:"Set",proto:!0,real:!0,forced:cee},{difference:function(r){var t=fee(this),n=new(pee(t,dee("Set")))(t),a=vee(n.delete);return gee(r,function(i){a.call(n,i)}),n}})});var Z3=l(()=>{"use strict";var hee=p(),mee=k(),yee=te(),qee=x(),Q3=j(),bee=Ee(),Eee=$();hee({target:"Set",proto:!0,real:!0,forced:mee},{intersection:function(r){var t=qee(this),n=new(bee(t,yee("Set"))),a=Q3(t.has),i=Q3(n.add);return Eee(r,function(s){a.call(t,s)&&i.call(n,s)}),n}})});var eA=l(()=>{"use strict";var See=p(),Iee=k(),xee=x(),wee=j(),J3=$();See({target:"Set",proto:!0,real:!0,forced:Iee},{isDisjointFrom:function(r){var t=xee(this),n=wee(t.has);return!J3(r,function(a){if(n.call(t,a)===!0)return J3.stop()}).stopped}})});var tA=l(()=>{"use strict";var Aee=p(),_ee=k(),Ree=te(),Cee=x(),Tee=j(),Oee=Cn(),rA=$();Aee({target:"Set",proto:!0,real:!0,forced:_ee},{isSubsetOf:function(r){var t=Oee(this),n=Cee(r),a=n.has;return typeof a!="function"&&(n=new(Ree("Set"))(r),a=Tee(n.has)),!rA(t,function(i){if(a.call(n,i)===!1)return rA.stop()},void 0,!1,!0).stopped}})});var aA=l(()=>{"use strict";var Pee=p(),Lee=k(),Nee=x(),Mee=j(),nA=$();Pee({target:"Set",proto:!0,real:!0,forced:Lee},{isSupersetOf:function(r){var t=Nee(this),n=Mee(t.has);return!nA(r,function(a){if(n.call(t,a)===!1)return nA.stop()}).stopped}})});var iA=l(()=>{"use strict";var Dee=p(),Uee=k(),jee=te(),kee=x(),Fee=j(),Bee=Ee(),$ee=$();Dee({target:"Set",proto:!0,real:!0,forced:Uee},{union:function(r){var t=kee(this),n=new(Bee(t,jee("Set")))(t);return $ee(r,Fee(n.add),n),n}})});var sA=l(()=>{"use strict";var Vee=p(),Hee=k(),Gee=te(),Kee=x(),oA=j(),zee=Ee(),Wee=$();Vee({target:"Set",proto:!0,real:!0,forced:Hee},{symmetricDifference:function(r){var t=Kee(this),n=new(zee(t,Gee("Set")))(t),a=oA(n.delete),i=oA(n.add);return Wee(r,function(s){a.call(n,s)||i.call(n,s)}),n}})});var uA=l(()=>{X3();Z3();eA();tA();aA();iA();sA()});var lA=l(()=>{var Yee=qe();Yee("asyncDispose")});var cA=l(()=>{var Xee=qe();Xee("dispose")});var dA=l(()=>{lA();cA()});var gA=l(()=>{"use strict";var Qee=p(),vA=Z(),Zee=Pe(),fA=it(),Jee=je(),ere=re(),Ud=qr(),rre=$(),tre=de(),pA=ge(),nre=pA.set,are=pA.getterFor("AggregateError"),kn=function(r,t){var n=this;if(!(n instanceof kn))return new kn(r,t);fA&&(n=fA(new Error(t),Zee(n)));var a=[];return rre(r,a.push,a),vA?nre(n,{errors:a,type:"AggregateError"}):n.errors=a,t!==void 0&&tre(n,"message",String(t)),n};kn.prototype=Jee(Error.prototype,{constructor:Ud(5,kn),message:Ud(5,""),name:Ud(5,"AggregateError")});vA&&ere.f(kn.prototype,"errors",{get:function(){return are(this).errors},configurable:!0});Qee({global:!0},{AggregateError:kn})});var yA=l(()=>{"use strict";var ire=p(),ore=j(),hA=te(),sre=yn(),ure=Aa(),lre=$(),mA="No one promise resolved";ire({target:"Promise",stat:!0},{any:function(r){var t=this,n=sre.f(t),a=n.resolve,i=n.reject,s=ure(function(){var u=ore(t.resolve),o=[],c=0,f=1,d=!1;lre(r,function(v){var q=c++,g=!1;o.push(void 0),f++,u.call(t,v).then(function(y){g||d||(d=!0,a(y))},function(y){g||d||(g=!0,o[q]=y,--f||i(new(hA("AggregateError"))(o,mA)))})}),--f||i(new(hA("AggregateError"))(o,mA))});return s.error&&i(s.value),n.promise}})});var qA=l(()=>{gA();yA()});var EA=l(()=>{"use strict";var cre=p(),bA=Ie(),dre=vn(),fre=Ct(),vre=W(),pre=k(),gre=vre("replace"),hre=RegExp.prototype;cre({target:"String",proto:!0},{replaceAll:function e(r,t){var n=bA(this),a,i,s,u,o,c,f,d,v;if(r!=null){if(a=dre(r),a&&(i=String(bA("flags"in hre?r.flags:fre.call(r))),!~i.indexOf("g")))throw TypeError("`.replaceAll` does not allow non-global regexes");if(s=r[gre],s!==void 0)return s.call(r,n,t);if(pre&&a)return String(n).replace(r,t)}if(u=String(n),o=String(r),o==="")return e.call(u,/(?:)/g,t);if(c=u.split(o),typeof t!="function")return c.join(String(t));for(f=c[0],d=f.length,v=1;v<c.length;v++)f+=String(t(o,d,u)),d+=o.length+c[v].length,f+=c[v];return f}})});var SA=l(()=>{var mre=qe();mre("replaceAll")});var IA=l(()=>{EA();SA()});var xA=l(()=>{pu()});var AA=l((e0e,wA)=>{xA();var yre=B();wA.exports=yre});var _A=l(()=>{Ul()});var RA=l(()=>{_A()});var CA=l(()=>{Fu()});var TA=l(()=>{CA()});var PA=l((l0e,OA)=>{AA();RA();TA();var qre=ir();OA.exports=qre});var NA=l((c0e,LA)=>{qA();IA();var bre=PA();LA.exports=bre});var DA=l((d0e,MA)=>{M2();H3();Y3();uA();dA();var Ere=NA();MA.exports=Ere});var jA=l((f0e,UA)=>{Px();Iw();Dw();Hw();Jw();r2();n2();c2();m2();q2();E2();A2();O2();var Sre=DA();UA.exports=Sre});var FA=l((v0e,kA)=>{RI();TI();_x();var Ire=jA();kA.exports=Ire});var $A=l((p0e,BA)=>{II();var xre=FA();BA.exports=xre});var HA=l((g0e,VA)=>{var wre=$A();VA.exports=wre});var GA=l(()=>{HA()});var jd=l((y0e,KA)=>{KA.exports={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}});var WA=l(()=>{var Are=B(),_re=jd(),kd=wu(),Rre=de();for(zA in _re)if(Fd=Are[zA],Ja=Fd&&Fd.prototype,Ja&&Ja.forEach!==kd)try{Rre(Ja,"forEach",kd)}catch(e){Ja.forEach=kd}var Fd,Ja,zA});var ZA=l(()=>{var Cre=B(),YA=jd(),ei=ca(),Bd=de(),QA=W(),$d=QA("iterator"),XA=QA("toStringTag"),Vd=ei.values;for(Jo in YA)if(Hd=Cre[Jo],Tr=Hd&&Hd.prototype,Tr){if(Tr[$d]!==Vd)try{Bd(Tr,$d,Vd)}catch(e){Tr[$d]=Vd}if(Tr[XA]||Bd(Tr,XA,Jo),YA[Jo]){for(kt in ei)if(Tr[kt]!==ei[kt])try{Bd(Tr,kt,ei[kt])}catch(e){Tr[kt]=ei[kt]}}}var Hd,Tr,kt,Jo});var r5=l(()=>{var Tre=p(),JA=B(),e5=ao(),Ore=!JA.setImmediate||!JA.clearImmediate;Tre({global:!0,bind:!0,enumerable:!0,forced:Ore},{setImmediate:e5.set,clearImmediate:e5.clear})});var n5=l(()=>{var Pre=p(),Lre=B(),Nre=Al(),Mre=ze(),t5=Lre.process,Dre=Mre(t5)=="process";Pre({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(r){var t=Dre&&t5.domain;Nre(t?t.bind(r):r)}})});var o5=l(()=>{var Ure=p(),a5=B(),jre=sa(),kre=[].slice,Fre=/MSIE .\./.test(jre),i5=function(e){return function(r,t){var n=arguments.length>2,a=n?kre.call(arguments,2):void 0;return e(n?function(){(typeof r=="function"?r:Function(r)).apply(this,a)}:r,t)}};Ure({global:!0,bind:!0,forced:Fre},{setTimeout:i5(a5.setTimeout),setInterval:i5(a5.setInterval)})});var u5=l((C0e,s5)=>{WA();ZA();r5();n5();o5();dd();fd();Mo();var Bre=ir();s5.exports=Bre});var es=l((T0e,l5)=>{JS();GA();u5();var $re=ir();l5.exports=$re});var s_=l((fs,o_)=>{(function(e,r){if(typeof define=="function"&&define.amd)define(["module","exports"],r);else if(typeof fs<"u")r(o_,fs);else{var t={exports:{}};r(t,t.exports),e.autosize=t.exports}})(fs,function(e,r){"use strict";var t=typeof Map=="function"?new Map:function(){var o=[],c=[];return{has:function(d){return o.indexOf(d)>-1},get:function(d){return c[o.indexOf(d)]},set:function(d,v){o.indexOf(d)===-1&&(o.push(d),c.push(v))},delete:function(d){var v=o.indexOf(d);v>-1&&(o.splice(v,1),c.splice(v,1))}}}(),n=function(c){return new Event(c,{bubbles:!0})};try{new Event("test")}catch(o){n=function(f){var d=document.createEvent("Event");return d.initEvent(f,!0,!1),d}}function a(o){if(!o||!o.nodeName||o.nodeName!=="TEXTAREA"||t.has(o))return;var c=null,f=null,d=null;function v(){var E=window.getComputedStyle(o,null);E.resize==="vertical"?o.style.resize="none":E.resize==="both"&&(o.style.resize="horizontal"),E.boxSizing==="content-box"?c=-(parseFloat(E.paddingTop)+parseFloat(E.paddingBottom)):c=parseFloat(E.borderTopWidth)+parseFloat(E.borderBottomWidth),isNaN(c)&&(c=0),m()}function q(E){{var w=o.style.width;o.style.width="0px",o.offsetWidth,o.style.width=w}o.style.overflowY=E}function g(E){for(var w=[];E&&E.parentNode&&E.parentNode instanceof Element;)E.parentNode.scrollTop&&w.push({node:E.parentNode,scrollTop:E.parentNode.scrollTop}),E=E.parentNode;return w}function y(){if(o.scrollHeight!==0){var E=g(o),w=document.documentElement&&document.documentElement.scrollTop;o.style.height="",o.style.height=o.scrollHeight+c+"px",f=o.clientWidth,E.forEach(function(C){C.node.scrollTop=C.scrollTop}),w&&(document.documentElement.scrollTop=w)}}function m(){y();var E=Math.round(parseFloat(o.style.height)),w=window.getComputedStyle(o,null),C=w.boxSizing==="content-box"?Math.round(parseFloat(w.height)):o.offsetHeight;if(C<E?w.overflowY==="hidden"&&(q("scroll"),y(),C=w.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(o,null).height)):o.offsetHeight):w.overflowY!=="hidden"&&(q("hidden"),y(),C=w.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(o,null).height)):o.offsetHeight),d!==C){d=C;var U=n("autosize:resized");try{o.dispatchEvent(U)}catch(M){}}}var b=function(){o.clientWidth!==f&&m()},_=function(E){window.removeEventListener("resize",b,!1),o.removeEventListener("input",m,!1),o.removeEventListener("keyup",m,!1),o.removeEventListener("autosize:destroy",_,!1),o.removeEventListener("autosize:update",m,!1),Object.keys(E).forEach(function(w){o.style[w]=E[w]}),t.delete(o)}.bind(o,{height:o.style.height,resize:o.style.resize,overflowY:o.style.overflowY,overflowX:o.style.overflowX,wordWrap:o.style.wordWrap});o.addEventListener("autosize:destroy",_,!1),"onpropertychange"in o&&"oninput"in o&&o.addEventListener("keyup",m,!1),window.addEventListener("resize",b,!1),o.addEventListener("input",m,!1),o.addEventListener("autosize:update",m,!1),o.style.overflowX="hidden",o.style.wordWrap="break-word",t.set(o,{destroy:_,update:m}),v()}function i(o){var c=t.get(o);c&&c.destroy()}function s(o){var c=t.get(o);c&&c.update()}var u=null;typeof window>"u"||typeof window.getComputedStyle!="function"?(u=function(c){return c},u.destroy=function(o){return o},u.update=function(o){return o}):(u=function(c,f){return c&&Array.prototype.forEach.call(c.length?c:[c],function(d){return a(d,f)}),c},u.destroy=function(o){return o&&Array.prototype.forEach.call(o.length?o:[o],i),o},u.update=function(o){return o&&Array.prototype.forEach.call(o.length?o:[o],s),o}),r.default=u,e.exports=r.default})});var Zte={};yf(Zte,{SprigAPI:()=>Kn,sprig:()=>gf});module.exports=nR(Zte);var Ef={test:"test"},si="pageUrl",zt={ENVIRONMENT_ID:"x-ul-environment-id",PARTNER_ANONYMOUS_ID:"x-ul-anonymous-id",USER_ID:"x-ul-user-id",VISITOR_ID:"x-ul-visitor-id",INSTALLATION_METHOD:"x-ul-installation-method"},mr={NPM:"web-npm",GTM:"web-gtm",SEGMENT:"web-segment",SNIPPET:"web-snippet"},R={CUSTOM_STYLE_TAG_ID:"ul-custom-style",CARD_CONTAINER_CLASS:"ul-card__container",VIDEO_CARD_CLASS:"ul-card--video",CLOSE_CONTAINER_CLASS:"close-container",CLOSE_BUTTON_CLASS:"close-btn",LIKERT_NUMBER_CLASS:"likert-number",NPS_NUMBER_CLASS:"nps-number",CHOICE_CLASS:"choice",CHOICE_LABEL_CLASS:"select-label",CHOICE_CHECKBOX_CLASS:"select-checkbox",CHOICE_RADIO_CLASS:"select-radio",CHOICE_GROUP_CLASS:"ul-card__choices",CONSENT_LEGAL_NAME_INPUT:"ul-consent-legal__name-input",OPEN_TEXT_INPUT:"ul-card-text__input",DESKTOP_SUFFIX:"--desktop",MOBILE_SUFFIX:"--mobile",QUESTION_HEADER_CLASS:"ul-question",CAPTION_CLASS:"ul-caption",FADE_IN_CLASS:"fade-in-transition",CARD_MAIN_CONTENT:"ul-card-main-content",INACTIVE_BUTTON:"ul-button-inactive",CHECKMARK_BUTTON:"ul-button-checkmark",LEFT_ALIGN_BUTTON:"ul-button-left-align"},yr="#e6e6e6",St="#bd282a";var Sf=500,qs=1030,me=(e,r)=>{let t=r?R.MOBILE_SUFFIX:R.DESKTOP_SUFFIX;return[e+t,e]},ye=(e,r)=>[e,`${e}__${r}`],If=["ios","android"],Wt="!email",ui="View Prototype",xf="View Document";var TEe=oi(es());var Gd={};yf(Gd,{disable:()=>Hre,enable:()=>Vre});var c5=()=>{try{return window.parent.Intercom}catch(e){}},Vre=()=>{let e=c5();!e||(e.ul_wasVisible&&e("update",{hide_default_launcher:!1}),delete e.ul_wasVisible)},Hre=()=>{let e=c5();!e||(e.ul_wasVisible=!!document.querySelector("iframe.intercom-launcher-frame"),e.ul_wasVisible&&e("update",{hide_default_launcher:!0}))};var d5=[Gd],Or=class{static disable(){d5.forEach(r=>r.disable())}static enable(){d5.forEach(r=>r.enable())}};var Xe={searchParams:"URLSearchParams"in self,iterable:"Symbol"in self&&"iterator"in Symbol,blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self};function Gre(e){return e&&DataView.prototype.isPrototypeOf(e)}Xe.arrayBuffer&&(f5=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],p5=ArrayBuffer.isView||function(e){return e&&f5.indexOf(Object.prototype.toString.call(e))>-1});var f5,p5;function ri(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function g5(e){return typeof e!="string"&&(e=String(e)),e}function zd(e){var r={next:function(){var t=e.shift();return{done:t===void 0,value:t}}};return Xe.iterable&&(r[Symbol.iterator]=function(){return r}),r}function Ae(e){this.map={},e instanceof Ae?e.forEach(function(r,t){this.append(t,r)},this):Array.isArray(e)?e.forEach(function(r){this.append(r[0],r[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(r){this.append(r,e[r])},this)}Ae.prototype.append=function(e,r){e=ri(e),r=g5(r);var t=this.map[e];this.map[e]=t?t+", "+r:r};Ae.prototype.delete=function(e){delete this.map[ri(e)]};Ae.prototype.get=function(e){return e=ri(e),this.has(e)?this.map[e]:null};Ae.prototype.has=function(e){return this.map.hasOwnProperty(ri(e))};Ae.prototype.set=function(e,r){this.map[ri(e)]=g5(r)};Ae.prototype.forEach=function(e,r){for(var t in this.map)this.map.hasOwnProperty(t)&&e.call(r,this.map[t],t,this)};Ae.prototype.keys=function(){var e=[];return this.forEach(function(r,t){e.push(t)}),zd(e)};Ae.prototype.values=function(){var e=[];return this.forEach(function(r){e.push(r)}),zd(e)};Ae.prototype.entries=function(){var e=[];return this.forEach(function(r,t){e.push([t,r])}),zd(e)};Xe.iterable&&(Ae.prototype[Symbol.iterator]=Ae.prototype.entries);function Kd(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h5(e){return new Promise(function(r,t){e.onload=function(){r(e.result)},e.onerror=function(){t(e.error)}})}function Kre(e){var r=new FileReader,t=h5(r);return r.readAsArrayBuffer(e),t}function zre(e){var r=new FileReader,t=h5(r);return r.readAsText(e),t}function Wre(e){for(var r=new Uint8Array(e),t=new Array(r.length),n=0;n<r.length;n++)t[n]=String.fromCharCode(r[n]);return t.join("")}function v5(e){if(e.slice)return e.slice(0);var r=new Uint8Array(e.byteLength);return r.set(new Uint8Array(e)),r.buffer}function m5(){return this.bodyUsed=!1,this._initBody=function(e){this._bodyInit=e,e?typeof e=="string"?this._bodyText=e:Xe.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Xe.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Xe.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Xe.arrayBuffer&&Xe.blob&&Gre(e)?(this._bodyArrayBuffer=v5(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Xe.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||p5(e))?this._bodyArrayBuffer=v5(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||(typeof e=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Xe.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Xe.blob&&(this.blob=function(){var e=Kd(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?Kd(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(Kre)}),this.text=function(){var e=Kd(this);if(e)return e;if(this._bodyBlob)return zre(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(Wre(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Xe.formData&&(this.formData=function(){return this.text().then(Qre)}),this.json=function(){return this.text().then(JSON.parse)},this}var Yre=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Xre(e){var r=e.toUpperCase();return Yre.indexOf(r)>-1?r:e}function Fn(e,r){r=r||{};var t=r.body;if(e instanceof Fn){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,r.headers||(this.headers=new Ae(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!t&&e._bodyInit!=null&&(t=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=r.credentials||this.credentials||"same-origin",(r.headers||!this.headers)&&(this.headers=new Ae(r.headers)),this.method=Xre(r.method||this.method||"GET"),this.mode=r.mode||this.mode||null,this.signal=r.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&t)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(t)}Fn.prototype.clone=function(){return new Fn(this,{body:this._bodyInit})};function Qre(e){var r=new FormData;return e.trim().split("&").forEach(function(t){if(t){var n=t.split("="),a=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");r.append(decodeURIComponent(a),decodeURIComponent(i))}}),r}function Zre(e){var r=new Ae,t=e.replace(/\r?\n[\t ]+/g," ");return t.split(/\r?\n/).forEach(function(n){var a=n.split(":"),i=a.shift().trim();if(i){var s=a.join(":").trim();r.append(i,s)}}),r}m5.call(Fn.prototype);function Qr(e,r){r||(r={}),this.type="default",this.status=r.status===void 0?200:r.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in r?r.statusText:"OK",this.headers=new Ae(r.headers),this.url=r.url||"",this._initBody(e)}m5.call(Qr.prototype);Qr.prototype.clone=function(){return new Qr(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Ae(this.headers),url:this.url})};Qr.error=function(){var e=new Qr(null,{status:0,statusText:""});return e.type="error",e};var Jre=[301,302,303,307,308];Qr.redirect=function(e,r){if(Jre.indexOf(r)===-1)throw new RangeError("Invalid status code");return new Qr(null,{status:r,headers:{location:e}})};var Ft=self.DOMException;try{new Ft}catch(e){Ft=function(r,t){this.message=r,this.name=t;var n=Error(r);this.stack=n.stack},Ft.prototype=Object.create(Error.prototype),Ft.prototype.constructor=Ft}function y5(e,r){return new Promise(function(t,n){var a=new Fn(e,r);if(a.signal&&a.signal.aborted)return n(new Ft("Aborted","AbortError"));var i=new XMLHttpRequest;function s(){i.abort()}i.onload=function(){var u={status:i.status,statusText:i.statusText,headers:Zre(i.getAllResponseHeaders()||"")};u.url="responseURL"in i?i.responseURL:u.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;t(new Qr(o,u))},i.onerror=function(){n(new TypeError("Network request failed"))},i.ontimeout=function(){n(new TypeError("Network request failed"))},i.onabort=function(){n(new Ft("Aborted","AbortError"))},i.open(a.method,a.url,!0),a.credentials==="include"?i.withCredentials=!0:a.credentials==="omit"&&(i.withCredentials=!1),"responseType"in i&&Xe.blob&&(i.responseType="blob"),a.headers.forEach(function(u,o){i.setRequestHeader(o,u)}),a.signal&&(a.signal.addEventListener("abort",s),i.onreadystatechange=function(){i.readyState===4&&a.signal.removeEventListener("abort",s)}),i.send(typeof a._bodyInit>"u"?null:a._bodyInit)})}y5.polyfill=!0;self.fetch||(self.fetch=y5,self.Headers=Ae,self.Request=Fn,self.Response=Qr);var Wd=class{constructor(r){this.promise=new Promise((t,n)=>{this.payload=r,this.reject=n,this.resolve=t})}resolveRequest(r){this.resolve(r)}},q5=Wd;function Bn(e,r){return new Promise(function(t){setTimeout(t.bind(null,r),e)})}var b5={RATELIMIT_RESET_DEFAULT:10};var S5=!1,I5="",rs=!1,ts=[];function ete(e){return e._config&&e._config.installationMethod?e._config.installationMethod:e._gtm?mr.GTM:e._segment?mr.SEGMENT:mr.SNIPPET}function ns(e){S5=!0,I5=e}function ti(e={}){let r={"Content-Type":"application/json","userleap-platform":"web","x-ul-sdk-version":"2.16.7"};if(e.envId&&(r[zt.ENVIRONMENT_ID]=e.envId),e.token&&(r.Authorization="Bearer "+e.token),e.userId&&(r[zt.USER_ID]=e.userId),e.visitorId&&(r[zt.VISITOR_ID]=e.visitorId),e.partnerAnonymousId&&(r[zt.PARTNER_ANONYMOUS_ID]=e.partnerAnonymousId),e.mobileHeadersJSON){let t=JSON.parse(e.mobileHeadersJSON);Object.assign(r,t)}return r[zt.INSTALLATION_METHOD]=ete(e),e.locale&&(r["accept-language"]=e.locale),r}async function E5(e,r,t){if(e)return{status:429};{let n=new q5(t);return ts.push(n),n.promise}}async function tr(e,r,t=0,n=!1,a=!1){let i={url:e,options:r,attempt:t,shouldDropOnRateLimit:n};if(rs&&!a)return E5(n,a,i);let s={ok:!1,reportError:!1};if(S5)return console.log(`UserLeap - ${I5}`),s;try{r.headers=Object.assign(ti(),r.headers);let u=await fetch(e,r);if(u.status===429)if(!rs&&!n||a){rs=!0;let c=u.headers.has("ratelimit-reset")?Number(u.headers.get("ratelimit-reset")):b5.RATELIMIT_RESET_DEFAULT;return Bn(c*1e3).then(async()=>tr(e,r,0,n,!0))}else return E5(n,!1,i);if(rs=!1,ts.length&&(ts.map(o=>{let{url:c,options:f,attempt:d,shouldDropOnRateLimit:v}=o.payload;tr(c,f,d,v).then(q=>{o.resolveRequest(q)})}),ts=[]),u.ok){if(u.status===249)return ns(),s;let o=await u.text();try{return o&&o!=="OK"&&(u.json=JSON.parse(o)),u}catch(c){return{ok:!1,reportError:!0,error:new Error(`failed parsing response json for ${e} - ${o}`)}}}return u}catch(u){let o=t+1;return o>5?{ok:!1,reportError:!1,error:u}:Bn(Math.pow(2,t)*1e3).then(()=>tr(e,r,o))}}var Bt=class{constructor(){return Bt.instance||(this._events={},Bt.instance=this),Bt.instance}subscribe(r,t){!r||!t||(this._events[r]||(this._events[r]=[]),this._events[r].push(t))}removeListener(r,t){if(!r||!t||!this._events[r])return;let n=a=>a!==t;this._events[r]=this._events[r].filter(n)}removeAllListeners(){Object.keys(this._events).map(r=>{this._events[r]=[]})}emit(r,t){if(!this._events[r]||this._events[r].length==0)return;let n=a=>{a(t)};this._events[r].forEach(n)}},x5=new Bt;Object.freeze(x5);var ie=x5;var Y={SURVEY_LIFE_CYCLE:"survey.lifeCycle",SURVEY_DIMENSIONS:"survey.dimensions",SURVEY_HEIGHT:"survey.height",SURVEY_WILL_PRESENT:"survey.will.present",SURVEY_PRESENTED:"survey.presented",SURVEY_APPEARED:"survey.appeared",SURVEY_FADING_OUT:"survey.fadingOut",SURVEY_WILL_CLOSE:"survey.willClose",SURVEY_CLOSED:"survey.closed",SDK_READY:"sdk.ready",CLOSE_SURVEY_ON_OVERLAY_CLICK:"close.survey.overlayClick",VISITOR_ID_UPDATED:"visitor.id.updated",DATA:{DISMISS_REASONS:gr,SURVEY_ID:"survey.id"}},Se={name:{VERIFY_VIEW_VERSION:"verify.view.version",CURRENT_QUESTION:"survey.question",VIEW_PROTOTYPE_CLICK:"question.prototype.click",VIEW_AGREEMENT_CLICK:"question.agreement.click",RECORDED_TASK_START:"recorded.task.start",RECORDED_TASK_PERMISSION_SCREEN:"recorded.task.permission.screen"},data:{VIEW_VERSION:"view.version",QUESTION_ID:"qid",PROPS:"props"}},gr={CLOSED:"close.click",COMPLETE:"survey.completed",PAGE_CHANGE:"page.change",API:"api",OVERRIDE:"override"},Pr={READY:"ready",NO_SURVEY:"no survey"};window.UserLeap&&window.Sprig&&(window.Sprig._gtm?window.Sprig=window.UserLeap:window.UserLeap=window.Sprig);window.UserLeap||(window.UserLeap=window.Sprig);window.Sprig||(window.Sprig=window.UserLeap);var rte="rgba(255,255,255, 0.95)",tte="rgba(0,0,0,0.9)";function Yd(){UserLeap.container=document.createElement("div"),UserLeap.container.className="ul-container",document.body.appendChild(UserLeap.container)}function Xd(e){let r=UserLeap.container;if(!!r)try{document.body.removeChild(r),UserLeap.container=null,ie.emit(Y.SURVEY_LIFE_CYCLE,{state:"dismissed"}),ie.emit(Y.SURVEY_CLOSED,{name:Y.SURVEY_CLOSED,initiator:e})}catch(t){console.warn(`[Sprig] (ERR-412) Error removing UserLeap container by ${e} `+r),UserLeap.reportError("dismissActiveSurvey",t)}}function Qd(){ie.subscribe(Y.SURVEY_WILL_CLOSE,({initiator:e})=>{Xd(e)})}function w5(e,r){let t="360px",n="0px",a="ul-frame";Yd();let i=document.createElement("iframe");i.id=a,i.setAttribute("title","Sprig User Feedback Dialog");let s=o(i,e,r);ie.subscribe(Y.SURVEY_FADING_OUT,()=>{Object.assign(UserLeap.container.style,{"background-color":"rgba(0,0,0,0)"})}),Qd();function u(d,v){let g=z({},{position:"fixed",overflow:"auto",top:"0px",left:"0px",display:"none",height:"100%",width:"100%",transition:"background-color 0.3s ease-out",zIndex:2147483646}),y=v?d.overlayStyleMobile:d.overlayStyle;g["background-color"]=y==="light"?rte:tte,v||(g.margin="auto"),Object.assign(UserLeap.container.style,g)}function o(d,v,q){let g={position:"fixed",bottom:"0px",right:n,border:0,backgroundColor:"rgba(0,0,0,0)",zIndex:2147483646},y=Object.assign({},v,UserLeap),m,b=!1;return q?(UserLeap.windowDimensions&&UserLeap.windowDimensions.width?g.width=`${UserLeap.windowDimensions.width}px`:g.width="100%",UserLeap.windowDimensions&&UserLeap.windowDimensions.height?g.maxHeight=`${UserLeap.windowDimensions.height-20}px`:UserLeap.maxHeight?g.maxHeight=UserLeap.maxHeight:g.maxHeight=`${document.body.clientHeight-20}px`,["light","dark"].includes(y.overlayStyleMobile)&&(b=!0)):(g.width=t,g.maxHeight=UserLeap.maxHeight||"66vh",y.framePosition==="bottomLeft"?m={left:n}:y.framePosition==="topLeft"?m={left:n,top:"0px"}:y.framePosition==="topRight"?m={top:"0px"}:y.framePosition==="center"&&(b=!0,m={margin:"auto",position:"static"},g.maxHeight=null)),b&&u(y,q),Object.assign(d.style,g,m),b}i.setHeight=d=>{parseInt(i.style.height)!=d&&(i.style.height=`${d}px`,ie.emit(Y.SURVEY_HEIGHT,{name:Y.SURVEY_HEIGHT,contentFrameHeight:i.clientHeight}))},UserLeap.container.appendChild(i),e&&(r?e.exitOnOverlayClickMobile:e.exitOnOverlayClick)&&(UserLeap.container.onclick=()=>{ie.emit(Y.CLOSE_SURVEY_ON_OVERLAY_CLICK)}),ie.emit(Y.SURVEY_LIFE_CYCLE,{state:"presented"}),ie.emit(Y.SURVEY_PRESENTED,{name:Y.SURVEY_PRESENTED});let c=i.contentWindow.document;c.open("text/html","replace"),c.write('<!doctype html><head></head><body style="background-color: rgba(0,0,0,0)"></body></html>'),c.close();let f=c.head;return{frameId:a,contentWinDocHead:f,contentWindow:i.contentWindow,hasOverlay:s,iframe:i}}var G0e=oi(es()),A5=class{constructor(e,r){this.ul=e,this.paused=!1,this.queue=[],this.flush(r)}flush(e){let r=e.length;if(r)for(let t=0;t<r;t++)this.push(e[t])}isPaused(){return this.paused}pause(){this.paused=!0}unpause(){this.paused=!1;let e=this.queue.slice();this.empty(),this.flush(e)}push(e){if(this.paused)this.queue.push(e);else if(e instanceof Function)e();else{let r=Array.prototype.slice.call(e,1),t=e[0],n=this.ul[t];n&&n instanceof Function?this.ul[t].apply(this.ul,r):t&&console.warn("[Sprig] (ERR-100) No valid UserLeap action called",t)}}perform(e){if(this.paused){let r,t=new Promise(function(n){r=function(){n(e())}});return this.queue.push(r),t}else return e()}empty(){this.queue.length=0}};var nte=1,as=(e,r)=>{let t=e.createElement("style");t.type="text/css",t.textContent=r,t.id=R.CUSTOM_STYLE_TAG_ID,e.head.appendChild(t)},is=e=>{let r=e.querySelector(`.${R.CARD_CONTAINER_CLASS}`),t=r?r.scrollHeight:600,n=r&&r.parentElement?r.parentElement.clientHeight-r.clientHeight:0;return t+n+nte};var os,ate=new Uint8Array(16);function Zd(){if(!os&&(os=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!os))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return os(ate)}var _5=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function ite(e){return typeof e=="string"&&_5.test(e)}var R5=ite;var Te=[];for(ss=0;ss<256;++ss)Te.push((ss+256).toString(16).substr(1));var ss;function ote(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(Te[e[r+0]]+Te[e[r+1]]+Te[e[r+2]]+Te[e[r+3]]+"-"+Te[e[r+4]]+Te[e[r+5]]+"-"+Te[e[r+6]]+Te[e[r+7]]+"-"+Te[e[r+8]]+Te[e[r+9]]+"-"+Te[e[r+10]]+Te[e[r+11]]+Te[e[r+12]]+Te[e[r+13]]+Te[e[r+14]]+Te[e[r+15]]).toLowerCase();if(!R5(t))throw TypeError("Stringified UUID is invalid");return t}var C5=ote;function ste(e,r,t){e=e||{};var n=e.random||(e.rng||Zd)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,r){t=t||0;for(var a=0;a<16;++a)r[t+a]=n[a];return r}return C5(n)}var $t=ste;function Lr({"userleap-platform":e}){return e!=="web"}var pEe=oi(es());function h(e,r){for(var t=[],n=[],a=arguments.length;a-- >2;)t.push(arguments[a]);for(;t.length;){var i=t.pop();if(i&&i.pop)for(a=i.length;a--;)t.push(i[a]);else i!=null&&i!==!0&&i!==!1&&n.push(i)}return typeof e=="function"?e(r||{},n):{nodeName:e,attributes:r||{},children:n,key:r&&r.key}}function T5(e,r,t,n){var a=[].map,i=n&&n.children[0]||null,s=i&&v(i),u=[],o,c=!0,f=m(e),d=E([],f,m(r));return y(),d;function v(S){return{nodeName:S.nodeName.toLowerCase(),attributes:{},children:a.call(S.childNodes,function(I){return I.nodeType===3?I.nodeValue:v(I)})}}function q(S){return typeof S=="function"?q(S(f,d)):S!=null?S:""}function g(){o=!o;var S=q(t);for(n&&!o&&(i=H(n,i,s,s=S)),c=!1;u.length;)u.pop()()}function y(){o||(o=!0,setTimeout(g))}function m(S,I){var A={};for(var T in S)A[T]=S[T];for(var T in I)A[T]=I[T];return A}function b(S,I,A){var T={};return S.length?(T[S[0]]=S.length>1?b(S.slice(1),I,A[S[0]]):I,m(A,T)):I}function _(S,I){for(var A=0;A<S.length;)I=I[S[A++]];return I}function E(S,I,A){for(var T in A)typeof A[T]=="function"?function(P,fe){A[P]=function(_e){var se=fe(_e);return typeof se=="function"&&(se=se(_(S,f),A)),se&&se!==(I=_(S,f))&&!se.then&&y(f=b(S,m(I,se),f)),se}}(T,A[T]):E(S.concat(T),I[T]=m(I[T]),A[T]=m(A[T]));return A}function w(S){return S?S.key:null}function C(S){return S.currentTarget.events[S.type](S)}function U(S,I,A,T,P){if(I!=="key")if(I==="style")if(typeof A=="string")S.style.cssText=A;else{typeof T=="string"&&(T=S.style.cssText="");for(var fe in m(T,A)){var _e=A==null||A[fe]==null?"":A[fe];fe[0]==="-"?S.style.setProperty(fe,_e):S.style[fe]=_e}}else I[0]==="o"&&I[1]==="n"?(I=I.slice(2),S.events?T||(T=S.events[I]):S.events={},S.events[I]=A,A?T||S.addEventListener(I,C):S.removeEventListener(I,C)):I in S&&I!=="list"&&I!=="type"&&I!=="draggable"&&I!=="spellcheck"&&I!=="translate"&&!P?S[I]=A==null?"":A:A!=null&&A!==!1&&S.setAttribute(I,A),(A==null||A===!1)&&S.removeAttribute(I)}function M(S,I){var A=typeof S=="string"||typeof S=="number"?document.createTextNode(S):(I=I||S.nodeName==="svg")?document.createElementNS("http://www.w3.org/2000/svg",S.nodeName):document.createElement(S.nodeName),T=S.attributes;if(T){T.oncreate&&u.push(function(){T.oncreate(A)});for(var P=0;P<S.children.length;P++)A.appendChild(M(S.children[P]=q(S.children[P]),I));for(var fe in T)U(A,fe,T[fe],null,I)}return A}function F(S,I,A,T){for(var P in m(I,A))A[P]!==(P==="value"||P==="checked"?S[P]:I[P])&&U(S,P,A[P],I[P],T);var fe=c?A.oncreate:A.onupdate;fe&&u.push(function(){fe(S,I)})}function K(S,I){var A=I.attributes;if(A){for(var T=0;T<I.children.length;T++)K(S.childNodes[T],I.children[T]);A.ondestroy&&A.ondestroy(S)}return S}function O(S,I,A){function T(){S.removeChild(K(I,A))}var P=A.attributes&&A.attributes.onremove;P?P(I,T):T()}function H(S,I,A,T,P){if(T!==A)if(A==null||A.nodeName!==T.nodeName){var fe=M(T,P);S.insertBefore(fe,I),A!=null&&O(S,I,A),I=fe}else if(A.nodeName==null)I.nodeValue=T;else{F(I,A.attributes,T.attributes,P=P||T.nodeName==="svg");for(var _e={},se={},Oe=[],De=A.children,G=T.children,N=0;N<De.length;N++){Oe[N]=I.childNodes[N];var ae=w(De[N]);ae!=null&&(_e[ae]=[Oe[N],De[N]])}for(var N=0,he=0;he<G.length;){var ae=w(De[N]),Ue=w(G[he]=q(G[he]));if(se[ae]){N++;continue}if(Ue!=null&&Ue===w(De[N+1])){ae==null&&O(I,Oe[N],De[N]),N++;continue}if(Ue==null||c)ae==null&&(H(I,Oe[N],De[N],G[he],P),he++),N++;else{var zn=_e[Ue]||[];ae===Ue?(H(I,zn[0],zn[1],G[he],P),N++):zn[0]?H(I,I.insertBefore(zn[0],Oe[N]),zn[1],G[he],P):H(I,Oe[N],null,G[he],P),se[Ue]=G[he],he++}}for(;N<De.length;)w(De[N])==null&&O(I,Oe[N],De[N]),N++;for(var N in _e)se[N]||O(I,_e[N][0],_e[N][1])}return I}}var ute=Array.isArray;function V(e){var r,t,n=typeof e,a="";if(n==="string"||n==="number")return e||"";if(ute(e)&&e.length>0)for(r=0,t=e.length;r<t;r++)(n=V(e[r]))!==""&&(a+=(a&&" ")+n);else for(r in e)e.hasOwnProperty(r)&&e[r]&&(a+=(a&&" ")+r);return a}var O5=()=>h("svg",{width:"100",height:"13",viewBox:"0 0 100 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",alt:"Powered by Sprig"},h("path",{d:"M3.0369 0.839981H0.0249023V8.99998H1.3209V6.53998H2.8569C4.8969 6.53998 6.2409 5.37598 6.2409 3.62398C6.2409 1.95598 4.9689 0.839981 3.0369 0.839981ZM3.0009 5.35198H1.3209V2.02798H3.0009C4.1769 2.02798 4.9689 2.67598 4.9689 3.62398C4.9689 4.65598 4.1769 5.35198 3.0009 5.35198Z",fill:"#5D696F"}),h("path",{d:"M9.90653 3.21598C8.15453 3.21598 6.90653 4.45198 6.90653 6.17998C6.90653 7.90798 8.15453 9.14398 9.90653 9.14398C11.6585 9.14398 12.9065 7.90798 12.9065 6.17998C12.9065 4.45198 11.6585 3.21598 9.90653 3.21598ZM9.90653 8.01598C8.88653 8.01598 8.15453 7.23598 8.15453 6.17998C8.15453 5.11198 8.88653 4.34398 9.90653 4.34398C10.9265 4.34398 11.6585 5.11198 11.6585 6.17998C11.6585 7.23598 10.9265 8.01598 9.90653 8.01598Z",fill:"#5D696F"}),h("path",{d:"M20.9631 3.35998L19.7391 7.11598L18.3951 3.35998H17.3271L15.9831 7.12798L14.7591 3.35998H13.4151L15.4431 8.99998H16.5351L17.8671 5.08798L19.1871 8.99998H20.2791L22.3071 3.35998H20.9631Z",fill:"#5D696F"}),h("path",{d:"M25.7246 3.21598C24.0086 3.21598 22.8206 4.51198 22.8206 6.17998C22.8206 7.85998 24.0206 9.14398 25.7966 9.14398C27.0206 9.14398 28.0166 8.54398 28.3766 7.52398H27.0086C26.7806 7.88398 26.3606 8.05198 25.8086 8.05198C24.7526 8.05198 24.2126 7.40398 24.0926 6.55198H28.5206C28.7606 4.64398 27.5966 3.21598 25.7246 3.21598ZM25.7366 4.27198C26.6126 4.27198 27.2126 4.76398 27.2846 5.68798H24.1166C24.2606 4.89598 24.8006 4.27198 25.7366 4.27198Z",fill:"#5D696F"}),h("path",{d:"M31.1297 4.12798V3.35998H29.8817V8.99998H31.1297V5.44798C31.6337 4.78798 32.3177 4.45198 33.2177 4.41598V3.23998C32.3537 3.23998 31.6457 3.56398 31.1297 4.12798Z",fill:"#5D696F"}),h("path",{d:"M36.8222 3.21598C35.1062 3.21598 33.9182 4.51198 33.9182 6.17998C33.9182 7.85998 35.1182 9.14398 36.8942 9.14398C38.1182 9.14398 39.1142 8.54398 39.4742 7.52398H38.1062C37.8782 7.88398 37.4582 8.05198 36.9062 8.05198C35.8502 8.05198 35.3102 7.40398 35.1902 6.55198H39.6182C39.8582 4.64398 38.6942 3.21598 36.8222 3.21598ZM36.8342 4.27198C37.7102 4.27198 38.3102 4.76398 38.3822 5.68798H35.2142C35.3582 4.89598 35.8982 4.27198 36.8342 4.27198Z",fill:"#5D696F"}),h("path",{d:"M45.4886 0.47998V3.80398C45.0086 3.43198 44.3966 3.21598 43.6766 3.21598C42.0926 3.21598 40.8206 4.53598 40.8206 6.16798C40.8206 7.82398 42.0926 9.14398 43.6766 9.14398C44.3966 9.14398 45.0086 8.92798 45.4886 8.54398V8.99998H46.7246V0.47998H45.4886ZM43.8566 8.01598C42.8246 8.01598 42.0686 7.17598 42.0686 6.16798C42.0686 5.17198 42.8246 4.34398 43.8566 4.34398C44.4806 4.34398 45.0686 4.55998 45.4886 5.15998V7.18798C45.0686 7.79998 44.4806 8.01598 43.8566 8.01598Z",fill:"#5D696F"}),h("path",{d:"M54.6797 3.21598C53.9597 3.21598 53.3477 3.43198 52.8797 3.79198V0.47998H51.6317V8.99998H52.8797V8.55598C53.3477 8.92798 53.9597 9.14398 54.6797 9.14398C56.2637 9.14398 57.5477 7.82398 57.5477 6.16798C57.5477 4.53598 56.2637 3.21598 54.6797 3.21598ZM54.4997 8.01598C53.8757 8.01598 53.2997 7.79998 52.8797 7.21198V5.13598C53.2997 4.54798 53.8757 4.34398 54.4997 4.34398C55.5437 4.34398 56.2997 5.17198 56.2997 6.16798C56.2997 7.17598 55.5437 8.01598 54.4997 8.01598Z",fill:"#5D696F"}),h("path",{d:"M63.3347 3.34798L61.3907 7.76398L59.2667 3.34798H57.9347L60.8147 9.08398L59.6267 11.784H60.9347L64.6547 3.34798H63.3347Z",fill:"#5D696F"}),h("path",{d:"M71.1466 4.34661C69.8092 4.05038 69.131 3.53001 69.131 2.80065C69.131 2.04705 69.8546 1.47822 70.8142 1.47822C71.8034 1.47822 72.5496 2.10339 72.5496 2.9321V2.99813H73.9165V2.9321C73.9165 1.41764 72.5883 0.272705 70.8271 0.272705C69.9784 0.272705 69.2009 0.533191 68.6379 1.0057C68.3584 1.23619 68.1339 1.52487 67.9805 1.8511C67.8271 2.17733 67.7486 2.53303 67.7506 2.89273C67.7451 3.22255 67.8137 3.54949 67.9515 3.84994C68.0894 4.15038 68.293 4.41686 68.5478 4.63012C69.0218 5.04266 69.6945 5.34798 70.5463 5.5388C71.9806 5.85502 72.7078 6.39296 72.7078 7.13686C72.7078 7.94316 71.9156 8.55076 70.8682 8.55076C69.7804 8.55076 68.9599 7.87531 68.9599 6.97996V6.91393H67.5918V6.97996C67.5918 8.56348 68.9942 9.75688 70.8535 9.75688C71.7426 9.75688 72.5588 9.48731 73.1518 8.99662C73.446 8.75831 73.6827 8.4581 73.8445 8.1179C74.0063 7.7777 74.0891 7.40611 74.087 7.03024C74.087 5.6854 73.0991 4.78217 71.1466 4.34661Z",fill:"#5D696F"}),h("path",{d:"M78.7986 2.50806C78.2874 2.50175 77.7823 2.6176 77.3263 2.84576C76.8703 3.07391 76.4768 3.40759 76.1795 3.81837V2.66738H74.8789V12.0752H76.1795V8.48716C76.4768 8.8979 76.8703 9.23152 77.3263 9.45957C77.7824 9.68763 78.2875 9.80335 78.7986 9.79687C80.8167 9.79687 82.3381 8.23031 82.3381 6.15246C82.3381 4.07462 80.8167 2.50806 78.7986 2.50806ZM80.9835 6.42264C80.9316 6.9629 80.6921 7.46879 80.3056 7.8544C79.919 8.24001 79.4093 8.48156 78.863 8.53804C78.1369 8.61074 77.4605 8.40295 76.9583 7.95407C76.4561 7.50518 76.1795 6.86365 76.1795 6.15246C76.1795 4.7846 77.2122 3.75295 78.5815 3.75295C79.2904 3.75295 79.9306 4.02191 80.3776 4.51018C80.8387 5.01116 81.054 5.69025 80.9835 6.42264Z",fill:"#5D696F"}),h("path",{d:"M98.2908 2.6692V3.80747C97.6776 2.97875 96.7302 2.50806 95.6583 2.50806C93.6482 2.50806 92.1323 4.04615 92.1323 6.08582C92.1323 8.1255 93.6482 9.66299 95.6583 9.66299C96.7345 9.66299 97.6819 9.19714 98.2908 8.37691V8.55198C98.2908 9.96891 97.3906 10.8843 95.9974 10.8843C95.0561 10.8843 94.2718 10.4766 93.8996 9.79384L93.8806 9.7587H92.5389L92.5695 9.84654C92.7961 10.514 93.2392 11.0889 93.8303 11.4822C94.4233 11.8723 95.1726 12.0783 95.9974 12.0783C97.0552 12.0783 97.9554 11.7451 98.6017 11.1157C99.2481 10.4862 99.5915 9.6012 99.5915 8.56773V2.6692H98.2908ZM97.5611 7.842C97.0092 8.36418 96.2225 8.58348 95.4001 8.44294C94.9132 8.35796 94.4664 8.12184 94.1245 7.76889C93.7827 7.41593 93.5636 6.96452 93.4992 6.48019C93.3833 5.66541 93.631 4.89364 94.1786 4.36418C94.6383 3.92741 95.2542 3.68788 95.8919 3.69782C96.0464 3.69795 96.2006 3.71031 96.3531 3.73477C97.3459 3.89349 98.1314 4.70403 98.2632 5.71024C98.3749 6.53835 98.1179 7.31436 97.5611 7.842Z",fill:"#5D696F"}),h("path",{d:"M90.705 0.0995975C90.4602 0.046773 90.2043 0.0911971 89.9925 0.223269C89.7806 0.35534 89.6299 0.564452 89.5729 0.805409C89.5159 1.04637 89.5571 1.29982 89.6877 1.51098C89.8183 1.72215 90.0277 1.87407 90.2708 1.93391C90.3415 1.94954 90.4136 1.95747 90.486 1.95754C90.72 1.9579 90.9458 1.87325 91.1206 1.71973C91.2955 1.5662 91.407 1.35452 91.4341 1.125C91.4611 0.89547 91.4017 0.664135 91.2673 0.475046C91.1329 0.285958 90.9327 0.152325 90.705 0.0995975V0.0995975Z",fill:"#5D696F"}),h("path",{d:"M89.8366 8.39143H88.715C87.9178 8.39143 87.4389 7.85531 87.4389 6.95693C87.4389 6.08096 87.8681 5.03659 88.7432 3.76444L88.7548 3.74748V3.38825L85.0271 2.86727C85.0284 2.71553 84.9886 2.56622 84.9118 2.43478C84.8351 2.30335 84.7241 2.19458 84.5905 2.11973C84.2563 1.938 83.8908 1.938 83.5879 2.11368C83.4361 2.2023 83.3122 2.33077 83.23 2.4848C83.1477 2.63884 83.1103 2.8124 83.1219 2.98618C83.1336 3.15996 83.1938 3.32714 83.2958 3.46914C83.3979 3.61114 83.5379 3.72238 83.7001 3.79049L82.5405 9.63753H83.8283L84.8977 4.08551L86.9115 4.42111C86.3701 5.38007 86.0953 6.27421 86.0953 7.07869C86.0953 8.56347 87.0041 9.53576 88.4734 9.62965V9.63753H91.1341V2.69099H89.8366V8.39143Z",fill:"#5D696F"}));var P5={CAMERA:"camera",SCREEN:"screen"},Nr={VIDEO:"video",AUDIO:"audio",SCREEN:"screen"},Me={PERMISSION_STATUS:"permission.status",AV_PERMISSION:"av.permission",SCREEN_PERMISSION:"screen.permission",BEGIN_RECORDING:"begin.recording",START_TASK:"start.task",FINISH_TASK:"finish.task"},X={PERMISSION_DESCRIPTORS:"permission.descriptors",PERMISSION_STATUS_CALLBACK:"permission.status.callback",STREAM_READY_CALLBACK:"stream.ready.callback",STREAM_CANCELLED_CALLBACK:"stream.canceled.callback",TASK_COMPLETE_CALLBACK:"task.complete.callback",TASK_RESPONSE:"task.response",TASK_STATUS:"task.status",COMPLETED:"completed",GIVEN_UP:"given.up",ABANDONED:"abandoned",RECORDING_MEDIA_TYPES:"recording.media.types",PASSTHROUGH_DATA:"passthrough.data",CURRENT_INDEX:"current.index",UPLOAD_CALLBACK:"upload.callback",PROGRESS_CALLBACK:"progress.callback"};var Vt={CONSENT_LEGAL:"consentlegal",LIKERT:"likert",MULTIPLE_CHOICE:"multiplechoice",MULTIPLE_SELECT:"multipleselect",NPS:"nps",OPEN:"open",TEXT_URL_PROMPT:"texturlprompt",THANKS:"thanks",VIDEO_VOICE:"videovoice",RECORDED_TASK:"recordedtask"};var L5=1,us={eq(e,r){return e==r},neq(e,r){return!this.eq(e,r)},gt(e,r){return e>r},gte(e,r){return e>=r},lt(e,r){return e<r},lte(e,r){return e<=r},list_exact(e,r){return!Array.isArray(e)||!Array.isArray(r)?!1:e.slice().sort().join(",")===r.slice().sort().join(",")},list_all(e,r){return!Array.isArray(e)||!Array.isArray(r)?!1:!r.some(t=>e.indexOf(t)===-1)},list_alo(e,r){return!Array.isArray(e)||!Array.isArray(r)?!1:r.some(t=>e.indexOf(t)!=-1)}},ls=(e,r,t)=>{switch(r){case Vt.VIDEO_VOICE:return e&&!e.deletedAt;case Vt.OPEN:return!!t;case Vt.MULTIPLE_SELECT:return t&&!!Object.keys(t).length;case Vt.RECORDED_TASK:return t.taskStatus===X.COMPLETED;default:return!0}},cs=(e,r,t,n,a=!0)=>{if(r>=e.length||r<0)return null;let i=e[r]&&e[r].props&&e[r].props.routingOptions||[],s=Math.min(r+1,e.length-1),u=null;for(let o=0;o<i.length;o++){let{comparator:c,target:f,value:d}=i[o];if(c==="answered"&&a){u=parseInt(f,10);break}else if(c==="skipped"&&!a){u=parseInt(f,10);break}else if(c==="given_up"&&t.taskStatus===X.GIVEN_UP){u=parseInt(f,10);break}else if(us[c]&&us[c](t,d)){u=parseInt(f,10);break}}return u===null&&r===e.length-1?null:u===-1?n?e.length-1:null:u===null?s:u},lte=13,cte=e=>e.reduce((r,t)=>r.concat(r.map(n=>[...n,t])),[[]]),N5=e=>!!(Array.isArray(e)?e.length:e),dte=e=>{switch(e.type){case"multipleselect":return!e||!e.props||!e.props.options?null:e.props.options.length>lte?e.props.options.map(r=>[r.value]):cte(e.props.options.map(r=>r.value));case"multiplechoice":return!e||!e.props||!e.props.options?null:e.props.options.map(r=>r.value);case"likert":return[1,2,3,4,5];case"nps":return[0,1,2,3,4,5,6,7,8,9,10];case"videovoice":case"open":return[L5,""];case"texturlprompt":case"consentlegal":default:return[L5]}},M5=(e,r)=>{if(!e||!e.length||r>=e.length||r<0||!e[r].type)return 0;let t=e.filter(a=>a.type);if(r===t.length-1)return 1;let n={[t.length-1]:1,[-1]:0};for(let a=t.length-2;a>=r;a--){let i=t[a],s=i&&i.props&&i.props.routingOptions||[];if(s.length===0){n[a]=n[a+1]+1;continue}let u=0,o=dte(i);if(o===null)return t.length-1-r;for(let c=0;c<s.length&&o.length!==0;c++){let{comparator:f,target:d,value:v}=s[c],q=o.filter(g=>!(f==="answered"&&N5(g)||f==="skipped"&&!N5(g)||us[f]&&us[f](g,v)));if(q.length<o.length){let g=parseInt(d,10);if(g!==-1&&g<=a||g>=t.length)return t.length-1-r;u=Math.max(n[g]+1,u)}o=q}o.length>0&&(u=Math.max(n[a+1]+1,u)),n[a]=u}return n[r]};var D5=()=>e=>{let t=(e.app.deck.cards||[]).filter(w=>w.type),n=e.app.deck.index,{showSurveyBrand:a,marketingUrl:i,slugName:s,surveyId:u,viewedCardCount:o,headers:c,deck:f,border:d,viewDocument:v}=e.app,q=M5(f.cards||[],f.index),g=o+1,y=g/(g+q),m=()=>a?h("a",{style:"display: block; margin: 5px 0",href:`${i}?utm_source=survey_branding&utm_medium=website&utm_campaign=${s}&utm_content=${u}`,target:"_blank"},O5):null;if(!t||t.length===1)return h("footer",{className:"ul-footer",style:!a&&{marginBottom:"10px"}},m);let b=()=>t.length>1?h("div",{id:"ul-progress-bar-container"},h("div",{id:"ul-progress-bar-current",style:_()})):null,_=()=>{let w=v.getElementById("ul-progress-bar-container"),C=w?w.clientWidth:250,U=w?`${v.getElementById("ul-progress-bar-current").style.width.replace("px","")}`:0,M=`${parseFloat((y*C).toFixed(4))}`;return U!==M&&E(U,M),{width:`${M}px`,animation:"growRight 1s",border:`1px solid ${d||"#000"}`}},E=(w,C)=>{let U=`
|
|
1
|
+
var tR=Object.create;var Wn=Object.defineProperty,nR=Object.defineProperties,iR=Object.getOwnPropertyDescriptor,aR=Object.getOwnPropertyDescriptors,oR=Object.getOwnPropertyNames,bf=Object.getOwnPropertySymbols,sR=Object.getPrototypeOf,Sf=Object.prototype.hasOwnProperty,uR=Object.prototype.propertyIsEnumerable;var ys=(e,r,t)=>r in e?Wn(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,G=(e,r)=>{for(var t in r||(r={}))Sf.call(r,t)&&ys(e,t,r[t]);if(bf)for(var t of bf(r))uR.call(r,t)&&ys(e,t,r[t]);return e},se=(e,r)=>nR(e,aR(r));var l=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),If=(e,r)=>{for(var t in r)Wn(e,t,{get:r[t],enumerable:!0})},xf=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of oR(r))!Sf.call(e,i)&&i!==t&&Wn(e,i,{get:()=>r[i],enumerable:!(n=iR(r,i))||n.enumerable});return e};var oa=(e,r,t)=>(t=e!=null?tR(sR(e)):{},xf(r||!e||!e.__esModule?Wn(t,"default",{value:e,enumerable:!0}):t,e)),lR=e=>xf(Wn({},"__esModule",{value:!0}),e);var wf=(e,r,t)=>(ys(e,typeof r!="symbol"?r+"":r,t),t);var B=l((une,Of)=>{var la=function(e){return e&&e.Math==Math&&e};Of.exports=la(typeof globalThis=="object"&&globalThis)||la(typeof window=="object"&&window)||la(typeof self=="object"&&self)||la(typeof global=="object"&&global)||Function("return this")()});var P=l((lne,Tf)=>{Tf.exports=function(e){try{return!!e()}catch(r){return!0}}});var ee=l((cne,Pf)=>{var cR=P();Pf.exports=!cR(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})});var Yn=l(Df=>{"use strict";var Lf={}.propertyIsEnumerable,Nf=Object.getOwnPropertyDescriptor,dR=Nf&&!Lf.call({1:2},1);Df.f=dR?function(r){var t=Nf(this,r);return!!t&&t.enumerable}:Lf});var br=l((fne,Mf)=>{Mf.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var We=l((vne,Uf)=>{var fR={}.toString;Uf.exports=function(e){return fR.call(e).slice(8,-1)}});var Yt=l((pne,jf)=>{var vR=P(),pR=We(),gR="".split;jf.exports=vR(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return pR(e)=="String"?gR.call(e,""):Object(e)}:Object});var xe=l((gne,kf)=>{kf.exports=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e}});var Fe=l((hne,Ff)=>{var hR=Yt(),mR=xe();Ff.exports=function(e){return hR(mR(e))}});var J=l((mne,Bf)=>{Bf.exports=function(e){return typeof e=="object"?e!==null:typeof e=="function"}});var Je=l((yne,$f)=>{var ca=J();$f.exports=function(e,r){if(!ca(e))return e;var t,n;if(r&&typeof(t=e.toString)=="function"&&!ca(n=t.call(e))||typeof(t=e.valueOf)=="function"&&!ca(n=t.call(e))||!r&&typeof(t=e.toString)=="function"&&!ca(n=t.call(e)))return n;throw TypeError("Can't convert object to primitive value")}});var le=l((qne,Vf)=>{var yR={}.hasOwnProperty;Vf.exports=function(e,r){return yR.call(e,r)}});var da=l((Ene,Gf)=>{var qR=B(),Hf=J(),Es=qR.document,ER=Hf(Es)&&Hf(Es.createElement);Gf.exports=function(e){return ER?Es.createElement(e):{}}});var bs=l((bne,zf)=>{var bR=ee(),SR=P(),IR=da();zf.exports=!bR&&!SR(function(){return Object.defineProperty(IR("div"),"a",{get:function(){return 7}}).a!=7})});var Ce=l(Wf=>{var xR=ee(),wR=Yn(),AR=br(),_R=Fe(),RR=Je(),CR=le(),OR=bs(),Kf=Object.getOwnPropertyDescriptor;Wf.f=xR?Kf:function(r,t){if(r=_R(r),t=RR(t,!0),OR)try{return Kf(r,t)}catch(n){}if(CR(r,t))return AR(!wR.f.call(r,t),r[t])}});var w=l((Ine,Yf)=>{var TR=J();Yf.exports=function(e){if(!TR(e))throw TypeError(String(e)+" is not an object");return e}});var ie=l(Zf=>{var PR=ee(),LR=bs(),Qf=w(),NR=Je(),Xf=Object.defineProperty;Zf.f=PR?Xf:function(r,t,n){if(Qf(r),t=NR(t,!0),Qf(n),LR)try{return Xf(r,t,n)}catch(i){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(r[t]=n.value),r}});var fe=l((wne,Jf)=>{var DR=ee(),MR=ie(),UR=br();Jf.exports=DR?function(e,r,t){return MR.f(e,r,UR(1,t))}:function(e,r,t){return e[r]=t,e}});var fa=l((Ane,rv)=>{var ev=B(),jR=fe();rv.exports=function(e,r){try{jR(ev,e,r)}catch(t){ev[e]=r}return r}});var va=l((_ne,nv)=>{var kR=B(),FR=fa(),tv="__core-js_shared__",BR=kR[tv]||FR(tv,{});nv.exports=BR});var pa=l((Rne,iv)=>{var Ss=va(),$R=Function.toString;typeof Ss.inspectSource!="function"&&(Ss.inspectSource=function(e){return $R.call(e)});iv.exports=Ss.inspectSource});var Is=l((Cne,ov)=>{var VR=B(),HR=pa(),av=VR.WeakMap;ov.exports=typeof av=="function"&&/native code/.test(HR(av))});var U=l((One,sv)=>{sv.exports=!1});var Qn=l((Tne,lv)=>{var GR=U(),uv=va();(lv.exports=function(e,r){return uv[e]||(uv[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.5.0",mode:GR?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})});var Qt=l((Pne,cv)=>{var zR=0,KR=Math.random();cv.exports=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++zR+KR).toString(36)}});var Xn=l((Lne,fv)=>{var WR=Qn(),YR=Qt(),dv=WR("keys");fv.exports=function(e){return dv[e]||(dv[e]=YR(e))}});var Xt=l((Nne,vv)=>{vv.exports={}});var me=l((Dne,yv)=>{var QR=Is(),XR=B(),ZR=J(),JR=fe(),pv=le(),eC=Xn(),rC=Xt(),tC=XR.WeakMap,ga,Zn,ha,nC=function(e){return ha(e)?Zn(e):ga(e,{})},iC=function(e){return function(r){var t;if(!ZR(r)||(t=Zn(r)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return t}};QR?(wt=new tC,gv=wt.get,hv=wt.has,mv=wt.set,ga=function(e,r){return mv.call(wt,e,r),r},Zn=function(e){return gv.call(wt,e)||{}},ha=function(e){return hv.call(wt,e)}):(Zt=eC("state"),rC[Zt]=!0,ga=function(e,r){return JR(e,Zt,r),r},Zn=function(e){return pv(e,Zt)?e[Zt]:{}},ha=function(e){return pv(e,Zt)});var wt,gv,hv,mv,Zt;yv.exports={set:ga,get:Zn,has:ha,enforce:nC,getterFor:iC}});var Oe=l((Mne,bv)=>{var aC=B(),qv=fe(),oC=le(),sC=fa(),uC=pa(),Ev=me(),lC=Ev.get,cC=Ev.enforce,dC=String(String).split("String");(bv.exports=function(e,r,t,n){var i=n?!!n.unsafe:!1,a=n?!!n.enumerable:!1,o=n?!!n.noTargetGet:!1;if(typeof t=="function"&&(typeof r=="string"&&!oC(t,"name")&&qv(t,"name",r),cC(t).source=dC.join(typeof r=="string"?r:"")),e===aC){a?e[r]=t:sC(r,t);return}else i?!o&&e[r]&&(a=!0):delete e[r];a?e[r]=t:qv(e,r,t)})(Function.prototype,"toString",function(){return typeof this=="function"&&lC(this).source||uC(this)})});var sr=l((Une,Sv)=>{var fC=B();Sv.exports=fC});var ae=l((jne,xv)=>{var xs=sr(),ws=B(),Iv=function(e){return typeof e=="function"?e:void 0};xv.exports=function(e,r){return arguments.length<2?Iv(xs[e])||Iv(ws[e]):xs[e]&&xs[e][r]||ws[e]&&ws[e][r]}});var Be=l((kne,wv)=>{var vC=Math.ceil,pC=Math.floor;wv.exports=function(e){return isNaN(e=+e)?0:(e>0?pC:vC)(e)}});var re=l((Fne,Av)=>{var gC=Be(),hC=Math.min;Av.exports=function(e){return e>0?hC(gC(e),9007199254740991):0}});var Fr=l((Bne,_v)=>{var mC=Be(),yC=Math.max,qC=Math.min;_v.exports=function(e,r){var t=mC(e);return t<0?yC(t+r,0):qC(t,r)}});var Jt=l(($ne,Cv)=>{var EC=Fe(),bC=re(),SC=Fr(),Rv=function(e){return function(r,t,n){var i=EC(r),a=bC(i.length),o=SC(n,a),u;if(e&&t!=t){for(;a>o;)if(u=i[o++],u!=u)return!0}else for(;a>o;o++)if((e||o in i)&&i[o]===t)return e||o||0;return!e&&-1}};Cv.exports={includes:Rv(!0),indexOf:Rv(!1)}});var _s=l((Vne,Ov)=>{var As=le(),IC=Fe(),xC=Jt().indexOf,wC=Xt();Ov.exports=function(e,r){var t=IC(e),n=0,i=[],a;for(a in t)!As(wC,a)&&As(t,a)&&i.push(a);for(;r.length>n;)As(t,a=r[n++])&&(~xC(i,a)||i.push(a));return i}});var ma=l((Hne,Tv)=>{Tv.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var tt=l(Pv=>{var AC=_s(),_C=ma(),RC=_C.concat("length","prototype");Pv.f=Object.getOwnPropertyNames||function(r){return AC(r,RC)}});var ya=l(Lv=>{Lv.f=Object.getOwnPropertySymbols});var qa=l((Kne,Nv)=>{var CC=ae(),OC=tt(),TC=ya(),PC=w();Nv.exports=CC("Reflect","ownKeys")||function(r){var t=OC.f(PC(r)),n=TC.f;return n?t.concat(n(r)):t}});var Rs=l((Wne,Dv)=>{var LC=le(),NC=qa(),DC=Ce(),MC=ie();Dv.exports=function(e,r){for(var t=NC(r),n=MC.f,i=DC.f,a=0;a<t.length;a++){var o=t[a];LC(e,o)||n(e,o,i(r,o))}}});var en=l((Yne,Mv)=>{var UC=P(),jC=/#|\.prototype\./,Jn=function(e,r){var t=FC[kC(e)];return t==$C?!0:t==BC?!1:typeof r=="function"?UC(r):!!r},kC=Jn.normalize=function(e){return String(e).replace(jC,".").toLowerCase()},FC=Jn.data={},BC=Jn.NATIVE="N",$C=Jn.POLYFILL="P";Mv.exports=Jn});var p=l((Qne,Uv)=>{var Cs=B(),VC=Ce().f,HC=fe(),GC=Oe(),zC=fa(),KC=Rs(),WC=en();Uv.exports=function(e,r){var t=e.target,n=e.global,i=e.stat,a,o,u,s,c,f;if(n?o=Cs:i?o=Cs[t]||zC(t,{}):o=(Cs[t]||{}).prototype,o)for(u in r){if(c=r[u],e.noTargetGet?(f=VC(o,u),s=f&&f.value):s=o[u],a=WC(n?u:t+(i?".":"#")+u,e.forced),!a&&s!==void 0){if(typeof c==typeof s)continue;KC(c,s)}(e.sham||s&&s.sham)&&HC(c,"sham",!0),GC(o,u,c,e)}}});var Ea=l((Xne,jv)=>{var YC=P();jv.exports=!!Object.getOwnPropertySymbols&&!YC(function(){return!String(Symbol())})});var Os=l((Zne,kv)=>{var QC=Ea();kv.exports=QC&&!Symbol.sham&&typeof Symbol()=="symbol"});var Br=l((Jne,Fv)=>{var XC=We();Fv.exports=Array.isArray||function(r){return XC(r)=="Array"}});var oe=l((eie,Bv)=>{var ZC=xe();Bv.exports=function(e){return Object(ZC(e))}});var At=l((rie,$v)=>{var JC=_s(),eO=ma();$v.exports=Object.keys||function(r){return JC(r,eO)}});var ba=l((tie,Vv)=>{var rO=ee(),tO=ie(),nO=w(),iO=At();Vv.exports=rO?Object.defineProperties:function(r,t){nO(r);for(var n=iO(t),i=n.length,a=0,o;i>a;)tO.f(r,o=n[a++],t[o]);return r}});var Ts=l((nie,Hv)=>{var aO=ae();Hv.exports=aO("document","documentElement")});var Ue=l((iie,Kv)=>{var oO=w(),sO=ba(),Gv=ma(),uO=Xt(),lO=Ts(),cO=da(),dO=Xn(),zv=dO("IE_PROTO"),Ls="prototype",Ps=function(){},Sa=function(){var e=cO("iframe"),r=Gv.length,t="<",n="script",i=">",a="java"+n+":",o;for(e.style.display="none",lO.appendChild(e),e.src=String(a),o=e.contentWindow.document,o.open(),o.write(t+n+i+"document.F=Object"+t+"/"+n+i),o.close(),Sa=o.F;r--;)delete Sa[Ls][Gv[r]];return Sa()};Kv.exports=Object.create||function(r,t){var n;return r!==null?(Ps[Ls]=oO(r),n=new Ps,Ps[Ls]=null,n[zv]=r):n=Sa(),t===void 0?n:sO(n,t)};uO[zv]=!0});var Ns=l((aie,Qv)=>{var fO=Fe(),Wv=tt().f,vO={}.toString,Yv=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],pO=function(e){try{return Wv(e)}catch(r){return Yv.slice()}};Qv.exports.f=function(r){return Yv&&vO.call(r)=="[object Window]"?pO(r):Wv(fO(r))}});var z=l((oie,Zv)=>{var gO=B(),hO=Qn(),Xv=le(),mO=Qt(),yO=Ea(),qO=Os(),Ia=hO("wks"),Ds=gO.Symbol,EO=qO?Ds:mO;Zv.exports=function(e){return Xv(Ia,e)||(yO&&Xv(Ds,e)?Ia[e]=Ds[e]:Ia[e]=EO("Symbol."+e)),Ia[e]}});var Ms=l(Jv=>{var bO=z();Jv.f=bO});var Ee=l((uie,rp)=>{var ep=sr(),SO=le(),IO=Ms(),xO=ie().f;rp.exports=function(e){var r=ep.Symbol||(ep.Symbol={});SO(r,e)||xO(r,e,{value:IO.f(e)})}});var ur=l((lie,np)=>{var wO=ie().f,AO=le(),_O=z(),tp=_O("toStringTag");np.exports=function(e,r,t){e&&!AO(e=t?e:e.prototype,tp)&&wO(e,tp,{configurable:!0,value:r})}});var D=l((cie,ip)=>{ip.exports=function(e){if(typeof e!="function")throw TypeError(String(e)+" is not a function");return e}});var he=l((die,ap)=>{var RO=D();ap.exports=function(e,r,t){if(RO(e),r===void 0)return e;switch(t){case 0:return function(){return e.call(r)};case 1:return function(n){return e.call(r,n)};case 2:return function(n,i){return e.call(r,n,i)};case 3:return function(n,i,a){return e.call(r,n,i,a)}}return function(){return e.apply(r,arguments)}}});var rn=l((fie,sp)=>{var CO=J(),op=Br(),OO=z(),TO=OO("species");sp.exports=function(e,r){var t;return op(e)&&(t=e.constructor,typeof t=="function"&&(t===Array||op(t.prototype))?t=void 0:CO(t)&&(t=t[TO],t===null&&(t=void 0))),new(t===void 0?Array:t)(r===0?0:r)}});var we=l((vie,up)=>{var PO=he(),LO=Yt(),NO=oe(),DO=re(),MO=rn(),UO=[].push,_t=function(e){var r=e==1,t=e==2,n=e==3,i=e==4,a=e==6,o=e==5||a;return function(u,s,c,f){for(var d=NO(u),v=LO(d),q=PO(s,c,3),h=DO(v.length),m=0,y=f||MO,E=r?y(u,h):t?y(u,0):void 0,_,b;h>m;m++)if((o||m in v)&&(_=v[m],b=q(_,m,d),e)){if(r)E[m]=b;else if(b)switch(e){case 3:return!0;case 5:return _;case 6:return m;case 2:UO.call(E,_)}else if(i)return!1}return a?-1:n||i?i:E}};up.exports={forEach:_t(0),map:_t(1),filter:_t(2),some:_t(3),every:_t(4),find:_t(5),findIndex:_t(6)}});var Rp=l(()=>{"use strict";var nn=p(),vp=B(),jO=ae(),kO=U(),tn=ee(),it=Ea(),FO=Os(),Ks=P(),be=le(),BO=Br(),$O=J(),Fs=w(),VO=oe(),xa=Fe(),Ws=Je(),Bs=br(),ri=Ue(),pp=At(),HO=tt(),gp=Ns(),$s=ya(),hp=Ce(),mp=ie(),yp=Yn(),GO=fe(),lp=Oe(),ti=Qn(),zO=Xn(),qp=Xt(),KO=Qt(),Ep=z(),WO=Ms(),YO=Ee(),QO=ur(),bp=me(),wa=we().forEach,$e=zO("hidden"),Aa="Symbol",$r="prototype",cp=Ep("toPrimitive"),XO=bp.set,dp=bp.getterFor(Aa),er=Object[$r],Ve=vp.Symbol,ei=jO("JSON","stringify"),Sp=hp.f,nt=mp.f,Ip=gp.f,ZO=yp.f,Vr=ti("symbols"),ni=ti("op-symbols"),Us=ti("string-to-symbol-registry"),js=ti("symbol-to-string-registry"),JO=ti("wks"),ks=vp.QObject,Vs=!ks||!ks[$r]||!ks[$r].findChild,Hs=tn&&Ks(function(){return ri(nt({},"a",{get:function(){return nt(this,"a",{value:7}).a}})).a!=7})?function(e,r,t){var n=Sp(er,r);n&&delete er[r],nt(e,r,t),n&&e!==er&&nt(er,r,n)}:nt,xp=function(e,r){var t=Vr[e]=ri(Ve[$r]);return XO(t,{type:Aa,tag:e,description:r}),tn||(t.description=r),t},Gs=it&&typeof Ve.iterator=="symbol"?function(e){return typeof e=="symbol"}:function(e){return Object(e)instanceof Ve},_a=function(r,t,n){r===er&&_a(ni,t,n),Fs(r);var i=Ws(t,!0);return Fs(n),be(Vr,i)?(n.enumerable?(be(r,$e)&&r[$e][i]&&(r[$e][i]=!1),n=ri(n,{enumerable:Bs(0,!1)})):(be(r,$e)||nt(r,$e,Bs(1,{})),r[$e][i]=!0),Hs(r,i,n)):nt(r,i,n)},wp=function(r,t){Fs(r);var n=xa(t),i=pp(n).concat(Ys(n));return wa(i,function(a){(!tn||zs.call(n,a))&&_a(r,a,n[a])}),r},eT=function(r,t){return t===void 0?ri(r):wp(ri(r),t)},zs=function(r){var t=Ws(r,!0),n=ZO.call(this,t);return this===er&&be(Vr,t)&&!be(ni,t)?!1:n||!be(this,t)||!be(Vr,t)||be(this,$e)&&this[$e][t]?n:!0},Ap=function(r,t){var n=xa(r),i=Ws(t,!0);if(!(n===er&&be(Vr,i)&&!be(ni,i))){var a=Sp(n,i);return a&&be(Vr,i)&&!(be(n,$e)&&n[$e][i])&&(a.enumerable=!0),a}},_p=function(r){var t=Ip(xa(r)),n=[];return wa(t,function(i){!be(Vr,i)&&!be(qp,i)&&n.push(i)}),n},Ys=function(r){var t=r===er,n=Ip(t?ni:xa(r)),i=[];return wa(n,function(a){be(Vr,a)&&(!t||be(er,a))&&i.push(Vr[a])}),i};it||(Ve=function(){if(this instanceof Ve)throw TypeError("Symbol is not a constructor");var r=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),t=KO(r),n=function(i){this===er&&n.call(ni,i),be(this,$e)&&be(this[$e],t)&&(this[$e][t]=!1),Hs(this,t,Bs(1,i))};return tn&&Vs&&Hs(er,t,{configurable:!0,set:n}),xp(t,r)},lp(Ve[$r],"toString",function(){return dp(this).tag}),yp.f=zs,mp.f=_a,hp.f=Ap,HO.f=gp.f=_p,$s.f=Ys,tn&&(nt(Ve[$r],"description",{configurable:!0,get:function(){return dp(this).description}}),kO||lp(er,"propertyIsEnumerable",zs,{unsafe:!0})));FO||(WO.f=function(e){return xp(Ep(e),e)});nn({global:!0,wrap:!0,forced:!it,sham:!it},{Symbol:Ve});wa(pp(JO),function(e){YO(e)});nn({target:Aa,stat:!0,forced:!it},{for:function(e){var r=String(e);if(be(Us,r))return Us[r];var t=Ve(r);return Us[r]=t,js[t]=r,t},keyFor:function(r){if(!Gs(r))throw TypeError(r+" is not a symbol");if(be(js,r))return js[r]},useSetter:function(){Vs=!0},useSimple:function(){Vs=!1}});nn({target:"Object",stat:!0,forced:!it,sham:!tn},{create:eT,defineProperty:_a,defineProperties:wp,getOwnPropertyDescriptor:Ap});nn({target:"Object",stat:!0,forced:!it},{getOwnPropertyNames:_p,getOwnPropertySymbols:Ys});nn({target:"Object",stat:!0,forced:Ks(function(){$s.f(1)})},{getOwnPropertySymbols:function(r){return $s.f(VO(r))}});ei&&(fp=!it||Ks(function(){var e=Ve();return ei([e])!="[null]"||ei({a:e})!="{}"||ei(Object(e))!="{}"}),nn({target:"JSON",stat:!0,forced:fp},{stringify:function(r,t,n){for(var i=[r],a=1,o;arguments.length>a;)i.push(arguments[a++]);if(o=t,!(!$O(t)&&r===void 0||Gs(r)))return BO(t)||(t=function(u,s){if(typeof o=="function"&&(s=o.call(this,u,s)),!Gs(s))return s}),i[1]=t,ei.apply(null,i)}}));var fp;Ve[$r][cp]||GO(Ve[$r],cp,Ve[$r].valueOf);QO(Ve,Aa);qp[$e]=!0});var Cp=l(()=>{var rT=Ee();rT("asyncIterator")});var Lp=l(()=>{"use strict";var tT=p(),nT=ee(),iT=B(),aT=le(),oT=J(),sT=ie().f,uT=Rs(),Hr=iT.Symbol;nT&&typeof Hr=="function"&&(!("description"in Hr.prototype)||Hr().description!==void 0)&&(Qs={},an=function(){var r=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),t=this instanceof an?new Hr(r):r===void 0?Hr():Hr(r);return r===""&&(Qs[t]=!0),t},uT(an,Hr),Ra=an.prototype=Hr.prototype,Ra.constructor=an,Op=Ra.toString,Tp=String(Hr("test"))=="Symbol(test)",Pp=/^Symbol\((.*)\)[^)]+$/,sT(Ra,"description",{configurable:!0,get:function(){var r=oT(this)?this.valueOf():this,t=Op.call(r);if(aT(Qs,r))return"";var n=Tp?t.slice(7,-1):t.replace(Pp,"$1");return n===""?void 0:n}}),tT({global:!0,forced:!0},{Symbol:an}));var Qs,an,Ra,Op,Tp,Pp});var Np=l(()=>{var lT=Ee();lT("hasInstance")});var Dp=l(()=>{var cT=Ee();cT("isConcatSpreadable")});var Mp=l(()=>{var dT=Ee();dT("iterator")});var Up=l(()=>{var fT=Ee();fT("match")});var jp=l(()=>{var vT=Ee();vT("matchAll")});var kp=l(()=>{var pT=Ee();pT("replace")});var Fp=l(()=>{var gT=Ee();gT("search")});var Bp=l(()=>{var hT=Ee();hT("species")});var $p=l(()=>{var mT=Ee();mT("split")});var Vp=l(()=>{var yT=Ee();yT("toPrimitive")});var Hp=l(()=>{var qT=Ee();qT("toStringTag")});var Gp=l(()=>{var ET=Ee();ET("unscopables")});var Zs=l((Hie,Wp)=>{"use strict";var zp=ee(),bT=P(),Xs=At(),ST=ya(),IT=Yn(),xT=oe(),wT=Yt(),on=Object.assign,Kp=Object.defineProperty;Wp.exports=!on||bT(function(){if(zp&&on({b:1},on(Kp({},"a",{enumerable:!0,get:function(){Kp(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},r={},t=Symbol(),n="abcdefghijklmnopqrst";return e[t]=7,n.split("").forEach(function(i){r[i]=i}),on({},e)[t]!=7||Xs(on({},r)).join("")!=n})?function(r,t){for(var n=xT(r),i=arguments.length,a=1,o=ST.f,u=IT.f;i>a;)for(var s=wT(arguments[a++]),c=o?Xs(s).concat(o(s)):Xs(s),f=c.length,d=0,v;f>d;)v=c[d++],(!zp||u.call(s,v))&&(n[v]=s[v]);return n}:on});var Qp=l(()=>{var AT=p(),Yp=Zs();AT({target:"Object",stat:!0,forced:Object.assign!==Yp},{assign:Yp})});var Xp=l(()=>{var _T=p(),RT=ee(),CT=Ue();_T({target:"Object",stat:!0,sham:!RT},{create:CT})});var Jp=l(()=>{var OT=p(),Zp=ee(),TT=ie();OT({target:"Object",stat:!0,forced:!Zp,sham:!Zp},{defineProperty:TT.f})});var rg=l(()=>{var PT=p(),eg=ee(),LT=ba();PT({target:"Object",stat:!0,forced:!eg,sham:!eg},{defineProperties:LT})});var Js=l((Jie,ng)=>{var NT=ee(),DT=At(),MT=Fe(),UT=Yn().f,tg=function(e){return function(r){for(var t=MT(r),n=DT(t),i=n.length,a=0,o=[],u;i>a;)u=n[a++],(!NT||UT.call(t,u))&&o.push(e?[u,t[u]]:t[u]);return o}};ng.exports={entries:tg(!0),values:tg(!1)}});var ig=l(()=>{var jT=p(),kT=Js().entries;jT({target:"Object",stat:!0},{entries:function(r){return kT(r)}})});var sn=l((tae,ag)=>{var FT=P();ag.exports=!FT(function(){return Object.isExtensible(Object.preventExtensions({}))})});var at=l((nae,og)=>{var BT=Xt(),$T=J(),eu=le(),VT=ie().f,HT=Qt(),GT=sn(),Rt=HT("meta"),zT=0,ru=Object.isExtensible||function(){return!0},tu=function(e){VT(e,Rt,{value:{objectID:"O"+ ++zT,weakData:{}}})},KT=function(e,r){if(!$T(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!eu(e,Rt)){if(!ru(e))return"F";if(!r)return"E";tu(e)}return e[Rt].objectID},WT=function(e,r){if(!eu(e,Rt)){if(!ru(e))return!0;if(!r)return!1;tu(e)}return e[Rt].weakData},YT=function(e){return GT&&QT.REQUIRED&&ru(e)&&!eu(e,Rt)&&tu(e),e},QT=og.exports={REQUIRED:!1,fastKey:KT,getWeakData:WT,onFreeze:YT};BT[Rt]=!0});var sg=l(()=>{var XT=p(),ZT=sn(),JT=P(),e8=J(),r8=at().onFreeze,nu=Object.freeze,t8=JT(function(){nu(1)});XT({target:"Object",stat:!0,forced:t8,sham:!ZT},{freeze:function(r){return nu&&e8(r)?nu(r8(r)):r}})});var un=l((oae,ug)=>{ug.exports={}});var Ca=l((sae,lg)=>{var n8=z(),i8=un(),a8=n8("iterator"),o8=Array.prototype;lg.exports=function(e){return e!==void 0&&(i8.Array===e||o8[a8]===e)}});var Oa=l((uae,dg)=>{var s8=z(),u8=s8("toStringTag"),cg={};cg[u8]="z";dg.exports=String(cg)==="[object z]"});var ln=l((lae,fg)=>{var l8=Oa(),Ta=We(),c8=z(),d8=c8("toStringTag"),f8=Ta(function(){return arguments}())=="Arguments",v8=function(e,r){try{return e[r]}catch(t){}};fg.exports=l8?Ta:function(e){var r,t,n;return e===void 0?"Undefined":e===null?"Null":typeof(t=v8(r=Object(e),d8))=="string"?t:f8?Ta(r):(n=Ta(r))=="Object"&&typeof r.callee=="function"?"Arguments":n}});var Gr=l((cae,vg)=>{var p8=ln(),g8=un(),h8=z(),m8=h8("iterator");vg.exports=function(e){if(e!=null)return e[m8]||e["@@iterator"]||g8[p8(e)]}});var cn=l((dae,gg)=>{var pg=w();gg.exports=function(e,r,t,n){try{return n?r(pg(t)[0],t[1]):r(t)}catch(a){var i=e.return;throw i!==void 0&&pg(i.call(e)),a}}});var $=l((fae,hg)=>{var y8=w(),q8=Ca(),E8=re(),b8=he(),S8=Gr(),I8=cn(),ii=function(e,r){this.stopped=e,this.result=r},x8=hg.exports=function(e,r,t,n,i){var a=b8(r,t,n?2:1),o,u,s,c,f,d,v;if(i)o=e;else{if(u=S8(e),typeof u!="function")throw TypeError("Target is not iterable");if(q8(u)){for(s=0,c=E8(e.length);c>s;s++)if(f=n?a(y8(v=e[s])[0],v[1]):a(e[s]),f&&f instanceof ii)return f;return new ii(!1)}o=u.call(e)}for(d=o.next;!(v=d.call(o)).done;)if(f=I8(o,a,v.value,n),typeof f=="object"&&f&&f instanceof ii)return f;return new ii(!1)};x8.stop=function(e){return new ii(!0,e)}});var ot=l((vae,mg)=>{"use strict";var w8=Je(),A8=ie(),_8=br();mg.exports=function(e,r,t){var n=w8(r);n in e?A8.f(e,n,_8(0,t)):e[n]=t}});var yg=l(()=>{var R8=p(),C8=$(),O8=ot();R8({target:"Object",stat:!0},{fromEntries:function(r){var t={};return C8(r,function(n,i){O8(t,n,i)},void 0,!0),t}})});var bg=l(()=>{var T8=p(),P8=P(),L8=Fe(),qg=Ce().f,Eg=ee(),N8=P8(function(){qg(1)}),D8=!Eg||N8;T8({target:"Object",stat:!0,forced:D8,sham:!Eg},{getOwnPropertyDescriptor:function(r,t){return qg(L8(r),t)}})});var Sg=l(()=>{var M8=p(),U8=ee(),j8=qa(),k8=Fe(),F8=Ce(),B8=ot();M8({target:"Object",stat:!0,sham:!U8},{getOwnPropertyDescriptors:function(r){for(var t=k8(r),n=F8.f,i=j8(t),a={},o=0,u,s;i.length>o;)s=n(t,u=i[o++]),s!==void 0&&B8(a,u,s);return a}})});var Ig=l(()=>{var $8=p(),V8=P(),H8=Ns().f,G8=V8(function(){return!Object.getOwnPropertyNames(1)});$8({target:"Object",stat:!0,forced:G8},{getOwnPropertyNames:H8})});var Pa=l((Sae,xg)=>{var z8=P();xg.exports=!z8(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Le=l((Iae,Ag)=>{var K8=le(),W8=oe(),Y8=Xn(),Q8=Pa(),wg=Y8("IE_PROTO"),X8=Object.prototype;Ag.exports=Q8?Object.getPrototypeOf:function(e){return e=W8(e),K8(e,wg)?e[wg]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?X8:null}});var Rg=l(()=>{var Z8=p(),J8=P(),e9=oe(),_g=Le(),r9=Pa(),t9=J8(function(){_g(1)});Z8({target:"Object",stat:!0,forced:t9,sham:!r9},{getPrototypeOf:function(r){return _g(e9(r))}})});var iu=l((Aae,Cg)=>{Cg.exports=Object.is||function(r,t){return r===t?r!==0||1/r===1/t:r!=r&&t!=t}});var Og=l(()=>{var n9=p(),i9=iu();n9({target:"Object",stat:!0},{is:i9})});var Tg=l(()=>{var a9=p(),o9=P(),s9=J(),au=Object.isExtensible,u9=o9(function(){au(1)});a9({target:"Object",stat:!0,forced:u9},{isExtensible:function(r){return s9(r)?au?au(r):!0:!1}})});var Pg=l(()=>{var l9=p(),c9=P(),d9=J(),ou=Object.isFrozen,f9=c9(function(){ou(1)});l9({target:"Object",stat:!0,forced:f9},{isFrozen:function(r){return d9(r)?ou?ou(r):!1:!0}})});var Lg=l(()=>{var v9=p(),p9=P(),g9=J(),su=Object.isSealed,h9=p9(function(){su(1)});v9({target:"Object",stat:!0,forced:h9},{isSealed:function(r){return g9(r)?su?su(r):!1:!0}})});var Dg=l(()=>{var m9=p(),y9=oe(),Ng=At(),q9=P(),E9=q9(function(){Ng(1)});m9({target:"Object",stat:!0,forced:E9},{keys:function(r){return Ng(y9(r))}})});var Mg=l(()=>{var b9=p(),S9=J(),I9=at().onFreeze,x9=sn(),w9=P(),uu=Object.preventExtensions,A9=w9(function(){uu(1)});b9({target:"Object",stat:!0,forced:A9,sham:!x9},{preventExtensions:function(r){return uu&&S9(r)?uu(I9(r)):r}})});var Ug=l(()=>{var _9=p(),R9=J(),C9=at().onFreeze,O9=sn(),T9=P(),lu=Object.seal,P9=T9(function(){lu(1)});_9({target:"Object",stat:!0,forced:P9,sham:!O9},{seal:function(r){return lu&&R9(r)?lu(C9(r)):r}})});var cu=l((Bae,jg)=>{var L9=J();jg.exports=function(e){if(!L9(e)&&e!==null)throw TypeError("Can't set "+String(e)+" as a prototype");return e}});var st=l(($ae,kg)=>{var N9=w(),D9=cu();kg.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,r={},t;try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(r,[]),e=r instanceof Array}catch(n){}return function(i,a){return N9(i),D9(a),e?t.call(i,a):i.__proto__=a,i}}():void 0)});var Fg=l(()=>{var M9=p(),U9=st();M9({target:"Object",stat:!0},{setPrototypeOf:U9})});var Bg=l(()=>{var j9=p(),k9=Js().values;j9({target:"Object",stat:!0},{values:function(r){return k9(r)}})});var Vg=l((Kae,$g)=>{"use strict";var F9=Oa(),B9=ln();$g.exports=F9?{}.toString:function(){return"[object "+B9(this)+"]"}});var Hg=l(()=>{var $9=Oa(),V9=Oe(),H9=Vg();$9||V9(Object.prototype,"toString",H9,{unsafe:!0})});var ai=l((Qae,Gg)=>{"use strict";var G9=U(),z9=B(),K9=P();Gg.exports=G9||!K9(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete z9[e]})});var zg=l(()=>{"use strict";var W9=p(),Y9=ee(),Q9=ai(),X9=oe(),Z9=D(),J9=ie();Y9&&W9({target:"Object",proto:!0,forced:Q9},{__defineGetter__:function(r,t){J9.f(X9(this),r,{get:Z9(t),enumerable:!0,configurable:!0})}})});var Kg=l(()=>{"use strict";var e6=p(),r6=ee(),t6=ai(),n6=oe(),i6=D(),a6=ie();r6&&e6({target:"Object",proto:!0,forced:t6},{__defineSetter__:function(r,t){a6.f(n6(this),r,{set:i6(t),enumerable:!0,configurable:!0})}})});var Wg=l(()=>{"use strict";var o6=p(),s6=ee(),u6=ai(),l6=oe(),c6=Je(),d6=Le(),f6=Ce().f;s6&&o6({target:"Object",proto:!0,forced:u6},{__lookupGetter__:function(r){var t=l6(this),n=c6(r,!0),i;do if(i=f6(t,n))return i.get;while(t=d6(t))}})});var Yg=l(()=>{"use strict";var v6=p(),p6=ee(),g6=ai(),h6=oe(),m6=Je(),y6=Le(),q6=Ce().f;p6&&v6({target:"Object",proto:!0,forced:g6},{__lookupSetter__:function(r){var t=h6(this),n=m6(r,!0),i;do if(i=q6(t,n))return i.set;while(t=y6(t))}})});var fu=l((aoe,Xg)=>{"use strict";var E6=D(),b6=J(),Qg=[].slice,du={},S6=function(e,r,t){if(!(r in du)){for(var n=[],i=0;i<r;i++)n[i]="a["+i+"]";du[r]=Function("C,a","return new C("+n.join(",")+")")}return du[r](e,t)};Xg.exports=Function.bind||function(r){var t=E6(this),n=Qg.call(arguments,1),i=function(){var o=n.concat(Qg.call(arguments));return this instanceof i?S6(t,o.length,o):t.apply(r,o)};return b6(t.prototype)&&(i.prototype=t.prototype),i}});var Zg=l(()=>{var I6=p(),x6=fu();I6({target:"Function",proto:!0},{bind:x6})});var eh=l(()=>{var w6=ee(),A6=ie().f,vu=Function.prototype,_6=vu.toString,R6=/^\s*function ([^ (]*)/,Jg="name";w6&&!(Jg in vu)&&A6(vu,Jg,{configurable:!0,get:function(){try{return _6.call(this).match(R6)[1]}catch(e){return""}}})});var ih=l(()=>{"use strict";var rh=J(),C6=ie(),O6=Le(),T6=z(),th=T6("hasInstance"),nh=Function.prototype;th in nh||C6.f(nh,th,{value:function(e){if(typeof this!="function"||!rh(e))return!1;if(!rh(this.prototype))return e instanceof this;for(;e=O6(e);)if(this.prototype===e)return!0;return!1}})});var pu=l(()=>{var P6=p(),L6=B();P6({global:!0},{globalThis:L6})});var gu=l((poe,oh)=>{"use strict";var N6=he(),D6=oe(),M6=cn(),U6=Ca(),j6=re(),ah=ot(),k6=Gr();oh.exports=function(r){var t=D6(r),n=typeof this=="function"?this:Array,i=arguments.length,a=i>1?arguments[1]:void 0,o=a!==void 0,u=0,s=k6(t),c,f,d,v,q;if(o&&(a=N6(a,i>2?arguments[2]:void 0,2)),s!=null&&!(n==Array&&U6(s)))for(v=s.call(t),q=v.next,f=new n;!(d=q.call(v)).done;u++)ah(f,u,o?M6(v,a,[d.value,u],!0):d.value);else for(c=j6(t.length),f=new n(c);c>u;u++)ah(f,u,o?a(t[u],u):t[u]);return f.length=u,f}});var oi=l((goe,ch)=>{var F6=z(),uh=F6("iterator"),lh=!1;try{sh=0,hu={next:function(){return{done:!!sh++}},return:function(){lh=!0}},hu[uh]=function(){return this},Array.from(hu,function(){throw 2})}catch(e){}var sh,hu;ch.exports=function(e,r){if(!r&&!lh)return!1;var t=!1;try{var n={};n[uh]=function(){return{next:function(){return{done:t=!0}}}},e(n)}catch(i){}return t}});var dh=l(()=>{var B6=p(),$6=gu(),V6=oi(),H6=!V6(function(e){Array.from(e)});B6({target:"Array",stat:!0,forced:H6},{from:$6})});var fh=l(()=>{var G6=p(),z6=Br();G6({target:"Array",stat:!0},{isArray:z6})});var vh=l(()=>{"use strict";var K6=p(),W6=P(),Y6=ot(),Q6=W6(function(){function e(){}return!(Array.of.call(e)instanceof e)});K6({target:"Array",stat:!0,forced:Q6},{of:function(){for(var r=0,t=arguments.length,n=new(typeof this=="function"?this:Array)(t);t>r;)Y6(n,r,arguments[r++]);return n.length=t,n}})});var si=l((Soe,ph)=>{var X6=ae();ph.exports=X6("navigator","userAgent")||""});var Na=l((Ioe,yh)=>{var Z6=B(),mu=si(),gh=Z6.process,hh=gh&&gh.versions,mh=hh&&hh.v8,zr,La;mh?(zr=mh.split("."),La=zr[0]+zr[1]):mu&&(zr=mu.match(/Edge\/(\d+)/),(!zr||zr[1]>=74)&&(zr=mu.match(/Chrome\/(\d+)/),zr&&(La=zr[1])));yh.exports=La&&+La});var dn=l((xoe,qh)=>{var J6=P(),e4=z(),r4=Na(),t4=e4("species");qh.exports=function(e){return r4>=51||!J6(function(){var r=[],t=r.constructor={};return t[t4]=function(){return{foo:1}},r[e](Boolean).foo!==1})}});var xh=l(()=>{"use strict";var n4=p(),i4=P(),a4=Br(),o4=J(),s4=oe(),u4=re(),Eh=ot(),l4=rn(),c4=dn(),d4=z(),f4=Na(),Ih=d4("isConcatSpreadable"),bh=9007199254740991,Sh="Maximum allowed index exceeded",v4=f4>=51||!i4(function(){var e=[];return e[Ih]=!1,e.concat()[0]!==e}),p4=c4("concat"),g4=function(e){if(!o4(e))return!1;var r=e[Ih];return r!==void 0?!!r:a4(e)},h4=!v4||!p4;n4({target:"Array",proto:!0,forced:h4},{concat:function(r){var t=s4(this),n=l4(t,0),i=0,a,o,u,s,c;for(a=-1,u=arguments.length;a<u;a++)if(c=a===-1?t:arguments[a],g4(c)){if(s=u4(c.length),i+s>bh)throw TypeError(Sh);for(o=0;o<s;o++,i++)o in c&&Eh(n,i,c[o])}else{if(i>=bh)throw TypeError(Sh);Eh(n,i++,c)}return n.length=i,n}})});var qu=l((_oe,wh)=>{"use strict";var m4=oe(),yu=Fr(),y4=re(),q4=Math.min;wh.exports=[].copyWithin||function(r,t){var n=m4(this),i=y4(n.length),a=yu(r,i),o=yu(t,i),u=arguments.length>2?arguments[2]:void 0,s=q4((u===void 0?i:yu(u,i))-o,i-a),c=1;for(o<a&&a<o+s&&(c=-1,o+=s-1,a+=s-1);s-- >0;)o in n?n[a]=n[o]:delete n[a],a+=c,o+=c;return n}});var lr=l((Roe,Ah)=>{var E4=z(),b4=Ue(),S4=fe(),Eu=E4("unscopables"),bu=Array.prototype;bu[Eu]==null&&S4(bu,Eu,b4(null));Ah.exports=function(e){bu[Eu][e]=!0}});var _h=l(()=>{var I4=p(),x4=qu(),w4=lr();I4({target:"Array",proto:!0},{copyWithin:x4});w4("copyWithin")});var Sr=l((Toe,Rh)=>{"use strict";var A4=P();Rh.exports=function(e,r){var t=[][e];return!t||!A4(function(){t.call(null,r||function(){throw 1},1)})}});var Ch=l(()=>{"use strict";var _4=p(),R4=we().every,C4=Sr();_4({target:"Array",proto:!0,forced:C4("every")},{every:function(r){return R4(this,r,arguments.length>1?arguments[1]:void 0)}})});var Da=l((Noe,Th)=>{"use strict";var O4=oe(),Oh=Fr(),T4=re();Th.exports=function(r){for(var t=O4(this),n=T4(t.length),i=arguments.length,a=Oh(i>1?arguments[1]:void 0,n),o=i>2?arguments[2]:void 0,u=o===void 0?n:Oh(o,n);u>a;)t[a++]=r;return t}});var Ph=l(()=>{var P4=p(),L4=Da(),N4=lr();P4({target:"Array",proto:!0},{fill:L4});N4("fill")});var Nh=l(()=>{"use strict";var D4=p(),M4=we().filter,U4=P(),j4=dn(),Lh=j4("filter"),k4=Lh&&!U4(function(){[].filter.call({length:-1,0:1},function(e){throw e})});D4({target:"Array",proto:!0,forced:!Lh||!k4},{filter:function(r){return M4(this,r,arguments.length>1?arguments[1]:void 0)}})});var Mh=l(()=>{"use strict";var F4=p(),B4=we().find,$4=lr(),Su="find",Dh=!0;Su in[]&&Array(1)[Su](function(){Dh=!1});F4({target:"Array",proto:!0,forced:Dh},{find:function(r){return B4(this,r,arguments.length>1?arguments[1]:void 0)}});$4(Su)});var jh=l(()=>{"use strict";var V4=p(),H4=we().findIndex,G4=lr(),Iu="findIndex",Uh=!0;Iu in[]&&Array(1)[Iu](function(){Uh=!1});V4({target:"Array",proto:!0,forced:Uh},{findIndex:function(r){return H4(this,r,arguments.length>1?arguments[1]:void 0)}});G4(Iu)});var xu=l((Voe,Fh)=>{"use strict";var z4=Br(),K4=re(),W4=he(),kh=function(e,r,t,n,i,a,o,u){for(var s=i,c=0,f=o?W4(o,u,3):!1,d;c<n;){if(c in t){if(d=f?f(t[c],c,r):t[c],a>0&&z4(d))s=kh(e,r,d,K4(d.length),s,a-1)-1;else{if(s>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[s]=d}s++}c++}return s};Fh.exports=kh});var Bh=l(()=>{"use strict";var Y4=p(),Q4=xu(),X4=oe(),Z4=re(),J4=Be(),eP=rn();Y4({target:"Array",proto:!0},{flat:function(){var r=arguments.length?arguments[0]:void 0,t=X4(this),n=Z4(t.length),i=eP(t,0);return i.length=Q4(i,t,t,n,0,r===void 0?1:J4(r)),i}})});var $h=l(()=>{"use strict";var rP=p(),tP=xu(),nP=oe(),iP=re(),aP=D(),oP=rn();rP({target:"Array",proto:!0},{flatMap:function(r){var t=nP(this),n=iP(t.length),i;return aP(r),i=oP(t,0),i.length=tP(i,t,t,n,0,1,r,arguments.length>1?arguments[1]:void 0),i}})});var wu=l((Woe,Vh)=>{"use strict";var sP=we().forEach,uP=Sr();Vh.exports=uP("forEach")?function(r){return sP(this,r,arguments.length>1?arguments[1]:void 0)}:[].forEach});var Gh=l(()=>{"use strict";var lP=p(),Hh=wu();lP({target:"Array",proto:!0,forced:[].forEach!=Hh},{forEach:Hh})});var zh=l(()=>{"use strict";var cP=p(),dP=Jt().includes,fP=lr();cP({target:"Array",proto:!0},{includes:function(r){return dP(this,r,arguments.length>1?arguments[1]:void 0)}});fP("includes")});var Yh=l(()=>{"use strict";var vP=p(),pP=Jt().indexOf,gP=Sr(),Wh=[].indexOf,Kh=!!Wh&&1/[1].indexOf(1,-0)<0,hP=gP("indexOf");vP({target:"Array",proto:!0,forced:Kh||hP},{indexOf:function(r){return Kh?Wh.apply(this,arguments)||0:pP(this,r,arguments.length>1?arguments[1]:void 0)}})});var Qh=l(()=>{"use strict";var mP=p(),yP=Yt(),qP=Fe(),EP=Sr(),bP=[].join,SP=yP!=Object,IP=EP("join",",");mP({target:"Array",proto:!0,forced:SP||IP},{join:function(r){return bP.call(qP(this),r===void 0?",":r)}})});var _u=l((nse,Zh)=>{"use strict";var xP=Fe(),wP=Be(),AP=re(),_P=Sr(),RP=Math.min,Au=[].lastIndexOf,Xh=!!Au&&1/[1].lastIndexOf(1,-0)<0,CP=_P("lastIndexOf");Zh.exports=Xh||CP?function(r){if(Xh)return Au.apply(this,arguments)||0;var t=xP(this),n=AP(t.length),i=n-1;for(arguments.length>1&&(i=RP(i,wP(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in t&&t[i]===r)return i||0;return-1}:Au});var em=l(()=>{var OP=p(),Jh=_u();OP({target:"Array",proto:!0,forced:Jh!==[].lastIndexOf},{lastIndexOf:Jh})});var tm=l(()=>{"use strict";var TP=p(),PP=we().map,LP=P(),NP=dn(),rm=NP("map"),DP=rm&&!LP(function(){[].map.call({length:-1,0:1},function(e){throw e})});TP({target:"Array",proto:!0,forced:!rm||!DP},{map:function(r){return PP(this,r,arguments.length>1?arguments[1]:void 0)}})});var ui=l((use,im)=>{var MP=D(),UP=oe(),jP=Yt(),kP=re(),nm=function(e){return function(r,t,n,i){MP(t);var a=UP(r),o=jP(a),u=kP(a.length),s=e?u-1:0,c=e?-1:1;if(n<2)for(;;){if(s in o){i=o[s],s+=c;break}if(s+=c,e?s<0:u<=s)throw TypeError("Reduce of empty array with no initial value")}for(;e?s>=0:u>s;s+=c)s in o&&(i=t(i,o[s],s,a));return i}};im.exports={left:nm(!1),right:nm(!0)}});var am=l(()=>{"use strict";var FP=p(),BP=ui().left,$P=Sr();FP({target:"Array",proto:!0,forced:$P("reduce")},{reduce:function(r){return BP(this,r,arguments.length,arguments.length>1?arguments[1]:void 0)}})});var om=l(()=>{"use strict";var VP=p(),HP=ui().right,GP=Sr();VP({target:"Array",proto:!0,forced:GP("reduceRight")},{reduceRight:function(r){return HP(this,r,arguments.length,arguments.length>1?arguments[1]:void 0)}})});var um=l(()=>{"use strict";var zP=p(),KP=Br(),WP=[].reverse,sm=[1,2];zP({target:"Array",proto:!0,forced:String(sm)===String(sm.reverse())},{reverse:function(){return KP(this)&&(this.length=this.length),WP.call(this)}})});var dm=l(()=>{"use strict";var YP=p(),QP=J(),lm=Br(),cm=Fr(),XP=re(),ZP=Fe(),JP=ot(),eL=dn(),rL=z(),tL=rL("species"),nL=[].slice,iL=Math.max;YP({target:"Array",proto:!0,forced:!eL("slice")},{slice:function(r,t){var n=ZP(this),i=XP(n.length),a=cm(r,i),o=cm(t===void 0?i:t,i),u,s,c;if(lm(n)&&(u=n.constructor,typeof u=="function"&&(u===Array||lm(u.prototype))?u=void 0:QP(u)&&(u=u[tL],u===null&&(u=void 0)),u===Array||u===void 0))return nL.call(n,a,o);for(s=new(u===void 0?Array:u)(iL(o-a,0)),c=0;a<o;a++,c++)a in n&&JP(s,c,n[a]);return s.length=c,s}})});var fm=l(()=>{"use strict";var aL=p(),oL=we().some,sL=Sr();aL({target:"Array",proto:!0,forced:sL("some")},{some:function(r){return oL(this,r,arguments.length>1?arguments[1]:void 0)}})});var hm=l(()=>{"use strict";var uL=p(),lL=D(),vm=oe(),gm=P(),cL=Sr(),Ru=[],pm=Ru.sort,dL=gm(function(){Ru.sort(void 0)}),fL=gm(function(){Ru.sort(null)}),vL=cL("sort"),pL=dL||!fL||vL;uL({target:"Array",proto:!0,forced:pL},{sort:function(r){return r===void 0?pm.call(vm(this)):pm.call(vm(this),lL(r))}})});var mm=l(()=>{"use strict";var gL=p(),hL=Fr(),mL=Be(),yL=re(),qL=oe(),EL=rn(),bL=ot(),SL=dn(),IL=Math.max,xL=Math.min,wL=9007199254740991,AL="Maximum allowed length exceeded";gL({target:"Array",proto:!0,forced:!SL("splice")},{splice:function(r,t){var n=qL(this),i=yL(n.length),a=hL(r,i),o=arguments.length,u,s,c,f,d,v;if(o===0?u=s=0:o===1?(u=0,s=i-a):(u=o-2,s=xL(IL(mL(t),0),i-a)),i+u-s>wL)throw TypeError(AL);for(c=EL(n,s),f=0;f<s;f++)d=a+f,d in n&&bL(c,f,n[d]);if(c.length=s,u<s){for(f=a;f<i-s;f++)d=f+s,v=f+u,d in n?n[v]=n[d]:delete n[v];for(f=i;f>i-s+u;f--)delete n[f-1]}else if(u>s)for(f=i-s;f>a;f--)d=f+s-1,v=f+u-1,d in n?n[v]=n[d]:delete n[v];for(f=0;f<u;f++)n[f+a]=arguments[f+2];return n.length=i-s+u,c}})});var ut=l((Ise,qm)=>{"use strict";var _L=ae(),RL=ie(),CL=z(),OL=ee(),ym=CL("species");qm.exports=function(e){var r=_L(e),t=RL.f;OL&&r&&!r[ym]&&t(r,ym,{configurable:!0,get:function(){return this}})}});var Em=l(()=>{var TL=ut();TL("Array")});var bm=l(()=>{var PL=lr();PL("flat")});var Sm=l(()=>{var LL=lr();LL("flatMap")});var Ma=l((Ose,Am)=>{"use strict";var Im=Le(),NL=fe(),DL=le(),ML=z(),UL=U(),xm=ML("iterator"),wm=!1,jL=function(){return this},fn,Cu,Ou;[].keys&&(Ou=[].keys(),"next"in Ou?(Cu=Im(Im(Ou)),Cu!==Object.prototype&&(fn=Cu)):wm=!0);fn==null&&(fn={});!UL&&!DL(fn,xm)&&NL(fn,xm,jL);Am.exports={IteratorPrototype:fn,BUGGY_SAFARI_ITERATORS:wm}});var Ct=l((Tse,_m)=>{"use strict";var kL=Ma().IteratorPrototype,FL=Ue(),BL=br(),$L=ur(),VL=un(),HL=function(){return this};_m.exports=function(e,r,t){var n=r+" Iterator";return e.prototype=FL(kL,{next:BL(1,t)}),$L(e,n,!1,!0),VL[n]=HL,e}});var ka=l((Pse,Mm)=>{"use strict";var GL=p(),zL=Ct(),Rm=Le(),Cm=st(),KL=ur(),Om=fe(),WL=Oe(),YL=z(),Tu=U(),Tm=un(),Dm=Ma(),Pu=Dm.IteratorPrototype,Ua=Dm.BUGGY_SAFARI_ITERATORS,li=YL("iterator"),Pm="keys",ja="values",Lm="entries",Nm=function(){return this};Mm.exports=function(e,r,t,n,i,a,o){zL(t,r,n);var u=function(E){if(E===i&&v)return v;if(!Ua&&E in f)return f[E];switch(E){case Pm:return function(){return new t(this,E)};case ja:return function(){return new t(this,E)};case Lm:return function(){return new t(this,E)}}return function(){return new t(this)}},s=r+" Iterator",c=!1,f=e.prototype,d=f[li]||f["@@iterator"]||i&&f[i],v=!Ua&&d||u(i),q=r=="Array"&&f.entries||d,h,m,y;if(q&&(h=Rm(q.call(new e)),Pu!==Object.prototype&&h.next&&(!Tu&&Rm(h)!==Pu&&(Cm?Cm(h,Pu):typeof h[li]!="function"&&Om(h,li,Nm)),KL(h,s,!0,!0),Tu&&(Tm[s]=Nm))),i==ja&&d&&d.name!==ja&&(c=!0,v=function(){return d.call(this)}),(!Tu||o)&&f[li]!==v&&Om(f,li,v),Tm[r]=v,i)if(m={values:u(ja),keys:a?v:u(Pm),entries:u(Lm)},o)for(y in m)(Ua||c||!(y in f))&&WL(f,y,m[y]);else GL({target:r,proto:!0,forced:Ua||c},m);return m}});var ci=l((Lse,Fm)=>{"use strict";var QL=Fe(),Lu=lr(),Um=un(),jm=me(),XL=ka(),km="Array Iterator",ZL=jm.set,JL=jm.getterFor(km);Fm.exports=XL(Array,"Array",function(e,r){ZL(this,{type:km,target:QL(e),index:0,kind:r})},function(){var e=JL(this),r=e.target,t=e.kind,n=e.index++;return!r||n>=r.length?(e.target=void 0,{value:void 0,done:!0}):t=="keys"?{value:n,done:!1}:t=="values"?{value:r[n],done:!1}:{value:[n,r[n]],done:!1}},"values");Um.Arguments=Um.Array;Lu("keys");Lu("values");Lu("entries")});var Vm=l(()=>{var e7=p(),r7=Fr(),Bm=String.fromCharCode,$m=String.fromCodePoint,t7=!!$m&&$m.length!=1;e7({target:"String",stat:!0,forced:t7},{fromCodePoint:function(r){for(var t=[],n=arguments.length,i=0,a;n>i;){if(a=+arguments[i++],r7(a,1114111)!==a)throw RangeError(a+" is not a valid code point");t.push(a<65536?Bm(a):Bm(((a-=65536)>>10)+55296,a%1024+56320))}return t.join("")}})});var Hm=l(()=>{var n7=p(),i7=Fe(),a7=re();n7({target:"String",stat:!0},{raw:function(r){for(var t=i7(r.raw),n=a7(t.length),i=arguments.length,a=[],o=0;n>o;)a.push(String(t[o++])),o<i&&a.push(String(arguments[o]));return a.join("")}})});var Ot=l((jse,zm)=>{var o7=Be(),s7=xe(),Gm=function(e){return function(r,t){var n=String(s7(r)),i=o7(t),a=n.length,o,u;return i<0||i>=a?e?"":void 0:(o=n.charCodeAt(i),o<55296||o>56319||i+1===a||(u=n.charCodeAt(i+1))<56320||u>57343?e?n.charAt(i):o:e?n.slice(i,i+2):(o-55296<<10)+(u-56320)+65536)}};zm.exports={codeAt:Gm(!1),charAt:Gm(!0)}});var Km=l(()=>{"use strict";var u7=p(),l7=Ot().codeAt;u7({target:"String",proto:!0},{codePointAt:function(r){return l7(this,r)}})});var vn=l((Bse,Wm)=>{var c7=J(),d7=We(),f7=z(),v7=f7("match");Wm.exports=function(e){var r;return c7(e)&&((r=e[v7])!==void 0?!!r:d7(e)=="RegExp")}});var Fa=l(($se,Ym)=>{var p7=vn();Ym.exports=function(e){if(p7(e))throw TypeError("The method doesn't accept regular expressions");return e}});var Ba=l((Vse,Qm)=>{var g7=z(),h7=g7("match");Qm.exports=function(e){var r=/./;try{"/./"[e](r)}catch(t){try{return r[h7]=!1,"/./"[e](r)}catch(n){}}return!1}});var ey=l(()=>{"use strict";var m7=p(),y7=Ce().f,Xm=re(),q7=Fa(),E7=xe(),b7=Ba(),S7=U(),Zm="".endsWith,I7=Math.min,Jm=b7("endsWith"),x7=!S7&&!Jm&&!!function(){var e=y7(String.prototype,"endsWith");return e&&!e.writable}();m7({target:"String",proto:!0,forced:!x7&&!Jm},{endsWith:function(r){var t=String(E7(this));q7(r);var n=arguments.length>1?arguments[1]:void 0,i=Xm(t.length),a=n===void 0?i:I7(Xm(n),i),o=String(r);return Zm?Zm.call(t,o,a):t.slice(a-o.length,a)===o}})});var ry=l(()=>{"use strict";var w7=p(),A7=Fa(),_7=xe(),R7=Ba();w7({target:"String",proto:!0,forced:!R7("includes")},{includes:function(r){return!!~String(_7(this)).indexOf(A7(r),arguments.length>1?arguments[1]:void 0)}})});var Tt=l((Wse,ty)=>{"use strict";var C7=w();ty.exports=function(){var e=C7(this),r="";return e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.sticky&&(r+="y"),r}});var di=l((Yse,iy)=>{"use strict";var O7=Tt(),$a=RegExp.prototype.exec,T7=String.prototype.replace,ny=$a,Nu=function(){var e=/a/,r=/b*/g;return $a.call(e,"a"),$a.call(r,"a"),e.lastIndex!==0||r.lastIndex!==0}(),Du=/()??/.exec("")[1]!==void 0,P7=Nu||Du;P7&&(ny=function(r){var t=this,n,i,a,o;return Du&&(i=new RegExp("^"+t.source+"$(?!\\s)",O7.call(t))),Nu&&(n=t.lastIndex),a=$a.call(t,r),Nu&&a&&(t.lastIndex=t.global?a.index+a[0].length:n),Du&&a&&a.length>1&&T7.call(a[0],i,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(a[o]=void 0)}),a});iy.exports=ny});var fi=l((Qse,sy)=>{"use strict";var L7=fe(),ay=Oe(),Va=P(),oy=z(),N7=di(),D7=oy("species"),M7=!Va(function(){var e=/./;return e.exec=function(){var r=[];return r.groups={a:"7"},r},"".replace(e,"$<a>")!=="7"}),U7=!Va(function(){var e=/(?:)/,r=e.exec;e.exec=function(){return r.apply(this,arguments)};var t="ab".split(e);return t.length!==2||t[0]!=="a"||t[1]!=="b"});sy.exports=function(e,r,t,n){var i=oy(e),a=!Va(function(){var d={};return d[i]=function(){return 7},""[e](d)!=7}),o=a&&!Va(function(){var d=!1,v=/a/;return e==="split"&&(v={},v.constructor={},v.constructor[D7]=function(){return v},v.flags="",v[i]=/./[i]),v.exec=function(){return d=!0,null},v[i](""),!d});if(!a||!o||e==="replace"&&!M7||e==="split"&&!U7){var u=/./[i],s=t(i,""[e],function(d,v,q,h,m){return v.exec===N7?a&&!m?{done:!0,value:u.call(v,q,h)}:{done:!0,value:d.call(q,v,h)}:{done:!1}}),c=s[0],f=s[1];ay(String.prototype,e,c),ay(RegExp.prototype,i,r==2?function(d,v){return f.call(d,this,v)}:function(d){return f.call(d,this)}),n&&L7(RegExp.prototype[i],"sham",!0)}}});var vi=l((Xse,uy)=>{"use strict";var j7=Ot().charAt;uy.exports=function(e,r,t){return r+(t?j7(e,r).length:1)}});var pi=l((Zse,ly)=>{var k7=We(),F7=di();ly.exports=function(e,r){var t=e.exec;if(typeof t=="function"){var n=t.call(e,r);if(typeof n!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return n}if(k7(e)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return F7.call(e,r)}});var dy=l(()=>{"use strict";var B7=fi(),$7=w(),V7=re(),H7=xe(),G7=vi(),cy=pi();B7("match",1,function(e,r,t){return[function(i){var a=H7(this),o=i==null?void 0:i[e];return o!==void 0?o.call(i,a):new RegExp(i)[e](String(a))},function(n){var i=t(r,n,this);if(i.done)return i.value;var a=$7(n),o=String(this);if(!a.global)return cy(a,o);var u=a.unicode;a.lastIndex=0;for(var s=[],c=0,f;(f=cy(a,o))!==null;){var d=String(f[0]);s[c]=d,d===""&&(a.lastIndex=G7(o,V7(a.lastIndex),u)),c++}return c===0?null:s}]})});var Se=l((rue,vy)=>{var fy=w(),z7=D(),K7=z(),W7=K7("species");vy.exports=function(e,r){var t=fy(e).constructor,n;return t===void 0||(n=fy(t)[W7])==null?r:z7(n)}});var Fu=l(()=>{"use strict";var Y7=p(),Q7=Ct(),py=xe(),gy=re(),X7=D(),Z7=w(),J7=We(),eN=vn(),hy=Tt(),rN=fe(),tN=P(),nN=z(),iN=Se(),aN=vi(),my=me(),Uu=U(),Ha=nN("matchAll"),yy="RegExp String",qy=yy+" Iterator",oN=my.set,sN=my.getterFor(qy),gi=RegExp.prototype,uN=gi.exec,ju="".matchAll,Mu=!!ju&&!tN(function(){"a".matchAll(/./)}),lN=function(e,r){var t=e.exec,n;if(typeof t=="function"){if(n=t.call(e,r),typeof n!="object")throw TypeError("Incorrect exec result");return n}return uN.call(e,r)},cN=Q7(function(r,t,n,i){oN(this,{type:qy,regexp:r,string:t,global:n,unicode:i,done:!1})},yy,function(){var r=sN(this);if(r.done)return{value:void 0,done:!0};var t=r.regexp,n=r.string,i=lN(t,n);return i===null?{value:void 0,done:r.done=!0}:r.global?(String(i[0])==""&&(t.lastIndex=aN(n,gy(t.lastIndex),r.unicode)),{value:i,done:!1}):(r.done=!0,{value:i,done:!1})}),ku=function(e){var r=Z7(this),t=String(e),n,i,a,o,u,s;return n=iN(r,RegExp),i=r.flags,i===void 0&&r instanceof RegExp&&!("flags"in gi)&&(i=hy.call(r)),a=i===void 0?"":String(i),o=new n(n===RegExp?r.source:r,a),u=!!~a.indexOf("g"),s=!!~a.indexOf("u"),o.lastIndex=gy(r.lastIndex),new cN(o,t,u,s)};Y7({target:"String",proto:!0,forced:Mu},{matchAll:function(r){var t=py(this),n,i,a,o;if(r!=null){if(eN(r)&&(n=String(py("flags"in gi?r.flags:hy.call(r))),!~n.indexOf("g")))throw TypeError("`.matchAll` does not allow non-global regexes");if(Mu)return ju.apply(t,arguments);if(a=r[Ha],a===void 0&&Uu&&J7(r)=="RegExp"&&(a=ku),a!=null)return X7(a).call(r,t)}else if(Mu)return ju.apply(t,arguments);return i=String(t),o=new RegExp(r,"g"),Uu?ku.call(o,i):o[Ha](i)}});Uu||Ha in gi||rN(gi,Ha,ku)});var Ga=l((iue,Ey)=>{"use strict";var dN=Be(),fN=xe();Ey.exports="".repeat||function(r){var t=String(fN(this)),n="",i=dN(r);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))i&1&&(n+=t);return n}});var za=l((aue,Sy)=>{var vN=re(),pN=Ga(),gN=xe(),hN=Math.ceil,by=function(e){return function(r,t,n){var i=String(gN(r)),a=i.length,o=n===void 0?" ":String(n),u=vN(t),s,c;return u<=a||o==""?i:(s=u-a,c=pN.call(o,hN(s/o.length)),c.length>s&&(c=c.slice(0,s)),e?i+c:c+i)}};Sy.exports={start:by(!1),end:by(!0)}});var Bu=l((oue,Iy)=>{var mN=si();Iy.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(mN)});var xy=l(()=>{"use strict";var yN=p(),qN=za().end,EN=Bu();yN({target:"String",proto:!0,forced:EN},{padEnd:function(r){return qN(this,r,arguments.length>1?arguments[1]:void 0)}})});var wy=l(()=>{"use strict";var bN=p(),SN=za().start,IN=Bu();bN({target:"String",proto:!0,forced:IN},{padStart:function(r){return SN(this,r,arguments.length>1?arguments[1]:void 0)}})});var Ay=l(()=>{var xN=p(),wN=Ga();xN({target:"String",proto:!0},{repeat:wN})});var _y=l(()=>{"use strict";var AN=fi(),_N=w(),RN=oe(),CN=re(),ON=Be(),TN=xe(),PN=vi(),LN=pi(),NN=Math.max,DN=Math.min,MN=Math.floor,UN=/\$([$&'`]|\d\d?|<[^>]*>)/g,jN=/\$([$&'`]|\d\d?)/g,kN=function(e){return e===void 0?e:String(e)};AN("replace",2,function(e,r,t){return[function(a,o){var u=TN(this),s=a==null?void 0:a[e];return s!==void 0?s.call(a,u,o):r.call(String(u),a,o)},function(i,a){var o=t(r,i,this,a);if(o.done)return o.value;var u=_N(i),s=String(this),c=typeof a=="function";c||(a=String(a));var f=u.global;if(f){var d=u.unicode;u.lastIndex=0}for(var v=[];;){var q=LN(u,s);if(q===null||(v.push(q),!f))break;var h=String(q[0]);h===""&&(u.lastIndex=PN(s,CN(u.lastIndex),d))}for(var m="",y=0,E=0;E<v.length;E++){q=v[E];for(var _=String(q[0]),b=NN(DN(ON(q.index),s.length),0),A=[],O=1;O<q.length;O++)A.push(kN(q[O]));var j=q.groups;if(c){var k=[_].concat(A,b,s);j!==void 0&&k.push(j);var L=String(a.apply(void 0,k))}else L=n(_,s,b,A,j,a);b>=y&&(m+=s.slice(y,b)+L,y=b+_.length)}return m+s.slice(y)}];function n(i,a,o,u,s,c){var f=o+i.length,d=u.length,v=jN;return s!==void 0&&(s=RN(s),v=UN),r.call(c,v,function(q,h){var m;switch(h.charAt(0)){case"$":return"$";case"&":return i;case"`":return a.slice(0,o);case"'":return a.slice(f);case"<":m=s[h.slice(1,-1)];break;default:var y=+h;if(y===0)return q;if(y>d){var E=MN(y/10);return E===0?q:E<=d?u[E-1]===void 0?h.charAt(1):u[E-1]+h.charAt(1):q}m=u[y-1]}return m===void 0?"":m})}})});var Cy=l(()=>{"use strict";var FN=fi(),BN=w(),$N=xe(),Ry=iu(),VN=pi();FN("search",1,function(e,r,t){return[function(i){var a=$N(this),o=i==null?void 0:i[e];return o!==void 0?o.call(i,a):new RegExp(i)[e](String(a))},function(n){var i=t(r,n,this);if(i.done)return i.value;var a=BN(n),o=String(this),u=a.lastIndex;Ry(u,0)||(a.lastIndex=0);var s=VN(a,o);return Ry(a.lastIndex,u)||(a.lastIndex=u),s===null?-1:s.index}]})});var Py=l(()=>{"use strict";var HN=fi(),GN=vn(),zN=w(),Oy=xe(),KN=Se(),WN=vi(),YN=re(),Ty=pi(),QN=di(),XN=P(),ZN=[].push,JN=Math.min,$u=4294967295,pn=!XN(function(){return!RegExp($u,"y")});HN("split",2,function(e,r,t){var n;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?n=function(i,a){var o=String(Oy(this)),u=a===void 0?$u:a>>>0;if(u===0)return[];if(i===void 0)return[o];if(!GN(i))return r.call(o,i,u);for(var s=[],c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(i.sticky?"y":""),f=0,d=new RegExp(i.source,c+"g"),v,q,h;(v=QN.call(d,o))&&(q=d.lastIndex,!(q>f&&(s.push(o.slice(f,v.index)),v.length>1&&v.index<o.length&&ZN.apply(s,v.slice(1)),h=v[0].length,f=q,s.length>=u)));)d.lastIndex===v.index&&d.lastIndex++;return f===o.length?(h||!d.test(""))&&s.push(""):s.push(o.slice(f)),s.length>u?s.slice(0,u):s}:"0".split(void 0,0).length?n=function(i,a){return i===void 0&&a===0?[]:r.call(this,i,a)}:n=r,[function(a,o){var u=Oy(this),s=a==null?void 0:a[e];return s!==void 0?s.call(a,u,o):n.call(String(u),a,o)},function(i,a){var o=t(n,i,this,a,n!==r);if(o.done)return o.value;var u=zN(i),s=String(this),c=KN(u,RegExp),f=u.unicode,d=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(pn?"y":"g"),v=new c(pn?u:"^(?:"+u.source+")",d),q=a===void 0?$u:a>>>0;if(q===0)return[];if(s.length===0)return Ty(v,s)===null?[s]:[];for(var h=0,m=0,y=[];m<s.length;){v.lastIndex=pn?m:0;var E=Ty(v,pn?s:s.slice(m)),_;if(E===null||(_=JN(YN(v.lastIndex+(pn?0:m)),s.length))===h)m=WN(s,m,f);else{if(y.push(s.slice(h,m)),y.length===q)return y;for(var b=1;b<=E.length-1;b++)if(y.push(E[b]),y.length===q)return y;m=h=_}}return y.push(s.slice(h)),y}]},!pn)});var Dy=l(()=>{"use strict";var eD=p(),rD=Ce().f,tD=re(),nD=Fa(),iD=xe(),aD=Ba(),oD=U(),Ly="".startsWith,sD=Math.min,Ny=aD("startsWith"),uD=!oD&&!Ny&&!!function(){var e=rD(String.prototype,"startsWith");return e&&!e.writable}();eD({target:"String",proto:!0,forced:!uD&&!Ny},{startsWith:function(r){var t=String(iD(this));nD(r);var n=tD(sD(arguments.length>1?arguments[1]:void 0,t.length)),i=String(r);return Ly?Ly.call(t,i,n):t.slice(n,n+i.length)===i}})});var hi=l((bue,My)=>{My.exports=`
|
|
2
|
+
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var Pt=l((Sue,Uy)=>{var lD=xe(),cD=hi(),Ka="["+cD+"]",dD=RegExp("^"+Ka+Ka+"*"),fD=RegExp(Ka+Ka+"*$"),Vu=function(e){return function(r){var t=String(lD(r));return e&1&&(t=t.replace(dD,"")),e&2&&(t=t.replace(fD,"")),t}};Uy.exports={start:Vu(1),end:Vu(2),trim:Vu(3)}});var Wa=l((Iue,Fy)=>{var vD=P(),jy=hi(),ky="\u200B\x85\u180E";Fy.exports=function(e){return vD(function(){return!!jy[e]()||ky[e]()!=ky||jy[e].name!==e})}});var By=l(()=>{"use strict";var pD=p(),gD=Pt().trim,hD=Wa();pD({target:"String",proto:!0,forced:hD("trim")},{trim:function(){return gD(this)}})});var Hy=l(()=>{"use strict";var mD=p(),yD=Pt().start,qD=Wa(),Vy=qD("trimStart"),$y=Vy?function(){return yD(this)}:"".trimStart;mD({target:"String",proto:!0,forced:Vy},{trimStart:$y,trimLeft:$y})});var Ky=l(()=>{"use strict";var ED=p(),bD=Pt().end,SD=Wa(),zy=SD("trimEnd"),Gy=zy?function(){return bD(this)}:"".trimEnd;ED({target:"String",proto:!0,forced:zy},{trimEnd:Gy,trimRight:Gy})});var Hu=l(()=>{"use strict";var ID=Ot().charAt,Wy=me(),xD=ka(),Yy="String Iterator",wD=Wy.set,AD=Wy.getterFor(Yy);xD(String,"String",function(e){wD(this,{type:Yy,string:String(e),index:0})},function(){var r=AD(this),t=r.string,n=r.index,i;return n>=t.length?{value:void 0,done:!0}:(i=ID(t,n),r.index+=i.length,{value:i,done:!1})})});var He=l((Pue,Qy)=>{var _D=xe(),RD=/"/g;Qy.exports=function(e,r,t,n){var i=String(_D(e)),a="<"+r;return t!==""&&(a+=" "+t+'="'+String(n).replace(RD,""")+'"'),a+">"+i+"</"+r+">"}});var Ge=l((Lue,Xy)=>{var CD=P();Xy.exports=function(e){return CD(function(){var r=""[e]('"');return r!==r.toLowerCase()||r.split('"').length>3})}});var Zy=l(()=>{"use strict";var OD=p(),TD=He(),PD=Ge();OD({target:"String",proto:!0,forced:PD("anchor")},{anchor:function(r){return TD(this,"a","name",r)}})});var Jy=l(()=>{"use strict";var LD=p(),ND=He(),DD=Ge();LD({target:"String",proto:!0,forced:DD("big")},{big:function(){return ND(this,"big","","")}})});var e0=l(()=>{"use strict";var MD=p(),UD=He(),jD=Ge();MD({target:"String",proto:!0,forced:jD("blink")},{blink:function(){return UD(this,"blink","","")}})});var r0=l(()=>{"use strict";var kD=p(),FD=He(),BD=Ge();kD({target:"String",proto:!0,forced:BD("bold")},{bold:function(){return FD(this,"b","","")}})});var t0=l(()=>{"use strict";var $D=p(),VD=He(),HD=Ge();$D({target:"String",proto:!0,forced:HD("fixed")},{fixed:function(){return VD(this,"tt","","")}})});var n0=l(()=>{"use strict";var GD=p(),zD=He(),KD=Ge();GD({target:"String",proto:!0,forced:KD("fontcolor")},{fontcolor:function(r){return zD(this,"font","color",r)}})});var i0=l(()=>{"use strict";var WD=p(),YD=He(),QD=Ge();WD({target:"String",proto:!0,forced:QD("fontsize")},{fontsize:function(r){return YD(this,"font","size",r)}})});var a0=l(()=>{"use strict";var XD=p(),ZD=He(),JD=Ge();XD({target:"String",proto:!0,forced:JD("italics")},{italics:function(){return ZD(this,"i","","")}})});var o0=l(()=>{"use strict";var eM=p(),rM=He(),tM=Ge();eM({target:"String",proto:!0,forced:tM("link")},{link:function(r){return rM(this,"a","href",r)}})});var s0=l(()=>{"use strict";var nM=p(),iM=He(),aM=Ge();nM({target:"String",proto:!0,forced:aM("small")},{small:function(){return iM(this,"small","","")}})});var u0=l(()=>{"use strict";var oM=p(),sM=He(),uM=Ge();oM({target:"String",proto:!0,forced:uM("strike")},{strike:function(){return sM(this,"strike","","")}})});var l0=l(()=>{"use strict";var lM=p(),cM=He(),dM=Ge();lM({target:"String",proto:!0,forced:dM("sub")},{sub:function(){return cM(this,"sub","","")}})});var c0=l(()=>{"use strict";var fM=p(),vM=He(),pM=Ge();fM({target:"String",proto:!0,forced:pM("sup")},{sup:function(){return vM(this,"sup","","")}})});var mi=l((ole,f0)=>{var gM=J(),d0=st();f0.exports=function(e,r,t){var n,i;return d0&&typeof(n=r.constructor)=="function"&&n!==t&&gM(i=n.prototype)&&i!==t.prototype&&d0(e,i),e}});var h0=l(()=>{var hM=ee(),p0=B(),mM=en(),yM=mi(),qM=ie().f,EM=tt().f,bM=vn(),SM=Tt(),IM=Oe(),xM=P(),wM=ut(),AM=z(),_M=AM("match"),xr=p0.RegExp,Gu=xr.prototype,yi=/a/g,zu=/a/g,g0=new xr(yi)!==yi,RM=hM&&mM("RegExp",!g0||xM(function(){return zu[_M]=!1,xr(yi)!=yi||xr(zu)==zu||xr(yi,"i")!="/a/i"}));if(RM){for(Ir=function(r,t){var n=this instanceof Ir,i=bM(r),a=t===void 0;return!n&&i&&r.constructor===Ir&&a?r:yM(g0?new xr(i&&!a?r.source:r,t):xr((i=r instanceof Ir)?r.source:r,i&&a?SM.call(r):t),n?this:Gu,Ir)},v0=function(e){e in Ir||qM(Ir,e,{configurable:!0,get:function(){return xr[e]},set:function(r){xr[e]=r}})},Ku=EM(xr),Wu=0;Ku.length>Wu;)v0(Ku[Wu++]);Gu.constructor=Ir,Ir.prototype=Gu,IM(p0,"RegExp",Ir)}var Ir,v0,Ku,Wu;wM("RegExp")});var y0=l(()=>{"use strict";var CM=p(),m0=di();CM({target:"RegExp",proto:!0,forced:/./.exec!==m0},{exec:m0})});var q0=l(()=>{var OM=ee(),TM=ie(),PM=Tt();OM&&/./g.flags!="g"&&TM.f(RegExp.prototype,"flags",{configurable:!0,get:PM})});var S0=l(()=>{"use strict";var LM=Oe(),NM=w(),DM=P(),MM=Tt(),Yu="toString",E0=RegExp.prototype,b0=E0[Yu],UM=DM(function(){return b0.call({source:"a",flags:"b"})!="/a/b"}),jM=b0.name!=Yu;(UM||jM)&&LM(RegExp.prototype,Yu,function(){var r=NM(this),t=String(r.source),n=r.flags,i=String(n===void 0&&r instanceof RegExp&&!("flags"in E0)?MM.call(r):n);return"/"+t+"/"+i},{unsafe:!0})});var Qa=l((gle,x0)=>{var kM=B(),FM=Pt().trim,I0=hi(),Ya=kM.parseInt,BM=/^[+-]?0[Xx]/,$M=Ya(I0+"08")!==8||Ya(I0+"0x16")!==22;x0.exports=$M?function(r,t){var n=FM(String(r));return Ya(n,t>>>0||(BM.test(n)?16:10))}:Ya});var A0=l(()=>{var VM=p(),w0=Qa();VM({global:!0,forced:parseInt!=w0},{parseInt:w0})});var Xu=l((yle,_0)=>{var HM=B(),GM=Pt().trim,zM=hi(),Qu=HM.parseFloat,KM=1/Qu(zM+"-0")!==-1/0;_0.exports=KM?function(r){var t=GM(String(r)),n=Qu(t);return n===0&&t.charAt(0)=="-"?-0:n}:Qu});var C0=l(()=>{var WM=p(),R0=Xu();WM({global:!0,forced:parseFloat!=R0},{parseFloat:R0})});var N0=l(()=>{"use strict";var YM=ee(),P0=B(),QM=en(),XM=Oe(),O0=le(),L0=We(),ZM=mi(),JM=Je(),eU=P(),rU=Ue(),tU=tt().f,nU=Ce().f,iU=ie().f,aU=Pt().trim,Ei="Number",ct=P0[Ei],Za=ct.prototype,oU=L0(rU(Za))==Ei,T0=function(e){var r=JM(e,!1),t,n,i,a,o,u,s,c;if(typeof r=="string"&&r.length>2){if(r=aU(r),t=r.charCodeAt(0),t===43||t===45){if(n=r.charCodeAt(2),n===88||n===120)return NaN}else if(t===48){switch(r.charCodeAt(1)){case 66:case 98:i=2,a=49;break;case 79:case 111:i=8,a=55;break;default:return+r}for(o=r.slice(2),u=o.length,s=0;s<u;s++)if(c=o.charCodeAt(s),c<48||c>a)return NaN;return parseInt(o,i)}}return+r};if(QM(Ei,!ct(" 0o1")||!ct("0b1")||ct("+0x1"))){for(lt=function(r){var t=arguments.length<1?0:r,n=this;return n instanceof lt&&(oU?eU(function(){Za.valueOf.call(n)}):L0(n)!=Ei)?ZM(new ct(T0(t)),n,lt):T0(t)},Zu=YM?tU(ct):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Xa=0;Zu.length>Xa;Xa++)O0(ct,qi=Zu[Xa])&&!O0(lt,qi)&&iU(lt,qi,nU(ct,qi));lt.prototype=Za,Za.constructor=lt,XM(P0,Ei,lt)}var lt,Zu,Xa,qi});var D0=l(()=>{var sU=p();sU({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})});var Ju=l((wle,M0)=>{var uU=B(),lU=uU.isFinite;M0.exports=Number.isFinite||function(r){return typeof r=="number"&&lU(r)}});var U0=l(()=>{var cU=p(),dU=Ju();cU({target:"Number",stat:!0},{isFinite:dU})});var el=l((Rle,j0)=>{var fU=J(),vU=Math.floor;j0.exports=function(r){return!fU(r)&&isFinite(r)&&vU(r)===r}});var k0=l(()=>{var pU=p(),gU=el();pU({target:"Number",stat:!0},{isInteger:gU})});var F0=l(()=>{var hU=p();hU({target:"Number",stat:!0},{isNaN:function(r){return r!=r}})});var B0=l(()=>{var mU=p(),yU=el(),qU=Math.abs;mU({target:"Number",stat:!0},{isSafeInteger:function(r){return yU(r)&&qU(r)<=9007199254740991}})});var $0=l(()=>{var EU=p();EU({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})});var V0=l(()=>{var bU=p();bU({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})});var G0=l(()=>{var SU=p(),H0=Xu();SU({target:"Number",stat:!0,forced:Number.parseFloat!=H0},{parseFloat:H0})});var K0=l(()=>{var IU=p(),z0=Qa();IU({target:"Number",stat:!0,forced:Number.parseInt!=z0},{parseInt:z0})});var rl=l((Vle,W0)=>{var xU=We();W0.exports=function(e){if(typeof e!="number"&&xU(e)!="Number")throw TypeError("Incorrect invocation");return+e}});var X0=l(()=>{"use strict";var wU=p(),AU=Be(),_U=rl(),tl=Ga(),RU=P(),Y0=1 .toFixed,Q0=Math.floor,gn=function(e,r,t){return r===0?t:r%2===1?gn(e,r-1,t*e):gn(e*e,r/2,t)},CU=function(e){for(var r=0,t=e;t>=4096;)r+=12,t/=4096;for(;t>=2;)r+=1,t/=2;return r},OU=Y0&&(8e-5 .toFixed(3)!=="0.000"||.9 .toFixed(0)!=="1"||1.255 .toFixed(2)!=="1.25"||0xde0b6b3a7640080 .toFixed(0)!=="1000000000000000128")||!RU(function(){Y0.call({})});wU({target:"Number",proto:!0,forced:OU},{toFixed:function(r){var t=_U(this),n=AU(r),i=[0,0,0,0,0,0],a="",o="0",u,s,c,f,d=function(h,m){for(var y=-1,E=m;++y<6;)E+=h*i[y],i[y]=E%1e7,E=Q0(E/1e7)},v=function(h){for(var m=6,y=0;--m>=0;)y+=i[m],i[m]=Q0(y/h),y=y%h*1e7},q=function(){for(var h=6,m="";--h>=0;)if(m!==""||h===0||i[h]!==0){var y=String(i[h]);m=m===""?y:m+tl.call("0",7-y.length)+y}return m};if(n<0||n>20)throw RangeError("Incorrect fraction digits");if(t!=t)return"NaN";if(t<=-1e21||t>=1e21)return String(t);if(t<0&&(a="-",t=-t),t>1e-21)if(u=CU(t*gn(2,69,1))-69,s=u<0?t*gn(2,-u,1):t/gn(2,u,1),s*=4503599627370496,u=52-u,u>0){for(d(0,s),c=n;c>=7;)d(1e7,0),c-=7;for(d(gn(10,c,1),0),c=u-1;c>=23;)v(1<<23),c-=23;v(1<<c),d(1,1),v(2),o=q()}else d(0,s),d(1<<-u,0),o=q()+tl.call("0",n);return n>0?(f=o.length,o=a+(f<=n?"0."+tl.call("0",n-f)+o:o.slice(0,f-n)+"."+o.slice(f-n))):o=a+o,o}})});var e1=l(()=>{"use strict";var TU=p(),Z0=P(),J0=rl(),Ja=1 .toPrecision,PU=Z0(function(){return Ja.call(1,void 0)!=="1"})||!Z0(function(){Ja.call({})});TU({target:"Number",proto:!0,forced:PU},{toPrecision:function(r){return r===void 0?Ja.call(J0(this)):Ja.call(J0(this),r)}})});var nl=l((Wle,r1)=>{var LU=Math.log;r1.exports=Math.log1p||function(r){return(r=+r)>-1e-8&&r<1e-8?r-r*r/2:LU(1+r)}});var n1=l(()=>{var NU=p(),DU=nl(),il=Math.acosh,MU=Math.log,t1=Math.sqrt,UU=Math.LN2,jU=!il||Math.floor(il(Number.MAX_VALUE))!=710||il(1/0)!=1/0;NU({target:"Math",stat:!0,forced:jU},{acosh:function(r){return(r=+r)<1?NaN:r>9490626562425156e-8?MU(r)+UU:DU(r-1+t1(r-1)*t1(r+1))}})});var o1=l(()=>{var kU=p(),i1=Math.asinh,FU=Math.log,BU=Math.sqrt;function a1(e){return!isFinite(e=+e)||e==0?e:e<0?-a1(-e):FU(e+BU(e*e+1))}kU({target:"Math",stat:!0,forced:!(i1&&1/i1(0)>0)},{asinh:a1})});var u1=l(()=>{var $U=p(),s1=Math.atanh,VU=Math.log;$U({target:"Math",stat:!0,forced:!(s1&&1/s1(-0)<0)},{atanh:function(r){return(r=+r)==0?r:VU((1+r)/(1-r))/2}})});var eo=l((rce,l1)=>{l1.exports=Math.sign||function(r){return(r=+r)==0||r!=r?r:r<0?-1:1}});var c1=l(()=>{var HU=p(),GU=eo(),zU=Math.abs,KU=Math.pow;HU({target:"Math",stat:!0},{cbrt:function(r){return GU(r=+r)*KU(zU(r),1/3)}})});var d1=l(()=>{var WU=p(),YU=Math.floor,QU=Math.log,XU=Math.LOG2E;WU({target:"Math",stat:!0},{clz32:function(r){return(r>>>=0)?31-YU(QU(r+.5)*XU):32}})});var Si=l((oce,f1)=>{var bi=Math.expm1,ZU=Math.exp;f1.exports=!bi||bi(10)>22025.465794806718||bi(10)<22025.465794806718||bi(-2e-17)!=-2e-17?function(r){return(r=+r)==0?r:r>-1e-6&&r<1e-6?r+r*r/2:ZU(r)-1}:bi});var p1=l(()=>{var JU=p(),ej=Si(),v1=Math.cosh,rj=Math.abs,al=Math.E;JU({target:"Math",stat:!0,forced:!v1||v1(710)===1/0},{cosh:function(r){var t=ej(rj(r)-1)+1;return(t+1/(t*al*al))*(al/2)}})});var h1=l(()=>{var tj=p(),g1=Si();tj({target:"Math",stat:!0,forced:g1!=Math.expm1},{expm1:g1})});var ul=l((dce,m1)=>{var nj=eo(),ij=Math.abs,to=Math.pow,sl=to(2,-52),ro=to(2,-23),aj=to(2,127)*(2-ro),ol=to(2,-126),oj=function(e){return e+1/sl-1/sl};m1.exports=Math.fround||function(r){var t=ij(r),n=nj(r),i,a;return t<ol?n*oj(t/ol/ro)*ol*ro:(i=(1+ro/sl)*t,a=i-(i-t),a>aj||a!=a?n*(1/0):n*a)}});var y1=l(()=>{var sj=p(),uj=ul();sj({target:"Math",stat:!0},{fround:uj})});var E1=l(()=>{var lj=p(),q1=Math.hypot,cj=Math.abs,dj=Math.sqrt,fj=!!q1&&q1(1/0,NaN)!==1/0;lj({target:"Math",stat:!0,forced:fj},{hypot:function(r,t){for(var n=0,i=0,a=arguments.length,o=0,u,s;i<a;)u=cj(arguments[i++]),o<u?(s=o/u,n=n*s*s+1,o=u):u>0?(s=u/o,n+=s*s):n+=u;return o===1/0?1/0:o*dj(n)}})});var S1=l(()=>{var vj=p(),pj=P(),b1=Math.imul,gj=pj(function(){return b1(4294967295,5)!=-5||b1.length!=2});vj({target:"Math",stat:!0,forced:gj},{imul:function(r,t){var n=65535,i=+r,a=+t,o=n&i,u=n&a;return 0|o*u+((n&i>>>16)*u+o*(n&a>>>16)<<16>>>0)}})});var I1=l(()=>{var hj=p(),mj=Math.log,yj=Math.LOG10E;hj({target:"Math",stat:!0},{log10:function(r){return mj(r)*yj}})});var x1=l(()=>{var qj=p(),Ej=nl();qj({target:"Math",stat:!0},{log1p:Ej})});var w1=l(()=>{var bj=p(),Sj=Math.log,Ij=Math.LN2;bj({target:"Math",stat:!0},{log2:function(r){return Sj(r)/Ij}})});var A1=l(()=>{var xj=p(),wj=eo();xj({target:"Math",stat:!0},{sign:wj})});var C1=l(()=>{var Aj=p(),_j=P(),_1=Si(),Rj=Math.abs,R1=Math.exp,Cj=Math.E,Oj=_j(function(){return Math.sinh(-2e-17)!=-2e-17});Aj({target:"Math",stat:!0,forced:Oj},{sinh:function(r){return Rj(r=+r)<1?(_1(r)-_1(-r))/2:(R1(r-1)-R1(-r-1))*(Cj/2)}})});var P1=l(()=>{var Tj=p(),O1=Si(),T1=Math.exp;Tj({target:"Math",stat:!0},{tanh:function(r){var t=O1(r=+r),n=O1(-r);return t==1/0?1:n==1/0?-1:(t-n)/(T1(r)+T1(-r))}})});var L1=l(()=>{var Pj=ur();Pj(Math,"Math",!0)});var N1=l(()=>{var Lj=p(),Nj=Math.ceil,Dj=Math.floor;Lj({target:"Math",stat:!0},{trunc:function(r){return(r>0?Dj:Nj)(r)}})});var D1=l(()=>{var Mj=p();Mj({target:"Date",stat:!0},{now:function(){return new Date().getTime()}})});var M1=l(()=>{"use strict";var Uj=p(),jj=P(),kj=oe(),Fj=Je(),Bj=jj(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1});Uj({target:"Date",proto:!0,forced:Bj},{toJSON:function(r){var t=kj(this),n=Fj(t);return typeof n=="number"&&!isFinite(n)?null:t.toISOString()}})});var F1=l((jce,k1)=>{"use strict";var U1=P(),Lt=za().start,$j=Math.abs,j1=Date.prototype,Vj=j1.getTime,ll=j1.toISOString;k1.exports=U1(function(){return ll.call(new Date(-5e13-1))!="0385-07-25T07:06:39.999Z"})||!U1(function(){ll.call(new Date(NaN))})?function(){if(!isFinite(Vj.call(this)))throw RangeError("Invalid time value");var r=this,t=r.getUTCFullYear(),n=r.getUTCMilliseconds(),i=t<0?"-":t>9999?"+":"";return i+Lt($j(t),i?6:4,0)+"-"+Lt(r.getUTCMonth()+1,2,0)+"-"+Lt(r.getUTCDate(),2,0)+"T"+Lt(r.getUTCHours(),2,0)+":"+Lt(r.getUTCMinutes(),2,0)+":"+Lt(r.getUTCSeconds(),2,0)+"."+Lt(n,3,0)+"Z"}:ll});var $1=l(()=>{var Hj=p(),B1=F1();Hj({target:"Date",proto:!0,forced:Date.prototype.toISOString!==B1},{toISOString:B1})});var G1=l(()=>{var Gj=Oe(),cl=Date.prototype,V1="Invalid Date",H1="toString",zj=cl[H1],Kj=cl.getTime;new Date(NaN)+""!=V1&&Gj(cl,H1,function(){var r=Kj.call(this);return r===r?zj.call(this):V1})});var K1=l((Vce,z1)=>{"use strict";var Wj=w(),Yj=Je();z1.exports=function(e){if(e!=="string"&&e!=="number"&&e!=="default")throw TypeError("Incorrect hint");return Yj(Wj(this),e!=="number")}});var Q1=l(()=>{var Qj=fe(),Xj=K1(),Zj=z(),W1=Zj("toPrimitive"),Y1=Date.prototype;W1 in Y1||Qj(Y1,W1,Xj)});var J1=l(()=>{var Jj=p(),ek=ae(),rk=P(),no=ek("JSON","stringify"),tk=/[\uD800-\uDFFF]/g,X1=/^[\uD800-\uDBFF]$/,Z1=/^[\uDC00-\uDFFF]$/,nk=function(e,r,t){var n=t.charAt(r-1),i=t.charAt(r+1);return X1.test(e)&&!Z1.test(i)||Z1.test(e)&&!X1.test(n)?"\\u"+e.charCodeAt(0).toString(16):e},ik=rk(function(){return no("\uDF06\uD834")!=='"\\udf06\\ud834"'||no("\uDEAD")!=='"\\udead"'});no&&Jj({target:"JSON",stat:!0,forced:ik},{stringify:function(r,t,n){var i=no.apply(null,arguments);return typeof i=="string"?i.replace(tk,nk):i}})});var eq=l(()=>{var ak=B(),ok=ur();ok(ak.JSON,"JSON",!0)});var dl=l((Qce,rq)=>{var sk=B();rq.exports=sk.Promise});var wr=l((Xce,tq)=>{var uk=Oe();tq.exports=function(e,r,t){for(var n in r)uk(e,n,r[n],t);return e}});var rr=l((Zce,nq)=>{nq.exports=function(e,r,t){if(!(e instanceof r))throw TypeError("Incorrect "+(t?t+" ":"")+"invocation");return e}});var fl=l((Jce,iq)=>{var lk=si();iq.exports=/(iphone|ipod|ipad).*applewebkit/i.test(lk)});var io=l((ede,vq)=>{var Ar=B(),ck=P(),dk=We(),fk=he(),aq=Ts(),oq=da(),vk=fl(),sq=Ar.location,yl=Ar.setImmediate,ql=Ar.clearImmediate,uq=Ar.process,lq=Ar.MessageChannel,vl=Ar.Dispatch,pl=0,Ii={},cq="onreadystatechange",Nt,gl,hl,El=function(e){if(Ii.hasOwnProperty(e)){var r=Ii[e];delete Ii[e],r()}},ml=function(e){return function(){El(e)}},dq=function(e){El(e.data)},fq=function(e){Ar.postMessage(e+"",sq.protocol+"//"+sq.host)};(!yl||!ql)&&(yl=function(r){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return Ii[++pl]=function(){(typeof r=="function"?r:Function(r)).apply(void 0,t)},Nt(pl),pl},ql=function(r){delete Ii[r]},dk(uq)=="process"?Nt=function(e){uq.nextTick(ml(e))}:vl&&vl.now?Nt=function(e){vl.now(ml(e))}:lq&&!vk?(gl=new lq,hl=gl.port2,gl.port1.onmessage=dq,Nt=fk(hl.postMessage,hl,1)):Ar.addEventListener&&typeof postMessage=="function"&&!Ar.importScripts&&!ck(fq)?(Nt=fq,Ar.addEventListener("message",dq,!1)):cq in oq("script")?Nt=function(e){aq.appendChild(oq("script"))[cq]=function(){aq.removeChild(this),El(e)}}:Nt=function(e){setTimeout(ml(e),0)});vq.exports={set:yl,clear:ql}});var Al=l((rde,qq)=>{var mn=B(),pk=Ce().f,gk=We(),hk=io().set,mk=fl(),pq=mn.MutationObserver||mn.WebKitMutationObserver,wl=mn.process,bl=mn.Promise,gq=gk(wl)=="process",hq=pk(mn,"queueMicrotask"),yq=hq&&hq.value,xi,Dt,wi,hn,Sl,Il,xl,mq;yq||(xi=function(){var e,r;for(gq&&(e=wl.domain)&&e.exit();Dt;){r=Dt.fn,Dt=Dt.next;try{r()}catch(t){throw Dt?hn():wi=void 0,t}}wi=void 0,e&&e.enter()},gq?hn=function(){wl.nextTick(xi)}:pq&&!mk?(Sl=!0,Il=document.createTextNode(""),new pq(xi).observe(Il,{characterData:!0}),hn=function(){Il.data=Sl=!Sl}):bl&&bl.resolve?(xl=bl.resolve(void 0),mq=xl.then,hn=function(){mq.call(xl,xi)}):hn=function(){hk.call(mn,xi)});qq.exports=yq||function(e){var r={fn:e,next:void 0};wi&&(wi.next=r),Dt||(Dt=r,hn()),wi=r}});var yn=l((tde,bq)=>{"use strict";var Eq=D(),yk=function(e){var r,t;this.promise=new e(function(n,i){if(r!==void 0||t!==void 0)throw TypeError("Bad Promise constructor");r=n,t=i}),this.resolve=Eq(r),this.reject=Eq(t)};bq.exports.f=function(e){return new yk(e)}});var _l=l((nde,Sq)=>{var qk=w(),Ek=J(),bk=yn();Sq.exports=function(e,r){if(qk(e),Ek(r)&&r.constructor===e)return r;var t=bk.f(e),n=t.resolve;return n(r),t.promise}});var Rl=l((ide,Iq)=>{var Sk=B();Iq.exports=function(e,r){var t=Sk.console;t&&t.error&&(arguments.length===1?t.error(e):t.error(e,r))}});var Ai=l((ade,xq)=>{xq.exports=function(e){try{return{error:!1,value:e()}}catch(r){return{error:!0,value:r}}}});var Hq=l(()=>{"use strict";var Ri=p(),so=U(),Kr=B(),Lq=ae(),oo=dl(),Ik=Oe(),xk=wr(),wk=ur(),Ak=ut(),_k=J(),Cl=D(),Rk=rr(),Ck=We(),Ok=pa(),wq=$(),Tk=oi(),Pk=Se(),Nq=io().set,Dq=Al(),Mq=_l(),Lk=Rl(),Uq=yn(),Ol=Ai(),Ll=me(),Nk=en(),Dk=z(),Aq=Na(),Mk=Dk("species"),_r="Promise",_q=Ll.get,Uk=Ll.set,jk=Ll.getterFor(_r),Ne=oo,jq=Kr.TypeError,Tl=Kr.document,uo=Kr.process,Rq=Lq("fetch"),bn=Uq.f,kk=bn,_i=Ck(uo)=="process",Fk=!!(Tl&&Tl.createEvent&&Kr.dispatchEvent),kq="unhandledrejection",Bk="rejectionhandled",Cq=0,Fq=1,$k=2,Nl=1,Bq=2,ao,Oq,Dl,Tq,Ci=Nk(_r,function(){var e=Ok(Ne)!==String(Ne);if(!e&&(Aq===66||!_i&&typeof PromiseRejectionEvent!="function")||so&&!Ne.prototype.finally)return!0;if(Aq>=51&&/native code/.test(Ne))return!1;var r=Ne.resolve(1),t=function(i){i(function(){},function(){})},n=r.constructor={};return n[Mk]=t,!(r.then(function(){})instanceof t)}),Vk=Ci||!Tk(function(e){Ne.all(e).catch(function(){})}),$q=function(e){var r;return _k(e)&&typeof(r=e.then)=="function"?r:!1},Ml=function(e,r,t){if(!r.notified){r.notified=!0;var n=r.reactions;Dq(function(){for(var i=r.value,a=r.state==Fq,o=0;n.length>o;){var u=n[o++],s=a?u.ok:u.fail,c=u.resolve,f=u.reject,d=u.domain,v,q,h;try{s?(a||(r.rejection===Bq&&Gk(e,r),r.rejection=Nl),s===!0?v=i:(d&&d.enter(),v=s(i),d&&(d.exit(),h=!0)),v===u.promise?f(jq("Promise-chain cycle")):(q=$q(v))?q.call(v,c,f):c(v)):f(i)}catch(m){d&&!h&&d.exit(),f(m)}}r.reactions=[],r.notified=!1,t&&!r.rejection&&Hk(e,r)})}},Vq=function(e,r,t){var n,i;Fk?(n=Tl.createEvent("Event"),n.promise=r,n.reason=t,n.initEvent(e,!1,!0),Kr.dispatchEvent(n)):n={promise:r,reason:t},(i=Kr["on"+e])?i(n):e===kq&&Lk("Unhandled promise rejection",t)},Hk=function(e,r){Nq.call(Kr,function(){var t=r.value,n=Pq(r),i;if(n&&(i=Ol(function(){_i?uo.emit("unhandledRejection",t,e):Vq(kq,e,t)}),r.rejection=_i||Pq(r)?Bq:Nl,i.error))throw i.value})},Pq=function(e){return e.rejection!==Nl&&!e.parent},Gk=function(e,r){Nq.call(Kr,function(){_i?uo.emit("rejectionHandled",e):Vq(Bk,e,r.value)})},qn=function(e,r,t,n){return function(i){e(r,t,i,n)}},En=function(e,r,t,n){r.done||(r.done=!0,n&&(r=n),r.value=t,r.state=$k,Ml(e,r,!0))},Pl=function(e,r,t,n){if(!r.done){r.done=!0,n&&(r=n);try{if(e===t)throw jq("Promise can't be resolved itself");var i=$q(t);i?Dq(function(){var a={done:!1};try{i.call(t,qn(Pl,e,a,r),qn(En,e,a,r))}catch(o){En(e,a,o,r)}}):(r.value=t,r.state=Fq,Ml(e,r,!1))}catch(a){En(e,{done:!1},a,r)}}};Ci&&(Ne=function(r){Rk(this,Ne,_r),Cl(r),ao.call(this);var t=_q(this);try{r(qn(Pl,this,t),qn(En,this,t))}catch(n){En(this,t,n)}},ao=function(r){Uk(this,{type:_r,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Cq,value:void 0})},ao.prototype=xk(Ne.prototype,{then:function(r,t){var n=jk(this),i=bn(Pk(this,Ne));return i.ok=typeof r=="function"?r:!0,i.fail=typeof t=="function"&&t,i.domain=_i?uo.domain:void 0,n.parent=!0,n.reactions.push(i),n.state!=Cq&&Ml(this,n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),Oq=function(){var e=new ao,r=_q(e);this.promise=e,this.resolve=qn(Pl,e,r),this.reject=qn(En,e,r)},Uq.f=bn=function(e){return e===Ne||e===Dl?new Oq(e):kk(e)},!so&&typeof oo=="function"&&(Tq=oo.prototype.then,Ik(oo.prototype,"then",function(r,t){var n=this;return new Ne(function(i,a){Tq.call(n,i,a)}).then(r,t)},{unsafe:!0}),typeof Rq=="function"&&Ri({global:!0,enumerable:!0,forced:!0},{fetch:function(r){return Mq(Ne,Rq.apply(Kr,arguments))}})));Ri({global:!0,wrap:!0,forced:Ci},{Promise:Ne});wk(Ne,_r,!1,!0);Ak(_r);Dl=Lq(_r);Ri({target:_r,stat:!0,forced:Ci},{reject:function(r){var t=bn(this);return t.reject.call(void 0,r),t.promise}});Ri({target:_r,stat:!0,forced:so||Ci},{resolve:function(r){return Mq(so&&this===Dl?Ne:this,r)}});Ri({target:_r,stat:!0,forced:Vk},{all:function(r){var t=this,n=bn(t),i=n.resolve,a=n.reject,o=Ol(function(){var u=Cl(t.resolve),s=[],c=0,f=1;wq(r,function(d){var v=c++,q=!1;s.push(void 0),f++,u.call(t,d).then(function(h){q||(q=!0,s[v]=h,--f||i(s))},a)}),--f||i(s)});return o.error&&a(o.value),n.promise},race:function(r){var t=this,n=bn(t),i=n.reject,a=Ol(function(){var o=Cl(t.resolve);wq(r,function(u){o.call(t,u).then(n.resolve,i)})});return a.error&&i(a.value),n.promise}})});var Ul=l(()=>{"use strict";var zk=p(),Kk=D(),Wk=yn(),Yk=Ai(),Qk=$();zk({target:"Promise",stat:!0},{allSettled:function(r){var t=this,n=Wk.f(t),i=n.resolve,a=n.reject,o=Yk(function(){var u=Kk(t.resolve),s=[],c=0,f=1;Qk(r,function(d){var v=c++,q=!1;s.push(void 0),f++,u.call(t,d).then(function(h){q||(q=!0,s[v]={status:"fulfilled",value:h},--f||i(s))},function(h){q||(q=!0,s[v]={status:"rejected",reason:h},--f||i(s))})}),--f||i(s)});return o.error&&a(o.value),n.promise}})});var Kq=l(()=>{"use strict";var Xk=p(),Zk=U(),Oi=dl(),Jk=P(),zq=ae(),eF=Se(),Gq=_l(),rF=Oe(),tF=!!Oi&&Jk(function(){Oi.prototype.finally.call({then:function(){}},function(){})});Xk({target:"Promise",proto:!0,real:!0,forced:tF},{finally:function(e){var r=eF(this,zq("Promise")),t=typeof e=="function";return this.then(t?function(n){return Gq(r,e()).then(function(){return n})}:e,t?function(n){return Gq(r,e()).then(function(){throw n})}:e)}});!Zk&&typeof Oi=="function"&&!Oi.prototype.finally&&rF(Oi.prototype,"finally",zq("Promise").prototype.finally)});var Ti=l((fde,Yq)=>{"use strict";var nF=p(),iF=B(),Wq=en(),aF=Oe(),oF=at(),sF=$(),uF=rr(),jl=J(),kl=P(),lF=oi(),cF=ur(),dF=mi();Yq.exports=function(e,r,t){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,a=n?"set":"add",o=iF[e],u=o&&o.prototype,s=o,c={},f=function(y){var E=u[y];aF(u,y,y=="add"?function(b){return E.call(this,b===0?0:b),this}:y=="delete"?function(_){return i&&!jl(_)?!1:E.call(this,_===0?0:_)}:y=="get"?function(b){return i&&!jl(b)?void 0:E.call(this,b===0?0:b)}:y=="has"?function(b){return i&&!jl(b)?!1:E.call(this,b===0?0:b)}:function(b,A){return E.call(this,b===0?0:b,A),this})};if(Wq(e,typeof o!="function"||!(i||u.forEach&&!kl(function(){new o().entries().next()}))))s=t.getConstructor(r,e,n,a),oF.REQUIRED=!0;else if(Wq(e,!0)){var d=new s,v=d[a](i?{}:-0,1)!=d,q=kl(function(){d.has(1)}),h=lF(function(y){new o(y)}),m=!i&&kl(function(){for(var y=new o,E=5;E--;)y[a](E,E);return!y.has(-0)});h||(s=r(function(y,E){uF(y,s,e);var _=dF(new o,y,s);return E!=null&&sF(E,_[a],_,n),_}),s.prototype=u,u.constructor=s),(q||m)&&(f("delete"),f("has"),n&&f("get")),(m||v)&&f(a),i&&u.clear&&delete u.clear}return c[e]=s,nF({global:!0,forced:s!=o},c),cF(s,e),i||t.setStrong(s,e,n),s}});var Bl=l((vde,eE)=>{"use strict";var fF=ie().f,vF=Ue(),Qq=wr(),pF=he(),gF=rr(),hF=$(),mF=ka(),yF=ut(),Pi=ee(),Xq=at().fastKey,Jq=me(),Zq=Jq.set,Fl=Jq.getterFor;eE.exports={getConstructor:function(e,r,t,n){var i=e(function(s,c){gF(s,i,r),Zq(s,{type:r,index:vF(null),first:void 0,last:void 0,size:0}),Pi||(s.size=0),c!=null&&hF(c,s[n],s,t)}),a=Fl(r),o=function(s,c,f){var d=a(s),v=u(s,c),q,h;return v?v.value=f:(d.last=v={index:h=Xq(c,!0),key:c,value:f,previous:q=d.last,next:void 0,removed:!1},d.first||(d.first=v),q&&(q.next=v),Pi?d.size++:s.size++,h!=="F"&&(d.index[h]=v)),s},u=function(s,c){var f=a(s),d=Xq(c),v;if(d!=="F")return f.index[d];for(v=f.first;v;v=v.next)if(v.key==c)return v};return Qq(i.prototype,{clear:function(){for(var c=this,f=a(c),d=f.index,v=f.first;v;)v.removed=!0,v.previous&&(v.previous=v.previous.next=void 0),delete d[v.index],v=v.next;f.first=f.last=void 0,Pi?f.size=0:c.size=0},delete:function(s){var c=this,f=a(c),d=u(c,s);if(d){var v=d.next,q=d.previous;delete f.index[d.index],d.removed=!0,q&&(q.next=v),v&&(v.previous=q),f.first==d&&(f.first=v),f.last==d&&(f.last=q),Pi?f.size--:c.size--}return!!d},forEach:function(c){for(var f=a(this),d=pF(c,arguments.length>1?arguments[1]:void 0,3),v;v=v?v.next:f.first;)for(d(v.value,v.key,this);v&&v.removed;)v=v.previous},has:function(c){return!!u(this,c)}}),Qq(i.prototype,t?{get:function(c){var f=u(this,c);return f&&f.value},set:function(c,f){return o(this,c===0?0:c,f)}}:{add:function(c){return o(this,c=c===0?0:c,c)}}),Pi&&fF(i.prototype,"size",{get:function(){return a(this).size}}),i},setStrong:function(e,r,t){var n=r+" Iterator",i=Fl(r),a=Fl(n);mF(e,r,function(o,u){Zq(this,{type:n,target:o,state:i(o),kind:u,last:void 0})},function(){for(var o=a(this),u=o.kind,s=o.last;s&&s.removed;)s=s.previous;return!o.target||!(o.last=s=s?s.next:o.state.first)?(o.target=void 0,{value:void 0,done:!0}):u=="keys"?{value:s.key,done:!1}:u=="values"?{value:s.value,done:!1}:{value:[s.key,s.value],done:!1}},t?"entries":"values",!t,!0),yF(r)}}});var lo=l((pde,rE)=>{"use strict";var qF=Ti(),EF=Bl();rE.exports=qF("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},EF)});var $l=l((gde,tE)=>{"use strict";var bF=Ti(),SF=Bl();tE.exports=bF("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},SF)});var Gl=l((hde,uE)=>{"use strict";var nE=wr(),co=at().getWeakData,IF=w(),Vl=J(),xF=rr(),wF=$(),aE=we(),iE=le(),oE=me(),AF=oE.set,_F=oE.getterFor,RF=aE.find,CF=aE.findIndex,OF=0,fo=function(e){return e.frozen||(e.frozen=new sE)},sE=function(){this.entries=[]},Hl=function(e,r){return RF(e.entries,function(t){return t[0]===r})};sE.prototype={get:function(e){var r=Hl(this,e);if(r)return r[1]},has:function(e){return!!Hl(this,e)},set:function(e,r){var t=Hl(this,e);t?t[1]=r:this.entries.push([e,r])},delete:function(e){var r=CF(this.entries,function(t){return t[0]===e});return~r&&this.entries.splice(r,1),!!~r}};uE.exports={getConstructor:function(e,r,t,n){var i=e(function(u,s){xF(u,i,r),AF(u,{type:r,id:OF++,frozen:void 0}),s!=null&&wF(s,u[n],u,t)}),a=_F(r),o=function(u,s,c){var f=a(u),d=co(IF(s),!0);return d===!0?fo(f).set(s,c):d[f.id]=c,u};return nE(i.prototype,{delete:function(u){var s=a(this);if(!Vl(u))return!1;var c=co(u);return c===!0?fo(s).delete(u):c&&iE(c,s.id)&&delete c[s.id]},has:function(s){var c=a(this);if(!Vl(s))return!1;var f=co(s);return f===!0?fo(c).has(s):f&&iE(f,c.id)}}),nE(i.prototype,t?{get:function(s){var c=a(this);if(Vl(s)){var f=co(s);return f===!0?fo(c).get(s):f?f[c.id]:void 0}},set:function(s,c){return o(this,s,c)}}:{add:function(s){return o(this,s,!0)}}),i}}});var ho=l((mde,fE)=>{"use strict";var lE=B(),TF=wr(),PF=at(),LF=Ti(),cE=Gl(),vo=J(),po=me().enforce,NF=Is(),DF=!lE.ActiveXObject&&"ActiveXObject"in lE,go=Object.isExtensible,Li,dE=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},MF=fE.exports=LF("WeakMap",dE,cE);NF&&DF&&(Li=cE.getConstructor(dE,"WeakMap",!0),PF.REQUIRED=!0,Sn=MF.prototype,zl=Sn.delete,Ni=Sn.has,Kl=Sn.get,Wl=Sn.set,TF(Sn,{delete:function(e){if(vo(e)&&!go(e)){var r=po(this);return r.frozen||(r.frozen=new Li),zl.call(this,e)||r.frozen.delete(e)}return zl.call(this,e)},has:function(r){if(vo(r)&&!go(r)){var t=po(this);return t.frozen||(t.frozen=new Li),Ni.call(this,r)||t.frozen.has(r)}return Ni.call(this,r)},get:function(r){if(vo(r)&&!go(r)){var t=po(this);return t.frozen||(t.frozen=new Li),Ni.call(this,r)?Kl.call(this,r):t.frozen.get(r)}return Kl.call(this,r)},set:function(r,t){if(vo(r)&&!go(r)){var n=po(this);n.frozen||(n.frozen=new Li),Ni.call(this,r)?Wl.call(this,r,t):n.frozen.set(r,t)}else Wl.call(this,r,t);return this}}));var Sn,zl,Ni,Kl,Wl});var vE=l(()=>{"use strict";var UF=Ti(),jF=Gl();UF("WeakSet",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},jF)});var te=l((Ede,SE)=>{"use strict";var Jl=ee(),De=B(),qE=J(),In=le(),ec=ln(),kF=fe(),Yl=Oe(),FF=ie().f,yo=Le(),dt=st(),BF=z(),$F=Qt(),Ql=De.DataView,pE=Ql&&Ql.prototype,Di=De.Int8Array,Xl=Di&&Di.prototype,gE=De.Uint8ClampedArray,hE=gE&&gE.prototype,Wr=Di&&yo(Di),cr=Xl&&yo(Xl),mo=Object.prototype,mE=mo.isPrototypeOf,yE=BF("toStringTag"),Zl=$F("TYPED_ARRAY_TAG"),rc=!!(De.ArrayBuffer&&Ql),Yr=rc&&!!dt&&ec(De.opera)!=="Opera",EE=!1,Ye,dr={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},VF=function(r){var t=ec(r);return t==="DataView"||In(dr,t)},bE=function(e){return qE(e)&&In(dr,ec(e))},HF=function(e){if(bE(e))return e;throw TypeError("Target is not a typed array")},GF=function(e){if(dt){if(mE.call(Wr,e))return e}else for(var r in dr)if(In(dr,Ye)){var t=De[r];if(t&&(e===t||mE.call(t,e)))return e}throw TypeError("Target is not a typed array constructor")},zF=function(e,r,t){if(!!Jl){if(t)for(var n in dr){var i=De[n];i&&In(i.prototype,e)&&delete i.prototype[e]}(!cr[e]||t)&&Yl(cr,e,t?r:Yr&&Xl[e]||r)}},KF=function(e,r,t){var n,i;if(!!Jl){if(dt){if(t)for(n in dr)i=De[n],i&&In(i,e)&&delete i[e];if(!Wr[e]||t)try{return Yl(Wr,e,t?r:Yr&&Di[e]||r)}catch(a){}else return}for(n in dr)i=De[n],i&&(!i[e]||t)&&Yl(i,e,r)}};for(Ye in dr)De[Ye]||(Yr=!1);if((!Yr||typeof Wr!="function"||Wr===Function.prototype)&&(Wr=function(){throw TypeError("Incorrect invocation")},Yr))for(Ye in dr)De[Ye]&&dt(De[Ye],Wr);if((!Yr||!cr||cr===mo)&&(cr=Wr.prototype,Yr))for(Ye in dr)De[Ye]&&dt(De[Ye].prototype,cr);Yr&&yo(hE)!==cr&&dt(hE,cr);if(Jl&&!In(cr,yE)){EE=!0,FF(cr,yE,{get:function(){return qE(this)?this[Zl]:void 0}});for(Ye in dr)De[Ye]&&kF(De[Ye],Zl,Ye)}rc&&dt&&yo(pE)!==mo&&dt(pE,mo);SE.exports={NATIVE_ARRAY_BUFFER:rc,NATIVE_ARRAY_BUFFER_VIEWS:Yr,TYPED_ARRAY_TAG:EE&&Zl,aTypedArray:HF,aTypedArrayConstructor:GF,exportTypedArrayMethod:zF,exportTypedArrayStaticMethod:KF,isView:VF,isTypedArray:bE,TypedArray:Wr,TypedArrayPrototype:cr}});var tc=l((bde,IE)=>{var WF=Be(),YF=re();IE.exports=function(e){if(e===void 0)return 0;var r=WF(e),t=YF(r);if(r!==t)throw RangeError("Wrong length or index");return t}});var wE=l((Sde,xE)=>{var nc=1/0,QF=Math.abs,Qr=Math.pow,XF=Math.floor,ZF=Math.log,JF=Math.LN2,eB=function(e,r,t){var n=new Array(t),i=t*8-r-1,a=(1<<i)-1,o=a>>1,u=r===23?Qr(2,-24)-Qr(2,-77):0,s=e<0||e===0&&1/e<0?1:0,c=0,f,d,v;for(e=QF(e),e!=e||e===nc?(d=e!=e?1:0,f=a):(f=XF(ZF(e)/JF),e*(v=Qr(2,-f))<1&&(f--,v*=2),f+o>=1?e+=u/v:e+=u*Qr(2,1-o),e*v>=2&&(f++,v/=2),f+o>=a?(d=0,f=a):f+o>=1?(d=(e*v-1)*Qr(2,r),f=f+o):(d=e*Qr(2,o-1)*Qr(2,r),f=0));r>=8;n[c++]=d&255,d/=256,r-=8);for(f=f<<r|d,i+=r;i>0;n[c++]=f&255,f/=256,i-=8);return n[--c]|=s*128,n},rB=function(e,r){var t=e.length,n=t*8-r-1,i=(1<<n)-1,a=i>>1,o=n-7,u=t-1,s=e[u--],c=s&127,f;for(s>>=7;o>0;c=c*256+e[u],u--,o-=8);for(f=c&(1<<-o)-1,c>>=-o,o+=r;o>0;f=f*256+e[u],u--,o-=8);if(c===0)c=1-a;else{if(c===i)return f?NaN:s?-nc:nc;f=f+Qr(2,r),c=c-a}return(s?-1:1)*f*Qr(2,c-r)};xE.exports={pack:eB,unpack:rB}});var Ui=l((Ide,kE)=>{"use strict";var lc=B(),ic=ee(),tB=te().NATIVE_ARRAY_BUFFER,nB=fe(),AE=wr(),ac=P(),qo=rr(),iB=Be(),aB=re(),So=tc(),NE=wE(),oB=tt().f,sB=ie().f,uB=Da(),DE=ur(),ME=me(),wn=ME.get,_E=ME.set,Io="ArrayBuffer",xo="DataView",xn="prototype",lB="Wrong length",UE="Wrong index",fr=lc[Io],Qe=fr,vr=lc[xo],wo=lc.RangeError,jE=NE.pack,RE=NE.unpack,CE=function(e){return[e&255]},OE=function(e){return[e&255,e>>8&255]},TE=function(e){return[e&255,e>>8&255,e>>16&255,e>>24&255]},PE=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},cB=function(e){return jE(e,23,4)},dB=function(e){return jE(e,52,8)},Eo=function(e,r){sB(e[xn],r,{get:function(){return wn(this)[r]}})},ft=function(e,r,t,n){var i=So(t),a=wn(e);if(i+r>a.byteLength)throw wo(UE);var o=wn(a.buffer).bytes,u=i+a.byteOffset,s=o.slice(u,u+r);return n?s:s.reverse()},vt=function(e,r,t,n,i,a){var o=So(t),u=wn(e);if(o+r>u.byteLength)throw wo(UE);for(var s=wn(u.buffer).bytes,c=o+u.byteOffset,f=n(+i),d=0;d<r;d++)s[c+d]=f[a?d:r-d-1]};if(!tB)Qe=function(r){qo(this,Qe,Io);var t=So(r);_E(this,{bytes:uB.call(new Array(t),0),byteLength:t}),ic||(this.byteLength=t)},vr=function(r,t,n){qo(this,vr,xo),qo(r,Qe,xo);var i=wn(r).byteLength,a=iB(t);if(a<0||a>i)throw wo("Wrong offset");if(n=n===void 0?i-a:aB(n),a+n>i)throw wo(lB);_E(this,{buffer:r,byteLength:n,byteOffset:a}),ic||(this.buffer=r,this.byteLength=n,this.byteOffset=a)},ic&&(Eo(Qe,"byteLength"),Eo(vr,"buffer"),Eo(vr,"byteLength"),Eo(vr,"byteOffset")),AE(vr[xn],{getInt8:function(r){return ft(this,1,r)[0]<<24>>24},getUint8:function(r){return ft(this,1,r)[0]},getInt16:function(r){var t=ft(this,2,r,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(r){var t=ft(this,2,r,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(r){return PE(ft(this,4,r,arguments.length>1?arguments[1]:void 0))},getUint32:function(r){return PE(ft(this,4,r,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(r){return RE(ft(this,4,r,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(r){return RE(ft(this,8,r,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(r,t){vt(this,1,r,CE,t)},setUint8:function(r,t){vt(this,1,r,CE,t)},setInt16:function(r,t){vt(this,2,r,OE,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(r,t){vt(this,2,r,OE,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(r,t){vt(this,4,r,TE,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(r,t){vt(this,4,r,TE,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(r,t){vt(this,4,r,cB,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(r,t){vt(this,8,r,dB,t,arguments.length>2?arguments[2]:void 0)}});else{if(!ac(function(){fr(1)})||!ac(function(){new fr(-1)})||ac(function(){return new fr,new fr(1.5),new fr(NaN),fr.name!=Io})){for(Qe=function(r){return qo(this,Qe),new fr(So(r))},LE=Qe[xn]=fr[xn],oc=oB(fr),sc=0;oc.length>sc;)(bo=oc[sc++])in Qe||nB(Qe,bo,fr[bo]);LE.constructor=Qe}Mi=new vr(new Qe(2)),uc=vr[xn].setInt8,Mi.setInt8(0,2147483648),Mi.setInt8(1,2147483649),(Mi.getInt8(0)||!Mi.getInt8(1))&&AE(vr[xn],{setInt8:function(r,t){uc.call(this,r,t<<24>>24)},setUint8:function(r,t){uc.call(this,r,t<<24>>24)}},{unsafe:!0})}var LE,oc,sc,bo,Mi,uc;DE(Qe,Io);DE(vr,xo);kE.exports={ArrayBuffer:Qe,DataView:vr}});var BE=l(()=>{"use strict";var fB=p(),vB=B(),pB=Ui(),gB=ut(),cc="ArrayBuffer",FE=pB[cc],hB=vB[cc];fB({global:!0,forced:hB!==FE},{ArrayBuffer:FE});gB(cc)});var VE=l(()=>{var mB=p(),$E=te(),yB=$E.NATIVE_ARRAY_BUFFER_VIEWS;mB({target:"ArrayBuffer",stat:!0,forced:!yB},{isView:$E.isView})});var YE=l(()=>{"use strict";var qB=p(),EB=P(),WE=Ui(),HE=w(),GE=Fr(),bB=re(),SB=Se(),dc=WE.ArrayBuffer,zE=WE.DataView,KE=dc.prototype.slice,IB=EB(function(){return!new dc(2).slice(1,void 0).byteLength});qB({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:IB},{slice:function(r,t){if(KE!==void 0&&t===void 0)return KE.call(HE(this),r);for(var n=HE(this).byteLength,i=GE(r,n),a=GE(t===void 0?n:t,n),o=new(SB(this,dc))(bB(a-i)),u=new zE(this),s=new zE(o),c=0;i<a;)s.setUint8(c++,u.getUint8(i++));return o}})});var QE=l(()=>{var xB=p(),wB=Ui(),AB=te().NATIVE_ARRAY_BUFFER;xB({global:!0,forced:!AB},{DataView:wB.DataView})});var Ao=l((Pde,ZE)=>{var XE=B(),fc=P(),_B=oi(),RB=te().NATIVE_ARRAY_BUFFER_VIEWS,CB=XE.ArrayBuffer,Mt=XE.Int8Array;ZE.exports=!RB||!fc(function(){Mt(1)})||!fc(function(){new Mt(-1)})||!_B(function(e){new Mt,new Mt(null),new Mt(1.5),new Mt(e)},!0)||fc(function(){return new Mt(new CB(2),1,void 0).length!==1})});var An=l((Lde,JE)=>{var OB=Be();JE.exports=function(e){var r=OB(e);if(r<0)throw RangeError("The argument can't be less than 0");return r}});var vc=l((Nde,eb)=>{var TB=An();eb.exports=function(e,r){var t=TB(e);if(t%r)throw RangeError("Wrong offset");return t}});var pc=l((Dde,rb)=>{var PB=oe(),LB=re(),NB=Gr(),DB=Ca(),MB=he(),UB=te().aTypedArrayConstructor;rb.exports=function(r){var t=PB(r),n=arguments.length,i=n>1?arguments[1]:void 0,a=i!==void 0,o=NB(t),u,s,c,f,d,v;if(o!=null&&!DB(o))for(d=o.call(t),v=d.next,t=[];!(f=v.call(d)).done;)t.push(f.value);for(a&&n>2&&(i=MB(i,arguments[2],2)),s=LB(t.length),c=new(UB(this))(s),u=0;s>u;u++)c[u]=a?i(t[u],u):t[u];return c}});var Rr=l((Mde,bc)=>{"use strict";var tb=p(),fb=B(),jB=ee(),kB=Ao(),_n=te(),vb=Ui(),nb=rr(),FB=br(),ji=fe(),BB=re(),ib=tc(),gc=vc(),pb=Je(),ki=le(),$B=ln(),yc=J(),VB=Ue(),_o=st(),HB=tt().f,ab=pc(),GB=we().forEach,zB=ut(),gb=ie(),hb=Ce(),mb=me(),KB=mi(),qc=mb.get,WB=mb.set,Sc=gb.f,YB=hb.f,QB=Math.round,hc=fb.RangeError,yb=vb.ArrayBuffer,XB=vb.DataView,Ro=_n.NATIVE_ARRAY_BUFFER_VIEWS,ob=_n.TYPED_ARRAY_TAG,sb=_n.TypedArray,Fi=_n.TypedArrayPrototype,ZB=_n.aTypedArrayConstructor,Ec=_n.isTypedArray,Co="BYTES_PER_ELEMENT",mc="Wrong length",ub=function(e,r){for(var t=0,n=r.length,i=new(ZB(e))(n);n>t;)i[t]=r[t++];return i},Oo=function(e,r){Sc(e,r,{get:function(){return qc(this)[r]}})},lb=function(e){var r;return e instanceof yb||(r=$B(e))=="ArrayBuffer"||r=="SharedArrayBuffer"},qb=function(e,r){return Ec(e)&&typeof r!="symbol"&&r in e&&String(+r)==String(r)},cb=function(r,t){return qb(r,t=pb(t,!0))?FB(2,r[t]):YB(r,t)},db=function(r,t,n){return qb(r,t=pb(t,!0))&&yc(n)&&ki(n,"value")&&!ki(n,"get")&&!ki(n,"set")&&!n.configurable&&(!ki(n,"writable")||n.writable)&&(!ki(n,"enumerable")||n.enumerable)?(r[t]=n.value,r):Sc(r,t,n)};jB?(Ro||(hb.f=cb,gb.f=db,Oo(Fi,"buffer"),Oo(Fi,"byteOffset"),Oo(Fi,"byteLength"),Oo(Fi,"length")),tb({target:"Object",stat:!0,forced:!Ro},{getOwnPropertyDescriptor:cb,defineProperty:db}),bc.exports=function(e,r,t){var n=e.match(/\d+$/)[0]/8,i=e+(t?"Clamped":"")+"Array",a="get"+e,o="set"+e,u=fb[i],s=u,c=s&&s.prototype,f={},d=function(h,m){var y=qc(h);return y.view[a](m*n+y.byteOffset,!0)},v=function(h,m,y){var E=qc(h);t&&(y=(y=QB(y))<0?0:y>255?255:y&255),E.view[o](m*n+E.byteOffset,y,!0)},q=function(h,m){Sc(h,m,{get:function(){return d(this,m)},set:function(y){return v(this,m,y)},enumerable:!0})};Ro?kB&&(s=r(function(h,m,y,E){return nb(h,s,i),KB(function(){return yc(m)?lb(m)?E!==void 0?new u(m,gc(y,n),E):y!==void 0?new u(m,gc(y,n)):new u(m):Ec(m)?ub(s,m):ab.call(s,m):new u(ib(m))}(),h,s)}),_o&&_o(s,sb),GB(HB(u),function(h){h in s||ji(s,h,u[h])}),s.prototype=c):(s=r(function(h,m,y,E){nb(h,s,i);var _=0,b=0,A,O,j;if(!yc(m))j=ib(m),O=j*n,A=new yb(O);else if(lb(m)){A=m,b=gc(y,n);var k=m.byteLength;if(E===void 0){if(k%n||(O=k-b,O<0))throw hc(mc)}else if(O=BB(E)*n,O+b>k)throw hc(mc);j=O/n}else return Ec(m)?ub(s,m):ab.call(s,m);for(WB(h,{buffer:A,byteOffset:b,byteLength:O,length:j,view:new XB(A)});_<j;)q(h,_++)}),_o&&_o(s,sb),c=s.prototype=VB(Fi)),c.constructor!==s&&ji(c,"constructor",s),ob&&ji(c,ob,i),f[i]=s,tb({global:!0,forced:s!=u,sham:!Ro},f),Co in s||ji(s,Co,n),Co in c||ji(c,Co,n),zB(i)}):bc.exports=function(){}});var Eb=l(()=>{var JB=Rr();JB("Int8",function(e){return function(t,n,i){return e(this,t,n,i)}})});var bb=l(()=>{var e$=Rr();e$("Uint8",function(e){return function(t,n,i){return e(this,t,n,i)}})});var Sb=l(()=>{var r$=Rr();r$("Uint8",function(e){return function(t,n,i){return e(this,t,n,i)}},!0)});var Ib=l(()=>{var t$=Rr();t$("Int16",function(e){return function(t,n,i){return e(this,t,n,i)}})});var xb=l(()=>{var n$=Rr();n$("Uint16",function(e){return function(t,n,i){return e(this,t,n,i)}})});var wb=l(()=>{var i$=Rr();i$("Int32",function(e){return function(t,n,i){return e(this,t,n,i)}})});var Ab=l(()=>{var a$=Rr();a$("Uint32",function(e){return function(t,n,i){return e(this,t,n,i)}})});var _b=l(()=>{var o$=Rr();o$("Float32",function(e){return function(t,n,i){return e(this,t,n,i)}})});var Rb=l(()=>{var s$=Rr();s$("Float64",function(e){return function(t,n,i){return e(this,t,n,i)}})});var Cb=l(()=>{"use strict";var u$=Ao(),l$=te().exportTypedArrayStaticMethod,c$=pc();l$("from",c$,u$)});var Tb=l(()=>{"use strict";var Ob=te(),d$=Ao(),f$=Ob.aTypedArrayConstructor,v$=Ob.exportTypedArrayStaticMethod;v$("of",function(){for(var r=0,t=arguments.length,n=new(f$(this))(t);t>r;)n[r]=arguments[r++];return n},d$)});var Lb=l(()=>{"use strict";var Pb=te(),p$=qu(),g$=Pb.aTypedArray,h$=Pb.exportTypedArrayMethod;h$("copyWithin",function(r,t){return p$.call(g$(this),r,t,arguments.length>2?arguments[2]:void 0)})});var Db=l(()=>{"use strict";var Nb=te(),m$=we().every,y$=Nb.aTypedArray,q$=Nb.exportTypedArrayMethod;q$("every",function(r){return m$(y$(this),r,arguments.length>1?arguments[1]:void 0)})});var Ub=l(()=>{"use strict";var Mb=te(),E$=Da(),b$=Mb.aTypedArray,S$=Mb.exportTypedArrayMethod;S$("fill",function(r){return E$.apply(b$(this),arguments)})});var jb=l(()=>{"use strict";var Ic=te(),I$=we().filter,x$=Se(),w$=Ic.aTypedArray,A$=Ic.aTypedArrayConstructor,_$=Ic.exportTypedArrayMethod;_$("filter",function(r){for(var t=I$(w$(this),r,arguments.length>1?arguments[1]:void 0),n=x$(this,this.constructor),i=0,a=t.length,o=new(A$(n))(a);a>i;)o[i]=t[i++];return o})});var Fb=l(()=>{"use strict";var kb=te(),R$=we().find,C$=kb.aTypedArray,O$=kb.exportTypedArrayMethod;O$("find",function(r){return R$(C$(this),r,arguments.length>1?arguments[1]:void 0)})});var $b=l(()=>{"use strict";var Bb=te(),T$=we().findIndex,P$=Bb.aTypedArray,L$=Bb.exportTypedArrayMethod;L$("findIndex",function(r){return T$(P$(this),r,arguments.length>1?arguments[1]:void 0)})});var Hb=l(()=>{"use strict";var Vb=te(),N$=we().forEach,D$=Vb.aTypedArray,M$=Vb.exportTypedArrayMethod;M$("forEach",function(r){N$(D$(this),r,arguments.length>1?arguments[1]:void 0)})});var zb=l(()=>{"use strict";var Gb=te(),U$=Jt().includes,j$=Gb.aTypedArray,k$=Gb.exportTypedArrayMethod;k$("includes",function(r){return U$(j$(this),r,arguments.length>1?arguments[1]:void 0)})});var Wb=l(()=>{"use strict";var Kb=te(),F$=Jt().indexOf,B$=Kb.aTypedArray,$$=Kb.exportTypedArrayMethod;$$("indexOf",function(r){return F$(B$(this),r,arguments.length>1?arguments[1]:void 0)})});var eS=l(()=>{"use strict";var V$=B(),Qb=te(),wc=ci(),H$=z(),Xb=H$("iterator"),Yb=V$.Uint8Array,G$=wc.values,z$=wc.keys,K$=wc.entries,Ac=Qb.aTypedArray,To=Qb.exportTypedArrayMethod,xc=Yb&&Yb.prototype[Xb],Zb=!!xc&&(xc.name=="values"||xc.name==null),Jb=function(){return G$.call(Ac(this))};To("entries",function(){return K$.call(Ac(this))});To("keys",function(){return z$.call(Ac(this))});To("values",Jb,!Zb);To(Xb,Jb,!Zb)});var tS=l(()=>{"use strict";var rS=te(),W$=rS.aTypedArray,Y$=rS.exportTypedArrayMethod,Q$=[].join;Y$("join",function(r){return Q$.apply(W$(this),arguments)})});var iS=l(()=>{"use strict";var nS=te(),X$=_u(),Z$=nS.aTypedArray,J$=nS.exportTypedArrayMethod;J$("lastIndexOf",function(r){return X$.apply(Z$(this),arguments)})});var aS=l(()=>{"use strict";var _c=te(),eV=we().map,rV=Se(),tV=_c.aTypedArray,nV=_c.aTypedArrayConstructor,iV=_c.exportTypedArrayMethod;iV("map",function(r){return eV(tV(this),r,arguments.length>1?arguments[1]:void 0,function(t,n){return new(nV(rV(t,t.constructor)))(n)})})});var sS=l(()=>{"use strict";var oS=te(),aV=ui().left,oV=oS.aTypedArray,sV=oS.exportTypedArrayMethod;sV("reduce",function(r){return aV(oV(this),r,arguments.length,arguments.length>1?arguments[1]:void 0)})});var lS=l(()=>{"use strict";var uS=te(),uV=ui().right,lV=uS.aTypedArray,cV=uS.exportTypedArrayMethod;cV("reduceRight",function(r){return uV(lV(this),r,arguments.length,arguments.length>1?arguments[1]:void 0)})});var dS=l(()=>{"use strict";var cS=te(),dV=cS.aTypedArray,fV=cS.exportTypedArrayMethod,vV=Math.floor;fV("reverse",function(){for(var r=this,t=dV(r).length,n=vV(t/2),i=0,a;i<n;)a=r[i],r[i++]=r[--t],r[t]=a;return r})});var vS=l(()=>{"use strict";var fS=te(),pV=re(),gV=vc(),hV=oe(),mV=P(),yV=fS.aTypedArray,qV=fS.exportTypedArrayMethod,EV=mV(function(){new Int8Array(1).set({})});qV("set",function(r){yV(this);var t=gV(arguments.length>1?arguments[1]:void 0,1),n=this.length,i=hV(r),a=pV(i.length),o=0;if(a+t>n)throw RangeError("Wrong length");for(;o<a;)this[t+o]=i[o++]},EV)});var pS=l(()=>{"use strict";var Rc=te(),bV=Se(),SV=P(),IV=Rc.aTypedArray,xV=Rc.aTypedArrayConstructor,wV=Rc.exportTypedArrayMethod,AV=[].slice,_V=SV(function(){new Int8Array(1).slice()});wV("slice",function(r,t){for(var n=AV.call(IV(this),r,t),i=bV(this,this.constructor),a=0,o=n.length,u=new(xV(i))(o);o>a;)u[a]=n[a++];return u},_V)});var hS=l(()=>{"use strict";var gS=te(),RV=we().some,CV=gS.aTypedArray,OV=gS.exportTypedArrayMethod;OV("some",function(r){return RV(CV(this),r,arguments.length>1?arguments[1]:void 0)})});var yS=l(()=>{"use strict";var mS=te(),TV=mS.aTypedArray,PV=mS.exportTypedArrayMethod,LV=[].sort;PV("sort",function(r){return LV.call(TV(this),r)})});var bS=l(()=>{"use strict";var ES=te(),NV=re(),qS=Fr(),DV=Se(),MV=ES.aTypedArray,UV=ES.exportTypedArrayMethod;UV("subarray",function(r,t){var n=MV(this),i=n.length,a=qS(r,i);return new(DV(n,n.constructor))(n.buffer,n.byteOffset+a*n.BYTES_PER_ELEMENT,NV((t===void 0?i:qS(t,i))-a))})});var wS=l(()=>{"use strict";var jV=B(),IS=te(),Cc=P(),Po=jV.Int8Array,SS=IS.aTypedArray,kV=IS.exportTypedArrayMethod,xS=[].toLocaleString,FV=[].slice,BV=!!Po&&Cc(function(){xS.call(new Po(1))}),$V=Cc(function(){return[1,2].toLocaleString()!=new Po([1,2]).toLocaleString()})||!Cc(function(){Po.prototype.toLocaleString.call([1,2])});kV("toLocaleString",function(){return xS.apply(BV?FV.call(SS(this)):SS(this),arguments)},$V)});var _S=l(()=>{"use strict";var VV=te().exportTypedArrayMethod,HV=P(),GV=B(),AS=GV.Uint8Array,zV=AS&&AS.prototype||{},Lo=[].toString,KV=[].join;HV(function(){Lo.call({})})&&(Lo=function(){return KV.call(this)});var WV=zV.toString!=Lo;VV("toString",Lo,WV)});var RS=l(()=>{var YV=p(),QV=ae(),XV=D(),ZV=w(),JV=P(),Oc=QV("Reflect","apply"),eH=Function.apply,rH=!JV(function(){Oc(function(){})});YV({target:"Reflect",stat:!0,forced:rH},{apply:function(r,t,n){return XV(r),ZV(n),Oc?Oc(r,t,n):eH.call(r,t,n)}})});var DS=l(()=>{var tH=p(),nH=ae(),CS=D(),iH=w(),OS=J(),aH=Ue(),oH=fu(),PS=P(),Tc=nH("Reflect","construct"),LS=PS(function(){function e(){}return!(Tc(function(){},[],e)instanceof e)}),NS=!PS(function(){Tc(function(){})}),TS=LS||NS;tH({target:"Reflect",stat:!0,forced:TS,sham:TS},{construct:function(r,t){CS(r),iH(t);var n=arguments.length<3?r:CS(arguments[2]);if(NS&&!LS)return Tc(r,t,n);if(r==n){switch(t.length){case 0:return new r;case 1:return new r(t[0]);case 2:return new r(t[0],t[1]);case 3:return new r(t[0],t[1],t[2]);case 4:return new r(t[0],t[1],t[2],t[3])}var i=[null];return i.push.apply(i,t),new(oH.apply(r,i))}var a=n.prototype,o=aH(OS(a)?a:Object.prototype),u=Function.apply.call(r,o,t);return OS(u)?u:o}})});var jS=l(()=>{var sH=p(),uH=ee(),MS=w(),lH=Je(),US=ie(),cH=P(),dH=cH(function(){Reflect.defineProperty(US.f({},1,{value:1}),1,{value:2})});sH({target:"Reflect",stat:!0,forced:dH,sham:!uH},{defineProperty:function(r,t,n){MS(r);var i=lH(t,!0);MS(n);try{return US.f(r,i,n),!0}catch(a){return!1}}})});var kS=l(()=>{var fH=p(),vH=w(),pH=Ce().f;fH({target:"Reflect",stat:!0},{deleteProperty:function(r,t){var n=pH(vH(r),t);return n&&!n.configurable?!1:delete r[t]}})});var BS=l(()=>{var gH=p(),hH=J(),mH=w(),yH=le(),qH=Ce(),EH=Le();function FS(e,r){var t=arguments.length<3?e:arguments[2],n,i;if(mH(e)===t)return e[r];if(n=qH.f(e,r))return yH(n,"value")?n.value:n.get===void 0?void 0:n.get.call(t);if(hH(i=EH(e)))return FS(i,r,t)}gH({target:"Reflect",stat:!0},{get:FS})});var $S=l(()=>{var bH=p(),SH=ee(),IH=w(),xH=Ce();bH({target:"Reflect",stat:!0,sham:!SH},{getOwnPropertyDescriptor:function(r,t){return xH.f(IH(r),t)}})});var VS=l(()=>{var wH=p(),AH=w(),_H=Le(),RH=Pa();wH({target:"Reflect",stat:!0,sham:!RH},{getPrototypeOf:function(r){return _H(AH(r))}})});var HS=l(()=>{var CH=p();CH({target:"Reflect",stat:!0},{has:function(r,t){return t in r}})});var zS=l(()=>{var OH=p(),TH=w(),GS=Object.isExtensible;OH({target:"Reflect",stat:!0},{isExtensible:function(r){return TH(r),GS?GS(r):!0}})});var KS=l(()=>{var PH=p(),LH=qa();PH({target:"Reflect",stat:!0},{ownKeys:LH})});var WS=l(()=>{var NH=p(),DH=ae(),MH=w(),UH=sn();NH({target:"Reflect",stat:!0,sham:!UH},{preventExtensions:function(r){MH(r);try{var t=DH("Object","preventExtensions");return t&&t(r),!0}catch(n){return!1}}})});var eI=l(()=>{var jH=p(),kH=w(),YS=J(),FH=le(),BH=P(),Pc=ie(),QS=Ce(),ZS=Le(),XS=br();function JS(e,r,t){var n=arguments.length<4?e:arguments[3],i=QS.f(kH(e),r),a,o;if(!i){if(YS(o=ZS(e)))return JS(o,r,t,n);i=XS(0)}if(FH(i,"value")){if(i.writable===!1||!YS(n))return!1;if(a=QS.f(n,r)){if(a.get||a.set||a.writable===!1)return!1;a.value=t,Pc.f(n,r,a)}else Pc.f(n,r,XS(0,t));return!0}return i.set===void 0?!1:(i.set.call(n,t),!0)}var $H=BH(function(){var e=Pc.f({},"a",{configurable:!0});return Reflect.set(ZS(e),"a",1,e)!==!1});jH({target:"Reflect",stat:!0,forced:$H},{set:JS})});var tI=l(()=>{var VH=p(),HH=w(),GH=cu(),rI=st();rI&&VH({target:"Reflect",stat:!0},{setPrototypeOf:function(r,t){HH(r),GH(t);try{return rI(r,t),!0}catch(n){return!1}}})});var iI=l((Ive,nI)=>{Rp();Cp();Lp();Np();Dp();Mp();Up();jp();kp();Fp();Bp();$p();Vp();Hp();Gp();Qp();Xp();Jp();rg();ig();sg();yg();bg();Sg();Ig();Rg();Og();Tg();Pg();Lg();Dg();Mg();Ug();Fg();Bg();Hg();zg();Kg();Wg();Yg();Zg();eh();ih();pu();dh();fh();vh();xh();_h();Ch();Ph();Nh();Mh();jh();Bh();$h();Gh();zh();Yh();Qh();em();tm();am();om();um();dm();fm();hm();mm();Em();bm();Sm();ci();Vm();Hm();Km();ey();ry();dy();Fu();xy();wy();Ay();_y();Cy();Py();Dy();By();Hy();Ky();Hu();Zy();Jy();e0();r0();t0();n0();i0();a0();o0();s0();u0();l0();c0();h0();y0();q0();S0();A0();C0();N0();D0();U0();k0();F0();B0();$0();V0();G0();K0();X0();e1();n1();o1();u1();c1();d1();p1();h1();y1();E1();S1();I1();x1();w1();A1();C1();P1();L1();N1();D1();M1();$1();G1();Q1();J1();eq();Hq();Ul();Kq();lo();$l();ho();vE();BE();VE();YE();QE();Eb();bb();Sb();Ib();xb();wb();Ab();_b();Rb();Cb();Tb();Lb();Db();Ub();jb();Fb();$b();Hb();zb();Wb();eS();tS();iS();aS();sS();lS();dS();vS();pS();hS();yS();bS();wS();_S();RS();DS();jS();kS();BS();$S();VS();HS();zS();KS();WS();eI();tI();var zH=sr();nI.exports=zH});var Cr=l((xve,sI)=>{var aI=lo(),KH=ho(),WH=Qn(),oI=WH("metadata"),Lc=oI.store||(oI.store=new KH),Bi=function(e,r,t){var n=Lc.get(e);if(!n){if(!t)return;Lc.set(e,n=new aI)}var i=n.get(r);if(!i){if(!t)return;n.set(r,i=new aI)}return i},YH=function(e,r,t){var n=Bi(r,t,!1);return n===void 0?!1:n.has(e)},QH=function(e,r,t){var n=Bi(r,t,!1);return n===void 0?void 0:n.get(e)},XH=function(e,r,t,n){Bi(t,n,!0).set(e,r)},ZH=function(e,r){var t=Bi(e,r,!1),n=[];return t&&t.forEach(function(i,a){n.push(a)}),n},JH=function(e){return e===void 0||typeof e=="symbol"?e:String(e)};sI.exports={store:Lc,getMap:Bi,has:YH,get:QH,set:XH,keys:ZH,toKey:JH}});var lI=l(()=>{var eG=p(),uI=Cr(),rG=w(),tG=uI.toKey,nG=uI.set;eG({target:"Reflect",stat:!0},{defineMetadata:function(r,t,n){var i=arguments.length<4?void 0:tG(arguments[3]);nG(r,t,rG(n),i)}})});var dI=l(()=>{var iG=p(),Nc=Cr(),aG=w(),oG=Nc.toKey,sG=Nc.getMap,cI=Nc.store;iG({target:"Reflect",stat:!0},{deleteMetadata:function(r,t){var n=arguments.length<3?void 0:oG(arguments[2]),i=sG(aG(t),n,!1);if(i===void 0||!i.delete(r))return!1;if(i.size)return!0;var a=cI.get(t);return a.delete(n),!!a.size||cI.delete(t)}})});var vI=l(()=>{var uG=p(),Dc=Cr(),lG=w(),cG=Le(),dG=Dc.has,fG=Dc.get,vG=Dc.toKey,fI=function(e,r,t){var n=dG(e,r,t);if(n)return fG(e,r,t);var i=cG(r);return i!==null?fI(e,i,t):void 0};uG({target:"Reflect",stat:!0},{getMetadata:function(r,t){var n=arguments.length<3?void 0:vG(arguments[2]);return fI(r,lG(t),n)}})});var hI=l(()=>{var pG=p(),gG=$l(),pI=Cr(),hG=w(),mG=Le(),yG=$(),qG=pI.keys,EG=pI.toKey,bG=function(e){var r=[];return yG(e,r.push,r),r},gI=function(e,r){var t=qG(e,r),n=mG(e);if(n===null)return t;var i=gI(n,r);return i.length?t.length?bG(new gG(t.concat(i))):i:t};pG({target:"Reflect",stat:!0},{getMetadataKeys:function(r){var t=arguments.length<2?void 0:EG(arguments[1]);return gI(hG(r),t)}})});var yI=l(()=>{var SG=p(),mI=Cr(),IG=w(),xG=mI.get,wG=mI.toKey;SG({target:"Reflect",stat:!0},{getOwnMetadata:function(r,t){var n=arguments.length<3?void 0:wG(arguments[2]);return xG(r,IG(t),n)}})});var EI=l(()=>{var AG=p(),qI=Cr(),_G=w(),RG=qI.keys,CG=qI.toKey;AG({target:"Reflect",stat:!0},{getOwnMetadataKeys:function(r){var t=arguments.length<2?void 0:CG(arguments[1]);return RG(_G(r),t)}})});var II=l(()=>{var OG=p(),bI=Cr(),TG=w(),PG=Le(),LG=bI.has,NG=bI.toKey,SI=function(e,r,t){var n=LG(e,r,t);if(n)return!0;var i=PG(r);return i!==null?SI(e,i,t):!1};OG({target:"Reflect",stat:!0},{hasMetadata:function(r,t){var n=arguments.length<3?void 0:NG(arguments[2]);return SI(r,TG(t),n)}})});var wI=l(()=>{var DG=p(),xI=Cr(),MG=w(),UG=xI.has,jG=xI.toKey;DG({target:"Reflect",stat:!0},{hasOwnMetadata:function(r,t){var n=arguments.length<3?void 0:jG(arguments[2]);return UG(r,MG(t),n)}})});var _I=l(()=>{var kG=p(),AI=Cr(),FG=w(),BG=AI.toKey,$G=AI.set;kG({target:"Reflect",stat:!0},{metadata:function(r,t){return function(i,a){$G(r,t,FG(i),BG(a))}}})});var RI=l(()=>{lI();dI();vI();hI();yI();EI();II();wI();_I()});var CI=l(()=>{var VG=p();VG({target:"Math",stat:!0},{iaddh:function(r,t,n,i){var a=r>>>0,o=t>>>0,u=n>>>0;return o+(i>>>0)+((a&u|(a|u)&~(a+u>>>0))>>>31)|0}})});var OI=l(()=>{var HG=p();HG({target:"Math",stat:!0},{isubh:function(r,t,n,i){var a=r>>>0,o=t>>>0,u=n>>>0;return o-(i>>>0)-((~a&u|~(a^u)&a-u>>>0)>>>31)|0}})});var TI=l(()=>{var GG=p();GG({target:"Math",stat:!0},{imulh:function(r,t){var n=65535,i=+r,a=+t,o=i&n,u=a&n,s=i>>16,c=a>>16,f=(s*u>>>0)+(o*u>>>16);return s*c+(f>>16)+((o*c>>>0)+(f&n)>>16)}})});var PI=l(()=>{var zG=p();zG({target:"Math",stat:!0},{umulh:function(r,t){var n=65535,i=+r,a=+t,o=i&n,u=a&n,s=i>>>16,c=a>>>16,f=(s*u>>>0)+(o*u>>>16);return s*c+(f>>>16)+((o*c>>>0)+(f&n)>>>16)}})});var LI=l(()=>{CI();OI();TI();PI()});var NI=l(()=>{"use strict";var KG=p(),WG=Ot().charAt;KG({target:"String",proto:!0},{at:function(r){return WG(this,r)}})});var DI=l(()=>{NI()});var Mc=l((ape,MI)=>{var YG=P(),QG=z(),XG=U(),ZG=QG("iterator");MI.exports=!YG(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),r=e.searchParams,t="";return e.pathname="c%20d",r.forEach(function(n,i){r.delete("b"),t+=i+n}),XG&&!e.toJSON||!r.sort||e.href!=="http://a/c%20d?a=1&c=3"||r.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!r[ZG]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||t!=="a1c3"||new URL("http://x",void 0).host!=="x"})});var BI=l((ope,FI)=>{"use strict";var Uc=2147483647,$i=36,kI=1,Fc=26,JG=38,ez=700,rz=72,tz=128,nz="-",iz=/[^\0-\u007E]/,az=/[.\u3002\uFF0E\uFF61]/g,UI="Overflow: input needs wider integers to process",jc=$i-kI,Rn=Math.floor,kc=String.fromCharCode,oz=function(e){for(var r=[],t=0,n=e.length;t<n;){var i=e.charCodeAt(t++);if(i>=55296&&i<=56319&&t<n){var a=e.charCodeAt(t++);(a&64512)==56320?r.push(((i&1023)<<10)+(a&1023)+65536):(r.push(i),t--)}else r.push(i)}return r},jI=function(e){return e+22+75*(e<26)},sz=function(e,r,t){var n=0;for(e=t?Rn(e/ez):e>>1,e+=Rn(e/r);e>jc*Fc>>1;n+=$i)e=Rn(e/jc);return Rn(n+(jc+1)*e/(e+JG))},uz=function(e){var r=[];e=oz(e);var t=e.length,n=tz,i=0,a=rz,o,u;for(o=0;o<e.length;o++)u=e[o],u<128&&r.push(kc(u));var s=r.length,c=s;for(s&&r.push(nz);c<t;){var f=Uc;for(o=0;o<e.length;o++)u=e[o],u>=n&&u<f&&(f=u);var d=c+1;if(f-n>Rn((Uc-i)/d))throw RangeError(UI);for(i+=(f-n)*d,n=f,o=0;o<e.length;o++){if(u=e[o],u<n&&++i>Uc)throw RangeError(UI);if(u==n){for(var v=i,q=$i;;q+=$i){var h=q<=a?kI:q>=a+Fc?Fc:q-a;if(v<h)break;var m=v-h,y=$i-h;r.push(kc(jI(h+m%y))),v=Rn(m/y)}r.push(kc(jI(v))),a=sz(i,d,c==s),i=0,++c}}++i,++n}return r.join("")};FI.exports=function(e){var r=[],t=e.toLowerCase().replace(az,".").split("."),n,i;for(n=0;n<t.length;n++)i=t[n],r.push(iz.test(i)?"xn--"+uz(i):i);return r.join(".")}});var Cn=l((spe,$I)=>{var lz=w(),cz=Gr();$I.exports=function(e){var r=cz(e);if(typeof r!="function")throw TypeError(String(e)+" is not iterable");return lz(r.call(e))}});var Do=l((upe,nx)=>{"use strict";ci();var WI=p(),YI=ae(),QI=Mc(),XI=Oe(),dz=wr(),fz=ur(),vz=Ct(),Vc=me(),pz=rr(),gz=le(),hz=he(),mz=ln(),yz=w(),ZI=J(),qz=Ue(),VI=br(),JI=Cn(),Ez=Gr(),bz=z(),HI=YI("fetch"),Bc=YI("Headers"),Sz=bz("iterator"),Tn="URLSearchParams",ex=Tn+"Iterator",rx=Vc.set,pr=Vc.getterFor(Tn),Iz=Vc.getterFor(ex),xz=/\+/g,GI=Array(4),wz=function(e){return GI[e-1]||(GI[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},Az=function(e){try{return decodeURIComponent(e)}catch(r){return e}},zI=function(e){var r=e.replace(xz," "),t=4;try{return decodeURIComponent(r)}catch(n){for(;t;)r=r.replace(wz(t--),Az);return r}},_z=/[!'()~]|%20/g,Rz={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Cz=function(e){return Rz[e]},KI=function(e){return encodeURIComponent(e).replace(_z,Cz)},tx=function(e,r){if(r)for(var t=r.split("&"),n=0,i,a;n<t.length;)i=t[n++],i.length&&(a=i.split("="),e.push({key:zI(a.shift()),value:zI(a.join("="))}))},Oz=function(e){this.entries.length=0,tx(this.entries,e)},On=function(e,r){if(e<r)throw TypeError("Not enough arguments")},$c=vz(function(r,t){rx(this,{type:ex,iterator:JI(pr(r).entries),kind:t})},"Iterator",function(){var r=Iz(this),t=r.kind,n=r.iterator.next(),i=n.value;return n.done||(n.value=t==="keys"?i.key:t==="values"?i.value:[i.key,i.value]),n}),Vi=function(){pz(this,Vi,Tn);var r=arguments.length>0?arguments[0]:void 0,t=this,n=[],i,a,o,u,s,c,f,d,v;if(rx(t,{type:Tn,entries:n,updateURL:function(){},updateSearchParams:Oz}),r!==void 0)if(ZI(r))if(i=Ez(r),typeof i=="function")for(a=i.call(r),o=a.next;!(u=o.call(a)).done;){if(s=JI(yz(u.value)),c=s.next,(f=c.call(s)).done||(d=c.call(s)).done||!c.call(s).done)throw TypeError("Expected sequence with length 2");n.push({key:f.value+"",value:d.value+""})}else for(v in r)gz(r,v)&&n.push({key:v,value:r[v]+""});else tx(n,typeof r=="string"?r.charAt(0)==="?"?r.slice(1):r:r+"")},No=Vi.prototype;dz(No,{append:function(r,t){On(arguments.length,2);var n=pr(this);n.entries.push({key:r+"",value:t+""}),n.updateURL()},delete:function(e){On(arguments.length,1);for(var r=pr(this),t=r.entries,n=e+"",i=0;i<t.length;)t[i].key===n?t.splice(i,1):i++;r.updateURL()},get:function(r){On(arguments.length,1);for(var t=pr(this).entries,n=r+"",i=0;i<t.length;i++)if(t[i].key===n)return t[i].value;return null},getAll:function(r){On(arguments.length,1);for(var t=pr(this).entries,n=r+"",i=[],a=0;a<t.length;a++)t[a].key===n&&i.push(t[a].value);return i},has:function(r){On(arguments.length,1);for(var t=pr(this).entries,n=r+"",i=0;i<t.length;)if(t[i++].key===n)return!0;return!1},set:function(r,t){On(arguments.length,1);for(var n=pr(this),i=n.entries,a=!1,o=r+"",u=t+"",s=0,c;s<i.length;s++)c=i[s],c.key===o&&(a?i.splice(s--,1):(a=!0,c.value=u));a||i.push({key:o,value:u}),n.updateURL()},sort:function(){var r=pr(this),t=r.entries,n=t.slice(),i,a,o;for(t.length=0,o=0;o<n.length;o++){for(i=n[o],a=0;a<o;a++)if(t[a].key>i.key){t.splice(a,0,i);break}a===o&&t.push(i)}r.updateURL()},forEach:function(r){for(var t=pr(this).entries,n=hz(r,arguments.length>1?arguments[1]:void 0,3),i=0,a;i<t.length;)a=t[i++],n(a.value,a.key,this)},keys:function(){return new $c(this,"keys")},values:function(){return new $c(this,"values")},entries:function(){return new $c(this,"entries")}},{enumerable:!0});XI(No,Sz,No.entries);XI(No,"toString",function(){for(var r=pr(this).entries,t=[],n=0,i;n<r.length;)i=r[n++],t.push(KI(i.key)+"="+KI(i.value));return t.join("&")},{enumerable:!0});fz(Vi,Tn);WI({global:!0,forced:!QI},{URLSearchParams:Vi});!QI&&typeof HI=="function"&&typeof Bc=="function"&&WI({global:!0,enumerable:!0,forced:!0},{fetch:function(r){var t=[r],n,i,a;return arguments.length>1&&(n=arguments[1],ZI(n)&&(i=n.body,mz(i)===Tn&&(a=n.headers?new Bc(n.headers):new Bc,a.has("content-type")||a.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),n=qz(n,{body:VI(0,String(i)),headers:VI(0,a)}))),t.push(n)),HI.apply(this,t)}});nx.exports={URLSearchParams:Vi,getState:pr}});var dd=l(()=>{"use strict";Hu();var Tz=p(),sd=ee(),Pz=Mc(),Lz=B(),Nz=ba(),ko=Oe(),Dz=rr(),ud=le(),ld=Zs(),Ln=gu(),Mz=Ot().codeAt,Uz=BI(),jz=ur(),gx=Do(),hx=me(),Hi=Lz.URL,kz=gx.URLSearchParams,Jc=gx.getState,Fz=hx.set,pe=hx.getterFor("URL"),Bz=Math.floor,ix=Math.pow,$z="Invalid authority",Hc="Invalid scheme",jt="Invalid host",ax="Invalid port",mx=/[A-Za-z]/,Vz=/[\d+\-.A-Za-z]/,ed=/\d/,Hz=/^(0x|0X)/,Gz=/^[0-7]+$/,zz=/^\d+$/,yx=/^[\dA-Fa-f]+$/,Kz=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,Wz=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,Yz=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,Qz=/[\u0009\u000A\u000D]/g,tr,Gc=function(e,r){var t,n,i;if(r.charAt(0)=="["){if(r.charAt(r.length-1)!="]"||(t=Zz(r.slice(1,-1)),!t))return jt;e.host=t}else if(Ae(e)){if(r=Uz(r),Kz.test(r)||(t=Xz(r),t===null))return jt;e.host=t}else{if(Wz.test(r))return jt;for(t="",n=Ln(r),i=0;i<n.length;i++)t+=pt(n[i],Fo);e.host=t}},Xz=function(e){var r=e.split("."),t,n,i,a,o,u,s;if(r.length&&r[r.length-1]==""&&r.pop(),t=r.length,t>4)return e;for(n=[],i=0;i<t;i++){if(a=r[i],a=="")return e;if(o=10,a.length>1&&a.charAt(0)=="0"&&(o=Hz.test(a)?16:8,a=a.slice(o==8?1:2)),a==="")u=0;else{if(!(o==10?zz:o==8?Gz:yx).test(a))return e;u=parseInt(a,o)}n.push(u)}for(i=0;i<t;i++)if(u=n[i],i==t-1){if(u>=ix(256,5-t))return null}else if(u>255)return null;for(s=n.pop(),i=0;i<n.length;i++)s+=n[i]*ix(256,3-i);return s},Zz=function(e){var r=[0,0,0,0,0,0,0,0],t=0,n=null,i=0,a,o,u,s,c,f,d,v=function(){return e.charAt(i)};if(v()==":"){if(e.charAt(1)!=":")return;i+=2,t++,n=t}for(;v();){if(t==8)return;if(v()==":"){if(n!==null)return;i++,t++,n=t;continue}for(a=o=0;o<4&&yx.test(v());)a=a*16+parseInt(v(),16),i++,o++;if(v()=="."){if(o==0||(i-=o,t>6))return;for(u=0;v();){if(s=null,u>0)if(v()=="."&&u<4)i++;else return;if(!ed.test(v()))return;for(;ed.test(v());){if(c=parseInt(v(),10),s===null)s=c;else{if(s==0)return;s=s*10+c}if(s>255)return;i++}r[t]=r[t]*256+s,u++,(u==2||u==4)&&t++}if(u!=4)return;break}else if(v()==":"){if(i++,!v())return}else if(v())return;r[t++]=a}if(n!==null)for(f=t-n,t=7;t!=0&&f>0;)d=r[t],r[t--]=r[n+f-1],r[n+--f]=d;else if(t!=8)return;return r},Jz=function(e){for(var r=null,t=1,n=null,i=0,a=0;a<8;a++)e[a]!==0?(i>t&&(r=n,t=i),n=null,i=0):(n===null&&(n=a),++i);return i>t&&(r=n,t=i),r},zi=function(e){var r,t,n,i;if(typeof e=="number"){for(r=[],t=0;t<4;t++)r.unshift(e%256),e=Bz(e/256);return r.join(".")}else if(typeof e=="object"){for(r="",n=Jz(e),t=0;t<8;t++)i&&e[t]===0||(i&&(i=!1),n===t?(r+=t?":":"::",i=!0):(r+=e[t].toString(16),t<7&&(r+=":")));return"["+r+"]"}return e},Fo={},qx=ld({},Fo,{" ":1,'"':1,"<":1,">":1,"`":1}),Ex=ld({},qx,{"#":1,"?":1,"{":1,"}":1}),rd=ld({},Ex,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),pt=function(e,r){var t=Mz(e,0);return t>32&&t<127&&!ud(r,e)?e:encodeURIComponent(e)},jo={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Ae=function(e){return ud(jo,e.scheme)},td=function(e){return e.username!=""||e.password!=""},zc=function(e){return!e.host||e.cannotBeABaseURL||e.scheme=="file"},Gi=function(e,r){var t;return e.length==2&&mx.test(e.charAt(0))&&((t=e.charAt(1))==":"||!r&&t=="|")},ox=function(e){var r;return e.length>1&&Gi(e.slice(0,2))&&(e.length==2||(r=e.charAt(2))==="/"||r==="\\"||r==="?"||r==="#")},sx=function(e){var r=e.path,t=r.length;t&&(e.scheme!="file"||t!=1||!Gi(r[0],!0))&&r.pop()},eK=function(e){return e==="."||e.toLowerCase()==="%2e"},rK=function(e){return e=e.toLowerCase(),e===".."||e==="%2e."||e===".%2e"||e==="%2e%2e"},nd={},ux={},Kc={},lx={},cx={},Wc={},dx={},fx={},Mo={},Uo={},id={},ad={},od={},Yc={},vx={},Qc={},Pn={},Or={},px={},Ut={},Xr={},Tr=function(e,r,t,n){var i=t||nd,a=0,o="",u=!1,s=!1,c=!1,f,d,v,q;for(t||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,r=r.replace(Yz,"")),r=r.replace(Qz,""),f=Ln(r);a<=f.length;){switch(d=f[a],i){case nd:if(d&&mx.test(d))o+=d.toLowerCase(),i=ux;else{if(t)return Hc;i=Kc;continue}break;case ux:if(d&&(Vz.test(d)||d=="+"||d=="-"||d=="."))o+=d.toLowerCase();else if(d==":"){if(t&&(Ae(e)!=ud(jo,o)||o=="file"&&(td(e)||e.port!==null)||e.scheme=="file"&&!e.host))return;if(e.scheme=o,t){Ae(e)&&jo[e.scheme]==e.port&&(e.port=null);return}o="",e.scheme=="file"?i=Yc:Ae(e)&&n&&n.scheme==e.scheme?i=lx:Ae(e)?i=fx:f[a+1]=="/"?(i=cx,a++):(e.cannotBeABaseURL=!0,e.path.push(""),i=px)}else{if(t)return Hc;o="",i=Kc,a=0;continue}break;case Kc:if(!n||n.cannotBeABaseURL&&d!="#")return Hc;if(n.cannotBeABaseURL&&d=="#"){e.scheme=n.scheme,e.path=n.path.slice(),e.query=n.query,e.fragment="",e.cannotBeABaseURL=!0,i=Xr;break}i=n.scheme=="file"?Yc:Wc;continue;case lx:if(d=="/"&&f[a+1]=="/")i=Mo,a++;else{i=Wc;continue}break;case cx:if(d=="/"){i=Uo;break}else{i=Or;continue}case Wc:if(e.scheme=n.scheme,d==tr)e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query=n.query;else if(d=="/"||d=="\\"&&Ae(e))i=dx;else if(d=="?")e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query="",i=Ut;else if(d=="#")e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.query=n.query,e.fragment="",i=Xr;else{e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,e.path=n.path.slice(),e.path.pop(),i=Or;continue}break;case dx:if(Ae(e)&&(d=="/"||d=="\\"))i=Mo;else if(d=="/")i=Uo;else{e.username=n.username,e.password=n.password,e.host=n.host,e.port=n.port,i=Or;continue}break;case fx:if(i=Mo,d!="/"||o.charAt(a+1)!="/")continue;a++;break;case Mo:if(d!="/"&&d!="\\"){i=Uo;continue}break;case Uo:if(d=="@"){u&&(o="%40"+o),u=!0,v=Ln(o);for(var h=0;h<v.length;h++){var m=v[h];if(m==":"&&!c){c=!0;continue}var y=pt(m,rd);c?e.password+=y:e.username+=y}o=""}else if(d==tr||d=="/"||d=="?"||d=="#"||d=="\\"&&Ae(e)){if(u&&o=="")return $z;a-=Ln(o).length+1,o="",i=id}else o+=d;break;case id:case ad:if(t&&e.scheme=="file"){i=Qc;continue}else if(d==":"&&!s){if(o=="")return jt;if(q=Gc(e,o),q)return q;if(o="",i=od,t==ad)return}else if(d==tr||d=="/"||d=="?"||d=="#"||d=="\\"&&Ae(e)){if(Ae(e)&&o=="")return jt;if(t&&o==""&&(td(e)||e.port!==null))return;if(q=Gc(e,o),q)return q;if(o="",i=Pn,t)return;continue}else d=="["?s=!0:d=="]"&&(s=!1),o+=d;break;case od:if(ed.test(d))o+=d;else if(d==tr||d=="/"||d=="?"||d=="#"||d=="\\"&&Ae(e)||t){if(o!=""){var E=parseInt(o,10);if(E>65535)return ax;e.port=Ae(e)&&E===jo[e.scheme]?null:E,o=""}if(t)return;i=Pn;continue}else return ax;break;case Yc:if(e.scheme="file",d=="/"||d=="\\")i=vx;else if(n&&n.scheme=="file")if(d==tr)e.host=n.host,e.path=n.path.slice(),e.query=n.query;else if(d=="?")e.host=n.host,e.path=n.path.slice(),e.query="",i=Ut;else if(d=="#")e.host=n.host,e.path=n.path.slice(),e.query=n.query,e.fragment="",i=Xr;else{ox(f.slice(a).join(""))||(e.host=n.host,e.path=n.path.slice(),sx(e)),i=Or;continue}else{i=Or;continue}break;case vx:if(d=="/"||d=="\\"){i=Qc;break}n&&n.scheme=="file"&&!ox(f.slice(a).join(""))&&(Gi(n.path[0],!0)?e.path.push(n.path[0]):e.host=n.host),i=Or;continue;case Qc:if(d==tr||d=="/"||d=="\\"||d=="?"||d=="#"){if(!t&&Gi(o))i=Or;else if(o==""){if(e.host="",t)return;i=Pn}else{if(q=Gc(e,o),q)return q;if(e.host=="localhost"&&(e.host=""),t)return;o="",i=Pn}continue}else o+=d;break;case Pn:if(Ae(e)){if(i=Or,d!="/"&&d!="\\")continue}else if(!t&&d=="?")e.query="",i=Ut;else if(!t&&d=="#")e.fragment="",i=Xr;else if(d!=tr&&(i=Or,d!="/"))continue;break;case Or:if(d==tr||d=="/"||d=="\\"&&Ae(e)||!t&&(d=="?"||d=="#")){if(rK(o)?(sx(e),d!="/"&&!(d=="\\"&&Ae(e))&&e.path.push("")):eK(o)?d!="/"&&!(d=="\\"&&Ae(e))&&e.path.push(""):(e.scheme=="file"&&!e.path.length&&Gi(o)&&(e.host&&(e.host=""),o=o.charAt(0)+":"),e.path.push(o)),o="",e.scheme=="file"&&(d==tr||d=="?"||d=="#"))for(;e.path.length>1&&e.path[0]==="";)e.path.shift();d=="?"?(e.query="",i=Ut):d=="#"&&(e.fragment="",i=Xr)}else o+=pt(d,Ex);break;case px:d=="?"?(e.query="",i=Ut):d=="#"?(e.fragment="",i=Xr):d!=tr&&(e.path[0]+=pt(d,Fo));break;case Ut:!t&&d=="#"?(e.fragment="",i=Xr):d!=tr&&(d=="'"&&Ae(e)?e.query+="%27":d=="#"?e.query+="%23":e.query+=pt(d,Fo));break;case Xr:d!=tr&&(e.fragment+=pt(d,qx));break}a++}},kt=function(r){var t=Dz(this,kt,"URL"),n=arguments.length>1?arguments[1]:void 0,i=String(r),a=Fz(t,{type:"URL"}),o,u;if(n!==void 0){if(n instanceof kt)o=pe(n);else if(u=Tr(o={},String(n)),u)throw TypeError(u)}if(u=Tr(a,i,null,o),u)throw TypeError(u);var s=a.searchParams=new kz,c=Jc(s);c.updateSearchParams(a.query),c.updateURL=function(){a.query=String(s)||null},sd||(t.href=Bo.call(t),t.origin=bx.call(t),t.protocol=Sx.call(t),t.username=Ix.call(t),t.password=xx.call(t),t.host=wx.call(t),t.hostname=Ax.call(t),t.port=_x.call(t),t.pathname=Rx.call(t),t.search=Cx.call(t),t.searchParams=Ox.call(t),t.hash=Tx.call(t))},cd=kt.prototype,Bo=function(){var e=pe(this),r=e.scheme,t=e.username,n=e.password,i=e.host,a=e.port,o=e.path,u=e.query,s=e.fragment,c=r+":";return i!==null?(c+="//",td(e)&&(c+=t+(n?":"+n:"")+"@"),c+=zi(i),a!==null&&(c+=":"+a)):r=="file"&&(c+="//"),c+=e.cannotBeABaseURL?o[0]:o.length?"/"+o.join("/"):"",u!==null&&(c+="?"+u),s!==null&&(c+="#"+s),c},bx=function(){var e=pe(this),r=e.scheme,t=e.port;if(r=="blob")try{return new URL(r.path[0]).origin}catch(n){return"null"}return r=="file"||!Ae(e)?"null":r+"://"+zi(e.host)+(t!==null?":"+t:"")},Sx=function(){return pe(this).scheme+":"},Ix=function(){return pe(this).username},xx=function(){return pe(this).password},wx=function(){var e=pe(this),r=e.host,t=e.port;return r===null?"":t===null?zi(r):zi(r)+":"+t},Ax=function(){var e=pe(this).host;return e===null?"":zi(e)},_x=function(){var e=pe(this).port;return e===null?"":String(e)},Rx=function(){var e=pe(this),r=e.path;return e.cannotBeABaseURL?r[0]:r.length?"/"+r.join("/"):""},Cx=function(){var e=pe(this).query;return e?"?"+e:""},Ox=function(){return pe(this).searchParams},Tx=function(){var e=pe(this).fragment;return e?"#"+e:""},nr=function(e,r){return{get:e,set:r,configurable:!0,enumerable:!0}};sd&&Nz(cd,{href:nr(Bo,function(e){var r=pe(this),t=String(e),n=Tr(r,t);if(n)throw TypeError(n);Jc(r.searchParams).updateSearchParams(r.query)}),origin:nr(bx),protocol:nr(Sx,function(e){var r=pe(this);Tr(r,String(e)+":",nd)}),username:nr(Ix,function(e){var r=pe(this),t=Ln(String(e));if(!zc(r)){r.username="";for(var n=0;n<t.length;n++)r.username+=pt(t[n],rd)}}),password:nr(xx,function(e){var r=pe(this),t=Ln(String(e));if(!zc(r)){r.password="";for(var n=0;n<t.length;n++)r.password+=pt(t[n],rd)}}),host:nr(wx,function(e){var r=pe(this);r.cannotBeABaseURL||Tr(r,String(e),id)}),hostname:nr(Ax,function(e){var r=pe(this);r.cannotBeABaseURL||Tr(r,String(e),ad)}),port:nr(_x,function(e){var r=pe(this);zc(r)||(e=String(e),e==""?r.port=null:Tr(r,e,od))}),pathname:nr(Rx,function(e){var r=pe(this);r.cannotBeABaseURL||(r.path=[],Tr(r,e+"",Pn))}),search:nr(Cx,function(e){var r=pe(this);e=String(e),e==""?r.query=null:(e.charAt(0)=="?"&&(e=e.slice(1)),r.query="",Tr(r,e,Ut)),Jc(r.searchParams).updateSearchParams(r.query)}),searchParams:nr(Ox),hash:nr(Tx,function(e){var r=pe(this);if(e=String(e),e==""){r.fragment=null;return}e.charAt(0)=="#"&&(e=e.slice(1)),r.fragment="",Tr(r,e,Xr)})});ko(cd,"toJSON",function(){return Bo.call(this)},{enumerable:!0});ko(cd,"toString",function(){return Bo.call(this)},{enumerable:!0});Hi&&(Xc=Hi.createObjectURL,Zc=Hi.revokeObjectURL,Xc&&ko(kt,"createObjectURL",function(r){return Xc.apply(Hi,arguments)}),Zc&&ko(kt,"revokeObjectURL",function(r){return Zc.apply(Hi,arguments)}));var Xc,Zc;jz(kt,"URL");Tz({global:!0,forced:!Pz,sham:!sd},{URL:kt})});var fd=l(()=>{"use strict";var tK=p();tK({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})});var Px=l(()=>{dd();fd();Do()});var Lx=l(()=>{"use strict";var nK=ee(),iK=lr(),aK=oe(),oK=re(),sK=ie().f;nK&&!("lastIndex"in[])&&(sK(Array.prototype,"lastIndex",{configurable:!0,get:function(){var r=aK(this),t=oK(r.length);return t==0?0:t-1}}),iK("lastIndex"))});var Mx=l(()=>{"use strict";var uK=ee(),lK=lr(),Nx=oe(),Dx=re(),cK=ie().f;uK&&!("lastItem"in[])&&(cK(Array.prototype,"lastItem",{configurable:!0,get:function(){var r=Nx(this),t=Dx(r.length);return t==0?void 0:r[t-1]},set:function(r){var t=Nx(this),n=Dx(t.length);return t[n==0?0:n-1]=r}}),lK("lastItem"))});var Ux=l(()=>{Lx();Mx()});var jx=l(()=>{"use strict";var dK=p(),fK=$(),$o=D();dK({target:"Map",stat:!0},{groupBy:function(r,t){var n=new this;$o(t);var i=$o(n.has),a=$o(n.get),o=$o(n.set);return fK(r,function(u){var s=t(u);i.call(n,s)?a.call(n,s).push(u):o.call(n,s,[u])}),n}})});var Fx=l(()=>{"use strict";var vK=p(),pK=$(),kx=D();vK({target:"Map",stat:!0},{keyBy:function(r,t){var n=new this;kx(t);var i=kx(n.set);return pK(r,function(a){i.call(n,t(a),a)}),n}})});var Ki=l((wpe,Bx)=>{"use strict";var gK=w(),hK=D();Bx.exports=function(){for(var e=gK(this),r=hK(e.delete),t=!0,n,i=0,a=arguments.length;i<a;i++)n=r.call(e,arguments[i]),t=t&&n;return!!t}});var $x=l(()=>{"use strict";var mK=p(),yK=U(),qK=Ki();mK({target:"Map",proto:!0,real:!0,forced:yK},{deleteAll:function(){return qK.apply(this,arguments)}})});var gr=l((Rpe,Vx)=>{var EK=U(),bK=Cn();Vx.exports=EK?bK:function(e){return Map.prototype.entries.call(e)}});var Gx=l(()=>{"use strict";var SK=p(),IK=U(),xK=w(),wK=he(),AK=gr(),Hx=$();SK({target:"Map",proto:!0,real:!0,forced:IK},{every:function(r){var t=xK(this),n=AK(t),i=wK(r,arguments.length>1?arguments[1]:void 0,3);return!Hx(n,function(a,o){if(!i(o,a,t))return Hx.stop()},void 0,!0,!0).stopped}})});var zx=l(()=>{"use strict";var _K=p(),RK=U(),CK=ae(),OK=w(),TK=D(),PK=he(),LK=Se(),NK=gr(),DK=$();_K({target:"Map",proto:!0,real:!0,forced:RK},{filter:function(r){var t=OK(this),n=NK(t),i=PK(r,arguments.length>1?arguments[1]:void 0,3),a=new(LK(t,CK("Map"))),o=TK(a.set);return DK(n,function(u,s){i(s,u,t)&&o.call(a,u,s)},void 0,!0,!0),a}})});var Wx=l(()=>{"use strict";var MK=p(),UK=U(),jK=w(),kK=he(),FK=gr(),Kx=$();MK({target:"Map",proto:!0,real:!0,forced:UK},{find:function(r){var t=jK(this),n=FK(t),i=kK(r,arguments.length>1?arguments[1]:void 0,3);return Kx(n,function(a,o){if(i(o,a,t))return Kx.stop(o)},void 0,!0,!0).result}})});var Qx=l(()=>{"use strict";var BK=p(),$K=U(),VK=w(),HK=he(),GK=gr(),Yx=$();BK({target:"Map",proto:!0,real:!0,forced:$K},{findKey:function(r){var t=VK(this),n=GK(t),i=HK(r,arguments.length>1?arguments[1]:void 0,3);return Yx(n,function(a,o){if(i(o,a,t))return Yx.stop(a)},void 0,!0,!0).result}})});var Zx=l((Upe,Xx)=>{Xx.exports=function(e,r){return e===r||e!=e&&r!=r}});var ew=l(()=>{"use strict";var zK=p(),KK=U(),WK=w(),YK=gr(),QK=Zx(),Jx=$();zK({target:"Map",proto:!0,real:!0,forced:KK},{includes:function(r){return Jx(YK(WK(this)),function(t,n){if(QK(n,r))return Jx.stop()},void 0,!0,!0).stopped}})});var tw=l(()=>{"use strict";var XK=p(),ZK=U(),JK=w(),eW=gr(),rw=$();XK({target:"Map",proto:!0,real:!0,forced:ZK},{keyOf:function(r){return rw(eW(JK(this)),function(t,n){if(n===r)return rw.stop(t)},void 0,!0,!0).result}})});var nw=l(()=>{"use strict";var rW=p(),tW=U(),nW=ae(),iW=w(),aW=D(),oW=he(),sW=Se(),uW=gr(),lW=$();rW({target:"Map",proto:!0,real:!0,forced:tW},{mapKeys:function(r){var t=iW(this),n=uW(t),i=oW(r,arguments.length>1?arguments[1]:void 0,3),a=new(sW(t,nW("Map"))),o=aW(a.set);return lW(n,function(u,s){o.call(a,i(s,u,t),s)},void 0,!0,!0),a}})});var iw=l(()=>{"use strict";var cW=p(),dW=U(),fW=ae(),vW=w(),pW=D(),gW=he(),hW=Se(),mW=gr(),yW=$();cW({target:"Map",proto:!0,real:!0,forced:dW},{mapValues:function(r){var t=vW(this),n=mW(t),i=gW(r,arguments.length>1?arguments[1]:void 0,3),a=new(hW(t,fW("Map"))),o=pW(a.set);return yW(n,function(u,s){o.call(a,u,i(s,u,t))},void 0,!0,!0),a}})});var aw=l(()=>{"use strict";var qW=p(),EW=U(),bW=w(),SW=D(),IW=$();qW({target:"Map",proto:!0,real:!0,forced:EW},{merge:function(r){for(var t=bW(this),n=SW(t.set),i=0;i<arguments.length;)IW(arguments[i++],n,t,!0);return t}})});var ow=l(()=>{"use strict";var xW=p(),wW=U(),AW=w(),_W=D(),RW=gr(),CW=$();xW({target:"Map",proto:!0,real:!0,forced:wW},{reduce:function(r){var t=AW(this),n=RW(t),i=arguments.length<2,a=i?void 0:arguments[1];if(_W(r),CW(n,function(o,u){i?(i=!1,a=u):a=r(a,u,o,t)},void 0,!0,!0),i)throw TypeError("Reduce of empty map with no initial value");return a}})});var uw=l(()=>{"use strict";var OW=p(),TW=U(),PW=w(),LW=he(),NW=gr(),sw=$();OW({target:"Map",proto:!0,real:!0,forced:TW},{some:function(r){var t=PW(this),n=NW(t),i=LW(r,arguments.length>1?arguments[1]:void 0,3);return sw(n,function(a,o){if(i(o,a,t))return sw.stop()},void 0,!0,!0).stopped}})});var cw=l(()=>{"use strict";var DW=p(),MW=U(),UW=w(),lw=D();DW({target:"Map",proto:!0,real:!0,forced:MW},{update:function(r,t){var n=UW(this),i=arguments.length;lw(t);var a=n.has(r);if(!a&&i<3)throw TypeError("Updating absent value");var o=a?n.get(r):lw(i>2?arguments[2]:void 0)(r,n);return n.set(r,t(o,r,n)),n}})});var vd=l((ege,dw)=>{"use strict";var jW=w(),kW=D();dw.exports=function(){for(var e=jW(this),r=kW(e.add),t=0,n=arguments.length;t<n;t++)r.call(e,arguments[t]);return e}});var fw=l(()=>{"use strict";var FW=p(),BW=U(),$W=vd();FW({target:"Set",proto:!0,real:!0,forced:BW},{addAll:function(){return $W.apply(this,arguments)}})});var vw=l(()=>{"use strict";var VW=p(),HW=U(),GW=Ki();VW({target:"Set",proto:!0,real:!0,forced:HW},{deleteAll:function(){return GW.apply(this,arguments)}})});var gt=l((age,pw)=>{var zW=U(),KW=Cn();pw.exports=zW?KW:function(e){return Set.prototype.values.call(e)}});var hw=l(()=>{"use strict";var WW=p(),YW=U(),QW=w(),XW=he(),ZW=gt(),gw=$();WW({target:"Set",proto:!0,real:!0,forced:YW},{every:function(r){var t=QW(this),n=ZW(t),i=XW(r,arguments.length>1?arguments[1]:void 0,3);return!gw(n,function(a){if(!i(a,a,t))return gw.stop()},void 0,!1,!0).stopped}})});var mw=l(()=>{"use strict";var JW=p(),eY=U(),rY=ae(),tY=w(),nY=D(),iY=he(),aY=Se(),oY=gt(),sY=$();JW({target:"Set",proto:!0,real:!0,forced:eY},{filter:function(r){var t=tY(this),n=oY(t),i=iY(r,arguments.length>1?arguments[1]:void 0,3),a=new(aY(t,rY("Set"))),o=nY(a.add);return sY(n,function(u){i(u,u,t)&&o.call(a,u)},void 0,!1,!0),a}})});var qw=l(()=>{"use strict";var uY=p(),lY=U(),cY=w(),dY=he(),fY=gt(),yw=$();uY({target:"Set",proto:!0,real:!0,forced:lY},{find:function(r){var t=cY(this),n=fY(t),i=dY(r,arguments.length>1?arguments[1]:void 0,3);return yw(n,function(a){if(i(a,a,t))return yw.stop(a)},void 0,!1,!0).result}})});var Ew=l(()=>{"use strict";var vY=p(),pY=U(),gY=w(),hY=gt(),mY=$();vY({target:"Set",proto:!0,real:!0,forced:pY},{join:function(r){var t=gY(this),n=hY(t),i=r===void 0?",":String(r),a=[];return mY(n,a.push,a,!1,!0),a.join(i)}})});var bw=l(()=>{"use strict";var yY=p(),qY=U(),EY=ae(),bY=w(),SY=D(),IY=he(),xY=Se(),wY=gt(),AY=$();yY({target:"Set",proto:!0,real:!0,forced:qY},{map:function(r){var t=bY(this),n=wY(t),i=IY(r,arguments.length>1?arguments[1]:void 0,3),a=new(xY(t,EY("Set"))),o=SY(a.add);return AY(n,function(u){o.call(a,i(u,u,t))},void 0,!1,!0),a}})});var Sw=l(()=>{"use strict";var _Y=p(),RY=U(),CY=w(),OY=D(),TY=gt(),PY=$();_Y({target:"Set",proto:!0,real:!0,forced:RY},{reduce:function(r){var t=CY(this),n=TY(t),i=arguments.length<2,a=i?void 0:arguments[1];if(OY(r),PY(n,function(o){i?(i=!1,a=o):a=r(a,o,o,t)},void 0,!1,!0),i)throw TypeError("Reduce of empty set with no initial value");return a}})});var xw=l(()=>{"use strict";var LY=p(),NY=U(),DY=w(),MY=he(),UY=gt(),Iw=$();LY({target:"Set",proto:!0,real:!0,forced:NY},{some:function(r){var t=DY(this),n=UY(t),i=MY(r,arguments.length>1?arguments[1]:void 0,3);return Iw(n,function(a){if(i(a,a,t))return Iw.stop()},void 0,!1,!0).stopped}})});var ww=l(()=>{"use strict";var jY=p(),kY=U(),FY=Ki();jY({target:"WeakMap",proto:!0,real:!0,forced:kY},{deleteAll:function(){return FY.apply(this,arguments)}})});var Aw=l(()=>{"use strict";var BY=p(),$Y=U(),VY=vd();BY({target:"WeakSet",proto:!0,real:!0,forced:$Y},{addAll:function(){return VY.apply(this,arguments)}})});var _w=l(()=>{"use strict";var HY=p(),GY=U(),zY=Ki();HY({target:"WeakSet",proto:!0,real:!0,forced:GY},{deleteAll:function(){return zY.apply(this,arguments)}})});var Rw=l(()=>{jx();Fx();$x();Gx();zx();Wx();Qx();ew();tw();nw();iw();aw();ow();uw();cw();fw();vw();hw();mw();qw();Ew();bw();Sw();xw();ww();Aw();_w()});var Wi=l((Rge,Tw)=>{"use strict";var Cw=D(),KY=he(),Ow=$();Tw.exports=function(r){var t=arguments.length,n=t>1?arguments[1]:void 0,i,a,o,u;return Cw(this),i=n!==void 0,i&&Cw(n),r==null?new this:(a=[],i?(o=0,u=KY(n,t>2?arguments[2]:void 0,2),Ow(r,function(s){a.push(u(s,o++))})):Ow(r,a.push,a),new this(a))}});var Pw=l(()=>{var WY=p(),YY=Wi();WY({target:"Map",stat:!0},{from:YY})});var Yi=l((Tge,Lw)=>{"use strict";Lw.exports=function(){for(var r=arguments.length,t=new Array(r);r--;)t[r]=arguments[r];return new this(t)}});var Nw=l(()=>{var QY=p(),XY=Yi();QY({target:"Map",stat:!0},{of:XY})});var Dw=l(()=>{var ZY=p(),JY=Wi();ZY({target:"Set",stat:!0},{from:JY})});var Mw=l(()=>{var eQ=p(),rQ=Yi();eQ({target:"Set",stat:!0},{of:rQ})});var Uw=l(()=>{var tQ=p(),nQ=Wi();tQ({target:"WeakMap",stat:!0},{from:nQ})});var jw=l(()=>{var iQ=p(),aQ=Yi();iQ({target:"WeakMap",stat:!0},{of:aQ})});var kw=l(()=>{var oQ=p(),sQ=Wi();oQ({target:"WeakSet",stat:!0},{from:sQ})});var Fw=l(()=>{var uQ=p(),lQ=Yi();uQ({target:"WeakSet",stat:!0},{of:lQ})});var Bw=l(()=>{Pw();Nw();Dw();Mw();Uw();jw();kw();Fw()});var pd=l((Wge,Hw)=>{var cQ=lo(),dQ=ho(),fQ=Ue(),$w=J(),Vo=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=fQ(null)};Vo.prototype.get=function(e,r){return this[e]||(this[e]=r())};Vo.prototype.next=function(e,r,t){var n=t?this.objectsByIndex[e]||(this.objectsByIndex[e]=new dQ):this.primitives||(this.primitives=new cQ),i=n.get(r);return i||n.set(r,i=new Vo),i};var Vw=new Vo;Hw.exports=function(){var e=Vw,r=arguments.length,t,n;for(t=0;t<r;t++)$w(n=arguments[t])&&(e=e.next(t,n,!0));if(this===Object&&e===Vw)throw TypeError("Composite keys must contain a non-primitive component");for(t=0;t<r;t++)$w(n=arguments[t])||(e=e.next(t,n,!1));return e}});var zw=l(()=>{var vQ=p(),pQ=pd(),gQ=ae(),Gw=Ue(),hQ=function(){var e=gQ("Object","freeze");return e?e(Gw(null)):Gw(null)};vQ({global:!0},{compositeKey:function(){return pQ.apply(Object,arguments).get("object",hQ)}})});var Ww=l(()=>{var mQ=p(),yQ=pd(),Kw=ae();mQ({global:!0},{compositeSymbol:function(){return arguments.length===1&&typeof arguments[0]=="string"?Kw("Symbol").for(arguments[0]):yQ.apply(null,arguments).get("symbol",Kw("Symbol"))}})});var Yw=l(()=>{zw();Ww()});var Qw=l(()=>{var qQ=p(),EQ=Math.min,bQ=Math.max;qQ({target:"Math",stat:!0},{clamp:function(r,t,n){return EQ(n,bQ(t,r))}})});var Xw=l(()=>{var SQ=p();SQ({target:"Math",stat:!0},{DEG_PER_RAD:Math.PI/180})});var Zw=l(()=>{var IQ=p(),xQ=180/Math.PI;IQ({target:"Math",stat:!0},{degrees:function(r){return r*xQ}})});var gd=l((she,Jw)=>{Jw.exports=Math.scale||function(r,t,n,i,a){return arguments.length===0||r!=r||t!=t||n!=n||i!=i||a!=a?NaN:r===1/0||r===-1/0?r:(r-t)*(a-i)/(n-t)+i}});var eA=l(()=>{var wQ=p(),AQ=gd(),_Q=ul();wQ({target:"Math",stat:!0},{fscale:function(r,t,n,i,a){return _Q(AQ(r,t,n,i,a))}})});var rA=l(()=>{var RQ=p();RQ({target:"Math",stat:!0},{RAD_PER_DEG:180/Math.PI})});var tA=l(()=>{var CQ=p(),OQ=Math.PI/180;CQ({target:"Math",stat:!0},{radians:function(r){return r*OQ}})});var nA=l(()=>{var TQ=p(),PQ=gd();TQ({target:"Math",stat:!0},{scale:PQ})});var iA=l(()=>{Qw();Xw();Zw();eA();rA();tA();nA()});var aA=l(()=>{var LQ=p();LQ({target:"Math",stat:!0},{signbit:function(r){return(r=+r)==r&&r==0?1/r==-1/0:r<0}})});var oA=l(()=>{aA()});var sA=l(()=>{"use strict";var NQ=p(),DQ=Be(),MQ=Qa(),Ho="Invalid number representation",UQ="Invalid radix",jQ=/^[\da-z]+$/;NQ({target:"Number",stat:!0},{fromString:function(r,t){var n=1,i,a;if(typeof r!="string")throw TypeError(Ho);if(!r.length||r.charAt(0)=="-"&&(n=-1,r=r.slice(1),!r.length))throw SyntaxError(Ho);if(i=t===void 0?10:DQ(t),i<2||i>36)throw RangeError(UQ);if(!jQ.test(r)||(a=MQ(r,i)).toString(i)!==r)throw SyntaxError(Ho);return n*a}})});var uA=l(()=>{sA()});var Go=l((Ahe,dA)=>{"use strict";var lA=me(),kQ=Ct(),FQ=le(),BQ=At(),$Q=oe(),cA="Object Iterator",VQ=lA.set,HQ=lA.getterFor(cA);dA.exports=kQ(function(r,t){var n=$Q(r);VQ(this,{type:cA,mode:t,object:n,keys:BQ(n),index:0})},"Object",function(){for(var r=HQ(this),t=r.keys;;){if(t===null||r.index>=t.length)return r.object=r.keys=null,{value:void 0,done:!0};var n=t[r.index++],i=r.object;if(!!FQ(i,n)){switch(r.mode){case"keys":return{value:n,done:!1};case"values":return{value:i[n],done:!1}}return{value:[n,i[n]],done:!1}}}})});var fA=l(()=>{"use strict";var GQ=p(),zQ=Go();GQ({target:"Object",stat:!0},{iterateEntries:function(r){return new zQ(r,"entries")}})});var vA=l(()=>{"use strict";var KQ=p(),WQ=Go();KQ({target:"Object",stat:!0},{iterateKeys:function(r){return new WQ(r,"keys")}})});var pA=l(()=>{"use strict";var YQ=p(),QQ=Go();YQ({target:"Object",stat:!0},{iterateValues:function(r){return new QQ(r,"values")}})});var gA=l(()=>{fA();vA();pA()});var EA=l(()=>{"use strict";var XQ=p(),Xi=ee(),ZQ=ut(),yd=D(),hd=w(),JQ=J(),eX=rr(),mA=ie().f,rX=fe(),Ko=wr(),tX=Cn(),hA=$(),Nn=Rl(),nX=z(),yA=me(),qA=nX("observable"),hr=yA.get,qd=yA.set,Qi=function(e){return e==null?void 0:yd(e)},zo=function(e){var r=e.cleanup;if(r){e.cleanup=void 0;try{r()}catch(t){Nn(t)}}},ht=function(e){return e.observer===void 0},md=function(e,r){if(!Xi){e.closed=!0;var t=r.subscriptionObserver;t&&(t.closed=!0)}r.observer=void 0},Ed=function(e,r){var t=qd(this,{cleanup:void 0,observer:hd(e),subscriptionObserver:void 0}),n;Xi||(this.closed=!1);try{(n=Qi(e.start))&&n.call(e,this)}catch(u){Nn(u)}if(!ht(t)){var i=t.subscriptionObserver=new bd(this);try{var a=r(i),o=a;a!=null&&(t.cleanup=typeof a.unsubscribe=="function"?function(){o.unsubscribe()}:yd(a))}catch(u){i.error(u);return}ht(t)&&zo(t)}};Ed.prototype=Ko({},{unsubscribe:function(){var r=hr(this);ht(r)||(md(this,r),zo(r))}});Xi&&mA(Ed.prototype,"closed",{configurable:!0,get:function(){return ht(hr(this))}});var bd=function(e){qd(this,{subscription:e}),Xi||(this.closed=!1)};bd.prototype=Ko({},{next:function(r){var t=hr(hr(this).subscription);if(!ht(t)){var n=t.observer;try{var i=Qi(n.next);i&&i.call(n,r)}catch(a){Nn(a)}}},error:function(r){var t=hr(this).subscription,n=hr(t);if(!ht(n)){var i=n.observer;md(t,n);try{var a=Qi(i.error);a?a.call(i,r):Nn(r)}catch(o){Nn(o)}zo(n)}},complete:function(){var r=hr(this).subscription,t=hr(r);if(!ht(t)){var n=t.observer;md(r,t);try{var i=Qi(n.complete);i&&i.call(n)}catch(a){Nn(a)}zo(t)}}});Xi&&mA(bd.prototype,"closed",{configurable:!0,get:function(){return ht(hr(hr(this).subscription))}});var Ft=function(r){eX(this,Ft,"Observable"),qd(this,{subscriber:yd(r)})};Ko(Ft.prototype,{subscribe:function(r){var t=arguments.length;return new Ed(typeof r=="function"?{next:r,error:t>1?arguments[1]:void 0,complete:t>2?arguments[2]:void 0}:JQ(r)?r:{},hr(this).subscriber)}});Ko(Ft,{from:function(r){var t=typeof this=="function"?this:Ft,n=Qi(hd(r)[qA]);if(n){var i=hd(n.call(r));return i.constructor===t?i:new t(function(o){return i.subscribe(o)})}var a=tX(r);return new t(function(o){hA(a,function(u){if(o.next(u),o.closed)return hA.stop()},void 0,!1,!0),o.complete()})},of:function(){for(var r=typeof this=="function"?this:Ft,t=arguments.length,n=new Array(t),i=0;i<t;)n[i]=arguments[i++];return new r(function(a){for(var o=0;o<t;o++)if(a.next(n[o]),a.closed)return;a.complete()})}});rX(Ft.prototype,qA,function(){return this});XQ({global:!0},{Observable:Ft});ZQ("Observable")});var bA=l(()=>{var iX=Ee();iX("observable")});var SA=l(()=>{EA();bA()});var IA=l(()=>{var aX=Ee();aX("patternMatch")});var xA=l(()=>{IA()});var wA=l(()=>{"use strict";var oX=p(),sX=yn(),uX=Ai();oX({target:"Promise",stat:!0},{try:function(e){var r=sX.f(this),t=uX(e);return(t.error?r.reject:r.resolve)(t.value),r.promise}})});var AA=l(()=>{wA()});var OA=l(()=>{var lX=p(),cX=w(),dX=Ju(),fX=Ct(),_A=me(),RA="Seeded Random",CA=RA+" Generator",vX=_A.set,pX=_A.getterFor(CA),gX='Math.seededPRNG() argument should have a "seed" field with a finite value.',hX=fX(function(r){vX(this,{type:CA,seed:r%2147483647})},RA,function(){var r=pX(this),t=r.seed=(r.seed*1103515245+12345)%2147483647;return{value:(t&1073741823)/1073741823,done:!1}});lX({target:"Math",stat:!0,forced:!0},{seededPRNG:function(r){var t=cX(r).seed;if(!dX(t))throw TypeError(gX);return new hX(t)}})});var TA=l(()=>{OA()});var DA=l(()=>{"use strict";var mX=p(),yX=Ct(),qX=xe(),PA=me(),LA=Ot(),EX=LA.codeAt,bX=LA.charAt,NA="String Iterator",SX=PA.set,IX=PA.getterFor(NA),xX=yX(function(r){SX(this,{type:NA,string:r,index:0})},"String",function(){var r=IX(this),t=r.string,n=r.index,i;return n>=t.length?{value:void 0,done:!0}:(i=bX(t,n),r.index+=i.length,{value:{codePoint:EX(i,0),position:n},done:!1})});mX({target:"String",proto:!0},{codePoints:function(){return new xX(String(qX(this)))}})});var MA=l(()=>{DA()});var kA=l(()=>{var wX=p(),AX=Br(),UA=Object.isFrozen,jA=function(e,r){if(!UA||!AX(e)||!UA(e))return!1;for(var t=0,n=e.length,i;t<n;)if(i=e[t++],!(typeof i=="string"||r&&typeof i>"u"))return!1;return n!==0};wX({target:"Array",stat:!0},{isTemplateObject:function(r){if(!jA(r,!0))return!1;var t=r.raw;return!(t.length!==r.length||!jA(t,!1))}})});var FA=l(()=>{kA()});var WA=l((sme,KA)=>{var GA=B(),zA=va(),Wo=Le(),_X=le(),RX=fe(),CX=z(),OX=U(),BA="USE_FUNCTION_CONSTRUCTOR",$A=CX("asyncIterator"),VA=GA.AsyncIterator,HA=zA.AsyncIteratorPrototype,mt,Sd;if(!OX){if(HA)mt=HA;else if(typeof VA=="function")mt=VA.prototype;else if(zA[BA]||GA[BA])try{Sd=Wo(Wo(Wo(Function("return async function*(){}()")()))),Wo(Sd)===Object.prototype&&(mt=Sd)}catch(e){}}mt||(mt={});_X(mt,$A)||RX(mt,$A,function(){return this});KA.exports=mt});var ZA=l(()=>{"use strict";var TX=p(),PX=rr(),QA=fe(),XA=le(),LX=z(),Dn=WA(),NX=U(),YA=LX("toStringTag"),Yo=function(){PX(this,Yo)};Yo.prototype=Dn;XA(Dn,YA)||QA(Dn,YA,"AsyncIterator");(!XA(Dn,"constructor")||Dn.constructor===Object)&&QA(Dn,"constructor",Yo);TX({global:!0,forced:NX},{AsyncIterator:Yo})});var yt=l((cme,r2)=>{"use strict";var DX=sr(),MX=D(),JA=w(),UX=Ue(),jX=fe(),kX=wr(),FX=z(),e2=me(),BX=ae(),Mn=BX("Promise"),$X=e2.set,Id=e2.get,VX=FX("toStringTag"),HX=function(e){var r=Id(this).iterator,t=r.return;return t===void 0?Mn.resolve({done:!0,value:e}):JA(t.call(r,e))},GX=function(e){var r=Id(this).iterator,t=r.throw;return t===void 0?Mn.reject(e):t.call(r,e)};r2.exports=function(e,r){var t=function(i){i.next=MX(i.iterator.next),i.done=!1,$X(this,i)};return t.prototype=kX(UX(DX.AsyncIterator.prototype),{next:function(i){var a=Id(this);if(a.done)return Mn.resolve({done:!0,value:void 0});try{return Mn.resolve(JA(e.call(a,i,Mn)))}catch(o){return Mn.reject(o)}},return:HX,throw:GX}),r||jX(t.prototype,VX,"Generator"),t}});var t2=l(()=>{"use strict";var zX=p(),xd=w(),KX=yt(),WX=KX(function(e,r){var t=this,n=t.iterator;return r.resolve(xd(t.next.call(n,e))).then(function(i){return xd(i).done?(t.done=!0,{done:!0,value:void 0}):{done:!1,value:[t.index++,i.value]}})});zX({target:"AsyncIterator",proto:!0,real:!0},{asIndexedPairs:function(){return new WX({iterator:xd(this),index:0})}})});var n2=l(()=>{"use strict";var YX=p(),wd=w(),QX=An(),XX=yt(),ZX=XX(function(e,r){var t=this;return new r(function(n,i){var a=function(){try{r.resolve(wd(t.next.call(t.iterator,t.remaining?void 0:e))).then(function(o){try{wd(o).done?(t.done=!0,n({done:!0,value:void 0})):t.remaining?(t.remaining--,a()):n({done:!1,value:o.value})}catch(u){i(u)}},i)}catch(o){i(o)}};a()})});YX({target:"AsyncIterator",proto:!0,real:!0},{drop:function(r){return new ZX({iterator:wd(this),remaining:QX(r)})}})});var Un=l((gme,a2)=>{"use strict";var i2=D(),Ad=w(),JX=ae(),_d=JX("Promise"),eZ=[].push,Zi=function(e){var r=e==0,t=e==1,n=e==2,i=e==3;return function(a,o){Ad(a);var u=i2(a.next),s=r?[]:void 0;return r||i2(o),new _d(function(c,f){var d=function(){try{_d.resolve(Ad(u.call(a))).then(function(v){try{if(Ad(v).done)c(r?s:i?!1:n||void 0);else{var q=v.value;r?(eZ.call(s,q),d()):_d.resolve(o(q)).then(function(h){t?d():n?h?d():c(!1):h?c(i||q):d()},f)}}catch(h){f(h)}},f)}catch(v){f(v)}};d()})}};a2.exports={toArray:Zi(0),forEach:Zi(1),every:Zi(2),some:Zi(3),find:Zi(4)}});var o2=l(()=>{"use strict";var rZ=p(),tZ=Un().every;rZ({target:"AsyncIterator",proto:!0,real:!0},{every:function(r){return tZ(this,r)}})});var s2=l(()=>{"use strict";var nZ=p(),iZ=D(),Rd=w(),aZ=yt(),oZ=aZ(function(e,r){var t=this,n=t.filterer;return new r(function(i,a){var o=function(){try{r.resolve(Rd(t.next.call(t.iterator,e))).then(function(u){try{if(Rd(u).done)t.done=!0,i({done:!0,value:void 0});else{var s=u.value;r.resolve(n(s)).then(function(c){c?i({done:!1,value:s}):o()},a)}}catch(c){a(c)}},a)}catch(u){a(u)}};o()})});nZ({target:"AsyncIterator",proto:!0,real:!0},{filter:function(r){return new oZ({iterator:Rd(this),filterer:iZ(r)})}})});var u2=l(()=>{"use strict";var sZ=p(),uZ=Un().find;sZ({target:"AsyncIterator",proto:!0,real:!0},{find:function(r){return uZ(this,r)}})});var Cd=l((Sme,l2)=>{var lZ=Gr(),cZ=z(),dZ=cZ("asyncIterator");l2.exports=function(e){var r=e[dZ];return r===void 0?lZ(e):r}});var d2=l(()=>{"use strict";var fZ=p(),c2=D(),jn=w(),vZ=yt(),pZ=Cd(),gZ=vZ(function(e,r){var t=this,n=t.mapper,i,a;return new r(function(o,u){var s=function(){try{r.resolve(jn(t.next.call(t.iterator,e))).then(function(f){try{jn(f).done?(t.done=!0,o({done:!0,value:void 0})):r.resolve(n(f.value)).then(function(d){try{if(a=pZ(d),a!==void 0)return t.innerIterator=i=jn(a.call(d)),t.innerNext=c2(i.next),c();u(TypeError(".flatMap callback should return an iterable object"))}catch(v){u(v)}},u)}catch(d){u(d)}},u)}catch(f){u(f)}},c=function(){if(i=t.innerIterator)try{r.resolve(jn(t.innerNext.call(i))).then(function(f){try{jn(f).done?(t.innerIterator=t.innerNext=null,s()):o({done:!1,value:f.value})}catch(d){u(d)}},u)}catch(f){u(f)}else s()};c()})});fZ({target:"AsyncIterator",proto:!0,real:!0},{flatMap:function(r){return new gZ({iterator:jn(this),mapper:c2(r),innerIterator:null,innerNext:null})}})});var f2=l(()=>{"use strict";var hZ=p(),mZ=Un().forEach;hZ({target:"AsyncIterator",proto:!0,real:!0},{forEach:function(r){return mZ(this,r)}})});var v2=l(()=>{var yZ=p(),qZ=sr(),EZ=D(),bZ=w(),SZ=oe(),IZ=yt(),xZ=Cd(),wZ=qZ.AsyncIterator,AZ=IZ(function(e){return bZ(this.next.call(this.iterator,e))},!0);yZ({target:"AsyncIterator",stat:!0},{from:function(r){var t=SZ(r),n=xZ(t),i;if(n!=null){if(i=EZ(n).call(t),i instanceof wZ)return i}else i=t;return new AZ({iterator:i})}})});var p2=l(()=>{"use strict";var _Z=p(),RZ=D(),Od=w(),CZ=yt(),OZ=CZ(function(e,r){var t=this,n=t.mapper;return r.resolve(Od(t.next.call(t.iterator,e))).then(function(i){return Od(i).done?(t.done=!0,{done:!0,value:void 0}):r.resolve(n(i.value)).then(function(a){return{done:!1,value:a}})})});_Z({target:"AsyncIterator",proto:!0,real:!0},{map:function(r){return new OZ({iterator:Od(this),mapper:RZ(r)})}})});var h2=l(()=>{"use strict";var TZ=p(),g2=D(),Td=w(),PZ=ae(),Pd=PZ("Promise");TZ({target:"AsyncIterator",proto:!0,real:!0},{reduce:function(r){var t=Td(this),n=g2(t.next),i=arguments.length<2,a=i?void 0:arguments[1];return g2(r),new Pd(function(o,u){var s=function(){try{Pd.resolve(Td(n.call(t))).then(function(c){try{if(Td(c).done)i?u(TypeError("Reduce of empty iterator with no initial value")):o(a);else{var f=c.value;i?(i=!1,a=f,s()):Pd.resolve(r(a,f)).then(function(d){a=d,s()},u)}}catch(d){u(d)}},u)}catch(c){u(c)}};s()})}})});var m2=l(()=>{"use strict";var LZ=p(),NZ=Un().some;LZ({target:"AsyncIterator",proto:!0,real:!0},{some:function(r){return NZ(this,r)}})});var y2=l(()=>{"use strict";var DZ=p(),MZ=w(),UZ=An(),jZ=yt(),kZ=jZ(function(e){return this.remaining--?this.next.call(this.iterator,e):(this.done=!0,{done:!0,value:void 0})});DZ({target:"AsyncIterator",proto:!0,real:!0},{take:function(r){return new kZ({iterator:MZ(this),remaining:UZ(r)})}})});var q2=l(()=>{"use strict";var FZ=p(),BZ=Un().toArray;FZ({target:"AsyncIterator",proto:!0,real:!0},{toArray:function(){return BZ(this)}})});var w2=l(()=>{"use strict";var $Z=p(),VZ=B(),HZ=rr(),Nd=fe(),GZ=P(),b2=le(),S2=z(),Zr=Ma().IteratorPrototype,I2=U(),zZ=S2("iterator"),E2=S2("toStringTag"),Ld=VZ.Iterator,x2=I2||typeof Ld!="function"||Ld.prototype!==Zr||!GZ(function(){Ld({})}),Qo=function(){HZ(this,Qo)};I2&&(Zr={},Nd(Zr,zZ,function(){return this}));b2(Zr,E2)||Nd(Zr,E2,"Iterator");(x2||!b2(Zr,"constructor")||Zr.constructor===Object)&&Nd(Zr,"constructor",Qo);Qo.prototype=Zr;$Z({global:!0,forced:x2},{Iterator:Qo})});var qt=l((Bme,_2)=>{"use strict";var KZ=sr(),WZ=D(),YZ=w(),QZ=Ue(),XZ=fe(),ZZ=wr(),JZ=z(),A2=me(),eJ=A2.set,Dd=A2.get,rJ=JZ("toStringTag"),tJ=function(e){var r=Dd(this).iterator,t=r.return;return t===void 0?{done:!0,value:e}:YZ(t.call(r,e))},nJ=function(e){var r=Dd(this).iterator,t=r.throw;if(t===void 0)throw e;return t.call(r,e)};_2.exports=function(e,r){var t=function(i){i.next=WZ(i.iterator.next),i.done=!1,eJ(this,i)};return t.prototype=ZZ(QZ(KZ.Iterator.prototype),{next:function(){var i=Dd(this),a=i.done?void 0:e.apply(i,arguments);return{done:i.done,value:a}},return:tJ,throw:nJ}),r||XZ(t.prototype,rJ,"Generator"),t}});var C2=l(()=>{"use strict";var iJ=p(),R2=w(),aJ=qt(),oJ=aJ(function(e){var r=R2(this.next.call(this.iterator,e)),t=this.done=!!r.done;if(!t)return[this.index++,r.value]});iJ({target:"Iterator",proto:!0,real:!0},{asIndexedPairs:function(){return new oJ({iterator:R2(this),index:0})}})});var O2=l(()=>{"use strict";var sJ=p(),Md=w(),uJ=An(),lJ=qt(),cJ=lJ(function(e){for(var r=this.iterator,t=this.next,n,i;this.remaining;)if(this.remaining--,n=Md(t.call(r)),i=this.done=!!n.done,i)return;if(n=Md(t.call(r,e)),i=this.done=!!n.done,!i)return n.value});sJ({target:"Iterator",proto:!0,real:!0},{drop:function(r){return new cJ({iterator:Md(this),remaining:uJ(r)})}})});var P2=l(()=>{"use strict";var dJ=p(),T2=$(),fJ=D(),vJ=w();dJ({target:"Iterator",proto:!0,real:!0},{every:function(r){return vJ(this),fJ(r),!T2(this,function(t){if(!r(t))return T2.stop()},void 0,!1,!0).stopped}})});var N2=l(()=>{"use strict";var pJ=p(),gJ=D(),L2=w(),hJ=qt(),mJ=cn(),yJ=hJ(function(e){for(var r=this.iterator,t=this.filterer,n=this.next,i,a,o;;){if(i=L2(n.call(r,e)),a=this.done=!!i.done,a)return;if(o=i.value,mJ(r,t,o))return o}});pJ({target:"Iterator",proto:!0,real:!0},{filter:function(r){return new yJ({iterator:L2(this),filterer:gJ(r)})}})});var M2=l(()=>{"use strict";var qJ=p(),D2=$(),EJ=D(),bJ=w();qJ({target:"Iterator",proto:!0,real:!0},{find:function(r){return bJ(this),EJ(r),D2(this,function(t){if(r(t))return D2.stop(t)},void 0,!1,!0).result}})});var j2=l(()=>{"use strict";var SJ=p(),U2=D(),Xo=w(),IJ=Gr(),xJ=qt(),wJ=cn(),AJ=xJ(function(e){for(var r=this.iterator,t,n,i,a;;){if(a=this.innerIterator){if(t=Xo(this.innerNext.call(a)),!t.done)return t.value;this.innerIterator=this.innerNext=null}if(t=Xo(this.next.call(r,e)),this.done=!!t.done)return;if(n=wJ(r,this.mapper,t.value),i=IJ(n),i===void 0)throw TypeError(".flatMap callback should return an iterable object");this.innerIterator=a=Xo(i.call(n)),this.innerNext=U2(a.next)}});SJ({target:"Iterator",proto:!0,real:!0},{flatMap:function(r){return new AJ({iterator:Xo(this),mapper:U2(r),innerIterator:null,innerNext:null})}})});var k2=l(()=>{"use strict";var _J=p(),RJ=$(),CJ=w();_J({target:"Iterator",proto:!0,real:!0},{forEach:function(r){RJ(CJ(this),r,void 0,!1,!0)}})});var F2=l(()=>{var OJ=p(),TJ=sr(),PJ=D(),LJ=w(),NJ=oe(),DJ=qt(),MJ=Gr(),UJ=TJ.Iterator,jJ=DJ(function(e){var r=LJ(this.next.call(this.iterator,e)),t=this.done=!!r.done;if(!t)return r.value},!0);OJ({target:"Iterator",stat:!0},{from:function(r){var t=NJ(r),n=MJ(t),i;if(n!=null){if(i=PJ(n).call(t),i instanceof UJ)return i}else i=t;return new jJ({iterator:i})}})});var $2=l(()=>{"use strict";var kJ=p(),FJ=D(),B2=w(),BJ=qt(),$J=cn(),VJ=BJ(function(e){var r=this.iterator,t=B2(this.next.call(r,e)),n=this.done=!!t.done;if(!n)return $J(r,this.mapper,t.value)});kJ({target:"Iterator",proto:!0,real:!0},{map:function(r){return new VJ({iterator:B2(this),mapper:FJ(r)})}})});var V2=l(()=>{"use strict";var HJ=p(),GJ=$(),zJ=D(),KJ=w();HJ({target:"Iterator",proto:!0,real:!0},{reduce:function(r){KJ(this),zJ(r);var t=arguments.length<2,n=t?void 0:arguments[1];if(GJ(this,function(i){t?(t=!1,n=i):n=r(n,i)},void 0,!1,!0),t)throw TypeError("Reduce of empty iterator with no initial value");return n}})});var G2=l(()=>{"use strict";var WJ=p(),H2=$(),YJ=D(),QJ=w();WJ({target:"Iterator",proto:!0,real:!0},{some:function(r){return QJ(this),YJ(r),H2(this,function(t){if(r(t))return H2.stop()},void 0,!1,!0).stopped}})});var K2=l(()=>{"use strict";var XJ=p(),z2=w(),ZJ=An(),JJ=qt(),eee=JJ(function(e){if(!this.remaining--){this.done=!0;return}var r=z2(this.next.call(this.iterator,e)),t=this.done=!!r.done;if(!t)return r.value});XJ({target:"Iterator",proto:!0,real:!0},{take:function(r){return new eee({iterator:z2(this),remaining:ZJ(r)})}})});var W2=l(()=>{"use strict";var ree=p(),tee=$(),nee=w(),iee=[].push;ree({target:"Iterator",proto:!0,real:!0},{toArray:function(){var r=[];return tee(nee(this),iee,r,!1,!0),r}})});var Y2=l(()=>{ZA();t2();n2();o2();s2();u2();d2();f2();v2();p2();h2();m2();y2();q2();w2();C2();O2();P2();N2();M2();j2();k2();F2();$2();V2();G2();K2();W2()});var Zo=l((hye,Q2)=>{"use strict";var aee=w();Q2.exports=function(r,t){var n=aee(this),i=arguments.length>2?arguments[2]:void 0,a;if(typeof t!="function"&&typeof i!="function")throw TypeError("At least one callback required");return n.has(r)?(a=n.get(r),typeof t=="function"&&(a=t(a),n.set(r,a))):typeof i=="function"&&(a=i(),n.set(r,a)),a}});var X2=l(()=>{"use strict";var oee=p(),see=U(),uee=Zo();oee({target:"Map",proto:!0,real:!0,forced:see},{updateOrInsert:uee})});var Z2=l(()=>{"use strict";var lee=p(),cee=U(),dee=Zo();lee({target:"Map",proto:!0,real:!0,forced:cee},{upsert:dee})});var J2=l(()=>{"use strict";var fee=p(),vee=U(),pee=Zo();fee({target:"WeakMap",proto:!0,real:!0,forced:vee},{upsert:pee})});var e3=l(()=>{X2();Z2();J2()});var r3=l(()=>{"use strict";var gee=p(),hee=U(),mee=ae(),yee=w(),qee=D(),Eee=Se(),bee=$();gee({target:"Set",proto:!0,real:!0,forced:hee},{difference:function(r){var t=yee(this),n=new(Eee(t,mee("Set")))(t),i=qee(n.delete);return bee(r,function(a){i.call(n,a)}),n}})});var n3=l(()=>{"use strict";var See=p(),Iee=U(),xee=ae(),wee=w(),t3=D(),Aee=Se(),_ee=$();See({target:"Set",proto:!0,real:!0,forced:Iee},{intersection:function(r){var t=wee(this),n=new(Aee(t,xee("Set"))),i=t3(t.has),a=t3(n.add);return _ee(r,function(o){i.call(t,o)&&a.call(n,o)}),n}})});var a3=l(()=>{"use strict";var Ree=p(),Cee=U(),Oee=w(),Tee=D(),i3=$();Ree({target:"Set",proto:!0,real:!0,forced:Cee},{isDisjointFrom:function(r){var t=Oee(this),n=Tee(t.has);return!i3(r,function(i){if(n.call(t,i)===!0)return i3.stop()}).stopped}})});var s3=l(()=>{"use strict";var Pee=p(),Lee=U(),Nee=ae(),Dee=w(),Mee=D(),Uee=Cn(),o3=$();Pee({target:"Set",proto:!0,real:!0,forced:Lee},{isSubsetOf:function(r){var t=Uee(this),n=Dee(r),i=n.has;return typeof i!="function"&&(n=new(Nee("Set"))(r),i=Mee(n.has)),!o3(t,function(a){if(i.call(n,a)===!1)return o3.stop()},void 0,!1,!0).stopped}})});var l3=l(()=>{"use strict";var jee=p(),kee=U(),Fee=w(),Bee=D(),u3=$();jee({target:"Set",proto:!0,real:!0,forced:kee},{isSupersetOf:function(r){var t=Fee(this),n=Bee(t.has);return!u3(r,function(i){if(n.call(t,i)===!1)return u3.stop()}).stopped}})});var c3=l(()=>{"use strict";var $ee=p(),Vee=U(),Hee=ae(),Gee=w(),zee=D(),Kee=Se(),Wee=$();$ee({target:"Set",proto:!0,real:!0,forced:Vee},{union:function(r){var t=Gee(this),n=new(Kee(t,Hee("Set")))(t);return Wee(r,zee(n.add),n),n}})});var f3=l(()=>{"use strict";var Yee=p(),Qee=U(),Xee=ae(),Zee=w(),d3=D(),Jee=Se(),ere=$();Yee({target:"Set",proto:!0,real:!0,forced:Qee},{symmetricDifference:function(r){var t=Zee(this),n=new(Jee(t,Xee("Set")))(t),i=d3(n.delete),a=d3(n.add);return ere(r,function(o){i.call(n,o)||a.call(n,o)}),n}})});var v3=l(()=>{r3();n3();a3();s3();l3();c3();f3()});var p3=l(()=>{var rre=Ee();rre("asyncDispose")});var g3=l(()=>{var tre=Ee();tre("dispose")});var h3=l(()=>{p3();g3()});var E3=l(()=>{"use strict";var nre=p(),y3=ee(),ire=Le(),m3=st(),are=Ue(),ore=ie(),Ud=br(),sre=$(),ure=fe(),q3=me(),lre=q3.set,cre=q3.getterFor("AggregateError"),kn=function(r,t){var n=this;if(!(n instanceof kn))return new kn(r,t);m3&&(n=m3(new Error(t),ire(n)));var i=[];return sre(r,i.push,i),y3?lre(n,{errors:i,type:"AggregateError"}):n.errors=i,t!==void 0&&ure(n,"message",String(t)),n};kn.prototype=are(Error.prototype,{constructor:Ud(5,kn),message:Ud(5,""),name:Ud(5,"AggregateError")});y3&&ore.f(kn.prototype,"errors",{get:function(){return cre(this).errors},configurable:!0});nre({global:!0},{AggregateError:kn})});var I3=l(()=>{"use strict";var dre=p(),fre=D(),b3=ae(),vre=yn(),pre=Ai(),gre=$(),S3="No one promise resolved";dre({target:"Promise",stat:!0},{any:function(r){var t=this,n=vre.f(t),i=n.resolve,a=n.reject,o=pre(function(){var u=fre(t.resolve),s=[],c=0,f=1,d=!1;gre(r,function(v){var q=c++,h=!1;s.push(void 0),f++,u.call(t,v).then(function(m){h||d||(d=!0,i(m))},function(m){h||d||(h=!0,s[q]=m,--f||a(new(b3("AggregateError"))(s,S3)))})}),--f||a(new(b3("AggregateError"))(s,S3))});return o.error&&a(o.value),n.promise}})});var x3=l(()=>{E3();I3()});var A3=l(()=>{"use strict";var hre=p(),w3=xe(),mre=vn(),yre=Tt(),qre=z(),Ere=U(),bre=qre("replace"),Sre=RegExp.prototype;hre({target:"String",proto:!0},{replaceAll:function e(r,t){var n=w3(this),i,a,o,u,s,c,f,d,v;if(r!=null){if(i=mre(r),i&&(a=String(w3("flags"in Sre?r.flags:yre.call(r))),!~a.indexOf("g")))throw TypeError("`.replaceAll` does not allow non-global regexes");if(o=r[bre],o!==void 0)return o.call(r,n,t);if(Ere&&i)return String(n).replace(r,t)}if(u=String(n),s=String(r),s==="")return e.call(u,/(?:)/g,t);if(c=u.split(s),typeof t!="function")return c.join(String(t));for(f=c[0],d=f.length,v=1;v<c.length;v++)f+=String(t(s,d,u)),d+=s.length+c[v].length,f+=c[v];return f}})});var _3=l(()=>{var Ire=Ee();Ire("replaceAll")});var R3=l(()=>{A3();_3()});var C3=l(()=>{pu()});var T3=l((s0e,O3)=>{C3();var xre=B();O3.exports=xre});var P3=l(()=>{Ul()});var L3=l(()=>{P3()});var N3=l(()=>{Fu()});var D3=l(()=>{N3()});var U3=l((h0e,M3)=>{T3();L3();D3();var wre=sr();M3.exports=wre});var k3=l((m0e,j3)=>{x3();R3();var Are=U3();j3.exports=Are});var B3=l((y0e,F3)=>{FA();Y2();e3();v3();h3();var _re=k3();F3.exports=_re});var V3=l((q0e,$3)=>{Ux();Rw();Bw();Yw();iA();oA();uA();gA();SA();xA();AA();TA();MA();var Rre=B3();$3.exports=Rre});var G3=l((E0e,H3)=>{LI();DI();Px();var Cre=V3();H3.exports=Cre});var K3=l((b0e,z3)=>{RI();var Ore=G3();z3.exports=Ore});var Y3=l((S0e,W3)=>{var Tre=K3();W3.exports=Tre});var Q3=l(()=>{Y3()});var jd=l((w0e,X3)=>{X3.exports={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}});var J3=l(()=>{var Pre=B(),Lre=jd(),kd=wu(),Nre=fe();for(Z3 in Lre)if(Fd=Pre[Z3],Ji=Fd&&Fd.prototype,Ji&&Ji.forEach!==kd)try{Nre(Ji,"forEach",kd)}catch(e){Ji.forEach=kd}var Fd,Ji,Z3});var n_=l(()=>{var Dre=B(),e_=jd(),ea=ci(),Bd=fe(),t_=z(),$d=t_("iterator"),r_=t_("toStringTag"),Vd=ea.values;for(Jo in e_)if(Hd=Dre[Jo],Pr=Hd&&Hd.prototype,Pr){if(Pr[$d]!==Vd)try{Bd(Pr,$d,Vd)}catch(e){Pr[$d]=Vd}if(Pr[r_]||Bd(Pr,r_,Jo),e_[Jo]){for(Bt in ea)if(Pr[Bt]!==ea[Bt])try{Bd(Pr,Bt,ea[Bt])}catch(e){Pr[Bt]=ea[Bt]}}}var Hd,Pr,Bt,Jo});var o_=l(()=>{var Mre=p(),i_=B(),a_=io(),Ure=!i_.setImmediate||!i_.clearImmediate;Mre({global:!0,bind:!0,enumerable:!0,forced:Ure},{setImmediate:a_.set,clearImmediate:a_.clear})});var u_=l(()=>{var jre=p(),kre=B(),Fre=Al(),Bre=We(),s_=kre.process,$re=Bre(s_)=="process";jre({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(r){var t=$re&&s_.domain;Fre(t?t.bind(r):r)}})});var d_=l(()=>{var Vre=p(),l_=B(),Hre=si(),Gre=[].slice,zre=/MSIE .\./.test(Hre),c_=function(e){return function(r,t){var n=arguments.length>2,i=n?Gre.call(arguments,2):void 0;return e(n?function(){(typeof r=="function"?r:Function(r)).apply(this,i)}:r,t)}};Vre({global:!0,bind:!0,forced:zre},{setTimeout:c_(l_.setTimeout),setInterval:c_(l_.setInterval)})});var v_=l((M0e,f_)=>{J3();n_();o_();u_();d_();dd();fd();Do();var Kre=sr();f_.exports=Kre});var es=l((U0e,p_)=>{iI();Q3();v_();var Wre=sr();p_.exports=Wre});var e5=l((ds,J_)=>{(function(e,r){if(typeof define=="function"&&define.amd)define(["module","exports"],r);else if(typeof ds<"u")r(J_,ds);else{var t={exports:{}};r(t,t.exports),e.autosize=t.exports}})(ds,function(e,r){"use strict";var t=typeof Map=="function"?new Map:function(){var s=[],c=[];return{has:function(d){return s.indexOf(d)>-1},get:function(d){return c[s.indexOf(d)]},set:function(d,v){s.indexOf(d)===-1&&(s.push(d),c.push(v))},delete:function(d){var v=s.indexOf(d);v>-1&&(s.splice(v,1),c.splice(v,1))}}}(),n=function(c){return new Event(c,{bubbles:!0})};try{new Event("test")}catch(s){n=function(f){var d=document.createEvent("Event");return d.initEvent(f,!0,!1),d}}function i(s){if(!s||!s.nodeName||s.nodeName!=="TEXTAREA"||t.has(s))return;var c=null,f=null,d=null;function v(){var b=window.getComputedStyle(s,null);b.resize==="vertical"?s.style.resize="none":b.resize==="both"&&(s.style.resize="horizontal"),b.boxSizing==="content-box"?c=-(parseFloat(b.paddingTop)+parseFloat(b.paddingBottom)):c=parseFloat(b.borderTopWidth)+parseFloat(b.borderBottomWidth),isNaN(c)&&(c=0),y()}function q(b){{var A=s.style.width;s.style.width="0px",s.offsetWidth,s.style.width=A}s.style.overflowY=b}function h(b){for(var A=[];b&&b.parentNode&&b.parentNode instanceof Element;)b.parentNode.scrollTop&&A.push({node:b.parentNode,scrollTop:b.parentNode.scrollTop}),b=b.parentNode;return A}function m(){if(s.scrollHeight!==0){var b=h(s),A=document.documentElement&&document.documentElement.scrollTop;s.style.height="",s.style.height=s.scrollHeight+c+"px",f=s.clientWidth,b.forEach(function(O){O.node.scrollTop=O.scrollTop}),A&&(document.documentElement.scrollTop=A)}}function y(){m();var b=Math.round(parseFloat(s.style.height)),A=window.getComputedStyle(s,null),O=A.boxSizing==="content-box"?Math.round(parseFloat(A.height)):s.offsetHeight;if(O<b?A.overflowY==="hidden"&&(q("scroll"),m(),O=A.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(s,null).height)):s.offsetHeight):A.overflowY!=="hidden"&&(q("hidden"),m(),O=A.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(s,null).height)):s.offsetHeight),d!==O){d=O;var j=n("autosize:resized");try{s.dispatchEvent(j)}catch(k){}}}var E=function(){s.clientWidth!==f&&y()},_=function(b){window.removeEventListener("resize",E,!1),s.removeEventListener("input",y,!1),s.removeEventListener("keyup",y,!1),s.removeEventListener("autosize:destroy",_,!1),s.removeEventListener("autosize:update",y,!1),Object.keys(b).forEach(function(A){s.style[A]=b[A]}),t.delete(s)}.bind(s,{height:s.style.height,resize:s.style.resize,overflowY:s.style.overflowY,overflowX:s.style.overflowX,wordWrap:s.style.wordWrap});s.addEventListener("autosize:destroy",_,!1),"onpropertychange"in s&&"oninput"in s&&s.addEventListener("keyup",y,!1),window.addEventListener("resize",E,!1),s.addEventListener("input",y,!1),s.addEventListener("autosize:update",y,!1),s.style.overflowX="hidden",s.style.wordWrap="break-word",t.set(s,{destroy:_,update:y}),v()}function a(s){var c=t.get(s);c&&c.destroy()}function o(s){var c=t.get(s);c&&c.update()}var u=null;typeof window>"u"||typeof window.getComputedStyle!="function"?(u=function(c){return c},u.destroy=function(s){return s},u.update=function(s){return s}):(u=function(c,f){return c&&Array.prototype.forEach.call(c.length?c:[c],function(d){return i(d,f)}),c},u.destroy=function(s){return s&&Array.prototype.forEach.call(s.length?s:[s],a),s},u.update=function(s){return s&&Array.prototype.forEach.call(s.length?s:[s],o),s}),r.default=u,e.exports=r.default})});var ane={};If(ane,{SprigAPI:()=>zn,sprig:()=>Ef});module.exports=lR(ane);var Af={test:"test"},sa="pageUrl",Kt={ENVIRONMENT_ID:"x-ul-environment-id",PARTNER_ANONYMOUS_ID:"x-ul-anonymous-id",USER_ID:"x-ul-user-id",VISITOR_ID:"x-ul-visitor-id",INSTALLATION_METHOD:"x-ul-installation-method"},qr={NPM:"web-npm",GTM:"web-gtm",SEGMENT:"web-segment",SNIPPET:"web-snippet"},Ze="ul-app",x={CUSTOM_STYLE_TAG_ID:"ul-custom-style",CARD_CONTAINER_CLASS:"ul-card__container",VIDEO_CARD_CLASS:"ul-card--video",CLOSE_CONTAINER_CLASS:"close-container",CLOSE_BUTTON_CLASS:"close-btn",LIKERT_NUMBER_CLASS:"likert-number",NPS_NUMBER_CLASS:"nps-number",CHOICE_CLASS:"choice",CHOICE_LABEL_CLASS:"select-label",CHOICE_CHECKBOX_CLASS:"select-checkbox",CHOICE_RADIO_CLASS:"select-radio",CHOICE_GROUP_CLASS:"ul-card__choices",CONSENT_LEGAL_NAME_INPUT:"ul-consent-legal__name-input",OPEN_TEXT_INPUT:"ul-card-text__input",DESKTOP_SUFFIX:"--desktop",MOBILE_SUFFIX:"--mobile",QUESTION_HEADER_CLASS:"ul-question",CAPTION_CLASS:"ul-caption",FADE_IN_CLASS:"fade-in-transition",CARD_MAIN_CONTENT:"ul-card-main-content",LOADING_SPINNER_CONTAINER:"ul-loading-spinner-container",LOADING_SPINNER:"ul-loading-spinner",LOADING_SPINNER_FIRST:"first",LOADING_SPINNER_SECOND:"second",LOADING_SPINNER_THIRD:"third",LOADING_SPINNER_FOURTH:"fourth",INACTIVE_BUTTON:"ul-button-inactive",CHECKMARK_BUTTON:"ul-button-checkmark",LEFT_ALIGN_BUTTON:"ul-button-left-align"},Er="#e6e6e6",xt="#bd282a";var _f=500,qs=1030,qe=(e,r)=>{let t=r?x.MOBILE_SUFFIX:x.DESKTOP_SUFFIX;return[e+t,e]},ge=(e,r)=>[e,`${e}__${r}`],Rf=["ios","android"],Wt="!email",ua="View Prototype",Cf="View Document";var Wbe=oa(es());var Gd={};If(Gd,{disable:()=>Qre,enable:()=>Yre});var g_=()=>{try{return window.parent.Intercom}catch(e){}},Yre=()=>{let e=g_();!e||(e.ul_wasVisible&&e("update",{hide_default_launcher:!1}),delete e.ul_wasVisible)},Qre=()=>{let e=g_();!e||(e.ul_wasVisible=!!document.querySelector("iframe.intercom-launcher-frame"),e.ul_wasVisible&&e("update",{hide_default_launcher:!0}))};var h_=[Gd],Lr=class{static disable(){h_.forEach(r=>r.disable())}static enable(){h_.forEach(r=>r.enable())}};var Xe={searchParams:"URLSearchParams"in self,iterable:"Symbol"in self&&"iterator"in Symbol,blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self};function Xre(e){return e&&DataView.prototype.isPrototypeOf(e)}Xe.arrayBuffer&&(m_=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],q_=ArrayBuffer.isView||function(e){return e&&m_.indexOf(Object.prototype.toString.call(e))>-1});var m_,q_;function ra(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function E_(e){return typeof e!="string"&&(e=String(e)),e}function Kd(e){var r={next:function(){var t=e.shift();return{done:t===void 0,value:t}}};return Xe.iterable&&(r[Symbol.iterator]=function(){return r}),r}function _e(e){this.map={},e instanceof _e?e.forEach(function(r,t){this.append(t,r)},this):Array.isArray(e)?e.forEach(function(r){this.append(r[0],r[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(r){this.append(r,e[r])},this)}_e.prototype.append=function(e,r){e=ra(e),r=E_(r);var t=this.map[e];this.map[e]=t?t+", "+r:r};_e.prototype.delete=function(e){delete this.map[ra(e)]};_e.prototype.get=function(e){return e=ra(e),this.has(e)?this.map[e]:null};_e.prototype.has=function(e){return this.map.hasOwnProperty(ra(e))};_e.prototype.set=function(e,r){this.map[ra(e)]=E_(r)};_e.prototype.forEach=function(e,r){for(var t in this.map)this.map.hasOwnProperty(t)&&e.call(r,this.map[t],t,this)};_e.prototype.keys=function(){var e=[];return this.forEach(function(r,t){e.push(t)}),Kd(e)};_e.prototype.values=function(){var e=[];return this.forEach(function(r){e.push(r)}),Kd(e)};_e.prototype.entries=function(){var e=[];return this.forEach(function(r,t){e.push([t,r])}),Kd(e)};Xe.iterable&&(_e.prototype[Symbol.iterator]=_e.prototype.entries);function zd(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function b_(e){return new Promise(function(r,t){e.onload=function(){r(e.result)},e.onerror=function(){t(e.error)}})}function Zre(e){var r=new FileReader,t=b_(r);return r.readAsArrayBuffer(e),t}function Jre(e){var r=new FileReader,t=b_(r);return r.readAsText(e),t}function ete(e){for(var r=new Uint8Array(e),t=new Array(r.length),n=0;n<r.length;n++)t[n]=String.fromCharCode(r[n]);return t.join("")}function y_(e){if(e.slice)return e.slice(0);var r=new Uint8Array(e.byteLength);return r.set(new Uint8Array(e)),r.buffer}function S_(){return this.bodyUsed=!1,this._initBody=function(e){this._bodyInit=e,e?typeof e=="string"?this._bodyText=e:Xe.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Xe.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Xe.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Xe.arrayBuffer&&Xe.blob&&Xre(e)?(this._bodyArrayBuffer=y_(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Xe.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||q_(e))?this._bodyArrayBuffer=y_(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||(typeof e=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Xe.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Xe.blob&&(this.blob=function(){var e=zd(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?zd(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(Zre)}),this.text=function(){var e=zd(this);if(e)return e;if(this._bodyBlob)return Jre(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(ete(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Xe.formData&&(this.formData=function(){return this.text().then(nte)}),this.json=function(){return this.text().then(JSON.parse)},this}var rte=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function tte(e){var r=e.toUpperCase();return rte.indexOf(r)>-1?r:e}function Fn(e,r){r=r||{};var t=r.body;if(e instanceof Fn){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,r.headers||(this.headers=new _e(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!t&&e._bodyInit!=null&&(t=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=r.credentials||this.credentials||"same-origin",(r.headers||!this.headers)&&(this.headers=new _e(r.headers)),this.method=tte(r.method||this.method||"GET"),this.mode=r.mode||this.mode||null,this.signal=r.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&t)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(t)}Fn.prototype.clone=function(){return new Fn(this,{body:this._bodyInit})};function nte(e){var r=new FormData;return e.trim().split("&").forEach(function(t){if(t){var n=t.split("="),i=n.shift().replace(/\+/g," "),a=n.join("=").replace(/\+/g," ");r.append(decodeURIComponent(i),decodeURIComponent(a))}}),r}function ite(e){var r=new _e,t=e.replace(/\r?\n[\t ]+/g," ");return t.split(/\r?\n/).forEach(function(n){var i=n.split(":"),a=i.shift().trim();if(a){var o=i.join(":").trim();r.append(a,o)}}),r}S_.call(Fn.prototype);function Jr(e,r){r||(r={}),this.type="default",this.status=r.status===void 0?200:r.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in r?r.statusText:"OK",this.headers=new _e(r.headers),this.url=r.url||"",this._initBody(e)}S_.call(Jr.prototype);Jr.prototype.clone=function(){return new Jr(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new _e(this.headers),url:this.url})};Jr.error=function(){var e=new Jr(null,{status:0,statusText:""});return e.type="error",e};var ate=[301,302,303,307,308];Jr.redirect=function(e,r){if(ate.indexOf(r)===-1)throw new RangeError("Invalid status code");return new Jr(null,{status:r,headers:{location:e}})};var $t=self.DOMException;try{new $t}catch(e){$t=function(r,t){this.message=r,this.name=t;var n=Error(r);this.stack=n.stack},$t.prototype=Object.create(Error.prototype),$t.prototype.constructor=$t}function I_(e,r){return new Promise(function(t,n){var i=new Fn(e,r);if(i.signal&&i.signal.aborted)return n(new $t("Aborted","AbortError"));var a=new XMLHttpRequest;function o(){a.abort()}a.onload=function(){var u={status:a.status,statusText:a.statusText,headers:ite(a.getAllResponseHeaders()||"")};u.url="responseURL"in a?a.responseURL:u.headers.get("X-Request-URL");var s="response"in a?a.response:a.responseText;t(new Jr(s,u))},a.onerror=function(){n(new TypeError("Network request failed"))},a.ontimeout=function(){n(new TypeError("Network request failed"))},a.onabort=function(){n(new $t("Aborted","AbortError"))},a.open(i.method,i.url,!0),i.credentials==="include"?a.withCredentials=!0:i.credentials==="omit"&&(a.withCredentials=!1),"responseType"in a&&Xe.blob&&(a.responseType="blob"),i.headers.forEach(function(u,s){a.setRequestHeader(s,u)}),i.signal&&(i.signal.addEventListener("abort",o),a.onreadystatechange=function(){a.readyState===4&&i.signal.removeEventListener("abort",o)}),a.send(typeof i._bodyInit>"u"?null:i._bodyInit)})}I_.polyfill=!0;self.fetch||(self.fetch=I_,self.Headers=_e,self.Request=Fn,self.Response=Jr);var Wd=class{constructor(r){this.promise=new Promise((t,n)=>{this.payload=r,this.reject=n,this.resolve=t})}resolveRequest(r){this.resolve(r)}},x_=Wd;function Bn(e,r){return new Promise(function(t){setTimeout(t.bind(null,r),e)})}var w_={RATELIMIT_RESET_DEFAULT:10};var __=!1,R_="",rs=!1,ts=[];function ote(e){return e._config&&e._config.installationMethod?e._config.installationMethod:e._gtm?qr.GTM:e._segment?qr.SEGMENT:qr.SNIPPET}function ns(e){__=!0,R_=e}function ta(e={}){let r={"Content-Type":"application/json","userleap-platform":"web","x-ul-sdk-version":"2.16.8"};if(e.envId&&(r[Kt.ENVIRONMENT_ID]=e.envId),e.token&&(r.Authorization="Bearer "+e.token),e.userId&&(r[Kt.USER_ID]=e.userId),e.visitorId&&(r[Kt.VISITOR_ID]=e.visitorId),e.partnerAnonymousId&&(r[Kt.PARTNER_ANONYMOUS_ID]=e.partnerAnonymousId),e.mobileHeadersJSON){let t=JSON.parse(e.mobileHeadersJSON);Object.assign(r,t)}return r[Kt.INSTALLATION_METHOD]=ote(e),e.locale&&(r["accept-language"]=e.locale),r}async function A_(e,r,t){if(e)return{status:429};{let n=new x_(t);return ts.push(n),n.promise}}async function ir(e,r,t=0,n=!1,i=!1){let a={url:e,options:r,attempt:t,shouldDropOnRateLimit:n};if(rs&&!i)return A_(n,i,a);let o={ok:!1,reportError:!1};if(__)return console.log(`UserLeap - ${R_}`),o;try{r.headers=Object.assign(ta(),r.headers);let u=await fetch(e,r);if(u.status===429)if(!rs&&!n||i){rs=!0;let c=u.headers.has("ratelimit-reset")?Number(u.headers.get("ratelimit-reset")):w_.RATELIMIT_RESET_DEFAULT;return Bn(c*1e3).then(async()=>ir(e,r,0,n,!0))}else return A_(n,!1,a);if(rs=!1,ts.length&&(ts.map(s=>{let{url:c,options:f,attempt:d,shouldDropOnRateLimit:v}=s.payload;ir(c,f,d,v).then(q=>{s.resolveRequest(q)})}),ts=[]),u.ok){if(u.status===249)return ns(),o;let s=await u.text();try{return s&&s!=="OK"&&(u.json=JSON.parse(s)),u}catch(c){return{ok:!1,reportError:!0,error:new Error(`failed parsing response json for ${e} - ${s}`)}}}return u}catch(u){let s=t+1;return s>5?{ok:!1,reportError:!1,error:u}:Bn(Math.pow(2,t)*1e3).then(()=>ir(e,r,s))}}var Vt=class{constructor(){return Vt.instance||(this._events={},Vt.instance=this),Vt.instance}subscribe(r,t){!r||!t||(this._events[r]||(this._events[r]=[]),this._events[r].push(t))}removeListener(r,t){if(!r||!t||!this._events[r])return;let n=i=>i!==t;this._events[r]=this._events[r].filter(n)}removeAllListeners(){Object.keys(this._events).map(r=>{this._events[r]=[]})}emit(r,t){if(!this._events[r]||this._events[r].length==0)return;let n=i=>{i(t)};this._events[r].forEach(n)}},C_=new Vt;Object.freeze(C_);var ue=C_;var W={SURVEY_LIFE_CYCLE:"survey.lifeCycle",SURVEY_DIMENSIONS:"survey.dimensions",SURVEY_HEIGHT:"survey.height",SURVEY_WILL_PRESENT:"survey.will.present",SURVEY_PRESENTED:"survey.presented",SURVEY_APPEARED:"survey.appeared",SURVEY_FADING_OUT:"survey.fadingOut",SURVEY_WILL_CLOSE:"survey.willClose",SURVEY_CLOSED:"survey.closed",SDK_READY:"sdk.ready",CLOSE_SURVEY_ON_OVERLAY_CLICK:"close.survey.overlayClick",VISITOR_ID_UPDATED:"visitor.id.updated",DATA:{DISMISS_REASONS:mr,SURVEY_ID:"survey.id"}},Ie={name:{VERIFY_VIEW_VERSION:"verify.view.version",CURRENT_QUESTION:"survey.question",VIEW_PROTOTYPE_CLICK:"question.prototype.click",VIEW_AGREEMENT_CLICK:"question.agreement.click",RECORDED_TASK_START:"recorded.task.start",RECORDED_TASK_PERMISSION_SCREEN:"recorded.task.permission.screen"},data:{VIEW_VERSION:"view.version",QUESTION_ID:"qid",PROPS:"props"}},mr={CLOSED:"close.click",COMPLETE:"survey.completed",PAGE_CHANGE:"page.change",API:"api",OVERRIDE:"override"},Nr={READY:"ready",NO_SURVEY:"no survey"};window.UserLeap&&window.Sprig&&(window.Sprig._gtm?window.Sprig=window.UserLeap:window.UserLeap=window.Sprig);window.UserLeap||(window.UserLeap=window.Sprig);window.Sprig||(window.Sprig=window.UserLeap);var ste="rgba(255,255,255, 0.95)",ute="rgba(0,0,0,0.9)";function Yd(){UserLeap.container=document.createElement("div"),UserLeap.container.className="ul-container",document.body.appendChild(UserLeap.container)}function Qd(e){let r=UserLeap.container;if(!!r)try{document.body.removeChild(r),UserLeap.container=null,ue.emit(W.SURVEY_LIFE_CYCLE,{state:"dismissed"}),ue.emit(W.SURVEY_CLOSED,{name:W.SURVEY_CLOSED,initiator:e})}catch(t){console.warn(`[Sprig] (ERR-412) Error removing UserLeap container by ${e} `+r),UserLeap.reportError("dismissActiveSurvey",t)}}function Xd(){ue.subscribe(W.SURVEY_WILL_CLOSE,({initiator:e})=>{Qd(e)})}function O_(e,r){let t="360px",n="0px",i="ul-frame";Yd();let a=document.createElement("iframe");a.id=i,a.setAttribute("title","Sprig User Feedback Dialog");let o=s(a,e,r);ue.subscribe(W.SURVEY_FADING_OUT,()=>{Object.assign(UserLeap.container.style,{"background-color":"rgba(0,0,0,0)"})}),Xd();function u(d,v){let h=G({},{position:"fixed",overflow:"auto",top:"0px",left:"0px",display:"none",height:"100%",width:"100%",transition:"background-color 0.3s ease-out",zIndex:2147483646}),m=v?d.overlayStyleMobile:d.overlayStyle;h["background-color"]=m==="light"?ste:ute,v||(h.margin="auto"),Object.assign(UserLeap.container.style,h)}function s(d,v,q){let h={position:"fixed",bottom:"0px",right:n,border:0,backgroundColor:"rgba(0,0,0,0)",zIndex:2147483646},m=Object.assign({},v,UserLeap),y,E=!1;return q?(UserLeap.windowDimensions&&UserLeap.windowDimensions.width?h.width=`${UserLeap.windowDimensions.width}px`:h.width="100%",UserLeap.windowDimensions&&UserLeap.windowDimensions.height?h.maxHeight=`${UserLeap.windowDimensions.height-20}px`:UserLeap.maxHeight?h.maxHeight=UserLeap.maxHeight:h.maxHeight=`${document.body.clientHeight-20}px`,["light","dark"].includes(m.overlayStyleMobile)&&(E=!0)):(h.width=t,h.maxHeight=UserLeap.maxHeight||"66vh",m.framePosition==="bottomLeft"?y={left:n}:m.framePosition==="topLeft"?y={left:n,top:"0px"}:m.framePosition==="topRight"?y={top:"0px"}:m.framePosition==="center"&&(E=!0,y={margin:"auto",position:"static"},h.maxHeight=null)),E&&u(m,q),Object.assign(d.style,h,y),E}a.setHeight=d=>{parseInt(a.style.height)!=d&&(a.style.height=`${d}px`,ue.emit(W.SURVEY_HEIGHT,{name:W.SURVEY_HEIGHT,contentFrameHeight:a.clientHeight}))},UserLeap.container.appendChild(a),e&&(r?e.exitOnOverlayClickMobile:e.exitOnOverlayClick)&&(UserLeap.container.onclick=()=>{ue.emit(W.CLOSE_SURVEY_ON_OVERLAY_CLICK)}),ue.emit(W.SURVEY_LIFE_CYCLE,{state:"presented"}),ue.emit(W.SURVEY_PRESENTED,{name:W.SURVEY_PRESENTED});let c=a.contentWindow.document;c.open("text/html","replace"),c.write('<!doctype html><head></head><body style="background-color: rgba(0,0,0,0)"></body></html>'),c.close();let f=c.head;return{frameId:i,contentWinDocHead:f,contentWindow:a.contentWindow,hasOverlay:o,iframe:a}}var Z0e=oa(es()),T_=class{constructor(e,r){this.ul=e,this.paused=!1,this.queue=[],this.flush(r)}flush(e){let r=e.length;if(r)for(let t=0;t<r;t++)this.push(e[t])}isPaused(){return this.paused}pause(){this.paused=!0}unpause(){this.paused=!1;let e=this.queue.slice();this.empty(),this.flush(e)}push(e){if(this.paused)this.queue.push(e);else if(e instanceof Function)e();else{let r=Array.prototype.slice.call(e,1),t=e[0],n=this.ul[t];n&&n instanceof Function?this.ul[t].apply(this.ul,r):t&&console.warn("[Sprig] (ERR-100) No valid UserLeap action called",t)}}perform(e){if(this.paused){let r,t=new Promise(function(n){r=function(){n(e())}});return this.queue.push(r),t}else return e()}empty(){this.queue.length=0}};var lte=1,is=(e,r)=>{let t=e.createElement("style");t.type="text/css",t.textContent=r,t.id=x.CUSTOM_STYLE_TAG_ID,e.head.appendChild(t)},as=e=>{let r=e.querySelector(`.${x.CARD_CONTAINER_CLASS}`),t=r?r.scrollHeight:600,n=r&&r.parentElement?r.parentElement.clientHeight-r.clientHeight:0;return t+n+lte};var os,cte=new Uint8Array(16);function Zd(){if(!os&&(os=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!os))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return os(cte)}var P_=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function dte(e){return typeof e=="string"&&P_.test(e)}var L_=dte;var Te=[];for(ss=0;ss<256;++ss)Te.push((ss+256).toString(16).substr(1));var ss;function fte(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(Te[e[r+0]]+Te[e[r+1]]+Te[e[r+2]]+Te[e[r+3]]+"-"+Te[e[r+4]]+Te[e[r+5]]+"-"+Te[e[r+6]]+Te[e[r+7]]+"-"+Te[e[r+8]]+Te[e[r+9]]+"-"+Te[e[r+10]]+Te[e[r+11]]+Te[e[r+12]]+Te[e[r+13]]+Te[e[r+14]]+Te[e[r+15]]).toLowerCase();if(!L_(t))throw TypeError("Stringified UUID is invalid");return t}var N_=fte;function vte(e,r,t){e=e||{};var n=e.random||(e.rng||Zd)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,r){t=t||0;for(var i=0;i<16;++i)r[t+i]=n[i];return r}return N_(n)}var Et=vte;function Dr({"userleap-platform":e}){return e!=="web"}var Pbe=oa(es());function g(e,r){for(var t=[],n=[],i=arguments.length;i-- >2;)t.push(arguments[i]);for(;t.length;){var a=t.pop();if(a&&a.pop)for(i=a.length;i--;)t.push(a[i]);else a!=null&&a!==!0&&a!==!1&&n.push(a)}return typeof e=="function"?e(r||{},n):{nodeName:e,attributes:r||{},children:n,key:r&&r.key}}function D_(e,r,t,n){var i=[].map,a=n&&n.children[0]||null,o=a&&v(a),u=[],s,c=!0,f=y(e),d=b([],f,y(r));return m(),d;function v(S){return{nodeName:S.nodeName.toLowerCase(),attributes:{},children:i.call(S.childNodes,function(R){return R.nodeType===3?R.nodeValue:v(R)})}}function q(S){return typeof S=="function"?q(S(f,d)):S!=null?S:""}function h(){s=!s;var S=q(t);for(n&&!s&&(a=Q(n,a,o,o=S)),c=!1;u.length;)u.pop()()}function m(){s||(s=!0,setTimeout(h))}function y(S,R){var I={};for(var C in S)I[C]=S[C];for(var C in R)I[C]=R[C];return I}function E(S,R,I){var C={};return S.length?(C[S[0]]=S.length>1?E(S.slice(1),R,I[S[0]]):R,y(I,C)):R}function _(S,R){for(var I=0;I<S.length;)R=R[S[I++]];return R}function b(S,R,I){for(var C in I)typeof I[C]=="function"?function(X,ve){I[X]=function(ce){var ye=ve(ce);return typeof ye=="function"&&(ye=ye(_(S,f),I)),ye&&ye!==(R=_(S,f))&&!ye.then&&m(f=E(S,y(R,ye),f)),ye}}(C,I[C]):b(S.concat(C),R[C]=y(R[C]),I[C]=y(I[C]));return I}function A(S){return S?S.key:null}function O(S){return S.currentTarget.events[S.type](S)}function j(S,R,I,C,X){if(R!=="key")if(R==="style")if(typeof I=="string")S.style.cssText=I;else{typeof C=="string"&&(C=S.style.cssText="");for(var ve in y(C,I)){var ce=I==null||I[ve]==null?"":I[ve];ve[0]==="-"?S.style.setProperty(ve,ce):S.style[ve]=ce}}else R[0]==="o"&&R[1]==="n"?(R=R.slice(2),S.events?C||(C=S.events[R]):S.events={},S.events[R]=I,I?C||S.addEventListener(R,O):S.removeEventListener(R,O)):R in S&&R!=="list"&&R!=="type"&&R!=="draggable"&&R!=="spellcheck"&&R!=="translate"&&!X?S[R]=I==null?"":I:I!=null&&I!==!1&&S.setAttribute(R,I),(I==null||I===!1)&&S.removeAttribute(R)}function k(S,R){var I=typeof S=="string"||typeof S=="number"?document.createTextNode(S):(R=R||S.nodeName==="svg")?document.createElementNS("http://www.w3.org/2000/svg",S.nodeName):document.createElement(S.nodeName),C=S.attributes;if(C){C.oncreate&&u.push(function(){C.oncreate(I)});for(var X=0;X<S.children.length;X++)I.appendChild(k(S.children[X]=q(S.children[X]),R));for(var ve in C)j(I,ve,C[ve],null,R)}return I}function L(S,R,I,C){for(var X in y(R,I))I[X]!==(X==="value"||X==="checked"?S[X]:R[X])&&j(S,X,I[X],R[X],C);var ve=c?I.oncreate:I.onupdate;ve&&u.push(function(){ve(S,R)})}function Y(S,R){var I=R.attributes;if(I){for(var C=0;C<R.children.length;C++)Y(S.childNodes[C],R.children[C]);I.ondestroy&&I.ondestroy(S)}return S}function T(S,R,I){function C(){S.removeChild(Y(R,I))}var X=I.attributes&&I.attributes.onremove;X?X(R,C):C()}function Q(S,R,I,C,X){if(C!==I)if(I==null||I.nodeName!==C.nodeName){var ve=k(C,X);S.insertBefore(ve,R),I!=null&&T(S,R,I),R=ve}else if(I.nodeName==null)R.nodeValue=C;else{L(R,I.attributes,C.attributes,X=X||C.nodeName==="svg");for(var ce={},ye={},Ke=[],je=I.children,ke=C.children,M=0;M<je.length;M++){Ke[M]=R.childNodes[M];var V=A(je[M]);V!=null&&(ce[V]=[Ke[M],je[M]])}for(var M=0,Z=0;Z<ke.length;){var V=A(je[M]),de=A(ke[Z]=q(ke[Z]));if(ye[V]){M++;continue}if(de!=null&&de===A(je[M+1])){V==null&&T(R,Ke[M],je[M]),M++;continue}if(de==null||c)V==null&&(Q(R,Ke[M],je[M],ke[Z],X),Z++),M++;else{var Kn=ce[de]||[];V===de?(Q(R,Kn[0],Kn[1],ke[Z],X),M++):Kn[0]?Q(R,R.insertBefore(Kn[0],Ke[M]),Kn[1],ke[Z],X):Q(R,Ke[M],null,ke[Z],X),ye[de]=ke[Z],Z++}}for(;M<je.length;)A(je[M])==null&&T(R,Ke[M],je[M]),M++;for(var M in ce)ye[M]||T(R,ce[M][0],ce[M][1])}return R}}var pte=Array.isArray;function F(e){var r,t,n=typeof e,i="";if(n==="string"||n==="number")return e||"";if(pte(e)&&e.length>0)for(r=0,t=e.length;r<t;r++)(n=F(e[r]))!==""&&(i+=(i&&" ")+n);else for(r in e)e.hasOwnProperty(r)&&e[r]&&(i+=(i&&" ")+r);return i}var Re={CONSENT_LEGAL:"consentlegal",LIKERT:"likert",MULTIPLE_CHOICE:"multiplechoice",MULTIPLE_SELECT:"multipleselect",NPS:"nps",OPEN:"open",TEXT_URL_PROMPT:"texturlprompt",THANKS:"thanks",VIDEO_VOICE:"videovoice",RECORDED_TASK:"recordedtask",UPLOADING:"uploading"};var M_=()=>g("svg",{width:"100",height:"13",viewBox:"0 0 100 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",alt:"Powered by Sprig"},g("path",{d:"M3.0369 0.839981H0.0249023V8.99998H1.3209V6.53998H2.8569C4.8969 6.53998 6.2409 5.37598 6.2409 3.62398C6.2409 1.95598 4.9689 0.839981 3.0369 0.839981ZM3.0009 5.35198H1.3209V2.02798H3.0009C4.1769 2.02798 4.9689 2.67598 4.9689 3.62398C4.9689 4.65598 4.1769 5.35198 3.0009 5.35198Z",fill:"#5D696F"}),g("path",{d:"M9.90653 3.21598C8.15453 3.21598 6.90653 4.45198 6.90653 6.17998C6.90653 7.90798 8.15453 9.14398 9.90653 9.14398C11.6585 9.14398 12.9065 7.90798 12.9065 6.17998C12.9065 4.45198 11.6585 3.21598 9.90653 3.21598ZM9.90653 8.01598C8.88653 8.01598 8.15453 7.23598 8.15453 6.17998C8.15453 5.11198 8.88653 4.34398 9.90653 4.34398C10.9265 4.34398 11.6585 5.11198 11.6585 6.17998C11.6585 7.23598 10.9265 8.01598 9.90653 8.01598Z",fill:"#5D696F"}),g("path",{d:"M20.9631 3.35998L19.7391 7.11598L18.3951 3.35998H17.3271L15.9831 7.12798L14.7591 3.35998H13.4151L15.4431 8.99998H16.5351L17.8671 5.08798L19.1871 8.99998H20.2791L22.3071 3.35998H20.9631Z",fill:"#5D696F"}),g("path",{d:"M25.7246 3.21598C24.0086 3.21598 22.8206 4.51198 22.8206 6.17998C22.8206 7.85998 24.0206 9.14398 25.7966 9.14398C27.0206 9.14398 28.0166 8.54398 28.3766 7.52398H27.0086C26.7806 7.88398 26.3606 8.05198 25.8086 8.05198C24.7526 8.05198 24.2126 7.40398 24.0926 6.55198H28.5206C28.7606 4.64398 27.5966 3.21598 25.7246 3.21598ZM25.7366 4.27198C26.6126 4.27198 27.2126 4.76398 27.2846 5.68798H24.1166C24.2606 4.89598 24.8006 4.27198 25.7366 4.27198Z",fill:"#5D696F"}),g("path",{d:"M31.1297 4.12798V3.35998H29.8817V8.99998H31.1297V5.44798C31.6337 4.78798 32.3177 4.45198 33.2177 4.41598V3.23998C32.3537 3.23998 31.6457 3.56398 31.1297 4.12798Z",fill:"#5D696F"}),g("path",{d:"M36.8222 3.21598C35.1062 3.21598 33.9182 4.51198 33.9182 6.17998C33.9182 7.85998 35.1182 9.14398 36.8942 9.14398C38.1182 9.14398 39.1142 8.54398 39.4742 7.52398H38.1062C37.8782 7.88398 37.4582 8.05198 36.9062 8.05198C35.8502 8.05198 35.3102 7.40398 35.1902 6.55198H39.6182C39.8582 4.64398 38.6942 3.21598 36.8222 3.21598ZM36.8342 4.27198C37.7102 4.27198 38.3102 4.76398 38.3822 5.68798H35.2142C35.3582 4.89598 35.8982 4.27198 36.8342 4.27198Z",fill:"#5D696F"}),g("path",{d:"M45.4886 0.47998V3.80398C45.0086 3.43198 44.3966 3.21598 43.6766 3.21598C42.0926 3.21598 40.8206 4.53598 40.8206 6.16798C40.8206 7.82398 42.0926 9.14398 43.6766 9.14398C44.3966 9.14398 45.0086 8.92798 45.4886 8.54398V8.99998H46.7246V0.47998H45.4886ZM43.8566 8.01598C42.8246 8.01598 42.0686 7.17598 42.0686 6.16798C42.0686 5.17198 42.8246 4.34398 43.8566 4.34398C44.4806 4.34398 45.0686 4.55998 45.4886 5.15998V7.18798C45.0686 7.79998 44.4806 8.01598 43.8566 8.01598Z",fill:"#5D696F"}),g("path",{d:"M54.6797 3.21598C53.9597 3.21598 53.3477 3.43198 52.8797 3.79198V0.47998H51.6317V8.99998H52.8797V8.55598C53.3477 8.92798 53.9597 9.14398 54.6797 9.14398C56.2637 9.14398 57.5477 7.82398 57.5477 6.16798C57.5477 4.53598 56.2637 3.21598 54.6797 3.21598ZM54.4997 8.01598C53.8757 8.01598 53.2997 7.79998 52.8797 7.21198V5.13598C53.2997 4.54798 53.8757 4.34398 54.4997 4.34398C55.5437 4.34398 56.2997 5.17198 56.2997 6.16798C56.2997 7.17598 55.5437 8.01598 54.4997 8.01598Z",fill:"#5D696F"}),g("path",{d:"M63.3347 3.34798L61.3907 7.76398L59.2667 3.34798H57.9347L60.8147 9.08398L59.6267 11.784H60.9347L64.6547 3.34798H63.3347Z",fill:"#5D696F"}),g("path",{d:"M71.1466 4.34661C69.8092 4.05038 69.131 3.53001 69.131 2.80065C69.131 2.04705 69.8546 1.47822 70.8142 1.47822C71.8034 1.47822 72.5496 2.10339 72.5496 2.9321V2.99813H73.9165V2.9321C73.9165 1.41764 72.5883 0.272705 70.8271 0.272705C69.9784 0.272705 69.2009 0.533191 68.6379 1.0057C68.3584 1.23619 68.1339 1.52487 67.9805 1.8511C67.8271 2.17733 67.7486 2.53303 67.7506 2.89273C67.7451 3.22255 67.8137 3.54949 67.9515 3.84994C68.0894 4.15038 68.293 4.41686 68.5478 4.63012C69.0218 5.04266 69.6945 5.34798 70.5463 5.5388C71.9806 5.85502 72.7078 6.39296 72.7078 7.13686C72.7078 7.94316 71.9156 8.55076 70.8682 8.55076C69.7804 8.55076 68.9599 7.87531 68.9599 6.97996V6.91393H67.5918V6.97996C67.5918 8.56348 68.9942 9.75688 70.8535 9.75688C71.7426 9.75688 72.5588 9.48731 73.1518 8.99662C73.446 8.75831 73.6827 8.4581 73.8445 8.1179C74.0063 7.7777 74.0891 7.40611 74.087 7.03024C74.087 5.6854 73.0991 4.78217 71.1466 4.34661Z",fill:"#5D696F"}),g("path",{d:"M78.7986 2.50806C78.2874 2.50175 77.7823 2.6176 77.3263 2.84576C76.8703 3.07391 76.4768 3.40759 76.1795 3.81837V2.66738H74.8789V12.0752H76.1795V8.48716C76.4768 8.8979 76.8703 9.23152 77.3263 9.45957C77.7824 9.68763 78.2875 9.80335 78.7986 9.79687C80.8167 9.79687 82.3381 8.23031 82.3381 6.15246C82.3381 4.07462 80.8167 2.50806 78.7986 2.50806ZM80.9835 6.42264C80.9316 6.9629 80.6921 7.46879 80.3056 7.8544C79.919 8.24001 79.4093 8.48156 78.863 8.53804C78.1369 8.61074 77.4605 8.40295 76.9583 7.95407C76.4561 7.50518 76.1795 6.86365 76.1795 6.15246C76.1795 4.7846 77.2122 3.75295 78.5815 3.75295C79.2904 3.75295 79.9306 4.02191 80.3776 4.51018C80.8387 5.01116 81.054 5.69025 80.9835 6.42264Z",fill:"#5D696F"}),g("path",{d:"M98.2908 2.6692V3.80747C97.6776 2.97875 96.7302 2.50806 95.6583 2.50806C93.6482 2.50806 92.1323 4.04615 92.1323 6.08582C92.1323 8.1255 93.6482 9.66299 95.6583 9.66299C96.7345 9.66299 97.6819 9.19714 98.2908 8.37691V8.55198C98.2908 9.96891 97.3906 10.8843 95.9974 10.8843C95.0561 10.8843 94.2718 10.4766 93.8996 9.79384L93.8806 9.7587H92.5389L92.5695 9.84654C92.7961 10.514 93.2392 11.0889 93.8303 11.4822C94.4233 11.8723 95.1726 12.0783 95.9974 12.0783C97.0552 12.0783 97.9554 11.7451 98.6017 11.1157C99.2481 10.4862 99.5915 9.6012 99.5915 8.56773V2.6692H98.2908ZM97.5611 7.842C97.0092 8.36418 96.2225 8.58348 95.4001 8.44294C94.9132 8.35796 94.4664 8.12184 94.1245 7.76889C93.7827 7.41593 93.5636 6.96452 93.4992 6.48019C93.3833 5.66541 93.631 4.89364 94.1786 4.36418C94.6383 3.92741 95.2542 3.68788 95.8919 3.69782C96.0464 3.69795 96.2006 3.71031 96.3531 3.73477C97.3459 3.89349 98.1314 4.70403 98.2632 5.71024C98.3749 6.53835 98.1179 7.31436 97.5611 7.842Z",fill:"#5D696F"}),g("path",{d:"M90.705 0.0995975C90.4602 0.046773 90.2043 0.0911971 89.9925 0.223269C89.7806 0.35534 89.6299 0.564452 89.5729 0.805409C89.5159 1.04637 89.5571 1.29982 89.6877 1.51098C89.8183 1.72215 90.0277 1.87407 90.2708 1.93391C90.3415 1.94954 90.4136 1.95747 90.486 1.95754C90.72 1.9579 90.9458 1.87325 91.1206 1.71973C91.2955 1.5662 91.407 1.35452 91.4341 1.125C91.4611 0.89547 91.4017 0.664135 91.2673 0.475046C91.1329 0.285958 90.9327 0.152325 90.705 0.0995975V0.0995975Z",fill:"#5D696F"}),g("path",{d:"M89.8366 8.39143H88.715C87.9178 8.39143 87.4389 7.85531 87.4389 6.95693C87.4389 6.08096 87.8681 5.03659 88.7432 3.76444L88.7548 3.74748V3.38825L85.0271 2.86727C85.0284 2.71553 84.9886 2.56622 84.9118 2.43478C84.8351 2.30335 84.7241 2.19458 84.5905 2.11973C84.2563 1.938 83.8908 1.938 83.5879 2.11368C83.4361 2.2023 83.3122 2.33077 83.23 2.4848C83.1477 2.63884 83.1103 2.8124 83.1219 2.98618C83.1336 3.15996 83.1938 3.32714 83.2958 3.46914C83.3979 3.61114 83.5379 3.72238 83.7001 3.79049L82.5405 9.63753H83.8283L84.8977 4.08551L86.9115 4.42111C86.3701 5.38007 86.0953 6.27421 86.0953 7.07869C86.0953 8.56347 87.0041 9.53576 88.4734 9.62965V9.63753H91.1341V2.69099H89.8366V8.39143Z",fill:"#5D696F"}));var U_={CAMERA:"camera",SCREEN:"screen"},Mr={VIDEO:"video",AUDIO:"audio",SCREEN:"screen"},Pe={PERMISSION_STATUS:"permission.status",AV_PERMISSION:"av.permission",SCREEN_PERMISSION:"screen.permission",BEGIN_RECORDING:"begin.recording",START_TASK:"start.task",FINISH_TASK:"finish.task"},H={PERMISSION_DESCRIPTORS:"permission.descriptors",PERMISSION_STATUS_CALLBACK:"permission.status.callback",STREAM_READY_CALLBACK:"stream.ready.callback",STREAM_CANCELLED_CALLBACK:"stream.canceled.callback",TASK_COMPLETE_CALLBACK:"task.complete.callback",TASK_RESPONSE:"task.response",TASK_STATUS:"task.status",COMPLETED:"completed",GIVEN_UP:"given.up",ABANDONED:"abandoned",RECORDING_MEDIA_TYPES:"recording.media.types",START_RECORDING_CALLBACK:"start.recording.callback",PASSTHROUGH_DATA:"passthrough.data",CURRENT_INDEX:"current.index",UPLOAD_CALLBACK:"upload.callback",PROGRESS_CALLBACK:"progress.callback"};var j_=1,us={eq(e,r){return e==r},neq(e,r){return!this.eq(e,r)},gt(e,r){return e>r},gte(e,r){return e>=r},lt(e,r){return e<r},lte(e,r){return e<=r},list_exact(e,r){return!Array.isArray(e)||!Array.isArray(r)?!1:e.slice().sort().join(",")===r.slice().sort().join(",")},list_all(e,r){return!Array.isArray(e)||!Array.isArray(r)?!1:!r.some(t=>e.indexOf(t)===-1)},list_alo(e,r){return!Array.isArray(e)||!Array.isArray(r)?!1:r.some(t=>e.indexOf(t)!=-1)}},ls=(e,r,t)=>{switch(r){case Re.VIDEO_VOICE:return e&&!e.deletedAt;case Re.OPEN:return!!t;case Re.MULTIPLE_SELECT:return t&&!!Object.keys(t).length;case Re.RECORDED_TASK:return t.taskStatus===H.COMPLETED;default:return!0}},cs=({cards:e,index:r,selectedValue:t,hasEndCard:n,hasValidAnswer:i=!0,uploadProgress:a={}})=>{if(r>=e.length||r<0)return null;let o=e[r]&&e[r].props&&e[r].props.routingOptions||[],u=null;for(let f=0;f<o.length;f++){let{comparator:d,target:v,value:q}=o[f];if(d==="answered"&&i){u=parseInt(v,10);break}else if(d==="skipped"&&!i){u=parseInt(v,10);break}else if(d==="given_up"&&t.taskStatus===H.GIVEN_UP){u=parseInt(v,10);break}else if(us[d]&&us[d](t,q)){u=parseInt(v,10);break}}let s=e.findIndex(f=>f.type===Re.UPLOADING),c;return s>0&&n?c=e.length-3:s>0||n?c=e.length-2:c=e.length-1,r>=c||u===-1||u>c?s>0&&Object.values(a).some(d=>d.isSubmitted&&!d.isComplete)?s:n?e.length-1:null:u!==null?u:r+1},gte=13,hte=e=>e.reduce((r,t)=>r.concat(r.map(n=>[...n,t])),[[]]),k_=e=>!!(Array.isArray(e)?e.length:e),mte=e=>{switch(e.type){case"multipleselect":return!e||!e.props||!e.props.options?null:e.props.options.length>gte?e.props.options.map(r=>[r.value]):hte(e.props.options.map(r=>r.value));case"multiplechoice":return!e||!e.props||!e.props.options?null:e.props.options.map(r=>r.value);case"likert":return[1,2,3,4,5];case"nps":return[0,1,2,3,4,5,6,7,8,9,10];case"videovoice":case"open":return[j_,""];case"texturlprompt":case"consentlegal":default:return[j_]}},F_=(e,r)=>{if(!e||!e.length||r>=e.length||r<0||!e[r].type||e[r].type===Re.UPLOADING)return 0;let t=e.filter(i=>i.type&&i.type!==Re.UPLOADING);if(r===t.length-1)return 1;let n={[t.length-1]:1,[-1]:0};for(let i=t.length-2;i>=r;i--){let a=t[i],o=a&&a.props&&a.props.routingOptions||[];if(o.length===0){n[i]=n[i+1]+1;continue}let u=0,s=mte(a);if(s===null)return t.length-1-r;for(let c=0;c<o.length&&s.length!==0;c++){let{comparator:f,target:d,value:v}=o[c],q=s.filter(h=>!(f==="answered"&&k_(h)||f==="skipped"&&!k_(h)||us[f]&&us[f](h,v)));if(q.length<s.length){let h=parseInt(d,10);if(h!==-1&&h<=i||h>=t.length)return t.length-1-r;u=Math.max(n[h]+1,u)}s=q}s.length>0&&(u=Math.max(n[i+1]+1,u)),n[i]=u}return n[r]};var B_=()=>e=>{let t=(e.app.deck.cards||[]).filter(A=>A.type&&A.type!==Re.UPLOADING),n=e.app.deck.index,{showSurveyBrand:i,marketingUrl:a,slugName:o,surveyId:u,viewedCardCount:s,headers:c,deck:f,border:d,viewDocument:v}=e.app,q=F_(f.cards||[],f.index),h=s+1,m=h/(h+q),y=()=>i?g("a",{style:"display: block; margin: 5px 0",href:`${a}?utm_source=survey_branding&utm_medium=website&utm_campaign=${o}&utm_content=${u}`,target:"_blank"},M_):null;if(!t||t.length===1)return g("footer",{className:"ul-footer",style:!i&&{marginBottom:"10px"}},y);let E=()=>t.length>1?g("div",{id:"ul-progress-bar-container"},g("div",{id:"ul-progress-bar-current",style:_()})):null,_=()=>{let A=v.getElementById("ul-progress-bar-container"),O=A?A.clientWidth:250,j=A?`${v.getElementById("ul-progress-bar-current").style.width.replace("px","")}`:0,k=`${parseFloat((m*O).toFixed(4))}`;return j!==k&&b(j,k),{width:`${k}px`,animation:e.app.uploadingCardViewed?"":"growRight 1s",border:`1px solid ${d||"#000"}`}},b=(A,O)=>{let j=`
|
|
3
3
|
@keyframes growRight {
|
|
4
4
|
from {
|
|
5
|
-
width: ${
|
|
5
|
+
width: ${A}px;
|
|
6
6
|
}
|
|
7
7
|
to {
|
|
8
|
-
width: ${
|
|
8
|
+
width: ${O}px;
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
`,M=v.createElement("style");M.type="text/css",v.head.appendChild(M),M.sheet.insertRule(U,M.length)};return h("footer",{className:`ul-footer ${c["userleap-platform"]==="link"?"ul-footer__link":""}`,key:n},b,m)};var Zr="ul-app",fte=({app:e},r)=>{e.running||r.destroy(Zr);let{Card:t,props:n,type:a,name:i}=e.deck.cards[e.deck.index],s=e.border,u=function(b){let _=["transitionend","webkitTransitionEnd","mozTransitionEnd"],E=!1,w=()=>{if(!E&&window.frameElement){let C=new Event("ul:frame:rendered");window.frameElement.dispatchEvent(C)}E=!0,_.forEach(C=>{b.removeEventListener(C,w)}),setTimeout(()=>r.update(Zr),300)};_.forEach(C=>{b.addEventListener(C,w)}),e.configureExitOnOverlayClick(()=>{r.close(Zr)}),r.update(Zr)},o=async()=>{await r.close(Zr)},c=b=>{b.keyCode==13&&o()},f=e.deck.cards,d=e.deck.index,v=e.fontFamily?{fontFamily:e.fontFamily.replace(";","")}:{},q=e.endCard,g=async function(b){r.app.next({data:b,completeSurvey:()=>{r.destroy(Zr)},endCard:q})};for(let b of e.answers||[])if(b.questionId===i){let _;if(a==="multiplechoice"){let E=n.options.find(({value:w})=>w===b.value);if(!E)break;_={[E.id]:E.value}}else _=b.value;g({value:_,type:a,questionId:b.questionId});break}let y=()=>["email","link"].includes(e.headers["userleap-platform"])?!1:!q||d+1!==f.length,m=()=>e.useMobileStyling?{borderColor:s}:{borderColor:s,margin:"15px"};return h("div",{className:"ul-app",id:Zr,oncreate:b=>u(b),onupdate:()=>r.update(Zr),style:v},h("div",{className:"ul-app__container"},h("div",{className:V(me(R.CARD_CONTAINER_CLASS,e.useMobileStyling)),style:m()},e.showStripes&&h("div",{className:"ul-header__container"},h("div",{className:"ul-header"},"For development purposes only")),h(t,ue(z({},n),{border:s,className:"ul-card",next:g,endCard:q,locale:e.locale,questionId:i,type:a,updateHeight:()=>r.update(Zr)})),h(D5,null)),y()&&h("div",{className:V(me(R.CLOSE_CONTAINER_CLASS,e.useMobileStyling))},h("div",{className:R.CLOSE_BUTTON_CLASS,onclick:o,onkeypress:c,role:"button","aria-label":"Close button",tabindex:0},h("svg",{width:"18px",height:"18px",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("path",{d:"M2.54964 1.78369L1.78369 2.54964L5.73405 6.5L1.78369 10.4504L2.54964 11.2163L6.5 7.26595L10.4504 11.2163L11.2163 10.4504L7.26595 6.5L11.2163 2.54964L10.4504 1.78369L6.5 5.73405L2.54964 1.78369Z",fill:"#262136"}))))))},U5=fte;var j5={styles:'html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:400}button,input,select,textarea{margin:0}html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}.ul-card{flex:1 1 auto;border-radius:2px;display:flex;flex-direction:column;font-size:17px;line-height:19px;text-align:left;margin:auto}.ul-card__container--desktop{border:2px solid #fff;box-shadow:0 0 15px rgba(0,0,0,.15)}.ul-card__container--mobile{border-width:0;box-shadow:0 0 5px rgba(0,0,0,.25);margin-top:5px}.ul-card__container{background:#ffffff;border-radius:6px;display:flex;flex-direction:column;flex-grow:1;flex:1 1 auto;font-size:17px;line-height:23px;overflow:auto;padding:20px 20px 5px;position:relative;text-align:center}.ul-card-text__button{border-radius:3px;color:#fff;font-size:15px;line-height:18px;padding:10.5px 21px;font-weight:500;border:none;cursor:pointer}.ul-card__button-wrapper{margin-top:4px;margin-bottom:3px;display:flex;justify-content:center}.ul-rich-text-body{min-height:2em}.ul-rich-text-body,.ul-rich-text-body p{margin-top:10px;margin-bottom:10px}.ul-rich-text-body li{margin:5px 0 5px 20px}.ul-rich-text-body p,.ul-rich-text-body li{font-size:15px;line-height:130.35%;letter-spacing:.02em;color:#343442;text-align:left;white-space:pre-line}.ul-rich-text-body:last-child,.ul-rich-text-body li:last-child{margin-bottom:15px}.ul-card-main-content__link,.ul-card-main-content__email{flex-grow:55;display:flex}.ul-card-main-content__web{padding-top:15px;margin-bottom:5px}.ul-question{color:#343442;display:block;font-size:20px;line-height:125%;font-weight:500;cursor:default;text-align:left}.ul-caption{flex:1 0 auto;margin-top:8px;margin-bottom:15px;font-size:15px;line-height:130.35%;letter-spacing:.02em;color:#6c6c6e;text-align:left}.ul-card__choices{margin:5px 0 0;flex:1 0;height:100%}.choice--mobile{border:2px solid #e6e6e6}.choice--desktop{border:1px solid #e6e6e6}.choice{align-items:center;color:#262136;cursor:pointer;display:flex;justify-content:flex-start;box-sizing:border-box;border-radius:3px;margin-bottom:7px;font-size:15px;line-height:20px;padding:10px 20px 10px 15px;background-color:rgba(0,0,0,.01)}.choice--desktop:hover,.choice--desktop:active,.choice--mobile:active{background-color:rgba(0,0,0,.05)}.ul-thanks-check{text-align:center;margin-bottom:20px}.ul-card--thanks-content{padding:20px 0 10px}.ul-card--thanks .ul-question{padding-top:0;text-align:center}.ul-card--thanks .ul-caption{padding-top:0;text-align:center;overflow-wrap:break-word;hyphens:auto;hyphenate-limit-lines:no-limit}.select-checkbox{height:16px;width:16px;border-radius:3px;border:1px solid #323232;display:flex;box-sizing:border-box;box-shadow:inset 3px 3px rgba(0,0,0,.1);background-color:"transparent";align-items:center;justify-content:center}.select-radio{height:16px;width:16px;border-radius:16px;border:1px solid #323232;display:flex;box-sizing:border-box;box-shadow:inset 2px 2px rgba(0,0,0,.1);background-color:"transparent";align-items:center;justify-content:center}.fade-in-transition{animation:fadeIn .4s ease-in;-webkit-animation:fadeIn .4s ease-in;-moz-animation:fadeIn .4s ease-in;-o-animation:fadeIn .4s ease-in;-ms-animation:fadeIn .4s ease-in}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-moz-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-o-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-ms-keyframes fadeIn{0%{opacity:0}to{opacity:1}}[class^=CenteredSurveyLayout] .ul-header__container,[class^=QuestionConceptTestLayout] .ul-header__container,.ul-websurvey-frame .ul-card__container,.ul-websurvey-frame-mobile .ul-card__container{margin-bottom:unset}[class^=CenteredSurveyLayout] .ul-card__container,[class^=QuestionConceptTestLayout] .ul-card__container,.ul-websurvey-frame .ul-card__container,.ul-websurvey-frame-mobile .ul-card__container{box-shadow:unset;border-radius:unset;border:none!important;position:unset}@media only screen and (min-height: 600px) and (width: 600px){.ul-card{position:relative;top:-20px}}.ul-consent-legal__name-input--mobile{border:2px solid #e6e6e6}.ul-consent-legal__name-input--desktop{border:1px solid #e6e6e6}.ul-consent-legal__name-input{background:rgba(0,0,0,.01);box-sizing:border-box;color:#343442;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;padding:10px 20px 10px 15px;border-radius:3px;font-size:15px;line-height:20px;margin-bottom:7px;width:100%}.ul-consent-legal__name-input::placeholder{color:rgba(108,108,110,.5)}.ul-consent-legal__name-input:focus{outline:none;background:white}.ul-consent-legal__name-input--desktop:hover:not(:focus){background-color:rgba(0,0,0,.05)}.ul-card__consent-legal .choice{font-size:15px;padding:10px 15px;background-color:rgba(0,0,0,.01)}.ul-card__consent-legal .choice--desktop:hover,.ul-card__consent-legal .choice--desktop:active,.ul-card__consent-legal .choice--mobile:active{background-color:rgba(0,0,0,.05)}.ul-card--likert__numbers{align-items:center;border-radius:5px;display:flex;flex-direction:row;flex:1 0;justify-content:center;margin:5px 0 0}.likert-number--mobile{border:2px solid #e6e6e6;margin-left:-2px}.likert-number--desktop{border:1px solid #e6e6e6;margin-left:-1px}.likert-number{align-items:center;cursor:pointer;display:flex;justify-content:center;flex:1 0;background-color:rgba(0,0,0,.01);font-size:18px;line-height:24px;height:67px}.likert-number:active,.likert-number--desktop:hover{background-color:rgba(0,0,0,.05);font-weight:500}.likert-number-1{border-top-left-radius:5px;border-bottom-left-radius:5px}.likert-number-5{border-top-right-radius:5px;border-bottom-right-radius:5px}.ul-card--likert__labels{align-items:center;color:#262136;display:flex;flex-direction:row;flex:1 0;font-weight:500;font-size:13px;line-height:15px;justify-content:space-between;margin:7px 0 10px}.ul-card--likert__labels span:last-child{text-align:right}.select-label{flex:1;overflow-wrap:anywhere;cursor:pointer;padding-left:15px}.ul-card--nps__numbers{align-items:center;border-radius:5px;display:flex;flex-direction:row;flex:1 0;justify-content:center;margin:5px 0 0}.nps-number--mobile{border:2px solid #e6e6e6;margin-left:-2px}.nps-number--desktop{border:1px solid #e6e6e6;margin-left:-1px}.nps-number{align-items:center;cursor:pointer;display:flex;justify-content:center;flex:1 0;background-color:rgba(0,0,0,.01);font-size:18px;line-height:24px;height:67px}.nps-number:active,.nps-number--desktop:hover{background-color:rgba(0,0,0,.05);font-weight:500}.nps-number-0{border-top-left-radius:5px;border-bottom-left-radius:5px}.nps-number-10{border-top-right-radius:5px;border-bottom-right-radius:5px}.ul-card--nps__labels{align-items:center;color:#262136;display:flex;flex-direction:row;flex:1 0;font-weight:500;font-size:13px;line-height:15px;justify-content:space-between;margin:7px 0 10px}.ul-card--nps__labels span:last-child{text-align:right}.ul-card-text{flex:1 0 auto;margin-top:2px;margin-bottom:3px;align-items:center;display:flex;flex-wrap:wrap;justify-content:center;padding:0}.ul-card-text__container{align-items:center;box-sizing:border-box;border-radius:3px;display:flex;justify-content:center;margin-bottom:12px;flex:1 0 100%}.ul-card-text__input--mobile{border:2px solid #e6e6e6;max-height:63px}.ul-card-text__input--desktop{border:1px solid #e6e6e6;max-height:150px}.ul-card-text__input{background:rgba(0,0,0,.01);box-sizing:border-box;color:#343442;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;min-height:63px;overflow:hidden;padding:12px;resize:none;width:100%;border-radius:3px;font-size:15px;line-height:20px}.ul-card-text__input::placeholder{color:rgba(108,108,110,.5)}.ul-card-text__input:focus{outline:none;background:white}.ul-card-text__input--desktop:hover:not(:focus){background-color:rgba(0,0,0,.05)}.ul-card__text-url-prompt-button{margin-right:auto;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:100%}#ul-card-voice__video{align-items:center;display:flex;flex-direction:column}#ul-card-video__player_recorder{width:100%;width:-moz-available;width:-webkit-fill-available;width:fill-available}.ul-card-record__task{flex:1 0 auto;margin-top:2px;margin-bottom:3px;align-items:center;display:flex;flex-wrap:wrap;justify-content:center;padding:0}#ul-record-task-upload-progress,#ul-record-task-video-preview{width:100%;height:150px;margin-bottom:15px}.ul-permission-graphics-container{width:280px;height:150px;background-color:rgba(0,0,0,.05);text-align:center;flex-direction:column;margin-bottom:15px;margin-left:auto;margin-right:auto;border-radius:5px;display:flex;align-items:center;font-size:12px}.ul-av-permission-denied-paragraph{margin:auto 15px}.ul-av-permission-denied-headline{font-size:14px;color:#262136;text-decoration:underline}.ul-permission-body{color:#4b575d;margin:5px auto 5px 5px;line-height:135%;text-align:center}.ul-select-tab-container{width:146px;height:40px;background:#ffffff;border-radius:5px 5px 0 0;text-align:center;align-items:center;display:flex;padding:0 5px;margin-top:20px;margin-bottom:auto}.ul-select-tab-text{color:#4b575d;margin:5px;line-height:135%;text-align:center}.ul-horizontal-button-container{width:100%;display:flex}.ul-complete-task-button{margin-left:0;margin-right:auto}.ul-record-task-skip-button{margin-left:auto}.ul-card-text__button{border-radius:3px;color:#fff;font-size:15px;line-height:18px;padding:10.5px 21px;font-weight:500;border:none;cursor:pointer}.ul-card-text__button.ul-button-inactive{background-color:#fff!important;color:#5d696f!important}.ul-card-text__button.ul-button-left-align{margin-left:0;margin-right:auto}html,body{cursor:default;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;height:100%;overflow:hidden;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-webkit-touch-callout:none}b{font-weight:500}#ul-app{opacity:0;width:100%;flex-grow:2;display:flex}#ul-app.ul-app--overlay{position:absolute;bottom:0;transition:opacity .1s ease-out}#ul-app.ul-app--visible{opacity:1;bottom:0}.ul-app__container{width:100%;display:flex;flex-direction:column;max-height:100vh}.ul-header__container{margin-bottom:15px}.ul-header{align-items:center;background:repeating-linear-gradient(120deg,#ebebeb,#ebebeb 24px,#fff 24px,#fff 48px);border-bottom:2px solid #ebebeb;display:flex;font-size:14px;font-weight:500;height:40px;justify-content:center;left:0;position:absolute;top:0;width:100%}.ul-footer{display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:auto;flex-grow:1;width:100%}.ul-footer-bubble{display:inline-block;margin:0 3px;width:7px;height:7px;border-radius:3px;border:1px solid transparent}.close-container--desktop,.close-container--mobile{height:22px;width:22px;border-radius:22px;background-color:#fff;align-items:center;justify-content:center}.close-container--desktop{top:25px;right:25px}.close-container--mobile{top:15px;right:10px}.close-container{background:transparent;box-sizing:border-box;display:flex;position:absolute}.close-btn{height:18px;width:18px;align-items:center;justify-content:center;display:flex;cursor:pointer}.ul-app__container{transition:opacity .3s ease-out}.ul-center-horizontally{text-align:center}#ul-progress-bar-container{width:100%;height:2px;background-color:rgba(0,0,0,.1);border-radius:2px;max-width:250px;margin:25px 0}#ul-progress-bar-current{width:0px;height:0;border-radius:2px}.prototype-button{width:100%;background:rgba(0,0,0,.01);border:1.5px solid #e6e6e6;border-radius:4px 0 0 4px;flex:none;flex-grow:1;margin:0;padding:20px 0;font-size:14px;font-family:inherit;text-decoration:underline}.prototype-button:hover{cursor:pointer}'};var $n=({border:e,label:r,selected:t,index:n,id:a,onSelect:i,isRadio:s,useMobileStyling:u,error:o})=>c=>{let{viewDocument:f}=c.app,d=b=>{let _=f.getElementById(`choice-div-${a}`),E=f.getElementById(`radio-${a}`);_&&(_.style.borderColor=e),E&&(E.style.borderWidth="6px",E.style.borderColor=e,E.style.boxShadow="none")},v=b=>{let _=f.getElementById(`choice-div-${a}`),E=f.getElementById(`radio-${a}`);_&&(_.style.borderColor=o?St:yr),E&&(E.style.borderWidth="1px",E.style.borderColor="#323232",E.style.boxShadow="inset 3px 3px 0px rgba(0, 0, 0, 0.1)")},q=b=>{b.stopPropagation(),v(b),i(a)},g=b=>{(b.keyCode==13||b.keyCode==32)&&q(b)},y={onclick:b=>q(b),onkeypress:b=>g(b)};"ontouchstart"in f.documentElement?(y.ontouchstart=d,y.ontouchcancel=v,y.ontouchmove=v,y.ontouchend=v):(y.onmousedown=d,y.onmouseleave=v);let m=s?`radio-${a}`:`checkbox-${a}`;return h("div",z({style:o&&{borderColor:St},className:V(me(R.CHOICE_CLASS,u)),id:`choice-div-${a}`},y),!s&&h("div",{className:R.CHOICE_CHECKBOX_CLASS,id:m,style:t?{backgroundColor:e,borderColor:e,boxShadow:"none"}:{},role:"checkbox","aria-labelledby":`${R.QUESTION_HEADER_CLASS} label-${a}`,"aria-checked":t,tabindex:0},t&&h("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("path",{d:"M9.15377 1.30774L4.07685 8.23082L1.30762 5.00005",stroke:"white","stroke-width":"2","stroke-linecap":"round"}))),s&&h("div",{className:R.CHOICE_RADIO_CLASS,id:m,role:"radio","aria-labelledby":`${R.QUESTION_HEADER_CLASS} label-${a}`,tabindex:0}),h("label",{className:V(me(R.CHOICE_LABEL_CLASS,u)),for:m,id:`label-${a}`},r))};var Jd=({handleClick:e,buttonText:r=ui})=>h("button",{className:"prototype-button",onclick:e,key:"prototype-btn"},r);var nr=e=>e&&e.captionText&&h(k5,{content:e.captionText}),ar=(e,r)=>e?h("p",{id:R.QUESTION_HEADER_CLASS,className:R.QUESTION_HEADER_CLASS,role:"heading"},r):h("p",{id:R.QUESTION_HEADER_CLASS,className:R.QUESTION_HEADER_CLASS,style:"margin-bottom: 15px",role:"heading"},r),yt=e=>e&&e.buttonText||"Next",ef=e=>e&&e.skipButtonText||"Skip",vte=({content:e,hasCaption:r})=>r?h("p",{id:R.QUESTION_HEADER_CLASS,className:R.QUESTION_HEADER_CLASS,role:"heading"},e):h("p",{id:R.QUESTION_HEADER_CLASS,className:R.QUESTION_HEADER_CLASS,style:"margin-bottom: 15px",role:"heading"},e),k5=({content:e})=>h("p",{id:R.CAPTION_CLASS,className:R.CAPTION_CLASS},e),qt=({content:e,handleClick:r,backgroundColor:t,classNames:n})=>{let a="ul-card-text__button "+n;return h("button",{id:"ul-card-text__button",className:a,style:{backgroundColor:t},onclick:r,role:"button","aria-labelledby":`${R.QUESTION_HEADER_CLASS} ul-card-text__button`},e)},F5=({content:e,caption:r})=>h("div",null,h(vte,{content:e,hasCaption:!!r}),r&&k5({content:r})),B5=(e,r,t)=>{e.preventDefault(),r.handleClickEmbedButton(t)},Ke=(e,r,t,n,a="web")=>{let i=window.innerWidth<qs,s=r&&r.conceptUrl;return i&&!e&&s&&["email","link"].includes(a)?h(Jd,{handleClick:u=>{B5(u,t,Se.name.VIEW_PROTOTYPE_CLICK)}}):n()},$5=(e,r,t,n,a="web")=>{let i=window.innerWidth<qs,s=r&&r.consentDocument&&r.consentDocument.url;return i&&!e&&s&&["email","link"].includes(a)?h(Jd,{handleClick:u=>{B5(u,t,Se.name.VIEW_AGREEMENT_CLICK)},buttonText:r&&r.viewDocumentText||xf}):n()};var V5=({className:e,message:r,properties:t,locale:n,next:a,questionId:i,type:s})=>(u,o)=>{let c=V([e,"ul-card__consent-legal",R.FADE_IN_CLASS]),{useMobileStyling:f,border:d,headers:v,hasViewedEmbed:q}=u.app,g=v["userleap-platform"],{app:y}=o,{isConsentSelected:m,isNamePresent:b,isSubmitEnabled:_,name:E,hasValidationError:w}=u.consentLegal,{onNameTextChange:C,reset:U,setValidationError:M,updateIsConsentSelected:F}=o.consentLegal,K=t&&t.collectName,O=t&&t.nameLabelText||"Full Name",H=t&&t.consentText||"I agree to the stated conditions",S=t&&t.submitButtonText||"Submit",I=se=>{if(se.preventDefault(),se.stopPropagation(),!_){M();return}let Oe={submitted:!0};K&&(Oe.name=E),a({value:Oe,questionId:i,type:s}),U()},A=se=>{se.preventDefault(),se.stopPropagation(),C(se.target.value)},T=()=>{F(K)},P=se=>{se.target.style.borderColor=w&&!b?St:d},fe=se=>{se.target.style.borderColor=w&&!b?St:yr},_e=()=>h("div",null,h($n,{error:w&&!m,border:d,index:0,label:H,onSelect:T,selected:m,id:0,isRadio:!1,useMobileStyling:f}),K&&h("input",{style:w&&!b&&{borderColor:St},"data-gramm":"false",maxlength:"250",className:V(me(R.CONSENT_LEGAL_NAME_INPUT,f)),name:"name",placeholder:O,"aria-placeholder":O,value:E,oninput:A,onfocus:P,onblur:fe,tabindex:0,"aria-label":O}),h("div",{className:"ul-card__button-wrapper"},h("button",{id:"ul-card-text__button",className:"ul-card-text__button",style:_?{backgroundColor:d}:{backgroundColor:"rgba(0, 0, 0, 0.1)",color:"rgba(0, 0, 0, 0.2)"},onclick:I,role:"button","aria-labelledby":`${R.QUESTION_HEADER_CLASS} ul-card-text__button`},S)));return h("div",{className:V(ye(R.CARD_MAIN_CONTENT,g))},h("div",{className:c,key:i},h("p",{id:R.QUESTION_HEADER_CLASS,className:R.QUESTION_HEADER_CLASS},r),h("div",{id:"ul-card__consent-legal-body-container",className:"ul-rich-text-body",innerHTML:t&&t.richTextBody}),$5(q,t,y,_e,g)))};var H5=({border:e,className:r,locale:t,labels:n,message:a,properties:i,next:s,questionId:u,type:o})=>(c,f)=>{let{useMobileStyling:d,deck:{index:v},headers:q,viewDocument:g,hasViewedEmbed:y}=c.app,{app:m}=f,b=V([r,"ul-card--likert",R.FADE_IN_CLASS]),_=q["userleap-platform"],E=n&&n.left,w=n&&n.right,C=[...Array(5)].map((F,K)=>{let O=K+1,H=`option-${O}`,S=P=>{P.target.style.zIndex=2,P.target.style.borderColor=e},I=P=>{P.target.style.zIndex="auto",P.target.style.borderColor=yr},A=P=>{(P.keyCode==13||P.keyCode==32)&&s({value:O,questionId:u,type:o})},T={onclick:()=>s({value:O,questionId:u,type:o}),onkeypress:P=>A(P)};return"ontouchstart"in g.documentElement?(T.ontouchstart=S,T.ontouchcancel=I,T.ontouchmove=I,T.ontouchend=I):(T.onmousedown=S,T.onmouseleave=I),h("div",ue(z({id:H,className:V([...me(R.LIKERT_NUMBER_CLASS,d),...me(`${R.LIKERT_NUMBER_CLASS}-${O}`,d)])},T),{"aria-labelledby":`${R.QUESTION_HEADER_CLASS} ${H}`,role:"textbox",tabindex:0,"aria-describedby":R.CAPTION_CLASS}),O)}),U=nr(i),M=()=>h("div",null,v%2===0&&h("div",null),h("div",{className:"ul-card--likert__numbers"},C),h("div",{className:"ul-card--likert__labels"},h("span",null,E),h("span",null,w)));return h("div",{className:V(ye(R.CARD_MAIN_CONTENT,_))},h("form",{className:b,key:u},ar(U,a),U,Ke(y,i,m,M,_)))};var G5=({className:e,border:r,message:t,properties:n,locale:a,options:i=[],next:s,questionId:u,type:o})=>(c,f)=>{let{useMobileStyling:d,headers:v,hasViewedEmbed:q}=c.app,{app:g}=f,y=V([e,"ul-card--multiple",R.FADE_IN_CLASS]),m=v["userleap-platform"];function b(C,U){s({value:{[C]:U},questionId:u,type:o})}let _=i.map(({id:C,label:U,value:M},F)=>h($n,{border:r,index:F,label:U,tabindex:F+1,onSelect:b.bind(null,C,M),id:C,isRadio:!0,useMobileStyling:d})),E=nr(n),w=()=>h("div",{className:V(me(R.CHOICE_GROUP_CLASS,d)),role:"radiogroup","aria-labeledby":R.QUESTION_HEADER_CLASS},_);return h("div",{className:V(ye(R.CARD_MAIN_CONTENT,m))},h("div",{className:y,key:u},ar(E,t),E,Ke(q,n,g,w,m)))};var K5=({className:e,border:r,message:t,properties:n,locale:a,options:i=[],isLast:s,next:u,questionId:o,type:c})=>(f,d)=>{let v=V([e,"ul-card--multiple",R.FADE_IN_CLASS]),{selectedOptions:q}=f.multipleSelect,{init:g,reset:y,updateSelected:m}=d.multipleSelect,{useMobileStyling:b,headers:_,hasViewedEmbed:E}=f.app,{app:w}=d,C=_["userleap-platform"],U=()=>{let H={};i.forEach(S=>{H[S.id]=!1}),g(H)},M=H=>{H.preventDefault(),H.stopPropagation(),u({value:f.multipleSelect.selectedOptions,questionId:o,type:c}),y()},F=i.map(({id:H,label:S,value:I},A)=>h($n,{border:r,index:A,label:S,onSelect:m,selected:q[H],id:H,isRadio:!1,useMobileStyling:b})),K=nr(n),O=()=>h("div",null,h("div",{className:V(me(R.CHOICE_GROUP_CLASS,b)),role:"radiogroup"},F),h("div",{className:"ul-card__button-wrapper"},h("button",{id:"ul-card-text__button",className:"ul-card-text__button",style:{backgroundColor:r},onclick:M,role:"button","aria-labelledby":`${R.QUESTION_HEADER_CLASS} ul-card-text__button`},yt(n))));return h("div",{className:V(ye(R.CARD_MAIN_CONTENT,C))},h("form",{id:"text-form",className:v,onsubmit:M,oncreate:H=>U(H),key:o},ar(K,t),K,Ke(E,n,w,O,C)))};var z5=({border:e,className:r,locale:t,labels:n,message:a,properties:i,next:s,questionId:u,type:o})=>(c,f)=>{let{useMobileStyling:d,deck:{index:v},headers:q,viewDocument:g,hasViewedEmbed:y}=c.app,{app:m}=f,b=V([r,"ul-card--nps",R.FADE_IN_CLASS]),_=q["userleap-platform"],E=n&&n.left,w=n&&n.right,C=[...Array(11)].map((F,K)=>{let O=K,H=`option-${O}`,S=P=>{P.target.style.zIndex=2,P.target.style.borderColor=e},I=P=>{P.target.style.zIndex="auto",P.target.style.borderColor=yr},A=P=>{(P.keyCode==13||P.keyCode==32)&&s({value:O,questionId:u,type:o})},T={onclick:()=>s({value:O,questionId:u,type:o}),onkeypress:P=>A(P)};return"ontouchstart"in g.documentElement?(T.ontouchstart=S,T.ontouchcancel=I,T.ontouchmove=I,T.ontouchend=I):(T.onmousedown=S,T.onmouseleave=I),h("div",ue(z({className:V([...me(R.NPS_NUMBER_CLASS,d),...me(`${R.NPS_NUMBER_CLASS}-${O}`,d)])},T),{"aria-labelledby":`${R.QUESTION_HEADER_CLASS} ${H}`,role:"radio",tabindex:0,id:H}),O)}),U=nr(i),M=()=>h("div",null,v%2===0&&h("div",null),h("div",{className:"ul-card--nps__numbers"},C),h("div",{className:"ul-card--nps__labels"},h("span",null,E),h("span",null,w)));return h("div",{className:V(ye(R.CARD_MAIN_CONTENT,_))},h("form",{className:b,key:u},ar(U,a),U,Ke(y,i,m,M,_)))};var ke={AV_PERMISSION:"av_permission",SCREEN_PERMISSION:"screen_permission",START_TASK:"start_task",COMPLETE_TASK:"complete_task"},W5={currentPage:void 0,screenPermissionRequested:!1,avStream:void 0,nextQuestion:void 0},Y5=Object.create(W5),X5={updatePage:e=>r=>z(z({},r),e),reset:()=>e=>z(z({},e),W5)};var Q5={CAMERA:"camera",MIC:"microphone"};function Z5(e,r,t,n,a,i,s){let{updatePage:u,completeTask:o}=r.recordTask,{surveyId:c,responseGroupUid:f,userId:d}=e.app,v={questionId:s,surveyId:c,visitorId:d,responseGroupUid:f},q=0;t.emit(Se.name.RECORDED_TASK_PERMISSION_SCREEN),t.emit(Me.PERMISSION_STATUS,{[X.PERMISSION_STATUS_CALLBACK]:(y,m,b,_)=>{let{type:E,permissionDescriptors:w}=n[q],C=[Nr.SCREEN],U=w.includes(Q5.MIC),M=w.includes(Q5.CAMERA);E===ke.AV_PERMISSION&&(U&&C.push(Nr.AUDIO),M&&C.push(Nr.VIDEO),y&&(M&&b||!M)&&q++),n[q].type===ke.SCREEN_PERMISSION&&_&&(q++,t.emit(Me.BEGIN_RECORDING,{[X.RECORDING_MEDIA_TYPES]:C})),u({currentPage:n[q],avStream:y,screenPermissionRequested:_,nextQuestion:a,type:E,passthroughData:v,recordingMediaTypes:C})}});let g=n[q];if(g.type===ke.AV_PERMISSION){let{avStream:y}=e.recordTask;t.emit(Me.AV_PERMISSION,{[X.PERMISSION_DESCRIPTORS]:g.permissionDescriptors,[X.STREAM_READY_CALLBACK]:m=>{y!==m&&u({currentPage:g,avStream:m})},[X.STREAM_CANCELLED_CALLBACK]:()=>{o(e,r,X.ABANDONED)}})}return g}function Vn(e,r,t){let{eventEmitter:n}=e.app,{nextQuestion:a,type:i,passthroughData:s}=e.recordTask,{reset:u}=r.recordTask,o={value:{taskStatus:t},type:i,questionId:s.questionId};n.emit(Me.FINISH_TASK,{[X.PASSTHROUGH_DATA]:s,[X.CURRENT_INDEX]:e.app.deck.index,[X.TASK_RESPONSE]:o,[X.TASK_COMPLETE_CALLBACK]:(c,f)=>{o.value.taskDurationMillisecond=f,o.value.mediaRecordingUids=c,u(),a(o)}})}function ds(e,r,t){let{eventEmitter:n}=e.app,{currentPage:a,recordingMediaTypes:i,screenPermissionRequested:s}=e.recordTask,{updatePage:u}=r.recordTask,o=t.indexOf(a);switch(a.type){case ke.AV_PERMISSION:{let c=s?o+2:o+1;s&&n.emit(Me.BEGIN_RECORDING,{[X.RECORDING_MEDIA_TYPES]:i}),u({currentPage:t[c]});return}case ke.SCREEN_PERMISSION:n.emit(Me.SCREEN_PERMISSION,{[X.STREAM_READY_CALLBACK]:c=>{let f=c?t[o+1]:a;c&&n.emit(Me.BEGIN_RECORDING,{[X.RECORDING_MEDIA_TYPES]:i}),u({currentPage:f,screenPermissionRequested:!0})},[X.STREAM_CANCELLED_CALLBACK]:()=>{Vn(e,r,X.ABANDONED)}});return;case ke.START_TASK:n.emit(Se.name.RECORDED_TASK_START),n.emit(Me.START_TASK),u({currentPage:t[o+1],screenPermissionRequested:!0});return;case ke.COMPLETE_TASK:return}}var{INACTIVE_BUTTON:J5,CHECKMARK_BUTTON:Nqe,LEFT_ALIGN_BUTTON:pte}=R,e_="ul-permission-graphics-container",r_="ul-permission-body",t_=J5+" ul-record-task-skip-button",n_=({richTextBody:e})=>h("dispatchEvent",{className:"ul-rich-text-body",innerHTML:e}),gte=({content:e,pages:r})=>(t,n)=>h("div",{className:"ul-task-page"},h(n_,{richTextBody:e.taskDetail}),h("div",{className:"ul-horizontal-button-container"},h(qt,{content:e.buttonText,handleClick:ds.bind(null,t,n,r),backgroundColor:t.app.border,classNames:pte}))),hte=({content:e,pages:r})=>(t,n)=>h("div",{className:"ul-task-page"},h(n_,{richTextBody:e.taskDetail}),h("div",{className:"ul-horizontal-button-container"},h(qt,{content:e.buttonText,handleClick:Vn.bind(null,t,n,X.COMPLETED),backgroundColor:t.app.border,classNames:"ul-complete-task-button"}),h(qt,{content:e.skipButtonText,handleClick:Vn.bind(null,t,n,X.GIVEN_UP),backgroundColor:t.app.border,classNames:t_}))),mte=({content:e,pages:r})=>(t,n)=>{let{screenPermissionRequested:a}=t.recordTask,{buttonText:i,skipButtonText:s}=e,u=h(qt,{content:i,handleClick:ds.bind(null,t,n,r,n.app.next),backgroundColor:t.app.border}),o=a&&h(qt,{content:s,handleClick:Vn.bind(null,t,n,X.ABANDONED),classNames:t_});return h("div",null,h("div",{className:e_},h("p",{style:"margin-top: auto;"},e.selectTabText),h("div",{className:"ul-select-tab-container"},h("p",{className:r_},t.app.tabTitle))),o?h("div",{className:"ul-horizontal-button-container"},u,o):u)},yte=({content:e})=>h("div",{className:"ul-center-horizontally",innerHTML:e.svg}),qte=({content:e})=>(r,t)=>{let{permissionDeniedHeadline:n,permissionDeniedBody:a,skipButtonText:i}=e;return h("div",null,h("div",{className:e_},h("p",{className:"ul-av-permission-denied-paragraph"},h("span",{className:"ul-av-permission-denied-headline"},n),h("span",{className:r_},a))),h(qt,{content:i,handleClick:Vn.bind(null,r,t,X.ABANDONED),classNames:J5}))},bte=({content:e,pages:r})=>(t,n)=>{let{avStream:a}=t.recordTask;return h("div",null,h("video",{id:"ul-record-task-video-preview",srcObject:a,autoplay:!0,muted:!0}),h(qt,{content:e.buttonText,handleClick:ds.bind(null,t,n,r),backgroundColor:t.app.border}))},a_=({currentPage:e,pages:r})=>(t,n)=>{if(e===void 0)return null;let{avStream:a}=t.recordTask;switch(e.type){case ke.AV_PERMISSION:return a===void 0?h(yte,{content:e}):a?h(bte,{content:e,pages:r}):h(qte,{content:e});case ke.SCREEN_PERMISSION:return h(mte,{content:e,pages:r});case ke.START_TASK:return h(gte,{content:e,pages:r});case ke.COMPLETE_TASK:return h(hte,{content:e,pages:r});default:return null}};var i_=({className:e,properties:r,next:t,questionId:n,type:a})=>(i,s)=>{let{border:u,headers:o,eventEmitter:c}=i.app,{screenPermissionRequested:f}=i.recordTask,{currentPage:d}=i.recordTask;d||(d=Z5(i,s,c,r.pages,t,a,n));let v=d.headline,q=d.captionText;d.type===ke.SCREEN_PERMISSION&&f&&(v=d.permissionDeniedHeadline,q=d.permissionDeniedCaptionText);let g=V([e,"ul-card--record__task","ul-center-horizontally",R.FADE_IN_CLASS]);return h("div",{className:V([...ye(R.CARD_MAIN_CONTENT,o["userleap-platform"])])},h("div",{className:g},h(F5,{content:v,caption:q}),h(a_,{currentPage:d,pages:r.pages})))};var u_=oi(s_());var l_=({className:e,message:r,properties:t,locale:n,next:a,questionId:i,type:s})=>(u,o)=>{let{useMobileStyling:c,border:f,headers:d,viewDocument:v,hasViewedEmbed:q}=u.app,{app:g}=o,y=V([e,"ul-card--text",R.FADE_IN_CLASS]),m=d["userleap-platform"],b=()=>u.openText.value.trim(),_=K=>{if(K.preventDefault(),K.stopPropagation(),!v.forms["text-form"])return;let H=b();a({value:H,questionId:i,type:s}),u.openText.value=""},E=K=>{K.preventDefault(),K.stopPropagation(),o.openText.onTextChange(K.target.value)},w=nr(t),C=t&&t.openTextPlaceholder?t.openTextPlaceholder:null,U=K=>{K.target.style.borderColor=f},M=K=>{K.target.style.borderColor=yr},F=()=>h("div",{className:"ul-card-text"},h("div",{className:"ul-card-text__container"},h("textarea",{"data-gramm":"false",maxlength:"5000",className:V(me(R.OPEN_TEXT_INPUT,c)),name:"text",placeholder:C,"aria-placeholder":C,"aria-multiline":"true",value:u.openText.value,oncreate:u_.default,oninput:E,onfocus:U,onblur:M,tabindex:0,"aria-labelledby":R.QUESTION_HEADER_CLASS,contenteditable:"true",role:"textbox","aria-label":C})),h("button",{id:"ul-card-text__button",className:"ul-card-text__button",style:{backgroundColor:f},onclick:_,role:"button","aria-labelledby":`${R.QUESTION_HEADER_CLASS} ul-card-text__button`},yt(t)));return h("div",{className:V(ye(R.CARD_MAIN_CONTENT,m))},h("form",{id:"text-form",className:y,key:i},ar(w,r),w,Ke(q,t,g,F,m)))};var Ete={"{{user_id}}":"externalUserId","{{email}}":"email"},c_=(e=void 0,r={})=>{if(!e)return e;let t=e,n=[];for(let[o,c]of Object.entries(Ete))if(t.toLowerCase().includes(o))if(r[c]){let f=new RegExp(o,"gi");t=t.replace(f,r[c])}else n.push(o);if(n.length===0||!t.includes("?"))return t;let a=t.slice(0,t.indexOf("?")),s=t.slice(t.indexOf("?")+1).split("&").map(o=>o.split("=")).filter(o=>!n.includes(o[1]));if(s.length===0)return a;let u=s.map(o=>o.join("=")).join("&");return`${a}?${u}`};var d_=({className:e,message:r,properties:t,locale:n,next:a,questionId:i,type:s})=>(u,o)=>{let c=V([e,"ul-card__text-url-prompt",R.FADE_IN_CLASS]),{border:f,headers:d,visitorAttributes:v,hasViewedEmbed:q}=u.app,{app:g}=o,y=d["userleap-platform"],m=w=>{a({value:void 0,questionId:i,type:s})},b=w=>{(w.keyCode==13||w.keyCode==32)&&a({value:void 0,questionId:i,type:s})},_=()=>h("a",{id:"ul-card-text__button",className:"ul-card-text__button ul-card__text-url-prompt-button",style:{backgroundColor:f,"margin-right":"auto","text-overflow":"ellipsis",textDecoration:"none",overflow:"visible"},onclick:m,onkeypress:b,href:c_(t&&t.buttonUrl,v),target:"_blank",role:"button",tabindex:0,"aria-labelledby":`${R.QUESTION_HEADER_CLASS} ul-card-text__button`,"aria-describedby":"ul-card__text-url-body-container"},yt(t)),E=(w,C)=>w?h("div",{id:"ul-card__text-url-body-container",className:"ul-rich-text-body",innerHTML:w}):h("div",{id:"ul-card__text-url-body-container",className:"ul-rich-text-body"},(C?C.split(/\n\s*\n/g):[]).map(U=>h("p",null,U)));return h("div",{className:V(ye(R.CARD_MAIN_CONTENT,y))},h("div",{className:c,key:i},h("p",{id:R.QUESTION_HEADER_CLASS,className:R.QUESTION_HEADER_CLASS},r),E(t&&t.richTextBody,t&&t.body),Ke(q,t,g,_,y)))};var f_=({endCard:e,border:r,className:t,locale:n,questionId:a})=>(i,s)=>{let u=V([t,"ul-card--thanks",R.FADE_IN_CLASS]),o=e&&e.subheader?h("p",{className:"ul-caption"},e.subheader):null,c=e&&e.headline?e.headline:null;return h("div",{className:V(ye(R.CARD_MAIN_CONTENT,i.app.headers["userleap-platform"]))},h("div",{className:u,key:a},h("div",{oncreate:()=>s.app.complete()},h("div",{className:"ul-card--thanks-content"},h("div",{className:"ul-thanks-check"},h("svg",{width:"81",height:"99",viewBox:"0 0 81 99",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"title"},h("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M40.5 77C60.9345 77 77.5 60.4345 77.5 40C77.5 19.5655 60.9345 3 40.5 3C20.0655 3 3.5 19.5655 3.5 40C3.5 60.4345 20.0655 77 40.5 77ZM80.5 40C80.5 62.0914 62.5914 80 40.5 80C18.4086 80 0.5 62.0914 0.5 40C0.5 17.9086 18.4086 0 40.5 0C62.5914 0 80.5 17.9086 80.5 40Z",fill:r}),h("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M55.025 22.9046C55.6299 23.4705 55.6616 24.4198 55.0956 25.0247C54.8724 25.2634 54.6109 25.5285 54.3157 25.8277C52.2547 27.9168 48.5549 31.667 44.8135 39.6658C43.2818 42.9406 42.0864 45.8386 41.0823 48.2729C40.6539 49.3116 40.2603 50.2659 39.8902 51.129C39.287 52.5359 38.7248 53.7508 38.1744 54.625C37.8997 55.0613 37.5806 55.4905 37.2017 55.8245C36.8201 56.1607 36.2613 56.5 35.5457 56.5C34.6742 56.5 34.0892 55.9692 33.7774 55.6083C33.4502 55.2296 33.1752 54.7511 32.9396 54.301C32.7305 53.9013 32.5088 53.4367 32.2797 52.9565C32.2429 52.8794 32.2059 52.8019 32.1688 52.7243C31.8942 52.1499 31.5959 51.534 31.2537 50.8868C29.8886 48.305 27.8539 45.2878 24.2343 43.1382C23.522 42.7152 23.2875 41.7949 23.7105 41.0826C24.1335 40.3703 25.0539 40.1358 25.7662 40.5588C30.0556 43.1062 32.4149 46.6647 33.9058 49.4845C34.2776 50.1876 34.5973 50.8487 34.8753 51.4302C34.9147 51.5124 34.9529 51.5926 34.9902 51.6707C35.2222 52.1567 35.4164 52.5637 35.5978 52.9102C35.6151 52.9434 35.6321 52.9754 35.6485 53.0061C36.0565 52.3531 36.5341 51.3434 37.133 49.9468C37.4781 49.1418 37.8572 48.2229 38.2761 47.2074C39.2886 44.7532 40.5339 41.7347 42.0961 38.3948C46.0591 29.9221 50.0641 25.8648 52.1535 23.7482C52.4423 23.4556 52.6944 23.2002 52.9048 22.9753C53.4708 22.3703 54.42 22.3387 55.025 22.9046ZM35.1994 53.5892C35.1994 53.5892 35.2 53.5888 35.2012 53.5879C35.2 53.5889 35.1994 53.5893 35.1994 53.5892ZM36.0666 53.6682C36.0732 53.674 36.0765 53.6775 36.0765 53.6777C36.0765 53.678 36.0732 53.6751 36.0666 53.6682Z",fill:r}),h("path",{d:"M69.5 97C69.5 98.1046 56.2924 99 40 99C23.7076 99 10.5 98.1046 10.5 97C10.5 95.8954 23.7076 95 40 95C56.2924 95 69.5 95.8954 69.5 97Z",fill:"black","fill-opacity":"0.2"}))),h("p",{className:R.QUESTION_HEADER_CLASS,id:R.QUESTION_HEADER_CLASS},c),o))))};var Ht="https://cdn.sprig.com",D={document:void 0,videojs:void 0},Ste=`/* progress control styles */
|
|
11
|
+
`,k=v.createElement("style");k.type="text/css",v.head.appendChild(k),k.sheet.insertRule(j,k.length)};return g("footer",{className:`ul-footer ${c["userleap-platform"]==="link"?"ul-footer__link":""}`,key:n},E,y)};var yte=({app:e},r)=>{e.running||r.destroy(Ze);let{Card:t,props:n,type:i,name:a}=e.deck.cards[e.deck.index],o=e.border,u=function(E){let _=["transitionend","webkitTransitionEnd","mozTransitionEnd"],b=!1,A=()=>{if(!b&&window.frameElement){let O=new Event("ul:frame:rendered");window.frameElement.dispatchEvent(O)}b=!0,_.forEach(O=>{E.removeEventListener(O,A)}),setTimeout(()=>r.update(Ze),300)};_.forEach(O=>{E.addEventListener(O,A)}),e.configureExitOnOverlayClick(()=>{r.close(Ze)}),r.update(Ze)},s=async()=>{await r.close(Ze)},c=E=>{E.keyCode==13&&s()},f=e.deck.cards,d=e.deck.index,v=e.fontFamily?{fontFamily:e.fontFamily.replace(";","")}:{},q=e.endCard,h=async function(E){r.app.next({data:E,completeSurvey:()=>{r.destroy(Ze)},endCard:q})};for(let E of e.answers||[])if(E.questionId===a){let _;if(i==="multiplechoice"){let b=n.options.find(({value:A})=>A===E.value);if(!b)break;_={[b.id]:b.value}}else _=E.value;h({value:_,type:i,questionId:E.questionId});break}let m=()=>["email","link"].includes(e.headers["userleap-platform"])?!1:!q||d+1!==f.length,y=()=>e.useMobileStyling?{borderColor:o}:{borderColor:o,margin:"15px"};return g("div",{className:"ul-app",id:Ze,oncreate:E=>u(E),onupdate:()=>r.update(Ze),style:v},g("div",{className:"ul-app__container"},g("div",{className:F(qe(x.CARD_CONTAINER_CLASS,e.useMobileStyling)),style:y()},e.showStripes&&g("div",{className:"ul-header__container"},g("div",{className:"ul-header"},"For development purposes only")),g(t,se(G({},n),{border:o,className:"ul-card",next:h,endCard:q,questionId:a,type:i,updateHeight:()=>r.update(Ze)})),g(B_,null)),m()&&g("div",{className:F(qe(x.CLOSE_CONTAINER_CLASS,e.useMobileStyling))},g("div",{className:x.CLOSE_BUTTON_CLASS,onclick:s,onkeypress:c,role:"button","aria-label":"Close button",tabindex:0},g("svg",{width:"18px",height:"18px",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g("path",{d:"M2.54964 1.78369L1.78369 2.54964L5.73405 6.5L1.78369 10.4504L2.54964 11.2163L6.5 7.26595L10.4504 11.2163L11.2163 10.4504L7.26595 6.5L11.2163 2.54964L10.4504 1.78369L6.5 5.73405L2.54964 1.78369Z",fill:"#262136"}))))))},$_=yte;var V_={styles:'html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:400}button,input,select,textarea{margin:0}html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}.ul-card{flex:1 1 auto;border-radius:2px;display:flex;flex-direction:column;font-size:17px;line-height:19px;text-align:left;margin:auto}.ul-card__container--desktop{border:2px solid #fff;box-shadow:0 0 15px rgba(0,0,0,.15)}.ul-card__container--mobile{border-width:0;box-shadow:0 0 5px rgba(0,0,0,.25);margin-top:5px}.ul-card__container{background:#ffffff;border-radius:6px;display:flex;flex-direction:column;flex-grow:1;flex:1 1 auto;font-size:17px;line-height:23px;overflow:auto;padding:20px 20px 5px;position:relative;text-align:center}.ul-card-text__button{border-radius:3px;color:#fff;font-size:15px;line-height:18px;padding:10.5px 21px;font-weight:500;border:none;cursor:pointer}.ul-card__button-wrapper{margin-top:4px;margin-bottom:3px;display:flex;justify-content:center}.ul-rich-text-body{min-height:2em}.ul-rich-text-body,.ul-rich-text-body p{margin-top:10px;margin-bottom:10px}.ul-rich-text-body li{margin:5px 0 5px 20px}.ul-rich-text-body p,.ul-rich-text-body li{font-size:15px;line-height:130.35%;letter-spacing:.02em;color:#343442;text-align:left;white-space:pre-line}.ul-rich-text-body:last-child,.ul-rich-text-body li:last-child{margin-bottom:15px}.ul-card-main-content__link,.ul-card-main-content__email{flex-grow:55;display:flex}.ul-card-main-content__web{padding-top:15px;margin-bottom:5px}.ul-question{color:#343442;display:block;font-size:20px;line-height:125%;font-weight:500;cursor:default;text-align:left}.ul-caption{flex:1 0 auto;margin-top:8px;margin-bottom:15px;font-size:15px;line-height:130.35%;letter-spacing:.02em;color:#6c6c6e;text-align:left}.ul-card__choices{margin:5px 0 0;flex:1 0;height:100%}.choice--mobile{border:2px solid #e6e6e6}.choice--desktop{border:1px solid #e6e6e6}.choice{align-items:center;color:#262136;cursor:pointer;display:flex;justify-content:flex-start;box-sizing:border-box;border-radius:3px;margin-bottom:7px;font-size:15px;line-height:20px;padding:10px 20px 10px 15px;background-color:rgba(0,0,0,.01)}.choice--desktop:hover,.choice--desktop:active,.choice--mobile:active{background-color:rgba(0,0,0,.05)}.ul-thanks-check{text-align:center;margin-bottom:20px}.ul-card--thanks-content{padding:20px 0 10px}.ul-card--thanks .ul-question{padding-top:0;text-align:center}.ul-card--thanks .ul-caption{padding-top:0;text-align:center;overflow-wrap:break-word;hyphens:auto;hyphenate-limit-lines:no-limit}.ul-card--uploading .ul-question{padding-top:15px;text-align:center}.ul-card--uploading .ul-caption{padding-top:5px;text-align:center;overflow-wrap:break-word}.ul-loading-spinner-container{font-size:1.8rem;flex-grow:1;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.ul-loading-spinner{display:inline-block;position:relative;width:6rem;height:6rem}.ul-loading-spinner div{box-sizing:border-box;display:block;position:absolute;width:80%;height:80%;margin:5px;border:5px solid #152e3e;border-radius:50%;animation:lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#152e3e transparent transparent transparent}.ul-loading-spinner .first{animation-delay:-.45s}.ul-loading-spinner .second{animation-delay:-.3s}.ul-loading-spinner .third{animation-delay:-.15s}@keyframes lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.select-checkbox{height:16px;width:16px;border-radius:3px;border:1px solid #323232;display:flex;box-sizing:border-box;box-shadow:inset 3px 3px rgba(0,0,0,.1);background-color:"transparent";align-items:center;justify-content:center}.select-radio{height:16px;width:16px;border-radius:16px;border:1px solid #323232;display:flex;box-sizing:border-box;box-shadow:inset 2px 2px rgba(0,0,0,.1);background-color:"transparent";align-items:center;justify-content:center}.fade-in-transition{animation:fadeIn .4s ease-in;-webkit-animation:fadeIn .4s ease-in;-moz-animation:fadeIn .4s ease-in;-o-animation:fadeIn .4s ease-in;-ms-animation:fadeIn .4s ease-in}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-moz-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-o-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@-ms-keyframes fadeIn{0%{opacity:0}to{opacity:1}}[class^=CenteredSurveyLayout] .ul-header__container,[class^=QuestionConceptTestLayout] .ul-header__container,.ul-websurvey-frame .ul-card__container,.ul-websurvey-frame-mobile .ul-card__container{margin-bottom:unset}[class^=CenteredSurveyLayout] .ul-card__container,[class^=QuestionConceptTestLayout] .ul-card__container,.ul-websurvey-frame .ul-card__container,.ul-websurvey-frame-mobile .ul-card__container{box-shadow:unset;border-radius:unset;border:none!important;position:unset}@media only screen and (min-height: 600px) and (width: 600px){.ul-card{position:relative;top:-20px}}.ul-consent-legal__name-input--mobile{border:2px solid #e6e6e6}.ul-consent-legal__name-input--desktop{border:1px solid #e6e6e6}.ul-consent-legal__name-input{background:rgba(0,0,0,.01);box-sizing:border-box;color:#343442;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;padding:10px 20px 10px 15px;border-radius:3px;font-size:15px;line-height:20px;margin-bottom:7px;width:100%}.ul-consent-legal__name-input::placeholder{color:rgba(108,108,110,.5)}.ul-consent-legal__name-input:focus{outline:none;background:white}.ul-consent-legal__name-input--desktop:hover:not(:focus){background-color:rgba(0,0,0,.05)}.ul-card__consent-legal .choice{font-size:15px;padding:10px 15px;background-color:rgba(0,0,0,.01)}.ul-card__consent-legal .choice--desktop:hover,.ul-card__consent-legal .choice--desktop:active,.ul-card__consent-legal .choice--mobile:active{background-color:rgba(0,0,0,.05)}.ul-card--likert__numbers{align-items:center;border-radius:5px;display:flex;flex-direction:row;flex:1 0;justify-content:center;margin:5px 0 0}.likert-number--mobile{border:2px solid #e6e6e6;margin-left:-2px}.likert-number--desktop{border:1px solid #e6e6e6;margin-left:-1px}.likert-number{align-items:center;cursor:pointer;display:flex;justify-content:center;flex:1 0;background-color:rgba(0,0,0,.01);font-size:18px;line-height:24px;height:67px}.likert-number:active,.likert-number--desktop:hover{background-color:rgba(0,0,0,.05);font-weight:500}.likert-number-1{border-top-left-radius:5px;border-bottom-left-radius:5px}.likert-number-5{border-top-right-radius:5px;border-bottom-right-radius:5px}.ul-card--likert__labels{align-items:center;color:#262136;display:flex;flex-direction:row;flex:1 0;font-weight:500;font-size:13px;line-height:15px;justify-content:space-between;margin:7px 0 10px}.ul-card--likert__labels span:last-child{text-align:right}.select-label{flex:1;overflow-wrap:anywhere;cursor:pointer;padding-left:15px}.ul-card--nps__numbers{align-items:center;border-radius:5px;display:flex;flex-direction:row;flex:1 0;justify-content:center;margin:5px 0 0}.nps-number--mobile{border:2px solid #e6e6e6;margin-left:-2px}.nps-number--desktop{border:1px solid #e6e6e6;margin-left:-1px}.nps-number{align-items:center;cursor:pointer;display:flex;justify-content:center;flex:1 0;background-color:rgba(0,0,0,.01);font-size:18px;line-height:24px;height:67px}.nps-number:active,.nps-number--desktop:hover{background-color:rgba(0,0,0,.05);font-weight:500}.nps-number-0{border-top-left-radius:5px;border-bottom-left-radius:5px}.nps-number-10{border-top-right-radius:5px;border-bottom-right-radius:5px}.ul-card--nps__labels{align-items:center;color:#262136;display:flex;flex-direction:row;flex:1 0;font-weight:500;font-size:13px;line-height:15px;justify-content:space-between;margin:7px 0 10px}.ul-card--nps__labels span:last-child{text-align:right}.ul-card-text{flex:1 0 auto;margin-top:2px;margin-bottom:3px;align-items:center;display:flex;flex-wrap:wrap;justify-content:center;padding:0}.ul-card-text__container{align-items:center;box-sizing:border-box;border-radius:3px;display:flex;justify-content:center;margin-bottom:12px;flex:1 0 100%}.ul-card-text__input--mobile{border:2px solid #e6e6e6;max-height:63px}.ul-card-text__input--desktop{border:1px solid #e6e6e6;max-height:150px}.ul-card-text__input{background:rgba(0,0,0,.01);box-sizing:border-box;color:#343442;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;min-height:63px;overflow:hidden;padding:12px;resize:none;width:100%;border-radius:3px;font-size:15px;line-height:20px}.ul-card-text__input::placeholder{color:rgba(108,108,110,.5)}.ul-card-text__input:focus{outline:none;background:white}.ul-card-text__input--desktop:hover:not(:focus){background-color:rgba(0,0,0,.05)}.ul-card__text-url-prompt-button{margin-right:auto;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:100%}#ul-card-voice__video{align-items:center;display:flex;flex-direction:column}#ul-card-video__player_recorder{width:100%;width:-moz-available;width:-webkit-fill-available;width:fill-available}.ul-card-record__task{flex:1 0 auto;margin-top:2px;margin-bottom:3px;align-items:center;display:flex;flex-wrap:wrap;justify-content:center;padding:0}#ul-record-task-upload-progress,#ul-record-task-video-preview{width:100%;height:150px;margin-bottom:15px}.ul-permission-graphics-container{width:280px;height:150px;background-color:rgba(0,0,0,.05);text-align:center;flex-direction:column;margin-bottom:15px;margin-left:auto;margin-right:auto;border-radius:5px;display:flex;align-items:center;font-size:15px;color:rgba(0,0,0,.7)}.ul-av-permission-denied-paragraph{margin:auto 15px;font-size:12px}.ul-av-permission-denied-headline{font-size:14px;color:#262136;text-decoration:underline;font-size:12px}.ul-permission-body{color:#000;margin:5px auto 5px 5px;line-height:135%;text-align:center}.ul-select-tab-container{width:240px;height:46px;background:#ffffff;border-radius:5px;text-align:left;align-items:center;display:flex;padding:0 5px;margin-top:20px;margin-bottom:auto}.ul-select-tab-text{color:#4b575d;margin:5px;line-height:135%;text-align:center}.ul-horizontal-button-container{width:100%;display:flex}.ul-complete-task-button{margin-left:0;margin-right:auto}.ul-record-task-skip-button{margin-left:auto}.ul-card-text__button{border-radius:3px;color:#fff;font-size:15px;line-height:18px;padding:10.5px 21px;font-weight:500;border:none;cursor:pointer}.ul-card-text__button.ul-button-inactive{background-color:#fff!important;color:#5d696f!important}.ul-card-text__button.ul-button-left-align{margin-left:0;margin-right:auto}html,body{cursor:default;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;height:100%;overflow:hidden;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-webkit-touch-callout:none}b{font-weight:500}#ul-app{opacity:0;width:100%;flex-grow:2;display:flex}#ul-app.ul-app--overlay{position:absolute;bottom:0;transition:opacity .1s ease-out}#ul-app.ul-app--visible{opacity:1;bottom:0}.ul-app__container{width:100%;display:flex;flex-direction:column;max-height:100vh}.ul-header__container{margin-bottom:15px}.ul-header{align-items:center;background:repeating-linear-gradient(120deg,#ebebeb,#ebebeb 24px,#fff 24px,#fff 48px);border-bottom:2px solid #ebebeb;display:flex;font-size:14px;font-weight:500;height:40px;justify-content:center;left:0;position:absolute;top:0;width:100%}.ul-footer{display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:auto;flex-grow:1;width:100%}.ul-footer-bubble{display:inline-block;margin:0 3px;width:7px;height:7px;border-radius:3px;border:1px solid transparent}.close-container--desktop,.close-container--mobile{height:22px;width:22px;border-radius:22px;background-color:#fff;align-items:center;justify-content:center}.close-container--desktop{top:25px;right:25px}.close-container--mobile{top:15px;right:10px}.close-container{background:transparent;box-sizing:border-box;display:flex;position:absolute}.close-btn{height:18px;width:18px;align-items:center;justify-content:center;display:flex;cursor:pointer}.ul-app__container{transition:opacity .3s ease-out}.ul-center-horizontally{text-align:center}#ul-progress-bar-container{width:100%;height:2px;background-color:rgba(0,0,0,.1);border-radius:2px;max-width:250px;margin:25px 0}#ul-progress-bar-current{width:0px;height:0;border-radius:2px}.prototype-button{width:100%;background:rgba(0,0,0,.01);border:1.5px solid #e6e6e6;border-radius:4px 0 0 4px;flex:none;flex-grow:1;margin:0;padding:20px 0;font-size:14px;font-family:inherit;text-decoration:underline}.prototype-button:hover{cursor:pointer}'};var $n=({border:e,label:r,selected:t,index:n,id:i,onSelect:a,isRadio:o,useMobileStyling:u,error:s})=>c=>{let{viewDocument:f}=c.app,d=E=>{let _=f.getElementById(`choice-div-${i}`),b=f.getElementById(`radio-${i}`);_&&(_.style.borderColor=e),b&&(b.style.borderWidth="6px",b.style.borderColor=e,b.style.boxShadow="none")},v=E=>{let _=f.getElementById(`choice-div-${i}`),b=f.getElementById(`radio-${i}`);_&&(_.style.borderColor=s?xt:Er),b&&(b.style.borderWidth="1px",b.style.borderColor="#323232",b.style.boxShadow="inset 3px 3px 0px rgba(0, 0, 0, 0.1)")},q=E=>{E.stopPropagation(),v(E),a(i)},h=E=>{(E.keyCode==13||E.keyCode==32)&&q(E)},m={onclick:E=>q(E),onkeypress:E=>h(E)};"ontouchstart"in f.documentElement?(m.ontouchstart=d,m.ontouchcancel=v,m.ontouchmove=v,m.ontouchend=v):(m.onmousedown=d,m.onmouseleave=v);let y=o?`radio-${i}`:`checkbox-${i}`;return g("div",G({style:s&&{borderColor:xt},className:F(qe(x.CHOICE_CLASS,u)),id:`choice-div-${i}`},m),!o&&g("div",{className:x.CHOICE_CHECKBOX_CLASS,id:y,style:t?{backgroundColor:e,borderColor:e,boxShadow:"none"}:{},role:"checkbox","aria-labelledby":`${x.QUESTION_HEADER_CLASS} label-${i}`,"aria-checked":t,tabindex:0},t&&g("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g("path",{d:"M9.15377 1.30774L4.07685 8.23082L1.30762 5.00005",stroke:"white","stroke-width":"2","stroke-linecap":"round"}))),o&&g("div",{className:x.CHOICE_RADIO_CLASS,id:y,role:"radio","aria-labelledby":`${x.QUESTION_HEADER_CLASS} label-${i}`,tabindex:0}),g("label",{className:F(qe(x.CHOICE_LABEL_CLASS,u)),for:y,id:`label-${i}`},r))};var Jd=({handleClick:e,buttonText:r=ua})=>g("button",{className:"prototype-button",onclick:e,key:"prototype-btn"},r);var ar=e=>e&&e.captionText&&g(H_,{content:e.captionText}),or=(e,r)=>e?g("p",{id:x.QUESTION_HEADER_CLASS,className:x.QUESTION_HEADER_CLASS,role:"heading"},r):g("p",{id:x.QUESTION_HEADER_CLASS,className:x.QUESTION_HEADER_CLASS,style:"margin-bottom: 15px",role:"heading"},r),bt=e=>e&&e.buttonText||"Next",ef=e=>e&&e.skipButtonText||"Skip",qte=({content:e,hasCaption:r})=>r?g("p",{id:x.QUESTION_HEADER_CLASS,className:x.QUESTION_HEADER_CLASS,role:"heading"},e):g("p",{id:x.QUESTION_HEADER_CLASS,className:x.QUESTION_HEADER_CLASS,style:"margin-bottom: 15px",role:"heading"},e),H_=({content:e})=>g("p",{id:x.CAPTION_CLASS,className:x.CAPTION_CLASS},e),et=({content:e,handleClick:r,backgroundColor:t,classNames:n})=>{let i="ul-card-text__button "+n||"";return g("button",{id:"ul-card-text__button",className:i,style:{backgroundColor:t},onclick:r,role:"button","aria-labelledby":`${x.QUESTION_HEADER_CLASS} ul-card-text__button`},e)},G_=({content:e,caption:r})=>g("div",null,g(qte,{content:e,hasCaption:!!r}),r&&H_({content:r})),z_=(e,r,t)=>{e.preventDefault(),r.handleClickEmbedButton(t)},ze=(e,r,t,n,i="web")=>{let a=window.innerWidth<qs,o=r&&r.conceptUrl;return a&&!e&&o&&["email","link"].includes(i)?g(Jd,{handleClick:u=>{z_(u,t,Ie.name.VIEW_PROTOTYPE_CLICK)}}):n()},K_=(e,r,t,n,i="web")=>{let a=window.innerWidth<qs,o=r&&r.consentDocument&&r.consentDocument.url;return a&&!e&&o&&["email","link"].includes(i)?g(Jd,{handleClick:u=>{z_(u,t,Ie.name.VIEW_AGREEMENT_CLICK)},buttonText:r&&r.viewDocumentText||Cf}):n()};var W_=({className:e,message:r,properties:t,next:n,questionId:i,type:a})=>(o,u)=>{let s=F([e,"ul-card__consent-legal",x.FADE_IN_CLASS]),{useMobileStyling:c,border:f,headers:d,hasViewedEmbed:v}=o.app,q=d["userleap-platform"],{app:h}=u,{isConsentSelected:m,isNamePresent:y,isSubmitEnabled:E,name:_,hasValidationError:b}=o.consentLegal,{onNameTextChange:A,reset:O,setValidationError:j,updateIsConsentSelected:k}=u.consentLegal,L=t&&t.collectName,Y=t&&t.nameLabelText||"Full Name",T=t&&t.consentText||"I agree to the stated conditions",Q=t&&t.submitButtonText||"Submit",S=ce=>{if(ce.preventDefault(),ce.stopPropagation(),!E){j();return}let ye={submitted:!0};L&&(ye.name=_),n({value:ye,questionId:i,type:a}),O()},R=ce=>{ce.preventDefault(),ce.stopPropagation(),A(ce.target.value)},I=()=>{k(L)},C=ce=>{ce.target.style.borderColor=b&&!y?xt:f},X=ce=>{ce.target.style.borderColor=b&&!y?xt:Er},ve=()=>g("div",null,g($n,{error:b&&!m,border:f,index:0,label:T,onSelect:I,selected:m,id:0,isRadio:!1,useMobileStyling:c}),L&&g("input",{style:b&&!y&&{borderColor:xt},"data-gramm":"false",maxlength:"250",className:F(qe(x.CONSENT_LEGAL_NAME_INPUT,c)),name:"name",placeholder:Y,"aria-placeholder":Y,value:_,oninput:R,onfocus:C,onblur:X,tabindex:0,"aria-label":Y}),g("div",{className:"ul-card__button-wrapper"},g("button",{id:"ul-card-text__button",className:"ul-card-text__button",style:E?{backgroundColor:f}:{backgroundColor:"rgba(0, 0, 0, 0.1)",color:"rgba(0, 0, 0, 0.2)"},onclick:S,role:"button","aria-labelledby":`${x.QUESTION_HEADER_CLASS} ul-card-text__button`},Q)));return g("div",{className:F(ge(x.CARD_MAIN_CONTENT,q))},g("div",{className:s,key:i},g("p",{id:x.QUESTION_HEADER_CLASS,className:x.QUESTION_HEADER_CLASS},r),g("div",{id:"ul-card__consent-legal-body-container",className:"ul-rich-text-body",innerHTML:t&&t.richTextBody}),K_(v,t,h,ve,q)))};var Y_=({border:e,className:r,labels:t,message:n,properties:i,next:a,questionId:o,type:u})=>(s,c)=>{let{useMobileStyling:f,deck:{index:d},headers:v,viewDocument:q,hasViewedEmbed:h}=s.app,{app:m}=c,y=F([r,"ul-card--likert",x.FADE_IN_CLASS]),E=v["userleap-platform"],_=t&&t.left,b=t&&t.right,A=[...Array(5)].map((k,L)=>{let Y=L+1,T=`option-${Y}`,Q=C=>{C.target.style.zIndex=2,C.target.style.borderColor=e},S=C=>{C.target.style.zIndex="auto",C.target.style.borderColor=Er},R=C=>{(C.keyCode==13||C.keyCode==32)&&a({value:Y,questionId:o,type:u})},I={onclick:()=>a({value:Y,questionId:o,type:u}),onkeypress:C=>R(C)};return"ontouchstart"in q.documentElement?(I.ontouchstart=Q,I.ontouchcancel=S,I.ontouchmove=S,I.ontouchend=S):(I.onmousedown=Q,I.onmouseleave=S),g("div",se(G({id:T,className:F([...qe(x.LIKERT_NUMBER_CLASS,f),...qe(`${x.LIKERT_NUMBER_CLASS}-${Y}`,f)])},I),{"aria-labelledby":`${x.QUESTION_HEADER_CLASS} ${T}`,role:"textbox",tabindex:0,"aria-describedby":x.CAPTION_CLASS}),Y)}),O=ar(i),j=()=>g("div",null,d%2===0&&g("div",null),g("div",{className:"ul-card--likert__numbers"},A),g("div",{className:"ul-card--likert__labels"},g("span",null,_),g("span",null,b)));return g("div",{className:F(ge(x.CARD_MAIN_CONTENT,E))},g("form",{className:y,key:o},or(O,n),O,ze(h,i,m,j,E)))};var Q_=({className:e,border:r,message:t,properties:n,options:i=[],next:a,questionId:o,type:u})=>(s,c)=>{let{useMobileStyling:f,headers:d,hasViewedEmbed:v}=s.app,{app:q}=c,h=F([e,"ul-card--multiple",x.FADE_IN_CLASS]),m=d["userleap-platform"];function y(A,O){a({value:{[A]:O},questionId:o,type:u})}let E=i.map(({id:A,label:O,value:j},k)=>g($n,{border:r,index:k,label:O,tabindex:k+1,onSelect:y.bind(null,A,j),id:A,isRadio:!0,useMobileStyling:f})),_=ar(n),b=()=>g("div",{className:F(qe(x.CHOICE_GROUP_CLASS,f)),role:"radiogroup","aria-labeledby":x.QUESTION_HEADER_CLASS},E);return g("div",{className:F(ge(x.CARD_MAIN_CONTENT,m))},g("div",{className:h,key:o},or(_,t),_,ze(v,n,q,b,m)))};var X_=({className:e,border:r,message:t,properties:n,options:i=[],isLast:a,next:o,questionId:u,type:s})=>(c,f)=>{let d=F([e,"ul-card--multiple",x.FADE_IN_CLASS]),{selectedOptions:v}=c.multipleSelect,{init:q,reset:h,updateSelected:m}=f.multipleSelect,{useMobileStyling:y,headers:E,hasViewedEmbed:_}=c.app,{app:b}=f,A=E["userleap-platform"],O=()=>{let T={};i.forEach(Q=>{T[Q.id]=!1}),q(T)},j=T=>{T.preventDefault(),T.stopPropagation(),o({value:c.multipleSelect.selectedOptions,questionId:u,type:s}),h()},k=i.map(({id:T,label:Q,value:S},R)=>g($n,{border:r,index:R,label:Q,onSelect:m,selected:v[T],id:T,isRadio:!1,useMobileStyling:y})),L=ar(n),Y=()=>g("div",null,g("div",{className:F(qe(x.CHOICE_GROUP_CLASS,y)),role:"radiogroup"},k),g("div",{className:"ul-card__button-wrapper"},g("button",{id:"ul-card-text__button",className:"ul-card-text__button",style:{backgroundColor:r},onclick:j,role:"button","aria-labelledby":`${x.QUESTION_HEADER_CLASS} ul-card-text__button`},bt(n))));return g("div",{className:F(ge(x.CARD_MAIN_CONTENT,A))},g("form",{id:"text-form",className:d,onsubmit:j,oncreate:T=>O(T),key:u},or(L,t),L,ze(_,n,b,Y,A)))};var Z_=({border:e,className:r,labels:t,message:n,properties:i,next:a,questionId:o,type:u})=>(s,c)=>{let{useMobileStyling:f,deck:{index:d},headers:v,viewDocument:q,hasViewedEmbed:h}=s.app,{app:m}=c,y=F([r,"ul-card--nps",x.FADE_IN_CLASS]),E=v["userleap-platform"],_=t&&t.left,b=t&&t.right,A=[...Array(11)].map((k,L)=>{let Y=L,T=`option-${Y}`,Q=C=>{C.target.style.zIndex=2,C.target.style.borderColor=e},S=C=>{C.target.style.zIndex="auto",C.target.style.borderColor=Er},R=C=>{(C.keyCode==13||C.keyCode==32)&&a({value:Y,questionId:o,type:u})},I={onclick:()=>a({value:Y,questionId:o,type:u}),onkeypress:C=>R(C)};return"ontouchstart"in q.documentElement?(I.ontouchstart=Q,I.ontouchcancel=S,I.ontouchmove=S,I.ontouchend=S):(I.onmousedown=Q,I.onmouseleave=S),g("div",se(G({className:F([...qe(x.NPS_NUMBER_CLASS,f),...qe(`${x.NPS_NUMBER_CLASS}-${Y}`,f)])},I),{"aria-labelledby":`${x.QUESTION_HEADER_CLASS} ${T}`,role:"radio",tabindex:0,id:T}),Y)}),O=ar(i),j=()=>g("div",null,d%2===0&&g("div",null),g("div",{className:"ul-card--nps__numbers"},A),g("div",{className:"ul-card--nps__labels"},g("span",null,_),g("span",null,b)));return g("div",{className:F(ge(x.CARD_MAIN_CONTENT,E))},g("form",{className:y,key:o},or(O,n),O,ze(h,i,m,j,E)))};var r5=oa(e5());var t5=({className:e,message:r,properties:t,next:n,questionId:i,type:a})=>(o,u)=>{let{useMobileStyling:s,border:c,headers:f,viewDocument:d,hasViewedEmbed:v}=o.app,{app:q}=u,h=F([e,"ul-card--text",x.FADE_IN_CLASS]),m=f["userleap-platform"],y=()=>o.openText.value.trim(),E=L=>{if(L.preventDefault(),L.stopPropagation(),!d.forms["text-form"])return;let T=y();n({value:T,questionId:i,type:a}),o.openText.value=""},_=L=>{L.preventDefault(),L.stopPropagation(),u.openText.onTextChange(L.target.value)},b=ar(t),A=t&&t.openTextPlaceholder?t.openTextPlaceholder:null,O=L=>{L.target.style.borderColor=c},j=L=>{L.target.style.borderColor=Er},k=()=>g("div",{className:"ul-card-text"},g("div",{className:"ul-card-text__container"},g("textarea",{"data-gramm":"false",maxlength:"5000",className:F(qe(x.OPEN_TEXT_INPUT,s)),name:"text",placeholder:A,"aria-placeholder":A,"aria-multiline":"true",value:o.openText.value,oncreate:r5.default,oninput:_,onfocus:O,onblur:j,tabindex:0,"aria-labelledby":x.QUESTION_HEADER_CLASS,contenteditable:"true",role:"textbox","aria-label":A})),g("button",{id:"ul-card-text__button",className:"ul-card-text__button",style:{backgroundColor:c},onclick:E,role:"button","aria-labelledby":`${x.QUESTION_HEADER_CLASS} ul-card-text__button`},bt(t)));return g("div",{className:F(ge(x.CARD_MAIN_CONTENT,m))},g("form",{id:"text-form",className:h,key:i},or(b,r),b,ze(v,t,q,k,m)))};var Me={AV_PERMISSION:"av_permission",SCREEN_PERMISSION:"screen_permission",START_TASK:"start_task",COMPLETE_TASK:"complete_task"},n5={currentPage:void 0,screenPermissionRequested:!1,avStream:void 0,nextQuestion:void 0},i5=Object.create(n5),a5={updatePage:e=>r=>G(G({},r),e),reset:()=>e=>G(G({},e),n5)};var rf={CAMERA:"camera",MIC:"microphone"};function tf(e,r,t,n){let{eventEmitter:i}=e.app,{avStream:a,recordingMediaTypes:o}=e.recordTask,{updatePage:u,completeTask:s,screenPermissionRequested:c}=r.recordTask;i.emit(Pe.AV_PERMISSION,{[H.PERMISSION_DESCRIPTORS]:t.permissionDescriptors,[H.STREAM_READY_CALLBACK]:f=>{if(a===f)return;let d=t;if(f&&!t.permissionDescriptors.includes(rf.CAMERA)){let v=n.indexOf(t),q=c?v+2:v+1;c&&i.emit(Pe.BEGIN_RECORDING,{[H.RECORDING_MEDIA_TYPES]:o}),d=n[q]}u({currentPage:d,avStream:f})},[H.STREAM_CANCELLED_CALLBACK]:()=>{s(e,r,H.ABANDONED)}})}function o5(e,r,t,n,i,a,o){let{updatePage:u}=r.recordTask,{surveyId:s,responseGroupUid:c,userId:f}=e.app,d={questionId:o,surveyId:s,visitorId:f,responseGroupUid:c},v=0;t.emit(Ie.name.RECORDED_TASK_PERMISSION_SCREEN),t.emit(Pe.PERMISSION_STATUS,{[H.PERMISSION_STATUS_CALLBACK]:(h,m,y,E)=>{let{type:_,permissionDescriptors:b}=n[v],A=[Mr.SCREEN];if(_===Me.AV_PERMISSION){let O=b==null?void 0:b.includes(rf.MIC),j=b==null?void 0:b.includes(rf.CAMERA);O&&A.push(Mr.AUDIO),j&&A.push(Mr.VIDEO),h&&!j&&v++}n[v].type===Me.SCREEN_PERMISSION&&E&&(v++,t.emit(Pe.BEGIN_RECORDING,{[H.RECORDING_MEDIA_TYPES]:A})),u({currentPage:n[v],avStream:h,screenPermissionRequested:E,nextQuestion:i,type:_,passthroughData:d,recordingMediaTypes:A})}});let q=n[v];return q.type===Me.AV_PERMISSION&&tf(e,r,q,n),q}function Vn(e,r,t){let{eventEmitter:n}=e.app,{nextQuestion:i,type:a,passthroughData:o,mediaRecordingUids:u}=e.recordTask,{reset:s}=r.recordTask,c={value:{taskStatus:t},type:a,questionId:o.questionId};n.emit(Pe.FINISH_TASK,{[H.PASSTHROUGH_DATA]:o,[H.CURRENT_INDEX]:e.app.deck.index,[H.TASK_RESPONSE]:c,[H.TASK_COMPLETE_CALLBACK]:f=>{c.value.taskDurationMillisecond=f,c.value.mediaRecordingUids=u,s(),i(c)}})}function fs(e,r,t){let{eventEmitter:n}=e.app,{currentPage:i,recordingMediaTypes:a,screenPermissionRequested:o}=e.recordTask,{updatePage:u}=r.recordTask,s=t.indexOf(i);switch(i.type){case Me.AV_PERMISSION:{let c=o?s+2:s+1;o&&n.emit(Pe.BEGIN_RECORDING,{[H.RECORDING_MEDIA_TYPES]:a,[H.START_RECORDING_CALLBACK]:f=>{u({mediaRecordingUids:f})}}),u({currentPage:t[c]});return}case Me.SCREEN_PERMISSION:n.emit(Pe.SCREEN_PERMISSION,{[H.STREAM_READY_CALLBACK]:c=>{let f=c?t[s+1]:i;c&&n.emit(Pe.BEGIN_RECORDING,{[H.RECORDING_MEDIA_TYPES]:a,[H.START_RECORDING_CALLBACK]:d=>{u({mediaRecordingUids:d})}}),u({currentPage:f,screenPermissionRequested:!0})},[H.STREAM_CANCELLED_CALLBACK]:()=>{Vn(e,r,H.ABANDONED)}});return;case Me.START_TASK:n.emit(Ie.name.RECORDED_TASK_START),n.emit(Pe.START_TASK),u({currentPage:t[s+1],screenPermissionRequested:!0});return;case Me.COMPLETE_TASK:return}}var{INACTIVE_BUTTON:s5,CHECKMARK_BUTTON:Xqe,LEFT_ALIGN_BUTTON:Ete}=x,u5="ul-permission-graphics-container",l5="ul-permission-body",c5=s5+" ul-record-task-skip-button",d5=({richTextBody:e})=>g("dispatchEvent",{className:"ul-rich-text-body",innerHTML:e}),bte=({content:e,pages:r})=>(t,n)=>g("div",{className:"ul-task-page"},g(d5,{richTextBody:e.taskDetail}),g("div",{className:"ul-horizontal-button-container"},g(et,{content:e.buttonText,handleClick:fs.bind(null,t,n,r),backgroundColor:t.app.border,classNames:Ete}))),Ste=({content:e,pages:r})=>(t,n)=>g("div",{className:"ul-task-page"},g(d5,{richTextBody:e.taskDetail}),g("div",{className:"ul-horizontal-button-container"},g(et,{content:e.buttonText,handleClick:Vn.bind(null,t,n,H.COMPLETED),backgroundColor:t.app.border,classNames:"ul-complete-task-button"}),g(et,{content:e.skipButtonText,handleClick:Vn.bind(null,t,n,H.GIVEN_UP),backgroundColor:t.app.border,classNames:c5}))),Ite=({content:e,pages:r})=>(t,n)=>{let{screenPermissionRequested:i}=t.recordTask,{buttonText:a,skipButtonText:o}=e,u=g(et,{content:a,handleClick:fs.bind(null,t,n,r,n.app.next),backgroundColor:t.app.border}),s=i&&g(et,{content:o,handleClick:Vn.bind(null,t,n,H.ABANDONED),classNames:c5});return g("div",null,g("div",{className:u5},g("p",{style:"margin-top: auto;"},e.selectTabText),g("div",{className:"ul-select-tab-container"},g("p",{className:l5},t.app.tabTitle))),s?g("div",{className:"ul-horizontal-button-container"},u,s):u)},xte=({content:e})=>g("div",{className:"ul-center-horizontally",innerHTML:e.svg}),wte=({content:e,pages:r})=>(t,n)=>{let{permissionDeniedHeadline:i,permissionDeniedBody:a,skipButtonText:o,tryAgainButtonText:u}=e;return g("div",null,g("div",{className:u5},g("p",{className:"ul-av-permission-denied-paragraph"},g("span",{className:"ul-av-permission-denied-headline"},i),g("span",{className:l5},a))),g(et,{content:u,handleClick:tf.bind(null,t,n,r[0],r),backgroundColor:t.app.border}),g(et,{content:o,handleClick:Vn.bind(null,t,n,H.ABANDONED),classNames:s5}))},Ate=({content:e,pages:r})=>(t,n)=>{let{avStream:i}=t.recordTask;return g("div",null,g("video",{id:"ul-record-task-video-preview",srcObject:i,autoplay:!0,muted:!0}),g(et,{content:e.buttonText,handleClick:fs.bind(null,t,n,r),backgroundColor:t.app.border}))},f5=({currentPage:e,pages:r})=>(t,n)=>{if(e===void 0)return null;let{avStream:i}=t.recordTask;switch(e.type){case Me.AV_PERMISSION:return i===void 0?g(xte,{content:e}):i?g(Ate,{content:e,pages:r}):g(wte,{content:e,pages:r});case Me.SCREEN_PERMISSION:return g(Ite,{content:e,pages:r});case Me.START_TASK:return g(bte,{content:e,pages:r});case Me.COMPLETE_TASK:return g(Ste,{content:e,pages:r});default:return null}};var v5=({className:e,properties:r,next:t,questionId:n,type:i})=>(a,o)=>{let{border:u,headers:s,eventEmitter:c}=a.app,{screenPermissionRequested:f,avStream:d}=a.recordTask,{currentPage:v}=a.recordTask;v||(v=o5(a,o,c,r.pages,t,i,n));let q=v.headline,h=v.captionText;v.type===Me.SCREEN_PERMISSION&&f&&(q=v.permissionDeniedHeadline,h=v.permissionDeniedCaptionText),v.type===Me.AV_PERMISSION&&d&&(q=v.permissionGrantedHeadline,h=v.permissionGrantedCaptionText);let m=F([e,"ul-card--record__task","ul-center-horizontally",x.FADE_IN_CLASS]);return g("div",{className:F([...ge(x.CARD_MAIN_CONTENT,s["userleap-platform"])])},g("div",{className:m},g(G_,{content:q,caption:h}),g(f5,{currentPage:v,pages:r.pages})))};var _te={"{{user_id}}":"externalUserId","{{email}}":"email"},p5=(e=void 0,r={})=>{if(!e)return e;let t=e,n=[];for(let[s,c]of Object.entries(_te))if(t.toLowerCase().includes(s))if(r[c]){let f=new RegExp(s,"gi");t=t.replace(f,r[c])}else n.push(s);if(n.length===0||!t.includes("?"))return t;let i=t.slice(0,t.indexOf("?")),o=t.slice(t.indexOf("?")+1).split("&").map(s=>s.split("=")).filter(s=>!n.includes(s[1]));if(o.length===0)return i;let u=o.map(s=>s.join("=")).join("&");return`${i}?${u}`};var g5=({className:e,message:r,properties:t,next:n,questionId:i,type:a})=>(o,u)=>{let s=F([e,"ul-card__text-url-prompt",x.FADE_IN_CLASS]),{border:c,headers:f,visitorAttributes:d,hasViewedEmbed:v}=o.app,{app:q}=u,h=f["userleap-platform"],m=b=>{n({value:void 0,questionId:i,type:a})},y=b=>{(b.keyCode==13||b.keyCode==32)&&n({value:void 0,questionId:i,type:a})},E=()=>g("a",{id:"ul-card-text__button",className:"ul-card-text__button ul-card__text-url-prompt-button",style:{backgroundColor:c,"margin-right":"auto","text-overflow":"ellipsis",textDecoration:"none",overflow:"visible"},onclick:m,onkeypress:y,href:p5(t&&t.buttonUrl,d),target:"_blank",role:"button",tabindex:0,"aria-labelledby":`${x.QUESTION_HEADER_CLASS} ul-card-text__button`,"aria-describedby":"ul-card__text-url-body-container"},bt(t)),_=(b,A)=>b?g("div",{id:"ul-card__text-url-body-container",className:"ul-rich-text-body",innerHTML:b}):g("div",{id:"ul-card__text-url-body-container",className:"ul-rich-text-body"},(A?A.split(/\n\s*\n/g):[]).map(O=>g("p",null,O)));return g("div",{className:F(ge(x.CARD_MAIN_CONTENT,h))},g("div",{className:s,key:i},g("p",{id:x.QUESTION_HEADER_CLASS,className:x.QUESTION_HEADER_CLASS},r),_(t&&t.richTextBody,t&&t.body),ze(v,t,q,E,h)))};var h5=({endCard:e,border:r,className:t,questionId:n})=>(i,a)=>{let o=F([t,"ul-card--thanks",x.FADE_IN_CLASS]),u=e&&e.subheader?g("p",{className:x.CAPTION_CLASS},e.subheader):null,s=e&&e.headline?e.headline:null;return g("div",{className:F(ge(x.CARD_MAIN_CONTENT,i.app.headers["userleap-platform"]))},g("div",{className:o,key:n},g("div",{oncreate:()=>a.app.complete()},g("div",{className:"ul-card--thanks-content"},g("div",{className:"ul-thanks-check"},g("svg",{width:"81",height:"99",viewBox:"0 0 81 99",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"title"},g("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M40.5 77C60.9345 77 77.5 60.4345 77.5 40C77.5 19.5655 60.9345 3 40.5 3C20.0655 3 3.5 19.5655 3.5 40C3.5 60.4345 20.0655 77 40.5 77ZM80.5 40C80.5 62.0914 62.5914 80 40.5 80C18.4086 80 0.5 62.0914 0.5 40C0.5 17.9086 18.4086 0 40.5 0C62.5914 0 80.5 17.9086 80.5 40Z",fill:r}),g("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M55.025 22.9046C55.6299 23.4705 55.6616 24.4198 55.0956 25.0247C54.8724 25.2634 54.6109 25.5285 54.3157 25.8277C52.2547 27.9168 48.5549 31.667 44.8135 39.6658C43.2818 42.9406 42.0864 45.8386 41.0823 48.2729C40.6539 49.3116 40.2603 50.2659 39.8902 51.129C39.287 52.5359 38.7248 53.7508 38.1744 54.625C37.8997 55.0613 37.5806 55.4905 37.2017 55.8245C36.8201 56.1607 36.2613 56.5 35.5457 56.5C34.6742 56.5 34.0892 55.9692 33.7774 55.6083C33.4502 55.2296 33.1752 54.7511 32.9396 54.301C32.7305 53.9013 32.5088 53.4367 32.2797 52.9565C32.2429 52.8794 32.2059 52.8019 32.1688 52.7243C31.8942 52.1499 31.5959 51.534 31.2537 50.8868C29.8886 48.305 27.8539 45.2878 24.2343 43.1382C23.522 42.7152 23.2875 41.7949 23.7105 41.0826C24.1335 40.3703 25.0539 40.1358 25.7662 40.5588C30.0556 43.1062 32.4149 46.6647 33.9058 49.4845C34.2776 50.1876 34.5973 50.8487 34.8753 51.4302C34.9147 51.5124 34.9529 51.5926 34.9902 51.6707C35.2222 52.1567 35.4164 52.5637 35.5978 52.9102C35.6151 52.9434 35.6321 52.9754 35.6485 53.0061C36.0565 52.3531 36.5341 51.3434 37.133 49.9468C37.4781 49.1418 37.8572 48.2229 38.2761 47.2074C39.2886 44.7532 40.5339 41.7347 42.0961 38.3948C46.0591 29.9221 50.0641 25.8648 52.1535 23.7482C52.4423 23.4556 52.6944 23.2002 52.9048 22.9753C53.4708 22.3703 54.42 22.3387 55.025 22.9046ZM35.1994 53.5892C35.1994 53.5892 35.2 53.5888 35.2012 53.5879C35.2 53.5889 35.1994 53.5893 35.1994 53.5892ZM36.0666 53.6682C36.0732 53.674 36.0765 53.6775 36.0765 53.6777C36.0765 53.678 36.0732 53.6751 36.0666 53.6682Z",fill:r}),g("path",{d:"M69.5 97C69.5 98.1046 56.2924 99 40 99C23.7076 99 10.5 98.1046 10.5 97C10.5 95.8954 23.7076 95 40 95C56.2924 95 69.5 95.8954 69.5 97Z",fill:"black","fill-opacity":"0.2"}))),g("p",{className:x.QUESTION_HEADER_CLASS,id:x.QUESTION_HEADER_CLASS},s),u))))};var m5=({border:e,className:r})=>(t,n)=>{let i=F([r,"ul-card--uploading",x.FADE_IN_CLASS]),{app:{uploadProgress:a}}=t,o,u;Object.values(a).filter(c=>c.isSubmitted).length>1?(o="Your responses are processing",u="Please keep this tab open until your responses are fully processed."):(o="Your response is processing",u="Please keep this tab open until your response is fully processed.");let s=Math.round(Math.min(99,...Object.values(a).filter(c=>c.isSubmitted).map(c=>c.progressPct)));return g("div",{className:F(ge(x.CARD_MAIN_CONTENT,t.app.headers["userleap-platform"])),oncreate:()=>n.app.handleUploadUpdate(n.destroy)},g("div",{className:i,key:Re.UPLOADING},g("div",{className:x.LOADING_SPINNER_CONTAINER,"aria-live":"polite","aria-label":"Processing...","aria-busy":"true"},g("div",{className:x.LOADING_SPINNER},g("div",{className:x.LOADING_SPINNER_FIRST}),g("div",{className:x.LOADING_SPINNER_SECOND}),g("div",{className:x.LOADING_SPINNER_THIRD}),g("div",{className:x.LOADING_SPINNER_FOURTH}))),g("p",{className:x.QUESTION_HEADER_CLASS,id:x.QUESTION_HEADER_CLASS},`${o} (${s}% complete)`),g("p",{className:x.CAPTION_CLASS},u)))};var Ht="https://cdn.sprig.com",N={document:void 0,videojs:void 0},Rte=`/* progress control styles */
|
|
12
12
|
.video-js .vjs-control {
|
|
13
13
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
|
14
14
|
}
|
|
@@ -215,6 +215,12 @@ span.ul-button-text {
|
|
|
215
215
|
border: none;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
+
#video-response-player-secondary-video-player {
|
|
219
|
+
max-width: 200px;
|
|
220
|
+
margin-right: 20px;
|
|
221
|
+
background-color: transparent;
|
|
222
|
+
}
|
|
223
|
+
|
|
218
224
|
#ul-card-video__player_recorder-video-recorder.vjs-fullscreen {
|
|
219
225
|
display: table;
|
|
220
226
|
}
|
|
@@ -265,10 +271,10 @@ span.ul-button-text {
|
|
|
265
271
|
left: 0px;
|
|
266
272
|
top: 0px;
|
|
267
273
|
|
|
268
|
-
background-color:
|
|
274
|
+
background-color: transparent;
|
|
269
275
|
border-radius: 4px;
|
|
270
276
|
|
|
271
|
-
align-items:
|
|
277
|
+
align-items: start;
|
|
272
278
|
display: flex;
|
|
273
279
|
flex-direction: column;
|
|
274
280
|
|
|
@@ -659,7 +665,7 @@ span.ul-button-text {
|
|
|
659
665
|
.vjs-poster {
|
|
660
666
|
background-size: cover;
|
|
661
667
|
}
|
|
662
|
-
`,Ite=e=>{let r=D.document.createElement("div");return r.className="ul-video-player-loading",r.id=of(e),["first","second","third","fourth"].map(t=>{let n=D.document.createElement("div");n.className=t,r.appendChild(n)}),r},of=e=>e+"-loading-spiner",oe="hidden",Hn="visible",v_=".m3u8",rf="ul-video-recorder-camera-off-button",tf="ul-recording-in-session",xte=[{type:"link",content:`${Ht}/dependencies/videojs-record-4.5.0.min.css`},{type:"script",content:`${Ht}/dependencies/RecordRTC-5.6.2.js`},{type:"script",content:`${Ht}/dependencies/adapter.8.0.0.min.js`},{type:"script",content:`${Ht}/dependencies/videojs-record-4.5.0.min.js`},{type:"script",content:`${Ht}/userleap-web-upchunk-v2.2.2.js`}],p_=[{type:"link",content:`${Ht}/dependencies/video-js-7.18.0.min.css`},{type:"script",content:`${Ht}/dependencies/video-js-7.18.0.min.js`},{type:"style",content:Ste}],gs="-video-player",sf="-video-recorder",Mr,nf,bt=async({event:e,apiBase:r,headers:t,visitorId:n,envId:a,metadata:i})=>{let s=D.document.documentElement;if(!n||!a)return;let u={event:`SDK - ${e}`,visitorId:n,environmentId:a,metadata:ue(z({},i||{}),{screenWidth:window.screen.width,screenHeight:window.screen.height,clientWidth:s.clientWidth,clientHeight:s.clientHeight,location:window.location.href,language:navigator.language})};(await fetch(`${r}/sdk/1/visitors/${n}/analytics`,{method:"POST",cache:"no-cache",headers:t,body:JSON.stringify(u)})).ok||console.warn("[Sprig] (ERR-444) Failed to track analytics",e)},Gt=async(e,r,t,n,a,i)=>{bt({event:`Video Error ${r}`,apiBase:t,headers:n,visitorId:a,envId:i,metadata:{errorMessage:e.message}});let s=D.document.documentElement,u={screenWidth:window.screen.width,screenHeight:window.screen.height,clientWidth:s.clientWidth,clientHeight:s.clientHeight,location:window.location.href,language:navigator.language},o={action:r,err:{message:e.message,stack:e.stack},meta:u,vid:a,envId:i};(await fetch(`${t}/sdk/1/errors`,{method:"POST",cache:"no-cache",headers:ue(z({},n),{"userleap-platform":"video_recorder","x-ul-error":window.btoa(`userleap-${Date.now()}-error`)}),body:JSON.stringify(o)})).ok||console.warn("[Sprig] (ERR-444) Failed to report error to API",e)},wte=(e,{type:r,content:t})=>new Promise(function(n,a){let i;r==="script"?(i=D.document.createElement("script"),i.src=t):r==="link"?(i=D.document.createElement("link"),i.rel="stylesheet",i.href=t,i.type="text/css"):(i=D.document.createElement("style"),i.innerHTML=t),i.onload=function(){n(t)},i.onerror=function(){a(t)},i.async=!1,i.id=btoa(t),e.appendChild(i)}),g_=(e,r)=>{if(e.length===0)return r&&r();Promise.all(e.reduce((t,n)=>(t.push(wte(D.document.head,n)),t),[])).then(()=>{D.videojs=D.document.defaultView.videojs,r&&r()}).catch(function(t){console.log(t+" failed to load")})},af=(e,r,t)=>{if(r==="start"&&(e.style.visibility="visible"),r==="none")e.style.visibility=oe;else if(r==="success")e.style.visibility=oe,e.innerHTML="Upload succeeded!";else{let n=Math.round(parseFloat(t));e.innerHTML=`Uploading <span class="ul-upload-progress-label__time">${n}%</span>`,e.style.background=`linear-gradient(to right, #E0E0EB 0%, #E0E0EB ${n}%, #FCFCFD ${n}%, #FCFCFD 100%)`}},Ate=(e,r,t,n,a)=>{let{surveyId:i,questionId:s,responseGroupUid:u,visitorId:o,envId:c}=e.payload;e.on("deviceError",function(){console.log("device error:",e.deviceErrorCode),e.deviceErrorCode.message==="Permission denied"?(e.deviceButton.addClass("permission-denied"),t&&t(ce.ERROR,{type:ce.PERMISSION_DENIED}),bt({event:"Video Permission Denied",apiBase:r,headers:a,visitorId:o,envId:c,metadata:{questionId:s,responseGroupUid:u,surveyId:i}})):(t&&t(ce.ERROR,{type:ce.OTHER}),Gt(new Error(e.deviceErrorCode.message),"recorderDeviceError",r,a,o,c))}),e.on("error",function(f,d){Gt(d||e.error(),"recorderError",r,a,o,c)}),e.on("startRecord",function(f,d){n(e.uploadProgressLabel,"none"),bt({event:"Video Record Start",apiBase:r,headers:a,visitorId:o,envId:c,metadata:{questionId:s,responseGroupUid:u,surveyId:i}})}),e.on("finishRecord",async function(){if(n(e.uploadProgressLabel,"start",0),!i){let y="internal error: missing fields in payload";return t&&t(ce.ERROR,{type:ce.OTHER}),Gt(new Error(y),"finishRecord",r,a,o,c),null}e.record().stopDevice();let f=e.cameraOff?ce.MEDIA_TYPE_AUDIO:ce.MEDIA_TYPE_VIDEO,d=$t();bt({event:"Video Record Finish",apiBase:r,headers:a,visitorId:o,envId:c,metadata:{mediaRecordingUid:d,questionId:s,responseGroupUid:u,surveyId:i,mediaType:f}});let v={surveyId:i,updatedAt:new Date().toISOString(),mediaType:f,mediaRecordingUid:d};s&&(v.questionId=s),u&&(v.responseGroupUid=u),o&&(v.visitorId=o);let g=await(async()=>{let y=await fetch(`${r}/2/environments/integrations/upload`,{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:JSON.stringify(v)});if(y.ok){let m=await y.json();return t&&t(ce.UPLOAD_STARTED,{[ce.UPLOAD_ID]:m.upload.id,[ce.MEDIA_TYPE]:f,[ce.MEDIA_RECORDING_UID]:d}),m.upload.url}else return t&&t(ce.ERROR,{type:ce.OTHER,response:y}),Gt(new Error("failed to get upload response with url"),"finishRecord",r,a,o,c),null})();!g||(Mr=D.document.defaultView.UpChunk.createUpload({endpoint:g,file:new D.document.defaultView.File([e.recordedData],`recording ${f} ${Date.now()}`),chunkSize:5120}),Mr.startTime=Date.now(),bt({event:"Video Upload Start",apiBase:r,headers:a,visitorId:o,envId:c,metadata:{mediaRecordingUid:d,questionId:s,responseGroupUid:u,surveyId:i,mediaType:f,url:g}}),Mr.on("error",y=>{n(e.uploadProgressLabel,"none"),Gt(y,"finishRecord",r,a,o,c)}),Mr.on("progress",y=>{n(e.uploadProgressLabel,"progress",y.detail)}),Mr.on("success",()=>{n(e.uploadProgressLabel,"success"),t&&t(ce.UPLOAD_FINISHED),bt({event:"Video Upload Success",apiBase:r,headers:a,visitorId:o,envId:c,metadata:{mediaRecordingUid:d,questionId:s,responseGroupUid:u,surveyId:i,mediaType:f,url:g,elapsedMs:Mr.startTime&&Date.now()-Mr.startTime}})}))})},h_=(e,r)=>{let t=new(D.videojs.getComponent("Component"))(e);return t.addClass("ul-buttons-panel"),r.map(n=>{t.addChild(n)}),_te(t),t},_te=e=>{e.children().forEach(r=>{if(hr[r.name_]){let t=vs(hr[r.name_],`ul-${hr[r.name_]}`);r.el_.appendChild(t)}})},vs=(e,r="")=>{let t=D.document.createElement("span");return t.className="ul-button-text",t.innerHTML=e,t.id=r,t},m_=(e,r,t,n,a=!1)=>{e.addClass("ul-video-player");let i=new(D.videojs.getComponent("Component"))(e);i.addClass("ul-control-panel"),e.progressBar=i.addChild("ProgressControl"),t&&e.src(t),e.audioPlayerPlaceholder=new(D.videojs.getComponent("Component"))(e),e.audioPlayerPlaceholder.addClass("ul-audio-recorder-placeholder");let s=t&&t.src?A_(t.src):null;t&&(a||!s)?(e.children()[0].classList.add("vjs-hidden"),D.document.getElementById(`${e.id()}_html5_api`).style.height="0px"):(e.audioPlayerPlaceholder.hide(),D.document.getElementById(`${e.id()}_html5_api`).style.height="100%",s&&e.poster(s)),e.on("play",()=>{!a&&t&&!s&&ps(e,!1)}),e.addChild(e.audioPlayerPlaceholder,{},1),i.addChild(r),e.addChild(i),n&&n(e)},Rte=(e,r,t,n,a,i,s,u=!1)=>{nf=Date.now();let o={controls:!1,bigPlayButton:!1,fluid:!1,width:1280,height:720,playsinline:!0,plugins:{record:{audio:!0,video:{mandatory:{minWidth:1280,minHeight:720}},frameWidth:1280,frameHeight:720,maxLength:600,autoMuteDevice:!0}}},c=D.videojs(r,o);c.payload=t;let{surveyId:f,questionId:d,responseGroupUid:v,visitorId:q,envId:g}=t,y=O=>{let H=rf,S=rf+"-audio-only";af(c.uploadProgressLabel,"none"),Mr&&Mr.startTime>=nf&&Mr.abort();let I=D.document.getElementById("ul-camera-button");O?(c.children()[0].classList.add("vjs-hidden"),E.removeClass(H),E.addClass(S),I.innerHTML=hr.TurnOnCamera,c.audioPlayerPlaceholder.removeClass("vjs-hidden"),window.navigator.mediaDevices.getUserMedia({video:!0,audio:!0}).then(A=>{c.record().onDeviceReady(A),A.getVideoTracks().forEach(T=>{T.stop()})}).catch(c.record().onDeviceError.bind(c.record()))):(c.children()[0].classList.remove("vjs-hidden"),c.record().getDevice(),E.removeClass(S),E.addClass(H),I.innerHTML=hr.TurnOffCamera,c.audioPlayerPlaceholder.addClass("vjs-hidden"))},m=new(D.videojs.getComponent("Button"))(c,{clickHandler:()=>{m.hasClass(oe)||(bt({event:"Video Delete Button Clicked",apiBase:n,headers:s,visitorId:q,envId:g,metadata:{questionId:d,responseGroupUid:v,surveyId:f}}),y(c.cameraOff),a(ce.DELETE,{}),E.removeClass(oe),m.addClass(oe))}});m.addClass("ul-video-recorder-delete-button"),m.el_.appendChild(vs(hr.DeleteButton,"ul-delete-button"));let b=D.document.getElementById(r),_=()=>{b.classList.contains("vjs-fullscreen")&&c.cameraOff?b.style.display="table":b.style.display="flex"};_();let E=new(D.videojs.getComponent("Button"))(c,{clickHandler:()=>{c.record().isRecording()||(c.cameraOff=!c.cameraOff,bt({event:"Video Camera Button Clicked",apiBase:n,headers:s,visitorId:t.visitorId,envId:t.envId,metadata:{questionId:d,responseGroupUid:v,surveyId:f,cameraOff:c.cameraOff}}),y(c.cameraOff),!m.hasClass(oe)&&m.addClass(oe),a(ce.DELETE,{}),_())}});E.addClass(rf),E.el_.appendChild(vs(hr.TurnOffCamera,"ul-camera-button"));let w=new(D.videojs.getComponent("Button"))(c,{clickHandler:()=>{let O=D.document.getElementById("ul-recorder-toggle");if(c.record().isRecording())c.record().stop(),O&&(O.innerHTML=hr.RecordButton),w.removeClass(tf),m.removeClass(oe);else{let H=D.document.getElementById("ul-recording-countdown-screen");if(H)H.remove(),O&&(O.innerHTML=hr.RecordButton),y(c.cameraOff),a(ce.DELETE,{}),E.removeClass(oe),m.addClass(oe),w.removeClass(tf),M.show();else{w.addClass(tf),M.hide(),E.addClass(oe),m.addClass(oe),O&&(O.innerHTML=hr.StopButton);let S=D.document.createElement("div");S.id="ul-recording-countdown-screen",b.insertBefore(S,b.children[1]),S.style.height=`${b.offsetHeight}px`,y_(c,3)}}}});w.addClass("ul-video-recorder-toggle-button"),w.el_.appendChild(vs(hr.RecordButton,"ul-recorder-toggle"));let C=D.document.createElement("p");C.style.visibility="hidden",C.className="ul-upload-progress-label",e.appendChild(C),c.uploadProgressLabel=C;let U=h_(c,[m,E,"PlayToggle",w,"FullscreenToggle"]),M=U.children().find(O=>O.name_==="FullscreenToggle");M.hasClass("vjs-disabled")&&M.hide();let F=U.children().find(O=>O.name_==="PlayToggle");F.hide(),i&&E.addClass(oe),!i&&m.addClass(oe),m_(c,U,i,!1,u),c.on("stopRecord",()=>{w.hide(),F.show(),M.show(),m.removeClass(oe)}),c.on("deviceReady",()=>{w.show(),F.hide(),m.addClass(oe)}),Ate(c,n,a,af,s),i&&(c.deviceButton&&c.deviceButton.hide(),c.src(i),F.show(),w.hide(),m.removeClass(oe));let K=[{name:"microphone"}];!c.cameraOff&&K.push({name:"camera"}),Promise.all(K.map(O=>navigator.permissions.query(O))).then(O=>{O.reduce((S,I)=>S&I.state==="granted",!0)&&c&&(c.deviceButton&&c.deviceButton.hide(),!i&&c.record().getDevice())}).catch(O=>{})},y_=(e,r=3)=>{let t=D.document.getElementById("ul-recording-countdown-screen");t&&r===0?(t.remove(),e.record().start()):t&&(t.innerHTML=`<span class='ul-countdown-text'>Recording in... ${r}</span>`,setTimeout(()=>{y_(e,r-1)},1e3))},q_=e=>{let r=D.document.createElement("div");return r.className="ul-video-container",r.appendChild(Ite(e)),r},b_=(e,r)=>{let t=D.document.createElement("video");t.id=e,t.className="video-js vjs-default-skin ul-video-player-video";let n=D.document.createElement("p");n.className="vjs-no-js",n.innerHTML="To view this video please enable JavaScript, and consider upgrading to a web browser that";let a=D.document.createElement("a");return a.href="https://videojs.com/html5-video-support/",a.target="_blank",a.innerHTML="supports HTML5 video",n.appendChild(a),t.appendChild(n),r.appendChild(t),r},ps=(e,r)=>{r?(e.children()[0].classList.add("vjs-hidden"),e.audioPlayerPlaceholder.show(),D.document.getElementById(`${e.id()}_html5_api`).style.height="0px"):(e.children()[0].classList.remove("vjs-hidden"),e.audioPlayerPlaceholder.hide(),D.document.getElementById(`${e.id()}_html5_api`).style.height="100%")},E_=(e,r,t,n=!1,a="https://api.sprig.com",i=document)=>{D.document=i;let s=e+gs,u=q_(s);return D.document.addEventListener("securitypolicyviolation",o=>{Gt(new Error(`Voice & Video feature violates ${o.violatedDirective} web page CSP policies for the question player.`),"playerDeviceError",a,{})}),g_(p_,()=>{D.document.getElementById(of(s)).remove(),b_(s,u);let o={playsinline:!0,playbackRates:[.5,1,1.5,2],fill:!0},c=D.videojs(s,o),f=h_(c,["PlaybackRateMenuButton","PlayToggle","FullscreenToggle"]),d=f.children().find(v=>v.name_==="FullscreenToggle");d.hasClass("vjs-disabled")&&d.hide(),m_(c,f,r,t,n)}),u},S_=(e,r={},t="https://api.userleap.com",n,a,i,s=!1,u=document)=>{D.document=u;let o=e+sf,c=q_(o);return D.document.addEventListener("securitypolicyviolation",f=>{let d=D.videojs(o);Gt(new Error(`Voice & Video feature violates ${f.violatedDirective} web page CSP policies for the recorder player.`),"recorderDeviceError",t,i,d.payload.visitorId,d.payload.envId)}),g_(p_.concat(xte),()=>{b_(o,c),D.document.getElementById(of(o)).remove(),Rte(c,o,r,t,n,a,i,s)}),c};var I_=e=>{let r=e+sf;if(!!D.videojs){try{if(!D.videojs(r).record().stream)return}catch(t){return}D.document.getElementById(r)&&D.videojs(r).record().stop(),D.videojs(r).record().stopDevice()}},Cte=(e,r,t)=>{let n=D.videojs(e+gs);!n.paused()&&n.pause(),n.src({src:r,type:"application/x-mpegURL"}),n.currentTime(0),ps(n,t);let a=A_(r);!t&&r&&(a?n.poster(a):ps(n,!0)),n.on("play",()=>{!t&&r&&!a&&ps(n,!1)})},x_=e=>{D.videojs(e+gs).pause()},w_=(e,r,t,n)=>{let a=D.videojs(e+gs),i=D.videojs(e+sf);Cte(e,r,n),i.record().resetState(),i.record().getDevice(),D.document.getElementsByClassName("ul-video-recorder-delete-button")[0].classList.add(oe),i.cameraOff?(D.document.getElementsByClassName("ul-video-recorder-camera-off-button-audio-only")[0].classList.remove(oe),window.navigator.mediaDevices.getUserMedia({video:!0,audio:!0}).then(o=>{i.record().onDeviceReady(o),o.getVideoTracks().forEach(c=>{c.stop()})}).catch(i.record().onDeviceError.bind(i.record()))):D.document.getElementsByClassName("ul-video-recorder-camera-off-button")[0].classList.remove(oe),i.payload=t,af(i.uploadProgressLabel,"none"),nf=Date.now()},A_=e=>{if(!e)return null;let r=e.match(/https:\/\/stream.mux.com\/(.*)/),t=r?r[1]:null;return t.includes(v_)&&(t=t.replace(v_,"")),t?`https://image.mux.com/${t}/thumbnail.jpg?time=0`:null},ce={UPLOAD_STARTED:"upload.started",UPLOAD_FINISHED:"upload.finished",DELETE:"delete",ERROR:"error",MEDIA_TYPE:"media.type",PERMISSION_DENIED:"permission_denied",OTHER:"other",UPLOAD_ID:"upload.id",MEDIA_RECORDING_UID:"media.recording.uid",MEDIA_TYPE_VIDEO:"video",MEDIA_TYPE_AUDIO:"audio"},hr={PlaybackRateMenuButton:"Speed",PlayToggle:"Play",FullscreenToggle:"Expand",TurnOnCamera:"Turn on",TurnOffCamera:"Turn off",DeleteButton:"Delete",RecordButton:"Record",StopButton:"Stop",PauseButton:"Pause"};var{INACTIVE_BUTTON:hs,VIDEO_CARD_CLASS:Tte,FADE_IN_CLASS:xbe,CARD_MAIN_CONTENT:Ote}=R,__=({className:e,message:r,properties:t,next:n,questionId:a,updateHeight:i,type:s})=>(u,o)=>{let c=V([e,R.VIDEO_CARD_CLASS,R.FADE_IN_CLASS]),f="ul-card-video__player_recorder",d="ul-card-video__next_button",v="ul-video-interview-form",q="ul-question-player-container",g="ul-recorder-player-container",y="ul-video-btn",m=t&&t.videoUrl,{surveyId:b,responseGroupUid:_,apiURL:E,userId:w,border:C,envId:U,headers:M,viewDocument:F,hasViewedEmbed:K}=u.app,{app:O}=o,H=M["userleap-platform"];if(u.cardData||(u.cardData={}),u.cardData.uploadId=void 0,u.cardData.mediaRecordingUid=void 0,u.cardData.buttonText=yt(t),u.cardData.skipButtonText=ef(t),F.getElementById(f)){w_(f,m,{surveyId:b,responseGroupUid:_,questionId:a,visitorId:w},t.mediaType===ce.MEDIA_TYPE_AUDIO);let G=F.getElementById(d);G.innerText=u.cardData.skipButtonText,G.classList.add(hs)}let I=(G,ae)=>{let N=F.getElementById(d);G===ce.UPLOAD_STARTED?(u.cardData.uploadId=ae[ce.UPLOAD_ID],u.cardData.mediaRecordingUid=ae[ce.MEDIA_RECORDING_UID],N.innerText=u.cardData.buttonText,N.classList.remove(hs),Object.assign(N.style,{backgroundColor:C})):G===ce.DELETE&&(u.cardData.uploadId=null,u.cardData.mediaRecordingUid=null,N.classList.add(hs),N.innerText=u.cardData.skipButtonText,Object.assign(N.style,{backgroundColor:""}))},A=G=>{if(G.preventDefault(),G.stopPropagation(),I_(f),!F.forms[v])return;u.cardData.uploadId?n({value:{mediaRecordingUid:u.cardData.mediaRecordingUid},questionId:a,type:s}):n({deletedAt:Date.now(),questionId:a,type:s});let N=F.getElementById(q);F.getElementById(g).classList.add(oe),N.classList.remove(oe)},T=(G=!0)=>{let ae=F.getElementById(q),N=F.getElementById(g);G?(ae.classList.remove(oe),ae.classList.add(Hn),N.classList.add(oe),N.classList.remove(Hn)):(x_(f),ae.classList.add(oe),ae.classList.remove(Hn),N.classList.remove(oe),N.classList.add(Hn))},P=()=>{let G=new ResizeObserver(N=>i()),ae=F.querySelector(`.${Tte}`);G.observe(ae)},fe=()=>{let G=F.getElementById(f);return G.appendChild(se()),G.appendChild(Oe()),G},_e=(G,ae)=>{let N=F.createElement("button");return N.className=`${y} ${G}`,N.addEventListener("click",he=>{he.preventDefault(),he.stopPropagation(),T(ae)}),N},se=()=>{let G=F.createElement("div");G.id="ul-question-player-container",G.className=`ul-video-container ${Hn}`,G.appendChild(E_(f,{src:m,type:"application/x-mpegURL"},void 0,t.mediaType===ce.MEDIA_TYPE_AUDIO,E,F));let ae=_e("ul-record-response-btn",!1),N=Ke(K,t,O,()=>ae,H);if(N.key==="prototype-btn"){let he=F.createElement(N.nodeName);he.className=N.attributes.className,he.innerText=ui,he.onclick=N.attributes.onclick,N=he}return G.appendChild(N),G},Oe=()=>{let G=F.createElement("div");G.id="ul-recorder-player-container",G.className=`ul-video-container ${oe}`;let ae=_e("ul-back-question-btn",!0);return G.appendChild(ae),G.appendChild(S_(f,{surveyId:b,responseGroupUid:_,questionId:a,visitorId:w,envId:U},E,I,!1,ue(z({},M),{"x-ul-video-recorder-origin":"sdk"}),t.mediaType===ce.MEDIA_TYPE_AUDIO,F)),G},De=nr(t);return h("div",{className:V(ye(Ote,M["userleap-platform"])),style:{marginTop:"unset"}},h("form",{id:v,className:c,oncreate:P},ar(De,r),De,h("div",{id:"ul-card-voice__video"},h("div",{id:f,oncreate:fe,key:K}),h("button",{id:d,className:`ul-card-text__button ${hs}`,onclick:A,role:"button"},ef(t)))))};async function uf(e,r,t){let{mode:n,userId:a,envId:i,apiURL:s,headers:u,viewDocument:o}=e,c=o.documentElement,f={mode:n,screenWidth:window.screen.width,screenHeight:window.screen.height,clientWidth:c.clientWidth,clientHeight:c.clientHeight,location:window.location.href,language:window.navigator.language},d={action:r,err:{message:t.message,stack:t.stack},meta:f,vid:a,envId:i};(await tr(`${s}/sdk/1/errors`,{method:"POST",headers:Object.assign({"x-ul-error":window.btoa(`userleap-${Date.now()}-error`)},u),body:JSON.stringify(d)})).ok||console.warn("[Sprig] (ERR-444) Failed to report error to API",t)}var ni=e=>e.userId===0||e.meta&&e.meta.mode==="test"||e.isPreview,R_={answers:[],apiURL:"https://api.sprig.com",border:null,cards:{consentlegal:V5,likert:H5,multiplechoice:G5,multipleselect:K5,nps:z5,open:l_,texturlprompt:d_,thanks:f_,videovoice:__,recordedtask:i_},context:{},customMetadata:{},deck:{index:0,cards:[]},envId:null,fontFamily:null,fontFamilyURL:null,frame:null,headers:{},interval:null,isPreview:!1,locale:"en",marketingUrl:"https://sprig.com",meta:{},mode:null,responseGroupUid:null,running:!1,sending:!1,showStripes:!1,showSurveyBrand:!0,slugName:null,surveyId:null,timeout:null,userId:null,viewedCardCount:0,visitorAttributes:{}},C_={init:({answers:e,apiURL:r,border:t,cards:n,configureExitOnOverlayClick:a,context:i,customMetadata:s,endCard:u,envId:o,eventEmitter:c,experimentFlags:f,fontFamily:d,fontFamilyURL:v,frame:q,headers:g,isPreview:y,locale:m,marketingUrl:b,meta:_,mode:E,responseGroupUid:w,showStripes:C,showSurveyBrand:U,slugName:M,surveyId:F,useMobileStyling:K,userId:O,viewDocument:H,tabTitle:S,visitorAttributes:I})=>(A,T)=>ue(z({},T.addDeck({deck:n,hasEndCard:u})),{answers:e,apiURL:r,border:t,configureExitOnOverlayClick:a,context:i,customMetadata:s,endCard:u,envId:o,eventEmitter:c,experimentFlags:f,fontFamily:d,fontFamilyURL:v,frame:q,hasViewedEmbed:!1,headers:g,isPreview:y,locale:m,marketingUrl:b,meta:_,mode:E,responseGroupUid:w,running:!0,showStripes:C,showSurveyBrand:U,slugName:M,surveyId:F,timeout:1,useMobileStyling:K,userId:O,viewDocument:H,tabTitle:S,viewedCardCount:0,visitorAttributes:I}),addDeck:({deck:e,hasEndCard:r})=>t=>{let n=e.map(a=>ue(z({},a),{Card:t.cards[a.type]}));return r&&n.push({Card:t.cards.thanks}),{deck:{index:0,cards:n}}},complete:()=>(e,r)=>({interval:setInterval(r.deduct,1e3)}),seen:()=>(e,r)=>{ni(e)||r.trackHistory({event:"seen",isNew:!0})},close:()=>(e,r)=>{if(!ni(e))return r.trackHistory({event:"closed"})},submit:({response:e,responseGroupUid:r,completedAt:t})=>async n=>{if(!r||ni(n))return;let a={responseGroupUid:r,meta:n.meta,customMetadata:n.customMetadata,responses:[e],completedAt:t},i=await tr(`${n.apiURL}/sdk/1/environments/${n.envId}/visitors/${n.userId}/responses/submit`,{body:JSON.stringify(a),headers:n.headers,method:"POST"});if(n.viewDocument.activeElement.blur(),!i.ok){i.reportError&&(console.warn("[Sprig] (ERR-427) Failed to submit response",i.error),await uf(n,"submitResponse",i.error));return}},deduct:()=>e=>{let r=e.timeout-1;return r<=0?(clearInterval(e.interval),Or.enable(),{running:!1,interval:null,timeout:r}):{timeout:r}},next:e=>(r,t)=>{let n=Date.now(),{cards:a,index:i}=r.deck,{responseGroupUid:s,eventEmitter:u}=r,o=Object.assign({},e.data),c=o.value;a[i].value=c,o.answeredAt=n;let{type:f}=o;delete o.type;let d={response:o,responseGroupUid:s},v=f==="multiplechoice"?Object.values(c).find(m=>m!==!1):c;f==="multipleselect"&&(v=a[i].props.options.reduce((m,b)=>(c[b.id]&&m.push(b.value),m),[]));let q=ls(o,f,v),g=cs(a,i,v,!!e.endCard,q);if(g===null){d.completedAt=n,t.submit(d),e.completeSurvey();return}else a[g].Card===r.cards.thanks&&(d.completedAt=n);let y=t.submit(d);return a[g].Card!=r.cards.thanks&&y.finally(()=>{t.trackHistory({event:"seen",index:g})}),a[g]&&u&&u.emit(Se.name.CURRENT_QUESTION,{[Se.data.QUESTION_ID]:a[g].name,[Se.data.PROPS]:a[g].props}),{viewedCardCount:r.viewedCardCount+1,deck:{cards:a,index:g},hasViewedEmbed:!1}},trackHistory:({event:e,index:r,isNew:t=!1})=>async n=>{if(ni(n))return;let{cards:a,index:i}=n.deck,s=r!==void 0?a[r]:a[i],u={sid:n.surveyId,qid:s.name,action:e,vid:n.userId,eid:n.envId,isNew:t,responseGroupUid:n.responseGroupUid},o=await tr(`${n.apiURL}/sdk/1/visitors/${n.userId}/surveys/${n.surveyId}/history`,{body:JSON.stringify(u),headers:n.headers,method:"POST"});!o.ok&&o.reportError&&(console.warn("[Sprig] (ERR-428) Failed to track survey event",o.error),await uf(n,"trackHistory",o.error))},trackAnalytics:({event:e,questionId:r,metadata:t})=>async n=>{if(ni(n))return;let{mode:a,userId:i,envId:s,apiURL:u,headers:o,viewDocument:c,visitorAttributes:f}=n,d=c.documentElement,v=f&&f.externalUserId,q={event:`SDK - ${e}`,visitorId:i,environmentId:s,metadata:ue(z({},t||{}),{mode:a,screenWidth:window.screen.width,screenHeight:window.screen.height,clientWidth:d.clientWidth,clientHeight:d.clientHeight,location:window.location.href,language:window.navigator.language,questionId:r,responseGroupUid:n.responseGroupUid,surveyId:n.surveyId,userId:v})},g=await tr(`${u}/sdk/1/visitors/${i}/analytics`,{body:JSON.stringify(q),headers:o,method:"POST"});!g.ok&&g.reportError&&(console.warn("[Sprig] (ERR-428) Failed to track survey analytics event",g.error),await uf(n,"trackAnalytics",g.error))},handleClickEmbedButton:e=>r=>{let{eventEmitter:t}=r,{cards:n,index:a}=r.deck;return t.emit(e,{[Se.data.QUESTION_ID]:n[a].name,[Se.data.PROPS]:n[a].props}),ue(z({},r),{hasViewedEmbed:!0})}};var T_={isConsentSelected:!1,isNamePresent:!1,isSubmitEnabled:!1,hasValidationError:!1,name:""},O_={reset:()=>e=>ue(z({},e),{isConsentSelected:!1,isNamePresent:!1,isSubmitEnabled:!1,hasValidationError:!1,name:""}),updateIsConsentSelected:e=>r=>{let t=!r.isConsentSelected,n=t&&(!e||r.isNamePresent);return ue(z({},r),{isConsentSelected:t,isSubmitEnabled:n})},onNameTextChange:e=>r=>{let t=!!e.trim(),n=r.isConsentSelected&&t;return ue(z({},r),{name:e,isNamePresent:t,isSubmitEnabled:n})},setValidationError:()=>e=>ue(z({},e),{hasValidationError:!0})};var P_={selectedOptions:{}},L_={init:e=>r=>ue(z({},r),{selectedOptions:e}),reset:()=>e=>ue(z({},e),{selectedOptions:{}}),updateSelected:e=>r=>{if(e==null)return;let t=Object.assign(r.selectedOptions);return t[e]=!t[e],ue(z({},r),{selectedOptions:t})}};var N_={value:""},M_={onTextChange:e=>r=>ue(z({},r),{value:e})};var Pte={init:({answers:e,apiURL:r,border:t,cards:n,configureExitOnOverlayClick:a,context:i,customMetadata:s,endCard:u,envId:o,eventEmitter:c,experimentFlags:f,fontFamily:d,fontFamilyURL:v,frame:q,headers:g,isPreview:y,locale:m,marketingUrl:b,meta:_,mobilePlatform:E,responseGroupUid:w,showStripes:C,showSurveyBrand:U,slugName:M,surveyId:F,useMobileStyling:K,userId:O,viewDocument:H,tabTitle:S,viewedCardCount:I,visitorAttributes:A})=>(T,P)=>{P.app.init({answers:e,apiURL:r,border:t,cards:n,configureExitOnOverlayClick:a,context:i,customMetadata:s,endCard:u,envId:o,eventEmitter:c,experimentFlags:f,fontFamily:d,fontFamilyURL:v,frame:q,headers:g,isPreview:y,locale:m,marketingUrl:b,meta:_,mobilePlatform:E,responseGroupUid:w,showStripes:C,showSurveyBrand:U,slugName:M,surveyId:F,useMobileStyling:K,userId:O,tabTitle:S,viewDocument:H,viewedCardCount:I,visitorAttributes:A}),P.app.seen()},update:e=>({app:r})=>{let t=r.viewDocument.getElementById(e),{classList:n}=t;r.running&&!n.contains("ul-app--visible")&&(Lr(r.headers)?n.add("ul-app--visible"):(n.add("ul-app--overlay"),setTimeout(()=>{n.add("ul-app--visible")},100)),r.eventEmitter&&r.eventEmitter.emit(Y.SURVEY_APPEARED)),Lr(r.headers)||r.frame.setHeight(is(document))},fadeout:e=>async({app:r})=>{let{eventEmitter:t}=r;if(!Lr(r.headers))return t.emit(Y.SURVEY_FADING_OUT),new Promise(n=>{let a=r.viewDocument.getElementById(e);a.addEventListener("transitionend",({propertyName:i})=>{i==="opacity"&&n()}),a.classList.remove("ul-app--visible")})},remove:({initiator:e})=>({app:r})=>{let{frame:t,eventEmitter:n}=r;["ios","android"].includes(r.headers["userleap-platform"])&&n.emit(Y.SURVEY_WILL_CLOSE,{initiator:e}),!Lr(r.headers)&&(n.emit(Y.SURVEY_WILL_CLOSE,{initiator:e}),t.remove())},close:e=>async(r,t)=>{await t.fadeout(e),await t.app.close(),Or.enable(),t.remove({initiator:gr.CLOSED})},destroy:e=>async(r,t)=>{await t.fadeout(e),Or.enable(),t.remove({initiator:gr.COMPLETE})}},D_=z({app:C_,consentLegal:O_,multipleSelect:L_,openText:M_,recordTask:X5},Pte);var U_={app:R_,consentLegal:T_,multipleSelect:P_,openText:N_,recordTask:Y5};function lf({mode:e=null,viewWindow:r,viewDocument:t}){let n=t.documentElement;return{mode:e,sw:r.screen.width,sh:r.screen.height,cw:n.clientWidth,ch:n.clientHeight,p:r.location.href,l:r.navigator.language}}var Lte="inactive";async function Nte(e,r){let t=await fetch(r,{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(t.ok){let n=await t.json();return n&&n.upload&&n.upload.url}else return null}function j_(e){let r={audioBitsPerSecond:128e3,videoBitsPerSecond:25e5,mimeType:"video/webm"},t=new MediaRecorder(e,r);return t.chunks=[],t.ondataavailable=function(n){t.chunks.push(n.data)},t}function k_(e,r,t,n,a){if(e&&e.state!==Lte){let i=$t();return e.onstop=()=>Mte(r,e,t,n,i,a),e.stop(),i}}async function Mte(e,r,t,n,a,i){let{[X.UPLOAD_CALLBACK]:s,[X.PROGRESS_CALLBACK]:u}=n,o=z({mediaType:t,updatedAt:new Date().toISOString(),mediaRecordingUid:a},n[X.PASSTHROUGH_DATA]),c=await Nte(o,e);if(!c){s&&s(!1,{message:"failed to get upload url"});return}let f=new Blob(r.chunks,{type:"video/webm"}),d=i.createUpload({endpoint:c,file:new File([f],`recording video ${Date.now()}`),chunkSize:5120});d.startTime=Date.now(),d.on("error",v=>{s&&s(!1,v)}),d.on("progress",v=>{u&&u(v)}),d.on("success",()=>{s&&s(!0)})}var Dte={state:{},startRecording(e){!e||(this.state.avRecorder.chunks=[],this.state.screenRecorder.chunks=[],e.includes(Nr.VIDEO)&&this.state.avRecorder&&this.state.avRecorder.start(),e.includes(Nr.SCREEN)&&this.state.screenRecorder&&this.state.screenRecorder.start())},async stopRecording(e){let{uploadApiEndpoint:r,avRecorder:t,screenRecorder:n,UpChunk:a}=this.state,i=this.state.avStream&&this.state.avStream.getVideoTracks().length>0?Nr.VIDEO:Nr.AUDIO,s=[],u=k_(t,r,i,e,a);u&&s.push(u);let o=k_(n,r,Nr.SCREEN,e,a);return o&&s.push(o),s},handleCancelledStream(e,r){let t=e.getVideoTracks(),n=e.getAudioTracks(),a=t.length&&t[0];a=a||n.length&&n[0],a&&a.addEventListener("ended",i=>{let s=!1;[this.state.avRecorder,this.state.screenRecorder].map(u=>{u&&(u.state==="recording"&&u.stop(),u.stream.getTracks().map(o=>{o.readyState==="live"&&o.stop()}),s=!0)}),Object.assign(this.state,{avStream:null,captureStream:null,avRecorder:null,screenRecorder:null}),s&&r&&r()})},taskDurationMillisecond(){return this.state.startTime?new Date().getTime()-this.state.startTime.getTime():0},setUpChunk(e){this.state.UpChunk=e},configure(e,r){Object.assign(this.state,r),this.state.uploadApiEndpoint=`${r.apiURL}/2/environments/integrations/upload`,e.subscribe(Me.PERMISSION_STATUS,t=>{let{[X.PERMISSION_STATUS_CALLBACK]:n}=t,a=this.state.avStream;n&&n(a,a&&a.getAudioTracks().length>0,a&&a.getVideoTracks().length>0,!!this.state.captureStream)}),e.subscribe(Me.AV_PERMISSION,async t=>{let{[X.STREAM_READY_CALLBACK]:n,[X.STREAM_CANCELLED_CALLBACK]:a,[X.PERMISSION_DESCRIPTORS]:i}=t;try{this.state.avStream=await navigator.mediaDevices.getUserMedia({video:i.includes(P5.CAMERA),audio:!0}),this.handleCancelledStream(this.state.avStream,a)}catch(s){console.warn("Error: failed to get permissions: "+s),n&&n(!1);return}this.state.avRecorder=j_(this.state.avStream),n&&n(this.state.avStream)}),e.subscribe(Me.SCREEN_PERMISSION,async t=>{let{[X.STREAM_READY_CALLBACK]:n,[X.STREAM_CANCELLED_CALLBACK]:a}=t;try{this.state.captureStream=await navigator.mediaDevices.getDisplayMedia({video:{cursor:"always"}})}catch(i){console.warn("Error: failed to get permissions: "+i),n&&n(!1);return}this.state.avStream&&this.state.avStream.getAudioTracks().length>0&&this.state.captureStream.addTrack(this.state.avStream.getAudioTracks()[0]),this.state.screenRecorder=j_(this.state.captureStream),this.handleCancelledStream(this.state.captureStream,a),n&&n(this.state.captureStream)}),e.subscribe(Me.BEGIN_RECORDING,t=>{this.startRecording(t[X.RECORDING_MEDIA_TYPES])}),e.subscribe(Me.FINISH_TASK,async t=>{let{[X.CURRENT_INDEX]:n,[X.TASK_RESPONSE]:a,[X.TASK_COMPLETE_CALLBACK]:i}=t,s=await this.stopRecording(t);i&&i(s,this.taskDurationMillisecond()),this.lookAheadAndStopStream(n,a)}),e.subscribe(Me.START_TASK,()=>{this.state.startTime=new Date})},lookAheadAndStopStream(e,r){let t=cs(this.state.cards,e,r.value,this.state.hasEndCard,ls(r,r.type,r.value));t!==null&&this.state.cards[t].type===Vt.RECORDED_TASK||[this.state.avRecorder,this.state.screenRecorder].map(n=>{n&&(n.state==="recording"&&n.stop(),n.stream.getTracks().map(a=>{a.readyState==="live"&&a.stop()}))})}},F_=Object.create(Dte);Object.freeze(F_);var ms=F_;var B_={configure:e=>{let{answers:r,apiURL:t,border:n="#6664f7",cards:a,configureExitOnOverlayClick:i,context:s,customMetadata:u,customStyles:o,endCard:c,envId:f,eventEmitter:d,experimentFlags:v,fontFamily:q,fontFamilyURL:g,frame:y,headers:m,isDevelopment:b,isPreview:_,locale:E,marketingUrl:w,mobilePlatform:C,mode:U,responseGroupUid:M,showStripes:F,showSurveyBrand:K,slugName:O,surveyId:H,useMobileStyling:S,userId:I,viewDocument:A,viewWindow:T,tabTitle:P,UpChunk:fe,installationMethod:_e,visitorAttributes:se}=e,{head:Oe}=A;if(ms.configure(d,{cards:a,hasEndCard:!!c,apiURL:t,UpChunk:fe}),!fe)if(_e!==mr.NPM){let Ue=A.createElement("script");Ue.src="https://cdn.sprig.com/userleap-web-upchunk-v2.2.2.js",Ue.onload=()=>{ms.setUpChunk(T.UpChunk)},Ue.onerror=()=>{console.warn("[Sprig] - recording functionality not configured due to UpChunk library load failure")},Oe.appendChild(Ue)}else console.warn("[Sprig] - recording functionality not configured due to missing UpChunk dependency");let De="2.16.7",G=d||y.eventEmitter;G&&G.emit(Se.name.VERIFY_VIEW_VERSION,{[Se.data.VIEW_VERSION]:De});let ae=A.createElement("style");if(ae.type="text/css",ae.appendChild(A.createTextNode(j5.styles)),Oe.appendChild(ae),o&&as(A,o),q&&g&&parent){let Ue=A.createElement("link");Ue.rel="stylesheet",Ue.href=g,Oe.appendChild(Ue)}let N=Lr(m)?y:A.body;T5(U_,D_,U5,N).init({answers:r,apiURL:t,border:n,cards:a,configureExitOnOverlayClick:i,context:s,customMetadata:u,endCard:c,envId:f,eventEmitter:d,experimentFlags:v,fontFamily:q,frame:y,headers:m,isDevelopment:b,isPreview:_,locale:E,marketingUrl:w,meta:lf({mode:U,viewWindow:T,viewDocument:A}),mobilePlatform:C,mode:U,responseGroupUid:M,showStripes:F,showSurveyBrand:K,slugName:O,surveyId:H,useMobileStyling:S,userId:I,viewDocument:A,recorder:ms,tabTitle:P,visitorAttributes:se})}};var $_=B_;var ai="userleap.ids",df="userleap.pageviews",Ute=["popState","pushState","replaceState"],Jr="environments",Kt="visitors",V_="ul-view-sdk-script",H_=Object.freeze({contains:(e,r)=>r.includes(e),notContains:(e,r)=>!r.includes(e),exactly:(e,r)=>r===e,notExactly:(e,r)=>r!==e,startsWith:(e,r)=>r.startsWith(e),endsWith:(e,r)=>r.endsWith(e),regex:(e,r)=>new RegExp(e).test(r),legacy:(e,r)=>new RegExp(e,"i").test(r)});function ff(e,r){let{matchType:t,pattern:n}=e;return(t?H_[t]:H_.legacy)(n,r)}function jte(e,r){let{pageUrlEvents:t,interactiveEvents:n,dismissOnPageChange:a}=UserLeap._config;if(!a)return!0;let i=[];t&&t.length&&i.push(...t),n&&n.length&&i.push(...n);let s=e&&i.find(u=>u.id===e);return s?ff(s,window.location.href):r===window.location.href}function ii(e){let{pageUrlEvents:r,interactiveEvents:t,dismissOnPageChange:n,platform:a}=UserLeap._config;a&&a!=="web"||(r&&Hte(window.location.href),t&&(K_(),kte()),n&&e&&Ute.includes(e.type)&&UserLeap("dismissActiveSurvey",gr.PAGE_CHANGE))}var G_={capture:!0},kte=()=>{let r=UserLeap._config.interactiveEvents.filter(n=>ff(n,window.location.href)).map(n=>{let{name:a,properties:i}=n,{selector:s,innerText:u}=i;return s?o=>!!o.target.closest(s)&&UserLeap("track",a):o=>o.target.innerText===u&&UserLeap("track",a)}),t=n=>r.forEach(a=>a(n));UserLeap._config.interactiveEventsHandler=t,window.addEventListener("click",t,G_)},K_=()=>{window.removeEventListener("click",UserLeap._config.interactiveEventsHandler,G_),delete UserLeap._config.interactiveEventsHandler};function Fte(){["hashchange","popstate"].forEach(e=>window.addEventListener(e,ii,!0))}function Bte(){["hashchange","popstate"].forEach(e=>window.removeEventListener(e,ii,!0)),UserLeap._config.interactiveEvents&&K_()}function Dr(e,r,t){let n=[UserLeap._API_URL,"sdk",e];return r&&r.forEach(a=>{n.push(a),a===Jr?n.push(UserLeap.envId):a===Kt&&n.push(vf())}),t&&n.push(t),n.join("/")}function $te(e,r){let t=Dr(1,[Jr],"questions?");return e!=null&&(t+=`&vid=${e}`),r&&(r.surveyId&&(t+=`&surveyid=${r.surveyId}`),r.surveyTemplateId&&(t+=`&surveytemplateid=${r.surveyTemplateId}`)),t}function Vte(){try{if(typeof localStorage<"u"&&(localStorage.setItem("is_available","yes"),localStorage.getItem("is_available")==="yes"))return localStorage.removeItem("is_available"),!0}catch(e){return!1}return!1}function Gn(e){if(!UserLeap.localStorageAvailable)return null;let r=localStorage.getItem(ai);if(r)try{let n=JSON.parse(r)[UserLeap.envId];return n&&n[e]||null}catch(t){t.stack=r,UserLeap.reportError("Failed to parse local storage credentials",t),console.warn("[Sprig] (ERR-427) Failed to lookup saved ids",t)}return null}function Ur(e,r){if(!UserLeap.localStorageAvailable)return;let t=localStorage.getItem(ai),n={};if(t)try{n=JSON.parse(t)}catch(i){i.stack=t,UserLeap.reportError("Failed to parse local storage credentials",i),console.warn("[Sprig] (ERR-427) Failed to lookup saved ids",i)}let a=n[UserLeap.envId];a?a[e]=r:a={[e]:r},n[UserLeap.envId]=a;try{localStorage.setItem(ai,JSON.stringify(n))}catch(i){console.warn(`[Sprig] (ERR-426) Unable to write to Local Storage:: ${i.message}`)}}function z_(){window.previewMode||(UserLeap.visitorId=$t(),Ur("vid",UserLeap.visitorId),ie.emit(Y.VISITOR_ID_UPDATED,{visitorId:UserLeap.visitorId}))}function vf(){return window.previewMode?0:UserLeap.visitorId}function Hte(e){if(!UserLeap.localStorageAvailable||e.endsWith("mock_snippet.html"))return;let r=UserLeap._config.pageUrlEvents;if(r&&r.length){let u=!1;for(let o=0;o<r.length&&(u=ff(r[o],e),!u);o++);if(!u)return}UserLeap.debugMode&&console.log("[DEBUG] Sprig trackPageView",arguments);let t=10,n=1,a=[],i={viewedAt:Date.now(),location:e},s=localStorage.getItem(df);try{if(s){if(a=JSON.parse(s),a.length>0){let u=a[a.length-1],o=(Date.now()-u.viewedAt)/1e3;(u.location!=e&&o>n||o>t)&&(UserLeap._queue.push(["track",si,{url:e}]),a.push(i))}}else UserLeap._queue.push(["track",si,{url:e}]),a.push(i);a.length>5&&a.splice(0,a.length-5);try{localStorage.setItem(df,JSON.stringify(a))}catch(u){console.warn(`[Sprig] Unable to write to Local Storage: ${u.message}`)}}catch(u){u.stack=s,console.warn("[Sprig] (ERR-425) Failed to update page views in local storage"),UserLeap.reportError("trackPageView",u)}}function Gte(){let e="Backbone"in window&&window.Backbone&&Backbone.history?Backbone.history:window.history;e.pushState=(r=>function(){let n=r.apply(this,arguments),a=new Event("pushState");return window.dispatchEvent(a),ii(a),n})(e.pushState),e.replaceState=(r=>function(){let n=r.apply(this,arguments),a=new Event("replaceState");return window.dispatchEvent(a),ii(a),n})(e.replaceState),Fte()}async function cf(e,r){let t=vf();e&&!r&&(UserLeap._config.mode=Ef.test);let n=await Et($te(t,e),{},0,!0);return n.ok?(n.json.delay&&await Bn(n.json.delay),W_(n.json)):(n.reportError&&(console.warn("[Sprig] (ERR-414) Failed to request questions from the server",n.error),UserLeap.reportError("getQuestions",n.error)),{success:!1,surveyState:Pr.NO_SURVEY})}function W_(e){let{vid:r,uuid:t,questions:n,surveyId:a,context:i,locale:s,responseGroupUid:u,endCard:o,productConfig:c}=e,f=e.experimentFlags||{},d=ti(UserLeap),v=Y_(d),q=Kte(d);if(r==null||!n||!n.length)return{success:!1,message:"[Sprig] no survey found",surveyState:Pr.NO_SURVEY};if(UserLeap.container){let O="[Sprig] (ERR-409) Found an existing Survey container, aborting rendering of this survey";return console.warn(O),{success:!1,message:O,surveyState:Pr.NO_SURVEY}}if(r!==UserLeap.visitorId&&t!==UserLeap.visitorId&&!window.previewMode){let O="Attempted to display survey to a different visitor";return UserLeap.reportError("DisplaySurvey",new Error(O)),{success:!1,message:O,surveyState:Pr.NO_SURVEY}}Or.disable(),ie.emit(Y.SURVEY_WILL_PRESENT,{name:Y.SURVEY_WILL_PRESENT,[Y.DATA.SURVEY_ID]:a});let g,y,m,b,_,E=O=>{let{[Se.data.VIEW_VERSION]:H}=O;H!==d["x-ul-sdk-version"]&&Xd(),ie.removeListener(Se.name.VERIFY_VIEW_VERSION,E)};ie.subscribe(Se.name.VERIFY_VIEW_VERSION,E),Lr(d)?(g="ul-direct-embeded-frame",m=document.head,b=window,_=!1,v&&(Yd(),y=document.createElement("div"),y.id=g,UserLeap.container.appendChild(y),Qd(),ie.emit(Y.SURVEY_LIFE_CYCLE,{state:"presented"}),ie.emit(Y.SURVEY_PRESENTED,{name:Y.SURVEY_PRESENTED}))):{frameId:g,contentWinDocHead:m,contentWindow:b,hasOverlay:_,iframe:y}=w5(c,q),UserLeap.frameId=g,UserLeap.useMobileStyling=q;let w=O=>{ie.subscribe(Y.CLOSE_SURVEY_ON_OVERLAY_CLICK,O)},C=Object.assign({frame:y,envId:UserLeap.envId,surveyId:a,userId:t,visitorAttributes:{externalUserId:UserLeap.userId,email:UserLeap.email},cards:n,context:i,locale:s,fontFamily:UserLeap.fontFamily,fontFamilyURL:UserLeap.fontFamilyURL,apiURL:UserLeap._API_URL,responseGroupUid:u,headers:d,endCard:o,useMobileStyling:q,mobilePlatform:UserLeap.mobilePlatform,mobileSDKVersion:UserLeap.mobileSDKVersion,experimentFlags:f,configureExitOnOverlayClick:w,eventEmitter:ie,ulEvents:Y,viewDocument:b.document,viewWindow:b,tabTitle:document.title},UserLeap._config);UserLeap.customStyles&&(C.customStyles=UserLeap.customStyles),b.__cfg=C;function U(){let O=document.createElement("script");return UserLeap.nonce&&O.setAttribute("nonce",UserLeap.nonce),O.id=V_,O}let M=UserLeap.viewSDKURL?UserLeap.viewSDKURL:C.path,F=document.getElementById(V_);F&&F.remove();let K=U();return _&&K.addEventListener("load",()=>{UserLeap.container&&Object.assign(UserLeap.container.style,{display:"flex"})}),C.installationMethod===mr.NPM?$_.configure(C):(K.src=M,b.addEventListener("error",O=>{O.target.nodeName==="SCRIPT"&&O.target.src===M&&UserLeap.reportError("loadFrameScript",new Error("Frame script failed to load"))},{capture:!0,once:!0})),m.appendChild(K),{success:!0,surveyState:Pr.READY}}function Kte(e){if(UserLeap.useMobileStyling!==void 0)return UserLeap.useMobileStyling;let r=UserLeap.windowDimensions&&UserLeap.windowDimensions.width||document.body.clientWidth;return Y_(e)||r>10&&r<Sf}function Y_(e){return If.includes(e["userleap-platform"])}function zte(e){let r=e.length;for(;r;){let t=Math.floor(Math.random()*r);r-=1;let n=e[r];e[r]=e[t],e[t]=n}}function Wte(e){if(!e)return;UserLeap._config=e,e.mute&&UserLeap._queue.pause();let{interactiveEvents:r,pageUrlEvents:t,dismissOnPageChange:n}=e;r&&zte(r),(r||t||n)&&(Gte(),ii())}async function Et(e,r,t=0,n=!1){r.headers=Object.assign(ti(UserLeap),r.headers);let a=await tr(e,r,t,n);if(a.ok){let i=a.headers.get("Authorization"),s=i?i.split(" "):void 0,u=s&&s.length===2?s[1]:void 0,o=a.headers.get("x-ul-visitor-id");u&&o&&(o!==UserLeap.visitorId||UserLeap.token!==u)&&(Ur("token",u),Ur("vid",o),ie.emit(Y.VISITOR_ID_UPDATED,{visitorId:o}),UserLeap.token=u,UserLeap.visitorId=o)}return a.json&&a.json.logMessage&&console.warn(`[Sprig] ${a.json.logMessage}`),a}var Yte=function(e){if(!window.UserLeap)return;let r=async(n={})=>{let{userId:a,anonymousId:i,metadata:s={}}=n,{eventName:u}=n;if(UserLeap.debugMode&&u!==si&&console.log("[DEBUG] Sprig track",arguments),e.mode==="test")return;if(e.requireUserIdForTracking&&!UserLeap.userId&&!a){let d="[Sprig] - Skipping tracking without userId";return console.warn(d),{success:!1,message:d,surveyState:Pr.NO_SURVEY}}if(!u||u.trim().length===0){u=u?String(u):"";let d="[Sprig] - Invalid event name "+u;return console.warn(d),{success:!1,message:d,surveyState:Pr.NO_SURVEY}}let o=window.location.href;s.url||(s.url=o),a&&(UserLeap.userId=a),i&&(UserLeap.partnerAnonymousId=i);let c=await Et(Dr(1,[Kt],"events"),{body:JSON.stringify({event:u,metadata:s}),method:"POST"},0,!0);if(!c.ok){let d="[Sprig] (ERR-421) Failed to track event";return c.reportError&&(console.warn(d,c.error),UserLeap.reportError("track",c.error)),{success:!1,message:d,error:c.error,surveyState:Pr.NO_SURVEY}}a&&Ur("uid",a),i&&Ur("aid",i);let f=c.json;return f.delay&&await Bn(f.delay),jte(f.eventId,o)?W_(f):{success:!1,message:"Study should not be displayed after page navigation",surveyState:Pr.NO_SURVEY}},t={async displaySurvey(n){return console.warn("[Sprig] displaySurvey should only be used to debug your studies; not intended for production usage."),UserLeap("dismissActiveSurvey",gr.OVERRIDE),cf({surveyId:n},!0)},previewSurvey(n){UserLeap("dismissActiveSurvey",gr.OVERRIDE),cf({surveyTemplateId:n},!1)},reviewSurvey(n){UserLeap("dismissActiveSurvey",gr.OVERRIDE),cf({surveyId:n},!1)},mute(){UserLeap._queue.pause()},unmute(){UserLeap._queue.unpause()},setVisitorToken(){console.warn("[Sprig] setVisitorToken is deprecated.")},dismissActiveSurvey(n=gr.API){ie.emit(Y.SURVEY_WILL_CLOSE,{initiator:n})},async setAttribute(n,a){if(!n||!a&&a!==0){let i="[Sprig] - Disregarding empty attribute / value provided";return console.warn(i),{success:!1,message:i}}return this.setAttributes({[n]:a})},async setAttributes(n){if(UserLeap.debugMode&&console.log("[DEBUG] Sprig setAttributes",arguments),e.mode==="test")return;if(e.requireUserIdForTracking&&!UserLeap.userId){let i="[Sprig] - Skipping tracking without userId";return console.warn(i),{success:!1,message:i}}if(n==null||Object.keys(n).length===0){let i="[Sprig] - Disregarding empty attributes provided";return console.warn(i),{success:!1,message:i}}let a=await Et(Dr(1,[Jr,Kt],"attributes"),{body:JSON.stringify(n),method:"PUT"});return n&&n[Wt]&&(UserLeap.email=n[Wt]),!a.ok&&a.reportError&&(console.warn("[Sprig] (ERR-432) Set attributes failed",a.error),UserLeap.reportError("setAttributes",a.error)),{success:!!a.ok}},async identifyAndSetAttributes(n){if(UserLeap.debugMode&&console.log("[DEBUG] Sprig identifyAndSetAttributes",arguments),e.mode==="test")return;if(n===null||typeof n!="object"||!(n.userId||n.anonymousId||n.attributes)){let c="[Sprig] - Disregarding empty payload provided";return console.warn(c),{success:!1,message:c}}let{userId:a,anonymousId:i,attributes:s}=n;if(e.requireUserIdForTracking&&!UserLeap.userId&&!a){let c="[Sprig] - Skipping tracking without userId";return console.warn(c),{success:!1,message:c}}if(!s&&(!a||UserLeap.userId===a)&&(!i||UserLeap.partnerAnonymousId===i))return{success:!0};let u={};a&&(u.userId=UserLeap.userId=a),i&&(u.partnerAnonymousId=UserLeap.partnerAnonymousId=i);let o;return s?(o=await Et(Dr(1,[Jr,Kt],"attributes"),{body:JSON.stringify(s),method:"PUT"}),!o.ok&&o.reportError&&(console.warn("[Sprig] (ERR-432) identifyAndSetAttributes failed",o.error),UserLeap.reportError("identifyAndSetAttributes",o.error))):o=await Et(Dr(1,[Jr,Kt]),{body:JSON.stringify(u),method:"PUT"}),s&&s[Wt]&&(UserLeap.email=s[Wt]),o.ok&&(a&&Ur("uid",a),i&&Ur("aid",i)),{success:!!o.ok}},async removeAttributes(n){if(UserLeap.debugMode&&console.log("[DEBUG] Sprig removeAttributes",arguments),e.mode==="test")return;if(n==null||n.length===0){let i="[Sprig] - Disregarding empty attributes provided";return console.warn(i),{success:!1,message:i}}if(e.requireUserIdForTracking&&!UserLeap.userId){let i="[Sprig] - Skipping tracking without userId";return console.warn(i),{success:!1,message:i}}let a=await Et(Dr(1,[Jr,Kt],"attributes"),{body:JSON.stringify({delete:n}),method:"DELETE"});return!a.ok&&a.reportError&&(console.warn("[Sprig] (ERR-433) Remove attributes failed",a.error),UserLeap.reportError("removeAttributes",a.error)),{success:!!a.ok}},async addSurveyListener(n){ie.subscribe(Y.SURVEY_LIFE_CYCLE,n)},async removeSurveyListener(n){ie.removeListener(Y.SURVEY_LIFE_CYCLE,n)},async addListener(n,a){ie.subscribe(n,a)},async removeListener(n,a){ie.removeListener(n,a)},async removeAllListeners(){ie.removeAllListeners()},setVisitorAttribute(n,a){return console.warn("[Sprig] setVisitorAttribute is deprecated. Please use setAttribute"),t.setAttribute(n,a)},async setEmail(n){return t.setAttribute(Wt,n)},async setVisitorEmail(n){return console.warn("[Sprig] setVisitorEmail is deprecated. Please use setEmail"),t.setEmail(n)},async setUserId(n){if(UserLeap.debugMode&&console.log("[DEBUG] Sprig setUserId",arguments),n==null){let i=`[Sprig] - Invalid userId ${n}`;return console.warn(i),{success:!1,message:i}}if(e.mode==="test"||n===UserLeap.userId)return;UserLeap.userId=n;let a=await Et(Dr(1,[Jr,Kt]),{body:JSON.stringify({userId:n}),method:"PUT"});if(!a.ok){a.reportError&&(console.warn("[Sprig] (ERR-420) Failed to set user id",a.error),UserLeap.reportError("setUserId",a.error));return}Ur("uid",n)},async setPartnerAnonymousId(n){if(UserLeap.debugMode&&console.log("[DEBUG] Sprig setPartnerAnonymousId",arguments),n==null){let a=`[Sprig] - Invalid partnerAnonymousId ${n}`;return console.warn(a),{success:!1,message:a}}return UserLeap.partnerAnonymousId=n,{success:!0}},async track(n,a={}){return await r({eventName:n,metadata:a})},async identifyAndTrack(n){return await r(n)},applyStyles(n){if(UserLeap.customStyles=n,UserLeap.container){let a=UserLeap.container.children[0].contentDocument,i=a.getElementById(R.CUSTOM_STYLE_TAG_ID);i?i.textContent=n:as(a,n)}},setWindowDimensions(n,a){let i=parseInt(n,10),s=parseInt(a,10);if(UserLeap.windowDimensions={width:!Number.isNaN(i)&&i,height:!Number.isNaN(s)&&s},!UserLeap.frameId)return;let u=document.getElementById(UserLeap.frameId);!u||(UserLeap.useMobileStyling&&(UserLeap.windowDimensions.width&&(u.style.width=`${UserLeap.windowDimensions.width}px`),UserLeap.windowDimensions.height&&(u.style.maxHeight=`${UserLeap.windowDimensions.height-20}px`),u.style.height=is(u.contentDocument)),ie.emit(Y.SURVEY_DIMENSIONS,{name:Y.SURVEY_DIMENSIONS,contentFrameWidth:u.clientWidth,contentFrameHeight:u.clientHeight}))},logoutUser(){UserLeap.debugMode&&console.log("[DEBUG] Sprig logout"),UserLeap.visitorId=null,UserLeap.userId=null,UserLeap.partnerAnonymousId=null,UserLeap.token=null,UserLeap.email=null,UserLeap.localStorageAvailable&&(localStorage.removeItem(ai),localStorage.removeItem(df)),UserLeap._queue.isPaused()&&UserLeap._queue.empty(),z_(),UserLeap._queue.unpause()},teardown(){Bte(),window.UserLeap("dismissActiveSurvey",gr.API),delete window.UserLeap,delete window.Sprig,delete window._Sprig}};Object.assign(window.UserLeap,t)};async function Xte(e){let r=ti(UserLeap),t=await tr(Dr(1,[Jr],"config"),{headers:r}),n="TypeError";if(UserLeap.error=t.error,!t.ok&&t.error&&t.error.name===n&&(UserLeap._API_URL="https://api.sprig.com",UserLeap.reportError("sprigDomainRequest",t.error),t=await tr(Dr(1,[Jr],"config"),{headers:r})),!t.ok)return t.reportError&&(console.warn("[Sprig] (ERR-422) Failed to load configuration",t.error),UserLeap.reportError("applyRemoteConfig",t.error)),ns("Disabled: failed to fetch configuration"),e;let a=t.json;if(a&&a.disabled){ns(`Disabled: ${a.disabled}`);return}return Object.assign({},e,a)}async function Qte(e,r){let t=window.__cfg&&window.__cfg.mode,a=vf(!1),i=UserLeap.envId,s=window.document.documentElement,u={mode:t,screenWidth:window.screen.width,screenHeight:window.screen.height,clientWidth:s.clientWidth,clientHeight:s.clientHeight,location:window.location.href,language:window.navigator.language},o={action:e,err:{message:r.message,stack:r.stack},meta:u,vid:a,envId:i};(await Et(Dr(1,null,"errors"),{method:"POST",headers:{"x-ul-error":window.btoa(`userleap-${Date.now()}-error`)},body:JSON.stringify(o)},0,!0)).ok||console.warn("[Sprig] (ERR-444) Failed to report error to API",r)}function pf(e={}){async function r(){if(UserLeap.loaded)return;if(UserLeap.UPDATES=Y,UserLeap.reportError=Qte,UserLeap.loaded=!0,UserLeap._config=Object.assign({},e,UserLeap.config),UserLeap._config&&typeof UserLeap._config=="object")for(let u in UserLeap._config)UserLeap[u]=UserLeap._config[u];if(!UserLeap.envId)if(UserLeap.appId)UserLeap.envId=UserLeap.appId;else throw new Error("Missing Environment id");UserLeap.debugMode&&console.log("[DEBUG] Sprig debug mode enabled");let t=Vte();UserLeap.localStorageAvailable=t;let n=UserLeap.sampleRate;if(n)if(!t)UserLeap.debugMode&&console.log("[DEBUG] Sprig cannot sample users without localStorage permissions");else{let u=Gn("sampled");if(u===null&&(u=Math.random()<n,Ur("sampled",u)),!u)return}else t&&Gn("sampled")!==null&&Ur("sampled",null);UserLeap._API_URL||(UserLeap._API_URL="https://api.sprig.com");let a=[...UserLeap._queue];UserLeap._queue=new A5(UserLeap,[]),UserLeap._queue.pause();for(let u=0;u<a.length;u++)UserLeap._queue.push(a[u]);let i=Gn("token");i?(UserLeap.token=i,UserLeap.visitorId=Gn("vid"),UserLeap.userId=Gn("uid"),UserLeap.partnerAnonymousId=Gn("aid")):(UserLeap.localStorageAvailable&&localStorage.removeItem(ai),z_());let s=await Xte(e);Yte(s),await Wte(s),UserLeap._queue.unpause(),ie.emit(Y.SDK_READY),ie.emit(Y.VISITOR_ID_UPDATED,{visitorId:UserLeap.visitorId})}document.readyState==="complete"?r():window.attachEvent?window.attachEvent("onload",r):window.addEventListener("load",r,!1)}var Kn=class{constructor(){bf(this,"UPDATES",Y)}displaySurvey(r){window.Sprig("displaySurvey",r)}previewSurvey(r){window.Sprig("previewSurvey",r)}reviewSurvey(r){window.Sprig("reviewSurvey",r)}mute(){window.Sprig("mute")}unmute(){window.Sprig("unmute")}dismissActiveSurvey(){window.Sprig("dismissActiveSurvey")}setAttribute(r,t){window.Sprig("setAttribute",r,t)}setAttributes(r){window.Sprig("setAttributes",r)}identifyAndSetAttributes(r){window.Sprig("identifyAndSetAttributes",r)}removeAttributes(r){window.Sprig("removeAttributes",r)}addListener(r,t){window.Sprig("addListener",r,t)}removeListener(r,t){window.Sprig("removeListener",r,t)}removeAllListeners(){window.Sprig("removeAllListeners")}setEmail(r){window.Sprig("setAttribute","!email",r)}setUserId(r){window.Sprig("setUserId",r)}setPartnerAnonymousId(r){window.Sprig("setPartnerAnonymousId",r)}track(r,t={}){window.Sprig("track",r,t)}identifyAndTrack(r){window.Sprig("identifyAndTrack",r)}applyStyles(r){window.Sprig("applyStyles",r)}setWindowDimensions(r,t){window.Sprig("setWindowDimensions",r,t)}logoutUser(){window.Sprig("logoutUser")}teardown(){window.Sprig("teardown")}},gf={configure:e=>{if(!e.envId&&!e.environmentId)throw new Error("Initialization Error: Sprig configure requires an environmentId");if(e.envId||(e.envId=e.environmentId),e.installationMethod=mr.NPM,window.Sprig)return window.Sprig;window.Sprig=function(){window.Sprig._queue.push(arguments)},Object.getOwnPropertyNames(Kn.prototype).map(t=>{t!=="constructor"&&(window.Sprig[t]=Kn.prototype[t])});let r=window.Sprig;return r.appId=e.envId,r._queue=[],window.UserLeap=r,pf(e),window.Sprig}};module.exports={sprig:gf,SprigAPI:Kn,configure:gf.configure};
|
|
668
|
+
`,Cte=e=>{let r=N.document.createElement("div");return r.className="ul-video-player-loading",r.id=lf(e),["first","second","third","fourth"].map(t=>{let n=N.document.createElement("div");n.className=t,r.appendChild(n)}),r},lf=e=>e+"-loading-spiner",ne="hidden",Hn="visible",y5=".m3u8",nf="ul-video-recorder-camera-off-button",af="ul-recording-in-session",Ote=[{type:"link",content:`${Ht}/dependencies/videojs-record-4.5.0.min.css`},{type:"script",content:`${Ht}/dependencies/RecordRTC-5.6.2.js`},{type:"script",content:`${Ht}/dependencies/adapter.8.0.0.min.js`},{type:"script",content:`${Ht}/dependencies/videojs-record-4.5.0.min.js`},{type:"script",content:`${Ht}/userleap-web-upchunk-v2.2.2.js`}],q5=[{type:"link",content:`${Ht}/dependencies/video-js-7.18.0.min.css`},{type:"script",content:`${Ht}/dependencies/video-js-7.18.0.min.js`},{type:"style",content:Rte}],gs="-video-player",cf="-secondary-video-player",df="-video-recorder",Ur,of,St=async({event:e,apiBase:r,headers:t,visitorId:n,envId:i,metadata:a})=>{let o=N.document.documentElement;if(!n||!i)return;let u={event:`SDK - ${e}`,visitorId:n,environmentId:i,metadata:se(G({},a||{}),{screenWidth:window.screen.width,screenHeight:window.screen.height,clientWidth:o.clientWidth,clientHeight:o.clientHeight,location:window.location.href,language:navigator.language})};(await fetch(`${r}/sdk/1/visitors/${n}/analytics`,{method:"POST",cache:"no-cache",headers:t,body:JSON.stringify(u)})).ok||console.warn("[Sprig] (ERR-444) Failed to track analytics",e)},Gt=async(e,r,t,n,i,a)=>{St({event:`Video Error ${r}`,apiBase:t,headers:n,visitorId:i,envId:a,metadata:{errorMessage:e.message}});let o=N.document.documentElement,u={screenWidth:window.screen.width,screenHeight:window.screen.height,clientWidth:o.clientWidth,clientHeight:o.clientHeight,location:window.location.href,language:navigator.language},s={action:r,err:{message:e.message,stack:e.stack},meta:u,vid:i,envId:a};(await fetch(`${t}/sdk/1/errors`,{method:"POST",cache:"no-cache",headers:se(G({},n),{"userleap-platform":"video_recorder","x-ul-error":window.btoa(`userleap-${Date.now()}-error`)}),body:JSON.stringify(s)})).ok||console.warn("[Sprig] (ERR-444) Failed to report error to API",e)},Tte=(e,{type:r,content:t})=>new Promise(function(n,i){let a;r==="script"?(a=N.document.createElement("script"),a.src=t):r==="link"?(a=N.document.createElement("link"),a.rel="stylesheet",a.href=t,a.type="text/css"):(a=N.document.createElement("style"),a.innerHTML=t),a.onload=function(){n(t)},a.onerror=function(){i(t)},a.async=!1,a.id=btoa(t),e.appendChild(a)}),E5=(e,r)=>{if(e.length===0)return r&&r();Promise.all(e.reduce((t,n)=>(t.push(Tte(N.document.head,n)),t),[])).then(()=>{N.videojs=N.document.defaultView.videojs,r&&r()}).catch(function(t){console.log(t+" failed to load")})},sf=(e,r,t)=>{if(r==="start"&&(e.style.visibility="visible"),r==="none")e.style.visibility=ne;else if(r==="success")e.style.visibility=ne,e.innerHTML="Upload succeeded!";else{let n=Math.round(parseFloat(t));e.innerHTML=`Uploading <span class="ul-upload-progress-label__time">${n}%</span>`,e.style.background=`linear-gradient(to right, #E0E0EB 0%, #E0E0EB ${n}%, #FCFCFD ${n}%, #FCFCFD 100%)`}},Pte=(e,r,t,n,i)=>{let{surveyId:a,questionId:o,responseGroupUid:u,visitorId:s,envId:c}=e.payload;e.on("deviceError",function(){console.warn("device error: ",e.deviceErrorCode),e.deviceErrorCode.message==="Permission denied"?(e.deviceButton.addClass("permission-denied"),t&&t(K.ERROR,{type:K.PERMISSION_DENIED}),St({event:"Video Permission Denied",apiBase:r,headers:i,visitorId:s,envId:c,metadata:{questionId:o,responseGroupUid:u,surveyId:a}})):(t&&t(K.ERROR,{type:K.OTHER}),Gt(new Error(e.deviceErrorCode.message),"recorderDeviceError",r,i,s,c))}),e.on("error",function(f,d){Gt(d||e.error(),"recorderError",r,i,s,c)}),e.on("startRecord",function(f,d){n(e.uploadProgressLabel,"none"),St({event:"Video Record Start",apiBase:r,headers:i,visitorId:s,envId:c,metadata:{questionId:o,responseGroupUid:u,surveyId:a}})}),e.on("finishRecord",async function(){if(n(e.uploadProgressLabel,"start",0),!a){let m="internal error: missing fields in payload";return t&&t(K.ERROR,{type:K.OTHER}),Gt(new Error(m),"finishRecord",r,i,s,c),null}e.record().stopDevice();let f=e.cameraOff?K.MEDIA_TYPE_AUDIO:K.MEDIA_TYPE_VIDEO,d=Et();St({event:"Video Record Finish",apiBase:r,headers:i,visitorId:s,envId:c,metadata:{mediaRecordingUid:d,questionId:o,responseGroupUid:u,surveyId:a,mediaType:f}});let v={surveyId:a,updatedAt:new Date().toISOString(),mediaType:f,mediaRecordingUid:d};o&&(v.questionId=o),u&&(v.responseGroupUid=u),s&&(v.visitorId=s);let h=await(async()=>{let m=await fetch(`${r}/2/environments/integrations/upload`,{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:JSON.stringify(v)});if(m.ok){let y=await m.json();return t&&t(K.UPLOAD_STARTED,{[K.UPLOAD_ID]:y.upload.id,[K.MEDIA_TYPE]:f,[K.MEDIA_RECORDING_UID]:d}),y.upload.url}else return t&&t(K.ERROR,{type:K.OTHER,response:m}),Gt(new Error("failed to get upload response with url"),"finishRecord",r,i,s,c),null})();!h||(Ur=N.document.defaultView.UpChunk.createUpload({endpoint:h,file:new N.document.defaultView.File([e.recordedData],`recording ${f} ${Date.now()}`),chunkSize:5120}),Ur.startTime=Date.now(),St({event:"Video Upload Start",apiBase:r,headers:i,visitorId:s,envId:c,metadata:{mediaRecordingUid:d,questionId:o,responseGroupUid:u,surveyId:a,mediaType:f,url:h}}),Ur.on("error",m=>{n(e.uploadProgressLabel,"none"),t&&t(K.UPLOAD_FINISHED,{[K.MEDIA_RECORDING_UID]:d}),Gt(m,"finishRecord",r,i,s,c)}),Ur.on("progress",m=>{t&&t(K.UPLOAD_PROGRESS,{[K.MEDIA_RECORDING_UID]:d,[K.UPLOAD_PROGRESS_PCT]:m.detail}),n(e.uploadProgressLabel,"progress",m.detail)}),Ur.on("success",()=>{n(e.uploadProgressLabel,"success"),t&&t(K.UPLOAD_FINISHED,{[K.MEDIA_RECORDING_UID]:d}),St({event:"Video Upload Success",apiBase:r,headers:i,visitorId:s,envId:c,metadata:{mediaRecordingUid:d,questionId:o,responseGroupUid:u,surveyId:a,mediaType:f,url:h,elapsedMs:Ur.startTime&&Date.now()-Ur.startTime}})}))})},b5=(e,r)=>{let t=new(N.videojs.getComponent("Component"))(e);return t.addClass("ul-buttons-panel"),r.map(n=>{t.addChild(n)}),Lte(t),t},Lte=e=>{e.children().forEach(r=>{if(yr[r.name_]){let t=vs(yr[r.name_],`ul-${yr[r.name_]}`);r.el_.appendChild(t)}})},vs=(e,r="")=>{let t=N.document.createElement("span");return t.className="ul-button-text",t.innerHTML=e,t.id=r,t},S5=(e,r,t,n,i=!1,a)=>{e.addClass("ul-video-player");let o=new(N.videojs.getComponent("Component"))(e);o.addClass("ul-control-panel"),e.progressBar=o.addChild("ProgressControl"),t&&e.src(t),e.audioPlayerPlaceholder=new(N.videojs.getComponent("Component"))(e),e.audioPlayerPlaceholder.addClass("ul-audio-recorder-placeholder");let u=t&&t.src?O5(t.src):null;t&&(i||!u)?(e.children()[0].classList.add("vjs-hidden"),N.document.getElementById(`${e.id()}_html5_api`).style.height="0px"):(e.audioPlayerPlaceholder.hide(),N.document.getElementById(`${e.id()}_html5_api`).style.height="100%",u&&e.poster(u)),e.on("play",()=>{!i&&t&&!u&&ps(e,!1),a==null||a.play()}),e.on("pause",()=>{a==null||a.pause()}),e.on("seeked",()=>{a==null||a.currentTime(e.currentTime())}),e.on("ratechange",()=>{a==null||a.playbackRate(e.playbackRate())}),e.addChild(e.audioPlayerPlaceholder,{},1),o.addChild(r),e.addChild(o),n&&n(e)},Nte=(e,r,t)=>{e.addClass(`ul${cf}`);let n=new(N.videojs.getComponent("Component"))(e);r&&e.src(r),e.addChild(n),t&&t(e)},Dte=(e,r,t,n,i,a,o,u=!1)=>{of=Date.now();let s={controls:!1,bigPlayButton:!1,fluid:!1,width:1280,height:720,playsinline:!0,plugins:{record:{audio:!0,video:{mandatory:{minWidth:1280,minHeight:720}},frameWidth:1280,frameHeight:720,maxLength:600,autoMuteDevice:!0}}},c=N.videojs(r,s);c.payload=t;let{surveyId:f,questionId:d,responseGroupUid:v,visitorId:q,envId:h}=t,m=T=>{let Q=nf,S=nf+"-audio-only";sf(c.uploadProgressLabel,"none"),Ur&&Ur.startTime>=of&&Ur.abort();let R=N.document.getElementById("ul-camera-button");T?(c.children()[0].classList.add("vjs-hidden"),b.removeClass(Q),b.addClass(S),R.innerHTML=yr.TurnOnCamera,c.audioPlayerPlaceholder.removeClass("vjs-hidden"),window.navigator.mediaDevices.getUserMedia({video:!0,audio:!0}).then(I=>{c.record().onDeviceReady(I),I.getVideoTracks().forEach(C=>{C.stop()})}).catch(c.record().onDeviceError.bind(c.record()))):(c.children()[0].classList.remove("vjs-hidden"),c.record().getDevice(),b.removeClass(S),b.addClass(Q),R.innerHTML=yr.TurnOffCamera,c.audioPlayerPlaceholder.addClass("vjs-hidden"))},y=new(N.videojs.getComponent("Button"))(c,{clickHandler:()=>{y.hasClass(ne)||(St({event:"Video Delete Button Clicked",apiBase:n,headers:o,visitorId:q,envId:h,metadata:{questionId:d,responseGroupUid:v,surveyId:f}}),m(c.cameraOff),i(K.DELETE,{}),b.removeClass(ne),y.addClass(ne))}});y.addClass("ul-video-recorder-delete-button"),y.el_.appendChild(vs(yr.DeleteButton,"ul-delete-button"));let E=N.document.getElementById(r),_=()=>{E.classList.contains("vjs-fullscreen")&&c.cameraOff?E.style.display="table":E.style.display="flex"};_();let b=new(N.videojs.getComponent("Button"))(c,{clickHandler:()=>{c.record().isRecording()||(c.cameraOff=!c.cameraOff,St({event:"Video Camera Button Clicked",apiBase:n,headers:o,visitorId:t.visitorId,envId:t.envId,metadata:{questionId:d,responseGroupUid:v,surveyId:f,cameraOff:c.cameraOff}}),m(c.cameraOff),!y.hasClass(ne)&&y.addClass(ne),i(K.DELETE,{}),_())}});b.addClass(nf),b.el_.appendChild(vs(yr.TurnOffCamera,"ul-camera-button"));let A=new(N.videojs.getComponent("Button"))(c,{clickHandler:()=>{let T=N.document.getElementById("ul-recorder-toggle");if(c.record().isRecording())c.record().stop(),T&&(T.innerHTML=yr.RecordButton),A.removeClass(af),y.removeClass(ne);else{let Q=N.document.getElementById("ul-recording-countdown-screen");if(Q)Q.remove(),T&&(T.innerHTML=yr.RecordButton),m(c.cameraOff),i(K.DELETE,{}),b.removeClass(ne),y.addClass(ne),A.removeClass(af),k.show();else{A.addClass(af),k.hide(),b.addClass(ne),y.addClass(ne),T&&(T.innerHTML=yr.StopButton);let S=N.document.createElement("div");S.id="ul-recording-countdown-screen",E.insertBefore(S,E.children[1]),S.style.height=`${E.offsetHeight}px`,I5(c,3)}}}});A.addClass("ul-video-recorder-toggle-button"),A.el_.appendChild(vs(yr.RecordButton,"ul-recorder-toggle"));let O=N.document.createElement("p");O.style.visibility="hidden",O.className="ul-upload-progress-label",e.appendChild(O),c.uploadProgressLabel=O;let j=b5(c,[y,b,"PlayToggle",A,"FullscreenToggle"]),k=j.children().find(T=>T.name_==="FullscreenToggle");k.hasClass("vjs-disabled")&&k.hide();let L=j.children().find(T=>T.name_==="PlayToggle");L.hide(),a&&b.addClass(ne),!a&&y.addClass(ne),S5(c,j,a,!1,u),c.on("stopRecord",()=>{A.hide(),L.show(),k.show(),y.removeClass(ne)}),c.on("deviceReady",()=>{A.show(),L.hide(),y.addClass(ne)}),Pte(c,n,i,sf,o),a&&(c.deviceButton&&c.deviceButton.hide(),c.src(a),L.show(),A.hide(),y.removeClass(ne));let Y=[{name:"microphone"}];!c.cameraOff&&Y.push({name:"camera"}),Promise.all(Y.map(T=>navigator.permissions.query(T))).then(T=>{T.reduce((S,R)=>S&R.state==="granted",!0)&&c&&(c.deviceButton&&c.deviceButton.hide(),!a&&c.record().getDevice())}).catch(T=>{})},I5=(e,r=3)=>{let t=N.document.getElementById("ul-recording-countdown-screen");t&&r===0?(t.remove(),e.record().start()):t&&(t.innerHTML=`<span class='ul-countdown-text'>Recording in... ${r}</span>`,setTimeout(()=>{I5(e,r-1)},1e3))},x5=e=>{let r=N.document.createElement("div");return r.className="ul-video-container",r.appendChild(Cte(e)),r},uf=(e,r)=>{let t=N.document.createElement("video");t.id=e,t.className="video-js vjs-default-skin ul-video-player-video";let n=N.document.createElement("p");n.className="vjs-no-js",n.innerHTML="To view this video please enable JavaScript, and consider upgrading to a web browser that";let i=N.document.createElement("a");return i.href="https://videojs.com/html5-video-support/",i.target="_blank",i.innerHTML="supports HTML5 video",n.appendChild(i),t.appendChild(n),r.appendChild(t),r},ps=(e,r)=>{r?(e.children()[0].classList.add("vjs-hidden"),e.audioPlayerPlaceholder.show(),N.document.getElementById(`${e.id()}_html5_api`).style.height="0px"):(e.children()[0].classList.remove("vjs-hidden"),e.audioPlayerPlaceholder.hide(),N.document.getElementById(`${e.id()}_html5_api`).style.height="100%")},w5=(e,r,t,n=!1,i="https://api.sprig.com",a=document,o=null,u=null)=>{N.document=a;let s=e+gs,c=x5(s);return N.document.addEventListener("securitypolicyviolation",f=>{Gt(new Error(`Voice & Video feature violates ${f.violatedDirective} web page CSP policies for the question player.`),"playerDeviceError",i,{})}),E5(q5,()=>{N.document.getElementById(lf(s)).remove(),uf(s,c);let f={playsinline:!0,playbackRates:[.5,1,1.5,2],fill:!0},d=e+cf;uf(d,c);let v=N.videojs(d,f);Nte(v,o,u),o||v.addClass(ne);let q=N.videojs(s,f),h=b5(q,["PlaybackRateMenuButton","PlayToggle","FullscreenToggle"]),m=h.children().find(y=>y.name_==="FullscreenToggle");m.hasClass("vjs-disabled")&&m.hide(),S5(q,h,r,t,n,v)}),c},A5=(e,r={},t="https://api.userleap.com",n,i,a,o=!1,u=document)=>{N.document=u;let s=e+df,c=x5(s);return N.document.addEventListener("securitypolicyviolation",f=>{let d=N.videojs(s);Gt(new Error(`Voice & Video feature violates ${f.violatedDirective} web page CSP policies for the recorder player.`),"recorderDeviceError",t,a,d.payload.visitorId,d.payload.envId)}),E5(q5.concat(Ote),()=>{uf(s,c),N.document.getElementById(lf(s)).remove(),Dte(c,s,r,t,n,i,a,o)}),c};var _5=e=>{let r=e+df;if(!!N.videojs){try{if(!N.videojs(r).record().stream)return}catch(t){return}N.document.getElementById(r)&&N.videojs(r).record().stop(),N.videojs(r).record().stopDevice()}},Mte=(e,r,t,n=null)=>{let i=`${e}${n?cf:gs}`,a=N.videojs(i);!a.paused()&&a.pause(),a.src({src:r,type:"application/x-mpegURL"}),a.currentTime(0),!n&&ps(a,t);let o=O5(r);!t&&r&&(o?a.poster(o):ps(a,!0)),a.on("play",()=>{!t&&r&&!o&&ps(a,!1)}),n&&r?a.removeClass(ne):n&&!r&&a.addClass(ne)},R5=e=>{N.videojs(e+gs).pause()},C5=(e,r,t,n)=>{let i=N.videojs(e+gs),a=N.videojs(e+df);Mte(e,r,n),a.record().resetState(),a.record().getDevice(),N.document.getElementsByClassName("ul-video-recorder-delete-button")[0].classList.add(ne),a.cameraOff?(N.document.getElementsByClassName("ul-video-recorder-camera-off-button-audio-only")[0].classList.remove(ne),window.navigator.mediaDevices.getUserMedia({video:!0,audio:!0}).then(s=>{a.record().onDeviceReady(s),s.getVideoTracks().forEach(c=>{c.stop()})}).catch(a.record().onDeviceError.bind(a.record()))):N.document.getElementsByClassName("ul-video-recorder-camera-off-button")[0].classList.remove(ne),a.payload=t,sf(a.uploadProgressLabel,"none"),of=Date.now()},O5=e=>{if(!e)return null;let r=e.match(/https:\/\/stream.mux.com\/(.*)/),t=r?r[1]:null;return t.includes(y5)&&(t=t.replace(y5,"")),t?`https://image.mux.com/${t}/thumbnail.jpg?time=0`:null},K={UPLOAD_STARTED:"upload.started",UPLOAD_PROGRESS:"upload.progress",UPLOAD_FINISHED:"upload.finished",DELETE:"delete",ERROR:"error",MEDIA_TYPE:"media.type",PERMISSION_DENIED:"permission_denied",OTHER:"other",UPLOAD_ID:"upload.id",UPLOAD_PROGRESS_PCT:"upload.progress.pct",MEDIA_RECORDING_UID:"media.recording.uid",MEDIA_TYPE_VIDEO:"video",MEDIA_TYPE_AUDIO:"audio"},yr={PlaybackRateMenuButton:"Speed",PlayToggle:"Play",FullscreenToggle:"Expand",TurnOnCamera:"Turn on",TurnOffCamera:"Turn off",DeleteButton:"Delete",RecordButton:"Record",StopButton:"Stop",PauseButton:"Pause"};var{INACTIVE_BUTTON:hs,VIDEO_CARD_CLASS:Ute,FADE_IN_CLASS:kEe,CARD_MAIN_CONTENT:jte}=x,T5=({className:e,message:r,properties:t,next:n,questionId:i,updateHeight:a,type:o})=>(u,s)=>{let c=F([e,x.VIDEO_CARD_CLASS,x.FADE_IN_CLASS]),f="ul-card-video__player_recorder",d="ul-card-video__next_button",v="ul-video-interview-form",q="ul-question-player-container",h="ul-recorder-player-container",m="ul-video-btn",y=t&&t.videoUrl,{surveyId:E,responseGroupUid:_,apiURL:b,userId:A,border:O,envId:j,headers:k,viewDocument:L,hasViewedEmbed:Y}=u.app,{app:T,destroy:Q}=s,S=k["userleap-platform"];if(u.cardData||(u.cardData={}),u.cardData.uploadId=void 0,u.cardData.mediaRecordingUid=void 0,u.cardData.buttonText=bt(t),u.cardData.skipButtonText=ef(t),L.getElementById(f)){C5(f,y,{surveyId:E,responseGroupUid:_,questionId:i,visitorId:A},t.mediaType===K.MEDIA_TYPE_AUDIO);let V=L.getElementById(d);V.innerText=u.cardData.skipButtonText,V.classList.add(hs)}let I=(V,M)=>{let Z=L.getElementById(d);V===K.UPLOAD_STARTED?(u.cardData.uploadId=M[K.UPLOAD_ID],u.cardData.mediaRecordingUid=M[K.MEDIA_RECORDING_UID],Z.innerText=u.cardData.buttonText,Z.classList.remove(hs),Object.assign(Z.style,{backgroundColor:O})):V===K.DELETE?(u.cardData.uploadId=null,u.cardData.mediaRecordingUid=null,Z.classList.add(hs),Z.innerText=u.cardData.skipButtonText,Object.assign(Z.style,{backgroundColor:""})):V===K.UPLOAD_PROGRESS?isNaN(M[K.UPLOAD_PROGRESS_PCT])?T.handleUploadUpdate({state:u,mediaRecordingUid:M[K.MEDIA_RECORDING_UID],isComplete:!0,destroy:Q}):T.handleUploadUpdate({state:u,mediaRecordingUid:M[K.MEDIA_RECORDING_UID],progressPct:M[K.UPLOAD_PROGRESS_PCT],destroy:Q}):V===K.UPLOAD_FINISHED&&T.handleUploadUpdate({state:u,mediaRecordingUid:M[K.MEDIA_RECORDING_UID],isComplete:!0,destroy:Q})},C=V=>{if(V.preventDefault(),V.stopPropagation(),_5(f),!L.forms[v])return;u.cardData.uploadId?(T.handleUploadUpdate({state:u,mediaRecordingUid:u.cardData.mediaRecordingUid,isSubmitted:!0,destroy:Q}),n({value:{mediaRecordingUid:u.cardData.mediaRecordingUid},questionId:i,type:o})):n({deletedAt:Date.now(),questionId:i,type:o});let Z=L.getElementById(q);L.getElementById(h).classList.add(ne),Z.classList.remove(ne)},X=(V=!0)=>{let M=L.getElementById(q),Z=L.getElementById(h);V?(M.classList.remove(ne),M.classList.add(Hn),Z.classList.add(ne),Z.classList.remove(Hn)):(R5(f),M.classList.add(ne),M.classList.remove(Hn),Z.classList.remove(ne),Z.classList.add(Hn))},ve=()=>{let V=new ResizeObserver(Z=>a()),M=L.querySelector(`.${Ute}`);V.observe(M)},ce=()=>{let V=L.getElementById(f);return V.appendChild(Ke()),V.appendChild(je()),V},ye=(V,M)=>{let Z=L.createElement("button");return Z.className=`${m} ${V}`,Z.addEventListener("click",de=>{de.preventDefault(),de.stopPropagation(),X(M)}),Z},Ke=()=>{let V=L.createElement("div");V.id="ul-question-player-container",V.className=`ul-video-container ${Hn}`,V.appendChild(w5(f,{src:y,type:"application/x-mpegURL"},void 0,t.mediaType===K.MEDIA_TYPE_AUDIO,b,L));let M=ye("ul-record-response-btn",!1),Z=ze(Y,t,T,()=>M,S);if(Z.key==="prototype-btn"){let de=L.createElement(Z.nodeName);de.className=Z.attributes.className,de.innerText=ua,de.onclick=Z.attributes.onclick,Z=de}return V.appendChild(Z),V},je=()=>{let V=L.createElement("div");V.id="ul-recorder-player-container",V.className=`ul-video-container ${ne}`;let M=ye("ul-back-question-btn",!0);return V.appendChild(M),V.appendChild(A5(f,{surveyId:E,responseGroupUid:_,questionId:i,visitorId:A,envId:j},b,I,!1,se(G({},k),{"x-ul-video-recorder-origin":"sdk"}),t.mediaType===K.MEDIA_TYPE_AUDIO,L)),V},ke=ar(t);return g("div",{className:F(ge(jte,k["userleap-platform"])),style:{marginTop:"unset"}},g("form",{id:v,className:c,oncreate:ve},or(ke,r),ke,g("div",{id:"ul-card-voice__video"},g("div",{id:f,oncreate:ce,key:Y}),g("button",{id:d,className:`ul-card-text__button ${hs}`,onclick:C,role:"button"},ef(t)))))};async function ff(e,r,t){let{mode:n,userId:i,envId:a,apiURL:o,headers:u,viewDocument:s}=e,c=s.documentElement,f={mode:n,screenWidth:window.screen.width,screenHeight:window.screen.height,clientWidth:c.clientWidth,clientHeight:c.clientHeight,location:window.location.href,language:window.navigator.language},d={action:r,err:{message:t.message,stack:t.stack},meta:f,vid:i,envId:a};(await ir(`${o}/sdk/1/errors`,{method:"POST",headers:Object.assign({"x-ul-error":window.btoa(`userleap-${Date.now()}-error`)},u),body:JSON.stringify(d)})).ok||console.warn("[Sprig] (ERR-444) Failed to report error to API",t)}var na=e=>e.userId===0||e.meta&&e.meta.mode==="test"||e.isPreview,P5={answers:[],apiURL:"https://api.sprig.com",border:null,cards:{consentlegal:W_,likert:Y_,multiplechoice:Q_,multipleselect:X_,nps:Z_,open:t5,recordedtask:v5,texturlprompt:g5,thanks:h5,uploading:m5,videovoice:T5},context:{},customMetadata:{},deck:{index:0,cards:[]},envId:null,fontFamily:null,fontFamilyURL:null,frame:null,headers:{},interval:null,isPreview:!1,marketingUrl:"https://sprig.com",meta:{},mode:null,responseGroupUid:null,running:!1,sending:!1,showStripes:!1,showSurveyBrand:!0,slugName:null,surveyId:null,timeout:null,uploadProgress:{},userId:null,viewedCardCount:0,visitorAttributes:{}},L5={init:({answers:e,apiURL:r,border:t,cards:n,configureExitOnOverlayClick:i,context:a,customMetadata:o,endCard:u,envId:s,eventEmitter:c,experimentFlags:f,fontFamily:d,fontFamilyURL:v,frame:q,headers:h,isPreview:m,marketingUrl:y,meta:E,mode:_,responseGroupUid:b,showStripes:A,showSurveyBrand:O,slugName:j,surveyId:k,useMobileStyling:L,userId:Y,viewDocument:T,tabTitle:Q,visitorAttributes:S})=>(R,I)=>se(G({},I.addDeck({deck:n,hasEndCard:u})),{answers:e,apiURL:r,border:t,configureExitOnOverlayClick:i,context:a,customMetadata:o,endCard:u,envId:s,eventEmitter:c,experimentFlags:f,fontFamily:d,fontFamilyURL:v,frame:q,hasViewedEmbed:!1,headers:h,isPreview:m,marketingUrl:y,meta:E,mode:_,responseGroupUid:b,running:!0,showStripes:A,showSurveyBrand:O,slugName:j,surveyId:k,timeout:1,uploadProgress:{},useMobileStyling:L,userId:Y,viewDocument:T,tabTitle:Q,viewedCardCount:0,visitorAttributes:S}),addDeck:({deck:e,hasEndCard:r})=>t=>{let n=e.map(i=>se(G({},i),{Card:t.cards[i.type]}));return e.some(i=>["recordedtask","videovoice"].includes(i.type))&&n.push({props:{properties:{}},type:Re.UPLOADING,Card:t.cards[Re.UPLOADING]}),r&&n.push({Card:t.cards.thanks}),{deck:{index:0,cards:n}}},complete:()=>(e,r)=>({interval:setInterval(r.deduct,1e3)}),seen:()=>(e,r)=>{na(e)||r.trackHistory({event:"seen",isNew:!0})},close:()=>(e,r)=>{if(!na(e))return r.trackHistory({event:"closed"})},submit:({response:e,responseGroupUid:r,completedAt:t})=>async n=>{if(!r||na(n))return;let i={responseGroupUid:r,meta:n.meta,customMetadata:n.customMetadata,responses:[e],completedAt:t},a=await ir(`${n.apiURL}/sdk/1/environments/${n.envId}/visitors/${n.userId}/responses/submit`,{body:JSON.stringify(i),headers:n.headers,method:"POST"});if(n.viewDocument.activeElement.blur(),!a.ok){a.reportError&&(console.warn("[Sprig] (ERR-427) Failed to submit response",a.error),await ff(n,"submitResponse",a.error));return}},deduct:()=>e=>{let r=e.timeout-1;return r<=0?(clearInterval(e.interval),Lr.enable(),{running:!1,interval:null,timeout:r}):{timeout:r}},handleUploadUpdate:({state:e,mediaRecordingUid:r,isComplete:t,progressPct:n,isSubmitted:i,destroy:a})=>o=>{var d,v,q,h,m,y;let{uploadProgress:u,deck:{cards:s,index:c}}=o;if(!r)return;if(s[c].type!==Re.UPLOADING){e.app.uploadProgress[r]={progressPct:n||n===0?n:(d=e.app.uploadProgress[r])==null?void 0:d.progressPct,isComplete:t||((v=e.app.uploadProgress[r])==null?void 0:v.isComplete),isSubmitted:i||((q=e.app.uploadProgress[r])==null?void 0:q.isSubmitted)};return}let f=Object.entries(u).every(([E,_])=>!_.isSubmitted||_.isComplete||r==E&&t);if(f&&c>=s.length-1){a(Ze);return}return{deck:{cards:s,index:f?c+1:c},uploadingCardViewed:!0,uploadProgress:se(G({},u),{[r]:{progressPct:n||n===0?n:(h=u[r])==null?void 0:h.progressPct,isComplete:t||((m=u[r])==null?void 0:m.isComplete),isSubmitted:i||((y=u[r])==null?void 0:y.isSubmitted)}})}},next:e=>(r,t)=>{let n=Date.now(),{cards:i,index:a}=r.deck,{responseGroupUid:o,eventEmitter:u,uploadProgress:s}=r,c=Object.assign({},e.data),f=c.value;i[a].value=f,c.answeredAt=n;let{type:d}=c;delete c.type;let v={response:c,responseGroupUid:o},q=d==="multiplechoice"?Object.values(f).find(E=>E!==!1):f;d==="multipleselect"&&(q=i[a].props.options.reduce((E,_)=>(f[_.id]&&E.push(_.value),E),[]));let h=ls(c,d,q),m=cs({cards:i,index:a,selectedValue:q,hasEndCard:!!e.endCard,hasValidAnswer:h,uploadProgress:s});if(m===null){v.completedAt=n,t.submit(v),e.completeSurvey();return}else[r.cards.thanks,r.cards.uploading].includes(i[m].Card)&&(v.completedAt=n);let y=t.submit(v);return[r.cards.thanks,r.cards.uploading].includes(i[m].Card)||y.finally(()=>{t.trackHistory({event:"seen",index:m})}),i[m]&&u&&u.emit(Ie.name.CURRENT_QUESTION,{[Ie.data.QUESTION_ID]:i[m].name,[Ie.data.PROPS]:i[m].props}),{viewedCardCount:r.viewedCardCount+1,deck:{cards:i,index:m},hasViewedEmbed:!1}},trackHistory:({event:e,index:r,isNew:t=!1})=>async n=>{if(na(n))return;let{cards:i,index:a}=n.deck,o=r!==void 0?i[r]:i[a],u={sid:n.surveyId,qid:o.name,action:e,vid:n.userId,eid:n.envId,isNew:t,responseGroupUid:n.responseGroupUid},s=await ir(`${n.apiURL}/sdk/1/visitors/${n.userId}/surveys/${n.surveyId}/history`,{body:JSON.stringify(u),headers:n.headers,method:"POST"});!s.ok&&s.reportError&&(console.warn("[Sprig] (ERR-428) Failed to track survey event",s.error),await ff(n,"trackHistory",s.error))},trackAnalytics:({event:e,questionId:r,metadata:t})=>async n=>{if(na(n))return;let{mode:i,userId:a,envId:o,apiURL:u,headers:s,viewDocument:c,visitorAttributes:f}=n,d=c.documentElement,v=f&&f.externalUserId,q={event:`SDK - ${e}`,visitorId:a,environmentId:o,metadata:se(G({},t||{}),{mode:i,screenWidth:window.screen.width,screenHeight:window.screen.height,clientWidth:d.clientWidth,clientHeight:d.clientHeight,location:window.location.href,language:window.navigator.language,questionId:r,responseGroupUid:n.responseGroupUid,surveyId:n.surveyId,userId:v})},h=await ir(`${u}/sdk/1/visitors/${a}/analytics`,{body:JSON.stringify(q),headers:s,method:"POST"});!h.ok&&h.reportError&&(console.warn("[Sprig] (ERR-428) Failed to track survey analytics event",h.error),await ff(n,"trackAnalytics",h.error))},handleClickEmbedButton:e=>r=>{let{eventEmitter:t}=r,{cards:n,index:i}=r.deck;return t.emit(e,{[Ie.data.QUESTION_ID]:n[i].name,[Ie.data.PROPS]:n[i].props}),se(G({},r),{hasViewedEmbed:!0})}};var N5={isConsentSelected:!1,isNamePresent:!1,isSubmitEnabled:!1,hasValidationError:!1,name:""},D5={reset:()=>e=>se(G({},e),{isConsentSelected:!1,isNamePresent:!1,isSubmitEnabled:!1,hasValidationError:!1,name:""}),updateIsConsentSelected:e=>r=>{let t=!r.isConsentSelected,n=t&&(!e||r.isNamePresent);return se(G({},r),{isConsentSelected:t,isSubmitEnabled:n})},onNameTextChange:e=>r=>{let t=!!e.trim(),n=r.isConsentSelected&&t;return se(G({},r),{name:e,isNamePresent:t,isSubmitEnabled:n})},setValidationError:()=>e=>se(G({},e),{hasValidationError:!0})};var M5={selectedOptions:{}},U5={init:e=>r=>se(G({},r),{selectedOptions:e}),reset:()=>e=>se(G({},e),{selectedOptions:{}}),updateSelected:e=>r=>{if(e==null)return;let t=Object.assign(r.selectedOptions);return t[e]=!t[e],se(G({},r),{selectedOptions:t})}};var j5={value:""},k5={onTextChange:e=>r=>se(G({},r),{value:e})};var kte={init:({answers:e,apiURL:r,border:t,cards:n,configureExitOnOverlayClick:i,context:a,customMetadata:o,endCard:u,envId:s,eventEmitter:c,experimentFlags:f,fontFamily:d,fontFamilyURL:v,frame:q,headers:h,isPreview:m,marketingUrl:y,meta:E,mobilePlatform:_,responseGroupUid:b,showStripes:A,showSurveyBrand:O,slugName:j,surveyId:k,uploadProgress:L,useMobileStyling:Y,userId:T,viewDocument:Q,tabTitle:S,viewedCardCount:R,visitorAttributes:I})=>(C,X)=>{X.app.init({answers:e,apiURL:r,border:t,cards:n,configureExitOnOverlayClick:i,context:a,customMetadata:o,endCard:u,envId:s,eventEmitter:c,experimentFlags:f,fontFamily:d,fontFamilyURL:v,frame:q,headers:h,isPreview:m,marketingUrl:y,meta:E,mobilePlatform:_,responseGroupUid:b,showStripes:A,showSurveyBrand:O,slugName:j,surveyId:k,uploadProgress:L,useMobileStyling:Y,userId:T,tabTitle:S,viewDocument:Q,viewedCardCount:R,visitorAttributes:I}),X.app.seen()},update:e=>({app:r})=>{let t=r.viewDocument.getElementById(e),{classList:n}=t;r.running&&!n.contains("ul-app--visible")&&(Dr(r.headers)?n.add("ul-app--visible"):(n.add("ul-app--overlay"),setTimeout(()=>{n.add("ul-app--visible")},100)),r.eventEmitter&&r.eventEmitter.emit(W.SURVEY_APPEARED)),Dr(r.headers)||r.frame.setHeight(as(document))},fadeout:e=>async({app:r})=>{let{eventEmitter:t}=r;if(!Dr(r.headers))return t.emit(W.SURVEY_FADING_OUT),new Promise(n=>{let i=r.viewDocument.getElementById(e);i.addEventListener("transitionend",({propertyName:a})=>{a==="opacity"&&n()}),i.classList.remove("ul-app--visible")})},remove:({initiator:e})=>({app:r})=>{let{frame:t,eventEmitter:n}=r;["ios","android"].includes(r.headers["userleap-platform"])&&n.emit(W.SURVEY_WILL_CLOSE,{initiator:e}),!Dr(r.headers)&&(n.emit(W.SURVEY_WILL_CLOSE,{initiator:e}),t.remove())},close:e=>async(r,t)=>{await t.fadeout(e),await t.app.close(),Lr.enable(),t.remove({initiator:mr.CLOSED})},destroy:e=>async(r,t)=>{await t.fadeout(e),Lr.enable(),t.remove({initiator:mr.COMPLETE})}},F5=G({app:L5,consentLegal:D5,multipleSelect:U5,openText:k5,recordTask:a5},kte);var B5={app:P5,consentLegal:N5,multipleSelect:M5,openText:j5,recordTask:i5};function vf({mode:e=null,viewWindow:r,viewDocument:t}){let n=t.documentElement;return{mode:e,sw:r.screen.width,sh:r.screen.height,cw:n.clientWidth,ch:n.clientHeight,p:r.location.href,l:r.navigator.language}}var Fte="inactive",pf={WEBM:"video/webm",MP4:"video/mp4"};async function Bte(e,r){let t=await fetch(r,{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(t.ok){let n=await t.json();return n&&n.upload&&n.upload.url}else return null}function G5(){return MediaRecorder.isTypeSupported(pf.WEBM)?pf.WEBM:pf.MP4}function $5(e){let r={audioBitsPerSecond:128e3,videoBitsPerSecond:25e5,mimeType:G5()},t=new MediaRecorder(e,r);return t.chunks={},t}function V5(e,r){e.chunks[r]=[],e.ondataavailable=function(t){e.chunks[r].push(t.data)},e.currentMediaRecordingUid=r,e.start()}function H5(e,r,t,n,i){e&&e.state!==Fte&&(e.onstop=()=>$te(r,e,t,n,e.currentMediaRecordingUid,i),e.stop())}async function $te(e,r,t,n,i,a){let{[H.UPLOAD_CALLBACK]:o,[H.PROGRESS_CALLBACK]:u}=n,s=G({mediaType:t,updatedAt:new Date().toISOString(),mediaRecordingUid:i},n[H.PASSTHROUGH_DATA]),c=await Bte(s,e);if(!c){o&&o(!1,{message:"failed to get upload url"});return}let f=new Blob(r.chunks[i],{type:G5()}),d=a.createUpload({endpoint:c,file:new File([f],`recording video ${Date.now()}`),chunkSize:5120});d.startTime=Date.now(),d.on("error",v=>{o&&o(!1,v)}),d.on("progress",v=>{u&&u(v)}),d.on("success",()=>{o&&o(!0)})}var Vte={state:{},async stopRecording(e){let{uploadApiEndpoint:r,avRecorder:t,screenRecorder:n,UpChunk:i}=this.state,a=this.state.avStream&&this.state.avStream.getVideoTracks().length>0?Mr.VIDEO:Mr.AUDIO;H5(t,r,a,e,i),H5(n,r,Mr.SCREEN,e,i)},handleCancelledStream(e,r){let t=e.getVideoTracks(),n=e.getAudioTracks(),i=t.length&&t[0];i=i||n.length&&n[0],i&&i.addEventListener("ended",a=>{let o=!1;[this.state.avRecorder,this.state.screenRecorder].map(u=>{u&&(u.state==="recording"&&u.stop(),u.stream.getTracks().map(s=>{s.readyState==="live"&&s.stop()}),o=!0)}),Object.assign(this.state,{avStream:null,captureStream:null,avRecorder:null,screenRecorder:null}),o&&r&&r()})},taskDurationMillisecond(){return this.state.startTime?new Date().getTime()-this.state.startTime.getTime():0},setUpChunk(e){this.state.UpChunk=e},configure(e,r){Object.assign(this.state,r),this.state.uploadApiEndpoint=`${r.apiURL}/2/environments/integrations/upload`,e.subscribe(Pe.PERMISSION_STATUS,t=>{let{[H.PERMISSION_STATUS_CALLBACK]:n}=t,i=this.state.avStream;n&&n(i,i&&i.getAudioTracks().length>0,i&&i.getVideoTracks().length>0,!!this.state.captureStream)}),e.subscribe(Pe.AV_PERMISSION,async t=>{let{[H.STREAM_READY_CALLBACK]:n,[H.STREAM_CANCELLED_CALLBACK]:i,[H.PERMISSION_DESCRIPTORS]:a}=t;try{this.state.avStream=await navigator.mediaDevices.getUserMedia({video:a.includes(U_.CAMERA),audio:!0}),this.handleCancelledStream(this.state.avStream,i)}catch(o){console.warn("Error: failed to get permissions: "+o),n&&n(!1);return}n&&n(this.state.avStream)}),e.subscribe(Pe.SCREEN_PERMISSION,async t=>{let{[H.STREAM_READY_CALLBACK]:n,[H.STREAM_CANCELLED_CALLBACK]:i}=t;try{this.state.captureStream=await navigator.mediaDevices.getDisplayMedia({video:!0,cursor:"always",displaySurface:"browser",preferCurrentTab:!0})}catch(a){console.warn("Error: failed to get permissions: "+a),n&&n(!1);return}this.state.avStream&&this.state.avStream.getAudioTracks().length>0&&this.state.captureStream.addTrack(this.state.avStream.getAudioTracks()[0]),this.handleCancelledStream(this.state.captureStream,i),n&&n(this.state.captureStream)}),e.subscribe(Pe.BEGIN_RECORDING,t=>{let{[H.RECORDING_MEDIA_TYPES]:n,[H.START_RECORDING_CALLBACK]:i}=t;if(!n)return;let a=[];if(n.includes(Mr.VIDEO)){this.state.avRecorder||(this.state.avRecorder=$5(this.state.avStream));let o=Et();V5(this.state.avRecorder,o),a.push(o)}if(n.includes(Mr.SCREEN)){this.state.screenRecorder||(this.state.screenRecorder=$5(this.state.captureStream));let o=Et();V5(this.state.screenRecorder,o),a.push(o)}a&&i&&i(a)}),e.subscribe(Pe.FINISH_TASK,async t=>{let{[H.CURRENT_INDEX]:n,[H.TASK_RESPONSE]:i,[H.TASK_COMPLETE_CALLBACK]:a}=t;await this.stopRecording(t),a&&a(this.taskDurationMillisecond()),this.lookAheadAndStopStream(n,i)}),e.subscribe(Pe.START_TASK,()=>{this.state.startTime=new Date})},lookAheadAndStopStream(e,r){let t=cs({cards:this.state.cards,index:e,selectedValue:r.value,hasEndCard:this.state.hasEndCard,hasValidAnswer:ls(r,r.type,r.value)});t!==null&&this.state.cards[t].type===Re.RECORDED_TASK||[this.state.avRecorder,this.state.screenRecorder].map(n=>{n&&(n.state==="recording"&&n.stop(),n.stream.getTracks().map(i=>{i.readyState==="live"&&i.stop()}))})}},z5=Object.create(Vte);Object.freeze(z5);var ms=z5;var K5={configure:e=>{let{answers:r,apiURL:t,border:n="#6664f7",cards:i,configureExitOnOverlayClick:a,context:o,customMetadata:u,customStyles:s,endCard:c,envId:f,eventEmitter:d,experimentFlags:v,fontFamily:q,fontFamilyURL:h,frame:m,headers:y,isDevelopment:E,isPreview:_,marketingUrl:b,mobilePlatform:A,mode:O,responseGroupUid:j,showStripes:k,showSurveyBrand:L,slugName:Y,surveyId:T,uploadProgress:Q,useMobileStyling:S,userId:R,viewDocument:I,viewWindow:C,tabTitle:X,UpChunk:ve,installationMethod:ce,visitorAttributes:ye}=e,{head:Ke}=I;if(ms.configure(d,{cards:i,hasEndCard:!!c,apiURL:t,UpChunk:ve}),!ve)if(ce!==qr.NPM){let de=I.createElement("script");de.src="https://cdn.sprig.com/userleap-web-upchunk-v2.2.2.js",de.onload=()=>{ms.setUpChunk(C.UpChunk)},de.onerror=()=>{console.warn("[Sprig] - recording functionality not configured due to UpChunk library load failure")},Ke.appendChild(de)}else console.warn("[Sprig] - recording functionality not configured due to missing UpChunk dependency");let je="2.16.8",ke=d||m.eventEmitter;ke&&ke.emit(Ie.name.VERIFY_VIEW_VERSION,{[Ie.data.VIEW_VERSION]:je});let V=I.createElement("style");if(V.type="text/css",V.appendChild(I.createTextNode(V_.styles)),Ke.appendChild(V),s&&is(I,s),q&&h&&parent){let de=I.createElement("link");de.rel="stylesheet",de.href=h,Ke.appendChild(de)}let M=Dr(y)?m:I.body;D_(B5,F5,$_,M).init({answers:r,apiURL:t,border:n,cards:i,configureExitOnOverlayClick:a,context:o,customMetadata:u,endCard:c,envId:f,eventEmitter:d,experimentFlags:v,fontFamily:q,frame:m,headers:y,isDevelopment:E,isPreview:_,marketingUrl:b,meta:vf({mode:O,viewWindow:C,viewDocument:I}),mobilePlatform:A,mode:O,responseGroupUid:j,showStripes:k,showSurveyBrand:L,slugName:Y,surveyId:T,uploadProgress:Q,useMobileStyling:S,userId:R,viewDocument:I,recorder:ms,tabTitle:X,visitorAttributes:ye})}};var W5=K5;var ia="userleap.ids",hf="userleap.pageviews",Hte=["popState","pushState","replaceState"],rt="environments",zt="visitors",Y5="ul-view-sdk-script",Q5=Object.freeze({contains:(e,r)=>r.includes(e),notContains:(e,r)=>!r.includes(e),exactly:(e,r)=>r===e,notExactly:(e,r)=>r!==e,startsWith:(e,r)=>r.startsWith(e),endsWith:(e,r)=>r.endsWith(e),regex:(e,r)=>new RegExp(e).test(r),legacy:(e,r)=>new RegExp(e,"i").test(r)});function mf(e,r){let{matchType:t,pattern:n}=e;return(t?Q5[t]:Q5.legacy)(n,r)}function Gte(e,r){let{pageUrlEvents:t,interactiveEvents:n,dismissOnPageChange:i}=UserLeap._config;if(!i)return!0;let a=[];t&&t.length&&a.push(...t),n&&n.length&&a.push(...n);let o=e&&a.find(u=>u.id===e);return o?mf(o,window.location.href):r===window.location.href}function aa(e){let{pageUrlEvents:r,interactiveEvents:t,dismissOnPageChange:n,platform:i}=UserLeap._config;i&&i!=="web"||(r&&Xte(window.location.href),t&&(Z5(),zte()),n&&e&&Hte.includes(e.type)&&UserLeap("dismissActiveSurvey",mr.PAGE_CHANGE))}var X5={capture:!0},zte=()=>{let r=UserLeap._config.interactiveEvents.filter(n=>mf(n,window.location.href)).map(n=>{let{name:i,properties:a}=n,{selector:o,innerText:u}=a;return o?s=>!!s.target.closest(o)&&UserLeap("track",i):s=>s.target.innerText===u&&UserLeap("track",i)}),t=n=>r.forEach(i=>i(n));UserLeap._config.interactiveEventsHandler=t,window.addEventListener("click",t,X5)},Z5=()=>{window.removeEventListener("click",UserLeap._config.interactiveEventsHandler,X5),delete UserLeap._config.interactiveEventsHandler};function Kte(){["hashchange","popstate"].forEach(e=>window.addEventListener(e,aa,!0))}function Wte(){["hashchange","popstate"].forEach(e=>window.removeEventListener(e,aa,!0)),UserLeap._config.interactiveEvents&&Z5()}function jr(e,r,t){let n=[UserLeap._API_URL,"sdk",e];return r&&r.forEach(i=>{n.push(i),i===rt?n.push(UserLeap.envId):i===zt&&n.push(yf())}),t&&n.push(t),n.join("/")}function Yte(e,r){let t=jr(1,[rt],"questions?");return e!=null&&(t+=`&vid=${e}`),r&&(r.surveyId&&(t+=`&surveyid=${r.surveyId}`),r.surveyTemplateId&&(t+=`&surveytemplateid=${r.surveyTemplateId}`)),t}function Qte(){try{if(typeof localStorage<"u"&&(localStorage.setItem("is_available","yes"),localStorage.getItem("is_available")==="yes"))return localStorage.removeItem("is_available"),!0}catch(e){return!1}return!1}function Gn(e){if(!UserLeap.localStorageAvailable)return null;let r=localStorage.getItem(ia);if(r)try{let n=JSON.parse(r)[UserLeap.envId];return n&&n[e]||null}catch(t){t.stack=r,UserLeap.reportError("Failed to parse local storage credentials",t),console.warn("[Sprig] (ERR-427) Failed to lookup saved ids",t)}return null}function kr(e,r){if(!UserLeap.localStorageAvailable)return;let t=localStorage.getItem(ia),n={};if(t)try{n=JSON.parse(t)}catch(a){a.stack=t,UserLeap.reportError("Failed to parse local storage credentials",a),console.warn("[Sprig] (ERR-427) Failed to lookup saved ids",a)}let i=n[UserLeap.envId];i?i[e]=r:i={[e]:r},n[UserLeap.envId]=i;try{localStorage.setItem(ia,JSON.stringify(n))}catch(a){console.warn(`[Sprig] (ERR-426) Unable to write to Local Storage:: ${a.message}`)}}function J5(){window.previewMode||(UserLeap.visitorId=Et(),kr("vid",UserLeap.visitorId),ue.emit(W.VISITOR_ID_UPDATED,{visitorId:UserLeap.visitorId}))}function yf(){return window.previewMode?0:UserLeap.visitorId}function Xte(e){if(!UserLeap.localStorageAvailable||e.endsWith("mock_snippet.html"))return;let r=UserLeap._config.pageUrlEvents;if(r&&r.length){let u=!1;for(let s=0;s<r.length&&(u=mf(r[s],e),!u);s++);if(!u)return}UserLeap.debugMode&&console.log("[DEBUG] Sprig trackPageView",arguments);let t=10,n=1,i=[],a={viewedAt:Date.now(),location:e},o=localStorage.getItem(hf);try{if(o){if(i=JSON.parse(o),i.length>0){let u=i[i.length-1],s=(Date.now()-u.viewedAt)/1e3;(u.location!=e&&s>n||s>t)&&(UserLeap._queue.push(["track",sa,{url:e}]),i.push(a))}}else UserLeap._queue.push(["track",sa,{url:e}]),i.push(a);i.length>5&&i.splice(0,i.length-5);try{localStorage.setItem(hf,JSON.stringify(i))}catch(u){console.warn(`[Sprig] Unable to write to Local Storage: ${u.message}`)}}catch(u){u.stack=o,console.warn("[Sprig] (ERR-425) Failed to update page views in local storage"),UserLeap.reportError("trackPageView",u)}}function Zte(){let e="Backbone"in window&&window.Backbone&&Backbone.history?Backbone.history:window.history;e.pushState=(r=>function(){let n=r.apply(this,arguments),i=new Event("pushState");return window.dispatchEvent(i),aa(i),n})(e.pushState),e.replaceState=(r=>function(){let n=r.apply(this,arguments),i=new Event("replaceState");return window.dispatchEvent(i),aa(i),n})(e.replaceState),Kte()}async function gf(e,r){let t=yf();e&&!r&&(UserLeap._config.mode=Af.test);let n=await It(Yte(t,e),{},0,!0);return n.ok?(n.json.delay&&await Bn(n.json.delay),eR(n.json)):(n.reportError&&(console.warn("[Sprig] (ERR-414) Failed to request questions from the server",n.error),UserLeap.reportError("getQuestions",n.error)),{success:!1,surveyState:Nr.NO_SURVEY})}function eR(e){let{vid:r,uuid:t,questions:n,surveyId:i,context:a,locale:o,responseGroupUid:u,endCard:s,productConfig:c}=e,f=e.experimentFlags||{},d=ta(UserLeap),v=rR(d),q=Jte(d);if(r==null||!n||!n.length)return{success:!1,message:"[Sprig] no survey found",surveyState:Nr.NO_SURVEY};if(UserLeap.container){let T="[Sprig] (ERR-409) Found an existing Survey container, aborting rendering of this survey";return console.warn(T),{success:!1,message:T,surveyState:Nr.NO_SURVEY}}if(r!==UserLeap.visitorId&&t!==UserLeap.visitorId&&!window.previewMode){let T="Attempted to display survey to a different visitor";return UserLeap.reportError("DisplaySurvey",new Error(T)),{success:!1,message:T,surveyState:Nr.NO_SURVEY}}Lr.disable(),ue.emit(W.SURVEY_WILL_PRESENT,{name:W.SURVEY_WILL_PRESENT,[W.DATA.SURVEY_ID]:i});let h,m,y,E,_,b=T=>{let{[Ie.data.VIEW_VERSION]:Q}=T;Q!==d["x-ul-sdk-version"]&&Qd(),ue.removeListener(Ie.name.VERIFY_VIEW_VERSION,b)};ue.subscribe(Ie.name.VERIFY_VIEW_VERSION,b),Dr(d)?(h="ul-direct-embeded-frame",y=document.head,E=window,_=!1,v&&(Yd(),m=document.createElement("div"),m.id=h,UserLeap.container.appendChild(m),Xd(),ue.emit(W.SURVEY_LIFE_CYCLE,{state:"presented"}),ue.emit(W.SURVEY_PRESENTED,{name:W.SURVEY_PRESENTED}))):{frameId:h,contentWinDocHead:y,contentWindow:E,hasOverlay:_,iframe:m}=O_(c,q),UserLeap.frameId=h,UserLeap.useMobileStyling=q;let A=T=>{ue.subscribe(W.CLOSE_SURVEY_ON_OVERLAY_CLICK,T)},O=Object.assign({frame:m,envId:UserLeap.envId,surveyId:i,userId:t,visitorAttributes:{externalUserId:UserLeap.userId,email:UserLeap.email},cards:n,context:a,locale:o,fontFamily:UserLeap.fontFamily,fontFamilyURL:UserLeap.fontFamilyURL,apiURL:UserLeap._API_URL,responseGroupUid:u,headers:d,endCard:s,useMobileStyling:q,mobilePlatform:UserLeap.mobilePlatform,mobileSDKVersion:UserLeap.mobileSDKVersion,experimentFlags:f,configureExitOnOverlayClick:A,eventEmitter:ue,ulEvents:W,viewDocument:E.document,viewWindow:E,tabTitle:document.title},UserLeap._config);UserLeap.customStyles&&(O.customStyles=UserLeap.customStyles),E.__cfg=O;function j(){let T=document.createElement("script");return UserLeap.nonce&&T.setAttribute("nonce",UserLeap.nonce),T.id=Y5,T}let k=UserLeap.viewSDKURL?UserLeap.viewSDKURL:O.path,L=document.getElementById(Y5);L&&L.remove();let Y=j();return _&&Y.addEventListener("load",()=>{UserLeap.container&&Object.assign(UserLeap.container.style,{display:"flex"})}),O.installationMethod===qr.NPM?W5.configure(O):(Y.src=k,E.addEventListener("error",T=>{T.target.nodeName==="SCRIPT"&&T.target.src===k&&UserLeap.reportError("loadFrameScript",new Error("Frame script failed to load"))},{capture:!0,once:!0})),y.appendChild(Y),{success:!0,surveyState:Nr.READY}}function Jte(e){if(UserLeap.useMobileStyling!==void 0)return UserLeap.useMobileStyling;let r=UserLeap.windowDimensions&&UserLeap.windowDimensions.width||document.body.clientWidth;return rR(e)||r>10&&r<_f}function rR(e){return Rf.includes(e["userleap-platform"])}function ene(e){let r=e.length;for(;r;){let t=Math.floor(Math.random()*r);r-=1;let n=e[r];e[r]=e[t],e[t]=n}}function rne(e){if(!e)return;UserLeap._config=e,e.mute&&UserLeap._queue.pause();let{interactiveEvents:r,pageUrlEvents:t,dismissOnPageChange:n}=e;r&&ene(r),(r||t||n)&&(Zte(),aa())}async function It(e,r,t=0,n=!1){r.headers=Object.assign(ta(UserLeap),r.headers);let i=await ir(e,r,t,n);if(i.ok){let a=i.headers.get("Authorization"),o=a?a.split(" "):void 0,u=o&&o.length===2?o[1]:void 0,s=i.headers.get("x-ul-visitor-id");u&&s&&(s!==UserLeap.visitorId||UserLeap.token!==u)&&(kr("token",u),kr("vid",s),ue.emit(W.VISITOR_ID_UPDATED,{visitorId:s}),UserLeap.token=u,UserLeap.visitorId=s)}return i.json&&i.json.logMessage&&console.warn(`[Sprig] ${i.json.logMessage}`),i}var tne=function(e){if(!window.UserLeap)return;let r=async(n={})=>{let{userId:i,anonymousId:a,metadata:o={}}=n,{eventName:u}=n;if(UserLeap.debugMode&&u!==sa&&console.log("[DEBUG] Sprig track",arguments),e.mode==="test")return;if(e.requireUserIdForTracking&&!UserLeap.userId&&!i){let d="[Sprig] - Skipping tracking without userId";return console.warn(d),{success:!1,message:d,surveyState:Nr.NO_SURVEY}}if(!u||u.trim().length===0){u=u?String(u):"";let d="[Sprig] - Invalid event name "+u;return console.warn(d),{success:!1,message:d,surveyState:Nr.NO_SURVEY}}let s=window.location.href;o.url||(o.url=s),i&&(UserLeap.userId=i),a&&(UserLeap.partnerAnonymousId=a);let c=await It(jr(1,[zt],"events"),{body:JSON.stringify({event:u,metadata:o}),method:"POST"},0,!0);if(!c.ok){let d="[Sprig] (ERR-421) Failed to track event";return c.reportError&&(console.warn(d,c.error),UserLeap.reportError("track",c.error)),{success:!1,message:d,error:c.error,surveyState:Nr.NO_SURVEY}}i&&kr("uid",i),a&&kr("aid",a);let f=c.json;return f.delay&&await Bn(f.delay),Gte(f.eventId,s)?eR(f):{success:!1,message:"Study should not be displayed after page navigation",surveyState:Nr.NO_SURVEY}},t={async displaySurvey(n){return console.warn("[Sprig] displaySurvey should only be used to debug your studies; not intended for production usage."),UserLeap("dismissActiveSurvey",mr.OVERRIDE),gf({surveyId:n},!0)},previewSurvey(n){UserLeap("dismissActiveSurvey",mr.OVERRIDE),gf({surveyTemplateId:n},!1)},reviewSurvey(n){UserLeap("dismissActiveSurvey",mr.OVERRIDE),gf({surveyId:n},!1)},mute(){UserLeap._queue.pause()},unmute(){UserLeap._queue.unpause()},setVisitorToken(){console.warn("[Sprig] setVisitorToken is deprecated.")},dismissActiveSurvey(n=mr.API){ue.emit(W.SURVEY_WILL_CLOSE,{initiator:n})},async setAttribute(n,i){if(!n||!i&&i!==0){let a="[Sprig] - Disregarding empty attribute / value provided";return console.warn(a),{success:!1,message:a}}return this.setAttributes({[n]:i})},async setAttributes(n){if(UserLeap.debugMode&&console.log("[DEBUG] Sprig setAttributes",arguments),e.mode==="test")return;if(e.requireUserIdForTracking&&!UserLeap.userId){let a="[Sprig] - Skipping tracking without userId";return console.warn(a),{success:!1,message:a}}if(n==null||Object.keys(n).length===0){let a="[Sprig] - Disregarding empty attributes provided";return console.warn(a),{success:!1,message:a}}let i=await It(jr(1,[rt,zt],"attributes"),{body:JSON.stringify(n),method:"PUT"});return n&&n[Wt]&&(UserLeap.email=n[Wt]),!i.ok&&i.reportError&&(console.warn("[Sprig] (ERR-432) Set attributes failed",i.error),UserLeap.reportError("setAttributes",i.error)),{success:!!i.ok}},async identifyAndSetAttributes(n){if(UserLeap.debugMode&&console.log("[DEBUG] Sprig identifyAndSetAttributes",arguments),e.mode==="test")return;if(n===null||typeof n!="object"||!(n.userId||n.anonymousId||n.attributes)){let c="[Sprig] - Disregarding empty payload provided";return console.warn(c),{success:!1,message:c}}let{userId:i,anonymousId:a,attributes:o}=n;if(e.requireUserIdForTracking&&!UserLeap.userId&&!i){let c="[Sprig] - Skipping tracking without userId";return console.warn(c),{success:!1,message:c}}if(!o&&(!i||UserLeap.userId===i)&&(!a||UserLeap.partnerAnonymousId===a))return{success:!0};let u={};i&&(u.userId=UserLeap.userId=i),a&&(u.partnerAnonymousId=UserLeap.partnerAnonymousId=a);let s;return o?(s=await It(jr(1,[rt,zt],"attributes"),{body:JSON.stringify(o),method:"PUT"}),!s.ok&&s.reportError&&(console.warn("[Sprig] (ERR-432) identifyAndSetAttributes failed",s.error),UserLeap.reportError("identifyAndSetAttributes",s.error))):s=await It(jr(1,[rt,zt]),{body:JSON.stringify(u),method:"PUT"}),o&&o[Wt]&&(UserLeap.email=o[Wt]),s.ok&&(i&&kr("uid",i),a&&kr("aid",a)),{success:!!s.ok}},async removeAttributes(n){if(UserLeap.debugMode&&console.log("[DEBUG] Sprig removeAttributes",arguments),e.mode==="test")return;if(n==null||n.length===0){let a="[Sprig] - Disregarding empty attributes provided";return console.warn(a),{success:!1,message:a}}if(e.requireUserIdForTracking&&!UserLeap.userId){let a="[Sprig] - Skipping tracking without userId";return console.warn(a),{success:!1,message:a}}let i=await It(jr(1,[rt,zt],"attributes"),{body:JSON.stringify({delete:n}),method:"DELETE"});return!i.ok&&i.reportError&&(console.warn("[Sprig] (ERR-433) Remove attributes failed",i.error),UserLeap.reportError("removeAttributes",i.error)),{success:!!i.ok}},async addSurveyListener(n){ue.subscribe(W.SURVEY_LIFE_CYCLE,n)},async removeSurveyListener(n){ue.removeListener(W.SURVEY_LIFE_CYCLE,n)},async addListener(n,i){ue.subscribe(n,i)},async removeListener(n,i){ue.removeListener(n,i)},async removeAllListeners(){ue.removeAllListeners()},setVisitorAttribute(n,i){return console.warn("[Sprig] setVisitorAttribute is deprecated. Please use setAttribute"),t.setAttribute(n,i)},async setEmail(n){return t.setAttribute(Wt,n)},async setVisitorEmail(n){return console.warn("[Sprig] setVisitorEmail is deprecated. Please use setEmail"),t.setEmail(n)},async setUserId(n){if(UserLeap.debugMode&&console.log("[DEBUG] Sprig setUserId",arguments),n==null){let a=`[Sprig] - Invalid userId ${n}`;return console.warn(a),{success:!1,message:a}}if(e.mode==="test"||n===UserLeap.userId)return;UserLeap.userId=n;let i=await It(jr(1,[rt,zt]),{body:JSON.stringify({userId:n}),method:"PUT"});if(!i.ok){i.reportError&&(console.warn("[Sprig] (ERR-420) Failed to set user id",i.error),UserLeap.reportError("setUserId",i.error));return}kr("uid",n)},async setPartnerAnonymousId(n){if(UserLeap.debugMode&&console.log("[DEBUG] Sprig setPartnerAnonymousId",arguments),n==null){let i=`[Sprig] - Invalid partnerAnonymousId ${n}`;return console.warn(i),{success:!1,message:i}}return UserLeap.partnerAnonymousId=n,{success:!0}},async track(n,i={}){return await r({eventName:n,metadata:i})},async identifyAndTrack(n){return await r(n)},applyStyles(n){if(UserLeap.customStyles=n,UserLeap.container){let i=UserLeap.container.children[0].contentDocument,a=i.getElementById(x.CUSTOM_STYLE_TAG_ID);a?a.textContent=n:is(i,n)}},setWindowDimensions(n,i){let a=parseInt(n,10),o=parseInt(i,10);if(UserLeap.windowDimensions={width:!Number.isNaN(a)&&a,height:!Number.isNaN(o)&&o},!UserLeap.frameId)return;let u=document.getElementById(UserLeap.frameId);!u||(UserLeap.useMobileStyling&&(UserLeap.windowDimensions.width&&(u.style.width=`${UserLeap.windowDimensions.width}px`),UserLeap.windowDimensions.height&&(u.style.maxHeight=`${UserLeap.windowDimensions.height-20}px`),u.style.height=as(u.contentDocument)),ue.emit(W.SURVEY_DIMENSIONS,{name:W.SURVEY_DIMENSIONS,contentFrameWidth:u.clientWidth,contentFrameHeight:u.clientHeight}))},logoutUser(){UserLeap.debugMode&&console.log("[DEBUG] Sprig logout"),UserLeap.visitorId=null,UserLeap.userId=null,UserLeap.partnerAnonymousId=null,UserLeap.token=null,UserLeap.email=null,UserLeap.localStorageAvailable&&(localStorage.removeItem(ia),localStorage.removeItem(hf)),UserLeap._queue.isPaused()&&UserLeap._queue.empty(),J5(),UserLeap._queue.unpause()},teardown(){Wte(),window.UserLeap("dismissActiveSurvey",mr.API),delete window.UserLeap,delete window.Sprig,delete window._Sprig}};Object.assign(window.UserLeap,t)};async function nne(e){let r=ta(UserLeap),t=await ir(jr(1,[rt],"config"),{headers:r}),n="TypeError";if(UserLeap.error=t.error,!t.ok&&t.error&&t.error.name===n&&(UserLeap._API_URL="https://api.sprig.com",UserLeap.reportError("sprigDomainRequest",t.error),t=await ir(jr(1,[rt],"config"),{headers:r})),!t.ok)return t.reportError&&(console.warn("[Sprig] (ERR-422) Failed to load configuration",t.error),UserLeap.reportError("applyRemoteConfig",t.error)),ns("Disabled: failed to fetch configuration"),e;let i=t.json;if(i&&i.disabled){ns(`Disabled: ${i.disabled}`);return}return Object.assign({},e,i)}async function ine(e,r){let t=window.__cfg&&window.__cfg.mode,i=yf(!1),a=UserLeap.envId,o=window.document.documentElement,u={mode:t,screenWidth:window.screen.width,screenHeight:window.screen.height,clientWidth:o.clientWidth,clientHeight:o.clientHeight,location:window.location.href,language:window.navigator.language},s={action:e,err:{message:r.message,stack:r.stack},meta:u,vid:i,envId:a};(await It(jr(1,null,"errors"),{method:"POST",headers:{"x-ul-error":window.btoa(`userleap-${Date.now()}-error`)},body:JSON.stringify(s)},0,!0)).ok||console.warn("[Sprig] (ERR-444) Failed to report error to API",r)}function qf(e={}){async function r(){if(UserLeap.loaded)return;if(UserLeap.UPDATES=W,UserLeap.reportError=ine,UserLeap.loaded=!0,UserLeap._config=Object.assign({},e,UserLeap.config),UserLeap._config&&typeof UserLeap._config=="object")for(let u in UserLeap._config)UserLeap[u]=UserLeap._config[u];if(!UserLeap.envId)if(UserLeap.appId)UserLeap.envId=UserLeap.appId;else throw new Error("Missing Environment id");UserLeap.debugMode&&console.log("[DEBUG] Sprig debug mode enabled");let t=Qte();UserLeap.localStorageAvailable=t;let n=UserLeap.sampleRate;if(n)if(!t)UserLeap.debugMode&&console.log("[DEBUG] Sprig cannot sample users without localStorage permissions");else{let u=Gn("sampled");if(u===null&&(u=Math.random()<n,kr("sampled",u)),!u)return}else t&&Gn("sampled")!==null&&kr("sampled",null);UserLeap._API_URL||(UserLeap._API_URL="https://api.sprig.com");let i=[...UserLeap._queue];UserLeap._queue=new T_(UserLeap,[]),UserLeap._queue.pause();for(let u=0;u<i.length;u++)UserLeap._queue.push(i[u]);let a=Gn("token");a?(UserLeap.token=a,UserLeap.visitorId=Gn("vid"),UserLeap.userId=Gn("uid"),UserLeap.partnerAnonymousId=Gn("aid")):(UserLeap.localStorageAvailable&&localStorage.removeItem(ia),J5());let o=await nne(e);tne(o),await rne(o),UserLeap._queue.unpause(),ue.emit(W.SDK_READY),ue.emit(W.VISITOR_ID_UPDATED,{visitorId:UserLeap.visitorId})}document.readyState==="complete"?r():window.attachEvent?window.attachEvent("onload",r):window.addEventListener("load",r,!1)}var zn=class{constructor(){wf(this,"UPDATES",W)}displaySurvey(r){window.Sprig("displaySurvey",r)}previewSurvey(r){window.Sprig("previewSurvey",r)}reviewSurvey(r){window.Sprig("reviewSurvey",r)}mute(){window.Sprig("mute")}unmute(){window.Sprig("unmute")}dismissActiveSurvey(){window.Sprig("dismissActiveSurvey")}setAttribute(r,t){window.Sprig("setAttribute",r,t)}setAttributes(r){window.Sprig("setAttributes",r)}identifyAndSetAttributes(r){window.Sprig("identifyAndSetAttributes",r)}removeAttributes(r){window.Sprig("removeAttributes",r)}addListener(r,t){window.Sprig("addListener",r,t)}removeListener(r,t){window.Sprig("removeListener",r,t)}removeAllListeners(){window.Sprig("removeAllListeners")}setEmail(r){window.Sprig("setAttribute","!email",r)}setUserId(r){window.Sprig("setUserId",r)}setPartnerAnonymousId(r){window.Sprig("setPartnerAnonymousId",r)}track(r,t={}){window.Sprig("track",r,t)}identifyAndTrack(r){window.Sprig("identifyAndTrack",r)}applyStyles(r){window.Sprig("applyStyles",r)}setWindowDimensions(r,t){window.Sprig("setWindowDimensions",r,t)}logoutUser(){window.Sprig("logoutUser")}teardown(){window.Sprig("teardown")}},Ef={configure:e=>{if(!e.envId&&!e.environmentId)throw new Error("Initialization Error: Sprig configure requires an environmentId");if(e.envId||(e.envId=e.environmentId),e.installationMethod=qr.NPM,window.Sprig)return window.Sprig;window.Sprig=function(){window.Sprig._queue.push(arguments)},Object.getOwnPropertyNames(zn.prototype).map(t=>{t!=="constructor"&&(window.Sprig[t]=zn.prototype[t])});let r=window.Sprig;return r.appId=e.envId,r._queue=[],window.UserLeap=r,qf(e),window.Sprig}};module.exports={sprig:Ef,SprigAPI:zn,configure:Ef.configure};
|
|
663
669
|
/*!
|
|
664
670
|
autosize 4.0.2
|
|
665
671
|
license: MIT
|