(()=>{var w0=Object.create;var Vo=Object.defineProperty,T0=Object.defineProperties,S0=Object.getOwnPropertyDescriptor,x0=Object.getOwnPropertyDescriptors,I0=Object.getOwnPropertyNames,Jc=Object.getOwnPropertySymbols,L0=Object.getPrototypeOf,Qc=Object.prototype.hasOwnProperty,A0=Object.prototype.propertyIsEnumerable;var Zc=(t,e,r)=>e in t?Vo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,pe=(t,e)=>{for(var r in e||(e={}))Qc.call(e,r)&&Zc(t,r,e[r]);if(Jc)for(var r of Jc(e))A0.call(e,r)&&Zc(t,r,e[r]);return t},je=(t,e)=>T0(t,x0(e));var b=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var M0=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of I0(e))!Qc.call(t,i)&&i!==r&&Vo(t,i,{get:()=>e[i],enumerable:!(n=S0(e,i))||n.enumerable});return t};var ue=(t,e,r)=>(r=t!=null?w0(L0(t)):{},M0(e||!t||!t.__esModule?Vo(r,"default",{value:t,enumerable:!0}):r,t));var wi=(t,e,r)=>new Promise((n,i)=>{var o=c=>{try{l(r.next(c))}catch(u){i(u)}},a=c=>{try{l(r.throw(c))}catch(u){i(u)}},l=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,a);l((r=r.apply(t,e)).next())});var St=b((Nk,eu)=>{var Ti=function(t){return t&&t.Math==Math&&t};eu.exports=Ti(typeof globalThis=="object"&&globalThis)||Ti(typeof window=="object"&&window)||Ti(typeof self=="object"&&self)||Ti(typeof global=="object"&&global)||function(){return this}()||Function("return this")()});var xt=b((Fk,tu)=>{tu.exports=function(t){try{return!!t()}catch(e){return!0}}});var Dt=b((Dk,ru)=>{var k0=xt();ru.exports=!k0(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var Si=b((qk,nu)=>{var P0=xt();nu.exports=!P0(function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")})});var Ii=b((Bk,iu)=>{var O0=Si(),xi=Function.prototype.call;iu.exports=O0?xi.bind(xi):function(){return xi.apply(xi,arguments)}});var lu=b(su=>{"use strict";var ou={}.propertyIsEnumerable,au=Object.getOwnPropertyDescriptor,C0=au&&!ou.call({1:2},1);su.f=C0?function(e){var r=au(this,e);return!!r&&r.enumerable}:ou});var Wo=b((zk,cu)=>{cu.exports=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}}});var dt=b((Uk,fu)=>{var uu=Si(),du=Function.prototype,$o=du.call,_0=uu&&du.bind.bind($o,$o);fu.exports=uu?_0:function(t){return function(){return $o.apply(t,arguments)}}});var Br=b((Vk,mu)=>{var pu=dt(),H0=pu({}.toString),R0=pu("".slice);mu.exports=function(t){return R0(H0(t),8,-1)}});var gu=b((Wk,hu)=>{var N0=dt(),F0=xt(),D0=Br(),Go=Object,q0=N0("".split);hu.exports=F0(function(){return!Go("z").propertyIsEnumerable(0)})?function(t){return D0(t)=="String"?q0(t,""):Go(t)}:Go});var Yo=b(($k,yu)=>{yu.exports=function(t){return t==null}});var jr=b((Gk,vu)=>{var B0=Yo(),j0=TypeError;vu.exports=function(t){if(B0(t))throw j0("Can't call method on "+t);return t}});var Tn=b((Yk,bu)=>{var z0=gu(),U0=jr();bu.exports=function(t){return z0(U0(t))}});var Xo=b((Kk,Eu)=>{var Ko=typeof document=="object"&&document.all,V0=typeof Ko=="undefined"&&Ko!==void 0;Eu.exports={all:Ko,IS_HTMLDDA:V0}});var ht=b((Xk,Tu)=>{var wu=Xo(),W0=wu.all;Tu.exports=wu.IS_HTMLDDA?function(t){return typeof t=="function"||t===W0}:function(t){return typeof t=="function"}});var Gt=b((Jk,Iu)=>{var Su=ht(),xu=Xo(),$0=xu.all;Iu.exports=xu.IS_HTMLDDA?function(t){return typeof t=="object"?t!==null:Su(t)||t===$0}:function(t){return typeof t=="object"?t!==null:Su(t)}});var zr=b((Zk,Lu)=>{var Jo=St(),G0=ht(),Y0=function(t){return G0(t)?t:void 0};Lu.exports=function(t,e){return arguments.length<2?Y0(Jo[t]):Jo[t]&&Jo[t][e]}});var Mu=b((Qk,Au)=>{var K0=dt();Au.exports=K0({}.isPrototypeOf)});var Zo=b((eP,ku)=>{var X0=zr();ku.exports=X0("navigator","userAgent")||""});var Nu=b((tP,Ru)=>{var Hu=St(),Qo=Zo(),Pu=Hu.process,Ou=Hu.Deno,Cu=Pu&&Pu.versions||Ou&&Ou.version,_u=Cu&&Cu.v8,It,Li;_u&&(It=_u.split("."),Li=It[0]>0&&It[0]<4?1:+(It[0]+It[1]));!Li&&Qo&&(It=Qo.match(/Edge\/(\d+)/),(!It||It[1]>=74)&&(It=Qo.match(/Chrome\/(\d+)/),It&&(Li=+It[1])));Ru.exports=Li});var ea=b((rP,Du)=>{var Fu=Nu(),J0=xt();Du.exports=!!Object.getOwnPropertySymbols&&!J0(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Fu&&Fu<41})});var ta=b((nP,qu)=>{var Z0=ea();qu.exports=Z0&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var ra=b((iP,Bu)=>{var Q0=zr(),eE=ht(),tE=Mu(),rE=ta(),nE=Object;Bu.exports=rE?function(t){return typeof t=="symbol"}:function(t){var e=Q0("Symbol");return eE(e)&&tE(e.prototype,nE(t))}});var zu=b((oP,ju)=>{var iE=String;ju.exports=function(t){try{return iE(t)}catch(e){return"Object"}}});var Ai=b((aP,Uu)=>{var oE=ht(),aE=zu(),sE=TypeError;Uu.exports=function(t){if(oE(t))return t;throw sE(aE(t)+" is not a function")}});var Wu=b((sP,Vu)=>{var lE=Ai(),cE=Yo();Vu.exports=function(t,e){var r=t[e];return cE(r)?void 0:lE(r)}});var Gu=b((lP,$u)=>{var na=Ii(),ia=ht(),oa=Gt(),uE=TypeError;$u.exports=function(t,e){var r,n;if(e==="string"&&ia(r=t.toString)&&!oa(n=na(r,t))||ia(r=t.valueOf)&&!oa(n=na(r,t))||e!=="string"&&ia(r=t.toString)&&!oa(n=na(r,t)))return n;throw uE("Can't convert object to primitive value")}});var Ku=b((cP,Yu)=>{Yu.exports=!1});var Mi=b((uP,Ju)=>{var Xu=St(),dE=Object.defineProperty;Ju.exports=function(t,e){try{dE(Xu,t,{value:e,configurable:!0,writable:!0})}catch(r){Xu[t]=e}return e}});var ki=b((dP,Qu)=>{var fE=St(),pE=Mi(),Zu="__core-js_shared__",mE=fE[Zu]||pE(Zu,{});Qu.exports=mE});var aa=b((fP,td)=>{var hE=Ku(),ed=ki();(td.exports=function(t,e){return ed[t]||(ed[t]=e!==void 0?e:{})})("versions",[]).push({version:"3.27.1",mode:hE?"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 sa=b((pP,rd)=>{var gE=jr(),yE=Object;rd.exports=function(t){return yE(gE(t))}});var Yt=b((mP,nd)=>{var vE=dt(),bE=sa(),EE=vE({}.hasOwnProperty);nd.exports=Object.hasOwn||function(e,r){return EE(bE(e),r)}});var la=b((hP,id)=>{var wE=dt(),TE=0,SE=Math.random(),xE=wE(1 .toString);id.exports=function(t){return"Symbol("+(t===void 0?"":t)+")_"+xE(++TE+SE,36)}});var Kt=b((gP,cd)=>{var IE=St(),LE=aa(),od=Yt(),AE=la(),ad=ea(),ld=ta(),Ur=LE("wks"),dr=IE.Symbol,sd=dr&&dr.for,ME=ld?dr:dr&&dr.withoutSetter||AE;cd.exports=function(t){if(!od(Ur,t)||!(ad||typeof Ur[t]=="string")){var e="Symbol."+t;ad&&od(dr,t)?Ur[t]=dr[t]:ld&&sd?Ur[t]=sd(e):Ur[t]=ME(e)}return Ur[t]}});var pd=b((yP,fd)=>{var kE=Ii(),ud=Gt(),dd=ra(),PE=Wu(),OE=Gu(),CE=Kt(),_E=TypeError,HE=CE("toPrimitive");fd.exports=function(t,e){if(!ud(t)||dd(t))return t;var r=PE(t,HE),n;if(r){if(e===void 0&&(e="default"),n=kE(r,t,e),!ud(n)||dd(n))return n;throw _E("Can't convert object to primitive value")}return e===void 0&&(e="number"),OE(t,e)}});var ca=b((vP,md)=>{var RE=pd(),NE=ra();md.exports=function(t){var e=RE(t,"string");return NE(e)?e:e+""}});var da=b((bP,gd)=>{var FE=St(),hd=Gt(),ua=FE.document,DE=hd(ua)&&hd(ua.createElement);gd.exports=function(t){return DE?ua.createElement(t):{}}});var fa=b((EP,yd)=>{var qE=Dt(),BE=xt(),jE=da();yd.exports=!qE&&!BE(function(){return Object.defineProperty(jE("div"),"a",{get:function(){return 7}}).a!=7})});var pa=b(bd=>{var zE=Dt(),UE=Ii(),VE=lu(),WE=Wo(),$E=Tn(),GE=ca(),YE=Yt(),KE=fa(),vd=Object.getOwnPropertyDescriptor;bd.f=zE?vd:function(e,r){if(e=$E(e),r=GE(r),KE)try{return vd(e,r)}catch(n){}if(YE(e,r))return WE(!UE(VE.f,e,r),e[r])}});var ma=b((TP,Ed)=>{var XE=Dt(),JE=xt();Ed.exports=XE&&JE(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})});var Sn=b((SP,wd)=>{var ZE=Gt(),QE=String,ew=TypeError;wd.exports=function(t){if(ZE(t))return t;throw ew(QE(t)+" is not an object")}});var Vr=b(Sd=>{var tw=Dt(),rw=fa(),nw=ma(),Pi=Sn(),Td=ca(),iw=TypeError,ha=Object.defineProperty,ow=Object.getOwnPropertyDescriptor,ga="enumerable",ya="configurable",va="writable";Sd.f=tw?nw?function(e,r,n){if(Pi(e),r=Td(r),Pi(n),typeof e=="function"&&r==="prototype"&&"value"in n&&va in n&&!n[va]){var i=ow(e,r);i&&i[va]&&(e[r]=n.value,n={configurable:ya in n?n[ya]:i[ya],enumerable:ga in n?n[ga]:i[ga],writable:!1})}return ha(e,r,n)}:ha:function(e,r,n){if(Pi(e),r=Td(r),Pi(n),rw)try{return ha(e,r,n)}catch(i){}if("get"in n||"set"in n)throw iw("Accessors not supported");return"value"in n&&(e[r]=n.value),e}});var ba=b((IP,xd)=>{var aw=Dt(),sw=Vr(),lw=Wo();xd.exports=aw?function(t,e,r){return sw.f(t,e,lw(1,r))}:function(t,e,r){return t[e]=r,t}});var Ad=b((LP,Ld)=>{var Ea=Dt(),cw=Yt(),Id=Function.prototype,uw=Ea&&Object.getOwnPropertyDescriptor,wa=cw(Id,"name"),dw=wa&&function(){}.name==="something",fw=wa&&(!Ea||Ea&&uw(Id,"name").configurable);Ld.exports={EXISTS:wa,PROPER:dw,CONFIGURABLE:fw}});var Sa=b((AP,Md)=>{var pw=dt(),mw=ht(),Ta=ki(),hw=pw(Function.toString);mw(Ta.inspectSource)||(Ta.inspectSource=function(t){return hw(t)});Md.exports=Ta.inspectSource});var Od=b((MP,Pd)=>{var gw=St(),yw=ht(),kd=gw.WeakMap;Pd.exports=yw(kd)&&/native code/.test(String(kd))});var xa=b((kP,_d)=>{var vw=aa(),bw=la(),Cd=vw("keys");_d.exports=function(t){return Cd[t]||(Cd[t]=bw(t))}});var Oi=b((PP,Hd)=>{Hd.exports={}});var Dd=b((OP,Fd)=>{var Ew=Od(),Nd=St(),ww=Gt(),Tw=ba(),Ia=Yt(),La=ki(),Sw=xa(),xw=Oi(),Rd="Object already initialized",Aa=Nd.TypeError,Iw=Nd.WeakMap,Ci,xn,_i,Lw=function(t){return _i(t)?xn(t):Ci(t,{})},Aw=function(t){return function(e){var r;if(!ww(e)||(r=xn(e)).type!==t)throw Aa("Incompatible receiver, "+t+" required");return r}};Ew||La.state?(Lt=La.state||(La.state=new Iw),Lt.get=Lt.get,Lt.has=Lt.has,Lt.set=Lt.set,Ci=function(t,e){if(Lt.has(t))throw Aa(Rd);return e.facade=t,Lt.set(t,e),e},xn=function(t){return Lt.get(t)||{}},_i=function(t){return Lt.has(t)}):(fr=Sw("state"),xw[fr]=!0,Ci=function(t,e){if(Ia(t,fr))throw Aa(Rd);return e.facade=t,Tw(t,fr,e),e},xn=function(t){return Ia(t,fr)?t[fr]:{}},_i=function(t){return Ia(t,fr)});var Lt,fr;Fd.exports={set:Ci,get:xn,has:_i,enforce:Lw,getterFor:Aw}});var jd=b((CP,Bd)=>{var Mw=xt(),kw=ht(),Hi=Yt(),Ma=Dt(),Pw=Ad().CONFIGURABLE,Ow=Sa(),qd=Dd(),Cw=qd.enforce,_w=qd.get,Ri=Object.defineProperty,Hw=Ma&&!Mw(function(){return Ri(function(){},"length",{value:8}).length!==8}),Rw=String(String).split("String"),Nw=Bd.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),(!Hi(t,"name")||Pw&&t.name!==e)&&(Ma?Ri(t,"name",{value:e,configurable:!0}):t.name=e),Hw&&r&&Hi(r,"arity")&&t.length!==r.arity&&Ri(t,"length",{value:r.arity});try{r&&Hi(r,"constructor")&&r.constructor?Ma&&Ri(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var n=Cw(t);return Hi(n,"source")||(n.source=Rw.join(typeof e=="string"?e:"")),t};Function.prototype.toString=Nw(function(){return kw(this)&&_w(this).source||Ow(this)},"toString")});var Ud=b((_P,zd)=>{var Fw=ht(),Dw=Vr(),qw=jd(),Bw=Mi();zd.exports=function(t,e,r,n){n||(n={});var i=n.enumerable,o=n.name!==void 0?n.name:e;if(Fw(r)&&qw(r,o,n),n.global)i?t[e]=r:Bw(e,r);else{try{n.unsafe?t[e]&&(i=!0):delete t[e]}catch(a){}i?t[e]=r:Dw.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t}});var Wd=b((HP,Vd)=>{var jw=Math.ceil,zw=Math.floor;Vd.exports=Math.trunc||function(e){var r=+e;return(r>0?zw:jw)(r)}});var Ni=b((RP,$d)=>{var Uw=Wd();$d.exports=function(t){var e=+t;return e!==e||e===0?0:Uw(e)}});var Yd=b((NP,Gd)=>{var Vw=Ni(),Ww=Math.max,$w=Math.min;Gd.exports=function(t,e){var r=Vw(t);return r<0?Ww(r+e,0):$w(r,e)}});var ka=b((FP,Kd)=>{var Gw=Ni(),Yw=Math.min;Kd.exports=function(t){return t>0?Yw(Gw(t),9007199254740991):0}});var Fi=b((DP,Xd)=>{var Kw=ka();Xd.exports=function(t){return Kw(t.length)}});var Pa=b((qP,Zd)=>{var Xw=Tn(),Jw=Yd(),Zw=Fi(),Jd=function(t){return function(e,r,n){var i=Xw(e),o=Zw(i),a=Jw(n,o),l;if(t&&r!=r){for(;o>a;)if(l=i[a++],l!=l)return!0}else for(;o>a;a++)if((t||a in i)&&i[a]===r)return t||a||0;return!t&&-1}};Zd.exports={includes:Jd(!0),indexOf:Jd(!1)}});var Ca=b((BP,ef)=>{var Qw=dt(),Oa=Yt(),eT=Tn(),tT=Pa().indexOf,rT=Oi(),Qd=Qw([].push);ef.exports=function(t,e){var r=eT(t),n=0,i=[],o;for(o in r)!Oa(rT,o)&&Oa(r,o)&&Qd(i,o);for(;e.length>n;)Oa(r,o=e[n++])&&(~tT(i,o)||Qd(i,o));return i}});var Di=b((jP,tf)=>{tf.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var nf=b(rf=>{var nT=Ca(),iT=Di(),oT=iT.concat("length","prototype");rf.f=Object.getOwnPropertyNames||function(e){return nT(e,oT)}});var af=b(of=>{of.f=Object.getOwnPropertySymbols});var lf=b((VP,sf)=>{var aT=zr(),sT=dt(),lT=nf(),cT=af(),uT=Sn(),dT=sT([].concat);sf.exports=aT("Reflect","ownKeys")||function(e){var r=lT.f(uT(e)),n=cT.f;return n?dT(r,n(e)):r}});var df=b((WP,uf)=>{var cf=Yt(),fT=lf(),pT=pa(),mT=Vr();uf.exports=function(t,e,r){for(var n=fT(e),i=mT.f,o=pT.f,a=0;a<n.length;a++){var l=n[a];!cf(t,l)&&!(r&&cf(r,l))&&i(t,l,o(e,l))}}});var pf=b(($P,ff)=>{var hT=xt(),gT=ht(),yT=/#|\.prototype\./,In=function(t,e){var r=bT[vT(t)];return r==wT?!0:r==ET?!1:gT(e)?hT(e):!!e},vT=In.normalize=function(t){return String(t).replace(yT,".").toLowerCase()},bT=In.data={},ET=In.NATIVE="N",wT=In.POLYFILL="P";ff.exports=In});var Ln=b((GP,mf)=>{var _a=St(),TT=pa().f,ST=ba(),xT=Ud(),IT=Mi(),LT=df(),AT=pf();mf.exports=function(t,e){var r=t.target,n=t.global,i=t.stat,o,a,l,c,u,f;if(n?a=_a:i?a=_a[r]||IT(r,{}):a=(_a[r]||{}).prototype,a)for(l in e){if(u=e[l],t.dontCallGetSet?(f=TT(a,l),c=f&&f.value):c=a[l],o=AT(n?l:r+(i?".":"#")+l,t.forced),!o&&c!==void 0){if(typeof u==typeof c)continue;LT(u,c)}(t.sham||c&&c.sham)&&ST(u,"sham",!0),xT(a,l,u,t)}}});var Ha=b((YP,hf)=>{var MT=Br();hf.exports=Array.isArray||function(e){return MT(e)=="Array"}});var yf=b((KP,gf)=>{var kT=TypeError,PT=9007199254740991;gf.exports=function(t){if(t>PT)throw kT("Maximum allowed index exceeded");return t}});var bf=b((XP,vf)=>{var OT=Br(),CT=dt();vf.exports=function(t){if(OT(t)==="Function")return CT(t)}});var Tf=b((JP,wf)=>{var Ef=bf(),_T=Ai(),HT=Si(),RT=Ef(Ef.bind);wf.exports=function(t,e){return _T(t),e===void 0?t:HT?RT(t,e):function(){return t.apply(e,arguments)}}});var If=b((ZP,xf)=>{"use strict";var NT=Ha(),FT=Fi(),DT=yf(),qT=Tf(),Sf=function(t,e,r,n,i,o,a,l){for(var c=i,u=0,f=a?qT(a,l):!1,p,h;u<n;)u in r&&(p=f?f(r[u],u,e):r[u],o>0&&NT(p)?(h=FT(p),c=Sf(t,e,p,h,c,o-1)-1):(DT(c+1),t[c]=p),c++),u++;return c};xf.exports=Sf});var Mf=b((QP,Af)=>{var BT=Kt(),jT=BT("toStringTag"),Lf={};Lf[jT]="z";Af.exports=String(Lf)==="[object z]"});var Ra=b((e2,kf)=>{var zT=Mf(),UT=ht(),qi=Br(),VT=Kt(),WT=VT("toStringTag"),$T=Object,GT=qi(function(){return arguments}())=="Arguments",KT=function(t,e){try{return t[e]}catch(r){}};kf.exports=zT?qi:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=KT(e=$T(t),WT))=="string"?r:GT?qi(e):(n=qi(e))=="Object"&&UT(e.callee)?"Arguments":n}});var Rf=b((t2,Hf)=>{var XT=dt(),JT=xt(),Pf=ht(),ZT=Ra(),QT=zr(),e1=Sa(),Of=function(){},t1=[],Cf=QT("Reflect","construct"),Na=/^\s*(?:class|function)\b/,r1=XT(Na.exec),n1=!Na.exec(Of),An=function(e){if(!Pf(e))return!1;try{return Cf(Of,t1,e),!0}catch(r){return!1}},_f=function(e){if(!Pf(e))return!1;switch(ZT(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return n1||!!r1(Na,e1(e))}catch(r){return!0}};_f.sham=!0;Hf.exports=!Cf||JT(function(){var t;return An(An.call)||!An(Object)||!An(function(){t=!0})||t})?_f:An});var qf=b((r2,Df)=>{var Nf=Ha(),i1=Rf(),o1=Gt(),a1=Kt(),s1=a1("species"),Ff=Array;Df.exports=function(t){var e;return Nf(t)&&(e=t.constructor,i1(e)&&(e===Ff||Nf(e.prototype))?e=void 0:o1(e)&&(e=e[s1],e===null&&(e=void 0))),e===void 0?Ff:e}});var jf=b((n2,Bf)=>{var l1=qf();Bf.exports=function(t,e){return new(l1(t))(e===0?0:e)}});var zf=b(()=>{"use strict";var c1=Ln(),u1=If(),d1=Ai(),f1=sa(),p1=Fi(),m1=jf();c1({target:"Array",proto:!0},{flatMap:function(e){var r=f1(this),n=p1(r),i;return d1(e),i=m1(r,0),i.length=u1(i,r,r,n,0,1,e,arguments.length>1?arguments[1]:void 0),i}})});var Vf=b((a2,Uf)=>{var h1=Ca(),g1=Di();Uf.exports=Object.keys||function(e){return h1(e,g1)}});var $f=b(Wf=>{var y1=Dt(),v1=ma(),b1=Vr(),E1=Sn(),w1=Tn(),T1=Vf();Wf.f=y1&&!v1?Object.defineProperties:function(e,r){E1(e);for(var n=w1(r),i=T1(r),o=i.length,a=0,l;o>a;)b1.f(e,l=i[a++],n[l]);return e}});var Yf=b((l2,Gf)=>{var S1=zr();Gf.exports=S1("document","documentElement")});var rp=b((c2,tp)=>{var x1=Sn(),I1=$f(),Kf=Di(),L1=Oi(),A1=Yf(),M1=da(),k1=xa(),Xf=">",Jf="<",Da="prototype",qa="script",Qf=k1("IE_PROTO"),Fa=function(){},ep=function(t){return Jf+qa+Xf+t+Jf+"/"+qa+Xf},Zf=function(t){t.write(ep("")),t.close();var e=t.parentWindow.Object;return t=null,e},P1=function(){var t=M1("iframe"),e="java"+qa+":",r;return t.style.display="none",A1.appendChild(t),t.src=String(e),r=t.contentWindow.document,r.open(),r.write(ep("document.F=Object")),r.close(),r.F},Bi,ji=function(){try{Bi=new ActiveXObject("htmlfile")}catch(e){}ji=typeof document!="undefined"?document.domain&&Bi?Zf(Bi):P1():Zf(Bi);for(var t=Kf.length;t--;)delete ji[Da][Kf[t]];return ji()};L1[Qf]=!0;tp.exports=Object.create||function(e,r){var n;return e!==null?(Fa[Da]=x1(e),n=new Fa,Fa[Da]=null,n[Qf]=e):n=ji(),r===void 0?n:I1.f(n,r)}});var za=b((u2,np)=>{var O1=Kt(),C1=rp(),_1=Vr().f,Ba=O1("unscopables"),ja=Array.prototype;ja[Ba]==null&&_1(ja,Ba,{configurable:!0,value:C1(null)});np.exports=function(t){ja[Ba][t]=!0}});var ip=b(()=>{var H1=za();H1("flatMap")});var Mn=b((p2,op)=>{var R1=St(),N1=dt();op.exports=function(t,e){return N1(R1[t].prototype[e])}});var sp=b((m2,ap)=>{zf();ip();var F1=Mn();ap.exports=F1("Array","flatMap")});var cp=b((h2,lp)=>{var D1=sp();lp.exports=D1});var dp=b((g2,up)=>{var q1=cp();up.exports=q1});var fp=b(()=>{"use strict";var B1=Ln(),j1=Pa().includes,z1=xt(),U1=za(),V1=z1(function(){return!Array(1).includes()});B1({target:"Array",proto:!0,forced:V1},{includes:function(e){return j1(this,e,arguments.length>1?arguments[1]:void 0)}});U1("includes")});var mp=b((b2,pp)=>{fp();var W1=Mn();pp.exports=W1("Array","includes")});var gp=b((E2,hp)=>{var $1=mp();hp.exports=$1});var vp=b((w2,yp)=>{var G1=gp();yp.exports=G1});var Ep=b((T2,bp)=>{var Y1=Gt(),K1=Br(),X1=Kt(),J1=X1("match");bp.exports=function(t){var e;return Y1(t)&&((e=t[J1])!==void 0?!!e:K1(t)=="RegExp")}});var Tp=b((S2,wp)=>{var Z1=Ep(),Q1=TypeError;wp.exports=function(t){if(Z1(t))throw Q1("The method doesn't accept regular expressions");return t}});var zi=b((x2,Sp)=>{var eS=Ra(),tS=String;Sp.exports=function(t){if(eS(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return tS(t)}});var Ip=b((I2,xp)=>{var rS=Kt(),nS=rS("match");xp.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[nS]=!1,"/./"[t](e)}catch(n){}}return!1}});var Ap=b(()=>{"use strict";var iS=Ln(),oS=dt(),aS=Tp(),sS=jr(),Lp=zi(),lS=Ip(),cS=oS("".indexOf);iS({target:"String",proto:!0,forced:!lS("includes")},{includes:function(e){return!!~cS(Lp(sS(this)),Lp(aS(e)),arguments.length>1?arguments[1]:void 0)}})});var kp=b((M2,Mp)=>{Ap();var uS=Mn();Mp.exports=uS("String","includes")});var Op=b((k2,Pp)=>{var dS=kp();Pp.exports=dS});var _p=b((P2,Cp)=>{var fS=Op();Cp.exports=fS});var Rp=b((O2,Hp)=>{"use strict";var pS=Ni(),mS=zi(),hS=jr(),gS=RangeError;Hp.exports=function(e){var r=mS(hS(this)),n="",i=pS(e);if(i<0||i==1/0)throw gS("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(r+=r))i&1&&(n+=r);return n}});var Bp=b((C2,qp)=>{var Dp=dt(),yS=ka(),Np=zi(),vS=Rp(),bS=jr(),ES=Dp(vS),wS=Dp("".slice),TS=Math.ceil,Fp=function(t){return function(e,r,n){var i=Np(bS(e)),o=yS(r),a=i.length,l=n===void 0?" ":Np(n),c,u;return o<=a||l==""?i:(c=o-a,u=ES(l,TS(c/l.length)),u.length>c&&(u=wS(u,0,c)),t?i+u:u+i)}};qp.exports={start:Fp(!1),end:Fp(!0)}});var zp=b((_2,jp)=>{var SS=Zo();jp.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(SS)});var Up=b(()=>{"use strict";var xS=Ln(),IS=Bp().start,LS=zp();xS({target:"String",proto:!0,forced:LS},{padStart:function(e){return IS(this,e,arguments.length>1?arguments[1]:void 0)}})});var Wp=b((N2,Vp)=>{Up();var AS=Mn();Vp.exports=AS("String","padStart")});var Gp=b((F2,$p)=>{var MS=Wp();$p.exports=MS});var Kp=b((D2,Yp)=>{var kS=Gp();Yp.exports=kS});var Jp=b(Xp=>{(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(E){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(E){return E&&DataView.prototype.isPrototypeOf(E)},i=ArrayBuffer.isView||function(E){return E&&r.indexOf(Object.prototype.toString.call(E))>-1};function o(E){if(typeof E!="string"&&(E=String(E)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(E))throw new TypeError("Invalid character in header field name");return E.toLowerCase()}function a(E){return typeof E!="string"&&(E=String(E)),E}function l(E){var w={next:function(){var C=E.shift();return{done:C===void 0,value:C}}};return e.iterable&&(w[Symbol.iterator]=function(){return w}),w}function c(E){this.map={},E instanceof c?E.forEach(function(w,C){this.append(C,w)},this):Array.isArray(E)?E.forEach(function(w){this.append(w[0],w[1])},this):E&&Object.getOwnPropertyNames(E).forEach(function(w){this.append(w,E[w])},this)}c.prototype.append=function(E,w){E=o(E),w=a(w);var C=this.map[E];this.map[E]=C?C+","+w:w},c.prototype.delete=function(E){delete this.map[o(E)]},c.prototype.get=function(E){return E=o(E),this.has(E)?this.map[E]:null},c.prototype.has=function(E){return this.map.hasOwnProperty(o(E))},c.prototype.set=function(E,w){this.map[o(E)]=a(w)},c.prototype.forEach=function(E,w){for(var C in this.map)this.map.hasOwnProperty(C)&&E.call(w,this.map[C],C,this)},c.prototype.keys=function(){var E=[];return this.forEach(function(w,C){E.push(C)}),l(E)},c.prototype.values=function(){var E=[];return this.forEach(function(w){E.push(w)}),l(E)},c.prototype.entries=function(){var E=[];return this.forEach(function(w,C){E.push([C,w])}),l(E)},e.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);function u(E){if(E.bodyUsed)return Promise.reject(new TypeError("Already read"));E.bodyUsed=!0}function f(E){return new Promise(function(w,C){E.onload=function(){w(E.result)},E.onerror=function(){C(E.error)}})}function p(E){var w=new FileReader,C=f(w);return w.readAsArrayBuffer(E),C}function h(E){var w=new FileReader,C=f(w);return w.readAsText(E),C}function v(E){for(var w=new Uint8Array(E),C=new Array(w.length),q=0;q<w.length;q++)C[q]=String.fromCharCode(w[q]);return C.join("")}function I(E){if(E.slice)return E.slice(0);var w=new Uint8Array(E.byteLength);return w.set(new Uint8Array(E)),w.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(E){if(this._bodyInit=E,!E)this._bodyText="";else if(typeof E=="string")this._bodyText=E;else if(e.blob&&Blob.prototype.isPrototypeOf(E))this._bodyBlob=E;else if(e.formData&&FormData.prototype.isPrototypeOf(E))this._bodyFormData=E;else if(e.searchParams&&URLSearchParams.prototype.isPrototypeOf(E))this._bodyText=E.toString();else if(e.arrayBuffer&&e.blob&&n(E))this._bodyArrayBuffer=I(E.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else if(e.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(E)||i(E)))this._bodyArrayBuffer=I(E);else throw new Error("unsupported BodyInit type");this.headers.get("content-type")||(typeof E=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(E)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var E=u(this);if(E)return E;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?u(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var E=u(this);if(E)return E;if(this._bodyBlob)return h(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(v(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(B)}),this.json=function(){return this.text().then(JSON.parse)},this}var T=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function L(E){var w=E.toUpperCase();return T.indexOf(w)>-1?w:E}function A(E,w){w=w||{};var C=w.body;if(E instanceof A){if(E.bodyUsed)throw new TypeError("Already read");this.url=E.url,this.credentials=E.credentials,w.headers||(this.headers=new c(E.headers)),this.method=E.method,this.mode=E.mode,!C&&E._bodyInit!=null&&(C=E._bodyInit,E.bodyUsed=!0)}else this.url=String(E);if(this.credentials=w.credentials||this.credentials||"omit",(w.headers||!this.headers)&&(this.headers=new c(w.headers)),this.method=L(w.method||this.method||"GET"),this.mode=w.mode||this.mode||null,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&C)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(C)}A.prototype.clone=function(){return new A(this,{body:this._bodyInit})};function B(E){var w=new FormData;return E.trim().split("&").forEach(function(C){if(C){var q=C.split("="),U=q.shift().replace(/\+/g," "),V=q.join("=").replace(/\+/g," ");w.append(decodeURIComponent(U),decodeURIComponent(V))}}),w}function N(E){var w=new c,C=E.replace(/\r?\n[\t ]+/g," ");return C.split(/\r?\n/).forEach(function(q){var U=q.split(":"),V=U.shift().trim();if(V){var Q=U.join(":").trim();w.append(V,Q)}}),w}y.call(A.prototype);function O(E,w){w||(w={}),this.type="default",this.status=w.status===void 0?200:w.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in w?w.statusText:"OK",this.headers=new c(w.headers),this.url=w.url||"",this._initBody(E)}y.call(O.prototype),O.prototype.clone=function(){return new O(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},O.error=function(){var E=new O(null,{status:0,statusText:""});return E.type="error",E};var x=[301,302,303,307,308];O.redirect=function(E,w){if(x.indexOf(w)===-1)throw new RangeError("Invalid status code");return new O(null,{status:w,headers:{location:E}})},t.Headers=c,t.Request=A,t.Response=O,t.fetch=function(E,w){return new Promise(function(C,q){var U=new A(E,w),V=new XMLHttpRequest;V.onload=function(){var Q={status:V.status,statusText:V.statusText,headers:N(V.getAllResponseHeaders()||"")};Q.url="responseURL"in V?V.responseURL:Q.headers.get("X-Request-URL");var he="response"in V?V.response:V.responseText;C(new O(he,Q))},V.onerror=function(){q(new TypeError("Network request failed"))},V.ontimeout=function(){q(new TypeError("Network request failed"))},V.open(U.method,U.url,!0),U.credentials==="include"?V.withCredentials=!0:U.credentials==="omit"&&(V.withCredentials=!1),"responseType"in V&&e.blob&&(V.responseType="blob"),U.headers.forEach(function(Q,he){V.setRequestHeader(he,Q)}),V.send(typeof U._bodyInit=="undefined"?null:U._bodyInit)})},t.fetch.polyfill=!0})(typeof self!="undefined"?self:Xp)});var Zp=b((B2,Va)=>{function Ua(){}Ua.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}};Va.exports=Ua;Va.exports.TinyEmitter=Ua});var Ae=b((om,Xa)=>{(function(t){"use strict";var e=function(){},r=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(u){return setTimeout(u,16)};function n(){var u=this;u.reads=[],u.writes=[],u.raf=r.bind(t),e("initialized",u)}n.prototype={constructor:n,runTasks:function(u){e("run tasks");for(var f;f=u.shift();)f()},measure:function(u,f){e("measure");var p=f?u.bind(f):u;return this.reads.push(p),i(this),p},mutate:function(u,f){e("mutate");var p=f?u.bind(f):u;return this.writes.push(p),i(this),p},clear:function(u){return e("clear",u),a(this.reads,u)||a(this.writes,u)},extend:function(u){if(e("extend",u),typeof u!="object")throw new Error("expected object");var f=Object.create(this);return l(f,u),f.fastdom=this,f.initialize&&f.initialize(),f},catch:null};function i(u){u.scheduled||(u.scheduled=!0,u.raf(o.bind(null,u)),e("flush scheduled"))}function o(u){e("flush");var f=u.writes,p=u.reads,h;try{e("flushing reads",p.length),u.runTasks(p),e("flushing writes",f.length),u.runTasks(f)}catch(v){h=v}if(u.scheduled=!1,(p.length||f.length)&&i(u),h)if(e("task errored",h.message),u.catch)u.catch(h);else throw h}function a(u,f){var p=u.indexOf(f);return!!~p&&!!u.splice(p,1)}function l(u,f){for(var p in f)f.hasOwnProperty(p)&&(u[p]=f[p])}var c=t.fastdom=t.fastdom||new n;typeof Xa=="object"&&(Xa.exports=c)})(typeof window!="undefined"?window:om)});var am=b((aO,Vi)=>{(function(){"use strict";var t=function(){function e(){}e.prototype=Object.create(null);function r(f,p){for(var h=p.length,v=0;v<h;++v)c(f,p[v])}var n={}.hasOwnProperty;function i(f,p){f[p]=!0}function o(f,p){if(p.toString===Object.prototype.toString)for(var h in p)n.call(p,h)&&(f[h]=!!p[h]);else f[p.toString()]=!0}var a=/\s+/;function l(f,p){for(var h=p.split(a),v=h.length,I=0;I<v;++I)f[h[I]]=!0}function c(f,p){if(!!p){var h=typeof p;h==="string"?l(f,p):Array.isArray(p)?r(f,p):h==="object"?o(f,p):h==="number"&&i(f,p)}}function u(){for(var f=arguments.length,p=Array(f),h=0;h<f;h++)p[h]=arguments[h];var v=new e;r(v,p);var I=[];for(var y in v)v[y]&&I.push(y);return I.join(" ")}return u}();typeof Vi!="undefined"&&Vi.exports?(t.default=t,Vi.exports=t):window.classNames=t})()});var lm=b((sm,Wi)=>{(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 l=this;n.forEach(function(c){l[c]={name:r,version:[],versionString:r}})}function o(l,c,u){e[c].forEach(function(f){var p=f[0],h=f[1],v=u.match(p);v&&(l[c].name=h,v[2]?(l[c].versionString=v[2],l[c].version=[]):v[1]?(l[c].versionString=v[1].replace(/_/g,"."),l[c].version=a(v[1])):(l[c].versionString=r,l[c].version=[]))})}function a(l){return l.split(/[\._]/).map(function(c){return parseInt(c)})}i.prototype.sniff=function(l){var c=this,u=typeof window!="undefined",f=u?navigator.userAgent:"",p=(l||f).toLowerCase();return n.forEach(function(h){o(c,h,p)}),this},typeof Wi!="undefined"&&Wi.exports?Wi.exports=i:(t.Sniffr=new i,t.Sniffr.sniff(navigator.userAgent))})(sm)});var rs=b((MO,gm)=>{gm.exports=function(){var t=function(l){return typeof l=="function"},e=function(l){var c=Number(l);return isNaN(c)?0:c===0||!isFinite(c)?c:(c>0?1:-1)*Math.floor(Math.abs(c))},r=Math.pow(2,53)-1,n=function(l){var c=e(l);return Math.min(Math.max(c,0),r)},i=function(l){if(l!=null){if(["string","number","boolean","symbol"].indexOf(typeof l)>-1)return Symbol.iterator;if(typeof Symbol!="undefined"&&"iterator"in Symbol&&Symbol.iterator in l)return Symbol.iterator;if("@@iterator"in l)return"@@iterator"}},o=function(l,c){if(l!=null&&c!=null){var u=l[c];if(u==null)return;if(!t(u))throw new TypeError(u+" is not a function");return u}},a=function(l){var c=l.next(),u=Boolean(c.done);return u?!1:c};return function(c){"use strict";var u=this,f=arguments.length>1?arguments[1]:void 0,p;if(typeof f!="undefined"){if(!t(f))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(p=arguments[2])}var h,v,I=o(c,i(c));if(I!==void 0){h=t(u)?Object(new u):[];var y=I.call(c);if(y==null)throw new TypeError("Array.from requires an array-like or iterable object");v=0;for(var T,L;;){if(T=a(y),!T)return h.length=v,h;L=T.value,f?h[v]=f.call(p,L,v):h[v]=L,v++}}else{var A=Object(c);if(c==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");var B=n(A.length);h=t(u)?Object(new u(B)):new Array(B),v=0;for(var N;v<B;)N=A[v],f?h[v]=f.call(p,N,v):h[v]=N,v++;h.length=B}return h}}()});var bm=b((RO,vm)=>{var Cn,_n;typeof document.hidden!="undefined"?(Cn="hidden",_n="visibilitychange"):typeof document.mozHidden!="undefined"?(Cn="mozHidden",_n="mozvisibilitychange"):typeof document.msHidden!="undefined"?(Cn="msHidden",_n="msvisibilitychange"):typeof document.webkitHidden!="undefined"&&(Cn="webkitHidden",_n="webkitvisibilitychange");vm.exports={hidden:Cn,visibilityChange:_n}});var Sm=b((Rn,as)=>{(function(t,e){typeof Rn=="object"&&typeof as=="object"?as.exports=e():typeof Rn=="object"?Rn.StateMachine=e():t.StateMachine=e()})(Rn,function(){return r={},t.m=e=[function(n,i,o){"use strict";n.exports=function(a,l){for(var c,u,f=1;f<arguments.length;f++)for(u in c=arguments[f])c.hasOwnProperty(u)&&(a[u]=c[u]);return a}},function(n,i,o){"use strict";var a=o(0);n.exports={build:function(l,c){for(var u,f=c.plugins,p=0,h=f.length;p<h;p++)(u=f[p]).methods&&a(l,u.methods),u.properties&&Object.defineProperties(l,u.properties)},hook:function(l,c,u){var f,p,h,v,I=l.config.plugins,y=[l.context];for(u&&(y=y.concat(u)),f=0,p=I.length;f<p;f++)v=I[f],(h=I[f][c])&&h.apply(v,y)}}},function(n,i,o){"use strict";function a(l){if(l.length===0)return l;var c,u,f=l.split(/[_-]/);if(f.length===1&&f[0][0].toLowerCase()===f[0][0])return l;for(u=f[0].toLowerCase(),c=1;c<f.length;c++)u=u+f[c].charAt(0).toUpperCase()+f[c].substring(1).toLowerCase();return u}a.prepended=function(l,c){return l+(c=a(c))[0].toUpperCase()+c.substring(1)},n.exports=a},function(n,i,o){"use strict";var a=o(0),l=o(2);function c(u,f){u=u||{},this.options=u,this.defaults=f.defaults,this.states=[],this.transitions=[],this.map={},this.lifecycle=this.configureLifecycle(),this.init=this.configureInitTransition(u.init),this.data=this.configureData(u.data),this.methods=this.configureMethods(u.methods),this.map[this.defaults.wildcard]={},this.configureTransitions(u.transitions||[]),this.plugins=this.configurePlugins(u.plugins,f.plugin)}a(c.prototype,{addState:function(u){this.map[u]||(this.states.push(u),this.addStateLifecycleNames(u),this.map[u]={})},addStateLifecycleNames:function(u){this.lifecycle.onEnter[u]=l.prepended("onEnter",u),this.lifecycle.onLeave[u]=l.prepended("onLeave",u),this.lifecycle.on[u]=l.prepended("on",u)},addTransition:function(u){this.transitions.indexOf(u)<0&&(this.transitions.push(u),this.addTransitionLifecycleNames(u))},addTransitionLifecycleNames:function(u){this.lifecycle.onBefore[u]=l.prepended("onBefore",u),this.lifecycle.onAfter[u]=l.prepended("onAfter",u),this.lifecycle.on[u]=l.prepended("on",u)},mapTransition:function(u){var f=u.name,p=u.from,h=u.to;return this.addState(p),typeof h!="function"&&this.addState(h),this.addTransition(f),this.map[p][f]=u},configureLifecycle:function(){return{onBefore:{transition:"onBeforeTransition"},onAfter:{transition:"onAfterTransition"},onEnter:{state:"onEnterState"},onLeave:{state:"onLeaveState"},on:{transition:"onTransition"}}},configureInitTransition:function(u){return typeof u=="string"?this.mapTransition(a({},this.defaults.init,{to:u,active:!0})):typeof u=="object"?this.mapTransition(a({},this.defaults.init,u,{active:!0})):(this.addState(this.defaults.init.from),this.defaults.init)},configureData:function(u){return typeof u=="function"?u:typeof u=="object"?function(){return u}:function(){return{}}},configureMethods:function(u){return u||{}},configurePlugins:function(u,f){for(var p,h=0,v=(u=u||[]).length;h<v;h++)typeof(p=u[h])=="function"&&(u[h]=p=p()),p.configure&&p.configure(this);return u},configureTransitions:function(u){for(var f,p,h,v,I=this.defaults.wildcard,y=0;y<u.length;y++)for(p=u[y],h=Array.isArray(p.from)?p.from:[p.from||I],v=p.to||I,f=0;f<h.length;f++)this.mapTransition({name:p.name,from:h[f],to:v})},transitionFor:function(u,f){var p=this.defaults.wildcard;return this.map[u][f]||this.map[p][f]},transitionsFor:function(u){var f=this.defaults.wildcard;return Object.keys(this.map[u]).concat(Object.keys(this.map[f]))},allStates:function(){return this.states},allTransitions:function(){return this.transitions}}),n.exports=c},function(n,i,o){var a=o(0),l=o(6),c=o(1),u=[null,[]];function f(p,h){this.context=p,this.config=h,this.state=h.init.from,this.observers=[p]}a(f.prototype,{init:function(p){if(a(this.context,this.config.data.apply(this.context,p)),c.hook(this,"init"),this.config.init.active)return this.fire(this.config.init.name,[])},is:function(p){return Array.isArray(p)?0<=p.indexOf(this.state):this.state===p},isPending:function(){return this.pending},can:function(p){return!this.isPending()&&!!this.seek(p)},cannot:function(p){return!this.can(p)},allStates:function(){return this.config.allStates()},allTransitions:function(){return this.config.allTransitions()},transitions:function(){return this.config.transitionsFor(this.state)},seek:function(I,h){var v=this.config.defaults.wildcard,I=this.config.transitionFor(this.state,I),I=I&&I.to;return typeof I=="function"?I.apply(this.context,h):I===v?this.state:I},fire:function(p,h){return this.transit(p,this.state,this.seek(p,h),h)},transit:function(p,h,v,I){var y=this.config.lifecycle,T=this.config.options.observeUnchangedState||h!==v;return v?this.isPending()?this.context.onPendingTransition(p,h,v):(this.config.addState(v),this.beginTransit(),I.unshift({transition:p,from:h,to:v,fsm:this.context}),this.observeEvents([this.observersForEvent(y.onBefore.transition),this.observersForEvent(y.onBefore[p]),T?this.observersForEvent(y.onLeave.state):u,T?this.observersForEvent(y.onLeave[h]):u,this.observersForEvent(y.on.transition),T?["doTransit",[this]]:u,T?this.observersForEvent(y.onEnter.state):u,T?this.observersForEvent(y.onEnter[v]):u,T?this.observersForEvent(y.on[v]):u,this.observersForEvent(y.onAfter.transition),this.observersForEvent(y.onAfter[p]),this.observersForEvent(y.on[p])],I)):this.context.onInvalidTransition(p,h,v)},beginTransit:function(){this.pending=!0},endTransit:function(p){return this.pending=!1,p},failTransit:function(p){throw this.pending=!1,p},doTransit:function(p){this.state=p.to},observe:function(p){var h;p.length===2?((h={})[p[0]]=p[1],this.observers.push(h)):this.observers.push(p[0])},observersForEvent:function(p){for(var h,v=0,I=this.observers.length,y=[];v<I;v++)(h=this.observers[v])[p]&&y.push(h);return[p,y,!0]},observeEvents:function(p,h,v,I){if(p.length===0)return this.endTransit(I===void 0||I);var y=p[0][0],T=p[0][1],L=p[0][2];return(h[0].event=y)&&L&&y!==v&&c.hook(this,"lifecycle",h),T.length===0?(p.shift(),this.observeEvents(p,h,y,I)):(T=T.shift(),T=T[y].apply(T,h),T&&typeof T.then=="function"?T.then(this.observeEvents.bind(this,p,h,y)).catch(this.failTransit.bind(this)):T===!1?this.endTransit(!1):this.observeEvents(p,h,y,T))},onInvalidTransition:function(p,h,v){throw new l("transition is invalid in current state",p,h,v,this.state)},onPendingTransition:function(p,h,v){throw new l("transition is invalid while previous transition is still in progress",p,h,v,this.state)}}),n.exports=f},function(n,i,o){"use strict";var a=o(0),l=o(2),c=o(1),u=o(3),f=o(4),p={is:function(T){return this._fsm.is(T)},can:function(T){return this._fsm.can(T)},cannot:function(T){return this._fsm.cannot(T)},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(T,L,A){return this._fsm.onInvalidTransition(T,L,A)},onPendingTransition:function(T,L,A){return this._fsm.onPendingTransition(T,L,A)}},h={state:{configurable:!1,enumerable:!0,get:function(){return this._fsm.state},set:function(T){throw Error("use transitions to change state")}}};function v(T){return I(this||{},T)}function I(T,L){return y(T,new u(L,v)),T._fsm(),T}function y(T,L){if(typeof T!="object"||Array.isArray(T))throw Error("StateMachine can only be applied to objects");c.build(T,L),Object.defineProperties(T,h),a(T,p),a(T,L.methods),L.allTransitions().forEach(function(A){T[l(A)]=function(){return this._fsm.fire(A,[].slice.call(arguments))}}),T._fsm=function(){this._fsm=new f(this,L),this._fsm.init(arguments)}}v.version="3.0.1",v.factory=function(){var T,L=typeof arguments[0]=="function"?(T=arguments[0],arguments[1]||{}):(T=function(){this._fsm.apply(this,arguments)},arguments[0]||{}),L=new u(L,v);return y(T.prototype,L),T.prototype._fsm.config=L,T},v.apply=I,v.defaults={wildcard:"*",init:{name:"init",from:"none"}},n.exports=v},function(n,i,o){"use strict";n.exports=function(a,l,c,u,f){this.message=a,this.transition=l,this.from=c,this.to=u,this.current=f}}],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 Bm=b((Ss,xs)=>{(function(t,e){typeof Ss=="object"&&typeof xs!="undefined"?xs.exports=e():(t=t||self,t.DOMPurify=e())})(Ss,function(){"use strict";function t($){if(Array.isArray($)){for(var z=0,Y=Array($.length);z<$.length;z++)Y[z]=$[z];return Y}else return Array.from($)}var e=Object.hasOwnProperty,r=Object.setPrototypeOf,n=Object.isFrozen,i=Object.getPrototypeOf,o=Object.getOwnPropertyDescriptor,a=Object.freeze,l=Object.seal,c=Object.create,u=typeof Reflect!="undefined"&&Reflect,f=u.apply,p=u.construct;f||(f=function(z,Y,le){return z.apply(Y,le)}),a||(a=function(z){return z}),l||(l=function(z){return z}),p||(p=function(z,Y){return new(Function.prototype.bind.apply(z,[null].concat(t(Y))))});var h=x(Array.prototype.forEach),v=x(Array.prototype.pop),I=x(Array.prototype.push),y=x(String.prototype.toLowerCase),T=x(String.prototype.match),L=x(String.prototype.replace),A=x(String.prototype.indexOf),B=x(String.prototype.trim),N=x(RegExp.prototype.test),O=E(TypeError);function x($){return function(z){for(var Y=arguments.length,le=Array(Y>1?Y-1:0),Te=1;Te<Y;Te++)le[Te-1]=arguments[Te];return f($,z,le)}}function E($){return function(){for(var z=arguments.length,Y=Array(z),le=0;le<z;le++)Y[le]=arguments[le];return p($,Y)}}function w($,z){r&&r($,null);for(var Y=z.length;Y--;){var le=z[Y];if(typeof le=="string"){var Te=y(le);Te!==le&&(n(z)||(z[Y]=Te),le=Te)}$[le]=!0}return $}function C($){var z=c(null),Y=void 0;for(Y in $)f(e,$,[Y])&&(z[Y]=$[Y]);return z}function q($,z){for(;$!==null;){var Y=o($,z);if(Y){if(Y.get)return x(Y.get);if(typeof Y.value=="function")return x(Y.value)}$=i($)}function le(Te){return console.warn("fallback value for",Te),null}return le}var U=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"]),V=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"]),Q=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"]),he=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"]),ee=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"]),H=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),R=a(["#text"]),k=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"]),te=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"]),g=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"]),d=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),P=l(/\{\{[\s\S]*|[\s\S]*\}\}/gm),j=l(/<%[\s\S]*|[\s\S]*%>/gm),X=l(/^data-[\-\w.\u00B7-\uFFFF]/),Z=l(/^aria-[\-\w]+$/),we=l(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ye=l(/^(?:\w+script|data):/i),ve=l(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),at=l(/^html$/i),W=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $};function ne($){if(Array.isArray($)){for(var z=0,Y=Array($.length);z<$.length;z++)Y[z]=$[z];return Y}else return Array.from($)}var oe=function(){return typeof window=="undefined"?null:window},Ve=function(z,Y){if((typeof z=="undefined"?"undefined":W(z))!=="object"||typeof z.createPolicy!="function")return null;var le=null,Te="data-tt-policy-suffix";Y.currentScript&&Y.currentScript.hasAttribute(Te)&&(le=Y.currentScript.getAttribute(Te));var Xe="dompurify"+(le?"#"+le:"");try{return z.createPolicy(Xe,{createHTML:function(st){return st}})}catch(Re){return console.warn("TrustedTypes policy "+Xe+" could not be created."),null}};function Fe(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:oe(),z=function(S){return Fe(S)};if(z.version="2.3.6",z.removed=[],!$||!$.document||$.document.nodeType!==9)return z.isSupported=!1,z;var Y=$.document,le=$.document,Te=$.DocumentFragment,Xe=$.HTMLTemplateElement,Re=$.Node,st=$.Element,jt=$.NodeFilter,wt=$.NamedNodeMap,or=wt===void 0?$.NamedNodeMap||$.MozNamedAttrMap:wt,ar=$.HTMLFormElement,Pr=$.DOMParser,xe=$.trustedTypes,_e=st.prototype,vt=q(_e,"cloneNode"),pt=q(_e,"nextSibling"),sr=q(_e,"childNodes"),De=q(_e,"parentNode");if(typeof Xe=="function"){var mt=le.createElement("template");mt.content&&mt.content.ownerDocument&&(le=mt.content.ownerDocument)}var et=Ve(xe,Y),Or=et?et.createHTML(""):"",Cr=le,Rt=Cr.implementation,_r=Cr.createNodeIterator,zt=Cr.createDocumentFragment,pn=Cr.getElementsByTagName,mn=Y.importNode,hn={};try{hn=C(le).documentMode?le.documentMode:{}}catch(re){}var lt={};z.isSupported=typeof De=="function"&&Rt&&typeof Rt.createHTMLDocument!="undefined"&&hn!==9;var gn=P,Hr=j,yi=X,Rr=Z,vi=ye,yn=ve,Nr=we,He=null,Ut=w({},[].concat(ne(U),ne(V),ne(Q),ne(ee),ne(R))),qe=null,vn=w({},[].concat(ne(k),ne(te),ne(g),ne(d))),ke=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}})),lr=null,bn=null,En=!0,cr=!0,Fr=!1,Tt=!1,s=!1,$e=!1,Vt=!1,Pe=!1,Ct=!1,m=!1,M=!0,F=!0,K=!1,ce={},me=null,be=w({},["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"]),tt=null,ct=w({},["audio","video","img","source","image","track"]),de=null,Ie=w({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",Oe="http://www.w3.org/2000/svg",Ge="http://www.w3.org/1999/xhtml",Wt=Ge,$t=!1,Dr=void 0,m0=["application/xhtml+xml","text/html"],h0="text/html",ur=void 0,qr=null,g0=le.createElement("form"),Bc=function(S){return S instanceof RegExp||S instanceof Function},zo=function(S){qr&&qr===S||((!S||(typeof S=="undefined"?"undefined":W(S))!=="object")&&(S={}),S=C(S),He="ALLOWED_TAGS"in S?w({},S.ALLOWED_TAGS):Ut,qe="ALLOWED_ATTR"in S?w({},S.ALLOWED_ATTR):vn,de="ADD_URI_SAFE_ATTR"in S?w(C(Ie),S.ADD_URI_SAFE_ATTR):Ie,tt="ADD_DATA_URI_TAGS"in S?w(C(ct),S.ADD_DATA_URI_TAGS):ct,me="FORBID_CONTENTS"in S?w({},S.FORBID_CONTENTS):be,lr="FORBID_TAGS"in S?w({},S.FORBID_TAGS):{},bn="FORBID_ATTR"in S?w({},S.FORBID_ATTR):{},ce="USE_PROFILES"in S?S.USE_PROFILES:!1,En=S.ALLOW_ARIA_ATTR!==!1,cr=S.ALLOW_DATA_ATTR!==!1,Fr=S.ALLOW_UNKNOWN_PROTOCOLS||!1,Tt=S.SAFE_FOR_TEMPLATES||!1,s=S.WHOLE_DOCUMENT||!1,Pe=S.RETURN_DOM||!1,Ct=S.RETURN_DOM_FRAGMENT||!1,m=S.RETURN_TRUSTED_TYPE||!1,Vt=S.FORCE_BODY||!1,M=S.SANITIZE_DOM!==!1,F=S.KEEP_CONTENT!==!1,K=S.IN_PLACE||!1,Nr=S.ALLOWED_URI_REGEXP||Nr,Wt=S.NAMESPACE||Ge,S.CUSTOM_ELEMENT_HANDLING&&Bc(S.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ke.tagNameCheck=S.CUSTOM_ELEMENT_HANDLING.tagNameCheck),S.CUSTOM_ELEMENT_HANDLING&&Bc(S.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ke.attributeNameCheck=S.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),S.CUSTOM_ELEMENT_HANDLING&&typeof S.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ke.allowCustomizedBuiltInElements=S.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Dr=m0.indexOf(S.PARSER_MEDIA_TYPE)===-1?Dr=h0:Dr=S.PARSER_MEDIA_TYPE,ur=Dr==="application/xhtml+xml"?function(D){return D}:y,Tt&&(cr=!1),Ct&&(Pe=!0),ce&&(He=w({},[].concat(ne(R))),qe=[],ce.html===!0&&(w(He,U),w(qe,k)),ce.svg===!0&&(w(He,V),w(qe,te),w(qe,d)),ce.svgFilters===!0&&(w(He,Q),w(qe,te),w(qe,d)),ce.mathMl===!0&&(w(He,ee),w(qe,g),w(qe,d))),S.ADD_TAGS&&(He===Ut&&(He=C(He)),w(He,S.ADD_TAGS)),S.ADD_ATTR&&(qe===vn&&(qe=C(qe)),w(qe,S.ADD_ATTR)),S.ADD_URI_SAFE_ATTR&&w(de,S.ADD_URI_SAFE_ATTR),S.FORBID_CONTENTS&&(me===be&&(me=C(me)),w(me,S.FORBID_CONTENTS)),F&&(He["#text"]=!0),s&&w(He,["html","head","body"]),He.table&&(w(He,["tbody"]),delete lr.tbody),a&&a(S),qr=S)},jc=w({},["mi","mo","mn","ms","mtext"]),zc=w({},["foreignobject","desc","title","annotation-xml"]),bi=w({},V);w(bi,Q),w(bi,he);var Uo=w({},ee);w(Uo,H);var y0=function(S){var D=De(S);(!D||!D.tagName)&&(D={namespaceURI:Ge,tagName:"template"});var J=y(S.tagName),Se=y(D.tagName);if(S.namespaceURI===Oe)return D.namespaceURI===Ge?J==="svg":D.namespaceURI===fe?J==="svg"&&(Se==="annotation-xml"||jc[Se]):Boolean(bi[J]);if(S.namespaceURI===fe)return D.namespaceURI===Ge?J==="math":D.namespaceURI===Oe?J==="math"&&zc[Se]:Boolean(Uo[J]);if(S.namespaceURI===Ge){if(D.namespaceURI===Oe&&!zc[Se]||D.namespaceURI===fe&&!jc[Se])return!1;var Je=w({},["title","style","font","a","script"]);return!Uo[J]&&(Je[J]||!bi[J])}return!1},Nt=function(S){I(z.removed,{element:S});try{S.parentNode.removeChild(S)}catch(D){try{S.outerHTML=Or}catch(J){S.remove()}}},Uc=function(S,D){try{I(z.removed,{attribute:D.getAttributeNode(S),from:D})}catch(J){I(z.removed,{attribute:null,from:D})}if(D.removeAttribute(S),S==="is"&&!qe[S])if(Pe||Ct)try{Nt(D)}catch(J){}else try{D.setAttribute(S,"")}catch(J){}},Vc=function(S){var D=void 0,J=void 0;if(Vt)S="<remove></remove>"+S;else{var Se=T(S,/^[\r\n\t ]+/);J=Se&&Se[0]}Dr==="application/xhtml+xml"&&(S='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+S+"</body></html>");var Je=et?et.createHTML(S):S;if(Wt===Ge)try{D=new Pr().parseFromString(Je,Dr)}catch(Ye){}if(!D||!D.documentElement){D=Rt.createDocument(Wt,"template",null);try{D.documentElement.innerHTML=$t?"":Je}catch(Ye){}}var Ze=D.body||D.documentElement;return S&&J&&Ze.insertBefore(le.createTextNode(J),Ze.childNodes[0]||null),Wt===Ge?pn.call(D,s?"html":"body")[0]:s?D.documentElement:Ze},Wc=function(S){return _r.call(S.ownerDocument||S,S,jt.SHOW_ELEMENT|jt.SHOW_COMMENT|jt.SHOW_TEXT,null,!1)},v0=function(S){return S instanceof ar&&(typeof S.nodeName!="string"||typeof S.textContent!="string"||typeof S.removeChild!="function"||!(S.attributes instanceof or)||typeof S.removeAttribute!="function"||typeof S.setAttribute!="function"||typeof S.namespaceURI!="string"||typeof S.insertBefore!="function")},wn=function(S){return(typeof Re=="undefined"?"undefined":W(Re))==="object"?S instanceof Re:S&&(typeof S=="undefined"?"undefined":W(S))==="object"&&typeof S.nodeType=="number"&&typeof S.nodeName=="string"},Ft=function(S,D,J){!lt[S]||h(lt[S],function(Se){Se.call(z,D,J,qr)})},$c=function(S){var D=void 0;if(Ft("beforeSanitizeElements",S,null),v0(S)||T(S.nodeName,/[\u0080-\uFFFF]/))return Nt(S),!0;var J=ur(S.nodeName);if(Ft("uponSanitizeElement",S,{tagName:J,allowedTags:He}),!wn(S.firstElementChild)&&(!wn(S.content)||!wn(S.content.firstElementChild))&&N(/<[/\w]/g,S.innerHTML)&&N(/<[/\w]/g,S.textContent)||J==="select"&&N(/<template/i,S.innerHTML))return Nt(S),!0;if(!He[J]||lr[J]){if(!lr[J]&&Yc(J)&&(ke.tagNameCheck instanceof RegExp&&N(ke.tagNameCheck,J)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(J)))return!1;if(F&&!me[J]){var Se=De(S)||S.parentNode,Je=sr(S)||S.childNodes;if(Je&&Se)for(var Ze=Je.length,Ye=Ze-1;Ye>=0;--Ye)Se.insertBefore(vt(Je[Ye],!0),pt(S))}return Nt(S),!0}return S instanceof st&&!y0(S)||(J==="noscript"||J==="noembed")&&N(/<\/no(script|embed)/i,S.innerHTML)?(Nt(S),!0):(Tt&&S.nodeType===3&&(D=S.textContent,D=L(D,gn," "),D=L(D,Hr," "),S.textContent!==D&&(I(z.removed,{element:S.cloneNode()}),S.textContent=D)),Ft("afterSanitizeElements",S,null),!1)},Gc=function(S,D,J){if(M&&(D==="id"||D==="name")&&(J in le||J in g0))return!1;if(!(cr&&!bn[D]&&N(yi,D))){if(!(En&&N(Rr,D))){if(!qe[D]||bn[D]){if(!(Yc(S)&&(ke.tagNameCheck instanceof RegExp&&N(ke.tagNameCheck,S)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(S))&&(ke.attributeNameCheck instanceof RegExp&&N(ke.attributeNameCheck,D)||ke.attributeNameCheck instanceof Function&&ke.attributeNameCheck(D))||D==="is"&&ke.allowCustomizedBuiltInElements&&(ke.tagNameCheck instanceof RegExp&&N(ke.tagNameCheck,J)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(J))))return!1}else if(!de[D]){if(!N(Nr,L(J,yn,""))){if(!((D==="src"||D==="xlink:href"||D==="href")&&S!=="script"&&A(J,"data:")===0&&tt[S])){if(!(Fr&&!N(vi,L(J,yn,"")))){if(J)return!1}}}}}}return!0},Yc=function(S){return S.indexOf("-")>0},Kc=function(S){var D=void 0,J=void 0,Se=void 0,Je=void 0;Ft("beforeSanitizeAttributes",S,null);var Ze=S.attributes;if(!!Ze){var Ye={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:qe};for(Je=Ze.length;Je--;){D=Ze[Je];var Ei=D,ut=Ei.name,Xc=Ei.namespaceURI;if(J=B(D.value),Se=ur(ut),Ye.attrName=Se,Ye.attrValue=J,Ye.keepAttr=!0,Ye.forceKeepAttr=void 0,Ft("uponSanitizeAttribute",S,Ye),J=Ye.attrValue,!Ye.forceKeepAttr&&(Uc(ut,S),!!Ye.keepAttr)){if(N(/\/>/i,J)){Uc(ut,S);continue}Tt&&(J=L(J,gn," "),J=L(J,Hr," "));var E0=ur(S.nodeName);if(!!Gc(E0,Se,J))try{Xc?S.setAttributeNS(Xc,ut,J):S.setAttribute(ut,J),v(z.removed)}catch(Hk){}}}Ft("afterSanitizeAttributes",S,null)}},b0=function re(S){var D=void 0,J=Wc(S);for(Ft("beforeSanitizeShadowDOM",S,null);D=J.nextNode();)Ft("uponSanitizeShadowNode",D,null),!$c(D)&&(D.content instanceof Te&&re(D.content),Kc(D));Ft("afterSanitizeShadowDOM",S,null)};return z.sanitize=function(re,S){var D=void 0,J=void 0,Se=void 0,Je=void 0,Ze=void 0;if($t=!re,$t&&(re="<!-->"),typeof re!="string"&&!wn(re)){if(typeof re.toString!="function")throw O("toString is not a function");if(re=re.toString(),typeof re!="string")throw O("dirty is not a string, aborting")}if(!z.isSupported){if(W($.toStaticHTML)==="object"||typeof $.toStaticHTML=="function"){if(typeof re=="string")return $.toStaticHTML(re);if(wn(re))return $.toStaticHTML(re.outerHTML)}return re}if($e||zo(S),z.removed=[],typeof re=="string"&&(K=!1),K){if(re.nodeName){var Ye=ur(re.nodeName);if(!He[Ye]||lr[Ye])throw O("root node is forbidden and cannot be sanitized in-place")}}else if(re instanceof Re)D=Vc("<!---->"),J=D.ownerDocument.importNode(re,!0),J.nodeType===1&&J.nodeName==="BODY"||J.nodeName==="HTML"?D=J:D.appendChild(J);else{if(!Pe&&!Tt&&!s&&re.indexOf("<")===-1)return et&&m?et.createHTML(re):re;if(D=Vc(re),!D)return Pe?null:m?Or:""}D&&Vt&&Nt(D.firstChild);for(var Ei=Wc(K?re:D);Se=Ei.nextNode();)Se.nodeType===3&&Se===Je||$c(Se)||(Se.content instanceof Te&&b0(Se.content),Kc(Se),Je=Se);if(Je=null,K)return re;if(Pe){if(Ct)for(Ze=zt.call(D.ownerDocument);D.firstChild;)Ze.appendChild(D.firstChild);else Ze=D;return qe.shadowroot&&(Ze=mn.call(Y,Ze,!0)),Ze}var ut=s?D.outerHTML:D.innerHTML;return s&&He["!doctype"]&&D.ownerDocument&&D.ownerDocument.doctype&&D.ownerDocument.doctype.name&&N(at,D.ownerDocument.doctype.name)&&(ut="<!DOCTYPE "+D.ownerDocument.doctype.name+`>
`+ut),Tt&&(ut=L(ut,gn," "),ut=L(ut,Hr," ")),et&&m?et.createHTML(ut):ut},z.setConfig=function(re){zo(re),$e=!0},z.clearConfig=function(){qr=null,$e=!1},z.isValidAttribute=function(re,S,D){qr||zo({});var J=ur(re),Se=ur(S);return Gc(J,Se,D)},z.addHook=function(re,S){typeof S=="function"&&(lt[re]=lt[re]||[],I(lt[re],S))},z.removeHook=function(re){lt[re]&&v(lt[re])},z.removeHooks=function(re){lt[re]&&(lt[re]=[])},z.removeAllHooks=function(){lt={}},z}var We=Fe();return We})});var zm=b((u_,jm)=>{jm.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var Zt=b(yr=>{var Is,_x=[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];yr.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};yr.getSymbolTotalCodewords=function(e){return _x[e]};yr.getBCHDigit=function(t){let e=0;for(;t!==0;)e++,t>>>=1;return e};yr.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');Is=e};yr.isKanjiModeEnabled=function(){return typeof Is!="undefined"};yr.toSJIS=function(e){return Is(e)}});var ro=b(Et=>{Et.L={bit:1};Et.M={bit:0};Et.Q={bit:3};Et.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 Et.L;case"m":case"medium":return Et.M;case"q":case"quartile":return Et.Q;case"h":case"high":return Et.H;default:throw new Error("Unknown EC Level: "+t)}}Et.isValid=function(e){return e&&typeof e.bit!="undefined"&&e.bit>=0&&e.bit<4};Et.from=function(e,r){if(Et.isValid(e))return e;try{return Hx(e)}catch(n){return r}}});var Wm=b((p_,Vm)=>{function Um(){this.buffer=[],this.length=0}Um.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++}};Vm.exports=Um});var Gm=b((m_,$m)=>{function jn(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)}jn.prototype.set=function(t,e,r,n){let i=t*this.size+e;this.data[i]=r,n&&(this.reservedBit[i]=!0)};jn.prototype.get=function(t,e){return this.data[t*this.size+e]};jn.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r};jn.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};$m.exports=jn});var Ym=b(no=>{var Rx=Zt().getSymbolSize;no.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()};no.getPositions=function(e){let r=[],n=no.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 Jm=b(Xm=>{var Nx=Zt().getSymbolSize,Km=7;Xm.getPositions=function(e){let r=Nx(e);return[[0,0],[r-Km,0],[0,r-Km]]}});var Zm=b(Le=>{Le.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var vr={N1:3,N2:3,N3:40,N4:10};Le.isValid=function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7};Le.from=function(e){return Le.isValid(e)?parseInt(e,10):void 0};Le.getPenaltyN1=function(e){let r=e.size,n=0,i=0,o=0,a=null,l=null;for(let c=0;c<r;c++){i=o=0,a=l=null;for(let u=0;u<r;u++){let f=e.get(c,u);f===a?i++:(i>=5&&(n+=vr.N1+(i-5)),a=f,i=1),f=e.get(u,c),f===l?o++:(o>=5&&(n+=vr.N1+(o-5)),l=f,o=1)}i>=5&&(n+=vr.N1+(i-5)),o>=5&&(n+=vr.N1+(o-5))}return n};Le.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*vr.N2};Le.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 l=0;l<r;l++)i=i<<1&2047|e.get(a,l),l>=10&&(i===1488||i===93)&&n++,o=o<<1&2047|e.get(l,a),l>=10&&(o===1488||o===93)&&n++}return n*vr.N3};Le.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)*vr.N4};function Fx(t,e,r){switch(t){case Le.Patterns.PATTERN000:return(e+r)%2===0;case Le.Patterns.PATTERN001:return e%2===0;case Le.Patterns.PATTERN010:return r%3===0;case Le.Patterns.PATTERN011:return(e+r)%3===0;case Le.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2===0;case Le.Patterns.PATTERN101:return e*r%2+e*r%3===0;case Le.Patterns.PATTERN110:return(e*r%2+e*r%3)%2===0;case Le.Patterns.PATTERN111:return(e*r%3+(e+r)%2)%2===0;default:throw new Error("bad maskPattern:"+t)}}Le.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,Fx(e,o,i))};Le.getBestMask=function(e,r){let n=Object.keys(Le.Patterns).length,i=0,o=1/0;for(let a=0;a<n;a++){r(a),Le.applyMask(a,e);let l=Le.getPenaltyN1(e)+Le.getPenaltyN2(e)+Le.getPenaltyN3(e)+Le.getPenaltyN4(e);Le.applyMask(a,e),l<o&&(o=l,i=a)}return i}});var As=b(Ls=>{var Qt=ro(),io=[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],oo=[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 Qt.L:return io[(e-1)*4+0];case Qt.M:return io[(e-1)*4+1];case Qt.Q:return io[(e-1)*4+2];case Qt.H:return io[(e-1)*4+3];default:return}};Ls.getTotalCodewordsCount=function(e,r){switch(r){case Qt.L:return oo[(e-1)*4+0];case Qt.M:return oo[(e-1)*4+1];case Qt.Q:return oo[(e-1)*4+2];case Qt.H:return oo[(e-1)*4+3];default:return}}});var Qm=b(so=>{var zn=new Uint8Array(512),ao=new Uint8Array(256);(function(){let e=1;for(let r=0;r<255;r++)zn[r]=e,ao[e]=r,e<<=1,e&256&&(e^=285);for(let r=255;r<512;r++)zn[r]=zn[r-255]})();so.log=function(e){if(e<1)throw new Error("log("+e+")");return ao[e]};so.exp=function(e){return zn[e]};so.mul=function(e,r){return e===0||r===0?0:zn[ao[e]+ao[r]]}});var eh=b(Un=>{var Ms=Qm();Un.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]^=Ms.mul(e[i],r[o]);return n};Un.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]^=Ms.mul(r[a],i);let o=0;for(;o<n.length&&n[o]===0;)o++;n=n.slice(o)}return n};Un.generateECPolynomial=function(e){let r=new Uint8Array([1]);for(let n=0;n<e;n++)r=Un.mul(r,new Uint8Array([1,Ms.exp(n)]));return r}});var nh=b((w_,rh)=>{var th=eh();function ks(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}ks.prototype.initialize=function(e){this.degree=e,this.genPoly=th.generateECPolynomial(this.degree)};ks.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=th.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};rh.exports=ks});var Ps=b(ih=>{ih.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}});var Os=b(qt=>{var oh="[0-9]+",Dx="[A-Z $%*+\\-./:]+",Vn="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Vn=Vn.replace(/u/g,"\\u");var qx="(?:(?![A-Z0-9 $%*+\\-./:]|"+Vn+`)(?:.|[\r
]))+`;qt.KANJI=new RegExp(Vn,"g");qt.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");qt.BYTE=new RegExp(qx,"g");qt.NUMERIC=new RegExp(oh,"g");qt.ALPHANUMERIC=new RegExp(Dx,"g");var Bx=new RegExp("^"+Vn+"$"),jx=new RegExp("^"+oh+"$"),zx=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");qt.testKanji=function(e){return Bx.test(e)};qt.testNumeric=function(e){return jx.test(e)};qt.testAlphanumeric=function(e){return zx.test(e)}});var er=b(Ne=>{var Ux=Ps(),Cs=Os();Ne.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]};Ne.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]};Ne.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]};Ne.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]};Ne.MIXED={bit:-1};Ne.getCharCountIndicator=function(e,r){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!Ux.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?e.ccBits[0]:r<27?e.ccBits[1]:e.ccBits[2]};Ne.getBestModeForData=function(e){return Cs.testNumeric(e)?Ne.NUMERIC:Cs.testAlphanumeric(e)?Ne.ALPHANUMERIC:Cs.testKanji(e)?Ne.KANJI:Ne.BYTE};Ne.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")};Ne.isValid=function(e){return e&&e.bit&&e.ccBits};function Vx(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return Ne.NUMERIC;case"alphanumeric":return Ne.ALPHANUMERIC;case"kanji":return Ne.KANJI;case"byte":return Ne.BYTE;default:throw new Error("Unknown mode: "+t)}}Ne.from=function(e,r){if(Ne.isValid(e))return e;try{return Vx(e)}catch(n){return r}}});var uh=b(br=>{var lo=Zt(),Wx=As(),ah=ro(),tr=er(),_s=Ps(),lh=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,sh=lo.getBCHDigit(lh);function $x(t,e,r){for(let n=1;n<=40;n++)if(e<=br.getCapacity(n,r,t))return n}function ch(t,e){return tr.getCharCountIndicator(t,e)+4}function Gx(t,e){let r=0;return t.forEach(function(n){r+=ch(n.mode,e)+n.getBitsLength()}),r}function Yx(t,e){for(let r=1;r<=40;r++)if(Gx(t,r)<=br.getCapacity(r,e,tr.MIXED))return r}br.from=function(e,r){return _s.isValid(e)?parseInt(e,10):r};br.getCapacity=function(e,r,n){if(!_s.isValid(e))throw new Error("Invalid QR Code version");typeof n=="undefined"&&(n=tr.BYTE);let i=lo.getSymbolTotalCodewords(e),o=Wx.getTotalCodewordsCount(e,r),a=(i-o)*8;if(n===tr.MIXED)return a;let l=a-ch(n,e);switch(n){case tr.NUMERIC:return Math.floor(l/10*3);case tr.ALPHANUMERIC:return Math.floor(l/11*2);case tr.KANJI:return Math.floor(l/13);case tr.BYTE:default:return Math.floor(l/8)}};br.getBestVersionForData=function(e,r){let n,i=ah.from(r,ah.M);if(Array.isArray(e)){if(e.length>1)return Yx(e,i);if(e.length===0)return 1;n=e[0]}else n=e;return $x(n.mode,n.getLength(),i)};br.getEncodedBits=function(e){if(!_s.isValid(e)||e<7)throw new Error("Invalid QR Code version");let r=e<<12;for(;lo.getBCHDigit(r)-sh>=0;)r^=lh<<lo.getBCHDigit(r)-sh;return e<<12|r}});var mh=b(ph=>{var Hs=Zt(),fh=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,Kx=1<<14|1<<12|1<<10|1<<4|1<<1,dh=Hs.getBCHDigit(fh);ph.getEncodedBits=function(e,r){let n=e.bit<<3|r,i=n<<10;for(;Hs.getBCHDigit(i)-dh>=0;)i^=fh<<Hs.getBCHDigit(i)-dh;return(n<<10|i)^Kx}});var gh=b((A_,hh)=>{var Xx=er();function Gr(t){this.mode=Xx.NUMERIC,this.data=t.toString()}Gr.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};Gr.prototype.getLength=function(){return this.data.length};Gr.prototype.getBitsLength=function(){return Gr.getBitsLength(this.data.length)};Gr.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))};hh.exports=Gr});var vh=b((M_,yh)=>{var Jx=er(),Rs=["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 Yr(t){this.mode=Jx.ALPHANUMERIC,this.data=t}Yr.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};Yr.prototype.getLength=function(){return this.data.length};Yr.prototype.getBitsLength=function(){return Yr.getBitsLength(this.data.length)};Yr.prototype.write=function(e){let r;for(r=0;r+2<=this.data.length;r+=2){let n=Rs.indexOf(this.data[r])*45;n+=Rs.indexOf(this.data[r+1]),e.put(n,11)}this.data.length%2&&e.put(Rs.indexOf(this.data[r]),6)};yh.exports=Yr});var Eh=b((k_,bh)=>{"use strict";bh.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 Th=b((P_,wh)=>{var Zx=Eh(),Qx=er();function Kr(t){this.mode=Qx.BYTE,this.data=new Uint8Array(Zx(t))}Kr.getBitsLength=function(e){return e*8};Kr.prototype.getLength=function(){return this.data.length};Kr.prototype.getBitsLength=function(){return Kr.getBitsLength(this.data.length)};Kr.prototype.write=function(t){for(let e=0,r=this.data.length;e<r;e++)t.put(this.data[e],8)};wh.exports=Kr});var xh=b((O_,Sh)=>{var eI=er(),tI=Zt();function Xr(t){this.mode=eI.KANJI,this.data=t}Xr.getBitsLength=function(e){return e*13};Xr.prototype.getLength=function(){return this.data.length};Xr.prototype.getBitsLength=function(){return Xr.getBitsLength(this.data.length)};Xr.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let r=tI.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)}};Sh.exports=Xr});var Ih=b((C_,Ns)=>{"use strict";var Wn={single_source_shortest_paths:function(t,e,r){var n={},i={};i[e]=0;var o=Wn.PriorityQueue.make();o.push(e,0);for(var a,l,c,u,f,p,h,v,I;!o.empty();){a=o.pop(),l=a.value,u=a.cost,f=t[l]||{};for(c in f)f.hasOwnProperty(c)&&(p=f[c],h=u+p,v=i[c],I=typeof i[c]=="undefined",(I||v>h)&&(i[c]=h,o.push(c,h),n[c]=l))}if(typeof r!="undefined"&&typeof i[r]=="undefined"){var y=["Could not find a path from ",e," to ",r,"."].join("");throw new Error(y)}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=Wn.single_source_shortest_paths(t,e,r);return Wn.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(t){var e=Wn.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 Ns!="undefined"&&(Ns.exports=Wn)});var _h=b(Jr=>{var Ee=er(),Mh=gh(),kh=vh(),Ph=Th(),Oh=xh(),$n=Os(),co=Zt(),rI=Ih();function Lh(t){return unescape(encodeURIComponent(t)).length}function Gn(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 Ch(t){let e=Gn($n.NUMERIC,Ee.NUMERIC,t),r=Gn($n.ALPHANUMERIC,Ee.ALPHANUMERIC,t),n,i;return co.isKanjiModeEnabled()?(n=Gn($n.BYTE,Ee.BYTE,t),i=Gn($n.KANJI,Ee.KANJI,t)):(n=Gn($n.BYTE_KANJI,Ee.BYTE,t),i=[]),e.concat(r,n,i).sort(function(a,l){return a.index-l.index}).map(function(a){return{data:a.data,mode:a.mode,length:a.length}})}function Fs(t,e){switch(e){case Ee.NUMERIC:return Mh.getBitsLength(t);case Ee.ALPHANUMERIC:return kh.getBitsLength(t);case Ee.KANJI:return Oh.getBitsLength(t);case Ee.BYTE:return Ph.getBitsLength(t)}}function nI(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 iI(t){let e=[];for(let r=0;r<t.length;r++){let n=t[r];switch(n.mode){case Ee.NUMERIC:e.push([n,{data:n.data,mode:Ee.ALPHANUMERIC,length:n.length},{data:n.data,mode:Ee.BYTE,length:n.length}]);break;case Ee.ALPHANUMERIC:e.push([n,{data:n.data,mode:Ee.BYTE,length:n.length}]);break;case Ee.KANJI:e.push([n,{data:n.data,mode:Ee.BYTE,length:Lh(n.data)}]);break;case Ee.BYTE:e.push([{data:n.data,mode:Ee.BYTE,length:Lh(n.data)}])}}return e}function oI(t,e){let r={},n={start:{}},i=["start"];for(let o=0;o<t.length;o++){let a=t[o],l=[];for(let c=0;c<a.length;c++){let u=a[c],f=""+o+c;l.push(f),r[f]={node:u,lastCount:0},n[f]={};for(let p=0;p<i.length;p++){let h=i[p];r[h]&&r[h].node.mode===u.mode?(n[h][f]=Fs(r[h].lastCount+u.length,u.mode)-Fs(r[h].lastCount,u.mode),r[h].lastCount+=u.length):(r[h]&&(r[h].lastCount=u.length),n[h][f]=Fs(u.length,u.mode)+4+Ee.getCharCountIndicator(u.mode,e))}}i=l}for(let o=0;o<i.length;o++)n[i[o]].end=0;return{map:n,table:r}}function Ah(t,e){let r,n=Ee.getBestModeForData(t);if(r=Ee.from(e,n),r!==Ee.BYTE&&r.bit<n.bit)throw new Error('"'+t+'" cannot be encoded with mode '+Ee.toString(r)+`.
 Suggested mode is: `+Ee.toString(n));switch(r===Ee.KANJI&&!co.isKanjiModeEnabled()&&(r=Ee.BYTE),r){case Ee.NUMERIC:return new Mh(t);case Ee.ALPHANUMERIC:return new kh(t);case Ee.KANJI:return new Oh(t);case Ee.BYTE:return new Ph(t)}}Jr.fromArray=function(e){return e.reduce(function(r,n){return typeof n=="string"?r.push(Ah(n,null)):n.data&&r.push(Ah(n.data,n.mode)),r},[])};Jr.fromString=function(e,r){let n=Ch(e,co.isKanjiModeEnabled()),i=iI(n),o=oI(i,r),a=rI.find_path(o.map,"start","end"),l=[];for(let c=1;c<a.length-1;c++)l.push(o.table[a[c]].node);return Jr.fromArray(nI(l))};Jr.rawSplit=function(e){return Jr.fromArray(Ch(e,co.isKanjiModeEnabled()))}});var Rh=b(Hh=>{var fo=Zt(),Ds=ro(),aI=Wm(),sI=Gm(),lI=Ym(),cI=Jm(),js=Zm(),zs=As(),uI=nh(),uo=uh(),dI=mh(),fI=er(),qs=_h();function pI(t,e){let r=t.size,n=cI.getPositions(e);for(let i=0;i<n.length;i++){let o=n[i][0],a=n[i][1];for(let l=-1;l<=7;l++)if(!(o+l<=-1||r<=o+l))for(let c=-1;c<=7;c++)a+c<=-1||r<=a+c||(l>=0&&l<=6&&(c===0||c===6)||c>=0&&c<=6&&(l===0||l===6)||l>=2&&l<=4&&c>=2&&c<=4?t.set(o+l,a+c,!0,!0):t.set(o+l,a+c,!1,!0))}}function mI(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 hI(t,e){let r=lI.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 l=-2;l<=2;l++)a===-2||a===2||l===-2||l===2||a===0&&l===0?t.set(i+a,o+l,!0,!0):t.set(i+a,o+l,!1,!0)}}function gI(t,e){let r=t.size,n=uo.getEncodedBits(e),i,o,a;for(let l=0;l<18;l++)i=Math.floor(l/3),o=l%3+r-8-3,a=(n>>l&1)===1,t.set(i,o,a,!0),t.set(o,i,a,!0)}function Bs(t,e,r){let n=t.size,i=dI.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 yI(t,e){let r=t.size,n=-1,i=r-1,o=7,a=0;for(let l=r-1;l>0;l-=2)for(l===6&&l--;;){for(let c=0;c<2;c++)if(!t.isReserved(i,l-c)){let u=!1;a<e.length&&(u=(e[a]>>>o&1)===1),t.set(i,l-c,u),o--,o===-1&&(a++,o=7)}if(i+=n,i<0||r<=i){i-=n,n=-n;break}}}function vI(t,e,r){let n=new aI;r.forEach(function(c){n.put(c.mode.bit,4),n.put(c.getLength(),fI.getCharCountIndicator(c.mode,t)),c.write(n)});let i=fo.getSymbolTotalCodewords(t),o=zs.getTotalCodewordsCount(t,e),a=(i-o)*8;for(n.getLengthInBits()+4<=a&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);let l=(a-n.getLengthInBits())/8;for(let c=0;c<l;c++)n.put(c%2?17:236,8);return bI(n,t,e)}function bI(t,e,r){let n=fo.getSymbolTotalCodewords(e),i=zs.getTotalCodewordsCount(e,r),o=n-i,a=zs.getBlocksCount(e,r),l=n%a,c=a-l,u=Math.floor(n/a),f=Math.floor(o/a),p=f+1,h=u-f,v=new uI(h),I=0,y=new Array(a),T=new Array(a),L=0,A=new Uint8Array(t.buffer);for(let E=0;E<a;E++){let w=E<c?f:p;y[E]=A.slice(I,I+w),T[E]=v.encode(y[E]),I+=w,L=Math.max(L,w)}let B=new Uint8Array(n),N=0,O,x;for(O=0;O<L;O++)for(x=0;x<a;x++)O<y[x].length&&(B[N++]=y[x][O]);for(O=0;O<h;O++)for(x=0;x<a;x++)B[N++]=T[x][O];return B}function EI(t,e,r,n){let i;if(Array.isArray(t))i=qs.fromArray(t);else if(typeof t=="string"){let u=e;if(!u){let f=qs.rawSplit(t);u=uo.getBestVersionForData(f,r)}i=qs.fromString(t,u||40)}else throw new Error("Invalid data");let o=uo.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=vI(e,r,i),l=fo.getSymbolSize(e),c=new sI(l);return pI(c,e),mI(c),hI(c,e),Bs(c,r,0),e>=7&&gI(c,e),yI(c,a),isNaN(n)&&(n=js.getBestMask(c,Bs.bind(null,c,r))),js.applyMask(n,c),Bs(c,r,n),{modules:c,version:e,errorCorrectionLevel:r,maskPattern:n,segments:i}}Hh.create=function(e,r){if(typeof e=="undefined"||e==="")throw new Error("No input text");let n=Ds.M,i,o;return typeof r!="undefined"&&(n=Ds.from(r.errorCorrectionLevel,Ds.M),i=uo.from(r.version),o=js.from(r.maskPattern),r.toSJISFunc&&fo.setToSJISFunction(r.toSJISFunc)),EI(e,i,n,o)}});var Us=b(Er=>{function Nh(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("")}}Er.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:Nh(e.color.dark||"#000000ff"),light:Nh(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}};Er.getScale=function(e,r){return r.width&&r.width>=e+r.margin*2?r.width/(e+r.margin*2):r.scale};Er.getImageWidth=function(e,r){let n=Er.getScale(e,r);return Math.floor((e+r.margin*2)*n)};Er.qrToImageData=function(e,r,n){let i=r.modules.size,o=r.modules.data,a=Er.getScale(i,n),l=Math.floor((i+n.margin*2)*a),c=n.margin*a,u=[n.color.light,n.color.dark];for(let f=0;f<l;f++)for(let p=0;p<l;p++){let h=(f*l+p)*4,v=n.color.light;if(f>=c&&p>=c&&f<l-c&&p<l-c){let I=Math.floor((f-c)/a),y=Math.floor((p-c)/a);v=u[o[I*i+y]?1:0]}e[h++]=v.r,e[h++]=v.g,e[h++]=v.b,e[h]=v.a}}});var Fh=b(po=>{var Vs=Us();function wI(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 TI(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}po.render=function(e,r,n){let i=n,o=r;typeof i=="undefined"&&(!r||!r.getContext)&&(i=r,r=void 0),r||(o=TI()),i=Vs.getOptions(i);let a=Vs.getImageWidth(e.modules.size,i),l=o.getContext("2d"),c=l.createImageData(a,a);return Vs.qrToImageData(c.data,e,i),wI(l,o,a),l.putImageData(c,0,0),o};po.renderToDataURL=function(e,r,n){let i=n;typeof i=="undefined"&&(!r||!r.getContext)&&(i=r,r=void 0),i||(i={});let o=po.render(e,r,i),a=i.type||"image/png",l=i.rendererOpts||{};return o.toDataURL(a,l.quality)}});var Bh=b(qh=>{var SI=Us();function Dh(t,e){let r=t.a/255,n=e+'="'+t.hex+'"';return r<1?n+" "+e+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function Ws(t,e,r){let n=t+e;return typeof r!="undefined"&&(n+=" "+r),n}function xI(t,e,r){let n="",i=0,o=!1,a=0;for(let l=0;l<t.length;l++){let c=Math.floor(l%e),u=Math.floor(l/e);!c&&!o&&(o=!0),t[l]?(a++,l>0&&c>0&&t[l-1]||(n+=o?Ws("M",c+r,.5+u+r):Ws("m",i,0),i=0,o=!1),c+1<e&&t[l+1]||(n+=Ws("h",a),a=0)):i++}return n}qh.render=function(e,r,n){let i=SI.getOptions(r),o=e.modules.size,a=e.modules.data,l=o+i.margin*2,c=i.color.light.a?"<path "+Dh(i.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",u="<path "+Dh(i.color.dark,"stroke")+' d="'+xI(a,o,i.margin)+'"/>',f='viewBox="0 0 '+l+" "+l+'"',p=i.width?'width="'+i.width+'" height="'+i.width+'" ':"",h='<svg xmlns="http://www.w3.org/2000/svg" '+p+f+' shape-rendering="crispEdges">'+c+u+`</svg>
`;return typeof n=="function"&&n(null,h),h}});var zh=b(Yn=>{var II=zm(),$s=Rh(),jh=Fh(),LI=Bh();function Gs(t,e,r,n,i){let o=[].slice.call(arguments,1),a=o.length,l=typeof o[a-1]=="function";if(!l&&!II())throw new Error("Callback required as last argument");if(l){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(c,u){try{let f=$s.create(r,n);c(t(f,e,n))}catch(f){u(f)}})}try{let c=$s.create(r,n);i(null,t(c,e,n))}catch(c){i(c)}}Yn.create=$s.create;Yn.toCanvas=Gs.bind(null,jh.render);Yn.toDataURL=Gs.bind(null,jh.renderToDataURL);Yn.toString=Gs.bind(null,function(t,e,r){return LI.render(t,r)})});var Uh=b((q_,Ks)=>{var Ys=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",l=i.toStringTag||"@@toStringTag";function c(H,R,k){return Object.defineProperty(H,R,{value:k,enumerable:!0,configurable:!0,writable:!0}),H[R]}try{c({},"")}catch(H){c=function(R,k,te){return R[k]=te}}function u(H,R,k,te){var g=R&&R.prototype instanceof T?R:T,d=Object.create(g.prototype),P=new Q(te||[]);return d._invoke=C(H,k,P),d}t.wrap=u;function f(H,R,k){try{return{type:"normal",arg:H.call(R,k)}}catch(te){return{type:"throw",arg:te}}}var p="suspendedStart",h="suspendedYield",v="executing",I="completed",y={};function T(){}function L(){}function A(){}var B={};c(B,o,function(){return this});var N=Object.getPrototypeOf,O=N&&N(N(he([])));O&&O!==e&&r.call(O,o)&&(B=O);var x=A.prototype=T.prototype=Object.create(B);L.prototype=A,c(x,"constructor",A),c(A,"constructor",L),L.displayName=c(A,l,"GeneratorFunction");function E(H){["next","throw","return"].forEach(function(R){c(H,R,function(k){return this._invoke(R,k)})})}t.isGeneratorFunction=function(H){var R=typeof H=="function"&&H.constructor;return R?R===L||(R.displayName||R.name)==="GeneratorFunction":!1},t.mark=function(H){return Object.setPrototypeOf?Object.setPrototypeOf(H,A):(H.__proto__=A,c(H,l,"GeneratorFunction")),H.prototype=Object.create(x),H},t.awrap=function(H){return{__await:H}};function w(H,R){function k(d,P,j,X){var Z=f(H[d],H,P);if(Z.type==="throw")X(Z.arg);else{var we=Z.arg,ye=we.value;return ye&&typeof ye=="object"&&r.call(ye,"__await")?R.resolve(ye.__await).then(function(ve){k("next",ve,j,X)},function(ve){k("throw",ve,j,X)}):R.resolve(ye).then(function(ve){we.value=ve,j(we)},function(ve){return k("throw",ve,j,X)})}}var te;function g(d,P){function j(){return new R(function(X,Z){k(d,P,X,Z)})}return te=te?te.then(j,j):j()}this._invoke=g}E(w.prototype),c(w.prototype,a,function(){return this}),t.AsyncIterator=w,t.async=function(H,R,k,te,g){g===void 0&&(g=Promise);var d=new w(u(H,R,k,te),g);return t.isGeneratorFunction(R)?d:d.next().then(function(P){return P.done?P.value:d.next()})};function C(H,R,k){var te=p;return function(d,P){if(te===v)throw new Error("Generator is already running");if(te===I){if(d==="throw")throw P;return ee()}for(k.method=d,k.arg=P;;){var j=k.delegate;if(j){var X=q(j,k);if(X){if(X===y)continue;return X}}if(k.method==="next")k.sent=k._sent=k.arg;else if(k.method==="throw"){if(te===p)throw te=I,k.arg;k.dispatchException(k.arg)}else k.method==="return"&&k.abrupt("return",k.arg);te=v;var Z=f(H,R,k);if(Z.type==="normal"){if(te=k.done?I:h,Z.arg===y)continue;return{value:Z.arg,done:k.done}}else Z.type==="throw"&&(te=I,k.method="throw",k.arg=Z.arg)}}}function q(H,R){var k=H.iterator[R.method];if(k===n){if(R.delegate=null,R.method==="throw"){if(H.iterator.return&&(R.method="return",R.arg=n,q(H,R),R.method==="throw"))return y;R.method="throw",R.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var te=f(k,H.iterator,R.arg);if(te.type==="throw")return R.method="throw",R.arg=te.arg,R.delegate=null,y;var g=te.arg;if(!g)return R.method="throw",R.arg=new TypeError("iterator result is not an object"),R.delegate=null,y;if(g.done)R[H.resultName]=g.value,R.next=H.nextLoc,R.method!=="return"&&(R.method="next",R.arg=n);else return g;return R.delegate=null,y}E(x),c(x,l,"Generator"),c(x,o,function(){return this}),c(x,"toString",function(){return"[object Generator]"});function U(H){var R={tryLoc:H[0]};1 in H&&(R.catchLoc=H[1]),2 in H&&(R.finallyLoc=H[2],R.afterLoc=H[3]),this.tryEntries.push(R)}function V(H){var R=H.completion||{};R.type="normal",delete R.arg,H.completion=R}function Q(H){this.tryEntries=[{tryLoc:"root"}],H.forEach(U,this),this.reset(!0)}t.keys=function(H){var R=[];for(var k in H)R.push(k);return R.reverse(),function te(){for(;R.length;){var g=R.pop();if(g in H)return te.value=g,te.done=!1,te}return te.done=!0,te}};function he(H){if(H){var R=H[o];if(R)return R.call(H);if(typeof H.next=="function")return H;if(!isNaN(H.length)){var k=-1,te=function g(){for(;++k<H.length;)if(r.call(H,k))return g.value=H[k],g.done=!1,g;return g.value=n,g.done=!0,g};return te.next=te}}return{next:ee}}t.values=he;function ee(){return{value:n,done:!0}}return Q.prototype={constructor:Q,reset:function(H){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(V),!H)for(var R in this)R.charAt(0)==="t"&&r.call(this,R)&&!isNaN(+R.slice(1))&&(this[R]=n)},stop:function(){this.done=!0;var H=this.tryEntries[0],R=H.completion;if(R.type==="throw")throw R.arg;return this.rval},dispatchException:function(H){if(this.done)throw H;var R=this;function k(X,Z){return d.type="throw",d.arg=H,R.next=X,Z&&(R.method="next",R.arg=n),!!Z}for(var te=this.tryEntries.length-1;te>=0;--te){var g=this.tryEntries[te],d=g.completion;if(g.tryLoc==="root")return k("end");if(g.tryLoc<=this.prev){var P=r.call(g,"catchLoc"),j=r.call(g,"finallyLoc");if(P&&j){if(this.prev<g.catchLoc)return k(g.catchLoc,!0);if(this.prev<g.finallyLoc)return k(g.finallyLoc)}else if(P){if(this.prev<g.catchLoc)return k(g.catchLoc,!0)}else if(j){if(this.prev<g.finallyLoc)return k(g.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(H,R){for(var k=this.tryEntries.length-1;k>=0;--k){var te=this.tryEntries[k];if(te.tryLoc<=this.prev&&r.call(te,"finallyLoc")&&this.prev<te.finallyLoc){var g=te;break}}g&&(H==="break"||H==="continue")&&g.tryLoc<=R&&R<=g.finallyLoc&&(g=null);var d=g?g.completion:{};return d.type=H,d.arg=R,g?(this.method="next",this.next=g.finallyLoc,y):this.complete(d)},complete:function(H,R){if(H.type==="throw")throw H.arg;return H.type==="break"||H.type==="continue"?this.next=H.arg:H.type==="return"?(this.rval=this.arg=H.arg,this.method="return",this.next="end"):H.type==="normal"&&R&&(this.next=R),y},finish:function(H){for(var R=this.tryEntries.length-1;R>=0;--R){var k=this.tryEntries[R];if(k.finallyLoc===H)return this.complete(k.completion,k.afterLoc),V(k),y}},catch:function(H){for(var R=this.tryEntries.length-1;R>=0;--R){var k=this.tryEntries[R];if(k.tryLoc===H){var te=k.completion;if(te.type==="throw"){var g=te.arg;V(k)}return g}}throw new Error("illegal catch attempt")},delegateYield:function(H,R,k){return this.delegate={iterator:he(H),resultName:R,nextLoc:k},this.method==="next"&&(this.arg=n),y}},t}(typeof Ks=="object"?Ks.exports:{});try{regeneratorRuntime=Ys}catch(t){typeof globalThis=="object"?globalThis.regeneratorRuntime=Ys:Function("r","regeneratorRuntime = r")(Ys)}});var sg=b((ag,vo)=>{(function(t,e){typeof vo=="object"&&vo.exports?vo.exports=e():function r(){document&&document.body?t.zenscroll=e():setTimeout(r,9)}()})(ag,function(){"use strict";var t=function(c){return c&&"getComputedStyle"in window&&window.getComputedStyle(c)["scroll-behavior"]==="smooth"};if(typeof window=="undefined"||!("document"in window))return{};var e=function(c,u,f){u=u||999,!f&&f!==0&&(f=9);var p,h=function(N){p=N},v=function(){clearTimeout(p),h(0)},I=function(N){return Math.max(0,c.getTopOf(N)-f)},y=function(N,O,x){if(v(),O===0||O&&O<0||t(c.body))c.toY(N),x&&x();else{var E=c.getY(),w=Math.max(0,N)-E,C=new Date().getTime();O=O||Math.min(Math.abs(w),u),function q(){h(setTimeout(function(){var U=Math.min(1,(new Date().getTime()-C)/O),V=Math.max(0,Math.floor(E+w*(U<.5?2*U*U:U*(4-U*2)-1)));c.toY(V),U<1&&c.getHeight()+V<c.body.scrollHeight?q():(setTimeout(v,99),x&&x())},9))}()}},T=function(N,O,x){y(I(N),O,x)},L=function(N,O,x){var E=N.getBoundingClientRect().height,w=c.getTopOf(N)+E,C=c.getHeight(),q=c.getY(),U=q+C;I(N)<q||E+f>C?T(N,O,x):w+f>U?y(w-C+f,O,x):x&&x()},A=function(N,O,x,E){y(Math.max(0,c.getTopOf(N)-c.getHeight()/2+(x||N.getBoundingClientRect().height/2)),O,E)},B=function(N,O){return(N===0||N)&&(u=N),(O===0||O)&&(f=O),{defaultDuration:u,edgeOffset:f}};return{setup:B,to:T,toY:y,intoView:L,center:A,stop:v,moving:function(){return!!p},getY:c.getY,getTopOf:c.getTopOf}},r=document.documentElement,n=function(){return window.scrollY||r.scrollTop},i=e({body:document.scrollingElement||document.body,toY:function(c){window.scrollTo(0,c)},getY:n,getHeight:function(){return window.innerHeight||r.clientHeight},getTopOf:function(c){return c.getBoundingClientRect().top+n()-r.offsetTop}});if(i.createScroller=function(c,u,f){return e({body:c,toY:function(p){c.scrollTop=p},getY:function(){return c.scrollTop},getHeight:function(){return Math.min(c.clientHeight,window.innerHeight||r.clientHeight)},getTopOf:function(p){return p.offsetTop}},u,f)},"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(c){c.state&&"zenscrollY"in c.state&&i.toY(c.state.zenscrollY)},!1)),window.location.hash&&setTimeout(function(){var c=i.setup().edgeOffset;if(c){var u=document.getElementById(window.location.href.split("#")[1]);if(u){var f=Math.max(0,i.getTopOf(u)-c),p=i.getY()-f;0<=p&&p<9&&window.scrollTo(0,f)}}},9)},!1);var l=new RegExp("(^|\\s)noZensmooth(\\s|$)");window.addEventListener("click",function(c){for(var u=c.target;u&&u.tagName!=="A";)u=u.parentNode;if(!(!u||c.which!==1||c.shiftKey||c.metaKey||c.ctrlKey||c.altKey)){if(a){var f=history.state&&typeof history.state=="object"?history.state:{};f.zenscrollY=i.getY();try{history.replaceState(f,"")}catch(T){}}var p=u.getAttribute("href")||"";if(p.indexOf("#")===0&&!l.test(u.className)){var h=0,v=document.getElementById(p.substring(1));if(p!=="#"){if(!v)return;h=i.getTopOf(v)}c.preventDefault();var I=function(){window.location=p},y=i.setup().edgeOffset;y&&(h=Math.max(0,h-y),o&&(I=function(){history.pushState({},"",p)})),i.toY(h,null,I)}}},!1)}return i})});var ml=b((fR,pg)=>{"use strict";var aL=pg.exports={};aL.forEach=function(t,e){for(var r=0;r<t.length;r++){var n=e(t[r]);if(n)return n}}});var hg=b((pR,mg)=>{"use strict";mg.exports=function(t){var e=t.stateHandler.getState;function r(a){var l=e(a);return l&&!!l.isDetectable}function n(a){e(a).isDetectable=!0}function i(a){return!!e(a).busy}function o(a,l){e(a).busy=!!l}return{isDetectable:r,markAsDetectable:n,isBusy:i,markBusy:o}}});var yg=b((mR,gg)=>{"use strict";gg.exports=function(t){var e={};function r(a){var l=t.get(a);return l===void 0?[]:e[l]||[]}function n(a,l){var c=t.get(a);e[c]||(e[c]=[]),e[c].push(l)}function i(a,l){for(var c=r(a),u=0,f=c.length;u<f;++u)if(c[u]===l){c.splice(u,1);break}}function o(a){var l=r(a);!l||(l.length=0)}return{get:r,add:n,removeListener:i,removeAllListeners:o}}});var bg=b((hR,vg)=>{"use strict";vg.exports=function(){var t=1;function e(){return t++}return{generate:e}}});var wg=b((gR,Eg)=>{"use strict";Eg.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 l=e.generate();return a.id=l,l}return{get:n,set:i}}});var Sg=b((yR,Tg)=>{"use strict";Tg.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 l=console[o];if(l.apply)l.apply(console,arguments);else for(var c=0;c<arguments.length;c++)l(arguments[c])}};n(r,"log"),n(r,"warn"),n(r,"error")}return r}});var hl=b((vR,Ig)=>{"use strict";var xg=Ig.exports={};xg.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};xg.isLegacyOpera=function(){return!!window.opera}});var Ag=b((bR,Lg)=>{"use strict";var sL=Lg.exports={};sL.getOption=lL;function lL(t,e,r){var n=t[e];return n==null&&r!==void 0?r:n}});var Og=b((ER,Pg)=>{"use strict";var Mg=Ag();Pg.exports=function(e){e=e||{};var r=e.reporter,n=Mg.getOption(e,"async",!0),i=Mg.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=kg(),a,l=!1;function c(y,T){!l&&i&&n&&o.size()===0&&p(),o.add(y,T)}function u(){for(l=!0;o.size();){var y=o;o=kg(),y.process()}l=!1}function f(y){l||(y===void 0&&(y=n),a&&(v(a),a=null),y?p():u())}function p(){a=I(u)}function h(){o={},batchSize=0,topLevel=0,bottomLevel=0}function v(y){var T=clearTimeout;return T(y)}function I(y){var T=function(L){return setTimeout(L,0)};return T(y)}return{add:c,force:f}};function kg(){var t={},e=0,r=0,n=0;function i(l,c){c||(c=l,l=0),l>r?r=l:l<n&&(n=l),t[l]||(t[l]=[]),t[l].push(c),e++}function o(){for(var l=n;l<=r;l++)for(var c=t[l],u=0;u<c.length;u++){var f=c[u];f()}}function a(){return e}return{add:i,process:o,size:a}}});var Hg=b((wR,_g)=>{"use strict";var gl="_erd";function cL(t){return t[gl]={},Cg(t)}function Cg(t){return t[gl]}function uL(t){delete t[gl]}_g.exports={initState:cL,getState:Cg,cleanState:uL}});var Ng=b((TR,Rg)=>{"use strict";var ti=hl();Rg.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(u,f){function p(){f(u)}if(ti.isIE(8))n(u).object={proxy:p},u.attachEvent("onresize",p);else{var h=l(u);if(!h)throw new Error("Element is not detectable by this strategy.");h.contentDocument.defaultView.addEventListener("resize",p)}}function o(u){var f=t.important?" !important; ":"; ";return(u.join(f)+f).trim()}function a(u,f,p){p||(p=f,f=u,u=null),u=u||{};var h=u.debug;function v(I,y){var T=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"]),L=!1,A=window.getComputedStyle(I),B=I.offsetWidth,N=I.offsetHeight;n(I).startSize={width:B,height:N};function O(){function x(){if(A.position==="static"){I.style.setProperty("position","relative",u.important?"important":"");var C=function(q,U,V,Q){function he(H){return H.replace(/[^-\d\.]/g,"")}var ee=V[Q];ee!=="auto"&&he(ee)!=="0"&&(q.warn("An element that is positioned static has style."+Q+"="+ee+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+Q+" will be set to 0. Element: ",U),U.style.setProperty(Q,"0",u.important?"important":""))};C(e,I,A,"top"),C(e,I,A,"right"),C(e,I,A,"bottom"),C(e,I,A,"left")}}function E(){L||x();function C(U,V){if(!U.contentDocument){var Q=n(U);Q.checkForObjectDocumentTimeoutId&&window.clearTimeout(Q.checkForObjectDocumentTimeoutId),Q.checkForObjectDocumentTimeoutId=setTimeout(function(){Q.checkForObjectDocumentTimeoutId=0,C(U,V)},100);return}V(U.contentDocument)}var q=this;C(q,function(V){y(I)})}A.position!==""&&(x(A),L=!0);var w=document.createElement("object");w.style.cssText=T,w.tabIndex=-1,w.type="text/html",w.setAttribute("aria-hidden","true"),w.onload=E,ti.isIE()||(w.data="about:blank"),n(I)&&(I.appendChild(w),n(I).object=w,ti.isIE()&&(w.data="about:blank"))}r?r.add(O):O()}ti.isIE(8)?p(f):v(f,p)}function l(u){return n(u).object}function c(u){if(!!n(u)){var f=l(u);!f||(ti.isIE(8)?u.detachEvent("onresize",f.proxy):u.removeChild(f),n(u).checkForObjectDocumentTimeoutId&&window.clearTimeout(n(u).checkForObjectDocumentTimeoutId),delete n(u).object)}}return{makeDetectable:a,addListener:i,uninstall:c}}});var Dg=b((SR,Fg)=>{"use strict";var dL=ml().forEach;Fg.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=p(),l="erd_scroll_detection_scrollbar_style",c="erd_scroll_detection_container";function u(O){h(O,l,c)}u(window.document);function f(O){var x=t.important?" !important; ":"; ";return(O.join(x)+x).trim()}function p(){var O=500,x=500,E=document.createElement("div");E.style.cssText=f(["position: absolute","width: "+O*2+"px","height: "+x*2+"px","visibility: hidden","margin: 0","padding: 0"]);var w=document.createElement("div");w.style.cssText=f(["position: absolute","width: "+O+"px","height: "+x+"px","overflow: scroll","visibility: none","top: "+-O*3+"px","left: "+-x*3+"px","visibility: hidden","margin: 0","padding: 0"]),w.appendChild(E),document.body.insertBefore(w,document.body.firstChild);var C=O-w.clientWidth,q=x-w.clientHeight;return document.body.removeChild(w),{width:C,height:q}}function h(O,x,E){function w(V,Q){Q=Q||function(ee){O.head.appendChild(ee)};var he=O.createElement("style");return he.innerHTML=V,he.id=x,Q(he),he}if(!O.getElementById(x)){var C=E+"_animation",q=E+"_animation_active",U=`/* Created by the element-resize-detector library. */
`;U+="."+E+" > div::-webkit-scrollbar { "+f(["display: none"])+` }

`,U+="."+q+" { "+f(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+C,"animation-name: "+C])+` }
`,U+="@-webkit-keyframes "+C+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
`,U+="@keyframes "+C+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",w(U)}}function v(O){O.className+=" "+c+"_animation_active"}function I(O,x,E){if(O.addEventListener)O.addEventListener(x,E);else if(O.attachEvent)O.attachEvent("on"+x,E);else return e.error("[scroll] Don't know how to add event listeners.")}function y(O,x,E){if(O.removeEventListener)O.removeEventListener(x,E);else if(O.detachEvent)O.detachEvent("on"+x,E);else return e.error("[scroll] Don't know how to remove event listeners.")}function T(O){return n(O).container.childNodes[0].childNodes[0].childNodes[0]}function L(O){return n(O).container.childNodes[0].childNodes[0].childNodes[1]}function A(O,x){var E=n(O).listeners;if(!E.push)throw new Error("Cannot add listener to an element that is not detectable.");n(O).listeners.push(x)}function B(O,x,E){E||(E=x,x=O,O=null),O=O||{};function w(){if(O.debug){var W=Array.prototype.slice.call(arguments);if(W.unshift(o.get(x),"Scroll: "),e.log.apply)e.log.apply(null,W);else for(var ne=0;ne<W.length;ne++)e.log(W[ne])}}function C(W){function ne(oe){var Ve=oe.getRootNode&&oe.getRootNode().contains(oe);return oe===oe.ownerDocument.body||oe.ownerDocument.body.contains(oe)||Ve}return!ne(W)||window.getComputedStyle(W)===null}function q(W){var ne=n(W).container.childNodes[0],oe=window.getComputedStyle(ne);return!oe.width||oe.width.indexOf("px")===-1}function U(){var W=window.getComputedStyle(x),ne={};return ne.position=W.position,ne.width=x.offsetWidth,ne.height=x.offsetHeight,ne.top=W.top,ne.right=W.right,ne.bottom=W.bottom,ne.left=W.left,ne.widthCSS=W.width,ne.heightCSS=W.height,ne}function V(){var W=U();n(x).startSize={width:W.width,height:W.height},w("Element start size",n(x).startSize)}function Q(){n(x).listeners=[]}function he(){if(w("storeStyle invoked."),!n(x)){w("Aborting because element has been uninstalled");return}var W=U();n(x).style=W}function ee(W,ne,oe){n(W).lastWidth=ne,n(W).lastHeight=oe}function H(W){return T(W).childNodes[0]}function R(){return 2*a.width+1}function k(){return 2*a.height+1}function te(W){return W+10+R()}function g(W){return W+10+k()}function d(W){return W*2+R()}function P(W){return W*2+k()}function j(W,ne,oe){var Ve=T(W),Fe=L(W),We=te(ne),$=g(oe),z=d(ne),Y=P(oe);Ve.scrollLeft=We,Ve.scrollTop=$,Fe.scrollLeft=z,Fe.scrollTop=Y}function X(){var W=n(x).container;if(!W){W=document.createElement("div"),W.className=c,W.style.cssText=f(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),n(x).container=W,v(W),x.appendChild(W);var ne=function(){n(x).onRendered&&n(x).onRendered()};I(W,"animationstart",ne),n(x).onAnimationStart=ne}return W}function Z(){function W(){var xe=n(x).style;if(xe.position==="static"){x.style.setProperty("position","relative",O.important?"important":"");var _e=function(vt,pt,sr,De){function mt(Or){return Or.replace(/[^-\d\.]/g,"")}var et=sr[De];et!=="auto"&&mt(et)!=="0"&&(vt.warn("An element that is positioned static has style."+De+"="+et+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+De+" will be set to 0. Element: ",pt),pt.style[De]=0)};_e(e,x,xe,"top"),_e(e,x,xe,"right"),_e(e,x,xe,"bottom"),_e(e,x,xe,"left")}}function ne(xe,_e,vt,pt){return xe=xe?xe+"px":"0",_e=_e?_e+"px":"0",vt=vt?vt+"px":"0",pt=pt?pt+"px":"0",["left: "+xe,"top: "+_e,"right: "+pt,"bottom: "+vt]}if(w("Injecting elements"),!n(x)){w("Aborting because element has been uninstalled");return}W();var oe=n(x).container;oe||(oe=X());var Ve=a.width,Fe=a.height,We=f(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),$=f(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(ne(-(1+Ve),-(1+Fe),-Fe,-Ve))),z=f(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),Y=f(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),le=f(["position: absolute","left: 0","top: 0"]),Te=f(["position: absolute","width: 200%","height: 200%"]),Xe=document.createElement("div"),Re=document.createElement("div"),st=document.createElement("div"),jt=document.createElement("div"),wt=document.createElement("div"),or=document.createElement("div");Xe.dir="ltr",Xe.style.cssText=We,Xe.className=c,Re.className=c,Re.style.cssText=$,st.style.cssText=z,jt.style.cssText=le,wt.style.cssText=Y,or.style.cssText=Te,st.appendChild(jt),wt.appendChild(or),Re.appendChild(st),Re.appendChild(wt),Xe.appendChild(Re),oe.appendChild(Xe);function ar(){var xe=n(x);xe&&xe.onExpand?xe.onExpand():w("Aborting expand scroll handler: element has been uninstalled")}function Pr(){var xe=n(x);xe&&xe.onShrink?xe.onShrink():w("Aborting shrink scroll handler: element has been uninstalled")}I(st,"scroll",ar),I(wt,"scroll",Pr),n(x).onExpandScroll=ar,n(x).onShrinkScroll=Pr}function we(){function W(z,Y,le){var Te=H(z),Xe=te(Y),Re=g(le);Te.style.setProperty("width",Xe+"px",O.important?"important":""),Te.style.setProperty("height",Re+"px",O.important?"important":"")}function ne(z){var Y=x.offsetWidth,le=x.offsetHeight,Te=Y!==n(x).lastWidth||le!==n(x).lastHeight;w("Storing current size",Y,le),ee(x,Y,le),r.add(0,function(){if(!!Te){if(!n(x)){w("Aborting because element has been uninstalled");return}if(!oe()){w("Aborting because element container has not been initialized");return}if(O.debug){var Re=x.offsetWidth,st=x.offsetHeight;(Re!==Y||st!==le)&&e.warn(o.get(x),"Scroll: Size changed before updating detector elements.")}W(x,Y,le)}}),r.add(1,function(){if(!n(x)){w("Aborting because element has been uninstalled");return}if(!oe()){w("Aborting because element container has not been initialized");return}j(x,Y,le)}),Te&&z&&r.add(2,function(){if(!n(x)){w("Aborting because element has been uninstalled");return}if(!oe()){w("Aborting because element container has not been initialized");return}z()})}function oe(){return!!n(x).container}function Ve(){function z(){return n(x).lastNotifiedWidth===void 0}w("notifyListenersIfNeeded invoked");var Y=n(x);if(z()&&Y.lastWidth===Y.startSize.width&&Y.lastHeight===Y.startSize.height)return w("Not notifying: Size is the same as the start size, and there has been no notification yet.");if(Y.lastWidth===Y.lastNotifiedWidth&&Y.lastHeight===Y.lastNotifiedHeight)return w("Not notifying: Size already notified");w("Current size not notified, notifying..."),Y.lastNotifiedWidth=Y.lastWidth,Y.lastNotifiedHeight=Y.lastHeight,dL(n(x).listeners,function(le){le(x)})}function Fe(){if(w("startanimation triggered."),q(x)){w("Ignoring since element is still unrendered...");return}w("Element rendered.");var z=T(x),Y=L(x);(z.scrollLeft===0||z.scrollTop===0||Y.scrollLeft===0||Y.scrollTop===0)&&(w("Scrollbars out of sync. Updating detector elements..."),ne(Ve))}function We(){if(w("Scroll detected."),q(x)){w("Scroll event fired while unrendered. Ignoring...");return}ne(Ve)}if(w("registerListenersAndPositionElements invoked."),!n(x)){w("Aborting because element has been uninstalled");return}n(x).onRendered=Fe,n(x).onExpand=We,n(x).onShrink=We;var $=n(x).style;W(x,$.width,$.height)}function ye(){if(w("finalizeDomMutation invoked."),!n(x)){w("Aborting because element has been uninstalled");return}var W=n(x).style;ee(x,W.width,W.height),j(x,W.width,W.height)}function ve(){E(x)}function at(){w("Installing..."),Q(),V(),r.add(0,he),r.add(1,Z),r.add(2,we),r.add(3,ye),r.add(4,ve)}w("Making detectable..."),C(x)?(w("Element is detached"),X(),w("Waiting until element is attached..."),n(x).onRendered=function(){w("Element is now attached"),at()}):at()}function N(O){var x=n(O);!x||(x.onExpandScroll&&y(T(O),"scroll",x.onExpandScroll),x.onShrinkScroll&&y(L(O),"scroll",x.onShrinkScroll),x.onAnimationStart&&y(x.container,"animationstart",x.onAnimationStart),x.container&&O.removeChild(x.container))}return{makeDetectable:B,addListener:A,uninstall:N,initDocument:u}}});var Vg=b((xR,Ug)=>{"use strict";var ri=ml().forEach,fL=hg(),pL=yg(),mL=bg(),hL=wg(),gL=Sg(),qg=hl(),yL=Og(),rr=Hg(),vL=Ng(),bL=Dg();function Bg(t){return Array.isArray(t)||t.length!==void 0}function jg(t){if(Array.isArray(t))return t;var e=[];return ri(t,function(r){e.push(r)}),e}function zg(t){return t&&t.nodeType===1}Ug.exports=function(t){t=t||{};var e;if(t.idHandler)e={get:function(A){return t.idHandler.get(A,!0)},set:t.idHandler.set};else{var r=mL(),n=hL({idGenerator:r,stateHandler:rr});e=n}var i=t.reporter;if(!i){var o=i===!1;i=gL(o)}var a=nr(t,"batchProcessor",yL({reporter:i})),l={};l.callOnAdd=!!nr(t,"callOnAdd",!0),l.debug=!!nr(t,"debug",!1);var c=pL(e),u=fL({stateHandler:rr}),f,p=nr(t,"strategy","object"),h=nr(t,"important",!1),v={reporter:i,batchProcessor:a,stateHandler:rr,idHandler:e,important:h};if(p==="scroll"&&(qg.isLegacyOpera()?(i.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),p="object"):qg.isIE(9)&&(i.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),p="object")),p==="scroll")f=bL(v);else if(p==="object")f=vL(v);else throw new Error("Invalid strategy name: "+p);var I={};function y(A,B,N){function O(U){var V=c.get(U);ri(V,function(he){he(U)})}function x(U,V,Q){c.add(V,Q),U&&Q(V)}if(N||(N=B,B=A,A={}),!B)throw new Error("At least one element required.");if(!N)throw new Error("Listener required.");if(zg(B))B=[B];else if(Bg(B))B=jg(B);else return i.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");var E=0,w=nr(A,"callOnAdd",l.callOnAdd),C=nr(A,"onReady",function(){}),q=nr(A,"debug",l.debug);ri(B,function(V){rr.getState(V)||(rr.initState(V),e.set(V));var Q=e.get(V);if(q&&i.log("Attaching listener to element",Q,V),!u.isDetectable(V)){if(q&&i.log(Q,"Not detectable."),u.isBusy(V)){q&&i.log(Q,"System busy making it detectable"),x(w,V,N),I[Q]=I[Q]||[],I[Q].push(function(){E++,E===B.length&&C()});return}return q&&i.log(Q,"Making detectable..."),u.markBusy(V,!0),f.makeDetectable({debug:q,important:h},V,function(ee){if(q&&i.log(Q,"onElementDetectable"),rr.getState(ee)){u.markAsDetectable(ee),u.markBusy(ee,!1),f.addListener(ee,O),x(w,ee,N);var H=rr.getState(ee);if(H&&H.startSize){var R=ee.offsetWidth,k=ee.offsetHeight;(H.startSize.width!==R||H.startSize.height!==k)&&O(ee)}I[Q]&&ri(I[Q],function(te){te()})}else q&&i.log(Q,"Element uninstalled before being detectable.");delete I[Q],E++,E===B.length&&C()})}q&&i.log(Q,"Already detecable, adding listener."),x(w,V,N),E++}),E===B.length&&C()}function T(A){if(!A)return i.error("At least one element is required.");if(zg(A))A=[A];else if(Bg(A))A=jg(A);else return i.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");ri(A,function(B){c.removeAllListeners(B),f.uninstall(B),rr.cleanState(B)})}function L(A){f.initDocument&&f.initDocument(A)}return{listenTo:y,removeListener:c.removeListener,removeAllListeners:c.removeAllListeners,uninstall:T,initDocument:L}};function nr(t,e,r){var n=t[e];return n==null&&r!==void 0?r:n}});var Eo=b((GR,Xg)=>{Xg.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 _l=b((GN,cy)=>{"use strict";var ly=Object.prototype.toString;cy.exports=function(e){var r=ly.call(e),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&ly.call(e.callee)==="[object Function]"),n}});var vy=b((YN,yy)=>{"use strict";var gy;Object.keys||(si=Object.prototype.hasOwnProperty,Hl=Object.prototype.toString,uy=_l(),Rl=Object.prototype.propertyIsEnumerable,dy=!Rl.call({toString:null},"toString"),fy=Rl.call(function(){},"prototype"),li=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],To=function(t){var e=t.constructor;return e&&e.prototype===t},py={$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},my=function(){if(typeof window=="undefined")return!1;for(var t in window)try{if(!py["$"+t]&&si.call(window,t)&&window[t]!==null&&typeof window[t]=="object")try{To(window[t])}catch(e){return!0}}catch(e){return!0}return!1}(),hy=function(t){if(typeof window=="undefined"||!my)return To(t);try{return To(t)}catch(e){return!1}},gy=function(e){var r=e!==null&&typeof e=="object",n=Hl.call(e)==="[object Function]",i=uy(e),o=r&&Hl.call(e)==="[object String]",a=[];if(!r&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var l=fy&&n;if(o&&e.length>0&&!si.call(e,0))for(var c=0;c<e.length;++c)a.push(String(c));if(i&&e.length>0)for(var u=0;u<e.length;++u)a.push(String(u));else for(var f in e)!(l&&f==="prototype")&&si.call(e,f)&&a.push(String(f));if(dy)for(var p=hy(e),h=0;h<li.length;++h)!(p&&li[h]==="constructor")&&si.call(e,li[h])&&a.push(li[h]);return a});var si,Hl,uy,Rl,dy,fy,li,To,py,my,hy;yy.exports=gy});var Nl=b((KN,wy)=>{"use strict";var nA=Array.prototype.slice,iA=_l(),by=Object.keys,So=by?function(e){return by(e)}:vy(),Ey=Object.keys;So.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 iA(n)?Ey(nA.call(n)):Ey(n)})}else Object.keys=So;return Object.keys||So};wy.exports=So});var Fl=b((XN,Ty)=>{"use strict";Ty.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 xo=b((JN,Sy)=>{"use strict";var oA=Fl();Sy.exports=function(){return oA()&&!!Symbol.toStringTag}});var Ly=b((ZN,Iy)=>{"use strict";var xy=typeof Symbol!="undefined"&&Symbol,aA=Fl();Iy.exports=function(){return typeof xy!="function"||typeof Symbol!="function"||typeof xy("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:aA()}});var My=b((QN,Ay)=>{"use strict";var sA="Function.prototype.bind called on incompatible ",Dl=Array.prototype.slice,lA=Object.prototype.toString,cA="[object Function]";Ay.exports=function(e){var r=this;if(typeof r!="function"||lA.call(r)!==cA)throw new TypeError(sA+r);for(var n=Dl.call(arguments,1),i,o=function(){if(this instanceof i){var f=r.apply(this,n.concat(Dl.call(arguments)));return Object(f)===f?f:this}else return r.apply(e,n.concat(Dl.call(arguments)))},a=Math.max(0,r.length-n.length),l=[],c=0;c<a;c++)l.push("$"+c);if(i=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var u=function(){};u.prototype=r.prototype,i.prototype=new u,u.prototype=null}return i}});var Io=b((eF,ky)=>{"use strict";var uA=My();ky.exports=Function.prototype.bind||uA});var Oy=b((tF,Py)=>{"use strict";var dA=Io();Py.exports=dA.call(Function.call,Object.prototype.hasOwnProperty)});var jl=b((rF,Ry)=>{"use strict";var ge,ci=SyntaxError,Hy=Function,nn=TypeError,ql=function(t){try{return Hy('"use strict"; return ('+t+").constructor;")()}catch(e){}},Tr=Object.getOwnPropertyDescriptor;if(Tr)try{Tr({},"")}catch(t){Tr=null}var Bl=function(){throw new nn},fA=Tr?function(){try{return arguments.callee,Bl}catch(t){try{return Tr(arguments,"callee").get}catch(e){return Bl}}}():Bl,tn=Ly()(),ir=Object.getPrototypeOf||function(t){return t.__proto__},rn={},pA=typeof Uint8Array=="undefined"?ge:ir(Uint8Array),on={"%AggregateError%":typeof AggregateError=="undefined"?ge:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?ge:ArrayBuffer,"%ArrayIteratorPrototype%":tn?ir([][Symbol.iterator]()):ge,"%AsyncFromSyncIteratorPrototype%":ge,"%AsyncFunction%":rn,"%AsyncGenerator%":rn,"%AsyncGeneratorFunction%":rn,"%AsyncIteratorPrototype%":rn,"%Atomics%":typeof Atomics=="undefined"?ge:Atomics,"%BigInt%":typeof BigInt=="undefined"?ge:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?ge:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?ge:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?ge:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?ge:FinalizationRegistry,"%Function%":Hy,"%GeneratorFunction%":rn,"%Int8Array%":typeof Int8Array=="undefined"?ge:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?ge:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?ge:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":tn?ir(ir([][Symbol.iterator]())):ge,"%JSON%":typeof JSON=="object"?JSON:ge,"%Map%":typeof Map=="undefined"?ge:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!tn?ge:ir(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?ge:Promise,"%Proxy%":typeof Proxy=="undefined"?ge:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?ge:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?ge:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!tn?ge:ir(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?ge:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":tn?ir(""[Symbol.iterator]()):ge,"%Symbol%":tn?Symbol:ge,"%SyntaxError%":ci,"%ThrowTypeError%":fA,"%TypedArray%":pA,"%TypeError%":nn,"%Uint8Array%":typeof Uint8Array=="undefined"?ge:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?ge:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?ge:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?ge:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?ge:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?ge:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?ge:WeakSet},mA=function t(e){var r;if(e==="%AsyncFunction%")r=ql("async function () {}");else if(e==="%GeneratorFunction%")r=ql("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=ql("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&(r=ir(i.prototype))}return on[e]=r,r},Cy={"%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"]},Mo=Io(),Lo=Oy(),hA=Mo.call(Function.call,Array.prototype.concat),gA=Mo.call(Function.apply,Array.prototype.splice),_y=Mo.call(Function.call,String.prototype.replace),Ao=Mo.call(Function.call,String.prototype.slice),yA=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,vA=/\\(\\)?/g,bA=function(e){var r=Ao(e,0,1),n=Ao(e,-1);if(r==="%"&&n!=="%")throw new ci("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new ci("invalid intrinsic syntax, expected opening `%`");var i=[];return _y(e,yA,function(o,a,l,c){i[i.length]=l?_y(c,vA,"$1"):a||o}),i},EA=function(e,r){var n=e,i;if(Lo(Cy,n)&&(i=Cy[n],n="%"+i[0]+"%"),Lo(on,n)){var o=on[n];if(o===rn&&(o=mA(n)),typeof o=="undefined"&&!r)throw new nn("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new ci("intrinsic "+e+" does not exist!")};Ry.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new nn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new nn('"allowMissing" argument must be a boolean');var n=bA(e),i=n.length>0?n[0]:"",o=EA("%"+i+"%",r),a=o.name,l=o.value,c=!1,u=o.alias;u&&(i=u[0],gA(n,hA([0,1],u)));for(var f=1,p=!0;f<n.length;f+=1){var h=n[f],v=Ao(h,0,1),I=Ao(h,-1);if((v==='"'||v==="'"||v==="`"||I==='"'||I==="'"||I==="`")&&v!==I)throw new ci("property names with quotes must have matching quotes");if((h==="constructor"||!p)&&(c=!0),i+="."+h,a="%"+i+"%",Lo(on,a))l=on[a];else if(l!=null){if(!(h in l)){if(!r)throw new nn("base intrinsic for "+e+" exists, but the property is not available.");return}if(Tr&&f+1>=n.length){var y=Tr(l,h);p=!!y,p&&"get"in y&&!("originalValue"in y.get)?l=y.get:l=l[h]}else p=Lo(l,h),l=l[h];p&&!c&&(on[a]=l)}}return l}});var Po=b((nF,ko)=>{"use strict";var zl=Io(),an=jl(),Dy=an("%Function.prototype.apply%"),qy=an("%Function.prototype.call%"),By=an("%Reflect.apply%",!0)||zl.call(qy,Dy),Ny=an("%Object.getOwnPropertyDescriptor%",!0),Sr=an("%Object.defineProperty%",!0),wA=an("%Math.max%");if(Sr)try{Sr({},"a",{value:1})}catch(t){Sr=null}ko.exports=function(e){var r=By(zl,qy,arguments);if(Ny&&Sr){var n=Ny(r,"length");n.configurable&&Sr(r,"length",{value:1+wA(0,e.length-(arguments.length-1))})}return r};var Fy=function(){return By(zl,Dy,arguments)};Sr?Sr(ko.exports,"apply",{value:Fy}):ko.exports.apply=Fy});var Ul=b((iF,Uy)=>{"use strict";var jy=jl(),zy=Po(),TA=zy(jy("String.prototype.indexOf"));Uy.exports=function(e,r){var n=jy(e,!!r);return typeof n=="function"&&TA(e,".prototype.")>-1?zy(n):n}});var $y=b((oF,Wy)=>{"use strict";var SA=xo()(),xA=Ul(),Vl=xA("Object.prototype.toString"),Oo=function(e){return SA&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:Vl(e)==="[object Arguments]"},Vy=function(e){return Oo(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Vl(e)!=="[object Array]"&&Vl(e.callee)==="[object Function]"},IA=function(){return Oo(arguments)}();Oo.isLegacyArguments=Vy;Wy.exports=IA?Oo:Vy});var sn=b((aF,Ky)=>{"use strict";var LA=Nl(),AA=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",MA=Object.prototype.toString,kA=Array.prototype.concat,Wl=Object.defineProperty,PA=function(t){return typeof t=="function"&&MA.call(t)==="[object Function]"},OA=function(){var t={};try{Wl(t,"x",{enumerable:!1,value:t});for(var e in t)return!1;return t.x===t}catch(r){return!1}},Gy=Wl&&OA(),CA=function(t,e,r,n){e in t&&(!PA(n)||!n())||(Gy?Wl(t,e,{configurable:!0,enumerable:!1,value:r,writable:!0}):t[e]=r)},Yy=function(t,e){var r=arguments.length>2?arguments[2]:{},n=LA(e);AA&&(n=kA.call(n,Object.getOwnPropertySymbols(e)));for(var i=0;i<n.length;i+=1)CA(t,n[i],e[n[i]],r[n[i]])};Yy.supportsDescriptors=!!Gy;Ky.exports=Yy});var $l=b((sF,Jy)=>{"use strict";var Xy=function(t){return t!==t};Jy.exports=function(e,r){return e===0&&r===0?1/e===1/r:!!(e===r||Xy(e)&&Xy(r))}});var Gl=b((lF,Zy)=>{"use strict";var _A=$l();Zy.exports=function(){return typeof Object.is=="function"?Object.is:_A}});var ev=b((cF,Qy)=>{"use strict";var HA=Gl(),RA=sn();Qy.exports=function(){var e=HA();return RA(Object,{is:e},{is:function(){return Object.is!==e}}),e}});var iv=b((uF,nv)=>{"use strict";var NA=sn(),FA=Po(),DA=$l(),tv=Gl(),qA=ev(),rv=FA(tv(),Object);NA(rv,{getPolyfill:tv,implementation:DA,shim:qA});nv.exports=rv});var cv=b((dF,lv)=>{"use strict";var Yl=Ul(),ov=xo()(),av,sv,Kl,Xl;ov&&(av=Yl("Object.prototype.hasOwnProperty"),sv=Yl("RegExp.prototype.exec"),Kl={},Co=function(){throw Kl},Xl={toString:Co,valueOf:Co},typeof Symbol.toPrimitive=="symbol"&&(Xl[Symbol.toPrimitive]=Co));var Co,BA=Yl("Object.prototype.toString"),jA=Object.getOwnPropertyDescriptor,zA="[object RegExp]";lv.exports=ov?function(e){if(!e||typeof e!="object")return!1;var r=jA(e,"lastIndex"),n=r&&av(r,"value");if(!n)return!1;try{sv(e,Xl)}catch(i){return i===Kl}}:function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:BA(e)===zA}});var Jl=b((fF,uv)=>{"use strict";var UA=Object,VA=TypeError;uv.exports=function(){if(this!=null&&this!==UA(this))throw new VA("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 Zl=b((pF,dv)=>{"use strict";var WA=Jl(),$A=sn().supportsDescriptors,GA=Object.getOwnPropertyDescriptor;dv.exports=function(){if($A&&/a/mig.flags==="gim"){var e=GA(RegExp.prototype,"flags");if(e&&typeof e.get=="function"&&typeof/a/.dotAll=="boolean")return e.get}return WA}});var mv=b((mF,pv)=>{"use strict";var YA=sn().supportsDescriptors,KA=Zl(),XA=Object.getOwnPropertyDescriptor,JA=Object.defineProperty,ZA=TypeError,fv=Object.getPrototypeOf,QA=/a/;pv.exports=function(){if(!YA||!fv)throw new ZA("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=KA(),r=fv(QA),n=XA(r,"flags");return(!n||n.get!==e)&&JA(r,"flags",{configurable:!0,enumerable:!1,get:e}),e}});var vv=b((hF,yv)=>{"use strict";var eM=sn(),tM=Po(),rM=Jl(),hv=Zl(),nM=mv(),gv=tM(hv());eM(gv,{getPolyfill:hv,implementation:rM,shim:nM});yv.exports=gv});var Ev=b((gF,bv)=>{"use strict";var iM=Date.prototype.getDay,oM=function(e){try{return iM.call(e),!0}catch(r){return!1}},aM=Object.prototype.toString,sM="[object Date]",lM=xo()();bv.exports=function(e){return typeof e!="object"||e===null?!1:lM?oM(e):aM.call(e)===sM}});var Ql=b((yF,Ov)=>{var wv=Nl(),Tv=$y(),Sv=iv(),xv=cv(),Iv=vv(),Lv=Ev(),Av=Date.prototype.getTime;function Pv(t,e,r){var n=r||{};return(n.strict?Sv(t,e):t===e)?!0:!t||!e||typeof t!="object"&&typeof e!="object"?n.strict?Sv(t,e):t==e:cM(t,e,n)}function Mv(t){return t==null}function kv(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 cM(t,e,r){var n,i;if(typeof t!=typeof e||Mv(t)||Mv(e)||t.prototype!==e.prototype||Tv(t)!==Tv(e))return!1;var o=xv(t),a=xv(e);if(o!==a)return!1;if(o||a)return t.source===e.source&&Iv(t)===Iv(e);if(Lv(t)&&Lv(e))return Av.call(t)===Av.call(e);var l=kv(t),c=kv(e);if(l!==c)return!1;if(l||c){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 u=wv(t),f=wv(e)}catch(p){return!1}if(u.length!==f.length)return!1;for(u.sort(),f.sort(),n=u.length-1;n>=0;n--)if(u[n]!=f[n])return!1;for(n=u.length-1;n>=0;n--)if(i=u[n],!Pv(t[i],e[i],r))return!1;return!0}Ov.exports=Pv});var _v=b((vF,Cv)=>{"use strict";Cv.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var Nv=b((bF,Rv)=>{var Hv=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};Rv.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(t){return Hv()}try{return __global__||Hv()}finally{delete Object.prototype.__global__}}()});var ui=b((EF,Fv)=>{"use strict";Fv.exports=_v()()?globalThis:Nv()});var qv=b((wF,Dv)=>{"use strict";var uM=ui(),ec={object:!0,symbol:!0};Dv.exports=function(){var t=uM.Symbol,e;if(typeof t!="function")return!1;e=t("test symbol");try{String(e)}catch(r){return!1}return!(!ec[typeof t.iterator]||!ec[typeof t.toPrimitive]||!ec[typeof t.toStringTag])}});var tc=b((TF,Bv)=>{"use strict";var dM=void 0;Bv.exports=function(t){return t!==dM&&t!==null}});var zv=b((SF,jv)=>{"use strict";var fM=tc(),pM={object:!0,function:!0,undefined:!0};jv.exports=function(t){return fM(t)?hasOwnProperty.call(pM,typeof t):!1}});var Vv=b((xF,Uv)=>{"use strict";var mM=zv();Uv.exports=function(t){if(!mM(t))return!1;try{return t.constructor?t.constructor.prototype===t:!1}catch(e){return!1}}});var $v=b((IF,Wv)=>{"use strict";var hM=Vv();Wv.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!hM(t)}});var Yv=b((LF,Gv)=>{"use strict";var gM=$v(),yM=/^\s*class[\s{/}]/,vM=Function.prototype.toString;Gv.exports=function(t){return!(!gM(t)||yM.test(vM.call(t)))}});var Xv=b((AF,Kv)=>{"use strict";Kv.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 Zv=b((MF,Jv)=>{"use strict";Jv.exports=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}});var eb=b((kF,Qv)=>{"use strict";Qv.exports=function(){}});var _o=b((PF,tb)=>{"use strict";var bM=eb()();tb.exports=function(t){return t!==bM&&t!==null}});var nb=b((OF,rb)=>{"use strict";var EM=_o(),wM=Object.keys;rb.exports=function(t){return wM(EM(t)?Object(t):t)}});var ob=b((CF,ib)=>{"use strict";ib.exports=Zv()()?Object.keys:nb()});var sb=b((_F,ab)=>{"use strict";var TM=_o();ab.exports=function(t){if(!TM(t))throw new TypeError("Cannot use null or undefined");return t}});var cb=b((HF,lb)=>{"use strict";var SM=ob(),xM=sb(),IM=Math.max;lb.exports=function(t,e){var r,n,i=IM(arguments.length,2),o;for(t=Object(xM(t)),o=function(a){try{t[a]=e[a]}catch(l){r||(r=l)}},n=1;n<i;++n)e=arguments[n],SM(e).forEach(o);if(r!==void 0)throw r;return t}});var db=b((RF,ub)=>{"use strict";ub.exports=Xv()()?Object.assign:cb()});var pb=b((NF,fb)=>{"use strict";var LM=_o(),AM=Array.prototype.forEach,MM=Object.create,kM=function(t,e){var r;for(r in t)e[r]=t[r]};fb.exports=function(t){var e=MM(null);return AM.call(arguments,function(r){!LM(r)||kM(Object(r),e)}),e}});var hb=b((FF,mb)=>{"use strict";var rc="razdwatrzy";mb.exports=function(){return typeof rc.contains!="function"?!1:rc.contains("dwa")===!0&&rc.contains("foo")===!1}});var yb=b((DF,gb)=>{"use strict";var PM=String.prototype.indexOf;gb.exports=function(t){return PM.call(this,t,arguments[1])>-1}});var bb=b((qF,vb)=>{"use strict";vb.exports=hb()()?String.prototype.contains:yb()});var fi=b((BF,Sb)=>{"use strict";var Ho=tc(),Eb=Yv(),wb=db(),Tb=pb(),di=bb(),OM=Sb.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],Ho(t)?(r=di.call(t,"c"),n=di.call(t,"e"),i=di.call(t,"w")):(r=i=!0,n=!1),a={value:e,configurable:r,enumerable:n,writable:i},o?wb(Tb(o),a):a};OM.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],Ho(e)?Eb(e)?Ho(r)?Eb(r)||(o=r,r=void 0):r=void 0:(o=e,e=r=void 0):e=void 0,Ho(t)?(n=di.call(t,"c"),i=di.call(t,"e")):(n=!0,i=!1),a={get:e,set:r,configurable:n,enumerable:i},o?wb(Tb(o),a):a}});var Ib=b((jF,xb)=>{"use strict";xb.exports=function(t){return t?typeof t=="symbol"?!0:!t.constructor||t.constructor.name!=="Symbol"?!1:t[t.constructor.toStringTag]==="Symbol":!1}});var nc=b((zF,Lb)=>{"use strict";var CM=Ib();Lb.exports=function(t){if(!CM(t))throw new TypeError(t+" is not a symbol");return t}});var Ob=b((UF,Pb)=>{"use strict";var Ab=fi(),_M=Object.create,Mb=Object.defineProperty,HM=Object.prototype,kb=_M(null);Pb.exports=function(t){for(var e=0,r,n;kb[t+(e||"")];)++e;return t+=e||"",kb[t]=!0,r="@@"+t,Mb(HM,r,Ab.gs(null,function(i){n||(n=!0,Mb(this,r,Ab(i)),n=!1)})),r}});var _b=b((VF,Cb)=>{"use strict";var kt=fi(),Ce=ui().Symbol;Cb.exports=function(t){return Object.defineProperties(t,{hasInstance:kt("",Ce&&Ce.hasInstance||t("hasInstance")),isConcatSpreadable:kt("",Ce&&Ce.isConcatSpreadable||t("isConcatSpreadable")),iterator:kt("",Ce&&Ce.iterator||t("iterator")),match:kt("",Ce&&Ce.match||t("match")),replace:kt("",Ce&&Ce.replace||t("replace")),search:kt("",Ce&&Ce.search||t("search")),species:kt("",Ce&&Ce.species||t("species")),split:kt("",Ce&&Ce.split||t("split")),toPrimitive:kt("",Ce&&Ce.toPrimitive||t("toPrimitive")),toStringTag:kt("",Ce&&Ce.toStringTag||t("toStringTag")),unscopables:kt("",Ce&&Ce.unscopables||t("unscopables"))})}});var Nb=b((WF,Rb)=>{"use strict";var Hb=fi(),RM=nc(),pi=Object.create(null);Rb.exports=function(t){return Object.defineProperties(t,{for:Hb(function(e){return pi[e]?pi[e]:pi[e]=t(String(e))}),keyFor:Hb(function(e){var r;RM(e);for(r in pi)if(pi[r]===e)return r})})}});var qb=b(($F,Db)=>{"use strict";var _t=fi(),ic=nc(),Ro=ui().Symbol,NM=Ob(),FM=_b(),DM=Nb(),qM=Object.create,oc=Object.defineProperties,No=Object.defineProperty,Qe,ln,Fb;if(typeof Ro=="function")try{String(Ro()),Fb=!0}catch(t){}else Ro=null;ln=function(e){if(this instanceof ln)throw new TypeError("Symbol is not a constructor");return Qe(e)};Db.exports=Qe=function t(e){var r;if(this instanceof t)throw new TypeError("Symbol is not a constructor");return Fb?Ro(e):(r=qM(ln.prototype),e=e===void 0?"":String(e),oc(r,{__description__:_t("",e),__name__:_t("",NM(e))}))};FM(Qe);DM(Qe);oc(ln.prototype,{constructor:_t(Qe),toString:_t("",function(){return this.__name__})});oc(Qe.prototype,{toString:_t(function(){return"Symbol ("+ic(this).__description__+")"}),valueOf:_t(function(){return ic(this)})});No(Qe.prototype,Qe.toPrimitive,_t("",function(){var t=ic(this);return typeof t=="symbol"?t:t.toString()}));No(Qe.prototype,Qe.toStringTag,_t("c","Symbol"));No(ln.prototype,Qe.toStringTag,_t("c",Qe.prototype[Qe.toStringTag]));No(ln.prototype,Qe.toPrimitive,_t("c",Qe.prototype[Qe.toPrimitive]))});var jb=b((GF,Bb)=>{"use strict";Bb.exports=qv()()?ui().Symbol:qb()});var l0=b((s0,qo)=>{(function(t,e){"use strict";typeof qo=="object"&&typeof qo.exports=="object"?qo.exports=e(t,document):t.plyr=e(t,document)})(typeof window!="undefined"?window:s0,function(t,e){"use strict";function r(){var g,d,P,j=navigator.userAgent,X=navigator.appName,Z=""+parseFloat(navigator.appVersion),we=parseInt(navigator.appVersion,10),ye=!1,ve=!1,at=!1,W=!1;return navigator.appVersion.indexOf("Windows NT")!==-1&&navigator.appVersion.indexOf("rv:11")!==-1?(ye=!0,X="IE",Z="11"):(d=j.indexOf("MSIE"))!==-1?(ye=!0,X="IE",Z=j.substring(d+5)):(d=j.indexOf("Chrome"))!==-1?(at=!0,X="Chrome",Z=j.substring(d+7)):(d=j.indexOf("Safari"))!==-1?(W=!0,X="Safari",Z=j.substring(d+7),(d=j.indexOf("Version"))!==-1&&(Z=j.substring(d+8))):(d=j.indexOf("Firefox"))!==-1?(ve=!0,X="Firefox",Z=j.substring(d+8)):(g=j.lastIndexOf(" ")+1)<(d=j.lastIndexOf("/"))&&(X=j.substring(g,d),Z=j.substring(d+1),X.toLowerCase()===X.toUpperCase()&&(X=navigator.appName)),(P=Z.indexOf(";"))!==-1&&(Z=Z.substring(0,P)),(P=Z.indexOf(" "))!==-1&&(Z=Z.substring(0,P)),we=parseInt(""+Z,10),isNaN(we)&&(Z=""+parseFloat(navigator.appVersion),we=parseInt(navigator.appVersion,10)),{name:X,version:we,isIE:ye,isFirefox:ve,isChrome:at,isSafari:W,isIos:/(iPad|iPhone|iPod)/g.test(navigator.platform),isIphone:/(iPhone|iPod)/g.test(navigator.userAgent),isTouch:"ontouchstart"in e.documentElement}}function n(g,d){var P=g.media;if(g.type==="video")switch(d){case"video/webm":return!(!P.canPlayType||!P.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/no/,""));case"video/mp4":return!(!P.canPlayType||!P.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"').replace(/no/,""));case"video/ogg":return!(!P.canPlayType||!P.canPlayType('video/ogg; codecs="theora"').replace(/no/,""))}else if(g.type==="audio")switch(d){case"audio/mpeg":return!(!P.canPlayType||!P.canPlayType("audio/mpeg;").replace(/no/,""));case"audio/ogg":return!(!P.canPlayType||!P.canPlayType('audio/ogg; codecs="vorbis"').replace(/no/,""));case"audio/wav":return!(!P.canPlayType||!P.canPlayType('audio/wav; codecs="1"').replace(/no/,""))}return!1}function i(g){if(!e.querySelectorAll('script[src="'+g+'"]').length){var d=e.createElement("script");d.src=g;var P=e.getElementsByTagName("script")[0];P.parentNode.insertBefore(d,P)}}function o(g,d){return Array.prototype.indexOf&&g.indexOf(d)!==-1}function a(g,d,P){return g.replace(new RegExp(d.replace(/([.*+?\^=!:${}()|\[\]\/\\])/g,"\\$1"),"g"),P)}function l(g,d){g.length||(g=[g]);for(var P=g.length-1;P>=0;P--){var j=P>0?d.cloneNode(!0):d,X=g[P],Z=X.parentNode,we=X.nextSibling;return j.appendChild(X),we?Z.insertBefore(j,we):Z.appendChild(j),j}}function c(g){g&&g.parentNode.removeChild(g)}function u(g,d){g.insertBefore(d,g.firstChild)}function f(g,d){for(var P in d)g.setAttribute(P,k.boolean(d[P])&&d[P]?"":d[P])}function p(g,d,P){var j=e.createElement(g);f(j,P),u(d,j)}function h(g){return g.replace(".","")}function v(g,d,P){if(g)if(g.classList)g.classList[P?"add":"remove"](d);else{var j=(" "+g.className+" ").replace(/\s+/g," ").replace(" "+d+" ","");g.className=j+(P?" "+d:"")}}function I(g,d){return!!g&&(g.classList?g.classList.contains(d):new RegExp("(\\s|^)"+d+"(\\s|$)").test(g.className))}function y(g,d){var P=Element.prototype;return(P.matches||P.webkitMatchesSelector||P.mozMatchesSelector||P.msMatchesSelector||function(j){return[].indexOf.call(e.querySelectorAll(j),this)!==-1}).call(g,d)}function T(g,d,P,j,X){P&&A(g,d,function(Z){P.apply(g,[Z])},X),A(g,d,function(Z){j.apply(g,[Z])},X)}function L(g,d,P,j,X){var Z=d.split(" ");if(k.boolean(X)||(X=!1),g instanceof NodeList)for(var we=0;we<g.length;we++)g[we]instanceof Node&&L(g[we],arguments[1],arguments[2],arguments[3]);else for(var ye=0;ye<Z.length;ye++)g[j?"addEventListener":"removeEventListener"](Z[ye],P,X)}function A(g,d,P,j){g&&L(g,d,P,!0,j)}function B(g,d,P,j){g&&L(g,d,P,!1,j)}function N(g,d,P,j){if(g&&d){k.boolean(P)||(P=!1);var X=new CustomEvent(d,{bubbles:P,detail:j});g.dispatchEvent(X)}}function O(g,d){if(g)return d=k.boolean(d)?d:!g.getAttribute("aria-pressed"),g.setAttribute("aria-pressed",d),d}function x(g,d){return g===0||d===0||isNaN(g)||isNaN(d)?0:(g/d*100).toFixed(2)}function E(){var g=arguments;if(g.length){if(g.length===1)return g[0];for(var d=Array.prototype.shift.call(g),P=g.length,j=0;j<P;j++){var X=g[j];for(var Z in X)X[Z]&&X[Z].constructor&&X[Z].constructor===Object?(d[Z]=d[Z]||{},E(d[Z],X[Z])):d[Z]=X[Z]}return d}}function w(g){return g.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/)?RegExp.$2:g}function C(g){return g.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:g}function q(){var g={supportsFullScreen:!1,isFullScreen:function(){return!1},requestFullScreen:function(){},cancelFullScreen:function(){},fullScreenEventName:"",element:null,prefix:""},d="webkit o moz ms khtml".split(" ");if(k.undefined(e.cancelFullScreen))for(var P=0,j=d.length;P<j;P++){if(g.prefix=d[P],!k.undefined(e[g.prefix+"CancelFullScreen"])){g.supportsFullScreen=!0;break}if(!k.undefined(e.msExitFullscreen)&&e.msFullscreenEnabled){g.prefix="ms",g.supportsFullScreen=!0;break}}else g.supportsFullScreen=!0;return g.supportsFullScreen&&(g.fullScreenEventName=g.prefix==="ms"?"MSFullscreenChange":g.prefix+"fullscreenchange",g.isFullScreen=function(X){switch(k.undefined(X)&&(X=e.body),this.prefix){case"":return e.fullscreenElement===X;case"moz":return e.mozFullScreenElement===X;default:return e[this.prefix+"FullscreenElement"]===X}},g.requestFullScreen=function(X){return k.undefined(X)&&(X=e.body),this.prefix===""?X.requestFullScreen():X[this.prefix+(this.prefix==="ms"?"RequestFullscreen":"RequestFullScreen")]()},g.cancelFullScreen=function(){return this.prefix===""?e.cancelFullScreen():e[this.prefix+(this.prefix==="ms"?"ExitFullscreen":"CancelFullScreen")]()},g.element=function(){return this.prefix===""?e.fullscreenElement:e[this.prefix+"FullscreenElement"]}),g}function U(g,d){function P(m,M,F,K){N(m,M,F,E({},K,{plyr:Tt}))}function j(m,M){d.debug&&t.console&&(M=Array.prototype.slice.call(M),k.string(d.logPrefix)&&d.logPrefix.length&&M.unshift(d.logPrefix),console[m].apply(console,M))}function X(){return{url:d.iconUrl,absolute:d.iconUrl.indexOf("http")===0||s.browser.isIE&&!t.svg4everybody}}function Z(){var m=[],M=X(),F=(M.absolute?"":M.url)+"#"+d.iconPrefix;return o(d.controls,"play-large")&&m.push('<button type="button" data-plyr="play" class="plyr__play-large">','<svg><use xlink:href="'+F+'-play" /></svg>','<span class="plyr__sr-only">'+d.i18n.play+"</span>","</button>"),m.push('<div class="plyr__controls">'),o(d.controls,"restart")&&m.push('<button type="button" data-plyr="restart">','<svg><use xlink:href="'+F+'-restart" /></svg>','<span class="plyr__sr-only">'+d.i18n.restart+"</span>","</button>"),o(d.controls,"rewind")&&m.push('<button type="button" data-plyr="rewind">','<svg><use xlink:href="'+F+'-rewind" /></svg>','<span class="plyr__sr-only">'+d.i18n.rewind+"</span>","</button>"),o(d.controls,"play")&&m.push('<button type="button" data-plyr="play">','<svg><use xlink:href="'+F+'-play" /></svg>','<span class="plyr__sr-only">'+d.i18n.play+"</span>","</button>",'<button type="button" data-plyr="pause">','<svg><use xlink:href="'+F+'-pause" /></svg>','<span class="plyr__sr-only">'+d.i18n.pause+"</span>","</button>"),o(d.controls,"fast-forward")&&m.push('<button type="button" data-plyr="fast-forward">','<svg><use xlink:href="'+F+'-fast-forward" /></svg>','<span class="plyr__sr-only">'+d.i18n.forward+"</span>","</button>"),o(d.controls,"progress")&&(m.push('<span class="plyr__progress">','<label for="seek{id}" class="plyr__sr-only">Seek</label>','<input id="seek{id}" class="plyr__progress--seek" type="range" min="0" max="100" step="0.1" value="0" data-plyr="seek">','<progress class="plyr__progress--played" max="100" value="0" role="presentation"></progress>','<progress class="plyr__progress--buffer" max="100" value="0">',"<span>0</span>% "+d.i18n.buffered,"</progress>"),d.tooltips.seek&&m.push('<span class="plyr__tooltip">00:00</span>'),m.push("</span>")),o(d.controls,"current-time")&&m.push('<span class="plyr__time">','<span class="plyr__sr-only">'+d.i18n.currentTime+"</span>",'<span class="plyr__time--current">00:00</span>',"</span>"),o(d.controls,"duration")&&m.push('<span class="plyr__time">','<span class="plyr__sr-only">'+d.i18n.duration+"</span>",'<span class="plyr__time--duration">00:00</span>',"</span>"),o(d.controls,"mute")&&m.push('<button type="button" data-plyr="mute">','<svg class="icon--muted"><use xlink:href="'+F+'-muted" /></svg>','<svg><use xlink:href="'+F+'-volume" /></svg>','<span class="plyr__sr-only">'+d.i18n.toggleMute+"</span>","</button>"),o(d.controls,"volume")&&m.push('<span class="plyr__volume">','<label for="volume{id}" class="plyr__sr-only">'+d.i18n.volume+"</label>",'<input id="volume{id}" class="plyr__volume--input" type="range" min="'+d.volumeMin+'" max="'+d.volumeMax+'" value="'+d.volume+'" data-plyr="volume">','<progress class="plyr__volume--display" max="'+d.volumeMax+'" value="'+d.volumeMin+'" role="presentation"></progress>',"</span>"),o(d.controls,"captions")&&m.push('<button type="button" data-plyr="captions">','<svg class="icon--captions-on"><use xlink:href="'+F+'-captions-on" /></svg>','<svg><use xlink:href="'+F+'-captions-off" /></svg>','<span class="plyr__sr-only">'+d.i18n.toggleCaptions+"</span>","</button>"),o(d.controls,"fullscreen")&&m.push('<button type="button" data-plyr="fullscreen">','<svg class="icon--exit-fullscreen"><use xlink:href="'+F+'-exit-fullscreen" /></svg>','<svg><use xlink:href="'+F+'-enter-fullscreen" /></svg>','<span class="plyr__sr-only">'+d.i18n.toggleFullscreen+"</span>","</button>"),m.push("</div>"),m.join("")}function we(){if(s.supported.full&&(s.type!=="audio"||d.fullscreen.allowAudio)&&d.fullscreen.enabled){var m=ee.supportsFullScreen;m||d.fullscreen.fallback&&!Ve()?(Pe((m?"Native":"Fallback")+" fullscreen enabled"),m||v(s.container,d.classes.fullscreen.fallback,!0),v(s.container,d.classes.fullscreen.enabled,!0)):Pe("Fullscreen not supported and fallback disabled"),s.buttons&&s.buttons.fullscreen&&O(s.buttons.fullscreen,!1),Fe()}}function ye(){if(s.type==="video"){oe(d.selectors.captions)||s.videoContainer.insertAdjacentHTML("afterbegin",'<div class="'+h(d.selectors.captions)+'"></div>'),s.usingTextTracks=!1,s.media.textTracks&&(s.usingTextTracks=!0);for(var m,M="",F=s.media.childNodes,K=0;K<F.length;K++)F[K].nodeName.toLowerCase()==="track"&&((m=F[K].kind)!=="captions"&&m!=="subtitles"||(M=F[K].getAttribute("src")));if(s.captionExists=!0,M===""?(s.captionExists=!1,Pe("No caption track found")):Pe("Caption track found; URI: "+M),s.captionExists){for(var ce=s.media.textTracks,me=0;me<ce.length;me++)ce[me].mode="hidden";if(W(),(s.browser.isIE&&s.browser.version>=10||s.browser.isFirefox&&s.browser.version>=31)&&(Pe("Detected browser with known TextTrack issues - using manual fallback"),s.usingTextTracks=!1),s.usingTextTracks){Pe("TextTracks supported");for(var be=0;be<ce.length;be++){var tt=ce[be];tt.kind!=="captions"&&tt.kind!=="subtitles"||A(tt,"cuechange",function(){this.activeCues[0]&&"text"in this.activeCues[0]?ve(this.activeCues[0].getCueAsHTML()):ve()})}}else if(Pe("TextTracks not supported so rendering captions manually"),s.currentCaption="",s.captions=[],M!==""){var ct=new XMLHttpRequest;ct.onreadystatechange=function(){if(ct.readyState===4)if(ct.status===200){var de,Ie=[],fe=ct.responseText,Oe=`\r
`;fe.indexOf(Oe+Oe)===-1&&(Oe=fe.indexOf("\r\r")!==-1?"\r":`
`),Ie=fe.split(Oe+Oe);for(var Ge=0;Ge<Ie.length;Ge++){de=Ie[Ge],s.captions[Ge]=[];var Wt=de.split(Oe),$t=0;Wt[$t].indexOf(":")===-1&&($t=1),s.captions[Ge]=[Wt[$t],Wt[$t+1]]}s.captions.shift(),Pe("Successfully loaded the caption file via AJAX")}else Ct(d.logPrefix+"There was a problem loading the caption file via AJAX")},ct.open("get",M,!0),ct.send()}}else v(s.container,d.classes.captions.enabled)}}function ve(m){var M=oe(d.selectors.captions),F=e.createElement("span");M.innerHTML="",k.undefined(m)&&(m=""),k.string(m)?F.innerHTML=m.trim():F.appendChild(m),M.appendChild(F),M.offsetHeight}function at(m){function M(ce,me){var be=[];be=ce.split(" --> ");for(var tt=0;tt<be.length;tt++)be[tt]=be[tt].replace(/(\d+:\d+:\d+\.\d+).*/,"$1");return K(be[me])}function F(ce){return M(ce,1)}function K(ce){if(ce==null)return 0;var me=[],be=[];return me=ce.split(","),be=me[0].split(":"),Math.floor(60*be[0]*60)+Math.floor(60*be[1])+Math.floor(be[2])}if(!s.usingTextTracks&&s.type==="video"&&s.supported.full&&(s.subcount=0,m=k.number(m)?m:s.media.currentTime,s.captions[s.subcount])){for(;F(s.captions[s.subcount][0])<m.toFixed(1);)if(s.subcount++,s.subcount>s.captions.length-1){s.subcount=s.captions.length-1;break}s.media.currentTime.toFixed(1)>=function(ce){return M(ce,0)}(s.captions[s.subcount][0])&&s.media.currentTime.toFixed(1)<=F(s.captions[s.subcount][0])?(s.currentCaption=s.captions[s.subcount][1],ve(s.currentCaption)):ve()}}function W(){if(s.buttons.captions){v(s.container,d.classes.captions.enabled,!0);var m=s.storage.captionsEnabled;k.boolean(m)||(m=d.captions.defaultActive),m&&(v(s.container,d.classes.captions.active,!0),O(s.buttons.captions,!0))}}function ne(m){return s.container.querySelectorAll(m)}function oe(m){return ne(m)[0]}function Ve(){try{return t.self!==t.top}catch(m){return!0}}function Fe(){var m=ne("input:not([disabled]), button:not([disabled])"),M=m[0],F=m[m.length-1];A(s.container,"keydown",function(K){K.which===9&&s.isFullscreen&&(K.target!==F||K.shiftKey?K.target===M&&K.shiftKey&&(K.preventDefault(),F.focus()):(K.preventDefault(),M.focus()))})}function We(m,M){if(k.string(M))p(m,s.media,{src:M});else if(M.constructor===Array)for(var F=M.length-1;F>=0;F--)p(m,s.media,M[F])}function $(){if(d.loadSprite){var m=X();m.absolute?(Pe("AJAX loading absolute SVG sprite"+(s.browser.isIE?" (due to IE)":"")),V(m.url,"sprite-plyr")):Pe("Sprite will be used as external resource directly")}var M=d.html;Pe("Injecting custom controls"),M||(M=Z()),M=a(M=a(M,"{seektime}",d.seekTime),"{id}",Math.floor(1e4*Math.random())),d.title&&(M=a(M,"{title}",d.title));var F;if(k.string(d.selectors.controls.container)&&(F=e.querySelector(d.selectors.controls.container)),k.htmlElement(F)||(F=s.container),F.insertAdjacentHTML("beforeend",M),d.tooltips.controls)for(var K=ne([d.selectors.controls.wrapper," ",d.selectors.labels," .",d.classes.hidden].join("")),ce=K.length-1;ce>=0;ce--){var me=K[ce];v(me,d.classes.hidden,!1),v(me,d.classes.tooltip,!0)}}function z(){try{return s.controls=oe(d.selectors.controls.wrapper),s.buttons={},s.buttons.seek=oe(d.selectors.buttons.seek),s.buttons.play=ne(d.selectors.buttons.play),s.buttons.pause=oe(d.selectors.buttons.pause),s.buttons.restart=oe(d.selectors.buttons.restart),s.buttons.rewind=oe(d.selectors.buttons.rewind),s.buttons.forward=oe(d.selectors.buttons.forward),s.buttons.fullscreen=oe(d.selectors.buttons.fullscreen),s.buttons.mute=oe(d.selectors.buttons.mute),s.buttons.captions=oe(d.selectors.buttons.captions),s.progress={},s.progress.container=oe(d.selectors.progress.container),s.progress.buffer={},s.progress.buffer.bar=oe(d.selectors.progress.buffer),s.progress.buffer.text=s.progress.buffer.bar&&s.progress.buffer.bar.getElementsByTagName("span")[0],s.progress.played=oe(d.selectors.progress.played),s.progress.tooltip=s.progress.container&&s.progress.container.querySelector("."+d.classes.tooltip),s.volume={},s.volume.input=oe(d.selectors.volume.input),s.volume.display=oe(d.selectors.volume.display),s.duration=oe(d.selectors.duration),s.currentTime=oe(d.selectors.currentTime),s.seekTime=ne(d.selectors.seekTime),!0}catch(m){return Ct("It looks like there is a problem with your controls HTML"),le(!0),!1}}function Y(){v(s.container,d.selectors.container.replace(".",""),s.supported.full)}function le(m){m&&o(d.types.html5,s.type)?s.media.setAttribute("controls",""):s.media.removeAttribute("controls")}function Te(m){var M=d.i18n.play;if(k.string(d.title)&&d.title.length&&(M+=", "+d.title,s.container.setAttribute("aria-label",d.title)),s.supported.full&&s.buttons.play)for(var F=s.buttons.play.length-1;F>=0;F--)s.buttons.play[F].setAttribute("aria-label",M);k.htmlElement(m)&&m.setAttribute("title",d.i18n.frameTitle.replace("{title}",d.title))}function Xe(){var m=null;s.storage={},te.supported&&d.storage.enabled&&(t.localStorage.removeItem("plyr-volume"),(m=t.localStorage.getItem(d.storage.key))&&(/^\d+(\.\d+)?$/.test(m)?Re({volume:parseFloat(m)}):s.storage=JSON.parse(m)))}function Re(m){te.supported&&d.storage.enabled&&(E(s.storage,m),t.localStorage.setItem(d.storage.key,JSON.stringify(s.storage)))}function st(){if(s.media){if(s.supported.full&&(v(s.container,d.classes.type.replace("{0}",s.type),!0),o(d.types.embed,s.type)&&v(s.container,d.classes.type.replace("{0}","video"),!0),v(s.container,d.classes.stopped,d.autoplay),v(s.container,d.classes.isIos,s.browser.isIos),v(s.container,d.classes.isTouch,s.browser.isTouch),s.type==="video")){var m=e.createElement("div");m.setAttribute("class",d.classes.videoWrapper),l(s.media,m),s.videoContainer=m}o(d.types.embed,s.type)&&jt()}else Ct("No media element found!")}function jt(){var m,M=e.createElement("div"),F=s.type+"-"+Math.floor(1e4*Math.random());switch(s.type){case"youtube":m=w(s.embedId);break;case"vimeo":m=C(s.embedId);break;default:m=s.embedId}for(var K=ne('[id^="'+s.type+'-"]'),ce=K.length-1;ce>=0;ce--)c(K[ce]);if(v(s.media,d.classes.videoWrapper,!0),v(s.media,d.classes.embedWrapper,!0),s.type==="youtube")s.media.appendChild(M),M.setAttribute("id",F),k.object(t.YT)?or(m,M):(i(d.urls.youtube.api),t.onYouTubeReadyCallbacks=t.onYouTubeReadyCallbacks||[],t.onYouTubeReadyCallbacks.push(function(){or(m,M)}),t.onYouTubeIframeAPIReady=function(){t.onYouTubeReadyCallbacks.forEach(function(ct){ct()})});else if(s.type==="vimeo")if(s.supported.full?s.media.appendChild(M):M=s.media,M.setAttribute("id",F),k.object(t.Vimeo))ar(m,M);else{i(d.urls.vimeo.api);var me=t.setInterval(function(){k.object(t.Vimeo)&&(t.clearInterval(me),ar(m,M))},50)}else if(s.type==="soundcloud"){var be=e.createElement("iframe");be.loaded=!1,A(be,"load",function(){be.loaded=!0}),f(be,{src:"https://w.soundcloud.com/player/?url=https://api.soundcloud.com/tracks/"+m,id:F}),M.appendChild(be),s.media.appendChild(M),t.SC||i(d.urls.soundcloud.api);var tt=t.setInterval(function(){t.SC&&be.loaded&&(t.clearInterval(tt),Pr.call(be))},50)}}function wt(){s.supported.full&&(cr(),Fr()),Te(oe("iframe"))}function or(m,M){s.embed=new t.YT.Player(M.id,{videoId:m,playerVars:{autoplay:d.autoplay?1:0,controls:s.supported.full?0:1,rel:0,showinfo:0,iv_load_policy:3,cc_load_policy:d.captions.defaultActive?1:0,cc_lang_pref:"en",wmode:"transparent",modestbranding:1,disablekb:1,origin:"*"},events:{onError:function(F){P(s.container,"error",!0,{code:F.data,embed:F.target})},onReady:function(F){var K=F.target;s.media.play=function(){K.playVideo(),s.media.paused=!1},s.media.pause=function(){K.pauseVideo(),s.media.paused=!0},s.media.stop=function(){K.stopVideo(),s.media.paused=!0},s.media.duration=K.getDuration(),s.media.paused=!0,s.media.currentTime=0,s.media.muted=K.isMuted(),typeof K.getVideoData=="function"&&(d.title=K.getVideoData().title),s.supported.full&&s.media.querySelector("iframe").setAttribute("tabindex","-1"),wt(),P(s.media,"timeupdate"),P(s.media,"durationchange"),t.clearInterval($e.buffering),$e.buffering=t.setInterval(function(){s.media.buffered=K.getVideoLoadedFraction(),(s.media.lastBuffered===null||s.media.lastBuffered<s.media.buffered)&&P(s.media,"progress"),s.media.lastBuffered=s.media.buffered,s.media.buffered===1&&(t.clearInterval($e.buffering),P(s.media,"canplaythrough"))},200)},onStateChange:function(F){var K=F.target;switch(t.clearInterval($e.playing),F.data){case 0:s.media.paused=!0,P(s.media,"ended");break;case 1:s.media.paused=!1,s.media.seeking&&P(s.media,"seeked"),s.media.seeking=!1,P(s.media,"play"),P(s.media,"playing"),$e.playing=t.setInterval(function(){s.media.currentTime=K.getCurrentTime(),P(s.media,"timeupdate")},100),s.media.duration!==K.getDuration()&&(s.media.duration=K.getDuration(),P(s.media,"durationchange"));break;case 2:s.media.paused=!0,P(s.media,"pause")}P(s.container,"statechange",!1,{code:F.data})}}})}function ar(m,M){var F=function(me){return Object.keys(me).map(function(be){return encodeURIComponent(be)+"="+encodeURIComponent(me[be])}).join("&")}({loop:d.loop,autoplay:d.autoplay,byline:!1,portrait:!1,title:!1,speed:!0,transparent:0}),K=e.createElement("iframe"),ce="https://player.vimeo.com/video/"+m+"?"+F;K.setAttribute("src",ce),K.setAttribute("allowfullscreen",""),M.appendChild(K),s.embed=new t.Vimeo.Player(K),s.media.play=function(){s.embed.play(),s.media.paused=!1},s.media.pause=function(){s.embed.pause(),s.media.paused=!0},s.media.stop=function(){s.embed.stop(),s.media.paused=!0},s.media.paused=!0,s.media.currentTime=0,wt(),s.embed.getCurrentTime().then(function(me){s.media.currentTime=me,P(s.media,"timeupdate")}),s.embed.getDuration().then(function(me){s.media.duration=me,P(s.media,"durationchange")}),s.embed.on("loaded",function(){k.htmlElement(s.embed.element)&&s.supported.full&&s.embed.element.setAttribute("tabindex","-1")}),s.embed.on("play",function(){s.media.paused=!1,P(s.media,"play"),P(s.media,"playing")}),s.embed.on("pause",function(){s.media.paused=!0,P(s.media,"pause")}),s.embed.on("timeupdate",function(me){s.media.seeking=!1,s.media.currentTime=me.seconds,P(s.media,"timeupdate")}),s.embed.on("progress",function(me){s.media.buffered=me.percent,P(s.media,"progress"),parseInt(me.percent)===1&&P(s.media,"canplaythrough")}),s.embed.on("seeked",function(){s.media.seeking=!1,P(s.media,"seeked"),P(s.media,"play")}),s.embed.on("ended",function(){s.media.paused=!0,P(s.media,"ended")})}function Pr(){s.embed=t.SC.Widget(this),s.embed.bind(t.SC.Widget.Events.READY,function(){s.media.play=function(){s.embed.play(),s.media.paused=!1},s.media.pause=function(){s.embed.pause(),s.media.paused=!0},s.media.stop=function(){s.embed.seekTo(0),s.embed.pause(),s.media.paused=!0},s.media.paused=!0,s.media.currentTime=0,s.embed.getDuration(function(m){s.media.duration=m/1e3,wt()}),s.embed.getPosition(function(m){s.media.currentTime=m,P(s.media,"timeupdate")}),s.embed.bind(t.SC.Widget.Events.PLAY,function(){s.media.paused=!1,P(s.media,"play"),P(s.media,"playing")}),s.embed.bind(t.SC.Widget.Events.PAUSE,function(){s.media.paused=!0,P(s.media,"pause")}),s.embed.bind(t.SC.Widget.Events.PLAY_PROGRESS,function(m){s.media.seeking=!1,s.media.currentTime=m.currentPosition/1e3,P(s.media,"timeupdate")}),s.embed.bind(t.SC.Widget.Events.LOAD_PROGRESS,function(m){s.media.buffered=m.loadProgress,P(s.media,"progress"),parseInt(m.loadProgress)===1&&P(s.media,"canplaythrough")}),s.embed.bind(t.SC.Widget.Events.FINISH,function(){s.media.paused=!0,P(s.media,"ended")})})}function xe(){"play"in s.media&&s.media.play()}function _e(){"pause"in s.media&&s.media.pause()}function vt(m){return k.boolean(m)||(m=s.media.paused),m?xe():_e(),m}function pt(m){k.number(m)||(m=d.seekTime),De(s.media.currentTime-m)}function sr(m){k.number(m)||(m=d.seekTime),De(s.media.currentTime+m)}function De(m){var M=0,F=s.media.paused,K=mt();k.number(m)?M=m:k.object(m)&&o(["input","change"],m.type)&&(M=m.target.value/m.target.max*K),M<0?M=0:M>K&&(M=K),Nr(M);try{s.media.currentTime=M.toFixed(4)}catch(ce){}if(o(d.types.embed,s.type)){switch(s.type){case"youtube":s.embed.seekTo(M);break;case"vimeo":s.embed.setCurrentTime(M.toFixed(0));break;case"soundcloud":s.embed.seekTo(1e3*M)}F&&_e(),P(s.media,"timeupdate"),s.media.seeking=!0,P(s.media,"seeking")}Pe("Seeking to "+s.media.currentTime+" seconds"),at(M)}function mt(){var m=parseInt(d.duration),M=0;return s.media.duration===null||isNaN(s.media.duration)||(M=s.media.duration),isNaN(m)?M:m}function et(){v(s.container,d.classes.playing,!s.media.paused),v(s.container,d.classes.stopped,s.media.paused),Ut(s.media.paused)}function Or(){H={x:t.pageXOffset||0,y:t.pageYOffset||0}}function Cr(){t.scrollTo(H.x,H.y)}function Rt(m){var M=ee.supportsFullScreen;if(M){if(!m||m.type!==ee.fullScreenEventName)return ee.isFullScreen(s.container)?ee.cancelFullScreen():(Or(),ee.requestFullScreen(s.container)),void(s.isFullscreen=ee.isFullScreen(s.container));s.isFullscreen=ee.isFullScreen(s.container)}else s.isFullscreen=!s.isFullscreen,e.body.style.overflow=s.isFullscreen?"hidden":"";v(s.container,d.classes.fullscreen.active,s.isFullscreen),Fe(s.isFullscreen),s.buttons&&s.buttons.fullscreen&&O(s.buttons.fullscreen,s.isFullscreen),P(s.container,s.isFullscreen?"enterfullscreen":"exitfullscreen",!0),!s.isFullscreen&&M&&Cr()}function _r(m){if(k.boolean(m)||(m=!s.media.muted),O(s.buttons.mute,m),s.media.muted=m,s.media.volume===0&&zt(d.volume),o(d.types.embed,s.type)){switch(s.type){case"youtube":s.embed[s.media.muted?"mute":"unMute"]();break;case"vimeo":case"soundcloud":s.embed.setVolume(s.media.muted?0:parseFloat(d.volume/d.volumeMax))}P(s.media,"volumechange")}}function zt(m){var M=d.volumeMax,F=d.volumeMin;if(k.undefined(m)&&(m=s.storage.volume),(m===null||isNaN(m))&&(m=d.volume),m>M&&(m=M),m<F&&(m=F),s.media.volume=parseFloat(m/M),s.volume.display&&(s.volume.display.value=m),o(d.types.embed,s.type)){switch(s.type){case"youtube":s.embed.setVolume(100*s.media.volume);break;case"vimeo":case"soundcloud":s.embed.setVolume(s.media.volume)}P(s.media,"volumechange")}m===0?s.media.muted=!0:s.media.muted&&m>0&&_r()}function pn(m){var M=s.media.muted?0:s.media.volume*d.volumeMax;k.number(m)||(m=d.volumeStep),zt(M+m)}function mn(m){var M=s.media.muted?0:s.media.volume*d.volumeMax;k.number(m)||(m=d.volumeStep),zt(M-m)}function hn(){var m=s.media.muted?0:s.media.volume*d.volumeMax;s.supported.full&&(s.volume.input&&(s.volume.input.value=m),s.volume.display&&(s.volume.display.value=m)),Re({volume:m}),v(s.container,d.classes.muted,m===0),s.supported.full&&s.buttons.mute&&O(s.buttons.mute,m===0)}function lt(m){s.supported.full&&s.buttons.captions&&(k.boolean(m)||(m=s.container.className.indexOf(d.classes.captions.active)===-1),s.captionsEnabled=m,O(s.buttons.captions,s.captionsEnabled),v(s.container,d.classes.captions.active,s.captionsEnabled),P(s.container,s.captionsEnabled?"captionsenabled":"captionsdisabled",!0),Re({captionsEnabled:s.captionsEnabled}))}function gn(m){var M=m.type==="waiting";clearTimeout($e.loading),$e.loading=setTimeout(function(){v(s.container,d.classes.loading,M),Ut(M)},M?250:0)}function Hr(m){if(s.supported.full){var M=s.progress.played,F=0,K=mt();if(m)switch(m.type){case"timeupdate":case"seeking":if(s.controls.pressed)return;F=x(s.media.currentTime,K),m.type==="timeupdate"&&s.buttons.seek&&(s.buttons.seek.value=F);break;case"playing":case"progress":M=s.progress.buffer,F=function(){var ce=s.media.buffered;return ce&&ce.length?x(ce.end(0),K):k.number(ce)?100*ce:0}()}yi(M,F)}}function yi(m,M){if(s.supported.full){if(k.undefined(M)&&(M=0),k.undefined(m)){if(!s.progress||!s.progress.buffer)return;m=s.progress.buffer}k.htmlElement(m)?m.value=M:m&&(m.bar&&(m.bar.value=M),m.text&&(m.text.innerHTML=M))}}function Rr(m,M){if(M){isNaN(m)&&(m=0),s.secs=parseInt(m%60),s.mins=parseInt(m/60%60),s.hours=parseInt(m/60/60%60);var F=parseInt(mt()/60/60%60)>0;s.secs=("0"+s.secs).slice(-2),s.mins=("0"+s.mins).slice(-2),M.innerHTML=(F?s.hours+":":"")+s.mins+":"+s.secs}}function vi(){if(s.supported.full){var m=mt()||0;!s.duration&&d.displayDuration&&s.media.paused&&Rr(m,s.currentTime),s.duration&&Rr(m,s.duration),He()}}function yn(m){Rr(s.media.currentTime,s.currentTime),m&&m.type==="timeupdate"&&s.media.seeking||Hr(m)}function Nr(m){k.number(m)||(m=0);var M=x(m,mt());s.progress&&s.progress.played&&(s.progress.played.value=M),s.buttons&&s.buttons.seek&&(s.buttons.seek.value=M)}function He(m){var M=mt();if(d.tooltips.seek&&s.progress.container&&M!==0){var F=s.progress.container.getBoundingClientRect(),K=0,ce=d.classes.tooltip+"--visible";if(m)K=100/F.width*(m.pageX-F.left);else{if(!I(s.progress.tooltip,ce))return;K=s.progress.tooltip.style.left.replace("%","")}K<0?K=0:K>100&&(K=100),Rr(M/100*K,s.progress.tooltip),s.progress.tooltip.style.left=K+"%",m&&o(["mouseenter","mouseleave"],m.type)&&v(s.progress.tooltip,ce,m.type==="mouseenter")}}function Ut(m){if(d.hideControls&&s.type!=="audio"){var M=0,F=!1,K=m,ce=I(s.container,d.classes.loading);if(k.boolean(m)||(m&&m.type?(F=m.type==="enterfullscreen",K=o(["mousemove","touchstart","mouseenter","focus"],m.type),o(["mousemove","touchmove"],m.type)&&(M=2e3),m.type==="focus"&&(M=3e3)):K=I(s.container,d.classes.hideControls)),t.clearTimeout($e.hover),K||s.media.paused||ce){if(v(s.container,d.classes.hideControls,!1),s.media.paused||ce)return;s.browser.isTouch&&(M=3e3)}K&&s.media.paused||($e.hover=t.setTimeout(function(){(!s.controls.pressed&&!s.controls.hover||F)&&v(s.container,d.classes.hideControls,!0)},M))}}function qe(m){k.object(m)&&"sources"in m&&m.sources.length?(v(s.container,d.classes.ready,!1),_e(),Nr(),yi(),bn(),En(function(){if(s.embed=null,c(s.media),s.type==="video"&&s.videoContainer&&c(s.videoContainer),s.container&&s.container.removeAttribute("class"),"type"in m&&(s.type=m.type,s.type==="video")){var M=m.sources[0];"type"in M&&o(d.types.embed,M.type)&&(s.type=M.type)}switch(s.supported=Q(s.type),s.type){case"video":s.media=e.createElement("video");break;case"audio":s.media=e.createElement("audio");break;case"youtube":case"vimeo":case"soundcloud":s.media=e.createElement("div"),s.embedId=m.sources[0].src}u(s.container,s.media),k.boolean(m.autoplay)&&(d.autoplay=m.autoplay),o(d.types.html5,s.type)&&(d.crossorigin&&s.media.setAttribute("crossorigin",""),d.autoplay&&s.media.setAttribute("autoplay",""),"poster"in m&&s.media.setAttribute("poster",m.poster),d.loop&&s.media.setAttribute("loop","")),v(s.container,d.classes.fullscreen.active,s.isFullscreen),v(s.container,d.classes.captions.active,s.captionsEnabled),Y(),o(d.types.html5,s.type)&&We("source",m.sources),st(),o(d.types.html5,s.type)&&("tracks"in m&&We("track",m.tracks),s.media.load()),(o(d.types.html5,s.type)||o(d.types.embed,s.type)&&!s.supported.full)&&(cr(),Fr()),d.title=m.title,Te()},!1)):Ct("Invalid source format")}function vn(){v(oe("."+d.classes.tabFocus),d.classes.tabFocus,!1)}function ke(){function m(){var de=vt(),Ie=s.buttons[de?"play":"pause"],fe=s.buttons[de?"pause":"play"];if(fe&&(fe=fe.length>1?fe[fe.length-1]:fe[0]),fe){var Oe=I(Ie,d.classes.tabFocus);setTimeout(function(){fe.focus(),Oe&&(v(Ie,d.classes.tabFocus,!1),v(fe,d.classes.tabFocus,!0))},100)}}function M(){var de=e.activeElement;return de=de&&de!==e.body?e.querySelector(":focus"):null}function F(de){return de.keyCode?de.keyCode:de.which}function K(de){for(var Ie in s.buttons){var fe=s.buttons[Ie];if(k.nodeList(fe))for(var Oe=0;Oe<fe.length;Oe++)v(fe[Oe],d.classes.tabFocus,fe[Oe]===de);else v(fe,d.classes.tabFocus,fe===de)}}function ce(de){var Ie=F(de),fe=de.type==="keydown",Oe=fe&&Ie===be;if(k.number(Ie))if(fe){switch(o([48,49,50,51,52,53,54,56,57,32,75,38,40,77,39,37,70,67],Ie)&&(de.preventDefault(),de.stopPropagation()),Ie){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:Oe||function(){var Ge=s.media.duration;k.number(Ge)&&De(Ge/10*(Ie-48))}();break;case 32:case 75:Oe||vt();break;case 38:pn();break;case 40:mn();break;case 77:Oe||_r();break;case 39:sr();break;case 37:pt();break;case 70:Rt();break;case 67:Oe||lt()}!ee.supportsFullScreen&&s.isFullscreen&&Ie===27&&Rt(),be=Ie}else be=null}var me=s.browser.isIE?"change":"input";if(d.keyboardShorcuts.focused){var be=null;d.keyboardShorcuts.global&&A(t,"keydown keyup",function(de){var Ie=F(de),fe=M();he().length!==1||!o([48,49,50,51,52,53,54,56,57,75,77,70,67],Ie)||k.htmlElement(fe)&&y(fe,d.selectors.editable)||ce(de)}),A(s.container,"keydown keyup",ce)}A(t,"keyup",function(de){var Ie=F(de),fe=M();Ie===9&&K(fe)}),A(e.body,"click",vn);for(var tt in s.buttons){var ct=s.buttons[tt];A(ct,"blur",function(){v(ct,"tab-focus",!1)})}T(s.buttons.play,"click",d.listeners.play,m),T(s.buttons.pause,"click",d.listeners.pause,m),T(s.buttons.restart,"click",d.listeners.restart,De),T(s.buttons.rewind,"click",d.listeners.rewind,pt),T(s.buttons.forward,"click",d.listeners.forward,sr),T(s.buttons.seek,me,d.listeners.seek,De),T(s.volume.input,me,d.listeners.volume,function(){zt(s.volume.input.value)}),T(s.buttons.mute,"click",d.listeners.mute,_r),T(s.buttons.fullscreen,"click",d.listeners.fullscreen,Rt),ee.supportsFullScreen&&A(e,ee.fullScreenEventName,Rt),T(s.buttons.captions,"click",d.listeners.captions,lt),A(s.progress.container,"mouseenter mouseleave mousemove",He),d.hideControls&&(A(s.container,"mouseenter mouseleave mousemove touchstart touchend touchcancel touchmove enterfullscreen",Ut),A(s.controls,"mouseenter mouseleave",function(de){s.controls.hover=de.type==="mouseenter"}),A(s.controls,"mousedown mouseup touchstart touchend touchcancel",function(de){s.controls.pressed=o(["mousedown","touchstart"],de.type)}),A(s.controls,"focus blur",Ut,!0)),A(s.volume.input,"wheel",function(de){de.preventDefault();var Ie=de.webkitDirectionInvertedFromDevice,fe=d.volumeStep/5;(de.deltaY<0||de.deltaX>0)&&(Ie?mn(fe):pn(fe)),(de.deltaY>0||de.deltaX<0)&&(Ie?pn(fe):mn(fe))})}function lr(){if(A(s.media,"timeupdate seeking",yn),A(s.media,"timeupdate",at),A(s.media,"durationchange loadedmetadata",vi),A(s.media,"ended",function(){s.type==="video"&&d.showPosterOnEnd&&(s.type==="video"&&ve(),De(),s.media.load())}),A(s.media,"progress playing",Hr),A(s.media,"volumechange",hn),A(s.media,"play pause ended",et),A(s.media,"waiting canplay seeked",gn),d.clickToPlay&&s.type!=="audio"){var m=oe("."+d.classes.videoWrapper);if(!m)return;m.style.cursor="pointer",A(m,"click",function(){d.hideControls&&s.browser.isTouch&&!s.media.paused||(s.media.paused?xe():s.media.ended?(De(),xe()):_e())})}d.disableContextMenu&&A(s.media,"contextmenu",function(M){M.preventDefault()}),A(s.media,d.events.concat(["keyup","keydown"]).join(" "),function(M){P(s.container,M.type,!0)})}function bn(){if(o(d.types.html5,s.type)){for(var m=s.media.querySelectorAll("source"),M=0;M<m.length;M++)c(m[M]);s.media.setAttribute("src",d.blankUrl),s.media.load(),Pe("Cancelled network requests")}}function En(m,M){function F(){clearTimeout($e.cleanUp),k.boolean(M)||(M=!0),k.function(m)&&m.call(Vt),M&&(s.init=!1,s.container.parentNode.replaceChild(Vt,s.container),s.container=null,e.body.style.overflow="",B(e.body,"click",vn),P(Vt,"destroyed",!0))}if(!s.init)return null;switch(s.type){case"youtube":t.clearInterval($e.buffering),t.clearInterval($e.playing),s.embed.destroy(),F();break;case"vimeo":s.embed.unload().then(F),$e.cleanUp=t.setTimeout(F,200);break;case"video":case"audio":le(!0),F()}}function cr(){if(!s.supported.full)return Ct("Basic support only",s.type),c(oe(d.selectors.controls.wrapper)),c(oe(d.selectors.buttons.play)),void le(!0);var m=!ne(d.selectors.controls.wrapper).length;m&&$(),z()&&(m&&ke(),lr(),le(),we(),ye(),zt(),hn(),yn(),et(),vi())}function Fr(){t.setTimeout(function(){P(s.media,"ready")},0),v(s.media,R.classes.setup,!0),v(s.container,d.classes.ready,!0),s.media.plyr=Tt,d.autoplay&&xe()}var Tt,s=this,$e={};s.media=g;var Vt=g.cloneNode(!0),Pe=function(){j("log",arguments)},Ct=function(){j("warn",arguments)};return Pe("Config",d),Tt={getOriginal:function(){return Vt},getContainer:function(){return s.container},getEmbed:function(){return s.embed},getMedia:function(){return s.media},getType:function(){return s.type},getDuration:mt,getCurrentTime:function(){return s.media.currentTime},getVolume:function(){return s.media.volume},isMuted:function(){return s.media.muted},isReady:function(){return I(s.container,d.classes.ready)},isLoading:function(){return I(s.container,d.classes.loading)},isPaused:function(){return s.media.paused},on:function(m,M){return A(s.container,m,M),this},play:xe,pause:_e,stop:function(){_e(),De()},restart:De,rewind:pt,forward:sr,seek:De,source:function(m){if(k.undefined(m)){var M;switch(s.type){case"youtube":M=s.embed.getVideoUrl();break;case"vimeo":s.embed.getVideoUrl.then(function(F){M=F});break;case"soundcloud":s.embed.getCurrentSound(function(F){M=F.permalink_url});break;default:M=s.media.currentSrc}return M||""}qe(m)},poster:function(m){s.type==="video"&&s.media.setAttribute("poster",m)},setVolume:zt,togglePlay:vt,toggleMute:_r,toggleCaptions:lt,toggleFullscreen:Rt,toggleControls:Ut,isFullscreen:function(){return s.isFullscreen||!1},support:function(m){return n(s,m)},destroy:En},function(){if(s.init)return null;if(ee=q(),s.browser=r(),k.htmlElement(s.media)){Xe();var m=g.tagName.toLowerCase();m==="div"?(s.type=g.getAttribute("data-type"),s.embedId=g.getAttribute("data-video-id"),g.removeAttribute("data-type"),g.removeAttribute("data-video-id")):(s.type=m,d.crossorigin=g.getAttribute("crossorigin")!==null,d.autoplay=d.autoplay||g.getAttribute("autoplay")!==null,d.loop=d.loop||g.getAttribute("loop")!==null),s.supported=Q(s.type),s.supported.basic&&(s.container=l(g,e.createElement("div")),s.container.setAttribute("tabindex",0),Y(),Pe(s.browser.name+" "+s.browser.version),st(),(o(d.types.html5,s.type)||o(d.types.embed,s.type)&&!s.supported.full)&&(cr(),Fr(),Te()),s.init=!0)}}(),s.init?Tt:null}function V(g,d){var P=new XMLHttpRequest;if(!k.string(d)||!k.htmlElement(e.querySelector("#"+d))){var j=e.createElement("div");j.setAttribute("hidden",""),k.string(d)&&j.setAttribute("id",d),e.body.insertBefore(j,e.body.childNodes[0]),"withCredentials"in P&&(P.open("GET",g,!0),P.onload=function(){j.innerHTML=P.responseText},P.send())}}function Q(g){var d=r(),P=d.isIE&&d.version<=9,j=d.isIos,X=d.isIphone,Z=!!e.createElement("audio").canPlayType,we=!!e.createElement("video").canPlayType,ye=!1,ve=!1;switch(g){case"video":ve=(ye=we)&&!P&&!X;break;case"audio":ve=(ye=Z)&&!P;break;case"vimeo":ye=!0,ve=!P&&!j;break;case"youtube":ye=!0,ve=!P&&!j,j&&!X&&d.version>=10&&(ve=!0);break;case"soundcloud":ye=!0,ve=!P&&!X;break;default:ve=(ye=Z&&we)&&!P}return{basic:ye,full:ve}}function he(g){if(k.string(g)?g=e.querySelector(g):k.undefined(g)&&(g=e.body),k.htmlElement(g)){var d=g.querySelectorAll("."+R.classes.setup),P=[];return Array.prototype.slice.call(d).forEach(function(j){k.object(j.plyr)&&P.push(j.plyr)}),P}return[]}var ee,H={x:0,y:0},R={enabled:!0,debug:!1,autoplay:!1,loop:!1,seekTime:10,volume:10,volumeMin:0,volumeMax:10,volumeStep:1,duration:null,displayDuration:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/2.0.17/plyr.svg",blankUrl:"https://cdn.plyr.io/static/blank.mp4",clickToPlay:!0,hideControls:!0,showPosterOnEnd:!1,disableContextMenu:!0,keyboardShorcuts:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},selectors:{html5:"video, audio",embed:"[data-type]",editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{seek:'[data-plyr="seek"]',play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',forward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',fullscreen:'[data-plyr="fullscreen"]'},volume:{input:'[data-plyr="volume"]',display:".plyr__volume--display"},progress:{container:".plyr__progress",buffer:".plyr__progress--buffer",played:".plyr__progress--played"},captions:".plyr__captions",currentTime:".plyr__time--current",duration:".plyr__time--duration"},classes:{setup:"plyr--setup",ready:"plyr--ready",videoWrapper:"plyr__video-wrapper",embedWrapper:"plyr__video-embed",type:"plyr--{0}",stopped:"plyr--stopped",playing:"plyr--playing",muted:"plyr--muted",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback",active:"plyr--fullscreen-active"},tabFocus:"tab-focus"},captions:{defaultActive:!1},fullscreen:{enabled:!0,fallback:!0,allowAudio:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","fullscreen"],i18n:{restart:"Restart",rewind:"Rewind {seektime} secs",play:"Play",pause:"Pause",forward:"Forward {seektime} secs",played:"played",buffered:"buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",toggleMute:"Toggle Mute",toggleCaptions:"Toggle Captions",toggleFullscreen:"Toggle Fullscreen",frameTitle:"Player for {title}"},types:{embed:["youtube","vimeo","soundcloud"],html5:["video","audio"]},urls:{vimeo:{api:"https://player.vimeo.com/api/player.js"},youtube:{api:"https://www.youtube.com/iframe_api"},soundcloud:{api:"https://w.soundcloud.com/player/api.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,forward:null,mute:null,volume:null,captions:null,fullscreen:null},events:["ready","ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied"],logPrefix:"[Plyr]"},k={object:function(g){return g!==null&&typeof g=="object"},array:function(g){return g!==null&&typeof g=="object"&&g.constructor===Array},number:function(g){return g!==null&&(typeof g=="number"&&!isNaN(g-0)||typeof g=="object"&&g.constructor===Number)},string:function(g){return g!==null&&(typeof g=="string"||typeof g=="object"&&g.constructor===String)},boolean:function(g){return g!==null&&typeof g=="boolean"},nodeList:function(g){return g!==null&&g instanceof NodeList},htmlElement:function(g){return g!==null&&g instanceof HTMLElement},function:function(g){return g!==null&&typeof g=="function"},undefined:function(g){return g!==null&&g===void 0}},te={supported:function(){try{t.localStorage.setItem("___test","OK");var g=t.localStorage.getItem("___test");return t.localStorage.removeItem("___test"),g==="OK"}catch(d){return!1}return!1}()};return{setup:function(g,d){function P(W,ne){I(ne,R.classes.hook)||j.push({target:W,media:ne})}var j=[],X=[],Z=[R.selectors.html5,R.selectors.embed].join(",");if(k.string(g)?g=e.querySelectorAll(g):k.htmlElement(g)?g=[g]:k.nodeList(g)||k.array(g)||k.string(g)||(k.undefined(d)&&k.object(g)&&(d=g),g=e.querySelectorAll(Z)),k.nodeList(g)&&(g=Array.prototype.slice.call(g)),!Q().basic||!g.length)return!1;for(var we=0;we<g.length;we++){var ye=g[we],ve=ye.querySelectorAll(Z);if(ve.length)for(var at=0;at<ve.length;at++)P(ye,ve[at]);else y(ye,Z)&&P(ye,ye)}return j.forEach(function(W){var ne=W.target,oe=W.media,Ve={};try{Ve=JSON.parse(ne.getAttribute("data-plyr"))}catch(z){}var Fe=E({},R,d,Ve);if(!Fe.enabled)return null;var We=new U(oe,Fe);if(k.object(We)){if(Fe.debug){var $=Fe.events.concat(["setup","statechange","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled"]);A(We.getContainer(),$.join(" "),function(z){console.log([Fe.logPrefix,"event:",z.type].join(" "),z.detail.plyr)})}N(We.getContainer(),"setup",!0,{plyr:We}),X.push(We)}}),X},supported:Q,loadSprite:V,get:he}}),function(){function t(e,r){r=r||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,r.bubbles,r.cancelable,r.detail),n}typeof window.CustomEvent!="function"&&(t.prototype=window.Event.prototype,window.CustomEvent=t)}()});var HB=ue(dp()),RB=ue(vp()),NB=ue(_p()),FB=ue(Kp());(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 qB=ue(Jp());var im=ue(Zp());function _(t,e=null){let n=PS(e).querySelectorAll(t);return Array.from(n)}function ie(t,e=null){let r=_(t,e);return r.length===0?!1:r[0]}function PS(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(y){this.time=y.time,this.target=y.target,this.rootBounds=y.rootBounds,this.boundingClientRect=y.boundingClientRect,this.intersectionRect=y.intersectionRect||h(),this.isIntersecting=!!y.intersectionRect;var T=this.boundingClientRect,L=T.width*T.height,A=this.intersectionRect,B=A.width*A.height;L?this.intersectionRatio=B/L:this.intersectionRatio=this.isIntersecting?1:0}function o(y,T){var L=T||{};if(typeof y!="function")throw new Error("callback must be a function");if(L.root&&L.root.nodeType!=1)throw new Error("root must be an Element");this._checkForIntersections=l(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=y,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(L.rootMargin),this.thresholds=this._initThresholds(L.threshold),this.root=L.root||null,this.rootMargin=this._rootMarginValues.map(function(A){return A.value+A.unit}).join(" ")}o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o.prototype.observe=function(y){var T=this._observationTargets.some(function(L){return L.element==y});if(!T){if(!(y&&y.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:y,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},o.prototype.unobserve=function(y){this._observationTargets=this._observationTargets.filter(function(T){return T.element!=y}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var y=this._queuedEntries.slice();return this._queuedEntries=[],y},o.prototype._initThresholds=function(y){var T=y||[0];return Array.isArray(T)||(T=[T]),T.sort().filter(function(L,A,B){if(typeof L!="number"||isNaN(L)||L<0||L>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return L!==B[A-1]})},o.prototype._parseRootMargin=function(y){var T=y||"0px",L=T.split(/\s+/).map(function(A){var B=/^(-?\d*\.?\d+)(px|%)$/.exec(A);if(!B)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(B[1]),unit:B[2]}});return L[1]=L[1]||L[0],L[2]=L[2]||L[0],L[3]=L[3]||L[1],L},o.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(c(t,"resize",this._checkForIntersections,!0),c(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,u(t,"resize",this._checkForIntersections,!0),u(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},o.prototype._checkForIntersections=function(){var y=this._rootIsInDom(),T=y?this._getRootRect():h();this._observationTargets.forEach(function(L){var A=L.element,B=p(A),N=this._rootContainsTarget(A),O=L.entry,x=y&&N&&this._computeTargetAndRootIntersection(A,T),E=L.entry=new i({time:a(),target:A,boundingClientRect:B,rootBounds:T,intersectionRect:x});O?y&&N?this._hasCrossedThreshold(O,E)&&this._queuedEntries.push(E):O&&O.isIntersecting&&this._queuedEntries.push(E):this._queuedEntries.push(E)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},o.prototype._computeTargetAndRootIntersection=function(y,T){if(t.getComputedStyle(y).display!="none"){for(var L=p(y),A=L,B=I(y),N=!1;!N;){var O=null,x=B.nodeType==1?t.getComputedStyle(B):{};if(x.display=="none")return;if(B==this.root||B==e?(N=!0,O=T):B!=e.body&&B!=e.documentElement&&x.overflow!="visible"&&(O=p(B)),O&&(A=f(O,A),!A))break;B=I(B)}return A}},o.prototype._getRootRect=function(){var y;if(this.root)y=p(this.root);else{var T=e.documentElement,L=e.body;y={top:0,left:0,right:T.clientWidth||L.clientWidth,width:T.clientWidth||L.clientWidth,bottom:T.clientHeight||L.clientHeight,height:T.clientHeight||L.clientHeight}}return this._expandRectByRootMargin(y)},o.prototype._expandRectByRootMargin=function(y){var T=this._rootMarginValues.map(function(A,B){return A.unit=="px"?A.value:A.value*(B%2?y.width:y.height)/100}),L={top:y.top-T[0],right:y.right+T[1],bottom:y.bottom+T[2],left:y.left-T[3]};return L.width=L.right-L.left,L.height=L.bottom-L.top,L},o.prototype._hasCrossedThreshold=function(y,T){var L=y&&y.isIntersecting?y.intersectionRatio||0:-1,A=T.isIntersecting?T.intersectionRatio||0:-1;if(L!==A)for(var B=0;B<this.thresholds.length;B++){var N=this.thresholds[B];if(N==L||N==A||N<L!=N<A)return!0}},o.prototype._rootIsInDom=function(){return!this.root||v(e,this.root)},o.prototype._rootContainsTarget=function(y){return v(this.root||e,y)},o.prototype._registerInstance=function(){n.indexOf(this)<0&&n.push(this)},o.prototype._unregisterInstance=function(){var y=n.indexOf(this);y!=-1&&n.splice(y,1)};function a(){return t.performance&&performance.now&&performance.now()}function l(y,T){var L=null;return function(){L||(L=setTimeout(function(){y(),L=null},T))}}function c(y,T,L,A){typeof y.addEventListener=="function"?y.addEventListener(T,L,A||!1):typeof y.attachEvent=="function"&&y.attachEvent("on"+T,L)}function u(y,T,L,A){typeof y.removeEventListener=="function"?y.removeEventListener(T,L,A||!1):typeof y.detatchEvent=="function"&&y.detatchEvent("on"+T,L)}function f(y,T){var L=Math.max(y.top,T.top),A=Math.min(y.bottom,T.bottom),B=Math.max(y.left,T.left),N=Math.min(y.right,T.right),O=N-B,x=A-L;return O>=0&&x>=0&&{top:L,bottom:A,left:B,right:N,width:O,height:x}}function p(y){var T;try{T=y.getBoundingClientRect()}catch(L){}return T?(T.width&&T.height||(T={top:T.top,right:T.right,bottom:T.bottom,left:T.left,width:T.right-T.left,height:T.bottom-T.top}),T):h()}function h(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function v(y,T){for(var L=T;L;){if(L==y)return!0;L=I(L)}return!1}function I(y){var T=y.parentNode;return T&&T.nodeType==11&&T.host?T.host:T}t.IntersectionObserver=o,t.IntersectionObserverEntry=i})(window,document);window.hasOwnProperty("Shorthand")||(window.Shorthand={});window.Shorthand.lazyloadTriggerMargin=window.Shorthand.lazyloadTriggerMargin||"500%";var OS={["nearly visible"]:"100%",["on visibile"]:"0%",["partially visible"]:"-10%",["mostly visible"]:"-40%",["fully visible"]:"0px",["lazyload"]:window.Shorthand.lazyloadTriggerMargin},CS={["nearly visible"]:[0,.001],["lazyload"]:[0,.001],["on visibile"]:[0,.001],["mostly visible"]:[0,.001],["fully visible"]:.99,["partially visible"]:0},Qp=[],em=[];function bt(t){return t.intersectionRatio>=1e-5}function tm(t,e=null){let r=Qp.find(n=>n.triggerPoint===t&&n.root===e);if(!r){let n={rootMargin:OS[t],threshold:CS[t],root:e},i=new IntersectionObserver(o=>{_S(o,t,e)},n);return Qp.push({instance:i,triggerPoint:t,root:e}),i}return r.instance}function _S(t,e,r=null){t.forEach(n=>{rm(n.target,e,r).callbacks.forEach(o=>o(n))})}function HS(t,e,r=null){let n={target:t,triggerPoint:e,callbacks:[],root:r};return em.push(n),n}function rm(t,e,r=null){return em.find(n=>n.target===t&&n.triggerPoint===e&&n.root===r)}function Wr(t,e={}){let r=e.triggerPoint||"on visibile",n=e.root||null;tm(r,n).unobserve(t)}function gt(t,e,r={}){let n=r.triggerPoint||"on visibile",i=r.root||null,o=tm(n),a=rm(t,n,i);a||(a=HS(t,n,i)),a.callbacks.push(e),o.observe(t)}var RS=5,NS=1e3;function FS(t,e){let r={isTracking:!1,trackingStartAt:0,cumulativeLingerTime:0};gt(t,n=>{if(bt(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)/NS);if(i<RS)return;r.cumulativeLingerTime+=i,e(i)}})}function DS(t){let e=/\bTheme-(\w+Section)\b/,r=t.match(e);return r!==null?r[1]:"UnknownTypeSection"}function Wa(t,e){t.forEach((r,n)=>{let i=DS(r.className),o=n.toString().padStart(3,"0")+" "+r.id;FS(r,l=>{e(i,"linger-seconds",o,l)})})}function qS(...t){}function Ui(...t){(window.ga||qS)(...t)}function $a(t){t.on("logEvent",function(...e){Ui("send","event",...e),Ui("shorthand.send","event",...e)}),t.on("logSocial",(...e)=>{Ui("send","social",...e),Ui("shorthand.send","social",...e)})}function BS(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 jS(t){let e=BS(t);e.type==="social"?nm(e.network,"share",e.target):pr(e.type,"click",e.target)}function Ga(){_("a").forEach(e=>e.addEventListener("click",()=>jS(e)))}var Ya=new im.default;function pr(...t){Ya.emit("logEvent",...t)}function nm(...t){Ya.emit("logSocial",...t)}function Ka(){let t=_(".Theme-Section");$a(Ya),Wa(t,pr),Ga()}var hm=ue(Ae());var $i=ue(Ae());var um=ue(am());function Xt(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 zS=lm(),cm=["android","ios","firefoxos","windows.phone","windows.mobile","blackberryos"],US={hasTouch:!1},Ja=null;function ze(){if(Ja===null){let t=new zS;t.sniff(navigator.userAgent),Ja={isMobile:cm.includes(t.os.name),isDesktop:!cm.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 Ja}function VS(t){let e=ze(),r=Object.keys(e).reduce((n,i)=>(n[`DeviceDetect--${i}`]=e[i],n),{});t.className=(0,um.default)(t.className,r)}function Za(t=document.documentElement){var e;VS(((e=window.__shadowRoot)==null?void 0:e.querySelector("article"))||t),WS()}function WS(){Xt(document.documentElement,"touchstart",()=>{US.hasTouch=!0,document.documentElement.classList.add("DeviceDetect--isTouch")})}function Qa(){let{isIE:t,isEdge:e}=ze();if(!t&&!e)return;let r={tallTOMs:[]};$i.default.measure(()=>{_(".DisplayContainerHeight--flex").forEach(i=>{r.tallTOMs.push(i)});function n(){$S(r)}n(),window.addEventListener("resize",n,{passive:!0})})}function $S(t){t.tallTOMs.forEach(e=>{$i.default.measure(()=>{let r=e.querySelector(".FullSize--child"),n=e.querySelector(".DisplayContainer--heightBasis").getBoundingClientRect().height+200,i=n+"px",o=i;if(n<se.getHeight()){e.style.setProperty("height",i);return}e.classList.contains("SplitLayout")&&se.getWidth()<=960&&(i=`calc(${n} + 50vh)`,o="50vh"),$i.default.mutate(()=>{e.style.setProperty("height",i),r.style.setProperty("height",o),_(".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 kn=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.zIndex="-100",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 mr;function dm(t=new kn){mr=t,Qa()}var Gi={getOrientation(){return mr?Gi.getWidth()>Gi.getHeight()?"landscape":"portrait":window.innerWidth>window.innerHeight?"landscape":"portrait"},getHeight(){return mr.getCache().height},getWidth(){return mr.getCache().width},getTop(){return mr.getCache().top},getBottom(){return mr.getCache().bottom},getVhUnitsInPixels(t){return Gi.getHeight()*(t/100)},getDisplayContainer(){return mr}},se=Gi;var GS={textFade:"none",textZoom:"none",textBlur:"none",backgroundFade:"none",backgroundZoom:"none",backgroundBlur:"none",backgroundGrayscale:"none",hasEffects:!1};function fm(t,e=GS){try{return pe(pe({},e),JSON.parse(window.atob(t.getAttribute("data-effects"))))}catch(r){return pe({},e)}}function YS(t,e,r){return t<=e?0:t<=e+r?(t-e)*(1/r):1}function Jt(t,e,r){let n=0,i=0;switch(r){case 0:e<se.getHeight()*.8?(n=.25,i=.15):e>se.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<se.getHeight()*.8?(n=.05,i=.1):e>se.getHeight()*1.2?(n=.35,i=.1):(n=.2,i=.2);break;case 6:case 4:e<se.getHeight()*.8?(n=.4,i=.1):e>se.getHeight()*1.2?(n=.6,i=.1):(n=.5,i=.2);break}return YS(t,n,i)}var es=[];function pm(){es.forEach(t=>t())}function ts(){var r;let t=!!document.querySelector("#editor-viewport"),e=(r=document.querySelector("#editor-viewport"))!=null?r:window;e.removeEventListener("scroll",pm),e.addEventListener("scroll",pm,{passive:!0}),es=[],hm.default.mutate(()=>{[].slice.call(document.querySelectorAll("[data-effects]")).forEach(n=>{let i=fm(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)),l=[].slice.call(n.querySelectorAll(".Theme-Layer-TextBlock-Container"));a.forEach(u=>{u.style.setProperty("overflow","hidden");let f=[].slice.call(u.querySelectorAll("video"));f.length===0&&(f=[].slice.call(u.querySelectorAll("img")).filter(p=>p.className.indexOf("InstantImage__img")===-1)),[].slice.call(u.querySelectorAll(`picture, ${t?".BackgroundVideo__sticky":"video"}`)).forEach((p,h)=>{h!==0&&(p.style.setProperty("position","absolute"),p.style.setProperty("top","0"))}),f.forEach((p,h)=>{p.style.setProperty("transition","none");let v=[];h===0?(i.backgroundBlur==="out"&&v.push("blur(10px)"),i.backgroundGrayscale==="out"&&v.push("grayscale(100%)")):(i.backgroundBlur==="in"&&v.push("blur(10px)"),i.backgroundGrayscale==="in"&&v.push("grayscale(100%)")),p.style.setProperty("filter",v.join(" ")),p.style.setProperty("transform","scale(1)"),p.style.setProperty("opacity","1")})}),l.forEach(u=>{u.parentElement.parentElement.style.setProperty("overflow","visible"),u.parentElement.style.setProperty("overflow","hidden"),u.className.indexOf("Layout__flex--xleft")>-1?u.style.setProperty("transform-origin","0% 0%"):u.className.indexOf("Layout__flex--xright")>-1?u.style.setProperty("transform-origin","100% 0%"):u.style.removeProperty("transform-origin")});function c(){let u=mm(n),f=n.getBoundingClientRect().height;u<=0||(a.forEach(p=>{let h=mm(p),v=[].slice.call(p.querySelectorAll("video"));v.length===0&&(v=[].slice.call(p.querySelectorAll("img")).filter(I=>I.className.indexOf("InstantImage__img")===-1)),v.forEach((I,y)=>{if(y===1&&"currentTime"in I){let L=I,A=v[0];Math.abs(L.currentTime-A.currentTime)>=.2&&(L.currentTime=A.currentTime)}i.backgroundZoom==="in"?I.style.setProperty("transform",`scale(${1+.4*h})`):i.backgroundZoom==="out"&&I.style.setProperty("transform",`scale(${1.4-.4*h})`);let T=1;y===1&&(T=1-Jt(h,f,0),I.style.setProperty("opacity",`${T}`)),i.backgroundFade==="in"?I.style.setProperty("opacity",`${T*Jt(h,f,1)}`):i.backgroundFade==="out"&&I.style.setProperty("opacity",`${T*(1-Jt(h,f,2))}`)})}),l.forEach(p=>{let h=u;i.textZoom==="in"?p.style.setProperty("transform",`scale(${.8+.4*h})`):i.textZoom==="out"&&p.style.setProperty("transform",`scale(${1.2-.4*h})`);let v=[];i.textBlur==="in"&&v.push(`blur(${(20*(1-Jt(h,f,3))).toFixed(2)}px)`),i.textBlur==="out"&&v.push(`blur(${(20*Jt(h,f,4)).toFixed(2)}px)`);let I=1;i.textFade==="in"?I*=Jt(h,f,5):i.textFade==="out"&&(I*=1-Jt(h,f,6)),[].slice.call(p.querySelectorAll(t?".NodeContent":".Theme-Layer-TextBlock-Inner")).forEach(y=>{y.style.setProperty("filter",v.join(" ")),y.style.setProperty("opacity",`${I}`)})}))}c(),es.push(c)})})}function mm(t){let{top:e,height:r}=t.getBoundingClientRect(),n=Math.max(se.getHeight(),r),i=n*2;return 1-(n+e)/i}var km=ue(rs());function ns(){_("[data-lazyload-container][data-lazyload-trigger]").map(e=>({pictures:_("[data-lazyload-item] picture",e),container:e,trigger:e})).forEach(On)}function On({pictures:t,container:e,trigger:r}){let n=!1,i=()=>{n||(Wr(e),n=!0)};return gt(r,a=>{!bt(a)||(t.forEach(l=>KS(l,()=>XS(e))),i())},{triggerPoint:"lazyload"}),i}function KS(t,e){let r=ie("img",t),n=_("source",t);!r||(r.addEventListener("load",e),ym(r),n.forEach(ym))}function ym(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 XS(t){t.classList.remove("Lazyload--isLoading"),t.classList.add("Lazyload--isLoaded")}var is=ue(bm()),JS={isHidden(){var t;return document[(t=is.default)==null?void 0:t.hidden]},addVisibilityChangeListener(t){return document.addEventListener(is.default.visibilityChange,t)}},hr=JS;var ZS=window.setTimeout,QS=window.clearTimeout,Em=0,ex=t=>{let e=Date.now(),r=Math.max(0,16-(e-Em)),n=ZS(()=>t(e+r),r);return Em=e+r,n},tx=t=>QS(t),os=window.requestAnimationFrame?window.requestAnimationFrame.bind(window):ex,FO=window.requestAnimationFrame?window.cancelAnimationFrame.bind(window):tx;var Hn=[],Yi=!1;function rx(t){Hn.forEach(e=>e(t))}function Tm(t){rx(t),Yi&&os(Tm)}var wm=!1;function Ki(){Yi||(wm||(hr.addVisibilityChangeListener(()=>{hr.isHidden()?nx():Ki()}),wm=!0),!hr.isHidden()&&(Yi=!0,os(Tm)))}function nx(){Yi=!1}function ft(t){Hn.indexOf(t)===-1&&Hn.push(t),Ki()}function At(t){let e=Hn.indexOf(t);e!==-1&&Hn.splice(e,1)}var Am=ue(Sm());var Nn=ue(Ae());(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,l,c){var u,f,p,h,v;if((c=c.split(" ")).length<2&&(c[1]=c[0]),a==="x")u=c[0],f=c[1],p="left",h="right",v=l.clientWidth;else{if(a!=="y")return;u=c[1],f=c[0],p="top",h="bottom",v=l.clientHeight}if(u!==p&&f!==p){if(u!==h&&f!==h)return u==="center"||u==="50%"?(l.style[p]="50%",void(l.style["margin-"+p]=v/-2+"px")):void(0<=u.indexOf("%")?(u=parseInt(u,10))<50?(l.style[p]=u+"%",l.style["margin-"+p]=v*(u/-100)+"px"):(u=100-u,l.style[h]=u+"%",l.style["margin-"+h]=v*(u/-100)+"px"):l.style[p]=u);l.style[h]="0"}else l.style[p]="0"},i=function(a){var l=a.dataset?a.dataset.objectFit:a.getAttribute("data-object-fit"),c=a.dataset?a.dataset.objectPosition:a.getAttribute("data-object-position");l=l||"cover",c=c||"50% 50%";var u=a.parentNode;return function(f){var p=window.getComputedStyle(f,null),h=p.getPropertyValue("position"),v=p.getPropertyValue("overflow"),I=p.getPropertyValue("display");h&&h!=="static"||(f.style.position="relative"),v!=="hidden"&&(f.style.overflow="hidden"),I&&I!=="inline"||(f.style.display="block"),f.clientHeight===0&&(f.style.height="100%"),f.className.indexOf("object-fit-polyfill")===-1&&(f.className=f.className+" object-fit-polyfill")}(u),function(f){var p=window.getComputedStyle(f,null),h={"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 v in h)p.getPropertyValue(v)!==h[v]&&(f.style[v]=h[v])}(a),a.style.position="absolute",a.style.width="auto",a.style.height="auto",l==="scale-down"&&(l=a.clientWidth<u.clientWidth&&a.clientHeight<u.clientHeight?"none":"contain"),l==="none"?(n("x",a,c),void n("y",a,c)):l==="fill"?(a.style.width="100%",a.style.height="100%",n("x",a,c),void n("y",a,c)):(a.style.height="100%",void(l==="cover"&&a.clientWidth>u.clientWidth||l==="contain"&&a.clientWidth<u.clientWidth?(a.style.top="0",a.style.marginTop="0",n("x",a,c)):(a.style.width="100%",a.style.height="auto",a.style.left="0",a.style.marginLeft="0",n("y",a,c))))},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 l=0;l<a.length;l++)if(a[l].nodeName){var c=a[l].nodeName.toLowerCase();if(c==="img"){if(r)continue;a[l].complete?i(a[l]):a[l].addEventListener("load",function(){i(this)})}else c==="video"?0<a[l].readyState?i(a[l]):a[l].addEventListener("loadedmetadata",function(){i(this)}):i(a[l])}return!0};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",o):o(),window.addEventListener("resize",o),window.objectFitPolyfill=o}else window.objectFitPolyfill=function(){return!1}}})();function xm(){if(!window)return!1;let t=document.querySelector(".ObjectFit--cover");if(!t)return!1;let r=window.getComputedStyle(t).objectFit,n=ze().isEdge;return(r?/^(contain|cover|fill)$/.test(r):!1)&&!n}function Fn(){Nn.default.measure(()=>{let t=se.getOrientation();Nn.default.mutate(()=>{let e=_(".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`])}),ss(e)})})}function ss(t){window.objectFitPolyfill(t),ix(t)}function ix(t){let{isIE:e,isEdge:r}=ze();!e&&!r||t.forEach(n=>Xi(n))}function Xi(t){let{isIE:e,isEdge:r}=ze();!e&&!r||t.className.indexOf("FullSize__fixedChild")!==-1&&Nn.default.measure(()=>{let n=window.innerWidth>window.innerHeight?"landscape":"portrait",i=Im(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(()=>Xi(t),100);return}let l=a.width>a.height;Nn.default.mutate(()=>{if(l)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[c,u]=t.dataset["object-position"].split(" ").map(h=>parseInt(h,10)),f=t.style.getPropertyValue("margin-left")&&t.style.getPropertyValue("margin-left")!=="0px",p=t.style.getPropertyValue("margin-right")&&t.style.getPropertyValue("margin-right")!=="0px";if(i==="media-right"){if(c===50?t.style.setProperty("transform",`scale(0.5) translate(${o}px, 0%)`):u<50?t.style.setProperty("transform",`scale(0.5) translate(${o}px, -${50-u}%)`):t.style.setProperty("transform",`scale(0.5) translate(${o}px, ${u-50}%)`),f){t.style.setProperty("transform",`translateX(${o-Math.abs(parseFloat(t.style.getPropertyValue("margin-left")))}px)`);return}if(p){t.style.setProperty("transform",`translateX(${Math.abs(parseFloat(t.style.getPropertyValue("margin-right")))}px)`);return}}else{if(u===50?t.style.setProperty("transform",`scale(0.5) translate(-${o}px, 0%)`):u<50?t.style.setProperty("transform",`scale(0.5) translate(-${o}px, -${50-u}%)`):t.style.setProperty("transform",`scale(0.5) translate(-${o}px, ${u-50}%)`),f){t.style.setProperty("transform",`translateX(-${Math.abs(parseFloat(t.style.getPropertyValue("margin-left")))}px)`);return}if(p){t.style.setProperty("transform",`translateX(-${o-Math.abs(parseFloat(t.style.getPropertyValue("margin-right")))}px)`);return}}}})})}function Im(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":Im(t.parentElement)}function Dn(){window.addEventListener("resize",()=>Fn(),{passive:!0}),Fn()}function Lm(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 Ji=Am.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;Xt(t.itemEl,"transitionend",()=>this.activate()),requestAnimationFrame(()=>t.itemEl.classList.add(e.active)),Fn()},onReverseTransition(){let{item:t,classNames:e}=this;Xt(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),Fn()},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 Zi(t){if(t.isRendering)return;t.isRendering=!0;let e=Lm(t.scrollContainer);t.items.forEach(r=>{let n=ox(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 ox(t,e){let r=t.scrollingIn&&e.showDuringScrollIn,n=t.scrollingOut&&e.showDuringScrollOut,i=ax(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 ax(t,e,r){return t>=e&&t<r}var cs={instances:new Map,isRunning:!1},ls=new WeakMap;function sx(t){let e=cs.instances;return e.has(t)||e.set(t,{scrollContainer:t.parentElement,items:[],isRendering:!1,machines:new WeakMap}),e.get(t)}function lx(t,e,r){let n=1/r.length,i=e*n,o=i+n,a=e===0,l=e===r.length-1;return{itemEl:t,index:e,data:{start:i,end:o,showDuringScrollIn:a,showDuringScrollOut:l}}}function cx(){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(l=>l.addEventListener("click",o)),i.forEach(l=>l.addEventListener("click",a))})}function us(){let t=_("[data-background-scrollmation]");cx(),t.forEach(e=>ux(e,{doLazyload:!0})),["resize","orientationchange"].forEach(e=>window.addEventListener(e,Pm,{passive:!0}))}function ux(t,e,r){let n=_("[data-background-scrollmation-item]",t);if(n.length===0)return()=>{};let i=n.map(lx),o=sx(t);return o.items=i.reduce((a,l)=>{let c=o.items.find(u=>u.itemEl===l.itemEl);return c&&(c.data=l.data),[...a,c||l]},[]),o.items.map(a=>e.doLazyload?dx(a,t.parentElement):a).filter(a=>!o.machines.get(a)).forEach(a=>o.machines.set(a,new Ji({item:a,classNames:{prime:"BackgroundScrollmationItem--isPrimed",active:"BackgroundScrollmationItem--isActive"},onItemShown(l){r&&r(l,o.items.indexOf(l))},shouldLinger(l){return!o.items.filter(p=>p!==l).map(p=>o.machines.get(p)).some(p=>p.isActive())}}))),e.doLazyload&&Pm(),ft(Mm),()=>At(Mm)}function dx(t,e){if(!ls.get(t.itemEl)){let n=document.createElement("div");n.classList.add("BackgroundScrollmation__lazyloadTriggerElement"),n.setAttribute("data-item-index",String(t.index)),ls.set(t.itemEl,n),e.appendChild(n);let i={pictures:_("picture",t.itemEl),container:t.itemEl.querySelector("[data-lazyload-container]"),trigger:n};On(i)}return t}function Pm(){(0,km.default)(cs.instances.values()).map(t=>t.items).map(t=>t.map(e=>{let r=ls.get(e.itemEl);Object.assign(r.style,{position:"absolute",top:`${e.data.start*100}%`})}))}function Mm(){cs.instances.forEach(t=>Zi(t))}function Om(t,e,r){var n,i,o;e===void 0&&(e=50),r===void 0&&(r={});var a=(n=r.isImmediate)!=null&&n,l=(i=r.callback)!=null&&i,c=r.maxWait,u=Date.now(),f=[];function p(){if(c!==void 0){var v=Date.now()-u;if(v+e>=c)return c-v}return e}var h=function(){var v=[].slice.call(arguments),I=this;return new Promise(function(y,T){var L=a&&o===void 0;if(o!==void 0&&clearTimeout(o),o=setTimeout(function(){if(o=void 0,u=Date.now(),!a){var B=t.apply(I,v);l&&l(B),f.forEach(function(N){return(0,N.resolve)(B)}),f=[]}},p()),L){var A=t.apply(I,v);return l&&l(A),y(A)}f.push({resolve:y,reject:T})})};return h.cancel=function(v){o!==void 0&&clearTimeout(o),f.forEach(function(I){return(0,I.reject)(v)}),f=[]},h}function fx(t){let e=()=>t.style.opacity="1";["loadeddata","playing","canplaythrough"].forEach(n=>Xt(t,n,e))}function px(t){return t.currentTime>0&&!t.paused&&!t.ended&&t.readyState>2}function Cm(t,e={canControl:!0}){let n=se.getHeight()>se.getWidth()?t.getAttribute("data-portrait"):t.getAttribute("data-landscape"),i=px(t),o=mx(t);o.getAttribute("src")!==n&&(o.setAttribute("src",n),t.load(),e.canControl&&i&&Qi(t))}function mx(t){let e=t.querySelector("source");if(e)return e;let r=document.createElement("source");return r.setAttribute("type",t.getAttribute("data-type")),t.appendChild(r),r}function ds(){let{isSafari:t}=ze();_("[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,fx(o),gt(i,c=>{Cm(o,{canControl:!1}),Xi(o),bt(c)?Qi(o):o.pause()},{triggerPoint:"nearly visible"});let{top:l}=i.getBoundingClientRect();l<se.getHeight()*3&&(Qi(o),setTimeout(()=>{o.readyState<2&&o.paused&&(o.load(),Qi(o))},1e3))});let r=_("[data-background-video] [data-video]"),n=Om(i=>r.forEach(o=>Cm(o)),100);["resize","orientationchange"].forEach(i=>{window.addEventListener(i,n,{passive:!0})})}function Qi(t){try{t.pause()}catch(r){}let e=t.play();typeof e!="undefined"&&e.catch(()=>{t.play().catch(r=>{t.pause()})})}var Rm=ue(rs());var fs=ue(Ae());function ps(t,e){fs.default.measure(()=>{let r=window.innerWidth,i=e.reduce((o,a)=>o.clientHeight>a.clientHeight?o:a,e[0]).clientHeight;fs.default.mutate(()=>{t.style.height=r>=900?`${i}px`:null})})}var Bn=ue(Ae());var qn={items:[],lastSizes:new WeakMap},hx=250;function _m(){let t=yx(document.documentElement);t.length!==0&&(qn.items=t,ft(gx))}function gx(){qn.items.forEach(t=>bx(t))}function yx(t){return _("[data-card-canvas-item]",t).map(vx)}function vx(t){return{el:t,img:_("img",t),caption:t.querySelector(".CardCanvasItem__caption"),heightReferenceEl:t.parentElement.querySelector("[data-card-canvas-height-reference]")}}function bx(t){Ex(t).then(()=>wx(t)).catch(()=>{})}function Ex(t){return new Promise((e,r)=>{Bn.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,l=qn.lastSizes.has(t)?qn.lastSizes.get(t):{width:0,height:0,captionHeight:0};if(i===l.width&&o===l.height&&a===l.captionHeight)return r();l.width=i,l.height=o,l.captionHeight=a,qn.lastSizes.set(t,l);let c=o-a;Bn.default.mutate(()=>{t.img.forEach(u=>u.style.maxHeight=i>=900?`${c}px`:null),e()})})})}function wx(t){return new Promise(e=>{if(!t.caption)return e();function r(n,i){Bn.default.mutate(()=>{let o=Tx(i,{width:n.naturalWidth,height:n.naturalHeight}),a=Math.max(o.width,hx);t.caption.style.maxWidth=`${a}px`,e()})}Bn.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 Tx(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 hs={instances:new Map,isRunning:!1},ms=new WeakMap;function Sx(t){let e=hs.instances;return e.has(t)||e.set(t,{scrollContainer:t.parentElement,items:[],isRendering:!1,machines:new WeakMap}),e.get(t)}function xx(t,e,r){let n=1/r.length,i=e*n,o=i+n,a=e===0,l=e===r.length-1;return{itemEl:t,index:e,data:{start:i,end:o,showDuringScrollIn:a,showDuringScrollOut:l}}}function gs(){_m(),_("[data-card-canvas]").forEach(e=>Ix(e,{doLazyload:!0})),["resize","orientationchange"].forEach(e=>window.addEventListener(e,Nm,{passive:!0}))}function Ix(t,e,r){let n=_("[data-card-canvas-item]",t);if(n.length===0)return;let i=n.map(xx),o=Sx(t);return o.items=i.reduce((a,l)=>{let c=o.items.find(u=>u.itemEl===l.itemEl);return c&&(c.data=l.data),[...a,c||l]},[]),o.items.map(a=>e.doLazyload?Lx(a,t.parentElement):a).filter(a=>!o.machines.get(a)).forEach(a=>o.machines.set(a,new Ji({item:a,classNames:{prime:"CardCanvasItem--isPrimed",active:"CardCanvasItem--isActive"},onItemShown(l){r&&r(l,o.items.indexOf(l))},shouldLinger(l){return!o.items.filter(p=>p!==l).map(p=>o.machines.get(p)).some(p=>p.isActive())}}))),e.doLazyload&&Nm(),ft(Hm),()=>At(Hm)}function Lx(t,e){if(!ms.get(t.itemEl)){let n=document.createElement("div");n.classList.add("BackgroundScrollmation__lazyloadTriggerElement"),n.setAttribute("data-item-index",String(t.index)),ms.set(t.itemEl,n),e.appendChild(n);let i={pictures:_("picture",t.itemEl),container:t.itemEl.querySelector("[data-lazyload-container]"),trigger:n};On(i)}return t}function Nm(){(0,Rm.default)(hs.instances.values()).map(t=>t.items).map(t=>t.map(e=>{let r=ms.get(e.itemEl);Object.assign(r.style,{position:"absolute",top:`${e.data.start*100}%`})}))}function Ax(t,e){Zi(t),ps(e,t.items.map(r=>r.itemEl))}function Hm(){hs.instances.forEach(Ax)}function ys(){}var vs=Symbol("hidden"),gr=Symbol("visible");function Mx(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 kx(t){let{lastCalls:e}=t;eo.forEach(r=>{let i=t.isPageHidden||!t.visibleElements.has(r.element)?vs:gr;e=Mx(r.cb,i,e)}),t.lastCalls=e}function Px(t,e){return t.add(e)}function Ox(t,e){return t.delete(e),t}function Cx(){hr.addVisibilityChangeListener(()=>{let t={isPageHidden:Fm()};Dm(t)})}function Fm(){return hr.isHidden()}var eo=[],to={isPageHidden:Fm(),visibleElements:new Set,lastCalls:[]};function $r(t,e,r="nearly visible"){eo.push({cb:e,element:t});let n={triggerPoint:r};return gt(t,o=>{let{visibleElements:a}=to,l=bt(o)?Px(a,t):Ox(a,t);Dm({visibleElements:l})},n),()=>{Wr(t,n);let o=eo.findIndex(a=>a.element===t&&a.cb===e);eo.splice(o,1)}}function Dm(t){to=pe(pe({},to),t),kx(to)}function bs(){Cx()}var Es=ue(Ae());function ws(){window.addEventListener("resize",()=>qm(),{passive:!0}),qm()}function qm(){Es.default.measure(()=>{let t=se.getOrientation();Es.default.mutate(()=>{_("[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 rt={footer:ie("#StandardFooter"),topLink:ie("#footerTopLink"),logo:ie("#FooterLogo"),logoLink:ie("#footer_shorthand_link"),lower:document.createElement("div"),lowerInner:document.createElement("div")};function Ts(){rt.footer.classList.add("Prime3"),rt.logo.setAttribute("src",rt.logo.getAttribute("src").replace("black","white")),rt.topLink.classList.add("Prime3"),rt.logoLink.classList.add("Prime3"),rt.lower.id="prime3FooterLower",rt.lower.className="prime3FooterLower",rt.lowerInner.id="prime3FooterLowerInner",rt.lowerInner.className="prime3FooterLowerInner";let t=rt.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>"];rt.lowerInner.innerHTML="<div class='Layout prime3-items'>"+e.map(r=>r).join("")+"</div>",rt.footer.after(rt.lower),rt.lower.innerHTML=rt.lowerInner.outerHTML}var Jh=ue(Bm()),ho=ue(Ae()),Zh=ue(zh()),z_=ue(Uh());var Xs=ue(Ae());function Vh(t,e,r){return r!==void 0?AI(t,e,r):t.classList.toggle(e)}function ae(t,e){(Array.isArray(t)?t:[t]).forEach(n=>{Xs.default.mutate(()=>{n.setAttribute("style","display: "+e)})})}function Bt(t){(Array.isArray(t)?t:[t]).forEach(r=>{Xs.default.mutate(()=>{r.parentNode.removeChild(r)})})}function AI(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 Wh=ue(Ae());function mo(t,e){let r=t.clientHeight;t.style.transition="all 0.5s ease-in-out",Wh.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 Qs(){let t=_("#footer_shorthand_link");if(t&&PI(t),G.footer&&Zs){Bt(G.closeButton),Bt(G.footerContents),Bt(G.footerTitles),Bt(G.interactivePanels),Bt(G.mobileHeaders),Bt(G.mobileTitle),Bt(G.openButton),Bt(G.openMessage),ae(G.upper,"block"),G.openMessageContainer.classList.add("PreviewFooter--center-horizontal"),ae(G.upperInner,"flex"),G.footer.style.position="static";return}G.footer&&!Zs&&(G.mobileTitle.forEach((e,r)=>{CI(G.mobileTitle[r],G.footerContents[r],G.footerClose[r])}),$h(G.openButton),$h(G.closeButton),NI(),_I(),Jn(),OI(),window.addEventListener("scroll",Qh,{passive:!0}))}var Js=ze().isMobile,{isIE:MI,isEdge:kI}=ze(),Zs=MI||kI,Mt=!1,Xn=Math.max(document.body.offsetWidth,window.innerWidth),Kn=Xn<=926||Js,G={closeButton:_(".PreviewFooter--close-button"),footer:ie(".PreviewFooter"),footerClose:_(".PreviewFooter--mobile-close"),footerContents:_("[data-PreviewFooter--item]"),footerOuter:ie(".PreviewFooter--outer"),footerTitles:_(".PreviewFooter--col-title"),interactivePanels:ie(".PreviewFooter--interactive-panels"),mailtoLink:ie(".PreviewFooter--mailto"),mobileHeaders:_(".PreviewFooter--mobile-header"),mobileTitle:_(".PreviewFooter--col-title-mobile"),openButton:ie(".PreviewFooter--open-button"),openMessage:ie(".PreviewFooter--message"),openMessageContainer:ie(".PreviewFooter--message-container"),upper:ie(".PreviewFooter--upper"),upperInner:ie(".PreviewFooter--upper-inner")};function PI(t){return(Array.isArray(t)?t:[t]).forEach(r=>{r.setAttribute("href",r.getAttribute("href").replace("__host__",window.location.hostname))})}function OI(){let t=Js?"orientationchange":"resize";window.addEventListener(t,()=>{ho.default.measure(()=>{Xn=Math.max(document.body.offsetWidth,window.innerWidth),Kn=Xn<=926||Js,Mt=!1,Jn()})},{passive:!0})}function Qh(){let t=window.scrollY,e=document.body.offsetHeight,r=window.innerHeight,n=t/(e-r),i=Math.round(n*100);if(Zs||window.Cypress){mo(G.footer,"in"),removeEventListener("scroll",Qh);return}!Mt&&i<80&&mo(G.footer,"out"),!Mt&&i>=80&&mo(G.footer,"in")}function $h(t){let e=()=>{Mt=!Mt,Jn()};(Array.isArray(t)?t:[t]).forEach(n=>{n.addEventListener("click",()=>{e()},{passive:!0})})}var CI=(t,e,r)=>{t.addEventListener("click",()=>{Mt=!0,Jn(e)},{passive:!0}),r.addEventListener("click",()=>{Mt=!1,Jn(e)},{passive:!0})};function Gh(){G.footer.style.position="relative",ho.default.measure(()=>{let t=document.body.offsetHeight;ho.default.mutate(()=>{window.scrollTo({top:t,behavior:"smooth"})})})}function Jn(t=G.footerContents[0]){switch(!0){case(Mt&&!Kn):ae(G.openButton,"none"),ae(G.mobileTitle,"none"),ae(G.mobileHeaders,"none"),Xn>926&&Xn<1100&&ae(G.openMessageContainer,"none"),ae(G.footerContents,"block"),ae(G.openMessage,"block"),ae(G.closeButton,"block"),ae(G.footerTitles,"block"),ae(G.upperInner,"flex"),ae(G.interactivePanels,"flex"),G.openMessageContainer.classList.remove("PreviewFooter--center-horizontal"),G.upper.style.padding="1em 0",Gh();break;case(!Mt&&!Kn):ae(G.mobileTitle,"none"),ae(G.mobileHeaders,"none"),ae(G.closeButton,"none"),ae(G.openMessage,"none"),ae(G.footerContents,"none"),ae(G.interactivePanels,"none"),ae(G.openMessageContainer,"block"),ae(G.openButton,"flex"),ae(G.upper,"block"),ae(G.upperInner,"flex"),G.openMessageContainer.classList.add("PreviewFooter--center-horizontal"),G.footer.style.position="sticky",G.upper.style.padding="0.5em 0";break;case(Mt&&Kn):ae(G.mobileTitle,"none"),ae(G.closeButton,"none"),ae(G.footerTitles,"none"),ae(G.upperInner,"none"),ae(G.footerContents,"none"),ae(t,"block"),ae(G.mobileHeaders,"flex"),ae(G.interactivePanels,"flex"),G.upper.style.padding="1em 0",Gh();break;case(!Mt&&Kn):ae(G.openMessage,"none"),ae(G.openButton,"none"),ae(G.closeButton,"none"),ae(G.footerContents,"none"),ae(G.upper,"block"),ae(G.upperInner,"flex"),ae(G.mobileTitle,"flex"),ae(G.mobileHeaders,"flex"),ae(G.interactivePanels,"flex"),ae(G.openMessageContainer,"block"),G.footer.style.position="sticky",G.upper.style.padding="0.5em 0",G.openMessageContainer.classList.add("PreviewFooter--center-horizontal");break}}function _I(){let t=ie("#PreviewFooter--form");if(!t)return;let e=ie("#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 Yh={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"}},Kh={success:function(t){t.reset();let e=ie("#feedback-success");ae(t,"none"),ae(e,"block"),setTimeout(()=>{ae(e,"none"),ae(t,"block")},4e3)},error:function(t,e){function r(i){n=ie(`${i}`),ae(n,"block"),setTimeout(()=>{ae(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=ie("#generic-error");ae(t,"none"),n.innerText=e,ae(n,"block"),setTimeout(()=>{ae(n,"none"),ae(t,"block")},4e3),console.error(e)}},HI=t=>wi(void 0,null,function*(){t.preventDefault();let e=G.footer.getAttribute("data-story"),r=t.target,n=new FormData(r),i={};n.forEach((a,l)=>{i[l]=Jh.default.sanitize(a)});let o=Object.keys(Yh).reduce((a,l)=>{let c=Yh[l](i[l]);return c?je(pe({},a),{error:c}):a},{});Object.keys(o).length>0&&Kh.error(r,o),Object.keys(o).length===0&&(yield RI(i,e),Kh.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 Xh({mailtoEmail:t,previewURL:e,title:r},n=G.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 NI(){let t=ie(".mailtoForm"),e=new FormData(t),r={mailtoEmail:"",previewURL:document.location,title:""};e.forEach((a,l)=>{r[l]=a}),r.title===""&&(r.title="A Shorthand Story"),Xh(r);let n=ie("#mailtoEmail"),i=ie("#mailtoButton");n.addEventListener("focus",()=>{i.classList.add("share-btn-active")}),n.addEventListener("blur",function(a){r.mailtoEmail=a.target.value,Xh(r),i.classList.remove("share-btn-active")});let o=document.querySelector("#qr-code");o&&Zh.default.toCanvas(o,r.previewURL.toString(),{margin:0,width:116,color:{dark:"#fff",light:"#353535"}})}function eg(t){return(Array.isArray(t)?t:[t]).forEach(r=>{r.setAttribute("href",r.getAttribute("href").replace("__host__",window.location.hostname))})}function el(){let t=ie("#StandardFooter");t&&t.dataset.footer==="prime3"&&fetch("/features.json").then(n=>{n.status===200&&n.json().then(i=>{i.prime3&&Ts()})}).catch(n=>{console.log(n)});let e=_("#footer_shorthand_link");if(e&&eg(e),_("#PreviewFooter"))return Qs()}var Ue=null,Zn=!1;function tl(){FI(),_("[data-footnote]").forEach(t=>qI(t))}function FI(){let t=ie(".Theme-Story");t&&(!Ue||!ie(".Theme-Footnote",t))&&(Ue=document.createElement("div"),Ue.classList.add("Theme-Footnote"),Ue.setAttribute("role","tooltip"),Ue.setAttribute("aria-live","polite"),Ue.setAttribute("aria-atomic","true"),t.appendChild(Ue))}function tg(){return ie("#editor-viewport")||document}function DI(){let t=ie(".Theme-Header");if(!t)return 0;let e=getComputedStyle(t).height,r=parseInt(e,10),n=ie(".Navigation__itemList"),i=n&&window.innerWidth>=1100&&n.childNodes.length?36:0,o=ie(".navbar-editor");return(o?parseInt(getComputedStyle(o).height,10):0)+r+i}function qI(t){t.addEventListener("mouseover",()=>go(t)),t.addEventListener("touchstart",()=>go(t)),t.addEventListener("focus",()=>{setTimeout(()=>go(t),100)}),t.addEventListener("keydown",e=>{switch(e.key){case"Enter":Zn?rl():go(t);break;case"ArrowUp":Zn&&(e.preventDefault(),Ue.firstElementChild.scrollBy(0,-20));break;case"ArrowDown":Zn&&(e.preventDefault(),Ue.firstElementChild.scrollBy(0,20));break}})}function go(t){let e=t.getBoundingClientRect();Ue.style.display="block",Ue.innerHTML=decodeURIComponent(t.getAttribute("data-footnote"));let r=Ue.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),Ue.style.top=`${i}px`,Ue.style.left=`${o}px`,Ue.classList.remove("Theme-Position-Top"),Ue.classList.remove("Theme-Position-Bottom"),Ue.classList.add(n?"Theme-Position-Top":"Theme-Position-Bottom"),document.addEventListener("mouseover",yo),document.addEventListener("touchstart",yo),tg().addEventListener("scroll",rg),Zn=!0}function rl(){Zn=!1,Ue.style.display="",document.removeEventListener("mouseover",yo),document.removeEventListener("touchstart",yo),tg().removeEventListener("scroll",rg)}function rg(){rl()}function yo(t){let e=t.target;!e.closest(".Theme-Layer-BodyText-Highlight")&&!e.closest(".Theme-Footnote")&&rl()}var nl=ue(Ae());var ng="HideOffscreen__media--onscreen";function BI(t){nl.default.mutate(()=>{t.forEach(e=>e.classList.remove(ng))})}function jI(t){nl.default.mutate(()=>{t.forEach(e=>{e.classList.add(ng),ss([e])})})}function il(){_(".HideOffscreen--container").map(t=>({container:t,children:_(".HideOffscreen__media",t)})).filter(t=>t.children&&t.children.length>0).forEach(t=>{$r(t.container,e=>{switch(e){case gr:jI(t.children);break;case vs:BI(t.children);break}},"on visibile")})}function ol(){}function zI(){let t=document.createElement("div");return t.style.display="flex",t.style.display==="flex"}function al(){zI()||document.documentElement.classList.add("Layout--flexboxUnsupported")}function sl(){al()}var og=ue(Ae());var nt=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=_("[data-media-gallery-index]",this.element),this.element.addEventListener("click",()=>{this.close()}),_("img, .Videoplayer, .Theme-Caption",this.element).forEach(a=>{a.addEventListener("click",l=>l.stopPropagation())});let r=ie('[data-action="previous"]',this.element);r&&r.addEventListener("click",a=>{a.stopPropagation(),this.prev()});let n=ie('[data-action="next"]',this.element);n&&n.addEventListener("click",a=>{a.stopPropagation(),this.next()}),ie('[data-action="close"]',this.element).addEventListener("click",a=>{a.stopPropagation(),this.close()}),this.element.addEventListener("touchmove",a=>a.preventDefault());let o=-1;_("img, .Videoplayer",this.element).forEach(a=>{a.addEventListener("touchstart",l=>{o=l.touches[0].clientX}),a.addEventListener("touchend",l=>{let c=l.changedTouches[0].clientX-o,u=window.innerWidth*.1;c<-u?this.next():c>u&&this.prev(),o=-1})})}getFocusable(){let e=_("*[data-action]",this.element),r=ie(`[data-media-gallery-index="${this.currentMediaIndex}"].active [tabindex]`,this.element);return e.concat(r).filter(n=>n)}open(e,r){var n;(n=nt.current)==null||n.close(!1),_("video",this.element).forEach(i=>i.setAttribute("playsinline","true")),_([".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"),nt.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"),_("video",this.element).forEach(r=>r.pause()),e&&typeof this.onClose=="function"&&this.onClose(),nt.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"),_("video",this.element).forEach(n=>n.pause()),this.currentMediaIndex=e,ie(`[data-media-gallery-index="${this.currentMediaIndex}"]`,this.element).classList.add("active"),this.counter.innerText=`Item ${e+1} of ${this.media.length}`}};function ll(){let t={};_("[data-media-gallery-lightbox]").forEach(r=>{let n=r.getAttribute("data-media-gallery-lightbox");t[n]=new nt(r)}),_("[data-media-gallery]").forEach(r=>{let n=r.getAttribute("data-media-gallery");_("[data-cell-index]",r).forEach(i=>{i.addEventListener("click",()=>e(n,i)),i.addEventListener("keydown",o=>{nt.current||o.code==="Enter"&&(o.preventDefault(),o.stopPropagation(),e(n,i))})})}),window.removeEventListener("keydown",ig),window.addEventListener("keydown",ig);function e(r,n){let i=parseInt(n.getAttribute("data-cell-index"),10);UI(),t[r].open(i,()=>{VI(),n.focus()})}}function ig(t){if(!!nt.current&&se.getHeight()!==screen.height)switch(t.code){case"Tab":let e=nt.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")||nt.current.next();break;case"ArrowLeft":t.preventDefault(),t.stopPropagation(),document.activeElement.className.includes("plyr")||nt.current.prev();break;case"Escape":t.preventDefault(),t.stopPropagation(),nt.current.close();break}}function UI(){_("[data-media-gallery] video").forEach(t=>t.pause())}function VI(){_("[data-media-gallery] video").forEach(t=>{og.default.measure(()=>{let e=t.getBoundingClientRect();e.top<se.getHeight()&&e.bottom>0&&t.play()})})}function cl(){let{isIE:t,isEdge:e}=ze();(t||e)&&(window.addEventListener("mousewheel",r=>{let{wheelDelta:n,wheelDeltaY:i}=r;r.preventDefault(),Qn(1-(i||n))}),document.body.addEventListener("keydown",r=>{switch(r.keyCode){case 33:r.preventDefault(),Qn(window.innerHeight*-.8);break;case 34:r.preventDefault(),Qn(window.innerHeight*.8);break;case 38:r.preventDefault(),Qn(-120);break;case 40:r.preventDefault(),Qn(120);break;default:return}}))}function Qn(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 ug=ue(sg());var ul=ue(Ae());var cg="Theme-ActiveNavigationBarItem";function WI(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(GI)}function GI(t){t.parentElement.classList.remove(cg)}function YI(t){t.parentElement.classList.add(cg)}function KI(t){let e=se.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 lg={lastMostVisible:!1};function XI(t){ul.default.measure(()=>{let e=KI(t.slice().reverse());lg.lastMostVisible!==e&&ul.default.mutate(()=>{$I(t.map(r=>r.navItem)),e&&YI(e.navItem),lg.lastMostVisible=e})})}function dl(t){let e=WI(t);if(e.length===0)return;let r=()=>XI(e);["scroll","resize"].forEach(n=>window.addEventListener(n,r)),setTimeout(r,1e3),r()}function fl(){let t=_(".Navigation"),e=_(".Navigation__hamburger");if(!t.length||!e.length)return;let r=t[0],n=e[0],i=_(".Navigation__item",r);JI(n,r),QI(i,r,n),ZI(n)}function JI(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 ZI(t){t.classList.remove("Navigation__hamburger--initializing")}function QI(t,e,r){let n=()=>{e.classList.remove("Navigation--isActive"),r.setAttribute("aria-expanded","false")};t.forEach(i=>i.addEventListener("click",n))}var eL="[data-story-nav-item]",tL=-2;function rL(){return _("[data-fixed-story-element]").reduce((e,r)=>e+r.getBoundingClientRect().height,tL)}function pl(t=eL){let e=_(t);dl(e),fl();let r=rL();ug.setup(500,r)}var yl=ue(Ae());var nL={["clientWidth"]:["padding-left","padding-right","border-left-width","border-right-width"],["clientHeight"]:["padding-top","padding-bottom","border-top-width","border-bottom-width"]};function dg(t){return fg(t,"clientWidth")}function ei(t){return fg(t,"clientHeight")}function iL(t,e){switch(e){case"clientWidth":return t.clientWidth;case"clientHeight":return t.clientHeight}}function fg(t,e){let r=nL[e];try{let n=window.getComputedStyle(t),i=r.reduce((o,a)=>{let l=n.getPropertyValue(a);return o+oL(l)},0);return iL(t,e)-i}catch(n){throw new Error(`Couldn't get styles for element ${t} in getInnerDimension`)}}function oL(t){return parseInt(t,10)}var EL=Vg(),Wg={elements:[]},wL=EL();function bl(t){let{elements:e}=Wg;if(e.findIndex(n=>n.element===t)>-1)return;let r={element:t,onResize(){vl(t)}};e.push(r),vl(t,!0),wL.listenTo(r.element.parentElement,r.onResize),bo()}function TL(){let{elements:t}=Wg;t.forEach(e=>vl(e.element))}function vl(t,e=!1){yl.default.measure(()=>{let r=t.parentNode,n=dg(r),i=t.clientWidth;(n!==i||e)&&yl.default.mutate(()=>{t.style.width=`${n}px`})})}function bo(){let t=document.getElementsByClassName("ParentWidth");Array.prototype.forEach.call(t,bl),TL()}var $g={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 SL(t,e){let r=Math.round(se.getWidth()/2-e.popupWidth/2),n=0;se.getHeight()>e.popupHeight&&(n=Math.round(se.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(c=>`${c}=${i[c]}`).join(","),a="social-widget-"+e.networkName.replace(/\s+/,"-"),l=window.open(t,a,o);l?l.focus():location.href=t}function xL(t){t.preventDefault();let e=t.currentTarget,r=e.getAttribute("data-social-share"),n=$g[r],i=e.href;SL(i,n)}function IL(t){let e=t.getAttribute("data-social-share");e in $g?t.addEventListener("click",xL,{passive:!1}):console.error(`Social Share button of type ${e} is not supported.`)}function ni(t="[data-social-share]"){_(t).forEach(IL)}var ii=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,l)=>{let c=this.compileNavigationItem(l);return c&&a.push(c),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=je(pe({},e.link),{href:this.getProjectUrl(e.link.href)})),r}compileNavigationItem({label:e,nodeId:r,url:n}){var a,l,c;if(n)return{label:e,url:n,children:[]};let i=this.index.nodes[r];if(!i)return;let o=(l=(a=i.children)==null?void 0:a.reduce((u,f)=>{let p=this.index.nodes[f];return p!=null&&p.page&&u.push({label:p.label||this.index.pages[p.page].title||"Untitled story",url:this.getPageUrl(p.page)}),u},[]))!=null?l:[];return i.page&&(n=this.getPageUrl(i.page)),{label:e||i.label||((c=this.index.pages[i.page])==null?void 0:c.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){var n;let r=this.index.pages[e];if(r)return{pageId:e,url:this.getPageUrl(e),title:r.title,description:r.description,publishedAt:new Date(r.at),tags:(n=r.tags)!=null?n:[],cover:this.compileCover(r.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:l,w:c})=>{let u=r?this.getPageAssetUrl(r,l):l;return c?`${u} ${c}w`:u}).join(",")}))}}}getProjectPageIds(){return Object.keys(this.index.pages)}getTaggedPageIds(e){let r=new Set(e);return Object.keys(this.index.pages).filter(n=>{var i,o;return(o=(i=this.index.pages[n])==null?void 0:i.tags)==null?void 0:o.find(a=>r.has(a))})}getSubpageIds(e,r,n){var a;r||(r=this.index.pages[n].nodeId),e==="siblings"&&(r=Object.entries(this.index.nodes).reduce((l,[c,u])=>u.children.includes(r)?c:l,r));let i=this.index.nodes[r];return((a=i==null?void 0:i.children)!=null?a:[]).reduce((l,c)=>{let u=this.index.nodes[c];return u.page&&u!==i&&u.page!==n&&l.push(u.page),l},[])}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 El(){if(!window.hasOwnProperty("$shproject")||window.$shproject===void 0)return;let t=!1,e={create:()=>{if(!t){t=!0;let r=window.$shproject,n=Promise.resolve(null);r.index?n=Promise.resolve(new ii(r,r.index)):n=new Promise((i,o)=>{let a=document.createElement("script");a.src=`${r.baseUrl}project.js`,a.addEventListener("load",()=>{i(new ii(window.$shproject,window.$shproject.index))}),a.addEventListener("error",o),ie("#article").appendChild(a)}),window.Shorthand.project.get=()=>n}},get:()=>wi(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(),window.Shorthand.project.get().then(r=>{!r||(LL(r),AL(r),ni(),kL(r))})}function LL(t){let e=ie("[data-project-header]"),r=t.getHeaderNavigation();!e||!r.isEnabled||(e.classList.remove("Theme-HeaderContainer--hidden"),Gg(e,r),Yg(e,r,"header"),Kg(r,"header"))}function AL(t){let e=ie("[data-project-footer]"),r=t.getFooterNavigation();!e||!r.isEnabled||(Gg(e,r),Yg(e,r,"footer"),Kg(r,"footer"))}function Gg(t,e){var n;if(t.style.removeProperty("display"),e.color){t.style.backgroundColor=(n=e.color)==null?void 0:n.color;let i=_(".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=ie("[data-project-logos]",t);r&&CL(e.logos,e.showThemeLogos,r)}function Yg(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 l;return a.style.backgroundColor=(l=e.fontColor)==null?void 0:l.color}),e.items.forEach(a=>{var u,f,p;let l=document.createElement("li");l.style.color=(u=e.fontColor)==null?void 0:u.color,l.className="Navigation__item Theme-NavigationBarItem";let c=document.createElement(a.url?"a":"span");if(c.className="Theme-NavigationLink",c.setAttribute("data-story-nav-item","true"),c.textContent=a.label,a.url&&(c.href=a.url),l.appendChild(c),i.appendChild(l),a.children.length>0){l.classList.add("hasMenu");let h=document.createElement("ul");if(h.className="Navigation__subMenu Theme-ProjectNavigation-subMenu",h.style.backgroundColor=(f=e.color)==null?void 0:f.color,h.setAttribute("role","menu"),r==="header"){let v=document.createElement("button");v.className="Navigation__button",v.style.color=(p=e.fontColor)==null?void 0:p.color,v.setAttribute("aria-label",`show submenu for ${a.label}`),v.addEventListener("click",function(){let y=this.parentNode;y.className.includes("isOpen")?(y.classList.remove("isOpen"),this.setAttribute("aria-expanded","false")):(y.classList.add("isOpen"),this.setAttribute("aria-expanded","true"))});let I=document.createElement("span");I.className="menuCaret",v.appendChild(I),l.addEventListener("mouseenter",function(){this.classList.add("isOpen"),v.setAttribute("aria-expanded","true")}),l.addEventListener("mouseleave",function(){this.classList.remove("isOpen"),v.setAttribute("aria-expanded","false")}),l.appendChild(v)}a.children.forEach(v=>{let I=document.createElement("li");I.className="Navigation__item Theme-NavigationBarItem Theme-ProjectNavigation-subItem",I.setAttribute("role","menuitem");let y=document.createElement("a");y.className="Theme-NavigationLink",y.textContent=v.label,y.href=v.url,I.appendChild(y),h.appendChild(I)}),l.appendChild(h)}})}function Kg(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 ML(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 kL(t){_("[data-related-stories]").forEach(e=>{let r=ie("ul[data-related-stories-list]",e);if(r)return PL(t,e,r);let n=ie("ul[data-related-stories-site-map]",e);if(n)return OL(t,n)})}function PL(t,e,r){var N,O,x;let n=r.getAttribute("data-page"),i=(N=r.getAttribute("data-filter"))!=null?N:"list",o=(O=r.getAttribute("data-sort-order"))!=null?O:"Recently published",a=r.hasAttribute("data-filter-pages")?JSON.parse(r.getAttribute("data-filter-pages")):[],l=r.hasAttribute("data-shapes")?JSON.parse(r.getAttribute("data-shapes")):{},c=r.getAttribute("data-default-shape"),u=r.hasAttribute("data-external-links")?JSON.parse(r.getAttribute("data-external-links")):[],f;r.hasAttribute("data-limit")&&(f=(x=parseInt(r.getAttribute("data-limit")))!=null?x:void 0);let p=a;switch(i){case"subtree":let{relation:E,relationNodeId:w}=r.hasAttribute("data-filter-subtree")?JSON.parse(r.getAttribute("data-filter-subtree")):{relation:"children",relationNodeId:n};p=t.getSubpageIds(E,w,n);break;case"tags":let C=r.hasAttribute("data-filter-tags")?JSON.parse(r.getAttribute("data-filter-tags")):[];p=t.getTaggedPageIds(C).filter(q=>q!==n);break}let h=p.map(E=>{let w=u.find(C=>C.id===E);return w?t.externalLinkToProjectPage(w):t.getProjectPage(E)}).filter(E=>E);switch(o){case"Recently published":h.sort((C,q)=>q.publishedAt.getTime()-C.publishedAt.getTime());break;case"A - Z":h.sort((C,q)=>C.title.localeCompare(q.title));break;case"Z - A":h.sort((C,q)=>q.title.localeCompare(C.title));break;case"Random":ML(h);break;case"Manually sorted":let E=[],w=[...h];for(let C of a){let q=h.find(U=>U.pageId===C);q&&(E.push(q),w=w.filter(U=>U.pageId!==C))}h=E.concat(w)}let v=h.slice(0,f);if(v.length===0){e.remove();return}let I=ie('[data-template="item"]',r);if(!I){e.remove();return}_("[data-template]",r).forEach(E=>{E.removeAttribute("data-template"),I.remove(),I.style.removeProperty("display")});let y=_("a[data-item-url]",I),T=_("img[data-item-media]",I),L=_("[data-item-title]",I),A=_("[data-item-description]",I),B=_("[data-item-image]",I);v.forEach(E=>{y.forEach(C=>C.setAttribute("href",E.url)),E.cover&&(T.forEach(C=>C.setAttribute("src",E.cover.url)),T.forEach(C=>C.setAttribute("alt",`Cover image for ${E.title}`))),L.forEach(C=>C.textContent=E.title),A.forEach(C=>{var q;return C.textContent=(q=E.description)!=null?q:""}),B.forEach(C=>{if(l){let q=c||l[E.pageId];C.className=`crop-${q}`}}),L.forEach(C=>C.textContent=E.title),A.forEach(C=>{var q;return C.textContent=(q=E.description)!=null?q:""});let w=I.cloneNode(!0);E.cover?_("source[data-item-mediasource]",w).forEach(C=>{E.cover.sources.forEach(q=>{let U=C.cloneNode(),V=C.nextSibling;U.srcset=q.srcSet,U.type=q.type,C.parentElement.insertBefore(U,V)}),C.remove()}):_(".related-story-image",w).forEach(C=>C.remove()),r.appendChild(w)})}function OL(t,e){let r=_("[data-template]",e),n=ie('[data-template="page"]',e),i=ie('[data-template="node"]',e);r.forEach(a=>{a.removeAttribute("data-template"),a.remove(),a.style.removeProperty("display")});function o(a,l){var y;let c=t.index.nodes[a];if(!c)return;let u=t.index.pages[c.page];if(!u&&!c)return;let p=(u?n:i).cloneNode(!0),h=c.page?t.getPageUrl(c.page):"",v=u?u.title:c.label;_("[data-item-title]",p).forEach(T=>{T.textContent=v}),_("a[data-item-url]",p).forEach(T=>{T.setAttribute("href",h)});let I=ie("ul[data-item-children]",p);I&&((y=c.children)!=null?y:[]).forEach(T=>o(T,I)),l.appendChild(p)}t.index.roots.forEach(a=>o(a,e))}function CL(t,e,r){let n=_("[data-template]",r),i=ie('[data-template="link"]',r),o=ie('[data-template="no-link"]',r);if(!i||!o){r.remove();return}e||_("[data-themelogos]",r).forEach(l=>l.remove()),n.forEach(a=>a.remove());for(let{link:a,media:l}of t){let u=(a?i:o).cloneNode(!0),f=Object.values(l).reduce((p,{alt:h})=>p||h,"");for(let p of _("img[data-logo-img]",u))_L(p,l,f)||p.remove();if(a)for(let p of _("a[data-logo-link]",u))HL(p,a);r.appendChild(u)}}function _L(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 wl=ue(Eo());function Me(t){return typeof t=="number"?Math.round(t):{x:Me(t.x),y:Me(t.y),z:t.z}}function Jg(t,e){return Math.abs(Math.hypot(t.x-e.x,t.y-e.y))}var it=null;function wr(t=!1){if(it===null||t){it={};let e=document.createElement("div");e.style.setProperty("display","none"),document.body.appendChild(e),e.className="Theme-Scrollpoints";let r=window.getComputedStyle(e);it.background=r.backgroundColor,it.backgroundOpacity=parseFloat(r.getPropertyValue("opacity")),e.className="Theme-Scrollpoints-Marker",r=window.getComputedStyle(e),it.markerSize=parseInt(r.getPropertyValue("width"),10),it.markerLineColor=r.getPropertyValue("border-color"),it.markerLineWidth=parseInt(r.getPropertyValue("border-width"),10),e.className="Theme-Scrollpoints-Highlight",r=window.getComputedStyle(e),it.lineWidth=parseInt(r.getPropertyValue("border-width"),10),it.lineDash=r.getPropertyValue("border-style"),it.lineColor=r.getPropertyValue("border-color"),it.transitionDuration=parseFloat(r.getPropertyValue("transition-duration"))||.5,it.noHighlightsBehaviour=r.getPropertyValue("background-size")==="cover"?"cover":"contain",window.matchMedia&&window.matchMedia("(prefers-reduced-motion)").matches&&(it.transitionDuration=0),window.Cypress&&(it.transitionDuration=0)}return it}function Zg(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,l=r-1,c=e+1,f=[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],h=[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],v=[],I=[],y=[],T=[],L=[],A=[],B=3,N,O,x,E;for(;B-- >0;){let w=0,C=0;for(let q=0;q<r;q++){let U=o[w]*c,V=o[w+1]*c,Q=o[w+2]*c,he=o[w+3]*c;for(let ee=1;ee<=e;ee++)N=w+((ee>a?a:ee)<<2),U+=o[N++],V+=o[N++],Q+=o[N++],he+=o[N];for(let ee=0;ee<n;ee++)v[C]=U,I[C]=V,y[C]=Q,T[C]=he,q===0&&(L[ee]=((N=ee+c)<a?N:a)<<2,A[ee]=(N=ee-e)>0?N<<2:0),O=w+L[ee],x=w+A[ee],U+=o[O++]-o[x++],V+=o[O++]-o[x++],Q+=o[O++]-o[x++],he+=o[O]-o[x],C++;w+=n<<2}for(let q=0;q<n;q++){let U=q,V=v[U]*c,Q=I[U]*c,he=y[U]*c,ee=T[U]*c;for(let H=1;H<=e;H++)U+=H>l?0:n,V+=v[U],Q+=I[U],he+=y[U],ee+=T[U];C=q<<2;for(let H=0;H<r;H++)o[C+3]=E=ee*f>>>h,E>0?(E=255/E,o[C]=(V*f>>>h)*E,o[C+1]=(Q*f>>>h)*E,o[C+2]=(he*f>>>h)*E):o[C]=o[C+1]=o[C+2]=0,q===0&&(L[H]=((N=H+c)<l?N:l)*n,A[H]=(N=H-e)>0?N*n:0),O=q+L[H],x=q+A[H],V+=v[O]-v[x],Q+=I[O]-I[x],he+=y[O]-y[x],ee+=T[O]-T[x],C+=n<<2}}t.putImageData(i,0,0)}var oi=class{constructor(e){this.onTick=e}start(e,r,n,i){this.from=Me(e),this.to=Me(r),this.duration=n,this.bounce=i,!(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=Qg(n),o=NL(n)*this.bounce;this.onTick({x:Me(this.from.x+(this.to.x-this.from.x)*i),y:Me(this.from.y+(this.to.y-this.from.y)*i),z:this.from.z+(this.to.z-this.from.z)*Qg(n)-o}),requestAnimationFrame(this.tick)}}}},Qg=t=>1-(1-t)*(1-t),NL=t=>1-4*t*t+4*t-1;var ey=.1,ty=2.5,ai=class{constructor(e,r,n,i){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._isReady=!1;this._isRendering=!1;this.canvas=e,this.offscreenCanvas=document.createElement("canvas"),this.ctx=this.offscreenCanvas.getContext("2d",{alpha:!1}),this.ctx.imageSmoothingEnabled=!1,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 oi(this.onTweenTick.bind(this)),this._render=this._render.bind(this),this.render=this.render.bind(this),this.adjustSize(),this._isReady=!0}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),Zg(n,10),this.isBackgroundImageReady=!0,this.render()}),r.src=e}adjustSize(){let e=se.getWidth(),r=window.innerHeight,n=1;typeof window.devicePixelRatio=="number"&&(n=Math.min(2,window.devicePixelRatio)),this.canvas.width=e*n,this.canvas.height=r*n,this.canvas.style.width=`${e}px`,this.canvas.style.height=`${r}px`,this.canvasWidth=e*n,this.canvasHeight=r*n,this.offscreenCanvas.width=e*n,this.offscreenCanvas.height=r*n,this.render()}render(){this._isReady?requestAnimationFrame(this._render):requestAnimationFrame(this.render)}_render(){if(this._isRendering)return;this._isRendering=!0;let e=this.ctx,r=wr(),n=1/this.zoom;e.fillStyle="black",e.fillRect(0,0,this.canvasWidth,this.canvasHeight),this.isBackgroundImageReady&&this.backgroundImage.width>0&&this.backgroundOpacity<1&&(e.imageSmoothingEnabled=!0,e.drawImage(this.backgroundImage,0,0,this.backgroundImage.width,this.backgroundImage.height,0,0,this.canvasWidth,this.canvasHeight),e.imageSmoothingEnabled=!1),e.fillStyle=this.backgroundColor,e.globalAlpha=this.backgroundOpacity,e.fillRect(0,0,this.canvasWidth,this.canvasHeight),e.globalAlpha=1,e.transform(this.zoom,0,0,this.zoom,Me(this.canvasWidth/2),Me(this.canvasHeight/2)),this.image.width>0&&e.drawImage(this.image,-this.x,-this.y),this.highlights.forEach(i=>{var o;if(i.isHidden||(e.strokeStyle=i.color?i.color:r.lineColor,e.lineWidth=Me(r.lineWidth*n),e.setLineDash([]),e.strokeRect(-this.x+i.x,-this.y+i.y,i.width,i.height)),i.hasDot){let a=new Path2D;a.arc(-this.x+i.dotX,-this.y+i.dotY,Me(r.markerSize*n),0,2*Math.PI),e.fillStyle=(o=i.dotColor)!=null?o:r.lineColor,e.fill(a),e.setLineDash([]),e.strokeStyle=r.markerLineColor||"black",e.lineWidth=Me((r.markerLineWidth||1)*n),e.stroke(a)}}),e.setTransform(1,0,0,1,0,0),this.finalCtx.drawImage(this.offscreenCanvas,0,0),this._isRendering=!1}setBounds(e,r){this.maxX=e,this.maxY=r}setHighlights(e,r){this.noHighlightsBehaviour=wr().noHighlightsBehaviour;let n=this.getDimensions();this.highlights=[];let i=this.getDimensions(),o=this.getAutoZoom(i.width,i.height),a=wr().transitionDuration,l=0;if(e.length>0){this.highlights=e.map(f=>je(pe({},f),{x:Me(f.x/100*this.maxX),y:Me(f.y/100*this.maxY),width:Me(f.width/100*this.maxX),height:Me(f.height/100*this.maxY),dotX:Me(f.dotX/100*this.maxX),dotY:Me(f.dotY/100*this.maxY)})),i=this.getDimensions(),o=this.getAutoZoom(i.width,i.height);let c=Jg(n,i)*100/this.maxX,u=this.getFuzzyDurationAndZoomBounce(c,wr().transitionDuration,o);a=u.duration,l=u.bounce}this.tween.start({x:this.x,y:this.y,z:this.zoom},{x:i.x+i.width/2,y:i.y+i.height/2,z:o},r===this.key?0:a,l),this.key=r}getFuzzyDurationAndZoomBounce(e,r,n){let i=r,o=0;return e>40&&(i*=1.2,this.zoom>1.2&&n>1.2&&(o=.3)),e>60&&(i*=1.3,this.zoom>1.2&&n>1.2&&(o=.7)),e>80&&(i*=1.4),{duration:i,bounce:o}}getDimensions(){let e=this.highlights.reduce((r,n)=>{let i=pe({},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(se.getWidth()<620)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,l=i?Math.min(a,o):Math.max(a,o);return(0,wl.default)(l,ey,ty)}setZoom(e){typeof e=="undefined"?this.zoom=this.getAutoZoom():this.zoom=e,this.zoom=(0,wl.default)(this.zoom,ey,ty),this.setCenter(this.x,this.y)}setCenter(e,r){typeof e!="undefined"?(this.x=Me(e),this.y=Me(r)):(this.x=Me(this.maxX/2),this.y=Me(this.maxY/2))}onTweenTick(e){isNaN(e.x)||isNaN(e.y)||isNaN(e.z)||(this.setCenter(e.x,e.y),this.setZoom(e.z),this.render())}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)}};function Tl(){_("[data-scrollpoints]").forEach(t=>FL(t))}function FL(t){let e=t.querySelector("[data-media]"),r=document.createElement("canvas");e.appendChild(r);let n,i,o=new Image;o.addEventListener("load",()=>{a.setInstantSrc(e.getAttribute("data-instant")),a.setBounds(o.naturalWidth,o.naturalHeight),a.adjustSize(),c(!0)}),o.src=e.getAttribute("data-media");let a=new ai(r,o,e.getAttribute("data-color"),parseFloat(e.getAttribute("data-opacity")||"10")/100);DL(t,r,a);let l=_("[data-box]",t);a.key=l[0].getAttribute("data-item-id");function c(h=!1){if(i=ry(t),i!==n||h===!0){if(n=i,!i)return;qL(i,a);let v=i.getAttribute("data-item-id");if(v&&window.dispatchEvent(new CustomEvent("scrollpoint:active-point-changed",{detail:{itemId:v}})),i.getAttribute("data-box")==="")a.setHighlights([],v);else{let I=JSON.parse(atob(i.getAttribute("data-box"))).map(y=>({x:parseFloat(y.x),y:parseFloat(y.y),width:parseFloat(y.width),height:parseFloat(y.height),isHidden:!!y.isHidden,color:y.color||"red",hasDot:!!y.hasDot,dotX:parseFloat(y.dotX),dotY:parseFloat(y.dotY),dotColor:y.dotColor}));a.setHighlights(I,v)}}}function u(){c()}function f(){a.adjustSize(),c(!0)}return(document.getElementById("editor-viewport")||document).addEventListener("scroll",u,{passive:!0}),window.addEventListener("resize",f,{passive:!0}),()=>{wr(!0);let h=e.getAttribute("data-media");o.src!==h&&(o.src=h),a.setInstantSrc(e.getAttribute("data-instant")),l=_("[data-box]",t),a.backgroundColor=e.getAttribute("data-color"),a.backgroundOpacity=parseFloat(e.getAttribute("data-opacity"))/100,c(!0)}}function DL(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=ry(t);window.dispatchEvent(new CustomEvent("scrollpoint:manage-highlights",{detail:{sectionId:n,activeItemId:o.getAttribute("data-item-id")}}))}})}function ry(t){let e=window.innerHeight*.9,r=t.querySelector("[data-media]"),n=_("[data-box]",t),i,o=t.getBoundingClientRect();return o.bottom<se.getTop()+se.getHeight()?(i=n[n.length-1],r.setAttribute("data-attach","after")):o.top<se.getTop()?(i=n.reduce((a,l)=>l.getBoundingClientRect().top<e?l:a,n[0]),r.setAttribute("data-attach","during")):(i=n[0],r.setAttribute("data-attach","before")),i}function qL(t,e){switch(t.getAttribute("data-align")){case"left":e.bias="right";break;case"right":e.bias="left";break;default:e.bias="none"}}var wo=ue(Ae());var ny=!1;function xl(t){t&&(Zr.getTopOffset=t),_("[data-scrollymoly]").forEach(BL),window.addEventListener("orientationchange",()=>Sl()),ny||(ny=!0,window.addEventListener("resize",zL),ft(Sl))}var Zr={moles:[],getTopOffset(t){return t.getBoundingClientRect().top+document.documentElement.scrollTop}};function BL(t){let e=t.getAttribute("data-scrollymoly");try{let r=JSON.parse(e).map(o=>je(pe({},o),{offset:Number.isFinite(o.offset)?o.offset:0})),n=t.closest("[data-scrollymoly-basis]"),i=Zr.getTopOffset(n);jL({element:t,basisEl:n,effects:r,topOffset:i,state:{}})}catch(r){console.error(r)}}function jL(t){Zr.moles.push(t),Sl()}function Sl(){Zr.moles.map(UL)}function zL(){Zr.moles.forEach(t=>{t.topOffset=Zr.getTopOffset(t.basisEl)})}function UL(t){return new Promise((e,r)=>{wo.default.measure(()=>{t.effects.forEach(n=>{n.kind in oy?oy[n.kind](t,n,e):(console.error(`Unknown effect type '${n.kind}'`),e())})})})}function iy(t,e,r){let n=e.firstElementChild.getBoundingClientRect(),i=t.kind==="fadeIn"?n.top:n.bottom,o=se.getHeight()*t.end,a=o+Math.min(n.height,se.getHeight()*t.start),l=i>a?1:(i-o)/(a-o);return Math.round(l*100)/100}var oy={fadeOut(t,e,r){let n=iy(e,t.basisEl,t.topOffset),i=Math.max(0,Math.min(1,n));if(t.state.lastOpacity===i)return r();wo.default.mutate(()=>{t.state.lastOpacity=i,t.element.style.opacity=i.toString(),r()})},fadeIn(t,e,r){let n=iy(e,t.basisEl,t.topOffset),i=Math.max(0,Math.min(1,1-n));if(t.state.lastOpacity===i)return r();wo.default.mutate(()=>{t.state.lastOpacity=i,t.element.style.opacity=i.toString(),r()})}};var Qr={};function en(t,e){return()=>{Qr.pause&&Qr.instance!==e&&Qr.pause(),Qr.pause=()=>{delete Qr.pause,t()},Qr.instance=e}}var VL="https://w.soundcloud.com/player/api.js",WL=!1,$L="SoundCloudPlayer--initializing";function GL(t){if(WL)return t();let e=document.createElement("script");e.type="text/javascript",e.async=!0,e.addEventListener("load",t),e.src=VL;let r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(e,r)}function YL(t){let e=t.getAttribute("data-src"),r=t.getAttribute("data-height"),n=XL({src:e,height:r});n.addEventListener("load",()=>{GL(()=>{t.classList.remove($L);let i=new SC.Widget(n);KL(i,n)})}),t.appendChild(n)}function KL(t,e){let r=t.pause.bind(t);t.bind(SC.Widget.Events.READY,()=>{t.bind(SC.Widget.Events.PLAY,en(r,e))})}function XL(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 Il(){let t=_("[data-soundcloud]");window.addEventListener("load",()=>{setTimeout(()=>t.forEach(YL),100)})}function Ll(){_(".SplitLayout").forEach(JL)}function JL(t){let e=_(".FullSize__fixedChild.ObjectFit--cover",t);xm()&&e.forEach(bl)}var Al=ue(Ae());function ZL(t){let e=_("[data-stacked-content-fill]",t),r=_("[data-stacked-content-basis]",t),n=()=>QL(t,e,r);return n(),ft(n),()=>At(n)}function QL(t,e,r){e.length!==0&&Al.default.measure(()=>{let n=ei(t);if(!n)return;let i=r.reduce((a,l)=>a+l.clientHeight,0),o=(n-i)/e.length;Al.default.mutate(()=>{e.forEach(a=>a.style.maxHeight=`${o}px`)})})}function Ml(){return _("[data-stacked-content]").map(ZL)}function eA(t,e){let r=`https://views.unsplash.com/v?app_id=${t}&photo_id=${e}`;fetch(r).catch(n=>console.log(n))}function kl(){_("[data-unsplash-ids]").forEach(t=>{let e=t.getAttribute("data-unsplash-ids"),r=t.getAttribute("data-unsplash-app");eA(r,e)})}var Pl=class extends Error{constructor(r){super(r.statusText);this.response=r}};function ay(t){if(t.status>=200&&t.status<300)return t;let e=new Pl(t);throw e.response=t,e}function sy(t,e,r){let n=t.headers.get("content-type");if(n&&n.includes(e))return t;throw new TypeError(r)}function Ol(t,e,r){fetch(t).then(ay).then(n=>sy(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 l=e==="tiles"?'class="ObjectFit--cover"':"",c=a.mediaSrc?`<img alt="" src="${a.mediaSrc}" ${l}>`:"",u=a.openInNewWindow?'target="_blank"':"",f=a.isNoFollow?'rel="nofollow"':"";return`
              <li class="Theme-Layer-Gallery-Item" style="overflow:hidden">
                <a href="${a.url?a.url:"/"}" ${u} ${f}>
                  <div class="Theme-Layer-Gallery-Item-Media">
                  ${c}
                  </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 tA="GalleryRenderer--initializing";function rA(t){let r=(window.location.protocol==="file:"?"http:":window.location.protocol)+t.getAttribute("data-url").replace(/^\w+:/,""),n=t.getAttribute("data-mode");Ol(r,n,i=>{t.innerHTML=i,t.classList.remove(tA),Dn()})}function Cl(){_("[data-galleryrenderer]").forEach(rA)}var Cc=ue(Ae());var zb=ue(Ql()),mi=ue(jb()),cn=class{constructor(e){if(!e)throw new Error("Must instantiate RenderStack with an array of RenderStackItems");this._items=e,this.state=cn.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)}[mi.default.iterator](){let e=0;return{next:()=>e<this._items.length?{value:this._items[e++],done:!1}:{done:!0}}}isInvalid(){return this.state===cn.STATE_INVALID}isUnchanged(){return this.state===cn.STATE_UNCHANGED}isValid(){return this.state===cn.STATE_VALID}static compare(e,r){return(0,zb.default)(e,r,{strict:!0})}},ot=cn;ot.STATE_UNCHANGED=(0,mi.default)("RenderStack.state=unchanged"),ot.STATE_INVALID=(0,mi.default)("RenderStack.state=invalid"),ot.STATE_VALID=(0,mi.default)("RenderStack.state=valid");var BM=["forEach","filter","map","reduce","push","find"];BM.forEach(t=>{ot.prototype[t]=function(...e){return Array.prototype[t].apply(this._items,e)}});var hi=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,l=n.reduce((p,h)=>h(e,p),r),u=l.filter((p,h)=>l.indexOf(p)===h).reduce((p,h)=>{let v=[],I=r.indexOf(h);return i.forEach(y=>{v=y(e,h,v)}),p.concat(v)},[]),f=new ot(u);f.items=f.map(p=>(o.forEach(h=>{p=h(e,p)}),p)),f=a.reduce((p,h)=>h(p,e),f),this.renderers.forEach(p=>{p.render||console.error(`Renderer ${p.constructor.name} does not have a render() method`),p.render(f)})}};var ac=ue(Eo()),Be=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 Be(pe({},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,c=(i==="cover"?Math.min:Math.max)(o,a),u=r.width/c,f=r.height/c,p=u-e.width,h=f-e.height;i==="fit"&&(p=Math.max(0,p),h=Math.max(0,h));let v=jM(r.data.image.focal||{x:50,y:50}),I={x:u*(v.x/100)-e.width/2,y:f*(v.y/100)-e.height/2},y={x:u-e.width,y:f-e.height};return new Be({sx:(0,ac.default)(I.x,0,y.x)*c,sy:(0,ac.default)(I.y,0,y.y)*c,sWidth:r.width-p*c,sHeight:r.height-h*c,dWidth:i==="fit"?u:e.width,dHeight:i==="fit"?f:e.height,dx:0,dy:0,opacity:1})}},Fo={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 jM(t){let e=Ub(t.x,"x"),r=Ub(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[Fo[13].indexOf(e)],y:i[Fo[9].indexOf(r)]}}function Ub(t,e){return(e==="x"?Fo[13]:Fo[9]).reduce((n,i)=>Math.abs(n-t)>Math.abs(i-t)?i:n,0)}var Vb=Date.now||function(){return new Date().getTime()},Wb=Vb,xr=window.performance;if(xr){let t=xr.now||xr.mozNow||xr.msNow||xr.oNow||xr.webkitNow;Wb=t?t.bind(xr):Vb}var Ir=Wb;var $b="loading",Gb="loaded",sc="already_loaded",zM=15,un=class{constructor(e,r=!1){this.loadingState=$b;this.src=e,this.whenLoaded=UM(e,r),this.whenLoaded.then(this.onLoad.bind(this))}onLoad(e){this.loadingState=e.wasAlreadyLoaded?sc:Gb,this.loadedAt=Ir(),this.img=e.loaderElement}isLoaded(){return this.loadingState===sc||this.loadingState===Gb}isLoading(){return this.loadingState===$b}isAlreadyLoaded(){return this.loadingState===sc}};function UM(t,e=!1){return new Promise((r,n)=>{let i=Ir(),o=new window.Image;o.crossOrigin=e?"use-credentials":"Anonymous",o.addEventListener("load",()=>{let l=Ir()-i,c={wasAlreadyLoaded:!1,loaderElement:o};l<zM&&(c.wasAlreadyLoaded=!0),r(c)}),o.src=t})}var lc={};function VM(t,e=!1){if(t in lc)return lc[t];let r=new un(t,e);return lc[t]=r,r}var Lr=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 VM(e,this.useCredentials)}getInstantImgElement(){if(this.instantImgCache)return this.instantImgCache;let e=this.instantImgCache=document.createElement("img");return e.src=this.instantImgData,e}};var dn=class{constructor(e){this.href="";this.openInNewTab=!0;this.titleText="";Object.assign(this,e)}};var Ht=class{constructor(e){Object.assign(this,e)}};var fn=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 Yb={down:1,left:1,up:1,right:1,fade:.7},Pt=class{constructor(e){Object.assign(this,e)}calculateTransitionLength(e){let r=1;return this.name in Yb&&(r=Yb[this.name]),e*r}static up(e,r){let n=new Be(pe({},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 Be(pe({},e));return n.sHeight=e.sHeight*r,n.dHeight=e.dHeight*r,n}static right(e,r){let n=new Be(pe({},e));return n.sWidth=e.sWidth*r,n.dWidth=e.dWidth*r,n}static left(e,r){let n=new Be(pe({},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 Be(pe({},e));return n.opacity=r,n}};var Ar=class extends Ht{constructor(){super(...arguments);this.type="clear-operation"}};var yt=class extends Ht{};var Ot=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 Ar?Ot.clearRect(e,n):r instanceof yt&&Ot.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 Kb=hi;function cc(t={}){return{finalize(e,r){if(!t.type||r.type===t.type){let n=Be.createScaledBoxing(e,r,t);r.boxing=n}return r}}}function uc(t={}){let e;return{beforeRender(r){return e&&ot.compare(r.items,e.items)&&(r.state=ot.STATE_UNCHANGED),e=r,r}}}function dc(t={}){return{filter(e,r){return r.filter((n,i)=>{let o=i===0,a=i+1===r.length,l=n.transition.start,c=a?1:r[i+1].transition.start;return o&&a?!0:o?e.scrollPercentage<c:a?e.scrollPercentage>=l:e.scrollPercentage>=l&&e.scrollPercentage<c})}}}function WM(t){return t.reduce((e,r)=>!e||e.boxing.sHeight<r.boxing.sHeight?r:e)}function fc(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(yt);if(i.length===0)return e;let o=WM(i);return t.render(o.boxing.dHeight/n),e}}}var Ke=class extends Ht{constructor(){super(...arguments);this.type="caption"}};function Mr(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 $M={fadeInThreshold:.7,fadeOutThreshold:.15,hideWhenOutOfBounds:!1};function hc(t={}){t=Object.assign({},$M,t);let e,r;return{beforeRender(n,i){let o=n.filter(l=>l.hasOwnProperty("caption")),a=GM(o,t);return KM(i,t)&&(o.length>0?a=XM(o,t):a=new Ke(je(pe({},Xb),{html:!1}))),n.push(a),n}}}function GM(t,{hideWhenOutOfBounds:e}){if(e)return new Ke(pe({},YM));if(t.length===0)return new Ke(pe({},pc));{let r=Mr(t);return new Ke(je(pe({},mc),{html:r.caption}))}}var pc={html:"",display:"block",opacity:"0",textOpacity:null},Xb={display:"block",opacity:"1",textOpacity:"0",html:""},mc={display:"block",opacity:"1",textOpacity:"1",html:""},YM={html:"",display:"none",textOpacity:null,opacity:"0"};function KM(t,e){if(!e.hideWhenOutOfBounds)return!0;let n=t.heightPercentage*e.fadeInThreshold*.5-t.heightPercentage>t.scrollPercentage,i=t.scrollPercentage>=1;return!n&&!i}function XM(t,e){let r=Mr(t),n=t.filter(a=>a!==r),i=Mr(n);if(r.data.transitionPercentage<e.fadeInThreshold)return new Ke(je(pe({},mc),{html:r.caption}));let o=new Ke(je(pe({},mc),{html:r.caption}));if(r.data.image&&r.data.image.id&&(o.id=r.data.image.id),i){let{transitionPercentage:a}=i.data,l=a>e.fadeInThreshold,c=a>e.fadeOutThreshold;if(l)o.html=i.caption;else if(c)return!r.caption||!i.caption?new Ke(je(pe({},pc),{html:!1})):new Ke(je(pe({},Xb),{html:!1}))}return o||new Ke(je(pe({},pc),{html:"<p>&nbsp;</p>"}))}function gc(){return{beforeRender(t,e){let r=new Be({dx:0,dy:0,dWidth:e.width,dHeight:e.height}),n=new Ar({boxing:r});return t.items=[n,...t.items],t}}}function yc(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(l=>l instanceof yt),o=i.filter(l=>l.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=Mr(o);return a&&a.data.image.link&&(r.hasMostVisibleItem=!0,r.mostVisibleItemLink=a.data.image.link,e.classList.add("Theme-LinkedMediaRenderer")),n}}}var JM=1e3;function vc(t={}){let e=t.transitionLength||JM;return{transform(r,n,i){let o=n.getCurrentImageSource();if(ZM(o,Ir(),e)){let a=n.getInstantImgElement(),l=new yt({type:"instant-img",img:a,width:a.width,height:a.height,index:n.index,data:{imageSource:o,image:n}});i.push(l)}return i},finalize(r,n){if(n.type==="instant-img"){let i=n.data.imageSource,o=QM(i,Ir(),e);n.boxing=Pt.fade(n.boxing,o)}return n}}}function ZM(t,e,r){return t.isLoading()?!0:t.isAlreadyLoaded()?!1:!!(t.loadedAt&&e-t.loadedAt<=r)}function QM(t,e,r){if(t.isLoading())return 1;let i=(e-t.loadedAt)/r;return 1-i}function bc(t={}){return{transform(e,r,n){let i=r.getCurrentImageSource();if(i.isLoaded()){let o=i.img,a=new yt({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 Ec(){return{filter(t,e){return e.forEach(r=>r.loadCurrentImageSource()),e}}}var kr=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 Do={};function wc(t={}){return{finalize(e,r){if(r.type==="img"){let n=r,i=n.data.imageSource,o=ek(e,i,n);n.img=o.cachedImgElement,n.width=o.width,n.height=o.height,n.data.cacheItem=o,n.boxing=Be.createScaledBoxing(e,n,t)}return r}}}function ek(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(tk(n)){let i=Do[n];if(i.width!==t.width||i.height!==t.height){let o=Zb(t,r);Jb(n,o)}}else{let i=Zb(t,r);Jb(n,i)}return Do[n]}function Jb(t,e){Do[t]=e}function Zb(t,e){let r=new kr({width:t.width,height:t.height}),n=r.getContext();return Ot.drawImage(n,e.img,e.boxing),{width:e.boxing.dWidth,height:e.boxing.dHeight,cachedImgElement:r.canvasElement,originalSrc:e.img.src}}function tk(t){return t in Do}function Tc(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 Sc(t={}){return{filter(e,r){return r.filter((n,i)=>{let o=i===0,a=i+1===r.length;if(o&&a)return!0;let l=n.transition.start,c=1;if(!a){let u=r[i+1].transition,f=u.calculateTransitionLength(e.heightPercentage);c=u.start+f}return o?e.scrollPercentage<=c:a?e.scrollPercentage>=l:e.scrollPercentage>=l&&e.scrollPercentage<=c})},finalize(e,r){var a;let n=(a=r.data.image.transition)==null?void 0:a.name;if(!n||typeof n!="string")return r;let i=n.split(","),o=rk(e,r.data.image);return r.data.transitionPercentage=o,i.reduce((l,c)=>{if(c&&c in Pt){let u=Pt[c];l.boxing=u(l.boxing,o)}return l},r)},beforeRender(e){return e.items=e.filter(r=>r.boxing.opacity!==0),e}}}function rk(t,e){let r=e.transition.calculateTransitionLength(t.heightPercentage),i=(t.scrollPercentage-e.transition.start)/r;return i=Math.min(1,i),i}var Qb=ue(Ae());function e0(t){let e={textItemHeights:[]};return ik(t,e),(r,n)=>nk(r,n,e)}function nk(t,e,r){let n=se.getHeight()*.4;function i(l,c){let u=l+(c.index===0?0:r.textItemHeights[c.index-1]);return c.transition.start=(u-n)/e,c.index===0&&(c.transition.name="none"),u}return t.filter(l=>l.orientation==="portrait").reduce(i,0),t.filter(l=>l.orientation==="landscape").reduce(i,0),t}function ik(t,e){let{isIE:r,isEdge:n,isFirefox:i}=ze(),o=()=>ok(t,e);o(),(n||r||i)&&setInterval(o,1e3),["resize","orientationchange","load"].forEach(a=>window.addEventListener(a,o))}function ok(t,e){Qb.default.measure(()=>{e.textItemHeights=_(".MediaRenderer__textBlocksInner",t.parentElement||ie(`[id*="-${t.id}"]`)).map(r=>r.getBoundingClientRect().height)})}var xc=ue(Ae());function Ic(t,e=1){let r=[],n=l=>{r.push(l)},i=(l,c)=>{r.forEach(u=>u(l,c))},o=()=>ak(t,e,i);o(),["load","resize","orientationchange"].forEach(l=>{window.addEventListener(l,o,{passive:!0})}),ft(o);let a=!1;return window.addEventListener("load",()=>{At(o),$r(t,l=>{a&&(clearInterval(a),a=!1),l===gr&&(a=setInterval(o,16*10))})}),()=>({onResize:n})}function ak(t,e,r){xc.default.measure(()=>{let n=t.getBoundingClientRect(),i=Math.round(n.width)*e,o=Math.round(n.height)*e,a=t.width,l=t.height;if(i===a&&o===l)return;if(i===0||o===0)return;let u=new kr({width:i,height:o}).getContext(),f=t.getContext("2d");u.drawImage(t,0,0),xc.default.mutate(()=>{try{t.width=i,t.height=o,f.drawImage(u.canvas,0,0),r(Math.round(n.width),Math.round(n.height))}catch(p){console.log(u.canvas),console.error("Canvas Resizer could not draw image",p)}})})}var t0=ue(Ql()),r0=ue(Ae());var gi=class{constructor(e){this.captionDisplay=e;let r=e.querySelector("[data-mediarenderer-caption-container]");this.captionContainer=r||this.captionDisplay,$r(this.captionDisplay.parentElement,this.onVisibilityChange.bind(this))}render(e){let r=e.getItemsByType(Ke);if(r.length===0)return;let n=r[0];this.isSameCaption(n)||this.renderCaption(n)}isSameCaption(e){return this.lastCaption&&(0,t0.default)(e,this.lastCaption)?!0:(this.lastCaption=e,!1)}renderCaption(e){let{opacity:r,textOpacity:n,display:i,html:o}=e;r0.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===gr?this.captionDisplay.style.display="":this.captionDisplay.style.display="none"}};var n0=ue(Ae());function Lc(t,e){n0.default.measure(()=>{let n=_("[data-mediarenderer-item]",t).map(lk),i=sk(n);e(i)})}function sk(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 Lr(je(pe({},n),{index:r(n)})))}function lk(t){let e=t.querySelector("[data-mediarenderer-caption]"),r=e?e.outerHTML:"",n=t.querySelector("[data-mediarenderer-image-element]"),i=uk(t),o=ck(t),a=t.getAttribute("data-mediarenderer-item-orientation")||"",[l,c]=(t.getAttribute("data-focal-point")||"50 50").split(" "),u=new Lr({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:l,y:c}});return o&&(u.link=o),u}function ck(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 dn({href:r,openInNewTab:n,titleText:i})}function uk(t){let e=t.getAttribute("data-transition-start"),r=t.getAttribute("data-transition-delay");return r===null?r="0":r="0.10",new Pt({start:parseFloat(e),name:t.getAttribute("data-transition"),delay:parseFloat(r)})}var Ac=ue(Eo()),Mc=ue(Ae());function kc(t){let e=_(".Theme-Layer-BodyText",t.parentElement);window.addEventListener("scroll",()=>{e.forEach(r=>{Mc.default.measure(()=>{let{top:n,bottom:i}=r.getBoundingClientRect(),o=window.innerHeight,a=o*.3,l=n<o&&n>o-a,c=i<a&&i>0;Mc.default.mutate(()=>{if(l){let u=(0,Ac.default)((o-n)/a,0,1);r.style.setProperty("opacity",u.toString())}else if(c){let u=(0,Ac.default)(i/a,0,1);r.style.setProperty("opacity",u.toString())}else i<0||n>o?r.style.setProperty("opacity","0"):r.style.setProperty("opacity","1")})})})},{passive:!0})}var i0=ue(Ae());function dk(t){let e=se.getHeight(),r=t.getBoundingClientRect(),n=r.top,i=r.bottom,o=n>=0&&n<=e,a=i>=0&&i<=e,l=n<0&&i>0;return o||a||l?-n:!1}function Pc(t,e,r){i0.default.measure(()=>{let n=dk(t);if(n===!1)return r({scrollPercentage:!1});let o=t.clientHeight-se.getHeight(),a=n/o,l=e.getCSSHeight()/o;r({scrollPercentage:a,heightPercentage:l,scrollHeight:o})})}var o0=new Map;function a0(t,e,r){let n=ei(t),i=ei(e),o=n-i,a=o0.get(t);return o===a?!1:(o0.set(t,o),r.style.height=`${o}px`,r.height=o,!0)}function fk(t){let e;return r=>{e&&e.captionHTML===r.captionHTML||r.captionHTML&&(e=r,t.innerHTML=r.captionHTML)}}function pk(t,e,r){window.addEventListener("resize",()=>{a0(t,e,r)},{passive:!0})}function Oc(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=fk(n),o=l=>l.find(c=>c instanceof Ke),a=!1;return pk(t,e,r),{beforeRender(l){let c=o(l);if(a&&!l.isInvalid()&&(l.state=ot.STATE_VALID,a=!1),!c||l.isUnchanged())return l;let u=n.clientHeight;return i(c),n.clientHeight!==u&&(l.state=ot.STATE_INVALID,a0(t,n,r),a=!0),l}}}function mk(t,e,r,n={}){let o=Object.assign({},{xPositioning:"center",yPositioning:"center",scalingMode:"cover",isTransitioned:!1},n),a=t.querySelector("[data-mediarenderer-caption-display]"),l=new gi(a),c=[Tc(),Ec(),cc({scalingMode:o.scalingMode}),bc(),vc(),wc({scalingMode:o.scalingMode}),o.isTransitioned?Sc():dc(),hc({hideWhenOutOfBounds:o.isTransitioned}),uc()];if(o.scalingMode==="fit"){if(a){let L=t.querySelector("[data-twocol-stacker]");c.push(Oc(L,a,e.canvasElement)),c.push(fc({render:A=>hk(a,A),renderScale:o.renderScale}))}c.unshift(gc())}c.push(yc({linkedItem:e.canvasElement}));let u=[e,l],f=new Kb({renderers:u,images:r,renderStackPlugins:c});kc(t);let p=e0(t),h=()=>{Cc.default.measure(()=>{let L,A=t.getBoundingClientRect();A.top>0?L="before":A.bottom<se.getHeight()?L="after":L="during",Cc.default.mutate(()=>{t.firstElementChild.setAttribute("data-attachment",L)})}),Pc(t,e,({scrollPercentage:L,heightPercentage:A,scrollHeight:B})=>{try{if(L===!1)return;let N=new fn({heightPercentage:A,scrollPercentage:L,width:e.getWidth(),height:e.getHeight()});N.getOrientation=()=>se.getHeight()>se.getWidth()?"portrait":"landscape";let O=o.isTransitioned?p(r,B):r;f.render(N,O)}catch(N){throw At(h),N}})},v=()=>ft(h),I=()=>At(h),y=e.canvasElement,T=y.parentElement||y;vk(T,v,I),h(),window.addEventListener("load",h)}function hk(t,e){t.style.top=`${e}px`}function gk(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;Ic(e,r);let n=e.getAttribute("data-scaling-mode"),i=e.hasAttribute("data-mediarenderer-transition"),o=new Ot({canvasElement:e,renderScale:r});Lc(e,a=>{mk(t,o,a,{yPositioning:e.getAttribute("data-y-positioning"),scalingMode:n,isTransitioned:i,renderScale:r})})}function _c(){_("[data-mediarenderer]").forEach(gk)}function yk(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 vk(t,e,r){let n=yk(t);gt(n,i=>{bt(i)?e():r()},{triggerPoint:"nearly visible"})}function Hc(){}var bk={mainSelector:".TransitionIn--fade",fadeInClass:"TransitionIn--fadeIn"};function Rc(t=bk){_(t.mainSelector).forEach(r=>{Ek(r,{fadeInClass:t.fadeInClass})})}function Ek(t,e){let r=n=>{let i=n.rootBounds?n.rootBounds.top:0;n.boundingClientRect.top<i&&!n.isIntersecting||wk(t,e.fadeInClass,bt(n))};return t.classList.add(e.fadeInClass),gt(t,r,{triggerPoint:"mostly visible"}),()=>Wr(t)}function wk(t,e,r){Vh(t,e,r)}function Nc(){Rc()}var f0=ue(l0());var Fc=t=>`${t}px`;function c0(t){let{width:e,height:r,top:n}=t.getBoundingClientRect();Object.assign(t.style,{position:"fixed",top:Fc(n),width:Fc(e),height:Fc(r),overflowY:"scroll"})}function u0(t){let e=parseInt(t.style.top,10);Object.assign(t.style,{position:"",top:"",width:"",height:"",overflowY:""}),window.scrollTo(0,-e)}var Tk="[data-videoplayer-youtube]",Sk='[data-projection="360"]',xk="__YOUTUBE_API_SCRIPT__",Bo={whenApiReady:!1,players:[]};function Ik(t){_('script[src="//www.youtube.com/player_api"]').length>0||(Bo.whenApiReady||(Bo.whenApiReady=new Promise((e,r)=>{window.onYouTubeIframeAPIReady=()=>e();let n=document.createElement("script");n.src="//www.youtube.com/player_api",n.id=xk,n.async=!0;let i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(n,i)})),Bo.whenApiReady.then(t))}function Lk(t){return{[YT.PlayerState.PLAYING]:"play",[YT.PlayerState.PAUSED]:"pause",[YT.PlayerState.ENDED]:"end"}[t.data]}function Ak(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);en(a,o.getIframe())()}let i=Lk(n);i&&Mk(i,n.target)}}})}function Mk(t,e){let r=e.getVideoData(),n=`${r.title} (${r.video_id})`;pr("Videos",t,n)}function kk(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 Dc(t=Tk,e=Sk){let r=_(e);ze().isiOS&&kk(r);let n=_(t);n.length!==0&&Ik(()=>{Bo.players=n.map(Ak)})}var Pk='<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>',jo=[];function qc(t={}){let e=t.iconUrl;if(t.body&&!e){let o=new DOMParser().parseFromString(Pk,"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=_("[data-videoplayer]"),n=p0();r.forEach(i=>{let o=i.querySelector("[data-videoplayer-media]");if(o){jo.push(...f0.default.setup(o,{iconUrl:e,loadSprite:!1}));let a=jo[jo.length-1];a.sources={portrait:d0(o.getAttribute("data-portrait")),landscape:d0(o.getAttribute("data-landscape"))},a.posters={portrait:o.getAttribute("data-portrait-poster")||o.getAttribute("data-landscape-poster"),landscape:o.getAttribute("data-landscape-poster")},a.source({type:"video",sources:[{src:a.sources[n],type:"video/mp4"}]}),a.posters[n]&&a.poster(a.posters[n]);let l=a.pause.bind(a),c=document.documentElement,u=i.closest("[class*='Layer--']");a.on("play",en(l,o)),a.on("enterfullscreen",()=>c0(c)),a.on("enterfullscreen",()=>u.classList.add("Levels--god")),a.on("exitfullscreen",()=>u0(c)),a.on("exitfullscreen",()=>u.classList.remove("Levels--god")),Ok.forEach(({event:f,pretty:p})=>a.on(f,Ck(a)(p)))}}),Dc(),["resize","orientationchange"].forEach(i=>{window.addEventListener(i,_k,{passive:!0})})}function d0(t){let e=document.createElement("a");return e.href=t,e.href}var Ok=[{event:"play",pretty:"play"},{event:"pause",pretty:"pause"},{event:"ended",pretty:"end"}],Ck=t=>e=>()=>{let r=t.getMedia().currentSrc;pr("Videos",e,r)};function p0(){return se.getWidth()<900?"portrait":"landscape"}function _k(){let t=p0();jo.filter(e=>e.source()!==e.sources[t]).forEach(e=>{e.source({type:"video",sources:[{src:e.sources[t],type:"video/mp4"}],poster:e.posters[t]})})}El();ys();Za();dm();sl();ns();Dn();Ml();Ki();bs();Hc();ws();Nc();il();el();pl();ol();Il();bo();_c();qc({body:document.body});ds();ni();Ka();Cl();gs();us();xl();Ll();ll();tl();Tl();ts();cl();kl();})();
/*!
  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.135012.min.js.map
