@luigi-project/core-modular 0.0.9-dev.202606150123 → 0.0.9-dev.202606160125

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/luigi.js CHANGED
@@ -1,72 +1,72 @@
1
- class nE{constructor(t){this.$subscribers=new Set,this.$value=t}set(t){this.$value=t,this.$subscribers.forEach(n=>{n(t)})}update(t){this.set(t(this.$value))}subscribe(t){return this.$subscribers.add(t),t(this.$value),()=>{this.$subscribers.delete(t)}}}function Bh(r){return r.$value}function $a(r){return new nE(r)}var Ea=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},os={exports:{}};var rE=os.exports,ah;function iE(){return ah||(ah=1,(function(r,t){(function(){var n,s="4.18.1",a=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",f="Invalid `variable` option passed into `_.template`",h="Invalid `imports` option passed into `_.template`",g="__lodash_hash_undefined__",_=500,w="__lodash_placeholder__",m=1,E=2,C=4,R=1,I=2,N=1,F=2,J=4,de=8,_e=16,pe=32,oe=64,me=128,Re=256,ae=512,ut=30,ct="...",jt=800,W=16,Gn=1,mr=2,wt=3,Xe=1/0,St=9007199254740991,Jr=17976931348623157e292,O=NaN,Ae=4294967295,ne=Ae-1,ze=Ae>>>1,dn=[["ary",me],["bind",N],["bindKey",F],["curry",de],["curryRight",_e],["flip",ae],["partial",pe],["partialRight",oe],["rearg",Re]],Lt="[object Arguments]",yt="[object Array]",wr="[object AsyncFunction]",Tn="[object Boolean]",Sr="[object Date]",Nt="[object DOMException]",yr="[object Error]",Rn="[object Function]",Ru="[object GeneratorFunction]",Yt="[object Map]",Vi="[object Number]",yg="[object Null]",An="[object Object]",Au="[object Promise]",Eg="[object Proxy]",Wi="[object RegExp]",Jt="[object Set]",Bi="[object String]",Us="[object Symbol]",Cg="[object Undefined]",Gi="[object WeakMap]",bg="[object WeakSet]",Qi="[object ArrayBuffer]",Xr="[object DataView]",Za="[object Float32Array]",eo="[object Float64Array]",to="[object Int8Array]",no="[object Int16Array]",ro="[object Int32Array]",io="[object Uint8Array]",so="[object Uint8ClampedArray]",ao="[object Uint16Array]",oo="[object Uint32Array]",Tg=/\b__p \+= '';/g,Rg=/\b(__p \+=) '' \+/g,Ag=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Pu=/&(?:amp|lt|gt|quot|#39);/g,Iu=/[&<>"']/g,Pg=RegExp(Pu.source),Ig=RegExp(Iu.source),xg=/<%-([\s\S]+?)%>/g,Lg=/<%([\s\S]+?)%>/g,xu=/<%=([\s\S]+?)%>/g,Ng=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Og=/^\w*$/,Ug=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,lo=/[\\^$.*+?()[\]{}|]/g,Dg=RegExp(lo.source),uo=/^\s+/,Mg=/\s/,kg=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$g=/\{\n\/\* \[wrapped with (.+)\] \*/,Fg=/,? & /,Hg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Lu=/[()=,{}\[\]\/\s]/,Vg=/\\(\\)?/g,Wg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Nu=/\w*$/,Bg=/^[-+]0x[0-9a-f]+$/i,Gg=/^0b[01]+$/i,Qg=/^\[object .+?Constructor\]$/,qg=/^0o[0-7]+$/i,zg=/^(?:0|[1-9]\d*)$/,Kg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ds=/($^)/,jg=/['\n\r\u2028\u2029\\]/g,Ms="\\ud800-\\udfff",Yg="\\u0300-\\u036f",Jg="\\ufe20-\\ufe2f",Xg="\\u20d0-\\u20ff",Ou=Yg+Jg+Xg,Uu="\\u2700-\\u27bf",Du="a-z\\xdf-\\xf6\\xf8-\\xff",Zg="\\xac\\xb1\\xd7\\xf7",ep="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",tp="\\u2000-\\u206f",np=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Mu="A-Z\\xc0-\\xd6\\xd8-\\xde",ku="\\ufe0e\\ufe0f",$u=Zg+ep+tp+np,co="['’]",rp="["+Ms+"]",Fu="["+$u+"]",ks="["+Ou+"]",Hu="\\d+",ip="["+Uu+"]",Vu="["+Du+"]",Wu="[^"+Ms+$u+Hu+Uu+Du+Mu+"]",fo="\\ud83c[\\udffb-\\udfff]",sp="(?:"+ks+"|"+fo+")",Bu="[^"+Ms+"]",ho="(?:\\ud83c[\\udde6-\\uddff]){2}",go="[\\ud800-\\udbff][\\udc00-\\udfff]",Zr="["+Mu+"]",Gu="\\u200d",Qu="(?:"+Vu+"|"+Wu+")",ap="(?:"+Zr+"|"+Wu+")",qu="(?:"+co+"(?:d|ll|m|re|s|t|ve))?",zu="(?:"+co+"(?:D|LL|M|RE|S|T|VE))?",Ku=sp+"?",ju="["+ku+"]?",op="(?:"+Gu+"(?:"+[Bu,ho,go].join("|")+")"+ju+Ku+")*",lp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",up="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Yu=ju+Ku+op,cp="(?:"+[ip,ho,go].join("|")+")"+Yu,fp="(?:"+[Bu+ks+"?",ks,ho,go,rp].join("|")+")",hp=RegExp(co,"g"),dp=RegExp(ks,"g"),po=RegExp(fo+"(?="+fo+")|"+fp+Yu,"g"),gp=RegExp([Zr+"?"+Vu+"+"+qu+"(?="+[Fu,Zr,"$"].join("|")+")",ap+"+"+zu+"(?="+[Fu,Zr+Qu,"$"].join("|")+")",Zr+"?"+Qu+"+"+qu,Zr+"+"+zu,up,lp,Hu,cp].join("|"),"g"),pp=RegExp("["+Gu+Ms+Ou+ku+"]"),vp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_p=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],mp=-1,Pe={};Pe[Za]=Pe[eo]=Pe[to]=Pe[no]=Pe[ro]=Pe[io]=Pe[so]=Pe[ao]=Pe[oo]=!0,Pe[Lt]=Pe[yt]=Pe[Qi]=Pe[Tn]=Pe[Xr]=Pe[Sr]=Pe[yr]=Pe[Rn]=Pe[Yt]=Pe[Vi]=Pe[An]=Pe[Wi]=Pe[Jt]=Pe[Bi]=Pe[Gi]=!1;var Te={};Te[Lt]=Te[yt]=Te[Qi]=Te[Xr]=Te[Tn]=Te[Sr]=Te[Za]=Te[eo]=Te[to]=Te[no]=Te[ro]=Te[Yt]=Te[Vi]=Te[An]=Te[Wi]=Te[Jt]=Te[Bi]=Te[Us]=Te[io]=Te[so]=Te[ao]=Te[oo]=!0,Te[yr]=Te[Rn]=Te[Gi]=!1;var wp={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Sp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},yp={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Ep={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Cp=parseFloat,bp=parseInt,Ju=typeof Ea=="object"&&Ea&&Ea.Object===Object&&Ea,Tp=typeof self=="object"&&self&&self.Object===Object&&self,Ke=Ju||Tp||Function("return this")(),vo=t&&!t.nodeType&&t,Er=vo&&!0&&r&&!r.nodeType&&r,Xu=Er&&Er.exports===vo,_o=Xu&&Ju.process,Ot=(function(){try{var b=Er&&Er.require&&Er.require("util").types;return b||_o&&_o.binding&&_o.binding("util")}catch{}})(),Zu=Ot&&Ot.isArrayBuffer,ec=Ot&&Ot.isDate,tc=Ot&&Ot.isMap,nc=Ot&&Ot.isRegExp,rc=Ot&&Ot.isSet,ic=Ot&&Ot.isTypedArray;function Et(b,P,A){switch(A.length){case 0:return b.call(P);case 1:return b.call(P,A[0]);case 2:return b.call(P,A[0],A[1]);case 3:return b.call(P,A[0],A[1],A[2])}return b.apply(P,A)}function Rp(b,P,A,V){for(var Y=-1,ve=b==null?0:b.length;++Y<ve;){var Ve=b[Y];P(V,Ve,A(Ve),b)}return V}function Ct(b,P){for(var A=-1,V=b==null?0:b.length;++A<V&&P(b[A],A,b)!==!1;);return b}function Ap(b,P){for(var A=b==null?0:b.length;A--&&P(b[A],A,b)!==!1;);return b}function sc(b,P){for(var A=-1,V=b==null?0:b.length;++A<V;)if(!P(b[A],A,b))return!1;return!0}function Qn(b,P){for(var A=-1,V=b==null?0:b.length,Y=0,ve=[];++A<V;){var Ve=b[A];P(Ve,A,b)&&(ve[Y++]=Ve)}return ve}function $s(b,P){var A=b==null?0:b.length;return!!A&&ei(b,P,0)>-1}function mo(b,P,A){for(var V=-1,Y=b==null?0:b.length;++V<Y;)if(A(P,b[V]))return!0;return!1}function xe(b,P){for(var A=-1,V=b==null?0:b.length,Y=Array(V);++A<V;)Y[A]=P(b[A],A,b);return Y}function qn(b,P){for(var A=-1,V=P.length,Y=b.length;++A<V;)b[Y+A]=P[A];return b}function wo(b,P,A,V){var Y=-1,ve=b==null?0:b.length;for(V&&ve&&(A=b[++Y]);++Y<ve;)A=P(A,b[Y],Y,b);return A}function Pp(b,P,A,V){var Y=b==null?0:b.length;for(V&&Y&&(A=b[--Y]);Y--;)A=P(A,b[Y],Y,b);return A}function So(b,P){for(var A=-1,V=b==null?0:b.length;++A<V;)if(P(b[A],A,b))return!0;return!1}var Ip=yo("length");function xp(b){return b.split("")}function Lp(b){return b.match(Hg)||[]}function ac(b,P,A){var V;return A(b,function(Y,ve,Ve){if(P(Y,ve,Ve))return V=ve,!1}),V}function Fs(b,P,A,V){for(var Y=b.length,ve=A+(V?1:-1);V?ve--:++ve<Y;)if(P(b[ve],ve,b))return ve;return-1}function ei(b,P,A){return P===P?Bp(b,P,A):Fs(b,oc,A)}function Np(b,P,A,V){for(var Y=A-1,ve=b.length;++Y<ve;)if(V(b[Y],P))return Y;return-1}function oc(b){return b!==b}function lc(b,P){var A=b==null?0:b.length;return A?Co(b,P)/A:O}function yo(b){return function(P){return P==null?n:P[b]}}function Eo(b){return function(P){return b==null?n:b[P]}}function uc(b,P,A,V,Y){return Y(b,function(ve,Ve,Ce){A=V?(V=!1,ve):P(A,ve,Ve,Ce)}),A}function Op(b,P){var A=b.length;for(b.sort(P);A--;)b[A]=b[A].value;return b}function Co(b,P){for(var A,V=-1,Y=b.length;++V<Y;){var ve=P(b[V]);ve!==n&&(A=A===n?ve:A+ve)}return A}function bo(b,P){for(var A=-1,V=Array(b);++A<b;)V[A]=P(A);return V}function Up(b,P){return xe(P,function(A){return[A,b[A]]})}function cc(b){return b&&b.slice(0,gc(b)+1).replace(uo,"")}function bt(b){return function(P){return b(P)}}function To(b,P){return xe(P,function(A){return b[A]})}function qi(b,P){return b.has(P)}function fc(b,P){for(var A=-1,V=b.length;++A<V&&ei(P,b[A],0)>-1;);return A}function hc(b,P){for(var A=b.length;A--&&ei(P,b[A],0)>-1;);return A}function Dp(b,P){for(var A=b.length,V=0;A--;)b[A]===P&&++V;return V}var Mp=Eo(wp),kp=Eo(Sp);function $p(b){return"\\"+Ep[b]}function Fp(b,P){return b==null?n:b[P]}function ti(b){return pp.test(b)}function Hp(b){return vp.test(b)}function Vp(b){for(var P,A=[];!(P=b.next()).done;)A.push(P.value);return A}function Ro(b){var P=-1,A=Array(b.size);return b.forEach(function(V,Y){A[++P]=[Y,V]}),A}function dc(b,P){return function(A){return b(P(A))}}function zn(b,P){for(var A=-1,V=b.length,Y=0,ve=[];++A<V;){var Ve=b[A];(Ve===P||Ve===w)&&(b[A]=w,ve[Y++]=A)}return ve}function Hs(b){var P=-1,A=Array(b.size);return b.forEach(function(V){A[++P]=V}),A}function Wp(b){var P=-1,A=Array(b.size);return b.forEach(function(V){A[++P]=[V,V]}),A}function Bp(b,P,A){for(var V=A-1,Y=b.length;++V<Y;)if(b[V]===P)return V;return-1}function Gp(b,P,A){for(var V=A+1;V--;)if(b[V]===P)return V;return V}function ni(b){return ti(b)?qp(b):Ip(b)}function Xt(b){return ti(b)?zp(b):xp(b)}function gc(b){for(var P=b.length;P--&&Mg.test(b.charAt(P)););return P}var Qp=Eo(yp);function qp(b){for(var P=po.lastIndex=0;po.test(b);)++P;return P}function zp(b){return b.match(po)||[]}function Kp(b){return b.match(gp)||[]}var jp=(function b(P){P=P==null?Ke:ri.defaults(Ke.Object(),P,ri.pick(Ke,_p));var A=P.Array,V=P.Date,Y=P.Error,ve=P.Function,Ve=P.Math,Ce=P.Object,Ao=P.RegExp,Yp=P.String,Ut=P.TypeError,Vs=A.prototype,Jp=ve.prototype,ii=Ce.prototype,Ws=P["__core-js_shared__"],Bs=Jp.toString,we=ii.hasOwnProperty,Xp=0,pc=(function(){var e=/[^.]+$/.exec(Ws&&Ws.keys&&Ws.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),Gs=ii.toString,Zp=Bs.call(Ce),ev=Ke._,tv=Ao("^"+Bs.call(we).replace(lo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qs=Xu?P.Buffer:n,Kn=P.Symbol,qs=P.Uint8Array,vc=Qs?Qs.allocUnsafe:n,zs=dc(Ce.getPrototypeOf,Ce),_c=Ce.create,mc=ii.propertyIsEnumerable,Ks=Vs.splice,wc=Kn?Kn.isConcatSpreadable:n,zi=Kn?Kn.iterator:n,Cr=Kn?Kn.toStringTag:n,js=(function(){try{var e=Pr(Ce,"defineProperty");return e({},"",{}),e}catch{}})(),nv=P.clearTimeout!==Ke.clearTimeout&&P.clearTimeout,rv=V&&V.now!==Ke.Date.now&&V.now,iv=P.setTimeout!==Ke.setTimeout&&P.setTimeout,Ys=Ve.ceil,Js=Ve.floor,Po=Ce.getOwnPropertySymbols,sv=Qs?Qs.isBuffer:n,Sc=P.isFinite,av=Vs.join,ov=dc(Ce.keys,Ce),We=Ve.max,Ze=Ve.min,lv=V.now,uv=P.parseInt,yc=Ve.random,cv=Vs.reverse,Io=Pr(P,"DataView"),Ki=Pr(P,"Map"),xo=Pr(P,"Promise"),si=Pr(P,"Set"),ji=Pr(P,"WeakMap"),Yi=Pr(Ce,"create"),Xs=ji&&new ji,ai={},fv=Ir(Io),hv=Ir(Ki),dv=Ir(xo),gv=Ir(si),pv=Ir(ji),Zs=Kn?Kn.prototype:n,Ji=Zs?Zs.valueOf:n,Ec=Zs?Zs.toString:n;function p(e){if(Me(e)&&!X(e)&&!(e instanceof ce)){if(e instanceof Dt)return e;if(we.call(e,"__wrapped__"))return bf(e)}return new Dt(e)}var oi=(function(){function e(){}return function(i){if(!Ne(i))return{};if(_c)return _c(i);e.prototype=i;var o=new e;return e.prototype=n,o}})();function ea(){}function Dt(e,i){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=n}p.templateSettings={escape:xg,evaluate:Lg,interpolate:xu,variable:"",imports:{_:p}},p.prototype=ea.prototype,p.prototype.constructor=p,Dt.prototype=oi(ea.prototype),Dt.prototype.constructor=Dt;function ce(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ae,this.__views__=[]}function vv(){var e=new ce(this.__wrapped__);return e.__actions__=ft(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ft(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ft(this.__views__),e}function _v(){if(this.__filtered__){var e=new ce(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function mv(){var e=this.__wrapped__.value(),i=this.__dir__,o=X(e),c=i<0,d=o?e.length:0,v=x_(0,d,this.__views__),S=v.start,y=v.end,T=y-S,x=c?y:S-1,L=this.__iteratees__,U=L.length,$=0,B=Ze(T,this.__takeCount__);if(!o||!c&&d==T&&B==T)return qc(e,this.__actions__);var K=[];e:for(;T--&&$<B;){x+=i;for(var ie=-1,Q=e[x];++ie<U;){var le=L[ie],he=le.iteratee,At=le.type,at=he(Q);if(At==mr)Q=at;else if(!at){if(At==Gn)continue e;break e}}K[$++]=Q}return K}ce.prototype=oi(ea.prototype),ce.prototype.constructor=ce;function br(e){var i=-1,o=e==null?0:e.length;for(this.clear();++i<o;){var c=e[i];this.set(c[0],c[1])}}function wv(){this.__data__=Yi?Yi(null):{},this.size=0}function Sv(e){var i=this.has(e)&&delete this.__data__[e];return this.size-=i?1:0,i}function yv(e){var i=this.__data__;if(Yi){var o=i[e];return o===g?n:o}return we.call(i,e)?i[e]:n}function Ev(e){var i=this.__data__;return Yi?i[e]!==n:we.call(i,e)}function Cv(e,i){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Yi&&i===n?g:i,this}br.prototype.clear=wv,br.prototype.delete=Sv,br.prototype.get=yv,br.prototype.has=Ev,br.prototype.set=Cv;function Pn(e){var i=-1,o=e==null?0:e.length;for(this.clear();++i<o;){var c=e[i];this.set(c[0],c[1])}}function bv(){this.__data__=[],this.size=0}function Tv(e){var i=this.__data__,o=ta(i,e);if(o<0)return!1;var c=i.length-1;return o==c?i.pop():Ks.call(i,o,1),--this.size,!0}function Rv(e){var i=this.__data__,o=ta(i,e);return o<0?n:i[o][1]}function Av(e){return ta(this.__data__,e)>-1}function Pv(e,i){var o=this.__data__,c=ta(o,e);return c<0?(++this.size,o.push([e,i])):o[c][1]=i,this}Pn.prototype.clear=bv,Pn.prototype.delete=Tv,Pn.prototype.get=Rv,Pn.prototype.has=Av,Pn.prototype.set=Pv;function In(e){var i=-1,o=e==null?0:e.length;for(this.clear();++i<o;){var c=e[i];this.set(c[0],c[1])}}function Iv(){this.size=0,this.__data__={hash:new br,map:new(Ki||Pn),string:new br}}function xv(e){var i=da(this,e).delete(e);return this.size-=i?1:0,i}function Lv(e){return da(this,e).get(e)}function Nv(e){return da(this,e).has(e)}function Ov(e,i){var o=da(this,e),c=o.size;return o.set(e,i),this.size+=o.size==c?0:1,this}In.prototype.clear=Iv,In.prototype.delete=xv,In.prototype.get=Lv,In.prototype.has=Nv,In.prototype.set=Ov;function Tr(e){var i=-1,o=e==null?0:e.length;for(this.__data__=new In;++i<o;)this.add(e[i])}function Uv(e){return this.__data__.set(e,g),this}function Dv(e){return this.__data__.has(e)}Tr.prototype.add=Tr.prototype.push=Uv,Tr.prototype.has=Dv;function Zt(e){var i=this.__data__=new Pn(e);this.size=i.size}function Mv(){this.__data__=new Pn,this.size=0}function kv(e){var i=this.__data__,o=i.delete(e);return this.size=i.size,o}function $v(e){return this.__data__.get(e)}function Fv(e){return this.__data__.has(e)}function Hv(e,i){var o=this.__data__;if(o instanceof Pn){var c=o.__data__;if(!Ki||c.length<a-1)return c.push([e,i]),this.size=++o.size,this;o=this.__data__=new In(c)}return o.set(e,i),this.size=o.size,this}Zt.prototype.clear=Mv,Zt.prototype.delete=kv,Zt.prototype.get=$v,Zt.prototype.has=Fv,Zt.prototype.set=Hv;function Cc(e,i){var o=X(e),c=!o&&xr(e),d=!o&&!c&&Zn(e),v=!o&&!c&&!d&&fi(e),S=o||c||d||v,y=S?bo(e.length,Yp):[],T=y.length;for(var x in e)(i||we.call(e,x))&&!(S&&(x=="length"||d&&(x=="offset"||x=="parent")||v&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||Nn(x,T)))&&y.push(x);return y}function bc(e){var i=e.length;return i?e[Vo(0,i-1)]:n}function Vv(e,i){return ga(ft(e),Rr(i,0,e.length))}function Wv(e){return ga(ft(e))}function Lo(e,i,o){(o!==n&&!tn(e[i],o)||o===n&&!(i in e))&&gn(e,i,o)}function Xi(e,i,o){var c=e[i];(!(we.call(e,i)&&tn(c,o))||o===n&&!(i in e))&&gn(e,i,o)}function ta(e,i){for(var o=e.length;o--;)if(tn(e[o][0],i))return o;return-1}function Bv(e,i,o,c){return jn(e,function(d,v,S){i(c,d,o(d),S)}),c}function Tc(e,i){return e&&vn(i,Be(i),e)}function Gv(e,i){return e&&vn(i,dt(i),e)}function gn(e,i,o){i=="__proto__"&&js?js(e,i,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[i]=o}function No(e,i){for(var o=-1,c=i.length,d=A(c),v=e==null;++o<c;)d[o]=v?n:dl(e,i[o]);return d}function Rr(e,i,o){return e===e&&(o!==n&&(e=e<=o?e:o),i!==n&&(e=e>=i?e:i)),e}function Mt(e,i,o,c,d,v){var S,y=i&m,T=i&E,x=i&C;if(o&&(S=d?o(e,c,d,v):o(e)),S!==n)return S;if(!Ne(e))return e;var L=X(e);if(L){if(S=N_(e),!y)return ft(e,S)}else{var U=et(e),$=U==Rn||U==Ru;if(Zn(e))return jc(e,y);if(U==An||U==Lt||$&&!d){if(S=T||$?{}:pf(e),!y)return T?y_(e,Gv(S,e)):S_(e,Tc(S,e))}else{if(!Te[U])return d?e:{};S=O_(e,U,y)}}v||(v=new Zt);var B=v.get(e);if(B)return B;v.set(e,S),Gf(e)?e.forEach(function(Q){S.add(Mt(Q,i,o,Q,e,v))}):Wf(e)&&e.forEach(function(Q,le){S.set(le,Mt(Q,i,o,le,e,v))});var K=x?T?Xo:Jo:T?dt:Be,ie=L?n:K(e);return Ct(ie||e,function(Q,le){ie&&(le=Q,Q=e[le]),Xi(S,le,Mt(Q,i,o,le,e,v))}),S}function Qv(e){var i=Be(e);return function(o){return Rc(o,e,i)}}function Rc(e,i,o){var c=o.length;if(e==null)return!c;for(e=Ce(e);c--;){var d=o[c],v=i[d],S=e[d];if(S===n&&!(d in e)||!v(S))return!1}return!0}function Ac(e,i,o){if(typeof e!="function")throw new Ut(u);return ss(function(){e.apply(n,o)},i)}function Zi(e,i,o,c){var d=-1,v=$s,S=!0,y=e.length,T=[],x=i.length;if(!y)return T;o&&(i=xe(i,bt(o))),c?(v=mo,S=!1):i.length>=a&&(v=qi,S=!1,i=new Tr(i));e:for(;++d<y;){var L=e[d],U=o==null?L:o(L);if(L=c||L!==0?L:0,S&&U===U){for(var $=x;$--;)if(i[$]===U)continue e;T.push(L)}else v(i,U,c)||T.push(L)}return T}var jn=ef(pn),Pc=ef(Uo,!0);function qv(e,i){var o=!0;return jn(e,function(c,d,v){return o=!!i(c,d,v),o}),o}function na(e,i,o){for(var c=-1,d=e.length;++c<d;){var v=e[c],S=i(v);if(S!=null&&(y===n?S===S&&!Rt(S):o(S,y)))var y=S,T=v}return T}function zv(e,i,o,c){var d=e.length;for(o=re(o),o<0&&(o=-o>d?0:d+o),c=c===n||c>d?d:re(c),c<0&&(c+=d),c=o>c?0:qf(c);o<c;)e[o++]=i;return e}function Ic(e,i){var o=[];return jn(e,function(c,d,v){i(c,d,v)&&o.push(c)}),o}function je(e,i,o,c,d){var v=-1,S=e.length;for(o||(o=D_),d||(d=[]);++v<S;){var y=e[v];i>0&&o(y)?i>1?je(y,i-1,o,c,d):qn(d,y):c||(d[d.length]=y)}return d}var Oo=tf(),xc=tf(!0);function pn(e,i){return e&&Oo(e,i,Be)}function Uo(e,i){return e&&xc(e,i,Be)}function ra(e,i){return Qn(i,function(o){return On(e[o])})}function Ar(e,i){i=Jn(i,e);for(var o=0,c=i.length;e!=null&&o<c;)e=e[en(i[o++])];return o&&o==c?e:n}function Lc(e,i,o){var c=i(e);return X(e)?c:qn(c,o(e))}function it(e){return e==null?e===n?Cg:yg:Cr&&Cr in Ce(e)?I_(e):W_(e)}function Do(e,i){return e>i}function Kv(e,i){return e!=null&&we.call(e,i)}function jv(e,i){return e!=null&&i in Ce(e)}function Yv(e,i,o){return e>=Ze(i,o)&&e<We(i,o)}function Mo(e,i,o){for(var c=o?mo:$s,d=e[0].length,v=e.length,S=v,y=A(v),T=1/0,x=[];S--;){var L=e[S];S&&i&&(L=xe(L,bt(i))),T=Ze(L.length,T),y[S]=!o&&(i||d>=120&&L.length>=120)?new Tr(S&&L):n}L=e[0];var U=-1,$=y[0];e:for(;++U<d&&x.length<T;){var B=L[U],K=i?i(B):B;if(B=o||B!==0?B:0,!($?qi($,K):c(x,K,o))){for(S=v;--S;){var ie=y[S];if(!(ie?qi(ie,K):c(e[S],K,o)))continue e}$&&$.push(K),x.push(B)}}return x}function Jv(e,i,o,c){return pn(e,function(d,v,S){i(c,o(d),v,S)}),c}function es(e,i,o){i=Jn(i,e),e=wf(e,i);var c=e==null?e:e[en($t(i))];return c==null?n:Et(c,e,o)}function Nc(e){return Me(e)&&it(e)==Lt}function Xv(e){return Me(e)&&it(e)==Qi}function Zv(e){return Me(e)&&it(e)==Sr}function ts(e,i,o,c,d){return e===i?!0:e==null||i==null||!Me(e)&&!Me(i)?e!==e&&i!==i:e_(e,i,o,c,ts,d)}function e_(e,i,o,c,d,v){var S=X(e),y=X(i),T=S?yt:et(e),x=y?yt:et(i);T=T==Lt?An:T,x=x==Lt?An:x;var L=T==An,U=x==An,$=T==x;if($&&Zn(e)){if(!Zn(i))return!1;S=!0,L=!1}if($&&!L)return v||(v=new Zt),S||fi(e)?hf(e,i,o,c,d,v):A_(e,i,T,o,c,d,v);if(!(o&R)){var B=L&&we.call(e,"__wrapped__"),K=U&&we.call(i,"__wrapped__");if(B||K){var ie=B?e.value():e,Q=K?i.value():i;return v||(v=new Zt),d(ie,Q,o,c,v)}}return $?(v||(v=new Zt),P_(e,i,o,c,d,v)):!1}function t_(e){return Me(e)&&et(e)==Yt}function ko(e,i,o,c){var d=o.length,v=d,S=!c;if(e==null)return!v;for(e=Ce(e);d--;){var y=o[d];if(S&&y[2]?y[1]!==e[y[0]]:!(y[0]in e))return!1}for(;++d<v;){y=o[d];var T=y[0],x=e[T],L=y[1];if(S&&y[2]){if(x===n&&!(T in e))return!1}else{var U=new Zt;if(c)var $=c(x,L,T,e,i,U);if(!($===n?ts(L,x,R|I,c,U):$))return!1}}return!0}function Oc(e){if(!Ne(e)||k_(e))return!1;var i=On(e)?tv:Qg;return i.test(Ir(e))}function n_(e){return Me(e)&&it(e)==Wi}function r_(e){return Me(e)&&et(e)==Jt}function i_(e){return Me(e)&&Sa(e.length)&&!!Pe[it(e)]}function Uc(e){return typeof e=="function"?e:e==null?gt:typeof e=="object"?X(e)?kc(e[0],e[1]):Mc(e):ih(e)}function $o(e){if(!is(e))return ov(e);var i=[];for(var o in Ce(e))we.call(e,o)&&o!="constructor"&&i.push(o);return i}function s_(e){if(!Ne(e))return V_(e);var i=is(e),o=[];for(var c in e)c=="constructor"&&(i||!we.call(e,c))||o.push(c);return o}function Fo(e,i){return e<i}function Dc(e,i){var o=-1,c=ht(e)?A(e.length):[];return jn(e,function(d,v,S){c[++o]=i(d,v,S)}),c}function Mc(e){var i=el(e);return i.length==1&&i[0][2]?_f(i[0][0],i[0][1]):function(o){return o===e||ko(o,e,i)}}function kc(e,i){return nl(e)&&vf(i)?_f(en(e),i):function(o){var c=dl(o,e);return c===n&&c===i?gl(o,e):ts(i,c,R|I)}}function ia(e,i,o,c,d){e!==i&&Oo(i,function(v,S){if(d||(d=new Zt),Ne(v))a_(e,i,S,o,ia,c,d);else{var y=c?c(il(e,S),v,S+"",e,i,d):n;y===n&&(y=v),Lo(e,S,y)}},dt)}function a_(e,i,o,c,d,v,S){var y=il(e,o),T=il(i,o),x=S.get(T);if(x){Lo(e,o,x);return}var L=v?v(y,T,o+"",e,i,S):n,U=L===n;if(U){var $=X(T),B=!$&&Zn(T),K=!$&&!B&&fi(T);L=T,$||B||K?X(y)?L=y:ke(y)?L=ft(y):B?(U=!1,L=jc(T,!0)):K?(U=!1,L=Yc(T,!0)):L=[]:as(T)||xr(T)?(L=y,xr(y)?L=zf(y):(!Ne(y)||On(y))&&(L=pf(T))):U=!1}U&&(S.set(T,L),d(L,T,c,v,S),S.delete(T)),Lo(e,o,L)}function $c(e,i){var o=e.length;if(o)return i+=i<0?o:0,Nn(i,o)?e[i]:n}function Fc(e,i,o){i.length?i=xe(i,function(v){return X(v)?function(S){return Ar(S,v.length===1?v[0]:v)}:v}):i=[gt];var c=-1;i=xe(i,bt(z()));var d=Dc(e,function(v,S,y){var T=xe(i,function(x){return x(v)});return{criteria:T,index:++c,value:v}});return Op(d,function(v,S){return w_(v,S,o)})}function o_(e,i){return Hc(e,i,function(o,c){return gl(e,c)})}function Hc(e,i,o){for(var c=-1,d=i.length,v={};++c<d;){var S=i[c],y=Ar(e,S);o(y,S)&&ns(v,Jn(S,e),y)}return v}function l_(e){return function(i){return Ar(i,e)}}function Ho(e,i,o,c){var d=c?Np:ei,v=-1,S=i.length,y=e;for(e===i&&(i=ft(i)),o&&(y=xe(e,bt(o)));++v<S;)for(var T=0,x=i[v],L=o?o(x):x;(T=d(y,L,T,c))>-1;)y!==e&&Ks.call(y,T,1),Ks.call(e,T,1);return e}function Vc(e,i){for(var o=e?i.length:0,c=o-1;o--;){var d=i[o];if(o==c||d!==v){var v=d;Nn(d)?Ks.call(e,d,1):Go(e,d)}}return e}function Vo(e,i){return e+Js(yc()*(i-e+1))}function u_(e,i,o,c){for(var d=-1,v=We(Ys((i-e)/(o||1)),0),S=A(v);v--;)S[c?v:++d]=e,e+=o;return S}function Wo(e,i){var o="";if(!e||i<1||i>St)return o;do i%2&&(o+=e),i=Js(i/2),i&&(e+=e);while(i);return o}function se(e,i){return sl(mf(e,i,gt),e+"")}function c_(e){return bc(hi(e))}function f_(e,i){var o=hi(e);return ga(o,Rr(i,0,o.length))}function ns(e,i,o,c){if(!Ne(e))return e;i=Jn(i,e);for(var d=-1,v=i.length,S=v-1,y=e;y!=null&&++d<v;){var T=en(i[d]),x=o;if(T==="__proto__"||T==="constructor"||T==="prototype")return e;if(d!=S){var L=y[T];x=c?c(L,T,y):n,x===n&&(x=Ne(L)?L:Nn(i[d+1])?[]:{})}Xi(y,T,x),y=y[T]}return e}var Wc=Xs?function(e,i){return Xs.set(e,i),e}:gt,h_=js?function(e,i){return js(e,"toString",{configurable:!0,enumerable:!1,value:vl(i),writable:!0})}:gt;function d_(e){return ga(hi(e))}function kt(e,i,o){var c=-1,d=e.length;i<0&&(i=-i>d?0:d+i),o=o>d?d:o,o<0&&(o+=d),d=i>o?0:o-i>>>0,i>>>=0;for(var v=A(d);++c<d;)v[c]=e[c+i];return v}function g_(e,i){var o;return jn(e,function(c,d,v){return o=i(c,d,v),!o}),!!o}function sa(e,i,o){var c=0,d=e==null?c:e.length;if(typeof i=="number"&&i===i&&d<=ze){for(;c<d;){var v=c+d>>>1,S=e[v];S!==null&&!Rt(S)&&(o?S<=i:S<i)?c=v+1:d=v}return d}return Bo(e,i,gt,o)}function Bo(e,i,o,c){var d=0,v=e==null?0:e.length;if(v===0)return 0;i=o(i);for(var S=i!==i,y=i===null,T=Rt(i),x=i===n;d<v;){var L=Js((d+v)/2),U=o(e[L]),$=U!==n,B=U===null,K=U===U,ie=Rt(U);if(S)var Q=c||K;else x?Q=K&&(c||$):y?Q=K&&$&&(c||!B):T?Q=K&&$&&!B&&(c||!ie):B||ie?Q=!1:Q=c?U<=i:U<i;Q?d=L+1:v=L}return Ze(v,ne)}function Bc(e,i){for(var o=-1,c=e.length,d=0,v=[];++o<c;){var S=e[o],y=i?i(S):S;if(!o||!tn(y,T)){var T=y;v[d++]=S===0?0:S}}return v}function Gc(e){return typeof e=="number"?e:Rt(e)?O:+e}function Tt(e){if(typeof e=="string")return e;if(X(e))return xe(e,Tt)+"";if(Rt(e))return Ec?Ec.call(e):"";var i=e+"";return i=="0"&&1/e==-Xe?"-0":i}function Yn(e,i,o){var c=-1,d=$s,v=e.length,S=!0,y=[],T=y;if(o)S=!1,d=mo;else if(v>=a){var x=i?null:T_(e);if(x)return Hs(x);S=!1,d=qi,T=new Tr}else T=i?[]:y;e:for(;++c<v;){var L=e[c],U=i?i(L):L;if(L=o||L!==0?L:0,S&&U===U){for(var $=T.length;$--;)if(T[$]===U)continue e;i&&T.push(U),y.push(L)}else d(T,U,o)||(T!==y&&T.push(U),y.push(L))}return y}function Go(e,i){i=Jn(i,e);var o=-1,c=i.length;if(!c)return!0;for(;++o<c;){var d=en(i[o]);if(d==="__proto__"&&!we.call(e,"__proto__")||(d==="constructor"||d==="prototype")&&o<c-1)return!1}var v=wf(e,i);return v==null||delete v[en($t(i))]}function Qc(e,i,o,c){return ns(e,i,o(Ar(e,i)),c)}function aa(e,i,o,c){for(var d=e.length,v=c?d:-1;(c?v--:++v<d)&&i(e[v],v,e););return o?kt(e,c?0:v,c?v+1:d):kt(e,c?v+1:0,c?d:v)}function qc(e,i){var o=e;return o instanceof ce&&(o=o.value()),wo(i,function(c,d){return d.func.apply(d.thisArg,qn([c],d.args))},o)}function Qo(e,i,o){var c=e.length;if(c<2)return c?Yn(e[0]):[];for(var d=-1,v=A(c);++d<c;)for(var S=e[d],y=-1;++y<c;)y!=d&&(v[d]=Zi(v[d]||S,e[y],i,o));return Yn(je(v,1),i,o)}function zc(e,i,o){for(var c=-1,d=e.length,v=i.length,S={};++c<d;){var y=c<v?i[c]:n;o(S,e[c],y)}return S}function qo(e){return ke(e)?e:[]}function zo(e){return typeof e=="function"?e:gt}function Jn(e,i){return X(e)?e:nl(e,i)?[e]:Cf(Se(e))}var p_=se;function Xn(e,i,o){var c=e.length;return o=o===n?c:o,!i&&o>=c?e:kt(e,i,o)}var Kc=nv||function(e){return Ke.clearTimeout(e)};function jc(e,i){if(i)return e.slice();var o=e.length,c=vc?vc(o):new e.constructor(o);return e.copy(c),c}function Ko(e){var i=new e.constructor(e.byteLength);return new qs(i).set(new qs(e)),i}function v_(e,i){var o=i?Ko(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function __(e){var i=new e.constructor(e.source,Nu.exec(e));return i.lastIndex=e.lastIndex,i}function m_(e){return Ji?Ce(Ji.call(e)):{}}function Yc(e,i){var o=i?Ko(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function Jc(e,i){if(e!==i){var o=e!==n,c=e===null,d=e===e,v=Rt(e),S=i!==n,y=i===null,T=i===i,x=Rt(i);if(!y&&!x&&!v&&e>i||v&&S&&T&&!y&&!x||c&&S&&T||!o&&T||!d)return 1;if(!c&&!v&&!x&&e<i||x&&o&&d&&!c&&!v||y&&o&&d||!S&&d||!T)return-1}return 0}function w_(e,i,o){for(var c=-1,d=e.criteria,v=i.criteria,S=d.length,y=o.length;++c<S;){var T=Jc(d[c],v[c]);if(T){if(c>=y)return T;var x=o[c];return T*(x=="desc"?-1:1)}}return e.index-i.index}function Xc(e,i,o,c){for(var d=-1,v=e.length,S=o.length,y=-1,T=i.length,x=We(v-S,0),L=A(T+x),U=!c;++y<T;)L[y]=i[y];for(;++d<S;)(U||d<v)&&(L[o[d]]=e[d]);for(;x--;)L[y++]=e[d++];return L}function Zc(e,i,o,c){for(var d=-1,v=e.length,S=-1,y=o.length,T=-1,x=i.length,L=We(v-y,0),U=A(L+x),$=!c;++d<L;)U[d]=e[d];for(var B=d;++T<x;)U[B+T]=i[T];for(;++S<y;)($||d<v)&&(U[B+o[S]]=e[d++]);return U}function ft(e,i){var o=-1,c=e.length;for(i||(i=A(c));++o<c;)i[o]=e[o];return i}function vn(e,i,o,c){var d=!o;o||(o={});for(var v=-1,S=i.length;++v<S;){var y=i[v],T=c?c(o[y],e[y],y,o,e):n;T===n&&(T=e[y]),d?gn(o,y,T):Xi(o,y,T)}return o}function S_(e,i){return vn(e,tl(e),i)}function y_(e,i){return vn(e,df(e),i)}function oa(e,i){return function(o,c){var d=X(o)?Rp:Bv,v=i?i():{};return d(o,e,z(c,2),v)}}function li(e){return se(function(i,o){var c=-1,d=o.length,v=d>1?o[d-1]:n,S=d>2?o[2]:n;for(v=e.length>3&&typeof v=="function"?(d--,v):n,S&&st(o[0],o[1],S)&&(v=d<3?n:v,d=1),i=Ce(i);++c<d;){var y=o[c];y&&e(i,y,c,v)}return i})}function ef(e,i){return function(o,c){if(o==null)return o;if(!ht(o))return e(o,c);for(var d=o.length,v=i?d:-1,S=Ce(o);(i?v--:++v<d)&&c(S[v],v,S)!==!1;);return o}}function tf(e){return function(i,o,c){for(var d=-1,v=Ce(i),S=c(i),y=S.length;y--;){var T=S[e?y:++d];if(o(v[T],T,v)===!1)break}return i}}function E_(e,i,o){var c=i&N,d=rs(e);function v(){var S=this&&this!==Ke&&this instanceof v?d:e;return S.apply(c?o:this,arguments)}return v}function nf(e){return function(i){i=Se(i);var o=ti(i)?Xt(i):n,c=o?o[0]:i.charAt(0),d=o?Xn(o,1).join(""):i.slice(1);return c[e]()+d}}function ui(e){return function(i){return wo(nh(th(i).replace(hp,"")),e,"")}}function rs(e){return function(){var i=arguments;switch(i.length){case 0:return new e;case 1:return new e(i[0]);case 2:return new e(i[0],i[1]);case 3:return new e(i[0],i[1],i[2]);case 4:return new e(i[0],i[1],i[2],i[3]);case 5:return new e(i[0],i[1],i[2],i[3],i[4]);case 6:return new e(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new e(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var o=oi(e.prototype),c=e.apply(o,i);return Ne(c)?c:o}}function C_(e,i,o){var c=rs(e);function d(){for(var v=arguments.length,S=A(v),y=v,T=ci(d);y--;)S[y]=arguments[y];var x=v<3&&S[0]!==T&&S[v-1]!==T?[]:zn(S,T);if(v-=x.length,v<o)return lf(e,i,la,d.placeholder,n,S,x,n,n,o-v);var L=this&&this!==Ke&&this instanceof d?c:e;return Et(L,this,S)}return d}function rf(e){return function(i,o,c){var d=Ce(i);if(!ht(i)){var v=z(o,3);i=Be(i),o=function(y){return v(d[y],y,d)}}var S=e(i,o,c);return S>-1?d[v?i[S]:S]:n}}function sf(e){return Ln(function(i){var o=i.length,c=o,d=Dt.prototype.thru;for(e&&i.reverse();c--;){var v=i[c];if(typeof v!="function")throw new Ut(u);if(d&&!S&&ha(v)=="wrapper")var S=new Dt([],!0)}for(c=S?c:o;++c<o;){v=i[c];var y=ha(v),T=y=="wrapper"?Zo(v):n;T&&rl(T[0])&&T[1]==(me|de|pe|Re)&&!T[4].length&&T[9]==1?S=S[ha(T[0])].apply(S,T[3]):S=v.length==1&&rl(v)?S[y]():S.thru(v)}return function(){var x=arguments,L=x[0];if(S&&x.length==1&&X(L))return S.plant(L).value();for(var U=0,$=o?i[U].apply(this,x):L;++U<o;)$=i[U].call(this,$);return $}})}function la(e,i,o,c,d,v,S,y,T,x){var L=i&me,U=i&N,$=i&F,B=i&(de|_e),K=i&ae,ie=$?n:rs(e);function Q(){for(var le=arguments.length,he=A(le),At=le;At--;)he[At]=arguments[At];if(B)var at=ci(Q),Pt=Dp(he,at);if(c&&(he=Xc(he,c,d,B)),v&&(he=Zc(he,v,S,B)),le-=Pt,B&&le<x){var $e=zn(he,at);return lf(e,i,la,Q.placeholder,o,he,$e,y,T,x-le)}var nn=U?o:this,Dn=$?nn[e]:e;return le=he.length,y?he=B_(he,y):K&&le>1&&he.reverse(),L&&T<le&&(he.length=T),this&&this!==Ke&&this instanceof Q&&(Dn=ie||rs(Dn)),Dn.apply(nn,he)}return Q}function af(e,i){return function(o,c){return Jv(o,e,i(c),{})}}function ua(e,i){return function(o,c){var d;if(o===n&&c===n)return i;if(o!==n&&(d=o),c!==n){if(d===n)return c;typeof o=="string"||typeof c=="string"?(o=Tt(o),c=Tt(c)):(o=Gc(o),c=Gc(c)),d=e(o,c)}return d}}function jo(e){return Ln(function(i){return i=xe(i,bt(z())),se(function(o){var c=this;return e(i,function(d){return Et(d,c,o)})})})}function ca(e,i){i=i===n?" ":Tt(i);var o=i.length;if(o<2)return o?Wo(i,e):i;var c=Wo(i,Ys(e/ni(i)));return ti(i)?Xn(Xt(c),0,e).join(""):c.slice(0,e)}function b_(e,i,o,c){var d=i&N,v=rs(e);function S(){for(var y=-1,T=arguments.length,x=-1,L=c.length,U=A(L+T),$=this&&this!==Ke&&this instanceof S?v:e;++x<L;)U[x]=c[x];for(;T--;)U[x++]=arguments[++y];return Et($,d?o:this,U)}return S}function of(e){return function(i,o,c){return c&&typeof c!="number"&&st(i,o,c)&&(o=c=n),i=Un(i),o===n?(o=i,i=0):o=Un(o),c=c===n?i<o?1:-1:Un(c),u_(i,o,c,e)}}function fa(e){return function(i,o){return typeof i=="string"&&typeof o=="string"||(i=Ft(i),o=Ft(o)),e(i,o)}}function lf(e,i,o,c,d,v,S,y,T,x){var L=i&de,U=L?S:n,$=L?n:S,B=L?v:n,K=L?n:v;i|=L?pe:oe,i&=~(L?oe:pe),i&J||(i&=-4);var ie=[e,i,d,B,U,K,$,y,T,x],Q=o.apply(n,ie);return rl(e)&&Sf(Q,ie),Q.placeholder=c,yf(Q,e,i)}function Yo(e){var i=Ve[e];return function(o,c){if(o=Ft(o),c=c==null?0:Ze(re(c),292),c&&Sc(o)){var d=(Se(o)+"e").split("e"),v=i(d[0]+"e"+(+d[1]+c));return d=(Se(v)+"e").split("e"),+(d[0]+"e"+(+d[1]-c))}return i(o)}}var T_=si&&1/Hs(new si([,-0]))[1]==Xe?function(e){return new si(e)}:wl;function uf(e){return function(i){var o=et(i);return o==Yt?Ro(i):o==Jt?Wp(i):Up(i,e(i))}}function xn(e,i,o,c,d,v,S,y){var T=i&F;if(!T&&typeof e!="function")throw new Ut(u);var x=c?c.length:0;if(x||(i&=-97,c=d=n),S=S===n?S:We(re(S),0),y=y===n?y:re(y),x-=d?d.length:0,i&oe){var L=c,U=d;c=d=n}var $=T?n:Zo(e),B=[e,i,o,c,d,L,U,v,S,y];if($&&H_(B,$),e=B[0],i=B[1],o=B[2],c=B[3],d=B[4],y=B[9]=B[9]===n?T?0:e.length:We(B[9]-x,0),!y&&i&(de|_e)&&(i&=-25),!i||i==N)var K=E_(e,i,o);else i==de||i==_e?K=C_(e,i,y):(i==pe||i==(N|pe))&&!d.length?K=b_(e,i,o,c):K=la.apply(n,B);var ie=$?Wc:Sf;return yf(ie(K,B),e,i)}function cf(e,i,o,c){return e===n||tn(e,ii[o])&&!we.call(c,o)?i:e}function ff(e,i,o,c,d,v){return Ne(e)&&Ne(i)&&(v.set(i,e),ia(e,i,n,ff,v),v.delete(i)),e}function R_(e){return as(e)?n:e}function hf(e,i,o,c,d,v){var S=o&R,y=e.length,T=i.length;if(y!=T&&!(S&&T>y))return!1;var x=v.get(e),L=v.get(i);if(x&&L)return x==i&&L==e;var U=-1,$=!0,B=o&I?new Tr:n;for(v.set(e,i),v.set(i,e);++U<y;){var K=e[U],ie=i[U];if(c)var Q=S?c(ie,K,U,i,e,v):c(K,ie,U,e,i,v);if(Q!==n){if(Q)continue;$=!1;break}if(B){if(!So(i,function(le,he){if(!qi(B,he)&&(K===le||d(K,le,o,c,v)))return B.push(he)})){$=!1;break}}else if(!(K===ie||d(K,ie,o,c,v))){$=!1;break}}return v.delete(e),v.delete(i),$}function A_(e,i,o,c,d,v,S){switch(o){case Xr:if(e.byteLength!=i.byteLength||e.byteOffset!=i.byteOffset)return!1;e=e.buffer,i=i.buffer;case Qi:return!(e.byteLength!=i.byteLength||!v(new qs(e),new qs(i)));case Tn:case Sr:case Vi:return tn(+e,+i);case yr:return e.name==i.name&&e.message==i.message;case Wi:case Bi:return e==i+"";case Yt:var y=Ro;case Jt:var T=c&R;if(y||(y=Hs),e.size!=i.size&&!T)return!1;var x=S.get(e);if(x)return x==i;c|=I,S.set(e,i);var L=hf(y(e),y(i),c,d,v,S);return S.delete(e),L;case Us:if(Ji)return Ji.call(e)==Ji.call(i)}return!1}function P_(e,i,o,c,d,v){var S=o&R,y=Jo(e),T=y.length,x=Jo(i),L=x.length;if(T!=L&&!S)return!1;for(var U=T;U--;){var $=y[U];if(!(S?$ in i:we.call(i,$)))return!1}var B=v.get(e),K=v.get(i);if(B&&K)return B==i&&K==e;var ie=!0;v.set(e,i),v.set(i,e);for(var Q=S;++U<T;){$=y[U];var le=e[$],he=i[$];if(c)var At=S?c(he,le,$,i,e,v):c(le,he,$,e,i,v);if(!(At===n?le===he||d(le,he,o,c,v):At)){ie=!1;break}Q||(Q=$=="constructor")}if(ie&&!Q){var at=e.constructor,Pt=i.constructor;at!=Pt&&"constructor"in e&&"constructor"in i&&!(typeof at=="function"&&at instanceof at&&typeof Pt=="function"&&Pt instanceof Pt)&&(ie=!1)}return v.delete(e),v.delete(i),ie}function Ln(e){return sl(mf(e,n,Af),e+"")}function Jo(e){return Lc(e,Be,tl)}function Xo(e){return Lc(e,dt,df)}var Zo=Xs?function(e){return Xs.get(e)}:wl;function ha(e){for(var i=e.name+"",o=ai[i],c=we.call(ai,i)?o.length:0;c--;){var d=o[c],v=d.func;if(v==null||v==e)return d.name}return i}function ci(e){var i=we.call(p,"placeholder")?p:e;return i.placeholder}function z(){var e=p.iteratee||_l;return e=e===_l?Uc:e,arguments.length?e(arguments[0],arguments[1]):e}function da(e,i){var o=e.__data__;return M_(i)?o[typeof i=="string"?"string":"hash"]:o.map}function el(e){for(var i=Be(e),o=i.length;o--;){var c=i[o],d=e[c];i[o]=[c,d,vf(d)]}return i}function Pr(e,i){var o=Fp(e,i);return Oc(o)?o:n}function I_(e){var i=we.call(e,Cr),o=e[Cr];try{e[Cr]=n;var c=!0}catch{}var d=Gs.call(e);return c&&(i?e[Cr]=o:delete e[Cr]),d}var tl=Po?function(e){return e==null?[]:(e=Ce(e),Qn(Po(e),function(i){return mc.call(e,i)}))}:Sl,df=Po?function(e){for(var i=[];e;)qn(i,tl(e)),e=zs(e);return i}:Sl,et=it;(Io&&et(new Io(new ArrayBuffer(1)))!=Xr||Ki&&et(new Ki)!=Yt||xo&&et(xo.resolve())!=Au||si&&et(new si)!=Jt||ji&&et(new ji)!=Gi)&&(et=function(e){var i=it(e),o=i==An?e.constructor:n,c=o?Ir(o):"";if(c)switch(c){case fv:return Xr;case hv:return Yt;case dv:return Au;case gv:return Jt;case pv:return Gi}return i});function x_(e,i,o){for(var c=-1,d=o.length;++c<d;){var v=o[c],S=v.size;switch(v.type){case"drop":e+=S;break;case"dropRight":i-=S;break;case"take":i=Ze(i,e+S);break;case"takeRight":e=We(e,i-S);break}}return{start:e,end:i}}function L_(e){var i=e.match($g);return i?i[1].split(Fg):[]}function gf(e,i,o){i=Jn(i,e);for(var c=-1,d=i.length,v=!1;++c<d;){var S=en(i[c]);if(!(v=e!=null&&o(e,S)))break;e=e[S]}return v||++c!=d?v:(d=e==null?0:e.length,!!d&&Sa(d)&&Nn(S,d)&&(X(e)||xr(e)))}function N_(e){var i=e.length,o=new e.constructor(i);return i&&typeof e[0]=="string"&&we.call(e,"index")&&(o.index=e.index,o.input=e.input),o}function pf(e){return typeof e.constructor=="function"&&!is(e)?oi(zs(e)):{}}function O_(e,i,o){var c=e.constructor;switch(i){case Qi:return Ko(e);case Tn:case Sr:return new c(+e);case Xr:return v_(e,o);case Za:case eo:case to:case no:case ro:case io:case so:case ao:case oo:return Yc(e,o);case Yt:return new c;case Vi:case Bi:return new c(e);case Wi:return __(e);case Jt:return new c;case Us:return m_(e)}}function U_(e,i){var o=i.length;if(!o)return e;var c=o-1;return i[c]=(o>1?"& ":"")+i[c],i=i.join(o>2?", ":" "),e.replace(kg,`{
1
+ class nE{$value;$subscribers=new Set;constructor(e){this.$value=e}set(e){this.$value=e,this.$subscribers.forEach(r=>{r(e)})}update(e){this.set(e(this.$value))}subscribe(e){return this.$subscribers.add(e),e(this.$value),()=>{this.$subscribers.delete(e)}}}function Bh(n){return n.$value}function $a(n){return new nE(n)}var Ea=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},os={exports:{}};var rE=os.exports,ah;function iE(){return ah||(ah=1,(function(n,e){(function(){var r,s="4.18.1",a=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",f="Invalid `variable` option passed into `_.template`",h="Invalid `imports` option passed into `_.template`",g="__lodash_hash_undefined__",_=500,w="__lodash_placeholder__",m=1,E=2,C=4,R=1,I=2,N=1,F=2,oe=4,de=8,te=16,_e=32,pe=64,ge=128,we=256,ae=512,ut=30,ct="...",jt=800,W=16,Gn=1,mr=2,wt=3,Xe=1/0,St=9007199254740991,Jr=17976931348623157e292,O=NaN,Pe=4294967295,ne=Pe-1,ze=Pe>>>1,dn=[["ary",ge],["bind",N],["bindKey",F],["curry",de],["curryRight",te],["flip",ae],["partial",_e],["partialRight",pe],["rearg",we]],Lt="[object Arguments]",yt="[object Array]",wr="[object AsyncFunction]",Tn="[object Boolean]",Sr="[object Date]",Nt="[object DOMException]",yr="[object Error]",Rn="[object Function]",Ru="[object GeneratorFunction]",Yt="[object Map]",Vi="[object Number]",yg="[object Null]",Pn="[object Object]",Pu="[object Promise]",Eg="[object Proxy]",Wi="[object RegExp]",Jt="[object Set]",Bi="[object String]",Us="[object Symbol]",Cg="[object Undefined]",Gi="[object WeakMap]",bg="[object WeakSet]",Qi="[object ArrayBuffer]",Xr="[object DataView]",Za="[object Float32Array]",eo="[object Float64Array]",to="[object Int8Array]",no="[object Int16Array]",ro="[object Int32Array]",io="[object Uint8Array]",so="[object Uint8ClampedArray]",ao="[object Uint16Array]",oo="[object Uint32Array]",Tg=/\b__p \+= '';/g,Rg=/\b(__p \+=) '' \+/g,Pg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Au=/&(?:amp|lt|gt|quot|#39);/g,Iu=/[&<>"']/g,Ag=RegExp(Au.source),Ig=RegExp(Iu.source),xg=/<%-([\s\S]+?)%>/g,Lg=/<%([\s\S]+?)%>/g,xu=/<%=([\s\S]+?)%>/g,Ng=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Og=/^\w*$/,Ug=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,lo=/[\\^$.*+?()[\]{}|]/g,Dg=RegExp(lo.source),uo=/^\s+/,Mg=/\s/,kg=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$g=/\{\n\/\* \[wrapped with (.+)\] \*/,Fg=/,? & /,Hg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Lu=/[()=,{}\[\]\/\s]/,Vg=/\\(\\)?/g,Wg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Nu=/\w*$/,Bg=/^[-+]0x[0-9a-f]+$/i,Gg=/^0b[01]+$/i,Qg=/^\[object .+?Constructor\]$/,qg=/^0o[0-7]+$/i,zg=/^(?:0|[1-9]\d*)$/,Kg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ds=/($^)/,jg=/['\n\r\u2028\u2029\\]/g,Ms="\\ud800-\\udfff",Yg="\\u0300-\\u036f",Jg="\\ufe20-\\ufe2f",Xg="\\u20d0-\\u20ff",Ou=Yg+Jg+Xg,Uu="\\u2700-\\u27bf",Du="a-z\\xdf-\\xf6\\xf8-\\xff",Zg="\\xac\\xb1\\xd7\\xf7",ep="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",tp="\\u2000-\\u206f",np=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Mu="A-Z\\xc0-\\xd6\\xd8-\\xde",ku="\\ufe0e\\ufe0f",$u=Zg+ep+tp+np,co="['’]",rp="["+Ms+"]",Fu="["+$u+"]",ks="["+Ou+"]",Hu="\\d+",ip="["+Uu+"]",Vu="["+Du+"]",Wu="[^"+Ms+$u+Hu+Uu+Du+Mu+"]",fo="\\ud83c[\\udffb-\\udfff]",sp="(?:"+ks+"|"+fo+")",Bu="[^"+Ms+"]",ho="(?:\\ud83c[\\udde6-\\uddff]){2}",go="[\\ud800-\\udbff][\\udc00-\\udfff]",Zr="["+Mu+"]",Gu="\\u200d",Qu="(?:"+Vu+"|"+Wu+")",ap="(?:"+Zr+"|"+Wu+")",qu="(?:"+co+"(?:d|ll|m|re|s|t|ve))?",zu="(?:"+co+"(?:D|LL|M|RE|S|T|VE))?",Ku=sp+"?",ju="["+ku+"]?",op="(?:"+Gu+"(?:"+[Bu,ho,go].join("|")+")"+ju+Ku+")*",lp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",up="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Yu=ju+Ku+op,cp="(?:"+[ip,ho,go].join("|")+")"+Yu,fp="(?:"+[Bu+ks+"?",ks,ho,go,rp].join("|")+")",hp=RegExp(co,"g"),dp=RegExp(ks,"g"),po=RegExp(fo+"(?="+fo+")|"+fp+Yu,"g"),gp=RegExp([Zr+"?"+Vu+"+"+qu+"(?="+[Fu,Zr,"$"].join("|")+")",ap+"+"+zu+"(?="+[Fu,Zr+Qu,"$"].join("|")+")",Zr+"?"+Qu+"+"+qu,Zr+"+"+zu,up,lp,Hu,cp].join("|"),"g"),pp=RegExp("["+Gu+Ms+Ou+ku+"]"),vp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_p=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],mp=-1,Ae={};Ae[Za]=Ae[eo]=Ae[to]=Ae[no]=Ae[ro]=Ae[io]=Ae[so]=Ae[ao]=Ae[oo]=!0,Ae[Lt]=Ae[yt]=Ae[Qi]=Ae[Tn]=Ae[Xr]=Ae[Sr]=Ae[yr]=Ae[Rn]=Ae[Yt]=Ae[Vi]=Ae[Pn]=Ae[Wi]=Ae[Jt]=Ae[Bi]=Ae[Gi]=!1;var Re={};Re[Lt]=Re[yt]=Re[Qi]=Re[Xr]=Re[Tn]=Re[Sr]=Re[Za]=Re[eo]=Re[to]=Re[no]=Re[ro]=Re[Yt]=Re[Vi]=Re[Pn]=Re[Wi]=Re[Jt]=Re[Bi]=Re[Us]=Re[io]=Re[so]=Re[ao]=Re[oo]=!0,Re[yr]=Re[Rn]=Re[Gi]=!1;var wp={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Sp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},yp={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Ep={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Cp=parseFloat,bp=parseInt,Ju=typeof Ea=="object"&&Ea&&Ea.Object===Object&&Ea,Tp=typeof self=="object"&&self&&self.Object===Object&&self,Ke=Ju||Tp||Function("return this")(),vo=e&&!e.nodeType&&e,Er=vo&&!0&&n&&!n.nodeType&&n,Xu=Er&&Er.exports===vo,_o=Xu&&Ju.process,Ot=(function(){try{var b=Er&&Er.require&&Er.require("util").types;return b||_o&&_o.binding&&_o.binding("util")}catch{}})(),Zu=Ot&&Ot.isArrayBuffer,ec=Ot&&Ot.isDate,tc=Ot&&Ot.isMap,nc=Ot&&Ot.isRegExp,rc=Ot&&Ot.isSet,ic=Ot&&Ot.isTypedArray;function Et(b,A,P){switch(P.length){case 0:return b.call(A);case 1:return b.call(A,P[0]);case 2:return b.call(A,P[0],P[1]);case 3:return b.call(A,P[0],P[1],P[2])}return b.apply(A,P)}function Rp(b,A,P,V){for(var Y=-1,me=b==null?0:b.length;++Y<me;){var Ve=b[Y];A(V,Ve,P(Ve),b)}return V}function Ct(b,A){for(var P=-1,V=b==null?0:b.length;++P<V&&A(b[P],P,b)!==!1;);return b}function Pp(b,A){for(var P=b==null?0:b.length;P--&&A(b[P],P,b)!==!1;);return b}function sc(b,A){for(var P=-1,V=b==null?0:b.length;++P<V;)if(!A(b[P],P,b))return!1;return!0}function Qn(b,A){for(var P=-1,V=b==null?0:b.length,Y=0,me=[];++P<V;){var Ve=b[P];A(Ve,P,b)&&(me[Y++]=Ve)}return me}function $s(b,A){var P=b==null?0:b.length;return!!P&&ei(b,A,0)>-1}function mo(b,A,P){for(var V=-1,Y=b==null?0:b.length;++V<Y;)if(P(A,b[V]))return!0;return!1}function xe(b,A){for(var P=-1,V=b==null?0:b.length,Y=Array(V);++P<V;)Y[P]=A(b[P],P,b);return Y}function qn(b,A){for(var P=-1,V=A.length,Y=b.length;++P<V;)b[Y+P]=A[P];return b}function wo(b,A,P,V){var Y=-1,me=b==null?0:b.length;for(V&&me&&(P=b[++Y]);++Y<me;)P=A(P,b[Y],Y,b);return P}function Ap(b,A,P,V){var Y=b==null?0:b.length;for(V&&Y&&(P=b[--Y]);Y--;)P=A(P,b[Y],Y,b);return P}function So(b,A){for(var P=-1,V=b==null?0:b.length;++P<V;)if(A(b[P],P,b))return!0;return!1}var Ip=yo("length");function xp(b){return b.split("")}function Lp(b){return b.match(Hg)||[]}function ac(b,A,P){var V;return P(b,function(Y,me,Ve){if(A(Y,me,Ve))return V=me,!1}),V}function Fs(b,A,P,V){for(var Y=b.length,me=P+(V?1:-1);V?me--:++me<Y;)if(A(b[me],me,b))return me;return-1}function ei(b,A,P){return A===A?Bp(b,A,P):Fs(b,oc,P)}function Np(b,A,P,V){for(var Y=P-1,me=b.length;++Y<me;)if(V(b[Y],A))return Y;return-1}function oc(b){return b!==b}function lc(b,A){var P=b==null?0:b.length;return P?Co(b,A)/P:O}function yo(b){return function(A){return A==null?r:A[b]}}function Eo(b){return function(A){return b==null?r:b[A]}}function uc(b,A,P,V,Y){return Y(b,function(me,Ve,be){P=V?(V=!1,me):A(P,me,Ve,be)}),P}function Op(b,A){var P=b.length;for(b.sort(A);P--;)b[P]=b[P].value;return b}function Co(b,A){for(var P,V=-1,Y=b.length;++V<Y;){var me=A(b[V]);me!==r&&(P=P===r?me:P+me)}return P}function bo(b,A){for(var P=-1,V=Array(b);++P<b;)V[P]=A(P);return V}function Up(b,A){return xe(A,function(P){return[P,b[P]]})}function cc(b){return b&&b.slice(0,gc(b)+1).replace(uo,"")}function bt(b){return function(A){return b(A)}}function To(b,A){return xe(A,function(P){return b[P]})}function qi(b,A){return b.has(A)}function fc(b,A){for(var P=-1,V=b.length;++P<V&&ei(A,b[P],0)>-1;);return P}function hc(b,A){for(var P=b.length;P--&&ei(A,b[P],0)>-1;);return P}function Dp(b,A){for(var P=b.length,V=0;P--;)b[P]===A&&++V;return V}var Mp=Eo(wp),kp=Eo(Sp);function $p(b){return"\\"+Ep[b]}function Fp(b,A){return b==null?r:b[A]}function ti(b){return pp.test(b)}function Hp(b){return vp.test(b)}function Vp(b){for(var A,P=[];!(A=b.next()).done;)P.push(A.value);return P}function Ro(b){var A=-1,P=Array(b.size);return b.forEach(function(V,Y){P[++A]=[Y,V]}),P}function dc(b,A){return function(P){return b(A(P))}}function zn(b,A){for(var P=-1,V=b.length,Y=0,me=[];++P<V;){var Ve=b[P];(Ve===A||Ve===w)&&(b[P]=w,me[Y++]=P)}return me}function Hs(b){var A=-1,P=Array(b.size);return b.forEach(function(V){P[++A]=V}),P}function Wp(b){var A=-1,P=Array(b.size);return b.forEach(function(V){P[++A]=[V,V]}),P}function Bp(b,A,P){for(var V=P-1,Y=b.length;++V<Y;)if(b[V]===A)return V;return-1}function Gp(b,A,P){for(var V=P+1;V--;)if(b[V]===A)return V;return V}function ni(b){return ti(b)?qp(b):Ip(b)}function Xt(b){return ti(b)?zp(b):xp(b)}function gc(b){for(var A=b.length;A--&&Mg.test(b.charAt(A)););return A}var Qp=Eo(yp);function qp(b){for(var A=po.lastIndex=0;po.test(b);)++A;return A}function zp(b){return b.match(po)||[]}function Kp(b){return b.match(gp)||[]}var jp=(function b(A){A=A==null?Ke:ri.defaults(Ke.Object(),A,ri.pick(Ke,_p));var P=A.Array,V=A.Date,Y=A.Error,me=A.Function,Ve=A.Math,be=A.Object,Po=A.RegExp,Yp=A.String,Ut=A.TypeError,Vs=P.prototype,Jp=me.prototype,ii=be.prototype,Ws=A["__core-js_shared__"],Bs=Jp.toString,Se=ii.hasOwnProperty,Xp=0,pc=(function(){var t=/[^.]+$/.exec(Ws&&Ws.keys&&Ws.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})(),Gs=ii.toString,Zp=Bs.call(be),ev=Ke._,tv=Po("^"+Bs.call(Se).replace(lo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qs=Xu?A.Buffer:r,Kn=A.Symbol,qs=A.Uint8Array,vc=Qs?Qs.allocUnsafe:r,zs=dc(be.getPrototypeOf,be),_c=be.create,mc=ii.propertyIsEnumerable,Ks=Vs.splice,wc=Kn?Kn.isConcatSpreadable:r,zi=Kn?Kn.iterator:r,Cr=Kn?Kn.toStringTag:r,js=(function(){try{var t=Ar(be,"defineProperty");return t({},"",{}),t}catch{}})(),nv=A.clearTimeout!==Ke.clearTimeout&&A.clearTimeout,rv=V&&V.now!==Ke.Date.now&&V.now,iv=A.setTimeout!==Ke.setTimeout&&A.setTimeout,Ys=Ve.ceil,Js=Ve.floor,Ao=be.getOwnPropertySymbols,sv=Qs?Qs.isBuffer:r,Sc=A.isFinite,av=Vs.join,ov=dc(be.keys,be),We=Ve.max,Ze=Ve.min,lv=V.now,uv=A.parseInt,yc=Ve.random,cv=Vs.reverse,Io=Ar(A,"DataView"),Ki=Ar(A,"Map"),xo=Ar(A,"Promise"),si=Ar(A,"Set"),ji=Ar(A,"WeakMap"),Yi=Ar(be,"create"),Xs=ji&&new ji,ai={},fv=Ir(Io),hv=Ir(Ki),dv=Ir(xo),gv=Ir(si),pv=Ir(ji),Zs=Kn?Kn.prototype:r,Ji=Zs?Zs.valueOf:r,Ec=Zs?Zs.toString:r;function p(t){if(Me(t)&&!J(t)&&!(t instanceof ce)){if(t instanceof Dt)return t;if(Se.call(t,"__wrapped__"))return bf(t)}return new Dt(t)}var oi=(function(){function t(){}return function(i){if(!Ne(i))return{};if(_c)return _c(i);t.prototype=i;var o=new t;return t.prototype=r,o}})();function ea(){}function Dt(t,i){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=r}p.templateSettings={escape:xg,evaluate:Lg,interpolate:xu,variable:"",imports:{_:p}},p.prototype=ea.prototype,p.prototype.constructor=p,Dt.prototype=oi(ea.prototype),Dt.prototype.constructor=Dt;function ce(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Pe,this.__views__=[]}function vv(){var t=new ce(this.__wrapped__);return t.__actions__=ft(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ft(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ft(this.__views__),t}function _v(){if(this.__filtered__){var t=new ce(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function mv(){var t=this.__wrapped__.value(),i=this.__dir__,o=J(t),c=i<0,d=o?t.length:0,v=x_(0,d,this.__views__),S=v.start,y=v.end,T=y-S,x=c?y:S-1,L=this.__iteratees__,U=L.length,$=0,B=Ze(T,this.__takeCount__);if(!o||!c&&d==T&&B==T)return qc(t,this.__actions__);var K=[];e:for(;T--&&$<B;){x+=i;for(var ie=-1,Q=t[x];++ie<U;){var le=L[ie],he=le.iteratee,Pt=le.type,at=he(Q);if(Pt==mr)Q=at;else if(!at){if(Pt==Gn)continue e;break e}}K[$++]=Q}return K}ce.prototype=oi(ea.prototype),ce.prototype.constructor=ce;function br(t){var i=-1,o=t==null?0:t.length;for(this.clear();++i<o;){var c=t[i];this.set(c[0],c[1])}}function wv(){this.__data__=Yi?Yi(null):{},this.size=0}function Sv(t){var i=this.has(t)&&delete this.__data__[t];return this.size-=i?1:0,i}function yv(t){var i=this.__data__;if(Yi){var o=i[t];return o===g?r:o}return Se.call(i,t)?i[t]:r}function Ev(t){var i=this.__data__;return Yi?i[t]!==r:Se.call(i,t)}function Cv(t,i){var o=this.__data__;return this.size+=this.has(t)?0:1,o[t]=Yi&&i===r?g:i,this}br.prototype.clear=wv,br.prototype.delete=Sv,br.prototype.get=yv,br.prototype.has=Ev,br.prototype.set=Cv;function An(t){var i=-1,o=t==null?0:t.length;for(this.clear();++i<o;){var c=t[i];this.set(c[0],c[1])}}function bv(){this.__data__=[],this.size=0}function Tv(t){var i=this.__data__,o=ta(i,t);if(o<0)return!1;var c=i.length-1;return o==c?i.pop():Ks.call(i,o,1),--this.size,!0}function Rv(t){var i=this.__data__,o=ta(i,t);return o<0?r:i[o][1]}function Pv(t){return ta(this.__data__,t)>-1}function Av(t,i){var o=this.__data__,c=ta(o,t);return c<0?(++this.size,o.push([t,i])):o[c][1]=i,this}An.prototype.clear=bv,An.prototype.delete=Tv,An.prototype.get=Rv,An.prototype.has=Pv,An.prototype.set=Av;function In(t){var i=-1,o=t==null?0:t.length;for(this.clear();++i<o;){var c=t[i];this.set(c[0],c[1])}}function Iv(){this.size=0,this.__data__={hash:new br,map:new(Ki||An),string:new br}}function xv(t){var i=da(this,t).delete(t);return this.size-=i?1:0,i}function Lv(t){return da(this,t).get(t)}function Nv(t){return da(this,t).has(t)}function Ov(t,i){var o=da(this,t),c=o.size;return o.set(t,i),this.size+=o.size==c?0:1,this}In.prototype.clear=Iv,In.prototype.delete=xv,In.prototype.get=Lv,In.prototype.has=Nv,In.prototype.set=Ov;function Tr(t){var i=-1,o=t==null?0:t.length;for(this.__data__=new In;++i<o;)this.add(t[i])}function Uv(t){return this.__data__.set(t,g),this}function Dv(t){return this.__data__.has(t)}Tr.prototype.add=Tr.prototype.push=Uv,Tr.prototype.has=Dv;function Zt(t){var i=this.__data__=new An(t);this.size=i.size}function Mv(){this.__data__=new An,this.size=0}function kv(t){var i=this.__data__,o=i.delete(t);return this.size=i.size,o}function $v(t){return this.__data__.get(t)}function Fv(t){return this.__data__.has(t)}function Hv(t,i){var o=this.__data__;if(o instanceof An){var c=o.__data__;if(!Ki||c.length<a-1)return c.push([t,i]),this.size=++o.size,this;o=this.__data__=new In(c)}return o.set(t,i),this.size=o.size,this}Zt.prototype.clear=Mv,Zt.prototype.delete=kv,Zt.prototype.get=$v,Zt.prototype.has=Fv,Zt.prototype.set=Hv;function Cc(t,i){var o=J(t),c=!o&&xr(t),d=!o&&!c&&Zn(t),v=!o&&!c&&!d&&fi(t),S=o||c||d||v,y=S?bo(t.length,Yp):[],T=y.length;for(var x in t)(i||Se.call(t,x))&&!(S&&(x=="length"||d&&(x=="offset"||x=="parent")||v&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||Nn(x,T)))&&y.push(x);return y}function bc(t){var i=t.length;return i?t[Vo(0,i-1)]:r}function Vv(t,i){return ga(ft(t),Rr(i,0,t.length))}function Wv(t){return ga(ft(t))}function Lo(t,i,o){(o!==r&&!tn(t[i],o)||o===r&&!(i in t))&&gn(t,i,o)}function Xi(t,i,o){var c=t[i];(!(Se.call(t,i)&&tn(c,o))||o===r&&!(i in t))&&gn(t,i,o)}function ta(t,i){for(var o=t.length;o--;)if(tn(t[o][0],i))return o;return-1}function Bv(t,i,o,c){return jn(t,function(d,v,S){i(c,d,o(d),S)}),c}function Tc(t,i){return t&&vn(i,Be(i),t)}function Gv(t,i){return t&&vn(i,dt(i),t)}function gn(t,i,o){i=="__proto__"&&js?js(t,i,{configurable:!0,enumerable:!0,value:o,writable:!0}):t[i]=o}function No(t,i){for(var o=-1,c=i.length,d=P(c),v=t==null;++o<c;)d[o]=v?r:dl(t,i[o]);return d}function Rr(t,i,o){return t===t&&(o!==r&&(t=t<=o?t:o),i!==r&&(t=t>=i?t:i)),t}function Mt(t,i,o,c,d,v){var S,y=i&m,T=i&E,x=i&C;if(o&&(S=d?o(t,c,d,v):o(t)),S!==r)return S;if(!Ne(t))return t;var L=J(t);if(L){if(S=N_(t),!y)return ft(t,S)}else{var U=et(t),$=U==Rn||U==Ru;if(Zn(t))return jc(t,y);if(U==Pn||U==Lt||$&&!d){if(S=T||$?{}:pf(t),!y)return T?y_(t,Gv(S,t)):S_(t,Tc(S,t))}else{if(!Re[U])return d?t:{};S=O_(t,U,y)}}v||(v=new Zt);var B=v.get(t);if(B)return B;v.set(t,S),Gf(t)?t.forEach(function(Q){S.add(Mt(Q,i,o,Q,t,v))}):Wf(t)&&t.forEach(function(Q,le){S.set(le,Mt(Q,i,o,le,t,v))});var K=x?T?Xo:Jo:T?dt:Be,ie=L?r:K(t);return Ct(ie||t,function(Q,le){ie&&(le=Q,Q=t[le]),Xi(S,le,Mt(Q,i,o,le,t,v))}),S}function Qv(t){var i=Be(t);return function(o){return Rc(o,t,i)}}function Rc(t,i,o){var c=o.length;if(t==null)return!c;for(t=be(t);c--;){var d=o[c],v=i[d],S=t[d];if(S===r&&!(d in t)||!v(S))return!1}return!0}function Pc(t,i,o){if(typeof t!="function")throw new Ut(u);return ss(function(){t.apply(r,o)},i)}function Zi(t,i,o,c){var d=-1,v=$s,S=!0,y=t.length,T=[],x=i.length;if(!y)return T;o&&(i=xe(i,bt(o))),c?(v=mo,S=!1):i.length>=a&&(v=qi,S=!1,i=new Tr(i));e:for(;++d<y;){var L=t[d],U=o==null?L:o(L);if(L=c||L!==0?L:0,S&&U===U){for(var $=x;$--;)if(i[$]===U)continue e;T.push(L)}else v(i,U,c)||T.push(L)}return T}var jn=ef(pn),Ac=ef(Uo,!0);function qv(t,i){var o=!0;return jn(t,function(c,d,v){return o=!!i(c,d,v),o}),o}function na(t,i,o){for(var c=-1,d=t.length;++c<d;){var v=t[c],S=i(v);if(S!=null&&(y===r?S===S&&!Rt(S):o(S,y)))var y=S,T=v}return T}function zv(t,i,o,c){var d=t.length;for(o=re(o),o<0&&(o=-o>d?0:d+o),c=c===r||c>d?d:re(c),c<0&&(c+=d),c=o>c?0:qf(c);o<c;)t[o++]=i;return t}function Ic(t,i){var o=[];return jn(t,function(c,d,v){i(c,d,v)&&o.push(c)}),o}function je(t,i,o,c,d){var v=-1,S=t.length;for(o||(o=D_),d||(d=[]);++v<S;){var y=t[v];i>0&&o(y)?i>1?je(y,i-1,o,c,d):qn(d,y):c||(d[d.length]=y)}return d}var Oo=tf(),xc=tf(!0);function pn(t,i){return t&&Oo(t,i,Be)}function Uo(t,i){return t&&xc(t,i,Be)}function ra(t,i){return Qn(i,function(o){return On(t[o])})}function Pr(t,i){i=Jn(i,t);for(var o=0,c=i.length;t!=null&&o<c;)t=t[en(i[o++])];return o&&o==c?t:r}function Lc(t,i,o){var c=i(t);return J(t)?c:qn(c,o(t))}function it(t){return t==null?t===r?Cg:yg:Cr&&Cr in be(t)?I_(t):W_(t)}function Do(t,i){return t>i}function Kv(t,i){return t!=null&&Se.call(t,i)}function jv(t,i){return t!=null&&i in be(t)}function Yv(t,i,o){return t>=Ze(i,o)&&t<We(i,o)}function Mo(t,i,o){for(var c=o?mo:$s,d=t[0].length,v=t.length,S=v,y=P(v),T=1/0,x=[];S--;){var L=t[S];S&&i&&(L=xe(L,bt(i))),T=Ze(L.length,T),y[S]=!o&&(i||d>=120&&L.length>=120)?new Tr(S&&L):r}L=t[0];var U=-1,$=y[0];e:for(;++U<d&&x.length<T;){var B=L[U],K=i?i(B):B;if(B=o||B!==0?B:0,!($?qi($,K):c(x,K,o))){for(S=v;--S;){var ie=y[S];if(!(ie?qi(ie,K):c(t[S],K,o)))continue e}$&&$.push(K),x.push(B)}}return x}function Jv(t,i,o,c){return pn(t,function(d,v,S){i(c,o(d),v,S)}),c}function es(t,i,o){i=Jn(i,t),t=wf(t,i);var c=t==null?t:t[en($t(i))];return c==null?r:Et(c,t,o)}function Nc(t){return Me(t)&&it(t)==Lt}function Xv(t){return Me(t)&&it(t)==Qi}function Zv(t){return Me(t)&&it(t)==Sr}function ts(t,i,o,c,d){return t===i?!0:t==null||i==null||!Me(t)&&!Me(i)?t!==t&&i!==i:e_(t,i,o,c,ts,d)}function e_(t,i,o,c,d,v){var S=J(t),y=J(i),T=S?yt:et(t),x=y?yt:et(i);T=T==Lt?Pn:T,x=x==Lt?Pn:x;var L=T==Pn,U=x==Pn,$=T==x;if($&&Zn(t)){if(!Zn(i))return!1;S=!0,L=!1}if($&&!L)return v||(v=new Zt),S||fi(t)?hf(t,i,o,c,d,v):P_(t,i,T,o,c,d,v);if(!(o&R)){var B=L&&Se.call(t,"__wrapped__"),K=U&&Se.call(i,"__wrapped__");if(B||K){var ie=B?t.value():t,Q=K?i.value():i;return v||(v=new Zt),d(ie,Q,o,c,v)}}return $?(v||(v=new Zt),A_(t,i,o,c,d,v)):!1}function t_(t){return Me(t)&&et(t)==Yt}function ko(t,i,o,c){var d=o.length,v=d,S=!c;if(t==null)return!v;for(t=be(t);d--;){var y=o[d];if(S&&y[2]?y[1]!==t[y[0]]:!(y[0]in t))return!1}for(;++d<v;){y=o[d];var T=y[0],x=t[T],L=y[1];if(S&&y[2]){if(x===r&&!(T in t))return!1}else{var U=new Zt;if(c)var $=c(x,L,T,t,i,U);if(!($===r?ts(L,x,R|I,c,U):$))return!1}}return!0}function Oc(t){if(!Ne(t)||k_(t))return!1;var i=On(t)?tv:Qg;return i.test(Ir(t))}function n_(t){return Me(t)&&it(t)==Wi}function r_(t){return Me(t)&&et(t)==Jt}function i_(t){return Me(t)&&Sa(t.length)&&!!Ae[it(t)]}function Uc(t){return typeof t=="function"?t:t==null?gt:typeof t=="object"?J(t)?kc(t[0],t[1]):Mc(t):ih(t)}function $o(t){if(!is(t))return ov(t);var i=[];for(var o in be(t))Se.call(t,o)&&o!="constructor"&&i.push(o);return i}function s_(t){if(!Ne(t))return V_(t);var i=is(t),o=[];for(var c in t)c=="constructor"&&(i||!Se.call(t,c))||o.push(c);return o}function Fo(t,i){return t<i}function Dc(t,i){var o=-1,c=ht(t)?P(t.length):[];return jn(t,function(d,v,S){c[++o]=i(d,v,S)}),c}function Mc(t){var i=el(t);return i.length==1&&i[0][2]?_f(i[0][0],i[0][1]):function(o){return o===t||ko(o,t,i)}}function kc(t,i){return nl(t)&&vf(i)?_f(en(t),i):function(o){var c=dl(o,t);return c===r&&c===i?gl(o,t):ts(i,c,R|I)}}function ia(t,i,o,c,d){t!==i&&Oo(i,function(v,S){if(d||(d=new Zt),Ne(v))a_(t,i,S,o,ia,c,d);else{var y=c?c(il(t,S),v,S+"",t,i,d):r;y===r&&(y=v),Lo(t,S,y)}},dt)}function a_(t,i,o,c,d,v,S){var y=il(t,o),T=il(i,o),x=S.get(T);if(x){Lo(t,o,x);return}var L=v?v(y,T,o+"",t,i,S):r,U=L===r;if(U){var $=J(T),B=!$&&Zn(T),K=!$&&!B&&fi(T);L=T,$||B||K?J(y)?L=y:ke(y)?L=ft(y):B?(U=!1,L=jc(T,!0)):K?(U=!1,L=Yc(T,!0)):L=[]:as(T)||xr(T)?(L=y,xr(y)?L=zf(y):(!Ne(y)||On(y))&&(L=pf(T))):U=!1}U&&(S.set(T,L),d(L,T,c,v,S),S.delete(T)),Lo(t,o,L)}function $c(t,i){var o=t.length;if(o)return i+=i<0?o:0,Nn(i,o)?t[i]:r}function Fc(t,i,o){i.length?i=xe(i,function(v){return J(v)?function(S){return Pr(S,v.length===1?v[0]:v)}:v}):i=[gt];var c=-1;i=xe(i,bt(z()));var d=Dc(t,function(v,S,y){var T=xe(i,function(x){return x(v)});return{criteria:T,index:++c,value:v}});return Op(d,function(v,S){return w_(v,S,o)})}function o_(t,i){return Hc(t,i,function(o,c){return gl(t,c)})}function Hc(t,i,o){for(var c=-1,d=i.length,v={};++c<d;){var S=i[c],y=Pr(t,S);o(y,S)&&ns(v,Jn(S,t),y)}return v}function l_(t){return function(i){return Pr(i,t)}}function Ho(t,i,o,c){var d=c?Np:ei,v=-1,S=i.length,y=t;for(t===i&&(i=ft(i)),o&&(y=xe(t,bt(o)));++v<S;)for(var T=0,x=i[v],L=o?o(x):x;(T=d(y,L,T,c))>-1;)y!==t&&Ks.call(y,T,1),Ks.call(t,T,1);return t}function Vc(t,i){for(var o=t?i.length:0,c=o-1;o--;){var d=i[o];if(o==c||d!==v){var v=d;Nn(d)?Ks.call(t,d,1):Go(t,d)}}return t}function Vo(t,i){return t+Js(yc()*(i-t+1))}function u_(t,i,o,c){for(var d=-1,v=We(Ys((i-t)/(o||1)),0),S=P(v);v--;)S[c?v:++d]=t,t+=o;return S}function Wo(t,i){var o="";if(!t||i<1||i>St)return o;do i%2&&(o+=t),i=Js(i/2),i&&(t+=t);while(i);return o}function se(t,i){return sl(mf(t,i,gt),t+"")}function c_(t){return bc(hi(t))}function f_(t,i){var o=hi(t);return ga(o,Rr(i,0,o.length))}function ns(t,i,o,c){if(!Ne(t))return t;i=Jn(i,t);for(var d=-1,v=i.length,S=v-1,y=t;y!=null&&++d<v;){var T=en(i[d]),x=o;if(T==="__proto__"||T==="constructor"||T==="prototype")return t;if(d!=S){var L=y[T];x=c?c(L,T,y):r,x===r&&(x=Ne(L)?L:Nn(i[d+1])?[]:{})}Xi(y,T,x),y=y[T]}return t}var Wc=Xs?function(t,i){return Xs.set(t,i),t}:gt,h_=js?function(t,i){return js(t,"toString",{configurable:!0,enumerable:!1,value:vl(i),writable:!0})}:gt;function d_(t){return ga(hi(t))}function kt(t,i,o){var c=-1,d=t.length;i<0&&(i=-i>d?0:d+i),o=o>d?d:o,o<0&&(o+=d),d=i>o?0:o-i>>>0,i>>>=0;for(var v=P(d);++c<d;)v[c]=t[c+i];return v}function g_(t,i){var o;return jn(t,function(c,d,v){return o=i(c,d,v),!o}),!!o}function sa(t,i,o){var c=0,d=t==null?c:t.length;if(typeof i=="number"&&i===i&&d<=ze){for(;c<d;){var v=c+d>>>1,S=t[v];S!==null&&!Rt(S)&&(o?S<=i:S<i)?c=v+1:d=v}return d}return Bo(t,i,gt,o)}function Bo(t,i,o,c){var d=0,v=t==null?0:t.length;if(v===0)return 0;i=o(i);for(var S=i!==i,y=i===null,T=Rt(i),x=i===r;d<v;){var L=Js((d+v)/2),U=o(t[L]),$=U!==r,B=U===null,K=U===U,ie=Rt(U);if(S)var Q=c||K;else x?Q=K&&(c||$):y?Q=K&&$&&(c||!B):T?Q=K&&$&&!B&&(c||!ie):B||ie?Q=!1:Q=c?U<=i:U<i;Q?d=L+1:v=L}return Ze(v,ne)}function Bc(t,i){for(var o=-1,c=t.length,d=0,v=[];++o<c;){var S=t[o],y=i?i(S):S;if(!o||!tn(y,T)){var T=y;v[d++]=S===0?0:S}}return v}function Gc(t){return typeof t=="number"?t:Rt(t)?O:+t}function Tt(t){if(typeof t=="string")return t;if(J(t))return xe(t,Tt)+"";if(Rt(t))return Ec?Ec.call(t):"";var i=t+"";return i=="0"&&1/t==-Xe?"-0":i}function Yn(t,i,o){var c=-1,d=$s,v=t.length,S=!0,y=[],T=y;if(o)S=!1,d=mo;else if(v>=a){var x=i?null:T_(t);if(x)return Hs(x);S=!1,d=qi,T=new Tr}else T=i?[]:y;e:for(;++c<v;){var L=t[c],U=i?i(L):L;if(L=o||L!==0?L:0,S&&U===U){for(var $=T.length;$--;)if(T[$]===U)continue e;i&&T.push(U),y.push(L)}else d(T,U,o)||(T!==y&&T.push(U),y.push(L))}return y}function Go(t,i){i=Jn(i,t);var o=-1,c=i.length;if(!c)return!0;for(;++o<c;){var d=en(i[o]);if(d==="__proto__"&&!Se.call(t,"__proto__")||(d==="constructor"||d==="prototype")&&o<c-1)return!1}var v=wf(t,i);return v==null||delete v[en($t(i))]}function Qc(t,i,o,c){return ns(t,i,o(Pr(t,i)),c)}function aa(t,i,o,c){for(var d=t.length,v=c?d:-1;(c?v--:++v<d)&&i(t[v],v,t););return o?kt(t,c?0:v,c?v+1:d):kt(t,c?v+1:0,c?d:v)}function qc(t,i){var o=t;return o instanceof ce&&(o=o.value()),wo(i,function(c,d){return d.func.apply(d.thisArg,qn([c],d.args))},o)}function Qo(t,i,o){var c=t.length;if(c<2)return c?Yn(t[0]):[];for(var d=-1,v=P(c);++d<c;)for(var S=t[d],y=-1;++y<c;)y!=d&&(v[d]=Zi(v[d]||S,t[y],i,o));return Yn(je(v,1),i,o)}function zc(t,i,o){for(var c=-1,d=t.length,v=i.length,S={};++c<d;){var y=c<v?i[c]:r;o(S,t[c],y)}return S}function qo(t){return ke(t)?t:[]}function zo(t){return typeof t=="function"?t:gt}function Jn(t,i){return J(t)?t:nl(t,i)?[t]:Cf(ye(t))}var p_=se;function Xn(t,i,o){var c=t.length;return o=o===r?c:o,!i&&o>=c?t:kt(t,i,o)}var Kc=nv||function(t){return Ke.clearTimeout(t)};function jc(t,i){if(i)return t.slice();var o=t.length,c=vc?vc(o):new t.constructor(o);return t.copy(c),c}function Ko(t){var i=new t.constructor(t.byteLength);return new qs(i).set(new qs(t)),i}function v_(t,i){var o=i?Ko(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.byteLength)}function __(t){var i=new t.constructor(t.source,Nu.exec(t));return i.lastIndex=t.lastIndex,i}function m_(t){return Ji?be(Ji.call(t)):{}}function Yc(t,i){var o=i?Ko(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.length)}function Jc(t,i){if(t!==i){var o=t!==r,c=t===null,d=t===t,v=Rt(t),S=i!==r,y=i===null,T=i===i,x=Rt(i);if(!y&&!x&&!v&&t>i||v&&S&&T&&!y&&!x||c&&S&&T||!o&&T||!d)return 1;if(!c&&!v&&!x&&t<i||x&&o&&d&&!c&&!v||y&&o&&d||!S&&d||!T)return-1}return 0}function w_(t,i,o){for(var c=-1,d=t.criteria,v=i.criteria,S=d.length,y=o.length;++c<S;){var T=Jc(d[c],v[c]);if(T){if(c>=y)return T;var x=o[c];return T*(x=="desc"?-1:1)}}return t.index-i.index}function Xc(t,i,o,c){for(var d=-1,v=t.length,S=o.length,y=-1,T=i.length,x=We(v-S,0),L=P(T+x),U=!c;++y<T;)L[y]=i[y];for(;++d<S;)(U||d<v)&&(L[o[d]]=t[d]);for(;x--;)L[y++]=t[d++];return L}function Zc(t,i,o,c){for(var d=-1,v=t.length,S=-1,y=o.length,T=-1,x=i.length,L=We(v-y,0),U=P(L+x),$=!c;++d<L;)U[d]=t[d];for(var B=d;++T<x;)U[B+T]=i[T];for(;++S<y;)($||d<v)&&(U[B+o[S]]=t[d++]);return U}function ft(t,i){var o=-1,c=t.length;for(i||(i=P(c));++o<c;)i[o]=t[o];return i}function vn(t,i,o,c){var d=!o;o||(o={});for(var v=-1,S=i.length;++v<S;){var y=i[v],T=c?c(o[y],t[y],y,o,t):r;T===r&&(T=t[y]),d?gn(o,y,T):Xi(o,y,T)}return o}function S_(t,i){return vn(t,tl(t),i)}function y_(t,i){return vn(t,df(t),i)}function oa(t,i){return function(o,c){var d=J(o)?Rp:Bv,v=i?i():{};return d(o,t,z(c,2),v)}}function li(t){return se(function(i,o){var c=-1,d=o.length,v=d>1?o[d-1]:r,S=d>2?o[2]:r;for(v=t.length>3&&typeof v=="function"?(d--,v):r,S&&st(o[0],o[1],S)&&(v=d<3?r:v,d=1),i=be(i);++c<d;){var y=o[c];y&&t(i,y,c,v)}return i})}function ef(t,i){return function(o,c){if(o==null)return o;if(!ht(o))return t(o,c);for(var d=o.length,v=i?d:-1,S=be(o);(i?v--:++v<d)&&c(S[v],v,S)!==!1;);return o}}function tf(t){return function(i,o,c){for(var d=-1,v=be(i),S=c(i),y=S.length;y--;){var T=S[t?y:++d];if(o(v[T],T,v)===!1)break}return i}}function E_(t,i,o){var c=i&N,d=rs(t);function v(){var S=this&&this!==Ke&&this instanceof v?d:t;return S.apply(c?o:this,arguments)}return v}function nf(t){return function(i){i=ye(i);var o=ti(i)?Xt(i):r,c=o?o[0]:i.charAt(0),d=o?Xn(o,1).join(""):i.slice(1);return c[t]()+d}}function ui(t){return function(i){return wo(nh(th(i).replace(hp,"")),t,"")}}function rs(t){return function(){var i=arguments;switch(i.length){case 0:return new t;case 1:return new t(i[0]);case 2:return new t(i[0],i[1]);case 3:return new t(i[0],i[1],i[2]);case 4:return new t(i[0],i[1],i[2],i[3]);case 5:return new t(i[0],i[1],i[2],i[3],i[4]);case 6:return new t(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new t(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var o=oi(t.prototype),c=t.apply(o,i);return Ne(c)?c:o}}function C_(t,i,o){var c=rs(t);function d(){for(var v=arguments.length,S=P(v),y=v,T=ci(d);y--;)S[y]=arguments[y];var x=v<3&&S[0]!==T&&S[v-1]!==T?[]:zn(S,T);if(v-=x.length,v<o)return lf(t,i,la,d.placeholder,r,S,x,r,r,o-v);var L=this&&this!==Ke&&this instanceof d?c:t;return Et(L,this,S)}return d}function rf(t){return function(i,o,c){var d=be(i);if(!ht(i)){var v=z(o,3);i=Be(i),o=function(y){return v(d[y],y,d)}}var S=t(i,o,c);return S>-1?d[v?i[S]:S]:r}}function sf(t){return Ln(function(i){var o=i.length,c=o,d=Dt.prototype.thru;for(t&&i.reverse();c--;){var v=i[c];if(typeof v!="function")throw new Ut(u);if(d&&!S&&ha(v)=="wrapper")var S=new Dt([],!0)}for(c=S?c:o;++c<o;){v=i[c];var y=ha(v),T=y=="wrapper"?Zo(v):r;T&&rl(T[0])&&T[1]==(ge|de|_e|we)&&!T[4].length&&T[9]==1?S=S[ha(T[0])].apply(S,T[3]):S=v.length==1&&rl(v)?S[y]():S.thru(v)}return function(){var x=arguments,L=x[0];if(S&&x.length==1&&J(L))return S.plant(L).value();for(var U=0,$=o?i[U].apply(this,x):L;++U<o;)$=i[U].call(this,$);return $}})}function la(t,i,o,c,d,v,S,y,T,x){var L=i&ge,U=i&N,$=i&F,B=i&(de|te),K=i&ae,ie=$?r:rs(t);function Q(){for(var le=arguments.length,he=P(le),Pt=le;Pt--;)he[Pt]=arguments[Pt];if(B)var at=ci(Q),At=Dp(he,at);if(c&&(he=Xc(he,c,d,B)),v&&(he=Zc(he,v,S,B)),le-=At,B&&le<x){var $e=zn(he,at);return lf(t,i,la,Q.placeholder,o,he,$e,y,T,x-le)}var nn=U?o:this,Dn=$?nn[t]:t;return le=he.length,y?he=B_(he,y):K&&le>1&&he.reverse(),L&&T<le&&(he.length=T),this&&this!==Ke&&this instanceof Q&&(Dn=ie||rs(Dn)),Dn.apply(nn,he)}return Q}function af(t,i){return function(o,c){return Jv(o,t,i(c),{})}}function ua(t,i){return function(o,c){var d;if(o===r&&c===r)return i;if(o!==r&&(d=o),c!==r){if(d===r)return c;typeof o=="string"||typeof c=="string"?(o=Tt(o),c=Tt(c)):(o=Gc(o),c=Gc(c)),d=t(o,c)}return d}}function jo(t){return Ln(function(i){return i=xe(i,bt(z())),se(function(o){var c=this;return t(i,function(d){return Et(d,c,o)})})})}function ca(t,i){i=i===r?" ":Tt(i);var o=i.length;if(o<2)return o?Wo(i,t):i;var c=Wo(i,Ys(t/ni(i)));return ti(i)?Xn(Xt(c),0,t).join(""):c.slice(0,t)}function b_(t,i,o,c){var d=i&N,v=rs(t);function S(){for(var y=-1,T=arguments.length,x=-1,L=c.length,U=P(L+T),$=this&&this!==Ke&&this instanceof S?v:t;++x<L;)U[x]=c[x];for(;T--;)U[x++]=arguments[++y];return Et($,d?o:this,U)}return S}function of(t){return function(i,o,c){return c&&typeof c!="number"&&st(i,o,c)&&(o=c=r),i=Un(i),o===r?(o=i,i=0):o=Un(o),c=c===r?i<o?1:-1:Un(c),u_(i,o,c,t)}}function fa(t){return function(i,o){return typeof i=="string"&&typeof o=="string"||(i=Ft(i),o=Ft(o)),t(i,o)}}function lf(t,i,o,c,d,v,S,y,T,x){var L=i&de,U=L?S:r,$=L?r:S,B=L?v:r,K=L?r:v;i|=L?_e:pe,i&=~(L?pe:_e),i&oe||(i&=-4);var ie=[t,i,d,B,U,K,$,y,T,x],Q=o.apply(r,ie);return rl(t)&&Sf(Q,ie),Q.placeholder=c,yf(Q,t,i)}function Yo(t){var i=Ve[t];return function(o,c){if(o=Ft(o),c=c==null?0:Ze(re(c),292),c&&Sc(o)){var d=(ye(o)+"e").split("e"),v=i(d[0]+"e"+(+d[1]+c));return d=(ye(v)+"e").split("e"),+(d[0]+"e"+(+d[1]-c))}return i(o)}}var T_=si&&1/Hs(new si([,-0]))[1]==Xe?function(t){return new si(t)}:wl;function uf(t){return function(i){var o=et(i);return o==Yt?Ro(i):o==Jt?Wp(i):Up(i,t(i))}}function xn(t,i,o,c,d,v,S,y){var T=i&F;if(!T&&typeof t!="function")throw new Ut(u);var x=c?c.length:0;if(x||(i&=-97,c=d=r),S=S===r?S:We(re(S),0),y=y===r?y:re(y),x-=d?d.length:0,i&pe){var L=c,U=d;c=d=r}var $=T?r:Zo(t),B=[t,i,o,c,d,L,U,v,S,y];if($&&H_(B,$),t=B[0],i=B[1],o=B[2],c=B[3],d=B[4],y=B[9]=B[9]===r?T?0:t.length:We(B[9]-x,0),!y&&i&(de|te)&&(i&=-25),!i||i==N)var K=E_(t,i,o);else i==de||i==te?K=C_(t,i,y):(i==_e||i==(N|_e))&&!d.length?K=b_(t,i,o,c):K=la.apply(r,B);var ie=$?Wc:Sf;return yf(ie(K,B),t,i)}function cf(t,i,o,c){return t===r||tn(t,ii[o])&&!Se.call(c,o)?i:t}function ff(t,i,o,c,d,v){return Ne(t)&&Ne(i)&&(v.set(i,t),ia(t,i,r,ff,v),v.delete(i)),t}function R_(t){return as(t)?r:t}function hf(t,i,o,c,d,v){var S=o&R,y=t.length,T=i.length;if(y!=T&&!(S&&T>y))return!1;var x=v.get(t),L=v.get(i);if(x&&L)return x==i&&L==t;var U=-1,$=!0,B=o&I?new Tr:r;for(v.set(t,i),v.set(i,t);++U<y;){var K=t[U],ie=i[U];if(c)var Q=S?c(ie,K,U,i,t,v):c(K,ie,U,t,i,v);if(Q!==r){if(Q)continue;$=!1;break}if(B){if(!So(i,function(le,he){if(!qi(B,he)&&(K===le||d(K,le,o,c,v)))return B.push(he)})){$=!1;break}}else if(!(K===ie||d(K,ie,o,c,v))){$=!1;break}}return v.delete(t),v.delete(i),$}function P_(t,i,o,c,d,v,S){switch(o){case Xr:if(t.byteLength!=i.byteLength||t.byteOffset!=i.byteOffset)return!1;t=t.buffer,i=i.buffer;case Qi:return!(t.byteLength!=i.byteLength||!v(new qs(t),new qs(i)));case Tn:case Sr:case Vi:return tn(+t,+i);case yr:return t.name==i.name&&t.message==i.message;case Wi:case Bi:return t==i+"";case Yt:var y=Ro;case Jt:var T=c&R;if(y||(y=Hs),t.size!=i.size&&!T)return!1;var x=S.get(t);if(x)return x==i;c|=I,S.set(t,i);var L=hf(y(t),y(i),c,d,v,S);return S.delete(t),L;case Us:if(Ji)return Ji.call(t)==Ji.call(i)}return!1}function A_(t,i,o,c,d,v){var S=o&R,y=Jo(t),T=y.length,x=Jo(i),L=x.length;if(T!=L&&!S)return!1;for(var U=T;U--;){var $=y[U];if(!(S?$ in i:Se.call(i,$)))return!1}var B=v.get(t),K=v.get(i);if(B&&K)return B==i&&K==t;var ie=!0;v.set(t,i),v.set(i,t);for(var Q=S;++U<T;){$=y[U];var le=t[$],he=i[$];if(c)var Pt=S?c(he,le,$,i,t,v):c(le,he,$,t,i,v);if(!(Pt===r?le===he||d(le,he,o,c,v):Pt)){ie=!1;break}Q||(Q=$=="constructor")}if(ie&&!Q){var at=t.constructor,At=i.constructor;at!=At&&"constructor"in t&&"constructor"in i&&!(typeof at=="function"&&at instanceof at&&typeof At=="function"&&At instanceof At)&&(ie=!1)}return v.delete(t),v.delete(i),ie}function Ln(t){return sl(mf(t,r,Pf),t+"")}function Jo(t){return Lc(t,Be,tl)}function Xo(t){return Lc(t,dt,df)}var Zo=Xs?function(t){return Xs.get(t)}:wl;function ha(t){for(var i=t.name+"",o=ai[i],c=Se.call(ai,i)?o.length:0;c--;){var d=o[c],v=d.func;if(v==null||v==t)return d.name}return i}function ci(t){var i=Se.call(p,"placeholder")?p:t;return i.placeholder}function z(){var t=p.iteratee||_l;return t=t===_l?Uc:t,arguments.length?t(arguments[0],arguments[1]):t}function da(t,i){var o=t.__data__;return M_(i)?o[typeof i=="string"?"string":"hash"]:o.map}function el(t){for(var i=Be(t),o=i.length;o--;){var c=i[o],d=t[c];i[o]=[c,d,vf(d)]}return i}function Ar(t,i){var o=Fp(t,i);return Oc(o)?o:r}function I_(t){var i=Se.call(t,Cr),o=t[Cr];try{t[Cr]=r;var c=!0}catch{}var d=Gs.call(t);return c&&(i?t[Cr]=o:delete t[Cr]),d}var tl=Ao?function(t){return t==null?[]:(t=be(t),Qn(Ao(t),function(i){return mc.call(t,i)}))}:Sl,df=Ao?function(t){for(var i=[];t;)qn(i,tl(t)),t=zs(t);return i}:Sl,et=it;(Io&&et(new Io(new ArrayBuffer(1)))!=Xr||Ki&&et(new Ki)!=Yt||xo&&et(xo.resolve())!=Pu||si&&et(new si)!=Jt||ji&&et(new ji)!=Gi)&&(et=function(t){var i=it(t),o=i==Pn?t.constructor:r,c=o?Ir(o):"";if(c)switch(c){case fv:return Xr;case hv:return Yt;case dv:return Pu;case gv:return Jt;case pv:return Gi}return i});function x_(t,i,o){for(var c=-1,d=o.length;++c<d;){var v=o[c],S=v.size;switch(v.type){case"drop":t+=S;break;case"dropRight":i-=S;break;case"take":i=Ze(i,t+S);break;case"takeRight":t=We(t,i-S);break}}return{start:t,end:i}}function L_(t){var i=t.match($g);return i?i[1].split(Fg):[]}function gf(t,i,o){i=Jn(i,t);for(var c=-1,d=i.length,v=!1;++c<d;){var S=en(i[c]);if(!(v=t!=null&&o(t,S)))break;t=t[S]}return v||++c!=d?v:(d=t==null?0:t.length,!!d&&Sa(d)&&Nn(S,d)&&(J(t)||xr(t)))}function N_(t){var i=t.length,o=new t.constructor(i);return i&&typeof t[0]=="string"&&Se.call(t,"index")&&(o.index=t.index,o.input=t.input),o}function pf(t){return typeof t.constructor=="function"&&!is(t)?oi(zs(t)):{}}function O_(t,i,o){var c=t.constructor;switch(i){case Qi:return Ko(t);case Tn:case Sr:return new c(+t);case Xr:return v_(t,o);case Za:case eo:case to:case no:case ro:case io:case so:case ao:case oo:return Yc(t,o);case Yt:return new c;case Vi:case Bi:return new c(t);case Wi:return __(t);case Jt:return new c;case Us:return m_(t)}}function U_(t,i){var o=i.length;if(!o)return t;var c=o-1;return i[c]=(o>1?"& ":"")+i[c],i=i.join(o>2?", ":" "),t.replace(kg,`{
2
2
  /* [wrapped with `+i+`] */
3
- `)}function D_(e){return X(e)||xr(e)||!!(wc&&e&&e[wc])}function Nn(e,i){var o=typeof e;return i=i??St,!!i&&(o=="number"||o!="symbol"&&zg.test(e))&&e>-1&&e%1==0&&e<i}function st(e,i,o){if(!Ne(o))return!1;var c=typeof i;return(c=="number"?ht(o)&&Nn(i,o.length):c=="string"&&i in o)?tn(o[i],e):!1}function nl(e,i){if(X(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||Rt(e)?!0:Og.test(e)||!Ng.test(e)||i!=null&&e in Ce(i)}function M_(e){var i=typeof e;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?e!=="__proto__":e===null}function rl(e){var i=ha(e),o=p[i];if(typeof o!="function"||!(i in ce.prototype))return!1;if(e===o)return!0;var c=Zo(o);return!!c&&e===c[0]}function k_(e){return!!pc&&pc in e}var $_=Ws?On:yl;function is(e){var i=e&&e.constructor,o=typeof i=="function"&&i.prototype||ii;return e===o}function vf(e){return e===e&&!Ne(e)}function _f(e,i){return function(o){return o==null?!1:o[e]===i&&(i!==n||e in Ce(o))}}function F_(e){var i=ma(e,function(c){return o.size===_&&o.clear(),c}),o=i.cache;return i}function H_(e,i){var o=e[1],c=i[1],d=o|c,v=d<(N|F|me),S=c==me&&o==de||c==me&&o==Re&&e[7].length<=i[8]||c==(me|Re)&&i[7].length<=i[8]&&o==de;if(!(v||S))return e;c&N&&(e[2]=i[2],d|=o&N?0:J);var y=i[3];if(y){var T=e[3];e[3]=T?Xc(T,y,i[4]):y,e[4]=T?zn(e[3],w):i[4]}return y=i[5],y&&(T=e[5],e[5]=T?Zc(T,y,i[6]):y,e[6]=T?zn(e[5],w):i[6]),y=i[7],y&&(e[7]=y),c&me&&(e[8]=e[8]==null?i[8]:Ze(e[8],i[8])),e[9]==null&&(e[9]=i[9]),e[0]=i[0],e[1]=d,e}function V_(e){var i=[];if(e!=null)for(var o in Ce(e))i.push(o);return i}function W_(e){return Gs.call(e)}function mf(e,i,o){return i=We(i===n?e.length-1:i,0),function(){for(var c=arguments,d=-1,v=We(c.length-i,0),S=A(v);++d<v;)S[d]=c[i+d];d=-1;for(var y=A(i+1);++d<i;)y[d]=c[d];return y[i]=o(S),Et(e,this,y)}}function wf(e,i){return i.length<2?e:Ar(e,kt(i,0,-1))}function B_(e,i){for(var o=e.length,c=Ze(i.length,o),d=ft(e);c--;){var v=i[c];e[c]=Nn(v,o)?d[v]:n}return e}function il(e,i){if(!(i==="constructor"&&typeof e[i]=="function")&&i!="__proto__")return e[i]}var Sf=Ef(Wc),ss=iv||function(e,i){return Ke.setTimeout(e,i)},sl=Ef(h_);function yf(e,i,o){var c=i+"";return sl(e,U_(c,G_(L_(c),o)))}function Ef(e){var i=0,o=0;return function(){var c=lv(),d=W-(c-o);if(o=c,d>0){if(++i>=jt)return arguments[0]}else i=0;return e.apply(n,arguments)}}function ga(e,i){var o=-1,c=e.length,d=c-1;for(i=i===n?c:i;++o<i;){var v=Vo(o,d),S=e[v];e[v]=e[o],e[o]=S}return e.length=i,e}var Cf=F_(function(e){var i=[];return e.charCodeAt(0)===46&&i.push(""),e.replace(Ug,function(o,c,d,v){i.push(d?v.replace(Vg,"$1"):c||o)}),i});function en(e){if(typeof e=="string"||Rt(e))return e;var i=e+"";return i=="0"&&1/e==-Xe?"-0":i}function Ir(e){if(e!=null){try{return Bs.call(e)}catch{}try{return e+""}catch{}}return""}function G_(e,i){return Ct(dn,function(o){var c="_."+o[0];i&o[1]&&!$s(e,c)&&e.push(c)}),e.sort()}function bf(e){if(e instanceof ce)return e.clone();var i=new Dt(e.__wrapped__,e.__chain__);return i.__actions__=ft(e.__actions__),i.__index__=e.__index__,i.__values__=e.__values__,i}function Q_(e,i,o){(o?st(e,i,o):i===n)?i=1:i=We(re(i),0);var c=e==null?0:e.length;if(!c||i<1)return[];for(var d=0,v=0,S=A(Ys(c/i));d<c;)S[v++]=kt(e,d,d+=i);return S}function q_(e){for(var i=-1,o=e==null?0:e.length,c=0,d=[];++i<o;){var v=e[i];v&&(d[c++]=v)}return d}function z_(){var e=arguments.length;if(!e)return[];for(var i=A(e-1),o=arguments[0],c=e;c--;)i[c-1]=arguments[c];return qn(X(o)?ft(o):[o],je(i,1))}var K_=se(function(e,i){return ke(e)?Zi(e,je(i,1,ke,!0)):[]}),j_=se(function(e,i){var o=$t(i);return ke(o)&&(o=n),ke(e)?Zi(e,je(i,1,ke,!0),z(o,2)):[]}),Y_=se(function(e,i){var o=$t(i);return ke(o)&&(o=n),ke(e)?Zi(e,je(i,1,ke,!0),n,o):[]});function J_(e,i,o){var c=e==null?0:e.length;return c?(i=o||i===n?1:re(i),kt(e,i<0?0:i,c)):[]}function X_(e,i,o){var c=e==null?0:e.length;return c?(i=o||i===n?1:re(i),i=c-i,kt(e,0,i<0?0:i)):[]}function Z_(e,i){return e&&e.length?aa(e,z(i,3),!0,!0):[]}function em(e,i){return e&&e.length?aa(e,z(i,3),!0):[]}function tm(e,i,o,c){var d=e==null?0:e.length;return d?(o&&typeof o!="number"&&st(e,i,o)&&(o=0,c=d),zv(e,i,o,c)):[]}function Tf(e,i,o){var c=e==null?0:e.length;if(!c)return-1;var d=o==null?0:re(o);return d<0&&(d=We(c+d,0)),Fs(e,z(i,3),d)}function Rf(e,i,o){var c=e==null?0:e.length;if(!c)return-1;var d=c-1;return o!==n&&(d=re(o),d=o<0?We(c+d,0):Ze(d,c-1)),Fs(e,z(i,3),d,!0)}function Af(e){var i=e==null?0:e.length;return i?je(e,1):[]}function nm(e){var i=e==null?0:e.length;return i?je(e,Xe):[]}function rm(e,i){var o=e==null?0:e.length;return o?(i=i===n?1:re(i),je(e,i)):[]}function im(e){for(var i=-1,o=e==null?0:e.length,c={};++i<o;){var d=e[i];gn(c,d[0],d[1])}return c}function Pf(e){return e&&e.length?e[0]:n}function sm(e,i,o){var c=e==null?0:e.length;if(!c)return-1;var d=o==null?0:re(o);return d<0&&(d=We(c+d,0)),ei(e,i,d)}function am(e){var i=e==null?0:e.length;return i?kt(e,0,-1):[]}var om=se(function(e){var i=xe(e,qo);return i.length&&i[0]===e[0]?Mo(i):[]}),lm=se(function(e){var i=$t(e),o=xe(e,qo);return i===$t(o)?i=n:o.pop(),o.length&&o[0]===e[0]?Mo(o,z(i,2)):[]}),um=se(function(e){var i=$t(e),o=xe(e,qo);return i=typeof i=="function"?i:n,i&&o.pop(),o.length&&o[0]===e[0]?Mo(o,n,i):[]});function cm(e,i){return e==null?"":av.call(e,i)}function $t(e){var i=e==null?0:e.length;return i?e[i-1]:n}function fm(e,i,o){var c=e==null?0:e.length;if(!c)return-1;var d=c;return o!==n&&(d=re(o),d=d<0?We(c+d,0):Ze(d,c-1)),i===i?Gp(e,i,d):Fs(e,oc,d,!0)}function hm(e,i){return e&&e.length?$c(e,re(i)):n}var dm=se(If);function If(e,i){return e&&e.length&&i&&i.length?Ho(e,i):e}function gm(e,i,o){return e&&e.length&&i&&i.length?Ho(e,i,z(o,2)):e}function pm(e,i,o){return e&&e.length&&i&&i.length?Ho(e,i,n,o):e}var vm=Ln(function(e,i){var o=e==null?0:e.length,c=No(e,i);return Vc(e,xe(i,function(d){return Nn(d,o)?+d:d}).sort(Jc)),c});function _m(e,i){var o=[];if(!(e&&e.length))return o;var c=-1,d=[],v=e.length;for(i=z(i,3);++c<v;){var S=e[c];i(S,c,e)&&(o.push(S),d.push(c))}return Vc(e,d),o}function al(e){return e==null?e:cv.call(e)}function mm(e,i,o){var c=e==null?0:e.length;return c?(o&&typeof o!="number"&&st(e,i,o)?(i=0,o=c):(i=i==null?0:re(i),o=o===n?c:re(o)),kt(e,i,o)):[]}function wm(e,i){return sa(e,i)}function Sm(e,i,o){return Bo(e,i,z(o,2))}function ym(e,i){var o=e==null?0:e.length;if(o){var c=sa(e,i);if(c<o&&tn(e[c],i))return c}return-1}function Em(e,i){return sa(e,i,!0)}function Cm(e,i,o){return Bo(e,i,z(o,2),!0)}function bm(e,i){var o=e==null?0:e.length;if(o){var c=sa(e,i,!0)-1;if(tn(e[c],i))return c}return-1}function Tm(e){return e&&e.length?Bc(e):[]}function Rm(e,i){return e&&e.length?Bc(e,z(i,2)):[]}function Am(e){var i=e==null?0:e.length;return i?kt(e,1,i):[]}function Pm(e,i,o){return e&&e.length?(i=o||i===n?1:re(i),kt(e,0,i<0?0:i)):[]}function Im(e,i,o){var c=e==null?0:e.length;return c?(i=o||i===n?1:re(i),i=c-i,kt(e,i<0?0:i,c)):[]}function xm(e,i){return e&&e.length?aa(e,z(i,3),!1,!0):[]}function Lm(e,i){return e&&e.length?aa(e,z(i,3)):[]}var Nm=se(function(e){return Yn(je(e,1,ke,!0))}),Om=se(function(e){var i=$t(e);return ke(i)&&(i=n),Yn(je(e,1,ke,!0),z(i,2))}),Um=se(function(e){var i=$t(e);return i=typeof i=="function"?i:n,Yn(je(e,1,ke,!0),n,i)});function Dm(e){return e&&e.length?Yn(e):[]}function Mm(e,i){return e&&e.length?Yn(e,z(i,2)):[]}function km(e,i){return i=typeof i=="function"?i:n,e&&e.length?Yn(e,n,i):[]}function ol(e){if(!(e&&e.length))return[];var i=0;return e=Qn(e,function(o){if(ke(o))return i=We(o.length,i),!0}),bo(i,function(o){return xe(e,yo(o))})}function xf(e,i){if(!(e&&e.length))return[];var o=ol(e);return i==null?o:xe(o,function(c){return Et(i,n,c)})}var $m=se(function(e,i){return ke(e)?Zi(e,i):[]}),Fm=se(function(e){return Qo(Qn(e,ke))}),Hm=se(function(e){var i=$t(e);return ke(i)&&(i=n),Qo(Qn(e,ke),z(i,2))}),Vm=se(function(e){var i=$t(e);return i=typeof i=="function"?i:n,Qo(Qn(e,ke),n,i)}),Wm=se(ol);function Bm(e,i){return zc(e||[],i||[],Xi)}function Gm(e,i){return zc(e||[],i||[],ns)}var Qm=se(function(e){var i=e.length,o=i>1?e[i-1]:n;return o=typeof o=="function"?(e.pop(),o):n,xf(e,o)});function Lf(e){var i=p(e);return i.__chain__=!0,i}function qm(e,i){return i(e),e}function pa(e,i){return i(e)}var zm=Ln(function(e){var i=e.length,o=i?e[0]:0,c=this.__wrapped__,d=function(v){return No(v,e)};return i>1||this.__actions__.length||!(c instanceof ce)||!Nn(o)?this.thru(d):(c=c.slice(o,+o+(i?1:0)),c.__actions__.push({func:pa,args:[d],thisArg:n}),new Dt(c,this.__chain__).thru(function(v){return i&&!v.length&&v.push(n),v}))});function Km(){return Lf(this)}function jm(){return new Dt(this.value(),this.__chain__)}function Ym(){this.__values__===n&&(this.__values__=Qf(this.value()));var e=this.__index__>=this.__values__.length,i=e?n:this.__values__[this.__index__++];return{done:e,value:i}}function Jm(){return this}function Xm(e){for(var i,o=this;o instanceof ea;){var c=bf(o);c.__index__=0,c.__values__=n,i?d.__wrapped__=c:i=c;var d=c;o=o.__wrapped__}return d.__wrapped__=e,i}function Zm(){var e=this.__wrapped__;if(e instanceof ce){var i=e;return this.__actions__.length&&(i=new ce(this)),i=i.reverse(),i.__actions__.push({func:pa,args:[al],thisArg:n}),new Dt(i,this.__chain__)}return this.thru(al)}function ew(){return qc(this.__wrapped__,this.__actions__)}var tw=oa(function(e,i,o){we.call(e,o)?++e[o]:gn(e,o,1)});function nw(e,i,o){var c=X(e)?sc:qv;return o&&st(e,i,o)&&(i=n),c(e,z(i,3))}function rw(e,i){var o=X(e)?Qn:Ic;return o(e,z(i,3))}var iw=rf(Tf),sw=rf(Rf);function aw(e,i){return je(va(e,i),1)}function ow(e,i){return je(va(e,i),Xe)}function lw(e,i,o){return o=o===n?1:re(o),je(va(e,i),o)}function Nf(e,i){var o=X(e)?Ct:jn;return o(e,z(i,3))}function Of(e,i){var o=X(e)?Ap:Pc;return o(e,z(i,3))}var uw=oa(function(e,i,o){we.call(e,o)?e[o].push(i):gn(e,o,[i])});function cw(e,i,o,c){e=ht(e)?e:hi(e),o=o&&!c?re(o):0;var d=e.length;return o<0&&(o=We(d+o,0)),ya(e)?o<=d&&e.indexOf(i,o)>-1:!!d&&ei(e,i,o)>-1}var fw=se(function(e,i,o){var c=-1,d=typeof i=="function",v=ht(e)?A(e.length):[];return jn(e,function(S){v[++c]=d?Et(i,S,o):es(S,i,o)}),v}),hw=oa(function(e,i,o){gn(e,o,i)});function va(e,i){var o=X(e)?xe:Dc;return o(e,z(i,3))}function dw(e,i,o,c){return e==null?[]:(X(i)||(i=i==null?[]:[i]),o=c?n:o,X(o)||(o=o==null?[]:[o]),Fc(e,i,o))}var gw=oa(function(e,i,o){e[o?0:1].push(i)},function(){return[[],[]]});function pw(e,i,o){var c=X(e)?wo:uc,d=arguments.length<3;return c(e,z(i,4),o,d,jn)}function vw(e,i,o){var c=X(e)?Pp:uc,d=arguments.length<3;return c(e,z(i,4),o,d,Pc)}function _w(e,i){var o=X(e)?Qn:Ic;return o(e,wa(z(i,3)))}function mw(e){var i=X(e)?bc:c_;return i(e)}function ww(e,i,o){(o?st(e,i,o):i===n)?i=1:i=re(i);var c=X(e)?Vv:f_;return c(e,i)}function Sw(e){var i=X(e)?Wv:d_;return i(e)}function yw(e){if(e==null)return 0;if(ht(e))return ya(e)?ni(e):e.length;var i=et(e);return i==Yt||i==Jt?e.size:$o(e).length}function Ew(e,i,o){var c=X(e)?So:g_;return o&&st(e,i,o)&&(i=n),c(e,z(i,3))}var Cw=se(function(e,i){if(e==null)return[];var o=i.length;return o>1&&st(e,i[0],i[1])?i=[]:o>2&&st(i[0],i[1],i[2])&&(i=[i[0]]),Fc(e,je(i,1),[])}),_a=rv||function(){return Ke.Date.now()};function bw(e,i){if(typeof i!="function")throw new Ut(u);return e=re(e),function(){if(--e<1)return i.apply(this,arguments)}}function Uf(e,i,o){return i=o?n:i,i=e&&i==null?e.length:i,xn(e,me,n,n,n,n,i)}function Df(e,i){var o;if(typeof i!="function")throw new Ut(u);return e=re(e),function(){return--e>0&&(o=i.apply(this,arguments)),e<=1&&(i=n),o}}var ll=se(function(e,i,o){var c=N;if(o.length){var d=zn(o,ci(ll));c|=pe}return xn(e,c,i,o,d)}),Mf=se(function(e,i,o){var c=N|F;if(o.length){var d=zn(o,ci(Mf));c|=pe}return xn(i,c,e,o,d)});function kf(e,i,o){i=o?n:i;var c=xn(e,de,n,n,n,n,n,i);return c.placeholder=kf.placeholder,c}function $f(e,i,o){i=o?n:i;var c=xn(e,_e,n,n,n,n,n,i);return c.placeholder=$f.placeholder,c}function Ff(e,i,o){var c,d,v,S,y,T,x=0,L=!1,U=!1,$=!0;if(typeof e!="function")throw new Ut(u);i=Ft(i)||0,Ne(o)&&(L=!!o.leading,U="maxWait"in o,v=U?We(Ft(o.maxWait)||0,i):v,$="trailing"in o?!!o.trailing:$);function B($e){var nn=c,Dn=d;return c=d=n,x=$e,S=e.apply(Dn,nn),S}function K($e){return x=$e,y=ss(le,i),L?B($e):S}function ie($e){var nn=$e-T,Dn=$e-x,sh=i-nn;return U?Ze(sh,v-Dn):sh}function Q($e){var nn=$e-T,Dn=$e-x;return T===n||nn>=i||nn<0||U&&Dn>=v}function le(){var $e=_a();if(Q($e))return he($e);y=ss(le,ie($e))}function he($e){return y=n,$&&c?B($e):(c=d=n,S)}function At(){y!==n&&Kc(y),x=0,c=T=d=y=n}function at(){return y===n?S:he(_a())}function Pt(){var $e=_a(),nn=Q($e);if(c=arguments,d=this,T=$e,nn){if(y===n)return K(T);if(U)return Kc(y),y=ss(le,i),B(T)}return y===n&&(y=ss(le,i)),S}return Pt.cancel=At,Pt.flush=at,Pt}var Tw=se(function(e,i){return Ac(e,1,i)}),Rw=se(function(e,i,o){return Ac(e,Ft(i)||0,o)});function Aw(e){return xn(e,ae)}function ma(e,i){if(typeof e!="function"||i!=null&&typeof i!="function")throw new Ut(u);var o=function(){var c=arguments,d=i?i.apply(this,c):c[0],v=o.cache;if(v.has(d))return v.get(d);var S=e.apply(this,c);return o.cache=v.set(d,S)||v,S};return o.cache=new(ma.Cache||In),o}ma.Cache=In;function wa(e){if(typeof e!="function")throw new Ut(u);return function(){var i=arguments;switch(i.length){case 0:return!e.call(this);case 1:return!e.call(this,i[0]);case 2:return!e.call(this,i[0],i[1]);case 3:return!e.call(this,i[0],i[1],i[2])}return!e.apply(this,i)}}function Pw(e){return Df(2,e)}var Iw=p_(function(e,i){i=i.length==1&&X(i[0])?xe(i[0],bt(z())):xe(je(i,1),bt(z()));var o=i.length;return se(function(c){for(var d=-1,v=Ze(c.length,o);++d<v;)c[d]=i[d].call(this,c[d]);return Et(e,this,c)})}),ul=se(function(e,i){var o=zn(i,ci(ul));return xn(e,pe,n,i,o)}),Hf=se(function(e,i){var o=zn(i,ci(Hf));return xn(e,oe,n,i,o)}),xw=Ln(function(e,i){return xn(e,Re,n,n,n,i)});function Lw(e,i){if(typeof e!="function")throw new Ut(u);return i=i===n?i:re(i),se(e,i)}function Nw(e,i){if(typeof e!="function")throw new Ut(u);return i=i==null?0:We(re(i),0),se(function(o){var c=o[i],d=Xn(o,0,i);return c&&qn(d,c),Et(e,this,d)})}function Ow(e,i,o){var c=!0,d=!0;if(typeof e!="function")throw new Ut(u);return Ne(o)&&(c="leading"in o?!!o.leading:c,d="trailing"in o?!!o.trailing:d),Ff(e,i,{leading:c,maxWait:i,trailing:d})}function Uw(e){return Uf(e,1)}function Dw(e,i){return ul(zo(i),e)}function Mw(){if(!arguments.length)return[];var e=arguments[0];return X(e)?e:[e]}function kw(e){return Mt(e,C)}function $w(e,i){return i=typeof i=="function"?i:n,Mt(e,C,i)}function Fw(e){return Mt(e,m|C)}function Hw(e,i){return i=typeof i=="function"?i:n,Mt(e,m|C,i)}function Vw(e,i){return i==null||Rc(e,i,Be(i))}function tn(e,i){return e===i||e!==e&&i!==i}var Ww=fa(Do),Bw=fa(function(e,i){return e>=i}),xr=Nc((function(){return arguments})())?Nc:function(e){return Me(e)&&we.call(e,"callee")&&!mc.call(e,"callee")},X=A.isArray,Gw=Zu?bt(Zu):Xv;function ht(e){return e!=null&&Sa(e.length)&&!On(e)}function ke(e){return Me(e)&&ht(e)}function Qw(e){return e===!0||e===!1||Me(e)&&it(e)==Tn}var Zn=sv||yl,qw=ec?bt(ec):Zv;function zw(e){return Me(e)&&e.nodeType===1&&!as(e)}function Kw(e){if(e==null)return!0;if(ht(e)&&(X(e)||typeof e=="string"||typeof e.splice=="function"||Zn(e)||fi(e)||xr(e)))return!e.length;var i=et(e);if(i==Yt||i==Jt)return!e.size;if(is(e))return!$o(e).length;for(var o in e)if(we.call(e,o))return!1;return!0}function jw(e,i){return ts(e,i)}function Yw(e,i,o){o=typeof o=="function"?o:n;var c=o?o(e,i):n;return c===n?ts(e,i,n,o):!!c}function cl(e){if(!Me(e))return!1;var i=it(e);return i==yr||i==Nt||typeof e.message=="string"&&typeof e.name=="string"&&!as(e)}function Jw(e){return typeof e=="number"&&Sc(e)}function On(e){if(!Ne(e))return!1;var i=it(e);return i==Rn||i==Ru||i==wr||i==Eg}function Vf(e){return typeof e=="number"&&e==re(e)}function Sa(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=St}function Ne(e){var i=typeof e;return e!=null&&(i=="object"||i=="function")}function Me(e){return e!=null&&typeof e=="object"}var Wf=tc?bt(tc):t_;function Xw(e,i){return e===i||ko(e,i,el(i))}function Zw(e,i,o){return o=typeof o=="function"?o:n,ko(e,i,el(i),o)}function eS(e){return Bf(e)&&e!=+e}function tS(e){if($_(e))throw new Y(l);return Oc(e)}function nS(e){return e===null}function rS(e){return e==null}function Bf(e){return typeof e=="number"||Me(e)&&it(e)==Vi}function as(e){if(!Me(e)||it(e)!=An)return!1;var i=zs(e);if(i===null)return!0;var o=we.call(i,"constructor")&&i.constructor;return typeof o=="function"&&o instanceof o&&Bs.call(o)==Zp}var fl=nc?bt(nc):n_;function iS(e){return Vf(e)&&e>=-St&&e<=St}var Gf=rc?bt(rc):r_;function ya(e){return typeof e=="string"||!X(e)&&Me(e)&&it(e)==Bi}function Rt(e){return typeof e=="symbol"||Me(e)&&it(e)==Us}var fi=ic?bt(ic):i_;function sS(e){return e===n}function aS(e){return Me(e)&&et(e)==Gi}function oS(e){return Me(e)&&it(e)==bg}var lS=fa(Fo),uS=fa(function(e,i){return e<=i});function Qf(e){if(!e)return[];if(ht(e))return ya(e)?Xt(e):ft(e);if(zi&&e[zi])return Vp(e[zi]());var i=et(e),o=i==Yt?Ro:i==Jt?Hs:hi;return o(e)}function Un(e){if(!e)return e===0?e:0;if(e=Ft(e),e===Xe||e===-Xe){var i=e<0?-1:1;return i*Jr}return e===e?e:0}function re(e){var i=Un(e),o=i%1;return i===i?o?i-o:i:0}function qf(e){return e?Rr(re(e),0,Ae):0}function Ft(e){if(typeof e=="number")return e;if(Rt(e))return O;if(Ne(e)){var i=typeof e.valueOf=="function"?e.valueOf():e;e=Ne(i)?i+"":i}if(typeof e!="string")return e===0?e:+e;e=cc(e);var o=Gg.test(e);return o||qg.test(e)?bp(e.slice(2),o?2:8):Bg.test(e)?O:+e}function zf(e){return vn(e,dt(e))}function cS(e){return e?Rr(re(e),-St,St):e===0?e:0}function Se(e){return e==null?"":Tt(e)}var fS=li(function(e,i){if(is(i)||ht(i)){vn(i,Be(i),e);return}for(var o in i)we.call(i,o)&&Xi(e,o,i[o])}),Kf=li(function(e,i){vn(i,dt(i),e)}),jf=li(function(e,i,o,c){vn(i,dt(i),e,c)}),hl=li(function(e,i,o,c){vn(i,Be(i),e,c)}),hS=Ln(No);function dS(e,i){var o=oi(e);return i==null?o:Tc(o,i)}var gS=se(function(e,i){e=Ce(e);var o=-1,c=i.length,d=c>2?i[2]:n;for(d&&st(i[0],i[1],d)&&(c=1);++o<c;)for(var v=i[o],S=dt(v),y=-1,T=S.length;++y<T;){var x=S[y],L=e[x];(L===n||tn(L,ii[x])&&!we.call(e,x))&&(e[x]=v[x])}return e}),pS=se(function(e){return e.push(n,ff),Et(Yf,n,e)});function vS(e,i){return ac(e,z(i,3),pn)}function _S(e,i){return ac(e,z(i,3),Uo)}function mS(e,i){return e==null?e:Oo(e,z(i,3),dt)}function wS(e,i){return e==null?e:xc(e,z(i,3),dt)}function SS(e,i){return e&&pn(e,z(i,3))}function yS(e,i){return e&&Uo(e,z(i,3))}function ES(e){return e==null?[]:ra(e,Be(e))}function CS(e){return e==null?[]:ra(e,dt(e))}function dl(e,i,o){var c=e==null?n:Ar(e,i);return c===n?o:c}function bS(e,i){return e!=null&&gf(e,i,Kv)}function gl(e,i){return e!=null&&gf(e,i,jv)}var TS=af(function(e,i,o){i!=null&&typeof i.toString!="function"&&(i=Gs.call(i)),e[i]=o},vl(gt)),RS=af(function(e,i,o){i!=null&&typeof i.toString!="function"&&(i=Gs.call(i)),we.call(e,i)?e[i].push(o):e[i]=[o]},z),AS=se(es);function Be(e){return ht(e)?Cc(e):$o(e)}function dt(e){return ht(e)?Cc(e,!0):s_(e)}function PS(e,i){var o={};return i=z(i,3),pn(e,function(c,d,v){gn(o,i(c,d,v),c)}),o}function IS(e,i){var o={};return i=z(i,3),pn(e,function(c,d,v){gn(o,d,i(c,d,v))}),o}var xS=li(function(e,i,o){ia(e,i,o)}),Yf=li(function(e,i,o,c){ia(e,i,o,c)}),LS=Ln(function(e,i){var o={};if(e==null)return o;var c=!1;i=xe(i,function(v){return v=Jn(v,e),c||(c=v.length>1),v}),vn(e,Xo(e),o),c&&(o=Mt(o,m|E|C,R_));for(var d=i.length;d--;)Go(o,i[d]);return o});function NS(e,i){return Jf(e,wa(z(i)))}var OS=Ln(function(e,i){return e==null?{}:o_(e,i)});function Jf(e,i){if(e==null)return{};var o=xe(Xo(e),function(c){return[c]});return i=z(i),Hc(e,o,function(c,d){return i(c,d[0])})}function US(e,i,o){i=Jn(i,e);var c=-1,d=i.length;for(d||(d=1,e=n);++c<d;){var v=e==null?n:e[en(i[c])];v===n&&(c=d,v=o),e=On(v)?v.call(e):v}return e}function DS(e,i,o){return e==null?e:ns(e,i,o)}function MS(e,i,o,c){return c=typeof c=="function"?c:n,e==null?e:ns(e,i,o,c)}var Xf=uf(Be),Zf=uf(dt);function kS(e,i,o){var c=X(e),d=c||Zn(e)||fi(e);if(i=z(i,4),o==null){var v=e&&e.constructor;d?o=c?new v:[]:Ne(e)?o=On(v)?oi(zs(e)):{}:o={}}return(d?Ct:pn)(e,function(S,y,T){return i(o,S,y,T)}),o}function $S(e,i){return e==null?!0:Go(e,i)}function FS(e,i,o){return e==null?e:Qc(e,i,zo(o))}function HS(e,i,o,c){return c=typeof c=="function"?c:n,e==null?e:Qc(e,i,zo(o),c)}function hi(e){return e==null?[]:To(e,Be(e))}function VS(e){return e==null?[]:To(e,dt(e))}function WS(e,i,o){return o===n&&(o=i,i=n),o!==n&&(o=Ft(o),o=o===o?o:0),i!==n&&(i=Ft(i),i=i===i?i:0),Rr(Ft(e),i,o)}function BS(e,i,o){return i=Un(i),o===n?(o=i,i=0):o=Un(o),e=Ft(e),Yv(e,i,o)}function GS(e,i,o){if(o&&typeof o!="boolean"&&st(e,i,o)&&(i=o=n),o===n&&(typeof i=="boolean"?(o=i,i=n):typeof e=="boolean"&&(o=e,e=n)),e===n&&i===n?(e=0,i=1):(e=Un(e),i===n?(i=e,e=0):i=Un(i)),e>i){var c=e;e=i,i=c}if(o||e%1||i%1){var d=yc();return Ze(e+d*(i-e+Cp("1e-"+((d+"").length-1))),i)}return Vo(e,i)}var QS=ui(function(e,i,o){return i=i.toLowerCase(),e+(o?eh(i):i)});function eh(e){return pl(Se(e).toLowerCase())}function th(e){return e=Se(e),e&&e.replace(Kg,Mp).replace(dp,"")}function qS(e,i,o){e=Se(e),i=Tt(i);var c=e.length;o=o===n?c:Rr(re(o),0,c);var d=o;return o-=i.length,o>=0&&e.slice(o,d)==i}function zS(e){return e=Se(e),e&&Ig.test(e)?e.replace(Iu,kp):e}function KS(e){return e=Se(e),e&&Dg.test(e)?e.replace(lo,"\\$&"):e}var jS=ui(function(e,i,o){return e+(o?"-":"")+i.toLowerCase()}),YS=ui(function(e,i,o){return e+(o?" ":"")+i.toLowerCase()}),JS=nf("toLowerCase");function XS(e,i,o){e=Se(e),i=re(i);var c=i?ni(e):0;if(!i||c>=i)return e;var d=(i-c)/2;return ca(Js(d),o)+e+ca(Ys(d),o)}function ZS(e,i,o){e=Se(e),i=re(i);var c=i?ni(e):0;return i&&c<i?e+ca(i-c,o):e}function ey(e,i,o){e=Se(e),i=re(i);var c=i?ni(e):0;return i&&c<i?ca(i-c,o)+e:e}function ty(e,i,o){return o||i==null?i=0:i&&(i=+i),uv(Se(e).replace(uo,""),i||0)}function ny(e,i,o){return(o?st(e,i,o):i===n)?i=1:i=re(i),Wo(Se(e),i)}function ry(){var e=arguments,i=Se(e[0]);return e.length<3?i:i.replace(e[1],e[2])}var iy=ui(function(e,i,o){return e+(o?"_":"")+i.toLowerCase()});function sy(e,i,o){return o&&typeof o!="number"&&st(e,i,o)&&(i=o=n),o=o===n?Ae:o>>>0,o?(e=Se(e),e&&(typeof i=="string"||i!=null&&!fl(i))&&(i=Tt(i),!i&&ti(e))?Xn(Xt(e),0,o):e.split(i,o)):[]}var ay=ui(function(e,i,o){return e+(o?" ":"")+pl(i)});function oy(e,i,o){return e=Se(e),o=o==null?0:Rr(re(o),0,e.length),i=Tt(i),e.slice(o,o+i.length)==i}function ly(e,i,o){var c=p.templateSettings;o&&st(e,i,o)&&(i=n),e=Se(e),i=hl({},i,c,cf);var d=hl({},i.imports,c.imports,cf),v=Be(d),S=To(d,v);Ct(v,function(Q){if(Lu.test(Q))throw new Y(h)});var y,T,x=0,L=i.interpolate||Ds,U="__p += '",$=Ao((i.escape||Ds).source+"|"+L.source+"|"+(L===xu?Wg:Ds).source+"|"+(i.evaluate||Ds).source+"|$","g"),B="//# sourceURL="+(we.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++mp+"]")+`
4
- `;e.replace($,function(Q,le,he,At,at,Pt){return he||(he=At),U+=e.slice(x,Pt).replace(jg,$p),le&&(y=!0,U+=`' +
3
+ `)}function D_(t){return J(t)||xr(t)||!!(wc&&t&&t[wc])}function Nn(t,i){var o=typeof t;return i=i??St,!!i&&(o=="number"||o!="symbol"&&zg.test(t))&&t>-1&&t%1==0&&t<i}function st(t,i,o){if(!Ne(o))return!1;var c=typeof i;return(c=="number"?ht(o)&&Nn(i,o.length):c=="string"&&i in o)?tn(o[i],t):!1}function nl(t,i){if(J(t))return!1;var o=typeof t;return o=="number"||o=="symbol"||o=="boolean"||t==null||Rt(t)?!0:Og.test(t)||!Ng.test(t)||i!=null&&t in be(i)}function M_(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}function rl(t){var i=ha(t),o=p[i];if(typeof o!="function"||!(i in ce.prototype))return!1;if(t===o)return!0;var c=Zo(o);return!!c&&t===c[0]}function k_(t){return!!pc&&pc in t}var $_=Ws?On:yl;function is(t){var i=t&&t.constructor,o=typeof i=="function"&&i.prototype||ii;return t===o}function vf(t){return t===t&&!Ne(t)}function _f(t,i){return function(o){return o==null?!1:o[t]===i&&(i!==r||t in be(o))}}function F_(t){var i=ma(t,function(c){return o.size===_&&o.clear(),c}),o=i.cache;return i}function H_(t,i){var o=t[1],c=i[1],d=o|c,v=d<(N|F|ge),S=c==ge&&o==de||c==ge&&o==we&&t[7].length<=i[8]||c==(ge|we)&&i[7].length<=i[8]&&o==de;if(!(v||S))return t;c&N&&(t[2]=i[2],d|=o&N?0:oe);var y=i[3];if(y){var T=t[3];t[3]=T?Xc(T,y,i[4]):y,t[4]=T?zn(t[3],w):i[4]}return y=i[5],y&&(T=t[5],t[5]=T?Zc(T,y,i[6]):y,t[6]=T?zn(t[5],w):i[6]),y=i[7],y&&(t[7]=y),c&ge&&(t[8]=t[8]==null?i[8]:Ze(t[8],i[8])),t[9]==null&&(t[9]=i[9]),t[0]=i[0],t[1]=d,t}function V_(t){var i=[];if(t!=null)for(var o in be(t))i.push(o);return i}function W_(t){return Gs.call(t)}function mf(t,i,o){return i=We(i===r?t.length-1:i,0),function(){for(var c=arguments,d=-1,v=We(c.length-i,0),S=P(v);++d<v;)S[d]=c[i+d];d=-1;for(var y=P(i+1);++d<i;)y[d]=c[d];return y[i]=o(S),Et(t,this,y)}}function wf(t,i){return i.length<2?t:Pr(t,kt(i,0,-1))}function B_(t,i){for(var o=t.length,c=Ze(i.length,o),d=ft(t);c--;){var v=i[c];t[c]=Nn(v,o)?d[v]:r}return t}function il(t,i){if(!(i==="constructor"&&typeof t[i]=="function")&&i!="__proto__")return t[i]}var Sf=Ef(Wc),ss=iv||function(t,i){return Ke.setTimeout(t,i)},sl=Ef(h_);function yf(t,i,o){var c=i+"";return sl(t,U_(c,G_(L_(c),o)))}function Ef(t){var i=0,o=0;return function(){var c=lv(),d=W-(c-o);if(o=c,d>0){if(++i>=jt)return arguments[0]}else i=0;return t.apply(r,arguments)}}function ga(t,i){var o=-1,c=t.length,d=c-1;for(i=i===r?c:i;++o<i;){var v=Vo(o,d),S=t[v];t[v]=t[o],t[o]=S}return t.length=i,t}var Cf=F_(function(t){var i=[];return t.charCodeAt(0)===46&&i.push(""),t.replace(Ug,function(o,c,d,v){i.push(d?v.replace(Vg,"$1"):c||o)}),i});function en(t){if(typeof t=="string"||Rt(t))return t;var i=t+"";return i=="0"&&1/t==-Xe?"-0":i}function Ir(t){if(t!=null){try{return Bs.call(t)}catch{}try{return t+""}catch{}}return""}function G_(t,i){return Ct(dn,function(o){var c="_."+o[0];i&o[1]&&!$s(t,c)&&t.push(c)}),t.sort()}function bf(t){if(t instanceof ce)return t.clone();var i=new Dt(t.__wrapped__,t.__chain__);return i.__actions__=ft(t.__actions__),i.__index__=t.__index__,i.__values__=t.__values__,i}function Q_(t,i,o){(o?st(t,i,o):i===r)?i=1:i=We(re(i),0);var c=t==null?0:t.length;if(!c||i<1)return[];for(var d=0,v=0,S=P(Ys(c/i));d<c;)S[v++]=kt(t,d,d+=i);return S}function q_(t){for(var i=-1,o=t==null?0:t.length,c=0,d=[];++i<o;){var v=t[i];v&&(d[c++]=v)}return d}function z_(){var t=arguments.length;if(!t)return[];for(var i=P(t-1),o=arguments[0],c=t;c--;)i[c-1]=arguments[c];return qn(J(o)?ft(o):[o],je(i,1))}var K_=se(function(t,i){return ke(t)?Zi(t,je(i,1,ke,!0)):[]}),j_=se(function(t,i){var o=$t(i);return ke(o)&&(o=r),ke(t)?Zi(t,je(i,1,ke,!0),z(o,2)):[]}),Y_=se(function(t,i){var o=$t(i);return ke(o)&&(o=r),ke(t)?Zi(t,je(i,1,ke,!0),r,o):[]});function J_(t,i,o){var c=t==null?0:t.length;return c?(i=o||i===r?1:re(i),kt(t,i<0?0:i,c)):[]}function X_(t,i,o){var c=t==null?0:t.length;return c?(i=o||i===r?1:re(i),i=c-i,kt(t,0,i<0?0:i)):[]}function Z_(t,i){return t&&t.length?aa(t,z(i,3),!0,!0):[]}function em(t,i){return t&&t.length?aa(t,z(i,3),!0):[]}function tm(t,i,o,c){var d=t==null?0:t.length;return d?(o&&typeof o!="number"&&st(t,i,o)&&(o=0,c=d),zv(t,i,o,c)):[]}function Tf(t,i,o){var c=t==null?0:t.length;if(!c)return-1;var d=o==null?0:re(o);return d<0&&(d=We(c+d,0)),Fs(t,z(i,3),d)}function Rf(t,i,o){var c=t==null?0:t.length;if(!c)return-1;var d=c-1;return o!==r&&(d=re(o),d=o<0?We(c+d,0):Ze(d,c-1)),Fs(t,z(i,3),d,!0)}function Pf(t){var i=t==null?0:t.length;return i?je(t,1):[]}function nm(t){var i=t==null?0:t.length;return i?je(t,Xe):[]}function rm(t,i){var o=t==null?0:t.length;return o?(i=i===r?1:re(i),je(t,i)):[]}function im(t){for(var i=-1,o=t==null?0:t.length,c={};++i<o;){var d=t[i];gn(c,d[0],d[1])}return c}function Af(t){return t&&t.length?t[0]:r}function sm(t,i,o){var c=t==null?0:t.length;if(!c)return-1;var d=o==null?0:re(o);return d<0&&(d=We(c+d,0)),ei(t,i,d)}function am(t){var i=t==null?0:t.length;return i?kt(t,0,-1):[]}var om=se(function(t){var i=xe(t,qo);return i.length&&i[0]===t[0]?Mo(i):[]}),lm=se(function(t){var i=$t(t),o=xe(t,qo);return i===$t(o)?i=r:o.pop(),o.length&&o[0]===t[0]?Mo(o,z(i,2)):[]}),um=se(function(t){var i=$t(t),o=xe(t,qo);return i=typeof i=="function"?i:r,i&&o.pop(),o.length&&o[0]===t[0]?Mo(o,r,i):[]});function cm(t,i){return t==null?"":av.call(t,i)}function $t(t){var i=t==null?0:t.length;return i?t[i-1]:r}function fm(t,i,o){var c=t==null?0:t.length;if(!c)return-1;var d=c;return o!==r&&(d=re(o),d=d<0?We(c+d,0):Ze(d,c-1)),i===i?Gp(t,i,d):Fs(t,oc,d,!0)}function hm(t,i){return t&&t.length?$c(t,re(i)):r}var dm=se(If);function If(t,i){return t&&t.length&&i&&i.length?Ho(t,i):t}function gm(t,i,o){return t&&t.length&&i&&i.length?Ho(t,i,z(o,2)):t}function pm(t,i,o){return t&&t.length&&i&&i.length?Ho(t,i,r,o):t}var vm=Ln(function(t,i){var o=t==null?0:t.length,c=No(t,i);return Vc(t,xe(i,function(d){return Nn(d,o)?+d:d}).sort(Jc)),c});function _m(t,i){var o=[];if(!(t&&t.length))return o;var c=-1,d=[],v=t.length;for(i=z(i,3);++c<v;){var S=t[c];i(S,c,t)&&(o.push(S),d.push(c))}return Vc(t,d),o}function al(t){return t==null?t:cv.call(t)}function mm(t,i,o){var c=t==null?0:t.length;return c?(o&&typeof o!="number"&&st(t,i,o)?(i=0,o=c):(i=i==null?0:re(i),o=o===r?c:re(o)),kt(t,i,o)):[]}function wm(t,i){return sa(t,i)}function Sm(t,i,o){return Bo(t,i,z(o,2))}function ym(t,i){var o=t==null?0:t.length;if(o){var c=sa(t,i);if(c<o&&tn(t[c],i))return c}return-1}function Em(t,i){return sa(t,i,!0)}function Cm(t,i,o){return Bo(t,i,z(o,2),!0)}function bm(t,i){var o=t==null?0:t.length;if(o){var c=sa(t,i,!0)-1;if(tn(t[c],i))return c}return-1}function Tm(t){return t&&t.length?Bc(t):[]}function Rm(t,i){return t&&t.length?Bc(t,z(i,2)):[]}function Pm(t){var i=t==null?0:t.length;return i?kt(t,1,i):[]}function Am(t,i,o){return t&&t.length?(i=o||i===r?1:re(i),kt(t,0,i<0?0:i)):[]}function Im(t,i,o){var c=t==null?0:t.length;return c?(i=o||i===r?1:re(i),i=c-i,kt(t,i<0?0:i,c)):[]}function xm(t,i){return t&&t.length?aa(t,z(i,3),!1,!0):[]}function Lm(t,i){return t&&t.length?aa(t,z(i,3)):[]}var Nm=se(function(t){return Yn(je(t,1,ke,!0))}),Om=se(function(t){var i=$t(t);return ke(i)&&(i=r),Yn(je(t,1,ke,!0),z(i,2))}),Um=se(function(t){var i=$t(t);return i=typeof i=="function"?i:r,Yn(je(t,1,ke,!0),r,i)});function Dm(t){return t&&t.length?Yn(t):[]}function Mm(t,i){return t&&t.length?Yn(t,z(i,2)):[]}function km(t,i){return i=typeof i=="function"?i:r,t&&t.length?Yn(t,r,i):[]}function ol(t){if(!(t&&t.length))return[];var i=0;return t=Qn(t,function(o){if(ke(o))return i=We(o.length,i),!0}),bo(i,function(o){return xe(t,yo(o))})}function xf(t,i){if(!(t&&t.length))return[];var o=ol(t);return i==null?o:xe(o,function(c){return Et(i,r,c)})}var $m=se(function(t,i){return ke(t)?Zi(t,i):[]}),Fm=se(function(t){return Qo(Qn(t,ke))}),Hm=se(function(t){var i=$t(t);return ke(i)&&(i=r),Qo(Qn(t,ke),z(i,2))}),Vm=se(function(t){var i=$t(t);return i=typeof i=="function"?i:r,Qo(Qn(t,ke),r,i)}),Wm=se(ol);function Bm(t,i){return zc(t||[],i||[],Xi)}function Gm(t,i){return zc(t||[],i||[],ns)}var Qm=se(function(t){var i=t.length,o=i>1?t[i-1]:r;return o=typeof o=="function"?(t.pop(),o):r,xf(t,o)});function Lf(t){var i=p(t);return i.__chain__=!0,i}function qm(t,i){return i(t),t}function pa(t,i){return i(t)}var zm=Ln(function(t){var i=t.length,o=i?t[0]:0,c=this.__wrapped__,d=function(v){return No(v,t)};return i>1||this.__actions__.length||!(c instanceof ce)||!Nn(o)?this.thru(d):(c=c.slice(o,+o+(i?1:0)),c.__actions__.push({func:pa,args:[d],thisArg:r}),new Dt(c,this.__chain__).thru(function(v){return i&&!v.length&&v.push(r),v}))});function Km(){return Lf(this)}function jm(){return new Dt(this.value(),this.__chain__)}function Ym(){this.__values__===r&&(this.__values__=Qf(this.value()));var t=this.__index__>=this.__values__.length,i=t?r:this.__values__[this.__index__++];return{done:t,value:i}}function Jm(){return this}function Xm(t){for(var i,o=this;o instanceof ea;){var c=bf(o);c.__index__=0,c.__values__=r,i?d.__wrapped__=c:i=c;var d=c;o=o.__wrapped__}return d.__wrapped__=t,i}function Zm(){var t=this.__wrapped__;if(t instanceof ce){var i=t;return this.__actions__.length&&(i=new ce(this)),i=i.reverse(),i.__actions__.push({func:pa,args:[al],thisArg:r}),new Dt(i,this.__chain__)}return this.thru(al)}function ew(){return qc(this.__wrapped__,this.__actions__)}var tw=oa(function(t,i,o){Se.call(t,o)?++t[o]:gn(t,o,1)});function nw(t,i,o){var c=J(t)?sc:qv;return o&&st(t,i,o)&&(i=r),c(t,z(i,3))}function rw(t,i){var o=J(t)?Qn:Ic;return o(t,z(i,3))}var iw=rf(Tf),sw=rf(Rf);function aw(t,i){return je(va(t,i),1)}function ow(t,i){return je(va(t,i),Xe)}function lw(t,i,o){return o=o===r?1:re(o),je(va(t,i),o)}function Nf(t,i){var o=J(t)?Ct:jn;return o(t,z(i,3))}function Of(t,i){var o=J(t)?Pp:Ac;return o(t,z(i,3))}var uw=oa(function(t,i,o){Se.call(t,o)?t[o].push(i):gn(t,o,[i])});function cw(t,i,o,c){t=ht(t)?t:hi(t),o=o&&!c?re(o):0;var d=t.length;return o<0&&(o=We(d+o,0)),ya(t)?o<=d&&t.indexOf(i,o)>-1:!!d&&ei(t,i,o)>-1}var fw=se(function(t,i,o){var c=-1,d=typeof i=="function",v=ht(t)?P(t.length):[];return jn(t,function(S){v[++c]=d?Et(i,S,o):es(S,i,o)}),v}),hw=oa(function(t,i,o){gn(t,o,i)});function va(t,i){var o=J(t)?xe:Dc;return o(t,z(i,3))}function dw(t,i,o,c){return t==null?[]:(J(i)||(i=i==null?[]:[i]),o=c?r:o,J(o)||(o=o==null?[]:[o]),Fc(t,i,o))}var gw=oa(function(t,i,o){t[o?0:1].push(i)},function(){return[[],[]]});function pw(t,i,o){var c=J(t)?wo:uc,d=arguments.length<3;return c(t,z(i,4),o,d,jn)}function vw(t,i,o){var c=J(t)?Ap:uc,d=arguments.length<3;return c(t,z(i,4),o,d,Ac)}function _w(t,i){var o=J(t)?Qn:Ic;return o(t,wa(z(i,3)))}function mw(t){var i=J(t)?bc:c_;return i(t)}function ww(t,i,o){(o?st(t,i,o):i===r)?i=1:i=re(i);var c=J(t)?Vv:f_;return c(t,i)}function Sw(t){var i=J(t)?Wv:d_;return i(t)}function yw(t){if(t==null)return 0;if(ht(t))return ya(t)?ni(t):t.length;var i=et(t);return i==Yt||i==Jt?t.size:$o(t).length}function Ew(t,i,o){var c=J(t)?So:g_;return o&&st(t,i,o)&&(i=r),c(t,z(i,3))}var Cw=se(function(t,i){if(t==null)return[];var o=i.length;return o>1&&st(t,i[0],i[1])?i=[]:o>2&&st(i[0],i[1],i[2])&&(i=[i[0]]),Fc(t,je(i,1),[])}),_a=rv||function(){return Ke.Date.now()};function bw(t,i){if(typeof i!="function")throw new Ut(u);return t=re(t),function(){if(--t<1)return i.apply(this,arguments)}}function Uf(t,i,o){return i=o?r:i,i=t&&i==null?t.length:i,xn(t,ge,r,r,r,r,i)}function Df(t,i){var o;if(typeof i!="function")throw new Ut(u);return t=re(t),function(){return--t>0&&(o=i.apply(this,arguments)),t<=1&&(i=r),o}}var ll=se(function(t,i,o){var c=N;if(o.length){var d=zn(o,ci(ll));c|=_e}return xn(t,c,i,o,d)}),Mf=se(function(t,i,o){var c=N|F;if(o.length){var d=zn(o,ci(Mf));c|=_e}return xn(i,c,t,o,d)});function kf(t,i,o){i=o?r:i;var c=xn(t,de,r,r,r,r,r,i);return c.placeholder=kf.placeholder,c}function $f(t,i,o){i=o?r:i;var c=xn(t,te,r,r,r,r,r,i);return c.placeholder=$f.placeholder,c}function Ff(t,i,o){var c,d,v,S,y,T,x=0,L=!1,U=!1,$=!0;if(typeof t!="function")throw new Ut(u);i=Ft(i)||0,Ne(o)&&(L=!!o.leading,U="maxWait"in o,v=U?We(Ft(o.maxWait)||0,i):v,$="trailing"in o?!!o.trailing:$);function B($e){var nn=c,Dn=d;return c=d=r,x=$e,S=t.apply(Dn,nn),S}function K($e){return x=$e,y=ss(le,i),L?B($e):S}function ie($e){var nn=$e-T,Dn=$e-x,sh=i-nn;return U?Ze(sh,v-Dn):sh}function Q($e){var nn=$e-T,Dn=$e-x;return T===r||nn>=i||nn<0||U&&Dn>=v}function le(){var $e=_a();if(Q($e))return he($e);y=ss(le,ie($e))}function he($e){return y=r,$&&c?B($e):(c=d=r,S)}function Pt(){y!==r&&Kc(y),x=0,c=T=d=y=r}function at(){return y===r?S:he(_a())}function At(){var $e=_a(),nn=Q($e);if(c=arguments,d=this,T=$e,nn){if(y===r)return K(T);if(U)return Kc(y),y=ss(le,i),B(T)}return y===r&&(y=ss(le,i)),S}return At.cancel=Pt,At.flush=at,At}var Tw=se(function(t,i){return Pc(t,1,i)}),Rw=se(function(t,i,o){return Pc(t,Ft(i)||0,o)});function Pw(t){return xn(t,ae)}function ma(t,i){if(typeof t!="function"||i!=null&&typeof i!="function")throw new Ut(u);var o=function(){var c=arguments,d=i?i.apply(this,c):c[0],v=o.cache;if(v.has(d))return v.get(d);var S=t.apply(this,c);return o.cache=v.set(d,S)||v,S};return o.cache=new(ma.Cache||In),o}ma.Cache=In;function wa(t){if(typeof t!="function")throw new Ut(u);return function(){var i=arguments;switch(i.length){case 0:return!t.call(this);case 1:return!t.call(this,i[0]);case 2:return!t.call(this,i[0],i[1]);case 3:return!t.call(this,i[0],i[1],i[2])}return!t.apply(this,i)}}function Aw(t){return Df(2,t)}var Iw=p_(function(t,i){i=i.length==1&&J(i[0])?xe(i[0],bt(z())):xe(je(i,1),bt(z()));var o=i.length;return se(function(c){for(var d=-1,v=Ze(c.length,o);++d<v;)c[d]=i[d].call(this,c[d]);return Et(t,this,c)})}),ul=se(function(t,i){var o=zn(i,ci(ul));return xn(t,_e,r,i,o)}),Hf=se(function(t,i){var o=zn(i,ci(Hf));return xn(t,pe,r,i,o)}),xw=Ln(function(t,i){return xn(t,we,r,r,r,i)});function Lw(t,i){if(typeof t!="function")throw new Ut(u);return i=i===r?i:re(i),se(t,i)}function Nw(t,i){if(typeof t!="function")throw new Ut(u);return i=i==null?0:We(re(i),0),se(function(o){var c=o[i],d=Xn(o,0,i);return c&&qn(d,c),Et(t,this,d)})}function Ow(t,i,o){var c=!0,d=!0;if(typeof t!="function")throw new Ut(u);return Ne(o)&&(c="leading"in o?!!o.leading:c,d="trailing"in o?!!o.trailing:d),Ff(t,i,{leading:c,maxWait:i,trailing:d})}function Uw(t){return Uf(t,1)}function Dw(t,i){return ul(zo(i),t)}function Mw(){if(!arguments.length)return[];var t=arguments[0];return J(t)?t:[t]}function kw(t){return Mt(t,C)}function $w(t,i){return i=typeof i=="function"?i:r,Mt(t,C,i)}function Fw(t){return Mt(t,m|C)}function Hw(t,i){return i=typeof i=="function"?i:r,Mt(t,m|C,i)}function Vw(t,i){return i==null||Rc(t,i,Be(i))}function tn(t,i){return t===i||t!==t&&i!==i}var Ww=fa(Do),Bw=fa(function(t,i){return t>=i}),xr=Nc((function(){return arguments})())?Nc:function(t){return Me(t)&&Se.call(t,"callee")&&!mc.call(t,"callee")},J=P.isArray,Gw=Zu?bt(Zu):Xv;function ht(t){return t!=null&&Sa(t.length)&&!On(t)}function ke(t){return Me(t)&&ht(t)}function Qw(t){return t===!0||t===!1||Me(t)&&it(t)==Tn}var Zn=sv||yl,qw=ec?bt(ec):Zv;function zw(t){return Me(t)&&t.nodeType===1&&!as(t)}function Kw(t){if(t==null)return!0;if(ht(t)&&(J(t)||typeof t=="string"||typeof t.splice=="function"||Zn(t)||fi(t)||xr(t)))return!t.length;var i=et(t);if(i==Yt||i==Jt)return!t.size;if(is(t))return!$o(t).length;for(var o in t)if(Se.call(t,o))return!1;return!0}function jw(t,i){return ts(t,i)}function Yw(t,i,o){o=typeof o=="function"?o:r;var c=o?o(t,i):r;return c===r?ts(t,i,r,o):!!c}function cl(t){if(!Me(t))return!1;var i=it(t);return i==yr||i==Nt||typeof t.message=="string"&&typeof t.name=="string"&&!as(t)}function Jw(t){return typeof t=="number"&&Sc(t)}function On(t){if(!Ne(t))return!1;var i=it(t);return i==Rn||i==Ru||i==wr||i==Eg}function Vf(t){return typeof t=="number"&&t==re(t)}function Sa(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=St}function Ne(t){var i=typeof t;return t!=null&&(i=="object"||i=="function")}function Me(t){return t!=null&&typeof t=="object"}var Wf=tc?bt(tc):t_;function Xw(t,i){return t===i||ko(t,i,el(i))}function Zw(t,i,o){return o=typeof o=="function"?o:r,ko(t,i,el(i),o)}function eS(t){return Bf(t)&&t!=+t}function tS(t){if($_(t))throw new Y(l);return Oc(t)}function nS(t){return t===null}function rS(t){return t==null}function Bf(t){return typeof t=="number"||Me(t)&&it(t)==Vi}function as(t){if(!Me(t)||it(t)!=Pn)return!1;var i=zs(t);if(i===null)return!0;var o=Se.call(i,"constructor")&&i.constructor;return typeof o=="function"&&o instanceof o&&Bs.call(o)==Zp}var fl=nc?bt(nc):n_;function iS(t){return Vf(t)&&t>=-St&&t<=St}var Gf=rc?bt(rc):r_;function ya(t){return typeof t=="string"||!J(t)&&Me(t)&&it(t)==Bi}function Rt(t){return typeof t=="symbol"||Me(t)&&it(t)==Us}var fi=ic?bt(ic):i_;function sS(t){return t===r}function aS(t){return Me(t)&&et(t)==Gi}function oS(t){return Me(t)&&it(t)==bg}var lS=fa(Fo),uS=fa(function(t,i){return t<=i});function Qf(t){if(!t)return[];if(ht(t))return ya(t)?Xt(t):ft(t);if(zi&&t[zi])return Vp(t[zi]());var i=et(t),o=i==Yt?Ro:i==Jt?Hs:hi;return o(t)}function Un(t){if(!t)return t===0?t:0;if(t=Ft(t),t===Xe||t===-Xe){var i=t<0?-1:1;return i*Jr}return t===t?t:0}function re(t){var i=Un(t),o=i%1;return i===i?o?i-o:i:0}function qf(t){return t?Rr(re(t),0,Pe):0}function Ft(t){if(typeof t=="number")return t;if(Rt(t))return O;if(Ne(t)){var i=typeof t.valueOf=="function"?t.valueOf():t;t=Ne(i)?i+"":i}if(typeof t!="string")return t===0?t:+t;t=cc(t);var o=Gg.test(t);return o||qg.test(t)?bp(t.slice(2),o?2:8):Bg.test(t)?O:+t}function zf(t){return vn(t,dt(t))}function cS(t){return t?Rr(re(t),-St,St):t===0?t:0}function ye(t){return t==null?"":Tt(t)}var fS=li(function(t,i){if(is(i)||ht(i)){vn(i,Be(i),t);return}for(var o in i)Se.call(i,o)&&Xi(t,o,i[o])}),Kf=li(function(t,i){vn(i,dt(i),t)}),jf=li(function(t,i,o,c){vn(i,dt(i),t,c)}),hl=li(function(t,i,o,c){vn(i,Be(i),t,c)}),hS=Ln(No);function dS(t,i){var o=oi(t);return i==null?o:Tc(o,i)}var gS=se(function(t,i){t=be(t);var o=-1,c=i.length,d=c>2?i[2]:r;for(d&&st(i[0],i[1],d)&&(c=1);++o<c;)for(var v=i[o],S=dt(v),y=-1,T=S.length;++y<T;){var x=S[y],L=t[x];(L===r||tn(L,ii[x])&&!Se.call(t,x))&&(t[x]=v[x])}return t}),pS=se(function(t){return t.push(r,ff),Et(Yf,r,t)});function vS(t,i){return ac(t,z(i,3),pn)}function _S(t,i){return ac(t,z(i,3),Uo)}function mS(t,i){return t==null?t:Oo(t,z(i,3),dt)}function wS(t,i){return t==null?t:xc(t,z(i,3),dt)}function SS(t,i){return t&&pn(t,z(i,3))}function yS(t,i){return t&&Uo(t,z(i,3))}function ES(t){return t==null?[]:ra(t,Be(t))}function CS(t){return t==null?[]:ra(t,dt(t))}function dl(t,i,o){var c=t==null?r:Pr(t,i);return c===r?o:c}function bS(t,i){return t!=null&&gf(t,i,Kv)}function gl(t,i){return t!=null&&gf(t,i,jv)}var TS=af(function(t,i,o){i!=null&&typeof i.toString!="function"&&(i=Gs.call(i)),t[i]=o},vl(gt)),RS=af(function(t,i,o){i!=null&&typeof i.toString!="function"&&(i=Gs.call(i)),Se.call(t,i)?t[i].push(o):t[i]=[o]},z),PS=se(es);function Be(t){return ht(t)?Cc(t):$o(t)}function dt(t){return ht(t)?Cc(t,!0):s_(t)}function AS(t,i){var o={};return i=z(i,3),pn(t,function(c,d,v){gn(o,i(c,d,v),c)}),o}function IS(t,i){var o={};return i=z(i,3),pn(t,function(c,d,v){gn(o,d,i(c,d,v))}),o}var xS=li(function(t,i,o){ia(t,i,o)}),Yf=li(function(t,i,o,c){ia(t,i,o,c)}),LS=Ln(function(t,i){var o={};if(t==null)return o;var c=!1;i=xe(i,function(v){return v=Jn(v,t),c||(c=v.length>1),v}),vn(t,Xo(t),o),c&&(o=Mt(o,m|E|C,R_));for(var d=i.length;d--;)Go(o,i[d]);return o});function NS(t,i){return Jf(t,wa(z(i)))}var OS=Ln(function(t,i){return t==null?{}:o_(t,i)});function Jf(t,i){if(t==null)return{};var o=xe(Xo(t),function(c){return[c]});return i=z(i),Hc(t,o,function(c,d){return i(c,d[0])})}function US(t,i,o){i=Jn(i,t);var c=-1,d=i.length;for(d||(d=1,t=r);++c<d;){var v=t==null?r:t[en(i[c])];v===r&&(c=d,v=o),t=On(v)?v.call(t):v}return t}function DS(t,i,o){return t==null?t:ns(t,i,o)}function MS(t,i,o,c){return c=typeof c=="function"?c:r,t==null?t:ns(t,i,o,c)}var Xf=uf(Be),Zf=uf(dt);function kS(t,i,o){var c=J(t),d=c||Zn(t)||fi(t);if(i=z(i,4),o==null){var v=t&&t.constructor;d?o=c?new v:[]:Ne(t)?o=On(v)?oi(zs(t)):{}:o={}}return(d?Ct:pn)(t,function(S,y,T){return i(o,S,y,T)}),o}function $S(t,i){return t==null?!0:Go(t,i)}function FS(t,i,o){return t==null?t:Qc(t,i,zo(o))}function HS(t,i,o,c){return c=typeof c=="function"?c:r,t==null?t:Qc(t,i,zo(o),c)}function hi(t){return t==null?[]:To(t,Be(t))}function VS(t){return t==null?[]:To(t,dt(t))}function WS(t,i,o){return o===r&&(o=i,i=r),o!==r&&(o=Ft(o),o=o===o?o:0),i!==r&&(i=Ft(i),i=i===i?i:0),Rr(Ft(t),i,o)}function BS(t,i,o){return i=Un(i),o===r?(o=i,i=0):o=Un(o),t=Ft(t),Yv(t,i,o)}function GS(t,i,o){if(o&&typeof o!="boolean"&&st(t,i,o)&&(i=o=r),o===r&&(typeof i=="boolean"?(o=i,i=r):typeof t=="boolean"&&(o=t,t=r)),t===r&&i===r?(t=0,i=1):(t=Un(t),i===r?(i=t,t=0):i=Un(i)),t>i){var c=t;t=i,i=c}if(o||t%1||i%1){var d=yc();return Ze(t+d*(i-t+Cp("1e-"+((d+"").length-1))),i)}return Vo(t,i)}var QS=ui(function(t,i,o){return i=i.toLowerCase(),t+(o?eh(i):i)});function eh(t){return pl(ye(t).toLowerCase())}function th(t){return t=ye(t),t&&t.replace(Kg,Mp).replace(dp,"")}function qS(t,i,o){t=ye(t),i=Tt(i);var c=t.length;o=o===r?c:Rr(re(o),0,c);var d=o;return o-=i.length,o>=0&&t.slice(o,d)==i}function zS(t){return t=ye(t),t&&Ig.test(t)?t.replace(Iu,kp):t}function KS(t){return t=ye(t),t&&Dg.test(t)?t.replace(lo,"\\$&"):t}var jS=ui(function(t,i,o){return t+(o?"-":"")+i.toLowerCase()}),YS=ui(function(t,i,o){return t+(o?" ":"")+i.toLowerCase()}),JS=nf("toLowerCase");function XS(t,i,o){t=ye(t),i=re(i);var c=i?ni(t):0;if(!i||c>=i)return t;var d=(i-c)/2;return ca(Js(d),o)+t+ca(Ys(d),o)}function ZS(t,i,o){t=ye(t),i=re(i);var c=i?ni(t):0;return i&&c<i?t+ca(i-c,o):t}function ey(t,i,o){t=ye(t),i=re(i);var c=i?ni(t):0;return i&&c<i?ca(i-c,o)+t:t}function ty(t,i,o){return o||i==null?i=0:i&&(i=+i),uv(ye(t).replace(uo,""),i||0)}function ny(t,i,o){return(o?st(t,i,o):i===r)?i=1:i=re(i),Wo(ye(t),i)}function ry(){var t=arguments,i=ye(t[0]);return t.length<3?i:i.replace(t[1],t[2])}var iy=ui(function(t,i,o){return t+(o?"_":"")+i.toLowerCase()});function sy(t,i,o){return o&&typeof o!="number"&&st(t,i,o)&&(i=o=r),o=o===r?Pe:o>>>0,o?(t=ye(t),t&&(typeof i=="string"||i!=null&&!fl(i))&&(i=Tt(i),!i&&ti(t))?Xn(Xt(t),0,o):t.split(i,o)):[]}var ay=ui(function(t,i,o){return t+(o?" ":"")+pl(i)});function oy(t,i,o){return t=ye(t),o=o==null?0:Rr(re(o),0,t.length),i=Tt(i),t.slice(o,o+i.length)==i}function ly(t,i,o){var c=p.templateSettings;o&&st(t,i,o)&&(i=r),t=ye(t),i=hl({},i,c,cf);var d=hl({},i.imports,c.imports,cf),v=Be(d),S=To(d,v);Ct(v,function(Q){if(Lu.test(Q))throw new Y(h)});var y,T,x=0,L=i.interpolate||Ds,U="__p += '",$=Po((i.escape||Ds).source+"|"+L.source+"|"+(L===xu?Wg:Ds).source+"|"+(i.evaluate||Ds).source+"|$","g"),B="//# sourceURL="+(Se.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++mp+"]")+`
4
+ `;t.replace($,function(Q,le,he,Pt,at,At){return he||(he=Pt),U+=t.slice(x,At).replace(jg,$p),le&&(y=!0,U+=`' +
5
5
  __e(`+le+`) +
6
6
  '`),at&&(T=!0,U+=`';
7
7
  `+at+`;
8
8
  __p += '`),he&&(U+=`' +
9
9
  ((__t = (`+he+`)) == null ? '' : __t) +
10
- '`),x=Pt+Q.length,Q}),U+=`';
11
- `;var K=we.call(i,"variable")&&i.variable;if(!K)U=`with (obj) {
10
+ '`),x=At+Q.length,Q}),U+=`';
11
+ `;var K=Se.call(i,"variable")&&i.variable;if(!K)U=`with (obj) {
12
12
  `+U+`
13
13
  }
14
- `;else if(Lu.test(K))throw new Y(f);U=(T?U.replace(Tg,""):U).replace(Rg,"$1").replace(Ag,"$1;"),U="function("+(K||"obj")+`) {
14
+ `;else if(Lu.test(K))throw new Y(f);U=(T?U.replace(Tg,""):U).replace(Rg,"$1").replace(Pg,"$1;"),U="function("+(K||"obj")+`) {
15
15
  `+(K?"":`obj || (obj = {});
16
16
  `)+"var __t, __p = ''"+(y?", __e = _.escape":"")+(T?`, __j = Array.prototype.join;
17
17
  function print() { __p += __j.call(arguments, '') }
18
18
  `:`;
19
19
  `)+U+`return __p
20
- }`;var ie=rh(function(){return ve(v,B+"return "+U).apply(n,S)});if(ie.source=U,cl(ie))throw ie;return ie}function uy(e){return Se(e).toLowerCase()}function cy(e){return Se(e).toUpperCase()}function fy(e,i,o){if(e=Se(e),e&&(o||i===n))return cc(e);if(!e||!(i=Tt(i)))return e;var c=Xt(e),d=Xt(i),v=fc(c,d),S=hc(c,d)+1;return Xn(c,v,S).join("")}function hy(e,i,o){if(e=Se(e),e&&(o||i===n))return e.slice(0,gc(e)+1);if(!e||!(i=Tt(i)))return e;var c=Xt(e),d=hc(c,Xt(i))+1;return Xn(c,0,d).join("")}function dy(e,i,o){if(e=Se(e),e&&(o||i===n))return e.replace(uo,"");if(!e||!(i=Tt(i)))return e;var c=Xt(e),d=fc(c,Xt(i));return Xn(c,d).join("")}function gy(e,i){var o=ut,c=ct;if(Ne(i)){var d="separator"in i?i.separator:d;o="length"in i?re(i.length):o,c="omission"in i?Tt(i.omission):c}e=Se(e);var v=e.length;if(ti(e)){var S=Xt(e);v=S.length}if(o>=v)return e;var y=o-ni(c);if(y<1)return c;var T=S?Xn(S,0,y).join(""):e.slice(0,y);if(d===n)return T+c;if(S&&(y+=T.length-y),fl(d)){if(e.slice(y).search(d)){var x,L=T;for(d.global||(d=Ao(d.source,Se(Nu.exec(d))+"g")),d.lastIndex=0;x=d.exec(L);)var U=x.index;T=T.slice(0,U===n?y:U)}}else if(e.indexOf(Tt(d),y)!=y){var $=T.lastIndexOf(d);$>-1&&(T=T.slice(0,$))}return T+c}function py(e){return e=Se(e),e&&Pg.test(e)?e.replace(Pu,Qp):e}var vy=ui(function(e,i,o){return e+(o?" ":"")+i.toUpperCase()}),pl=nf("toUpperCase");function nh(e,i,o){return e=Se(e),i=o?n:i,i===n?Hp(e)?Kp(e):Lp(e):e.match(i)||[]}var rh=se(function(e,i){try{return Et(e,n,i)}catch(o){return cl(o)?o:new Y(o)}}),_y=Ln(function(e,i){return Ct(i,function(o){o=en(o),gn(e,o,ll(e[o],e))}),e});function my(e){var i=e==null?0:e.length,o=z();return e=i?xe(e,function(c){if(typeof c[1]!="function")throw new Ut(u);return[o(c[0]),c[1]]}):[],se(function(c){for(var d=-1;++d<i;){var v=e[d];if(Et(v[0],this,c))return Et(v[1],this,c)}})}function wy(e){return Qv(Mt(e,m))}function vl(e){return function(){return e}}function Sy(e,i){return e==null||e!==e?i:e}var yy=sf(),Ey=sf(!0);function gt(e){return e}function _l(e){return Uc(typeof e=="function"?e:Mt(e,m))}function Cy(e){return Mc(Mt(e,m))}function by(e,i){return kc(e,Mt(i,m))}var Ty=se(function(e,i){return function(o){return es(o,e,i)}}),Ry=se(function(e,i){return function(o){return es(e,o,i)}});function ml(e,i,o){var c=Be(i),d=ra(i,c);o==null&&!(Ne(i)&&(d.length||!c.length))&&(o=i,i=e,e=this,d=ra(i,Be(i)));var v=!(Ne(o)&&"chain"in o)||!!o.chain,S=On(e);return Ct(d,function(y){var T=i[y];e[y]=T,S&&(e.prototype[y]=function(){var x=this.__chain__;if(v||x){var L=e(this.__wrapped__),U=L.__actions__=ft(this.__actions__);return U.push({func:T,args:arguments,thisArg:e}),L.__chain__=x,L}return T.apply(e,qn([this.value()],arguments))})}),e}function Ay(){return Ke._===this&&(Ke._=ev),this}function wl(){}function Py(e){return e=re(e),se(function(i){return $c(i,e)})}var Iy=jo(xe),xy=jo(sc),Ly=jo(So);function ih(e){return nl(e)?yo(en(e)):l_(e)}function Ny(e){return function(i){return e==null?n:Ar(e,i)}}var Oy=of(),Uy=of(!0);function Sl(){return[]}function yl(){return!1}function Dy(){return{}}function My(){return""}function ky(){return!0}function $y(e,i){if(e=re(e),e<1||e>St)return[];var o=Ae,c=Ze(e,Ae);i=z(i),e-=Ae;for(var d=bo(c,i);++o<e;)i(o);return d}function Fy(e){return X(e)?xe(e,en):Rt(e)?[e]:ft(Cf(Se(e)))}function Hy(e){var i=++Xp;return Se(e)+i}var Vy=ua(function(e,i){return e+i},0),Wy=Yo("ceil"),By=ua(function(e,i){return e/i},1),Gy=Yo("floor");function Qy(e){return e&&e.length?na(e,gt,Do):n}function qy(e,i){return e&&e.length?na(e,z(i,2),Do):n}function zy(e){return lc(e,gt)}function Ky(e,i){return lc(e,z(i,2))}function jy(e){return e&&e.length?na(e,gt,Fo):n}function Yy(e,i){return e&&e.length?na(e,z(i,2),Fo):n}var Jy=ua(function(e,i){return e*i},1),Xy=Yo("round"),Zy=ua(function(e,i){return e-i},0);function eE(e){return e&&e.length?Co(e,gt):0}function tE(e,i){return e&&e.length?Co(e,z(i,2)):0}return p.after=bw,p.ary=Uf,p.assign=fS,p.assignIn=Kf,p.assignInWith=jf,p.assignWith=hl,p.at=hS,p.before=Df,p.bind=ll,p.bindAll=_y,p.bindKey=Mf,p.castArray=Mw,p.chain=Lf,p.chunk=Q_,p.compact=q_,p.concat=z_,p.cond=my,p.conforms=wy,p.constant=vl,p.countBy=tw,p.create=dS,p.curry=kf,p.curryRight=$f,p.debounce=Ff,p.defaults=gS,p.defaultsDeep=pS,p.defer=Tw,p.delay=Rw,p.difference=K_,p.differenceBy=j_,p.differenceWith=Y_,p.drop=J_,p.dropRight=X_,p.dropRightWhile=Z_,p.dropWhile=em,p.fill=tm,p.filter=rw,p.flatMap=aw,p.flatMapDeep=ow,p.flatMapDepth=lw,p.flatten=Af,p.flattenDeep=nm,p.flattenDepth=rm,p.flip=Aw,p.flow=yy,p.flowRight=Ey,p.fromPairs=im,p.functions=ES,p.functionsIn=CS,p.groupBy=uw,p.initial=am,p.intersection=om,p.intersectionBy=lm,p.intersectionWith=um,p.invert=TS,p.invertBy=RS,p.invokeMap=fw,p.iteratee=_l,p.keyBy=hw,p.keys=Be,p.keysIn=dt,p.map=va,p.mapKeys=PS,p.mapValues=IS,p.matches=Cy,p.matchesProperty=by,p.memoize=ma,p.merge=xS,p.mergeWith=Yf,p.method=Ty,p.methodOf=Ry,p.mixin=ml,p.negate=wa,p.nthArg=Py,p.omit=LS,p.omitBy=NS,p.once=Pw,p.orderBy=dw,p.over=Iy,p.overArgs=Iw,p.overEvery=xy,p.overSome=Ly,p.partial=ul,p.partialRight=Hf,p.partition=gw,p.pick=OS,p.pickBy=Jf,p.property=ih,p.propertyOf=Ny,p.pull=dm,p.pullAll=If,p.pullAllBy=gm,p.pullAllWith=pm,p.pullAt=vm,p.range=Oy,p.rangeRight=Uy,p.rearg=xw,p.reject=_w,p.remove=_m,p.rest=Lw,p.reverse=al,p.sampleSize=ww,p.set=DS,p.setWith=MS,p.shuffle=Sw,p.slice=mm,p.sortBy=Cw,p.sortedUniq=Tm,p.sortedUniqBy=Rm,p.split=sy,p.spread=Nw,p.tail=Am,p.take=Pm,p.takeRight=Im,p.takeRightWhile=xm,p.takeWhile=Lm,p.tap=qm,p.throttle=Ow,p.thru=pa,p.toArray=Qf,p.toPairs=Xf,p.toPairsIn=Zf,p.toPath=Fy,p.toPlainObject=zf,p.transform=kS,p.unary=Uw,p.union=Nm,p.unionBy=Om,p.unionWith=Um,p.uniq=Dm,p.uniqBy=Mm,p.uniqWith=km,p.unset=$S,p.unzip=ol,p.unzipWith=xf,p.update=FS,p.updateWith=HS,p.values=hi,p.valuesIn=VS,p.without=$m,p.words=nh,p.wrap=Dw,p.xor=Fm,p.xorBy=Hm,p.xorWith=Vm,p.zip=Wm,p.zipObject=Bm,p.zipObjectDeep=Gm,p.zipWith=Qm,p.entries=Xf,p.entriesIn=Zf,p.extend=Kf,p.extendWith=jf,ml(p,p),p.add=Vy,p.attempt=rh,p.camelCase=QS,p.capitalize=eh,p.ceil=Wy,p.clamp=WS,p.clone=kw,p.cloneDeep=Fw,p.cloneDeepWith=Hw,p.cloneWith=$w,p.conformsTo=Vw,p.deburr=th,p.defaultTo=Sy,p.divide=By,p.endsWith=qS,p.eq=tn,p.escape=zS,p.escapeRegExp=KS,p.every=nw,p.find=iw,p.findIndex=Tf,p.findKey=vS,p.findLast=sw,p.findLastIndex=Rf,p.findLastKey=_S,p.floor=Gy,p.forEach=Nf,p.forEachRight=Of,p.forIn=mS,p.forInRight=wS,p.forOwn=SS,p.forOwnRight=yS,p.get=dl,p.gt=Ww,p.gte=Bw,p.has=bS,p.hasIn=gl,p.head=Pf,p.identity=gt,p.includes=cw,p.indexOf=sm,p.inRange=BS,p.invoke=AS,p.isArguments=xr,p.isArray=X,p.isArrayBuffer=Gw,p.isArrayLike=ht,p.isArrayLikeObject=ke,p.isBoolean=Qw,p.isBuffer=Zn,p.isDate=qw,p.isElement=zw,p.isEmpty=Kw,p.isEqual=jw,p.isEqualWith=Yw,p.isError=cl,p.isFinite=Jw,p.isFunction=On,p.isInteger=Vf,p.isLength=Sa,p.isMap=Wf,p.isMatch=Xw,p.isMatchWith=Zw,p.isNaN=eS,p.isNative=tS,p.isNil=rS,p.isNull=nS,p.isNumber=Bf,p.isObject=Ne,p.isObjectLike=Me,p.isPlainObject=as,p.isRegExp=fl,p.isSafeInteger=iS,p.isSet=Gf,p.isString=ya,p.isSymbol=Rt,p.isTypedArray=fi,p.isUndefined=sS,p.isWeakMap=aS,p.isWeakSet=oS,p.join=cm,p.kebabCase=jS,p.last=$t,p.lastIndexOf=fm,p.lowerCase=YS,p.lowerFirst=JS,p.lt=lS,p.lte=uS,p.max=Qy,p.maxBy=qy,p.mean=zy,p.meanBy=Ky,p.min=jy,p.minBy=Yy,p.stubArray=Sl,p.stubFalse=yl,p.stubObject=Dy,p.stubString=My,p.stubTrue=ky,p.multiply=Jy,p.nth=hm,p.noConflict=Ay,p.noop=wl,p.now=_a,p.pad=XS,p.padEnd=ZS,p.padStart=ey,p.parseInt=ty,p.random=GS,p.reduce=pw,p.reduceRight=vw,p.repeat=ny,p.replace=ry,p.result=US,p.round=Xy,p.runInContext=b,p.sample=mw,p.size=yw,p.snakeCase=iy,p.some=Ew,p.sortedIndex=wm,p.sortedIndexBy=Sm,p.sortedIndexOf=ym,p.sortedLastIndex=Em,p.sortedLastIndexBy=Cm,p.sortedLastIndexOf=bm,p.startCase=ay,p.startsWith=oy,p.subtract=Zy,p.sum=eE,p.sumBy=tE,p.template=ly,p.times=$y,p.toFinite=Un,p.toInteger=re,p.toLength=qf,p.toLower=uy,p.toNumber=Ft,p.toSafeInteger=cS,p.toString=Se,p.toUpper=cy,p.trim=fy,p.trimEnd=hy,p.trimStart=dy,p.truncate=gy,p.unescape=py,p.uniqueId=Hy,p.upperCase=vy,p.upperFirst=pl,p.each=Nf,p.eachRight=Of,p.first=Pf,ml(p,(function(){var e={};return pn(p,function(i,o){we.call(p.prototype,o)||(e[o]=i)}),e})(),{chain:!1}),p.VERSION=s,Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){p[e].placeholder=p}),Ct(["drop","take"],function(e,i){ce.prototype[e]=function(o){o=o===n?1:We(re(o),0);var c=this.__filtered__&&!i?new ce(this):this.clone();return c.__filtered__?c.__takeCount__=Ze(o,c.__takeCount__):c.__views__.push({size:Ze(o,Ae),type:e+(c.__dir__<0?"Right":"")}),c},ce.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),Ct(["filter","map","takeWhile"],function(e,i){var o=i+1,c=o==Gn||o==wt;ce.prototype[e]=function(d){var v=this.clone();return v.__iteratees__.push({iteratee:z(d,3),type:o}),v.__filtered__=v.__filtered__||c,v}}),Ct(["head","last"],function(e,i){var o="take"+(i?"Right":"");ce.prototype[e]=function(){return this[o](1).value()[0]}}),Ct(["initial","tail"],function(e,i){var o="drop"+(i?"":"Right");ce.prototype[e]=function(){return this.__filtered__?new ce(this):this[o](1)}}),ce.prototype.compact=function(){return this.filter(gt)},ce.prototype.find=function(e){return this.filter(e).head()},ce.prototype.findLast=function(e){return this.reverse().find(e)},ce.prototype.invokeMap=se(function(e,i){return typeof e=="function"?new ce(this):this.map(function(o){return es(o,e,i)})}),ce.prototype.reject=function(e){return this.filter(wa(z(e)))},ce.prototype.slice=function(e,i){e=re(e);var o=this;return o.__filtered__&&(e>0||i<0)?new ce(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),i!==n&&(i=re(i),o=i<0?o.dropRight(-i):o.take(i-e)),o)},ce.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ce.prototype.toArray=function(){return this.take(Ae)},pn(ce.prototype,function(e,i){var o=/^(?:filter|find|map|reject)|While$/.test(i),c=/^(?:head|last)$/.test(i),d=p[c?"take"+(i=="last"?"Right":""):i],v=c||/^find/.test(i);d&&(p.prototype[i]=function(){var S=this.__wrapped__,y=c?[1]:arguments,T=S instanceof ce,x=y[0],L=T||X(S),U=function(le){var he=d.apply(p,qn([le],y));return c&&$?he[0]:he};L&&o&&typeof x=="function"&&x.length!=1&&(T=L=!1);var $=this.__chain__,B=!!this.__actions__.length,K=v&&!$,ie=T&&!B;if(!v&&L){S=ie?S:new ce(this);var Q=e.apply(S,y);return Q.__actions__.push({func:pa,args:[U],thisArg:n}),new Dt(Q,$)}return K&&ie?e.apply(this,y):(Q=this.thru(U),K?c?Q.value()[0]:Q.value():Q)})}),Ct(["pop","push","shift","sort","splice","unshift"],function(e){var i=Vs[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",c=/^(?:pop|shift)$/.test(e);p.prototype[e]=function(){var d=arguments;if(c&&!this.__chain__){var v=this.value();return i.apply(X(v)?v:[],d)}return this[o](function(S){return i.apply(X(S)?S:[],d)})}}),pn(ce.prototype,function(e,i){var o=p[i];if(o){var c=o.name+"";we.call(ai,c)||(ai[c]=[]),ai[c].push({name:i,func:o})}}),ai[la(n,F).name]=[{name:"wrapper",func:n}],ce.prototype.clone=vv,ce.prototype.reverse=_v,ce.prototype.value=mv,p.prototype.at=zm,p.prototype.chain=Km,p.prototype.commit=jm,p.prototype.next=Ym,p.prototype.plant=Xm,p.prototype.reverse=Zm,p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=ew,p.prototype.first=p.prototype.head,zi&&(p.prototype[zi]=Jm),p}),ri=jp();Er?((Er.exports=ri)._=ri,vo._=ri):Ke._=ri}).call(rE)})(os,os.exports)),os.exports}var Ul=iE();const M={getRandomId:()=>window.crypto.getRandomValues(new Uint32Array(1))[0],isPromise:r=>r&&M.isFunction(r.then),isFunction:r=>r&&{}.toString.call(r)==="[object Function]",isAsyncFunction:r=>r&&{}.toString.call(r)==="[object AsyncFunction]",isString:r=>typeof r=="string"||r instanceof String,isObject:r=>!!(r&&typeof r=="object"&&!Array.isArray(r)),hasHash:r=>!!(r&&r.search(/^[#\/].*$/)===0),getPathWithoutHash:r=>{for(;M.hasHash(r);)r=r.substring(1,r.length);return r},getTrimmedUrl:r=>{const t=r.length>0?M.getPathWithoutHash(r):r;return M.trimTrailingSlash(t.split("?")[0])},addLeadingSlash:r=>(r.startsWith("/")?"":"/")+r,trimLeadingSlash:r=>M.isString(r)?r.replace(/^\/+/g,""):"",addTrailingSlash:r=>M.isString(r)?r.replace(/\/?$/,"/"):"",trimTrailingSlash:r=>M.isString(r)?r.replace(/\/+$/,""):"",normalizePath:r=>typeof r!="string"?r:M.addLeadingSlash(M.addTrailingSlash(r)),isElementVisible:r=>r?window.getComputedStyle(r).getPropertyValue("display")!=="none":!1,getNodeList:(r,t=!1)=>{const n=[];return r&&Array.from(document.querySelectorAll(r)).forEach(a=>{t?M.isElementVisible(a)&&n.push(a):n.push(a)}),n},prependOrigin:r=>{if(!r||r.startsWith("http"))return r;const t=r.startsWith("/");return r.length?window.location.origin+(t?"":"/")+r:window.location.origin},getConfigValueFromObject:(r,t)=>{let n=0,s=r;const a=t.split(".");for(;s&&n<a.length;)s=s[a[n++]];return s},getConfigBooleanValue:(r,t)=>{const n=M.getConfigValueFromObject(r,t);return n===!0||n==="true"},getUrlParameter:r=>new URLSearchParams(window.location.search).get(r),removeProperties(r,t){const n={};if(!(t instanceof Array)||!t.length)return console.error("[ERROR] removeProperties requires second parameter: array of keys to remove from object."),r;for(const s in r)if(r.hasOwnProperty(s)){const a=t.filter(u=>s.includes(u)).length===0,l=t.filter(u=>u.endsWith("*")).map(u=>u.slice(0,-1)).filter(u=>s.startsWith(u)).length===0;a&&l&&(n[s]=r[s])}return n},replaceVars(r,t,n,s=!0,a=!1){let l=r;if(t)if(s)l=Ul.replace(l,/{([\s\S]+?)}/g,u=>{let f=u.slice(1,-1).trim();return f.indexOf(n)===0&&(f=f.substring(n.length)),Ul.get(t,f,u)});else{const u=a?" ":"";l=l.replace(/\//g,u+"/")+u,Array.from(Object.entries(t)).sort((f,h)=>h[0].length-f[0].length).forEach(f=>{l=l.replace(new RegExp(this.escapeRegExp(n+f[0]+u),"g"),encodeURIComponent(f[1]))}),l=l.replace(new RegExp(this.escapeRegExp(u),"g"),"")}return s&&(l=l.replace(new RegExp("\\{"+this.escapeRegExp(n)+"[^\\}]+\\}","g"),"")),l},escapeRegExp(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},hasHashOrSlash:r=>!!(r&&r.search(/^[#\/].*$/)===0),getPathWithoutHashOrSlash:r=>{for(;M.hasHashOrSlash(r);)r=r.substring(1,r.length);return r}},$r={wrapAsPromise:r=>new Promise(t=>{t(r)}),applyFunctionPromisified:(r,t)=>(r=r.apply(void 0,t),M.isPromise(r)?r:$r.wrapAsPromise(r)),getConfigValueFromObjectAsync:(r,t,...n)=>{const s=M.getConfigValueFromObject(r,t);return M.isFunction(s)?$r.applyFunctionPromisified(s,n):$r.wrapAsPromise(s)}};class sE{setErrorMessage(t){this.getLuigi().getEngine()?._connector?.showFatalError(t)}getLuigi(){return window.Luigi}getConfigValue(t){return this.getLuigi().getConfigValue(t)}getConfigValueAsync(t){return this.getLuigi().getConfigValueAsync(t)}async executeConfigFnAsync(t,n=!1,...s){const a=this.getConfigValue(t);if(M.isFunction(a))try{return await $r.applyFunctionPromisified(a,s)}catch(l){if(n)return Promise.reject(l)}return Promise.resolve(void 0)}}const ot=new sE;class aE{constructor(){this._internalStorage={},this._defaultStorage="localStorage",this._authKey="luigi.auth",this._newlyAuthorizedKey="luigi.newlyAuthorized",this._invalidStorageMsg="Configuration Error: Invalid auth.storage value defined. Must be one of localStorage, sessionStorage or none."}reset(){this._storageType=void 0}getStorageKey(){return this._authKey}getStorageType(){return this._storageType||(this._storageType=ot.getConfigValue("auth.storage")||this._defaultStorage),this._storageType}getAuthData(){return this._getStore(this.getStorageKey())}setAuthData(t){this._setStore(this.getStorageKey(),t)}removeAuthData(){this._setStore(this.getStorageKey(),void 0)}isNewlyAuthorized(){return!!this._getStore(this._newlyAuthorizedKey)}setNewlyAuthorized(){this._setStore(this._newlyAuthorizedKey,!0)}removeNewlyAuthorized(){this._setStore(this._newlyAuthorizedKey,void 0)}_getWebStorage(t){return window[t]}_setStore(t,n){switch(this.getStorageType()){case"localStorage":case"sessionStorage":n!==void 0?this._getWebStorage(this.getStorageType()).setItem(t,JSON.stringify(n)):this._getWebStorage(this.getStorageType()).removeItem(t);break;case"none":this._internalStorage[t]=n;break;default:console.error(this._invalidStorageMsg)}}_getStore(t){try{switch(this.getStorageType()){case"localStorage":case"sessionStorage":return JSON.parse(this._getWebStorage(this.getStorageType()).getItem(t));case"none":return this._internalStorage[t];default:console.error(this._invalidStorageMsg)}}catch{console.warn("Error parsing authorization data. Auto-logout might not work!")}}}const rn=new aE;class oE{isAuthorizationEnabled(){return!!ot.getConfigValue("auth.use")}login(){this.isAuthorizationEnabled()&&ar.startAuthorization()}logout(){this.isAuthorizationEnabled()&&ar.logout()}async handleAuthEvent(t,n,s,a){const l=await ot.executeConfigFnAsync("auth.events."+t,!1,n,s),u=l===void 0||!!l;if(u&&a){window.location.href=a;return}return u}get store(){return ot.getLuigi()?.initialized||console.warn("Luigi Core is not initialized yet. Consider moving your code to the luigiAfterInit lifecycle hook. Documentation: https://docs.luigi-project.io/docs/lifecycle-hooks"),{getStorageKey:()=>rn.getStorageKey(),getStorageType:()=>rn.getStorageType(),getAuthData:()=>rn.getAuthData(),setAuthData:t=>{rn.setAuthData(t),ar.broadcastAuthData(t)},removeAuthData:()=>rn.removeAuthData(),setNewlyAuthorized:()=>{rn.setNewlyAuthorized(),ar.resetExpirationChecks()}}}}const _i=new oE;class lE{getStoredAuthData(){return rn.getAuthData()}isLoggedIn(){const t=this.getStoredAuthData();return!!(t&&t.accessTokenExpirationDate>Number(new Date))}parseUrlAuthErrors(){const t=M.getUrlParameter("error"),n=M.getUrlParameter("errorDescription");if(t)return{error:t,errorDescription:n}}async handleUrlAuthErrors(t,n,s){return n?await _i.handleAuthEvent("onAuthError",t,{error:n,errorDescription:s},t.logoutUrl+"?post_logout_redirect_uri="+t.post_logout_redirect_uri+"&error="+encodeURIComponent(n)+"&errorDescription="+encodeURIComponent(s||"")):!0}}const ir=new lE;typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");let Fi=!1;Fi=!0;const Ii={},Ge=Symbol(),uE=Symbol("filename"),Gh="http://www.w3.org/1999/xhtml",cE="production";var H=!cE.toLowerCase().startsWith("prod"),fE=Array.isArray,hE=Array.prototype.indexOf,Qr=Array.prototype.includes,dE=Array.from,Fa=Object.keys,cn=Object.defineProperty,Hn=Object.getOwnPropertyDescriptor,Qh=Object.getOwnPropertyDescriptors,gE=Object.prototype,pE=Array.prototype,Zl=Object.getPrototypeOf,oh=Object.isExtensible;const vE=()=>{};function _E(r){return r()}function Dl(r){for(var t=0;t<r.length;t++)r[t]()}function qh(){var r,t;return{promise:new Promise((n,s)=>{r=n,t=s}),resolve:r,reject:t}}const As=16,Ps=32,eu=64,Gt=512,He=1024,lt=2048,En=4096,qr=8192,xi=16384,_r=32768,Ml=1<<25,ms=65536,tu=1<<17,zh=1<<19,Ha=65536,ws=1<<21,mE=1<<22,or=1<<23,mn=Symbol("$state"),Kh=Symbol("legacy props"),wE=Symbol(""),jh=Symbol("proxy path"),Yh=Symbol("attributes"),kl=Symbol("class"),SE=Symbol("style"),yE=Symbol("text"),EE=Symbol("hmr anchor"),ja=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},CE=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function Jh(r){if(H){const t=new Error(`lifecycle_outside_component
21
- \`${r}(...)\` can only be used during component initialisation
22
- https://svelte.dev/e/lifecycle_outside_component`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var ur="font-weight: bold",cr="font-weight: normal";function Ya(r){H?console.warn(`%c[svelte] hydration_mismatch
20
+ }`;var ie=rh(function(){return me(v,B+"return "+U).apply(r,S)});if(ie.source=U,cl(ie))throw ie;return ie}function uy(t){return ye(t).toLowerCase()}function cy(t){return ye(t).toUpperCase()}function fy(t,i,o){if(t=ye(t),t&&(o||i===r))return cc(t);if(!t||!(i=Tt(i)))return t;var c=Xt(t),d=Xt(i),v=fc(c,d),S=hc(c,d)+1;return Xn(c,v,S).join("")}function hy(t,i,o){if(t=ye(t),t&&(o||i===r))return t.slice(0,gc(t)+1);if(!t||!(i=Tt(i)))return t;var c=Xt(t),d=hc(c,Xt(i))+1;return Xn(c,0,d).join("")}function dy(t,i,o){if(t=ye(t),t&&(o||i===r))return t.replace(uo,"");if(!t||!(i=Tt(i)))return t;var c=Xt(t),d=fc(c,Xt(i));return Xn(c,d).join("")}function gy(t,i){var o=ut,c=ct;if(Ne(i)){var d="separator"in i?i.separator:d;o="length"in i?re(i.length):o,c="omission"in i?Tt(i.omission):c}t=ye(t);var v=t.length;if(ti(t)){var S=Xt(t);v=S.length}if(o>=v)return t;var y=o-ni(c);if(y<1)return c;var T=S?Xn(S,0,y).join(""):t.slice(0,y);if(d===r)return T+c;if(S&&(y+=T.length-y),fl(d)){if(t.slice(y).search(d)){var x,L=T;for(d.global||(d=Po(d.source,ye(Nu.exec(d))+"g")),d.lastIndex=0;x=d.exec(L);)var U=x.index;T=T.slice(0,U===r?y:U)}}else if(t.indexOf(Tt(d),y)!=y){var $=T.lastIndexOf(d);$>-1&&(T=T.slice(0,$))}return T+c}function py(t){return t=ye(t),t&&Ag.test(t)?t.replace(Au,Qp):t}var vy=ui(function(t,i,o){return t+(o?" ":"")+i.toUpperCase()}),pl=nf("toUpperCase");function nh(t,i,o){return t=ye(t),i=o?r:i,i===r?Hp(t)?Kp(t):Lp(t):t.match(i)||[]}var rh=se(function(t,i){try{return Et(t,r,i)}catch(o){return cl(o)?o:new Y(o)}}),_y=Ln(function(t,i){return Ct(i,function(o){o=en(o),gn(t,o,ll(t[o],t))}),t});function my(t){var i=t==null?0:t.length,o=z();return t=i?xe(t,function(c){if(typeof c[1]!="function")throw new Ut(u);return[o(c[0]),c[1]]}):[],se(function(c){for(var d=-1;++d<i;){var v=t[d];if(Et(v[0],this,c))return Et(v[1],this,c)}})}function wy(t){return Qv(Mt(t,m))}function vl(t){return function(){return t}}function Sy(t,i){return t==null||t!==t?i:t}var yy=sf(),Ey=sf(!0);function gt(t){return t}function _l(t){return Uc(typeof t=="function"?t:Mt(t,m))}function Cy(t){return Mc(Mt(t,m))}function by(t,i){return kc(t,Mt(i,m))}var Ty=se(function(t,i){return function(o){return es(o,t,i)}}),Ry=se(function(t,i){return function(o){return es(t,o,i)}});function ml(t,i,o){var c=Be(i),d=ra(i,c);o==null&&!(Ne(i)&&(d.length||!c.length))&&(o=i,i=t,t=this,d=ra(i,Be(i)));var v=!(Ne(o)&&"chain"in o)||!!o.chain,S=On(t);return Ct(d,function(y){var T=i[y];t[y]=T,S&&(t.prototype[y]=function(){var x=this.__chain__;if(v||x){var L=t(this.__wrapped__),U=L.__actions__=ft(this.__actions__);return U.push({func:T,args:arguments,thisArg:t}),L.__chain__=x,L}return T.apply(t,qn([this.value()],arguments))})}),t}function Py(){return Ke._===this&&(Ke._=ev),this}function wl(){}function Ay(t){return t=re(t),se(function(i){return $c(i,t)})}var Iy=jo(xe),xy=jo(sc),Ly=jo(So);function ih(t){return nl(t)?yo(en(t)):l_(t)}function Ny(t){return function(i){return t==null?r:Pr(t,i)}}var Oy=of(),Uy=of(!0);function Sl(){return[]}function yl(){return!1}function Dy(){return{}}function My(){return""}function ky(){return!0}function $y(t,i){if(t=re(t),t<1||t>St)return[];var o=Pe,c=Ze(t,Pe);i=z(i),t-=Pe;for(var d=bo(c,i);++o<t;)i(o);return d}function Fy(t){return J(t)?xe(t,en):Rt(t)?[t]:ft(Cf(ye(t)))}function Hy(t){var i=++Xp;return ye(t)+i}var Vy=ua(function(t,i){return t+i},0),Wy=Yo("ceil"),By=ua(function(t,i){return t/i},1),Gy=Yo("floor");function Qy(t){return t&&t.length?na(t,gt,Do):r}function qy(t,i){return t&&t.length?na(t,z(i,2),Do):r}function zy(t){return lc(t,gt)}function Ky(t,i){return lc(t,z(i,2))}function jy(t){return t&&t.length?na(t,gt,Fo):r}function Yy(t,i){return t&&t.length?na(t,z(i,2),Fo):r}var Jy=ua(function(t,i){return t*i},1),Xy=Yo("round"),Zy=ua(function(t,i){return t-i},0);function eE(t){return t&&t.length?Co(t,gt):0}function tE(t,i){return t&&t.length?Co(t,z(i,2)):0}return p.after=bw,p.ary=Uf,p.assign=fS,p.assignIn=Kf,p.assignInWith=jf,p.assignWith=hl,p.at=hS,p.before=Df,p.bind=ll,p.bindAll=_y,p.bindKey=Mf,p.castArray=Mw,p.chain=Lf,p.chunk=Q_,p.compact=q_,p.concat=z_,p.cond=my,p.conforms=wy,p.constant=vl,p.countBy=tw,p.create=dS,p.curry=kf,p.curryRight=$f,p.debounce=Ff,p.defaults=gS,p.defaultsDeep=pS,p.defer=Tw,p.delay=Rw,p.difference=K_,p.differenceBy=j_,p.differenceWith=Y_,p.drop=J_,p.dropRight=X_,p.dropRightWhile=Z_,p.dropWhile=em,p.fill=tm,p.filter=rw,p.flatMap=aw,p.flatMapDeep=ow,p.flatMapDepth=lw,p.flatten=Pf,p.flattenDeep=nm,p.flattenDepth=rm,p.flip=Pw,p.flow=yy,p.flowRight=Ey,p.fromPairs=im,p.functions=ES,p.functionsIn=CS,p.groupBy=uw,p.initial=am,p.intersection=om,p.intersectionBy=lm,p.intersectionWith=um,p.invert=TS,p.invertBy=RS,p.invokeMap=fw,p.iteratee=_l,p.keyBy=hw,p.keys=Be,p.keysIn=dt,p.map=va,p.mapKeys=AS,p.mapValues=IS,p.matches=Cy,p.matchesProperty=by,p.memoize=ma,p.merge=xS,p.mergeWith=Yf,p.method=Ty,p.methodOf=Ry,p.mixin=ml,p.negate=wa,p.nthArg=Ay,p.omit=LS,p.omitBy=NS,p.once=Aw,p.orderBy=dw,p.over=Iy,p.overArgs=Iw,p.overEvery=xy,p.overSome=Ly,p.partial=ul,p.partialRight=Hf,p.partition=gw,p.pick=OS,p.pickBy=Jf,p.property=ih,p.propertyOf=Ny,p.pull=dm,p.pullAll=If,p.pullAllBy=gm,p.pullAllWith=pm,p.pullAt=vm,p.range=Oy,p.rangeRight=Uy,p.rearg=xw,p.reject=_w,p.remove=_m,p.rest=Lw,p.reverse=al,p.sampleSize=ww,p.set=DS,p.setWith=MS,p.shuffle=Sw,p.slice=mm,p.sortBy=Cw,p.sortedUniq=Tm,p.sortedUniqBy=Rm,p.split=sy,p.spread=Nw,p.tail=Pm,p.take=Am,p.takeRight=Im,p.takeRightWhile=xm,p.takeWhile=Lm,p.tap=qm,p.throttle=Ow,p.thru=pa,p.toArray=Qf,p.toPairs=Xf,p.toPairsIn=Zf,p.toPath=Fy,p.toPlainObject=zf,p.transform=kS,p.unary=Uw,p.union=Nm,p.unionBy=Om,p.unionWith=Um,p.uniq=Dm,p.uniqBy=Mm,p.uniqWith=km,p.unset=$S,p.unzip=ol,p.unzipWith=xf,p.update=FS,p.updateWith=HS,p.values=hi,p.valuesIn=VS,p.without=$m,p.words=nh,p.wrap=Dw,p.xor=Fm,p.xorBy=Hm,p.xorWith=Vm,p.zip=Wm,p.zipObject=Bm,p.zipObjectDeep=Gm,p.zipWith=Qm,p.entries=Xf,p.entriesIn=Zf,p.extend=Kf,p.extendWith=jf,ml(p,p),p.add=Vy,p.attempt=rh,p.camelCase=QS,p.capitalize=eh,p.ceil=Wy,p.clamp=WS,p.clone=kw,p.cloneDeep=Fw,p.cloneDeepWith=Hw,p.cloneWith=$w,p.conformsTo=Vw,p.deburr=th,p.defaultTo=Sy,p.divide=By,p.endsWith=qS,p.eq=tn,p.escape=zS,p.escapeRegExp=KS,p.every=nw,p.find=iw,p.findIndex=Tf,p.findKey=vS,p.findLast=sw,p.findLastIndex=Rf,p.findLastKey=_S,p.floor=Gy,p.forEach=Nf,p.forEachRight=Of,p.forIn=mS,p.forInRight=wS,p.forOwn=SS,p.forOwnRight=yS,p.get=dl,p.gt=Ww,p.gte=Bw,p.has=bS,p.hasIn=gl,p.head=Af,p.identity=gt,p.includes=cw,p.indexOf=sm,p.inRange=BS,p.invoke=PS,p.isArguments=xr,p.isArray=J,p.isArrayBuffer=Gw,p.isArrayLike=ht,p.isArrayLikeObject=ke,p.isBoolean=Qw,p.isBuffer=Zn,p.isDate=qw,p.isElement=zw,p.isEmpty=Kw,p.isEqual=jw,p.isEqualWith=Yw,p.isError=cl,p.isFinite=Jw,p.isFunction=On,p.isInteger=Vf,p.isLength=Sa,p.isMap=Wf,p.isMatch=Xw,p.isMatchWith=Zw,p.isNaN=eS,p.isNative=tS,p.isNil=rS,p.isNull=nS,p.isNumber=Bf,p.isObject=Ne,p.isObjectLike=Me,p.isPlainObject=as,p.isRegExp=fl,p.isSafeInteger=iS,p.isSet=Gf,p.isString=ya,p.isSymbol=Rt,p.isTypedArray=fi,p.isUndefined=sS,p.isWeakMap=aS,p.isWeakSet=oS,p.join=cm,p.kebabCase=jS,p.last=$t,p.lastIndexOf=fm,p.lowerCase=YS,p.lowerFirst=JS,p.lt=lS,p.lte=uS,p.max=Qy,p.maxBy=qy,p.mean=zy,p.meanBy=Ky,p.min=jy,p.minBy=Yy,p.stubArray=Sl,p.stubFalse=yl,p.stubObject=Dy,p.stubString=My,p.stubTrue=ky,p.multiply=Jy,p.nth=hm,p.noConflict=Py,p.noop=wl,p.now=_a,p.pad=XS,p.padEnd=ZS,p.padStart=ey,p.parseInt=ty,p.random=GS,p.reduce=pw,p.reduceRight=vw,p.repeat=ny,p.replace=ry,p.result=US,p.round=Xy,p.runInContext=b,p.sample=mw,p.size=yw,p.snakeCase=iy,p.some=Ew,p.sortedIndex=wm,p.sortedIndexBy=Sm,p.sortedIndexOf=ym,p.sortedLastIndex=Em,p.sortedLastIndexBy=Cm,p.sortedLastIndexOf=bm,p.startCase=ay,p.startsWith=oy,p.subtract=Zy,p.sum=eE,p.sumBy=tE,p.template=ly,p.times=$y,p.toFinite=Un,p.toInteger=re,p.toLength=qf,p.toLower=uy,p.toNumber=Ft,p.toSafeInteger=cS,p.toString=ye,p.toUpper=cy,p.trim=fy,p.trimEnd=hy,p.trimStart=dy,p.truncate=gy,p.unescape=py,p.uniqueId=Hy,p.upperCase=vy,p.upperFirst=pl,p.each=Nf,p.eachRight=Of,p.first=Af,ml(p,(function(){var t={};return pn(p,function(i,o){Se.call(p.prototype,o)||(t[o]=i)}),t})(),{chain:!1}),p.VERSION=s,Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){p[t].placeholder=p}),Ct(["drop","take"],function(t,i){ce.prototype[t]=function(o){o=o===r?1:We(re(o),0);var c=this.__filtered__&&!i?new ce(this):this.clone();return c.__filtered__?c.__takeCount__=Ze(o,c.__takeCount__):c.__views__.push({size:Ze(o,Pe),type:t+(c.__dir__<0?"Right":"")}),c},ce.prototype[t+"Right"]=function(o){return this.reverse()[t](o).reverse()}}),Ct(["filter","map","takeWhile"],function(t,i){var o=i+1,c=o==Gn||o==wt;ce.prototype[t]=function(d){var v=this.clone();return v.__iteratees__.push({iteratee:z(d,3),type:o}),v.__filtered__=v.__filtered__||c,v}}),Ct(["head","last"],function(t,i){var o="take"+(i?"Right":"");ce.prototype[t]=function(){return this[o](1).value()[0]}}),Ct(["initial","tail"],function(t,i){var o="drop"+(i?"":"Right");ce.prototype[t]=function(){return this.__filtered__?new ce(this):this[o](1)}}),ce.prototype.compact=function(){return this.filter(gt)},ce.prototype.find=function(t){return this.filter(t).head()},ce.prototype.findLast=function(t){return this.reverse().find(t)},ce.prototype.invokeMap=se(function(t,i){return typeof t=="function"?new ce(this):this.map(function(o){return es(o,t,i)})}),ce.prototype.reject=function(t){return this.filter(wa(z(t)))},ce.prototype.slice=function(t,i){t=re(t);var o=this;return o.__filtered__&&(t>0||i<0)?new ce(o):(t<0?o=o.takeRight(-t):t&&(o=o.drop(t)),i!==r&&(i=re(i),o=i<0?o.dropRight(-i):o.take(i-t)),o)},ce.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},ce.prototype.toArray=function(){return this.take(Pe)},pn(ce.prototype,function(t,i){var o=/^(?:filter|find|map|reject)|While$/.test(i),c=/^(?:head|last)$/.test(i),d=p[c?"take"+(i=="last"?"Right":""):i],v=c||/^find/.test(i);d&&(p.prototype[i]=function(){var S=this.__wrapped__,y=c?[1]:arguments,T=S instanceof ce,x=y[0],L=T||J(S),U=function(le){var he=d.apply(p,qn([le],y));return c&&$?he[0]:he};L&&o&&typeof x=="function"&&x.length!=1&&(T=L=!1);var $=this.__chain__,B=!!this.__actions__.length,K=v&&!$,ie=T&&!B;if(!v&&L){S=ie?S:new ce(this);var Q=t.apply(S,y);return Q.__actions__.push({func:pa,args:[U],thisArg:r}),new Dt(Q,$)}return K&&ie?t.apply(this,y):(Q=this.thru(U),K?c?Q.value()[0]:Q.value():Q)})}),Ct(["pop","push","shift","sort","splice","unshift"],function(t){var i=Vs[t],o=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",c=/^(?:pop|shift)$/.test(t);p.prototype[t]=function(){var d=arguments;if(c&&!this.__chain__){var v=this.value();return i.apply(J(v)?v:[],d)}return this[o](function(S){return i.apply(J(S)?S:[],d)})}}),pn(ce.prototype,function(t,i){var o=p[i];if(o){var c=o.name+"";Se.call(ai,c)||(ai[c]=[]),ai[c].push({name:i,func:o})}}),ai[la(r,F).name]=[{name:"wrapper",func:r}],ce.prototype.clone=vv,ce.prototype.reverse=_v,ce.prototype.value=mv,p.prototype.at=zm,p.prototype.chain=Km,p.prototype.commit=jm,p.prototype.next=Ym,p.prototype.plant=Xm,p.prototype.reverse=Zm,p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=ew,p.prototype.first=p.prototype.head,zi&&(p.prototype[zi]=Jm),p}),ri=jp();Er?((Er.exports=ri)._=ri,vo._=ri):Ke._=ri}).call(rE)})(os,os.exports)),os.exports}var Ul=iE();const M={getRandomId:()=>window.crypto.getRandomValues(new Uint32Array(1))[0],isPromise:n=>n&&M.isFunction(n.then),isFunction:n=>n&&{}.toString.call(n)==="[object Function]",isAsyncFunction:n=>n&&{}.toString.call(n)==="[object AsyncFunction]",isString:n=>typeof n=="string"||n instanceof String,isObject:n=>!!(n&&typeof n=="object"&&!Array.isArray(n)),hasHash:n=>!!(n&&n.search(/^[#\/].*$/)===0),getPathWithoutHash:n=>{for(;M.hasHash(n);)n=n.substring(1,n.length);return n},getTrimmedUrl:n=>{const e=n.length>0?M.getPathWithoutHash(n):n;return M.trimTrailingSlash(e.split("?")[0])},addLeadingSlash:n=>(n.startsWith("/")?"":"/")+n,trimLeadingSlash:n=>M.isString(n)?n.replace(/^\/+/g,""):"",addTrailingSlash:n=>M.isString(n)?n.replace(/\/?$/,"/"):"",trimTrailingSlash:n=>M.isString(n)?n.replace(/\/+$/,""):"",normalizePath:n=>typeof n!="string"?n:M.addLeadingSlash(M.addTrailingSlash(n)),isElementVisible:n=>n?window.getComputedStyle(n).getPropertyValue("display")!=="none":!1,getNodeList:(n,e=!1)=>{const r=[];return n&&Array.from(document.querySelectorAll(n)).forEach(a=>{e?M.isElementVisible(a)&&r.push(a):r.push(a)}),r},prependOrigin:n=>{if(!n||n.startsWith("http"))return n;const e=n.startsWith("/");return n.length?window.location.origin+(e?"":"/")+n:window.location.origin},getConfigValueFromObject:(n,e)=>{let r=0,s=n;const a=e.split(".");for(;s&&r<a.length;)s=s[a[r++]];return s},getConfigBooleanValue:(n,e)=>{const r=M.getConfigValueFromObject(n,e);return r===!0||r==="true"},getUrlParameter:n=>new URLSearchParams(window.location.search).get(n),removeProperties(n,e){const r={};if(!(e instanceof Array)||!e.length)return console.error("[ERROR] removeProperties requires second parameter: array of keys to remove from object."),n;for(const s in n)if(n.hasOwnProperty(s)){const a=e.filter(u=>s.includes(u)).length===0,l=e.filter(u=>u.endsWith("*")).map(u=>u.slice(0,-1)).filter(u=>s.startsWith(u)).length===0;a&&l&&(r[s]=n[s])}return r},replaceVars(n,e,r,s=!0,a=!1){let l=n;if(e)if(s)l=Ul.replace(l,/{([\s\S]+?)}/g,u=>{let f=u.slice(1,-1).trim();return f.indexOf(r)===0&&(f=f.substring(r.length)),Ul.get(e,f,u)});else{const u=a?" ":"";l=l.replace(/\//g,u+"/")+u,Array.from(Object.entries(e)).sort((f,h)=>h[0].length-f[0].length).forEach(f=>{l=l.replace(new RegExp(this.escapeRegExp(r+f[0]+u),"g"),encodeURIComponent(f[1]))}),l=l.replace(new RegExp(this.escapeRegExp(u),"g"),"")}return s&&(l=l.replace(new RegExp("\\{"+this.escapeRegExp(r)+"[^\\}]+\\}","g"),"")),l},escapeRegExp(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},hasHashOrSlash:n=>!!(n&&n.search(/^[#\/].*$/)===0),getPathWithoutHashOrSlash:n=>{for(;M.hasHashOrSlash(n);)n=n.substring(1,n.length);return n}},$r={wrapAsPromise:n=>new Promise(e=>{e(n)}),applyFunctionPromisified:(n,e)=>(n=n.apply(void 0,e),M.isPromise(n)?n:$r.wrapAsPromise(n)),getConfigValueFromObjectAsync:(n,e,...r)=>{const s=M.getConfigValueFromObject(n,e);return M.isFunction(s)?$r.applyFunctionPromisified(s,r):$r.wrapAsPromise(s)}};class sE{setErrorMessage(e){this.getLuigi().getEngine()?._connector?.showFatalError(e)}getLuigi(){return window.Luigi}getConfigValue(e){return this.getLuigi().getConfigValue(e)}getConfigValueAsync(e){return this.getLuigi().getConfigValueAsync(e)}async executeConfigFnAsync(e,r=!1,...s){const a=this.getConfigValue(e);if(M.isFunction(a))try{return await $r.applyFunctionPromisified(a,s)}catch(l){if(r)return Promise.reject(l)}return Promise.resolve(void 0)}}const ot=new sE;class aE{_authKey;_storageType;_defaultStorage;_newlyAuthorizedKey;_invalidStorageMsg;_internalStorage={};constructor(){this._defaultStorage="localStorage",this._authKey="luigi.auth",this._newlyAuthorizedKey="luigi.newlyAuthorized",this._invalidStorageMsg="Configuration Error: Invalid auth.storage value defined. Must be one of localStorage, sessionStorage or none."}reset(){this._storageType=void 0}getStorageKey(){return this._authKey}getStorageType(){return this._storageType||(this._storageType=ot.getConfigValue("auth.storage")||this._defaultStorage),this._storageType}getAuthData(){return this._getStore(this.getStorageKey())}setAuthData(e){this._setStore(this.getStorageKey(),e)}removeAuthData(){this._setStore(this.getStorageKey(),void 0)}isNewlyAuthorized(){return!!this._getStore(this._newlyAuthorizedKey)}setNewlyAuthorized(){this._setStore(this._newlyAuthorizedKey,!0)}removeNewlyAuthorized(){this._setStore(this._newlyAuthorizedKey,void 0)}_getWebStorage(e){return window[e]}_setStore(e,r){switch(this.getStorageType()){case"localStorage":case"sessionStorage":r!==void 0?this._getWebStorage(this.getStorageType()).setItem(e,JSON.stringify(r)):this._getWebStorage(this.getStorageType()).removeItem(e);break;case"none":this._internalStorage[e]=r;break;default:console.error(this._invalidStorageMsg)}}_getStore(e){try{switch(this.getStorageType()){case"localStorage":case"sessionStorage":return JSON.parse(this._getWebStorage(this.getStorageType()).getItem(e));case"none":return this._internalStorage[e];default:console.error(this._invalidStorageMsg)}}catch{console.warn("Error parsing authorization data. Auto-logout might not work!")}}}const rn=new aE;class oE{isAuthorizationEnabled(){return!!ot.getConfigValue("auth.use")}login(){this.isAuthorizationEnabled()&&ar.startAuthorization()}logout(){this.isAuthorizationEnabled()&&ar.logout()}async handleAuthEvent(e,r,s,a){const l=await ot.executeConfigFnAsync("auth.events."+e,!1,r,s),u=l===void 0||!!l;if(u&&a){window.location.href=a;return}return u}get store(){return ot.getLuigi()?.initialized||console.warn("Luigi Core is not initialized yet. Consider moving your code to the luigiAfterInit lifecycle hook. Documentation: https://docs.luigi-project.io/docs/lifecycle-hooks"),{getStorageKey:()=>rn.getStorageKey(),getStorageType:()=>rn.getStorageType(),getAuthData:()=>rn.getAuthData(),setAuthData:e=>{rn.setAuthData(e),ar.broadcastAuthData(e)},removeAuthData:()=>rn.removeAuthData(),setNewlyAuthorized:()=>{rn.setNewlyAuthorized(),ar.resetExpirationChecks()}}}}const _i=new oE;class lE{getStoredAuthData(){return rn.getAuthData()}isLoggedIn(){const e=this.getStoredAuthData();return!!(e&&e.accessTokenExpirationDate>Number(new Date))}parseUrlAuthErrors(){const e=M.getUrlParameter("error"),r=M.getUrlParameter("errorDescription");if(e)return{error:e,errorDescription:r}}async handleUrlAuthErrors(e,r,s){return r?await _i.handleAuthEvent("onAuthError",e,{error:r,errorDescription:s},e.logoutUrl+"?post_logout_redirect_uri="+e.post_logout_redirect_uri+"&error="+encodeURIComponent(r)+"&errorDescription="+encodeURIComponent(s||"")):!0}}const ir=new lE;typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");let Fi=!1;Fi=!0;const Ii={},Ge=Symbol(),uE=Symbol("filename"),Gh="http://www.w3.org/1999/xhtml",cE="production";var H=!cE.toLowerCase().startsWith("prod"),fE=Array.isArray,hE=Array.prototype.indexOf,Qr=Array.prototype.includes,dE=Array.from,Fa=Object.keys,cn=Object.defineProperty,Hn=Object.getOwnPropertyDescriptor,Qh=Object.getOwnPropertyDescriptors,gE=Object.prototype,pE=Array.prototype,Zl=Object.getPrototypeOf,oh=Object.isExtensible;const vE=()=>{};function _E(n){return n()}function Dl(n){for(var e=0;e<n.length;e++)n[e]()}function qh(){var n,e;return{promise:new Promise((r,s)=>{n=r,e=s}),resolve:n,reject:e}}const Ps=16,As=32,eu=64,Gt=512,He=1024,lt=2048,En=4096,qr=8192,xi=16384,_r=32768,Ml=1<<25,ms=65536,tu=1<<17,zh=1<<19,Ha=65536,ws=1<<21,mE=1<<22,or=1<<23,mn=Symbol("$state"),Kh=Symbol("legacy props"),wE=Symbol(""),jh=Symbol("proxy path"),Yh=Symbol("attributes"),kl=Symbol("class"),SE=Symbol("style"),yE=Symbol("text"),EE=Symbol("hmr anchor"),ja=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},CE=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function Jh(n){if(H){const e=new Error(`lifecycle_outside_component
21
+ \`${n}(...)\` can only be used during component initialisation
22
+ https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var ur="font-weight: bold",cr="font-weight: normal";function Ya(n){H?console.warn(`%c[svelte] hydration_mismatch
23
23
  %cHydration failed because the initial UI does not match what was rendered on the server
24
- https://svelte.dev/e/hydration_mismatch`,ur,cr):console.warn("https://svelte.dev/e/hydration_mismatch")}function El(r){H?console.warn(`%c[svelte] state_proxy_equality_mismatch
25
- %cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${r}\` will produce unexpected results
26
- https://svelte.dev/e/state_proxy_equality_mismatch`,ur,cr):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}let Ee,De=!1;function mi(r){De=r}function wn(r){if(r===null)throw Ya(),Ii;return Ee=r}function nu(){return wn(Wn(Ee))}function Xh(r=!0){for(var t=0,n=Ee;;){if(n.nodeType===8){var s=n.data;if(s==="]"){if(t===0)return n;t-=1}else(s==="["||s==="[!"||s[0]==="["&&!isNaN(Number(s.slice(1))))&&(t+=1)}var a=Wn(n);r&&n.remove(),n=a}}function Zh(r){return r===this.v}function ed(r){return t=r,n=this.v,!(t!=t?n==n:t!==n||t!==null&&typeof t=="object"||typeof t=="function");var t,n}function _n(r,t){return r.label=t,td(r.v,t),r}function td(r,t){return r?.[jh]?.(t),r}function nd(r){const t=new Error,n=(function(){const s=Error.stackTraceLimit;Error.stackTraceLimit=1/0;const a=new Error().stack;if(Error.stackTraceLimit=s,!a)return[];const l=a.split(`
27
- `),u=[];for(let f=0;f<l.length;f++){const h=l[f],g=h.replaceAll("\\","/");if(h.trim()!=="Error"){if(h.includes("validate_each_keys"))return[];g.includes("svelte/src/internal")||g.includes("node_modules/.vite")||u.push(h)}}return u})();return n.length===0?null:(n.unshift(`
28
- `),cn(t,"stack",{value:n.join(`
29
- `)}),cn(t,"name",{value:r}),t)}function bE(r,t){if(!H)throw new Error("invariant(...) was not guarded by if (DEV)");r||(function(n){if(H){const s=new Error(`invariant_violation
30
- An invariant violation occurred, meaning Svelte's internal assumptions were flawed. This is a bug in Svelte, not your app — please open an issue at https://github.com/sveltejs/svelte, citing the following message: "${n}"
31
- https://svelte.dev/e/invariant_violation`);throw s.name="Svelte error",s}throw new Error("https://svelte.dev/e/invariant_violation")})(t)}let be=null;function Li(r){be=r}let Ss=null;function Va(r){Ss=r}let Is=null;function lh(r){Is=r}function ru(r,t=!1,n){be={p:be,i:!1,c:null,e:null,s:r,x:null,r:te,l:Fi&&!t?{s:null,u:null,$:[]}:null},H&&(be.function=n,Is=n)}function iu(r){var t=be,n=t.e;if(n!==null)for(var s of(t.e=null,n))Cd(s);return r!==void 0&&(t.x=r),t.i=!0,be=t.p,H&&(Is=be?.function??null),r??{}}function xs(){return!Fi||be!==null&&be.l===null}let Ur=[];function rd(){var r=Ur;Ur=[],Dl(r)}function wi(r){if(Ur.length===0&&!cs){var t=Ur;queueMicrotask(()=>{t===Ur&&rd()})}Ur.push(r)}function TE(){for(;Ur.length>0;)rd()}const $l=new WeakMap;function id(r){var t=te;if(t===null)return ge.f|=or,r;if(H&&r instanceof Error&&!$l.has(r)&&$l.set(r,(function(n,s){const a=Hn(n,"message");if(!(a&&!a.configurable)){for(var l=fu?" ":" ",u=`
24
+ https://svelte.dev/e/hydration_mismatch`,ur,cr):console.warn("https://svelte.dev/e/hydration_mismatch")}function El(n){H?console.warn(`%c[svelte] state_proxy_equality_mismatch
25
+ %cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${n}\` will produce unexpected results
26
+ https://svelte.dev/e/state_proxy_equality_mismatch`,ur,cr):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}let Ce,De=!1;function mi(n){De=n}function wn(n){if(n===null)throw Ya(),Ii;return Ce=n}function nu(){return wn(Wn(Ce))}function Xh(n=!0){for(var e=0,r=Ce;;){if(r.nodeType===8){var s=r.data;if(s==="]"){if(e===0)return r;e-=1}else(s==="["||s==="[!"||s[0]==="["&&!isNaN(Number(s.slice(1))))&&(e+=1)}var a=Wn(r);n&&r.remove(),r=a}}function Zh(n){return n===this.v}function ed(n){return e=n,r=this.v,!(e!=e?r==r:e!==r||e!==null&&typeof e=="object"||typeof e=="function");var e,r}function _n(n,e){return n.label=e,td(n.v,e),n}function td(n,e){return n?.[jh]?.(e),n}function nd(n){const e=new Error,r=(function(){const s=Error.stackTraceLimit;Error.stackTraceLimit=1/0;const a=new Error().stack;if(Error.stackTraceLimit=s,!a)return[];const l=a.split(`
27
+ `),u=[];for(let f=0;f<l.length;f++){const h=l[f],g=h.replaceAll("\\","/");if(h.trim()!=="Error"){if(h.includes("validate_each_keys"))return[];g.includes("svelte/src/internal")||g.includes("node_modules/.vite")||u.push(h)}}return u})();return r.length===0?null:(r.unshift(`
28
+ `),cn(e,"stack",{value:r.join(`
29
+ `)}),cn(e,"name",{value:n}),e)}function bE(n,e){if(!H)throw new Error("invariant(...) was not guarded by if (DEV)");n||(function(r){if(H){const s=new Error(`invariant_violation
30
+ An invariant violation occurred, meaning Svelte's internal assumptions were flawed. This is a bug in Svelte, not your app — please open an issue at https://github.com/sveltejs/svelte, citing the following message: "${r}"
31
+ https://svelte.dev/e/invariant_violation`);throw s.name="Svelte error",s}throw new Error("https://svelte.dev/e/invariant_violation")})(e)}let Te=null;function Li(n){Te=n}let Ss=null;function Va(n){Ss=n}let Is=null;function lh(n){Is=n}function ru(n,e=!1,r){Te={p:Te,i:!1,c:null,e:null,s:n,x:null,r:ee,l:Fi&&!e?{s:null,u:null,$:[]}:null},H&&(Te.function=r,Is=r)}function iu(n){var e=Te,r=e.e;if(r!==null)for(var s of(e.e=null,r))Cd(s);return n!==void 0&&(e.x=n),e.i=!0,Te=e.p,H&&(Is=Te?.function??null),n??{}}function xs(){return!Fi||Te!==null&&Te.l===null}let Ur=[];function rd(){var n=Ur;Ur=[],Dl(n)}function wi(n){if(Ur.length===0&&!cs){var e=Ur;queueMicrotask(()=>{e===Ur&&rd()})}Ur.push(n)}function TE(){for(;Ur.length>0;)rd()}const $l=new WeakMap;function id(n){var e=ee;if(e===null)return ve.f|=or,n;if(H&&n instanceof Error&&!$l.has(n)&&$l.set(n,(function(r,s){const a=Hn(r,"message");if(!(a&&!a.configurable)){for(var l=fu?" ":" ",u=`
32
32
  ${l}in ${s.fn?.name||"<unknown>"}`,f=s.ctx;f!==null;)u+=`
33
- ${l}in ${f.function?.[uE].split("/").pop()}`,f=f.p;return{message:n.message+`
33
+ ${l}in ${f.function?.[uE].split("/").pop()}`,f=f.p;return{message:r.message+`
34
34
  ${u}
35
- `,stack:n.stack?.split(`
35
+ `,stack:r.stack?.split(`
36
36
  `).filter(h=>!h.includes("svelte/src/internal")).join(`
37
- `)}}})(r,t)),(t.f&_r)===0&&!(4&t.f))throw H&&!t.parent&&r instanceof Error&&sd(r),r;sr(r,t)}function sr(r,t){for(;t!==null;){if(128&t.f){if((t.f&_r)===0)throw r;try{return void t.b.error(r)}catch(n){r=n}}t=t.parent}throw H&&r instanceof Error&&sd(r),r}function sd(r){const t=$l.get(r);t&&(cn(r,"message",{value:t.message}),cn(r,"stack",{value:t.stack}))}const RE=-7169;function Ue(r,t){r.f=r.f&RE|t}function su(r){(r.f&Gt)!==0||r.deps===null?Ue(r,He):Ue(r,En)}function ad(r){if(r!==null)for(const t of r)2&t.f&&(t.f&Ha)!==0&&(t.f^=Ha,ad(t.deps))}function od(r,t,n){(r.f&lt)!==0?t.add(r):(r.f&En)!==0&&n.add(r),ad(r.deps),Ue(r,He)}let Ca=!1,Cl=null,di=null,fe=null,Fl=null,sn=null,bl=null,cs=!1,Tl=!1,Si=null,Na=null;var uh=0,Rl=new Set;let AE=1;class Vn{id=AE++;#e=!1;linked=!0;#n=null;#t=null;async_deriveds=new Map;current=new Map;previous=new Map;unblocked=new Set;#l=new Set;#i=new Set;#o=new Set;#s=0;#r=new Map;#h=null;#a=[];#g=[];#d=new Set;#c=new Set;#f=new Map;#u=new Set;is_fork=!1;#_=!1;#E(){if(this.is_fork)return!0;for(const s of this.#r.keys()){for(var t=s,n=!1;t.parent!==null;){if(this.#f.has(t)){n=!0;break}t=t.parent}if(!n)return!0}return!1}skip_effect(t){this.#f.has(t)||this.#f.set(t,{d:[],m:[]}),this.#u.delete(t)}unskip_effect(t,n=s=>this.schedule(s)){var s=this.#f.get(t);if(s){for(var a of(this.#f.delete(t),s.d))Ue(a,lt),n(a);for(a of s.m)Ue(a,En),n(a)}this.#u.add(t)}#v(){if(this.#e=!0,uh++>1e3&&(this.#S(),(function(){if(H){var h=new Map;for(const _ of fe.current.keys())for(const[w,m]of _.updated??[]){var g=h.get(w);g||(g={error:m.error,count:0},h.set(w,g)),g.count+=m.count}for(const _ of h.values())_.error&&console.error(_.error)}try{(function(){if(H){const _=new Error(`effect_update_depth_exceeded
37
+ `)}}})(n,e)),(e.f&_r)===0&&!(4&e.f))throw H&&!e.parent&&n instanceof Error&&sd(n),n;sr(n,e)}function sr(n,e){for(;e!==null;){if(128&e.f){if((e.f&_r)===0)throw n;try{return void e.b.error(n)}catch(r){n=r}}e=e.parent}throw H&&n instanceof Error&&sd(n),n}function sd(n){const e=$l.get(n);e&&(cn(n,"message",{value:e.message}),cn(n,"stack",{value:e.stack}))}const RE=-7169;function Ue(n,e){n.f=n.f&RE|e}function su(n){(n.f&Gt)!==0||n.deps===null?Ue(n,He):Ue(n,En)}function ad(n){if(n!==null)for(const e of n)2&e.f&&(e.f&Ha)!==0&&(e.f^=Ha,ad(e.deps))}function od(n,e,r){(n.f&lt)!==0?e.add(n):(n.f&En)!==0&&r.add(n),ad(n.deps),Ue(n,He)}let Ca=!1,Cl=null,di=null,fe=null,Fl=null,sn=null,bl=null,cs=!1,Tl=!1,Si=null,Na=null;var uh=0,Rl=new Set;let PE=1;class Vn{id=PE++;#e=!1;linked=!0;#n=null;#t=null;async_deriveds=new Map;current=new Map;previous=new Map;unblocked=new Set;#l=new Set;#i=new Set;#o=new Set;#s=0;#r=new Map;#h=null;#a=[];#g=[];#d=new Set;#c=new Set;#f=new Map;#u=new Set;is_fork=!1;#_=!1;#E(){if(this.is_fork)return!0;for(const s of this.#r.keys()){for(var e=s,r=!1;e.parent!==null;){if(this.#f.has(e)){r=!0;break}e=e.parent}if(!r)return!0}return!1}skip_effect(e){this.#f.has(e)||this.#f.set(e,{d:[],m:[]}),this.#u.delete(e)}unskip_effect(e,r=s=>this.schedule(s)){var s=this.#f.get(e);if(s){for(var a of(this.#f.delete(e),s.d))Ue(a,lt),r(a);for(a of s.m)Ue(a,En),r(a)}this.#u.add(e)}#v(){if(this.#e=!0,uh++>1e3&&(this.#S(),(function(){if(H){var h=new Map;for(const _ of fe.current.keys())for(const[w,m]of _.updated??[]){var g=h.get(w);g||(g={error:m.error,count:0},h.set(w,g)),g.count+=m.count}for(const _ of h.values())_.error&&console.error(_.error)}try{(function(){if(H){const _=new Error(`effect_update_depth_exceeded
38
38
  Maximum update depth exceeded. This typically indicates that an effect reads and writes the same piece of state
39
- https://svelte.dev/e/effect_update_depth_exceeded`);throw _.name="Svelte error",_}throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")})()}catch(_){H&&cn(_,"stack",{value:""}),sr(_,bl)}})()),H)for(const h of this.current.keys())Rl.add(h);if(!this.#E()){for(const h of this.#d)this.#c.delete(h),Ue(h,lt),this.schedule(h);for(const h of this.#c)Ue(h,En),this.schedule(h)}const t=this.#a;this.#a=[],this.apply();var n=Si=[],s=[],a=Na=[];for(const h of t)try{this.#C(h,n,s)}catch(g){throw cd(h),g}if(fe=null,a.length>0){var l=Vn.ensure();for(const h of a)l.schedule(h)}if(Si=null,Na=null,this.#E()){this.#p(s),this.#p(n);for(const[h,g]of this.#f)ud(h,g);return void(a.length>0&&fe.#v())}const u=this.#y();if(u)u.#m(this);else{this.#d.clear(),this.#c.clear();for(const h of this.#l)h(this);this.#l.clear(),Fl=this,ch(s),ch(n),Fl=null,this.#h?.resolve();var f=fe;if(this.linked&&this.#s===0&&this.#S(),this.#a.length>0){f===null&&(f=this,this.#w());const h=f;h.#a.push(...this.#a.filter(g=>!h.#a.includes(g)))}f!==null&&f.#v()}}#C(t,n,s){t.f^=He;for(var a=t.first;a!==null;){var l=a.f,u=!!(96&l);if(!(u&&(l&He)!==0||(l&qr)!==0||this.#f.has(a))&&a.fn!==null){u?a.f^=He:4&l?n.push(a):Hi(a)&&((l&As)!==0&&this.#c.add(a),zr(a));var f=a.first;if(f!==null){a=f;continue}}for(;a!==null;){var h=a.next;if(h!==null){a=h;break}a=a.parent}}}#y(){for(var t=this.#n;t!==null;){if(!t.is_fork){for(const[n,[,s]]of this.current)if(t.current.has(n)&&!s)return t}t=t.#n}return null}#m(t){for(const[s,a]of t.current)!this.previous.has(s)&&t.previous.has(s)&&this.previous.set(s,t.previous.get(s)),this.current.set(s,a);for(const[s,a]of t.async_deriveds){const l=this.async_deriveds.get(s);l&&a.promise.then(l.resolve)}const n=s=>{var a=s.reactions;if(a!==null)for(const f of a){var l=f.f;if(2&l)n(f);else{var u=f;4194320&l&&!this.async_deriveds.has(u)&&(this.#c.delete(u),Ue(u,lt),this.schedule(u))}}};for(const s of this.current.keys())n(s);this.oncommit(()=>t.discard()),t.#S(),fe=this,this.#v()}#p(t){for(var n=0;n<t.length;n+=1)od(t[n],this.#d,this.#c)}capture(t,n,s=!1){t.v===Ge||this.previous.has(t)||this.previous.set(t,t.v),(t.f&or)===0&&(this.current.set(t,[n,s]),sn?.set(t,n)),this.is_fork||(t.v=n)}activate(){fe=this}deactivate(){fe=null,sn=null}flush(){try{H&&Rl.clear(),Tl=!0,fe=this,this.#v()}finally{if(uh=0,bl=null,Si=null,Na=null,Tl=!1,fe=null,sn=null,Fr.clear(),H)for(const t of Rl)t.updated=null}}discard(){for(const t of this.#i)t(this);this.#i.clear(),this.#o.clear(),this.#S()}register_created_effect(t){this.#g.push(t)}#b(){this.#S();for(let _=Cl;_!==null;_=_.#t){var t=_.id<this.id,n=[];for(const[w,[m,E]]of this.current){if(_.current.has(w)){var s=_.current.get(w)[0];if(!t||m===s)continue;_.current.set(w,[m,E])}n.push(w)}if(t)for(const[w,m]of this.async_deriveds){const E=_.async_deriveds.get(w);E&&m.promise.then(E.resolve)}if(_.#e){var a=[..._.current.keys()].filter(w=>!this.current.has(w));if(a.length===0)t&&_.discard();else if(n.length>0){if(H&&bE(_.#a.length===0,"Batch has scheduled roots"),t)for(const w of this.#u)_.unskip_effect(w,m=>{4194320&m.f?_.schedule(m):_.#p([m])});_.activate();var l=new Set,u=new Map;for(var f of n)ld(f,a,l,u);u=new Map;var h=[..._.current.keys()].filter(w=>!this.current.has(w)||this.current.get(w)[0]!==w.v);if(h.length>0)for(const w of this.#g)155648&w.f||!au(w,h,u)||(4194320&w.f?(Ue(w,lt),_.schedule(w)):_.#d.add(w));if(_.#a.length>0){for(var g of(_.apply(),_.#a))_.#C(g,[],[]);_.#a=[]}_.deactivate()}}}}increment(t,n){if(this.#s+=1,t){let s=this.#r.get(n)??0;this.#r.set(n,s+1)}}decrement(t,n){if(this.#s-=1,t){let s=this.#r.get(n)??0;s===1?this.#r.delete(n):this.#r.set(n,s-1)}this.#_||(this.#_=!0,wi(()=>{this.#_=!1,this.linked&&this.flush()}))}transfer_effects(t,n){for(const s of t)this.#d.add(s);for(const s of n)this.#c.add(s);t.clear(),n.clear()}oncommit(t){this.#l.add(t)}ondiscard(t){this.#i.add(t)}on_fork_commit(t){this.#o.add(t)}run_fork_commit_callbacks(){for(const t of this.#o)t(this);this.#o.clear()}settled(){return(this.#h??=qh()).promise}static ensure(){if(fe===null){const t=fe=new Vn;t.#w(),Tl||cs||wi(()=>{t.#e||t.flush()})}return fe}apply(){sn=null}schedule(t){if(bl=t,t.b?.is_pending&&16777228&t.f&&(t.f&_r)===0)t.b.defer_effect(t);else{for(var n=t;n.parent!==null;){var s=(n=n.parent).f;if(!(Si===null||n!==te||ge!==null&&2&ge.f))return;if(96&s){if((s&He)===0)return;n.f^=He}}this.#a.push(n)}}#w(){di===null?Cl=di=this:(di.#t=this,this.#n=di),di=this}#S(){var t=this.#n,n=this.#t;t===null?Cl=n:t.#t=n,n===null?di=t:n.#n=t,this.linked=!1}}function Z(r){var t=cs;cs=!0;try{var n;for(r&&(fe===null||fe.is_fork||fe.flush(),n=r());;){if(TE(),fe===null)return n;fe.flush()}}finally{cs=t}}let Mn=null;function ch(r){var t=r.length;if(t!==0){for(var n=0;n<t;){var s=r[n++];if(!(24576&s.f)&&Hi(s)&&(Mn=new Set,zr(s),s.deps===null&&s.first===null&&s.nodes===null&&s.teardown===null&&s.ac===null&&Ad(s),Mn?.size>0)){Fr.clear();for(const a of Mn){if(24576&a.f)continue;const l=[a];let u=a.parent;for(;u!==null;)Mn.has(u)&&(Mn.delete(u),l.push(u)),u=u.parent;for(let f=l.length-1;f>=0;f--){const h=l[f];24576&h.f||zr(h)}}Mn.clear()}}Mn=null}}function ld(r,t,n,s){if(!n.has(r)&&(n.add(r),r.reactions!==null))for(const a of r.reactions){const l=a.f;2&l?ld(a,t,n,s):4194320&l&&(l&lt)===0&&au(a,t,s)&&(Ue(a,lt),ou(a))}}function au(r,t,n){const s=n.get(r);if(s!==void 0)return s;if(r.deps!==null)for(const a of r.deps){if(Qr.call(t,a))return!0;if(2&a.f&&au(a,t,n))return n.set(a,!0),!0}return n.set(r,!1),!1}function ou(r){fe.schedule(r)}function ud(r,t){if((r.f&Ps)===0||(r.f&He)===0){(r.f&lt)!==0?t.d.push(r):(r.f&En)!==0&&t.m.push(r),Ue(r,He);for(var n=r.first;n!==null;)ud(n,t),n=n.next}}function cd(r){Ue(r,He);for(var t=r.first;t!==null;)cd(t),t=t.next}class PE{parent;is_pending=!1;transform_error;#e;#n=De?Ee:null;#t;#l;#i;#o=null;#s=null;#r=null;#h=null;#a=0;#g=0;#d=!1;#c=new Set;#f=new Set;#u=null;#_=(function(t){let n,s=0,a=ys(0);return H&&_n(a,"createSubscriber version"),()=>{du()&&(q(a),Es(()=>(s===0&&(n=Fn(()=>t(()=>fs(a)))),s+=1,()=>{wi(()=>{s-=1,s===0&&(n?.(),n=void 0,fs(a))})})))}})(()=>(this.#u=ys(this.#a),H&&_n(this.#u,"$effect.pending()"),()=>{this.#u=null}));constructor(t,n,s,a){this.#e=t,this.#t=n,this.#l=l=>{var u=te;u.b=this,u.f|=128,s(l)},this.parent=te.b,this.transform_error=a??this.parent?.transform_error??(l=>l),this.#i=Td(()=>{if(De){const l=this.#n;nu();const u=l.data==="[!";if(l.data.startsWith("[?")){const f=JSON.parse(l.data.slice(2));this.#v(f)}else u?this.#C():this.#E()}else this.#y()},589824),De&&(this.#e=Ee)}#E(){try{this.#o=nr(()=>this.#l(this.#e))}catch(t){this.error(t)}}#v(t){const n=this.#t.failed;n&&(this.#r=nr(()=>{n(this.#e,()=>t,()=>()=>{})}))}#C(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#s=nr(()=>t(this.#e)),wi(()=>{var n=this.#h=document.createDocumentFragment(),s=Hr();n.append(s),this.#o=this.#p(()=>nr(()=>this.#l(s))),this.#g===0&&(this.#e.before(n),this.#h=null,hs(this.#s,()=>{this.#s=null}),this.#m(fe))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#g=0,this.#a=0,this.#o=nr(()=>{this.#l(this.#e)}),this.#g>0){var t=this.#h=document.createDocumentFragment();xd(this.#o,t);const n=this.#t.pending;this.#s=nr(()=>n(this.#e))}else this.#m(fe)}catch(n){this.error(n)}}#m(t){this.is_pending=!1,t.transfer_effects(this.#c,this.#f)}defer_effect(t){od(t,this.#c,this.#f)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#p(t){var n=te,s=ge,a=be;xt(this.#i),Kt(this.#i),Li(this.#i.ctx);try{return Vn.ensure(),t()}catch(l){return id(l),null}finally{xt(n),Kt(s),Li(a)}}#b(t,n){this.has_pending_snippet()?(this.#g+=t,this.#g===0&&(this.#m(n),this.#s&&hs(this.#s,()=>{this.#s=null}),this.#h&&(this.#e.before(this.#h),this.#h=null))):this.parent&&this.parent.#b(t,n)}update_pending_count(t,n){this.#b(t,n),this.#a+=t,this.#u&&!this.#d&&(this.#d=!0,wi(()=>{this.#d=!1,this.#u&&Wa(this.#u,this.#a)}))}get_effect_pending(){return this.#_(),q(this.#u)}error(t){if(!this.#t.onerror&&!this.#t.failed)throw t;fe?.is_fork?(this.#o&&fe.skip_effect(this.#o),this.#s&&fe.skip_effect(this.#s),this.#r&&fe.skip_effect(this.#r),fe.on_fork_commit(()=>{this.#w(t)})):this.#w(t)}#w(t){this.#o&&(mt(this.#o),this.#o=null),this.#s&&(mt(this.#s),this.#s=null),this.#r&&(mt(this.#r),this.#r=null),De&&(wn(this.#n),(function(h=1){if(De){for(var g=h,_=Ee;g--;)_=Wn(_);Ee=_}})(),wn(Xh()));var n=this.#t.onerror;let s=this.#t.failed;var a=!1,l=!1;const u=()=>{a?H?console.warn("%c[svelte] svelte_boundary_reset_noop\n%cA `<svelte:boundary>` `reset` function only resets the boundary the first time it is called\nhttps://svelte.dev/e/svelte_boundary_reset_noop",ur,cr):console.warn("https://svelte.dev/e/svelte_boundary_reset_noop"):(a=!0,l&&(function(){if(H){const h=new Error("svelte_boundary_reset_onerror\nA `<svelte:boundary>` `reset` function cannot be called while an error is still being handled\nhttps://svelte.dev/e/svelte_boundary_reset_onerror");throw h.name="Svelte error",h}throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")})(),this.#r!==null&&hs(this.#r,()=>{this.#r=null}),this.#p(()=>{this.#y()}))},f=h=>{try{l=!0,n?.(h,u),l=!1}catch(g){sr(g,this.#i&&this.#i.parent)}s&&(this.#r=this.#p(()=>{try{return nr(()=>{var g=te;g.b=this,g.f|=128,s(this.#e,()=>h,()=>u)})}catch(g){return sr(g,this.#i.parent),null}}))};wi(()=>{var h;try{h=this.transform_error(t)}catch(g){return void sr(g,this.#i&&this.#i.parent)}h!==null&&typeof h=="object"&&typeof h.then=="function"?h.then(f,g=>sr(g,this.#i&&this.#i.parent)):f(h)})}}function IE(r,t,n,s){const a=xs()?lu:hd;var l=r.filter(m=>!m.settled);if(n.length!==0||l.length!==0){var u=te,f=(function(){var m=te,E=ge,C=be,R=fe;if(H)var I=Ss;return function(N=!0){xt(m),Kt(E),Li(C),N&&(m.f&xi)===0&&(R?.activate(),R?.apply()),H&&(fd(null),Va(I))}})(),h=l.length===1?l[0].promise:l.length>1?Promise.all(l.map(m=>m.promise)):null,g=fh();n.length!==0?h?h.then(()=>{f(),w(),ba()}):w():h.then(()=>_(t.map(a))).finally(g)}else s(t.map(a));function _(m){if((u.f&xi)===0){f();try{s(m)}catch(E){sr(E,u)}ba()}}function w(){Promise.all(n.map(m=>(function(E,C,R){let I=te;I===null&&(function(){if(H){const _e=new Error("async_derived_orphan\nCannot create a `$derived(...)` with an `await` expression outside of an effect tree\nhttps://svelte.dev/e/async_derived_orphan");throw _e.name="Svelte error",_e}throw new Error("https://svelte.dev/e/async_derived_orphan")})();var N=void 0,F=ys(Ge);H&&(F.label=E.toString());var J=!ge,de=new Set;return(function(_e){hn(4718592,_e)})(()=>{var _e=te;H&&(Wt={effect:_e,effect_deps:new Set,warned:!1});var pe=qh();N=pe.promise;try{Promise.resolve(E()).then(pe.resolve,ae=>{ae!==ja&&pe.reject(ae)}).finally(ba)}catch(ae){pe.reject(ae),ba()}if(H){if(Wt){if(_e.deps!==null)for(let ae=0;ae<pt;ae+=1)Wt.effect_deps.add(_e.deps[ae]);if(Ye!==null)for(let ae=0;ae<Ye.length;ae+=1)Wt.effect_deps.add(Ye[ae])}Wt=null}var oe=fe;if(J){if((_e.f&_r)!==0)var me=fh();if(I.b.is_rendered())oe.async_deriveds.get(_e)?.reject(Ta);else for(const ae of de.values())ae.reject(Ta);de.add(pe),oe.async_deriveds.set(_e,pe)}const Re=(ae,ut=void 0)=>{H&&(Wt=null),me?.(),de.delete(pe),ut!==Ta&&(oe.activate(),ut?(F.f|=or,Wa(F,ut)):((F.f&or)!==0&&(F.f^=or),Wa(F,ae)),oe.deactivate())};pe.promise.then(Re,ae=>Re(null,ae||"unknown"))}),Ed(()=>{for(const _e of de)_e.reject(Ta)}),H&&(F.f|=mE),new Promise(_e=>{function pe(oe){function me(){oe===N?_e(F):pe(N)}oe.then(me,me)}pe(N)})})(m))).then(m=>_([...t.map(a),...m])).catch(m=>sr(m,u)).finally(g)}}function ba(r=!0){xt(null),Kt(null),Li(null),r&&fe?.deactivate(),H&&(fd(null),Va(null))}function fh(){var r=te,t=r.b,n=fe,s=t.is_rendered();return t.update_pending_count(1,n),n.increment(s,r),()=>{t.update_pending_count(-1,n),n.decrement(s,r)}}let Wt=null;function fd(r){Wt=r}const xE=new Set;function lu(r){return te!==null&&(te.f|=zh),{ctx:be,deps:null,effects:null,equals:Zh,f:2050,fn:r,reactions:null,rv:0,v:Ge,wv:0,parent:te,ac:null}}const Ta=Symbol("obsolete");function hd(r){const t=lu(r);return t.equals=ed,t}function hh(r){var t=r.effects;if(t!==null){r.effects=null;for(var n=0;n<t.length;n+=1)mt(t[n])}}let Al=[];function uu(r){var t,n=te,s=r.parent;if(!Bn&&s!==null&&24576&s.f)return H?console.warn(`%c[svelte] derived_inert
39
+ https://svelte.dev/e/effect_update_depth_exceeded`);throw _.name="Svelte error",_}throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")})()}catch(_){H&&cn(_,"stack",{value:""}),sr(_,bl)}})()),H)for(const h of this.current.keys())Rl.add(h);if(!this.#E()){for(const h of this.#d)this.#c.delete(h),Ue(h,lt),this.schedule(h);for(const h of this.#c)Ue(h,En),this.schedule(h)}const e=this.#a;this.#a=[],this.apply();var r=Si=[],s=[],a=Na=[];for(const h of e)try{this.#C(h,r,s)}catch(g){throw cd(h),g}if(fe=null,a.length>0){var l=Vn.ensure();for(const h of a)l.schedule(h)}if(Si=null,Na=null,this.#E()){this.#p(s),this.#p(r);for(const[h,g]of this.#f)ud(h,g);return void(a.length>0&&fe.#v())}const u=this.#y();if(u)u.#m(this);else{this.#d.clear(),this.#c.clear();for(const h of this.#l)h(this);this.#l.clear(),Fl=this,ch(s),ch(r),Fl=null,this.#h?.resolve();var f=fe;if(this.linked&&this.#s===0&&this.#S(),this.#a.length>0){f===null&&(f=this,this.#w());const h=f;h.#a.push(...this.#a.filter(g=>!h.#a.includes(g)))}f!==null&&f.#v()}}#C(e,r,s){e.f^=He;for(var a=e.first;a!==null;){var l=a.f,u=!!(96&l);if(!(u&&(l&He)!==0||(l&qr)!==0||this.#f.has(a))&&a.fn!==null){u?a.f^=He:4&l?r.push(a):Hi(a)&&((l&Ps)!==0&&this.#c.add(a),zr(a));var f=a.first;if(f!==null){a=f;continue}}for(;a!==null;){var h=a.next;if(h!==null){a=h;break}a=a.parent}}}#y(){for(var e=this.#n;e!==null;){if(!e.is_fork){for(const[r,[,s]]of this.current)if(e.current.has(r)&&!s)return e}e=e.#n}return null}#m(e){for(const[s,a]of e.current)!this.previous.has(s)&&e.previous.has(s)&&this.previous.set(s,e.previous.get(s)),this.current.set(s,a);for(const[s,a]of e.async_deriveds){const l=this.async_deriveds.get(s);l&&a.promise.then(l.resolve)}const r=s=>{var a=s.reactions;if(a!==null)for(const f of a){var l=f.f;if(2&l)r(f);else{var u=f;4194320&l&&!this.async_deriveds.has(u)&&(this.#c.delete(u),Ue(u,lt),this.schedule(u))}}};for(const s of this.current.keys())r(s);this.oncommit(()=>e.discard()),e.#S(),fe=this,this.#v()}#p(e){for(var r=0;r<e.length;r+=1)od(e[r],this.#d,this.#c)}capture(e,r,s=!1){e.v===Ge||this.previous.has(e)||this.previous.set(e,e.v),(e.f&or)===0&&(this.current.set(e,[r,s]),sn?.set(e,r)),this.is_fork||(e.v=r)}activate(){fe=this}deactivate(){fe=null,sn=null}flush(){try{H&&Rl.clear(),Tl=!0,fe=this,this.#v()}finally{if(uh=0,bl=null,Si=null,Na=null,Tl=!1,fe=null,sn=null,Fr.clear(),H)for(const e of Rl)e.updated=null}}discard(){for(const e of this.#i)e(this);this.#i.clear(),this.#o.clear(),this.#S()}register_created_effect(e){this.#g.push(e)}#b(){this.#S();for(let _=Cl;_!==null;_=_.#t){var e=_.id<this.id,r=[];for(const[w,[m,E]]of this.current){if(_.current.has(w)){var s=_.current.get(w)[0];if(!e||m===s)continue;_.current.set(w,[m,E])}r.push(w)}if(e)for(const[w,m]of this.async_deriveds){const E=_.async_deriveds.get(w);E&&m.promise.then(E.resolve)}if(_.#e){var a=[..._.current.keys()].filter(w=>!this.current.has(w));if(a.length===0)e&&_.discard();else if(r.length>0){if(H&&bE(_.#a.length===0,"Batch has scheduled roots"),e)for(const w of this.#u)_.unskip_effect(w,m=>{4194320&m.f?_.schedule(m):_.#p([m])});_.activate();var l=new Set,u=new Map;for(var f of r)ld(f,a,l,u);u=new Map;var h=[..._.current.keys()].filter(w=>!this.current.has(w)||this.current.get(w)[0]!==w.v);if(h.length>0)for(const w of this.#g)155648&w.f||!au(w,h,u)||(4194320&w.f?(Ue(w,lt),_.schedule(w)):_.#d.add(w));if(_.#a.length>0){for(var g of(_.apply(),_.#a))_.#C(g,[],[]);_.#a=[]}_.deactivate()}}}}increment(e,r){if(this.#s+=1,e){let s=this.#r.get(r)??0;this.#r.set(r,s+1)}}decrement(e,r){if(this.#s-=1,e){let s=this.#r.get(r)??0;s===1?this.#r.delete(r):this.#r.set(r,s-1)}this.#_||(this.#_=!0,wi(()=>{this.#_=!1,this.linked&&this.flush()}))}transfer_effects(e,r){for(const s of e)this.#d.add(s);for(const s of r)this.#c.add(s);e.clear(),r.clear()}oncommit(e){this.#l.add(e)}ondiscard(e){this.#i.add(e)}on_fork_commit(e){this.#o.add(e)}run_fork_commit_callbacks(){for(const e of this.#o)e(this);this.#o.clear()}settled(){return(this.#h??=qh()).promise}static ensure(){if(fe===null){const e=fe=new Vn;e.#w(),Tl||cs||wi(()=>{e.#e||e.flush()})}return fe}apply(){sn=null}schedule(e){if(bl=e,e.b?.is_pending&&16777228&e.f&&(e.f&_r)===0)e.b.defer_effect(e);else{for(var r=e;r.parent!==null;){var s=(r=r.parent).f;if(!(Si===null||r!==ee||ve!==null&&2&ve.f))return;if(96&s){if((s&He)===0)return;r.f^=He}}this.#a.push(r)}}#w(){di===null?Cl=di=this:(di.#t=this,this.#n=di),di=this}#S(){var e=this.#n,r=this.#t;e===null?Cl=r:e.#t=r,r===null?di=e:r.#n=e,this.linked=!1}}function X(n){var e=cs;cs=!0;try{var r;for(n&&(fe===null||fe.is_fork||fe.flush(),r=n());;){if(TE(),fe===null)return r;fe.flush()}}finally{cs=e}}let Mn=null;function ch(n){var e=n.length;if(e!==0){for(var r=0;r<e;){var s=n[r++];if(!(24576&s.f)&&Hi(s)&&(Mn=new Set,zr(s),s.deps===null&&s.first===null&&s.nodes===null&&s.teardown===null&&s.ac===null&&Pd(s),Mn?.size>0)){Fr.clear();for(const a of Mn){if(24576&a.f)continue;const l=[a];let u=a.parent;for(;u!==null;)Mn.has(u)&&(Mn.delete(u),l.push(u)),u=u.parent;for(let f=l.length-1;f>=0;f--){const h=l[f];24576&h.f||zr(h)}}Mn.clear()}}Mn=null}}function ld(n,e,r,s){if(!r.has(n)&&(r.add(n),n.reactions!==null))for(const a of n.reactions){const l=a.f;2&l?ld(a,e,r,s):4194320&l&&(l&lt)===0&&au(a,e,s)&&(Ue(a,lt),ou(a))}}function au(n,e,r){const s=r.get(n);if(s!==void 0)return s;if(n.deps!==null)for(const a of n.deps){if(Qr.call(e,a))return!0;if(2&a.f&&au(a,e,r))return r.set(a,!0),!0}return r.set(n,!1),!1}function ou(n){fe.schedule(n)}function ud(n,e){if((n.f&As)===0||(n.f&He)===0){(n.f&lt)!==0?e.d.push(n):(n.f&En)!==0&&e.m.push(n),Ue(n,He);for(var r=n.first;r!==null;)ud(r,e),r=r.next}}function cd(n){Ue(n,He);for(var e=n.first;e!==null;)cd(e),e=e.next}class AE{parent;is_pending=!1;transform_error;#e;#n=De?Ce:null;#t;#l;#i;#o=null;#s=null;#r=null;#h=null;#a=0;#g=0;#d=!1;#c=new Set;#f=new Set;#u=null;#_=(function(e){let r,s=0,a=ys(0);return H&&_n(a,"createSubscriber version"),()=>{du()&&(q(a),Es(()=>(s===0&&(r=Fn(()=>e(()=>fs(a)))),s+=1,()=>{wi(()=>{s-=1,s===0&&(r?.(),r=void 0,fs(a))})})))}})(()=>(this.#u=ys(this.#a),H&&_n(this.#u,"$effect.pending()"),()=>{this.#u=null}));constructor(e,r,s,a){this.#e=e,this.#t=r,this.#l=l=>{var u=ee;u.b=this,u.f|=128,s(l)},this.parent=ee.b,this.transform_error=a??this.parent?.transform_error??(l=>l),this.#i=Td(()=>{if(De){const l=this.#n;nu();const u=l.data==="[!";if(l.data.startsWith("[?")){const f=JSON.parse(l.data.slice(2));this.#v(f)}else u?this.#C():this.#E()}else this.#y()},589824),De&&(this.#e=Ce)}#E(){try{this.#o=nr(()=>this.#l(this.#e))}catch(e){this.error(e)}}#v(e){const r=this.#t.failed;r&&(this.#r=nr(()=>{r(this.#e,()=>e,()=>()=>{})}))}#C(){const e=this.#t.pending;e&&(this.is_pending=!0,this.#s=nr(()=>e(this.#e)),wi(()=>{var r=this.#h=document.createDocumentFragment(),s=Hr();r.append(s),this.#o=this.#p(()=>nr(()=>this.#l(s))),this.#g===0&&(this.#e.before(r),this.#h=null,hs(this.#s,()=>{this.#s=null}),this.#m(fe))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#g=0,this.#a=0,this.#o=nr(()=>{this.#l(this.#e)}),this.#g>0){var e=this.#h=document.createDocumentFragment();xd(this.#o,e);const r=this.#t.pending;this.#s=nr(()=>r(this.#e))}else this.#m(fe)}catch(r){this.error(r)}}#m(e){this.is_pending=!1,e.transfer_effects(this.#c,this.#f)}defer_effect(e){od(e,this.#c,this.#f)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#p(e){var r=ee,s=ve,a=Te;xt(this.#i),Kt(this.#i),Li(this.#i.ctx);try{return Vn.ensure(),e()}catch(l){return id(l),null}finally{xt(r),Kt(s),Li(a)}}#b(e,r){this.has_pending_snippet()?(this.#g+=e,this.#g===0&&(this.#m(r),this.#s&&hs(this.#s,()=>{this.#s=null}),this.#h&&(this.#e.before(this.#h),this.#h=null))):this.parent&&this.parent.#b(e,r)}update_pending_count(e,r){this.#b(e,r),this.#a+=e,this.#u&&!this.#d&&(this.#d=!0,wi(()=>{this.#d=!1,this.#u&&Wa(this.#u,this.#a)}))}get_effect_pending(){return this.#_(),q(this.#u)}error(e){if(!this.#t.onerror&&!this.#t.failed)throw e;fe?.is_fork?(this.#o&&fe.skip_effect(this.#o),this.#s&&fe.skip_effect(this.#s),this.#r&&fe.skip_effect(this.#r),fe.on_fork_commit(()=>{this.#w(e)})):this.#w(e)}#w(e){this.#o&&(mt(this.#o),this.#o=null),this.#s&&(mt(this.#s),this.#s=null),this.#r&&(mt(this.#r),this.#r=null),De&&(wn(this.#n),(function(h=1){if(De){for(var g=h,_=Ce;g--;)_=Wn(_);Ce=_}})(),wn(Xh()));var r=this.#t.onerror;let s=this.#t.failed;var a=!1,l=!1;const u=()=>{a?H?console.warn("%c[svelte] svelte_boundary_reset_noop\n%cA `<svelte:boundary>` `reset` function only resets the boundary the first time it is called\nhttps://svelte.dev/e/svelte_boundary_reset_noop",ur,cr):console.warn("https://svelte.dev/e/svelte_boundary_reset_noop"):(a=!0,l&&(function(){if(H){const h=new Error("svelte_boundary_reset_onerror\nA `<svelte:boundary>` `reset` function cannot be called while an error is still being handled\nhttps://svelte.dev/e/svelte_boundary_reset_onerror");throw h.name="Svelte error",h}throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")})(),this.#r!==null&&hs(this.#r,()=>{this.#r=null}),this.#p(()=>{this.#y()}))},f=h=>{try{l=!0,r?.(h,u),l=!1}catch(g){sr(g,this.#i&&this.#i.parent)}s&&(this.#r=this.#p(()=>{try{return nr(()=>{var g=ee;g.b=this,g.f|=128,s(this.#e,()=>h,()=>u)})}catch(g){return sr(g,this.#i.parent),null}}))};wi(()=>{var h;try{h=this.transform_error(e)}catch(g){return void sr(g,this.#i&&this.#i.parent)}h!==null&&typeof h=="object"&&typeof h.then=="function"?h.then(f,g=>sr(g,this.#i&&this.#i.parent)):f(h)})}}function IE(n,e,r,s){const a=xs()?lu:hd;var l=n.filter(m=>!m.settled);if(r.length!==0||l.length!==0){var u=ee,f=(function(){var m=ee,E=ve,C=Te,R=fe;if(H)var I=Ss;return function(N=!0){xt(m),Kt(E),Li(C),N&&(m.f&xi)===0&&(R?.activate(),R?.apply()),H&&(fd(null),Va(I))}})(),h=l.length===1?l[0].promise:l.length>1?Promise.all(l.map(m=>m.promise)):null,g=fh();r.length!==0?h?h.then(()=>{f(),w(),ba()}):w():h.then(()=>_(e.map(a))).finally(g)}else s(e.map(a));function _(m){if((u.f&xi)===0){f();try{s(m)}catch(E){sr(E,u)}ba()}}function w(){Promise.all(r.map(m=>(function(E,C,R){let I=ee;I===null&&(function(){if(H){const te=new Error("async_derived_orphan\nCannot create a `$derived(...)` with an `await` expression outside of an effect tree\nhttps://svelte.dev/e/async_derived_orphan");throw te.name="Svelte error",te}throw new Error("https://svelte.dev/e/async_derived_orphan")})();var N=void 0,F=ys(Ge);H&&(F.label=E.toString());var oe=!ve,de=new Set;return(function(te){hn(4718592,te)})(()=>{var te=ee;H&&(Wt={effect:te,effect_deps:new Set,warned:!1});var _e=qh();N=_e.promise;try{Promise.resolve(E()).then(_e.resolve,ae=>{ae!==ja&&_e.reject(ae)}).finally(ba)}catch(ae){_e.reject(ae),ba()}if(H){if(Wt){if(te.deps!==null)for(let ae=0;ae<pt;ae+=1)Wt.effect_deps.add(te.deps[ae]);if(Ye!==null)for(let ae=0;ae<Ye.length;ae+=1)Wt.effect_deps.add(Ye[ae])}Wt=null}var pe=fe;if(oe){if((te.f&_r)!==0)var ge=fh();if(I.b.is_rendered())pe.async_deriveds.get(te)?.reject(Ta);else for(const ae of de.values())ae.reject(Ta);de.add(_e),pe.async_deriveds.set(te,_e)}const we=(ae,ut=void 0)=>{H&&(Wt=null),ge?.(),de.delete(_e),ut!==Ta&&(pe.activate(),ut?(F.f|=or,Wa(F,ut)):((F.f&or)!==0&&(F.f^=or),Wa(F,ae)),pe.deactivate())};_e.promise.then(we,ae=>we(null,ae||"unknown"))}),Ed(()=>{for(const te of de)te.reject(Ta)}),H&&(F.f|=mE),new Promise(te=>{function _e(pe){function ge(){pe===N?te(F):_e(N)}pe.then(ge,ge)}_e(N)})})(m))).then(m=>_([...e.map(a),...m])).catch(m=>sr(m,u)).finally(g)}}function ba(n=!0){xt(null),Kt(null),Li(null),n&&fe?.deactivate(),H&&(fd(null),Va(null))}function fh(){var n=ee,e=n.b,r=fe,s=e.is_rendered();return e.update_pending_count(1,r),r.increment(s,n),()=>{e.update_pending_count(-1,r),r.decrement(s,n)}}let Wt=null;function fd(n){Wt=n}const xE=new Set;function lu(n){return ee!==null&&(ee.f|=zh),{ctx:Te,deps:null,effects:null,equals:Zh,f:2050,fn:n,reactions:null,rv:0,v:Ge,wv:0,parent:ee,ac:null}}const Ta=Symbol("obsolete");function hd(n){const e=lu(n);return e.equals=ed,e}function hh(n){var e=n.effects;if(e!==null){n.effects=null;for(var r=0;r<e.length;r+=1)mt(e[r])}}let Pl=[];function uu(n){var e,r=ee,s=n.parent;if(!Bn&&s!==null&&24576&s.f)return H?console.warn(`%c[svelte] derived_inert
40
40
  %cReading a derived belonging to a now-destroyed effect may result in stale values
41
- https://svelte.dev/e/derived_inert`,ur,cr):console.warn("https://svelte.dev/e/derived_inert"),r.v;if(xt(s),H){let a=Ni;dh(new Set);try{Qr.call(Al,r)&&(function(){if(H){const l=new Error(`derived_references_self
41
+ https://svelte.dev/e/derived_inert`,ur,cr):console.warn("https://svelte.dev/e/derived_inert"),n.v;if(xt(s),H){let a=Ni;dh(new Set);try{Qr.call(Pl,n)&&(function(){if(H){const l=new Error(`derived_references_self
42
42
  A derived value cannot reference itself recursively
43
- https://svelte.dev/e/derived_references_self`);throw l.name="Svelte error",l}throw new Error("https://svelte.dev/e/derived_references_self")})(),Al.push(r),r.f&=-65537,hh(r),t=Wl(r)}finally{xt(n),dh(a),Al.pop()}}else try{r.f&=-65537,hh(r),t=Wl(r)}finally{xt(n)}return t}function dd(r){var t=uu(r);r.equals(t)||(r.wv=Nd(),fe?.is_fork&&r.deps!==null||(fe!==null?(fe.capture(r,t,!0),Fl?.capture(r,t,!0)):r.v=t,r.deps!==null))?Bn||(sn!==null?(du()||fe?.is_fork)&&sn.set(r,t):su(r)):Ue(r,He)}function gd(r){if(r.effects!==null)for(const t of r.effects)t.teardown&&zr(t)}let Ni=new Set;const Fr=new Map;function dh(r){Ni=r}let cu=!1;function ys(r,t){var n={f:0,v:r,reactions:null,equals:Zh,rv:0,wv:0};return n}function er(r,t){const n=ys(r);var s;return s=n,ge!==null&&(Qt===null?Qt=[s]:Qt.push(s)),n}function yi(r,t=!1,n=!0){const s=ys(r);return t||(s.equals=ed),Fi&&n&&be!==null&&be.l!==null&&(be.l.s??=[]).push(s),s}function ls(r,t){return _t(r,Fn(()=>q(r))),t}function _t(r,t,n=!1){ge===null||Bt&&(ge.f&tu)===0||!xs()||!(4325394&ge.f)||Qt!==null&&Qr.call(Qt,r)||(function(){if(H){const a=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw a.name="Svelte error",a}throw new Error("https://svelte.dev/e/state_unsafe_mutation")})();let s=n?Ei(t):t;return H&&td(s,r.label),Wa(r,s,Na)}function Wa(r,t,n=null){if(!r.equals(t)){Fr.set(r,Bn?t:r.v);var s=Vn.ensure();if(s.capture(r,t),H){if(te!==null){r.updated??=new Map;const a=(r.updated.get("")?.count??0)+1;if(r.updated.set("",{error:null,count:a}),a>5){const l=nd("updated at");if(l!==null){let u=r.updated.get(l.stack);u||(u={error:l,count:0},r.updated.set(l.stack,u)),u.count++}}}te!==null&&(r.set_during_effect=!0)}if(2&r.f){const a=r;(r.f&lt)!==0&&uu(a),sn===null&&su(a)}r.wv=Nd(),vd(r,lt,n),!xs()||te===null||(te.f&He)===0||96&te.f||(Ht===null?(function(a){Ht=a})([r]):Ht.push(r)),!s.is_fork&&Ni.size>0&&!cu&&pd()}return t}function pd(){cu=!1;for(const r of Ni){let t;(r.f&He)!==0&&Ue(r,En);try{t=Hi(r)}catch{t=!0}t&&zr(r)}Ni.clear()}function fs(r){_t(r,r.v+1)}function vd(r,t,n){var s=r.reactions;if(s!==null)for(var a=xs(),l=s.length,u=0;u<l;u++){var f=s[u],h=f.f;if(a||f!==te){var g=(h&lt)===0;if(g&&Ue(f,t),(h&tu)!==0)Ni.add(f);else if(2&h){var _=f;sn?.delete(_),(h&Ha)===0&&(h&Gt&&(te===null||(te.f&ws)===0)&&(f.f|=Ha),vd(_,En,n))}else if(g){var w=f;(h&As)!==0&&Mn!==null&&Mn.add(w),n!==null?n.push(w):ou(w)}}}}const LE=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function Ei(r){if(typeof r!="object"||r===null||mn in r)return r;const t=Zl(r);if(t!==gE&&t!==pE)return r;var n=new Map,s=fE(r),a=er(0),l=Vr,u=_=>{if(Vr===l)return _();var w=ge,m=Vr;Kt(null),mh(l);var E=_();return Kt(w),mh(m),E};s&&(n.set("length",er(r.length)),H&&(r=new Proxy(r,{get(_,w,m){var E=Reflect.get(_,w,m);return NE.has(w)?function(...C){cu=!0;var R=E.apply(this,C);return pd(),R}:E}})));var f="";let h=!1;function g(_){if(!h){h=!0,_n(a,`${f=_} version`);for(const[w,m]of n)_n(m,Lr(f,w));h=!1}}return new Proxy(r,{defineProperty(_,w,m){"value"in m&&m.configurable!==!1&&m.enumerable!==!1&&m.writable!==!1||(function(){if(H){const C=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw C.name="Svelte error",C}throw new Error("https://svelte.dev/e/state_descriptors_fixed")})();var E=n.get(w);return E===void 0?u(()=>{var C=er(m.value);return n.set(w,C),H&&typeof w=="string"&&_n(C,Lr(f,w)),C}):_t(E,m.value,!0),!0},deleteProperty(_,w){var m=n.get(w);if(m===void 0){if(w in _){const E=u(()=>er(Ge));n.set(w,E),fs(a),H&&_n(E,Lr(f,w))}}else _t(m,Ge),fs(a);return!0},get(_,w,m){if(w===mn)return r;if(H&&w===jh)return g;var E=n.get(w),C=w in _;if(E!==void 0||C&&!Hn(_,w)?.writable||(E=u(()=>{var I=er(Ei(C?_[w]:Ge));return H&&_n(I,Lr(f,w)),I}),n.set(w,E)),E!==void 0){var R=q(E);return R===Ge?void 0:R}return Reflect.get(_,w,m)},getOwnPropertyDescriptor(_,w){var m=Reflect.getOwnPropertyDescriptor(_,w);if(m&&"value"in m){var E=n.get(w);E&&(m.value=q(E))}else if(m===void 0){var C=n.get(w),R=C?.v;if(C!==void 0&&R!==Ge)return{enumerable:!0,configurable:!0,value:R,writable:!0}}return m},has(_,w){if(w===mn)return!0;var m=n.get(w),E=m!==void 0&&m.v!==Ge||Reflect.has(_,w);return(m!==void 0||te!==null&&(!E||Hn(_,w)?.writable))&&(m===void 0&&(m=u(()=>{var C=er(E?Ei(_[w]):Ge);return H&&_n(C,Lr(f,w)),C}),n.set(w,m)),q(m)===Ge)?!1:E},set(_,w,m,E){var C=n.get(w),R=w in _;if(s&&w==="length")for(var I=m;I<C.v;I+=1){var N=n.get(I+"");N!==void 0?_t(N,Ge):I in _&&(N=u(()=>er(Ge)),n.set(I+"",N),H&&_n(N,Lr(f,I)))}C===void 0?R&&!Hn(_,w)?.writable||(C=u(()=>er(void 0)),H&&_n(C,Lr(f,w)),_t(C,Ei(m)),n.set(w,C)):(R=C.v!==Ge,_t(C,u(()=>Ei(m))));var F=Reflect.getOwnPropertyDescriptor(_,w);if(F?.set&&F.set.call(E,m),!R){if(s&&typeof w=="string"){var J=n.get("length"),de=Number(w);Number.isInteger(de)&&de>=J.v&&_t(J,de+1)}fs(a)}return!0},ownKeys(_){q(a);var w=Reflect.ownKeys(_).filter(C=>{var R=n.get(C);return R===void 0||R.v!==Ge});for(var[m,E]of n)E.v===Ge||m in _||w.push(m);return w},setPrototypeOf(){(function(){if(H){const _=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw _.name="Svelte error",_}throw new Error("https://svelte.dev/e/state_prototype_fixed")})()}})}function Lr(r,t){return typeof t=="symbol"?`${r}[Symbol(${t.description??""})]`:LE.test(t)?`${r}.${t}`:/^\d+$/.test(t)?`${r}[${t}]`:`${r}['${t}']`}function Pl(r){try{if(r!==null&&typeof r=="object"&&mn in r)return r[mn]}catch{}return r}const NE=new Set(["copyWithin","fill","pop","push","reverse","shift","sort","splice","unshift"]);var gh,fu,_d,md;function Hl(){if(gh===void 0){gh=window,fu=/Firefox/.test(navigator.userAgent);var r=Element.prototype,t=Node.prototype,n=Text.prototype;_d=Hn(t,"firstChild").get,md=Hn(t,"nextSibling").get,oh(r)&&(r[kl]=void 0,r[Yh]=null,r[SE]=void 0,r.__e=void 0),oh(n)&&(n[yE]=void 0),H&&(r.__svelte_meta=null,(function(){const s=Array.prototype,a=Array.__svelte_cleanup;a&&a();const{indexOf:l,lastIndexOf:u,includes:f}=s;s.indexOf=function(h,g){const _=l.call(this,h,g);if(_===-1){for(let w=g??0;w<this.length;w+=1)if(Pl(this[w])===h){El("array.indexOf(...)");break}}return _},s.lastIndexOf=function(h,g){const _=u.call(this,h,g??this.length-1);if(_===-1){for(let w=0;w<=(g??this.length-1);w+=1)if(Pl(this[w])===h){El("array.lastIndexOf(...)");break}}return _},s.includes=function(h,g){const _=f.call(this,h,g);if(!_){for(let w=0;w<this.length;w+=1)if(Pl(this[w])===h){El("array.includes(...)");break}}return _},Array.__svelte_cleanup=()=>{s.indexOf=l,s.lastIndexOf=u,s.includes=f}})())}}function Hr(r=""){return document.createTextNode(r)}function Oi(r){return _d.call(r)}function Wn(r){return md.call(r)}function ph(r,t=!1){if(!De){var n=Oi(r);return n instanceof Comment&&n.data===""?Wn(n):n}if(t){if(Ee?.nodeType!==3){var s=Hr();return Ee?.before(s),wn(s),s}wd(Ee)}return Ee}function hu(r,t,n){return document.createElementNS(Gh,r,void 0)}function wd(r){if(r.nodeValue.length<65536)return;let t=r.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),r.nodeValue+=t.nodeValue,t=r.nextSibling}function Sd(r){var t=ge,n=te;Kt(null),xt(null);try{return r()}finally{Kt(t),xt(n)}}function yd(r){te===null&&(ge===null&&(function(t){if(H){const n=new Error(`effect_orphan
44
- \`${t}\` can only be used inside an effect (e.g. during component initialisation)
45
- https://svelte.dev/e/effect_orphan`);throw n.name="Svelte error",n}throw new Error("https://svelte.dev/e/effect_orphan")})(r),(function(){if(H){const t=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/effect_in_unowned_derived")})()),Bn&&(function(t){if(H){const n=new Error(`effect_in_teardown
46
- \`${t}\` cannot be used inside an effect cleanup function
47
- https://svelte.dev/e/effect_in_teardown`);throw n.name="Svelte error",n}throw new Error("https://svelte.dev/e/effect_in_teardown")})(r)}function hn(r,t){var n=te;if(H)for(;n!==null&&(n.f&tu)!==0;)n=n.parent;n!==null&&(n.f&qr)!==0&&(r|=qr);var s={ctx:be,deps:null,nodes:null,f:r|lt|Gt,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};H&&(s.component_function=Is),fe?.register_created_effect(s);var a=s;if(4&r)Si!==null?Si.push(s):Vn.ensure().schedule(s);else if(t!==null){try{zr(s)}catch(u){throw mt(s),u}a.deps===null&&a.teardown===null&&a.nodes===null&&a.first===a.last&&(a.f&zh)===0&&(a=a.first,(r&As)!==0&&(r&ms)!==0&&a!==null&&(a.f|=ms))}if(a!==null&&(a.parent=n,n!==null&&(function(u,f){var h=f.last;h===null?f.last=f.first=u:(h.next=u,u.prev=h,f.last=u)})(a,n),ge!==null&&2&ge.f&&(r&eu)===0)){var l=ge;(l.effects??=[]).push(a)}return s}function du(){return ge!==null&&!Bt}function Ed(r){const t=hn(8,null);return Ue(t,He),t.teardown=r,t}function Vl(r){yd("$effect"),H&&cn(r,"name",{value:"$effect"});var t=te.f;if(!(!ge&&(t&Ps)!==0&&(t&_r)===0))return Cd(r);var n=be;(n.e??=[]).push(r)}function Cd(r){return hn(1048580,r)}function bd(r){return hn(4,r)}function Es(r,t=0){return hn(8|t,r)}function vh(r,t=[],n=[],s=[]){IE(s,t,n,a=>{hn(8,()=>r(...a.map(q)))})}function Td(r,t=0){var n=hn(As|t,r);return H&&(n.dev_stack=Ss),n}function nr(r){return hn(524320,r)}function Rd(r){var t=r.teardown;if(t!==null){const n=Bn,s=ge;_h(!0),Kt(null);try{t.call(null)}finally{_h(n),Kt(s)}}}function gu(r,t=!1){var n=r.first;for(r.first=r.last=null;n!==null;){const a=n.ac;a!==null&&Sd(()=>{a.abort(ja)});var s=n.next;(n.f&eu)!==0?n.parent=null:mt(n,t),n=s}}function mt(r,t=!0){var n=!1;(t||262144&r.f)&&r.nodes!==null&&r.nodes.end!==null&&((function(l,u){for(;l!==null;){var f=l===u?null:Wn(l);l.remove(),l=f}})(r.nodes.start,r.nodes.end),n=!0),Ue(r,Ml),gu(r,t&&!n),Cs(r,0);var s=r.nodes&&r.nodes.t;if(s!==null)for(const l of s)l.stop();Rd(r),r.f^=Ml,r.f|=xi;var a=r.parent;a!==null&&a.first!==null&&Ad(r),H&&(r.component_function=null),r.next=r.prev=r.teardown=r.ctx=r.deps=r.fn=r.nodes=r.ac=r.b=null}function Ad(r){var t=r.parent,n=r.prev,s=r.next;n!==null&&(n.next=s),s!==null&&(s.prev=n),t!==null&&(t.first===r&&(t.first=s),t.last===r&&(t.last=n))}function hs(r,t,n=!0){var s=[];Pd(r,s,!0);var a=()=>{n&&mt(r),t&&t()},l=s.length;if(l>0){var u=()=>--l||a();for(var f of s)f.out(u)}else a()}function Pd(r,t,n){if((r.f&qr)===0){r.f^=qr;var s=r.nodes&&r.nodes.t;if(s!==null)for(const u of s)(u.is_global||n)&&t.push(u);for(var a=r.first;a!==null;){var l=a.next;(a.f&eu)===0&&Pd(a,t,((a.f&ms)!==0||(a.f&Ps)!==0&&(r.f&As)!==0)&&n),a=l}}}function OE(r){Id(r,!0)}function Id(r,t){if((r.f&qr)!==0){r.f^=qr,(r.f&He)===0&&(Ue(r,lt),Vn.ensure().schedule(r));for(var n=r.first;n!==null;){var s=n.next;Id(n,((n.f&ms)!==0||(n.f&Ps)!==0)&&t),n=s}var a=r.nodes&&r.nodes.t;if(a!==null)for(const l of a)(l.is_global||t)&&l.in()}}function xd(r,t){if(r.nodes)for(var n=r.nodes.start,s=r.nodes.end;n!==null;){var a=n===s?null:Wn(n);t.append(n),n=a}}let Oa=!1,Bn=!1;function _h(r){Bn=r}let ge=null,Bt=!1;function Kt(r){ge=r}let te=null;function xt(r){te=r}let Qt=null,Ye=null,pt=0,Ht=null,Ld=1,Dr=0,Vr=Dr;function mh(r){Vr=r}function Nd(){return++Ld}function Hi(r){var t=r.f;if((t&lt)!==0)return!0;if(2&t&&(r.f&=-65537),(t&En)!==0){for(var n=r.deps,s=n.length,a=0;a<s;a++){var l=n[a];if(Hi(l)&&dd(l),l.wv>r.wv)return!0}(t&Gt)!==0&&sn===null&&Ue(r,He)}return!1}function Od(r,t,n=!0){var s=r.reactions;if(s!==null&&(Qt===null||!Qr.call(Qt,r)))for(var a=0;a<s.length;a++){var l=s[a];2&l.f?Od(l,t,!1):t===l&&(n?Ue(l,lt):(l.f&He)!==0&&Ue(l,En),ou(l))}}function Wl(r){var t=Ye,n=pt,s=Ht,a=ge,l=Qt,u=be,f=Bt,h=Vr,g=r.f;Ye=null,pt=0,Ht=null,ge=96&g?null:r,Qt=null,Li(r.ctx),Bt=!1,Vr=++Dr,r.ac!==null&&(Sd(()=>{r.ac.abort(ja)}),r.ac=null);try{r.f|=ws;var _=(0,r.fn)();r.f|=_r;var w=r.deps,m=fe?.is_fork;if(Ye!==null){var E;if(m||Cs(r,pt),w!==null&&pt>0)for(w.length=pt+Ye.length,E=0;E<Ye.length;E++)w[pt+E]=Ye[E];else r.deps=w=Ye;if(du()&&(r.f&Gt)!==0)for(E=pt;E<w.length;E++)(w[E].reactions??=[]).push(r)}else!m&&w!==null&&pt<w.length&&(Cs(r,pt),w.length=pt);if(xs()&&Ht!==null&&!Bt&&w!==null&&!(6146&r.f))for(E=0;E<Ht.length;E++)Od(Ht[E],r);if(a!==null&&a!==r){if(Dr++,a.deps!==null)for(let C=0;C<n;C+=1)a.deps[C].rv=Dr;if(t!==null)for(const C of t)C.rv=Dr;Ht!==null&&(s===null?s=Ht:s.push(...Ht))}return(r.f&or)!==0&&(r.f^=or),_}catch(C){return id(C)}finally{r.f^=ws,Ye=t,pt=n,Ht=s,ge=a,Qt=l,Li(u),Bt=f,Vr=h}}function UE(r,t){let n=t.reactions;if(n!==null){var s=hE.call(n,r);if(s!==-1){var a=n.length-1;a===0?n=t.reactions=null:(n[s]=n[a],n.pop())}}if(n===null&&2&t.f&&(Ye===null||!Qr.call(Ye,t))){var l=t;(l.f&Gt)!==0&&(l.f^=Gt,l.f&=-65537),l.v!==Ge&&su(l),(function(u){if(u.effects!==null)for(const f of u.effects)(f.teardown||f.ac)&&(f.teardown?.(),f.ac?.abort(ja),f.teardown=vE,f.ac=null,Cs(f,0),gu(f))})(l),Cs(l,0)}}function Cs(r,t){var n=r.deps;if(n!==null)for(var s=t;s<n.length;s++)UE(r,n[s])}function zr(r){var t=r.f;if((t&xi)===0){Ue(r,He);var n=te,s=Oa;if(te=r,Oa=!0,H){var a=Is;lh(r.component_function);var l=Ss;Va(r.dev_stack??Ss)}try{16777232&t?(function(f){for(var h=f.first;h!==null;){var g=h.next;(h.f&Ps)===0&&mt(h),h=g}})(r):gu(r),Rd(r);var u=Wl(r);r.teardown=typeof u=="function"?u:null,r.wv=Ld}finally{Oa=s,te=n,H&&(lh(a),Va(l))}}}function q(r){var t,n=!!(2&r.f);if(ge!==null&&!Bt&&!(te!==null&&(te.f&xi)!==0||Qt!==null&&Qr.call(Qt,r))){var s=ge.deps;if((ge.f&ws)!==0)r.rv<Dr&&(r.rv=Dr,Ye===null&&s!==null&&s[pt]===r?pt++:Ye===null?Ye=[r]:Ye.push(r));else{(ge.deps??=[]).push(r);var a=r.reactions;a===null?r.reactions=[ge]:Qr.call(a,ge)||a.push(ge)}}if(H){if(!Bt&&Wt&&!Wt.warned&&(Wt.effect.f&ws)===0&&!Wt.effect_deps.has(r)){Wt.warned=!0,t=r.label,H?console.warn(`%c[svelte] await_reactivity_loss
48
- %cDetected reactivity loss when reading \`${t}\`. This happens when state is read in an async function after an earlier \`await\`
49
- https://svelte.dev/e/await_reactivity_loss`,ur,cr):console.warn("https://svelte.dev/e/await_reactivity_loss");var l=nd("traced at");l&&console.warn(l)}xE.delete(r)}if(Bn&&Fr.has(r))return Fr.get(r);if(n){var u=r;if(Bn){var f=u.v;return((u.f&He)===0&&u.reactions!==null||Dd(u))&&(f=uu(u)),Fr.set(u,f),f}var h=(u.f&Gt)===0&&!Bt&&ge!==null&&(Oa||(ge.f&Gt)!==0),g=(u.f&_r)===0;Hi(u)&&(h&&(u.f|=Gt),dd(u)),h&&!g&&(gd(u),Ud(u))}if(sn?.has(r))return sn.get(r);if((r.f&or)!==0)throw r.v;return r.v}function Ud(r){if(r.f|=Gt,r.deps!==null)for(const t of r.deps)(t.reactions??=[]).push(r),2&t.f&&(t.f&Gt)===0&&(gd(t),Ud(t))}function Dd(r){if(r.v===Ge)return!0;if(r.deps===null)return!1;for(const t of r.deps)if(Fr.has(t)||2&t.f&&Dd(t))return!0;return!1}function Fn(r){var t=Bt;try{return Bt=!0,r()}finally{Bt=t}}function pi(r){if(typeof r=="object"&&r&&!(r instanceof EventTarget)){if(mn in r)Bl(r);else if(!Array.isArray(r))for(let t in r){const n=r[t];typeof n=="object"&&n&&mn in n&&Bl(n)}}}function Bl(r,t=new Set){if(!(typeof r!="object"||r===null||r instanceof EventTarget||t.has(r))){t.add(r),r instanceof Date&&r.getTime();for(let s in r)try{Bl(r[s],t)}catch{}const n=Zl(r);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const s=Qh(n);for(let a in s){const l=s[a].get;if(l)try{l.call(r)}catch{}}}}}const Ra=Symbol("events"),DE=new Set,wh=new Set;let Sh=null;function yh(r){var t=this,n=t.ownerDocument,s=r.type,a=r.composedPath?.()||[],l=a[0]||r.target;Sh=r;var u=0,f=Sh===r&&r[Ra];if(f){var h=a.indexOf(f);if(h!==-1&&(t===document||t===window))return void(r[Ra]=t);var g=a.indexOf(t);if(g===-1)return;h<=g&&(u=h)}if((l=a[u]||r.target)!==t){cn(r,"currentTarget",{configurable:!0,get:()=>l||n});var _=ge,w=te;Kt(null),xt(null);try{for(var m,E=[];l!==null;){var C=l.assignedSlot||l.parentNode||l.host||null;try{var R=l[Ra]?.[s];R==null||l.disabled&&r.target!==l||R.call(l,r)}catch(I){m?E.push(I):m=I}if(r.cancelBubble||C===t||C===null)break;l=C}if(m){for(let I of E)queueMicrotask(()=>{throw I});throw m}}finally{r[Ra]=t,delete r.currentTarget,Kt(_),xt(w)}}}const ME=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:r=>r});function kE(r){var t=hu("template");return t.innerHTML=(function(n){return ME?.createHTML(n)??n})(r.replaceAll("<!>","<!---->")),t.content}function Ai(r,t){var n=te;n.nodes===null&&(n.nodes={start:r,end:t,a:null,t:null})}function pu(r,t){var n,s=!!(1&t),a=!!(2&t),l=!r.startsWith("<!>");return()=>{if(De)return Ai(Ee,null),Ee;n===void 0&&(n=kE(l?r:"<!>"+r),s||(n=Oi(n)));var u=a||fu?document.importNode(n,!0):n.cloneNode(!0);return s?Ai(Oi(u),u.lastChild):Ai(u,u),u}}function ds(r,t){if(De){var n=te;return(n.f&_r)!==0&&n.nodes.end!==null||(n.nodes.end=Ee),void nu()}r!==null&&r.before(t)}const $E=["touchstart","touchmove"];function FE(r){return $E.includes(r)}function Md(r,t){return kd(r,t)}function HE(r,t){Hl(),t.intro=t.intro??!1;const n=t.target,s=De,a=Ee;try{for(var l=Oi(n);l&&(l.nodeType!==8||l.data!=="[");)l=Wn(l);if(!l)throw Ii;mi(!0),wn(l);const u=kd(r,{...t,anchor:l});return mi(!1),u}catch(u){if(u instanceof Error&&u.message.split(`
50
- `).some(f=>f.startsWith("https://svelte.dev/e/")))throw u;return u!==Ii&&console.warn("Failed to hydrate: ",u),t.recover===!1&&(function(){if(H){const f=new Error(`hydration_failed
43
+ https://svelte.dev/e/derived_references_self`);throw l.name="Svelte error",l}throw new Error("https://svelte.dev/e/derived_references_self")})(),Pl.push(n),n.f&=-65537,hh(n),e=Wl(n)}finally{xt(r),dh(a),Pl.pop()}}else try{n.f&=-65537,hh(n),e=Wl(n)}finally{xt(r)}return e}function dd(n){var e=uu(n);n.equals(e)||(n.wv=Nd(),fe?.is_fork&&n.deps!==null||(fe!==null?(fe.capture(n,e,!0),Fl?.capture(n,e,!0)):n.v=e,n.deps!==null))?Bn||(sn!==null?(du()||fe?.is_fork)&&sn.set(n,e):su(n)):Ue(n,He)}function gd(n){if(n.effects!==null)for(const e of n.effects)e.teardown&&zr(e)}let Ni=new Set;const Fr=new Map;function dh(n){Ni=n}let cu=!1;function ys(n,e){var r={f:0,v:n,reactions:null,equals:Zh,rv:0,wv:0};return r}function er(n,e){const r=ys(n);var s;return s=r,ve!==null&&(Qt===null?Qt=[s]:Qt.push(s)),r}function yi(n,e=!1,r=!0){const s=ys(n);return e||(s.equals=ed),Fi&&r&&Te!==null&&Te.l!==null&&(Te.l.s??=[]).push(s),s}function ls(n,e){return _t(n,Fn(()=>q(n))),e}function _t(n,e,r=!1){ve===null||Bt&&(ve.f&tu)===0||!xs()||!(4325394&ve.f)||Qt!==null&&Qr.call(Qt,n)||(function(){if(H){const a=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw a.name="Svelte error",a}throw new Error("https://svelte.dev/e/state_unsafe_mutation")})();let s=r?Ei(e):e;return H&&td(s,n.label),Wa(n,s,Na)}function Wa(n,e,r=null){if(!n.equals(e)){Fr.set(n,Bn?e:n.v);var s=Vn.ensure();if(s.capture(n,e),H){if(ee!==null){n.updated??=new Map;const a=(n.updated.get("")?.count??0)+1;if(n.updated.set("",{error:null,count:a}),a>5){const l=nd("updated at");if(l!==null){let u=n.updated.get(l.stack);u||(u={error:l,count:0},n.updated.set(l.stack,u)),u.count++}}}ee!==null&&(n.set_during_effect=!0)}if(2&n.f){const a=n;(n.f&lt)!==0&&uu(a),sn===null&&su(a)}n.wv=Nd(),vd(n,lt,r),!xs()||ee===null||(ee.f&He)===0||96&ee.f||(Ht===null?(function(a){Ht=a})([n]):Ht.push(n)),!s.is_fork&&Ni.size>0&&!cu&&pd()}return e}function pd(){cu=!1;for(const n of Ni){let e;(n.f&He)!==0&&Ue(n,En);try{e=Hi(n)}catch{e=!0}e&&zr(n)}Ni.clear()}function fs(n){_t(n,n.v+1)}function vd(n,e,r){var s=n.reactions;if(s!==null)for(var a=xs(),l=s.length,u=0;u<l;u++){var f=s[u],h=f.f;if(a||f!==ee){var g=(h&lt)===0;if(g&&Ue(f,e),(h&tu)!==0)Ni.add(f);else if(2&h){var _=f;sn?.delete(_),(h&Ha)===0&&(h&Gt&&(ee===null||(ee.f&ws)===0)&&(f.f|=Ha),vd(_,En,r))}else if(g){var w=f;(h&Ps)!==0&&Mn!==null&&Mn.add(w),r!==null?r.push(w):ou(w)}}}}const LE=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function Ei(n){if(typeof n!="object"||n===null||mn in n)return n;const e=Zl(n);if(e!==gE&&e!==pE)return n;var r=new Map,s=fE(n),a=er(0),l=Vr,u=_=>{if(Vr===l)return _();var w=ve,m=Vr;Kt(null),mh(l);var E=_();return Kt(w),mh(m),E};s&&(r.set("length",er(n.length)),H&&(n=new Proxy(n,{get(_,w,m){var E=Reflect.get(_,w,m);return NE.has(w)?function(...C){cu=!0;var R=E.apply(this,C);return pd(),R}:E}})));var f="";let h=!1;function g(_){if(!h){h=!0,_n(a,`${f=_} version`);for(const[w,m]of r)_n(m,Lr(f,w));h=!1}}return new Proxy(n,{defineProperty(_,w,m){"value"in m&&m.configurable!==!1&&m.enumerable!==!1&&m.writable!==!1||(function(){if(H){const C=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw C.name="Svelte error",C}throw new Error("https://svelte.dev/e/state_descriptors_fixed")})();var E=r.get(w);return E===void 0?u(()=>{var C=er(m.value);return r.set(w,C),H&&typeof w=="string"&&_n(C,Lr(f,w)),C}):_t(E,m.value,!0),!0},deleteProperty(_,w){var m=r.get(w);if(m===void 0){if(w in _){const E=u(()=>er(Ge));r.set(w,E),fs(a),H&&_n(E,Lr(f,w))}}else _t(m,Ge),fs(a);return!0},get(_,w,m){if(w===mn)return n;if(H&&w===jh)return g;var E=r.get(w),C=w in _;if(E!==void 0||C&&!Hn(_,w)?.writable||(E=u(()=>{var I=er(Ei(C?_[w]:Ge));return H&&_n(I,Lr(f,w)),I}),r.set(w,E)),E!==void 0){var R=q(E);return R===Ge?void 0:R}return Reflect.get(_,w,m)},getOwnPropertyDescriptor(_,w){var m=Reflect.getOwnPropertyDescriptor(_,w);if(m&&"value"in m){var E=r.get(w);E&&(m.value=q(E))}else if(m===void 0){var C=r.get(w),R=C?.v;if(C!==void 0&&R!==Ge)return{enumerable:!0,configurable:!0,value:R,writable:!0}}return m},has(_,w){if(w===mn)return!0;var m=r.get(w),E=m!==void 0&&m.v!==Ge||Reflect.has(_,w);return(m!==void 0||ee!==null&&(!E||Hn(_,w)?.writable))&&(m===void 0&&(m=u(()=>{var C=er(E?Ei(_[w]):Ge);return H&&_n(C,Lr(f,w)),C}),r.set(w,m)),q(m)===Ge)?!1:E},set(_,w,m,E){var C=r.get(w),R=w in _;if(s&&w==="length")for(var I=m;I<C.v;I+=1){var N=r.get(I+"");N!==void 0?_t(N,Ge):I in _&&(N=u(()=>er(Ge)),r.set(I+"",N),H&&_n(N,Lr(f,I)))}C===void 0?R&&!Hn(_,w)?.writable||(C=u(()=>er(void 0)),H&&_n(C,Lr(f,w)),_t(C,Ei(m)),r.set(w,C)):(R=C.v!==Ge,_t(C,u(()=>Ei(m))));var F=Reflect.getOwnPropertyDescriptor(_,w);if(F?.set&&F.set.call(E,m),!R){if(s&&typeof w=="string"){var oe=r.get("length"),de=Number(w);Number.isInteger(de)&&de>=oe.v&&_t(oe,de+1)}fs(a)}return!0},ownKeys(_){q(a);var w=Reflect.ownKeys(_).filter(C=>{var R=r.get(C);return R===void 0||R.v!==Ge});for(var[m,E]of r)E.v===Ge||m in _||w.push(m);return w},setPrototypeOf(){(function(){if(H){const _=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw _.name="Svelte error",_}throw new Error("https://svelte.dev/e/state_prototype_fixed")})()}})}function Lr(n,e){return typeof e=="symbol"?`${n}[Symbol(${e.description??""})]`:LE.test(e)?`${n}.${e}`:/^\d+$/.test(e)?`${n}[${e}]`:`${n}['${e}']`}function Al(n){try{if(n!==null&&typeof n=="object"&&mn in n)return n[mn]}catch{}return n}const NE=new Set(["copyWithin","fill","pop","push","reverse","shift","sort","splice","unshift"]);var gh,fu,_d,md;function Hl(){if(gh===void 0){gh=window,fu=/Firefox/.test(navigator.userAgent);var n=Element.prototype,e=Node.prototype,r=Text.prototype;_d=Hn(e,"firstChild").get,md=Hn(e,"nextSibling").get,oh(n)&&(n[kl]=void 0,n[Yh]=null,n[SE]=void 0,n.__e=void 0),oh(r)&&(r[yE]=void 0),H&&(n.__svelte_meta=null,(function(){const s=Array.prototype,a=Array.__svelte_cleanup;a&&a();const{indexOf:l,lastIndexOf:u,includes:f}=s;s.indexOf=function(h,g){const _=l.call(this,h,g);if(_===-1){for(let w=g??0;w<this.length;w+=1)if(Al(this[w])===h){El("array.indexOf(...)");break}}return _},s.lastIndexOf=function(h,g){const _=u.call(this,h,g??this.length-1);if(_===-1){for(let w=0;w<=(g??this.length-1);w+=1)if(Al(this[w])===h){El("array.lastIndexOf(...)");break}}return _},s.includes=function(h,g){const _=f.call(this,h,g);if(!_){for(let w=0;w<this.length;w+=1)if(Al(this[w])===h){El("array.includes(...)");break}}return _},Array.__svelte_cleanup=()=>{s.indexOf=l,s.lastIndexOf=u,s.includes=f}})())}}function Hr(n=""){return document.createTextNode(n)}function Oi(n){return _d.call(n)}function Wn(n){return md.call(n)}function ph(n,e=!1){if(!De){var r=Oi(n);return r instanceof Comment&&r.data===""?Wn(r):r}if(e){if(Ce?.nodeType!==3){var s=Hr();return Ce?.before(s),wn(s),s}wd(Ce)}return Ce}function hu(n,e,r){return document.createElementNS(Gh,n,void 0)}function wd(n){if(n.nodeValue.length<65536)return;let e=n.nextSibling;for(;e!==null&&e.nodeType===3;)e.remove(),n.nodeValue+=e.nodeValue,e=n.nextSibling}function Sd(n){var e=ve,r=ee;Kt(null),xt(null);try{return n()}finally{Kt(e),xt(r)}}function yd(n){ee===null&&(ve===null&&(function(e){if(H){const r=new Error(`effect_orphan
44
+ \`${e}\` can only be used inside an effect (e.g. during component initialisation)
45
+ https://svelte.dev/e/effect_orphan`);throw r.name="Svelte error",r}throw new Error("https://svelte.dev/e/effect_orphan")})(n),(function(){if(H){const e=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/effect_in_unowned_derived")})()),Bn&&(function(e){if(H){const r=new Error(`effect_in_teardown
46
+ \`${e}\` cannot be used inside an effect cleanup function
47
+ https://svelte.dev/e/effect_in_teardown`);throw r.name="Svelte error",r}throw new Error("https://svelte.dev/e/effect_in_teardown")})(n)}function hn(n,e){var r=ee;if(H)for(;r!==null&&(r.f&tu)!==0;)r=r.parent;r!==null&&(r.f&qr)!==0&&(n|=qr);var s={ctx:Te,deps:null,nodes:null,f:n|lt|Gt,first:null,fn:e,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};H&&(s.component_function=Is),fe?.register_created_effect(s);var a=s;if(4&n)Si!==null?Si.push(s):Vn.ensure().schedule(s);else if(e!==null){try{zr(s)}catch(u){throw mt(s),u}a.deps===null&&a.teardown===null&&a.nodes===null&&a.first===a.last&&(a.f&zh)===0&&(a=a.first,(n&Ps)!==0&&(n&ms)!==0&&a!==null&&(a.f|=ms))}if(a!==null&&(a.parent=r,r!==null&&(function(u,f){var h=f.last;h===null?f.last=f.first=u:(h.next=u,u.prev=h,f.last=u)})(a,r),ve!==null&&2&ve.f&&(n&eu)===0)){var l=ve;(l.effects??=[]).push(a)}return s}function du(){return ve!==null&&!Bt}function Ed(n){const e=hn(8,null);return Ue(e,He),e.teardown=n,e}function Vl(n){yd("$effect"),H&&cn(n,"name",{value:"$effect"});var e=ee.f;if(!(!ve&&(e&As)!==0&&(e&_r)===0))return Cd(n);var r=Te;(r.e??=[]).push(n)}function Cd(n){return hn(1048580,n)}function bd(n){return hn(4,n)}function Es(n,e=0){return hn(8|e,n)}function vh(n,e=[],r=[],s=[]){IE(s,e,r,a=>{hn(8,()=>n(...a.map(q)))})}function Td(n,e=0){var r=hn(Ps|e,n);return H&&(r.dev_stack=Ss),r}function nr(n){return hn(524320,n)}function Rd(n){var e=n.teardown;if(e!==null){const r=Bn,s=ve;_h(!0),Kt(null);try{e.call(null)}finally{_h(r),Kt(s)}}}function gu(n,e=!1){var r=n.first;for(n.first=n.last=null;r!==null;){const a=r.ac;a!==null&&Sd(()=>{a.abort(ja)});var s=r.next;(r.f&eu)!==0?r.parent=null:mt(r,e),r=s}}function mt(n,e=!0){var r=!1;(e||262144&n.f)&&n.nodes!==null&&n.nodes.end!==null&&((function(l,u){for(;l!==null;){var f=l===u?null:Wn(l);l.remove(),l=f}})(n.nodes.start,n.nodes.end),r=!0),Ue(n,Ml),gu(n,e&&!r),Cs(n,0);var s=n.nodes&&n.nodes.t;if(s!==null)for(const l of s)l.stop();Rd(n),n.f^=Ml,n.f|=xi;var a=n.parent;a!==null&&a.first!==null&&Pd(n),H&&(n.component_function=null),n.next=n.prev=n.teardown=n.ctx=n.deps=n.fn=n.nodes=n.ac=n.b=null}function Pd(n){var e=n.parent,r=n.prev,s=n.next;r!==null&&(r.next=s),s!==null&&(s.prev=r),e!==null&&(e.first===n&&(e.first=s),e.last===n&&(e.last=r))}function hs(n,e,r=!0){var s=[];Ad(n,s,!0);var a=()=>{r&&mt(n),e&&e()},l=s.length;if(l>0){var u=()=>--l||a();for(var f of s)f.out(u)}else a()}function Ad(n,e,r){if((n.f&qr)===0){n.f^=qr;var s=n.nodes&&n.nodes.t;if(s!==null)for(const u of s)(u.is_global||r)&&e.push(u);for(var a=n.first;a!==null;){var l=a.next;(a.f&eu)===0&&Ad(a,e,((a.f&ms)!==0||(a.f&As)!==0&&(n.f&Ps)!==0)&&r),a=l}}}function OE(n){Id(n,!0)}function Id(n,e){if((n.f&qr)!==0){n.f^=qr,(n.f&He)===0&&(Ue(n,lt),Vn.ensure().schedule(n));for(var r=n.first;r!==null;){var s=r.next;Id(r,((r.f&ms)!==0||(r.f&As)!==0)&&e),r=s}var a=n.nodes&&n.nodes.t;if(a!==null)for(const l of a)(l.is_global||e)&&l.in()}}function xd(n,e){if(n.nodes)for(var r=n.nodes.start,s=n.nodes.end;r!==null;){var a=r===s?null:Wn(r);e.append(r),r=a}}let Oa=!1,Bn=!1;function _h(n){Bn=n}let ve=null,Bt=!1;function Kt(n){ve=n}let ee=null;function xt(n){ee=n}let Qt=null,Ye=null,pt=0,Ht=null,Ld=1,Dr=0,Vr=Dr;function mh(n){Vr=n}function Nd(){return++Ld}function Hi(n){var e=n.f;if((e&lt)!==0)return!0;if(2&e&&(n.f&=-65537),(e&En)!==0){for(var r=n.deps,s=r.length,a=0;a<s;a++){var l=r[a];if(Hi(l)&&dd(l),l.wv>n.wv)return!0}(e&Gt)!==0&&sn===null&&Ue(n,He)}return!1}function Od(n,e,r=!0){var s=n.reactions;if(s!==null&&(Qt===null||!Qr.call(Qt,n)))for(var a=0;a<s.length;a++){var l=s[a];2&l.f?Od(l,e,!1):e===l&&(r?Ue(l,lt):(l.f&He)!==0&&Ue(l,En),ou(l))}}function Wl(n){var e=Ye,r=pt,s=Ht,a=ve,l=Qt,u=Te,f=Bt,h=Vr,g=n.f;Ye=null,pt=0,Ht=null,ve=96&g?null:n,Qt=null,Li(n.ctx),Bt=!1,Vr=++Dr,n.ac!==null&&(Sd(()=>{n.ac.abort(ja)}),n.ac=null);try{n.f|=ws;var _=(0,n.fn)();n.f|=_r;var w=n.deps,m=fe?.is_fork;if(Ye!==null){var E;if(m||Cs(n,pt),w!==null&&pt>0)for(w.length=pt+Ye.length,E=0;E<Ye.length;E++)w[pt+E]=Ye[E];else n.deps=w=Ye;if(du()&&(n.f&Gt)!==0)for(E=pt;E<w.length;E++)(w[E].reactions??=[]).push(n)}else!m&&w!==null&&pt<w.length&&(Cs(n,pt),w.length=pt);if(xs()&&Ht!==null&&!Bt&&w!==null&&!(6146&n.f))for(E=0;E<Ht.length;E++)Od(Ht[E],n);if(a!==null&&a!==n){if(Dr++,a.deps!==null)for(let C=0;C<r;C+=1)a.deps[C].rv=Dr;if(e!==null)for(const C of e)C.rv=Dr;Ht!==null&&(s===null?s=Ht:s.push(...Ht))}return(n.f&or)!==0&&(n.f^=or),_}catch(C){return id(C)}finally{n.f^=ws,Ye=e,pt=r,Ht=s,ve=a,Qt=l,Li(u),Bt=f,Vr=h}}function UE(n,e){let r=e.reactions;if(r!==null){var s=hE.call(r,n);if(s!==-1){var a=r.length-1;a===0?r=e.reactions=null:(r[s]=r[a],r.pop())}}if(r===null&&2&e.f&&(Ye===null||!Qr.call(Ye,e))){var l=e;(l.f&Gt)!==0&&(l.f^=Gt,l.f&=-65537),l.v!==Ge&&su(l),(function(u){if(u.effects!==null)for(const f of u.effects)(f.teardown||f.ac)&&(f.teardown?.(),f.ac?.abort(ja),f.teardown=vE,f.ac=null,Cs(f,0),gu(f))})(l),Cs(l,0)}}function Cs(n,e){var r=n.deps;if(r!==null)for(var s=e;s<r.length;s++)UE(n,r[s])}function zr(n){var e=n.f;if((e&xi)===0){Ue(n,He);var r=ee,s=Oa;if(ee=n,Oa=!0,H){var a=Is;lh(n.component_function);var l=Ss;Va(n.dev_stack??Ss)}try{16777232&e?(function(f){for(var h=f.first;h!==null;){var g=h.next;(h.f&As)===0&&mt(h),h=g}})(n):gu(n),Rd(n);var u=Wl(n);n.teardown=typeof u=="function"?u:null,n.wv=Ld}finally{Oa=s,ee=r,H&&(lh(a),Va(l))}}}function q(n){var e,r=!!(2&n.f);if(ve!==null&&!Bt&&!(ee!==null&&(ee.f&xi)!==0||Qt!==null&&Qr.call(Qt,n))){var s=ve.deps;if((ve.f&ws)!==0)n.rv<Dr&&(n.rv=Dr,Ye===null&&s!==null&&s[pt]===n?pt++:Ye===null?Ye=[n]:Ye.push(n));else{(ve.deps??=[]).push(n);var a=n.reactions;a===null?n.reactions=[ve]:Qr.call(a,ve)||a.push(ve)}}if(H){if(!Bt&&Wt&&!Wt.warned&&(Wt.effect.f&ws)===0&&!Wt.effect_deps.has(n)){Wt.warned=!0,e=n.label,H?console.warn(`%c[svelte] await_reactivity_loss
48
+ %cDetected reactivity loss when reading \`${e}\`. This happens when state is read in an async function after an earlier \`await\`
49
+ https://svelte.dev/e/await_reactivity_loss`,ur,cr):console.warn("https://svelte.dev/e/await_reactivity_loss");var l=nd("traced at");l&&console.warn(l)}xE.delete(n)}if(Bn&&Fr.has(n))return Fr.get(n);if(r){var u=n;if(Bn){var f=u.v;return((u.f&He)===0&&u.reactions!==null||Dd(u))&&(f=uu(u)),Fr.set(u,f),f}var h=(u.f&Gt)===0&&!Bt&&ve!==null&&(Oa||(ve.f&Gt)!==0),g=(u.f&_r)===0;Hi(u)&&(h&&(u.f|=Gt),dd(u)),h&&!g&&(gd(u),Ud(u))}if(sn?.has(n))return sn.get(n);if((n.f&or)!==0)throw n.v;return n.v}function Ud(n){if(n.f|=Gt,n.deps!==null)for(const e of n.deps)(e.reactions??=[]).push(n),2&e.f&&(e.f&Gt)===0&&(gd(e),Ud(e))}function Dd(n){if(n.v===Ge)return!0;if(n.deps===null)return!1;for(const e of n.deps)if(Fr.has(e)||2&e.f&&Dd(e))return!0;return!1}function Fn(n){var e=Bt;try{return Bt=!0,n()}finally{Bt=e}}function pi(n){if(typeof n=="object"&&n&&!(n instanceof EventTarget)){if(mn in n)Bl(n);else if(!Array.isArray(n))for(let e in n){const r=n[e];typeof r=="object"&&r&&mn in r&&Bl(r)}}}function Bl(n,e=new Set){if(!(typeof n!="object"||n===null||n instanceof EventTarget||e.has(n))){e.add(n),n instanceof Date&&n.getTime();for(let s in n)try{Bl(n[s],e)}catch{}const r=Zl(n);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const s=Qh(r);for(let a in s){const l=s[a].get;if(l)try{l.call(n)}catch{}}}}}const Ra=Symbol("events"),DE=new Set,wh=new Set;let Sh=null;function yh(n){var e=this,r=e.ownerDocument,s=n.type,a=n.composedPath?.()||[],l=a[0]||n.target;Sh=n;var u=0,f=Sh===n&&n[Ra];if(f){var h=a.indexOf(f);if(h!==-1&&(e===document||e===window))return void(n[Ra]=e);var g=a.indexOf(e);if(g===-1)return;h<=g&&(u=h)}if((l=a[u]||n.target)!==e){cn(n,"currentTarget",{configurable:!0,get:()=>l||r});var _=ve,w=ee;Kt(null),xt(null);try{for(var m,E=[];l!==null;){var C=l.assignedSlot||l.parentNode||l.host||null;try{var R=l[Ra]?.[s];R==null||l.disabled&&n.target!==l||R.call(l,n)}catch(I){m?E.push(I):m=I}if(n.cancelBubble||C===e||C===null)break;l=C}if(m){for(let I of E)queueMicrotask(()=>{throw I});throw m}}finally{n[Ra]=e,delete n.currentTarget,Kt(_),xt(w)}}}const ME=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:n=>n});function kE(n){var e=hu("template");return e.innerHTML=(function(r){return ME?.createHTML(r)??r})(n.replaceAll("<!>","<!---->")),e.content}function Pi(n,e){var r=ee;r.nodes===null&&(r.nodes={start:n,end:e,a:null,t:null})}function pu(n,e){var r,s=!!(1&e),a=!!(2&e),l=!n.startsWith("<!>");return()=>{if(De)return Pi(Ce,null),Ce;r===void 0&&(r=kE(l?n:"<!>"+n),s||(r=Oi(r)));var u=a||fu?document.importNode(r,!0):r.cloneNode(!0);return s?Pi(Oi(u),u.lastChild):Pi(u,u),u}}function ds(n,e){if(De){var r=ee;return(r.f&_r)!==0&&r.nodes.end!==null||(r.nodes.end=Ce),void nu()}n!==null&&n.before(e)}const $E=["touchstart","touchmove"];function FE(n){return $E.includes(n)}function Md(n,e){return kd(n,e)}function HE(n,e){Hl(),e.intro=e.intro??!1;const r=e.target,s=De,a=Ce;try{for(var l=Oi(r);l&&(l.nodeType!==8||l.data!=="[");)l=Wn(l);if(!l)throw Ii;mi(!0),wn(l);const u=kd(n,{...e,anchor:l});return mi(!1),u}catch(u){if(u instanceof Error&&u.message.split(`
50
+ `).some(f=>f.startsWith("https://svelte.dev/e/")))throw u;return u!==Ii&&console.warn("Failed to hydrate: ",u),e.recover===!1&&(function(){if(H){const f=new Error(`hydration_failed
51
51
  Failed to hydrate the application
52
- https://svelte.dev/e/hydration_failed`);throw f.name="Svelte error",f}throw new Error("https://svelte.dev/e/hydration_failed")})(),Hl(),n.textContent="",mi(!1),Md(r,t)}finally{mi(s),wn(a)}}const Aa=new Map;function kd(r,{target:t,anchor:n,props:s={},events:a,context:l,intro:u=!0,transformError:f}){Hl();var h=void 0,g=(function(_){Vn.ensure();const w=hn(524352,_);return(m={})=>new Promise(E=>{m.outro?hs(w,()=>{mt(w),E(void 0)}):(mt(w),E(void 0))})})(()=>{var _=n??t.appendChild(Hr());(function(E,C,R,I){new PE(E,C,R,I)})(_,{pending:()=>{}},E=>{if(ru({}),l&&(be.c=l),a&&(s.$$events=a),De&&Ai(E,null),h=r(E,s)||{},De&&(te.nodes.end=Ee,Ee===null||Ee.nodeType!==8||Ee.data!=="]"))throw Ya(),Ii;iu()},f);var w=new Set,m=E=>{for(var C=0;C<E.length;C++){var R=E[C];if(!w.has(R)){w.add(R);var I=FE(R);for(const J of[t,document]){var N=Aa.get(J);N===void 0&&(N=new Map,Aa.set(J,N));var F=N.get(R);F===void 0?(J.addEventListener(R,yh,{passive:I}),N.set(R,1)):N.set(R,F+1)}}}};return m(dE(DE)),wh.add(m),()=>{for(var E of w)for(const I of[t,document]){var C=Aa.get(I),R=C.get(E);--R==0?(I.removeEventListener(E,yh),C.delete(E),C.size===0&&Aa.delete(I)):C.set(E,R)}wh.delete(m),_!==n&&_.parentNode?.removeChild(_)}});return Gl.set(h,g),h}let Gl=new WeakMap;function VE(r,t){const n=Gl.get(r);return n?(Gl.delete(r),n(t)):(H&&(mn in r?H?console.warn(`%c[svelte] state_proxy_unmount
52
+ https://svelte.dev/e/hydration_failed`);throw f.name="Svelte error",f}throw new Error("https://svelte.dev/e/hydration_failed")})(),Hl(),r.textContent="",mi(!1),Md(n,e)}finally{mi(s),wn(a)}}const Pa=new Map;function kd(n,{target:e,anchor:r,props:s={},events:a,context:l,intro:u=!0,transformError:f}){Hl();var h=void 0,g=(function(_){Vn.ensure();const w=hn(524352,_);return(m={})=>new Promise(E=>{m.outro?hs(w,()=>{mt(w),E(void 0)}):(mt(w),E(void 0))})})(()=>{var _=r??e.appendChild(Hr());(function(E,C,R,I){new AE(E,C,R,I)})(_,{pending:()=>{}},E=>{if(ru({}),l&&(Te.c=l),a&&(s.$$events=a),De&&Pi(E,null),h=n(E,s)||{},De&&(ee.nodes.end=Ce,Ce===null||Ce.nodeType!==8||Ce.data!=="]"))throw Ya(),Ii;iu()},f);var w=new Set,m=E=>{for(var C=0;C<E.length;C++){var R=E[C];if(!w.has(R)){w.add(R);var I=FE(R);for(const oe of[e,document]){var N=Pa.get(oe);N===void 0&&(N=new Map,Pa.set(oe,N));var F=N.get(R);F===void 0?(oe.addEventListener(R,yh,{passive:I}),N.set(R,1)):N.set(R,F+1)}}}};return m(dE(DE)),wh.add(m),()=>{for(var E of w)for(const I of[e,document]){var C=Pa.get(I),R=C.get(E);--R==0?(I.removeEventListener(E,yh),C.delete(E),C.size===0&&Pa.delete(I)):C.set(E,R)}wh.delete(m),_!==r&&_.parentNode?.removeChild(_)}});return Gl.set(h,g),h}let Gl=new WeakMap;function VE(n,e){const r=Gl.get(n);return r?(Gl.delete(n),r(e)):(H&&(mn in n?H?console.warn(`%c[svelte] state_proxy_unmount
53
53
  %cTried to unmount a state proxy, rather than a component
54
54
  https://svelte.dev/e/state_proxy_unmount`,ur,cr):console.warn("https://svelte.dev/e/state_proxy_unmount"):H?console.warn(`%c[svelte] lifecycle_double_unmount
55
55
  %cTried to unmount a component that was not mounted
56
- https://svelte.dev/e/lifecycle_double_unmount`,ur,cr):console.warn("https://svelte.dev/e/lifecycle_double_unmount")),Promise.resolve())}class WE{anchor;#e=new Map;#n=new Map;#t=new Map;#l=new Set;#i=!0;constructor(t,n=!0){this.anchor=t,this.#i=n}#o=t=>{if(this.#e.has(t)){var n=this.#e.get(t),s=this.#n.get(n);if(s)OE(s),this.#l.delete(n);else{var a=this.#t.get(n);a&&(this.#n.set(n,a.effect),this.#t.delete(n),H&&(a.fragment.lastChild[EE]=this.anchor),a.fragment.lastChild.remove(),this.anchor.before(a.fragment),s=a.effect)}for(const[l,u]of this.#e){if(this.#e.delete(l),l===t)break;const f=this.#t.get(u);f&&(mt(f.effect),this.#t.delete(u))}for(const[l,u]of this.#n){if(l===n||this.#l.has(l))continue;const f=()=>{if(Array.from(this.#e.values()).includes(l)){var h=document.createDocumentFragment();xd(u,h),h.append(Hr()),this.#t.set(l,{effect:u,fragment:h})}else mt(u);this.#l.delete(l),this.#n.delete(l)};this.#i||!s?(this.#l.add(l),hs(u,f,!1)):f()}}};#s=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[s,a]of this.#t)n.includes(s)||(mt(a.effect),this.#t.delete(s))};ensure(t,n){var s=fe;!n||this.#n.has(t)||this.#t.has(t)||this.#n.set(t,nr(()=>n(this.anchor))),this.#e.set(s,t),De&&(this.anchor=Ee),this.#o(s)}}if(H){let r=function(t){if(!(t in globalThis)){let n;Object.defineProperty(globalThis,t,{configurable:!0,get:()=>{if(n!==void 0)return n;(function(s){if(H){const a=new Error(`rune_outside_svelte
56
+ https://svelte.dev/e/lifecycle_double_unmount`,ur,cr):console.warn("https://svelte.dev/e/lifecycle_double_unmount")),Promise.resolve())}class WE{anchor;#e=new Map;#n=new Map;#t=new Map;#l=new Set;#i=!0;constructor(e,r=!0){this.anchor=e,this.#i=r}#o=e=>{if(this.#e.has(e)){var r=this.#e.get(e),s=this.#n.get(r);if(s)OE(s),this.#l.delete(r);else{var a=this.#t.get(r);a&&(this.#n.set(r,a.effect),this.#t.delete(r),H&&(a.fragment.lastChild[EE]=this.anchor),a.fragment.lastChild.remove(),this.anchor.before(a.fragment),s=a.effect)}for(const[l,u]of this.#e){if(this.#e.delete(l),l===e)break;const f=this.#t.get(u);f&&(mt(f.effect),this.#t.delete(u))}for(const[l,u]of this.#n){if(l===r||this.#l.has(l))continue;const f=()=>{if(Array.from(this.#e.values()).includes(l)){var h=document.createDocumentFragment();xd(u,h),h.append(Hr()),this.#t.set(l,{effect:u,fragment:h})}else mt(u);this.#l.delete(l),this.#n.delete(l)};this.#i||!s?(this.#l.add(l),hs(u,f,!1)):f()}}};#s=e=>{this.#e.delete(e);const r=Array.from(this.#e.values());for(const[s,a]of this.#t)r.includes(s)||(mt(a.effect),this.#t.delete(s))};ensure(e,r){var s=fe;!r||this.#n.has(e)||this.#t.has(e)||this.#n.set(e,nr(()=>r(this.anchor))),this.#e.set(s,e),De&&(this.anchor=Ce),this.#o(s)}}if(H){let n=function(e){if(!(e in globalThis)){let r;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(r!==void 0)return r;(function(s){if(H){const a=new Error(`rune_outside_svelte
57
57
  The \`${s}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
58
- https://svelte.dev/e/rune_outside_svelte`);throw a.name="Svelte error",a}throw new Error("https://svelte.dev/e/rune_outside_svelte")})(t)},set:s=>{n=s}})}};r("$state"),r("$effect"),r("$derived"),r("$inspect"),r("$props"),r("$bindable")}function Ql(r){var t,n;be===null&&Jh("onMount"),Fi&&be.l!==null?(t=be,n=t.l,n.u??={a:[],b:[],m:[]}).m.push(r):Vl(()=>{const s=Fn(r);if(typeof s=="function")return s})}var Eh=new Map;function Ch(r,t,n=!1){var s;De&&(s=Ee,nu());var a=new WE(r);function l(u,f){if(De){var h=(function(_){if(!_||_.nodeType!==8)throw Ya(),Ii;return _.data})(s);if(u!==parseInt(h.substring(1))){var g=Xh();return wn(g),a.anchor=g,mi(!1),a.ensure(u,f),void mi(!0)}}a.ensure(u,f)}Td(()=>{var u=!1;t((f,h=0)=>{u=!0,l(h,f)}),u||l(-1,null)},n?ms:0)}function BE(r,t){bd(()=>{var n=r.getRootNode(),s=n.host?n:n.head??n.ownerDocument.head;if(!s.querySelector("#"+t.hash)){const a=hu("style");a.id=t.hash,a.textContent=t.code,s.appendChild(a),H&&(function(l,u){var f=Eh.get(l);f||(f=new Set,Eh.set(l,f)),f.add(u)})(t.hash,a)}})}function $d(r){var t,n,s="";if(typeof r=="string"||typeof r=="number")s+=r;else if(typeof r=="object")if(Array.isArray(r)){var a=r.length;for(t=0;t<a;t++)r[t]&&(n=$d(r[t]))&&(s&&(s+=" "),s+=n)}else for(n in r)r[n]&&(s&&(s+=" "),s+=n);return s}function GE(r){return typeof r=="object"?(function(){for(var t,n,s=0,a="",l=arguments.length;s<l;s++)(t=arguments[s])&&(n=$d(t))&&(a&&(a+=" "),a+=n);return a})(r):r??""}function QE(r,t,n,s,a,l){var u=r[kl];if(De||u!==n||u===void 0){var f=(function(h,g,_){var w=h==null?"":""+h;return w===""?null:w})(n);De&&f===r.getAttribute("class")||(f==null?r.removeAttribute("class"):r.className=f),r[kl]=n}return l}const qE=Symbol("is custom element"),zE=Symbol("is html"),KE=CE?"link":"LINK";function Pa(r,t,n,s){var a=(function(l){return l[Yh]??={[qE]:l.nodeName.includes("-"),[zE]:l.namespaceURI===Gh}})(r);De&&(a[t]=r.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&r.nodeName===KE)?(function(l,u,f){H&&(u==="srcset"&&(function(h,g){var _=Th(h.srcset),w=Th(g);return w.length===_.length&&w.every(([m,E],C)=>E===_[C][1]&&(Il(_[C][0],m)||Il(m,_[C][0])))})(l,f)||Il(l.getAttribute(u)??"",f)||(function(h,g,_){H?console.warn(`%c[svelte] hydration_attribute_changed
58
+ https://svelte.dev/e/rune_outside_svelte`);throw a.name="Svelte error",a}throw new Error("https://svelte.dev/e/rune_outside_svelte")})(e)},set:s=>{r=s}})}};n("$state"),n("$effect"),n("$derived"),n("$inspect"),n("$props"),n("$bindable")}function Ql(n){var e,r;Te===null&&Jh("onMount"),Fi&&Te.l!==null?(e=Te,r=e.l,r.u??={a:[],b:[],m:[]}).m.push(n):Vl(()=>{const s=Fn(n);if(typeof s=="function")return s})}var Eh=new Map;function Ch(n,e,r=!1){var s;De&&(s=Ce,nu());var a=new WE(n);function l(u,f){if(De){var h=(function(_){if(!_||_.nodeType!==8)throw Ya(),Ii;return _.data})(s);if(u!==parseInt(h.substring(1))){var g=Xh();return wn(g),a.anchor=g,mi(!1),a.ensure(u,f),void mi(!0)}}a.ensure(u,f)}Td(()=>{var u=!1;e((f,h=0)=>{u=!0,l(h,f)}),u||l(-1,null)},r?ms:0)}function BE(n,e){bd(()=>{var r=n.getRootNode(),s=r.host?r:r.head??r.ownerDocument.head;if(!s.querySelector("#"+e.hash)){const a=hu("style");a.id=e.hash,a.textContent=e.code,s.appendChild(a),H&&(function(l,u){var f=Eh.get(l);f||(f=new Set,Eh.set(l,f)),f.add(u)})(e.hash,a)}})}function $d(n){var e,r,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var a=n.length;for(e=0;e<a;e++)n[e]&&(r=$d(n[e]))&&(s&&(s+=" "),s+=r)}else for(r in n)n[r]&&(s&&(s+=" "),s+=r);return s}function GE(n){return typeof n=="object"?(function(){for(var e,r,s=0,a="",l=arguments.length;s<l;s++)(e=arguments[s])&&(r=$d(e))&&(a&&(a+=" "),a+=r);return a})(n):n??""}function QE(n,e,r,s,a,l){var u=n[kl];if(De||u!==r||u===void 0){var f=(function(h,g,_){var w=h==null?"":""+h;return w===""?null:w})(r);De&&f===n.getAttribute("class")||(f==null?n.removeAttribute("class"):n.className=f),n[kl]=r}return l}const qE=Symbol("is custom element"),zE=Symbol("is html"),KE=CE?"link":"LINK";function Aa(n,e,r,s){var a=(function(l){return l[Yh]??={[qE]:l.nodeName.includes("-"),[zE]:l.namespaceURI===Gh}})(n);De&&(a[e]=n.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&n.nodeName===KE)?(function(l,u,f){H&&(u==="srcset"&&(function(h,g){var _=Th(h.srcset),w=Th(g);return w.length===_.length&&w.every(([m,E],C)=>E===_[C][1]&&(Il(_[C][0],m)||Il(m,_[C][0])))})(l,f)||Il(l.getAttribute(u)??"",f)||(function(h,g,_){H?console.warn(`%c[svelte] hydration_attribute_changed
59
59
  %cThe \`${h}\` attribute on \`${g}\` changed its value between server and client renders. The client value, \`${_}\`, will be ignored in favour of the server value
60
- https://svelte.dev/e/hydration_attribute_changed`,ur,cr):console.warn("https://svelte.dev/e/hydration_attribute_changed")})(u,l.outerHTML.replace(l.innerHTML,l.innerHTML&&"..."),String(f)))})(r,t,n??""):a[t]!==(a[t]=n)&&(t==="loading"&&(r[wE]=n),n==null?r.removeAttribute(t):typeof n!="string"&&(function(l){var u,f=l.getAttribute("is")||l.nodeName,h=bh.get(f);if(h)return h;bh.set(f,h=[]);for(var g=l,_=Element.prototype;_!==g;){for(var w in u=Qh(g))u[w].set&&w!=="innerHTML"&&w!=="textContent"&&w!=="innerText"&&h.push(w);g=Zl(g)}return h})(r).includes(t)?r[t]=n:r.setAttribute(t,n))}var bh=new Map;function Il(r,t){return r===t||new URL(r,document.baseURI).href===new URL(t,document.baseURI).href}function Th(r){return r.split(",").map(t=>t.trim().split(" ").filter(Boolean))}function Fd(r,t,n){var s=Hn(r,t);s&&s.set&&(r[t]=n,Ed(()=>{r[t]=null}))}function xl(r,t){return r===t||r?.[mn]===t}function ql(r={},t,n,s){var a=be.r,l=te;return bd(()=>{var u,f;return Es(()=>{u=f,f=[],Fn(()=>{xl(n(...f),r)||(t(r,...f),u&&xl(n(...u),r)&&t(null,...u))})}),()=>{let h=l;for(;h!==a&&h.parent!==null&&h.parent.f&Ml;)h=h.parent;const g=h.teardown;h.teardown=()=>{f&&xl(n(...f),r)&&t(null,...f),g?.()}}}),r}function Hd(r=!1){const t=be,n=t.l.u;if(!n)return;let s=()=>pi(t.s);if(r){let l=0,u={};const f=lu(()=>{let h=!1;const g=t.s;for(const _ in g)g[_]!==u[_]&&(u[_]=g[_],h=!0);return h&&l++,l});s=()=>q(f)}var a;n.b.length&&(a=()=>{Rh(t,s),Dl(n.b)},yd("$effect.pre"),H&&cn(a,"name",{value:"$effect.pre"}),hn(1048584,a)),Vl(()=>{const l=Fn(()=>n.m.map(_E));return()=>{for(const u of l)typeof u=="function"&&u()}}),n.a.length&&Vl(()=>{Rh(t,s),Dl(n.a)})}function Rh(r,t){if(r.l.s)for(const n of r.l.s)q(n);t()}function ee(r,t,n,s){var a=!Fi||!1,l=!0,u=s,f=!0,h=()=>(f&&(f=!1,u=s),u);let g;{var _=mn in r||Kh in r;g=Hn(r,t)?.set??(_&&t in r?F=>r[t]=F:void 0)}var w,m,E=!1;if([w,E]=(function(F){var J=Ca;try{return Ca=!1,[F(),Ca]}finally{Ca=J}})(()=>r[t]),m=a?()=>{var F=r[t];return F===void 0?h():(f=!0,F)}:()=>{var F=r[t];return F!==void 0&&(u=void 0),F===void 0?u:F},g){var C=r.$$legacy;return function(F,J){return arguments.length>0?(a&&J&&!C&&!E||g(J?m():F),F):m()}}var R=!1,I=hd(()=>(R=!1,m()));H&&(I.label=t),q(I);var N=te;return function(F,J){if(arguments.length>0){const de=J?q(I):a&&l?Ei(F):F;return _t(I,de),R=!0,u!==void 0&&(u=de),F}return Bn&&R||(N.f&xi)!==0?I.v:q(I)}}class jE{#e;#n;constructor(t){var n=new Map,s=(l,u)=>{var f=yi(u,!1,!1);return n.set(l,f),f};const a=new Proxy({...t.props||{},$$events:{}},{get:(l,u)=>q(n.get(u)??s(u,Reflect.get(l,u))),has:(l,u)=>u===Kh||(q(n.get(u)??s(u,Reflect.get(l,u))),Reflect.has(l,u)),set:(l,u,f)=>(_t(n.get(u)??s(u,f),f),Reflect.set(l,u,f))});this.#n=(t.hydrate?HE:Md)(t.component,{target:t.target,anchor:t.anchor,props:a,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),t?.props?.$$host&&t.sync!==!1||Z(),this.#e=a.$$events;for(const l of Object.keys(this.#n))l!=="$set"&&l!=="$destroy"&&l!=="$on"&&cn(this,l,{get(){return this.#n[l]},set(u){this.#n[l]=u},enumerable:!0});this.#n.$set=l=>{Object.assign(a,l)},this.#n.$destroy=()=>{VE(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const s=(...a)=>n.call(this,...a);return this.#e[t].push(s),()=>{this.#e[t]=this.#e[t].filter(a=>a!==s)}}$destroy(){this.#n.$destroy()}}let Vd;function Ua(r,t,n,s){const a=n[r]?.type;if(t=a==="Boolean"&&typeof t!="boolean"?t!=null:t,!s||!n[r])return t;if(s==="toAttribute")switch(a){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(a){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":default:return t;case"Number":return t!=null?+t:t}}function Wd(r,t,n,s,a,l){let u=class extends Vd{constructor(){super(r,n,a),this.$$p_d=t}static get observedAttributes(){return Fa(t).map(f=>(t[f].attribute||f).toLowerCase())}};return Fa(t).forEach(f=>{cn(u.prototype,f,{get(){return this.$$c&&f in this.$$c?this.$$c[f]:this.$$d[f]},set(h){h=Ua(f,h,t),this.$$d[f]=h;var g=this.$$c;if(g){var _=Hn(g,f)?.get;_?g[f]=h:g.$set({[f]:h})}}})}),s.forEach(f=>{cn(u.prototype,f,{get(){return this.$$c?.[f]}})}),l&&(u=l(u)),r.element=u,u}var ue;typeof HTMLElement=="function"&&(Vd=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(r,t,n){super(),this.$$ctor=r,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(r,t,n){if(this.$$l[r]=this.$$l[r]||[],this.$$l[r].push(t),this.$$c){const s=this.$$c.$on(r,t);this.$$l_u.set(t,s)}super.addEventListener(r,t,n)}removeEventListener(r,t,n){if(super.removeEventListener(r,t,n),this.$$c){const s=this.$$l_u.get(t);s&&(s(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(a){return l=>{const u=hu("slot");a!=="default"&&(u.name=a),ds(l,u)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=(function(a){const l={};return a.childNodes.forEach(u=>{l[u.slot||"default"]=!0}),l})(this);for(const a of this.$$s)a in s&&(a!=="default"||this.$$d.children?n[a]=t(a):(this.$$d.children=t(a),n.default=!0));for(const a of this.attributes){const l=this.$$g_p(a.name);l in this.$$d||(this.$$d[l]=Ua(l,a.value,this.$$p_d,"toProp"))}for(const a in this.$$p_d)a in this.$$d||this[a]===void 0||(this.$$d[a]=this[a],delete this[a]);this.$$c=(r={component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:n,$$host:this}},new jE(r)),this.$$me=(function(a){Vn.ensure();const l=hn(524352,a);return()=>{mt(l)}})(()=>{Es(()=>{this.$$r=!0;for(const a of Fa(this.$$c)){if(!this.$$p_d[a]?.reflect)continue;this.$$d[a]=this.$$c[a];const l=Ua(a,this.$$d[a],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[a].attribute||a):this.setAttribute(this.$$p_d[a].attribute||a,l)}this.$$r=!1})});for(const a in this.$$l)for(const l of this.$$l[a]){const u=this.$$c.$on(a,l);this.$$l_u.set(l,u)}this.$$l={}}var r}attributeChangedCallback(r,t,n){this.$$r||(r=this.$$g_p(r),this.$$d[r]=Ua(r,n,this.$$p_d,"toProp"),this.$$c?.$set({[r]:this.$$d[r]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(r){return Fa(this.$$p_d).find(t=>this.$$p_d[t].attribute===r||!this.$$p_d[t].attribute&&t.toLowerCase()===r)||r}}),(function(r){r.CUSTOM_MESSAGE="custom",r.GET_CONTEXT="luigi.get-context",r.SEND_CONTEXT_HANDSHAKE="luigi.init",r.CONTEXT_RECEIVED="luigi.init.ok",r.NAVIGATION_REQUEST="luigi.navigation.open",r.ALERT_REQUEST="luigi.ux.alert.show",r.ALERT_CLOSED="luigi.ux.alert.hide",r.INITIALIZED="luigi.init.ok",r.ADD_SEARCH_PARAMS_REQUEST="luigi.addSearchParams",r.ADD_NODE_PARAMS_REQUEST="luigi.addNodeParams",r.SHOW_CONFIRMATION_MODAL_REQUEST="luigi.ux.confirmationModal.show",r.CONFIRMATION_MODAL_CLOSED="luigi.ux.confirmationModal.hide",r.SHOW_LOADING_INDICATOR_REQUEST="luigi.show-loading-indicator",r.HIDE_LOADING_INDICATOR_REQUEST="luigi.hide-loading-indicator",r.SET_CURRENT_LOCALE_REQUEST="luigi.ux.set-current-locale",r.LOCAL_STORAGE_SET_REQUEST="storage",r.RUNTIME_ERROR_HANDLING_REQUEST="luigi-runtime-error-handling",r.SET_ANCHOR_LINK_REQUEST="luigi.setAnchor",r.SET_THIRD_PARTY_COOKIES_REQUEST="luigi.third-party-cookie",r.BACK_NAVIGATION_REQUEST="luigi.navigation.back",r.GET_CURRENT_ROUTE_REQUEST="luigi.navigation.currentRoute",r.SEND_CURRENT_ROUTE_ANSWER="luigi.navigation.currentRoute.answer",r.SEND_CONTEXT_OBJECT="luigi.navigate",r.NAVIGATION_COMPLETED_REPORT="luigi.navigate.ok",r.CLOSE_MODAL_ANSWER="luigi.navigation.modal.close",r.UPDATE_MODAL_PATH_DATA_REQUEST="luigi.navigation.updateModalDataPath",r.UPDATE_MODAL_SETTINGS="luigi.navigation.updateModalSettings",r.CHECK_PATH_EXISTS_REQUEST="luigi.navigation.pathExists",r.SEND_PATH_EXISTS_ANSWER="luigi.navigation.pathExists.answer",r.SET_DIRTY_STATUS_REQUEST="luigi.set-page-dirty",r.AUTH_SET_TOKEN="luigi.auth.tokenIssued",r.ADD_BACKDROP_REQUEST="luigi.add-backdrop",r.REMOVE_BACKDROP_REQUEST="luigi.remove-backdrop",r.SET_VIEW_GROUP_DATA_REQUEST="luigi.setVGData",r.CLOSE_CURRENT_MODAL_REQUEST="luigi.close-modal"})(ue||(ue={}));class YE extends Event{constructor(t,n,s,a){super(t),this.detail=n,this.payload=s||n||{},this.callbackFn=a}callback(t){this.callbackFn&&this.callbackFn(t)}}const k={ADD_BACKDROP_REQUEST:"add-backdrop-request",ADD_NODE_PARAMS_REQUEST:"add-node-params-request",ADD_SEARCH_PARAMS_REQUEST:"add-search-params-request",ALERT_CLOSED:"close-alert-request",ALERT_REQUEST:"show-alert-request",BACK_NAVIGATION_REQUEST:"navigate-back-request",CHECK_PATH_EXISTS_REQUEST:"check-path-exists-request",CLOSE_CURRENT_MODAL_REQUEST:"close-current-modal-request",CLOSE_USER_SETTINGS_REQUEST:"close-user-settings-request",COLLAPSE_LEFT_NAV_REQUEST:"collapse-leftnav-request",CUSTOM_MESSAGE:"custom-message",GET_CONTEXT_REQUEST:"get-context-request",GET_CURRENT_ROUTE_REQUEST:"get-current-route-request",GO_BACK_REQUEST:"go-back-request",HAS_BACK_REQUEST:"has-back-request",HIDE_LOADING_INDICATOR_REQUEST:"hide-loading-indicator-request",INITIALIZED:"initialized",LOCAL_STORAGE_SET_REQUEST:"set-storage-request",NAVIGATION_COMPLETED_REPORT:"report-navigation-completed-request",NAVIGATION_REQUEST:"navigation-request",OPEN_USER_SETTINGS_REQUEST:"open-user-settings-request",PATH_EXISTS_REQUEST:"path-exists-request",REMOVE_BACKDROP_REQUEST:"remove-backdrop-request",RUNTIME_ERROR_HANDLING_REQUEST:"runtime-error-handling-request",SET_ANCHOR_LINK_REQUEST:"set-anchor-request",SET_CURRENT_LOCALE_REQUEST:"set-current-locale-request",SET_DIRTY_STATUS_REQUEST:"set-dirty-status-request",SET_DOCUMENT_TITLE_REQUEST:"set-document-title-request",SET_THIRD_PARTY_COOKIES_REQUEST:"set-third-party-cookies-request",SET_VIEW_GROUP_DATA_REQUEST:"set-viewgroup-data-request",SHOW_CONFIRMATION_MODAL_REQUEST:"show-confirmation-modal-request",SHOW_LOADING_INDICATOR_REQUEST:"show-loading-indicator-request",UPDATE_MODAL_PATH_DATA_REQUEST:"update-modal-path-data-request",UPDATE_MODAL_SETTINGS_REQUEST:"update-modal-settings-request",UPDATE_TOP_NAVIGATION_REQUEST:"update-top-navigation-request"};class vu{isVisible(t){return getComputedStyle(t).display!=="none"&&!(!t.offsetWidth&&!t.offsetHeight)}sendCustomMessageToIframe(t,n,s){const a=s||"custom";if(t?.iframe?.contentWindow){const l=new URL(t.iframe.src);a==="custom"?t.iframe.contentWindow.postMessage({msg:a,data:n},l.origin):t.iframe.contentWindow.postMessage({msg:a,...n},l.origin)}else console.error("Message target could not be resolved")}dispatchWithPayload(t,n,s,a,l){this.dispatch(t,n,s,l,a)}dispatch(t,n,s,a,l){const u=new YE(t,s,l,a);n.dispatchEvent(u)}getTargetContainer(t){let n;return globalThis.__luigi_container_manager.container.forEach(s=>{s.iframeHandle?.iframe&&s.iframeHandle.iframe.contentWindow===t.source&&(n=s)}),n}getContainerManager(){return globalThis.__luigi_container_manager||(globalThis.__luigi_container_manager={container:[],messageListener:t=>{const n=this.getTargetContainer(t),s=n?.iframeHandle?.iframe?.contentWindow;if(s&&s===t.source)switch(t.data.msg){case ue.CUSTOM_MESSAGE:{const a=t.data.data,l=a.id;delete a.id,this.dispatch(k.CUSTOM_MESSAGE,n,{id:l,_metaData:{},data:a})}break;case ue.GET_CONTEXT:s.postMessage({msg:ue.SEND_CONTEXT_HANDSHAKE,context:n.context||{},internal:{thirdPartyCookieCheck:{disabled:n.skipCookieCheck==="true"},currentTheme:n.theme,currentLocale:n.locale,activeFeatureToggleList:n.activeFeatureToggleList||[],cssVariables:n.cssVariables||{},anchor:n.anchor||"",userSettings:n.userSettings||null,drawer:n.drawer||!1,modal:n.modal||!1,viewStackSize:n.viewStackSize||0,isNavigateBack:n.isNavigateBack||!1},authData:n.authData||{},nodeParams:n.nodeParams||{},searchParams:n.searchParams||{},pathParams:n.pathParams||{}},t.origin);break;case ue.NAVIGATION_REQUEST:this.dispatch(k.NAVIGATION_REQUEST,n,t.data.params,a=>{s.postMessage({msg:ue.CLOSE_MODAL_ANSWER,data:a},t.origin)});break;case ue.ALERT_REQUEST:this.dispatchWithPayload(k.ALERT_REQUEST,n,t,t.data?.data?.settings,a=>{n.notifyAlertClosed(t.data?.data?.settings?.id,a)});break;case ue.INITIALIZED:this.dispatch(k.INITIALIZED,n,t.data?.params||{});break;case ue.ADD_SEARCH_PARAMS_REQUEST:this.dispatch(k.ADD_SEARCH_PARAMS_REQUEST,n,{data:t.data.data,keepBrowserHistory:t.data.keepBrowserHistory});break;case ue.ADD_NODE_PARAMS_REQUEST:this.dispatch(k.ADD_NODE_PARAMS_REQUEST,n,{data:t.data.data,keepBrowserHistory:t.data.keepBrowserHistory});break;case ue.SHOW_CONFIRMATION_MODAL_REQUEST:this.dispatchWithPayload(k.SHOW_CONFIRMATION_MODAL_REQUEST,n,t.data.data,t.data.data?.settings,a=>{n.notifyConfirmationModalClosed(a)});break;case ue.SHOW_LOADING_INDICATOR_REQUEST:this.dispatch(k.SHOW_LOADING_INDICATOR_REQUEST,n,t);break;case ue.HIDE_LOADING_INDICATOR_REQUEST:this.dispatch(k.HIDE_LOADING_INDICATOR_REQUEST,n,t);break;case ue.SET_CURRENT_LOCALE_REQUEST:this.dispatchWithPayload(k.SET_CURRENT_LOCALE_REQUEST,n,t,t.data.data);break;case ue.LOCAL_STORAGE_SET_REQUEST:this.dispatchWithPayload(k.LOCAL_STORAGE_SET_REQUEST,n,t,t.data.data?.params);break;case ue.RUNTIME_ERROR_HANDLING_REQUEST:this.dispatch(k.RUNTIME_ERROR_HANDLING_REQUEST,n,t);break;case ue.SET_ANCHOR_LINK_REQUEST:this.dispatchWithPayload(k.SET_ANCHOR_LINK_REQUEST,n,t,t.data.anchor);break;case ue.SET_THIRD_PARTY_COOKIES_REQUEST:this.dispatch(k.SET_THIRD_PARTY_COOKIES_REQUEST,n,t);break;case ue.BACK_NAVIGATION_REQUEST:{let a=t.data?.goBackContext||{};if(typeof a=="string")try{a=JSON.parse(a)}catch(l){console.warn(l)}this.dispatch(k.GO_BACK_REQUEST,n,a),this.dispatch(k.BACK_NAVIGATION_REQUEST,n,t)}break;case ue.GET_CURRENT_ROUTE_REQUEST:this.dispatchWithPayload(k.GET_CURRENT_ROUTE_REQUEST,n,t,t.data.data,a=>{s.postMessage({msg:ue.SEND_CURRENT_ROUTE_ANSWER,data:{correlationId:t.data?.data?.id,route:a}},t.origin)});break;case ue.NAVIGATION_COMPLETED_REPORT:this.dispatch(k.NAVIGATION_COMPLETED_REPORT,n,t);break;case ue.UPDATE_MODAL_PATH_DATA_REQUEST:this.dispatchWithPayload(k.UPDATE_MODAL_PATH_DATA_REQUEST,n,t,t.data.params);break;case ue.UPDATE_MODAL_SETTINGS:this.dispatchWithPayload(k.UPDATE_MODAL_SETTINGS_REQUEST,n,t,{addHistoryEntry:t.data.addHistoryEntry,updatedModalSettings:t.data.updatedModalSettings});break;case ue.CHECK_PATH_EXISTS_REQUEST:this.dispatchWithPayload(k.CHECK_PATH_EXISTS_REQUEST,n,t,t.data.data,a=>{s.postMessage({msg:ue.SEND_PATH_EXISTS_ANSWER,data:{correlationId:t.data?.data?.id,pathExists:a}},t.origin)});break;case ue.SET_DIRTY_STATUS_REQUEST:this.dispatchWithPayload(k.SET_DIRTY_STATUS_REQUEST,n,t,{dirty:t.data.dirty});break;case ue.SET_VIEW_GROUP_DATA_REQUEST:this.dispatch(k.SET_VIEW_GROUP_DATA_REQUEST,n,t.data.data);break;case ue.ADD_BACKDROP_REQUEST:this.dispatch(k.ADD_BACKDROP_REQUEST,n,t);break;case ue.REMOVE_BACKDROP_REQUEST:this.dispatch(k.REMOVE_BACKDROP_REQUEST,n,t);break;case ue.CLOSE_CURRENT_MODAL_REQUEST:this.dispatch(k.CLOSE_CURRENT_MODAL_REQUEST,n,t)}}},window.addEventListener("message",globalThis.__luigi_container_manager.messageListener)),globalThis.__luigi_container_manager}registerContainer(t){this.getContainerManager().container.push(t)}}const rr=new vu,vi=new class{constructor(){this.updateContext=(r,t,n,s,a,l)=>{if(n){const u=t||{};rr.sendCustomMessageToIframe(n,{context:r,nodeParams:s||{},pathParams:a||{},searchParams:l||{},internal:u,withoutSync:u.withoutSync??!0},ue.SEND_CONTEXT_OBJECT)}else console.warn("Attempting to update context on inexisting iframe")},this.updateViewUrl=(r,t,n,s)=>{if(s){const a=n||{};rr.sendCustomMessageToIframe(s,{context:t,internal:a,withoutSync:!1,viewUrl:r},ue.SEND_CONTEXT_OBJECT)}else console.warn("Attempting to update route on inexisting iframe")},this.updateAuthData=(r,t)=>{r&&t?rr.sendCustomMessageToIframe(r,{authData:t},ue.AUTH_SET_TOKEN):console.warn("Attempting to update auth data on inexisting iframe or authData")},this.sendCustomMessage=(r,t,n,s,a)=>{if(n&&t._luigi_mfe_webcomponent)rr.dispatch(r,t._luigi_mfe_webcomponent,a);else{const l={...a};l.id&&console.warn('Property "id" is reserved and can not be used in custom message data'),l.id=r,rr.sendCustomMessageToIframe(s,l)}},this.notifyConfirmationModalClosed=(r,t)=>{const n={data:{confirmed:r}};rr.sendCustomMessageToIframe(t,n,ue.CONFIRMATION_MODAL_CLOSED)}}notifyAlertClosed(r,t,n){const s=t?{id:r,dismissKey:t}:{id:r};rr.sendCustomMessageToIframe(n,s,ue.ALERT_CLOSED)}},Ah=r=>{if(!r)return;const t=r;return t.forEach((n,s)=>{t[s]=n+(n.indexOf(";")!=-1?"":";"),t[s]=r[s].replaceAll('"',"'")}),t.join(" ")};class Ui{constructor(t){t?(this.rendererObject=t,this.config=t.config||{}):this.config={}}createCompoundContainer(){return document.createElement("div")}createCompoundItemContainer(t){return document.createElement("div")}attachCompoundItem(t,n){t.appendChild(n)}}class JE extends Ui{constructor(t){super(t||{use:{}}),t&&t.use&&t.use.extends&&(this.superRenderer=Bd({use:t.use.extends,config:t.config}))}createCompoundContainer(){return this.rendererObject.use.createCompoundContainer?this.rendererObject.use.createCompoundContainer(this.config,this.superRenderer):this.superRenderer?this.superRenderer.createCompoundContainer():super.createCompoundContainer()}createCompoundItemContainer(t){return this.rendererObject.use.createCompoundItemContainer?this.rendererObject.use.createCompoundItemContainer(t,this.config,this.superRenderer):this.superRenderer?this.superRenderer.createCompoundItemContainer(t):super.createCompoundItemContainer(t)}attachCompoundItem(t,n){this.rendererObject.use.attachCompoundItem?this.rendererObject.use.attachCompoundItem(t,n,this.superRenderer):this.superRenderer?this.superRenderer.attachCompoundItem(t,n):super.attachCompoundItem(t,n)}}class XE extends Ui{createCompoundContainer(){const t="__lui_compound_"+new Date().getTime(),n=document.createElement("div");n.classList.add(t);let s="";return this.config.layouts&&this.config.layouts.forEach(a=>{if(a.minWidth||a.maxWidth){let l="@media only screen ";a.minWidth!=null&&(l+=`and (min-width: ${a.minWidth}px) `),a.maxWidth!=null&&(l+=`and (max-width: ${a.maxWidth}px) `),l+=`{
61
- .${t} {
60
+ https://svelte.dev/e/hydration_attribute_changed`,ur,cr):console.warn("https://svelte.dev/e/hydration_attribute_changed")})(u,l.outerHTML.replace(l.innerHTML,l.innerHTML&&"..."),String(f)))})(n,e,r??""):a[e]!==(a[e]=r)&&(e==="loading"&&(n[wE]=r),r==null?n.removeAttribute(e):typeof r!="string"&&(function(l){var u,f=l.getAttribute("is")||l.nodeName,h=bh.get(f);if(h)return h;bh.set(f,h=[]);for(var g=l,_=Element.prototype;_!==g;){for(var w in u=Qh(g))u[w].set&&w!=="innerHTML"&&w!=="textContent"&&w!=="innerText"&&h.push(w);g=Zl(g)}return h})(n).includes(e)?n[e]=r:n.setAttribute(e,r))}var bh=new Map;function Il(n,e){return n===e||new URL(n,document.baseURI).href===new URL(e,document.baseURI).href}function Th(n){return n.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function Fd(n,e,r){var s=Hn(n,e);s&&s.set&&(n[e]=r,Ed(()=>{n[e]=null}))}function xl(n,e){return n===e||n?.[mn]===e}function ql(n={},e,r,s){var a=Te.r,l=ee;return bd(()=>{var u,f;return Es(()=>{u=f,f=[],Fn(()=>{xl(r(...f),n)||(e(n,...f),u&&xl(r(...u),n)&&e(null,...u))})}),()=>{let h=l;for(;h!==a&&h.parent!==null&&h.parent.f&Ml;)h=h.parent;const g=h.teardown;h.teardown=()=>{f&&xl(r(...f),n)&&e(null,...f),g?.()}}}),n}function Hd(n=!1){const e=Te,r=e.l.u;if(!r)return;let s=()=>pi(e.s);if(n){let l=0,u={};const f=lu(()=>{let h=!1;const g=e.s;for(const _ in g)g[_]!==u[_]&&(u[_]=g[_],h=!0);return h&&l++,l});s=()=>q(f)}var a;r.b.length&&(a=()=>{Rh(e,s),Dl(r.b)},yd("$effect.pre"),H&&cn(a,"name",{value:"$effect.pre"}),hn(1048584,a)),Vl(()=>{const l=Fn(()=>r.m.map(_E));return()=>{for(const u of l)typeof u=="function"&&u()}}),r.a.length&&Vl(()=>{Rh(e,s),Dl(r.a)})}function Rh(n,e){if(n.l.s)for(const r of n.l.s)q(r);e()}function Z(n,e,r,s){var a=!Fi||!1,l=!0,u=s,f=!0,h=()=>(f&&(f=!1,u=s),u);let g;{var _=mn in n||Kh in n;g=Hn(n,e)?.set??(_&&e in n?F=>n[e]=F:void 0)}var w,m,E=!1;if([w,E]=(function(F){var oe=Ca;try{return Ca=!1,[F(),Ca]}finally{Ca=oe}})(()=>n[e]),m=a?()=>{var F=n[e];return F===void 0?h():(f=!0,F)}:()=>{var F=n[e];return F!==void 0&&(u=void 0),F===void 0?u:F},g){var C=n.$$legacy;return function(F,oe){return arguments.length>0?(a&&oe&&!C&&!E||g(oe?m():F),F):m()}}var R=!1,I=hd(()=>(R=!1,m()));H&&(I.label=e),q(I);var N=ee;return function(F,oe){if(arguments.length>0){const de=oe?q(I):a&&l?Ei(F):F;return _t(I,de),R=!0,u!==void 0&&(u=de),F}return Bn&&R||(N.f&xi)!==0?I.v:q(I)}}class jE{#e;#n;constructor(e){var r=new Map,s=(l,u)=>{var f=yi(u,!1,!1);return r.set(l,f),f};const a=new Proxy({...e.props||{},$$events:{}},{get:(l,u)=>q(r.get(u)??s(u,Reflect.get(l,u))),has:(l,u)=>u===Kh||(q(r.get(u)??s(u,Reflect.get(l,u))),Reflect.has(l,u)),set:(l,u,f)=>(_t(r.get(u)??s(u,f),f),Reflect.set(l,u,f))});this.#n=(e.hydrate?HE:Md)(e.component,{target:e.target,anchor:e.anchor,props:a,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),e?.props?.$$host&&e.sync!==!1||X(),this.#e=a.$$events;for(const l of Object.keys(this.#n))l!=="$set"&&l!=="$destroy"&&l!=="$on"&&cn(this,l,{get(){return this.#n[l]},set(u){this.#n[l]=u},enumerable:!0});this.#n.$set=l=>{Object.assign(a,l)},this.#n.$destroy=()=>{VE(this.#n)}}$set(e){this.#n.$set(e)}$on(e,r){this.#e[e]=this.#e[e]||[];const s=(...a)=>r.call(this,...a);return this.#e[e].push(s),()=>{this.#e[e]=this.#e[e].filter(a=>a!==s)}}$destroy(){this.#n.$destroy()}}let Vd;function Ua(n,e,r,s){const a=r[n]?.type;if(e=a==="Boolean"&&typeof e!="boolean"?e!=null:e,!s||!r[n])return e;if(s==="toAttribute")switch(a){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(a){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":default:return e;case"Number":return e!=null?+e:e}}function Wd(n,e,r,s,a,l){let u=class extends Vd{constructor(){super(n,r,a),this.$$p_d=e}static get observedAttributes(){return Fa(e).map(f=>(e[f].attribute||f).toLowerCase())}};return Fa(e).forEach(f=>{cn(u.prototype,f,{get(){return this.$$c&&f in this.$$c?this.$$c[f]:this.$$d[f]},set(h){h=Ua(f,h,e),this.$$d[f]=h;var g=this.$$c;if(g){var _=Hn(g,f)?.get;_?g[f]=h:g.$set({[f]:h})}}})}),s.forEach(f=>{cn(u.prototype,f,{get(){return this.$$c?.[f]}})}),l&&(u=l(u)),n.element=u,u}var ue;typeof HTMLElement=="function"&&(Vd=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(n,e,r){super(),this.$$ctor=n,this.$$s=e,r&&(this.$$shadowRoot=this.attachShadow(r))}addEventListener(n,e,r){if(this.$$l[n]=this.$$l[n]||[],this.$$l[n].push(e),this.$$c){const s=this.$$c.$on(n,e);this.$$l_u.set(e,s)}super.addEventListener(n,e,r)}removeEventListener(n,e,r){if(super.removeEventListener(n,e,r),this.$$c){const s=this.$$l_u.get(e);s&&(s(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(a){return l=>{const u=hu("slot");a!=="default"&&(u.name=a),ds(l,u)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},s=(function(a){const l={};return a.childNodes.forEach(u=>{l[u.slot||"default"]=!0}),l})(this);for(const a of this.$$s)a in s&&(a!=="default"||this.$$d.children?r[a]=e(a):(this.$$d.children=e(a),r.default=!0));for(const a of this.attributes){const l=this.$$g_p(a.name);l in this.$$d||(this.$$d[l]=Ua(l,a.value,this.$$p_d,"toProp"))}for(const a in this.$$p_d)a in this.$$d||this[a]===void 0||(this.$$d[a]=this[a],delete this[a]);this.$$c=(n={component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}},new jE(n)),this.$$me=(function(a){Vn.ensure();const l=hn(524352,a);return()=>{mt(l)}})(()=>{Es(()=>{this.$$r=!0;for(const a of Fa(this.$$c)){if(!this.$$p_d[a]?.reflect)continue;this.$$d[a]=this.$$c[a];const l=Ua(a,this.$$d[a],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[a].attribute||a):this.setAttribute(this.$$p_d[a].attribute||a,l)}this.$$r=!1})});for(const a in this.$$l)for(const l of this.$$l[a]){const u=this.$$c.$on(a,l);this.$$l_u.set(l,u)}this.$$l={}}var n}attributeChangedCallback(n,e,r){this.$$r||(n=this.$$g_p(n),this.$$d[n]=Ua(n,r,this.$$p_d,"toProp"),this.$$c?.$set({[n]:this.$$d[n]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(n){return Fa(this.$$p_d).find(e=>this.$$p_d[e].attribute===n||!this.$$p_d[e].attribute&&e.toLowerCase()===n)||n}}),(function(n){n.CUSTOM_MESSAGE="custom",n.GET_CONTEXT="luigi.get-context",n.SEND_CONTEXT_HANDSHAKE="luigi.init",n.CONTEXT_RECEIVED="luigi.init.ok",n.NAVIGATION_REQUEST="luigi.navigation.open",n.ALERT_REQUEST="luigi.ux.alert.show",n.ALERT_CLOSED="luigi.ux.alert.hide",n.INITIALIZED="luigi.init.ok",n.ADD_SEARCH_PARAMS_REQUEST="luigi.addSearchParams",n.ADD_NODE_PARAMS_REQUEST="luigi.addNodeParams",n.SHOW_CONFIRMATION_MODAL_REQUEST="luigi.ux.confirmationModal.show",n.CONFIRMATION_MODAL_CLOSED="luigi.ux.confirmationModal.hide",n.SHOW_LOADING_INDICATOR_REQUEST="luigi.show-loading-indicator",n.HIDE_LOADING_INDICATOR_REQUEST="luigi.hide-loading-indicator",n.SET_CURRENT_LOCALE_REQUEST="luigi.ux.set-current-locale",n.LOCAL_STORAGE_SET_REQUEST="storage",n.RUNTIME_ERROR_HANDLING_REQUEST="luigi-runtime-error-handling",n.SET_ANCHOR_LINK_REQUEST="luigi.setAnchor",n.SET_THIRD_PARTY_COOKIES_REQUEST="luigi.third-party-cookie",n.BACK_NAVIGATION_REQUEST="luigi.navigation.back",n.GET_CURRENT_ROUTE_REQUEST="luigi.navigation.currentRoute",n.SEND_CURRENT_ROUTE_ANSWER="luigi.navigation.currentRoute.answer",n.SEND_CONTEXT_OBJECT="luigi.navigate",n.NAVIGATION_COMPLETED_REPORT="luigi.navigate.ok",n.CLOSE_MODAL_ANSWER="luigi.navigation.modal.close",n.UPDATE_MODAL_PATH_DATA_REQUEST="luigi.navigation.updateModalDataPath",n.UPDATE_MODAL_SETTINGS="luigi.navigation.updateModalSettings",n.CHECK_PATH_EXISTS_REQUEST="luigi.navigation.pathExists",n.SEND_PATH_EXISTS_ANSWER="luigi.navigation.pathExists.answer",n.SET_DIRTY_STATUS_REQUEST="luigi.set-page-dirty",n.AUTH_SET_TOKEN="luigi.auth.tokenIssued",n.ADD_BACKDROP_REQUEST="luigi.add-backdrop",n.REMOVE_BACKDROP_REQUEST="luigi.remove-backdrop",n.SET_VIEW_GROUP_DATA_REQUEST="luigi.setVGData",n.CLOSE_CURRENT_MODAL_REQUEST="luigi.close-modal"})(ue||(ue={}));class YE extends Event{constructor(e,r,s,a){super(e),this.detail=r,this.payload=s||r||{},this.callbackFn=a}callback(e){this.callbackFn&&this.callbackFn(e)}}const k={ADD_BACKDROP_REQUEST:"add-backdrop-request",ADD_NODE_PARAMS_REQUEST:"add-node-params-request",ADD_SEARCH_PARAMS_REQUEST:"add-search-params-request",ALERT_CLOSED:"close-alert-request",ALERT_REQUEST:"show-alert-request",BACK_NAVIGATION_REQUEST:"navigate-back-request",CHECK_PATH_EXISTS_REQUEST:"check-path-exists-request",CLOSE_CURRENT_MODAL_REQUEST:"close-current-modal-request",CLOSE_USER_SETTINGS_REQUEST:"close-user-settings-request",COLLAPSE_LEFT_NAV_REQUEST:"collapse-leftnav-request",CUSTOM_MESSAGE:"custom-message",GET_CONTEXT_REQUEST:"get-context-request",GET_CURRENT_ROUTE_REQUEST:"get-current-route-request",GO_BACK_REQUEST:"go-back-request",HAS_BACK_REQUEST:"has-back-request",HIDE_LOADING_INDICATOR_REQUEST:"hide-loading-indicator-request",INITIALIZED:"initialized",LOCAL_STORAGE_SET_REQUEST:"set-storage-request",NAVIGATION_COMPLETED_REPORT:"report-navigation-completed-request",NAVIGATION_REQUEST:"navigation-request",OPEN_USER_SETTINGS_REQUEST:"open-user-settings-request",PATH_EXISTS_REQUEST:"path-exists-request",REMOVE_BACKDROP_REQUEST:"remove-backdrop-request",RUNTIME_ERROR_HANDLING_REQUEST:"runtime-error-handling-request",SET_ANCHOR_LINK_REQUEST:"set-anchor-request",SET_CURRENT_LOCALE_REQUEST:"set-current-locale-request",SET_DIRTY_STATUS_REQUEST:"set-dirty-status-request",SET_DOCUMENT_TITLE_REQUEST:"set-document-title-request",SET_THIRD_PARTY_COOKIES_REQUEST:"set-third-party-cookies-request",SET_VIEW_GROUP_DATA_REQUEST:"set-viewgroup-data-request",SHOW_CONFIRMATION_MODAL_REQUEST:"show-confirmation-modal-request",SHOW_LOADING_INDICATOR_REQUEST:"show-loading-indicator-request",UPDATE_MODAL_PATH_DATA_REQUEST:"update-modal-path-data-request",UPDATE_MODAL_SETTINGS_REQUEST:"update-modal-settings-request",UPDATE_TOP_NAVIGATION_REQUEST:"update-top-navigation-request"};class vu{isVisible(e){return getComputedStyle(e).display!=="none"&&!(!e.offsetWidth&&!e.offsetHeight)}sendCustomMessageToIframe(e,r,s){const a=s||"custom";if(e?.iframe?.contentWindow){const l=new URL(e.iframe.src);a==="custom"?e.iframe.contentWindow.postMessage({msg:a,data:r},l.origin):e.iframe.contentWindow.postMessage({msg:a,...r},l.origin)}else console.error("Message target could not be resolved")}dispatchWithPayload(e,r,s,a,l){this.dispatch(e,r,s,l,a)}dispatch(e,r,s,a,l){const u=new YE(e,s,l,a);r.dispatchEvent(u)}getTargetContainer(e){let r;return globalThis.__luigi_container_manager.container.forEach(s=>{s.iframeHandle?.iframe&&s.iframeHandle.iframe.contentWindow===e.source&&(r=s)}),r}getContainerManager(){return globalThis.__luigi_container_manager||(globalThis.__luigi_container_manager={container:[],messageListener:e=>{const r=this.getTargetContainer(e),s=r?.iframeHandle?.iframe?.contentWindow;if(s&&s===e.source)switch(e.data.msg){case ue.CUSTOM_MESSAGE:{const a=e.data.data,l=a.id;delete a.id,this.dispatch(k.CUSTOM_MESSAGE,r,{id:l,_metaData:{},data:a})}break;case ue.GET_CONTEXT:s.postMessage({msg:ue.SEND_CONTEXT_HANDSHAKE,context:r.context||{},internal:{thirdPartyCookieCheck:{disabled:r.skipCookieCheck==="true"},currentTheme:r.theme,currentLocale:r.locale,activeFeatureToggleList:r.activeFeatureToggleList||[],cssVariables:r.cssVariables||{},anchor:r.anchor||"",userSettings:r.userSettings||null,drawer:r.drawer||!1,modal:r.modal||!1,viewStackSize:r.viewStackSize||0,isNavigateBack:r.isNavigateBack||!1},authData:r.authData||{},nodeParams:r.nodeParams||{},searchParams:r.searchParams||{},pathParams:r.pathParams||{}},e.origin);break;case ue.NAVIGATION_REQUEST:this.dispatch(k.NAVIGATION_REQUEST,r,e.data.params,a=>{s.postMessage({msg:ue.CLOSE_MODAL_ANSWER,data:a},e.origin)});break;case ue.ALERT_REQUEST:this.dispatchWithPayload(k.ALERT_REQUEST,r,e,e.data?.data?.settings,a=>{r.notifyAlertClosed(e.data?.data?.settings?.id,a)});break;case ue.INITIALIZED:this.dispatch(k.INITIALIZED,r,e.data?.params||{});break;case ue.ADD_SEARCH_PARAMS_REQUEST:this.dispatch(k.ADD_SEARCH_PARAMS_REQUEST,r,{data:e.data.data,keepBrowserHistory:e.data.keepBrowserHistory});break;case ue.ADD_NODE_PARAMS_REQUEST:this.dispatch(k.ADD_NODE_PARAMS_REQUEST,r,{data:e.data.data,keepBrowserHistory:e.data.keepBrowserHistory});break;case ue.SHOW_CONFIRMATION_MODAL_REQUEST:this.dispatchWithPayload(k.SHOW_CONFIRMATION_MODAL_REQUEST,r,e.data.data,e.data.data?.settings,a=>{r.notifyConfirmationModalClosed(a)});break;case ue.SHOW_LOADING_INDICATOR_REQUEST:this.dispatch(k.SHOW_LOADING_INDICATOR_REQUEST,r,e);break;case ue.HIDE_LOADING_INDICATOR_REQUEST:this.dispatch(k.HIDE_LOADING_INDICATOR_REQUEST,r,e);break;case ue.SET_CURRENT_LOCALE_REQUEST:this.dispatchWithPayload(k.SET_CURRENT_LOCALE_REQUEST,r,e,e.data.data);break;case ue.LOCAL_STORAGE_SET_REQUEST:this.dispatchWithPayload(k.LOCAL_STORAGE_SET_REQUEST,r,e,e.data.data?.params);break;case ue.RUNTIME_ERROR_HANDLING_REQUEST:this.dispatch(k.RUNTIME_ERROR_HANDLING_REQUEST,r,e);break;case ue.SET_ANCHOR_LINK_REQUEST:this.dispatchWithPayload(k.SET_ANCHOR_LINK_REQUEST,r,e,e.data.anchor);break;case ue.SET_THIRD_PARTY_COOKIES_REQUEST:this.dispatch(k.SET_THIRD_PARTY_COOKIES_REQUEST,r,e);break;case ue.BACK_NAVIGATION_REQUEST:{let a=e.data?.goBackContext||{};if(typeof a=="string")try{a=JSON.parse(a)}catch(l){console.warn(l)}this.dispatch(k.GO_BACK_REQUEST,r,a),this.dispatch(k.BACK_NAVIGATION_REQUEST,r,e)}break;case ue.GET_CURRENT_ROUTE_REQUEST:this.dispatchWithPayload(k.GET_CURRENT_ROUTE_REQUEST,r,e,e.data.data,a=>{s.postMessage({msg:ue.SEND_CURRENT_ROUTE_ANSWER,data:{correlationId:e.data?.data?.id,route:a}},e.origin)});break;case ue.NAVIGATION_COMPLETED_REPORT:this.dispatch(k.NAVIGATION_COMPLETED_REPORT,r,e);break;case ue.UPDATE_MODAL_PATH_DATA_REQUEST:this.dispatchWithPayload(k.UPDATE_MODAL_PATH_DATA_REQUEST,r,e,e.data.params);break;case ue.UPDATE_MODAL_SETTINGS:this.dispatchWithPayload(k.UPDATE_MODAL_SETTINGS_REQUEST,r,e,{addHistoryEntry:e.data.addHistoryEntry,updatedModalSettings:e.data.updatedModalSettings});break;case ue.CHECK_PATH_EXISTS_REQUEST:this.dispatchWithPayload(k.CHECK_PATH_EXISTS_REQUEST,r,e,e.data.data,a=>{s.postMessage({msg:ue.SEND_PATH_EXISTS_ANSWER,data:{correlationId:e.data?.data?.id,pathExists:a}},e.origin)});break;case ue.SET_DIRTY_STATUS_REQUEST:this.dispatchWithPayload(k.SET_DIRTY_STATUS_REQUEST,r,e,{dirty:e.data.dirty});break;case ue.SET_VIEW_GROUP_DATA_REQUEST:this.dispatch(k.SET_VIEW_GROUP_DATA_REQUEST,r,e.data.data);break;case ue.ADD_BACKDROP_REQUEST:this.dispatch(k.ADD_BACKDROP_REQUEST,r,e);break;case ue.REMOVE_BACKDROP_REQUEST:this.dispatch(k.REMOVE_BACKDROP_REQUEST,r,e);break;case ue.CLOSE_CURRENT_MODAL_REQUEST:this.dispatch(k.CLOSE_CURRENT_MODAL_REQUEST,r,e)}}},window.addEventListener("message",globalThis.__luigi_container_manager.messageListener)),globalThis.__luigi_container_manager}registerContainer(e){this.getContainerManager().container.push(e)}}const rr=new vu,vi=new class{constructor(){this.updateContext=(n,e,r,s,a,l)=>{if(r){const u=e||{};rr.sendCustomMessageToIframe(r,{context:n,nodeParams:s||{},pathParams:a||{},searchParams:l||{},internal:u,withoutSync:u.withoutSync??!0},ue.SEND_CONTEXT_OBJECT)}else console.warn("Attempting to update context on inexisting iframe")},this.updateViewUrl=(n,e,r,s)=>{if(s){const a=r||{};rr.sendCustomMessageToIframe(s,{context:e,internal:a,withoutSync:!1,viewUrl:n},ue.SEND_CONTEXT_OBJECT)}else console.warn("Attempting to update route on inexisting iframe")},this.updateAuthData=(n,e)=>{n&&e?rr.sendCustomMessageToIframe(n,{authData:e},ue.AUTH_SET_TOKEN):console.warn("Attempting to update auth data on inexisting iframe or authData")},this.sendCustomMessage=(n,e,r,s,a)=>{if(r&&e._luigi_mfe_webcomponent)rr.dispatch(n,e._luigi_mfe_webcomponent,a);else{const l={...a};l.id&&console.warn('Property "id" is reserved and can not be used in custom message data'),l.id=n,rr.sendCustomMessageToIframe(s,l)}},this.notifyConfirmationModalClosed=(n,e)=>{const r={data:{confirmed:n}};rr.sendCustomMessageToIframe(e,r,ue.CONFIRMATION_MODAL_CLOSED)}}notifyAlertClosed(n,e,r){const s=e?{id:n,dismissKey:e}:{id:n};rr.sendCustomMessageToIframe(r,s,ue.ALERT_CLOSED)}},Ph=n=>{if(!n)return;const e=n;return e.forEach((r,s)=>{e[s]=r+(r.indexOf(";")!=-1?"":";"),e[s]=n[s].replaceAll('"',"'")}),e.join(" ")};class Ui{constructor(e){e?(this.rendererObject=e,this.config=e.config||{}):this.config={}}createCompoundContainer(){return document.createElement("div")}createCompoundItemContainer(e){return document.createElement("div")}attachCompoundItem(e,r){e.appendChild(r)}}class JE extends Ui{constructor(e){super(e||{use:{}}),e&&e.use&&e.use.extends&&(this.superRenderer=Bd({use:e.use.extends,config:e.config}))}createCompoundContainer(){return this.rendererObject.use.createCompoundContainer?this.rendererObject.use.createCompoundContainer(this.config,this.superRenderer):this.superRenderer?this.superRenderer.createCompoundContainer():super.createCompoundContainer()}createCompoundItemContainer(e){return this.rendererObject.use.createCompoundItemContainer?this.rendererObject.use.createCompoundItemContainer(e,this.config,this.superRenderer):this.superRenderer?this.superRenderer.createCompoundItemContainer(e):super.createCompoundItemContainer(e)}attachCompoundItem(e,r){this.rendererObject.use.attachCompoundItem?this.rendererObject.use.attachCompoundItem(e,r,this.superRenderer):this.superRenderer?this.superRenderer.attachCompoundItem(e,r):super.attachCompoundItem(e,r)}}class XE extends Ui{createCompoundContainer(){const e="__lui_compound_"+new Date().getTime(),r=document.createElement("div");r.classList.add(e);let s="";return this.config.layouts&&this.config.layouts.forEach(a=>{if(a.minWidth||a.maxWidth){let l="@media only screen ";a.minWidth!=null&&(l+=`and (min-width: ${a.minWidth}px) `),a.maxWidth!=null&&(l+=`and (max-width: ${a.maxWidth}px) `),l+=`{
61
+ .${e} {
62
62
  grid-template-columns: ${a.columns||"auto"};
63
63
  grid-template-rows: ${a.rows||"auto"};
64
64
  grid-gap: ${a.gap||"0"};
65
65
  }
66
66
  }
67
- `,s+=l}}),n.innerHTML=`
67
+ `,s+=l}}),r.innerHTML=`
68
68
  <style scoped>
69
- .${t} {
69
+ .${e} {
70
70
  display: grid;
71
71
  grid-template-columns: ${this.config.columns||"auto"};
72
72
  grid-template-rows: ${this.config.rows||"auto"};
@@ -75,7 +75,7 @@ https://svelte.dev/e/hydration_attribute_changed`,ur,cr):console.warn("https://s
75
75
  }
76
76
  ${s}
77
77
  </style>
78
- `,n}createCompoundItemContainer(t){const n=t||{},s=document.createElement("div");return s.setAttribute("style",`grid-row: ${n.row||"auto"}; grid-column: ${n.column||"auto"}`),s.classList.add("lui-compoundItemCnt"),s}}const Bd=r=>{const t=r.use;return t?t==="grid"?new XE(r):t.createCompoundContainer||t.createCompoundItemContainer||t.attachCompoundItem?new JE(r):new Ui(r):new Ui(r)},Ph=(r,t,n,s)=>{t?.eventListeners&&t.eventListeners.forEach(a=>{const l=a.source+"."+a.name,u=r[l],f={wcElementId:n,wcElement:s,action:a.action,converter:a.dataConverter};u?u.push(f):r[l]=[f]})};function Ih(r){return String(r).replaceAll("&lt;","<").replaceAll("&gt;",">").replaceAll("&quot;",'"').replaceAll("&#39;","'").replaceAll("&sol;","/")}class Gd{constructor(){this.alertResolvers={},this.alertIndex=0,this.containerService=new vu}dynamicImport(t){return Object.freeze(import(t))}processViewUrl(t,n){return t}attachWC(t,n,s,a,l,u,f){if(s&&s.contains(n)){const h=document.createElement(t);u&&h.setAttribute("nodeId",u),h.setAttribute("lui_web_component","true"),this.initWC(h,t,s,l,a,u,f),s.replaceChild(h,n),s._luigi_node&&(s._luigi_mfe_webcomponent=h),s.dispatchEvent(new Event("wc_ready"))}}dispatchLuigiEvent(t,n,s){this.containerService.dispatch(t,this.thisComponent,n,s)}createClientAPI(t,n,s,a,l){return{linkManager:()=>{let u=null,f=!1,h=!1,g=!1,_={};const w={navigate:(m,E={},C)=>{const R={fromContext:u,fromClosestContext:f,fromVirtualTreeRoot:h,fromParent:g,nodeParams:_,...E};this.dispatchLuigiEvent(k.NAVIGATION_REQUEST,{link:m,...R},C)},navigateToIntent:(m,E={})=>{let C="#?intent=";if(C+=m,E&&Object.keys(E)?.length){const R=Object.entries(E);if(R.length>0){C+="?";for(const[I,N]of R)C+=I+"="+N+"&";C=C.slice(0,-1)}}w.navigate(C)},fromClosestContext:()=>(f=!0,w),fromContext:m=>(u=m,w),fromVirtualTreeRoot:()=>(h=!0,w),fromParent:()=>(g=!0,w),getCurrentRoute:()=>{const m={fromContext:u,fromClosestContext:f,fromVirtualTreeRoot:h,fromParent:g,nodeParams:_};return new Promise((E,C)=>{this.containerService.dispatch(k.GET_CURRENT_ROUTE_REQUEST,this.thisComponent,{...m},R=>{R?E(R):C("No current route received.")})})},withParams:m=>(_=m,w),updateModalPathInternalNavigation:(m,E={},C=!1)=>{if(!m)return void console.warn("Updating path of the modal upon internal navigation prevented. No path specified.");const R={fromClosestContext:f,fromContext:u,fromParent:g,fromVirtualTreeRoot:h,nodeParams:_};this.dispatchLuigiEvent(k.UPDATE_MODAL_PATH_DATA_REQUEST,Object.assign(R,{history:C,link:m,modal:E}))},updateTopNavigation:()=>{this.dispatchLuigiEvent(k.UPDATE_TOP_NAVIGATION_REQUEST,{})},pathExists:m=>{const E={fromContext:u,fromClosestContext:f,fromVirtualTreeRoot:h,fromParent:g,nodeParams:_};return new Promise((C,R)=>{this.containerService.dispatch(k.CHECK_PATH_EXISTS_REQUEST,this.thisComponent,{...E,link:m},I=>{I?C(!0):R(!1)}),this.containerService.dispatch(k.PATH_EXISTS_REQUEST,this.thisComponent,{...E,link:m},I=>{I?C(!0):R(!1)})})},openAsDrawer:(m,E={})=>{w.navigate(m,{drawer:E})},openAsModal:(m,E={},C)=>new Promise(R=>{w.navigate(m,{modal:E},I=>{R({goBackValue:I}),C&&typeof C=="function"&&C(I)})}),openAsSplitView:(m,E={})=>{w.navigate(m,{splitView:E})},goBack:m=>{this.dispatchLuigiEvent(k.GO_BACK_REQUEST,m)},hasBack:()=>!1,updateModalSettings:(m={},E=!1)=>{this.dispatchLuigiEvent(k.UPDATE_MODAL_SETTINGS_REQUEST,{updatedModalSettings:m,addHistoryEntry:E})}};return w},uxManager:()=>({showAlert:u=>(u.id=this.alertIndex++,new Promise(f=>{this.alertResolvers[u.id]=f,this.dispatchLuigiEvent(k.ALERT_REQUEST,u,h=>{this.resolveAlert(u.id,h)})})),showConfirmationModal:u=>new Promise((f,h)=>{this.modalResolver={resolve:f,reject:h},this.containerService.dispatch(k.SHOW_CONFIRMATION_MODAL_REQUEST,this.thisComponent,u,g=>{g?f():h()})}),getCurrentTheme:()=>this.thisComponent.theme,closeUserSettings:()=>{this.dispatchLuigiEvent(k.CLOSE_USER_SETTINGS_REQUEST,this.thisComponent.userSettings)},openUserSettings:()=>{this.dispatchLuigiEvent(k.OPEN_USER_SETTINGS_REQUEST,this.thisComponent.userSettings)},collapseLeftSideNav:()=>{this.dispatchLuigiEvent(k.COLLAPSE_LEFT_NAV_REQUEST,{})},getDirtyStatus:()=>this.thisComponent.dirtyStatus||!1,getDocumentTitle:()=>this.thisComponent.documentTitle,setDocumentTitle:u=>{this.dispatchLuigiEvent(k.SET_DOCUMENT_TITLE_REQUEST,u)},setDirtyStatus:u=>{this.dispatchLuigiEvent(k.SET_DIRTY_STATUS_REQUEST,{dirty:u})},setCurrentLocale:u=>{u&&this.dispatchLuigiEvent(k.SET_CURRENT_LOCALE_REQUEST,{currentLocale:u})},removeBackdrop:()=>{this.dispatchLuigiEvent(k.REMOVE_BACKDROP_REQUEST,{})},addBackdrop:()=>{this.dispatchLuigiEvent(k.ADD_BACKDROP_REQUEST,{})},showLoadingIndicator:()=>{this.dispatchLuigiEvent(k.SHOW_LOADING_INDICATOR_REQUEST,{})},hideLoadingIndicator:()=>{this.dispatchLuigiEvent(k.HIDE_LOADING_INDICATOR_REQUEST,{})},hideAppLoadingIndicator:()=>{this.dispatchLuigiEvent(k.HIDE_LOADING_INDICATOR_REQUEST,{})},closeCurrentModal:()=>{this.dispatchLuigiEvent(k.CLOSE_CURRENT_MODAL_REQUEST,{})}}),getCurrentLocale:()=>this.thisComponent.locale,getActiveFeatureToggles:()=>this.thisComponent.activeFeatureToggleList||[],publishEvent:u=>{t&&t.eventBus&&t.eventBus.onPublishEvent(u,n,s);const f={id:u.type,_metaData:{nodeId:n,wc_id:s,src:a},data:u.detail};this.dispatchLuigiEvent(k.CUSTOM_MESSAGE,f)},luigiClientInit:()=>{this.dispatchLuigiEvent(k.INITIALIZED,{})},addNodeParams:(u,f)=>{l||this.dispatchLuigiEvent(k.ADD_NODE_PARAMS_REQUEST,{params:u,data:u,keepBrowserHistory:f})},getNodeParams:u=>{return l?{}:u?(f=this.thisComponent.nodeParams,Object.entries(f).reduce((h,g)=>(h[Ih(g[0])]=Ih(g[1]),h),{})):this.thisComponent.nodeParams||{};var f},setAnchor:u=>{l||this.dispatchLuigiEvent(k.SET_ANCHOR_LINK_REQUEST,u)},getAnchor:()=>this.thisComponent.anchor||"",getCoreSearchParams:()=>this.thisComponent.searchParams||{},getPathParams:()=>this.thisComponent.pathParams||{},getClientPermissions:()=>this.thisComponent.clientPermissions||{},addCoreSearchParams:(u={},f=!0)=>{this.dispatchLuigiEvent(k.ADD_SEARCH_PARAMS_REQUEST,{data:u,keepBrowserHistory:f})},getUserSettings:()=>this.thisComponent.userSettings||{},setViewGroupData:u=>{this.dispatchLuigiEvent(k.SET_VIEW_GROUP_DATA_REQUEST,u)}}}initWC(t,n,s,a,l,u,f){const h=this.createClientAPI(s,u,n,t,f);if(t.__postProcess){const g=new URL(document.baseURI).origin===new URL(a,document.baseURI).origin?new URL("./",new URL(a,document.baseURI)):new URL("./",a);t.__postProcess(l,h,g.origin+g.pathname)}else t.context=l,t.LuigiClient=h}generateWCId(t){let n="";const s=new URL(t,encodeURI(location.href)).href;for(let a=0;a<s.length;a++)n+=s.charCodeAt(a).toString(16);return"luigi-wc-"+n}registerWCFromUrl(t,n){const s=this.processViewUrl(t);return new Promise((a,l)=>{this.checkWCUrl(s)?this.dynamicImport(s).then(u=>{try{if(!window.customElements.get(n)){let f=u.default;if(!HTMLElement.isPrototypeOf(f)){const h=Object.keys(u);for(let g=0;g<h.length&&(f=u[h[g]],!HTMLElement.isPrototypeOf(f));g++);}window.customElements.define(n,f)}a(1)}catch(f){l(f)}}).catch(u=>{l(u)}):l(`Error: View URL '${s}' not allowed to be included`)})}includeSelfRegisteredWCFromUrl(t,n,s){if(this.checkWCUrl(n)){this.containerService.getContainerManager()._registerWebcomponent||(this.containerService.getContainerManager()._registerWebcomponent=(l,u)=>{window.customElements.define(this.generateWCId(l),u)}),window.Luigi||(window.Luigi={},window.Luigi._registerWebcomponent||(window.Luigi._registerWebcomponent=(l,u)=>{this.containerService.getContainerManager()._registerWebcomponent(l,u)}));const a=document.createElement("script");a.setAttribute("src",n),t.webcomponent.type==="module"&&a.setAttribute("type","module"),a.setAttribute("defer","true"),a.addEventListener("load",()=>{s()}),document.body.appendChild(a)}else console.warn(`View URL '${n}' not allowed to be included`)}checkWCUrl(t){return!0}renderWebComponent(t,n,s,a,l,u){const f=this.processViewUrl(t,{context:s}),h=a?.webcomponent?.tagName||this.generateWCId(f),g=document.createElement("div");n.appendChild(g),n._luigi_node=a,window.customElements.get(h)?this.attachWC(h,g,n,s,f,l,u):window.luigiWCFn?window.luigiWCFn(f,h,g,()=>{this.attachWC(h,g,n,s,f,l,u)}):a?.webcomponent?.selfRegistered?this.includeSelfRegisteredWCFromUrl(a,f,()=>{this.attachWC(h,g,n,s,f,l,u)}):this.registerWCFromUrl(f,h).then(()=>{this.attachWC(h,g,n,s,f,l,u)}).catch(_=>{console.warn("ERROR =>",_),this.containerService.dispatch(k.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,_)})}createCompoundContainerAsync(t,n,s){return new Promise((a,l)=>{if(t.viewUrl)try{const u=s?.webcomponent?.tagName||this.generateWCId(t.viewUrl);s?.webcomponent?.selfRegistered?this.includeSelfRegisteredWCFromUrl(s,t.viewUrl,()=>{const f=document.createElement(u);f.setAttribute("lui_web_component","true"),this.initWC(f,u,f,t.viewUrl,n,"_root"),a(f)}):this.registerWCFromUrl(t.viewUrl,u).then(()=>{const f=document.createElement(u);f.setAttribute("lui_web_component","true"),this.initWC(f,u,f,t.viewUrl,n,"_root"),a(f)}).catch(f=>{console.warn("Error: ",f),this.containerService.dispatch(k.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,f)})}catch(u){l(u)}else a(t.createCompoundContainer())})}renderWebComponentCompound(t,n,s){let a;return t.webcomponent&&t.viewUrl?(a=new Ui,a.viewUrl=this.processViewUrl(t.viewUrl,{context:s}),a.createCompoundItemContainer=l=>{const u=document.createElement("div");return l?.slot&&u.setAttribute("slot",l.slot),u}):t.compound?.renderer&&(a=Bd(t.compound.renderer)),a=a||new Ui,new Promise(l=>{this.createCompoundContainerAsync(a,s,t).then(u=>{n._luigi_mfe_webcomponent=u,n._luigi_node=t;const f={};u.eventBus={listeners:f,onPublishEvent:(h,g,_)=>{const w=f[g+"."+h.type]||[];w.push(...f["*."+h.type]||[]),w.forEach(m=>{const E=m.wcElement||u.querySelector("[nodeId="+m.wcElementId+"]");E?E.dispatchEvent(new CustomEvent(m.action,{detail:m.converter?m.converter(h.detail):h.detail})):console.debug("Could not find event target",m)})}},t.compound?.children?.forEach((h,g)=>{const _={...s,...h.context},w=a.createCompoundItemContainer(h.layoutConfig);w.eventBus=u.eventBus,a.attachCompoundItem(u,w);const m=h.id||"gen_"+g;this.renderWebComponent(h.viewUrl,w,_,h,m,!0),Ph(f,h,m)}),n.appendChild(u),Ph(f,t.compound,"_root",u),l(u)}).catch(u=>{console.warn("Error: ",u),this.containerService.dispatch(k.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,u)})})}resolveAlert(t,n){this.alertResolvers[t]?(this.alertResolvers[t](n===void 0||n),this.alertResolvers[t]=void 0):console.log("Promise is not in the list.")}notifyConfirmationModalClosed(t){this.modalResolver?(t?this.modalResolver.resolve():this.modalResolver.reject(),this.modalResolver=void 0):console.log("Modal promise is not listed.")}}const gs=new class{isFunction(r){return r&&{}.toString.call(r)==="[object Function]"}isObject(r){return!(!r||typeof r!="object"||Array.isArray(r))}checkWebcomponentValue(r){return typeof r=="string"?JSON.parse(r):typeof r=="boolean"||typeof r=="object"?r:void console.warn("Webcomponent value has a wrong type.")}resolveContext(r){return r?typeof r=="string"?JSON.parse(r):r:{}}};var ZE=pu(`<style>main.lui-isolated,
78
+ `,r}createCompoundItemContainer(e){const r=e||{},s=document.createElement("div");return s.setAttribute("style",`grid-row: ${r.row||"auto"}; grid-column: ${r.column||"auto"}`),s.classList.add("lui-compoundItemCnt"),s}}const Bd=n=>{const e=n.use;return e?e==="grid"?new XE(n):e.createCompoundContainer||e.createCompoundItemContainer||e.attachCompoundItem?new JE(n):new Ui(n):new Ui(n)},Ah=(n,e,r,s)=>{e?.eventListeners&&e.eventListeners.forEach(a=>{const l=a.source+"."+a.name,u=n[l],f={wcElementId:r,wcElement:s,action:a.action,converter:a.dataConverter};u?u.push(f):n[l]=[f]})};function Ih(n){return String(n).replaceAll("&lt;","<").replaceAll("&gt;",">").replaceAll("&quot;",'"').replaceAll("&#39;","'").replaceAll("&sol;","/")}class Gd{constructor(){this.alertResolvers={},this.alertIndex=0,this.containerService=new vu}dynamicImport(e){return Object.freeze(import(e))}processViewUrl(e,r){return e}attachWC(e,r,s,a,l,u,f){if(s&&s.contains(r)){const h=document.createElement(e);u&&h.setAttribute("nodeId",u),h.setAttribute("lui_web_component","true"),this.initWC(h,e,s,l,a,u,f),s.replaceChild(h,r),s._luigi_node&&(s._luigi_mfe_webcomponent=h),s.dispatchEvent(new Event("wc_ready"))}}dispatchLuigiEvent(e,r,s){this.containerService.dispatch(e,this.thisComponent,r,s)}createClientAPI(e,r,s,a,l){return{linkManager:()=>{let u=null,f=!1,h=!1,g=!1,_={};const w={navigate:(m,E={},C)=>{const R={fromContext:u,fromClosestContext:f,fromVirtualTreeRoot:h,fromParent:g,nodeParams:_,...E};this.dispatchLuigiEvent(k.NAVIGATION_REQUEST,{link:m,...R},C)},navigateToIntent:(m,E={})=>{let C="#?intent=";if(C+=m,E&&Object.keys(E)?.length){const R=Object.entries(E);if(R.length>0){C+="?";for(const[I,N]of R)C+=I+"="+N+"&";C=C.slice(0,-1)}}w.navigate(C)},fromClosestContext:()=>(f=!0,w),fromContext:m=>(u=m,w),fromVirtualTreeRoot:()=>(h=!0,w),fromParent:()=>(g=!0,w),getCurrentRoute:()=>{const m={fromContext:u,fromClosestContext:f,fromVirtualTreeRoot:h,fromParent:g,nodeParams:_};return new Promise((E,C)=>{this.containerService.dispatch(k.GET_CURRENT_ROUTE_REQUEST,this.thisComponent,{...m},R=>{R?E(R):C("No current route received.")})})},withParams:m=>(_=m,w),updateModalPathInternalNavigation:(m,E={},C=!1)=>{if(!m)return void console.warn("Updating path of the modal upon internal navigation prevented. No path specified.");const R={fromClosestContext:f,fromContext:u,fromParent:g,fromVirtualTreeRoot:h,nodeParams:_};this.dispatchLuigiEvent(k.UPDATE_MODAL_PATH_DATA_REQUEST,Object.assign(R,{history:C,link:m,modal:E}))},updateTopNavigation:()=>{this.dispatchLuigiEvent(k.UPDATE_TOP_NAVIGATION_REQUEST,{})},pathExists:m=>{const E={fromContext:u,fromClosestContext:f,fromVirtualTreeRoot:h,fromParent:g,nodeParams:_};return new Promise((C,R)=>{this.containerService.dispatch(k.CHECK_PATH_EXISTS_REQUEST,this.thisComponent,{...E,link:m},I=>{I?C(!0):R(!1)}),this.containerService.dispatch(k.PATH_EXISTS_REQUEST,this.thisComponent,{...E,link:m},I=>{I?C(!0):R(!1)})})},openAsDrawer:(m,E={})=>{w.navigate(m,{drawer:E})},openAsModal:(m,E={},C)=>new Promise(R=>{w.navigate(m,{modal:E},I=>{R({goBackValue:I}),C&&typeof C=="function"&&C(I)})}),openAsSplitView:(m,E={})=>{w.navigate(m,{splitView:E})},goBack:m=>{this.dispatchLuigiEvent(k.GO_BACK_REQUEST,m)},hasBack:()=>!1,updateModalSettings:(m={},E=!1)=>{this.dispatchLuigiEvent(k.UPDATE_MODAL_SETTINGS_REQUEST,{updatedModalSettings:m,addHistoryEntry:E})}};return w},uxManager:()=>({showAlert:u=>(u.id=this.alertIndex++,new Promise(f=>{this.alertResolvers[u.id]=f,this.dispatchLuigiEvent(k.ALERT_REQUEST,u,h=>{this.resolveAlert(u.id,h)})})),showConfirmationModal:u=>new Promise((f,h)=>{this.modalResolver={resolve:f,reject:h},this.containerService.dispatch(k.SHOW_CONFIRMATION_MODAL_REQUEST,this.thisComponent,u,g=>{g?f():h()})}),getCurrentTheme:()=>this.thisComponent.theme,closeUserSettings:()=>{this.dispatchLuigiEvent(k.CLOSE_USER_SETTINGS_REQUEST,this.thisComponent.userSettings)},openUserSettings:()=>{this.dispatchLuigiEvent(k.OPEN_USER_SETTINGS_REQUEST,this.thisComponent.userSettings)},collapseLeftSideNav:()=>{this.dispatchLuigiEvent(k.COLLAPSE_LEFT_NAV_REQUEST,{})},getDirtyStatus:()=>this.thisComponent.dirtyStatus||!1,getDocumentTitle:()=>this.thisComponent.documentTitle,setDocumentTitle:u=>{this.dispatchLuigiEvent(k.SET_DOCUMENT_TITLE_REQUEST,u)},setDirtyStatus:u=>{this.dispatchLuigiEvent(k.SET_DIRTY_STATUS_REQUEST,{dirty:u})},setCurrentLocale:u=>{u&&this.dispatchLuigiEvent(k.SET_CURRENT_LOCALE_REQUEST,{currentLocale:u})},removeBackdrop:()=>{this.dispatchLuigiEvent(k.REMOVE_BACKDROP_REQUEST,{})},addBackdrop:()=>{this.dispatchLuigiEvent(k.ADD_BACKDROP_REQUEST,{})},showLoadingIndicator:()=>{this.dispatchLuigiEvent(k.SHOW_LOADING_INDICATOR_REQUEST,{})},hideLoadingIndicator:()=>{this.dispatchLuigiEvent(k.HIDE_LOADING_INDICATOR_REQUEST,{})},hideAppLoadingIndicator:()=>{this.dispatchLuigiEvent(k.HIDE_LOADING_INDICATOR_REQUEST,{})},closeCurrentModal:()=>{this.dispatchLuigiEvent(k.CLOSE_CURRENT_MODAL_REQUEST,{})}}),getCurrentLocale:()=>this.thisComponent.locale,getActiveFeatureToggles:()=>this.thisComponent.activeFeatureToggleList||[],publishEvent:u=>{e&&e.eventBus&&e.eventBus.onPublishEvent(u,r,s);const f={id:u.type,_metaData:{nodeId:r,wc_id:s,src:a},data:u.detail};this.dispatchLuigiEvent(k.CUSTOM_MESSAGE,f)},luigiClientInit:()=>{this.dispatchLuigiEvent(k.INITIALIZED,{})},addNodeParams:(u,f)=>{l||this.dispatchLuigiEvent(k.ADD_NODE_PARAMS_REQUEST,{params:u,data:u,keepBrowserHistory:f})},getNodeParams:u=>{return l?{}:u?(f=this.thisComponent.nodeParams,Object.entries(f).reduce((h,g)=>(h[Ih(g[0])]=Ih(g[1]),h),{})):this.thisComponent.nodeParams||{};var f},setAnchor:u=>{l||this.dispatchLuigiEvent(k.SET_ANCHOR_LINK_REQUEST,u)},getAnchor:()=>this.thisComponent.anchor||"",getCoreSearchParams:()=>this.thisComponent.searchParams||{},getPathParams:()=>this.thisComponent.pathParams||{},getClientPermissions:()=>this.thisComponent.clientPermissions||{},addCoreSearchParams:(u={},f=!0)=>{this.dispatchLuigiEvent(k.ADD_SEARCH_PARAMS_REQUEST,{data:u,keepBrowserHistory:f})},getUserSettings:()=>this.thisComponent.userSettings||{},setViewGroupData:u=>{this.dispatchLuigiEvent(k.SET_VIEW_GROUP_DATA_REQUEST,u)}}}initWC(e,r,s,a,l,u,f){const h=this.createClientAPI(s,u,r,e,f);if(e.__postProcess){const g=new URL(document.baseURI).origin===new URL(a,document.baseURI).origin?new URL("./",new URL(a,document.baseURI)):new URL("./",a);e.__postProcess(l,h,g.origin+g.pathname)}else e.context=l,e.LuigiClient=h}generateWCId(e){let r="";const s=new URL(e,encodeURI(location.href)).href;for(let a=0;a<s.length;a++)r+=s.charCodeAt(a).toString(16);return"luigi-wc-"+r}registerWCFromUrl(e,r){const s=this.processViewUrl(e);return new Promise((a,l)=>{this.checkWCUrl(s)?this.dynamicImport(s).then(u=>{try{if(!window.customElements.get(r)){let f=u.default;if(!HTMLElement.isPrototypeOf(f)){const h=Object.keys(u);for(let g=0;g<h.length&&(f=u[h[g]],!HTMLElement.isPrototypeOf(f));g++);}window.customElements.define(r,f)}a(1)}catch(f){l(f)}}).catch(u=>{l(u)}):l(`Error: View URL '${s}' not allowed to be included`)})}includeSelfRegisteredWCFromUrl(e,r,s){if(this.checkWCUrl(r)){this.containerService.getContainerManager()._registerWebcomponent||(this.containerService.getContainerManager()._registerWebcomponent=(l,u)=>{window.customElements.define(this.generateWCId(l),u)}),window.Luigi||(window.Luigi={},window.Luigi._registerWebcomponent||(window.Luigi._registerWebcomponent=(l,u)=>{this.containerService.getContainerManager()._registerWebcomponent(l,u)}));const a=document.createElement("script");a.setAttribute("src",r),e.webcomponent.type==="module"&&a.setAttribute("type","module"),a.setAttribute("defer","true"),a.addEventListener("load",()=>{s()}),document.body.appendChild(a)}else console.warn(`View URL '${r}' not allowed to be included`)}checkWCUrl(e){return!0}renderWebComponent(e,r,s,a,l,u){const f=this.processViewUrl(e,{context:s}),h=a?.webcomponent?.tagName||this.generateWCId(f),g=document.createElement("div");r.appendChild(g),r._luigi_node=a,window.customElements.get(h)?this.attachWC(h,g,r,s,f,l,u):window.luigiWCFn?window.luigiWCFn(f,h,g,()=>{this.attachWC(h,g,r,s,f,l,u)}):a?.webcomponent?.selfRegistered?this.includeSelfRegisteredWCFromUrl(a,f,()=>{this.attachWC(h,g,r,s,f,l,u)}):this.registerWCFromUrl(f,h).then(()=>{this.attachWC(h,g,r,s,f,l,u)}).catch(_=>{console.warn("ERROR =>",_),this.containerService.dispatch(k.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,_)})}createCompoundContainerAsync(e,r,s){return new Promise((a,l)=>{if(e.viewUrl)try{const u=s?.webcomponent?.tagName||this.generateWCId(e.viewUrl);s?.webcomponent?.selfRegistered?this.includeSelfRegisteredWCFromUrl(s,e.viewUrl,()=>{const f=document.createElement(u);f.setAttribute("lui_web_component","true"),this.initWC(f,u,f,e.viewUrl,r,"_root"),a(f)}):this.registerWCFromUrl(e.viewUrl,u).then(()=>{const f=document.createElement(u);f.setAttribute("lui_web_component","true"),this.initWC(f,u,f,e.viewUrl,r,"_root"),a(f)}).catch(f=>{console.warn("Error: ",f),this.containerService.dispatch(k.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,f)})}catch(u){l(u)}else a(e.createCompoundContainer())})}renderWebComponentCompound(e,r,s){let a;return e.webcomponent&&e.viewUrl?(a=new Ui,a.viewUrl=this.processViewUrl(e.viewUrl,{context:s}),a.createCompoundItemContainer=l=>{const u=document.createElement("div");return l?.slot&&u.setAttribute("slot",l.slot),u}):e.compound?.renderer&&(a=Bd(e.compound.renderer)),a=a||new Ui,new Promise(l=>{this.createCompoundContainerAsync(a,s,e).then(u=>{r._luigi_mfe_webcomponent=u,r._luigi_node=e;const f={};u.eventBus={listeners:f,onPublishEvent:(h,g,_)=>{const w=f[g+"."+h.type]||[];w.push(...f["*."+h.type]||[]),w.forEach(m=>{const E=m.wcElement||u.querySelector("[nodeId="+m.wcElementId+"]");E?E.dispatchEvent(new CustomEvent(m.action,{detail:m.converter?m.converter(h.detail):h.detail})):console.debug("Could not find event target",m)})}},e.compound?.children?.forEach((h,g)=>{const _={...s,...h.context},w=a.createCompoundItemContainer(h.layoutConfig);w.eventBus=u.eventBus,a.attachCompoundItem(u,w);const m=h.id||"gen_"+g;this.renderWebComponent(h.viewUrl,w,_,h,m,!0),Ah(f,h,m)}),r.appendChild(u),Ah(f,e.compound,"_root",u),l(u)}).catch(u=>{console.warn("Error: ",u),this.containerService.dispatch(k.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,u)})})}resolveAlert(e,r){this.alertResolvers[e]?(this.alertResolvers[e](r===void 0||r),this.alertResolvers[e]=void 0):console.log("Promise is not in the list.")}notifyConfirmationModalClosed(e){this.modalResolver?(e?this.modalResolver.resolve():this.modalResolver.reject(),this.modalResolver=void 0):console.log("Modal promise is not listed.")}}const gs=new class{isFunction(n){return n&&{}.toString.call(n)==="[object Function]"}isObject(n){return!(!n||typeof n!="object"||Array.isArray(n))}checkWebcomponentValue(n){return typeof n=="string"?JSON.parse(n):typeof n=="boolean"||typeof n=="object"?n:void console.warn("Webcomponent value has a wrong type.")}resolveContext(n){return n?typeof n=="string"?JSON.parse(n):n:{}}};var ZE=pu(`<style>main.lui-isolated,
79
79
  .lui-isolated iframe {
80
80
  width: 100%;
81
81
  height: 100%;
@@ -84,12 +84,12 @@ https://svelte.dev/e/hydration_attribute_changed`,ur,cr):console.warn("https://s
84
84
 
85
85
  main.lui-isolated {
86
86
  line-height: 0;
87
- }</style> <iframe></iframe>`,1),eC=pu("<main><!></main>");function Qd(r,t){ru(t,!1);let n=ee(t,"activeFeatureToggleList"),s=ee(t,"allowRules"),a=ee(t,"anchor"),l=ee(t,"authData"),u=ee(t,"clientPermissions"),f=ee(t,"context"),h=ee(t,"deferInit"),g=ee(t,"dirtyStatus"),_=ee(t,"documentTitle"),w=ee(t,"hasBack"),m=ee(t,"label"),E=ee(t,"locale"),C=ee(t,"noShadow"),R=ee(t,"nodeParams"),I=ee(t,"pathParams"),N=ee(t,"sandboxRules"),F=ee(t,"searchParams"),J=ee(t,"skipCookieCheck"),de=ee(t,"skipInitCheck"),_e=ee(t,"theme"),pe=ee(t,"userSettings"),oe=ee(t,"viewurl"),me=ee(t,"webcomponent");const Re=yi({});let ae=yi(),ut=yi(!1),ct=yi();const jt=new Gd,W=()=>n()&&s()&&a()&&l()&&u()&&g()&&_()&&w()&&E()&&C()&&R()&&I()&&N()&&F()&&J()&&de()&&_e()&&pe(),Gn=O=>{if(!q(ut)){O.sendCustomMessage=(ne,ze)=>{vi.sendCustomMessage(ne,O.getNoShadow()?O:q(ae),!!me(),q(Re),ze)},O.updateContext=(ne,ze)=>{if(f(ne),me())(O.getNoShadow()?O:q(ae))._luigi_mfe_webcomponent.context=ne;else{const dn={...ze||{},activeFeatureToggleList:O.activeFeatureToggleList||[],currentLocale:O.locale,currentTheme:O.theme,userSettings:O.userSettings||null,cssVariables:O.cssVariables||{},anchor:O.anchor||"",drawer:O.drawer||!1,modal:O.modal||!1,viewStackSize:O.viewStackSize||0,isNavigateBack:O.isNavigateBack||!1};vi.updateContext(ne,dn,q(Re),R(),I(),F())}},O.closeAlert=(ne,ze)=>{O.notifyAlertClosed(ne,ze)},O.notifyAlertClosed=(ne,ze)=>{O.isConnected&&(me()?jt.resolveAlert(ne,ze):vi.notifyAlertClosed(ne,ze,q(Re)))},O.notifyConfirmationModalClosed=ne=>{O.isConnected&&(me()?jt.notifyConfirmationModalClosed(!!ne):vi.notifyConfirmationModalClosed(!!ne,q(Re)))},rr.registerContainer(O),jt.thisComponent=O;const Ae=gs.resolveContext(f());if(O.updateViewUrl=(ne,ze)=>{ne?.length&&vi.updateViewUrl(ne,gs.resolveContext(f()),ze,q(Re))},me()&&me()!="false"){O.getNoShadow()?O.innerHTML="":(ls(ae,q(ae).innerHTML=""),O.attachShadow({mode:"open"}).append(q(ae)));const ne=gs.checkWebcomponentValue(me());jt.renderWebComponent(oe(),O.getNoShadow()?O:q(ae),Ae,typeof ne=="object"?{webcomponent:ne}:{})}else O.getNoShadow()||(O.innerHTML="",O.attachShadow({mode:"open"}).append(q(ae)));de()?(O.initialized=!0,setTimeout(()=>{jt.dispatchLuigiEvent(k.INITIALIZED,{})})):me()&&(O.getNoShadow()?O:q(ae)).addEventListener("wc_ready",()=>{(O.getNoShadow()?O:q(ae))._luigi_mfe_webcomponent?.deferLuigiClientWCInit||(O.initialized=!0,jt.dispatchLuigiEvent(k.INITIALIZED,{}))}),_t(ut,!0),O.containerInitialized=!0}};var mr;Ql(async()=>{_t(ct,q(ae).parentNode),ls(ct,q(ct).iframeHandle=q(Re)),ls(ct,q(ct).init=()=>{Gn(q(ct))}),!h()&&oe()&&Gn(q(ct))}),mr=async()=>{},be===null&&Jh("onDestroy"),Ql(()=>()=>Fn(mr)),(function(O,Ae){var ne={effect:null,ran:!1,deps:O};be.l.$.push(ne),ne.effect=Es(()=>{if(O(),!ne.ran){ne.ran=!0;var ze=te;try{xt(ze.parent),Fn(Ae)}finally{xt(ze)}}})})(()=>(q(ut),pi(oe()),pi(h()),q(ct)),()=>{!q(ut)&&oe()&&!h()&&q(ct)&&Gn(q(ct))}),(function(){var O=be;Es(()=>{for(var Ae of O.l.$){Ae.deps();var ne=Ae.effect;(ne.f&He)!==0&&ne.deps!==null&&Ue(ne,En),Hi(ne)&&zr(ne),Ae.ran=!1}})})();var wt={unwarn:W,get activeFeatureToggleList(){return n()},set activeFeatureToggleList(O){n(O),Z()},get allowRules(){return s()},set allowRules(O){s(O),Z()},get anchor(){return a()},set anchor(O){a(O),Z()},get authData(){return l()},set authData(O){l(O),Z()},get clientPermissions(){return u()},set clientPermissions(O){u(O),Z()},get context(){return f()},set context(O){f(O),Z()},get deferInit(){return h()},set deferInit(O){h(O),Z()},get dirtyStatus(){return g()},set dirtyStatus(O){g(O),Z()},get documentTitle(){return _()},set documentTitle(O){_(O),Z()},get hasBack(){return w()},set hasBack(O){w(O),Z()},get label(){return m()},set label(O){m(O),Z()},get locale(){return E()},set locale(O){E(O),Z()},get noShadow(){return C()},set noShadow(O){C(O),Z()},get nodeParams(){return R()},set nodeParams(O){R(O),Z()},get pathParams(){return I()},set pathParams(O){I(O),Z()},get sandboxRules(){return N()},set sandboxRules(O){N(O),Z()},get searchParams(){return F()},set searchParams(O){F(O),Z()},get skipCookieCheck(){return J()},set skipCookieCheck(O){J(O),Z()},get skipInitCheck(){return de()},set skipInitCheck(O){de(O),Z()},get theme(){return _e()},set theme(O){_e(O),Z()},get userSettings(){return pe()},set userSettings(O){pe(O),Z()},get viewurl(){return oe()},set viewurl(O){oe(O),Z()},get webcomponent(){return me()},set webcomponent(O){me(O),Z()}};Hd();var Xe=eC(),St=(function(O,Ae){if(!De)return Oi(O);var ne=Oi(Ee);return ne===null&&(ne=Ee.appendChild(Hr())),wn(ne),ne})(Xe),Jr=O=>{var Ae=(function(){if(De)return Ai(Ee,null),Ee;var dn=document.createDocumentFragment(),Lt=document.createComment(""),yt=Hr();return dn.append(Lt,yt),Ai(Lt,yt),dn})(),ne=ph(Ae),ze=dn=>{var Lt=ZE(),yt=(function(wr,Tn=1,Sr=!1){let Nt=De?Ee:wr;for(var yr;Tn--;)yr=Nt,Nt=Wn(Nt);if(!De)return Nt;if(Sr){if(Nt?.nodeType!==3){var Rn=Hr();return Nt===null?yr?.after(Rn):Nt.before(Rn),wn(Rn),Rn}wd(Nt)}return wn(Nt),Nt})(ph(Lt),2);ql(yt,wr=>ls(Re,q(Re).iframe=wr),()=>q(Re)?.iframe),vh((wr,Tn)=>{Pa(yt,"src",oe()),Pa(yt,"title",m()),Pa(yt,"allow",wr),Pa(yt,"sandbox",Tn)},[()=>(pi(Ah),pi(s()),Fn(()=>Ah(s()))),()=>(pi(N()),Fn(()=>N()?N().join(" "):void 0))]),ds(dn,Lt)};Ch(ne,dn=>{me()&&me()!=="false"||dn(ze)}),ds(O,Ae)};return Ch(St,O=>{q(ut)&&O(Jr)}),(function(O){if(De){if(Wn(Ee)!==null)throw Ya(),Ii;Ee=O}})(Xe),ql(Xe,O=>_t(ae,O),()=>q(ae)),vh(()=>QE(Xe,1,GE(me()?void 0:"lui-isolated"))),ds(r,Xe),Fd(t,"unwarn",W),iu(wt)}Wd(Qd,{activeFeatureToggleList:{attribute:"active-feature-toggle-list",type:"Array"},allowRules:{attribute:"allow-rules",type:"Array"},anchor:{attribute:"anchor",type:"String"},authData:{attribute:"auth-data",type:"Object"},clientPermissions:{attribute:"client-permissions",type:"Object"},context:{attribute:"context",type:"String"},deferInit:{attribute:"defer-init",type:"Boolean"},dirtyStatus:{attribute:"dirty-status",type:"Boolean"},documentTitle:{attribute:"document-title",type:"String"},hasBack:{attribute:"has-back",type:"Boolean"},label:{attribute:"label",type:"String"},locale:{attribute:"locale",type:"String"},noShadow:{attribute:"no-shadow",type:"Boolean"},nodeParams:{attribute:"node-params",type:"Object"},pathParams:{attribute:"path-params",type:"Object"},sandboxRules:{attribute:"sandbox-rules",type:"Array"},searchParams:{attribute:"search-params",type:"Object"},skipCookieCheck:{attribute:"skip-cookie-check",type:"String"},skipInitCheck:{attribute:"skip-init-check",type:"Boolean"},theme:{attribute:"theme",type:"String"},userSettings:{attribute:"user-settings",type:"Object"},viewurl:{attribute:"viewurl",type:"String"},webcomponent:{attribute:"webcomponent",type:"String"}},[],["unwarn"],void 0,r=>{let t=n=>()=>console.warn(n+" can't be called on luigi-container before its micro frontend is attached to the DOM.");return class extends r{sendCustomMessage=t("sendCustomMessage");updateContext=t("updateContext");updateViewUrl=t("updateViewUrl");closeAlert=t("closeAlert");notifyAlertClosed=t("notifyAlertClosed");notifyConfirmationModalClosed=t("notifyConfirmationModalClosed");attributeChangedCallback(n,s,a){try{super.attributeChangedCallback(n,s,a)}catch(l){console.error("Error in super.attributeChangedCallback",l)}this.containerInitialized&&(n==="context"&&this.updateContext(JSON.parse(a)),n==="auth-data"&&vi.updateAuthData(this.iframeHandle,JSON.parse(a)))}getNoShadow(){return this.hasAttribute("no-shadow")||this.noShadow}}});var tC=pu('<main class="svelte-1yfh4yd"></main>');const nC={hash:"svelte-1yfh4yd",code:"main.svelte-1yfh4yd {width:100%;height:100%;border:none;}"};function xh(r,t){ru(t,!1),BE(r,nC);let n,s=ee(t,"activeFeatureToggleList"),a=ee(t,"anchor"),l=ee(t,"clientPermissions"),u=ee(t,"compoundConfig"),f=ee(t,"context"),h=ee(t,"deferInit"),g=ee(t,"dirtyStatus"),_=ee(t,"documentTitle"),w=ee(t,"hasBack"),m=ee(t,"locale"),E=ee(t,"noShadow"),C=ee(t,"nodeParams"),R=ee(t,"pathParams"),I=ee(t,"searchParams"),N=ee(t,"skipInitCheck"),F=ee(t,"theme"),J=ee(t,"userSettings"),de=ee(t,"viewurl"),_e=ee(t,"webcomponent"),pe=!1,oe=yi();const me=new vu,Re=new Gd,ae=()=>s()&&a()&&l()&&g()&&_()&&w()&&m()&&E()&&C()&&R()&&I()&&N()&&F()&&J(),ut=W=>{if(!u()||pe)return;W.updateContext=(wt,Xe)=>{const St=W.getNoShadow()?W:q(oe);St._luigi_mfe_webcomponent.context=wt,f(wt);const Jr=St._luigi_mfe_webcomponent;Jr&&Jr.querySelectorAll("[lui_web_component]")?.forEach(Ae=>{const ne=Ae.context||{};Ae.context=Object.assign(ne,wt)})};const Gn=gs.resolveContext(f());h(!1),W.notifyAlertClosed=(wt,Xe)=>{W.isConnected&&Re.resolveAlert(wt,Xe)},W.notifyConfirmationModalClosed=wt=>{W.isConnected&&Re.notifyConfirmationModalClosed(!!wt)};const mr={compound:u(),viewUrl:de(),webcomponent:gs.checkWebcomponentValue(_e())||!0};W.getNoShadow()?W.innerHTML="":(ls(oe,q(oe).innerHTML=""),W.attachShadow({mode:"open"}).append(q(oe))),Re.renderWebComponentCompound(mr,W.getNoShadow()?W:q(oe),Gn).then(wt=>{n=wt,N()||!mr.viewUrl?(W.initialized=!0,setTimeout(()=>{Re.dispatchLuigiEvent(k.INITIALIZED,{})})):n.LuigiClient&&!n.deferLuigiClientWCInit&&(W.initialized=!0,Re.dispatchLuigiEvent(k.INITIALIZED,{}))}),pe=!0,W.containerInitialized=!0};Ql(async()=>{const W=q(oe).getRootNode()===document?q(oe).parentNode:q(oe).getRootNode().host;W.init=()=>{ut(W)},h()||ut(W),me.registerContainer(W),Re.thisComponent=W});var ct={unwarn:ae,get activeFeatureToggleList(){return s()},set activeFeatureToggleList(W){s(W),Z()},get anchor(){return a()},set anchor(W){a(W),Z()},get clientPermissions(){return l()},set clientPermissions(W){l(W),Z()},get compoundConfig(){return u()},set compoundConfig(W){u(W),Z()},get context(){return f()},set context(W){f(W),Z()},get deferInit(){return h()},set deferInit(W){h(W),Z()},get dirtyStatus(){return g()},set dirtyStatus(W){g(W),Z()},get documentTitle(){return _()},set documentTitle(W){_(W),Z()},get hasBack(){return w()},set hasBack(W){w(W),Z()},get locale(){return m()},set locale(W){m(W),Z()},get noShadow(){return E()},set noShadow(W){E(W),Z()},get nodeParams(){return C()},set nodeParams(W){C(W),Z()},get pathParams(){return R()},set pathParams(W){R(W),Z()},get searchParams(){return I()},set searchParams(W){I(W),Z()},get skipInitCheck(){return N()},set skipInitCheck(W){N(W),Z()},get theme(){return F()},set theme(W){F(W),Z()},get userSettings(){return J()},set userSettings(W){J(W),Z()},get viewurl(){return de()},set viewurl(W){de(W),Z()},get webcomponent(){return _e()},set webcomponent(W){_e(W),Z()}};Hd();var jt=tC();return ql(jt,W=>_t(oe,W),()=>q(oe)),ds(r,jt),Fd(t,"unwarn",ae),iu(ct)}Wd(xh,{activeFeatureToggleList:{attribute:"active-feature-toggle-list",type:"Array"},anchor:{attribute:"anchor",type:"String"},clientPermissions:{attribute:"client-permissions",type:"Object"},compoundConfig:{attribute:"compound-config",type:"Object"},context:{attribute:"context",type:"String"},deferInit:{attribute:"defer-init",type:"Boolean"},dirtyStatus:{attribute:"dirty-status",type:"Boolean"},documentTitle:{attribute:"document-title",type:"String"},hasBack:{attribute:"has-back",type:"Boolean"},locale:{attribute:"locale",type:"String"},noShadow:{attribute:"no-shadow",type:"Boolean"},nodeParams:{attribute:"node-params",type:"Object"},pathParams:{attribute:"path-params",type:"Object"},searchParams:{attribute:"search-params",type:"Object"},skipInitCheck:{attribute:"skip-init-check",type:"Boolean"},theme:{attribute:"theme",type:"String"},userSettings:{attribute:"user-settings",type:"Object"},viewurl:{attribute:"viewurl",type:"String"},webcomponent:{attribute:"webcomponent",type:"String"}},[],["unwarn"],void 0,r=>{let t=n=>()=>console.warn(n+" can't be called on luigi-container before its micro frontend is attached to the DOM.");return class extends r{updateContext=t("updateContext");notifyAlertClosed=t("notifyAlertClosed");notifyConfirmationModalClosed=t("notifyConfirmationModalClosed");attributeChangedCallback(n,s,a){try{super.attributeChangedCallback(n,s,a)}catch(l){console.warn("Error in attributeChangedCallback",l)}this.containerInitialized&&n==="context"&&this.updateContext(JSON.parse(a))}getNoShadow(){return this.hasAttribute("no-shadow")||this.noShadow}}}),customElements.get("luigi-container")||customElements.define("luigi-container",Qd.element),customElements.get("luigi-compound-container")||customElements.define("luigi-compound-container",xh.element);const Ba={sanitizeHtml(r=""){return r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/javascript:/gi,"").replace(/data:/gi,"").replace(/vbscript:/gi,"")},restoreSanitizedBrs(r=""){return r.replace(/&lt;br\/&gt;/g,"<br>").replace(/&lt;br \/&gt;/g,"<br>").replace(/&lt;br&gt;/g,"<br>").replace(/&lt;br &gt;/g,"<br>")},restoreSanitizedElements(r=""){let t=r;const n=["i","b","br","mark","strong","em","small","del","ins","sub","sup"];for(let s=0;s<n.length;s++){const a=new RegExp(`&lt;${n[s]}/&gt;`,"g"),l=new RegExp(`&lt;${n[s]} /&gt;`,"g"),u=new RegExp(`&lt;${n[s]}&gt;`,"g"),f=new RegExp(`&lt;${n[s]} &gt;`,"g"),h=new RegExp(`&lt;/${n[s]}[/]&gt;`,"g"),g=new RegExp(`&lt;/${n[s]} [/]&gt;`,"g"),_=new RegExp(`&lt;[/]${n[s]}&gt;`,"g"),w=new RegExp(`&lt;[/]${n[s]} &gt;`,"g");t=t.replace(a,`<${n[s]}>`).replace(l,`<${n[s]}>`).replace(u,`<${n[s]}>`).replace(f,`<${n[s]}>`).replace(h,`</${n[s]}>`).replace(g,`</${n[s]}>`).replace(_,`</${n[s]}>`).replace(w,`</${n[s]}>`)}return t},sanatizeHtmlExceptTextFormatting(r=""){return this.restoreSanitizedElements(this.sanitizeHtml(r))},sanitizeParam(r=""){return String(r).replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/\//g,"&sol;")},escapeKeyForRegexp(r=""){return r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},processTextAndLinks(r="",t,n){const a={sanitizedText:this.restoreSanitizedBrs(this.sanitizeHtml(r)),links:[]};return t?Object.entries(t).reduce((l,[u,f])=>{const h=`_luigi_alert_${n}_link_${this.sanitizeParam(u)}`,g=this.restoreSanitizedBrs(this.sanitizeHtml(f.text)),_=`<a id="${h}">${g}</a>`,w=this.escapeKeyForRegexp(u),m=new RegExp(`({${w}})`,"g");return{sanitizedText:l.sanitizedText.replace(m,_),links:l.links.concat({elemId:h,url:f.url?encodeURI(this.sanitizeHtml(f.url)):void 0,dismissKey:f.dismissKey?encodeURI(this.sanitizeHtml(f.dismissKey)):void 0})}},a):a}},Oe={normalizePath:r=>{if(!r||r.length<=0)return r;let t=r;return t.startsWith("#")&&(t=t.substring(1)),t.startsWith("/")&&(t=t.substring(1)),t},segmentMatches:(r,t,n)=>!!(r===t||t.startsWith(":")&&n&&n[t.substr(1)]===r),checkMatch:(r,t,n)=>{let s=!0;return M.trimTrailingSlash(M.trimLeadingSlash(r)).split("/").forEach((a,l)=>{s&&(l+1>=t.length||!t[l+1]?.pathSegment||!Oe.segmentMatches(a,t[l+1]?.pathSegment??"",n??{}))&&(s=!1)}),s},checkVisibleForFeatureToggles:(r,t)=>{if(r?.visibleForFeatureToggles){const n=t?.getActiveFeatureToggleList()||[];for(const s of r.visibleForFeatureToggles)if(s.startsWith("!")){if(n.includes(s.slice(1)))return!1}else if(!n.includes(s))return!1}return!0},generateTooltipText:(r,t,n)=>{let s=r?.tooltipText;switch(s===void 0&&(s=n.getConfigValue("navigation.defaults.tooltipText")),s){case void 0:return t;case!1:return"";default:return n.i18n().getTranslation(s)}},isNodeAccessPermitted:(r,t,n,s)=>{if(s.auth().isAuthorizationEnabled()){const u=ir.isLoggedIn(),f=r.anonymousAccess;if(u&&f==="exclusive"||!u&&f!=="exclusive"&&f!==!0)return!1}const a=s.featureToggles();if(!Oe.checkVisibleForFeatureToggles(r,a))return!1;const l=s.getConfigValue("navigation.nodeAccessibilityResolver");return typeof l!="function"?!0:l(r,t,n)},updateHeaderTitle:(r,t)=>{const n=r?.items;if(n&&t){let s="";return[...n].sort((a,l)=>(l.link||"").localeCompare(a.link||"")).some(a=>{let l=!1;if(l=Oe.checkMatch(a.link||"",t.nodesInPath??[]),!l&&a.selectionConditions&&a.selectionConditions.route&&(l=Oe.checkMatch(a.selectionConditions.route,t.nodesInPath??[]),l&&(a.selectionConditions.contextCriteria||[]).forEach(u=>{l=l&&t?.selectedNode?.context?.[u.key]===u.value})),l)return s=a.title||"",!0}),s}},buildPath(r,t){return r.map(s=>{const a=s.pathSegment;if(a?.startsWith(":")){const l=a.slice(1),u=t?.pathParams?.[l];if(u!=null)return encodeURIComponent(String(u))}return a}).join("/")},mergeContext(r,t,n){const s=[...r.parentNavigationContexts||[]];return n&&s.unshift(n),{...r,...t||{},parentNavigationContexts:s}},prepareForTests(...r){let t="";return r.forEach(n=>{n&&(t+=(t?"_":"")+encodeURIComponent(n.toLowerCase().split(" ").join("")))}),t},findVirtualTreeRootNode(r){if(r.virtualTree)return r;if(r.parent)return Oe.findVirtualTreeRootNode(r.parent)},validatePathAndGetRedirect:async(r,t)=>{const n=await D.pathExists(r,t);return await D.handlePageNotFoundAndRetrieveRedirectPath(r,n,t)||void 0},async fetchNodeTitleData(r,t){return new Promise((n,s)=>{if(!r.titleResolver){s(new Error("No title resolver defined at node"));return}const a={...r.titleResolver};delete a._cache;const l=this.substituteVars(a,t),u=JSON.stringify(l);if(r.titleResolver._cache&&r.titleResolver._cache.key===u){n(r.titleResolver._cache.value);return}const f=l.request;this._fetch(f.url,{method:f.method,headers:f.headers,body:JSON.stringify(f.body)}).then(h=>{h.json().then(g=>{try{const _=this.processTitleData(g,l);r.titleResolver._cache={key:u,value:_},n(_)}catch(_){s(_)}})}).catch(h=>{s(h)})})},getPropertyChainValue(r,t,n){return!t||!r?n:Ul.get(r,t,n)},substituteVars(r,t){const s=JSON.stringify(r).replace(/\$\{[a-zA-Z0-9$_.]+\}/g,a=>{const l=a.substr(2,a.length-3);return this.getPropertyChainValue(t,l)||a});return JSON.parse(s)},_fetch(r,t){return fetch(r,t)},processTitleData(r,t){let n=this.getPropertyChainValue(r,t.titlePropertyChain);return n&&(n=n.trim()),n&&t.titleDecorator&&(n=t.titleDecorator.replace("%s",n)),{label:n||t.fallbackTitle,icon:this.getPropertyChainValue(r,t.iconPropertyChain,t.fallbackIcon)}},openExternalLink(r,t){let n=r.url;if(t&&(n=M.replaceVars(n,t,":",!1)),r.sameWindow)window.location.href=n;else{const s=window.open(n,"_blank","noopener noreferrer");s&&(s.opener=null,s.focus())}}},D={defaultContentViewParamPrefix:"~",defaultQueryParamSeparator:"?",defaultModalViewParamName:"modal",addParamsOnHashRouting(r,t,n){let s=t;const[a,l]=s.split("?"),u=new URLSearchParams(l);return this.modifySearchParams(r,u,n),s=a,u.toString()!==""&&(s+=`?${u.toString()}`),s},modifySearchParams(r,t,n){for(const[s,a]of Object.entries(r)){const l=n?`${n}${s}`:s;t.set(l,a),a===void 0&&t.delete(l)}},filterNodeParams(r,t){const n=Object.create(null),s=this.getContentViewParamPrefix(t);return r&&Object.entries(r).forEach(a=>{if(a[0].startsWith(s)){const l=a[0].substr(s.length);n[l]=a[1]}}),this.sanitizeParamsMap(n)},mapPathToNode(r,t){if(!r||!t)return;const n=M.trimLeadingSlash(r).split("/"),s=D.buildRoute(t,`/${t.pathSegment}`),a=M.trimLeadingSlash(s).split("/");if(n.length<a.length)return;let l="";for(let u=0;u<a.length;u++){if(n[u]!==a[u]&&a[u].indexOf(":")!==0)return;l+="/"+n[u]}return l},async getNodeLabel(r,t){if(r.label&&!r._virtualTree)return t.i18n().getTranslation(r.label)||r.label;if(r.pathSegment&&r.pathSegment.indexOf(":")===0){const n=t.getConfig().routing?.useHashRouting,s=D.mapPathToNode(D.getCurrentPath(t,n)?.path,r)||"",a=await t.navigation().navService.extractDataFromPath(s);return D.getDynamicNodeValue(r,a.pathData.pathParams)||""}return r.pathSegment?r.pathSegment:""},getContentViewParamPrefix(r){let t=r?.getConfigValue("routing.nodeParamPrefix");return t===!1?t="":t||(t=this.defaultContentViewParamPrefix),t},sanitizeParamsMap(r){return Object.entries(r).reduce((t,n)=>(t[Ba.sanitizeParam(n[0])]=Ba.sanitizeParam(n[1]),t),{})},prepareSearchParamsForClient(r,t){const n={};return r&&r.clientPermissions&&r.clientPermissions.urlParameters&&Object.keys(r.clientPermissions.urlParameters).forEach(s=>{s in t.routing().getSearchParams()&&r.clientPermissions?.urlParameters&&r.clientPermissions.urlParameters[s]?.read===!0&&(n[s]=t.routing().getSearchParams()[s])}),n},hasIntent(r){return!!r&&r.toLowerCase().includes("#?intent=")},getIntentObject(r){const t=r.split("?intent=")[1];if(t){const n=t.split("?"),s=n[0].split("-"),a=Object.fromEntries(new URLSearchParams(n[1]).entries());return{semanticObject:s[0],action:s[1],params:a}}},getIntentPath(r,t){const n=t.getConfigValue("navigation.intentMapping");if(n&&n.length>0){const s=r.replace(/\?intent=/i,"?intent="),a=this.getIntentObject(s);if(a){let l=n.find(f=>f.semanticObject===a.semanticObject&&f.action===a.action);if(!l)return!1;if(l.externalLink)return{...l.externalLink,external:!0};l=l.pathSegment;const u=Object.entries(a.params);if(u&&u.length>0){l=this.resolveDynamicIntentPath(l,a.params);let f=t.getConfigValue("routing.nodeParamPrefix");f=f||"~",l=l.concat(`?${f}`),u.forEach(([h,g],_)=>{l+=`${_>0?"&"+f:""}${h}=${g}`})}return l}else console.warn("Could not parse given intent link.")}else console.warn("No intent mappings are defined in Luigi configuration.");return!1},resolveDynamicIntentPath(r,t){if(!t)return r;let n=r;for(const[s,a]of Object.entries(t)){const l=new RegExp("/:"+s+"(/|$)","g");n=n.replace(l,`/${a}/`)}return n=n.replace(/\/$/,""),n},getCurrentPath(r,t,n){if(n&&/\?intent=/i.test(location.hash)){const s=location.hash.replace("#/#","").replace("#",""),a=D.getIntentPath(s,r);if(a){if(typeof a=="string")return r?.getConfigValue("routing.replaceIntentRoute")&&history.replaceState(window.state,"",a),{path:a,query:location.search};if(M.isObject(a))return D.handleExternalIntentPath(a),{path:t?location.hash:location.pathname,query:""}}}if(t){const s=Oe.normalizePath(location.hash),[a,l]=s.split("?");return{path:a.replace("#",""),query:l}}else return{path:Oe.normalizePath(location.pathname),query:location.search}},handleExternalIntentPath(r){if(r.external&&r.url){const t=r.openInNewTab?"_blank":"_self";window.open(r.url,t,"noopener,noreferrer")?.focus()}},getModalPathFromPath(r){return this.getQueryParam(this.getModalViewParamName(r),r)},getQueryParam(r,t){return this.getQueryParams(t)[r]},getQueryParams(r){return r.getConfigValue("routing.useHashRouting")?this.getLocationHashQueryParams():this.getLocationSearchQueryParams()},getLocationSearchQueryParams(){return D.getLocation().search?D.parseParams(D.getLocation().search.slice(1)):{}},getLocation(){return location},getLocationHashQueryParams(){const r=D.getLocation().hash.indexOf(this.defaultQueryParamSeparator);return r!==-1?D.parseParams(D.getLocation().hash.slice(r+1)):{}},getModalViewParamName(r){let t=r.getConfigValue("routing.modalPathParam");return t||(t=this.defaultModalViewParamName),t},parseParams(r){const t=new URLSearchParams(r),n=new Map;for(const[s,a]of t.entries())n.set(s,a);return Object.fromEntries(n)},getModalParamsFromPath(r){const t=this.getQueryParam(`${this.getModalViewParamName(r)}Params`,r);return t&&JSON.parse(t)},getHashQueryParamSeparator(){return this.defaultQueryParamSeparator},getURLWithoutModalData(r,t){const n=new URLSearchParams(r);return n.delete(t),n.delete(`${t}Params`),n.toString()},handleHistoryState(r,t){return r&&r.modalHistoryLength?r.modalHistoryLength+=1:r={modalHistoryLength:1,historygap:history.length,pathBeforeHistory:t},r},encodeParams(r){const t=[];for(const n in r)t.push(encodeURIComponent(n)+"="+encodeURIComponent(r[n]));return t.join("&")},getLastNodeObject(r){return(r.nodesInPath?[...r.nodesInPath].pop():{})||{}},checkWCUrl(r,t){if(r.indexOf("://")>0||r.trim().indexOf("//")===0){if(new URL(r).host===window.location.host)return!0;const s=t.getConfigValue("navigation.validWebcomponentUrls");if(s?.length>0)for(const a of s)try{if(new RegExp(a).test(r))return!0}catch(l){console.error(l)}return!1}return!0},setFeatureToggles(r,t,n){const s=this.sanitizeParamsMap(this.parseParams(t.split("?")[1]));let a;if(s[r]&&(a=s[r]),!a)return;const l=a.split(",");l.length>0&&l[0]!==""&&l.forEach(u=>n?.setFeatureToggle(u,!0))},substituteDynamicParamsInObject(r,t,n=":",s=!1){return Object.entries(r).map(([a,l])=>{const u=s?Object.keys(t).find(f=>l&&l.indexOf(n+f)>=0):Object.keys(t).find(f=>l===n+f);return[a,u?s?l.replace(n+u,t[u]):t[u]:l]}).reduce((a,[l,u])=>Object.assign(a,{[l]:u}),{})},isDynamicNode(r){return typeof r.pathSegment=="string"&&r.pathSegment.length>0&&r.pathSegment[0]===":"},getDynamicNodeValue(r,t){return this.isDynamicNode(r)&&r.pathSegment?t[r.pathSegment.substring(1)]:void 0},isExistingRoute(r,t){const n=r?.split("/")||[],s=t?.nodesInPath||[],a=(u,f)=>{let h=null;if(u?.children?.length){const g=u.children.filter(_=>_.pathSegment===f);g?.length&&(h=g[0])}return h};let l=[];if(n.length>1&&s.length===1){let u;n.forEach((f,h)=>{const g=h===0?s[0]:u;u=a(g,f),u?.pathSegment&&l.push(u.pathSegment)})}else l=s.filter(u=>u.pathSegment).map(u=>u.pathSegment||"");return!r||n.length===l.length},async pathExists(r,t){const n=M.getTrimmedUrl(r),s=await t.navigation().navService.getPathData(r),a=D.isExistingRoute(n,s);return s?a:!1},showRouteNotFoundAlert(r,t=!1,n){const s={text:n.i18n().getTranslation(t?"luigi.notExactTargetNode":"luigi.requestedRouteNotFound",{route:r}),type:"error",ttl:1};n.ux().showAlert(s)},getPageNotFoundRedirectResult(r,t=!1,n){const s=n.getConfigValue("routing.pageNotFoundHandler");if(typeof s=="function"){const a=s(r,t);if(a&&(a.redirectTo||a.ignoreLuigiErrorHandling))return{path:a.redirectTo,keepURL:a.keepURL,ignoreLuigiErrorHandling:a.ignoreLuigiErrorHandling}}return{}},async handlePageNotFoundAndRetrieveRedirectPath(r,t,n){if(t)return r;const s=n.getConfigValue("routing.pageNotFoundHandler"),a=this.getPageNotFoundRedirectResult(r,s,n)?.path;if(a!==void 0)return a;this.showRouteNotFoundAlert(r,!1,n),console.warn(`Could not find the requested route: ${r}`)},async getDefaultChildNode(r,t){if(!r)return"";const n=r.nodesInPath&&r.nodesInPath[r.nodesInPath.length-1],s=r.context,a=t?await t(n,s):await $r.getConfigValueFromObjectAsync(n,"children",s),l=a.find(u=>u.pathSegment===n.defaultChildNode);if(n.defaultChildNode&&l)return n.defaultChildNode;if(a&&a.length){if(r?.nodesInPath?.length===1){const h=a.find(g=>g.pathSegment);return h&&h.pathSegment||console.error("At least one navigation node in the root hierarchy must have a pathSegment.")}const f=a.find(h=>h.pathSegment&&(h.viewUrl||h.compound||h.externalLink&&h.externalLink.url));if(f)return f.pathSegment}return""},getNodePath(r,t){return!r||t?r?this.buildRoute(r,r.pathSegment?"/"+r.pathSegment:"",t):"":`${r.parent?this.getNodePath(r.parent):""}/${r.pathSegment}`},buildRoute(r,t,n){return r.parent?this.buildRoute(r.parent,`/${r.parent.pathSegment}${t}`,n):t+(n?"?"+n:"")},substituteViewUrl(r,t,n,s){if(!r.viewUrl)return"";let a=r.viewUrl;const l="context.",u="nodeParams.",f="routing.queryParams";if(r.virtualTree&&(a=a.replace("{virtualTreePath}","")),a=M.replaceVars(a,t,":",!1),r.context&&(a=M.replaceVars(a,r.context,l)),a=M.replaceVars(a,n,u),a=this.getI18nViewUrl(a,s),a&&a.includes(f)){const h=a.split("?")[1];if(h){const g=h.split("=")[0],_=s.routing().getSearchParams();_[g]?a=a.replace(`{${f}.${g}}`,_[g]):a=a.replace(`?${g}={${f}.${g}}`,"")}}return a},getI18nViewUrl(r,t){const n="{i18n.currentLocale}",s=t.i18n().getCurrentLocale();return r&&r.includes(n)?r.replace(n,s):r},getSubPath(r,t){return M.replaceVars(D.getNodePath(r),t,":",!1)},concatenatePath(r,t){let n=M.getPathWithoutHashOrSlash(r);return n?(!t||typeof t!="string"||(n.endsWith("/")&&(n=n.substring(0,n.length-1)),t.startsWith("/")||(n+="/"),n+=t),n):t},getRouteLink(r,t,n){const s=n||"";if(r.externalLink&&r.externalLink.url)return r.externalLink.url;if(r.link)return s+r.link;const a=D.buildRoute(r,`/${r.pathSegment}`);return s+M.replaceVars(a,t,":",!1,!0)},calculateNodeHref(r,t,n){const a=n.getConfigValue("routing.useHashRouting")?"#":"",l=D.getRouteLink(r,t,a);return D.getI18nViewUrl(l,n)||l},getNodeHref(r,t,n){if(M.getConfigBooleanValue(n.getConfig(),"navigation.addNavHrefs"))return D.calculateNodeHref(r,t,n)}},Qe={_fallbackLabels:new Map,resetFallbackLabelCache(){Qe._fallbackLabels.clear()},getPreparedParentNodePath(r){return(!r.parentNodePath||!r.parentNodePath.startsWith("/"))&&console.error("Luigi Config Error: navigation.contextSwitcher.parentNodePath must be defined as an absolute path."),r.parentNodePath?M.addTrailingSlash(r.parentNodePath):r.parentNodePath},generateSwitcherNav(r,t){const n=Qe.getPreparedParentNodePath(r);return t.map(s=>({label:s.label,link:(n||"/")+s.pathValue,id:s.pathValue,testId:s.testId,customRendererCategory:s.customRendererCategory}))},getNodePathFromCurrentPath(r,t,n){const s=n.getConfig().routing?.useHashRouting,a=M.addLeadingSlash(D.getCurrentPath(n,s)?.path),l=M.addLeadingSlash(t.link);return a.startsWith(l)?r.link+M.addLeadingSlash(a.substring(l.length)):r.link},getOptionById(r,t){return r.find(n=>n.id===t)},getLabelFromOptions(r,t){const n=r.find(s=>s.id===t);return n&&n.label},isContextSwitcherDetailsView(r,t){const n=M.normalizePath(r),s=M.normalizePath(t);return!!(t&&n&&typeof n=="string"&&n.startsWith(s)&&n!==s)},async getFallbackLabel(r,t,n){if(!r)return t;const s=M.getConfigBooleanValue(n.getConfig(),"navigation.contextSwitcher.useFallbackLabelCache"),a=Qe._fallbackLabels;if(s&&a.has(t))return a.get(t);const l=await r(t);return s&&a.set(t,l),l},getSelectedId(r,t,n){if(r=M.normalizePath(r),n=M.normalizePath(n),!!Qe.isContextSwitcherDetailsView(r,n))return r.replace(n,"").split("/")[0].split("?")[0]},getSelectedOption(r,t,n){const s=Qe.getSelectedId(r,t,n);let a;return s&&t&&(a=Qe.getOptionById(t,s)),a},async getSelectedLabel(r,t,n,s,a){const l=Qe.getSelectedId(r,t,n);if(!l)return;const u=Qe.getSelectedOption(r,t,n);return(u?u.label:void 0)||await Qe.getFallbackLabel(s,l,a)},getSelectedNode(r,t,n){if(!Qe.getSelectedId(r,t,n))return;const a=Qe.getSelectedOption(r,t,n);return a?a.link:void 0},async fetchOptions(r,t=[]){const n=r.getConfigValue("navigation.contextSwitcher");if(!n.lazyloadOptions&&t.length)return t;const s=await r.getConfigValueAsync("navigation.contextSwitcher.options");return await Qe.generateSwitcherNav(n,s)}},Mr={logout:{label:"Sign Out",icon:"log"},userSettingsProfileMenuEntry:{label:"Settings",icon:"settings"},userSettingsDialog:{dialogHeader:"User Settings",saveBtn:"Save",dismissBtn:"Cancel"}};class un{constructor(t){this.luigi=t,this.luigi=t,this.unsavedChanges={isDirty:!1,persistUrl:null}}updateDirtyStatus(t,n){if(!this.unsavedChanges.dirtySet||!(this.unsavedChanges.dirtySet instanceof Set)){const s=new Set;s.add(n),this.unsavedChanges={dirtySet:s}}this.unsavedChanges.persistUrl=window.location.href,t?this.unsavedChanges.dirtySet?.add(n):this.unsavedChanges.dirtySet?.delete(n)}clearDirtyState(t){this.unsavedChanges&&this.unsavedChanges.dirtySet&&(t?this.unsavedChanges.dirtySet.delete(t):this.unsavedChanges.dirtySet.clear())}readDirtyStatus(){return this.unsavedChanges.dirtySet?this.unsavedChanges.dirtySet.size>0:!!this.unsavedChanges.isDirty}getUnsavedChangesModalPromise(t){if(!this.shouldShowUnsavedChangesModal(t))return Promise.resolve();const n=this.luigi.getConfigValue("settings.unsavedChangesHandler");if(n)return n().then(()=>this.clearDirtyState(t));const s={header:this.luigi.i18n().getTranslation("luigi.unsavedChangesAlert.header"),body:this.luigi.i18n().getTranslation("luigi.unsavedChangesAlert.body"),buttonDismiss:this.luigi.i18n().getTranslation("luigi.button.dismiss"),buttonConfirm:this.luigi.i18n().getTranslation("luigi.button.confirm")};return new Promise((a,l)=>{this.luigi.getEngine()._connector?.renderConfirmationModal(s,{confirm:()=>{this.clearDirtyState(t),a()},dismiss:()=>{l()}})})}shouldShowUnsavedChangesModal(t){return t?this.unsavedChanges.dirtySet?.has(t)??!1:this.readDirtyStatus()}}class rC{constructor(){this.services=new Map}register(t,n,s=!0){this.services.set(t,{factory:n,singleton:s})}get(t){const n=this.services.get(t);if(!n)throw new Error(`Service '${t}' is not registered.`);return n.singleton?(n.instance||(n.instance=n.factory()),n.instance):n.factory()}}const j=new rC;class fr{constructor(t){this.luigi=t,this._modalStack=[],this.modalSettings={}}async closeModals(){if(this._modalStack.length===0)return;const t=[...this._modalStack];for(const{onInternalClose:n}of t)try{typeof n=="function"&&n()}catch(s){console.warn("onInternalClose threw an error",s)}this.clearModalStack()}registerModal(t){t&&this._modalStack.push(t)}getModalSettings(){return this._modalStack.length>0?this._modalStack[0].modalsettings||{}:{}}getModalStackLength(){return this._modalStack.length}updateFirstModalSettings(t){if(this._modalStack.length>0){const n=this._modalStack[0];n.modalsettings={...n.modalsettings,...t}}}clearModalStack(){this._modalStack=[]}removeLastModalFromStack(){G.modalContainer.pop(),this._modalStack.pop()}async closeModalsWithDirtyCheck(){const t=j.get(un);for(const n of G.modalContainer)if(t.shouldShowUnsavedChangesModal(n))try{await t.getUnsavedChangesModalPromise(n)}catch{return!1}return await this.closeModals(),!0}}class hr{constructor(){this.dataManagement=new Map}setChildren(t,n){this.dataManagement.set(t,n),this.navPath=""}getChildren(t){return t?this.dataManagement.get(t):{}}hasChildren(t){const n=this.getChildren(t);return!!(n&&Object.prototype.hasOwnProperty.call(n,"children"))}setRootNode(t){this.dataManagement.set("_luigiRootNode",{node:t})}getRootNode(){return this.dataManagement.get("_luigiRootNode")}hasRootNode(){return!!this.getRootNode()}deleteCache(){this.dataManagement.clear()}deleteNodesRecursively(t){if(this.hasChildren(t)){const n=this.getChildren(t).children;for(let s=0;s<n.length;s++)this.deleteNodesRecursively(n[s])}this.dataManagement.delete(t)}}class dr{constructor(t){this.luigi=t,this.previousBreadcrumbs={}}getModalService(){return this.modalService||(this.modalService=j.get(fr)),this.modalService}getNodeDataManagementService(){return this.nodeDataManagementService||(this.nodeDataManagementService=j.get(hr)),this.nodeDataManagementService}async getPathData(t){const n=this.luigi.getConfig();let s=t.split("/");s?.length>0&&s[0]===""&&(s=s.slice(1));let l=n.navigation?.globalContext||{},u;if(this.getNodeDataManagementService().hasRootNode())u=this.getNodeDataManagementService().getRootNode().node;else{const w=await this.luigi.getConfigValueAsync("navigation.nodes");typeof w=="object"&&!Array.isArray(w)?(u=w,u.pathSegment&&(u.pathSegment="",console.warn("Root node must have an empty path segment. Provided path segment will be ignored."))):u={children:w},u.children=await this.getChildren(u,l),u.children=this.prepareRootNodes(u.children||[],l),this.getNodeDataManagementService().setRootNode(u)}const f={parentNavigationContexts:[],...l||{},...u.context||{}},h={},g={context:f,selectedNodeChildren:u.children,nodesInPath:[u],rootNodes:u.children,pathParams:h,matchedPath:""};if(u.viewUrl&&s.length===0)g.selectedNode=u;else for(const w of s)if(g.selectedNodeChildren){const m=this.findMatchingNode(w,g.selectedNodeChildren||[]);if(!m){console.warn("No matching node found for segment:",w);break}"_rawContext"in m||(m._rawContext=m.context);const E=m._rawContext??{},C=Oe.mergeContext(l,E,m.navigationContext);let R=C;if(m.pathSegment?.startsWith(":")&&(h[m.pathSegment.replace(":","")]=Ba.sanitizeParam(w),R=D.substituteDynamicParamsInObject(C,h)),l=R,m.context=R,g.selectedNode=m,g.selectedNode&&g.nodesInPath?.push(g.selectedNode),m.virtualTree||m._virtualTree){const I=this.buildVirtualTree(m,w,h);I&&I.length>0&&(m.children=I)}g.selectedNodeChildren=await this.getChildren(m,l)}const _=g.nodesInPath?.filter(w=>w.pathSegment).map(w=>w.pathSegment)||[];return g.matchedPath=s.filter((w,m)=>_[m]&&_[m].startsWith(":")||_[m]===w).join("/")||"",g}findMatchingNode(t,n){let s;const a=n.filter(u=>!!u.pathSegment).length,l=n.filter(u=>u.pathSegment&&u.pathSegment.startsWith(":")).length;if(a>1&&(l===1&&(console.warn(`Invalid node setup detected.
87
+ }</style> <iframe></iframe>`,1),eC=pu("<main><!></main>");function Qd(n,e){ru(e,!1);let r=Z(e,"activeFeatureToggleList"),s=Z(e,"allowRules"),a=Z(e,"anchor"),l=Z(e,"authData"),u=Z(e,"clientPermissions"),f=Z(e,"context"),h=Z(e,"deferInit"),g=Z(e,"dirtyStatus"),_=Z(e,"documentTitle"),w=Z(e,"hasBack"),m=Z(e,"label"),E=Z(e,"locale"),C=Z(e,"noShadow"),R=Z(e,"nodeParams"),I=Z(e,"pathParams"),N=Z(e,"sandboxRules"),F=Z(e,"searchParams"),oe=Z(e,"skipCookieCheck"),de=Z(e,"skipInitCheck"),te=Z(e,"theme"),_e=Z(e,"userSettings"),pe=Z(e,"viewurl"),ge=Z(e,"webcomponent");const we=yi({});let ae=yi(),ut=yi(!1),ct=yi();const jt=new Gd,W=()=>r()&&s()&&a()&&l()&&u()&&g()&&_()&&w()&&E()&&C()&&R()&&I()&&N()&&F()&&oe()&&de()&&te()&&_e(),Gn=O=>{if(!q(ut)){O.sendCustomMessage=(ne,ze)=>{vi.sendCustomMessage(ne,O.getNoShadow()?O:q(ae),!!ge(),q(we),ze)},O.updateContext=(ne,ze)=>{if(f(ne),ge())(O.getNoShadow()?O:q(ae))._luigi_mfe_webcomponent.context=ne;else{const dn={...ze||{},activeFeatureToggleList:O.activeFeatureToggleList||[],currentLocale:O.locale,currentTheme:O.theme,userSettings:O.userSettings||null,cssVariables:O.cssVariables||{},anchor:O.anchor||"",drawer:O.drawer||!1,modal:O.modal||!1,viewStackSize:O.viewStackSize||0,isNavigateBack:O.isNavigateBack||!1};vi.updateContext(ne,dn,q(we),R(),I(),F())}},O.closeAlert=(ne,ze)=>{O.notifyAlertClosed(ne,ze)},O.notifyAlertClosed=(ne,ze)=>{O.isConnected&&(ge()?jt.resolveAlert(ne,ze):vi.notifyAlertClosed(ne,ze,q(we)))},O.notifyConfirmationModalClosed=ne=>{O.isConnected&&(ge()?jt.notifyConfirmationModalClosed(!!ne):vi.notifyConfirmationModalClosed(!!ne,q(we)))},rr.registerContainer(O),jt.thisComponent=O;const Pe=gs.resolveContext(f());if(O.updateViewUrl=(ne,ze)=>{ne?.length&&vi.updateViewUrl(ne,gs.resolveContext(f()),ze,q(we))},ge()&&ge()!="false"){O.getNoShadow()?O.innerHTML="":(ls(ae,q(ae).innerHTML=""),O.attachShadow({mode:"open"}).append(q(ae)));const ne=gs.checkWebcomponentValue(ge());jt.renderWebComponent(pe(),O.getNoShadow()?O:q(ae),Pe,typeof ne=="object"?{webcomponent:ne}:{})}else O.getNoShadow()||(O.innerHTML="",O.attachShadow({mode:"open"}).append(q(ae)));de()?(O.initialized=!0,setTimeout(()=>{jt.dispatchLuigiEvent(k.INITIALIZED,{})})):ge()&&(O.getNoShadow()?O:q(ae)).addEventListener("wc_ready",()=>{(O.getNoShadow()?O:q(ae))._luigi_mfe_webcomponent?.deferLuigiClientWCInit||(O.initialized=!0,jt.dispatchLuigiEvent(k.INITIALIZED,{}))}),_t(ut,!0),O.containerInitialized=!0}};var mr;Ql(async()=>{_t(ct,q(ae).parentNode),ls(ct,q(ct).iframeHandle=q(we)),ls(ct,q(ct).init=()=>{Gn(q(ct))}),!h()&&pe()&&Gn(q(ct))}),mr=async()=>{},Te===null&&Jh("onDestroy"),Ql(()=>()=>Fn(mr)),(function(O,Pe){var ne={effect:null,ran:!1,deps:O};Te.l.$.push(ne),ne.effect=Es(()=>{if(O(),!ne.ran){ne.ran=!0;var ze=ee;try{xt(ze.parent),Fn(Pe)}finally{xt(ze)}}})})(()=>(q(ut),pi(pe()),pi(h()),q(ct)),()=>{!q(ut)&&pe()&&!h()&&q(ct)&&Gn(q(ct))}),(function(){var O=Te;Es(()=>{for(var Pe of O.l.$){Pe.deps();var ne=Pe.effect;(ne.f&He)!==0&&ne.deps!==null&&Ue(ne,En),Hi(ne)&&zr(ne),Pe.ran=!1}})})();var wt={unwarn:W,get activeFeatureToggleList(){return r()},set activeFeatureToggleList(O){r(O),X()},get allowRules(){return s()},set allowRules(O){s(O),X()},get anchor(){return a()},set anchor(O){a(O),X()},get authData(){return l()},set authData(O){l(O),X()},get clientPermissions(){return u()},set clientPermissions(O){u(O),X()},get context(){return f()},set context(O){f(O),X()},get deferInit(){return h()},set deferInit(O){h(O),X()},get dirtyStatus(){return g()},set dirtyStatus(O){g(O),X()},get documentTitle(){return _()},set documentTitle(O){_(O),X()},get hasBack(){return w()},set hasBack(O){w(O),X()},get label(){return m()},set label(O){m(O),X()},get locale(){return E()},set locale(O){E(O),X()},get noShadow(){return C()},set noShadow(O){C(O),X()},get nodeParams(){return R()},set nodeParams(O){R(O),X()},get pathParams(){return I()},set pathParams(O){I(O),X()},get sandboxRules(){return N()},set sandboxRules(O){N(O),X()},get searchParams(){return F()},set searchParams(O){F(O),X()},get skipCookieCheck(){return oe()},set skipCookieCheck(O){oe(O),X()},get skipInitCheck(){return de()},set skipInitCheck(O){de(O),X()},get theme(){return te()},set theme(O){te(O),X()},get userSettings(){return _e()},set userSettings(O){_e(O),X()},get viewurl(){return pe()},set viewurl(O){pe(O),X()},get webcomponent(){return ge()},set webcomponent(O){ge(O),X()}};Hd();var Xe=eC(),St=(function(O,Pe){if(!De)return Oi(O);var ne=Oi(Ce);return ne===null&&(ne=Ce.appendChild(Hr())),wn(ne),ne})(Xe),Jr=O=>{var Pe=(function(){if(De)return Pi(Ce,null),Ce;var dn=document.createDocumentFragment(),Lt=document.createComment(""),yt=Hr();return dn.append(Lt,yt),Pi(Lt,yt),dn})(),ne=ph(Pe),ze=dn=>{var Lt=ZE(),yt=(function(wr,Tn=1,Sr=!1){let Nt=De?Ce:wr;for(var yr;Tn--;)yr=Nt,Nt=Wn(Nt);if(!De)return Nt;if(Sr){if(Nt?.nodeType!==3){var Rn=Hr();return Nt===null?yr?.after(Rn):Nt.before(Rn),wn(Rn),Rn}wd(Nt)}return wn(Nt),Nt})(ph(Lt),2);ql(yt,wr=>ls(we,q(we).iframe=wr),()=>q(we)?.iframe),vh((wr,Tn)=>{Aa(yt,"src",pe()),Aa(yt,"title",m()),Aa(yt,"allow",wr),Aa(yt,"sandbox",Tn)},[()=>(pi(Ph),pi(s()),Fn(()=>Ph(s()))),()=>(pi(N()),Fn(()=>N()?N().join(" "):void 0))]),ds(dn,Lt)};Ch(ne,dn=>{ge()&&ge()!=="false"||dn(ze)}),ds(O,Pe)};return Ch(St,O=>{q(ut)&&O(Jr)}),(function(O){if(De){if(Wn(Ce)!==null)throw Ya(),Ii;Ce=O}})(Xe),ql(Xe,O=>_t(ae,O),()=>q(ae)),vh(()=>QE(Xe,1,GE(ge()?void 0:"lui-isolated"))),ds(n,Xe),Fd(e,"unwarn",W),iu(wt)}Wd(Qd,{activeFeatureToggleList:{attribute:"active-feature-toggle-list",type:"Array"},allowRules:{attribute:"allow-rules",type:"Array"},anchor:{attribute:"anchor",type:"String"},authData:{attribute:"auth-data",type:"Object"},clientPermissions:{attribute:"client-permissions",type:"Object"},context:{attribute:"context",type:"String"},deferInit:{attribute:"defer-init",type:"Boolean"},dirtyStatus:{attribute:"dirty-status",type:"Boolean"},documentTitle:{attribute:"document-title",type:"String"},hasBack:{attribute:"has-back",type:"Boolean"},label:{attribute:"label",type:"String"},locale:{attribute:"locale",type:"String"},noShadow:{attribute:"no-shadow",type:"Boolean"},nodeParams:{attribute:"node-params",type:"Object"},pathParams:{attribute:"path-params",type:"Object"},sandboxRules:{attribute:"sandbox-rules",type:"Array"},searchParams:{attribute:"search-params",type:"Object"},skipCookieCheck:{attribute:"skip-cookie-check",type:"String"},skipInitCheck:{attribute:"skip-init-check",type:"Boolean"},theme:{attribute:"theme",type:"String"},userSettings:{attribute:"user-settings",type:"Object"},viewurl:{attribute:"viewurl",type:"String"},webcomponent:{attribute:"webcomponent",type:"String"}},[],["unwarn"],void 0,n=>{let e=r=>()=>console.warn(r+" can't be called on luigi-container before its micro frontend is attached to the DOM.");return class extends n{sendCustomMessage=e("sendCustomMessage");updateContext=e("updateContext");updateViewUrl=e("updateViewUrl");closeAlert=e("closeAlert");notifyAlertClosed=e("notifyAlertClosed");notifyConfirmationModalClosed=e("notifyConfirmationModalClosed");attributeChangedCallback(r,s,a){try{super.attributeChangedCallback(r,s,a)}catch(l){console.error("Error in super.attributeChangedCallback",l)}this.containerInitialized&&(r==="context"&&this.updateContext(JSON.parse(a)),r==="auth-data"&&vi.updateAuthData(this.iframeHandle,JSON.parse(a)))}getNoShadow(){return this.hasAttribute("no-shadow")||this.noShadow}}});var tC=pu('<main class="svelte-1yfh4yd"></main>');const nC={hash:"svelte-1yfh4yd",code:"main.svelte-1yfh4yd {width:100%;height:100%;border:none;}"};function xh(n,e){ru(e,!1),BE(n,nC);let r,s=Z(e,"activeFeatureToggleList"),a=Z(e,"anchor"),l=Z(e,"clientPermissions"),u=Z(e,"compoundConfig"),f=Z(e,"context"),h=Z(e,"deferInit"),g=Z(e,"dirtyStatus"),_=Z(e,"documentTitle"),w=Z(e,"hasBack"),m=Z(e,"locale"),E=Z(e,"noShadow"),C=Z(e,"nodeParams"),R=Z(e,"pathParams"),I=Z(e,"searchParams"),N=Z(e,"skipInitCheck"),F=Z(e,"theme"),oe=Z(e,"userSettings"),de=Z(e,"viewurl"),te=Z(e,"webcomponent"),_e=!1,pe=yi();const ge=new vu,we=new Gd,ae=()=>s()&&a()&&l()&&g()&&_()&&w()&&m()&&E()&&C()&&R()&&I()&&N()&&F()&&oe(),ut=W=>{if(!u()||_e)return;W.updateContext=(wt,Xe)=>{const St=W.getNoShadow()?W:q(pe);St._luigi_mfe_webcomponent.context=wt,f(wt);const Jr=St._luigi_mfe_webcomponent;Jr&&Jr.querySelectorAll("[lui_web_component]")?.forEach(Pe=>{const ne=Pe.context||{};Pe.context=Object.assign(ne,wt)})};const Gn=gs.resolveContext(f());h(!1),W.notifyAlertClosed=(wt,Xe)=>{W.isConnected&&we.resolveAlert(wt,Xe)},W.notifyConfirmationModalClosed=wt=>{W.isConnected&&we.notifyConfirmationModalClosed(!!wt)};const mr={compound:u(),viewUrl:de(),webcomponent:gs.checkWebcomponentValue(te())||!0};W.getNoShadow()?W.innerHTML="":(ls(pe,q(pe).innerHTML=""),W.attachShadow({mode:"open"}).append(q(pe))),we.renderWebComponentCompound(mr,W.getNoShadow()?W:q(pe),Gn).then(wt=>{r=wt,N()||!mr.viewUrl?(W.initialized=!0,setTimeout(()=>{we.dispatchLuigiEvent(k.INITIALIZED,{})})):r.LuigiClient&&!r.deferLuigiClientWCInit&&(W.initialized=!0,we.dispatchLuigiEvent(k.INITIALIZED,{}))}),_e=!0,W.containerInitialized=!0};Ql(async()=>{const W=q(pe).getRootNode()===document?q(pe).parentNode:q(pe).getRootNode().host;W.init=()=>{ut(W)},h()||ut(W),ge.registerContainer(W),we.thisComponent=W});var ct={unwarn:ae,get activeFeatureToggleList(){return s()},set activeFeatureToggleList(W){s(W),X()},get anchor(){return a()},set anchor(W){a(W),X()},get clientPermissions(){return l()},set clientPermissions(W){l(W),X()},get compoundConfig(){return u()},set compoundConfig(W){u(W),X()},get context(){return f()},set context(W){f(W),X()},get deferInit(){return h()},set deferInit(W){h(W),X()},get dirtyStatus(){return g()},set dirtyStatus(W){g(W),X()},get documentTitle(){return _()},set documentTitle(W){_(W),X()},get hasBack(){return w()},set hasBack(W){w(W),X()},get locale(){return m()},set locale(W){m(W),X()},get noShadow(){return E()},set noShadow(W){E(W),X()},get nodeParams(){return C()},set nodeParams(W){C(W),X()},get pathParams(){return R()},set pathParams(W){R(W),X()},get searchParams(){return I()},set searchParams(W){I(W),X()},get skipInitCheck(){return N()},set skipInitCheck(W){N(W),X()},get theme(){return F()},set theme(W){F(W),X()},get userSettings(){return oe()},set userSettings(W){oe(W),X()},get viewurl(){return de()},set viewurl(W){de(W),X()},get webcomponent(){return te()},set webcomponent(W){te(W),X()}};Hd();var jt=tC();return ql(jt,W=>_t(pe,W),()=>q(pe)),ds(n,jt),Fd(e,"unwarn",ae),iu(ct)}Wd(xh,{activeFeatureToggleList:{attribute:"active-feature-toggle-list",type:"Array"},anchor:{attribute:"anchor",type:"String"},clientPermissions:{attribute:"client-permissions",type:"Object"},compoundConfig:{attribute:"compound-config",type:"Object"},context:{attribute:"context",type:"String"},deferInit:{attribute:"defer-init",type:"Boolean"},dirtyStatus:{attribute:"dirty-status",type:"Boolean"},documentTitle:{attribute:"document-title",type:"String"},hasBack:{attribute:"has-back",type:"Boolean"},locale:{attribute:"locale",type:"String"},noShadow:{attribute:"no-shadow",type:"Boolean"},nodeParams:{attribute:"node-params",type:"Object"},pathParams:{attribute:"path-params",type:"Object"},searchParams:{attribute:"search-params",type:"Object"},skipInitCheck:{attribute:"skip-init-check",type:"Boolean"},theme:{attribute:"theme",type:"String"},userSettings:{attribute:"user-settings",type:"Object"},viewurl:{attribute:"viewurl",type:"String"},webcomponent:{attribute:"webcomponent",type:"String"}},[],["unwarn"],void 0,n=>{let e=r=>()=>console.warn(r+" can't be called on luigi-container before its micro frontend is attached to the DOM.");return class extends n{updateContext=e("updateContext");notifyAlertClosed=e("notifyAlertClosed");notifyConfirmationModalClosed=e("notifyConfirmationModalClosed");attributeChangedCallback(r,s,a){try{super.attributeChangedCallback(r,s,a)}catch(l){console.warn("Error in attributeChangedCallback",l)}this.containerInitialized&&r==="context"&&this.updateContext(JSON.parse(a))}getNoShadow(){return this.hasAttribute("no-shadow")||this.noShadow}}}),customElements.get("luigi-container")||customElements.define("luigi-container",Qd.element),customElements.get("luigi-compound-container")||customElements.define("luigi-compound-container",xh.element);const Ba={sanitizeHtml(n=""){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/javascript:/gi,"").replace(/data:/gi,"").replace(/vbscript:/gi,"")},restoreSanitizedBrs(n=""){return n.replace(/&lt;br\/&gt;/g,"<br>").replace(/&lt;br \/&gt;/g,"<br>").replace(/&lt;br&gt;/g,"<br>").replace(/&lt;br &gt;/g,"<br>")},restoreSanitizedElements(n=""){let e=n;const r=["i","b","br","mark","strong","em","small","del","ins","sub","sup"];for(let s=0;s<r.length;s++){const a=new RegExp(`&lt;${r[s]}/&gt;`,"g"),l=new RegExp(`&lt;${r[s]} /&gt;`,"g"),u=new RegExp(`&lt;${r[s]}&gt;`,"g"),f=new RegExp(`&lt;${r[s]} &gt;`,"g"),h=new RegExp(`&lt;/${r[s]}[/]&gt;`,"g"),g=new RegExp(`&lt;/${r[s]} [/]&gt;`,"g"),_=new RegExp(`&lt;[/]${r[s]}&gt;`,"g"),w=new RegExp(`&lt;[/]${r[s]} &gt;`,"g");e=e.replace(a,`<${r[s]}>`).replace(l,`<${r[s]}>`).replace(u,`<${r[s]}>`).replace(f,`<${r[s]}>`).replace(h,`</${r[s]}>`).replace(g,`</${r[s]}>`).replace(_,`</${r[s]}>`).replace(w,`</${r[s]}>`)}return e},sanatizeHtmlExceptTextFormatting(n=""){return this.restoreSanitizedElements(this.sanitizeHtml(n))},sanitizeParam(n=""){return String(n).replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/\//g,"&sol;")},escapeKeyForRegexp(n=""){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},processTextAndLinks(n="",e,r){const a={sanitizedText:this.restoreSanitizedBrs(this.sanitizeHtml(n)),links:[]};return e?Object.entries(e).reduce((l,[u,f])=>{const h=`_luigi_alert_${r}_link_${this.sanitizeParam(u)}`,g=this.restoreSanitizedBrs(this.sanitizeHtml(f.text)),_=`<a id="${h}">${g}</a>`,w=this.escapeKeyForRegexp(u),m=new RegExp(`({${w}})`,"g");return{sanitizedText:l.sanitizedText.replace(m,_),links:l.links.concat({elemId:h,url:f.url?encodeURI(this.sanitizeHtml(f.url)):void 0,dismissKey:f.dismissKey?encodeURI(this.sanitizeHtml(f.dismissKey)):void 0})}},a):a}},Oe={normalizePath:n=>{if(!n||n.length<=0)return n;let e=n;return e.startsWith("#")&&(e=e.substring(1)),e.startsWith("/")&&(e=e.substring(1)),e},segmentMatches:(n,e,r)=>!!(n===e||e.startsWith(":")&&r&&r[e.substr(1)]===n),checkMatch:(n,e,r)=>{let s=!0;return M.trimTrailingSlash(M.trimLeadingSlash(n)).split("/").forEach((a,l)=>{s&&(l+1>=e.length||!e[l+1]?.pathSegment||!Oe.segmentMatches(a,e[l+1]?.pathSegment??"",r??{}))&&(s=!1)}),s},checkVisibleForFeatureToggles:(n,e)=>{if(n?.visibleForFeatureToggles){const r=e?.getActiveFeatureToggleList()||[];for(const s of n.visibleForFeatureToggles)if(s.startsWith("!")){if(r.includes(s.slice(1)))return!1}else if(!r.includes(s))return!1}return!0},generateTooltipText:(n,e,r)=>{let s=n?.tooltipText;switch(s===void 0&&(s=r.getConfigValue("navigation.defaults.tooltipText")),s){case void 0:return e;case!1:return"";default:return r.i18n().getTranslation(s)}},isNodeAccessPermitted:(n,e,r,s)=>{if(s.auth().isAuthorizationEnabled()){const u=ir.isLoggedIn(),f=n.anonymousAccess;if(u&&f==="exclusive"||!u&&f!=="exclusive"&&f!==!0)return!1}const a=s.featureToggles();if(!Oe.checkVisibleForFeatureToggles(n,a))return!1;const l=s.getConfigValue("navigation.nodeAccessibilityResolver");return typeof l!="function"?!0:l(n,e,r)},updateHeaderTitle:(n,e)=>{const r=n?.items;if(r&&e){let s="";return[...r].sort((a,l)=>(l.link||"").localeCompare(a.link||"")).some(a=>{let l=!1;if(l=Oe.checkMatch(a.link||"",e.nodesInPath??[]),!l&&a.selectionConditions&&a.selectionConditions.route&&(l=Oe.checkMatch(a.selectionConditions.route,e.nodesInPath??[]),l&&(a.selectionConditions.contextCriteria||[]).forEach(u=>{l=l&&e?.selectedNode?.context?.[u.key]===u.value})),l)return s=a.title||"",!0}),s}},buildPath(n,e){return n.map(s=>{const a=s.pathSegment;if(a?.startsWith(":")){const l=a.slice(1),u=e?.pathParams?.[l];if(u!=null)return encodeURIComponent(String(u))}return a}).join("/")},mergeContext(n,e,r){const s=[...n.parentNavigationContexts||[]];return r&&s.unshift(r),{...n,...e||{},parentNavigationContexts:s}},prepareForTests(...n){let e="";return n.forEach(r=>{r&&(e+=(e?"_":"")+encodeURIComponent(r.toLowerCase().split(" ").join("")))}),e},findVirtualTreeRootNode(n){if(n.virtualTree)return n;if(n.parent)return Oe.findVirtualTreeRootNode(n.parent)},validatePathAndGetRedirect:async(n,e)=>{const r=await D.pathExists(n,e);return await D.handlePageNotFoundAndRetrieveRedirectPath(n,r,e)||void 0},async fetchNodeTitleData(n,e){return new Promise((r,s)=>{if(!n.titleResolver){s(new Error("No title resolver defined at node"));return}const a={...n.titleResolver};delete a._cache;const l=this.substituteVars(a,e),u=JSON.stringify(l);if(n.titleResolver._cache&&n.titleResolver._cache.key===u){r(n.titleResolver._cache.value);return}const f=l.request;this._fetch(f.url,{method:f.method,headers:f.headers,body:JSON.stringify(f.body)}).then(h=>{h.json().then(g=>{try{const _=this.processTitleData(g,l);n.titleResolver._cache={key:u,value:_},r(_)}catch(_){s(_)}})}).catch(h=>{s(h)})})},getPropertyChainValue(n,e,r){return!e||!n?r:Ul.get(n,e,r)},substituteVars(n,e){const s=JSON.stringify(n).replace(/\$\{[a-zA-Z0-9$_.]+\}/g,a=>{const l=a.substr(2,a.length-3);return this.getPropertyChainValue(e,l)||a});return JSON.parse(s)},_fetch(n,e){return fetch(n,e)},processTitleData(n,e){let r=this.getPropertyChainValue(n,e.titlePropertyChain);return r&&(r=r.trim()),r&&e.titleDecorator&&(r=e.titleDecorator.replace("%s",r)),{label:r||e.fallbackTitle,icon:this.getPropertyChainValue(n,e.iconPropertyChain,e.fallbackIcon)}},openExternalLink(n,e){let r=n.url;if(e&&(r=M.replaceVars(r,e,":",!1)),n.sameWindow)window.location.href=r;else{const s=window.open(r,"_blank","noopener noreferrer");s&&(s.opener=null,s.focus())}}},D={defaultContentViewParamPrefix:"~",defaultQueryParamSeparator:"?",defaultModalViewParamName:"modal",addParamsOnHashRouting(n,e,r){let s=e;const[a,l]=s.split("?"),u=new URLSearchParams(l);return this.modifySearchParams(n,u,r),s=a,u.toString()!==""&&(s+=`?${u.toString()}`),s},modifySearchParams(n,e,r){for(const[s,a]of Object.entries(n)){const l=r?`${r}${s}`:s;e.set(l,a),a===void 0&&e.delete(l)}},filterNodeParams(n,e){const r=Object.create(null),s=this.getContentViewParamPrefix(e);return n&&Object.entries(n).forEach(a=>{if(a[0].startsWith(s)){const l=a[0].substr(s.length);r[l]=a[1]}}),this.sanitizeParamsMap(r)},mapPathToNode(n,e){if(!n||!e)return;const r=M.trimLeadingSlash(n).split("/"),s=D.buildRoute(e,`/${e.pathSegment}`),a=M.trimLeadingSlash(s).split("/");if(r.length<a.length)return;let l="";for(let u=0;u<a.length;u++){if(r[u]!==a[u]&&a[u].indexOf(":")!==0)return;l+="/"+r[u]}return l},async getNodeLabel(n,e){if(n.label&&!n._virtualTree)return e.i18n().getTranslation(n.label)||n.label;if(n.pathSegment&&n.pathSegment.indexOf(":")===0){const r=e.getConfig().routing?.useHashRouting,s=D.mapPathToNode(D.getCurrentPath(e,r)?.path,n)||"",a=await e.navigation().navService.extractDataFromPath(s);return D.getDynamicNodeValue(n,a.pathData.pathParams)||""}return n.pathSegment?n.pathSegment:""},getContentViewParamPrefix(n){let e=n?.getConfigValue("routing.nodeParamPrefix");return e===!1?e="":e||(e=this.defaultContentViewParamPrefix),e},sanitizeParamsMap(n){return Object.entries(n).reduce((e,r)=>(e[Ba.sanitizeParam(r[0])]=Ba.sanitizeParam(r[1]),e),{})},prepareSearchParamsForClient(n,e){const r={};return n&&n.clientPermissions&&n.clientPermissions.urlParameters&&Object.keys(n.clientPermissions.urlParameters).forEach(s=>{s in e.routing().getSearchParams()&&n.clientPermissions?.urlParameters&&n.clientPermissions.urlParameters[s]?.read===!0&&(r[s]=e.routing().getSearchParams()[s])}),r},hasIntent(n){return!!n&&n.toLowerCase().includes("#?intent=")},getIntentObject(n){const e=n.split("?intent=")[1];if(e){const r=e.split("?"),s=r[0].split("-"),a=Object.fromEntries(new URLSearchParams(r[1]).entries());return{semanticObject:s[0],action:s[1],params:a}}},getIntentPath(n,e){const r=e.getConfigValue("navigation.intentMapping");if(r&&r.length>0){const s=n.replace(/\?intent=/i,"?intent="),a=this.getIntentObject(s);if(a){let l=r.find(f=>f.semanticObject===a.semanticObject&&f.action===a.action);if(!l)return!1;if(l.externalLink)return{...l.externalLink,external:!0};l=l.pathSegment;const u=Object.entries(a.params);if(u&&u.length>0){l=this.resolveDynamicIntentPath(l,a.params);let f=e.getConfigValue("routing.nodeParamPrefix");f=f||"~",l=l.concat(`?${f}`),u.forEach(([h,g],_)=>{l+=`${_>0?"&"+f:""}${h}=${g}`})}return l}else console.warn("Could not parse given intent link.")}else console.warn("No intent mappings are defined in Luigi configuration.");return!1},resolveDynamicIntentPath(n,e){if(!e)return n;let r=n;for(const[s,a]of Object.entries(e)){const l=new RegExp("/:"+s+"(/|$)","g");r=r.replace(l,`/${a}/`)}return r=r.replace(/\/$/,""),r},getCurrentPath(n,e,r){if(r&&/\?intent=/i.test(location.hash)){const s=location.hash.replace("#/#","").replace("#",""),a=D.getIntentPath(s,n);if(a){if(typeof a=="string")return n?.getConfigValue("routing.replaceIntentRoute")&&history.replaceState(window.state,"",a),{path:a,query:location.search};if(M.isObject(a))return D.handleExternalIntentPath(a),{path:e?location.hash:location.pathname,query:""}}}if(e){const s=Oe.normalizePath(location.hash),[a,l]=s.split("?");return{path:a.replace("#",""),query:l}}else return{path:Oe.normalizePath(location.pathname),query:location.search}},handleExternalIntentPath(n){if(n.external&&n.url){const e=n.openInNewTab?"_blank":"_self";window.open(n.url,e,"noopener,noreferrer")?.focus()}},getModalPathFromPath(n){return this.getQueryParam(this.getModalViewParamName(n),n)},getQueryParam(n,e){return this.getQueryParams(e)[n]},getQueryParams(n){return n.getConfigValue("routing.useHashRouting")?this.getLocationHashQueryParams():this.getLocationSearchQueryParams()},getLocationSearchQueryParams(){return D.getLocation().search?D.parseParams(D.getLocation().search.slice(1)):{}},getLocation(){return location},getLocationHashQueryParams(){const n=D.getLocation().hash.indexOf(this.defaultQueryParamSeparator);return n!==-1?D.parseParams(D.getLocation().hash.slice(n+1)):{}},getModalViewParamName(n){let e=n.getConfigValue("routing.modalPathParam");return e||(e=this.defaultModalViewParamName),e},parseParams(n){const e=new URLSearchParams(n),r=new Map;for(const[s,a]of e.entries())r.set(s,a);return Object.fromEntries(r)},getModalParamsFromPath(n){const e=this.getQueryParam(`${this.getModalViewParamName(n)}Params`,n);return e&&JSON.parse(e)},getHashQueryParamSeparator(){return this.defaultQueryParamSeparator},getURLWithoutModalData(n,e){const r=new URLSearchParams(n);return r.delete(e),r.delete(`${e}Params`),r.toString()},handleHistoryState(n,e){return n&&n.modalHistoryLength?n.modalHistoryLength+=1:n={modalHistoryLength:1,historygap:history.length,pathBeforeHistory:e},n},encodeParams(n){const e=[];for(const r in n)e.push(encodeURIComponent(r)+"="+encodeURIComponent(n[r]));return e.join("&")},getLastNodeObject(n){return(n.nodesInPath?[...n.nodesInPath].pop():{})||{}},checkWCUrl(n,e){if(n.indexOf("://")>0||n.trim().indexOf("//")===0){if(new URL(n).host===window.location.host)return!0;const s=e.getConfigValue("navigation.validWebcomponentUrls");if(s?.length>0)for(const a of s)try{if(new RegExp(a).test(n))return!0}catch(l){console.error(l)}return!1}return!0},setFeatureToggles(n,e,r){const s=this.sanitizeParamsMap(this.parseParams(e.split("?")[1]));let a;if(s[n]&&(a=s[n]),!a)return;const l=a.split(",");l.length>0&&l[0]!==""&&l.forEach(u=>r?.setFeatureToggle(u,!0))},substituteDynamicParamsInObject(n,e,r=":",s=!1){return Object.entries(n).map(([a,l])=>{const u=s?Object.keys(e).find(f=>l&&l.indexOf(r+f)>=0):Object.keys(e).find(f=>l===r+f);return[a,u?s?l.replace(r+u,e[u]):e[u]:l]}).reduce((a,[l,u])=>Object.assign(a,{[l]:u}),{})},isDynamicNode(n){return typeof n.pathSegment=="string"&&n.pathSegment.length>0&&n.pathSegment[0]===":"},getDynamicNodeValue(n,e){return this.isDynamicNode(n)&&n.pathSegment?e[n.pathSegment.substring(1)]:void 0},isExistingRoute(n,e){const r=n?.split("/")||[],s=e?.nodesInPath||[],a=(u,f)=>{let h=null;if(u?.children?.length){const g=u.children.filter(_=>_.pathSegment===f);g?.length&&(h=g[0])}return h};let l=[];if(r.length>1&&s.length===1){let u;r.forEach((f,h)=>{const g=h===0?s[0]:u;u=a(g,f),u?.pathSegment&&l.push(u.pathSegment)})}else l=s.filter(u=>u.pathSegment).map(u=>u.pathSegment||"");return!n||r.length===l.length},async pathExists(n,e){const r=M.getTrimmedUrl(n),s=await e.navigation().navService.getPathData(n),a=D.isExistingRoute(r,s);return s?a:!1},showRouteNotFoundAlert(n,e=!1,r){const s={text:r.i18n().getTranslation(e?"luigi.notExactTargetNode":"luigi.requestedRouteNotFound",{route:n}),type:"error",ttl:1};r.ux().showAlert(s)},getPageNotFoundRedirectResult(n,e=!1,r){const s=r.getConfigValue("routing.pageNotFoundHandler");if(typeof s=="function"){const a=s(n,e);if(a&&(a.redirectTo||a.ignoreLuigiErrorHandling))return{path:a.redirectTo,keepURL:a.keepURL,ignoreLuigiErrorHandling:a.ignoreLuigiErrorHandling}}return{}},async handlePageNotFoundAndRetrieveRedirectPath(n,e,r){if(e)return n;const s=r.getConfigValue("routing.pageNotFoundHandler"),a=this.getPageNotFoundRedirectResult(n,s,r)?.path;if(a!==void 0)return a;this.showRouteNotFoundAlert(n,!1,r),console.warn(`Could not find the requested route: ${n}`)},async getDefaultChildNode(n,e){if(!n)return"";const r=n.nodesInPath&&n.nodesInPath[n.nodesInPath.length-1],s=n.context,a=e?await e(r,s):await $r.getConfigValueFromObjectAsync(r,"children",s),l=a.find(u=>u.pathSegment===r.defaultChildNode);if(r.defaultChildNode&&l)return r.defaultChildNode;if(a&&a.length){if(n?.nodesInPath?.length===1){const h=a.find(g=>g.pathSegment);return h&&h.pathSegment||console.error("At least one navigation node in the root hierarchy must have a pathSegment.")}const f=a.find(h=>h.pathSegment&&(h.viewUrl||h.compound||h.externalLink&&h.externalLink.url));if(f)return f.pathSegment}return""},getNodePath(n,e){return!n||e?n?this.buildRoute(n,n.pathSegment?"/"+n.pathSegment:"",e):"":`${n.parent?this.getNodePath(n.parent):""}/${n.pathSegment}`},buildRoute(n,e,r){return n.parent?this.buildRoute(n.parent,`/${n.parent.pathSegment}${e}`,r):e+(r?"?"+r:"")},substituteViewUrl(n,e,r,s){if(!n.viewUrl)return"";let a=n.viewUrl;const l="context.",u="nodeParams.",f="routing.queryParams";if(n.virtualTree&&(a=a.replace("{virtualTreePath}","")),a=M.replaceVars(a,e,":",!1),n.context&&(a=M.replaceVars(a,n.context,l)),a=M.replaceVars(a,r,u),a=this.getI18nViewUrl(a,s),a&&a.includes(f)){const h=a.split("?")[1];if(h){const g=h.split("=")[0],_=s.routing().getSearchParams();_[g]?a=a.replace(`{${f}.${g}}`,_[g]):a=a.replace(`?${g}={${f}.${g}}`,"")}}return a},getI18nViewUrl(n,e){const r="{i18n.currentLocale}",s=e.i18n().getCurrentLocale();return n&&n.includes(r)?n.replace(r,s):n},getSubPath(n,e){return M.replaceVars(D.getNodePath(n),e,":",!1)},concatenatePath(n,e){let r=M.getPathWithoutHashOrSlash(n);return r?(!e||typeof e!="string"||(r.endsWith("/")&&(r=r.substring(0,r.length-1)),e.startsWith("/")||(r+="/"),r+=e),r):e},getRouteLink(n,e,r){const s=r||"";if(n.externalLink&&n.externalLink.url)return n.externalLink.url;if(n.link)return s+n.link;const a=D.buildRoute(n,`/${n.pathSegment}`);return s+M.replaceVars(a,e,":",!1,!0)},calculateNodeHref(n,e,r){const a=r.getConfigValue("routing.useHashRouting")?"#":"",l=D.getRouteLink(n,e,a);return D.getI18nViewUrl(l,r)||l},getNodeHref(n,e,r){if(M.getConfigBooleanValue(r.getConfig(),"navigation.addNavHrefs"))return D.calculateNodeHref(n,e,r)}},Qe={_fallbackLabels:new Map,resetFallbackLabelCache(){Qe._fallbackLabels.clear()},getPreparedParentNodePath(n){return(!n.parentNodePath||!n.parentNodePath.startsWith("/"))&&console.error("Luigi Config Error: navigation.contextSwitcher.parentNodePath must be defined as an absolute path."),n.parentNodePath?M.addTrailingSlash(n.parentNodePath):n.parentNodePath},generateSwitcherNav(n,e){const r=Qe.getPreparedParentNodePath(n);return e.map(s=>({label:s.label,link:(r||"/")+s.pathValue,id:s.pathValue,testId:s.testId,customRendererCategory:s.customRendererCategory}))},getNodePathFromCurrentPath(n,e,r){const s=r.getConfig().routing?.useHashRouting,a=M.addLeadingSlash(D.getCurrentPath(r,s)?.path),l=M.addLeadingSlash(e.link);return a.startsWith(l)?n.link+M.addLeadingSlash(a.substring(l.length)):n.link},getOptionById(n,e){return n.find(r=>r.id===e)},getLabelFromOptions(n,e){const r=n.find(s=>s.id===e);return r&&r.label},isContextSwitcherDetailsView(n,e){const r=M.normalizePath(n),s=M.normalizePath(e);return!!(e&&r&&typeof r=="string"&&r.startsWith(s)&&r!==s)},async getFallbackLabel(n,e,r){if(!n)return e;const s=M.getConfigBooleanValue(r.getConfig(),"navigation.contextSwitcher.useFallbackLabelCache"),a=Qe._fallbackLabels;if(s&&a.has(e))return a.get(e);const l=await n(e);return s&&a.set(e,l),l},getSelectedId(n,e,r){if(n=M.normalizePath(n),r=M.normalizePath(r),!!Qe.isContextSwitcherDetailsView(n,r))return n.replace(r,"").split("/")[0].split("?")[0]},getSelectedOption(n,e,r){const s=Qe.getSelectedId(n,e,r);let a;return s&&e&&(a=Qe.getOptionById(e,s)),a},async getSelectedLabel(n,e,r,s,a){const l=Qe.getSelectedId(n,e,r);if(!l)return;const u=Qe.getSelectedOption(n,e,r);return(u?u.label:void 0)||await Qe.getFallbackLabel(s,l,a)},getSelectedNode(n,e,r){if(!Qe.getSelectedId(n,e,r))return;const a=Qe.getSelectedOption(n,e,r);return a?a.link:void 0},async fetchOptions(n,e=[]){const r=n.getConfigValue("navigation.contextSwitcher");if(!r.lazyloadOptions&&e.length)return e;const s=await n.getConfigValueAsync("navigation.contextSwitcher.options");return await Qe.generateSwitcherNav(r,s)}},Mr={logout:{label:"Sign Out",icon:"log"},userSettingsProfileMenuEntry:{label:"Settings",icon:"settings"},userSettingsDialog:{dialogHeader:"User Settings",saveBtn:"Save",dismissBtn:"Cancel"}};class un{constructor(e){this.luigi=e,this.luigi=e,this.unsavedChanges={isDirty:!1,persistUrl:null}}luigi;unsavedChanges;updateDirtyStatus(e,r){if(!this.unsavedChanges.dirtySet||!(this.unsavedChanges.dirtySet instanceof Set)){const s=new Set;s.add(r),this.unsavedChanges={dirtySet:s}}this.unsavedChanges.persistUrl=window.location.href,e?this.unsavedChanges.dirtySet?.add(r):this.unsavedChanges.dirtySet?.delete(r)}clearDirtyState(e){this.unsavedChanges&&this.unsavedChanges.dirtySet&&(e?this.unsavedChanges.dirtySet.delete(e):this.unsavedChanges.dirtySet.clear())}readDirtyStatus(){return this.unsavedChanges.dirtySet?this.unsavedChanges.dirtySet.size>0:!!this.unsavedChanges.isDirty}getUnsavedChangesModalPromise(e){if(!this.shouldShowUnsavedChangesModal(e))return Promise.resolve();const r=this.luigi.getConfigValue("settings.unsavedChangesHandler");if(r)return r().then(()=>this.clearDirtyState(e));const s={header:this.luigi.i18n().getTranslation("luigi.unsavedChangesAlert.header"),body:this.luigi.i18n().getTranslation("luigi.unsavedChangesAlert.body"),buttonDismiss:this.luigi.i18n().getTranslation("luigi.button.dismiss"),buttonConfirm:this.luigi.i18n().getTranslation("luigi.button.confirm")};return new Promise((a,l)=>{this.luigi.getEngine()._connector?.renderConfirmationModal(s,{confirm:()=>{this.clearDirtyState(e),a()},dismiss:()=>{l()}})})}shouldShowUnsavedChangesModal(e){return e?this.unsavedChanges.dirtySet?.has(e)??!1:this.readDirtyStatus()}}class rC{services=new Map;register(e,r,s=!0){this.services.set(e,{factory:r,singleton:s})}get(e){const r=this.services.get(e);if(!r)throw new Error(`Service '${e}' is not registered.`);return r.singleton?(r.instance||(r.instance=r.factory()),r.instance):r.factory()}}const j=new rC;class fr{constructor(e){this.luigi=e}luigi;_modalStack=[];modalSettings={};async closeModals(){if(this._modalStack.length===0)return;const e=[...this._modalStack];for(const{onInternalClose:r}of e)try{typeof r=="function"&&r()}catch(s){console.warn("onInternalClose threw an error",s)}this.clearModalStack()}registerModal(e){e&&this._modalStack.push(e)}getModalSettings(){return this._modalStack.length>0?this._modalStack[0].modalsettings||{}:{}}getModalStackLength(){return this._modalStack.length}updateFirstModalSettings(e){if(this._modalStack.length>0){const r=this._modalStack[0];r.modalsettings={...r.modalsettings,...e}}}clearModalStack(){this._modalStack=[]}removeLastModalFromStack(){G.modalContainer.pop(),this._modalStack.pop()}async closeModalsWithDirtyCheck(){const e=j.get(un);for(const r of G.modalContainer)if(e.shouldShowUnsavedChangesModal(r))try{await e.getUnsavedChangesModalPromise(r)}catch{return!1}return await this.closeModals(),!0}}class hr{dataManagement;navPath;constructor(){this.dataManagement=new Map}setChildren(e,r){this.dataManagement.set(e,r),this.navPath=""}getChildren(e){return e?this.dataManagement.get(e):{}}hasChildren(e){const r=this.getChildren(e);return!!(r&&Object.prototype.hasOwnProperty.call(r,"children"))}setRootNode(e){this.dataManagement.set("_luigiRootNode",{node:e})}getRootNode(){return this.dataManagement.get("_luigiRootNode")}hasRootNode(){return!!this.getRootNode()}deleteCache(){this.dataManagement.clear()}deleteNodesRecursively(e){if(this.hasChildren(e)){const r=this.getChildren(e).children;for(let s=0;s<r.length;s++)this.deleteNodesRecursively(r[s])}this.dataManagement.delete(e)}}class dr{constructor(e){this.luigi=e}luigi;modalService;nodeDataManagementService;previousBreadcrumbs={};getModalService(){return this.modalService||(this.modalService=j.get(fr)),this.modalService}getNodeDataManagementService(){return this.nodeDataManagementService||(this.nodeDataManagementService=j.get(hr)),this.nodeDataManagementService}async getPathData(e){const r=this.luigi.getConfig();let s=e.split("/");s?.length>0&&s[0]===""&&(s=s.slice(1));let l=r.navigation?.globalContext||{},u;if(this.getNodeDataManagementService().hasRootNode())u=this.getNodeDataManagementService().getRootNode().node;else{const w=await this.luigi.getConfigValueAsync("navigation.nodes");typeof w=="object"&&!Array.isArray(w)?(u=w,u.pathSegment&&(u.pathSegment="",console.warn("Root node must have an empty path segment. Provided path segment will be ignored."))):u={children:w},u.children=await this.getChildren(u,l),u.children=this.prepareRootNodes(u.children||[],l),this.getNodeDataManagementService().setRootNode(u)}const f={parentNavigationContexts:[],...l||{},...u.context||{}},h={},g={context:f,selectedNodeChildren:u.children,nodesInPath:[u],rootNodes:u.children,pathParams:h,matchedPath:""};if(u.viewUrl&&s.length===0)g.selectedNode=u;else for(const w of s)if(g.selectedNodeChildren){const m=this.findMatchingNode(w,g.selectedNodeChildren||[]);if(!m){console.warn("No matching node found for segment:",w);break}"_rawContext"in m||(m._rawContext=m.context);const E=m._rawContext??{},C=Oe.mergeContext(l,E,m.navigationContext);let R=C;if(m.pathSegment?.startsWith(":")&&(h[m.pathSegment.replace(":","")]=Ba.sanitizeParam(w),R=D.substituteDynamicParamsInObject(C,h)),l=R,m.context=R,g.selectedNode=m,g.selectedNode&&g.nodesInPath?.push(g.selectedNode),m.virtualTree||m._virtualTree){const I=this.buildVirtualTree(m,w,h);I&&I.length>0&&(m.children=I)}g.selectedNodeChildren=await this.getChildren(m,l)}const _=g.nodesInPath?.filter(w=>w.pathSegment).map(w=>w.pathSegment)||[];return g.matchedPath=s.filter((w,m)=>_[m]&&_[m].startsWith(":")||_[m]===w).join("/")||"",g}findMatchingNode(e,r){let s;const a=r.filter(u=>!!u.pathSegment).length,l=r.filter(u=>u.pathSegment&&u.pathSegment.startsWith(":")).length;if(a>1&&(l===1&&(console.warn(`Invalid node setup detected.
88
88
  Static and dynamic nodes cannot be used together on the same level. Static node gets cleaned up.
89
89
  Remove the static node from the configuration to resolve this warning.
90
- Affected pathSegment:`,t,"Children:",n),n=n.filter(u=>u.pathSegment&&u.pathSegment.startsWith(":"))),l>1)){console.error(`Invalid node setup detected.
90
+ Affected pathSegment:`,e,"Children:",r),r=r.filter(u=>u.pathSegment&&u.pathSegment.startsWith(":"))),l>1)){console.error(`Invalid node setup detected.
91
91
  Multiple dynamic nodes are not allowed on the same level. Stopped navigation.
92
- Invalid Children:`,n);return}return n.some(u=>{if(u.pathSegment===t||u.pathSegment&&u.pathSegment.startsWith(":"))return s=u,!0}),s}buildNavItems(t,n,s){const a={},l=[];return t?.forEach(u=>{if(Oe.isNodeAccessPermitted(u,this.getParentNode(s.selectedNode,s),s?.selectedNode?.context||{},this.luigi))if(u.category){const f=u.category.id||u.category.label||u.category,h=this.luigi.i18n().getTranslation(u.category.label||u.category.id||u.category);let g=a[f];g||(g={category:{altText:u.category.altText||"",icon:u.category.icon,id:f,label:h,nodes:[],tooltip:this.resolveTooltipText(u.category,h)}},a[f]=g,l.push(g)),g.category?.nodes?.push({node:u,selected:u===n,label:u.label?this.luigi.i18n().getTranslation(u.label):void 0,tooltip:u.label?this.resolveTooltipText(u,u.label):void 0,altText:u.altText,icon:u.icon,externalLink:u.externalLink,href:u.externalLink?.url||D.getNodeHref(u,s.pathParams,this.luigi)})}else l.push({altText:u.altText,icon:u.icon,label:u.label?this.luigi.i18n().getTranslation(u.label):void 0,tooltip:u.label?this.resolveTooltipText(u,u.label):void 0,node:u,selected:u===n,externalLink:u.externalLink,href:u.externalLink?.url||D.getNodeHref(u,s.pathParams,this.luigi)})}),l}async getCurrentNode(t){const n=await this.getPathData(t);let s=n.selectedNode;if(!s&&n.nodesInPath?.length===1&&(s=n.nodesInPath[0]),!(!s||!Oe.isNodeAccessPermitted(s,this.getParentNode(n.selectedNode,n),n?.selectedNode?.context||{},this.luigi)))return s}async getPathParams(t){return(await this.getPathData(t)).pathParams}getTruncatedChildren(t){let n=!1,s=!1,a=[];return t.slice().reverse().forEach(l=>{(!n||l.tabNav)&&(l.tabNav===!1&&(s=!0),l.keepSelectedForChildren===!1?n=!0:(l.keepSelectedForChildren||l.tabNav&&!s)&&(n=!0,a=[])),a.push(l)}),a.reverse()}applyNavGroups(t){const n={},s=[],l=[];return t.forEach(u=>{if(u.node)l.push(u);else if(u.category){const f=u.category.id;f&&f.indexOf("::")>0?s.push(u):(u.category.isGroup,n[f]=u,l.push(u))}}),s.forEach(u=>{const f=u.category?.id.split("::")[0]||"",h=n[f];h&&h.category&&(h.category.isGroup||(h.category.isGroup=!0),h.category.nodes||(h.category.nodes=[]),h.category.nodes.push(u))}),l.filter(u=>{if(u.category?.isGroup&&u.category?.nodes&&u.category?.nodes.length>0){for(let f=0;f<u.category?.nodes.length;f++){const h=u.category?.nodes[f];if(h.node&&!h.node.hideFromNav&&h.node.label||h.category?.nodes&&h.category.nodes.filter(g=>!g.node?.hideFromNav&&g.node?.label).length>0)return!0}return!1}return!0})}async getLeftNavData(t,n){const s=n??await this.getPathData(t);if(t===""&&s?.nodesInPath?.[0].viewUrl)return{items:[],basePath:"",selectedNode:{},navClick:void 0};let a=[];const l=[];let u="";s.nodesInPath?.forEach(E=>{E.children&&(E.tabNav||(u+="/"+(E.pathSegment||"")),l.push(E))});const f=this.getTruncatedChildren(s.nodesInPath??[]);let h=[...f].pop(),g=s.selectedNode;(h?.keepSelectedForChildren||h?.tabNav)&&(g=h,f.pop(),h=[...f].pop());let _,w=g;g?s.rootNodes.includes(g)?(_=g,w=void 0):g.tabNav||g.keepSelectedForChildren?_=h:_=[...l].pop():(_=[...l].pop(),w=void 0);let m=await this.getChildren(_,_?.context||{})||[];return a=this.buildNavItems(m,w,s),a=this.applyNavGroups(a),{selectedNode:g||{},items:a,basePath:u.replace(/\/\/+/g,"/"),sideNavFooterText:this.luigi.getConfig().settings?.sideNavFooterText,navClick:E=>E.node?this.navItemClick(E.node,s):Promise.resolve()}}async navItemClick(t,n){if(await j.get(un).getUnsavedChangesModalPromise(),t.externalLink?.url){Oe.openExternalLink(t.externalLink,n?.pathParams);return}let a=D.getNodePath(t),l=n?.pathParams;if(a=M.replaceVars(a,l||{},":",!1),!a&&a!==""){console.error("Navigation error: could not build path for the node. Check if pathSegment is defined for all nodes in the path and if there are no duplicate pathSegments on the same level.");return}return this.luigi.navigation().navigate(a)}async getTopNavData(t,n){const s=this.luigi.getConfig(),a=n??await this.getPathData(t),l=s.navigation?.profile?.items?.length?JSON.parse(JSON.stringify(s.navigation.profile.items)):[],u=s.navigation?.appSwitcher&&this.getAppSwitcherData(s.navigation?.appSwitcher,s.settings?.header),f=Oe.updateHeaderTitle(u,a);l?.length&&l.forEach(N=>{N.label=this.luigi.i18n().getTranslation(N.label||""),N.children?.length&&N.children.forEach(F=>{F.label=this.luigi.i18n().getTranslation(F.label||"")})});const h=this.luigi.i18n().getTranslation(s.navigation?.profile?.logout?.label)||Mr.logout.label,g=N=>{N.openNodeInModal&&!N.externalLink?.url?this.luigi.navigation().openAsModal(N.link||"",N.openNodeInModal===!0?{}:N.openNodeInModal):N.link?this.luigi.navigation().navigate(N.link):N.externalLink?.url&&Oe.openExternalLink(N.externalLink)},_=s.userSettings;let w={};_&&(w={...Mr.userSettingsProfileMenuEntry,...s.userSettings?.userSettingsProfileMenuEntry});const m={authEnabled:this.luigi.auth().isAuthorizationEnabled(),signedIn:this.luigi.auth().isAuthorizationEnabled()&&ir.isLoggedIn(),items:l,itemClick:g,logout:{altText:this.luigi.i18n().getTranslation(s.navigation?.profile?.logout?.altText)||Mr.logout.label,label:h,icon:s.navigation?.profile?.logout?.icon||Mr.logout.icon,testId:s.navigation?.profile?.logout?.testId||Oe.prepareForTests(h),doLogout:()=>{ar.logout()}},settings:{...w,openUserSettings:()=>{this.luigi.ux().openUserSettings()}},onUserInfoUpdate:N=>{this.luigi.getConfigValueAsync("navigation.profile.staticUserInfoFn").then(F=>{F?N(F):ar.getUserInfoStore().subscribe(J=>{N(J)})})}},E=a.selectedNode,C=E&&a.rootNodes.includes(E)?E:void 0,R=await this.buildContextSwitcher(),I={...s.navigation?.productSwitcher,productSwitcherItemClick:N=>{N.externalLink?.url?Oe.openExternalLink(N.externalLink):N.link&&this.luigi.navigation().navigate(N.link)}};return{appTitle:f||s.settings?.header?.title,logo:s.settings?.header?.logo,topNodes:this.buildNavItems(a.rootNodes,C,a),contextSwitcher:R,productSwitcher:I,profile:this.luigi.auth().isAuthorizationEnabled()||s.navigation?.profile?m:void 0,appSwitcher:s.navigation?.appSwitcher&&this.getAppSwitcherData(s.navigation?.appSwitcher,s.settings?.header),navClick:N=>N.node?this.navItemClick(N.node,a):Promise.resolve()}}getParentNode(t,n){if(t&&t===n.nodesInPath?.[n.nodesInPath.length-1])return n.nodesInPath[n.nodesInPath.length-2]}getAppSwitcherData(t,n){const s=t,a=s?.showMainAppEntry;if(s&&s.items&&a){const l={title:this.luigi.i18n().getTranslation(n.title||""),subTitle:n.subTitle,link:"/"};if(s.items?.map(u=>({...u,title:this.luigi.i18n().getTranslation(u.title||"")})),s.items.some(u=>u.link===l.link))return s;s.items.unshift(l)}return s}async getTabNavData(t,n){const s=n??await this.getPathData(t);if(t===""&&s?.nodesInPath?.[0].viewUrl)return{};const a=s?.selectedNode;let l;if(!a)return{};if(!a.tabNav&&(l=this.getParentNode(a,s),l&&!l.tabNav))return{};let u="";s.nodesInPath?.forEach(g=>{g.children&&(u+="/"+(g.pathSegment||""))});const f=l?this.getTruncatedChildren(l.children??[]):this.getTruncatedChildren(a.children??[]),h=this.buildNavItems(f,a,s);return{selectedNode:a,items:h,basePath:u.replace(/\/\/+/g,"/"),navClick:g=>g.node?this.navItemClick(g.node,s):Promise.resolve()}}async getBreadcrumbData(t,n,s){const a=this.luigi.getConfigValue("navigation.breadcrumbs"),l=n??await this.getPathData(t),u=l?.nodesInPath||[],f=[];let h=!!a,g="";if(!a||t===""&&u?.[0].viewUrl)return this.previousBreadcrumbs={},{};if(u.forEach(R=>{R.children&&(g+="/"+(R.pathSegment||"")),R.showBreadcrumbs===!1?h=!1:R.showBreadcrumbs===!0&&(h=!0)}),!h)return{clearBeforeRender:!0};const _=this.luigi.getConfigValue("routing.useHashRouting"),w=D.getCurrentPath(this.luigi,_),m=a.omitRoot?2:1;for(let R=m;R<u.length;R++){const I=u[R],N=D.mapPathToNode(w.path,I);if(N&&this.previousBreadcrumbs[N])f.push(this.previousBreadcrumbs[N]);else if(I.label||I.pathSegment||I.titleResolver)if(I.titleResolver)f.push({label:I.titleResolver.prerenderFallback&&I.titleResolver.fallbackTitle?this.luigi.i18n().getTranslation(I.titleResolver.fallbackTitle):a.pendingItemLabel||"",node:I,route:N,pending:!0});else{const F=await D.getNodeLabel(I,this.luigi);F&&f.push({label:F,node:I,route:N})}}const E=f.some(R=>R.pending),C=R=>({basePath:g.replace(/\/\/+/g,"/"),clearBeforeRender:a.clearBeforeRender,items:R,renderer:a.renderer,selectedNode:l?.selectedNode||{}});if(E&&s)return this.resolveBreadcrumbTitles(u,m,w,_,a,C,s),C(f);if(w.path===D.getCurrentPath(this.luigi,_).path){const R={};f.length>1?f[f.length-1].last=!0:a.autoHide&&(f.length=0),f.map(I=>{I.route&&(R[I.route]=I)}),this.previousBreadcrumbs=R}return C(f)}async resolveBreadcrumbTitles(t,n,s,a,l,u,f){const h=[];for(let g=n;g<t.length;g++){const _=t[g],w=D.mapPathToNode(s.path,_);if(_.titleResolver)try{const E=await this.extractDataFromPath(w||""),C=D.substituteDynamicParamsInObject(Object.assign({},E.pathData.context,_.context),E.pathData.pathParams||{}),R=await Oe.fetchNodeTitleData(_,C);h.push({label:R.label,node:_,route:w});continue}catch{}const m=await D.getNodeLabel(_,this.luigi);m&&h.push({label:m,node:_,route:w})}if(s.path===D.getCurrentPath(this.luigi,a).path){const g={};h.length>1?h[h.length-1].last=!0:l.autoHide&&(h.length=0),h.map(_=>{_.route&&(g[_.route]=_)}),this.previousBreadcrumbs=g}f(u(h))}onNodeChange(t,n){const s=this.luigi.getConfigValue("navigation.nodeChangeHook");M.isFunction(s)?s(t,n):s!==void 0&&console.warn("nodeChangeHook is not a function!")}async extractDataFromPath(t){const n=await this.getPathData(t);return{nodeObject:D.getLastNodeObject(n),pathData:n}}async shouldPreventNavigation(t){return!!(t?.onNodeActivation&&(M.isFunction(t.onNodeActivation)||M.isAsyncFunction(t.onNodeActivation))&&await t.onNodeActivation(t)===!1)}async shouldPreventNavigationForPath(t){const{nodeObject:n}=await this.extractDataFromPath(t);return!!await this.shouldPreventNavigation(n)}async openViewInNewTab(t){if(await this.shouldPreventNavigationForPath(t))return;this.luigi.getConfigValue("routing.useHashRouting")&&(t="#"+t);let s;try{if(s=new URL(t,window.location.origin),s.origin!==window.location.origin)return}catch{return}window.open(s.toString(),"_blank","noopener,noreferrer")}resolveTooltipText(t,n){return Oe.generateTooltipText(t,n,this.luigi)}prepareRootNodes(t,n){const s=t;return s.length&&s.forEach(a=>{a.isRootNode=!0}),s}getAccessibleNodes(t,n,s){return n?n.filter(a=>Oe.isNodeAccessPermitted(a,t,s,this.luigi)):[]}async handleNavigationRequest(t,n){const{path:s,intent:a,preserveView:l,drawerSettings:u,modalSettings:f,newTab:h,withoutSync:g,preventContextUpdate:_,preventHistoryEntry:w,options:m}=t,E=this.luigi.getConfig().routing?.useHashRouting,C=!!(u||f);let R=await this.buildPath(s,m||{});if(!C){const J=j.get(un);try{await J.getUnsavedChangesModalPromise()}catch{return}}if(a){const J=D.getIntentPath(s.replace("#",""),this.luigi);if(!J)return;if(typeof J=="string")R=J;else if(M.isObject(J)){D.handleExternalIntentPath(J);return}}const I=R.replace(/\/\/+/g,"/"),N=w?"replaceState":"pushState",F=D.getCurrentPath(this.luigi,E).path;if(M.trimLeadingSlash(F)!==M.trimLeadingSlash(I))if(u||f)if(u)this.luigi.navigation().openAsDrawer(I,u,n);else{if(!f.keepPrevious&&!await this.getModalService().closeModalsWithDirtyCheck())return;this.luigi.navigation().openAsModal(I,f,n)}else{const J={detail:{preventContextUpdate:!!_,preventHistoryEntry:!!w,withoutSync:!!g}},de=j.get(un);if(G.drawerContainer&&de.shouldShowUnsavedChangesModal(G.drawerContainer))try{await de.getUnsavedChangesModalPromise(G.drawerContainer)}catch{return}if(!await j.get(fr).closeModalsWithDirtyCheck())return;if(h){await this.openViewInNewTab(I);return}const pe=this.luigi.getConfigValue("routing.disableBrowserHistory")?"replaceState":N;if(E)if(!g&&pe!=="replaceState")location.hash=I;else{const oe=new CustomEvent("hashchange",J);window.history[pe]({path:"/#"+I},"","/#"+I),window.dispatchEvent(oe)}else{const oe=new CustomEvent("popstate",J);window.history[pe]({path:I},"",I),window.dispatchEvent(oe)}}}async getChildren(t,n={}){const s=j.get(hr);if(!t)return[];let a=[];if(s.hasChildren(t)){let u=s.getChildren(t);u&&(a=u.children)}else try{a=await $r.getConfigValueFromObjectAsync(t,"children",n||t.context),a==null&&(a=[]),a=a.map(u=>this.getExpandStructuralPathSegment(u)).map(u=>this.bindChildToParent(u,t))||[]}catch(u){console.error("Could not lazy-load children for node",u)}let l=this.getAccessibleNodes(t,a,n);return s.setChildren(t,{children:a,filteredChildren:l}),l}getExpandStructuralPathSegment(t){if(t&&t.pathSegment&&t.pathSegment.indexOf("/")!==-1){const n=t.pathSegment.split("/"),s={...t},a=(l,u)=>{const f=l.shift();let h={};return l.length?(h.pathSegment=f,u.hideFromNav&&(h.hideFromNav=u.hideFromNav),h.children=[a(l,u)]):(h=s,h.pathSegment=f),h};return a(n,t)}return t}bindChildToParent(t,n){return n&&n.pathSegment&&(t.parent=n),t}buildVirtualTree(t,n,s){const a=t.virtualTree,l=t._virtualTree,u=t._virtualViewUrl||t.viewUrl;if((a||l)&&n){let f=typeof t._virtualPathIndex=="number"?t._virtualPathIndex:void 0;a&&(f=void 0,t.keepSelectedForChildren=!0);const h=50;if(typeof f=="number"&&f>h)return;const g=(f??0)+1;if(g>h)return;const _=["_*","virtualTree","parent","children","keepSelectedForChildren","navigationContext"],w=M.removeProperties(t,_);Object.assign(w,{pathSegment:":virtualSegment_"+g,label:":virtualSegment_"+g,viewUrl:M.trimTrailingSlash(this.buildVirtualViewUrl(u||"",s,g)),_virtualTree:!0,_virtualPathIndex:g,_virtualViewUrl:u});const m=Array.isArray(t.children)&&t.children.length>0?t.children[0]._virtualTree:!1;return t.children&&!m&&console.warn(`Found both virtualTree and children nodes defined on a navigation node.
92
+ Invalid Children:`,r);return}return r.some(u=>{if(u.pathSegment===e||u.pathSegment&&u.pathSegment.startsWith(":"))return s=u,!0}),s}buildNavItems(e,r,s){const a={},l=[];return e?.forEach(u=>{if(Oe.isNodeAccessPermitted(u,this.getParentNode(s.selectedNode,s),s?.selectedNode?.context||{},this.luigi))if(u.category){const f=u.category.id||u.category.label||u.category,h=this.luigi.i18n().getTranslation(u.category.label||u.category.id||u.category);let g=a[f];g||(g={category:{altText:u.category.altText||"",icon:u.category.icon,id:f,label:h,nodes:[],tooltip:this.resolveTooltipText(u.category,h)}},a[f]=g,l.push(g)),g.category?.nodes?.push({node:u,selected:u===r,label:u.label?this.luigi.i18n().getTranslation(u.label):void 0,tooltip:u.label?this.resolveTooltipText(u,u.label):void 0,altText:u.altText,icon:u.icon,externalLink:u.externalLink,href:u.externalLink?.url||D.getNodeHref(u,s.pathParams,this.luigi)})}else l.push({altText:u.altText,icon:u.icon,label:u.label?this.luigi.i18n().getTranslation(u.label):void 0,tooltip:u.label?this.resolveTooltipText(u,u.label):void 0,node:u,selected:u===r,externalLink:u.externalLink,href:u.externalLink?.url||D.getNodeHref(u,s.pathParams,this.luigi)})}),l}async getCurrentNode(e){const r=await this.getPathData(e);let s=r.selectedNode;if(!s&&r.nodesInPath?.length===1&&(s=r.nodesInPath[0]),!(!s||!Oe.isNodeAccessPermitted(s,this.getParentNode(r.selectedNode,r),r?.selectedNode?.context||{},this.luigi)))return s}async getPathParams(e){return(await this.getPathData(e)).pathParams}getTruncatedChildren(e){let r=!1,s=!1,a=[];return e.slice().reverse().forEach(l=>{(!r||l.tabNav)&&(l.tabNav===!1&&(s=!0),l.keepSelectedForChildren===!1?r=!0:(l.keepSelectedForChildren||l.tabNav&&!s)&&(r=!0,a=[])),a.push(l)}),a.reverse()}applyNavGroups(e){const r={},s=[],l=[];return e.forEach(u=>{if(u.node)l.push(u);else if(u.category){const f=u.category.id;f&&f.indexOf("::")>0?s.push(u):(u.category.isGroup,r[f]=u,l.push(u))}}),s.forEach(u=>{const f=u.category?.id.split("::")[0]||"",h=r[f];h&&h.category&&(h.category.isGroup||(h.category.isGroup=!0),h.category.nodes||(h.category.nodes=[]),h.category.nodes.push(u))}),l.filter(u=>{if(u.category?.isGroup&&u.category?.nodes&&u.category?.nodes.length>0){for(let f=0;f<u.category?.nodes.length;f++){const h=u.category?.nodes[f];if(h.node&&!h.node.hideFromNav&&h.node.label||h.category?.nodes&&h.category.nodes.filter(g=>!g.node?.hideFromNav&&g.node?.label).length>0)return!0}return!1}return!0})}async getLeftNavData(e,r){const s=r??await this.getPathData(e);if(e===""&&s?.nodesInPath?.[0].viewUrl)return{items:[],basePath:"",selectedNode:{},navClick:void 0};let a=[];const l=[];let u="";s.nodesInPath?.forEach(E=>{E.children&&(E.tabNav||(u+="/"+(E.pathSegment||"")),l.push(E))});const f=this.getTruncatedChildren(s.nodesInPath??[]);let h=[...f].pop(),g=s.selectedNode;(h?.keepSelectedForChildren||h?.tabNav)&&(g=h,f.pop(),h=[...f].pop());let _,w=g;g?s.rootNodes.includes(g)?(_=g,w=void 0):g.tabNav||g.keepSelectedForChildren?_=h:_=[...l].pop():(_=[...l].pop(),w=void 0);let m=await this.getChildren(_,_?.context||{})||[];return a=this.buildNavItems(m,w,s),a=this.applyNavGroups(a),{selectedNode:g||{},items:a,basePath:u.replace(/\/\/+/g,"/"),sideNavFooterText:this.luigi.getConfig().settings?.sideNavFooterText,navClick:E=>E.node?this.navItemClick(E.node,s):Promise.resolve()}}async navItemClick(e,r){if(await j.get(un).getUnsavedChangesModalPromise(),e.externalLink?.url){Oe.openExternalLink(e.externalLink,r?.pathParams);return}let a=D.getNodePath(e),l=r?.pathParams;if(a=M.replaceVars(a,l||{},":",!1),!a&&a!==""){console.error("Navigation error: could not build path for the node. Check if pathSegment is defined for all nodes in the path and if there are no duplicate pathSegments on the same level.");return}return this.luigi.navigation().navigate(a)}async getTopNavData(e,r){const s=this.luigi.getConfig(),a=r??await this.getPathData(e),l=s.navigation?.profile?.items?.length?JSON.parse(JSON.stringify(s.navigation.profile.items)):[],u=s.navigation?.appSwitcher&&this.getAppSwitcherData(s.navigation?.appSwitcher,s.settings?.header),f=Oe.updateHeaderTitle(u,a);l?.length&&l.forEach(N=>{N.label=this.luigi.i18n().getTranslation(N.label||""),N.children?.length&&N.children.forEach(F=>{F.label=this.luigi.i18n().getTranslation(F.label||"")})});const h=this.luigi.i18n().getTranslation(s.navigation?.profile?.logout?.label)||Mr.logout.label,g=N=>{N.openNodeInModal&&!N.externalLink?.url?this.luigi.navigation().openAsModal(N.link||"",N.openNodeInModal===!0?{}:N.openNodeInModal):N.link?this.luigi.navigation().navigate(N.link):N.externalLink?.url&&Oe.openExternalLink(N.externalLink)},_=s.userSettings;let w={};_&&(w={...Mr.userSettingsProfileMenuEntry,...s.userSettings?.userSettingsProfileMenuEntry});const m={authEnabled:this.luigi.auth().isAuthorizationEnabled(),signedIn:this.luigi.auth().isAuthorizationEnabled()&&ir.isLoggedIn(),items:l,itemClick:g,logout:{altText:this.luigi.i18n().getTranslation(s.navigation?.profile?.logout?.altText)||Mr.logout.label,label:h,icon:s.navigation?.profile?.logout?.icon||Mr.logout.icon,testId:s.navigation?.profile?.logout?.testId||Oe.prepareForTests(h),doLogout:()=>{ar.logout()}},settings:{...w,openUserSettings:()=>{this.luigi.ux().openUserSettings()}},onUserInfoUpdate:N=>{this.luigi.getConfigValueAsync("navigation.profile.staticUserInfoFn").then(F=>{F?N(F):ar.getUserInfoStore().subscribe(oe=>{N(oe)})})}},E=a.selectedNode,C=E&&a.rootNodes.includes(E)?E:void 0,R=await this.buildContextSwitcher(),I={...s.navigation?.productSwitcher,productSwitcherItemClick:N=>{N.externalLink?.url?Oe.openExternalLink(N.externalLink):N.link&&this.luigi.navigation().navigate(N.link)}};return{appTitle:f||s.settings?.header?.title,logo:s.settings?.header?.logo,topNodes:this.buildNavItems(a.rootNodes,C,a),contextSwitcher:R,productSwitcher:I,profile:this.luigi.auth().isAuthorizationEnabled()||s.navigation?.profile?m:void 0,appSwitcher:s.navigation?.appSwitcher&&this.getAppSwitcherData(s.navigation?.appSwitcher,s.settings?.header),navClick:N=>N.node?this.navItemClick(N.node,a):Promise.resolve()}}getParentNode(e,r){if(e&&e===r.nodesInPath?.[r.nodesInPath.length-1])return r.nodesInPath[r.nodesInPath.length-2]}getAppSwitcherData(e,r){const s=e,a=s?.showMainAppEntry;if(s&&s.items&&a){const l={title:this.luigi.i18n().getTranslation(r.title||""),subTitle:r.subTitle,link:"/"};if(s.items?.map(u=>({...u,title:this.luigi.i18n().getTranslation(u.title||"")})),s.items.some(u=>u.link===l.link))return s;s.items.unshift(l)}return s}async getTabNavData(e,r){const s=r??await this.getPathData(e);if(e===""&&s?.nodesInPath?.[0].viewUrl)return{};const a=s?.selectedNode;let l;if(!a)return{};if(!a.tabNav&&(l=this.getParentNode(a,s),l&&!l.tabNav))return{};let u="";s.nodesInPath?.forEach(g=>{g.children&&(u+="/"+(g.pathSegment||""))});const f=l?this.getTruncatedChildren(l.children??[]):this.getTruncatedChildren(a.children??[]),h=this.buildNavItems(f,a,s);return{selectedNode:a,items:h,basePath:u.replace(/\/\/+/g,"/"),navClick:g=>g.node?this.navItemClick(g.node,s):Promise.resolve()}}async getBreadcrumbData(e,r,s){const a=this.luigi.getConfigValue("navigation.breadcrumbs"),l=r??await this.getPathData(e),u=l?.nodesInPath||[],f=[];let h=!!a,g="";if(!a||e===""&&u?.[0].viewUrl)return this.previousBreadcrumbs={},{};if(u.forEach(R=>{R.children&&(g+="/"+(R.pathSegment||"")),R.showBreadcrumbs===!1?h=!1:R.showBreadcrumbs===!0&&(h=!0)}),!h)return{clearBeforeRender:!0};const _=this.luigi.getConfigValue("routing.useHashRouting"),w=D.getCurrentPath(this.luigi,_),m=a.omitRoot?2:1;for(let R=m;R<u.length;R++){const I=u[R],N=D.mapPathToNode(w.path,I);if(N&&this.previousBreadcrumbs[N])f.push(this.previousBreadcrumbs[N]);else if(I.label||I.pathSegment||I.titleResolver)if(I.titleResolver)f.push({label:I.titleResolver.prerenderFallback&&I.titleResolver.fallbackTitle?this.luigi.i18n().getTranslation(I.titleResolver.fallbackTitle):a.pendingItemLabel||"",node:I,route:N,pending:!0});else{const F=await D.getNodeLabel(I,this.luigi);F&&f.push({label:F,node:I,route:N})}}const E=f.some(R=>R.pending),C=R=>({basePath:g.replace(/\/\/+/g,"/"),clearBeforeRender:a.clearBeforeRender,items:R,renderer:a.renderer,selectedNode:l?.selectedNode||{}});if(E&&s)return this.resolveBreadcrumbTitles(u,m,w,_,a,C,s),C(f);if(w.path===D.getCurrentPath(this.luigi,_).path){const R={};f.length>1?f[f.length-1].last=!0:a.autoHide&&(f.length=0),f.map(I=>{I.route&&(R[I.route]=I)}),this.previousBreadcrumbs=R}return C(f)}async resolveBreadcrumbTitles(e,r,s,a,l,u,f){const h=[];for(let g=r;g<e.length;g++){const _=e[g],w=D.mapPathToNode(s.path,_);if(_.titleResolver)try{const E=await this.extractDataFromPath(w||""),C=D.substituteDynamicParamsInObject(Object.assign({},E.pathData.context,_.context),E.pathData.pathParams||{}),R=await Oe.fetchNodeTitleData(_,C);h.push({label:R.label,node:_,route:w});continue}catch{}const m=await D.getNodeLabel(_,this.luigi);m&&h.push({label:m,node:_,route:w})}if(s.path===D.getCurrentPath(this.luigi,a).path){const g={};h.length>1?h[h.length-1].last=!0:l.autoHide&&(h.length=0),h.map(_=>{_.route&&(g[_.route]=_)}),this.previousBreadcrumbs=g}f(u(h))}onNodeChange(e,r){const s=this.luigi.getConfigValue("navigation.nodeChangeHook");M.isFunction(s)?s(e,r):s!==void 0&&console.warn("nodeChangeHook is not a function!")}async extractDataFromPath(e){const r=await this.getPathData(e);return{nodeObject:D.getLastNodeObject(r),pathData:r}}async shouldPreventNavigation(e){return!!(e?.onNodeActivation&&(M.isFunction(e.onNodeActivation)||M.isAsyncFunction(e.onNodeActivation))&&await e.onNodeActivation(e)===!1)}async shouldPreventNavigationForPath(e){const{nodeObject:r}=await this.extractDataFromPath(e);return!!await this.shouldPreventNavigation(r)}async openViewInNewTab(e){if(await this.shouldPreventNavigationForPath(e))return;this.luigi.getConfigValue("routing.useHashRouting")&&(e="#"+e);let s;try{if(s=new URL(e,window.location.origin),s.origin!==window.location.origin)return}catch{return}window.open(s.toString(),"_blank","noopener,noreferrer")}resolveTooltipText(e,r){return Oe.generateTooltipText(e,r,this.luigi)}prepareRootNodes(e,r){const s=e;return s.length&&s.forEach(a=>{a.isRootNode=!0}),s}getAccessibleNodes(e,r,s){return r?r.filter(a=>Oe.isNodeAccessPermitted(a,e,s,this.luigi)):[]}async handleNavigationRequest(e,r){const{path:s,intent:a,preserveView:l,drawerSettings:u,modalSettings:f,newTab:h,withoutSync:g,preventContextUpdate:_,preventHistoryEntry:w,options:m}=e,E=this.luigi.getConfig().routing?.useHashRouting,C=!!(u||f);let R=await this.buildPath(s,m||{});if(!C){const te=j.get(un);try{await te.getUnsavedChangesModalPromise()}catch{return}}if(a){const te=D.getIntentPath(s.replace("#",""),this.luigi);if(!te)return;if(typeof te=="string")R=te;else if(M.isObject(te)){D.handleExternalIntentPath(te);return}}const I=R.replace(/\/\/+/g,"/"),N=w?"replaceState":"pushState",{path:F,query:oe}=D.getCurrentPath(this.luigi,E),de=F+(oe?"?"+oe:"");if(M.trimLeadingSlash(de)!==M.trimLeadingSlash(I))if(u||f)if(u)this.luigi.navigation().openAsDrawer(I,u,r);else{if(!f.keepPrevious&&!await this.getModalService().closeModalsWithDirtyCheck())return;this.luigi.navigation().openAsModal(I,f,r)}else{const te={detail:{preventContextUpdate:!!_,preventHistoryEntry:!!w,withoutSync:!!g}},_e=j.get(un);if(G.drawerContainer&&_e.shouldShowUnsavedChangesModal(G.drawerContainer))try{await _e.getUnsavedChangesModalPromise(G.drawerContainer)}catch{return}if(!await j.get(fr).closeModalsWithDirtyCheck())return;if(h){await this.openViewInNewTab(I);return}const ge=this.luigi.getConfigValue("routing.disableBrowserHistory")?"replaceState":N;if(E)if(!g&&ge!=="replaceState")location.hash=I;else{const we=new CustomEvent("hashchange",te);window.history[ge]({path:"/#"+I},"","/#"+I),window.dispatchEvent(we)}else{const we=new CustomEvent("popstate",te);window.history[ge]({path:I},"",I),window.dispatchEvent(we)}}}async getChildren(e,r={}){const s=j.get(hr);if(!e)return[];let a=[];if(s.hasChildren(e)){let u=s.getChildren(e);u&&(a=u.children)}else try{a=await $r.getConfigValueFromObjectAsync(e,"children",r||e.context),a==null&&(a=[]),a=a.map(u=>this.getExpandStructuralPathSegment(u)).map(u=>this.bindChildToParent(u,e))||[]}catch(u){console.error("Could not lazy-load children for node",u)}let l=this.getAccessibleNodes(e,a,r);return s.setChildren(e,{children:a,filteredChildren:l}),l}getExpandStructuralPathSegment(e){if(e&&e.pathSegment&&e.pathSegment.indexOf("/")!==-1){const r=e.pathSegment.split("/"),s={...e},a=(l,u)=>{const f=l.shift();let h={};return l.length?(h.pathSegment=f,u.hideFromNav&&(h.hideFromNav=u.hideFromNav),h.children=[a(l,u)]):(h=s,h.pathSegment=f),h};return a(r,e)}return e}bindChildToParent(e,r){return r&&r.pathSegment&&(e.parent=r),e}buildVirtualTree(e,r,s){const a=e.virtualTree,l=e._virtualTree,u=e._virtualViewUrl||e.viewUrl;if((a||l)&&r){let f=typeof e._virtualPathIndex=="number"?e._virtualPathIndex:void 0;a&&(f=void 0,e.keepSelectedForChildren=!0);const h=50;if(typeof f=="number"&&f>h)return;const g=(f??0)+1;if(g>h)return;const _=["_*","virtualTree","parent","children","keepSelectedForChildren","navigationContext"],w=M.removeProperties(e,_);Object.assign(w,{pathSegment:":virtualSegment_"+g,label:":virtualSegment_"+g,viewUrl:M.trimTrailingSlash(this.buildVirtualViewUrl(u||"",s,g)),_virtualTree:!0,_virtualPathIndex:g,_virtualViewUrl:u});const m=Array.isArray(e.children)&&e.children.length>0?e.children[0]._virtualTree:!1;return e.children&&!m&&console.warn(`Found both virtualTree and children nodes defined on a navigation node.
93
93
  Children nodes are redundant and ignored when virtualTree is enabled.
94
- Please refer to documentation`),[w]}}buildVirtualViewUrl(t,n,s){let a="";for(const u in n)u.startsWith("virtualSegment")&&(a+=":"+u+"/");if(!s)return t;a+=":virtualSegment_"+s+"/";let l=t;t.includes("{virtualTreePath}")?l=t.replace("{virtualTreePath}",a):l=t+"/"+a;try{if(new URL(l,"http://dummy-base").origin===new URL(t,"http://dummy-base").origin)return l}catch(u){console.error("Error building virtual view URL -- make sure virtualTreePath is not part of origin.",u)}return t}async buildPath(t,n){const{fromVirtualTreeRoot:s,fromContext:a,fromClosestContext:l,fromParent:u,relative:f,nodeParams:h}=n,g=this.luigi.getConfigValue("routing.useHashRouting"),{path:_,query:w}=D.getCurrentPath(this.luigi,g),m=_+(w?"?"+w:""),E=await this.getPathData(m),C=E.nodesInPath;let R=t;if(C===void 0)return console.warn("No nodes in path found for current path:",m),R;if(s){R="";const I=[...C].map((N,F)=>N.virtualTree?F:-1).filter(N=>N!==-1).pop();C.forEach((N,F)=>{N.pathSegment&&(I===void 0||F<=I)&&(R+="/"+N.pathSegment)}),R+="/"+t}else if(a){const I=a,N=[...C].reverse().find(F=>I===F.navigationContext);R=D.concatenatePath(D.getSubPath(N,E.pathParams),t)}else if(l){const I=[...C].reverse().find(N=>N.navigationContext&&N.navigationContext.length>0);R=D.concatenatePath(D.getSubPath(I,E.pathParams),t)}else u?R=D.concatenatePath(D.getSubPath(E.selectedNode?.parent,E.pathParams),t):f&&(R=D.concatenatePath(D.getSubPath(E.selectedNode,E.pathParams),t));return h&&Object.keys(h).length>0&&(R+=R.includes("?")?"&":"?",Object.entries(h).forEach((I,N)=>{R+=encodeURIComponent(D.getContentViewParamPrefix(this.luigi)+I[0])+"="+encodeURIComponent(I[1])+(N<Object.keys(h).length-1?"&":"")})),R}async buildContextSwitcher(){const t=this.luigi.getConfigValue("navigation.contextSwitcher");if(!t)return;Qe.resetFallbackLabelCache();const n=await this.luigi.getConfigValueAsync("navigation.contextSwitcher.actions"),s=await Qe.fetchOptions(this.luigi),a=this.luigi.getConfig().routing?.useHashRouting,l=D.getCurrentPath(this.luigi,a),u=t.parentNodePath,f=t.fallbackLabelResolver;let h=await Qe.getSelectedLabel(l?.path,s,u,f,this.luigi),g=Qe.getSelectedNode(l?.path,s,u),_=Qe.getSelectedOption(l?.path,s,u);const w=(m,E)=>{if(!(!m||typeof m!="string"))if(E==="action"){const C=n.find(R=>R.link===m);if(C?.clickHandler&&!C.clickHandler(C))return;this.luigi.navigation().navigate(m)}else this.luigi.navigation().navigate(m)};if(t?.preserveSubPathOnSwitch&&s?.length&&_&&s.forEach(m=>{m.linkFromPath=Qe.getNodePathFromCurrentPath(m,_,this.luigi),m.link===_.link&&(_.linkFromPath=m.linkFromPath)}),!_&&n?.length){const m=n?.find(E=>E.link===`/${l?.path}`);m&&(h=m.label,g=m.link,_=m)}return{actions:n,config:t,options:s,selectedLabel:h,selectedNodePath:g,selectedOption:_,switcherChange:(m,E)=>w(m,E)}}}class Di{constructor(t){this.luigi=t,this.preloadBatchSize=1,this.shouldPreload=!1}preloadViewGroups(t=3,n){const s=this.luigi.getConfigValue("navigation.preloadViewGroups"),a=this.luigi.getConfigValue("navigation.viewGroupSettings"),l=this.luigi.getEngine()._connector?.getContainerWrapper();if(s===!1||!a||!l)return;const u=Date.now();if(this.getPreloadingContainers(l).filter(_=>u-(_._luigiPreloadCreatedAt||0)<3e4).length>0){console.log("skipping view group preloading (busy)");return}const h=[...l.childNodes].filter(_=>_.tagName?.startsWith("LUIGI-")&&_.viewGroup).map(_=>_.viewGroup),g=Object.entries(a).filter(([_])=>!h.includes(_)).filter(([_,w])=>w&&w.preloadUrl);n?g.forEach(([_,w])=>{w.loadOnStartup&&this.preloadContainerOnBackground(w,_,l)}):g.filter((_,w)=>w<t).forEach(([_,w])=>{this.preloadContainerOnBackground(w,_,l)})}preloadContainerOnBackground(t,n,s){const a=document.createElement("luigi-container");a.setAttribute("lui_container","true"),a.viewurl=t.preloadUrl,a.viewGroup=n,a.style.display="none",a._luigiPreloading=!0,a._luigiPreloadCreatedAt=Date.now(),a.luigiMfId=M.getRandomId(),this.luigi.getEngine()._comm.addListeners(a,this.luigi),s.appendChild(a)}preload(t){this.shouldPreload&&setTimeout(()=>{this.preloadViewGroups(this.preloadBatchSize,!!t)},t?1:0),this.shouldPreload=!0}viewGroupLoaded(t){if(t._luigiPreloading){const n=Date.now()-(t._luigiPreloadCreatedAt||0);let s=1;n<500?s=3:n<1e3&&(s=2),this.preloadBatchSize=s,setTimeout(()=>{t._luigiPreloading=!1},this.preloadBatchSize>2?500:1e3)}}getPreloadingContainers(t){return[...t.childNodes].filter(n=>n.tagName?.startsWith("LUIGI-")&&n._luigiPreloading)}}const zl={listeners:[],hashChangeWithoutSync:!1,addEventListener(r,t){this.listeners.push({type:r,listenerFn:t}),window.addEventListener(r,t)},removeEventListener(r,t){this.listeners=this.listeners.filter(n=>!(n.type===r&&n.listenerFn===t)),window.removeEventListener(r,t)},removeAllEventListeners(){this.listeners.forEach(r=>{window.removeEventListener(r.type,r.listenerFn)}),this.listeners=[]}};class Wr{constructor(t){this.luigi=t}getNavigationService(){return this.navigationService||(this.navigationService=j.get(dr),this.dirtyStatusService=j.get(un)),this.navigationService}shouldSkipRoutingForUrlPatterns(){const t=[/access_token=/,/id_token=/];return(this.luigi.getConfigValue("routing.skipRoutingForUrlPatterns")||t).filter(s=>location.href.match(s)).length!==0}enableRouting(){this.luigi.getConfig().routing?.useHashRouting?(zl.addEventListener("hashchange",n=>{const s=!!n?.detail?.preventContextUpdate,a=!!n?.detail?.withoutSync;this.handleRouteChange(D.getCurrentPath(this.luigi,!0,!0),a,s)}),this.handleRouteChange(D.getCurrentPath(this.luigi,!0,!0))):(zl.addEventListener("popstate",n=>{const s=!!n?.detail?.preventContextUpdate,a=!!n?.detail?.withoutSync;this.handleRouteChange(D.getCurrentPath(this.luigi,!1,!0),a,s)}),this.handleRouteChange(D.getCurrentPath(this.luigi,!1,!0)))}async handleRouteChange(t,n=!1,s=!1){const a=t.path,l=t.query,u=a+(l?"?"+l:""),f=new URLSearchParams(l),h=Object.create(null);try{if(this.dirtyStatusService?.shouldShowUnsavedChangesModal()){const R=this.dirtyStatusService.unsavedChanges.persistUrl;R&&history.pushState(window.state,"",R);return}}catch{return}if(this.shouldSkipRoutingForUrlPatterns())return;this.setFeatureToggle(u),await this.shouldShowModalPathInUrl(t),f.forEach((R,I)=>{h[I]=R}),this.checkInvalidateCache(this.previousPathData,a);const g=await this.getNavigationService().getPathData(a),_=D.filterNodeParams(h,this.luigi),w=M.getPathWithoutHash(a)||"";this.currentRoute={raw:window.location.href,path:a,nodeParams:_};const m=g?.selectedNode??await this.getNavigationService().getCurrentNode(a),E=m?.viewUrl||"";if(m&&this.previousPathData&&await this.handleViewUrlMisconfigured(m,E,this.previousPathData,w)||await this.handlePageNotFound(m,E,g,a,w))return;const C=this.luigi.getEngine()._connector;if(C?.renderTopNav(await this.getNavigationService().getTopNavData(a,g)),C?.renderLeftNav(await this.getNavigationService().getLeftNavData(a,g)),C?.renderTabNav(await this.getNavigationService().getTabNavData(a,g)),C?.renderBreadcrumbs(await this.getNavigationService().getBreadcrumbData(a,g,R=>{C?.renderBreadcrumbs(R)})),m){const R={nodeParams:_||{},pathParams:g?.pathParams||{},searchParams:D.prepareSearchParamsForClient(m,this.luigi)};this.currentRoute.node=m,this.getNavigationService().onNodeChange(this.previousNode,m),this.previousNode=m,await G.updateMainContent(m,this.luigi,R,n,s),this.previousPathData=g}}getCurrentRoute(){return this.currentRoute}async shouldShowModalPathInUrl(t){this.luigi.getConfigValue("routing.showModalPathInUrl")&&await this.handleBookmarkableModalPath(t)}async handleBookmarkableModalPath(t){const n=j.get(dr),s=j.get(fr),a=new URLSearchParams(t?.query||""),l=D.getModalViewParamName(this.luigi),u=a.get(l);if(u){const f=a.get(`${l}Params`);try{const h=JSON.parse(f||"{}"),{nodeObject:g}=await n.extractDataFromPath(u);document.querySelector(".lui-modal luigi-container")?this.luigi.getEngine()._connector?.updateModalSettings(h):this.luigi.navigation().openAsModal(u,h||g.openNodeInModal)}catch(h){console.error("Error parsing modal settings from URL parameters",h)}}else return await s.closeModalsWithDirtyCheck(),void 0}appendModalDataToUrl(t,n){const s=D.getHashQueryParamSeparator(),a=D.getQueryParams(this.luigi),l=D.getModalViewParamName(this.luigi),u=a[l],f=new URL(location.href),h=this.luigi.getConfigValue("routing.useHashRouting");let g=history.state,_,w;if(h){let[m,E]=f.hash.split("?");_=m,w=D.getURLWithoutModalData(E,l),w&&(_+="?"+w)}else _=f.pathname,w=D.getURLWithoutModalData(f.search,l),w&&(_+="?"+D.getURLWithoutModalData(f.search,l));if(g=D.handleHistoryState(g,_),u!==t){if(a[l]=t,n&&Object.keys(n).length&&(a[`${l}Params`]=JSON.stringify(n)),h){const m=location.hash.indexOf(s);m!==-1&&(f.hash=f.hash.slice(0,m)),f.hash=`${f.hash}${s}${D.encodeParams(a)}`}else f.search=`?${D.encodeParams(a)}`;history.pushState(g,"",f.href)}else{const m=new URL(f);if(h){let E=m.hash.split("?")[0];m.hash=E,w&&(m.hash+="?"+w)}else m.search=w;history.replaceState({},"",m.href),history.pushState(g,"",f.href)}}removeModalDataFromUrl(t){const n=D.getQueryParams(this.luigi),s=D.getModalViewParamName(this.luigi);let a=new URL(location.href);if(this.luigi.getConfigValue("routing.useHashRouting")){let u={};n[s]&&(u[s]=n[s]),n[`${s}Params`]&&(u[`${s}Params`]=n[`${s}Params`]);let f=D.encodeParams(u);a.hash.includes(`?${f}`)?a.hash=a.hash.replace(`?${f}`,""):a.hash.includes(`&${f}`)&&(a.hash=a.hash.replace(`&${f}`,""))}else{let u=new URLSearchParams(a.search.slice(1));u.delete(s),u.delete(`${s}Params`);let f="";Array.from(u.keys()).forEach(h=>{f+=(f===""?"?":"&")+h+"="+u.get(h)}),a.search=f}if(history.state&&history.state.modalHistoryLength>=0&&t){history.state.modalHistoryLength;const u=history.state.pathBeforeHistory;let f=!1;if(window.addEventListener("popstate",h=>{f?(history.replaceState({},"",u),history.pushState({},"",u),history.back()):(history.pushState({},"",u),history.back())},{once:!0}),history.state.historygap===history.length-history.state.modalHistoryLength)history.go(-history.state.modalHistoryLength);else if(history.state.modalHistoryLength>history.length){const h=history.length-1;f=!0,history.go(-h),window.Luigi.preventLoadingModalData=!0}else{const h=history.state.modalHistoryLength;history.go(-h)}}else history.pushState({},"",a.href)}setFeatureToggle(t){const n=this.luigi.getConfigValue("settings.featureToggles.queryStringParam"),s=this.luigi.featureToggles();n&&typeof t=="string"&&D.setFeatureToggles(n,t,s)}updateModalDataInUrl(t,n,s){let a=D.getHashQueryParamSeparator();const l=D.getQueryParams(this.luigi),u=D.getModalViewParamName(this.luigi);l[u]=t,n&&Object.keys(n).length&&(l[`${u}Params`]=JSON.stringify(n));const f=new URL(location.href);if(this.luigi.getConfigValue("routing.useHashRouting")){const g=location.hash.indexOf(a);g!==-1&&(f.hash=f.hash.slice(0,g)),f.hash=`${f.hash}${a}${D.encodeParams(l)}`}else f.search=`?${D.encodeParams(l)}`;s?history.pushState(window.state,"",f.href):history.replaceState(window.state,"",f.href)}checkInvalidateCache(t,n){if(!t)return;const s=j.get(hr);let a=n.split("/");if(t.nodesInPath&&t.nodesInPath.length>0){let l=t.nodesInPath.slice(1),u=!0;for(let f=0;f<l.length;f++){let h=a.length>f?a[f]:void 0,g=l[f];if(h!==g.pathSegment||!u)if(D.isDynamicNode(g)){if(!u||h!==D.getDynamicNodeValue(g,t.pathParams)){s.deleteNodesRecursively(g);break}}else u=!1}}else s.deleteCache()}async handlePageNotFound(t,n,s,a,l){const u=M.getTrimmedUrl(a),f=D.isExistingRoute(u,s);if(!n&&!t?.compound||t?.tabNav?.showAsTabHeader){const h=await D.getDefaultChildNode(s,async(g,_)=>await this.getNavigationService().getChildren(g,_));if(f){const g=M.getTrimmedUrl(a);return this.getNavigationService().handleNavigationRequest({path:`${g?`/${g}`:""}/${h}`,preserveView:void 0,modalSettings:void 0,newTab:!1,withoutSync:!1,preventContextUpdate:!1,preventHistoryEntry:!0}),!1}else{if(h&&s?.nodesInPath&&s.nodesInPath.length>1)return this.showPageNotFoundError(M.trimTrailingSlash(u||"")+"/"+h,l,!0),!0;const g=await D.getDefaultChildNode(s);this.showPageNotFoundError(g,l,!1)}return!0}return f?!1:(this.showPageNotFoundError(s.matchedPath,l,!0),!0)}async showPageNotFoundError(t,n,s=!1){const a=D.getPageNotFoundRedirectResult(n,s,this.luigi);if(a.ignoreLuigiErrorHandling)return;const l=a.path;if(l){if(a.keepURL){const u=this.luigi.getConfig().routing?.useHashRouting,f=D.getCurrentPath(this.luigi,u);f.path=l,this.handleRouteChange(f)}else this.getNavigationService().handleNavigationRequest({path:l});return}D.showRouteNotFoundAlert(n,s,this.luigi),this.getNavigationService().handleNavigationRequest({path:M.addLeadingSlash(t)})}async handleViewUrlMisconfigured(t,n,s,a){const{children:l,intendToHaveEmptyViewUrl:u,compound:f}=t,h=!!l?.length;if(!f&&n.trim()===""&&!h&&!u){if(console.warn("The intended target route can't be accessed since it has neither a viewUrl nor children. This is most likely a misconfiguration."),!(s&&(s.selectedNode?.viewUrl||s.selectedNode&&s.selectedNode.compound))){const g=await this.getNavigationService().getPathData("/"),_=await D.getDefaultChildNode(g);this.showPageNotFoundError(_,a,!1),this.getNavigationService().handleNavigationRequest({path:_})}return!0}return!1}}class Mi{constructor(){this.decorators=[]}hasDecorators(){return this.decorators.length>0}add(t){this.decorators=this.decorators.filter(n=>n.uid!==t.uid).concat(t)}applyDecorators(t,n){if(!t)return t;const s=new URL(M.prependOrigin(t)),a=this.decorators.filter(l=>l.type==="queryString");for(let l=0;l<a.length;l++){const u=a[l];s.searchParams.has(u.key)&&s.searchParams.delete(u.key);const f=u.valueFn();s.searchParams.append(u.key,f)}return n&&(s.search=decodeURIComponent(s.search)),s.href}}const Ia=async(r,t,n)=>{const s=await t.readUserSettings(),l=r.userSettingsGroup&&typeof s=="object"&&s!==null&&r.userSettingsGroup?s[r.userSettingsGroup]:null,u=n?.nodeParams||{},f=n?.pathParams||{},h=n?.searchParams||{};if(r.webcomponent&&r.viewUrl&&!D.checkWCUrl(r.viewUrl,t))return console.warn(`View URL '${r.viewUrl}' not allowed to be included`),document.createElement("div");if(r.compound){const g=document.createElement("luigi-compound-container");return g.setAttribute("lui_container","true"),g.viewurl=r.viewUrl?j.get(Mi).applyDecorators(D.substituteViewUrl(r,f,u,t),r.decodeViewUrl??!1):"",g.webcomponent=r.webcomponent??!1,g.compoundConfig=r.compound,g.context=r.context,g.clientPermissions=r.clientPermissions??{},g.nodeParams=u,g.pathParams=f,g.userSettingsGroup=r.userSettingsGroup,g.userSettings=l,g.searchParams=h,g.activeFeatureToggleList=t.featureToggles().getActiveFeatureToggleList(),g.locale=t.i18n().getCurrentLocale(),g.theme=t.theming().getCurrentTheme(),g.viewGroup=r.viewGroup,g.virtualTree=r.virtualTree||r._virtualTree,g.virtualTreeRootNode=Oe.findVirtualTreeRootNode(r),t.getEngine()._comm.addListeners(g,t),g}else{const g=document.createElement("luigi-container");return g.setAttribute("lui_container","true"),g.viewurl=r.viewUrl?j.get(Mi).applyDecorators(D.substituteViewUrl(r,f,u,t),r.decodeViewUrl??!1):"",g.webcomponent=r.webcomponent??!1,g.context=r.context,g.authData=ir.getStoredAuthData(),g.clientPermissions=r.clientPermissions??{},g.cssVariables=await t.theming().getCSSVariables(),g.nodeParams=u,g.pathParams=f,g.userSettingsGroup=r.userSettingsGroup,g.userSettings=l,g.searchParams=h,g.activeFeatureToggleList=t.featureToggles().getActiveFeatureToggleList(),g.locale=t.i18n().getCurrentLocale(),g.theme=t.theming().getCurrentTheme(),g.viewGroup=r.viewGroup,g.virtualTree=r.virtualTree||r._virtualTree,g.virtualTreeRootNode=Oe.findVirtualTreeRootNode(r),qd(g,t),zd(g,t),t.getEngine()._comm.addListeners(g,t),g.luigiMfId=M.getRandomId(),g}},qd=(r,t)=>{const n=t.getConfigValue("settings.customSandboxRules");if(!n?.length)return;const s=["allow-forms","allow-modals","allow-popups","allow-popups-to-escape-sandbox","allow-same-origin","allow-scripts"],a=n?[...new Set([...s,...n])]:s;r.sandboxRules=a},zd=(r,t)=>{const n=t.getConfigValue("settings.allowRules");n?.length&&(n.forEach((s,a)=>{n[a]=s+(s.indexOf(";")!=-1?"":";")}),r.allowRules=n)},G={navService:void 0,routingService:void 0,luigi:void 0,modalContainer:[],drawerContainer:void 0,init:r=>{G.navService=j.get(dr),G.routingService=j.get(Wr),G.luigi=r,r.getEngine()._connector?.renderMainLayout();const t=j.get(Di);t.shouldPreload=!0,t.preload(!0),t.shouldPreload=!1},update:async r=>{const t=G.routingService.getCurrentRoute();if(!t)return;const n=!r||r.length===0;if((n||r.includes("settings.header")||r.includes("settings")||r.includes("navigation")||r.includes("navigation.profile")||r.includes("navigation.contextSwitcher")||r.includes("navigation.productSwitcher"))&&G.luigi.getEngine()._connector?.renderTopNav(await G.navService.getTopNavData(t.path)),n||r.includes("navigation")||r.includes("navigation.nodes")||r.includes("navigation.viewgroupdata")||r.includes("settings")||r.includes("settings.footer")){j.get(hr).deleteCache(),G.luigi.getEngine()._connector?.renderLeftNav(await G.navService.getLeftNavData(t.path)),G.luigi.getEngine()._connector?.renderTabNav(await G.navService.getTabNavData(t.path));const s=G.luigi.getEngine()._connector;s?.renderBreadcrumbs(await G.navService.getBreadcrumbData(t.path,void 0,a=>{s?.renderBreadcrumbs(a)}))}if(n||r.includes("navigation")||r.includes("navigation.nodes")||r.includes("navigation.viewgroupdata")){if(j.get(hr).deleteCache(),t.path){const a=(await G.navService.getPathData(t.path))?.selectedNode??t.node;a&&(t.node=a,G.updateMainContent(a,G.luigi))}}else r.includes("settings.theming")&&t.node&&G.updateMainContent(t.node,G.luigi)},updateMainContent:async(r,t,n,s,a)=>{const l=await t.readUserSettings(),f=r.userSettingsGroup&&typeof l=="object"&&l!==null&&r.userSettingsGroup?l[r.userSettingsGroup]:null,h=t.getEngine()._connector?.getContainerWrapper();t.getEngine()._connector?.hideLoadingIndicator(h);const g=n?.nodeParams||{},_=n?.pathParams||{},w=n?.searchParams||{};if(r&&h){let m,E;if((r.virtualTree||r._virtualTree)&&(E=Oe.findVirtualTreeRootNode(r)),[...h.childNodes].forEach(C=>{if(C.tagName?.indexOf("LUIGI-")===0)if(C.viewGroup&&r.viewGroup!==C.viewGroup){C.style.display="none";const R=t.getConfigValue("navigation.viewGroupSettings")?.[C.viewGroup];R?.preloadUrl&&(C.viewurl=R.preloadUrl,C.context={},C.nodeParams={},C.pathParams={})}else C.viewGroup||C.virtualTree&&E===C.virtualTreeRootNode?m=C:C.remove()}),m&&m._luigiPreloading&&(m._luigiPreloading=!1,j.get(Di).viewGroupLoaded(m)),m)s||(m.style.display="block",m.viewurl=r.viewUrl?j.get(Mi).applyDecorators(D.substituteViewUrl(r,_,g,t),r.decodeViewUrl??!1):"",m.nodeParams=g,m.pathParams=_,m.clientPermissions=r.clientPermissions,m.searchParams=w,m.locale=t.i18n().getCurrentLocale(),m.theme=t.theming().getCurrentTheme(),m.activeFeatureToggleList=t.featureToggles().getActiveFeatureToggleList(),m.userSettingsGroup=r.userSettingsGroup,m.userSettings=f,qd(m,t),zd(m,t)),a||m.updateContext(r.context||{},{withoutSync:!1});else{const C=await Ia(r,t,n);h?.appendChild(C);const R=t.getEngine()._connector;r.loadingIndicator?.enabled!==!1&&R?.showLoadingIndicator(h)}}},openModal:async(r,t,n,s)=>{const a=await Ia(t,r);G.modalContainer.push(a);const l=j.get(Wr),u=j.get(fr),f=j.get(un);let h=!1,g,_;const m=new Promise(R=>{g=()=>{h||(h=!0,R(),u.removeLastModalFromStack())},_=async()=>{try{await f.getUnsavedChangesModalPromise(a)}catch{return}g&&g(),r.getConfigValue("routing.showModalPathInUrl")&&u.getModalStackLength()===0&&l.removeModalDataFromUrl(!0)},a.addEventListener(k.CLOSE_CURRENT_MODAL_REQUEST,_)}),E={closePromise:m,resolveFn:g,onCloseRequestHandler:_,onInternalClose:()=>{try{f.clearDirtyState(a),E.resolveFn&&E.resolveFn()}catch(R){console.warn("onInternalClose failed",R)}},modalsettings:n};u.registerModal(E),r.getEngine()._connector?.renderModal(a,n,async()=>{try{await f.getUnsavedChangesModalPromise(a)}catch{return}s?.(),g&&g(),r.getConfigValue("routing.showModalPathInUrl")&&u.getModalStackLength()===0&&l.removeModalDataFromUrl(!0)},()=>m);const C=r.getEngine()._connector;t.loadingIndicator?.enabled!==!1&&C?.showLoadingIndicator(a.parentElement)},updateModalSettings:(r,t,n)=>{const s=j.get(fr);if(s.getModalStackLength()===0)return;s.updateFirstModalSettings(r);const a=j.get(Wr),l=D.getModalPathFromPath(n);l&&a.updateModalDataInUrl(l,s.getModalSettings(),t),n.getEngine()._connector?.updateModalSettings(s.getModalSettings())},openDrawer:async(r,t,n,s)=>{const a=j.get(un);if(G.drawerContainer&&a.shouldShowUnsavedChangesModal(G.drawerContainer))try{await a.getUnsavedChangesModalPromise(G.drawerContainer)}catch{return}const l=await Ia(t,r);G.drawerContainer=l;const u=new Promise(h=>{const g=async()=>{try{await a.getUnsavedChangesModalPromise(l)}catch{return}G.drawerContainer=void 0,a.clearDirtyState(l),h()};l.addEventListener(k.CLOSE_CURRENT_MODAL_REQUEST,g)});r.getEngine()._connector?.renderDrawer(l,n,async()=>{try{await a.getUnsavedChangesModalPromise(l)}catch{return}s?.(),G.drawerContainer=void 0,a.clearDirtyState(l)},()=>u);const f=r.getEngine()._connector;t.loadingIndicator?.enabled!==!1&&f?.showLoadingIndicator(l.parentElement)},openUserSettings:async(r,t,n,s)=>{const a={},l=async(f,h)=>{const g=f.viewUrl,_=f.webcomponent??!1,w=n?.[h]||{},m={...f.context,userSettingsData:w},E=await Ia({viewUrl:g,userSettingsGroup:h,webcomponent:_,context:m},s);return E.addEventListener(k.CUSTOM_MESSAGE,C=>{const R=C.detail;R?.id==="luigi.updateUserSettings"&&(a[h]=R.data?.data??R.data)}),E},u=async(f,h)=>{const g={...f,...a};await s.storeUserSettings(g,h)};r.renderMicroFrontendContainer=l,r.onCloseCallback=u,s.getEngine()._connector?.openUserSettings(r,t,n)}};class iC{constructor(){this._userInfoStore=$a({}),this._loggedInStore=$a(!1)}setUserInfo(t){this._userInfoStore.set(t)}setLoggedIn(t){this._loggedInStore.set(t)}getUserInfoStore(){return this._userInfoStore}getLoggedInStore(){return this._loggedInStore}async init(){const t=ot.getConfigValue("auth.use");if(!t)return Promise.resolve(!0);const n=ot.getConfigValue(`auth.${t}`),s=ir.parseUrlAuthErrors()||{};if(await ir.handleUrlAuthErrors(n,s.error,s.errorDescription))return this.idpProviderInstance=this.getIdpProviderInstance(t,n),M.isPromise(this.idpProviderInstance)?this.idpProviderInstance.then(l=>(this.idpProviderInstance=l,this.checkAuth(n))).catch(l=>{const u=`Error: ${l.message||l}`;console.error(u,l.message&&l),ot.setErrorMessage(u)}):this.checkAuth(n)}async checkAuth(t){const n=ir.getStoredAuthData();if(!n||!ir.isLoggedIn()){if(ot.getConfigValue("auth.disableAutoLogin"))return;let a=!0;return n&&(a=await _i.handleAuthEvent("onAuthExpired",t)),a?this.startAuthorization():void 0}this.idpProviderInstance.settings&&M.isFunction(this.idpProviderInstance.settings.userInfoFn)?this.idpProviderInstance.settings.userInfoFn(this.idpProviderInstance.settings,n).then(a=>{this.setUserInfo(a),this.setLoggedIn(!0)}):M.isFunction(this.idpProviderInstance.userInfo)?this.idpProviderInstance.userInfo(t).then(a=>{this.setUserInfo(a),this.setLoggedIn(!0)}):(this.setLoggedIn(!0),this.setUserInfo(Bh(this._userInfoStore))),M.isFunction(ot.getConfigValue("auth.events.onAuthSuccessful"))&&rn.isNewlyAuthorized()&&await _i.handleAuthEvent("onAuthSuccessful",t,n),rn.removeNewlyAuthorized(),M.isFunction(this.idpProviderInstance.setTokenExpirationAction)&&this.idpProviderInstance.setTokenExpirationAction(),M.isFunction(this.idpProviderInstance.setTokenExpireSoonAction)&&this.idpProviderInstance.setTokenExpireSoonAction()}async startAuthorization(){if(this.idpProviderInstance)return this.idpProviderInstance.login().then(t=>{rn.setNewlyAuthorized(),t&&console.error(t)})}logout(){const t=ir.getStoredAuthData(),n=async l=>{await _i.handleAuthEvent("onLogout",this.idpProviderInstance.settings,void 0,l),rn.removeAuthData()},s=ot.getConfigValue(`auth.${ot.getConfigValue("auth.use")}.logoutFn`),a=ot.getConfigValueAsync("navigation.profile.logout.customLogoutFn");M.isFunction(s)?s(this.idpProviderInstance.settings,t,n):M.isFunction(this.idpProviderInstance.logout)?this.idpProviderInstance.logout(t,n):a&&M.isFunction(a)?a(t,n):n(this.idpProviderInstance.settings.logoutUrl)}createIdpProviderException(t){return{message:t,name:"IdpProviderException"}}async getIdpProviderInstance(t,n){const s=M.getConfigValueFromObject(n,"idpProvider");if(s){const l=await new s(n);return["login"].forEach(u=>{if(!M.isFunction(l[u]))throw this.createIdpProviderException(`${u} function does not exist in custom IDP Provider ${t}`)}),l}if(M.isFunction(ot.getConfigValue("auth.events.onAuthConfigError")))await _i.handleAuthEvent("onAuthConfigError",{idpProviderName:t,type:"IdpProviderException"});else throw this.createIdpProviderException(`IDP Provider ${t} does not exist.`)}unload(){this.idpProviderInstance&&M.isFunction(this.idpProviderInstance.unload)&&this.idpProviderInstance.unload()}resetExpirationChecks(){this.idpProviderInstance&&M.isFunction(this.idpProviderInstance.resetExpirationChecks)&&this.idpProviderInstance.resetExpirationChecks()}broadcastAuthData(t){const s=ot.getLuigi()?.getEngine()?._connector?.getContainerWrapper();if(s){for(const a of s.childNodes)a.tagName?.startsWith("LUIGI-")&&a.setAttribute("auth-data",JSON.stringify(t));G.modalContainer?.forEach(a=>a.setAttribute("auth-data",JSON.stringify(t))),G.drawerContainer&&G.drawerContainer.setAttribute("auth-data",JSON.stringify(t))}}}const ar=new iC,sC={luigi:{button:{confirm:"Yes",dismiss:"No"},confirmationModal:{body:"Are you sure you want to do this?",header:"Confirmation"},navigation:{up:"Up"},notExactTargetNode:"Could not map the exact target node for the requested route {route}.",requestedRouteNotFound:"Could not find the requested route {route}.",unsavedChangesAlert:{body:"Unsaved changes will be lost. Do you want to continue?",header:"Unsaved changes detected"}}},aC=sC;class oC{constructor(t){this.luigi=t,this.currentLocaleStorageKey="luigi.currentLocale",this.defaultLocale="en",this.listeners={},this.translationTable=aC}_init(){this._initCustomImplementation(),this.addCurrentLocaleChangeListener(t=>{this.broadcastLocaleToAllContainers(t)})}getCurrentLocale(){return sessionStorage.getItem(this.currentLocaleStorageKey)||this.defaultLocale}setCurrentLocale(t){t&&(sessionStorage.setItem(this.currentLocaleStorageKey,t),this._notifyLocaleChange(t)),this.luigi.getEngine()._connector?.setCurrentLocale(t)}addCurrentLocaleChangeListener(t){let n=null;return M.isFunction(t)?(n=M.getRandomId(),this.listeners[n]=t):console.error("Provided locale change listener is not a function."),n}removeCurrentLocaleChangeListener(t){t&&this.listeners[t]?delete this.listeners[t]:console.error("Unable to remove locale change listener - no listener registered for given ID.")}getTranslation(t,n=void 0,s=void 0){if(!t)return"";if(this.translationImpl){const l=this.translationImpl.getTranslation(t,n,s);if(l!==t)return l}const a=this.findTranslation(t,this.translationTable,n);return a||t}_notifyLocaleChange(t){Object.getOwnPropertyNames(this.listeners).forEach(n=>{this.listeners[Number(n)](t)}),this.luigi.configChanged()}_initCustomImplementation(){this.translationImpl=this.luigi.getConfigValue("settings.customTranslationImplementation"),M.isFunction(this.translationImpl)&&(this.translationImpl=this.translationImpl())}broadcastLocaleToAllContainers(t){const n=M.getNodeList("luigi-container[lui_container]");n?.length&&t&&n.forEach(s=>{s.locale=t,s.updateContext({locale:t})})}findTranslation(t,n,s){const a=t.split(".");for(let l=0;l<a.length;l++){const u=a[l];if(Object.prototype.hasOwnProperty.call(n,u)&&typeof n[u]=="object")n=n[u];else return s?this.findInterpolations(n[u],s):n[u]}}findInterpolations(t,n){return typeof t!="string"||!t.trim()||Object.keys(n).forEach(s=>{t=t.replace(new RegExp("{"+Ba.escapeKeyForRegexp(s)+"}","gi"),n[s])}),t}}const Kl={getMicrofrontendsInDom(r){return[...this.getMainMicrofrontends(r).map(t=>({container:t.iframe,active:t.active,type:"main",id:t.id})),...this.getModalMicrofrontends().map(t=>({container:t.iframe,active:t.active,type:"modal",id:t.id})),...(()=>{const t=this.getDrawerMicrofrontends();return t.iframe?[{container:t.iframe,active:t.active,type:"drawer",id:t.id}]:[]})()]},getMainMicrofrontends(r){const t=r.getEngine()._connector?.getContainerWrapper();if(!t)return[];const n=[];for(const s of t.childNodes)if(s.tagName?.startsWith("LUIGI-"))if(s.iframeHandle?.iframe)n.push({iframe:s.iframeHandle.iframe,id:s.luigiMfId,active:M.isElementVisible(s)});else{const a=s.shadowRoot?.firstElementChild?.firstElementChild??null;a&&n.push({iframe:a,id:s.luigiMfId,active:M.isElementVisible(s)})}return n},getModalMicrofrontends(){const r=[];for(const t of G.modalContainer)if(t.iframeHandle?.iframe)r.push({iframe:t.iframeHandle.iframe,id:t.luigiMfId,active:M.isElementVisible(t)});else{const n=t.shadowRoot?.firstElementChild?.firstElementChild??null;n&&r.push({iframe:n,id:t.luigiMfId,active:M.isElementVisible(t)})}return r},getDrawerMicrofrontends(){if(!G.drawerContainer)return{};if(G.drawerContainer.iframeHandle?.iframe)return{iframe:G.drawerContainer.iframeHandle.iframe,id:G.drawerContainer.luigiMfId,active:M.isElementVisible(G.drawerContainer)};{const r=G.drawerContainer.shadowRoot?.firstElementChild?.firstElementChild??null;if(r)return{iframe:r,id:G.drawerContainer.luigiMfId,active:M.isElementVisible(G.drawerContainer)}}return{}},getAllLuigiContainerIframe(r){const t=r.getEngine()._connector?.getContainerWrapper();if(!t)return;const n=[...t.children].filter(s=>s.tagName?.indexOf("LUIGI-CONTAINER")===0&&s.iframeHandle?.iframe);for(const s of G.modalContainer)s.iframeHandle?.iframe&&n.push(s);return G.drawerContainer&&G.drawerContainer.iframeHandle?.iframe&&n.push(G.drawerContainer),n.length>0?n:void 0}};class lC{constructor(t){this.luigi=t}getShellbar(){return this.luigi.getEngine()._connector?.getCoreAPISupportedElements().getShellbarElement()||null}getShellbarActions(){return this.luigi.getEngine()._connector?.getCoreAPISupportedElements().getShellbarActions()||null}getLuigiContainer(){return this.luigi.getEngine()._connector?.getCoreAPISupportedElements().getLuigiContainer()||null}getNavFooterContainer(){return this.luigi.getEngine()._connector?.getCoreAPISupportedElements().getNavFooterContainer()||null}getMicrofrontends(){return Kl.getMicrofrontendsInDom(this.luigi)}getMicrofrontendIframes(){const t=this.luigi.getEngine()._connector?.getContainerWrapper();let n=[];if(G.modalContainer)for(const s of Array.from(G.modalContainer))s.tagName?.startsWith("LUIGI-")&&s.iframeHandle?.iframe&&n.push(s.iframeHandle.iframe);if(G.drawerContainer&&n.push(G.drawerContainer.iframeHandle.iframe),!t)return null;for(const s of Array.from(t.childNodes))s.tagName?.startsWith("LUIGI-")&&s.iframeHandle?.iframe&&n.push(s.iframeHandle.iframe);return n}getCurrentMicrofrontendIframe(){const t=this.luigi.getEngine()._connector?.getContainerWrapper();if(!t)return null;const n=G.modalContainer[0]?.iframeHandle?.iframe??null;let s=null,a=null;for(const l of Array.from(t.children))l.tagName?.startsWith("LUIGI-")&&M.isElementVisible(l)&&(l.iframeHandle?.iframe?s=l.iframeHandle.iframe:a=l.shadowRoot?.firstElementChild?.firstElementChild??null);return n||s||a}}const uC={luigiAfterInit:async r=>{M.getConfigBooleanValue(r.getConfig(),"settings.appLoadingIndicator.hideAutomatically")&&setTimeout(()=>{r.ux().hideAppLoadingIndicator()},0),await ot.executeConfigFnAsync("lifecycleHooks.luigiAfterInit")}};class cC{constructor(){this.featureToggleList=new Set}setFeatureToggle(t,n=!1){this.isValid(t)&&(t.startsWith("!")&&!n||this.isDuplicatedOrDisabled(t)||this.featureToggleList.add(t))}unsetFeatureToggle(t){if(this.isValid(t)){if(!this.featureToggleList.has(t)){console.warn("Feature toggle name is not in the list.");return}this.featureToggleList.delete(t)}}getActiveFeatureToggleList(){return[...Array.from(this.featureToggleList)].filter(n=>!n.startsWith("!"))}isValid(t){return M.isString(t)?!0:(console.warn("Feature toggle name is not valid or not of type 'string'"),!1)}isDuplicatedOrDisabled(t){return this.featureToggleList.has(t)?(console.warn("Feature toggle name already exists"),!0):this.featureToggleList.has(`!${t}`)?(console.warn("Disabled feature toggle can not be activated"),!0):!1}}class fC{constructor(t){this.hashRouting=!1,this.options={fromContext:null,fromClosestContext:!1,fromVirtualTreeRoot:!1,fromParent:!1,nodeParams:{}},this.navigate=async(n,s,a,l,u)=>{const f=n[0]!=="/";this.options.relative=f;const h={modalSettings:a,newTab:!1,options:this.options,path:n,preserveView:s,preventContextUpdate:!1,preventHistoryEntry:!1,withoutSync:!1};return this.navService.handleNavigationRequest(h,void 0)},this.navigateToIntent=(n,s={})=>{let a="#?intent=";if(a+=n,s&&Object.keys(s)?.length){const l=Object.entries(s);if(l.length>0){a+="?";for(const[u,f]of l)a+=u+"="+f+"&";a=a.slice(0,-1)}}this.navigate(a)},this.openAsModal=async(n,s,a)=>{if(!s?.keepPrevious&&!await this.modalService.closeModalsWithDirtyCheck())return;const l=n.replace(/\/\/+/g,"/");if(!await Oe.validatePathAndGetRedirect(l,this.luigi))return;const f=await this.navService.getCurrentNode(l),h=s||{};h.title||(h.title=f?.label),this.luigi.getConfigValue("routing.showModalPathInUrl")&&this.modalService.getModalStackLength()===0&&this.routingService.appendModalDataToUrl(l,h),this.luigi.getEngine()._ui.openModal(this.luigi,f,h,a)},this.openAsDrawer=async(n,s,a)=>{const l=n.replace(/\/\/+/g,"/");if(!await Oe.validatePathAndGetRedirect(l,this.luigi))return;const f=await this.navService.getCurrentNode(l),h=s||{};if(!h.header?.title){const _=await D.getNodeLabel(f,this.luigi)||"";h.header?h.header.title=_:h.header={title:_}}h.overlap===void 0&&(h.overlap=!0),this.luigi.getEngine()._ui.openDrawer(this.luigi,f,h,a)},this.runTimeErrorHandler=async n=>{const{path:s}=D.getCurrentPath(this.luigi,this.luigi.getConfig().routing?.useHashRouting),a=await this.navService.getCurrentNode(s),l=this.luigi.getConfigValue("navigation.defaults.runTimeErrorHandler");a?.runTimeErrorHandler?.errorFn&&M.isFunction(a?.runTimeErrorHandler?.errorFn)?a.runTimeErrorHandler.errorFn(n,a):l?.errorFn&&M.isFunction(l.errorFn)&&l.errorFn(n,a)},this.pathExists=async n=>await D.pathExists(n,this.luigi),this.luigi=t,this.hashRouting=t.getConfig().routing?.useHashRouting,this.navService=j.get(dr),this.routingService=j.get(Wr),this.modalService=j.get(fr)}fromVirtualTreeRoot(){return this.options.fromContext=null,this.options.fromClosestContext=!1,this.options.fromVirtualTreeRoot=!0,this.options.fromParent=!1,this}fromContext(t){return this.options.fromContext=t,this}fromClosestContext(){return this.options.fromContext=null,this.options.fromClosestContext=!0,this.options.fromParent=!1,this}fromParent(){return this.options.fromContext=null,this.options.fromClosestContext=!1,this.options.fromVirtualTreeRoot=!1,this.options.fromParent=!0,this}withParams(t){return t&&Object.assign(this.options.nodeParams??{},t),this}}class hC{constructor(t){this.luigi=t}addSearchParams(t,n=!1){if(!M.isObject(t)){console.log("Params argument must be an object");return}const s=new URL(location.href);this.luigi.getConfigValue("routing.useHashRouting")?s.hash=D.addParamsOnHashRouting(t,s.hash):D.modifySearchParams(t,s.searchParams),this.handleBrowserHistory(n,s),this.luigi.configChanged()}getSearchParams(){const t={},n=["__proto__","constructor","prototype"],s=new URL(location.href);let a;if(this.luigi.getConfigValue("routing.useHashRouting")){const l=s.hash.split("?")[1];a=l?new URLSearchParams(l).entries():[]}else a=s.searchParams.entries();for(const[l,u]of a){if(n.some(f=>l===f)){console.warn(`Blocked because of potentially dangerous query param: ${l}`);continue}t[l]=u}return t}handleBrowserHistory(t,n){const s=this.sanitizeUrl(n.href);if(!s){console.warn("invalid url: "+s);return}t?window.history.pushState({},"",s):window.history.replaceState({},"",s)}sanitizeUrl(t){return new URL(location.href).origin===new URL(t).origin?t:void 0}addNodeParams(t,n){if(!M.isObject(t)){console.log("Params argument must be an object");return}const s=D.getContentViewParamPrefix(this.luigi),a=new URL(location.href);this.luigi.getConfigValue("routing.useHashRouting")?a.hash=D.addParamsOnHashRouting(t,a.hash,s):D.modifySearchParams(t,a.searchParams,s),this.handleBrowserHistory(n,a),this.luigi.getConfigValue("routing.useHashRouting")?window.dispatchEvent(new HashChangeEvent("hashchange")):this.luigi.configChanged()}}class dC{#e;#n="";constructor(t){this.#e=t}async getAvailableThemes(){return await this.#e.getConfigValueAsync("settings.theming.themes")}setCurrentTheme(t){this.#n=t,this.#e.__cssVars=void 0}async getThemeObject(t){return(await this.getAvailableThemes())?.find(s=>s.id===t)}getCurrentTheme(){if(!this.isThemingAvailable())return!1;if(this.#n)return this.#n;const t=this.#e.getConfigValue("settings.theming");return t.defaultTheme||console.error("[Theming] getCurrentTheme() error. No theme set and no defaultTheme found in configuration",t),t.defaultTheme}isThemingAvailable(){return!!this.#e.getConfigValue("settings.theming")}async getCSSVariables(){if(!window.Luigi.__cssVars){const t=this.#e.getConfigValue("settings.theming.variables.file");if(t)try{const n=await fetch(t);window.Luigi.__cssVars=(await n.json()).root,Object.keys(window.Luigi.__cssVars).forEach(s=>{const a=getComputedStyle(document.documentElement).getPropertyValue("--"+s);a&&(window.Luigi.__cssVars[s]=a)})}catch(n){M.isFunction(this.#e.getConfigValue("settings.theming.variables.errorHandling"))?this.#e.getConfigValue("settings.theming.variables.errorHandling")(n):console.error("CSS variables file error: ",n)}else this.#e.getConfigValue("settings.theming.variables")==="fiori"&&window.__luigiThemeVars?(window.Luigi.__cssVars={},window.__luigiThemeVars.forEach(n=>{window.Luigi.__cssVars[n]=getComputedStyle(document.documentElement).getPropertyValue("--"+n)})):window.Luigi.__cssVars={}}return window.Luigi.__cssVars}_init(){const t=j.get(Mi);(()=>{const s=this.#e.getConfigValue("settings.theming");s&&s.nodeViewURLDecorator&&s.nodeViewURLDecorator.queryStringParameter&&t.add({type:"queryString",uid:"theming",key:s.nodeViewURLDecorator.queryStringParameter.keyName,valueFn:()=>{const a=this.getCurrentTheme(),l=s.nodeViewURLDecorator.queryStringParameter.value;return l?l(a):a}}),s&&s.useFioriScrollbars===!0&&document.body.classList.add("fioriScrollbars")})()}}let Lh;const qe={luigi:void 0,documentTitle:void 0,init:r=>{qe.luigi=r,qe.documentTitle=$a(void 0),Lh=j.get(un)},processAlert:(r,t,n)=>{if(!qe.luigi)throw new Error("Luigi is not initialized.");const s={openFromClient:t,close:()=>{r.id&&n.notifyAlertClosed(r.id)},link:a=>{if(r.links){const l=r.links[a];if(l&&(l.url&&qe.luigi?.navigation().navigate(l.url),l.dismissKey&&r.id))return n.notifyAlertClosed(r.id,l.dismissKey),!0}return!1}};qe.luigi.getEngine()._connector?.renderAlert(r,s)},handleConfirmationModalRequest:(r,t)=>{if(!qe.luigi)throw new Error("Luigi is not initialized.");r&&(r={...r,header:qe.luigi.i18n().getTranslation(r.header||"luigi.confirmationModal.header"),body:qe.luigi.i18n().getTranslation(r.body||"luigi.confirmationModal.body"),buttonDismiss:qe.luigi.i18n().getTranslation(r.buttonDismiss||"luigi.button.dismiss"),buttonConfirm:qe.luigi.i18n().getTranslation(r.buttonConfirm||"luigi.button.confirm")}),qe.luigi.getEngine()._connector?.renderConfirmationModal(r,{confirm(){t.notifyConfirmationModalClosed(!0)},dismiss(){t.notifyConfirmationModalClosed(!1)}})},handleDirtyStatusRequest:(r,t)=>{if(!qe.luigi)throw new Error("Luigi is not initialized.");Lh.updateDirtyStatus(r,t)}};class gC{processUserSettingGroups(t,n){const s=[],a=t?.userSettingGroups,l=n?.userSettings?.userSettingGroups,u=a||l;if(M.isObject(u)){for(const f in u){const h={};h[f]=u[f],s.push(h)}return s}return s}getUserSettingsIframesInDom(){const t=document.querySelector(".iframeUserSettingsCtn");return t?[...t.children]:[]}hideUserSettingsIframe(){this.getUserSettingsIframesInDom().forEach(t=>{t.style.display="none"})}findActiveCustomUserSettingsIframe(t){const n=document.querySelectorAll("[userSettingsGroup]");for(let s=0;s<n.length;s++)if(n[s].contentWindow===t)return n[s];return null}}const pC=new gC;class vC{constructor(t){this.dirtyStatusService=j.get(un),this.appLoadingIndicatorSelector="[luigi-app-loading-indicator]",this.showAlert=n=>new Promise(s=>{n.id||(n.id=M.getRandomId().toString());const a={openFromClient:!1,close:()=>{s(!0)},link:l=>{if(n.links){const u=n.links[l];if(u&&(u.url&&this.luigi?.navigation().navigate(u.url),u.dismissKey))return s(u.dismissKey),!0}return!1}};this.luigi.getEngine()._connector?.renderAlert(n,a)}),this.showConfirmationModal=n=>(n&&(n={...n,header:this.luigi.i18n().getTranslation(n.header||"luigi.confirmationModal.header"),body:this.luigi.i18n().getTranslation(n.body||"luigi.confirmationModal.body"),buttonDismiss:this.luigi.i18n().getTranslation(n.buttonDismiss||"luigi.button.dismiss"),buttonConfirm:this.luigi.i18n().getTranslation(n.buttonConfirm||"luigi.button.confirm")}),new Promise((s,a)=>{this.luigi.getEngine()._connector?.renderConfirmationModal(n,{confirm(){s(!0)},dismiss(){a()}})})),this.openUserSettings=async()=>{const n=this.luigi.getConfigValue("userSettings");if(!n)return;const s=this.luigi.getConfigValue("settings"),a=await this.luigi.readUserSettings(),l=pC.processUserSettingGroups(n,s),u=n.userSettingsDialog||{},f=u.dialogHeader||Mr.userSettingsDialog.dialogHeader,h=u.saveBtn||Mr.userSettingsDialog.saveBtn,g=u.dismissBtn||Mr.userSettingsDialog.dismissBtn,_={dialogHeader:this.luigi.i18n().getTranslation(f),saveBtn:this.luigi.i18n().getTranslation(h),dismissBtn:this.luigi.i18n().getTranslation(g)};this.luigi.getEngine()._ui?.openUserSettings(_,l,a,this.luigi)},this.closeUserSettings=()=>{this.luigi.getEngine()._connector?.closeUserSettings()},this.setDocumentTitle=n=>{this.luigi.getEngine()._ux?.documentTitle?.set(n),this.luigi.getEngine()._connector?.setDocumentTitle(n)},this.getDocumentTitle=()=>Bh(this.luigi.getEngine()._ux?.documentTitle)||window.document.title||"",this.hideAppLoadingIndicator=()=>{const n=document.querySelector(this.appLoadingIndicatorSelector);n&&(n.classList.add("hidden"),setTimeout(()=>{n.parentNode?.removeChild(n)},500))},this.showLoadingIndicator=n=>this.luigi.getEngine()._connector?.showLoadingIndicator(n),this.hideLoadingIndicator=n=>this.luigi.getEngine()._connector?.hideLoadingIndicator(n),this.addBackdrop=()=>this.luigi.getEngine()._connector?.addBackdrop(),this.removeBackdrop=()=>this.luigi.getEngine()._connector?.removeBackdrop(),this.getDirtyStatus=()=>this.dirtyStatusService.readDirtyStatus(),this.luigi=t}}class _C{filterIdFromMessageObject(t){const{id:n,...s}=t;return{id:n,messageWithoutId:s}}}const Nh=new _C;class mC{constructor(t){this.luigi=t}sendToAll(t){const n=Kl.getAllLuigiContainerIframe(this.luigi);if(!n){console.warn("No Luigi containers found to send the message to.");return}const{id:s,messageWithoutId:a}=Nh.filterIdFromMessageObject(t);if(!s){console.warn('Message object must contain an "id" property to specify the message type.');return}for(const l of n)l.sendCustomMessage?l.sendCustomMessage(s,a):console.warn("Container does not support sending custom messages:",l)}send(t,n){const s=Kl.getAllLuigiContainerIframe(this.luigi);if(!s){console.warn("No Luigi containers found to send the message to.");return}const{id:a,messageWithoutId:l}=Nh.filterIdFromMessageObject(n);if(!a){console.warn('Message object must contain an "id" property to specify the message type.');return}for(const u of s)if(u.luigiMfId===t){u.sendCustomMessage?u.sendCustomMessage(a,l):console.warn("Container does not support sending custom messages:",u);return}console.warn(`No container found with microfrontend ID: ${t}`)}}class wC{constructor(t){this.engine=t,this.initialized=!1,this.configReadyCallback=function(){},this.USER_SETTINGS_KEY="luigi.preferences.userSettings",this.setConfig=n=>{this.config=n,this.setConfigCallback(this.getConfigReadyCallback()),ar.init().then(()=>{this.engine.init(),this.initialized||(this.initialized=!0,uC.luigiAfterInit(this))})},this.getConfig=()=>this.config,this.configChanged=(...n)=>{this.getEngine()._ui.update(n)},this.customMessages=()=>(this._customMessages||(this._customMessages=new mC(this)),this._customMessages),this.i18n=()=>(this._i18n||(this._i18n=new oC(this)),this._i18n),this.elements=()=>(this._elements||(this._elements=new lC(this)),this._elements),this.navigation=()=>new fC(this),this.ux=()=>new vC(this),this.featureToggles=()=>(this._featureToggles||(this._featureToggles=new cC),this._featureToggles),this.routing=()=>(this._routing||(this._routing=new hC(this)),this._routing),this.theming=()=>(this._theming||(this._theming=new dC(this)),this._theming),this.auth=()=>_i,this._store=this.createConfigStore()}getEngine(){return this.engine}getConfigValue(t){return M.getConfigValueFromObject(this.getConfig(),t)}getConfigValueAsync(t,...n){return $r.getConfigValueFromObjectAsync(this.getConfig(),t,n)}clearNavigationCache(){j.get(hr).deleteCache();const t=n=>{n&&n.forEach&&n.forEach(s=>{s.titleResolver&&s.titleResolver._cache&&(s.titleResolver._cache=void 0),s.children&&t(s.children)})};t(this.getConfig().navigation.nodes)}setGlobalContext(t,n){this.config&&this.config.navigation&&(this.config.navigation.globalContext=t,n||this.configChanged("navigation"))}getGlobalContext(){return this.config?.navigation?.globalContext||{}}updateContextValues(t){const n=M.getNodeList("luigi-container[lui_container]");n&&n.forEach(s=>{const l={...s.context||{},...t};s.context=l,s.updateContext&&s.updateContext(l,{withoutSync:!1})})}async readUserSettings(){const t=await this.getConfigValueAsync("userSettings"),n=t||await this.getConfigValueAsync("settings.userSettings");if(n&&M.isFunction(n.readUserSettings))return n.readUserSettings();const s=localStorage.getItem(this.USER_SETTINGS_KEY);return s&&JSON.parse(s)}async storeUserSettings(t,n){const s=await this.getConfigValueAsync("userSettings"),a=s||await this.getConfigValueAsync("settings.userSettings");if(a&&M.isFunction(a.storeUserSettings))return a.storeUserSettings(t,n);localStorage.setItem(this.USER_SETTINGS_KEY,JSON.stringify(t)),this.configChanged()}reset(){const t=this.getConfig();this.unload(),this.setConfig(t)}unload(){this.initialized=!1,window.Luigi._store.clear(),ar.unload(),zl.removeAllEventListeners(),this.getEngine()._connector?.unload(),this._i18n=void 0}createConfigStore(){const t=$a({}),n={};let s=[];return{subscribe:a=>{s.push(t.subscribe(a))},reset:a=>{t.update(a)},subscribeToScope:(a,l)=>{let u=n[l];u||(u=new Set,n[l]=u),u.add(a)},fire:(a,l)=>{const u=n[a];u&&[...u].forEach(f=>{f(l)})},clear:()=>{s.forEach(a=>{a()}),s=[]}}}getConfigReadyCallback(){return new Promise(t=>{this.i18n()._init(),t()})}setConfigCallback(t){this.configReadyCallback=t}}const Kd=!1;var SC=Array.isArray,yC=Array.prototype.indexOf,ki=Array.prototype.includes,EC=Array.from,CC=Object.defineProperty,ps=Object.getOwnPropertyDescriptor,bC=Object.prototype,TC=Array.prototype,RC=Object.getPrototypeOf,Oh=Object.isExtensible;const AC=()=>{};function PC(r){for(var t=0;t<r.length;t++)r[t]()}function IC(){var r,t,n=new Promise((s,a)=>{r=s,t=a});return{promise:n,resolve:r,reject:t}}const rt=2,bs=4,jd=8,Yd=1<<24,an=16,gr=32,pr=64,jl=128,qt=512,Je=1024,nt=2048,Cn=4096,Sn=8192,lr=16384,Ls=32768,Uh=1<<25,Ga=65536,Qa=1<<17,xC=1<<18,Ja=1<<19,LC=1<<20,Kr=65536,qa=1<<21,vs=1<<22,Ts=1<<23,Ll=Symbol("$state"),NC=Symbol("attributes"),OC=Symbol("class"),UC=Symbol("style"),DC=Symbol("text"),_u=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function MC(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function kC(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function $C(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function FC(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function HC(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const tt=Symbol();function VC(){console.warn("https://svelte.dev/e/derived_inert")}function WC(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function BC(r){return r===this.v}let mu=!1,GC=!1;function QC(){mu=!0}let fn=null;function za(r){fn=r}function qC(r,t=!1,n){fn={p:fn,i:!1,c:null,e:null,s:r,x:null,r:Le,l:mu&&!t?{s:null,u:null,$:[]}:null}}function zC(r){var t=fn,n=t.e;if(n!==null){t.e=null;for(var s of n)o0(s)}return t.i=!0,fn=t.p,{}}function Xa(){return!mu||fn!==null&&fn.l===null}let Ci=[];function KC(){var r=Ci;Ci=[],PC(r)}function Pi(r){if(Ci.length===0){var t=Ci;queueMicrotask(()=>{t===Ci&&KC()})}Ci.push(r)}function Jd(r){var t=Le;if(t===null)return ye.f|=Ts,r;if((t.f&Ls)===0&&(t.f&bs)===0)throw r;bi(r,t)}function bi(r,t){for(;t!==null;){if((t.f&jl)!==0){if((t.f&Ls)===0)throw r;try{t.b.error(r);return}catch(n){r=n}}t=t.parent}throw r}const jC=-7169;function Fe(r,t){r.f=r.f&jC|t}function wu(r){(r.f&qt)!==0||r.deps===null?Fe(r,Je):Fe(r,Cn)}function Xd(r){if(r!==null)for(const t of r)(t.f&rt)===0||(t.f&Kr)===0||(t.f^=Kr,Xd(t.deps))}function Zd(r,t,n){(r.f&nt)!==0?t.add(r):(r.f&Cn)!==0&&n.add(r),Xd(r.deps),Fe(r,Je)}let Nl=null,gi=null,Ie=null,Yl=null,on=null,Jl=null,Ol=!1,Ti=null,Da=null;var Dh=0;let YC=1;class jr{id=YC++;#e=!1;linked=!0;#n=null;#t=null;async_deriveds=new Map;current=new Map;previous=new Map;unblocked=new Set;#l=new Set;#i=new Set;#o=new Set;#s=0;#r=new Map;#h=null;#a=[];#g=[];#d=new Set;#c=new Set;#f=new Map;#u=new Set;is_fork=!1;#_=!1;#E(){if(this.is_fork)return!0;for(const s of this.#r.keys()){for(var t=s,n=!1;t.parent!==null;){if(this.#f.has(t)){n=!0;break}t=t.parent}if(!n)return!0}return!1}skip_effect(t){this.#f.has(t)||this.#f.set(t,{d:[],m:[]}),this.#u.delete(t)}unskip_effect(t,n=s=>this.schedule(s)){var s=this.#f.get(t);if(s){this.#f.delete(t);for(var a of s.d)Fe(a,nt),n(a);for(a of s.m)Fe(a,Cn),n(a)}this.#u.add(t)}#v(){if(this.#e=!0,Dh++>1e3&&(this.#S(),JC()),!this.#E()){for(const h of this.#d)this.#c.delete(h),Fe(h,nt),this.schedule(h);for(const h of this.#c)Fe(h,Cn),this.schedule(h)}const t=this.#a;this.#a=[],this.apply();var n=Ti=[],s=[],a=Da=[];for(const h of t)try{this.#C(h,n,s)}catch(g){throw ng(h),g}if(Ie=null,a.length>0){var l=jr.ensure();for(const h of a)l.schedule(h)}if(Ti=null,Da=null,this.#E()){this.#p(s),this.#p(n);for(const[h,g]of this.#f)tg(h,g);a.length>0&&Ie.#v();return}const u=this.#y();if(u){u.#m(this);return}this.#d.clear(),this.#c.clear();for(const h of this.#l)h(this);this.#l.clear(),Yl=this,Mh(s),Mh(n),Yl=null,this.#h?.resolve();var f=Ie;if(this.linked&&this.#s===0&&this.#S(),this.#a.length>0){f===null&&(f=this,this.#w());const h=f;h.#a.push(...this.#a.filter(g=>!h.#a.includes(g)))}f!==null&&f.#v()}#C(t,n,s){t.f^=Je;for(var a=t.first;a!==null;){var l=a.f,u=(l&(gr|pr))!==0,f=u&&(l&Je)!==0,h=f||(l&Sn)!==0||this.#f.has(a);if(!h&&a.fn!==null){u?a.f^=Je:(l&bs)!==0?n.push(a):Os(a)&&((l&an)!==0&&this.#c.add(a),$i(a));var g=a.first;if(g!==null){a=g;continue}}for(;a!==null;){var _=a.next;if(_!==null){a=_;break}a=a.parent}}}#y(){for(var t=this.#n;t!==null;){if(!t.is_fork){for(const[n,[,s]]of this.current)if(t.current.has(n)&&!s)return t}t=t.#n}return null}#m(t){for(const[s,a]of t.current)!this.previous.has(s)&&t.previous.has(s)&&this.previous.set(s,t.previous.get(s)),this.current.set(s,a);for(const[s,a]of t.async_deriveds){const l=this.async_deriveds.get(s);l&&a.promise.then(l.resolve)}const n=s=>{var a=s.reactions;if(a!==null)for(const f of a){var l=f.f;if((l&rt)!==0)n(f);else{var u=f;l&(vs|an)&&!this.async_deriveds.has(u)&&(this.#c.delete(u),Fe(u,nt),this.schedule(u))}}};for(const s of this.current.keys())n(s);this.oncommit(()=>t.discard()),t.#S(),Ie=this,this.#v()}#p(t){for(var n=0;n<t.length;n+=1)Zd(t[n],this.#d,this.#c)}capture(t,n,s=!1){t.v!==tt&&!this.previous.has(t)&&this.previous.set(t,t.v),(t.f&Ts)===0&&(this.current.set(t,[n,s]),on?.set(t,n)),this.is_fork||(t.v=n)}activate(){Ie=this}deactivate(){Ie=null,on=null}flush(){try{Ol=!0,Ie=this,this.#v()}finally{Dh=0,Jl=null,Ti=null,Da=null,Ol=!1,Ie=null,on=null,Br.clear()}}discard(){for(const t of this.#i)t(this);this.#i.clear(),this.#o.clear(),this.#S()}register_created_effect(t){this.#g.push(t)}#b(){this.#S();for(let _=Nl;_!==null;_=_.#t){var t=_.id<this.id,n=[];for(const[w,[m,E]]of this.current){if(_.current.has(w)){var s=_.current.get(w)[0];if(t&&m!==s)_.current.set(w,[m,E]);else continue}n.push(w)}if(t)for(const[w,m]of this.async_deriveds){const E=_.async_deriveds.get(w);E&&m.promise.then(E.resolve)}if(_.#e){var a=[..._.current.keys()].filter(w=>!this.current.has(w));if(a.length===0)t&&_.discard();else if(n.length>0){if(t)for(const w of this.#u)_.unskip_effect(w,m=>{(m.f&(an|vs))!==0?_.schedule(m):_.#p([m])});_.activate();var l=new Set,u=new Map;for(var f of n)eg(f,a,l,u);u=new Map;var h=[..._.current.keys()].filter(w=>this.current.has(w)?this.current.get(w)[0]!==w.v:!0);if(h.length>0)for(const w of this.#g)(w.f&(lr|Sn|Qa))===0&&Su(w,h,u)&&((w.f&(vs|an))!==0?(Fe(w,nt),_.schedule(w)):_.#d.add(w));if(_.#a.length>0){_.apply();for(var g of _.#a)_.#C(g,[],[]);_.#a=[]}_.deactivate()}}}}increment(t,n){if(this.#s+=1,t){let s=this.#r.get(n)??0;this.#r.set(n,s+1)}}decrement(t,n){if(this.#s-=1,t){let s=this.#r.get(n)??0;s===1?this.#r.delete(n):this.#r.set(n,s-1)}this.#_||(this.#_=!0,Pi(()=>{this.#_=!1,this.linked&&this.flush()}))}transfer_effects(t,n){for(const s of t)this.#d.add(s);for(const s of n)this.#c.add(s);t.clear(),n.clear()}oncommit(t){this.#l.add(t)}ondiscard(t){this.#i.add(t)}on_fork_commit(t){this.#o.add(t)}run_fork_commit_callbacks(){for(const t of this.#o)t(this);this.#o.clear()}settled(){return(this.#h??=IC()).promise}static ensure(){if(Ie===null){const t=Ie=new jr;t.#w(),Ol||Pi(()=>{t.#e||t.flush()})}return Ie}apply(){{on=null;return}}schedule(t){if(Jl=t,t.b?.is_pending&&(t.f&(bs|jd|Yd))!==0&&(t.f&Ls)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var s=n.f;if(Ti!==null&&n===Le&&(ye===null||(ye.f&rt)===0))return;if((s&(pr|gr))!==0){if((s&Je)===0)return;n.f^=Je}}this.#a.push(n)}#w(){gi===null?Nl=gi=this:(gi.#t=this,this.#n=gi),gi=this}#S(){var t=this.#n,n=this.#t;t===null?Nl=n:t.#t=n,n===null?gi=t:n.#n=t,this.linked=!1}}function JC(){try{MC()}catch(r){bi(r,Jl)}}let kn=null;function Mh(r){var t=r.length;if(t!==0){for(var n=0;n<t;){var s=r[n++];if((s.f&(lr|Sn))===0&&Os(s)&&(kn=new Set,$i(s),s.deps===null&&s.first===null&&s.nodes===null&&s.teardown===null&&s.ac===null&&dg(s),kn?.size>0)){Br.clear();for(const a of kn){if((a.f&(lr|Sn))!==0)continue;const l=[a];let u=a.parent;for(;u!==null;)kn.has(u)&&(kn.delete(u),l.push(u)),u=u.parent;for(let f=l.length-1;f>=0;f--){const h=l[f];(h.f&(lr|Sn))===0&&$i(h)}}kn.clear()}}kn=null}}function eg(r,t,n,s){if(!n.has(r)&&(n.add(r),r.reactions!==null))for(const a of r.reactions){const l=a.f;(l&rt)!==0?eg(a,t,n,s):(l&(vs|an))!==0&&(l&nt)===0&&Su(a,t,s)&&(Fe(a,nt),yu(a))}}function Su(r,t,n){const s=n.get(r);if(s!==void 0)return s;if(r.deps!==null)for(const a of r.deps){if(ki.call(t,a))return!0;if((a.f&rt)!==0&&Su(a,t,n))return n.set(a,!0),!0}return n.set(r,!1),!1}function yu(r){Ie.schedule(r)}function tg(r,t){if(!((r.f&gr)!==0&&(r.f&Je)!==0)){(r.f&nt)!==0?t.d.push(r):(r.f&Cn)!==0&&t.m.push(r),Fe(r,Je);for(var n=r.first;n!==null;)tg(n,t),n=n.next}}function ng(r){Fe(r,Je);for(var t=r.first;t!==null;)ng(t),t=t.next}function XC(r){let t=0,n=Cu(0),s;return()=>{bu()&&(Ri(n),u0(()=>(t===0&&(s=_0(()=>r(()=>_s(n)))),t+=1,()=>{Pi(()=>{t-=1,t===0&&(s?.(),s=void 0,_s(n))})})))}}var ZC=Ga|Ja;function e0(r,t,n,s){new t0(r,t,n,s)}class t0{parent;is_pending=!1;transform_error;#e;#n=null;#t;#l;#i;#o=null;#s=null;#r=null;#h=null;#a=0;#g=0;#d=!1;#c=new Set;#f=new Set;#u=null;#_=XC(()=>(this.#u=Cu(this.#a),()=>{this.#u=null}));constructor(t,n,s,a){this.#e=t,this.#t=n,this.#l=l=>{var u=Le;u.b=this,u.f|=jl,s(l)},this.parent=Le.b,this.transform_error=a??this.parent?.transform_error??(l=>l),this.#i=c0(()=>{this.#y()},ZC)}#E(){try{this.#o=Nr(()=>this.#l(this.#e))}catch(t){this.error(t)}}#v(t){const n=this.#t.failed;n&&(this.#r=Nr(()=>{n(this.#e,()=>t,()=>()=>{})}))}#C(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#s=Nr(()=>t(this.#e)),Pi(()=>{var n=this.#h=document.createDocumentFragment(),s=ug();n.append(s),this.#o=this.#p(()=>Nr(()=>this.#l(s))),this.#g===0&&(this.#e.before(n),this.#h=null,Ma(this.#s,()=>{this.#s=null}),this.#m(Ie))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#g=0,this.#a=0,this.#o=Nr(()=>{this.#l(this.#e)}),this.#g>0){var t=this.#h=document.createDocumentFragment();d0(this.#o,t);const n=this.#t.pending;this.#s=Nr(()=>n(this.#e))}else this.#m(Ie)}catch(n){this.error(n)}}#m(t){this.is_pending=!1,t.transfer_effects(this.#c,this.#f)}defer_effect(t){Zd(t,this.#c,this.#f)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#p(t){var n=Le,s=ye,a=fn;vr(this.#i),bn(this.#i),za(this.#i.ctx);try{return jr.ensure(),t()}catch(l){return Jd(l),null}finally{vr(n),bn(s),za(a)}}#b(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#b(t,n);return}this.#g+=t,this.#g===0&&(this.#m(n),this.#s&&Ma(this.#s,()=>{this.#s=null}),this.#h&&(this.#e.before(this.#h),this.#h=null))}update_pending_count(t,n){this.#b(t,n),this.#a+=t,!(!this.#u||this.#d)&&(this.#d=!0,Pi(()=>{this.#d=!1,this.#u&&ag(this.#u,this.#a)}))}get_effect_pending(){return this.#_(),Ri(this.#u)}error(t){if(!this.#t.onerror&&!this.#t.failed)throw t;Ie?.is_fork?(this.#o&&Ie.skip_effect(this.#o),this.#s&&Ie.skip_effect(this.#s),this.#r&&Ie.skip_effect(this.#r),Ie.on_fork_commit(()=>{this.#w(t)})):this.#w(t)}#w(t){this.#o&&(yn(this.#o),this.#o=null),this.#s&&(yn(this.#s),this.#s=null),this.#r&&(yn(this.#r),this.#r=null);var n=this.#t.onerror;let s=this.#t.failed;var a=!1,l=!1;const u=()=>{if(a){WC();return}a=!0,l&&HC(),this.#r!==null&&Ma(this.#r,()=>{this.#r=null}),this.#p(()=>{this.#y()})},f=h=>{try{l=!0,n?.(h,u),l=!1}catch(g){bi(g,this.#i&&this.#i.parent)}s&&(this.#r=this.#p(()=>{try{return Nr(()=>{var g=Le;g.b=this,g.f|=jl,s(this.#e,()=>h,()=>u)})}catch(g){return bi(g,this.#i.parent),null}}))};Pi(()=>{var h;try{h=this.transform_error(t)}catch(g){bi(g,this.#i&&this.#i.parent);return}h!==null&&typeof h=="object"&&typeof h.then=="function"?h.then(f,g=>bi(g,this.#i&&this.#i.parent)):f(h)})}}function n0(r){var t=r.effects;if(t!==null){r.effects=null;for(var n=0;n<t.length;n+=1)yn(t[n])}}function Eu(r){var t,n=Le,s=r.parent;if(!Yr&&s!==null&&(s.f&(lr|Sn))!==0)return VC(),r.v;vr(s);try{r.f&=~Kr,n0(r),t=mg(r)}finally{vr(n)}return t}function rg(r){var t=Eu(r);if(!r.equals(t)&&(r.wv=vg(),(!Ie?.is_fork||r.deps===null)&&(Ie!==null?(Ie.capture(r,t,!0),Yl?.capture(r,t,!0)):r.v=t,r.deps===null))){Fe(r,Je);return}Yr||(on!==null?(bu()||Ie?.is_fork)&&on.set(r,t):wu(r))}function r0(r){if(r.effects!==null)for(const t of r.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(_u),t.teardown=AC,t.ac=null,Rs(t,0),Tu(t))}function ig(r){if(r.effects!==null)for(const t of r.effects)t.teardown&&$i(t)}let Ka=new Set;const Br=new Map;let sg=!1;function Cu(r,t){var n={f:0,v:r,reactions:null,equals:BC,rv:0,wv:0};return n}function tr(r,t){const n=Cu(r);return g0(n),n}function Or(r,t,n=!1){ye!==null&&(!ln||(ye.f&Qa)!==0)&&Xa()&&(ye.f&(rt|an|vs|Qa))!==0&&(zt===null||!ki.call(zt,r))&&FC();let s=n?us(t):t;return ag(r,s,Da)}function ag(r,t,n=null){if(!r.equals(t)){Br.set(r,Yr?t:r.v);var s=jr.ensure();if(s.capture(r,t),(r.f&rt)!==0){const a=r;(r.f&nt)!==0&&Eu(a),on===null&&wu(a)}r.wv=vg(),og(r,nt,n),Xa()&&Le!==null&&(Le.f&Je)!==0&&(Le.f&(gr|pr))===0&&(Vt===null?p0([r]):Vt.push(r)),!s.is_fork&&Ka.size>0&&!sg&&i0()}return t}function i0(){sg=!1;for(const r of Ka){(r.f&Je)!==0&&Fe(r,Cn);let t;try{t=Os(r)}catch{t=!0}t&&$i(r)}Ka.clear()}function _s(r){Or(r,r.v+1)}function og(r,t,n){var s=r.reactions;if(s!==null)for(var a=Xa(),l=s.length,u=0;u<l;u++){var f=s[u],h=f.f;if(!(!a&&f===Le)){var g=(h&nt)===0;if(g&&Fe(f,t),(h&Qa)!==0)Ka.add(f);else if((h&rt)!==0){var _=f;on?.delete(_),(h&Kr)===0&&(h&qt&&(Le===null||(Le.f&qa)===0)&&(f.f|=Kr),og(_,Cn,n))}else if(g){var w=f;(h&an)!==0&&kn!==null&&kn.add(w),n!==null?n.push(w):yu(w)}}}}function us(r){if(typeof r!="object"||r===null||Ll in r)return r;const t=RC(r);if(t!==bC&&t!==TC)return r;var n=new Map,s=SC(r),a=tr(0),l=Gr,u=f=>{if(Gr===l)return f();var h=ye,g=Gr;bn(null),Fh(l);var _=f();return bn(h),Fh(g),_};return s&&n.set("length",tr(r.length)),new Proxy(r,{defineProperty(f,h,g){(!("value"in g)||g.configurable===!1||g.enumerable===!1||g.writable===!1)&&kC();var _=n.get(h);return _===void 0?u(()=>{var w=tr(g.value);return n.set(h,w),w}):Or(_,g.value,!0),!0},deleteProperty(f,h){var g=n.get(h);if(g===void 0){if(h in f){const _=u(()=>tr(tt));n.set(h,_),_s(a)}}else Or(g,tt),_s(a);return!0},get(f,h,g){if(h===Ll)return r;var _=n.get(h),w=h in f;if(_===void 0&&(!w||ps(f,h)?.writable)&&(_=u(()=>{var E=us(w?f[h]:tt),C=tr(E);return C}),n.set(h,_)),_!==void 0){var m=Ri(_);return m===tt?void 0:m}return Reflect.get(f,h,g)},getOwnPropertyDescriptor(f,h){var g=Reflect.getOwnPropertyDescriptor(f,h);if(g&&"value"in g){var _=n.get(h);_&&(g.value=Ri(_))}else if(g===void 0){var w=n.get(h),m=w?.v;if(w!==void 0&&m!==tt)return{enumerable:!0,configurable:!0,value:m,writable:!0}}return g},has(f,h){if(h===Ll)return!0;var g=n.get(h),_=g!==void 0&&g.v!==tt||Reflect.has(f,h);if(g!==void 0||Le!==null&&(!_||ps(f,h)?.writable)){g===void 0&&(g=u(()=>{var m=_?us(f[h]):tt,E=tr(m);return E}),n.set(h,g));var w=Ri(g);if(w===tt)return!1}return _},set(f,h,g,_){var w=n.get(h),m=h in f;if(s&&h==="length")for(var E=g;E<w.v;E+=1){var C=n.get(E+"");C!==void 0?Or(C,tt):E in f&&(C=u(()=>tr(tt)),n.set(E+"",C))}if(w===void 0)(!m||ps(f,h)?.writable)&&(w=u(()=>tr(void 0)),Or(w,us(g)),n.set(h,w));else{m=w.v!==tt;var R=u(()=>us(g));Or(w,R)}var I=Reflect.getOwnPropertyDescriptor(f,h);if(I?.set&&I.set.call(_,g),!m){if(s&&typeof h=="string"){var N=n.get("length"),F=Number(h);Number.isInteger(F)&&F>=N.v&&Or(N,F+1)}_s(a)}return!0},ownKeys(f){Ri(a);var h=Reflect.ownKeys(f).filter(w=>{var m=n.get(w);return m===void 0||m.v!==tt});for(var[g,_]of n)_.v!==tt&&!(g in f)&&h.push(g);return h},setPrototypeOf(){$C()}})}var kh,lg;function s0(){if(kh===void 0){kh=window;var r=Element.prototype,t=Node.prototype,n=Text.prototype;ps(t,"firstChild").get,lg=ps(t,"nextSibling").get,Oh(r)&&(r[OC]=void 0,r[NC]=null,r[UC]=void 0,r.__e=void 0),Oh(n)&&(n[DC]=void 0)}}function ug(r=""){return document.createTextNode(r)}function cg(r){return lg.call(r)}function fg(r){var t=ye,n=Le;bn(null),vr(null);try{return r()}finally{bn(t),vr(n)}}function a0(r,t){var n=t.last;n===null?t.last=t.first=r:(n.next=r,r.prev=n,t.last=r)}function Ns(r,t){var n=Le;n!==null&&(n.f&Sn)!==0&&(r|=Sn);var s={ctx:fn,deps:null,nodes:null,f:r|nt|qt,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};Ie?.register_created_effect(s);var a=s;if((r&bs)!==0)Ti!==null?Ti.push(s):jr.ensure().schedule(s);else if(t!==null){try{$i(s)}catch(u){throw yn(s),u}a.deps===null&&a.teardown===null&&a.nodes===null&&a.first===a.last&&(a.f&Ja)===0&&(a=a.first,(r&an)!==0&&(r&Ga)!==0&&a!==null&&(a.f|=Ga))}if(a!==null&&(a.parent=n,n!==null&&a0(a,n),ye!==null&&(ye.f&rt)!==0&&(r&pr)===0)){var l=ye;(l.effects??=[]).push(a)}return s}function bu(){return ye!==null&&!ln}function o0(r){return Ns(bs|LC,r)}function l0(r){jr.ensure();const t=Ns(pr|Ja,r);return(n={})=>new Promise(s=>{n.outro?Ma(t,()=>{yn(t),s(void 0)}):(yn(t),s(void 0))})}function u0(r,t=0){return Ns(jd|t,r)}function c0(r,t=0){var n=Ns(an|t,r);return n}function Nr(r){return Ns(gr|Ja,r)}function hg(r){var t=r.teardown;if(t!==null){const n=Yr,s=ye;$h(!0),bn(null);try{t.call(null)}finally{$h(n),bn(s)}}}function Tu(r,t=!1){var n=r.first;for(r.first=r.last=null;n!==null;){const a=n.ac;a!==null&&fg(()=>{a.abort(_u)});var s=n.next;(n.f&pr)!==0?n.parent=null:yn(n,t),n=s}}function f0(r){for(var t=r.first;t!==null;){var n=t.next;(t.f&gr)===0&&yn(t),t=n}}function yn(r,t=!0){var n=!1;(t||(r.f&xC)!==0)&&r.nodes!==null&&r.nodes.end!==null&&(h0(r.nodes.start,r.nodes.end),n=!0),Fe(r,Uh),Tu(r,t&&!n),Rs(r,0);var s=r.nodes&&r.nodes.t;if(s!==null)for(const l of s)l.stop();hg(r),r.f^=Uh,r.f|=lr;var a=r.parent;a!==null&&a.first!==null&&dg(r),r.next=r.prev=r.teardown=r.ctx=r.deps=r.fn=r.nodes=r.ac=r.b=null}function h0(r,t){for(;r!==null;){var n=r===t?null:cg(r);r.remove(),r=n}}function dg(r){var t=r.parent,n=r.prev,s=r.next;n!==null&&(n.next=s),s!==null&&(s.prev=n),t!==null&&(t.first===r&&(t.first=s),t.last===r&&(t.last=n))}function Ma(r,t,n=!0){var s=[];gg(r,s,!0);var a=()=>{n&&yn(r),t&&t()},l=s.length;if(l>0){var u=()=>--l||a();for(var f of s)f.out(u)}else a()}function gg(r,t,n){if((r.f&Sn)===0){r.f^=Sn;var s=r.nodes&&r.nodes.t;if(s!==null)for(const f of s)(f.is_global||n)&&t.push(f);for(var a=r.first;a!==null;){var l=a.next;if((a.f&pr)===0){var u=(a.f&Ga)!==0||(a.f&gr)!==0&&(r.f&an)!==0;gg(a,t,u?n:!1)}a=l}}}function d0(r,t){if(r.nodes)for(var n=r.nodes.start,s=r.nodes.end;n!==null;){var a=n===s?null:cg(n);t.append(n),n=a}}let ka=!1,Yr=!1;function $h(r){Yr=r}let ye=null,ln=!1;function bn(r){ye=r}let Le=null;function vr(r){Le=r}let zt=null;function g0(r){ye!==null&&(zt===null?zt=[r]:zt.push(r))}let vt=null,It=0,Vt=null;function p0(r){Vt=r}let pg=1,kr=0,Gr=kr;function Fh(r){Gr=r}function vg(){return++pg}function Os(r){var t=r.f;if((t&nt)!==0)return!0;if(t&rt&&(r.f&=~Kr),(t&Cn)!==0){for(var n=r.deps,s=n.length,a=0;a<s;a++){var l=n[a];if(Os(l)&&rg(l),l.wv>r.wv)return!0}(t&qt)!==0&&on===null&&Fe(r,Je)}return!1}function _g(r,t,n=!0){var s=r.reactions;if(s!==null&&!(zt!==null&&ki.call(zt,r)))for(var a=0;a<s.length;a++){var l=s[a];(l.f&rt)!==0?_g(l,t,!1):t===l&&(n?Fe(l,nt):(l.f&Je)!==0&&Fe(l,Cn),yu(l))}}function mg(r){var t=vt,n=It,s=Vt,a=ye,l=zt,u=fn,f=ln,h=Gr,g=r.f;vt=null,It=0,Vt=null,ye=(g&(gr|pr))===0?r:null,zt=null,za(r.ctx),ln=!1,Gr=++kr,r.ac!==null&&(fg(()=>{r.ac.abort(_u)}),r.ac=null);try{r.f|=qa;var _=r.fn,w=_();r.f|=Ls;var m=r.deps,E=Ie?.is_fork;if(vt!==null){var C;if(E||Rs(r,It),m!==null&&It>0)for(m.length=It+vt.length,C=0;C<vt.length;C++)m[It+C]=vt[C];else r.deps=m=vt;if(bu()&&(r.f&qt)!==0)for(C=It;C<m.length;C++)(m[C].reactions??=[]).push(r)}else!E&&m!==null&&It<m.length&&(Rs(r,It),m.length=It);if(Xa()&&Vt!==null&&!ln&&m!==null&&(r.f&(rt|Cn|nt))===0)for(C=0;C<Vt.length;C++)_g(Vt[C],r);if(a!==null&&a!==r){if(kr++,a.deps!==null)for(let R=0;R<n;R+=1)a.deps[R].rv=kr;if(t!==null)for(const R of t)R.rv=kr;Vt!==null&&(s===null?s=Vt:s.push(...Vt))}return(r.f&Ts)!==0&&(r.f^=Ts),w}catch(R){return Jd(R)}finally{r.f^=qa,vt=t,It=n,Vt=s,ye=a,zt=l,za(u),ln=f,Gr=h}}function v0(r,t){let n=t.reactions;if(n!==null){var s=yC.call(n,r);if(s!==-1){var a=n.length-1;a===0?n=t.reactions=null:(n[s]=n[a],n.pop())}}if(n===null&&(t.f&rt)!==0&&(vt===null||!ki.call(vt,t))){var l=t;(l.f&qt)!==0&&(l.f^=qt,l.f&=~Kr),l.v!==tt&&wu(l),r0(l),Rs(l,0)}}function Rs(r,t){var n=r.deps;if(n!==null)for(var s=t;s<n.length;s++)v0(r,n[s])}function $i(r){var t=r.f;if((t&lr)===0){Fe(r,Je);var n=Le,s=ka;Le=r,ka=!0;try{(t&(an|Yd))!==0?f0(r):Tu(r),hg(r);var a=mg(r);r.teardown=typeof a=="function"?a:null,r.wv=pg;var l;Kd&&GC&&(r.f&nt)!==0&&r.deps}finally{ka=s,Le=n}}}function Ri(r){var t=r.f,n=(t&rt)!==0;if(ye!==null&&!ln){var s=Le!==null&&(Le.f&lr)!==0;if(!s&&(zt===null||!ki.call(zt,r))){var a=ye.deps;if((ye.f&qa)!==0)r.rv<kr&&(r.rv=kr,vt===null&&a!==null&&a[It]===r?It++:vt===null?vt=[r]:vt.push(r));else{(ye.deps??=[]).push(r);var l=r.reactions;l===null?r.reactions=[ye]:ki.call(l,ye)||l.push(ye)}}}if(Yr&&Br.has(r))return Br.get(r);if(n){var u=r;if(Yr){var f=u.v;return((u.f&Je)===0&&u.reactions!==null||Sg(u))&&(f=Eu(u)),Br.set(u,f),f}var h=(u.f&qt)===0&&!ln&&ye!==null&&(ka||(ye.f&qt)!==0),g=(u.f&Ls)===0;Os(u)&&(h&&(u.f|=qt),rg(u)),h&&!g&&(ig(u),wg(u))}if(on?.has(r))return on.get(r);if((r.f&Ts)!==0)throw r.v;return r.v}function wg(r){if(r.f|=qt,r.deps!==null)for(const t of r.deps)(t.reactions??=[]).push(r),(t.f&rt)!==0&&(t.f&qt)===0&&(ig(t),wg(t))}function Sg(r){if(r.v===tt)return!0;if(r.deps===null)return!1;for(const t of r.deps)if(Br.has(t)||(t.f&rt)!==0&&Sg(t))return!0;return!1}function _0(r){var t=ln;try{return ln=!0,r()}finally{ln=t}}const m0=["touchstart","touchmove"];function w0(r){return m0.includes(r)}const xa=Symbol("events"),S0=new Set,Hh=new Set;let Vh=null;function Wh(r){var t=this,n=t.ownerDocument,s=r.type,a=r.composedPath?.()||[],l=a[0]||r.target;Vh=r;var u=0,f=Vh===r&&r[xa];if(f){var h=a.indexOf(f);if(h!==-1&&(t===document||t===window)){r[xa]=t;return}var g=a.indexOf(t);if(g===-1)return;h<=g&&(u=h)}if(l=a[u]||r.target,l!==t){CC(r,"currentTarget",{configurable:!0,get(){return l||n}});var _=ye,w=Le;bn(null),vr(null);try{for(var m,E=[];l!==null;){var C=l.assignedSlot||l.parentNode||l.host||null;try{var R=l[xa]?.[s];R!=null&&(!l.disabled||r.target===l)&&R.call(l,r)}catch(I){m?E.push(I):m=I}if(r.cancelBubble||C===t||C===null)break;l=C}if(m){for(let I of E)queueMicrotask(()=>{throw I});throw m}}finally{r[xa]=t,delete r.currentTarget,bn(_),vr(w)}}}function y0(r,t){return E0(r,t)}const La=new Map;function E0(r,{target:t,anchor:n,props:s={},events:a,context:l,intro:u=!0,transformError:f}){s0();var h=void 0,g=l0(()=>{var _=n??t.appendChild(ug());e0(_,{pending:()=>{}},E=>{qC({});var C=fn;l&&(C.c=l),a&&(s.$$events=a),h=r(E,s)||{},zC()},f);var w=new Set,m=E=>{for(var C=0;C<E.length;C++){var R=E[C];if(!w.has(R)){w.add(R);var I=w0(R);for(const J of[t,document]){var N=La.get(J);N===void 0&&(N=new Map,La.set(J,N));var F=N.get(R);F===void 0?(J.addEventListener(R,Wh,{passive:I}),N.set(R,1)):N.set(R,F+1)}}}};return m(EC(S0)),Hh.add(m),()=>{for(var E of w)for(const I of[t,document]){var C=La.get(I),R=C.get(E);--R==0?(I.removeEventListener(E,Wh),C.delete(E),C.size===0&&La.delete(I)):C.set(E,R)}Hh.delete(m),_!==n&&_.parentNode?.removeChild(_)}});return C0.set(h,g),h}let C0=new WeakMap;const b0="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(b0);QC();function T0(r){}const Xl={init:r=>{j.get(Wr).enableRouting()},handlePageErrorHandler:(r,t,n)=>{r&&r.timeout&&setTimeout(()=>{if(r.viewUrl)t.viewUrl=r.viewUrl,n.getEngine()._ui.updateMainContent(t,n);else if(r.errorFn)r.errorFn(t);else{console.warn("Something went wrong with a client! You will be redirected to another page.");const s=r.redirectPath||"/";n.navigation().navigate(s)}},r.timeout)},handleExternalLinkNavigation:r=>{if(r.url)if(r.sameWindow||!1)window.location.href=r.url;else{const n=window.open(r.url,"_blank","noopener noreferrer");n&&(n.opener=null,n.focus())}},async addSearchParamsFromClient(r,t,n){const s=j.get(dr),a=D.getCurrentPath(n,n.getConfig().routing?.useHashRouting),u=(await s.getCurrentNode(a.path))?.clientPermissions?.urlParameters,f={...r};if(u){const h={};Object.keys(u).forEach(g=>{g in f&&u[g]?.write===!0&&(h[g]=f[g],delete f[g])});for(const g in f)console.warn(`No permission to add the search param "${g}" to the url`);Object.keys(h).length>0&&n.routing().addSearchParams(h,t)}}};class R0{static hasLocaleChangePermission(t){return t?.clientPermissions?.changeCurrentLocale?!0:(console.error('Current locale change declined from client, as client permission "changeCurrentLocale" is not set for this view.'),!1)}}const $n={luigi:{},init:r=>{$n.luigi=r},addListeners:(r,t)=>{r.addEventListener(k.INITIALIZED,n=>{qe.luigi?.ux().hideLoadingIndicator(r.parentNode);const s=j.get(Di);s.viewGroupLoaded(r),!r._luigiPreloading&&r.style.display!=="none"&&s.preload()}),r.addEventListener(k.NAVIGATION_COMPLETED_REPORT,()=>{j.get(Di).preload()}),r.addEventListener(k.NAVIGATION_REQUEST,n=>{const{drawer:s,link:a,intent:l,preserveView:u,modal:f,newTab:h,withoutSync:g,preventContextUpdate:_,preventHistoryEntry:w,fromVirtualTreeRoot:m,fromContext:E,fromClosestContext:C,fromParent:R,relative:I,nodeParams:N}=n.detail,F={drawerSettings:s,intent:l,modalSettings:f,newTab:h,path:a,preserveView:u,preventContextUpdate:_,options:{fromVirtualTreeRoot:m,fromContext:E,fromClosestContext:C,fromParent:R,relative:I,nodeParams:N},preventHistoryEntry:w,withoutSync:g};j.get(dr).handleNavigationRequest(F,n.callbackFn)}),r.addEventListener(k.RUNTIME_ERROR_HANDLING_REQUEST,n=>{t.navigation().runTimeErrorHandler(n.payload?.data?.errorObj||{})}),r.addEventListener(k.ALERT_REQUEST,n=>{qe.processAlert(n.payload,!0,r)}),r.addEventListener(k.SHOW_CONFIRMATION_MODAL_REQUEST,n=>{qe.handleConfirmationModalRequest(n.payload,r)}),r.addEventListener(k.SET_DOCUMENT_TITLE_REQUEST,n=>{$n.luigi.getEngine()._connector?.setDocumentTitle(n.detail.title)}),r.addEventListener(k.SHOW_LOADING_INDICATOR_REQUEST,n=>{$n.luigi.getEngine()._connector?.showLoadingIndicator(r.parentNode)}),r.addEventListener(k.HIDE_LOADING_INDICATOR_REQUEST,n=>{$n.luigi.getEngine()._connector?.hideLoadingIndicator(r.parentNode)}),r.addEventListener(k.ADD_BACKDROP_REQUEST,n=>{$n.luigi.getEngine()._connector?.addBackdrop()}),r.addEventListener(k.REMOVE_BACKDROP_REQUEST,n=>{$n.luigi.getEngine()._connector?.removeBackdrop()}),r.addEventListener(k.SET_DIRTY_STATUS_REQUEST,n=>{qe.handleDirtyStatusRequest(n.payload?.dirty,r)}),r.addEventListener(k.ADD_NODE_PARAMS_REQUEST,n=>{t.routing().addNodeParams(n.payload.data,n.payload.keepBrowserHistory)}),r.addEventListener(k.OPEN_USER_SETTINGS_REQUEST,n=>{t.ux().openUserSettings()}),r.addEventListener(k.CLOSE_USER_SETTINGS_REQUEST,n=>{$n.luigi.getEngine()._connector?.closeUserSettings()}),r.addEventListener(k.ADD_SEARCH_PARAMS_REQUEST,n=>{Xl.addSearchParamsFromClient(n.detail.data,n.detail.keepBrowserHistory,t)}),r.addEventListener(k.UPDATE_MODAL_SETTINGS_REQUEST,n=>{G.updateModalSettings(n.payload.updatedModalSettings,n.payload.addHistoryEntry,t)}),r.addEventListener(k.SET_CURRENT_LOCALE_REQUEST,n=>{R0.hasLocaleChangePermission(r)&&t.i18n().setCurrentLocale(n.detail?.data?.data?.currentLocale)})}};class A0{constructor(){this._ui=G,this._comm=$n,this._ux=qe,this._routing=Xl}bootstrap(t){this._app=y0(T0,{target:document.body}),this._connector=t}init(){const t=window.Luigi;j.register(un,()=>new un(t)),j.register(dr,()=>new dr(t)),j.register(hr,()=>new hr),j.register(Wr,()=>new Wr(t)),j.register(Mi,()=>new Mi),j.register(fr,()=>new fr(t)),j.register(Di,()=>new Di(t)),t.theming()._init(),G.init(t),Xl.init(t),$n.init(t),qe.init(t)}}window.Luigi=new wC(new A0);
94
+ Please refer to documentation`),[w]}}buildVirtualViewUrl(e,r,s){let a="";for(const u in r)u.startsWith("virtualSegment")&&(a+=":"+u+"/");if(!s)return e;a+=":virtualSegment_"+s+"/";let l=e;e.includes("{virtualTreePath}")?l=e.replace("{virtualTreePath}",a):l=e+"/"+a;try{if(new URL(l,"http://dummy-base").origin===new URL(e,"http://dummy-base").origin)return l}catch(u){console.error("Error building virtual view URL -- make sure virtualTreePath is not part of origin.",u)}return e}async buildPath(e,r){const{fromVirtualTreeRoot:s,fromContext:a,fromClosestContext:l,fromParent:u,relative:f,nodeParams:h}=r,g=this.luigi.getConfigValue("routing.useHashRouting"),{path:_,query:w}=D.getCurrentPath(this.luigi,g),m=_+(w?"?"+w:""),E=await this.getPathData(m),C=E.nodesInPath;let R=e;if(C===void 0)return console.warn("No nodes in path found for current path:",m),R;if(s){R="";const I=[...C].map((N,F)=>N.virtualTree?F:-1).filter(N=>N!==-1).pop();C.forEach((N,F)=>{N.pathSegment&&(I===void 0||F<=I)&&(R+="/"+N.pathSegment)}),R+="/"+e}else if(a){const I=a,N=[...C].reverse().find(F=>I===F.navigationContext);R=D.concatenatePath(D.getSubPath(N,E.pathParams),e)}else if(l){const I=[...C].reverse().find(N=>N.navigationContext&&N.navigationContext.length>0);R=D.concatenatePath(D.getSubPath(I,E.pathParams),e)}else u?R=D.concatenatePath(D.getSubPath(E.selectedNode?.parent,E.pathParams),e):f&&(R=D.concatenatePath(D.getSubPath(E.selectedNode,E.pathParams),e));return h&&Object.keys(h).length>0&&(R+=R.includes("?")?"&":"?",Object.entries(h).forEach((I,N)=>{R+=encodeURIComponent(D.getContentViewParamPrefix(this.luigi)+I[0])+"="+encodeURIComponent(I[1])+(N<Object.keys(h).length-1?"&":"")})),R}async buildContextSwitcher(){const e=this.luigi.getConfigValue("navigation.contextSwitcher");if(!e)return;Qe.resetFallbackLabelCache();const r=await this.luigi.getConfigValueAsync("navigation.contextSwitcher.actions"),s=await Qe.fetchOptions(this.luigi),a=this.luigi.getConfig().routing?.useHashRouting,l=D.getCurrentPath(this.luigi,a),u=e.parentNodePath,f=e.fallbackLabelResolver;let h=await Qe.getSelectedLabel(l?.path,s,u,f,this.luigi),g=Qe.getSelectedNode(l?.path,s,u),_=Qe.getSelectedOption(l?.path,s,u);const w=(m,E)=>{if(!(!m||typeof m!="string"))if(E==="action"){const C=r.find(R=>R.link===m);if(C?.clickHandler&&!C.clickHandler(C))return;this.luigi.navigation().navigate(m)}else this.luigi.navigation().navigate(m)};if(e?.preserveSubPathOnSwitch&&s?.length&&_&&s.forEach(m=>{m.linkFromPath=Qe.getNodePathFromCurrentPath(m,_,this.luigi),m.link===_.link&&(_.linkFromPath=m.linkFromPath)}),!_&&r?.length){const m=r?.find(E=>E.link===`/${l?.path}`);m&&(h=m.label,g=m.link,_=m)}return{actions:r,config:e,options:s,selectedLabel:h,selectedNodePath:g,selectedOption:_,switcherChange:(m,E)=>w(m,E)}}}class Di{constructor(e){this.luigi=e}luigi;preloadBatchSize=1;shouldPreload=!1;preloadViewGroups(e=3,r){const s=this.luigi.getConfigValue("navigation.preloadViewGroups"),a=this.luigi.getConfigValue("navigation.viewGroupSettings"),l=this.luigi.getEngine()._connector?.getContainerWrapper();if(s===!1||!a||!l)return;const u=Date.now();if(this.getPreloadingContainers(l).filter(_=>u-(_._luigiPreloadCreatedAt||0)<3e4).length>0){console.log("skipping view group preloading (busy)");return}const h=[...l.childNodes].filter(_=>_.tagName?.startsWith("LUIGI-")&&_.viewGroup).map(_=>_.viewGroup),g=Object.entries(a).filter(([_])=>!h.includes(_)).filter(([_,w])=>w&&w.preloadUrl);r?g.forEach(([_,w])=>{w.loadOnStartup&&this.preloadContainerOnBackground(w,_,l)}):g.filter((_,w)=>w<e).forEach(([_,w])=>{this.preloadContainerOnBackground(w,_,l)})}preloadContainerOnBackground(e,r,s){const a=document.createElement("luigi-container");a.setAttribute("lui_container","true"),a.viewurl=e.preloadUrl,a.viewGroup=r,a.style.display="none",a._luigiPreloading=!0,a._luigiPreloadCreatedAt=Date.now(),a.luigiMfId=M.getRandomId(),this.luigi.getEngine()._comm.addListeners(a,this.luigi),s.appendChild(a)}preload(e){this.shouldPreload&&setTimeout(()=>{this.preloadViewGroups(this.preloadBatchSize,!!e)},e?1:0),this.shouldPreload=!0}viewGroupLoaded(e){if(e._luigiPreloading){const r=Date.now()-(e._luigiPreloadCreatedAt||0);let s=1;r<500?s=3:r<1e3&&(s=2),this.preloadBatchSize=s,setTimeout(()=>{e._luigiPreloading=!1},this.preloadBatchSize>2?500:1e3)}}getPreloadingContainers(e){return[...e.childNodes].filter(r=>r.tagName?.startsWith("LUIGI-")&&r._luigiPreloading)}}const zl={listeners:[],hashChangeWithoutSync:!1,addEventListener(n,e){this.listeners.push({type:n,listenerFn:e}),window.addEventListener(n,e)},removeEventListener(n,e){this.listeners=this.listeners.filter(r=>!(r.type===n&&r.listenerFn===e)),window.removeEventListener(n,e)},removeAllEventListeners(){this.listeners.forEach(n=>{window.removeEventListener(n.type,n.listenerFn)}),this.listeners=[]}};class Wr{constructor(e){this.luigi=e}luigi;navigationService;dirtyStatusService;previousNode;currentRoute;modalSettings;previousPathData;getNavigationService(){return this.navigationService||(this.navigationService=j.get(dr),this.dirtyStatusService=j.get(un)),this.navigationService}shouldSkipRoutingForUrlPatterns(){const e=[/access_token=/,/id_token=/];return(this.luigi.getConfigValue("routing.skipRoutingForUrlPatterns")||e).filter(s=>location.href.match(s)).length!==0}enableRouting(){this.luigi.getConfig().routing?.useHashRouting?(zl.addEventListener("hashchange",r=>{const s=!!r?.detail?.preventContextUpdate,a=!!r?.detail?.withoutSync;this.handleRouteChange(D.getCurrentPath(this.luigi,!0,!0),a,s)}),this.handleRouteChange(D.getCurrentPath(this.luigi,!0,!0))):(zl.addEventListener("popstate",r=>{const s=!!r?.detail?.preventContextUpdate,a=!!r?.detail?.withoutSync;this.handleRouteChange(D.getCurrentPath(this.luigi,!1,!0),a,s)}),this.handleRouteChange(D.getCurrentPath(this.luigi,!1,!0)))}async handleRouteChange(e,r=!1,s=!1){const a=e.path,l=e.query,u=a+(l?"?"+l:""),f=new URLSearchParams(l),h=Object.create(null);try{if(this.dirtyStatusService?.shouldShowUnsavedChangesModal()){const R=this.dirtyStatusService.unsavedChanges.persistUrl;R&&history.pushState(window.state,"",R);return}}catch{return}if(this.shouldSkipRoutingForUrlPatterns())return;this.setFeatureToggle(u),await this.shouldShowModalPathInUrl(e),f.forEach((R,I)=>{h[I]=R}),this.checkInvalidateCache(this.previousPathData,a);const g=await this.getNavigationService().getPathData(a),_=D.filterNodeParams(h,this.luigi),w=M.getPathWithoutHash(a)||"";this.currentRoute={raw:window.location.href,path:a,nodeParams:_};const m=g?.selectedNode??await this.getNavigationService().getCurrentNode(a),E=m?.viewUrl||"";if(m&&this.previousPathData&&await this.handleViewUrlMisconfigured(m,E,this.previousPathData,w)||await this.handlePageNotFound(m,E,g,a,w))return;const C=this.luigi.getEngine()._connector;if(C?.renderTopNav(await this.getNavigationService().getTopNavData(a,g)),C?.renderLeftNav(await this.getNavigationService().getLeftNavData(a,g)),C?.renderTabNav(await this.getNavigationService().getTabNavData(a,g)),C?.renderBreadcrumbs(await this.getNavigationService().getBreadcrumbData(a,g,R=>{C?.renderBreadcrumbs(R)})),m){const R={nodeParams:_||{},pathParams:g?.pathParams||{},searchParams:D.prepareSearchParamsForClient(m,this.luigi)};this.currentRoute.node=m,this.getNavigationService().onNodeChange(this.previousNode,m),this.previousNode=m,await G.updateMainContent(m,this.luigi,R,r,s),this.previousPathData=g}}getCurrentRoute(){return this.currentRoute}async shouldShowModalPathInUrl(e){this.luigi.getConfigValue("routing.showModalPathInUrl")&&await this.handleBookmarkableModalPath(e)}async handleBookmarkableModalPath(e){const r=j.get(dr),s=j.get(fr),a=new URLSearchParams(e?.query||""),l=D.getModalViewParamName(this.luigi),u=a.get(l);if(u){const f=a.get(`${l}Params`);try{const h=JSON.parse(f||"{}"),{nodeObject:g}=await r.extractDataFromPath(u);document.querySelector(".lui-modal luigi-container")?this.luigi.getEngine()._connector?.updateModalSettings(h):this.luigi.navigation().openAsModal(u,h||g.openNodeInModal)}catch(h){console.error("Error parsing modal settings from URL parameters",h)}}else return await s.closeModalsWithDirtyCheck(),void 0}appendModalDataToUrl(e,r){const s=D.getHashQueryParamSeparator(),a=D.getQueryParams(this.luigi),l=D.getModalViewParamName(this.luigi),u=a[l],f=new URL(location.href),h=this.luigi.getConfigValue("routing.useHashRouting");let g=history.state,_,w;if(h){let[m,E]=f.hash.split("?");_=m,w=D.getURLWithoutModalData(E,l),w&&(_+="?"+w)}else _=f.pathname,w=D.getURLWithoutModalData(f.search,l),w&&(_+="?"+D.getURLWithoutModalData(f.search,l));if(g=D.handleHistoryState(g,_),u!==e){if(a[l]=e,r&&Object.keys(r).length&&(a[`${l}Params`]=JSON.stringify(r)),h){const m=location.hash.indexOf(s);m!==-1&&(f.hash=f.hash.slice(0,m)),f.hash=`${f.hash}${s}${D.encodeParams(a)}`}else f.search=`?${D.encodeParams(a)}`;history.pushState(g,"",f.href)}else{const m=new URL(f);if(h){let E=m.hash.split("?")[0];m.hash=E,w&&(m.hash+="?"+w)}else m.search=w;history.replaceState({},"",m.href),history.pushState(g,"",f.href)}}removeModalDataFromUrl(e){const r=D.getQueryParams(this.luigi),s=D.getModalViewParamName(this.luigi);let a=new URL(location.href);if(this.luigi.getConfigValue("routing.useHashRouting")){let u={};r[s]&&(u[s]=r[s]),r[`${s}Params`]&&(u[`${s}Params`]=r[`${s}Params`]);let f=D.encodeParams(u);a.hash.includes(`?${f}`)?a.hash=a.hash.replace(`?${f}`,""):a.hash.includes(`&${f}`)&&(a.hash=a.hash.replace(`&${f}`,""))}else{let u=new URLSearchParams(a.search.slice(1));u.delete(s),u.delete(`${s}Params`);let f="";Array.from(u.keys()).forEach(h=>{f+=(f===""?"?":"&")+h+"="+u.get(h)}),a.search=f}if(history.state&&history.state.modalHistoryLength>=0&&e){history.state.modalHistoryLength;const u=history.state.pathBeforeHistory;let f=!1;if(window.addEventListener("popstate",h=>{f?(history.replaceState({},"",u),history.pushState({},"",u),history.back()):(history.pushState({},"",u),history.back())},{once:!0}),history.state.historygap===history.length-history.state.modalHistoryLength)history.go(-history.state.modalHistoryLength);else if(history.state.modalHistoryLength>history.length){const h=history.length-1;f=!0,history.go(-h),window.Luigi.preventLoadingModalData=!0}else{const h=history.state.modalHistoryLength;history.go(-h)}}else history.pushState({},"",a.href)}setFeatureToggle(e){const r=this.luigi.getConfigValue("settings.featureToggles.queryStringParam"),s=this.luigi.featureToggles();r&&typeof e=="string"&&D.setFeatureToggles(r,e,s)}updateModalDataInUrl(e,r,s){let a=D.getHashQueryParamSeparator();const l=D.getQueryParams(this.luigi),u=D.getModalViewParamName(this.luigi);l[u]=e,r&&Object.keys(r).length&&(l[`${u}Params`]=JSON.stringify(r));const f=new URL(location.href);if(this.luigi.getConfigValue("routing.useHashRouting")){const g=location.hash.indexOf(a);g!==-1&&(f.hash=f.hash.slice(0,g)),f.hash=`${f.hash}${a}${D.encodeParams(l)}`}else f.search=`?${D.encodeParams(l)}`;s?history.pushState(window.state,"",f.href):history.replaceState(window.state,"",f.href)}checkInvalidateCache(e,r){if(!e)return;const s=j.get(hr);let a=r.split("/");if(e.nodesInPath&&e.nodesInPath.length>0){let l=e.nodesInPath.slice(1),u=!0;for(let f=0;f<l.length;f++){let h=a.length>f?a[f]:void 0,g=l[f];if(h!==g.pathSegment||!u)if(D.isDynamicNode(g)){if(!u||h!==D.getDynamicNodeValue(g,e.pathParams)){s.deleteNodesRecursively(g);break}}else u=!1}}else s.deleteCache()}async handlePageNotFound(e,r,s,a,l){const u=M.getTrimmedUrl(a),f=D.isExistingRoute(u,s);if(!r&&!e?.compound||e?.tabNav?.showAsTabHeader){const h=await D.getDefaultChildNode(s,async(g,_)=>await this.getNavigationService().getChildren(g,_));if(f){const g=M.getTrimmedUrl(a);return this.getNavigationService().handleNavigationRequest({path:`${g?`/${g}`:""}/${h}`,preserveView:void 0,modalSettings:void 0,newTab:!1,withoutSync:!1,preventContextUpdate:!1,preventHistoryEntry:!0}),!1}else{if(h&&s?.nodesInPath&&s.nodesInPath.length>1)return this.showPageNotFoundError(M.trimTrailingSlash(u||"")+"/"+h,l,!0),!0;const g=await D.getDefaultChildNode(s);this.showPageNotFoundError(g,l,!1)}return!0}return f?!1:(this.showPageNotFoundError(s.matchedPath,l,!0),!0)}async showPageNotFoundError(e,r,s=!1){const a=D.getPageNotFoundRedirectResult(r,s,this.luigi);if(a.ignoreLuigiErrorHandling)return;const l=a.path;if(l){if(a.keepURL){const u=this.luigi.getConfig().routing?.useHashRouting,f=D.getCurrentPath(this.luigi,u);f.path=l,this.handleRouteChange(f)}else this.getNavigationService().handleNavigationRequest({path:l});return}D.showRouteNotFoundAlert(r,s,this.luigi),this.getNavigationService().handleNavigationRequest({path:M.addLeadingSlash(e)})}async handleViewUrlMisconfigured(e,r,s,a){const{children:l,intendToHaveEmptyViewUrl:u,compound:f}=e,h=!!l?.length;if(!f&&r.trim()===""&&!h&&!u){if(console.warn("The intended target route can't be accessed since it has neither a viewUrl nor children. This is most likely a misconfiguration."),!(s&&(s.selectedNode?.viewUrl||s.selectedNode&&s.selectedNode.compound))){const g=await this.getNavigationService().getPathData("/"),_=await D.getDefaultChildNode(g);this.showPageNotFoundError(_,a,!1),this.getNavigationService().handleNavigationRequest({path:_})}return!0}return!1}}class Mi{decorators;constructor(){this.decorators=[]}hasDecorators(){return this.decorators.length>0}add(e){this.decorators=this.decorators.filter(r=>r.uid!==e.uid).concat(e)}applyDecorators(e,r){if(!e)return e;const s=new URL(M.prependOrigin(e)),a=this.decorators.filter(l=>l.type==="queryString");for(let l=0;l<a.length;l++){const u=a[l];s.searchParams.has(u.key)&&s.searchParams.delete(u.key);const f=u.valueFn();s.searchParams.append(u.key,f)}return r&&(s.search=decodeURIComponent(s.search)),s.href}}const Ia=async(n,e,r)=>{const s=await e.readUserSettings(),l=n.userSettingsGroup&&typeof s=="object"&&s!==null&&n.userSettingsGroup?s[n.userSettingsGroup]:null,u=r?.nodeParams||{},f=r?.pathParams||{},h=r?.searchParams||{};if(n.webcomponent&&n.viewUrl&&!D.checkWCUrl(n.viewUrl,e))return console.warn(`View URL '${n.viewUrl}' not allowed to be included`),document.createElement("div");if(n.compound){const g=document.createElement("luigi-compound-container");return g.setAttribute("lui_container","true"),g.viewurl=n.viewUrl?j.get(Mi).applyDecorators(D.substituteViewUrl(n,f,u,e),n.decodeViewUrl??!1):"",g.webcomponent=n.webcomponent??!1,g.compoundConfig=n.compound,g.context=n.context,g.clientPermissions=n.clientPermissions??{},g.nodeParams=u,g.pathParams=f,g.userSettingsGroup=n.userSettingsGroup,g.userSettings=l,g.searchParams=h,g.activeFeatureToggleList=e.featureToggles().getActiveFeatureToggleList(),g.locale=e.i18n().getCurrentLocale(),g.theme=e.theming().getCurrentTheme(),g.viewGroup=n.viewGroup,g.virtualTree=n.virtualTree||n._virtualTree,g.virtualTreeRootNode=Oe.findVirtualTreeRootNode(n),e.getEngine()._comm.addListeners(g,e),g}else{const g=document.createElement("luigi-container");return g.setAttribute("lui_container","true"),g.viewurl=n.viewUrl?j.get(Mi).applyDecorators(D.substituteViewUrl(n,f,u,e),n.decodeViewUrl??!1):"",g.webcomponent=n.webcomponent??!1,g.context=n.context,g.authData=ir.getStoredAuthData(),g.clientPermissions=n.clientPermissions??{},g.cssVariables=await e.theming().getCSSVariables(),g.nodeParams=u,g.pathParams=f,g.userSettingsGroup=n.userSettingsGroup,g.userSettings=l,g.searchParams=h,g.activeFeatureToggleList=e.featureToggles().getActiveFeatureToggleList(),g.locale=e.i18n().getCurrentLocale(),g.theme=e.theming().getCurrentTheme(),g.viewGroup=n.viewGroup,g.virtualTree=n.virtualTree||n._virtualTree,g.virtualTreeRootNode=Oe.findVirtualTreeRootNode(n),qd(g,e),zd(g,e),e.getEngine()._comm.addListeners(g,e),g.luigiMfId=M.getRandomId(),g}},qd=(n,e)=>{const r=e.getConfigValue("settings.customSandboxRules");if(!r?.length)return;const s=["allow-forms","allow-modals","allow-popups","allow-popups-to-escape-sandbox","allow-same-origin","allow-scripts"],a=r?[...new Set([...s,...r])]:s;n.sandboxRules=a},zd=(n,e)=>{const r=e.getConfigValue("settings.allowRules");r?.length&&(r.forEach((s,a)=>{r[a]=s+(s.indexOf(";")!=-1?"":";")}),n.allowRules=r)},G={navService:void 0,routingService:void 0,luigi:void 0,modalContainer:[],drawerContainer:void 0,init:n=>{G.navService=j.get(dr),G.routingService=j.get(Wr),G.luigi=n,n.getEngine()._connector?.renderMainLayout();const e=j.get(Di);e.shouldPreload=!0,e.preload(!0),e.shouldPreload=!1},update:async n=>{const e=G.routingService.getCurrentRoute();if(!e)return;const r=!n||n.length===0;if((r||n.includes("settings.header")||n.includes("settings")||n.includes("navigation")||n.includes("navigation.profile")||n.includes("navigation.contextSwitcher")||n.includes("navigation.productSwitcher"))&&G.luigi.getEngine()._connector?.renderTopNav(await G.navService.getTopNavData(e.path)),r||n.includes("navigation")||n.includes("navigation.nodes")||n.includes("navigation.viewgroupdata")||n.includes("settings")||n.includes("settings.footer")){j.get(hr).deleteCache(),G.luigi.getEngine()._connector?.renderLeftNav(await G.navService.getLeftNavData(e.path)),G.luigi.getEngine()._connector?.renderTabNav(await G.navService.getTabNavData(e.path));const s=G.luigi.getEngine()._connector;s?.renderBreadcrumbs(await G.navService.getBreadcrumbData(e.path,void 0,a=>{s?.renderBreadcrumbs(a)}))}if(r||n.includes("navigation")||n.includes("navigation.nodes")||n.includes("navigation.viewgroupdata")){if(j.get(hr).deleteCache(),e.path){const a=(await G.navService.getPathData(e.path))?.selectedNode??e.node;a&&(e.node=a,G.updateMainContent(a,G.luigi))}}else n.includes("settings.theming")&&e.node&&G.updateMainContent(e.node,G.luigi)},updateMainContent:async(n,e,r,s,a)=>{const l=await e.readUserSettings(),f=n.userSettingsGroup&&typeof l=="object"&&l!==null&&n.userSettingsGroup?l[n.userSettingsGroup]:null,h=e.getEngine()._connector?.getContainerWrapper();e.getEngine()._connector?.hideLoadingIndicator(h);const g=r?.nodeParams||{},_=r?.pathParams||{},w=r?.searchParams||{};if(n&&h){let m,E;if((n.virtualTree||n._virtualTree)&&(E=Oe.findVirtualTreeRootNode(n)),[...h.childNodes].forEach(C=>{if(C.tagName?.indexOf("LUIGI-")===0)if(C.viewGroup&&n.viewGroup!==C.viewGroup){C.style.display="none";const R=e.getConfigValue("navigation.viewGroupSettings")?.[C.viewGroup];R?.preloadUrl&&(C.viewurl=R.preloadUrl,C.context={},C.nodeParams={},C.pathParams={})}else C.viewGroup||C.virtualTree&&E===C.virtualTreeRootNode?m=C:C.remove()}),m&&m._luigiPreloading&&(m._luigiPreloading=!1,j.get(Di).viewGroupLoaded(m)),m)s||(m.style.display="block",m.viewurl=n.viewUrl?j.get(Mi).applyDecorators(D.substituteViewUrl(n,_,g,e),n.decodeViewUrl??!1):"",m.nodeParams=g,m.pathParams=_,m.clientPermissions=n.clientPermissions,m.searchParams=w,m.locale=e.i18n().getCurrentLocale(),m.theme=e.theming().getCurrentTheme(),m.activeFeatureToggleList=e.featureToggles().getActiveFeatureToggleList(),m.userSettingsGroup=n.userSettingsGroup,m.userSettings=f,qd(m,e),zd(m,e)),a||m.updateContext(n.context||{},{withoutSync:!1});else{const C=await Ia(n,e,r);h?.appendChild(C);const R=e.getEngine()._connector;n.loadingIndicator?.enabled!==!1&&R?.showLoadingIndicator(h)}}},openModal:async(n,e,r,s)=>{const a=await Ia(e,n);G.modalContainer.push(a);const l=j.get(Wr),u=j.get(fr),f=j.get(un);let h=!1,g,_;const m=new Promise(R=>{g=()=>{h||(h=!0,R(),u.removeLastModalFromStack())},_=async()=>{try{await f.getUnsavedChangesModalPromise(a)}catch{return}g&&g(),n.getConfigValue("routing.showModalPathInUrl")&&u.getModalStackLength()===0&&l.removeModalDataFromUrl(!0)},a.addEventListener(k.CLOSE_CURRENT_MODAL_REQUEST,_)}),E={closePromise:m,resolveFn:g,onCloseRequestHandler:_,onInternalClose:()=>{try{f.clearDirtyState(a),E.resolveFn&&E.resolveFn()}catch(R){console.warn("onInternalClose failed",R)}},modalsettings:r};u.registerModal(E),n.getEngine()._connector?.renderModal(a,r,async()=>{try{await f.getUnsavedChangesModalPromise(a)}catch{return}s?.(),g&&g(),n.getConfigValue("routing.showModalPathInUrl")&&u.getModalStackLength()===0&&l.removeModalDataFromUrl(!0)},()=>m);const C=n.getEngine()._connector;e.loadingIndicator?.enabled!==!1&&C?.showLoadingIndicator(a.parentElement)},updateModalSettings:(n,e,r)=>{const s=j.get(fr);if(s.getModalStackLength()===0)return;s.updateFirstModalSettings(n);const a=j.get(Wr),l=D.getModalPathFromPath(r);l&&a.updateModalDataInUrl(l,s.getModalSettings(),e),r.getEngine()._connector?.updateModalSettings(s.getModalSettings())},openDrawer:async(n,e,r,s)=>{const a=j.get(un);if(G.drawerContainer&&a.shouldShowUnsavedChangesModal(G.drawerContainer))try{await a.getUnsavedChangesModalPromise(G.drawerContainer)}catch{return}const l=await Ia(e,n);G.drawerContainer=l;const u=new Promise(h=>{const g=async()=>{try{await a.getUnsavedChangesModalPromise(l)}catch{return}G.drawerContainer=void 0,a.clearDirtyState(l),h()};l.addEventListener(k.CLOSE_CURRENT_MODAL_REQUEST,g)});n.getEngine()._connector?.renderDrawer(l,r,async()=>{try{await a.getUnsavedChangesModalPromise(l)}catch{return}s?.(),G.drawerContainer=void 0,a.clearDirtyState(l)},()=>u);const f=n.getEngine()._connector;e.loadingIndicator?.enabled!==!1&&f?.showLoadingIndicator(l.parentElement)},openUserSettings:async(n,e,r,s)=>{const a={},l=async(f,h)=>{const g=f.viewUrl,_=f.webcomponent??!1,w=r?.[h]||{},m={...f.context,userSettingsData:w},E=await Ia({viewUrl:g,userSettingsGroup:h,webcomponent:_,context:m},s);return E.addEventListener(k.CUSTOM_MESSAGE,C=>{const R=C.detail;R?.id==="luigi.updateUserSettings"&&(a[h]=R.data?.data??R.data)}),E},u=async(f,h)=>{const g={...f,...a};await s.storeUserSettings(g,h)};n.renderMicroFrontendContainer=l,n.onCloseCallback=u,s.getEngine()._connector?.openUserSettings(n,e,r)}};class iC{idpProviderInstance;_userInfoStore;_loggedInStore;constructor(){this._userInfoStore=$a({}),this._loggedInStore=$a(!1)}setUserInfo(e){this._userInfoStore.set(e)}setLoggedIn(e){this._loggedInStore.set(e)}getUserInfoStore(){return this._userInfoStore}getLoggedInStore(){return this._loggedInStore}async init(){const e=ot.getConfigValue("auth.use");if(!e)return Promise.resolve(!0);const r=ot.getConfigValue(`auth.${e}`),s=ir.parseUrlAuthErrors()||{};if(await ir.handleUrlAuthErrors(r,s.error,s.errorDescription))return this.idpProviderInstance=this.getIdpProviderInstance(e,r),M.isPromise(this.idpProviderInstance)?this.idpProviderInstance.then(l=>(this.idpProviderInstance=l,this.checkAuth(r))).catch(l=>{const u=`Error: ${l.message||l}`;console.error(u,l.message&&l),ot.setErrorMessage(u)}):this.checkAuth(r)}async checkAuth(e){const r=ir.getStoredAuthData();if(!r||!ir.isLoggedIn()){if(ot.getConfigValue("auth.disableAutoLogin"))return;let a=!0;return r&&(a=await _i.handleAuthEvent("onAuthExpired",e)),a?this.startAuthorization():void 0}this.idpProviderInstance.settings&&M.isFunction(this.idpProviderInstance.settings.userInfoFn)?this.idpProviderInstance.settings.userInfoFn(this.idpProviderInstance.settings,r).then(a=>{this.setUserInfo(a),this.setLoggedIn(!0)}):M.isFunction(this.idpProviderInstance.userInfo)?this.idpProviderInstance.userInfo(e).then(a=>{this.setUserInfo(a),this.setLoggedIn(!0)}):(this.setLoggedIn(!0),this.setUserInfo(Bh(this._userInfoStore))),M.isFunction(ot.getConfigValue("auth.events.onAuthSuccessful"))&&rn.isNewlyAuthorized()&&await _i.handleAuthEvent("onAuthSuccessful",e,r),rn.removeNewlyAuthorized(),M.isFunction(this.idpProviderInstance.setTokenExpirationAction)&&this.idpProviderInstance.setTokenExpirationAction(),M.isFunction(this.idpProviderInstance.setTokenExpireSoonAction)&&this.idpProviderInstance.setTokenExpireSoonAction()}async startAuthorization(){if(this.idpProviderInstance)return this.idpProviderInstance.login().then(e=>{rn.setNewlyAuthorized(),e&&console.error(e)})}logout(){const e=ir.getStoredAuthData(),r=async l=>{await _i.handleAuthEvent("onLogout",this.idpProviderInstance.settings,void 0,l),rn.removeAuthData()},s=ot.getConfigValue(`auth.${ot.getConfigValue("auth.use")}.logoutFn`),a=ot.getConfigValueAsync("navigation.profile.logout.customLogoutFn");M.isFunction(s)?s(this.idpProviderInstance.settings,e,r):M.isFunction(this.idpProviderInstance.logout)?this.idpProviderInstance.logout(e,r):a&&M.isFunction(a)?a(e,r):r(this.idpProviderInstance.settings.logoutUrl)}createIdpProviderException(e){return{message:e,name:"IdpProviderException"}}async getIdpProviderInstance(e,r){const s=M.getConfigValueFromObject(r,"idpProvider");if(s){const l=await new s(r);return["login"].forEach(u=>{if(!M.isFunction(l[u]))throw this.createIdpProviderException(`${u} function does not exist in custom IDP Provider ${e}`)}),l}if(M.isFunction(ot.getConfigValue("auth.events.onAuthConfigError")))await _i.handleAuthEvent("onAuthConfigError",{idpProviderName:e,type:"IdpProviderException"});else throw this.createIdpProviderException(`IDP Provider ${e} does not exist.`)}unload(){this.idpProviderInstance&&M.isFunction(this.idpProviderInstance.unload)&&this.idpProviderInstance.unload()}resetExpirationChecks(){this.idpProviderInstance&&M.isFunction(this.idpProviderInstance.resetExpirationChecks)&&this.idpProviderInstance.resetExpirationChecks()}broadcastAuthData(e){const s=ot.getLuigi()?.getEngine()?._connector?.getContainerWrapper();if(s){for(const a of s.childNodes)a.tagName?.startsWith("LUIGI-")&&a.setAttribute("auth-data",JSON.stringify(e));G.modalContainer?.forEach(a=>a.setAttribute("auth-data",JSON.stringify(e))),G.drawerContainer&&G.drawerContainer.setAttribute("auth-data",JSON.stringify(e))}}}const ar=new iC,sC={luigi:{button:{confirm:"Yes",dismiss:"No"},confirmationModal:{body:"Are you sure you want to do this?",header:"Confirmation"},navigation:{up:"Up"},notExactTargetNode:"Could not map the exact target node for the requested route {route}.",requestedRouteNotFound:"Could not find the requested route {route}.",unsavedChangesAlert:{body:"Unsaved changes will be lost. Do you want to continue?",header:"Unsaved changes detected"}}},aC=sC;class oC{constructor(e){this.luigi=e,this.currentLocaleStorageKey="luigi.currentLocale",this.defaultLocale="en",this.listeners={},this.translationTable=aC}luigi;currentLocaleStorageKey;defaultLocale;listeners;translationImpl;translationTable;_init(){this._initCustomImplementation(),this.addCurrentLocaleChangeListener(e=>{this.broadcastLocaleToAllContainers(e)})}getCurrentLocale(){return sessionStorage.getItem(this.currentLocaleStorageKey)||this.defaultLocale}setCurrentLocale(e){e&&(sessionStorage.setItem(this.currentLocaleStorageKey,e),this._notifyLocaleChange(e)),this.luigi.getEngine()._connector?.setCurrentLocale(e)}addCurrentLocaleChangeListener(e){let r=null;return M.isFunction(e)?(r=M.getRandomId(),this.listeners[r]=e):console.error("Provided locale change listener is not a function."),r}removeCurrentLocaleChangeListener(e){e&&this.listeners[e]?delete this.listeners[e]:console.error("Unable to remove locale change listener - no listener registered for given ID.")}getTranslation(e,r=void 0,s=void 0){if(!e)return"";if(this.translationImpl){const l=this.translationImpl.getTranslation(e,r,s);if(l!==e)return l}const a=this.findTranslation(e,this.translationTable,r);return a||e}_notifyLocaleChange(e){Object.getOwnPropertyNames(this.listeners).forEach(r=>{this.listeners[Number(r)](e)}),this.luigi.configChanged()}_initCustomImplementation(){this.translationImpl=this.luigi.getConfigValue("settings.customTranslationImplementation"),M.isFunction(this.translationImpl)&&(this.translationImpl=this.translationImpl())}broadcastLocaleToAllContainers(e){const r=M.getNodeList("luigi-container[lui_container]");r?.length&&e&&r.forEach(s=>{s.locale=e,s.updateContext({locale:e})})}findTranslation(e,r,s){const a=e.split(".");for(let l=0;l<a.length;l++){const u=a[l];if(Object.prototype.hasOwnProperty.call(r,u)&&typeof r[u]=="object")r=r[u];else return s?this.findInterpolations(r[u],s):r[u]}}findInterpolations(e,r){return typeof e!="string"||!e.trim()||Object.keys(r).forEach(s=>{e=e.replace(new RegExp("{"+Ba.escapeKeyForRegexp(s)+"}","gi"),r[s])}),e}}const Kl={getMicrofrontendsInDom(n){return[...this.getMainMicrofrontends(n).map(e=>({container:e.iframe,active:e.active,type:"main",id:e.id})),...this.getModalMicrofrontends().map(e=>({container:e.iframe,active:e.active,type:"modal",id:e.id})),...(()=>{const e=this.getDrawerMicrofrontends();return e.iframe?[{container:e.iframe,active:e.active,type:"drawer",id:e.id}]:[]})()]},getMainMicrofrontends(n){const e=n.getEngine()._connector?.getContainerWrapper();if(!e)return[];const r=[];for(const s of e.childNodes)if(s.tagName?.startsWith("LUIGI-"))if(s.iframeHandle?.iframe)r.push({iframe:s.iframeHandle.iframe,id:s.luigiMfId,active:M.isElementVisible(s)});else{const a=s.shadowRoot?.firstElementChild?.firstElementChild??null;a&&r.push({iframe:a,id:s.luigiMfId,active:M.isElementVisible(s)})}return r},getModalMicrofrontends(){const n=[];for(const e of G.modalContainer)if(e.iframeHandle?.iframe)n.push({iframe:e.iframeHandle.iframe,id:e.luigiMfId,active:M.isElementVisible(e)});else{const r=e.shadowRoot?.firstElementChild?.firstElementChild??null;r&&n.push({iframe:r,id:e.luigiMfId,active:M.isElementVisible(e)})}return n},getDrawerMicrofrontends(){if(!G.drawerContainer)return{};if(G.drawerContainer.iframeHandle?.iframe)return{iframe:G.drawerContainer.iframeHandle.iframe,id:G.drawerContainer.luigiMfId,active:M.isElementVisible(G.drawerContainer)};{const n=G.drawerContainer.shadowRoot?.firstElementChild?.firstElementChild??null;if(n)return{iframe:n,id:G.drawerContainer.luigiMfId,active:M.isElementVisible(G.drawerContainer)}}return{}},getAllLuigiContainerIframe(n){const e=n.getEngine()._connector?.getContainerWrapper();if(!e)return;const r=[...e.children].filter(s=>s.tagName?.indexOf("LUIGI-CONTAINER")===0&&s.iframeHandle?.iframe);for(const s of G.modalContainer)s.iframeHandle?.iframe&&r.push(s);return G.drawerContainer&&G.drawerContainer.iframeHandle?.iframe&&r.push(G.drawerContainer),r.length>0?r:void 0}};class lC{luigi;constructor(e){this.luigi=e}getShellbar(){return this.luigi.getEngine()._connector?.getCoreAPISupportedElements().getShellbarElement()||null}getShellbarActions(){return this.luigi.getEngine()._connector?.getCoreAPISupportedElements().getShellbarActions()||null}getLuigiContainer(){return this.luigi.getEngine()._connector?.getCoreAPISupportedElements().getLuigiContainer()||null}getNavFooterContainer(){return this.luigi.getEngine()._connector?.getCoreAPISupportedElements().getNavFooterContainer()||null}getMicrofrontends(){return Kl.getMicrofrontendsInDom(this.luigi)}getMicrofrontendIframes(){const e=this.luigi.getEngine()._connector?.getContainerWrapper();let r=[];if(G.modalContainer)for(const s of Array.from(G.modalContainer))s.tagName?.startsWith("LUIGI-")&&s.iframeHandle?.iframe&&r.push(s.iframeHandle.iframe);if(G.drawerContainer&&r.push(G.drawerContainer.iframeHandle.iframe),!e)return null;for(const s of Array.from(e.childNodes))s.tagName?.startsWith("LUIGI-")&&s.iframeHandle?.iframe&&r.push(s.iframeHandle.iframe);return r}getCurrentMicrofrontendIframe(){const e=this.luigi.getEngine()._connector?.getContainerWrapper();if(!e)return null;const r=G.modalContainer[0]?.iframeHandle?.iframe??null;let s=null,a=null;for(const l of Array.from(e.children))l.tagName?.startsWith("LUIGI-")&&M.isElementVisible(l)&&(l.iframeHandle?.iframe?s=l.iframeHandle.iframe:a=l.shadowRoot?.firstElementChild?.firstElementChild??null);return r||s||a}}const uC={luigiAfterInit:async n=>{M.getConfigBooleanValue(n.getConfig(),"settings.appLoadingIndicator.hideAutomatically")&&setTimeout(()=>{n.ux().hideAppLoadingIndicator()},0),await ot.executeConfigFnAsync("lifecycleHooks.luigiAfterInit")}};class cC{featureToggleList;constructor(){this.featureToggleList=new Set}setFeatureToggle(e,r=!1){this.isValid(e)&&(e.startsWith("!")&&!r||this.isDuplicatedOrDisabled(e)||this.featureToggleList.add(e))}unsetFeatureToggle(e){if(this.isValid(e)){if(!this.featureToggleList.has(e)){console.warn("Feature toggle name is not in the list.");return}this.featureToggleList.delete(e)}}getActiveFeatureToggleList(){return[...Array.from(this.featureToggleList)].filter(r=>!r.startsWith("!"))}isValid(e){return M.isString(e)?!0:(console.warn("Feature toggle name is not valid or not of type 'string'"),!1)}isDuplicatedOrDisabled(e){return this.featureToggleList.has(e)?(console.warn("Feature toggle name already exists"),!0):this.featureToggleList.has(`!${e}`)?(console.warn("Disabled feature toggle can not be activated"),!0):!1}}class fC{luigi;hashRouting=!1;navService;routingService;modalService;options={fromContext:null,fromClosestContext:!1,fromVirtualTreeRoot:!1,fromParent:!1,nodeParams:{}};constructor(e){this.luigi=e,this.hashRouting=e.getConfig().routing?.useHashRouting,this.navService=j.get(dr),this.routingService=j.get(Wr),this.modalService=j.get(fr)}navigate=async(e,r,s,a,l)=>{if(e==="/"&&(s||l))return console.warn("Navigation with an absolute path prevented."),Promise.reject(new Error("Navigation with an absolute path prevented."));const u=e[0]!=="/";this.options.relative=u;const f={modalSettings:s,newTab:!1,options:this.options,path:e,preserveView:r,preventContextUpdate:!1,preventHistoryEntry:!1,withoutSync:!1};return this.navService.handleNavigationRequest(f,void 0)};navigateToIntent=(e,r={})=>{let s="#?intent=";if(s+=e,r&&Object.keys(r)?.length){const a=Object.entries(r);if(a.length>0){s+="?";for(const[l,u]of a)s+=l+"="+u+"&";s=s.slice(0,-1)}}this.navigate(s)};openAsModal=async(e,r,s)=>{if(e==="/")return console.warn("Navigation with an absolute path prevented."),Promise.reject(new Error("Navigation with an absolute path prevented."));if(!r?.keepPrevious&&!await this.modalService.closeModalsWithDirtyCheck())return;const a=e.replace(/\/\/+/g,"/");if(!await Oe.validatePathAndGetRedirect(a,this.luigi))return;const u=await this.navService.getCurrentNode(a),f=r||{};f.title||(f.title=u?.label),this.luigi.getConfigValue("routing.showModalPathInUrl")&&this.modalService.getModalStackLength()===0&&this.routingService.appendModalDataToUrl(a,f),this.luigi.getEngine()._ui.openModal(this.luigi,u,f,s)};openAsDrawer=async(e,r,s)=>{if(e==="/")return console.warn("Navigation with an absolute path prevented."),Promise.reject(new Error("Navigation with an absolute path prevented."));const a=e.replace(/\/\/+/g,"/");if(!await Oe.validatePathAndGetRedirect(a,this.luigi))return;const u=await this.navService.getCurrentNode(a),f=r||{};if(!f.header?.title){const g=await D.getNodeLabel(u,this.luigi)||"";f.header?f.header.title=g:f.header={title:g}}f.overlap===void 0&&(f.overlap=!0),this.luigi.getEngine()._ui.openDrawer(this.luigi,u,f,s)};runTimeErrorHandler=async e=>{const{path:r}=D.getCurrentPath(this.luigi,this.luigi.getConfig().routing?.useHashRouting),s=await this.navService.getCurrentNode(r),a=this.luigi.getConfigValue("navigation.defaults.runTimeErrorHandler");s?.runTimeErrorHandler?.errorFn&&M.isFunction(s?.runTimeErrorHandler?.errorFn)?s.runTimeErrorHandler.errorFn(e,s):a?.errorFn&&M.isFunction(a.errorFn)&&a.errorFn(e,s)};pathExists=async e=>await D.pathExists(e,this.luigi);fromVirtualTreeRoot(){return this.options.fromContext=null,this.options.fromClosestContext=!1,this.options.fromVirtualTreeRoot=!0,this.options.fromParent=!1,this}fromContext(e){return this.options.fromContext=e,this}fromClosestContext(){return this.options.fromContext=null,this.options.fromClosestContext=!0,this.options.fromParent=!1,this}fromParent(){return this.options.fromContext=null,this.options.fromClosestContext=!1,this.options.fromVirtualTreeRoot=!1,this.options.fromParent=!0,this}withParams(e){return e&&Object.assign(this.options.nodeParams??{},e),this}}class hC{luigi;constructor(e){this.luigi=e}addSearchParams(e,r=!1){if(!M.isObject(e)){console.log("Params argument must be an object");return}const s=new URL(location.href);this.luigi.getConfigValue("routing.useHashRouting")?s.hash=D.addParamsOnHashRouting(e,s.hash):D.modifySearchParams(e,s.searchParams),this.handleBrowserHistory(r,s),this.luigi.configChanged()}getSearchParams(){const e={},r=["__proto__","constructor","prototype"],s=new URL(location.href);let a;if(this.luigi.getConfigValue("routing.useHashRouting")){const l=s.hash.split("?")[1];a=l?new URLSearchParams(l).entries():[]}else a=s.searchParams.entries();for(const[l,u]of a){if(r.some(f=>l===f)){console.warn(`Blocked because of potentially dangerous query param: ${l}`);continue}e[l]=u}return e}handleBrowserHistory(e,r){const s=this.sanitizeUrl(r.href);if(!s){console.warn("invalid url: "+s);return}e?window.history.pushState({},"",s):window.history.replaceState({},"",s)}sanitizeUrl(e){return new URL(location.href).origin===new URL(e).origin?e:void 0}addNodeParams(e,r){if(!M.isObject(e)){console.log("Params argument must be an object");return}const s=D.getContentViewParamPrefix(this.luigi),a=new URL(location.href);this.luigi.getConfigValue("routing.useHashRouting")?a.hash=D.addParamsOnHashRouting(e,a.hash,s):D.modifySearchParams(e,a.searchParams,s),this.handleBrowserHistory(r,a),this.luigi.getConfigValue("routing.useHashRouting")?window.dispatchEvent(new HashChangeEvent("hashchange")):this.luigi.configChanged()}}class dC{#e;#n="";constructor(e){this.#e=e}async getAvailableThemes(){return await this.#e.getConfigValueAsync("settings.theming.themes")}setCurrentTheme(e){this.#n=e,this.#e.__cssVars=void 0}async getThemeObject(e){return(await this.getAvailableThemes())?.find(s=>s.id===e)}getCurrentTheme(){if(!this.isThemingAvailable())return!1;if(this.#n)return this.#n;const e=this.#e.getConfigValue("settings.theming");return e.defaultTheme||console.error("[Theming] getCurrentTheme() error. No theme set and no defaultTheme found in configuration",e),e.defaultTheme}isThemingAvailable(){return!!this.#e.getConfigValue("settings.theming")}async getCSSVariables(){if(!window.Luigi.__cssVars){const e=this.#e.getConfigValue("settings.theming.variables.file");if(e)try{const r=await fetch(e);window.Luigi.__cssVars=(await r.json()).root,Object.keys(window.Luigi.__cssVars).forEach(s=>{const a=getComputedStyle(document.documentElement).getPropertyValue("--"+s);a&&(window.Luigi.__cssVars[s]=a)})}catch(r){M.isFunction(this.#e.getConfigValue("settings.theming.variables.errorHandling"))?this.#e.getConfigValue("settings.theming.variables.errorHandling")(r):console.error("CSS variables file error: ",r)}else this.#e.getConfigValue("settings.theming.variables")==="fiori"&&window.__luigiThemeVars?(window.Luigi.__cssVars={},window.__luigiThemeVars.forEach(r=>{window.Luigi.__cssVars[r]=getComputedStyle(document.documentElement).getPropertyValue("--"+r)})):window.Luigi.__cssVars={}}return window.Luigi.__cssVars}_init(){const e=j.get(Mi);(()=>{const s=this.#e.getConfigValue("settings.theming");s&&s.nodeViewURLDecorator&&s.nodeViewURLDecorator.queryStringParameter&&e.add({type:"queryString",uid:"theming",key:s.nodeViewURLDecorator.queryStringParameter.keyName,valueFn:()=>{const a=this.getCurrentTheme(),l=s.nodeViewURLDecorator.queryStringParameter.value;return l?l(a):a}}),s&&s.useFioriScrollbars===!0&&document.body.classList.add("fioriScrollbars")})()}}let Lh;const qe={luigi:void 0,documentTitle:void 0,init:n=>{qe.luigi=n,qe.documentTitle=$a(void 0),Lh=j.get(un)},processAlert:(n,e,r)=>{if(!qe.luigi)throw new Error("Luigi is not initialized.");const s={openFromClient:e,close:()=>{n.id&&r.notifyAlertClosed(n.id)},link:a=>{if(n.links){const l=n.links[a];if(l&&(l.url&&qe.luigi?.navigation().navigate(l.url),l.dismissKey&&n.id))return r.notifyAlertClosed(n.id,l.dismissKey),!0}return!1}};qe.luigi.getEngine()._connector?.renderAlert(n,s)},handleConfirmationModalRequest:(n,e)=>{if(!qe.luigi)throw new Error("Luigi is not initialized.");n&&(n={...n,header:qe.luigi.i18n().getTranslation(n.header||"luigi.confirmationModal.header"),body:qe.luigi.i18n().getTranslation(n.body||"luigi.confirmationModal.body"),buttonDismiss:qe.luigi.i18n().getTranslation(n.buttonDismiss||"luigi.button.dismiss"),buttonConfirm:qe.luigi.i18n().getTranslation(n.buttonConfirm||"luigi.button.confirm")}),qe.luigi.getEngine()._connector?.renderConfirmationModal(n,{confirm(){e.notifyConfirmationModalClosed(!0)},dismiss(){e.notifyConfirmationModalClosed(!1)}})},handleDirtyStatusRequest:(n,e)=>{if(!qe.luigi)throw new Error("Luigi is not initialized.");Lh.updateDirtyStatus(n,e)}};class gC{processUserSettingGroups(e,r){const s=[],a=e?.userSettingGroups,l=r?.userSettings?.userSettingGroups,u=a||l;if(M.isObject(u)){for(const f in u){const h={};h[f]=u[f],s.push(h)}return s}return s}getUserSettingsIframesInDom(){const e=document.querySelector(".iframeUserSettingsCtn");return e?[...e.children]:[]}hideUserSettingsIframe(){this.getUserSettingsIframesInDom().forEach(e=>{e.style.display="none"})}findActiveCustomUserSettingsIframe(e){const r=document.querySelectorAll("[userSettingsGroup]");for(let s=0;s<r.length;s++)if(r[s].contentWindow===e)return r[s];return null}}const pC=new gC;class vC{luigi;dirtyStatusService=j.get(un);appLoadingIndicatorSelector="[luigi-app-loading-indicator]";constructor(e){this.luigi=e}showAlert=e=>new Promise(r=>{e.id||(e.id=M.getRandomId().toString());const s={openFromClient:!1,close:()=>{r(!0)},link:a=>{if(e.links){const l=e.links[a];if(l&&(l.url&&this.luigi?.navigation().navigate(l.url),l.dismissKey))return r(l.dismissKey),!0}return!1}};this.luigi.getEngine()._connector?.renderAlert(e,s)});showConfirmationModal=e=>(e&&(e={...e,header:this.luigi.i18n().getTranslation(e.header||"luigi.confirmationModal.header"),body:this.luigi.i18n().getTranslation(e.body||"luigi.confirmationModal.body"),buttonDismiss:this.luigi.i18n().getTranslation(e.buttonDismiss||"luigi.button.dismiss"),buttonConfirm:this.luigi.i18n().getTranslation(e.buttonConfirm||"luigi.button.confirm")}),new Promise((r,s)=>{this.luigi.getEngine()._connector?.renderConfirmationModal(e,{confirm(){r(!0)},dismiss(){s()}})}));openUserSettings=async()=>{const e=this.luigi.getConfigValue("userSettings");if(!e)return;const r=this.luigi.getConfigValue("settings"),s=await this.luigi.readUserSettings(),a=pC.processUserSettingGroups(e,r),l=e.userSettingsDialog||{},u=l.dialogHeader||Mr.userSettingsDialog.dialogHeader,f=l.saveBtn||Mr.userSettingsDialog.saveBtn,h=l.dismissBtn||Mr.userSettingsDialog.dismissBtn,g={dialogHeader:this.luigi.i18n().getTranslation(u),saveBtn:this.luigi.i18n().getTranslation(f),dismissBtn:this.luigi.i18n().getTranslation(h)};this.luigi.getEngine()._ui?.openUserSettings(g,a,s,this.luigi)};closeUserSettings=()=>{this.luigi.getEngine()._connector?.closeUserSettings()};setDocumentTitle=e=>{this.luigi.getEngine()._ux?.documentTitle?.set(e),this.luigi.getEngine()._connector?.setDocumentTitle(e)};getDocumentTitle=()=>Bh(this.luigi.getEngine()._ux?.documentTitle)||window.document.title||"";hideAppLoadingIndicator=()=>{const e=document.querySelector(this.appLoadingIndicatorSelector);e&&(e.classList.add("hidden"),setTimeout(()=>{e.parentNode?.removeChild(e)},500))};showLoadingIndicator=e=>this.luigi.getEngine()._connector?.showLoadingIndicator(e);hideLoadingIndicator=e=>this.luigi.getEngine()._connector?.hideLoadingIndicator(e);addBackdrop=()=>this.luigi.getEngine()._connector?.addBackdrop();removeBackdrop=()=>this.luigi.getEngine()._connector?.removeBackdrop();getDirtyStatus=()=>this.dirtyStatusService.readDirtyStatus()}class _C{filterIdFromMessageObject(e){const{id:r,...s}=e;return{id:r,messageWithoutId:s}}}const Nh=new _C;class mC{luigi;constructor(e){this.luigi=e}sendToAll(e){const r=Kl.getAllLuigiContainerIframe(this.luigi);if(!r){console.warn("No Luigi containers found to send the message to.");return}const{id:s,messageWithoutId:a}=Nh.filterIdFromMessageObject(e);if(!s){console.warn('Message object must contain an "id" property to specify the message type.');return}for(const l of r)l.sendCustomMessage?l.sendCustomMessage(s,a):console.warn("Container does not support sending custom messages:",l)}send(e,r){const s=Kl.getAllLuigiContainerIframe(this.luigi);if(!s){console.warn("No Luigi containers found to send the message to.");return}const{id:a,messageWithoutId:l}=Nh.filterIdFromMessageObject(r);if(!a){console.warn('Message object must contain an "id" property to specify the message type.');return}for(const u of s)if(u.luigiMfId===e){u.sendCustomMessage?u.sendCustomMessage(a,l):console.warn("Container does not support sending custom messages:",u);return}console.warn(`No container found with microfrontend ID: ${e}`)}}class wC{constructor(e){this.engine=e,this._store=this.createConfigStore()}engine;config;_customMessages;_store;_featureToggles;_i18n;_theming;_routing;_elements;__cssVars;preventLoadingModalData;initialized=!1;configReadyCallback=function(){};USER_SETTINGS_KEY="luigi.preferences.userSettings";getEngine(){return this.engine}setConfig=e=>{this.config=e,this.setConfigCallback(this.getConfigReadyCallback()),ar.init().then(()=>{this.engine.init(),this.initialized||(this.initialized=!0,uC.luigiAfterInit(this))})};getConfig=()=>this.config;configChanged=(...e)=>{this.getEngine()._ui.update(e)};getConfigValue(e){return M.getConfigValueFromObject(this.getConfig(),e)}getConfigValueAsync(e,...r){return $r.getConfigValueFromObjectAsync(this.getConfig(),e,r)}clearNavigationCache(){j.get(hr).deleteCache();const e=r=>{r&&r.forEach&&r.forEach(s=>{s.titleResolver&&s.titleResolver._cache&&(s.titleResolver._cache=void 0),s.children&&e(s.children)})};e(this.getConfig().navigation.nodes)}setGlobalContext(e,r){this.config&&this.config.navigation&&(this.config.navigation.globalContext=e,r||this.configChanged("navigation"))}getGlobalContext(){return this.config?.navigation?.globalContext||{}}updateContextValues(e){const r=M.getNodeList("luigi-container[lui_container]");r&&r.forEach(s=>{const l={...s.context||{},...e};s.context=l,s.updateContext&&s.updateContext(l,{withoutSync:!1})})}async readUserSettings(){const e=await this.getConfigValueAsync("userSettings"),r=e||await this.getConfigValueAsync("settings.userSettings");if(r&&M.isFunction(r.readUserSettings))return r.readUserSettings();const s=localStorage.getItem(this.USER_SETTINGS_KEY);return s&&JSON.parse(s)}async storeUserSettings(e,r){const s=await this.getConfigValueAsync("userSettings"),a=s||await this.getConfigValueAsync("settings.userSettings");if(a&&M.isFunction(a.storeUserSettings))return a.storeUserSettings(e,r);localStorage.setItem(this.USER_SETTINGS_KEY,JSON.stringify(e)),this.configChanged()}reset(){const e=this.getConfig();this.unload(),this.setConfig(e)}unload(){this.initialized=!1,window.Luigi._store.clear(),ar.unload(),zl.removeAllEventListeners(),this.getEngine()._connector?.unload(),this._i18n=void 0}customMessages=()=>(this._customMessages||(this._customMessages=new mC(this)),this._customMessages);i18n=()=>(this._i18n||(this._i18n=new oC(this)),this._i18n);elements=()=>(this._elements||(this._elements=new lC(this)),this._elements);navigation=()=>new fC(this);ux=()=>new vC(this);featureToggles=()=>(this._featureToggles||(this._featureToggles=new cC),this._featureToggles);routing=()=>(this._routing||(this._routing=new hC(this)),this._routing);theming=()=>(this._theming||(this._theming=new dC(this)),this._theming);auth=()=>_i;createConfigStore(){const e=$a({}),r={};let s=[];return{subscribe:a=>{s.push(e.subscribe(a))},reset:a=>{e.update(a)},subscribeToScope:(a,l)=>{let u=r[l];u||(u=new Set,r[l]=u),u.add(a)},fire:(a,l)=>{const u=r[a];u&&[...u].forEach(f=>{f(l)})},clear:()=>{s.forEach(a=>{a()}),s=[]}}}getConfigReadyCallback(){return new Promise(e=>{this.i18n()._init(),e()})}setConfigCallback(e){this.configReadyCallback=e}}const Kd=!1;var SC=Array.isArray,yC=Array.prototype.indexOf,ki=Array.prototype.includes,EC=Array.from,CC=Object.defineProperty,ps=Object.getOwnPropertyDescriptor,bC=Object.prototype,TC=Array.prototype,RC=Object.getPrototypeOf,Oh=Object.isExtensible;const PC=()=>{};function AC(n){for(var e=0;e<n.length;e++)n[e]()}function IC(){var n,e,r=new Promise((s,a)=>{n=s,e=a});return{promise:r,resolve:n,reject:e}}const rt=2,bs=4,jd=8,Yd=1<<24,an=16,gr=32,pr=64,jl=128,qt=512,Je=1024,nt=2048,Cn=4096,Sn=8192,lr=16384,Ls=32768,Uh=1<<25,Ga=65536,Qa=1<<17,xC=1<<18,Ja=1<<19,LC=1<<20,Kr=65536,qa=1<<21,vs=1<<22,Ts=1<<23,Ll=Symbol("$state"),NC=Symbol("attributes"),OC=Symbol("class"),UC=Symbol("style"),DC=Symbol("text"),_u=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function MC(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function kC(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function $C(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function FC(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function HC(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const tt=Symbol();function VC(){console.warn("https://svelte.dev/e/derived_inert")}function WC(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function BC(n){return n===this.v}let mu=!1,GC=!1;function QC(){mu=!0}let fn=null;function za(n){fn=n}function qC(n,e=!1,r){fn={p:fn,i:!1,c:null,e:null,s:n,x:null,r:Le,l:mu&&!e?{s:null,u:null,$:[]}:null}}function zC(n){var e=fn,r=e.e;if(r!==null){e.e=null;for(var s of r)o0(s)}return e.i=!0,fn=e.p,{}}function Xa(){return!mu||fn!==null&&fn.l===null}let Ci=[];function KC(){var n=Ci;Ci=[],AC(n)}function Ai(n){if(Ci.length===0){var e=Ci;queueMicrotask(()=>{e===Ci&&KC()})}Ci.push(n)}function Jd(n){var e=Le;if(e===null)return Ee.f|=Ts,n;if((e.f&Ls)===0&&(e.f&bs)===0)throw n;bi(n,e)}function bi(n,e){for(;e!==null;){if((e.f&jl)!==0){if((e.f&Ls)===0)throw n;try{e.b.error(n);return}catch(r){n=r}}e=e.parent}throw n}const jC=-7169;function Fe(n,e){n.f=n.f&jC|e}function wu(n){(n.f&qt)!==0||n.deps===null?Fe(n,Je):Fe(n,Cn)}function Xd(n){if(n!==null)for(const e of n)(e.f&rt)===0||(e.f&Kr)===0||(e.f^=Kr,Xd(e.deps))}function Zd(n,e,r){(n.f&nt)!==0?e.add(n):(n.f&Cn)!==0&&r.add(n),Xd(n.deps),Fe(n,Je)}let Nl=null,gi=null,Ie=null,Yl=null,on=null,Jl=null,Ol=!1,Ti=null,Da=null;var Dh=0;let YC=1;class jr{id=YC++;#e=!1;linked=!0;#n=null;#t=null;async_deriveds=new Map;current=new Map;previous=new Map;unblocked=new Set;#l=new Set;#i=new Set;#o=new Set;#s=0;#r=new Map;#h=null;#a=[];#g=[];#d=new Set;#c=new Set;#f=new Map;#u=new Set;is_fork=!1;#_=!1;#E(){if(this.is_fork)return!0;for(const s of this.#r.keys()){for(var e=s,r=!1;e.parent!==null;){if(this.#f.has(e)){r=!0;break}e=e.parent}if(!r)return!0}return!1}skip_effect(e){this.#f.has(e)||this.#f.set(e,{d:[],m:[]}),this.#u.delete(e)}unskip_effect(e,r=s=>this.schedule(s)){var s=this.#f.get(e);if(s){this.#f.delete(e);for(var a of s.d)Fe(a,nt),r(a);for(a of s.m)Fe(a,Cn),r(a)}this.#u.add(e)}#v(){if(this.#e=!0,Dh++>1e3&&(this.#S(),JC()),!this.#E()){for(const h of this.#d)this.#c.delete(h),Fe(h,nt),this.schedule(h);for(const h of this.#c)Fe(h,Cn),this.schedule(h)}const e=this.#a;this.#a=[],this.apply();var r=Ti=[],s=[],a=Da=[];for(const h of e)try{this.#C(h,r,s)}catch(g){throw ng(h),g}if(Ie=null,a.length>0){var l=jr.ensure();for(const h of a)l.schedule(h)}if(Ti=null,Da=null,this.#E()){this.#p(s),this.#p(r);for(const[h,g]of this.#f)tg(h,g);a.length>0&&Ie.#v();return}const u=this.#y();if(u){u.#m(this);return}this.#d.clear(),this.#c.clear();for(const h of this.#l)h(this);this.#l.clear(),Yl=this,Mh(s),Mh(r),Yl=null,this.#h?.resolve();var f=Ie;if(this.linked&&this.#s===0&&this.#S(),this.#a.length>0){f===null&&(f=this,this.#w());const h=f;h.#a.push(...this.#a.filter(g=>!h.#a.includes(g)))}f!==null&&f.#v()}#C(e,r,s){e.f^=Je;for(var a=e.first;a!==null;){var l=a.f,u=(l&(gr|pr))!==0,f=u&&(l&Je)!==0,h=f||(l&Sn)!==0||this.#f.has(a);if(!h&&a.fn!==null){u?a.f^=Je:(l&bs)!==0?r.push(a):Os(a)&&((l&an)!==0&&this.#c.add(a),$i(a));var g=a.first;if(g!==null){a=g;continue}}for(;a!==null;){var _=a.next;if(_!==null){a=_;break}a=a.parent}}}#y(){for(var e=this.#n;e!==null;){if(!e.is_fork){for(const[r,[,s]]of this.current)if(e.current.has(r)&&!s)return e}e=e.#n}return null}#m(e){for(const[s,a]of e.current)!this.previous.has(s)&&e.previous.has(s)&&this.previous.set(s,e.previous.get(s)),this.current.set(s,a);for(const[s,a]of e.async_deriveds){const l=this.async_deriveds.get(s);l&&a.promise.then(l.resolve)}const r=s=>{var a=s.reactions;if(a!==null)for(const f of a){var l=f.f;if((l&rt)!==0)r(f);else{var u=f;l&(vs|an)&&!this.async_deriveds.has(u)&&(this.#c.delete(u),Fe(u,nt),this.schedule(u))}}};for(const s of this.current.keys())r(s);this.oncommit(()=>e.discard()),e.#S(),Ie=this,this.#v()}#p(e){for(var r=0;r<e.length;r+=1)Zd(e[r],this.#d,this.#c)}capture(e,r,s=!1){e.v!==tt&&!this.previous.has(e)&&this.previous.set(e,e.v),(e.f&Ts)===0&&(this.current.set(e,[r,s]),on?.set(e,r)),this.is_fork||(e.v=r)}activate(){Ie=this}deactivate(){Ie=null,on=null}flush(){try{Ol=!0,Ie=this,this.#v()}finally{Dh=0,Jl=null,Ti=null,Da=null,Ol=!1,Ie=null,on=null,Br.clear()}}discard(){for(const e of this.#i)e(this);this.#i.clear(),this.#o.clear(),this.#S()}register_created_effect(e){this.#g.push(e)}#b(){this.#S();for(let _=Nl;_!==null;_=_.#t){var e=_.id<this.id,r=[];for(const[w,[m,E]]of this.current){if(_.current.has(w)){var s=_.current.get(w)[0];if(e&&m!==s)_.current.set(w,[m,E]);else continue}r.push(w)}if(e)for(const[w,m]of this.async_deriveds){const E=_.async_deriveds.get(w);E&&m.promise.then(E.resolve)}if(_.#e){var a=[..._.current.keys()].filter(w=>!this.current.has(w));if(a.length===0)e&&_.discard();else if(r.length>0){if(e)for(const w of this.#u)_.unskip_effect(w,m=>{(m.f&(an|vs))!==0?_.schedule(m):_.#p([m])});_.activate();var l=new Set,u=new Map;for(var f of r)eg(f,a,l,u);u=new Map;var h=[..._.current.keys()].filter(w=>this.current.has(w)?this.current.get(w)[0]!==w.v:!0);if(h.length>0)for(const w of this.#g)(w.f&(lr|Sn|Qa))===0&&Su(w,h,u)&&((w.f&(vs|an))!==0?(Fe(w,nt),_.schedule(w)):_.#d.add(w));if(_.#a.length>0){_.apply();for(var g of _.#a)_.#C(g,[],[]);_.#a=[]}_.deactivate()}}}}increment(e,r){if(this.#s+=1,e){let s=this.#r.get(r)??0;this.#r.set(r,s+1)}}decrement(e,r){if(this.#s-=1,e){let s=this.#r.get(r)??0;s===1?this.#r.delete(r):this.#r.set(r,s-1)}this.#_||(this.#_=!0,Ai(()=>{this.#_=!1,this.linked&&this.flush()}))}transfer_effects(e,r){for(const s of e)this.#d.add(s);for(const s of r)this.#c.add(s);e.clear(),r.clear()}oncommit(e){this.#l.add(e)}ondiscard(e){this.#i.add(e)}on_fork_commit(e){this.#o.add(e)}run_fork_commit_callbacks(){for(const e of this.#o)e(this);this.#o.clear()}settled(){return(this.#h??=IC()).promise}static ensure(){if(Ie===null){const e=Ie=new jr;e.#w(),Ol||Ai(()=>{e.#e||e.flush()})}return Ie}apply(){{on=null;return}}schedule(e){if(Jl=e,e.b?.is_pending&&(e.f&(bs|jd|Yd))!==0&&(e.f&Ls)===0){e.b.defer_effect(e);return}for(var r=e;r.parent!==null;){r=r.parent;var s=r.f;if(Ti!==null&&r===Le&&(Ee===null||(Ee.f&rt)===0))return;if((s&(pr|gr))!==0){if((s&Je)===0)return;r.f^=Je}}this.#a.push(r)}#w(){gi===null?Nl=gi=this:(gi.#t=this,this.#n=gi),gi=this}#S(){var e=this.#n,r=this.#t;e===null?Nl=r:e.#t=r,r===null?gi=e:r.#n=e,this.linked=!1}}function JC(){try{MC()}catch(n){bi(n,Jl)}}let kn=null;function Mh(n){var e=n.length;if(e!==0){for(var r=0;r<e;){var s=n[r++];if((s.f&(lr|Sn))===0&&Os(s)&&(kn=new Set,$i(s),s.deps===null&&s.first===null&&s.nodes===null&&s.teardown===null&&s.ac===null&&dg(s),kn?.size>0)){Br.clear();for(const a of kn){if((a.f&(lr|Sn))!==0)continue;const l=[a];let u=a.parent;for(;u!==null;)kn.has(u)&&(kn.delete(u),l.push(u)),u=u.parent;for(let f=l.length-1;f>=0;f--){const h=l[f];(h.f&(lr|Sn))===0&&$i(h)}}kn.clear()}}kn=null}}function eg(n,e,r,s){if(!r.has(n)&&(r.add(n),n.reactions!==null))for(const a of n.reactions){const l=a.f;(l&rt)!==0?eg(a,e,r,s):(l&(vs|an))!==0&&(l&nt)===0&&Su(a,e,s)&&(Fe(a,nt),yu(a))}}function Su(n,e,r){const s=r.get(n);if(s!==void 0)return s;if(n.deps!==null)for(const a of n.deps){if(ki.call(e,a))return!0;if((a.f&rt)!==0&&Su(a,e,r))return r.set(a,!0),!0}return r.set(n,!1),!1}function yu(n){Ie.schedule(n)}function tg(n,e){if(!((n.f&gr)!==0&&(n.f&Je)!==0)){(n.f&nt)!==0?e.d.push(n):(n.f&Cn)!==0&&e.m.push(n),Fe(n,Je);for(var r=n.first;r!==null;)tg(r,e),r=r.next}}function ng(n){Fe(n,Je);for(var e=n.first;e!==null;)ng(e),e=e.next}function XC(n){let e=0,r=Cu(0),s;return()=>{bu()&&(Ri(r),u0(()=>(e===0&&(s=_0(()=>n(()=>_s(r)))),e+=1,()=>{Ai(()=>{e-=1,e===0&&(s?.(),s=void 0,_s(r))})})))}}var ZC=Ga|Ja;function e0(n,e,r,s){new t0(n,e,r,s)}class t0{parent;is_pending=!1;transform_error;#e;#n=null;#t;#l;#i;#o=null;#s=null;#r=null;#h=null;#a=0;#g=0;#d=!1;#c=new Set;#f=new Set;#u=null;#_=XC(()=>(this.#u=Cu(this.#a),()=>{this.#u=null}));constructor(e,r,s,a){this.#e=e,this.#t=r,this.#l=l=>{var u=Le;u.b=this,u.f|=jl,s(l)},this.parent=Le.b,this.transform_error=a??this.parent?.transform_error??(l=>l),this.#i=c0(()=>{this.#y()},ZC)}#E(){try{this.#o=Nr(()=>this.#l(this.#e))}catch(e){this.error(e)}}#v(e){const r=this.#t.failed;r&&(this.#r=Nr(()=>{r(this.#e,()=>e,()=>()=>{})}))}#C(){const e=this.#t.pending;e&&(this.is_pending=!0,this.#s=Nr(()=>e(this.#e)),Ai(()=>{var r=this.#h=document.createDocumentFragment(),s=ug();r.append(s),this.#o=this.#p(()=>Nr(()=>this.#l(s))),this.#g===0&&(this.#e.before(r),this.#h=null,Ma(this.#s,()=>{this.#s=null}),this.#m(Ie))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#g=0,this.#a=0,this.#o=Nr(()=>{this.#l(this.#e)}),this.#g>0){var e=this.#h=document.createDocumentFragment();d0(this.#o,e);const r=this.#t.pending;this.#s=Nr(()=>r(this.#e))}else this.#m(Ie)}catch(r){this.error(r)}}#m(e){this.is_pending=!1,e.transfer_effects(this.#c,this.#f)}defer_effect(e){Zd(e,this.#c,this.#f)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#p(e){var r=Le,s=Ee,a=fn;vr(this.#i),bn(this.#i),za(this.#i.ctx);try{return jr.ensure(),e()}catch(l){return Jd(l),null}finally{vr(r),bn(s),za(a)}}#b(e,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#b(e,r);return}this.#g+=e,this.#g===0&&(this.#m(r),this.#s&&Ma(this.#s,()=>{this.#s=null}),this.#h&&(this.#e.before(this.#h),this.#h=null))}update_pending_count(e,r){this.#b(e,r),this.#a+=e,!(!this.#u||this.#d)&&(this.#d=!0,Ai(()=>{this.#d=!1,this.#u&&ag(this.#u,this.#a)}))}get_effect_pending(){return this.#_(),Ri(this.#u)}error(e){if(!this.#t.onerror&&!this.#t.failed)throw e;Ie?.is_fork?(this.#o&&Ie.skip_effect(this.#o),this.#s&&Ie.skip_effect(this.#s),this.#r&&Ie.skip_effect(this.#r),Ie.on_fork_commit(()=>{this.#w(e)})):this.#w(e)}#w(e){this.#o&&(yn(this.#o),this.#o=null),this.#s&&(yn(this.#s),this.#s=null),this.#r&&(yn(this.#r),this.#r=null);var r=this.#t.onerror;let s=this.#t.failed;var a=!1,l=!1;const u=()=>{if(a){WC();return}a=!0,l&&HC(),this.#r!==null&&Ma(this.#r,()=>{this.#r=null}),this.#p(()=>{this.#y()})},f=h=>{try{l=!0,r?.(h,u),l=!1}catch(g){bi(g,this.#i&&this.#i.parent)}s&&(this.#r=this.#p(()=>{try{return Nr(()=>{var g=Le;g.b=this,g.f|=jl,s(this.#e,()=>h,()=>u)})}catch(g){return bi(g,this.#i.parent),null}}))};Ai(()=>{var h;try{h=this.transform_error(e)}catch(g){bi(g,this.#i&&this.#i.parent);return}h!==null&&typeof h=="object"&&typeof h.then=="function"?h.then(f,g=>bi(g,this.#i&&this.#i.parent)):f(h)})}}function n0(n){var e=n.effects;if(e!==null){n.effects=null;for(var r=0;r<e.length;r+=1)yn(e[r])}}function Eu(n){var e,r=Le,s=n.parent;if(!Yr&&s!==null&&(s.f&(lr|Sn))!==0)return VC(),n.v;vr(s);try{n.f&=~Kr,n0(n),e=mg(n)}finally{vr(r)}return e}function rg(n){var e=Eu(n);if(!n.equals(e)&&(n.wv=vg(),(!Ie?.is_fork||n.deps===null)&&(Ie!==null?(Ie.capture(n,e,!0),Yl?.capture(n,e,!0)):n.v=e,n.deps===null))){Fe(n,Je);return}Yr||(on!==null?(bu()||Ie?.is_fork)&&on.set(n,e):wu(n))}function r0(n){if(n.effects!==null)for(const e of n.effects)(e.teardown||e.ac)&&(e.teardown?.(),e.ac?.abort(_u),e.teardown=PC,e.ac=null,Rs(e,0),Tu(e))}function ig(n){if(n.effects!==null)for(const e of n.effects)e.teardown&&$i(e)}let Ka=new Set;const Br=new Map;let sg=!1;function Cu(n,e){var r={f:0,v:n,reactions:null,equals:BC,rv:0,wv:0};return r}function tr(n,e){const r=Cu(n);return g0(r),r}function Or(n,e,r=!1){Ee!==null&&(!ln||(Ee.f&Qa)!==0)&&Xa()&&(Ee.f&(rt|an|vs|Qa))!==0&&(zt===null||!ki.call(zt,n))&&FC();let s=r?us(e):e;return ag(n,s,Da)}function ag(n,e,r=null){if(!n.equals(e)){Br.set(n,Yr?e:n.v);var s=jr.ensure();if(s.capture(n,e),(n.f&rt)!==0){const a=n;(n.f&nt)!==0&&Eu(a),on===null&&wu(a)}n.wv=vg(),og(n,nt,r),Xa()&&Le!==null&&(Le.f&Je)!==0&&(Le.f&(gr|pr))===0&&(Vt===null?p0([n]):Vt.push(n)),!s.is_fork&&Ka.size>0&&!sg&&i0()}return e}function i0(){sg=!1;for(const n of Ka){(n.f&Je)!==0&&Fe(n,Cn);let e;try{e=Os(n)}catch{e=!0}e&&$i(n)}Ka.clear()}function _s(n){Or(n,n.v+1)}function og(n,e,r){var s=n.reactions;if(s!==null)for(var a=Xa(),l=s.length,u=0;u<l;u++){var f=s[u],h=f.f;if(!(!a&&f===Le)){var g=(h&nt)===0;if(g&&Fe(f,e),(h&Qa)!==0)Ka.add(f);else if((h&rt)!==0){var _=f;on?.delete(_),(h&Kr)===0&&(h&qt&&(Le===null||(Le.f&qa)===0)&&(f.f|=Kr),og(_,Cn,r))}else if(g){var w=f;(h&an)!==0&&kn!==null&&kn.add(w),r!==null?r.push(w):yu(w)}}}}function us(n){if(typeof n!="object"||n===null||Ll in n)return n;const e=RC(n);if(e!==bC&&e!==TC)return n;var r=new Map,s=SC(n),a=tr(0),l=Gr,u=f=>{if(Gr===l)return f();var h=Ee,g=Gr;bn(null),Fh(l);var _=f();return bn(h),Fh(g),_};return s&&r.set("length",tr(n.length)),new Proxy(n,{defineProperty(f,h,g){(!("value"in g)||g.configurable===!1||g.enumerable===!1||g.writable===!1)&&kC();var _=r.get(h);return _===void 0?u(()=>{var w=tr(g.value);return r.set(h,w),w}):Or(_,g.value,!0),!0},deleteProperty(f,h){var g=r.get(h);if(g===void 0){if(h in f){const _=u(()=>tr(tt));r.set(h,_),_s(a)}}else Or(g,tt),_s(a);return!0},get(f,h,g){if(h===Ll)return n;var _=r.get(h),w=h in f;if(_===void 0&&(!w||ps(f,h)?.writable)&&(_=u(()=>{var E=us(w?f[h]:tt),C=tr(E);return C}),r.set(h,_)),_!==void 0){var m=Ri(_);return m===tt?void 0:m}return Reflect.get(f,h,g)},getOwnPropertyDescriptor(f,h){var g=Reflect.getOwnPropertyDescriptor(f,h);if(g&&"value"in g){var _=r.get(h);_&&(g.value=Ri(_))}else if(g===void 0){var w=r.get(h),m=w?.v;if(w!==void 0&&m!==tt)return{enumerable:!0,configurable:!0,value:m,writable:!0}}return g},has(f,h){if(h===Ll)return!0;var g=r.get(h),_=g!==void 0&&g.v!==tt||Reflect.has(f,h);if(g!==void 0||Le!==null&&(!_||ps(f,h)?.writable)){g===void 0&&(g=u(()=>{var m=_?us(f[h]):tt,E=tr(m);return E}),r.set(h,g));var w=Ri(g);if(w===tt)return!1}return _},set(f,h,g,_){var w=r.get(h),m=h in f;if(s&&h==="length")for(var E=g;E<w.v;E+=1){var C=r.get(E+"");C!==void 0?Or(C,tt):E in f&&(C=u(()=>tr(tt)),r.set(E+"",C))}if(w===void 0)(!m||ps(f,h)?.writable)&&(w=u(()=>tr(void 0)),Or(w,us(g)),r.set(h,w));else{m=w.v!==tt;var R=u(()=>us(g));Or(w,R)}var I=Reflect.getOwnPropertyDescriptor(f,h);if(I?.set&&I.set.call(_,g),!m){if(s&&typeof h=="string"){var N=r.get("length"),F=Number(h);Number.isInteger(F)&&F>=N.v&&Or(N,F+1)}_s(a)}return!0},ownKeys(f){Ri(a);var h=Reflect.ownKeys(f).filter(w=>{var m=r.get(w);return m===void 0||m.v!==tt});for(var[g,_]of r)_.v!==tt&&!(g in f)&&h.push(g);return h},setPrototypeOf(){$C()}})}var kh,lg;function s0(){if(kh===void 0){kh=window;var n=Element.prototype,e=Node.prototype,r=Text.prototype;ps(e,"firstChild").get,lg=ps(e,"nextSibling").get,Oh(n)&&(n[OC]=void 0,n[NC]=null,n[UC]=void 0,n.__e=void 0),Oh(r)&&(r[DC]=void 0)}}function ug(n=""){return document.createTextNode(n)}function cg(n){return lg.call(n)}function fg(n){var e=Ee,r=Le;bn(null),vr(null);try{return n()}finally{bn(e),vr(r)}}function a0(n,e){var r=e.last;r===null?e.last=e.first=n:(r.next=n,n.prev=r,e.last=n)}function Ns(n,e){var r=Le;r!==null&&(r.f&Sn)!==0&&(n|=Sn);var s={ctx:fn,deps:null,nodes:null,f:n|nt|qt,first:null,fn:e,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};Ie?.register_created_effect(s);var a=s;if((n&bs)!==0)Ti!==null?Ti.push(s):jr.ensure().schedule(s);else if(e!==null){try{$i(s)}catch(u){throw yn(s),u}a.deps===null&&a.teardown===null&&a.nodes===null&&a.first===a.last&&(a.f&Ja)===0&&(a=a.first,(n&an)!==0&&(n&Ga)!==0&&a!==null&&(a.f|=Ga))}if(a!==null&&(a.parent=r,r!==null&&a0(a,r),Ee!==null&&(Ee.f&rt)!==0&&(n&pr)===0)){var l=Ee;(l.effects??=[]).push(a)}return s}function bu(){return Ee!==null&&!ln}function o0(n){return Ns(bs|LC,n)}function l0(n){jr.ensure();const e=Ns(pr|Ja,n);return(r={})=>new Promise(s=>{r.outro?Ma(e,()=>{yn(e),s(void 0)}):(yn(e),s(void 0))})}function u0(n,e=0){return Ns(jd|e,n)}function c0(n,e=0){var r=Ns(an|e,n);return r}function Nr(n){return Ns(gr|Ja,n)}function hg(n){var e=n.teardown;if(e!==null){const r=Yr,s=Ee;$h(!0),bn(null);try{e.call(null)}finally{$h(r),bn(s)}}}function Tu(n,e=!1){var r=n.first;for(n.first=n.last=null;r!==null;){const a=r.ac;a!==null&&fg(()=>{a.abort(_u)});var s=r.next;(r.f&pr)!==0?r.parent=null:yn(r,e),r=s}}function f0(n){for(var e=n.first;e!==null;){var r=e.next;(e.f&gr)===0&&yn(e),e=r}}function yn(n,e=!0){var r=!1;(e||(n.f&xC)!==0)&&n.nodes!==null&&n.nodes.end!==null&&(h0(n.nodes.start,n.nodes.end),r=!0),Fe(n,Uh),Tu(n,e&&!r),Rs(n,0);var s=n.nodes&&n.nodes.t;if(s!==null)for(const l of s)l.stop();hg(n),n.f^=Uh,n.f|=lr;var a=n.parent;a!==null&&a.first!==null&&dg(n),n.next=n.prev=n.teardown=n.ctx=n.deps=n.fn=n.nodes=n.ac=n.b=null}function h0(n,e){for(;n!==null;){var r=n===e?null:cg(n);n.remove(),n=r}}function dg(n){var e=n.parent,r=n.prev,s=n.next;r!==null&&(r.next=s),s!==null&&(s.prev=r),e!==null&&(e.first===n&&(e.first=s),e.last===n&&(e.last=r))}function Ma(n,e,r=!0){var s=[];gg(n,s,!0);var a=()=>{r&&yn(n),e&&e()},l=s.length;if(l>0){var u=()=>--l||a();for(var f of s)f.out(u)}else a()}function gg(n,e,r){if((n.f&Sn)===0){n.f^=Sn;var s=n.nodes&&n.nodes.t;if(s!==null)for(const f of s)(f.is_global||r)&&e.push(f);for(var a=n.first;a!==null;){var l=a.next;if((a.f&pr)===0){var u=(a.f&Ga)!==0||(a.f&gr)!==0&&(n.f&an)!==0;gg(a,e,u?r:!1)}a=l}}}function d0(n,e){if(n.nodes)for(var r=n.nodes.start,s=n.nodes.end;r!==null;){var a=r===s?null:cg(r);e.append(r),r=a}}let ka=!1,Yr=!1;function $h(n){Yr=n}let Ee=null,ln=!1;function bn(n){Ee=n}let Le=null;function vr(n){Le=n}let zt=null;function g0(n){Ee!==null&&(zt===null?zt=[n]:zt.push(n))}let vt=null,It=0,Vt=null;function p0(n){Vt=n}let pg=1,kr=0,Gr=kr;function Fh(n){Gr=n}function vg(){return++pg}function Os(n){var e=n.f;if((e&nt)!==0)return!0;if(e&rt&&(n.f&=~Kr),(e&Cn)!==0){for(var r=n.deps,s=r.length,a=0;a<s;a++){var l=r[a];if(Os(l)&&rg(l),l.wv>n.wv)return!0}(e&qt)!==0&&on===null&&Fe(n,Je)}return!1}function _g(n,e,r=!0){var s=n.reactions;if(s!==null&&!(zt!==null&&ki.call(zt,n)))for(var a=0;a<s.length;a++){var l=s[a];(l.f&rt)!==0?_g(l,e,!1):e===l&&(r?Fe(l,nt):(l.f&Je)!==0&&Fe(l,Cn),yu(l))}}function mg(n){var e=vt,r=It,s=Vt,a=Ee,l=zt,u=fn,f=ln,h=Gr,g=n.f;vt=null,It=0,Vt=null,Ee=(g&(gr|pr))===0?n:null,zt=null,za(n.ctx),ln=!1,Gr=++kr,n.ac!==null&&(fg(()=>{n.ac.abort(_u)}),n.ac=null);try{n.f|=qa;var _=n.fn,w=_();n.f|=Ls;var m=n.deps,E=Ie?.is_fork;if(vt!==null){var C;if(E||Rs(n,It),m!==null&&It>0)for(m.length=It+vt.length,C=0;C<vt.length;C++)m[It+C]=vt[C];else n.deps=m=vt;if(bu()&&(n.f&qt)!==0)for(C=It;C<m.length;C++)(m[C].reactions??=[]).push(n)}else!E&&m!==null&&It<m.length&&(Rs(n,It),m.length=It);if(Xa()&&Vt!==null&&!ln&&m!==null&&(n.f&(rt|Cn|nt))===0)for(C=0;C<Vt.length;C++)_g(Vt[C],n);if(a!==null&&a!==n){if(kr++,a.deps!==null)for(let R=0;R<r;R+=1)a.deps[R].rv=kr;if(e!==null)for(const R of e)R.rv=kr;Vt!==null&&(s===null?s=Vt:s.push(...Vt))}return(n.f&Ts)!==0&&(n.f^=Ts),w}catch(R){return Jd(R)}finally{n.f^=qa,vt=e,It=r,Vt=s,Ee=a,zt=l,za(u),ln=f,Gr=h}}function v0(n,e){let r=e.reactions;if(r!==null){var s=yC.call(r,n);if(s!==-1){var a=r.length-1;a===0?r=e.reactions=null:(r[s]=r[a],r.pop())}}if(r===null&&(e.f&rt)!==0&&(vt===null||!ki.call(vt,e))){var l=e;(l.f&qt)!==0&&(l.f^=qt,l.f&=~Kr),l.v!==tt&&wu(l),r0(l),Rs(l,0)}}function Rs(n,e){var r=n.deps;if(r!==null)for(var s=e;s<r.length;s++)v0(n,r[s])}function $i(n){var e=n.f;if((e&lr)===0){Fe(n,Je);var r=Le,s=ka;Le=n,ka=!0;try{(e&(an|Yd))!==0?f0(n):Tu(n),hg(n);var a=mg(n);n.teardown=typeof a=="function"?a:null,n.wv=pg;var l;Kd&&GC&&(n.f&nt)!==0&&n.deps}finally{ka=s,Le=r}}}function Ri(n){var e=n.f,r=(e&rt)!==0;if(Ee!==null&&!ln){var s=Le!==null&&(Le.f&lr)!==0;if(!s&&(zt===null||!ki.call(zt,n))){var a=Ee.deps;if((Ee.f&qa)!==0)n.rv<kr&&(n.rv=kr,vt===null&&a!==null&&a[It]===n?It++:vt===null?vt=[n]:vt.push(n));else{(Ee.deps??=[]).push(n);var l=n.reactions;l===null?n.reactions=[Ee]:ki.call(l,Ee)||l.push(Ee)}}}if(Yr&&Br.has(n))return Br.get(n);if(r){var u=n;if(Yr){var f=u.v;return((u.f&Je)===0&&u.reactions!==null||Sg(u))&&(f=Eu(u)),Br.set(u,f),f}var h=(u.f&qt)===0&&!ln&&Ee!==null&&(ka||(Ee.f&qt)!==0),g=(u.f&Ls)===0;Os(u)&&(h&&(u.f|=qt),rg(u)),h&&!g&&(ig(u),wg(u))}if(on?.has(n))return on.get(n);if((n.f&Ts)!==0)throw n.v;return n.v}function wg(n){if(n.f|=qt,n.deps!==null)for(const e of n.deps)(e.reactions??=[]).push(n),(e.f&rt)!==0&&(e.f&qt)===0&&(ig(e),wg(e))}function Sg(n){if(n.v===tt)return!0;if(n.deps===null)return!1;for(const e of n.deps)if(Br.has(e)||(e.f&rt)!==0&&Sg(e))return!0;return!1}function _0(n){var e=ln;try{return ln=!0,n()}finally{ln=e}}const m0=["touchstart","touchmove"];function w0(n){return m0.includes(n)}const xa=Symbol("events"),S0=new Set,Hh=new Set;let Vh=null;function Wh(n){var e=this,r=e.ownerDocument,s=n.type,a=n.composedPath?.()||[],l=a[0]||n.target;Vh=n;var u=0,f=Vh===n&&n[xa];if(f){var h=a.indexOf(f);if(h!==-1&&(e===document||e===window)){n[xa]=e;return}var g=a.indexOf(e);if(g===-1)return;h<=g&&(u=h)}if(l=a[u]||n.target,l!==e){CC(n,"currentTarget",{configurable:!0,get(){return l||r}});var _=Ee,w=Le;bn(null),vr(null);try{for(var m,E=[];l!==null;){var C=l.assignedSlot||l.parentNode||l.host||null;try{var R=l[xa]?.[s];R!=null&&(!l.disabled||n.target===l)&&R.call(l,n)}catch(I){m?E.push(I):m=I}if(n.cancelBubble||C===e||C===null)break;l=C}if(m){for(let I of E)queueMicrotask(()=>{throw I});throw m}}finally{n[xa]=e,delete n.currentTarget,bn(_),vr(w)}}}function y0(n,e){return E0(n,e)}const La=new Map;function E0(n,{target:e,anchor:r,props:s={},events:a,context:l,intro:u=!0,transformError:f}){s0();var h=void 0,g=l0(()=>{var _=r??e.appendChild(ug());e0(_,{pending:()=>{}},E=>{qC({});var C=fn;l&&(C.c=l),a&&(s.$$events=a),h=n(E,s)||{},zC()},f);var w=new Set,m=E=>{for(var C=0;C<E.length;C++){var R=E[C];if(!w.has(R)){w.add(R);var I=w0(R);for(const oe of[e,document]){var N=La.get(oe);N===void 0&&(N=new Map,La.set(oe,N));var F=N.get(R);F===void 0?(oe.addEventListener(R,Wh,{passive:I}),N.set(R,1)):N.set(R,F+1)}}}};return m(EC(S0)),Hh.add(m),()=>{for(var E of w)for(const I of[e,document]){var C=La.get(I),R=C.get(E);--R==0?(I.removeEventListener(E,Wh),C.delete(E),C.size===0&&La.delete(I)):C.set(E,R)}Hh.delete(m),_!==r&&_.parentNode?.removeChild(_)}});return C0.set(h,g),h}let C0=new WeakMap;const b0="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(b0);QC();function T0(n){}const Xl={init:n=>{j.get(Wr).enableRouting()},handlePageErrorHandler:(n,e,r)=>{n&&n.timeout&&setTimeout(()=>{if(n.viewUrl)e.viewUrl=n.viewUrl,r.getEngine()._ui.updateMainContent(e,r);else if(n.errorFn)n.errorFn(e);else{console.warn("Something went wrong with a client! You will be redirected to another page.");const s=n.redirectPath||"/";r.navigation().navigate(s)}},n.timeout)},handleExternalLinkNavigation:n=>{if(n.url)if(n.sameWindow||!1)window.location.href=n.url;else{const r=window.open(n.url,"_blank","noopener noreferrer");r&&(r.opener=null,r.focus())}},async addSearchParamsFromClient(n,e,r){const s=j.get(dr),a=D.getCurrentPath(r,r.getConfig().routing?.useHashRouting),u=(await s.getCurrentNode(a.path))?.clientPermissions?.urlParameters,f={...n};if(u){const h={};Object.keys(u).forEach(g=>{g in f&&u[g]?.write===!0&&(h[g]=f[g],delete f[g])});for(const g in f)console.warn(`No permission to add the search param "${g}" to the url`);Object.keys(h).length>0&&r.routing().addSearchParams(h,e)}}};class R0{static hasLocaleChangePermission(e){return e?.clientPermissions?.changeCurrentLocale?!0:(console.error('Current locale change declined from client, as client permission "changeCurrentLocale" is not set for this view.'),!1)}}const $n={luigi:{},init:n=>{$n.luigi=n},addListeners:(n,e)=>{n.addEventListener(k.INITIALIZED,r=>{qe.luigi?.ux().hideLoadingIndicator(n.parentNode);const s=j.get(Di);s.viewGroupLoaded(n),!n._luigiPreloading&&n.style.display!=="none"&&s.preload()}),n.addEventListener(k.NAVIGATION_COMPLETED_REPORT,()=>{j.get(Di).preload()}),n.addEventListener(k.NAVIGATION_REQUEST,r=>{const s=r.detail,{drawer:a,link:l,intent:u,preserveView:f,modal:h,newTab:g,withoutSync:_,preventContextUpdate:w,preventHistoryEntry:m,fromVirtualTreeRoot:E,fromContext:C,fromClosestContext:R,fromParent:I,relative:N,nodeParams:F}=s,oe={drawerSettings:a,intent:u,modalSettings:h,newTab:g,path:l,preserveView:f,preventContextUpdate:w,options:{fromVirtualTreeRoot:E,fromContext:C,fromClosestContext:R,fromParent:I,relative:N,nodeParams:F},preventHistoryEntry:m,withoutSync:_};j.get(dr).handleNavigationRequest(oe,de=>r.callback(de))}),n.addEventListener(k.RUNTIME_ERROR_HANDLING_REQUEST,r=>{const s=r.payload;e.navigation().runTimeErrorHandler(s?.data?.errorObj||{})}),n.addEventListener(k.ALERT_REQUEST,r=>{qe.processAlert(r.payload,!0,n)}),n.addEventListener(k.SHOW_CONFIRMATION_MODAL_REQUEST,r=>{qe.handleConfirmationModalRequest(r.payload,n)}),n.addEventListener(k.SET_DOCUMENT_TITLE_REQUEST,r=>{const s=r.detail;$n.luigi.getEngine()._connector?.setDocumentTitle(s.title)}),n.addEventListener(k.SHOW_LOADING_INDICATOR_REQUEST,()=>{$n.luigi.getEngine()._connector?.showLoadingIndicator(n.parentNode)}),n.addEventListener(k.HIDE_LOADING_INDICATOR_REQUEST,()=>{$n.luigi.getEngine()._connector?.hideLoadingIndicator(n.parentNode)}),n.addEventListener(k.ADD_BACKDROP_REQUEST,()=>{$n.luigi.getEngine()._connector?.addBackdrop()}),n.addEventListener(k.REMOVE_BACKDROP_REQUEST,()=>{$n.luigi.getEngine()._connector?.removeBackdrop()}),n.addEventListener(k.SET_DIRTY_STATUS_REQUEST,r=>{const s=r.payload;qe.handleDirtyStatusRequest(s?.dirty??!1,n)}),n.addEventListener(k.ADD_NODE_PARAMS_REQUEST,r=>{const s=r.payload;e.routing().addNodeParams(s.data,s.keepBrowserHistory)}),n.addEventListener(k.OPEN_USER_SETTINGS_REQUEST,()=>{e.ux().openUserSettings()}),n.addEventListener(k.CLOSE_USER_SETTINGS_REQUEST,()=>{$n.luigi.getEngine()._connector?.closeUserSettings()}),n.addEventListener(k.ADD_SEARCH_PARAMS_REQUEST,r=>{const s=r.detail;Xl.addSearchParamsFromClient(s.data,s.keepBrowserHistory,e)}),n.addEventListener(k.UPDATE_MODAL_SETTINGS_REQUEST,r=>{const s=r.payload;G.updateModalSettings(s.updatedModalSettings,s.addHistoryEntry,e)}),n.addEventListener(k.SET_CURRENT_LOCALE_REQUEST,r=>{if(!R0.hasLocaleChangePermission(n))return;const a=r.detail?.data?.data?.currentLocale;a&&e.i18n().setCurrentLocale(a)})}};class P0{config;_connector;_app;_ui=G;_comm=$n;_ux=qe;_routing=Xl;bootstrap(e){this._app=y0(T0,{target:document.body}),this._connector=e}init(){const e=window.Luigi;j.register(un,()=>new un(e)),j.register(dr,()=>new dr(e)),j.register(hr,()=>new hr),j.register(Wr,()=>new Wr(e)),j.register(Mi,()=>new Mi),j.register(fr,()=>new fr(e)),j.register(Di,()=>new Di(e)),e.theming()._init(),G.init(e),Xl.init(e),$n.init(e),qe.init(e)}}window.Luigi=new wC(new P0);
95
95
  //# sourceMappingURL=luigi.js.map