(()=>{var MW=Object.create;var Qd=Object.defineProperty,HW=Object.defineProperties,EW=Object.getOwnPropertyDescriptor,AW=Object.getOwnPropertyDescriptors,yW=Object.getOwnPropertyNames,Un=Object.getOwnPropertySymbols,zW=Object.getPrototypeOf,In=Object.prototype.hasOwnProperty,LW=Object.prototype.propertyIsEnumerable;var Zn=(t,l,d)=>l in t?Qd(t,l,{enumerable:!0,configurable:!0,writable:!0,value:d}):t[l]=d,lt=(t,l)=>{for(var d in l||(l={}))In.call(l,d)&&Zn(t,d,l[d]);if(Un)for(var d of Un(l))LW.call(l,d)&&Zn(t,d,l[d]);return t},gn=(t,l)=>HW(t,AW(l));var g=(t,l)=>()=>(l||t((l={exports:{}}).exports,l),l.exports);var wW=(t,l,d,V)=>{if(l&&typeof l=="object"||typeof l=="function")for(let i of yW(l))!In.call(t,i)&&i!==d&&Qd(t,i,{get:()=>l[i],enumerable:!(V=EW(l,i))||V.enumerable});return t};var M=(t,l,d)=>(d=t!=null?MW(zW(t)):{},wW(l||!t||!t.__esModule?Qd(d,"default",{value:t,enumerable:!0}):d,t));var dt=g((jm,Fn)=>{var hl=function(t){return t&&t.Math==Math&&t};Fn.exports=hl(typeof globalThis=="object"&&globalThis)||hl(typeof window=="object"&&window)||hl(typeof self=="object"&&self)||hl(typeof global=="object"&&global)||function(){return this}()||Function("return this")()});var Vt=g((vm,mn)=>{mn.exports=function(t){try{return!!t()}catch(l){return!0}}});var Zt=g((fm,Bn)=>{var OW=Vt();Bn.exports=!OW(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var Xl=g((Km,on)=>{var DW=Vt();on.exports=!DW(function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")})});var sl=g((Pm,pn)=>{var jW=Xl(),ul=Function.prototype.call;pn.exports=jW?ul.bind(ul):function(){return ul.apply(ul,arguments)}});var Nn=g(Cn=>{"use strict";var xn={}.propertyIsEnumerable,Qn=Object.getOwnPropertyDescriptor,vW=Qn&&!xn.call({1:2},1);Cn.f=vW?function(l){var d=Qn(this,l);return!!d&&d.enumerable}:xn});var Cd=g((qm,Jn)=>{Jn.exports=function(t,l){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:l}}});var K=g(($m,un)=>{var hn=Xl(),Xn=Function.prototype,Nd=Xn.call,fW=hn&&Xn.bind.bind(Nd,Nd);un.exports=hn?fW:function(t){return function(){return Nd.apply(t,arguments)}}});var Et=g((t1,rn)=>{var sn=K(),KW=sn({}.toString),PW=sn("".slice);rn.exports=function(t){return PW(KW(t),8,-1)}});var Tn=g((l1,Yn)=>{var _W=K(),qW=Vt(),$W=Et(),Jd=Object,t0=_W("".split);Yn.exports=qW(function(){return!Jd("z").propertyIsEnumerable(0)})?function(t){return $W(t)=="String"?t0(t,""):Jd(t)}:Jd});var hd=g((d1,Sn)=>{Sn.exports=function(t){return t==null}});var At=g((V1,kn)=>{var l0=hd(),d0=TypeError;kn.exports=function(t){if(l0(t))throw d0("Can't call method on "+t);return t}});var ft=g((i1,Mn)=>{var V0=Tn(),i0=At();Mn.exports=function(t){return V0(i0(t))}});var ud=g((n1,Hn)=>{var Xd=typeof document=="object"&&document.all,n0=typeof Xd=="undefined"&&Xd!==void 0;Hn.exports={all:Xd,IS_HTMLDDA:n0}});var _=g((e1,An)=>{var En=ud(),e0=En.all;An.exports=En.IS_HTMLDDA?function(t){return typeof t=="function"||t===e0}:function(t){return typeof t=="function"}});var Ft=g((b1,Ln)=>{var yn=_(),zn=ud(),b0=zn.all;Ln.exports=zn.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:yn(t)||t===b0}:function(t){return typeof t=="object"?t!==null:yn(t)}});var yt=g((a1,wn)=>{var sd=dt(),a0=_(),G0=function(t){return a0(t)?t:void 0};wn.exports=function(t,l){return arguments.length<2?G0(sd[t]):sd[t]&&sd[t][l]}});var Dn=g((G1,On)=>{var R0=K();On.exports=R0({}.isPrototypeOf)});var rd=g((R1,jn)=>{var W0=yt();jn.exports=W0("navigator","userAgent")||""});var $n=g((W1,qn)=>{var _n=dt(),Yd=rd(),vn=_n.process,fn=_n.Deno,Kn=vn&&vn.versions||fn&&fn.version,Pn=Kn&&Kn.v8,it,rl;Pn&&(it=Pn.split("."),rl=it[0]>0&&it[0]<4?1:+(it[0]+it[1]));!rl&&Yd&&(it=Yd.match(/Edge\/(\d+)/),(!it||it[1]>=74)&&(it=Yd.match(/Chrome\/(\d+)/),it&&(rl=+it[1])));qn.exports=rl});var Td=g((c1,le)=>{var te=$n(),c0=Vt();le.exports=!!Object.getOwnPropertySymbols&&!c0(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&te&&te<41})});var Sd=g((U1,de)=>{var U0=Td();de.exports=U0&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var kd=g((Z1,Ve)=>{var Z0=yt(),I0=_(),g0=Dn(),F0=Sd(),m0=Object;Ve.exports=F0?function(t){return typeof t=="symbol"}:function(t){var l=Z0("Symbol");return I0(l)&&g0(l.prototype,m0(t))}});var ne=g((I1,ie)=>{var B0=String;ie.exports=function(t){try{return B0(t)}catch(l){return"Object"}}});var Yl=g((g1,ee)=>{var o0=_(),p0=ne(),x0=TypeError;ee.exports=function(t){if(o0(t))return t;throw x0(p0(t)+" is not a function")}});var ae=g((F1,be)=>{var Q0=Yl(),C0=hd();be.exports=function(t,l){var d=t[l];return C0(d)?void 0:Q0(d)}});var Re=g((m1,Ge)=>{var Md=sl(),Hd=_(),Ed=Ft(),N0=TypeError;Ge.exports=function(t,l){var d,V;if(l==="string"&&Hd(d=t.toString)&&!Ed(V=Md(d,t))||Hd(d=t.valueOf)&&!Ed(V=Md(d,t))||l!=="string"&&Hd(d=t.toString)&&!Ed(V=Md(d,t)))return V;throw N0("Can't convert object to primitive value")}});var ce=g((B1,We)=>{We.exports=!1});var Tl=g((o1,Ze)=>{var Ue=dt(),J0=Object.defineProperty;Ze.exports=function(t,l){try{J0(Ue,t,{value:l,configurable:!0,writable:!0})}catch(d){Ue[t]=l}return l}});var Sl=g((p1,ge)=>{var h0=dt(),X0=Tl(),Ie="__core-js_shared__",u0=h0[Ie]||X0(Ie,{});ge.exports=u0});var Ad=g((x1,me)=>{var s0=ce(),Fe=Sl();(me.exports=function(t,l){return Fe[t]||(Fe[t]=l!==void 0?l:{})})("versions",[]).push({version:"3.27.1",mode:s0?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.1/LICENSE",source:"https://github.com/zloirock/core-js"})});var yd=g((Q1,Be)=>{var r0=At(),Y0=Object;Be.exports=function(t){return Y0(r0(t))}});var mt=g((C1,oe)=>{var T0=K(),S0=yd(),k0=T0({}.hasOwnProperty);oe.exports=Object.hasOwn||function(l,d){return k0(S0(l),d)}});var zd=g((N1,pe)=>{var M0=K(),H0=0,E0=Math.random(),A0=M0(1 .toString);pe.exports=function(t){return"Symbol("+(t===void 0?"":t)+")_"+A0(++H0+E0,36)}});var Bt=g((J1,Je)=>{var y0=dt(),z0=Ad(),xe=mt(),L0=zd(),Qe=Td(),Ne=Sd(),zt=z0("wks"),Xt=y0.Symbol,Ce=Xt&&Xt.for,w0=Ne?Xt:Xt&&Xt.withoutSetter||L0;Je.exports=function(t){if(!xe(zt,t)||!(Qe||typeof zt[t]=="string")){var l="Symbol."+t;Qe&&xe(Xt,t)?zt[t]=Xt[t]:Ne&&Ce?zt[t]=Ce(l):zt[t]=w0(l)}return zt[t]}});var se=g((h1,ue)=>{var O0=sl(),he=Ft(),Xe=kd(),D0=ae(),j0=Re(),v0=Bt(),f0=TypeError,K0=v0("toPrimitive");ue.exports=function(t,l){if(!he(t)||Xe(t))return t;var d=D0(t,K0),V;if(d){if(l===void 0&&(l="default"),V=O0(d,t,l),!he(V)||Xe(V))return V;throw f0("Can't convert object to primitive value")}return l===void 0&&(l="number"),j0(t,l)}});var Ld=g((X1,re)=>{var P0=se(),_0=kd();re.exports=function(t){var l=P0(t,"string");return _0(l)?l:l+""}});var Od=g((u1,Te)=>{var q0=dt(),Ye=Ft(),wd=q0.document,$0=Ye(wd)&&Ye(wd.createElement);Te.exports=function(t){return $0?wd.createElement(t):{}}});var Dd=g((s1,Se)=>{var tc=Zt(),lc=Vt(),dc=Od();Se.exports=!tc&&!lc(function(){return Object.defineProperty(dc("div"),"a",{get:function(){return 7}}).a!=7})});var jd=g(Me=>{var Vc=Zt(),ic=sl(),nc=Nn(),ec=Cd(),bc=ft(),ac=Ld(),Gc=mt(),Rc=Dd(),ke=Object.getOwnPropertyDescriptor;Me.f=Vc?ke:function(l,d){if(l=bc(l),d=ac(d),Rc)try{return ke(l,d)}catch(V){}if(Gc(l,d))return ec(!ic(nc.f,l,d),l[d])}});var vd=g((Y1,He)=>{var Wc=Zt(),cc=Vt();He.exports=Wc&&cc(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})});var Kt=g((T1,Ee)=>{var Uc=Ft(),Zc=String,Ic=TypeError;Ee.exports=function(t){if(Uc(t))return t;throw Ic(Zc(t)+" is not an object")}});var Lt=g(ye=>{var gc=Zt(),Fc=Dd(),mc=vd(),kl=Kt(),Ae=Ld(),Bc=TypeError,fd=Object.defineProperty,oc=Object.getOwnPropertyDescriptor,Kd="enumerable",Pd="configurable",_d="writable";ye.f=gc?mc?function(l,d,V){if(kl(l),d=Ae(d),kl(V),typeof l=="function"&&d==="prototype"&&"value"in V&&_d in V&&!V[_d]){var i=oc(l,d);i&&i[_d]&&(l[d]=V.value,V={configurable:Pd in V?V[Pd]:i[Pd],enumerable:Kd in V?V[Kd]:i[Kd],writable:!1})}return fd(l,d,V)}:fd:function(l,d,V){if(kl(l),d=Ae(d),kl(V),Fc)try{return fd(l,d,V)}catch(i){}if("get"in V||"set"in V)throw Bc("Accessors not supported");return"value"in V&&(l[d]=V.value),l}});var qd=g((k1,ze)=>{var pc=Zt(),xc=Lt(),Qc=Cd();ze.exports=pc?function(t,l,d){return xc.f(t,l,Qc(1,d))}:function(t,l,d){return t[l]=d,t}});var Oe=g((M1,we)=>{var $d=Zt(),Cc=mt(),Le=Function.prototype,Nc=$d&&Object.getOwnPropertyDescriptor,tV=Cc(Le,"name"),Jc=tV&&function(){}.name==="something",hc=tV&&(!$d||$d&&Nc(Le,"name").configurable);we.exports={EXISTS:tV,PROPER:Jc,CONFIGURABLE:hc}});var dV=g((H1,De)=>{var Xc=K(),uc=_(),lV=Sl(),sc=Xc(Function.toString);uc(lV.inspectSource)||(lV.inspectSource=function(t){return sc(t)});De.exports=lV.inspectSource});var fe=g((E1,ve)=>{var rc=dt(),Yc=_(),je=rc.WeakMap;ve.exports=Yc(je)&&/native code/.test(String(je))});var VV=g((A1,Pe)=>{var Tc=Ad(),Sc=zd(),Ke=Tc("keys");Pe.exports=function(t){return Ke[t]||(Ke[t]=Sc(t))}});var Ml=g((y1,_e)=>{_e.exports={}});var lb=g((z1,tb)=>{var kc=fe(),$e=dt(),Mc=Ft(),Hc=qd(),iV=mt(),nV=Sl(),Ec=VV(),Ac=Ml(),qe="Object already initialized",eV=$e.TypeError,yc=$e.WeakMap,Hl,Pt,El,zc=function(t){return El(t)?Pt(t):Hl(t,{})},Lc=function(t){return function(l){var d;if(!Mc(l)||(d=Pt(l)).type!==t)throw eV("Incompatible receiver, "+t+" required");return d}};kc||nV.state?(nt=nV.state||(nV.state=new yc),nt.get=nt.get,nt.has=nt.has,nt.set=nt.set,Hl=function(t,l){if(nt.has(t))throw eV(qe);return l.facade=t,nt.set(t,l),l},Pt=function(t){return nt.get(t)||{}},El=function(t){return nt.has(t)}):(ut=Ec("state"),Ac[ut]=!0,Hl=function(t,l){if(iV(t,ut))throw eV(qe);return l.facade=t,Hc(t,ut,l),l},Pt=function(t){return iV(t,ut)?t[ut]:{}},El=function(t){return iV(t,ut)});var nt,ut;tb.exports={set:Hl,get:Pt,has:El,enforce:zc,getterFor:Lc}});var ib=g((L1,Vb)=>{var wc=Vt(),Oc=_(),Al=mt(),bV=Zt(),Dc=Oe().CONFIGURABLE,jc=dV(),db=lb(),vc=db.enforce,fc=db.get,yl=Object.defineProperty,Kc=bV&&!wc(function(){return yl(function(){},"length",{value:8}).length!==8}),Pc=String(String).split("String"),_c=Vb.exports=function(t,l,d){String(l).slice(0,7)==="Symbol("&&(l="["+String(l).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),d&&d.getter&&(l="get "+l),d&&d.setter&&(l="set "+l),(!Al(t,"name")||Dc&&t.name!==l)&&(bV?yl(t,"name",{value:l,configurable:!0}):t.name=l),Kc&&d&&Al(d,"arity")&&t.length!==d.arity&&yl(t,"length",{value:d.arity});try{d&&Al(d,"constructor")&&d.constructor?bV&&yl(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var V=vc(t);return Al(V,"source")||(V.source=Pc.join(typeof l=="string"?l:"")),t};Function.prototype.toString=_c(function(){return Oc(this)&&fc(this).source||jc(this)},"toString")});var eb=g((w1,nb)=>{var qc=_(),$c=Lt(),tU=ib(),lU=Tl();nb.exports=function(t,l,d,V){V||(V={});var i=V.enumerable,n=V.name!==void 0?V.name:l;if(qc(d)&&tU(d,n,V),V.global)i?t[l]=d:lU(l,d);else{try{V.unsafe?t[l]&&(i=!0):delete t[l]}catch(b){}i?t[l]=d:$c.f(t,l,{value:d,enumerable:!1,configurable:!V.nonConfigurable,writable:!V.nonWritable})}return t}});var ab=g((O1,bb)=>{var dU=Math.ceil,VU=Math.floor;bb.exports=Math.trunc||function(l){var d=+l;return(d>0?VU:dU)(d)}});var zl=g((D1,Gb)=>{var iU=ab();Gb.exports=function(t){var l=+t;return l!==l||l===0?0:iU(l)}});var Wb=g((j1,Rb)=>{var nU=zl(),eU=Math.max,bU=Math.min;Rb.exports=function(t,l){var d=nU(t);return d<0?eU(d+l,0):bU(d,l)}});var aV=g((v1,cb)=>{var aU=zl(),GU=Math.min;cb.exports=function(t){return t>0?GU(aU(t),9007199254740991):0}});var Ll=g((f1,Ub)=>{var RU=aV();Ub.exports=function(t){return RU(t.length)}});var GV=g((K1,Ib)=>{var WU=ft(),cU=Wb(),UU=Ll(),Zb=function(t){return function(l,d,V){var i=WU(l),n=UU(i),b=cU(V,n),a;if(t&&d!=d){for(;n>b;)if(a=i[b++],a!=a)return!0}else for(;n>b;b++)if((t||b in i)&&i[b]===d)return t||b||0;return!t&&-1}};Ib.exports={includes:Zb(!0),indexOf:Zb(!1)}});var WV=g((P1,Fb)=>{var ZU=K(),RV=mt(),IU=ft(),gU=GV().indexOf,FU=Ml(),gb=ZU([].push);Fb.exports=function(t,l){var d=IU(t),V=0,i=[],n;for(n in d)!RV(FU,n)&&RV(d,n)&&gb(i,n);for(;l.length>V;)RV(d,n=l[V++])&&(~gU(i,n)||gb(i,n));return i}});var wl=g((_1,mb)=>{mb.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var ob=g(Bb=>{var mU=WV(),BU=wl(),oU=BU.concat("length","prototype");Bb.f=Object.getOwnPropertyNames||function(l){return mU(l,oU)}});var xb=g(pb=>{pb.f=Object.getOwnPropertySymbols});var Cb=g((tB,Qb)=>{var pU=yt(),xU=K(),QU=ob(),CU=xb(),NU=Kt(),JU=xU([].concat);Qb.exports=pU("Reflect","ownKeys")||function(l){var d=QU.f(NU(l)),V=CU.f;return V?JU(d,V(l)):d}});var hb=g((lB,Jb)=>{var Nb=mt(),hU=Cb(),XU=jd(),uU=Lt();Jb.exports=function(t,l,d){for(var V=hU(l),i=uU.f,n=XU.f,b=0;b<V.length;b++){var a=V[b];!Nb(t,a)&&!(d&&Nb(d,a))&&i(t,a,n(l,a))}}});var ub=g((dB,Xb)=>{var sU=Vt(),rU=_(),YU=/#|\.prototype\./,_t=function(t,l){var d=SU[TU(t)];return d==MU?!0:d==kU?!1:rU(l)?sU(l):!!l},TU=_t.normalize=function(t){return String(t).replace(YU,".").toLowerCase()},SU=_t.data={},kU=_t.NATIVE="N",MU=_t.POLYFILL="P";Xb.exports=_t});var qt=g((VB,sb)=>{var cV=dt(),HU=jd().f,EU=qd(),AU=eb(),yU=Tl(),zU=hb(),LU=ub();sb.exports=function(t,l){var d=t.target,V=t.global,i=t.stat,n,b,a,G,e,R;if(V?b=cV:i?b=cV[d]||yU(d,{}):b=(cV[d]||{}).prototype,b)for(a in l){if(e=l[a],t.dontCallGetSet?(R=HU(b,a),G=R&&R.value):G=b[a],n=LU(V?a:d+(i?".":"#")+a,t.forced),!n&&G!==void 0){if(typeof e==typeof G)continue;zU(e,G)}(t.sham||G&&G.sham)&&EU(e,"sham",!0),AU(b,a,e,t)}}});var UV=g((iB,rb)=>{var wU=Et();rb.exports=Array.isArray||function(l){return wU(l)=="Array"}});var Tb=g((nB,Yb)=>{var OU=TypeError,DU=9007199254740991;Yb.exports=function(t){if(t>DU)throw OU("Maximum allowed index exceeded");return t}});var kb=g((eB,Sb)=>{var jU=Et(),vU=K();Sb.exports=function(t){if(jU(t)==="Function")return vU(t)}});var Eb=g((bB,Hb)=>{var Mb=kb(),fU=Yl(),KU=Xl(),PU=Mb(Mb.bind);Hb.exports=function(t,l){return fU(t),l===void 0?t:KU?PU(t,l):function(){return t.apply(l,arguments)}}});var zb=g((aB,yb)=>{"use strict";var _U=UV(),qU=Ll(),$U=Tb(),tZ=Eb(),Ab=function(t,l,d,V,i,n,b,a){for(var G=i,e=0,R=b?tZ(b,a):!1,W,c;e<V;)e in d&&(W=R?R(d[e],e,l):d[e],n>0&&_U(W)?(c=qU(W),G=Ab(t,l,W,c,G,n-1)-1):($U(G+1),t[G]=W),G++),e++;return G};yb.exports=Ab});var Ob=g((GB,wb)=>{var lZ=Bt(),dZ=lZ("toStringTag"),Lb={};Lb[dZ]="z";wb.exports=String(Lb)==="[object z]"});var ZV=g((RB,Db)=>{var VZ=Ob(),iZ=_(),Ol=Et(),nZ=Bt(),eZ=nZ("toStringTag"),bZ=Object,aZ=Ol(function(){return arguments}())=="Arguments",GZ=function(t,l){try{return t[l]}catch(d){}};Db.exports=VZ?Ol:function(t){var l,d,V;return t===void 0?"Undefined":t===null?"Null":typeof(d=GZ(l=bZ(t),eZ))=="string"?d:aZ?Ol(l):(V=Ol(l))=="Object"&&iZ(l.callee)?"Arguments":V}});var _b=g((WB,Pb)=>{var RZ=K(),WZ=Vt(),jb=_(),cZ=ZV(),UZ=yt(),ZZ=dV(),vb=function(){},IZ=[],fb=UZ("Reflect","construct"),IV=/^\s*(?:class|function)\b/,gZ=RZ(IV.exec),FZ=!IV.exec(vb),$t=function(l){if(!jb(l))return!1;try{return fb(vb,IZ,l),!0}catch(d){return!1}},Kb=function(l){if(!jb(l))return!1;switch(cZ(l)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return FZ||!!gZ(IV,ZZ(l))}catch(d){return!0}};Kb.sham=!0;Pb.exports=!fb||WZ(function(){var t;return $t($t.call)||!$t(Object)||!$t(function(){t=!0})||t})?Kb:$t});var la=g((cB,ta)=>{var qb=UV(),mZ=_b(),BZ=Ft(),oZ=Bt(),pZ=oZ("species"),$b=Array;ta.exports=function(t){var l;return qb(t)&&(l=t.constructor,mZ(l)&&(l===$b||qb(l.prototype))?l=void 0:BZ(l)&&(l=l[pZ],l===null&&(l=void 0))),l===void 0?$b:l}});var Va=g((UB,da)=>{var xZ=la();da.exports=function(t,l){return new(xZ(t))(l===0?0:l)}});var ia=g(()=>{"use strict";var QZ=qt(),CZ=zb(),NZ=Yl(),JZ=yd(),hZ=Ll(),XZ=Va();QZ({target:"Array",proto:!0},{flatMap:function(l){var d=JZ(this),V=hZ(d),i;return NZ(l),i=XZ(d,0),i.length=CZ(i,d,d,V,0,1,l,arguments.length>1?arguments[1]:void 0),i}})});var ea=g((gB,na)=>{var uZ=WV(),sZ=wl();na.exports=Object.keys||function(l){return uZ(l,sZ)}});var aa=g(ba=>{var rZ=Zt(),YZ=vd(),TZ=Lt(),SZ=Kt(),kZ=ft(),MZ=ea();ba.f=rZ&&!YZ?Object.defineProperties:function(l,d){SZ(l);for(var V=kZ(d),i=MZ(d),n=i.length,b=0,a;n>b;)TZ.f(l,a=i[b++],V[a]);return l}});var Ra=g((mB,Ga)=>{var HZ=yt();Ga.exports=HZ("document","documentElement")});var ma=g((BB,Fa)=>{var EZ=Kt(),AZ=aa(),Wa=wl(),yZ=Ml(),zZ=Ra(),LZ=Od(),wZ=VV(),ca=">",Ua="<",FV="prototype",mV="script",Ia=wZ("IE_PROTO"),gV=function(){},ga=function(t){return Ua+mV+ca+t+Ua+"/"+mV+ca},Za=function(t){t.write(ga("")),t.close();var l=t.parentWindow.Object;return t=null,l},OZ=function(){var t=LZ("iframe"),l="java"+mV+":",d;return t.style.display="none",zZ.appendChild(t),t.src=String(l),d=t.contentWindow.document,d.open(),d.write(ga("document.F=Object")),d.close(),d.F},Dl,jl=function(){try{Dl=new ActiveXObject("htmlfile")}catch(l){}jl=typeof document!="undefined"?document.domain&&Dl?Za(Dl):OZ():Za(Dl);for(var t=Wa.length;t--;)delete jl[FV][Wa[t]];return jl()};yZ[Ia]=!0;Fa.exports=Object.create||function(l,d){var V;return l!==null?(gV[FV]=EZ(l),V=new gV,gV[FV]=null,V[Ia]=l):V=jl(),d===void 0?V:AZ.f(V,d)}});var pV=g((oB,Ba)=>{var DZ=Bt(),jZ=ma(),vZ=Lt().f,BV=DZ("unscopables"),oV=Array.prototype;oV[BV]==null&&vZ(oV,BV,{configurable:!0,value:jZ(null)});Ba.exports=function(t){oV[BV][t]=!0}});var oa=g(()=>{var fZ=pV();fZ("flatMap")});var tl=g((QB,pa)=>{var KZ=dt(),PZ=K();pa.exports=function(t,l){return PZ(KZ[t].prototype[l])}});var Qa=g((CB,xa)=>{ia();oa();var _Z=tl();xa.exports=_Z("Array","flatMap")});var Na=g((NB,Ca)=>{var qZ=Qa();Ca.exports=qZ});var ha=g((JB,Ja)=>{var $Z=Na();Ja.exports=$Z});var Xa=g(()=>{"use strict";var tI=qt(),lI=GV().includes,dI=Vt(),VI=pV(),iI=dI(function(){return!Array(1).includes()});tI({target:"Array",proto:!0,forced:iI},{includes:function(l){return lI(this,l,arguments.length>1?arguments[1]:void 0)}});VI("includes")});var sa=g((uB,ua)=>{Xa();var nI=tl();ua.exports=nI("Array","includes")});var Ya=g((sB,ra)=>{var eI=sa();ra.exports=eI});var Sa=g((rB,Ta)=>{var bI=Ya();Ta.exports=bI});var Ma=g((YB,ka)=>{var aI=Ft(),GI=Et(),RI=Bt(),WI=RI("match");ka.exports=function(t){var l;return aI(t)&&((l=t[WI])!==void 0?!!l:GI(t)=="RegExp")}});var Ea=g((TB,Ha)=>{var cI=Ma(),UI=TypeError;Ha.exports=function(t){if(cI(t))throw UI("The method doesn't accept regular expressions");return t}});var vl=g((SB,Aa)=>{var ZI=ZV(),II=String;Aa.exports=function(t){if(ZI(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return II(t)}});var za=g((kB,ya)=>{var gI=Bt(),FI=gI("match");ya.exports=function(t){var l=/./;try{"/./"[t](l)}catch(d){try{return l[FI]=!1,"/./"[t](l)}catch(V){}}return!1}});var wa=g(()=>{"use strict";var mI=qt(),BI=K(),oI=Ea(),pI=At(),La=vl(),xI=za(),QI=BI("".indexOf);mI({target:"String",proto:!0,forced:!xI("includes")},{includes:function(l){return!!~QI(La(pI(this)),La(oI(l)),arguments.length>1?arguments[1]:void 0)}})});var Da=g((EB,Oa)=>{wa();var CI=tl();Oa.exports=CI("String","includes")});var va=g((AB,ja)=>{var NI=Da();ja.exports=NI});var Ka=g((yB,fa)=>{var JI=va();fa.exports=JI});var _a=g((zB,Pa)=>{"use strict";var hI=zl(),XI=vl(),uI=At(),sI=RangeError;Pa.exports=function(l){var d=XI(uI(this)),V="",i=hI(l);if(i<0||i==1/0)throw sI("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(d+=d))i&1&&(V+=d);return V}});var dG=g((LB,lG)=>{var tG=K(),rI=aV(),qa=vl(),YI=_a(),TI=At(),SI=tG(YI),kI=tG("".slice),MI=Math.ceil,$a=function(t){return function(l,d,V){var i=qa(TI(l)),n=rI(d),b=i.length,a=V===void 0?" ":qa(V),G,e;return n<=b||a==""?i:(G=n-b,e=SI(a,MI(G/a.length)),e.length>G&&(e=kI(e,0,G)),t?i+e:e+i)}};lG.exports={start:$a(!1),end:$a(!0)}});var iG=g((wB,VG)=>{var HI=rd();VG.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(HI)});var nG=g(()=>{"use strict";var EI=qt(),AI=dG().start,yI=iG();EI({target:"String",proto:!0,forced:yI},{padStart:function(l){return AI(this,l,arguments.length>1?arguments[1]:void 0)}})});var bG=g((jB,eG)=>{nG();var zI=tl();eG.exports=zI("String","padStart")});var GG=g((vB,aG)=>{var LI=bG();aG.exports=LI});var WG=g((fB,RG)=>{var wI=GG();RG.exports=wI});var mG=g((_B,JV)=>{function NV(){}NV.prototype={on:function(t,l,d){var V=this.e||(this.e={});return(V[t]||(V[t]=[])).push({fn:l,ctx:d}),this},once:function(t,l,d){var V=this;function i(){V.off(t,i),l.apply(d,arguments)}return i._=l,this.on(t,i,d)},emit:function(t){var l=[].slice.call(arguments,1),d=((this.e||(this.e={}))[t]||[]).slice(),V=0,i=d.length;for(V;V<i;V++)d[V].fn.apply(d[V].ctx,l);return this},off:function(t,l){var d=this.e||(this.e={}),V=d[t],i=[];if(V&&l)for(var n=0,b=V.length;n<b;n++)V[n].fn!==l&&V[n].fn._!==l&&i.push(V[n]);return i.length?d[t]=i:delete d[t],this}};JV.exports=NV;JV.exports.TinyEmitter=NV});var f=g((TV,SV)=>{(function(t){"use strict";var l=function(){},d=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(e){return setTimeout(e,16)};function V(){var e=this;e.reads=[],e.writes=[],e.raf=d.bind(t),l("initialized",e)}V.prototype={constructor:V,runTasks:function(e){l("run tasks");for(var R;R=e.shift();)R()},measure:function(e,R){l("measure");var W=R?e.bind(R):e;return this.reads.push(W),i(this),W},mutate:function(e,R){l("mutate");var W=R?e.bind(R):e;return this.writes.push(W),i(this),W},clear:function(e){return l("clear",e),b(this.reads,e)||b(this.writes,e)},extend:function(e){if(l("extend",e),typeof e!="object")throw new Error("expected object");var R=Object.create(this);return a(R,e),R.fastdom=this,R.initialize&&R.initialize(),R},catch:null};function i(e){e.scheduled||(e.scheduled=!0,e.raf(n.bind(null,e)),l("flush scheduled"))}function n(e){l("flush");var R=e.writes,W=e.reads,c;try{l("flushing reads",W.length),e.runTasks(W),l("flushing writes",R.length),e.runTasks(R)}catch(I){c=I}if(e.scheduled=!1,(W.length||R.length)&&i(e),c)if(l("task errored",c.message),e.catch)e.catch(c);else throw c}function b(e,R){var W=e.indexOf(R);return!!~W&&!!e.splice(W,1)}function a(e,R){for(var W in R)R.hasOwnProperty(W)&&(e[W]=R[W])}var G=t.fastdom=t.fastdom||new V;typeof SV=="object"&&(SV.exports=G)})(typeof window!="undefined"?window:typeof TV!="undefined"?TV:globalThis)});var kV=g((go,JG)=>{JG.exports=cg;function cg(t,l,d){return l<d?t<l?l:t>d?d:t:t<d?d:t>l?l:t}});var MV=g((po,Kl)=>{(function(){"use strict";var t=function(){function l(){}l.prototype=Object.create(null);function d(R,W){for(var c=W.length,I=0;I<c;++I)G(R,W[I])}var V={}.hasOwnProperty;function i(R,W){R[W]=!0}function n(R,W){if(W.toString!==Object.prototype.toString&&!W.toString.toString().includes("[native code]")){R[W.toString()]=!0;return}for(var c in W)V.call(W,c)&&(R[c]=!!W[c])}var b=/\s+/;function a(R,W){for(var c=W.split(b),I=c.length,B=0;B<I;++B)R[c[B]]=!0}function G(R,W){if(W){var c=typeof W;c==="string"?a(R,W):Array.isArray(W)?d(R,W):c==="object"?n(R,W):c==="number"&&i(R,W)}}function e(){for(var R=arguments.length,W=Array(R),c=0;c<R;c++)W[c]=arguments[c];var I=new l;d(I,W);var B=[];for(var U in I)I[U]&&B.push(U);return B.join(" ")}return e}();typeof Kl!="undefined"&&Kl.exports?(t.default=t,Kl.exports=t):window.classNames=t})()});var XG=g((hG,Pl)=>{(function(t){var l={browser:[[/msie ([\.\_\d]+)/,"ie"],[/trident\/.*?rv:([\.\_\d]+)/,"ie"],[/firefox\/([\.\_\d]+)/,"firefox"],[/chrome\/([\.\_\d]+)/,"chrome"],[/version\/([\.\_\d]+).*?safari/,"safari"],[/mobile safari ([\.\_\d]+)/,"safari"],[/android.*?version\/([\.\_\d]+).*?safari/,"com.android.browser"],[/crios\/([\.\_\d]+).*?safari/,"chrome"],[/opera/,"opera"],[/opera\/([\.\_\d]+)/,"opera"],[/opera ([\.\_\d]+)/,"opera"],[/opera mini.*?version\/([\.\_\d]+)/,"opera.mini"],[/opios\/([a-z\.\_\d]+)/,"opera"],[/blackberry/,"blackberry"],[/blackberry.*?version\/([\.\_\d]+)/,"blackberry"],[/bb\d+.*?version\/([\.\_\d]+)/,"blackberry"],[/rim.*?version\/([\.\_\d]+)/,"blackberry"],[/iceweasel\/([\.\_\d]+)/,"iceweasel"],[/edge\/([\.\d]+)/,"edge"]],os:[[/linux ()([a-z\.\_\d]+)/,"linux"],[/mac os x/,"macos"],[/mac os x.*?([\.\_\d]+)/,"macos"],[/os ([\.\_\d]+) like mac os/,"ios"],[/openbsd ()([a-z\.\_\d]+)/,"openbsd"],[/android/,"android"],[/android ([a-z\.\_\d]+);/,"android"],[/mozilla\/[a-z\.\_\d]+ \((?:mobile)|(?:tablet)/,"firefoxos"],[/windows\s*(?:nt)?\s*([\.\_\d]+)/,"windows"],[/windows phone.*?([\.\_\d]+)/,"windows.phone"],[/windows mobile/,"windows.mobile"],[/blackberry/,"blackberryos"],[/bb\d+/,"blackberryos"],[/rim.*?os\s*([\.\_\d]+)/,"blackberryos"]],device:[[/ipad/,"ipad"],[/iphone/,"iphone"],[/lumia/,"lumia"],[/htc/,"htc"],[/nexus/,"nexus"],[/galaxy nexus/,"galaxy.nexus"],[/nokia/,"nokia"],[/ gt\-/,"galaxy"],[/ sm\-/,"galaxy"],[/xbox/,"xbox"],[/(?:bb\d+)|(?:blackberry)|(?: rim )/,"blackberry"]]},d="Unknown",V=Object.keys(l);function i(){var a=this;V.forEach(function(G){a[G]={name:d,version:[],versionString:d}})}function n(a,G,e){l[G].forEach(function(R){var W=R[0],c=R[1],I=e.match(W);I&&(a[G].name=c,I[2]?(a[G].versionString=I[2],a[G].version=[]):I[1]?(a[G].versionString=I[1].replace(/_/g,"."),a[G].version=b(I[1])):(a[G].versionString=d,a[G].version=[]))})}function b(a){return a.split(/[\._]/).map(function(G){return parseInt(G)})}i.prototype.sniff=function(a){var G=this,e=typeof window!="undefined",R=e?navigator.userAgent:"",W=(a||R).toLowerCase();return V.forEach(function(c){n(G,c,W)}),this},typeof Pl!="undefined"&&Pl.exports?Pl.exports=i:(t.Sniffr=new i,t.Sniffr.sniff(navigator.userAgent))})(hG)});var wV=g((vo,TG)=>{TG.exports=function(){var t=function(a){return typeof a=="function"},l=function(a){var G=Number(a);return isNaN(G)?0:G===0||!isFinite(G)?G:(G>0?1:-1)*Math.floor(Math.abs(G))},d=Math.pow(2,53)-1,V=function(a){var G=l(a);return Math.min(Math.max(G,0),d)},i=function(a){if(a!=null){if(["string","number","boolean","symbol"].indexOf(typeof a)>-1)return Symbol.iterator;if(typeof Symbol!="undefined"&&"iterator"in Symbol&&Symbol.iterator in a)return Symbol.iterator;if("@@iterator"in a)return"@@iterator"}},n=function(a,G){if(a!=null&&G!=null){var e=a[G];if(e==null)return;if(!t(e))throw new TypeError(e+" is not a function");return e}},b=function(a){var G=a.next(),e=!!G.done;return e?!1:G};return function(G){"use strict";var e=this,R=arguments.length>1?arguments[1]:void 0,W;if(typeof R!="undefined"){if(!t(R))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(W=arguments[2])}var c,I,B=n(G,i(G));if(B!==void 0){c=t(e)?Object(new e):[];var U=B.call(G);if(U==null)throw new TypeError("Array.from requires an array-like or iterable object");I=0;for(var Z,m;;){if(Z=b(U),!Z)return c.length=I,c;m=Z.value,R?c[I]=R.call(W,m,I):c[I]=m,I++}}else{var x=Object(G);if(G==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");var C=V(x.length);c=t(e)?Object(new e(C)):new Array(C),I=0;for(var N;I<C;)N=x[I],R?c[I]=R.call(W,N,I):c[I]=N,I++;c.length=C}return c}}()});var MG=g((tp,kG)=>{var nl,el;typeof document.hidden!="undefined"?(nl="hidden",el="visibilitychange"):typeof document.mozHidden!="undefined"?(nl="mozHidden",el="mozvisibilitychange"):typeof document.msHidden!="undefined"?(nl="msHidden",el="msvisibilitychange"):typeof document.webkitHidden!="undefined"&&(nl="webkitHidden",el="webkitvisibilitychange");kG.exports={hidden:nl,visibilityChange:el}});var yG=g((al,jV)=>{(function(t,l){typeof al=="object"&&typeof jV=="object"?jV.exports=l():typeof al=="object"?al.StateMachine=l():t.StateMachine=l()})(al,function(){return d={},t.m=l=[function(V,i,n){"use strict";V.exports=function(b,a){for(var G,e,R=1;R<arguments.length;R++)for(e in G=arguments[R])G.hasOwnProperty(e)&&(b[e]=G[e]);return b}},function(V,i,n){"use strict";var b=n(0);V.exports={build:function(a,G){for(var e,R=G.plugins,W=0,c=R.length;W<c;W++)(e=R[W]).methods&&b(a,e.methods),e.properties&&Object.defineProperties(a,e.properties)},hook:function(a,G,e){var R,W,c,I,B=a.config.plugins,U=[a.context];for(e&&(U=U.concat(e)),R=0,W=B.length;R<W;R++)I=B[R],(c=B[R][G])&&c.apply(I,U)}}},function(V,i,n){"use strict";function b(a){if(a.length===0)return a;var G,e,R=a.split(/[_-]/);if(R.length===1&&R[0][0].toLowerCase()===R[0][0])return a;for(e=R[0].toLowerCase(),G=1;G<R.length;G++)e=e+R[G].charAt(0).toUpperCase()+R[G].substring(1).toLowerCase();return e}b.prepended=function(a,G){return a+(G=b(G))[0].toUpperCase()+G.substring(1)},V.exports=b},function(V,i,n){"use strict";var b=n(0),a=n(2);function G(e,R){e=e||{},this.options=e,this.defaults=R.defaults,this.states=[],this.transitions=[],this.map={},this.lifecycle=this.configureLifecycle(),this.init=this.configureInitTransition(e.init),this.data=this.configureData(e.data),this.methods=this.configureMethods(e.methods),this.map[this.defaults.wildcard]={},this.configureTransitions(e.transitions||[]),this.plugins=this.configurePlugins(e.plugins,R.plugin)}b(G.prototype,{addState:function(e){this.map[e]||(this.states.push(e),this.addStateLifecycleNames(e),this.map[e]={})},addStateLifecycleNames:function(e){this.lifecycle.onEnter[e]=a.prepended("onEnter",e),this.lifecycle.onLeave[e]=a.prepended("onLeave",e),this.lifecycle.on[e]=a.prepended("on",e)},addTransition:function(e){this.transitions.indexOf(e)<0&&(this.transitions.push(e),this.addTransitionLifecycleNames(e))},addTransitionLifecycleNames:function(e){this.lifecycle.onBefore[e]=a.prepended("onBefore",e),this.lifecycle.onAfter[e]=a.prepended("onAfter",e),this.lifecycle.on[e]=a.prepended("on",e)},mapTransition:function(e){var R=e.name,W=e.from,c=e.to;return this.addState(W),typeof c!="function"&&this.addState(c),this.addTransition(R),this.map[W][R]=e},configureLifecycle:function(){return{onBefore:{transition:"onBeforeTransition"},onAfter:{transition:"onAfterTransition"},onEnter:{state:"onEnterState"},onLeave:{state:"onLeaveState"},on:{transition:"onTransition"}}},configureInitTransition:function(e){return typeof e=="string"?this.mapTransition(b({},this.defaults.init,{to:e,active:!0})):typeof e=="object"?this.mapTransition(b({},this.defaults.init,e,{active:!0})):(this.addState(this.defaults.init.from),this.defaults.init)},configureData:function(e){return typeof e=="function"?e:typeof e=="object"?function(){return e}:function(){return{}}},configureMethods:function(e){return e||{}},configurePlugins:function(e,R){for(var W,c=0,I=(e=e||[]).length;c<I;c++)typeof(W=e[c])=="function"&&(e[c]=W=W()),W.configure&&W.configure(this);return e},configureTransitions:function(e){for(var R,W,c,I,B=this.defaults.wildcard,U=0;U<e.length;U++)for(W=e[U],c=Array.isArray(W.from)?W.from:[W.from||B],I=W.to||B,R=0;R<c.length;R++)this.mapTransition({name:W.name,from:c[R],to:I})},transitionFor:function(e,R){var W=this.defaults.wildcard;return this.map[e][R]||this.map[W][R]},transitionsFor:function(e){var R=this.defaults.wildcard;return Object.keys(this.map[e]).concat(Object.keys(this.map[R]))},allStates:function(){return this.states},allTransitions:function(){return this.transitions}}),V.exports=G},function(V,i,n){var b=n(0),a=n(6),G=n(1),e=[null,[]];function R(W,c){this.context=W,this.config=c,this.state=c.init.from,this.observers=[W]}b(R.prototype,{init:function(W){if(b(this.context,this.config.data.apply(this.context,W)),G.hook(this,"init"),this.config.init.active)return this.fire(this.config.init.name,[])},is:function(W){return Array.isArray(W)?0<=W.indexOf(this.state):this.state===W},isPending:function(){return this.pending},can:function(W){return!this.isPending()&&!!this.seek(W)},cannot:function(W){return!this.can(W)},allStates:function(){return this.config.allStates()},allTransitions:function(){return this.config.allTransitions()},transitions:function(){return this.config.transitionsFor(this.state)},seek:function(B,c){var I=this.config.defaults.wildcard,B=this.config.transitionFor(this.state,B),B=B&&B.to;return typeof B=="function"?B.apply(this.context,c):B===I?this.state:B},fire:function(W,c){return this.transit(W,this.state,this.seek(W,c),c)},transit:function(W,c,I,B){var U=this.config.lifecycle,Z=this.config.options.observeUnchangedState||c!==I;return I?this.isPending()?this.context.onPendingTransition(W,c,I):(this.config.addState(I),this.beginTransit(),B.unshift({transition:W,from:c,to:I,fsm:this.context}),this.observeEvents([this.observersForEvent(U.onBefore.transition),this.observersForEvent(U.onBefore[W]),Z?this.observersForEvent(U.onLeave.state):e,Z?this.observersForEvent(U.onLeave[c]):e,this.observersForEvent(U.on.transition),Z?["doTransit",[this]]:e,Z?this.observersForEvent(U.onEnter.state):e,Z?this.observersForEvent(U.onEnter[I]):e,Z?this.observersForEvent(U.on[I]):e,this.observersForEvent(U.onAfter.transition),this.observersForEvent(U.onAfter[W]),this.observersForEvent(U.on[W])],B)):this.context.onInvalidTransition(W,c,I)},beginTransit:function(){this.pending=!0},endTransit:function(W){return this.pending=!1,W},failTransit:function(W){throw this.pending=!1,W},doTransit:function(W){this.state=W.to},observe:function(W){var c;W.length===2?((c={})[W[0]]=W[1],this.observers.push(c)):this.observers.push(W[0])},observersForEvent:function(W){for(var c,I=0,B=this.observers.length,U=[];I<B;I++)(c=this.observers[I])[W]&&U.push(c);return[W,U,!0]},observeEvents:function(W,c,I,B){if(W.length===0)return this.endTransit(B===void 0||B);var U=W[0][0],Z=W[0][1],m=W[0][2];return(c[0].event=U)&&m&&U!==I&&G.hook(this,"lifecycle",c),Z.length===0?(W.shift(),this.observeEvents(W,c,U,B)):(Z=Z.shift(),Z=Z[U].apply(Z,c),Z&&typeof Z.then=="function"?Z.then(this.observeEvents.bind(this,W,c,U)).catch(this.failTransit.bind(this)):Z===!1?this.endTransit(!1):this.observeEvents(W,c,U,Z))},onInvalidTransition:function(W,c,I){throw new a("transition is invalid in current state",W,c,I,this.state)},onPendingTransition:function(W,c,I){throw new a("transition is invalid while previous transition is still in progress",W,c,I,this.state)}}),V.exports=R},function(V,i,n){"use strict";var b=n(0),a=n(2),G=n(1),e=n(3),R=n(4),W={is:function(Z){return this._fsm.is(Z)},can:function(Z){return this._fsm.can(Z)},cannot:function(Z){return this._fsm.cannot(Z)},observe:function(){return this._fsm.observe(arguments)},transitions:function(){return this._fsm.transitions()},allTransitions:function(){return this._fsm.allTransitions()},allStates:function(){return this._fsm.allStates()},onInvalidTransition:function(Z,m,x){return this._fsm.onInvalidTransition(Z,m,x)},onPendingTransition:function(Z,m,x){return this._fsm.onPendingTransition(Z,m,x)}},c={state:{configurable:!1,enumerable:!0,get:function(){return this._fsm.state},set:function(Z){throw Error("use transitions to change state")}}};function I(Z){return B(this||{},Z)}function B(Z,m){return U(Z,new e(m,I)),Z._fsm(),Z}function U(Z,m){if(typeof Z!="object"||Array.isArray(Z))throw Error("StateMachine can only be applied to objects");G.build(Z,m),Object.defineProperties(Z,c),b(Z,W),b(Z,m.methods),m.allTransitions().forEach(function(x){Z[a(x)]=function(){return this._fsm.fire(x,[].slice.call(arguments))}}),Z._fsm=function(){this._fsm=new R(this,m),this._fsm.init(arguments)}}I.version="3.0.1",I.factory=function(){var Z,m=typeof arguments[0]=="function"?(Z=arguments[0],arguments[1]||{}):(Z=function(){this._fsm.apply(this,arguments)},arguments[0]||{}),m=new e(m,I);return U(Z.prototype,m),Z.prototype._fsm.config=m,Z},I.apply=B,I.defaults={wildcard:"*",init:{name:"init",from:"none"}},V.exports=I},function(V,i,n){"use strict";V.exports=function(b,a,G,e,R){this.message=b,this.transition=a,this.from=G,this.to=e,this.current=R}}],t.c=d,t.i=function(V){return V},t.d=function(V,i,n){t.o(V,i)||Object.defineProperty(V,i,{configurable:!1,enumerable:!0,get:n})},t.n=function(V){var i=V&&V.__esModule?function(){return V.default}:function(){return V};return t.d(i,"a",i),i},t.o=function(V,i){return Object.prototype.hasOwnProperty.call(V,i)},t.p="",t(t.s=5);function t(V){if(d[V])return d[V].exports;var i=d[V]={i:V,l:!1,exports:{}};return l[V].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var l,d})});var oR=g((BR,md)=>{(function(t,l){typeof md=="object"&&md.exports?md.exports=l():function d(){document&&document.body?t.zenscroll=l():setTimeout(d,9)}()})(BR,function(){"use strict";var t=function(G){return G&&"getComputedStyle"in window&&window.getComputedStyle(G)["scroll-behavior"]==="smooth"};if(typeof window=="undefined"||!("document"in window))return{};var l=function(G,e,R){e=e||999,!R&&R!==0&&(R=9);var W,c=function(N){W=N},I=function(){clearTimeout(W),c(0)},B=function(N){return Math.max(0,G.getTopOf(N)-R)},U=function(N,p,F){if(I(),p===0||p&&p<0||t(G.body))G.toY(N),F&&F();else{var X=G.getY(),Q=Math.max(0,N)-X,S=new Date().getTime();p=p||Math.min(Math.abs(Q),e),function H(){c(setTimeout(function(){var u=Math.min(1,(new Date().getTime()-S)/p),r=Math.max(0,Math.floor(X+Q*(u<.5?2*u*u:u*(4-u*2)-1)));G.toY(r),u<1&&G.getHeight()+r<G.body.scrollHeight?H():(setTimeout(I,99),F&&F())},9))}()}},Z=function(N,p,F){U(B(N),p,F)},m=function(N,p,F){var X=N.getBoundingClientRect().height,Q=G.getTopOf(N)+X,S=G.getHeight(),H=G.getY(),u=H+S;B(N)<H||X+R>S?Z(N,p,F):Q+R>u?U(Q-S+R,p,F):F&&F()},x=function(N,p,F,X){U(Math.max(0,G.getTopOf(N)-G.getHeight()/2+(F||N.getBoundingClientRect().height/2)),p,X)},C=function(N,p){return(N===0||N)&&(e=N),(p===0||p)&&(R=p),{defaultDuration:e,edgeOffset:R}};return{setup:C,to:Z,toY:U,intoView:m,center:x,stop:I,moving:function(){return!!W},getY:G.getY,getTopOf:G.getTopOf}},d=document.documentElement,V=function(){return window.scrollY||d.scrollTop},i=l({body:document.scrollingElement||document.body,toY:function(G){window.scrollTo(0,G)},getY:V,getHeight:function(){return window.innerHeight||d.clientHeight},getTopOf:function(G){return G.getBoundingClientRect().top+V()-d.offsetTop}});if(i.createScroller=function(G,e,R){return l({body:G,toY:function(W){G.scrollTop=W},getY:function(){return G.scrollTop},getHeight:function(){return Math.min(G.clientHeight,window.innerHeight||d.clientHeight)},getTopOf:function(W){return W.offsetTop}},e,R)},"addEventListener"in window&&!window.noZensmooth&&!t(document.body)){var n="history"in window&&"pushState"in history,b=n&&"scrollRestoration"in history;b&&(history.scrollRestoration="auto"),window.addEventListener("load",function(){b&&(setTimeout(function(){history.scrollRestoration="manual"},9),window.addEventListener("popstate",function(G){G.state&&"zenscrollY"in G.state&&i.toY(G.state.zenscrollY)},!1)),window.location.hash&&setTimeout(function(){var G=i.setup().edgeOffset;if(G){var e=document.getElementById(window.location.href.split("#")[1]);if(e){var R=Math.max(0,i.getTopOf(e)-G),W=i.getY()-R;0<=W&&W<9&&window.scrollTo(0,R)}}},9)},!1);var a=new RegExp("(^|\\s)noZensmooth(\\s|$)");window.addEventListener("click",function(G){for(var e=G.target;e&&e.tagName!=="A";)e=e.parentNode;if(!(!e||G.which!==1||G.shiftKey||G.metaKey||G.ctrlKey||G.altKey)){if(b){var R=history.state&&typeof history.state=="object"?history.state:{};R.zenscrollY=i.getY();try{history.replaceState(R,"")}catch(Z){}}var W=e.getAttribute("href")||"";if(W.indexOf("#")===0&&!a.test(e.className)){var c=0,I=document.getElementById(W.substring(1));if(W!=="#"){if(!I)return;c=i.getTopOf(I)}G.preventDefault();var B=function(){window.location=W},U=i.setup().edgeOffset;U&&(c=Math.max(0,c-U),n&&(B=function(){history.pushState({},"",W)})),i.toY(c,null,B)}}},!1)}return i})});var si=g((pC,hR)=>{"use strict";var EF=hR.exports={};EF.forEach=function(t,l){for(var d=0;d<t.length;d++){var V=l(t[d]);if(V)return V}}});var uR=g((xC,XR)=>{"use strict";XR.exports=function(t){var l=t.stateHandler.getState;function d(b){var a=l(b);return a&&!!a.isDetectable}function V(b){l(b).isDetectable=!0}function i(b){return!!l(b).busy}function n(b,a){l(b).busy=!!a}return{isDetectable:d,markAsDetectable:V,isBusy:i,markBusy:n}}});var rR=g((QC,sR)=>{"use strict";sR.exports=function(t){var l={};function d(b){var a=t.get(b);return a===void 0?[]:l[a]||[]}function V(b,a){var G=t.get(b);l[G]||(l[G]=[]),l[G].push(a)}function i(b,a){for(var G=d(b),e=0,R=G.length;e<R;++e)if(G[e]===a){G.splice(e,1);break}}function n(b){var a=d(b);a&&(a.length=0)}return{get:d,add:V,removeListener:i,removeAllListeners:n}}});var TR=g((CC,YR)=>{"use strict";YR.exports=function(){var t=1;function l(){return t++}return{generate:l}}});var kR=g((NC,SR)=>{"use strict";SR.exports=function(t){var l=t.idGenerator,d=t.stateHandler.getState;function V(n){var b=d(n);return b&&b.id!==void 0?b.id:null}function i(n){var b=d(n);if(!b)throw new Error("setId required the element to have a resize detection state.");var a=l.generate();return b.id=a,a}return{get:V,set:i}}});var HR=g((JC,MR)=>{"use strict";MR.exports=function(t){function l(){}var d={log:l,warn:l,error:l};if(!t&&window.console){var V=function(i,n){i[n]=function(){var a=console[n];if(a.apply)a.apply(console,arguments);else for(var G=0;G<arguments.length;G++)a(arguments[G])}};V(d,"log"),V(d,"warn"),V(d,"error")}return d}});var ri=g((hC,AR)=>{"use strict";var ER=AR.exports={};ER.isIE=function(t){function l(){var V=navigator.userAgent.toLowerCase();return V.indexOf("msie")!==-1||V.indexOf("trident")!==-1||V.indexOf(" edge/")!==-1}if(!l())return!1;if(!t)return!0;var d=function(){var V,i=3,n=document.createElement("div"),b=n.getElementsByTagName("i");do n.innerHTML="<!--[if gt IE "+ ++i+"]><i></i><![endif]-->";while(b[0]);return i>4?i:V}();return t===d};ER.isLegacyOpera=function(){return!!window.opera}});var zR=g((XC,yR)=>{"use strict";var AF=yR.exports={};AF.getOption=yF;function yF(t,l,d){var V=t[l];return V==null&&d!==void 0?d:V}});var DR=g((uC,OR)=>{"use strict";var LR=zR();OR.exports=function(l){l=l||{};var d=l.reporter,V=LR.getOption(l,"async",!0),i=LR.getOption(l,"auto",!0);i&&!V&&(d&&d.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),V=!0);var n=wR(),b,a=!1;function G(U,Z){!a&&i&&V&&n.size()===0&&W(),n.add(U,Z)}function e(){for(a=!0;n.size();){var U=n;n=wR(),U.process()}a=!1}function R(U){a||(U===void 0&&(U=V),b&&(I(b),b=null),U?W():e())}function W(){b=B(e)}function c(){n={},batchSize=0,topLevel=0,bottomLevel=0}function I(U){var Z=clearTimeout;return Z(U)}function B(U){var Z=function(m){return setTimeout(m,0)};return Z(U)}return{add:G,force:R}};function wR(){var t={},l=0,d=0,V=0;function i(a,G){G||(G=a,a=0),a>d?d=a:a<V&&(V=a),t[a]||(t[a]=[]),t[a].push(G),l++}function n(){for(var a=V;a<=d;a++)for(var G=t[a],e=0;e<G.length;e++){var R=G[e];R()}}function b(){return l}return{add:i,process:n,size:b}}});var fR=g((sC,vR)=>{"use strict";var Yi="_erd";function zF(t){return t[Yi]={},jR(t)}function jR(t){return t[Yi]}function LF(t){delete t[Yi]}vR.exports={initState:zF,getState:jR,cleanState:LF}});var PR=g((rC,KR)=>{"use strict";var ml=ri();KR.exports=function(t){t=t||{};var l=t.reporter,d=t.batchProcessor,V=t.stateHandler.getState;if(!l)throw new Error("Missing required dependency: reporter.");function i(e,R){function W(){R(e)}if(ml.isIE(8))V(e).object={proxy:W},e.attachEvent("onresize",W);else{var c=a(e);if(!c)throw new Error("Element is not detectable by this strategy.");c.contentDocument.defaultView.addEventListener("resize",W)}}function n(e){var R=t.important?" !important; ":"; ";return(e.join(R)+R).trim()}function b(e,R,W){W||(W=R,R=e,e=null),e=e||{};var c=e.debug;function I(B,U){var Z=n(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),m=!1,x=window.getComputedStyle(B),C=B.offsetWidth,N=B.offsetHeight;V(B).startSize={width:C,height:N};function p(){function F(){if(x.position==="static"){B.style.setProperty("position","relative",e.important?"important":"");var S=function(H,u,r,h){function A(tt){return tt.replace(/[^-\d\.]/g,"")}var E=r[h];E!=="auto"&&A(E)!=="0"&&(H.warn("An element that is positioned static has style."+h+"="+E+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+h+" will be set to 0. Element: ",u),u.style.setProperty(h,"0",e.important?"important":""))};S(l,B,x,"top"),S(l,B,x,"right"),S(l,B,x,"bottom"),S(l,B,x,"left")}}function X(){m||F();function S(u,r){if(!u.contentDocument){var h=V(u);h.checkForObjectDocumentTimeoutId&&window.clearTimeout(h.checkForObjectDocumentTimeoutId),h.checkForObjectDocumentTimeoutId=setTimeout(function(){h.checkForObjectDocumentTimeoutId=0,S(u,r)},100);return}r(u.contentDocument)}var H=this;S(H,function(r){U(B)})}x.position!==""&&(F(x),m=!0);var Q=document.createElement("object");Q.style.cssText=Z,Q.tabIndex=-1,Q.type="text/html",Q.setAttribute("aria-hidden","true"),Q.onload=X,ml.isIE()||(Q.data="about:blank"),V(B)&&(B.appendChild(Q),V(B).object=Q,ml.isIE()&&(Q.data="about:blank"))}d?d.add(p):p()}ml.isIE(8)?W(R):I(R,W)}function a(e){return V(e).object}function G(e){if(V(e)){var R=a(e);R&&(ml.isIE(8)?e.detachEvent("onresize",R.proxy):e.removeChild(R),V(e).checkForObjectDocumentTimeoutId&&window.clearTimeout(V(e).checkForObjectDocumentTimeoutId),delete V(e).object)}}return{makeDetectable:b,addListener:i,uninstall:G}}});var qR=g((YC,_R)=>{"use strict";var wF=si().forEach;_R.exports=function(t){t=t||{};var l=t.reporter,d=t.batchProcessor,V=t.stateHandler.getState,i=t.stateHandler.hasState,n=t.idHandler;if(!d)throw new Error("Missing required dependency: batchProcessor");if(!l)throw new Error("Missing required dependency: reporter.");var b=W(),a="erd_scroll_detection_scrollbar_style",G="erd_scroll_detection_container";function e(p){c(p,a,G)}e(window.document);function R(p){var F=t.important?" !important; ":"; ";return(p.join(F)+F).trim()}function W(){var p=500,F=500,X=document.createElement("div");X.style.cssText=R(["position: absolute","width: "+p*2+"px","height: "+F*2+"px","visibility: hidden","margin: 0","padding: 0"]);var Q=document.createElement("div");Q.style.cssText=R(["position: absolute","width: "+p+"px","height: "+F+"px","overflow: scroll","visibility: none","top: "+-p*3+"px","left: "+-F*3+"px","visibility: hidden","margin: 0","padding: 0"]),Q.appendChild(X),document.body.insertBefore(Q,document.body.firstChild);var S=p-Q.clientWidth,H=F-Q.clientHeight;return document.body.removeChild(Q),{width:S,height:H}}function c(p,F,X){function Q(r,h){h=h||function(E){p.head.appendChild(E)};var A=p.createElement("style");return A.innerHTML=r,A.id=F,h(A),A}if(!p.getElementById(F)){var S=X+"_animation",H=X+"_animation_active",u=`/* Created by the element-resize-detector library. */
`;u+="."+X+" > div::-webkit-scrollbar { "+R(["display: none"])+` }

`,u+="."+H+" { "+R(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+S,"animation-name: "+S])+` }
`,u+="@-webkit-keyframes "+S+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
`,u+="@keyframes "+S+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",Q(u)}}function I(p){p.className+=" "+G+"_animation_active"}function B(p,F,X){if(p.addEventListener)p.addEventListener(F,X);else if(p.attachEvent)p.attachEvent("on"+F,X);else return l.error("[scroll] Don't know how to add event listeners.")}function U(p,F,X){if(p.removeEventListener)p.removeEventListener(F,X);else if(p.detachEvent)p.detachEvent("on"+F,X);else return l.error("[scroll] Don't know how to remove event listeners.")}function Z(p){return V(p).container.childNodes[0].childNodes[0].childNodes[0]}function m(p){return V(p).container.childNodes[0].childNodes[0].childNodes[1]}function x(p,F){var X=V(p).listeners;if(!X.push)throw new Error("Cannot add listener to an element that is not detectable.");V(p).listeners.push(F)}function C(p,F,X){X||(X=F,F=p,p=null),p=p||{};function Q(){if(p.debug){var J=Array.prototype.slice.call(arguments);if(J.unshift(n.get(F),"Scroll: "),l.log.apply)l.log.apply(null,J);else for(var Y=0;Y<J.length;Y++)l.log(J[Y])}}function S(J){function Y(y){var at=y.getRootNode&&y.getRootNode().contains(y);return y===y.ownerDocument.body||y.ownerDocument.body.contains(y)||at}return!Y(J)||window.getComputedStyle(J)===null}function H(J){var Y=V(J).container.childNodes[0],y=window.getComputedStyle(Y);return!y.width||y.width.indexOf("px")===-1}function u(){var J=window.getComputedStyle(F),Y={};return Y.position=J.position,Y.width=F.offsetWidth,Y.height=F.offsetHeight,Y.top=J.top,Y.right=J.right,Y.bottom=J.bottom,Y.left=J.left,Y.widthCSS=J.width,Y.heightCSS=J.height,Y}function r(){var J=u();V(F).startSize={width:J.width,height:J.height},Q("Element start size",V(F).startSize)}function h(){V(F).listeners=[]}function A(){if(Q("storeStyle invoked."),!V(F)){Q("Aborting because element has been uninstalled");return}var J=u();V(F).style=J}function E(J,Y,y){V(J).lastWidth=Y,V(J).lastHeight=y}function tt(J){return Z(J).childNodes[0]}function xl(){return 2*b.width+1}function Ql(){return 2*b.height+1}function Cl(J){return J+10+xl()}function nn(J){return J+10+Ql()}function hW(J){return J*2+xl()}function XW(J){return J*2+Ql()}function en(J,Y,y){var at=Z(J),Nt=m(J),St=Cl(Y),kt=nn(y),P=hW(Y),k=XW(y);at.scrollLeft=St,at.scrollTop=kt,Nt.scrollLeft=P,Nt.scrollTop=k}function bn(){var J=V(F).container;if(!J){J=document.createElement("div"),J.className=G,J.style.cssText=R(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),V(F).container=J,I(J),F.appendChild(J);var Y=function(){V(F).onRendered&&V(F).onRendered()};B(J,"animationstart",Y),V(F).onAnimationStart=Y}return J}function uW(){function J(){var w=V(F).style;if(w.position==="static"){F.style.setProperty("position","relative",p.important?"important":"");var Ut=function(Ht,ht,TW,Jl){function SW(kW){return kW.replace(/[^-\d\.]/g,"")}var xd=TW[Jl];xd!=="auto"&&SW(xd)!=="0"&&(Ht.warn("An element that is positioned static has style."+Jl+"="+xd+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+Jl+" will be set to 0. Element: ",ht),ht.style[Jl]=0)};Ut(l,F,w,"top"),Ut(l,F,w,"right"),Ut(l,F,w,"bottom"),Ut(l,F,w,"left")}}function Y(w,Ut,Ht,ht){return w=w?w+"px":"0",Ut=Ut?Ut+"px":"0",Ht=Ht?Ht+"px":"0",ht=ht?ht+"px":"0",["left: "+w,"top: "+Ut,"right: "+ht,"bottom: "+Ht]}if(Q("Injecting elements"),!V(F)){Q("Aborting because element has been uninstalled");return}J();var y=V(F).container;y||(y=bn());var at=b.width,Nt=b.height,St=R(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),kt=R(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(Y(-(1+at),-(1+Nt),-Nt,-at))),P=R(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),k=R(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),q=R(["position: absolute","left: 0","top: 0"]),Jt=R(["position: absolute","width: 200%","height: 200%"]),Wt=document.createElement("div"),ct=document.createElement("div"),Mt=document.createElement("div"),Gn=document.createElement("div"),Nl=document.createElement("div"),Rn=document.createElement("div");Wt.dir="ltr",Wt.style.cssText=St,Wt.className=G,ct.className=G,ct.style.cssText=kt,Mt.style.cssText=P,Gn.style.cssText=q,Nl.style.cssText=k,Rn.style.cssText=Jt,Mt.appendChild(Gn),Nl.appendChild(Rn),ct.appendChild(Mt),ct.appendChild(Nl),Wt.appendChild(ct),y.appendChild(Wt);function Wn(){var w=V(F);w&&w.onExpand?w.onExpand():Q("Aborting expand scroll handler: element has been uninstalled")}function cn(){var w=V(F);w&&w.onShrink?w.onShrink():Q("Aborting shrink scroll handler: element has been uninstalled")}B(Mt,"scroll",Wn),B(Nl,"scroll",cn),V(F).onExpandScroll=Wn,V(F).onShrinkScroll=cn}function sW(){function J(P,k,q){var Jt=tt(P),Wt=Cl(k),ct=nn(q);Jt.style.setProperty("width",Wt+"px",p.important?"important":""),Jt.style.setProperty("height",ct+"px",p.important?"important":"")}function Y(P){var k=F.offsetWidth,q=F.offsetHeight,Jt=k!==V(F).lastWidth||q!==V(F).lastHeight;Q("Storing current size",k,q),E(F,k,q),d.add(0,function(){if(Jt){if(!V(F)){Q("Aborting because element has been uninstalled");return}if(!y()){Q("Aborting because element container has not been initialized");return}if(p.debug){var ct=F.offsetWidth,Mt=F.offsetHeight;(ct!==k||Mt!==q)&&l.warn(n.get(F),"Scroll: Size changed before updating detector elements.")}J(F,k,q)}}),d.add(1,function(){if(!V(F)){Q("Aborting because element has been uninstalled");return}if(!y()){Q("Aborting because element container has not been initialized");return}en(F,k,q)}),Jt&&P&&d.add(2,function(){if(!V(F)){Q("Aborting because element has been uninstalled");return}if(!y()){Q("Aborting because element container has not been initialized");return}P()})}function y(){return!!V(F).container}function at(){function P(){return V(F).lastNotifiedWidth===void 0}Q("notifyListenersIfNeeded invoked");var k=V(F);if(P()&&k.lastWidth===k.startSize.width&&k.lastHeight===k.startSize.height)return Q("Not notifying: Size is the same as the start size, and there has been no notification yet.");if(k.lastWidth===k.lastNotifiedWidth&&k.lastHeight===k.lastNotifiedHeight)return Q("Not notifying: Size already notified");Q("Current size not notified, notifying..."),k.lastNotifiedWidth=k.lastWidth,k.lastNotifiedHeight=k.lastHeight,wF(V(F).listeners,function(q){q(F)})}function Nt(){if(Q("startanimation triggered."),H(F)){Q("Ignoring since element is still unrendered...");return}Q("Element rendered.");var P=Z(F),k=m(F);(P.scrollLeft===0||P.scrollTop===0||k.scrollLeft===0||k.scrollTop===0)&&(Q("Scrollbars out of sync. Updating detector elements..."),Y(at))}function St(){if(Q("Scroll detected."),H(F)){Q("Scroll event fired while unrendered. Ignoring...");return}Y(at)}if(Q("registerListenersAndPositionElements invoked."),!V(F)){Q("Aborting because element has been uninstalled");return}V(F).onRendered=Nt,V(F).onExpand=St,V(F).onShrink=St;var kt=V(F).style;J(F,kt.width,kt.height)}function rW(){if(Q("finalizeDomMutation invoked."),!V(F)){Q("Aborting because element has been uninstalled");return}var J=V(F).style;E(F,J.width,J.height),en(F,J.width,J.height)}function YW(){X(F)}function an(){Q("Installing..."),h(),r(),d.add(0,A),d.add(1,uW),d.add(2,sW),d.add(3,rW),d.add(4,YW)}Q("Making detectable..."),S(F)?(Q("Element is detached"),bn(),Q("Waiting until element is attached..."),V(F).onRendered=function(){Q("Element is now attached"),an()}):an()}function N(p){var F=V(p);F&&(F.onExpandScroll&&U(Z(p),"scroll",F.onExpandScroll),F.onShrinkScroll&&U(m(p),"scroll",F.onShrinkScroll),F.onAnimationStart&&U(F.container,"animationstart",F.onAnimationStart),F.container&&p.removeChild(F.container))}return{makeDetectable:C,addListener:x,uninstall:N,initDocument:e}}});var iW=g((TC,VW)=>{"use strict";var Bl=si().forEach,OF=uR(),DF=rR(),jF=TR(),vF=kR(),fF=HR(),$R=ri(),KF=DR(),Qt=fR(),PF=PR(),_F=qR();function tW(t){return Array.isArray(t)||t.length!==void 0}function lW(t){if(Array.isArray(t))return t;var l=[];return Bl(t,function(d){l.push(d)}),l}function dW(t){return t&&t.nodeType===1}VW.exports=function(t){t=t||{};var l;if(t.idHandler)l={get:function(x){return t.idHandler.get(x,!0)},set:t.idHandler.set};else{var d=jF(),V=vF({idGenerator:d,stateHandler:Qt});l=V}var i=t.reporter;if(!i){var n=i===!1;i=fF(n)}var b=Ct(t,"batchProcessor",KF({reporter:i})),a={};a.callOnAdd=!!Ct(t,"callOnAdd",!0),a.debug=!!Ct(t,"debug",!1);var G=DF(l),e=OF({stateHandler:Qt}),R,W=Ct(t,"strategy","object"),c=Ct(t,"important",!1),I={reporter:i,batchProcessor:b,stateHandler:Qt,idHandler:l,important:c};if(W==="scroll"&&($R.isLegacyOpera()?(i.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),W="object"):$R.isIE(9)&&(i.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),W="object")),W==="scroll")R=_F(I);else if(W==="object")R=PF(I);else throw new Error("Invalid strategy name: "+W);var B={};function U(x,C,N){function p(u){var r=G.get(u);Bl(r,function(A){A(u)})}function F(u,r,h){G.add(r,h),u&&h(r)}if(N||(N=C,C=x,x={}),!C)throw new Error("At least one element required.");if(!N)throw new Error("Listener required.");if(dW(C))C=[C];else if(tW(C))C=lW(C);else return i.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");var X=0,Q=Ct(x,"callOnAdd",a.callOnAdd),S=Ct(x,"onReady",function(){}),H=Ct(x,"debug",a.debug);Bl(C,function(r){Qt.getState(r)||(Qt.initState(r),l.set(r));var h=l.get(r);if(H&&i.log("Attaching listener to element",h,r),!e.isDetectable(r)){if(H&&i.log(h,"Not detectable."),e.isBusy(r)){H&&i.log(h,"System busy making it detectable"),F(Q,r,N),B[h]=B[h]||[],B[h].push(function(){X++,X===C.length&&S()});return}return H&&i.log(h,"Making detectable..."),e.markBusy(r,!0),R.makeDetectable({debug:H,important:c},r,function(E){if(H&&i.log(h,"onElementDetectable"),Qt.getState(E)){e.markAsDetectable(E),e.markBusy(E,!1),R.addListener(E,p),F(Q,E,N);var tt=Qt.getState(E);if(tt&&tt.startSize){var xl=E.offsetWidth,Ql=E.offsetHeight;(tt.startSize.width!==xl||tt.startSize.height!==Ql)&&p(E)}B[h]&&Bl(B[h],function(Cl){Cl()})}else H&&i.log(h,"Element uninstalled before being detectable.");delete B[h],X++,X===C.length&&S()})}H&&i.log(h,"Already detecable, adding listener."),F(Q,r,N),X++}),X===C.length&&S()}function Z(x){if(!x)return i.error("At least one element is required.");if(dW(x))x=[x];else if(tW(x))x=lW(x);else return i.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");Bl(x,function(C){G.removeAllListeners(C),R.uninstall(C),Qt.cleanState(C)})}function m(x){R.initDocument&&R.initDocument(x)}return{listenTo:U,removeListener:G.removeListener,removeAllListeners:G.removeAllListeners,uninstall:Z,initDocument:m}};function Ct(t,l,d){var V=t[l];return V==null&&d!==void 0?d:V}});var gJ=M(ha()),FJ=M(Sa()),mJ=M(Ka()),BJ=M(WG());var D=typeof globalThis!="undefined"&&globalThis||typeof self!="undefined"&&self||typeof global!="undefined"&&global||{},v={searchParams:"URLSearchParams"in D,iterable:"Symbol"in D&&"iterator"in Symbol,blob:"FileReader"in D&&"Blob"in D&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in D,arrayBuffer:"ArrayBuffer"in D};function OI(t){return t&&DataView.prototype.isPrototypeOf(t)}v.arrayBuffer&&(cG=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ZG=ArrayBuffer.isView||function(t){return t&&cG.indexOf(Object.prototype.toString.call(t))>-1});var cG,ZG;function wt(t){if(typeof t!="string"&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||t==="")throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function QV(t){return typeof t!="string"&&(t=String(t)),t}function CV(t){var l={next:function(){var d=t.shift();return{done:d===void 0,value:d}}};return v.iterable&&(l[Symbol.iterator]=function(){return l}),l}function z(t){this.map={},t instanceof z?t.forEach(function(l,d){this.append(d,l)},this):Array.isArray(t)?t.forEach(function(l){if(l.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+l.length);this.append(l[0],l[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(l){this.append(l,t[l])},this)}z.prototype.append=function(t,l){t=wt(t),l=QV(l);var d=this.map[t];this.map[t]=d?d+", "+l:l};z.prototype.delete=function(t){delete this.map[wt(t)]};z.prototype.get=function(t){return t=wt(t),this.has(t)?this.map[t]:null};z.prototype.has=function(t){return this.map.hasOwnProperty(wt(t))};z.prototype.set=function(t,l){this.map[wt(t)]=QV(l)};z.prototype.forEach=function(t,l){for(var d in this.map)this.map.hasOwnProperty(d)&&t.call(l,this.map[d],d,this)};z.prototype.keys=function(){var t=[];return this.forEach(function(l,d){t.push(d)}),CV(t)};z.prototype.values=function(){var t=[];return this.forEach(function(l){t.push(l)}),CV(t)};z.prototype.entries=function(){var t=[];return this.forEach(function(l,d){t.push([d,l])}),CV(t)};v.iterable&&(z.prototype[Symbol.iterator]=z.prototype.entries);function xV(t){if(!t._noBody){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}}function IG(t){return new Promise(function(l,d){t.onload=function(){l(t.result)},t.onerror=function(){d(t.error)}})}function DI(t){var l=new FileReader,d=IG(l);return l.readAsArrayBuffer(t),d}function jI(t){var l=new FileReader,d=IG(l),V=/charset=([A-Za-z0-9_-]+)/.exec(t.type),i=V?V[1]:"utf-8";return l.readAsText(t,i),d}function vI(t){for(var l=new Uint8Array(t),d=new Array(l.length),V=0;V<l.length;V++)d[V]=String.fromCharCode(l[V]);return d.join("")}function UG(t){if(t.slice)return t.slice(0);var l=new Uint8Array(t.byteLength);return l.set(new Uint8Array(t)),l.buffer}function gG(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?typeof t=="string"?this._bodyText=t:v.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:v.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:v.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():v.arrayBuffer&&v.blob&&OI(t)?(this._bodyArrayBuffer=UG(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):v.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||ZG(t))?this._bodyArrayBuffer=UG(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof t=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):v.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},v.blob&&(this.blob=function(){var t=xV(this);if(t)return t;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(){if(this._bodyArrayBuffer){var t=xV(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(v.blob)return this.blob().then(DI);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var t=xV(this);if(t)return t;if(this._bodyBlob)return jI(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(vI(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},v.formData&&(this.formData=function(){return this.text().then(PI)}),this.json=function(){return this.text().then(JSON.parse)},this}var fI=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function KI(t){var l=t.toUpperCase();return fI.indexOf(l)>-1?l:t}function rt(t,l){if(!(this instanceof rt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');l=l||{};var d=l.body;if(t instanceof rt){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,l.headers||(this.headers=new z(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,!d&&t._bodyInit!=null&&(d=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=l.credentials||this.credentials||"same-origin",(l.headers||!this.headers)&&(this.headers=new z(l.headers)),this.method=KI(l.method||this.method||"GET"),this.mode=l.mode||this.mode||null,this.signal=l.signal||this.signal||function(){if("AbortController"in D){var n=new AbortController;return n.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&d)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(d),(this.method==="GET"||this.method==="HEAD")&&(l.cache==="no-store"||l.cache==="no-cache")){var V=/([?&])_=[^&]*/;if(V.test(this.url))this.url=this.url.replace(V,"$1_="+new Date().getTime());else{var i=/\?/;this.url+=(i.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}rt.prototype.clone=function(){return new rt(this,{body:this._bodyInit})};function PI(t){var l=new FormData;return t.trim().split("&").forEach(function(d){if(d){var V=d.split("="),i=V.shift().replace(/\+/g," "),n=V.join("=").replace(/\+/g," ");l.append(decodeURIComponent(i),decodeURIComponent(n))}}),l}function _I(t){var l=new z,d=t.replace(/\r?\n[\t ]+/g," ");return d.split("\r").map(function(V){return V.indexOf(`
`)===0?V.substr(1,V.length):V}).forEach(function(V){var i=V.split(":"),n=i.shift().trim();if(n){var b=i.join(":").trim();try{l.append(n,b)}catch(a){console.warn("Response "+a.message)}}}),l}gG.call(rt.prototype);function Gt(t,l){if(!(this instanceof Gt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(l||(l={}),this.type="default",this.status=l.status===void 0?200:l.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=l.statusText===void 0?"":""+l.statusText,this.headers=new z(l.headers),this.url=l.url||"",this._initBody(t)}gG.call(Gt.prototype);Gt.prototype.clone=function(){return new Gt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new z(this.headers),url:this.url})};Gt.error=function(){var t=new Gt(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var qI=[301,302,303,307,308];Gt.redirect=function(t,l){if(qI.indexOf(l)===-1)throw new RangeError("Invalid status code");return new Gt(null,{status:l,headers:{location:t}})};var st=D.DOMException;try{new st}catch(t){st=function(l,d){this.message=l,this.name=d;var V=Error(l);this.stack=V.stack},st.prototype=Object.create(Error.prototype),st.prototype.constructor=st}function FG(t,l){return new Promise(function(d,V){var i=new rt(t,l);if(i.signal&&i.signal.aborted)return V(new st("Aborted","AbortError"));var n=new XMLHttpRequest;function b(){n.abort()}n.onload=function(){var e={statusText:n.statusText,headers:_I(n.getAllResponseHeaders()||"")};i.url.indexOf("file://")===0&&(n.status<200||n.status>599)?e.status=200:e.status=n.status,e.url="responseURL"in n?n.responseURL:e.headers.get("X-Request-URL");var R="response"in n?n.response:n.responseText;setTimeout(function(){d(new Gt(R,e))},0)},n.onerror=function(){setTimeout(function(){V(new TypeError("Network request failed"))},0)},n.ontimeout=function(){setTimeout(function(){V(new TypeError("Network request timed out"))},0)},n.onabort=function(){setTimeout(function(){V(new st("Aborted","AbortError"))},0)};function a(e){try{return e===""&&D.location.href?D.location.href:e}catch(R){return e}}if(n.open(i.method,a(i.url),!0),i.credentials==="include"?n.withCredentials=!0:i.credentials==="omit"&&(n.withCredentials=!1),"responseType"in n&&(v.blob?n.responseType="blob":v.arrayBuffer&&(n.responseType="arraybuffer")),l&&typeof l.headers=="object"&&!(l.headers instanceof z||D.Headers&&l.headers instanceof D.Headers)){var G=[];Object.getOwnPropertyNames(l.headers).forEach(function(e){G.push(wt(e)),n.setRequestHeader(e,QV(l.headers[e]))}),i.headers.forEach(function(e,R){G.indexOf(R)===-1&&n.setRequestHeader(R,e)})}else i.headers.forEach(function(e,R){n.setRequestHeader(R,e)});i.signal&&(i.signal.addEventListener("abort",b),n.onreadystatechange=function(){n.readyState===4&&i.signal.removeEventListener("abort",b)}),n.send(typeof i._bodyInit=="undefined"?null:i._bodyInit)})}FG.polyfill=!0;D.fetch||(D.fetch=FG,D.Headers=z,D.Request=rt,D.Response=Gt);var CG=M(mG());function o(t,l=null){let V=$I(l).querySelectorAll(t);return Array.from(V)}function L(t,l=null){let d=o(t,l);return d.length===0?!1:d[0]}function $I(t){return t||(window.__shadowRoot?window.__shadowRoot.querySelector("article"):document)}(function(t,l){"use strict";var d=/Edge\/\d+/i.test(navigator.userAgent);if(!d&&"IntersectionObserver"in t&&"IntersectionObserverEntry"in t&&"intersectionRatio"in t.IntersectionObserverEntry.prototype){"isIntersecting"in t.IntersectionObserverEntry.prototype||Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}var V=[];function i(U){this.time=U.time,this.target=U.target,this.rootBounds=U.rootBounds,this.boundingClientRect=U.boundingClientRect,this.intersectionRect=U.intersectionRect||c(),this.isIntersecting=!!U.intersectionRect;var Z=this.boundingClientRect,m=Z.width*Z.height,x=this.intersectionRect,C=x.width*x.height;m?this.intersectionRatio=C/m:this.intersectionRatio=this.isIntersecting?1:0}function n(U,Z){var m=Z||{};if(typeof U!="function")throw new Error("callback must be a function");if(m.root&&m.root.nodeType!=1)throw new Error("root must be an Element");this._checkForIntersections=a(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=U,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(m.rootMargin),this.thresholds=this._initThresholds(m.threshold),this.root=m.root||null,this.rootMargin=this._rootMarginValues.map(function(x){return x.value+x.unit}).join(" ")}n.prototype.THROTTLE_TIMEOUT=100,n.prototype.POLL_INTERVAL=null,n.prototype.USE_MUTATION_OBSERVER=!0,n.prototype.observe=function(U){var Z=this._observationTargets.some(function(m){return m.element==U});if(!Z){if(!(U&&U.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:U,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},n.prototype.unobserve=function(U){this._observationTargets=this._observationTargets.filter(function(Z){return Z.element!=U}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},n.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},n.prototype.takeRecords=function(){var U=this._queuedEntries.slice();return this._queuedEntries=[],U},n.prototype._initThresholds=function(U){var Z=U||[0];return Array.isArray(Z)||(Z=[Z]),Z.sort().filter(function(m,x,C){if(typeof m!="number"||isNaN(m)||m<0||m>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return m!==C[x-1]})},n.prototype._parseRootMargin=function(U){var Z=U||"0px",m=Z.split(/\s+/).map(function(x){var C=/^(-?\d*\.?\d+)(px|%)$/.exec(x);if(!C)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(C[1]),unit:C[2]}});return m[1]=m[1]||m[0],m[2]=m[2]||m[0],m[3]=m[3]||m[1],m},n.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(G(t,"resize",this._checkForIntersections,!0),G(l,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in t&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(l,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},n.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,e(t,"resize",this._checkForIntersections,!0),e(l,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},n.prototype._checkForIntersections=function(){var U=this._rootIsInDom(),Z=U?this._getRootRect():c();this._observationTargets.forEach(function(m){var x=m.element,C=W(x),N=this._rootContainsTarget(x),p=m.entry,F=U&&N&&this._computeTargetAndRootIntersection(x,Z),X=m.entry=new i({time:b(),target:x,boundingClientRect:C,rootBounds:Z,intersectionRect:F});p?U&&N?this._hasCrossedThreshold(p,X)&&this._queuedEntries.push(X):p&&p.isIntersecting&&this._queuedEntries.push(X):this._queuedEntries.push(X)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},n.prototype._computeTargetAndRootIntersection=function(U,Z){if(t.getComputedStyle(U).display!="none"){for(var m=W(U),x=m,C=B(U),N=!1;!N;){var p=null,F=C.nodeType==1?t.getComputedStyle(C):{};if(F.display=="none")return;if(C==this.root||C==l?(N=!0,p=Z):C!=l.body&&C!=l.documentElement&&F.overflow!="visible"&&(p=W(C)),p&&(x=R(p,x),!x))break;C=B(C)}return x}},n.prototype._getRootRect=function(){var U;if(this.root)U=W(this.root);else{var Z=l.documentElement,m=l.body;U={top:0,left:0,right:Z.clientWidth||m.clientWidth,width:Z.clientWidth||m.clientWidth,bottom:Z.clientHeight||m.clientHeight,height:Z.clientHeight||m.clientHeight}}return this._expandRectByRootMargin(U)},n.prototype._expandRectByRootMargin=function(U){var Z=this._rootMarginValues.map(function(x,C){return x.unit=="px"?x.value:x.value*(C%2?U.width:U.height)/100}),m={top:U.top-Z[0],right:U.right+Z[1],bottom:U.bottom+Z[2],left:U.left-Z[3]};return m.width=m.right-m.left,m.height=m.bottom-m.top,m},n.prototype._hasCrossedThreshold=function(U,Z){var m=U&&U.isIntersecting?U.intersectionRatio||0:-1,x=Z.isIntersecting?Z.intersectionRatio||0:-1;if(m!==x)for(var C=0;C<this.thresholds.length;C++){var N=this.thresholds[C];if(N==m||N==x||N<m!=N<x)return!0}},n.prototype._rootIsInDom=function(){return!this.root||I(l,this.root)},n.prototype._rootContainsTarget=function(U){return I(this.root||l,U)},n.prototype._registerInstance=function(){V.indexOf(this)<0&&V.push(this)},n.prototype._unregisterInstance=function(){var U=V.indexOf(this);U!=-1&&V.splice(U,1)};function b(){return t.performance&&performance.now&&performance.now()}function a(U,Z){var m=null;return function(){m||(m=setTimeout(function(){U(),m=null},Z))}}function G(U,Z,m,x){typeof U.addEventListener=="function"?U.addEventListener(Z,m,x||!1):typeof U.attachEvent=="function"&&U.attachEvent("on"+Z,m)}function e(U,Z,m,x){typeof U.removeEventListener=="function"?U.removeEventListener(Z,m,x||!1):typeof U.detatchEvent=="function"&&U.detatchEvent("on"+Z,m)}function R(U,Z){var m=Math.max(U.top,Z.top),x=Math.min(U.bottom,Z.bottom),C=Math.max(U.left,Z.left),N=Math.min(U.right,Z.right),p=N-C,F=x-m;return p>=0&&F>=0&&{top:m,bottom:x,left:C,right:N,width:p,height:F}}function W(U){var Z;try{Z=U.getBoundingClientRect()}catch(m){}return Z?(Z.width&&Z.height||(Z={top:Z.top,right:Z.right,bottom:Z.bottom,left:Z.left,width:Z.right-Z.left,height:Z.bottom-Z.top}),Z):c()}function c(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function I(U,Z){for(var m=Z;m;){if(m==U)return!0;m=B(m)}return!1}function B(U){var Z=U.parentNode;return Z&&Z.nodeType==11&&Z.host?Z.host:Z}t.IntersectionObserver=n,t.IntersectionObserverEntry=i})(window,document);window.hasOwnProperty("Shorthand")||(window.Shorthand={});window.Shorthand.lazyloadTriggerMargin=window.Shorthand.lazyloadTriggerMargin||"500%";var hV=window.innerHeight||window.screen.height,tg={"nearly visible":"100%","on visibile":"0%","partially visible":"-10%","mostly visible":"-40% 0% -40% 0%","fully visible":"0px",lazyload:window.Shorthand.lazyloadTriggerMargin,"lazyload 3D models":`${hV*2}px`,"unload 3D models":`${hV*2+100}px`,"lazy download 3D models":`${hV*5}px`},lg={"nearly visible":[0,.001],lazyload:[0,.001],"on visibile":[0,.001],"mostly visible":[0,.001],"fully visible":.99,"lazyload 3D models":[0,.001],"lazy download 3D models":[0,.001],"unload 3D models":[0,.001],"partially visible":0},BG=[],oG=[];function Rt(t){return t.intersectionRatio>=1e-5}function pG(t,l=null){let d=BG.find(V=>V.triggerPoint===t&&V.root===l);if(!d){let V={rootMargin:tg[t],threshold:lg[t],root:l},i=new IntersectionObserver(n=>{dg(n,t,l)},V);return BG.push({instance:i,triggerPoint:t,root:l}),i}return d.instance}function dg(t,l,d=null){t.forEach(V=>{xG(V.target,l,d).callbacks.forEach(n=>n(V))})}function Vg(t,l,d=null){let V={target:t,triggerPoint:l,callbacks:[],root:d};return oG.push(V),V}function xG(t,l,d=null){return oG.find(V=>V.target===t&&V.triggerPoint===l&&V.root===d)}function Ot(t,l={}){let d=l.triggerPoint||"on visibile",V=l.root||null;pG(d,V).unobserve(t)}function et(t,l,d={}){let V=d.triggerPoint||"on visibile",i=d.root||null,n=pG(V),b=xG(t,V,i);b||(b=Vg(t,V,i)),b.callbacks.push(l),n.observe(t)}var ig=5,ng=1e3;function eg(t,l){let d={isTracking:!1,trackingStartAt:0,cumulativeLingerTime:0};et(t,V=>{if(Rt(V)&&!d.isTracking)d.isTracking=!0,d.trackingStartAt=Date.now();else if(d.isTracking){d.isTracking=!1;let i=Math.round((Date.now()-d.trackingStartAt)/ng);if(i<ig)return;d.cumulativeLingerTime+=i,l(i)}})}function bg(t){let l=/\bTheme-(\w+Section)\b/,d=t.match(l);return d!==null?d[1]:"UnknownTypeSection"}function XV(t,l){t.forEach((d,V)=>{let i=bg(d.className),n=V.toString().padStart(3,"0")+" "+d.id;eg(d,a=>{l(i,"linger-seconds",n,a)})})}function ag(...t){}function fl(...t){(window.ga||ag)(...t)}function uV(t){t.on("logEvent",function(...l){fl("send","event",...l),fl("shorthand.send","event",...l)}),t.on("logSocial",(...l)=>{fl("send","social",...l),fl("shorthand.send","social",...l)})}function Gg(t){return t.hasAttribute("data-social-share")?{type:"social",network:t.getAttribute("data-social-share"),target:window.location.href}:t.hasAttribute("data-story-nav-item")?{type:"nav-link",target:t.href}:{type:"link",target:t.href,element:t}}function Rg(t){let l=Gg(t);l.type==="social"?QG(l.network,"share",l.target):It(l.type,"click",l.target)}function sV(){o("a").forEach(l=>l.addEventListener("click",()=>Rg(l)))}var rV=new CG.default;function It(...t){rV.emit("logEvent",...t)}function QG(...t){rV.emit("logSocial",...t)}function YV(){let t=o(".Theme-Section");uV(rV),XV(t,It),sV()}var YG=M(f());var Wg={textPerLine:!1,textFade:"none",textZoom:"none",textBlur:"none",backgroundFade:"none",backgroundZoom:"none",backgroundBlur:"none",backgroundGrayscale:"none",hasEffects:!1};function NG(t,l=Wg){try{return lt(lt({},l),JSON.parse(window.atob(t.getAttribute("data-effects"))))}catch(d){return lt({},l)}}var yV=M(kV());var _l=M(f());var sG=M(MV());function gt(t,l,d,V){function i(){t.removeEventListener(l,n,V)}function n(){return i(),d.apply(this,arguments)}return t.addEventListener(l,n,V),i}var Ug=XG(),uG=["android","ios","firefoxos","windows.phone","windows.mobile","blackberryos"],Zg={hasTouch:!1},HV=null;function j(){if(HV===null){let t=new Ug;t.sniff(navigator.userAgent),HV={isMobile:uG.includes(t.os.name),isDesktop:!uG.includes(t.os.name),isTablet:!1,isiPhone:t.device.name==="iphone",isiPad:t.device.name==="ipad",isAndroid:t.os.name==="android",isiOS:t.os.name==="ios",isiOS10:t.os.name==="ios"&&t.os.version[0]===10,isMac:t.os.name==="macos",isWindows:t.os.name==="windows",isIE:t.browser.name==="ie",isEdge:t.browser.name==="edge",isChrome:t.browser.name==="chrome",isSafari:t.browser.name==="safari",isFirefox:t.browser.name==="firefox",isOpera:t.browser.name==="opera",isBot:/bot|googlebot|crawler|spider|robot|crawling/i.test(navigator.userAgent),isCypress:window.Cypress}}return HV}function Ig(t){let l=j(),d=Object.keys(l).reduce((V,i)=>(V[`DeviceDetect--${i}`]=l[i],V),{});t.className=(0,sG.default)(t.className,d)}function EV(t=document.documentElement){var l;Ig(((l=window.__shadowRoot)==null?void 0:l.querySelector("article"))||t),gg()}function gg(){gt(document.documentElement,"touchstart",()=>{Zg.hasTouch=!0,document.documentElement.classList.add("DeviceDetect--isTouch")})}function AV(){let{isIE:t,isEdge:l}=j();if(!t&&!l)return;let d={tallTOMs:[]};_l.default.measure(()=>{o(".DisplayContainerHeight--flex").forEach(i=>{d.tallTOMs.push(i)});function V(){Fg(d)}V(),window.addEventListener("resize",V,{passive:!0})})}function Fg(t){t.tallTOMs.forEach(l=>{_l.default.measure(()=>{let d=l.querySelector(".FullSize--child"),V=l.querySelector(".DisplayContainer--heightBasis").getBoundingClientRect().height+200,i=V+"px",n=i;if(V<s.getHeight()){l.style.setProperty("height",i);return}l.classList.contains("SplitLayout")&&s.getWidth()<=960&&(i=`calc(${V} + 50vh)`,n="50vh"),_l.default.mutate(()=>{l.style.setProperty("height",i),d.style.setProperty("height",n),o(".FullSize--fixedChild",d).forEach(b=>{b.style.setProperty("height",n)}),d.style.setProperty("clip-path",`polygon(0 0, 0 ${n}, 100% ${n}, 100% 0)`)})})})}var ll=class{constructor(l={}){this.cache={width:0,height:0,top:0,bottom:0};l.measuringElement?this.measuringElement=l.measuringElement:this.ensureMeasuringElement(),window.addEventListener("resize",this.refresh.bind(this),{passive:!0}),this.refresh()}ensureMeasuringElement(){let l=this.measuringElement=document.createElement("div");l.style.width="100%",l.style.height="100vh",l.style.visibility="hidden",l.style.pointerEvents="none",l.style.opacity="0",l.style.position="absolute",l.style.top="0",l.setAttribute("id","viewport-height-element"),document.body.appendChild(l)}refresh(){let l=this.measuringElement.getBoundingClientRect();this.cache.width=l.width,this.cache.height=l.height,this.cache.top=0,this.cache.bottom=0}getCache(){return this.cache}};function $l(t=new ll){window.Shorthand.displayContainer=t,AV()}var ql={getOrientation(){return window.Shorthand.displayContainer?ql.getWidth()>ql.getHeight()?"landscape":"portrait":window.innerWidth>window.innerHeight?"landscape":"portrait"},getHeight(){return window.Shorthand.displayContainer.getCache().height},getWidth(){return window.Shorthand.displayContainer.getCache().width},getTop(){return window.Shorthand.displayContainer.getCache().top},getBottom(){return window.Shorthand.displayContainer.getCache().bottom},getVhUnitsInPixels(t){return ql.getHeight()*(t/100)},getDisplayContainer(){return window.Shorthand.displayContainer}},s=ql;var dl;function td(t,l=0,d=1){var c,I;let{top:V,height:i}=t.getBoundingClientRect();dl===null&&(dl=L(".Header[role=banner]"));let n=(c=dl==null?void 0:dl.offsetHeight)!=null?c:0,b=1,a=/scale\((.*)\)/.exec((I=t.style.getPropertyValue("transform"))!=null?I:"");a&&(b=parseFloat(a[1]));let G=V+(i-i/b)/2,e=-i/b+n,W=s.getHeight()-e;return t.className.includes("Theme-BackgroundMedia")&&i<s.getHeight()*.6&&(d*=.5),{threshold:(0,yV.default)(s.getHeight()*.6/W,l,d),percent:(0,yV.default)(1-(G-e)/W,0,1)}}function Vl(t,l,d=3){return t<l?Math.pow(t/l,d):t>1-l?Math.pow(1-(t-(1-l))/l,d):1}var zV=[];function ot(){zV.forEach(t=>t())}function LV(){let t=!!L("#editor-viewport");t&&(document.removeEventListener("focus",ot,!0),document.addEventListener("focus",ot,!0),document.removeEventListener("blur",ot,!0),document.addEventListener("blur",ot,!0));let l=t?document.querySelector("#editor-viewport"):window;l.removeEventListener("scroll",ot),l.addEventListener("scroll",ot,{passive:!0}),zV=[],YG.default.mutate(()=>{o("[data-effects]").forEach(d=>{let V=NG(d),n=o(t?".Theme-Layer-background-viewport:not(.Theme-Layer-background-viewport-cyclops)":".Theme-BackgroundMedia:not(.Theme-BackgroundModel)",d),b=o(".Theme-Layer-TextBlock-Inner",d);if(!V.hasEffects){t&&ot();return}n.forEach(G=>{let e=o("video",G);e.length===0&&(e=o("img",G).filter(R=>R.className.indexOf("InstantImage__img")===-1)),V.needsBackgroundClone&&o("picture",G).forEach((R,W)=>{W!==0&&(R.style.setProperty("position","absolute"),R.style.setProperty("top","0"))}),e.forEach((R,W)=>{R.style.setProperty("transition","none"),R.tagName.toLowerCase()==="img"&&W===0&&rG(R,V,0),R.style.setProperty("transform","scale(1)"),R.style.setProperty("opacity","1")})}),b.forEach(G=>{mg(G)&&(G.classList.remove("Layout__flex--xleft"),G.classList.remove("Layout__flex--xright"),G.classList.add("Layout__flex--xcenter")),G.parentElement.parentElement.style.setProperty("overflow","visible");let e=G.className.indexOf("Layout__flex--xright")>-1;G.className.indexOf("Layout__flex--xleft")>-1?G.style.setProperty("transform-origin","0% 0%"):e?G.style.setProperty("transform-origin","100% 0%"):G.style.removeProperty("transform-origin");let W=t?o(".NodeContent"):[].slice.call(G.firstElementChild.firstElementChild.children);(V.textPerLine?W:[G]).forEach(I=>{let B=[];V.textZoom!=="none"&&navigator.maxTouchPoints>0&&B.push("transform"),V.textBlur!=="none"&&B.push("filter"),B.length>0&&I.style.setProperty("will-change",B.join(", "))})});function a(){let G=td(d).percent;G<=0||G>=1||(n.forEach(e=>{let R=o("video",e);R.length===0&&(R=o("img",e).filter(I=>I.className.indexOf("InstantImage__img")===-1));let{percent:W,threshold:c}=td(e,0,.5);R.forEach((I,B)=>{I.parentElement.style.setProperty("overflow","hidden"),V.backgroundZoom==="in"?I.style.setProperty("transform",`scale(${1+.4*W})`):V.backgroundZoom==="out"&&I.style.setProperty("transform",`scale(${1.4-.4*W})`);let U=1;V.backgroundFade!=="none"&&(["in","both"].includes(V.backgroundFade)&&W<.5||["out","both"].includes(V.backgroundFade)&&W>.5?U=Vl(W,c,2):U=1,I.style.setProperty("opacity",`${U}`)),I.tagName.toLowerCase()==="img"&&(B===0?rG(I,V,W):(U*=Vl(W,c),I.style.setProperty("opacity",`${U}`)))})}),b.forEach(e=>{let R=t?o(".NodeContent",e):[].slice.call(e.firstElementChild.firstElementChild.children);if(t&&Bg(V.textPerLine,e,R),t&&e.contains(document.activeElement))return;(V.textPerLine?R:[e]).forEach(c=>{let{percent:I,threshold:B}=td(c,0,.2);V.textZoom==="in"?c.style.setProperty("transform",`scale(${.7+.3*I})`):V.textZoom==="out"&&c.style.setProperty("transform",`scale(${1-.3*I})`);let U=[];(["in","both"].includes(V.textBlur)&&I<.5||["out","both"].includes(V.textBlur)&&I>.5)&&U.push(`blur(${(20*(1-Vl(I,B,2))).toFixed(2)}px)`);let Z=U.join(" ");c.style.getPropertyValue("filter")!==Z&&c.style.setProperty("filter",Z);let m=1;["in","both"].includes(V.textFade)&&I<.5||["out","both"].includes(V.textFade)&&I>.5?m*=Vl(I,B):m=1,c.style.setProperty("opacity",`${m}`)})}))}zV.push(a)})}),setTimeout(ot,500)}function rG(t,l,d){let V=[];d<.5?(["in","both"].includes(l.backgroundBlur)&&V.push("blur(20px)"),["in","both"].includes(l.backgroundGrayscale)&&V.push("grayscale(100%)")):(["out","both"].includes(l.backgroundBlur)&&V.push("blur(20px)"),["out","both"].includes(l.backgroundGrayscale)&&V.push("grayscale(100%)"));let i=V.join(" ");t.style.getPropertyValue("filter")!==i&&t.style.setProperty("filter",i)}function mg(t){let l=t;for(;l&&!l.classList.contains("Theme-Section");)l.parentNode?l=l.parentNode:console.error("Could not find the parent Theme-section");return l.classList.contains("SplitLayout")}function Bg(t,l,d){(t||l.contains(document.activeElement))&&(l.style.removeProperty("transform"),l.style.removeProperty("filter"),l.style.removeProperty("opacity")),(!t||l.contains(document.activeElement))&&d.forEach(V=>{V.style.removeProperty("transform"),V.style.removeProperty("filter"),V.style.removeProperty("opacity")})}var jG=M(wV());function OV(){o("[data-lazyload-container][data-lazyload-trigger]").map(l=>({pictures:o("[data-lazyload-item] picture",l),container:l,trigger:l})).forEach(il)}function il({pictures:t,container:l,trigger:d}){let V=!1,i=()=>{V||(Ot(l),V=!0)};return et(d,b=>{Rt(b)&&(t.forEach(a=>og(a,()=>pg(l))),i())},{triggerPoint:"lazyload"}),i}function og(t,l){let d=L("img",t),V=o("source",t);d&&(d.addEventListener("load",l),SG(d),V.forEach(SG))}function SG(t){Object.entries({"data-src":"src","data-srcset":"srcset"}).forEach(([d,V])=>{let i=t.getAttribute(d);i&&(t.removeAttribute(d),t.setAttribute(V,i))})}function pg(t){t.classList.remove("Lazyload--isLoading"),t.classList.add("Lazyload--isLoaded")}var DV=M(MG()),xg={isHidden(){var t;return document[(t=DV.default)==null?void 0:t.hidden]},addVisibilityChangeListener(t){return document.addEventListener(DV.default.visibilityChange,t)}},Yt=xg;var Qg=window.setTimeout,Cg=window.clearTimeout,HG=0,Ng=t=>{let l=Date.now(),d=Math.max(0,16-(l-HG)),V=Qg(()=>t(l+d),d);return HG=l+d,V},Jg=t=>Cg(t),dd=window.requestAnimationFrame?window.requestAnimationFrame.bind(window):Ng,dp=window.requestAnimationFrame?window.cancelAnimationFrame.bind(window):Jg;var bl=[],Vd=!1;function hg(t){bl.forEach(l=>l(t))}function AG(t){hg(t),Vd&&dd(AG)}var EG=!1;function id(){Vd||(EG||(Yt.addVisibilityChangeListener(()=>{Yt.isHidden()?Xg():id()}),EG=!0),!Yt.isHidden()&&(Vd=!0,dd(AG)))}function Xg(){Vd=!1}function $(t){bl.indexOf(t)===-1&&bl.push(t),id()}function pt(t){let l=bl.indexOf(t);l!==-1&&bl.splice(l,1)}var OG=M(yG());var Gl=M(f());(function(){"use strict";if(typeof window!="undefined"){var t=window.navigator.userAgent.match(/Edge\/(\d{2})\./),l=t?parseInt(t[1],10):null,d=!!l&&16<=l&&l<=18;if(!("objectFit"in document.documentElement.style)||d){var V=function(b,a,G){var e,R,W,c,I;if((G=G.split(" ")).length<2&&(G[1]=G[0]),b==="x")e=G[0],R=G[1],W="left",c="right",I=a.clientWidth;else{if(b!=="y")return;e=G[1],R=G[0],W="top",c="bottom",I=a.clientHeight}if(e!==W&&R!==W){if(e!==c&&R!==c)return e==="center"||e==="50%"?(a.style[W]="50%",void(a.style["margin-"+W]=I/-2+"px")):void(0<=e.indexOf("%")?(e=parseInt(e,10))<50?(a.style[W]=e+"%",a.style["margin-"+W]=I*(e/-100)+"px"):(e=100-e,a.style[c]=e+"%",a.style["margin-"+c]=I*(e/-100)+"px"):a.style[W]=e);a.style[c]="0"}else a.style[W]="0"},i=function(b){var a=b.dataset?b.dataset.objectFit:b.getAttribute("data-object-fit"),G=b.dataset?b.dataset.objectPosition:b.getAttribute("data-object-position");a=a||"cover",G=G||"50% 50%";var e=b.parentNode;return function(R){var W=window.getComputedStyle(R,null),c=W.getPropertyValue("position"),I=W.getPropertyValue("overflow"),B=W.getPropertyValue("display");c&&c!=="static"||(R.style.position="relative"),I!=="hidden"&&(R.style.overflow="hidden"),B&&B!=="inline"||(R.style.display="block"),R.clientHeight===0&&(R.style.height="100%"),R.className.indexOf("object-fit-polyfill")===-1&&(R.className=R.className+" object-fit-polyfill")}(e),function(R){var W=window.getComputedStyle(R,null),c={"max-width":"none","max-height":"none","min-width":"0px","min-height":"0px",top:"auto",right:"auto",bottom:"auto",left:"auto","margin-top":"0px","margin-right":"0px","margin-bottom":"0px","margin-left":"0px"};for(var I in c)W.getPropertyValue(I)!==c[I]&&(R.style[I]=c[I])}(b),b.style.position="absolute",b.style.width="auto",b.style.height="auto",a==="scale-down"&&(a=b.clientWidth<e.clientWidth&&b.clientHeight<e.clientHeight?"none":"contain"),a==="none"?(V("x",b,G),void V("y",b,G)):a==="fill"?(b.style.width="100%",b.style.height="100%",V("x",b,G),void V("y",b,G)):(b.style.height="100%",void(a==="cover"&&b.clientWidth>e.clientWidth||a==="contain"&&b.clientWidth<e.clientWidth?(b.style.top="0",b.style.marginTop="0",V("x",b,G)):(b.style.width="100%",b.style.height="auto",b.style.left="0",b.style.marginLeft="0",V("y",b,G))))},n=function(b){if(b===void 0||b instanceof Event)b=document.querySelectorAll("[data-object-fit]");else if(b&&b.nodeName)b=[b];else{if(typeof b!="object"||!b.length||!b[0].nodeName)return!1;b=b}for(var a=0;a<b.length;a++)if(b[a].nodeName){var G=b[a].nodeName.toLowerCase();if(G==="img"){if(d)continue;b[a].complete?i(b[a]):b[a].addEventListener("load",function(){i(this)})}else G==="video"?0<b[a].readyState?i(b[a]):b[a].addEventListener("loadedmetadata",function(){i(this)}):i(b[a])}return!0};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",n):n(),window.addEventListener("resize",n),window.objectFitPolyfill=n}else window.objectFitPolyfill=function(){return!1}}})();function zG(){if(!window)return!1;let t=document.querySelector(".ObjectFit--cover");if(!t)return!1;let d=window.getComputedStyle(t).objectFit,V=j().isEdge;return(d?/^(contain|cover|fill)$/.test(d):!1)&&!V}function Rl(){Gl.default.measure(()=>{let t=s.getOrientation();Gl.default.mutate(()=>{let l=o(".ObjectFit--cover");l.forEach(d=>{d.dataset.objectFit="cover";let V=d.tagName==="IMG"?d.parentElement:d;V.hasAttribute(`data-${t}-focal`)&&(d.dataset.objectPosition=V.dataset[`${t}Focal`])}),vV(l)})})}function vV(t){window.objectFitPolyfill(t),ug(t)}function ug(t){let{isIE:l,isEdge:d}=j();!l&&!d||t.forEach(V=>nd(V))}function nd(t){let{isIE:l,isEdge:d}=j();!l&&!d||t.className.indexOf("FullSize__fixedChild")!==-1&&Gl.default.measure(()=>{let V=window.innerWidth>window.innerHeight?"landscape":"portrait",i=LG(t);if(i==="none")return;let n=parseFloat(window.getComputedStyle(t.parentElement).getPropertyValue("width"));if(d){t.style.setProperty("width",`${V==="landscape"?n+"px":"100%"}`);return}if(V==="portrait"){t.style.removeProperty("transform");return}let b="play"in t?{width:t.videoWidth,height:t.videoHeight}:{width:t.naturalWidth,height:t.naturalHeight};if(b.width<1){setTimeout(()=>nd(t),100);return}let a=b.width>b.height;Gl.default.mutate(()=>{if(a)i==="media-left"?t.style.getPropertyValue("left")==="50%"?t.style.setProperty("transform",`translateX(-${n*.5}px)`):["","0px"].includes(t.style.getPropertyValue("margin-left"))?t.style.setProperty("transform",`translateX(-${n*.75}px)`):t.style.setProperty("transform",`translateX(-${n*.25}px)`):t.style.getPropertyValue("left")==="50%"?t.style.setProperty("transform",`translateX(${n*.5}px)`):["","0px"].includes(t.style.getPropertyValue("margin-left"))?t.style.setProperty("transform",`translateX(${n*.25}px)`):t.style.setProperty("transform",`translateX(${n*.75}px)`);else{let[G,e]=t.dataset["object-position"].split(" ").map(c=>parseInt(c,10)),R=t.style.getPropertyValue("margin-left")&&t.style.getPropertyValue("margin-left")!=="0px",W=t.style.getPropertyValue("margin-right")&&t.style.getPropertyValue("margin-right")!=="0px";if(i==="media-right"){if(G===50?t.style.setProperty("transform",`scale(0.5) translate(${n}px, 0%)`):e<50?t.style.setProperty("transform",`scale(0.5) translate(${n}px, -${50-e}%)`):t.style.setProperty("transform",`scale(0.5) translate(${n}px, ${e-50}%)`),R){t.style.setProperty("transform",`translateX(${n-Math.abs(parseFloat(t.style.getPropertyValue("margin-left")))}px)`);return}if(W){t.style.setProperty("transform",`translateX(${Math.abs(parseFloat(t.style.getPropertyValue("margin-right")))}px)`);return}}else{if(e===50?t.style.setProperty("transform",`scale(0.5) translate(-${n}px, 0%)`):e<50?t.style.setProperty("transform",`scale(0.5) translate(-${n}px, -${50-e}%)`):t.style.setProperty("transform",`scale(0.5) translate(-${n}px, ${e-50}%)`),R){t.style.setProperty("transform",`translateX(-${Math.abs(parseFloat(t.style.getPropertyValue("margin-left")))}px)`);return}if(W){t.style.setProperty("transform",`translateX(-${n-Math.abs(parseFloat(t.style.getPropertyValue("margin-right")))}px)`);return}}}})})}function LG(t){var l;return((l=t.id)==null?void 0:l.indexOf("section-"))===0?t.className.indexOf("SplitLayout--rowReverse")>-1?"media-left":t.className.indexOf("SplitLayout")>-1?"media-right":"none":LG(t.parentElement)}function Wl(){window.addEventListener("resize",()=>Rl(),{passive:!0}),Rl()}function wG(t){let l=t.getBoundingClientRect(),d=-l.top,V=Math.max(1,l.height-document.documentElement.clientHeight),i=d/V;return{percentage:i,scrollingIn:i<0,scrollingOut:i>1}}var ed=OG.default.factory({init:"ready",transitions:[{name:"prime",from:"ready",to:"primed"},{name:"startTransition",from:"primed",to:"transitioning"},{name:"activate",from:"transitioning",to:"active"},{name:"linger",from:"active",to:"lingering"},{name:"complete",from:["active","lingering"],to:"completed"},{name:"activate",from:["completed","lingering"],to:"active"},{name:"reverseTransition",from:"active",to:"transitioning"},{name:"reset",from:"transitioning",to:"ready"}],methods:{onPrimed(){let{item:t,classNames:l}=this;t.itemEl.classList.add(l.prime),this.onItemShown&&this.onItemShown(t)},onStartTransition(){let{item:t,classNames:l}=this;gt(t.itemEl,"transitionend",()=>this.activate()),requestAnimationFrame(()=>t.itemEl.classList.add(l.active)),Rl()},onReverseTransition(){let{item:t,classNames:l}=this;gt(t.itemEl,"transitionend",()=>this.reset()),t.itemEl.classList.remove(l.active)},onReset(){let{item:t,classNames:l}=this;t.itemEl.classList.remove(l.prime),t.itemEl.classList.remove(l.active)},onActive(){let{item:t,classNames:l}=this;[l.prime,l.active].forEach(d=>t.itemEl.classList.add(d)),this.onItemShown&&this.onItemShown(t),Rl()},onCompleted(){let{item:t,classNames:l}=this;t.itemEl.classList.remove(l.prime),t.itemEl.classList.remove(l.active)},requestReady(){this.is("ready")||this.is("active")&&this.reverseTransition()},requestActive(){this.is("ready")&&this.prime(),this.is("primed")&&this.startTransition(),(this.is("completed")||this.is("lingering"))&&this.activate()},requestComplete(){let t=this.shouldLinger(this.item),l=this.can("linger"),d=!t,V=this.can("complete");t&&l?this.linger():d&&V&&this.complete()},isActive(){return this.is("active")}},data(t){return t}});function bd(t){if(t.isRendering)return;t.isRendering=!0;let l=wG(t.scrollContainer);t.items.forEach(d=>{let V=sg(l,d.data);if(!V)return;let i=t.machines.get(d);({ready:i.requestReady,active:i.requestActive,complete:i.requestComplete})[V].call(i)}),t.isRendering=!1}function sg(t,l){let d=t.scrollingIn&&l.showDuringScrollIn,V=t.scrollingOut&&l.showDuringScrollOut,i=rg(t.percentage,l.start,l.end);if(d||V||i)return"active";if(t.percentage<l.start)return"ready";if(t.percentage>l.end)return"complete"}function rg(t,l,d){return t>=l&&t<d}var KV={instances:new Map,isRunning:!1},fV=new WeakMap;function Yg(t){let l=KV.instances;return l.has(t)||l.set(t,{scrollContainer:t.parentElement,items:[],isRendering:!1,machines:new WeakMap}),l.get(t)}function Tg(t,l,d){let V=1/d.length,i=l*V,n=i+V,b=l===0,a=l===d.length-1;return{itemEl:t,index:l,data:{start:i,end:n,showDuringScrollIn:b,showDuringScrollOut:a}}}function Sg(){document.querySelectorAll(".Theme-BackgroundScrollmationSection").forEach(l=>{let d=l.querySelectorAll(".MediaRenderer__fixedCaption--icon"),V=l.querySelector(".MediaRenderer__Scrollmation-portrait--Caption"),i=l.querySelectorAll(".btn-close-caption-scrollmation");function n(){V.removeAttribute("style")}function b(){V.style.display="none"}d.forEach(a=>a.addEventListener("click",n)),i.forEach(a=>a.addEventListener("click",b))})}function PV(){let t=o("[data-background-scrollmation]");Sg(),t.forEach(l=>kg(l,{doLazyload:!0})),["resize","orientationchange"].forEach(l=>window.addEventListener(l,vG,{passive:!0}))}function kg(t,l,d){let V=o("[data-background-scrollmation-item]",t);if(V.length===0)return()=>{};let i=V.map(Tg),n=Yg(t);n.items=i.reduce((a,G)=>{let e=n.items.find(R=>R.itemEl===G.itemEl);return e&&(e.data=G.data),[...a,e||G]},[]),n.items.map(a=>l.doLazyload?Mg(a,t.parentElement):a).filter(a=>!n.machines.get(a)).forEach(a=>n.machines.set(a,new ed({item:a,classNames:{prime:"BackgroundScrollmationItem--isPrimed",active:"BackgroundScrollmationItem--isActive"},onItemShown(G){d&&d(G,n.items.indexOf(G))},shouldLinger(G){return!n.items.filter(c=>c!==G).map(c=>n.machines.get(c)).some(c=>c.isActive())}})));function b(){let a=t.parentElement.getBoundingClientRect();a.bottom<s.getTop()+s.getHeight()?t.setAttribute("data-attach","after"):a.top<s.getTop()?t.setAttribute("data-attach","during"):t.setAttribute("data-attach","before")}return document.getElementById("editor-viewport")||document.addEventListener("scroll",b,{passive:!0}),l.doLazyload&&vG(),$(DG),()=>{pt(DG),document.getElementById("editor-viewport")||document.removeEventListener("scroll",b)}}function Mg(t,l){if(!fV.get(t.itemEl)){let V=document.createElement("div");V.classList.add("BackgroundScrollmation__lazyloadTriggerElement"),V.setAttribute("data-item-index",String(t.index)),fV.set(t.itemEl,V),l.appendChild(V);let i={pictures:o("picture",t.itemEl),container:t.itemEl.querySelector("[data-lazyload-container]"),trigger:V};il(i)}return t}function vG(){(0,jG.default)(KV.instances.values()).map(t=>t.items).map(t=>t.map(l=>{let d=fV.get(l.itemEl);Object.assign(d.style,{position:"absolute",top:`${l.data.start*100}%`})}))}function DG(){KV.instances.forEach(t=>bd(t))}$l();function $V(t,l){xt.length===0&&Hg();let d=xt.find(V=>V.element===t);d?d.listeners.find(V=>V===l)||d.listeners.push(l):xt.push({element:t,lastVisible:!1,listeners:[l]})}function ti(t,l){let d=xt.findIndex(V=>V.element===t);if(d!==-1){let V=xt[d];V.listeners=V.listeners.filter(i=>i!==l),V.listeners.length===0&&(xt.splice(d,1),xt.length===0&&Eg())}}var xt=[],ad,_V=0,cl=null;function Hg(){let t=document.querySelector("#editor-viewport");t?(ad=t,_V=t.getBoundingClientRect().top,cl=new ResizeObserver(Ul),cl.observe(t,{box:"content-box"})):(ad=window,_V=0,window.addEventListener("resize",Ul,{passive:!0})),ad.addEventListener("scroll",Ul,{passive:!0}),$(fG)}function Eg(){ad.removeEventListener("scroll",Ul),cl?(cl.disconnect(),cl=null):window.removeEventListener("resize",Ul),pt(fG)}var qV=!1;function Ul(){qV=!0}function fG(){qV&&(qV=!1,Ag())}function Ag(){xt.forEach(t=>{let{top:l,isVisible:d,scrollPercent:V,elementHeight:i,viewportHeight:n}=Gd(t.element),b=d===t.lastVisible?"scroll":d?"enter":"leave";if(d||b==="leave"){let a={element:t.element,type:b,top:l,scrollPercent:V,elementHeight:i,viewportHeight:n};t.listeners.forEach(G=>G(a)),t.lastVisible=d}})}function Gd(t){let{top:l,height:d}=t.getBoundingClientRect(),V=s.getHeight(),i=V+d,n=l-_V,b=1-(d+n)/i;return{top:n,isVisible:b>=0&&b<=1,scrollPercent:b,elementHeight:d,viewportHeight:V}}function KG(){let t={};return{on(l,d){if(t[l])t[l].push(d);else return t[l]=[d],!0},off(l,d){if(t[l]){let V=t[l].indexOf(d);if(V!==-1){if(t[l].length===1)return delete t[l],!0;t[l].splice(V,1)}}return!1},emit(l,...d){var V;(V=t[l])==null||V.forEach(i=>i(...d))},hasListener(l){return l in t}}}function PG(t){return["enter","leave","scroll"].includes(t)}var Rd=class extends HTMLElement{constructor(){super(...arguments);this.internalEvents=KG();this.scrollListenerCount=0;this.observer=new MutationObserver(()=>{this.internalEvents.emit("content")});this.scrollListener=d=>{switch(d.type){case"enter":this.internalEvents.emit("enter"),this.internalEvents.emit("scroll",d);break;case"leave":this.internalEvents.emit("leave");break;case"scroll":this.internalEvents.emit("scroll",d);break}}}connectedCallback(){if(this.internalEvents.emit("connected"),this.internalEvents.hasListener("content")&&(this.observer.observe(this,{childList:!0,subtree:!0}),this.hasChildNodes()&&this.internalEvents.emit("content")),this.scrollListenerCount>0){this.scrolledParent=_G(this),$V(this.scrolledParent,this.scrollListener);let d=Gd(this.scrolledParent);d.scrollPercent<0||d.scrollPercent>1?this.internalEvents.emit("leave"):(this.internalEvents.emit("enter"),this.internalEvents.emit("scroll",lt({element:this.scrolledParent,type:"enter"},d)))}}getScrollPosition(){return Gd(this.scrolledParent)}disconnectedCallback(){this.scrollListenerCount>0&&(ti(this.scrolledParent,this.scrollListener),this.internalEvents.emit("leave")),this.internalEvents.hasListener("content")&&this.observer.disconnect(),this.internalEvents.emit("disconnected")}on(d,V){this.internalEvents.on(d,V)&&(PG(d)?(this.isConnected&&this.scrollListenerCount===0&&(this.scrolledParent=_G(this),$V(this.scrolledParent,this.scrollListener)),this.scrollListenerCount++):d==="content"&&this.isConnected&&this.observer.observe(this,{childList:!0,subtree:!0}))}off(d,V){this.internalEvents.off(d,V)&&(PG(d)?(this.scrollListenerCount--,this.isConnected&&this.scrollListenerCount===0&&ti(this.scrolledParent,this.scrollListener)):d==="content"&&this.isConnected&&this.observer.disconnect())}};function _G(t){let l=t;for(;l.parentElement;){let d=getComputedStyle(l);if(d.position!=="sticky"&&d.display!=="inline")return l;l=l.parentElement}return l}var yg={fadeInThreshold:.7,fadeOutThreshold:.15,hideWhenOutOfBounds:!0};function qG(t,l,d,V,i=yg){let n=d/(d+V),b=n*i.fadeInThreshold*.5-n,a=1-n;if(b>l||l>=a)return[];let G=t.filter(W=>W.transitionPercentage).sort((W,c)=>c.transitionPercentage-W.transitionPercentage);if(G.length===0)return[];let e=G[0],R=G[1];if(e.transitionPercentage<i.fadeInThreshold)return[];if(R){let W=R.transitionPercentage>i.fadeInThreshold,c=R.transitionPercentage>i.fadeOutThreshold;if(W)return[R];if(c)return[e,R]}return[e]}var li=M(kV()),di=M(f());function Vi(t){var i;let l=o(".Theme-Layer-BodyText",t.parentElement);((i=document.getElementById("editor-viewport"))!=null?i:document).addEventListener("scroll",V,{passive:!0});function V(){l.forEach(n=>{di.default.measure(()=>{let{top:b,bottom:a}=n.getBoundingClientRect(),G=window.innerHeight,e=G*.3,R=b<G&&b>G-e,W=a<e&&a>0;di.default.mutate(()=>{if(R){let c=(0,li.default)((G-b)/e,0,1);n.style.setProperty("opacity",c.toString())}else if(W){let c=(0,li.default)(a/e,0,1);n.style.setProperty("opacity",c.toString())}else a<0||b>G?n.style.setProperty("opacity","0"):n.style.setProperty("opacity","1")})})})}}function $G(t){return t?t.split(";").map(d=>{let V=d.trim().split(/\s+/);if(V.length<2)return{name:V[0]||"none",speed:1};{let i=parseFloat(V[0]);return{name:V[1],speed:isNaN(i)?1:i}}}):[]}function tR(t,l,d,V){var R,W,c;let i=d+V,n=d*.4,b=d/i,a=-n/i,G=[{name:"none",start:a,end:a+b}],e=d;for(let I=0;I<l.length-1;I++){e+=l[I];let B=((W=(R=t[I])==null?void 0:R.speed)!=null?W:1)*b,U=(e-n)/i;G.push({name:((c=t[I])==null?void 0:c.name)||"none",start:U,end:U+B})}return G}function lR(t,l){return t.map((d,V)=>{if(V!==0&&l<d.start||V+1<t.length&&l>t[V+1].end)return{index:V,display:"none"};{let i=d.end-d.start,n=l-d.start,b=Math.min(n/i,1),a=zg(d,V,b);return a.opacity===0?{display:"none",index:V}:a}})}function zg(t,l,d){let V={display:"block",transitionPercentage:d,index:l,clipPath:"none",opacity:1},i=0,n=0,b=0,a=0;return t.name.split(",").forEach(e=>{switch(e){case"fade":V.opacity=d;break;case"up":i=(1-d)*100;break;case"right":n=(1-d)*100;break;case"down":b=(1-d)*100;break;case"left":a=(1-d)*100;break}}),(i||n||b||a)&&(V.clipPath=`inset(${i}% ${n}% ${b}% ${a}%)`),V}var Lg=`
<style type="text/css">
.PositionSticky {
  position: -webkit-sticky; /* Safari 12 and earlier */
  top: 0px;
  position: sticky;
}
</style>
<div class="PositionSticky" style="width: 100%; height: 100vh; overflow: hidden">
 <div style="width: 100%; height: 100vh; overflow: hidden; top: 0px; isolation: isolate">
 <slot></slot>
 </div>
 <slot name="caption"></slot>
</div>
<slot name="foreground"></slot>`,Wd=class extends Rd{constructor(){super();this.textHeights=[];let d=this.attachShadow({mode:"open"});d.innerHTML=Lg,this.slotElements=Array.from(d.querySelectorAll("slot")),window.ResizeObserver&&(this.textObserver=new ResizeObserver(()=>{this.textBlockElement&&(this.textHeights=dR(this.textBlockElement))})),this.slotElements[0].addEventListener("slotchange",()=>{this.updateScene(this.getScrollPosition())}),this.slotElements[1].addEventListener("slotchange",()=>{this.captionElement=this.slotElements[1].assignedElements()[0];let V=this.getScrollPosition();this.captionElement&&V.isVisible&&(this.captionElement.style.display="block",this.updateScene(V))}),this.slotElements[2].addEventListener("slotchange",()=>{var V,i;this.textBlockElement&&((V=this.textObserver)==null||V.unobserve(this.textBlockElement)),this.textBlockElement=this.slotElements[2].assignedElements()[0],this.textBlockElement&&(this.textHeights=dR(this.textBlockElement),(i=this.textObserver)==null||i.observe(this.textBlockElement)),this.updateScene(this.getScrollPosition())}),this.on("connected",()=>{Vi(this),this.readTransitions()}),this.on("disconnected",()=>{var V;this.textBlockElement&&((V=this.textObserver)==null||V.unobserve(this.textBlockElement),this.textHeights=[])}),this.on("enter",()=>{this.captionElement&&(this.captionElement.style.display="block")}),this.on("scroll",V=>{this.updateScene(V)}),this.on("leave",()=>{this.captionElement&&(this.captionElement.style.display="none")})}readTransitions(){this.transitions=$G(this.getAttribute("data-transitions"))}updateScene({scrollPercent:d,viewportHeight:V,elementHeight:i}){if(this.textHeights.length===0)return;let n=tR(this.transitions,this.textHeights,V,i),b=lR(n,d),a=qG(b,d,V,i),G=this.slotElements[0].assignedElements();jg(this.captionElement,G,a),b.forEach((e,R)=>wg(G[R],e))}attributeChangedCallback(){this.isConnected&&(this.readTransitions(),this.updateScene(this.getScrollPosition()))}};Wd.observedAttributes=["data-transitions"];function dR(t){return Array.from(t.children).map(l=>l.getBoundingClientRect().height)}function wg(t,l){var d;t instanceof HTMLElement&&(t.style.display!==l.display&&(l.display==="none"?Og(t):Dg(t),t.style.display=l.display),t.style.opacity=(d=l.opacity)==null?void 0:d.toString(),t.style.clipPath=l.clipPath,t.style.zIndex=l.index.toString())}function Og(t){t.querySelectorAll("video").forEach(l=>{l.autoplay&&(l.autoplay=!1);try{l.pause()}catch(d){}})}function Dg(t){t.querySelectorAll("video").forEach(l=>{if(l.src)try{l.play().catch(()=>{})}catch(d){}else l.autoplay=!0})}function jg(t,l,d){if(t){let V=t.querySelector("[data-mediarenderer-caption-container]")||t,i=d.map(n=>l[n.index].querySelector(".Theme-OverlayedCaption"));d.length===0||i.some(n=>!n)?t.style.opacity="0":(t.style.opacity="1",d.length===2?V.style.opacity="0":(V.style.opacity="1",V.innerHTML=i[0].innerHTML))}}function vg(t="sh-background-transition"){customElements.get(t)||customElements.define(t,Wd)}vg();function VR(t,l,d){var V,i,n;l===void 0&&(l=50),d===void 0&&(d={});var b=(V=d.isImmediate)!=null&&V,a=(i=d.callback)!=null&&i,G=d.maxWait,e=Date.now(),R=[];function W(){if(G!==void 0){var I=Date.now()-e;if(I+l>=G)return G-I}return l}var c=function(){var I=[].slice.call(arguments),B=this;return new Promise(function(U,Z){var m=b&&n===void 0;if(n!==void 0&&clearTimeout(n),n=setTimeout(function(){if(n=void 0,e=Date.now(),!b){var C=t.apply(B,I);a&&a(C),R.forEach(function(N){return(0,N.resolve)(C)}),R=[]}},W()),m){var x=t.apply(B,I);return a&&a(x),U(x)}R.push({resolve:U,reject:Z})})};return c.cancel=function(I){n!==void 0&&clearTimeout(n),R.forEach(function(B){return(0,B.reject)(I)}),R=[]},c}var iR=M(MV());function cd(t){let l={"InstantImage--isLoading":!1,"InstantImage--isLoaded":!0};t.className=(0,iR.default)(t.className,l)}var{isSafari:nR}=j();function Tt(t,l){let d=Array.from(t.querySelectorAll("source")),V;return nR&&(V=d.find(i=>i.type==="video/mp4"&&i.hasAttribute(`data-${l}`))),V||(V=d.find(i=>t.canPlayType(i.type)&&i.hasAttribute(`data-${l}`)&&(!nR||i.type==="video/mp4"))),V?[fg(V.getAttribute(`data-${l}`)),V.type]:[void 0,void 0]}function fg(t){let l=document.createElement("a");return l.href=t,l.href}function Kg(t){let l=()=>{t.style.opacity="1"};["loadeddata","playing","canplaythrough"].forEach(V=>gt(t,V,l))}function Pg(t){return t.currentTime>0&&!t.paused&&!t.ended&&t.readyState>2}function ii(t,l={canControl:!0},d){let V=s.getHeight()>s.getWidth(),i=Pg(t),[n]=Tt(t,V?"portrait":"landscape");n&&t.src!==n&&(t.src=n,t.load(),l.canControl&&i&&Ud(t,d))}function ni(){let{isSafari:t}=j();o("[data-background-video]").forEach(i=>{let n=i.querySelector("[data-video]"),b=i.querySelector("img");if(!n)return;t&&n.className.includes("FullSize__fixedChild")&&n.addEventListener("canplay",()=>{n.className=n.className.replace("FullSize__fixedChild","FullSize__fixedChild--Safari")});let a=n.autoplay;if(n.muted=!0,n.defaultMuted=!0,Kg(n),n.readyState>=2?cd(i):(n.addEventListener("loadeddata",()=>cd(i)),n.addEventListener("error",()=>cd(i))),a){et(i,R=>{ii(n,{canControl:!1},b),nd(n),Rt(R)?Ud(n,b):n.pause()},{triggerPoint:"on visibile"});let{top:e}=i.getBoundingClientRect();e<s.getHeight()*2&&(Ud(n,b),setTimeout(()=>{n.readyState<2&&n.paused&&(n.load(),Ud(n,b))},1e3))}else ii(n,{canControl:!1},b)});let d=o("[data-background-video] [data-video]"),V=VR(i=>d.forEach(n=>{var b;ii(n,{canControl:!0},(b=n.parentElement)==null?void 0:b.querySelector("img"))}),100);["resize","orientationchange"].forEach(i=>{window.addEventListener(i,V,{passive:!0})})}function Ud(t,l){try{t.pause(),t.style.visibility="hidden",l.style.visibility="visible"}catch(V){}let d=t.play();typeof d!="undefined"&&(t.style.visibility="visible",l.style.visibility="hidden",d.then(()=>{t.style.visibility="visible",l.style.visibility="hidden"}).catch(()=>{t.play().catch(V=>{t.pause(),t.style.visibility="hidden",l.style.visibility="visible"})}))}var aR=M(wV());var ei=M(f());function bi(t,l){ei.default.measure(()=>{let d=window.innerWidth,i=l.reduce((n,b)=>n.clientHeight>b.clientHeight?n:b,l[0]).clientHeight;ei.default.mutate(()=>{t.style.height=d>=900?`${i}px`:null})})}var Il=M(f());var Zl={items:[],lastSizes:new WeakMap},_g=250;function eR(){let t=$g(document.documentElement);t.length!==0&&(Zl.items=t,$(qg))}function qg(){Zl.items.forEach(t=>lF(t))}function $g(t){return o("[data-card-canvas-item]",t).map(tF)}function tF(t){return{el:t,img:o("img",t),caption:t.querySelector(".CardCanvasItem__caption"),heightReferenceEl:t.parentElement.querySelector("[data-card-canvas-height-reference]")}}function lF(t){dF(t).then(()=>VF(t)).catch(()=>{})}function dF(t){return new Promise((l,d)=>{Il.default.measure(()=>{if(getComputedStyle(t.el).getPropertyValue("display")==="none")return d();let i=window.innerWidth,n=t.heightReferenceEl.clientHeight,b=t.caption?t.caption.clientHeight:0,a=Zl.lastSizes.has(t)?Zl.lastSizes.get(t):{width:0,height:0,captionHeight:0};if(i===a.width&&n===a.height&&b===a.captionHeight)return d();a.width=i,a.height=n,a.captionHeight=b,Zl.lastSizes.set(t,a);let G=n-b;Il.default.mutate(()=>{t.img.forEach(e=>e.style.maxHeight=i>=900?`${G}px`:null),l()})})})}function VF(t){return new Promise(l=>{if(!t.caption)return l();function d(V,i){Il.default.mutate(()=>{let n=iF(i,{width:V.naturalWidth,height:V.naturalHeight}),b=Math.max(n.width,_g);t.caption.style.maxWidth=`${b}px`,l()})}Il.default.measure(()=>{let V=t.el.querySelector("picture img");if(!V)return;let i=V.getBoundingClientRect();V.naturalWidth>0?d(V,i):V.addEventListener("load",()=>d(V,i))})})}function iF(t,l){let d=l.width/t.width,V=l.height/t.height,i=Math.max(d,V);return{width:l.width/i,height:l.height/i}}var Gi={instances:new Map,isRunning:!1},ai=new WeakMap;function nF(t){let l=Gi.instances;return l.has(t)||l.set(t,{scrollContainer:t.parentElement,items:[],isRendering:!1,machines:new WeakMap}),l.get(t)}function eF(t,l,d){let V=1/d.length,i=l*V,n=i+V,b=l===0,a=l===d.length-1;return{itemEl:t,index:l,data:{start:i,end:n,showDuringScrollIn:b,showDuringScrollOut:a}}}function Ri(){eR(),o("[data-card-canvas]").forEach(l=>bF(l,{doLazyload:!0})),["resize","orientationchange"].forEach(l=>window.addEventListener(l,GR,{passive:!0}))}function bF(t,l,d){let V=o("[data-card-canvas-item]",t);if(V.length===0)return;let i=V.map(eF),n=nF(t);return n.items=i.reduce((b,a)=>{let G=n.items.find(e=>e.itemEl===a.itemEl);return G&&(G.data=a.data),[...b,G||a]},[]),n.items.map(b=>l.doLazyload?aF(b,t.parentElement):b).filter(b=>!n.machines.get(b)).forEach(b=>n.machines.set(b,new ed({item:b,classNames:{prime:"CardCanvasItem--isPrimed",active:"CardCanvasItem--isActive"},onItemShown(a){d&&d(a,n.items.indexOf(a))},shouldLinger(a){return!n.items.filter(W=>W!==a).map(W=>n.machines.get(W)).some(W=>W.isActive())}}))),l.doLazyload&&GR(),$(bR),()=>pt(bR)}function aF(t,l){if(!ai.get(t.itemEl)){let V=document.createElement("div");V.classList.add("BackgroundScrollmation__lazyloadTriggerElement"),V.setAttribute("data-item-index",String(t.index)),ai.set(t.itemEl,V),l.appendChild(V);let i={pictures:o("picture",t.itemEl),container:t.itemEl.querySelector("[data-lazyload-container]"),trigger:V};il(i)}return t}function GR(){(0,aR.default)(Gi.instances.values()).map(t=>t.items).map(t=>t.map(l=>{let d=ai.get(l.itemEl);Object.assign(d.style,{position:"absolute",top:`${l.data.start*100}%`})}))}function GF(t,l){bd(t),bi(l,t.items.map(d=>d.itemEl))}function bR(){Gi.instances.forEach(GF)}function Wi(){}var ci=Symbol("hidden"),Ui=Symbol("visible");function RF(t,l,d){let V=d.find(([n])=>n===t),i=V?V[1]:!1;return(!i||i!==l)&&t(l),d.filter(([n])=>n!==t).concat([[t,l]])}function WF(t){let{lastCalls:l}=t;Zd.forEach(d=>{let i=t.isPageHidden||!t.visibleElements.has(d.element)?ci:Ui;l=RF(d.cb,i,l)}),t.lastCalls=l}function cF(t,l){return t.add(l)}function UF(t,l){return t.delete(l),t}function ZF(){Yt.addVisibilityChangeListener(()=>{let t={isPageHidden:RR()};cR(t)})}function RR(){return Yt.isHidden()}var Zd=[],Id={isPageHidden:RR(),visibleElements:new Set,lastCalls:[]};function WR(t,l,d="nearly visible"){Zd.push({cb:l,element:t});let V={triggerPoint:d};return et(t,n=>{let{visibleElements:b}=Id,a=Rt(n)?cF(b,t):UF(b,t);cR({visibleElements:a})},V),()=>{Ot(t,V);let n=Zd.findIndex(b=>b.element===t&&b.cb===l);Zd.splice(n,1)}}function cR(t){Id=lt(lt({},Id),t),WF(Id)}function Zi(){ZF()}var Ii=M(f());function gi(){window.addEventListener("resize",()=>UR(),{passive:!0}),UR()}function UR(){Ii.default.measure(()=>{let t=s.getOrientation();Ii.default.mutate(()=>{o("[data-landscape-focal]").forEach(l=>{let d=l.dataset[`${t}Focal`];if(d){let V=l.tagName==="PICTURE"?l.querySelector("img"):l;V==null||V.style.setProperty("object-position",d)}})})})}var O=null,gl=!1;function Fi(){IF(),o("[data-footnote]").forEach(t=>FF(t))}function IF(){let t=L(".Theme-Story");t&&(!O||!L(".Theme-Footnote",t))&&(O=document.createElement("div"),O.classList.add("Theme-Footnote"),O.setAttribute("role","tooltip"),O.setAttribute("aria-live","polite"),O.setAttribute("aria-atomic","true"),t.appendChild(O))}function ZR(){return L("#editor-viewport")||document}function gF(){let t=L(".Theme-Header");if(!t)return 0;let l=getComputedStyle(t).height,d=parseInt(l,10),V=L(".Navigation__itemList"),i=V&&window.innerWidth>=1100&&V.childNodes.length?36:0,n=L(".navbar-editor");return(n?parseInt(getComputedStyle(n).height,10):0)+d+i}function FF(t){t.addEventListener("mouseover",()=>gd(t)),t.addEventListener("touchstart",()=>gd(t)),t.addEventListener("focus",()=>{setTimeout(()=>gd(t),100)}),t.addEventListener("keydown",l=>{switch(l.key){case"Enter":gl?mi():gd(t);break;case"ArrowUp":gl&&(l.preventDefault(),O.firstElementChild.scrollBy(0,-20));break;case"ArrowDown":gl&&(l.preventDefault(),O.firstElementChild.scrollBy(0,20));break}})}function gd(t){let l=t.getBoundingClientRect();O.style.display="block",O.innerHTML=decodeURIComponent(t.getAttribute("data-footnote"));let d=O.getBoundingClientRect(),V=l.top<gF()+d.height,i=V?l.bottom+5:l.top-d.height-5,n=l.left+l.width/2;n-d.width/2<0?n=d.width/2+2:n+d.width/2>window.innerWidth&&(n=window.innerWidth-d.width/2-2),O.style.top=`${i}px`,O.style.left=`${n}px`,O.classList.remove("Theme-Position-Top"),O.classList.remove("Theme-Position-Bottom"),O.classList.add(V?"Theme-Position-Top":"Theme-Position-Bottom"),document.addEventListener("mouseover",Fd),document.addEventListener("touchstart",Fd),ZR().addEventListener("scroll",IR),gl=!0}function mi(){gl=!1,O.style.display="",document.removeEventListener("mouseover",Fd),document.removeEventListener("touchstart",Fd),ZR().removeEventListener("scroll",IR)}function IR(){mi()}function Fd(t){let l=t.target;!l.closest(".Theme-Layer-BodyText-Highlight")&&!l.closest(".Theme-Footnote")&&mi()}var Bi=M(f());var gR="HideOffscreen__media--onscreen";function mF(t){Bi.default.mutate(()=>{t.forEach(l=>l.classList.remove(gR))})}function BF(t){Bi.default.mutate(()=>{t.forEach(l=>{l.classList.add(gR),vV([l])})})}function oi(){o(".HideOffscreen--container").map(t=>({container:t,children:o(".HideOffscreen__media",t)})).filter(t=>t.children&&t.children.length>0).forEach(t=>{WR(t.container,l=>{switch(l){case Ui:BF(t.children);break;case ci:mF(t.children);break}},"on visibile")})}function pi(){}function oF(){let t=document.createElement("div");return t.style.display="flex",t.style.display==="flex"}function xi(){oF()||document.documentElement.classList.add("Layout--flexboxUnsupported")}function Qi(){xi()}var mR=M(f());var bt=class t{constructor(l){this.element=l,this.counter=l.querySelector("[aria-live]"),this.element.parentElement.removeChild(this.element),document.body.appendChild(this.element),this.currentMediaIndex=0,this.media=o("[data-media-gallery-index]",this.element),this.element.addEventListener("click",()=>{this.close()}),o("img, .Videoplayer, .Theme-Caption",this.element).forEach(b=>{b.addEventListener("click",a=>a.stopPropagation())});let d=L('[data-action="previous"]',this.element);d&&d.addEventListener("click",b=>{b.stopPropagation(),this.prev()});let V=L('[data-action="next"]',this.element);V&&V.addEventListener("click",b=>{b.stopPropagation(),this.next()}),L('[data-action="close"]',this.element).addEventListener("click",b=>{b.stopPropagation(),this.close()}),this.element.addEventListener("touchmove",b=>b.preventDefault());let n=-1;o("img, .Videoplayer",this.element).forEach(b=>{b.addEventListener("touchstart",a=>{n=a.touches[0].clientX}),b.addEventListener("touchend",a=>{let G=a.changedTouches[0].clientX-n,e=window.innerWidth*.1;G<-e?this.next():G>e&&this.prev(),n=-1})})}getFocusable(){let l=o("*[data-action]",this.element),d=L(`[data-media-gallery-index="${this.currentMediaIndex}"].active [tabindex]`,this.element);return l.concat(d).filter(V=>V)}open(l,d){var V;(V=t.current)==null||V.close(!1),o("video",this.element).forEach(i=>i.setAttribute("playsinline","true")),o([".DeviceDetect--isEdge .MediaGallery--lightbox .plyr__progress--seek",".DeviceDetect--isIE .MediaGallery--lightbox .plyr__progress--seek"].join(",")).forEach(i=>{i.style.setProperty("width","0"),setTimeout(()=>i.style.removeProperty("width"),100)}),this.goToIndex(l),this.element.classList.add("MediaGallery--lightbox--open"),t.current=this,document.body.classList.add("Body--hasLightbox"),this.getFocusable()[1].focus(),this.onClose=d}close(l=!0){this.element.classList.remove("MediaGallery--lightbox--open"),document.body.classList.remove("Body--hasLightbox"),o("video",this.element).forEach(d=>d.pause()),l&&typeof this.onClose=="function"&&this.onClose(),t.current=null}prev(){let l=this.currentMediaIndex===0?this.media.length-1:this.currentMediaIndex-1;this.goToIndex(l)}next(){let l=this.currentMediaIndex===this.media.length-1?0:this.currentMediaIndex+1;this.goToIndex(l)}goToIndex(l){this.media[this.currentMediaIndex].classList.remove("active"),o("video",this.element).forEach(V=>V.pause()),this.currentMediaIndex=l,L(`[data-media-gallery-index="${this.currentMediaIndex}"]`,this.element).classList.add("active"),this.counter.innerText=`Item ${l+1} of ${this.media.length}`}};function Ci(){let t={};o("[data-media-gallery-lightbox]").forEach(d=>{let V=d.getAttribute("data-media-gallery-lightbox");t[V]=new bt(d)}),o("[data-media-gallery]").forEach(d=>{let V=d.getAttribute("data-media-gallery");o("[data-cell-index]",d).forEach(i=>{i.addEventListener("click",()=>l(V,i)),i.addEventListener("keydown",n=>{bt.current||n.code==="Enter"&&(n.preventDefault(),n.stopPropagation(),l(V,i))})})}),window.removeEventListener("keydown",FR),window.addEventListener("keydown",FR);function l(d,V){let i=parseInt(V.getAttribute("data-cell-index"),10);pF(),t[d].open(i,()=>{xF(),V.focus()})}}function FR(t){if(bt.current&&s.getHeight()!==window.screen.height)switch(t.code){case"Tab":let l=bt.current.getFocusable(),d=l[0],V=l[l.length-1];!l.includes(document.activeElement)||!t.shiftKey&&document.activeElement===V?(t.preventDefault(),t.stopPropagation(),d.focus()):t.shiftKey&&document.activeElement===d&&(t.preventDefault(),t.stopPropagation(),V.focus());break;case"Enter":document.activeElement.className.includes("plyr")&&(t.preventDefault(),t.stopPropagation(),document.activeElement.querySelector('[data-plyr="fullscreen"]').click());break;case"ArrowRight":t.preventDefault(),t.stopPropagation(),document.activeElement.className.includes("plyr")||bt.current.next();break;case"ArrowLeft":t.preventDefault(),t.stopPropagation(),document.activeElement.className.includes("plyr")||bt.current.prev();break;case"Escape":t.preventDefault(),t.stopPropagation(),bt.current.close();break}}function pF(){o("[data-media-gallery] video").forEach(t=>t.pause())}function xF(){o("[data-media-gallery] video").forEach(t=>{mR.default.measure(()=>{let l=t.getBoundingClientRect();l.top<s.getHeight()&&l.bottom>0&&t.play()})})}function Ni(){let{isIE:t,isEdge:l}=j();(t||l)&&(window.addEventListener("mousewheel",d=>{let{wheelDelta:V,wheelDeltaY:i}=d;d.preventDefault(),Fl(1-(i||V))}),document.body.addEventListener("keydown",d=>{switch(d.key){case"PageUp":d.preventDefault(),Fl(window.innerHeight*-.8);break;case"PageDown":d.preventDefault(),Fl(window.innerHeight*.8);break;case"ArrowUp":d.preventDefault(),Fl(-120);break;case"ArrowDown":d.preventDefault(),Fl(120);break;default:return}}))}function Fl(t,l=100){let d=10,V=t/d,i=setInterval(()=>{window.scrollTo(0,Math.round(window.pageYOffset+V)),d>0?d--:clearInterval(i)},l/d)}var QR=M(oR());var Ji=M(f());var xR="Theme-ActiveNavigationBarItem";function QF(t){return t.reduce((l,d)=>{let V=d.getAttribute("href");if(V.indexOf("#")!==0)return l;let i=V.replace(/^#/,"");try{let n=document.getElementById(i);n||console.warn(`navigation: Couldn't locate target via nav item id '${i}'.`),l.push({target:n,navItem:d})}catch(n){console.warn(`navigation: Bad target via nav item selector ${i}.`)}return l},[])}function CF(t){t.forEach(NF)}function NF(t){t.parentElement.classList.remove(xR)}function JF(t){t.parentElement.classList.add(xR)}function hF(t){let l=s.getHeight()/2;return t.find(d=>{let V=d.target.getBoundingClientRect(),i=d.target.className.match(/\bTheme-TitleSection\b/)!==null;return V.top<l&&(i||V.bottom>l)})}var pR={lastMostVisible:!1};function XF(t){Ji.default.measure(()=>{let l=hF(t.slice().reverse());pR.lastMostVisible!==l&&Ji.default.mutate(()=>{CF(t.map(d=>d.navItem)),l&&JF(l.navItem),pR.lastMostVisible=l})})}function hi(t){let l=QF(t);if(l.length===0)return;let d=()=>XF(l);["scroll","resize"].forEach(V=>window.addEventListener(V,d)),setTimeout(d,1e3),d()}function Xi(){let t=o(".Navigation"),l=o(".Navigation__hamburger");if(!t.length||!l.length)return;let d=t[0],V=l[0],i=o(".Navigation__item",d);if(i.length===0){V.classList.add("hidden");return}uF(V,d),rF(i,d,V),sF(V)}function uF(t,l){function d(i){return n=>{n.key==="Tab"&&!n.shiftKey&&(n.preventDefault(),i.focus())}}function V(i){return n=>{n.key==="Tab"&&n.shiftKey&&(n.preventDefault(),i.focus())}}t.addEventListener("click",i=>{i.preventDefault(),l.classList.toggle("Navigation--isActive");let n=l.classList.contains("Navigation--isActive"),b=n?"true":"false";t.setAttribute("aria-expanded",b);let a=o("nav.Theme-NavigationBar a"),G=a.at(0),e=a.at(-1),R=G?V(e):null,W=e?d(G):null;function c(){l.classList.remove("Navigation--isActive"),t.setAttribute("aria-expanded","false"),t.focus(),G==null||G.removeEventListener("keydown",R),e==null||e.removeEventListener("keydown",W)}function I(U){!U.target.closest(".Navigation__hamburger")&&!l.contains(U.target)&&c()}function B(U){U.key==="Escape"&&c()}n?(G==null||G.focus(),G==null||G.addEventListener("keydown",R),e==null||e.addEventListener("keydown",W),document.addEventListener("click",I),document.addEventListener("keydown",B)):(G==null||G.removeEventListener("keydown",R),e==null||e.removeEventListener("keydown",W),document.removeEventListener("click",I),document.removeEventListener("keydown",B),t.focus())})}function sF(t){t.classList.remove("Navigation__hamburger--initializing")}function rF(t,l,d){let V=()=>{l.classList.remove("Navigation--isActive"),d.setAttribute("aria-expanded","false")};t.forEach(i=>i.addEventListener("click",V))}var YF="[data-story-nav-item]",TF=-2;function SF(){return o("[data-fixed-story-element]").reduce((l,d)=>l+d.getBoundingClientRect().height,TF)}function ui(t=YF){let l=o(t);hi(l),Xi();let d=SF();QR.default.setup(500,d)}var Ti=M(f());var kF={clientWidth:["padding-left","padding-right","border-left-width","border-right-width"],clientHeight:["padding-top","padding-bottom","border-top-width","border-bottom-width"]};function CR(t){return JR(t,"clientWidth")}function NR(t){return JR(t,"clientHeight")}function MF(t,l){switch(l){case"clientWidth":return t.clientWidth;case"clientHeight":return t.clientHeight}}function JR(t,l){let d=kF[l];try{let V=window.getComputedStyle(t),i=d.reduce((n,b)=>{let a=V.getPropertyValue(b);return n+HF(a)},0);return MF(t,l)-i}catch(V){throw new Error(`Couldn't get styles for element ${t} in getInnerDimension`)}}function HF(t){return parseInt(t,10)}var qF=iW(),nW={elements:[]},$F=qF();function ki(t){let{elements:l}=nW;if(l.findIndex(V=>V.element===t)>-1)return;let d={element:t,onResize(){Si(t)}};l.push(d),Si(t,!0),$F.listenTo(d.element.parentElement,d.onResize),Bd()}function tm(){let{elements:t}=nW;t.forEach(l=>Si(l.element))}function Si(t,l=!1){Ti.default.measure(()=>{let d=t.parentNode,V=d?CR(d):-1,i=t.clientWidth;(V!==i||l)&&Ti.default.mutate(()=>{t.style.width=`${V}px`})})}function Bd(){let t=document.getElementsByClassName("ParentWidth");Array.prototype.forEach.call(t,ki),tm()}var od=M(f());var eW=!1;function Hi(t){t&&(Dt.getTopOffset=t),o("[data-scrollymoly]").forEach(lm),window.addEventListener("orientationchange",()=>Mi()),eW||(eW=!0,window.addEventListener("resize",Vm),$(Mi))}var Dt={moles:[],getTopOffset(t){return document.documentElement?t.getBoundingClientRect().top+document.documentElement.scrollTop:(console.error("Document element is not available."),0)}};function lm(t){let l=t.getAttribute("data-scrollymoly");try{let d=JSON.parse(l).map(n=>gn(lt({},n),{offset:Number.isFinite(n.offset)?n.offset:0})),V=t.closest("[data-scrollymoly-basis]"),i=Dt.getTopOffset(V);dm({element:t,basisEl:V,effects:d,topOffset:i,state:{}})}catch(d){console.error(d)}}function dm(t){Dt.moles.push(t),Mi()}function Mi(){Dt.moles.map(im)}function Vm(){Dt.moles.forEach(t=>{t.topOffset=Dt.getTopOffset(t.basisEl)})}function im(t){return new Promise((l,d)=>{od.default.measure(()=>{t.effects.forEach(V=>{V.kind in aW?aW[V.kind](t,V,l):(console.error(`Unknown effect type '${V.kind}'`),l())})})})}function bW(t,l,d){let V=l.firstElementChild.getBoundingClientRect(),i=t.kind==="fadeIn"?V.top:V.bottom,n=s.getHeight()*t.end,b=n+Math.min(V.height,s.getHeight()*t.start),a=i>b?1:(i-n)/(b-n);return Math.round(a*100)/100}var aW={fadeOut(t,l,d){let V=bW(l,t.basisEl,t.topOffset),i=Math.max(0,Math.min(1,V));if(t.state.lastOpacity===i)return d();od.default.mutate(()=>{t.state.lastOpacity=i,t.element.style.opacity=i.toString(),d()})},fadeIn(t,l,d){let V=bW(l,t.basisEl,t.topOffset),i=Math.max(0,Math.min(1,1-V));if(t.state.lastOpacity===i)return d();od.default.mutate(()=>{t.state.lastOpacity=i,t.element.style.opacity=i.toString(),d()})}};var GW={facebook:{networkName:"Facebook",shareAction:"Share",popupWidth:600,popupHeight:420},twitter:{networkName:"Twitter",shareAction:"Tweet",popupWidth:600,popupHeight:250},linkedin:{networkName:"LinkedIn",shareAction:"Share",popupWidth:600,popupHeight:250}};function nm(t,l){let d=Math.round(s.getWidth()/2-l.popupWidth/2),V=0;s.getHeight()>l.popupHeight&&(V=Math.round(s.getHeight()/3-l.popupHeight/2));let i={left:d,top:V,width:l.popupWidth,height:l.popupHeight,personalbar:0,toolbar:0,scrollbars:1,resizable:1},n=Object.keys(i).map(G=>`${G}=${i[G]}`).join(","),b="social-widget-"+l.networkName.replace(/\s+/,"-"),a=window.open(t,b,n);a?a.focus():location.href=t}function em(t){t.preventDefault();let l=t.currentTarget,d=l.getAttribute("data-social-share"),V=GW[d],i=l.href;nm(i,V)}function bm(t){let l=t.getAttribute("data-social-share");l in GW?t.addEventListener("click",em,{passive:!1}):console.error(`Social Share button of type ${l} is not supported.`)}function Ei(t="[data-social-share]"){o(t).forEach(bm)}var jt={};function vt(t,l){return()=>{jt.pause&&jt.instance!==l&&jt.pause(),jt.pause=()=>{delete jt.pause,t()},jt.instance=l}}var am="https://w.soundcloud.com/player/api.js",Gm=!1,Rm="SoundCloudPlayer--initializing";function Wm(t){if(Gm)return t();let l=document.createElement("script");l.type="text/javascript",l.async=!0,l.addEventListener("load",t),l.src=am;let d=document.getElementsByTagName("script")[0];d.parentNode.insertBefore(l,d)}function cm(t){let l=t.getAttribute("data-src"),d=t.getAttribute("data-height"),V=Zm({src:l,height:d});V.addEventListener("load",()=>{Wm(()=>{t.classList.remove(Rm);let i=new SC.Widget(V);Um(i,V)})}),t.appendChild(V)}function Um(t,l){let d=t.pause.bind(t);t.bind(SC.Widget.Events.READY,()=>{t.bind(SC.Widget.Events.PLAY,vt(d,l))})}function Zm(t){let l=document.createElement("iframe"),d={width:"100%",scrolling:"no",frameborder:"no",src:t.src,height:t.height};return Object.keys(d).forEach(V=>l.setAttribute(V,d[V])),l}function Ai(){let t=o("[data-soundcloud]");window.addEventListener("load",()=>{setTimeout(()=>t.forEach(cm),100)})}function yi(){o(".SplitLayout").forEach(Im)}function Im(t){let l=o(".FullSize__fixedChild.ObjectFit--cover",t);zG()&&l.forEach(ki)}var zi=M(f());function gm(t){let l=o("[data-stacked-content-fill]",t),d=o("[data-stacked-content-basis]",t),V=()=>Fm(t,l,d);return V(),$(V),()=>pt(V)}function Fm(t,l,d){l.length!==0&&zi.default.measure(()=>{let V=NR(t);if(!V)return;let i=d.reduce((b,a)=>b+a.clientHeight,0),n=(V-i)/l.length;zi.default.mutate(()=>{l.forEach(b=>b.style.maxHeight=`${n}px`)})})}function Li(){return o("[data-stacked-content]").map(gm)}function mm(t,l){let d=`https://views.unsplash.com/v?app_id=${t}&photo_id=${l}`;fetch(d).catch(V=>console.log(V))}function wi(){o("[data-unsplash-ids]").forEach(t=>{let l=t.getAttribute("data-unsplash-ids"),d=t.getAttribute("data-unsplash-app");mm(d,l)})}var Oi=class extends Error{constructor(d){super(d.statusText);this.response=d}};function RW(t){if(t.status>=200&&t.status<300)return t;let l=new Oi(t);throw l.response=t,l}function WW(t,l,d){let V=t.headers.get("content-type");if(V&&V.includes(l))return t;throw new TypeError(d)}function Di(t,l,d){fetch(t).then(RW).then(V=>WW(V,"application/json","Incorrect data for Gallery")).then(V=>V.json()).then(V=>{let i=V.items.filter(b=>b.url.replace(/index\.html$/,"")!==window.location.href.replace(/index\.html$/,"")).map(b=>{let a=l==="tiles"?'class="ObjectFit--cover"':"",G=b.mediaSrc?`<img alt="" src="${b.mediaSrc}" ${a}>`:"",e=b.openInNewWindow?'target="_blank"':"",R=b.isNoFollow?'rel="nofollow"':"";return`
              <li class="Theme-Layer-Gallery-Item" style="overflow:hidden">
                <a href="${b.url?b.url:"/"}" ${e} ${R}>
                  <div class="Theme-Layer-Gallery-Item-Media">
                  ${G}
                  </div>
                  <div class="Theme-Layer-Gallery-Item-Text">
                    <h4 class="Theme-Layer-Gallery-Item-Title">${b.title?b.title:""}</h4>
                    <div class="Theme-Layer-Gallery-Item-Description">${b.description?b.description:""}</div>
                  </div>
                </a>
              </li>
            `}).join(""),n=`
          <h3 class="Layout Theme-Layer-Gallery-Heading">${V.title?V.title:""}</h3>
          <ul class="Layout Theme-Layer-Gallery-List">${i}</ul>
        `;return d?d(n):n}).catch(V=>{console.log("Gallery was unable to parse external data",V)})}var Bm="GalleryRenderer--initializing";function om(t){let l=t.getAttribute("data-url"),d=t.getAttribute("data-mode");Di(l,d,V=>{t.innerHTML=V,t.classList.remove(Bm),Wl()})}function ji(){o("[data-galleryrenderer]").forEach(om)}function vi(){}var pm=M(f());function cW(t,l,d){return d!==void 0?xm(t,l,d):t.classList.toggle(l)}function xm(t,l,d){let V=t.className.split(/\s+/),i=V.includes(l),n=d&&!i?[...V,l]:!d&&i?V.filter(b=>b!==l):V;t.className=n.join(" ")}var Qm={mainSelector:".TransitionIn--fade",fadeInClass:"TransitionIn--fadeIn"};function fi(t=Qm){o(t.mainSelector).forEach(d=>{Cm(d,{fadeInClass:t.fadeInClass})})}function Cm(t,l){let d=V=>{let i=V.rootBounds?V.rootBounds.top:0;V.boundingClientRect.top<i&&!V.isIntersecting||Nm(t,l.fadeInClass,Rt(V))};return t.classList.add(l.fadeInClass),et(t,d,{triggerPoint:"mostly visible"}),()=>Ot(t)}function Nm(t,l,d){cW(t,l,d)}function Ki(){fi()}var Pi=t=>`${t}px`;function UW(t){let{width:l,height:d,top:V}=t.getBoundingClientRect();Object.assign(t.style,{position:"fixed",top:Pi(V),width:Pi(l),height:Pi(d),overflowY:"scroll"})}function ZW(t){let l=parseInt(t.style.top,10);Object.assign(t.style,{position:"",top:"",width:"",height:"",overflowY:""}),window.scrollTo(0,-l)}function gW(){return s.getWidth()<900?"portrait":"landscape"}var _i=[],ol;function FW(){return ol||(ol=gW()),ol}function mW(t){_i.length===0&&Jm(),_i.push(t)}function IW(){let t=gW();t!==ol&&(ol=t,_i.forEach(l=>l(t)))}function Jm(){window.addEventListener("resize",IW,{passive:!0}),window.addEventListener("orientationchange",IW,{passive:!0})}var pl="ReplayButton",hm={unmuteAndReplay:"Unmute & Replay Video",replay:"Replay Video"},T={nowPlaying:[],nowPaused:[],volumeHasBeenInteractedWith:!1,firstVideoWithVolumeInteraction:null,scrollListenerIsActive:!1,videoClosestToCenterY:null},BW=new IntersectionObserver(um,{root:null,rootMargin:"0px",threshold:.1});function $i(t){BW.unobserve(t)}function tn(t){BW.observe(t)}function oW(t,l,d){t.dataset.autoplay="true",t.dataset.id=l,t.preload="auto",t.defaultMuted=!0,t.muted=!0,t.classList.remove("video-play");let[V]=Tt(t,d);t.src=V,t.load()}function pW(t,l,d){if(t.controls=!0,t.addEventListener("volumechange",xW),d){let V=document.createElement("button");V.textContent=hm[d],V.classList.add(pl,d),l.append(V),l.addEventListener("click",({target:i})=>{i.classList.contains(pl)&&Xm(t)})}}function Xm(t){t.currentTime=0,t.muted=!1,t.play()}function xW({target:t}){if(T.volumeHasBeenInteractedWith)t.dataset.id!==T.firstVideoWithVolumeInteraction&&(T.firstVideoWithVolumeInteraction=null,document.querySelectorAll("video[data-controls=true]").forEach(d=>d.removeEventListener("volumechange",xW)));else{T.volumeHasBeenInteractedWith=!0,T.firstVideoWithVolumeInteraction=t.dataset.id,document.querySelectorAll(`.${pl}`).forEach(d=>d.remove());let l=document.querySelectorAll("video[data-controls=true]");sm(l)}ln()}function um(t){for(let l of t){let{target:d,isIntersecting:V}=l,i=d.querySelector("video"),n=i.dataset.id;V?i.play():(T.nowPlaying.includes(n)&&(T.nowPlaying=T.nowPlaying.filter(b=>b!==n)),i.pause())}}function QW(t,l,d){let V=t.dataset.id;d&&(T.nowPlaying.push(V),ln(),T.nowPaused.includes(V)&&(tn(l),T.nowPaused=T.nowPaused.filter(i=>i!==V)))}function CW(t,l){let d=t.dataset.id;T.nowPlaying.includes(d)&&($i(l),T.nowPaused.push(d),T.nowPlaying=T.nowPlaying.filter(V=>V!==d)),ln()}function ln(){if(T.volumeHasBeenInteractedWith)if(T.nowPlaying.length>1){if(!T.scrollListenerIsActive)if(document.addEventListener("scroll",qi),T.scrollListenerIsActive=!0,T.firstVideoWithVolumeInteraction){let t=document.querySelector(`[data-id="${T.firstVideoWithVolumeInteraction}"]`);NW(t)}else qi()}else document.removeEventListener("scroll",qi),T.scrollListenerIsActive=!1,T.videoClosestToCenterY=null}function NW(t){JW(t);for(let l of T.nowPlaying)if(l!==t.dataset.id){let d=document.querySelector(`[data-id="${l}"]`);d.muted=!0}}function sm(t){t.forEach(l=>JW(l))}function JW(t){t.muted=!1}function qi(){let t=null,l=null;for(let d=0;d<T.nowPlaying.length;d++){let V=document.querySelector(`[data-id="${T.nowPlaying[d]}"]`),i=rm(V);(t===null||i<=l)&&(t=T.nowPlaying[d],l=i)}if(T.videoClosestToCenterY!==t){T.videoClosestToCenterY=t;let d=document.querySelector(`[data-id="${T.videoClosestToCenterY}"]`);NW(d)}}function rm(t){let l=Tm(),d=Ym(t);return Math.abs(l-d)}function Ym(t){let{top:l,bottom:d}=t.getBoundingClientRect();return(l+d)/2}function Tm(){return window.innerHeight/2}var Sm="[data-videoplayer-youtube]",km='[data-projection="360"]',Mm="__YOUTUBE_API_SCRIPT__",pd={whenApiReady:!1,players:[]};function Hm(t){o('script[src="//www.youtube.com/player_api"]').length>0||(pd.whenApiReady||(pd.whenApiReady=new Promise((l,d)=>{window.onYouTubeIframeAPIReady=()=>l();let V=document.createElement("script");V.src="//www.youtube.com/player_api",V.id=Mm,V.async=!0;let i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(V,i)})),pd.whenApiReady.then(t))}function Em(t){return{[YT.PlayerState.PLAYING]:"play",[YT.PlayerState.PAUSED]:"pause",[YT.PlayerState.ENDED]:"end"}[t.data]}function Am(t){let l=t.getAttribute("data-video-id");return new YT.Player(t,{videoId:l,playerVars:{rel:0},events:{onStateChange(V){if(V.data===YT.PlayerState.PLAYING){let n=V.target,b=n.pauseVideo.bind(n);vt(b,n.getIframe())()}let i=Em(V);i&&ym(i,V.target)}}})}function ym(t,l){let d=l.getVideoData(),V=`${d.title} (${d.video_id})`;It("Videos",t,V)}function zm(t){t.forEach(l=>{let d=l.getAttribute("data-video-id"),V=l.parentElement,i=document.createElement("div"),n=document.createElement("a");l.removeAttribute("data-videoplayer-youtube"),V.style.backgroundImage="url('https://img.youtube.com/vi/"+d+"/maxresdefault.jpg')",V.style.backgroundSize="cover",n.setAttribute("href","http://www.youtube.com/watch?v="+d),n.setAttribute("target","_blank"),n.className="Theme-360Video-Link",V.parentNode.insertBefore(n,V),n.appendChild(V),n.appendChild(i),i.innerText="Tap to view 360 video",i.className="Theme-360Video-Button"})}function dn(t=Sm,l=km){let d=o(l);j().isiOS&&zm(d);let V=o(t);V.length!==0&&Hm(()=>{pd.players=V.map(Am)})}var{isSafari:Lm}=j(),wm=`<svg xmlns="http://www.w3.org/2000/svg">
  <symbol id="video-play-icon" viewBox="0 0 18 18"><path d="M15.562 8.1L3.87.225C3.052-.337 2 .225 2 1.125v15.75c0 .9 1.052 1.462 1.87.9L15.563 9.9c.584-.45.584-1.35 0-1.8z"/></symbol>
  <symbol id="video-error-icon" viewBox="0 0 24 24"><path d="M21.171,15.398l-5.912-9.854C14.483,4.251,13.296,3.511,12,3.511s-2.483,0.74-3.259,2.031l-5.912,9.856  c-0.786,1.309-0.872,2.705-0.235,3.83C3.23,20.354,4.472,21,6,21h12c1.528,0,2.77-0.646,3.406-1.771  C22.043,18.104,21.957,16.708,21.171,15.398z M12,17.549c-0.854,0-1.55-0.695-1.55-1.549c0-0.855,0.695-1.551,1.55-1.551  s1.55,0.696,1.55,1.551C13.55,16.854,12.854,17.549,12,17.549z M13.633,10.125c-0.011,0.031-1.401,3.468-1.401,3.468  c-0.038,0.094-0.13,0.156-0.231,0.156s-0.193-0.062-0.231-0.156l-1.391-3.438C10.289,9.922,10.25,9.712,10.25,9.5  c0-0.965,0.785-1.75,1.75-1.75s1.75,0.785,1.75,1.75C13.75,9.712,13.711,9.922,13.633,10.125z"/></symbol>
 </svg>`;function Om(t,l,d){let V=!0,i=!1,n=null,b=null,a=null,G=d,{dataset:{autoplay:e,controls:R,replayButton:W,id:c},loop:I}=l,B=e==="true",U=R==="true",Z=B?U:l.controls;B&&(oW(l,c,d),U?pW(l,t,W):(l.controls=!1,t.style.pointerEvents="none"),I||l.addEventListener("ended",()=>$i(t)),tn(t)),x(d),l.controls=!1;function m(){V&&(V=!1,N("video-stopped"),t.removeAttribute("data-lazyload-video"))}function x(h){let A=l.getAttribute(`data-${h}-poster`);if(A&&A!==l.poster){let tt=function(){a===E&&(l.poster=A,m())},E=document.createElement("img");E.addEventListener("load",tt),E.addEventListener("error",tt),E.src=A,a=E}else m()}function C(h){if(G=h,l.src){let[A]=Tt(l,h);A&&A!==l.src&&(i&&(l.pause(),i=!1),Q(),V||N("video-stopped"),l.src=A)}x(h)}function N(h){t.classList.remove("video-stopped","video-paused","video-playing","video-loading","video-error"),t.classList.add(h)}function p(){n===null&&(n=document.createElement("div"),n.className="Lazyload__spinner Theme-Lazyload-Spinner",t.appendChild(n))}function F(){return n!==null?(n.remove(),n=null,!0):!1}function X(){if(b===null){b=document.createElement("div"),b.className="video-error-container",b.innerHTML='<div class="video-error-block"><svg><use xlink:href="#video-error-icon"/></svg><span>THERE WAS AN ERROR LOADING THIS VIDEO</span></div>',t.appendChild(b);let h=t.querySelector(`.${pl}`);h&&h.remove()}}function Q(){return b!==null?(b.remove(),b=null,!0):!1}function S(){if(l.readyState===0){if(n===null){p(),N("video-loading");let[h,A]=Tt(l,G);if(Lm){let E=function(){l.removeEventListener("canplay",E),A!=="video/mp4"?setTimeout(()=>{l.play()},1e3):l.play()};l.addEventListener("canplay",E),l.src=h,l.load()}else l.autoplay=!0,l.src=h}}else l.play().catch()}function H(h){i||(h.preventDefault(),S(),t.removeEventListener("click",H))}l.addEventListener("play",()=>{B&&QW(l,t,U)}),l.addEventListener("error",()=>{F()&&(X(),N("video-error"))}),l.addEventListener("pause",()=>{N("video-paused"),i=!1,CW(l,t),It("Videos","pause",l.currentSrc)}),l.addEventListener("playing",()=>{Q(),F(),N("video-playing"),B||vt(l.pause.bind(l),l)(),i=!0,l.controls=Z,It("Videos","play",l.currentSrc)}),l.addEventListener("ended",()=>{N("video-paused"),i=!1,It("Videos","ended",l.currentSrc)}),t.addEventListener("click",H);let u=document.documentElement,r=t.closest("[class*='Layer--']");l.addEventListener("fullscreenchange",()=>{document.fullscreenElement===null?(ZW(u),r.classList.remove("Levels--god")):(UW(u),r.classList.add("Levels--god"))}),mW(C)}function Vn(t={}){if(t.body&&!t.iconUrl){let i=new DOMParser().parseFromString(wm,"image/svg+xml"),n=document.createElement("div");n.style.display="none",n.id="__PLYR_SVGICON_CONTAINER__",n.appendChild(i.childNodes[0]),t.body.appendChild(n)}let l=o("[data-videoplayer]"),d=FW();l.forEach(V=>{let i=V.querySelector("[data-videoplayer-media]");i&&Om(V,i,d)}),dn()}Wi();EV();$l();Qi();OV();Wl();Li();id();Zi();vi();gi();Ki();oi();ui();pi();Ai();Bd();Vn({body:document.body});ni();Ei();YV();ji();Ri();PV();Hi();yi();Ci();Fi();LV();Ni();wi();})();
/*! Bundled license information:

classnames/dedupe.js:
  (*!
  	Copyright (c) 2018 Jed Watson.
  	Licensed under the MIT License (MIT), see
  	http://jedwatson.github.io/classnames
  *)
*/
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="75e20e75-b9b3-597d-9ffe-2718b82c9b9e")}catch(e){}}();
//# sourceMappingURL=story.315540.min.js.map
//# debugId=75e20e75-b9b3-597d-9ffe-2718b82c9b9e
