From bf7469f9b5f1bb15515f91e787563012110c07e2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 26 Jul 2024 01:17:31 +0000 Subject: [PATCH] deploy: 8b90f6ba891f95c34fa9ee847c96e3780f4d259b --- .nojekyll | 0 index.html | 30 +++++++++++++++ index.js | 12 ++++++ styles.css | 108 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 150 insertions(+) create mode 100644 .nojekyll create mode 100644 index.html create mode 100644 index.js create mode 100644 styles.css diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 00000000..e69de29b diff --git a/index.html b/index.html new file mode 100644 index 00000000..de97e362 --- /dev/null +++ b/index.html @@ -0,0 +1,30 @@ + + + + + + try-phi + + + + + + + + + + Fork me on GitHub! +
+ +
+ + + + \ No newline at end of file diff --git a/index.js b/index.js new file mode 100644 index 00000000..535b3f39 --- /dev/null +++ b/index.js @@ -0,0 +1,12 @@ +(()=>{var kF=Object.defineProperty;var JF=(n,t)=>{for(var e in t)kF(n,e,{get:t[e],enumerable:!0})};var Eg=function(n){return function(t){for(var e=[],r=0,a=n.length;r=e.length?t:n(e[r])};var Rg=function(n,t,e,r){for(var a=0,o=r.length;a=r.length)return t;var a=r.slice();return a.splice(e,1),n(a)};var i1=function(){function n(t,e,r,a,o,u){var i,s,c,l,p,d,_;for(i=o+(u-o>>1),i-o>1&&n(t,e,a,r,o,i),u-i>1&&n(t,e,a,r,i,u),s=o,c=i,l=o;s0?(r[l++]=d,++c):(r[l++]=p,++s);for(;s0?Math.floor(n/t):-Math.floor(n/-t)}},_h=function(n){return function(t){if(t===0)return 0;var e=Math.abs(t);return(n%e+e)%e}};var mh={Ring0:function(){return eh}};var $u=function(n){return n.mod};var qu={degree:sh,div:ph,mod:_h,CommutativeRing0:function(){return mh}},yl=function(n){return n.div};var Uu={mempty:"",Semigroup0:function(){return Ru}};var Bu={mempty:[],Semigroup0:function(){return xt}};var Fn=function(n){return n.mempty};var dh=function(n){return function(){return n}},Dh=function(n){return function(t){return function(){return t(n())()}}};var gh=function(n,t,e){var r=0,a;return function(o){if(r===2)return a;if(r===1)throw new ReferenceError(n+" was needed before it finished initializing (module "+t+", line "+o+")",t,o);return r=1,a=e(),r=2,a}},ba={Applicative0:function(){return nt},Bind1:function(){return Xt}},Xt={bind:Dh,Apply0:function(){return j_(0)}},nt={pure:dh,Apply0:function(){return j_(0)}},hh=gh("functorEffect","Effect",function(){return{map:nf(nt)}}),j_=gh("applyEffect","Effect",function(){return{apply:De(ba),Functor0:function(){return hh(0)}}}),dn=hh(20),Q_=j_(23);var yh=function(n){return function(){return{value:n}}};var cn=function(n){return function(){return n.value}},bh=function(n){return function(t){return function(){var e=n(t.value);return t.value=e.state,e.value}}},Jn=function(n){return function(t){return function(){t.value=n}}};var S1=rt(dn),ut=yh,K_=bh,Th=function(n){return K_(function(t){var e=n(t);return{state:e,value:e}})},Ge=function(n){return function(t){return S1(Th(n)(t))}};var H1=Kn(Xt),O1=g(dn),Bt=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),Rt=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),ar=function(n){return n.tailRecM};var Eh={tailRecM:function(n){return function(t){var e=function(r){if(r instanceof Rt)return r.value0;throw new Error("Failed pattern match at Control.Monad.Rec.Class (line 137, column 30 - line 137, column 44): "+[r.constructor.name])};return function(){var a=H1(ut)(n(t))();return function(){for(;!function(){var u=cn(a)();if(u instanceof Bt){var i=n(u.value0)();return Jn(i)(a)(),!1}if(u instanceof Rt)return!0;throw new Error("Failed pattern match at Control.Monad.Rec.Class (line 128, column 22 - line 133, column 28): "+[u.constructor.name])}(););return{}}(),O1(e)(cn(a))()}}},Monad0:function(){return ba}};var Ch=function(n){return function(t){return function(){return n(t())}}},Mh=function(n){return function(){return n}},wh=function(n){return function(t){return function(){return t(n())()}}};var Tl=function(n){return function(t){return function(){for(var e=0,r=n.length;e>1),i-o>1&&n(t,e,a,r,o,i),u-i>1&&n(t,e,a,r,i,u),s=o,c=i,l=o;s0?(r[l++]=d,++c):(r[l++]=p,++s);for(;s=0;o--)r=n(e[o])(r);return r}}},Uh=function(n){return function(t){return function(e){for(var r=t,a=e.length,o=0;o=eo(gy)&&n<=eo(hy)?new m(Dy(n)):D.value},_A={succ:ro(Cm)(eo),pred:ao(Cm)(eo),Ord0:function(){return dl}};var wm=function(){return{cardinality:eo(hy)-eo(gy)|0,toEnum:Cm,fromEnum:eo,Bounded0:function(){return Wo},Enum1:function(){return _A}}}();var zo=function(n){return n};var Ul=function(n){return n};var Af=function(n){return n.length};var Sf=function(n){return function(t){return t.substring(n)}};var oo=function(n){return function(t){if(n>=0&&n1;if(e){var r=Nf(oo(1)(n)),a=Ay(r);return a?Ly(t)(r):t}return t},zA=Sg(VA),GA=xg(JA)(zA),Am=function(n){return Ne(GA(n))};var Lm=function(){var n=yy(wm)(Ur(Wo))(qr(Wo));return function(t){return Ul(n(t))}}(),jA=function(n){if(n<=65535)return Lm(n);var t=UA(n-65536|0)(1024)+55296|0,e=BA(n-65536|0)(1024)+56320|0;return Lm(t)+Lm(e)};var Ny=Ig(jA),xy=function(n){return function(t){if(n<1)return"";var e=Iy(t);return e instanceof m?Ny(e.value0.head)+xy(n-1|0)(e.value0.tail):t}},Sm=Ng(xy);var ne=function(){var n={},t="Pure",e="Throw",r="Catch",a="Sync",o="Async",u="Bind",i="Bracket",s="Fork",c="Sequential",l="Map",p="Apply",d="Alt",_="Cons",f="Resume",v="Release",C="Finalizer",V="Finalized",Dn="Forked",yn="Fiber",R="Thunk";function F(B,Mn,$n,xn){this.tag=B,this._1=Mn,this._2=$n,this._3=xn}function vn(B){var Mn=function($n,xn,X){return new F(B,$n,xn,X)};return Mn.tag=B,Mn}function kn(B){return new F(t,void 0)}function Mt(B){try{B()}catch(Mn){setTimeout(function(){throw Mn},0)}}function Dt(B,Mn,$n){try{return Mn($n())}catch(xn){return B(xn)}}function pt(B,Mn,$n){try{return Mn($n)()}catch(xn){return $n(B(xn))(),kn}}var wt=function(){var B=1024,Mn=0,$n=0,xn=new Array(B),X=!1;function I(){var On;for(X=!0;Mn!==0;)Mn--,On=xn[$n],xn[$n]=void 0,$n=($n+1)%B,On();X=!1}return{isDraining:function(){return X},enqueue:function(On){var Cn,Qn;Mn===B&&(Qn=X,I(),X=Qn),xn[($n+Mn)%B]=On,Mn++,X||I()}}}();function Be(B){var Mn={},$n=0,xn=0;return{register:function(X){var I=$n++;X.onComplete({rethrow:!0,handler:function(On){return function(){xn--,delete Mn[I]}}})(),Mn[I]=X,xn++},isEmpty:function(){return xn===0},killAll:function(X,I){return function(){if(xn===0)return I();var On=0,Cn={};function Qn(qn){Cn[qn]=Mn[qn].kill(X,function(ft){return function(){delete Cn[qn],On--,B.isLeft(ft)&&B.fromLeft(ft)&&setTimeout(function(){throw B.fromLeft(ft)},0),On===0&&I()}})()}for(var It in Mn)Mn.hasOwnProperty(It)&&(On++,Qn(It));return Mn={},$n=0,xn=0,function(qn){return new F(a,function(){for(var ft in Cn)Cn.hasOwnProperty(ft)&&Cn[ft]()})}}}}}var gt=0,ht=1,er=2,Gt=3,ve=4,jt=5,ke=6;function Ba(B,Mn,$n){var xn=0,X=gt,I=$n,On=null,Cn=null,Qn=null,It=null,qn=null,ft=0,la=0,be=null,Dr=!0;function Rr(en){for(var an,wn,Nn;;)switch(an=null,wn=null,Nn=null,X){case er:X=ht;try{I=Qn(I),It===null?Qn=null:(Qn=It._1,It=It._2)}catch(Nt){X=jt,On=B.left(Nt),I=null}break;case Gt:B.isLeft(I)?(X=jt,On=I,I=null):Qn===null?X=jt:(X=er,I=B.fromRight(I));break;case ht:switch(I.tag){case u:Qn&&(It=new F(_,Qn,It)),Qn=I._2,X=ht,I=I._1;break;case t:Qn===null?(X=jt,I=B.right(I._1)):(X=er,I=I._1);break;case a:X=Gt,I=Dt(B.left,B.right,I._1);break;case o:X=ve,I=pt(B.left,I._1,function(Nt){return function(){xn===en&&(xn++,wt.enqueue(function(){xn===en+1&&(X=Gt,I=Nt,Rr(xn))}))}});return;case e:X=jt,On=B.left(I._1),I=null;break;case r:Qn===null?qn=new F(_,I,qn,Cn):qn=new F(_,I,new F(_,new F(f,Qn,It),qn,Cn),Cn),Qn=null,It=null,X=ht,I=I._1;break;case i:ft++,Qn===null?qn=new F(_,I,qn,Cn):qn=new F(_,I,new F(_,new F(f,Qn,It),qn,Cn),Cn),Qn=null,It=null,X=ht,I=I._1;break;case s:X=Gt,an=Ba(B,Mn,I._2),Mn&&Mn.register(an),I._1&&an.run(),I=B.right(an);break;case c:X=ht,I=Oo(B,Mn,I._1);break}break;case jt:if(Qn=null,It=null,qn===null)X=ke,I=Cn||On||I;else switch(an=qn._3,Nn=qn._1,qn=qn._2,Nn.tag){case r:Cn&&Cn!==an&&ft===0?X=jt:On&&(X=ht,I=Nn._2(B.fromLeft(On)),On=null);break;case f:Cn&&Cn!==an&&ft===0||On?X=jt:(Qn=Nn._1,It=Nn._2,X=er,I=B.fromRight(I));break;case i:ft--,On===null&&(wn=B.fromRight(I),qn=new F(_,new F(v,Nn._2,wn),qn,an),(Cn===an||ft>0)&&(X=ht,I=Nn._3(wn)));break;case v:qn=new F(_,new F(V,I,On),qn,Cn),X=ht,Cn&&Cn!==an&&ft===0?I=Nn._1.killed(B.fromLeft(Cn))(Nn._2):On?I=Nn._1.failed(B.fromLeft(On))(Nn._2):I=Nn._1.completed(B.fromRight(I))(Nn._2),On=null,ft++;break;case C:ft++,qn=new F(_,new F(V,I,On),qn,Cn),X=ht,I=Nn._1;break;case V:ft--,X=jt,I=Nn._1,On=Nn._2;break}break;case ke:for(var et in be)be.hasOwnProperty(et)&&(Dr=Dr&&be[et].rethrow,Mt(be[et].handler(I)));be=null,Cn&&On?setTimeout(function(){throw B.fromLeft(On)},0):B.isLeft(I)&&Dr&&setTimeout(function(){if(Dr)throw B.fromLeft(I)},0);return;case gt:X=ht;break;case ve:return}}function at(en){return function(){if(X===ke)return Dr=Dr&&en.rethrow,en.handler(I)(),function(){};var an=la++;return be=be||{},be[an]=en,function(){be!==null&&delete be[an]}}}function Z(en,an){return function(){if(X===ke)return an(B.right(void 0))(),function(){};var wn=at({rethrow:!1,handler:function(){return an(B.right(void 0))}})();switch(X){case gt:Cn=B.left(en),X=ke,I=Cn,Rr(xn);break;case ve:Cn===null&&(Cn=B.left(en)),ft===0&&(X===ve&&(qn=new F(_,new F(C,I(en)),qn,Cn)),X=jt,I=null,On=null,Rr(++xn));break;default:Cn===null&&(Cn=B.left(en)),ft===0&&(X=jt,I=null,On=null)}return wn}}function Tn(en){return function(){var an=at({rethrow:!1,handler:en})();return X===gt&&Rr(xn),an}}return{kill:Z,join:Tn,onComplete:at,isSuspended:function(){return X===gt},run:function(){X===gt&&(wt.isDraining()?Rr(xn):wt.enqueue(function(){Rr(xn)}))}}}function Yi(B,Mn,$n,xn){var X=0,I={},On=0,Cn={},Qn=new Error("[ParAff] Early exit"),It=null,qn=n;function ft(at,Z,Tn){var en=Z,an=null,wn=null,Nn=0,et={},Nt,ka;n:for(;;)switch(Nt=null,en.tag){case Dn:if(en._3===n&&(Nt=I[en._1],et[Nn++]=Nt.kill(at,function(BF){return function(){Nn--,Nn===0&&Tn(BF)()}})),an===null)break n;en=an._2,wn===null?an=null:(an=wn._1,wn=wn._2);break;case l:en=en._2;break;case p:case d:an&&(wn=new F(_,an,wn)),an=en,en=en._1;break}if(Nn===0)Tn(B.right(void 0))();else for(ka=0,Nt=Nn;ka0}).map(function(d){var _=d.indexOf(":");return r(d.substring(0,_))(d.substring(_+2))}),body:i.response})},i.responseType=a.responseType,i.withCredentials=a.withCredentials,i.timeout=a.timeout,i.send(a.content),function(d,_,f){try{i.abort()}catch(v){return _(v)}return f()}}}var wi="text/css";var HC="application/javascript",gp="application/json",OC="application/x-www-form-urlencoded";var RC=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),PC=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),WC=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),$C=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),qC=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),xd=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),Ic=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),UC=function(n){return n instanceof xd?new m(OC):n instanceof Ic?new m(gp):D.value};var kC=Tt();var hp=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),yp=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),JC=function(){function n(t,e){this.value0=t,this.value1=e}return n.create=function(t){return function(e){return new n(t,e)}},n}(),VC=function(n){if(n instanceof hp||n instanceof yp)return kC(n.value0);if(n instanceof JC)return n.value1;throw new Error("Failed pattern match at Affjax.RequestHeader (line 26, column 1 - line 26, column 33): "+[n.constructor.name])};var Hd=function(n){if(n instanceof hp)return"Accept";if(n instanceof yp)return"Content-Type";if(n instanceof JC)return n.value0;throw new Error("Failed pattern match at Affjax.RequestHeader (line 21, column 1 - line 21, column 32): "+[n.constructor.name])};var zC=j(K),Od=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),Rd=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),Pd=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),Nc=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),Wd=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),bp=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),GC=function(n){if(n instanceof Od)return"arraybuffer";if(n instanceof Rd)return"blob";if(n instanceof Pd)return"document";if(n instanceof Nc||n instanceof Wd)return"text";if(n instanceof bp)return"";throw new Error("Failed pattern match at Affjax.ResponseFormat (line 44, column 3 - line 50, column 19): "+[n.constructor.name])},jC=function(n){return n instanceof Nc?new m(gp):D.value};var QC=function(){return new Nc(zC)}(),KC=function(){return new bp(zC)}();var XC=function(){function n(t,e){this.value0=t,this.value1=e}return n.create=function(t){return function(e){return new n(t,e)}},n}();var PO=Tt();var $d=function(n){return PO(xm(n))};function re(n){return n}function Tp(n){return JSON.stringify(n)}function Ep(n,t,e,r,a,o,u){return u==null?n():typeof u=="boolean"?t(u):typeof u=="number"?e(u):typeof u=="string"?r(u):Object.prototype.toString.call(u)==="[object Array]"?a(u):o(u)}var qO=function(n){return function(t){return function(e){return e(n)(t)}}},n0=function(){return qO(D.value)(m.create)}();var t0=function(n){return function(t){return JT(n)(t)}};var Cp=si;var e0=function(n){return function(t){return function(e){return Ep(H(n),H(n),H(n),t,H(n),H(n),e)}}};var qd=function(n){return function(t){return function(e){return Ep(H(n),H(n),H(n),H(n),H(n),t,e)}}};var Mp=n0(qd);var UO=function(n){return function(t){return function(e){return Ep(H(n),H(n),H(n),H(n),t,H(n),e)}}};var r0=n0(UO);function a0(n,t,e){try{return t(JSON.parse(e))}catch(r){return n(r.message)}}var o0=function(n){return a0(N.create,A.create,n)};function JO(n){return n.replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16)})}function u0(n,t,e){try{return t(JO(encodeURIComponent(e)).replace(/%20/g,"+"))}catch(r){return n(r)}}var wp=function(){return Tf(u0)(H(D.value))(m.create)}();var GO=bn(Da),i0=g(Sn),jO=Et(Vr)(ga);var QO=function(n){return n};var f0=function(){var n=function(r){if(r.value1 instanceof D)return wp(r.value0);if(r.value1 instanceof m)return GO(i0(function(a){return function(o){return a+("="+o)}})(wp(r.value0)))(wp(r.value1.value0));throw new Error("Failed pattern match at Data.FormURLEncoded (line 37, column 16 - line 39, column 114): "+[r.constructor.name])},t=i0(jr("&")),e=jO(n);return function(r){return t(e(QO(r)))}}();var YO=function(){function n(){}return n.value=new n,n}(),Ud=function(){function n(){}return n.value=new n,n}(),XO=function(){function n(){}return n.value=new n,n}(),c0=function(){function n(){}return n.value=new n,n}(),Bd=function(){function n(){}return n.value=new n,n}(),l0=function(){function n(){}return n.value=new n,n}(),ZO=function(){function n(){}return n.value=new n,n}(),nR=function(){function n(){}return n.value=new n,n}(),tR=function(){function n(){}return n.value=new n,n}(),eR=function(){function n(){}return n.value=new n,n}(),rR=function(){function n(){}return n.value=new n,n}(),aR=function(){function n(){}return n.value=new n,n}(),oR=function(){function n(){}return n.value=new n,n}(),uR=function(){function n(){}return n.value=new n,n}(),iR=function(){function n(){}return n.value=new n,n}(),s0=function(){function n(){}return n.value=new n,n}();var fR=function(n){return n},cR={show:function(n){if(n instanceof YO)return"OPTIONS";if(n instanceof Ud)return"GET";if(n instanceof XO)return"HEAD";if(n instanceof c0)return"POST";if(n instanceof Bd)return"PUT";if(n instanceof l0)return"DELETE";if(n instanceof ZO)return"TRACE";if(n instanceof nR)return"CONNECT";if(n instanceof tR)return"PROPFIND";if(n instanceof eR)return"PROPPATCH";if(n instanceof rR)return"MKCOL";if(n instanceof aR)return"COPY";if(n instanceof oR)return"MOVE";if(n instanceof uR)return"LOCK";if(n instanceof iR)return"UNLOCK";if(n instanceof s0)return"PATCH";throw new Error("Failed pattern match at Data.HTTP.Method (line 43, column 1 - line 59, column 23): "+[n.constructor.name])}};var p0=Ut(G(cR))(fR);var _0=function(n){return Ma(function(t){return function(){var r=n(function(a){return t(N.create(a))()},function(a){return t(A.create(a))()});return function(a){return Ma(function(o){return function(){return r(a,function(i){return o(N.create(i))()},function(i){return o(A.create(i))()}),es}})}}})};var kd=b(oi(Jr)),pR=Ns(Jr),vu=PT(Jr),m0=yt(Yy(Yb)(Jr)),_R=pa(kf(Jr)),Fp=g(Sn),mR=no(Un)(je),vR=rn(fe),dR=Kn(Yt),DR=g(Wn),gR=Ja(co),hR=Hf(ns),yR=b(ur);var v0=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),d0=function(){function n(t,e){this.value0=t,this.value1=e}return n.create=function(t){return function(e){return new n(t,e)}},n}(),D0=function(){function n(){}return n.value=new n,n}(),g0=function(){function n(){}return n.value=new n,n}(),h0=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),y0=function(n){return function(t){var e=function(l){return l===""?kd(Cp):Ut(function(p){return pR(OT.create(p))})(kd)(o0(l))},r=function(){if(t.responseFormat instanceof Od)return vu("ArrayBuffer");if(t.responseFormat instanceof Rd)return vu("Blob");if(t.responseFormat instanceof Pd)return function(l){return m0(vu("Document")(l))(m0(vu("XMLDocument")(l))(vu("HTMLDocument")(l)))};if(t.responseFormat instanceof Nc)return _R(function(l){return t.responseFormat.value0(e(l))})(vu("String"));if(t.responseFormat instanceof Wd)return vu("String");if(t.responseFormat instanceof bp)return H(t.responseFormat.value0(kd(void 0)));throw new Error("Failed pattern match at Affjax (line 274, column 18 - line 283, column 57): "+[t.responseFormat.constructor.name])}(),a=function(l){if(l instanceof RC)return new A(l.value0(xa));if(l instanceof PC)return new A(xa(l.value0));if(l instanceof WC)return new A(xa(l.value0));if(l instanceof $C)return new A(xa(l.value0));if(l instanceof qC)return new A(xa(l.value0));if(l instanceof xd)return cf("Body contains values that cannot be encoded as application/x-www-form-urlencoded")(Fp(xa)(f0(l.value0)));if(l instanceof Ic)return new A(xa(Tp(l.value0)));throw new Error("Failed pattern match at Affjax (line 235, column 20 - line 250, column 69): "+[l.constructor.name])},o=function(l){return function(p){return l instanceof m&&!mR(ml(vR)(Hd)(l.value0))(p)?ym(p)(l.value0):p}},u=function(l){return o(Fp(yp.create)(dR(UC)(l)))(o(Fp(hp.create)(jC(t.responseFormat)))(t.headers))},i=function(l){return{method:p0(t.method),url:t.url,headers:DR(function(p){return{field:Hd(p),value:VC(p)}})(u(t.content)),content:l,responseType:GC(t.responseFormat),username:se(t.username),password:se(t.password),withCredentials:t.withCredentials,timeout:Ot(0)(Fp(function(p){return p})(t.timeout))}},s=function(l){return gR(hR(_0(xC(n,"AffjaxTimeoutErrorMessageIdent","AffjaxRequestFailedMessageIdent",XC.create,i(l)))))(function(p){if(p instanceof A){var d=$d(r(p.value0.body));if(d instanceof N)return new N(new d0(IT(d.value0),p.value0));if(d instanceof A)return new A({body:d.value0,headers:p.value0.headers,status:p.value0.status,statusText:p.value0.statusText});throw new Error("Failed pattern match at Affjax (line 209, column 9 - line 211, column 52): "+[d.constructor.name])}if(p instanceof N)return new N(function(){var _=kl(p.value0),f=_==="AffjaxTimeoutErrorMessageIdent";if(f)return D0.value;var v=_==="AffjaxRequestFailedMessageIdent";return v?g0.value:new h0(p.value0)}());throw new Error("Failed pattern match at Affjax (line 207, column 144 - line 219, column 28): "+[p.constructor.name])})};if(t.content instanceof D)return s(se(D.value));if(t.content instanceof m){var c=a(t.content.value0);if(c instanceof A)return s(se(new m(c.value0)));if(c instanceof N)return yR(new N(new v0(c.value0)));throw new Error("Failed pattern match at Affjax (line 199, column 7 - line 203, column 48): "+[c.constructor.name])}throw new Error("Failed pattern match at Affjax (line 195, column 3 - line 203, column 48): "+[t.content.constructor.name])}};var Fi=function(){return{method:new N(Ud.value),url:"/",headers:[],content:D.value,username:D.value,password:D.value,withCredentials:!1,responseFormat:KC,timeout:D.value}}();var Jd=function(n){return function(t){return function(e){return function(r){return y0(n)({method:new N(Bd.value),url:e,headers:Fi.headers,content:r,username:Fi.username,password:Fi.password,withCredentials:Fi.withCredentials,responseFormat:t,timeout:Fi.timeout})}}}};var Lp={newXHR:function(){return new XMLHttpRequest},fixupUrl:function(n){return n||"/"}};var Oa=function(n){return n.fromString};var ER=function(){function n(u){this.fn=u}var t={},e=function(u,i){this.head=u,this.tail=i};function r(u){return new e(u,t)}function a(u){return function(i){return new e(u,i)}}function o(u){for(var i=[],s=u;s!==t;)i.push(s.head),s=s.tail;return i}return function(u,i,s){var c=function(p,d){return u(i(a)(s(p)))(d)},l=function(p,d,_){if(d===0)return p;var f=_[d-1];return new n(function(){var v=l(c(f,p),d-1,_);return v})};return function(p){for(var d=i(r)(s(p[p.length-1])),_=l(d,p.length-1,p);_ instanceof n;)_=_.fn();return i(o)(_)}}}();var zd={first:function(n){return function(t){return new M(n(t.value0),t.value1)}},second:g(Ea),Profunctor0:function(){return Um}},Gd=function(n){return n.second};var F0=g(Wn),L0=Gd(zd),HR=$(xt),OR=Il(Un)(fe);var Fe=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),qe=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),RR=function(n){return n};var PR=function(n){return n},Ap=function(n){return n.value};var jd={append:function(n){return function(t){if(n instanceof qe&&t instanceof qe)return new qe(n.value0+t.value0);if(n instanceof qe&&t instanceof Fe)return new Fe(F0(L0(function(e){return n.value0+e}))(t.value0));if(n instanceof Fe&&t instanceof qe)return new Fe(F0(L0(function(e){return t.value0+e}))(n.value0));if(n instanceof Fe&&t instanceof Fe)return new Fe(HR(n.value0)(t.value0));throw new Error("Failed pattern match at CSS.Property (line 23, column 1 - line 27, column 59): "+[n.constructor.name,t.constructor.name])}}},WR=$(jd),A0={append:function(n){return function(t){return WR(n)(t)}}};var Qd=function(n){if(n instanceof Fe)return Ot("")(OR("")(n.value0));if(n instanceof qe)return n.value0;throw new Error("Failed pattern match at CSS.Property (line 32, column 1 - line 32, column 28): "+[n.constructor.name])};var $R=function(){return{fromString:qe.create}}(),S0=Oa($R),Sp={fromString:function(n){return RR(S0(n))}},qR=Oa(Sp);var I0={value:function(){var n=G(za);return function(t){return qR(n(t))}}()};var N0={fromString:function(n){return PR(S0(n))}};var x0=function(n){return n};var H0=function(){return new Fe([new M("-webkit-",""),new M("-moz-",""),new M("-ms-",""),new M("-o-",""),new M("","")])}();var JR=$(A0),VR=Ap(I0),zR=Oa(Sp),O0=G(za),GR=$(jd);var Kd=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),jR=function(){function n(t,e){this.value0=t,this.value1=e}return n.create=function(t){return function(e){return new n(t,e)}},n}(),QR=function(){function n(t,e){this.value0=t,this.value1=e}return n.create=function(t){return function(e){return new n(t,e)}},n}(),KR=function(){function n(t,e){this.value0=t,this.value1=e}return n.create=function(t){return function(e){return new n(t,e)}},n}(),YR=function(){function n(t,e){this.value0=t,this.value1=e}return n.create=function(t){return function(e){return new n(t,e)}},n}();var du=function(n){if(n instanceof Kd)return Qd(n.value0);if(n instanceof jR)return na(function(t){return na(function(e){return"("+(du(t)+(" + "+(du(e)+")")))})(n.value1)})(n.value0);if(n instanceof QR)return na(function(t){return na(function(e){return"("+(du(t)+(" - "+(du(e)+")")))})(n.value1)})(n.value0);if(n instanceof KR)return na(function(t){return"("+(O0(n.value0)+(" * "+(du(t)+")")))})(n.value1);if(n instanceof YR)return na(function(t){return"("+(du(t)+(" / "+(O0(n.value0)+")")))})(n.value1);throw new Error("Failed pattern match at CSS.Size (line 29, column 1 - line 29, column 43): "+[n.constructor.name])},R0={value:function(n){return n instanceof Kd?n.value0:GR(H0)(new qe("calc"+du(n)))}};var Yd=function(n){return new Kd(JR(VR(n))(zR("px")))};var XR=Tt();var ZR=function(n){return XR(Pm(n))};var $0=function(n){return bt(ZR(n))};var tP=g(Wm($o));var eP=bn(Gl(xt)(hl)),rP=W($m(xt)(z_));var Ip=function(){function n(t,e){this.value0=t,this.value1=e}return n.create=function(t){return function(e){return new n(t,e)}},n}();var aP=function(n){return n},Xd=function(n){return $0(n)},oP=function(){var n=Fa(eb(Bu)(Jr));return function(t){return aP(n(Yu(t)))}}();var q0=function(n){var t=Ap(n);return function(e){return function(r){return oP(new Ip(x0(e),t(r)))}}};var uP={map:function(n){return function(t){return tP(n)(t)}}};var iP={apply:function(n){return function(t){return eP(n)(t)}},Functor0:function(){return uP}},U0={bind:function(n){return function(t){return rP(n)(function(e){return function(r){return r}(t(e))})}},Apply0:function(){return iP}};var B0=q0(R0),k0=Oa(N0);var J0=B0(k0("width"));var V0=B0(k0("height"));var Du=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}();var z0=function(){function n(t,e){this.value0=t,this.value1=e}return n.create=function(t){return function(e){return new n(t,e)}},n}(),Li=function(){function n(t,e){this.value0=t,this.value1=e}return n.create=function(t){return function(e){return new n(t,e)}},n}(),Zd=function(){function n(t,e){this.value0=t,this.value1=e}return n.create=function(t){return function(e){return new n(t,e)}},n}(),xp=function(){function n(){}return n.value=new n,n}();var Hp=Uo(Bo);var Q0=pa(Wu);var lP=Et(Rs)(ha);var sP=so(ps)(ha);var K0=function(n){return function(t){return function(e){return An(new N(new Li(e,xp.value)))(function(){var r=Hp(Li.create(e));return function(a){return r(n(a))}}())(pi(e)(t))}}};var tD=function(){return e0(new N(new Du("String")))(A.create)}();var pP=function(){var n=cf(new Du("Object"));return function(t){return n(Mp(t))}}(),_P=function(){var n=cf(new Du("Array"));return function(t){return n(r0(t))}}();var Y0=function(n){return Q0(function(){var t=Hp(Zd.create("ForeignObject")),e=lP(n);return function(r){return t(e(r))}}())(pP)};var X0=function(n){return Q0(function(){var t=Hp(Zd.create("Array")),e=sP(function(r){var a=Hp(z0.create(r));return function(o){return a(n(o))}});return function(r){return t(e(r))}}())(_P)};var nM=function(n){var t=Kt(n);return function(){return function(){return function(e){return function(r){return function(a){return _a(t(e))(r)(a)}}}}}};var eM=W(Wu),dP=Uo(Bo),DP=g(Sn),rM={gDecodeJson:function(n){return function(t){return new A({})}}},aM=function(n){return n.gDecodeJson};var oM=function(n){var t=aM(n);return function(){return{decodeJson:function(e){var r=Mp(e);if(r instanceof m)return t(r.value0)(_t.value);if(r instanceof D)return new N(new Du("Object"));throw new Error("Failed pattern match at Data.Argonaut.Decode.Class (line 103, column 5 - line 105, column 46): "+[r.constructor.name])}}}},Oc={decodeJson:tD};var uM=function(){return{decodeJson:A.create}}();var gP=function(n){return n.decodeJsonField},iM=function(n){var t=gP(n);return function(e){var r=aM(e);return function(a){var o=Kt(a),u=nM(a)()();return function(){return function(){return{gDecodeJson:function(i){return function(s){var c=o(_t.value),l=pi(c)(i),p=t(l);if(p instanceof m)return eM(dP(Li.create(c))(p.value0))(function(d){return eM(r(i)(_t.value))(function(_){return new A(u(_t.value)(d)(_))})});if(p instanceof D)return new N(new Li(c,xp.value));throw new Error("Failed pattern match at Data.Argonaut.Decode.Class (line 127, column 5 - line 134, column 44): "+[p.constructor.name])}}}}}}}};var aa=function(n){return n.decodeJson};var fM=function(n){return{decodeJson:Y0(aa(n))}};var cM=function(n){var t=aa(n);return{decodeJsonField:function(e){return DP(t)(e)}}},lM=function(n){return{decodeJson:X0(aa(n))}};var sM=function(n){return function(t){var e=qd(t0(t.value0)(t.value1))(function(){var r=xs(t.value0)(t.value1);return function(a){return r(a)}}());return function(r){return e(n(r))}}};var pM=re;var _M=function(n){return function(t){var e=M.create(t);return function(r){return e(n(r))}}};var vM={encodeJson:j(K)},dM={encodeJson:pM};var Rc=function(n){return n.encodeJson};var uD=g(Wn);var LP=Il(Un)(fe);var AP=function(n){return function(t){if(n instanceof qe&&t instanceof qe)return[new A(new M(n.value0,t.value0))];if(n instanceof Fe&&t instanceof qe)return uD(function(e){return new A(new M(e.value0+e.value1,t.value0))})(n.value0);if(n instanceof qe&&t instanceof Fe)return uD(function(e){return new A(new M(n.value0,e.value0+e.value1))})(t.value0);if(n instanceof Fe&&t instanceof Fe)return uD(function(e){return An(new N(e.value0+e.value1))(function(){var r=M.create(e.value0+e.value1);return function(a){return A.create(r(function(o){return e.value0+o}(a)))}}())(LP(e.value0)(t.value0))})(n.value0);throw new Error("Failed pattern match at CSS.Render (line 158, column 1 - line 158, column 80): "+[n.constructor.name,t.constructor.name])}},gM=function(n){return AP(n.value0)(n.value1)};var IP=W(Ro),NP=kv(Un);var hM=function(){var n=function(){var o=jr("; "),u=Os(Bu)(function(i){return function(s){return[i+(": "+s)]}});return function(i){return o(u(i))}}(),t=Em(tt(Sl)(Bu)(Yu)),e=function(o){return o instanceof Ip?new m(new M(o.value0,o.value1)):D.value},r=function(o){var u=IP($l(e)(o))(function(i){return t(gM(i))});return NP(u)},a=ea("style");return function(o){return a(n(r(Xd(o))))}}();function iD(n){return n.type}var fD="keyup";var TM="click";var VP=h;var zP=function(n){return function(t){return zv(n)(function(e){return new m(new eu(t(e)))})}};var Op=function(){var n=zP(TM);return function(t){return n(VP(t))}}();var Rp=ea("role");var QP=it(nt)(Zt),Pp=function(n){return function(t){return function(e){return RE(function(r){return function(){var o=Yo(function(u){return QP(r)(e(u))})();return Qf(n)(o)(!1)(t)(),Kf(n)(o)(!1)(t)}})}}};var Pc=function(n){return K0(aa(n))};var EM=function(n){return sM(Rc(n))};var CM=function(n){return _M(Rc(n))};var eW=EM(vM),rW=CM(dM),Nr=W(Wu),wM=fM(uM),FM=aa(wM),MM=Pc(lM(Oc)),$p=b(ha),aW=yt(J_),oW=g(Wn),Wp=Pc(Oc),uW=Pc(wM),iW=Et(Vr)(ha),fW=g(ze);var LM=function(){function n(){}return n.value=new n,n}(),cW=function(){function n(){}return n.value=new n,n}();var Ze=function(){function n(){}return n.value=new n,n}(),ir=function(){function n(){}return n.value=new n,n}(),fr=function(){function n(){}return n.value=new n,n}(),cr=function(){function n(){}return n.value=new n,n}(),lr=function(){function n(){}return n.value=new n,n}(),Le=function(){function n(){}return n.value=new n,n}(),oa=function(){function n(){}return n.value=new n,n}(),ua=function(){function n(){}return n.value=new n,n}(),AM=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),qp=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),Up=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),Wc=function(){function n(){}return n.value=new n,n}(),Bp=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),cD=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),lD=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),ae=function(){function n(){}return n.value=new n,n}(),_e=function(){function n(){}return n.value=new n,n}(),sD=function(){function n(){}return n.value=new n,n}(),kp=function(){function n(){}return n.value=new n,n}(),pD=function(){function n(){}return n.value=new n,n}(),_D=function(){function n(){}return n.value=new n,n}(),lW=function(){function n(t,e){this.value0=t,this.value1=e}return n.create=function(t){return function(e){return new n(t,e)}},n}(),mD=function(){function n(){}return n.value=new n,n}(),vD=function(){function n(){}return n.value=new n,n}(),dD=function(){function n(){}return n.value=new n,n}(),$c=function(){function n(){}return n.value=new n,n}(),qc=function(){function n(){}return n.value=new n,n}(),Uc=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),DD=function(){function n(){}return n.value=new n,n}(),gD=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),Jp=function(){function n(t,e){this.value0=t,this.value1=e}return n.create=function(t){return function(e){return new n(t,e)}},n}(),hD=function(){function n(){}return n.value=new n,n}(),Vp=function(){function n(t,e){this.value0=t,this.value1=e}return n.create=function(t){return function(e){return new n(t,e)}},n}(),zp=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),SM=function(){function n(){}return n.value=new n,n}(),yD=function(){function n(){}return n.value=new n,n}(),bD=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),IM=function(){function n(){}return n.value=new n,n}(),Gp=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}(),Bc=function(){function n(){}return n.value=new n,n}(),TD=function(){function n(t,e){this.value0=t,this.value1=e}return n.create=function(t){return function(e){return new n(t,e)}},n}(),ED=function(){function n(){}return n.value=new n,n}(),Mo=function(){function n(t){this.value0=t}return n.create=function(t){return new n(t)},n}();var sW={show:function(n){if(n instanceof LM)return"ok";if(n instanceof cW)return"error";throw new Error("Failed pattern match at PhiDefinitions (line 130, column 1 - line 132, column 26): "+[n.constructor.name])}},pW=G(sW);var CD={eq:function(n){return function(t){return n instanceof Ze&&t instanceof Ze||n instanceof ir&&t instanceof ir||n instanceof fr&&t instanceof fr||n instanceof cr&&t instanceof cr||n instanceof lr&&t instanceof lr||n instanceof Le&&t instanceof Le||n instanceof oa&&t instanceof oa||n instanceof ua&&t instanceof ua}}};var MD={compare:function(n){return function(t){if(n instanceof Ze&&t instanceof Ze)return O.value;if(n instanceof Ze)return S.value;if(t instanceof Ze)return x.value;if(n instanceof ir&&t instanceof ir)return O.value;if(n instanceof ir)return S.value;if(t instanceof ir)return x.value;if(n instanceof fr&&t instanceof fr)return O.value;if(n instanceof fr)return S.value;if(t instanceof fr)return x.value;if(n instanceof cr&&t instanceof cr)return O.value;if(n instanceof cr)return S.value;if(t instanceof cr)return x.value;if(n instanceof lr&&t instanceof lr)return O.value;if(n instanceof lr)return S.value;if(t instanceof lr)return x.value;if(n instanceof Le&&t instanceof Le)return O.value;if(n instanceof Le)return S.value;if(t instanceof Le)return x.value;if(n instanceof oa&&t instanceof oa)return O.value;if(n instanceof oa)return S.value;if(t instanceof oa)return x.value;if(n instanceof ua&&t instanceof ua)return O.value;throw new Error("Failed pattern match at PhiDefinitions (line 0, column 0 - line 0, column 0): "+[n.constructor.name,t.constructor.name])}},Eq0:function(){return CD}},_W=rc(MD)(Un);var NM={eq:function(n){return function(t){return n instanceof ae&&t instanceof ae||n instanceof _e&&t instanceof _e}}},xM={encodeJson:function(n){return eW(rW("code")(n.value0.code))(Cp)}},mW={decodeJson:function(n){return Nr(FM(n))(function(t){return Nr(MM(t)("states"))(function(e){return Nr(MM(t)("graphs"))(function(r){return $p(new Bp({states:e,graphs:r,step:0}))})})})}},vW=Pc(mW);var dW=function(){return[Ze.value,ir.value,fr.value,cr.value,lr.value,ua.value]}(),DW=function(){return[Ze.value,ir.value,fr.value,cr.value,lr.value,Le.value,oa.value,ua.value]}(),Ai=function(){var n=Yn(Tc(Me));return function(t){return n(Ko(t))}}(),HM={err:function(n){if(n instanceof sD)return Ai("check 'snippet' or 'editor'");if(n instanceof kp)return Ai("no permalink");if(n instanceof pD)return Ai("no response received!");if(n instanceof _D)return Ai("no href in permalink!");if(n instanceof lW)return Ai(n.value1);throw new Error("Failed pattern match at PhiDefinitions (line 290, column 1 - line 295, column 33): "+[n.constructor.name])}},jp=function(n){return n.getName},Qp={getName:function(n){if(n instanceof Ze)return"original_term";if(n instanceof ir)return"whnf";if(n instanceof fr)return"nf";if(n instanceof cr)return"cbn_reduction";if(n instanceof lr)return"cbn_with_tap";if(n instanceof Le)return"cbn_with_graph";if(n instanceof oa)return"error";if(n instanceof ua)return"phi_latex";throw new Error("Failed pattern match at PhiDefinitions (line 187, column 1 - line 196, column 96): "+[n.constructor.name])},getId:function(n){return vy(aW)(D.value)(oW(function(t){var e=jp(Qp)(t)===n;return e?new m(t):D.value})(DW))}},OM=jp(Qp),RM={decodeJson:function(n){return Nr(FM(n))(function(t){return Nr(Wp(t)("tag"))(function(e){return Nr(function(){var r=e===pW(LM.value);return r?Nr(Wp(t)("code"))(function(a){return Nr(uW(t)("textTabs"))(function(o){return Nr(iW(function(u){return fW(function(i){return new M(u,i)})(Wp(o)(OM(u)))})(dW))(function(u){var i=_W(u);return Nr(vW(t)("graphTab"))(function(s){return $p(new cD({code:a,textTabs:i,graphTab:s}))})})})}):Nr(Wp(t)("error"))(function(a){return $p(new lD({error:a}))})}())(function(r){return $p(r)})})})}},PM={show:OM};var WM=function(n){return n.err};var o_={};JF(o_,{afterMain:()=>JM,afterRead:()=>UM,afterWrite:()=>GM,applyStyles:()=>Ii,arrow:()=>Yp,auto:()=>kc,basePlacements:()=>Ra,beforeMain:()=>BM,beforeRead:()=>$M,beforeWrite:()=>VM,bottom:()=>Wt,clippingParents:()=>wD,computeStyles:()=>xi,createPopper:()=>Xc,createPopperBase:()=>ew,createPopperLite:()=>rw,detectOverflow:()=>Se,end:()=>wo,eventListeners:()=>Hi,flip:()=>t_,hide:()=>e_,left:()=>Ct,main:()=>kM,modifierPhases:()=>LD,offset:()=>r_,placements:()=>Vc,popper:()=>gu,popperGenerator:()=>wu,popperOffsets:()=>Pi,preventOverflow:()=>a_,read:()=>qM,reference:()=>FD,right:()=>Lt,start:()=>ia,top:()=>dt,variationPlacements:()=>Kp,viewport:()=>Jc,write:()=>zM});var dt="top",Wt="bottom",Lt="right",Ct="left",kc="auto",Ra=[dt,Wt,Lt,Ct],ia="start",wo="end",wD="clippingParents",Jc="viewport",gu="popper",FD="reference",Kp=Ra.reduce(function(n,t){return n.concat([t+"-"+ia,t+"-"+wo])},[]),Vc=[].concat(Ra,[kc]).reduce(function(n,t){return n.concat([t,t+"-"+ia,t+"-"+wo])},[]),$M="beforeRead",qM="read",UM="afterRead",BM="beforeMain",kM="main",JM="afterMain",VM="beforeWrite",zM="write",GM="afterWrite",LD=[$M,qM,UM,BM,kM,JM,VM,zM,GM];function oe(n){return n?(n.nodeName||"").toLowerCase():null}function st(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var t=n.ownerDocument;return t&&t.defaultView||window}return n}function sr(n){var t=st(n).Element;return n instanceof t||n instanceof Element}function Vt(n){var t=st(n).HTMLElement;return n instanceof t||n instanceof HTMLElement}function Si(n){if(typeof ShadowRoot>"u")return!1;var t=st(n).ShadowRoot;return n instanceof t||n instanceof ShadowRoot}function hW(n){var t=n.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},a=t.attributes[e]||{},o=t.elements[e];!Vt(o)||!oe(o)||(Object.assign(o.style,r),Object.keys(a).forEach(function(u){var i=a[u];i===!1?o.removeAttribute(u):o.setAttribute(u,i===!0?"":i)}))})}function yW(n){var t=n.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],o=t.attributes[r]||{},u=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:e[r]),i=u.reduce(function(s,c){return s[c]="",s},{});!Vt(a)||!oe(a)||(Object.assign(a.style,i),Object.keys(o).forEach(function(s){a.removeAttribute(s)}))})}}var Ii={name:"applyStyles",enabled:!0,phase:"write",fn:hW,effect:yW,requires:["computeStyles"]};function ue(n){return n.split("-")[0]}var xr=Math.max,hu=Math.min,Pa=Math.round;function Ni(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function zc(){return!/^((?!chrome|android).)*safari/i.test(Ni())}function pr(n,t,e){t===void 0&&(t=!1),e===void 0&&(e=!1);var r=n.getBoundingClientRect(),a=1,o=1;t&&Vt(n)&&(a=n.offsetWidth>0&&Pa(r.width)/n.offsetWidth||1,o=n.offsetHeight>0&&Pa(r.height)/n.offsetHeight||1);var u=sr(n)?st(n):window,i=u.visualViewport,s=!zc()&&e,c=(r.left+(s&&i?i.offsetLeft:0))/a,l=(r.top+(s&&i?i.offsetTop:0))/o,p=r.width/a,d=r.height/o;return{width:p,height:d,top:l,right:c+p,bottom:l+d,left:c,x:c,y:l}}function yu(n){var t=pr(n),e=n.offsetWidth,r=n.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:n.offsetLeft,y:n.offsetTop,width:e,height:r}}function Gc(n,t){var e=t.getRootNode&&t.getRootNode();if(n.contains(t))return!0;if(e&&Si(e)){var r=t;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ae(n){return st(n).getComputedStyle(n)}function AD(n){return["table","td","th"].indexOf(oe(n))>=0}function me(n){return((sr(n)?n.ownerDocument:n.document)||window.document).documentElement}function Wa(n){return oe(n)==="html"?n:n.assignedSlot||n.parentNode||(Si(n)?n.host:null)||me(n)}function jM(n){return!Vt(n)||Ae(n).position==="fixed"?null:n.offsetParent}function bW(n){var t=/firefox/i.test(Ni()),e=/Trident/i.test(Ni());if(e&&Vt(n)){var r=Ae(n);if(r.position==="fixed")return null}var a=Wa(n);for(Si(a)&&(a=a.host);Vt(a)&&["html","body"].indexOf(oe(a))<0;){var o=Ae(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function Hr(n){for(var t=st(n),e=jM(n);e&&AD(e)&&Ae(e).position==="static";)e=jM(e);return e&&(oe(e)==="html"||oe(e)==="body"&&Ae(e).position==="static")?t:e||bW(n)||t}function bu(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function Tu(n,t,e){return xr(n,hu(t,e))}function QM(n,t,e){var r=Tu(n,t,e);return r>e?e:r}function jc(){return{top:0,right:0,bottom:0,left:0}}function Qc(n){return Object.assign({},jc(),n)}function Kc(n,t){return t.reduce(function(e,r){return e[r]=n,e},{})}var TW=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,Qc(typeof t!="number"?t:Kc(t,Ra))};function EW(n){var t,e=n.state,r=n.name,a=n.options,o=e.elements.arrow,u=e.modifiersData.popperOffsets,i=ue(e.placement),s=bu(i),c=[Ct,Lt].indexOf(i)>=0,l=c?"height":"width";if(!(!o||!u)){var p=TW(a.padding,e),d=yu(o),_=s==="y"?dt:Ct,f=s==="y"?Wt:Lt,v=e.rects.reference[l]+e.rects.reference[s]-u[s]-e.rects.popper[l],C=u[s]-e.rects.reference[s],V=Hr(o),Dn=V?s==="y"?V.clientHeight||0:V.clientWidth||0:0,yn=v/2-C/2,R=p[_],F=Dn-d[l]-p[f],vn=Dn/2-d[l]/2+yn,kn=Tu(R,vn,F),Mt=s;e.modifiersData[r]=(t={},t[Mt]=kn,t.centerOffset=kn-vn,t)}}function CW(n){var t=n.state,e=n.options,r=e.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||Gc(t.elements.popper,a)&&(t.elements.arrow=a))}var Yp={name:"arrow",enabled:!0,phase:"main",fn:EW,effect:CW,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _r(n){return n.split("-")[1]}var MW={top:"auto",right:"auto",bottom:"auto",left:"auto"};function wW(n,t){var e=n.x,r=n.y,a=t.devicePixelRatio||1;return{x:Pa(e*a)/a||0,y:Pa(r*a)/a||0}}function KM(n){var t,e=n.popper,r=n.popperRect,a=n.placement,o=n.variation,u=n.offsets,i=n.position,s=n.gpuAcceleration,c=n.adaptive,l=n.roundOffsets,p=n.isFixed,d=u.x,_=d===void 0?0:d,f=u.y,v=f===void 0?0:f,C=typeof l=="function"?l({x:_,y:v}):{x:_,y:v};_=C.x,v=C.y;var V=u.hasOwnProperty("x"),Dn=u.hasOwnProperty("y"),yn=Ct,R=dt,F=window;if(c){var vn=Hr(e),kn="clientHeight",Mt="clientWidth";if(vn===st(e)&&(vn=me(e),Ae(vn).position!=="static"&&i==="absolute"&&(kn="scrollHeight",Mt="scrollWidth")),vn=vn,a===dt||(a===Ct||a===Lt)&&o===wo){R=Wt;var Dt=p&&vn===F&&F.visualViewport?F.visualViewport.height:vn[kn];v-=Dt-r.height,v*=s?1:-1}if(a===Ct||(a===dt||a===Wt)&&o===wo){yn=Lt;var pt=p&&vn===F&&F.visualViewport?F.visualViewport.width:vn[Mt];_-=pt-r.width,_*=s?1:-1}}var wt=Object.assign({position:i},c&&MW),Be=l===!0?wW({x:_,y:v},st(e)):{x:_,y:v};if(_=Be.x,v=Be.y,s){var gt;return Object.assign({},wt,(gt={},gt[R]=Dn?"0":"",gt[yn]=V?"0":"",gt.transform=(F.devicePixelRatio||1)<=1?"translate("+_+"px, "+v+"px)":"translate3d("+_+"px, "+v+"px, 0)",gt))}return Object.assign({},wt,(t={},t[R]=Dn?v+"px":"",t[yn]=V?_+"px":"",t.transform="",t))}function FW(n){var t=n.state,e=n.options,r=e.gpuAcceleration,a=r===void 0?!0:r,o=e.adaptive,u=o===void 0?!0:o,i=e.roundOffsets,s=i===void 0?!0:i,c={placement:ue(t.placement),variation:_r(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,KM(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,KM(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var xi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:FW,data:{}};var Xp={passive:!0};function LW(n){var t=n.state,e=n.instance,r=n.options,a=r.scroll,o=a===void 0?!0:a,u=r.resize,i=u===void 0?!0:u,s=st(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(l){l.addEventListener("scroll",e.update,Xp)}),i&&s.addEventListener("resize",e.update,Xp),function(){o&&c.forEach(function(l){l.removeEventListener("scroll",e.update,Xp)}),i&&s.removeEventListener("resize",e.update,Xp)}}var Hi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:LW,data:{}};var AW={left:"right",right:"left",bottom:"top",top:"bottom"};function Oi(n){return n.replace(/left|right|bottom|top/g,function(t){return AW[t]})}var SW={start:"end",end:"start"};function Zp(n){return n.replace(/start|end/g,function(t){return SW[t]})}function Eu(n){var t=st(n),e=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:e,scrollTop:r}}function Cu(n){return pr(me(n)).left+Eu(n).scrollLeft}function SD(n,t){var e=st(n),r=me(n),a=e.visualViewport,o=r.clientWidth,u=r.clientHeight,i=0,s=0;if(a){o=a.width,u=a.height;var c=zc();(c||!c&&t==="fixed")&&(i=a.offsetLeft,s=a.offsetTop)}return{width:o,height:u,x:i+Cu(n),y:s}}function ID(n){var t,e=me(n),r=Eu(n),a=(t=n.ownerDocument)==null?void 0:t.body,o=xr(e.scrollWidth,e.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),u=xr(e.scrollHeight,e.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),i=-r.scrollLeft+Cu(n),s=-r.scrollTop;return Ae(a||e).direction==="rtl"&&(i+=xr(e.clientWidth,a?a.clientWidth:0)-o),{width:o,height:u,x:i,y:s}}function Mu(n){var t=Ae(n),e=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+a+r)}function n_(n){return["html","body","#document"].indexOf(oe(n))>=0?n.ownerDocument.body:Vt(n)&&Mu(n)?n:n_(Wa(n))}function Fo(n,t){var e;t===void 0&&(t=[]);var r=n_(n),a=r===((e=n.ownerDocument)==null?void 0:e.body),o=st(r),u=a?[o].concat(o.visualViewport||[],Mu(r)?r:[]):r,i=t.concat(u);return a?i:i.concat(Fo(Wa(u)))}function Ri(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function IW(n,t){var e=pr(n,!1,t==="fixed");return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}function YM(n,t,e){return t===Jc?Ri(SD(n,e)):sr(t)?IW(t,e):Ri(ID(me(n)))}function NW(n){var t=Fo(Wa(n)),e=["absolute","fixed"].indexOf(Ae(n).position)>=0,r=e&&Vt(n)?Hr(n):n;return sr(r)?t.filter(function(a){return sr(a)&&Gc(a,r)&&oe(a)!=="body"}):[]}function ND(n,t,e,r){var a=t==="clippingParents"?NW(n):[].concat(t),o=[].concat(a,[e]),u=o[0],i=o.reduce(function(s,c){var l=YM(n,c,r);return s.top=xr(l.top,s.top),s.right=hu(l.right,s.right),s.bottom=hu(l.bottom,s.bottom),s.left=xr(l.left,s.left),s},YM(n,u,r));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Yc(n){var t=n.reference,e=n.element,r=n.placement,a=r?ue(r):null,o=r?_r(r):null,u=t.x+t.width/2-e.width/2,i=t.y+t.height/2-e.height/2,s;switch(a){case dt:s={x:u,y:t.y-e.height};break;case Wt:s={x:u,y:t.y+t.height};break;case Lt:s={x:t.x+t.width,y:i};break;case Ct:s={x:t.x-e.width,y:i};break;default:s={x:t.x,y:t.y}}var c=a?bu(a):null;if(c!=null){var l=c==="y"?"height":"width";switch(o){case ia:s[c]=s[c]-(t[l]/2-e[l]/2);break;case wo:s[c]=s[c]+(t[l]/2-e[l]/2);break;default:}}return s}function Se(n,t){t===void 0&&(t={});var e=t,r=e.placement,a=r===void 0?n.placement:r,o=e.strategy,u=o===void 0?n.strategy:o,i=e.boundary,s=i===void 0?wD:i,c=e.rootBoundary,l=c===void 0?Jc:c,p=e.elementContext,d=p===void 0?gu:p,_=e.altBoundary,f=_===void 0?!1:_,v=e.padding,C=v===void 0?0:v,V=Qc(typeof C!="number"?C:Kc(C,Ra)),Dn=d===gu?FD:gu,yn=n.rects.popper,R=n.elements[f?Dn:d],F=ND(sr(R)?R:R.contextElement||me(n.elements.popper),s,l,u),vn=pr(n.elements.reference),kn=Yc({reference:vn,element:yn,strategy:"absolute",placement:a}),Mt=Ri(Object.assign({},yn,kn)),Dt=d===gu?Mt:vn,pt={top:F.top-Dt.top+V.top,bottom:Dt.bottom-F.bottom+V.bottom,left:F.left-Dt.left+V.left,right:Dt.right-F.right+V.right},wt=n.modifiersData.offset;if(d===gu&&wt){var Be=wt[a];Object.keys(pt).forEach(function(gt){var ht=[Lt,Wt].indexOf(gt)>=0?1:-1,er=[dt,Wt].indexOf(gt)>=0?"y":"x";pt[gt]+=Be[er]*ht})}return pt}function xD(n,t){t===void 0&&(t={});var e=t,r=e.placement,a=e.boundary,o=e.rootBoundary,u=e.padding,i=e.flipVariations,s=e.allowedAutoPlacements,c=s===void 0?Vc:s,l=_r(r),p=l?i?Kp:Kp.filter(function(f){return _r(f)===l}):Ra,d=p.filter(function(f){return c.indexOf(f)>=0});d.length===0&&(d=p);var _=d.reduce(function(f,v){return f[v]=Se(n,{placement:v,boundary:a,rootBoundary:o,padding:u})[ue(v)],f},{});return Object.keys(_).sort(function(f,v){return _[f]-_[v]})}function xW(n){if(ue(n)===kc)return[];var t=Oi(n);return[Zp(n),t,Zp(t)]}function HW(n){var t=n.state,e=n.options,r=n.name;if(!t.modifiersData[r]._skip){for(var a=e.mainAxis,o=a===void 0?!0:a,u=e.altAxis,i=u===void 0?!0:u,s=e.fallbackPlacements,c=e.padding,l=e.boundary,p=e.rootBoundary,d=e.altBoundary,_=e.flipVariations,f=_===void 0?!0:_,v=e.allowedAutoPlacements,C=t.options.placement,V=ue(C),Dn=V===C,yn=s||(Dn||!f?[Oi(C)]:xW(C)),R=[C].concat(yn).reduce(function(Mn,$n){return Mn.concat(ue($n)===kc?xD(t,{placement:$n,boundary:l,rootBoundary:p,padding:c,flipVariations:f,allowedAutoPlacements:v}):$n)},[]),F=t.rects.reference,vn=t.rects.popper,kn=new Map,Mt=!0,Dt=R[0],pt=0;pt=0,er=ht?"width":"height",Gt=Se(t,{placement:wt,boundary:l,rootBoundary:p,altBoundary:d,padding:c}),ve=ht?gt?Lt:Ct:gt?Wt:dt;F[er]>vn[er]&&(ve=Oi(ve));var jt=Oi(ve),ke=[];if(o&&ke.push(Gt[Be]<=0),i&&ke.push(Gt[ve]<=0,Gt[jt]<=0),ke.every(function(Mn){return Mn})){Dt=wt,Mt=!1;break}kn.set(wt,ke)}if(Mt)for(var Ba=f?3:1,Yi=function($n){var xn=R.find(function(X){var I=kn.get(X);if(I)return I.slice(0,$n).every(function(On){return On})});if(xn)return Dt=xn,"break"},Oo=Ba;Oo>0;Oo--){var B=Yi(Oo);if(B==="break")break}t.placement!==Dt&&(t.modifiersData[r]._skip=!0,t.placement=Dt,t.reset=!0)}}var t_={name:"flip",enabled:!0,phase:"main",fn:HW,requiresIfExists:["offset"],data:{_skip:!1}};function XM(n,t,e){return e===void 0&&(e={x:0,y:0}),{top:n.top-t.height-e.y,right:n.right-t.width+e.x,bottom:n.bottom-t.height+e.y,left:n.left-t.width-e.x}}function ZM(n){return[dt,Lt,Wt,Ct].some(function(t){return n[t]>=0})}function OW(n){var t=n.state,e=n.name,r=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,u=Se(t,{elementContext:"reference"}),i=Se(t,{altBoundary:!0}),s=XM(u,r),c=XM(i,a,o),l=ZM(s),p=ZM(c);t.modifiersData[e]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":p})}var e_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:OW};function RW(n,t,e){var r=ue(n),a=[Ct,dt].indexOf(r)>=0?-1:1,o=typeof e=="function"?e(Object.assign({},t,{placement:n})):e,u=o[0],i=o[1];return u=u||0,i=(i||0)*a,[Ct,Lt].indexOf(r)>=0?{x:i,y:u}:{x:u,y:i}}function PW(n){var t=n.state,e=n.options,r=n.name,a=e.offset,o=a===void 0?[0,0]:a,u=Vc.reduce(function(l,p){return l[p]=RW(p,t.rects,o),l},{}),i=u[t.placement],s=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=u}var r_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:PW};function WW(n){var t=n.state,e=n.name;t.modifiersData[e]=Yc({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Pi={name:"popperOffsets",enabled:!0,phase:"read",fn:WW,data:{}};function HD(n){return n==="x"?"y":"x"}function $W(n){var t=n.state,e=n.options,r=n.name,a=e.mainAxis,o=a===void 0?!0:a,u=e.altAxis,i=u===void 0?!1:u,s=e.boundary,c=e.rootBoundary,l=e.altBoundary,p=e.padding,d=e.tether,_=d===void 0?!0:d,f=e.tetherOffset,v=f===void 0?0:f,C=Se(t,{boundary:s,rootBoundary:c,padding:p,altBoundary:l}),V=ue(t.placement),Dn=_r(t.placement),yn=!Dn,R=bu(V),F=HD(R),vn=t.modifiersData.popperOffsets,kn=t.rects.reference,Mt=t.rects.popper,Dt=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,pt=typeof Dt=="number"?{mainAxis:Dt,altAxis:Dt}:Object.assign({mainAxis:0,altAxis:0},Dt),wt=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Be={x:0,y:0};if(vn){if(o){var gt,ht=R==="y"?dt:Ct,er=R==="y"?Wt:Lt,Gt=R==="y"?"height":"width",ve=vn[R],jt=ve+C[ht],ke=ve-C[er],Ba=_?-Mt[Gt]/2:0,Yi=Dn===ia?kn[Gt]:Mt[Gt],Oo=Dn===ia?-Mt[Gt]:-kn[Gt],B=t.elements.arrow,Mn=_&&B?yu(B):{width:0,height:0},$n=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:jc(),xn=$n[ht],X=$n[er],I=Tu(0,kn[Gt],Mn[Gt]),On=yn?kn[Gt]/2-Ba-I-xn-pt.mainAxis:Yi-I-xn-pt.mainAxis,Cn=yn?-kn[Gt]/2+Ba+I+X+pt.mainAxis:Oo+I+X+pt.mainAxis,Qn=t.elements.arrow&&Hr(t.elements.arrow),It=Qn?R==="y"?Qn.clientTop||0:Qn.clientLeft||0:0,qn=(gt=wt?.[R])!=null?gt:0,ft=ve+On-qn-It,la=ve+Cn-qn,be=Tu(_?hu(jt,ft):jt,ve,_?xr(ke,la):ke);vn[R]=be,Be[R]=be-ve}if(i){var Dr,Rr=R==="x"?dt:Ct,at=R==="x"?Wt:Lt,Z=vn[F],Tn=F==="y"?"height":"width",en=Z+C[Rr],an=Z-C[at],wn=[dt,Ct].indexOf(V)!==-1,Nn=(Dr=wt?.[F])!=null?Dr:0,et=wn?en:Z-kn[Tn]-Mt[Tn]-Nn+pt.altAxis,Nt=wn?Z+kn[Tn]+Mt[Tn]-Nn-pt.altAxis:an,ka=_&&wn?QM(et,Z,Nt):Tu(_?et:en,Z,_?Nt:an);vn[F]=ka,Be[F]=ka-Z}t.modifiersData[r]=Be}}var a_={name:"preventOverflow",enabled:!0,phase:"main",fn:$W,requiresIfExists:["offset"]};function OD(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function RD(n){return n===st(n)||!Vt(n)?Eu(n):OD(n)}function qW(n){var t=n.getBoundingClientRect(),e=Pa(t.width)/n.offsetWidth||1,r=Pa(t.height)/n.offsetHeight||1;return e!==1||r!==1}function PD(n,t,e){e===void 0&&(e=!1);var r=Vt(t),a=Vt(t)&&qW(t),o=me(t),u=pr(n,a,e),i={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!e)&&((oe(t)!=="body"||Mu(o))&&(i=RD(t)),Vt(t)?(s=pr(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):o&&(s.x=Cu(o))),{x:u.left+i.scrollLeft-s.x,y:u.top+i.scrollTop-s.y,width:u.width,height:u.height}}function UW(n){var t=new Map,e=new Set,r=[];n.forEach(function(o){t.set(o.name,o)});function a(o){e.add(o.name);var u=[].concat(o.requires||[],o.requiresIfExists||[]);u.forEach(function(i){if(!e.has(i)){var s=t.get(i);s&&a(s)}}),r.push(o)}return n.forEach(function(o){e.has(o.name)||a(o)}),r}function WD(n){var t=UW(n);return LD.reduce(function(e,r){return e.concat(t.filter(function(a){return a.phase===r}))},[])}function $D(n){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(n())})})),t}}function qD(n){var t=n.reduce(function(e,r){var a=e[r.name];return e[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,e},{});return Object.keys(t).map(function(e){return t[e]})}var nw={placement:"bottom",modifiers:[],strategy:"absolute"};function tw(){for(var n=arguments.length,t=new Array(n),e=0;e(n&&window.CSS&&window.CSS.escape&&(n=n.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),n),zW=n=>n==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(),GW=n=>{do n+=Math.floor(Math.random()*JW);while(document.getElementById(n));return n},jW=n=>{if(!n)return 0;let{transitionDuration:t,transitionDelay:e}=window.getComputedStyle(n),r=Number.parseFloat(t),a=Number.parseFloat(e);return!r&&!a?0:(t=t.split(",")[0],e=e.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(e))*VW)},Nw=n=>{n.dispatchEvent(new Event(tg))},$a=n=>!n||typeof n!="object"?!1:(typeof n.jquery<"u"&&(n=n[0]),typeof n.nodeType<"u"),Ao=n=>$a(n)?n.jquery?n[0]:n:typeof n=="string"&&n.length>0?document.querySelector(Iw(n)):null,zi=n=>{if(!$a(n)||n.getClientRects().length===0)return!1;let t=getComputedStyle(n).getPropertyValue("visibility")==="visible",e=n.closest("details:not([open])");if(!e)return t;if(e!==n){let r=n.closest("summary");if(r&&r.parentNode!==e||r===null)return!1}return t},So=n=>!n||n.nodeType!==Node.ELEMENT_NODE||n.classList.contains("disabled")?!0:typeof n.disabled<"u"?n.disabled:n.hasAttribute("disabled")&&n.getAttribute("disabled")!=="false",xw=n=>{if(!document.documentElement.attachShadow)return null;if(typeof n.getRootNode=="function"){let t=n.getRootNode();return t instanceof ShadowRoot?t:null}return n instanceof ShadowRoot?n:n.parentNode?xw(n.parentNode):null},m_=()=>{},al=n=>{n.offsetHeight},Hw=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,BD=[],QW=n=>{document.readyState==="loading"?(BD.length||document.addEventListener("DOMContentLoaded",()=>{for(let t of BD)t()}),BD.push(n)):n()},mr=()=>document.documentElement.dir==="rtl",dr=n=>{QW(()=>{let t=Hw();if(t){let e=n.NAME,r=t.fn[e];t.fn[e]=n.jQueryInterface,t.fn[e].Constructor=n,t.fn[e].noConflict=()=>(t.fn[e]=r,n.jQueryInterface)}})},Ue=(n,t=[],e=n)=>typeof n=="function"?n(...t):e,Ow=(n,t,e=!0)=>{if(!e){Ue(n);return}let r=5,a=jW(t)+r,o=!1,u=({target:i})=>{i===t&&(o=!0,t.removeEventListener(tg,u),Ue(n))};t.addEventListener(tg,u),setTimeout(()=>{o||Nw(t)},a)},og=(n,t,e,r)=>{let a=n.length,o=n.indexOf(t);return o===-1?!e&&r?n[a-1]:n[0]:(o+=e?1:-1,r&&(o=(o+a)%a),n[Math.max(0,Math.min(o,a-1))])},KW=/[^.]*(?=\..*)\.|.*/,YW=/\..*/,XW=/::\d+$/,kD={},aw=1,Rw={mouseenter:"mouseover",mouseleave:"mouseout"},ZW=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Pw(n,t){return t&&`${t}::${aw++}`||n.uidEvent||aw++}function Ww(n){let t=Pw(n);return n.uidEvent=t,kD[t]=kD[t]||{},kD[t]}function n$(n,t){return function e(r){return ug(r,{delegateTarget:n}),e.oneOff&&E.off(n,r.type,t),t.apply(n,[r])}}function t$(n,t,e){return function r(a){let o=n.querySelectorAll(t);for(let{target:u}=a;u&&u!==this;u=u.parentNode)for(let i of o)if(i===u)return ug(a,{delegateTarget:u}),r.oneOff&&E.off(n,a.type,t,e),e.apply(u,[a])}}function $w(n,t,e=null){return Object.values(n).find(r=>r.callable===t&&r.delegationSelector===e)}function qw(n,t,e){let r=typeof t=="string",a=r?e:t||e,o=Uw(n);return ZW.has(o)||(o=n),[r,a,o]}function ow(n,t,e,r,a){if(typeof t!="string"||!n)return;let[o,u,i]=qw(t,e,r);t in Rw&&(u=(f=>function(v){if(!v.relatedTarget||v.relatedTarget!==v.delegateTarget&&!v.delegateTarget.contains(v.relatedTarget))return f.call(this,v)})(u));let s=Ww(n),c=s[i]||(s[i]={}),l=$w(c,u,o?e:null);if(l){l.oneOff=l.oneOff&&a;return}let p=Pw(u,t.replace(KW,"")),d=o?t$(n,e,u):n$(n,u);d.delegationSelector=o?e:null,d.callable=u,d.oneOff=a,d.uidEvent=p,c[p]=d,n.addEventListener(i,d,o)}function eg(n,t,e,r,a){let o=$w(t[e],r,a);o&&(n.removeEventListener(e,o,!!a),delete t[e][o.uidEvent])}function e$(n,t,e,r){let a=t[e]||{};for(let[o,u]of Object.entries(a))o.includes(r)&&eg(n,t,e,u.callable,u.delegationSelector)}function Uw(n){return n=n.replace(YW,""),Rw[n]||n}var E={on(n,t,e,r){ow(n,t,e,r,!1)},one(n,t,e,r){ow(n,t,e,r,!0)},off(n,t,e,r){if(typeof t!="string"||!n)return;let[a,o,u]=qw(t,e,r),i=u!==t,s=Ww(n),c=s[u]||{},l=t.startsWith(".");if(typeof o<"u"){if(!Object.keys(c).length)return;eg(n,s,u,o,a?e:null);return}if(l)for(let p of Object.keys(s))e$(n,s,p,t.slice(1));for(let[p,d]of Object.entries(c)){let _=p.replace(XW,"");(!i||t.includes(_))&&eg(n,s,u,d.callable,d.delegationSelector)}},trigger(n,t,e){if(typeof t!="string"||!n)return null;let r=Hw(),a=Uw(t),o=t!==a,u=null,i=!0,s=!0,c=!1;o&&r&&(u=r.Event(t,e),r(n).trigger(u),i=!u.isPropagationStopped(),s=!u.isImmediatePropagationStopped(),c=u.isDefaultPrevented());let l=ug(new Event(t,{bubbles:i,cancelable:!0}),e);return c&&l.preventDefault(),s&&n.dispatchEvent(l),l.defaultPrevented&&u&&u.preventDefault(),l}};function ug(n,t={}){for(let[e,r]of Object.entries(t))try{n[e]=r}catch{Object.defineProperty(n,e,{configurable:!0,get(){return r}})}return n}function uw(n){if(n==="true")return!0;if(n==="false")return!1;if(n===Number(n).toString())return Number(n);if(n===""||n==="null")return null;if(typeof n!="string")return n;try{return JSON.parse(decodeURIComponent(n))}catch{return n}}function JD(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}var qa={setDataAttribute(n,t,e){n.setAttribute(`data-bs-${JD(t)}`,e)},removeDataAttribute(n,t){n.removeAttribute(`data-bs-${JD(t)}`)},getDataAttributes(n){if(!n)return{};let t={},e=Object.keys(n.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(let r of e){let a=r.replace(/^bs/,"");a=a.charAt(0).toLowerCase()+a.slice(1,a.length),t[a]=uw(n.dataset[r])}return t},getDataAttribute(n,t){return uw(n.getAttribute(`data-bs-${JD(t)}`))}},Au=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){let r=$a(e)?qa.getDataAttribute(e,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...$a(e)?qa.getDataAttributes(e):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(let[r,a]of Object.entries(e)){let o=t[r],u=$a(o)?"element":zW(o);if(!new RegExp(a).test(u))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${u}" but expected type "${a}".`)}}},r$="5.3.0",nr=class extends Au{constructor(t,e){super(),t=Ao(t),t&&(this._element=t,this._config=this._getConfig(e),UD.set(this._element,this.constructor.DATA_KEY,this))}dispose(){UD.remove(this._element,this.constructor.DATA_KEY),E.off(this._element,this.constructor.EVENT_KEY);for(let t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,r=!0){Ow(t,e,r)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return UD.get(Ao(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static get VERSION(){return r$}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}},VD=n=>{let t=n.getAttribute("data-bs-target");if(!t||t==="#"){let e=n.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e=`#${e.split("#")[1]}`),t=e&&e!=="#"?e.trim():null}return Iw(t)},pn={find(n,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,n))},findOne(n,t=document.documentElement){return Element.prototype.querySelector.call(t,n)},children(n,t){return[].concat(...n.children).filter(e=>e.matches(t))},parents(n,t){let e=[],r=n.parentNode.closest(t);for(;r;)e.push(r),r=r.parentNode.closest(t);return e},prev(n,t){let e=n.previousElementSibling;for(;e;){if(e.matches(t))return[e];e=e.previousElementSibling}return[]},next(n,t){let e=n.nextElementSibling;for(;e;){if(e.matches(t))return[e];e=e.nextElementSibling}return[]},focusableChildren(n){let t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,n).filter(e=>!So(e)&&zi(e))},getSelectorFromElement(n){let t=VD(n);return t&&pn.findOne(t)?t:null},getElementFromSelector(n){let t=VD(n);return t?pn.findOne(t):null},getMultipleElementsFromSelector(n){let t=VD(n);return t?pn.find(t):[]}},C_=(n,t="hide")=>{let e=`click.dismiss${n.EVENT_KEY}`,r=n.NAME;E.on(document,e,`[data-bs-dismiss="${r}"]`,function(a){if(["A","AREA"].includes(this.tagName)&&a.preventDefault(),So(this))return;let o=pn.getElementFromSelector(this)||this.closest(`.${r}`);n.getOrCreateInstance(o)[t]()})},a$="alert",o$="bs.alert",Bw=`.${o$}`,u$=`close${Bw}`,i$=`closed${Bw}`,f$="fade",c$="show",v_=class n extends nr{static get NAME(){return a$}close(){if(E.trigger(this._element,u$).defaultPrevented)return;this._element.classList.remove(c$);let e=this._element.classList.contains(f$);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),E.trigger(this._element,i$),this.dispose()}static jQueryInterface(t){return this.each(function(){let e=n.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}};C_(v_,"close");dr(v_);var l$="button",s$="bs.button",p$=`.${s$}`,_$=".data-api",m$="active",iw='[data-bs-toggle="button"]',v$=`click${p$}${_$}`,d_=class n extends nr{static get NAME(){return l$}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(m$))}static jQueryInterface(t){return this.each(function(){let e=n.getOrCreateInstance(this);t==="toggle"&&e[t]()})}};E.on(document,v$,iw,n=>{n.preventDefault();let t=n.target.closest(iw);d_.getOrCreateInstance(t).toggle()});dr(d_);var d$="swipe",Gi=".bs.swipe",D$=`touchstart${Gi}`,g$=`touchmove${Gi}`,h$=`touchend${Gi}`,y$=`pointerdown${Gi}`,b$=`pointerup${Gi}`,T$="touch",E$="pen",C$="pointer-event",M$=40,w$={endCallback:null,leftCallback:null,rightCallback:null},F$={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"},D_=class n extends Au{constructor(t,e){super(),this._element=t,!(!t||!n.isSupported())&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return w$}static get DefaultType(){return F$}static get NAME(){return d$}dispose(){E.off(this._element,Gi)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),Ue(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){let t=Math.abs(this._deltaX);if(t<=M$)return;let e=t/this._deltaX;this._deltaX=0,e&&Ue(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(E.on(this._element,y$,t=>this._start(t)),E.on(this._element,b$,t=>this._end(t)),this._element.classList.add(C$)):(E.on(this._element,D$,t=>this._start(t)),E.on(this._element,g$,t=>this._move(t)),E.on(this._element,h$,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===E$||t.pointerType===T$)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}},L$="carousel",A$="bs.carousel",xo=`.${A$}`,kw=".data-api",S$="ArrowLeft",I$="ArrowRight",N$=500,Zc="next",Wi="prev",qi="left",p_="right",x$=`slide${xo}`,zD=`slid${xo}`,H$=`keydown${xo}`,O$=`mouseenter${xo}`,R$=`mouseleave${xo}`,P$=`dragstart${xo}`,W$=`load${xo}${kw}`,$$=`click${xo}${kw}`,Jw="carousel",u_="active",q$="slide",U$="carousel-item-end",B$="carousel-item-start",k$="carousel-item-next",J$="carousel-item-prev",Vw=".active",zw=".carousel-item",V$=Vw+zw,z$=".carousel-item img",G$=".carousel-indicators",j$="[data-bs-slide], [data-bs-slide-to]",Q$='[data-bs-ride="carousel"]',K$={[S$]:p_,[I$]:qi},Y$={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},X$={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"},tl=class n extends nr{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=pn.findOne(G$,this._element),this._addEventListeners(),this._config.ride===Jw&&this.cycle()}static get Default(){return Y$}static get DefaultType(){return X$}static get NAME(){return L$}next(){this._slide(Zc)}nextWhenVisible(){!document.hidden&&zi(this._element)&&this.next()}prev(){this._slide(Wi)}pause(){this._isSliding&&Nw(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){E.one(this._element,zD,()=>this.cycle());return}this.cycle()}}to(t){let e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding){E.one(this._element,zD,()=>this.to(t));return}let r=this._getItemIndex(this._getActive());if(r===t)return;let a=t>r?Zc:Wi;this._slide(a,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&E.on(this._element,H$,t=>this._keydown(t)),this._config.pause==="hover"&&(E.on(this._element,O$,()=>this.pause()),E.on(this._element,R$,()=>this._maybeEnableCycle())),this._config.touch&&D_.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let r of pn.find(z$,this._element))E.on(r,P$,a=>a.preventDefault());let e={leftCallback:()=>this._slide(this._directionToOrder(qi)),rightCallback:()=>this._slide(this._directionToOrder(p_)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),N$+this._config.interval))}};this._swipeHelper=new D_(this._element,e)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;let e=K$[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;let e=pn.findOne(Vw,this._indicatorsElement);e.classList.remove(u_),e.removeAttribute("aria-current");let r=pn.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);r&&(r.classList.add(u_),r.setAttribute("aria-current","true"))}_updateInterval(){let t=this._activeElement||this._getActive();if(!t)return;let e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;let r=this._getActive(),a=t===Zc,o=e||og(this._getItems(),r,a,this._config.wrap);if(o===r)return;let u=this._getItemIndex(o),i=_=>E.trigger(this._element,_,{relatedTarget:o,direction:this._orderToDirection(t),from:this._getItemIndex(r),to:u});if(i(x$).defaultPrevented||!r||!o)return;let c=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(u),this._activeElement=o;let l=a?B$:U$,p=a?k$:J$;o.classList.add(p),al(o),r.classList.add(l),o.classList.add(l);let d=()=>{o.classList.remove(l,p),o.classList.add(u_),r.classList.remove(u_,p,l),this._isSliding=!1,i(zD)};this._queueCallback(d,r,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(q$)}_getActive(){return pn.findOne(V$,this._element)}_getItems(){return pn.find(zw,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return mr()?t===qi?Wi:Zc:t===qi?Zc:Wi}_orderToDirection(t){return mr()?t===Wi?qi:p_:t===Wi?p_:qi}static jQueryInterface(t){return this.each(function(){let e=n.getOrCreateInstance(this,t);if(typeof t=="number"){e.to(t);return}if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}};E.on(document,$$,j$,function(n){let t=pn.getElementFromSelector(this);if(!t||!t.classList.contains(Jw))return;n.preventDefault();let e=tl.getOrCreateInstance(t),r=this.getAttribute("data-bs-slide-to");if(r){e.to(r),e._maybeEnableCycle();return}if(qa.getDataAttribute(this,"slide")==="next"){e.next(),e._maybeEnableCycle();return}e.prev(),e._maybeEnableCycle()});E.on(window,W$,()=>{let n=pn.find(Q$);for(let t of n)tl.getOrCreateInstance(t)});dr(tl);var Z$="collapse",nq="bs.collapse",ol=`.${nq}`,tq=".data-api",eq=`show${ol}`,rq=`shown${ol}`,aq=`hide${ol}`,oq=`hidden${ol}`,uq=`click${ol}${tq}`,GD="show",Bi="collapse",i_="collapsing",iq="collapsed",fq=`:scope .${Bi} .${Bi}`,cq="collapse-horizontal",lq="width",sq="height",pq=".collapse.show, .collapse.collapsing",rg='[data-bs-toggle="collapse"]',_q={parent:null,toggle:!0},mq={parent:"(null|element)",toggle:"boolean"},g_=class n extends nr{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];let r=pn.find(rg);for(let a of r){let o=pn.getSelectorFromElement(a),u=pn.find(o).filter(i=>i===this._element);o!==null&&u.length&&this._triggerArray.push(a)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return _q}static get DefaultType(){return mq}static get NAME(){return Z$}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(pq).filter(i=>i!==this._element).map(i=>n.getOrCreateInstance(i,{toggle:!1}))),t.length&&t[0]._isTransitioning||E.trigger(this._element,eq).defaultPrevented)return;for(let i of t)i.hide();let r=this._getDimension();this._element.classList.remove(Bi),this._element.classList.add(i_),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let a=()=>{this._isTransitioning=!1,this._element.classList.remove(i_),this._element.classList.add(Bi,GD),this._element.style[r]="",E.trigger(this._element,rq)},u=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(a,this._element,!0),this._element.style[r]=`${this._element[u]}px`}hide(){if(this._isTransitioning||!this._isShown()||E.trigger(this._element,aq).defaultPrevented)return;let e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,al(this._element),this._element.classList.add(i_),this._element.classList.remove(Bi,GD);for(let a of this._triggerArray){let o=pn.getElementFromSelector(a);o&&!this._isShown(o)&&this._addAriaAndCollapsedClass([a],!1)}this._isTransitioning=!0;let r=()=>{this._isTransitioning=!1,this._element.classList.remove(i_),this._element.classList.add(Bi),E.trigger(this._element,oq)};this._element.style[e]="",this._queueCallback(r,this._element,!0)}_isShown(t=this._element){return t.classList.contains(GD)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=Ao(t.parent),t}_getDimension(){return this._element.classList.contains(cq)?lq:sq}_initializeChildren(){if(!this._config.parent)return;let t=this._getFirstLevelChildren(rg);for(let e of t){let r=pn.getElementFromSelector(e);r&&this._addAriaAndCollapsedClass([e],this._isShown(r))}}_getFirstLevelChildren(t){let e=pn.find(fq,this._config.parent);return pn.find(t,this._config.parent).filter(r=>!e.includes(r))}_addAriaAndCollapsedClass(t,e){if(t.length)for(let r of t)r.classList.toggle(iq,!e),r.setAttribute("aria-expanded",e)}static jQueryInterface(t){let e={};return typeof t=="string"&&/show|hide/.test(t)&&(e.toggle=!1),this.each(function(){let r=n.getOrCreateInstance(this,e);if(typeof t=="string"){if(typeof r[t]>"u")throw new TypeError(`No method named "${t}"`);r[t]()}})}};E.on(document,uq,rg,function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();for(let t of pn.getMultipleElementsFromSelector(this))g_.getOrCreateInstance(t,{toggle:!1}).toggle()});dr(g_);var fw="dropdown",vq="bs.dropdown",Su=`.${vq}`,ig=".data-api",dq="Escape",cw="Tab",Dq="ArrowUp",lw="ArrowDown",gq=2,hq=`hide${Su}`,yq=`hidden${Su}`,bq=`show${Su}`,Tq=`shown${Su}`,Gw=`click${Su}${ig}`,jw=`keydown${Su}${ig}`,Eq=`keyup${Su}${ig}`,Ui="show",Cq="dropup",Mq="dropend",wq="dropstart",Fq="dropup-center",Lq="dropdown-center",Fu='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Aq=`${Fu}.${Ui}`,__=".dropdown-menu",Sq=".navbar",Iq=".navbar-nav",Nq=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",xq=mr()?"top-end":"top-start",Hq=mr()?"top-start":"top-end",Oq=mr()?"bottom-end":"bottom-start",Rq=mr()?"bottom-start":"bottom-end",Pq=mr()?"left-start":"right-start",Wq=mr()?"right-start":"left-start",$q="top",qq="bottom",Uq={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Bq={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"},Io=class n extends nr{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=pn.next(this._element,__)[0]||pn.prev(this._element,__)[0]||pn.findOne(__,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Uq}static get DefaultType(){return Bq}static get NAME(){return fw}toggle(){return this._isShown()?this.hide():this.show()}show(){if(So(this._element)||this._isShown())return;let t={relatedTarget:this._element};if(!E.trigger(this._element,bq,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Iq))for(let r of[].concat(...document.body.children))E.on(r,"mouseover",m_);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ui),this._element.classList.add(Ui),E.trigger(this._element,Tq,t)}}hide(){if(So(this._element)||!this._isShown())return;let t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!E.trigger(this._element,hq,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(let r of[].concat(...document.body.children))E.off(r,"mouseover",m_);this._popper&&this._popper.destroy(),this._menu.classList.remove(Ui),this._element.classList.remove(Ui),this._element.setAttribute("aria-expanded","false"),qa.removeDataAttribute(this._menu,"popper"),E.trigger(this._element,yq,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!$a(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${fw.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof o_>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:$a(this._config.reference)?t=Ao(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);let e=this._getPopperConfig();this._popper=Xc(t,this._menu,e)}_isShown(){return this._menu.classList.contains(Ui)}_getPlacement(){let t=this._parent;if(t.classList.contains(Mq))return Pq;if(t.classList.contains(wq))return Wq;if(t.classList.contains(Fq))return $q;if(t.classList.contains(Lq))return qq;let e=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(Cq)?e?Hq:xq:e?Rq:Oq}_detectNavbar(){return this._element.closest(Sq)!==null}_getOffset(){let{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_getPopperConfig(){let t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(qa.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...Ue(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){let r=pn.find(Nq,this._menu).filter(a=>zi(a));r.length&&og(r,e,t===lw,!r.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){let e=n.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(t.button===gq||t.type==="keyup"&&t.key!==cw)return;let e=pn.find(Aq);for(let r of e){let a=n.getInstance(r);if(!a||a._config.autoClose===!1)continue;let o=t.composedPath(),u=o.includes(a._menu);if(o.includes(a._element)||a._config.autoClose==="inside"&&!u||a._config.autoClose==="outside"&&u||a._menu.contains(t.target)&&(t.type==="keyup"&&t.key===cw||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;let i={relatedTarget:a._element};t.type==="click"&&(i.clickEvent=t),a._completeHide(i)}}static dataApiKeydownHandler(t){let e=/input|textarea/i.test(t.target.tagName),r=t.key===dq,a=[Dq,lw].includes(t.key);if(!a&&!r||e&&!r)return;t.preventDefault();let o=this.matches(Fu)?this:pn.prev(this,Fu)[0]||pn.next(this,Fu)[0]||pn.findOne(Fu,t.delegateTarget.parentNode),u=n.getOrCreateInstance(o);if(a){t.stopPropagation(),u.show(),u._selectMenuItem(t);return}u._isShown()&&(t.stopPropagation(),u.hide(),o.focus())}};E.on(document,jw,Fu,Io.dataApiKeydownHandler);E.on(document,jw,__,Io.dataApiKeydownHandler);E.on(document,Gw,Io.clearMenus);E.on(document,Eq,Io.clearMenus);E.on(document,Gw,Fu,function(n){n.preventDefault(),Io.getOrCreateInstance(this).toggle()});dr(Io);var Qw="backdrop",kq="fade",sw="show",pw=`mousedown.bs.${Qw}`,Jq={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Vq={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"},h_=class extends Au{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Jq}static get DefaultType(){return Vq}static get NAME(){return Qw}show(t){if(!this._config.isVisible){Ue(t);return}this._append();let e=this._getElement();this._config.isAnimated&&al(e),e.classList.add(sw),this._emulateAnimation(()=>{Ue(t)})}hide(t){if(!this._config.isVisible){Ue(t);return}this._getElement().classList.remove(sw),this._emulateAnimation(()=>{this.dispose(),Ue(t)})}dispose(){this._isAppended&&(E.off(this._element,pw),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){let t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(kq),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=Ao(t.rootElement),t}_append(){if(this._isAppended)return;let t=this._getElement();this._config.rootElement.append(t),E.on(t,pw,()=>{Ue(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){Ow(t,this._getElement(),this._config.isAnimated)}},zq="focustrap",Gq="bs.focustrap",y_=`.${Gq}`,jq=`focusin${y_}`,Qq=`keydown.tab${y_}`,Kq="Tab",Yq="forward",_w="backward",Xq={autofocus:!0,trapElement:null},Zq={autofocus:"boolean",trapElement:"element"},b_=class extends Au{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Xq}static get DefaultType(){return Zq}static get NAME(){return zq}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),E.off(document,y_),E.on(document,jq,t=>this._handleFocusin(t)),E.on(document,Qq,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,E.off(document,y_))}_handleFocusin(t){let{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;let r=pn.focusableChildren(e);r.length===0?e.focus():this._lastTabNavDirection===_w?r[r.length-1].focus():r[0].focus()}_handleKeydown(t){t.key===Kq&&(this._lastTabNavDirection=t.shiftKey?_w:Yq)}},mw=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",vw=".sticky-top",f_="padding-right",dw="margin-right",el=class{constructor(){this._element=document.body}getWidth(){let t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){let t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,f_,e=>e+t),this._setElementAttributes(mw,f_,e=>e+t),this._setElementAttributes(vw,dw,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,f_),this._resetElementAttributes(mw,f_),this._resetElementAttributes(vw,dw)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,r){let a=this.getWidth(),o=u=>{if(u!==this._element&&window.innerWidth>u.clientWidth+a)return;this._saveInitialAttribute(u,e);let i=window.getComputedStyle(u).getPropertyValue(e);u.style.setProperty(e,`${r(Number.parseFloat(i))}px`)};this._applyManipulationCallback(t,o)}_saveInitialAttribute(t,e){let r=t.style.getPropertyValue(e);r&&qa.setDataAttribute(t,e,r)}_resetElementAttributes(t,e){let r=a=>{let o=qa.getDataAttribute(a,e);if(o===null){a.style.removeProperty(e);return}qa.removeDataAttribute(a,e),a.style.setProperty(e,o)};this._applyManipulationCallback(t,r)}_applyManipulationCallback(t,e){if($a(t)){e(t);return}for(let r of pn.find(t,this._element))e(r)}},nU="modal",tU="bs.modal",vr=`.${tU}`,eU=".data-api",rU="Escape",aU=`hide${vr}`,oU=`hidePrevented${vr}`,Kw=`hidden${vr}`,Yw=`show${vr}`,uU=`shown${vr}`,iU=`resize${vr}`,fU=`click.dismiss${vr}`,cU=`mousedown.dismiss${vr}`,lU=`keydown.dismiss${vr}`,sU=`click${vr}${eU}`,Dw="modal-open",pU="fade",gw="show",jD="modal-static",_U=".modal.show",mU=".modal-dialog",vU=".modal-body",dU='[data-bs-toggle="modal"]',DU={backdrop:!0,focus:!0,keyboard:!0},gU={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"},ki=class n extends nr{constructor(t,e){super(t,e),this._dialog=pn.findOne(mU,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new el,this._addEventListeners()}static get Default(){return DU}static get DefaultType(){return gU}static get NAME(){return nU}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||E.trigger(this._element,Yw,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Dw),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||E.trigger(this._element,aU).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(gw),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){E.off(window,vr),E.off(this._dialog,vr),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new h_({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new b_({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;let e=pn.findOne(vU,this._dialog);e&&(e.scrollTop=0),al(this._element),this._element.classList.add(gw);let r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,E.trigger(this._element,uU,{relatedTarget:t})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){E.on(this._element,lU,t=>{if(t.key===rU){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),E.on(window,iU,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),E.on(this._element,cU,t=>{E.one(this._element,fU,e=>{if(!(this._element!==t.target||this._element!==e.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Dw),this._resetAdjustments(),this._scrollBar.reset(),E.trigger(this._element,Kw)})}_isAnimated(){return this._element.classList.contains(pU)}_triggerBackdropTransition(){if(E.trigger(this._element,oU).defaultPrevented)return;let e=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(jD)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(jD),this._queueCallback(()=>{this._element.classList.remove(jD),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),r=e>0;if(r&&!t){let a=mr()?"paddingLeft":"paddingRight";this._element.style[a]=`${e}px`}if(!r&&t){let a=mr()?"paddingRight":"paddingLeft";this._element.style[a]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){let r=n.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof r[t]>"u")throw new TypeError(`No method named "${t}"`);r[t](e)}})}};E.on(document,sU,dU,function(n){let t=pn.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),E.one(t,Yw,a=>{a.defaultPrevented||E.one(t,Kw,()=>{zi(this)&&this.focus()})});let e=pn.findOne(_U);e&&ki.getInstance(e).hide(),ki.getOrCreateInstance(t).toggle(this)});C_(ki);dr(ki);var hU="offcanvas",yU="bs.offcanvas",Ua=`.${yU}`,Xw=".data-api",bU=`load${Ua}${Xw}`,TU="Escape",hw="show",yw="showing",bw="hiding",EU="offcanvas-backdrop",Zw=".offcanvas.show",CU=`show${Ua}`,MU=`shown${Ua}`,wU=`hide${Ua}`,Tw=`hidePrevented${Ua}`,nF=`hidden${Ua}`,FU=`resize${Ua}`,LU=`click${Ua}${Xw}`,AU=`keydown.dismiss${Ua}`,SU='[data-bs-toggle="offcanvas"]',IU={backdrop:!0,keyboard:!0,scroll:!1},NU={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"},No=class n extends nr{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return IU}static get DefaultType(){return NU}static get NAME(){return hU}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||E.trigger(this._element,CU,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new el().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(yw);let r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(hw),this._element.classList.remove(yw),E.trigger(this._element,MU,{relatedTarget:t})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||E.trigger(this._element,wU).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(bw),this._backdrop.hide();let e=()=>{this._element.classList.remove(hw,bw),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new el().reset(),E.trigger(this._element,nF)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let t=()=>{if(this._config.backdrop==="static"){E.trigger(this._element,Tw);return}this.hide()},e=!!this._config.backdrop;return new h_({className:EU,isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?t:null})}_initializeFocusTrap(){return new b_({trapElement:this._element})}_addEventListeners(){E.on(this._element,AU,t=>{if(t.key===TU){if(this._config.keyboard){this.hide();return}E.trigger(this._element,Tw)}})}static jQueryInterface(t){return this.each(function(){let e=n.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}};E.on(document,LU,SU,function(n){let t=pn.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),So(this))return;E.one(t,nF,()=>{zi(this)&&this.focus()});let e=pn.findOne(Zw);e&&e!==t&&No.getInstance(e).hide(),No.getOrCreateInstance(t).toggle(this)});E.on(window,bU,()=>{for(let n of pn.find(Zw))No.getOrCreateInstance(n).show()});E.on(window,FU,()=>{for(let n of pn.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(n).position!=="fixed"&&No.getOrCreateInstance(n).hide()});C_(No);dr(No);var xU=/^aria-[\w-]*$/i,tF={"*":["class","dir","id","lang","role",xU],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},HU=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),OU=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,RU=(n,t)=>{let e=n.nodeName.toLowerCase();return t.includes(e)?HU.has(e)?!!OU.test(n.nodeValue):!0:t.filter(r=>r instanceof RegExp).some(r=>r.test(e))};function PU(n,t,e){if(!n.length)return n;if(e&&typeof e=="function")return e(n);let a=new window.DOMParser().parseFromString(n,"text/html"),o=[].concat(...a.body.querySelectorAll("*"));for(let u of o){let i=u.nodeName.toLowerCase();if(!Object.keys(t).includes(i)){u.remove();continue}let s=[].concat(...u.attributes),c=[].concat(t["*"]||[],t[i]||[]);for(let l of s)RU(l,c)||u.removeAttribute(l.nodeName)}return a.body.innerHTML}var WU="TemplateFactory",$U={allowList:tF,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},qU={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},UU={entry:"(string|element|function|null)",selector:"(string|element)"},ag=class extends Au{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return $U}static get DefaultType(){return qU}static get NAME(){return WU}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){let t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(let[a,o]of Object.entries(this._config.content))this._setContent(t,o,a);let e=t.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&e.classList.add(...r.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(let[e,r]of Object.entries(t))super._typeCheckConfig({selector:e,entry:r},UU)}_setContent(t,e,r){let a=pn.findOne(r,t);if(a){if(e=this._resolvePossibleFunction(e),!e){a.remove();return}if($a(e)){this._putElementInTemplate(Ao(e),a);return}if(this._config.html){a.innerHTML=this._maybeSanitize(e);return}a.textContent=e}}_maybeSanitize(t){return this._config.sanitize?PU(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return Ue(t,[this])}_putElementInTemplate(t,e){if(this._config.html){e.innerHTML="",e.append(t);return}e.textContent=t.textContent}},BU="tooltip",kU=new Set(["sanitize","allowList","sanitizeFn"]),QD="fade",JU="modal",c_="show",VU=".tooltip-inner",Ew=`.${JU}`,Cw="hide.bs.modal",nl="hover",KD="focus",zU="click",GU="manual",jU="hide",QU="hidden",KU="show",YU="shown",XU="inserted",ZU="click",n2="focusin",t2="focusout",e2="mouseenter",r2="mouseleave",a2={AUTO:"auto",TOP:"top",RIGHT:mr()?"left":"right",BOTTOM:"bottom",LEFT:mr()?"right":"left"},o2={allowList:tF,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},u2={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"},Ji=class n extends nr{constructor(t,e){if(typeof o_>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return o2}static get DefaultType(){return u2}static get NAME(){return BU}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),E.off(this._element.closest(Ew),Cw,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;let t=E.trigger(this._element,this.constructor.eventName(KU)),r=(xw(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!r)return;this._disposePopper();let a=this._getTipElement();this._element.setAttribute("aria-describedby",a.getAttribute("id"));let{container:o}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(o.append(a),E.trigger(this._element,this.constructor.eventName(XU))),this._popper=this._createPopper(a),a.classList.add(c_),"ontouchstart"in document.documentElement)for(let i of[].concat(...document.body.children))E.on(i,"mouseover",m_);let u=()=>{E.trigger(this._element,this.constructor.eventName(YU)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(u,this.tip,this._isAnimated())}hide(){if(!this._isShown()||E.trigger(this._element,this.constructor.eventName(jU)).defaultPrevented)return;if(this._getTipElement().classList.remove(c_),"ontouchstart"in document.documentElement)for(let a of[].concat(...document.body.children))E.off(a,"mouseover",m_);this._activeTrigger[zU]=!1,this._activeTrigger[KD]=!1,this._activeTrigger[nl]=!1,this._isHovered=null;let r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),E.trigger(this._element,this.constructor.eventName(QU)))};this._queueCallback(r,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){let e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(QD,c_),e.classList.add(`bs-${this.constructor.NAME}-auto`);let r=GW(this.constructor.NAME).toString();return e.setAttribute("id",r),this._isAnimated()&&e.classList.add(QD),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new ag({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[VU]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(QD)}_isShown(){return this.tip&&this.tip.classList.contains(c_)}_createPopper(t){let e=Ue(this._config.placement,[this,t,this._element]),r=a2[e.toUpperCase()];return Xc(this._element,t,this._getPopperConfig(r))}_getOffset(){let{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_resolvePossibleFunction(t){return Ue(t,[this._element])}_getPopperConfig(t){let e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...e,...Ue(this._config.popperConfig,[e])}}_setListeners(){let t=this._config.trigger.split(" ");for(let e of t)if(e==="click")E.on(this._element,this.constructor.eventName(ZU),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(e!==GU){let r=e===nl?this.constructor.eventName(e2):this.constructor.eventName(n2),a=e===nl?this.constructor.eventName(r2):this.constructor.eventName(t2);E.on(this._element,r,this._config.selector,o=>{let u=this._initializeOnDelegatedTarget(o);u._activeTrigger[o.type==="focusin"?KD:nl]=!0,u._enter()}),E.on(this._element,a,this._config.selector,o=>{let u=this._initializeOnDelegatedTarget(o);u._activeTrigger[o.type==="focusout"?KD:nl]=u._element.contains(o.relatedTarget),u._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},E.on(this._element.closest(Ew),Cw,this._hideModalHandler)}_fixTitle(){let t=this._element.getAttribute("title");t&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){let e=qa.getDataAttributes(this._element);for(let r of Object.keys(e))kU.has(r)&&delete e[r];return t={...e,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:Ao(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){let t={};for(let[e,r]of Object.entries(this._config))this.constructor.Default[e]!==r&&(t[e]=r);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){let e=n.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}};dr(Ji);var i2="popover",f2=".popover-header",c2=".popover-body",l2={...Ji.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},s2={...Ji.DefaultType,content:"(null|string|element|function)"},Vi=class n extends Ji{static get Default(){return l2}static get DefaultType(){return s2}static get NAME(){return i2}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[f2]:this._getTitle(),[c2]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){let e=n.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}};dr(Vi);var p2="scrollspy",_2="bs.scrollspy",fg=`.${_2}`,m2=".data-api",v2=`activate${fg}`,Mw=`click${fg}`,d2=`load${fg}${m2}`,D2="dropdown-item",$i="active",g2='[data-bs-spy="scroll"]',YD="[href]",h2=".nav, .list-group",ww=".nav-link",y2=".nav-item",b2=".list-group-item",T2=`${ww}, ${y2} > ${ww}, ${b2}`,E2=".dropdown",C2=".dropdown-toggle",M2={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},w2={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"},T_=class n extends nr{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return M2}static get DefaultType(){return w2}static get NAME(){return p2}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=Ao(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(e=>Number.parseFloat(e))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(E.off(this._config.target,Mw),E.on(this._config.target,Mw,YD,t=>{let e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();let r=this._rootElement||window,a=e.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:a,behavior:"smooth"});return}r.scrollTop=a}}))}_getNewObserver(){let t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),t)}_observerCallback(t){let e=u=>this._targetLinks.get(`#${u.target.id}`),r=u=>{this._previousScrollData.visibleEntryTop=u.target.offsetTop,this._process(e(u))},a=(this._rootElement||document.documentElement).scrollTop,o=a>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=a;for(let u of t){if(!u.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(u));continue}let i=u.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&i){if(r(u),!a)return;continue}!o&&!i&&r(u)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let t=pn.find(YD,this._config.target);for(let e of t){if(!e.hash||So(e))continue;let r=pn.findOne(decodeURI(e.hash),this._element);zi(r)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,r))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add($i),this._activateParents(t),E.trigger(this._element,v2,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(D2)){pn.findOne(C2,t.closest(E2)).classList.add($i);return}for(let e of pn.parents(t,h2))for(let r of pn.prev(e,T2))r.classList.add($i)}_clearActiveClass(t){t.classList.remove($i);let e=pn.find(`${YD}.${$i}`,t);for(let r of e)r.classList.remove($i)}static jQueryInterface(t){return this.each(function(){let e=n.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}};E.on(window,d2,()=>{for(let n of pn.find(g2))T_.getOrCreateInstance(n)});dr(T_);var F2="tab",L2="bs.tab",Iu=`.${L2}`,A2=`hide${Iu}`,S2=`hidden${Iu}`,I2=`show${Iu}`,N2=`shown${Iu}`,x2=`click${Iu}`,H2=`keydown${Iu}`,O2=`load${Iu}`,R2="ArrowLeft",Fw="ArrowRight",P2="ArrowUp",Lw="ArrowDown",Lu="active",Aw="fade",XD="show",W2="dropdown",$2=".dropdown-toggle",q2=".dropdown-menu",ZD=":not(.dropdown-toggle)",U2='.list-group, .nav, [role="tablist"]',B2=".nav-item, .list-group-item",k2=`.nav-link${ZD}, .list-group-item${ZD}, [role="tab"]${ZD}`,eF='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',ng=`${k2}, ${eF}`,J2=`.${Lu}[data-bs-toggle="tab"], .${Lu}[data-bs-toggle="pill"], .${Lu}[data-bs-toggle="list"]`,rl=class n extends nr{constructor(t){super(t),this._parent=this._element.closest(U2),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),E.on(this._element,H2,e=>this._keydown(e)))}static get NAME(){return F2}show(){let t=this._element;if(this._elemIsActive(t))return;let e=this._getActiveElem(),r=e?E.trigger(e,A2,{relatedTarget:t}):null;E.trigger(t,I2,{relatedTarget:e}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(Lu),this._activate(pn.getElementFromSelector(t));let r=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(XD);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),E.trigger(t,N2,{relatedTarget:e})};this._queueCallback(r,t,t.classList.contains(Aw))}_deactivate(t,e){if(!t)return;t.classList.remove(Lu),t.blur(),this._deactivate(pn.getElementFromSelector(t));let r=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(XD);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),E.trigger(t,S2,{relatedTarget:e})};this._queueCallback(r,t,t.classList.contains(Aw))}_keydown(t){if(![R2,Fw,P2,Lw].includes(t.key))return;t.stopPropagation(),t.preventDefault();let e=[Fw,Lw].includes(t.key),r=og(this._getChildren().filter(a=>!So(a)),t.target,e,!0);r&&(r.focus({preventScroll:!0}),n.getOrCreateInstance(r).show())}_getChildren(){return pn.find(ng,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(let r of e)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);let e=this._elemIsActive(t),r=this._getOuterElement(t);t.setAttribute("aria-selected",e),r!==t&&this._setAttributeIfNotExists(r,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){let e=pn.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){let r=this._getOuterElement(t);if(!r.classList.contains(W2))return;let a=(o,u)=>{let i=pn.findOne(o,r);i&&i.classList.toggle(u,e)};a($2,Lu),a(q2,XD),r.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,r){t.hasAttribute(e)||t.setAttribute(e,r)}_elemIsActive(t){return t.classList.contains(Lu)}_getInnerElement(t){return t.matches(ng)?t:pn.findOne(ng,t)}_getOuterElement(t){return t.closest(B2)||t}static jQueryInterface(t){return this.each(function(){let e=n.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}};E.on(document,x2,eF,function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),!So(this)&&rl.getOrCreateInstance(this).show()});E.on(window,O2,()=>{for(let n of pn.find(J2))rl.getOrCreateInstance(n)});dr(rl);var V2="toast",z2="bs.toast",Ho=`.${z2}`,G2=`mouseover${Ho}`,j2=`mouseout${Ho}`,Q2=`focusin${Ho}`,K2=`focusout${Ho}`,Y2=`hide${Ho}`,X2=`hidden${Ho}`,Z2=`show${Ho}`,n3=`shown${Ho}`,t3="fade",Sw="hide",l_="show",s_="showing",e3={animation:"boolean",autohide:"boolean",delay:"number"},r3={animation:!0,autohide:!0,delay:5e3},E_=class n extends nr{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return r3}static get DefaultType(){return e3}static get NAME(){return V2}show(){if(E.trigger(this._element,Z2).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(t3);let e=()=>{this._element.classList.remove(s_),E.trigger(this._element,n3),this._maybeScheduleHide()};this._element.classList.remove(Sw),al(this._element),this._element.classList.add(l_,s_),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown()||E.trigger(this._element,Y2).defaultPrevented)return;let e=()=>{this._element.classList.add(Sw),this._element.classList.remove(s_,l_),E.trigger(this._element,X2)};this._element.classList.add(s_),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(l_),super.dispose()}isShown(){return this._element.classList.contains(l_)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=e;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=e;break}}if(e){this._clearTimeout();return}let r=t.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){E.on(this._element,G2,t=>this._onInteraction(t,!0)),E.on(this._element,j2,t=>this._onInteraction(t,!1)),E.on(this._element,Q2,t=>this._onInteraction(t,!0)),E.on(this._element,K2,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){let e=n.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t](this)}})}};C_(E_);dr(E_);var cg=n=>()=>n.clipboard,lg=n=>t=>()=>n.writeText(t),sg=n=>t=>()=>window.location.protocol+"//"+window.location.host+window.location.pathname+"?editor="+n+"&snippet="+encodeURIComponent(t),pg=n=>t=>()=>{globalThis[n]=t},rF=n=>t=>e=>()=>{let r=globalThis[n];return r===!0||r===!1?t(r):e},a3=n=>{Vi.getOrCreateInstance(document.getElementById(n),{container:"body",html:!0,trigger:"click"})},M_=n=>()=>{n.map(t=>a3(t))},o3=n=>{let t=Vi.getInstance(document.getElementById(n));t!==null&&t.dispose()},aF=n=>t=>()=>(n.map(e=>o3(e)),t);var i3=g(Wn),oF=function(n){return aF(n)(!0)},uF=function(n){return rF(n)(m.create)(D.value)},At=function(n){return XE(i3(Yf)(n))},Ie=function(n){return ZE(n)},ul=function(n){return function(t){return ea(n)(t)}};var Nu=function(n){return function(t){return function(){return t[n]}}},f3=Nu("URL"),c3=Nu("documentURI"),l3=Nu("origin"),s3=Nu("compatMode"),p3=Nu("characterSet"),_3=Nu("contentType");var m3=Nu("documentElement");var _g=h;function fF(n){return function(t){return function(){return t.getElementById(n)}}}var g3=g(dn),mg=function(n){var t=g3(zn),e=fF(n);return function(r){return t(e(r))}};function vg(n){return function(t){return function(){return new CustomEvent(n,t)}}}function dg(n){return n.detail}var cF=h,b3=function(n){return function(t){return vg(n)({detail:se(t.detail),bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed})}},lF=function(n){return function(t){return b3(n)({detail:t,bubbles:!1,cancelable:!1,composed:!1})}},sF=q("CustomEvent");function il(n){return n.key}var pF=q("KeyboardEvent");function _F(n){return new URLSearchParams(n)}function mF(n){return function(t){return function(e){return function(r){var a=r.get(e);return a===null?t:n(a)}}}}var Dg=function(){return mF(m.create)(D.value)}(),vF=_F;var L3=function(n,t,e){var r=0,a;return function(o){if(r===2)return a;if(r===1)throw new ReferenceError(n+" was needed before it finished initializing (module "+t+", line "+o+")",t,o);return r=1,a=e(),r=2,a}},ll=Rf(ep),A3=g(ze),sl=pp(tE),S3=$(Ru),tr=g(Wn),FF=rn(CD),I3=$u(qu),Or=jp(Qp),LF=$(xt),St=W(ed),hg=Wf(ep);var AF=Pf(ep),ie=Yn(Tc(Me)),dF=G(Po),SF=j(K),Qi=b(cu),w_=Ja(Sn),IF=hr(yr),DF=g(dn),F_=Kn(Xt),N3=sa(Q_),NF=b(nt),ji=pp(Ws),x3=br(Un)(Uu),H3=Aa(Zn),zt=IF(ed),gF=g(Sn),O3=Dl(qt),R3=uf(qt),P3=aa(oM(iM(cM(Oc))(rM)({reflectSymbol:function(){return"newCode"}})()())()),W3=bn(Da),hF=gr(cu),$3=vi(UE(SE)),q3=Rc(xM),U3=aa(RM),B3=Aa(MD),k3=G(PM),fl=WM(HM),xu=W(Xt),J3=g(hi),V3=W(Yt),z3=rn(NM),G3=it(cu)(Un),j3=function(n){if(n instanceof mD)return"http://127.0.0.1:8082/";if(n instanceof vD)return"https://try-phi-back.herokuapp.com/";throw new Error("Failed pattern match at Phi (line 328, column 1 - line 328, column 31): "+[n.constructor.name])},cl=function(n){return ll(function(t){var e={};for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.info=A3(n)(t.info),e})},yF=function(n){return function(t){return{textTabs:t.textTabs,graphTabState:new Bp({states:t.graphTabState.value0.states,graphs:t.graphTabState.value0.graphs,step:n(t.graphTabState.value0.step)})}}},L_=function(){return[Ze.value,ir.value,fr.value,cr.value,lr.value,Le.value,ua.value]}(),Q3=function(n){return n instanceof qc?"Previous step":n instanceof $c?"Next step":""},bF=function(n){return lu([sl(Do.value),At(["btn","btn-warning"]),Op(function(t){return n})])([Jt(Q3(n))])},K3="snippet",Y3=function(n){return ll(function(t){var e={};for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.currentEditor=n,e})},H_=function(n){return function(t){return ea(n)(t)}},A_=function(n){return function(t){return H_("aria-"+n)(t)}},fa=function(n){return function(t){return H_("data-bs-"+n)(t)}},yg="permalink",X3=function(){return lu([sl(Do.value),At(["btn","btn-warning"]),Xe(yg),Op(function(n){return hD.value})])([Jt("Copy permalink")])}(),Z3=wc([sp([ip([Jt("Join our "),Mi([Lr("https://t.me/polystat_org")])([Jt("Telegram group")]),Jt(" to discuss how \u{1D711}-calculus works")])]),sp([ip([Mi([Lr("https://github.com/polystat/try-phi/stargazers")])([Mc([pu("https://img.shields.io/github/stars/polystat/try-phi.svg?style=flat-square"),nC("github stars")])])])])]),TF=function(n){return function(t){return{textTabs:tr(t)(n.textTabs),graphTabState:n.graphTabState}}},nB=function(n){return Ne(n.value0.states)},tB=function(n){var t=Ne(L_),e=Lf(FF(n))(L_);if(e instanceof m){var r=Ff(L_)(I3((e.value0+t|0)+1|0)(t));return r instanceof m?r.value0:n}return n},EF="my-href",Ki=function(n){return"info_"+n},CF=function(n){return"content_"+n},xF=function(n){return"button_"+n},HF=function(n){var t=Or(n.value0.id),e=function(){return n.value0.isActive?["show","active"]:[]}();return Gn([At(LF(["tab-pane","fade"])(e)),Ie("pt-3"),Xe(t),ul("role")("tabpanel"),ul("aria-labelledby")(xF(t))])([n.value0.tabContent])};var S_="justify-content-center",eB=function(){return lu([sl(Do.value),At(["btn","btn-success"]),fa("toggle")("offcanvas"),fa("target")("#offcanvasNavbar"),H_("aria-controls")("offcanvasNavbar")])([Jt("Editor guide")])}(),rB=function(){return fp([At(["navbar","navbar-light"])])([Gn([Ie("container-fluid")])([Gn([At(["offcanvas","offcanvas-start"]),H_("tabindex")("-1"),Xe("offcanvasNavbar"),A_("labelledby")("offcanvasNavbarLabel"),fa("backdrop")("true")])([Gn([Ie("offcanvas-header")])([sd([Ie("offcanvas-title"),Xe("offcanvasNavbarLabel")])([Jt("Editor guide")]),lu([sl(Do.value),At(["btn-close","text-reset"]),fa("dismiss")("offcanvas"),A_("label")("Close")])([])]),Gn([Ie("offcanvas-body")])([Jt("hey")])])])])}(),Tg="dev",OF=function(n){if(n instanceof N)return tr(function(t){return Ki(Or(t.value0.id))})([n.value0.errorTab]);if(n instanceof A)return tr(function(t){return Ki(Or(t.value0.id))})(n.value0.textTabs);throw new Error("Failed pattern match at Phi (line 423, column 1 - line 423, column 56): "+[n.constructor.name])},gg=St(AF(function(n){return n.info}))(function(n){return ie(M_(OF(n)))}),aB=function(n){return Gn([Ie("row")])([Gn([Ie("col-sm")])([bF(qc.value),bF($c.value),lp([Jt(An("step error: "+dF(n.value0.step))(SF)(Ff(n.value0.states)(n.value0.step)))])]),Gn([Ie("col-sm")])([Mc([pu(An("step error: "+dF(n.value0.step))(S3("https://quickchart.io/graphviz?layout=dot&format=svg&graph="))(Ff(n.value0.graphs)(n.value0.step)))])])])},oB=St(hg)(function(n){return Qi(function(){if(n.info instanceof A)return w_(bm(function(t){return t.value0.isActive})(n.info.value0.textTabs))(function(t){return t.value0.id});if(n.info instanceof N)return D.value;throw new Error("Failed pattern match at Phi (line 293, column 7 - line 295, column 26): "+[n.info.constructor.name])}())}),uB=function(){return oa.value}(),iB="error",fB="editor",I_=function(n){if(n instanceof ae)return"EO";if(n instanceof _e)return"\u{1D711}-calculus";throw new Error("Failed pattern match at Phi (line 359, column 1 - line 359, column 37): "+[n.constructor.name])},cB=function(n){return function(t){var e=function(c){return"Please, check your "+(c+` code: +`)},r=function(c){if(c instanceof qp||c instanceof Up)return c.value0;if(c instanceof Wc)return"Type something!";throw new Error("Failed pattern match at Phi (line 658, column 16 - line 661, column 32): "+[c.constructor.name])},a=function(c){return ta([cp([hd("white-space: pre-wrap")])([Jt(r(c))])])},o=function(c){return e(function(){if(c instanceof qp)return I_(ae.value);if(c instanceof Up)return I_(_e.value);if(c instanceof Wc)return"empty editors'";throw new Error("Failed pattern match at Phi (line 665, column 9 - line 668, column 37): "+[c.constructor.name])}())},u=function(c){return Gn([At([])])([ld([dd([hd("font-weight:normal")])([Jt(o(c))])])])},i=function(c){return Gn([At(["d-flex"])])([ta([u(c),a(c)])])},s=new Mo({id:n.value0.id,buttonText:n.value0.buttonText,isActive:n.value0.isActive,tabContent:i(t)});return s}},ca=function(n){if(n instanceof ae)return"eo";if(n instanceof _e)return"phi";throw new Error("Failed pattern match at Phi (line 354, column 1 - line 354, column 31): "+[n.constructor.name])},lB=function(n){if(n==="eo")return new m(ae.value);if(n==="phi")return new m(_e.value);if(ot)return D.value;throw new Error("Failed pattern match at Phi (line 604, column 1 - line 604, column 35): "+[n.constructor.name])},sB="-editor-created",pB=function(n){return ca(n)+sB},_B=St(AF(function(n){return n.info}))(function(n){return ie(oF(OF(n)))}),mB=function(){var n=[!0,!1,!1,!1,!1,!1,!1],t=["Phi term"," WHNF","NF","CBN Reduction","CBN With TAP","CBN With Graph","LaTeX-ed term"];return{textTabs:tr(function(e){return new Mo({id:e.value0.value0,buttonText:e.value0.value1,isActive:e.value1,tabContent:ta([])})})(Pl(Pl(L_)(t))(n)),graphTabState:new Bp({states:[],graphs:[],step:0})}}(),RF=function(){return{errorTab:new Mo({id:uB,isActive:!0,buttonText:"Errors",tabContent:ta([])}),parseError:Wc.value}}(),vB=function(){return{currentEditor:ae.value,currentTab:Ze.value,info:new N(RF)}}(),dB="d-grid",N_="d-flex",DB=vd([pd([Gn([At([N_,S_])])([Mi([Lr("https://www.eolang.org")])([Mc([pu("https://www.yegor256.com/images/books/elegant-objects/cactus.png"),hM(IF(U0)(J0(Yd(zo(64))))(function(){return V0(Yd(zo(64)))}))])])])])]),gB="-editor-code-changed",bg=function(n){return ca(n)+gB},hB=function(n){if(n===bg(ae.value))return new m(ae.value);if(n===bg(_e.value))return new m(_e.value);if(ot)return D.value;throw new Error("Failed pattern match at Phi (line 598, column 1 - line 598, column 52): "+[n.constructor.name])},yB="-editor-change-code",bB=function(n){return ca(n)+yB},MF=function(n){return function(t){return St(ie(DF(cF)(lF(bB(n))(new m({newCode:t})))))(function(e){return St(ie(DF(Zf)(F_(Ye)(te))))(function(r){return ie(N3(jm(e)(r))(NF(void 0)))})})}},TB=ta([Eo([Lr("https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css"),Lc("stylesheet"),ji(wi)]),Fc([pu("https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js"),ji(HC)])([]),Fc([pu("https://cdn.jsdelivr.net/gh/deemp/eo-editor@e974857b00a510ba8f1286b7d6e15c5e3f193267/docs/eo-editor.js"),ul("type")("module")])([]),Eo([Lr("https://cdn.jsdelivr.net/gh/deemp/eo-editor@e974857b00a510ba8f1286b7d6e15c5e3f193267/docs/eo-editor.css"),ji(wi)]),Fc([pu("https://cdn.jsdelivr.net/gh/deemp/phi-editor@32829a4e1b29a203ee014f3d84a18cd88edda98e/docs/phi-editor.js"),ul("type")("module")])([]),Eo([Lr("https://cdn.jsdelivr.net/gh/deemp/phi-editor@32829a4e1b29a203ee014f3d84a18cd88edda98e/docs/phi-editor.css"),ji(wi)]),Eo([Lr("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.0/font/bootstrap-icons.css"),Lc("stylesheet"),ji(wi)]),Eo([Lr("https://www.yegor256.com/images/books/elegant-objects/cactus.png"),Lc("shortcut icon")]),Eo([Lr("https://cdn.jsdelivr.net/gh/yegor256/tacit@gh-pages/tacit-css.min.css"),Lc("stylesheet"),ji(wi)])]),EB=Gn([At([N_,S_])])([X3,eB]),CB=function(n){if(n instanceof ae)return _e.value;if(n instanceof _e)return ae.value;throw new Error("Failed pattern match at Phi (line 593, column 1 - line 593, column 34): "+[n.constructor.name])},MB=function(n){return n.textTabs},x_=function(n){return n+"_editor"},wB=function(){return tr(function(n){return x_(Ki(ca(n)))})([ae.value,_e.value])}(),FB=ie(M_(wB)),LB=function(){return tr(function(n){return{x:Ki(n.x),y:n.y}})([{x:x_(ca(_e.value)),y:[{pref:new m("Original"),href:new m("https://drive.google.com/open?id=1ZxlI0npXn4qLQj9hzCQtH3-O5xnrAsJH&disco=AAAATVEUf-E"),txt:new m("syntax")},{pref:new m(I_(_e.value)),href:new m("https://drive.google.com/file/d/1ZxlI0npXn4qLQj9hzCQtH3-O5xnrAsJH/edit?disco=AAAASlupb0I"),txt:new m("definition")},{pref:D.value,href:new m("https://bit.ly/32zuO4u"),txt:new m("BNF")}]},{x:x_(ca(ae.value)),y:[{pref:D.value,href:new m("https://arxiv.org/pdf/2111.13384.pdf#page=3"),txt:new m("BNF and syntax explanation")}]},{x:Or(Ze.value),y:[{pref:new m("Just prettyprint locators and brackets"),href:D.value,txt:D.value},{pref:new m("Original"),href:new m("https://drive.google.com/open?id=1ZxlI0npXn4qLQj9hzCQtH3-O5xnrAsJH&disco=AAAATVEUf-E"),txt:new m("Syntax")}]},{x:Or(ir.value),y:[{pref:D.value,href:new m("https://github.com/objectionary/try-phi/blob/9eb9879c46decc4eb1e6f34beaa6a2736224b649/back/language-utils/phi-utils/src/Phi/Minimal/Model.hs#L156"),txt:new m("Code")},{pref:new m("Results from"),href:new m("https://drive.google.com/file/d/1ZxlI0npXn4qLQj9hzCQtH3-O5xnrAsJH/edit?disco=AAAASJgTzO0"),txt:new m("Head reduction")},{pref:D.value,href:new m("https://drive.google.com/open?id=1ZxlI0npXn4qLQj9hzCQtH3-O5xnrAsJH&disco=AAAASJgTzOc"),txt:new m("Relation to TAP machine configuration")}]},{x:Or(fr.value),y:[{pref:D.value,href:new m("https://github.com/objectionary/try-phi/blob/9eb9879c46decc4eb1e6f34beaa6a2736224b649/back/language-utils/phi-utils/src/Phi/Minimal/Model.hs#L183"),txt:new m("Code")},{pref:new m("Results from"),href:new m("https://drive.google.com/open?id=1ZxlI0npXn4qLQj9hzCQtH3-O5xnrAsJH&disco=AAAASJgTzO4"),txt:new m("Normal order reduction")}]},{x:Or(cr.value),y:[{pref:new m("Call by Name Reduction"),href:D.value,txt:D.value},{pref:D.value,href:new m("https://github.com/objectionary/try-phi/blob/9eb9879c46decc4eb1e6f34beaa6a2736224b649/back/language-utils/phi-utils/src/Phi/Minimal/Pretty.hs#L92"),txt:new m("Code")},{pref:new m("Shows steps of"),href:new m("https://drive.google.com/open?id=1ZxlI0npXn4qLQj9hzCQtH3-O5xnrAsJH&disco=AAAASJgTzO0"),txt:new m("Head reduction")}]},{x:Or(lr.value),y:[{pref:D.value,href:new m("https://github.com/objectionary/try-phi/blob/9eb9879c46decc4eb1e6f34beaa6a2736224b649/back/language-utils/phi-utils/src/Phi/Minimal/Pretty.hs#L100"),txt:new m("Code")},{pref:new m("TAP machine"),href:new m("https://drive.google.com/open?id=1ZxlI0npXn4qLQj9hzCQtH3-O5xnrAsJH&disco=AAAASJgTzOk"),txt:new m("definition")},{pref:new m("TAP machine"),href:new m("https://drive.google.com/open?id=1ZxlI0npXn4qLQj9hzCQtH3-O5xnrAsJH&disco=AAAASJgTzOo"),txt:new m("rules")}]},{x:Or(Le.value),y:[{pref:D.value,href:new m("https://github.com/objectionary/try-phi/blob/9eb9879c46decc4eb1e6f34beaa6a2736224b649/back/language-utils/phi-utils/src/Phi/Minimal/Pretty.hs#L146"),txt:new m("Code")},{pref:new m("It does apply"),href:new m("https://drive.google.com/open?id=1ZxlI0npXn4qLQj9hzCQtH3-O5xnrAsJH&disco=AAAASJgTzOw"),txt:new m("Decorated Instantiation")},{pref:new m("Press the button [Next step] or the key [n] to proceed to the next step"),href:D.value,txt:D.value},{pref:new m("Press the button [Previous step] or the key [p] to return to the previous step"),href:D.value,txt:D.value}]},{x:Or(ua.value),y:[{pref:D.value,href:new m("https://github.com/objectionary/eo/blob/546279ffc483e1be7decb85ad7e067631fbe8d72/paper/sections/calculus.tex#L347"),txt:new m("Sample Latex")},{pref:new m("Define a"),href:new m("https://www.overleaf.com/learn/latex/Commands#Simple-Commands"),txt:new m("new command")},{pref:new m("With a new command, you may override the phi-specific commands"),href:D.value,txt:D.value}]},{x:iB,y:[{pref:new m("For now, we only report syntactic errors"),href:D.value,txt:D.value}]}])}(),AB=function(){var n=An("")(SF),t=function(u){return"
"+(u+"
")},e=function(u){return"• "+u},r=function(u){return"
"+u},a=function(u){return function(i){if(u instanceof D&&i instanceof D)return"";if(u instanceof D&&i instanceof m)return i.value0;if(u instanceof m&&i instanceof D)return u.value0;if(u instanceof m&&i instanceof m)return""+(i.value0+"")));throw new Error("Failed pattern match at Phi (line 397, column 3 - line 397, column 47): "+[u.constructor.name,i.constructor.name])}},o=function(u){return t(x3("
")(tr(function(i){return e(n(i.pref)+(" "+a(i.href)(i.txt)))})(u)))};return rc(Zn)(Un)(tr(function(u){return new M(u.x,o(u.y))})(LB))}(),SB=function(n){return Ot("")(H3(n)(AB))},PF=function(n){return _d([Xe(n),At(["bi","bi-info-square","ms-2"]),fa("container")("body"),fa("toggle")("popover"),fa("placement")("top"),fa("content")(SB(n))])([])},wF=function(n){return function(t){return Gn([At(["col-sm-6"])])([Gn([Ie("row")])([Gn([At([N_,S_])])([md([Mi([Lr(t)])([Jt(I_(n)+" ")]),Jt("code"),PF(x_(Ki(ca(n))))])])]),Gn([At([N_,S_])])([Gn([Ie("row")])([Gn([Xe(ca(n)+"-editor")])([])])])])}},IB=function(){return Gn([Ie("container-fluid"),Xe("cont")])([Gn([Ie("row")])([wF(_e.value)("https://arxiv.org/abs/2204.07454"),wF(ae.value)("https://www.eolang.org")])])}(),WF=function(n){var t=Or(n.value0.id),e=function(){return n.value0.isActive?{t1:["active"],t2:"true"}:{t1:[],t2:"false"}}();return lu([At(LF(["nav-link"])(e.t1)),Xe(xF(t)),fa("toggle")("tab"),fa("target")("#"+CF(t)),sl(Do.value),Rp("tab"),A_("controls")(CF(t)),A_("selected")(e.t2),Op(function(r){return new Uc(n.value0.id)})])([Jt(" "+n.value0.buttonText),PF(Ki(t))])},NB=function(n){var t=cB(n.errorTab)(n.parseError);return ta([wc([Gn([At(["nav","nav-tabs"]),Xe("nav-tab"),Rp("tablist")])([WF(t)])]),Gn([Ie("tab-content"),Xe("nav-tabContent")])([HF(t)])])},xB=function(n){return ta([wc([Gn([At(["nav","nav-tabs"]),Xe("nav-tab"),Rp("tablist")])(tr(WF)(MB(n)))]),Gn([Ie("tab-content"),Xe("nav-tabContent")])(tr(HF)(n.textTabs))])},HB=function(n){if(n.info instanceof N)return NB(n.info.value0);if(n.info instanceof A)return xB(n.info.value0);throw new Error("Failed pattern match at Phi (line 763, column 11 - line 765, column 24): "+[n.info.constructor.name])},OB=function(n){var t=function(e){return Gn([At(["p-1"])])([e])};return Gn([At([dB,"gap-1"])])(tr(t)([TB,DB,EB,rB,IB,HB(n),Z3]))},$F=function(){var n=function(u){return OB(u)},t=function(u){return vB},e=function(u){if(u instanceof dD)return zt(e(new Vp(ae.value,"")))(function(){return zt(e(DD.value))(function(){return zt(e(yD.value))(function(){return zt(gg)(function(){return St(ie(F_(Ye)(te)))(function(c){return zt(gi(function(l){return Pp(fD)(Zf(c))(function(){var p=gF(TD.create(l));return function(d){return p(pF(d))}}())}))(function(){return a(99)})})})})})});if(u instanceof Uc)return zt(cl(function(c){return TF(c)(function(l){return new Mo({id:l.value0.id,buttonText:l.value0.buttonText,isActive:FF(u.value0)(l.value0.id),tabContent:l.value0.tabContent})})}))(function(){return ll(function(c){var l={};for(var p in c)({}).hasOwnProperty.call(c,p)&&(l[p]=c[p]);return l.currentTab=u.value0,l})});if(u instanceof Bc)return cl(function(c){return TF(c)(function(l){return l.value0.id instanceof Le?new Mo({id:l.value0.id,buttonText:l.value0.buttonText,isActive:l.value0.isActive,tabContent:aB(c.graphTabState)}):l})});if(u instanceof $c)return zt(cl(function(c){return En(yF)(c)(function(l){return O3(nB(c.graphTabState)-1|0)(l+1|0)})}))(function(){return e(Bc.value)});if(u instanceof qc)return zt(cl(function(c){return En(yF)(c)(function(l){return R3(l-1|0)(0)})}))(function(){return e(Bc.value)});if(u instanceof DD)return r(gD.create);if(u instanceof gD)return St(ie(F_(Ye)(te)))(function(c){return gi(function(l){return Pp(bg(u.value0))(Zf(c))(function(p){var d=hB(function(v){return v}(iD(p))),_=w_(w_(w_(sF(p))(dg))(Uv))(P3),f=function(){return _ instanceof m&&_.value0 instanceof A?new m(_.value0.value0.newCode):D.value}();return W3(gF(Jp.create)(d))(f)})})});if(u instanceof Jp)return St(_B)(function(c){return hF(c)(zt(function(){var l=wy(u.value1);return l?e(new Gp(Wc.value)):zt(ll(function(p){if(p.info instanceof N){var d={};for(var _ in p)({}).hasOwnProperty.call(p,_)&&(d[_]=p[_]);return d.info=new A(mB),d}if(p.info instanceof A)return p;throw new Error("Failed pattern match at Phi (line 157, column 29 - line 159, column 37): "+[p.info.constructor.name])}))(function(){return a(160)})}())(function(){return zt(Y3(u.value0))(function(){return zt(e(new Vp(u.value0,u.value1)))(function(){var l=new AM({code:u.value1});return St(ie(uF(Tg)))(function(p){var d=function(){return p instanceof m&&p.value0?mD.value:vD.value}();return St($3(Jd(Lp)(QC)(j3(d)+ca(u.value0))(new m(new Ic(q3(l))))))(function(_){var f=function(){if(_ instanceof A)return lh(U3(_.value0.body));if(_ instanceof N)return D.value;throw new Error("Failed pattern match at Phi (line 178, column 27 - line 180, column 38): "+[_.constructor.name])}();if(f instanceof m&&f.value0 instanceof cD)return zt(MF(CB(u.value0))(f.value0.value0.code))(function(){return zt(cl(function(v){return{textTabs:tr(function(C){var V=B3(C.value0.id)(f.value0.value0.textTabs);if(V instanceof m)return new Mo({id:C.value0.id,buttonText:C.value0.buttonText,isActive:C.value0.isActive,tabContent:lp([Jt(V.value0)])});if(V instanceof D)return function(Dn){return new Mo({id:C.value0.id,buttonText:C.value0.buttonText,isActive:C.value0.isActive,tabContent:Jt(Dn)})}(function(){return C.value0.id instanceof Le?"Waiting for "+k3(Le.value):"No response"}());throw new Error("Failed pattern match at Phi (line 188, column 47 - line 194, column 63): "+[V.constructor.name])})(v.textTabs),graphTabState:f.value0.value0.graphTab}}))(function(){return zt(e(Bc.value))(function(){return gg})})});if(f instanceof m&&f.value0 instanceof lD)return e(new Gp(function(){if(u.value0 instanceof ae)return qp.create;if(u.value0 instanceof _e)return Up.create;throw new Error("Failed pattern match at Phi (line 205, column 31 - line 207, column 59): "+[u.value0.constructor.name])}()(f.value0.value0.error)));if(f instanceof D)return fl(pD.value);throw new Error("Failed pattern match at Phi (line 181, column 17 - line 210, column 44): "+[f.constructor.name])})})})})}))});if(u instanceof hD)return St(ie(xu(xu(te)(ev))(cg)))(function(c){return St(ie(function(){var p=xu(te)(Ye)();return mg(yg)(_g(nc(p)))()}))(function(l){if(l instanceof m)return St(ie(wT(EF)(l.value0)))(function(p){if(p instanceof m)return ie(xu(NF(p.value0))(lg(c)));if(p instanceof D)return fl(_D.value);throw new Error("Failed pattern match at Phi (line 218, column 15 - line 220, column 47): "+[p.constructor.name])});if(l instanceof D)return fl(kp.value);throw new Error("Failed pattern match at Phi (line 215, column 11 - line 221, column 39): "+[l.constructor.name])})});if(u instanceof Vp)return St(ie(function(){var l=xu(te)(Ye)();return mg(yg)(_g(nc(l)))()}))(function(c){if(c instanceof m)return St(ie(sg(ca(u.value0))(u.value1)))(function(l){return ie(Ov(EF)(l)(c.value0))});if(c instanceof D)return fl(kp.value);throw new Error("Failed pattern match at Phi (line 224, column 11 - line 228, column 39): "+[c.constructor.name])});if(u instanceof yD)return r(bD.create);if(u instanceof bD)return St(ie(F_(Ye)(te)))(function(c){return gi(function(l){return Pp(pB(u.value0))(Zf(c))(function(p){return new m(new zp(u.value0))})})});if(u instanceof IM)return r(zp.create);if(u instanceof zp)return zt(FB)(function(){return St(J3(vF)(ie(xu(xu(te)(tc))(tv))))(function(c){var l=Dg(K3)(c),p=V3(Dg(fB)(c))(lB),d=new M(l,p);return d.value0 instanceof m&&d.value1 instanceof m?zt(MF(d.value1.value0)(d.value0.value0))(function(){return hF(z3(u.value0)(d.value1.value0))(e(new Jp(d.value1.value0,d.value0.value0)))}):fl(sD.value)})});if(u instanceof TD){var i=function(){if(il(u.value1)==="t")return e(ED.value);if(ot)return Qi(void 0);throw new Error("Failed pattern match at Phi (line 272, column 11 - line 274, column 36): "+[])}(),s=function(){if(il(u.value1)==="n")return e($c.value);if(il(u.value1)==="p")return e(qc.value);if(ot)return Qi(void 0);throw new Error("Failed pattern match at Phi (line 266, column 11 - line 269, column 36): "+[])}();return zt(St(oB)(function(c){return c instanceof m&&c.value0 instanceof Le?s:Qi(void 0)}))(function(){return i})}if(u instanceof ED)return St(St(hg)(function(c){return Qi(c.currentTab)}))(function(c){return e(new Uc(tB(c)))});if(u instanceof Gp)return zt(ll(function(c){var l={};for(var p in c)({}).hasOwnProperty.call(c,p)&&(l[p]=c[p]);return l.info=new N({parseError:u.value0,errorTab:RF.errorTab}),l}))(function(){return gg});if(u instanceof SM)return Qi(void 0);throw new Error("Failed pattern match at Phi (line 87, column 7 - line 281, column 26): "+[u.constructor.name])},r=function(u){return G3(e)(tr(function(i){return u(i)})([ae.value,_e.value]))},a=L3("setCurrentTab","Phi",function(){return St(hg)(function(u){return e(new Uc(u.currentTab))})}),o=a(286);return cd({initialState:t,render:n,eval:fd({handleAction:e,handleQuery:Cc.handleQuery,receive:Cc.receive,initialize:new m(dD.value),finalize:Cc.finalize})})}();var qF=W(Xt),PB=G(R_),WB=W(ye),UF=function(){var t=qF(qF(te)(tc))(nv)(),e=Sm(Am("localhost"))(t)==="localhost";return Ko(PB(e))(),pg(Tg)(e)(),qb(WB(Ub)(function(r){return NC($F)(void 0)(r)}))()};UF();})(); +/*! Bundled license information: + +bootstrap/dist/js/bootstrap.esm.js: + (*! + * Bootstrap v5.3.0 (https://getbootstrap.com/) + * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) + *) +*/ diff --git a/styles.css b/styles.css new file mode 100644 index 00000000..8d9a00a5 --- /dev/null +++ b/styles.css @@ -0,0 +1,108 @@ +.switch { + position: relative; + display: inline-block; + width: 60px; + height: 34px; + vertical-align: middle +} + +.switch input { + opacity: 0; + width: 0; + height: 0; +} + +.popover-content kbd { + background-color: #eee; + border-radius: 3px; + border: 1px solid #b4b4b4; + box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 2px 0 0 rgba(255, 255, 255, .7) inset; + color: #333; + display: inline-block; + font-size: .85em; + font-weight: 700; + line-height: 1; + padding: 2px 4px; + white-space: nowrap; + } + +.slider { + position: absolute; + cursor: pointer; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: #42b340; + -webkit-transition: .4s; + transition: .4s; +} + +.slider:before { + position: absolute; + content: ""; + height: 26px; + width: 26px; + left: 4px; + bottom: 4px; + background-color: white; + -webkit-transition: .4s; + transition: .4s; +} + +input:checked+.slider { + background-color: #2196F3; +} + +input:focus+.slider { + box-shadow: 0 0 1px #2196F3; +} + +input:checked+.slider:before { + -webkit-transform: translateX(26px); + -ms-transform: translateX(26px); + transform: translateX(26px); +} + +/* Rounded sliders */ +.slider.round { + border-radius: 34px; +} + +.slider.round:before { + border-radius: 50%; +} + +.selected_mode{ + vertical-align: middle; + font-weight: bold; +} + +.reference_line { + vertical-align: middle; +} + + +.btn-yellow, +.btn-yellow:hover, +.btn-yellow:active, +.btn-yellow:visited { + background-color: #eab42b !important; +} + +.btn-yellow:focus{ + border-color: #eab42b !important; + box-shadow: 0 0 0 0.2rem #eab42b7c !important; +} + +.btn-green, +.btn-green:hover, +.btn-green:active, +.btn-green:visited { + background-color: #54c234; +} + +.btn-green:focus{ + border-color: #54c234; + box-shadow: 0 0 0 0.2rem #55c23480; +} \ No newline at end of file