(()=>{var xW=Object.create;var od=Object.defineProperty,QW=Object.defineProperties,CW=Object.getOwnPropertyDescriptor,JW=Object.getOwnPropertyDescriptors,NW=Object.getOwnPropertyNames,bn=Object.getOwnPropertySymbols,hW=Object.getPrototypeOf,Gn=Object.prototype.hasOwnProperty,XW=Object.prototype.propertyIsEnumerable;var an=(t,l,d)=>l in t?od(t,l,{enumerable:!0,configurable:!0,writable:!0,value:d}):t[l]=d,$=(t,l)=>{for(var d in l||(l={}))Gn.call(l,d)&&an(t,d,l[d]);if(bn)for(var d of bn(l))XW.call(l,d)&&an(t,d,l[d]);return t},Rn=(t,l)=>QW(t,JW(l));var g=(t,l)=>()=>(l||t((l={exports:{}}).exports,l),l.exports);var uW=(t,l,d,V)=>{if(l&&typeof l=="object"||typeof l=="function")for(let i of NW(l))!Gn.call(t,i)&&i!==d&&od(t,i,{get:()=>l[i],enumerable:!(V=CW(l,i))||V.enumerable});return t};var k=(t,l,d)=>(d=t!=null?xW(hW(t)):{},uW(l||!t||!t.__esModule?od(d,"default",{value:t,enumerable:!0}):d,t));var tt=g((Jm,Wn)=>{var Jl=function(t){return t&&t.Math==Math&&t};Wn.exports=Jl(typeof globalThis=="object"&&globalThis)||Jl(typeof window=="object"&&window)||Jl(typeof self=="object"&&self)||Jl(typeof global=="object"&&global)||function(){return this}()||Function("return this")()});var lt=g((Nm,cn)=>{cn.exports=function(t){try{return!!t()}catch(l){return!0}}});var ct=g((hm,Un)=>{var sW=lt();Un.exports=!sW(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var Nl=g((Xm,Zn)=>{var rW=lt();Zn.exports=!rW(function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")})});var Xl=g((um,In)=>{var YW=Nl(),hl=Function.prototype.call;In.exports=YW?hl.bind(hl):function(){return hl.apply(hl,arguments)}});var Bn=g(mn=>{"use strict";var Fn={}.propertyIsEnumerable,gn=Object.getOwnPropertyDescriptor,TW=gn&&!Fn.call({1:2},1);mn.f=TW?function(l){var d=gn(this,l);return!!d&&d.enumerable}:Fn});var xd=g((rm,pn)=>{pn.exports=function(t,l){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:l}}});var v=g((Ym,Qn)=>{var on=Nl(),xn=Function.prototype,Qd=xn.call,SW=on&&xn.bind.bind(Qd,Qd);Qn.exports=on?SW:function(t){return function(){return Qd.apply(t,arguments)}}});var Mt=g((Tm,Jn)=>{var Cn=v(),kW=Cn({}.toString),MW=Cn("".slice);Jn.exports=function(t){return MW(kW(t),8,-1)}});var hn=g((Sm,Nn)=>{var HW=v(),EW=lt(),AW=Mt(),Cd=Object,yW=HW("".split);Nn.exports=EW(function(){return!Cd("z").propertyIsEnumerable(0)})?function(t){return AW(t)=="String"?yW(t,""):Cd(t)}:Cd});var Jd=g((km,Xn)=>{Xn.exports=function(t){return t==null}});var Ht=g((Mm,un)=>{var zW=Jd(),LW=TypeError;un.exports=function(t){if(zW(t))throw LW("Can't call method on "+t);return t}});var jt=g((Hm,sn)=>{var wW=hn(),OW=Ht();sn.exports=function(t){return wW(OW(t))}});var hd=g((Em,rn)=>{var Nd=typeof document=="object"&&document.all,DW=typeof Nd=="undefined"&&Nd!==void 0;rn.exports={all:Nd,IS_HTMLDDA:DW}});var P=g((Am,Tn)=>{var Yn=hd(),jW=Yn.all;Tn.exports=Yn.IS_HTMLDDA?function(t){return typeof t=="function"||t===jW}:function(t){return typeof t=="function"}});var Ft=g((ym,Mn)=>{var Sn=P(),kn=hd(),vW=kn.all;Mn.exports=kn.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:Sn(t)||t===vW}:function(t){return typeof t=="object"?t!==null:Sn(t)}});var Et=g((zm,Hn)=>{var Xd=tt(),fW=P(),KW=function(t){return fW(t)?t:void 0};Hn.exports=function(t,l){return arguments.length<2?KW(Xd[t]):Xd[t]&&Xd[t][l]}});var An=g((Lm,En)=>{var PW=v();En.exports=PW({}.isPrototypeOf)});var ud=g((wm,yn)=>{var _W=Et();yn.exports=_W("navigator","userAgent")||""});var vn=g((Om,jn)=>{var Dn=tt(),sd=ud(),zn=Dn.process,Ln=Dn.Deno,wn=zn&&zn.versions||Ln&&Ln.version,On=wn&&wn.v8,dt,ul;On&&(dt=On.split("."),ul=dt[0]>0&&dt[0]<4?1:+(dt[0]+dt[1]));!ul&&sd&&(dt=sd.match(/Edge\/(\d+)/),(!dt||dt[1]>=74)&&(dt=sd.match(/Chrome\/(\d+)/),dt&&(ul=+dt[1])));jn.exports=ul});var rd=g((Dm,Kn)=>{var fn=vn(),qW=lt();Kn.exports=!!Object.getOwnPropertySymbols&&!qW(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&fn&&fn<41})});var Yd=g((jm,Pn)=>{var $W=rd();Pn.exports=$W&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Td=g((vm,_n)=>{var t0=Et(),l0=P(),d0=An(),V0=Yd(),i0=Object;_n.exports=V0?function(t){return typeof t=="symbol"}:function(t){var l=t0("Symbol");return l0(l)&&d0(l.prototype,i0(t))}});var $n=g((fm,qn)=>{var n0=String;qn.exports=function(t){try{return n0(t)}catch(l){return"Object"}}});var sl=g((Km,te)=>{var e0=P(),b0=$n(),a0=TypeError;te.exports=function(t){if(e0(t))return t;throw a0(b0(t)+" is not a function")}});var de=g((Pm,le)=>{var G0=sl(),R0=Jd();le.exports=function(t,l){var d=t[l];return R0(d)?void 0:G0(d)}});var ie=g((_m,Ve)=>{var Sd=Xl(),kd=P(),Md=Ft(),W0=TypeError;Ve.exports=function(t,l){var d,V;if(l==="string"&&kd(d=t.toString)&&!Md(V=Sd(d,t))||kd(d=t.valueOf)&&!Md(V=Sd(d,t))||l!=="string"&&kd(d=t.toString)&&!Md(V=Sd(d,t)))return V;throw W0("Can't convert object to primitive value")}});var ee=g((qm,ne)=>{ne.exports=!1});var rl=g(($m,ae)=>{var be=tt(),c0=Object.defineProperty;ae.exports=function(t,l){try{c0(be,t,{value:l,configurable:!0,writable:!0})}catch(d){be[t]=l}return l}});var Yl=g((t1,Re)=>{var U0=tt(),Z0=rl(),Ge="__core-js_shared__",I0=U0[Ge]||Z0(Ge,{});Re.exports=I0});var Hd=g((l1,ce)=>{var F0=ee(),We=Yl();(ce.exports=function(t,l){return We[t]||(We[t]=l!==void 0?l:{})})("versions",[]).push({version:"3.27.1",mode:F0?"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 Ed=g((d1,Ue)=>{var g0=Ht(),m0=Object;Ue.exports=function(t){return m0(g0(t))}});var gt=g((V1,Ze)=>{var B0=v(),p0=Ed(),o0=B0({}.hasOwnProperty);Ze.exports=Object.hasOwn||function(l,d){return o0(p0(l),d)}});var Ad=g((i1,Ie)=>{var x0=v(),Q0=0,C0=Math.random(),J0=x0(1 .toString);Ie.exports=function(t){return"Symbol("+(t===void 0?"":t)+")_"+J0(++Q0+C0,36)}});var mt=g((n1,pe)=>{var N0=tt(),h0=Hd(),Fe=gt(),X0=Ad(),ge=rd(),Be=Yd(),At=h0("wks"),ht=N0.Symbol,me=ht&&ht.for,u0=Be?ht:ht&&ht.withoutSetter||X0;pe.exports=function(t){if(!Fe(At,t)||!(ge||typeof At[t]=="string")){var l="Symbol."+t;ge&&Fe(ht,t)?At[t]=ht[t]:Be&&me?At[t]=me(l):At[t]=u0(l)}return At[t]}});var Ce=g((e1,Qe)=>{var s0=Xl(),oe=Ft(),xe=Td(),r0=de(),Y0=ie(),T0=mt(),S0=TypeError,k0=T0("toPrimitive");Qe.exports=function(t,l){if(!oe(t)||xe(t))return t;var d=r0(t,k0),V;if(d){if(l===void 0&&(l="default"),V=s0(d,t,l),!oe(V)||xe(V))return V;throw S0("Can't convert object to primitive value")}return l===void 0&&(l="number"),Y0(t,l)}});var yd=g((b1,Je)=>{var M0=Ce(),H0=Td();Je.exports=function(t){var l=M0(t,"string");return H0(l)?l:l+""}});var Ld=g((a1,he)=>{var E0=tt(),Ne=Ft(),zd=E0.document,A0=Ne(zd)&&Ne(zd.createElement);he.exports=function(t){return A0?zd.createElement(t):{}}});var wd=g((G1,Xe)=>{var y0=ct(),z0=lt(),L0=Ld();Xe.exports=!y0&&!z0(function(){return Object.defineProperty(L0("div"),"a",{get:function(){return 7}}).a!=7})});var Od=g(se=>{var w0=ct(),O0=Xl(),D0=Bn(),j0=xd(),v0=jt(),f0=yd(),K0=gt(),P0=wd(),ue=Object.getOwnPropertyDescriptor;se.f=w0?ue:function(l,d){if(l=v0(l),d=f0(d),P0)try{return ue(l,d)}catch(V){}if(K0(l,d))return j0(!O0(D0.f,l,d),l[d])}});var Dd=g((W1,re)=>{var _0=ct(),q0=lt();re.exports=_0&&q0(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})});var vt=g((c1,Ye)=>{var $0=Ft(),tc=String,lc=TypeError;Ye.exports=function(t){if($0(t))return t;throw lc(tc(t)+" is not an object")}});var yt=g(Se=>{var dc=ct(),Vc=wd(),ic=Dd(),Tl=vt(),Te=yd(),nc=TypeError,jd=Object.defineProperty,ec=Object.getOwnPropertyDescriptor,vd="enumerable",fd="configurable",Kd="writable";Se.f=dc?ic?function(l,d,V){if(Tl(l),d=Te(d),Tl(V),typeof l=="function"&&d==="prototype"&&"value"in V&&Kd in V&&!V[Kd]){var i=ec(l,d);i&&i[Kd]&&(l[d]=V.value,V={configurable:fd in V?V[fd]:i[fd],enumerable:vd in V?V[vd]:i[vd],writable:!1})}return jd(l,d,V)}:jd:function(l,d,V){if(Tl(l),d=Te(d),Tl(V),Vc)try{return jd(l,d,V)}catch(i){}if("get"in V||"set"in V)throw nc("Accessors not supported");return"value"in V&&(l[d]=V.value),l}});var Pd=g((Z1,ke)=>{var bc=ct(),ac=yt(),Gc=xd();ke.exports=bc?function(t,l,d){return ac.f(t,l,Gc(1,d))}:function(t,l,d){return t[l]=d,t}});var Ee=g((I1,He)=>{var _d=ct(),Rc=gt(),Me=Function.prototype,Wc=_d&&Object.getOwnPropertyDescriptor,qd=Rc(Me,"name"),cc=qd&&function(){}.name==="something",Uc=qd&&(!_d||_d&&Wc(Me,"name").configurable);He.exports={EXISTS:qd,PROPER:cc,CONFIGURABLE:Uc}});var tV=g((F1,Ae)=>{var Zc=v(),Ic=P(),$d=Yl(),Fc=Zc(Function.toString);Ic($d.inspectSource)||($d.inspectSource=function(t){return Fc(t)});Ae.exports=$d.inspectSource});var Le=g((g1,ze)=>{var gc=tt(),mc=P(),ye=gc.WeakMap;ze.exports=mc(ye)&&/native code/.test(String(ye))});var lV=g((m1,Oe)=>{var Bc=Hd(),pc=Ad(),we=Bc("keys");Oe.exports=function(t){return we[t]||(we[t]=pc(t))}});var Sl=g((B1,De)=>{De.exports={}});var Ke=g((p1,fe)=>{var oc=Le(),ve=tt(),xc=Ft(),Qc=Pd(),dV=gt(),VV=Yl(),Cc=lV(),Jc=Sl(),je="Object already initialized",iV=ve.TypeError,Nc=ve.WeakMap,kl,ft,Ml,hc=function(t){return Ml(t)?ft(t):kl(t,{})},Xc=function(t){return function(l){var d;if(!xc(l)||(d=ft(l)).type!==t)throw iV("Incompatible receiver, "+t+" required");return d}};oc||VV.state?(Vt=VV.state||(VV.state=new Nc),Vt.get=Vt.get,Vt.has=Vt.has,Vt.set=Vt.set,kl=function(t,l){if(Vt.has(t))throw iV(je);return l.facade=t,Vt.set(t,l),l},ft=function(t){return Vt.get(t)||{}},Ml=function(t){return Vt.has(t)}):(Xt=Cc("state"),Jc[Xt]=!0,kl=function(t,l){if(dV(t,Xt))throw iV(je);return l.facade=t,Qc(t,Xt,l),l},ft=function(t){return dV(t,Xt)?t[Xt]:{}},Ml=function(t){return dV(t,Xt)});var Vt,Xt;fe.exports={set:kl,get:ft,has:Ml,enforce:hc,getterFor:Xc}});var qe=g((o1,_e)=>{var uc=lt(),sc=P(),Hl=gt(),nV=ct(),rc=Ee().CONFIGURABLE,Yc=tV(),Pe=Ke(),Tc=Pe.enforce,Sc=Pe.get,El=Object.defineProperty,kc=nV&&!uc(function(){return El(function(){},"length",{value:8}).length!==8}),Mc=String(String).split("String"),Hc=_e.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),(!Hl(t,"name")||rc&&t.name!==l)&&(nV?El(t,"name",{value:l,configurable:!0}):t.name=l),kc&&d&&Hl(d,"arity")&&t.length!==d.arity&&El(t,"length",{value:d.arity});try{d&&Hl(d,"constructor")&&d.constructor?nV&&El(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var V=Tc(t);return Hl(V,"source")||(V.source=Mc.join(typeof l=="string"?l:"")),t};Function.prototype.toString=Hc(function(){return sc(this)&&Sc(this).source||Yc(this)},"toString")});var tb=g((x1,$e)=>{var Ec=P(),Ac=yt(),yc=qe(),zc=rl();$e.exports=function(t,l,d,V){V||(V={});var i=V.enumerable,n=V.name!==void 0?V.name:l;if(Ec(d)&&yc(d,n,V),V.global)i?t[l]=d:zc(l,d);else{try{V.unsafe?t[l]&&(i=!0):delete t[l]}catch(b){}i?t[l]=d:Ac.f(t,l,{value:d,enumerable:!1,configurable:!V.nonConfigurable,writable:!V.nonWritable})}return t}});var db=g((Q1,lb)=>{var Lc=Math.ceil,wc=Math.floor;lb.exports=Math.trunc||function(l){var d=+l;return(d>0?wc:Lc)(d)}});var Al=g((C1,Vb)=>{var Oc=db();Vb.exports=function(t){var l=+t;return l!==l||l===0?0:Oc(l)}});var nb=g((J1,ib)=>{var Dc=Al(),jc=Math.max,vc=Math.min;ib.exports=function(t,l){var d=Dc(t);return d<0?jc(d+l,0):vc(d,l)}});var eV=g((N1,eb)=>{var fc=Al(),Kc=Math.min;eb.exports=function(t){return t>0?Kc(fc(t),9007199254740991):0}});var yl=g((h1,bb)=>{var Pc=eV();bb.exports=function(t){return Pc(t.length)}});var bV=g((X1,Gb)=>{var _c=jt(),qc=nb(),$c=yl(),ab=function(t){return function(l,d,V){var i=_c(l),n=$c(i),b=qc(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}};Gb.exports={includes:ab(!0),indexOf:ab(!1)}});var GV=g((u1,Wb)=>{var tU=v(),aV=gt(),lU=jt(),dU=bV().indexOf,VU=Sl(),Rb=tU([].push);Wb.exports=function(t,l){var d=lU(t),V=0,i=[],n;for(n in d)!aV(VU,n)&&aV(d,n)&&Rb(i,n);for(;l.length>V;)aV(d,n=l[V++])&&(~dU(i,n)||Rb(i,n));return i}});var zl=g((s1,cb)=>{cb.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Zb=g(Ub=>{var iU=GV(),nU=zl(),eU=nU.concat("length","prototype");Ub.f=Object.getOwnPropertyNames||function(l){return iU(l,eU)}});var Fb=g(Ib=>{Ib.f=Object.getOwnPropertySymbols});var mb=g((T1,gb)=>{var bU=Et(),aU=v(),GU=Zb(),RU=Fb(),WU=vt(),cU=aU([].concat);gb.exports=bU("Reflect","ownKeys")||function(l){var d=GU.f(WU(l)),V=RU.f;return V?cU(d,V(l)):d}});var ob=g((S1,pb)=>{var Bb=gt(),UU=mb(),ZU=Od(),IU=yt();pb.exports=function(t,l,d){for(var V=UU(l),i=IU.f,n=ZU.f,b=0;b<V.length;b++){var a=V[b];!Bb(t,a)&&!(d&&Bb(d,a))&&i(t,a,n(l,a))}}});var Qb=g((k1,xb)=>{var FU=lt(),gU=P(),mU=/#|\.prototype\./,Kt=function(t,l){var d=pU[BU(t)];return d==xU?!0:d==oU?!1:gU(l)?FU(l):!!l},BU=Kt.normalize=function(t){return String(t).replace(mU,".").toLowerCase()},pU=Kt.data={},oU=Kt.NATIVE="N",xU=Kt.POLYFILL="P";xb.exports=Kt});var Pt=g((M1,Cb)=>{var RV=tt(),QU=Od().f,CU=Pd(),JU=tb(),NU=rl(),hU=ob(),XU=Qb();Cb.exports=function(t,l){var d=t.target,V=t.global,i=t.stat,n,b,a,G,e,R;if(V?b=RV:i?b=RV[d]||NU(d,{}):b=(RV[d]||{}).prototype,b)for(a in l){if(e=l[a],t.dontCallGetSet?(R=QU(b,a),G=R&&R.value):G=b[a],n=XU(V?a:d+(i?".":"#")+a,t.forced),!n&&G!==void 0){if(typeof e==typeof G)continue;hU(e,G)}(t.sham||G&&G.sham)&&CU(e,"sham",!0),JU(b,a,e,t)}}});var WV=g((H1,Jb)=>{var uU=Mt();Jb.exports=Array.isArray||function(l){return uU(l)=="Array"}});var hb=g((E1,Nb)=>{var sU=TypeError,rU=9007199254740991;Nb.exports=function(t){if(t>rU)throw sU("Maximum allowed index exceeded");return t}});var ub=g((A1,Xb)=>{var YU=Mt(),TU=v();Xb.exports=function(t){if(YU(t)==="Function")return TU(t)}});var Yb=g((y1,rb)=>{var sb=ub(),SU=sl(),kU=Nl(),MU=sb(sb.bind);rb.exports=function(t,l){return SU(t),l===void 0?t:kU?MU(t,l):function(){return t.apply(l,arguments)}}});var kb=g((z1,Sb)=>{"use strict";var HU=WV(),EU=yl(),AU=hb(),yU=Yb(),Tb=function(t,l,d,V,i,n,b,a){for(var G=i,e=0,R=b?yU(b,a):!1,W,c;e<V;)e in d&&(W=R?R(d[e],e,l):d[e],n>0&&HU(W)?(c=EU(W),G=Tb(t,l,W,c,G,n-1)-1):(AU(G+1),t[G]=W),G++),e++;return G};Sb.exports=Tb});var Eb=g((L1,Hb)=>{var zU=mt(),LU=zU("toStringTag"),Mb={};Mb[LU]="z";Hb.exports=String(Mb)==="[object z]"});var cV=g((w1,Ab)=>{var wU=Eb(),OU=P(),Ll=Mt(),DU=mt(),jU=DU("toStringTag"),vU=Object,fU=Ll(function(){return arguments}())=="Arguments",KU=function(t,l){try{return t[l]}catch(d){}};Ab.exports=wU?Ll:function(t){var l,d,V;return t===void 0?"Undefined":t===null?"Null":typeof(d=KU(l=vU(t),jU))=="string"?d:fU?Ll(l):(V=Ll(l))=="Object"&&OU(l.callee)?"Arguments":V}});var Db=g((O1,Ob)=>{var PU=v(),_U=lt(),yb=P(),qU=cV(),$U=Et(),tZ=tV(),zb=function(){},lZ=[],Lb=$U("Reflect","construct"),UV=/^\s*(?:class|function)\b/,dZ=PU(UV.exec),VZ=!UV.exec(zb),_t=function(l){if(!yb(l))return!1;try{return Lb(zb,lZ,l),!0}catch(d){return!1}},wb=function(l){if(!yb(l))return!1;switch(qU(l)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return VZ||!!dZ(UV,tZ(l))}catch(d){return!0}};wb.sham=!0;Ob.exports=!Lb||_U(function(){var t;return _t(_t.call)||!_t(Object)||!_t(function(){t=!0})||t})?wb:_t});var Kb=g((D1,fb)=>{var jb=WV(),iZ=Db(),nZ=Ft(),eZ=mt(),bZ=eZ("species"),vb=Array;fb.exports=function(t){var l;return jb(t)&&(l=t.constructor,iZ(l)&&(l===vb||jb(l.prototype))?l=void 0:nZ(l)&&(l=l[bZ],l===null&&(l=void 0))),l===void 0?vb:l}});var _b=g((j1,Pb)=>{var aZ=Kb();Pb.exports=function(t,l){return new(aZ(t))(l===0?0:l)}});var qb=g(()=>{"use strict";var GZ=Pt(),RZ=kb(),WZ=sl(),cZ=Ed(),UZ=yl(),ZZ=_b();GZ({target:"Array",proto:!0},{flatMap:function(l){var d=cZ(this),V=UZ(d),i;return WZ(l),i=ZZ(d,0),i.length=RZ(i,d,d,V,0,1,l,arguments.length>1?arguments[1]:void 0),i}})});var ta=g((K1,$b)=>{var IZ=GV(),FZ=zl();$b.exports=Object.keys||function(l){return IZ(l,FZ)}});var da=g(la=>{var gZ=ct(),mZ=Dd(),BZ=yt(),pZ=vt(),oZ=jt(),xZ=ta();la.f=gZ&&!mZ?Object.defineProperties:function(l,d){pZ(l);for(var V=oZ(d),i=xZ(d),n=i.length,b=0,a;n>b;)BZ.f(l,a=i[b++],V[a]);return l}});var ia=g((_1,Va)=>{var QZ=Et();Va.exports=QZ("document","documentElement")});var ca=g((q1,Wa)=>{var CZ=vt(),JZ=da(),na=zl(),NZ=Sl(),hZ=ia(),XZ=Ld(),uZ=lV(),ea=">",ba="<",IV="prototype",FV="script",Ga=uZ("IE_PROTO"),ZV=function(){},Ra=function(t){return ba+FV+ea+t+ba+"/"+FV+ea},aa=function(t){t.write(Ra("")),t.close();var l=t.parentWindow.Object;return t=null,l},sZ=function(){var t=XZ("iframe"),l="java"+FV+":",d;return t.style.display="none",hZ.appendChild(t),t.src=String(l),d=t.contentWindow.document,d.open(),d.write(Ra("document.F=Object")),d.close(),d.F},wl,Ol=function(){try{wl=new ActiveXObject("htmlfile")}catch(l){}Ol=typeof document!="undefined"?document.domain&&wl?aa(wl):sZ():aa(wl);for(var t=na.length;t--;)delete Ol[IV][na[t]];return Ol()};NZ[Ga]=!0;Wa.exports=Object.create||function(l,d){var V;return l!==null?(ZV[IV]=CZ(l),V=new ZV,ZV[IV]=null,V[Ga]=l):V=Ol(),d===void 0?V:JZ.f(V,d)}});var BV=g(($1,Ua)=>{var rZ=mt(),YZ=ca(),TZ=yt().f,gV=rZ("unscopables"),mV=Array.prototype;mV[gV]==null&&TZ(mV,gV,{configurable:!0,value:YZ(null)});Ua.exports=function(t){mV[gV][t]=!0}});var Za=g(()=>{var SZ=BV();SZ("flatMap")});var qt=g((dB,Ia)=>{var kZ=tt(),MZ=v();Ia.exports=function(t,l){return MZ(kZ[t].prototype[l])}});var ga=g((VB,Fa)=>{qb();Za();var HZ=qt();Fa.exports=HZ("Array","flatMap")});var Ba=g((iB,ma)=>{var EZ=ga();ma.exports=EZ});var oa=g((nB,pa)=>{var AZ=Ba();pa.exports=AZ});var xa=g(()=>{"use strict";var yZ=Pt(),zZ=bV().includes,LZ=lt(),wZ=BV(),OZ=LZ(function(){return!Array(1).includes()});yZ({target:"Array",proto:!0,forced:OZ},{includes:function(l){return zZ(this,l,arguments.length>1?arguments[1]:void 0)}});wZ("includes")});var Ca=g((aB,Qa)=>{xa();var DZ=qt();Qa.exports=DZ("Array","includes")});var Na=g((GB,Ja)=>{var jZ=Ca();Ja.exports=jZ});var Xa=g((RB,ha)=>{var vZ=Na();ha.exports=vZ});var sa=g((WB,ua)=>{var fZ=Ft(),KZ=Mt(),PZ=mt(),_Z=PZ("match");ua.exports=function(t){var l;return fZ(t)&&((l=t[_Z])!==void 0?!!l:KZ(t)=="RegExp")}});var Ya=g((cB,ra)=>{var qZ=sa(),$Z=TypeError;ra.exports=function(t){if(qZ(t))throw $Z("The method doesn't accept regular expressions");return t}});var Dl=g((UB,Ta)=>{var tI=cV(),lI=String;Ta.exports=function(t){if(tI(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return lI(t)}});var ka=g((ZB,Sa)=>{var dI=mt(),VI=dI("match");Sa.exports=function(t){var l=/./;try{"/./"[t](l)}catch(d){try{return l[VI]=!1,"/./"[t](l)}catch(V){}}return!1}});var Ha=g(()=>{"use strict";var iI=Pt(),nI=v(),eI=Ya(),bI=Ht(),Ma=Dl(),aI=ka(),GI=nI("".indexOf);iI({target:"String",proto:!0,forced:!aI("includes")},{includes:function(l){return!!~GI(Ma(bI(this)),Ma(eI(l)),arguments.length>1?arguments[1]:void 0)}})});var Aa=g((gB,Ea)=>{Ha();var RI=qt();Ea.exports=RI("String","includes")});var za=g((mB,ya)=>{var WI=Aa();ya.exports=WI});var wa=g((BB,La)=>{var cI=za();La.exports=cI});var Da=g((pB,Oa)=>{"use strict";var UI=Al(),ZI=Dl(),II=Ht(),FI=RangeError;Oa.exports=function(l){var d=ZI(II(this)),V="",i=UI(l);if(i<0||i==1/0)throw FI("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(d+=d))i&1&&(V+=d);return V}});var Pa=g((oB,Ka)=>{var fa=v(),gI=eV(),ja=Dl(),mI=Da(),BI=Ht(),pI=fa(mI),oI=fa("".slice),xI=Math.ceil,va=function(t){return function(l,d,V){var i=ja(BI(l)),n=gI(d),b=i.length,a=V===void 0?" ":ja(V),G,e;return n<=b||a==""?i:(G=n-b,e=pI(a,xI(G/a.length)),e.length>G&&(e=oI(e,0,G)),t?i+e:e+i)}};Ka.exports={start:va(!1),end:va(!0)}});var qa=g((xB,_a)=>{var QI=ud();_a.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(QI)});var $a=g(()=>{"use strict";var CI=Pt(),JI=Pa().start,NI=qa();CI({target:"String",proto:!0,forced:NI},{padStart:function(l){return JI(this,l,arguments.length>1?arguments[1]:void 0)}})});var lG=g((JB,tG)=>{$a();var hI=qt();tG.exports=hI("String","padStart")});var VG=g((NB,dG)=>{var XI=lG();dG.exports=XI});var nG=g((hB,iG)=>{var uI=VG();iG.exports=uI});var cG=g((sB,CV)=>{function QV(){}QV.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}};CV.exports=QV;CV.exports.TinyEmitter=QV});var j=g((rV,YV)=>{(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 YV=="object"&&(YV.exports=G)})(typeof window!="undefined"?window:typeof rV!="undefined"?rV:globalThis)});var TV=g((fB,pG)=>{pG.exports=qI;function qI(t,l,d){return l<d?t<l?l:t>d?d:t:t<d?d:t>l?l:t}});var SV=g(($B,vl)=>{(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 vl!="undefined"&&vl.exports?(t.default=t,vl.exports=t):window.classNames=t})()});var xG=g((oG,fl)=>{(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 fl!="undefined"&&fl.exports?fl.exports=i:(t.Sniffr=new i,t.Sniffr.sniff(navigator.userAgent))})(oG)});var zV=g((xp,hG)=>{hG.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 sG=g((up,uG)=>{var Vl,il;typeof document.hidden!="undefined"?(Vl="hidden",il="visibilitychange"):typeof document.mozHidden!="undefined"?(Vl="mozHidden",il="mozvisibilitychange"):typeof document.msHidden!="undefined"?(Vl="msHidden",il="msvisibilitychange"):typeof document.webkitHidden!="undefined"&&(Vl="webkitHidden",il="webkitvisibilitychange");uG.exports={hidden:Vl,visibilityChange:il}});var SG=g((el,OV)=>{(function(t,l){typeof el=="object"&&typeof OV=="object"?OV.exports=l():typeof el=="object"?el.StateMachine=l():t.StateMachine=l()})(el,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 ZR=g((UR,Fd)=>{(function(t,l){typeof Fd=="object"&&Fd.exports?Fd.exports=l():function d(){document&&document.body?t.zenscroll=l():setTimeout(d,9)}()})(UR,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,o,F){if(I(),o===0||o&&o<0||t(G.body))G.toY(N),F&&F();else{var h=G.getY(),Q=Math.max(0,N)-h,Y=new Date().getTime();o=o||Math.min(Math.abs(Q),e),function M(){c(setTimeout(function(){var u=Math.min(1,(new Date().getTime()-Y)/o),T=Math.max(0,Math.floor(h+Q*(u<.5?2*u*u:u*(4-u*2)-1)));G.toY(T),u<1&&G.getHeight()+T<G.body.scrollHeight?M():(setTimeout(I,99),F&&F())},9))}()}},Z=function(N,o,F){U(B(N),o,F)},m=function(N,o,F){var h=N.getBoundingClientRect().height,Q=G.getTopOf(N)+h,Y=G.getHeight(),M=G.getY(),u=M+Y;B(N)<M||h+R>Y?Z(N,o,F):Q+R>u?U(Q-Y+R,o,F):F&&F()},x=function(N,o,F,h){U(Math.max(0,G.getTopOf(N)-G.getHeight()/2+(F||N.getBoundingClientRect().height/2)),o,h)},C=function(N,o){return(N===0||N)&&(e=N),(o===0||o)&&(R=o),{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 Xi=g((PQ,oR)=>{"use strict";var Cg=oR.exports={};Cg.forEach=function(t,l){for(var d=0;d<t.length;d++){var V=l(t[d]);if(V)return V}}});var QR=g((_Q,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 JR=g((qQ,CR)=>{"use strict";CR.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 hR=g(($Q,NR)=>{"use strict";NR.exports=function(){var t=1;function l(){return t++}return{generate:l}}});var uR=g((tC,XR)=>{"use strict";XR.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 rR=g((lC,sR)=>{"use strict";sR.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 ui=g((dC,TR)=>{"use strict";var YR=TR.exports={};YR.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};YR.isLegacyOpera=function(){return!!window.opera}});var kR=g((VC,SR)=>{"use strict";var Jg=SR.exports={};Jg.getOption=Ng;function Ng(t,l,d){var V=t[l];return V==null&&d!==void 0?d:V}});var AR=g((iC,ER)=>{"use strict";var MR=kR();ER.exports=function(l){l=l||{};var d=l.reporter,V=MR.getOption(l,"async",!0),i=MR.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=HR(),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=HR(),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 HR(){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 LR=g((nC,zR)=>{"use strict";var si="_erd";function hg(t){return t[si]={},yR(t)}function yR(t){return t[si]}function Xg(t){delete t[si]}zR.exports={initState:hg,getState:yR,cleanState:Xg}});var OR=g((eC,wR)=>{"use strict";var gl=ui();wR.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(gl.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 o(){function F(){if(x.position==="static"){B.style.setProperty("position","relative",e.important?"important":"");var Y=function(M,u,T,s){function f(It){return It.replace(/[^-\d\.]/g,"")}var y=T[s];y!=="auto"&&f(y)!=="0"&&(M.warn("An element that is positioned static has style."+s+"="+y+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+s+" will be set to 0. Element: ",u),u.style.setProperty(s,"0",e.important?"important":""))};Y(l,B,x,"top"),Y(l,B,x,"right"),Y(l,B,x,"bottom"),Y(l,B,x,"left")}}function h(){m||F();function Y(u,T){if(!u.contentDocument){var s=V(u);s.checkForObjectDocumentTimeoutId&&window.clearTimeout(s.checkForObjectDocumentTimeoutId),s.checkForObjectDocumentTimeoutId=setTimeout(function(){s.checkForObjectDocumentTimeoutId=0,Y(u,T)},100);return}T(u.contentDocument)}var M=this;Y(M,function(T){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=h,gl.isIE()||(Q.data="about:blank"),V(B)&&(B.appendChild(Q),V(B).object=Q,gl.isIE()&&(Q.data="about:blank"))}d?d.add(o):o()}gl.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&&(gl.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 jR=g((bC,DR)=>{"use strict";var ug=Xi().forEach;DR.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(o){c(o,a,G)}e(window.document);function R(o){var F=t.important?" !important; ":"; ";return(o.join(F)+F).trim()}function W(){var o=500,F=500,h=document.createElement("div");h.style.cssText=R(["position: absolute","width: "+o*2+"px","height: "+F*2+"px","visibility: hidden","margin: 0","padding: 0"]);var Q=document.createElement("div");Q.style.cssText=R(["position: absolute","width: "+o+"px","height: "+F+"px","overflow: scroll","visibility: none","top: "+-o*3+"px","left: "+-F*3+"px","visibility: hidden","margin: 0","padding: 0"]),Q.appendChild(h),document.body.insertBefore(Q,document.body.firstChild);var Y=o-Q.clientWidth,M=F-Q.clientHeight;return document.body.removeChild(Q),{width:Y,height:M}}function c(o,F,h){function Q(T,s){s=s||function(y){o.head.appendChild(y)};var f=o.createElement("style");return f.innerHTML=T,f.id=F,s(f),f}if(!o.getElementById(F)){var Y=h+"_animation",M=h+"_animation_active",u=`/* Created by the element-resize-detector library. */
`;u+="."+h+" > div::-webkit-scrollbar { "+R(["display: none"])+` }

`,u+="."+M+" { "+R(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+Y,"animation-name: "+Y])+` }
`,u+="@-webkit-keyframes "+Y+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
`,u+="@keyframes "+Y+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",Q(u)}}function I(o){o.className+=" "+G+"_animation_active"}function B(o,F,h){if(o.addEventListener)o.addEventListener(F,h);else if(o.attachEvent)o.attachEvent("on"+F,h);else return l.error("[scroll] Don't know how to add event listeners.")}function U(o,F,h){if(o.removeEventListener)o.removeEventListener(F,h);else if(o.detachEvent)o.detachEvent("on"+F,h);else return l.error("[scroll] Don't know how to remove event listeners.")}function Z(o){return V(o).container.childNodes[0].childNodes[0].childNodes[0]}function m(o){return V(o).container.childNodes[0].childNodes[0].childNodes[1]}function x(o,F){var h=V(o).listeners;if(!h.push)throw new Error("Cannot add listener to an element that is not detectable.");V(o).listeners.push(F)}function C(o,F,h){h||(h=F,F=o,o=null),o=o||{};function Q(){if(o.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 r=0;r<J.length;r++)l.log(J[r])}}function Y(J){function r(H){var et=H.getRootNode&&H.getRootNode().contains(H);return H===H.ownerDocument.body||H.ownerDocument.body.contains(H)||et}return!r(J)||window.getComputedStyle(J)===null}function M(J){var r=V(J).container.childNodes[0],H=window.getComputedStyle(r);return!H.width||H.width.indexOf("px")===-1}function u(){var J=window.getComputedStyle(F),r={};return r.position=J.position,r.width=F.offsetWidth,r.height=F.offsetHeight,r.top=J.top,r.right=J.right,r.bottom=J.bottom,r.left=J.left,r.widthCSS=J.width,r.heightCSS=J.height,r}function T(){var J=u();V(F).startSize={width:J.width,height:J.height},Q("Element start size",V(F).startSize)}function s(){V(F).listeners=[]}function f(){if(Q("storeStyle invoked."),!V(F)){Q("Aborting because element has been uninstalled");return}var J=u();V(F).style=J}function y(J,r,H){V(J).lastWidth=r,V(J).lastHeight=H}function It(J){return Z(J).childNodes[0]}function pl(){return 2*b.width+1}function ol(){return 2*b.height+1}function xl(J){return J+10+pl()}function qi(J){return J+10+ol()}function UW(J){return J*2+pl()}function ZW(J){return J*2+ol()}function $i(J,r,H){var et=Z(J),Ct=m(J),Yt=xl(r),Tt=qi(H),K=UW(r),S=ZW(H);et.scrollLeft=Yt,et.scrollTop=Tt,Ct.scrollLeft=K,Ct.scrollTop=S}function tn(){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 r=function(){V(F).onRendered&&V(F).onRendered()};B(J,"animationstart",r),V(F).onAnimationStart=r}return J}function IW(){function J(){var z=V(F).style;if(z.position==="static"){F.style.setProperty("position","relative",o.important?"important":"");var Wt=function(kt,Nt,BW,Cl){function pW(oW){return oW.replace(/[^-\d\.]/g,"")}var pd=BW[Cl];pd!=="auto"&&pW(pd)!=="0"&&(kt.warn("An element that is positioned static has style."+Cl+"="+pd+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+Cl+" will be set to 0. Element: ",Nt),Nt.style[Cl]=0)};Wt(l,F,z,"top"),Wt(l,F,z,"right"),Wt(l,F,z,"bottom"),Wt(l,F,z,"left")}}function r(z,Wt,kt,Nt){return z=z?z+"px":"0",Wt=Wt?Wt+"px":"0",kt=kt?kt+"px":"0",Nt=Nt?Nt+"px":"0",["left: "+z,"top: "+Wt,"right: "+Nt,"bottom: "+kt]}if(Q("Injecting elements"),!V(F)){Q("Aborting because element has been uninstalled");return}J();var H=V(F).container;H||(H=tn());var et=b.width,Ct=b.height,Yt=R(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),Tt=R(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(r(-(1+et),-(1+Ct),-Ct,-et))),K=R(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),S=R(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),_=R(["position: absolute","left: 0","top: 0"]),Jt=R(["position: absolute","width: 200%","height: 200%"]),Gt=document.createElement("div"),Rt=document.createElement("div"),St=document.createElement("div"),dn=document.createElement("div"),Ql=document.createElement("div"),Vn=document.createElement("div");Gt.dir="ltr",Gt.style.cssText=Yt,Gt.className=G,Rt.className=G,Rt.style.cssText=Tt,St.style.cssText=K,dn.style.cssText=_,Ql.style.cssText=S,Vn.style.cssText=Jt,St.appendChild(dn),Ql.appendChild(Vn),Rt.appendChild(St),Rt.appendChild(Ql),Gt.appendChild(Rt),H.appendChild(Gt);function nn(){var z=V(F);z&&z.onExpand?z.onExpand():Q("Aborting expand scroll handler: element has been uninstalled")}function en(){var z=V(F);z&&z.onShrink?z.onShrink():Q("Aborting shrink scroll handler: element has been uninstalled")}B(St,"scroll",nn),B(Ql,"scroll",en),V(F).onExpandScroll=nn,V(F).onShrinkScroll=en}function FW(){function J(K,S,_){var Jt=It(K),Gt=xl(S),Rt=qi(_);Jt.style.setProperty("width",Gt+"px",o.important?"important":""),Jt.style.setProperty("height",Rt+"px",o.important?"important":"")}function r(K){var S=F.offsetWidth,_=F.offsetHeight,Jt=S!==V(F).lastWidth||_!==V(F).lastHeight;Q("Storing current size",S,_),y(F,S,_),d.add(0,function(){if(Jt){if(!V(F)){Q("Aborting because element has been uninstalled");return}if(!H()){Q("Aborting because element container has not been initialized");return}if(o.debug){var Rt=F.offsetWidth,St=F.offsetHeight;(Rt!==S||St!==_)&&l.warn(n.get(F),"Scroll: Size changed before updating detector elements.")}J(F,S,_)}}),d.add(1,function(){if(!V(F)){Q("Aborting because element has been uninstalled");return}if(!H()){Q("Aborting because element container has not been initialized");return}$i(F,S,_)}),Jt&&K&&d.add(2,function(){if(!V(F)){Q("Aborting because element has been uninstalled");return}if(!H()){Q("Aborting because element container has not been initialized");return}K()})}function H(){return!!V(F).container}function et(){function K(){return V(F).lastNotifiedWidth===void 0}Q("notifyListenersIfNeeded invoked");var S=V(F);if(K()&&S.lastWidth===S.startSize.width&&S.lastHeight===S.startSize.height)return Q("Not notifying: Size is the same as the start size, and there has been no notification yet.");if(S.lastWidth===S.lastNotifiedWidth&&S.lastHeight===S.lastNotifiedHeight)return Q("Not notifying: Size already notified");Q("Current size not notified, notifying..."),S.lastNotifiedWidth=S.lastWidth,S.lastNotifiedHeight=S.lastHeight,ug(V(F).listeners,function(_){_(F)})}function Ct(){if(Q("startanimation triggered."),M(F)){Q("Ignoring since element is still unrendered...");return}Q("Element rendered.");var K=Z(F),S=m(F);(K.scrollLeft===0||K.scrollTop===0||S.scrollLeft===0||S.scrollTop===0)&&(Q("Scrollbars out of sync. Updating detector elements..."),r(et))}function Yt(){if(Q("Scroll detected."),M(F)){Q("Scroll event fired while unrendered. Ignoring...");return}r(et)}if(Q("registerListenersAndPositionElements invoked."),!V(F)){Q("Aborting because element has been uninstalled");return}V(F).onRendered=Ct,V(F).onExpand=Yt,V(F).onShrink=Yt;var Tt=V(F).style;J(F,Tt.width,Tt.height)}function gW(){if(Q("finalizeDomMutation invoked."),!V(F)){Q("Aborting because element has been uninstalled");return}var J=V(F).style;y(F,J.width,J.height),$i(F,J.width,J.height)}function mW(){h(F)}function ln(){Q("Installing..."),s(),T(),d.add(0,f),d.add(1,IW),d.add(2,FW),d.add(3,gW),d.add(4,mW)}Q("Making detectable..."),Y(F)?(Q("Element is detached"),tn(),Q("Waiting until element is attached..."),V(F).onRendered=function(){Q("Element is now attached"),ln()}):ln()}function N(o){var F=V(o);F&&(F.onExpandScroll&&U(Z(o),"scroll",F.onExpandScroll),F.onShrinkScroll&&U(m(o),"scroll",F.onShrinkScroll),F.onAnimationStart&&U(F.container,"animationstart",F.onAnimationStart),F.container&&o.removeChild(F.container))}return{makeDetectable:C,addListener:x,uninstall:N,initDocument:e}}});var qR=g((aC,_R)=>{"use strict";var ml=Xi().forEach,sg=QR(),rg=JR(),Yg=hR(),Tg=uR(),Sg=rR(),vR=ui(),kg=AR(),xt=LR(),Mg=OR(),Hg=jR();function fR(t){return Array.isArray(t)||t.length!==void 0}function KR(t){if(Array.isArray(t))return t;var l=[];return ml(t,function(d){l.push(d)}),l}function PR(t){return t&&t.nodeType===1}_R.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=Yg(),V=Tg({idGenerator:d,stateHandler:xt});l=V}var i=t.reporter;if(!i){var n=i===!1;i=Sg(n)}var b=Qt(t,"batchProcessor",kg({reporter:i})),a={};a.callOnAdd=!!Qt(t,"callOnAdd",!0),a.debug=!!Qt(t,"debug",!1);var G=rg(l),e=sg({stateHandler:xt}),R,W=Qt(t,"strategy","object"),c=Qt(t,"important",!1),I={reporter:i,batchProcessor:b,stateHandler:xt,idHandler:l,important:c};if(W==="scroll"&&(vR.isLegacyOpera()?(i.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),W="object"):vR.isIE(9)&&(i.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),W="object")),W==="scroll")R=Hg(I);else if(W==="object")R=Mg(I);else throw new Error("Invalid strategy name: "+W);var B={};function U(x,C,N){function o(u){var T=G.get(u);ml(T,function(f){f(u)})}function F(u,T,s){G.add(T,s),u&&s(T)}if(N||(N=C,C=x,x={}),!C)throw new Error("At least one element required.");if(!N)throw new Error("Listener required.");if(PR(C))C=[C];else if(fR(C))C=KR(C);else return i.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");var h=0,Q=Qt(x,"callOnAdd",a.callOnAdd),Y=Qt(x,"onReady",function(){}),M=Qt(x,"debug",a.debug);ml(C,function(T){xt.getState(T)||(xt.initState(T),l.set(T));var s=l.get(T);if(M&&i.log("Attaching listener to element",s,T),!e.isDetectable(T)){if(M&&i.log(s,"Not detectable."),e.isBusy(T)){M&&i.log(s,"System busy making it detectable"),F(Q,T,N),B[s]=B[s]||[],B[s].push(function(){h++,h===C.length&&Y()});return}return M&&i.log(s,"Making detectable..."),e.markBusy(T,!0),R.makeDetectable({debug:M,important:c},T,function(y){if(M&&i.log(s,"onElementDetectable"),xt.getState(y)){e.markAsDetectable(y),e.markBusy(y,!1),R.addListener(y,o),F(Q,y,N);var It=xt.getState(y);if(It&&It.startSize){var pl=y.offsetWidth,ol=y.offsetHeight;(It.startSize.width!==pl||It.startSize.height!==ol)&&o(y)}B[s]&&ml(B[s],function(xl){xl()})}else M&&i.log(s,"Element uninstalled before being detectable.");delete B[s],h++,h===C.length&&Y()})}M&&i.log(s,"Already detecable, adding listener."),F(Q,T,N),h++}),h===C.length&&Y()}function Z(x){if(!x)return i.error("At least one element is required.");if(PR(x))x=[x];else if(fR(x))x=KR(x);else return i.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");ml(x,function(C){G.removeAllListeners(C),R.uninstall(C),xt.cleanState(C)})}function m(x){R.initDocument&&R.initDocument(x)}return{listenTo:U,removeListener:G.removeListener,removeAllListeners:G.removeAllListeners,uninstall:Z,initDocument:m}};function Qt(t,l,d){var V=t[l];return V==null&&d!==void 0?d:V}});var zJ=k(oa()),LJ=k(Xa()),wJ=k(wa()),OJ=k(nG());var w=typeof globalThis!="undefined"&&globalThis||typeof self!="undefined"&&self||typeof global!="undefined"&&global||{},D={searchParams:"URLSearchParams"in w,iterable:"Symbol"in w&&"iterator"in Symbol,blob:"FileReader"in w&&"Blob"in w&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in w,arrayBuffer:"ArrayBuffer"in w};function sI(t){return t&&DataView.prototype.isPrototypeOf(t)}D.arrayBuffer&&(eG=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],aG=ArrayBuffer.isView||function(t){return t&&eG.indexOf(Object.prototype.toString.call(t))>-1});var eG,aG;function zt(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 oV(t){return typeof t!="string"&&(t=String(t)),t}function xV(t){var l={next:function(){var d=t.shift();return{done:d===void 0,value:d}}};return D.iterable&&(l[Symbol.iterator]=function(){return l}),l}function E(t){this.map={},t instanceof E?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)}E.prototype.append=function(t,l){t=zt(t),l=oV(l);var d=this.map[t];this.map[t]=d?d+", "+l:l};E.prototype.delete=function(t){delete this.map[zt(t)]};E.prototype.get=function(t){return t=zt(t),this.has(t)?this.map[t]:null};E.prototype.has=function(t){return this.map.hasOwnProperty(zt(t))};E.prototype.set=function(t,l){this.map[zt(t)]=oV(l)};E.prototype.forEach=function(t,l){for(var d in this.map)this.map.hasOwnProperty(d)&&t.call(l,this.map[d],d,this)};E.prototype.keys=function(){var t=[];return this.forEach(function(l,d){t.push(d)}),xV(t)};E.prototype.values=function(){var t=[];return this.forEach(function(l){t.push(l)}),xV(t)};E.prototype.entries=function(){var t=[];return this.forEach(function(l,d){t.push([d,l])}),xV(t)};D.iterable&&(E.prototype[Symbol.iterator]=E.prototype.entries);function pV(t){if(!t._noBody){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}}function GG(t){return new Promise(function(l,d){t.onload=function(){l(t.result)},t.onerror=function(){d(t.error)}})}function rI(t){var l=new FileReader,d=GG(l);return l.readAsArrayBuffer(t),d}function YI(t){var l=new FileReader,d=GG(l),V=/charset=([A-Za-z0-9_-]+)/.exec(t.type),i=V?V[1]:"utf-8";return l.readAsText(t,i),d}function TI(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 bG(t){if(t.slice)return t.slice(0);var l=new Uint8Array(t.byteLength);return l.set(new Uint8Array(t)),l.buffer}function RG(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?typeof t=="string"?this._bodyText=t:D.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:D.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:D.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():D.arrayBuffer&&D.blob&&sI(t)?(this._bodyArrayBuffer=bG(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):D.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||aG(t))?this._bodyArrayBuffer=bG(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):D.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},D.blob&&(this.blob=function(){var t=pV(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=pV(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(D.blob)return this.blob().then(rI);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var t=pV(this);if(t)return t;if(this._bodyBlob)return YI(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(TI(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},D.formData&&(this.formData=function(){return this.text().then(MI)}),this.json=function(){return this.text().then(JSON.parse)},this}var SI=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function kI(t){var l=t.toUpperCase();return SI.indexOf(l)>-1?l:t}function st(t,l){if(!(this instanceof st))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 st){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,l.headers||(this.headers=new E(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 E(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 w){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()}}}st.prototype.clone=function(){return new st(this,{body:this._bodyInit})};function MI(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 HI(t){var l=new E,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}RG.call(st.prototype);function bt(t,l){if(!(this instanceof bt))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 E(l.headers),this.url=l.url||"",this._initBody(t)}RG.call(bt.prototype);bt.prototype.clone=function(){return new bt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new E(this.headers),url:this.url})};bt.error=function(){var t=new bt(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var EI=[301,302,303,307,308];bt.redirect=function(t,l){if(EI.indexOf(l)===-1)throw new RangeError("Invalid status code");return new bt(null,{status:l,headers:{location:t}})};var ut=w.DOMException;try{new ut}catch(t){ut=function(l,d){this.message=l,this.name=d;var V=Error(l);this.stack=V.stack},ut.prototype=Object.create(Error.prototype),ut.prototype.constructor=ut}function WG(t,l){return new Promise(function(d,V){var i=new st(t,l);if(i.signal&&i.signal.aborted)return V(new ut("Aborted","AbortError"));var n=new XMLHttpRequest;function b(){n.abort()}n.onload=function(){var e={statusText:n.statusText,headers:HI(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 bt(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 ut("Aborted","AbortError"))},0)};function a(e){try{return e===""&&w.location.href?w.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&&(D.blob?n.responseType="blob":D.arrayBuffer&&(n.responseType="arraybuffer")),l&&typeof l.headers=="object"&&!(l.headers instanceof E||w.Headers&&l.headers instanceof w.Headers)){var G=[];Object.getOwnPropertyNames(l.headers).forEach(function(e){G.push(zt(e)),n.setRequestHeader(e,oV(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)})}WG.polyfill=!0;w.fetch||(w.fetch=WG,w.Headers=E,w.Request=st,w.Response=bt);var mG=k(cG());function p(t,l=null){let V=AI(l).querySelectorAll(t);return Array.from(V)}function A(t,l=null){let d=p(t,l);return d.length===0?!1:d[0]}function AI(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),o=m.entry,F=U&&N&&this._computeTargetAndRootIntersection(x,Z),h=m.entry=new i({time:b(),target:x,boundingClientRect:C,rootBounds:Z,intersectionRect:F});o?U&&N?this._hasCrossedThreshold(o,h)&&this._queuedEntries.push(h):o&&o.isIntersecting&&this._queuedEntries.push(h):this._queuedEntries.push(h)},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 o=null,F=C.nodeType==1?t.getComputedStyle(C):{};if(F.display=="none")return;if(C==this.root||C==l?(N=!0,o=Z):C!=l.body&&C!=l.documentElement&&F.overflow!="visible"&&(o=W(C)),o&&(x=R(o,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),o=N-C,F=x-m;return o>=0&&F>=0&&{top:m,bottom:x,left:C,right:N,width:o,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 JV=window.innerHeight||window.screen.height,yI={"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":`${JV*2}px`,"unload 3D models":`${JV*2+100}px`,"lazy download 3D models":`${JV*5}px`},zI={"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},UG=[],ZG=[];function at(t){return t.intersectionRatio>=1e-5}function IG(t,l=null){let d=UG.find(V=>V.triggerPoint===t&&V.root===l);if(!d){let V={rootMargin:yI[t],threshold:zI[t],root:l},i=new IntersectionObserver(n=>{LI(n,t,l)},V);return UG.push({instance:i,triggerPoint:t,root:l}),i}return d.instance}function LI(t,l,d=null){t.forEach(V=>{FG(V.target,l,d).callbacks.forEach(n=>n(V))})}function wI(t,l,d=null){let V={target:t,triggerPoint:l,callbacks:[],root:d};return ZG.push(V),V}function FG(t,l,d=null){return ZG.find(V=>V.target===t&&V.triggerPoint===l&&V.root===d)}function Lt(t,l={}){let d=l.triggerPoint||"on visibile",V=l.root||null;IG(d,V).unobserve(t)}function it(t,l,d={}){let V=d.triggerPoint||"on visibile",i=d.root||null,n=IG(V),b=FG(t,V,i);b||(b=wI(t,V,i)),b.callbacks.push(l),n.observe(t)}var OI=5,DI=1e3;function jI(t,l){let d={isTracking:!1,trackingStartAt:0,cumulativeLingerTime:0};it(t,V=>{if(at(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)/DI);if(i<OI)return;d.cumulativeLingerTime+=i,l(i)}})}function vI(t){let l=/\bTheme-(\w+Section)\b/,d=t.match(l);return d!==null?d[1]:"UnknownTypeSection"}function NV(t,l){t.forEach((d,V)=>{let i=vI(d.className),n=V.toString().padStart(3,"0")+" "+d.id;jI(d,a=>{l(i,"linger-seconds",n,a)})})}function fI(...t){}function jl(...t){(window.ga||fI)(...t)}function hV(t){t.on("logEvent",function(...l){jl("send","event",...l),jl("shorthand.send","event",...l)}),t.on("logSocial",(...l)=>{jl("send","social",...l),jl("shorthand.send","social",...l)})}function KI(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 PI(t){let l=KI(t);l.type==="social"?gG(l.network,"share",l.target):Ut(l.type,"click",l.target)}function XV(){p("a").forEach(l=>l.addEventListener("click",()=>PI(l)))}var uV=new mG.default;function Ut(...t){uV.emit("logEvent",...t)}function gG(...t){uV.emit("logSocial",...t)}function sV(){let t=p(".Theme-Section");hV(uV),NV(t,Ut),XV()}var NG=k(j());var _I={textPerLine:!1,textFade:"none",textZoom:"none",textBlur:"none",backgroundFade:"none",backgroundZoom:"none",backgroundBlur:"none",backgroundGrayscale:"none",hasEffects:!1};function BG(t,l=_I){try{return $($({},l),JSON.parse(window.atob(t.getAttribute("data-effects"))))}catch(d){return $({},l)}}var EV=k(TV());var Kl=k(j());var CG=k(SV());function Zt(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 $I=xG(),QG=["android","ios","firefoxos","windows.phone","windows.mobile","blackberryos"],tF={hasTouch:!1},kV=null;function O(){if(kV===null){let t=new $I;t.sniff(navigator.userAgent),kV={isMobile:QG.includes(t.os.name),isDesktop:!QG.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 kV}function lF(t){let l=O(),d=Object.keys(l).reduce((V,i)=>(V[`DeviceDetect--${i}`]=l[i],V),{});t.className=(0,CG.default)(t.className,d)}function MV(t=document.documentElement){var l;lF(((l=window.__shadowRoot)==null?void 0:l.querySelector("article"))||t),dF()}function dF(){Zt(document.documentElement,"touchstart",()=>{tF.hasTouch=!0,document.documentElement.classList.add("DeviceDetect--isTouch")})}function HV(){let{isIE:t,isEdge:l}=O();if(!t&&!l)return;let d={tallTOMs:[]};Kl.default.measure(()=>{p(".DisplayContainerHeight--flex").forEach(i=>{d.tallTOMs.push(i)});function V(){VF(d)}V(),window.addEventListener("resize",V,{passive:!0})})}function VF(t){t.tallTOMs.forEach(l=>{Kl.default.measure(()=>{let d=l.querySelector(".FullSize--child"),V=l.querySelector(".DisplayContainer--heightBasis").getBoundingClientRect().height+200,i=V+"px",n=i;if(V<X.getHeight()){l.style.setProperty("height",i);return}l.classList.contains("SplitLayout")&&X.getWidth()<=960&&(i=`calc(${V} + 50vh)`,n="50vh"),Kl.default.mutate(()=>{l.style.setProperty("height",i),d.style.setProperty("height",n),p(".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 $t=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 $t){window.Shorthand.displayContainer=t,HV()}var Pl={getOrientation(){return window.Shorthand.displayContainer?Pl.getWidth()>Pl.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 Pl.getHeight()*(t/100)},getDisplayContainer(){return window.Shorthand.displayContainer}},X=Pl;var tl;function ql(t,l=0,d=1){var c,I;let{top:V,height:i}=t.getBoundingClientRect();tl===null&&(tl=A(".Header[role=banner]"));let n=(c=tl==null?void 0:tl.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=X.getHeight()-e;return t.className.includes("Theme-BackgroundMedia")&&i<X.getHeight()*.6&&(d*=.5),{threshold:(0,EV.default)(X.getHeight()*.6/W,l,d),percent:(0,EV.default)(1-(G-e)/W,0,1)}}function ll(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 AV=[];function Bt(){AV.forEach(t=>t())}function yV(){let t=!!A("#editor-viewport");t&&(document.removeEventListener("focus",Bt,!0),document.addEventListener("focus",Bt,!0),document.removeEventListener("blur",Bt,!0),document.addEventListener("blur",Bt,!0));let l=t?document.querySelector("#editor-viewport"):window;l.removeEventListener("scroll",Bt),l.addEventListener("scroll",Bt,{passive:!0}),AV=[],NG.default.mutate(()=>{p("[data-effects]").forEach(d=>{let V=BG(d),n=p(t?".Theme-Layer-background-viewport:not(.Theme-Layer-background-viewport-cyclops)":".Theme-BackgroundMedia:not(.Theme-BackgroundModel)",d),b=p(".Theme-Layer-TextBlock-Inner",d);if(!V.hasEffects){t&&Bt();return}n.forEach(G=>{let e=p("video",G);e.length===0&&(e=p("img",G).filter(R=>R.className.indexOf("InstantImage__img")===-1)),p("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&&JG(R,V,0),R.style.setProperty("transform","scale(1)"),R.style.setProperty("opacity","1")})}),b.forEach(G=>{iF(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?p(".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=ql(d).percent;G<=0||G>=1||(n.forEach(e=>{let R=p("video",e);R.length===0&&(R=p("img",e).filter(I=>I.className.indexOf("InstantImage__img")===-1));let{percent:W,threshold:c}=ql(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=ll(W,c,2):U=1,I.style.setProperty("opacity",`${U}`)),I.tagName.toLowerCase()==="img"&&(B===0?JG(I,V,W):(U*=ll(W,c),I.style.setProperty("opacity",`${U}`)))})}),b.forEach(e=>{let R=t?p(".NodeContent",e):[].slice.call(e.firstElementChild.firstElementChild.children);if(t&&nF(V.textPerLine,e,R),t&&e.contains(document.activeElement))return;(V.textPerLine?R:[e]).forEach(c=>{let{percent:I,threshold:B}=ql(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-ll(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*=ll(I,B):m=1,c.style.setProperty("opacity",`${m}`)})}))}AV.push(a)})}),setTimeout(Bt,500)}function JG(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 iF(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 nF(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 yG=k(zV());function LV(){p("[data-lazyload-container][data-lazyload-trigger]").map(l=>({pictures:p("[data-lazyload-item] picture",l),container:l,trigger:l})).forEach(dl)}function dl({pictures:t,container:l,trigger:d}){let V=!1,i=()=>{V||(Lt(l),V=!0)};return it(d,b=>{at(b)&&(t.forEach(a=>eF(a,()=>bF(l))),i())},{triggerPoint:"lazyload"}),i}function eF(t,l){let d=A("img",t),V=p("source",t);d&&(d.addEventListener("load",l),XG(d),V.forEach(XG))}function XG(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 bF(t){t.classList.remove("Lazyload--isLoading"),t.classList.add("Lazyload--isLoaded")}var wV=k(sG()),aF={isHidden(){var t;return document[(t=wV.default)==null?void 0:t.hidden]},addVisibilityChangeListener(t){return document.addEventListener(wV.default.visibilityChange,t)}},rt=aF;var GF=window.setTimeout,RF=window.clearTimeout,rG=0,WF=t=>{let l=Date.now(),d=Math.max(0,16-(l-rG)),V=GF(()=>t(l+d),d);return rG=l+d,V},cF=t=>RF(t),td=window.requestAnimationFrame?window.requestAnimationFrame.bind(window):WF,rp=window.requestAnimationFrame?window.cancelAnimationFrame.bind(window):cF;var nl=[],ld=!1;function UF(t){nl.forEach(l=>l(t))}function TG(t){UF(t),ld&&td(TG)}var YG=!1;function dd(){ld||(YG||(rt.addVisibilityChangeListener(()=>{rt.isHidden()?ZF():dd()}),YG=!0),!rt.isHidden()&&(ld=!0,td(TG)))}function ZF(){ld=!1}function q(t){nl.indexOf(t)===-1&&nl.push(t),dd()}function pt(t){let l=nl.indexOf(t);l!==-1&&nl.splice(l,1)}var EG=k(SG());var bl=k(j());(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 kG(){if(!window)return!1;let t=document.querySelector(".ObjectFit--cover");if(!t)return!1;let d=window.getComputedStyle(t).objectFit,V=O().isEdge;return(d?/^(contain|cover|fill)$/.test(d):!1)&&!V}function al(){bl.default.measure(()=>{let t=X.getOrientation();bl.default.mutate(()=>{let l=p(".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`])}),DV(l)})})}function DV(t){window.objectFitPolyfill(t),IF(t)}function IF(t){let{isIE:l,isEdge:d}=O();!l&&!d||t.forEach(V=>Vd(V))}function Vd(t){let{isIE:l,isEdge:d}=O();!l&&!d||t.className.indexOf("FullSize__fixedChild")!==-1&&bl.default.measure(()=>{let V=window.innerWidth>window.innerHeight?"landscape":"portrait",i=MG(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(()=>Vd(t),100);return}let a=b.width>b.height;bl.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 MG(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":MG(t.parentElement)}function Gl(){window.addEventListener("resize",()=>al(),{passive:!0}),al()}function HG(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 id=EG.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;Zt(t.itemEl,"transitionend",()=>this.activate()),requestAnimationFrame(()=>t.itemEl.classList.add(l.active)),al()},onReverseTransition(){let{item:t,classNames:l}=this;Zt(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),al()},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 nd(t){if(t.isRendering)return;t.isRendering=!0;let l=HG(t.scrollContainer);t.items.forEach(d=>{let V=FF(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 FF(t,l){let d=t.scrollingIn&&l.showDuringScrollIn,V=t.scrollingOut&&l.showDuringScrollOut,i=gF(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 gF(t,l,d){return t>=l&&t<d}var vV={instances:new Map,isRunning:!1},jV=new WeakMap;function mF(t){let l=vV.instances;return l.has(t)||l.set(t,{scrollContainer:t.parentElement,items:[],isRendering:!1,machines:new WeakMap}),l.get(t)}function BF(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 pF(){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 fV(){let t=p("[data-background-scrollmation]");pF(),t.forEach(l=>oF(l,{doLazyload:!0})),["resize","orientationchange"].forEach(l=>window.addEventListener(l,zG,{passive:!0}))}function oF(t,l,d){let V=p("[data-background-scrollmation-item]",t);if(V.length===0)return()=>{};let i=V.map(BF),n=mF(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?xF(a,t.parentElement):a).filter(a=>!n.machines.get(a)).forEach(a=>n.machines.set(a,new id({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<X.getTop()+X.getHeight()?t.setAttribute("data-attach","after"):a.top<X.getTop()?t.setAttribute("data-attach","during"):t.setAttribute("data-attach","before")}return document.getElementById("editor-viewport")||document.addEventListener("scroll",b,{passive:!0}),l.doLazyload&&zG(),q(AG),()=>{pt(AG),document.getElementById("editor-viewport")||document.removeEventListener("scroll",b)}}function xF(t,l){if(!jV.get(t.itemEl)){let V=document.createElement("div");V.classList.add("BackgroundScrollmation__lazyloadTriggerElement"),V.setAttribute("data-item-index",String(t.index)),jV.set(t.itemEl,V),l.appendChild(V);let i={pictures:p("picture",t.itemEl),container:t.itemEl.querySelector("[data-lazyload-container]"),trigger:V};dl(i)}return t}function zG(){(0,yG.default)(vV.instances.values()).map(t=>t.items).map(t=>t.map(l=>{let d=jV.get(l.itemEl);Object.assign(d.style,{position:"absolute",top:`${l.data.start*100}%`})}))}function AG(){vV.instances.forEach(t=>nd(t))}_l();function _V(t,l){ot.length===0&&QF();let d=ot.find(V=>V.element===t);d?d.listeners.find(V=>V===l)||d.listeners.push(l):ot.push({element:t,lastVisible:!1,listeners:[l]})}function qV(t,l){let d=ot.findIndex(V=>V.element===t);if(d!==-1){let V=ot[d];V.listeners=V.listeners.filter(i=>i!==l),V.listeners.length===0&&(ot.splice(d,1),ot.length===0&&CF())}}var ot=[],ed,KV=0,Rl=null;function QF(){let t=document.querySelector("#editor-viewport");t?(ed=t,KV=t.getBoundingClientRect().top,Rl=new ResizeObserver(Wl),Rl.observe(t,{box:"content-box"})):(ed=window,KV=0,window.addEventListener("resize",Wl,{passive:!0})),ed.addEventListener("scroll",Wl,{passive:!0}),q(LG)}function CF(){ed.removeEventListener("scroll",Wl),Rl?(Rl.disconnect(),Rl=null):window.removeEventListener("resize",Wl),pt(LG)}var PV=!1;function Wl(){PV=!0}function LG(){PV&&(PV=!1,JF())}function JF(){ot.forEach(t=>{let{top:l,isVisible:d,scrollPercent:V,elementHeight:i,viewportHeight:n}=bd(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 bd(t){let{top:l,height:d}=t.getBoundingClientRect(),V=X.getHeight(),i=V+d,n=l-KV,b=1-(d+n)/i;return{top:n,isVisible:b>=0&&b<=1,scrollPercent:b,elementHeight:d,viewportHeight:V}}function wG(){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 OG(t){return["enter","leave","scroll"].includes(t)}var ad=class extends HTMLElement{constructor(){super(...arguments);this.internalEvents=wG();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=DG(this),_V(this.scrolledParent,this.scrollListener);let d=bd(this.scrolledParent);d.scrollPercent<0||d.scrollPercent>1?this.internalEvents.emit("leave"):(this.internalEvents.emit("enter"),this.internalEvents.emit("scroll",$({element:this.scrolledParent,type:"enter"},d)))}}getScrollPosition(){return bd(this.scrolledParent)}disconnectedCallback(){this.scrollListenerCount>0&&(qV(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)&&(OG(d)?(this.isConnected&&this.scrollListenerCount===0&&(this.scrolledParent=DG(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)&&(OG(d)?(this.scrollListenerCount--,this.isConnected&&this.scrollListenerCount===0&&qV(this.scrolledParent,this.scrollListener)):d==="content"&&this.isConnected&&this.observer.disconnect())}};function DG(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 NF={fadeInThreshold:.7,fadeOutThreshold:.15,hideWhenOutOfBounds:!0};function jG(t,l,d,V,i=NF){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 $V=k(TV()),ti=k(j());function li(t){var i;let l=p(".Theme-Layer-BodyText",t.parentElement);((i=document.getElementById("editor-viewport"))!=null?i:document).addEventListener("scroll",V,{passive:!0});function V(){l.forEach(n=>{ti.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;ti.default.mutate(()=>{if(R){let c=(0,$V.default)((G-b)/e,0,1);n.style.setProperty("opacity",c.toString())}else if(W){let c=(0,$V.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 vG(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 fG(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 KG(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=hF(d,V,b);return a.opacity===0?{display:"none",index:V}:a}})}function hF(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 XF=`
<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>`,Gd=class extends ad{constructor(){super();this.textHeights=[];let d=this.attachShadow({mode:"open"});d.innerHTML=XF,this.slotElements=Array.from(d.querySelectorAll("slot")),window.ResizeObserver&&(this.textObserver=new ResizeObserver(()=>{this.textBlockElement&&(this.textHeights=PG(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=PG(this.textBlockElement),(i=this.textObserver)==null||i.observe(this.textBlockElement)),this.updateScene(this.getScrollPosition())}),this.on("connected",()=>{li(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=vG(this.getAttribute("data-transitions"))}updateScene({scrollPercent:d,viewportHeight:V,elementHeight:i}){if(this.textHeights.length===0)return;let n=fG(this.transitions,this.textHeights,V,i),b=KG(n,d),a=jG(b,d,V,i),G=this.slotElements[0].assignedElements();YF(this.captionElement,G,a),b.forEach((e,R)=>uF(G[R],e))}attributeChangedCallback(){this.isConnected&&(this.readTransitions(),this.updateScene(this.getScrollPosition()))}};Gd.observedAttributes=["data-transitions"];function PG(t){return Array.from(t.children).map(l=>l.getBoundingClientRect().height)}function uF(t,l){var d;t instanceof HTMLElement&&(t.style.display!==l.display&&(l.display==="none"?sF(t):rF(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 sF(t){t.querySelectorAll("video").forEach(l=>{l.autoplay&&(l.autoplay=!1);try{l.pause()}catch(d){}})}function rF(t){t.querySelectorAll("video").forEach(l=>{if(l.src)try{l.play().catch(()=>{})}catch(d){}else l.autoplay=!0})}function YF(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 TF(t="sh-background-transition"){customElements.get(t)||customElements.define(t,Gd)}TF();function _G(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 qG=k(SV());function Rd(t){let l={"InstantImage--isLoading":!1,"InstantImage--isLoaded":!0};t.className=(0,qG.default)(t.className,l)}var{isSafari:$G}=O();function cl(t,l){let d=Array.from(t.querySelectorAll("source")),V;return $G&&(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}`)&&(!$G||i.type==="video/mp4"))),V?[SF(V.getAttribute(`data-${l}`)),V.type]:[void 0,void 0]}function SF(t){let l=document.createElement("a");return l.href=t,l.href}function kF(t){let l=()=>{t.style.opacity="1"};["loadeddata","playing","canplaythrough"].forEach(V=>Zt(t,V,l))}function MF(t){return t.currentTime>0&&!t.paused&&!t.ended&&t.readyState>2}function di(t,l={canControl:!0},d){let V=X.getHeight()>X.getWidth(),i=MF(t),[n]=cl(t,V?"portrait":"landscape");n&&t.src!==n&&(t.src=n,t.load(),l.canControl&&i&&Wd(t,d))}function Vi(){let{isSafari:t}=O();p("[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,kF(n),n.readyState>=2?Rd(i):(n.addEventListener("loadeddata",()=>Rd(i)),n.addEventListener("error",()=>Rd(i))),a){it(i,R=>{di(n,{canControl:!1},b),Vd(n),at(R)?Wd(n,b):n.pause()},{triggerPoint:"on visibile"});let{top:e}=i.getBoundingClientRect();e<X.getHeight()*2&&(Wd(n,b),setTimeout(()=>{n.readyState<2&&n.paused&&(n.load(),Wd(n,b))},1e3))}else di(n,{canControl:!1},b)});let d=p("[data-background-video] [data-video]"),V=_G(i=>d.forEach(n=>{var b;di(n,{canControl:!0},(b=n.parentElement)==null?void 0:b.querySelector("img"))}),100);["resize","orientationchange"].forEach(i=>{window.addEventListener(i,V,{passive:!0})})}function Wd(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 dR=k(zV());var ii=k(j());function ni(t,l){ii.default.measure(()=>{let d=window.innerWidth,i=l.reduce((n,b)=>n.clientHeight>b.clientHeight?n:b,l[0]).clientHeight;ii.default.mutate(()=>{t.style.height=d>=900?`${i}px`:null})})}var Zl=k(j());var Ul={items:[],lastSizes:new WeakMap},HF=250;function tR(){let t=AF(document.documentElement);t.length!==0&&(Ul.items=t,q(EF))}function EF(){Ul.items.forEach(t=>zF(t))}function AF(t){return p("[data-card-canvas-item]",t).map(yF)}function yF(t){return{el:t,img:p("img",t),caption:t.querySelector(".CardCanvasItem__caption"),heightReferenceEl:t.parentElement.querySelector("[data-card-canvas-height-reference]")}}function zF(t){LF(t).then(()=>wF(t)).catch(()=>{})}function LF(t){return new Promise((l,d)=>{Zl.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=Ul.lastSizes.has(t)?Ul.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,Ul.lastSizes.set(t,a);let G=n-b;Zl.default.mutate(()=>{t.img.forEach(e=>e.style.maxHeight=i>=900?`${G}px`:null),l()})})})}function wF(t){return new Promise(l=>{if(!t.caption)return l();function d(V,i){Zl.default.mutate(()=>{let n=OF(i,{width:V.naturalWidth,height:V.naturalHeight}),b=Math.max(n.width,HF);t.caption.style.maxWidth=`${b}px`,l()})}Zl.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 OF(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 bi={instances:new Map,isRunning:!1},ei=new WeakMap;function DF(t){let l=bi.instances;return l.has(t)||l.set(t,{scrollContainer:t.parentElement,items:[],isRendering:!1,machines:new WeakMap}),l.get(t)}function jF(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 ai(){tR(),p("[data-card-canvas]").forEach(l=>vF(l,{doLazyload:!0})),["resize","orientationchange"].forEach(l=>window.addEventListener(l,VR,{passive:!0}))}function vF(t,l,d){let V=p("[data-card-canvas-item]",t);if(V.length===0)return;let i=V.map(jF),n=DF(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?fF(b,t.parentElement):b).filter(b=>!n.machines.get(b)).forEach(b=>n.machines.set(b,new id({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&&VR(),q(lR),()=>pt(lR)}function fF(t,l){if(!ei.get(t.itemEl)){let V=document.createElement("div");V.classList.add("BackgroundScrollmation__lazyloadTriggerElement"),V.setAttribute("data-item-index",String(t.index)),ei.set(t.itemEl,V),l.appendChild(V);let i={pictures:p("picture",t.itemEl),container:t.itemEl.querySelector("[data-lazyload-container]"),trigger:V};dl(i)}return t}function VR(){(0,dR.default)(bi.instances.values()).map(t=>t.items).map(t=>t.map(l=>{let d=ei.get(l.itemEl);Object.assign(d.style,{position:"absolute",top:`${l.data.start*100}%`})}))}function KF(t,l){nd(t),ni(l,t.items.map(d=>d.itemEl))}function lR(){bi.instances.forEach(KF)}function Gi(){}var Ri=Symbol("hidden"),Wi=Symbol("visible");function PF(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 _F(t){let{lastCalls:l}=t;cd.forEach(d=>{let i=t.isPageHidden||!t.visibleElements.has(d.element)?Ri:Wi;l=PF(d.cb,i,l)}),t.lastCalls=l}function qF(t,l){return t.add(l)}function $F(t,l){return t.delete(l),t}function tg(){rt.addVisibilityChangeListener(()=>{let t={isPageHidden:iR()};eR(t)})}function iR(){return rt.isHidden()}var cd=[],Ud={isPageHidden:iR(),visibleElements:new Set,lastCalls:[]};function nR(t,l,d="nearly visible"){cd.push({cb:l,element:t});let V={triggerPoint:d};return it(t,n=>{let{visibleElements:b}=Ud,a=at(n)?qF(b,t):$F(b,t);eR({visibleElements:a})},V),()=>{Lt(t,V);let n=cd.findIndex(b=>b.element===t&&b.cb===l);cd.splice(n,1)}}function eR(t){Ud=$($({},Ud),t),_F(Ud)}function ci(){tg()}var Ui=k(j());function Zi(){window.addEventListener("resize",()=>bR(),{passive:!0}),bR()}function bR(){Ui.default.measure(()=>{let t=X.getOrientation();Ui.default.mutate(()=>{p("[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 L=null,Il=!1;function Ii(){lg(),p("[data-footnote]").forEach(t=>Vg(t))}function lg(){let t=A(".Theme-Story");t&&(!L||!A(".Theme-Footnote",t))&&(L=document.createElement("div"),L.classList.add("Theme-Footnote"),L.setAttribute("role","tooltip"),L.setAttribute("aria-live","polite"),L.setAttribute("aria-atomic","true"),t.appendChild(L))}function aR(){return A("#editor-viewport")||document}function dg(){let t=A(".Theme-Header");if(!t)return 0;let l=getComputedStyle(t).height,d=parseInt(l,10),V=A(".Navigation__itemList"),i=V&&window.innerWidth>=1100&&V.childNodes.length?36:0,n=A(".navbar-editor");return(n?parseInt(getComputedStyle(n).height,10):0)+d+i}function Vg(t){t.addEventListener("mouseover",()=>Zd(t)),t.addEventListener("touchstart",()=>Zd(t)),t.addEventListener("focus",()=>{setTimeout(()=>Zd(t),100)}),t.addEventListener("keydown",l=>{switch(l.key){case"Enter":Il?Fi():Zd(t);break;case"ArrowUp":Il&&(l.preventDefault(),L.firstElementChild.scrollBy(0,-20));break;case"ArrowDown":Il&&(l.preventDefault(),L.firstElementChild.scrollBy(0,20));break}})}function Zd(t){let l=t.getBoundingClientRect();L.style.display="block",L.innerHTML=decodeURIComponent(t.getAttribute("data-footnote"));let d=L.getBoundingClientRect(),V=l.top<dg()+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),L.style.top=`${i}px`,L.style.left=`${n}px`,L.classList.remove("Theme-Position-Top"),L.classList.remove("Theme-Position-Bottom"),L.classList.add(V?"Theme-Position-Top":"Theme-Position-Bottom"),document.addEventListener("mouseover",Id),document.addEventListener("touchstart",Id),aR().addEventListener("scroll",GR),Il=!0}function Fi(){Il=!1,L.style.display="",document.removeEventListener("mouseover",Id),document.removeEventListener("touchstart",Id),aR().removeEventListener("scroll",GR)}function GR(){Fi()}function Id(t){let l=t.target;!l.closest(".Theme-Layer-BodyText-Highlight")&&!l.closest(".Theme-Footnote")&&Fi()}var gi=k(j());var RR="HideOffscreen__media--onscreen";function ig(t){gi.default.mutate(()=>{t.forEach(l=>l.classList.remove(RR))})}function ng(t){gi.default.mutate(()=>{t.forEach(l=>{l.classList.add(RR),DV([l])})})}function mi(){p(".HideOffscreen--container").map(t=>({container:t,children:p(".HideOffscreen__media",t)})).filter(t=>t.children&&t.children.length>0).forEach(t=>{nR(t.container,l=>{switch(l){case Wi:ng(t.children);break;case Ri:ig(t.children);break}},"on visibile")})}function Bi(){}function eg(){let t=document.createElement("div");return t.style.display="flex",t.style.display==="flex"}function pi(){eg()||document.documentElement.classList.add("Layout--flexboxUnsupported")}function oi(){pi()}var cR=k(j());var nt=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=p("[data-media-gallery-index]",this.element),this.element.addEventListener("click",()=>{this.close()}),p("img, .Videoplayer, .Theme-Caption",this.element).forEach(b=>{b.addEventListener("click",a=>a.stopPropagation())});let d=A('[data-action="previous"]',this.element);d&&d.addEventListener("click",b=>{b.stopPropagation(),this.prev()});let V=A('[data-action="next"]',this.element);V&&V.addEventListener("click",b=>{b.stopPropagation(),this.next()}),A('[data-action="close"]',this.element).addEventListener("click",b=>{b.stopPropagation(),this.close()}),this.element.addEventListener("touchmove",b=>b.preventDefault());let n=-1;p("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=p("*[data-action]",this.element),d=A(`[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),p("video",this.element).forEach(i=>i.setAttribute("playsinline","true")),p([".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"),p("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"),p("video",this.element).forEach(V=>V.pause()),this.currentMediaIndex=l,A(`[data-media-gallery-index="${this.currentMediaIndex}"]`,this.element).classList.add("active"),this.counter.innerText=`Item ${l+1} of ${this.media.length}`}};function xi(){let t={};p("[data-media-gallery-lightbox]").forEach(d=>{let V=d.getAttribute("data-media-gallery-lightbox");t[V]=new nt(d)}),p("[data-media-gallery]").forEach(d=>{let V=d.getAttribute("data-media-gallery");p("[data-cell-index]",d).forEach(i=>{i.addEventListener("click",()=>l(V,i)),i.addEventListener("keydown",n=>{nt.current||n.code==="Enter"&&(n.preventDefault(),n.stopPropagation(),l(V,i))})})}),window.removeEventListener("keydown",WR),window.addEventListener("keydown",WR);function l(d,V){let i=parseInt(V.getAttribute("data-cell-index"),10);bg(),t[d].open(i,()=>{ag(),V.focus()})}}function WR(t){if(nt.current&&X.getHeight()!==window.screen.height)switch(t.code){case"Tab":let l=nt.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")||nt.current.next();break;case"ArrowLeft":t.preventDefault(),t.stopPropagation(),document.activeElement.className.includes("plyr")||nt.current.prev();break;case"Escape":t.preventDefault(),t.stopPropagation(),nt.current.close();break}}function bg(){p("[data-media-gallery] video").forEach(t=>t.pause())}function ag(){p("[data-media-gallery] video").forEach(t=>{cR.default.measure(()=>{let l=t.getBoundingClientRect();l.top<X.getHeight()&&l.bottom>0&&t.play()})})}function Qi(){let{isIE:t,isEdge:l}=O();(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 gR=k(ZR());var Ci=k(j());var FR="Theme-ActiveNavigationBarItem";function Gg(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 Rg(t){t.forEach(Wg)}function Wg(t){t.parentElement.classList.remove(FR)}function cg(t){t.parentElement.classList.add(FR)}function Ug(t){let l=X.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 IR={lastMostVisible:!1};function Zg(t){Ci.default.measure(()=>{let l=Ug(t.slice().reverse());IR.lastMostVisible!==l&&Ci.default.mutate(()=>{Rg(t.map(d=>d.navItem)),l&&cg(l.navItem),IR.lastMostVisible=l})})}function Ji(t){let l=Gg(t);if(l.length===0)return;let d=()=>Zg(l);["scroll","resize"].forEach(V=>window.addEventListener(V,d)),setTimeout(d,1e3),d()}function Ni(){let t=p(".Navigation"),l=p(".Navigation__hamburger");if(!t.length||!l.length)return;let d=t[0],V=l[0],i=p(".Navigation__item",d);Ig(V,d),gg(i,d,V),Fg(V)}function Ig(t,l){t.addEventListener("click",d=>{d.preventDefault(),l.classList.toggle("Navigation--isActive");let i=l.classList.contains("Navigation--isActive")?"true":"false";t.setAttribute("aria-expanded",i)})}function Fg(t){t.classList.remove("Navigation__hamburger--initializing")}function gg(t,l,d){let V=()=>{l.classList.remove("Navigation--isActive"),d.setAttribute("aria-expanded","false")};t.forEach(i=>i.addEventListener("click",V))}var mg="[data-story-nav-item]",Bg=-2;function pg(){return p("[data-fixed-story-element]").reduce((l,d)=>l+d.getBoundingClientRect().height,Bg)}function hi(t=mg){let l=p(t);Ji(l),Ni();let d=pg();gR.default.setup(500,d)}var ri=k(j());var og={clientWidth:["padding-left","padding-right","border-left-width","border-right-width"],clientHeight:["padding-top","padding-bottom","border-top-width","border-bottom-width"]};function mR(t){return pR(t,"clientWidth")}function BR(t){return pR(t,"clientHeight")}function xg(t,l){switch(l){case"clientWidth":return t.clientWidth;case"clientHeight":return t.clientHeight}}function pR(t,l){let d=og[l];try{let V=window.getComputedStyle(t),i=d.reduce((n,b)=>{let a=V.getPropertyValue(b);return n+Qg(a)},0);return xg(t,l)-i}catch(V){throw new Error(`Couldn't get styles for element ${t} in getInnerDimension`)}}function Qg(t){return parseInt(t,10)}var Eg=qR(),$R={elements:[]},Ag=Eg();function Ti(t){let{elements:l}=$R;if(l.findIndex(V=>V.element===t)>-1)return;let d={element:t,onResize(){Yi(t)}};l.push(d),Yi(t,!0),Ag.listenTo(d.element.parentElement,d.onResize),gd()}function yg(){let{elements:t}=$R;t.forEach(l=>Yi(l.element))}function Yi(t,l=!1){ri.default.measure(()=>{let d=t.parentNode,V=d?mR(d):-1,i=t.clientWidth;(V!==i||l)&&ri.default.mutate(()=>{t.style.width=`${V}px`})})}function gd(){let t=document.getElementsByClassName("ParentWidth");Array.prototype.forEach.call(t,Ti),yg()}var md=k(j());var tW=!1;function ki(t){t&&(wt.getTopOffset=t),p("[data-scrollymoly]").forEach(zg),window.addEventListener("orientationchange",()=>Si()),tW||(tW=!0,window.addEventListener("resize",wg),q(Si))}var wt={moles:[],getTopOffset(t){return document.documentElement?t.getBoundingClientRect().top+document.documentElement.scrollTop:(console.error("Document element is not available."),0)}};function zg(t){let l=t.getAttribute("data-scrollymoly");try{let d=JSON.parse(l).map(n=>Rn($({},n),{offset:Number.isFinite(n.offset)?n.offset:0})),V=t.closest("[data-scrollymoly-basis]"),i=wt.getTopOffset(V);Lg({element:t,basisEl:V,effects:d,topOffset:i,state:{}})}catch(d){console.error(d)}}function Lg(t){wt.moles.push(t),Si()}function Si(){wt.moles.map(Og)}function wg(){wt.moles.forEach(t=>{t.topOffset=wt.getTopOffset(t.basisEl)})}function Og(t){return new Promise((l,d)=>{md.default.measure(()=>{t.effects.forEach(V=>{V.kind in dW?dW[V.kind](t,V,l):(console.error(`Unknown effect type '${V.kind}'`),l())})})})}function lW(t,l,d){let V=l.firstElementChild.getBoundingClientRect(),i=t.kind==="fadeIn"?V.top:V.bottom,n=X.getHeight()*t.end,b=n+Math.min(V.height,X.getHeight()*t.start),a=i>b?1:(i-n)/(b-n);return Math.round(a*100)/100}var dW={fadeOut(t,l,d){let V=lW(l,t.basisEl,t.topOffset),i=Math.max(0,Math.min(1,V));if(t.state.lastOpacity===i)return d();md.default.mutate(()=>{t.state.lastOpacity=i,t.element.style.opacity=i.toString(),d()})},fadeIn(t,l,d){let V=lW(l,t.basisEl,t.topOffset),i=Math.max(0,Math.min(1,1-V));if(t.state.lastOpacity===i)return d();md.default.mutate(()=>{t.state.lastOpacity=i,t.element.style.opacity=i.toString(),d()})}};var VW={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 Dg(t,l){let d=Math.round(X.getWidth()/2-l.popupWidth/2),V=0;X.getHeight()>l.popupHeight&&(V=Math.round(X.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 jg(t){t.preventDefault();let l=t.currentTarget,d=l.getAttribute("data-social-share"),V=VW[d],i=l.href;Dg(i,V)}function vg(t){let l=t.getAttribute("data-social-share");l in VW?t.addEventListener("click",jg,{passive:!1}):console.error(`Social Share button of type ${l} is not supported.`)}function Mi(t="[data-social-share]"){p(t).forEach(vg)}var Ot={};function Dt(t,l){return()=>{Ot.pause&&Ot.instance!==l&&Ot.pause(),Ot.pause=()=>{delete Ot.pause,t()},Ot.instance=l}}var fg="https://w.soundcloud.com/player/api.js",Kg=!1,Pg="SoundCloudPlayer--initializing";function _g(t){if(Kg)return t();let l=document.createElement("script");l.type="text/javascript",l.async=!0,l.addEventListener("load",t),l.src=fg;let d=document.getElementsByTagName("script")[0];d.parentNode.insertBefore(l,d)}function qg(t){let l=t.getAttribute("data-src"),d=t.getAttribute("data-height"),V=tm({src:l,height:d});V.addEventListener("load",()=>{_g(()=>{t.classList.remove(Pg);let i=new SC.Widget(V);$g(i,V)})}),t.appendChild(V)}function $g(t,l){let d=t.pause.bind(t);t.bind(SC.Widget.Events.READY,()=>{t.bind(SC.Widget.Events.PLAY,Dt(d,l))})}function tm(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 Hi(){let t=p("[data-soundcloud]");window.addEventListener("load",()=>{setTimeout(()=>t.forEach(qg),100)})}function Ei(){p(".SplitLayout").forEach(lm)}function lm(t){let l=p(".FullSize__fixedChild.ObjectFit--cover",t);kG()&&l.forEach(Ti)}var Ai=k(j());function dm(t){let l=p("[data-stacked-content-fill]",t),d=p("[data-stacked-content-basis]",t),V=()=>Vm(t,l,d);return V(),q(V),()=>pt(V)}function Vm(t,l,d){l.length!==0&&Ai.default.measure(()=>{let V=BR(t);if(!V)return;let i=d.reduce((b,a)=>b+a.clientHeight,0),n=(V-i)/l.length;Ai.default.mutate(()=>{l.forEach(b=>b.style.maxHeight=`${n}px`)})})}function yi(){return p("[data-stacked-content]").map(dm)}function im(t,l){let d=`https://views.unsplash.com/v?app_id=${t}&photo_id=${l}`;fetch(d).catch(V=>console.log(V))}function zi(){p("[data-unsplash-ids]").forEach(t=>{let l=t.getAttribute("data-unsplash-ids"),d=t.getAttribute("data-unsplash-app");im(d,l)})}var Li=class extends Error{constructor(d){super(d.statusText);this.response=d}};function iW(t){if(t.status>=200&&t.status<300)return t;let l=new Li(t);throw l.response=t,l}function nW(t,l,d){let V=t.headers.get("content-type");if(V&&V.includes(l))return t;throw new TypeError(d)}function wi(t,l,d){fetch(t).then(iW).then(V=>nW(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 nm="GalleryRenderer--initializing";function em(t){let l=t.getAttribute("data-url"),d=t.getAttribute("data-mode");wi(l,d,V=>{t.innerHTML=V,t.classList.remove(nm),Gl()})}function Oi(){p("[data-galleryrenderer]").forEach(em)}function Di(){}var bm=k(j());function eW(t,l,d){return d!==void 0?am(t,l,d):t.classList.toggle(l)}function am(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 Gm={mainSelector:".TransitionIn--fade",fadeInClass:"TransitionIn--fadeIn"};function ji(t=Gm){p(t.mainSelector).forEach(d=>{Rm(d,{fadeInClass:t.fadeInClass})})}function Rm(t,l){let d=V=>{let i=V.rootBounds?V.rootBounds.top:0;V.boundingClientRect.top<i&&!V.isIntersecting||Wm(t,l.fadeInClass,at(V))};return t.classList.add(l.fadeInClass),it(t,d,{triggerPoint:"mostly visible"}),()=>Lt(t)}function Wm(t,l,d){eW(t,l,d)}function vi(){ji()}var fi=t=>`${t}px`;function bW(t){let{width:l,height:d,top:V}=t.getBoundingClientRect();Object.assign(t.style,{position:"fixed",top:fi(V),width:fi(l),height:fi(d),overflowY:"scroll"})}function aW(t){let l=parseInt(t.style.top,10);Object.assign(t.style,{position:"",top:"",width:"",height:"",overflowY:""}),window.scrollTo(0,-l)}function RW(){return X.getWidth()<900?"portrait":"landscape"}var Ki=[],Bl;function WW(){return Bl||(Bl=RW()),Bl}function cW(t){Ki.length===0&&cm(),Ki.push(t)}function GW(){let t=RW();t!==Bl&&(Bl=t,Ki.forEach(l=>l(t)))}function cm(){window.addEventListener("resize",GW,{passive:!0}),window.addEventListener("orientationchange",GW,{passive:!0})}var Um="[data-videoplayer-youtube]",Zm='[data-projection="360"]',Im="__YOUTUBE_API_SCRIPT__",Bd={whenApiReady:!1,players:[]};function Fm(t){p('script[src="//www.youtube.com/player_api"]').length>0||(Bd.whenApiReady||(Bd.whenApiReady=new Promise((l,d)=>{window.onYouTubeIframeAPIReady=()=>l();let V=document.createElement("script");V.src="//www.youtube.com/player_api",V.id=Im,V.async=!0;let i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(V,i)})),Bd.whenApiReady.then(t))}function gm(t){return{[YT.PlayerState.PLAYING]:"play",[YT.PlayerState.PAUSED]:"pause",[YT.PlayerState.ENDED]:"end"}[t.data]}function mm(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);Dt(b,n.getIframe())()}let i=gm(V);i&&Bm(i,V.target)}}})}function Bm(t,l){let d=l.getVideoData(),V=`${d.title} (${d.video_id})`;Ut("Videos",t,V)}function pm(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 Pi(t=Um,l=Zm){let d=p(l);O().isiOS&&pm(d);let V=p(t);V.length!==0&&Fm(()=>{Bd.players=V.map(mm)})}var{isSafari:om}=O(),xm=`<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 Qm(t,l,d){let V=!0,i=!1,n=null,b=null,a=null,G=d;function e(){V&&(V=!1,c("video-stopped"),t.removeAttribute("data-lazyload-video"))}function R(F){let h=l.getAttribute(`data-${F}-poster`);if(h&&h!==l.poster){let Y=function(){a===Q&&(l.poster=h,e())},Q=document.createElement("img");Q.addEventListener("load",Y),Q.addEventListener("error",Y),Q.src=h,a=Q}else e()}function W(F){if(G=F,l.src){let[h]=cl(l,F);h&&h!==l.src&&(i&&(l.pause(),i=!1),Z(),V||c("video-stopped"),l.src=h)}R(F)}function c(F){t.classList.remove("video-stopped","video-paused","video-playing","video-loading","video-error"),t.classList.add(F)}function I(){n===null&&(n=document.createElement("div"),n.className="Lazyload__spinner Theme-Lazyload-Spinner",t.appendChild(n))}function B(){return n!==null?(n.remove(),n=null,!0):!1}function U(){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))}function Z(){return b!==null?(b.remove(),b=null,!0):!1}function m(){if(l.readyState===0){if(n===null){I(),c("video-loading");let[F,h]=cl(l,G);if(om){let Q=function(){l.removeEventListener("canplay",Q),h!=="video/mp4"?setTimeout(()=>{l.play()},1e3):l.play()};l.addEventListener("canplay",Q),l.src=F,l.load()}else l.autoplay=!0,l.src=F}}else l.play().catch()}function x(F){i||(F.preventDefault(),m(),t.removeEventListener("click",x))}R(d);let C=l.controls;l.controls=!1,l.addEventListener("seeking",()=>{l.controls=!0}),l.addEventListener("error",F=>{B()&&(U(),c("video-error"))}),l.addEventListener("pause",()=>{c("video-paused"),i=!1,Ut("Videos","pause",l.currentSrc)}),l.addEventListener("playing",()=>{Z(),B(),c("video-playing"),Dt(l.pause.bind(l),l)(),i=!0,l.controls=C,Ut("Videos","play",l.currentSrc)}),l.addEventListener("ended",()=>{c("video-paused"),i=!1,Ut("Videos","ended",l.currentSrc)}),t.addEventListener("click",x);let N=document.documentElement,o=t.closest("[class*='Layer--']");l.addEventListener("fullscreenchange",()=>{document.fullscreenElement===null?(aW(N),o.classList.remove("Levels--god")):(bW(N),o.classList.add("Levels--god"))}),cW(W)}function _i(t={}){if(t.body&&!t.iconUrl){let i=new DOMParser().parseFromString(xm,"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=p("[data-videoplayer]"),d=WW();l.forEach(V=>{let i=V.querySelector("[data-videoplayer-media]");i&&Qm(V,i,d)}),Pi()}Gi();MV();_l();oi();LV();Gl();yi();dd();ci();Di();Zi();vi();mi();hi();Bi();Hi();gd();_i({body:document.body});Vi();Mi();sV();Oi();ai();fV();ki();Ei();xi();Ii();yV();Qi();zi();})();
/*! 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]="b7612216-7ac8-5095-b516-afad344953d4")}catch(e){}}();
//# sourceMappingURL=story.302411.min.js.map
//# debugId=b7612216-7ac8-5095-b516-afad344953d4
