(()=>{var HF=Object.create;var LV=Object.defineProperty,EF=Object.defineProperties,AF=Object.getOwnPropertyDescriptor,yF=Object.getOwnPropertyDescriptors,zF=Object.getOwnPropertyNames,Ab=Object.getOwnPropertySymbols,wF=Object.getPrototypeOf,zb=Object.prototype.hasOwnProperty,LF=Object.prototype.propertyIsEnumerable;var yb=(l,t,d)=>t in l?LV(l,t,{enumerable:!0,configurable:!0,writable:!0,value:d}):l[t]=d,nt=(l,t)=>{for(var d in t||(t={}))zb.call(t,d)&&yb(l,d,t[d]);if(Ab)for(var d of Ab(t))LF.call(t,d)&&yb(l,d,t[d]);return l},Wl=(l,t)=>EF(l,yF(t));var r=(l,t)=>()=>(t||l((t={exports:{}}).exports,t),t.exports);var OF=(l,t,d,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let V of zF(t))!zb.call(l,V)&&V!==d&&LV(l,V,{get:()=>t[V],enumerable:!(e=AF(t,V))||e.enumerable});return l};var tt=(l,t,d)=>(d=l!=null?HF(wF(l)):{},OF(t||!l||!l.__esModule?LV(d,"default",{value:l,enumerable:!0}):d,l));var jl=(l,t,d)=>new Promise((e,V)=>{var i=b=>{try{a(d.next(b))}catch(c){V(c)}},n=b=>{try{a(d.throw(b))}catch(c){V(c)}},a=b=>b.done?e(b.value):Promise.resolve(b.value).then(i,n);a((d=d.apply(l,t)).next())});var Et=r((Xs,wb)=>{var We=function(l){return l&&l.Math==Math&&l};wb.exports=We(typeof globalThis=="object"&&globalThis)||We(typeof window=="object"&&window)||We(typeof self=="object"&&self)||We(typeof global=="object"&&global)||function(){return this}()||Function("return this")()});var At=r((Ys,Lb)=>{Lb.exports=function(l){try{return!!l()}catch(t){return!0}}});var ll=r((Ts,Ob)=>{var jF=At();Ob.exports=!jF(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var Ue=r((Ss,jb)=>{var DF=At();jb.exports=!DF(function(){var l=function(){}.bind();return typeof l!="function"||l.hasOwnProperty("prototype")})});var Fe=r((ks,Db)=>{var vF=Ue(),Ze=Function.prototype.call;Db.exports=vF?Ze.bind(Ze):function(){return Ze.apply(Ze,arguments)}});var Kb=r(Pb=>{"use strict";var vb={}.propertyIsEnumerable,fb=Object.getOwnPropertyDescriptor,fF=fb&&!vb.call({1:2},1);Pb.f=fF?function(t){var d=fb(this,t);return!!d&&d.enumerable}:vb});var OV=r((Hs,_b)=>{_b.exports=function(l,t){return{enumerable:!(l&1),configurable:!(l&2),writable:!(l&4),value:t}}});var ut=r((Es,tc)=>{var qb=Ue(),$b=Function.prototype,jV=$b.call,PF=qb&&$b.bind.bind(jV,jV);tc.exports=qb?PF:function(l){return function(){return jV.apply(l,arguments)}}});var Dl=r((As,dc)=>{var lc=ut(),KF=lc({}.toString),_F=lc("".slice);dc.exports=function(l){return _F(KF(l),8,-1)}});var Vc=r((ys,ec)=>{var qF=ut(),$F=At(),tg=Dl(),DV=Object,lg=qF("".split);ec.exports=$F(function(){return!DV("z").propertyIsEnumerable(0)})?function(l){return tg(l)=="String"?lg(l,""):DV(l)}:DV});var vV=r((zs,ic)=>{ic.exports=function(l){return l==null}});var vl=r((ws,nc)=>{var dg=vV(),eg=TypeError;nc.exports=function(l){if(dg(l))throw eg("Can't call method on "+l);return l}});var Gd=r((Ls,ac)=>{var Vg=Vc(),ig=vl();ac.exports=function(l){return Vg(ig(l))}});var PV=r((Os,bc)=>{var fV=typeof document=="object"&&document.all,ng=typeof fV=="undefined"&&fV!==void 0;bc.exports={all:fV,IS_HTMLDDA:ng}});var Ct=r((js,Gc)=>{var cc=PV(),ag=cc.all;Gc.exports=cc.IS_HTMLDDA?function(l){return typeof l=="function"||l===ag}:function(l){return typeof l=="function"}});var Ul=r((Ds,Uc)=>{var Rc=Ct(),Wc=PV(),bg=Wc.all;Uc.exports=Wc.IS_HTMLDDA?function(l){return typeof l=="object"?l!==null:Rc(l)||l===bg}:function(l){return typeof l=="object"?l!==null:Rc(l)}});var fl=r((vs,Zc)=>{var KV=Et(),cg=Ct(),Gg=function(l){return cg(l)?l:void 0};Zc.exports=function(l,t){return arguments.length<2?Gg(KV[l]):KV[l]&&KV[l][t]}});var gc=r((fs,Fc)=>{var Rg=ut();Fc.exports=Rg({}.isPrototypeOf)});var _V=r((Ps,Ic)=>{var Wg=fl();Ic.exports=Wg("navigator","userAgent")||""});var sc=r((Ks,hc)=>{var rc=Et(),qV=_V(),mc=rc.process,oc=rc.Deno,Bc=mc&&mc.versions||oc&&oc.version,pc=Bc&&Bc.v8,yt,ge;pc&&(yt=pc.split("."),ge=yt[0]>0&&yt[0]<4?1:+(yt[0]+yt[1]));!ge&&qV&&(yt=qV.match(/Edge\/(\d+)/),(!yt||yt[1]>=74)&&(yt=qV.match(/Chrome\/(\d+)/),yt&&(ge=+yt[1])));hc.exports=ge});var $V=r((_s,Qc)=>{var Nc=sc(),Ug=At();Qc.exports=!!Object.getOwnPropertySymbols&&!Ug(function(){var l=Symbol();return!String(l)||!(Object(l)instanceof Symbol)||!Symbol.sham&&Nc&&Nc<41})});var ti=r((qs,xc)=>{var Zg=$V();xc.exports=Zg&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var li=r(($s,Jc)=>{var Fg=fl(),gg=Ct(),Ig=gc(),mg=ti(),og=Object;Jc.exports=mg?function(l){return typeof l=="symbol"}:function(l){var t=Fg("Symbol");return gg(t)&&Ig(t.prototype,og(l))}});var Cc=r((tN,uc)=>{var Bg=String;uc.exports=function(l){try{return Bg(l)}catch(t){return"Object"}}});var Ie=r((lN,Xc)=>{var pg=Ct(),rg=Cc(),hg=TypeError;Xc.exports=function(l){if(pg(l))return l;throw hg(rg(l)+" is not a function")}});var Tc=r((dN,Yc)=>{var sg=Ie(),Ng=vV();Yc.exports=function(l,t){var d=l[t];return Ng(d)?void 0:sg(d)}});var kc=r((eN,Sc)=>{var di=Fe(),ei=Ct(),Vi=Ul(),Qg=TypeError;Sc.exports=function(l,t){var d,e;if(t==="string"&&ei(d=l.toString)&&!Vi(e=di(d,l))||ei(d=l.valueOf)&&!Vi(e=di(d,l))||t!=="string"&&ei(d=l.toString)&&!Vi(e=di(d,l)))return e;throw Qg("Can't convert object to primitive value")}});var Hc=r((VN,Mc)=>{Mc.exports=!1});var me=r((iN,Ac)=>{var Ec=Et(),xg=Object.defineProperty;Ac.exports=function(l,t){try{xg(Ec,l,{value:t,configurable:!0,writable:!0})}catch(d){Ec[l]=t}return t}});var oe=r((nN,zc)=>{var Jg=Et(),ug=me(),yc="__core-js_shared__",Cg=Jg[yc]||ug(yc,{});zc.exports=Cg});var ii=r((aN,Lc)=>{var Xg=Hc(),wc=oe();(Lc.exports=function(l,t){return wc[l]||(wc[l]=t!==void 0?t:{})})("versions",[]).push({version:"3.27.1",mode:Xg?"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 ni=r((bN,Oc)=>{var Yg=vl(),Tg=Object;Oc.exports=function(l){return Tg(Yg(l))}});var Zl=r((cN,jc)=>{var Sg=ut(),kg=ni(),Mg=Sg({}.hasOwnProperty);jc.exports=Object.hasOwn||function(t,d){return Mg(kg(t),d)}});var ai=r((GN,Dc)=>{var Hg=ut(),Eg=0,Ag=Math.random(),yg=Hg(1 .toString);Dc.exports=function(l){return"Symbol("+(l===void 0?"":l)+")_"+yg(++Eg+Ag,36)}});var Fl=r((RN,_c)=>{var zg=Et(),wg=ii(),vc=Zl(),Lg=ai(),fc=$V(),Kc=ti(),Pl=wg("wks"),ul=zg.Symbol,Pc=ul&&ul.for,Og=Kc?ul:ul&&ul.withoutSetter||Lg;_c.exports=function(l){if(!vc(Pl,l)||!(fc||typeof Pl[l]=="string")){var t="Symbol."+l;fc&&vc(ul,l)?Pl[l]=ul[l]:Kc&&Pc?Pl[l]=Pc(t):Pl[l]=Og(t)}return Pl[l]}});var lG=r((WN,tG)=>{var jg=Fe(),qc=Ul(),$c=li(),Dg=Tc(),vg=kc(),fg=Fl(),Pg=TypeError,Kg=fg("toPrimitive");tG.exports=function(l,t){if(!qc(l)||$c(l))return l;var d=Dg(l,Kg),e;if(d){if(t===void 0&&(t="default"),e=jg(d,l,t),!qc(e)||$c(e))return e;throw Pg("Can't convert object to primitive value")}return t===void 0&&(t="number"),vg(l,t)}});var bi=r((UN,dG)=>{var _g=lG(),qg=li();dG.exports=function(l){var t=_g(l,"string");return qg(t)?t:t+""}});var Gi=r((ZN,VG)=>{var $g=Et(),eG=Ul(),ci=$g.document,tI=eG(ci)&&eG(ci.createElement);VG.exports=function(l){return tI?ci.createElement(l):{}}});var Ri=r((FN,iG)=>{var lI=ll(),dI=At(),eI=Gi();iG.exports=!lI&&!dI(function(){return Object.defineProperty(eI("div"),"a",{get:function(){return 7}}).a!=7})});var Wi=r(aG=>{var VI=ll(),iI=Fe(),nI=Kb(),aI=OV(),bI=Gd(),cI=bi(),GI=Zl(),RI=Ri(),nG=Object.getOwnPropertyDescriptor;aG.f=VI?nG:function(t,d){if(t=bI(t),d=cI(d),RI)try{return nG(t,d)}catch(e){}if(GI(t,d))return aI(!iI(nI.f,t,d),t[d])}});var Ui=r((IN,bG)=>{var WI=ll(),UI=At();bG.exports=WI&&UI(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})});var Rd=r((mN,cG)=>{var ZI=Ul(),FI=String,gI=TypeError;cG.exports=function(l){if(ZI(l))return l;throw gI(FI(l)+" is not an object")}});var Kl=r(RG=>{var II=ll(),mI=Ri(),oI=Ui(),Be=Rd(),GG=bi(),BI=TypeError,Zi=Object.defineProperty,pI=Object.getOwnPropertyDescriptor,Fi="enumerable",gi="configurable",Ii="writable";RG.f=II?oI?function(t,d,e){if(Be(t),d=GG(d),Be(e),typeof t=="function"&&d==="prototype"&&"value"in e&&Ii in e&&!e[Ii]){var V=pI(t,d);V&&V[Ii]&&(t[d]=e.value,e={configurable:gi in e?e[gi]:V[gi],enumerable:Fi in e?e[Fi]:V[Fi],writable:!1})}return Zi(t,d,e)}:Zi:function(t,d,e){if(Be(t),d=GG(d),Be(e),mI)try{return Zi(t,d,e)}catch(V){}if("get"in e||"set"in e)throw BI("Accessors not supported");return"value"in e&&(t[d]=e.value),t}});var mi=r((BN,WG)=>{var rI=ll(),hI=Kl(),sI=OV();WG.exports=rI?function(l,t,d){return hI.f(l,t,sI(1,d))}:function(l,t,d){return l[t]=d,l}});var FG=r((pN,ZG)=>{var oi=ll(),NI=Zl(),UG=Function.prototype,QI=oi&&Object.getOwnPropertyDescriptor,Bi=NI(UG,"name"),xI=Bi&&function(){}.name==="something",JI=Bi&&(!oi||oi&&QI(UG,"name").configurable);ZG.exports={EXISTS:Bi,PROPER:xI,CONFIGURABLE:JI}});var ri=r((rN,gG)=>{var uI=ut(),CI=Ct(),pi=oe(),XI=uI(Function.toString);CI(pi.inspectSource)||(pi.inspectSource=function(l){return XI(l)});gG.exports=pi.inspectSource});var oG=r((hN,mG)=>{var YI=Et(),TI=Ct(),IG=YI.WeakMap;mG.exports=TI(IG)&&/native code/.test(String(IG))});var hi=r((sN,pG)=>{var SI=ii(),kI=ai(),BG=SI("keys");pG.exports=function(l){return BG[l]||(BG[l]=kI(l))}});var pe=r((NN,rG)=>{rG.exports={}});var QG=r((QN,NG)=>{var MI=oG(),sG=Et(),HI=Ul(),EI=mi(),si=Zl(),Ni=oe(),AI=hi(),yI=pe(),hG="Object already initialized",Qi=sG.TypeError,zI=sG.WeakMap,re,Wd,he,wI=function(l){return he(l)?Wd(l):re(l,{})},LI=function(l){return function(t){var d;if(!HI(t)||(d=Wd(t)).type!==l)throw Qi("Incompatible receiver, "+l+" required");return d}};MI||Ni.state?(zt=Ni.state||(Ni.state=new zI),zt.get=zt.get,zt.has=zt.has,zt.set=zt.set,re=function(l,t){if(zt.has(l))throw Qi(hG);return t.facade=l,zt.set(l,t),t},Wd=function(l){return zt.get(l)||{}},he=function(l){return zt.has(l)}):(Cl=AI("state"),yI[Cl]=!0,re=function(l,t){if(si(l,Cl))throw Qi(hG);return t.facade=l,EI(l,Cl,t),t},Wd=function(l){return si(l,Cl)?l[Cl]:{}},he=function(l){return si(l,Cl)});var zt,Cl;NG.exports={set:re,get:Wd,has:he,enforce:wI,getterFor:LI}});var uG=r((xN,JG)=>{var OI=At(),jI=Ct(),se=Zl(),xi=ll(),DI=FG().CONFIGURABLE,vI=ri(),xG=QG(),fI=xG.enforce,PI=xG.get,Ne=Object.defineProperty,KI=xi&&!OI(function(){return Ne(function(){},"length",{value:8}).length!==8}),_I=String(String).split("String"),qI=JG.exports=function(l,t,d){String(t).slice(0,7)==="Symbol("&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),d&&d.getter&&(t="get "+t),d&&d.setter&&(t="set "+t),(!se(l,"name")||DI&&l.name!==t)&&(xi?Ne(l,"name",{value:t,configurable:!0}):l.name=t),KI&&d&&se(d,"arity")&&l.length!==d.arity&&Ne(l,"length",{value:d.arity});try{d&&se(d,"constructor")&&d.constructor?xi&&Ne(l,"prototype",{writable:!1}):l.prototype&&(l.prototype=void 0)}catch(V){}var e=fI(l);return se(e,"source")||(e.source=_I.join(typeof t=="string"?t:"")),l};Function.prototype.toString=qI(function(){return jI(this)&&PI(this).source||vI(this)},"toString")});var XG=r((JN,CG)=>{var $I=Ct(),tm=Kl(),lm=uG(),dm=me();CG.exports=function(l,t,d,e){e||(e={});var V=e.enumerable,i=e.name!==void 0?e.name:t;if($I(d)&&lm(d,i,e),e.global)V?l[t]=d:dm(t,d);else{try{e.unsafe?l[t]&&(V=!0):delete l[t]}catch(n){}V?l[t]=d:tm.f(l,t,{value:d,enumerable:!1,configurable:!e.nonConfigurable,writable:!e.nonWritable})}return l}});var TG=r((uN,YG)=>{var em=Math.ceil,Vm=Math.floor;YG.exports=Math.trunc||function(t){var d=+t;return(d>0?Vm:em)(d)}});var Qe=r((CN,SG)=>{var im=TG();SG.exports=function(l){var t=+l;return t!==t||t===0?0:im(t)}});var MG=r((XN,kG)=>{var nm=Qe(),am=Math.max,bm=Math.min;kG.exports=function(l,t){var d=nm(l);return d<0?am(d+t,0):bm(d,t)}});var Ji=r((YN,HG)=>{var cm=Qe(),Gm=Math.min;HG.exports=function(l){return l>0?Gm(cm(l),9007199254740991):0}});var xe=r((TN,EG)=>{var Rm=Ji();EG.exports=function(l){return Rm(l.length)}});var ui=r((SN,yG)=>{var Wm=Gd(),Um=MG(),Zm=xe(),AG=function(l){return function(t,d,e){var V=Wm(t),i=Zm(V),n=Um(e,i),a;if(l&&d!=d){for(;i>n;)if(a=V[n++],a!=a)return!0}else for(;i>n;n++)if((l||n in V)&&V[n]===d)return l||n||0;return!l&&-1}};yG.exports={includes:AG(!0),indexOf:AG(!1)}});var Xi=r((kN,wG)=>{var Fm=ut(),Ci=Zl(),gm=Gd(),Im=ui().indexOf,mm=pe(),zG=Fm([].push);wG.exports=function(l,t){var d=gm(l),e=0,V=[],i;for(i in d)!Ci(mm,i)&&Ci(d,i)&&zG(V,i);for(;t.length>e;)Ci(d,i=t[e++])&&(~Im(V,i)||zG(V,i));return V}});var Je=r((MN,LG)=>{LG.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var jG=r(OG=>{var om=Xi(),Bm=Je(),pm=Bm.concat("length","prototype");OG.f=Object.getOwnPropertyNames||function(t){return om(t,pm)}});var vG=r(DG=>{DG.f=Object.getOwnPropertySymbols});var PG=r((AN,fG)=>{var rm=fl(),hm=ut(),sm=jG(),Nm=vG(),Qm=Rd(),xm=hm([].concat);fG.exports=rm("Reflect","ownKeys")||function(t){var d=sm.f(Qm(t)),e=Nm.f;return e?xm(d,e(t)):d}});var qG=r((yN,_G)=>{var KG=Zl(),Jm=PG(),um=Wi(),Cm=Kl();_G.exports=function(l,t,d){for(var e=Jm(t),V=Cm.f,i=um.f,n=0;n<e.length;n++){var a=e[n];!KG(l,a)&&!(d&&KG(d,a))&&V(l,a,i(t,a))}}});var tR=r((zN,$G)=>{var Xm=At(),Ym=Ct(),Tm=/#|\.prototype\./,Ud=function(l,t){var d=km[Sm(l)];return d==Hm?!0:d==Mm?!1:Ym(t)?Xm(t):!!t},Sm=Ud.normalize=function(l){return String(l).replace(Tm,".").toLowerCase()},km=Ud.data={},Mm=Ud.NATIVE="N",Hm=Ud.POLYFILL="P";$G.exports=Ud});var Zd=r((wN,lR)=>{var Yi=Et(),Em=Wi().f,Am=mi(),ym=XG(),zm=me(),wm=qG(),Lm=tR();lR.exports=function(l,t){var d=l.target,e=l.global,V=l.stat,i,n,a,b,c,G;if(e?n=Yi:V?n=Yi[d]||zm(d,{}):n=(Yi[d]||{}).prototype,n)for(a in t){if(c=t[a],l.dontCallGetSet?(G=Em(n,a),b=G&&G.value):b=n[a],i=Lm(e?a:d+(V?".":"#")+a,l.forced),!i&&b!==void 0){if(typeof c==typeof b)continue;wm(c,b)}(l.sham||b&&b.sham)&&Am(c,"sham",!0),ym(n,a,c,l)}}});var Ti=r((LN,dR)=>{var Om=Dl();dR.exports=Array.isArray||function(t){return Om(t)=="Array"}});var VR=r((ON,eR)=>{var jm=TypeError,Dm=9007199254740991;eR.exports=function(l){if(l>Dm)throw jm("Maximum allowed index exceeded");return l}});var nR=r((jN,iR)=>{var vm=Dl(),fm=ut();iR.exports=function(l){if(vm(l)==="Function")return fm(l)}});var cR=r((DN,bR)=>{var aR=nR(),Pm=Ie(),Km=Ue(),_m=aR(aR.bind);bR.exports=function(l,t){return Pm(l),t===void 0?l:Km?_m(l,t):function(){return l.apply(t,arguments)}}});var WR=r((vN,RR)=>{"use strict";var qm=Ti(),$m=xe(),t1=VR(),l1=cR(),GR=function(l,t,d,e,V,i,n,a){for(var b=V,c=0,G=n?l1(n,a):!1,R,W;c<e;)c in d&&(R=G?G(d[c],c,t):d[c],i>0&&qm(R)?(W=$m(R),b=GR(l,t,R,W,b,i-1)-1):(t1(b+1),l[b]=R),b++),c++;return b};RR.exports=GR});var FR=r((fN,ZR)=>{var d1=Fl(),e1=d1("toStringTag"),UR={};UR[e1]="z";ZR.exports=String(UR)==="[object z]"});var Si=r((PN,gR)=>{var V1=FR(),i1=Ct(),ue=Dl(),n1=Fl(),a1=n1("toStringTag"),b1=Object,c1=ue(function(){return arguments}())=="Arguments",G1=function(l,t){try{return l[t]}catch(d){}};gR.exports=V1?ue:function(l){var t,d,e;return l===void 0?"Undefined":l===null?"Null":typeof(d=G1(t=b1(l),a1))=="string"?d:c1?ue(t):(e=ue(t))=="Object"&&i1(t.callee)?"Arguments":e}});var rR=r((KN,pR)=>{var R1=ut(),W1=At(),IR=Ct(),U1=Si(),Z1=fl(),F1=ri(),mR=function(){},g1=[],oR=Z1("Reflect","construct"),ki=/^\s*(?:class|function)\b/,I1=R1(ki.exec),m1=!ki.exec(mR),Fd=function(t){if(!IR(t))return!1;try{return oR(mR,g1,t),!0}catch(d){return!1}},BR=function(t){if(!IR(t))return!1;switch(U1(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return m1||!!I1(ki,F1(t))}catch(d){return!0}};BR.sham=!0;pR.exports=!oR||W1(function(){var l;return Fd(Fd.call)||!Fd(Object)||!Fd(function(){l=!0})||l})?BR:Fd});var QR=r((_N,NR)=>{var hR=Ti(),o1=rR(),B1=Ul(),p1=Fl(),r1=p1("species"),sR=Array;NR.exports=function(l){var t;return hR(l)&&(t=l.constructor,o1(t)&&(t===sR||hR(t.prototype))?t=void 0:B1(t)&&(t=t[r1],t===null&&(t=void 0))),t===void 0?sR:t}});var JR=r((qN,xR)=>{var h1=QR();xR.exports=function(l,t){return new(h1(l))(t===0?0:t)}});var uR=r(()=>{"use strict";var s1=Zd(),N1=WR(),Q1=Ie(),x1=ni(),J1=xe(),u1=JR();s1({target:"Array",proto:!0},{flatMap:function(t){var d=x1(this),e=J1(d),V;return Q1(t),V=u1(d,0),V.length=N1(V,d,d,e,0,1,t,arguments.length>1?arguments[1]:void 0),V}})});var XR=r((lQ,CR)=>{var C1=Xi(),X1=Je();CR.exports=Object.keys||function(t){return C1(t,X1)}});var TR=r(YR=>{var Y1=ll(),T1=Ui(),S1=Kl(),k1=Rd(),M1=Gd(),H1=XR();YR.f=Y1&&!T1?Object.defineProperties:function(t,d){k1(t);for(var e=M1(d),V=H1(d),i=V.length,n=0,a;i>n;)S1.f(t,a=V[n++],e[a]);return t}});var kR=r((eQ,SR)=>{var E1=fl();SR.exports=E1("document","documentElement")});var LR=r((VQ,wR)=>{var A1=Rd(),y1=TR(),MR=Je(),z1=pe(),w1=kR(),L1=Gi(),O1=hi(),HR=">",ER="<",Hi="prototype",Ei="script",yR=O1("IE_PROTO"),Mi=function(){},zR=function(l){return ER+Ei+HR+l+ER+"/"+Ei+HR},AR=function(l){l.write(zR("")),l.close();var t=l.parentWindow.Object;return l=null,t},j1=function(){var l=L1("iframe"),t="java"+Ei+":",d;return l.style.display="none",w1.appendChild(l),l.src=String(t),d=l.contentWindow.document,d.open(),d.write(zR("document.F=Object")),d.close(),d.F},Ce,Xe=function(){try{Ce=new ActiveXObject("htmlfile")}catch(t){}Xe=typeof document!="undefined"?document.domain&&Ce?AR(Ce):j1():AR(Ce);for(var l=MR.length;l--;)delete Xe[Hi][MR[l]];return Xe()};z1[yR]=!0;wR.exports=Object.create||function(t,d){var e;return t!==null?(Mi[Hi]=A1(t),e=new Mi,Mi[Hi]=null,e[yR]=t):e=Xe(),d===void 0?e:y1.f(e,d)}});var zi=r((iQ,OR)=>{var D1=Fl(),v1=LR(),f1=Kl().f,Ai=D1("unscopables"),yi=Array.prototype;yi[Ai]==null&&f1(yi,Ai,{configurable:!0,value:v1(null)});OR.exports=function(l){yi[Ai][l]=!0}});var jR=r(()=>{var P1=zi();P1("flatMap")});var gd=r((bQ,DR)=>{var K1=Et(),_1=ut();DR.exports=function(l,t){return _1(K1[l].prototype[t])}});var fR=r((cQ,vR)=>{uR();jR();var q1=gd();vR.exports=q1("Array","flatMap")});var KR=r((GQ,PR)=>{var $1=fR();PR.exports=$1});var qR=r((RQ,_R)=>{var to=KR();_R.exports=to});var $R=r(()=>{"use strict";var lo=Zd(),eo=ui().includes,Vo=At(),io=zi(),no=Vo(function(){return!Array(1).includes()});lo({target:"Array",proto:!0,forced:no},{includes:function(t){return eo(this,t,arguments.length>1?arguments[1]:void 0)}});io("includes")});var l0=r((ZQ,t0)=>{$R();var ao=gd();t0.exports=ao("Array","includes")});var e0=r((FQ,d0)=>{var bo=l0();d0.exports=bo});var i0=r((gQ,V0)=>{var co=e0();V0.exports=co});var a0=r((IQ,n0)=>{var Go=Ul(),Ro=Dl(),Wo=Fl(),Uo=Wo("match");n0.exports=function(l){var t;return Go(l)&&((t=l[Uo])!==void 0?!!t:Ro(l)=="RegExp")}});var c0=r((mQ,b0)=>{var Zo=a0(),Fo=TypeError;b0.exports=function(l){if(Zo(l))throw Fo("The method doesn't accept regular expressions");return l}});var Ye=r((oQ,G0)=>{var go=Si(),Io=String;G0.exports=function(l){if(go(l)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Io(l)}});var W0=r((BQ,R0)=>{var mo=Fl(),oo=mo("match");R0.exports=function(l){var t=/./;try{"/./"[l](t)}catch(d){try{return t[oo]=!1,"/./"[l](t)}catch(e){}}return!1}});var Z0=r(()=>{"use strict";var Bo=Zd(),po=ut(),ro=c0(),ho=vl(),U0=Ye(),so=W0(),No=po("".indexOf);Bo({target:"String",proto:!0,forced:!so("includes")},{includes:function(t){return!!~No(U0(ho(this)),U0(ro(t)),arguments.length>1?arguments[1]:void 0)}})});var g0=r((hQ,F0)=>{Z0();var Qo=gd();F0.exports=Qo("String","includes")});var m0=r((sQ,I0)=>{var xo=g0();I0.exports=xo});var B0=r((NQ,o0)=>{var Jo=m0();o0.exports=Jo});var r0=r((QQ,p0)=>{"use strict";var uo=Qe(),Co=Ye(),Xo=vl(),Yo=RangeError;p0.exports=function(t){var d=Co(Xo(this)),e="",V=uo(t);if(V<0||V==1/0)throw Yo("Wrong number of repetitions");for(;V>0;(V>>>=1)&&(d+=d))V&1&&(e+=d);return e}});var x0=r((xQ,Q0)=>{var N0=ut(),To=Ji(),h0=Ye(),So=r0(),ko=vl(),Mo=N0(So),Ho=N0("".slice),Eo=Math.ceil,s0=function(l){return function(t,d,e){var V=h0(ko(t)),i=To(d),n=V.length,a=e===void 0?" ":h0(e),b,c;return i<=n||a==""?V:(b=i-n,c=Mo(a,Eo(b/a.length)),c.length>b&&(c=Ho(c,0,b)),l?V+c:c+V)}};Q0.exports={start:s0(!1),end:s0(!0)}});var u0=r((JQ,J0)=>{var Ao=_V();J0.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(Ao)});var C0=r(()=>{"use strict";var yo=Zd(),zo=x0().start,wo=u0();yo({target:"String",proto:!0,forced:wo},{padStart:function(t){return zo(this,t,arguments.length>1?arguments[1]:void 0)}})});var Y0=r((XQ,X0)=>{C0();var Lo=gd();X0.exports=Lo("String","padStart")});var S0=r((YQ,T0)=>{var Oo=Y0();T0.exports=Oo});var M0=r((TQ,k0)=>{var jo=S0();k0.exports=jo});var E0=r(H0=>{(function(l){"use strict";if(l.fetch)return;var t={searchParams:"URLSearchParams"in l,iterable:"Symbol"in l&&"iterator"in Symbol,blob:"FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch(g){return!1}}(),formData:"FormData"in l,arrayBuffer:"ArrayBuffer"in l};if(t.arrayBuffer)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],e=function(g){return g&&DataView.prototype.isPrototypeOf(g)},V=ArrayBuffer.isView||function(g){return g&&d.indexOf(Object.prototype.toString.call(g))>-1};function i(g){if(typeof g!="string"&&(g=String(g)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(g))throw new TypeError("Invalid character in header field name");return g.toLowerCase()}function n(g){return typeof g!="string"&&(g=String(g)),g}function a(g){var F={next:function(){var u=g.shift();return{done:u===void 0,value:u}}};return t.iterable&&(F[Symbol.iterator]=function(){return F}),F}function b(g){this.map={},g instanceof b?g.forEach(function(F,u){this.append(u,F)},this):Array.isArray(g)?g.forEach(function(F){this.append(F[0],F[1])},this):g&&Object.getOwnPropertyNames(g).forEach(function(F){this.append(F,g[F])},this)}b.prototype.append=function(g,F){g=i(g),F=n(F);var u=this.map[g];this.map[g]=u?u+","+F:F},b.prototype.delete=function(g){delete this.map[i(g)]},b.prototype.get=function(g){return g=i(g),this.has(g)?this.map[g]:null},b.prototype.has=function(g){return this.map.hasOwnProperty(i(g))},b.prototype.set=function(g,F){this.map[i(g)]=n(F)},b.prototype.forEach=function(g,F){for(var u in this.map)this.map.hasOwnProperty(u)&&g.call(F,this.map[u],u,this)},b.prototype.keys=function(){var g=[];return this.forEach(function(F,u){g.push(u)}),a(g)},b.prototype.values=function(){var g=[];return this.forEach(function(F){g.push(F)}),a(g)},b.prototype.entries=function(){var g=[];return this.forEach(function(F,u){g.push([u,F])}),a(g)},t.iterable&&(b.prototype[Symbol.iterator]=b.prototype.entries);function c(g){if(g.bodyUsed)return Promise.reject(new TypeError("Already read"));g.bodyUsed=!0}function G(g){return new Promise(function(F,u){g.onload=function(){F(g.result)},g.onerror=function(){u(g.error)}})}function R(g){var F=new FileReader,u=G(F);return F.readAsArrayBuffer(g),u}function W(g){var F=new FileReader,u=G(F);return F.readAsText(g),u}function Z(g){for(var F=new Uint8Array(g),u=new Array(F.length),T=0;T<F.length;T++)u[T]=String.fromCharCode(F[T]);return u.join("")}function o(g){if(g.slice)return g.slice(0);var F=new Uint8Array(g.byteLength);return F.set(new Uint8Array(g)),F.buffer}function U(){return this.bodyUsed=!1,this._initBody=function(g){if(this._bodyInit=g,!g)this._bodyText="";else if(typeof g=="string")this._bodyText=g;else if(t.blob&&Blob.prototype.isPrototypeOf(g))this._bodyBlob=g;else if(t.formData&&FormData.prototype.isPrototypeOf(g))this._bodyFormData=g;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(g))this._bodyText=g.toString();else if(t.arrayBuffer&&t.blob&&e(g))this._bodyArrayBuffer=o(g.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else if(t.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(g)||V(g)))this._bodyArrayBuffer=o(g);else throw new Error("unsupported BodyInit type");this.headers.get("content-type")||(typeof g=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(g)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var g=c(this);if(g)return g;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(R)}),this.text=function(){var g=c(this);if(g)return g;if(this._bodyBlob)return W(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(Z(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},t.formData&&(this.formData=function(){return this.text().then(Y)}),this.json=function(){return this.text().then(JSON.parse)},this}var I=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function B(g){var F=g.toUpperCase();return I.indexOf(F)>-1?F:g}function N(g,F){F=F||{};var u=F.body;if(g instanceof N){if(g.bodyUsed)throw new TypeError("Already read");this.url=g.url,this.credentials=g.credentials,F.headers||(this.headers=new b(g.headers)),this.method=g.method,this.mode=g.mode,!u&&g._bodyInit!=null&&(u=g._bodyInit,g.bodyUsed=!0)}else this.url=String(g);if(this.credentials=F.credentials||this.credentials||"omit",(F.headers||!this.headers)&&(this.headers=new b(F.headers)),this.method=B(F.method||this.method||"GET"),this.mode=F.mode||this.mode||null,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&u)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(u)}N.prototype.clone=function(){return new N(this,{body:this._bodyInit})};function Y(g){var F=new FormData;return g.trim().split("&").forEach(function(u){if(u){var T=u.split("="),k=T.shift().replace(/\+/g," "),Q=T.join("=").replace(/\+/g," ");F.append(decodeURIComponent(k),decodeURIComponent(Q))}}),F}function C(g){var F=new b,u=g.replace(/\r?\n[\t ]+/g," ");return u.split(/\r?\n/).forEach(function(T){var k=T.split(":"),Q=k.shift().trim();if(Q){var S=k.join(":").trim();F.append(Q,S)}}),F}U.call(N.prototype);function h(g,F){F||(F={}),this.type="default",this.status=F.status===void 0?200:F.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in F?F.statusText:"OK",this.headers=new b(F.headers),this.url=F.url||"",this._initBody(g)}U.call(h.prototype),h.prototype.clone=function(){return new h(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new b(this.headers),url:this.url})},h.error=function(){var g=new h(null,{status:0,statusText:""});return g.type="error",g};var m=[301,302,303,307,308];h.redirect=function(g,F){if(m.indexOf(F)===-1)throw new RangeError("Invalid status code");return new h(null,{status:F,headers:{location:g}})},l.Headers=b,l.Request=N,l.Response=h,l.fetch=function(g,F){return new Promise(function(u,T){var k=new N(g,F),Q=new XMLHttpRequest;Q.onload=function(){var S={status:Q.status,statusText:Q.statusText,headers:C(Q.getAllResponseHeaders()||"")};S.url="responseURL"in Q?Q.responseURL:S.headers.get("X-Request-URL");var j="response"in Q?Q.response:Q.responseText;u(new h(j,S))},Q.onerror=function(){T(new TypeError("Network request failed"))},Q.ontimeout=function(){T(new TypeError("Network request failed"))},Q.open(k.method,k.url,!0),k.credentials==="include"?Q.withCredentials=!0:k.credentials==="omit"&&(Q.withCredentials=!1),"responseType"in Q&&t.blob&&(Q.responseType="blob"),k.headers.forEach(function(S,j){Q.setRequestHeader(j,S)}),Q.send(typeof k._bodyInit=="undefined"?null:k._bodyInit)})},l.fetch.polyfill=!0})(typeof self!="undefined"?self:H0)});var A0=r((kQ,Li)=>{function wi(){}wi.prototype={on:function(l,t,d){var e=this.e||(this.e={});return(e[l]||(e[l]=[])).push({fn:t,ctx:d}),this},once:function(l,t,d){var e=this;function V(){e.off(l,V),t.apply(d,arguments)}return V._=t,this.on(l,V,d)},emit:function(l){var t=[].slice.call(arguments,1),d=((this.e||(this.e={}))[l]||[]).slice(),e=0,V=d.length;for(e;e<V;e++)d[e].fn.apply(d[e].ctx,t);return this},off:function(l,t){var d=this.e||(this.e={}),e=d[l],V=[];if(e&&t)for(var i=0,n=e.length;i<n;i++)e[i].fn!==t&&e[i].fn._!==t&&V.push(e[i]);return V.length?d[l]=V:delete d[l],this}};Li.exports=wi;Li.exports.TinyEmitter=wi});var pt=r((D0,Ki)=>{(function(l){"use strict";var t=function(){},d=l.requestAnimationFrame||l.webkitRequestAnimationFrame||l.mozRequestAnimationFrame||l.msRequestAnimationFrame||function(c){return setTimeout(c,16)};function e(){var c=this;c.reads=[],c.writes=[],c.raf=d.bind(l),t("initialized",c)}e.prototype={constructor:e,runTasks:function(c){t("run tasks");for(var G;G=c.shift();)G()},measure:function(c,G){t("measure");var R=G?c.bind(G):c;return this.reads.push(R),V(this),R},mutate:function(c,G){t("mutate");var R=G?c.bind(G):c;return this.writes.push(R),V(this),R},clear:function(c){return t("clear",c),n(this.reads,c)||n(this.writes,c)},extend:function(c){if(t("extend",c),typeof c!="object")throw new Error("expected object");var G=Object.create(this);return a(G,c),G.fastdom=this,G.initialize&&G.initialize(),G},catch:null};function V(c){c.scheduled||(c.scheduled=!0,c.raf(i.bind(null,c)),t("flush scheduled"))}function i(c){t("flush");var G=c.writes,R=c.reads,W;try{t("flushing reads",R.length),c.runTasks(R),t("flushing writes",G.length),c.runTasks(G)}catch(Z){W=Z}if(c.scheduled=!1,(R.length||G.length)&&V(c),W)if(t("task errored",W.message),c.catch)c.catch(W);else throw W}function n(c,G){var R=c.indexOf(G);return!!~R&&!!c.splice(R,1)}function a(c,G){for(var R in G)G.hasOwnProperty(R)&&(c[R]=G[R])}var b=l.fastdom=l.fastdom||new e;typeof Ki=="object"&&(Ki.exports=b)})(typeof window!="undefined"?window:D0)});var Se=r(($Q,f0)=>{f0.exports=iB;function iB(l,t,d){return t<d?l<t?t:l>d?d:l:l<d?d:l>t?t:l}});var _i=r((Vx,ke)=>{(function(){"use strict";var l=function(){function t(){}t.prototype=Object.create(null);function d(G,R){for(var W=R.length,Z=0;Z<W;++Z)b(G,R[Z])}var e={}.hasOwnProperty;function V(G,R){G[R]=!0}function i(G,R){if(R.toString===Object.prototype.toString)for(var W in R)e.call(R,W)&&(G[W]=!!R[W]);else G[R.toString()]=!0}var n=/\s+/;function a(G,R){for(var W=R.split(n),Z=W.length,o=0;o<Z;++o)G[W[o]]=!0}function b(G,R){if(R){var W=typeof R;W==="string"?a(G,R):Array.isArray(R)?d(G,R):W==="object"?i(G,R):W==="number"&&V(G,R)}}function c(){for(var G=arguments.length,R=Array(G),W=0;W<G;W++)R[W]=arguments[W];var Z=new t;d(Z,R);var o=[];for(var U in Z)Z[U]&&o.push(U);return o.join(" ")}return c}();typeof ke!="undefined"&&ke.exports?(l.default=l,ke.exports=l):window.classNames=l})()});var K0=r((P0,Me)=>{(function(l){var t={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",e=Object.keys(t);function V(){var a=this;e.forEach(function(b){a[b]={name:d,version:[],versionString:d}})}function i(a,b,c){t[b].forEach(function(G){var R=G[0],W=G[1],Z=c.match(R);Z&&(a[b].name=W,Z[2]?(a[b].versionString=Z[2],a[b].version=[]):Z[1]?(a[b].versionString=Z[1].replace(/_/g,"."),a[b].version=n(Z[1])):(a[b].versionString=d,a[b].version=[]))})}function n(a){return a.split(/[\._]/).map(function(b){return parseInt(b)})}V.prototype.sniff=function(a){var b=this,c=typeof window!="undefined",G=c?navigator.userAgent:"",R=(a||G).toLowerCase();return e.forEach(function(W){i(b,W,R)}),this},typeof Me!="undefined"&&Me.exports?Me.exports=V:(l.Sniffr=new V,l.Sniffr.sniff(navigator.userAgent))})(P0)});var Vn=r((Qx,lW)=>{lW.exports=function(){var l=function(a){return typeof a=="function"},t=function(a){var b=Number(a);return isNaN(b)?0:b===0||!isFinite(b)?b:(b>0?1:-1)*Math.floor(Math.abs(b))},d=Math.pow(2,53)-1,e=function(a){var b=t(a);return Math.min(Math.max(b,0),d)},V=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"}},i=function(a,b){if(a!=null&&b!=null){var c=a[b];if(c==null)return;if(!l(c))throw new TypeError(c+" is not a function");return c}},n=function(a){var b=a.next(),c=!!b.done;return c?!1:b};return function(b){"use strict";var c=this,G=arguments.length>1?arguments[1]:void 0,R;if(typeof G!="undefined"){if(!l(G))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(R=arguments[2])}var W,Z,o=i(b,V(b));if(o!==void 0){W=l(c)?Object(new c):[];var U=o.call(b);if(U==null)throw new TypeError("Array.from requires an array-like or iterable object");Z=0;for(var I,B;;){if(I=n(U),!I)return W.length=Z,W;B=I.value,G?W[Z]=G.call(R,B,Z):W[Z]=B,Z++}}else{var N=Object(b);if(b==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");var Y=e(N.length);W=l(c)?Object(new c(Y)):new Array(Y),Z=0;for(var C;Z<Y;)C=N[Z],G?W[Z]=G.call(R,C,Z):W[Z]=C,Z++;W.length=Y}return W}}()});var VW=r((Tx,eW)=>{var pd,rd;typeof document.hidden!="undefined"?(pd="hidden",rd="visibilitychange"):typeof document.mozHidden!="undefined"?(pd="mozHidden",rd="mozvisibilitychange"):typeof document.msHidden!="undefined"?(pd="msHidden",rd="msvisibilitychange"):typeof document.webkitHidden!="undefined"&&(pd="webkitHidden",rd="webkitvisibilitychange");eW.exports={hidden:pd,visibilityChange:rd}});var bW=r((sd,bn)=>{(function(l,t){typeof sd=="object"&&typeof bn=="object"?bn.exports=t():typeof sd=="object"?sd.StateMachine=t():l.StateMachine=t()})(sd,function(){return d={},l.m=t=[function(e,V,i){"use strict";e.exports=function(n,a){for(var b,c,G=1;G<arguments.length;G++)for(c in b=arguments[G])b.hasOwnProperty(c)&&(n[c]=b[c]);return n}},function(e,V,i){"use strict";var n=i(0);e.exports={build:function(a,b){for(var c,G=b.plugins,R=0,W=G.length;R<W;R++)(c=G[R]).methods&&n(a,c.methods),c.properties&&Object.defineProperties(a,c.properties)},hook:function(a,b,c){var G,R,W,Z,o=a.config.plugins,U=[a.context];for(c&&(U=U.concat(c)),G=0,R=o.length;G<R;G++)Z=o[G],(W=o[G][b])&&W.apply(Z,U)}}},function(e,V,i){"use strict";function n(a){if(a.length===0)return a;var b,c,G=a.split(/[_-]/);if(G.length===1&&G[0][0].toLowerCase()===G[0][0])return a;for(c=G[0].toLowerCase(),b=1;b<G.length;b++)c=c+G[b].charAt(0).toUpperCase()+G[b].substring(1).toLowerCase();return c}n.prepended=function(a,b){return a+(b=n(b))[0].toUpperCase()+b.substring(1)},e.exports=n},function(e,V,i){"use strict";var n=i(0),a=i(2);function b(c,G){c=c||{},this.options=c,this.defaults=G.defaults,this.states=[],this.transitions=[],this.map={},this.lifecycle=this.configureLifecycle(),this.init=this.configureInitTransition(c.init),this.data=this.configureData(c.data),this.methods=this.configureMethods(c.methods),this.map[this.defaults.wildcard]={},this.configureTransitions(c.transitions||[]),this.plugins=this.configurePlugins(c.plugins,G.plugin)}n(b.prototype,{addState:function(c){this.map[c]||(this.states.push(c),this.addStateLifecycleNames(c),this.map[c]={})},addStateLifecycleNames:function(c){this.lifecycle.onEnter[c]=a.prepended("onEnter",c),this.lifecycle.onLeave[c]=a.prepended("onLeave",c),this.lifecycle.on[c]=a.prepended("on",c)},addTransition:function(c){this.transitions.indexOf(c)<0&&(this.transitions.push(c),this.addTransitionLifecycleNames(c))},addTransitionLifecycleNames:function(c){this.lifecycle.onBefore[c]=a.prepended("onBefore",c),this.lifecycle.onAfter[c]=a.prepended("onAfter",c),this.lifecycle.on[c]=a.prepended("on",c)},mapTransition:function(c){var G=c.name,R=c.from,W=c.to;return this.addState(R),typeof W!="function"&&this.addState(W),this.addTransition(G),this.map[R][G]=c},configureLifecycle:function(){return{onBefore:{transition:"onBeforeTransition"},onAfter:{transition:"onAfterTransition"},onEnter:{state:"onEnterState"},onLeave:{state:"onLeaveState"},on:{transition:"onTransition"}}},configureInitTransition:function(c){return typeof c=="string"?this.mapTransition(n({},this.defaults.init,{to:c,active:!0})):typeof c=="object"?this.mapTransition(n({},this.defaults.init,c,{active:!0})):(this.addState(this.defaults.init.from),this.defaults.init)},configureData:function(c){return typeof c=="function"?c:typeof c=="object"?function(){return c}:function(){return{}}},configureMethods:function(c){return c||{}},configurePlugins:function(c,G){for(var R,W=0,Z=(c=c||[]).length;W<Z;W++)typeof(R=c[W])=="function"&&(c[W]=R=R()),R.configure&&R.configure(this);return c},configureTransitions:function(c){for(var G,R,W,Z,o=this.defaults.wildcard,U=0;U<c.length;U++)for(R=c[U],W=Array.isArray(R.from)?R.from:[R.from||o],Z=R.to||o,G=0;G<W.length;G++)this.mapTransition({name:R.name,from:W[G],to:Z})},transitionFor:function(c,G){var R=this.defaults.wildcard;return this.map[c][G]||this.map[R][G]},transitionsFor:function(c){var G=this.defaults.wildcard;return Object.keys(this.map[c]).concat(Object.keys(this.map[G]))},allStates:function(){return this.states},allTransitions:function(){return this.transitions}}),e.exports=b},function(e,V,i){var n=i(0),a=i(6),b=i(1),c=[null,[]];function G(R,W){this.context=R,this.config=W,this.state=W.init.from,this.observers=[R]}n(G.prototype,{init:function(R){if(n(this.context,this.config.data.apply(this.context,R)),b.hook(this,"init"),this.config.init.active)return this.fire(this.config.init.name,[])},is:function(R){return Array.isArray(R)?0<=R.indexOf(this.state):this.state===R},isPending:function(){return this.pending},can:function(R){return!this.isPending()&&!!this.seek(R)},cannot:function(R){return!this.can(R)},allStates:function(){return this.config.allStates()},allTransitions:function(){return this.config.allTransitions()},transitions:function(){return this.config.transitionsFor(this.state)},seek:function(o,W){var Z=this.config.defaults.wildcard,o=this.config.transitionFor(this.state,o),o=o&&o.to;return typeof o=="function"?o.apply(this.context,W):o===Z?this.state:o},fire:function(R,W){return this.transit(R,this.state,this.seek(R,W),W)},transit:function(R,W,Z,o){var U=this.config.lifecycle,I=this.config.options.observeUnchangedState||W!==Z;return Z?this.isPending()?this.context.onPendingTransition(R,W,Z):(this.config.addState(Z),this.beginTransit(),o.unshift({transition:R,from:W,to:Z,fsm:this.context}),this.observeEvents([this.observersForEvent(U.onBefore.transition),this.observersForEvent(U.onBefore[R]),I?this.observersForEvent(U.onLeave.state):c,I?this.observersForEvent(U.onLeave[W]):c,this.observersForEvent(U.on.transition),I?["doTransit",[this]]:c,I?this.observersForEvent(U.onEnter.state):c,I?this.observersForEvent(U.onEnter[Z]):c,I?this.observersForEvent(U.on[Z]):c,this.observersForEvent(U.onAfter.transition),this.observersForEvent(U.onAfter[R]),this.observersForEvent(U.on[R])],o)):this.context.onInvalidTransition(R,W,Z)},beginTransit:function(){this.pending=!0},endTransit:function(R){return this.pending=!1,R},failTransit:function(R){throw this.pending=!1,R},doTransit:function(R){this.state=R.to},observe:function(R){var W;R.length===2?((W={})[R[0]]=R[1],this.observers.push(W)):this.observers.push(R[0])},observersForEvent:function(R){for(var W,Z=0,o=this.observers.length,U=[];Z<o;Z++)(W=this.observers[Z])[R]&&U.push(W);return[R,U,!0]},observeEvents:function(R,W,Z,o){if(R.length===0)return this.endTransit(o===void 0||o);var U=R[0][0],I=R[0][1],B=R[0][2];return(W[0].event=U)&&B&&U!==Z&&b.hook(this,"lifecycle",W),I.length===0?(R.shift(),this.observeEvents(R,W,U,o)):(I=I.shift(),I=I[U].apply(I,W),I&&typeof I.then=="function"?I.then(this.observeEvents.bind(this,R,W,U)).catch(this.failTransit.bind(this)):I===!1?this.endTransit(!1):this.observeEvents(R,W,U,I))},onInvalidTransition:function(R,W,Z){throw new a("transition is invalid in current state",R,W,Z,this.state)},onPendingTransition:function(R,W,Z){throw new a("transition is invalid while previous transition is still in progress",R,W,Z,this.state)}}),e.exports=G},function(e,V,i){"use strict";var n=i(0),a=i(2),b=i(1),c=i(3),G=i(4),R={is:function(I){return this._fsm.is(I)},can:function(I){return this._fsm.can(I)},cannot:function(I){return this._fsm.cannot(I)},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(I,B,N){return this._fsm.onInvalidTransition(I,B,N)},onPendingTransition:function(I,B,N){return this._fsm.onPendingTransition(I,B,N)}},W={state:{configurable:!1,enumerable:!0,get:function(){return this._fsm.state},set:function(I){throw Error("use transitions to change state")}}};function Z(I){return o(this||{},I)}function o(I,B){return U(I,new c(B,Z)),I._fsm(),I}function U(I,B){if(typeof I!="object"||Array.isArray(I))throw Error("StateMachine can only be applied to objects");b.build(I,B),Object.defineProperties(I,W),n(I,R),n(I,B.methods),B.allTransitions().forEach(function(N){I[a(N)]=function(){return this._fsm.fire(N,[].slice.call(arguments))}}),I._fsm=function(){this._fsm=new G(this,B),this._fsm.init(arguments)}}Z.version="3.0.1",Z.factory=function(){var I,B=typeof arguments[0]=="function"?(I=arguments[0],arguments[1]||{}):(I=function(){this._fsm.apply(this,arguments)},arguments[0]||{}),B=new c(B,Z);return U(I.prototype,B),I.prototype._fsm.config=B,I},Z.apply=o,Z.defaults={wildcard:"*",init:{name:"init",from:"none"}},e.exports=Z},function(e,V,i){"use strict";e.exports=function(n,a,b,c,G){this.message=n,this.transition=a,this.from=b,this.to=c,this.current=G}}],l.c=d,l.i=function(e){return e},l.d=function(e,V,i){l.o(e,V)||Object.defineProperty(e,V,{configurable:!1,enumerable:!0,get:i})},l.n=function(e){var V=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(V,"a",V),V},l.o=function(e,V){return Object.prototype.hasOwnProperty.call(e,V)},l.p="",l(l.s=5);function l(e){if(d[e])return d[e].exports;var V=d[e]={i:e,l:!1,exports:{}};return t[e].call(V.exports,V,V.exports,l),V.l=!0,V.exports}var t,d})});var MW=r((Sn,kn)=>{(function(l,t){typeof Sn=="object"&&typeof kn!="undefined"?kn.exports=t():(l=l||self,l.DOMPurify=t())})(Sn,function(){"use strict";function l(A){if(Array.isArray(A)){for(var H=0,y=Array(A.length);H<A.length;H++)y[H]=A[H];return y}else return Array.from(A)}var t=Object.hasOwnProperty,d=Object.setPrototypeOf,e=Object.isFrozen,V=Object.getPrototypeOf,i=Object.getOwnPropertyDescriptor,n=Object.freeze,a=Object.seal,b=Object.create,c=typeof Reflect!="undefined"&&Reflect,G=c.apply,R=c.construct;G||(G=function(H,y,_){return H.apply(y,_)}),n||(n=function(H){return H}),a||(a=function(H){return H}),R||(R=function(H,y){return new(Function.prototype.bind.apply(H,[null].concat(l(y))))});var W=m(Array.prototype.forEach),Z=m(Array.prototype.pop),o=m(Array.prototype.push),U=m(String.prototype.toLowerCase),I=m(String.prototype.match),B=m(String.prototype.replace),N=m(String.prototype.indexOf),Y=m(String.prototype.trim),C=m(RegExp.prototype.test),h=g(TypeError);function m(A){return function(H){for(var y=arguments.length,_=Array(y>1?y-1:0),at=1;at<y;at++)_[at-1]=arguments[at];return G(A,H,_)}}function g(A){return function(){for(var H=arguments.length,y=Array(H),_=0;_<H;_++)y[_]=arguments[_];return R(A,y)}}function F(A,H){d&&d(A,null);for(var y=H.length;y--;){var _=H[y];if(typeof _=="string"){var at=U(_);at!==_&&(e(H)||(H[y]=at),_=at)}A[_]=!0}return A}function u(A){var H=b(null),y=void 0;for(y in A)G(t,A,[y])&&(H[y]=A[y]);return H}function T(A,H){for(;A!==null;){var y=i(A,H);if(y){if(y.get)return m(y.get);if(typeof y.value=="function")return m(y.value)}A=V(A)}function _(at){return console.warn("fallback value for",at),null}return _}var k=n(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Q=n(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),S=n(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),j=n(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),f=n(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),x=n(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),J=n(["#text"]),M=n(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),v=n(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),D=n(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),et=n(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Zt=a(/\{\{[\s\S]*|[\s\S]*\}\}/gm),Ut=a(/<%[\s\S]*|[\s\S]*%>/gm),mt=a(/^data-[\-\w.\u00B7-\uFFFF]/),Ft=a(/^aria-[\-\w]+$/),Nl=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_t=a(/^(?:\w+script|data):/i),Mt=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),le=a(/^html$/i),z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A};function $(A){if(Array.isArray(A)){for(var H=0,y=Array(A.length);H<A.length;H++)y[H]=A[H];return y}else return Array.from(A)}var it=function(){return typeof window=="undefined"?null:window},Yt=function(H,y){if((typeof H=="undefined"?"undefined":z(H))!=="object"||typeof H.createPolicy!="function")return null;var _=null,at="data-tt-policy-suffix";y.currentScript&&y.currentScript.hasAttribute(at)&&(_=y.currentScript.getAttribute(at));var Qt="dompurify"+(_?"#"+_:"");try{return H.createPolicy(Qt,{createHTML:function(Ht){return Ht}})}catch(rt){return console.warn("TrustedTypes policy "+Qt+" could not be created."),null}};function jt(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:it(),H=function(p){return jt(p)};if(H.version="2.3.6",H.removed=[],!A||!A.document||A.document.nodeType!==9)return H.isSupported=!1,H;var y=A.document,_=A.document,at=A.DocumentFragment,Qt=A.HTMLTemplateElement,rt=A.Node,Ht=A.Element,El=A.NodeFilter,Ql=A.NamedNodeMap,de=Ql===void 0?A.NamedNodeMap||A.MozNamedAttrMap:Ql,ee=A.HTMLFormElement,Ve=A.DOMParser,ct=A.trustedTypes,xt=Ht.prototype,cl=T(xt,"cloneNode"),qt=T(xt,"nextSibling"),xV=T(xt,"childNodes"),Gl=T(xt,"parentNode");if(typeof Qt=="function"){var nd=_.createElement("template");nd.content&&nd.content.ownerDocument&&(_=nd.content.ownerDocument)}var Tt=Yt(ct,y),ie=Tt?Tt.createHTML(""):"",ne=_,JV=ne.implementation,hF=ne.createNodeIterator,sF=ne.createDocumentFragment,NF=ne.getElementsByTagName,QF=y.importNode,Ib={};try{Ib=u(_).documentMode?_.documentMode:{}}catch(O){}var Dt={};H.isSupported=typeof Gl=="function"&&JV&&typeof JV.createHTMLDocument!="undefined"&&Ib!==9;var uV=Zt,CV=Ut,xF=mt,JF=Ft,uF=_t,mb=Mt,XV=Nl,gt=null,ob=F({},[].concat($(k),$(Q),$(S),$(f),$(J))),ot=null,Bb=F({},[].concat($(M),$(v),$(D),$(et))),Gt=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ad=null,YV=null,pb=!0,TV=!0,rb=!1,Al=!1,xl=!1,SV=!1,kV=!1,yl=!1,ae=!1,be=!1,hb=!0,MV=!0,bd=!1,zl={},wl=null,sb=F({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Nb=null,Qb=F({},["audio","video","img","source","image","track"]),HV=null,xb=F({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),EV="http://www.w3.org/1998/Math/MathML",AV="http://www.w3.org/2000/svg",Rl="http://www.w3.org/1999/xhtml",ce=Rl,yV=!1,Ll=void 0,CF=["application/xhtml+xml","text/html"],XF="text/html",Jl=void 0,Ol=null,YF=_.createElement("form"),Jb=function(p){return p instanceof RegExp||p instanceof Function},zV=function(p){Ol&&Ol===p||((!p||(typeof p=="undefined"?"undefined":z(p))!=="object")&&(p={}),p=u(p),gt="ALLOWED_TAGS"in p?F({},p.ALLOWED_TAGS):ob,ot="ALLOWED_ATTR"in p?F({},p.ALLOWED_ATTR):Bb,HV="ADD_URI_SAFE_ATTR"in p?F(u(xb),p.ADD_URI_SAFE_ATTR):xb,Nb="ADD_DATA_URI_TAGS"in p?F(u(Qb),p.ADD_DATA_URI_TAGS):Qb,wl="FORBID_CONTENTS"in p?F({},p.FORBID_CONTENTS):sb,ad="FORBID_TAGS"in p?F({},p.FORBID_TAGS):{},YV="FORBID_ATTR"in p?F({},p.FORBID_ATTR):{},zl="USE_PROFILES"in p?p.USE_PROFILES:!1,pb=p.ALLOW_ARIA_ATTR!==!1,TV=p.ALLOW_DATA_ATTR!==!1,rb=p.ALLOW_UNKNOWN_PROTOCOLS||!1,Al=p.SAFE_FOR_TEMPLATES||!1,xl=p.WHOLE_DOCUMENT||!1,yl=p.RETURN_DOM||!1,ae=p.RETURN_DOM_FRAGMENT||!1,be=p.RETURN_TRUSTED_TYPE||!1,kV=p.FORCE_BODY||!1,hb=p.SANITIZE_DOM!==!1,MV=p.KEEP_CONTENT!==!1,bd=p.IN_PLACE||!1,XV=p.ALLOWED_URI_REGEXP||XV,ce=p.NAMESPACE||Rl,p.CUSTOM_ELEMENT_HANDLING&&Jb(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Gt.tagNameCheck=p.CUSTOM_ELEMENT_HANDLING.tagNameCheck),p.CUSTOM_ELEMENT_HANDLING&&Jb(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Gt.attributeNameCheck=p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),p.CUSTOM_ELEMENT_HANDLING&&typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Gt.allowCustomizedBuiltInElements=p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ll=CF.indexOf(p.PARSER_MEDIA_TYPE)===-1?Ll=XF:Ll=p.PARSER_MEDIA_TYPE,Jl=Ll==="application/xhtml+xml"?function(X){return X}:U,Al&&(TV=!1),ae&&(yl=!0),zl&&(gt=F({},[].concat($(J))),ot=[],zl.html===!0&&(F(gt,k),F(ot,M)),zl.svg===!0&&(F(gt,Q),F(ot,v),F(ot,et)),zl.svgFilters===!0&&(F(gt,S),F(ot,v),F(ot,et)),zl.mathMl===!0&&(F(gt,f),F(ot,D),F(ot,et))),p.ADD_TAGS&&(gt===ob&&(gt=u(gt)),F(gt,p.ADD_TAGS)),p.ADD_ATTR&&(ot===Bb&&(ot=u(ot)),F(ot,p.ADD_ATTR)),p.ADD_URI_SAFE_ATTR&&F(HV,p.ADD_URI_SAFE_ATTR),p.FORBID_CONTENTS&&(wl===sb&&(wl=u(wl)),F(wl,p.FORBID_CONTENTS)),MV&&(gt["#text"]=!0),xl&&F(gt,["html","head","body"]),gt.table&&(F(gt,["tbody"]),delete ad.tbody),n&&n(p),Ol=p)},ub=F({},["mi","mo","mn","ms","mtext"]),Cb=F({},["foreignobject","desc","title","annotation-xml"]),Ge=F({},Q);F(Ge,S),F(Ge,j);var wV=F({},f);F(wV,x);var TF=function(p){var X=Gl(p);(!X||!X.tagName)&&(X={namespaceURI:Rl,tagName:"template"});var w=U(p.tagName),dt=U(X.tagName);if(p.namespaceURI===AV)return X.namespaceURI===Rl?w==="svg":X.namespaceURI===EV?w==="svg"&&(dt==="annotation-xml"||ub[dt]):!!Ge[w];if(p.namespaceURI===EV)return X.namespaceURI===Rl?w==="math":X.namespaceURI===AV?w==="math"&&Cb[dt]:!!wV[w];if(p.namespaceURI===Rl){if(X.namespaceURI===AV&&!Cb[dt]||X.namespaceURI===EV&&!ub[dt])return!1;var ht=F({},["title","style","font","a","script"]);return!wV[w]&&(ht[w]||!Ge[w])}return!1},$t=function(p){o(H.removed,{element:p});try{p.parentNode.removeChild(p)}catch(X){try{p.outerHTML=ie}catch(w){p.remove()}}},Xb=function(p,X){try{o(H.removed,{attribute:X.getAttributeNode(p),from:X})}catch(w){o(H.removed,{attribute:null,from:X})}if(X.removeAttribute(p),p==="is"&&!ot[p])if(yl||ae)try{$t(X)}catch(w){}else try{X.setAttribute(p,"")}catch(w){}},Yb=function(p){var X=void 0,w=void 0;if(kV)p="<remove></remove>"+p;else{var dt=I(p,/^[\r\n\t ]+/);w=dt&&dt[0]}Ll==="application/xhtml+xml"&&(p='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+p+"</body></html>");var ht=Tt?Tt.createHTML(p):p;if(ce===Rl)try{X=new Ve().parseFromString(ht,Ll)}catch(Bt){}if(!X||!X.documentElement){X=JV.createDocument(ce,"template",null);try{X.documentElement.innerHTML=yV?"":ht}catch(Bt){}}var st=X.body||X.documentElement;return p&&w&&st.insertBefore(_.createTextNode(w),st.childNodes[0]||null),ce===Rl?NF.call(X,xl?"html":"body")[0]:xl?X.documentElement:st},Tb=function(p){return hF.call(p.ownerDocument||p,p,El.SHOW_ELEMENT|El.SHOW_COMMENT|El.SHOW_TEXT,null,!1)},SF=function(p){return p instanceof ee&&(typeof p.nodeName!="string"||typeof p.textContent!="string"||typeof p.removeChild!="function"||!(p.attributes instanceof de)||typeof p.removeAttribute!="function"||typeof p.setAttribute!="function"||typeof p.namespaceURI!="string"||typeof p.insertBefore!="function")},cd=function(p){return(typeof rt=="undefined"?"undefined":z(rt))==="object"?p instanceof rt:p&&(typeof p=="undefined"?"undefined":z(p))==="object"&&typeof p.nodeType=="number"&&typeof p.nodeName=="string"},tl=function(p,X,w){Dt[p]&&W(Dt[p],function(dt){dt.call(H,X,w,Ol)})},Sb=function(p){var X=void 0;if(tl("beforeSanitizeElements",p,null),SF(p)||I(p.nodeName,/[\u0080-\uFFFF]/))return $t(p),!0;var w=Jl(p.nodeName);if(tl("uponSanitizeElement",p,{tagName:w,allowedTags:gt}),!cd(p.firstElementChild)&&(!cd(p.content)||!cd(p.content.firstElementChild))&&C(/<[/\w]/g,p.innerHTML)&&C(/<[/\w]/g,p.textContent)||w==="select"&&C(/<template/i,p.innerHTML))return $t(p),!0;if(!gt[w]||ad[w]){if(!ad[w]&&Mb(w)&&(Gt.tagNameCheck instanceof RegExp&&C(Gt.tagNameCheck,w)||Gt.tagNameCheck instanceof Function&&Gt.tagNameCheck(w)))return!1;if(MV&&!wl[w]){var dt=Gl(p)||p.parentNode,ht=xV(p)||p.childNodes;if(ht&&dt)for(var st=ht.length,Bt=st-1;Bt>=0;--Bt)dt.insertBefore(cl(ht[Bt],!0),qt(p))}return $t(p),!0}return p instanceof Ht&&!TF(p)||(w==="noscript"||w==="noembed")&&C(/<\/no(script|embed)/i,p.innerHTML)?($t(p),!0):(Al&&p.nodeType===3&&(X=p.textContent,X=B(X,uV," "),X=B(X,CV," "),p.textContent!==X&&(o(H.removed,{element:p.cloneNode()}),p.textContent=X)),tl("afterSanitizeElements",p,null),!1)},kb=function(p,X,w){if(hb&&(X==="id"||X==="name")&&(w in _||w in YF))return!1;if(!(TV&&!YV[X]&&C(xF,X))){if(!(pb&&C(JF,X))){if(!ot[X]||YV[X]){if(!(Mb(p)&&(Gt.tagNameCheck instanceof RegExp&&C(Gt.tagNameCheck,p)||Gt.tagNameCheck instanceof Function&&Gt.tagNameCheck(p))&&(Gt.attributeNameCheck instanceof RegExp&&C(Gt.attributeNameCheck,X)||Gt.attributeNameCheck instanceof Function&&Gt.attributeNameCheck(X))||X==="is"&&Gt.allowCustomizedBuiltInElements&&(Gt.tagNameCheck instanceof RegExp&&C(Gt.tagNameCheck,w)||Gt.tagNameCheck instanceof Function&&Gt.tagNameCheck(w))))return!1}else if(!HV[X]){if(!C(XV,B(w,mb,""))){if(!((X==="src"||X==="xlink:href"||X==="href")&&p!=="script"&&N(w,"data:")===0&&Nb[p])){if(!(rb&&!C(uF,B(w,mb,"")))){if(w)return!1}}}}}}return!0},Mb=function(p){return p.indexOf("-")>0},Hb=function(p){var X=void 0,w=void 0,dt=void 0,ht=void 0;tl("beforeSanitizeAttributes",p,null);var st=p.attributes;if(st){var Bt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ot};for(ht=st.length;ht--;){X=st[ht];var Re=X,Jt=Re.name,Eb=Re.namespaceURI;if(w=Y(X.value),dt=Jl(Jt),Bt.attrName=dt,Bt.attrValue=w,Bt.keepAttr=!0,Bt.forceKeepAttr=void 0,tl("uponSanitizeAttribute",p,Bt),w=Bt.attrValue,!Bt.forceKeepAttr&&(Xb(Jt,p),!!Bt.keepAttr)){if(C(/\/>/i,w)){Xb(Jt,p);continue}Al&&(w=B(w,uV," "),w=B(w,CV," "));var MF=Jl(p.nodeName);if(kb(MF,dt,w))try{Eb?p.setAttributeNS(Eb,Jt,w):p.setAttribute(Jt,w),Z(H.removed)}catch(us){}}}tl("afterSanitizeAttributes",p,null)}},kF=function O(p){var X=void 0,w=Tb(p);for(tl("beforeSanitizeShadowDOM",p,null);X=w.nextNode();)tl("uponSanitizeShadowNode",X,null),!Sb(X)&&(X.content instanceof at&&O(X.content),Hb(X));tl("afterSanitizeShadowDOM",p,null)};return H.sanitize=function(O,p){var X=void 0,w=void 0,dt=void 0,ht=void 0,st=void 0;if(yV=!O,yV&&(O="<!-->"),typeof O!="string"&&!cd(O)){if(typeof O.toString!="function")throw h("toString is not a function");if(O=O.toString(),typeof O!="string")throw h("dirty is not a string, aborting")}if(!H.isSupported){if(z(A.toStaticHTML)==="object"||typeof A.toStaticHTML=="function"){if(typeof O=="string")return A.toStaticHTML(O);if(cd(O))return A.toStaticHTML(O.outerHTML)}return O}if(SV||zV(p),H.removed=[],typeof O=="string"&&(bd=!1),bd){if(O.nodeName){var Bt=Jl(O.nodeName);if(!gt[Bt]||ad[Bt])throw h("root node is forbidden and cannot be sanitized in-place")}}else if(O instanceof rt)X=Yb("<!---->"),w=X.ownerDocument.importNode(O,!0),w.nodeType===1&&w.nodeName==="BODY"||w.nodeName==="HTML"?X=w:X.appendChild(w);else{if(!yl&&!Al&&!xl&&O.indexOf("<")===-1)return Tt&&be?Tt.createHTML(O):O;if(X=Yb(O),!X)return yl?null:be?ie:""}X&&kV&&$t(X.firstChild);for(var Re=Tb(bd?O:X);dt=Re.nextNode();)dt.nodeType===3&&dt===ht||Sb(dt)||(dt.content instanceof at&&kF(dt.content),Hb(dt),ht=dt);if(ht=null,bd)return O;if(yl){if(ae)for(st=sF.call(X.ownerDocument);X.firstChild;)st.appendChild(X.firstChild);else st=X;return ot.shadowroot&&(st=QF.call(y,st,!0)),st}var Jt=xl?X.outerHTML:X.innerHTML;return xl&&gt["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&C(le,X.ownerDocument.doctype.name)&&(Jt="<!DOCTYPE "+X.ownerDocument.doctype.name+`>
`+Jt),Al&&(Jt=B(Jt,uV," "),Jt=B(Jt,CV," ")),Tt&&be?Tt.createHTML(Jt):Jt},H.setConfig=function(O){zV(O),SV=!0},H.clearConfig=function(){Ol=null,SV=!1},H.isValidAttribute=function(O,p,X){Ol||zV({});var w=Jl(O),dt=Jl(p);return kb(w,dt,X)},H.addHook=function(O,p){typeof p=="function"&&(Dt[O]=Dt[O]||[],o(Dt[O],p))},H.removeHook=function(O){Dt[O]&&Z(Dt[O])},H.removeHooks=function(O){Dt[O]&&(Dt[O]=[])},H.removeAllHooks=function(){Dt={}},H}var bl=jt();return bl})});var EW=r((vu,HW)=>{HW.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var ol=r(Tl=>{var Mn,ap=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Tl.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};Tl.getSymbolTotalCodewords=function(t){return ap[t]};Tl.getBCHDigit=function(l){let t=0;for(;l!==0;)t++,l>>>=1;return t};Tl.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Mn=t};Tl.isKanjiModeEnabled=function(){return typeof Mn!="undefined"};Tl.toSJIS=function(t){return Mn(t)}});var dV=r(kt=>{kt.L={bit:1};kt.M={bit:0};kt.Q={bit:3};kt.H={bit:2};function bp(l){if(typeof l!="string")throw new Error("Param is not a string");switch(l.toLowerCase()){case"l":case"low":return kt.L;case"m":case"medium":return kt.M;case"q":case"quartile":return kt.Q;case"h":case"high":return kt.H;default:throw new Error("Unknown EC Level: "+l)}}kt.isValid=function(t){return t&&typeof t.bit!="undefined"&&t.bit>=0&&t.bit<4};kt.from=function(t,d){if(kt.isValid(t))return t;try{return bp(t)}catch(e){return d}}});var zW=r((Ku,yW)=>{function AW(){this.buffer=[],this.length=0}AW.prototype={get:function(l){let t=Math.floor(l/8);return(this.buffer[t]>>>7-l%8&1)===1},put:function(l,t){for(let d=0;d<t;d++)this.putBit((l>>>t-d-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(l){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),l&&(this.buffer[t]|=128>>>this.length%8),this.length++}};yW.exports=AW});var LW=r((_u,wW)=>{function Td(l){if(!l||l<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=l,this.data=new Uint8Array(l*l),this.reservedBit=new Uint8Array(l*l)}Td.prototype.set=function(l,t,d,e){let V=l*this.size+t;this.data[V]=d,e&&(this.reservedBit[V]=!0)};Td.prototype.get=function(l,t){return this.data[l*this.size+t]};Td.prototype.xor=function(l,t,d){this.data[l*this.size+t]^=d};Td.prototype.isReserved=function(l,t){return this.reservedBit[l*this.size+t]};wW.exports=Td});var OW=r(eV=>{var cp=ol().getSymbolSize;eV.getRowColCoords=function(t){if(t===1)return[];let d=Math.floor(t/7)+2,e=cp(t),V=e===145?26:Math.ceil((e-13)/(2*d-2))*2,i=[e-7];for(let n=1;n<d-1;n++)i[n]=i[n-1]-V;return i.push(6),i.reverse()};eV.getPositions=function(t){let d=[],e=eV.getRowColCoords(t),V=e.length;for(let i=0;i<V;i++)for(let n=0;n<V;n++)i===0&&n===0||i===0&&n===V-1||i===V-1&&n===0||d.push([e[i],e[n]]);return d}});var vW=r(DW=>{var Gp=ol().getSymbolSize,jW=7;DW.getPositions=function(t){let d=Gp(t);return[[0,0],[d-jW,0],[0,d-jW]]}});var fW=r(Vt=>{Vt.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var Sl={N1:3,N2:3,N3:40,N4:10};Vt.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};Vt.from=function(t){return Vt.isValid(t)?parseInt(t,10):void 0};Vt.getPenaltyN1=function(t){let d=t.size,e=0,V=0,i=0,n=null,a=null;for(let b=0;b<d;b++){V=i=0,n=a=null;for(let c=0;c<d;c++){let G=t.get(b,c);G===n?V++:(V>=5&&(e+=Sl.N1+(V-5)),n=G,V=1),G=t.get(c,b),G===a?i++:(i>=5&&(e+=Sl.N1+(i-5)),a=G,i=1)}V>=5&&(e+=Sl.N1+(V-5)),i>=5&&(e+=Sl.N1+(i-5))}return e};Vt.getPenaltyN2=function(t){let d=t.size,e=0;for(let V=0;V<d-1;V++)for(let i=0;i<d-1;i++){let n=t.get(V,i)+t.get(V,i+1)+t.get(V+1,i)+t.get(V+1,i+1);(n===4||n===0)&&e++}return e*Sl.N2};Vt.getPenaltyN3=function(t){let d=t.size,e=0,V=0,i=0;for(let n=0;n<d;n++){V=i=0;for(let a=0;a<d;a++)V=V<<1&2047|t.get(n,a),a>=10&&(V===1488||V===93)&&e++,i=i<<1&2047|t.get(a,n),a>=10&&(i===1488||i===93)&&e++}return e*Sl.N3};Vt.getPenaltyN4=function(t){let d=0,e=t.data.length;for(let i=0;i<e;i++)d+=t.data[i];return Math.abs(Math.ceil(d*100/e/5)-10)*Sl.N4};function Rp(l,t,d){switch(l){case Vt.Patterns.PATTERN000:return(t+d)%2===0;case Vt.Patterns.PATTERN001:return t%2===0;case Vt.Patterns.PATTERN010:return d%3===0;case Vt.Patterns.PATTERN011:return(t+d)%3===0;case Vt.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(d/3))%2===0;case Vt.Patterns.PATTERN101:return t*d%2+t*d%3===0;case Vt.Patterns.PATTERN110:return(t*d%2+t*d%3)%2===0;case Vt.Patterns.PATTERN111:return(t*d%3+(t+d)%2)%2===0;default:throw new Error("bad maskPattern:"+l)}}Vt.applyMask=function(t,d){let e=d.size;for(let V=0;V<e;V++)for(let i=0;i<e;i++)d.isReserved(i,V)||d.xor(i,V,Rp(t,i,V))};Vt.getBestMask=function(t,d){let e=Object.keys(Vt.Patterns).length,V=0,i=1/0;for(let n=0;n<e;n++){d(n),Vt.applyMask(n,t);let a=Vt.getPenaltyN1(t)+Vt.getPenaltyN2(t)+Vt.getPenaltyN3(t)+Vt.getPenaltyN4(t);Vt.applyMask(n,t),a<i&&(i=a,V=n)}return V}});var En=r(Hn=>{var Bl=dV(),VV=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],iV=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Hn.getBlocksCount=function(t,d){switch(d){case Bl.L:return VV[(t-1)*4+0];case Bl.M:return VV[(t-1)*4+1];case Bl.Q:return VV[(t-1)*4+2];case Bl.H:return VV[(t-1)*4+3];default:return}};Hn.getTotalCodewordsCount=function(t,d){switch(d){case Bl.L:return iV[(t-1)*4+0];case Bl.M:return iV[(t-1)*4+1];case Bl.Q:return iV[(t-1)*4+2];case Bl.H:return iV[(t-1)*4+3];default:return}}});var PW=r(aV=>{var Sd=new Uint8Array(512),nV=new Uint8Array(256);(function(){let t=1;for(let d=0;d<255;d++)Sd[d]=t,nV[t]=d,t<<=1,t&256&&(t^=285);for(let d=255;d<512;d++)Sd[d]=Sd[d-255]})();aV.log=function(t){if(t<1)throw new Error("log("+t+")");return nV[t]};aV.exp=function(t){return Sd[t]};aV.mul=function(t,d){return t===0||d===0?0:Sd[nV[t]+nV[d]]}});var KW=r(kd=>{var An=PW();kd.mul=function(t,d){let e=new Uint8Array(t.length+d.length-1);for(let V=0;V<t.length;V++)for(let i=0;i<d.length;i++)e[V+i]^=An.mul(t[V],d[i]);return e};kd.mod=function(t,d){let e=new Uint8Array(t);for(;e.length-d.length>=0;){let V=e[0];for(let n=0;n<d.length;n++)e[n]^=An.mul(d[n],V);let i=0;for(;i<e.length&&e[i]===0;)i++;e=e.slice(i)}return e};kd.generateECPolynomial=function(t){let d=new Uint8Array([1]);for(let e=0;e<t;e++)d=kd.mul(d,new Uint8Array([1,An.exp(e)]));return d}});var $W=r((VC,qW)=>{var _W=KW();function yn(l){this.genPoly=void 0,this.degree=l,this.degree&&this.initialize(this.degree)}yn.prototype.initialize=function(t){this.degree=t,this.genPoly=_W.generateECPolynomial(this.degree)};yn.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");let d=new Uint8Array(t.length+this.degree);d.set(t);let e=_W.mod(d,this.genPoly),V=this.degree-e.length;if(V>0){let i=new Uint8Array(this.degree);return i.set(e,V),i}return e};qW.exports=yn});var zn=r(tU=>{tU.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var wn=r(Vl=>{var lU="[0-9]+",Wp="[A-Z $%*+\\-./:]+",Md="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Md=Md.replace(/u/g,"\\u");var Up="(?:(?![A-Z0-9 $%*+\\-./:]|"+Md+`)(?:.|[\r
]))+`;Vl.KANJI=new RegExp(Md,"g");Vl.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Vl.BYTE=new RegExp(Up,"g");Vl.NUMERIC=new RegExp(lU,"g");Vl.ALPHANUMERIC=new RegExp(Wp,"g");var Zp=new RegExp("^"+Md+"$"),Fp=new RegExp("^"+lU+"$"),gp=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Vl.testKanji=function(t){return Zp.test(t)};Vl.testNumeric=function(t){return Fp.test(t)};Vl.testAlphanumeric=function(t){return gp.test(t)}});var pl=r(Wt=>{var Ip=zn(),Ln=wn();Wt.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};Wt.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};Wt.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};Wt.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};Wt.MIXED={bit:-1};Wt.getCharCountIndicator=function(t,d){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!Ip.isValid(d))throw new Error("Invalid version: "+d);return d>=1&&d<10?t.ccBits[0]:d<27?t.ccBits[1]:t.ccBits[2]};Wt.getBestModeForData=function(t){return Ln.testNumeric(t)?Wt.NUMERIC:Ln.testAlphanumeric(t)?Wt.ALPHANUMERIC:Ln.testKanji(t)?Wt.KANJI:Wt.BYTE};Wt.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")};Wt.isValid=function(t){return t&&t.bit&&t.ccBits};function mp(l){if(typeof l!="string")throw new Error("Param is not a string");switch(l.toLowerCase()){case"numeric":return Wt.NUMERIC;case"alphanumeric":return Wt.ALPHANUMERIC;case"kanji":return Wt.KANJI;case"byte":return Wt.BYTE;default:throw new Error("Unknown mode: "+l)}}Wt.from=function(t,d){if(Wt.isValid(t))return t;try{return mp(t)}catch(e){return d}}});var nU=r(kl=>{var bV=ol(),op=En(),dU=dV(),rl=pl(),On=zn(),VU=7973,eU=bV.getBCHDigit(VU);function Bp(l,t,d){for(let e=1;e<=40;e++)if(t<=kl.getCapacity(e,d,l))return e}function iU(l,t){return rl.getCharCountIndicator(l,t)+4}function pp(l,t){let d=0;return l.forEach(function(e){let V=iU(e.mode,t);d+=V+e.getBitsLength()}),d}function rp(l,t){for(let d=1;d<=40;d++)if(pp(l,d)<=kl.getCapacity(d,t,rl.MIXED))return d}kl.from=function(t,d){return On.isValid(t)?parseInt(t,10):d};kl.getCapacity=function(t,d,e){if(!On.isValid(t))throw new Error("Invalid QR Code version");typeof e=="undefined"&&(e=rl.BYTE);let V=bV.getSymbolTotalCodewords(t),i=op.getTotalCodewordsCount(t,d),n=(V-i)*8;if(e===rl.MIXED)return n;let a=n-iU(e,t);switch(e){case rl.NUMERIC:return Math.floor(a/10*3);case rl.ALPHANUMERIC:return Math.floor(a/11*2);case rl.KANJI:return Math.floor(a/13);case rl.BYTE:default:return Math.floor(a/8)}};kl.getBestVersionForData=function(t,d){let e,V=dU.from(d,dU.M);if(Array.isArray(t)){if(t.length>1)return rp(t,V);if(t.length===0)return 1;e=t[0]}else e=t;return Bp(e.mode,e.getLength(),V)};kl.getEncodedBits=function(t){if(!On.isValid(t)||t<7)throw new Error("Invalid QR Code version");let d=t<<12;for(;bV.getBCHDigit(d)-eU>=0;)d^=VU<<bV.getBCHDigit(d)-eU;return t<<12|d}});var GU=r(cU=>{var jn=ol(),bU=1335,hp=21522,aU=jn.getBCHDigit(bU);cU.getEncodedBits=function(t,d){let e=t.bit<<3|d,V=e<<10;for(;jn.getBCHDigit(V)-aU>=0;)V^=bU<<jn.getBCHDigit(V)-aU;return(e<<10|V)^hp}});var WU=r((GC,RU)=>{var sp=pl();function ql(l){this.mode=sp.NUMERIC,this.data=l.toString()}ql.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};ql.prototype.getLength=function(){return this.data.length};ql.prototype.getBitsLength=function(){return ql.getBitsLength(this.data.length)};ql.prototype.write=function(t){let d,e,V;for(d=0;d+3<=this.data.length;d+=3)e=this.data.substr(d,3),V=parseInt(e,10),t.put(V,10);let i=this.data.length-d;i>0&&(e=this.data.substr(d),V=parseInt(e,10),t.put(V,i*3+1))};RU.exports=ql});var ZU=r((RC,UU)=>{var Np=pl(),Dn=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function $l(l){this.mode=Np.ALPHANUMERIC,this.data=l}$l.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};$l.prototype.getLength=function(){return this.data.length};$l.prototype.getBitsLength=function(){return $l.getBitsLength(this.data.length)};$l.prototype.write=function(t){let d;for(d=0;d+2<=this.data.length;d+=2){let e=Dn.indexOf(this.data[d])*45;e+=Dn.indexOf(this.data[d+1]),t.put(e,11)}this.data.length%2&&t.put(Dn.indexOf(this.data[d]),6)};UU.exports=$l});var gU=r((WC,FU)=>{"use strict";FU.exports=function(t){for(var d=[],e=t.length,V=0;V<e;V++){var i=t.charCodeAt(V);if(i>=55296&&i<=56319&&e>V+1){var n=t.charCodeAt(V+1);n>=56320&&n<=57343&&(i=(i-55296)*1024+n-56320+65536,V+=1)}if(i<128){d.push(i);continue}if(i<2048){d.push(i>>6|192),d.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){d.push(i>>12|224),d.push(i>>6&63|128),d.push(i&63|128);continue}if(i>=65536&&i<=1114111){d.push(i>>18|240),d.push(i>>12&63|128),d.push(i>>6&63|128),d.push(i&63|128);continue}d.push(239,191,189)}return new Uint8Array(d).buffer}});var mU=r((UC,IU)=>{var Qp=gU(),xp=pl();function td(l){this.mode=xp.BYTE,this.data=new Uint8Array(Qp(l))}td.getBitsLength=function(t){return t*8};td.prototype.getLength=function(){return this.data.length};td.prototype.getBitsLength=function(){return td.getBitsLength(this.data.length)};td.prototype.write=function(l){for(let t=0,d=this.data.length;t<d;t++)l.put(this.data[t],8)};IU.exports=td});var BU=r((ZC,oU)=>{var Jp=pl(),up=ol();function ld(l){this.mode=Jp.KANJI,this.data=l}ld.getBitsLength=function(t){return t*13};ld.prototype.getLength=function(){return this.data.length};ld.prototype.getBitsLength=function(){return ld.getBitsLength(this.data.length)};ld.prototype.write=function(l){let t;for(t=0;t<this.data.length;t++){let d=up.toSJIS(this.data[t]);if(d>=33088&&d<=40956)d-=33088;else if(d>=57408&&d<=60351)d-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
Make sure your charset is UTF-8`);d=(d>>>8&255)*192+(d&255),l.put(d,13)}};oU.exports=ld});var pU=r((FC,vn)=>{"use strict";var Hd={single_source_shortest_paths:function(l,t,d){var e={},V={};V[t]=0;var i=Hd.PriorityQueue.make();i.push(t,0);for(var n,a,b,c,G,R,W,Z,o;!i.empty();){n=i.pop(),a=n.value,c=n.cost,G=l[a]||{};for(b in G)G.hasOwnProperty(b)&&(R=G[b],W=c+R,Z=V[b],o=typeof V[b]=="undefined",(o||Z>W)&&(V[b]=W,i.push(b,W),e[b]=a))}if(typeof d!="undefined"&&typeof V[d]=="undefined"){var U=["Could not find a path from ",t," to ",d,"."].join("");throw new Error(U)}return e},extract_shortest_path_from_predecessor_list:function(l,t){for(var d=[],e=t,V;e;)d.push(e),V=l[e],e=l[e];return d.reverse(),d},find_path:function(l,t,d){var e=Hd.single_source_shortest_paths(l,t,d);return Hd.extract_shortest_path_from_predecessor_list(e,d)},PriorityQueue:{make:function(l){var t=Hd.PriorityQueue,d={},e;l=l||{};for(e in t)t.hasOwnProperty(e)&&(d[e]=t[e]);return d.queue=[],d.sorter=l.sorter||t.default_sorter,d},default_sorter:function(l,t){return l.cost-t.cost},push:function(l,t){var d={value:l,cost:t};this.queue.push(d),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof vn!="undefined"&&(vn.exports=Hd)});var uU=r(dd=>{var lt=pl(),sU=WU(),NU=ZU(),QU=mU(),xU=BU(),Ed=wn(),cV=ol(),Cp=pU();function rU(l){return unescape(encodeURIComponent(l)).length}function Ad(l,t,d){let e=[],V;for(;(V=l.exec(d))!==null;)e.push({data:V[0],index:V.index,mode:t,length:V[0].length});return e}function JU(l){let t=Ad(Ed.NUMERIC,lt.NUMERIC,l),d=Ad(Ed.ALPHANUMERIC,lt.ALPHANUMERIC,l),e,V;return cV.isKanjiModeEnabled()?(e=Ad(Ed.BYTE,lt.BYTE,l),V=Ad(Ed.KANJI,lt.KANJI,l)):(e=Ad(Ed.BYTE_KANJI,lt.BYTE,l),V=[]),t.concat(d,e,V).sort(function(n,a){return n.index-a.index}).map(function(n){return{data:n.data,mode:n.mode,length:n.length}})}function fn(l,t){switch(t){case lt.NUMERIC:return sU.getBitsLength(l);case lt.ALPHANUMERIC:return NU.getBitsLength(l);case lt.KANJI:return xU.getBitsLength(l);case lt.BYTE:return QU.getBitsLength(l)}}function Xp(l){return l.reduce(function(t,d){let e=t.length-1>=0?t[t.length-1]:null;return e&&e.mode===d.mode?(t[t.length-1].data+=d.data,t):(t.push(d),t)},[])}function Yp(l){let t=[];for(let d=0;d<l.length;d++){let e=l[d];switch(e.mode){case lt.NUMERIC:t.push([e,{data:e.data,mode:lt.ALPHANUMERIC,length:e.length},{data:e.data,mode:lt.BYTE,length:e.length}]);break;case lt.ALPHANUMERIC:t.push([e,{data:e.data,mode:lt.BYTE,length:e.length}]);break;case lt.KANJI:t.push([e,{data:e.data,mode:lt.BYTE,length:rU(e.data)}]);break;case lt.BYTE:t.push([{data:e.data,mode:lt.BYTE,length:rU(e.data)}])}}return t}function Tp(l,t){let d={},e={start:{}},V=["start"];for(let i=0;i<l.length;i++){let n=l[i],a=[];for(let b=0;b<n.length;b++){let c=n[b],G=""+i+b;a.push(G),d[G]={node:c,lastCount:0},e[G]={};for(let R=0;R<V.length;R++){let W=V[R];d[W]&&d[W].node.mode===c.mode?(e[W][G]=fn(d[W].lastCount+c.length,c.mode)-fn(d[W].lastCount,c.mode),d[W].lastCount+=c.length):(d[W]&&(d[W].lastCount=c.length),e[W][G]=fn(c.length,c.mode)+4+lt.getCharCountIndicator(c.mode,t))}}V=a}for(let i=0;i<V.length;i++)e[V[i]].end=0;return{map:e,table:d}}function hU(l,t){let d,e=lt.getBestModeForData(l);if(d=lt.from(t,e),d!==lt.BYTE&&d.bit<e.bit)throw new Error('"'+l+'" cannot be encoded with mode '+lt.toString(d)+`.
 Suggested mode is: `+lt.toString(e));switch(d===lt.KANJI&&!cV.isKanjiModeEnabled()&&(d=lt.BYTE),d){case lt.NUMERIC:return new sU(l);case lt.ALPHANUMERIC:return new NU(l);case lt.KANJI:return new xU(l);case lt.BYTE:return new QU(l)}}dd.fromArray=function(t){return t.reduce(function(d,e){return typeof e=="string"?d.push(hU(e,null)):e.data&&d.push(hU(e.data,e.mode)),d},[])};dd.fromString=function(t,d){let e=JU(t,cV.isKanjiModeEnabled()),V=Yp(e),i=Tp(V,d),n=Cp.find_path(i.map,"start","end"),a=[];for(let b=1;b<n.length-1;b++)a.push(i.table[n[b]].node);return dd.fromArray(Xp(a))};dd.rawSplit=function(t){return dd.fromArray(JU(t,cV.isKanjiModeEnabled()))}});var XU=r(CU=>{var RV=ol(),Pn=dV(),Sp=zW(),kp=LW(),Mp=OW(),Hp=vW(),qn=fW(),$n=En(),Ep=$W(),GV=nU(),Ap=GU(),yp=pl(),Kn=uU();function zp(l,t){let d=l.size,e=Hp.getPositions(t);for(let V=0;V<e.length;V++){let i=e[V][0],n=e[V][1];for(let a=-1;a<=7;a++)if(!(i+a<=-1||d<=i+a))for(let b=-1;b<=7;b++)n+b<=-1||d<=n+b||(a>=0&&a<=6&&(b===0||b===6)||b>=0&&b<=6&&(a===0||a===6)||a>=2&&a<=4&&b>=2&&b<=4?l.set(i+a,n+b,!0,!0):l.set(i+a,n+b,!1,!0))}}function wp(l){let t=l.size;for(let d=8;d<t-8;d++){let e=d%2===0;l.set(d,6,e,!0),l.set(6,d,e,!0)}}function Lp(l,t){let d=Mp.getPositions(t);for(let e=0;e<d.length;e++){let V=d[e][0],i=d[e][1];for(let n=-2;n<=2;n++)for(let a=-2;a<=2;a++)n===-2||n===2||a===-2||a===2||n===0&&a===0?l.set(V+n,i+a,!0,!0):l.set(V+n,i+a,!1,!0)}}function Op(l,t){let d=l.size,e=GV.getEncodedBits(t),V,i,n;for(let a=0;a<18;a++)V=Math.floor(a/3),i=a%3+d-8-3,n=(e>>a&1)===1,l.set(V,i,n,!0),l.set(i,V,n,!0)}function _n(l,t,d){let e=l.size,V=Ap.getEncodedBits(t,d),i,n;for(i=0;i<15;i++)n=(V>>i&1)===1,i<6?l.set(i,8,n,!0):i<8?l.set(i+1,8,n,!0):l.set(e-15+i,8,n,!0),i<8?l.set(8,e-i-1,n,!0):i<9?l.set(8,15-i-1+1,n,!0):l.set(8,15-i-1,n,!0);l.set(e-8,8,1,!0)}function jp(l,t){let d=l.size,e=-1,V=d-1,i=7,n=0;for(let a=d-1;a>0;a-=2)for(a===6&&a--;;){for(let b=0;b<2;b++)if(!l.isReserved(V,a-b)){let c=!1;n<t.length&&(c=(t[n]>>>i&1)===1),l.set(V,a-b,c),i--,i===-1&&(n++,i=7)}if(V+=e,V<0||d<=V){V-=e,e=-e;break}}}function Dp(l,t,d){let e=new Sp;d.forEach(function(b){e.put(b.mode.bit,4),e.put(b.getLength(),yp.getCharCountIndicator(b.mode,l)),b.write(e)});let V=RV.getSymbolTotalCodewords(l),i=$n.getTotalCodewordsCount(l,t),n=(V-i)*8;for(e.getLengthInBits()+4<=n&&e.put(0,4);e.getLengthInBits()%8!==0;)e.putBit(0);let a=(n-e.getLengthInBits())/8;for(let b=0;b<a;b++)e.put(b%2?17:236,8);return vp(e,l,t)}function vp(l,t,d){let e=RV.getSymbolTotalCodewords(t),V=$n.getTotalCodewordsCount(t,d),i=e-V,n=$n.getBlocksCount(t,d),a=e%n,b=n-a,c=Math.floor(e/n),G=Math.floor(i/n),R=G+1,W=c-G,Z=new Ep(W),o=0,U=new Array(n),I=new Array(n),B=0,N=new Uint8Array(l.buffer);for(let g=0;g<n;g++){let F=g<b?G:R;U[g]=N.slice(o,o+F),I[g]=Z.encode(U[g]),o+=F,B=Math.max(B,F)}let Y=new Uint8Array(e),C=0,h,m;for(h=0;h<B;h++)for(m=0;m<n;m++)h<U[m].length&&(Y[C++]=U[m][h]);for(h=0;h<W;h++)for(m=0;m<n;m++)Y[C++]=I[m][h];return Y}function fp(l,t,d,e){let V;if(Array.isArray(l))V=Kn.fromArray(l);else if(typeof l=="string"){let c=t;if(!c){let G=Kn.rawSplit(l);c=GV.getBestVersionForData(G,d)}V=Kn.fromString(l,c||40)}else throw new Error("Invalid data");let i=GV.getBestVersionForData(V,d);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=i;else if(t<i)throw new Error(`
The chosen QR Code version cannot contain this amount of data.
Minimum version required to store current data is: `+i+`.
`);let n=Dp(t,d,V),a=RV.getSymbolSize(t),b=new kp(a);return zp(b,t),wp(b),Lp(b,t),_n(b,d,0),t>=7&&Op(b,t),jp(b,n),isNaN(e)&&(e=qn.getBestMask(b,_n.bind(null,b,d))),qn.applyMask(e,b),_n(b,d,e),{modules:b,version:t,errorCorrectionLevel:d,maskPattern:e,segments:V}}CU.create=function(t,d){if(typeof t=="undefined"||t==="")throw new Error("No input text");let e=Pn.M,V,i;return typeof d!="undefined"&&(e=Pn.from(d.errorCorrectionLevel,Pn.M),V=GV.from(d.version),i=qn.from(d.maskPattern),d.toSJISFunc&&RV.setToSJISFunction(d.toSJISFunc)),fp(t,V,e,i)}});var ta=r(Ml=>{function YU(l){if(typeof l=="number"&&(l=l.toString()),typeof l!="string")throw new Error("Color should be defined as hex string");let t=l.slice().replace("#","").split("");if(t.length<3||t.length===5||t.length>8)throw new Error("Invalid hex color: "+l);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),t.length===6&&t.push("F","F");let d=parseInt(t.join(""),16);return{r:d>>24&255,g:d>>16&255,b:d>>8&255,a:d&255,hex:"#"+t.slice(0,6).join("")}}Ml.getOptions=function(t){t||(t={}),t.color||(t.color={});let d=typeof t.margin=="undefined"||t.margin===null||t.margin<0?4:t.margin,e=t.width&&t.width>=21?t.width:void 0,V=t.scale||4;return{width:e,scale:e?4:V,margin:d,color:{dark:YU(t.color.dark||"#000000ff"),light:YU(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}};Ml.getScale=function(t,d){return d.width&&d.width>=t+d.margin*2?d.width/(t+d.margin*2):d.scale};Ml.getImageWidth=function(t,d){let e=Ml.getScale(t,d);return Math.floor((t+d.margin*2)*e)};Ml.qrToImageData=function(t,d,e){let V=d.modules.size,i=d.modules.data,n=Ml.getScale(V,e),a=Math.floor((V+e.margin*2)*n),b=e.margin*n,c=[e.color.light,e.color.dark];for(let G=0;G<a;G++)for(let R=0;R<a;R++){let W=(G*a+R)*4,Z=e.color.light;if(G>=b&&R>=b&&G<a-b&&R<a-b){let o=Math.floor((G-b)/n),U=Math.floor((R-b)/n);Z=c[i[o*V+U]?1:0]}t[W++]=Z.r,t[W++]=Z.g,t[W++]=Z.b,t[W]=Z.a}}});var TU=r(WV=>{var la=ta();function Pp(l,t,d){l.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=d,t.width=d,t.style.height=d+"px",t.style.width=d+"px"}function Kp(){try{return document.createElement("canvas")}catch(l){throw new Error("You need to specify a canvas element")}}WV.render=function(t,d,e){let V=e,i=d;typeof V=="undefined"&&(!d||!d.getContext)&&(V=d,d=void 0),d||(i=Kp()),V=la.getOptions(V);let n=la.getImageWidth(t.modules.size,V),a=i.getContext("2d"),b=a.createImageData(n,n);return la.qrToImageData(b.data,t,V),Pp(a,i,n),a.putImageData(b,0,0),i};WV.renderToDataURL=function(t,d,e){let V=e;typeof V=="undefined"&&(!d||!d.getContext)&&(V=d,d=void 0),V||(V={});let i=WV.render(t,d,V),n=V.type||"image/png",a=V.rendererOpts||{};return i.toDataURL(n,a.quality)}});var MU=r(kU=>{var _p=ta();function SU(l,t){let d=l.a/255,e=t+'="'+l.hex+'"';return d<1?e+" "+t+'-opacity="'+d.toFixed(2).slice(1)+'"':e}function da(l,t,d){let e=l+t;return typeof d!="undefined"&&(e+=" "+d),e}function qp(l,t,d){let e="",V=0,i=!1,n=0;for(let a=0;a<l.length;a++){let b=Math.floor(a%t),c=Math.floor(a/t);!b&&!i&&(i=!0),l[a]?(n++,a>0&&b>0&&l[a-1]||(e+=i?da("M",b+d,.5+c+d):da("m",V,0),V=0,i=!1),b+1<t&&l[a+1]||(e+=da("h",n),n=0)):V++}return e}kU.render=function(t,d,e){let V=_p.getOptions(d),i=t.modules.size,n=t.modules.data,a=i+V.margin*2,b=V.color.light.a?"<path "+SU(V.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",c="<path "+SU(V.color.dark,"stroke")+' d="'+qp(n,i,V.margin)+'"/>',G='viewBox="0 0 '+a+" "+a+'"',W='<svg xmlns="http://www.w3.org/2000/svg" '+(V.width?'width="'+V.width+'" height="'+V.width+'" ':"")+G+' shape-rendering="crispEdges">'+b+c+`</svg>
`;return typeof e=="function"&&e(null,W),W}});var EU=r(yd=>{var $p=EW(),ea=XU(),HU=TU(),tr=MU();function Va(l,t,d,e,V){let i=[].slice.call(arguments,1),n=i.length,a=typeof i[n-1]=="function";if(!a&&!$p())throw new Error("Callback required as last argument");if(a){if(n<2)throw new Error("Too few arguments provided");n===2?(V=d,d=t,t=e=void 0):n===3&&(t.getContext&&typeof V=="undefined"?(V=e,e=void 0):(V=e,e=d,d=t,t=void 0))}else{if(n<1)throw new Error("Too few arguments provided");return n===1?(d=t,t=e=void 0):n===2&&!t.getContext&&(e=d,d=t,t=void 0),new Promise(function(b,c){try{let G=ea.create(d,e);b(l(G,t,e))}catch(G){c(G)}})}try{let b=ea.create(d,e);V(null,l(b,t,e))}catch(b){V(b)}}yd.create=ea.create;yd.toCanvas=Va.bind(null,HU.render);yd.toDataURL=Va.bind(null,HU.renderToDataURL);yd.toString=Va.bind(null,function(l,t,d){return tr.render(l,d)})});var AU=r((rC,na)=>{var ia=function(l){"use strict";var t=Object.prototype,d=t.hasOwnProperty,e,V=typeof Symbol=="function"?Symbol:{},i=V.iterator||"@@iterator",n=V.asyncIterator||"@@asyncIterator",a=V.toStringTag||"@@toStringTag";function b(x,J,M){return Object.defineProperty(x,J,{value:M,enumerable:!0,configurable:!0,writable:!0}),x[J]}try{b({},"")}catch(x){b=function(J,M,v){return J[M]=v}}function c(x,J,M,v){var D=J&&J.prototype instanceof I?J:I,et=Object.create(D.prototype),Zt=new S(v||[]);return et._invoke=u(x,M,Zt),et}l.wrap=c;function G(x,J,M){try{return{type:"normal",arg:x.call(J,M)}}catch(v){return{type:"throw",arg:v}}}var R="suspendedStart",W="suspendedYield",Z="executing",o="completed",U={};function I(){}function B(){}function N(){}var Y={};b(Y,i,function(){return this});var C=Object.getPrototypeOf,h=C&&C(C(j([])));h&&h!==t&&d.call(h,i)&&(Y=h);var m=N.prototype=I.prototype=Object.create(Y);B.prototype=N,b(m,"constructor",N),b(N,"constructor",B),B.displayName=b(N,a,"GeneratorFunction");function g(x){["next","throw","return"].forEach(function(J){b(x,J,function(M){return this._invoke(J,M)})})}l.isGeneratorFunction=function(x){var J=typeof x=="function"&&x.constructor;return J?J===B||(J.displayName||J.name)==="GeneratorFunction":!1},l.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,N):(x.__proto__=N,b(x,a,"GeneratorFunction")),x.prototype=Object.create(m),x},l.awrap=function(x){return{__await:x}};function F(x,J){function M(et,Zt,Ut,mt){var Ft=G(x[et],x,Zt);if(Ft.type==="throw")mt(Ft.arg);else{var Nl=Ft.arg,_t=Nl.value;return _t&&typeof _t=="object"&&d.call(_t,"__await")?J.resolve(_t.__await).then(function(Mt){M("next",Mt,Ut,mt)},function(Mt){M("throw",Mt,Ut,mt)}):J.resolve(_t).then(function(Mt){Nl.value=Mt,Ut(Nl)},function(Mt){return M("throw",Mt,Ut,mt)})}}var v;function D(et,Zt){function Ut(){return new J(function(mt,Ft){M(et,Zt,mt,Ft)})}return v=v?v.then(Ut,Ut):Ut()}this._invoke=D}g(F.prototype),b(F.prototype,n,function(){return this}),l.AsyncIterator=F,l.async=function(x,J,M,v,D){D===void 0&&(D=Promise);var et=new F(c(x,J,M,v),D);return l.isGeneratorFunction(J)?et:et.next().then(function(Zt){return Zt.done?Zt.value:et.next()})};function u(x,J,M){var v=R;return function(et,Zt){if(v===Z)throw new Error("Generator is already running");if(v===o){if(et==="throw")throw Zt;return f()}for(M.method=et,M.arg=Zt;;){var Ut=M.delegate;if(Ut){var mt=T(Ut,M);if(mt){if(mt===U)continue;return mt}}if(M.method==="next")M.sent=M._sent=M.arg;else if(M.method==="throw"){if(v===R)throw v=o,M.arg;M.dispatchException(M.arg)}else M.method==="return"&&M.abrupt("return",M.arg);v=Z;var Ft=G(x,J,M);if(Ft.type==="normal"){if(v=M.done?o:W,Ft.arg===U)continue;return{value:Ft.arg,done:M.done}}else Ft.type==="throw"&&(v=o,M.method="throw",M.arg=Ft.arg)}}}function T(x,J){var M=x.iterator[J.method];if(M===e){if(J.delegate=null,J.method==="throw"){if(x.iterator.return&&(J.method="return",J.arg=e,T(x,J),J.method==="throw"))return U;J.method="throw",J.arg=new TypeError("The iterator does not provide a 'throw' method")}return U}var v=G(M,x.iterator,J.arg);if(v.type==="throw")return J.method="throw",J.arg=v.arg,J.delegate=null,U;var D=v.arg;if(!D)return J.method="throw",J.arg=new TypeError("iterator result is not an object"),J.delegate=null,U;if(D.done)J[x.resultName]=D.value,J.next=x.nextLoc,J.method!=="return"&&(J.method="next",J.arg=e);else return D;return J.delegate=null,U}g(m),b(m,a,"Generator"),b(m,i,function(){return this}),b(m,"toString",function(){return"[object Generator]"});function k(x){var J={tryLoc:x[0]};1 in x&&(J.catchLoc=x[1]),2 in x&&(J.finallyLoc=x[2],J.afterLoc=x[3]),this.tryEntries.push(J)}function Q(x){var J=x.completion||{};J.type="normal",delete J.arg,x.completion=J}function S(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(k,this),this.reset(!0)}l.keys=function(x){var J=[];for(var M in x)J.push(M);return J.reverse(),function v(){for(;J.length;){var D=J.pop();if(D in x)return v.value=D,v.done=!1,v}return v.done=!0,v}};function j(x){if(x){var J=x[i];if(J)return J.call(x);if(typeof x.next=="function")return x;if(!isNaN(x.length)){var M=-1,v=function D(){for(;++M<x.length;)if(d.call(x,M))return D.value=x[M],D.done=!1,D;return D.value=e,D.done=!0,D};return v.next=v}}return{next:f}}l.values=j;function f(){return{value:e,done:!0}}return S.prototype={constructor:S,reset:function(x){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Q),!x)for(var J in this)J.charAt(0)==="t"&&d.call(this,J)&&!isNaN(+J.slice(1))&&(this[J]=e)},stop:function(){this.done=!0;var x=this.tryEntries[0],J=x.completion;if(J.type==="throw")throw J.arg;return this.rval},dispatchException:function(x){if(this.done)throw x;var J=this;function M(mt,Ft){return et.type="throw",et.arg=x,J.next=mt,Ft&&(J.method="next",J.arg=e),!!Ft}for(var v=this.tryEntries.length-1;v>=0;--v){var D=this.tryEntries[v],et=D.completion;if(D.tryLoc==="root")return M("end");if(D.tryLoc<=this.prev){var Zt=d.call(D,"catchLoc"),Ut=d.call(D,"finallyLoc");if(Zt&&Ut){if(this.prev<D.catchLoc)return M(D.catchLoc,!0);if(this.prev<D.finallyLoc)return M(D.finallyLoc)}else if(Zt){if(this.prev<D.catchLoc)return M(D.catchLoc,!0)}else if(Ut){if(this.prev<D.finallyLoc)return M(D.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(x,J){for(var M=this.tryEntries.length-1;M>=0;--M){var v=this.tryEntries[M];if(v.tryLoc<=this.prev&&d.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var D=v;break}}D&&(x==="break"||x==="continue")&&D.tryLoc<=J&&J<=D.finallyLoc&&(D=null);var et=D?D.completion:{};return et.type=x,et.arg=J,D?(this.method="next",this.next=D.finallyLoc,U):this.complete(et)},complete:function(x,J){if(x.type==="throw")throw x.arg;return x.type==="break"||x.type==="continue"?this.next=x.arg:x.type==="return"?(this.rval=this.arg=x.arg,this.method="return",this.next="end"):x.type==="normal"&&J&&(this.next=J),U},finish:function(x){for(var J=this.tryEntries.length-1;J>=0;--J){var M=this.tryEntries[J];if(M.finallyLoc===x)return this.complete(M.completion,M.afterLoc),Q(M),U}},catch:function(x){for(var J=this.tryEntries.length-1;J>=0;--J){var M=this.tryEntries[J];if(M.tryLoc===x){var v=M.completion;if(v.type==="throw"){var D=v.arg;Q(M)}return D}}throw new Error("illegal catch attempt")},delegateYield:function(x,J,M){return this.delegate={iterator:j(x),resultName:J,nextLoc:M},this.method==="next"&&(this.arg=e),U}},l}(typeof na=="object"?na.exports:{});try{regeneratorRuntime=ia}catch(l){typeof globalThis=="object"?globalThis.regeneratorRuntime=ia:Function("r","regeneratorRuntime = r")(ia)}});var eZ=r((dZ,IV)=>{(function(l,t){typeof IV=="object"&&IV.exports?IV.exports=t():function d(){document&&document.body?l.zenscroll=t():setTimeout(d,9)}()})(dZ,function(){"use strict";var l=function(b){return b&&"getComputedStyle"in window&&window.getComputedStyle(b)["scroll-behavior"]==="smooth"};if(typeof window=="undefined"||!("document"in window))return{};var t=function(b,c,G){c=c||999,!G&&G!==0&&(G=9);var R,W=function(C){R=C},Z=function(){clearTimeout(R),W(0)},o=function(C){return Math.max(0,b.getTopOf(C)-G)},U=function(C,h,m){if(Z(),h===0||h&&h<0||l(b.body))b.toY(C),m&&m();else{var g=b.getY(),F=Math.max(0,C)-g,u=new Date().getTime();h=h||Math.min(Math.abs(F),c),function T(){W(setTimeout(function(){var k=Math.min(1,(new Date().getTime()-u)/h),Q=Math.max(0,Math.floor(g+F*(k<.5?2*k*k:k*(4-k*2)-1)));b.toY(Q),k<1&&b.getHeight()+Q<b.body.scrollHeight?T():(setTimeout(Z,99),m&&m())},9))}()}},I=function(C,h,m){U(o(C),h,m)},B=function(C,h,m){var g=C.getBoundingClientRect().height,F=b.getTopOf(C)+g,u=b.getHeight(),T=b.getY(),k=T+u;o(C)<T||g+G>u?I(C,h,m):F+G>k?U(F-u+G,h,m):m&&m()},N=function(C,h,m,g){U(Math.max(0,b.getTopOf(C)-b.getHeight()/2+(m||C.getBoundingClientRect().height/2)),h,g)},Y=function(C,h){return(C===0||C)&&(c=C),(h===0||h)&&(G=h),{defaultDuration:c,edgeOffset:G}};return{setup:Y,to:I,toY:U,intoView:B,center:N,stop:Z,moving:function(){return!!R},getY:b.getY,getTopOf:b.getTopOf}},d=document.documentElement,e=function(){return window.scrollY||d.scrollTop},V=t({body:document.scrollingElement||document.body,toY:function(b){window.scrollTo(0,b)},getY:e,getHeight:function(){return window.innerHeight||d.clientHeight},getTopOf:function(b){return b.getBoundingClientRect().top+e()-d.offsetTop}});if(V.createScroller=function(b,c,G){return t({body:b,toY:function(R){b.scrollTop=R},getY:function(){return b.scrollTop},getHeight:function(){return Math.min(b.clientHeight,window.innerHeight||d.clientHeight)},getTopOf:function(R){return R.offsetTop}},c,G)},"addEventListener"in window&&!window.noZensmooth&&!l(document.body)){var i="history"in window&&"pushState"in history,n=i&&"scrollRestoration"in history;n&&(history.scrollRestoration="auto"),window.addEventListener("load",function(){n&&(setTimeout(function(){history.scrollRestoration="manual"},9),window.addEventListener("popstate",function(b){b.state&&"zenscrollY"in b.state&&V.toY(b.state.zenscrollY)},!1)),window.location.hash&&setTimeout(function(){var b=V.setup().edgeOffset;if(b){var c=document.getElementById(window.location.href.split("#")[1]);if(c){var G=Math.max(0,V.getTopOf(c)-b),R=V.getY()-G;0<=R&&R<9&&window.scrollTo(0,G)}}},9)},!1);var a=new RegExp("(^|\\s)noZensmooth(\\s|$)");window.addEventListener("click",function(b){for(var c=b.target;c&&c.tagName!=="A";)c=c.parentNode;if(!(!c||b.which!==1||b.shiftKey||b.metaKey||b.ctrlKey||b.altKey)){if(n){var G=history.state&&typeof history.state=="object"?history.state:{};G.zenscrollY=V.getY();try{history.replaceState(G,"")}catch(I){}}var R=c.getAttribute("href")||"";if(R.indexOf("#")===0&&!a.test(c.className)){var W=0,Z=document.getElementById(R.substring(1));if(R!=="#"){if(!Z)return;W=V.getTopOf(Z)}b.preventDefault();var o=function(){window.location=R},U=V.setup().edgeOffset;U&&(W=Math.max(0,W-U),i&&(o=function(){history.pushState({},"",R)})),V.toY(W,null,o)}}},!1)}return V})});var Na=r(($X,GZ)=>{"use strict";var Sr=GZ.exports={};Sr.forEach=function(l,t){for(var d=0;d<l.length;d++){var e=t(l[d]);if(e)return e}}});var WZ=r((tY,RZ)=>{"use strict";RZ.exports=function(l){var t=l.stateHandler.getState;function d(n){var a=t(n);return a&&!!a.isDetectable}function e(n){t(n).isDetectable=!0}function V(n){return!!t(n).busy}function i(n,a){t(n).busy=!!a}return{isDetectable:d,markAsDetectable:e,isBusy:V,markBusy:i}}});var ZZ=r((lY,UZ)=>{"use strict";UZ.exports=function(l){var t={};function d(n){var a=l.get(n);return a===void 0?[]:t[a]||[]}function e(n,a){var b=l.get(n);t[b]||(t[b]=[]),t[b].push(a)}function V(n,a){for(var b=d(n),c=0,G=b.length;c<G;++c)if(b[c]===a){b.splice(c,1);break}}function i(n){var a=d(n);a&&(a.length=0)}return{get:d,add:e,removeListener:V,removeAllListeners:i}}});var gZ=r((dY,FZ)=>{"use strict";FZ.exports=function(){var l=1;function t(){return l++}return{generate:t}}});var mZ=r((eY,IZ)=>{"use strict";IZ.exports=function(l){var t=l.idGenerator,d=l.stateHandler.getState;function e(i){var n=d(i);return n&&n.id!==void 0?n.id:null}function V(i){var n=d(i);if(!n)throw new Error("setId required the element to have a resize detection state.");var a=t.generate();return n.id=a,a}return{get:e,set:V}}});var BZ=r((VY,oZ)=>{"use strict";oZ.exports=function(l){function t(){}var d={log:t,warn:t,error:t};if(!l&&window.console){var e=function(V,i){V[i]=function(){var a=console[i];if(a.apply)a.apply(console,arguments);else for(var b=0;b<arguments.length;b++)a(arguments[b])}};e(d,"log"),e(d,"warn"),e(d,"error")}return d}});var Qa=r((iY,rZ)=>{"use strict";var pZ=rZ.exports={};pZ.isIE=function(l){function t(){var e=navigator.userAgent.toLowerCase();return e.indexOf("msie")!==-1||e.indexOf("trident")!==-1||e.indexOf(" edge/")!==-1}if(!t())return!1;if(!l)return!0;var d=function(){var e,V=3,i=document.createElement("div"),n=i.getElementsByTagName("i");do i.innerHTML="<!--[if gt IE "+ ++V+"]><i></i><![endif]-->";while(n[0]);return V>4?V:e}();return l===d};pZ.isLegacyOpera=function(){return!!window.opera}});var sZ=r((nY,hZ)=>{"use strict";var kr=hZ.exports={};kr.getOption=Mr;function Mr(l,t,d){var e=l[t];return e==null&&d!==void 0?d:e}});var JZ=r((aY,xZ)=>{"use strict";var NZ=sZ();xZ.exports=function(t){t=t||{};var d=t.reporter,e=NZ.getOption(t,"async",!0),V=NZ.getOption(t,"auto",!0);V&&!e&&(d&&d.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),e=!0);var i=QZ(),n,a=!1;function b(U,I){!a&&V&&e&&i.size()===0&&R(),i.add(U,I)}function c(){for(a=!0;i.size();){var U=i;i=QZ(),U.process()}a=!1}function G(U){a||(U===void 0&&(U=e),n&&(Z(n),n=null),U?R():c())}function R(){n=o(c)}function W(){i={},batchSize=0,topLevel=0,bottomLevel=0}function Z(U){var I=clearTimeout;return I(U)}function o(U){var I=function(B){return setTimeout(B,0)};return I(U)}return{add:b,force:G}};function QZ(){var l={},t=0,d=0,e=0;function V(a,b){b||(b=a,a=0),a>d?d=a:a<e&&(e=a),l[a]||(l[a]=[]),l[a].push(b),t++}function i(){for(var a=e;a<=d;a++)for(var b=l[a],c=0;c<b.length;c++){var G=b[c];G()}}function n(){return t}return{add:V,process:i,size:n}}});var XZ=r((bY,CZ)=>{"use strict";var xa="_erd";function Hr(l){return l[xa]={},uZ(l)}function uZ(l){return l[xa]}function Er(l){delete l[xa]}CZ.exports={initState:Hr,getState:uZ,cleanState:Er}});var TZ=r((cY,YZ)=>{"use strict";var Dd=Qa();YZ.exports=function(l){l=l||{};var t=l.reporter,d=l.batchProcessor,e=l.stateHandler.getState;if(!t)throw new Error("Missing required dependency: reporter.");function V(c,G){function R(){G(c)}if(Dd.isIE(8))e(c).object={proxy:R},c.attachEvent("onresize",R);else{var W=a(c);if(!W)throw new Error("Element is not detectable by this strategy.");W.contentDocument.defaultView.addEventListener("resize",R)}}function i(c){var G=l.important?" !important; ":"; ";return(c.join(G)+G).trim()}function n(c,G,R){R||(R=G,G=c,c=null),c=c||{};var W=c.debug;function Z(o,U){var I=i(["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"]),B=!1,N=window.getComputedStyle(o),Y=o.offsetWidth,C=o.offsetHeight;e(o).startSize={width:Y,height:C};function h(){function m(){if(N.position==="static"){o.style.setProperty("position","relative",c.important?"important":"");var u=function(T,k,Q,S){function j(x){return x.replace(/[^-\d\.]/g,"")}var f=Q[S];f!=="auto"&&j(f)!=="0"&&(T.warn("An element that is positioned static has style."+S+"="+f+" 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: ",k),k.style.setProperty(S,"0",c.important?"important":""))};u(t,o,N,"top"),u(t,o,N,"right"),u(t,o,N,"bottom"),u(t,o,N,"left")}}function g(){B||m();function u(k,Q){if(!k.contentDocument){var S=e(k);S.checkForObjectDocumentTimeoutId&&window.clearTimeout(S.checkForObjectDocumentTimeoutId),S.checkForObjectDocumentTimeoutId=setTimeout(function(){S.checkForObjectDocumentTimeoutId=0,u(k,Q)},100);return}Q(k.contentDocument)}var T=this;u(T,function(Q){U(o)})}N.position!==""&&(m(N),B=!0);var F=document.createElement("object");F.style.cssText=I,F.tabIndex=-1,F.type="text/html",F.setAttribute("aria-hidden","true"),F.onload=g,Dd.isIE()||(F.data="about:blank"),e(o)&&(o.appendChild(F),e(o).object=F,Dd.isIE()&&(F.data="about:blank"))}d?d.add(h):h()}Dd.isIE(8)?R(G):Z(G,R)}function a(c){return e(c).object}function b(c){if(e(c)){var G=a(c);G&&(Dd.isIE(8)?c.detachEvent("onresize",G.proxy):c.removeChild(G),e(c).checkForObjectDocumentTimeoutId&&window.clearTimeout(e(c).checkForObjectDocumentTimeoutId),delete e(c).object)}}return{makeDetectable:n,addListener:V,uninstall:b}}});var kZ=r((GY,SZ)=>{"use strict";var Ar=Na().forEach;SZ.exports=function(l){l=l||{};var t=l.reporter,d=l.batchProcessor,e=l.stateHandler.getState,V=l.stateHandler.hasState,i=l.idHandler;if(!d)throw new Error("Missing required dependency: batchProcessor");if(!t)throw new Error("Missing required dependency: reporter.");var n=R(),a="erd_scroll_detection_scrollbar_style",b="erd_scroll_detection_container";function c(h){W(h,a,b)}c(window.document);function G(h){var m=l.important?" !important; ":"; ";return(h.join(m)+m).trim()}function R(){var h=500,m=500,g=document.createElement("div");g.style.cssText=G(["position: absolute","width: "+h*2+"px","height: "+m*2+"px","visibility: hidden","margin: 0","padding: 0"]);var F=document.createElement("div");F.style.cssText=G(["position: absolute","width: "+h+"px","height: "+m+"px","overflow: scroll","visibility: none","top: "+-h*3+"px","left: "+-m*3+"px","visibility: hidden","margin: 0","padding: 0"]),F.appendChild(g),document.body.insertBefore(F,document.body.firstChild);var u=h-F.clientWidth,T=m-F.clientHeight;return document.body.removeChild(F),{width:u,height:T}}function W(h,m,g){function F(Q,S){S=S||function(f){h.head.appendChild(f)};var j=h.createElement("style");return j.innerHTML=Q,j.id=m,S(j),j}if(!h.getElementById(m)){var u=g+"_animation",T=g+"_animation_active",k=`/* Created by the element-resize-detector library. */
`;k+="."+g+" > div::-webkit-scrollbar { "+G(["display: none"])+` }

`,k+="."+T+" { "+G(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+u,"animation-name: "+u])+` }
`,k+="@-webkit-keyframes "+u+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
`,k+="@keyframes "+u+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",F(k)}}function Z(h){h.className+=" "+b+"_animation_active"}function o(h,m,g){if(h.addEventListener)h.addEventListener(m,g);else if(h.attachEvent)h.attachEvent("on"+m,g);else return t.error("[scroll] Don't know how to add event listeners.")}function U(h,m,g){if(h.removeEventListener)h.removeEventListener(m,g);else if(h.detachEvent)h.detachEvent("on"+m,g);else return t.error("[scroll] Don't know how to remove event listeners.")}function I(h){return e(h).container.childNodes[0].childNodes[0].childNodes[0]}function B(h){return e(h).container.childNodes[0].childNodes[0].childNodes[1]}function N(h,m){var g=e(h).listeners;if(!g.push)throw new Error("Cannot add listener to an element that is not detectable.");e(h).listeners.push(m)}function Y(h,m,g){g||(g=m,m=h,h=null),h=h||{};function F(){if(h.debug){var z=Array.prototype.slice.call(arguments);if(z.unshift(i.get(m),"Scroll: "),t.log.apply)t.log.apply(null,z);else for(var $=0;$<z.length;$++)t.log(z[$])}}function u(z){function $(it){var Yt=it.getRootNode&&it.getRootNode().contains(it);return it===it.ownerDocument.body||it.ownerDocument.body.contains(it)||Yt}return!$(z)||window.getComputedStyle(z)===null}function T(z){var $=e(z).container.childNodes[0],it=window.getComputedStyle($);return!it.width||it.width.indexOf("px")===-1}function k(){var z=window.getComputedStyle(m),$={};return $.position=z.position,$.width=m.offsetWidth,$.height=m.offsetHeight,$.top=z.top,$.right=z.right,$.bottom=z.bottom,$.left=z.left,$.widthCSS=z.width,$.heightCSS=z.height,$}function Q(){var z=k();e(m).startSize={width:z.width,height:z.height},F("Element start size",e(m).startSize)}function S(){e(m).listeners=[]}function j(){if(F("storeStyle invoked."),!e(m)){F("Aborting because element has been uninstalled");return}var z=k();e(m).style=z}function f(z,$,it){e(z).lastWidth=$,e(z).lastHeight=it}function x(z){return I(z).childNodes[0]}function J(){return 2*n.width+1}function M(){return 2*n.height+1}function v(z){return z+10+J()}function D(z){return z+10+M()}function et(z){return z*2+J()}function Zt(z){return z*2+M()}function Ut(z,$,it){var Yt=I(z),jt=B(z),bl=v($),A=D(it),H=et($),y=Zt(it);Yt.scrollLeft=bl,Yt.scrollTop=A,jt.scrollLeft=H,jt.scrollTop=y}function mt(){var z=e(m).container;if(!z){z=document.createElement("div"),z.className=b,z.style.cssText=G(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),e(m).container=z,Z(z),m.appendChild(z);var $=function(){e(m).onRendered&&e(m).onRendered()};o(z,"animationstart",$),e(m).onAnimationStart=$}return z}function Ft(){function z(){var ct=e(m).style;if(ct.position==="static"){m.style.setProperty("position","relative",h.important?"important":"");var xt=function(cl,qt,xV,Gl){function nd(ie){return ie.replace(/[^-\d\.]/g,"")}var Tt=xV[Gl];Tt!=="auto"&&nd(Tt)!=="0"&&(cl.warn("An element that is positioned static has style."+Gl+"="+Tt+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+Gl+" will be set to 0. Element: ",qt),qt.style[Gl]=0)};xt(t,m,ct,"top"),xt(t,m,ct,"right"),xt(t,m,ct,"bottom"),xt(t,m,ct,"left")}}function $(ct,xt,cl,qt){return ct=ct?ct+"px":"0",xt=xt?xt+"px":"0",cl=cl?cl+"px":"0",qt=qt?qt+"px":"0",["left: "+ct,"top: "+xt,"right: "+qt,"bottom: "+cl]}if(F("Injecting elements"),!e(m)){F("Aborting because element has been uninstalled");return}z();var it=e(m).container;it||(it=mt());var Yt=n.width,jt=n.height,bl=G(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),A=G(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat($(-(1+Yt),-(1+jt),-jt,-Yt))),H=G(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),y=G(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),_=G(["position: absolute","left: 0","top: 0"]),at=G(["position: absolute","width: 200%","height: 200%"]),Qt=document.createElement("div"),rt=document.createElement("div"),Ht=document.createElement("div"),El=document.createElement("div"),Ql=document.createElement("div"),de=document.createElement("div");Qt.dir="ltr",Qt.style.cssText=bl,Qt.className=b,rt.className=b,rt.style.cssText=A,Ht.style.cssText=H,El.style.cssText=_,Ql.style.cssText=y,de.style.cssText=at,Ht.appendChild(El),Ql.appendChild(de),rt.appendChild(Ht),rt.appendChild(Ql),Qt.appendChild(rt),it.appendChild(Qt);function ee(){var ct=e(m);ct&&ct.onExpand?ct.onExpand():F("Aborting expand scroll handler: element has been uninstalled")}function Ve(){var ct=e(m);ct&&ct.onShrink?ct.onShrink():F("Aborting shrink scroll handler: element has been uninstalled")}o(Ht,"scroll",ee),o(Ql,"scroll",Ve),e(m).onExpandScroll=ee,e(m).onShrinkScroll=Ve}function Nl(){function z(H,y,_){var at=x(H),Qt=v(y),rt=D(_);at.style.setProperty("width",Qt+"px",h.important?"important":""),at.style.setProperty("height",rt+"px",h.important?"important":"")}function $(H){var y=m.offsetWidth,_=m.offsetHeight,at=y!==e(m).lastWidth||_!==e(m).lastHeight;F("Storing current size",y,_),f(m,y,_),d.add(0,function(){if(at){if(!e(m)){F("Aborting because element has been uninstalled");return}if(!it()){F("Aborting because element container has not been initialized");return}if(h.debug){var rt=m.offsetWidth,Ht=m.offsetHeight;(rt!==y||Ht!==_)&&t.warn(i.get(m),"Scroll: Size changed before updating detector elements.")}z(m,y,_)}}),d.add(1,function(){if(!e(m)){F("Aborting because element has been uninstalled");return}if(!it()){F("Aborting because element container has not been initialized");return}Ut(m,y,_)}),at&&H&&d.add(2,function(){if(!e(m)){F("Aborting because element has been uninstalled");return}if(!it()){F("Aborting because element container has not been initialized");return}H()})}function it(){return!!e(m).container}function Yt(){function H(){return e(m).lastNotifiedWidth===void 0}F("notifyListenersIfNeeded invoked");var y=e(m);if(H()&&y.lastWidth===y.startSize.width&&y.lastHeight===y.startSize.height)return F("Not notifying: Size is the same as the start size, and there has been no notification yet.");if(y.lastWidth===y.lastNotifiedWidth&&y.lastHeight===y.lastNotifiedHeight)return F("Not notifying: Size already notified");F("Current size not notified, notifying..."),y.lastNotifiedWidth=y.lastWidth,y.lastNotifiedHeight=y.lastHeight,Ar(e(m).listeners,function(_){_(m)})}function jt(){if(F("startanimation triggered."),T(m)){F("Ignoring since element is still unrendered...");return}F("Element rendered.");var H=I(m),y=B(m);(H.scrollLeft===0||H.scrollTop===0||y.scrollLeft===0||y.scrollTop===0)&&(F("Scrollbars out of sync. Updating detector elements..."),$(Yt))}function bl(){if(F("Scroll detected."),T(m)){F("Scroll event fired while unrendered. Ignoring...");return}$(Yt)}if(F("registerListenersAndPositionElements invoked."),!e(m)){F("Aborting because element has been uninstalled");return}e(m).onRendered=jt,e(m).onExpand=bl,e(m).onShrink=bl;var A=e(m).style;z(m,A.width,A.height)}function _t(){if(F("finalizeDomMutation invoked."),!e(m)){F("Aborting because element has been uninstalled");return}var z=e(m).style;f(m,z.width,z.height),Ut(m,z.width,z.height)}function Mt(){g(m)}function le(){F("Installing..."),S(),Q(),d.add(0,j),d.add(1,Ft),d.add(2,Nl),d.add(3,_t),d.add(4,Mt)}F("Making detectable..."),u(m)?(F("Element is detached"),mt(),F("Waiting until element is attached..."),e(m).onRendered=function(){F("Element is now attached"),le()}):le()}function C(h){var m=e(h);m&&(m.onExpandScroll&&U(I(h),"scroll",m.onExpandScroll),m.onShrinkScroll&&U(B(h),"scroll",m.onShrinkScroll),m.onAnimationStart&&U(m.container,"animationstart",m.onAnimationStart),m.container&&h.removeChild(m.container))}return{makeDetectable:Y,addListener:N,uninstall:C,initDocument:c}}});var zZ=r((RY,yZ)=>{"use strict";var vd=Na().forEach,yr=WZ(),zr=ZZ(),wr=gZ(),Lr=mZ(),Or=BZ(),MZ=Qa(),jr=JZ(),hl=XZ(),Dr=TZ(),vr=kZ();function HZ(l){return Array.isArray(l)||l.length!==void 0}function EZ(l){if(Array.isArray(l))return l;var t=[];return vd(l,function(d){t.push(d)}),t}function AZ(l){return l&&l.nodeType===1}yZ.exports=function(l){l=l||{};var t;if(l.idHandler)t={get:function(N){return l.idHandler.get(N,!0)},set:l.idHandler.set};else{var d=wr(),e=Lr({idGenerator:d,stateHandler:hl});t=e}var V=l.reporter;if(!V){var i=V===!1;V=Or(i)}var n=sl(l,"batchProcessor",jr({reporter:V})),a={};a.callOnAdd=!!sl(l,"callOnAdd",!0),a.debug=!!sl(l,"debug",!1);var b=zr(t),c=yr({stateHandler:hl}),G,R=sl(l,"strategy","object"),W=sl(l,"important",!1),Z={reporter:V,batchProcessor:n,stateHandler:hl,idHandler:t,important:W};if(R==="scroll"&&(MZ.isLegacyOpera()?(V.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),R="object"):MZ.isIE(9)&&(V.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),R="object")),R==="scroll")G=vr(Z);else if(R==="object")G=Dr(Z);else throw new Error("Invalid strategy name: "+R);var o={};function U(N,Y,C){function h(k){var Q=b.get(k);vd(Q,function(j){j(k)})}function m(k,Q,S){b.add(Q,S),k&&S(Q)}if(C||(C=Y,Y=N,N={}),!Y)throw new Error("At least one element required.");if(!C)throw new Error("Listener required.");if(AZ(Y))Y=[Y];else if(HZ(Y))Y=EZ(Y);else return V.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");var g=0,F=sl(N,"callOnAdd",a.callOnAdd),u=sl(N,"onReady",function(){}),T=sl(N,"debug",a.debug);vd(Y,function(Q){hl.getState(Q)||(hl.initState(Q),t.set(Q));var S=t.get(Q);if(T&&V.log("Attaching listener to element",S,Q),!c.isDetectable(Q)){if(T&&V.log(S,"Not detectable."),c.isBusy(Q)){T&&V.log(S,"System busy making it detectable"),m(F,Q,C),o[S]=o[S]||[],o[S].push(function(){g++,g===Y.length&&u()});return}return T&&V.log(S,"Making detectable..."),c.markBusy(Q,!0),G.makeDetectable({debug:T,important:W},Q,function(f){if(T&&V.log(S,"onElementDetectable"),hl.getState(f)){c.markAsDetectable(f),c.markBusy(f,!1),G.addListener(f,h),m(F,f,C);var x=hl.getState(f);if(x&&x.startSize){var J=f.offsetWidth,M=f.offsetHeight;(x.startSize.width!==J||x.startSize.height!==M)&&h(f)}o[S]&&vd(o[S],function(v){v()})}else T&&V.log(S,"Element uninstalled before being detectable.");delete o[S],g++,g===Y.length&&u()})}T&&V.log(S,"Already detecable, adding listener."),m(F,Q,C),g++}),g===Y.length&&u()}function I(N){if(!N)return V.error("At least one element is required.");if(AZ(N))N=[N];else if(HZ(N))N=EZ(N);else return V.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");vd(N,function(Y){b.removeAllListeners(Y),G.uninstall(Y),hl.cleanState(Y)})}function B(N){G.initDocument&&G.initDocument(N)}return{listenTo:U,removeListener:b.removeListener,removeAllListeners:b.removeAllListeners,uninstall:I,initDocument:B}};function sl(l,t,d){var e=l[t];return e==null&&d!==void 0?d:e}});var x2=tt(qR()),J2=tt(i0()),u2=tt(B0()),C2=tt(M0());(function(l){typeof l.matches!="function"&&(l.matches=l.msMatchesSelector||l.mozMatchesSelector||l.webkitMatchesSelector||function(d){for(var e=this,V=(e.document||e.ownerDocument).querySelectorAll(d),i=0;V[i]&&V[i]!==e;)++i;return!!V[i]}),typeof l.closest!="function"&&(l.closest=function(d){for(var e=this;e&&e.nodeType===1;){if(e.matches(d))return e;e=e.parentNode}return null})})(window.Element.prototype);var Y2=tt(E0());var j0=tt(A0());function s(l,t=null){let e=Do(t).querySelectorAll(l);return Array.from(e)}function L(l,t=null){let d=s(l,t);return d.length===0?!1:d[0]}function Do(l){return l||(window.__shadowRoot?window.__shadowRoot.querySelector("article"):document)}(function(l,t){"use strict";var d=/Edge\/\d+/i.test(navigator.userAgent);if(!d&&"IntersectionObserver"in l&&"IntersectionObserverEntry"in l&&"intersectionRatio"in l.IntersectionObserverEntry.prototype){"isIntersecting"in l.IntersectionObserverEntry.prototype||Object.defineProperty(l.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}var e=[];function V(U){this.time=U.time,this.target=U.target,this.rootBounds=U.rootBounds,this.boundingClientRect=U.boundingClientRect,this.intersectionRect=U.intersectionRect||W(),this.isIntersecting=!!U.intersectionRect;var I=this.boundingClientRect,B=I.width*I.height,N=this.intersectionRect,Y=N.width*N.height;B?this.intersectionRatio=Y/B:this.intersectionRatio=this.isIntersecting?1:0}function i(U,I){var B=I||{};if(typeof U!="function")throw new Error("callback must be a function");if(B.root&&B.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(B.rootMargin),this.thresholds=this._initThresholds(B.threshold),this.root=B.root||null,this.rootMargin=this._rootMarginValues.map(function(N){return N.value+N.unit}).join(" ")}i.prototype.THROTTLE_TIMEOUT=100,i.prototype.POLL_INTERVAL=null,i.prototype.USE_MUTATION_OBSERVER=!0,i.prototype.observe=function(U){var I=this._observationTargets.some(function(B){return B.element==U});if(!I){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()}},i.prototype.unobserve=function(U){this._observationTargets=this._observationTargets.filter(function(I){return I.element!=U}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},i.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},i.prototype.takeRecords=function(){var U=this._queuedEntries.slice();return this._queuedEntries=[],U},i.prototype._initThresholds=function(U){var I=U||[0];return Array.isArray(I)||(I=[I]),I.sort().filter(function(B,N,Y){if(typeof B!="number"||isNaN(B)||B<0||B>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return B!==Y[N-1]})},i.prototype._parseRootMargin=function(U){var I=U||"0px",B=I.split(/\s+/).map(function(N){var Y=/^(-?\d*\.?\d+)(px|%)$/.exec(N);if(!Y)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(Y[1]),unit:Y[2]}});return B[1]=B[1]||B[0],B[2]=B[2]||B[0],B[3]=B[3]||B[1],B},i.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(b(l,"resize",this._checkForIntersections,!0),b(t,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in l&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},i.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,c(l,"resize",this._checkForIntersections,!0),c(t,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},i.prototype._checkForIntersections=function(){var U=this._rootIsInDom(),I=U?this._getRootRect():W();this._observationTargets.forEach(function(B){var N=B.element,Y=R(N),C=this._rootContainsTarget(N),h=B.entry,m=U&&C&&this._computeTargetAndRootIntersection(N,I),g=B.entry=new V({time:n(),target:N,boundingClientRect:Y,rootBounds:I,intersectionRect:m});h?U&&C?this._hasCrossedThreshold(h,g)&&this._queuedEntries.push(g):h&&h.isIntersecting&&this._queuedEntries.push(g):this._queuedEntries.push(g)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},i.prototype._computeTargetAndRootIntersection=function(U,I){if(l.getComputedStyle(U).display!="none"){for(var B=R(U),N=B,Y=o(U),C=!1;!C;){var h=null,m=Y.nodeType==1?l.getComputedStyle(Y):{};if(m.display=="none")return;if(Y==this.root||Y==t?(C=!0,h=I):Y!=t.body&&Y!=t.documentElement&&m.overflow!="visible"&&(h=R(Y)),h&&(N=G(h,N),!N))break;Y=o(Y)}return N}},i.prototype._getRootRect=function(){var U;if(this.root)U=R(this.root);else{var I=t.documentElement,B=t.body;U={top:0,left:0,right:I.clientWidth||B.clientWidth,width:I.clientWidth||B.clientWidth,bottom:I.clientHeight||B.clientHeight,height:I.clientHeight||B.clientHeight}}return this._expandRectByRootMargin(U)},i.prototype._expandRectByRootMargin=function(U){var I=this._rootMarginValues.map(function(N,Y){return N.unit=="px"?N.value:N.value*(Y%2?U.width:U.height)/100}),B={top:U.top-I[0],right:U.right+I[1],bottom:U.bottom+I[2],left:U.left-I[3]};return B.width=B.right-B.left,B.height=B.bottom-B.top,B},i.prototype._hasCrossedThreshold=function(U,I){var B=U&&U.isIntersecting?U.intersectionRatio||0:-1,N=I.isIntersecting?I.intersectionRatio||0:-1;if(B!==N)for(var Y=0;Y<this.thresholds.length;Y++){var C=this.thresholds[Y];if(C==B||C==N||C<B!=C<N)return!0}},i.prototype._rootIsInDom=function(){return!this.root||Z(t,this.root)},i.prototype._rootContainsTarget=function(U){return Z(this.root||t,U)},i.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},i.prototype._unregisterInstance=function(){var U=e.indexOf(this);U!=-1&&e.splice(U,1)};function n(){return l.performance&&performance.now&&performance.now()}function a(U,I){var B=null;return function(){B||(B=setTimeout(function(){U(),B=null},I))}}function b(U,I,B,N){typeof U.addEventListener=="function"?U.addEventListener(I,B,N||!1):typeof U.attachEvent=="function"&&U.attachEvent("on"+I,B)}function c(U,I,B,N){typeof U.removeEventListener=="function"?U.removeEventListener(I,B,N||!1):typeof U.detatchEvent=="function"&&U.detatchEvent("on"+I,B)}function G(U,I){var B=Math.max(U.top,I.top),N=Math.min(U.bottom,I.bottom),Y=Math.max(U.left,I.left),C=Math.min(U.right,I.right),h=C-Y,m=N-B;return h>=0&&m>=0&&{top:B,bottom:N,left:Y,right:C,width:h,height:m}}function R(U){var I;try{I=U.getBoundingClientRect()}catch(B){}return I?(I.width&&I.height||(I={top:I.top,right:I.right,bottom:I.bottom,left:I.left,width:I.right-I.left,height:I.bottom-I.top}),I):W()}function W(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function Z(U,I){for(var B=I;B;){if(B==U)return!0;B=o(B)}return!1}function o(U){var I=U.parentNode;return I&&I.nodeType==11&&I.host?I.host:I}l.IntersectionObserver=i,l.IntersectionObserverEntry=V})(window,document);window.hasOwnProperty("Shorthand")||(window.Shorthand={});window.Shorthand.lazyloadTriggerMargin=window.Shorthand.lazyloadTriggerMargin||"500%";var Oi=window.innerHeight||screen.height,vo={"nearly visible":"100%","on visibile":"0%","partially visible":"-10%","mostly visible":"-40%","fully visible":"0px",lazyload:window.Shorthand.lazyloadTriggerMargin,"lazyload 3D models":`${Oi*2}px`,"unload 3D models":`${Oi*2+100}px`,"lazy download 3D models":`${Oi*5}px`},fo={"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},y0=[],z0=[];function vt(l){return l.intersectionRatio>=1e-5}function w0(l,t=null){let d=y0.find(e=>e.triggerPoint===l&&e.root===t);if(!d){let e={rootMargin:vo[l],threshold:fo[l],root:t},V=new IntersectionObserver(i=>{Po(i,l,t)},e);return y0.push({instance:V,triggerPoint:l,root:t}),V}return d.instance}function Po(l,t,d=null){l.forEach(e=>{L0(e.target,t,d).callbacks.forEach(i=>i(e))})}function Ko(l,t,d=null){let e={target:l,triggerPoint:t,callbacks:[],root:d};return z0.push(e),e}function L0(l,t,d=null){return z0.find(e=>e.target===l&&e.triggerPoint===t&&e.root===d)}function _l(l,t={}){let d=t.triggerPoint||"on visibile",e=t.root||null;w0(d,e).unobserve(l)}function wt(l,t,d={}){let e=d.triggerPoint||"on visibile",V=d.root||null,i=w0(e),n=L0(l,e,V);n||(n=Ko(l,e,V)),n.callbacks.push(t),i.observe(l)}var _o=5,qo=1e3;function $o(l,t){let d={isTracking:!1,trackingStartAt:0,cumulativeLingerTime:0};wt(l,e=>{if(vt(e)&&!d.isTracking)d.isTracking=!0,d.trackingStartAt=Date.now();else if(d.isTracking){d.isTracking=!1;let V=Math.round((Date.now()-d.trackingStartAt)/qo);if(V<_o)return;d.cumulativeLingerTime+=V,t(V)}})}function tB(l){let t=/\bTheme-(\w+Section)\b/,d=l.match(t);return d!==null?d[1]:"UnknownTypeSection"}function ji(l,t){l.forEach((d,e)=>{let V=tB(d.className),i=e.toString().padStart(3,"0")+" "+d.id;$o(d,a=>{t(V,"linger-seconds",i,a)})})}function lB(...l){}function Te(...l){(window.ga||lB)(...l)}function Di(l){l.on("logEvent",function(...t){Te("send","event",...t),Te("shorthand.send","event",...t)}),l.on("logSocial",(...t)=>{Te("send","social",...t),Te("shorthand.send","social",...t)})}function dB(l){return l.hasAttribute("data-social-share")?{type:"social",network:l.getAttribute("data-social-share"),target:window.location.href}:l.hasAttribute("data-story-nav-item")?{type:"nav-link",target:l.href}:{type:"link",target:l.href,element:l}}function eB(l){let t=dB(l);t.type==="social"?O0(t.network,"share",t.target):dl(t.type,"click",t.target)}function vi(){s("a").forEach(t=>t.addEventListener("click",()=>eB(t)))}var fi=new j0.default;function dl(...l){fi.emit("logEvent",...l)}function O0(...l){fi.emit("logSocial",...l)}function Pi(){let l=s(".Theme-Section");Di(fi),ji(l,dl),vi()}var tW=tt(pt());var VB={textPerLine:!1,textFade:"none",textZoom:"none",textBlur:"none",backgroundFade:"none",backgroundZoom:"none",backgroundBlur:"none",backgroundGrayscale:"none",hasEffects:!1};function v0(l,t=VB){try{return nt(nt({},t),JSON.parse(window.atob(l.getAttribute("data-effects"))))}catch(d){return nt({},t)}}var ln=tt(Se());var He=tt(pt());var q0=tt(_i());function el(l,t,d,e){function V(){l.removeEventListener(t,i,e)}function i(){return V(),d.apply(this,arguments)}return l.addEventListener(t,i,e),V}var nB=K0(),_0=["android","ios","firefoxos","windows.phone","windows.mobile","blackberryos"],aB={hasTouch:!1},qi=null;function Rt(){if(qi===null){let l=new nB;l.sniff(navigator.userAgent),qi={isMobile:_0.includes(l.os.name),isDesktop:!_0.includes(l.os.name),isTablet:!1,isiPhone:l.device.name==="iphone",isiPad:l.device.name==="ipad",isAndroid:l.os.name==="android",isiOS:l.os.name==="ios",isiOS10:l.os.name==="ios"&&l.os.version[0]===10,isMac:l.os.name==="macos",isWindows:l.os.name==="windows",isIE:l.browser.name==="ie",isEdge:l.browser.name==="edge",isChrome:l.browser.name==="chrome",isSafari:l.browser.name==="safari",isFirefox:l.browser.name==="firefox",isOpera:l.browser.name==="opera",isBot:/bot|googlebot|crawler|spider|robot|crawling/i.test(navigator.userAgent),isCypress:window.Cypress}}return qi}function bB(l){let t=Rt(),d=Object.keys(t).reduce((e,V)=>(e[`DeviceDetect--${V}`]=t[V],e),{});l.className=(0,q0.default)(l.className,d)}function $i(l=document.documentElement){var t;bB(((t=window.__shadowRoot)==null?void 0:t.querySelector("article"))||l),cB()}function cB(){el(document.documentElement,"touchstart",()=>{aB.hasTouch=!0,document.documentElement.classList.add("DeviceDetect--isTouch")})}function tn(){let{isIE:l,isEdge:t}=Rt();if(!l&&!t)return;let d={tallTOMs:[]};He.default.measure(()=>{s(".DisplayContainerHeight--flex").forEach(V=>{d.tallTOMs.push(V)});function e(){GB(d)}e(),window.addEventListener("resize",e,{passive:!0})})}function GB(l){l.tallTOMs.forEach(t=>{He.default.measure(()=>{let d=t.querySelector(".FullSize--child"),e=t.querySelector(".DisplayContainer--heightBasis").getBoundingClientRect().height+200,V=e+"px",i=V;if(e<q.getHeight()){t.style.setProperty("height",V);return}t.classList.contains("SplitLayout")&&q.getWidth()<=960&&(V=`calc(${e} + 50vh)`,i="50vh"),He.default.mutate(()=>{t.style.setProperty("height",V),d.style.setProperty("height",i),s(".FullSize--fixedChild",d).forEach(n=>{n.style.setProperty("height",i)}),d.style.setProperty("clip-path",`polygon(0 0, 0 ${i}, 100% ${i}, 100% 0)`)})})})}var Id=class{constructor(t={}){this.cache={width:0,height:0,top:0,bottom:0};t.measuringElement?this.measuringElement=t.measuringElement:this.ensureMeasuringElement(),window.addEventListener("resize",this.refresh.bind(this),{passive:!0}),this.refresh()}ensureMeasuringElement(){let t=this.measuringElement=document.createElement("div");t.style.width="100%",t.style.height="100vh",t.style.visibility="hidden",t.style.pointerEvents="none",t.style.opacity="0",t.style.position="absolute",t.style.top="0",t.setAttribute("id","viewport-height-element"),document.body.appendChild(t)}refresh(){let t=this.measuringElement.getBoundingClientRect();this.cache.width=t.width,this.cache.height=t.height,this.cache.top=0,this.cache.bottom=0}getCache(){return this.cache}};var Xl;function Ae(l=new Id){Xl=l,tn()}var Ee={getOrientation(){return Xl?Ee.getWidth()>Ee.getHeight()?"landscape":"portrait":window.innerWidth>window.innerHeight?"landscape":"portrait"},getHeight(){return Xl.getCache().height},getWidth(){return Xl.getCache().width},getTop(){return Xl.getCache().top},getBottom(){return Xl.getCache().bottom},getVhUnitsInPixels(l){return Ee.getHeight()*(l/100)},getDisplayContainer(){return Xl}},q=Ee;var md;function ye(l,t=0,d=1){var W,Z;let{top:e,height:V}=l.getBoundingClientRect();md===null&&(md=L(".Header[role=banner]"));let i=(W=md==null?void 0:md.offsetHeight)!=null?W:0,n=1,a=/scale\((.*)\)/.exec((Z=l.style.getPropertyValue("transform"))!=null?Z:"");a&&(n=parseFloat(a[1]));let b=e+(V-V/n)/2,c=-V/n+i,R=q.getHeight()-c;return l.className.includes("Theme-BackgroundMedia")&&V<q.getHeight()*.6&&(d*=.5),{threshold:(0,ln.default)(q.getHeight()*.6/R,t,d),percent:(0,ln.default)(1-(b-c)/R,0,1)}}function od(l,t,d=3){return l<t?Math.pow(l/t,d):l>1-t?Math.pow(1-(l-(1-t))/t,d):1}var dn=[];function gl(){dn.forEach(l=>l())}function en(){let l=!!L("#editor-viewport");l&&(document.removeEventListener("focus",gl,!0),document.addEventListener("focus",gl,!0),document.removeEventListener("blur",gl,!0),document.addEventListener("blur",gl,!0));let t=l?document.querySelector("#editor-viewport"):window;t.removeEventListener("scroll",gl),t.addEventListener("scroll",gl,{passive:!0}),dn=[],tW.default.mutate(()=>{s("[data-effects]").forEach(d=>{let e=v0(d),i=s(l?".Theme-Layer-background-viewport:not(.Theme-Layer-background-viewport-cyclops)":".Theme-BackgroundMedia:not(.Theme-BackgroundModel)",d),n=s(".Theme-Layer-TextBlock-Inner",d);if(!e.hasEffects){l&&gl();return}i.forEach(b=>{let c=s("video",b);c.length===0&&(c=s("img",b).filter(G=>G.className.indexOf("InstantImage__img")===-1)),s("picture",b).forEach((G,R)=>{R!==0&&(G.style.setProperty("position","absolute"),G.style.setProperty("top","0"))}),c.forEach((G,R)=>{G.style.setProperty("transition","none"),G.tagName.toLowerCase()==="img"&&R===0&&$0(G,e,0),G.style.setProperty("transform","scale(1)"),G.style.setProperty("opacity","1")})}),n.forEach(b=>{RB(b)&&(b.classList.remove("Layout__flex--xleft"),b.classList.remove("Layout__flex--xright"),b.classList.add("Layout__flex--xcenter")),b.parentElement.parentElement.style.setProperty("overflow","visible");let c=b.className.indexOf("Layout__flex--xright")>-1;b.className.indexOf("Layout__flex--xleft")>-1?b.style.setProperty("transform-origin","0% 0%"):c?b.style.setProperty("transform-origin","100% 0%"):b.style.removeProperty("transform-origin");let R=l?s(".NodeContent"):[].slice.call(b.firstElementChild.firstElementChild.children);(e.textPerLine?R:[b]).forEach(Z=>{let o=[];e.textZoom!=="none"&&navigator.maxTouchPoints>0&&o.push("transform"),e.textBlur!=="none"&&o.push("filter"),o.length>0&&Z.style.setProperty("will-change",o.join(", "))})});function a(){let b=ye(d).percent;b<=0||b>=1||(i.forEach(c=>{let G=s("video",c);G.length===0&&(G=s("img",c).filter(Z=>Z.className.indexOf("InstantImage__img")===-1));let{percent:R,threshold:W}=ye(c,0,.5);G.forEach((Z,o)=>{Z.parentElement.style.setProperty("overflow","hidden"),e.backgroundZoom==="in"?Z.style.setProperty("transform",`scale(${1+.4*R})`):e.backgroundZoom==="out"&&Z.style.setProperty("transform",`scale(${1.4-.4*R})`);let U=1;e.backgroundFade!=="none"&&(["in","both"].includes(e.backgroundFade)&&R<.5||["out","both"].includes(e.backgroundFade)&&R>.5?U=od(R,W,2):U=1,Z.style.setProperty("opacity",`${U}`)),Z.tagName.toLowerCase()==="img"&&(o===0?$0(Z,e,R):(U*=od(R,W),Z.style.setProperty("opacity",`${U}`)))})}),n.forEach(c=>{let G=l?s(".NodeContent",c):[].slice.call(c.firstElementChild.firstElementChild.children);if(l&&WB(e.textPerLine,c,G),l&&c.contains(document.activeElement))return;(e.textPerLine?G:[c]).forEach(W=>{let{percent:Z,threshold:o}=ye(W,0,.2);e.textZoom==="in"?W.style.setProperty("transform",`scale(${.7+.3*Z})`):e.textZoom==="out"&&W.style.setProperty("transform",`scale(${1-.3*Z})`);let U=[];(["in","both"].includes(e.textBlur)&&Z<.5||["out","both"].includes(e.textBlur)&&Z>.5)&&U.push(`blur(${(20*(1-od(Z,o,2))).toFixed(2)}px)`);let I=U.join(" ");W.style.getPropertyValue("filter")!==I&&W.style.setProperty("filter",I);let B=1;["in","both"].includes(e.textFade)&&Z<.5||["out","both"].includes(e.textFade)&&Z>.5?B*=od(Z,o):B=1,W.style.setProperty("opacity",`${B}`)})}))}dn.push(a)})}),setTimeout(gl,500)}function $0(l,t,d){let e=[];d<.5?(["in","both"].includes(t.backgroundBlur)&&e.push("blur(20px)"),["in","both"].includes(t.backgroundGrayscale)&&e.push("grayscale(100%)")):(["out","both"].includes(t.backgroundBlur)&&e.push("blur(20px)"),["out","both"].includes(t.backgroundGrayscale)&&e.push("grayscale(100%)"));let V=e.join(" ");l.style.getPropertyValue("filter")!==V&&l.style.setProperty("filter",V)}function RB(l){let t=l;for(;t&&!t.classList.contains("Theme-Section");)t.parentNode?t=t.parentNode:console.error("Could not find the parent Theme-section");return t.classList.contains("SplitLayout")}function WB(l,t,d){(l||t.contains(document.activeElement))&&(t.style.removeProperty("transform"),t.style.removeProperty("filter"),t.style.removeProperty("opacity")),(!l||t.contains(document.activeElement))&&d.forEach(e=>{e.style.removeProperty("transform"),e.style.removeProperty("filter"),e.style.removeProperty("opacity")})}var ZW=tt(Vn());function nn(){s("[data-lazyload-container][data-lazyload-trigger]").map(t=>({pictures:s("[data-lazyload-item] picture",t),container:t,trigger:t})).forEach(Bd)}function Bd({pictures:l,container:t,trigger:d}){let e=!1,V=()=>{e||(_l(t),e=!0)};return wt(d,n=>{vt(n)&&(l.forEach(a=>UB(a,()=>ZB(t))),V())},{triggerPoint:"lazyload"}),V}function UB(l,t){let d=L("img",l),e=s("source",l);d&&(d.addEventListener("load",t),dW(d),e.forEach(dW))}function dW(l){Object.entries({"data-src":"src","data-srcset":"srcset"}).forEach(([d,e])=>{let V=l.getAttribute(d);V&&(l.removeAttribute(d),l.setAttribute(e,V))})}function ZB(l){l.classList.remove("Lazyload--isLoading"),l.classList.add("Lazyload--isLoaded")}var an=tt(VW()),FB={isHidden(){var l;return document[(l=an.default)==null?void 0:l.hidden]},addVisibilityChangeListener(l){return document.addEventListener(an.default.visibilityChange,l)}},Yl=FB;var gB=window.setTimeout,IB=window.clearTimeout,iW=0,mB=l=>{let t=Date.now(),d=Math.max(0,16-(t-iW)),e=gB(()=>l(t+d),d);return iW=t+d,e},oB=l=>IB(l),we=window.requestAnimationFrame?window.requestAnimationFrame.bind(window):mB,kx=window.requestAnimationFrame?window.cancelAnimationFrame.bind(window):oB;var hd=[],Le=!1;function BB(l){hd.forEach(t=>t(l))}function aW(l){BB(l),Le&&we(aW)}var nW=!1;function Oe(){Le||(nW||(Yl.addVisibilityChangeListener(()=>{Yl.isHidden()?pB():Oe()}),nW=!0),!Yl.isHidden()&&(Le=!0,we(aW)))}function pB(){Le=!1}function St(l){hd.indexOf(l)===-1&&hd.push(l),Oe()}function Il(l){let t=hd.indexOf(l);t!==-1&&hd.splice(t,1)}var WW=tt(bW());var Nd=tt(pt());(function(){"use strict";if(typeof window!="undefined"){var l=window.navigator.userAgent.match(/Edge\/(\d{2})\./),t=l?parseInt(l[1],10):null,d=!!t&&16<=t&&t<=18;if(!("objectFit"in document.documentElement.style)||d){var e=function(n,a,b){var c,G,R,W,Z;if((b=b.split(" ")).length<2&&(b[1]=b[0]),n==="x")c=b[0],G=b[1],R="left",W="right",Z=a.clientWidth;else{if(n!=="y")return;c=b[1],G=b[0],R="top",W="bottom",Z=a.clientHeight}if(c!==R&&G!==R){if(c!==W&&G!==W)return c==="center"||c==="50%"?(a.style[R]="50%",void(a.style["margin-"+R]=Z/-2+"px")):void(0<=c.indexOf("%")?(c=parseInt(c,10))<50?(a.style[R]=c+"%",a.style["margin-"+R]=Z*(c/-100)+"px"):(c=100-c,a.style[W]=c+"%",a.style["margin-"+W]=Z*(c/-100)+"px"):a.style[R]=c);a.style[W]="0"}else a.style[R]="0"},V=function(n){var a=n.dataset?n.dataset.objectFit:n.getAttribute("data-object-fit"),b=n.dataset?n.dataset.objectPosition:n.getAttribute("data-object-position");a=a||"cover",b=b||"50% 50%";var c=n.parentNode;return function(G){var R=window.getComputedStyle(G,null),W=R.getPropertyValue("position"),Z=R.getPropertyValue("overflow"),o=R.getPropertyValue("display");W&&W!=="static"||(G.style.position="relative"),Z!=="hidden"&&(G.style.overflow="hidden"),o&&o!=="inline"||(G.style.display="block"),G.clientHeight===0&&(G.style.height="100%"),G.className.indexOf("object-fit-polyfill")===-1&&(G.className=G.className+" object-fit-polyfill")}(c),function(G){var R=window.getComputedStyle(G,null),W={"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 Z in W)R.getPropertyValue(Z)!==W[Z]&&(G.style[Z]=W[Z])}(n),n.style.position="absolute",n.style.width="auto",n.style.height="auto",a==="scale-down"&&(a=n.clientWidth<c.clientWidth&&n.clientHeight<c.clientHeight?"none":"contain"),a==="none"?(e("x",n,b),void e("y",n,b)):a==="fill"?(n.style.width="100%",n.style.height="100%",e("x",n,b),void e("y",n,b)):(n.style.height="100%",void(a==="cover"&&n.clientWidth>c.clientWidth||a==="contain"&&n.clientWidth<c.clientWidth?(n.style.top="0",n.style.marginTop="0",e("x",n,b)):(n.style.width="100%",n.style.height="auto",n.style.left="0",n.style.marginLeft="0",e("y",n,b))))},i=function(n){if(n===void 0||n instanceof Event)n=document.querySelectorAll("[data-object-fit]");else if(n&&n.nodeName)n=[n];else{if(typeof n!="object"||!n.length||!n[0].nodeName)return!1;n=n}for(var a=0;a<n.length;a++)if(n[a].nodeName){var b=n[a].nodeName.toLowerCase();if(b==="img"){if(d)continue;n[a].complete?V(n[a]):n[a].addEventListener("load",function(){V(this)})}else b==="video"?0<n[a].readyState?V(n[a]):n[a].addEventListener("loadedmetadata",function(){V(this)}):V(n[a])}return!0};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",i):i(),window.addEventListener("resize",i),window.objectFitPolyfill=i}else window.objectFitPolyfill=function(){return!1}}})();function cW(){if(!window)return!1;let l=document.querySelector(".ObjectFit--cover");if(!l)return!1;let d=window.getComputedStyle(l).objectFit,e=Rt().isEdge;return(d?/^(contain|cover|fill)$/.test(d):!1)&&!e}function Qd(){Nd.default.measure(()=>{let l=q.getOrientation();Nd.default.mutate(()=>{let t=s(".ObjectFit--cover");t.forEach(d=>{d.dataset.objectFit="cover";let e=d.tagName==="IMG"?d.parentElement:d;e.hasAttribute(`data-${l}-focal`)&&(d.dataset.objectPosition=e.dataset[`${l}Focal`])}),cn(t)})})}function cn(l){window.objectFitPolyfill(l),rB(l)}function rB(l){let{isIE:t,isEdge:d}=Rt();!t&&!d||l.forEach(e=>je(e))}function je(l){let{isIE:t,isEdge:d}=Rt();!t&&!d||l.className.indexOf("FullSize__fixedChild")!==-1&&Nd.default.measure(()=>{let e=window.innerWidth>window.innerHeight?"landscape":"portrait",V=GW(l);if(V==="none")return;let i=parseFloat(window.getComputedStyle(l.parentElement).getPropertyValue("width"));if(d){l.style.setProperty("width",`${e==="landscape"?i+"px":"100%"}`);return}if(e==="portrait"){l.style.removeProperty("transform");return}let n="play"in l?{width:l.videoWidth,height:l.videoHeight}:{width:l.naturalWidth,height:l.naturalHeight};if(n.width<1){setTimeout(()=>je(l),100);return}let a=n.width>n.height;Nd.default.mutate(()=>{if(a)V==="media-left"?l.style.getPropertyValue("left")==="50%"?l.style.setProperty("transform",`translateX(-${i*.5}px)`):["","0px"].includes(l.style.getPropertyValue("margin-left"))?l.style.setProperty("transform",`translateX(-${i*.75}px)`):l.style.setProperty("transform",`translateX(-${i*.25}px)`):l.style.getPropertyValue("left")==="50%"?l.style.setProperty("transform",`translateX(${i*.5}px)`):["","0px"].includes(l.style.getPropertyValue("margin-left"))?l.style.setProperty("transform",`translateX(${i*.25}px)`):l.style.setProperty("transform",`translateX(${i*.75}px)`);else{let[b,c]=l.dataset["object-position"].split(" ").map(W=>parseInt(W,10)),G=l.style.getPropertyValue("margin-left")&&l.style.getPropertyValue("margin-left")!=="0px",R=l.style.getPropertyValue("margin-right")&&l.style.getPropertyValue("margin-right")!=="0px";if(V==="media-right"){if(b===50?l.style.setProperty("transform",`scale(0.5) translate(${i}px, 0%)`):c<50?l.style.setProperty("transform",`scale(0.5) translate(${i}px, -${50-c}%)`):l.style.setProperty("transform",`scale(0.5) translate(${i}px, ${c-50}%)`),G){l.style.setProperty("transform",`translateX(${i-Math.abs(parseFloat(l.style.getPropertyValue("margin-left")))}px)`);return}if(R){l.style.setProperty("transform",`translateX(${Math.abs(parseFloat(l.style.getPropertyValue("margin-right")))}px)`);return}}else{if(c===50?l.style.setProperty("transform",`scale(0.5) translate(-${i}px, 0%)`):c<50?l.style.setProperty("transform",`scale(0.5) translate(-${i}px, -${50-c}%)`):l.style.setProperty("transform",`scale(0.5) translate(-${i}px, ${c-50}%)`),G){l.style.setProperty("transform",`translateX(-${Math.abs(parseFloat(l.style.getPropertyValue("margin-left")))}px)`);return}if(R){l.style.setProperty("transform",`translateX(-${i-Math.abs(parseFloat(l.style.getPropertyValue("margin-right")))}px)`);return}}}})})}function GW(l){var t;return((t=l.id)==null?void 0:t.indexOf("section-"))===0?l.className.indexOf("SplitLayout--rowReverse")>-1?"media-left":l.className.indexOf("SplitLayout")>-1?"media-right":"none":GW(l.parentElement)}function xd(){window.addEventListener("resize",()=>Qd(),{passive:!0}),Qd()}function RW(l){let t=l.getBoundingClientRect(),d=-t.top,e=Math.max(1,t.height-document.documentElement.clientHeight),V=d/e;return{percentage:V,scrollingIn:V<0,scrollingOut:V>1}}var De=WW.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:l,classNames:t}=this;l.itemEl.classList.add(t.prime),this.onItemShown&&this.onItemShown(l)},onStartTransition(){let{item:l,classNames:t}=this;el(l.itemEl,"transitionend",()=>this.activate()),requestAnimationFrame(()=>l.itemEl.classList.add(t.active)),Qd()},onReverseTransition(){let{item:l,classNames:t}=this;el(l.itemEl,"transitionend",()=>this.reset()),l.itemEl.classList.remove(t.active)},onReset(){let{item:l,classNames:t}=this;l.itemEl.classList.remove(t.prime),l.itemEl.classList.remove(t.active)},onActive(){let{item:l,classNames:t}=this;[t.prime,t.active].forEach(d=>l.itemEl.classList.add(d)),this.onItemShown&&this.onItemShown(l),Qd()},onCompleted(){let{item:l,classNames:t}=this;l.itemEl.classList.remove(t.prime),l.itemEl.classList.remove(t.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 l=this.shouldLinger(this.item),t=this.can("linger"),d=!l,e=this.can("complete");l&&t?this.linger():d&&e&&this.complete()},isActive(){return this.is("active")}},data(l){return l}});function ve(l){if(l.isRendering)return;l.isRendering=!0;let t=RW(l.scrollContainer);l.items.forEach(d=>{let e=hB(t,d.data);if(!e)return;let V=l.machines.get(d);({ready:V.requestReady,active:V.requestActive,complete:V.requestComplete})[e].call(V)}),l.isRendering=!1}function hB(l,t){let d=l.scrollingIn&&t.showDuringScrollIn,e=l.scrollingOut&&t.showDuringScrollOut,V=sB(l.percentage,t.start,t.end);if(d||e||V)return"active";if(l.percentage<t.start)return"ready";if(l.percentage>t.end)return"complete"}function sB(l,t,d){return l>=t&&l<d}var Rn={instances:new Map,isRunning:!1},Gn=new WeakMap;function NB(l){let t=Rn.instances;return t.has(l)||t.set(l,{scrollContainer:l.parentElement,items:[],isRendering:!1,machines:new WeakMap}),t.get(l)}function QB(l,t,d){let e=1/d.length,V=t*e,i=V+e,n=t===0,a=t===d.length-1;return{itemEl:l,index:t,data:{start:V,end:i,showDuringScrollIn:n,showDuringScrollOut:a}}}function xB(){document.querySelectorAll(".Theme-BackgroundScrollmationSection").forEach(t=>{let d=t.querySelectorAll(".MediaRenderer__fixedCaption--icon"),e=t.querySelector(".MediaRenderer__Scrollmation-portrait--Caption"),V=t.querySelectorAll(".btn-close-caption-scrollmation");function i(){e.removeAttribute("style")}function n(){e.style.display="none"}d.forEach(a=>a.addEventListener("click",i)),V.forEach(a=>a.addEventListener("click",n))})}function Wn(){let l=s("[data-background-scrollmation]");xB(),l.forEach(t=>JB(t,{doLazyload:!0})),["resize","orientationchange"].forEach(t=>window.addEventListener(t,FW,{passive:!0}))}function JB(l,t,d){let e=s("[data-background-scrollmation-item]",l);if(e.length===0)return()=>{};let V=e.map(QB),i=NB(l);i.items=V.reduce((a,b)=>{let c=i.items.find(G=>G.itemEl===b.itemEl);return c&&(c.data=b.data),[...a,c||b]},[]),i.items.map(a=>t.doLazyload?uB(a,l.parentElement):a).filter(a=>!i.machines.get(a)).forEach(a=>i.machines.set(a,new De({item:a,classNames:{prime:"BackgroundScrollmationItem--isPrimed",active:"BackgroundScrollmationItem--isActive"},onItemShown(b){d&&d(b,i.items.indexOf(b))},shouldLinger(b){return!i.items.filter(W=>W!==b).map(W=>i.machines.get(W)).some(W=>W.isActive())}})));function n(){let a=l.parentElement.getBoundingClientRect();a.bottom<q.getTop()+q.getHeight()?l.setAttribute("data-attach","after"):a.top<q.getTop()?l.setAttribute("data-attach","during"):l.setAttribute("data-attach","before")}return document.getElementById("editor-viewport")||document.addEventListener("scroll",n,{passive:!0}),t.doLazyload&&FW(),St(UW),()=>{Il(UW),document.getElementById("editor-viewport")||document.removeEventListener("scroll",n)}}function uB(l,t){if(!Gn.get(l.itemEl)){let e=document.createElement("div");e.classList.add("BackgroundScrollmation__lazyloadTriggerElement"),e.setAttribute("data-item-index",String(l.index)),Gn.set(l.itemEl,e),t.appendChild(e);let V={pictures:s("picture",l.itemEl),container:l.itemEl.querySelector("[data-lazyload-container]"),trigger:e};Bd(V)}return l}function FW(){(0,ZW.default)(Rn.instances.values()).map(l=>l.items).map(l=>l.map(t=>{let d=Gn.get(t.itemEl);Object.assign(d.style,{position:"absolute",top:`${t.data.start*100}%`})}))}function UW(){Rn.instances.forEach(l=>ve(l))}Ae();function Fn(l,t){ml.length===0&&CB();let d=ml.find(e=>e.element===l);d?d.listeners.find(e=>e===t)||d.listeners.push(t):ml.push({element:l,lastVisible:!1,listeners:[t]})}function gn(l,t){let d=ml.findIndex(e=>e.element===l);if(d!==-1){let e=ml[d];e.listeners=e.listeners.filter(V=>V!==t),e.listeners.length===0&&(ml.splice(d,1),ml.length===0&&XB())}}var ml=[],fe,Un=0,Jd=null;function CB(){let l=document.querySelector("#editor-viewport");l?(fe=l,Un=l.getBoundingClientRect().top,Jd=new ResizeObserver(ud),Jd.observe(l,{box:"content-box"})):(fe=window,Un=0,window.addEventListener("resize",ud,{passive:!0})),fe.addEventListener("scroll",ud,{passive:!0}),St(gW)}function XB(){fe.removeEventListener("scroll",ud),Jd?(Jd.disconnect(),Jd=null):window.removeEventListener("resize",ud),Il(gW)}var Zn=!1;function ud(){Zn=!0}function gW(){Zn&&(Zn=!1,YB())}function YB(){ml.forEach(l=>{let{top:t,isVisible:d,scrollPercent:e,elementHeight:V,viewportHeight:i}=Pe(l.element),n=d===l.lastVisible?"scroll":d?"enter":"leave";if(d||n==="leave"){let a={element:l.element,type:n,top:t,scrollPercent:e,elementHeight:V,viewportHeight:i};l.listeners.forEach(b=>b(a)),l.lastVisible=d}})}function Pe(l){let{top:t,height:d}=l.getBoundingClientRect(),e=q.getHeight(),V=e+d,i=t-Un,n=1-(d+i)/V;return{top:i,isVisible:n>=0&&n<=1,scrollPercent:n,elementHeight:d,viewportHeight:e}}function IW(){let l={};return{on(t,d){if(l[t])l[t].push(d);else return l[t]=[d],!0},off(t,d){if(l[t]){let e=l[t].indexOf(d);if(e!==-1){if(l[t].length===1)return delete l[t],!0;l[t].splice(e,1)}}return!1},emit(t,...d){var e;(e=l[t])==null||e.forEach(V=>V(...d))},hasListener(t){return t in l}}}function mW(l){return["enter","leave","scroll"].includes(l)}var Ke=class extends HTMLElement{constructor(){super(...arguments);this.internalEvents=IW();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=oW(this),Fn(this.scrolledParent,this.scrollListener);let d=Pe(this.scrolledParent);d.scrollPercent<0||d.scrollPercent>1?this.internalEvents.emit("leave"):(this.internalEvents.emit("enter"),this.internalEvents.emit("scroll",nt({element:this.scrolledParent,type:"enter"},d)))}}getScrollPosition(){return Pe(this.scrolledParent)}disconnectedCallback(){this.scrollListenerCount>0&&(gn(this.scrolledParent,this.scrollListener),this.internalEvents.emit("leave")),this.internalEvents.hasListener("content")&&this.observer.disconnect(),this.internalEvents.emit("disconnected")}on(d,e){this.internalEvents.on(d,e)&&(mW(d)?(this.isConnected&&this.scrollListenerCount===0&&(this.scrolledParent=oW(this),Fn(this.scrolledParent,this.scrollListener)),this.scrollListenerCount++):d==="content"&&this.isConnected&&this.observer.observe(this,{childList:!0,subtree:!0}))}off(d,e){this.internalEvents.off(d,e)&&(mW(d)?(this.scrollListenerCount--,this.isConnected&&this.scrollListenerCount===0&&gn(this.scrolledParent,this.scrollListener)):d==="content"&&this.isConnected&&this.observer.disconnect())}};function oW(l){let t=l;for(;t.parentElement;){let d=getComputedStyle(t);if(d.position!=="sticky"&&d.display!=="inline")return t;t=t.parentElement}return t}var TB={fadeInThreshold:.7,fadeOutThreshold:.15,hideWhenOutOfBounds:!0};function BW(l,t,d,e,V=TB){let i=d/(d+e),n=i*V.fadeInThreshold*.5-i,a=1-i;if(n>t||t>=a)return[];let b=l.filter(R=>R.transitionPercentage).sort((R,W)=>W.transitionPercentage-R.transitionPercentage);if(b.length===0)return[];let c=b[0],G=b[1];if(c.transitionPercentage<V.fadeInThreshold)return[];if(G){let R=G.transitionPercentage>V.fadeInThreshold,W=G.transitionPercentage>V.fadeOutThreshold;if(R)return[G];if(W)return[c,G]}return[c]}var In=tt(Se()),mn=tt(pt());function on(l){let t=s(".Theme-Layer-BodyText",l.parentElement);window.addEventListener("scroll",()=>{t.forEach(d=>{mn.default.measure(()=>{let{top:e,bottom:V}=d.getBoundingClientRect(),i=window.innerHeight,n=i*.3,a=e<i&&e>i-n,b=V<n&&V>0;mn.default.mutate(()=>{if(a){let c=(0,In.default)((i-e)/n,0,1);d.style.setProperty("opacity",c.toString())}else if(b){let c=(0,In.default)(V/n,0,1);d.style.setProperty("opacity",c.toString())}else V<0||e>i?d.style.setProperty("opacity","0"):d.style.setProperty("opacity","1")})})})},{passive:!0})}function pW(l){return l?l.split(";").map(d=>{let e=d.trim().split(/\s+/);if(e.length<2)return{name:e[0]||"none",speed:1};{let V=parseFloat(e[0]);return{name:e[1],speed:isNaN(V)?1:V}}}):[]}function rW(l,t,d,e){var G,R,W;let V=d+e,i=d*.4,n=d/V,a=-i/V,b=[{name:"none",start:a,end:a+n}],c=d;for(let Z=0;Z<t.length-1;Z++){c+=t[Z];let o=((R=(G=l[Z])==null?void 0:G.speed)!=null?R:1)*n,U=(c-i)/V;b.push({name:((W=l[Z])==null?void 0:W.name)||"none",start:U,end:U+o})}return b}function hW(l,t){return l.map((d,e)=>{if(e!==0&&t<d.start||e+1<l.length&&t>l[e+1].end)return{index:e,display:"none"};{let V=d.end-d.start,i=t-d.start,n=Math.min(i/V,1),a=SB(d,e,n);return a.opacity===0?{display:"none",index:e}:a}})}function SB(l,t,d){let e={display:"block",transitionPercentage:d,index:t,clipPath:"none",opacity:1},V=0,i=0,n=0,a=0;return l.name.split(",").forEach(c=>{switch(c){case"fade":e.opacity=d;break;case"up":V=(1-d)*100;break;case"right":i=(1-d)*100;break;case"down":n=(1-d)*100;break;case"left":a=(1-d)*100;break}}),(V||i||n||a)&&(e.clipPath=`inset(${V}% ${i}% ${n}% ${a}%)`),e}var kB=`
<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>`,_e=class extends Ke{constructor(){super();this.textHeights=[];let d=this.attachShadow({mode:"open"});d.innerHTML=kB,this.slotElements=Array.from(d.querySelectorAll("slot")),window.ResizeObserver&&(this.textObserver=new ResizeObserver(()=>{this.textBlockElement&&(this.textHeights=sW(this.textBlockElement))})),this.slotElements[0].addEventListener("slotchange",()=>{this.updateScene(this.getScrollPosition())}),this.slotElements[1].addEventListener("slotchange",()=>{this.captionElement=this.slotElements[1].assignedElements()[0];let e=this.getScrollPosition();this.captionElement&&e.isVisible&&(this.captionElement.style.display="block",this.updateScene(e))}),this.slotElements[2].addEventListener("slotchange",()=>{var e,V;this.textBlockElement&&((e=this.textObserver)==null||e.unobserve(this.textBlockElement)),this.textBlockElement=this.slotElements[2].assignedElements()[0],this.textBlockElement&&(this.textHeights=sW(this.textBlockElement),(V=this.textObserver)==null||V.observe(this.textBlockElement)),this.updateScene(this.getScrollPosition())}),this.on("connected",()=>{on(this),this.readTransitions()}),this.on("disconnected",()=>{var e;this.textBlockElement&&((e=this.textObserver)==null||e.unobserve(this.textBlockElement),this.textHeights=[])}),this.on("enter",()=>{this.captionElement&&(this.captionElement.style.display="block")}),this.on("scroll",e=>{this.updateScene(e)}),this.on("leave",()=>{this.captionElement&&(this.captionElement.style.display="none")})}readTransitions(){this.transitions=pW(this.getAttribute("data-transitions"))}updateScene({scrollPercent:d,viewportHeight:e,elementHeight:V}){if(this.textHeights.length===0)return;let i=rW(this.transitions,this.textHeights,e,V),n=hW(i,d),a=BW(n,d,e,V),b=this.slotElements[0].assignedElements();AB(this.captionElement,b,a),n.forEach((c,G)=>MB(b[G],c))}attributeChangedCallback(){this.isConnected&&(this.readTransitions(),this.updateScene(this.getScrollPosition()))}};_e.observedAttributes=["data-transitions"];function sW(l){return Array.from(l.children).map(t=>t.getBoundingClientRect().height)}function MB(l,t){var d;l instanceof HTMLElement&&(l.style.display!==t.display&&(t.display==="none"?HB(l):EB(l),l.style.display=t.display),l.style.opacity=(d=t.opacity)==null?void 0:d.toString(),l.style.clipPath=t.clipPath,l.style.zIndex=t.index.toString())}function HB(l){l.querySelectorAll("video").forEach(t=>{t.autoplay&&(t.autoplay=!1);try{t.pause()}catch(d){}})}function EB(l){l.querySelectorAll("video").forEach(t=>{if(t.src)try{t.play().catch(()=>{})}catch(d){}else t.autoplay=!0})}function AB(l,t,d){if(l){let e=l.querySelector("[data-mediarenderer-caption-container]")||l,V=d.map(i=>t[i.index].querySelector(".Theme-OverlayedCaption"));d.length===0||V.some(i=>!i)?l.style.opacity="0":(l.style.opacity="1",d.length===2?e.style.opacity="0":(e.style.opacity="1",e.innerHTML=V[0].innerHTML))}}customElements.define("sh-background-transition",_e);function NW(l,t,d){var e,V,i;t===void 0&&(t=50),d===void 0&&(d={});var n=(e=d.isImmediate)!=null&&e,a=(V=d.callback)!=null&&V,b=d.maxWait,c=Date.now(),G=[];function R(){if(b!==void 0){var Z=Date.now()-c;if(Z+t>=b)return b-Z}return t}var W=function(){var Z=[].slice.call(arguments),o=this;return new Promise(function(U,I){var B=n&&i===void 0;if(i!==void 0&&clearTimeout(i),i=setTimeout(function(){if(i=void 0,c=Date.now(),!n){var Y=l.apply(o,Z);a&&a(Y),G.forEach(function(C){return(0,C.resolve)(Y)}),G=[]}},R()),B){var N=l.apply(o,Z);return a&&a(N),U(N)}G.push({resolve:U,reject:I})})};return W.cancel=function(Z){i!==void 0&&clearTimeout(i),G.forEach(function(o){return(0,o.reject)(Z)}),G=[]},W}var{isSafari:QW}=Rt();function Cd(l,t){let d=Array.from(l.querySelectorAll("source")),e;return QW&&(e=d.find(V=>V.type==="video/mp4"&&V.hasAttribute(`data-${t}`))),e||(e=d.find(V=>l.canPlayType(V.type)&&V.hasAttribute(`data-${t}`)&&(!QW||V.type==="video/mp4"))),e?[yB(e.getAttribute(`data-${t}`)),e.type]:[void 0,void 0]}function yB(l){let t=document.createElement("a");return t.href=l,t.href}var xW=tt(_i());function qe(l){let t={"InstantImage--isLoading":!1,"InstantImage--isLoaded":!0};l.className=(0,xW.default)(l.className,t)}function zB(l){let t=()=>{l.style.opacity="1"};["loadeddata","playing","canplaythrough"].forEach(e=>el(l,e,t))}function wB(l){return l.currentTime>0&&!l.paused&&!l.ended&&l.readyState>2}function Bn(l,t={canControl:!0}){let d=q.getHeight()>q.getWidth(),e=wB(l),[V]=Cd(l,d?"portrait":"landscape");V&&l.src!==V&&(l.src=V,l.load(),t.canControl&&e&&$e(l))}function pn(){let{isSafari:l}=Rt();s("[data-background-video]").forEach(V=>{let i=V.querySelector("[data-video]");if(!i)return;l&&i.className.includes("FullSize__fixedChild")&&i.addEventListener("canplay",()=>{i.className=i.className.replace("FullSize__fixedChild","FullSize__fixedChild--Safari")});let n=i.autoplay;if(i.muted=!0,i.defaultMuted=!0,zB(i),i.readyState>=2?qe(V):(i.addEventListener("loadeddata",()=>qe(V)),i.addEventListener("error",()=>qe(V))),n){wt(V,c=>{Bn(i,{canControl:!1}),je(i),vt(c)?$e(i):i.pause()},{triggerPoint:"nearly visible"});let{top:b}=V.getBoundingClientRect();b<q.getHeight()*3&&($e(i),setTimeout(()=>{i.readyState<2&&i.paused&&(i.load(),$e(i))},1e3))}else Bn(i,{canControl:!1})});let d=s("[data-background-video] [data-video]"),e=NW(V=>d.forEach(i=>Bn(i)),100);["resize","orientationchange"].forEach(V=>{window.addEventListener(V,e,{passive:!0})})}function $e(l){try{l.pause()}catch(d){}let t=l.play();typeof t!="undefined"&&t.catch(()=>{l.play().catch(d=>{l.pause()})})}var CW=tt(Vn());var rn=tt(pt());function hn(l,t){rn.default.measure(()=>{let d=window.innerWidth,V=t.reduce((i,n)=>i.clientHeight>n.clientHeight?i:n,t[0]).clientHeight;rn.default.mutate(()=>{l.style.height=d>=900?`${V}px`:null})})}var Yd=tt(pt());var Xd={items:[],lastSizes:new WeakMap},LB=250;function JW(){let l=jB(document.documentElement);l.length!==0&&(Xd.items=l,St(OB))}function OB(){Xd.items.forEach(l=>vB(l))}function jB(l){return s("[data-card-canvas-item]",l).map(DB)}function DB(l){return{el:l,img:s("img",l),caption:l.querySelector(".CardCanvasItem__caption"),heightReferenceEl:l.parentElement.querySelector("[data-card-canvas-height-reference]")}}function vB(l){fB(l).then(()=>PB(l)).catch(()=>{})}function fB(l){return new Promise((t,d)=>{Yd.default.measure(()=>{if(getComputedStyle(l.el).getPropertyValue("display")==="none")return d();let V=window.innerWidth,i=l.heightReferenceEl.clientHeight,n=l.caption?l.caption.clientHeight:0,a=Xd.lastSizes.has(l)?Xd.lastSizes.get(l):{width:0,height:0,captionHeight:0};if(V===a.width&&i===a.height&&n===a.captionHeight)return d();a.width=V,a.height=i,a.captionHeight=n,Xd.lastSizes.set(l,a);let b=i-n;Yd.default.mutate(()=>{l.img.forEach(c=>c.style.maxHeight=V>=900?`${b}px`:null),t()})})})}function PB(l){return new Promise(t=>{if(!l.caption)return t();function d(e,V){Yd.default.mutate(()=>{let i=KB(V,{width:e.naturalWidth,height:e.naturalHeight}),n=Math.max(i.width,LB);l.caption.style.maxWidth=`${n}px`,t()})}Yd.default.measure(()=>{let e=l.el.querySelector("picture img");if(!e)return;let V=e.getBoundingClientRect();e.naturalWidth>0?d(e,V):e.addEventListener("load",()=>d(e,V))})})}function KB(l,t){let d=t.width/l.width,e=t.height/l.height,V=Math.max(d,e);return{width:t.width/V,height:t.height/V}}var Nn={instances:new Map,isRunning:!1},sn=new WeakMap;function _B(l){let t=Nn.instances;return t.has(l)||t.set(l,{scrollContainer:l.parentElement,items:[],isRendering:!1,machines:new WeakMap}),t.get(l)}function qB(l,t,d){let e=1/d.length,V=t*e,i=V+e,n=t===0,a=t===d.length-1;return{itemEl:l,index:t,data:{start:V,end:i,showDuringScrollIn:n,showDuringScrollOut:a}}}function Qn(){JW(),s("[data-card-canvas]").forEach(t=>$B(t,{doLazyload:!0})),["resize","orientationchange"].forEach(t=>window.addEventListener(t,XW,{passive:!0}))}function $B(l,t,d){let e=s("[data-card-canvas-item]",l);if(e.length===0)return;let V=e.map(qB),i=_B(l);return i.items=V.reduce((n,a)=>{let b=i.items.find(c=>c.itemEl===a.itemEl);return b&&(b.data=a.data),[...n,b||a]},[]),i.items.map(n=>t.doLazyload?tp(n,l.parentElement):n).filter(n=>!i.machines.get(n)).forEach(n=>i.machines.set(n,new De({item:n,classNames:{prime:"CardCanvasItem--isPrimed",active:"CardCanvasItem--isActive"},onItemShown(a){d&&d(a,i.items.indexOf(a))},shouldLinger(a){return!i.items.filter(R=>R!==a).map(R=>i.machines.get(R)).some(R=>R.isActive())}}))),t.doLazyload&&XW(),St(uW),()=>Il(uW)}function tp(l,t){if(!sn.get(l.itemEl)){let e=document.createElement("div");e.classList.add("BackgroundScrollmation__lazyloadTriggerElement"),e.setAttribute("data-item-index",String(l.index)),sn.set(l.itemEl,e),t.appendChild(e);let V={pictures:s("picture",l.itemEl),container:l.itemEl.querySelector("[data-lazyload-container]"),trigger:e};Bd(V)}return l}function XW(){(0,CW.default)(Nn.instances.values()).map(l=>l.items).map(l=>l.map(t=>{let d=sn.get(t.itemEl);Object.assign(d.style,{position:"absolute",top:`${t.data.start*100}%`})}))}function lp(l,t){ve(l),hn(t,l.items.map(d=>d.itemEl))}function uW(){Nn.instances.forEach(lp)}function xn(){}var Jn=Symbol("hidden"),un=Symbol("visible");function dp(l,t,d){let e=d.find(([i])=>i===l),V=e?e[1]:!1;return(!V||V!==t)&&l(t),d.filter(([i])=>i!==l).concat([[l,t]])}function ep(l){let{lastCalls:t}=l;tV.forEach(d=>{let V=l.isPageHidden||!l.visibleElements.has(d.element)?Jn:un;t=dp(d.cb,V,t)}),l.lastCalls=t}function Vp(l,t){return l.add(t)}function ip(l,t){return l.delete(t),l}function np(){Yl.addVisibilityChangeListener(()=>{let l={isPageHidden:YW()};SW(l)})}function YW(){return Yl.isHidden()}var tV=[],lV={isPageHidden:YW(),visibleElements:new Set,lastCalls:[]};function TW(l,t,d="nearly visible"){tV.push({cb:t,element:l});let e={triggerPoint:d};return wt(l,i=>{let{visibleElements:n}=lV,a=vt(i)?Vp(n,l):ip(n,l);SW({visibleElements:a})},e),()=>{_l(l,e);let i=tV.findIndex(n=>n.element===l&&n.cb===t);tV.splice(i,1)}}function SW(l){lV=nt(nt({},lV),l),ep(lV)}function Cn(){np()}var Xn=tt(pt());function Yn(){window.addEventListener("resize",()=>kW(),{passive:!0}),kW()}function kW(){Xn.default.measure(()=>{let l=q.getOrientation();Xn.default.mutate(()=>{s("[data-landscape-focal]").forEach(t=>{let d=t.dataset[`${l}Focal`];if(d){let e=t.tagName==="PICTURE"?t.querySelector("img"):t;e==null||e.style.setProperty("object-position",d)}})})})}var Nt={footer:L("#StandardFooter"),topLink:L("[id$='-footerTopLink']"),logo:L("#FooterLogo"),logoLink:L("[id$='-footer_shorthand_link']"),lower:document.createElement("div"),lowerInner:document.createElement("div")};function Tn(){Nt.footer.classList.add("Prime3"),Nt.logo.setAttribute("src",Nt.logo.getAttribute("src").replace("black","white")),Nt.topLink.classList.add("Prime3"),Nt.logoLink.classList.add("Prime3"),Nt.lower.id="prime3FooterLower",Nt.lower.className="prime3FooterLower",Nt.lowerInner.id="prime3FooterLowerInner",Nt.lowerInner.className="prime3FooterLowerInner";let t=["<div>Join the world's leading storytelling teams at Shorthand.</div>","<div><a href="+Nt.logoLink.getAttribute("href")+"><u>TRY IT FOR <strong>FREE</strong></u></a></div>","<div>No code, no credit card, & no commitment required.</div>"];Nt.lowerInner.innerHTML="<div class='Layout prime3-items'>"+t.map(d=>d).join("")+"</div>",Nt.footer.after(Nt.lower),Nt.lower.innerHTML=Nt.lowerInner.outerHTML}var vU=tt(MW()),ZV=tt(pt()),fU=tt(EU()),NC=tt(AU());var aa=tt(pt());function yU(l,t,d){return d!==void 0?lr(l,t,d):l.classList.toggle(t)}function P(l,t){(Array.isArray(l)?l:[l]).forEach(e=>{aa.default.mutate(()=>{e.setAttribute("style","display: "+t)})})}function il(l){(Array.isArray(l)?l:[l]).forEach(d=>{aa.default.mutate(()=>{d.parentNode.removeChild(d)})})}function lr(l,t,d){let e=l.className.split(/\s+/),V=e.includes(t),i=d&&!V?[...e,t]:!d&&V?e.filter(n=>n!==t):e;l.className=i.join(" ")}var zU=tt(pt());function UV(l,t){let d=l.clientHeight;l.style.transition="all 0.5s ease-in-out",zU.default.mutate(()=>{t==="out"?(l.style.bottom=`-${d}px`,l.style.opacity="0",l.style.zIndex="-1"):(l.style.zIndex="9999",l.style.bottom="0px",l.style.opacity="1")})}function Ga(){let l=s("[id$='-footer_shorthand_link']");if(l&&Vr(l),E.footer&&ca){il(E.closeButton),il(E.footerContents),il(E.footerTitles),il(E.interactivePanels),il(E.mobileHeaders),il(E.mobileTitle),il(E.openButton),il(E.openMessage),P(E.upper,"block"),E.openMessageContainer.classList.add("PreviewFooter--center-horizontal"),P(E.upperInner,"flex"),E.footer.style.position="static";return}E.footer&&!ca&&(E.mobileTitle.forEach((t,d)=>{nr(E.mobileTitle[d],E.footerContents[d],E.footerClose[d])}),wU(E.openButton),wU(E.closeButton),Gr(),ar(),Ld(),ir(),window.addEventListener("scroll",PU,{passive:!0}))}var ba=Rt().isMobile,{isIE:dr,isEdge:er}=Rt(),ca=dr||er,Lt=!1,wd=Math.max(document.body.offsetWidth,window.innerWidth),zd=wd<=926||ba,E={closeButton:s(".PreviewFooter--close-button"),footer:L(".PreviewFooter"),footerClose:s(".PreviewFooter--mobile-close"),footerContents:s("[data-PreviewFooter--item]"),footerOuter:L(".PreviewFooter--outer"),footerTitles:s(".PreviewFooter--col-title"),interactivePanels:L(".PreviewFooter--interactive-panels"),mailtoLink:L(".PreviewFooter--mailto"),mobileHeaders:s(".PreviewFooter--mobile-header"),mobileTitle:s(".PreviewFooter--col-title-mobile"),openButton:L(".PreviewFooter--open-button"),openMessage:L(".PreviewFooter--message"),openMessageContainer:L(".PreviewFooter--message-container"),upper:L(".PreviewFooter--upper"),upperInner:L(".PreviewFooter--upper-inner")};function Vr(l){return(Array.isArray(l)?l:[l]).forEach(d=>{d.setAttribute("href",d.getAttribute("href").replace("__host__",window.location.hostname))})}function ir(){let l=ba?"orientationchange":"resize";window.addEventListener(l,()=>{ZV.default.measure(()=>{wd=Math.max(document.body.offsetWidth,window.innerWidth),zd=wd<=926||ba,Lt=!1,Ld()})},{passive:!0})}function PU(){let l=window.scrollY,t=document.body.offsetHeight,d=window.innerHeight,e=l/(t-d),V=Math.round(e*100);if(ca||window.Cypress){UV(E.footer,"in"),removeEventListener("scroll",PU);return}!Lt&&V<80&&UV(E.footer,"out"),!Lt&&V>=80&&UV(E.footer,"in")}function wU(l){let t=()=>{Lt=!Lt,Ld()};(Array.isArray(l)?l:[l]).forEach(e=>{e.addEventListener("click",()=>{t()},{passive:!0})})}var nr=(l,t,d)=>{l.addEventListener("click",()=>{Lt=!0,Ld(t)},{passive:!0}),d.addEventListener("click",()=>{Lt=!1,Ld(t)},{passive:!0})};function LU(){E.footer.style.position="relative",ZV.default.measure(()=>{let l=document.body.offsetHeight;ZV.default.mutate(()=>{window.scrollTo({top:l,behavior:"smooth"})})})}function Ld(l=E.footerContents[0]){switch(!0){case(Lt&&!zd):P(E.openButton,"none"),P(E.mobileTitle,"none"),P(E.mobileHeaders,"none"),wd>926&&wd<1100&&P(E.openMessageContainer,"none"),P(E.footerContents,"block"),P(E.openMessage,"block"),P(E.closeButton,"block"),P(E.footerTitles,"block"),P(E.upperInner,"flex"),P(E.interactivePanels,"flex"),E.openMessageContainer.classList.remove("PreviewFooter--center-horizontal"),E.upper.style.padding="1em 0",LU();break;case(!Lt&&!zd):P(E.mobileTitle,"none"),P(E.mobileHeaders,"none"),P(E.closeButton,"none"),P(E.openMessage,"none"),P(E.footerContents,"none"),P(E.interactivePanels,"none"),P(E.openMessageContainer,"block"),P(E.openButton,"flex"),P(E.upper,"block"),P(E.upperInner,"flex"),E.openMessageContainer.classList.add("PreviewFooter--center-horizontal"),E.footer.style.position="sticky",E.upper.style.padding="0.5em 0";break;case(Lt&&zd):P(E.mobileTitle,"none"),P(E.closeButton,"none"),P(E.footerTitles,"none"),P(E.upperInner,"none"),P(E.footerContents,"none"),P(l,"block"),P(E.mobileHeaders,"flex"),P(E.interactivePanels,"flex"),E.upper.style.padding="1em 0",LU();break;case(!Lt&&zd):P(E.openMessage,"none"),P(E.openButton,"none"),P(E.closeButton,"none"),P(E.footerContents,"none"),P(E.interactivePanels,"none"),P(E.upper,"block"),P(E.upperInner,"flex"),P(E.mobileTitle,"flex"),P(E.mobileHeaders,"flex"),P(E.openMessageContainer,"block"),E.footer.style.position="sticky",E.upper.style.padding="0.5em 0",E.openMessageContainer.classList.add("PreviewFooter--center-horizontal");break}}function ar(){let l=L("#PreviewFooter--form");if(!l)return;let t=L("#PreviewFooter--feedbackButton");l.addEventListener("submit",br);let d=l.querySelectorAll("input, textarea");d.forEach(e=>{e.addEventListener("focus",()=>{t.classList.add("share-btn-active")})}),d.forEach(e=>{e.addEventListener("blur",()=>{t.classList.remove("share-btn-active")})})}var OU={feedback:function(l){if(!(l.length>=4))return"feedback"},name:function(l){if(!l.match(new RegExp("\\b([A-Z\\u{00C0}\\-\\u{00FF}][-,a-z. ']+[ ]*)+","ims")))return"name"},email:function(l){if(!l.match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}])|(([a-zA-Z\-\d]+\.)+[a-zA-Z]{2,}))$/))return"email"}},jU={success:function(l){l.reset();let t=L("#feedback-success");P(l,"none"),P(t,"block"),setTimeout(()=>{P(t,"none"),P(l,"block")},4e3)},error:function(l,t){function d(V){e=L(`${V}`),P(e,"block"),setTimeout(()=>{P(e,"none")},4e3)}if(t.error==="feedback"){d("#feedback-error");return}if(t.error==="name"){d("#name-error");return}if(t.error==="email"){d("#email-error");return}let e=L("#generic-error");P(l,"none"),e.innerText=t,P(e,"block"),setTimeout(()=>{P(e,"none"),P(l,"block")},4e3),console.error(t)}},br=l=>{l.preventDefault();let t=E.footer.getAttribute("data-story"),d=l.target,e=new FormData(d),V={};e.forEach((n,a)=>{V[a]=vU.default.sanitize(n)});let i=Object.keys(OU).reduce((n,a)=>{let b=OU[a](V[a]);return b?Wl(nt({},n),{error:b}):n},{});Object.keys(i).length>0&&jU.error(d,i),Object.keys(i).length===0&&cr(V,t).then(()=>{jU.success(d)})};function cr(l,t){return fetch(`/${t}/feedback`,{method:"POST",body:JSON.stringify(l),headers:{"Content-Type":"application/json"}}).then(d=>{if(!d.ok)throw new Error("Something went wrong, please try again.")})}function DU({mailtoEmail:l,previewURL:t,title:d},e=E.mailtoLink){e.setAttribute("href",`mailto:${l}?subject=${encodeURIComponent("Shorthand story for review - ")}${d}&body=${encodeURIComponent("Hello, here's a link to an unpublished (draft) copy of a Shorthand story for the purposes of review:")}%0D%0A%0D%0A${t}%0D%0A%0D%0A${encodeURIComponent("This link is for review only, and should not be promoted or shared. The story at this address may still be actively edited, extensively changed, or removed.")}`),e.setAttribute("target","_blank")}function Gr(){let l=L(".mailtoForm"),t=new FormData(l),d={mailtoEmail:"",previewURL:document.location,title:""};t.forEach((n,a)=>{d[a]=n}),d.title===""&&(d.title="A Shorthand Story"),DU(d);let e=L("#mailtoEmail"),V=L("#mailtoButton");e.addEventListener("focus",()=>{V.classList.add("share-btn-active")}),e.addEventListener("blur",function(n){d.mailtoEmail=n.target.value,DU(d),V.classList.remove("share-btn-active")});let i=document.querySelector("#qr-code");i&&fU.default.toCanvas(i,d.previewURL.toString(),{margin:0,width:116,color:{dark:"#fff",light:"#353535"}})}function KU(l){return(Array.isArray(l)?l:[l]).forEach(d=>{d.setAttribute("href",d.getAttribute("href").replace("__host__",window.location.hostname))})}function Ra(){let l=L("#StandardFooter");l&&l.dataset.footer==="prime3"&&fetch("/features.json").then(e=>{e.status===200&&e.json().then(V=>{V.prime3&&Tn()})}).catch(e=>{console.log(e)});let t=s("[id$='-footer_shorthand_link']");if(t&&KU(t),s("#PreviewFooter"))return Ga()}var It=null,Od=!1;function Wa(){Rr(),s("[data-footnote]").forEach(l=>Ur(l))}function Rr(){let l=L(".Theme-Story");l&&(!It||!L(".Theme-Footnote",l))&&(It=document.createElement("div"),It.classList.add("Theme-Footnote"),It.setAttribute("role","tooltip"),It.setAttribute("aria-live","polite"),It.setAttribute("aria-atomic","true"),l.appendChild(It))}function _U(){return L("#editor-viewport")||document}function Wr(){let l=L(".Theme-Header");if(!l)return 0;let t=getComputedStyle(l).height,d=parseInt(t,10),e=L(".Navigation__itemList"),V=e&&window.innerWidth>=1100&&e.childNodes.length?36:0,i=L(".navbar-editor");return(i?parseInt(getComputedStyle(i).height,10):0)+d+V}function Ur(l){l.addEventListener("mouseover",()=>FV(l)),l.addEventListener("touchstart",()=>FV(l)),l.addEventListener("focus",()=>{setTimeout(()=>FV(l),100)}),l.addEventListener("keydown",t=>{switch(t.key){case"Enter":Od?Ua():FV(l);break;case"ArrowUp":Od&&(t.preventDefault(),It.firstElementChild.scrollBy(0,-20));break;case"ArrowDown":Od&&(t.preventDefault(),It.firstElementChild.scrollBy(0,20));break}})}function FV(l){let t=l.getBoundingClientRect();It.style.display="block",It.innerHTML=decodeURIComponent(l.getAttribute("data-footnote"));let d=It.getBoundingClientRect(),e=t.top<Wr()+d.height,V=e?t.bottom+5:t.top-d.height-5,i=t.left+t.width/2;i-d.width/2<0?i=d.width/2+2:i+d.width/2>window.innerWidth&&(i=window.innerWidth-d.width/2-2),It.style.top=`${V}px`,It.style.left=`${i}px`,It.classList.remove("Theme-Position-Top"),It.classList.remove("Theme-Position-Bottom"),It.classList.add(e?"Theme-Position-Top":"Theme-Position-Bottom"),document.addEventListener("mouseover",gV),document.addEventListener("touchstart",gV),_U().addEventListener("scroll",qU),Od=!0}function Ua(){Od=!1,It.style.display="",document.removeEventListener("mouseover",gV),document.removeEventListener("touchstart",gV),_U().removeEventListener("scroll",qU)}function qU(){Ua()}function gV(l){let t=l.target;!t.closest(".Theme-Layer-BodyText-Highlight")&&!t.closest(".Theme-Footnote")&&Ua()}var Za=tt(pt());var $U="HideOffscreen__media--onscreen";function Zr(l){Za.default.mutate(()=>{l.forEach(t=>t.classList.remove($U))})}function Fr(l){Za.default.mutate(()=>{l.forEach(t=>{t.classList.add($U),cn([t])})})}function Fa(){s(".HideOffscreen--container").map(l=>({container:l,children:s(".HideOffscreen__media",l)})).filter(l=>l.children&&l.children.length>0).forEach(l=>{TW(l.container,t=>{switch(t){case un:Fr(l.children);break;case Jn:Zr(l.children);break}},"on visibile")})}function ga(){}function gr(){let l=document.createElement("div");return l.style.display="flex",l.style.display==="flex"}function Ia(){gr()||document.documentElement.classList.add("Layout--flexboxUnsupported")}function ma(){Ia()}var lZ=tt(pt());var Ot=class l{constructor(t){this.element=t,this.counter=t.querySelector("[aria-live]"),this.element.parentElement.removeChild(this.element),document.body.appendChild(this.element),this.currentMediaIndex=0,this.media=s("[data-media-gallery-index]",this.element),this.element.addEventListener("click",()=>{this.close()}),s("img, .Videoplayer, .Theme-Caption",this.element).forEach(n=>{n.addEventListener("click",a=>a.stopPropagation())});let d=L('[data-action="previous"]',this.element);d&&d.addEventListener("click",n=>{n.stopPropagation(),this.prev()});let e=L('[data-action="next"]',this.element);e&&e.addEventListener("click",n=>{n.stopPropagation(),this.next()}),L('[data-action="close"]',this.element).addEventListener("click",n=>{n.stopPropagation(),this.close()}),this.element.addEventListener("touchmove",n=>n.preventDefault());let i=-1;s("img, .Videoplayer",this.element).forEach(n=>{n.addEventListener("touchstart",a=>{i=a.touches[0].clientX}),n.addEventListener("touchend",a=>{let b=a.changedTouches[0].clientX-i,c=window.innerWidth*.1;b<-c?this.next():b>c&&this.prev(),i=-1})})}getFocusable(){let t=s("*[data-action]",this.element),d=L(`[data-media-gallery-index="${this.currentMediaIndex}"].active [tabindex]`,this.element);return t.concat(d).filter(e=>e)}open(t,d){var e;(e=l.current)==null||e.close(!1),s("video",this.element).forEach(V=>V.setAttribute("playsinline","true")),s([".DeviceDetect--isEdge .MediaGallery--lightbox .plyr__progress--seek",".DeviceDetect--isIE .MediaGallery--lightbox .plyr__progress--seek"].join(",")).forEach(V=>{V.style.setProperty("width","0"),setTimeout(()=>V.style.removeProperty("width"),100)}),this.goToIndex(t),this.element.classList.add("MediaGallery--lightbox--open"),l.current=this,document.body.classList.add("Body--hasLightbox"),this.getFocusable()[1].focus(),this.onClose=d}close(t=!0){this.element.classList.remove("MediaGallery--lightbox--open"),document.body.classList.remove("Body--hasLightbox"),s("video",this.element).forEach(d=>d.pause()),t&&typeof this.onClose=="function"&&this.onClose(),l.current=null}prev(){let t=this.currentMediaIndex===0?this.media.length-1:this.currentMediaIndex-1;this.goToIndex(t)}next(){let t=this.currentMediaIndex===this.media.length-1?0:this.currentMediaIndex+1;this.goToIndex(t)}goToIndex(t){this.media[this.currentMediaIndex].classList.remove("active"),s("video",this.element).forEach(e=>e.pause()),this.currentMediaIndex=t,L(`[data-media-gallery-index="${this.currentMediaIndex}"]`,this.element).classList.add("active"),this.counter.innerText=`Item ${t+1} of ${this.media.length}`}};function oa(){let l={};s("[data-media-gallery-lightbox]").forEach(d=>{let e=d.getAttribute("data-media-gallery-lightbox");l[e]=new Ot(d)}),s("[data-media-gallery]").forEach(d=>{let e=d.getAttribute("data-media-gallery");s("[data-cell-index]",d).forEach(V=>{V.addEventListener("click",()=>t(e,V)),V.addEventListener("keydown",i=>{Ot.current||i.code==="Enter"&&(i.preventDefault(),i.stopPropagation(),t(e,V))})})}),window.removeEventListener("keydown",tZ),window.addEventListener("keydown",tZ);function t(d,e){let V=parseInt(e.getAttribute("data-cell-index"),10);Ir(),l[d].open(V,()=>{mr(),e.focus()})}}function tZ(l){if(Ot.current&&q.getHeight()!==screen.height)switch(l.code){case"Tab":let t=Ot.current.getFocusable(),d=t[0],e=t[t.length-1];!t.includes(document.activeElement)||!l.shiftKey&&document.activeElement===e?(l.preventDefault(),l.stopPropagation(),d.focus()):l.shiftKey&&document.activeElement===d&&(l.preventDefault(),l.stopPropagation(),e.focus());break;case"Enter":document.activeElement.className.includes("plyr")&&(l.preventDefault(),l.stopPropagation(),document.activeElement.querySelector('[data-plyr="fullscreen"]').click());break;case"ArrowRight":l.preventDefault(),l.stopPropagation(),document.activeElement.className.includes("plyr")||Ot.current.next();break;case"ArrowLeft":l.preventDefault(),l.stopPropagation(),document.activeElement.className.includes("plyr")||Ot.current.prev();break;case"Escape":l.preventDefault(),l.stopPropagation(),Ot.current.close();break}}function Ir(){s("[data-media-gallery] video").forEach(l=>l.pause())}function mr(){s("[data-media-gallery] video").forEach(l=>{lZ.default.measure(()=>{let t=l.getBoundingClientRect();t.top<q.getHeight()&&t.bottom>0&&l.play()})})}function Ba(){let{isIE:l,isEdge:t}=Rt();(l||t)&&(window.addEventListener("mousewheel",d=>{let{wheelDelta:e,wheelDeltaY:V}=d;d.preventDefault(),jd(1-(V||e))}),document.body.addEventListener("keydown",d=>{switch(d.keyCode){case 33:d.preventDefault(),jd(window.innerHeight*-.8);break;case 34:d.preventDefault(),jd(window.innerHeight*.8);break;case 38:d.preventDefault(),jd(-120);break;case 40:d.preventDefault(),jd(120);break;default:return}}))}function jd(l,t=100){let d=10,e=l/d,V=setInterval(()=>{window.scrollTo(0,Math.round(window.pageYOffset+e)),d>0?d--:clearInterval(V)},t/d)}var nZ=tt(eZ());var pa=tt(pt());var iZ="Theme-ActiveNavigationBarItem";function or(l){return l.reduce((t,d)=>{let e=d.getAttribute("href");if(e.indexOf("#")!==0)return t;let V=e.replace(/^#/,"");try{let i=document.getElementById(V);i||console.warn(`navigation: Couldn't locate target via nav item id '${V}'.`),t.push({target:i,navItem:d})}catch(i){console.warn(`navigation: Bad target via nav item selector ${V}.`)}return t},[])}function Br(l){l.forEach(pr)}function pr(l){l.parentElement.classList.remove(iZ)}function rr(l){l.parentElement.classList.add(iZ)}function hr(l){let t=q.getHeight()/2;return l.find(d=>{let e=d.target.getBoundingClientRect(),V=d.target.className.match(/\bTheme-TitleSection\b/)!==null;return e.top<t&&(V||e.bottom>t)})}var VZ={lastMostVisible:!1};function sr(l){pa.default.measure(()=>{let t=hr(l.slice().reverse());VZ.lastMostVisible!==t&&pa.default.mutate(()=>{Br(l.map(d=>d.navItem)),t&&rr(t.navItem),VZ.lastMostVisible=t})})}function ra(l){let t=or(l);if(t.length===0)return;let d=()=>sr(t);["scroll","resize"].forEach(e=>window.addEventListener(e,d)),setTimeout(d,1e3),d()}function ha(){let l=s(".Navigation"),t=s(".Navigation__hamburger");if(!l.length||!t.length)return;let d=l[0],e=t[0],V=s(".Navigation__item",d);Nr(e,d),xr(V,d,e),Qr(e)}function Nr(l,t){l.addEventListener("click",d=>{d.preventDefault(),t.classList.toggle("Navigation--isActive");let V=t.classList.contains("Navigation--isActive")?"true":"false";l.setAttribute("aria-expanded",V)})}function Qr(l){l.classList.remove("Navigation__hamburger--initializing")}function xr(l,t,d){let e=()=>{t.classList.remove("Navigation--isActive"),d.setAttribute("aria-expanded","false")};l.forEach(V=>V.addEventListener("click",e))}var Jr="[data-story-nav-item]",ur=-2;function Cr(){return s("[data-fixed-story-element]").reduce((t,d)=>t+d.getBoundingClientRect().height,ur)}function sa(l=Jr){let t=s(l);ra(t),ha();let d=Cr();nZ.setup(500,d)}var Ja=tt(pt());var Xr={clientWidth:["padding-left","padding-right","border-left-width","border-right-width"],clientHeight:["padding-top","padding-bottom","border-top-width","border-bottom-width"]};function aZ(l){return cZ(l,"clientWidth")}function bZ(l){return cZ(l,"clientHeight")}function Yr(l,t){switch(t){case"clientWidth":return l.clientWidth;case"clientHeight":return l.clientHeight}}function cZ(l,t){let d=Xr[t];try{let e=window.getComputedStyle(l),V=d.reduce((i,n)=>{let a=e.getPropertyValue(n);return i+Tr(a)},0);return Yr(l,t)-V}catch(e){throw new Error(`Couldn't get styles for element ${l} in getInnerDimension`)}}function Tr(l){return parseInt(l,10)}var fr=zZ(),wZ={elements:[]},Pr=fr();function Ca(l){let{elements:t}=wZ;if(t.findIndex(e=>e.element===l)>-1)return;let d={element:l,onResize(){ua(l)}};t.push(d),ua(l,!0),Pr.listenTo(d.element.parentElement,d.onResize),mV()}function Kr(){let{elements:l}=wZ;l.forEach(t=>ua(t.element))}function ua(l,t=!1){Ja.default.measure(()=>{let d=l.parentNode,e=d?aZ(d):-1,V=l.clientWidth;(e!==V||t)&&Ja.default.mutate(()=>{l.style.width=`${e}px`})})}function mV(){let l=document.getElementsByClassName("ParentWidth");Array.prototype.forEach.call(l,Ca),Kr()}function nl(l){return Array.isArray?Array.isArray(l):KZ(l)==="[object Array]"}var _r=1/0;function qr(l){if(typeof l=="string")return l;let t=l+"";return t=="0"&&1/l==-_r?"-0":t}function $r(l){return l==null?"":qr(l)}function ft(l){return typeof l=="string"}function fZ(l){return typeof l=="number"}function th(l){return l===!0||l===!1||lh(l)&&KZ(l)=="[object Boolean]"}function PZ(l){return typeof l=="object"}function lh(l){return PZ(l)&&l!==null}function Xt(l){return l!=null}function Xa(l){return!l.trim().length}function KZ(l){return l==null?l===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(l)}var dh="Incorrect 'index' type",eh=l=>`Invalid value for key ${l}`,Vh=l=>`Pattern length exceeds max of ${l}.`,ih=l=>`Missing ${l} property in key`,nh=l=>`Property 'weight' in key '${l}' must be a positive integer`,LZ=Object.prototype.hasOwnProperty,Ya=class{constructor(t){this._keys=[],this._keyMap={};let d=0;t.forEach(e=>{let V=_Z(e);this._keys.push(V),this._keyMap[V.id]=V,d+=V.weight}),this._keys.forEach(e=>{e.weight/=d})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function _Z(l){let t=null,d=null,e=null,V=1,i=null;if(ft(l)||nl(l))e=l,t=OZ(l),d=Ta(l);else{if(!LZ.call(l,"name"))throw new Error(ih("name"));let n=l.name;if(e=n,LZ.call(l,"weight")&&(V=l.weight,V<=0))throw new Error(nh(n));t=OZ(n),d=Ta(n),i=l.getFn}return{path:t,id:d,weight:V,src:e,getFn:i}}function OZ(l){return nl(l)?l:l.split(".")}function Ta(l){return nl(l)?l.join("."):l}function ah(l,t){let d=[],e=!1,V=(i,n,a)=>{if(Xt(i))if(!n[a])d.push(i);else{let b=n[a],c=i[b];if(!Xt(c))return;if(a===n.length-1&&(ft(c)||fZ(c)||th(c)))d.push($r(c));else if(nl(c)){e=!0;for(let G=0,R=c.length;G<R;G+=1)V(c[G],n,a+1)}else n.length&&V(c,n,a+1)}};return V(l,ft(t)?t.split("."):t,0),e?d:d[0]}var bh={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},ch={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(l,t)=>l.score===t.score?l.idx<t.idx?-1:1:l.score<t.score?-1:1},Gh={location:0,threshold:.6,distance:100},Rh={useExtendedSearch:!1,getFn:ah,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},K=nt(nt(nt(nt({},ch),bh),Gh),Rh),Wh=/[^ ]+/g;function Uh(l=1,t=3){let d=new Map,e=Math.pow(10,t);return{get(V){let i=V.match(Wh).length;if(d.has(i))return d.get(i);let n=1/Math.pow(i,.5*l),a=parseFloat(Math.round(n*e)/e);return d.set(i,a),a},clear(){d.clear()}}}var fd=class{constructor({getFn:t=K.getFn,fieldNormWeight:d=K.fieldNormWeight}={}){this.norm=Uh(d,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((d,e)=>{this._keysMap[d.id]=e})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,ft(this.docs[0])?this.docs.forEach((t,d)=>{this._addString(t,d)}):this.docs.forEach((t,d)=>{this._addObject(t,d)}),this.norm.clear())}add(t){let d=this.size();ft(t)?this._addString(t,d):this._addObject(t,d)}removeAt(t){this.records.splice(t,1);for(let d=t,e=this.size();d<e;d+=1)this.records[d].i-=1}getValueForItemAtKeyId(t,d){return t[this._keysMap[d]]}size(){return this.records.length}_addString(t,d){if(!Xt(t)||Xa(t))return;let e={v:t,i:d,n:this.norm.get(t)};this.records.push(e)}_addObject(t,d){let e={i:d,$:{}};this.keys.forEach((V,i)=>{let n=V.getFn?V.getFn(t):this.getFn(t,V.path);if(Xt(n)){if(nl(n)){let a=[],b=[{nestedArrIndex:-1,value:n}];for(;b.length;){let{nestedArrIndex:c,value:G}=b.pop();if(Xt(G))if(ft(G)&&!Xa(G)){let R={v:G,i:c,n:this.norm.get(G)};a.push(R)}else nl(G)&&G.forEach((R,W)=>{b.push({nestedArrIndex:W,value:R})})}e.$[i]=a}else if(ft(n)&&!Xa(n)){let a={v:n,n:this.norm.get(n)};e.$[i]=a}}}),this.records.push(e)}toJSON(){return{keys:this.keys,records:this.records}}};function qZ(l,t,{getFn:d=K.getFn,fieldNormWeight:e=K.fieldNormWeight}={}){let V=new fd({getFn:d,fieldNormWeight:e});return V.setKeys(l.map(_Z)),V.setSources(t),V.create(),V}function Zh(l,{getFn:t=K.getFn,fieldNormWeight:d=K.fieldNormWeight}={}){let{keys:e,records:V}=l,i=new fd({getFn:t,fieldNormWeight:d});return i.setKeys(e),i.setIndexRecords(V),i}function oV(l,{errors:t=0,currentLocation:d=0,expectedLocation:e=0,distance:V=K.distance,ignoreLocation:i=K.ignoreLocation}={}){let n=t/l.length;if(i)return n;let a=Math.abs(e-d);return V?n+a/V:a?1:n}function Fh(l=[],t=K.minMatchCharLength){let d=[],e=-1,V=-1,i=0;for(let n=l.length;i<n;i+=1){let a=l[i];a&&e===-1?e=i:!a&&e!==-1&&(V=i-1,V-e+1>=t&&d.push([e,V]),e=-1)}return l[i-1]&&i-e>=t&&d.push([e,i-1]),d}var Hl=32;function gh(l,t,d,{location:e=K.location,distance:V=K.distance,threshold:i=K.threshold,findAllMatches:n=K.findAllMatches,minMatchCharLength:a=K.minMatchCharLength,includeMatches:b=K.includeMatches,ignoreLocation:c=K.ignoreLocation}={}){if(t.length>Hl)throw new Error(Vh(Hl));let G=t.length,R=l.length,W=Math.max(0,Math.min(e,R)),Z=i,o=W,U=a>1||b,I=U?Array(R):[],B;for(;(B=l.indexOf(t,o))>-1;){let g=oV(t,{currentLocation:B,expectedLocation:W,distance:V,ignoreLocation:c});if(Z=Math.min(g,Z),o=B+G,U){let F=0;for(;F<G;)I[B+F]=1,F+=1}}o=-1;let N=[],Y=1,C=G+R,h=1<<G-1;for(let g=0;g<G;g+=1){let F=0,u=C;for(;F<u;)oV(t,{errors:g,currentLocation:W+u,expectedLocation:W,distance:V,ignoreLocation:c})<=Z?F=u:C=u,u=Math.floor((C-F)/2+F);C=u;let T=Math.max(1,W-u+1),k=n?R:Math.min(W+u,R)+G,Q=Array(k+2);Q[k+1]=(1<<g)-1;for(let j=k;j>=T;j-=1){let f=j-1,x=d[l.charAt(f)];if(U&&(I[f]=+!!x),Q[j]=(Q[j+1]<<1|1)&x,g&&(Q[j]|=(N[j+1]|N[j])<<1|1|N[j+1]),Q[j]&h&&(Y=oV(t,{errors:g,currentLocation:f,expectedLocation:W,distance:V,ignoreLocation:c}),Y<=Z)){if(Z=Y,o=f,o<=W)break;T=Math.max(1,2*W-o)}}if(oV(t,{errors:g+1,currentLocation:W,expectedLocation:W,distance:V,ignoreLocation:c})>Z)break;N=Q}let m={isMatch:o>=0,score:Math.max(.001,Y)};if(U){let g=Fh(I,a);g.length?b&&(m.indices=g):m.isMatch=!1}return m}function Ih(l){let t={};for(let d=0,e=l.length;d<e;d+=1){let V=l.charAt(d);t[V]=(t[V]||0)|1<<e-d-1}return t}var BV=class{constructor(t,{location:d=K.location,threshold:e=K.threshold,distance:V=K.distance,includeMatches:i=K.includeMatches,findAllMatches:n=K.findAllMatches,minMatchCharLength:a=K.minMatchCharLength,isCaseSensitive:b=K.isCaseSensitive,ignoreLocation:c=K.ignoreLocation}={}){if(this.options={location:d,threshold:e,distance:V,includeMatches:i,findAllMatches:n,minMatchCharLength:a,isCaseSensitive:b,ignoreLocation:c},this.pattern=b?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;let G=(W,Z)=>{this.chunks.push({pattern:W,alphabet:Ih(W),startIndex:Z})},R=this.pattern.length;if(R>Hl){let W=0,Z=R%Hl,o=R-Z;for(;W<o;)G(this.pattern.substr(W,Hl),W),W+=Hl;if(Z){let U=R-Hl;G(this.pattern.substr(U),U)}}else G(this.pattern,0)}searchIn(t){let{isCaseSensitive:d,includeMatches:e}=this.options;if(d||(t=t.toLowerCase()),this.pattern===t){let o={isMatch:!0,score:0};return e&&(o.indices=[[0,t.length-1]]),o}let{location:V,distance:i,threshold:n,findAllMatches:a,minMatchCharLength:b,ignoreLocation:c}=this.options,G=[],R=0,W=!1;this.chunks.forEach(({pattern:o,alphabet:U,startIndex:I})=>{let{isMatch:B,score:N,indices:Y}=gh(t,o,U,{location:V+I,distance:i,threshold:n,findAllMatches:a,minMatchCharLength:b,includeMatches:e,ignoreLocation:c});B&&(W=!0),R+=N,B&&Y&&(G=[...G,...Y])});let Z={isMatch:W,score:W?R/this.chunks.length:1};return W&&e&&(Z.indices=G),Z}},Pt=class{constructor(t){this.pattern=t}static isMultiMatch(t){return jZ(t,this.multiRegex)}static isSingleMatch(t){return jZ(t,this.singleRegex)}search(){}};function jZ(l,t){let d=l.match(t);return d?d[1]:null}var Sa=class extends Pt{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){let d=t===this.pattern;return{isMatch:d,score:d?0:1,indices:[0,this.pattern.length-1]}}},ka=class extends Pt{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){let e=t.indexOf(this.pattern)===-1;return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},Ma=class extends Pt{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){let d=t.startsWith(this.pattern);return{isMatch:d,score:d?0:1,indices:[0,this.pattern.length-1]}}},Ha=class extends Pt{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){let d=!t.startsWith(this.pattern);return{isMatch:d,score:d?0:1,indices:[0,t.length-1]}}},Ea=class extends Pt{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){let d=t.endsWith(this.pattern);return{isMatch:d,score:d?0:1,indices:[t.length-this.pattern.length,t.length-1]}}},Aa=class extends Pt{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){let d=!t.endsWith(this.pattern);return{isMatch:d,score:d?0:1,indices:[0,t.length-1]}}},pV=class extends Pt{constructor(t,{location:d=K.location,threshold:e=K.threshold,distance:V=K.distance,includeMatches:i=K.includeMatches,findAllMatches:n=K.findAllMatches,minMatchCharLength:a=K.minMatchCharLength,isCaseSensitive:b=K.isCaseSensitive,ignoreLocation:c=K.ignoreLocation}={}){super(t),this._bitapSearch=new BV(t,{location:d,threshold:e,distance:V,includeMatches:i,findAllMatches:n,minMatchCharLength:a,isCaseSensitive:b,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}},rV=class extends Pt{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let d=0,e,V=[],i=this.pattern.length;for(;(e=t.indexOf(this.pattern,d))>-1;)d=e+i,V.push([e,d-1]);let n=!!V.length;return{isMatch:n,score:n?0:1,indices:V}}},ya=[Sa,rV,Ma,Ha,Aa,Ea,ka,pV],DZ=ya.length,mh=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,oh="|";function Bh(l,t={}){return l.split(oh).map(d=>{let e=d.trim().split(mh).filter(i=>i&&!!i.trim()),V=[];for(let i=0,n=e.length;i<n;i+=1){let a=e[i],b=!1,c=-1;for(;!b&&++c<DZ;){let G=ya[c],R=G.isMultiMatch(a);R&&(V.push(new G(R,t)),b=!0)}if(!b)for(c=-1;++c<DZ;){let G=ya[c],R=G.isSingleMatch(a);if(R){V.push(new G(R,t));break}}}return V})}var ph=new Set([pV.type,rV.type]),za=class{constructor(t,{isCaseSensitive:d=K.isCaseSensitive,includeMatches:e=K.includeMatches,minMatchCharLength:V=K.minMatchCharLength,ignoreLocation:i=K.ignoreLocation,findAllMatches:n=K.findAllMatches,location:a=K.location,threshold:b=K.threshold,distance:c=K.distance}={}){this.query=null,this.options={isCaseSensitive:d,includeMatches:e,minMatchCharLength:V,findAllMatches:n,ignoreLocation:i,location:a,threshold:b,distance:c},this.pattern=d?t:t.toLowerCase(),this.query=Bh(this.pattern,this.options)}static condition(t,d){return d.useExtendedSearch}searchIn(t){let d=this.query;if(!d)return{isMatch:!1,score:1};let{includeMatches:e,isCaseSensitive:V}=this.options;t=V?t:t.toLowerCase();let i=0,n=[],a=0;for(let b=0,c=d.length;b<c;b+=1){let G=d[b];n.length=0,i=0;for(let R=0,W=G.length;R<W;R+=1){let Z=G[R],{isMatch:o,indices:U,score:I}=Z.search(t);if(o){if(i+=1,a+=I,e){let B=Z.constructor.type;ph.has(B)?n=[...n,...U]:n.push(U)}}else{a=0,i=0,n.length=0;break}}if(i){let R={isMatch:!0,score:a/i};return e&&(R.indices=n),R}}return{isMatch:!1,score:1}}},wa=[];function rh(...l){wa.push(...l)}function La(l,t){for(let d=0,e=wa.length;d<e;d+=1){let V=wa[d];if(V.condition(l,t))return new V(l,t)}return new BV(l,t)}var hV={AND:"$and",OR:"$or"},Oa={PATH:"$path",PATTERN:"$val"},ja=l=>!!(l[hV.AND]||l[hV.OR]),hh=l=>!!l[Oa.PATH],sh=l=>!nl(l)&&PZ(l)&&!ja(l),vZ=l=>({[hV.AND]:Object.keys(l).map(t=>({[t]:l[t]}))});function $Z(l,t,{auto:d=!0}={}){let e=V=>{let i=Object.keys(V),n=hh(V);if(!n&&i.length>1&&!ja(V))return e(vZ(V));if(sh(V)){let b=n?V[Oa.PATH]:i[0],c=n?V[Oa.PATTERN]:V[b];if(!ft(c))throw new Error(eh(b));let G={keyId:Ta(b),pattern:c};return d&&(G.searcher=La(c,t)),G}let a={children:[],operator:i[0]};return i.forEach(b=>{let c=V[b];nl(c)&&c.forEach(G=>{a.children.push(e(G))})}),a};return ja(l)||(l=vZ(l)),e(l)}function Nh(l,{ignoreFieldNorm:t=K.ignoreFieldNorm}){l.forEach(d=>{let e=1;d.matches.forEach(({key:V,norm:i,score:n})=>{let a=V?V.weight:null;e*=Math.pow(n===0&&a?Number.EPSILON:n,(a||1)*(t?1:i))}),d.score=e})}function Qh(l,t){let d=l.matches;t.matches=[],Xt(d)&&d.forEach(e=>{if(!Xt(e.indices)||!e.indices.length)return;let{indices:V,value:i}=e,n={indices:V,value:i};e.key&&(n.key=e.key.src),e.idx>-1&&(n.refIndex=e.idx),t.matches.push(n)})}function xh(l,t){t.score=l.score}function Jh(l,t,{includeMatches:d=K.includeMatches,includeScore:e=K.includeScore}={}){let V=[];return d&&V.push(Qh),e&&V.push(xh),l.map(i=>{let{idx:n}=i,a={item:t[n],refIndex:n};return V.length&&V.forEach(b=>{b(i,a)}),a})}var Kt=class{constructor(t,d={},e){this.options=nt(nt({},K),d),this.options.useExtendedSearch,this._keyStore=new Ya(this.options.keys),this.setCollection(t,e)}setCollection(t,d){if(this._docs=t,d&&!(d instanceof fd))throw new Error(dh);this._myIndex=d||qZ(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){Xt(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){let d=[];for(let e=0,V=this._docs.length;e<V;e+=1){let i=this._docs[e];t(i,e)&&(this.removeAt(e),e-=1,V-=1,d.push(i))}return d}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:d=-1}={}){let{includeMatches:e,includeScore:V,shouldSort:i,sortFn:n,ignoreFieldNorm:a}=this.options,b=ft(t)?ft(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return Nh(b,{ignoreFieldNorm:a}),i&&b.sort(n),fZ(d)&&d>-1&&(b=b.slice(0,d)),Jh(b,this._docs,{includeMatches:e,includeScore:V})}_searchStringList(t){let d=La(t,this.options),{records:e}=this._myIndex,V=[];return e.forEach(({v:i,i:n,n:a})=>{if(!Xt(i))return;let{isMatch:b,score:c,indices:G}=d.searchIn(i);b&&V.push({item:i,idx:n,matches:[{score:c,value:i,norm:a,indices:G}]})}),V}_searchLogical(t){let d=$Z(t,this.options),e=(a,b,c)=>{if(!a.children){let{keyId:R,searcher:W}=a,Z=this._findMatches({key:this._keyStore.get(R),value:this._myIndex.getValueForItemAtKeyId(b,R),searcher:W});return Z&&Z.length?[{idx:c,item:b,matches:Z}]:[]}let G=[];for(let R=0,W=a.children.length;R<W;R+=1){let Z=a.children[R],o=e(Z,b,c);if(o.length)G.push(...o);else if(a.operator===hV.AND)return[]}return G},V=this._myIndex.records,i={},n=[];return V.forEach(({$:a,i:b})=>{if(Xt(a)){let c=e(d,a,b);c.length&&(i[b]||(i[b]={idx:b,item:a,matches:[]},n.push(i[b])),c.forEach(({matches:G})=>{i[b].matches.push(...G)}))}}),n}_searchObjectList(t){let d=La(t,this.options),{keys:e,records:V}=this._myIndex,i=[];return V.forEach(({$:n,i:a})=>{if(!Xt(n))return;let b=[];e.forEach((c,G)=>{b.push(...this._findMatches({key:c,value:n[G],searcher:d}))}),b.length&&i.push({idx:a,item:n,matches:b})}),i}_findMatches({key:t,value:d,searcher:e}){if(!Xt(d))return[];let V=[];if(nl(d))d.forEach(({v:i,i:n,n:a})=>{if(!Xt(i))return;let{isMatch:b,score:c,indices:G}=e.searchIn(i);b&&V.push({score:c,key:t,value:i,idx:n,norm:a,indices:G})});else{let{v:i,n}=d,{isMatch:a,score:b,indices:c}=e.searchIn(i);a&&V.push({score:b,key:t,value:i,norm:n,indices:c})}return V}};Kt.version="7.0.0";Kt.createIndex=qZ;Kt.parseIndex=Zh;Kt.config=K;Kt.parseQuery=$Z;rh(za);var tF={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 uh(l,t){let d=Math.round(q.getWidth()/2-t.popupWidth/2),e=0;q.getHeight()>t.popupHeight&&(e=Math.round(q.getHeight()/3-t.popupHeight/2));let V={left:d,top:e,width:t.popupWidth,height:t.popupHeight,personalbar:0,toolbar:0,scrollbars:1,resizable:1},i=Object.keys(V).map(b=>`${b}=${V[b]}`).join(","),n="social-widget-"+t.networkName.replace(/\s+/,"-"),a=window.open(l,n,i);a?a.focus():location.href=l}function Ch(l){l.preventDefault();let t=l.currentTarget,d=t.getAttribute("data-social-share"),e=tF[d],V=t.href;uh(V,e)}function Xh(l){let t=l.getAttribute("data-social-share");t in tF?l.addEventListener("click",Ch,{passive:!1}):console.error(`Social Share button of type ${t} is not supported.`)}function Pd(l="[data-social-share]"){s(l).forEach(Xh)}var Kd=class{constructor({baseUrl:t,componentsBaseUrl:d,publishUrl:e},V){this.baseUrl=t,this.publishUrl=e!=null?e:"",this.componentsBaseUrl=d,this.index=V,this.isEmbed="embed"in window.Shorthand}isEmbedLink(t){return this.isEmbed&&t.startsWith(this.publishUrl)}getHeaderNavigation(){return this.compileNavigation(this.index.headerNavigation)}getFooterNavigation(){return this.compileNavigation(this.index.footerNavigation)}compileNavigation(t){var e,V,i;let d=t.hasManualItems?t.items:this.index.roots.map(n=>({label:this.index.nodes[n].label,nodeId:n,url:""}));return{isEnabled:t.isEnabled,option:t.option,hasSocials:t.hasSocials,social:t.social,hasSearch:t.hasSearch,showThemeLogos:t.showThemeLogos,logos:((e=t.logos)!=null?e:[]).map(n=>this.compileLogo(n)),color:(V=t.color)!=null?V:void 0,fontColor:(i=t.fontColor)!=null?i:void 0,items:d.reduce((n,a)=>{let b=this.compileNavigationItem(a);return b&&n.push(b),n},[])}}compileLogo(t){let d={media:{}};for(let e of t.media)e.uri&&(d.media[e.sel]={src:this.getProjectUrl(e.uri),alt:e.alt});return t.link&&(d.link=Wl(nt({},t.link),{href:this.getProjectUrl(t.link.href)})),d}compileNavigationItem({label:t,nodeId:d,url:e}){var n,a,b;if(e)return{label:t,url:e,children:[]};let V=this.index.nodes[d];if(!V)return;let i=(a=(n=V.children)==null?void 0:n.reduce((c,G)=>{let R=this.index.nodes[G];return R!=null&&R.page&&c.push({label:R.label||this.index.pages[R.page].title||"Untitled story",url:this.getPageUrl(R.page)}),c},[]))!=null?a:[];return V.page&&(e=this.getPageUrl(V.page)),{label:t||V.label||((b=this.index.pages[V.page])==null?void 0:b.title)||"Untitled story",url:e,children:i}}externalLinkToProjectPage(t){return{pageId:t.id,url:t.url,title:t.title,description:t.description,publishedAt:new Date,tags:[],cover:this.compileCover(t.cover)}}getProjectPage(t,d){var V;let e=this.index.pages[t];if(e)return{pageId:t,url:this.getPageUrl(t),title:d!=null&&d.title?d.title:e.title,description:d!=null&&d.description?d.description:e.description,publishedAt:new Date(e.at),tags:(V=e.tags)!=null?V:[],cover:d!=null&&d.cover?this.compileCover(d.cover):this.compileCover(e.cover,t)}}compileCover(t,d){if(t){let{image:e,sources:V=[]}=t!=null?t:{};return{url:d?this.getPageAssetUrl(d,e):e,sources:V.map(({t:i,s:n})=>({type:i,srcSet:n.map(({u:a,w:b})=>{let c=d?this.getPageAssetUrl(d,a):a;return b?`${c} ${b}w`:c}).join(",")}))}}}getProjectPageIds(){return Object.keys(this.index.pages)}getTaggedPageIds(t,d){let e=new Set(t);return Object.keys(this.index.pages).filter(V=>{var n,a;let i=(a=(n=this.index.pages[V])==null?void 0:n.tags)!=null?a:[];return d==="all"?i.filter(b=>e.has(b)).length>=e.size:i.find(b=>e.has(b))})}getSubpageIds(t,d,e,V){d||(d=this.index.pages[e].nodeId),t==="siblings"&&(d=Object.entries(this.index.nodes).reduce((b,[c,G])=>G.children.includes(d)?c:b,d));let i=Object.keys(this.index.nodes).find(b=>this.index.nodes[b].page===e),n=this.index.nodes[d];return this._getChildren(n,t,V?null:i).reduce((b,c)=>{let G=this.index.nodes[c];return G.page?b.concat(G.page):b},[])}_getChildren(t,d,e){if(!t)return[];let V=t.children.filter(i=>i!==e);return d==="descendants"?V.reduce((i,n)=>i.concat(n).concat(this._getChildren(this.index.nodes[n],d,e)),[]):V}getPageAssetUrl(t,d){var i;if(!d)return;let e=this.index.pages[t],V=this.index.nodes[e==null?void 0:e.nodeId];if(!(!e||!V))return/^(https?:\/\/|\/)/.exec(d)?d:this.isEmbed?`${this.publishUrl}${V.uri}${d}`:`${(i=this.componentsBaseUrl)!=null?i:this.baseUrl}${V.uri}${d}`}getPageUrl(t){var i;let d=this.index.pages[t],e=this.index.nodes[d==null?void 0:d.nodeId];if(!d||!e)return;let V=(i=d.uri)!=null?i:`${e.uri}index.html`;return/^(https?:\/\/|\/)/.exec(V)?V:this.isEmbed?`${this.publishUrl}${V}`:`${this.baseUrl}${V}`}getProjectUrl(t){return/^(https?:\/\/|\/)/.exec(t)?t:`${this.baseUrl}${t}`}getSearchIndexUrl(){return`${this.baseUrl}search-index.json`}getSearchTextUrl(){return`${this.baseUrl}search-text.json`}};function va(l,t){Yh(l,t),Th(t),document.addEventListener("mousedown",d=>{!t.contains(d.target)&&!l.contains(d.target)&&t.classList.remove("project-search--isActive")},!0)}function Yh(l,t){l.addEventListener("click",d=>{d.preventDefault(),t.classList.add("project-search--isActive")})}function Th(l){document.querySelector(".project-search-close-button").addEventListener("click",d=>{d.preventDefault(),l.classList.remove("project-search--isActive")})}function lF(l){var W,Z;if(!((Z=(W=l.matches)==null?void 0:W[0])!=null&&Z.indices.length))return"";let{indices:t,value:d}=l.matches[0],e=t.map(([o,U])=>[o,U+1]),[V,i]=e[0],n=Math.max(0,V-50),a=Math.min(i+50,d.length),b=d.slice(n,a),c=[],G=Sh(e,n,a),R=0;for(let[o,U]of G){let I=o-n,B=U-n,N=b.slice(R,I),Y=b.slice(I,B);c.push(Da(N),kh(Da(Y))),R=B}return c.push(Da(b.slice(R))),`${n>0?"&hellip; ":""}${c.join("")}${a<d.length?" &hellip;":""}`}function Sh(l,t,d){l=l.filter(([V,i])=>V<d&&i>t);let e=[];for(let[V,i]of l){let n=[Math.max(V,t),Math.min(i,d)],a=e[e.length-1];a&&a[1]>n[0]?a[1]=Math.max(a[1],n[1]):e.push(n)}return e}function kh(l){return`<span class="search-input-highlight">${l}</span>`}function Da(l){return l.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function Ka(){if(!window.hasOwnProperty("$shproject")||window.$shproject===void 0)return;let l=!1,t={create:()=>jl(this,null,function*(){if(!l){l=!0;let d=window.$shproject,e=Promise.resolve(null);d.index?e=Promise.resolve(new Kd(d,d.index)):e=new Promise((V,i)=>{let n=document.createElement("script");n.src=`${d.publishUrl.replace(d.pageUri,"")}project.js`,n.addEventListener("load",()=>{V(new Kd(window.$shproject,window.$shproject.index))}),n.addEventListener("error",i),L("#article").appendChild(n)}),window.Shorthand.project.get=()=>e}}),get:()=>jl(this,null,function*(){return console.error("Project API is not ready yet"),null})};window.hasOwnProperty("Shorthand")?window.Shorthand.hasOwnProperty("project")||(window.Shorthand.project=t):window.Shorthand={project:t},window.Shorthand.project.get||(window.Shorthand.project.create=t.get),window.Shorthand.project.create||(window.Shorthand.project.create=t.create),window.Shorthand.project.create().catch(console.error),window.Shorthand.project.get().then(d=>{d&&(Mh(d),Hh(d),Pd(),wh(d))}).catch(console.error)}function Mh(l){let t=L("[data-project-header]"),d=l.getHeaderNavigation(),e=d.option!=="D";if(!t||!d.isEnabled)return;t.classList.remove("Theme-HeaderContainer--hidden");let V=L(".project-search-button",t),i=L("div[data-project-search-sidebar]",t);eF(t,d),e?VF(l,t,d,"header"):t.querySelector(".Navigation__hamburger").remove(),d.hasSearch&&V&&i?Eh(l,i,V):(V&&V.remove(),i&&i.remove()),iF(t,d,"header")}function Hh(l){let t=L("[data-project-footer]"),d=l.getFooterNavigation();!t||!d.isEnabled||(eF(t,d),VF(l,t,d,"footer"),iF(t,d,"footer"))}function Eh(l,t,d){va(d,t);let e=L("div[data-project-search]",t),V=L("button[data-project-search-close-button]");!e||!V||Promise.all([dF(l.getSearchIndexUrl(),"search index"),dF(l.getSearchTextUrl(),"search index text")]).then(([i,n])=>{let a=new Kt(n,{ignoreLocation:!0,ignoreFieldNorm:!0,shouldSort:!0,includeMatches:!0,minMatchCharLength:3,threshold:0},Kt.parseIndex(i));Ah(l,e,t,V,a)}).catch(i=>{console.error(`Could not set up search: ${i}`),e.remove()})}function dF(l,t){return jl(this,null,function*(){let d=yield fetch(l);if(!d.ok)throw new Error(`Status ${d.status} downloading ${t}: ${d.statusText}`);return d.json()})}function Ah(l,t,d,e,V){let i=t.querySelector("input[data-item-searchterm]"),n=t.querySelector(".project-search-delete-btn"),a=t.querySelector(".project-search-enter-btn");function b(W){a.style.display=W?"inline":"none",n.style.display=W?"none":"inline"}function c(W){W.value="",fa(d),b(!1)}function G(W){let Z=W.value.trim();if(Z){let o=V.search(Z);yh(o,d,l),b(!1)}}function R(W){W.value.trim()===""?(b(!1),fa(d)):d.querySelector(".project-search-results")||b(!0)}i.onkeydown=W=>{W.key==="Enter"&&(W.preventDefault(),G(i),b(!1))},i.addEventListener("input",()=>{R(i)}),n.onclick=()=>{c(i)},e.onclick=()=>{c(i)},a.onclick=()=>{G(i)}}function fa(l){let t=l.querySelector(".project-search-results");t&&t.remove()}function yh(l,t,d){fa(t);let e=document.createElement("ul");e.className="project-search-results";let V=`
 <li class="no-result-list--item">
    <span class="no-results-heading"> No matching results </span>
    <span>You could try: </span>

    <span class="search-options">related, or more general words</span>
    <span class="search-options">alternate spelling</span>
  </li>
`;l.length===0?e.innerHTML=V:l.forEach(i=>{var G,R,W,Z;let n=d.getProjectPage(i.item.id),a=lF(i),b=document.createElement("li");b.className="project-story-list-item";let c=t.querySelector("template[data-project-search-results-template]");if("content"in c){let o=c==null?void 0:c.content.cloneNode(!0),U=o.querySelector(".project-card-image"),I=o.querySelector(".project-image-link");I.href=n.url,U.src=(R=(G=n.cover)==null?void 0:G.url)!=null?R:"",U.alt=`Cover for ${n.title}`,o.querySelector(".project-match-snippet-container").innerHTML=a,o.querySelector(".project-story-title").textContent=n.title,o.querySelector(".project-story-description").textContent=((W=n.description)==null?void 0:W.length)>50?((Z=n.description)==null?void 0:Z.substring(0,50))+"...":n.description,b.appendChild(o),e.append(b)}}),t.querySelector(".project-sidebar-container").append(e)}function eF(l,t){var e;if(l.style.removeProperty("display"),t.color){l.style.backgroundColor=(e=t.color)==null?void 0:e.color;let V=s(".Theme-NavigationBar")[1];V&&t.color&&(V.style.backgroundColor=t.color.color),V&&t.fontColor&&Array.from(V.querySelectorAll(".Theme-NavigationBarItem")).forEach(i=>{i.style.color=t.fontColor.color})}l.classList.add(`ProjectNavigation--${t.option}`);let d=L("[data-project-logos]",l);d&&jh(t.logos,t.showThemeLogos,d)}function VF(l,t,d,e){let V=t.querySelector(".Navigation");d.color&&V.classList.add(d.color.className);let i=t.querySelector("ul");d.items.forEach(n=>{var c,G,R;let a=document.createElement("li");a.style.color=(c=d.fontColor)==null?void 0:c.color,a.className="Navigation__item Theme-NavigationBarItem";let b=document.createElement(n.url?"a":"span");if(b.className="Theme-NavigationLink",b.setAttribute("data-story-nav-item","true"),b.textContent=n.label,n.url)if(l.isEmbedLink(n.url)){let{path:W,url:Z}=Pa(l,n.url);b.setAttribute("data-path",W),b.setAttribute("href",Z)}else b.href=n.url;if(a.appendChild(b),i.appendChild(a),n.children.length>0){a.classList.add("hasMenu");let W=document.createElement("ul");if(W.className="Navigation__subMenu Theme-ProjectNavigation-subMenu",W.style.backgroundColor=(G=d.color)==null?void 0:G.color,W.setAttribute("role","menu"),e==="header"){let Z=document.createElement("button");Z.className="Navigation__button",Z.style.color=(R=d.fontColor)==null?void 0:R.color,Z.setAttribute("aria-label",`show submenu for ${n.label}`),Z.addEventListener("click",function(){let U=this.parentNode;U.className.includes("isOpen")?(U.classList.remove("isOpen"),this.setAttribute("aria-expanded","false")):(U.classList.add("isOpen"),this.setAttribute("aria-expanded","true"))});let o=document.createElement("span");o.className="menuCaret",Z.appendChild(o),a.addEventListener("mouseenter",function(){this.classList.add("isOpen"),Z.setAttribute("aria-expanded","true")}),a.addEventListener("mouseleave",function(){this.classList.remove("isOpen"),Z.setAttribute("aria-expanded","false")}),a.appendChild(Z)}n.children.forEach(Z=>{let o=document.createElement("li");o.className="Navigation__item Theme-NavigationBarItem Theme-ProjectNavigation-subItem",o.setAttribute("role","menuitem");let U=document.createElement("a");if(U.className="Theme-NavigationLink",U.textContent=Z.label,l.isEmbedLink(Z.url)){let{path:I,url:B}=Pa(l,Z.url);U.setAttribute("data-path",I),U.setAttribute("href",B)}else U.href=Z.url;o.appendChild(U),W.appendChild(o)}),a.appendChild(W)}}),nF(i)}function iF(l,t,d){let e=encodeURIComponent(document.location.href),V=d==="header"?l.querySelector(".Project-Header--right .Theme-SocialIcons"):l.querySelector(".Project-Footer--right .Theme-SocialIcons");if(t.social.showTwitter){let i=JSON.parse(V.getAttribute("data-text")),n=document.createElement("span");n.className="Theme-SocialButton";let a=document.createElement("a");a.className="Theme-TwitterButton",a.href=`https://twitter.com/intent/tweet?url=${e}${i.text}${i.via}`,a.setAttribute("data-social-share","twitter"),a.setAttribute("data-testid","Header--btn-Twitter"),n.appendChild(a),V.appendChild(n)}if(t.social.showFacebook){let i=document.createElement("span");i.className="Theme-SocialButton";let n=document.createElement("a");n.className="Theme-FacebookButton Theme-FaceboookButton",n.href=`https://www.facebook.com/sharer/sharer.php?u=${e}`,n.setAttribute("data-social-share","facebook"),n.setAttribute("data-testid","Header--btn-Facebook"),i.appendChild(n),V.appendChild(i)}if(t.social.showLinkedIn){let i=document.createElement("span");i.className="Theme-SocialButton";let n=document.createElement("a");n.className="Theme-LIButton",n.href=`https://www.linkedin.com/shareArticle?mini=true&url=${e}`,n.setAttribute("data-social-share","linkedin"),n.setAttribute("data-testid","Header--btn-LinkedIn"),i.appendChild(n),V.appendChild(i)}}function zh(l){let t=l.length;for(;t>0;){let d=Math.floor(Math.random()*t);t--;let e=l[t];l[t]=l[d],l[d]=e}return l}function wh(l){s("[data-related-stories]").forEach(t=>{let d=L("ul[data-related-stories-list]",t);if(d)return Lh(l,t,d);let e=L("ul[data-related-stories-site-map]",t);if(e)return Oh(l,e)})}function Lh(l,t,d){var g,F,u;let e=d.getAttribute("data-page"),V=(g=d.getAttribute("data-filter"))!=null?g:"list",i=d.getAttribute("data-content-titles")!=="false",n=d.getAttribute("data-content-descriptions")!=="false",a=(F=d.getAttribute("data-sort-order"))!=null?F:"Recently published",b=d.hasAttribute("data-filter-pages")?JSON.parse(d.getAttribute("data-filter-pages")):[],c=d.hasAttribute("data-shapes")?JSON.parse(d.getAttribute("data-shapes")):{},G=d.getAttribute("data-default-shape"),R=d.hasAttribute("data-external-links")?JSON.parse(d.getAttribute("data-external-links")):[],W=d.hasAttribute("data-item-overrides")?JSON.parse(d.getAttribute("data-item-overrides")):[],Z;d.hasAttribute("data-limit")&&(Z=(u=parseInt(d.getAttribute("data-limit")))!=null?u:void 0);let o=b;switch(V){case"subtree":let{relation:T,relationNodeId:k,includeSelfInList:Q}=d.hasAttribute("data-filter-subtree")?JSON.parse(d.getAttribute("data-filter-subtree")):{relation:"children",relationNodeId:e,includeSelfInList:!1};o=l.getSubpageIds(T,k,e,Q);break;case"tags":let S=d.hasAttribute("data-filter-tag-rule")?d.getAttribute("data-filter-tag-rule"):"any",j=d.hasAttribute("data-filter-tags")?JSON.parse(d.getAttribute("data-filter-tags")):[];o=l.getTaggedPageIds(j,S).filter(f=>f!==e);break}let U=o.map(T=>{let k=R.find(S=>S.id===T),Q=W==null?void 0:W.find(S=>S.id===T);return k?l.externalLinkToProjectPage(k):l.getProjectPage(T,Q)}).filter(T=>T);switch(a){case"Recently published":U.sort((Q,S)=>S.publishedAt.getTime()-Q.publishedAt.getTime());break;case"A - Z":U.sort((Q,S)=>Q.title.localeCompare(S.title));break;case"Z - A":U.sort((Q,S)=>S.title.localeCompare(Q.title));break;case"Random":zh(U);break;case"Manually sorted":let T=[],k=[...U];for(let Q of b){let S=U.find(j=>j.pageId===Q);S&&(T.push(S),k=k.filter(j=>j.pageId!==Q))}U=T.concat(k)}let I=U.slice(0,Z);if(I.length===0){t.remove();return}let B=L('[data-template="item"]',d);if(!B){t.remove();return}s("[data-template]",d).forEach(T=>{T.removeAttribute("data-template"),B.remove(),B.style.removeProperty("display")});let N=s("a[data-item-url]",B),Y=s("img[data-item-media]",B),C=s("[data-item-title]",B),h=s("[data-item-description]",B),m=s("[data-item-image]",B);I.forEach(T=>{N.forEach(Q=>{if(l.isEmbedLink(T.url)){let{path:S,url:j}=Pa(l,T.url);Q.setAttribute("href",j),Q.setAttribute("data-path",S)}else Q.setAttribute("href",T.url)}),T.cover&&(Y.forEach(Q=>Q.setAttribute("src",T.cover.url)),Y.forEach(Q=>Q.setAttribute("alt",`Cover image for ${T.title}`))),C.forEach(Q=>{Q.textContent=T.title,i||(Q.style.display="none")}),h.forEach(Q=>{var S;Q.textContent=(S=T.description)!=null?S:"",n||(Q.style.display="none")}),m.forEach(Q=>{if(c){let S=G||c[T.pageId];Q.className=`crop-${S}`}}),C.forEach(Q=>Q.textContent=T.title),h.forEach(Q=>{var S;return Q.textContent=(S=T.description)!=null?S:""});let k=B.cloneNode(!0);nF(k),T.cover?s("source[data-item-mediasource]",k).forEach(Q=>{T.cover.sources.forEach(S=>{let j=Q.cloneNode(),f=Q.nextSibling;j.srcset=S.srcSet,j.type=S.type,Q.parentElement.insertBefore(j,f)}),Q.remove()}):s(".related-story-image",k).forEach(Q=>Q.remove()),d.appendChild(k)})}function Oh(l,t){let d=s("[data-template]",t),e=L('[data-template="page"]',t),V=L('[data-template="node"]',t);d.forEach(n=>{n.removeAttribute("data-template"),n.remove(),n.style.removeProperty("display")});function i(n,a){var U;let b=l.index.nodes[n];if(!b)return;let c=l.index.pages[b.page];if(!c&&!b)return;let R=(c?e:V).cloneNode(!0),W=b.page?l.getPageUrl(b.page):"",Z=c?c.title:b.label;s("[data-item-title]",R).forEach(I=>{I.textContent=Z}),s("a[data-item-url]",R).forEach(I=>{I.setAttribute("href",W)});let o=L("ul[data-item-children]",R);o&&((U=b.children)!=null?U:[]).forEach(I=>i(I,o)),a.appendChild(R)}l.index.roots.forEach(n=>i(n,t))}function jh(l,t,d){let e=s("[data-template]",d),V=L('[data-template="link"]',d),i=L('[data-template="no-link"]',d);if(!V||!i){d.remove();return}t||s("[data-themelogos]",d).forEach(a=>a.remove()),e.forEach(n=>n.remove());for(let{link:n,media:a}of l){let c=(n?V:i).cloneNode(!0),G=Object.values(a).reduce((R,{alt:W})=>R||W,"");for(let R of s("img[data-logo-img]",c))Dh(R,a,G)||R.remove();if(n)for(let R of s("a[data-logo-link]",c))vh(R,n);d.appendChild(c)}}function Dh(l,t,d){let e=l.getAttribute("data-logo-img");if(e in t){let{src:V,alt:i}=t[e];return l.setAttribute("src",V),(i||d)&&l.setAttribute("alt",i||d),!0}return!1}function vh(l,t){var e;l.setAttribute("href",t.href),t.blank&&l.setAttribute("target","_blank");let d=new Set((e=l.getAttribute("rel"))!=null?e:[]);t.noreferrer&&d.add("noreferrer"),t.nofollow&&d.add("nofollow"),d.size>0&&l.setAttribute("rels",Array.from(d).join(" "))}function Pa(l,t){let d="/"+t.replace(l.publishUrl,"").replace(/\/?index\.html/,""),e=new URL(document.location.href);return e.searchParams.set("shpath",d),{path:d,url:decodeURIComponent(e.toString())}}function nF(l){s("a[data-path]",l).forEach(t=>{t.addEventListener("click",d=>{d.preventDefault(),d.stopPropagation();let e=t.getAttribute("data-path");window.Shorthand.navigateInProject(e,t.href)})})}var qa=tt(Se());function bt(l){return typeof l=="number"?Math.round(l):{x:bt(l.x),y:bt(l.y),z:l.z}}function _a(){return{noHighlightsBehaviour:"contain",lineWidth:10,lineColor:"#12bf9c",markerSize:30,markerColor:"#12bf9c",transitionDuration:1}}var al=null;function sV(l=!1){return new Promise((t,d)=>{if(al===null||l){al=_a();let e=document.createElement("div");e.className="Theme-Scrollpoints-Highlight",e.style.display="none",e.style.pointerEvents="none",document.body.appendChild(e);let V=document.createElement("div");V.className="Theme-Scrollpoints-Marker",V.style.display="none",V.style.pointerEvents="none",document.body.appendChild(V),setTimeout(()=>{let i=window.getComputedStyle(V);return al.markerSize=parseInt(i.getPropertyValue("width"),10),al.markerColor=i.getPropertyValue("background-color"),i=window.getComputedStyle(e),al.lineWidth=parseInt(i.getPropertyValue("border-width"),10),al.lineColor=i.getPropertyValue("border-color"),al.noHighlightsBehaviour=i.getPropertyValue("background-size")==="cover"?"cover":"contain",t(al)},50)}else return t(al)})}function aF(l,t){if(t<=0)return;let{height:d,width:e}=l.canvas,V=l.getImageData(0,0,e,d),{data:i}=V,n=e-1,a=d-1,b=t+1,G=[1,57,41,21,203,34,97,73,227,91,149,62,105,45,39,137,241,107,3,173,39,71,65,238,219,101,187,87,81,151,141,133,249,117,221,209,197,187,177,169,5,153,73,139,133,127,243,233,223,107,103,99,191,23,177,171,165,159,77,149,9,139,135,131,253,245,119,231,224,109,211,103,25,195,189,23,45,175,171,83,81,79,155,151,147,9,141,137,67,131,129,251,123,30,235,115,113,221,217,53,13,51,50,49,193,189,185,91,179,175,43,169,83,163,5,79,155,19,75,147,145,143,35,69,17,67,33,65,255,251,247,243,239,59,29,229,113,111,219,27,213,105,207,51,201,199,49,193,191,47,93,183,181,179,11,87,43,85,167,165,163,161,159,157,155,77,19,75,37,73,145,143,141,35,138,137,135,67,33,131,129,255,63,250,247,61,121,239,237,117,29,229,227,225,111,55,109,216,213,211,209,207,205,203,201,199,197,195,193,48,190,47,93,185,183,181,179,178,176,175,173,171,85,21,167,165,41,163,161,5,79,157,78,154,153,19,75,149,74,147,73,144,143,71,141,140,139,137,17,135,134,133,66,131,65,129,1][t],W=[0,9,10,10,14,12,14,14,16,15,16,15,16,15,15,17,18,17,12,18,16,17,17,19,19,18,19,18,18,19,19,19,20,19,20,20,20,20,20,20,15,20,19,20,20,20,21,21,21,20,20,20,21,18,21,21,21,21,20,21,17,21,21,21,22,22,21,22,22,21,22,21,19,22,22,19,20,22,22,21,21,21,22,22,22,18,22,22,21,22,22,23,22,20,23,22,22,23,23,21,19,21,21,21,23,23,23,22,23,23,21,23,22,23,18,22,23,20,22,23,23,23,21,22,20,22,21,22,24,24,24,24,24,22,21,24,23,23,24,21,24,23,24,22,24,24,22,24,24,22,23,24,24,24,20,23,22,23,24,24,24,24,24,24,24,23,21,23,22,23,24,24,24,22,24,24,24,23,22,24,24,25,23,25,25,23,24,25,25,24,22,25,25,25,24,23,24,25,25,25,25,25,25,25,25,25,25,25,25,23,25,23,24,25,25,25,25,25,25,25,25,25,24,22,25,25,23,25,25,20,24,25,24,25,25,22,24,25,24,25,24,25,25,24,25,25,25,25,22,25,25,25,24,25,24,25,18][t],Z=[],o=[],U=[],I=[],B=[],N=[],Y=3,C,h,m,g;for(;Y-- >0;){let F=0,u=0;for(let T=0;T<d;T++){let k=i[F]*b,Q=i[F+1]*b,S=i[F+2]*b,j=i[F+3]*b;for(let f=1;f<=t;f++)C=F+((f>n?n:f)<<2),k+=i[C++],Q+=i[C++],S+=i[C++],j+=i[C];for(let f=0;f<e;f++)Z[u]=k,o[u]=Q,U[u]=S,I[u]=j,T===0&&(B[f]=((C=f+b)<n?C:n)<<2,N[f]=(C=f-t)>0?C<<2:0),h=F+B[f],m=F+N[f],k+=i[h++]-i[m++],Q+=i[h++]-i[m++],S+=i[h++]-i[m++],j+=i[h]-i[m],u++;F+=e<<2}for(let T=0;T<e;T++){let k=T,Q=Z[k]*b,S=o[k]*b,j=U[k]*b,f=I[k]*b;for(let x=1;x<=t;x++)k+=x>a?0:e,Q+=Z[k],S+=o[k],j+=U[k],f+=I[k];u=T<<2;for(let x=0;x<d;x++)i[u+3]=g=f*G>>>W,g>0?(g=255/g,i[u]=(Q*G>>>W)*g,i[u+1]=(S*G>>>W)*g,i[u+2]=(j*G>>>W)*g):i[u]=i[u+1]=i[u+2]=0,T===0&&(B[x]=((C=x+b)<a?C:a)*e,N[x]=(C=x-t)>0?C*e:0),h=T+B[x],m=T+N[x],Q+=Z[h]-Z[m],S+=o[h]-o[m],j+=U[h]-U[m],f+=I[h]-I[m],u+=e<<2}}l.putImageData(V,0,0)}var _d=class{constructor(t){this.onTick=t}start(t,d,e){this.from=bt(t),this.to=bt(d),this.duration=e,!(isNaN(t.x)||isNaN(t.y)||isNaN(t.z)||isNaN(d.x)||isNaN(d.y)||isNaN(d.z))&&(this.secondsRemaining=this.duration,this.lastTickAt=new Date().getTime(),this.tick=this.tick.bind(this),this.tick())}tick(){if(this.duration===0)this.onTick({x:this.to.x,y:this.to.y,z:this.to.z});else{let t=new Date().getTime(),d=(t-this.lastTickAt)/1e3;if(this.lastTickAt=t,this.secondsRemaining>0){this.secondsRemaining=this.secondsRemaining-d;let e=1-Math.max(0,this.secondsRemaining)/this.duration,V=bF(e);this.onTick({x:bt(this.from.x+(this.to.x-this.from.x)*V),y:bt(this.from.y+(this.to.y-this.from.y)*V),z:this.from.z+(this.to.z-this.from.z)*bF(e)}),requestAnimationFrame(this.tick)}}}},bF=l=>1-(1-l)*(1-l);var cF=.01,GF=2.5,$d=class{constructor(t,d,e,V){this.isHidden=!1;this.pixelDensity=1;this.canvasWidth=0;this.canvasHeight=0;this.x=0;this.y=0;this.zoom=1;this.noHighlightsBehaviour="contain";this.maxX=0;this.maxY=0;this.setHighlightsAt=0;this._style=_a();this._isReady=!1;this._isRendering=!1;typeof window.devicePixelRatio=="number"&&(this.pixelDensity=Math.min(2,window.devicePixelRatio)),this.initStyle().catch(console.error),this.canvas=t,this.offscreenCanvas=document.createElement("canvas"),this.ctx=this.offscreenCanvas.getContext("2d",{alpha:!1}),this.ctx.imageSmoothingEnabled=!0,this.ctx.lineJoin="miter",this.ctx.lineCap="square",this.finalCtx=this.canvas.getContext("2d",{alpha:!1}),this.image=d,this.highlights=[],this.backgroundColor=e,this.backgroundOpacity=V,this.bias="none",this.x=0,this.y=0,this.zoom=1,this.maxX=0,this.maxY=0,this.tween=new _d(this.onTweenTick.bind(this)),this._render=this._render.bind(this),this.render=this.render.bind(this),this.adjustSize(),this._isReady=!0,this.render()}initStyle(){return jl(this,null,function*(){this._style=yield sV(!0)})}hide(){this.isHidden=!0,this.canvas.style.display="none"}show(){this.isHidden&&this.render(),this.isHidden=!1,this.canvas.style.display="initial"}setInstantSrc(t){if(t===this.backgroundImageSrc)return;this.backgroundImageSrc=t,this.isBackgroundImageReady=!1,this.backgroundImage||(this.backgroundImage=document.createElement("canvas"));let d=document.createElement("img");d.crossOrigin="use-credentials",d.addEventListener("load",()=>{if(d.width<=0)return;this.backgroundImage.width=300,this.backgroundImage.height=300;let e=this.backgroundImage.getContext("2d",{alpha:!1});e.drawImage(d,0,0,this.backgroundImage.width,this.backgroundImage.height),aF(e,10),this.isBackgroundImageReady=!0}),d.src=t}adjustSize(){let{width:t}=this.canvas.parentElement.getBoundingClientRect(),d=window.innerHeight;this.canvas.width=t*this.pixelDensity,this.canvas.height=d*this.pixelDensity,this.canvas.style.width=`${t}px`,this.canvas.style.height=`${d}px`,this.canvasWidth=t*this.pixelDensity,this.canvasHeight=d*this.pixelDensity,this.offscreenCanvas.width=t*this.pixelDensity,this.offscreenCanvas.height=d*this.pixelDensity}render(){this._isReady?requestAnimationFrame(this._render):requestAnimationFrame(this.render)}_render(t){if(!this.isHidden){if(!this._isRendering){this._isRendering=!0;let d=(t-this.setHighlightsAt)/60,e=this.ctx;e.fillStyle="black",e.fillRect(0,0,this.canvasWidth,this.canvasHeight),this.isBackgroundImageReady&&this.backgroundImage.width>0&&this.backgroundOpacity<1&&e.drawImage(this.backgroundImage,0,0,this.backgroundImage.width,this.backgroundImage.height,0,0,this.canvasWidth,this.canvasHeight);let V=this.highlights.filter(n=>n.darkenAroundHighlight);V.length>0&&(e.fillStyle="rgba(0,0,0,0.6)",e.fillRect(0,0,this.canvasWidth,this.canvasHeight)),e.fillStyle=this.backgroundColor,e.globalAlpha=this.backgroundOpacity,e.fillRect(0,0,this.canvasWidth,this.canvasHeight),e.globalAlpha=1,e.transform(this.zoom,0,0,this.zoom,bt(this.canvasWidth/2),bt(this.canvasHeight/2)),this.image.width>0&&e.drawImage(this.image,-this.x,-this.y);let i=10*this.pixelDensity/this.zoom;if(V.length>0){e.fillStyle="rgba(0,0,0,0.6)",e.setTransform(1,0,0,1,0,0),e.fillRect(0,0,this.canvasWidth,this.canvasHeight),e.transform(this.zoom,0,0,this.zoom,bt(this.canvasWidth/2),bt(this.canvasHeight/2)),e.save();let n=new Path2D;V.forEach(a=>{qd(n,-this.x+a.x,-this.y+a.y,a.width,a.height,i)}),e.clip(n),this.image.width>0&&e.drawImage(this.image,-this.x,-this.y),e.restore()}this.highlights.forEach(n=>{var c;let a=new Path2D;switch(e.lineWidth=bt(this._style.lineWidth/2*this.pixelDensity/this.zoom),(c=n.effect)!=null?c:n.isHidden?"hidden":"solid"){case"hidden":break;case"ants":e.strokeStyle=n.color?n.color:this._style.lineColor,e.setLineDash([40/this.zoom,20/this.zoom]),e.lineDashOffset=-(d*5%60)/this.zoom,qd(a,-this.x+n.x,-this.y+n.y,n.width,n.height,i),e.stroke(a);break;case"draw":let G=(n.width+n.height)*2;e.strokeStyle=n.color?n.color:this._style.lineColor,e.setLineDash([G]),e.lineDashOffset=Math.max(0,G-d*(G/60)),qd(a,-this.x+n.x,-this.y+n.y,n.width,n.height,i),e.stroke(a);break;case"flash":e.strokeStyle=n.color?n.color:this._style.lineColor,e.setLineDash([]),qd(a,-this.x+n.x,-this.y+n.y,n.width,n.height,i),e.globalAlpha=(1+Math.sin(d/4))/2,e.stroke(a),e.globalAlpha=1;break;case"solid":default:e.strokeStyle=n.color?n.color:this._style.lineColor,e.setLineDash([]),qd(a,-this.x+n.x,-this.y+n.y,n.width,n.height,i),e.stroke(a);break}e.setLineDash([]),e.lineDashOffset=0}),this.highlights.forEach(n=>{var a;if(n.hasDot){let b=(this._style.markerSize/2-2)*this.pixelDensity/this.zoom,c=2*this.pixelDensity*((1+Math.sin(d/4))/2)/this.zoom,G=new Path2D;G.arc(-this.x+n.dotX,-this.y+n.dotY,bt(b+c),0,2*Math.PI),e.fillStyle=(a=n.dotColor)!=null?a:this._style.lineColor,e.fill(G),e.lineWidth=4*this.pixelDensity/this.zoom,e.strokeStyle="black",e.stroke(G)}}),this.highlights.forEach(n=>{let a=18*this.pixelDensity-4;if(e.font=`bold ${a/this.zoom}px Arial`,e.textAlign="center",e.fillStyle="white",e.strokeStyle="black",e.lineWidth=6*this.pixelDensity/this.zoom,n.label){let b=this.ensureLabelXIsInsideBoundaries(e.measureText(n.label).width,-this.x+n.x+n.width*.5);e.strokeText(n.label,b,-this.y+n.y+n.height-(a+5)/this.zoom),e.fillText(n.label,b,-this.y+n.y+n.height-(a+5)/this.zoom)}if(n.dotLabel){let b=this.ensureLabelXIsInsideBoundaries(e.measureText(n.dotLabel).width,-this.x+n.dotX);e.strokeText(n.dotLabel,b,-this.y+n.dotY-(a+10)/this.zoom),e.fillText(n.dotLabel,b,-this.y+n.dotY-(a+10)/this.zoom)}}),e.setTransform(1,0,0,1,0,0),this.offscreenCanvas.width>0&&this.finalCtx.drawImage(this.offscreenCanvas,0,0),this._isRendering=!1}this.render()}}setBounds(t,d){this.maxX=t,this.maxY=d}setHighlights(t,d){this.noHighlightsBehaviour=this._style.noHighlightsBehaviour,this.highlights=[];let e=this.getDimensions(),V=this.getAutoZoom(e.width,e.height),i=this._style.transitionDuration;t.length>0&&(this.highlights=t.map(n=>Wl(nt({},n),{x:bt(n.x/100*this.maxX),y:bt(n.y/100*this.maxY),width:bt(n.width/100*this.maxX),height:bt(n.height/100*this.maxY),dotX:bt(n.dotX/100*this.maxX),dotY:bt(n.dotY/100*this.maxY)})),e=this.getDimensions(),V=this.getAutoZoom(e.width,e.height)),this.tween.start({x:this.x,y:this.y,z:this.zoom},{x:e.x+e.width/2,y:e.y+e.height/2,z:V},d===this.key?0:i),this.key=d,this.setHighlightsAt=performance.now()}getDimensions(){let t=this.highlights.reduce((d,e)=>{let V=nt({},d);return(V.x===-1||e.x<V.x)&&(V.width=V.x+V.width-e.x,V.x=e.x),(V.y===-1||e.y<V.y)&&(V.height=V.y+V.height-e.y,V.y=e.y),e.x+e.width>V.x+V.width&&(V.width=e.x-V.x+e.width),e.y+e.height>V.y+V.height&&(V.height=e.y-V.y+e.height),V},{x:-1,y:-1,width:0,height:0});return this.highlights.length===0&&(t.x=0,t.y=0,t.width=this.maxX,t.height=this.maxY),this.applyBias(t),t}applyBias(t){if(q.getWidth()<900)return;let d=t.width>t.height;this.bias==="left"?t.width*=d?2.1:2.4:this.bias==="right"&&(t.width*=d?2.1:2.4,t.x-=t.width/(d?1.9:1.7))}getAutoZoom(t,d){(typeof t=="undefined"||typeof d=="undefined")&&(t=this.maxX,d=this.maxY);let e=t===this.maxX,V=this.noHighlightsBehaviour==="contain"||this.highlights.length>0;V&&(t*=e?1.05:1.2,d*=e?1.05:1.2);let i=this.canvasWidth/t,n=this.canvasHeight/d,a=V?Math.min(n,i):Math.max(n,i);return(0,qa.default)(a,cF,GF)}setZoom(t){typeof t=="undefined"?this.zoom=this.getAutoZoom():this.zoom=t,this.zoom=(0,qa.default)(this.zoom,cF,GF),this.setCenter(this.x,this.y)}setCenter(t,d){typeof t!="undefined"?(this.x=bt(t),this.y=bt(d)):(this.x=bt(this.maxX/2),this.y=bt(this.maxY/2))}onTweenTick(t){isNaN(t.x)||isNaN(t.y)||isNaN(t.z)||(this.setCenter(t.x,t.y),this.setZoom(t.z))}hasHighlightAtScreenPosition(t){let d=V=>(V-this.x)*this.zoom+this.canvasWidth/2,e=V=>(V-this.y)*this.zoom+this.canvasHeight/2;return this.highlights.reduce((V,i)=>V?!0:!(t.x<d(i.x)||t.x>d(i.x+i.width)||t.y<e(i.y)||t.y>e(i.y+i.height)),!1)}ensureLabelXIsInsideBoundaries(t,d){let e=this.getDimensions(),V=-this.x+e.x,i=V+e.width;return d-t*.5<V?d=V+t*.5:d+t*.5>i&&(d=i-t*.5),d}};function qd(l,t,d,e,V,i){"roundRect"in l?l.roundRect(t,d,e,V,i):l.rect(t,d,e,V,i)}function $a(){s("[data-scrollpoints]").forEach(l=>fh(l))}function fh(l){let t=l.querySelector("[data-media]"),d=document.createElement("canvas");t.appendChild(d);let e,V,i=new Image;i.addEventListener("load",()=>{n.setBounds(i.naturalWidth,i.naturalHeight),n.adjustSize(),b(!0)}),i.src=t.getAttribute("data-media");let n=new $d(d,i,t.getAttribute("data-color"),parseFloat(t.getAttribute("data-opacity")||"10")/100);n.setInstantSrc(t.getAttribute("data-instant")),Ph(l,d,n);let a=s("[data-box]",l);n.key=a[0].getAttribute("data-item-id");function b(Z=!1){if(V=RF(l),V!==e||Z===!0){if(e=V,!V)return;Kh(V,n);let o=V.getAttribute("data-item-id");if(o&&window.dispatchEvent(new CustomEvent("scrollpoint:active-point-changed",{detail:{itemId:o}})),V.getAttribute("data-box")==="")n.setHighlights([],o);else{let{highlights:U}=JSON.parse(V.getAttribute("data-box")),I=U.map(B=>({x:parseFloat(B.x),y:parseFloat(B.y),width:parseFloat(B.width),height:parseFloat(B.height),effect:B.effect,color:B.color||"red",label:B.label||"",hasDot:!!B.hasDot,dotX:parseFloat(B.dotX),dotY:parseFloat(B.dotY),dotColor:B.dotColor,dotLabel:B.dotLabel||"",darkenAroundHighlight:B.darkenAroundHighlight||!1}));n.setHighlights(I,o)}}}function c(){b();let{top:Z,bottom:o}=l.getBoundingClientRect();Z>q.getHeight()||o<q.getTop()?n.hide():n.show()}let G=0;function R(){clearTimeout(G),G=window.setTimeout(()=>{n.adjustSize(),b(!0)},200)}return(document.getElementById("editor-viewport")||document).addEventListener("scroll",c,{passive:!0}),window.addEventListener("resize",R,{passive:!0}),()=>{sV(!0).catch(console.error);let Z=t.getAttribute("data-media");i.src!==Z&&(i.src=Z),n.setInstantSrc(t.getAttribute("data-instant")),a=s("[data-box]",l),n.backgroundColor=t.getAttribute("data-color"),n.backgroundOpacity=parseFloat(t.getAttribute("data-opacity"))/100,b(!0)}}function Ph(l,t,d){if(!document.getElementById("editor-viewport"))return;let e=l.getAttribute("data-section-id");t.addEventListener("mousemove",V=>{d.hasHighlightAtScreenPosition({x:V.offsetX,y:V.offsetY})?document.body.style.setProperty("cursor","zoom-in"):document.body.style.setProperty("cursor","auto")},{passive:!0}),t.addEventListener("click",V=>{if(d.hasHighlightAtScreenPosition({x:V.offsetX,y:V.offsetY})){let i=RF(l);window.dispatchEvent(new CustomEvent("scrollpoint:manage-highlights",{detail:{sectionId:e,activeItemId:i.getAttribute("data-item-id")}}))}})}function RF(l){let t=window.innerHeight*.9,d=l.querySelector("[data-media]"),e=s("[data-box]",l),V,i=l.getBoundingClientRect();return i.bottom<q.getTop()+q.getHeight()?(V=e[e.length-1],d.setAttribute("data-attach","after")):i.top<q.getTop()?(V=e.reduce((n,a)=>a.getBoundingClientRect().top<t?a:n,e[0]),d.setAttribute("data-attach","during")):(V=e[0],d.setAttribute("data-attach","before")),V}function Kh(l,t){switch(l.getAttribute("data-align")){case"left":t.bias="right";break;case"right":t.bias="left";break;default:t.bias="none"}}var NV=tt(pt());var WF=!1;function lb(l){l&&(ed.getTopOffset=l),s("[data-scrollymoly]").forEach(_h),window.addEventListener("orientationchange",()=>tb()),WF||(WF=!0,window.addEventListener("resize",$h),St(tb))}var ed={moles:[],getTopOffset(l){return document.documentElement?l.getBoundingClientRect().top+document.documentElement.scrollTop:(console.error("Document element is not available."),0)}};function _h(l){let t=l.getAttribute("data-scrollymoly");try{let d=JSON.parse(t).map(i=>Wl(nt({},i),{offset:Number.isFinite(i.offset)?i.offset:0})),e=l.closest("[data-scrollymoly-basis]"),V=ed.getTopOffset(e);qh({element:l,basisEl:e,effects:d,topOffset:V,state:{}})}catch(d){console.error(d)}}function qh(l){ed.moles.push(l),tb()}function tb(){ed.moles.map(ts)}function $h(){ed.moles.forEach(l=>{l.topOffset=ed.getTopOffset(l.basisEl)})}function ts(l){return new Promise((t,d)=>{NV.default.measure(()=>{l.effects.forEach(e=>{e.kind in ZF?ZF[e.kind](l,e,t):(console.error(`Unknown effect type '${e.kind}'`),t())})})})}function UF(l,t,d){let e=t.firstElementChild.getBoundingClientRect(),V=l.kind==="fadeIn"?e.top:e.bottom,i=q.getHeight()*l.end,n=i+Math.min(e.height,q.getHeight()*l.start),a=V>n?1:(V-i)/(n-i);return Math.round(a*100)/100}var ZF={fadeOut(l,t,d){let e=UF(t,l.basisEl,l.topOffset),V=Math.max(0,Math.min(1,e));if(l.state.lastOpacity===V)return d();NV.default.mutate(()=>{l.state.lastOpacity=V,l.element.style.opacity=V.toString(),d()})},fadeIn(l,t,d){let e=UF(t,l.basisEl,l.topOffset),V=Math.max(0,Math.min(1,1-e));if(l.state.lastOpacity===V)return d();NV.default.mutate(()=>{l.state.lastOpacity=V,l.element.style.opacity=V.toString(),d()})}};var Vd={};function id(l,t){return()=>{Vd.pause&&Vd.instance!==t&&Vd.pause(),Vd.pause=()=>{delete Vd.pause,l()},Vd.instance=t}}var ls="https://w.soundcloud.com/player/api.js",ds=!1,es="SoundCloudPlayer--initializing";function Vs(l){if(ds)return l();let t=document.createElement("script");t.type="text/javascript",t.async=!0,t.addEventListener("load",l),t.src=ls;let d=document.getElementsByTagName("script")[0];d.parentNode.insertBefore(t,d)}function is(l){let t=l.getAttribute("data-src"),d=l.getAttribute("data-height"),e=as({src:t,height:d});e.addEventListener("load",()=>{Vs(()=>{l.classList.remove(es);let V=new SC.Widget(e);ns(V,e)})}),l.appendChild(e)}function ns(l,t){let d=l.pause.bind(l);l.bind(SC.Widget.Events.READY,()=>{l.bind(SC.Widget.Events.PLAY,id(d,t))})}function as(l){let t=document.createElement("iframe"),d={width:"100%",scrolling:"no",frameborder:"no",src:l.src,height:l.height};return Object.keys(d).forEach(e=>t.setAttribute(e,d[e])),t}function db(){let l=s("[data-soundcloud]");window.addEventListener("load",()=>{setTimeout(()=>l.forEach(is),100)})}function eb(){s(".SplitLayout").forEach(bs)}function bs(l){let t=s(".FullSize__fixedChild.ObjectFit--cover",l);cW()&&t.forEach(Ca)}var Vb=tt(pt());function cs(l){let t=s("[data-stacked-content-fill]",l),d=s("[data-stacked-content-basis]",l),e=()=>Gs(l,t,d);return e(),St(e),()=>Il(e)}function Gs(l,t,d){t.length!==0&&Vb.default.measure(()=>{let e=bZ(l);if(!e)return;let V=d.reduce((n,a)=>n+a.clientHeight,0),i=(e-V)/t.length;Vb.default.mutate(()=>{t.forEach(n=>n.style.maxHeight=`${i}px`)})})}function ib(){return s("[data-stacked-content]").map(cs)}function Rs(l,t){let d=`https://views.unsplash.com/v?app_id=${l}&photo_id=${t}`;fetch(d).catch(e=>console.log(e))}function nb(){s("[data-unsplash-ids]").forEach(l=>{let t=l.getAttribute("data-unsplash-ids"),d=l.getAttribute("data-unsplash-app");Rs(d,t)})}var ab=class extends Error{constructor(d){super(d.statusText);this.response=d}};function FF(l){if(l.status>=200&&l.status<300)return l;let t=new ab(l);throw t.response=l,t}function gF(l,t,d){let e=l.headers.get("content-type");if(e&&e.includes(t))return l;throw new TypeError(d)}function bb(l,t,d){fetch(l).then(FF).then(e=>gF(e,"application/json","Incorrect data for Gallery")).then(e=>e.json()).then(e=>{let V=e.items.filter(n=>n.url.replace(/index\.html$/,"")!==window.location.href.replace(/index\.html$/,"")).map(n=>{let a=t==="tiles"?'class="ObjectFit--cover"':"",b=n.mediaSrc?`<img alt="" src="${n.mediaSrc}" ${a}>`:"",c=n.openInNewWindow?'target="_blank"':"",G=n.isNoFollow?'rel="nofollow"':"";return`
              <li class="Theme-Layer-Gallery-Item" style="overflow:hidden">
                <a href="${n.url?n.url:"/"}" ${c} ${G}>
                  <div class="Theme-Layer-Gallery-Item-Media">
                  ${b}
                  </div>
                  <div class="Theme-Layer-Gallery-Item-Text">
                    <h4 class="Theme-Layer-Gallery-Item-Title">${n.title?n.title:""}</h4>
                    <div class="Theme-Layer-Gallery-Item-Description">${n.description?n.description:""}</div>
                  </div>
                </a>
              </li>
            `}).join(""),i=`
          <h3 class="Layout Theme-Layer-Gallery-Heading">${e.title?e.title:""}</h3>
          <ul class="Layout Theme-Layer-Gallery-List">${V}</ul>
        `;return d?d(i):i}).catch(e=>{console.log("Gallery was unable to parse external data",e)})}var Ws="GalleryRenderer--initializing";function Us(l){let d=(window.location.protocol==="file:"?"http:":window.location.protocol)+l.getAttribute("data-url").replace(/^\w+:/,""),e=l.getAttribute("data-mode");bb(d,e,V=>{l.innerHTML=V,l.classList.remove(Ws),xd()})}function cb(){s("[data-galleryrenderer]").forEach(Us)}function Gb(){}var Zs={mainSelector:".TransitionIn--fade",fadeInClass:"TransitionIn--fadeIn"};function Rb(l=Zs){s(l.mainSelector).forEach(d=>{Fs(d,{fadeInClass:l.fadeInClass})})}function Fs(l,t){let d=e=>{let V=e.rootBounds?e.rootBounds.top:0;e.boundingClientRect.top<V&&!e.isIntersecting||gs(l,t.fadeInClass,vt(e))};return l.classList.add(t.fadeInClass),wt(l,d,{triggerPoint:"mostly visible"}),()=>_l(l)}function gs(l,t,d){yU(l,t,d)}function Wb(){Rb()}var Ub=l=>`${l}px`;function IF(l){let{width:t,height:d,top:e}=l.getBoundingClientRect();Object.assign(l.style,{position:"fixed",top:Ub(e),width:Ub(t),height:Ub(d),overflowY:"scroll"})}function mF(l){let t=parseInt(l.style.top,10);Object.assign(l.style,{position:"",top:"",width:"",height:"",overflowY:""}),window.scrollTo(0,-t)}function BF(){return q.getWidth()<900?"portrait":"landscape"}var Zb=[],te;function pF(){return te||(te=BF()),te}function rF(l){Zb.length===0&&Is(),Zb.push(l)}function oF(){let l=BF();l!==te&&(te=l,Zb.forEach(t=>t(l)))}function Is(){window.addEventListener("resize",oF,{passive:!0}),window.addEventListener("orientationchange",oF,{passive:!0})}var ms="[data-videoplayer-youtube]",os='[data-projection="360"]',Bs="__YOUTUBE_API_SCRIPT__",QV={whenApiReady:!1,players:[]};function ps(l){s('script[src="//www.youtube.com/player_api"]').length>0||(QV.whenApiReady||(QV.whenApiReady=new Promise((t,d)=>{window.onYouTubeIframeAPIReady=()=>t();let e=document.createElement("script");e.src="//www.youtube.com/player_api",e.id=Bs,e.async=!0;let V=document.getElementsByTagName("script")[0];V.parentNode.insertBefore(e,V)})),QV.whenApiReady.then(l))}function rs(l){return{[YT.PlayerState.PLAYING]:"play",[YT.PlayerState.PAUSED]:"pause",[YT.PlayerState.ENDED]:"end"}[l.data]}function hs(l){let t=l.getAttribute("data-video-id");return new YT.Player(l,{videoId:t,playerVars:{rel:0},events:{onStateChange(e){if(e.data===YT.PlayerState.PLAYING){let i=e.target,n=i.pauseVideo.bind(i);id(n,i.getIframe())()}let V=rs(e);V&&ss(V,e.target)}}})}function ss(l,t){let d=t.getVideoData(),e=`${d.title} (${d.video_id})`;dl("Videos",l,e)}function Ns(l){l.forEach(t=>{let d=t.getAttribute("data-video-id"),e=t.parentElement,V=document.createElement("div"),i=document.createElement("a");t.removeAttribute("data-videoplayer-youtube"),e.style.backgroundImage="url('https://img.youtube.com/vi/"+d+"/maxresdefault.jpg')",e.style.backgroundSize="cover",i.setAttribute("href","http://www.youtube.com/watch?v="+d),i.setAttribute("target","_blank"),i.className="Theme-360Video-Link",e.parentNode.insertBefore(i,e),i.appendChild(e),i.appendChild(V),V.innerText="Tap to view 360 video",V.className="Theme-360Video-Button"})}function Fb(l=ms,t=os){let d=s(t);Rt().isiOS&&Ns(d);let e=s(l);e.length!==0&&ps(()=>{QV.players=e.map(hs)})}var{isSafari:Qs}=Rt(),xs=`<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 Js(l,t,d){let e=!0,V=!1,i=null,n=null,a=null,b=d;function c(){e&&(e=!1,W("video-stopped"),l.removeAttribute("data-lazyload-video"))}function G(m){let g=t.getAttribute(`data-${m}-poster`);if(g&&g!==t.poster){let u=function(){a===F&&(t.poster=g,c())},F=document.createElement("img");F.addEventListener("load",u),F.addEventListener("error",u),F.src=g,a=F}else c()}function R(m){if(b=m,t.src){let[g]=Cd(t,m);g&&g!==t.src&&(V&&(t.pause(),V=!1),I(),e||W("video-stopped"),t.src=g)}G(m)}function W(m){l.classList.remove("video-stopped","video-paused","video-playing","video-loading","video-error"),l.classList.add(m)}function Z(){i===null&&(i=document.createElement("div"),i.className="Lazyload__spinner Theme-Lazyload-Spinner",l.appendChild(i))}function o(){return i!==null?(i.remove(),i=null,!0):!1}function U(){n===null&&(n=document.createElement("div"),n.className="video-error-container",n.innerHTML='<div class="video-error-block"><svg><use xlink:href="#video-error-icon"/></svg><span>THERE WAS AN ERROR LOADING THIS VIDEO</span></div>',l.appendChild(n))}function I(){return n!==null?(n.remove(),n=null,!0):!1}function B(){if(t.readyState===0){if(i===null){Z(),W("video-loading");let[m,g]=Cd(t,b);if(Qs){let F=function(){t.removeEventListener("canplay",F),g!=="video/mp4"?setTimeout(()=>{t.play()},1e3):t.play()};t.addEventListener("canplay",F),t.src=m,t.load()}else t.autoplay=!0,t.src=m}}else t.play().catch()}function N(m){V||(m.preventDefault(),B(),l.removeEventListener("click",N))}G(d);let Y=t.controls;t.controls=!1,t.addEventListener("seeking",()=>{t.controls=!0}),t.addEventListener("error",m=>{o()&&(U(),W("video-error"))}),t.addEventListener("pause",()=>{W("video-paused"),V=!1,dl("Videos","pause",t.currentSrc)}),t.addEventListener("playing",()=>{I(),o(),W("video-playing"),id(t.pause.bind(t),t)(),V=!0,t.controls=Y,dl("Videos","play",t.currentSrc)}),t.addEventListener("ended",()=>{W("video-paused"),V=!1,dl("Videos","ended",t.currentSrc)}),l.addEventListener("click",N);let C=document.documentElement,h=l.closest("[class*='Layer--']");t.addEventListener("fullscreenchange",()=>{document.fullscreenElement===null?(mF(C),h.classList.remove("Levels--god")):(IF(C),h.classList.add("Levels--god"))}),rF(R)}function gb(l={}){if(l.body&&!l.iconUrl){let V=new DOMParser().parseFromString(xs,"image/svg+xml"),i=document.createElement("div");i.style.display="none",i.id="__PLYR_SVGICON_CONTAINER__",i.appendChild(V.childNodes[0]),l.body.appendChild(i)}let t=s("[data-videoplayer]"),d=pF();t.forEach(e=>{let V=e.querySelector("[data-videoplayer-media]");V&&Js(e,V,d)}),Fb()}Ka();xn();$i();Ae();ma();nn();xd();ib();Oe();Cn();Gb();Yn();Wb();Fa();Ra();sa();ga();db();mV();gb({body:document.body});pn();Pd();Pi();cb();Qn();Wn();lb();eb();oa();Wa();$a();en();Ba();nb();})();
/*! Bundled license information:

classnames/dedupe.js:
  (*!
    Copyright (c) 2018 Jed Watson.
    Licensed under the MIT License (MIT), see
    http://jedwatson.github.io/classnames
  *)

dompurify/dist/purify.js:
  (*! @license DOMPurify 2.3.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.6/LICENSE *)
*/
//# sourceMappingURL=story.270722.min.js.map
