(()=>{var bE=Object.create;var Io=Object.defineProperty,EE=Object.defineProperties,wE=Object.getOwnPropertyDescriptor,TE=Object.getOwnPropertyDescriptors,SE=Object.getOwnPropertyNames,Wc=Object.getOwnPropertySymbols,xE=Object.getPrototypeOf,Yc=Object.prototype.hasOwnProperty,IE=Object.prototype.propertyIsEnumerable;var Gc=(t,e,r)=>e in t?Io(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ee=(t,e)=>{for(var r in e||(e={}))Yc.call(e,r)&&Gc(t,r,e[r]);if(Wc)for(var r of Wc(e))IE.call(e,r)&&Gc(t,r,e[r]);return t},pe=(t,e)=>EE(t,TE(e));var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var LE=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of SE(e))!Yc.call(t,i)&&i!==r&&Io(t,i,{get:()=>e[i],enumerable:!(n=wE(e,i))||n.enumerable});return t};var J=(t,e,r)=>(r=t!=null?bE(xE(t)):{},LE(e||!t||!t.__esModule?Io(r,"default",{value:t,enumerable:!0}):r,t));var _t=(t,e,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(t,e)).next())});var Ge=m((RM,Kc)=>{var Vn=function(t){return t&&t.Math==Math&&t};Kc.exports=Vn(typeof globalThis=="object"&&globalThis)||Vn(typeof window=="object"&&window)||Vn(typeof self=="object"&&self)||Vn(typeof global=="object"&&global)||function(){return this}()||Function("return this")()});var Ye=m((_M,Xc)=>{Xc.exports=function(t){try{return!!t()}catch(e){return!0}}});var ut=m((NM,Jc)=>{var AE=Ye();Jc.exports=!AE(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var $n=m((DM,Zc)=>{var CE=Ye();Zc.exports=!CE(function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")})});var Gn=m((FM,Qc)=>{var ME=$n(),Wn=Function.prototype.call;Qc.exports=ME?Wn.bind(Wn):function(){return Wn.apply(Wn,arguments)}});var nu=m(ru=>{"use strict";var eu={}.propertyIsEnumerable,tu=Object.getOwnPropertyDescriptor,OE=tu&&!eu.call({1:2},1);ru.f=OE?function(e){var r=tu(this,e);return!!r&&r.enumerable}:eu});var Lo=m((qM,iu)=>{iu.exports=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}}});var Ne=m((jM,su)=>{var ou=$n(),au=Function.prototype,Ao=au.call,PE=ou&&au.bind.bind(Ao,Ao);su.exports=ou?PE:function(t){return function(){return Ao.apply(t,arguments)}}});var ar=m((zM,cu)=>{var lu=Ne(),kE=lu({}.toString),HE=lu("".slice);cu.exports=function(t){return HE(kE(t),8,-1)}});var du=m((UM,uu)=>{var RE=Ne(),_E=Ye(),NE=ar(),Co=Object,DE=RE("".split);uu.exports=_E(function(){return!Co("z").propertyIsEnumerable(0)})?function(t){return NE(t)=="String"?DE(t,""):Co(t)}:Co});var Mo=m((VM,fu)=>{fu.exports=function(t){return t==null}});var sr=m(($M,pu)=>{var FE=Mo(),BE=TypeError;pu.exports=function(t){if(FE(t))throw BE("Can't call method on "+t);return t}});var Nr=m((WM,mu)=>{var qE=du(),jE=sr();mu.exports=function(t){return qE(jE(t))}});var Po=m((GM,hu)=>{var Oo=typeof document=="object"&&document.all,zE=typeof Oo=="undefined"&&Oo!==void 0;hu.exports={all:Oo,IS_HTMLDDA:zE}});var Fe=m((YM,yu)=>{var gu=Po(),UE=gu.all;yu.exports=gu.IS_HTMLDDA?function(t){return typeof t=="function"||t===UE}:function(t){return typeof t=="function"}});var bt=m((KM,Eu)=>{var vu=Fe(),bu=Po(),VE=bu.all;Eu.exports=bu.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:vu(t)||t===VE}:function(t){return typeof t=="object"?t!==null:vu(t)}});var lr=m((XM,wu)=>{var ko=Ge(),$E=Fe(),WE=function(t){return $E(t)?t:void 0};wu.exports=function(t,e){return arguments.length<2?WE(ko[t]):ko[t]&&ko[t][e]}});var Su=m((JM,Tu)=>{var GE=Ne();Tu.exports=GE({}.isPrototypeOf)});var Ho=m((ZM,xu)=>{var YE=lr();xu.exports=YE("navigator","userAgent")||""});var Pu=m((QM,Ou)=>{var Mu=Ge(),Ro=Ho(),Iu=Mu.process,Lu=Mu.Deno,Au=Iu&&Iu.versions||Lu&&Lu.version,Cu=Au&&Au.v8,Ke,Yn;Cu&&(Ke=Cu.split("."),Yn=Ke[0]>0&&Ke[0]<4?1:+(Ke[0]+Ke[1]));!Yn&&Ro&&(Ke=Ro.match(/Edge\/(\d+)/),(!Ke||Ke[1]>=74)&&(Ke=Ro.match(/Chrome\/(\d+)/),Ke&&(Yn=+Ke[1])));Ou.exports=Yn});var _o=m((e2,Hu)=>{var ku=Pu(),KE=Ye();Hu.exports=!!Object.getOwnPropertySymbols&&!KE(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ku&&ku<41})});var No=m((t2,Ru)=>{var XE=_o();Ru.exports=XE&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Do=m((r2,_u)=>{var JE=lr(),ZE=Fe(),QE=Su(),e0=No(),t0=Object;_u.exports=e0?function(t){return typeof t=="symbol"}:function(t){var e=JE("Symbol");return ZE(e)&&QE(e.prototype,t0(t))}});var Du=m((n2,Nu)=>{var r0=String;Nu.exports=function(t){try{return r0(t)}catch(e){return"Object"}}});var Kn=m((i2,Fu)=>{var n0=Fe(),i0=Du(),o0=TypeError;Fu.exports=function(t){if(n0(t))return t;throw o0(i0(t)+" is not a function")}});var qu=m((o2,Bu)=>{var a0=Kn(),s0=Mo();Bu.exports=function(t,e){var r=t[e];return s0(r)?void 0:a0(r)}});var zu=m((a2,ju)=>{var Fo=Gn(),Bo=Fe(),qo=bt(),l0=TypeError;ju.exports=function(t,e){var r,n;if(e==="string"&&Bo(r=t.toString)&&!qo(n=Fo(r,t))||Bo(r=t.valueOf)&&!qo(n=Fo(r,t))||e!=="string"&&Bo(r=t.toString)&&!qo(n=Fo(r,t)))return n;throw l0("Can't convert object to primitive value")}});var Vu=m((s2,Uu)=>{Uu.exports=!1});var Xn=m((l2,Wu)=>{var $u=Ge(),c0=Object.defineProperty;Wu.exports=function(t,e){try{c0($u,t,{value:e,configurable:!0,writable:!0})}catch(r){$u[t]=e}return e}});var Jn=m((c2,Yu)=>{var u0=Ge(),d0=Xn(),Gu="__core-js_shared__",f0=u0[Gu]||d0(Gu,{});Yu.exports=f0});var jo=m((u2,Xu)=>{var p0=Vu(),Ku=Jn();(Xu.exports=function(t,e){return Ku[t]||(Ku[t]=e!==void 0?e:{})})("versions",[]).push({version:"3.27.1",mode:p0?"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 zo=m((d2,Ju)=>{var m0=sr(),h0=Object;Ju.exports=function(t){return h0(m0(t))}});var Et=m((f2,Zu)=>{var g0=Ne(),y0=zo(),v0=g0({}.hasOwnProperty);Zu.exports=Object.hasOwn||function(e,r){return v0(y0(e),r)}});var Uo=m((p2,Qu)=>{var b0=Ne(),E0=0,w0=Math.random(),T0=b0(1 .toString);Qu.exports=function(t){return"Symbol("+(t===void 0?"":t)+")_"+T0(++E0+w0,36)}});var wt=m((m2,id)=>{var S0=Ge(),x0=jo(),ed=Et(),I0=Uo(),td=_o(),nd=No(),cr=x0("wks"),Nt=S0.Symbol,rd=Nt&&Nt.for,L0=nd?Nt:Nt&&Nt.withoutSetter||I0;id.exports=function(t){if(!ed(cr,t)||!(td||typeof cr[t]=="string")){var e="Symbol."+t;td&&ed(Nt,t)?cr[t]=Nt[t]:nd&&rd?cr[t]=rd(e):cr[t]=L0(e)}return cr[t]}});var ld=m((h2,sd)=>{var A0=Gn(),od=bt(),ad=Do(),C0=qu(),M0=zu(),O0=wt(),P0=TypeError,k0=O0("toPrimitive");sd.exports=function(t,e){if(!od(t)||ad(t))return t;var r=C0(t,k0),n;if(r){if(e===void 0&&(e="default"),n=A0(r,t,e),!od(n)||ad(n))return n;throw P0("Can't convert object to primitive value")}return e===void 0&&(e="number"),M0(t,e)}});var Vo=m((g2,cd)=>{var H0=ld(),R0=Do();cd.exports=function(t){var e=H0(t,"string");return R0(e)?e:e+""}});var Wo=m((y2,dd)=>{var _0=Ge(),ud=bt(),$o=_0.document,N0=ud($o)&&ud($o.createElement);dd.exports=function(t){return N0?$o.createElement(t):{}}});var Go=m((v2,fd)=>{var D0=ut(),F0=Ye(),B0=Wo();fd.exports=!D0&&!F0(function(){return Object.defineProperty(B0("div"),"a",{get:function(){return 7}}).a!=7})});var Yo=m(md=>{var q0=ut(),j0=Gn(),z0=nu(),U0=Lo(),V0=Nr(),$0=Vo(),W0=Et(),G0=Go(),pd=Object.getOwnPropertyDescriptor;md.f=q0?pd:function(e,r){if(e=V0(e),r=$0(r),G0)try{return pd(e,r)}catch(n){}if(W0(e,r))return U0(!j0(z0.f,e,r),e[r])}});var Ko=m((E2,hd)=>{var Y0=ut(),K0=Ye();hd.exports=Y0&&K0(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})});var Dr=m((w2,gd)=>{var X0=bt(),J0=String,Z0=TypeError;gd.exports=function(t){if(X0(t))return t;throw Z0(J0(t)+" is not an object")}});var ur=m(vd=>{var Q0=ut(),ew=Go(),tw=Ko(),Zn=Dr(),yd=Vo(),rw=TypeError,Xo=Object.defineProperty,nw=Object.getOwnPropertyDescriptor,Jo="enumerable",Zo="configurable",Qo="writable";vd.f=Q0?tw?function(e,r,n){if(Zn(e),r=yd(r),Zn(n),typeof e=="function"&&r==="prototype"&&"value"in n&&Qo in n&&!n[Qo]){var i=nw(e,r);i&&i[Qo]&&(e[r]=n.value,n={configurable:Zo in n?n[Zo]:i[Zo],enumerable:Jo in n?n[Jo]:i[Jo],writable:!1})}return Xo(e,r,n)}:Xo:function(e,r,n){if(Zn(e),r=yd(r),Zn(n),ew)try{return Xo(e,r,n)}catch(i){}if("get"in n||"set"in n)throw rw("Accessors not supported");return"value"in n&&(e[r]=n.value),e}});var ea=m((S2,bd)=>{var iw=ut(),ow=ur(),aw=Lo();bd.exports=iw?function(t,e,r){return ow.f(t,e,aw(1,r))}:function(t,e,r){return t[e]=r,t}});var Td=m((x2,wd)=>{var ta=ut(),sw=Et(),Ed=Function.prototype,lw=ta&&Object.getOwnPropertyDescriptor,ra=sw(Ed,"name"),cw=ra&&function(){}.name==="something",uw=ra&&(!ta||ta&&lw(Ed,"name").configurable);wd.exports={EXISTS:ra,PROPER:cw,CONFIGURABLE:uw}});var ia=m((I2,Sd)=>{var dw=Ne(),fw=Fe(),na=Jn(),pw=dw(Function.toString);fw(na.inspectSource)||(na.inspectSource=function(t){return pw(t)});Sd.exports=na.inspectSource});var Ld=m((L2,Id)=>{var mw=Ge(),hw=Fe(),xd=mw.WeakMap;Id.exports=hw(xd)&&/native code/.test(String(xd))});var oa=m((A2,Cd)=>{var gw=jo(),yw=Uo(),Ad=gw("keys");Cd.exports=function(t){return Ad[t]||(Ad[t]=yw(t))}});var Qn=m((C2,Md)=>{Md.exports={}});var Hd=m((M2,kd)=>{var vw=Ld(),Pd=Ge(),bw=bt(),Ew=ea(),aa=Et(),sa=Jn(),ww=oa(),Tw=Qn(),Od="Object already initialized",la=Pd.TypeError,Sw=Pd.WeakMap,ei,Fr,ti,xw=function(t){return ti(t)?Fr(t):ei(t,{})},Iw=function(t){return function(e){var r;if(!bw(e)||(r=Fr(e)).type!==t)throw la("Incompatible receiver, "+t+" required");return r}};vw||sa.state?(Xe=sa.state||(sa.state=new Sw),Xe.get=Xe.get,Xe.has=Xe.has,Xe.set=Xe.set,ei=function(t,e){if(Xe.has(t))throw la(Od);return e.facade=t,Xe.set(t,e),e},Fr=function(t){return Xe.get(t)||{}},ti=function(t){return Xe.has(t)}):(Dt=ww("state"),Tw[Dt]=!0,ei=function(t,e){if(aa(t,Dt))throw la(Od);return e.facade=t,Ew(t,Dt,e),e},Fr=function(t){return aa(t,Dt)?t[Dt]:{}},ti=function(t){return aa(t,Dt)});var Xe,Dt;kd.exports={set:ei,get:Fr,has:ti,enforce:xw,getterFor:Iw}});var Nd=m((O2,_d)=>{var Lw=Ye(),Aw=Fe(),ri=Et(),ca=ut(),Cw=Td().CONFIGURABLE,Mw=ia(),Rd=Hd(),Ow=Rd.enforce,Pw=Rd.get,ni=Object.defineProperty,kw=ca&&!Lw(function(){return ni(function(){},"length",{value:8}).length!==8}),Hw=String(String).split("String"),Rw=_d.exports=function(t,e,r){String(e).slice(0,7)==="Symbol("&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!ri(t,"name")||Cw&&t.name!==e)&&(ca?ni(t,"name",{value:e,configurable:!0}):t.name=e),kw&&r&&ri(r,"arity")&&t.length!==r.arity&&ni(t,"length",{value:r.arity});try{r&&ri(r,"constructor")&&r.constructor?ca&&ni(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var n=Ow(t);return ri(n,"source")||(n.source=Hw.join(typeof e=="string"?e:"")),t};Function.prototype.toString=Rw(function(){return Aw(this)&&Pw(this).source||Mw(this)},"toString")});var Fd=m((P2,Dd)=>{var _w=Fe(),Nw=ur(),Dw=Nd(),Fw=Xn();Dd.exports=function(t,e,r,n){n||(n={});var i=n.enumerable,o=n.name!==void 0?n.name:e;if(_w(r)&&Dw(r,o,n),n.global)i?t[e]=r:Fw(e,r);else{try{n.unsafe?t[e]&&(i=!0):delete t[e]}catch(a){}i?t[e]=r:Nw.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t}});var qd=m((k2,Bd)=>{var Bw=Math.ceil,qw=Math.floor;Bd.exports=Math.trunc||function(e){var r=+e;return(r>0?qw:Bw)(r)}});var ii=m((H2,jd)=>{var jw=qd();jd.exports=function(t){var e=+t;return e!==e||e===0?0:jw(e)}});var Ud=m((R2,zd)=>{var zw=ii(),Uw=Math.max,Vw=Math.min;zd.exports=function(t,e){var r=zw(t);return r<0?Uw(r+e,0):Vw(r,e)}});var ua=m((_2,Vd)=>{var $w=ii(),Ww=Math.min;Vd.exports=function(t){return t>0?Ww($w(t),9007199254740991):0}});var oi=m((N2,$d)=>{var Gw=ua();$d.exports=function(t){return Gw(t.length)}});var da=m((D2,Gd)=>{var Yw=Nr(),Kw=Ud(),Xw=oi(),Wd=function(t){return function(e,r,n){var i=Yw(e),o=Xw(i),a=Kw(n,o),s;if(t&&r!=r){for(;o>a;)if(s=i[a++],s!=s)return!0}else for(;o>a;a++)if((t||a in i)&&i[a]===r)return t||a||0;return!t&&-1}};Gd.exports={includes:Wd(!0),indexOf:Wd(!1)}});var pa=m((F2,Kd)=>{var Jw=Ne(),fa=Et(),Zw=Nr(),Qw=da().indexOf,eT=Qn(),Yd=Jw([].push);Kd.exports=function(t,e){var r=Zw(t),n=0,i=[],o;for(o in r)!fa(eT,o)&&fa(r,o)&&Yd(i,o);for(;e.length>n;)fa(r,o=e[n++])&&(~Qw(i,o)||Yd(i,o));return i}});var ai=m((B2,Xd)=>{Xd.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Zd=m(Jd=>{var tT=pa(),rT=ai(),nT=rT.concat("length","prototype");Jd.f=Object.getOwnPropertyNames||function(e){return tT(e,nT)}});var ef=m(Qd=>{Qd.f=Object.getOwnPropertySymbols});var rf=m((z2,tf)=>{var iT=lr(),oT=Ne(),aT=Zd(),sT=ef(),lT=Dr(),cT=oT([].concat);tf.exports=iT("Reflect","ownKeys")||function(e){var r=aT.f(lT(e)),n=sT.f;return n?cT(r,n(e)):r}});var af=m((U2,of)=>{var nf=Et(),uT=rf(),dT=Yo(),fT=ur();of.exports=function(t,e,r){for(var n=uT(e),i=fT.f,o=dT.f,a=0;a<n.length;a++){var s=n[a];!nf(t,s)&&!(r&&nf(r,s))&&i(t,s,o(e,s))}}});var lf=m((V2,sf)=>{var pT=Ye(),mT=Fe(),hT=/#|\.prototype\./,Br=function(t,e){var r=yT[gT(t)];return r==bT?!0:r==vT?!1:mT(e)?pT(e):!!e},gT=Br.normalize=function(t){return String(t).replace(hT,".").toLowerCase()},yT=Br.data={},vT=Br.NATIVE="N",bT=Br.POLYFILL="P";sf.exports=Br});var qr=m(($2,cf)=>{var ma=Ge(),ET=Yo().f,wT=ea(),TT=Fd(),ST=Xn(),xT=af(),IT=lf();cf.exports=function(t,e){var r=t.target,n=t.global,i=t.stat,o,a,s,l,c,u;if(n?a=ma:i?a=ma[r]||ST(r,{}):a=(ma[r]||{}).prototype,a)for(s in e){if(c=e[s],t.dontCallGetSet?(u=ET(a,s),l=u&&u.value):l=a[s],o=IT(n?s:r+(i?".":"#")+s,t.forced),!o&&l!==void 0){if(typeof c==typeof l)continue;xT(c,l)}(t.sham||l&&l.sham)&&wT(c,"sham",!0),TT(a,s,c,t)}}});var ha=m((W2,uf)=>{var LT=ar();uf.exports=Array.isArray||function(e){return LT(e)=="Array"}});var ff=m((G2,df)=>{var AT=TypeError,CT=9007199254740991;df.exports=function(t){if(t>CT)throw AT("Maximum allowed index exceeded");return t}});var mf=m((Y2,pf)=>{var MT=ar(),OT=Ne();pf.exports=function(t){if(MT(t)==="Function")return OT(t)}});var yf=m((K2,gf)=>{var hf=mf(),PT=Kn(),kT=$n(),HT=hf(hf.bind);gf.exports=function(t,e){return PT(t),e===void 0?t:kT?HT(t,e):function(){return t.apply(e,arguments)}}});var Ef=m((X2,bf)=>{"use strict";var RT=ha(),_T=oi(),NT=ff(),DT=yf(),vf=function(t,e,r,n,i,o,a,s){for(var l=i,c=0,u=a?DT(a,s):!1,d,f;c<n;)c in r&&(d=u?u(r[c],c,e):r[c],o>0&&RT(d)?(f=_T(d),l=vf(t,e,d,f,l,o-1)-1):(NT(l+1),t[l]=d),l++),c++;return l};bf.exports=vf});var Sf=m((J2,Tf)=>{var FT=wt(),BT=FT("toStringTag"),wf={};wf[BT]="z";Tf.exports=String(wf)==="[object z]"});var ga=m((Z2,xf)=>{var qT=Sf(),jT=Fe(),si=ar(),zT=wt(),UT=zT("toStringTag"),VT=Object,$T=si(function(){return arguments}())=="Arguments",WT=function(t,e){try{return t[e]}catch(r){}};xf.exports=qT?si:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=WT(e=VT(t),UT))=="string"?r:$T?si(e):(n=si(e))=="Object"&&jT(e.callee)?"Arguments":n}});var Of=m((Q2,Mf)=>{var GT=Ne(),KT=Ye(),If=Fe(),XT=ga(),JT=lr(),ZT=ia(),Lf=function(){},QT=[],Af=JT("Reflect","construct"),ya=/^\s*(?:class|function)\b/,e1=GT(ya.exec),t1=!ya.exec(Lf),jr=function(e){if(!If(e))return!1;try{return Af(Lf,QT,e),!0}catch(r){return!1}},Cf=function(e){if(!If(e))return!1;switch(XT(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return t1||!!e1(ya,ZT(e))}catch(r){return!0}};Cf.sham=!0;Mf.exports=!Af||KT(function(){var t;return jr(jr.call)||!jr(Object)||!jr(function(){t=!0})||t})?Cf:jr});var Rf=m((eO,Hf)=>{var Pf=ha(),r1=Of(),n1=bt(),i1=wt(),o1=i1("species"),kf=Array;Hf.exports=function(t){var e;return Pf(t)&&(e=t.constructor,r1(e)&&(e===kf||Pf(e.prototype))?e=void 0:n1(e)&&(e=e[o1],e===null&&(e=void 0))),e===void 0?kf:e}});var Nf=m((tO,_f)=>{var a1=Rf();_f.exports=function(t,e){return new(a1(t))(e===0?0:e)}});var Df=m(()=>{"use strict";var s1=qr(),l1=Ef(),c1=Kn(),u1=zo(),d1=oi(),f1=Nf();s1({target:"Array",proto:!0},{flatMap:function(e){var r=u1(this),n=d1(r),i;return c1(e),i=f1(r,0),i.length=l1(i,r,r,n,0,1,e,arguments.length>1?arguments[1]:void 0),i}})});var Bf=m((iO,Ff)=>{var p1=pa(),m1=ai();Ff.exports=Object.keys||function(e){return p1(e,m1)}});var jf=m(qf=>{var h1=ut(),g1=Ko(),y1=ur(),v1=Dr(),b1=Nr(),E1=Bf();qf.f=h1&&!g1?Object.defineProperties:function(e,r){v1(e);for(var n=b1(r),i=E1(r),o=i.length,a=0,s;o>a;)y1.f(e,s=i[a++],n[s]);return e}});var Uf=m((aO,zf)=>{var w1=lr();zf.exports=w1("document","documentElement")});var Jf=m((sO,Xf)=>{var T1=Dr(),S1=jf(),Vf=ai(),x1=Qn(),I1=Uf(),L1=Wo(),A1=oa(),$f=">",Wf="<",ba="prototype",Ea="script",Yf=A1("IE_PROTO"),va=function(){},Kf=function(t){return Wf+Ea+$f+t+Wf+"/"+Ea+$f},Gf=function(t){t.write(Kf("")),t.close();var e=t.parentWindow.Object;return t=null,e},C1=function(){var t=L1("iframe"),e="java"+Ea+":",r;return t.style.display="none",I1.appendChild(t),t.src=String(e),r=t.contentWindow.document,r.open(),r.write(Kf("document.F=Object")),r.close(),r.F},li,ci=function(){try{li=new ActiveXObject("htmlfile")}catch(e){}ci=typeof document!="undefined"?document.domain&&li?Gf(li):C1():Gf(li);for(var t=Vf.length;t--;)delete ci[ba][Vf[t]];return ci()};x1[Yf]=!0;Xf.exports=Object.create||function(e,r){var n;return e!==null?(va[ba]=T1(e),n=new va,va[ba]=null,n[Yf]=e):n=ci(),r===void 0?n:S1.f(n,r)}});var Sa=m((lO,Zf)=>{var M1=wt(),O1=Jf(),P1=ur().f,wa=M1("unscopables"),Ta=Array.prototype;Ta[wa]==null&&P1(Ta,wa,{configurable:!0,value:O1(null)});Zf.exports=function(t){Ta[wa][t]=!0}});var Qf=m(()=>{var k1=Sa();k1("flatMap")});var zr=m((dO,ep)=>{var H1=Ge(),R1=Ne();ep.exports=function(t,e){return R1(H1[t].prototype[e])}});var rp=m((fO,tp)=>{Df();Qf();var _1=zr();tp.exports=_1("Array","flatMap")});var ip=m((pO,np)=>{var N1=rp();np.exports=N1});var ap=m((mO,op)=>{var D1=ip();op.exports=D1});var sp=m(()=>{"use strict";var F1=qr(),B1=da().includes,q1=Ye(),j1=Sa(),z1=q1(function(){return!Array(1).includes()});F1({target:"Array",proto:!0,forced:z1},{includes:function(e){return B1(this,e,arguments.length>1?arguments[1]:void 0)}});j1("includes")});var cp=m((yO,lp)=>{sp();var U1=zr();lp.exports=U1("Array","includes")});var dp=m((vO,up)=>{var V1=cp();up.exports=V1});var pp=m((bO,fp)=>{var $1=dp();fp.exports=$1});var hp=m((EO,mp)=>{var W1=bt(),G1=ar(),Y1=wt(),K1=Y1("match");mp.exports=function(t){var e;return W1(t)&&((e=t[K1])!==void 0?!!e:G1(t)=="RegExp")}});var yp=m((wO,gp)=>{var X1=hp(),J1=TypeError;gp.exports=function(t){if(X1(t))throw J1("The method doesn't accept regular expressions");return t}});var ui=m((TO,vp)=>{var Z1=ga(),Q1=String;vp.exports=function(t){if(Z1(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Q1(t)}});var Ep=m((SO,bp)=>{var eS=wt(),tS=eS("match");bp.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[tS]=!1,"/./"[t](e)}catch(n){}}return!1}});var Tp=m(()=>{"use strict";var rS=qr(),nS=Ne(),iS=yp(),oS=sr(),wp=ui(),aS=Ep(),sS=nS("".indexOf);rS({target:"String",proto:!0,forced:!aS("includes")},{includes:function(e){return!!~sS(wp(oS(this)),wp(iS(e)),arguments.length>1?arguments[1]:void 0)}})});var xp=m((LO,Sp)=>{Tp();var lS=zr();Sp.exports=lS("String","includes")});var Lp=m((AO,Ip)=>{var cS=xp();Ip.exports=cS});var Cp=m((CO,Ap)=>{var uS=Lp();Ap.exports=uS});var Op=m((MO,Mp)=>{"use strict";var dS=ii(),fS=ui(),pS=sr(),mS=RangeError;Mp.exports=function(e){var r=fS(pS(this)),n="",i=dS(e);if(i<0||i==1/0)throw mS("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(r+=r))i&1&&(n+=r);return n}});var _p=m((OO,Rp)=>{var Hp=Ne(),hS=ua(),Pp=ui(),gS=Op(),yS=sr(),vS=Hp(gS),bS=Hp("".slice),ES=Math.ceil,kp=function(t){return function(e,r,n){var i=Pp(yS(e)),o=hS(r),a=i.length,s=n===void 0?" ":Pp(n),l,c;return o<=a||s==""?i:(l=o-a,c=vS(s,ES(l/s.length)),c.length>l&&(c=bS(c,0,l)),t?i+c:c+i)}};Rp.exports={start:kp(!1),end:kp(!0)}});var Dp=m((PO,Np)=>{var wS=Ho();Np.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(wS)});var Fp=m(()=>{"use strict";var TS=qr(),SS=_p().start,xS=Dp();TS({target:"String",proto:!0,forced:xS},{padStart:function(e){return SS(this,e,arguments.length>1?arguments[1]:void 0)}})});var qp=m((RO,Bp)=>{Fp();var IS=zr();Bp.exports=IS("String","padStart")});var zp=m((_O,jp)=>{var LS=qp();jp.exports=LS});var Vp=m((NO,Up)=>{var AS=zp();Up.exports=AS});var Wp=m($p=>{(function(t){"use strict";if(t.fetch)return;var e={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(g){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(e.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=function(g){return g&&DataView.prototype.isPrototypeOf(g)},i=ArrayBuffer.isView||function(g){return g&&r.indexOf(Object.prototype.toString.call(g))>-1};function o(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 a(g){return typeof g!="string"&&(g=String(g)),g}function s(g){var h={next:function(){var O=g.shift();return{done:O===void 0,value:O}}};return e.iterable&&(h[Symbol.iterator]=function(){return h}),h}function l(g){this.map={},g instanceof l?g.forEach(function(h,O){this.append(O,h)},this):Array.isArray(g)?g.forEach(function(h){this.append(h[0],h[1])},this):g&&Object.getOwnPropertyNames(g).forEach(function(h){this.append(h,g[h])},this)}l.prototype.append=function(g,h){g=o(g),h=a(h);var O=this.map[g];this.map[g]=O?O+","+h:h},l.prototype.delete=function(g){delete this.map[o(g)]},l.prototype.get=function(g){return g=o(g),this.has(g)?this.map[g]:null},l.prototype.has=function(g){return this.map.hasOwnProperty(o(g))},l.prototype.set=function(g,h){this.map[o(g)]=a(h)},l.prototype.forEach=function(g,h){for(var O in this.map)this.map.hasOwnProperty(O)&&g.call(h,this.map[O],O,this)},l.prototype.keys=function(){var g=[];return this.forEach(function(h,O){g.push(O)}),s(g)},l.prototype.values=function(){var g=[];return this.forEach(function(h){g.push(h)}),s(g)},l.prototype.entries=function(){var g=[];return this.forEach(function(h,O){g.push([O,h])}),s(g)},e.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);function c(g){if(g.bodyUsed)return Promise.reject(new TypeError("Already read"));g.bodyUsed=!0}function u(g){return new Promise(function(h,O){g.onload=function(){h(g.result)},g.onerror=function(){O(g.error)}})}function d(g){var h=new FileReader,O=u(h);return h.readAsArrayBuffer(g),O}function f(g){var h=new FileReader,O=u(h);return h.readAsText(g),O}function y(g){for(var h=new Uint8Array(g),O=new Array(h.length),H=0;H<h.length;H++)O[H]=String.fromCharCode(h[H]);return O.join("")}function T(g){if(g.slice)return g.slice(0);var h=new Uint8Array(g.byteLength);return h.set(new Uint8Array(g)),h.buffer}function p(){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(e.blob&&Blob.prototype.isPrototypeOf(g))this._bodyBlob=g;else if(e.formData&&FormData.prototype.isPrototypeOf(g))this._bodyFormData=g;else if(e.searchParams&&URLSearchParams.prototype.isPrototypeOf(g))this._bodyText=g.toString();else if(e.arrayBuffer&&e.blob&&n(g))this._bodyArrayBuffer=T(g.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else if(e.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(g)||i(g)))this._bodyArrayBuffer=T(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):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(g)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.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(d)}),this.text=function(){var g=c(this);if(g)return g;if(this._bodyBlob)return f(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(y(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},e.formData&&(this.formData=function(){return this.text().then(R)}),this.json=function(){return this.text().then(JSON.parse)},this}var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function E(g){var h=g.toUpperCase();return v.indexOf(h)>-1?h:g}function I(g,h){h=h||{};var O=h.body;if(g instanceof I){if(g.bodyUsed)throw new TypeError("Already read");this.url=g.url,this.credentials=g.credentials,h.headers||(this.headers=new l(g.headers)),this.method=g.method,this.mode=g.mode,!O&&g._bodyInit!=null&&(O=g._bodyInit,g.bodyUsed=!0)}else this.url=String(g);if(this.credentials=h.credentials||this.credentials||"omit",(h.headers||!this.headers)&&(this.headers=new l(h.headers)),this.method=E(h.method||this.method||"GET"),this.mode=h.mode||this.mode||null,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&O)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(O)}I.prototype.clone=function(){return new I(this,{body:this._bodyInit})};function R(g){var h=new FormData;return g.trim().split("&").forEach(function(O){if(O){var H=O.split("="),_=H.shift().replace(/\+/g," "),A=H.join("=").replace(/\+/g," ");h.append(decodeURIComponent(_),decodeURIComponent(A))}}),h}function M(g){var h=new l,O=g.replace(/\r?\n[\t ]+/g," ");return O.split(/\r?\n/).forEach(function(H){var _=H.split(":"),A=_.shift().trim();if(A){var k=_.join(":").trim();h.append(A,k)}}),h}p.call(I.prototype);function S(g,h){h||(h={}),this.type="default",this.status=h.status===void 0?200:h.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in h?h.statusText:"OK",this.headers=new l(h.headers),this.url=h.url||"",this._initBody(g)}p.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},S.error=function(){var g=new S(null,{status:0,statusText:""});return g.type="error",g};var w=[301,302,303,307,308];S.redirect=function(g,h){if(w.indexOf(h)===-1)throw new RangeError("Invalid status code");return new S(null,{status:h,headers:{location:g}})},t.Headers=l,t.Request=I,t.Response=S,t.fetch=function(g,h){return new Promise(function(O,H){var _=new I(g,h),A=new XMLHttpRequest;A.onload=function(){var k={status:A.status,statusText:A.statusText,headers:M(A.getAllResponseHeaders()||"")};k.url="responseURL"in A?A.responseURL:k.headers.get("X-Request-URL");var Q="response"in A?A.response:A.responseText;O(new S(Q,k))},A.onerror=function(){H(new TypeError("Network request failed"))},A.ontimeout=function(){H(new TypeError("Network request failed"))},A.open(_.method,_.url,!0),_.credentials==="include"?A.withCredentials=!0:_.credentials==="omit"&&(A.withCredentials=!1),"responseType"in A&&e.blob&&(A.responseType="blob"),_.headers.forEach(function(k,Q){A.setRequestHeader(Q,k)}),A.send(typeof _._bodyInit=="undefined"?null:_._bodyInit)})},t.fetch.polyfill=!0})(typeof self!="undefined"?self:$p)});var Gp=m((FO,Ia)=>{function xa(){}xa.prototype={on:function(t,e,r){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:r}),this},once:function(t,e,r){var n=this;function i(){n.off(t,i),e.apply(r,arguments)}return i._=e,this.on(t,i,r)},emit:function(t){var e=[].slice.call(arguments,1),r=((this.e||(this.e={}))[t]||[]).slice(),n=0,i=r.length;for(n;n<i;n++)r[n].fn.apply(r[n].ctx,e);return this},off:function(t,e){var r=this.e||(this.e={}),n=r[t],i=[];if(n&&e)for(var o=0,a=n.length;o<a;o++)n[o].fn!==e&&n[o].fn._!==e&&i.push(n[o]);return i.length?r[t]=i:delete r[t],this}};Ia.exports=xa;Ia.exports.TinyEmitter=xa});var ce=m((em,ka)=>{(function(t){"use strict";var e=function(){},r=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(c){return setTimeout(c,16)};function n(){var c=this;c.reads=[],c.writes=[],c.raf=r.bind(t),e("initialized",c)}n.prototype={constructor:n,runTasks:function(c){e("run tasks");for(var u;u=c.shift();)u()},measure:function(c,u){e("measure");var d=u?c.bind(u):c;return this.reads.push(d),i(this),d},mutate:function(c,u){e("mutate");var d=u?c.bind(u):c;return this.writes.push(d),i(this),d},clear:function(c){return e("clear",c),a(this.reads,c)||a(this.writes,c)},extend:function(c){if(e("extend",c),typeof c!="object")throw new Error("expected object");var u=Object.create(this);return s(u,c),u.fastdom=this,u.initialize&&u.initialize(),u},catch:null};function i(c){c.scheduled||(c.scheduled=!0,c.raf(o.bind(null,c)),e("flush scheduled"))}function o(c){e("flush");var u=c.writes,d=c.reads,f;try{e("flushing reads",d.length),c.runTasks(d),e("flushing writes",u.length),c.runTasks(u)}catch(y){f=y}if(c.scheduled=!1,(d.length||u.length)&&i(c),f)if(e("task errored",f.message),c.catch)c.catch(f);else throw f}function a(c,u){var d=c.indexOf(u);return!!~d&&!!c.splice(d,1)}function s(c,u){for(var d in u)u.hasOwnProperty(d)&&(c[d]=u[d])}var l=t.fastdom=t.fastdom||new n;typeof ka=="object"&&(ka.exports=l)})(typeof window!="undefined"?window:em)});var tm=m((iP,fi)=>{(function(){"use strict";var t=function(){function e(){}e.prototype=Object.create(null);function r(u,d){for(var f=d.length,y=0;y<f;++y)l(u,d[y])}var n={}.hasOwnProperty;function i(u,d){u[d]=!0}function o(u,d){if(d.toString===Object.prototype.toString)for(var f in d)n.call(d,f)&&(u[f]=!!d[f]);else u[d.toString()]=!0}var a=/\s+/;function s(u,d){for(var f=d.split(a),y=f.length,T=0;T<y;++T)u[f[T]]=!0}function l(u,d){if(!!d){var f=typeof d;f==="string"?s(u,d):Array.isArray(d)?r(u,d):f==="object"?o(u,d):f==="number"&&i(u,d)}}function c(){for(var u=arguments.length,d=Array(u),f=0;f<u;f++)d[f]=arguments[f];var y=new e;r(y,d);var T=[];for(var p in y)y[p]&&T.push(p);return T.join(" ")}return c}();typeof fi!="undefined"&&fi.exports?(t.default=t,fi.exports=t):window.classNames=t})()});var nm=m((rm,pi)=>{(function(t){var e={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"]]},r="Unknown",n=Object.keys(e);function i(){var s=this;n.forEach(function(l){s[l]={name:r,version:[],versionString:r}})}function o(s,l,c){e[l].forEach(function(u){var d=u[0],f=u[1],y=c.match(d);y&&(s[l].name=f,y[2]?(s[l].versionString=y[2],s[l].version=[]):y[1]?(s[l].versionString=y[1].replace(/_/g,"."),s[l].version=a(y[1])):(s[l].versionString=r,s[l].version=[]))})}function a(s){return s.split(/[\._]/).map(function(l){return parseInt(l)})}i.prototype.sniff=function(s){var l=this,c=typeof window!="undefined",u=c?navigator.userAgent:"",d=(s||u).toLowerCase();return n.forEach(function(f){o(l,f,d)}),this},typeof pi!="undefined"&&pi.exports?pi.exports=i:(t.Sniffr=new i,t.Sniffr.sniff(navigator.userAgent))})(rm)});var Fa=m((LP,dm)=>{dm.exports=function(){var t=function(s){return typeof s=="function"},e=function(s){var l=Number(s);return isNaN(l)?0:l===0||!isFinite(l)?l:(l>0?1:-1)*Math.floor(Math.abs(l))},r=Math.pow(2,53)-1,n=function(s){var l=e(s);return Math.min(Math.max(l,0),r)},i=function(s){if(s!=null){if(["string","number","boolean","symbol"].indexOf(typeof s)>-1)return Symbol.iterator;if(typeof Symbol!="undefined"&&"iterator"in Symbol&&Symbol.iterator in s)return Symbol.iterator;if("@@iterator"in s)return"@@iterator"}},o=function(s,l){if(s!=null&&l!=null){var c=s[l];if(c==null)return;if(!t(c))throw new TypeError(c+" is not a function");return c}},a=function(s){var l=s.next(),c=Boolean(l.done);return c?!1:l};return function(l){"use strict";var c=this,u=arguments.length>1?arguments[1]:void 0,d;if(typeof u!="undefined"){if(!t(u))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(d=arguments[2])}var f,y,T=o(l,i(l));if(T!==void 0){f=t(c)?Object(new c):[];var p=T.call(l);if(p==null)throw new TypeError("Array.from requires an array-like or iterable object");y=0;for(var v,E;;){if(v=a(p),!v)return f.length=y,f;E=v.value,u?f[y]=u.call(d,E,y):f[y]=E,y++}}else{var I=Object(l);if(l==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");var R=n(I.length);f=t(c)?Object(new c(R)):new Array(R),y=0;for(var M;y<R;)M=I[y],u?f[y]=u.call(d,M,y):f[y]=M,y++;f.length=R}return f}}()});var mm=m((HP,pm)=>{var Wr,Gr;typeof document.hidden!="undefined"?(Wr="hidden",Gr="visibilitychange"):typeof document.mozHidden!="undefined"?(Wr="mozHidden",Gr="mozvisibilitychange"):typeof document.msHidden!="undefined"?(Wr="msHidden",Gr="msvisibilitychange"):typeof document.webkitHidden!="undefined"&&(Wr="webkitHidden",Gr="webkitvisibilitychange");pm.exports={hidden:Wr,visibilityChange:Gr}});var vm=m((Kr,za)=>{(function(t,e){typeof Kr=="object"&&typeof za=="object"?za.exports=e():typeof Kr=="object"?Kr.StateMachine=e():t.StateMachine=e()})(Kr,function(){return r={},t.m=e=[function(n,i,o){"use strict";n.exports=function(a,s){for(var l,c,u=1;u<arguments.length;u++)for(c in l=arguments[u])l.hasOwnProperty(c)&&(a[c]=l[c]);return a}},function(n,i,o){"use strict";var a=o(0);n.exports={build:function(s,l){for(var c,u=l.plugins,d=0,f=u.length;d<f;d++)(c=u[d]).methods&&a(s,c.methods),c.properties&&Object.defineProperties(s,c.properties)},hook:function(s,l,c){var u,d,f,y,T=s.config.plugins,p=[s.context];for(c&&(p=p.concat(c)),u=0,d=T.length;u<d;u++)y=T[u],(f=T[u][l])&&f.apply(y,p)}}},function(n,i,o){"use strict";function a(s){if(s.length===0)return s;var l,c,u=s.split(/[_-]/);if(u.length===1&&u[0][0].toLowerCase()===u[0][0])return s;for(c=u[0].toLowerCase(),l=1;l<u.length;l++)c=c+u[l].charAt(0).toUpperCase()+u[l].substring(1).toLowerCase();return c}a.prepended=function(s,l){return s+(l=a(l))[0].toUpperCase()+l.substring(1)},n.exports=a},function(n,i,o){"use strict";var a=o(0),s=o(2);function l(c,u){c=c||{},this.options=c,this.defaults=u.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,u.plugin)}a(l.prototype,{addState:function(c){this.map[c]||(this.states.push(c),this.addStateLifecycleNames(c),this.map[c]={})},addStateLifecycleNames:function(c){this.lifecycle.onEnter[c]=s.prepended("onEnter",c),this.lifecycle.onLeave[c]=s.prepended("onLeave",c),this.lifecycle.on[c]=s.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]=s.prepended("onBefore",c),this.lifecycle.onAfter[c]=s.prepended("onAfter",c),this.lifecycle.on[c]=s.prepended("on",c)},mapTransition:function(c){var u=c.name,d=c.from,f=c.to;return this.addState(d),typeof f!="function"&&this.addState(f),this.addTransition(u),this.map[d][u]=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(a({},this.defaults.init,{to:c,active:!0})):typeof c=="object"?this.mapTransition(a({},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,u){for(var d,f=0,y=(c=c||[]).length;f<y;f++)typeof(d=c[f])=="function"&&(c[f]=d=d()),d.configure&&d.configure(this);return c},configureTransitions:function(c){for(var u,d,f,y,T=this.defaults.wildcard,p=0;p<c.length;p++)for(d=c[p],f=Array.isArray(d.from)?d.from:[d.from||T],y=d.to||T,u=0;u<f.length;u++)this.mapTransition({name:d.name,from:f[u],to:y})},transitionFor:function(c,u){var d=this.defaults.wildcard;return this.map[c][u]||this.map[d][u]},transitionsFor:function(c){var u=this.defaults.wildcard;return Object.keys(this.map[c]).concat(Object.keys(this.map[u]))},allStates:function(){return this.states},allTransitions:function(){return this.transitions}}),n.exports=l},function(n,i,o){var a=o(0),s=o(6),l=o(1),c=[null,[]];function u(d,f){this.context=d,this.config=f,this.state=f.init.from,this.observers=[d]}a(u.prototype,{init:function(d){if(a(this.context,this.config.data.apply(this.context,d)),l.hook(this,"init"),this.config.init.active)return this.fire(this.config.init.name,[])},is:function(d){return Array.isArray(d)?0<=d.indexOf(this.state):this.state===d},isPending:function(){return this.pending},can:function(d){return!this.isPending()&&!!this.seek(d)},cannot:function(d){return!this.can(d)},allStates:function(){return this.config.allStates()},allTransitions:function(){return this.config.allTransitions()},transitions:function(){return this.config.transitionsFor(this.state)},seek:function(T,f){var y=this.config.defaults.wildcard,T=this.config.transitionFor(this.state,T),T=T&&T.to;return typeof T=="function"?T.apply(this.context,f):T===y?this.state:T},fire:function(d,f){return this.transit(d,this.state,this.seek(d,f),f)},transit:function(d,f,y,T){var p=this.config.lifecycle,v=this.config.options.observeUnchangedState||f!==y;return y?this.isPending()?this.context.onPendingTransition(d,f,y):(this.config.addState(y),this.beginTransit(),T.unshift({transition:d,from:f,to:y,fsm:this.context}),this.observeEvents([this.observersForEvent(p.onBefore.transition),this.observersForEvent(p.onBefore[d]),v?this.observersForEvent(p.onLeave.state):c,v?this.observersForEvent(p.onLeave[f]):c,this.observersForEvent(p.on.transition),v?["doTransit",[this]]:c,v?this.observersForEvent(p.onEnter.state):c,v?this.observersForEvent(p.onEnter[y]):c,v?this.observersForEvent(p.on[y]):c,this.observersForEvent(p.onAfter.transition),this.observersForEvent(p.onAfter[d]),this.observersForEvent(p.on[d])],T)):this.context.onInvalidTransition(d,f,y)},beginTransit:function(){this.pending=!0},endTransit:function(d){return this.pending=!1,d},failTransit:function(d){throw this.pending=!1,d},doTransit:function(d){this.state=d.to},observe:function(d){var f;d.length===2?((f={})[d[0]]=d[1],this.observers.push(f)):this.observers.push(d[0])},observersForEvent:function(d){for(var f,y=0,T=this.observers.length,p=[];y<T;y++)(f=this.observers[y])[d]&&p.push(f);return[d,p,!0]},observeEvents:function(d,f,y,T){if(d.length===0)return this.endTransit(T===void 0||T);var p=d[0][0],v=d[0][1],E=d[0][2];return(f[0].event=p)&&E&&p!==y&&l.hook(this,"lifecycle",f),v.length===0?(d.shift(),this.observeEvents(d,f,p,T)):(v=v.shift(),v=v[p].apply(v,f),v&&typeof v.then=="function"?v.then(this.observeEvents.bind(this,d,f,p)).catch(this.failTransit.bind(this)):v===!1?this.endTransit(!1):this.observeEvents(d,f,p,v))},onInvalidTransition:function(d,f,y){throw new s("transition is invalid in current state",d,f,y,this.state)},onPendingTransition:function(d,f,y){throw new s("transition is invalid while previous transition is still in progress",d,f,y,this.state)}}),n.exports=u},function(n,i,o){"use strict";var a=o(0),s=o(2),l=o(1),c=o(3),u=o(4),d={is:function(v){return this._fsm.is(v)},can:function(v){return this._fsm.can(v)},cannot:function(v){return this._fsm.cannot(v)},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(v,E,I){return this._fsm.onInvalidTransition(v,E,I)},onPendingTransition:function(v,E,I){return this._fsm.onPendingTransition(v,E,I)}},f={state:{configurable:!1,enumerable:!0,get:function(){return this._fsm.state},set:function(v){throw Error("use transitions to change state")}}};function y(v){return T(this||{},v)}function T(v,E){return p(v,new c(E,y)),v._fsm(),v}function p(v,E){if(typeof v!="object"||Array.isArray(v))throw Error("StateMachine can only be applied to objects");l.build(v,E),Object.defineProperties(v,f),a(v,d),a(v,E.methods),E.allTransitions().forEach(function(I){v[s(I)]=function(){return this._fsm.fire(I,[].slice.call(arguments))}}),v._fsm=function(){this._fsm=new u(this,E),this._fsm.init(arguments)}}y.version="3.0.1",y.factory=function(){var v,E=typeof arguments[0]=="function"?(v=arguments[0],arguments[1]||{}):(v=function(){this._fsm.apply(this,arguments)},arguments[0]||{}),E=new c(E,y);return p(v.prototype,E),v.prototype._fsm.config=E,v},y.apply=T,y.defaults={wildcard:"*",init:{name:"init",from:"none"}},n.exports=y},function(n,i,o){"use strict";n.exports=function(a,s,l,c,u){this.message=a,this.transition=s,this.from=l,this.to=c,this.current=u}}],t.c=r,t.i=function(n){return n},t.d=function(n,i,o){t.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:o})},t.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},t.p="",t(t.s=5);function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var e,r})});var _m=m((os,as)=>{(function(t,e){typeof os=="object"&&typeof as!="undefined"?as.exports=e():(t=t||self,t.DOMPurify=e())})(os,function(){"use strict";function t(B){if(Array.isArray(B)){for(var D=0,q=Array(B.length);D<B.length;D++)q[D]=B[D];return q}else return Array.from(B)}var e=Object.hasOwnProperty,r=Object.setPrototypeOf,n=Object.isFrozen,i=Object.getPrototypeOf,o=Object.getOwnPropertyDescriptor,a=Object.freeze,s=Object.seal,l=Object.create,c=typeof Reflect!="undefined"&&Reflect,u=c.apply,d=c.construct;u||(u=function(D,q,X){return D.apply(q,X)}),a||(a=function(D){return D}),s||(s=function(D){return D}),d||(d=function(D,q){return new(Function.prototype.bind.apply(D,[null].concat(t(q))))});var f=w(Array.prototype.forEach),y=w(Array.prototype.pop),T=w(Array.prototype.push),p=w(String.prototype.toLowerCase),v=w(String.prototype.match),E=w(String.prototype.replace),I=w(String.prototype.indexOf),R=w(String.prototype.trim),M=w(RegExp.prototype.test),S=g(TypeError);function w(B){return function(D){for(var q=arguments.length,X=Array(q>1?q-1:0),se=1;se<q;se++)X[se-1]=arguments[se];return u(B,D,X)}}function g(B){return function(){for(var D=arguments.length,q=Array(D),X=0;X<D;X++)q[X]=arguments[X];return d(B,q)}}function h(B,D){r&&r(B,null);for(var q=D.length;q--;){var X=D[q];if(typeof X=="string"){var se=p(X);se!==X&&(n(D)||(D[q]=se),X=se)}B[X]=!0}return B}function O(B){var D=l(null),q=void 0;for(q in B)u(e,B,[q])&&(D[q]=B[q]);return D}function H(B,D){for(;B!==null;){var q=o(B,D);if(q){if(q.get)return w(q.get);if(typeof q.value=="function")return w(q.value)}B=i(B)}function X(se){return console.warn("fallback value for",se),null}return X}var _=a(["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"]),A=a(["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"]),k=a(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Q=a(["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"]),K=a(["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"]),L=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),C=a(["#text"]),N=a(["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"]),G=a(["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"]),W=a(["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"]),ie=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ye=s(/\{\{[\s\S]*|[\s\S]*\}\}/gm),he=s(/<%[\s\S]*|[\s\S]*%>/gm),Te=s(/^data-[\-\w.\u00B7-\uFFFF]/),ve=s(/^aria-[\-\w]+$/),Pt=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),at=s(/^(?:\w+script|data):/i),$e=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Hn=s(/^html$/i),j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B};function Z(B){if(Array.isArray(B)){for(var D=0,q=Array(B.length);D<B.length;D++)q[D]=B[D];return q}else return Array.from(B)}var ae=function(){return typeof window=="undefined"?null:window},je=function(D,q){if((typeof D=="undefined"?"undefined":j(D))!=="object"||typeof D.createPolicy!="function")return null;var X=null,se="data-tt-policy-suffix";q.currentScript&&q.currentScript.hasAttribute(se)&&(X=q.currentScript.getAttribute(se));var He="dompurify"+(X?"#"+X:"");try{return D.createPolicy(He,{createHTML:function(We){return We}})}catch(Le){return console.warn("TrustedTypes policy "+He+" could not be created."),null}};function rt(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ae(),D=function(b){return rt(b)};if(D.version="2.3.6",D.removed=[],!B||!B.document||B.document.nodeType!==9)return D.isSupported=!1,D;var q=B.document,X=B.document,se=B.DocumentFragment,He=B.HTMLTemplateElement,Le=B.Node,We=B.Element,Qt=B.NodeFilter,kt=B.NamedNodeMap,Rn=kt===void 0?B.NamedNodeMap||B.MozNamedAttrMap:kt,_n=B.HTMLFormElement,Nn=B.DOMParser,de=B.trustedTypes,Re=We.prototype,gt=H(Re,"cloneNode"),st=H(Re,"nextSibling"),lo=H(Re,"childNodes"),yt=H(Re,"parentNode");if(typeof He=="function"){var kr=X.createElement("template");kr.content&&kr.content.ownerDocument&&(X=kr.content.ownerDocument)}var ze=je(de,q),Dn=ze?ze.createHTML(""):"",Fn=X,co=Fn.implementation,oE=Fn.createNodeIterator,aE=Fn.createDocumentFragment,sE=Fn.getElementsByTagName,lE=q.importNode,xc={};try{xc=O(X).documentMode?X.documentMode:{}}catch(U){}var nt={};D.isSupported=typeof yt=="function"&&co&&typeof co.createHTMLDocument!="undefined"&&xc!==9;var uo=ye,fo=he,cE=Te,uE=ve,dE=at,Ic=$e,po=Pt,be=null,Lc=h({},[].concat(Z(_),Z(A),Z(k),Z(K),Z(C))),Se=null,Ac=h({},[].concat(Z(N),Z(G),Z(W),Z(ie))),fe=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}})),Hr=null,mo=null,Cc=!0,ho=!0,Mc=!1,er=!1,Ht=!1,go=!1,yo=!1,tr=!1,Bn=!1,qn=!1,Oc=!0,vo=!0,Rr=!1,rr={},nr=null,Pc=h({},["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"]),kc=null,Hc=h({},["audio","video","img","source","image","track"]),bo=null,Rc=h({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Eo="http://www.w3.org/1998/Math/MathML",wo="http://www.w3.org/2000/svg",vt="http://www.w3.org/1999/xhtml",jn=vt,To=!1,ir=void 0,fE=["application/xhtml+xml","text/html"],pE="text/html",Rt=void 0,or=null,mE=X.createElement("form"),_c=function(b){return b instanceof RegExp||b instanceof Function},So=function(b){or&&or===b||((!b||(typeof b=="undefined"?"undefined":j(b))!=="object")&&(b={}),b=O(b),be="ALLOWED_TAGS"in b?h({},b.ALLOWED_TAGS):Lc,Se="ALLOWED_ATTR"in b?h({},b.ALLOWED_ATTR):Ac,bo="ADD_URI_SAFE_ATTR"in b?h(O(Rc),b.ADD_URI_SAFE_ATTR):Rc,kc="ADD_DATA_URI_TAGS"in b?h(O(Hc),b.ADD_DATA_URI_TAGS):Hc,nr="FORBID_CONTENTS"in b?h({},b.FORBID_CONTENTS):Pc,Hr="FORBID_TAGS"in b?h({},b.FORBID_TAGS):{},mo="FORBID_ATTR"in b?h({},b.FORBID_ATTR):{},rr="USE_PROFILES"in b?b.USE_PROFILES:!1,Cc=b.ALLOW_ARIA_ATTR!==!1,ho=b.ALLOW_DATA_ATTR!==!1,Mc=b.ALLOW_UNKNOWN_PROTOCOLS||!1,er=b.SAFE_FOR_TEMPLATES||!1,Ht=b.WHOLE_DOCUMENT||!1,tr=b.RETURN_DOM||!1,Bn=b.RETURN_DOM_FRAGMENT||!1,qn=b.RETURN_TRUSTED_TYPE||!1,yo=b.FORCE_BODY||!1,Oc=b.SANITIZE_DOM!==!1,vo=b.KEEP_CONTENT!==!1,Rr=b.IN_PLACE||!1,po=b.ALLOWED_URI_REGEXP||po,jn=b.NAMESPACE||vt,b.CUSTOM_ELEMENT_HANDLING&&_c(b.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(fe.tagNameCheck=b.CUSTOM_ELEMENT_HANDLING.tagNameCheck),b.CUSTOM_ELEMENT_HANDLING&&_c(b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(fe.attributeNameCheck=b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),b.CUSTOM_ELEMENT_HANDLING&&typeof b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(fe.allowCustomizedBuiltInElements=b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ir=fE.indexOf(b.PARSER_MEDIA_TYPE)===-1?ir=pE:ir=b.PARSER_MEDIA_TYPE,Rt=ir==="application/xhtml+xml"?function(P){return P}:p,er&&(ho=!1),Bn&&(tr=!0),rr&&(be=h({},[].concat(Z(C))),Se=[],rr.html===!0&&(h(be,_),h(Se,N)),rr.svg===!0&&(h(be,A),h(Se,G),h(Se,ie)),rr.svgFilters===!0&&(h(be,k),h(Se,G),h(Se,ie)),rr.mathMl===!0&&(h(be,K),h(Se,W),h(Se,ie))),b.ADD_TAGS&&(be===Lc&&(be=O(be)),h(be,b.ADD_TAGS)),b.ADD_ATTR&&(Se===Ac&&(Se=O(Se)),h(Se,b.ADD_ATTR)),b.ADD_URI_SAFE_ATTR&&h(bo,b.ADD_URI_SAFE_ATTR),b.FORBID_CONTENTS&&(nr===Pc&&(nr=O(nr)),h(nr,b.FORBID_CONTENTS)),vo&&(be["#text"]=!0),Ht&&h(be,["html","head","body"]),be.table&&(h(be,["tbody"]),delete Hr.tbody),a&&a(b),or=b)},Nc=h({},["mi","mo","mn","ms","mtext"]),Dc=h({},["foreignobject","desc","title","annotation-xml"]),zn=h({},A);h(zn,k),h(zn,Q);var xo=h({},K);h(xo,L);var hE=function(b){var P=yt(b);(!P||!P.tagName)&&(P={namespaceURI:vt,tagName:"template"});var z=p(b.tagName),ne=p(P.tagName);if(b.namespaceURI===wo)return P.namespaceURI===vt?z==="svg":P.namespaceURI===Eo?z==="svg"&&(ne==="annotation-xml"||Nc[ne]):Boolean(zn[z]);if(b.namespaceURI===Eo)return P.namespaceURI===vt?z==="math":P.namespaceURI===wo?z==="math"&&Dc[ne]:Boolean(xo[z]);if(b.namespaceURI===vt){if(P.namespaceURI===wo&&!Dc[ne]||P.namespaceURI===Eo&&!Nc[ne])return!1;var Ae=h({},["title","style","font","a","script"]);return!xo[z]&&(Ae[z]||!zn[z])}return!1},lt=function(b){T(D.removed,{element:b});try{b.parentNode.removeChild(b)}catch(P){try{b.outerHTML=Dn}catch(z){b.remove()}}},Fc=function(b,P){try{T(D.removed,{attribute:P.getAttributeNode(b),from:P})}catch(z){T(D.removed,{attribute:null,from:P})}if(P.removeAttribute(b),b==="is"&&!Se[b])if(tr||Bn)try{lt(P)}catch(z){}else try{P.setAttribute(b,"")}catch(z){}},Bc=function(b){var P=void 0,z=void 0;if(yo)b="<remove></remove>"+b;else{var ne=v(b,/^[\r\n\t ]+/);z=ne&&ne[0]}ir==="application/xhtml+xml"&&(b='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+b+"</body></html>");var Ae=ze?ze.createHTML(b):b;if(jn===vt)try{P=new Nn().parseFromString(Ae,ir)}catch(xe){}if(!P||!P.documentElement){P=co.createDocument(jn,"template",null);try{P.documentElement.innerHTML=To?"":Ae}catch(xe){}}var Ce=P.body||P.documentElement;return b&&z&&Ce.insertBefore(X.createTextNode(z),Ce.childNodes[0]||null),jn===vt?sE.call(P,Ht?"html":"body")[0]:Ht?P.documentElement:Ce},qc=function(b){return oE.call(b.ownerDocument||b,b,Qt.SHOW_ELEMENT|Qt.SHOW_COMMENT|Qt.SHOW_TEXT,null,!1)},gE=function(b){return b instanceof _n&&(typeof b.nodeName!="string"||typeof b.textContent!="string"||typeof b.removeChild!="function"||!(b.attributes instanceof Rn)||typeof b.removeAttribute!="function"||typeof b.setAttribute!="function"||typeof b.namespaceURI!="string"||typeof b.insertBefore!="function")},_r=function(b){return(typeof Le=="undefined"?"undefined":j(Le))==="object"?b instanceof Le:b&&(typeof b=="undefined"?"undefined":j(b))==="object"&&typeof b.nodeType=="number"&&typeof b.nodeName=="string"},ct=function(b,P,z){!nt[b]||f(nt[b],function(ne){ne.call(D,P,z,or)})},jc=function(b){var P=void 0;if(ct("beforeSanitizeElements",b,null),gE(b)||v(b.nodeName,/[\u0080-\uFFFF]/))return lt(b),!0;var z=Rt(b.nodeName);if(ct("uponSanitizeElement",b,{tagName:z,allowedTags:be}),!_r(b.firstElementChild)&&(!_r(b.content)||!_r(b.content.firstElementChild))&&M(/<[/\w]/g,b.innerHTML)&&M(/<[/\w]/g,b.textContent)||z==="select"&&M(/<template/i,b.innerHTML))return lt(b),!0;if(!be[z]||Hr[z]){if(!Hr[z]&&Uc(z)&&(fe.tagNameCheck instanceof RegExp&&M(fe.tagNameCheck,z)||fe.tagNameCheck instanceof Function&&fe.tagNameCheck(z)))return!1;if(vo&&!nr[z]){var ne=yt(b)||b.parentNode,Ae=lo(b)||b.childNodes;if(Ae&&ne)for(var Ce=Ae.length,xe=Ce-1;xe>=0;--xe)ne.insertBefore(gt(Ae[xe],!0),st(b))}return lt(b),!0}return b instanceof We&&!hE(b)||(z==="noscript"||z==="noembed")&&M(/<\/no(script|embed)/i,b.innerHTML)?(lt(b),!0):(er&&b.nodeType===3&&(P=b.textContent,P=E(P,uo," "),P=E(P,fo," "),b.textContent!==P&&(T(D.removed,{element:b.cloneNode()}),b.textContent=P)),ct("afterSanitizeElements",b,null),!1)},zc=function(b,P,z){if(Oc&&(P==="id"||P==="name")&&(z in X||z in mE))return!1;if(!(ho&&!mo[P]&&M(cE,P))){if(!(Cc&&M(uE,P))){if(!Se[P]||mo[P]){if(!(Uc(b)&&(fe.tagNameCheck instanceof RegExp&&M(fe.tagNameCheck,b)||fe.tagNameCheck instanceof Function&&fe.tagNameCheck(b))&&(fe.attributeNameCheck instanceof RegExp&&M(fe.attributeNameCheck,P)||fe.attributeNameCheck instanceof Function&&fe.attributeNameCheck(P))||P==="is"&&fe.allowCustomizedBuiltInElements&&(fe.tagNameCheck instanceof RegExp&&M(fe.tagNameCheck,z)||fe.tagNameCheck instanceof Function&&fe.tagNameCheck(z))))return!1}else if(!bo[P]){if(!M(po,E(z,Ic,""))){if(!((P==="src"||P==="xlink:href"||P==="href")&&b!=="script"&&I(z,"data:")===0&&kc[b])){if(!(Mc&&!M(dE,E(z,Ic,"")))){if(z)return!1}}}}}}return!0},Uc=function(b){return b.indexOf("-")>0},Vc=function(b){var P=void 0,z=void 0,ne=void 0,Ae=void 0;ct("beforeSanitizeAttributes",b,null);var Ce=b.attributes;if(!!Ce){var xe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se};for(Ae=Ce.length;Ae--;){P=Ce[Ae];var Un=P,_e=Un.name,$c=Un.namespaceURI;if(z=R(P.value),ne=Rt(_e),xe.attrName=ne,xe.attrValue=z,xe.keepAttr=!0,xe.forceKeepAttr=void 0,ct("uponSanitizeAttribute",b,xe),z=xe.attrValue,!xe.forceKeepAttr&&(Fc(_e,b),!!xe.keepAttr)){if(M(/\/>/i,z)){Fc(_e,b);continue}er&&(z=E(z,uo," "),z=E(z,fo," "));var vE=Rt(b.nodeName);if(!!zc(vE,ne,z))try{$c?b.setAttributeNS($c,_e,z):b.setAttribute(_e,z),y(D.removed)}catch(kM){}}}ct("afterSanitizeAttributes",b,null)}},yE=function U(b){var P=void 0,z=qc(b);for(ct("beforeSanitizeShadowDOM",b,null);P=z.nextNode();)ct("uponSanitizeShadowNode",P,null),!jc(P)&&(P.content instanceof se&&U(P.content),Vc(P));ct("afterSanitizeShadowDOM",b,null)};return D.sanitize=function(U,b){var P=void 0,z=void 0,ne=void 0,Ae=void 0,Ce=void 0;if(To=!U,To&&(U="<!-->"),typeof U!="string"&&!_r(U)){if(typeof U.toString!="function")throw S("toString is not a function");if(U=U.toString(),typeof U!="string")throw S("dirty is not a string, aborting")}if(!D.isSupported){if(j(B.toStaticHTML)==="object"||typeof B.toStaticHTML=="function"){if(typeof U=="string")return B.toStaticHTML(U);if(_r(U))return B.toStaticHTML(U.outerHTML)}return U}if(go||So(b),D.removed=[],typeof U=="string"&&(Rr=!1),Rr){if(U.nodeName){var xe=Rt(U.nodeName);if(!be[xe]||Hr[xe])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(U instanceof Le)P=Bc("<!---->"),z=P.ownerDocument.importNode(U,!0),z.nodeType===1&&z.nodeName==="BODY"||z.nodeName==="HTML"?P=z:P.appendChild(z);else{if(!tr&&!er&&!Ht&&U.indexOf("<")===-1)return ze&&qn?ze.createHTML(U):U;if(P=Bc(U),!P)return tr?null:qn?Dn:""}P&&yo&&lt(P.firstChild);for(var Un=qc(Rr?U:P);ne=Un.nextNode();)ne.nodeType===3&&ne===Ae||jc(ne)||(ne.content instanceof se&&yE(ne.content),Vc(ne),Ae=ne);if(Ae=null,Rr)return U;if(tr){if(Bn)for(Ce=aE.call(P.ownerDocument);P.firstChild;)Ce.appendChild(P.firstChild);else Ce=P;return Se.shadowroot&&(Ce=lE.call(q,Ce,!0)),Ce}var _e=Ht?P.outerHTML:P.innerHTML;return Ht&&be["!doctype"]&&P.ownerDocument&&P.ownerDocument.doctype&&P.ownerDocument.doctype.name&&M(Hn,P.ownerDocument.doctype.name)&&(_e="<!DOCTYPE "+P.ownerDocument.doctype.name+`>
`+_e),er&&(_e=E(_e,uo," "),_e=E(_e,fo," ")),ze&&qn?ze.createHTML(_e):_e},D.setConfig=function(U){So(U),go=!0},D.clearConfig=function(){or=null,go=!1},D.isValidAttribute=function(U,b,P){or||So({});var z=Rt(U),ne=Rt(b);return zc(z,ne,P)},D.addHook=function(U,b){typeof b=="function"&&(nt[U]=nt[U]||[],T(nt[U],b))},D.removeHook=function(U){nt[U]&&y(nt[U])},D.removeHooks=function(U){nt[U]&&(nt[U]=[])},D.removeAllHooks=function(){nt={}},D}var ht=rt();return ht})});var Dm=m((lH,Nm)=>{Nm.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var xt=m(jt=>{var ss,kx=[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];jt.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};jt.getSymbolTotalCodewords=function(e){return kx[e]};jt.getBCHDigit=function(t){let e=0;for(;t!==0;)e++,t>>>=1;return e};jt.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');ss=e};jt.isKanjiModeEnabled=function(){return typeof ss!="undefined"};jt.toSJIS=function(e){return ss(e)}});var xi=m(Ve=>{Ve.L={bit:1};Ve.M={bit:0};Ve.Q={bit:3};Ve.H={bit:2};function Hx(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return Ve.L;case"m":case"medium":return Ve.M;case"q":case"quartile":return Ve.Q;case"h":case"high":return Ve.H;default:throw new Error("Unknown EC Level: "+t)}}Ve.isValid=function(e){return e&&typeof e.bit!="undefined"&&e.bit>=0&&e.bit<4};Ve.from=function(e,r){if(Ve.isValid(e))return e;try{return Hx(e)}catch(n){return r}}});var qm=m((dH,Bm)=>{function Fm(){this.buffer=[],this.length=0}Fm.prototype={get:function(t){let e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(let r=0;r<e;r++)this.putBit((t>>>e-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){let e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};Bm.exports=Fm});var zm=m((fH,jm)=>{function tn(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}tn.prototype.set=function(t,e,r,n){let i=t*this.size+e;this.data[i]=r,n&&(this.reservedBit[i]=!0)};tn.prototype.get=function(t,e){return this.data[t*this.size+e]};tn.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r};tn.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};jm.exports=tn});var Um=m(Ii=>{var Rx=xt().getSymbolSize;Ii.getRowColCoords=function(e){if(e===1)return[];let r=Math.floor(e/7)+2,n=Rx(e),i=n===145?26:Math.ceil((n-13)/(2*r-2))*2,o=[n-7];for(let a=1;a<r-1;a++)o[a]=o[a-1]-i;return o.push(6),o.reverse()};Ii.getPositions=function(e){let r=[],n=Ii.getRowColCoords(e),i=n.length;for(let o=0;o<i;o++)for(let a=0;a<i;a++)o===0&&a===0||o===0&&a===i-1||o===i-1&&a===0||r.push([n[o],n[a]]);return r}});var Wm=m($m=>{var _x=xt().getSymbolSize,Vm=7;$m.getPositions=function(e){let r=_x(e);return[[0,0],[r-Vm,0],[0,r-Vm]]}});var Gm=m(oe=>{oe.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var zt={N1:3,N2:3,N3:40,N4:10};oe.isValid=function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7};oe.from=function(e){return oe.isValid(e)?parseInt(e,10):void 0};oe.getPenaltyN1=function(e){let r=e.size,n=0,i=0,o=0,a=null,s=null;for(let l=0;l<r;l++){i=o=0,a=s=null;for(let c=0;c<r;c++){let u=e.get(l,c);u===a?i++:(i>=5&&(n+=zt.N1+(i-5)),a=u,i=1),u=e.get(c,l),u===s?o++:(o>=5&&(n+=zt.N1+(o-5)),s=u,o=1)}i>=5&&(n+=zt.N1+(i-5)),o>=5&&(n+=zt.N1+(o-5))}return n};oe.getPenaltyN2=function(e){let r=e.size,n=0;for(let i=0;i<r-1;i++)for(let o=0;o<r-1;o++){let a=e.get(i,o)+e.get(i,o+1)+e.get(i+1,o)+e.get(i+1,o+1);(a===4||a===0)&&n++}return n*zt.N2};oe.getPenaltyN3=function(e){let r=e.size,n=0,i=0,o=0;for(let a=0;a<r;a++){i=o=0;for(let s=0;s<r;s++)i=i<<1&2047|e.get(a,s),s>=10&&(i===1488||i===93)&&n++,o=o<<1&2047|e.get(s,a),s>=10&&(o===1488||o===93)&&n++}return n*zt.N3};oe.getPenaltyN4=function(e){let r=0,n=e.data.length;for(let o=0;o<n;o++)r+=e.data[o];return Math.abs(Math.ceil(r*100/n/5)-10)*zt.N4};function Nx(t,e,r){switch(t){case oe.Patterns.PATTERN000:return(e+r)%2===0;case oe.Patterns.PATTERN001:return e%2===0;case oe.Patterns.PATTERN010:return r%3===0;case oe.Patterns.PATTERN011:return(e+r)%3===0;case oe.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2===0;case oe.Patterns.PATTERN101:return e*r%2+e*r%3===0;case oe.Patterns.PATTERN110:return(e*r%2+e*r%3)%2===0;case oe.Patterns.PATTERN111:return(e*r%3+(e+r)%2)%2===0;default:throw new Error("bad maskPattern:"+t)}}oe.applyMask=function(e,r){let n=r.size;for(let i=0;i<n;i++)for(let o=0;o<n;o++)r.isReserved(o,i)||r.xor(o,i,Nx(e,o,i))};oe.getBestMask=function(e,r){let n=Object.keys(oe.Patterns).length,i=0,o=1/0;for(let a=0;a<n;a++){r(a),oe.applyMask(a,e);let s=oe.getPenaltyN1(e)+oe.getPenaltyN2(e)+oe.getPenaltyN3(e)+oe.getPenaltyN4(e);oe.applyMask(a,e),s<o&&(o=s,i=a)}return i}});var cs=m(ls=>{var It=xi(),Li=[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],Ai=[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];ls.getBlocksCount=function(e,r){switch(r){case It.L:return Li[(e-1)*4+0];case It.M:return Li[(e-1)*4+1];case It.Q:return Li[(e-1)*4+2];case It.H:return Li[(e-1)*4+3];default:return}};ls.getTotalCodewordsCount=function(e,r){switch(r){case It.L:return Ai[(e-1)*4+0];case It.M:return Ai[(e-1)*4+1];case It.Q:return Ai[(e-1)*4+2];case It.H:return Ai[(e-1)*4+3];default:return}}});var Ym=m(Mi=>{var rn=new Uint8Array(512),Ci=new Uint8Array(256);(function(){let e=1;for(let r=0;r<255;r++)rn[r]=e,Ci[e]=r,e<<=1,e&256&&(e^=285);for(let r=255;r<512;r++)rn[r]=rn[r-255]})();Mi.log=function(e){if(e<1)throw new Error("log("+e+")");return Ci[e]};Mi.exp=function(e){return rn[e]};Mi.mul=function(e,r){return e===0||r===0?0:rn[Ci[e]+Ci[r]]}});var Km=m(nn=>{var us=Ym();nn.mul=function(e,r){let n=new Uint8Array(e.length+r.length-1);for(let i=0;i<e.length;i++)for(let o=0;o<r.length;o++)n[i+o]^=us.mul(e[i],r[o]);return n};nn.mod=function(e,r){let n=new Uint8Array(e);for(;n.length-r.length>=0;){let i=n[0];for(let a=0;a<r.length;a++)n[a]^=us.mul(r[a],i);let o=0;for(;o<n.length&&n[o]===0;)o++;n=n.slice(o)}return n};nn.generateECPolynomial=function(e){let r=new Uint8Array([1]);for(let n=0;n<e;n++)r=nn.mul(r,new Uint8Array([1,us.exp(n)]));return r}});var Zm=m((bH,Jm)=>{var Xm=Km();function ds(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}ds.prototype.initialize=function(e){this.degree=e,this.genPoly=Xm.generateECPolynomial(this.degree)};ds.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");let r=new Uint8Array(e.length+this.degree);r.set(e);let n=Xm.mod(r,this.genPoly),i=this.degree-n.length;if(i>0){let o=new Uint8Array(this.degree);return o.set(n,i),o}return n};Jm.exports=ds});var fs=m(Qm=>{Qm.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}});var ps=m(ft=>{var eh="[0-9]+",Dx="[A-Z $%*+\\-./:]+",on="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";on=on.replace(/u/g,"\\u");var Fx="(?:(?![A-Z0-9 $%*+\\-./:]|"+on+`)(?:.|[\r
]))+`;ft.KANJI=new RegExp(on,"g");ft.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");ft.BYTE=new RegExp(Fx,"g");ft.NUMERIC=new RegExp(eh,"g");ft.ALPHANUMERIC=new RegExp(Dx,"g");var Bx=new RegExp("^"+on+"$"),qx=new RegExp("^"+eh+"$"),jx=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");ft.testKanji=function(e){return Bx.test(e)};ft.testNumeric=function(e){return qx.test(e)};ft.testAlphanumeric=function(e){return jx.test(e)}});var Lt=m(me=>{var zx=fs(),ms=ps();me.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]};me.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]};me.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]};me.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]};me.MIXED={bit:-1};me.getCharCountIndicator=function(e,r){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!zx.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?e.ccBits[0]:r<27?e.ccBits[1]:e.ccBits[2]};me.getBestModeForData=function(e){return ms.testNumeric(e)?me.NUMERIC:ms.testAlphanumeric(e)?me.ALPHANUMERIC:ms.testKanji(e)?me.KANJI:me.BYTE};me.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")};me.isValid=function(e){return e&&e.bit&&e.ccBits};function Ux(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return me.NUMERIC;case"alphanumeric":return me.ALPHANUMERIC;case"kanji":return me.KANJI;case"byte":return me.BYTE;default:throw new Error("Unknown mode: "+t)}}me.from=function(e,r){if(me.isValid(e))return e;try{return Ux(e)}catch(n){return r}}});var oh=m(Ut=>{var Oi=xt(),Vx=cs(),th=xi(),At=Lt(),hs=fs(),nh=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,rh=Oi.getBCHDigit(nh);function $x(t,e,r){for(let n=1;n<=40;n++)if(e<=Ut.getCapacity(n,r,t))return n}function ih(t,e){return At.getCharCountIndicator(t,e)+4}function Wx(t,e){let r=0;return t.forEach(function(n){r+=ih(n.mode,e)+n.getBitsLength()}),r}function Gx(t,e){for(let r=1;r<=40;r++)if(Wx(t,r)<=Ut.getCapacity(r,e,At.MIXED))return r}Ut.from=function(e,r){return hs.isValid(e)?parseInt(e,10):r};Ut.getCapacity=function(e,r,n){if(!hs.isValid(e))throw new Error("Invalid QR Code version");typeof n=="undefined"&&(n=At.BYTE);let i=Oi.getSymbolTotalCodewords(e),o=Vx.getTotalCodewordsCount(e,r),a=(i-o)*8;if(n===At.MIXED)return a;let s=a-ih(n,e);switch(n){case At.NUMERIC:return Math.floor(s/10*3);case At.ALPHANUMERIC:return Math.floor(s/11*2);case At.KANJI:return Math.floor(s/13);case At.BYTE:default:return Math.floor(s/8)}};Ut.getBestVersionForData=function(e,r){let n,i=th.from(r,th.M);if(Array.isArray(e)){if(e.length>1)return Gx(e,i);if(e.length===0)return 1;n=e[0]}else n=e;return $x(n.mode,n.getLength(),i)};Ut.getEncodedBits=function(e){if(!hs.isValid(e)||e<7)throw new Error("Invalid QR Code version");let r=e<<12;for(;Oi.getBCHDigit(r)-rh>=0;)r^=nh<<Oi.getBCHDigit(r)-rh;return e<<12|r}});var ch=m(lh=>{var gs=xt(),sh=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,Yx=1<<14|1<<12|1<<10|1<<4|1<<1,ah=gs.getBCHDigit(sh);lh.getEncodedBits=function(e,r){let n=e.bit<<3|r,i=n<<10;for(;gs.getBCHDigit(i)-ah>=0;)i^=sh<<gs.getBCHDigit(i)-ah;return(n<<10|i)^Yx}});var dh=m((IH,uh)=>{var Kx=Lt();function pr(t){this.mode=Kx.NUMERIC,this.data=t.toString()}pr.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};pr.prototype.getLength=function(){return this.data.length};pr.prototype.getBitsLength=function(){return pr.getBitsLength(this.data.length)};pr.prototype.write=function(e){let r,n,i;for(r=0;r+3<=this.data.length;r+=3)n=this.data.substr(r,3),i=parseInt(n,10),e.put(i,10);let o=this.data.length-r;o>0&&(n=this.data.substr(r),i=parseInt(n,10),e.put(i,o*3+1))};uh.exports=pr});var ph=m((LH,fh)=>{var Xx=Lt(),ys=["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 mr(t){this.mode=Xx.ALPHANUMERIC,this.data=t}mr.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};mr.prototype.getLength=function(){return this.data.length};mr.prototype.getBitsLength=function(){return mr.getBitsLength(this.data.length)};mr.prototype.write=function(e){let r;for(r=0;r+2<=this.data.length;r+=2){let n=ys.indexOf(this.data[r])*45;n+=ys.indexOf(this.data[r+1]),e.put(n,11)}this.data.length%2&&e.put(ys.indexOf(this.data[r]),6)};fh.exports=mr});var hh=m((AH,mh)=>{"use strict";mh.exports=function(e){for(var r=[],n=e.length,i=0;i<n;i++){var o=e.charCodeAt(i);if(o>=55296&&o<=56319&&n>i+1){var a=e.charCodeAt(i+1);a>=56320&&a<=57343&&(o=(o-55296)*1024+a-56320+65536,i+=1)}if(o<128){r.push(o);continue}if(o<2048){r.push(o>>6|192),r.push(o&63|128);continue}if(o<55296||o>=57344&&o<65536){r.push(o>>12|224),r.push(o>>6&63|128),r.push(o&63|128);continue}if(o>=65536&&o<=1114111){r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(o&63|128);continue}r.push(239,191,189)}return new Uint8Array(r).buffer}});var yh=m((CH,gh)=>{var Jx=hh(),Zx=Lt();function hr(t){this.mode=Zx.BYTE,this.data=new Uint8Array(Jx(t))}hr.getBitsLength=function(e){return e*8};hr.prototype.getLength=function(){return this.data.length};hr.prototype.getBitsLength=function(){return hr.getBitsLength(this.data.length)};hr.prototype.write=function(t){for(let e=0,r=this.data.length;e<r;e++)t.put(this.data[e],8)};gh.exports=hr});var bh=m((MH,vh)=>{var Qx=Lt(),eI=xt();function gr(t){this.mode=Qx.KANJI,this.data=t}gr.getBitsLength=function(e){return e*13};gr.prototype.getLength=function(){return this.data.length};gr.prototype.getBitsLength=function(){return gr.getBitsLength(this.data.length)};gr.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let r=eI.toSJIS(this.data[e]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),t.put(r,13)}};vh.exports=gr});var Eh=m((OH,vs)=>{"use strict";var an={single_source_shortest_paths:function(t,e,r){var n={},i={};i[e]=0;var o=an.PriorityQueue.make();o.push(e,0);for(var a,s,l,c,u,d,f,y,T;!o.empty();){a=o.pop(),s=a.value,c=a.cost,u=t[s]||{};for(l in u)u.hasOwnProperty(l)&&(d=u[l],f=c+d,y=i[l],T=typeof i[l]=="undefined",(T||y>f)&&(i[l]=f,o.push(l,f),n[l]=s))}if(typeof r!="undefined"&&typeof i[r]=="undefined"){var p=["Could not find a path from ",e," to ",r,"."].join("");throw new Error(p)}return n},extract_shortest_path_from_predecessor_list:function(t,e){for(var r=[],n=e,i;n;)r.push(n),i=t[n],n=t[n];return r.reverse(),r},find_path:function(t,e,r){var n=an.single_source_shortest_paths(t,e,r);return an.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(t){var e=an.PriorityQueue,r={},n;t=t||{};for(n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);return r.queue=[],r.sorter=t.sorter||e.default_sorter,r},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var r={value:t,cost:e};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof vs!="undefined"&&(vs.exports=an)});var Ch=m(yr=>{var re=Lt(),Sh=dh(),xh=ph(),Ih=yh(),Lh=bh(),sn=ps(),Pi=xt(),tI=Eh();function wh(t){return unescape(encodeURIComponent(t)).length}function ln(t,e,r){let n=[],i;for(;(i=t.exec(r))!==null;)n.push({data:i[0],index:i.index,mode:e,length:i[0].length});return n}function Ah(t){let e=ln(sn.NUMERIC,re.NUMERIC,t),r=ln(sn.ALPHANUMERIC,re.ALPHANUMERIC,t),n,i;return Pi.isKanjiModeEnabled()?(n=ln(sn.BYTE,re.BYTE,t),i=ln(sn.KANJI,re.KANJI,t)):(n=ln(sn.BYTE_KANJI,re.BYTE,t),i=[]),e.concat(r,n,i).sort(function(a,s){return a.index-s.index}).map(function(a){return{data:a.data,mode:a.mode,length:a.length}})}function bs(t,e){switch(e){case re.NUMERIC:return Sh.getBitsLength(t);case re.ALPHANUMERIC:return xh.getBitsLength(t);case re.KANJI:return Lh.getBitsLength(t);case re.BYTE:return Ih.getBitsLength(t)}}function rI(t){return t.reduce(function(e,r){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===r.mode?(e[e.length-1].data+=r.data,e):(e.push(r),e)},[])}function nI(t){let e=[];for(let r=0;r<t.length;r++){let n=t[r];switch(n.mode){case re.NUMERIC:e.push([n,{data:n.data,mode:re.ALPHANUMERIC,length:n.length},{data:n.data,mode:re.BYTE,length:n.length}]);break;case re.ALPHANUMERIC:e.push([n,{data:n.data,mode:re.BYTE,length:n.length}]);break;case re.KANJI:e.push([n,{data:n.data,mode:re.BYTE,length:wh(n.data)}]);break;case re.BYTE:e.push([{data:n.data,mode:re.BYTE,length:wh(n.data)}])}}return e}function iI(t,e){let r={},n={start:{}},i=["start"];for(let o=0;o<t.length;o++){let a=t[o],s=[];for(let l=0;l<a.length;l++){let c=a[l],u=""+o+l;s.push(u),r[u]={node:c,lastCount:0},n[u]={};for(let d=0;d<i.length;d++){let f=i[d];r[f]&&r[f].node.mode===c.mode?(n[f][u]=bs(r[f].lastCount+c.length,c.mode)-bs(r[f].lastCount,c.mode),r[f].lastCount+=c.length):(r[f]&&(r[f].lastCount=c.length),n[f][u]=bs(c.length,c.mode)+4+re.getCharCountIndicator(c.mode,e))}}i=s}for(let o=0;o<i.length;o++)n[i[o]].end=0;return{map:n,table:r}}function Th(t,e){let r,n=re.getBestModeForData(t);if(r=re.from(e,n),r!==re.BYTE&&r.bit<n.bit)throw new Error('"'+t+'" cannot be encoded with mode '+re.toString(r)+`.
 Suggested mode is: `+re.toString(n));switch(r===re.KANJI&&!Pi.isKanjiModeEnabled()&&(r=re.BYTE),r){case re.NUMERIC:return new Sh(t);case re.ALPHANUMERIC:return new xh(t);case re.KANJI:return new Lh(t);case re.BYTE:return new Ih(t)}}yr.fromArray=function(e){return e.reduce(function(r,n){return typeof n=="string"?r.push(Th(n,null)):n.data&&r.push(Th(n.data,n.mode)),r},[])};yr.fromString=function(e,r){let n=Ah(e,Pi.isKanjiModeEnabled()),i=nI(n),o=iI(i,r),a=tI.find_path(o.map,"start","end"),s=[];for(let l=1;l<a.length-1;l++)s.push(o.table[a[l]].node);return yr.fromArray(rI(s))};yr.rawSplit=function(e){return yr.fromArray(Ah(e,Pi.isKanjiModeEnabled()))}});var Oh=m(Mh=>{var Hi=xt(),Es=xi(),oI=qm(),aI=zm(),sI=Um(),lI=Wm(),Ss=Gm(),xs=cs(),cI=Zm(),ki=oh(),uI=ch(),dI=Lt(),ws=Ch();function fI(t,e){let r=t.size,n=lI.getPositions(e);for(let i=0;i<n.length;i++){let o=n[i][0],a=n[i][1];for(let s=-1;s<=7;s++)if(!(o+s<=-1||r<=o+s))for(let l=-1;l<=7;l++)a+l<=-1||r<=a+l||(s>=0&&s<=6&&(l===0||l===6)||l>=0&&l<=6&&(s===0||s===6)||s>=2&&s<=4&&l>=2&&l<=4?t.set(o+s,a+l,!0,!0):t.set(o+s,a+l,!1,!0))}}function pI(t){let e=t.size;for(let r=8;r<e-8;r++){let n=r%2===0;t.set(r,6,n,!0),t.set(6,r,n,!0)}}function mI(t,e){let r=sI.getPositions(e);for(let n=0;n<r.length;n++){let i=r[n][0],o=r[n][1];for(let a=-2;a<=2;a++)for(let s=-2;s<=2;s++)a===-2||a===2||s===-2||s===2||a===0&&s===0?t.set(i+a,o+s,!0,!0):t.set(i+a,o+s,!1,!0)}}function hI(t,e){let r=t.size,n=ki.getEncodedBits(e),i,o,a;for(let s=0;s<18;s++)i=Math.floor(s/3),o=s%3+r-8-3,a=(n>>s&1)===1,t.set(i,o,a,!0),t.set(o,i,a,!0)}function Ts(t,e,r){let n=t.size,i=uI.getEncodedBits(e,r),o,a;for(o=0;o<15;o++)a=(i>>o&1)===1,o<6?t.set(o,8,a,!0):o<8?t.set(o+1,8,a,!0):t.set(n-15+o,8,a,!0),o<8?t.set(8,n-o-1,a,!0):o<9?t.set(8,15-o-1+1,a,!0):t.set(8,15-o-1,a,!0);t.set(n-8,8,1,!0)}function gI(t,e){let r=t.size,n=-1,i=r-1,o=7,a=0;for(let s=r-1;s>0;s-=2)for(s===6&&s--;;){for(let l=0;l<2;l++)if(!t.isReserved(i,s-l)){let c=!1;a<e.length&&(c=(e[a]>>>o&1)===1),t.set(i,s-l,c),o--,o===-1&&(a++,o=7)}if(i+=n,i<0||r<=i){i-=n,n=-n;break}}}function yI(t,e,r){let n=new oI;r.forEach(function(l){n.put(l.mode.bit,4),n.put(l.getLength(),dI.getCharCountIndicator(l.mode,t)),l.write(n)});let i=Hi.getSymbolTotalCodewords(t),o=xs.getTotalCodewordsCount(t,e),a=(i-o)*8;for(n.getLengthInBits()+4<=a&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);let s=(a-n.getLengthInBits())/8;for(let l=0;l<s;l++)n.put(l%2?17:236,8);return vI(n,t,e)}function vI(t,e,r){let n=Hi.getSymbolTotalCodewords(e),i=xs.getTotalCodewordsCount(e,r),o=n-i,a=xs.getBlocksCount(e,r),s=n%a,l=a-s,c=Math.floor(n/a),u=Math.floor(o/a),d=u+1,f=c-u,y=new cI(f),T=0,p=new Array(a),v=new Array(a),E=0,I=new Uint8Array(t.buffer);for(let g=0;g<a;g++){let h=g<l?u:d;p[g]=I.slice(T,T+h),v[g]=y.encode(p[g]),T+=h,E=Math.max(E,h)}let R=new Uint8Array(n),M=0,S,w;for(S=0;S<E;S++)for(w=0;w<a;w++)S<p[w].length&&(R[M++]=p[w][S]);for(S=0;S<f;S++)for(w=0;w<a;w++)R[M++]=v[w][S];return R}function bI(t,e,r,n){let i;if(Array.isArray(t))i=ws.fromArray(t);else if(typeof t=="string"){let c=e;if(!c){let u=ws.rawSplit(t);c=ki.getBestVersionForData(u,r)}i=ws.fromString(t,c||40)}else throw new Error("Invalid data");let o=ki.getBestVersionForData(i,r);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=o;else if(e<o)throw new Error(`
The chosen QR Code version cannot contain this amount of data.
Minimum version required to store current data is: `+o+`.
`);let a=yI(e,r,i),s=Hi.getSymbolSize(e),l=new aI(s);return fI(l,e),pI(l),mI(l,e),Ts(l,r,0),e>=7&&hI(l,e),gI(l,a),isNaN(n)&&(n=Ss.getBestMask(l,Ts.bind(null,l,r))),Ss.applyMask(n,l),Ts(l,r,n),{modules:l,version:e,errorCorrectionLevel:r,maskPattern:n,segments:i}}Mh.create=function(e,r){if(typeof e=="undefined"||e==="")throw new Error("No input text");let n=Es.M,i,o;return typeof r!="undefined"&&(n=Es.from(r.errorCorrectionLevel,Es.M),i=ki.from(r.version),o=Ss.from(r.maskPattern),r.toSJISFunc&&Hi.setToSJISFunction(r.toSJISFunc)),bI(e,i,n,o)}});var Is=m(Vt=>{function Ph(t){if(typeof t=="number"&&(t=t.toString()),typeof t!="string")throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||e.length===5||e.length>8)throw new Error("Invalid hex color: "+t);(e.length===3||e.length===4)&&(e=Array.prototype.concat.apply([],e.map(function(n){return[n,n]}))),e.length===6&&e.push("F","F");let r=parseInt(e.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+e.slice(0,6).join("")}}Vt.getOptions=function(e){e||(e={}),e.color||(e.color={});let r=typeof e.margin=="undefined"||e.margin===null||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:n,scale:n?4:i,margin:r,color:{dark:Ph(e.color.dark||"#000000ff"),light:Ph(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}};Vt.getScale=function(e,r){return r.width&&r.width>=e+r.margin*2?r.width/(e+r.margin*2):r.scale};Vt.getImageWidth=function(e,r){let n=Vt.getScale(e,r);return Math.floor((e+r.margin*2)*n)};Vt.qrToImageData=function(e,r,n){let i=r.modules.size,o=r.modules.data,a=Vt.getScale(i,n),s=Math.floor((i+n.margin*2)*a),l=n.margin*a,c=[n.color.light,n.color.dark];for(let u=0;u<s;u++)for(let d=0;d<s;d++){let f=(u*s+d)*4,y=n.color.light;if(u>=l&&d>=l&&u<s-l&&d<s-l){let T=Math.floor((u-l)/a),p=Math.floor((d-l)/a);y=c[o[T*i+p]?1:0]}e[f++]=y.r,e[f++]=y.g,e[f++]=y.b,e[f]=y.a}}});var kh=m(Ri=>{var Ls=Is();function EI(t,e,r){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=r,e.width=r,e.style.height=r+"px",e.style.width=r+"px"}function wI(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}Ri.render=function(e,r,n){let i=n,o=r;typeof i=="undefined"&&(!r||!r.getContext)&&(i=r,r=void 0),r||(o=wI()),i=Ls.getOptions(i);let a=Ls.getImageWidth(e.modules.size,i),s=o.getContext("2d"),l=s.createImageData(a,a);return Ls.qrToImageData(l.data,e,i),EI(s,o,a),s.putImageData(l,0,0),o};Ri.renderToDataURL=function(e,r,n){let i=n;typeof i=="undefined"&&(!r||!r.getContext)&&(i=r,r=void 0),i||(i={});let o=Ri.render(e,r,i),a=i.type||"image/png",s=i.rendererOpts||{};return o.toDataURL(a,s.quality)}});var _h=m(Rh=>{var TI=Is();function Hh(t,e){let r=t.a/255,n=e+'="'+t.hex+'"';return r<1?n+" "+e+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function As(t,e,r){let n=t+e;return typeof r!="undefined"&&(n+=" "+r),n}function SI(t,e,r){let n="",i=0,o=!1,a=0;for(let s=0;s<t.length;s++){let l=Math.floor(s%e),c=Math.floor(s/e);!l&&!o&&(o=!0),t[s]?(a++,s>0&&l>0&&t[s-1]||(n+=o?As("M",l+r,.5+c+r):As("m",i,0),i=0,o=!1),l+1<e&&t[s+1]||(n+=As("h",a),a=0)):i++}return n}Rh.render=function(e,r,n){let i=TI.getOptions(r),o=e.modules.size,a=e.modules.data,s=o+i.margin*2,l=i.color.light.a?"<path "+Hh(i.color.light,"fill")+' d="M0 0h'+s+"v"+s+'H0z"/>':"",c="<path "+Hh(i.color.dark,"stroke")+' d="'+SI(a,o,i.margin)+'"/>',u='viewBox="0 0 '+s+" "+s+'"',d=i.width?'width="'+i.width+'" height="'+i.width+'" ':"",f='<svg xmlns="http://www.w3.org/2000/svg" '+d+u+' shape-rendering="crispEdges">'+l+c+`</svg>
`;return typeof n=="function"&&n(null,f),f}});var Dh=m(cn=>{var xI=Dm(),Cs=Oh(),Nh=kh(),II=_h();function Ms(t,e,r,n,i){let o=[].slice.call(arguments,1),a=o.length,s=typeof o[a-1]=="function";if(!s&&!xI())throw new Error("Callback required as last argument");if(s){if(a<2)throw new Error("Too few arguments provided");a===2?(i=r,r=e,e=n=void 0):a===3&&(e.getContext&&typeof i=="undefined"?(i=n,n=void 0):(i=n,n=r,r=e,e=void 0))}else{if(a<1)throw new Error("Too few arguments provided");return a===1?(r=e,e=n=void 0):a===2&&!e.getContext&&(n=r,r=e,e=void 0),new Promise(function(l,c){try{let u=Cs.create(r,n);l(t(u,e,n))}catch(u){c(u)}})}try{let l=Cs.create(r,n);i(null,t(l,e,n))}catch(l){i(l)}}cn.create=Cs.create;cn.toCanvas=Ms.bind(null,Nh.render);cn.toDataURL=Ms.bind(null,Nh.renderToDataURL);cn.toString=Ms.bind(null,function(t,e,r){return II.render(t,r)})});var Fh=m((DH,Ps)=>{var Os=function(t){"use strict";var e=Object.prototype,r=e.hasOwnProperty,n,i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(L,C,N){return Object.defineProperty(L,C,{value:N,enumerable:!0,configurable:!0,writable:!0}),L[C]}try{l({},"")}catch(L){l=function(C,N,G){return C[N]=G}}function c(L,C,N,G){var W=C&&C.prototype instanceof v?C:v,ie=Object.create(W.prototype),ye=new k(G||[]);return ie._invoke=O(L,N,ye),ie}t.wrap=c;function u(L,C,N){try{return{type:"normal",arg:L.call(C,N)}}catch(G){return{type:"throw",arg:G}}}var d="suspendedStart",f="suspendedYield",y="executing",T="completed",p={};function v(){}function E(){}function I(){}var R={};l(R,o,function(){return this});var M=Object.getPrototypeOf,S=M&&M(M(Q([])));S&&S!==e&&r.call(S,o)&&(R=S);var w=I.prototype=v.prototype=Object.create(R);E.prototype=I,l(w,"constructor",I),l(I,"constructor",E),E.displayName=l(I,s,"GeneratorFunction");function g(L){["next","throw","return"].forEach(function(C){l(L,C,function(N){return this._invoke(C,N)})})}t.isGeneratorFunction=function(L){var C=typeof L=="function"&&L.constructor;return C?C===E||(C.displayName||C.name)==="GeneratorFunction":!1},t.mark=function(L){return Object.setPrototypeOf?Object.setPrototypeOf(L,I):(L.__proto__=I,l(L,s,"GeneratorFunction")),L.prototype=Object.create(w),L},t.awrap=function(L){return{__await:L}};function h(L,C){function N(ie,ye,he,Te){var ve=u(L[ie],L,ye);if(ve.type==="throw")Te(ve.arg);else{var Pt=ve.arg,at=Pt.value;return at&&typeof at=="object"&&r.call(at,"__await")?C.resolve(at.__await).then(function($e){N("next",$e,he,Te)},function($e){N("throw",$e,he,Te)}):C.resolve(at).then(function($e){Pt.value=$e,he(Pt)},function($e){return N("throw",$e,he,Te)})}}var G;function W(ie,ye){function he(){return new C(function(Te,ve){N(ie,ye,Te,ve)})}return G=G?G.then(he,he):he()}this._invoke=W}g(h.prototype),l(h.prototype,a,function(){return this}),t.AsyncIterator=h,t.async=function(L,C,N,G,W){W===void 0&&(W=Promise);var ie=new h(c(L,C,N,G),W);return t.isGeneratorFunction(C)?ie:ie.next().then(function(ye){return ye.done?ye.value:ie.next()})};function O(L,C,N){var G=d;return function(ie,ye){if(G===y)throw new Error("Generator is already running");if(G===T){if(ie==="throw")throw ye;return K()}for(N.method=ie,N.arg=ye;;){var he=N.delegate;if(he){var Te=H(he,N);if(Te){if(Te===p)continue;return Te}}if(N.method==="next")N.sent=N._sent=N.arg;else if(N.method==="throw"){if(G===d)throw G=T,N.arg;N.dispatchException(N.arg)}else N.method==="return"&&N.abrupt("return",N.arg);G=y;var ve=u(L,C,N);if(ve.type==="normal"){if(G=N.done?T:f,ve.arg===p)continue;return{value:ve.arg,done:N.done}}else ve.type==="throw"&&(G=T,N.method="throw",N.arg=ve.arg)}}}function H(L,C){var N=L.iterator[C.method];if(N===n){if(C.delegate=null,C.method==="throw"){if(L.iterator.return&&(C.method="return",C.arg=n,H(L,C),C.method==="throw"))return p;C.method="throw",C.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var G=u(N,L.iterator,C.arg);if(G.type==="throw")return C.method="throw",C.arg=G.arg,C.delegate=null,p;var W=G.arg;if(!W)return C.method="throw",C.arg=new TypeError("iterator result is not an object"),C.delegate=null,p;if(W.done)C[L.resultName]=W.value,C.next=L.nextLoc,C.method!=="return"&&(C.method="next",C.arg=n);else return W;return C.delegate=null,p}g(w),l(w,s,"Generator"),l(w,o,function(){return this}),l(w,"toString",function(){return"[object Generator]"});function _(L){var C={tryLoc:L[0]};1 in L&&(C.catchLoc=L[1]),2 in L&&(C.finallyLoc=L[2],C.afterLoc=L[3]),this.tryEntries.push(C)}function A(L){var C=L.completion||{};C.type="normal",delete C.arg,L.completion=C}function k(L){this.tryEntries=[{tryLoc:"root"}],L.forEach(_,this),this.reset(!0)}t.keys=function(L){var C=[];for(var N in L)C.push(N);return C.reverse(),function G(){for(;C.length;){var W=C.pop();if(W in L)return G.value=W,G.done=!1,G}return G.done=!0,G}};function Q(L){if(L){var C=L[o];if(C)return C.call(L);if(typeof L.next=="function")return L;if(!isNaN(L.length)){var N=-1,G=function W(){for(;++N<L.length;)if(r.call(L,N))return W.value=L[N],W.done=!1,W;return W.value=n,W.done=!0,W};return G.next=G}}return{next:K}}t.values=Q;function K(){return{value:n,done:!0}}return k.prototype={constructor:k,reset:function(L){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(A),!L)for(var C in this)C.charAt(0)==="t"&&r.call(this,C)&&!isNaN(+C.slice(1))&&(this[C]=n)},stop:function(){this.done=!0;var L=this.tryEntries[0],C=L.completion;if(C.type==="throw")throw C.arg;return this.rval},dispatchException:function(L){if(this.done)throw L;var C=this;function N(Te,ve){return ie.type="throw",ie.arg=L,C.next=Te,ve&&(C.method="next",C.arg=n),!!ve}for(var G=this.tryEntries.length-1;G>=0;--G){var W=this.tryEntries[G],ie=W.completion;if(W.tryLoc==="root")return N("end");if(W.tryLoc<=this.prev){var ye=r.call(W,"catchLoc"),he=r.call(W,"finallyLoc");if(ye&&he){if(this.prev<W.catchLoc)return N(W.catchLoc,!0);if(this.prev<W.finallyLoc)return N(W.finallyLoc)}else if(ye){if(this.prev<W.catchLoc)return N(W.catchLoc,!0)}else if(he){if(this.prev<W.finallyLoc)return N(W.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(L,C){for(var N=this.tryEntries.length-1;N>=0;--N){var G=this.tryEntries[N];if(G.tryLoc<=this.prev&&r.call(G,"finallyLoc")&&this.prev<G.finallyLoc){var W=G;break}}W&&(L==="break"||L==="continue")&&W.tryLoc<=C&&C<=W.finallyLoc&&(W=null);var ie=W?W.completion:{};return ie.type=L,ie.arg=C,W?(this.method="next",this.next=W.finallyLoc,p):this.complete(ie)},complete:function(L,C){if(L.type==="throw")throw L.arg;return L.type==="break"||L.type==="continue"?this.next=L.arg:L.type==="return"?(this.rval=this.arg=L.arg,this.method="return",this.next="end"):L.type==="normal"&&C&&(this.next=C),p},finish:function(L){for(var C=this.tryEntries.length-1;C>=0;--C){var N=this.tryEntries[C];if(N.finallyLoc===L)return this.complete(N.completion,N.afterLoc),A(N),p}},catch:function(L){for(var C=this.tryEntries.length-1;C>=0;--C){var N=this.tryEntries[C];if(N.tryLoc===L){var G=N.completion;if(G.type==="throw"){var W=G.arg;A(N)}return W}}throw new Error("illegal catch attempt")},delegateYield:function(L,C,N){return this.delegate={iterator:Q(L),resultName:C,nextLoc:N},this.method==="next"&&(this.arg=n),p}},t}(typeof Ps=="object"?Ps.exports:{});try{regeneratorRuntime=Os}catch(t){typeof globalThis=="object"?globalThis.regeneratorRuntime=Os:Function("r","regeneratorRuntime = r")(Os)}});var rg=m((tg,Bi)=>{(function(t,e){typeof Bi=="object"&&Bi.exports?Bi.exports=e():function r(){document&&document.body?t.zenscroll=e():setTimeout(r,9)}()})(tg,function(){"use strict";var t=function(l){return l&&"getComputedStyle"in window&&window.getComputedStyle(l)["scroll-behavior"]==="smooth"};if(typeof window=="undefined"||!("document"in window))return{};var e=function(l,c,u){c=c||999,!u&&u!==0&&(u=9);var d,f=function(M){d=M},y=function(){clearTimeout(d),f(0)},T=function(M){return Math.max(0,l.getTopOf(M)-u)},p=function(M,S,w){if(y(),S===0||S&&S<0||t(l.body))l.toY(M),w&&w();else{var g=l.getY(),h=Math.max(0,M)-g,O=new Date().getTime();S=S||Math.min(Math.abs(h),c),function H(){f(setTimeout(function(){var _=Math.min(1,(new Date().getTime()-O)/S),A=Math.max(0,Math.floor(g+h*(_<.5?2*_*_:_*(4-_*2)-1)));l.toY(A),_<1&&l.getHeight()+A<l.body.scrollHeight?H():(setTimeout(y,99),w&&w())},9))}()}},v=function(M,S,w){p(T(M),S,w)},E=function(M,S,w){var g=M.getBoundingClientRect().height,h=l.getTopOf(M)+g,O=l.getHeight(),H=l.getY(),_=H+O;T(M)<H||g+u>O?v(M,S,w):h+u>_?p(h-O+u,S,w):w&&w()},I=function(M,S,w,g){p(Math.max(0,l.getTopOf(M)-l.getHeight()/2+(w||M.getBoundingClientRect().height/2)),S,g)},R=function(M,S){return(M===0||M)&&(c=M),(S===0||S)&&(u=S),{defaultDuration:c,edgeOffset:u}};return{setup:R,to:v,toY:p,intoView:E,center:I,stop:y,moving:function(){return!!d},getY:l.getY,getTopOf:l.getTopOf}},r=document.documentElement,n=function(){return window.scrollY||r.scrollTop},i=e({body:document.scrollingElement||document.body,toY:function(l){window.scrollTo(0,l)},getY:n,getHeight:function(){return window.innerHeight||r.clientHeight},getTopOf:function(l){return l.getBoundingClientRect().top+n()-r.offsetTop}});if(i.createScroller=function(l,c,u){return e({body:l,toY:function(d){l.scrollTop=d},getY:function(){return l.scrollTop},getHeight:function(){return Math.min(l.clientHeight,window.innerHeight||r.clientHeight)},getTopOf:function(d){return d.offsetTop}},c,u)},"addEventListener"in window&&!window.noZensmooth&&!t(document.body)){var o="history"in window&&"pushState"in history,a=o&&"scrollRestoration"in history;a&&(history.scrollRestoration="auto"),window.addEventListener("load",function(){a&&(setTimeout(function(){history.scrollRestoration="manual"},9),window.addEventListener("popstate",function(l){l.state&&"zenscrollY"in l.state&&i.toY(l.state.zenscrollY)},!1)),window.location.hash&&setTimeout(function(){var l=i.setup().edgeOffset;if(l){var c=document.getElementById(window.location.href.split("#")[1]);if(c){var u=Math.max(0,i.getTopOf(c)-l),d=i.getY()-u;0<=d&&d<9&&window.scrollTo(0,u)}}},9)},!1);var s=new RegExp("(^|\\s)noZensmooth(\\s|$)");window.addEventListener("click",function(l){for(var c=l.target;c&&c.tagName!=="A";)c=c.parentNode;if(!(!c||l.which!==1||l.shiftKey||l.metaKey||l.ctrlKey||l.altKey)){if(a){var u=history.state&&typeof history.state=="object"?history.state:{};u.zenscrollY=i.getY();try{history.replaceState(u,"")}catch(v){}}var d=c.getAttribute("href")||"";if(d.indexOf("#")===0&&!s.test(c.className)){var f=0,y=document.getElementById(d.substring(1));if(d!=="#"){if(!y)return;f=i.getTopOf(y)}l.preventDefault();var T=function(){window.location=d},p=i.setup().edgeOffset;p&&(f=Math.max(0,f-p),o&&(T=function(){history.pushState({},"",d)})),i.toY(f,null,T)}}},!1)}return i})});var Xs=m((f_,lg)=>{"use strict";var oL=lg.exports={};oL.forEach=function(t,e){for(var r=0;r<t.length;r++){var n=e(t[r]);if(n)return n}}});var ug=m((p_,cg)=>{"use strict";cg.exports=function(t){var e=t.stateHandler.getState;function r(a){var s=e(a);return s&&!!s.isDetectable}function n(a){e(a).isDetectable=!0}function i(a){return!!e(a).busy}function o(a,s){e(a).busy=!!s}return{isDetectable:r,markAsDetectable:n,isBusy:i,markBusy:o}}});var fg=m((m_,dg)=>{"use strict";dg.exports=function(t){var e={};function r(a){var s=t.get(a);return s===void 0?[]:e[s]||[]}function n(a,s){var l=t.get(a);e[l]||(e[l]=[]),e[l].push(s)}function i(a,s){for(var l=r(a),c=0,u=l.length;c<u;++c)if(l[c]===s){l.splice(c,1);break}}function o(a){var s=r(a);!s||(s.length=0)}return{get:r,add:n,removeListener:i,removeAllListeners:o}}});var mg=m((h_,pg)=>{"use strict";pg.exports=function(){var t=1;function e(){return t++}return{generate:e}}});var gg=m((g_,hg)=>{"use strict";hg.exports=function(t){var e=t.idGenerator,r=t.stateHandler.getState;function n(o){var a=r(o);return a&&a.id!==void 0?a.id:null}function i(o){var a=r(o);if(!a)throw new Error("setId required the element to have a resize detection state.");var s=e.generate();return a.id=s,s}return{get:n,set:i}}});var vg=m((y_,yg)=>{"use strict";yg.exports=function(t){function e(){}var r={log:e,warn:e,error:e};if(!t&&window.console){var n=function(i,o){i[o]=function(){var s=console[o];if(s.apply)s.apply(console,arguments);else for(var l=0;l<arguments.length;l++)s(arguments[l])}};n(r,"log"),n(r,"warn"),n(r,"error")}return r}});var Js=m((v_,Eg)=>{"use strict";var bg=Eg.exports={};bg.isIE=function(t){function e(){var n=navigator.userAgent.toLowerCase();return n.indexOf("msie")!==-1||n.indexOf("trident")!==-1||n.indexOf(" edge/")!==-1}if(!e())return!1;if(!t)return!0;var r=function(){var n,i=3,o=document.createElement("div"),a=o.getElementsByTagName("i");do o.innerHTML="<!--[if gt IE "+ ++i+"]><i></i><![endif]-->";while(a[0]);return i>4?i:n}();return t===r};bg.isLegacyOpera=function(){return!!window.opera}});var Tg=m((b_,wg)=>{"use strict";var aL=wg.exports={};aL.getOption=sL;function sL(t,e,r){var n=t[e];return n==null&&r!==void 0?r:n}});var Lg=m((E_,Ig)=>{"use strict";var Sg=Tg();Ig.exports=function(e){e=e||{};var r=e.reporter,n=Sg.getOption(e,"async",!0),i=Sg.getOption(e,"auto",!0);i&&!n&&(r&&r.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var o=xg(),a,s=!1;function l(p,v){!s&&i&&n&&o.size()===0&&d(),o.add(p,v)}function c(){for(s=!0;o.size();){var p=o;o=xg(),p.process()}s=!1}function u(p){s||(p===void 0&&(p=n),a&&(y(a),a=null),p?d():c())}function d(){a=T(c)}function f(){o={},batchSize=0,topLevel=0,bottomLevel=0}function y(p){var v=clearTimeout;return v(p)}function T(p){var v=function(E){return setTimeout(E,0)};return v(p)}return{add:l,force:u}};function xg(){var t={},e=0,r=0,n=0;function i(s,l){l||(l=s,s=0),s>r?r=s:s<n&&(n=s),t[s]||(t[s]=[]),t[s].push(l),e++}function o(){for(var s=n;s<=r;s++)for(var l=t[s],c=0;c<l.length;c++){var u=l[c];u()}}function a(){return e}return{add:i,process:o,size:a}}});var Mg=m((w_,Cg)=>{"use strict";var Zs="_erd";function lL(t){return t[Zs]={},Ag(t)}function Ag(t){return t[Zs]}function cL(t){delete t[Zs]}Cg.exports={initState:lL,getState:Ag,cleanState:cL}});var Pg=m((T_,Og)=>{"use strict";var gn=Js();Og.exports=function(t){t=t||{};var e=t.reporter,r=t.batchProcessor,n=t.stateHandler.getState;if(!e)throw new Error("Missing required dependency: reporter.");function i(c,u){function d(){u(c)}if(gn.isIE(8))n(c).object={proxy:d},c.attachEvent("onresize",d);else{var f=s(c);if(!f)throw new Error("Element is not detectable by this strategy.");f.contentDocument.defaultView.addEventListener("resize",d)}}function o(c){var u=t.important?" !important; ":"; ";return(c.join(u)+u).trim()}function a(c,u,d){d||(d=u,u=c,c=null),c=c||{};var f=c.debug;function y(T,p){var v=o(["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"]),E=!1,I=window.getComputedStyle(T),R=T.offsetWidth,M=T.offsetHeight;n(T).startSize={width:R,height:M};function S(){function w(){if(I.position==="static"){T.style.setProperty("position","relative",c.important?"important":"");var O=function(H,_,A,k){function Q(L){return L.replace(/[^-\d\.]/g,"")}var K=A[k];K!=="auto"&&Q(K)!=="0"&&(H.warn("An element that is positioned static has style."+k+"="+K+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+k+" will be set to 0. Element: ",_),_.style.setProperty(k,"0",c.important?"important":""))};O(e,T,I,"top"),O(e,T,I,"right"),O(e,T,I,"bottom"),O(e,T,I,"left")}}function g(){E||w();function O(_,A){if(!_.contentDocument){var k=n(_);k.checkForObjectDocumentTimeoutId&&window.clearTimeout(k.checkForObjectDocumentTimeoutId),k.checkForObjectDocumentTimeoutId=setTimeout(function(){k.checkForObjectDocumentTimeoutId=0,O(_,A)},100);return}A(_.contentDocument)}var H=this;O(H,function(A){p(T)})}I.position!==""&&(w(I),E=!0);var h=document.createElement("object");h.style.cssText=v,h.tabIndex=-1,h.type="text/html",h.setAttribute("aria-hidden","true"),h.onload=g,gn.isIE()||(h.data="about:blank"),n(T)&&(T.appendChild(h),n(T).object=h,gn.isIE()&&(h.data="about:blank"))}r?r.add(S):S()}gn.isIE(8)?d(u):y(u,d)}function s(c){return n(c).object}function l(c){if(!!n(c)){var u=s(c);!u||(gn.isIE(8)?c.detachEvent("onresize",u.proxy):c.removeChild(u),n(c).checkForObjectDocumentTimeoutId&&window.clearTimeout(n(c).checkForObjectDocumentTimeoutId),delete n(c).object)}}return{makeDetectable:a,addListener:i,uninstall:l}}});var Hg=m((S_,kg)=>{"use strict";var uL=Xs().forEach;kg.exports=function(t){t=t||{};var e=t.reporter,r=t.batchProcessor,n=t.stateHandler.getState,i=t.stateHandler.hasState,o=t.idHandler;if(!r)throw new Error("Missing required dependency: batchProcessor");if(!e)throw new Error("Missing required dependency: reporter.");var a=d(),s="erd_scroll_detection_scrollbar_style",l="erd_scroll_detection_container";function c(S){f(S,s,l)}c(window.document);function u(S){var w=t.important?" !important; ":"; ";return(S.join(w)+w).trim()}function d(){var S=500,w=500,g=document.createElement("div");g.style.cssText=u(["position: absolute","width: "+S*2+"px","height: "+w*2+"px","visibility: hidden","margin: 0","padding: 0"]);var h=document.createElement("div");h.style.cssText=u(["position: absolute","width: "+S+"px","height: "+w+"px","overflow: scroll","visibility: none","top: "+-S*3+"px","left: "+-w*3+"px","visibility: hidden","margin: 0","padding: 0"]),h.appendChild(g),document.body.insertBefore(h,document.body.firstChild);var O=S-h.clientWidth,H=w-h.clientHeight;return document.body.removeChild(h),{width:O,height:H}}function f(S,w,g){function h(A,k){k=k||function(K){S.head.appendChild(K)};var Q=S.createElement("style");return Q.innerHTML=A,Q.id=w,k(Q),Q}if(!S.getElementById(w)){var O=g+"_animation",H=g+"_animation_active",_=`/* Created by the element-resize-detector library. */
`;_+="."+g+" > div::-webkit-scrollbar { "+u(["display: none"])+` }

`,_+="."+H+" { "+u(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+O,"animation-name: "+O])+` }
`,_+="@-webkit-keyframes "+O+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
`,_+="@keyframes "+O+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",h(_)}}function y(S){S.className+=" "+l+"_animation_active"}function T(S,w,g){if(S.addEventListener)S.addEventListener(w,g);else if(S.attachEvent)S.attachEvent("on"+w,g);else return e.error("[scroll] Don't know how to add event listeners.")}function p(S,w,g){if(S.removeEventListener)S.removeEventListener(w,g);else if(S.detachEvent)S.detachEvent("on"+w,g);else return e.error("[scroll] Don't know how to remove event listeners.")}function v(S){return n(S).container.childNodes[0].childNodes[0].childNodes[0]}function E(S){return n(S).container.childNodes[0].childNodes[0].childNodes[1]}function I(S,w){var g=n(S).listeners;if(!g.push)throw new Error("Cannot add listener to an element that is not detectable.");n(S).listeners.push(w)}function R(S,w,g){g||(g=w,w=S,S=null),S=S||{};function h(){if(S.debug){var j=Array.prototype.slice.call(arguments);if(j.unshift(o.get(w),"Scroll: "),e.log.apply)e.log.apply(null,j);else for(var Z=0;Z<j.length;Z++)e.log(j[Z])}}function O(j){function Z(ae){var je=ae.getRootNode&&ae.getRootNode().contains(ae);return ae===ae.ownerDocument.body||ae.ownerDocument.body.contains(ae)||je}return!Z(j)||window.getComputedStyle(j)===null}function H(j){var Z=n(j).container.childNodes[0],ae=window.getComputedStyle(Z);return!ae.width||ae.width.indexOf("px")===-1}function _(){var j=window.getComputedStyle(w),Z={};return Z.position=j.position,Z.width=w.offsetWidth,Z.height=w.offsetHeight,Z.top=j.top,Z.right=j.right,Z.bottom=j.bottom,Z.left=j.left,Z.widthCSS=j.width,Z.heightCSS=j.height,Z}function A(){var j=_();n(w).startSize={width:j.width,height:j.height},h("Element start size",n(w).startSize)}function k(){n(w).listeners=[]}function Q(){if(h("storeStyle invoked."),!n(w)){h("Aborting because element has been uninstalled");return}var j=_();n(w).style=j}function K(j,Z,ae){n(j).lastWidth=Z,n(j).lastHeight=ae}function L(j){return v(j).childNodes[0]}function C(){return 2*a.width+1}function N(){return 2*a.height+1}function G(j){return j+10+C()}function W(j){return j+10+N()}function ie(j){return j*2+C()}function ye(j){return j*2+N()}function he(j,Z,ae){var je=v(j),rt=E(j),ht=G(Z),B=W(ae),D=ie(Z),q=ye(ae);je.scrollLeft=ht,je.scrollTop=B,rt.scrollLeft=D,rt.scrollTop=q}function Te(){var j=n(w).container;if(!j){j=document.createElement("div"),j.className=l,j.style.cssText=u(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),n(w).container=j,y(j),w.appendChild(j);var Z=function(){n(w).onRendered&&n(w).onRendered()};T(j,"animationstart",Z),n(w).onAnimationStart=Z}return j}function ve(){function j(){var de=n(w).style;if(de.position==="static"){w.style.setProperty("position","relative",S.important?"important":"");var Re=function(gt,st,lo,yt){function kr(Dn){return Dn.replace(/[^-\d\.]/g,"")}var ze=lo[yt];ze!=="auto"&&kr(ze)!=="0"&&(gt.warn("An element that is positioned static has style."+yt+"="+ze+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+yt+" will be set to 0. Element: ",st),st.style[yt]=0)};Re(e,w,de,"top"),Re(e,w,de,"right"),Re(e,w,de,"bottom"),Re(e,w,de,"left")}}function Z(de,Re,gt,st){return de=de?de+"px":"0",Re=Re?Re+"px":"0",gt=gt?gt+"px":"0",st=st?st+"px":"0",["left: "+de,"top: "+Re,"right: "+st,"bottom: "+gt]}if(h("Injecting elements"),!n(w)){h("Aborting because element has been uninstalled");return}j();var ae=n(w).container;ae||(ae=Te());var je=a.width,rt=a.height,ht=u(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),B=u(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(Z(-(1+je),-(1+rt),-rt,-je))),D=u(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),q=u(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),X=u(["position: absolute","left: 0","top: 0"]),se=u(["position: absolute","width: 200%","height: 200%"]),He=document.createElement("div"),Le=document.createElement("div"),We=document.createElement("div"),Qt=document.createElement("div"),kt=document.createElement("div"),Rn=document.createElement("div");He.dir="ltr",He.style.cssText=ht,He.className=l,Le.className=l,Le.style.cssText=B,We.style.cssText=D,Qt.style.cssText=X,kt.style.cssText=q,Rn.style.cssText=se,We.appendChild(Qt),kt.appendChild(Rn),Le.appendChild(We),Le.appendChild(kt),He.appendChild(Le),ae.appendChild(He);function _n(){var de=n(w);de&&de.onExpand?de.onExpand():h("Aborting expand scroll handler: element has been uninstalled")}function Nn(){var de=n(w);de&&de.onShrink?de.onShrink():h("Aborting shrink scroll handler: element has been uninstalled")}T(We,"scroll",_n),T(kt,"scroll",Nn),n(w).onExpandScroll=_n,n(w).onShrinkScroll=Nn}function Pt(){function j(D,q,X){var se=L(D),He=G(q),Le=W(X);se.style.setProperty("width",He+"px",S.important?"important":""),se.style.setProperty("height",Le+"px",S.important?"important":"")}function Z(D){var q=w.offsetWidth,X=w.offsetHeight,se=q!==n(w).lastWidth||X!==n(w).lastHeight;h("Storing current size",q,X),K(w,q,X),r.add(0,function(){if(!!se){if(!n(w)){h("Aborting because element has been uninstalled");return}if(!ae()){h("Aborting because element container has not been initialized");return}if(S.debug){var Le=w.offsetWidth,We=w.offsetHeight;(Le!==q||We!==X)&&e.warn(o.get(w),"Scroll: Size changed before updating detector elements.")}j(w,q,X)}}),r.add(1,function(){if(!n(w)){h("Aborting because element has been uninstalled");return}if(!ae()){h("Aborting because element container has not been initialized");return}he(w,q,X)}),se&&D&&r.add(2,function(){if(!n(w)){h("Aborting because element has been uninstalled");return}if(!ae()){h("Aborting because element container has not been initialized");return}D()})}function ae(){return!!n(w).container}function je(){function D(){return n(w).lastNotifiedWidth===void 0}h("notifyListenersIfNeeded invoked");var q=n(w);if(D()&&q.lastWidth===q.startSize.width&&q.lastHeight===q.startSize.height)return h("Not notifying: Size is the same as the start size, and there has been no notification yet.");if(q.lastWidth===q.lastNotifiedWidth&&q.lastHeight===q.lastNotifiedHeight)return h("Not notifying: Size already notified");h("Current size not notified, notifying..."),q.lastNotifiedWidth=q.lastWidth,q.lastNotifiedHeight=q.lastHeight,uL(n(w).listeners,function(X){X(w)})}function rt(){if(h("startanimation triggered."),H(w)){h("Ignoring since element is still unrendered...");return}h("Element rendered.");var D=v(w),q=E(w);(D.scrollLeft===0||D.scrollTop===0||q.scrollLeft===0||q.scrollTop===0)&&(h("Scrollbars out of sync. Updating detector elements..."),Z(je))}function ht(){if(h("Scroll detected."),H(w)){h("Scroll event fired while unrendered. Ignoring...");return}Z(je)}if(h("registerListenersAndPositionElements invoked."),!n(w)){h("Aborting because element has been uninstalled");return}n(w).onRendered=rt,n(w).onExpand=ht,n(w).onShrink=ht;var B=n(w).style;j(w,B.width,B.height)}function at(){if(h("finalizeDomMutation invoked."),!n(w)){h("Aborting because element has been uninstalled");return}var j=n(w).style;K(w,j.width,j.height),he(w,j.width,j.height)}function $e(){g(w)}function Hn(){h("Installing..."),k(),A(),r.add(0,Q),r.add(1,ve),r.add(2,Pt),r.add(3,at),r.add(4,$e)}h("Making detectable..."),O(w)?(h("Element is detached"),Te(),h("Waiting until element is attached..."),n(w).onRendered=function(){h("Element is now attached"),Hn()}):Hn()}function M(S){var w=n(S);!w||(w.onExpandScroll&&p(v(S),"scroll",w.onExpandScroll),w.onShrinkScroll&&p(E(S),"scroll",w.onShrinkScroll),w.onAnimationStart&&p(w.container,"animationstart",w.onAnimationStart),w.container&&S.removeChild(w.container))}return{makeDetectable:R,addListener:I,uninstall:M,initDocument:c}}});var Bg=m((x_,Fg)=>{"use strict";var yn=Xs().forEach,dL=ug(),fL=fg(),pL=mg(),mL=gg(),hL=vg(),Rg=Js(),gL=Lg(),Ct=Mg(),yL=Pg(),vL=Hg();function _g(t){return Array.isArray(t)||t.length!==void 0}function Ng(t){if(Array.isArray(t))return t;var e=[];return yn(t,function(r){e.push(r)}),e}function Dg(t){return t&&t.nodeType===1}Fg.exports=function(t){t=t||{};var e;if(t.idHandler)e={get:function(I){return t.idHandler.get(I,!0)},set:t.idHandler.set};else{var r=pL(),n=mL({idGenerator:r,stateHandler:Ct});e=n}var i=t.reporter;if(!i){var o=i===!1;i=hL(o)}var a=Mt(t,"batchProcessor",gL({reporter:i})),s={};s.callOnAdd=!!Mt(t,"callOnAdd",!0),s.debug=!!Mt(t,"debug",!1);var l=fL(e),c=dL({stateHandler:Ct}),u,d=Mt(t,"strategy","object"),f=Mt(t,"important",!1),y={reporter:i,batchProcessor:a,stateHandler:Ct,idHandler:e,important:f};if(d==="scroll"&&(Rg.isLegacyOpera()?(i.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),d="object"):Rg.isIE(9)&&(i.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),d="object")),d==="scroll")u=vL(y);else if(d==="object")u=yL(y);else throw new Error("Invalid strategy name: "+d);var T={};function p(I,R,M){function S(_){var A=l.get(_);yn(A,function(Q){Q(_)})}function w(_,A,k){l.add(A,k),_&&k(A)}if(M||(M=R,R=I,I={}),!R)throw new Error("At least one element required.");if(!M)throw new Error("Listener required.");if(Dg(R))R=[R];else if(_g(R))R=Ng(R);else return i.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");var g=0,h=Mt(I,"callOnAdd",s.callOnAdd),O=Mt(I,"onReady",function(){}),H=Mt(I,"debug",s.debug);yn(R,function(A){Ct.getState(A)||(Ct.initState(A),e.set(A));var k=e.get(A);if(H&&i.log("Attaching listener to element",k,A),!c.isDetectable(A)){if(H&&i.log(k,"Not detectable."),c.isBusy(A)){H&&i.log(k,"System busy making it detectable"),w(h,A,M),T[k]=T[k]||[],T[k].push(function(){g++,g===R.length&&O()});return}return H&&i.log(k,"Making detectable..."),c.markBusy(A,!0),u.makeDetectable({debug:H,important:f},A,function(K){if(H&&i.log(k,"onElementDetectable"),Ct.getState(K)){c.markAsDetectable(K),c.markBusy(K,!1),u.addListener(K,S),w(h,K,M);var L=Ct.getState(K);if(L&&L.startSize){var C=K.offsetWidth,N=K.offsetHeight;(L.startSize.width!==C||L.startSize.height!==N)&&S(K)}T[k]&&yn(T[k],function(G){G()})}else H&&i.log(k,"Element uninstalled before being detectable.");delete T[k],g++,g===R.length&&O()})}H&&i.log(k,"Already detecable, adding listener."),w(h,A,M),g++}),g===R.length&&O()}function v(I){if(!I)return i.error("At least one element is required.");if(Dg(I))I=[I];else if(_g(I))I=Ng(I);else return i.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");yn(I,function(R){l.removeAllListeners(R),u.uninstall(R),Ct.cleanState(R)})}function E(I){u.initDocument&&u.initDocument(I)}return{listenTo:p,removeListener:l.removeListener,removeAllListeners:l.removeAllListeners,uninstall:v,initDocument:E}};function Mt(t,e,r){var n=t[e];return n==null&&r!==void 0?r:n}});var ji=m((K_,$g)=>{$g.exports=RL;function RL(t,e,r){return e<r?t<e?e:t>r?r:t:t<r?r:t>e?e:t}});var gl=m((KN,ny)=>{"use strict";var ry=Object.prototype.toString;ny.exports=function(e){var r=ry.call(e),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&ry.call(e.callee)==="[object Function]"),n}});var fy=m((XN,dy)=>{"use strict";var uy;Object.keys||(Sn=Object.prototype.hasOwnProperty,yl=Object.prototype.toString,iy=gl(),vl=Object.prototype.propertyIsEnumerable,oy=!vl.call({toString:null},"toString"),ay=vl.call(function(){},"prototype"),xn=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Vi=function(t){var e=t.constructor;return e&&e.prototype===t},sy={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},ly=function(){if(typeof window=="undefined")return!1;for(var t in window)try{if(!sy["$"+t]&&Sn.call(window,t)&&window[t]!==null&&typeof window[t]=="object")try{Vi(window[t])}catch(e){return!0}}catch(e){return!0}return!1}(),cy=function(t){if(typeof window=="undefined"||!ly)return Vi(t);try{return Vi(t)}catch(e){return!1}},uy=function(e){var r=e!==null&&typeof e=="object",n=yl.call(e)==="[object Function]",i=iy(e),o=r&&yl.call(e)==="[object String]",a=[];if(!r&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var s=ay&&n;if(o&&e.length>0&&!Sn.call(e,0))for(var l=0;l<e.length;++l)a.push(String(l));if(i&&e.length>0)for(var c=0;c<e.length;++c)a.push(String(c));else for(var u in e)!(s&&u==="prototype")&&Sn.call(e,u)&&a.push(String(u));if(oy)for(var d=cy(e),f=0;f<xn.length;++f)!(d&&xn[f]==="constructor")&&Sn.call(e,xn[f])&&a.push(xn[f]);return a});var Sn,yl,iy,vl,oy,ay,xn,Vi,sy,ly,cy;dy.exports=uy});var bl=m((JN,hy)=>{"use strict";var tA=Array.prototype.slice,rA=gl(),py=Object.keys,$i=py?function(e){return py(e)}:fy(),my=Object.keys;$i.shim=function(){if(Object.keys){var e=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);e||(Object.keys=function(n){return rA(n)?my(tA.call(n)):my(n)})}else Object.keys=$i;return Object.keys||$i};hy.exports=$i});var El=m((ZN,gy)=>{"use strict";gy.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[r]=i;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,r);if(a.value!==i||a.enumerable!==!0)return!1}return!0}});var Wi=m((QN,yy)=>{"use strict";var nA=El();yy.exports=function(){return nA()&&!!Symbol.toStringTag}});var Ey=m((eD,by)=>{"use strict";var vy=typeof Symbol!="undefined"&&Symbol,iA=El();by.exports=function(){return typeof vy!="function"||typeof Symbol!="function"||typeof vy("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:iA()}});var Ty=m((tD,wy)=>{"use strict";var oA="Function.prototype.bind called on incompatible ",wl=Array.prototype.slice,aA=Object.prototype.toString,sA="[object Function]";wy.exports=function(e){var r=this;if(typeof r!="function"||aA.call(r)!==sA)throw new TypeError(oA+r);for(var n=wl.call(arguments,1),i,o=function(){if(this instanceof i){var u=r.apply(this,n.concat(wl.call(arguments)));return Object(u)===u?u:this}else return r.apply(e,n.concat(wl.call(arguments)))},a=Math.max(0,r.length-n.length),s=[],l=0;l<a;l++)s.push("$"+l);if(i=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var c=function(){};c.prototype=r.prototype,i.prototype=new c,c.prototype=null}return i}});var Gi=m((rD,Sy)=>{"use strict";var lA=Ty();Sy.exports=Function.prototype.bind||lA});var Iy=m((nD,xy)=>{"use strict";var cA=Gi();xy.exports=cA.call(Function.call,Object.prototype.hasOwnProperty)});var xl=m((iD,My)=>{"use strict";var te,In=SyntaxError,Cy=Function,Sr=TypeError,Tl=function(t){try{return Cy('"use strict"; return ('+t+").constructor;")()}catch(e){}},$t=Object.getOwnPropertyDescriptor;if($t)try{$t({},"")}catch(t){$t=null}var Sl=function(){throw new Sr},uA=$t?function(){try{return arguments.callee,Sl}catch(t){try{return $t(arguments,"callee").get}catch(e){return Sl}}}():Sl,wr=Ey()(),Ot=Object.getPrototypeOf||function(t){return t.__proto__},Tr={},dA=typeof Uint8Array=="undefined"?te:Ot(Uint8Array),xr={"%AggregateError%":typeof AggregateError=="undefined"?te:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?te:ArrayBuffer,"%ArrayIteratorPrototype%":wr?Ot([][Symbol.iterator]()):te,"%AsyncFromSyncIteratorPrototype%":te,"%AsyncFunction%":Tr,"%AsyncGenerator%":Tr,"%AsyncGeneratorFunction%":Tr,"%AsyncIteratorPrototype%":Tr,"%Atomics%":typeof Atomics=="undefined"?te:Atomics,"%BigInt%":typeof BigInt=="undefined"?te:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?te:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?te:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?te:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?te:FinalizationRegistry,"%Function%":Cy,"%GeneratorFunction%":Tr,"%Int8Array%":typeof Int8Array=="undefined"?te:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?te:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?te:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":wr?Ot(Ot([][Symbol.iterator]())):te,"%JSON%":typeof JSON=="object"?JSON:te,"%Map%":typeof Map=="undefined"?te:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!wr?te:Ot(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?te:Promise,"%Proxy%":typeof Proxy=="undefined"?te:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?te:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?te:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!wr?te:Ot(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?te:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":wr?Ot(""[Symbol.iterator]()):te,"%Symbol%":wr?Symbol:te,"%SyntaxError%":In,"%ThrowTypeError%":uA,"%TypedArray%":dA,"%TypeError%":Sr,"%Uint8Array%":typeof Uint8Array=="undefined"?te:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?te:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?te:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?te:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?te:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?te:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?te:WeakSet},fA=function t(e){var r;if(e==="%AsyncFunction%")r=Tl("async function () {}");else if(e==="%GeneratorFunction%")r=Tl("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Tl("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&(r=Ot(i.prototype))}return xr[e]=r,r},Ly={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Xi=Gi(),Yi=Iy(),pA=Xi.call(Function.call,Array.prototype.concat),mA=Xi.call(Function.apply,Array.prototype.splice),Ay=Xi.call(Function.call,String.prototype.replace),Ki=Xi.call(Function.call,String.prototype.slice),hA=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,gA=/\\(\\)?/g,yA=function(e){var r=Ki(e,0,1),n=Ki(e,-1);if(r==="%"&&n!=="%")throw new In("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new In("invalid intrinsic syntax, expected opening `%`");var i=[];return Ay(e,hA,function(o,a,s,l){i[i.length]=s?Ay(l,gA,"$1"):a||o}),i},vA=function(e,r){var n=e,i;if(Yi(Ly,n)&&(i=Ly[n],n="%"+i[0]+"%"),Yi(xr,n)){var o=xr[n];if(o===Tr&&(o=fA(n)),typeof o=="undefined"&&!r)throw new Sr("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new In("intrinsic "+e+" does not exist!")};My.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new Sr("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Sr('"allowMissing" argument must be a boolean');var n=yA(e),i=n.length>0?n[0]:"",o=vA("%"+i+"%",r),a=o.name,s=o.value,l=!1,c=o.alias;c&&(i=c[0],mA(n,pA([0,1],c)));for(var u=1,d=!0;u<n.length;u+=1){var f=n[u],y=Ki(f,0,1),T=Ki(f,-1);if((y==='"'||y==="'"||y==="`"||T==='"'||T==="'"||T==="`")&&y!==T)throw new In("property names with quotes must have matching quotes");if((f==="constructor"||!d)&&(l=!0),i+="."+f,a="%"+i+"%",Yi(xr,a))s=xr[a];else if(s!=null){if(!(f in s)){if(!r)throw new Sr("base intrinsic for "+e+" exists, but the property is not available.");return}if($t&&u+1>=n.length){var p=$t(s,f);d=!!p,d&&"get"in p&&!("originalValue"in p.get)?s=p.get:s=s[f]}else d=Yi(s,f),s=s[f];d&&!l&&(xr[a]=s)}}return s}});var Zi=m((oD,Ji)=>{"use strict";var Il=Gi(),Ir=xl(),ky=Ir("%Function.prototype.apply%"),Hy=Ir("%Function.prototype.call%"),Ry=Ir("%Reflect.apply%",!0)||Il.call(Hy,ky),Oy=Ir("%Object.getOwnPropertyDescriptor%",!0),Wt=Ir("%Object.defineProperty%",!0),bA=Ir("%Math.max%");if(Wt)try{Wt({},"a",{value:1})}catch(t){Wt=null}Ji.exports=function(e){var r=Ry(Il,Hy,arguments);if(Oy&&Wt){var n=Oy(r,"length");n.configurable&&Wt(r,"length",{value:1+bA(0,e.length-(arguments.length-1))})}return r};var Py=function(){return Ry(Il,ky,arguments)};Wt?Wt(Ji.exports,"apply",{value:Py}):Ji.exports.apply=Py});var Ll=m((aD,Dy)=>{"use strict";var _y=xl(),Ny=Zi(),EA=Ny(_y("String.prototype.indexOf"));Dy.exports=function(e,r){var n=_y(e,!!r);return typeof n=="function"&&EA(e,".prototype.")>-1?Ny(n):n}});var qy=m((sD,By)=>{"use strict";var wA=Wi()(),TA=Ll(),Al=TA("Object.prototype.toString"),Qi=function(e){return wA&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:Al(e)==="[object Arguments]"},Fy=function(e){return Qi(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Al(e)!=="[object Array]"&&Al(e.callee)==="[object Function]"},SA=function(){return Qi(arguments)}();Qi.isLegacyArguments=Fy;By.exports=SA?Qi:Fy});var Lr=m((lD,Uy)=>{"use strict";var xA=bl(),IA=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",LA=Object.prototype.toString,AA=Array.prototype.concat,Cl=Object.defineProperty,CA=function(t){return typeof t=="function"&&LA.call(t)==="[object Function]"},MA=function(){var t={};try{Cl(t,"x",{enumerable:!1,value:t});for(var e in t)return!1;return t.x===t}catch(r){return!1}},jy=Cl&&MA(),OA=function(t,e,r,n){e in t&&(!CA(n)||!n())||(jy?Cl(t,e,{configurable:!0,enumerable:!1,value:r,writable:!0}):t[e]=r)},zy=function(t,e){var r=arguments.length>2?arguments[2]:{},n=xA(e);IA&&(n=AA.call(n,Object.getOwnPropertySymbols(e)));for(var i=0;i<n.length;i+=1)OA(t,n[i],e[n[i]],r[n[i]])};zy.supportsDescriptors=!!jy;Uy.exports=zy});var Ml=m((cD,$y)=>{"use strict";var Vy=function(t){return t!==t};$y.exports=function(e,r){return e===0&&r===0?1/e===1/r:!!(e===r||Vy(e)&&Vy(r))}});var Ol=m((uD,Wy)=>{"use strict";var PA=Ml();Wy.exports=function(){return typeof Object.is=="function"?Object.is:PA}});var Yy=m((dD,Gy)=>{"use strict";var kA=Ol(),HA=Lr();Gy.exports=function(){var e=kA();return HA(Object,{is:e},{is:function(){return Object.is!==e}}),e}});var Zy=m((fD,Jy)=>{"use strict";var RA=Lr(),_A=Zi(),NA=Ml(),Ky=Ol(),DA=Yy(),Xy=_A(Ky(),Object);RA(Xy,{getPolyfill:Ky,implementation:NA,shim:DA});Jy.exports=Xy});var nv=m((pD,rv)=>{"use strict";var Pl=Ll(),Qy=Wi()(),ev,tv,kl,Hl;Qy&&(ev=Pl("Object.prototype.hasOwnProperty"),tv=Pl("RegExp.prototype.exec"),kl={},eo=function(){throw kl},Hl={toString:eo,valueOf:eo},typeof Symbol.toPrimitive=="symbol"&&(Hl[Symbol.toPrimitive]=eo));var eo,FA=Pl("Object.prototype.toString"),BA=Object.getOwnPropertyDescriptor,qA="[object RegExp]";rv.exports=Qy?function(e){if(!e||typeof e!="object")return!1;var r=BA(e,"lastIndex"),n=r&&ev(r,"value");if(!n)return!1;try{tv(e,Hl)}catch(i){return i===kl}}:function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:FA(e)===qA}});var Rl=m((mD,iv)=>{"use strict";var jA=Object,zA=TypeError;iv.exports=function(){if(this!=null&&this!==jA(this))throw new zA("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.sticky&&(e+="y"),e}});var _l=m((hD,ov)=>{"use strict";var UA=Rl(),VA=Lr().supportsDescriptors,$A=Object.getOwnPropertyDescriptor;ov.exports=function(){if(VA&&/a/mig.flags==="gim"){var e=$A(RegExp.prototype,"flags");if(e&&typeof e.get=="function"&&typeof/a/.dotAll=="boolean")return e.get}return UA}});var lv=m((gD,sv)=>{"use strict";var WA=Lr().supportsDescriptors,GA=_l(),YA=Object.getOwnPropertyDescriptor,KA=Object.defineProperty,XA=TypeError,av=Object.getPrototypeOf,JA=/a/;sv.exports=function(){if(!WA||!av)throw new XA("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=GA(),r=av(JA),n=YA(r,"flags");return(!n||n.get!==e)&&KA(r,"flags",{configurable:!0,enumerable:!1,get:e}),e}});var fv=m((yD,dv)=>{"use strict";var ZA=Lr(),QA=Zi(),eC=Rl(),cv=_l(),tC=lv(),uv=QA(cv());ZA(uv,{getPolyfill:cv,implementation:eC,shim:tC});dv.exports=uv});var mv=m((vD,pv)=>{"use strict";var rC=Date.prototype.getDay,nC=function(e){try{return rC.call(e),!0}catch(r){return!1}},iC=Object.prototype.toString,oC="[object Date]",aC=Wi()();pv.exports=function(e){return typeof e!="object"||e===null?!1:aC?nC(e):iC.call(e)===oC}});var Nl=m((bD,Iv)=>{var hv=bl(),gv=qy(),yv=Zy(),vv=nv(),bv=fv(),Ev=mv(),wv=Date.prototype.getTime;function xv(t,e,r){var n=r||{};return(n.strict?yv(t,e):t===e)?!0:!t||!e||typeof t!="object"&&typeof e!="object"?n.strict?yv(t,e):t==e:sC(t,e,n)}function Tv(t){return t==null}function Sv(t){return!(!t||typeof t!="object"||typeof t.length!="number"||typeof t.copy!="function"||typeof t.slice!="function"||t.length>0&&typeof t[0]!="number")}function sC(t,e,r){var n,i;if(typeof t!=typeof e||Tv(t)||Tv(e)||t.prototype!==e.prototype||gv(t)!==gv(e))return!1;var o=vv(t),a=vv(e);if(o!==a)return!1;if(o||a)return t.source===e.source&&bv(t)===bv(e);if(Ev(t)&&Ev(e))return wv.call(t)===wv.call(e);var s=Sv(t),l=Sv(e);if(s!==l)return!1;if(s||l){if(t.length!==e.length)return!1;for(n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}if(typeof t!=typeof e)return!1;try{var c=hv(t),u=hv(e)}catch(d){return!1}if(c.length!==u.length)return!1;for(c.sort(),u.sort(),n=c.length-1;n>=0;n--)if(c[n]!=u[n])return!1;for(n=c.length-1;n>=0;n--)if(i=c[n],!xv(t[i],e[i],r))return!1;return!0}Iv.exports=xv});var Av=m((ED,Lv)=>{"use strict";Lv.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var Ov=m((wD,Mv)=>{var Cv=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};Mv.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(t){return Cv()}try{return __global__||Cv()}finally{delete Object.prototype.__global__}}()});var Ln=m((TD,Pv)=>{"use strict";Pv.exports=Av()()?globalThis:Ov()});var Hv=m((SD,kv)=>{"use strict";var lC=Ln(),Dl={object:!0,symbol:!0};kv.exports=function(){var t=lC.Symbol,e;if(typeof t!="function")return!1;e=t("test symbol");try{String(e)}catch(r){return!1}return!(!Dl[typeof t.iterator]||!Dl[typeof t.toPrimitive]||!Dl[typeof t.toStringTag])}});var Fl=m((xD,Rv)=>{"use strict";var cC=void 0;Rv.exports=function(t){return t!==cC&&t!==null}});var Nv=m((ID,_v)=>{"use strict";var uC=Fl(),dC={object:!0,function:!0,undefined:!0};_v.exports=function(t){return uC(t)?hasOwnProperty.call(dC,typeof t):!1}});var Fv=m((LD,Dv)=>{"use strict";var fC=Nv();Dv.exports=function(t){if(!fC(t))return!1;try{return t.constructor?t.constructor.prototype===t:!1}catch(e){return!1}}});var qv=m((AD,Bv)=>{"use strict";var pC=Fv();Bv.exports=function(t){if(typeof t!="function"||!hasOwnProperty.call(t,"length"))return!1;try{if(typeof t.length!="number"||typeof t.call!="function"||typeof t.apply!="function")return!1}catch(e){return!1}return!pC(t)}});var zv=m((CD,jv)=>{"use strict";var mC=qv(),hC=/^\s*class[\s{/}]/,gC=Function.prototype.toString;jv.exports=function(t){return!(!mC(t)||hC.test(gC.call(t)))}});var Vv=m((MD,Uv)=>{"use strict";Uv.exports=function(){var t=Object.assign,e;return typeof t!="function"?!1:(e={foo:"raz"},t(e,{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}});var Wv=m((OD,$v)=>{"use strict";$v.exports=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}});var Yv=m((PD,Gv)=>{"use strict";Gv.exports=function(){}});var to=m((kD,Kv)=>{"use strict";var yC=Yv()();Kv.exports=function(t){return t!==yC&&t!==null}});var Jv=m((HD,Xv)=>{"use strict";var vC=to(),bC=Object.keys;Xv.exports=function(t){return bC(vC(t)?Object(t):t)}});var Qv=m((RD,Zv)=>{"use strict";Zv.exports=Wv()()?Object.keys:Jv()});var tb=m((_D,eb)=>{"use strict";var EC=to();eb.exports=function(t){if(!EC(t))throw new TypeError("Cannot use null or undefined");return t}});var nb=m((ND,rb)=>{"use strict";var wC=Qv(),TC=tb(),xC=Math.max;rb.exports=function(t,e){var r,n,i=xC(arguments.length,2),o;for(t=Object(TC(t)),o=function(a){try{t[a]=e[a]}catch(s){r||(r=s)}},n=1;n<i;++n)e=arguments[n],wC(e).forEach(o);if(r!==void 0)throw r;return t}});var ob=m((DD,ib)=>{"use strict";ib.exports=Vv()()?Object.assign:nb()});var sb=m((FD,ab)=>{"use strict";var IC=to(),LC=Array.prototype.forEach,AC=Object.create,CC=function(t,e){var r;for(r in t)e[r]=t[r]};ab.exports=function(t){var e=AC(null);return LC.call(arguments,function(r){!IC(r)||CC(Object(r),e)}),e}});var cb=m((BD,lb)=>{"use strict";var Bl="razdwatrzy";lb.exports=function(){return typeof Bl.contains!="function"?!1:Bl.contains("dwa")===!0&&Bl.contains("foo")===!1}});var db=m((qD,ub)=>{"use strict";var MC=String.prototype.indexOf;ub.exports=function(t){return MC.call(this,t,arguments[1])>-1}});var pb=m((jD,fb)=>{"use strict";fb.exports=cb()()?String.prototype.contains:db()});var Cn=m((zD,yb)=>{"use strict";var ro=Fl(),mb=zv(),hb=ob(),gb=sb(),An=pb(),OC=yb.exports=function(t,e){var r,n,i,o,a;return arguments.length<2||typeof t!="string"?(o=e,e=t,t=null):o=arguments[2],ro(t)?(r=An.call(t,"c"),n=An.call(t,"e"),i=An.call(t,"w")):(r=i=!0,n=!1),a={value:e,configurable:r,enumerable:n,writable:i},o?hb(gb(o),a):a};OC.gs=function(t,e,r){var n,i,o,a;return typeof t!="string"?(o=r,r=e,e=t,t=null):o=arguments[3],ro(e)?mb(e)?ro(r)?mb(r)||(o=r,r=void 0):r=void 0:(o=e,e=r=void 0):e=void 0,ro(t)?(n=An.call(t,"c"),i=An.call(t,"e")):(n=!0,i=!1),a={get:e,set:r,configurable:n,enumerable:i},o?hb(gb(o),a):a}});var bb=m((UD,vb)=>{"use strict";vb.exports=function(t){return t?typeof t=="symbol"?!0:!t.constructor||t.constructor.name!=="Symbol"?!1:t[t.constructor.toStringTag]==="Symbol":!1}});var ql=m((VD,Eb)=>{"use strict";var PC=bb();Eb.exports=function(t){if(!PC(t))throw new TypeError(t+" is not a symbol");return t}});var Ib=m(($D,xb)=>{"use strict";var wb=Cn(),kC=Object.create,Tb=Object.defineProperty,HC=Object.prototype,Sb=kC(null);xb.exports=function(t){for(var e=0,r,n;Sb[t+(e||"")];)++e;return t+=e||"",Sb[t]=!0,r="@@"+t,Tb(HC,r,wb.gs(null,function(i){n||(n=!0,Tb(this,r,wb(i)),n=!1)})),r}});var Ab=m((WD,Lb)=>{"use strict";var Qe=Cn(),ue=Ln().Symbol;Lb.exports=function(t){return Object.defineProperties(t,{hasInstance:Qe("",ue&&ue.hasInstance||t("hasInstance")),isConcatSpreadable:Qe("",ue&&ue.isConcatSpreadable||t("isConcatSpreadable")),iterator:Qe("",ue&&ue.iterator||t("iterator")),match:Qe("",ue&&ue.match||t("match")),replace:Qe("",ue&&ue.replace||t("replace")),search:Qe("",ue&&ue.search||t("search")),species:Qe("",ue&&ue.species||t("species")),split:Qe("",ue&&ue.split||t("split")),toPrimitive:Qe("",ue&&ue.toPrimitive||t("toPrimitive")),toStringTag:Qe("",ue&&ue.toStringTag||t("toStringTag")),unscopables:Qe("",ue&&ue.unscopables||t("unscopables"))})}});var Ob=m((GD,Mb)=>{"use strict";var Cb=Cn(),RC=ql(),Mn=Object.create(null);Mb.exports=function(t){return Object.defineProperties(t,{for:Cb(function(e){return Mn[e]?Mn[e]:Mn[e]=t(String(e))}),keyFor:Cb(function(e){var r;RC(e);for(r in Mn)if(Mn[r]===e)return r})})}});var Hb=m((YD,kb)=>{"use strict";var it=Cn(),jl=ql(),no=Ln().Symbol,_C=Ib(),NC=Ab(),DC=Ob(),FC=Object.create,zl=Object.defineProperties,io=Object.defineProperty,Me,Ar,Pb;if(typeof no=="function")try{String(no()),Pb=!0}catch(t){}else no=null;Ar=function(e){if(this instanceof Ar)throw new TypeError("Symbol is not a constructor");return Me(e)};kb.exports=Me=function t(e){var r;if(this instanceof t)throw new TypeError("Symbol is not a constructor");return Pb?no(e):(r=FC(Ar.prototype),e=e===void 0?"":String(e),zl(r,{__description__:it("",e),__name__:it("",_C(e))}))};NC(Me);DC(Me);zl(Ar.prototype,{constructor:it(Me),toString:it("",function(){return this.__name__})});zl(Me.prototype,{toString:it(function(){return"Symbol ("+jl(this).__description__+")"}),valueOf:it(function(){return jl(this)})});io(Me.prototype,Me.toPrimitive,it("",function(){var t=jl(this);return typeof t=="symbol"?t:t.toString()}));io(Me.prototype,Me.toStringTag,it("c","Symbol"));io(Ar.prototype,Me.toStringTag,it("c",Me.prototype[Me.toStringTag]));io(Ar.prototype,Me.toPrimitive,it("c",Me.prototype[Me.toPrimitive]))});var _b=m((KD,Rb)=>{"use strict";Rb.exports=Hv()()?Ln().Symbol:Hb()});var Nq=J(ap()),Dq=J(pp()),Fq=J(Cp()),Bq=J(Vp());(function(t){typeof t.matches!="function"&&(t.matches=t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||function(r){for(var n=this,i=(n.document||n.ownerDocument).querySelectorAll(r),o=0;i[o]&&i[o]!==n;)++o;return Boolean(i[o])}),typeof t.closest!="function"&&(t.closest=function(r){for(var n=this;n&&n.nodeType===1;){if(n.matches(r))return n;n=n.parentNode}return null})})(window.Element.prototype);var jq=J(Wp());var Qp=J(Gp());function x(t,e=null){let n=CS(e).querySelectorAll(t);return Array.from(n)}function V(t,e=null){let r=x(t,e);return r.length===0?!1:r[0]}function CS(t){return t||(window.__shadowRoot?window.__shadowRoot.querySelector("article"):document)}(function(t,e){"use strict";var r=/Edge\/\d+/i.test(navigator.userAgent);if(!r&&"IntersectionObserver"in t&&"IntersectionObserverEntry"in t&&"intersectionRatio"in t.IntersectionObserverEntry.prototype){"isIntersecting"in t.IntersectionObserverEntry.prototype||Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}var n=[];function i(p){this.time=p.time,this.target=p.target,this.rootBounds=p.rootBounds,this.boundingClientRect=p.boundingClientRect,this.intersectionRect=p.intersectionRect||f(),this.isIntersecting=!!p.intersectionRect;var v=this.boundingClientRect,E=v.width*v.height,I=this.intersectionRect,R=I.width*I.height;E?this.intersectionRatio=R/E:this.intersectionRatio=this.isIntersecting?1:0}function o(p,v){var E=v||{};if(typeof p!="function")throw new Error("callback must be a function");if(E.root&&E.root.nodeType!=1)throw new Error("root must be an Element");this._checkForIntersections=s(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=p,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(E.rootMargin),this.thresholds=this._initThresholds(E.threshold),this.root=E.root||null,this.rootMargin=this._rootMarginValues.map(function(I){return I.value+I.unit}).join(" ")}o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o.prototype.observe=function(p){var v=this._observationTargets.some(function(E){return E.element==p});if(!v){if(!(p&&p.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:p,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},o.prototype.unobserve=function(p){this._observationTargets=this._observationTargets.filter(function(v){return v.element!=p}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var p=this._queuedEntries.slice();return this._queuedEntries=[],p},o.prototype._initThresholds=function(p){var v=p||[0];return Array.isArray(v)||(v=[v]),v.sort().filter(function(E,I,R){if(typeof E!="number"||isNaN(E)||E<0||E>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return E!==R[I-1]})},o.prototype._parseRootMargin=function(p){var v=p||"0px",E=v.split(/\s+/).map(function(I){var R=/^(-?\d*\.?\d+)(px|%)$/.exec(I);if(!R)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(R[1]),unit:R[2]}});return E[1]=E[1]||E[0],E[2]=E[2]||E[0],E[3]=E[3]||E[1],E},o.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(l(t,"resize",this._checkForIntersections,!0),l(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in t&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},o.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,c(t,"resize",this._checkForIntersections,!0),c(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},o.prototype._checkForIntersections=function(){var p=this._rootIsInDom(),v=p?this._getRootRect():f();this._observationTargets.forEach(function(E){var I=E.element,R=d(I),M=this._rootContainsTarget(I),S=E.entry,w=p&&M&&this._computeTargetAndRootIntersection(I,v),g=E.entry=new i({time:a(),target:I,boundingClientRect:R,rootBounds:v,intersectionRect:w});S?p&&M?this._hasCrossedThreshold(S,g)&&this._queuedEntries.push(g):S&&S.isIntersecting&&this._queuedEntries.push(g):this._queuedEntries.push(g)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},o.prototype._computeTargetAndRootIntersection=function(p,v){if(t.getComputedStyle(p).display!="none"){for(var E=d(p),I=E,R=T(p),M=!1;!M;){var S=null,w=R.nodeType==1?t.getComputedStyle(R):{};if(w.display=="none")return;if(R==this.root||R==e?(M=!0,S=v):R!=e.body&&R!=e.documentElement&&w.overflow!="visible"&&(S=d(R)),S&&(I=u(S,I),!I))break;R=T(R)}return I}},o.prototype._getRootRect=function(){var p;if(this.root)p=d(this.root);else{var v=e.documentElement,E=e.body;p={top:0,left:0,right:v.clientWidth||E.clientWidth,width:v.clientWidth||E.clientWidth,bottom:v.clientHeight||E.clientHeight,height:v.clientHeight||E.clientHeight}}return this._expandRectByRootMargin(p)},o.prototype._expandRectByRootMargin=function(p){var v=this._rootMarginValues.map(function(I,R){return I.unit=="px"?I.value:I.value*(R%2?p.width:p.height)/100}),E={top:p.top-v[0],right:p.right+v[1],bottom:p.bottom+v[2],left:p.left-v[3]};return E.width=E.right-E.left,E.height=E.bottom-E.top,E},o.prototype._hasCrossedThreshold=function(p,v){var E=p&&p.isIntersecting?p.intersectionRatio||0:-1,I=v.isIntersecting?v.intersectionRatio||0:-1;if(E!==I)for(var R=0;R<this.thresholds.length;R++){var M=this.thresholds[R];if(M==E||M==I||M<E!=M<I)return!0}},o.prototype._rootIsInDom=function(){return!this.root||y(e,this.root)},o.prototype._rootContainsTarget=function(p){return y(this.root||e,p)},o.prototype._registerInstance=function(){n.indexOf(this)<0&&n.push(this)},o.prototype._unregisterInstance=function(){var p=n.indexOf(this);p!=-1&&n.splice(p,1)};function a(){return t.performance&&performance.now&&performance.now()}function s(p,v){var E=null;return function(){E||(E=setTimeout(function(){p(),E=null},v))}}function l(p,v,E,I){typeof p.addEventListener=="function"?p.addEventListener(v,E,I||!1):typeof p.attachEvent=="function"&&p.attachEvent("on"+v,E)}function c(p,v,E,I){typeof p.removeEventListener=="function"?p.removeEventListener(v,E,I||!1):typeof p.detatchEvent=="function"&&p.detatchEvent("on"+v,E)}function u(p,v){var E=Math.max(p.top,v.top),I=Math.min(p.bottom,v.bottom),R=Math.max(p.left,v.left),M=Math.min(p.right,v.right),S=M-R,w=I-E;return S>=0&&w>=0&&{top:E,bottom:I,left:R,right:M,width:S,height:w}}function d(p){var v;try{v=p.getBoundingClientRect()}catch(E){}return v?(v.width&&v.height||(v={top:v.top,right:v.right,bottom:v.bottom,left:v.left,width:v.right-v.left,height:v.bottom-v.top}),v):f()}function f(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function y(p,v){for(var E=v;E;){if(E==p)return!0;E=T(E)}return!1}function T(p){var v=p.parentNode;return v&&v.nodeType==11&&v.host?v.host:v}t.IntersectionObserver=o,t.IntersectionObserverEntry=i})(window,document);window.hasOwnProperty("Shorthand")||(window.Shorthand={});window.Shorthand.lazyloadTriggerMargin=window.Shorthand.lazyloadTriggerMargin||"500%";var La=window.innerHeight||screen.height,MS={["nearly visible"]:"100%",["on visibile"]:"0%",["partially visible"]:"-10%",["mostly visible"]:"-40%",["fully visible"]:"0px",["lazyload"]:window.Shorthand.lazyloadTriggerMargin,["lazyload 3D models"]:`${La*2}px`,["unload 3D models"]:`${La*2+100}px`,["lazy download 3D models"]:`${La*5}px`},OS={["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},Yp=[],Kp=[];function Ue(t){return t.intersectionRatio>=1e-5}function Xp(t,e=null){let r=Yp.find(n=>n.triggerPoint===t&&n.root===e);if(!r){let n={rootMargin:MS[t],threshold:OS[t],root:e},i=new IntersectionObserver(o=>{PS(o,t,e)},n);return Yp.push({instance:i,triggerPoint:t,root:e}),i}return r.instance}function PS(t,e,r=null){t.forEach(n=>{Jp(n.target,e,r).callbacks.forEach(o=>o(n))})}function kS(t,e,r=null){let n={target:t,triggerPoint:e,callbacks:[],root:r};return Kp.push(n),n}function Jp(t,e,r=null){return Kp.find(n=>n.target===t&&n.triggerPoint===e&&n.root===r)}function dr(t,e={}){let r=e.triggerPoint||"on visibile",n=e.root||null;Xp(r,n).unobserve(t)}function Be(t,e,r={}){let n=r.triggerPoint||"on visibile",i=r.root||null,o=Xp(n),a=Jp(t,n,i);a||(a=kS(t,n,i)),a.callbacks.push(e),o.observe(t)}var HS=5,RS=1e3;function _S(t,e){let r={isTracking:!1,trackingStartAt:0,cumulativeLingerTime:0};Be(t,n=>{if(Ue(n)&&!r.isTracking)r.isTracking=!0,r.trackingStartAt=Date.now();else if(r.isTracking){r.isTracking=!1;let i=Math.round((Date.now()-r.trackingStartAt)/RS);if(i<HS)return;r.cumulativeLingerTime+=i,e(i)}})}function NS(t){let e=/\bTheme-(\w+Section)\b/,r=t.match(e);return r!==null?r[1]:"UnknownTypeSection"}function Aa(t,e){t.forEach((r,n)=>{let i=NS(r.className),o=n.toString().padStart(3,"0")+" "+r.id;_S(r,s=>{e(i,"linger-seconds",o,s)})})}function DS(...t){}function di(...t){(window.ga||DS)(...t)}function Ca(t){t.on("logEvent",function(...e){di("send","event",...e),di("shorthand.send","event",...e)}),t.on("logSocial",(...e)=>{di("send","social",...e),di("shorthand.send","social",...e)})}function FS(t){return t.hasAttribute("data-social-share")?{type:"social",network:t.getAttribute("data-social-share"),target:window.location.href}:t.hasAttribute("data-story-nav-item")?{type:"nav-link",target:t.href}:{type:"link",target:t.href,element:t}}function BS(t){let e=FS(t);e.type==="social"?Zp(e.network,"share",e.target):dt(e.type,"click",e.target)}function Ma(){x("a").forEach(e=>e.addEventListener("click",()=>BS(e)))}var Oa=new Qp.default;function dt(...t){Oa.emit("logEvent",...t)}function Zp(...t){Oa.emit("logSocial",...t)}function Pa(){let t=x(".Theme-Section");Ca(Oa),Aa(t,dt),Ma()}var um=J(ce());var mi=J(ce());var om=J(tm());function Tt(t,e,r,n){function i(){t.removeEventListener(e,o,n)}function o(){return i(),r.apply(this,arguments)}return t.addEventListener(e,o,n),i}var qS=nm(),im=["android","ios","firefoxos","windows.phone","windows.mobile","blackberryos"],jS={hasTouch:!1},Ha=null;function Ee(){if(Ha===null){let t=new qS;t.sniff(navigator.userAgent),Ha={isMobile:im.includes(t.os.name),isDesktop:!im.includes(t.os.name),isTablet:!1,isiPhone:t.device.name==="iphone",isiPad:t.device.name==="ipad",isAndroid:t.os.name==="android",isiOS:t.os.name==="ios",isiOS10:t.os.name==="ios"&&t.os.version[0]===10,isMac:t.os.name==="macos",isWindows:t.os.name==="windows",isIE:t.browser.name==="ie",isEdge:t.browser.name==="edge",isChrome:t.browser.name==="chrome",isSafari:t.browser.name==="safari",isFirefox:t.browser.name==="firefox",isOpera:t.browser.name==="opera",isBot:/bot|googlebot|crawler|spider|robot|crawling/i.test(navigator.userAgent),isCypress:window.Cypress}}return Ha}function zS(t){let e=Ee(),r=Object.keys(e).reduce((n,i)=>(n[`DeviceDetect--${i}`]=e[i],n),{});t.className=(0,om.default)(t.className,r)}function Ra(t=document.documentElement){var e;zS(((e=window.__shadowRoot)==null?void 0:e.querySelector("article"))||t),US()}function US(){Tt(document.documentElement,"touchstart",()=>{jS.hasTouch=!0,document.documentElement.classList.add("DeviceDetect--isTouch")})}function _a(){let{isIE:t,isEdge:e}=Ee();if(!t&&!e)return;let r={tallTOMs:[]};mi.default.measure(()=>{x(".DisplayContainerHeight--flex").forEach(i=>{r.tallTOMs.push(i)});function n(){VS(r)}n(),window.addEventListener("resize",n,{passive:!0})})}function VS(t){t.tallTOMs.forEach(e=>{mi.default.measure(()=>{let r=e.querySelector(".FullSize--child"),n=e.querySelector(".DisplayContainer--heightBasis").getBoundingClientRect().height+200,i=n+"px",o=i;if(n<$.getHeight()){e.style.setProperty("height",i);return}e.classList.contains("SplitLayout")&&$.getWidth()<=960&&(i=`calc(${n} + 50vh)`,o="50vh"),mi.default.mutate(()=>{e.style.setProperty("height",i),r.style.setProperty("height",o),x(".FullSize--fixedChild",r).forEach(a=>{a.style.setProperty("height",o)}),r.style.setProperty("clip-path",`polygon(0 0, 0 ${o}, 100% ${o}, 100% 0)`)})})})}var Ur=class{constructor(e={}){this.cache={width:0,height:0,top:0,bottom:0};e.measuringElement?this.measuringElement=e.measuringElement:this.ensureMeasuringElement(),window.addEventListener("resize",this.refresh.bind(this),{passive:!0}),this.refresh()}ensureMeasuringElement(){let e=this.measuringElement=document.createElement("div");e.style.width="100%",e.style.height="100vh",e.style.visibility="hidden",e.style.pointerEvents="none",e.style.opacity="0",e.style.position="absolute",e.style.top="0",e.setAttribute("id","viewport-height-element"),document.body.appendChild(e)}refresh(){let e=this.measuringElement.getBoundingClientRect();this.cache.width=e.width,this.cache.height=e.height,this.cache.top=0,this.cache.bottom=0}getCache(){return this.cache}};var Ft;function am(t=new Ur){Ft=t,_a()}var hi={getOrientation(){return Ft?hi.getWidth()>hi.getHeight()?"landscape":"portrait":window.innerWidth>window.innerHeight?"landscape":"portrait"},getHeight(){return Ft.getCache().height},getWidth(){return Ft.getCache().width},getTop(){return Ft.getCache().top},getBottom(){return Ft.getCache().bottom},getVhUnitsInPixels(t){return hi.getHeight()*(t/100)},getDisplayContainer(){return Ft}},$=hi;var $S={textFade:"none",textZoom:"none",textBlur:"none",backgroundFade:"none",backgroundZoom:"none",backgroundBlur:"none",backgroundGrayscale:"none",hasEffects:!1};function sm(t,e=$S){try{return ee(ee({},e),JSON.parse(window.atob(t.getAttribute("data-effects"))))}catch(r){return ee({},e)}}function WS(t,e,r){return t<=e?0:t<=e+r?(t-e)*(1/r):1}function St(t,e,r){let n=0,i=0;switch(r){case 0:e<$.getHeight()*.8?(n=.25,i=.15):e>$.getHeight()*1.2?(n=.45,i=.2):(n=.4,i=.2);break;case 1:n=.1,i=.4;break;case 2:n=.5,i=.3;break;case 3:case 5:e<$.getHeight()*.8?(n=.05,i=.1):e>$.getHeight()*1.2?(n=.35,i=.1):(n=.2,i=.2);break;case 6:case 4:e<$.getHeight()*.8?(n=.4,i=.1):e>$.getHeight()*1.2?(n=.6,i=.1):(n=.5,i=.2);break}return WS(t,n,i)}var Na=[];function lm(){Na.forEach(t=>t())}function Da(){var r;let t=!!document.querySelector("#editor-viewport"),e=(r=document.querySelector("#editor-viewport"))!=null?r:window;e.removeEventListener("scroll",lm),e.addEventListener("scroll",lm,{passive:!0}),Na=[],um.default.mutate(()=>{[].slice.call(document.querySelectorAll("[data-effects]")).forEach(n=>{let i=sm(n);if(!i.hasEffects&&!t)return;let o=t?".Theme-Layer-background-viewport:not(.Theme-Layer-background-viewport-cyclops)":".Theme-BackgroundMedia:not(.Theme-BackgroundModel)",a=[].slice.call(n.querySelectorAll(o)),s=[].slice.call(n.querySelectorAll(".Theme-Layer-TextBlock-Container"));a.forEach(c=>{c.style.setProperty("overflow","hidden");let u=[].slice.call(c.querySelectorAll("video"));u.length===0&&(u=[].slice.call(c.querySelectorAll("img")).filter(d=>d.className.indexOf("InstantImage__img")===-1)),[].slice.call(c.querySelectorAll(`picture, ${t?".BackgroundVideo__sticky":"video"}`)).forEach((d,f)=>{f!==0&&(d.style.setProperty("position","absolute"),d.style.setProperty("top","0"))}),u.forEach((d,f)=>{d.style.setProperty("transition","none");let y=[];f===0?(i.backgroundBlur==="out"&&y.push("blur(10px)"),i.backgroundGrayscale==="out"&&y.push("grayscale(100%)")):(i.backgroundBlur==="in"&&y.push("blur(10px)"),i.backgroundGrayscale==="in"&&y.push("grayscale(100%)")),d.style.setProperty("filter",y.join(" ")),d.style.setProperty("transform","scale(1)"),d.style.setProperty("opacity","1")})}),s.forEach(c=>{GS(c)&&(c.classList.remove("Layout__flex--xleft"),c.classList.remove("Layout__flex--xright"),c.classList.add("Layout__flex--xcenter")),c.parentElement.parentElement.style.setProperty("overflow","visible"),c.parentElement.style.setProperty("overflow","hidden");let u=c.className.indexOf("Layout__flex--xright")>-1;c.className.indexOf("Layout__flex--xleft")>-1?c.style.setProperty("transform-origin","0% 0%"):u?c.style.setProperty("transform-origin","100% 0%"):c.style.removeProperty("transform-origin")});function l(){let c=cm(n),u=n.getBoundingClientRect().height;c<=0||(a.forEach(d=>{let f=cm(d),y=[].slice.call(d.querySelectorAll("video"));y.length===0&&(y=[].slice.call(d.querySelectorAll("img")).filter(T=>T.className.indexOf("InstantImage__img")===-1)),y.forEach((T,p)=>{if(p===1&&"currentTime"in T){let E=T,I=y[0];Math.abs(E.currentTime-I.currentTime)>=.2&&(E.currentTime=I.currentTime)}i.backgroundZoom==="in"?T.style.setProperty("transform",`scale(${1+.4*f})`):i.backgroundZoom==="out"&&T.style.setProperty("transform",`scale(${1.4-.4*f})`);let v=1;p===1&&(v=1-St(f,u,0),T.style.setProperty("opacity",`${v}`)),i.backgroundFade==="in"?T.style.setProperty("opacity",`${v*St(f,u,1)}`):i.backgroundFade==="out"&&T.style.setProperty("opacity",`${v*(1-St(f,u,2))}`)})}),s.forEach(d=>{let f=c;i.textZoom==="in"?d.style.setProperty("transform",`scale(${.8+.4*f})`):i.textZoom==="out"&&d.style.setProperty("transform",`scale(${1.2-.4*f})`);let y=[];i.textBlur==="in"&&y.push(`blur(${(20*(1-St(f,u,3))).toFixed(2)}px)`),i.textBlur==="out"&&y.push(`blur(${(20*St(f,u,4)).toFixed(2)}px)`);let T=1;i.textFade==="in"?T*=St(f,u,5):i.textFade==="out"&&(T*=1-St(f,u,6)),[].slice.call(d.querySelectorAll(t?".NodeContent":".Theme-Layer-TextBlock-Inner")).forEach(p=>{p.style.setProperty("filter",y.join(" ")),p.style.setProperty("opacity",`${T}`)})}))}l(),Na.push(l)})})}function cm(t){let{top:e,height:r}=t.getBoundingClientRect(),n=Math.max($.getHeight(),r),i=n*2;return 1-(n+e)/i}function GS(t){let e=t;for(;e&&!e.classList.contains("Theme-Section");)e.parentNode?e=e.parentNode:console.error("Could not find the parent Theme-section");return e.classList.contains("SplitLayout")}var xm=J(Fa());function Ba(){x("[data-lazyload-container][data-lazyload-trigger]").map(e=>({pictures:x("[data-lazyload-item] picture",e),container:e,trigger:e})).forEach($r)}function $r({pictures:t,container:e,trigger:r}){let n=!1,i=()=>{n||(dr(e),n=!0)};return Be(r,a=>{!Ue(a)||(t.forEach(s=>YS(s,()=>KS(e))),i())},{triggerPoint:"lazyload"}),i}function YS(t,e){let r=V("img",t),n=x("source",t);!r||(r.addEventListener("load",e),fm(r),n.forEach(fm))}function fm(t){Object.entries({"data-src":"src","data-srcset":"srcset"}).forEach(([r,n])=>{let i=t.getAttribute(r);!i||(t.removeAttribute(r),t.setAttribute(n,i))})}function KS(t){t.classList.remove("Lazyload--isLoading"),t.classList.add("Lazyload--isLoaded")}var qa=J(mm()),XS={isHidden(){var t;return document[(t=qa.default)==null?void 0:t.hidden]},addVisibilityChangeListener(t){return document.addEventListener(qa.default.visibilityChange,t)}},Bt=XS;var JS=window.setTimeout,ZS=window.clearTimeout,hm=0,QS=t=>{let e=Date.now(),r=Math.max(0,16-(e-hm)),n=JS(()=>t(e+r),r);return hm=e+r,n},ex=t=>ZS(t),ja=window.requestAnimationFrame?window.requestAnimationFrame.bind(window):QS,_P=window.requestAnimationFrame?window.cancelAnimationFrame.bind(window):ex;var Yr=[],gi=!1;function tx(t){Yr.forEach(e=>e(t))}function ym(t){tx(t),gi&&ja(ym)}var gm=!1;function yi(){gi||(gm||(Bt.addVisibilityChangeListener(()=>{Bt.isHidden()?rx():yi()}),gm=!0),!Bt.isHidden()&&(gi=!0,ja(ym)))}function rx(){gi=!1}function De(t){Yr.indexOf(t)===-1&&Yr.push(t),yi()}function Je(t){let e=Yr.indexOf(t);e!==-1&&Yr.splice(e,1)}var Tm=J(vm());var Xr=J(ce());(function(){"use strict";if(typeof window!="undefined"){var t=window.navigator.userAgent.match(/Edge\/(\d{2})\./),e=t?parseInt(t[1],10):null,r=!!e&&16<=e&&e<=18;if(!("objectFit"in document.documentElement.style)||r){var n=function(a,s,l){var c,u,d,f,y;if((l=l.split(" ")).length<2&&(l[1]=l[0]),a==="x")c=l[0],u=l[1],d="left",f="right",y=s.clientWidth;else{if(a!=="y")return;c=l[1],u=l[0],d="top",f="bottom",y=s.clientHeight}if(c!==d&&u!==d){if(c!==f&&u!==f)return c==="center"||c==="50%"?(s.style[d]="50%",void(s.style["margin-"+d]=y/-2+"px")):void(0<=c.indexOf("%")?(c=parseInt(c,10))<50?(s.style[d]=c+"%",s.style["margin-"+d]=y*(c/-100)+"px"):(c=100-c,s.style[f]=c+"%",s.style["margin-"+f]=y*(c/-100)+"px"):s.style[d]=c);s.style[f]="0"}else s.style[d]="0"},i=function(a){var s=a.dataset?a.dataset.objectFit:a.getAttribute("data-object-fit"),l=a.dataset?a.dataset.objectPosition:a.getAttribute("data-object-position");s=s||"cover",l=l||"50% 50%";var c=a.parentNode;return function(u){var d=window.getComputedStyle(u,null),f=d.getPropertyValue("position"),y=d.getPropertyValue("overflow"),T=d.getPropertyValue("display");f&&f!=="static"||(u.style.position="relative"),y!=="hidden"&&(u.style.overflow="hidden"),T&&T!=="inline"||(u.style.display="block"),u.clientHeight===0&&(u.style.height="100%"),u.className.indexOf("object-fit-polyfill")===-1&&(u.className=u.className+" object-fit-polyfill")}(c),function(u){var d=window.getComputedStyle(u,null),f={"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 y in f)d.getPropertyValue(y)!==f[y]&&(u.style[y]=f[y])}(a),a.style.position="absolute",a.style.width="auto",a.style.height="auto",s==="scale-down"&&(s=a.clientWidth<c.clientWidth&&a.clientHeight<c.clientHeight?"none":"contain"),s==="none"?(n("x",a,l),void n("y",a,l)):s==="fill"?(a.style.width="100%",a.style.height="100%",n("x",a,l),void n("y",a,l)):(a.style.height="100%",void(s==="cover"&&a.clientWidth>c.clientWidth||s==="contain"&&a.clientWidth<c.clientWidth?(a.style.top="0",a.style.marginTop="0",n("x",a,l)):(a.style.width="100%",a.style.height="auto",a.style.left="0",a.style.marginLeft="0",n("y",a,l))))},o=function(a){if(a===void 0||a instanceof Event)a=document.querySelectorAll("[data-object-fit]");else if(a&&a.nodeName)a=[a];else{if(typeof a!="object"||!a.length||!a[0].nodeName)return!1;a=a}for(var s=0;s<a.length;s++)if(a[s].nodeName){var l=a[s].nodeName.toLowerCase();if(l==="img"){if(r)continue;a[s].complete?i(a[s]):a[s].addEventListener("load",function(){i(this)})}else l==="video"?0<a[s].readyState?i(a[s]):a[s].addEventListener("loadedmetadata",function(){i(this)}):i(a[s])}return!0};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",o):o(),window.addEventListener("resize",o),window.objectFitPolyfill=o}else window.objectFitPolyfill=function(){return!1}}})();function bm(){if(!window)return!1;let t=document.querySelector(".ObjectFit--cover");if(!t)return!1;let r=window.getComputedStyle(t).objectFit,n=Ee().isEdge;return(r?/^(contain|cover|fill)$/.test(r):!1)&&!n}function Jr(){Xr.default.measure(()=>{let t=$.getOrientation();Xr.default.mutate(()=>{let e=x(".ObjectFit--cover");e.forEach(r=>{r.dataset.objectFit="cover";let n=r.tagName==="IMG"?r.parentElement:r;n.hasAttribute(`data-${t}-focal`)&&(r.dataset.objectPosition=n.dataset[`${t}Focal`])}),Ua(e)})})}function Ua(t){window.objectFitPolyfill(t),nx(t)}function nx(t){let{isIE:e,isEdge:r}=Ee();!e&&!r||t.forEach(n=>vi(n))}function vi(t){let{isIE:e,isEdge:r}=Ee();!e&&!r||t.className.indexOf("FullSize__fixedChild")!==-1&&Xr.default.measure(()=>{let n=window.innerWidth>window.innerHeight?"landscape":"portrait",i=Em(t);if(i==="none")return;let o=parseFloat(window.getComputedStyle(t.parentElement).getPropertyValue("width"));if(r){t.style.setProperty("width",`${n==="landscape"?o+"px":"100%"}`);return}if(n==="portrait"){t.style.removeProperty("transform");return}let a="play"in t?{width:t.videoWidth,height:t.videoHeight}:{width:t.naturalWidth,height:t.naturalHeight};if(a.width<1){setTimeout(()=>vi(t),100);return}let s=a.width>a.height;Xr.default.mutate(()=>{if(s)i==="media-left"?t.style.getPropertyValue("left")==="50%"?t.style.setProperty("transform",`translateX(-${o*.5}px)`):["","0px"].includes(t.style.getPropertyValue("margin-left"))?t.style.setProperty("transform",`translateX(-${o*.75}px)`):t.style.setProperty("transform",`translateX(-${o*.25}px)`):t.style.getPropertyValue("left")==="50%"?t.style.setProperty("transform",`translateX(${o*.5}px)`):["","0px"].includes(t.style.getPropertyValue("margin-left"))?t.style.setProperty("transform",`translateX(${o*.25}px)`):t.style.setProperty("transform",`translateX(${o*.75}px)`);else{let[l,c]=t.dataset["object-position"].split(" ").map(f=>parseInt(f,10)),u=t.style.getPropertyValue("margin-left")&&t.style.getPropertyValue("margin-left")!=="0px",d=t.style.getPropertyValue("margin-right")&&t.style.getPropertyValue("margin-right")!=="0px";if(i==="media-right"){if(l===50?t.style.setProperty("transform",`scale(0.5) translate(${o}px, 0%)`):c<50?t.style.setProperty("transform",`scale(0.5) translate(${o}px, -${50-c}%)`):t.style.setProperty("transform",`scale(0.5) translate(${o}px, ${c-50}%)`),u){t.style.setProperty("transform",`translateX(${o-Math.abs(parseFloat(t.style.getPropertyValue("margin-left")))}px)`);return}if(d){t.style.setProperty("transform",`translateX(${Math.abs(parseFloat(t.style.getPropertyValue("margin-right")))}px)`);return}}else{if(c===50?t.style.setProperty("transform",`scale(0.5) translate(-${o}px, 0%)`):c<50?t.style.setProperty("transform",`scale(0.5) translate(-${o}px, -${50-c}%)`):t.style.setProperty("transform",`scale(0.5) translate(-${o}px, ${c-50}%)`),u){t.style.setProperty("transform",`translateX(-${Math.abs(parseFloat(t.style.getPropertyValue("margin-left")))}px)`);return}if(d){t.style.setProperty("transform",`translateX(-${o-Math.abs(parseFloat(t.style.getPropertyValue("margin-right")))}px)`);return}}}})})}function Em(t){var e;return((e=t.id)==null?void 0:e.indexOf("section-"))===0?t.className.indexOf("SplitLayout--rowReverse")>-1?"media-left":t.className.indexOf("SplitLayout")>-1?"media-right":"none":Em(t.parentElement)}function Zr(){window.addEventListener("resize",()=>Jr(),{passive:!0}),Jr()}function wm(t){let e=t.getBoundingClientRect(),r=-e.top,n=Math.max(1,e.height-document.documentElement.clientHeight),i=r/n;return{percentage:i,scrollingIn:i<0,scrollingOut:i>1}}var bi=Tm.default.factory({init:"ready",transitions:[{name:"prime",from:"ready",to:"primed"},{name:"startTransition",from:"primed",to:"transitioning"},{name:"activate",from:"transitioning",to:"active"},{name:"linger",from:"active",to:"lingering"},{name:"complete",from:["active","lingering"],to:"completed"},{name:"activate",from:["completed","lingering"],to:"active"},{name:"reverseTransition",from:"active",to:"transitioning"},{name:"reset",from:"transitioning",to:"ready"}],methods:{onPrimed(){let{item:t,classNames:e}=this;t.itemEl.classList.add(e.prime),this.onItemShown&&this.onItemShown(t)},onStartTransition(){let{item:t,classNames:e}=this;Tt(t.itemEl,"transitionend",()=>this.activate()),requestAnimationFrame(()=>t.itemEl.classList.add(e.active)),Jr()},onReverseTransition(){let{item:t,classNames:e}=this;Tt(t.itemEl,"transitionend",()=>this.reset()),t.itemEl.classList.remove(e.active)},onReset(){let{item:t,classNames:e}=this;t.itemEl.classList.remove(e.prime),t.itemEl.classList.remove(e.active)},onActive(){let{item:t,classNames:e}=this;[e.prime,e.active].forEach(r=>t.itemEl.classList.add(r)),this.onItemShown&&this.onItemShown(t),Jr()},onCompleted(){let{item:t,classNames:e}=this;t.itemEl.classList.remove(e.prime),t.itemEl.classList.remove(e.active)},requestReady(){this.is("ready")||this.is("active")&&this.reverseTransition()},requestActive(){this.is("ready")&&this.prime(),this.is("primed")&&this.startTransition(),(this.is("completed")||this.is("lingering"))&&this.activate()},requestComplete(){let t=this.shouldLinger(this.item),e=this.can("linger"),r=!t,n=this.can("complete");t&&e?this.linger():r&&n&&this.complete()},isActive(){return this.is("active")}},data(t){return t}});function Ei(t){if(t.isRendering)return;t.isRendering=!0;let e=wm(t.scrollContainer);t.items.forEach(r=>{let n=ix(e,r.data);if(!n)return;let i=t.machines.get(r);({["ready"]:i.requestReady,["active"]:i.requestActive,["complete"]:i.requestComplete})[n].call(i)}),t.isRendering=!1}function ix(t,e){let r=t.scrollingIn&&e.showDuringScrollIn,n=t.scrollingOut&&e.showDuringScrollOut,i=ox(t.percentage,e.start,e.end);if(r||n||i)return"active";if(t.percentage<e.start)return"ready";if(t.percentage>e.end)return"complete"}function ox(t,e,r){return t>=e&&t<r}var $a={instances:new Map,isRunning:!1},Va=new WeakMap;function ax(t){let e=$a.instances;return e.has(t)||e.set(t,{scrollContainer:t.parentElement,items:[],isRendering:!1,machines:new WeakMap}),e.get(t)}function sx(t,e,r){let n=1/r.length,i=e*n,o=i+n,a=e===0,s=e===r.length-1;return{itemEl:t,index:e,data:{start:i,end:o,showDuringScrollIn:a,showDuringScrollOut:s}}}function lx(){document.querySelectorAll(".Theme-BackgroundScrollmationSection").forEach(e=>{let r=e.querySelectorAll(".MediaRenderer__fixedCaption--icon"),n=e.querySelector(".MediaRenderer__Scrollmation-portrait--Caption"),i=e.querySelectorAll(".btn-close-caption-scrollmation");function o(){n.removeAttribute("style")}function a(){n.style.display="none"}r.forEach(s=>s.addEventListener("click",o)),i.forEach(s=>s.addEventListener("click",a))})}function Wa(){let t=x("[data-background-scrollmation]");lx(),t.forEach(e=>cx(e,{doLazyload:!0})),["resize","orientationchange"].forEach(e=>window.addEventListener(e,Im,{passive:!0}))}function cx(t,e,r){let n=x("[data-background-scrollmation-item]",t);if(n.length===0)return()=>{};let i=n.map(sx),o=ax(t);o.items=i.reduce((s,l)=>{let c=o.items.find(u=>u.itemEl===l.itemEl);return c&&(c.data=l.data),[...s,c||l]},[]),o.items.map(s=>e.doLazyload?ux(s,t.parentElement):s).filter(s=>!o.machines.get(s)).forEach(s=>o.machines.set(s,new bi({item:s,classNames:{prime:"BackgroundScrollmationItem--isPrimed",active:"BackgroundScrollmationItem--isActive"},onItemShown(l){r&&r(l,o.items.indexOf(l))},shouldLinger(l){return!o.items.filter(f=>f!==l).map(f=>o.machines.get(f)).some(f=>f.isActive())}})));function a(){let s=t.parentElement.getBoundingClientRect();s.bottom<$.getTop()+$.getHeight()?t.setAttribute("data-attach","after"):s.top<$.getTop()?t.setAttribute("data-attach","during"):t.setAttribute("data-attach","before")}return document.getElementById("editor-viewport")||document.addEventListener("scroll",a,{passive:!0}),e.doLazyload&&Im(),De(Sm),()=>{Je(Sm),document.getElementById("editor-viewport")||document.removeEventListener("scroll",a)}}function ux(t,e){if(!Va.get(t.itemEl)){let n=document.createElement("div");n.classList.add("BackgroundScrollmation__lazyloadTriggerElement"),n.setAttribute("data-item-index",String(t.index)),Va.set(t.itemEl,n),e.appendChild(n);let i={pictures:x("picture",t.itemEl),container:t.itemEl.querySelector("[data-lazyload-container]"),trigger:n};$r(i)}return t}function Im(){(0,xm.default)($a.instances.values()).map(t=>t.items).map(t=>t.map(e=>{let r=Va.get(e.itemEl);Object.assign(r.style,{position:"absolute",top:`${e.data.start*100}%`})}))}function Sm(){$a.instances.forEach(t=>Ei(t))}function Lm(t,e,r){var n,i,o;e===void 0&&(e=50),r===void 0&&(r={});var a=(n=r.isImmediate)!=null&&n,s=(i=r.callback)!=null&&i,l=r.maxWait,c=Date.now(),u=[];function d(){if(l!==void 0){var y=Date.now()-c;if(y+e>=l)return l-y}return e}var f=function(){var y=[].slice.call(arguments),T=this;return new Promise(function(p,v){var E=a&&o===void 0;if(o!==void 0&&clearTimeout(o),o=setTimeout(function(){if(o=void 0,c=Date.now(),!a){var R=t.apply(T,y);s&&s(R),u.forEach(function(M){return(0,M.resolve)(R)}),u=[]}},d()),E){var I=t.apply(T,y);return s&&s(I),p(I)}u.push({resolve:p,reject:v})})};return f.cancel=function(y){o!==void 0&&clearTimeout(o),u.forEach(function(T){return(0,T.reject)(y)}),u=[]},f}function dx(t){let e=()=>{t.style.opacity="1"};["loadeddata","playing","canplaythrough"].forEach(n=>Tt(t,n,e))}function fx(t){return t.currentTime>0&&!t.paused&&!t.ended&&t.readyState>2}function Am(t,e={canControl:!0}){let r=$.getHeight()>$.getWidth(),n=fx(t),i=px(t),o=!1;for(let a of i){let s=a.getAttribute(r?"data-portrait":"data-landscape");a.getAttribute("src")!==s&&(a.setAttribute("src",s),o=!0)}o&&(t.load(),e.canControl&&n&&wi(t))}function px(t){let e=t.querySelectorAll("source");return Array.from(e)}function Ga(){let{isSafari:t}=Ee();x("[data-background-video]").forEach(i=>{let o=i.querySelector("[data-video]");if(!o)return;t&&o.className.includes("FullSize__fixedChild")&&o.addEventListener("canplay",()=>{o.className=o.className.replace("FullSize__fixedChild","FullSize__fixedChild--Safari")}),o.muted=!0,o.defaultMuted=!0,dx(o),Be(i,l=>{Am(o,{canControl:!1}),vi(o),Ue(l)?wi(o):o.pause()},{triggerPoint:"nearly visible"});let{top:s}=i.getBoundingClientRect();s<$.getHeight()*3&&(wi(o),setTimeout(()=>{o.readyState<2&&o.paused&&(o.load(),wi(o))},1e3))});let r=x("[data-background-video] [data-video]"),n=Lm(i=>r.forEach(o=>Am(o)),100);["resize","orientationchange"].forEach(i=>{window.addEventListener(i,n,{passive:!0})})}function wi(t){try{t.pause()}catch(r){}let e=t.play();typeof e!="undefined"&&e.catch(()=>{t.play().catch(r=>{t.pause()})})}var Om=J(Fa());var Ya=J(ce());function Ka(t,e){Ya.default.measure(()=>{let r=window.innerWidth,i=e.reduce((o,a)=>o.clientHeight>a.clientHeight?o:a,e[0]).clientHeight;Ya.default.mutate(()=>{t.style.height=r>=900?`${i}px`:null})})}var en=J(ce());var Qr={items:[],lastSizes:new WeakMap},mx=250;function Cm(){let t=gx(document.documentElement);t.length!==0&&(Qr.items=t,De(hx))}function hx(){Qr.items.forEach(t=>vx(t))}function gx(t){return x("[data-card-canvas-item]",t).map(yx)}function yx(t){return{el:t,img:x("img",t),caption:t.querySelector(".CardCanvasItem__caption"),heightReferenceEl:t.parentElement.querySelector("[data-card-canvas-height-reference]")}}function vx(t){bx(t).then(()=>Ex(t)).catch(()=>{})}function bx(t){return new Promise((e,r)=>{en.default.measure(()=>{if(getComputedStyle(t.el).getPropertyValue("display")==="none")return r();let i=window.innerWidth,o=t.heightReferenceEl.clientHeight,a=t.caption?t.caption.clientHeight:0,s=Qr.lastSizes.has(t)?Qr.lastSizes.get(t):{width:0,height:0,captionHeight:0};if(i===s.width&&o===s.height&&a===s.captionHeight)return r();s.width=i,s.height=o,s.captionHeight=a,Qr.lastSizes.set(t,s);let l=o-a;en.default.mutate(()=>{t.img.forEach(c=>c.style.maxHeight=i>=900?`${l}px`:null),e()})})})}function Ex(t){return new Promise(e=>{if(!t.caption)return e();function r(n,i){en.default.mutate(()=>{let o=wx(i,{width:n.naturalWidth,height:n.naturalHeight}),a=Math.max(o.width,mx);t.caption.style.maxWidth=`${a}px`,e()})}en.default.measure(()=>{let n=t.el.querySelector("picture img"),i=n.getBoundingClientRect();n.naturalWidth>0?r(n,i):n.addEventListener("load",()=>r(n,i))})})}function wx(t,e){let r=e.width/t.width,n=e.height/t.height,i=Math.max(r,n);return{width:e.width/i,height:e.height/i}}var Ja={instances:new Map,isRunning:!1},Xa=new WeakMap;function Tx(t){let e=Ja.instances;return e.has(t)||e.set(t,{scrollContainer:t.parentElement,items:[],isRendering:!1,machines:new WeakMap}),e.get(t)}function Sx(t,e,r){let n=1/r.length,i=e*n,o=i+n,a=e===0,s=e===r.length-1;return{itemEl:t,index:e,data:{start:i,end:o,showDuringScrollIn:a,showDuringScrollOut:s}}}function Za(){Cm(),x("[data-card-canvas]").forEach(e=>xx(e,{doLazyload:!0})),["resize","orientationchange"].forEach(e=>window.addEventListener(e,Pm,{passive:!0}))}function xx(t,e,r){let n=x("[data-card-canvas-item]",t);if(n.length===0)return;let i=n.map(Sx),o=Tx(t);return o.items=i.reduce((a,s)=>{let l=o.items.find(c=>c.itemEl===s.itemEl);return l&&(l.data=s.data),[...a,l||s]},[]),o.items.map(a=>e.doLazyload?Ix(a,t.parentElement):a).filter(a=>!o.machines.get(a)).forEach(a=>o.machines.set(a,new bi({item:a,classNames:{prime:"CardCanvasItem--isPrimed",active:"CardCanvasItem--isActive"},onItemShown(s){r&&r(s,o.items.indexOf(s))},shouldLinger(s){return!o.items.filter(d=>d!==s).map(d=>o.machines.get(d)).some(d=>d.isActive())}}))),e.doLazyload&&Pm(),De(Mm),()=>Je(Mm)}function Ix(t,e){if(!Xa.get(t.itemEl)){let n=document.createElement("div");n.classList.add("BackgroundScrollmation__lazyloadTriggerElement"),n.setAttribute("data-item-index",String(t.index)),Xa.set(t.itemEl,n),e.appendChild(n);let i={pictures:x("picture",t.itemEl),container:t.itemEl.querySelector("[data-lazyload-container]"),trigger:n};$r(i)}return t}function Pm(){(0,Om.default)(Ja.instances.values()).map(t=>t.items).map(t=>t.map(e=>{let r=Xa.get(e.itemEl);Object.assign(r.style,{position:"absolute",top:`${e.data.start*100}%`})}))}function Lx(t,e){Ei(t),Ka(e,t.items.map(r=>r.itemEl))}function Mm(){Ja.instances.forEach(Lx)}function Qa(){}var es=Symbol("hidden"),qt=Symbol("visible");function Ax(t,e,r){let n=r.find(([o])=>o===t),i=n?n[1]:!1;return(!i||i!==e)&&t(e),r.filter(([o])=>o!==t).concat([[t,e]])}function Cx(t){let{lastCalls:e}=t;Ti.forEach(r=>{let i=t.isPageHidden||!t.visibleElements.has(r.element)?es:qt;e=Ax(r.cb,i,e)}),t.lastCalls=e}function Mx(t,e){return t.add(e)}function Ox(t,e){return t.delete(e),t}function Px(){Bt.addVisibilityChangeListener(()=>{let t={isPageHidden:km()};Hm(t)})}function km(){return Bt.isHidden()}var Ti=[],Si={isPageHidden:km(),visibleElements:new Set,lastCalls:[]};function fr(t,e,r="nearly visible"){Ti.push({cb:e,element:t});let n={triggerPoint:r};return Be(t,o=>{let{visibleElements:a}=Si,s=Ue(o)?Mx(a,t):Ox(a,t);Hm({visibleElements:s})},n),()=>{dr(t,n);let o=Ti.findIndex(a=>a.element===t&&a.cb===e);Ti.splice(o,1)}}function Hm(t){Si=ee(ee({},Si),t),Cx(Si)}function ts(){Px()}var rs=J(ce());function ns(){window.addEventListener("resize",()=>Rm(),{passive:!0}),Rm()}function Rm(){rs.default.measure(()=>{let t=$.getOrientation();rs.default.mutate(()=>{x("[data-landscape-focal]").forEach(e=>{let r=e.dataset[`${t}Focal`];if(r){let n=e.tagName==="PICTURE"?e.querySelector("img"):e;n==null||n.style.setProperty("object-position",r)}})})})}var Oe={footer:V("#StandardFooter"),topLink:V("#footerTopLink"),logo:V("#FooterLogo"),logoLink:V("#footer_shorthand_link"),lower:document.createElement("div"),lowerInner:document.createElement("div")};function is(){Oe.footer.classList.add("Prime3"),Oe.logo.setAttribute("src",Oe.logo.getAttribute("src").replace("black","white")),Oe.topLink.classList.add("Prime3"),Oe.logoLink.classList.add("Prime3"),Oe.lower.id="prime3FooterLower",Oe.lower.className="prime3FooterLower",Oe.lowerInner.id="prime3FooterLowerInner",Oe.lowerInner.className="prime3FooterLowerInner";let t=Oe.logoLink.getAttribute("href"),e=["<div>Join the world's leading storytelling teams at Shorthand.</div>","<div><a href="+t+"><u>TRY IT FOR <strong>FREE</strong></u></a></div>","<div>No code, no credit card, & no commitment required.</div>"];Oe.lowerInner.innerHTML="<div class='Layout prime3-items'>"+e.map(r=>r).join("")+"</div>",Oe.footer.after(Oe.lower),Oe.lower.innerHTML=Oe.lowerInner.outerHTML}var Wh=J(_m()),Ni=J(ce()),Gh=J(Dh()),qH=J(Fh());var ks=J(ce());function Bh(t,e,r){return r!==void 0?LI(t,e,r):t.classList.toggle(e)}function Y(t,e){(Array.isArray(t)?t:[t]).forEach(n=>{ks.default.mutate(()=>{n.setAttribute("style","display: "+e)})})}function pt(t){(Array.isArray(t)?t:[t]).forEach(r=>{ks.default.mutate(()=>{r.parentNode.removeChild(r)})})}function LI(t,e,r){let n=t.className.split(/\s+/),i=n.includes(e),o=r&&!i?[...n,e]:!r&&i?n.filter(a=>a!==e):n;t.className=o.join(" ")}var qh=J(ce());function _i(t,e){let r=t.clientHeight;t.style.transition="all 0.5s ease-in-out",qh.default.mutate(()=>{e==="out"?(t.style.bottom=`-${r}px`,t.style.opacity="0",t.style.zIndex="-1"):(t.style.zIndex="9999",t.style.bottom="0px",t.style.opacity="1")})}function _s(){let t=x("#footer_shorthand_link");if(t&&MI(t),F.footer&&Rs){pt(F.closeButton),pt(F.footerContents),pt(F.footerTitles),pt(F.interactivePanels),pt(F.mobileHeaders),pt(F.mobileTitle),pt(F.openButton),pt(F.openMessage),Y(F.upper,"block"),F.openMessageContainer.classList.add("PreviewFooter--center-horizontal"),Y(F.upperInner,"flex"),F.footer.style.position="static";return}F.footer&&!Rs&&(F.mobileTitle.forEach((e,r)=>{PI(F.mobileTitle[r],F.footerContents[r],F.footerClose[r])}),jh(F.openButton),jh(F.closeButton),_I(),kI(),fn(),OI(),window.addEventListener("scroll",Yh,{passive:!0}))}var Hs=Ee().isMobile,{isIE:AI,isEdge:CI}=Ee(),Rs=AI||CI,Ze=!1,dn=Math.max(document.body.offsetWidth,window.innerWidth),un=dn<=926||Hs,F={closeButton:x(".PreviewFooter--close-button"),footer:V(".PreviewFooter"),footerClose:x(".PreviewFooter--mobile-close"),footerContents:x("[data-PreviewFooter--item]"),footerOuter:V(".PreviewFooter--outer"),footerTitles:x(".PreviewFooter--col-title"),interactivePanels:V(".PreviewFooter--interactive-panels"),mailtoLink:V(".PreviewFooter--mailto"),mobileHeaders:x(".PreviewFooter--mobile-header"),mobileTitle:x(".PreviewFooter--col-title-mobile"),openButton:V(".PreviewFooter--open-button"),openMessage:V(".PreviewFooter--message"),openMessageContainer:V(".PreviewFooter--message-container"),upper:V(".PreviewFooter--upper"),upperInner:V(".PreviewFooter--upper-inner")};function MI(t){return(Array.isArray(t)?t:[t]).forEach(r=>{r.setAttribute("href",r.getAttribute("href").replace("__host__",window.location.hostname))})}function OI(){let t=Hs?"orientationchange":"resize";window.addEventListener(t,()=>{Ni.default.measure(()=>{dn=Math.max(document.body.offsetWidth,window.innerWidth),un=dn<=926||Hs,Ze=!1,fn()})},{passive:!0})}function Yh(){let t=window.scrollY,e=document.body.offsetHeight,r=window.innerHeight,n=t/(e-r),i=Math.round(n*100);if(Rs||window.Cypress){_i(F.footer,"in"),removeEventListener("scroll",Yh);return}!Ze&&i<80&&_i(F.footer,"out"),!Ze&&i>=80&&_i(F.footer,"in")}function jh(t){let e=()=>{Ze=!Ze,fn()};(Array.isArray(t)?t:[t]).forEach(n=>{n.addEventListener("click",()=>{e()},{passive:!0})})}var PI=(t,e,r)=>{t.addEventListener("click",()=>{Ze=!0,fn(e)},{passive:!0}),r.addEventListener("click",()=>{Ze=!1,fn(e)},{passive:!0})};function zh(){F.footer.style.position="relative",Ni.default.measure(()=>{let t=document.body.offsetHeight;Ni.default.mutate(()=>{window.scrollTo({top:t,behavior:"smooth"})})})}function fn(t=F.footerContents[0]){switch(!0){case(Ze&&!un):Y(F.openButton,"none"),Y(F.mobileTitle,"none"),Y(F.mobileHeaders,"none"),dn>926&&dn<1100&&Y(F.openMessageContainer,"none"),Y(F.footerContents,"block"),Y(F.openMessage,"block"),Y(F.closeButton,"block"),Y(F.footerTitles,"block"),Y(F.upperInner,"flex"),Y(F.interactivePanels,"flex"),F.openMessageContainer.classList.remove("PreviewFooter--center-horizontal"),F.upper.style.padding="1em 0",zh();break;case(!Ze&&!un):Y(F.mobileTitle,"none"),Y(F.mobileHeaders,"none"),Y(F.closeButton,"none"),Y(F.openMessage,"none"),Y(F.footerContents,"none"),Y(F.interactivePanels,"none"),Y(F.openMessageContainer,"block"),Y(F.openButton,"flex"),Y(F.upper,"block"),Y(F.upperInner,"flex"),F.openMessageContainer.classList.add("PreviewFooter--center-horizontal"),F.footer.style.position="sticky",F.upper.style.padding="0.5em 0";break;case(Ze&&un):Y(F.mobileTitle,"none"),Y(F.closeButton,"none"),Y(F.footerTitles,"none"),Y(F.upperInner,"none"),Y(F.footerContents,"none"),Y(t,"block"),Y(F.mobileHeaders,"flex"),Y(F.interactivePanels,"flex"),F.upper.style.padding="1em 0",zh();break;case(!Ze&&un):Y(F.openMessage,"none"),Y(F.openButton,"none"),Y(F.closeButton,"none"),Y(F.footerContents,"none"),Y(F.interactivePanels,"none"),Y(F.upper,"block"),Y(F.upperInner,"flex"),Y(F.mobileTitle,"flex"),Y(F.mobileHeaders,"flex"),Y(F.openMessageContainer,"block"),F.footer.style.position="sticky",F.upper.style.padding="0.5em 0",F.openMessageContainer.classList.add("PreviewFooter--center-horizontal");break}}function kI(){let t=V("#PreviewFooter--form");if(!t)return;let e=V("#PreviewFooter--feedbackButton");t.addEventListener("submit",HI);let r=t.querySelectorAll("input, textarea");r.forEach(n=>{n.addEventListener("focus",()=>{e.classList.add("share-btn-active")})}),r.forEach(n=>{n.addEventListener("blur",()=>{e.classList.remove("share-btn-active")})})}var Uh={feedback:function(t){if(!(t.length>=4))return"feedback"},name:function(t){if(!t.match(new RegExp("\\b([A-Z\\u{00C0}\\-\\u{00FF}][-,a-z. ']+[ ]*)+","ims")))return"name"},email:function(t){if(!t.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"}},Vh={success:function(t){t.reset();let e=V("#feedback-success");Y(t,"none"),Y(e,"block"),setTimeout(()=>{Y(e,"none"),Y(t,"block")},4e3)},error:function(t,e){function r(i){n=V(`${i}`),Y(n,"block"),setTimeout(()=>{Y(n,"none")},4e3)}if(e.error==="feedback"){r("#feedback-error");return}if(e.error==="name"){r("#name-error");return}if(e.error==="email"){r("#email-error");return}let n=V("#generic-error");Y(t,"none"),n.innerText=e,Y(n,"block"),setTimeout(()=>{Y(n,"none"),Y(t,"block")},4e3),console.error(e)}},HI=t=>_t(void 0,null,function*(){t.preventDefault();let e=F.footer.getAttribute("data-story"),r=t.target,n=new FormData(r),i={};n.forEach((a,s)=>{i[s]=Wh.default.sanitize(a)});let o=Object.keys(Uh).reduce((a,s)=>{let l=Uh[s](i[s]);return l?pe(ee({},a),{error:l}):a},{});Object.keys(o).length>0&&Vh.error(r,o),Object.keys(o).length===0&&(yield RI(i,e),Vh.success(r))});function RI(t,e){return fetch(`/${e}/feedback`,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json"}}).then(r=>{if(!r.ok)throw new Error("Something went wrong, please try again.")})}function $h({mailtoEmail:t,previewURL:e,title:r},n=F.mailtoLink){n.setAttribute("href",`mailto:${t}?subject=${encodeURIComponent("Shorthand story for review - ")}${r}&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${e}%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.")}`),n.setAttribute("target","_blank")}function _I(){let t=V(".mailtoForm"),e=new FormData(t),r={mailtoEmail:"",previewURL:document.location,title:""};e.forEach((a,s)=>{r[s]=a}),r.title===""&&(r.title="A Shorthand Story"),$h(r);let n=V("#mailtoEmail"),i=V("#mailtoButton");n.addEventListener("focus",()=>{i.classList.add("share-btn-active")}),n.addEventListener("blur",function(a){r.mailtoEmail=a.target.value,$h(r),i.classList.remove("share-btn-active")});let o=document.querySelector("#qr-code");o&&Gh.default.toCanvas(o,r.previewURL.toString(),{margin:0,width:116,color:{dark:"#fff",light:"#353535"}})}function Kh(t){return(Array.isArray(t)?t:[t]).forEach(r=>{r.setAttribute("href",r.getAttribute("href").replace("__host__",window.location.hostname))})}function Ns(){let t=V("#StandardFooter");t&&t.dataset.footer==="prime3"&&fetch("/features.json").then(n=>{n.status===200&&n.json().then(i=>{i.prime3&&is()})}).catch(n=>{console.log(n)});let e=x("#footer_shorthand_link");if(e&&Kh(e),x("#PreviewFooter"))return _s()}var we=null,pn=!1;function Ds(){NI(),x("[data-footnote]").forEach(t=>FI(t))}function NI(){let t=V(".Theme-Story");t&&(!we||!V(".Theme-Footnote",t))&&(we=document.createElement("div"),we.classList.add("Theme-Footnote"),we.setAttribute("role","tooltip"),we.setAttribute("aria-live","polite"),we.setAttribute("aria-atomic","true"),t.appendChild(we))}function Xh(){return V("#editor-viewport")||document}function DI(){let t=V(".Theme-Header");if(!t)return 0;let e=getComputedStyle(t).height,r=parseInt(e,10),n=V(".Navigation__itemList"),i=n&&window.innerWidth>=1100&&n.childNodes.length?36:0,o=V(".navbar-editor");return(o?parseInt(getComputedStyle(o).height,10):0)+r+i}function FI(t){t.addEventListener("mouseover",()=>Di(t)),t.addEventListener("touchstart",()=>Di(t)),t.addEventListener("focus",()=>{setTimeout(()=>Di(t),100)}),t.addEventListener("keydown",e=>{switch(e.key){case"Enter":pn?Fs():Di(t);break;case"ArrowUp":pn&&(e.preventDefault(),we.firstElementChild.scrollBy(0,-20));break;case"ArrowDown":pn&&(e.preventDefault(),we.firstElementChild.scrollBy(0,20));break}})}function Di(t){let e=t.getBoundingClientRect();we.style.display="block",we.innerHTML=decodeURIComponent(t.getAttribute("data-footnote"));let r=we.getBoundingClientRect(),n=e.top<DI()+r.height,i=n?e.bottom+5:e.top-r.height-5,o=e.left+e.width/2;o-r.width/2<0?o=r.width/2+2:o+r.width/2>window.innerWidth&&(o=window.innerWidth-r.width/2-2),we.style.top=`${i}px`,we.style.left=`${o}px`,we.classList.remove("Theme-Position-Top"),we.classList.remove("Theme-Position-Bottom"),we.classList.add(n?"Theme-Position-Top":"Theme-Position-Bottom"),document.addEventListener("mouseover",Fi),document.addEventListener("touchstart",Fi),Xh().addEventListener("scroll",Jh),pn=!0}function Fs(){pn=!1,we.style.display="",document.removeEventListener("mouseover",Fi),document.removeEventListener("touchstart",Fi),Xh().removeEventListener("scroll",Jh)}function Jh(){Fs()}function Fi(t){let e=t.target;!e.closest(".Theme-Layer-BodyText-Highlight")&&!e.closest(".Theme-Footnote")&&Fs()}var Bs=J(ce());var Zh="HideOffscreen__media--onscreen";function BI(t){Bs.default.mutate(()=>{t.forEach(e=>e.classList.remove(Zh))})}function qI(t){Bs.default.mutate(()=>{t.forEach(e=>{e.classList.add(Zh),Ua([e])})})}function qs(){x(".HideOffscreen--container").map(t=>({container:t,children:x(".HideOffscreen__media",t)})).filter(t=>t.children&&t.children.length>0).forEach(t=>{fr(t.container,e=>{switch(e){case qt:qI(t.children);break;case es:BI(t.children);break}},"on visibile")})}function js(){}function jI(){let t=document.createElement("div");return t.style.display="flex",t.style.display==="flex"}function zs(){jI()||document.documentElement.classList.add("Layout--flexboxUnsupported")}function Us(){zs()}var eg=J(ce());var Pe=class{constructor(e){this.element=e,this.counter=e.querySelector("[aria-live]"),this.element.parentElement.removeChild(this.element),document.body.appendChild(this.element),this.currentMediaIndex=0,this.media=x("[data-media-gallery-index]",this.element),this.element.addEventListener("click",()=>{this.close()}),x("img, .Videoplayer, .Theme-Caption",this.element).forEach(a=>{a.addEventListener("click",s=>s.stopPropagation())});let r=V('[data-action="previous"]',this.element);r&&r.addEventListener("click",a=>{a.stopPropagation(),this.prev()});let n=V('[data-action="next"]',this.element);n&&n.addEventListener("click",a=>{a.stopPropagation(),this.next()}),V('[data-action="close"]',this.element).addEventListener("click",a=>{a.stopPropagation(),this.close()}),this.element.addEventListener("touchmove",a=>a.preventDefault());let o=-1;x("img, .Videoplayer",this.element).forEach(a=>{a.addEventListener("touchstart",s=>{o=s.touches[0].clientX}),a.addEventListener("touchend",s=>{let l=s.changedTouches[0].clientX-o,c=window.innerWidth*.1;l<-c?this.next():l>c&&this.prev(),o=-1})})}getFocusable(){let e=x("*[data-action]",this.element),r=V(`[data-media-gallery-index="${this.currentMediaIndex}"].active [tabindex]`,this.element);return e.concat(r).filter(n=>n)}open(e,r){var n;(n=Pe.current)==null||n.close(!1),x("video",this.element).forEach(i=>i.setAttribute("playsinline","true")),x([".DeviceDetect--isEdge .MediaGallery--lightbox .plyr__progress--seek",".DeviceDetect--isIE .MediaGallery--lightbox .plyr__progress--seek"].join(",")).forEach(i=>{i.style.setProperty("width","0"),setTimeout(()=>i.style.removeProperty("width"),100)}),this.goToIndex(e),this.element.classList.add("MediaGallery--lightbox--open"),Pe.current=this,document.body.classList.add("Body--hasLightbox"),this.getFocusable()[1].focus(),this.onClose=r}close(e=!0){this.element.classList.remove("MediaGallery--lightbox--open"),document.body.classList.remove("Body--hasLightbox"),x("video",this.element).forEach(r=>r.pause()),e&&typeof this.onClose=="function"&&this.onClose(),Pe.current=null}prev(){let e=this.currentMediaIndex===0?this.media.length-1:this.currentMediaIndex-1;this.goToIndex(e)}next(){let e=this.currentMediaIndex===this.media.length-1?0:this.currentMediaIndex+1;this.goToIndex(e)}goToIndex(e){this.media[this.currentMediaIndex].classList.remove("active"),x("video",this.element).forEach(n=>n.pause()),this.currentMediaIndex=e,V(`[data-media-gallery-index="${this.currentMediaIndex}"]`,this.element).classList.add("active"),this.counter.innerText=`Item ${e+1} of ${this.media.length}`}};function Vs(){let t={};x("[data-media-gallery-lightbox]").forEach(r=>{let n=r.getAttribute("data-media-gallery-lightbox");t[n]=new Pe(r)}),x("[data-media-gallery]").forEach(r=>{let n=r.getAttribute("data-media-gallery");x("[data-cell-index]",r).forEach(i=>{i.addEventListener("click",()=>e(n,i)),i.addEventListener("keydown",o=>{Pe.current||o.code==="Enter"&&(o.preventDefault(),o.stopPropagation(),e(n,i))})})}),window.removeEventListener("keydown",Qh),window.addEventListener("keydown",Qh);function e(r,n){let i=parseInt(n.getAttribute("data-cell-index"),10);zI(),t[r].open(i,()=>{UI(),n.focus()})}}function Qh(t){if(!!Pe.current&&$.getHeight()!==screen.height)switch(t.code){case"Tab":let e=Pe.current.getFocusable(),r=e[0],n=e[e.length-1];!e.includes(document.activeElement)||!t.shiftKey&&document.activeElement===n?(t.preventDefault(),t.stopPropagation(),r.focus()):t.shiftKey&&document.activeElement===r&&(t.preventDefault(),t.stopPropagation(),n.focus());break;case"Enter":document.activeElement.className.includes("plyr")&&(t.preventDefault(),t.stopPropagation(),document.activeElement.querySelector('[data-plyr="fullscreen"]').click());break;case"ArrowRight":t.preventDefault(),t.stopPropagation(),document.activeElement.className.includes("plyr")||Pe.current.next();break;case"ArrowLeft":t.preventDefault(),t.stopPropagation(),document.activeElement.className.includes("plyr")||Pe.current.prev();break;case"Escape":t.preventDefault(),t.stopPropagation(),Pe.current.close();break}}function zI(){x("[data-media-gallery] video").forEach(t=>t.pause())}function UI(){x("[data-media-gallery] video").forEach(t=>{eg.default.measure(()=>{let e=t.getBoundingClientRect();e.top<$.getHeight()&&e.bottom>0&&t.play()})})}function $s(){let{isIE:t,isEdge:e}=Ee();(t||e)&&(window.addEventListener("mousewheel",r=>{let{wheelDelta:n,wheelDeltaY:i}=r;r.preventDefault(),mn(1-(i||n))}),document.body.addEventListener("keydown",r=>{switch(r.keyCode){case 33:r.preventDefault(),mn(window.innerHeight*-.8);break;case 34:r.preventDefault(),mn(window.innerHeight*.8);break;case 38:r.preventDefault(),mn(-120);break;case 40:r.preventDefault(),mn(120);break;default:return}}))}function mn(t,e=100){let r=10,n=t/r,i=setInterval(()=>{window.scrollTo(0,Math.round(window.pageYOffset+n)),r>0?r--:clearInterval(i)},e/r)}var og=J(rg());var Ws=J(ce());var ig="Theme-ActiveNavigationBarItem";function VI(t){return t.reduce((e,r)=>{let n=r.getAttribute("href");if(n.indexOf("#")!==0)return e;let i=n.replace(/^#/,"");try{let o=document.getElementById(i);o||console.warn(`navigation: Couldn't locate target via nav item id '${i}'.`),e.push({target:o,navItem:r})}catch(o){console.warn(`navigation: Bad target via nav item selector ${i}.`)}return e},[])}function $I(t){t.forEach(WI)}function WI(t){t.parentElement.classList.remove(ig)}function GI(t){t.parentElement.classList.add(ig)}function YI(t){let e=$.getHeight()/2;return t.find(r=>{let n=r.target.getBoundingClientRect(),i=r.target.className.match(/\bTheme-TitleSection\b/)!==null;return n.top<e&&(i||n.bottom>e)})}var ng={lastMostVisible:!1};function KI(t){Ws.default.measure(()=>{let e=YI(t.slice().reverse());ng.lastMostVisible!==e&&Ws.default.mutate(()=>{$I(t.map(r=>r.navItem)),e&&GI(e.navItem),ng.lastMostVisible=e})})}function Gs(t){let e=VI(t);if(e.length===0)return;let r=()=>KI(e);["scroll","resize"].forEach(n=>window.addEventListener(n,r)),setTimeout(r,1e3),r()}function Ys(){let t=x(".Navigation"),e=x(".Navigation__hamburger");if(!t.length||!e.length)return;let r=t[0],n=e[0],i=x(".Navigation__item",r);XI(n,r),ZI(i,r,n),JI(n)}function XI(t,e){t.addEventListener("click",r=>{r.preventDefault(),e.classList.toggle("Navigation--isActive");let i=e.classList.contains("Navigation--isActive")?"true":"false";t.setAttribute("aria-expanded",i)})}function JI(t){t.classList.remove("Navigation__hamburger--initializing")}function ZI(t,e,r){let n=()=>{e.classList.remove("Navigation--isActive"),r.setAttribute("aria-expanded","false")};t.forEach(i=>i.addEventListener("click",n))}var QI="[data-story-nav-item]",eL=-2;function tL(){return x("[data-fixed-story-element]").reduce((e,r)=>e+r.getBoundingClientRect().height,eL)}function Ks(t=QI){let e=x(t);Gs(e),Ys();let r=tL();og.setup(500,r)}var Qs=J(ce());var rL={["clientWidth"]:["padding-left","padding-right","border-left-width","border-right-width"],["clientHeight"]:["padding-top","padding-bottom","border-top-width","border-bottom-width"]};function ag(t){return sg(t,"clientWidth")}function hn(t){return sg(t,"clientHeight")}function nL(t,e){switch(e){case"clientWidth":return t.clientWidth;case"clientHeight":return t.clientHeight}}function sg(t,e){let r=rL[e];try{let n=window.getComputedStyle(t),i=r.reduce((o,a)=>{let s=n.getPropertyValue(a);return o+iL(s)},0);return nL(t,e)-i}catch(n){throw new Error(`Couldn't get styles for element ${t} in getInnerDimension`)}}function iL(t){return parseInt(t,10)}var bL=Bg(),qg={elements:[]},EL=bL();function tl(t){let{elements:e}=qg;if(e.findIndex(n=>n.element===t)>-1)return;let r={element:t,onResize(){el(t)}};e.push(r),el(t,!0),EL.listenTo(r.element.parentElement,r.onResize),qi()}function wL(){let{elements:t}=qg;t.forEach(e=>el(e.element))}function el(t,e=!1){Qs.default.measure(()=>{let r=t.parentNode,n=ag(r),i=t.clientWidth;(n!==i||e)&&Qs.default.mutate(()=>{t.style.width=`${n}px`})})}function qi(){let t=document.getElementsByClassName("ParentWidth");Array.prototype.forEach.call(t,tl),wL()}var jg={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 TL(t,e){let r=Math.round($.getWidth()/2-e.popupWidth/2),n=0;$.getHeight()>e.popupHeight&&(n=Math.round($.getHeight()/3-e.popupHeight/2));let i={left:r,top:n,width:e.popupWidth,height:e.popupHeight,personalbar:0,toolbar:0,scrollbars:1,resizable:1},o=Object.keys(i).map(l=>`${l}=${i[l]}`).join(","),a="social-widget-"+e.networkName.replace(/\s+/,"-"),s=window.open(t,a,o);s?s.focus():location.href=t}function SL(t){t.preventDefault();let e=t.currentTarget,r=e.getAttribute("data-social-share"),n=jg[r],i=e.href;TL(i,n)}function xL(t){let e=t.getAttribute("data-social-share");e in jg?t.addEventListener("click",SL,{passive:!1}):console.error(`Social Share button of type ${e} is not supported.`)}function vn(t="[data-social-share]"){x(t).forEach(xL)}var bn=class{constructor({baseUrl:e,componentsBaseUrl:r},n){this.baseUrl=e,this.componentsBaseUrl=r,this.index=n}getHeaderNavigation(){return this.compileNavigation(this.index.headerNavigation)}getFooterNavigation(){return this.compileNavigation(this.index.footerNavigation)}compileNavigation(e){var n,i,o;let r=e.hasManualItems?e.items:this.index.roots.map(a=>({label:this.index.nodes[a].label,nodeId:a,url:""}));return{isEnabled:e.isEnabled,option:e.option,hasSocials:e.hasSocials,social:e.social,showThemeLogos:e.showThemeLogos,logos:((n=e.logos)!=null?n:[]).map(a=>this.compileLogo(a)),color:(i=e.color)!=null?i:void 0,fontColor:(o=e.fontColor)!=null?o:void 0,items:r.reduce((a,s)=>{let l=this.compileNavigationItem(s);return l&&a.push(l),a},[])}}compileLogo(e){let r={media:{}};for(let n of e.media)n.uri&&(r.media[n.sel]={src:this.getProjectUrl(n.uri),alt:n.alt});return e.link&&(r.link=pe(ee({},e.link),{href:this.getProjectUrl(e.link.href)})),r}compileNavigationItem({label:e,nodeId:r,url:n}){var a,s,l;if(n)return{label:e,url:n,children:[]};let i=this.index.nodes[r];if(!i)return;let o=(s=(a=i.children)==null?void 0:a.reduce((c,u)=>{let d=this.index.nodes[u];return d!=null&&d.page&&c.push({label:d.label||this.index.pages[d.page].title||"Untitled story",url:this.getPageUrl(d.page)}),c},[]))!=null?s:[];return i.page&&(n=this.getPageUrl(i.page)),{label:e||i.label||((l=this.index.pages[i.page])==null?void 0:l.title)||"Untitled story",url:n,children:o}}externalLinkToProjectPage(e){return{pageId:e.id,url:e.url,title:e.title,description:e.description,publishedAt:new Date,tags:[],cover:this.compileCover(e.cover)}}getProjectPage(e,r){var i;let n=this.index.pages[e];if(n)return{pageId:e,url:this.getPageUrl(e),title:r!=null&&r.title?r.title:n.title,description:r!=null&&r.description?r.description:n.description,publishedAt:new Date(n.at),tags:(i=n.tags)!=null?i:[],cover:r!=null&&r.cover?this.compileCover(r.cover):this.compileCover(n.cover,e)}}compileCover(e,r){if(e){let{image:n,sources:i=[]}=e!=null?e:{};return{url:r?this.getPageAssetUrl(r,n):n,sources:i.map(({t:o,s:a})=>({type:o,srcSet:a.map(({u:s,w:l})=>{let c=r?this.getPageAssetUrl(r,s):s;return l?`${c} ${l}w`:c}).join(",")}))}}}getProjectPageIds(){return Object.keys(this.index.pages)}getTaggedPageIds(e,r){let n=new Set(e);return Object.keys(this.index.pages).filter(i=>{var a,s;let o=(s=(a=this.index.pages[i])==null?void 0:a.tags)!=null?s:[];return r==="all"?o.filter(l=>n.has(l)).length>=n.size:o.find(l=>n.has(l))})}getSubpageIds(e,r,n){r||(r=this.index.pages[n].nodeId),e==="siblings"&&(r=Object.entries(this.index.nodes).reduce((a,[s,l])=>l.children.includes(r)?s:a,r));let i=this.index.nodes[r];return this._getChildren(i,e).reduce((a,s)=>{let l=this.index.nodes[s];return l.page&&l!==i&&l.page!==n&&a.push(l.page),a},[])}_getChildren(e,r){if(!e)return[];let n=e.children;return r==="descendants"?n.reduce((i,o)=>i.concat(o).concat(this._getChildren(this.index.nodes[o],r)),[]):n}getPageAssetUrl(e,r){var o;if(!r)return;let n=this.index.pages[e],i=this.index.nodes[n==null?void 0:n.nodeId];if(!(!n||!i))return r.match(/^(https?:\/\/|\/)/)?r:`${(o=this.componentsBaseUrl)!=null?o:this.baseUrl}${i.uri}${r}`}getPageUrl(e){var o;let r=this.index.pages[e],n=this.index.nodes[r==null?void 0:r.nodeId];if(!r||!n)return;let i=(o=r.uri)!=null?o:`${n.uri}index.html`;return i.match(/^(https?:\/\/|\/)/)?i:`${this.baseUrl}${i}`}getProjectUrl(e){return e.match(/^(https?:\/\/|\/)/)?e:`${this.baseUrl}${e}`}};function rl(){if(!window.hasOwnProperty("$shproject")||window.$shproject===void 0)return;let t=!1,e={create:()=>_t(this,null,function*(){if(!t){t=!0;let r=window.$shproject,n=Promise.resolve(null);r.index?n=Promise.resolve(new bn(r,r.index)):n=new Promise((i,o)=>{let a=document.createElement("script");a.src=`${r.baseUrl}project.js`,a.addEventListener("load",()=>{i(new bn(window.$shproject,window.$shproject.index))}),a.addEventListener("error",o),V("#article").appendChild(a)}),window.Shorthand.project.get=()=>n}}),get:()=>_t(this,null,function*(){return console.error("Project API is not ready yet"),null})};window.hasOwnProperty("Shorthand")?window.Shorthand.hasOwnProperty("project")||(window.Shorthand.project=e):window.Shorthand={project:e},window.Shorthand.project.get||(window.Shorthand.project.create=e.get),window.Shorthand.project.create||(window.Shorthand.project.create=e.create),window.Shorthand.project.create().catch(console.error),window.Shorthand.project.get().then(r=>{!r||(IL(r),LL(r),vn(),CL(r))}).catch(console.error)}function IL(t){let e=V("[data-project-header]"),r=t.getHeaderNavigation();!e||!r.isEnabled||(e.classList.remove("Theme-HeaderContainer--hidden"),zg(e,r),Ug(e,r,"header"),Vg(r,"header"))}function LL(t){let e=V("[data-project-footer]"),r=t.getFooterNavigation();!e||!r.isEnabled||(zg(e,r),Ug(e,r,"footer"),Vg(r,"footer"))}function zg(t,e){var n;if(t.style.removeProperty("display"),e.color){t.style.backgroundColor=(n=e.color)==null?void 0:n.color;let i=x(".Theme-NavigationBar")[1];i&&e.color&&(i.style.backgroundColor=e.color.color),i&&e.fontColor&&Array.from(i.querySelectorAll(".Theme-NavigationBarItem")).forEach(o=>{o.style.color=e.fontColor.color})}t.classList.add(`ProjectNavigation--${e.option}`);let r=V("[data-project-logos]",t);r&&PL(e.logos,e.showThemeLogos,r)}function Ug(t,e,r){let n=t.querySelector(".Navigation");e.color&&n.classList.add(e.color.className);let i=t.querySelector("ul");document.querySelectorAll(".Navigation__hamburger span").forEach(a=>{var s;return a.style.backgroundColor=(s=e.fontColor)==null?void 0:s.color}),e.items.forEach(a=>{var c,u,d;let s=document.createElement("li");s.style.color=(c=e.fontColor)==null?void 0:c.color,s.className="Navigation__item Theme-NavigationBarItem";let l=document.createElement(a.url?"a":"span");if(l.className="Theme-NavigationLink",l.setAttribute("data-story-nav-item","true"),l.textContent=a.label,a.url&&(l.href=a.url),s.appendChild(l),i.appendChild(s),a.children.length>0){s.classList.add("hasMenu");let f=document.createElement("ul");if(f.className="Navigation__subMenu Theme-ProjectNavigation-subMenu",f.style.backgroundColor=(u=e.color)==null?void 0:u.color,f.setAttribute("role","menu"),r==="header"){let y=document.createElement("button");y.className="Navigation__button",y.style.color=(d=e.fontColor)==null?void 0:d.color,y.setAttribute("aria-label",`show submenu for ${a.label}`),y.addEventListener("click",function(){let p=this.parentNode;p.className.includes("isOpen")?(p.classList.remove("isOpen"),this.setAttribute("aria-expanded","false")):(p.classList.add("isOpen"),this.setAttribute("aria-expanded","true"))});let T=document.createElement("span");T.className="menuCaret",y.appendChild(T),s.addEventListener("mouseenter",function(){this.classList.add("isOpen"),y.setAttribute("aria-expanded","true")}),s.addEventListener("mouseleave",function(){this.classList.remove("isOpen"),y.setAttribute("aria-expanded","false")}),s.appendChild(y)}a.children.forEach(y=>{let T=document.createElement("li");T.className="Navigation__item Theme-NavigationBarItem Theme-ProjectNavigation-subItem",T.setAttribute("role","menuitem");let p=document.createElement("a");p.className="Theme-NavigationLink",p.textContent=y.label,p.href=y.url,T.appendChild(p),f.appendChild(T)}),s.appendChild(f)}})}function Vg(t,e){let r=encodeURIComponent(document.location.href),n=e==="header"?document.querySelector(".Project-Header--right .Theme-SocialIcons"):document.querySelector(".Project-Footer--right .Theme-SocialIcons");if(t.social.showTwitter){let i=JSON.parse(n.getAttribute("data-text")),o=document.createElement("span");o.className="Theme-SocialButton";let a=document.createElement("a");a.className="Theme-TwitterButton",a.href=`https://twitter.com/intent/tweet?url=${r}${i.text}${i.via}`,a.setAttribute("data-social-share","twitter"),a.setAttribute("data-testid","Header--btn-Twitter"),o.appendChild(a),n.appendChild(o)}if(t.social.showFacebook){let i=document.createElement("span");i.className="Theme-SocialButton";let o=document.createElement("a");o.className="Theme-FacebookButton Theme-FaceboookButton",o.href=`https://www.facebook.com/sharer/sharer.php?u=${r}`,o.setAttribute("data-social-share","facebook"),o.setAttribute("data-testid","Header--btn-Facebook"),i.appendChild(o),n.appendChild(i)}if(t.social.showLinkedIn){let i=document.createElement("span");i.className="Theme-SocialButton";let o=document.createElement("a");o.className="Theme-LIButton",o.href=`https://www.linkedin.com/shareArticle?mini=true&url=${r}`,o.setAttribute("data-social-share","linkedin"),o.setAttribute("data-testid","Header--btn-LinkedIn"),i.appendChild(o),n.appendChild(i)}}function AL(t){let e=t.length;for(;e>0;){let r=Math.floor(Math.random()*e);e--;let n=t[e];t[e]=t[r],t[r]=n}return t}function CL(t){x("[data-related-stories]").forEach(e=>{let r=V("ul[data-related-stories-list]",e);if(r)return ML(t,e,r);let n=V("ul[data-related-stories-site-map]",e);if(n)return OL(t,n)})}function ML(t,e,r){var g,h,O;let n=r.getAttribute("data-page"),i=(g=r.getAttribute("data-filter"))!=null?g:"list",o=r.getAttribute("data-content-titles")!=="false",a=r.getAttribute("data-content-descriptions")!=="false",s=(h=r.getAttribute("data-sort-order"))!=null?h:"Recently published",l=r.hasAttribute("data-filter-pages")?JSON.parse(r.getAttribute("data-filter-pages")):[],c=r.hasAttribute("data-shapes")?JSON.parse(r.getAttribute("data-shapes")):{},u=r.getAttribute("data-default-shape"),d=r.hasAttribute("data-external-links")?JSON.parse(r.getAttribute("data-external-links")):[],f=r.hasAttribute("data-external-links")?JSON.parse(r.getAttribute("data-item-overrides")):[],y;r.hasAttribute("data-limit")&&(y=(O=parseInt(r.getAttribute("data-limit")))!=null?O:void 0);let T=l;switch(i){case"subtree":let{relation:H,relationNodeId:_}=r.hasAttribute("data-filter-subtree")?JSON.parse(r.getAttribute("data-filter-subtree")):{relation:"children",relationNodeId:n};T=t.getSubpageIds(H,_,n);break;case"tags":let A=r.hasAttribute("data-filter-tag-rule")?r.getAttribute("data-filter-tag-rule"):"any",k=r.hasAttribute("data-filter-tags")?JSON.parse(r.getAttribute("data-filter-tags")):[];T=t.getTaggedPageIds(k,A).filter(Q=>Q!==n);break}let p=T.map(H=>{let _=d.find(k=>k.id===H),A=f==null?void 0:f.find(k=>k.id===H);return _?t.externalLinkToProjectPage(_):t.getProjectPage(H,A)}).filter(H=>H);switch(s){case"Recently published":p.sort((A,k)=>k.publishedAt.getTime()-A.publishedAt.getTime());break;case"A - Z":p.sort((A,k)=>A.title.localeCompare(k.title));break;case"Z - A":p.sort((A,k)=>k.title.localeCompare(A.title));break;case"Random":AL(p);break;case"Manually sorted":let H=[],_=[...p];for(let A of l){let k=p.find(Q=>Q.pageId===A);k&&(H.push(k),_=_.filter(Q=>Q.pageId!==A))}p=H.concat(_)}let v=p.slice(0,y);if(v.length===0){e.remove();return}let E=V('[data-template="item"]',r);if(!E){e.remove();return}x("[data-template]",r).forEach(H=>{H.removeAttribute("data-template"),E.remove(),E.style.removeProperty("display")});let I=x("a[data-item-url]",E),R=x("img[data-item-media]",E),M=x("[data-item-title]",E),S=x("[data-item-description]",E),w=x("[data-item-image]",E);v.forEach(H=>{I.forEach(A=>A.setAttribute("href",H.url)),H.cover&&(R.forEach(A=>A.setAttribute("src",H.cover.url)),R.forEach(A=>A.setAttribute("alt",`Cover image for ${H.title}`))),M.forEach(A=>{A.textContent=H.title,o||(A.style.display="none")}),S.forEach(A=>{var k;A.textContent=(k=H.description)!=null?k:"",a||(A.style.display="none")}),w.forEach(A=>{if(c){let k=u||c[H.pageId];A.className=`crop-${k}`}}),M.forEach(A=>A.textContent=H.title),S.forEach(A=>{var k;return A.textContent=(k=H.description)!=null?k:""});let _=E.cloneNode(!0);H.cover?x("source[data-item-mediasource]",_).forEach(A=>{H.cover.sources.forEach(k=>{let Q=A.cloneNode(),K=A.nextSibling;Q.srcset=k.srcSet,Q.type=k.type,A.parentElement.insertBefore(Q,K)}),A.remove()}):x(".related-story-image",_).forEach(A=>A.remove()),r.appendChild(_)})}function OL(t,e){let r=x("[data-template]",e),n=V('[data-template="page"]',e),i=V('[data-template="node"]',e);r.forEach(a=>{a.removeAttribute("data-template"),a.remove(),a.style.removeProperty("display")});function o(a,s){var p;let l=t.index.nodes[a];if(!l)return;let c=t.index.pages[l.page];if(!c&&!l)return;let d=(c?n:i).cloneNode(!0),f=l.page?t.getPageUrl(l.page):"",y=c?c.title:l.label;x("[data-item-title]",d).forEach(v=>{v.textContent=y}),x("a[data-item-url]",d).forEach(v=>{v.setAttribute("href",f)});let T=V("ul[data-item-children]",d);T&&((p=l.children)!=null?p:[]).forEach(v=>o(v,T)),s.appendChild(d)}t.index.roots.forEach(a=>o(a,e))}function PL(t,e,r){let n=x("[data-template]",r),i=V('[data-template="link"]',r),o=V('[data-template="no-link"]',r);if(!i||!o){r.remove();return}e||x("[data-themelogos]",r).forEach(s=>s.remove()),n.forEach(a=>a.remove());for(let{link:a,media:s}of t){let c=(a?i:o).cloneNode(!0),u=Object.values(s).reduce((d,{alt:f})=>d||f,"");for(let d of x("img[data-logo-img]",c))kL(d,s,u)||d.remove();if(a)for(let d of x("a[data-logo-link]",c))HL(d,a);r.appendChild(c)}}function kL(t,e,r){let n=t.getAttribute("data-logo-img");if(n in e){let{src:i,alt:o}=e[n];return t.setAttribute("src",i),(o||r)&&t.setAttribute("alt",o||r),!0}return!1}function HL(t,e){var n;t.setAttribute("href",e.href),e.blank&&t.setAttribute("target","_blank");let r=new Set((n=t.getAttribute("rel"))!=null?n:[]);e.noreferrer&&r.add("noreferrer"),e.nofollow&&r.add("nofollow"),r.size>0&&t.setAttribute("rels",Array.from(r).join(" "))}var il=J(ji());function le(t){return typeof t=="number"?Math.round(t):{x:le(t.x),y:le(t.y),z:t.z}}function nl(){return{noHighlightsBehaviour:"contain",lineWidth:10,lineColor:"#12bf9c",markerSize:30,markerColor:"#12bf9c",transitionDuration:1}}var mt=null;function zi(t=!1){return new Promise((e,r)=>{if(mt===null||t){mt=nl();let n=document.createElement("div");n.className="Theme-Scrollpoints-Highlight",n.style.display="none",n.style.pointerEvents="none",document.body.appendChild(n);let i=document.createElement("div");i.className="Theme-Scrollpoints-Marker",i.style.display="none",i.style.pointerEvents="none",document.body.appendChild(i),setTimeout(()=>{let o=window.getComputedStyle(i);return mt.markerSize=parseInt(o.getPropertyValue("width"),10),mt.markerColor=o.getPropertyValue("background-color"),o=window.getComputedStyle(n),mt.lineWidth=parseInt(o.getPropertyValue("border-width"),10),mt.lineColor=o.getPropertyValue("border-color"),mt.noHighlightsBehaviour=o.getPropertyValue("background-size")==="cover"?"cover":"contain",e(mt)},50)}else return e(mt)})}function Wg(t,e){if(e<=0)return;let{height:r,width:n}=t.canvas,i=t.getImageData(0,0,n,r),{data:o}=i,a=n-1,s=r-1,l=e+1,u=[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][e],f=[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][e],y=[],T=[],p=[],v=[],E=[],I=[],R=3,M,S,w,g;for(;R-- >0;){let h=0,O=0;for(let H=0;H<r;H++){let _=o[h]*l,A=o[h+1]*l,k=o[h+2]*l,Q=o[h+3]*l;for(let K=1;K<=e;K++)M=h+((K>a?a:K)<<2),_+=o[M++],A+=o[M++],k+=o[M++],Q+=o[M];for(let K=0;K<n;K++)y[O]=_,T[O]=A,p[O]=k,v[O]=Q,H===0&&(E[K]=((M=K+l)<a?M:a)<<2,I[K]=(M=K-e)>0?M<<2:0),S=h+E[K],w=h+I[K],_+=o[S++]-o[w++],A+=o[S++]-o[w++],k+=o[S++]-o[w++],Q+=o[S]-o[w],O++;h+=n<<2}for(let H=0;H<n;H++){let _=H,A=y[_]*l,k=T[_]*l,Q=p[_]*l,K=v[_]*l;for(let L=1;L<=e;L++)_+=L>s?0:n,A+=y[_],k+=T[_],Q+=p[_],K+=v[_];O=H<<2;for(let L=0;L<r;L++)o[O+3]=g=K*u>>>f,g>0?(g=255/g,o[O]=(A*u>>>f)*g,o[O+1]=(k*u>>>f)*g,o[O+2]=(Q*u>>>f)*g):o[O]=o[O+1]=o[O+2]=0,H===0&&(E[L]=((M=L+l)<s?M:s)*n,I[L]=(M=L-e)>0?M*n:0),S=H+E[L],w=H+I[L],A+=y[S]-y[w],k+=T[S]-T[w],Q+=p[S]-p[w],K+=v[S]-v[w],O+=n<<2}}t.putImageData(i,0,0)}var En=class{constructor(e){this.onTick=e}start(e,r,n){this.from=le(e),this.to=le(r),this.duration=n,!(isNaN(e.x)||isNaN(e.y)||isNaN(e.z)||isNaN(r.x)||isNaN(r.y)||isNaN(r.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 e=new Date().getTime(),r=(e-this.lastTickAt)/1e3;if(this.lastTickAt=e,this.secondsRemaining>0){this.secondsRemaining=this.secondsRemaining-r;let n=1-Math.max(0,this.secondsRemaining)/this.duration,i=Gg(n);this.onTick({x:le(this.from.x+(this.to.x-this.from.x)*i),y:le(this.from.y+(this.to.y-this.from.y)*i),z:this.from.z+(this.to.z-this.from.z)*Gg(n)}),requestAnimationFrame(this.tick)}}}},Gg=t=>1-(1-t)*(1-t);var Yg=.01,Kg=2.5,Tn=class{constructor(e,r,n,i){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=nl();this._isReady=!1;this._isRendering=!1;typeof window.devicePixelRatio=="number"&&(this.pixelDensity=Math.min(2,window.devicePixelRatio)),this.initStyle().catch(console.error),this.canvas=e,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=r,this.highlights=[],this.backgroundColor=n,this.backgroundOpacity=i,this.bias="none",this.x=0,this.y=0,this.zoom=1,this.maxX=0,this.maxY=0,this.tween=new En(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 _t(this,null,function*(){this._style=yield zi(!0)})}hide(){this.isHidden=!0,this.canvas.style.display="none"}show(){this.isHidden&&this.render(),this.isHidden=!1,this.canvas.style.display="initial"}setInstantSrc(e){if(e===this.backgroundImageSrc)return;this.backgroundImageSrc=e,this.isBackgroundImageReady=!1,this.backgroundImage||(this.backgroundImage=document.createElement("canvas"));let r=document.createElement("img");r.crossOrigin="use-credentials",r.addEventListener("load",()=>{if(r.width<=0)return;this.backgroundImage.width=300,this.backgroundImage.height=300;let n=this.backgroundImage.getContext("2d",{alpha:!1});n.drawImage(r,0,0,this.backgroundImage.width,this.backgroundImage.height),Wg(n,10),this.isBackgroundImageReady=!0}),r.src=e}adjustSize(){let{width:e}=this.canvas.parentElement.getBoundingClientRect(),r=window.innerHeight;this.canvas.width=e*this.pixelDensity,this.canvas.height=r*this.pixelDensity,this.canvas.style.width=`${e}px`,this.canvas.style.height=`${r}px`,this.canvasWidth=e*this.pixelDensity,this.canvasHeight=r*this.pixelDensity,this.offscreenCanvas.width=e*this.pixelDensity,this.offscreenCanvas.height=r*this.pixelDensity}render(){this._isReady?requestAnimationFrame(this._render):requestAnimationFrame(this.render)}_render(e){if(!this.isHidden){if(!this._isRendering){this._isRendering=!0;let r=(e-this.setHighlightsAt)/60,n=this.ctx;n.fillStyle="black",n.fillRect(0,0,this.canvasWidth,this.canvasHeight),this.isBackgroundImageReady&&this.backgroundImage.width>0&&this.backgroundOpacity<1&&n.drawImage(this.backgroundImage,0,0,this.backgroundImage.width,this.backgroundImage.height,0,0,this.canvasWidth,this.canvasHeight);let i=this.highlights.filter(a=>a.darkenAroundHighlight);i.length>0&&(n.fillStyle="rgba(0,0,0,0.6)",n.fillRect(0,0,this.canvasWidth,this.canvasHeight)),n.fillStyle=this.backgroundColor,n.globalAlpha=this.backgroundOpacity,n.fillRect(0,0,this.canvasWidth,this.canvasHeight),n.globalAlpha=1,n.transform(this.zoom,0,0,this.zoom,le(this.canvasWidth/2),le(this.canvasHeight/2)),this.image.width>0&&n.drawImage(this.image,-this.x,-this.y);let o=10*this.pixelDensity/this.zoom;if(i.length>0){n.fillStyle="rgba(0,0,0,0.6)",n.setTransform(1,0,0,1,0,0),n.fillRect(0,0,this.canvasWidth,this.canvasHeight),n.transform(this.zoom,0,0,this.zoom,le(this.canvasWidth/2),le(this.canvasHeight/2)),n.save();let a=new Path2D;i.forEach(s=>{wn(a,-this.x+s.x,-this.y+s.y,s.width,s.height,o)}),n.clip(a),this.image.width>0&&n.drawImage(this.image,-this.x,-this.y),n.restore()}this.highlights.forEach(a=>{var c;let s=new Path2D;switch(n.lineWidth=le(this._style.lineWidth/2*this.pixelDensity/this.zoom),(c=a.effect)!=null?c:a.isHidden?"hidden":"solid"){case"hidden":break;case"ants":n.strokeStyle=a.color?a.color:this._style.lineColor,n.setLineDash([40/this.zoom,20/this.zoom]),n.lineDashOffset=-(r*5%60)/this.zoom,wn(s,-this.x+a.x,-this.y+a.y,a.width,a.height,o),n.stroke(s);break;case"draw":let u=(a.width+a.height)*2;n.strokeStyle=a.color?a.color:this._style.lineColor,n.setLineDash([u]),n.lineDashOffset=Math.max(0,u-r*(u/60)),wn(s,-this.x+a.x,-this.y+a.y,a.width,a.height,o),n.stroke(s);break;case"flash":n.strokeStyle=a.color?a.color:this._style.lineColor,n.setLineDash([]),wn(s,-this.x+a.x,-this.y+a.y,a.width,a.height,o),n.globalAlpha=(1+Math.sin(r/4))/2,n.stroke(s),n.globalAlpha=1;break;case"solid":default:n.strokeStyle=a.color?a.color:this._style.lineColor,n.setLineDash([]),wn(s,-this.x+a.x,-this.y+a.y,a.width,a.height,o),n.stroke(s);break}n.setLineDash([]),n.lineDashOffset=0}),this.highlights.forEach(a=>{var s;if(a.hasDot){let l=(this._style.markerSize/2-2)*this.pixelDensity/this.zoom,c=2*this.pixelDensity*((1+Math.sin(r/4))/2)/this.zoom,u=new Path2D;u.arc(-this.x+a.dotX,-this.y+a.dotY,le(l+c),0,2*Math.PI),n.fillStyle=(s=a.dotColor)!=null?s:this._style.lineColor,n.fill(u),n.lineWidth=4*this.pixelDensity/this.zoom,n.strokeStyle="black",n.stroke(u)}}),this.highlights.forEach(a=>{let s=18*this.pixelDensity-4;if(n.font=`bold ${s/this.zoom}px Arial`,n.textAlign="center",n.fillStyle="white",n.strokeStyle="black",n.lineWidth=6*this.pixelDensity/this.zoom,a.label){let l=this.ensureLabelXIsInsideBoundaries(n.measureText(a.label).width,-this.x+a.x+a.width*.5);n.strokeText(a.label,l,-this.y+a.y+a.height-(s+5)/this.zoom),n.fillText(a.label,l,-this.y+a.y+a.height-(s+5)/this.zoom)}if(a.dotLabel){let l=this.ensureLabelXIsInsideBoundaries(n.measureText(a.dotLabel).width,-this.x+a.dotX);n.strokeText(a.dotLabel,l,-this.y+a.dotY-(s+10)/this.zoom),n.fillText(a.dotLabel,l,-this.y+a.dotY-(s+10)/this.zoom)}}),n.setTransform(1,0,0,1,0,0),this.finalCtx.drawImage(this.offscreenCanvas,0,0),this._isRendering=!1}this.render()}}setBounds(e,r){this.maxX=e,this.maxY=r}setHighlights(e,r){this.noHighlightsBehaviour=this._style.noHighlightsBehaviour,this.highlights=[];let n=this.getDimensions(),i=this.getAutoZoom(n.width,n.height),o=this._style.transitionDuration;e.length>0&&(this.highlights=e.map(a=>pe(ee({},a),{x:le(a.x/100*this.maxX),y:le(a.y/100*this.maxY),width:le(a.width/100*this.maxX),height:le(a.height/100*this.maxY),dotX:le(a.dotX/100*this.maxX),dotY:le(a.dotY/100*this.maxY)})),n=this.getDimensions(),i=this.getAutoZoom(n.width,n.height)),this.tween.start({x:this.x,y:this.y,z:this.zoom},{x:n.x+n.width/2,y:n.y+n.height/2,z:i},r===this.key?0:o),this.key=r,this.setHighlightsAt=performance.now()}getDimensions(){let e=this.highlights.reduce((r,n)=>{let i=ee({},r);return(i.x===-1||n.x<i.x)&&(i.width=i.x+i.width-n.x,i.x=n.x),(i.y===-1||n.y<i.y)&&(i.height=i.y+i.height-n.y,i.y=n.y),n.x+n.width>i.x+i.width&&(i.width=n.x-i.x+n.width),n.y+n.height>i.y+i.height&&(i.height=n.y-i.y+n.height),i},{x:-1,y:-1,width:0,height:0});return this.highlights.length===0&&(e.x=0,e.y=0,e.width=this.maxX,e.height=this.maxY),this.applyBias(e),e}applyBias(e){if($.getWidth()<900)return;let r=e.width>e.height;this.bias==="left"?e.width*=r?2.1:2.4:this.bias==="right"&&(e.width*=r?2.1:2.4,e.x-=e.width/(r?1.9:1.7))}getAutoZoom(e,r){(typeof e=="undefined"||typeof r=="undefined")&&(e=this.maxX,r=this.maxY);let n=e===this.maxX,i=this.noHighlightsBehaviour==="contain"||this.highlights.length>0;i&&(e*=n?1.05:1.2,r*=n?1.05:1.2);let o=this.canvasWidth/e,a=this.canvasHeight/r,s=i?Math.min(a,o):Math.max(a,o);return(0,il.default)(s,Yg,Kg)}setZoom(e){typeof e=="undefined"?this.zoom=this.getAutoZoom():this.zoom=e,this.zoom=(0,il.default)(this.zoom,Yg,Kg),this.setCenter(this.x,this.y)}setCenter(e,r){typeof e!="undefined"?(this.x=le(e),this.y=le(r)):(this.x=le(this.maxX/2),this.y=le(this.maxY/2))}onTweenTick(e){isNaN(e.x)||isNaN(e.y)||isNaN(e.z)||(this.setCenter(e.x,e.y),this.setZoom(e.z))}hasHighlightAtScreenPosition(e){let r=i=>(i-this.x)*this.zoom+this.canvasWidth/2,n=i=>(i-this.y)*this.zoom+this.canvasHeight/2;return this.highlights.reduce((i,o)=>i?!0:!(e.x<r(o.x)||e.x>r(o.x+o.width)||e.y<n(o.y)||e.y>n(o.y+o.height)),!1)}ensureLabelXIsInsideBoundaries(e,r){let n=this.getDimensions(),i=-this.x+n.x,o=i+n.width;return r-e*.5<i?r=i+e*.5:r+e*.5>o&&(r=o-e*.5),r}};function wn(t,e,r,n,i,o){"roundRect"in t?t.roundRect(e,r,n,i,o):t.rect(e,r,n,i,o)}function ol(){x("[data-scrollpoints]").forEach(t=>_L(t))}function _L(t){let e=t.querySelector("[data-media]"),r=document.createElement("canvas");e.appendChild(r);let n,i,o=new Image;o.addEventListener("load",()=>{a.setBounds(o.naturalWidth,o.naturalHeight),a.adjustSize(),l(!0)}),o.src=e.getAttribute("data-media");let a=new Tn(r,o,e.getAttribute("data-color"),parseFloat(e.getAttribute("data-opacity")||"10")/100);a.setInstantSrc(e.getAttribute("data-instant")),NL(t,r,a);let s=x("[data-box]",t);a.key=s[0].getAttribute("data-item-id");function l(y=!1){if(i=Xg(t),i!==n||y===!0){if(n=i,!i)return;DL(i,a);let T=i.getAttribute("data-item-id");if(T&&window.dispatchEvent(new CustomEvent("scrollpoint:active-point-changed",{detail:{itemId:T}})),i.getAttribute("data-box")==="")a.setHighlights([],T);else{let{highlights:p}=JSON.parse(i.getAttribute("data-box")),v=p.map(E=>({x:parseFloat(E.x),y:parseFloat(E.y),width:parseFloat(E.width),height:parseFloat(E.height),effect:E.effect,color:E.color||"red",label:E.label||"",hasDot:!!E.hasDot,dotX:parseFloat(E.dotX),dotY:parseFloat(E.dotY),dotColor:E.dotColor,dotLabel:E.dotLabel||"",darkenAroundHighlight:E.darkenAroundHighlight||!1}));a.setHighlights(v,T)}}}function c(){l();let{top:y,bottom:T}=t.getBoundingClientRect();y>$.getHeight()||T<$.getTop()?a.hide():a.show()}let u=0;function d(){clearTimeout(u),u=window.setTimeout(()=>{a.adjustSize(),l(!0)},200)}return(document.getElementById("editor-viewport")||document).addEventListener("scroll",c,{passive:!0}),window.addEventListener("resize",d,{passive:!0}),()=>{zi(!0).catch(console.error);let y=e.getAttribute("data-media");o.src!==y&&(o.src=y),a.setInstantSrc(e.getAttribute("data-instant")),s=x("[data-box]",t),a.backgroundColor=e.getAttribute("data-color"),a.backgroundOpacity=parseFloat(e.getAttribute("data-opacity"))/100,l(!0)}}function NL(t,e,r){if(!document.getElementById("editor-viewport"))return;let n=t.getAttribute("data-section-id");e.addEventListener("mousemove",i=>{r.hasHighlightAtScreenPosition({x:i.offsetX,y:i.offsetY})?document.body.style.setProperty("cursor","zoom-in"):document.body.style.setProperty("cursor","auto")},{passive:!0}),e.addEventListener("click",i=>{if(r.hasHighlightAtScreenPosition({x:i.offsetX,y:i.offsetY})){let o=Xg(t);window.dispatchEvent(new CustomEvent("scrollpoint:manage-highlights",{detail:{sectionId:n,activeItemId:o.getAttribute("data-item-id")}}))}})}function Xg(t){let e=window.innerHeight*.9,r=t.querySelector("[data-media]"),n=x("[data-box]",t),i,o=t.getBoundingClientRect();return o.bottom<$.getTop()+$.getHeight()?(i=n[n.length-1],r.setAttribute("data-attach","after")):o.top<$.getTop()?(i=n.reduce((a,s)=>s.getBoundingClientRect().top<e?s:a,n[0]),r.setAttribute("data-attach","during")):(i=n[0],r.setAttribute("data-attach","before")),i}function DL(t,e){switch(t.getAttribute("data-align")){case"left":e.bias="right";break;case"right":e.bias="left";break;default:e.bias="none"}}var Ui=J(ce());var Jg=!1;function sl(t){t&&(vr.getTopOffset=t),x("[data-scrollymoly]").forEach(FL),window.addEventListener("orientationchange",()=>al()),Jg||(Jg=!0,window.addEventListener("resize",qL),De(al))}var vr={moles:[],getTopOffset(t){return t.getBoundingClientRect().top+document.documentElement.scrollTop}};function FL(t){let e=t.getAttribute("data-scrollymoly");try{let r=JSON.parse(e).map(o=>pe(ee({},o),{offset:Number.isFinite(o.offset)?o.offset:0})),n=t.closest("[data-scrollymoly-basis]"),i=vr.getTopOffset(n);BL({element:t,basisEl:n,effects:r,topOffset:i,state:{}})}catch(r){console.error(r)}}function BL(t){vr.moles.push(t),al()}function al(){vr.moles.map(jL)}function qL(){vr.moles.forEach(t=>{t.topOffset=vr.getTopOffset(t.basisEl)})}function jL(t){return new Promise((e,r)=>{Ui.default.measure(()=>{t.effects.forEach(n=>{n.kind in Qg?Qg[n.kind](t,n,e):(console.error(`Unknown effect type '${n.kind}'`),e())})})})}function Zg(t,e,r){let n=e.firstElementChild.getBoundingClientRect(),i=t.kind==="fadeIn"?n.top:n.bottom,o=$.getHeight()*t.end,a=o+Math.min(n.height,$.getHeight()*t.start),s=i>a?1:(i-o)/(a-o);return Math.round(s*100)/100}var Qg={fadeOut(t,e,r){let n=Zg(e,t.basisEl,t.topOffset),i=Math.max(0,Math.min(1,n));if(t.state.lastOpacity===i)return r();Ui.default.mutate(()=>{t.state.lastOpacity=i,t.element.style.opacity=i.toString(),r()})},fadeIn(t,e,r){let n=Zg(e,t.basisEl,t.topOffset),i=Math.max(0,Math.min(1,1-n));if(t.state.lastOpacity===i)return r();Ui.default.mutate(()=>{t.state.lastOpacity=i,t.element.style.opacity=i.toString(),r()})}};var br={};function Er(t,e){return()=>{br.pause&&br.instance!==e&&br.pause(),br.pause=()=>{delete br.pause,t()},br.instance=e}}var zL="https://w.soundcloud.com/player/api.js",UL=!1,VL="SoundCloudPlayer--initializing";function $L(t){if(UL)return t();let e=document.createElement("script");e.type="text/javascript",e.async=!0,e.addEventListener("load",t),e.src=zL;let r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(e,r)}function WL(t){let e=t.getAttribute("data-src"),r=t.getAttribute("data-height"),n=YL({src:e,height:r});n.addEventListener("load",()=>{$L(()=>{t.classList.remove(VL);let i=new SC.Widget(n);GL(i,n)})}),t.appendChild(n)}function GL(t,e){let r=t.pause.bind(t);t.bind(SC.Widget.Events.READY,()=>{t.bind(SC.Widget.Events.PLAY,Er(r,e))})}function YL(t){let e=document.createElement("iframe"),r={width:"100%",scrolling:"no",frameborder:"no",src:t.src,height:t.height};return Object.keys(r).forEach(n=>e.setAttribute(n,r[n])),e}function ll(){let t=x("[data-soundcloud]");window.addEventListener("load",()=>{setTimeout(()=>t.forEach(WL),100)})}function cl(){x(".SplitLayout").forEach(KL)}function KL(t){let e=x(".FullSize__fixedChild.ObjectFit--cover",t);bm()&&e.forEach(tl)}var ul=J(ce());function XL(t){let e=x("[data-stacked-content-fill]",t),r=x("[data-stacked-content-basis]",t),n=()=>JL(t,e,r);return n(),De(n),()=>Je(n)}function JL(t,e,r){e.length!==0&&ul.default.measure(()=>{let n=hn(t);if(!n)return;let i=r.reduce((a,s)=>a+s.clientHeight,0),o=(n-i)/e.length;ul.default.mutate(()=>{e.forEach(a=>a.style.maxHeight=`${o}px`)})})}function dl(){return x("[data-stacked-content]").map(XL)}function ZL(t,e){let r=`https://views.unsplash.com/v?app_id=${t}&photo_id=${e}`;fetch(r).catch(n=>console.log(n))}function fl(){x("[data-unsplash-ids]").forEach(t=>{let e=t.getAttribute("data-unsplash-ids"),r=t.getAttribute("data-unsplash-app");ZL(r,e)})}var pl=class extends Error{constructor(r){super(r.statusText);this.response=r}};function ey(t){if(t.status>=200&&t.status<300)return t;let e=new pl(t);throw e.response=t,e}function ty(t,e,r){let n=t.headers.get("content-type");if(n&&n.includes(e))return t;throw new TypeError(r)}function ml(t,e,r){fetch(t).then(ey).then(n=>ty(n,"application/json","Incorrect data for Gallery")).then(n=>n.json()).then(n=>{let i=n.items.filter(a=>a.url!==window.location.href).map(a=>{let s=e==="tiles"?'class="ObjectFit--cover"':"",l=a.mediaSrc?`<img alt="" src="${a.mediaSrc}" ${s}>`:"",c=a.openInNewWindow?'target="_blank"':"",u=a.isNoFollow?'rel="nofollow"':"";return`
              <li class="Theme-Layer-Gallery-Item" style="overflow:hidden">
                <a href="${a.url?a.url:"/"}" ${c} ${u}>
                  <div class="Theme-Layer-Gallery-Item-Media">
                  ${l}
                  </div>
                  <div class="Theme-Layer-Gallery-Item-Text">
                    <h4 class="Theme-Layer-Gallery-Item-Title">${a.title?a.title:""}</h4>
                    <div class="Theme-Layer-Gallery-Item-Description">${a.description?a.description:""}</div>
                  </div>
                </a>
              </li>
            `}).join(""),o=`
          <h3 class="Layout Theme-Layer-Gallery-Heading">${n.title?n.title:""}</h3>
          <ul class="Layout Theme-Layer-Gallery-List">${i}</ul>
        `;return r?r(o):o}).catch(n=>{console.log("Gallery was unable to parse external data",n)})}var QL="GalleryRenderer--initializing";function eA(t){let r=(window.location.protocol==="file:"?"http:":window.location.protocol)+t.getAttribute("data-url").replace(/^\w+:/,""),n=t.getAttribute("data-mode");ml(r,n,i=>{t.innerHTML=i,t.classList.remove(QL),Zr()})}function hl(){x("[data-galleryrenderer]").forEach(eA)}var hc=J(ce());var Nb=J(Nl()),On=J(_b()),Cr=class{constructor(e){if(!e)throw new Error("Must instantiate RenderStack with an array of RenderStackItems");this._items=e,this.state=Cr.STATE_VALID}set items(e){if(!Array.isArray(e))throw new Error("Items must be an array");this._items=e}get items(){return this._items}get length(){return this._items.length}getItemsByType(e){return this._items.filter(r=>r instanceof e)}[On.default.iterator](){let e=0;return{next:()=>e<this._items.length?{value:this._items[e++],done:!1}:{done:!0}}}isInvalid(){return this.state===Cr.STATE_INVALID}isUnchanged(){return this.state===Cr.STATE_UNCHANGED}isValid(){return this.state===Cr.STATE_VALID}static compare(e,r){return(0,Nb.default)(e,r,{strict:!0})}},ke=Cr;ke.STATE_UNCHANGED=(0,On.default)("RenderStack.state=unchanged"),ke.STATE_INVALID=(0,On.default)("RenderStack.state=invalid"),ke.STATE_VALID=(0,On.default)("RenderStack.state=valid");var BC=["forEach","filter","map","reduce","push","find"];BC.forEach(t=>{ke.prototype[t]=function(...e){return Array.prototype[t].apply(this._items,e)}});var Pn=class{constructor(e){this.renderStackPlugins=[];this.renderers=[];Object.assign(this,e),this.setRenderStackPlugins(this.renderStackPlugins)}setRenderStackPlugins(e){let r=this.renderStackPlugins;this.filters=r.filter(n=>"filter"in n).map(n=>n.filter),this.transformers=r.filter(n=>"transform"in n).map(n=>n.transform),this.finalizers=r.filter(n=>"finalize"in n).map(n=>n.finalize),this.beforeRenders=r.filter(n=>"beforeRender"in n).map(n=>n.beforeRender)}render(e,r){let{filters:n,transformers:i,finalizers:o,beforeRenders:a}=this,s=n.reduce((d,f)=>f(e,d),r),c=s.filter((d,f)=>s.indexOf(d)===f).reduce((d,f)=>{let y=[],T=r.indexOf(f);return i.forEach(p=>{y=p(e,f,y)}),d.concat(y)},[]),u=new ke(c);u.items=u.map(d=>(o.forEach(f=>{d=f(e,d)}),d)),u=a.reduce((d,f)=>f(d,e),u),this.renderers.forEach(d=>{d.render||console.error(`Renderer ${d.constructor.name} does not have a render() method`),d.render(u)})}};var Ul=J(ji());var ge=class{constructor(e){this.sx=0;this.sy=0;this.sWidth=0;this.sHeight=0;this.dWidth=0;this.dHeight=0;this.dx=0;this.dy=0;this.opacity=0;Object.assign(this,e)}createRoundedBoxing(){return["sx","sy","sWidth","sHeight","dWidth","dHeight","dx","dy"].reduce((e,r)=>Object.assign(e,{[r]:this[r]<.5?0:this[r]}),new ge(ee({},this)))}static createScaledBoxing(e,r,n={}){n.scalingMode=n.scalingMode||"cover";let{scalingMode:i}=n,o=r.width/e.width,a=r.height/e.height,l=(i==="cover"?Math.min:Math.max)(o,a),c=r.width/l,u=r.height/l,d=c-e.width,f=u-e.height;i==="fit"&&(d=Math.max(0,d),f=Math.max(0,f));let y=qC(r.data.image.focal||{x:50,y:50}),T={x:c*(y.x/100)-e.width/2,y:u*(y.y/100)-e.height/2},p={x:c-e.width,y:u-e.height};return new ge({sx:(0,Ul.default)(T.x,0,p.x)*l,sy:(0,Ul.default)(T.y,0,p.y)*l,sWidth:r.width-d*l,sHeight:r.height-f*l,dWidth:i==="fit"?c:e.width,dHeight:i==="fit"?u:e.height,dx:0,dy:0,opacity:1})}},oo={13:[0,1,6,18,30,38,50,59,70,84,91,96,100],9:[0,12,25,37,50,62,75,82,100]};function qC(t){let e=Db(t.x,"x"),r=Db(t.y,"y"),n=[0,16.5,20,28,36.5,42,50,56.5,65,73,78,81.5,100],i=[0,12,25,37,50,62,75,82,100];return{x:n[oo[13].indexOf(e)],y:i[oo[9].indexOf(r)]}}function Db(t,e){return(e==="x"?oo[13]:oo[9]).reduce((n,i)=>Math.abs(n-t)>Math.abs(i-t)?i:n,0)}var Fb=Date.now||function(){return new Date().getTime()},Bb=Fb,Gt=window.performance;if(Gt){let t=Gt.now||Gt.mozNow||Gt.msNow||Gt.oNow||Gt.webkitNow;Bb=t?t.bind(Gt):Fb}var Yt=Bb;var qb="loading",jb="loaded",Vl="already_loaded",jC=15,Mr=class{constructor(e,r=!1){this.loadingState=qb;this.src=e,this.whenLoaded=zC(e,r),this.whenLoaded.then(this.onLoad.bind(this))}onLoad(e){this.loadingState=e.wasAlreadyLoaded?Vl:jb,this.loadedAt=Yt(),this.img=e.loaderElement}isLoaded(){return this.loadingState===Vl||this.loadingState===jb}isLoading(){return this.loadingState===qb}isAlreadyLoaded(){return this.loadingState===Vl}};function zC(t,e=!1){return new Promise((r,n)=>{let i=Yt(),o=new window.Image;o.crossOrigin=e?"use-credentials":"Anonymous",o.addEventListener("load",()=>{let s=Yt()-i,l={wasAlreadyLoaded:!1,loaderElement:o};s<jC&&(l.wasAlreadyLoaded=!0),r(l)}),o.src=t})}var $l={};function UC(t,e=!1){if(t in $l)return $l[t];let r=new Mr(t,e);return $l[t]=r,r}var Kt=class{constructor(e){this.width=0;this.height=0;this.getSrc=()=>{};this.captionHTML="";this.instantImgData="";this.focal={x:0,y:0};Object.assign(this,e)}loadCurrentImageSource(){this.getCurrentImageSource()}getCurrentImageSource(){let e=this.getSrc();if(!e)throw Error("Cannot retrieve an ImageSource because Image.setSrc() returned nothing");return UC(e,this.useCredentials)}getInstantImgElement(){if(this.instantImgCache)return this.instantImgCache;let e=this.instantImgCache=document.createElement("img");return e.src=this.instantImgData,e}};var Or=class{constructor(e){this.href="";this.openInNewTab=!0;this.titleText="";Object.assign(this,e)}};var ot=class{constructor(e){Object.assign(this,e)}};var Pr=class{constructor(e){this.width=0;this.height=0;this.scrollPercentage=!1;this.heightPercentage=0;Object.assign(this,e)}getOrientation(){return this.width>this.height?"landscape":"portrait"}};var et=class{constructor(e){this.speed=1;Object.assign(this,e)}calculateTransitionLength(e){return e*this.speed}static up(e,r){let n=new ge(ee({},e));var i=1-r;return n.sy=e.sy+e.sHeight*i,n.sHeight=e.sHeight*r,n.dy=e.dy+e.dHeight*i,n.dHeight=e.dHeight*r,n}static down(e,r){let n=new ge(ee({},e));return n.sHeight=e.sHeight*r,n.dHeight=e.dHeight*r,n}static right(e,r){let n=new ge(ee({},e));return n.sWidth=e.sWidth*r,n.dWidth=e.dWidth*r,n}static left(e,r){let n=new ge(ee({},e));var i=1-r;return n.sx=e.sx+e.sWidth*i,n.sWidth=e.sWidth*r,n.dx=e.dx+e.dWidth*i,n.dWidth=e.dWidth*r,n}static fade(e,r){let n=new ge(ee({},e));return n.opacity=r,n}};var Xt=class extends ot{constructor(){super(...arguments);this.type="clear-operation"}};var qe=class extends ot{};var tt=class{constructor(e){this.renderScale=1;Object.assign(this,e)}getWidth(){return this.canvasElement.width}getHeight(){return this.canvasElement.height}getCSSHeight(){return this.getHeight()/this.renderScale}render(e){if(e.isUnchanged())return;let r=this.canvasElement.getContext("2d");e.forEach(n=>this.drawStackItem(r,n))}drawStackItem(e,r){if(!r.boxing)return;let n=r.boxing.createRoundedBoxing();r instanceof Xt?tt.clearRect(e,n):r instanceof qe&&tt.drawImage(e,r.img,n)}static clearRect(e,r){e.clearRect(r.dx,r.dy,r.dWidth,r.dHeight)}static drawImage(e,r,n){e.globalAlpha=n.opacity;try{e.drawImage(r,n.sx,n.sy,n.sWidth,n.sHeight,n.dx,n.dy,n.dWidth,n.dHeight)}catch(i){console.error("Could not draw image",r,n)}}};var zb=Pn;function Wl(t={}){return{finalize(e,r){if(!t.type||r.type===t.type){let n=ge.createScaledBoxing(e,r,t);r.boxing=n}return r}}}function Gl(t={}){let e;return{beforeRender(r){return e&&ke.compare(r.items,e.items)&&(r.state=ke.STATE_UNCHANGED),e=r,r}}}function Yl(t={}){return{filter(e,r){return r.filter((n,i)=>{let o=i===0,a=i+1===r.length,s=n.transition.start,l=a?1:r[i+1].transition.start,c=e.scrollPercentage||0;return o&&a?!0:o?c<l:a?c>=s:c>=s&&c<l})}}}function VC(t){return t.reduce((e,r)=>!e||e.boxing.sHeight<r.boxing.sHeight?r:e)}function Kl(t={}){if(!t.render)throw new Error("Caption positioner plugin requires a render function");return{beforeRender(e,r){if(!e.isValid())return e;let n=t.renderScale||1,i=e.getItemsByType(qe);if(i.length===0)return e;let o=VC(i);return t.render(o.boxing.dHeight/n),e}}}var Ie=class extends ot{constructor(){super(...arguments);this.type="caption"}};function Jt(t){return t.length===0?null:t.length===1?t[0]:t.reduce((e,r)=>{let n=e&&e.data?e.data.transitionPercentage:0;return r.data.transitionPercentage>=n?r:e})}var $C={fadeInThreshold:.7,fadeOutThreshold:.15,hideWhenOutOfBounds:!1};function Zl(t={}){return t=Object.assign({},$C,t),{beforeRender(e,r){let n=e.filter(o=>o.hasOwnProperty("caption")),i=WC(n,t);return YC(r,t)&&(n.length>0?i=KC(n,t):i=new Ie(pe(ee({},Ub),{html:!1}))),e.push(i),e}}}function WC(t,{hideWhenOutOfBounds:e}){if(e)return new Ie(pe(ee({},GC),{html:""}));if(t.length===0)return new Ie(pe(ee({},Xl),{html:""}));{let r=Jt(t);return new Ie(pe(ee({},Jl),{html:r.caption}))}}var Xl={html:"",display:"block",opacity:"0",textOpacity:null},Ub={display:"block",opacity:"1",textOpacity:"0",html:""},Jl={display:"block",opacity:"1",textOpacity:"1",html:""},GC={html:"",display:"none",textOpacity:null,opacity:"0"};function YC(t,e){if(!e.hideWhenOutOfBounds)return!0;let r=t.scrollPercentage||0,i=t.heightPercentage*e.fadeInThreshold*.5-t.heightPercentage>r,o=r>=1;return!i&&!o}function KC(t,e){let r=Jt(t),n=t.filter(a=>a!==r),i=Jt(n);if(r.data.transitionPercentage<e.fadeInThreshold)return new Ie(pe(ee({},Jl),{html:r.caption}));let o=new Ie(pe(ee({},Jl),{html:r.caption}));if(r.data.image&&r.data.image.id&&(o.id=r.data.image.id),i){let{transitionPercentage:a}=i.data,s=a>e.fadeInThreshold,l=a>e.fadeOutThreshold;if(s)o.html=i.caption;else if(l)return!r.caption||!i.caption?new Ie(pe(ee({},Xl),{html:!1})):new Ie(pe(ee({},Ub),{html:!1}))}return o||new Ie(pe(ee({},Xl),{html:"<p>&nbsp;</p>"}))}function Ql(){return{beforeRender(t,e){let r=new ge({dx:0,dy:0,dWidth:e.width,dHeight:e.height}),n=new Xt({boxing:r});return t.items=[n,...t.items],t}}}function ec(t){let{linkedItem:e}=t;if(!e||!e.addEventListener)throw new Error("Missing 'linkedItem' option in hyperlinker plugin. Pass in a DOMElement that should be hyperlinked.");let r={hasMostVisibleItem:!1};return e.addEventListener("click",()=>{if(!r.hasMostVisibleItem)return;let n=r.mostVisibleItemLink;n.openInNewTab?window.open(n.href):window.location.href=n.href}),{beforeRender(n){let i=n.filter(s=>s instanceof qe),o=i.filter(s=>s.data.image.link);if(o.length===0&&i.length>0)return r.hasMostVisibleItem=!1,r.mostVisibleItemLink=null,e.classList.remove("Theme-LinkedMediaRenderer"),n;if(i.length===0)return n;let a=Jt(o);return a&&a.data.image.link&&(r.hasMostVisibleItem=!0,r.mostVisibleItemLink=a.data.image.link,e.classList.add("Theme-LinkedMediaRenderer")),n}}}var XC=1e3;function tc(t={}){let e=t.transitionLength||XC;return{transform(r,n,i){let o=n.getCurrentImageSource();if(JC(o,Yt(),e)){let a=n.getInstantImgElement(),s=new qe({type:"instant-img",img:a,width:a.width,height:a.height,index:n.index,data:{imageSource:o,image:n}});i.push(s)}return i},finalize(r,n){if(n.type==="instant-img"){let i=n.data.imageSource,o=ZC(i,Yt(),e);n.boxing=et.fade(n.boxing,o)}return n}}}function JC(t,e,r){return t.isLoading()?!0:t.isAlreadyLoaded()?!1:!!(t.loadedAt&&e-t.loadedAt<=r)}function ZC(t,e,r){if(t.isLoading())return 1;let i=(e-t.loadedAt)/r;return 1-i}function rc(t={}){return{transform(e,r,n){let i=r.getCurrentImageSource();if(i.isLoaded()){let o=i.img,a=new qe({img:o,width:o.naturalWidth,height:o.naturalHeight,index:r.index,caption:r.captionHTML,data:{imageSource:i,image:r}});n.push(a)}return n}}}function nc(){return{filter(t,e){return e.forEach(r=>r.loadCurrentImageSource()),e}}}var Zt=class{constructor({width:e,height:r}){this.canvasElement=document.createElement("canvas"),this.canvasElement.width=e,this.canvasElement.height=r}getContext(){return this.canvasElement.getContext("2d")}};var ao={};function ic(t={}){return{finalize(e,r){if(r.type==="img"){let n=r,i=n.data.imageSource,o=QC(e,i,n);n.img=o.cachedImgElement,n.width=o.width,n.height=o.height,n.data.cacheItem=o,n.boxing=ge.createScaledBoxing(e,n,t)}return r}}}function QC(t,e,r){if(e.isLoading())throw new Error("Cannot ensure cache item because the ImageSource has not finished loading");let n=e.img.src;if(eM(n)){let i=ao[n];if(i.width!==t.width||i.height!==t.height){let o=$b(t,r);Vb(n,o)}}else{let i=$b(t,r);Vb(n,i)}return ao[n]}function Vb(t,e){ao[t]=e}function $b(t,e){let r=new Zt({width:t.width,height:t.height}),n=r.getContext();return tt.drawImage(n,e.img,e.boxing),{width:e.boxing.dWidth,height:e.boxing.dHeight,cachedImgElement:r.canvasElement,originalSrc:e.img.src}}function eM(t){return t in ao}function oc(t={}){return{filter(e,r){let n=r.filter(o=>o.orientation==="landscape"),i=r.filter(o=>o.orientation==="portrait");return n.length===0||i.length===0?r:e.getOrientation()==="portrait"?i:n}}}function ac(){return{filter(t,e){return e.filter((r,n)=>{let i=n===0,o=n+1===e.length;if(i&&o)return!0;let a=r.transition.start,s=1;if(!o){let c=e[n+1].transition,u=c.calculateTransitionLength(t.heightPercentage);s=c.start+u}let l=t.scrollPercentage||0;return i?l<=s:o?l>=a:l>=a&&l<=s})},finalize(t,e){var o;let r=(o=e.data.image.transition)==null?void 0:o.name;if(!r||typeof r!="string")return e;let n=r.split(","),i=tM(t,e.data.image);return e.data.transitionPercentage=i,n.reduce((a,s)=>{if(s&&s in et){let l=et[s];a.boxing=l(a.boxing,i)}return a},e)},beforeRender(t){return t.items=t.filter(e=>e.boxing.opacity!==0),t}}}function tM(t,e){let r=e.transition.calculateTransitionLength(t.heightPercentage),o=((t.scrollPercentage||0)-e.transition.start)/r;return o=Math.min(1,o),o}var Wb=J(ce());function Gb(t){let e={textItemHeights:[]};return nM(t,e),(r,n)=>rM(r,n,e)}function rM(t,e,r){let n=$.getHeight()*.4;function i(s,l){let c=s+(l.index===0?0:r.textItemHeights[l.index-1]);return l.transition.start=(c-n)/e,l.index===0&&(l.transition.name="none"),c}return t.filter(s=>s.orientation==="portrait").reduce(i,0),t.filter(s=>s.orientation==="landscape").reduce(i,0),t}function nM(t,e){let{isIE:r,isEdge:n,isFirefox:i}=Ee(),o=()=>iM(t,e);o(),(n||r||i)&&setInterval(o,1e3),["resize","orientationchange","load"].forEach(a=>window.addEventListener(a,o))}function iM(t,e){Wb.default.measure(()=>{e.textItemHeights=x("[class*='MediaRenderer__textBlocksInner']",t.parentElement||V(`[id*="-${t.id}"]`)).map(r=>r.getBoundingClientRect().height)})}var sc=J(ce());function lc(t,e=1){let r=[],n=s=>{r.push(s)},i=(s,l)=>{r.forEach(c=>c(s,l))},o=()=>oM(t,e,i);o(),["load","resize","orientationchange"].forEach(s=>{window.addEventListener(s,o,{passive:!0})}),De(o);let a=!1;return window.addEventListener("load",()=>{Je(o),fr(t,s=>{a&&(clearInterval(a),a=!1),s===qt&&(a=setInterval(o,16*10))})}),()=>({onResize:n})}function oM(t,e,r){sc.default.measure(()=>{let n=t.getBoundingClientRect(),i=Math.round(n.width)*e,o=Math.round(n.height)*e,a=t.width,s=t.height;if(i===a&&o===s)return;if(i===0||o===0)return;let c=new Zt({width:i,height:o}).getContext(),u=t.getContext("2d");c.drawImage(t,0,0),sc.default.mutate(()=>{try{t.width=i,t.height=o,u.drawImage(c.canvas,0,0),r(Math.round(n.width),Math.round(n.height))}catch(d){console.log(c.canvas),console.error("Canvas Resizer could not draw image",d)}})})}var Yb=J(Nl()),Kb=J(ce());var kn=class{constructor(e){this.captionDisplay=e;let r=e.querySelector("[data-mediarenderer-caption-container]");this.captionContainer=r||this.captionDisplay,fr(this.captionDisplay.parentElement,this.onVisibilityChange.bind(this))}render(e){let r=e.getItemsByType(Ie);if(r.length===0)return;let n=r[0];this.isSameCaption(n)||this.renderCaption(n)}isSameCaption(e){return this.lastCaption&&(0,Yb.default)(e,this.lastCaption)?!0:(this.lastCaption=e,!1)}renderCaption(e){let{opacity:r,textOpacity:n,display:i,html:o}=e;Kb.default.mutate(()=>{this.captionDisplay.style.opacity!==r&&(this.captionDisplay.style.opacity=r),this.captionDisplay.style.display!==i&&(this.captionDisplay.style.display=i),o!==!1&&this.captionContainer.innerHTML!==o&&(this.captionContainer.innerHTML=o),this.captionContainer.style.opacity=n})}onVisibilityChange(e){e===qt?this.captionDisplay.style.display="":this.captionDisplay.style.display="none"}};var Xb=J(ce());function cc(t,e){Xb.default.measure(()=>{let n=x("[data-mediarenderer-item]",t).map(sM),i=aM(n);e(i)})}function aM(t){let e={landscape:t.filter(n=>n.orientation==="landscape"),portrait:t.filter(n=>n.orientation==="portrait")},r=n=>{if(n.orientation in e)return e[n.orientation].indexOf(n);throw new Error("Orientation can only be 'portrait' or 'landscape' but got "+n.orientation)};return t.map(n=>new Kt(pe(ee({},n),{index:r(n)})))}function sM(t){let e=t.querySelector("[data-mediarenderer-caption]"),r=e?e.outerHTML:"",n=t.querySelector("[data-mediarenderer-image-element]"),i=cM(t),o=lM(t),a=t.getAttribute("data-mediarenderer-item-orientation")||"",[s,l]=(t.getAttribute("data-focal-point")||"50 50").split(" "),c=new Kt({getSrc:()=>n.getAttribute("data-src")||n.currentSrc||n.src,instantImgData:n.getAttribute("data-instant-image"),captionHTML:r,width:n.naturalWidth,height:n.naturalHeight,transition:i,orientation:a,focal:{x:s,y:l}});return o&&(c.link=o),c}function lM(t){let e=t.querySelector("[data-mediarenderer-item-link]");if(!e)return!1;let r=e.href,n=e.getAttribute("target")==="_blank",i=e.getAttribute("title");return new Or({href:r,openInNewTab:n,titleText:i})}function cM(t){let e=t.getAttribute("data-transition-start"),r=t.getAttribute("data-transition-speed");return new et({start:parseFloat(e),name:t.getAttribute("data-transition"),speed:parseFloat(r)})}var uc=J(ji()),dc=J(ce());function fc(t){let e=x(".Theme-Layer-BodyText",t.parentElement);window.addEventListener("scroll",()=>{e.forEach(r=>{dc.default.measure(()=>{let{top:n,bottom:i}=r.getBoundingClientRect(),o=window.innerHeight,a=o*.3,s=n<o&&n>o-a,l=i<a&&i>0;dc.default.mutate(()=>{if(s){let c=(0,uc.default)((o-n)/a,0,1);r.style.setProperty("opacity",c.toString())}else if(l){let c=(0,uc.default)(i/a,0,1);r.style.setProperty("opacity",c.toString())}else i<0||n>o?r.style.setProperty("opacity","0"):r.style.setProperty("opacity","1")})})})},{passive:!0})}var Jb=J(ce());function uM(t){let e=$.getHeight(),r=t.getBoundingClientRect(),n=r.top,i=r.bottom,o=n>=0&&n<=e,a=i>=0&&i<=e,s=n<0&&i>0;return o||a||s?-n:!1}function pc(t,e,r){Jb.default.measure(()=>{let n=uM(t);if(n===!1)return r({scrollPercentage:!1});let o=t.clientHeight-$.getHeight(),a=n/o,s=e.getCSSHeight()/o;r({scrollPercentage:a,heightPercentage:s,scrollHeight:o})})}var Zb=new Map;function Qb(t,e,r){let n=hn(t),i=hn(e),o=n-i,a=Zb.get(t);return o===a?!1:(Zb.set(t,o),r.style.height=`${o}px`,r.height=o,!0)}function dM(t){let e;return r=>{e&&e.captionHTML===r.captionHTML||r.captionHTML&&(e=r,t.innerHTML=r.captionHTML)}}function fM(t,e,r){window.addEventListener("resize",()=>{Qb(t,e,r)},{passive:!0})}function mc(t,e,r){if(!t)throw new Error(`Missing container element from twocolStackerPlauging, got ${t}`);e.style.position="absolute";let n=e.cloneNode(!0);Object.assign(n.style,{visibility:"hidden",position:"absolute",opacity:0}),e.parentNode.appendChild(n);let i=dM(n),o=s=>s.find(l=>l instanceof Ie),a=!1;return fM(t,e,r),{beforeRender(s){let l=o(s);if(a&&!s.isInvalid()&&(s.state=ke.STATE_VALID,a=!1),!l||s.isUnchanged())return s;let c=n.clientHeight;return i(l),n.clientHeight!==c&&(s.state=ke.STATE_INVALID,Qb(t,n,r),a=!0),s}}}function pM(t,e,r,n={}){let o=Object.assign({},{xPositioning:"center",yPositioning:"center",scalingMode:"cover",isTransitioned:!1},n),a=t.querySelector("[data-mediarenderer-caption-display]"),s=new kn(a),l=[oc(),nc(),Wl({scalingMode:o.scalingMode}),rc(),tc(),ic({scalingMode:o.scalingMode}),o.isTransitioned?ac():Yl(),Zl({hideWhenOutOfBounds:o.isTransitioned}),Gl()];if(o.scalingMode==="fit"){if(a){let E=t.querySelector("[data-twocol-stacker]");l.push(mc(E,a,e.canvasElement)),l.push(Kl({render:I=>mM(a,I),renderScale:o.renderScale}))}l.unshift(Ql())}l.push(ec({linkedItem:e.canvasElement}));let c=[e,s],u=new zb({renderers:c,images:r,renderStackPlugins:l});fc(t);let d=Gb(t),f=()=>{hc.default.measure(()=>{let E,I=t.getBoundingClientRect();I.top>0?E="before":I.bottom<$.getHeight()?E="after":E="during",hc.default.mutate(()=>{t.firstElementChild.setAttribute("data-attachment",E)})}),pc(t,e,({scrollPercentage:E,heightPercentage:I,scrollHeight:R})=>{try{if(E===!1)return;let M=new Pr({heightPercentage:I,scrollPercentage:E,width:e.getWidth(),height:e.getHeight()});M.getOrientation=()=>$.getHeight()>$.getWidth()?"portrait":"landscape";let S=o.isTransitioned?d(r,R):r;u.render(M,S)}catch(M){throw Je(f),M}})},y=()=>De(f),T=()=>Je(f),p=e.canvasElement,v=p.parentElement||p;yM(v,y,T),f(),window.addEventListener("load",f)}function mM(t,e){t.style.top=`${e}px`}function hM(t){let e=t.querySelector("canvas[data-mediarenderer-canvas]");if(!e)throw new Error(`initCanvasResizer was called without a valid canvas element, got: ${e}. Make sure you've got [data-mediarenderer-canvas] on your canvas elements.`);let r=e.getAttribute("data-mediarenderer-scaling")?parseInt(e.getAttribute("data-mediarenderer-scaling"),10):1;lc(e,r);let n=e.getAttribute("data-scaling-mode"),i=e.hasAttribute("data-mediarenderer-transition"),o=new tt({canvasElement:e,renderScale:r});cc(e,a=>{pM(t,o,a,{yPositioning:e.getAttribute("data-y-positioning"),scalingMode:n,isTransitioned:i,renderScale:r})})}function gc(){x("[data-mediarenderer]").forEach(hM)}function gM(t){let e=document.createElement("div");return e.className="FullSize",Object.assign(e.style,{opacity:0,zIndex:-100}),t.parentElement.insertBefore(e,t),e}function yM(t,e,r){let n=gM(t);Be(n,i=>{Ue(i)?e():r()},{triggerPoint:"nearly visible"})}function yc(){}var vM={mainSelector:".TransitionIn--fade",fadeInClass:"TransitionIn--fadeIn"};function vc(t=vM){x(t.mainSelector).forEach(r=>{bM(r,{fadeInClass:t.fadeInClass})})}function bM(t,e){let r=n=>{let i=n.rootBounds?n.rootBounds.top:0;n.boundingClientRect.top<i&&!n.isIntersecting||EM(t,e.fadeInClass,Ue(n))};return t.classList.add(e.fadeInClass),Be(t,r,{triggerPoint:"mostly visible"}),()=>dr(t)}function EM(t,e,r){Bh(t,e,r)}function bc(){vc()}var Ec=t=>`${t}px`;function eE(t){let{width:e,height:r,top:n}=t.getBoundingClientRect();Object.assign(t.style,{position:"fixed",top:Ec(n),width:Ec(e),height:Ec(r),overflowY:"scroll"})}function tE(t){let e=parseInt(t.style.top,10);Object.assign(t.style,{position:"",top:"",width:"",height:"",overflowY:""}),window.scrollTo(0,-e)}var wM="[data-videoplayer-youtube]",TM='[data-projection="360"]',SM="__YOUTUBE_API_SCRIPT__",so={whenApiReady:!1,players:[]};function xM(t){x('script[src="//www.youtube.com/player_api"]').length>0||(so.whenApiReady||(so.whenApiReady=new Promise((e,r)=>{window.onYouTubeIframeAPIReady=()=>e();let n=document.createElement("script");n.src="//www.youtube.com/player_api",n.id=SM,n.async=!0;let i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(n,i)})),so.whenApiReady.then(t))}function IM(t){return{[YT.PlayerState.PLAYING]:"play",[YT.PlayerState.PAUSED]:"pause",[YT.PlayerState.ENDED]:"end"}[t.data]}function LM(t){let e=t.getAttribute("data-video-id");return new YT.Player(t,{videoId:e,playerVars:{rel:0},events:{onStateChange(n){if(n.data===YT.PlayerState.PLAYING){let o=n.target,a=o.pauseVideo.bind(o);Er(a,o.getIframe())()}let i=IM(n);i&&AM(i,n.target)}}})}function AM(t,e){let r=e.getVideoData(),n=`${r.title} (${r.video_id})`;dt("Videos",t,n)}function CM(t){t.forEach(e=>{let r=e.getAttribute("data-video-id"),n=e.parentElement,i=document.createElement("div"),o=document.createElement("a");e.removeAttribute("data-videoplayer-youtube"),n.style.backgroundImage="url('https://img.youtube.com/vi/"+r+"/maxresdefault.jpg')",n.style.backgroundSize="cover",o.setAttribute("href","http://www.youtube.com/watch?v="+r),o.setAttribute("target","_blank"),o.className="Theme-360Video-Link",n.parentNode.insertBefore(o,n),o.appendChild(n),o.appendChild(i),i.innerText="Tap to view 360 video",i.className="Theme-360Video-Button"})}function wc(t=wM,e=TM){let r=x(e);Ee().isiOS&&CM(r);let n=x(t);n.length!==0&&xM(()=>{so.players=n.map(LM)})}var MM='<svg xmlns="http://www.w3.org/2000/svg"><symbol id="plyr-captions-off" viewBox="0 0 18 18"><path d="M1 1c-.6 0-1 .4-1 1v11c0 .6.4 1 1 1h4.6l2.7 2.7c.2.2.4.3.7.3.3 0 .5-.1.7-.3l2.7-2.7H17c.6 0 1-.4 1-1V2c0-.6-.4-1-1-1H1zm4.52 10.15c1.99 0 3.01-1.32 3.28-2.41l-1.29-.39c-.19.66-.78 1.45-1.99 1.45-1.14 0-2.2-.83-2.2-2.34 0-1.61 1.12-2.37 2.18-2.37 1.23 0 1.78.75 1.95 1.43l1.3-.41C8.47 4.96 7.46 3.76 5.5 3.76c-1.9 0-3.61 1.44-3.61 3.7 0 2.26 1.65 3.69 3.63 3.69zm7.57 0c1.99 0 3.01-1.32 3.28-2.41l-1.29-.39c-.19.66-.78 1.45-1.99 1.45-1.14 0-2.2-.83-2.2-2.34 0-1.61 1.12-2.37 2.18-2.37 1.23 0 1.78.75 1.95 1.43l1.3-.41c-.28-1.15-1.29-2.35-3.25-2.35-1.9 0-3.61 1.44-3.61 3.7 0 2.26 1.65 3.69 3.63 3.69z" fill-rule="evenodd" fill-opacity=".5"/></symbol><symbol id="plyr-captions-on" viewBox="0 0 18 18"><path d="M1 1c-.6 0-1 .4-1 1v11c0 .6.4 1 1 1h4.6l2.7 2.7c.2.2.4.3.7.3.3 0 .5-.1.7-.3l2.7-2.7H17c.6 0 1-.4 1-1V2c0-.6-.4-1-1-1H1zm4.52 10.15c1.99 0 3.01-1.32 3.28-2.41l-1.29-.39c-.19.66-.78 1.45-1.99 1.45-1.14 0-2.2-.83-2.2-2.34 0-1.61 1.12-2.37 2.18-2.37 1.23 0 1.78.75 1.95 1.43l1.3-.41C8.47 4.96 7.46 3.76 5.5 3.76c-1.9 0-3.61 1.44-3.61 3.7 0 2.26 1.65 3.69 3.63 3.69zm7.57 0c1.99 0 3.01-1.32 3.28-2.41l-1.29-.39c-.19.66-.78 1.45-1.99 1.45-1.14 0-2.2-.83-2.2-2.34 0-1.61 1.12-2.37 2.18-2.37 1.23 0 1.78.75 1.95 1.43l1.3-.41c-.28-1.15-1.29-2.35-3.25-2.35-1.9 0-3.61 1.44-3.61 3.7 0 2.26 1.65 3.69 3.63 3.69z" fill-rule="evenodd"/></symbol><symbol id="plyr-enter-fullscreen" viewBox="0 0 18 18"><path d="M10 3h3.6l-4 4L11 8.4l4-4V8h2V1h-7zM7 9.6l-4 4V10H1v7h7v-2H4.4l4-4z"/></symbol><symbol id="plyr-exit-fullscreen" viewBox="0 0 18 18"><path d="M1 12h3.6l-4 4L2 17.4l4-4V17h2v-7H1zM16 .6l-4 4V1h-2v7h7V6h-3.6l4-4z"/></symbol><symbol id="plyr-fast-forward" viewBox="0 0 18 18"><path d="M7.875 7.171L0 1v16l7.875-6.171V17L18 9 7.875 1z"/></symbol><symbol id="plyr-muted" viewBox="0 0 18 18"><path d="M12.4 12.5l2.1-2.1 2.1 2.1 1.4-1.4L15.9 9 18 6.9l-1.4-1.4-2.1 2.1-2.1-2.1L11 6.9 13.1 9 11 11.1zM3.786 6.008H.714C.286 6.008 0 6.31 0 6.76v4.512c0 .452.286.752.714.752h3.072l4.071 3.858c.5.3 1.143 0 1.143-.602V2.752c0-.601-.643-.977-1.143-.601L3.786 6.008z"/></symbol><symbol id="plyr-pause" viewBox="0 0 18 18"><path d="M6 1H3c-.6 0-1 .4-1 1v14c0 .6.4 1 1 1h3c.6 0 1-.4 1-1V2c0-.6-.4-1-1-1zM12 1c-.6 0-1 .4-1 1v14c0 .6.4 1 1 1h3c.6 0 1-.4 1-1V2c0-.6-.4-1-1-1h-3z"/></symbol><symbol id="plyr-play" 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="plyr-restart" viewBox="0 0 18 18"><path d="M9.7 1.2l.7 6.4 2.1-2.1c1.9 1.9 1.9 5.1 0 7-.9 1-2.2 1.5-3.5 1.5-1.3 0-2.6-.5-3.5-1.5-1.9-1.9-1.9-5.1 0-7 .6-.6 1.4-1.1 2.3-1.3l-.6-1.9C6 2.6 4.9 3.2 4 4.1 1.3 6.8 1.3 11.2 4 14c1.3 1.3 3.1 2 4.9 2 1.9 0 3.6-.7 4.9-2 2.7-2.7 2.7-7.1 0-9.9L16 1.9l-6.3-.7z"/></symbol><symbol id="plyr-rewind" viewBox="0 0 18 18"><path d="M10.125 1L0 9l10.125 8v-6.171L18 17V1l-7.875 6.171z"/></symbol><symbol id="plyr-volume" viewBox="0 0 18 18"><path d="M15.6 3.3c-.4-.4-1-.4-1.4 0-.4.4-.4 1 0 1.4C15.4 5.9 16 7.4 16 9c0 1.6-.6 3.1-1.8 4.3-.4.4-.4 1 0 1.4.2.2.5.3.7.3.3 0 .5-.1.7-.3C17.1 13.2 18 11.2 18 9s-.9-4.2-2.4-5.7z"/><path d="M11.282 5.282a.909.909 0 0 0 0 1.316c.735.735.995 1.458.995 2.402 0 .936-.425 1.917-.995 2.487a.909.909 0 0 0 0 1.316c.145.145.636.262 1.018.156a.725.725 0 0 0 .298-.156C13.773 11.733 14.13 10.16 14.13 9c0-.17-.002-.34-.011-.51-.053-.992-.319-2.005-1.522-3.208a.909.909 0 0 0-1.316 0zM3.786 6.008H.714C.286 6.008 0 6.31 0 6.76v4.512c0 .452.286.752.714.752h3.072l4.071 3.858c.5.3 1.143 0 1.143-.602V2.752c0-.601-.643-.977-1.143-.601L3.786 6.008z"/></symbol></svg>',rE=[];function nE(t,e){let n=Array.from(t.querySelectorAll("source")).find(o=>t.canPlayType(o.type)&&o.hasAttribute(`data-${e}`));if(n){let o=OM(n.getAttribute(`data-${e}`));o!==t.src&&(t.src=o)}let i=t.getAttribute(`data-${e}-poster`);i&&i!==t.poster&&(t.poster=i)}var Tc;function Sc(t={}){let e=t.iconUrl;if(t.body&&!e){let o=new DOMParser().parseFromString(MM,"image/svg+xml"),a=document.createElement("div");a.style.display="none",a.id="__PLYR_SVGICON_CONTAINER__",a.appendChild(o.childNodes[0]),t.body.appendChild(a),e=""}let r=x("[data-videoplayer]"),n=iE();Tc=n,r.forEach(i=>{let o=i.querySelector("[data-videoplayer-media]");if(o){rE.push(o),nE(o,n);let a=o.controls;i.classList.add("video-paused");let s;o.controls=!1;let l=!1;o.addEventListener("seeking",()=>{s&&clearTimeout(s),o.controls=!0}),o.addEventListener("pause",()=>{s=setTimeout(()=>{i.classList.remove("video-playing"),i.classList.add("video-paused"),l=!1,o.controls=!1,dt("Videos","pause",o.currentSrc)},200)}),o.addEventListener("play",()=>{i.classList.remove("video-paused"),i.classList.add("video-playing"),Er(o.pause.bind(o),o)(),l=!0,o.controls=a,dt("Videos","play",o.currentSrc)}),o.addEventListener("ended",()=>{l=!1,o.controls=!1,dt("Videos","ended",o.currentSrc)}),i.addEventListener("click",d=>{l||(o.play(),d.preventDefault())});let c=document.documentElement,u=i.closest("[class*='Layer--']");o.addEventListener("fullscreenchange",()=>{document.fullscreenElement===null?(tE(c),u.classList.remove("Levels--god")):(eE(c),u.classList.add("Levels--god"))})}}),wc(),["resize","orientationchange"].forEach(i=>{window.addEventListener(i,PM,{passive:!0})})}function OM(t){let e=document.createElement("a");return e.href=t,e.href}function iE(){return $.getWidth()<900?"portrait":"landscape"}function PM(){let t=iE();t!==Tc&&(Tc=t,rE.forEach(e=>{nE(e,t)}))}rl();Qa();Ra();am();Us();Ba();Zr();dl();yi();ts();yc();ns();bc();qs();Ns();Ks();js();ll();qi();gc();Sc({body:document.body});Ga();vn();Pa();hl();Za();Wa();sl();cl();Vs();Ds();ol();Da();$s();fl();})();
/*!
  Copyright (c) 2018 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
/*! @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.176033.min.js.map
