2023-04-20 10:41:03 +02:00
|
|
|
var Edge=(()=>{var K3=Object.create;var Mi=Object.defineProperty,Y3=Object.defineProperties,hb=Object.getOwnPropertyDescriptor,J3=Object.getOwnPropertyDescriptors,X3=Object.getOwnPropertyNames,fb=Object.getOwnPropertySymbols,Q3=Object.getPrototypeOf,pb=Object.prototype.hasOwnProperty,Z3=Object.prototype.propertyIsEnumerable;var db=(e,r,t)=>r in e?Mi(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,at=(e,r)=>{for(var t in r||(r={}))pb.call(r,t)&&db(e,t,r[t]);if(fb)for(var t of fb(r))Z3.call(r,t)&&db(e,t,r[t]);return e},$i=(e,r)=>Y3(e,J3(r));var u=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),rG=(e,r)=>{for(var t in r)Mi(e,t,{get:r[t],enumerable:!0})},gb=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of X3(r))!pb.call(e,n)&&n!==t&&Mi(e,n,{get:()=>r[n],enumerable:!(i=hb(r,n))||i.enumerable});return e};var qb=(e,r,t)=>(t=e!=null?K3(Q3(e)):{},gb(r||!e||!e.__esModule?Mi(t,"default",{value:e,enumerable:!0}):t,e)),eG=e=>gb(Mi({},"__esModule",{value:!0}),e),fr=(e,r,t,i)=>{for(var n=i>1?void 0:i?hb(r,t):r,a=e.length-1,o;a>=0;a--)(o=e[a])&&(n=(i?o(r,t,n):o(n))||n);return i&&n&&Mi(r,t,n),n};var zl=(e,r,t)=>new Promise((i,n)=>{var a=c=>{try{s(t.next(c))}catch(l){n(l)}},o=c=>{try{s(t.throw(c))}catch(l){n(l)}},s=c=>c.done?i(c.value):Promise.resolve(c.value).then(a,o);s((t=t.apply(e,r)).next())});var I=u((DPr,yb)=>{var Su=function(e){return e&&e.Math==Math&&e};yb.exports=Su(typeof globalThis=="object"&&globalThis)||Su(typeof window=="object"&&window)||Su(typeof self=="object"&&self)||Su(typeof window=="object"&&window)||function(){return this}()||Function("return this")()});var b=u((FPr,mb)=>{mb.exports=function(e){try{return!!e()}catch(r){return!0}}});var x=u((jPr,bb)=>{var tG=b();bb.exports=!tG(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var Li=u((UPr,Sb)=>{var iG=b();Sb.exports=!iG(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var O=u((kPr,Eb)=>{var nG=Li(),Eu=Function.prototype.call;Eb.exports=nG?Eu.bind(Eu):function(){return Eu.apply(Eu,arguments)}});var sa=u(Ab=>{"use strict";var Ib={}.propertyIsEnumerable,Ob=Object.getOwnPropertyDescriptor,aG=Ob&&!Ib.call({1:2},1);Ab.f=aG?function(r){var t=Ob(this,r);return!!t&&t.enumerable}:Ib});var Or=u((HPr,wb)=>{wb.exports=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}});var S=u((GPr,_b)=>{var xb=Li(),Tb=Function.prototype,Kl=Tb.call,oG=xb&&Tb.bind.bind(Kl,Kl);_b.exports=xb?oG:function(e){return function(){return Kl.apply(e,arguments)}}});var sr=u((WPr,Cb)=>{var Rb=S(),uG=Rb({}.toString),sG=Rb("".slice);Cb.exports=function(e){return sG(uG(e),8,-1)}});var Ne=u((VPr,Pb)=>{var cG=S(),lG=b(),vG=sr(),Yl=Object,fG=cG("".split);Pb.exports=lG(function(){return!Yl("z").propertyIsEnumerable(0)})?function(e){return vG(e)=="String"?fG(e,""):Yl(e)}:Yl});var dr=u((zPr,Nb)=>{Nb.exports=function(e){return e==null}});var Y=u((KPr,Mb)=>{var dG=dr(),hG=TypeError;Mb.exports=function(e){if(dG(e))throw hG("Can't call method on "+e);return e}});var rr=u((YPr,$b)=>{var pG=Ne(),gG=Y();$b.exports=function(e){return pG(gG(e))}});var Xl=u((JPr,Lb)=>{var Jl=typeof document=="object"&&document.all,qG=typeof Jl=="undefined"&&Jl!==void 0;Lb.exports={all:Jl,IS_HTMLDDA:qG}});var P=u((XPr,Fb)=>{var Db=Xl(),yG=Db.all;Fb.exports=Db.IS_HTMLDDA?function(e){return typeof e=="function"||e===yG}:function(e){return typeof e=="function"}});var _=u((QPr,kb)=>{var jb=P(),Ub=Xl(),mG=Ub.all;kb.exports=Ub.IS_HTMLDDA?function(e){return typeof e=="object"?e!==null:jb(e)||e===mG}:function(e){return typeof e=="object"?e!==null:jb(e)}});var D=u((ZPr,Bb)=>{var Ql=I(),bG=P(),SG=function(e){return bG(e)?e:void 0};Bb.exports=function(e,r){return arguments.length<2?SG(Ql[e]):Ql[e]&&Ql[e][r]}});var hr=u((rNr,Hb)=>{var EG=S();Hb.exports=EG({}.isPrototypeOf)});var ve=u((eNr,Gb)=>{Gb.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""});var fe=u((tNr,Jb)=>{var Yb=I(),Zl=ve(),Wb=Yb.process,Vb=Yb.Deno,zb=Wb&&Wb.versions||Vb&&Vb.version,Kb=zb&&zb.v8,te,Iu;Kb&&(te
|
|
|
|
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var ti=u((PFr,JT)=>{var ktr=S(),Btr=Y(),Htr=C(),Pd=Ba(),YT=ktr("".replace),Gtr=RegExp("^["+Pd+"]+"),Wtr=RegExp("(^|[^"+Pd+"])["+Pd+"]+$"),Cd=function(e){return function(r){var t=Htr(Btr(r));return e&1&&(t=YT(t,Gtr,"")),e&2&&(t=YT(t,Wtr,"$1")),t}};JT.exports={start:Cd(1),end:Cd(2),trim:Cd(3)}});var i_=u(()=>{"use strict";var Vtr=h(),Nd=k(),ztr=x(),ZT=I(),Md=Gi(),r_=S(),Ktr=ki(),XT=N(),Ytr=zt(),Jtr=hr(),Xtr=ut(),e_=la(),Qtr=b(),Ztr=Me().f,rir=cr().f,eir=W().f,tir=ka(),iir=ti().trim,Ha="Number",tn=ZT[Ha],QT=Md[Ha],$d=tn.prototype,nir=ZT.TypeError,air=r_("".slice),Ms=r_("".charCodeAt),oir=function(e){var r=e_(e,"number");return typeof r=="bigint"?r:uir(r)},uir=function(e){var r=e_(e,"number"),t,i,n,a,o,s,c,l;if(Xtr(r))throw nir("Cannot convert a Symbol value to a number");if(typeof r=="string"&&r.length>2){if(r=iir(r),t=Ms(r,0),t===43||t===45){if(i=Ms(r,2),i===88||i===120)return NaN}else if(t===48){switch(Ms(r,1)){case 66:case 98:n=2,a=49;break;case 79:case 111:n=8,a=55;break;default:return+r}for(o=air(r,2),s=o.length,c=0;c<s;c++)if(l=Ms(o,c),l<48||l>a)return NaN;return parseInt(o,n)}}return+r},Ld=Ktr(Ha,!tn(" 0o1")||!tn("0b1")||tn("+0x1")),sir=function(e){return Jtr($d,e)&&Qtr(function(){tir(e)})},$s=function(r){var t=arguments.length<1?0:tn(oir(r));return sir(this)?Ytr(Object(t),this,$s):t};$s.prototype=$d;Ld&&!Nd&&($d.constructor=$s);Vtr({global:!0,constructor:!0,wrap:!0,forced:Ld},{Number:$s});var t_=function(e,r){for(var t=ztr?Ztr(r):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0,n;t.length>i;i++)XT(r,n=t[i])&&!XT(e,n)&&eir(e,n,rir(r,n))};Nd&&QT&&t_(Md[Ha],QT);(Ld||Nd)&&t_(Md[Ha],tn)});var n_=u(()=>{var cir=h();cir({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})});var o_=u((DFr,a_)=>{var lir=I(),vir=lir.isFinite;a_.exports=Number.isFinite||function(r){return typeof r=="number"&&vir(r)}});var u_=u(()=>{var fir=h(),dir=o_();fir({target:"Number",stat:!0},{isFinite:dir})});var Ls=u((UFr,s_)=>{var hir=_(),pir=Math.floor;s_.exports=Number.isInteger||function(r){return!hir(r)&&isFinite(r)&&pir(r)===r}});var c_=u(()=>{var gir=h(),qir=Ls();gir({target:"Number",stat:!0},{isInteger:qir})});var l_=u(()=>{var yir=h();yir({target:"Number",stat:!0},{isNaN:function(r){return r!=r}})});var v_=u(()=>{var mir=h(),bir=Ls(),Sir=Math.abs;mir({target:"Number",stat:!0},{isSafeInteger:function(r){return bir(r)&&Sir(r)<=9007199254740991}})});var f_=u(()=>{var Eir=h();Eir({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})});var d_=u(()=>{var Iir=h();Iir({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})});var Dd=u((XFr,q_)=>{var g_=I(),Oir=b(),Air=S(),wir=C(),xir=ti().trim,Tir=Ba(),_ir=Air("".charAt),Ds=g_.parseFloat,h_=g_.Symbol,p_=h_&&h_.iterator,Rir=1/Ds(Tir+"-0")!==-1/0||p_&&!Oir(function(){Ds(Object(p_))});q_.exports=Rir?function(r){var t=xir(wir(r)),i=Ds(t);return i===0&&_ir(t,0)=="-"?-0:i}:Ds});var m_=u(()=>{var Cir=h(),y_=Dd();Cir({target:"Number",stat:!0,forced:Number.parseFloat!=y_},{parseFloat:y_})});var Fd=u((rjr,A_)=>{var I_=I(),Pir=b(),Nir=S(),Mir=C(),$ir=ti().trim,b_=Ba(),Ga=I_.parseInt,S_=I_.Symbol,E_=S_&&S_.iterator,O_=/^[+-]?0x/i,Lir=Nir(O_.exec),Dir=Ga(b_+"08")!==8||Ga(b_+"0x16")!==22||E_&&!Pir(function(){Ga(Object(E_))});A_.exports=Dir?function(r,t){var i=$ir(Mir(r));return Ga(i,t>>>0||(Lir(O_,i)?16:10))}:Ga});var x_=u(()=>{var Fir=h(),w_=Fd();Fir({target:"Number",stat:!0,forced:Number.parseInt!=w_},{parseInt:w_})});var P_=u(()=>{"use strict";var jir=h(),Ud=S(),Uir=V(),kir=ka(),Bir=$a(),Hir=Rd(),jd=b(),Gir=RangeError,T_=String,Wir=isFinite,Vir=Math.abs,zir=Math.floor,__=Math.pow,Kir=Math.round,be=Ud(1 .toExponential),Yir=Ud(Bir),R_=Ud("".slice),C_=be(-69e-12,4)==="-6.9000e-11"&&be(1.255,2)==="1.25e+0"&&be(12345,3)==="1.235e+4"&&be
|
|
|
|
`)&&e.flags==="s")})});var kh=u((Mkr,B1)=>{var rlr=b(),elr=I(),tlr=elr.RegExp;B1.exports=rlr(function(){var e=tlr("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})});var X1=u(()=>{var ilr=x(),Wh=I(),eo=S(),nlr=ki(),alr=zt(),olr=J(),ulr=Me().f,H1=hr(),slr=dn(),G1=C(),clr=hn(),z1=ro(),llr=Qv(),vlr=G(),flr=b(),dlr=N(),hlr=H().enforce,plr=Qt(),glr=T(),K1=Js(),Y1=kh(),qlr=glr("match"),wt=Wh.RegExp,pn=wt.prototype,ylr=Wh.SyntaxError,mlr=eo(pn.exec),Xs=eo("".charAt),W1=eo("".replace),V1=eo("".indexOf),blr=eo("".slice),Slr=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,si=/a/g,Bh=/a/g,Elr=new wt(si)!==si,J1=z1.MISSED_STICKY,Ilr=z1.UNSUPPORTED_Y,Olr=ilr&&(!Elr||J1||K1||Y1||flr(function(){return Bh[qlr]=!1,wt(si)!=si||wt(Bh)==Bh||wt(si,"i")!="/a/i"})),Alr=function(e){for(var r=e.length,t=0,i="",n=!1,a;t<=r;t++){if(a=Xs(e,t),a==="\\"){i+=a+Xs(e,++t);continue}!n&&a==="."?i+="[\\s\\S]":(a==="["?n=!0:a==="]"&&(n=!1),i+=a)}return i},wlr=function(e){for(var r=e.length,t=0,i="",n=[],a={},o=!1,s=!1,c=0,l="",f;t<=r;t++){if(f=Xs(e,t),f==="\\")f=f+Xs(e,++t);else if(f==="]")o=!1;else if(!o)switch(!0){case f==="[":o=!0;break;case f==="(":mlr(Slr,blr(e,t+1))&&(t+=2,s=!0),i+=f,c++;continue;case(f===">"&&s):if(l===""||dlr(a,l))throw new ylr("Invalid capture group name");a[l]=!0,n[n.length]=[l,c],s=!1,l="";continue}s?l+=f:i+=f}return[i,n]};if(nlr("RegExp",Olr)){for(At=function(r,t){var i=H1(pn,this),n=slr(r),a=t===void 0,o=[],s=r,c,l,f,v,d,p;if(!i&&n&&a&&r.constructor===At)return r;if((n||H1(pn,r))&&(r=r.source,a&&(t=clr(s))),r=r===void 0?"":G1(r),t=t===void 0?"":G1(t),s=r,K1&&"dotAll"in si&&(l=!!t&&V1(t,"s")>-1,l&&(t=W1(t,/s/g,""))),c=t,J1&&"sticky"in si&&(f=!!t&&V1(t,"y")>-1,f&&Ilr&&(t=W1(t,/y/g,""))),Y1&&(v=wlr(r),r=v[0],o=v[1]),d=alr(wt(r,t),i?this:pn,At),(l||f||o.length)&&(p=hlr(d),l&&(p.dotAll=!0,p.raw=At(Alr(r),c)),f&&(p.sticky=!0),o.length&&(p.groups=o)),r!==s)try{olr(d,"source",s===""?"(?:)":s)}catch(q){}return d},Hh=ulr(wt),Gh=0;Hh.length>Gh;)llr(At,wt,Hh[Gh++]);pn.constructor=At,At.prototype=pn,vlr(Wh,"RegExp",At,{constructor:!0})}var At,Hh,Gh;plr("RegExp")});var Z1=u(()=>{var xlr=x(),Tlr=Js(),_lr=sr(),Rlr=Q(),Clr=H().get,Q1=RegExp.prototype,Plr=TypeError;xlr&&Tlr&&Rlr(Q1,"dotAll",{configurable:!0,get:function(){if(this!==Q1){if(_lr(this)==="RegExp")return!!Clr(this).dotAll;throw Plr("Incompatible receiver, RegExp required")}}})});var to=u((jkr,eP)=>{"use strict";var gn=O(),Zs=S(),Nlr=C(),Mlr=Ys(),$lr=ro(),Llr=kt(),Dlr=X(),Flr=H().get,jlr=Js(),Ulr=kh(),klr=Llr("native-string-replace",String.prototype.replace),Qs=RegExp.prototype.exec,zh=Qs,Blr=Zs("".charAt),Hlr=Zs("".indexOf),Glr=Zs("".replace),Vh=Zs("".slice),Kh=function(){var e=/a/,r=/b*/g;return gn(Qs,e,"a"),gn(Qs,r,"a"),e.lastIndex!==0||r.lastIndex!==0}(),rP=$lr.BROKEN_CARET,Yh=/()??/.exec("")[1]!==void 0,Wlr=Kh||Yh||rP||jlr||Ulr;Wlr&&(zh=function(r){var t=this,i=Flr(t),n=Nlr(r),a=i.raw,o,s,c,l,f,v,d;if(a)return a.lastIndex=t.lastIndex,o=gn(zh,a,n),t.lastIndex=a.lastIndex,o;var p=i.groups,q=rP&&t.sticky,g=gn(Mlr,t),y=t.source,m=0,E=n;if(q&&(g=Glr(g,"y",""),Hlr(g,"g")===-1&&(g+="g"),E=Vh(n,t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&Blr(n,t.lastIndex-1)!==`
|
|
|
|
`)&&(y="(?: "+y+")",E=" "+E,m++),s=new RegExp("^(?:"+y+")",g)),Yh&&(s=new RegExp("^"+y+"$(?!\\s)",g)),Kh&&(c=t.lastIndex),l=gn(Qs,q?s:t,E),q?l?(l.input=Vh(l.input,m),l[0]=Vh(l[0],m),l.index=t.lastIndex,t.lastIndex+=l[0].length):t.lastIndex=0:Kh&&l&&(t.lastIndex=t.global?l.index+l[0].length:c),Yh&&l&&l.length>1&&gn(klr,l[0],s,function(){for(f=1;f<arguments.length-2;f++)arguments[f]===void 0&&(l[f]=void 0)}),l&&p)for(l.groups=v=Dlr(null),f=0;f<p.length;f++)d=p[f],v[d[0]]=l[d[1]];return l});eP.exports=zh});var rc=u(()=>{"use strict";var Vlr=h(),tP=to();Vlr({target:"RegExp",proto:!0,forced:/./.exec!==tP},{exec:tP})});var aP=u(()=>{var zlr=I(),Klr=x(),Ylr=Q(),Jlr=Ys(),Xlr=b(),iP=zlr.RegExp,nP=iP.prototype,Qlr=Klr&&Xlr(function(){var e=!0;try{iP(".","d")}catch(c){e=!1}var r={},t="",i=e?"dgimsy":"gimsy",n=function(c,l){Object.defineProperty(r,c,{get:function(){return t+=l,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};e&&(a.hasIndices="d");for(var o in a)n(o,a[o]);var s=Object.getOwnPropertyDescriptor(nP,"flags").get.call(r);return s!==i||t!==i});Qlr&&Ylr(nP,"flags",{configurable:!0,get:Jlr})});var uP=u(()=>{var Zlr=x(),rvr=ro().MISSED_STICKY,evr=sr(),tvr=Q(),ivr=H().get,oP=RegExp.prototype,nvr=TypeError;Zlr&&rvr&&tvr(oP,"sticky",{configurable:!0,get:function(){if(this!==oP){if(evr(this)==="RegExp")return!!ivr(this).sticky;throw nvr("Incompatible receiver, RegExp required")}}})});var lP=u(()=>{"use strict";rc();var avr=h(),sP=O(),ovr=P(),cP=A(),uvr=C(),svr=function(){var e=!1,r=/[ac]/;return r.exec=function(){return e=!0,/./.exec.apply(this,arguments)},r.test("abc")===!0&&e}(),cvr=/./.test;avr({target:"RegExp",proto:!0,forced:!svr},{test:function(e){var r=cP(this),t=uvr(e),i=r.exec;if(!ovr(i))return sP(cvr,r,t);var n=sP(i,r,t);return n===null?!1:(cP(n),!0)}})});var dP=u(()=>{"use strict";var lvr=Bt().PROPER,vvr=G(),fvr=A(),vP=C(),dvr=b(),hvr=hn(),Jh="toString",pvr=RegExp.prototype,fP=pvr[Jh],gvr=dvr(function(){return fP.call({source:"a",flags:"b"})!="/a/b"}),qvr=lvr&&fP.name!=Jh;(gvr||qvr)&&vvr(RegExp.prototype,Jh,function(){var r=fvr(this),t=vP(r.source),i=vP(hvr(r));return"/"+t+"/"+i},{unsafe:!0})});var hP=u(()=>{"use strict";var yvr=Da(),mvr=Od();yvr("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},mvr)});var pP=u(()=>{hP()});var Xh=u(()=>{"use strict";var bvr=h(),Svr=S(),Evr=Y(),Ivr=V(),Ovr=C(),Avr=b(),wvr=Svr("".charAt),xvr=Avr(function(){return"\u{20BB7}".at(-2)!=="\uD842"});bvr({target:"String",proto:!0,forced:xvr},{at:function(r){var t=Ovr(Evr(this)),i=t.length,n=Ivr(r),a=n>=0?n:i+n;return a<0||a>=i?void 0:wvr(t,a)}})});var io=u((tBr,yP)=>{var Qh=S(),Tvr=V(),_vr=C(),Rvr=Y(),Cvr=Qh("".charAt),gP=Qh("".charCodeAt),Pvr=Qh("".slice),qP=function(e){return function(r,t){var i=_vr(Rvr(r)),n=Tvr(t),a=i.length,o,s;return n<0||n>=a?e?"":void 0:(o=gP(i,n),o<55296||o>56319||n+1===a||(s=gP(i,n+1))<56320||s>57343?e?Cvr(i,n):o:e?Pvr(i,n,n+2):(o-55296<<10)+(s-56320)+65536)}};yP.exports={codeAt:qP(!1),charAt:qP(!0)}});var mP=u(()=>{"use strict";var Nvr=h(),Mvr=io().codeAt;Nvr({target:"String",proto:!0},{codePointAt:function(r){return Mvr(this,r)}})});var ec=u((aBr,bP)=>{var $vr=dn(),Lvr=TypeError;bP.exports=function(e){if($vr(e))throw Lvr("The method doesn't accept regular expressions");return e}});var tc=u((oBr,SP)=>{var Dvr=T(),Fvr=Dvr("match");SP.exports=function(e){var r=/./;try{"/./"[e](r)}catch(t){try{return r[Fvr]=!1,"/./"[e](r)}catch(i){}}return!1}});var wP=u(()=>{"use strict";var jvr=h(),OP=$e(),Uvr=cr().f,kvr=Ar(),EP=C(),Bvr=ec(),Hvr=Y(),Gvr=tc(),Wvr=k(),IP=OP("".endsWith),Vvr=OP("".slice),zvr=Math.min,AP=Gvr("endsWith"),Kvr=!Wvr&&!AP&&!!function(){var e=Uvr(String.prototype,"endsWith");return e&&!e.writable}();jvr({target:"String",proto:!0,forced:!Kvr&&!AP},{endsWith:function(r){var t=EP(Hvr(this));Bvr(r);var i=arguments.length>1?arguments[1]:void 0,n=t.length,a=i===void 0?n:zvr(kvr(i),n),o=EP(r);return IP?IP(t,o,a):Vvr(t,a-o.length,a)===o}})});var _P=u(()=>{var Yvr=h(),Jvr=S(),Xvr=Ur(),Qvr=RangeError,xP=String.fromCharCode,TP=String.fromCodePoint,Zvr=Jvr([].
|
|
|
|
`,"\\r":"\r","\\t":" "},Gwr=/^[\da-f]{4}$/i,Wwr=/^[\u0000-\u001F]$/;TU.exports=function(e,r){for(var t=!0,i="";r<e.length;){var n=Hwr(e,r);if(n=="\\"){var a=AU(e,r,r+2);if(Uwr(xU,a))i+=xU[a],r+=2;else if(a=="\\u"){r+=2;var o=AU(e,r,r+4);if(!wU(Gwr,o))throw dl("Bad Unicode escape at: "+r);i+=Bwr(kwr(o,16)),r+=4}else throw dl('Unknown escape sequence: "'+a+'"')}else if(n=='"'){t=!1,r++;break}else{if(wU(Wwr,n))throw dl("Bad control character in string literal at: "+r);i+=n,r++}}if(t)throw dl("Unterminated string at: "+r);return{value:i,end:r}}});var LU=u(()=>{"use strict";var Vwr=h(),zwr=x(),wy=I(),Kwr=D(),hl=S(),Ywr=O(),MU=P(),Jwr=_(),Xwr=he(),Qwr=N(),Zwr=C(),_U=F(),Iy=kr(),$U=b(),rxr=yy(),exr=ot(),RU=wy.JSON,txr=wy.Number,Hn=wy.SyntaxError,xy=RU&&RU.parse,ixr=Kwr("Object","keys"),nxr=Object.getOwnPropertyDescriptor,vr=hl("".charAt),my=hl("".slice),by=hl(/./.exec),CU=hl([].push),Sy=/^\d$/,axr=/^[1-9]$/,oxr=/^(-|\d)$/,Vo=/^[\t\n\r ]$/,Ey=0,PU=1,uxr=function(e,r){e=Zwr(e);var t=new Ay(e,0,""),i=t.parse(),n=i.value,a=t.skip(Vo,i.end);if(a<e.length)throw Hn('Unexpected extra character: "'+vr(e,a)+'" after the parsed data at: '+a);return MU(r)?Oy({"":n},"",r,i):n},Oy=function(e,r,t,i){var n=e[r],a=i&&n===i.value,o=a&&typeof i.source=="string"?{source:i.source}:{},s,c,l,f,v;if(Jwr(n)){var d=Xwr(n),p=a?i.nodes:d?[]:{};if(d)for(s=p.length,l=_U(n),f=0;f<l;f++)NU(n,f,Oy(n,""+f,t,f<s?p[f]:void 0));else for(c=ixr(n),l=_U(c),f=0;f<l;f++)v=c[f],NU(n,v,Oy(n,v,t,Qwr(p,v)?p[v]:void 0))}return Ywr(t,e,r,n,o)},NU=function(e,r,t){if(zwr){var i=nxr(e,r);if(i&&!i.configurable)return}t===void 0?delete e[r]:Iy(e,r,t)},sxr=function(e,r,t,i){this.value=e,this.end=r,this.source=t,this.nodes=i},Ay=function(e,r){this.source=e,this.index=r};Ay.prototype={fork:function(e){return new Ay(this.source,e)},parse:function(){var e=this.source,r=this.skip(Vo,this.index),t=this.fork(r),i=vr(e,r);if(by(oxr,i))return t.number();switch(i){case"{":return t.object();case"[":return t.array();case'"':return t.string();case"t":return t.keyword(!0);case"f":return t.keyword(!1);case"n":return t.keyword(null)}throw Hn('Unexpected character: "'+i+'" at: '+r)},node:function(e,r,t,i,n){return new sxr(r,i,e?null:my(this.source,t,i),n)},object:function(){for(var e=this.source,r=this.index+1,t=!1,i={},n={};r<e.length;){if(r=this.until(['"',"}"],r),vr(e,r)=="}"&&!t){r++;break}var a=this.fork(r).string(),o=a.value;r=a.end,r=this.until([":"],r)+1,r=this.skip(Vo,r),a=this.fork(r).parse(),Iy(n,o,a),Iy(i,o,a.value),r=this.until([",","}"],a.end);var s=vr(e,r);if(s==",")t=!0,r++;else if(s=="}"){r++;break}}return this.node(PU,i,this.index,r,n)},array:function(){for(var e=this.source,r=this.index+1,t=!1,i=[],n=[];r<e.length;){if(r=this.skip(Vo,r),vr(e,r)=="]"&&!t){r++;break}var a=this.fork(r).parse();if(CU(n,a),CU(i,a.value),r=this.until([",","]"],a.end),vr(e,r)==",")t=!0,r++;else if(vr(e,r)=="]"){r++;break}}return this.node(PU,i,this.index,r,n)},string:function(){var e=this.index,r=rxr(this.source,this.index+1);return this.node(Ey,r.value,e,r.end)},number:function(){var e=this.source,r=this.index,t=r;if(vr(e,t)=="-"&&t++,vr(e,t)=="0")t++;else if(by(axr,vr(e,t)))t=this.skip(Sy,++t);else throw Hn("Failed to parse number at: "+t);if(vr(e,t)=="."&&(t=this.skip(Sy,++t)),vr(e,t)=="e"||vr(e,t)=="E"){t++,(vr(e,t)=="+"||vr(e,t)=="-")&&t++;var i=t;if(t=this.skip(Sy,t),i==t)throw Hn("Failed to parse number's exponent value at: "+t)}return this.node(Ey,txr(my(e,r,t)),r,t)},keyword:function(e){var r=""+e,t=this.index,i=t+r.length;if(my(this.source,t,i)!=r)throw Hn("Failed to parse value at: "+t);return this.node(Ey,e,t,i)},skip:function(e,r){for(var t=this.source;r<t.length&&by(e,vr(t,r));r++);return r},until:function(e,r){r=this.skip(Vo,r);for(var t=vr(this.source,r),i=0;i<e.length;i++)if(e[i]==t)return r;throw Hn('Unexpected character: "'+t+'" at: '+r)}};var cxr=$U(function(){var e="9007199254740993",r;return xy(e,function(t,i,n){r=n.source}),r!==e}),lxr=exr&&!$U(function(){return 1/xy("-0 ")!==-1/0});Vwr({target:"JSON",stat:!0,forced:cxr},{parse:function(r,t){return lxr&&!MU(t)?xy(r):uxr(r,t)}})
|
|
|
|
`),t===-1)break;var n=i.slice(0,t);n&&(Dt("message",n),this.emit("message",n))}};Yo.prototype._cleanup=function(){Dt("_cleanup"),this.removeAllListeners()};Yo.prototype.abort=function(){Dt("abort"),this.xo&&(this.xo.close(),Dt("close"),this.emit("close",null,"user"),this.xo=null),this._cleanup()};SH.exports=Yo});var um=u((aVr,wH)=>{"use strict";var IH=mr().EventEmitter,BCr=j(),OH=Ye(),HCr=Fr(),Xo=window.XMLHttpRequest,Pr=function(){};function _e(e,r,t,i){Pr(e,r);var n=this;IH.call(this),setTimeout(function(){n._start(e,r,t,i)},0)}BCr(_e,IH);_e.prototype._start=function(e,r,t,i){var n=this;try{this.xhr=new Xo}catch(o){}if(!this.xhr){Pr("no xhr"),this.emit("finish",0,"no xhr support"),this._cleanup();return}r=HCr.addQuery(r,"t="+ +new Date),this.unloadRef=OH.unloadAdd(function(){Pr("unload cleanup"),n._cleanup(!0)});try{this.xhr.open(e,r,!0),this.timeout&&"timeout"in this.xhr&&(this.xhr.timeout=this.timeout,this.xhr.ontimeout=function(){Pr("xhr timeout"),n.emit("finish",0,""),n._cleanup(!1)})}catch(o){Pr("exception",o),this.emit("finish",0,""),this._cleanup(!1);return}if((!i||!i.noCredentials)&&_e.supportsCORS&&(Pr("withCredentials"),this.xhr.withCredentials=!0),i&&i.headers)for(var a in i.headers)this.xhr.setRequestHeader(a,i.headers[a]);this.xhr.onreadystatechange=function(){if(n.xhr){var o=n.xhr,s,c;switch(Pr("readyState",o.readyState),o.readyState){case 3:try{c=o.status,s=o.responseText}catch(l){}Pr("status",c),c===1223&&(c=204),c===200&&s&&s.length>0&&(Pr("chunk"),n.emit("chunk",c,s));break;case 4:c=o.status,Pr("status",c),c===1223&&(c=204),(c===12005||c===12029)&&(c=0),Pr("finish",c,o.responseText),n.emit("finish",c,o.responseText),n._cleanup(!1);break}}};try{n.xhr.send(t)}catch(o){n.emit("finish",0,""),n._cleanup(!1)}};_e.prototype._cleanup=function(e){if(Pr("cleanup"),!!this.xhr){if(this.removeAllListeners(),OH.unloadDel(this.unloadRef),this.xhr.onreadystatechange=function(){},this.xhr.ontimeout&&(this.xhr.ontimeout=null),e)try{this.xhr.abort()}catch(r){}this.unloadRef=this.xhr=null}};_e.prototype.close=function(){Pr("close"),this._cleanup(!0)};_e.enabled=!!Xo;var EH=["Active"].concat("Object").join("X");!_e.enabled&&EH in window&&(Pr("overriding xmlhttprequest"),Xo=function(){try{return new window[EH]("Microsoft.XMLHTTP")}catch(e){return null}},_e.enabled=!!new Xo);var AH=!1;try{AH="withCredentials"in new Xo}catch(e){}_e.supportsCORS=AH;wH.exports=_e});var Qo=u((oVr,xH)=>{"use strict";var GCr=j(),Al=um();function sm(e,r,t,i){Al.call(this,e,r,t,i)}GCr(sm,Al);sm.enabled=Al.enabled&&Al.supportsCORS;xH.exports=sm});var Jn=u((uVr,TH)=>{"use strict";var WCr=j(),cm=um();function lm(e,r,t){cm.call(this,e,r,t,{noCredentials:!0})}WCr(lm,cm);lm.enabled=cm.enabled;TH.exports=lm});var Xn=u((sVr,_H)=>{"use strict";_H.exports={isOpera:function(){return window.navigator&&/opera/i.test(window.navigator.userAgent)},isKonqueror:function(){return window.navigator&&/konqueror/i.test(window.navigator.userAgent)},hasDomain:function(){if(!window.document)return!0;try{return!!window.document.domain}catch(e){return!1}}}});var PH=u((cVr,CH)=>{"use strict";var VCr=j(),RH=Ei(),zCr=Jo(),vm=Qo(),KCr=Jn(),YCr=Xn();function Qn(e){if(!KCr.enabled&&!vm.enabled)throw new Error("Transport created when disabled");RH.call(this,e,"/xhr_streaming",zCr,vm)}VCr(Qn,RH);Qn.enabled=function(e){return e.nullOrigin||YCr.isOpera()?!1:vm.enabled};Qn.transportName="xhr-streaming";Qn.roundTrips=2;Qn.needBody=!!window.document;CH.exports=Qn});var wl=u((lVr,$H)=>{"use strict";var NH=mr().EventEmitter,JCr=j(),MH=Ye(),XCr=Xn(),QCr=Fr(),Ft=function(){};function Ii(e,r,t){Ft(e,r);var i=this;NH.call(this),setTimeout(function(){i._start(e,r,t)},0)}JCr(Ii,NH);Ii.prototype._start=function(e,r,t){Ft("_start");var i=this,n=new window.XDomainRequest;r=QCr.addQuery(r,"t="+ +new Date),n.onerror=function(){Ft("onerror"),i._error()},n.ontimeout=function(){Ft("ontimeout"),i._error()},n.onprogress=function(){Ft("progress",n.responseText),i.emit("chunk",200,n.responseText)},n.onload=function(){Ft("load"),i.emit("finish",200,n.responseText),i._cleanup(!1)},this.xdr=n,this.unloadRef=MH
|
|
|
|
`),mu.content.appendChild(bu)),n.add(yu),a.delete(yu),window.ShadyCSS.prepareTemplateStyles(mu,yu),vb&&window.ShadyCSS.nativeShadow&&(bu=mu.content.querySelector("style"))!==null&&mu.content.appendChild(bu)}(ir,Pe),d.removeChild(p),(w=window.ShadyCSS)===null||w===void 0?void 0:w.nativeShadow){var cb=Pe.content.querySelector("style");cb!==null&&d.appendChild(cb.cloneNode(!0))}R.insertBefore(d,ur),this._$AA=B,this._$AB=ur}else g.call(this,y,m)},q._$AC=function(y){var m,E=(m=this.options)===null||m===void 0?void 0:m.scope,w=f.get(E);w===void 0&&f.set(E,w=new Map);var R=w.get(y.strings);return R===void 0&&w.set(y.strings,R=new o(y,this.options)),R}}}),(i=globalThis.litElementPolyfillSupport)!==null&&i!==void 0||(globalThis.litElementPolyfillSupport=function(o){var s=o.LitElement;if(window.ShadyCSS!==void 0&&(!window.ShadyCSS.nativeShadow||window.ShadyCSS.ApplyShim)){s._$AJ=!0;var c=s.prototype,l=c.createRenderRoot;c.createRenderRoot=function(){return this.renderOptions.scope=this.localName,l.call(this)}}})});(function(){"use strict";var e=!1,r=[],t=!1,i;function n(){window.WebComponents.ready=!0,document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))}function a(){window.customElements&&customElements.polyfillWrapFlushCallback&&customElements.polyfillWrapFlushCallback(function(m){i=m,t&&i()})}function o(){a(),s()}function s(){window.HTMLTemplateElement&&HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(window.document),e=!0,c().then(n)}function c(){t=!1;var m=r.map(function(E){return E instanceof Function?E():E});return r=[],Promise.all(m).then(function(){t=!0,i&&i()}).catch(function(E){console.error(E)})}window.WebComponents=window.WebComponents||{},window.WebComponents.ready=window.WebComponents.ready||!1,window.WebComponents.waitFor=window.WebComponents.waitFor||function(m){m&&(r.push(m),e&&c())},window.WebComponents._batchCustomElements=a;var l="webcomponents-loader.js",f=[];(!("attachShadow"in Element.prototype&&"getRootNode"in Element.prototype)||window.ShadyDOM&&window.ShadyDOM.force)&&f.push("sd"),(!window.customElements||window.customElements.forcePolyfill)&&f.push("ce");var v=function(){var m=document.createElement("template");if(!("content"in m)||!(m.content.cloneNode()instanceof DocumentFragment))return!0;var E=document.createElement("template");E.content.appendChild(document.createElement("div")),m.content.appendChild(E);var w=m.cloneNode(!0);return w.content.childNodes.length===0||w.content.firstChild.content.childNodes.length===0}();if((!window.Promise||!Array.from||!window.URL||!window.Symbol||v)&&(f=["sd-ce-pf"]),f.length){var d=function(){var m=function(R){return R},E={createHTML:m,createScript:m,createScriptURL:m},w=window.trustedTypes&&window.trustedTypes.createPolicy("webcomponents-loader",E);return w||E}(),p,q="bundles/webcomponents-"+f.join("-")+".js";if(window.WebComponents.root)p=window.WebComponents.root+q,window.trustedTypes&&window.trustedTypes.isScriptURL(window.WebComponents.root)&&(p=d.createScriptURL(p));else{var g=document.querySelector('script[src*="'+l+'"]');p=d.createScriptURL(g.src.replace(l,q))}var y=document.createElement("script");y.src=p,document.readyState==="loading"?(y.setAttribute("onload",d.createScript("window.WebComponents._batchCustomElements()")),document.write(d.createHTML(y.outerHTML)),document.addEventListener("DOMContentLoaded",s)):(y.addEventListener("load",function(){o()}),y.addEventListener("error",function(){throw new Error("Could not load polyfill bundle"+p)}),document.head.appendChild(y))}else document.readyState==="complete"?(e=!0,n()):(window.addEventListener("load",s),window.addEventListener("DOMContentLoaded",function(){window.removeEventListener("load",s),s()}))})();var Vn=class{constructor(){this.listeners={}}addEventListener(r,t){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push(t)}removeEventListener(r,t){if(!(r in this.listeners))return;let i=this.listeners[r];for(var n=0,a=i.length;n<a;n++)if(i[n]===t){i.splice(n,1);return}}dispatchEvent(r){if(!(r.type in this.listeners))return!0;let t=this.listeners[r.type].s
|
|
|
|
\f\r]`,du=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,M3=/-->/g,$3=/>/g,_i=RegExp(`>|${Hm}(?:([^\\s"'>=/]+)(${Hm}*=${Hm}*(?:[^
|
|
|
|
\f\r"'\`<>=]|("|')|))|$)`,"g"),L3=/'/g,D3=/"/g,B3=/^(?:script|style|textarea|title)$/i,H3=e=>(r,...t)=>({_$litType$:e,strings:r,values:t}),re=H3(1),e7r=H3(2),Ri=Symbol.for("lit-noChange"),or=Symbol.for("lit-nothing"),F3=new WeakMap,ia=aa.createTreeWalker(aa,129,null,!1),EPr=(e,r)=>{let t=e.length-1,i=[],n,a=r===2?"<svg>":"",o=du;for(let c=0;c<t;c++){let l=e[c],f,v,d=-1,p=0;for(;p<l.length&&(o.lastIndex=p,v=o.exec(l),v!==null);)p=o.lastIndex,o===du?v[1]==="!--"?o=M3:v[1]!==void 0?o=$3:v[2]!==void 0?(B3.test(v[2])&&(n=RegExp("</"+v[2],"g")),o=_i):v[3]!==void 0&&(o=_i):o===_i?v[0]===">"?(o=n!=null?n:du,d=-1):v[1]===void 0?d=-2:(d=o.lastIndex-v[2].length,f=v[1],o=v[3]===void 0?_i:v[3]==='"'?D3:L3):o===D3||o===L3?o=_i:o===M3||o===$3?o=du:(o=_i,n=void 0);let q=o===_i&&e[c+1].startsWith("/>")?" ":"";a+=o===du?l+bPr:d>=0?(i.push(f),l.slice(0,d)+Gm+l.slice(d)+jt+q):l+jt+(d===-2?(i.push(void 0),c):q)}let s=a+(e[t]||"<?>")+(r===2?"</svg>":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[N3!==void 0?N3.createHTML(s):s,i]},Ci=class{constructor({strings:r,_$litType$:t},i){let n;this.parts=[];let a=0,o=0,s=r.length-1,c=this.parts,[l,f]=EPr(r,t);if(this.el=Ci.createElement(l,i),ia.currentNode=this.el.content,t===2){let v=this.el.content,d=v.firstChild;d.remove(),v.append(...d.childNodes)}for(;(n=ia.nextNode())!==null&&c.length<s;){if(n.nodeType===1){if(n.hasAttributes()){let v=[];for(let d of n.getAttributeNames())if(d.endsWith(Gm)||d.startsWith(jt)){let p=f[o++];if(v.push(d),p!==void 0){let q=n.getAttribute(p.toLowerCase()+Gm).split(jt),g=/([.?@])?(.*)/.exec(p);c.push({type:1,index:a,name:g[2],strings:q,ctor:g[1]==="."?Vm:g[1]==="?"?zm:g[1]==="@"?Km:ua})}else c.push({type:6,index:a})}for(let d of v)n.removeAttribute(d)}if(B3.test(n.tagName)){let v=n.textContent.split(jt),d=v.length-1;if(d>0){n.textContent=na?na.emptyScript:"";for(let p=0;p<d;p++)n.append(v[p],hu()),ia.nextNode(),c.push({type:2,index:++a});n.append(v[d],hu())}}}else if(n.nodeType===8)if(n.data===U3)c.push({type:2,index:a});else{let v=-1;for(;(v=n.data.indexOf(jt,v+1))!==-1;)c.push({type:7,index:a}),v+=jt.length-1}a++}}static createElement(r,t){let i=aa.createElement("template");return i.innerHTML=r,i}};function oa(e,r,t=e,i){var n,a,o,s;if(r===Ri)return r;let c=i!==void 0?(n=t._$Co)===null||n===void 0?void 0:n[i]:t._$Cl,l=pu(r)?void 0:r._$litDirective$;return(c==null?void 0:c.constructor)!==l&&((a=c==null?void 0:c._$AO)===null||a===void 0||a.call(c,!1),l===void 0?c=void 0:(c=new l(e),c._$AT(e,t,i)),i!==void 0?((o=(s=t)._$Co)!==null&&o!==void 0?o:s._$Co=[])[i]=c:t._$Cl=c),c!==void 0&&(r=oa(e,c._$AS(e,r.values),c,i)),r}var Wm=class{constructor(r,t){this._$AV=[],this._$AN=void 0,this._$AD=r,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(r){var t;let{el:{content:i},parts:n}=this._$AD,a=((t=r==null?void 0:r.creationScope)!==null&&t!==void 0?t:aa).importNode(i,!0);ia.currentNode=a;let o=ia.nextNode(),s=0,c=0,l=n[0];for(;l!==void 0;){if(s===l.index){let f;l.type===2?f=new Pi(o,o.nextSibling,this,r):l.type===1?f=new l.ctor(o,l.name,l.strings,this,r):l.type===6&&(f=new Ym(o,this,r)),this._$AV.push(f),l=n[++c]}s!==(l==null?void 0:l.index)&&(o=ia.nextNode(),s++)}return a}v(r){let t=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(r,i,t),t+=i.strings.length-2):i._$AI(r[t])),t++}},Pi=class{constructor(r,t,i,n){var a;this.type=2,this._$AH=or,this._$AN=void 0,this._$AA=r,this._$AB=t,this._$AM=i,this.options=n,this._$Cp=(a=n==null?void 0:n.isConnected)===null||a===void 0||a}get _$AU(){var r,t;return(t=(r=this._$AM)===null||r===void 0?void 0:r._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let r=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(r==null?void 0:r.nodeType)===11&&(r=t.parentNode),r}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(r,t=this){r=oa(this,r,t),pu(r)?r===or||r==null||r===""?(this._$AH!==or&&this._$AR(),this._$AH=or):r!==this._$AH&&r!==Ri&&this._(r):r._$litType$!==void 0?this.g(r):r.nodeType!==void 0?this.$(r):SPr(r)?th
|
2023-04-18 17:57:16 +02:00
|
|
|
<div class="menu-item-icon">
|
2023-04-20 10:41:03 +02:00
|
|
|
${this.iconUrl?re`<img src="${this.iconUrl}" />`:""}
|
2023-04-18 17:57:16 +02:00
|
|
|
</div>
|
|
|
|
<div class="menu-item-label">
|
|
|
|
${this.label}
|
|
|
|
</div>
|
|
|
|
<div class="menu-item-panel">
|
|
|
|
<slot></slot>
|
|
|
|
</div>
|
2023-04-20 10:41:03 +02:00
|
|
|
`}_handleClick(){this.selected?this.unselect():this.select()}select(){this.selected=!0;let t=new CustomEvent(ab,{bubbles:!0,composed:!0,detail:{element:this}});this.dispatchEvent(t)}unselect(){this.selected=!1;let t=new CustomEvent(ob,{bubbles:!0,composed:!0,detail:{element:this}});this.dispatchEvent(t)}};Ut.styles=Ti`
|
2023-04-18 17:57:16 +02:00
|
|
|
:host {
|
|
|
|
display: inline-block;
|
|
|
|
height: 100%;
|
|
|
|
flex: 1;
|
|
|
|
cursor: pointer;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
border-bottom: 1px solid rgb(229,231,235);
|
|
|
|
border-top: 10px solid transparent;
|
|
|
|
transition: all 100ms ease-out;
|
|
|
|
background-color: #fff;
|
2023-03-03 16:33:24 +01:00
|
|
|
}
|
2023-04-18 17:57:16 +02:00
|
|
|
:host(:hover) {
|
|
|
|
background-color: rgb(249,250,251);
|
|
|
|
}
|
|
|
|
:host(.selected) {
|
|
|
|
border-top: 10px solid #03A9F4;
|
|
|
|
border-bottom: 1px solid transparent;
|
|
|
|
background-color: #fff;
|
|
|
|
}
|
|
|
|
:host(.unselected) {
|
|
|
|
background-color: hsl(210 20% 95% / 1);
|
|
|
|
}
|
|
|
|
.menu-item-icon {
|
|
|
|
height: 30px;
|
|
|
|
width: 30px;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
.menu-item-icon > img {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
.menu-item-panel {
|
|
|
|
display: none;
|
|
|
|
position: fixed;
|
|
|
|
top: 65px;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
z-index: 9999;
|
|
|
|
background-color: #fff;
|
|
|
|
box-shadow: 0px 4px 5px 0px hsl(0deg 0% 0% / 10%);
|
|
|
|
max-height: 75%;
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
:host(.selected) .menu-item-panel {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
.menu-item-label {
|
|
|
|
font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
|
|
|
|
color: black;
|
|
|
|
font-size: 14px;
|
|
|
|
margin: 3px 0;
|
|
|
|
}
|
2023-04-20 10:41:03 +02:00
|
|
|
`,fr([br({attribute:"icon-url",type:String})],Ut.prototype,"iconUrl",2),fr([br({attribute:"label",type:String})],Ut.prototype,"label",2),fr([V3()],Ut.prototype,"selected",2);var ub="/edge/api/v1",sb=(a=>(a[a.visitor=0]="visitor",a[a.user=1]="user",a[a.superuser=2]="superuser",a[a.admin=3]="admin",a[a.superadmin=4]="superadmin",a))(sb||{}),le=class extends ee{constructor(){super();this._apps=[];this.addEventListener(ab,this._handleMenuItemSelected.bind(this)),this.addEventListener(ob,this._handleMenuItemUnselected.bind(this)),this._fetchApps(),this._fetchProfile()}render(){let t=this._renderApps();return re`
|
|
|
|
<edge-menu-item name='menu' label="${this.appTitle||"App"}" icon-url='${this.appIconUrl||rb}'>
|
|
|
|
<edge-menu-sub-item name='home' label='Home' icon-url='${ib}' link-url='/'></edge-menu-sub-item>
|
2023-04-18 17:57:16 +02:00
|
|
|
<slot></slot>
|
|
|
|
</edge-menu-item>
|
|
|
|
${this._renderApps()}
|
|
|
|
${this._renderProfile()}
|
2023-04-20 10:41:03 +02:00
|
|
|
`}_fetchApps(){return fetch(`${ub}/apps`).then(t=>t.json()).then(t=>{var i;if(t.error)throw new Error(`Unexpected server error: ${t.error.code}`);return((i=t.data)==null?void 0:i.manifests)||[]}).then(t=>{let i=t.map(n=>{let a={method:"POST",body:JSON.stringify({}),headers:{"Content-Type":"application/json"}};return fetch(`${ub}/apps/${n.id}/url`,a).then(o=>o.json()).then(o=>{var s;if(o.error)throw new Error(`Unexpected server error: ${o.error.code}`);return n.url=(s=o.data)==null?void 0:s.url,n})});return Promise.all(i)}).then(t=>{this._apps=t}).catch(t=>console.error(t))}_fetchProfile(){return fetch(`${ub}/profile`).then(t=>t.json()).then(t=>{var i;if(t.error)switch(t.error.code){case"unauthorized":return null;default:throw new Error(`Unexpected server error: ${t.error.code}`)}return(i=t.data)==null?void 0:i.profile}).then(t=>{this._profile=t}).catch(t=>console.error(t))}_renderApps(){let t=this._apps.filter(i=>this._canAccess(i)).map(i=>{var a,o;let n=(i.url||"")+(((o=(a=i.metadata)==null?void 0:a.paths)==null?void 0:o.icon)||"")||gu;return re`
|
2023-04-18 17:57:16 +02:00
|
|
|
<edge-menu-sub-item
|
2023-04-20 10:41:03 +02:00
|
|
|
name='${i.id}'
|
|
|
|
label='${i.title}'
|
|
|
|
icon-url='${n}'
|
|
|
|
link-url='${i.url||"#"}'>
|
2023-04-18 17:57:16 +02:00
|
|
|
</edge-menu-sub-item>
|
2023-04-20 10:41:03 +02:00
|
|
|
`});return re`
|
|
|
|
<edge-menu-item name='apps' label='Apps' icon-url='${eb}'>
|
|
|
|
${t}
|
2023-04-18 17:57:16 +02:00
|
|
|
</edge-menu-item>
|
2023-04-20 10:41:03 +02:00
|
|
|
`}_canAccess(t){var a,o;let i=((a=this._profile)==null?void 0:a.edge_role)||"visitor",n=((o=t.metadata)==null?void 0:o.minimumRole)||"visitor";return sb[i]>=sb[n]}_renderProfile(){let t=this._profile;return re`
|
|
|
|
<edge-menu-item name='profile' label="${(t==null?void 0:t.preferred_username)||"Profile"}" icon-url='${Zm}'>
|
2023-09-20 16:55:49 +02:00
|
|
|
${t&&t.iss!="anon"?re`<edge-menu-sub-item name='login' label='Logout' icon-url='${nb}' link-url='/edge/auth/logout'></edge-menu-sub-item>`:re`<edge-menu-sub-item name='login' label='Login' icon-url='${tb}' link-url='/edge/auth/login'></edge-menu-sub-item>`}
|
2023-04-18 17:57:16 +02:00
|
|
|
</edge-menu-item>
|
2023-04-20 10:41:03 +02:00
|
|
|
`}_handleMenuItemSelected(t){let i=t.detail.element;i.classList.add("selected"),i.classList.remove("unselected");for(let n,a=0;n=this._menuItems[a];a++)n!==i&&(n.unselect(),n.classList.add("unselected"))}_handleMenuItemUnselected(t){if(t.detail.element.classList.remove("selected"),this.renderRoot.querySelectorAll("edge-menu-item.selected").length===0)for(let a,o=0;a=this._menuItems[o];o++)a.classList.remove("unselected")}};le.styles=Ti`
|
2023-04-18 17:57:16 +02:00
|
|
|
:host {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
height: 60px;
|
|
|
|
background-color: #fff;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
z-index: 9999;
|
|
|
|
}
|
|
|
|
|
|
|
|
:host([hidden]) {
|
|
|
|
display: none;
|
|
|
|
}
|
2023-04-20 10:41:03 +02:00
|
|
|
`,fr([br({attribute:"app-icon-url",type:String})],le.prototype,"appIconUrl",2),fr([br({attribute:"app-title",type:String})],le.prototype,"appTitle",2),fr([br({attribute:"hidden",type:Boolean})],le.prototype,"hidden",2),fr([br()],le.prototype,"_apps",2),fr([br()],le.prototype,"_profile",2),fr([z3("edge-menu-item")],le.prototype,"_menuItems",2);var nt=class extends ee{render(){return re`
|
|
|
|
<a href="${this.linkUrl?this.linkUrl:"#"}">
|
|
|
|
<img class="edge-menu-sub-item-icon" src="${this.iconUrl?this.iconUrl:gu}" />
|
2023-04-18 17:57:16 +02:00
|
|
|
<span class="edge-menu-sub-item-label">${this.label}</span>
|
|
|
|
</a>
|
2023-04-20 10:41:03 +02:00
|
|
|
`}};nt.styles=Ti`
|
2023-04-18 17:57:16 +02:00
|
|
|
:host {
|
|
|
|
display: block;
|
|
|
|
flex: 1;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: all 100ms ease-out;
|
|
|
|
border-bottom: 1px solid rgb(229,231,235);
|
|
|
|
padding: 5px 0 5px 7px;
|
|
|
|
border-left: 5px solid transparent;
|
|
|
|
}
|
|
|
|
:host([inactive]) {
|
|
|
|
cursor: initial;
|
|
|
|
}
|
|
|
|
:host(:hover) {
|
|
|
|
border-left: 5px solid #03A9F4;
|
|
|
|
background-color: rgb(28 169 247 / 10%);
|
|
|
|
}
|
|
|
|
a {
|
|
|
|
font-size: 20px;
|
|
|
|
font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
|
|
|
|
text-decoration: none;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: flex-start;
|
|
|
|
height: 40px;
|
|
|
|
color: black;
|
|
|
|
}
|
|
|
|
.edge-menu-sub-item-icon {
|
|
|
|
height: 25px;
|
|
|
|
width: 25px;
|
|
|
|
}
|
|
|
|
.edge-menu-sub-item-label {
|
|
|
|
margin-left: 5px;
|
|
|
|
}
|
2023-04-20 10:41:03 +02:00
|
|
|
`,fr([br({attribute:"label"})],nt.prototype,"label",2),fr([br({attribute:"icon-url"})],nt.prototype,"iconUrl",2),fr([br({attribute:"link-url"})],nt.prototype,"linkUrl",2),fr([br({attribute:"inactive",type:Boolean})],nt.prototype,"inactive",2);var Wl=class extends Vn{constructor(){super();this.debug=!1,this._handleWindowMessage=this._handleWindowMessage.bind(this),this._initObservers=this._initObservers.bind(this),window.addEventListener("load",this._initObservers),window.addEventListener("message",this._handleWindowMessage)}post(t,i=window.parent){i&&(this._log("sending crossframe message",t),i.postMessage(t,"*"))}_log(...t){this.debug&&console.log(...t)}_handleWindowMessage(t){let i=t.data;if(!i||!i.type||!i.data)return;let n=new CustomEvent(i.type,{cancelable:!0,detail:i.data});this.dispatchEvent(n)}_initObservers(){this._initResizeObserver(),this._initTitleMutationObserver()}_initTitleMutationObserver(){let t=new MutationObserver(n=>{let a=n[0].target.textContent;this.post({type:"title_changed",data:{title:a}})}),i=document.querySelector("title");i&&(this.post({type:"title_changed",data:{title:i.textContent}}),t.observe(i,{subtree:!0,characterData:!0,childList:!0}))}_initResizeObserver(){let t=new ResizeObserver(()=>{let n=document.documentElement.getBoundingClientRect(),a=n.height,o=n.width;this.post({type:"size_changed",data:{height:a,width:o}})});document.body&&t.observe(document.documentElement)}};var qu="edge-auto-padding",Vl=class{constructor(){this._items={},this._handleLoad=this._handleLoad.bind(this),window.addEventListener("load",this._handleLoad)}setItem(r,t,i){return this._items[r]={label:t,iconUrl:i!=null&&i.iconUrl?i==null?void 0:i.iconUrl:"",linkUrl:i!=null&&i.linkUrl?i==null?void 0:i.linkUrl:"#",order:i!=null&&i.order?i==null?void 0:i.order:0},this._render(),this}removeItem(r){return delete this._items[r],this._render(),this}setAppIconUrl(r){return this._appIconUrl=r,this._render(),this}setAppTitle(r){return this._appTitle=r,this._render(),this}show(){this._hidden&&(this._hidden=!1,this._previousBodyAutoPadding?document.body.setAttribute(qu,this._previousBodyAutoPadding):document.body.removeAttribute(qu),this._render())}hide(){this._hidden||(this._hidden=!0,this._previousBodyAutoPadding=document.body.getAttribute(qu),document.body.setAttribute(qu,"false"),this._render())}_handleLoad(){this._init()}_init(){this._initMenu(),this._initGlobalStyle()}_initMenu(){let r=document.createElement("edge-menu");document.body.appendChild(r),this._menu=r,this._render()}_initGlobalStyle(){let r=document.createElement("style");r.textContent=`
|
|
|
|
body:not([${qu}="false"]) {
|
2023-04-18 17:57:16 +02:00
|
|
|
padding-top: 60px;
|
|
|
|
}
|
2023-04-20 10:41:03 +02:00
|
|
|
`,document.head.appendChild(r)}_render(){if(!this._menu)return;this._hidden?this._menu.setAttribute("hidden","true"):this._menu.removeAttribute("hidden"),this._appIconUrl?this._menu.setAttribute("app-icon-url",this._appIconUrl):this._menu.removeAttribute("app-icon-url"),this._appTitle?this._menu.setAttribute("app-title",this._appTitle):this._menu.removeAttribute("app-title");let r=[],t=Object.keys(this._items).map(i=>at({name:i},this._items[i])).sort((i,n)=>i.order-n.order);for(let i,n=0;i=t[n];n++){let a=document.createElement("edge-menu-sub-item");a.label=i.label,a.iconUrl=i.iconUrl,a.linkUrl=i.linkUrl,r.push(a)}this._menu.replaceChildren(...r)}};customElements.define("edge-menu",le);customElements.define("edge-menu-item",Ut);customElements.define("edge-menu-sub-item",nt);var PPr=new jl,NPr=new Wl,MPr=new Vl;return eG($Pr);})();
|
2023-04-18 17:57:16 +02:00
|
|
|
/*! Bundled license information:
|
|
|
|
|
|
|
|
@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js:
|
|
|
|
(**
|
|
|
|
@license @nocompile
|
|
|
|
Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
|
|
|
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
|
|
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
|
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
|
|
Code distributed by Google as part of the polymer project is also
|
|
|
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
|
|
*)
|
|
|
|
|
|
|
|
lit/polyfill-support.js:
|
|
|
|
(**
|
|
|
|
* @license
|
|
|
|
* Copyright 2017 Google LLC
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*)
|
|
|
|
|
|
|
|
@webcomponents/webcomponentsjs/webcomponents-loader.js:
|
|
|
|
(**
|
|
|
|
* @license
|
|
|
|
* Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
|
|
|
|
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
|
|
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
|
|
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
|
|
* Code distributed by Google as part of the polymer project is also
|
|
|
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
|
|
*)
|
|
|
|
|
|
|
|
@lit/reactive-element/css-tag.js:
|
|
|
|
(**
|
|
|
|
* @license
|
|
|
|
* Copyright 2019 Google LLC
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*)
|
|
|
|
|
|
|
|
@lit/reactive-element/reactive-element.js:
|
|
|
|
(**
|
|
|
|
* @license
|
|
|
|
* Copyright 2017 Google LLC
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*)
|
|
|
|
|
|
|
|
lit-html/lit-html.js:
|
|
|
|
(**
|
|
|
|
* @license
|
|
|
|
* Copyright 2017 Google LLC
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*)
|
|
|
|
|
|
|
|
lit-element/lit-element.js:
|
|
|
|
(**
|
|
|
|
* @license
|
|
|
|
* Copyright 2017 Google LLC
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*)
|
|
|
|
|
|
|
|
lit-html/is-server.js:
|
|
|
|
(**
|
|
|
|
* @license
|
|
|
|
* Copyright 2022 Google LLC
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*)
|
|
|
|
|
|
|
|
@lit/reactive-element/decorators/custom-element.js:
|
|
|
|
(**
|
|
|
|
* @license
|
|
|
|
* Copyright 2017 Google LLC
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*)
|
|
|
|
|
|
|
|
@lit/reactive-element/decorators/property.js:
|
|
|
|
(**
|
|
|
|
* @license
|
|
|
|
* Copyright 2017 Google LLC
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*)
|
|
|
|
|
|
|
|
@lit/reactive-element/decorators/state.js:
|
|
|
|
(**
|
|
|
|
* @license
|
|
|
|
* Copyright 2017 Google LLC
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*)
|
|
|
|
|
|
|
|
@lit/reactive-element/decorators/base.js:
|
|
|
|
(**
|
|
|
|
* @license
|
|
|
|
* Copyright 2017 Google LLC
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*)
|
|
|
|
|
|
|
|
@lit/reactive-element/decorators/event-options.js:
|
|
|
|
(**
|
|
|
|
* @license
|
|
|
|
* Copyright 2017 Google LLC
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*)
|
|
|
|
|
|
|
|
@lit/reactive-element/decorators/query.js:
|
|
|
|
(**
|
|
|
|
* @license
|
|
|
|
* Copyright 2017 Google LLC
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*)
|
|
|
|
|
|
|
|
@lit/reactive-element/decorators/query-all.js:
|
|
|
|
(**
|
|
|
|
* @license
|
|
|
|
* Copyright 2017 Google LLC
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*)
|
|
|
|
|
|
|
|
@lit/reactive-element/decorators/query-async.js:
|
|
|
|
(**
|
|
|
|
* @license
|
|
|
|
* Copyright 2017 Google LLC
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*)
|
|
|
|
|
|
|
|
@lit/reactive-element/decorators/query-assigned-elements.js:
|
|
|
|
(**
|
|
|
|
* @license
|
|
|
|
* Copyright 2021 Google LLC
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*)
|
|
|
|
|
|
|
|
@lit/reactive-element/decorators/query-assigned-nodes.js:
|
|
|
|
(**
|
|
|
|
* @license
|
|
|
|
* Copyright 2017 Google LLC
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*)
|
|
|
|
*/
|
2023-03-03 16:33:24 +01:00
|
|
|
//# sourceMappingURL=client.js.map
|