@luigi-project/core-modular 0.0.3-dev.20260360050 → 0.0.3-dev.20260380047
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/core-api/navigation.d.ts +12 -1
- package/luigi.js +12 -12
- package/luigi.js.map +1 -1
- package/package.json +1 -1
- package/services/navigation.service.d.ts +3 -3
- package/types/navigation.d.ts +1 -0
- package/utilities/helpers/generic-helpers.d.ts +12 -0
- package/utilities/helpers/routing-helpers.d.ts +29 -2
package/luigi.js
CHANGED
|
@@ -5,33 +5,33 @@ var CS=Object.defineProperty;var Tc=i=>{throw TypeError(i)};var TS=(i,n,r)=>n in
|
|
|
5
5
|
* Released under MIT license <https://lodash.com/license>
|
|
6
6
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
7
7
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
8
|
-
*/var AS=Ci.exports,yc;function RS(){return yc||(yc=1,(function(i,n){(function(){var r,a="4.17.23",u=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",h="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",v=500,A="__lodash_placeholder__",C=1,E=2,y=4,b=1,O=2,N=1,G=2,ae=4,ce=8,Ge=16,Ee=32,Qe=64,Pe=128,Fe=256,Ie=512,Ce=30,Te="...",U=800,Dt=16,Ze=1,Oe=2,Yt=3,x=1/0,qe=9007199254740991,ie=17976931348623157e292,ye=NaN,ke=4294967295,Di=ke-1,Mi=ke>>>1,me=[["ary",Pe],["bind",N],["bindKey",G],["curry",ce],["curryRight",Ge],["flip",Ie],["partial",Ee],["partialRight",Qe],["rearg",Fe]],Et="[object Arguments]",an="[object Array]",jr="[object AsyncFunction]",ei="[object Boolean]",ti="[object Date]",Ff="[object DOMException]",Fi="[object Error]",ki="[object Function]",qo="[object GeneratorFunction]",Mt="[object Map]",ni="[object Number]",kf="[object Null]",on="[object Object]",zo="[object Promise]",Wf="[object Proxy]",ri="[object RegExp]",Ft="[object Set]",ii="[object String]",Wi="[object Symbol]",Hf="[object Undefined]",si="[object WeakMap]",Vf="[object WeakSet]",ai="[object ArrayBuffer]",hr="[object DataView]",Ys="[object Float32Array]",Xs="[object Float64Array]",Zs="[object Int8Array]",Js="[object Int16Array]",js="[object Int32Array]",ea="[object Uint8Array]",ta="[object Uint8ClampedArray]",na="[object Uint16Array]",ra="[object Uint32Array]",Bf=/\b__p \+= '';/g,Gf=/\b(__p \+=) '' \+/g,Qf=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ko=/&(?:amp|lt|gt|quot|#39);/g,Yo=/[&<>"']/g,qf=RegExp(Ko.source),zf=RegExp(Yo.source),Kf=/<%-([\s\S]+?)%>/g,Yf=/<%([\s\S]+?)%>/g,Xo=/<%=([\s\S]+?)%>/g,Xf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Zf=/^\w*$/,Jf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ia=/[\\^$.*+?()[\]{}|]/g,jf=RegExp(ia.source),sa=/^\s+/,eh=/\s/,th=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nh=/\{\n\/\* \[wrapped with (.+)\] \*/,rh=/,? & /,ih=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,sh=/[()=,{}\[\]\/\s]/,ah=/\\(\\)?/g,oh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Zo=/\w*$/,uh=/^[-+]0x[0-9a-f]+$/i,lh=/^0b[01]+$/i,ch=/^\[object .+?Constructor\]$/,fh=/^0o[0-7]+$/i,hh=/^(?:0|[1-9]\d*)$/,gh=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Hi=/($^)/,dh=/['\n\r\u2028\u2029\\]/g,Vi="\\ud800-\\udfff",ph="\\u0300-\\u036f",_h="\\ufe20-\\ufe2f",vh="\\u20d0-\\u20ff",Jo=ph+_h+vh,jo="\\u2700-\\u27bf",eu="a-z\\xdf-\\xf6\\xf8-\\xff",mh="\\xac\\xb1\\xd7\\xf7",Sh="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",wh="\\u2000-\\u206f",Eh=" \\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",tu="A-Z\\xc0-\\xd6\\xd8-\\xde",nu="\\ufe0e\\ufe0f",ru=mh+Sh+wh+Eh,aa="['’]",Ch="["+Vi+"]",iu="["+ru+"]",Bi="["+Jo+"]",su="\\d+",Th="["+jo+"]",au="["+eu+"]",ou="[^"+Vi+ru+su+jo+eu+tu+"]",oa="\\ud83c[\\udffb-\\udfff]",yh="(?:"+Bi+"|"+oa+")",uu="[^"+Vi+"]",ua="(?:\\ud83c[\\udde6-\\uddff]){2}",la="[\\ud800-\\udbff][\\udc00-\\udfff]",gr="["+tu+"]",lu="\\u200d",cu="(?:"+au+"|"+ou+")",Ah="(?:"+gr+"|"+ou+")",fu="(?:"+aa+"(?:d|ll|m|re|s|t|ve))?",hu="(?:"+aa+"(?:D|LL|M|RE|S|T|VE))?",gu=yh+"?",du="["+nu+"]?",Rh="(?:"+lu+"(?:"+[uu,ua,la].join("|")+")"+du+gu+")*",bh="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ph="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",pu=du+gu+Rh,Ih="(?:"+[Th,ua,la].join("|")+")"+pu,xh="(?:"+[uu+Bi+"?",Bi,ua,la,Ch].join("|")+")",Lh=RegExp(aa,"g"),$h=RegExp(Bi,"g"),ca=RegExp(oa+"(?="+oa+")|"+xh+pu,"g"),Nh=RegExp([gr+"?"+au+"+"+fu+"(?="+[iu,gr,"$"].join("|")+")",Ah+"+"+hu+"(?="+[iu,gr+cu,"$"].join("|")+")",gr+"?"+cu+"+"+fu,gr+"+"+hu,Ph,bh,su,Ih].join("|"),"g"),Oh=RegExp("["+lu+Vi+Jo+nu+"]"),Uh=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Dh=["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"],Mh=-1,pe={};pe[Ys]=pe[Xs]=pe[Zs]=pe[Js]=pe[js]=pe[ea]=pe[ta]=pe[na]=pe[ra]=!0,pe[Et]=pe[an]=pe[ai]=pe[ei]=pe[hr]=pe[ti]=pe[Fi]=pe[ki]=pe[Mt]=pe[ni]=pe[on]=pe[ri]=pe[Ft]=pe[ii]=pe[si]=!1;var de={};de[Et]=de[an]=de[ai]=de[hr]=de[ei]=de[ti]=de[Ys]=de[Xs]=de[Zs]=de[Js]=de[js]=de[Mt]=de[ni]=de[on]=de[ri]=de[Ft]=de[ii]=de[Wi]=de[ea]=de[ta]=de[na]=de[ra]=!0,de[Fi]=de[ki]=de[si]=!1;var Fh={À:"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"},kh={"&":"&","<":"<",">":">",'"':""","'":"'"},Wh={"&":"&","<":"<",">":">",""":'"',"'":"'"},Hh={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Vh=parseFloat,Bh=parseInt,_u=typeof Is=="object"&&Is&&Is.Object===Object&&Is,Gh=typeof self=="object"&&self&&self.Object===Object&&self,We=_u||Gh||Function("return this")(),fa=n&&!n.nodeType&&n,Bn=fa&&!0&&i&&!i.nodeType&&i,vu=Bn&&Bn.exports===fa,ha=vu&&_u.process,Ct=(function(){try{var S=Bn&&Bn.require&&Bn.require("util").types;return S||ha&&ha.binding&&ha.binding("util")}catch{}})(),mu=Ct&&Ct.isArrayBuffer,Su=Ct&&Ct.isDate,wu=Ct&&Ct.isMap,Eu=Ct&&Ct.isRegExp,Cu=Ct&&Ct.isSet,Tu=Ct&&Ct.isTypedArray;function ft(S,R,T){switch(T.length){case 0:return S.call(R);case 1:return S.call(R,T[0]);case 2:return S.call(R,T[0],T[1]);case 3:return S.call(R,T[0],T[1],T[2])}return S.apply(R,T)}function Qh(S,R,T,F){for(var q=-1,se=S==null?0:S.length;++q<se;){var xe=S[q];R(F,xe,T(xe),S)}return F}function Tt(S,R){for(var T=-1,F=S==null?0:S.length;++T<F&&R(S[T],T,S)!==!1;);return S}function qh(S,R){for(var T=S==null?0:S.length;T--&&R(S[T],T,S)!==!1;);return S}function yu(S,R){for(var T=-1,F=S==null?0:S.length;++T<F;)if(!R(S[T],T,S))return!1;return!0}function En(S,R){for(var T=-1,F=S==null?0:S.length,q=0,se=[];++T<F;){var xe=S[T];R(xe,T,S)&&(se[q++]=xe)}return se}function Gi(S,R){var T=S==null?0:S.length;return!!T&&dr(S,R,0)>-1}function ga(S,R,T){for(var F=-1,q=S==null?0:S.length;++F<q;)if(T(R,S[F]))return!0;return!1}function _e(S,R){for(var T=-1,F=S==null?0:S.length,q=Array(F);++T<F;)q[T]=R(S[T],T,S);return q}function Cn(S,R){for(var T=-1,F=R.length,q=S.length;++T<F;)S[q+T]=R[T];return S}function da(S,R,T,F){var q=-1,se=S==null?0:S.length;for(F&&se&&(T=S[++q]);++q<se;)T=R(T,S[q],q,S);return T}function zh(S,R,T,F){var q=S==null?0:S.length;for(F&&q&&(T=S[--q]);q--;)T=R(T,S[q],q,S);return T}function pa(S,R){for(var T=-1,F=S==null?0:S.length;++T<F;)if(R(S[T],T,S))return!0;return!1}var Kh=_a("length");function Yh(S){return S.split("")}function Xh(S){return S.match(ih)||[]}function Au(S,R,T){var F;return T(S,function(q,se,xe){if(R(q,se,xe))return F=se,!1}),F}function Qi(S,R,T,F){for(var q=S.length,se=T+(F?1:-1);F?se--:++se<q;)if(R(S[se],se,S))return se;return-1}function dr(S,R,T){return R===R?ug(S,R,T):Qi(S,Ru,T)}function Zh(S,R,T,F){for(var q=T-1,se=S.length;++q<se;)if(F(S[q],R))return q;return-1}function Ru(S){return S!==S}function bu(S,R){var T=S==null?0:S.length;return T?ma(S,R)/T:ye}function _a(S){return function(R){return R==null?r:R[S]}}function va(S){return function(R){return S==null?r:S[R]}}function Pu(S,R,T,F,q){return q(S,function(se,xe,ge){T=F?(F=!1,se):R(T,se,xe,ge)}),T}function Jh(S,R){var T=S.length;for(S.sort(R);T--;)S[T]=S[T].value;return S}function ma(S,R){for(var T,F=-1,q=S.length;++F<q;){var se=R(S[F]);se!==r&&(T=T===r?se:T+se)}return T}function Sa(S,R){for(var T=-1,F=Array(S);++T<S;)F[T]=R(T);return F}function jh(S,R){return _e(R,function(T){return[T,S[T]]})}function Iu(S){return S&&S.slice(0,Nu(S)+1).replace(sa,"")}function ht(S){return function(R){return S(R)}}function wa(S,R){return _e(R,function(T){return S[T]})}function oi(S,R){return S.has(R)}function xu(S,R){for(var T=-1,F=S.length;++T<F&&dr(R,S[T],0)>-1;);return T}function Lu(S,R){for(var T=S.length;T--&&dr(R,S[T],0)>-1;);return T}function eg(S,R){for(var T=S.length,F=0;T--;)S[T]===R&&++F;return F}var tg=va(Fh),ng=va(kh);function rg(S){return"\\"+Hh[S]}function ig(S,R){return S==null?r:S[R]}function pr(S){return Oh.test(S)}function sg(S){return Uh.test(S)}function ag(S){for(var R,T=[];!(R=S.next()).done;)T.push(R.value);return T}function Ea(S){var R=-1,T=Array(S.size);return S.forEach(function(F,q){T[++R]=[q,F]}),T}function $u(S,R){return function(T){return S(R(T))}}function Tn(S,R){for(var T=-1,F=S.length,q=0,se=[];++T<F;){var xe=S[T];(xe===R||xe===A)&&(S[T]=A,se[q++]=T)}return se}function qi(S){var R=-1,T=Array(S.size);return S.forEach(function(F){T[++R]=F}),T}function og(S){var R=-1,T=Array(S.size);return S.forEach(function(F){T[++R]=[F,F]}),T}function ug(S,R,T){for(var F=T-1,q=S.length;++F<q;)if(S[F]===R)return F;return-1}function lg(S,R,T){for(var F=T+1;F--;)if(S[F]===R)return F;return F}function _r(S){return pr(S)?fg(S):Kh(S)}function kt(S){return pr(S)?hg(S):Yh(S)}function Nu(S){for(var R=S.length;R--&&eh.test(S.charAt(R)););return R}var cg=va(Wh);function fg(S){for(var R=ca.lastIndex=0;ca.test(S);)++R;return R}function hg(S){return S.match(ca)||[]}function gg(S){return S.match(Nh)||[]}var dg=(function S(R){R=R==null?We:vr.defaults(We.Object(),R,vr.pick(We,Dh));var T=R.Array,F=R.Date,q=R.Error,se=R.Function,xe=R.Math,ge=R.Object,Ca=R.RegExp,pg=R.String,yt=R.TypeError,zi=T.prototype,_g=se.prototype,mr=ge.prototype,Ki=R["__core-js_shared__"],Yi=_g.toString,oe=mr.hasOwnProperty,vg=0,Ou=(function(){var e=/[^.]+$/.exec(Ki&&Ki.keys&&Ki.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),Xi=mr.toString,mg=Yi.call(ge),Sg=We._,wg=Ca("^"+Yi.call(oe).replace(ia,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Zi=vu?R.Buffer:r,yn=R.Symbol,Ji=R.Uint8Array,Uu=Zi?Zi.allocUnsafe:r,ji=$u(ge.getPrototypeOf,ge),Du=ge.create,Mu=mr.propertyIsEnumerable,es=zi.splice,Fu=yn?yn.isConcatSpreadable:r,ui=yn?yn.iterator:r,Gn=yn?yn.toStringTag:r,ts=(function(){try{var e=Yn(ge,"defineProperty");return e({},"",{}),e}catch{}})(),Eg=R.clearTimeout!==We.clearTimeout&&R.clearTimeout,Cg=F&&F.now!==We.Date.now&&F.now,Tg=R.setTimeout!==We.setTimeout&&R.setTimeout,ns=xe.ceil,rs=xe.floor,Ta=ge.getOwnPropertySymbols,yg=Zi?Zi.isBuffer:r,ku=R.isFinite,Ag=zi.join,Rg=$u(ge.keys,ge),Le=xe.max,ze=xe.min,bg=F.now,Pg=R.parseInt,Wu=xe.random,Ig=zi.reverse,ya=Yn(R,"DataView"),li=Yn(R,"Map"),Aa=Yn(R,"Promise"),Sr=Yn(R,"Set"),ci=Yn(R,"WeakMap"),fi=Yn(ge,"create"),is=ci&&new ci,wr={},xg=Xn(ya),Lg=Xn(li),$g=Xn(Aa),Ng=Xn(Sr),Og=Xn(ci),ss=yn?yn.prototype:r,hi=ss?ss.valueOf:r,Hu=ss?ss.toString:r;function g(e){if(Se(e)&&!K(e)&&!(e instanceof te)){if(e instanceof At)return e;if(oe.call(e,"__wrapped__"))return Vl(e)}return new At(e)}var Er=(function(){function e(){}return function(t){if(!ve(t))return{};if(Du)return Du(t);e.prototype=t;var s=new e;return e.prototype=r,s}})();function as(){}function At(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}g.templateSettings={escape:Kf,evaluate:Yf,interpolate:Xo,variable:"",imports:{_:g}},g.prototype=as.prototype,g.prototype.constructor=g,At.prototype=Er(as.prototype),At.prototype.constructor=At;function te(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ke,this.__views__=[]}function Ug(){var e=new te(this.__wrapped__);return e.__actions__=it(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=it(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=it(this.__views__),e}function Dg(){if(this.__filtered__){var e=new te(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Mg(){var e=this.__wrapped__.value(),t=this.__dir__,s=K(e),o=t<0,f=s?e.length:0,d=Yd(0,f,this.__views__),_=d.start,m=d.end,w=m-_,P=o?m:_-1,I=this.__iteratees__,L=I.length,M=0,k=ze(w,this.__takeCount__);if(!s||!o&&f==w&&k==w)return fl(e,this.__actions__);var V=[];e:for(;w--&&M<k;){P+=t;for(var X=-1,B=e[P];++X<L;){var j=I[X],ne=j.iteratee,pt=j.type,et=ne(B);if(pt==Oe)B=et;else if(!et){if(pt==Ze)continue e;break e}}V[M++]=B}return V}te.prototype=Er(as.prototype),te.prototype.constructor=te;function Qn(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t<s;){var o=e[t];this.set(o[0],o[1])}}function Fg(){this.__data__=fi?fi(null):{},this.size=0}function kg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Wg(e){var t=this.__data__;if(fi){var s=t[e];return s===p?r:s}return oe.call(t,e)?t[e]:r}function Hg(e){var t=this.__data__;return fi?t[e]!==r:oe.call(t,e)}function Vg(e,t){var s=this.__data__;return this.size+=this.has(e)?0:1,s[e]=fi&&t===r?p:t,this}Qn.prototype.clear=Fg,Qn.prototype.delete=kg,Qn.prototype.get=Wg,Qn.prototype.has=Hg,Qn.prototype.set=Vg;function un(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t<s;){var o=e[t];this.set(o[0],o[1])}}function Bg(){this.__data__=[],this.size=0}function Gg(e){var t=this.__data__,s=os(t,e);if(s<0)return!1;var o=t.length-1;return s==o?t.pop():es.call(t,s,1),--this.size,!0}function Qg(e){var t=this.__data__,s=os(t,e);return s<0?r:t[s][1]}function qg(e){return os(this.__data__,e)>-1}function zg(e,t){var s=this.__data__,o=os(s,e);return o<0?(++this.size,s.push([e,t])):s[o][1]=t,this}un.prototype.clear=Bg,un.prototype.delete=Gg,un.prototype.get=Qg,un.prototype.has=qg,un.prototype.set=zg;function ln(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t<s;){var o=e[t];this.set(o[0],o[1])}}function Kg(){this.size=0,this.__data__={hash:new Qn,map:new(li||un),string:new Qn}}function Yg(e){var t=Ss(this,e).delete(e);return this.size-=t?1:0,t}function Xg(e){return Ss(this,e).get(e)}function Zg(e){return Ss(this,e).has(e)}function Jg(e,t){var s=Ss(this,e),o=s.size;return s.set(e,t),this.size+=s.size==o?0:1,this}ln.prototype.clear=Kg,ln.prototype.delete=Yg,ln.prototype.get=Xg,ln.prototype.has=Zg,ln.prototype.set=Jg;function qn(e){var t=-1,s=e==null?0:e.length;for(this.__data__=new ln;++t<s;)this.add(e[t])}function jg(e){return this.__data__.set(e,p),this}function ed(e){return this.__data__.has(e)}qn.prototype.add=qn.prototype.push=jg,qn.prototype.has=ed;function Wt(e){var t=this.__data__=new un(e);this.size=t.size}function td(){this.__data__=new un,this.size=0}function nd(e){var t=this.__data__,s=t.delete(e);return this.size=t.size,s}function rd(e){return this.__data__.get(e)}function id(e){return this.__data__.has(e)}function sd(e,t){var s=this.__data__;if(s instanceof un){var o=s.__data__;if(!li||o.length<u-1)return o.push([e,t]),this.size=++s.size,this;s=this.__data__=new ln(o)}return s.set(e,t),this.size=s.size,this}Wt.prototype.clear=td,Wt.prototype.delete=nd,Wt.prototype.get=rd,Wt.prototype.has=id,Wt.prototype.set=sd;function Vu(e,t){var s=K(e),o=!s&&Zn(e),f=!s&&!o&&In(e),d=!s&&!o&&!f&&Ar(e),_=s||o||f||d,m=_?Sa(e.length,pg):[],w=m.length;for(var P in e)(t||oe.call(e,P))&&!(_&&(P=="length"||f&&(P=="offset"||P=="parent")||d&&(P=="buffer"||P=="byteLength"||P=="byteOffset")||gn(P,w)))&&m.push(P);return m}function Bu(e){var t=e.length;return t?e[Da(0,t-1)]:r}function ad(e,t){return ws(it(e),zn(t,0,e.length))}function od(e){return ws(it(e))}function Ra(e,t,s){(s!==r&&!Ht(e[t],s)||s===r&&!(t in e))&&cn(e,t,s)}function gi(e,t,s){var o=e[t];(!(oe.call(e,t)&&Ht(o,s))||s===r&&!(t in e))&&cn(e,t,s)}function os(e,t){for(var s=e.length;s--;)if(Ht(e[s][0],t))return s;return-1}function ud(e,t,s,o){return An(e,function(f,d,_){t(o,f,s(f),_)}),o}function Gu(e,t){return e&&Zt(t,Ue(t),e)}function ld(e,t){return e&&Zt(t,at(t),e)}function cn(e,t,s){t=="__proto__"&&ts?ts(e,t,{configurable:!0,enumerable:!0,value:s,writable:!0}):e[t]=s}function ba(e,t){for(var s=-1,o=t.length,f=T(o),d=e==null;++s<o;)f[s]=d?r:oo(e,t[s]);return f}function zn(e,t,s){return e===e&&(s!==r&&(e=e<=s?e:s),t!==r&&(e=e>=t?e:t)),e}function Rt(e,t,s,o,f,d){var _,m=t&C,w=t&E,P=t&y;if(s&&(_=f?s(e,o,f,d):s(e)),_!==r)return _;if(!ve(e))return e;var I=K(e);if(I){if(_=Zd(e),!m)return it(e,_)}else{var L=Ke(e),M=L==ki||L==qo;if(In(e))return dl(e,m);if(L==on||L==Et||M&&!f){if(_=w||M?{}:Nl(e),!m)return w?Wd(e,ld(_,e)):kd(e,Gu(_,e))}else{if(!de[L])return f?e:{};_=Jd(e,L,m)}}d||(d=new Wt);var k=d.get(e);if(k)return k;d.set(e,_),uc(e)?e.forEach(function(B){_.add(Rt(B,t,s,B,e,d))}):ac(e)&&e.forEach(function(B,j){_.set(j,Rt(B,t,s,j,e,d))});var V=P?w?za:qa:w?at:Ue,X=I?r:V(e);return Tt(X||e,function(B,j){X&&(j=B,B=e[j]),gi(_,j,Rt(B,t,s,j,e,d))}),_}function cd(e){var t=Ue(e);return function(s){return Qu(s,e,t)}}function Qu(e,t,s){var o=s.length;if(e==null)return!o;for(e=ge(e);o--;){var f=s[o],d=t[f],_=e[f];if(_===r&&!(f in e)||!d(_))return!1}return!0}function qu(e,t,s){if(typeof e!="function")throw new yt(c);return wi(function(){e.apply(r,s)},t)}function di(e,t,s,o){var f=-1,d=Gi,_=!0,m=e.length,w=[],P=t.length;if(!m)return w;s&&(t=_e(t,ht(s))),o?(d=ga,_=!1):t.length>=u&&(d=oi,_=!1,t=new qn(t));e:for(;++f<m;){var I=e[f],L=s==null?I:s(I);if(I=o||I!==0?I:0,_&&L===L){for(var M=P;M--;)if(t[M]===L)continue e;w.push(I)}else d(t,L,o)||w.push(I)}return w}var An=Sl(Xt),zu=Sl(Ia,!0);function fd(e,t){var s=!0;return An(e,function(o,f,d){return s=!!t(o,f,d),s}),s}function us(e,t,s){for(var o=-1,f=e.length;++o<f;){var d=e[o],_=t(d);if(_!=null&&(m===r?_===_&&!dt(_):s(_,m)))var m=_,w=d}return w}function hd(e,t,s,o){var f=e.length;for(s=Y(s),s<0&&(s=-s>f?0:f+s),o=o===r||o>f?f:Y(o),o<0&&(o+=f),o=s>o?0:cc(o);s<o;)e[s++]=t;return e}function Ku(e,t){var s=[];return An(e,function(o,f,d){t(o,f,d)&&s.push(o)}),s}function He(e,t,s,o,f){var d=-1,_=e.length;for(s||(s=ep),f||(f=[]);++d<_;){var m=e[d];t>0&&s(m)?t>1?He(m,t-1,s,o,f):Cn(f,m):o||(f[f.length]=m)}return f}var Pa=wl(),Yu=wl(!0);function Xt(e,t){return e&&Pa(e,t,Ue)}function Ia(e,t){return e&&Yu(e,t,Ue)}function ls(e,t){return En(t,function(s){return dn(e[s])})}function Kn(e,t){t=bn(t,e);for(var s=0,o=t.length;e!=null&&s<o;)e=e[Jt(t[s++])];return s&&s==o?e:r}function Xu(e,t,s){var o=t(e);return K(e)?o:Cn(o,s(e))}function Je(e){return e==null?e===r?Hf:kf:Gn&&Gn in ge(e)?Kd(e):op(e)}function xa(e,t){return e>t}function gd(e,t){return e!=null&&oe.call(e,t)}function dd(e,t){return e!=null&&t in ge(e)}function pd(e,t,s){return e>=ze(t,s)&&e<Le(t,s)}function La(e,t,s){for(var o=s?ga:Gi,f=e[0].length,d=e.length,_=d,m=T(d),w=1/0,P=[];_--;){var I=e[_];_&&t&&(I=_e(I,ht(t))),w=ze(I.length,w),m[_]=!s&&(t||f>=120&&I.length>=120)?new qn(_&&I):r}I=e[0];var L=-1,M=m[0];e:for(;++L<f&&P.length<w;){var k=I[L],V=t?t(k):k;if(k=s||k!==0?k:0,!(M?oi(M,V):o(P,V,s))){for(_=d;--_;){var X=m[_];if(!(X?oi(X,V):o(e[_],V,s)))continue e}M&&M.push(V),P.push(k)}}return P}function _d(e,t,s,o){return Xt(e,function(f,d,_){t(o,s(f),d,_)}),o}function pi(e,t,s){t=bn(t,e),e=Ml(e,t);var o=e==null?e:e[Jt(Pt(t))];return o==null?r:ft(o,e,s)}function Zu(e){return Se(e)&&Je(e)==Et}function vd(e){return Se(e)&&Je(e)==ai}function md(e){return Se(e)&&Je(e)==ti}function _i(e,t,s,o,f){return e===t?!0:e==null||t==null||!Se(e)&&!Se(t)?e!==e&&t!==t:Sd(e,t,s,o,_i,f)}function Sd(e,t,s,o,f,d){var _=K(e),m=K(t),w=_?an:Ke(e),P=m?an:Ke(t);w=w==Et?on:w,P=P==Et?on:P;var I=w==on,L=P==on,M=w==P;if(M&&In(e)){if(!In(t))return!1;_=!0,I=!1}if(M&&!I)return d||(d=new Wt),_||Ar(e)?xl(e,t,s,o,f,d):qd(e,t,w,s,o,f,d);if(!(s&b)){var k=I&&oe.call(e,"__wrapped__"),V=L&&oe.call(t,"__wrapped__");if(k||V){var X=k?e.value():e,B=V?t.value():t;return d||(d=new Wt),f(X,B,s,o,d)}}return M?(d||(d=new Wt),zd(e,t,s,o,f,d)):!1}function wd(e){return Se(e)&&Ke(e)==Mt}function $a(e,t,s,o){var f=s.length,d=f,_=!o;if(e==null)return!d;for(e=ge(e);f--;){var m=s[f];if(_&&m[2]?m[1]!==e[m[0]]:!(m[0]in e))return!1}for(;++f<d;){m=s[f];var w=m[0],P=e[w],I=m[1];if(_&&m[2]){if(P===r&&!(w in e))return!1}else{var L=new Wt;if(o)var M=o(P,I,w,e,t,L);if(!(M===r?_i(I,P,b|O,o,L):M))return!1}}return!0}function Ju(e){if(!ve(e)||np(e))return!1;var t=dn(e)?wg:ch;return t.test(Xn(e))}function Ed(e){return Se(e)&&Je(e)==ri}function Cd(e){return Se(e)&&Ke(e)==Ft}function Td(e){return Se(e)&&Rs(e.length)&&!!pe[Je(e)]}function ju(e){return typeof e=="function"?e:e==null?ot:typeof e=="object"?K(e)?nl(e[0],e[1]):tl(e):Ec(e)}function Na(e){if(!Si(e))return Rg(e);var t=[];for(var s in ge(e))oe.call(e,s)&&s!="constructor"&&t.push(s);return t}function yd(e){if(!ve(e))return ap(e);var t=Si(e),s=[];for(var o in e)o=="constructor"&&(t||!oe.call(e,o))||s.push(o);return s}function Oa(e,t){return e<t}function el(e,t){var s=-1,o=st(e)?T(e.length):[];return An(e,function(f,d,_){o[++s]=t(f,d,_)}),o}function tl(e){var t=Ya(e);return t.length==1&&t[0][2]?Ul(t[0][0],t[0][1]):function(s){return s===e||$a(s,e,t)}}function nl(e,t){return Za(e)&&Ol(t)?Ul(Jt(e),t):function(s){var o=oo(s,e);return o===r&&o===t?uo(s,e):_i(t,o,b|O)}}function cs(e,t,s,o,f){e!==t&&Pa(t,function(d,_){if(f||(f=new Wt),ve(d))Ad(e,t,_,s,cs,o,f);else{var m=o?o(ja(e,_),d,_+"",e,t,f):r;m===r&&(m=d),Ra(e,_,m)}},at)}function Ad(e,t,s,o,f,d,_){var m=ja(e,s),w=ja(t,s),P=_.get(w);if(P){Ra(e,s,P);return}var I=d?d(m,w,s+"",e,t,_):r,L=I===r;if(L){var M=K(w),k=!M&&In(w),V=!M&&!k&&Ar(w);I=w,M||k||V?K(m)?I=m:Ae(m)?I=it(m):k?(L=!1,I=dl(w,!0)):V?(L=!1,I=pl(w,!0)):I=[]:Ei(w)||Zn(w)?(I=m,Zn(m)?I=fc(m):(!ve(m)||dn(m))&&(I=Nl(w))):L=!1}L&&(_.set(w,I),f(I,w,o,d,_),_.delete(w)),Ra(e,s,I)}function rl(e,t){var s=e.length;if(s)return t+=t<0?s:0,gn(t,s)?e[t]:r}function il(e,t,s){t.length?t=_e(t,function(d){return K(d)?function(_){return Kn(_,d.length===1?d[0]:d)}:d}):t=[ot];var o=-1;t=_e(t,ht(W()));var f=el(e,function(d,_,m){var w=_e(t,function(P){return P(d)});return{criteria:w,index:++o,value:d}});return Jh(f,function(d,_){return Fd(d,_,s)})}function Rd(e,t){return sl(e,t,function(s,o){return uo(e,o)})}function sl(e,t,s){for(var o=-1,f=t.length,d={};++o<f;){var _=t[o],m=Kn(e,_);s(m,_)&&vi(d,bn(_,e),m)}return d}function bd(e){return function(t){return Kn(t,e)}}function Ua(e,t,s,o){var f=o?Zh:dr,d=-1,_=t.length,m=e;for(e===t&&(t=it(t)),s&&(m=_e(e,ht(s)));++d<_;)for(var w=0,P=t[d],I=s?s(P):P;(w=f(m,I,w,o))>-1;)m!==e&&es.call(m,w,1),es.call(e,w,1);return e}function al(e,t){for(var s=e?t.length:0,o=s-1;s--;){var f=t[s];if(s==o||f!==d){var d=f;gn(f)?es.call(e,f,1):ka(e,f)}}return e}function Da(e,t){return e+rs(Wu()*(t-e+1))}function Pd(e,t,s,o){for(var f=-1,d=Le(ns((t-e)/(s||1)),0),_=T(d);d--;)_[o?d:++f]=e,e+=s;return _}function Ma(e,t){var s="";if(!e||t<1||t>qe)return s;do t%2&&(s+=e),t=rs(t/2),t&&(e+=e);while(t);return s}function Z(e,t){return eo(Dl(e,t,ot),e+"")}function Id(e){return Bu(Rr(e))}function xd(e,t){var s=Rr(e);return ws(s,zn(t,0,s.length))}function vi(e,t,s,o){if(!ve(e))return e;t=bn(t,e);for(var f=-1,d=t.length,_=d-1,m=e;m!=null&&++f<d;){var w=Jt(t[f]),P=s;if(w==="__proto__"||w==="constructor"||w==="prototype")return e;if(f!=_){var I=m[w];P=o?o(I,w,m):r,P===r&&(P=ve(I)?I:gn(t[f+1])?[]:{})}gi(m,w,P),m=m[w]}return e}var ol=is?function(e,t){return is.set(e,t),e}:ot,Ld=ts?function(e,t){return ts(e,"toString",{configurable:!0,enumerable:!1,value:co(t),writable:!0})}:ot;function $d(e){return ws(Rr(e))}function bt(e,t,s){var o=-1,f=e.length;t<0&&(t=-t>f?0:f+t),s=s>f?f:s,s<0&&(s+=f),f=t>s?0:s-t>>>0,t>>>=0;for(var d=T(f);++o<f;)d[o]=e[o+t];return d}function Nd(e,t){var s;return An(e,function(o,f,d){return s=t(o,f,d),!s}),!!s}function fs(e,t,s){var o=0,f=e==null?o:e.length;if(typeof t=="number"&&t===t&&f<=Mi){for(;o<f;){var d=o+f>>>1,_=e[d];_!==null&&!dt(_)&&(s?_<=t:_<t)?o=d+1:f=d}return f}return Fa(e,t,ot,s)}function Fa(e,t,s,o){var f=0,d=e==null?0:e.length;if(d===0)return 0;t=s(t);for(var _=t!==t,m=t===null,w=dt(t),P=t===r;f<d;){var I=rs((f+d)/2),L=s(e[I]),M=L!==r,k=L===null,V=L===L,X=dt(L);if(_)var B=o||V;else P?B=V&&(o||M):m?B=V&&M&&(o||!k):w?B=V&&M&&!k&&(o||!X):k||X?B=!1:B=o?L<=t:L<t;B?f=I+1:d=I}return ze(d,Di)}function ul(e,t){for(var s=-1,o=e.length,f=0,d=[];++s<o;){var _=e[s],m=t?t(_):_;if(!s||!Ht(m,w)){var w=m;d[f++]=_===0?0:_}}return d}function ll(e){return typeof e=="number"?e:dt(e)?ye:+e}function gt(e){if(typeof e=="string")return e;if(K(e))return _e(e,gt)+"";if(dt(e))return Hu?Hu.call(e):"";var t=e+"";return t=="0"&&1/e==-x?"-0":t}function Rn(e,t,s){var o=-1,f=Gi,d=e.length,_=!0,m=[],w=m;if(s)_=!1,f=ga;else if(d>=u){var P=t?null:Gd(e);if(P)return qi(P);_=!1,f=oi,w=new qn}else w=t?[]:m;e:for(;++o<d;){var I=e[o],L=t?t(I):I;if(I=s||I!==0?I:0,_&&L===L){for(var M=w.length;M--;)if(w[M]===L)continue e;t&&w.push(L),m.push(I)}else f(w,L,s)||(w!==m&&w.push(L),m.push(I))}return m}function ka(e,t){t=bn(t,e);var s=-1,o=t.length;if(!o)return!0;for(var f=e==null||typeof e!="object"&&typeof e!="function";++s<o;){var d=t[s];if(typeof d=="string"){if(d==="__proto__"&&!oe.call(e,"__proto__"))return!1;if(d==="constructor"&&s+1<o&&typeof t[s+1]=="string"&&t[s+1]==="prototype"){if(f&&s===0)continue;return!1}}}var _=Ml(e,t);return _==null||delete _[Jt(Pt(t))]}function cl(e,t,s,o){return vi(e,t,s(Kn(e,t)),o)}function hs(e,t,s,o){for(var f=e.length,d=o?f:-1;(o?d--:++d<f)&&t(e[d],d,e););return s?bt(e,o?0:d,o?d+1:f):bt(e,o?d+1:0,o?f:d)}function fl(e,t){var s=e;return s instanceof te&&(s=s.value()),da(t,function(o,f){return f.func.apply(f.thisArg,Cn([o],f.args))},s)}function Wa(e,t,s){var o=e.length;if(o<2)return o?Rn(e[0]):[];for(var f=-1,d=T(o);++f<o;)for(var _=e[f],m=-1;++m<o;)m!=f&&(d[f]=di(d[f]||_,e[m],t,s));return Rn(He(d,1),t,s)}function hl(e,t,s){for(var o=-1,f=e.length,d=t.length,_={};++o<f;){var m=o<d?t[o]:r;s(_,e[o],m)}return _}function Ha(e){return Ae(e)?e:[]}function Va(e){return typeof e=="function"?e:ot}function bn(e,t){return K(e)?e:Za(e,t)?[e]:Hl(ue(e))}var Od=Z;function Pn(e,t,s){var o=e.length;return s=s===r?o:s,!t&&s>=o?e:bt(e,t,s)}var gl=Eg||function(e){return We.clearTimeout(e)};function dl(e,t){if(t)return e.slice();var s=e.length,o=Uu?Uu(s):new e.constructor(s);return e.copy(o),o}function Ba(e){var t=new e.constructor(e.byteLength);return new Ji(t).set(new Ji(e)),t}function Ud(e,t){var s=t?Ba(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.byteLength)}function Dd(e){var t=new e.constructor(e.source,Zo.exec(e));return t.lastIndex=e.lastIndex,t}function Md(e){return hi?ge(hi.call(e)):{}}function pl(e,t){var s=t?Ba(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.length)}function _l(e,t){if(e!==t){var s=e!==r,o=e===null,f=e===e,d=dt(e),_=t!==r,m=t===null,w=t===t,P=dt(t);if(!m&&!P&&!d&&e>t||d&&_&&w&&!m&&!P||o&&_&&w||!s&&w||!f)return 1;if(!o&&!d&&!P&&e<t||P&&s&&f&&!o&&!d||m&&s&&f||!_&&f||!w)return-1}return 0}function Fd(e,t,s){for(var o=-1,f=e.criteria,d=t.criteria,_=f.length,m=s.length;++o<_;){var w=_l(f[o],d[o]);if(w){if(o>=m)return w;var P=s[o];return w*(P=="desc"?-1:1)}}return e.index-t.index}function vl(e,t,s,o){for(var f=-1,d=e.length,_=s.length,m=-1,w=t.length,P=Le(d-_,0),I=T(w+P),L=!o;++m<w;)I[m]=t[m];for(;++f<_;)(L||f<d)&&(I[s[f]]=e[f]);for(;P--;)I[m++]=e[f++];return I}function ml(e,t,s,o){for(var f=-1,d=e.length,_=-1,m=s.length,w=-1,P=t.length,I=Le(d-m,0),L=T(I+P),M=!o;++f<I;)L[f]=e[f];for(var k=f;++w<P;)L[k+w]=t[w];for(;++_<m;)(M||f<d)&&(L[k+s[_]]=e[f++]);return L}function it(e,t){var s=-1,o=e.length;for(t||(t=T(o));++s<o;)t[s]=e[s];return t}function Zt(e,t,s,o){var f=!s;s||(s={});for(var d=-1,_=t.length;++d<_;){var m=t[d],w=o?o(s[m],e[m],m,s,e):r;w===r&&(w=e[m]),f?cn(s,m,w):gi(s,m,w)}return s}function kd(e,t){return Zt(e,Xa(e),t)}function Wd(e,t){return Zt(e,Ll(e),t)}function gs(e,t){return function(s,o){var f=K(s)?Qh:ud,d=t?t():{};return f(s,e,W(o,2),d)}}function Cr(e){return Z(function(t,s){var o=-1,f=s.length,d=f>1?s[f-1]:r,_=f>2?s[2]:r;for(d=e.length>3&&typeof d=="function"?(f--,d):r,_&&je(s[0],s[1],_)&&(d=f<3?r:d,f=1),t=ge(t);++o<f;){var m=s[o];m&&e(t,m,o,d)}return t})}function Sl(e,t){return function(s,o){if(s==null)return s;if(!st(s))return e(s,o);for(var f=s.length,d=t?f:-1,_=ge(s);(t?d--:++d<f)&&o(_[d],d,_)!==!1;);return s}}function wl(e){return function(t,s,o){for(var f=-1,d=ge(t),_=o(t),m=_.length;m--;){var w=_[e?m:++f];if(s(d[w],w,d)===!1)break}return t}}function Hd(e,t,s){var o=t&N,f=mi(e);function d(){var _=this&&this!==We&&this instanceof d?f:e;return _.apply(o?s:this,arguments)}return d}function El(e){return function(t){t=ue(t);var s=pr(t)?kt(t):r,o=s?s[0]:t.charAt(0),f=s?Pn(s,1).join(""):t.slice(1);return o[e]()+f}}function Tr(e){return function(t){return da(Sc(mc(t).replace(Lh,"")),e,"")}}function mi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var s=Er(e.prototype),o=e.apply(s,t);return ve(o)?o:s}}function Vd(e,t,s){var o=mi(e);function f(){for(var d=arguments.length,_=T(d),m=d,w=yr(f);m--;)_[m]=arguments[m];var P=d<3&&_[0]!==w&&_[d-1]!==w?[]:Tn(_,w);if(d-=P.length,d<s)return Rl(e,t,ds,f.placeholder,r,_,P,r,r,s-d);var I=this&&this!==We&&this instanceof f?o:e;return ft(I,this,_)}return f}function Cl(e){return function(t,s,o){var f=ge(t);if(!st(t)){var d=W(s,3);t=Ue(t),s=function(m){return d(f[m],m,f)}}var _=e(t,s,o);return _>-1?f[d?t[_]:_]:r}}function Tl(e){return hn(function(t){var s=t.length,o=s,f=At.prototype.thru;for(e&&t.reverse();o--;){var d=t[o];if(typeof d!="function")throw new yt(c);if(f&&!_&&ms(d)=="wrapper")var _=new At([],!0)}for(o=_?o:s;++o<s;){d=t[o];var m=ms(d),w=m=="wrapper"?Ka(d):r;w&&Ja(w[0])&&w[1]==(Pe|ce|Ee|Fe)&&!w[4].length&&w[9]==1?_=_[ms(w[0])].apply(_,w[3]):_=d.length==1&&Ja(d)?_[m]():_.thru(d)}return function(){var P=arguments,I=P[0];if(_&&P.length==1&&K(I))return _.plant(I).value();for(var L=0,M=s?t[L].apply(this,P):I;++L<s;)M=t[L].call(this,M);return M}})}function ds(e,t,s,o,f,d,_,m,w,P){var I=t&Pe,L=t&N,M=t&G,k=t&(ce|Ge),V=t&Ie,X=M?r:mi(e);function B(){for(var j=arguments.length,ne=T(j),pt=j;pt--;)ne[pt]=arguments[pt];if(k)var et=yr(B),_t=eg(ne,et);if(o&&(ne=vl(ne,o,f,k)),d&&(ne=ml(ne,d,_,k)),j-=_t,k&&j<P){var Re=Tn(ne,et);return Rl(e,t,ds,B.placeholder,s,ne,Re,m,w,P-j)}var Vt=L?s:this,_n=M?Vt[e]:e;return j=ne.length,m?ne=up(ne,m):V&&j>1&&ne.reverse(),I&&w<j&&(ne.length=w),this&&this!==We&&this instanceof B&&(_n=X||mi(_n)),_n.apply(Vt,ne)}return B}function yl(e,t){return function(s,o){return _d(s,e,t(o),{})}}function ps(e,t){return function(s,o){var f;if(s===r&&o===r)return t;if(s!==r&&(f=s),o!==r){if(f===r)return o;typeof s=="string"||typeof o=="string"?(s=gt(s),o=gt(o)):(s=ll(s),o=ll(o)),f=e(s,o)}return f}}function Ga(e){return hn(function(t){return t=_e(t,ht(W())),Z(function(s){var o=this;return e(t,function(f){return ft(f,o,s)})})})}function _s(e,t){t=t===r?" ":gt(t);var s=t.length;if(s<2)return s?Ma(t,e):t;var o=Ma(t,ns(e/_r(t)));return pr(t)?Pn(kt(o),0,e).join(""):o.slice(0,e)}function Bd(e,t,s,o){var f=t&N,d=mi(e);function _(){for(var m=-1,w=arguments.length,P=-1,I=o.length,L=T(I+w),M=this&&this!==We&&this instanceof _?d:e;++P<I;)L[P]=o[P];for(;w--;)L[P++]=arguments[++m];return ft(M,f?s:this,L)}return _}function Al(e){return function(t,s,o){return o&&typeof o!="number"&&je(t,s,o)&&(s=o=r),t=pn(t),s===r?(s=t,t=0):s=pn(s),o=o===r?t<s?1:-1:pn(o),Pd(t,s,o,e)}}function vs(e){return function(t,s){return typeof t=="string"&&typeof s=="string"||(t=It(t),s=It(s)),e(t,s)}}function Rl(e,t,s,o,f,d,_,m,w,P){var I=t&ce,L=I?_:r,M=I?r:_,k=I?d:r,V=I?r:d;t|=I?Ee:Qe,t&=~(I?Qe:Ee),t&ae||(t&=-4);var X=[e,t,f,k,L,V,M,m,w,P],B=s.apply(r,X);return Ja(e)&&Fl(B,X),B.placeholder=o,kl(B,e,t)}function Qa(e){var t=xe[e];return function(s,o){if(s=It(s),o=o==null?0:ze(Y(o),292),o&&ku(s)){var f=(ue(s)+"e").split("e"),d=t(f[0]+"e"+(+f[1]+o));return f=(ue(d)+"e").split("e"),+(f[0]+"e"+(+f[1]-o))}return t(s)}}var Gd=Sr&&1/qi(new Sr([,-0]))[1]==x?function(e){return new Sr(e)}:go;function bl(e){return function(t){var s=Ke(t);return s==Mt?Ea(t):s==Ft?og(t):jh(t,e(t))}}function fn(e,t,s,o,f,d,_,m){var w=t&G;if(!w&&typeof e!="function")throw new yt(c);var P=o?o.length:0;if(P||(t&=-97,o=f=r),_=_===r?_:Le(Y(_),0),m=m===r?m:Y(m),P-=f?f.length:0,t&Qe){var I=o,L=f;o=f=r}var M=w?r:Ka(e),k=[e,t,s,o,f,I,L,d,_,m];if(M&&sp(k,M),e=k[0],t=k[1],s=k[2],o=k[3],f=k[4],m=k[9]=k[9]===r?w?0:e.length:Le(k[9]-P,0),!m&&t&(ce|Ge)&&(t&=-25),!t||t==N)var V=Hd(e,t,s);else t==ce||t==Ge?V=Vd(e,t,m):(t==Ee||t==(N|Ee))&&!f.length?V=Bd(e,t,s,o):V=ds.apply(r,k);var X=M?ol:Fl;return kl(X(V,k),e,t)}function Pl(e,t,s,o){return e===r||Ht(e,mr[s])&&!oe.call(o,s)?t:e}function Il(e,t,s,o,f,d){return ve(e)&&ve(t)&&(d.set(t,e),cs(e,t,r,Il,d),d.delete(t)),e}function Qd(e){return Ei(e)?r:e}function xl(e,t,s,o,f,d){var _=s&b,m=e.length,w=t.length;if(m!=w&&!(_&&w>m))return!1;var P=d.get(e),I=d.get(t);if(P&&I)return P==t&&I==e;var L=-1,M=!0,k=s&O?new qn:r;for(d.set(e,t),d.set(t,e);++L<m;){var V=e[L],X=t[L];if(o)var B=_?o(X,V,L,t,e,d):o(V,X,L,e,t,d);if(B!==r){if(B)continue;M=!1;break}if(k){if(!pa(t,function(j,ne){if(!oi(k,ne)&&(V===j||f(V,j,s,o,d)))return k.push(ne)})){M=!1;break}}else if(!(V===X||f(V,X,s,o,d))){M=!1;break}}return d.delete(e),d.delete(t),M}function qd(e,t,s,o,f,d,_){switch(s){case hr:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ai:return!(e.byteLength!=t.byteLength||!d(new Ji(e),new Ji(t)));case ei:case ti:case ni:return Ht(+e,+t);case Fi:return e.name==t.name&&e.message==t.message;case ri:case ii:return e==t+"";case Mt:var m=Ea;case Ft:var w=o&b;if(m||(m=qi),e.size!=t.size&&!w)return!1;var P=_.get(e);if(P)return P==t;o|=O,_.set(e,t);var I=xl(m(e),m(t),o,f,d,_);return _.delete(e),I;case Wi:if(hi)return hi.call(e)==hi.call(t)}return!1}function zd(e,t,s,o,f,d){var _=s&b,m=qa(e),w=m.length,P=qa(t),I=P.length;if(w!=I&&!_)return!1;for(var L=w;L--;){var M=m[L];if(!(_?M in t:oe.call(t,M)))return!1}var k=d.get(e),V=d.get(t);if(k&&V)return k==t&&V==e;var X=!0;d.set(e,t),d.set(t,e);for(var B=_;++L<w;){M=m[L];var j=e[M],ne=t[M];if(o)var pt=_?o(ne,j,M,t,e,d):o(j,ne,M,e,t,d);if(!(pt===r?j===ne||f(j,ne,s,o,d):pt)){X=!1;break}B||(B=M=="constructor")}if(X&&!B){var et=e.constructor,_t=t.constructor;et!=_t&&"constructor"in e&&"constructor"in t&&!(typeof et=="function"&&et instanceof et&&typeof _t=="function"&&_t instanceof _t)&&(X=!1)}return d.delete(e),d.delete(t),X}function hn(e){return eo(Dl(e,r,Ql),e+"")}function qa(e){return Xu(e,Ue,Xa)}function za(e){return Xu(e,at,Ll)}var Ka=is?function(e){return is.get(e)}:go;function ms(e){for(var t=e.name+"",s=wr[t],o=oe.call(wr,t)?s.length:0;o--;){var f=s[o],d=f.func;if(d==null||d==e)return f.name}return t}function yr(e){var t=oe.call(g,"placeholder")?g:e;return t.placeholder}function W(){var e=g.iteratee||fo;return e=e===fo?ju:e,arguments.length?e(arguments[0],arguments[1]):e}function Ss(e,t){var s=e.__data__;return tp(t)?s[typeof t=="string"?"string":"hash"]:s.map}function Ya(e){for(var t=Ue(e),s=t.length;s--;){var o=t[s],f=e[o];t[s]=[o,f,Ol(f)]}return t}function Yn(e,t){var s=ig(e,t);return Ju(s)?s:r}function Kd(e){var t=oe.call(e,Gn),s=e[Gn];try{e[Gn]=r;var o=!0}catch{}var f=Xi.call(e);return o&&(t?e[Gn]=s:delete e[Gn]),f}var Xa=Ta?function(e){return e==null?[]:(e=ge(e),En(Ta(e),function(t){return Mu.call(e,t)}))}:po,Ll=Ta?function(e){for(var t=[];e;)Cn(t,Xa(e)),e=ji(e);return t}:po,Ke=Je;(ya&&Ke(new ya(new ArrayBuffer(1)))!=hr||li&&Ke(new li)!=Mt||Aa&&Ke(Aa.resolve())!=zo||Sr&&Ke(new Sr)!=Ft||ci&&Ke(new ci)!=si)&&(Ke=function(e){var t=Je(e),s=t==on?e.constructor:r,o=s?Xn(s):"";if(o)switch(o){case xg:return hr;case Lg:return Mt;case $g:return zo;case Ng:return Ft;case Og:return si}return t});function Yd(e,t,s){for(var o=-1,f=s.length;++o<f;){var d=s[o],_=d.size;switch(d.type){case"drop":e+=_;break;case"dropRight":t-=_;break;case"take":t=ze(t,e+_);break;case"takeRight":e=Le(e,t-_);break}}return{start:e,end:t}}function Xd(e){var t=e.match(nh);return t?t[1].split(rh):[]}function $l(e,t,s){t=bn(t,e);for(var o=-1,f=t.length,d=!1;++o<f;){var _=Jt(t[o]);if(!(d=e!=null&&s(e,_)))break;e=e[_]}return d||++o!=f?d:(f=e==null?0:e.length,!!f&&Rs(f)&&gn(_,f)&&(K(e)||Zn(e)))}function Zd(e){var t=e.length,s=new e.constructor(t);return t&&typeof e[0]=="string"&&oe.call(e,"index")&&(s.index=e.index,s.input=e.input),s}function Nl(e){return typeof e.constructor=="function"&&!Si(e)?Er(ji(e)):{}}function Jd(e,t,s){var o=e.constructor;switch(t){case ai:return Ba(e);case ei:case ti:return new o(+e);case hr:return Ud(e,s);case Ys:case Xs:case Zs:case Js:case js:case ea:case ta:case na:case ra:return pl(e,s);case Mt:return new o;case ni:case ii:return new o(e);case ri:return Dd(e);case Ft:return new o;case Wi:return Md(e)}}function jd(e,t){var s=t.length;if(!s)return e;var o=s-1;return t[o]=(s>1?"& ":"")+t[o],t=t.join(s>2?", ":" "),e.replace(th,`{
|
|
8
|
+
*/var AS=Ci.exports,yc;function RS(){return yc||(yc=1,(function(i,n){(function(){var r,a="4.17.23",u=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",h="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",v=500,R="__lodash_placeholder__",C=1,E=2,T=4,A=1,O=2,N=1,V=2,ae=4,ce=8,Ge=16,Ee=32,Qe=64,Pe=128,Fe=256,Ie=512,Ce=30,Te="...",U=800,Dt=16,Ze=1,Ne=2,Yt=3,x=1/0,qe=9007199254740991,ie=17976931348623157e292,ye=NaN,ke=4294967295,Di=ke-1,Mi=ke>>>1,me=[["ary",Pe],["bind",N],["bindKey",V],["curry",ce],["curryRight",Ge],["flip",Ie],["partial",Ee],["partialRight",Qe],["rearg",Fe]],Et="[object Arguments]",an="[object Array]",jr="[object AsyncFunction]",ei="[object Boolean]",ti="[object Date]",Ff="[object DOMException]",Fi="[object Error]",ki="[object Function]",qo="[object GeneratorFunction]",Mt="[object Map]",ni="[object Number]",kf="[object Null]",on="[object Object]",zo="[object Promise]",Wf="[object Proxy]",ri="[object RegExp]",Ft="[object Set]",ii="[object String]",Wi="[object Symbol]",Hf="[object Undefined]",si="[object WeakMap]",Vf="[object WeakSet]",ai="[object ArrayBuffer]",hr="[object DataView]",Ys="[object Float32Array]",Xs="[object Float64Array]",Zs="[object Int8Array]",Js="[object Int16Array]",js="[object Int32Array]",ea="[object Uint8Array]",ta="[object Uint8ClampedArray]",na="[object Uint16Array]",ra="[object Uint32Array]",Bf=/\b__p \+= '';/g,Gf=/\b(__p \+=) '' \+/g,Qf=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ko=/&(?:amp|lt|gt|quot|#39);/g,Yo=/[&<>"']/g,qf=RegExp(Ko.source),zf=RegExp(Yo.source),Kf=/<%-([\s\S]+?)%>/g,Yf=/<%([\s\S]+?)%>/g,Xo=/<%=([\s\S]+?)%>/g,Xf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Zf=/^\w*$/,Jf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ia=/[\\^$.*+?()[\]{}|]/g,jf=RegExp(ia.source),sa=/^\s+/,eh=/\s/,th=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nh=/\{\n\/\* \[wrapped with (.+)\] \*/,rh=/,? & /,ih=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,sh=/[()=,{}\[\]\/\s]/,ah=/\\(\\)?/g,oh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Zo=/\w*$/,uh=/^[-+]0x[0-9a-f]+$/i,lh=/^0b[01]+$/i,ch=/^\[object .+?Constructor\]$/,fh=/^0o[0-7]+$/i,hh=/^(?:0|[1-9]\d*)$/,gh=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Hi=/($^)/,dh=/['\n\r\u2028\u2029\\]/g,Vi="\\ud800-\\udfff",ph="\\u0300-\\u036f",_h="\\ufe20-\\ufe2f",vh="\\u20d0-\\u20ff",Jo=ph+_h+vh,jo="\\u2700-\\u27bf",eu="a-z\\xdf-\\xf6\\xf8-\\xff",mh="\\xac\\xb1\\xd7\\xf7",Sh="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",wh="\\u2000-\\u206f",Eh=" \\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",tu="A-Z\\xc0-\\xd6\\xd8-\\xde",nu="\\ufe0e\\ufe0f",ru=mh+Sh+wh+Eh,aa="['’]",Ch="["+Vi+"]",iu="["+ru+"]",Bi="["+Jo+"]",su="\\d+",Th="["+jo+"]",au="["+eu+"]",ou="[^"+Vi+ru+su+jo+eu+tu+"]",oa="\\ud83c[\\udffb-\\udfff]",yh="(?:"+Bi+"|"+oa+")",uu="[^"+Vi+"]",ua="(?:\\ud83c[\\udde6-\\uddff]){2}",la="[\\ud800-\\udbff][\\udc00-\\udfff]",gr="["+tu+"]",lu="\\u200d",cu="(?:"+au+"|"+ou+")",Ah="(?:"+gr+"|"+ou+")",fu="(?:"+aa+"(?:d|ll|m|re|s|t|ve))?",hu="(?:"+aa+"(?:D|LL|M|RE|S|T|VE))?",gu=yh+"?",du="["+nu+"]?",Rh="(?:"+lu+"(?:"+[uu,ua,la].join("|")+")"+du+gu+")*",bh="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ph="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",pu=du+gu+Rh,Ih="(?:"+[Th,ua,la].join("|")+")"+pu,xh="(?:"+[uu+Bi+"?",Bi,ua,la,Ch].join("|")+")",Lh=RegExp(aa,"g"),$h=RegExp(Bi,"g"),ca=RegExp(oa+"(?="+oa+")|"+xh+pu,"g"),Oh=RegExp([gr+"?"+au+"+"+fu+"(?="+[iu,gr,"$"].join("|")+")",Ah+"+"+hu+"(?="+[iu,gr+cu,"$"].join("|")+")",gr+"?"+cu+"+"+fu,gr+"+"+hu,Ph,bh,su,Ih].join("|"),"g"),Nh=RegExp("["+lu+Vi+Jo+nu+"]"),Uh=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Dh=["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"],Mh=-1,pe={};pe[Ys]=pe[Xs]=pe[Zs]=pe[Js]=pe[js]=pe[ea]=pe[ta]=pe[na]=pe[ra]=!0,pe[Et]=pe[an]=pe[ai]=pe[ei]=pe[hr]=pe[ti]=pe[Fi]=pe[ki]=pe[Mt]=pe[ni]=pe[on]=pe[ri]=pe[Ft]=pe[ii]=pe[si]=!1;var de={};de[Et]=de[an]=de[ai]=de[hr]=de[ei]=de[ti]=de[Ys]=de[Xs]=de[Zs]=de[Js]=de[js]=de[Mt]=de[ni]=de[on]=de[ri]=de[Ft]=de[ii]=de[Wi]=de[ea]=de[ta]=de[na]=de[ra]=!0,de[Fi]=de[ki]=de[si]=!1;var Fh={À:"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"},kh={"&":"&","<":"<",">":">",'"':""","'":"'"},Wh={"&":"&","<":"<",">":">",""":'"',"'":"'"},Hh={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Vh=parseFloat,Bh=parseInt,_u=typeof Is=="object"&&Is&&Is.Object===Object&&Is,Gh=typeof self=="object"&&self&&self.Object===Object&&self,We=_u||Gh||Function("return this")(),fa=n&&!n.nodeType&&n,Bn=fa&&!0&&i&&!i.nodeType&&i,vu=Bn&&Bn.exports===fa,ha=vu&&_u.process,Ct=(function(){try{var S=Bn&&Bn.require&&Bn.require("util").types;return S||ha&&ha.binding&&ha.binding("util")}catch{}})(),mu=Ct&&Ct.isArrayBuffer,Su=Ct&&Ct.isDate,wu=Ct&&Ct.isMap,Eu=Ct&&Ct.isRegExp,Cu=Ct&&Ct.isSet,Tu=Ct&&Ct.isTypedArray;function ft(S,b,y){switch(y.length){case 0:return S.call(b);case 1:return S.call(b,y[0]);case 2:return S.call(b,y[0],y[1]);case 3:return S.call(b,y[0],y[1],y[2])}return S.apply(b,y)}function Qh(S,b,y,F){for(var q=-1,se=S==null?0:S.length;++q<se;){var xe=S[q];b(F,xe,y(xe),S)}return F}function Tt(S,b){for(var y=-1,F=S==null?0:S.length;++y<F&&b(S[y],y,S)!==!1;);return S}function qh(S,b){for(var y=S==null?0:S.length;y--&&b(S[y],y,S)!==!1;);return S}function yu(S,b){for(var y=-1,F=S==null?0:S.length;++y<F;)if(!b(S[y],y,S))return!1;return!0}function En(S,b){for(var y=-1,F=S==null?0:S.length,q=0,se=[];++y<F;){var xe=S[y];b(xe,y,S)&&(se[q++]=xe)}return se}function Gi(S,b){var y=S==null?0:S.length;return!!y&&dr(S,b,0)>-1}function ga(S,b,y){for(var F=-1,q=S==null?0:S.length;++F<q;)if(y(b,S[F]))return!0;return!1}function _e(S,b){for(var y=-1,F=S==null?0:S.length,q=Array(F);++y<F;)q[y]=b(S[y],y,S);return q}function Cn(S,b){for(var y=-1,F=b.length,q=S.length;++y<F;)S[q+y]=b[y];return S}function da(S,b,y,F){var q=-1,se=S==null?0:S.length;for(F&&se&&(y=S[++q]);++q<se;)y=b(y,S[q],q,S);return y}function zh(S,b,y,F){var q=S==null?0:S.length;for(F&&q&&(y=S[--q]);q--;)y=b(y,S[q],q,S);return y}function pa(S,b){for(var y=-1,F=S==null?0:S.length;++y<F;)if(b(S[y],y,S))return!0;return!1}var Kh=_a("length");function Yh(S){return S.split("")}function Xh(S){return S.match(ih)||[]}function Au(S,b,y){var F;return y(S,function(q,se,xe){if(b(q,se,xe))return F=se,!1}),F}function Qi(S,b,y,F){for(var q=S.length,se=y+(F?1:-1);F?se--:++se<q;)if(b(S[se],se,S))return se;return-1}function dr(S,b,y){return b===b?ug(S,b,y):Qi(S,Ru,y)}function Zh(S,b,y,F){for(var q=y-1,se=S.length;++q<se;)if(F(S[q],b))return q;return-1}function Ru(S){return S!==S}function bu(S,b){var y=S==null?0:S.length;return y?ma(S,b)/y:ye}function _a(S){return function(b){return b==null?r:b[S]}}function va(S){return function(b){return S==null?r:S[b]}}function Pu(S,b,y,F,q){return q(S,function(se,xe,ge){y=F?(F=!1,se):b(y,se,xe,ge)}),y}function Jh(S,b){var y=S.length;for(S.sort(b);y--;)S[y]=S[y].value;return S}function ma(S,b){for(var y,F=-1,q=S.length;++F<q;){var se=b(S[F]);se!==r&&(y=y===r?se:y+se)}return y}function Sa(S,b){for(var y=-1,F=Array(S);++y<S;)F[y]=b(y);return F}function jh(S,b){return _e(b,function(y){return[y,S[y]]})}function Iu(S){return S&&S.slice(0,Ou(S)+1).replace(sa,"")}function ht(S){return function(b){return S(b)}}function wa(S,b){return _e(b,function(y){return S[y]})}function oi(S,b){return S.has(b)}function xu(S,b){for(var y=-1,F=S.length;++y<F&&dr(b,S[y],0)>-1;);return y}function Lu(S,b){for(var y=S.length;y--&&dr(b,S[y],0)>-1;);return y}function eg(S,b){for(var y=S.length,F=0;y--;)S[y]===b&&++F;return F}var tg=va(Fh),ng=va(kh);function rg(S){return"\\"+Hh[S]}function ig(S,b){return S==null?r:S[b]}function pr(S){return Nh.test(S)}function sg(S){return Uh.test(S)}function ag(S){for(var b,y=[];!(b=S.next()).done;)y.push(b.value);return y}function Ea(S){var b=-1,y=Array(S.size);return S.forEach(function(F,q){y[++b]=[q,F]}),y}function $u(S,b){return function(y){return S(b(y))}}function Tn(S,b){for(var y=-1,F=S.length,q=0,se=[];++y<F;){var xe=S[y];(xe===b||xe===R)&&(S[y]=R,se[q++]=y)}return se}function qi(S){var b=-1,y=Array(S.size);return S.forEach(function(F){y[++b]=F}),y}function og(S){var b=-1,y=Array(S.size);return S.forEach(function(F){y[++b]=[F,F]}),y}function ug(S,b,y){for(var F=y-1,q=S.length;++F<q;)if(S[F]===b)return F;return-1}function lg(S,b,y){for(var F=y+1;F--;)if(S[F]===b)return F;return F}function _r(S){return pr(S)?fg(S):Kh(S)}function kt(S){return pr(S)?hg(S):Yh(S)}function Ou(S){for(var b=S.length;b--&&eh.test(S.charAt(b)););return b}var cg=va(Wh);function fg(S){for(var b=ca.lastIndex=0;ca.test(S);)++b;return b}function hg(S){return S.match(ca)||[]}function gg(S){return S.match(Oh)||[]}var dg=(function S(b){b=b==null?We:vr.defaults(We.Object(),b,vr.pick(We,Dh));var y=b.Array,F=b.Date,q=b.Error,se=b.Function,xe=b.Math,ge=b.Object,Ca=b.RegExp,pg=b.String,yt=b.TypeError,zi=y.prototype,_g=se.prototype,mr=ge.prototype,Ki=b["__core-js_shared__"],Yi=_g.toString,oe=mr.hasOwnProperty,vg=0,Nu=(function(){var e=/[^.]+$/.exec(Ki&&Ki.keys&&Ki.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),Xi=mr.toString,mg=Yi.call(ge),Sg=We._,wg=Ca("^"+Yi.call(oe).replace(ia,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Zi=vu?b.Buffer:r,yn=b.Symbol,Ji=b.Uint8Array,Uu=Zi?Zi.allocUnsafe:r,ji=$u(ge.getPrototypeOf,ge),Du=ge.create,Mu=mr.propertyIsEnumerable,es=zi.splice,Fu=yn?yn.isConcatSpreadable:r,ui=yn?yn.iterator:r,Gn=yn?yn.toStringTag:r,ts=(function(){try{var e=Yn(ge,"defineProperty");return e({},"",{}),e}catch{}})(),Eg=b.clearTimeout!==We.clearTimeout&&b.clearTimeout,Cg=F&&F.now!==We.Date.now&&F.now,Tg=b.setTimeout!==We.setTimeout&&b.setTimeout,ns=xe.ceil,rs=xe.floor,Ta=ge.getOwnPropertySymbols,yg=Zi?Zi.isBuffer:r,ku=b.isFinite,Ag=zi.join,Rg=$u(ge.keys,ge),Le=xe.max,ze=xe.min,bg=F.now,Pg=b.parseInt,Wu=xe.random,Ig=zi.reverse,ya=Yn(b,"DataView"),li=Yn(b,"Map"),Aa=Yn(b,"Promise"),Sr=Yn(b,"Set"),ci=Yn(b,"WeakMap"),fi=Yn(ge,"create"),is=ci&&new ci,wr={},xg=Xn(ya),Lg=Xn(li),$g=Xn(Aa),Og=Xn(Sr),Ng=Xn(ci),ss=yn?yn.prototype:r,hi=ss?ss.valueOf:r,Hu=ss?ss.toString:r;function g(e){if(Se(e)&&!K(e)&&!(e instanceof te)){if(e instanceof At)return e;if(oe.call(e,"__wrapped__"))return Vl(e)}return new At(e)}var Er=(function(){function e(){}return function(t){if(!ve(t))return{};if(Du)return Du(t);e.prototype=t;var s=new e;return e.prototype=r,s}})();function as(){}function At(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}g.templateSettings={escape:Kf,evaluate:Yf,interpolate:Xo,variable:"",imports:{_:g}},g.prototype=as.prototype,g.prototype.constructor=g,At.prototype=Er(as.prototype),At.prototype.constructor=At;function te(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ke,this.__views__=[]}function Ug(){var e=new te(this.__wrapped__);return e.__actions__=it(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=it(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=it(this.__views__),e}function Dg(){if(this.__filtered__){var e=new te(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Mg(){var e=this.__wrapped__.value(),t=this.__dir__,s=K(e),o=t<0,f=s?e.length:0,d=Yd(0,f,this.__views__),_=d.start,m=d.end,w=m-_,P=o?m:_-1,I=this.__iteratees__,L=I.length,M=0,k=ze(w,this.__takeCount__);if(!s||!o&&f==w&&k==w)return fl(e,this.__actions__);var G=[];e:for(;w--&&M<k;){P+=t;for(var X=-1,Q=e[P];++X<L;){var j=I[X],ne=j.iteratee,pt=j.type,et=ne(Q);if(pt==Ne)Q=et;else if(!et){if(pt==Ze)continue e;break e}}G[M++]=Q}return G}te.prototype=Er(as.prototype),te.prototype.constructor=te;function Qn(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t<s;){var o=e[t];this.set(o[0],o[1])}}function Fg(){this.__data__=fi?fi(null):{},this.size=0}function kg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Wg(e){var t=this.__data__;if(fi){var s=t[e];return s===p?r:s}return oe.call(t,e)?t[e]:r}function Hg(e){var t=this.__data__;return fi?t[e]!==r:oe.call(t,e)}function Vg(e,t){var s=this.__data__;return this.size+=this.has(e)?0:1,s[e]=fi&&t===r?p:t,this}Qn.prototype.clear=Fg,Qn.prototype.delete=kg,Qn.prototype.get=Wg,Qn.prototype.has=Hg,Qn.prototype.set=Vg;function un(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t<s;){var o=e[t];this.set(o[0],o[1])}}function Bg(){this.__data__=[],this.size=0}function Gg(e){var t=this.__data__,s=os(t,e);if(s<0)return!1;var o=t.length-1;return s==o?t.pop():es.call(t,s,1),--this.size,!0}function Qg(e){var t=this.__data__,s=os(t,e);return s<0?r:t[s][1]}function qg(e){return os(this.__data__,e)>-1}function zg(e,t){var s=this.__data__,o=os(s,e);return o<0?(++this.size,s.push([e,t])):s[o][1]=t,this}un.prototype.clear=Bg,un.prototype.delete=Gg,un.prototype.get=Qg,un.prototype.has=qg,un.prototype.set=zg;function ln(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t<s;){var o=e[t];this.set(o[0],o[1])}}function Kg(){this.size=0,this.__data__={hash:new Qn,map:new(li||un),string:new Qn}}function Yg(e){var t=Ss(this,e).delete(e);return this.size-=t?1:0,t}function Xg(e){return Ss(this,e).get(e)}function Zg(e){return Ss(this,e).has(e)}function Jg(e,t){var s=Ss(this,e),o=s.size;return s.set(e,t),this.size+=s.size==o?0:1,this}ln.prototype.clear=Kg,ln.prototype.delete=Yg,ln.prototype.get=Xg,ln.prototype.has=Zg,ln.prototype.set=Jg;function qn(e){var t=-1,s=e==null?0:e.length;for(this.__data__=new ln;++t<s;)this.add(e[t])}function jg(e){return this.__data__.set(e,p),this}function ed(e){return this.__data__.has(e)}qn.prototype.add=qn.prototype.push=jg,qn.prototype.has=ed;function Wt(e){var t=this.__data__=new un(e);this.size=t.size}function td(){this.__data__=new un,this.size=0}function nd(e){var t=this.__data__,s=t.delete(e);return this.size=t.size,s}function rd(e){return this.__data__.get(e)}function id(e){return this.__data__.has(e)}function sd(e,t){var s=this.__data__;if(s instanceof un){var o=s.__data__;if(!li||o.length<u-1)return o.push([e,t]),this.size=++s.size,this;s=this.__data__=new ln(o)}return s.set(e,t),this.size=s.size,this}Wt.prototype.clear=td,Wt.prototype.delete=nd,Wt.prototype.get=rd,Wt.prototype.has=id,Wt.prototype.set=sd;function Vu(e,t){var s=K(e),o=!s&&Zn(e),f=!s&&!o&&In(e),d=!s&&!o&&!f&&Ar(e),_=s||o||f||d,m=_?Sa(e.length,pg):[],w=m.length;for(var P in e)(t||oe.call(e,P))&&!(_&&(P=="length"||f&&(P=="offset"||P=="parent")||d&&(P=="buffer"||P=="byteLength"||P=="byteOffset")||gn(P,w)))&&m.push(P);return m}function Bu(e){var t=e.length;return t?e[Da(0,t-1)]:r}function ad(e,t){return ws(it(e),zn(t,0,e.length))}function od(e){return ws(it(e))}function Ra(e,t,s){(s!==r&&!Ht(e[t],s)||s===r&&!(t in e))&&cn(e,t,s)}function gi(e,t,s){var o=e[t];(!(oe.call(e,t)&&Ht(o,s))||s===r&&!(t in e))&&cn(e,t,s)}function os(e,t){for(var s=e.length;s--;)if(Ht(e[s][0],t))return s;return-1}function ud(e,t,s,o){return An(e,function(f,d,_){t(o,f,s(f),_)}),o}function Gu(e,t){return e&&Zt(t,Ue(t),e)}function ld(e,t){return e&&Zt(t,at(t),e)}function cn(e,t,s){t=="__proto__"&&ts?ts(e,t,{configurable:!0,enumerable:!0,value:s,writable:!0}):e[t]=s}function ba(e,t){for(var s=-1,o=t.length,f=y(o),d=e==null;++s<o;)f[s]=d?r:oo(e,t[s]);return f}function zn(e,t,s){return e===e&&(s!==r&&(e=e<=s?e:s),t!==r&&(e=e>=t?e:t)),e}function Rt(e,t,s,o,f,d){var _,m=t&C,w=t&E,P=t&T;if(s&&(_=f?s(e,o,f,d):s(e)),_!==r)return _;if(!ve(e))return e;var I=K(e);if(I){if(_=Zd(e),!m)return it(e,_)}else{var L=Ke(e),M=L==ki||L==qo;if(In(e))return dl(e,m);if(L==on||L==Et||M&&!f){if(_=w||M?{}:Ol(e),!m)return w?Wd(e,ld(_,e)):kd(e,Gu(_,e))}else{if(!de[L])return f?e:{};_=Jd(e,L,m)}}d||(d=new Wt);var k=d.get(e);if(k)return k;d.set(e,_),uc(e)?e.forEach(function(Q){_.add(Rt(Q,t,s,Q,e,d))}):ac(e)&&e.forEach(function(Q,j){_.set(j,Rt(Q,t,s,j,e,d))});var G=P?w?za:qa:w?at:Ue,X=I?r:G(e);return Tt(X||e,function(Q,j){X&&(j=Q,Q=e[j]),gi(_,j,Rt(Q,t,s,j,e,d))}),_}function cd(e){var t=Ue(e);return function(s){return Qu(s,e,t)}}function Qu(e,t,s){var o=s.length;if(e==null)return!o;for(e=ge(e);o--;){var f=s[o],d=t[f],_=e[f];if(_===r&&!(f in e)||!d(_))return!1}return!0}function qu(e,t,s){if(typeof e!="function")throw new yt(c);return wi(function(){e.apply(r,s)},t)}function di(e,t,s,o){var f=-1,d=Gi,_=!0,m=e.length,w=[],P=t.length;if(!m)return w;s&&(t=_e(t,ht(s))),o?(d=ga,_=!1):t.length>=u&&(d=oi,_=!1,t=new qn(t));e:for(;++f<m;){var I=e[f],L=s==null?I:s(I);if(I=o||I!==0?I:0,_&&L===L){for(var M=P;M--;)if(t[M]===L)continue e;w.push(I)}else d(t,L,o)||w.push(I)}return w}var An=Sl(Xt),zu=Sl(Ia,!0);function fd(e,t){var s=!0;return An(e,function(o,f,d){return s=!!t(o,f,d),s}),s}function us(e,t,s){for(var o=-1,f=e.length;++o<f;){var d=e[o],_=t(d);if(_!=null&&(m===r?_===_&&!dt(_):s(_,m)))var m=_,w=d}return w}function hd(e,t,s,o){var f=e.length;for(s=Y(s),s<0&&(s=-s>f?0:f+s),o=o===r||o>f?f:Y(o),o<0&&(o+=f),o=s>o?0:cc(o);s<o;)e[s++]=t;return e}function Ku(e,t){var s=[];return An(e,function(o,f,d){t(o,f,d)&&s.push(o)}),s}function He(e,t,s,o,f){var d=-1,_=e.length;for(s||(s=ep),f||(f=[]);++d<_;){var m=e[d];t>0&&s(m)?t>1?He(m,t-1,s,o,f):Cn(f,m):o||(f[f.length]=m)}return f}var Pa=wl(),Yu=wl(!0);function Xt(e,t){return e&&Pa(e,t,Ue)}function Ia(e,t){return e&&Yu(e,t,Ue)}function ls(e,t){return En(t,function(s){return dn(e[s])})}function Kn(e,t){t=bn(t,e);for(var s=0,o=t.length;e!=null&&s<o;)e=e[Jt(t[s++])];return s&&s==o?e:r}function Xu(e,t,s){var o=t(e);return K(e)?o:Cn(o,s(e))}function Je(e){return e==null?e===r?Hf:kf:Gn&&Gn in ge(e)?Kd(e):op(e)}function xa(e,t){return e>t}function gd(e,t){return e!=null&&oe.call(e,t)}function dd(e,t){return e!=null&&t in ge(e)}function pd(e,t,s){return e>=ze(t,s)&&e<Le(t,s)}function La(e,t,s){for(var o=s?ga:Gi,f=e[0].length,d=e.length,_=d,m=y(d),w=1/0,P=[];_--;){var I=e[_];_&&t&&(I=_e(I,ht(t))),w=ze(I.length,w),m[_]=!s&&(t||f>=120&&I.length>=120)?new qn(_&&I):r}I=e[0];var L=-1,M=m[0];e:for(;++L<f&&P.length<w;){var k=I[L],G=t?t(k):k;if(k=s||k!==0?k:0,!(M?oi(M,G):o(P,G,s))){for(_=d;--_;){var X=m[_];if(!(X?oi(X,G):o(e[_],G,s)))continue e}M&&M.push(G),P.push(k)}}return P}function _d(e,t,s,o){return Xt(e,function(f,d,_){t(o,s(f),d,_)}),o}function pi(e,t,s){t=bn(t,e),e=Ml(e,t);var o=e==null?e:e[Jt(Pt(t))];return o==null?r:ft(o,e,s)}function Zu(e){return Se(e)&&Je(e)==Et}function vd(e){return Se(e)&&Je(e)==ai}function md(e){return Se(e)&&Je(e)==ti}function _i(e,t,s,o,f){return e===t?!0:e==null||t==null||!Se(e)&&!Se(t)?e!==e&&t!==t:Sd(e,t,s,o,_i,f)}function Sd(e,t,s,o,f,d){var _=K(e),m=K(t),w=_?an:Ke(e),P=m?an:Ke(t);w=w==Et?on:w,P=P==Et?on:P;var I=w==on,L=P==on,M=w==P;if(M&&In(e)){if(!In(t))return!1;_=!0,I=!1}if(M&&!I)return d||(d=new Wt),_||Ar(e)?xl(e,t,s,o,f,d):qd(e,t,w,s,o,f,d);if(!(s&A)){var k=I&&oe.call(e,"__wrapped__"),G=L&&oe.call(t,"__wrapped__");if(k||G){var X=k?e.value():e,Q=G?t.value():t;return d||(d=new Wt),f(X,Q,s,o,d)}}return M?(d||(d=new Wt),zd(e,t,s,o,f,d)):!1}function wd(e){return Se(e)&&Ke(e)==Mt}function $a(e,t,s,o){var f=s.length,d=f,_=!o;if(e==null)return!d;for(e=ge(e);f--;){var m=s[f];if(_&&m[2]?m[1]!==e[m[0]]:!(m[0]in e))return!1}for(;++f<d;){m=s[f];var w=m[0],P=e[w],I=m[1];if(_&&m[2]){if(P===r&&!(w in e))return!1}else{var L=new Wt;if(o)var M=o(P,I,w,e,t,L);if(!(M===r?_i(I,P,A|O,o,L):M))return!1}}return!0}function Ju(e){if(!ve(e)||np(e))return!1;var t=dn(e)?wg:ch;return t.test(Xn(e))}function Ed(e){return Se(e)&&Je(e)==ri}function Cd(e){return Se(e)&&Ke(e)==Ft}function Td(e){return Se(e)&&Rs(e.length)&&!!pe[Je(e)]}function ju(e){return typeof e=="function"?e:e==null?ot:typeof e=="object"?K(e)?nl(e[0],e[1]):tl(e):Ec(e)}function Oa(e){if(!Si(e))return Rg(e);var t=[];for(var s in ge(e))oe.call(e,s)&&s!="constructor"&&t.push(s);return t}function yd(e){if(!ve(e))return ap(e);var t=Si(e),s=[];for(var o in e)o=="constructor"&&(t||!oe.call(e,o))||s.push(o);return s}function Na(e,t){return e<t}function el(e,t){var s=-1,o=st(e)?y(e.length):[];return An(e,function(f,d,_){o[++s]=t(f,d,_)}),o}function tl(e){var t=Ya(e);return t.length==1&&t[0][2]?Ul(t[0][0],t[0][1]):function(s){return s===e||$a(s,e,t)}}function nl(e,t){return Za(e)&&Nl(t)?Ul(Jt(e),t):function(s){var o=oo(s,e);return o===r&&o===t?uo(s,e):_i(t,o,A|O)}}function cs(e,t,s,o,f){e!==t&&Pa(t,function(d,_){if(f||(f=new Wt),ve(d))Ad(e,t,_,s,cs,o,f);else{var m=o?o(ja(e,_),d,_+"",e,t,f):r;m===r&&(m=d),Ra(e,_,m)}},at)}function Ad(e,t,s,o,f,d,_){var m=ja(e,s),w=ja(t,s),P=_.get(w);if(P){Ra(e,s,P);return}var I=d?d(m,w,s+"",e,t,_):r,L=I===r;if(L){var M=K(w),k=!M&&In(w),G=!M&&!k&&Ar(w);I=w,M||k||G?K(m)?I=m:Ae(m)?I=it(m):k?(L=!1,I=dl(w,!0)):G?(L=!1,I=pl(w,!0)):I=[]:Ei(w)||Zn(w)?(I=m,Zn(m)?I=fc(m):(!ve(m)||dn(m))&&(I=Ol(w))):L=!1}L&&(_.set(w,I),f(I,w,o,d,_),_.delete(w)),Ra(e,s,I)}function rl(e,t){var s=e.length;if(s)return t+=t<0?s:0,gn(t,s)?e[t]:r}function il(e,t,s){t.length?t=_e(t,function(d){return K(d)?function(_){return Kn(_,d.length===1?d[0]:d)}:d}):t=[ot];var o=-1;t=_e(t,ht(B()));var f=el(e,function(d,_,m){var w=_e(t,function(P){return P(d)});return{criteria:w,index:++o,value:d}});return Jh(f,function(d,_){return Fd(d,_,s)})}function Rd(e,t){return sl(e,t,function(s,o){return uo(e,o)})}function sl(e,t,s){for(var o=-1,f=t.length,d={};++o<f;){var _=t[o],m=Kn(e,_);s(m,_)&&vi(d,bn(_,e),m)}return d}function bd(e){return function(t){return Kn(t,e)}}function Ua(e,t,s,o){var f=o?Zh:dr,d=-1,_=t.length,m=e;for(e===t&&(t=it(t)),s&&(m=_e(e,ht(s)));++d<_;)for(var w=0,P=t[d],I=s?s(P):P;(w=f(m,I,w,o))>-1;)m!==e&&es.call(m,w,1),es.call(e,w,1);return e}function al(e,t){for(var s=e?t.length:0,o=s-1;s--;){var f=t[s];if(s==o||f!==d){var d=f;gn(f)?es.call(e,f,1):ka(e,f)}}return e}function Da(e,t){return e+rs(Wu()*(t-e+1))}function Pd(e,t,s,o){for(var f=-1,d=Le(ns((t-e)/(s||1)),0),_=y(d);d--;)_[o?d:++f]=e,e+=s;return _}function Ma(e,t){var s="";if(!e||t<1||t>qe)return s;do t%2&&(s+=e),t=rs(t/2),t&&(e+=e);while(t);return s}function Z(e,t){return eo(Dl(e,t,ot),e+"")}function Id(e){return Bu(Rr(e))}function xd(e,t){var s=Rr(e);return ws(s,zn(t,0,s.length))}function vi(e,t,s,o){if(!ve(e))return e;t=bn(t,e);for(var f=-1,d=t.length,_=d-1,m=e;m!=null&&++f<d;){var w=Jt(t[f]),P=s;if(w==="__proto__"||w==="constructor"||w==="prototype")return e;if(f!=_){var I=m[w];P=o?o(I,w,m):r,P===r&&(P=ve(I)?I:gn(t[f+1])?[]:{})}gi(m,w,P),m=m[w]}return e}var ol=is?function(e,t){return is.set(e,t),e}:ot,Ld=ts?function(e,t){return ts(e,"toString",{configurable:!0,enumerable:!1,value:co(t),writable:!0})}:ot;function $d(e){return ws(Rr(e))}function bt(e,t,s){var o=-1,f=e.length;t<0&&(t=-t>f?0:f+t),s=s>f?f:s,s<0&&(s+=f),f=t>s?0:s-t>>>0,t>>>=0;for(var d=y(f);++o<f;)d[o]=e[o+t];return d}function Od(e,t){var s;return An(e,function(o,f,d){return s=t(o,f,d),!s}),!!s}function fs(e,t,s){var o=0,f=e==null?o:e.length;if(typeof t=="number"&&t===t&&f<=Mi){for(;o<f;){var d=o+f>>>1,_=e[d];_!==null&&!dt(_)&&(s?_<=t:_<t)?o=d+1:f=d}return f}return Fa(e,t,ot,s)}function Fa(e,t,s,o){var f=0,d=e==null?0:e.length;if(d===0)return 0;t=s(t);for(var _=t!==t,m=t===null,w=dt(t),P=t===r;f<d;){var I=rs((f+d)/2),L=s(e[I]),M=L!==r,k=L===null,G=L===L,X=dt(L);if(_)var Q=o||G;else P?Q=G&&(o||M):m?Q=G&&M&&(o||!k):w?Q=G&&M&&!k&&(o||!X):k||X?Q=!1:Q=o?L<=t:L<t;Q?f=I+1:d=I}return ze(d,Di)}function ul(e,t){for(var s=-1,o=e.length,f=0,d=[];++s<o;){var _=e[s],m=t?t(_):_;if(!s||!Ht(m,w)){var w=m;d[f++]=_===0?0:_}}return d}function ll(e){return typeof e=="number"?e:dt(e)?ye:+e}function gt(e){if(typeof e=="string")return e;if(K(e))return _e(e,gt)+"";if(dt(e))return Hu?Hu.call(e):"";var t=e+"";return t=="0"&&1/e==-x?"-0":t}function Rn(e,t,s){var o=-1,f=Gi,d=e.length,_=!0,m=[],w=m;if(s)_=!1,f=ga;else if(d>=u){var P=t?null:Gd(e);if(P)return qi(P);_=!1,f=oi,w=new qn}else w=t?[]:m;e:for(;++o<d;){var I=e[o],L=t?t(I):I;if(I=s||I!==0?I:0,_&&L===L){for(var M=w.length;M--;)if(w[M]===L)continue e;t&&w.push(L),m.push(I)}else f(w,L,s)||(w!==m&&w.push(L),m.push(I))}return m}function ka(e,t){t=bn(t,e);var s=-1,o=t.length;if(!o)return!0;for(var f=e==null||typeof e!="object"&&typeof e!="function";++s<o;){var d=t[s];if(typeof d=="string"){if(d==="__proto__"&&!oe.call(e,"__proto__"))return!1;if(d==="constructor"&&s+1<o&&typeof t[s+1]=="string"&&t[s+1]==="prototype"){if(f&&s===0)continue;return!1}}}var _=Ml(e,t);return _==null||delete _[Jt(Pt(t))]}function cl(e,t,s,o){return vi(e,t,s(Kn(e,t)),o)}function hs(e,t,s,o){for(var f=e.length,d=o?f:-1;(o?d--:++d<f)&&t(e[d],d,e););return s?bt(e,o?0:d,o?d+1:f):bt(e,o?d+1:0,o?f:d)}function fl(e,t){var s=e;return s instanceof te&&(s=s.value()),da(t,function(o,f){return f.func.apply(f.thisArg,Cn([o],f.args))},s)}function Wa(e,t,s){var o=e.length;if(o<2)return o?Rn(e[0]):[];for(var f=-1,d=y(o);++f<o;)for(var _=e[f],m=-1;++m<o;)m!=f&&(d[f]=di(d[f]||_,e[m],t,s));return Rn(He(d,1),t,s)}function hl(e,t,s){for(var o=-1,f=e.length,d=t.length,_={};++o<f;){var m=o<d?t[o]:r;s(_,e[o],m)}return _}function Ha(e){return Ae(e)?e:[]}function Va(e){return typeof e=="function"?e:ot}function bn(e,t){return K(e)?e:Za(e,t)?[e]:Hl(ue(e))}var Nd=Z;function Pn(e,t,s){var o=e.length;return s=s===r?o:s,!t&&s>=o?e:bt(e,t,s)}var gl=Eg||function(e){return We.clearTimeout(e)};function dl(e,t){if(t)return e.slice();var s=e.length,o=Uu?Uu(s):new e.constructor(s);return e.copy(o),o}function Ba(e){var t=new e.constructor(e.byteLength);return new Ji(t).set(new Ji(e)),t}function Ud(e,t){var s=t?Ba(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.byteLength)}function Dd(e){var t=new e.constructor(e.source,Zo.exec(e));return t.lastIndex=e.lastIndex,t}function Md(e){return hi?ge(hi.call(e)):{}}function pl(e,t){var s=t?Ba(e.buffer):e.buffer;return new e.constructor(s,e.byteOffset,e.length)}function _l(e,t){if(e!==t){var s=e!==r,o=e===null,f=e===e,d=dt(e),_=t!==r,m=t===null,w=t===t,P=dt(t);if(!m&&!P&&!d&&e>t||d&&_&&w&&!m&&!P||o&&_&&w||!s&&w||!f)return 1;if(!o&&!d&&!P&&e<t||P&&s&&f&&!o&&!d||m&&s&&f||!_&&f||!w)return-1}return 0}function Fd(e,t,s){for(var o=-1,f=e.criteria,d=t.criteria,_=f.length,m=s.length;++o<_;){var w=_l(f[o],d[o]);if(w){if(o>=m)return w;var P=s[o];return w*(P=="desc"?-1:1)}}return e.index-t.index}function vl(e,t,s,o){for(var f=-1,d=e.length,_=s.length,m=-1,w=t.length,P=Le(d-_,0),I=y(w+P),L=!o;++m<w;)I[m]=t[m];for(;++f<_;)(L||f<d)&&(I[s[f]]=e[f]);for(;P--;)I[m++]=e[f++];return I}function ml(e,t,s,o){for(var f=-1,d=e.length,_=-1,m=s.length,w=-1,P=t.length,I=Le(d-m,0),L=y(I+P),M=!o;++f<I;)L[f]=e[f];for(var k=f;++w<P;)L[k+w]=t[w];for(;++_<m;)(M||f<d)&&(L[k+s[_]]=e[f++]);return L}function it(e,t){var s=-1,o=e.length;for(t||(t=y(o));++s<o;)t[s]=e[s];return t}function Zt(e,t,s,o){var f=!s;s||(s={});for(var d=-1,_=t.length;++d<_;){var m=t[d],w=o?o(s[m],e[m],m,s,e):r;w===r&&(w=e[m]),f?cn(s,m,w):gi(s,m,w)}return s}function kd(e,t){return Zt(e,Xa(e),t)}function Wd(e,t){return Zt(e,Ll(e),t)}function gs(e,t){return function(s,o){var f=K(s)?Qh:ud,d=t?t():{};return f(s,e,B(o,2),d)}}function Cr(e){return Z(function(t,s){var o=-1,f=s.length,d=f>1?s[f-1]:r,_=f>2?s[2]:r;for(d=e.length>3&&typeof d=="function"?(f--,d):r,_&&je(s[0],s[1],_)&&(d=f<3?r:d,f=1),t=ge(t);++o<f;){var m=s[o];m&&e(t,m,o,d)}return t})}function Sl(e,t){return function(s,o){if(s==null)return s;if(!st(s))return e(s,o);for(var f=s.length,d=t?f:-1,_=ge(s);(t?d--:++d<f)&&o(_[d],d,_)!==!1;);return s}}function wl(e){return function(t,s,o){for(var f=-1,d=ge(t),_=o(t),m=_.length;m--;){var w=_[e?m:++f];if(s(d[w],w,d)===!1)break}return t}}function Hd(e,t,s){var o=t&N,f=mi(e);function d(){var _=this&&this!==We&&this instanceof d?f:e;return _.apply(o?s:this,arguments)}return d}function El(e){return function(t){t=ue(t);var s=pr(t)?kt(t):r,o=s?s[0]:t.charAt(0),f=s?Pn(s,1).join(""):t.slice(1);return o[e]()+f}}function Tr(e){return function(t){return da(Sc(mc(t).replace(Lh,"")),e,"")}}function mi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var s=Er(e.prototype),o=e.apply(s,t);return ve(o)?o:s}}function Vd(e,t,s){var o=mi(e);function f(){for(var d=arguments.length,_=y(d),m=d,w=yr(f);m--;)_[m]=arguments[m];var P=d<3&&_[0]!==w&&_[d-1]!==w?[]:Tn(_,w);if(d-=P.length,d<s)return Rl(e,t,ds,f.placeholder,r,_,P,r,r,s-d);var I=this&&this!==We&&this instanceof f?o:e;return ft(I,this,_)}return f}function Cl(e){return function(t,s,o){var f=ge(t);if(!st(t)){var d=B(s,3);t=Ue(t),s=function(m){return d(f[m],m,f)}}var _=e(t,s,o);return _>-1?f[d?t[_]:_]:r}}function Tl(e){return hn(function(t){var s=t.length,o=s,f=At.prototype.thru;for(e&&t.reverse();o--;){var d=t[o];if(typeof d!="function")throw new yt(c);if(f&&!_&&ms(d)=="wrapper")var _=new At([],!0)}for(o=_?o:s;++o<s;){d=t[o];var m=ms(d),w=m=="wrapper"?Ka(d):r;w&&Ja(w[0])&&w[1]==(Pe|ce|Ee|Fe)&&!w[4].length&&w[9]==1?_=_[ms(w[0])].apply(_,w[3]):_=d.length==1&&Ja(d)?_[m]():_.thru(d)}return function(){var P=arguments,I=P[0];if(_&&P.length==1&&K(I))return _.plant(I).value();for(var L=0,M=s?t[L].apply(this,P):I;++L<s;)M=t[L].call(this,M);return M}})}function ds(e,t,s,o,f,d,_,m,w,P){var I=t&Pe,L=t&N,M=t&V,k=t&(ce|Ge),G=t&Ie,X=M?r:mi(e);function Q(){for(var j=arguments.length,ne=y(j),pt=j;pt--;)ne[pt]=arguments[pt];if(k)var et=yr(Q),_t=eg(ne,et);if(o&&(ne=vl(ne,o,f,k)),d&&(ne=ml(ne,d,_,k)),j-=_t,k&&j<P){var Re=Tn(ne,et);return Rl(e,t,ds,Q.placeholder,s,ne,Re,m,w,P-j)}var Vt=L?s:this,_n=M?Vt[e]:e;return j=ne.length,m?ne=up(ne,m):G&&j>1&&ne.reverse(),I&&w<j&&(ne.length=w),this&&this!==We&&this instanceof Q&&(_n=X||mi(_n)),_n.apply(Vt,ne)}return Q}function yl(e,t){return function(s,o){return _d(s,e,t(o),{})}}function ps(e,t){return function(s,o){var f;if(s===r&&o===r)return t;if(s!==r&&(f=s),o!==r){if(f===r)return o;typeof s=="string"||typeof o=="string"?(s=gt(s),o=gt(o)):(s=ll(s),o=ll(o)),f=e(s,o)}return f}}function Ga(e){return hn(function(t){return t=_e(t,ht(B())),Z(function(s){var o=this;return e(t,function(f){return ft(f,o,s)})})})}function _s(e,t){t=t===r?" ":gt(t);var s=t.length;if(s<2)return s?Ma(t,e):t;var o=Ma(t,ns(e/_r(t)));return pr(t)?Pn(kt(o),0,e).join(""):o.slice(0,e)}function Bd(e,t,s,o){var f=t&N,d=mi(e);function _(){for(var m=-1,w=arguments.length,P=-1,I=o.length,L=y(I+w),M=this&&this!==We&&this instanceof _?d:e;++P<I;)L[P]=o[P];for(;w--;)L[P++]=arguments[++m];return ft(M,f?s:this,L)}return _}function Al(e){return function(t,s,o){return o&&typeof o!="number"&&je(t,s,o)&&(s=o=r),t=pn(t),s===r?(s=t,t=0):s=pn(s),o=o===r?t<s?1:-1:pn(o),Pd(t,s,o,e)}}function vs(e){return function(t,s){return typeof t=="string"&&typeof s=="string"||(t=It(t),s=It(s)),e(t,s)}}function Rl(e,t,s,o,f,d,_,m,w,P){var I=t&ce,L=I?_:r,M=I?r:_,k=I?d:r,G=I?r:d;t|=I?Ee:Qe,t&=~(I?Qe:Ee),t&ae||(t&=-4);var X=[e,t,f,k,L,G,M,m,w,P],Q=s.apply(r,X);return Ja(e)&&Fl(Q,X),Q.placeholder=o,kl(Q,e,t)}function Qa(e){var t=xe[e];return function(s,o){if(s=It(s),o=o==null?0:ze(Y(o),292),o&&ku(s)){var f=(ue(s)+"e").split("e"),d=t(f[0]+"e"+(+f[1]+o));return f=(ue(d)+"e").split("e"),+(f[0]+"e"+(+f[1]-o))}return t(s)}}var Gd=Sr&&1/qi(new Sr([,-0]))[1]==x?function(e){return new Sr(e)}:go;function bl(e){return function(t){var s=Ke(t);return s==Mt?Ea(t):s==Ft?og(t):jh(t,e(t))}}function fn(e,t,s,o,f,d,_,m){var w=t&V;if(!w&&typeof e!="function")throw new yt(c);var P=o?o.length:0;if(P||(t&=-97,o=f=r),_=_===r?_:Le(Y(_),0),m=m===r?m:Y(m),P-=f?f.length:0,t&Qe){var I=o,L=f;o=f=r}var M=w?r:Ka(e),k=[e,t,s,o,f,I,L,d,_,m];if(M&&sp(k,M),e=k[0],t=k[1],s=k[2],o=k[3],f=k[4],m=k[9]=k[9]===r?w?0:e.length:Le(k[9]-P,0),!m&&t&(ce|Ge)&&(t&=-25),!t||t==N)var G=Hd(e,t,s);else t==ce||t==Ge?G=Vd(e,t,m):(t==Ee||t==(N|Ee))&&!f.length?G=Bd(e,t,s,o):G=ds.apply(r,k);var X=M?ol:Fl;return kl(X(G,k),e,t)}function Pl(e,t,s,o){return e===r||Ht(e,mr[s])&&!oe.call(o,s)?t:e}function Il(e,t,s,o,f,d){return ve(e)&&ve(t)&&(d.set(t,e),cs(e,t,r,Il,d),d.delete(t)),e}function Qd(e){return Ei(e)?r:e}function xl(e,t,s,o,f,d){var _=s&A,m=e.length,w=t.length;if(m!=w&&!(_&&w>m))return!1;var P=d.get(e),I=d.get(t);if(P&&I)return P==t&&I==e;var L=-1,M=!0,k=s&O?new qn:r;for(d.set(e,t),d.set(t,e);++L<m;){var G=e[L],X=t[L];if(o)var Q=_?o(X,G,L,t,e,d):o(G,X,L,e,t,d);if(Q!==r){if(Q)continue;M=!1;break}if(k){if(!pa(t,function(j,ne){if(!oi(k,ne)&&(G===j||f(G,j,s,o,d)))return k.push(ne)})){M=!1;break}}else if(!(G===X||f(G,X,s,o,d))){M=!1;break}}return d.delete(e),d.delete(t),M}function qd(e,t,s,o,f,d,_){switch(s){case hr:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ai:return!(e.byteLength!=t.byteLength||!d(new Ji(e),new Ji(t)));case ei:case ti:case ni:return Ht(+e,+t);case Fi:return e.name==t.name&&e.message==t.message;case ri:case ii:return e==t+"";case Mt:var m=Ea;case Ft:var w=o&A;if(m||(m=qi),e.size!=t.size&&!w)return!1;var P=_.get(e);if(P)return P==t;o|=O,_.set(e,t);var I=xl(m(e),m(t),o,f,d,_);return _.delete(e),I;case Wi:if(hi)return hi.call(e)==hi.call(t)}return!1}function zd(e,t,s,o,f,d){var _=s&A,m=qa(e),w=m.length,P=qa(t),I=P.length;if(w!=I&&!_)return!1;for(var L=w;L--;){var M=m[L];if(!(_?M in t:oe.call(t,M)))return!1}var k=d.get(e),G=d.get(t);if(k&&G)return k==t&&G==e;var X=!0;d.set(e,t),d.set(t,e);for(var Q=_;++L<w;){M=m[L];var j=e[M],ne=t[M];if(o)var pt=_?o(ne,j,M,t,e,d):o(j,ne,M,e,t,d);if(!(pt===r?j===ne||f(j,ne,s,o,d):pt)){X=!1;break}Q||(Q=M=="constructor")}if(X&&!Q){var et=e.constructor,_t=t.constructor;et!=_t&&"constructor"in e&&"constructor"in t&&!(typeof et=="function"&&et instanceof et&&typeof _t=="function"&&_t instanceof _t)&&(X=!1)}return d.delete(e),d.delete(t),X}function hn(e){return eo(Dl(e,r,Ql),e+"")}function qa(e){return Xu(e,Ue,Xa)}function za(e){return Xu(e,at,Ll)}var Ka=is?function(e){return is.get(e)}:go;function ms(e){for(var t=e.name+"",s=wr[t],o=oe.call(wr,t)?s.length:0;o--;){var f=s[o],d=f.func;if(d==null||d==e)return f.name}return t}function yr(e){var t=oe.call(g,"placeholder")?g:e;return t.placeholder}function B(){var e=g.iteratee||fo;return e=e===fo?ju:e,arguments.length?e(arguments[0],arguments[1]):e}function Ss(e,t){var s=e.__data__;return tp(t)?s[typeof t=="string"?"string":"hash"]:s.map}function Ya(e){for(var t=Ue(e),s=t.length;s--;){var o=t[s],f=e[o];t[s]=[o,f,Nl(f)]}return t}function Yn(e,t){var s=ig(e,t);return Ju(s)?s:r}function Kd(e){var t=oe.call(e,Gn),s=e[Gn];try{e[Gn]=r;var o=!0}catch{}var f=Xi.call(e);return o&&(t?e[Gn]=s:delete e[Gn]),f}var Xa=Ta?function(e){return e==null?[]:(e=ge(e),En(Ta(e),function(t){return Mu.call(e,t)}))}:po,Ll=Ta?function(e){for(var t=[];e;)Cn(t,Xa(e)),e=ji(e);return t}:po,Ke=Je;(ya&&Ke(new ya(new ArrayBuffer(1)))!=hr||li&&Ke(new li)!=Mt||Aa&&Ke(Aa.resolve())!=zo||Sr&&Ke(new Sr)!=Ft||ci&&Ke(new ci)!=si)&&(Ke=function(e){var t=Je(e),s=t==on?e.constructor:r,o=s?Xn(s):"";if(o)switch(o){case xg:return hr;case Lg:return Mt;case $g:return zo;case Og:return Ft;case Ng:return si}return t});function Yd(e,t,s){for(var o=-1,f=s.length;++o<f;){var d=s[o],_=d.size;switch(d.type){case"drop":e+=_;break;case"dropRight":t-=_;break;case"take":t=ze(t,e+_);break;case"takeRight":e=Le(e,t-_);break}}return{start:e,end:t}}function Xd(e){var t=e.match(nh);return t?t[1].split(rh):[]}function $l(e,t,s){t=bn(t,e);for(var o=-1,f=t.length,d=!1;++o<f;){var _=Jt(t[o]);if(!(d=e!=null&&s(e,_)))break;e=e[_]}return d||++o!=f?d:(f=e==null?0:e.length,!!f&&Rs(f)&&gn(_,f)&&(K(e)||Zn(e)))}function Zd(e){var t=e.length,s=new e.constructor(t);return t&&typeof e[0]=="string"&&oe.call(e,"index")&&(s.index=e.index,s.input=e.input),s}function Ol(e){return typeof e.constructor=="function"&&!Si(e)?Er(ji(e)):{}}function Jd(e,t,s){var o=e.constructor;switch(t){case ai:return Ba(e);case ei:case ti:return new o(+e);case hr:return Ud(e,s);case Ys:case Xs:case Zs:case Js:case js:case ea:case ta:case na:case ra:return pl(e,s);case Mt:return new o;case ni:case ii:return new o(e);case ri:return Dd(e);case Ft:return new o;case Wi:return Md(e)}}function jd(e,t){var s=t.length;if(!s)return e;var o=s-1;return t[o]=(s>1?"& ":"")+t[o],t=t.join(s>2?", ":" "),e.replace(th,`{
|
|
9
9
|
/* [wrapped with `+t+`] */
|
|
10
|
-
`)}function ep(e){return K(e)||Zn(e)||!!(Fu&&e&&e[Fu])}function gn(e,t){var s=typeof e;return t=t??qe,!!t&&(s=="number"||s!="symbol"&&hh.test(e))&&e>-1&&e%1==0&&e<t}function je(e,t,s){if(!ve(s))return!1;var o=typeof t;return(o=="number"?st(s)&&gn(t,s.length):o=="string"&&t in s)?Ht(s[t],e):!1}function Za(e,t){if(K(e))return!1;var s=typeof e;return s=="number"||s=="symbol"||s=="boolean"||e==null||dt(e)?!0:Zf.test(e)||!Xf.test(e)||t!=null&&e in ge(t)}function tp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ja(e){var t=ms(e),s=g[t];if(typeof s!="function"||!(t in te.prototype))return!1;if(e===s)return!0;var o=Ka(s);return!!o&&e===o[0]}function np(e){return!!Ou&&Ou in e}var rp=Ki?dn:_o;function Si(e){var t=e&&e.constructor,s=typeof t=="function"&&t.prototype||mr;return e===s}function Ol(e){return e===e&&!ve(e)}function Ul(e,t){return function(s){return s==null?!1:s[e]===t&&(t!==r||e in ge(s))}}function ip(e){var t=ys(e,function(o){return s.size===v&&s.clear(),o}),s=t.cache;return t}function sp(e,t){var s=e[1],o=t[1],f=s|o,d=f<(N|G|Pe),_=o==Pe&&s==ce||o==Pe&&s==Fe&&e[7].length<=t[8]||o==(Pe|Fe)&&t[7].length<=t[8]&&s==ce;if(!(d||_))return e;o&N&&(e[2]=t[2],f|=s&N?0:ae);var m=t[3];if(m){var w=e[3];e[3]=w?vl(w,m,t[4]):m,e[4]=w?Tn(e[3],A):t[4]}return m=t[5],m&&(w=e[5],e[5]=w?ml(w,m,t[6]):m,e[6]=w?Tn(e[5],A):t[6]),m=t[7],m&&(e[7]=m),o&Pe&&(e[8]=e[8]==null?t[8]:ze(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=f,e}function ap(e){var t=[];if(e!=null)for(var s in ge(e))t.push(s);return t}function op(e){return Xi.call(e)}function Dl(e,t,s){return t=Le(t===r?e.length-1:t,0),function(){for(var o=arguments,f=-1,d=Le(o.length-t,0),_=T(d);++f<d;)_[f]=o[t+f];f=-1;for(var m=T(t+1);++f<t;)m[f]=o[f];return m[t]=s(_),ft(e,this,m)}}function Ml(e,t){return t.length<2?e:Kn(e,bt(t,0,-1))}function up(e,t){for(var s=e.length,o=ze(t.length,s),f=it(e);o--;){var d=t[o];e[o]=gn(d,s)?f[d]:r}return e}function ja(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Fl=Wl(ol),wi=Tg||function(e,t){return We.setTimeout(e,t)},eo=Wl(Ld);function kl(e,t,s){var o=t+"";return eo(e,jd(o,lp(Xd(o),s)))}function Wl(e){var t=0,s=0;return function(){var o=bg(),f=Dt-(o-s);if(s=o,f>0){if(++t>=U)return arguments[0]}else t=0;return e.apply(r,arguments)}}function ws(e,t){var s=-1,o=e.length,f=o-1;for(t=t===r?o:t;++s<t;){var d=Da(s,f),_=e[d];e[d]=e[s],e[s]=_}return e.length=t,e}var Hl=ip(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Jf,function(s,o,f,d){t.push(f?d.replace(ah,"$1"):o||s)}),t});function Jt(e){if(typeof e=="string"||dt(e))return e;var t=e+"";return t=="0"&&1/e==-x?"-0":t}function Xn(e){if(e!=null){try{return Yi.call(e)}catch{}try{return e+""}catch{}}return""}function lp(e,t){return Tt(me,function(s){var o="_."+s[0];t&s[1]&&!Gi(e,o)&&e.push(o)}),e.sort()}function Vl(e){if(e instanceof te)return e.clone();var t=new At(e.__wrapped__,e.__chain__);return t.__actions__=it(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function cp(e,t,s){(s?je(e,t,s):t===r)?t=1:t=Le(Y(t),0);var o=e==null?0:e.length;if(!o||t<1)return[];for(var f=0,d=0,_=T(ns(o/t));f<o;)_[d++]=bt(e,f,f+=t);return _}function fp(e){for(var t=-1,s=e==null?0:e.length,o=0,f=[];++t<s;){var d=e[t];d&&(f[o++]=d)}return f}function hp(){var e=arguments.length;if(!e)return[];for(var t=T(e-1),s=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Cn(K(s)?it(s):[s],He(t,1))}var gp=Z(function(e,t){return Ae(e)?di(e,He(t,1,Ae,!0)):[]}),dp=Z(function(e,t){var s=Pt(t);return Ae(s)&&(s=r),Ae(e)?di(e,He(t,1,Ae,!0),W(s,2)):[]}),pp=Z(function(e,t){var s=Pt(t);return Ae(s)&&(s=r),Ae(e)?di(e,He(t,1,Ae,!0),r,s):[]});function _p(e,t,s){var o=e==null?0:e.length;return o?(t=s||t===r?1:Y(t),bt(e,t<0?0:t,o)):[]}function vp(e,t,s){var o=e==null?0:e.length;return o?(t=s||t===r?1:Y(t),t=o-t,bt(e,0,t<0?0:t)):[]}function mp(e,t){return e&&e.length?hs(e,W(t,3),!0,!0):[]}function Sp(e,t){return e&&e.length?hs(e,W(t,3),!0):[]}function wp(e,t,s,o){var f=e==null?0:e.length;return f?(s&&typeof s!="number"&&je(e,t,s)&&(s=0,o=f),hd(e,t,s,o)):[]}function Bl(e,t,s){var o=e==null?0:e.length;if(!o)return-1;var f=s==null?0:Y(s);return f<0&&(f=Le(o+f,0)),Qi(e,W(t,3),f)}function Gl(e,t,s){var o=e==null?0:e.length;if(!o)return-1;var f=o-1;return s!==r&&(f=Y(s),f=s<0?Le(o+f,0):ze(f,o-1)),Qi(e,W(t,3),f,!0)}function Ql(e){var t=e==null?0:e.length;return t?He(e,1):[]}function Ep(e){var t=e==null?0:e.length;return t?He(e,x):[]}function Cp(e,t){var s=e==null?0:e.length;return s?(t=t===r?1:Y(t),He(e,t)):[]}function Tp(e){for(var t=-1,s=e==null?0:e.length,o={};++t<s;){var f=e[t];o[f[0]]=f[1]}return o}function ql(e){return e&&e.length?e[0]:r}function yp(e,t,s){var o=e==null?0:e.length;if(!o)return-1;var f=s==null?0:Y(s);return f<0&&(f=Le(o+f,0)),dr(e,t,f)}function Ap(e){var t=e==null?0:e.length;return t?bt(e,0,-1):[]}var Rp=Z(function(e){var t=_e(e,Ha);return t.length&&t[0]===e[0]?La(t):[]}),bp=Z(function(e){var t=Pt(e),s=_e(e,Ha);return t===Pt(s)?t=r:s.pop(),s.length&&s[0]===e[0]?La(s,W(t,2)):[]}),Pp=Z(function(e){var t=Pt(e),s=_e(e,Ha);return t=typeof t=="function"?t:r,t&&s.pop(),s.length&&s[0]===e[0]?La(s,r,t):[]});function Ip(e,t){return e==null?"":Ag.call(e,t)}function Pt(e){var t=e==null?0:e.length;return t?e[t-1]:r}function xp(e,t,s){var o=e==null?0:e.length;if(!o)return-1;var f=o;return s!==r&&(f=Y(s),f=f<0?Le(o+f,0):ze(f,o-1)),t===t?lg(e,t,f):Qi(e,Ru,f,!0)}function Lp(e,t){return e&&e.length?rl(e,Y(t)):r}var $p=Z(zl);function zl(e,t){return e&&e.length&&t&&t.length?Ua(e,t):e}function Np(e,t,s){return e&&e.length&&t&&t.length?Ua(e,t,W(s,2)):e}function Op(e,t,s){return e&&e.length&&t&&t.length?Ua(e,t,r,s):e}var Up=hn(function(e,t){var s=e==null?0:e.length,o=ba(e,t);return al(e,_e(t,function(f){return gn(f,s)?+f:f}).sort(_l)),o});function Dp(e,t){var s=[];if(!(e&&e.length))return s;var o=-1,f=[],d=e.length;for(t=W(t,3);++o<d;){var _=e[o];t(_,o,e)&&(s.push(_),f.push(o))}return al(e,f),s}function to(e){return e==null?e:Ig.call(e)}function Mp(e,t,s){var o=e==null?0:e.length;return o?(s&&typeof s!="number"&&je(e,t,s)?(t=0,s=o):(t=t==null?0:Y(t),s=s===r?o:Y(s)),bt(e,t,s)):[]}function Fp(e,t){return fs(e,t)}function kp(e,t,s){return Fa(e,t,W(s,2))}function Wp(e,t){var s=e==null?0:e.length;if(s){var o=fs(e,t);if(o<s&&Ht(e[o],t))return o}return-1}function Hp(e,t){return fs(e,t,!0)}function Vp(e,t,s){return Fa(e,t,W(s,2),!0)}function Bp(e,t){var s=e==null?0:e.length;if(s){var o=fs(e,t,!0)-1;if(Ht(e[o],t))return o}return-1}function Gp(e){return e&&e.length?ul(e):[]}function Qp(e,t){return e&&e.length?ul(e,W(t,2)):[]}function qp(e){var t=e==null?0:e.length;return t?bt(e,1,t):[]}function zp(e,t,s){return e&&e.length?(t=s||t===r?1:Y(t),bt(e,0,t<0?0:t)):[]}function Kp(e,t,s){var o=e==null?0:e.length;return o?(t=s||t===r?1:Y(t),t=o-t,bt(e,t<0?0:t,o)):[]}function Yp(e,t){return e&&e.length?hs(e,W(t,3),!1,!0):[]}function Xp(e,t){return e&&e.length?hs(e,W(t,3)):[]}var Zp=Z(function(e){return Rn(He(e,1,Ae,!0))}),Jp=Z(function(e){var t=Pt(e);return Ae(t)&&(t=r),Rn(He(e,1,Ae,!0),W(t,2))}),jp=Z(function(e){var t=Pt(e);return t=typeof t=="function"?t:r,Rn(He(e,1,Ae,!0),r,t)});function e_(e){return e&&e.length?Rn(e):[]}function t_(e,t){return e&&e.length?Rn(e,W(t,2)):[]}function n_(e,t){return t=typeof t=="function"?t:r,e&&e.length?Rn(e,r,t):[]}function no(e){if(!(e&&e.length))return[];var t=0;return e=En(e,function(s){if(Ae(s))return t=Le(s.length,t),!0}),Sa(t,function(s){return _e(e,_a(s))})}function Kl(e,t){if(!(e&&e.length))return[];var s=no(e);return t==null?s:_e(s,function(o){return ft(t,r,o)})}var r_=Z(function(e,t){return Ae(e)?di(e,t):[]}),i_=Z(function(e){return Wa(En(e,Ae))}),s_=Z(function(e){var t=Pt(e);return Ae(t)&&(t=r),Wa(En(e,Ae),W(t,2))}),a_=Z(function(e){var t=Pt(e);return t=typeof t=="function"?t:r,Wa(En(e,Ae),r,t)}),o_=Z(no);function u_(e,t){return hl(e||[],t||[],gi)}function l_(e,t){return hl(e||[],t||[],vi)}var c_=Z(function(e){var t=e.length,s=t>1?e[t-1]:r;return s=typeof s=="function"?(e.pop(),s):r,Kl(e,s)});function Yl(e){var t=g(e);return t.__chain__=!0,t}function f_(e,t){return t(e),e}function Es(e,t){return t(e)}var h_=hn(function(e){var t=e.length,s=t?e[0]:0,o=this.__wrapped__,f=function(d){return ba(d,e)};return t>1||this.__actions__.length||!(o instanceof te)||!gn(s)?this.thru(f):(o=o.slice(s,+s+(t?1:0)),o.__actions__.push({func:Es,args:[f],thisArg:r}),new At(o,this.__chain__).thru(function(d){return t&&!d.length&&d.push(r),d}))});function g_(){return Yl(this)}function d_(){return new At(this.value(),this.__chain__)}function p_(){this.__values__===r&&(this.__values__=lc(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function __(){return this}function v_(e){for(var t,s=this;s instanceof as;){var o=Vl(s);o.__index__=0,o.__values__=r,t?f.__wrapped__=o:t=o;var f=o;s=s.__wrapped__}return f.__wrapped__=e,t}function m_(){var e=this.__wrapped__;if(e instanceof te){var t=e;return this.__actions__.length&&(t=new te(this)),t=t.reverse(),t.__actions__.push({func:Es,args:[to],thisArg:r}),new At(t,this.__chain__)}return this.thru(to)}function S_(){return fl(this.__wrapped__,this.__actions__)}var w_=gs(function(e,t,s){oe.call(e,s)?++e[s]:cn(e,s,1)});function E_(e,t,s){var o=K(e)?yu:fd;return s&&je(e,t,s)&&(t=r),o(e,W(t,3))}function C_(e,t){var s=K(e)?En:Ku;return s(e,W(t,3))}var T_=Cl(Bl),y_=Cl(Gl);function A_(e,t){return He(Cs(e,t),1)}function R_(e,t){return He(Cs(e,t),x)}function b_(e,t,s){return s=s===r?1:Y(s),He(Cs(e,t),s)}function Xl(e,t){var s=K(e)?Tt:An;return s(e,W(t,3))}function Zl(e,t){var s=K(e)?qh:zu;return s(e,W(t,3))}var P_=gs(function(e,t,s){oe.call(e,s)?e[s].push(t):cn(e,s,[t])});function I_(e,t,s,o){e=st(e)?e:Rr(e),s=s&&!o?Y(s):0;var f=e.length;return s<0&&(s=Le(f+s,0)),bs(e)?s<=f&&e.indexOf(t,s)>-1:!!f&&dr(e,t,s)>-1}var x_=Z(function(e,t,s){var o=-1,f=typeof t=="function",d=st(e)?T(e.length):[];return An(e,function(_){d[++o]=f?ft(t,_,s):pi(_,t,s)}),d}),L_=gs(function(e,t,s){cn(e,s,t)});function Cs(e,t){var s=K(e)?_e:el;return s(e,W(t,3))}function $_(e,t,s,o){return e==null?[]:(K(t)||(t=t==null?[]:[t]),s=o?r:s,K(s)||(s=s==null?[]:[s]),il(e,t,s))}var N_=gs(function(e,t,s){e[s?0:1].push(t)},function(){return[[],[]]});function O_(e,t,s){var o=K(e)?da:Pu,f=arguments.length<3;return o(e,W(t,4),s,f,An)}function U_(e,t,s){var o=K(e)?zh:Pu,f=arguments.length<3;return o(e,W(t,4),s,f,zu)}function D_(e,t){var s=K(e)?En:Ku;return s(e,As(W(t,3)))}function M_(e){var t=K(e)?Bu:Id;return t(e)}function F_(e,t,s){(s?je(e,t,s):t===r)?t=1:t=Y(t);var o=K(e)?ad:xd;return o(e,t)}function k_(e){var t=K(e)?od:$d;return t(e)}function W_(e){if(e==null)return 0;if(st(e))return bs(e)?_r(e):e.length;var t=Ke(e);return t==Mt||t==Ft?e.size:Na(e).length}function H_(e,t,s){var o=K(e)?pa:Nd;return s&&je(e,t,s)&&(t=r),o(e,W(t,3))}var V_=Z(function(e,t){if(e==null)return[];var s=t.length;return s>1&&je(e,t[0],t[1])?t=[]:s>2&&je(t[0],t[1],t[2])&&(t=[t[0]]),il(e,He(t,1),[])}),Ts=Cg||function(){return We.Date.now()};function B_(e,t){if(typeof t!="function")throw new yt(c);return e=Y(e),function(){if(--e<1)return t.apply(this,arguments)}}function Jl(e,t,s){return t=s?r:t,t=e&&t==null?e.length:t,fn(e,Pe,r,r,r,r,t)}function jl(e,t){var s;if(typeof t!="function")throw new yt(c);return e=Y(e),function(){return--e>0&&(s=t.apply(this,arguments)),e<=1&&(t=r),s}}var ro=Z(function(e,t,s){var o=N;if(s.length){var f=Tn(s,yr(ro));o|=Ee}return fn(e,o,t,s,f)}),ec=Z(function(e,t,s){var o=N|G;if(s.length){var f=Tn(s,yr(ec));o|=Ee}return fn(t,o,e,s,f)});function tc(e,t,s){t=s?r:t;var o=fn(e,ce,r,r,r,r,r,t);return o.placeholder=tc.placeholder,o}function nc(e,t,s){t=s?r:t;var o=fn(e,Ge,r,r,r,r,r,t);return o.placeholder=nc.placeholder,o}function rc(e,t,s){var o,f,d,_,m,w,P=0,I=!1,L=!1,M=!0;if(typeof e!="function")throw new yt(c);t=It(t)||0,ve(s)&&(I=!!s.leading,L="maxWait"in s,d=L?Le(It(s.maxWait)||0,t):d,M="trailing"in s?!!s.trailing:M);function k(Re){var Vt=o,_n=f;return o=f=r,P=Re,_=e.apply(_n,Vt),_}function V(Re){return P=Re,m=wi(j,t),I?k(Re):_}function X(Re){var Vt=Re-w,_n=Re-P,Cc=t-Vt;return L?ze(Cc,d-_n):Cc}function B(Re){var Vt=Re-w,_n=Re-P;return w===r||Vt>=t||Vt<0||L&&_n>=d}function j(){var Re=Ts();if(B(Re))return ne(Re);m=wi(j,X(Re))}function ne(Re){return m=r,M&&o?k(Re):(o=f=r,_)}function pt(){m!==r&&gl(m),P=0,o=w=f=m=r}function et(){return m===r?_:ne(Ts())}function _t(){var Re=Ts(),Vt=B(Re);if(o=arguments,f=this,w=Re,Vt){if(m===r)return V(w);if(L)return gl(m),m=wi(j,t),k(w)}return m===r&&(m=wi(j,t)),_}return _t.cancel=pt,_t.flush=et,_t}var G_=Z(function(e,t){return qu(e,1,t)}),Q_=Z(function(e,t,s){return qu(e,It(t)||0,s)});function q_(e){return fn(e,Ie)}function ys(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new yt(c);var s=function(){var o=arguments,f=t?t.apply(this,o):o[0],d=s.cache;if(d.has(f))return d.get(f);var _=e.apply(this,o);return s.cache=d.set(f,_)||d,_};return s.cache=new(ys.Cache||ln),s}ys.Cache=ln;function As(e){if(typeof e!="function")throw new yt(c);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function z_(e){return jl(2,e)}var K_=Od(function(e,t){t=t.length==1&&K(t[0])?_e(t[0],ht(W())):_e(He(t,1),ht(W()));var s=t.length;return Z(function(o){for(var f=-1,d=ze(o.length,s);++f<d;)o[f]=t[f].call(this,o[f]);return ft(e,this,o)})}),io=Z(function(e,t){var s=Tn(t,yr(io));return fn(e,Ee,r,t,s)}),ic=Z(function(e,t){var s=Tn(t,yr(ic));return fn(e,Qe,r,t,s)}),Y_=hn(function(e,t){return fn(e,Fe,r,r,r,t)});function X_(e,t){if(typeof e!="function")throw new yt(c);return t=t===r?t:Y(t),Z(e,t)}function Z_(e,t){if(typeof e!="function")throw new yt(c);return t=t==null?0:Le(Y(t),0),Z(function(s){var o=s[t],f=Pn(s,0,t);return o&&Cn(f,o),ft(e,this,f)})}function J_(e,t,s){var o=!0,f=!0;if(typeof e!="function")throw new yt(c);return ve(s)&&(o="leading"in s?!!s.leading:o,f="trailing"in s?!!s.trailing:f),rc(e,t,{leading:o,maxWait:t,trailing:f})}function j_(e){return Jl(e,1)}function ev(e,t){return io(Va(t),e)}function tv(){if(!arguments.length)return[];var e=arguments[0];return K(e)?e:[e]}function nv(e){return Rt(e,y)}function rv(e,t){return t=typeof t=="function"?t:r,Rt(e,y,t)}function iv(e){return Rt(e,C|y)}function sv(e,t){return t=typeof t=="function"?t:r,Rt(e,C|y,t)}function av(e,t){return t==null||Qu(e,t,Ue(t))}function Ht(e,t){return e===t||e!==e&&t!==t}var ov=vs(xa),uv=vs(function(e,t){return e>=t}),Zn=Zu((function(){return arguments})())?Zu:function(e){return Se(e)&&oe.call(e,"callee")&&!Mu.call(e,"callee")},K=T.isArray,lv=mu?ht(mu):vd;function st(e){return e!=null&&Rs(e.length)&&!dn(e)}function Ae(e){return Se(e)&&st(e)}function cv(e){return e===!0||e===!1||Se(e)&&Je(e)==ei}var In=yg||_o,fv=Su?ht(Su):md;function hv(e){return Se(e)&&e.nodeType===1&&!Ei(e)}function gv(e){if(e==null)return!0;if(st(e)&&(K(e)||typeof e=="string"||typeof e.splice=="function"||In(e)||Ar(e)||Zn(e)))return!e.length;var t=Ke(e);if(t==Mt||t==Ft)return!e.size;if(Si(e))return!Na(e).length;for(var s in e)if(oe.call(e,s))return!1;return!0}function dv(e,t){return _i(e,t)}function pv(e,t,s){s=typeof s=="function"?s:r;var o=s?s(e,t):r;return o===r?_i(e,t,r,s):!!o}function so(e){if(!Se(e))return!1;var t=Je(e);return t==Fi||t==Ff||typeof e.message=="string"&&typeof e.name=="string"&&!Ei(e)}function _v(e){return typeof e=="number"&&ku(e)}function dn(e){if(!ve(e))return!1;var t=Je(e);return t==ki||t==qo||t==jr||t==Wf}function sc(e){return typeof e=="number"&&e==Y(e)}function Rs(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qe}function ve(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Se(e){return e!=null&&typeof e=="object"}var ac=wu?ht(wu):wd;function vv(e,t){return e===t||$a(e,t,Ya(t))}function mv(e,t,s){return s=typeof s=="function"?s:r,$a(e,t,Ya(t),s)}function Sv(e){return oc(e)&&e!=+e}function wv(e){if(rp(e))throw new q(l);return Ju(e)}function Ev(e){return e===null}function Cv(e){return e==null}function oc(e){return typeof e=="number"||Se(e)&&Je(e)==ni}function Ei(e){if(!Se(e)||Je(e)!=on)return!1;var t=ji(e);if(t===null)return!0;var s=oe.call(t,"constructor")&&t.constructor;return typeof s=="function"&&s instanceof s&&Yi.call(s)==mg}var ao=Eu?ht(Eu):Ed;function Tv(e){return sc(e)&&e>=-qe&&e<=qe}var uc=Cu?ht(Cu):Cd;function bs(e){return typeof e=="string"||!K(e)&&Se(e)&&Je(e)==ii}function dt(e){return typeof e=="symbol"||Se(e)&&Je(e)==Wi}var Ar=Tu?ht(Tu):Td;function yv(e){return e===r}function Av(e){return Se(e)&&Ke(e)==si}function Rv(e){return Se(e)&&Je(e)==Vf}var bv=vs(Oa),Pv=vs(function(e,t){return e<=t});function lc(e){if(!e)return[];if(st(e))return bs(e)?kt(e):it(e);if(ui&&e[ui])return ag(e[ui]());var t=Ke(e),s=t==Mt?Ea:t==Ft?qi:Rr;return s(e)}function pn(e){if(!e)return e===0?e:0;if(e=It(e),e===x||e===-x){var t=e<0?-1:1;return t*ie}return e===e?e:0}function Y(e){var t=pn(e),s=t%1;return t===t?s?t-s:t:0}function cc(e){return e?zn(Y(e),0,ke):0}function It(e){if(typeof e=="number")return e;if(dt(e))return ye;if(ve(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ve(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Iu(e);var s=lh.test(e);return s||fh.test(e)?Bh(e.slice(2),s?2:8):uh.test(e)?ye:+e}function fc(e){return Zt(e,at(e))}function Iv(e){return e?zn(Y(e),-qe,qe):e===0?e:0}function ue(e){return e==null?"":gt(e)}var xv=Cr(function(e,t){if(Si(t)||st(t)){Zt(t,Ue(t),e);return}for(var s in t)oe.call(t,s)&&gi(e,s,t[s])}),hc=Cr(function(e,t){Zt(t,at(t),e)}),Ps=Cr(function(e,t,s,o){Zt(t,at(t),e,o)}),Lv=Cr(function(e,t,s,o){Zt(t,Ue(t),e,o)}),$v=hn(ba);function Nv(e,t){var s=Er(e);return t==null?s:Gu(s,t)}var Ov=Z(function(e,t){e=ge(e);var s=-1,o=t.length,f=o>2?t[2]:r;for(f&&je(t[0],t[1],f)&&(o=1);++s<o;)for(var d=t[s],_=at(d),m=-1,w=_.length;++m<w;){var P=_[m],I=e[P];(I===r||Ht(I,mr[P])&&!oe.call(e,P))&&(e[P]=d[P])}return e}),Uv=Z(function(e){return e.push(r,Il),ft(gc,r,e)});function Dv(e,t){return Au(e,W(t,3),Xt)}function Mv(e,t){return Au(e,W(t,3),Ia)}function Fv(e,t){return e==null?e:Pa(e,W(t,3),at)}function kv(e,t){return e==null?e:Yu(e,W(t,3),at)}function Wv(e,t){return e&&Xt(e,W(t,3))}function Hv(e,t){return e&&Ia(e,W(t,3))}function Vv(e){return e==null?[]:ls(e,Ue(e))}function Bv(e){return e==null?[]:ls(e,at(e))}function oo(e,t,s){var o=e==null?r:Kn(e,t);return o===r?s:o}function Gv(e,t){return e!=null&&$l(e,t,gd)}function uo(e,t){return e!=null&&$l(e,t,dd)}var Qv=yl(function(e,t,s){t!=null&&typeof t.toString!="function"&&(t=Xi.call(t)),e[t]=s},co(ot)),qv=yl(function(e,t,s){t!=null&&typeof t.toString!="function"&&(t=Xi.call(t)),oe.call(e,t)?e[t].push(s):e[t]=[s]},W),zv=Z(pi);function Ue(e){return st(e)?Vu(e):Na(e)}function at(e){return st(e)?Vu(e,!0):yd(e)}function Kv(e,t){var s={};return t=W(t,3),Xt(e,function(o,f,d){cn(s,t(o,f,d),o)}),s}function Yv(e,t){var s={};return t=W(t,3),Xt(e,function(o,f,d){cn(s,f,t(o,f,d))}),s}var Xv=Cr(function(e,t,s){cs(e,t,s)}),gc=Cr(function(e,t,s,o){cs(e,t,s,o)}),Zv=hn(function(e,t){var s={};if(e==null)return s;var o=!1;t=_e(t,function(d){return d=bn(d,e),o||(o=d.length>1),d}),Zt(e,za(e),s),o&&(s=Rt(s,C|E|y,Qd));for(var f=t.length;f--;)ka(s,t[f]);return s});function Jv(e,t){return dc(e,As(W(t)))}var jv=hn(function(e,t){return e==null?{}:Rd(e,t)});function dc(e,t){if(e==null)return{};var s=_e(za(e),function(o){return[o]});return t=W(t),sl(e,s,function(o,f){return t(o,f[0])})}function em(e,t,s){t=bn(t,e);var o=-1,f=t.length;for(f||(f=1,e=r);++o<f;){var d=e==null?r:e[Jt(t[o])];d===r&&(o=f,d=s),e=dn(d)?d.call(e):d}return e}function tm(e,t,s){return e==null?e:vi(e,t,s)}function nm(e,t,s,o){return o=typeof o=="function"?o:r,e==null?e:vi(e,t,s,o)}var pc=bl(Ue),_c=bl(at);function rm(e,t,s){var o=K(e),f=o||In(e)||Ar(e);if(t=W(t,4),s==null){var d=e&&e.constructor;f?s=o?new d:[]:ve(e)?s=dn(d)?Er(ji(e)):{}:s={}}return(f?Tt:Xt)(e,function(_,m,w){return t(s,_,m,w)}),s}function im(e,t){return e==null?!0:ka(e,t)}function sm(e,t,s){return e==null?e:cl(e,t,Va(s))}function am(e,t,s,o){return o=typeof o=="function"?o:r,e==null?e:cl(e,t,Va(s),o)}function Rr(e){return e==null?[]:wa(e,Ue(e))}function om(e){return e==null?[]:wa(e,at(e))}function um(e,t,s){return s===r&&(s=t,t=r),s!==r&&(s=It(s),s=s===s?s:0),t!==r&&(t=It(t),t=t===t?t:0),zn(It(e),t,s)}function lm(e,t,s){return t=pn(t),s===r?(s=t,t=0):s=pn(s),e=It(e),pd(e,t,s)}function cm(e,t,s){if(s&&typeof s!="boolean"&&je(e,t,s)&&(t=s=r),s===r&&(typeof t=="boolean"?(s=t,t=r):typeof e=="boolean"&&(s=e,e=r)),e===r&&t===r?(e=0,t=1):(e=pn(e),t===r?(t=e,e=0):t=pn(t)),e>t){var o=e;e=t,t=o}if(s||e%1||t%1){var f=Wu();return ze(e+f*(t-e+Vh("1e-"+((f+"").length-1))),t)}return Da(e,t)}var fm=Tr(function(e,t,s){return t=t.toLowerCase(),e+(s?vc(t):t)});function vc(e){return lo(ue(e).toLowerCase())}function mc(e){return e=ue(e),e&&e.replace(gh,tg).replace($h,"")}function hm(e,t,s){e=ue(e),t=gt(t);var o=e.length;s=s===r?o:zn(Y(s),0,o);var f=s;return s-=t.length,s>=0&&e.slice(s,f)==t}function gm(e){return e=ue(e),e&&zf.test(e)?e.replace(Yo,ng):e}function dm(e){return e=ue(e),e&&jf.test(e)?e.replace(ia,"\\$&"):e}var pm=Tr(function(e,t,s){return e+(s?"-":"")+t.toLowerCase()}),_m=Tr(function(e,t,s){return e+(s?" ":"")+t.toLowerCase()}),vm=El("toLowerCase");function mm(e,t,s){e=ue(e),t=Y(t);var o=t?_r(e):0;if(!t||o>=t)return e;var f=(t-o)/2;return _s(rs(f),s)+e+_s(ns(f),s)}function Sm(e,t,s){e=ue(e),t=Y(t);var o=t?_r(e):0;return t&&o<t?e+_s(t-o,s):e}function wm(e,t,s){e=ue(e),t=Y(t);var o=t?_r(e):0;return t&&o<t?_s(t-o,s)+e:e}function Em(e,t,s){return s||t==null?t=0:t&&(t=+t),Pg(ue(e).replace(sa,""),t||0)}function Cm(e,t,s){return(s?je(e,t,s):t===r)?t=1:t=Y(t),Ma(ue(e),t)}function Tm(){var e=arguments,t=ue(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ym=Tr(function(e,t,s){return e+(s?"_":"")+t.toLowerCase()});function Am(e,t,s){return s&&typeof s!="number"&&je(e,t,s)&&(t=s=r),s=s===r?ke:s>>>0,s?(e=ue(e),e&&(typeof t=="string"||t!=null&&!ao(t))&&(t=gt(t),!t&&pr(e))?Pn(kt(e),0,s):e.split(t,s)):[]}var Rm=Tr(function(e,t,s){return e+(s?" ":"")+lo(t)});function bm(e,t,s){return e=ue(e),s=s==null?0:zn(Y(s),0,e.length),t=gt(t),e.slice(s,s+t.length)==t}function Pm(e,t,s){var o=g.templateSettings;s&&je(e,t,s)&&(t=r),e=ue(e),t=Ps({},t,o,Pl);var f=Ps({},t.imports,o.imports,Pl),d=Ue(f),_=wa(f,d),m,w,P=0,I=t.interpolate||Hi,L="__p += '",M=Ca((t.escape||Hi).source+"|"+I.source+"|"+(I===Xo?oh:Hi).source+"|"+(t.evaluate||Hi).source+"|$","g"),k="//# sourceURL="+(oe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Mh+"]")+`
|
|
11
|
-
`;e.replace(M,function(
|
|
10
|
+
`)}function ep(e){return K(e)||Zn(e)||!!(Fu&&e&&e[Fu])}function gn(e,t){var s=typeof e;return t=t??qe,!!t&&(s=="number"||s!="symbol"&&hh.test(e))&&e>-1&&e%1==0&&e<t}function je(e,t,s){if(!ve(s))return!1;var o=typeof t;return(o=="number"?st(s)&&gn(t,s.length):o=="string"&&t in s)?Ht(s[t],e):!1}function Za(e,t){if(K(e))return!1;var s=typeof e;return s=="number"||s=="symbol"||s=="boolean"||e==null||dt(e)?!0:Zf.test(e)||!Xf.test(e)||t!=null&&e in ge(t)}function tp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ja(e){var t=ms(e),s=g[t];if(typeof s!="function"||!(t in te.prototype))return!1;if(e===s)return!0;var o=Ka(s);return!!o&&e===o[0]}function np(e){return!!Nu&&Nu in e}var rp=Ki?dn:_o;function Si(e){var t=e&&e.constructor,s=typeof t=="function"&&t.prototype||mr;return e===s}function Nl(e){return e===e&&!ve(e)}function Ul(e,t){return function(s){return s==null?!1:s[e]===t&&(t!==r||e in ge(s))}}function ip(e){var t=ys(e,function(o){return s.size===v&&s.clear(),o}),s=t.cache;return t}function sp(e,t){var s=e[1],o=t[1],f=s|o,d=f<(N|V|Pe),_=o==Pe&&s==ce||o==Pe&&s==Fe&&e[7].length<=t[8]||o==(Pe|Fe)&&t[7].length<=t[8]&&s==ce;if(!(d||_))return e;o&N&&(e[2]=t[2],f|=s&N?0:ae);var m=t[3];if(m){var w=e[3];e[3]=w?vl(w,m,t[4]):m,e[4]=w?Tn(e[3],R):t[4]}return m=t[5],m&&(w=e[5],e[5]=w?ml(w,m,t[6]):m,e[6]=w?Tn(e[5],R):t[6]),m=t[7],m&&(e[7]=m),o&Pe&&(e[8]=e[8]==null?t[8]:ze(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=f,e}function ap(e){var t=[];if(e!=null)for(var s in ge(e))t.push(s);return t}function op(e){return Xi.call(e)}function Dl(e,t,s){return t=Le(t===r?e.length-1:t,0),function(){for(var o=arguments,f=-1,d=Le(o.length-t,0),_=y(d);++f<d;)_[f]=o[t+f];f=-1;for(var m=y(t+1);++f<t;)m[f]=o[f];return m[t]=s(_),ft(e,this,m)}}function Ml(e,t){return t.length<2?e:Kn(e,bt(t,0,-1))}function up(e,t){for(var s=e.length,o=ze(t.length,s),f=it(e);o--;){var d=t[o];e[o]=gn(d,s)?f[d]:r}return e}function ja(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Fl=Wl(ol),wi=Tg||function(e,t){return We.setTimeout(e,t)},eo=Wl(Ld);function kl(e,t,s){var o=t+"";return eo(e,jd(o,lp(Xd(o),s)))}function Wl(e){var t=0,s=0;return function(){var o=bg(),f=Dt-(o-s);if(s=o,f>0){if(++t>=U)return arguments[0]}else t=0;return e.apply(r,arguments)}}function ws(e,t){var s=-1,o=e.length,f=o-1;for(t=t===r?o:t;++s<t;){var d=Da(s,f),_=e[d];e[d]=e[s],e[s]=_}return e.length=t,e}var Hl=ip(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Jf,function(s,o,f,d){t.push(f?d.replace(ah,"$1"):o||s)}),t});function Jt(e){if(typeof e=="string"||dt(e))return e;var t=e+"";return t=="0"&&1/e==-x?"-0":t}function Xn(e){if(e!=null){try{return Yi.call(e)}catch{}try{return e+""}catch{}}return""}function lp(e,t){return Tt(me,function(s){var o="_."+s[0];t&s[1]&&!Gi(e,o)&&e.push(o)}),e.sort()}function Vl(e){if(e instanceof te)return e.clone();var t=new At(e.__wrapped__,e.__chain__);return t.__actions__=it(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function cp(e,t,s){(s?je(e,t,s):t===r)?t=1:t=Le(Y(t),0);var o=e==null?0:e.length;if(!o||t<1)return[];for(var f=0,d=0,_=y(ns(o/t));f<o;)_[d++]=bt(e,f,f+=t);return _}function fp(e){for(var t=-1,s=e==null?0:e.length,o=0,f=[];++t<s;){var d=e[t];d&&(f[o++]=d)}return f}function hp(){var e=arguments.length;if(!e)return[];for(var t=y(e-1),s=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Cn(K(s)?it(s):[s],He(t,1))}var gp=Z(function(e,t){return Ae(e)?di(e,He(t,1,Ae,!0)):[]}),dp=Z(function(e,t){var s=Pt(t);return Ae(s)&&(s=r),Ae(e)?di(e,He(t,1,Ae,!0),B(s,2)):[]}),pp=Z(function(e,t){var s=Pt(t);return Ae(s)&&(s=r),Ae(e)?di(e,He(t,1,Ae,!0),r,s):[]});function _p(e,t,s){var o=e==null?0:e.length;return o?(t=s||t===r?1:Y(t),bt(e,t<0?0:t,o)):[]}function vp(e,t,s){var o=e==null?0:e.length;return o?(t=s||t===r?1:Y(t),t=o-t,bt(e,0,t<0?0:t)):[]}function mp(e,t){return e&&e.length?hs(e,B(t,3),!0,!0):[]}function Sp(e,t){return e&&e.length?hs(e,B(t,3),!0):[]}function wp(e,t,s,o){var f=e==null?0:e.length;return f?(s&&typeof s!="number"&&je(e,t,s)&&(s=0,o=f),hd(e,t,s,o)):[]}function Bl(e,t,s){var o=e==null?0:e.length;if(!o)return-1;var f=s==null?0:Y(s);return f<0&&(f=Le(o+f,0)),Qi(e,B(t,3),f)}function Gl(e,t,s){var o=e==null?0:e.length;if(!o)return-1;var f=o-1;return s!==r&&(f=Y(s),f=s<0?Le(o+f,0):ze(f,o-1)),Qi(e,B(t,3),f,!0)}function Ql(e){var t=e==null?0:e.length;return t?He(e,1):[]}function Ep(e){var t=e==null?0:e.length;return t?He(e,x):[]}function Cp(e,t){var s=e==null?0:e.length;return s?(t=t===r?1:Y(t),He(e,t)):[]}function Tp(e){for(var t=-1,s=e==null?0:e.length,o={};++t<s;){var f=e[t];o[f[0]]=f[1]}return o}function ql(e){return e&&e.length?e[0]:r}function yp(e,t,s){var o=e==null?0:e.length;if(!o)return-1;var f=s==null?0:Y(s);return f<0&&(f=Le(o+f,0)),dr(e,t,f)}function Ap(e){var t=e==null?0:e.length;return t?bt(e,0,-1):[]}var Rp=Z(function(e){var t=_e(e,Ha);return t.length&&t[0]===e[0]?La(t):[]}),bp=Z(function(e){var t=Pt(e),s=_e(e,Ha);return t===Pt(s)?t=r:s.pop(),s.length&&s[0]===e[0]?La(s,B(t,2)):[]}),Pp=Z(function(e){var t=Pt(e),s=_e(e,Ha);return t=typeof t=="function"?t:r,t&&s.pop(),s.length&&s[0]===e[0]?La(s,r,t):[]});function Ip(e,t){return e==null?"":Ag.call(e,t)}function Pt(e){var t=e==null?0:e.length;return t?e[t-1]:r}function xp(e,t,s){var o=e==null?0:e.length;if(!o)return-1;var f=o;return s!==r&&(f=Y(s),f=f<0?Le(o+f,0):ze(f,o-1)),t===t?lg(e,t,f):Qi(e,Ru,f,!0)}function Lp(e,t){return e&&e.length?rl(e,Y(t)):r}var $p=Z(zl);function zl(e,t){return e&&e.length&&t&&t.length?Ua(e,t):e}function Op(e,t,s){return e&&e.length&&t&&t.length?Ua(e,t,B(s,2)):e}function Np(e,t,s){return e&&e.length&&t&&t.length?Ua(e,t,r,s):e}var Up=hn(function(e,t){var s=e==null?0:e.length,o=ba(e,t);return al(e,_e(t,function(f){return gn(f,s)?+f:f}).sort(_l)),o});function Dp(e,t){var s=[];if(!(e&&e.length))return s;var o=-1,f=[],d=e.length;for(t=B(t,3);++o<d;){var _=e[o];t(_,o,e)&&(s.push(_),f.push(o))}return al(e,f),s}function to(e){return e==null?e:Ig.call(e)}function Mp(e,t,s){var o=e==null?0:e.length;return o?(s&&typeof s!="number"&&je(e,t,s)?(t=0,s=o):(t=t==null?0:Y(t),s=s===r?o:Y(s)),bt(e,t,s)):[]}function Fp(e,t){return fs(e,t)}function kp(e,t,s){return Fa(e,t,B(s,2))}function Wp(e,t){var s=e==null?0:e.length;if(s){var o=fs(e,t);if(o<s&&Ht(e[o],t))return o}return-1}function Hp(e,t){return fs(e,t,!0)}function Vp(e,t,s){return Fa(e,t,B(s,2),!0)}function Bp(e,t){var s=e==null?0:e.length;if(s){var o=fs(e,t,!0)-1;if(Ht(e[o],t))return o}return-1}function Gp(e){return e&&e.length?ul(e):[]}function Qp(e,t){return e&&e.length?ul(e,B(t,2)):[]}function qp(e){var t=e==null?0:e.length;return t?bt(e,1,t):[]}function zp(e,t,s){return e&&e.length?(t=s||t===r?1:Y(t),bt(e,0,t<0?0:t)):[]}function Kp(e,t,s){var o=e==null?0:e.length;return o?(t=s||t===r?1:Y(t),t=o-t,bt(e,t<0?0:t,o)):[]}function Yp(e,t){return e&&e.length?hs(e,B(t,3),!1,!0):[]}function Xp(e,t){return e&&e.length?hs(e,B(t,3)):[]}var Zp=Z(function(e){return Rn(He(e,1,Ae,!0))}),Jp=Z(function(e){var t=Pt(e);return Ae(t)&&(t=r),Rn(He(e,1,Ae,!0),B(t,2))}),jp=Z(function(e){var t=Pt(e);return t=typeof t=="function"?t:r,Rn(He(e,1,Ae,!0),r,t)});function e_(e){return e&&e.length?Rn(e):[]}function t_(e,t){return e&&e.length?Rn(e,B(t,2)):[]}function n_(e,t){return t=typeof t=="function"?t:r,e&&e.length?Rn(e,r,t):[]}function no(e){if(!(e&&e.length))return[];var t=0;return e=En(e,function(s){if(Ae(s))return t=Le(s.length,t),!0}),Sa(t,function(s){return _e(e,_a(s))})}function Kl(e,t){if(!(e&&e.length))return[];var s=no(e);return t==null?s:_e(s,function(o){return ft(t,r,o)})}var r_=Z(function(e,t){return Ae(e)?di(e,t):[]}),i_=Z(function(e){return Wa(En(e,Ae))}),s_=Z(function(e){var t=Pt(e);return Ae(t)&&(t=r),Wa(En(e,Ae),B(t,2))}),a_=Z(function(e){var t=Pt(e);return t=typeof t=="function"?t:r,Wa(En(e,Ae),r,t)}),o_=Z(no);function u_(e,t){return hl(e||[],t||[],gi)}function l_(e,t){return hl(e||[],t||[],vi)}var c_=Z(function(e){var t=e.length,s=t>1?e[t-1]:r;return s=typeof s=="function"?(e.pop(),s):r,Kl(e,s)});function Yl(e){var t=g(e);return t.__chain__=!0,t}function f_(e,t){return t(e),e}function Es(e,t){return t(e)}var h_=hn(function(e){var t=e.length,s=t?e[0]:0,o=this.__wrapped__,f=function(d){return ba(d,e)};return t>1||this.__actions__.length||!(o instanceof te)||!gn(s)?this.thru(f):(o=o.slice(s,+s+(t?1:0)),o.__actions__.push({func:Es,args:[f],thisArg:r}),new At(o,this.__chain__).thru(function(d){return t&&!d.length&&d.push(r),d}))});function g_(){return Yl(this)}function d_(){return new At(this.value(),this.__chain__)}function p_(){this.__values__===r&&(this.__values__=lc(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function __(){return this}function v_(e){for(var t,s=this;s instanceof as;){var o=Vl(s);o.__index__=0,o.__values__=r,t?f.__wrapped__=o:t=o;var f=o;s=s.__wrapped__}return f.__wrapped__=e,t}function m_(){var e=this.__wrapped__;if(e instanceof te){var t=e;return this.__actions__.length&&(t=new te(this)),t=t.reverse(),t.__actions__.push({func:Es,args:[to],thisArg:r}),new At(t,this.__chain__)}return this.thru(to)}function S_(){return fl(this.__wrapped__,this.__actions__)}var w_=gs(function(e,t,s){oe.call(e,s)?++e[s]:cn(e,s,1)});function E_(e,t,s){var o=K(e)?yu:fd;return s&&je(e,t,s)&&(t=r),o(e,B(t,3))}function C_(e,t){var s=K(e)?En:Ku;return s(e,B(t,3))}var T_=Cl(Bl),y_=Cl(Gl);function A_(e,t){return He(Cs(e,t),1)}function R_(e,t){return He(Cs(e,t),x)}function b_(e,t,s){return s=s===r?1:Y(s),He(Cs(e,t),s)}function Xl(e,t){var s=K(e)?Tt:An;return s(e,B(t,3))}function Zl(e,t){var s=K(e)?qh:zu;return s(e,B(t,3))}var P_=gs(function(e,t,s){oe.call(e,s)?e[s].push(t):cn(e,s,[t])});function I_(e,t,s,o){e=st(e)?e:Rr(e),s=s&&!o?Y(s):0;var f=e.length;return s<0&&(s=Le(f+s,0)),bs(e)?s<=f&&e.indexOf(t,s)>-1:!!f&&dr(e,t,s)>-1}var x_=Z(function(e,t,s){var o=-1,f=typeof t=="function",d=st(e)?y(e.length):[];return An(e,function(_){d[++o]=f?ft(t,_,s):pi(_,t,s)}),d}),L_=gs(function(e,t,s){cn(e,s,t)});function Cs(e,t){var s=K(e)?_e:el;return s(e,B(t,3))}function $_(e,t,s,o){return e==null?[]:(K(t)||(t=t==null?[]:[t]),s=o?r:s,K(s)||(s=s==null?[]:[s]),il(e,t,s))}var O_=gs(function(e,t,s){e[s?0:1].push(t)},function(){return[[],[]]});function N_(e,t,s){var o=K(e)?da:Pu,f=arguments.length<3;return o(e,B(t,4),s,f,An)}function U_(e,t,s){var o=K(e)?zh:Pu,f=arguments.length<3;return o(e,B(t,4),s,f,zu)}function D_(e,t){var s=K(e)?En:Ku;return s(e,As(B(t,3)))}function M_(e){var t=K(e)?Bu:Id;return t(e)}function F_(e,t,s){(s?je(e,t,s):t===r)?t=1:t=Y(t);var o=K(e)?ad:xd;return o(e,t)}function k_(e){var t=K(e)?od:$d;return t(e)}function W_(e){if(e==null)return 0;if(st(e))return bs(e)?_r(e):e.length;var t=Ke(e);return t==Mt||t==Ft?e.size:Oa(e).length}function H_(e,t,s){var o=K(e)?pa:Od;return s&&je(e,t,s)&&(t=r),o(e,B(t,3))}var V_=Z(function(e,t){if(e==null)return[];var s=t.length;return s>1&&je(e,t[0],t[1])?t=[]:s>2&&je(t[0],t[1],t[2])&&(t=[t[0]]),il(e,He(t,1),[])}),Ts=Cg||function(){return We.Date.now()};function B_(e,t){if(typeof t!="function")throw new yt(c);return e=Y(e),function(){if(--e<1)return t.apply(this,arguments)}}function Jl(e,t,s){return t=s?r:t,t=e&&t==null?e.length:t,fn(e,Pe,r,r,r,r,t)}function jl(e,t){var s;if(typeof t!="function")throw new yt(c);return e=Y(e),function(){return--e>0&&(s=t.apply(this,arguments)),e<=1&&(t=r),s}}var ro=Z(function(e,t,s){var o=N;if(s.length){var f=Tn(s,yr(ro));o|=Ee}return fn(e,o,t,s,f)}),ec=Z(function(e,t,s){var o=N|V;if(s.length){var f=Tn(s,yr(ec));o|=Ee}return fn(t,o,e,s,f)});function tc(e,t,s){t=s?r:t;var o=fn(e,ce,r,r,r,r,r,t);return o.placeholder=tc.placeholder,o}function nc(e,t,s){t=s?r:t;var o=fn(e,Ge,r,r,r,r,r,t);return o.placeholder=nc.placeholder,o}function rc(e,t,s){var o,f,d,_,m,w,P=0,I=!1,L=!1,M=!0;if(typeof e!="function")throw new yt(c);t=It(t)||0,ve(s)&&(I=!!s.leading,L="maxWait"in s,d=L?Le(It(s.maxWait)||0,t):d,M="trailing"in s?!!s.trailing:M);function k(Re){var Vt=o,_n=f;return o=f=r,P=Re,_=e.apply(_n,Vt),_}function G(Re){return P=Re,m=wi(j,t),I?k(Re):_}function X(Re){var Vt=Re-w,_n=Re-P,Cc=t-Vt;return L?ze(Cc,d-_n):Cc}function Q(Re){var Vt=Re-w,_n=Re-P;return w===r||Vt>=t||Vt<0||L&&_n>=d}function j(){var Re=Ts();if(Q(Re))return ne(Re);m=wi(j,X(Re))}function ne(Re){return m=r,M&&o?k(Re):(o=f=r,_)}function pt(){m!==r&&gl(m),P=0,o=w=f=m=r}function et(){return m===r?_:ne(Ts())}function _t(){var Re=Ts(),Vt=Q(Re);if(o=arguments,f=this,w=Re,Vt){if(m===r)return G(w);if(L)return gl(m),m=wi(j,t),k(w)}return m===r&&(m=wi(j,t)),_}return _t.cancel=pt,_t.flush=et,_t}var G_=Z(function(e,t){return qu(e,1,t)}),Q_=Z(function(e,t,s){return qu(e,It(t)||0,s)});function q_(e){return fn(e,Ie)}function ys(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new yt(c);var s=function(){var o=arguments,f=t?t.apply(this,o):o[0],d=s.cache;if(d.has(f))return d.get(f);var _=e.apply(this,o);return s.cache=d.set(f,_)||d,_};return s.cache=new(ys.Cache||ln),s}ys.Cache=ln;function As(e){if(typeof e!="function")throw new yt(c);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function z_(e){return jl(2,e)}var K_=Nd(function(e,t){t=t.length==1&&K(t[0])?_e(t[0],ht(B())):_e(He(t,1),ht(B()));var s=t.length;return Z(function(o){for(var f=-1,d=ze(o.length,s);++f<d;)o[f]=t[f].call(this,o[f]);return ft(e,this,o)})}),io=Z(function(e,t){var s=Tn(t,yr(io));return fn(e,Ee,r,t,s)}),ic=Z(function(e,t){var s=Tn(t,yr(ic));return fn(e,Qe,r,t,s)}),Y_=hn(function(e,t){return fn(e,Fe,r,r,r,t)});function X_(e,t){if(typeof e!="function")throw new yt(c);return t=t===r?t:Y(t),Z(e,t)}function Z_(e,t){if(typeof e!="function")throw new yt(c);return t=t==null?0:Le(Y(t),0),Z(function(s){var o=s[t],f=Pn(s,0,t);return o&&Cn(f,o),ft(e,this,f)})}function J_(e,t,s){var o=!0,f=!0;if(typeof e!="function")throw new yt(c);return ve(s)&&(o="leading"in s?!!s.leading:o,f="trailing"in s?!!s.trailing:f),rc(e,t,{leading:o,maxWait:t,trailing:f})}function j_(e){return Jl(e,1)}function ev(e,t){return io(Va(t),e)}function tv(){if(!arguments.length)return[];var e=arguments[0];return K(e)?e:[e]}function nv(e){return Rt(e,T)}function rv(e,t){return t=typeof t=="function"?t:r,Rt(e,T,t)}function iv(e){return Rt(e,C|T)}function sv(e,t){return t=typeof t=="function"?t:r,Rt(e,C|T,t)}function av(e,t){return t==null||Qu(e,t,Ue(t))}function Ht(e,t){return e===t||e!==e&&t!==t}var ov=vs(xa),uv=vs(function(e,t){return e>=t}),Zn=Zu((function(){return arguments})())?Zu:function(e){return Se(e)&&oe.call(e,"callee")&&!Mu.call(e,"callee")},K=y.isArray,lv=mu?ht(mu):vd;function st(e){return e!=null&&Rs(e.length)&&!dn(e)}function Ae(e){return Se(e)&&st(e)}function cv(e){return e===!0||e===!1||Se(e)&&Je(e)==ei}var In=yg||_o,fv=Su?ht(Su):md;function hv(e){return Se(e)&&e.nodeType===1&&!Ei(e)}function gv(e){if(e==null)return!0;if(st(e)&&(K(e)||typeof e=="string"||typeof e.splice=="function"||In(e)||Ar(e)||Zn(e)))return!e.length;var t=Ke(e);if(t==Mt||t==Ft)return!e.size;if(Si(e))return!Oa(e).length;for(var s in e)if(oe.call(e,s))return!1;return!0}function dv(e,t){return _i(e,t)}function pv(e,t,s){s=typeof s=="function"?s:r;var o=s?s(e,t):r;return o===r?_i(e,t,r,s):!!o}function so(e){if(!Se(e))return!1;var t=Je(e);return t==Fi||t==Ff||typeof e.message=="string"&&typeof e.name=="string"&&!Ei(e)}function _v(e){return typeof e=="number"&&ku(e)}function dn(e){if(!ve(e))return!1;var t=Je(e);return t==ki||t==qo||t==jr||t==Wf}function sc(e){return typeof e=="number"&&e==Y(e)}function Rs(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qe}function ve(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Se(e){return e!=null&&typeof e=="object"}var ac=wu?ht(wu):wd;function vv(e,t){return e===t||$a(e,t,Ya(t))}function mv(e,t,s){return s=typeof s=="function"?s:r,$a(e,t,Ya(t),s)}function Sv(e){return oc(e)&&e!=+e}function wv(e){if(rp(e))throw new q(l);return Ju(e)}function Ev(e){return e===null}function Cv(e){return e==null}function oc(e){return typeof e=="number"||Se(e)&&Je(e)==ni}function Ei(e){if(!Se(e)||Je(e)!=on)return!1;var t=ji(e);if(t===null)return!0;var s=oe.call(t,"constructor")&&t.constructor;return typeof s=="function"&&s instanceof s&&Yi.call(s)==mg}var ao=Eu?ht(Eu):Ed;function Tv(e){return sc(e)&&e>=-qe&&e<=qe}var uc=Cu?ht(Cu):Cd;function bs(e){return typeof e=="string"||!K(e)&&Se(e)&&Je(e)==ii}function dt(e){return typeof e=="symbol"||Se(e)&&Je(e)==Wi}var Ar=Tu?ht(Tu):Td;function yv(e){return e===r}function Av(e){return Se(e)&&Ke(e)==si}function Rv(e){return Se(e)&&Je(e)==Vf}var bv=vs(Na),Pv=vs(function(e,t){return e<=t});function lc(e){if(!e)return[];if(st(e))return bs(e)?kt(e):it(e);if(ui&&e[ui])return ag(e[ui]());var t=Ke(e),s=t==Mt?Ea:t==Ft?qi:Rr;return s(e)}function pn(e){if(!e)return e===0?e:0;if(e=It(e),e===x||e===-x){var t=e<0?-1:1;return t*ie}return e===e?e:0}function Y(e){var t=pn(e),s=t%1;return t===t?s?t-s:t:0}function cc(e){return e?zn(Y(e),0,ke):0}function It(e){if(typeof e=="number")return e;if(dt(e))return ye;if(ve(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ve(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Iu(e);var s=lh.test(e);return s||fh.test(e)?Bh(e.slice(2),s?2:8):uh.test(e)?ye:+e}function fc(e){return Zt(e,at(e))}function Iv(e){return e?zn(Y(e),-qe,qe):e===0?e:0}function ue(e){return e==null?"":gt(e)}var xv=Cr(function(e,t){if(Si(t)||st(t)){Zt(t,Ue(t),e);return}for(var s in t)oe.call(t,s)&&gi(e,s,t[s])}),hc=Cr(function(e,t){Zt(t,at(t),e)}),Ps=Cr(function(e,t,s,o){Zt(t,at(t),e,o)}),Lv=Cr(function(e,t,s,o){Zt(t,Ue(t),e,o)}),$v=hn(ba);function Ov(e,t){var s=Er(e);return t==null?s:Gu(s,t)}var Nv=Z(function(e,t){e=ge(e);var s=-1,o=t.length,f=o>2?t[2]:r;for(f&&je(t[0],t[1],f)&&(o=1);++s<o;)for(var d=t[s],_=at(d),m=-1,w=_.length;++m<w;){var P=_[m],I=e[P];(I===r||Ht(I,mr[P])&&!oe.call(e,P))&&(e[P]=d[P])}return e}),Uv=Z(function(e){return e.push(r,Il),ft(gc,r,e)});function Dv(e,t){return Au(e,B(t,3),Xt)}function Mv(e,t){return Au(e,B(t,3),Ia)}function Fv(e,t){return e==null?e:Pa(e,B(t,3),at)}function kv(e,t){return e==null?e:Yu(e,B(t,3),at)}function Wv(e,t){return e&&Xt(e,B(t,3))}function Hv(e,t){return e&&Ia(e,B(t,3))}function Vv(e){return e==null?[]:ls(e,Ue(e))}function Bv(e){return e==null?[]:ls(e,at(e))}function oo(e,t,s){var o=e==null?r:Kn(e,t);return o===r?s:o}function Gv(e,t){return e!=null&&$l(e,t,gd)}function uo(e,t){return e!=null&&$l(e,t,dd)}var Qv=yl(function(e,t,s){t!=null&&typeof t.toString!="function"&&(t=Xi.call(t)),e[t]=s},co(ot)),qv=yl(function(e,t,s){t!=null&&typeof t.toString!="function"&&(t=Xi.call(t)),oe.call(e,t)?e[t].push(s):e[t]=[s]},B),zv=Z(pi);function Ue(e){return st(e)?Vu(e):Oa(e)}function at(e){return st(e)?Vu(e,!0):yd(e)}function Kv(e,t){var s={};return t=B(t,3),Xt(e,function(o,f,d){cn(s,t(o,f,d),o)}),s}function Yv(e,t){var s={};return t=B(t,3),Xt(e,function(o,f,d){cn(s,f,t(o,f,d))}),s}var Xv=Cr(function(e,t,s){cs(e,t,s)}),gc=Cr(function(e,t,s,o){cs(e,t,s,o)}),Zv=hn(function(e,t){var s={};if(e==null)return s;var o=!1;t=_e(t,function(d){return d=bn(d,e),o||(o=d.length>1),d}),Zt(e,za(e),s),o&&(s=Rt(s,C|E|T,Qd));for(var f=t.length;f--;)ka(s,t[f]);return s});function Jv(e,t){return dc(e,As(B(t)))}var jv=hn(function(e,t){return e==null?{}:Rd(e,t)});function dc(e,t){if(e==null)return{};var s=_e(za(e),function(o){return[o]});return t=B(t),sl(e,s,function(o,f){return t(o,f[0])})}function em(e,t,s){t=bn(t,e);var o=-1,f=t.length;for(f||(f=1,e=r);++o<f;){var d=e==null?r:e[Jt(t[o])];d===r&&(o=f,d=s),e=dn(d)?d.call(e):d}return e}function tm(e,t,s){return e==null?e:vi(e,t,s)}function nm(e,t,s,o){return o=typeof o=="function"?o:r,e==null?e:vi(e,t,s,o)}var pc=bl(Ue),_c=bl(at);function rm(e,t,s){var o=K(e),f=o||In(e)||Ar(e);if(t=B(t,4),s==null){var d=e&&e.constructor;f?s=o?new d:[]:ve(e)?s=dn(d)?Er(ji(e)):{}:s={}}return(f?Tt:Xt)(e,function(_,m,w){return t(s,_,m,w)}),s}function im(e,t){return e==null?!0:ka(e,t)}function sm(e,t,s){return e==null?e:cl(e,t,Va(s))}function am(e,t,s,o){return o=typeof o=="function"?o:r,e==null?e:cl(e,t,Va(s),o)}function Rr(e){return e==null?[]:wa(e,Ue(e))}function om(e){return e==null?[]:wa(e,at(e))}function um(e,t,s){return s===r&&(s=t,t=r),s!==r&&(s=It(s),s=s===s?s:0),t!==r&&(t=It(t),t=t===t?t:0),zn(It(e),t,s)}function lm(e,t,s){return t=pn(t),s===r?(s=t,t=0):s=pn(s),e=It(e),pd(e,t,s)}function cm(e,t,s){if(s&&typeof s!="boolean"&&je(e,t,s)&&(t=s=r),s===r&&(typeof t=="boolean"?(s=t,t=r):typeof e=="boolean"&&(s=e,e=r)),e===r&&t===r?(e=0,t=1):(e=pn(e),t===r?(t=e,e=0):t=pn(t)),e>t){var o=e;e=t,t=o}if(s||e%1||t%1){var f=Wu();return ze(e+f*(t-e+Vh("1e-"+((f+"").length-1))),t)}return Da(e,t)}var fm=Tr(function(e,t,s){return t=t.toLowerCase(),e+(s?vc(t):t)});function vc(e){return lo(ue(e).toLowerCase())}function mc(e){return e=ue(e),e&&e.replace(gh,tg).replace($h,"")}function hm(e,t,s){e=ue(e),t=gt(t);var o=e.length;s=s===r?o:zn(Y(s),0,o);var f=s;return s-=t.length,s>=0&&e.slice(s,f)==t}function gm(e){return e=ue(e),e&&zf.test(e)?e.replace(Yo,ng):e}function dm(e){return e=ue(e),e&&jf.test(e)?e.replace(ia,"\\$&"):e}var pm=Tr(function(e,t,s){return e+(s?"-":"")+t.toLowerCase()}),_m=Tr(function(e,t,s){return e+(s?" ":"")+t.toLowerCase()}),vm=El("toLowerCase");function mm(e,t,s){e=ue(e),t=Y(t);var o=t?_r(e):0;if(!t||o>=t)return e;var f=(t-o)/2;return _s(rs(f),s)+e+_s(ns(f),s)}function Sm(e,t,s){e=ue(e),t=Y(t);var o=t?_r(e):0;return t&&o<t?e+_s(t-o,s):e}function wm(e,t,s){e=ue(e),t=Y(t);var o=t?_r(e):0;return t&&o<t?_s(t-o,s)+e:e}function Em(e,t,s){return s||t==null?t=0:t&&(t=+t),Pg(ue(e).replace(sa,""),t||0)}function Cm(e,t,s){return(s?je(e,t,s):t===r)?t=1:t=Y(t),Ma(ue(e),t)}function Tm(){var e=arguments,t=ue(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ym=Tr(function(e,t,s){return e+(s?"_":"")+t.toLowerCase()});function Am(e,t,s){return s&&typeof s!="number"&&je(e,t,s)&&(t=s=r),s=s===r?ke:s>>>0,s?(e=ue(e),e&&(typeof t=="string"||t!=null&&!ao(t))&&(t=gt(t),!t&&pr(e))?Pn(kt(e),0,s):e.split(t,s)):[]}var Rm=Tr(function(e,t,s){return e+(s?" ":"")+lo(t)});function bm(e,t,s){return e=ue(e),s=s==null?0:zn(Y(s),0,e.length),t=gt(t),e.slice(s,s+t.length)==t}function Pm(e,t,s){var o=g.templateSettings;s&&je(e,t,s)&&(t=r),e=ue(e),t=Ps({},t,o,Pl);var f=Ps({},t.imports,o.imports,Pl),d=Ue(f),_=wa(f,d),m,w,P=0,I=t.interpolate||Hi,L="__p += '",M=Ca((t.escape||Hi).source+"|"+I.source+"|"+(I===Xo?oh:Hi).source+"|"+(t.evaluate||Hi).source+"|$","g"),k="//# sourceURL="+(oe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Mh+"]")+`
|
|
11
|
+
`;e.replace(M,function(Q,j,ne,pt,et,_t){return ne||(ne=pt),L+=e.slice(P,_t).replace(dh,rg),j&&(m=!0,L+=`' +
|
|
12
12
|
__e(`+j+`) +
|
|
13
13
|
'`),et&&(w=!0,L+=`';
|
|
14
14
|
`+et+`;
|
|
15
15
|
__p += '`),ne&&(L+=`' +
|
|
16
16
|
((__t = (`+ne+`)) == null ? '' : __t) +
|
|
17
|
-
'`),P=_t+
|
|
18
|
-
`;var
|
|
17
|
+
'`),P=_t+Q.length,Q}),L+=`';
|
|
18
|
+
`;var G=oe.call(t,"variable")&&t.variable;if(!G)L=`with (obj) {
|
|
19
19
|
`+L+`
|
|
20
20
|
}
|
|
21
|
-
`;else if(sh.test(
|
|
22
|
-
`+(
|
|
21
|
+
`;else if(sh.test(G))throw new q(h);L=(w?L.replace(Bf,""):L).replace(Gf,"$1").replace(Qf,"$1;"),L="function("+(G||"obj")+`) {
|
|
22
|
+
`+(G?"":`obj || (obj = {});
|
|
23
23
|
`)+"var __t, __p = ''"+(m?", __e = _.escape":"")+(w?`, __j = Array.prototype.join;
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
26
|
`)+L+`return __p
|
|
27
|
-
}`;var X=wc(function(){return se(d,k+"return "+L).apply(r,_)});if(X.source=L,so(X))throw X;return X}function Im(e){return ue(e).toLowerCase()}function xm(e){return ue(e).toUpperCase()}function Lm(e,t,s){if(e=ue(e),e&&(s||t===r))return Iu(e);if(!e||!(t=gt(t)))return e;var o=kt(e),f=kt(t),d=xu(o,f),_=Lu(o,f)+1;return Pn(o,d,_).join("")}function $m(e,t,s){if(e=ue(e),e&&(s||t===r))return e.slice(0,Nu(e)+1);if(!e||!(t=gt(t)))return e;var o=kt(e),f=Lu(o,kt(t))+1;return Pn(o,0,f).join("")}function Nm(e,t,s){if(e=ue(e),e&&(s||t===r))return e.replace(sa,"");if(!e||!(t=gt(t)))return e;var o=kt(e),f=xu(o,kt(t));return Pn(o,f).join("")}function Om(e,t){var s=Ce,o=Te;if(ve(t)){var f="separator"in t?t.separator:f;s="length"in t?Y(t.length):s,o="omission"in t?gt(t.omission):o}e=ue(e);var d=e.length;if(pr(e)){var _=kt(e);d=_.length}if(s>=d)return e;var m=s-_r(o);if(m<1)return o;var w=_?Pn(_,0,m).join(""):e.slice(0,m);if(f===r)return w+o;if(_&&(m+=w.length-m),ao(f)){if(e.slice(m).search(f)){var P,I=w;for(f.global||(f=Ca(f.source,ue(Zo.exec(f))+"g")),f.lastIndex=0;P=f.exec(I);)var L=P.index;w=w.slice(0,L===r?m:L)}}else if(e.indexOf(gt(f),m)!=m){var M=w.lastIndexOf(f);M>-1&&(w=w.slice(0,M))}return w+o}function Um(e){return e=ue(e),e&&qf.test(e)?e.replace(Ko,cg):e}var Dm=Tr(function(e,t,s){return e+(s?" ":"")+t.toUpperCase()}),lo=El("toUpperCase");function Sc(e,t,s){return e=ue(e),t=s?r:t,t===r?sg(e)?gg(e):Xh(e):e.match(t)||[]}var wc=Z(function(e,t){try{return ft(e,r,t)}catch(s){return so(s)?s:new q(s)}}),Mm=hn(function(e,t){return Tt(t,function(s){s=Jt(s),cn(e,s,ro(e[s],e))}),e});function Fm(e){var t=e==null?0:e.length,s=W();return e=t?_e(e,function(o){if(typeof o[1]!="function")throw new yt(c);return[s(o[0]),o[1]]}):[],Z(function(o){for(var f=-1;++f<t;){var d=e[f];if(ft(d[0],this,o))return ft(d[1],this,o)}})}function km(e){return cd(Rt(e,C))}function co(e){return function(){return e}}function Wm(e,t){return e==null||e!==e?t:e}var Hm=Tl(),Vm=Tl(!0);function ot(e){return e}function fo(e){return ju(typeof e=="function"?e:Rt(e,C))}function Bm(e){return tl(Rt(e,C))}function Gm(e,t){return nl(e,Rt(t,C))}var Qm=Z(function(e,t){return function(s){return pi(s,e,t)}}),qm=Z(function(e,t){return function(s){return pi(e,s,t)}});function ho(e,t,s){var o=Ue(t),f=ls(t,o);s==null&&!(ve(t)&&(f.length||!o.length))&&(s=t,t=e,e=this,f=ls(t,Ue(t)));var d=!(ve(s)&&"chain"in s)||!!s.chain,_=dn(e);return Tt(f,function(m){var w=t[m];e[m]=w,_&&(e.prototype[m]=function(){var P=this.__chain__;if(d||P){var I=e(this.__wrapped__),L=I.__actions__=it(this.__actions__);return L.push({func:w,args:arguments,thisArg:e}),I.__chain__=P,I}return w.apply(e,Cn([this.value()],arguments))})}),e}function zm(){return We._===this&&(We._=Sg),this}function go(){}function Km(e){return e=Y(e),Z(function(t){return rl(t,e)})}var Ym=Ga(_e),Xm=Ga(yu),Zm=Ga(pa);function Ec(e){return Za(e)?_a(Jt(e)):bd(e)}function Jm(e){return function(t){return e==null?r:Kn(e,t)}}var jm=Al(),eS=Al(!0);function po(){return[]}function _o(){return!1}function tS(){return{}}function nS(){return""}function rS(){return!0}function iS(e,t){if(e=Y(e),e<1||e>qe)return[];var s=ke,o=ze(e,ke);t=W(t),e-=ke;for(var f=Sa(o,t);++s<e;)t(s);return f}function sS(e){return K(e)?_e(e,Jt):dt(e)?[e]:it(Hl(ue(e)))}function aS(e){var t=++vg;return ue(e)+t}var oS=ps(function(e,t){return e+t},0),uS=Qa("ceil"),lS=ps(function(e,t){return e/t},1),cS=Qa("floor");function fS(e){return e&&e.length?us(e,ot,xa):r}function hS(e,t){return e&&e.length?us(e,W(t,2),xa):r}function gS(e){return bu(e,ot)}function dS(e,t){return bu(e,W(t,2))}function pS(e){return e&&e.length?us(e,ot,Oa):r}function _S(e,t){return e&&e.length?us(e,W(t,2),Oa):r}var vS=ps(function(e,t){return e*t},1),mS=Qa("round"),SS=ps(function(e,t){return e-t},0);function wS(e){return e&&e.length?ma(e,ot):0}function ES(e,t){return e&&e.length?ma(e,W(t,2)):0}return g.after=B_,g.ary=Jl,g.assign=xv,g.assignIn=hc,g.assignInWith=Ps,g.assignWith=Lv,g.at=$v,g.before=jl,g.bind=ro,g.bindAll=Mm,g.bindKey=ec,g.castArray=tv,g.chain=Yl,g.chunk=cp,g.compact=fp,g.concat=hp,g.cond=Fm,g.conforms=km,g.constant=co,g.countBy=w_,g.create=Nv,g.curry=tc,g.curryRight=nc,g.debounce=rc,g.defaults=Ov,g.defaultsDeep=Uv,g.defer=G_,g.delay=Q_,g.difference=gp,g.differenceBy=dp,g.differenceWith=pp,g.drop=_p,g.dropRight=vp,g.dropRightWhile=mp,g.dropWhile=Sp,g.fill=wp,g.filter=C_,g.flatMap=A_,g.flatMapDeep=R_,g.flatMapDepth=b_,g.flatten=Ql,g.flattenDeep=Ep,g.flattenDepth=Cp,g.flip=q_,g.flow=Hm,g.flowRight=Vm,g.fromPairs=Tp,g.functions=Vv,g.functionsIn=Bv,g.groupBy=P_,g.initial=Ap,g.intersection=Rp,g.intersectionBy=bp,g.intersectionWith=Pp,g.invert=Qv,g.invertBy=qv,g.invokeMap=x_,g.iteratee=fo,g.keyBy=L_,g.keys=Ue,g.keysIn=at,g.map=Cs,g.mapKeys=Kv,g.mapValues=Yv,g.matches=Bm,g.matchesProperty=Gm,g.memoize=ys,g.merge=Xv,g.mergeWith=gc,g.method=Qm,g.methodOf=qm,g.mixin=ho,g.negate=As,g.nthArg=Km,g.omit=Zv,g.omitBy=Jv,g.once=z_,g.orderBy=$_,g.over=Ym,g.overArgs=K_,g.overEvery=Xm,g.overSome=Zm,g.partial=io,g.partialRight=ic,g.partition=N_,g.pick=jv,g.pickBy=dc,g.property=Ec,g.propertyOf=Jm,g.pull=$p,g.pullAll=zl,g.pullAllBy=Np,g.pullAllWith=Op,g.pullAt=Up,g.range=jm,g.rangeRight=eS,g.rearg=Y_,g.reject=D_,g.remove=Dp,g.rest=X_,g.reverse=to,g.sampleSize=F_,g.set=tm,g.setWith=nm,g.shuffle=k_,g.slice=Mp,g.sortBy=V_,g.sortedUniq=Gp,g.sortedUniqBy=Qp,g.split=Am,g.spread=Z_,g.tail=qp,g.take=zp,g.takeRight=Kp,g.takeRightWhile=Yp,g.takeWhile=Xp,g.tap=f_,g.throttle=J_,g.thru=Es,g.toArray=lc,g.toPairs=pc,g.toPairsIn=_c,g.toPath=sS,g.toPlainObject=fc,g.transform=rm,g.unary=j_,g.union=Zp,g.unionBy=Jp,g.unionWith=jp,g.uniq=e_,g.uniqBy=t_,g.uniqWith=n_,g.unset=im,g.unzip=no,g.unzipWith=Kl,g.update=sm,g.updateWith=am,g.values=Rr,g.valuesIn=om,g.without=r_,g.words=Sc,g.wrap=ev,g.xor=i_,g.xorBy=s_,g.xorWith=a_,g.zip=o_,g.zipObject=u_,g.zipObjectDeep=l_,g.zipWith=c_,g.entries=pc,g.entriesIn=_c,g.extend=hc,g.extendWith=Ps,ho(g,g),g.add=oS,g.attempt=wc,g.camelCase=fm,g.capitalize=vc,g.ceil=uS,g.clamp=um,g.clone=nv,g.cloneDeep=iv,g.cloneDeepWith=sv,g.cloneWith=rv,g.conformsTo=av,g.deburr=mc,g.defaultTo=Wm,g.divide=lS,g.endsWith=hm,g.eq=Ht,g.escape=gm,g.escapeRegExp=dm,g.every=E_,g.find=T_,g.findIndex=Bl,g.findKey=Dv,g.findLast=y_,g.findLastIndex=Gl,g.findLastKey=Mv,g.floor=cS,g.forEach=Xl,g.forEachRight=Zl,g.forIn=Fv,g.forInRight=kv,g.forOwn=Wv,g.forOwnRight=Hv,g.get=oo,g.gt=ov,g.gte=uv,g.has=Gv,g.hasIn=uo,g.head=ql,g.identity=ot,g.includes=I_,g.indexOf=yp,g.inRange=lm,g.invoke=zv,g.isArguments=Zn,g.isArray=K,g.isArrayBuffer=lv,g.isArrayLike=st,g.isArrayLikeObject=Ae,g.isBoolean=cv,g.isBuffer=In,g.isDate=fv,g.isElement=hv,g.isEmpty=gv,g.isEqual=dv,g.isEqualWith=pv,g.isError=so,g.isFinite=_v,g.isFunction=dn,g.isInteger=sc,g.isLength=Rs,g.isMap=ac,g.isMatch=vv,g.isMatchWith=mv,g.isNaN=Sv,g.isNative=wv,g.isNil=Cv,g.isNull=Ev,g.isNumber=oc,g.isObject=ve,g.isObjectLike=Se,g.isPlainObject=Ei,g.isRegExp=ao,g.isSafeInteger=Tv,g.isSet=uc,g.isString=bs,g.isSymbol=dt,g.isTypedArray=Ar,g.isUndefined=yv,g.isWeakMap=Av,g.isWeakSet=Rv,g.join=Ip,g.kebabCase=pm,g.last=Pt,g.lastIndexOf=xp,g.lowerCase=_m,g.lowerFirst=vm,g.lt=bv,g.lte=Pv,g.max=fS,g.maxBy=hS,g.mean=gS,g.meanBy=dS,g.min=pS,g.minBy=_S,g.stubArray=po,g.stubFalse=_o,g.stubObject=tS,g.stubString=nS,g.stubTrue=rS,g.multiply=vS,g.nth=Lp,g.noConflict=zm,g.noop=go,g.now=Ts,g.pad=mm,g.padEnd=Sm,g.padStart=wm,g.parseInt=Em,g.random=cm,g.reduce=O_,g.reduceRight=U_,g.repeat=Cm,g.replace=Tm,g.result=em,g.round=mS,g.runInContext=S,g.sample=M_,g.size=W_,g.snakeCase=ym,g.some=H_,g.sortedIndex=Fp,g.sortedIndexBy=kp,g.sortedIndexOf=Wp,g.sortedLastIndex=Hp,g.sortedLastIndexBy=Vp,g.sortedLastIndexOf=Bp,g.startCase=Rm,g.startsWith=bm,g.subtract=SS,g.sum=wS,g.sumBy=ES,g.template=Pm,g.times=iS,g.toFinite=pn,g.toInteger=Y,g.toLength=cc,g.toLower=Im,g.toNumber=It,g.toSafeInteger=Iv,g.toString=ue,g.toUpper=xm,g.trim=Lm,g.trimEnd=$m,g.trimStart=Nm,g.truncate=Om,g.unescape=Um,g.uniqueId=aS,g.upperCase=Dm,g.upperFirst=lo,g.each=Xl,g.eachRight=Zl,g.first=ql,ho(g,(function(){var e={};return Xt(g,function(t,s){oe.call(g.prototype,s)||(e[s]=t)}),e})(),{chain:!1}),g.VERSION=a,Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){g[e].placeholder=g}),Tt(["drop","take"],function(e,t){te.prototype[e]=function(s){s=s===r?1:Le(Y(s),0);var o=this.__filtered__&&!t?new te(this):this.clone();return o.__filtered__?o.__takeCount__=ze(s,o.__takeCount__):o.__views__.push({size:ze(s,ke),type:e+(o.__dir__<0?"Right":"")}),o},te.prototype[e+"Right"]=function(s){return this.reverse()[e](s).reverse()}}),Tt(["filter","map","takeWhile"],function(e,t){var s=t+1,o=s==Ze||s==Yt;te.prototype[e]=function(f){var d=this.clone();return d.__iteratees__.push({iteratee:W(f,3),type:s}),d.__filtered__=d.__filtered__||o,d}}),Tt(["head","last"],function(e,t){var s="take"+(t?"Right":"");te.prototype[e]=function(){return this[s](1).value()[0]}}),Tt(["initial","tail"],function(e,t){var s="drop"+(t?"":"Right");te.prototype[e]=function(){return this.__filtered__?new te(this):this[s](1)}}),te.prototype.compact=function(){return this.filter(ot)},te.prototype.find=function(e){return this.filter(e).head()},te.prototype.findLast=function(e){return this.reverse().find(e)},te.prototype.invokeMap=Z(function(e,t){return typeof e=="function"?new te(this):this.map(function(s){return pi(s,e,t)})}),te.prototype.reject=function(e){return this.filter(As(W(e)))},te.prototype.slice=function(e,t){e=Y(e);var s=this;return s.__filtered__&&(e>0||t<0)?new te(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),t!==r&&(t=Y(t),s=t<0?s.dropRight(-t):s.take(t-e)),s)},te.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},te.prototype.toArray=function(){return this.take(ke)},Xt(te.prototype,function(e,t){var s=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=g[o?"take"+(t=="last"?"Right":""):t],d=o||/^find/.test(t);f&&(g.prototype[t]=function(){var _=this.__wrapped__,m=o?[1]:arguments,w=_ instanceof te,P=m[0],I=w||K(_),L=function(j){var ne=f.apply(g,Cn([j],m));return o&&M?ne[0]:ne};I&&s&&typeof P=="function"&&P.length!=1&&(w=I=!1);var M=this.__chain__,k=!!this.__actions__.length,V=d&&!M,X=w&&!k;if(!d&&I){_=X?_:new te(this);var B=e.apply(_,m);return B.__actions__.push({func:Es,args:[L],thisArg:r}),new At(B,M)}return V&&X?e.apply(this,m):(B=this.thru(L),V?o?B.value()[0]:B.value():B)})}),Tt(["pop","push","shift","sort","splice","unshift"],function(e){var t=zi[e],s=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);g.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var d=this.value();return t.apply(K(d)?d:[],f)}return this[s](function(_){return t.apply(K(_)?_:[],f)})}}),Xt(te.prototype,function(e,t){var s=g[t];if(s){var o=s.name+"";oe.call(wr,o)||(wr[o]=[]),wr[o].push({name:t,func:s})}}),wr[ds(r,G).name]=[{name:"wrapper",func:r}],te.prototype.clone=Ug,te.prototype.reverse=Dg,te.prototype.value=Mg,g.prototype.at=h_,g.prototype.chain=g_,g.prototype.commit=d_,g.prototype.next=p_,g.prototype.plant=v_,g.prototype.reverse=m_,g.prototype.toJSON=g.prototype.valueOf=g.prototype.value=S_,g.prototype.first=g.prototype.head,ui&&(g.prototype[ui]=__),g}),vr=dg();Bn?((Bn.exports=vr)._=vr,fa._=vr):We._=vr}).call(AS)})(Ci,Ci.exports)),Ci.exports}var Ac=RS();const H={getRandomId:()=>window.crypto.getRandomValues(new Uint32Array(1))[0],isPromise:i=>i&&H.isFunction(i.then),isFunction:i=>i&&{}.toString.call(i)==="[object Function]",isAsyncFunction:i=>i&&{}.toString.call(i)==="[object AsyncFunction]",isString:i=>typeof i=="string"||i instanceof String,isObject:i=>!!(i&&typeof i=="object"&&!Array.isArray(i)),trimLeadingSlash:i=>H.isString(i)?i.replace(/^\/+/g,""):"",trimTrailingSlash:i=>H.isString(i)?i.replace(/\/+$/,""):"",isElementVisible:i=>i?window.getComputedStyle(i).getPropertyValue("display")!=="none":!1,getNodeList:(i,n=!1)=>{const r=[];return i&&Array.from(document.querySelectorAll(i)).forEach(u=>{n?H.isElementVisible(u)&&r.push(u):r.push(u)}),r},prependOrigin:i=>{if(!i||i.startsWith("http"))return i;const n=i.startsWith("/");return i.length?window.location.origin+(n?"":"/")+i:window.location.origin},getConfigValueFromObject:(i,n)=>{let r=0,a=i;const u=n.split(".");for(;a&&r<u.length;)a=a[u[r++]];return a},getConfigBooleanValue:(i,n)=>{const r=H.getConfigValueFromObject(i,n);return r===!0||r==="true"},getUrlParameter:i=>new URLSearchParams(window.location.search).get(i),removeProperties(i,n){const r={};if(!(n instanceof Array)||!n.length)return console.error("[ERROR] removeProperties requires second parameter: array of keys to remove from object."),i;for(const a in i)if(i.hasOwnProperty(a)){const u=n.filter(c=>a.includes(c)).length===0,l=n.filter(c=>c.endsWith("*")).map(c=>c.slice(0,-1)).filter(c=>a.startsWith(c)).length===0;u&&l&&(r[a]=i[a])}return r},replaceVars(i,n,r,a=!0){let u=i;return n&&(a?u=Ac.replace(u,/{([\s\S]+?)}/g,l=>{let c=l.slice(1,-1).trim();return c.indexOf(r)===0&&(c=c.substring(r.length)),Ac.get(n,c,l)}):Object.entries(n).forEach(l=>{u=u.replace(new RegExp(this.escapeRegExp(r+l[0]),"g"),encodeURIComponent(l[1]))})),a&&(u=u.replace(new RegExp("\\{"+this.escapeRegExp(r)+"[^\\}]+\\}","g"),"")),u},escapeRegExp(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}},Or={wrapAsPromise:i=>new Promise(n=>{n(i)}),applyFunctionPromisified:(i,n)=>(i=i.apply(void 0,n),H.isPromise(i)?i:Or.wrapAsPromise(i)),getConfigValueFromObjectAsync:(i,n,...r)=>{const a=H.getConfigValueFromObject(i,n);return H.isFunction(a)?Or.applyFunctionPromisified(a,r):Or.wrapAsPromise(a)}};class bS{setErrorMessage(n){var r,a;(a=(r=this.getLuigi().getEngine())==null?void 0:r._connector)==null||a.showFatalError(n)}getLuigi(){return window.Luigi}getConfigValue(n){return this.getLuigi().getConfigValue(n)}getConfigValueAsync(n){return this.getLuigi().getConfigValueAsync(n)}async executeConfigFnAsync(n,r=!1,...a){const u=this.getConfigValue(n);if(H.isFunction(u))try{return await Or.applyFunctionPromisified(u,a)}catch(l){if(r)return Promise.reject(l)}return Promise.resolve(void 0)}}const lt=new bS;class PS{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=lt.getConfigValue("auth.storage")||this._defaultStorage),this._storageType}getAuthData(){return this._getStore(this.getStorageKey())}setAuthData(n){this._setStore(this.getStorageKey(),n)}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(n){return window[n]}_setStore(n,r){switch(this.getStorageType()){case"localStorage":case"sessionStorage":r!==void 0?this._getWebStorage(this.getStorageType()).setItem(n,JSON.stringify(r)):this._getWebStorage(this.getStorageType()).removeItem(n);break;case"none":this._internalStorage[n]=r;break;default:console.error(this._invalidStorageMsg)}}_getStore(n){try{switch(this.getStorageType()){case"localStorage":case"sessionStorage":return JSON.parse(this._getWebStorage(this.getStorageType()).getItem(n));case"none":return this._internalStorage[n];default:console.error(this._invalidStorageMsg)}}catch{console.warn("Error parsing authorization data. Auto-logout might not work!")}}}const Qt=new PS;class IS{isAuthorizationEnabled(){return!!lt.getConfigValue("auth.use")}login(){this.isAuthorizationEnabled()&&Ur.startAuthorization()}logout(){this.isAuthorizationEnabled()&&Ur.logout()}async handleAuthEvent(n,r,a,u){const l=await lt.executeConfigFnAsync("auth.events."+n,!1,r,a),c=l===void 0||!!l;if(c&&u){window.location.href=u;return}return c}get store(){var n;return(n=lt.getLuigi())!=null&&n.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:()=>Qt.getStorageKey(),getStorageType:()=>Qt.getStorageType(),getAuthData:()=>Qt.getAuthData(),setAuthData:r=>Qt.setAuthData(r),removeAuthData:()=>Qt.removeAuthData(),setNewlyAuthorized:()=>{Qt.setNewlyAuthorized(),Ur.resetExpirationChecks()}}}}const xr=new IS;class xS{getStoredAuthData(){return Qt.getAuthData()}isLoggedIn(){const n=this.getStoredAuthData();return!!(n&&n.accessTokenExpirationDate>Number(new Date))}parseUrlAuthErrors(){const n=H.getUrlParameter("error"),r=H.getUrlParameter("errorDescription");if(n)return{error:n,errorDescription:r}}async handleUrlAuthErrors(n,r,a){return r?await xr.handleAuthEvent("onAuthError",n,{error:r,errorDescription:a},n.logoutUrl+"?post_logout_redirect_uri="+n.post_logout_redirect_uri+"&error="+r+"&errorDescription="+a):!0}}const er=new xS;class LS{constructor(){this._userInfoStore=ks({}),this._loggedInStore=ks(!1)}setUserInfo(n){this._userInfoStore.set(n)}setLoggedIn(n){this._loggedInStore.set(n)}getUserInfoStore(){return this._userInfoStore}getLoggedInStore(){return this._loggedInStore}async init(){const n=lt.getConfigValue("auth.use");if(!n)return Promise.resolve(!0);const r=lt.getConfigValue(`auth.${n}`),a=er.parseUrlAuthErrors()||{};if(await er.handleUrlAuthErrors(r,a.error,a.errorDescription))return this.idpProviderInstance=this.getIdpProviderInstance(n,r),H.isPromise(this.idpProviderInstance)?this.idpProviderInstance.then(l=>(this.idpProviderInstance=l,this.checkAuth(r))).catch(l=>{const c=`Error: ${l.message||l}`;console.error(c,l.message&&l),lt.setErrorMessage(c)}):this.checkAuth(r)}async checkAuth(n){const r=er.getStoredAuthData();if(!r||!er.isLoggedIn()){if(lt.getConfigValue("auth.disableAutoLogin"))return;let u=!0;return r&&(u=await xr.handleAuthEvent("onAuthExpired",n)),u?this.startAuthorization():void 0}this.idpProviderInstance.settings&&H.isFunction(this.idpProviderInstance.settings.userInfoFn)?this.idpProviderInstance.settings.userInfoFn(this.idpProviderInstance.settings,r).then(u=>{this.setUserInfo(u),this.setLoggedIn(!0)}):H.isFunction(this.idpProviderInstance.userInfo)?this.idpProviderInstance.userInfo(n).then(u=>{this.setUserInfo(u),this.setLoggedIn(!0)}):(this.setLoggedIn(!0),this.setUserInfo(qc(this._userInfoStore))),H.isFunction(lt.getConfigValue("auth.events.onAuthSuccessful"))&&Qt.isNewlyAuthorized()&&await xr.handleAuthEvent("onAuthSuccessful",n,r),Qt.removeNewlyAuthorized(),H.isFunction(this.idpProviderInstance.setTokenExpirationAction)&&this.idpProviderInstance.setTokenExpirationAction(),H.isFunction(this.idpProviderInstance.setTokenExpireSoonAction)&&this.idpProviderInstance.setTokenExpireSoonAction()}async startAuthorization(){if(this.idpProviderInstance)return this.idpProviderInstance.login().then(n=>{Qt.setNewlyAuthorized(),n&&console.error(n)})}logout(){const n=er.getStoredAuthData(),r=async l=>{await xr.handleAuthEvent("onLogout",this.idpProviderInstance.settings,void 0,l),Qt.removeAuthData()},a=lt.getConfigValue(`auth.${lt.getConfigValue("auth.use")}.logoutFn`),u=lt.getConfigValueAsync("navigation.profile.logout.customLogoutFn");H.isFunction(a)?a(this.idpProviderInstance.settings,n,r):H.isFunction(this.idpProviderInstance.logout)?this.idpProviderInstance.logout(n,r):u&&H.isFunction(u)?u(n,r):r(this.idpProviderInstance.settings.logoutUrl)}createIdpProviderException(n){return{message:n,name:"IdpProviderException"}}async getIdpProviderInstance(n,r){const a=H.getConfigValueFromObject(r,"idpProvider");if(a){const l=await new a(r);return["login"].forEach(c=>{if(!H.isFunction(l[c]))throw this.createIdpProviderException(`${c} function does not exist in custom IDP Provider ${n}`)}),l}if(H.isFunction(lt.getConfigValue("auth.events.onAuthConfigError")))await xr.handleAuthEvent("onAuthConfigError",{idpProviderName:n,type:"IdpProviderException"});else throw this.createIdpProviderException(`IDP Provider ${n} does not exist.`)}unload(){this.idpProviderInstance&&H.isFunction(this.idpProviderInstance.unload)&&this.idpProviderInstance.unload()}resetExpirationChecks(){this.idpProviderInstance&&H.isFunction(this.idpProviderInstance.resetExpirationChecks)&&this.idpProviderInstance.resetExpirationChecks()}}const Ur=new LS,$S={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"}}},NS=$S,Ws={sanitizeHtml(i=""){return i.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/javascript:/g,"")},restoreSanitizedBrs(i=""){return i.replace(/<br\/>/g,"<br>").replace(/<br \/>/g,"<br>").replace(/<br>/g,"<br>").replace(/<br >/g,"<br>")},restoreSanitizedElements(i=""){let n=i;const r=["i","b","br","mark","strong","em","small","del","ins","sub","sup"];for(let a=0;a<r.length;a++){const u=new RegExp(`<${r[a]}/>`,"g"),l=new RegExp(`<${r[a]} />`,"g"),c=new RegExp(`<${r[a]}>`,"g"),h=new RegExp(`<${r[a]} >`,"g"),p=new RegExp(`</${r[a]}[/]>`,"g"),v=new RegExp(`</${r[a]} [/]>`,"g"),A=new RegExp(`<[/]${r[a]}>`,"g"),C=new RegExp(`<[/]${r[a]} >`,"g");n=n.replace(u,`<${r[a]}>`).replace(l,`<${r[a]}>`).replace(c,`<${r[a]}>`).replace(h,`<${r[a]}>`).replace(p,`</${r[a]}>`).replace(v,`</${r[a]}>`).replace(A,`</${r[a]}>`).replace(C,`</${r[a]}>`)}return n},sanatizeHtmlExceptTextFormatting(i=""){return this.restoreSanitizedElements(this.sanitizeHtml(i))},sanitizeParam(i=""){return String(i).replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")},escapeKeyForRegexp(i=""){return i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},processTextAndLinks(i="",n,r){const u={sanitizedText:this.restoreSanitizedBrs(this.sanitizeHtml(i)),links:[]};return n?Object.entries(n).reduce((l,[c,h])=>{const p=`_luigi_alert_${r}_link_${this.sanitizeParam(c)}`,v=this.restoreSanitizedBrs(this.sanitizeHtml(h.text)),A=`<a id="${p}">${v}</a>`,C=this.escapeKeyForRegexp(c),E=new RegExp(`({${C}})`,"g");return{sanitizedText:l.sanitizedText.replace(E,A),links:l.links.concat({elemId:p,url:h.url?encodeURI(this.sanitizeHtml(h.url)):void 0,dismissKey:h.dismissKey?encodeURI(this.sanitizeHtml(h.dismissKey)):void 0})}},u):u}};class OS{constructor(n){this.luigi=n,this.currentLocaleStorageKey="luigi.currentLocale",this.defaultLocale="en",this.listeners={},this.translationTable=NS}_init(){this._initCustomImplementation(),this.addCurrentLocaleChangeListener(n=>{this.broadcastLocaleToAllContainers(n)})}getCurrentLocale(){return sessionStorage.getItem(this.currentLocaleStorageKey)||this.defaultLocale}setCurrentLocale(n,r){var a,u;if(!((a=r==null?void 0:r.clientPermissions)!=null&&a.changeCurrentLocale)){console.error('Current locale change declined from client, as client permission "changeCurrentLocale" is not set for this view.');return}n&&(r&&(r.locale=n),sessionStorage.setItem(this.currentLocaleStorageKey,n),this._notifyLocaleChange(n)),(u=this.luigi.getEngine()._connector)==null||u.setCurrentLocale(n)}addCurrentLocaleChangeListener(n){let r=null;return H.isFunction(n)?(r=H.getRandomId(),this.listeners[r]=n):console.error("Provided locale change listener is not a function."),r}removeCurrentLocaleChangeListener(n){n&&this.listeners[n]?delete this.listeners[n]:console.error("Unable to remove locale change listener - no listener registered for given ID.")}getTranslation(n,r=void 0,a=void 0){if(!n)return"";if(this.translationImpl){const l=this.translationImpl.getTranslation(n,r,a);if(l!==n)return l}const u=this.findTranslation(n,this.translationTable,r);return u||n}_notifyLocaleChange(n){Object.getOwnPropertyNames(this.listeners).forEach(r=>{this.listeners[Number(r)](n)}),this.luigi.configChanged()}_initCustomImplementation(){this.translationImpl=this.luigi.getConfigValue("settings.customTranslationImplementation"),H.isFunction(this.translationImpl)&&(this.translationImpl=this.translationImpl())}broadcastLocaleToAllContainers(n){const r=H.getNodeList("luigi-container[lui_container]");r!=null&&r.length&&n&&r.forEach(a=>{a.locale=n,a.updateContext({locale:n})})}findTranslation(n,r,a){const u=n.split(".");for(let l=0;l<u.length;l++){const c=u[l];if(Object.prototype.hasOwnProperty.call(r,c)&&typeof r[c]=="object")r=r[c];else return a?this.findInterpolations(r[c],a):r[c]}}findInterpolations(n,r){return typeof n!="string"||!n.trim()||Object.keys(r).forEach(a=>{n=n.replace(new RegExp("{"+Ws.escapeKeyForRegexp(a)+"}","gi"),r[a])}),n}}const US={luigiAfterInit:async i=>{H.getConfigBooleanValue(i.getConfig(),"settings.appLoadingIndicator.hideAutomatically")&&setTimeout(()=>{i.ux().hideAppLoadingIndicator()},0),await lt.executeConfigFnAsync("lifecycleHooks.luigiAfterInit")}};class DS{constructor(){this.featureToggleList=new Set}setFeatureToggle(n,r=!1){this.isValid(n)&&(n.startsWith("!")&&!r||this.isDuplicatedOrDisabled(n)||this.featureToggleList.add(n))}unsetFeatureToggle(n){if(this.isValid(n)){if(!this.featureToggleList.has(n)){console.warn("Feature toggle name is not in the list.");return}this.featureToggleList.delete(n)}}getActiveFeatureToggleList(){return[...Array.from(this.featureToggleList)].filter(r=>!r.startsWith("!"))}isValid(n){return H.isString(n)?!0:(console.warn("Feature toggle name is not valid or not of type 'string'"),!1)}isDuplicatedOrDisabled(n){return this.featureToggleList.has(n)?(console.warn("Feature toggle name already exists"),!0):this.featureToggleList.has(`!${n}`)?(console.warn("Disabled feature toggle can not be activated"),!0):!1}}class Fn{constructor(n){this.luigi=n,this._modalStack=[],this.modalSettings={}}async closeModals(){if(this._modalStack.length===0)return;const n=[...this._modalStack];for(const{onInternalClose:r}of n)try{typeof r=="function"&&r()}catch(a){console.warn("onInternalClose threw an error",a)}this.clearModalStack()}registerModal(n){n&&this._modalStack.push(n)}getModalSettings(){return this._modalStack.length>0?this._modalStack[0].modalsettings||{}:{}}getModalStackLength(){return this._modalStack.length}updateFirstModalSettings(n){if(this._modalStack.length>0){const r=this._modalStack[0];r.modalsettings={...r.modalsettings,...n}}}clearModalStack(){this._modalStack=[]}removeLastModalFromStack(){this._modalStack.pop()}}const Ve={normalizePath:i=>{if(!i||i.length<=0)return i;let n=i;return n.startsWith("#")&&(n=n.substring(1)),n.startsWith("/")&&(n=n.substring(1)),n},segmentMatches:(i,n,r)=>!!(i===n||n.startsWith(":")&&r&&r[n.substr(1)]===i),checkMatch:(i,n,r)=>{let a=!0;return H.trimTrailingSlash(H.trimLeadingSlash(i)).split("/").forEach((u,l)=>{var c,h;a&&(l+1>=n.length||!((c=n[l+1])!=null&&c.pathSegment)||!Ve.segmentMatches(u,((h=n[l+1])==null?void 0:h.pathSegment)??"",r??{}))&&(a=!1)}),a},checkVisibleForFeatureToggles:(i,n)=>{if(i!=null&&i.visibleForFeatureToggles){const r=(n==null?void 0:n.getActiveFeatureToggleList())||[];for(const a of i.visibleForFeatureToggles)if(a.startsWith("!")){if(r.includes(a.slice(1)))return!1}else if(!r.includes(a))return!1}return!0},generateTooltipText:(i,n,r)=>{let a=i==null?void 0:i.tooltipText;switch(a===void 0&&(a=r.getConfigValue("navigation.defaults.tooltipText")),a){case void 0:return n;case!1:return"";default:return r.i18n().getTranslation(a)}},isNodeAccessPermitted:(i,n,r,a)=>{if(a.auth().isAuthorizationEnabled()){const c=er.isLoggedIn(),h=i.anonymousAccess;if(c&&h==="exclusive"||!c&&h!=="exclusive"&&h!==!0)return!1}const u=a.featureToggles();if(!Ve.checkVisibleForFeatureToggles(i,u))return!1;const l=a.getConfigValue("navigation.nodeAccessibilityResolver");return typeof l!="function"?!0:l(i,n,r)},updateHeaderTitle:(i,n)=>{const r=i==null?void 0:i.items;if(r&&n){let a="";return[...r].sort((u,l)=>(l.link||"").localeCompare(u.link||"")).some(u=>{let l=!1;if(l=Ve.checkMatch(u.link||"",n.nodesInPath??[]),!l&&u.selectionConditions&&u.selectionConditions.route&&(l=Ve.checkMatch(u.selectionConditions.route,n.nodesInPath??[]),l&&(u.selectionConditions.contextCriteria||[]).forEach(c=>{var h,p;l=l&&((p=(h=n==null?void 0:n.selectedNode)==null?void 0:h.context)==null?void 0:p[c.key])===c.value})),l)return a=u.title||"",!0}),a}},buildPath(i,n){return i.map(a=>{var l;const u=a.pathSegment;if(u!=null&&u.startsWith(":")){const c=u.slice(1),h=(l=n==null?void 0:n.pathParams)==null?void 0:l[c];if(h!=null)return encodeURIComponent(String(h))}return u}).join("/")},mergeContext(...i){return Object.assign({},...i)},prepareForTests(...i){let n="";return i.forEach(r=>{r&&(n+=(n?"_":"")+encodeURIComponent(r.toLowerCase().split(" ").join("")))}),n},findVirtualTreeRootNode(i){if(i.virtualTree)return i;if(i.parent)return Ve.findVirtualTreeRootNode(i.parent)}};class kn{constructor(){this.dataManagement=new Map}setChildren(n,r){this.dataManagement.set(n,r),this.navPath=""}getChildren(n){return n?this.dataManagement.get(n):{}}hasChildren(n){const r=this.getChildren(n);return!!(r&&Object.prototype.hasOwnProperty.call(r,"children"))}setRootNode(n){this.dataManagement.set("_luigiRootNode",{node:n})}getRootNode(){return this.dataManagement.get("_luigiRootNode")}hasRootNode(){return!!this.getRootNode()}deleteCache(){this.dataManagement.clear()}deleteNodesRecursively(n){if(this.hasChildren(n)){const r=this.getChildren(n).children;for(let a=0;a<r.length;a++)this.deleteNodesRecursively(r[a])}this.dataManagement.delete(n)}}const Q={defaultContentViewParamPrefix:"~",defaultQueryParamSeparator:"?",defaultModalViewParamName:"modal",addParamsOnHashRouting(i,n,r){let a=n;const[u,l]=a.split("?"),c=new URLSearchParams(l);return this.modifySearchParams(i,c,r),a=u,c.toString()!==""&&(a+=`?${c.toString()}`),a},modifySearchParams(i,n,r){for(const[a,u]of Object.entries(i)){const l=r?`${r}${a}`:a;n.set(l,u),u===void 0&&n.delete(l)}},filterNodeParams(i,n){const r={},a=this.getContentViewParamPrefix(n);return i&&Object.entries(i).forEach(u=>{if(u[0].startsWith(a)){const l=u[0].substr(a.length);r[l]=u[1]}}),this.sanitizeParamsMap(r)},getContentViewParamPrefix(i){let n=i==null?void 0:i.getConfigValue("routing.nodeParamPrefix");return n===!1?n="":n||(n=this.defaultContentViewParamPrefix),n},sanitizeParamsMap(i){return Object.entries(i).reduce((n,r)=>(n[Ws.sanitizeParam(r[0])]=Ws.sanitizeParam(r[1]),n),{})},prepareSearchParamsForClient(i,n){const r={};return i&&i.clientPermissions&&i.clientPermissions.urlParameters&&Object.keys(i.clientPermissions.urlParameters).forEach(a=>{var u,l;a in n.routing().getSearchParams()&&((u=i.clientPermissions)!=null&&u.urlParameters)&&((l=i.clientPermissions.urlParameters[a])==null?void 0:l.read)===!0&&(r[a]=n.routing().getSearchParams()[a])}),r},getCurrentPath(i){if(i){const n=Ve.normalizePath(location.hash),[r,a]=n.split("?");return{path:r,query:a}}else return{path:Ve.normalizePath(location.pathname),query:location.search}},getModalPathFromPath(i){return this.getQueryParam(this.getModalViewParamName(i),i)},getQueryParam(i,n){return this.getQueryParams(n)[i]},getQueryParams(i){return i.getConfigValue("routing.useHashRouting")?this.getLocationHashQueryParams():this.getLocationSearchQueryParams()},getLocationSearchQueryParams(){return Q.getLocation().search?Q.parseParams(Q.getLocation().search.slice(1)):{}},getLocation(){return location},getLocationHashQueryParams(){const i=Q.getLocation().hash.indexOf(this.defaultQueryParamSeparator);return i!==-1?Q.parseParams(Q.getLocation().hash.slice(i+1)):{}},getModalViewParamName(i){let n=i.getConfigValue("routing.modalPathParam");return n||(n=this.defaultModalViewParamName),n},parseParams(i){const n=new URLSearchParams(i),r=new Map;for(const[a,u]of n.entries())r.set(a,u);return Object.fromEntries(r)},getModalParamsFromPath(i){const n=this.getQueryParam(`${this.getModalViewParamName(i)}Params`,i);return n&&JSON.parse(n)},getHashQueryParamSeparator(){return this.defaultQueryParamSeparator},getURLWithoutModalData(i,n){const r=new URLSearchParams(i);return r.delete(n),r.delete(`${n}Params`),r.toString()},handleHistoryState(i,n){return i&&i.modalHistoryLength?i.modalHistoryLength+=1:i={modalHistoryLength:1,historygap:history.length,pathBeforeHistory:n},i},encodeParams(i){const n=[];for(const r in i)n.push(encodeURIComponent(r)+"="+encodeURIComponent(i[r]));return n.join("&")},getLastNodeObject(i){return(i.nodesInPath?[...i.nodesInPath].pop():{})||{}},checkWCUrl(i,n){if(i.indexOf("://")>0||i.trim().indexOf("//")===0){if(new URL(i).host===window.location.host)return!0;const a=n.getConfigValue("navigation.validWebcomponentUrls");if((a==null?void 0:a.length)>0)for(const u of a)try{if(new RegExp(u).test(i))return!0}catch(l){console.error(l)}return!1}return!0},setFeatureToggles(i,n,r){const a=this.sanitizeParamsMap(this.parseParams(n.split("?")[1]));let u;if(a[i]&&(u=a[i]),!u)return;const l=u.split(",");l.length>0&&l[0]!==""&&l.forEach(c=>r==null?void 0:r.setFeatureToggle(c,!0))},substituteDynamicParamsInObject(i,n,r=":",a=!1){return Object.entries(i).map(([u,l])=>{const c=a?Object.keys(n).find(h=>l&&l.indexOf(r+h)>=0):Object.keys(n).find(h=>l===r+h);return[u,c?a?l.replace(r+c,n[c]):n[c]:l]}).reduce((u,[l,c])=>Object.assign(u,{[l]:c}),{})},isDynamicNode(i){return typeof i.pathSegment=="string"&&i.pathSegment.length>0&&i.pathSegment[0]===":"},getDynamicNodeValue(i,n){return this.isDynamicNode(i)&&i.pathSegment?n[i.pathSegment.substring(1)]:void 0},buildRoute(i,n,r){return i.parent?this.buildRoute(i.parent,`/${i.parent.pathSegment}${n}`,r):n+(r?"?"+r:"")},substituteViewUrl(i,n,r){return i=H.replaceVars(i,n.pathParams,":",!1),i}},mo={logout:{label:"Sign Out",icon:"log"}};class MS{constructor(){this.services=new Map}register(n,r,a=!0){this.services.set(n,{factory:r,singleton:a})}get(n){const r=this.services.get(n);if(!r)throw new Error(`Service '${n}' is not registered.`);return r.singleton?(r.instance||(r.instance=r.factory()),r.instance):r.factory()}}const re=new MS;class Wn{constructor(n){this.luigi=n}getModalService(){return this.modalService||(this.modalService=re.get(Fn)),this.modalService}getNodeDataManagementService(){return this.nodeDataManagementService||(this.nodeDataManagementService=re.get(kn)),this.nodeDataManagementService}async getPathData(n){var v,A,C;const r=this.luigi.getConfig();let a=n.split("/");(a==null?void 0:a.length)>0&&a[0]===""&&(a=a.slice(1));let l=((v=r.navigation)==null?void 0:v.globalContext)||{},c;if(this.getNodeDataManagementService().hasRootNode())c=this.getNodeDataManagementService().getRootNode().node;else{let E=await this.luigi.getConfigValueAsync("navigation.nodes");typeof E=="object"&&!Array.isArray(E)?(c=E,c.pathSegment&&(c.pathSegment="",console.warn("Root node must have an empty path segment. Provided path segment will be ignored."))):c={children:E},c.children=await this.getChildren(c,l),c.children=this.prepareRootNodes(c.children||[],l),this.getNodeDataManagementService().setRootNode(c)}let h={};const p={selectedNodeChildren:c.children,nodesInPath:[c],rootNodes:c.children,pathParams:h};if(c.viewUrl&&a.length===0)p.selectedNode=c;else for(const E of a)if(p.selectedNodeChildren){const y=this.findMatchingNode(E,p.selectedNodeChildren||[]);if(!y){console.warn("No matching node found for segment:",E);break}const b=y.context||{},O=Ve.mergeContext(l,b);let N=O;(A=y.pathSegment)!=null&&A.startsWith(":")&&(h[y.pathSegment.replace(":","")]=Ws.sanitizeParam(E),N=Q.substituteDynamicParamsInObject(O,h)),l=N,y.context=N,p.selectedNode=y,p.selectedNode&&((C=p.nodesInPath)==null||C.push(p.selectedNode)),this.buildVirtualTree(y,p.nodesInPath,h),p.selectedNodeChildren=await this.getChildren(y,l)}return p}findMatchingNode(n,r){let a;const u=r.filter(c=>!!c.pathSegment).length,l=r.filter(c=>c.pathSegment&&c.pathSegment.startsWith(":")).length;if(u>1&&(l===1&&(console.warn(`Invalid node setup detected.
|
|
27
|
+
}`;var X=wc(function(){return se(d,k+"return "+L).apply(r,_)});if(X.source=L,so(X))throw X;return X}function Im(e){return ue(e).toLowerCase()}function xm(e){return ue(e).toUpperCase()}function Lm(e,t,s){if(e=ue(e),e&&(s||t===r))return Iu(e);if(!e||!(t=gt(t)))return e;var o=kt(e),f=kt(t),d=xu(o,f),_=Lu(o,f)+1;return Pn(o,d,_).join("")}function $m(e,t,s){if(e=ue(e),e&&(s||t===r))return e.slice(0,Ou(e)+1);if(!e||!(t=gt(t)))return e;var o=kt(e),f=Lu(o,kt(t))+1;return Pn(o,0,f).join("")}function Om(e,t,s){if(e=ue(e),e&&(s||t===r))return e.replace(sa,"");if(!e||!(t=gt(t)))return e;var o=kt(e),f=xu(o,kt(t));return Pn(o,f).join("")}function Nm(e,t){var s=Ce,o=Te;if(ve(t)){var f="separator"in t?t.separator:f;s="length"in t?Y(t.length):s,o="omission"in t?gt(t.omission):o}e=ue(e);var d=e.length;if(pr(e)){var _=kt(e);d=_.length}if(s>=d)return e;var m=s-_r(o);if(m<1)return o;var w=_?Pn(_,0,m).join(""):e.slice(0,m);if(f===r)return w+o;if(_&&(m+=w.length-m),ao(f)){if(e.slice(m).search(f)){var P,I=w;for(f.global||(f=Ca(f.source,ue(Zo.exec(f))+"g")),f.lastIndex=0;P=f.exec(I);)var L=P.index;w=w.slice(0,L===r?m:L)}}else if(e.indexOf(gt(f),m)!=m){var M=w.lastIndexOf(f);M>-1&&(w=w.slice(0,M))}return w+o}function Um(e){return e=ue(e),e&&qf.test(e)?e.replace(Ko,cg):e}var Dm=Tr(function(e,t,s){return e+(s?" ":"")+t.toUpperCase()}),lo=El("toUpperCase");function Sc(e,t,s){return e=ue(e),t=s?r:t,t===r?sg(e)?gg(e):Xh(e):e.match(t)||[]}var wc=Z(function(e,t){try{return ft(e,r,t)}catch(s){return so(s)?s:new q(s)}}),Mm=hn(function(e,t){return Tt(t,function(s){s=Jt(s),cn(e,s,ro(e[s],e))}),e});function Fm(e){var t=e==null?0:e.length,s=B();return e=t?_e(e,function(o){if(typeof o[1]!="function")throw new yt(c);return[s(o[0]),o[1]]}):[],Z(function(o){for(var f=-1;++f<t;){var d=e[f];if(ft(d[0],this,o))return ft(d[1],this,o)}})}function km(e){return cd(Rt(e,C))}function co(e){return function(){return e}}function Wm(e,t){return e==null||e!==e?t:e}var Hm=Tl(),Vm=Tl(!0);function ot(e){return e}function fo(e){return ju(typeof e=="function"?e:Rt(e,C))}function Bm(e){return tl(Rt(e,C))}function Gm(e,t){return nl(e,Rt(t,C))}var Qm=Z(function(e,t){return function(s){return pi(s,e,t)}}),qm=Z(function(e,t){return function(s){return pi(e,s,t)}});function ho(e,t,s){var o=Ue(t),f=ls(t,o);s==null&&!(ve(t)&&(f.length||!o.length))&&(s=t,t=e,e=this,f=ls(t,Ue(t)));var d=!(ve(s)&&"chain"in s)||!!s.chain,_=dn(e);return Tt(f,function(m){var w=t[m];e[m]=w,_&&(e.prototype[m]=function(){var P=this.__chain__;if(d||P){var I=e(this.__wrapped__),L=I.__actions__=it(this.__actions__);return L.push({func:w,args:arguments,thisArg:e}),I.__chain__=P,I}return w.apply(e,Cn([this.value()],arguments))})}),e}function zm(){return We._===this&&(We._=Sg),this}function go(){}function Km(e){return e=Y(e),Z(function(t){return rl(t,e)})}var Ym=Ga(_e),Xm=Ga(yu),Zm=Ga(pa);function Ec(e){return Za(e)?_a(Jt(e)):bd(e)}function Jm(e){return function(t){return e==null?r:Kn(e,t)}}var jm=Al(),eS=Al(!0);function po(){return[]}function _o(){return!1}function tS(){return{}}function nS(){return""}function rS(){return!0}function iS(e,t){if(e=Y(e),e<1||e>qe)return[];var s=ke,o=ze(e,ke);t=B(t),e-=ke;for(var f=Sa(o,t);++s<e;)t(s);return f}function sS(e){return K(e)?_e(e,Jt):dt(e)?[e]:it(Hl(ue(e)))}function aS(e){var t=++vg;return ue(e)+t}var oS=ps(function(e,t){return e+t},0),uS=Qa("ceil"),lS=ps(function(e,t){return e/t},1),cS=Qa("floor");function fS(e){return e&&e.length?us(e,ot,xa):r}function hS(e,t){return e&&e.length?us(e,B(t,2),xa):r}function gS(e){return bu(e,ot)}function dS(e,t){return bu(e,B(t,2))}function pS(e){return e&&e.length?us(e,ot,Na):r}function _S(e,t){return e&&e.length?us(e,B(t,2),Na):r}var vS=ps(function(e,t){return e*t},1),mS=Qa("round"),SS=ps(function(e,t){return e-t},0);function wS(e){return e&&e.length?ma(e,ot):0}function ES(e,t){return e&&e.length?ma(e,B(t,2)):0}return g.after=B_,g.ary=Jl,g.assign=xv,g.assignIn=hc,g.assignInWith=Ps,g.assignWith=Lv,g.at=$v,g.before=jl,g.bind=ro,g.bindAll=Mm,g.bindKey=ec,g.castArray=tv,g.chain=Yl,g.chunk=cp,g.compact=fp,g.concat=hp,g.cond=Fm,g.conforms=km,g.constant=co,g.countBy=w_,g.create=Ov,g.curry=tc,g.curryRight=nc,g.debounce=rc,g.defaults=Nv,g.defaultsDeep=Uv,g.defer=G_,g.delay=Q_,g.difference=gp,g.differenceBy=dp,g.differenceWith=pp,g.drop=_p,g.dropRight=vp,g.dropRightWhile=mp,g.dropWhile=Sp,g.fill=wp,g.filter=C_,g.flatMap=A_,g.flatMapDeep=R_,g.flatMapDepth=b_,g.flatten=Ql,g.flattenDeep=Ep,g.flattenDepth=Cp,g.flip=q_,g.flow=Hm,g.flowRight=Vm,g.fromPairs=Tp,g.functions=Vv,g.functionsIn=Bv,g.groupBy=P_,g.initial=Ap,g.intersection=Rp,g.intersectionBy=bp,g.intersectionWith=Pp,g.invert=Qv,g.invertBy=qv,g.invokeMap=x_,g.iteratee=fo,g.keyBy=L_,g.keys=Ue,g.keysIn=at,g.map=Cs,g.mapKeys=Kv,g.mapValues=Yv,g.matches=Bm,g.matchesProperty=Gm,g.memoize=ys,g.merge=Xv,g.mergeWith=gc,g.method=Qm,g.methodOf=qm,g.mixin=ho,g.negate=As,g.nthArg=Km,g.omit=Zv,g.omitBy=Jv,g.once=z_,g.orderBy=$_,g.over=Ym,g.overArgs=K_,g.overEvery=Xm,g.overSome=Zm,g.partial=io,g.partialRight=ic,g.partition=O_,g.pick=jv,g.pickBy=dc,g.property=Ec,g.propertyOf=Jm,g.pull=$p,g.pullAll=zl,g.pullAllBy=Op,g.pullAllWith=Np,g.pullAt=Up,g.range=jm,g.rangeRight=eS,g.rearg=Y_,g.reject=D_,g.remove=Dp,g.rest=X_,g.reverse=to,g.sampleSize=F_,g.set=tm,g.setWith=nm,g.shuffle=k_,g.slice=Mp,g.sortBy=V_,g.sortedUniq=Gp,g.sortedUniqBy=Qp,g.split=Am,g.spread=Z_,g.tail=qp,g.take=zp,g.takeRight=Kp,g.takeRightWhile=Yp,g.takeWhile=Xp,g.tap=f_,g.throttle=J_,g.thru=Es,g.toArray=lc,g.toPairs=pc,g.toPairsIn=_c,g.toPath=sS,g.toPlainObject=fc,g.transform=rm,g.unary=j_,g.union=Zp,g.unionBy=Jp,g.unionWith=jp,g.uniq=e_,g.uniqBy=t_,g.uniqWith=n_,g.unset=im,g.unzip=no,g.unzipWith=Kl,g.update=sm,g.updateWith=am,g.values=Rr,g.valuesIn=om,g.without=r_,g.words=Sc,g.wrap=ev,g.xor=i_,g.xorBy=s_,g.xorWith=a_,g.zip=o_,g.zipObject=u_,g.zipObjectDeep=l_,g.zipWith=c_,g.entries=pc,g.entriesIn=_c,g.extend=hc,g.extendWith=Ps,ho(g,g),g.add=oS,g.attempt=wc,g.camelCase=fm,g.capitalize=vc,g.ceil=uS,g.clamp=um,g.clone=nv,g.cloneDeep=iv,g.cloneDeepWith=sv,g.cloneWith=rv,g.conformsTo=av,g.deburr=mc,g.defaultTo=Wm,g.divide=lS,g.endsWith=hm,g.eq=Ht,g.escape=gm,g.escapeRegExp=dm,g.every=E_,g.find=T_,g.findIndex=Bl,g.findKey=Dv,g.findLast=y_,g.findLastIndex=Gl,g.findLastKey=Mv,g.floor=cS,g.forEach=Xl,g.forEachRight=Zl,g.forIn=Fv,g.forInRight=kv,g.forOwn=Wv,g.forOwnRight=Hv,g.get=oo,g.gt=ov,g.gte=uv,g.has=Gv,g.hasIn=uo,g.head=ql,g.identity=ot,g.includes=I_,g.indexOf=yp,g.inRange=lm,g.invoke=zv,g.isArguments=Zn,g.isArray=K,g.isArrayBuffer=lv,g.isArrayLike=st,g.isArrayLikeObject=Ae,g.isBoolean=cv,g.isBuffer=In,g.isDate=fv,g.isElement=hv,g.isEmpty=gv,g.isEqual=dv,g.isEqualWith=pv,g.isError=so,g.isFinite=_v,g.isFunction=dn,g.isInteger=sc,g.isLength=Rs,g.isMap=ac,g.isMatch=vv,g.isMatchWith=mv,g.isNaN=Sv,g.isNative=wv,g.isNil=Cv,g.isNull=Ev,g.isNumber=oc,g.isObject=ve,g.isObjectLike=Se,g.isPlainObject=Ei,g.isRegExp=ao,g.isSafeInteger=Tv,g.isSet=uc,g.isString=bs,g.isSymbol=dt,g.isTypedArray=Ar,g.isUndefined=yv,g.isWeakMap=Av,g.isWeakSet=Rv,g.join=Ip,g.kebabCase=pm,g.last=Pt,g.lastIndexOf=xp,g.lowerCase=_m,g.lowerFirst=vm,g.lt=bv,g.lte=Pv,g.max=fS,g.maxBy=hS,g.mean=gS,g.meanBy=dS,g.min=pS,g.minBy=_S,g.stubArray=po,g.stubFalse=_o,g.stubObject=tS,g.stubString=nS,g.stubTrue=rS,g.multiply=vS,g.nth=Lp,g.noConflict=zm,g.noop=go,g.now=Ts,g.pad=mm,g.padEnd=Sm,g.padStart=wm,g.parseInt=Em,g.random=cm,g.reduce=N_,g.reduceRight=U_,g.repeat=Cm,g.replace=Tm,g.result=em,g.round=mS,g.runInContext=S,g.sample=M_,g.size=W_,g.snakeCase=ym,g.some=H_,g.sortedIndex=Fp,g.sortedIndexBy=kp,g.sortedIndexOf=Wp,g.sortedLastIndex=Hp,g.sortedLastIndexBy=Vp,g.sortedLastIndexOf=Bp,g.startCase=Rm,g.startsWith=bm,g.subtract=SS,g.sum=wS,g.sumBy=ES,g.template=Pm,g.times=iS,g.toFinite=pn,g.toInteger=Y,g.toLength=cc,g.toLower=Im,g.toNumber=It,g.toSafeInteger=Iv,g.toString=ue,g.toUpper=xm,g.trim=Lm,g.trimEnd=$m,g.trimStart=Om,g.truncate=Nm,g.unescape=Um,g.uniqueId=aS,g.upperCase=Dm,g.upperFirst=lo,g.each=Xl,g.eachRight=Zl,g.first=ql,ho(g,(function(){var e={};return Xt(g,function(t,s){oe.call(g.prototype,s)||(e[s]=t)}),e})(),{chain:!1}),g.VERSION=a,Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){g[e].placeholder=g}),Tt(["drop","take"],function(e,t){te.prototype[e]=function(s){s=s===r?1:Le(Y(s),0);var o=this.__filtered__&&!t?new te(this):this.clone();return o.__filtered__?o.__takeCount__=ze(s,o.__takeCount__):o.__views__.push({size:ze(s,ke),type:e+(o.__dir__<0?"Right":"")}),o},te.prototype[e+"Right"]=function(s){return this.reverse()[e](s).reverse()}}),Tt(["filter","map","takeWhile"],function(e,t){var s=t+1,o=s==Ze||s==Yt;te.prototype[e]=function(f){var d=this.clone();return d.__iteratees__.push({iteratee:B(f,3),type:s}),d.__filtered__=d.__filtered__||o,d}}),Tt(["head","last"],function(e,t){var s="take"+(t?"Right":"");te.prototype[e]=function(){return this[s](1).value()[0]}}),Tt(["initial","tail"],function(e,t){var s="drop"+(t?"":"Right");te.prototype[e]=function(){return this.__filtered__?new te(this):this[s](1)}}),te.prototype.compact=function(){return this.filter(ot)},te.prototype.find=function(e){return this.filter(e).head()},te.prototype.findLast=function(e){return this.reverse().find(e)},te.prototype.invokeMap=Z(function(e,t){return typeof e=="function"?new te(this):this.map(function(s){return pi(s,e,t)})}),te.prototype.reject=function(e){return this.filter(As(B(e)))},te.prototype.slice=function(e,t){e=Y(e);var s=this;return s.__filtered__&&(e>0||t<0)?new te(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),t!==r&&(t=Y(t),s=t<0?s.dropRight(-t):s.take(t-e)),s)},te.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},te.prototype.toArray=function(){return this.take(ke)},Xt(te.prototype,function(e,t){var s=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=g[o?"take"+(t=="last"?"Right":""):t],d=o||/^find/.test(t);f&&(g.prototype[t]=function(){var _=this.__wrapped__,m=o?[1]:arguments,w=_ instanceof te,P=m[0],I=w||K(_),L=function(j){var ne=f.apply(g,Cn([j],m));return o&&M?ne[0]:ne};I&&s&&typeof P=="function"&&P.length!=1&&(w=I=!1);var M=this.__chain__,k=!!this.__actions__.length,G=d&&!M,X=w&&!k;if(!d&&I){_=X?_:new te(this);var Q=e.apply(_,m);return Q.__actions__.push({func:Es,args:[L],thisArg:r}),new At(Q,M)}return G&&X?e.apply(this,m):(Q=this.thru(L),G?o?Q.value()[0]:Q.value():Q)})}),Tt(["pop","push","shift","sort","splice","unshift"],function(e){var t=zi[e],s=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);g.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var d=this.value();return t.apply(K(d)?d:[],f)}return this[s](function(_){return t.apply(K(_)?_:[],f)})}}),Xt(te.prototype,function(e,t){var s=g[t];if(s){var o=s.name+"";oe.call(wr,o)||(wr[o]=[]),wr[o].push({name:t,func:s})}}),wr[ds(r,V).name]=[{name:"wrapper",func:r}],te.prototype.clone=Ug,te.prototype.reverse=Dg,te.prototype.value=Mg,g.prototype.at=h_,g.prototype.chain=g_,g.prototype.commit=d_,g.prototype.next=p_,g.prototype.plant=v_,g.prototype.reverse=m_,g.prototype.toJSON=g.prototype.valueOf=g.prototype.value=S_,g.prototype.first=g.prototype.head,ui&&(g.prototype[ui]=__),g}),vr=dg();Bn?((Bn.exports=vr)._=vr,fa._=vr):We._=vr}).call(AS)})(Ci,Ci.exports)),Ci.exports}var Ac=RS();const H={getRandomId:()=>window.crypto.getRandomValues(new Uint32Array(1))[0],isPromise:i=>i&&H.isFunction(i.then),isFunction:i=>i&&{}.toString.call(i)==="[object Function]",isAsyncFunction:i=>i&&{}.toString.call(i)==="[object AsyncFunction]",isString:i=>typeof i=="string"||i instanceof String,isObject:i=>!!(i&&typeof i=="object"&&!Array.isArray(i)),trimLeadingSlash:i=>H.isString(i)?i.replace(/^\/+/g,""):"",trimTrailingSlash:i=>H.isString(i)?i.replace(/\/+$/,""):"",isElementVisible:i=>i?window.getComputedStyle(i).getPropertyValue("display")!=="none":!1,getNodeList:(i,n=!1)=>{const r=[];return i&&Array.from(document.querySelectorAll(i)).forEach(u=>{n?H.isElementVisible(u)&&r.push(u):r.push(u)}),r},prependOrigin:i=>{if(!i||i.startsWith("http"))return i;const n=i.startsWith("/");return i.length?window.location.origin+(n?"":"/")+i:window.location.origin},getConfigValueFromObject:(i,n)=>{let r=0,a=i;const u=n.split(".");for(;a&&r<u.length;)a=a[u[r++]];return a},getConfigBooleanValue:(i,n)=>{const r=H.getConfigValueFromObject(i,n);return r===!0||r==="true"},getUrlParameter:i=>new URLSearchParams(window.location.search).get(i),removeProperties(i,n){const r={};if(!(n instanceof Array)||!n.length)return console.error("[ERROR] removeProperties requires second parameter: array of keys to remove from object."),i;for(const a in i)if(i.hasOwnProperty(a)){const u=n.filter(c=>a.includes(c)).length===0,l=n.filter(c=>c.endsWith("*")).map(c=>c.slice(0,-1)).filter(c=>a.startsWith(c)).length===0;u&&l&&(r[a]=i[a])}return r},replaceVars(i,n,r,a=!0){let u=i;return n&&(a?u=Ac.replace(u,/{([\s\S]+?)}/g,l=>{let c=l.slice(1,-1).trim();return c.indexOf(r)===0&&(c=c.substring(r.length)),Ac.get(n,c,l)}):Object.entries(n).forEach(l=>{u=u.replace(new RegExp(this.escapeRegExp(r+l[0]),"g"),encodeURIComponent(l[1]))})),a&&(u=u.replace(new RegExp("\\{"+this.escapeRegExp(r)+"[^\\}]+\\}","g"),"")),u},escapeRegExp(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},hasHashOrSlash:i=>!!(i&&i.search(/^[#\/].*$/)===0),getPathWithoutHashOrSlash:i=>{for(;H.hasHashOrSlash(i);)i=i.substring(1,i.length);return i}},Nr={wrapAsPromise:i=>new Promise(n=>{n(i)}),applyFunctionPromisified:(i,n)=>(i=i.apply(void 0,n),H.isPromise(i)?i:Nr.wrapAsPromise(i)),getConfigValueFromObjectAsync:(i,n,...r)=>{const a=H.getConfigValueFromObject(i,n);return H.isFunction(a)?Nr.applyFunctionPromisified(a,r):Nr.wrapAsPromise(a)}};class bS{setErrorMessage(n){var r,a;(a=(r=this.getLuigi().getEngine())==null?void 0:r._connector)==null||a.showFatalError(n)}getLuigi(){return window.Luigi}getConfigValue(n){return this.getLuigi().getConfigValue(n)}getConfigValueAsync(n){return this.getLuigi().getConfigValueAsync(n)}async executeConfigFnAsync(n,r=!1,...a){const u=this.getConfigValue(n);if(H.isFunction(u))try{return await Nr.applyFunctionPromisified(u,a)}catch(l){if(r)return Promise.reject(l)}return Promise.resolve(void 0)}}const lt=new bS;class PS{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=lt.getConfigValue("auth.storage")||this._defaultStorage),this._storageType}getAuthData(){return this._getStore(this.getStorageKey())}setAuthData(n){this._setStore(this.getStorageKey(),n)}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(n){return window[n]}_setStore(n,r){switch(this.getStorageType()){case"localStorage":case"sessionStorage":r!==void 0?this._getWebStorage(this.getStorageType()).setItem(n,JSON.stringify(r)):this._getWebStorage(this.getStorageType()).removeItem(n);break;case"none":this._internalStorage[n]=r;break;default:console.error(this._invalidStorageMsg)}}_getStore(n){try{switch(this.getStorageType()){case"localStorage":case"sessionStorage":return JSON.parse(this._getWebStorage(this.getStorageType()).getItem(n));case"none":return this._internalStorage[n];default:console.error(this._invalidStorageMsg)}}catch{console.warn("Error parsing authorization data. Auto-logout might not work!")}}}const Qt=new PS;class IS{isAuthorizationEnabled(){return!!lt.getConfigValue("auth.use")}login(){this.isAuthorizationEnabled()&&Ur.startAuthorization()}logout(){this.isAuthorizationEnabled()&&Ur.logout()}async handleAuthEvent(n,r,a,u){const l=await lt.executeConfigFnAsync("auth.events."+n,!1,r,a),c=l===void 0||!!l;if(c&&u){window.location.href=u;return}return c}get store(){var n;return(n=lt.getLuigi())!=null&&n.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:()=>Qt.getStorageKey(),getStorageType:()=>Qt.getStorageType(),getAuthData:()=>Qt.getAuthData(),setAuthData:r=>Qt.setAuthData(r),removeAuthData:()=>Qt.removeAuthData(),setNewlyAuthorized:()=>{Qt.setNewlyAuthorized(),Ur.resetExpirationChecks()}}}}const xr=new IS;class xS{getStoredAuthData(){return Qt.getAuthData()}isLoggedIn(){const n=this.getStoredAuthData();return!!(n&&n.accessTokenExpirationDate>Number(new Date))}parseUrlAuthErrors(){const n=H.getUrlParameter("error"),r=H.getUrlParameter("errorDescription");if(n)return{error:n,errorDescription:r}}async handleUrlAuthErrors(n,r,a){return r?await xr.handleAuthEvent("onAuthError",n,{error:r,errorDescription:a},n.logoutUrl+"?post_logout_redirect_uri="+n.post_logout_redirect_uri+"&error="+r+"&errorDescription="+a):!0}}const er=new xS;class LS{constructor(){this._userInfoStore=ks({}),this._loggedInStore=ks(!1)}setUserInfo(n){this._userInfoStore.set(n)}setLoggedIn(n){this._loggedInStore.set(n)}getUserInfoStore(){return this._userInfoStore}getLoggedInStore(){return this._loggedInStore}async init(){const n=lt.getConfigValue("auth.use");if(!n)return Promise.resolve(!0);const r=lt.getConfigValue(`auth.${n}`),a=er.parseUrlAuthErrors()||{};if(await er.handleUrlAuthErrors(r,a.error,a.errorDescription))return this.idpProviderInstance=this.getIdpProviderInstance(n,r),H.isPromise(this.idpProviderInstance)?this.idpProviderInstance.then(l=>(this.idpProviderInstance=l,this.checkAuth(r))).catch(l=>{const c=`Error: ${l.message||l}`;console.error(c,l.message&&l),lt.setErrorMessage(c)}):this.checkAuth(r)}async checkAuth(n){const r=er.getStoredAuthData();if(!r||!er.isLoggedIn()){if(lt.getConfigValue("auth.disableAutoLogin"))return;let u=!0;return r&&(u=await xr.handleAuthEvent("onAuthExpired",n)),u?this.startAuthorization():void 0}this.idpProviderInstance.settings&&H.isFunction(this.idpProviderInstance.settings.userInfoFn)?this.idpProviderInstance.settings.userInfoFn(this.idpProviderInstance.settings,r).then(u=>{this.setUserInfo(u),this.setLoggedIn(!0)}):H.isFunction(this.idpProviderInstance.userInfo)?this.idpProviderInstance.userInfo(n).then(u=>{this.setUserInfo(u),this.setLoggedIn(!0)}):(this.setLoggedIn(!0),this.setUserInfo(qc(this._userInfoStore))),H.isFunction(lt.getConfigValue("auth.events.onAuthSuccessful"))&&Qt.isNewlyAuthorized()&&await xr.handleAuthEvent("onAuthSuccessful",n,r),Qt.removeNewlyAuthorized(),H.isFunction(this.idpProviderInstance.setTokenExpirationAction)&&this.idpProviderInstance.setTokenExpirationAction(),H.isFunction(this.idpProviderInstance.setTokenExpireSoonAction)&&this.idpProviderInstance.setTokenExpireSoonAction()}async startAuthorization(){if(this.idpProviderInstance)return this.idpProviderInstance.login().then(n=>{Qt.setNewlyAuthorized(),n&&console.error(n)})}logout(){const n=er.getStoredAuthData(),r=async l=>{await xr.handleAuthEvent("onLogout",this.idpProviderInstance.settings,void 0,l),Qt.removeAuthData()},a=lt.getConfigValue(`auth.${lt.getConfigValue("auth.use")}.logoutFn`),u=lt.getConfigValueAsync("navigation.profile.logout.customLogoutFn");H.isFunction(a)?a(this.idpProviderInstance.settings,n,r):H.isFunction(this.idpProviderInstance.logout)?this.idpProviderInstance.logout(n,r):u&&H.isFunction(u)?u(n,r):r(this.idpProviderInstance.settings.logoutUrl)}createIdpProviderException(n){return{message:n,name:"IdpProviderException"}}async getIdpProviderInstance(n,r){const a=H.getConfigValueFromObject(r,"idpProvider");if(a){const l=await new a(r);return["login"].forEach(c=>{if(!H.isFunction(l[c]))throw this.createIdpProviderException(`${c} function does not exist in custom IDP Provider ${n}`)}),l}if(H.isFunction(lt.getConfigValue("auth.events.onAuthConfigError")))await xr.handleAuthEvent("onAuthConfigError",{idpProviderName:n,type:"IdpProviderException"});else throw this.createIdpProviderException(`IDP Provider ${n} does not exist.`)}unload(){this.idpProviderInstance&&H.isFunction(this.idpProviderInstance.unload)&&this.idpProviderInstance.unload()}resetExpirationChecks(){this.idpProviderInstance&&H.isFunction(this.idpProviderInstance.resetExpirationChecks)&&this.idpProviderInstance.resetExpirationChecks()}}const Ur=new LS,$S={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"}}},OS=$S,Ws={sanitizeHtml(i=""){return i.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/javascript:/g,"")},restoreSanitizedBrs(i=""){return i.replace(/<br\/>/g,"<br>").replace(/<br \/>/g,"<br>").replace(/<br>/g,"<br>").replace(/<br >/g,"<br>")},restoreSanitizedElements(i=""){let n=i;const r=["i","b","br","mark","strong","em","small","del","ins","sub","sup"];for(let a=0;a<r.length;a++){const u=new RegExp(`<${r[a]}/>`,"g"),l=new RegExp(`<${r[a]} />`,"g"),c=new RegExp(`<${r[a]}>`,"g"),h=new RegExp(`<${r[a]} >`,"g"),p=new RegExp(`</${r[a]}[/]>`,"g"),v=new RegExp(`</${r[a]} [/]>`,"g"),R=new RegExp(`<[/]${r[a]}>`,"g"),C=new RegExp(`<[/]${r[a]} >`,"g");n=n.replace(u,`<${r[a]}>`).replace(l,`<${r[a]}>`).replace(c,`<${r[a]}>`).replace(h,`<${r[a]}>`).replace(p,`</${r[a]}>`).replace(v,`</${r[a]}>`).replace(R,`</${r[a]}>`).replace(C,`</${r[a]}>`)}return n},sanatizeHtmlExceptTextFormatting(i=""){return this.restoreSanitizedElements(this.sanitizeHtml(i))},sanitizeParam(i=""){return String(i).replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")},escapeKeyForRegexp(i=""){return i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},processTextAndLinks(i="",n,r){const u={sanitizedText:this.restoreSanitizedBrs(this.sanitizeHtml(i)),links:[]};return n?Object.entries(n).reduce((l,[c,h])=>{const p=`_luigi_alert_${r}_link_${this.sanitizeParam(c)}`,v=this.restoreSanitizedBrs(this.sanitizeHtml(h.text)),R=`<a id="${p}">${v}</a>`,C=this.escapeKeyForRegexp(c),E=new RegExp(`({${C}})`,"g");return{sanitizedText:l.sanitizedText.replace(E,R),links:l.links.concat({elemId:p,url:h.url?encodeURI(this.sanitizeHtml(h.url)):void 0,dismissKey:h.dismissKey?encodeURI(this.sanitizeHtml(h.dismissKey)):void 0})}},u):u}};class NS{constructor(n){this.luigi=n,this.currentLocaleStorageKey="luigi.currentLocale",this.defaultLocale="en",this.listeners={},this.translationTable=OS}_init(){this._initCustomImplementation(),this.addCurrentLocaleChangeListener(n=>{this.broadcastLocaleToAllContainers(n)})}getCurrentLocale(){return sessionStorage.getItem(this.currentLocaleStorageKey)||this.defaultLocale}setCurrentLocale(n,r){var a,u;if(!((a=r==null?void 0:r.clientPermissions)!=null&&a.changeCurrentLocale)){console.error('Current locale change declined from client, as client permission "changeCurrentLocale" is not set for this view.');return}n&&(r&&(r.locale=n),sessionStorage.setItem(this.currentLocaleStorageKey,n),this._notifyLocaleChange(n)),(u=this.luigi.getEngine()._connector)==null||u.setCurrentLocale(n)}addCurrentLocaleChangeListener(n){let r=null;return H.isFunction(n)?(r=H.getRandomId(),this.listeners[r]=n):console.error("Provided locale change listener is not a function."),r}removeCurrentLocaleChangeListener(n){n&&this.listeners[n]?delete this.listeners[n]:console.error("Unable to remove locale change listener - no listener registered for given ID.")}getTranslation(n,r=void 0,a=void 0){if(!n)return"";if(this.translationImpl){const l=this.translationImpl.getTranslation(n,r,a);if(l!==n)return l}const u=this.findTranslation(n,this.translationTable,r);return u||n}_notifyLocaleChange(n){Object.getOwnPropertyNames(this.listeners).forEach(r=>{this.listeners[Number(r)](n)}),this.luigi.configChanged()}_initCustomImplementation(){this.translationImpl=this.luigi.getConfigValue("settings.customTranslationImplementation"),H.isFunction(this.translationImpl)&&(this.translationImpl=this.translationImpl())}broadcastLocaleToAllContainers(n){const r=H.getNodeList("luigi-container[lui_container]");r!=null&&r.length&&n&&r.forEach(a=>{a.locale=n,a.updateContext({locale:n})})}findTranslation(n,r,a){const u=n.split(".");for(let l=0;l<u.length;l++){const c=u[l];if(Object.prototype.hasOwnProperty.call(r,c)&&typeof r[c]=="object")r=r[c];else return a?this.findInterpolations(r[c],a):r[c]}}findInterpolations(n,r){return typeof n!="string"||!n.trim()||Object.keys(r).forEach(a=>{n=n.replace(new RegExp("{"+Ws.escapeKeyForRegexp(a)+"}","gi"),r[a])}),n}}const US={luigiAfterInit:async i=>{H.getConfigBooleanValue(i.getConfig(),"settings.appLoadingIndicator.hideAutomatically")&&setTimeout(()=>{i.ux().hideAppLoadingIndicator()},0),await lt.executeConfigFnAsync("lifecycleHooks.luigiAfterInit")}};class DS{constructor(){this.featureToggleList=new Set}setFeatureToggle(n,r=!1){this.isValid(n)&&(n.startsWith("!")&&!r||this.isDuplicatedOrDisabled(n)||this.featureToggleList.add(n))}unsetFeatureToggle(n){if(this.isValid(n)){if(!this.featureToggleList.has(n)){console.warn("Feature toggle name is not in the list.");return}this.featureToggleList.delete(n)}}getActiveFeatureToggleList(){return[...Array.from(this.featureToggleList)].filter(r=>!r.startsWith("!"))}isValid(n){return H.isString(n)?!0:(console.warn("Feature toggle name is not valid or not of type 'string'"),!1)}isDuplicatedOrDisabled(n){return this.featureToggleList.has(n)?(console.warn("Feature toggle name already exists"),!0):this.featureToggleList.has(`!${n}`)?(console.warn("Disabled feature toggle can not be activated"),!0):!1}}class Fn{constructor(n){this.luigi=n,this._modalStack=[],this.modalSettings={}}async closeModals(){if(this._modalStack.length===0)return;const n=[...this._modalStack];for(const{onInternalClose:r}of n)try{typeof r=="function"&&r()}catch(a){console.warn("onInternalClose threw an error",a)}this.clearModalStack()}registerModal(n){n&&this._modalStack.push(n)}getModalSettings(){return this._modalStack.length>0?this._modalStack[0].modalsettings||{}:{}}getModalStackLength(){return this._modalStack.length}updateFirstModalSettings(n){if(this._modalStack.length>0){const r=this._modalStack[0];r.modalsettings={...r.modalsettings,...n}}}clearModalStack(){this._modalStack=[]}removeLastModalFromStack(){this._modalStack.pop()}}const Ve={normalizePath:i=>{if(!i||i.length<=0)return i;let n=i;return n.startsWith("#")&&(n=n.substring(1)),n.startsWith("/")&&(n=n.substring(1)),n},segmentMatches:(i,n,r)=>!!(i===n||n.startsWith(":")&&r&&r[n.substr(1)]===i),checkMatch:(i,n,r)=>{let a=!0;return H.trimTrailingSlash(H.trimLeadingSlash(i)).split("/").forEach((u,l)=>{var c,h;a&&(l+1>=n.length||!((c=n[l+1])!=null&&c.pathSegment)||!Ve.segmentMatches(u,((h=n[l+1])==null?void 0:h.pathSegment)??"",r??{}))&&(a=!1)}),a},checkVisibleForFeatureToggles:(i,n)=>{if(i!=null&&i.visibleForFeatureToggles){const r=(n==null?void 0:n.getActiveFeatureToggleList())||[];for(const a of i.visibleForFeatureToggles)if(a.startsWith("!")){if(r.includes(a.slice(1)))return!1}else if(!r.includes(a))return!1}return!0},generateTooltipText:(i,n,r)=>{let a=i==null?void 0:i.tooltipText;switch(a===void 0&&(a=r.getConfigValue("navigation.defaults.tooltipText")),a){case void 0:return n;case!1:return"";default:return r.i18n().getTranslation(a)}},isNodeAccessPermitted:(i,n,r,a)=>{if(a.auth().isAuthorizationEnabled()){const c=er.isLoggedIn(),h=i.anonymousAccess;if(c&&h==="exclusive"||!c&&h!=="exclusive"&&h!==!0)return!1}const u=a.featureToggles();if(!Ve.checkVisibleForFeatureToggles(i,u))return!1;const l=a.getConfigValue("navigation.nodeAccessibilityResolver");return typeof l!="function"?!0:l(i,n,r)},updateHeaderTitle:(i,n)=>{const r=i==null?void 0:i.items;if(r&&n){let a="";return[...r].sort((u,l)=>(l.link||"").localeCompare(u.link||"")).some(u=>{let l=!1;if(l=Ve.checkMatch(u.link||"",n.nodesInPath??[]),!l&&u.selectionConditions&&u.selectionConditions.route&&(l=Ve.checkMatch(u.selectionConditions.route,n.nodesInPath??[]),l&&(u.selectionConditions.contextCriteria||[]).forEach(c=>{var h,p;l=l&&((p=(h=n==null?void 0:n.selectedNode)==null?void 0:h.context)==null?void 0:p[c.key])===c.value})),l)return a=u.title||"",!0}),a}},buildPath(i,n){return i.map(a=>{var l;const u=a.pathSegment;if(u!=null&&u.startsWith(":")){const c=u.slice(1),h=(l=n==null?void 0:n.pathParams)==null?void 0:l[c];if(h!=null)return encodeURIComponent(String(h))}return u}).join("/")},mergeContext(...i){return Object.assign({},...i)},prepareForTests(...i){let n="";return i.forEach(r=>{r&&(n+=(n?"_":"")+encodeURIComponent(r.toLowerCase().split(" ").join("")))}),n},findVirtualTreeRootNode(i){if(i.virtualTree)return i;if(i.parent)return Ve.findVirtualTreeRootNode(i.parent)}};class kn{constructor(){this.dataManagement=new Map}setChildren(n,r){this.dataManagement.set(n,r),this.navPath=""}getChildren(n){return n?this.dataManagement.get(n):{}}hasChildren(n){const r=this.getChildren(n);return!!(r&&Object.prototype.hasOwnProperty.call(r,"children"))}setRootNode(n){this.dataManagement.set("_luigiRootNode",{node:n})}getRootNode(){return this.dataManagement.get("_luigiRootNode")}hasRootNode(){return!!this.getRootNode()}deleteCache(){this.dataManagement.clear()}deleteNodesRecursively(n){if(this.hasChildren(n)){const r=this.getChildren(n).children;for(let a=0;a<r.length;a++)this.deleteNodesRecursively(r[a])}this.dataManagement.delete(n)}}const W={defaultContentViewParamPrefix:"~",defaultQueryParamSeparator:"?",defaultModalViewParamName:"modal",addParamsOnHashRouting(i,n,r){let a=n;const[u,l]=a.split("?"),c=new URLSearchParams(l);return this.modifySearchParams(i,c,r),a=u,c.toString()!==""&&(a+=`?${c.toString()}`),a},modifySearchParams(i,n,r){for(const[a,u]of Object.entries(i)){const l=r?`${r}${a}`:a;n.set(l,u),u===void 0&&n.delete(l)}},filterNodeParams(i,n){const r={},a=this.getContentViewParamPrefix(n);return i&&Object.entries(i).forEach(u=>{if(u[0].startsWith(a)){const l=u[0].substr(a.length);r[l]=u[1]}}),this.sanitizeParamsMap(r)},getContentViewParamPrefix(i){let n=i==null?void 0:i.getConfigValue("routing.nodeParamPrefix");return n===!1?n="":n||(n=this.defaultContentViewParamPrefix),n},sanitizeParamsMap(i){return Object.entries(i).reduce((n,r)=>(n[Ws.sanitizeParam(r[0])]=Ws.sanitizeParam(r[1]),n),{})},prepareSearchParamsForClient(i,n){const r={};return i&&i.clientPermissions&&i.clientPermissions.urlParameters&&Object.keys(i.clientPermissions.urlParameters).forEach(a=>{var u,l;a in n.routing().getSearchParams()&&((u=i.clientPermissions)!=null&&u.urlParameters)&&((l=i.clientPermissions.urlParameters[a])==null?void 0:l.read)===!0&&(r[a]=n.routing().getSearchParams()[a])}),r},getCurrentPath(i){if(i){const n=Ve.normalizePath(location.hash),[r,a]=n.split("?");return{path:r,query:a}}else return{path:Ve.normalizePath(location.pathname),query:location.search}},getModalPathFromPath(i){return this.getQueryParam(this.getModalViewParamName(i),i)},getQueryParam(i,n){return this.getQueryParams(n)[i]},getQueryParams(i){return i.getConfigValue("routing.useHashRouting")?this.getLocationHashQueryParams():this.getLocationSearchQueryParams()},getLocationSearchQueryParams(){return W.getLocation().search?W.parseParams(W.getLocation().search.slice(1)):{}},getLocation(){return location},getLocationHashQueryParams(){const i=W.getLocation().hash.indexOf(this.defaultQueryParamSeparator);return i!==-1?W.parseParams(W.getLocation().hash.slice(i+1)):{}},getModalViewParamName(i){let n=i.getConfigValue("routing.modalPathParam");return n||(n=this.defaultModalViewParamName),n},parseParams(i){const n=new URLSearchParams(i),r=new Map;for(const[a,u]of n.entries())r.set(a,u);return Object.fromEntries(r)},getModalParamsFromPath(i){const n=this.getQueryParam(`${this.getModalViewParamName(i)}Params`,i);return n&&JSON.parse(n)},getHashQueryParamSeparator(){return this.defaultQueryParamSeparator},getURLWithoutModalData(i,n){const r=new URLSearchParams(i);return r.delete(n),r.delete(`${n}Params`),r.toString()},handleHistoryState(i,n){return i&&i.modalHistoryLength?i.modalHistoryLength+=1:i={modalHistoryLength:1,historygap:history.length,pathBeforeHistory:n},i},encodeParams(i){const n=[];for(const r in i)n.push(encodeURIComponent(r)+"="+encodeURIComponent(i[r]));return n.join("&")},getLastNodeObject(i){return(i.nodesInPath?[...i.nodesInPath].pop():{})||{}},checkWCUrl(i,n){if(i.indexOf("://")>0||i.trim().indexOf("//")===0){if(new URL(i).host===window.location.host)return!0;const a=n.getConfigValue("navigation.validWebcomponentUrls");if((a==null?void 0:a.length)>0)for(const u of a)try{if(new RegExp(u).test(i))return!0}catch(l){console.error(l)}return!1}return!0},setFeatureToggles(i,n,r){const a=this.sanitizeParamsMap(this.parseParams(n.split("?")[1]));let u;if(a[i]&&(u=a[i]),!u)return;const l=u.split(",");l.length>0&&l[0]!==""&&l.forEach(c=>r==null?void 0:r.setFeatureToggle(c,!0))},substituteDynamicParamsInObject(i,n,r=":",a=!1){return Object.entries(i).map(([u,l])=>{const c=a?Object.keys(n).find(h=>l&&l.indexOf(r+h)>=0):Object.keys(n).find(h=>l===r+h);return[u,c?a?l.replace(r+c,n[c]):n[c]:l]}).reduce((u,[l,c])=>Object.assign(u,{[l]:c}),{})},isDynamicNode(i){return typeof i.pathSegment=="string"&&i.pathSegment.length>0&&i.pathSegment[0]===":"},getDynamicNodeValue(i,n){return this.isDynamicNode(i)&&i.pathSegment?n[i.pathSegment.substring(1)]:void 0},getNodePath(i,n){return!i||n?i?this.buildRoute(i,i.pathSegment?"/"+i.pathSegment:"",n):"":`${i.parent?this.getNodePath(i.parent):""}/${i.pathSegment}`},buildRoute(i,n,r){return i.parent?this.buildRoute(i.parent,`/${i.parent.pathSegment}${n}`,r):n+(r?"?"+r:"")},substituteViewUrl(i,n,r){return i=H.replaceVars(i,n,":",!1),i},getSubPath(i,n){return H.replaceVars(W.getNodePath(i),n,":",!1)},concatenatePath(i,n){let r=H.getPathWithoutHashOrSlash(i);return r?(n&&(r.endsWith("/")&&(r=r.substring(0,r.length-1)),n.startsWith("/")||(r+="/"),r+=n),r):n}},mo={logout:{label:"Sign Out",icon:"log"}};class MS{constructor(){this.services=new Map}register(n,r,a=!0){this.services.set(n,{factory:r,singleton:a})}get(n){const r=this.services.get(n);if(!r)throw new Error(`Service '${n}' is not registered.`);return r.singleton?(r.instance||(r.instance=r.factory()),r.instance):r.factory()}}const re=new MS;class Wn{constructor(n){this.luigi=n}getModalService(){return this.modalService||(this.modalService=re.get(Fn)),this.modalService}getNodeDataManagementService(){return this.nodeDataManagementService||(this.nodeDataManagementService=re.get(kn)),this.nodeDataManagementService}async getPathData(n){var v,R,C;const r=this.luigi.getConfig();let a=n.split("/");(a==null?void 0:a.length)>0&&a[0]===""&&(a=a.slice(1));let l=((v=r.navigation)==null?void 0:v.globalContext)||{},c;if(this.getNodeDataManagementService().hasRootNode())c=this.getNodeDataManagementService().getRootNode().node;else{let E=await this.luigi.getConfigValueAsync("navigation.nodes");typeof E=="object"&&!Array.isArray(E)?(c=E,c.pathSegment&&(c.pathSegment="",console.warn("Root node must have an empty path segment. Provided path segment will be ignored."))):c={children:E},c.children=await this.getChildren(c,l),c.children=this.prepareRootNodes(c.children||[],l),this.getNodeDataManagementService().setRootNode(c)}let h={};const p={selectedNodeChildren:c.children,nodesInPath:[c],rootNodes:c.children,pathParams:h};if(c.viewUrl&&a.length===0)p.selectedNode=c;else for(const E of a)if(p.selectedNodeChildren){const T=this.findMatchingNode(E,p.selectedNodeChildren||[]);if(!T){console.warn("No matching node found for segment:",E);break}const A=T.context||{},O=Ve.mergeContext(l,A);let N=O;if((R=T.pathSegment)!=null&&R.startsWith(":")&&(h[T.pathSegment.replace(":","")]=Ws.sanitizeParam(E),N=W.substituteDynamicParamsInObject(O,h)),l=N,T.context=N,p.selectedNode=T,p.selectedNode&&((C=p.nodesInPath)==null||C.push(p.selectedNode)),T.virtualTree||T._virtualTree){const V=this.buildVirtualTree(T,E,h);V&&V.length>0&&(T.children=V)}p.selectedNodeChildren=await this.getChildren(T,l)}return p}findMatchingNode(n,r){let a;const u=r.filter(c=>!!c.pathSegment).length,l=r.filter(c=>c.pathSegment&&c.pathSegment.startsWith(":")).length;if(u>1&&(l===1&&(console.warn(`Invalid node setup detected.
|
|
28
28
|
Static and dynamic nodes cannot be used together on the same level. Static node gets cleaned up.
|
|
29
29
|
Remove the static node from the configuration to resolve this warning.
|
|
30
30
|
Affected pathSegment:`,n,"Children:",r),r=r.filter(c=>c.pathSegment&&c.pathSegment.startsWith(":"))),l>1)){console.error(`Invalid node setup detected.
|
|
31
31
|
Multiple dynamic nodes are not allowed on the same level. Stopped navigation.
|
|
32
|
-
Invalid Children:`,r);return}return r.some(c=>{if(c.pathSegment===n||c.pathSegment&&c.pathSegment.startsWith(":"))return a=c,!0}),a}buildNavItems(n,r,a){const u={},l=[];return n==null||n.forEach(c=>{var h,p,v;if(Ve.isNodeAccessPermitted(c,this.getParentNode(a.selectedNode,a),((h=a==null?void 0:a.selectedNode)==null?void 0:h.context)||{},this.luigi))if(c.category){const A=c.category.id||c.category.label||c.category,C=this.luigi.i18n().getTranslation(c.category.label||c.category.id||c.category);let E=u[A];E||(E={category:{altText:c.category.altText||"",icon:c.category.icon,id:A,label:C,nodes:[],tooltip:this.resolveTooltipText(c.category,C)}},u[A]=E,l.push(E)),(v=(p=E.category)==null?void 0:p.nodes)==null||v.push({node:c,selected:c===r,label:c.label?this.luigi.i18n().getTranslation(c.label):void 0,tooltip:c.label?this.resolveTooltipText(c,c.label):void 0,altText:c.altText,icon:c.icon})}else l.push({altText:c.altText,icon:c.icon,label:c.label?this.luigi.i18n().getTranslation(c.label):void 0,tooltip:c.label?this.resolveTooltipText(c,c.label):void 0,node:c,selected:c===r})}),l}async shouldRedirect(n,r){var u,l,c,h;const a=r??await this.getPathData(n);if(n=="")return(u=a==null?void 0:a.nodesInPath)!=null&&u[0].viewUrl||(c=(l=a==null?void 0:a.rootNodes)==null?void 0:l[0])==null?void 0:c.pathSegment;if(a!=null&&a.selectedNode&&!a.selectedNode.viewUrl&&((h=a.selectedNode.children)!=null&&h.length))return n+"/"+a.selectedNode.children[0].pathSegment}async getCurrentNode(n){var u;const r=await this.getPathData(n),a=r.selectedNode;if(!(!a||!Ve.isNodeAccessPermitted(a,this.getParentNode(r.selectedNode,r),((u=r==null?void 0:r.selectedNode)==null?void 0:u.context)||{},this.luigi)))return a}async getPathParams(n){return(await this.getPathData(n)).pathParams}getTruncatedChildren(n){let r=!1,a=!1,u=[];return n.slice().reverse().forEach(l=>{(!r||l.tabNav)&&(l.tabNav===!1&&(a=!0),l.keepSelectedForChildren===!1?r=!0:(l.keepSelectedForChildren||l.tabNav&&!a)&&(r=!0,u=[])),u.push(l)}),u.reverse()}applyNavGroups(n){const r={},a=[],l=[];return n.forEach(c=>{if(c.node)l.push(c);else if(c.category){const h=c.category.id;h&&h.indexOf("::")>0?a.push(c):(c.category.isGroup,r[h]=c,l.push(c))}}),a.forEach(c=>{var v;const h=((v=c.category)==null?void 0:v.id.split("::")[0])||"",p=r[h];p&&p.category&&(p.category.isGroup||(p.category.isGroup=!0),p.category.nodes||(p.category.nodes=[]),p.category.nodes.push(c))}),l.filter(c=>{var h,p,v,A,C,E;if((h=c.category)!=null&&h.isGroup&&((p=c.category)!=null&&p.nodes)&&((v=c.category)==null?void 0:v.nodes.length)>0){for(let y=0;y<((A=c.category)==null?void 0:A.nodes.length);y++){const b=(C=c.category)==null?void 0:C.nodes[y];if(b.node&&!b.node.hideFromNav&&b.node.label||(E=b.category)!=null&&E.nodes&&b.category.nodes.filter(O=>{var N,G;return!((N=O.node)!=null&&N.hideFromNav)&&((G=O.node)==null?void 0:G.label)}).length>0)return!0}return!1}return!0})}async getLeftNavData(n,r){var y,b,O;const a=r??await this.getPathData(n);if(n===""&&((y=a==null?void 0:a.nodesInPath)!=null&&y[0].viewUrl))return{items:[],basePath:"",selectedNode:void 0,navClick:void 0};let u=[];const l=[];let c="";(b=a.nodesInPath)==null||b.forEach(N=>{N.children&&(N.tabNav||(c+="/"+(N.pathSegment||"")),l.push(N))});const h=this.getTruncatedChildren(a.nodesInPath);let p=[...h].pop(),v=a.selectedNode;(p!=null&&p.keepSelectedForChildren||p!=null&&p.tabNav)&&(v=p,h.pop(),p=[...h].pop());let A,C=v;v?a.rootNodes.includes(v)?(A=v,C=void 0):v.tabNav||v.keepSelectedForChildren?A=p:A=[...l].pop():(A=[...l].pop(),C=void 0);let E=await this.getChildren(A,(A==null?void 0:A.context)||{})||[];return u=this.buildNavItems(E,C,a),u=this.applyNavGroups(u),{selectedNode:v,items:u,basePath:c.replace(/\/\/+/g,"/"),sideNavFooterText:(O=this.luigi.getConfig().settings)==null?void 0:O.sideNavFooterText,navClick:N=>N.node&&this.navItemClick(N.node,a)}}navItemClick(n,r){let a=Q.buildRoute(n,`/${n.pathSegment}`),u=r==null?void 0:r.pathParams;if(a=H.replaceVars(a,u||{},":",!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}this.luigi.navigation().navigate(a)}async getTopNavData(n,r){var y,b,O,N,G,ae,ce,Ge,Ee,Qe,Pe,Fe,Ie,Ce,Te,U,Dt,Ze,Oe,Yt,x,qe,ie,ye,ke,Di,Mi;const a=this.luigi.getConfig(),u=r??await this.getPathData(n),l=(O=(b=(y=a.navigation)==null?void 0:y.profile)==null?void 0:b.items)!=null&&O.length?JSON.parse(JSON.stringify(a.navigation.profile.items)):[],c=((N=a.navigation)==null?void 0:N.appSwitcher)&&this.getAppSwitcherData((G=a.navigation)==null?void 0:G.appSwitcher,(ae=a.settings)==null?void 0:ae.header),h=Ve.updateHeaderTitle(c,u);l!=null&&l.length&&l.map(me=>({...me,label:this.luigi.i18n().getTranslation(me.label||"")}));const p=this.luigi.i18n().getTranslation((Ee=(Ge=(ce=a.navigation)==null?void 0:ce.profile)==null?void 0:Ge.logout)==null?void 0:Ee.label)||mo.logout.label,v=me=>{var Et,an;if(me.openNodeInModal&&!((Et=me.externalLink)!=null&&Et.url))this.luigi.navigation().openAsModal(me.link||"",me.openNodeInModal===!0?{}:me.openNodeInModal);else if(me.link)this.luigi.navigation().navigate(me.link);else if((an=me.externalLink)!=null&&an.url)if(me.externalLink.sameWindow)window.location.href=me.externalLink.url;else{const jr=window.open(me.externalLink.url,"_blank","noopener noreferrer");jr&&(jr.opener=null,jr.focus())}},A={authEnabled:this.luigi.auth().isAuthorizationEnabled(),signedIn:this.luigi.auth().isAuthorizationEnabled()&&er.isLoggedIn(),items:l,itemClick:v,logout:{altText:this.luigi.i18n().getTranslation((Fe=(Pe=(Qe=a.navigation)==null?void 0:Qe.profile)==null?void 0:Pe.logout)==null?void 0:Fe.altText)||mo.logout.label,label:p,icon:((Te=(Ce=(Ie=a.navigation)==null?void 0:Ie.profile)==null?void 0:Ce.logout)==null?void 0:Te.icon)||mo.logout.icon,testId:((Ze=(Dt=(U=a.navigation)==null?void 0:U.profile)==null?void 0:Dt.logout)==null?void 0:Ze.testId)||Ve.prepareForTests(p),doLogout:()=>{Ur.logout()}},onUserInfoUpdate:me=>{this.luigi.getConfigValueAsync("navigation.profile.staticUserInfoFn").then(Et=>{Et?me(Et):Ur.getUserInfoStore().subscribe(an=>{me(an)})})}},C=u.selectedNode,E=C&&u.rootNodes.includes(C)?C:void 0;return{appTitle:h||((Yt=(Oe=a.settings)==null?void 0:Oe.header)==null?void 0:Yt.title),logo:(qe=(x=a.settings)==null?void 0:x.header)==null?void 0:qe.logo,topNodes:this.buildNavItems(u.rootNodes,E,u),productSwitcher:(ie=a.navigation)==null?void 0:ie.productSwitcher,profile:this.luigi.auth().isAuthorizationEnabled()||(ye=a.navigation)!=null&&ye.profile?A:void 0,appSwitcher:((ke=a.navigation)==null?void 0:ke.appSwitcher)&&this.getAppSwitcherData((Di=a.navigation)==null?void 0:Di.appSwitcher,(Mi=a.settings)==null?void 0:Mi.header),navClick:me=>me.node&&this.navItemClick(me.node,u)}}getParentNode(n,r){var a;if(n&&n===((a=r.nodesInPath)==null?void 0:a[r.nodesInPath.length-1]))return r.nodesInPath[r.nodesInPath.length-2]}getAppSwitcherData(n,r){var l;const a=n,u=a==null?void 0:a.showMainAppEntry;if(a&&a.items&&u){const c={title:this.luigi.i18n().getTranslation(r.title||""),subTitle:r.subTitle,link:"/"};if((l=a.items)==null||l.map(h=>({...h,title:this.luigi.i18n().getTranslation(h.title||"")})),a.items.some(h=>h.link===c.link))return a;a.items.unshift(c)}return a}async getTabNavData(n,r){var v,A;const a=r??await this.getPathData(n);if(n===""&&((v=a==null?void 0:a.nodesInPath)!=null&&v[0].viewUrl))return{};const u=a==null?void 0:a.selectedNode;let l;if(!u)return{};if(!u.tabNav&&(l=this.getParentNode(u,a),l&&!l.tabNav))return{};let c="";(A=a.nodesInPath)==null||A.forEach(C=>{C.children&&(c+="/"+(C.pathSegment||""))});const h=l?this.getTruncatedChildren(l.children):this.getTruncatedChildren(u.children),p=this.buildNavItems(h,u,a);return{selectedNode:u,items:p,basePath:c.replace(/\/\/+/g,"/"),navClick:C=>C.node&&this.navItemClick(C.node,a)}}onNodeChange(n,r){const a=this.luigi.getConfigValue("navigation.nodeChangeHook");H.isFunction(a)?a(n,r):a!==void 0&&console.warn("nodeChangeHook is not a function!")}async extractDataFromPath(n){const r=await this.getPathData(n);return{nodeObject:Q.getLastNodeObject(r),pathData:r}}async shouldPreventNavigation(n){return!!(n!=null&&n.onNodeActivation&&(H.isFunction(n.onNodeActivation)||H.isAsyncFunction(n.onNodeActivation))&&await n.onNodeActivation(n)===!1)}async shouldPreventNavigationForPath(n){const{nodeObject:r}=await this.extractDataFromPath(n);return!!await this.shouldPreventNavigation(r)}async openViewInNewTab(n){if(await this.shouldPreventNavigationForPath(n))return;this.luigi.getConfigValue("routing.useHashRouting")&&(n="#"+n),window.open(n,"_blank","noopener,noreferrer")}resolveTooltipText(n,r){return Ve.generateTooltipText(n,r,this.luigi)}prepareRootNodes(n,r){const a=n;return a.length&&a.forEach(u=>{u.isRootNode=!0}),a}getAccessibleNodes(n,r,a){return r?r.filter(u=>Ve.isNodeAccessPermitted(u,n,a,this.luigi)):[]}async handleNavigationRequest(n,r){var b;const{path:a,preserveView:u,modalSettings:l,newTab:c,withoutSync:h,preventContextUpdate:p,preventHistoryEntry:v,options:A}=n;let C=await this.buildPath(a,A==null?void 0:A.fromVirtualTreeRoot);const E=C.replace(/\/\/+/g,"/"),y=v?"replaceState":"pushState";if(l)l.keepPrevious||this.getModalService().closeModals(),this.luigi.navigation().openAsModal(E,l,r);else{const O={detail:{preventContextUpdate:!!p,preventHistoryEntry:!!v,withoutSync:!!h}};if(await re.get(Fn).closeModals(),c){await this.openViewInNewTab(C);return}const N=this.luigi.getConfigValue("routing.disableBrowserHistory")?"replaceState":y;if((b=this.luigi.getConfig().routing)!=null&&b.useHashRouting)if(!h&&N!=="replaceState")location.hash=E;else{const G=new CustomEvent("hashchange",O);window.history[N]({path:"/#"+E},"","/#"+E),window.dispatchEvent(G)}else{const G=new CustomEvent("popstate",O);window.history[N]({path:E},"",E),window.dispatchEvent(G)}}}async getChildren(n,r={}){const a=re.get(kn);if(!n)return[];let u=[];if(a.hasChildren(n)){let c=a.getChildren(n);c&&(u=c.children)}else try{u=await Or.getConfigValueFromObjectAsync(n,"children",r||n.context),u==null&&(u=[]),u=u.map(c=>this.getExpandStructuralPathSegment(c)).map(c=>this.bindChildToParent(c,n))||[]}catch(c){console.error("Could not lazy-load children for node",c)}let l=this.getAccessibleNodes(n,u,r);return a.setChildren(n,{children:u,filteredChildren:l}),l}getExpandStructuralPathSegment(n){if(n&&n.pathSegment&&n.pathSegment.indexOf("/")!==-1){const r=n.pathSegment.split("/"),a={...n},u=(l,c)=>{const h=l.shift();let p={};return l.length?(p.pathSegment=h,c.hideFromNav&&(p.hideFromNav=c.hideFromNav),p.children=[u(l,c)]):(p=a,p.pathSegment=h),p};return u(r,n)}return n}bindChildToParent(n,r){return r&&r.pathSegment&&(n.parent=r),n}buildVirtualTree(n,r,a){const u=n.virtualTree,l=n._virtualTree,c=n._virtualViewUrl||n.viewUrl;if((u||l)&&r[0]){let h=typeof n._virtualPathIndex=="number"?n._virtualPathIndex:void 0;u&&(h=void 0,n.keepSelectedForChildren=!0);const p=50;if(typeof h=="number"&&h>p)return;const v=(h??0)+1;if(v>p)return;const A=["_*","virtualTree","parent","children","keepSelectedForChildren","navigationContext"],C=H.removeProperties(n,A);Object.assign(C,{pathSegment:":virtualSegment_"+v,label:":virtualSegment_"+v,viewUrl:H.trimTrailingSlash(this.buildVirtualViewUrl(c||"",a,v)),_virtualTree:!0,_virtualPathIndex:v,_virtualViewUrl:c});const E=Array.isArray(n.children)&&n.children.length>0?n.children[0]._virtualTree:!1;n.children&&!E&&console.warn(`Found both virtualTree and children nodes defined on a navigation node.
|
|
32
|
+
Invalid Children:`,r);return}return r.some(c=>{if(c.pathSegment===n||c.pathSegment&&c.pathSegment.startsWith(":"))return a=c,!0}),a}buildNavItems(n,r,a){const u={},l=[];return n==null||n.forEach(c=>{var h,p,v;if(Ve.isNodeAccessPermitted(c,this.getParentNode(a.selectedNode,a),((h=a==null?void 0:a.selectedNode)==null?void 0:h.context)||{},this.luigi))if(c.category){const R=c.category.id||c.category.label||c.category,C=this.luigi.i18n().getTranslation(c.category.label||c.category.id||c.category);let E=u[R];E||(E={category:{altText:c.category.altText||"",icon:c.category.icon,id:R,label:C,nodes:[],tooltip:this.resolveTooltipText(c.category,C)}},u[R]=E,l.push(E)),(v=(p=E.category)==null?void 0:p.nodes)==null||v.push({node:c,selected:c===r,label:c.label?this.luigi.i18n().getTranslation(c.label):void 0,tooltip:c.label?this.resolveTooltipText(c,c.label):void 0,altText:c.altText,icon:c.icon})}else l.push({altText:c.altText,icon:c.icon,label:c.label?this.luigi.i18n().getTranslation(c.label):void 0,tooltip:c.label?this.resolveTooltipText(c,c.label):void 0,node:c,selected:c===r})}),l}async shouldRedirect(n,r){var u,l,c,h;const a=r??await this.getPathData(n);if(n=="")return(u=a==null?void 0:a.nodesInPath)!=null&&u[0].viewUrl||(c=(l=a==null?void 0:a.rootNodes)==null?void 0:l[0])==null?void 0:c.pathSegment;if(a!=null&&a.selectedNode&&!a.selectedNode.viewUrl&&((h=a.selectedNode.children)!=null&&h.length))return n+"/"+a.selectedNode.children[0].pathSegment}async getCurrentNode(n){var u;const r=await this.getPathData(n),a=r.selectedNode;if(!(!a||!Ve.isNodeAccessPermitted(a,this.getParentNode(r.selectedNode,r),((u=r==null?void 0:r.selectedNode)==null?void 0:u.context)||{},this.luigi)))return a}async getPathParams(n){return(await this.getPathData(n)).pathParams}getTruncatedChildren(n){let r=!1,a=!1,u=[];return n.slice().reverse().forEach(l=>{(!r||l.tabNav)&&(l.tabNav===!1&&(a=!0),l.keepSelectedForChildren===!1?r=!0:(l.keepSelectedForChildren||l.tabNav&&!a)&&(r=!0,u=[])),u.push(l)}),u.reverse()}applyNavGroups(n){const r={},a=[],l=[];return n.forEach(c=>{if(c.node)l.push(c);else if(c.category){const h=c.category.id;h&&h.indexOf("::")>0?a.push(c):(c.category.isGroup,r[h]=c,l.push(c))}}),a.forEach(c=>{var v;const h=((v=c.category)==null?void 0:v.id.split("::")[0])||"",p=r[h];p&&p.category&&(p.category.isGroup||(p.category.isGroup=!0),p.category.nodes||(p.category.nodes=[]),p.category.nodes.push(c))}),l.filter(c=>{var h,p,v,R,C,E;if((h=c.category)!=null&&h.isGroup&&((p=c.category)!=null&&p.nodes)&&((v=c.category)==null?void 0:v.nodes.length)>0){for(let T=0;T<((R=c.category)==null?void 0:R.nodes.length);T++){const A=(C=c.category)==null?void 0:C.nodes[T];if(A.node&&!A.node.hideFromNav&&A.node.label||(E=A.category)!=null&&E.nodes&&A.category.nodes.filter(O=>{var N,V;return!((N=O.node)!=null&&N.hideFromNav)&&((V=O.node)==null?void 0:V.label)}).length>0)return!0}return!1}return!0})}async getLeftNavData(n,r){var T,A,O;const a=r??await this.getPathData(n);if(n===""&&((T=a==null?void 0:a.nodesInPath)!=null&&T[0].viewUrl))return{items:[],basePath:"",selectedNode:void 0,navClick:void 0};let u=[];const l=[];let c="";(A=a.nodesInPath)==null||A.forEach(N=>{N.children&&(N.tabNav||(c+="/"+(N.pathSegment||"")),l.push(N))});const h=this.getTruncatedChildren(a.nodesInPath);let p=[...h].pop(),v=a.selectedNode;(p!=null&&p.keepSelectedForChildren||p!=null&&p.tabNav)&&(v=p,h.pop(),p=[...h].pop());let R,C=v;v?a.rootNodes.includes(v)?(R=v,C=void 0):v.tabNav||v.keepSelectedForChildren?R=p:R=[...l].pop():(R=[...l].pop(),C=void 0);let E=await this.getChildren(R,(R==null?void 0:R.context)||{})||[];return u=this.buildNavItems(E,C,a),u=this.applyNavGroups(u),{selectedNode:v,items:u,basePath:c.replace(/\/\/+/g,"/"),sideNavFooterText:(O=this.luigi.getConfig().settings)==null?void 0:O.sideNavFooterText,navClick:N=>N.node&&this.navItemClick(N.node,a)}}navItemClick(n,r){let a=W.getNodePath(n),u=r==null?void 0:r.pathParams;if(a=H.replaceVars(a,u||{},":",!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}this.luigi.navigation().navigate(a)}async getTopNavData(n,r){var T,A,O,N,V,ae,ce,Ge,Ee,Qe,Pe,Fe,Ie,Ce,Te,U,Dt,Ze,Ne,Yt,x,qe,ie,ye,ke,Di,Mi;const a=this.luigi.getConfig(),u=r??await this.getPathData(n),l=(O=(A=(T=a.navigation)==null?void 0:T.profile)==null?void 0:A.items)!=null&&O.length?JSON.parse(JSON.stringify(a.navigation.profile.items)):[],c=((N=a.navigation)==null?void 0:N.appSwitcher)&&this.getAppSwitcherData((V=a.navigation)==null?void 0:V.appSwitcher,(ae=a.settings)==null?void 0:ae.header),h=Ve.updateHeaderTitle(c,u);l!=null&&l.length&&l.map(me=>({...me,label:this.luigi.i18n().getTranslation(me.label||"")}));const p=this.luigi.i18n().getTranslation((Ee=(Ge=(ce=a.navigation)==null?void 0:ce.profile)==null?void 0:Ge.logout)==null?void 0:Ee.label)||mo.logout.label,v=me=>{var Et,an;if(me.openNodeInModal&&!((Et=me.externalLink)!=null&&Et.url))this.luigi.navigation().openAsModal(me.link||"",me.openNodeInModal===!0?{}:me.openNodeInModal);else if(me.link)this.luigi.navigation().navigate(me.link);else if((an=me.externalLink)!=null&&an.url)if(me.externalLink.sameWindow)window.location.href=me.externalLink.url;else{const jr=window.open(me.externalLink.url,"_blank","noopener noreferrer");jr&&(jr.opener=null,jr.focus())}},R={authEnabled:this.luigi.auth().isAuthorizationEnabled(),signedIn:this.luigi.auth().isAuthorizationEnabled()&&er.isLoggedIn(),items:l,itemClick:v,logout:{altText:this.luigi.i18n().getTranslation((Fe=(Pe=(Qe=a.navigation)==null?void 0:Qe.profile)==null?void 0:Pe.logout)==null?void 0:Fe.altText)||mo.logout.label,label:p,icon:((Te=(Ce=(Ie=a.navigation)==null?void 0:Ie.profile)==null?void 0:Ce.logout)==null?void 0:Te.icon)||mo.logout.icon,testId:((Ze=(Dt=(U=a.navigation)==null?void 0:U.profile)==null?void 0:Dt.logout)==null?void 0:Ze.testId)||Ve.prepareForTests(p),doLogout:()=>{Ur.logout()}},onUserInfoUpdate:me=>{this.luigi.getConfigValueAsync("navigation.profile.staticUserInfoFn").then(Et=>{Et?me(Et):Ur.getUserInfoStore().subscribe(an=>{me(an)})})}},C=u.selectedNode,E=C&&u.rootNodes.includes(C)?C:void 0;return{appTitle:h||((Yt=(Ne=a.settings)==null?void 0:Ne.header)==null?void 0:Yt.title),logo:(qe=(x=a.settings)==null?void 0:x.header)==null?void 0:qe.logo,topNodes:this.buildNavItems(u.rootNodes,E,u),productSwitcher:(ie=a.navigation)==null?void 0:ie.productSwitcher,profile:this.luigi.auth().isAuthorizationEnabled()||(ye=a.navigation)!=null&&ye.profile?R:void 0,appSwitcher:((ke=a.navigation)==null?void 0:ke.appSwitcher)&&this.getAppSwitcherData((Di=a.navigation)==null?void 0:Di.appSwitcher,(Mi=a.settings)==null?void 0:Mi.header),navClick:me=>me.node&&this.navItemClick(me.node,u)}}getParentNode(n,r){var a;if(n&&n===((a=r.nodesInPath)==null?void 0:a[r.nodesInPath.length-1]))return r.nodesInPath[r.nodesInPath.length-2]}getAppSwitcherData(n,r){var l;const a=n,u=a==null?void 0:a.showMainAppEntry;if(a&&a.items&&u){const c={title:this.luigi.i18n().getTranslation(r.title||""),subTitle:r.subTitle,link:"/"};if((l=a.items)==null||l.map(h=>({...h,title:this.luigi.i18n().getTranslation(h.title||"")})),a.items.some(h=>h.link===c.link))return a;a.items.unshift(c)}return a}async getTabNavData(n,r){var v,R;const a=r??await this.getPathData(n);if(n===""&&((v=a==null?void 0:a.nodesInPath)!=null&&v[0].viewUrl))return{};const u=a==null?void 0:a.selectedNode;let l;if(!u)return{};if(!u.tabNav&&(l=this.getParentNode(u,a),l&&!l.tabNav))return{};let c="";(R=a.nodesInPath)==null||R.forEach(C=>{C.children&&(c+="/"+(C.pathSegment||""))});const h=l?this.getTruncatedChildren(l.children):this.getTruncatedChildren(u.children),p=this.buildNavItems(h,u,a);return{selectedNode:u,items:p,basePath:c.replace(/\/\/+/g,"/"),navClick:C=>C.node&&this.navItemClick(C.node,a)}}onNodeChange(n,r){const a=this.luigi.getConfigValue("navigation.nodeChangeHook");H.isFunction(a)?a(n,r):a!==void 0&&console.warn("nodeChangeHook is not a function!")}async extractDataFromPath(n){const r=await this.getPathData(n);return{nodeObject:W.getLastNodeObject(r),pathData:r}}async shouldPreventNavigation(n){return!!(n!=null&&n.onNodeActivation&&(H.isFunction(n.onNodeActivation)||H.isAsyncFunction(n.onNodeActivation))&&await n.onNodeActivation(n)===!1)}async shouldPreventNavigationForPath(n){const{nodeObject:r}=await this.extractDataFromPath(n);return!!await this.shouldPreventNavigation(r)}async openViewInNewTab(n){if(await this.shouldPreventNavigationForPath(n))return;this.luigi.getConfigValue("routing.useHashRouting")&&(n="#"+n),window.open(n,"_blank","noopener,noreferrer")}resolveTooltipText(n,r){return Ve.generateTooltipText(n,r,this.luigi)}prepareRootNodes(n,r){const a=n;return a.length&&a.forEach(u=>{u.isRootNode=!0}),a}getAccessibleNodes(n,r,a){return r?r.filter(u=>Ve.isNodeAccessPermitted(u,n,a,this.luigi)):[]}async handleNavigationRequest(n,r){var A;const{path:a,preserveView:u,modalSettings:l,newTab:c,withoutSync:h,preventContextUpdate:p,preventHistoryEntry:v,options:R}=n;let C=await this.buildPath(a,R||{});const E=C.replace(/\/\/+/g,"/"),T=v?"replaceState":"pushState";if(l)l.keepPrevious||this.getModalService().closeModals(),this.luigi.navigation().openAsModal(E,l,r);else{const O={detail:{preventContextUpdate:!!p,preventHistoryEntry:!!v,withoutSync:!!h}};if(await re.get(Fn).closeModals(),c){await this.openViewInNewTab(C);return}const N=this.luigi.getConfigValue("routing.disableBrowserHistory")?"replaceState":T;if((A=this.luigi.getConfig().routing)!=null&&A.useHashRouting)if(!h&&N!=="replaceState")location.hash=E;else{const V=new CustomEvent("hashchange",O);window.history[N]({path:"/#"+E},"","/#"+E),window.dispatchEvent(V)}else{const V=new CustomEvent("popstate",O);window.history[N]({path:E},"",E),window.dispatchEvent(V)}}}async getChildren(n,r={}){const a=re.get(kn);if(!n)return[];let u=[];if(a.hasChildren(n)){let c=a.getChildren(n);c&&(u=c.children)}else try{u=await Nr.getConfigValueFromObjectAsync(n,"children",r||n.context),u==null&&(u=[]),u=u.map(c=>this.getExpandStructuralPathSegment(c)).map(c=>this.bindChildToParent(c,n))||[]}catch(c){console.error("Could not lazy-load children for node",c)}let l=this.getAccessibleNodes(n,u,r);return a.setChildren(n,{children:u,filteredChildren:l}),l}getExpandStructuralPathSegment(n){if(n&&n.pathSegment&&n.pathSegment.indexOf("/")!==-1){const r=n.pathSegment.split("/"),a={...n},u=(l,c)=>{const h=l.shift();let p={};return l.length?(p.pathSegment=h,c.hideFromNav&&(p.hideFromNav=c.hideFromNav),p.children=[u(l,c)]):(p=a,p.pathSegment=h),p};return u(r,n)}return n}bindChildToParent(n,r){return r&&r.pathSegment&&(n.parent=r),n}buildVirtualTree(n,r,a){const u=n.virtualTree,l=n._virtualTree,c=n._virtualViewUrl||n.viewUrl;if((u||l)&&r){let h=typeof n._virtualPathIndex=="number"?n._virtualPathIndex:void 0;u&&(h=void 0,n.keepSelectedForChildren=!0);const p=50;if(typeof h=="number"&&h>p)return;const v=(h??0)+1;if(v>p)return;const R=["_*","virtualTree","parent","children","keepSelectedForChildren","navigationContext"],C=H.removeProperties(n,R);Object.assign(C,{pathSegment:":virtualSegment_"+v,label:":virtualSegment_"+v,viewUrl:H.trimTrailingSlash(this.buildVirtualViewUrl(c||"",a,v)),_virtualTree:!0,_virtualPathIndex:v,_virtualViewUrl:c});const E=Array.isArray(n.children)&&n.children.length>0?n.children[0]._virtualTree:!1;return n.children&&!E&&console.warn(`Found both virtualTree and children nodes defined on a navigation node.
|
|
33
33
|
Children nodes are redundant and ignored when virtualTree is enabled.
|
|
34
|
-
Please refer to documentation`),n.children=[C]}}buildVirtualViewUrl(n,r,a){let u="";for(const l in r)l.startsWith("virtualSegment")&&(u+=":"+l+"/");return a?(u+=":virtualSegment_"+a+"/",n+"/"+u):n}async buildPath(n,r=!1){if(!r)return n;if(r){let a="";const u=this.luigi.getConfigValue("routing.useHashRouting"),{path:l,query:c}=Q.getCurrentPath(u),h=l+(c?"?"+c:""),p=(await this.getPathData(h)).nodesInPath;if(p===void 0)return console.warn("No nodes in path found for current path:",h),n;const v=[...p].map((A,C)=>A.virtualTree?C:-1).filter(A=>A!==-1).pop();return p.forEach((A,C)=>{A.pathSegment&&(v===void 0||C<=v)&&(a+="/"+A.pathSegment)}),a+="/"+n}return n}}function Nn(){}function zc(i){return i()}function Rc(){return Object.create(null)}function Hs(i){i.forEach(zc)}function Kc(i){return typeof i=="function"}function Yc(i,n){return i!=i?n==n:i!==n||i&&typeof i=="object"||typeof i=="function"}let xs,Pi;function bc(i,n){return i===n||(xs||(xs=document.createElement("a")),xs.href=n,i===xs.href)}function FS(i,n,r){const a=(function(u){if(!u)return document;const l=u.getRootNode?u.getRootNode():u.ownerDocument;return l&&l.host?l:u.ownerDocument})(i);if(!a.getElementById(n)){const u=qr("style");u.id=n,u.textContent=r,(function(l,c){(function(h,p){h.appendChild(p)})(l.head||l,c),c.sheet})(a,u)}}function ar(i,n,r){i.insertBefore(n,r||null)}function On(i){i.parentNode&&i.parentNode.removeChild(i)}function qr(i){return document.createElement(i)}function Xc(i){return document.createTextNode(i)}function $t(i,n,r){r==null?i.removeAttribute(n):i.getAttribute(n)!==r&&i.setAttribute(n,r)}function yi(i){Pi=i}function Zc(){if(!Pi)throw new Error("Function called outside component initialization");return Pi}function Jc(i){Zc().$$.on_mount.push(i)}const Pr=[],Ii=[];let Dr=[];const Pc=[],kS=Promise.resolve();let Co=!1;function To(i){Dr.push(i)}const So=new Set;let br=0;function z(){if(br!==0)return;const i=Pi;do{try{for(;br<Pr.length;){const n=Pr[br];br++,yi(n),WS(n.$$)}}catch(n){throw Pr.length=0,br=0,n}for(yi(null),Pr.length=0,br=0;Ii.length;)Ii.pop()();for(let n=0;n<Dr.length;n+=1){const r=Dr[n];So.has(r)||(So.add(r),r())}Dr.length=0}while(Pr.length);for(;Pc.length;)Pc.pop()();Co=!1,So.clear(),yi(i)}function WS(i){if(i.fragment!==null){i.update(),Hs(i.before_update);const n=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,n),i.after_update.forEach(To)}}const HS=new Set;function VS(i,n){const r=i.$$;r.fragment!==null&&((function(a){const u=[],l=[];Dr.forEach((c=>a.indexOf(c)===-1?u.push(c):l.push(c))),l.forEach((c=>c())),Dr=u})(r.after_update),Hs(r.on_destroy),r.fragment&&r.fragment.d(n),r.on_destroy=r.fragment=null,r.ctx=[])}function BS(i,n){i.$$.dirty[0]===-1&&(Pr.push(i),Co||(Co=!0,kS.then(z)),i.$$.dirty.fill(0)),i.$$.dirty[n/31|0]|=1<<n%31}function jc(i,n,r,a,u,l,c=null,h=[-1]){const p=Pi;yi(i);const v=i.$$={fragment:null,ctx:[],props:l,update:Nn,not_equal:u,bound:Rc(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(p?p.$$.context:[])),callbacks:Rc(),dirty:h,skip_bound:!1,root:n.target||p.$$.root};c&&c(v.root);let A=!1;if(v.ctx=r?r(i,n.props||{},((y,b,...O)=>{const N=O.length?O[0]:b;return v.ctx&&u(v.ctx[y],v.ctx[y]=N)&&(!v.skip_bound&&v.bound[y]&&v.bound[y](N),A&&BS(i,y)),b})):[],v.update(),A=!0,Hs(v.before_update),v.fragment=!!a&&a(v.ctx),n.target){if(n.hydrate){const y=(function(b){return Array.from(b.childNodes)})(n.target);v.fragment&&v.fragment.l(y),y.forEach(On)}else v.fragment&&v.fragment.c();n.intro&&(C=i.$$.fragment)&&C.i&&(HS.delete(C),C.i(E)),(function(y,b,O){const{fragment:N,after_update:G}=y.$$;N&&N.m(b,O),To((()=>{const ae=y.$$.on_mount.map(zc).filter(Kc);y.$$.on_destroy?y.$$.on_destroy.push(...ae):Hs(ae),y.$$.on_mount=[]})),G.forEach(To)})(i,n.target,n.anchor),z()}var C,E;yi(p)}let ef;function Os(i,n,r,a){var l;const u=(l=r[i])==null?void 0:l.type;if(n=u==="Boolean"&&typeof n!="boolean"?n!=null:n,!a||!r[i])return n;if(a==="toAttribute")switch(u){case"Object":case"Array":return n==null?null:JSON.stringify(n);case"Boolean":return n?"":null;case"Number":return n??null;default:return n}else switch(u){case"Object":case"Array":return n&&JSON.parse(n);case"Boolean":default:return n;case"Number":return n!=null?+n:n}}function tf(i,n,r,a,u,l){let c=class extends ef{constructor(){super(i,r,u),this.$$p_d=n}static get observedAttributes(){return Object.keys(n).map((h=>(n[h].attribute||h).toLowerCase()))}};return Object.keys(n).forEach((h=>{Object.defineProperty(c.prototype,h,{get(){return this.$$c&&h in this.$$c?this.$$c[h]:this.$$d[h]},set(p){var v;p=Os(h,p,n),this.$$d[h]=p,(v=this.$$c)==null||v.$set({[h]:p})}})})),a.forEach((h=>{Object.defineProperty(c.prototype,h,{get(){var p;return(p=this.$$c)==null?void 0:p[h]}})})),l&&(c=l(c)),i.element=c,c}typeof HTMLElement=="function"&&(ef=class extends HTMLElement{constructor(n,r,a){super();fe(this,"$$ctor");fe(this,"$$s");fe(this,"$$c");fe(this,"$$cn",!1);fe(this,"$$d",{});fe(this,"$$r",!1);fe(this,"$$p_d",{});fe(this,"$$l",{});fe(this,"$$l_u",new Map);this.$$ctor=n,this.$$s=r,a&&this.attachShadow({mode:"open"})}addEventListener(n,r,a){if(this.$$l[n]=this.$$l[n]||[],this.$$l[n].push(r),this.$$c){const u=this.$$c.$on(n,r);this.$$l_u.set(r,u)}super.addEventListener(n,r,a)}removeEventListener(n,r,a){if(super.removeEventListener(n,r,a),this.$$c){const u=this.$$l_u.get(r);u&&(u(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let r=function(c){return()=>{let h;return{c:function(){h=qr("slot"),c!=="default"&&$t(h,"name",c)},m:function(p,v){ar(p,h,v)},d:function(p){p&&On(h)}}}};var n=r;if(await Promise.resolve(),!this.$$cn||this.$$c)return;const a={},u=(function(c){const h={};return c.childNodes.forEach((p=>{h[p.slot||"default"]=!0})),h})(this);for(const c of this.$$s)c in u&&(a[c]=[r(c)]);for(const c of this.attributes){const h=this.$$g_p(c.name);h in this.$$d||(this.$$d[h]=Os(h,c.value,this.$$p_d,"toProp"))}for(const c in this.$$p_d)c in this.$$d||this[c]===void 0||(this.$$d[c]=this[c],delete this[c]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:a,$$scope:{ctx:[]}}});const l=()=>{this.$$r=!0;for(const c in this.$$p_d)if(this.$$d[c]=this.$$c.$$.ctx[this.$$c.$$.props[c]],this.$$p_d[c].reflect){const h=Os(c,this.$$d[c],this.$$p_d,"toAttribute");h==null?this.removeAttribute(this.$$p_d[c].attribute||c):this.setAttribute(this.$$p_d[c].attribute||c,h)}this.$$r=!1};this.$$c.$$.after_update.push(l),l();for(const c in this.$$l)for(const h of this.$$l[c]){const p=this.$$c.$on(c,h);this.$$l_u.set(h,p)}this.$$l={}}}attributeChangedCallback(n,r,a){var u;this.$$r||(n=this.$$g_p(n),this.$$d[n]=Os(n,a,this.$$p_d,"toProp"),(u=this.$$c)==null||u.$set({[n]:this.$$d[n]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(n){return Object.keys(this.$$p_d).find((r=>this.$$p_d[r].attribute===n||!this.$$p_d[r].attribute&&r.toLowerCase()===n))||n}});class nf{constructor(){fe(this,"$$");fe(this,"$$set")}$destroy(){VS(this,1),this.$destroy=Nn}$on(n,r){if(!Kc(r))return Nn;const a=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return a.push(r),()=>{const u=a.indexOf(r);u!==-1&&a.splice(u,1)}}$set(n){var r;this.$$set&&(r=n,Object.keys(r).length!==0)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}var ee;typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4"),(function(i){i.CUSTOM_MESSAGE="custom",i.GET_CONTEXT="luigi.get-context",i.SEND_CONTEXT_HANDSHAKE="luigi.init",i.CONTEXT_RECEIVED="luigi.init.ok",i.NAVIGATION_REQUEST="luigi.navigation.open",i.ALERT_REQUEST="luigi.ux.alert.show",i.ALERT_CLOSED="luigi.ux.alert.hide",i.INITIALIZED="luigi.init.ok",i.ADD_SEARCH_PARAMS_REQUEST="luigi.addSearchParams",i.ADD_NODE_PARAMS_REQUEST="luigi.addNodeParams",i.SHOW_CONFIRMATION_MODAL_REQUEST="luigi.ux.confirmationModal.show",i.CONFIRMATION_MODAL_CLOSED="luigi.ux.confirmationModal.hide",i.SHOW_LOADING_INDICATOR_REQUEST="luigi.show-loading-indicator",i.HIDE_LOADING_INDICATOR_REQUEST="luigi.hide-loading-indicator",i.SET_CURRENT_LOCALE_REQUEST="luigi.ux.set-current-locale",i.LOCAL_STORAGE_SET_REQUEST="storage",i.RUNTIME_ERROR_HANDLING_REQUEST="luigi-runtime-error-handling",i.SET_ANCHOR_LINK_REQUEST="luigi.setAnchor",i.SET_THIRD_PARTY_COOKIES_REQUEST="luigi.third-party-cookie",i.BACK_NAVIGATION_REQUEST="luigi.navigation.back",i.GET_CURRENT_ROUTE_REQUEST="luigi.navigation.currentRoute",i.SEND_CURRENT_ROUTE_ANSWER="luigi.navigation.currentRoute.answer",i.SEND_CONTEXT_OBJECT="luigi.navigate",i.NAVIGATION_COMPLETED_REPORT="luigi.navigate.ok",i.CLOSE_MODAL_ANSWER="luigi.navigation.modal.close",i.UPDATE_MODAL_PATH_DATA_REQUEST="luigi.navigation.updateModalDataPath",i.UPDATE_MODAL_SETTINGS="luigi.navigation.updateModalSettings",i.CHECK_PATH_EXISTS_REQUEST="luigi.navigation.pathExists",i.SEND_PATH_EXISTS_ANSWER="luigi.navigation.pathExists.answer",i.SET_DIRTY_STATUS_REQUEST="luigi.set-page-dirty",i.AUTH_SET_TOKEN="luigi.auth.tokenIssued",i.ADD_BACKDROP_REQUEST="luigi.add-backdrop",i.REMOVE_BACKDROP_REQUEST="luigi.remove-backdrop",i.SET_VIEW_GROUP_DATA_REQUEST="luigi.setVGData",i.CLOSE_CURRENT_MODAL_REQUEST="luigi.close-modal"})(ee||(ee={}));class GS extends Event{constructor(n,r,a,u){super(n),this.detail=r,this.payload=a||r||{},this.callbackFn=u}callback(n){this.callbackFn&&this.callbackFn(n)}}const D={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 Do{isVisible(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)}sendCustomMessageToIframe(n,r,a){var l;const u=a||"custom";if((l=n==null?void 0:n.iframe)!=null&&l.contentWindow){const c=new URL(n.iframe.src);u==="custom"?n.iframe.contentWindow.postMessage({msg:u,data:r},c.origin):n.iframe.contentWindow.postMessage({msg:u,...r},c.origin)}else console.error("Message target could not be resolved")}dispatchWithPayload(n,r,a,u,l){this.dispatch(n,r,a,l,u)}dispatch(n,r,a,u,l){const c=new GS(n,a,l,u);r.dispatchEvent(c)}getTargetContainer(n){let r;return globalThis.__luigi_container_manager.container.forEach((a=>{var u;(u=a.iframeHandle)!=null&&u.iframe&&a.iframeHandle.iframe.contentWindow===n.source&&(r=a)})),r}getContainerManager(){return globalThis.__luigi_container_manager||(globalThis.__luigi_container_manager={container:[],messageListener:n=>{var u,l,c,h,p,v,A,C;const r=this.getTargetContainer(n),a=(l=(u=r==null?void 0:r.iframeHandle)==null?void 0:u.iframe)==null?void 0:l.contentWindow;if(a&&a===n.source)switch(n.data.msg){case ee.CUSTOM_MESSAGE:{const E=n.data.data,y=E.id;delete E.id,this.dispatch(D.CUSTOM_MESSAGE,r,{id:y,_metaData:{},data:E})}break;case ee.GET_CONTEXT:a.postMessage({msg:ee.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||{}},n.origin);break;case ee.NAVIGATION_REQUEST:this.dispatch(D.NAVIGATION_REQUEST,r,n.data.params,(E=>{a.postMessage({msg:ee.CLOSE_MODAL_ANSWER,data:E},n.origin)}));break;case ee.ALERT_REQUEST:this.dispatchWithPayload(D.ALERT_REQUEST,r,n,(h=(c=n.data)==null?void 0:c.data)==null?void 0:h.settings,(E=>{var y,b,O;r.notifyAlertClosed((O=(b=(y=n.data)==null?void 0:y.data)==null?void 0:b.settings)==null?void 0:O.id,E)}));break;case ee.INITIALIZED:this.dispatch(D.INITIALIZED,r,((p=n.data)==null?void 0:p.params)||{});break;case ee.ADD_SEARCH_PARAMS_REQUEST:this.dispatch(D.ADD_SEARCH_PARAMS_REQUEST,r,{data:n.data.data,keepBrowserHistory:n.data.keepBrowserHistory});break;case ee.ADD_NODE_PARAMS_REQUEST:this.dispatch(D.ADD_NODE_PARAMS_REQUEST,r,{data:n.data.data,keepBrowserHistory:n.data.keepBrowserHistory});break;case ee.SHOW_CONFIRMATION_MODAL_REQUEST:this.dispatchWithPayload(D.SHOW_CONFIRMATION_MODAL_REQUEST,r,n.data.data,(v=n.data.data)==null?void 0:v.settings,(E=>{r.notifyConfirmationModalClosed(E)}));break;case ee.SHOW_LOADING_INDICATOR_REQUEST:this.dispatch(D.SHOW_LOADING_INDICATOR_REQUEST,r,n);break;case ee.HIDE_LOADING_INDICATOR_REQUEST:this.dispatch(D.HIDE_LOADING_INDICATOR_REQUEST,r,n);break;case ee.SET_CURRENT_LOCALE_REQUEST:this.dispatchWithPayload(D.SET_CURRENT_LOCALE_REQUEST,r,n,n.data.data);break;case ee.LOCAL_STORAGE_SET_REQUEST:this.dispatchWithPayload(D.LOCAL_STORAGE_SET_REQUEST,r,n,(A=n.data.data)==null?void 0:A.params);break;case ee.RUNTIME_ERROR_HANDLING_REQUEST:this.dispatch(D.RUNTIME_ERROR_HANDLING_REQUEST,r,n);break;case ee.SET_ANCHOR_LINK_REQUEST:this.dispatchWithPayload(D.SET_ANCHOR_LINK_REQUEST,r,n,n.data.anchor);break;case ee.SET_THIRD_PARTY_COOKIES_REQUEST:this.dispatch(D.SET_THIRD_PARTY_COOKIES_REQUEST,r,n);break;case ee.BACK_NAVIGATION_REQUEST:{let E=((C=n.data)==null?void 0:C.goBackContext)||{};if(typeof E=="string")try{E=JSON.parse(E)}catch(y){console.warn(y)}this.dispatch(D.GO_BACK_REQUEST,r,E),this.dispatch(D.BACK_NAVIGATION_REQUEST,r,n)}break;case ee.GET_CURRENT_ROUTE_REQUEST:this.dispatchWithPayload(D.GET_CURRENT_ROUTE_REQUEST,r,n,n.data.data,(E=>{var y,b;a.postMessage({msg:ee.SEND_CURRENT_ROUTE_ANSWER,data:{correlationId:(b=(y=n.data)==null?void 0:y.data)==null?void 0:b.id,route:E}},n.origin)}));break;case ee.NAVIGATION_COMPLETED_REPORT:this.dispatch(D.NAVIGATION_COMPLETED_REPORT,r,n);break;case ee.UPDATE_MODAL_PATH_DATA_REQUEST:this.dispatchWithPayload(D.UPDATE_MODAL_PATH_DATA_REQUEST,r,n,n.data.params);break;case ee.UPDATE_MODAL_SETTINGS:this.dispatchWithPayload(D.UPDATE_MODAL_SETTINGS_REQUEST,r,n,{addHistoryEntry:n.data.addHistoryEntry,updatedModalSettings:n.data.updatedModalSettings});break;case ee.CHECK_PATH_EXISTS_REQUEST:this.dispatchWithPayload(D.CHECK_PATH_EXISTS_REQUEST,r,n,n.data.data,(E=>{var y,b;a.postMessage({msg:ee.SEND_PATH_EXISTS_ANSWER,data:{correlationId:(b=(y=n.data)==null?void 0:y.data)==null?void 0:b.id,pathExists:E}},n.origin)}));break;case ee.SET_DIRTY_STATUS_REQUEST:this.dispatchWithPayload(D.SET_DIRTY_STATUS_REQUEST,r,n,{dirty:n.data.dirty});break;case ee.SET_VIEW_GROUP_DATA_REQUEST:this.dispatch(D.SET_VIEW_GROUP_DATA_REQUEST,r,n.data.data);break;case ee.ADD_BACKDROP_REQUEST:this.dispatch(D.ADD_BACKDROP_REQUEST,r,n);break;case ee.REMOVE_BACKDROP_REQUEST:this.dispatch(D.REMOVE_BACKDROP_REQUEST,r,n);break;case ee.CLOSE_CURRENT_MODAL_REQUEST:this.dispatch(D.CLOSE_CURRENT_MODAL_REQUEST,r,n)}}},window.addEventListener("message",globalThis.__luigi_container_manager.messageListener)),globalThis.__luigi_container_manager}registerContainer(n){this.getContainerManager().container.push(n)}}const Ln=new Do,Ir=new class{constructor(){this.updateContext=(i,n,r,a,u,l)=>{if(r){const c=n||{};Ln.sendCustomMessageToIframe(r,{context:i,nodeParams:a||{},pathParams:u||{},searchParams:l||{},internal:c,withoutSync:!0},ee.SEND_CONTEXT_OBJECT)}else console.warn("Attempting to update context on inexisting iframe")},this.updateViewUrl=(i,n,r,a)=>{if(a){const u=r||{};Ln.sendCustomMessageToIframe(a,{context:n,internal:u,withoutSync:!1,viewUrl:i},ee.SEND_CONTEXT_OBJECT)}else console.warn("Attempting to update route on inexisting iframe")},this.updateAuthData=(i,n)=>{i&&n?Ln.sendCustomMessageToIframe(i,{authData:n},ee.AUTH_SET_TOKEN):console.warn("Attempting to update auth data on inexisting iframe or authData")},this.sendCustomMessage=(i,n,r,a,u)=>{if(r&&n._luigi_mfe_webcomponent)Ln.dispatch(i,n._luigi_mfe_webcomponent,u);else{const l={...u};l.id&&console.warn('Property "id" is reserved and can not be used in custom message data'),l.id=i,Ln.sendCustomMessageToIframe(a,l)}},this.notifyConfirmationModalClosed=(i,n)=>{const r={data:{confirmed:i}};Ln.sendCustomMessageToIframe(n,r,ee.CONFIRMATION_MODAL_CLOSED)}}notifyAlertClosed(i,n,r){const a=n?{id:i,dismissKey:n}:{id:i};Ln.sendCustomMessageToIframe(r,a,ee.ALERT_CLOSED)}},Ic=i=>{if(!i)return;const n=i;return n.forEach(((r,a)=>{n[a]=r+(r.indexOf(";")!=-1?"":";"),n[a]=i[a].replaceAll('"',"'")})),n.join(" ")};class zr{constructor(n){n?(this.rendererObject=n,this.config=n.config||{}):this.config={}}createCompoundContainer(){return document.createElement("div")}createCompoundItemContainer(n){return document.createElement("div")}attachCompoundItem(n,r){n.appendChild(r)}}class QS extends zr{constructor(n){super(n||{use:{}}),n&&n.use&&n.use.extends&&(this.superRenderer=rf({use:n.use.extends,config:n.config}))}createCompoundContainer(){return this.rendererObject.use.createCompoundContainer?this.rendererObject.use.createCompoundContainer(this.config,this.superRenderer):this.superRenderer?this.superRenderer.createCompoundContainer():super.createCompoundContainer()}createCompoundItemContainer(n){return this.rendererObject.use.createCompoundItemContainer?this.rendererObject.use.createCompoundItemContainer(n,this.config,this.superRenderer):this.superRenderer?this.superRenderer.createCompoundItemContainer(n):super.createCompoundItemContainer(n)}attachCompoundItem(n,r){this.rendererObject.use.attachCompoundItem?this.rendererObject.use.attachCompoundItem(n,r,this.superRenderer):this.superRenderer?this.superRenderer.attachCompoundItem(n,r):super.attachCompoundItem(n,r)}}class qS extends zr{createCompoundContainer(){const n="__lui_compound_"+new Date().getTime(),r=document.createElement("div");r.classList.add(n);let a="";return this.config.layouts&&this.config.layouts.forEach((u=>{if(u.minWidth||u.maxWidth){let l="@media only screen ";u.minWidth!=null&&(l+=`and (min-width: ${u.minWidth}px) `),u.maxWidth!=null&&(l+=`and (max-width: ${u.maxWidth}px) `),l+=`{
|
|
34
|
+
Please refer to documentation`),[C]}}buildVirtualViewUrl(n,r,a){let u="";for(const l in r)l.startsWith("virtualSegment")&&(u+=":"+l+"/");return a?(u+=":virtualSegment_"+a+"/",n+"/"+u):n}async buildPath(n,r){const{fromVirtualTreeRoot:a,fromContext:u,fromClosestContext:l}=r;if(!a&&!u&&!l)return n;const c=this.luigi.getConfigValue("routing.useHashRouting"),{path:h,query:p}=W.getCurrentPath(c),v=h+(p?"?"+p:""),R=await this.getPathData(v),C=R.nodesInPath;if(C===void 0)return console.warn("No nodes in path found for current path:",v),n;if(a){let E="";const T=[...C].map((O,N)=>O.virtualTree?N:-1).filter(O=>O!==-1).pop();return C.forEach((O,N)=>{O.pathSegment&&(T===void 0||N<=T)&&(E+="/"+O.pathSegment)}),E+="/"+n}else if(u){const E=u,T=[...C].reverse().find(O=>E===O.navigationContext);return W.concatenatePath(W.getSubPath(T,R.pathParams),n)}else if(l){const E=[...C].reverse().find(A=>A.navigationContext&&A.navigationContext.length>0);return W.concatenatePath(W.getSubPath(E,R.pathParams),n)}return n}}function On(){}function zc(i){return i()}function Rc(){return Object.create(null)}function Hs(i){i.forEach(zc)}function Kc(i){return typeof i=="function"}function Yc(i,n){return i!=i?n==n:i!==n||i&&typeof i=="object"||typeof i=="function"}let xs,Pi;function bc(i,n){return i===n||(xs||(xs=document.createElement("a")),xs.href=n,i===xs.href)}function FS(i,n,r){const a=(function(u){if(!u)return document;const l=u.getRootNode?u.getRootNode():u.ownerDocument;return l&&l.host?l:u.ownerDocument})(i);if(!a.getElementById(n)){const u=qr("style");u.id=n,u.textContent=r,(function(l,c){(function(h,p){h.appendChild(p)})(l.head||l,c),c.sheet})(a,u)}}function ar(i,n,r){i.insertBefore(n,r||null)}function Nn(i){i.parentNode&&i.parentNode.removeChild(i)}function qr(i){return document.createElement(i)}function Xc(i){return document.createTextNode(i)}function $t(i,n,r){r==null?i.removeAttribute(n):i.getAttribute(n)!==r&&i.setAttribute(n,r)}function yi(i){Pi=i}function Zc(){if(!Pi)throw new Error("Function called outside component initialization");return Pi}function Jc(i){Zc().$$.on_mount.push(i)}const Pr=[],Ii=[];let Dr=[];const Pc=[],kS=Promise.resolve();let Co=!1;function To(i){Dr.push(i)}const So=new Set;let br=0;function z(){if(br!==0)return;const i=Pi;do{try{for(;br<Pr.length;){const n=Pr[br];br++,yi(n),WS(n.$$)}}catch(n){throw Pr.length=0,br=0,n}for(yi(null),Pr.length=0,br=0;Ii.length;)Ii.pop()();for(let n=0;n<Dr.length;n+=1){const r=Dr[n];So.has(r)||(So.add(r),r())}Dr.length=0}while(Pr.length);for(;Pc.length;)Pc.pop()();Co=!1,So.clear(),yi(i)}function WS(i){if(i.fragment!==null){i.update(),Hs(i.before_update);const n=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,n),i.after_update.forEach(To)}}const HS=new Set;function VS(i,n){const r=i.$$;r.fragment!==null&&((function(a){const u=[],l=[];Dr.forEach((c=>a.indexOf(c)===-1?u.push(c):l.push(c))),l.forEach((c=>c())),Dr=u})(r.after_update),Hs(r.on_destroy),r.fragment&&r.fragment.d(n),r.on_destroy=r.fragment=null,r.ctx=[])}function BS(i,n){i.$$.dirty[0]===-1&&(Pr.push(i),Co||(Co=!0,kS.then(z)),i.$$.dirty.fill(0)),i.$$.dirty[n/31|0]|=1<<n%31}function jc(i,n,r,a,u,l,c=null,h=[-1]){const p=Pi;yi(i);const v=i.$$={fragment:null,ctx:[],props:l,update:On,not_equal:u,bound:Rc(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(p?p.$$.context:[])),callbacks:Rc(),dirty:h,skip_bound:!1,root:n.target||p.$$.root};c&&c(v.root);let R=!1;if(v.ctx=r?r(i,n.props||{},((T,A,...O)=>{const N=O.length?O[0]:A;return v.ctx&&u(v.ctx[T],v.ctx[T]=N)&&(!v.skip_bound&&v.bound[T]&&v.bound[T](N),R&&BS(i,T)),A})):[],v.update(),R=!0,Hs(v.before_update),v.fragment=!!a&&a(v.ctx),n.target){if(n.hydrate){const T=(function(A){return Array.from(A.childNodes)})(n.target);v.fragment&&v.fragment.l(T),T.forEach(Nn)}else v.fragment&&v.fragment.c();n.intro&&(C=i.$$.fragment)&&C.i&&(HS.delete(C),C.i(E)),(function(T,A,O){const{fragment:N,after_update:V}=T.$$;N&&N.m(A,O),To((()=>{const ae=T.$$.on_mount.map(zc).filter(Kc);T.$$.on_destroy?T.$$.on_destroy.push(...ae):Hs(ae),T.$$.on_mount=[]})),V.forEach(To)})(i,n.target,n.anchor),z()}var C,E;yi(p)}let ef;function Ns(i,n,r,a){var l;const u=(l=r[i])==null?void 0:l.type;if(n=u==="Boolean"&&typeof n!="boolean"?n!=null:n,!a||!r[i])return n;if(a==="toAttribute")switch(u){case"Object":case"Array":return n==null?null:JSON.stringify(n);case"Boolean":return n?"":null;case"Number":return n??null;default:return n}else switch(u){case"Object":case"Array":return n&&JSON.parse(n);case"Boolean":default:return n;case"Number":return n!=null?+n:n}}function tf(i,n,r,a,u,l){let c=class extends ef{constructor(){super(i,r,u),this.$$p_d=n}static get observedAttributes(){return Object.keys(n).map((h=>(n[h].attribute||h).toLowerCase()))}};return Object.keys(n).forEach((h=>{Object.defineProperty(c.prototype,h,{get(){return this.$$c&&h in this.$$c?this.$$c[h]:this.$$d[h]},set(p){var v;p=Ns(h,p,n),this.$$d[h]=p,(v=this.$$c)==null||v.$set({[h]:p})}})})),a.forEach((h=>{Object.defineProperty(c.prototype,h,{get(){var p;return(p=this.$$c)==null?void 0:p[h]}})})),l&&(c=l(c)),i.element=c,c}typeof HTMLElement=="function"&&(ef=class extends HTMLElement{constructor(n,r,a){super();fe(this,"$$ctor");fe(this,"$$s");fe(this,"$$c");fe(this,"$$cn",!1);fe(this,"$$d",{});fe(this,"$$r",!1);fe(this,"$$p_d",{});fe(this,"$$l",{});fe(this,"$$l_u",new Map);this.$$ctor=n,this.$$s=r,a&&this.attachShadow({mode:"open"})}addEventListener(n,r,a){if(this.$$l[n]=this.$$l[n]||[],this.$$l[n].push(r),this.$$c){const u=this.$$c.$on(n,r);this.$$l_u.set(r,u)}super.addEventListener(n,r,a)}removeEventListener(n,r,a){if(super.removeEventListener(n,r,a),this.$$c){const u=this.$$l_u.get(r);u&&(u(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let r=function(c){return()=>{let h;return{c:function(){h=qr("slot"),c!=="default"&&$t(h,"name",c)},m:function(p,v){ar(p,h,v)},d:function(p){p&&Nn(h)}}}};var n=r;if(await Promise.resolve(),!this.$$cn||this.$$c)return;const a={},u=(function(c){const h={};return c.childNodes.forEach((p=>{h[p.slot||"default"]=!0})),h})(this);for(const c of this.$$s)c in u&&(a[c]=[r(c)]);for(const c of this.attributes){const h=this.$$g_p(c.name);h in this.$$d||(this.$$d[h]=Ns(h,c.value,this.$$p_d,"toProp"))}for(const c in this.$$p_d)c in this.$$d||this[c]===void 0||(this.$$d[c]=this[c],delete this[c]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:a,$$scope:{ctx:[]}}});const l=()=>{this.$$r=!0;for(const c in this.$$p_d)if(this.$$d[c]=this.$$c.$$.ctx[this.$$c.$$.props[c]],this.$$p_d[c].reflect){const h=Ns(c,this.$$d[c],this.$$p_d,"toAttribute");h==null?this.removeAttribute(this.$$p_d[c].attribute||c):this.setAttribute(this.$$p_d[c].attribute||c,h)}this.$$r=!1};this.$$c.$$.after_update.push(l),l();for(const c in this.$$l)for(const h of this.$$l[c]){const p=this.$$c.$on(c,h);this.$$l_u.set(h,p)}this.$$l={}}}attributeChangedCallback(n,r,a){var u;this.$$r||(n=this.$$g_p(n),this.$$d[n]=Ns(n,a,this.$$p_d,"toProp"),(u=this.$$c)==null||u.$set({[n]:this.$$d[n]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(n){return Object.keys(this.$$p_d).find((r=>this.$$p_d[r].attribute===n||!this.$$p_d[r].attribute&&r.toLowerCase()===n))||n}});class nf{constructor(){fe(this,"$$");fe(this,"$$set")}$destroy(){VS(this,1),this.$destroy=On}$on(n,r){if(!Kc(r))return On;const a=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return a.push(r),()=>{const u=a.indexOf(r);u!==-1&&a.splice(u,1)}}$set(n){var r;this.$$set&&(r=n,Object.keys(r).length!==0)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}var ee;typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4"),(function(i){i.CUSTOM_MESSAGE="custom",i.GET_CONTEXT="luigi.get-context",i.SEND_CONTEXT_HANDSHAKE="luigi.init",i.CONTEXT_RECEIVED="luigi.init.ok",i.NAVIGATION_REQUEST="luigi.navigation.open",i.ALERT_REQUEST="luigi.ux.alert.show",i.ALERT_CLOSED="luigi.ux.alert.hide",i.INITIALIZED="luigi.init.ok",i.ADD_SEARCH_PARAMS_REQUEST="luigi.addSearchParams",i.ADD_NODE_PARAMS_REQUEST="luigi.addNodeParams",i.SHOW_CONFIRMATION_MODAL_REQUEST="luigi.ux.confirmationModal.show",i.CONFIRMATION_MODAL_CLOSED="luigi.ux.confirmationModal.hide",i.SHOW_LOADING_INDICATOR_REQUEST="luigi.show-loading-indicator",i.HIDE_LOADING_INDICATOR_REQUEST="luigi.hide-loading-indicator",i.SET_CURRENT_LOCALE_REQUEST="luigi.ux.set-current-locale",i.LOCAL_STORAGE_SET_REQUEST="storage",i.RUNTIME_ERROR_HANDLING_REQUEST="luigi-runtime-error-handling",i.SET_ANCHOR_LINK_REQUEST="luigi.setAnchor",i.SET_THIRD_PARTY_COOKIES_REQUEST="luigi.third-party-cookie",i.BACK_NAVIGATION_REQUEST="luigi.navigation.back",i.GET_CURRENT_ROUTE_REQUEST="luigi.navigation.currentRoute",i.SEND_CURRENT_ROUTE_ANSWER="luigi.navigation.currentRoute.answer",i.SEND_CONTEXT_OBJECT="luigi.navigate",i.NAVIGATION_COMPLETED_REPORT="luigi.navigate.ok",i.CLOSE_MODAL_ANSWER="luigi.navigation.modal.close",i.UPDATE_MODAL_PATH_DATA_REQUEST="luigi.navigation.updateModalDataPath",i.UPDATE_MODAL_SETTINGS="luigi.navigation.updateModalSettings",i.CHECK_PATH_EXISTS_REQUEST="luigi.navigation.pathExists",i.SEND_PATH_EXISTS_ANSWER="luigi.navigation.pathExists.answer",i.SET_DIRTY_STATUS_REQUEST="luigi.set-page-dirty",i.AUTH_SET_TOKEN="luigi.auth.tokenIssued",i.ADD_BACKDROP_REQUEST="luigi.add-backdrop",i.REMOVE_BACKDROP_REQUEST="luigi.remove-backdrop",i.SET_VIEW_GROUP_DATA_REQUEST="luigi.setVGData",i.CLOSE_CURRENT_MODAL_REQUEST="luigi.close-modal"})(ee||(ee={}));class GS extends Event{constructor(n,r,a,u){super(n),this.detail=r,this.payload=a||r||{},this.callbackFn=u}callback(n){this.callbackFn&&this.callbackFn(n)}}const D={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 Do{isVisible(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)}sendCustomMessageToIframe(n,r,a){var l;const u=a||"custom";if((l=n==null?void 0:n.iframe)!=null&&l.contentWindow){const c=new URL(n.iframe.src);u==="custom"?n.iframe.contentWindow.postMessage({msg:u,data:r},c.origin):n.iframe.contentWindow.postMessage({msg:u,...r},c.origin)}else console.error("Message target could not be resolved")}dispatchWithPayload(n,r,a,u,l){this.dispatch(n,r,a,l,u)}dispatch(n,r,a,u,l){const c=new GS(n,a,l,u);r.dispatchEvent(c)}getTargetContainer(n){let r;return globalThis.__luigi_container_manager.container.forEach((a=>{var u;(u=a.iframeHandle)!=null&&u.iframe&&a.iframeHandle.iframe.contentWindow===n.source&&(r=a)})),r}getContainerManager(){return globalThis.__luigi_container_manager||(globalThis.__luigi_container_manager={container:[],messageListener:n=>{var u,l,c,h,p,v,R,C;const r=this.getTargetContainer(n),a=(l=(u=r==null?void 0:r.iframeHandle)==null?void 0:u.iframe)==null?void 0:l.contentWindow;if(a&&a===n.source)switch(n.data.msg){case ee.CUSTOM_MESSAGE:{const E=n.data.data,T=E.id;delete E.id,this.dispatch(D.CUSTOM_MESSAGE,r,{id:T,_metaData:{},data:E})}break;case ee.GET_CONTEXT:a.postMessage({msg:ee.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||{}},n.origin);break;case ee.NAVIGATION_REQUEST:this.dispatch(D.NAVIGATION_REQUEST,r,n.data.params,(E=>{a.postMessage({msg:ee.CLOSE_MODAL_ANSWER,data:E},n.origin)}));break;case ee.ALERT_REQUEST:this.dispatchWithPayload(D.ALERT_REQUEST,r,n,(h=(c=n.data)==null?void 0:c.data)==null?void 0:h.settings,(E=>{var T,A,O;r.notifyAlertClosed((O=(A=(T=n.data)==null?void 0:T.data)==null?void 0:A.settings)==null?void 0:O.id,E)}));break;case ee.INITIALIZED:this.dispatch(D.INITIALIZED,r,((p=n.data)==null?void 0:p.params)||{});break;case ee.ADD_SEARCH_PARAMS_REQUEST:this.dispatch(D.ADD_SEARCH_PARAMS_REQUEST,r,{data:n.data.data,keepBrowserHistory:n.data.keepBrowserHistory});break;case ee.ADD_NODE_PARAMS_REQUEST:this.dispatch(D.ADD_NODE_PARAMS_REQUEST,r,{data:n.data.data,keepBrowserHistory:n.data.keepBrowserHistory});break;case ee.SHOW_CONFIRMATION_MODAL_REQUEST:this.dispatchWithPayload(D.SHOW_CONFIRMATION_MODAL_REQUEST,r,n.data.data,(v=n.data.data)==null?void 0:v.settings,(E=>{r.notifyConfirmationModalClosed(E)}));break;case ee.SHOW_LOADING_INDICATOR_REQUEST:this.dispatch(D.SHOW_LOADING_INDICATOR_REQUEST,r,n);break;case ee.HIDE_LOADING_INDICATOR_REQUEST:this.dispatch(D.HIDE_LOADING_INDICATOR_REQUEST,r,n);break;case ee.SET_CURRENT_LOCALE_REQUEST:this.dispatchWithPayload(D.SET_CURRENT_LOCALE_REQUEST,r,n,n.data.data);break;case ee.LOCAL_STORAGE_SET_REQUEST:this.dispatchWithPayload(D.LOCAL_STORAGE_SET_REQUEST,r,n,(R=n.data.data)==null?void 0:R.params);break;case ee.RUNTIME_ERROR_HANDLING_REQUEST:this.dispatch(D.RUNTIME_ERROR_HANDLING_REQUEST,r,n);break;case ee.SET_ANCHOR_LINK_REQUEST:this.dispatchWithPayload(D.SET_ANCHOR_LINK_REQUEST,r,n,n.data.anchor);break;case ee.SET_THIRD_PARTY_COOKIES_REQUEST:this.dispatch(D.SET_THIRD_PARTY_COOKIES_REQUEST,r,n);break;case ee.BACK_NAVIGATION_REQUEST:{let E=((C=n.data)==null?void 0:C.goBackContext)||{};if(typeof E=="string")try{E=JSON.parse(E)}catch(T){console.warn(T)}this.dispatch(D.GO_BACK_REQUEST,r,E),this.dispatch(D.BACK_NAVIGATION_REQUEST,r,n)}break;case ee.GET_CURRENT_ROUTE_REQUEST:this.dispatchWithPayload(D.GET_CURRENT_ROUTE_REQUEST,r,n,n.data.data,(E=>{var T,A;a.postMessage({msg:ee.SEND_CURRENT_ROUTE_ANSWER,data:{correlationId:(A=(T=n.data)==null?void 0:T.data)==null?void 0:A.id,route:E}},n.origin)}));break;case ee.NAVIGATION_COMPLETED_REPORT:this.dispatch(D.NAVIGATION_COMPLETED_REPORT,r,n);break;case ee.UPDATE_MODAL_PATH_DATA_REQUEST:this.dispatchWithPayload(D.UPDATE_MODAL_PATH_DATA_REQUEST,r,n,n.data.params);break;case ee.UPDATE_MODAL_SETTINGS:this.dispatchWithPayload(D.UPDATE_MODAL_SETTINGS_REQUEST,r,n,{addHistoryEntry:n.data.addHistoryEntry,updatedModalSettings:n.data.updatedModalSettings});break;case ee.CHECK_PATH_EXISTS_REQUEST:this.dispatchWithPayload(D.CHECK_PATH_EXISTS_REQUEST,r,n,n.data.data,(E=>{var T,A;a.postMessage({msg:ee.SEND_PATH_EXISTS_ANSWER,data:{correlationId:(A=(T=n.data)==null?void 0:T.data)==null?void 0:A.id,pathExists:E}},n.origin)}));break;case ee.SET_DIRTY_STATUS_REQUEST:this.dispatchWithPayload(D.SET_DIRTY_STATUS_REQUEST,r,n,{dirty:n.data.dirty});break;case ee.SET_VIEW_GROUP_DATA_REQUEST:this.dispatch(D.SET_VIEW_GROUP_DATA_REQUEST,r,n.data.data);break;case ee.ADD_BACKDROP_REQUEST:this.dispatch(D.ADD_BACKDROP_REQUEST,r,n);break;case ee.REMOVE_BACKDROP_REQUEST:this.dispatch(D.REMOVE_BACKDROP_REQUEST,r,n);break;case ee.CLOSE_CURRENT_MODAL_REQUEST:this.dispatch(D.CLOSE_CURRENT_MODAL_REQUEST,r,n)}}},window.addEventListener("message",globalThis.__luigi_container_manager.messageListener)),globalThis.__luigi_container_manager}registerContainer(n){this.getContainerManager().container.push(n)}}const Ln=new Do,Ir=new class{constructor(){this.updateContext=(i,n,r,a,u,l)=>{if(r){const c=n||{};Ln.sendCustomMessageToIframe(r,{context:i,nodeParams:a||{},pathParams:u||{},searchParams:l||{},internal:c,withoutSync:!0},ee.SEND_CONTEXT_OBJECT)}else console.warn("Attempting to update context on inexisting iframe")},this.updateViewUrl=(i,n,r,a)=>{if(a){const u=r||{};Ln.sendCustomMessageToIframe(a,{context:n,internal:u,withoutSync:!1,viewUrl:i},ee.SEND_CONTEXT_OBJECT)}else console.warn("Attempting to update route on inexisting iframe")},this.updateAuthData=(i,n)=>{i&&n?Ln.sendCustomMessageToIframe(i,{authData:n},ee.AUTH_SET_TOKEN):console.warn("Attempting to update auth data on inexisting iframe or authData")},this.sendCustomMessage=(i,n,r,a,u)=>{if(r&&n._luigi_mfe_webcomponent)Ln.dispatch(i,n._luigi_mfe_webcomponent,u);else{const l={...u};l.id&&console.warn('Property "id" is reserved and can not be used in custom message data'),l.id=i,Ln.sendCustomMessageToIframe(a,l)}},this.notifyConfirmationModalClosed=(i,n)=>{const r={data:{confirmed:i}};Ln.sendCustomMessageToIframe(n,r,ee.CONFIRMATION_MODAL_CLOSED)}}notifyAlertClosed(i,n,r){const a=n?{id:i,dismissKey:n}:{id:i};Ln.sendCustomMessageToIframe(r,a,ee.ALERT_CLOSED)}},Ic=i=>{if(!i)return;const n=i;return n.forEach(((r,a)=>{n[a]=r+(r.indexOf(";")!=-1?"":";"),n[a]=i[a].replaceAll('"',"'")})),n.join(" ")};class zr{constructor(n){n?(this.rendererObject=n,this.config=n.config||{}):this.config={}}createCompoundContainer(){return document.createElement("div")}createCompoundItemContainer(n){return document.createElement("div")}attachCompoundItem(n,r){n.appendChild(r)}}class QS extends zr{constructor(n){super(n||{use:{}}),n&&n.use&&n.use.extends&&(this.superRenderer=rf({use:n.use.extends,config:n.config}))}createCompoundContainer(){return this.rendererObject.use.createCompoundContainer?this.rendererObject.use.createCompoundContainer(this.config,this.superRenderer):this.superRenderer?this.superRenderer.createCompoundContainer():super.createCompoundContainer()}createCompoundItemContainer(n){return this.rendererObject.use.createCompoundItemContainer?this.rendererObject.use.createCompoundItemContainer(n,this.config,this.superRenderer):this.superRenderer?this.superRenderer.createCompoundItemContainer(n):super.createCompoundItemContainer(n)}attachCompoundItem(n,r){this.rendererObject.use.attachCompoundItem?this.rendererObject.use.attachCompoundItem(n,r,this.superRenderer):this.superRenderer?this.superRenderer.attachCompoundItem(n,r):super.attachCompoundItem(n,r)}}class qS extends zr{createCompoundContainer(){const n="__lui_compound_"+new Date().getTime(),r=document.createElement("div");r.classList.add(n);let a="";return this.config.layouts&&this.config.layouts.forEach((u=>{if(u.minWidth||u.maxWidth){let l="@media only screen ";u.minWidth!=null&&(l+=`and (min-width: ${u.minWidth}px) `),u.maxWidth!=null&&(l+=`and (max-width: ${u.maxWidth}px) `),l+=`{
|
|
35
35
|
.${n} {
|
|
36
36
|
grid-template-columns: ${u.columns||"auto"};
|
|
37
37
|
grid-template-rows: ${u.rows||"auto"};
|
|
@@ -49,7 +49,7 @@ Please refer to documentation`),n.children=[C]}}buildVirtualViewUrl(n,r,a){let u
|
|
|
49
49
|
}
|
|
50
50
|
${a}
|
|
51
51
|
</style>
|
|
52
|
-
`,r}createCompoundItemContainer(n){const r=n||{},a=document.createElement("div");return a.setAttribute("style",`grid-row: ${r.row||"auto"}; grid-column: ${r.column||"auto"}`),a.classList.add("lui-compoundItemCnt"),a}}const rf=i=>{const n=i.use;return n?n==="grid"?new qS(i):n.createCompoundContainer||n.createCompoundItemContainer||n.attachCompoundItem?new QS(i):new zr(i):new zr(i)},xc=(i,n,r,a)=>{n!=null&&n.eventListeners&&n.eventListeners.forEach((u=>{const l=u.source+"."+u.name,c=i[l],h={wcElementId:r,wcElement:a,action:u.action,converter:u.dataConverter};c?c.push(h):i[l]=[h]}))};function Lc(i){return String(i).replaceAll("<","<").replaceAll(">",">").replaceAll(""",'"').replaceAll("'","'").replaceAll("/","/")}class sf{constructor(){this.alertResolvers={},this.alertIndex=0,this.containerService=new Do}dynamicImport(n){return Object.freeze(import(n))}processViewUrl(n,r){return n}attachWC(n,r,a,u,l,c,h){if(a&&a.contains(r)){const p=document.createElement(n);c&&p.setAttribute("nodeId",c),p.setAttribute("lui_web_component","true"),this.initWC(p,n,a,l,u,c,h),a.replaceChild(p,r),a._luigi_node&&(a._luigi_mfe_webcomponent=p),a.dispatchEvent(new Event("wc_ready"))}}dispatchLuigiEvent(n,r,a){this.containerService.dispatch(n,this.thisComponent,r,a)}createClientAPI(n,r,a,u,l){return{linkManager:()=>{let c=null,h=!1,p=!1,v=!1,A={};const C={navigate:(E,y={})=>{const b={fromContext:c,fromClosestContext:h,fromVirtualTreeRoot:p,fromParent:v,nodeParams:A,...y};this.dispatchLuigiEvent(D.NAVIGATION_REQUEST,{link:E,...b})},navigateToIntent:(E,y={})=>{var O;let b="#?intent=";if(b+=E,y&&((O=Object.keys(y))==null?void 0:O.length)){const N=Object.entries(y);if(N.length>0){b+="?";for(const[G,ae]of N)b+=G+"="+ae+"&";b=b.slice(0,-1)}}C.navigate(b)},fromClosestContext:()=>(h=!0,C),fromContext:E=>(c=E,C),fromVirtualTreeRoot:()=>(p=!0,C),fromParent:()=>(v=!0,C),getCurrentRoute:()=>{const E={fromContext:c,fromClosestContext:h,fromVirtualTreeRoot:p,fromParent:v,nodeParams:A};return new Promise(((y,b)=>{this.containerService.dispatch(D.GET_CURRENT_ROUTE_REQUEST,this.thisComponent,{...E},(O=>{O?y(O):b("No current route received.")}))}))},withParams:E=>(A=E,C),updateModalPathInternalNavigation:(E,y={},b=!1)=>{if(!E)return void console.warn("Updating path of the modal upon internal navigation prevented. No path specified.");const O={fromClosestContext:h,fromContext:c,fromParent:v,fromVirtualTreeRoot:p,nodeParams:A};this.dispatchLuigiEvent(D.UPDATE_MODAL_PATH_DATA_REQUEST,Object.assign(O,{history:b,link:E,modal:y}))},updateTopNavigation:()=>{this.dispatchLuigiEvent(D.UPDATE_TOP_NAVIGATION_REQUEST,{})},pathExists:E=>{const y={fromContext:c,fromClosestContext:h,fromVirtualTreeRoot:p,fromParent:v,nodeParams:A};return new Promise(((b,O)=>{this.containerService.dispatch(D.CHECK_PATH_EXISTS_REQUEST,this.thisComponent,{...y,link:E},(N=>{N?b(!0):O(!1)})),this.containerService.dispatch(D.PATH_EXISTS_REQUEST,this.thisComponent,{...y,link:E},(N=>{N?b(!0):O(!1)}))}))},openAsDrawer:(E,y={})=>{C.navigate(E,{drawer:y})},openAsModal:(E,y={})=>{C.navigate(E,{modal:y})},openAsSplitView:(E,y={})=>{C.navigate(E,{splitView:y})},goBack:E=>{this.dispatchLuigiEvent(D.GO_BACK_REQUEST,E)},hasBack:()=>!1,updateModalSettings:(E={},y=!1)=>{this.dispatchLuigiEvent(D.UPDATE_MODAL_SETTINGS_REQUEST,{updatedModalSettings:E,addHistoryEntry:y})}};return C},uxManager:()=>({showAlert:c=>(c.id=this.alertIndex++,new Promise((h=>{this.alertResolvers[c.id]=h,this.dispatchLuigiEvent(D.ALERT_REQUEST,c,(p=>{this.resolveAlert(c.id,p)}))}))),showConfirmationModal:c=>new Promise(((h,p)=>{this.modalResolver={resolve:h,reject:p},this.containerService.dispatch(D.SHOW_CONFIRMATION_MODAL_REQUEST,this.thisComponent,c,(v=>{v?h():p()}))})),getCurrentTheme:()=>this.thisComponent.theme,closeUserSettings:()=>{this.dispatchLuigiEvent(D.CLOSE_USER_SETTINGS_REQUEST,this.thisComponent.userSettings)},openUserSettings:()=>{this.dispatchLuigiEvent(D.OPEN_USER_SETTINGS_REQUEST,this.thisComponent.userSettings)},collapseLeftSideNav:()=>{this.dispatchLuigiEvent(D.COLLAPSE_LEFT_NAV_REQUEST,{})},getDirtyStatus:()=>this.thisComponent.dirtyStatus||!1,getDocumentTitle:()=>this.thisComponent.documentTitle,setDocumentTitle:c=>{this.dispatchLuigiEvent(D.SET_DOCUMENT_TITLE_REQUEST,c)},setDirtyStatus:c=>{this.dispatchLuigiEvent(D.SET_DIRTY_STATUS_REQUEST,{dirty:c})},setCurrentLocale:c=>{c&&this.dispatchLuigiEvent(D.SET_CURRENT_LOCALE_REQUEST,{currentLocale:c})},removeBackdrop:()=>{this.dispatchLuigiEvent(D.REMOVE_BACKDROP_REQUEST,{})},addBackdrop:()=>{this.dispatchLuigiEvent(D.ADD_BACKDROP_REQUEST,{})},showLoadingIndicator:()=>{this.dispatchLuigiEvent(D.SHOW_LOADING_INDICATOR_REQUEST,{})},hideLoadingIndicator:()=>{this.dispatchLuigiEvent(D.HIDE_LOADING_INDICATOR_REQUEST,{})},hideAppLoadingIndicator:()=>{this.dispatchLuigiEvent(D.HIDE_LOADING_INDICATOR_REQUEST,{})},closeCurrentModal:()=>{this.dispatchLuigiEvent(D.CLOSE_CURRENT_MODAL_REQUEST,{})}}),getCurrentLocale:()=>this.thisComponent.locale,getActiveFeatureToggles:()=>this.thisComponent.activeFeatureToggleList||[],publishEvent:c=>{n&&n.eventBus&&n.eventBus.onPublishEvent(c,r,a);const h={id:c.type,_metaData:{nodeId:r,wc_id:a,src:u},data:c.detail};this.dispatchLuigiEvent(D.CUSTOM_MESSAGE,h)},luigiClientInit:()=>{this.dispatchLuigiEvent(D.INITIALIZED,{})},addNodeParams:(c,h)=>{l||this.dispatchLuigiEvent(D.ADD_NODE_PARAMS_REQUEST,{params:c,data:c,keepBrowserHistory:h})},getNodeParams:c=>{return l?{}:c?(h=this.thisComponent.nodeParams,Object.entries(h).reduce(((p,v)=>(p[Lc(v[0])]=Lc(v[1]),p)),{})):this.thisComponent.nodeParams||{};var h},setAnchor:c=>{l||this.dispatchLuigiEvent(D.SET_ANCHOR_LINK_REQUEST,c)},getAnchor:()=>this.thisComponent.anchor||"",getCoreSearchParams:()=>this.thisComponent.searchParams||{},getPathParams:()=>this.thisComponent.pathParams||{},getClientPermissions:()=>this.thisComponent.clientPermissions||{},addCoreSearchParams:(c={},h=!0)=>{this.dispatchLuigiEvent(D.ADD_SEARCH_PARAMS_REQUEST,{data:c,keepBrowserHistory:h})},getUserSettings:()=>this.thisComponent.userSettings||{},setViewGroupData:c=>{this.dispatchLuigiEvent(D.SET_VIEW_GROUP_DATA_REQUEST,c)}}}initWC(n,r,a,u,l,c,h){const p=this.createClientAPI(a,c,r,n,h);if(n.__postProcess){const v=new URL(document.baseURI).origin===new URL(u,document.baseURI).origin?new URL("./",new URL(u,document.baseURI)):new URL("./",u);n.__postProcess(l,p,v.origin+v.pathname)}else n.context=l,n.LuigiClient=p}generateWCId(n){let r="";const a=new URL(n,encodeURI(location.href)).href;for(let u=0;u<a.length;u++)r+=a.charCodeAt(u).toString(16);return"luigi-wc-"+r}registerWCFromUrl(n,r){const a=this.processViewUrl(n);return new Promise(((u,l)=>{this.checkWCUrl(a)?this.dynamicImport(a).then((c=>{try{if(!window.customElements.get(r)){let h=c.default;if(!HTMLElement.isPrototypeOf(h)){const p=Object.keys(c);for(let v=0;v<p.length&&(h=c[p[v]],!HTMLElement.isPrototypeOf(h));v++);}window.customElements.define(r,h)}u(1)}catch(h){l(h)}})).catch((c=>{l(c)})):l(`Error: View URL '${a}' not allowed to be included`)}))}includeSelfRegisteredWCFromUrl(n,r,a){if(this.checkWCUrl(r)){this.containerService.getContainerManager()._registerWebcomponent||(this.containerService.getContainerManager()._registerWebcomponent=(l,c)=>{window.customElements.define(this.generateWCId(l),c)}),window.Luigi||(window.Luigi={},window.Luigi._registerWebcomponent||(window.Luigi._registerWebcomponent=(l,c)=>{this.containerService.getContainerManager()._registerWebcomponent(l,c)}));const u=document.createElement("script");u.setAttribute("src",r),n.webcomponent.type==="module"&&u.setAttribute("type","module"),u.setAttribute("defer","true"),u.addEventListener("load",(()=>{a()})),document.body.appendChild(u)}else console.warn(`View URL '${r}' not allowed to be included`)}checkWCUrl(n){return!0}renderWebComponent(n,r,a,u,l,c){var A,C;const h=this.processViewUrl(n,{context:a}),p=((A=u==null?void 0:u.webcomponent)==null?void 0:A.tagName)||this.generateWCId(h),v=document.createElement("div");r.appendChild(v),r._luigi_node=u,window.customElements.get(p)?this.attachWC(p,v,r,a,h,l,c):window.luigiWCFn?window.luigiWCFn(h,p,v,(()=>{this.attachWC(p,v,r,a,h,l,c)})):(C=u==null?void 0:u.webcomponent)!=null&&C.selfRegistered?this.includeSelfRegisteredWCFromUrl(u,h,(()=>{this.attachWC(p,v,r,a,h,l,c)})):this.registerWCFromUrl(h,p).then((()=>{this.attachWC(p,v,r,a,h,l,c)})).catch((E=>{console.warn("ERROR =>",E),this.containerService.dispatch(D.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,E)}))}createCompoundContainerAsync(n,r,a){return new Promise(((u,l)=>{var c,h;if(n.viewUrl)try{const p=((c=a==null?void 0:a.webcomponent)==null?void 0:c.tagName)||this.generateWCId(n.viewUrl);(h=a==null?void 0:a.webcomponent)!=null&&h.selfRegistered?this.includeSelfRegisteredWCFromUrl(a,n.viewUrl,(()=>{const v=document.createElement(p);v.setAttribute("lui_web_component","true"),this.initWC(v,p,v,n.viewUrl,r,"_root"),u(v)})):this.registerWCFromUrl(n.viewUrl,p).then((()=>{const v=document.createElement(p);v.setAttribute("lui_web_component","true"),this.initWC(v,p,v,n.viewUrl,r,"_root"),u(v)})).catch((v=>{console.warn("Error: ",v),this.containerService.dispatch(D.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,v)}))}catch(p){l(p)}else u(n.createCompoundContainer())}))}renderWebComponentCompound(n,r,a){var l;let u;return n.webcomponent&&n.viewUrl?(u=new zr,u.viewUrl=this.processViewUrl(n.viewUrl,{context:a}),u.createCompoundItemContainer=c=>{const h=document.createElement("div");return c!=null&&c.slot&&h.setAttribute("slot",c.slot),h}):(l=n.compound)!=null&&l.renderer&&(u=rf(n.compound.renderer)),u=u||new zr,new Promise((c=>{this.createCompoundContainerAsync(u,a,n).then((h=>{var v,A;r._luigi_mfe_webcomponent=h,r._luigi_node=n;const p={};h.eventBus={listeners:p,onPublishEvent:(C,E,y)=>{const b=p[E+"."+C.type]||[];b.push(...p["*."+C.type]||[]),b.forEach((O=>{const N=O.wcElement||h.querySelector("[nodeId="+O.wcElementId+"]");N?N.dispatchEvent(new CustomEvent(O.action,{detail:O.converter?O.converter(C.detail):C.detail})):console.debug("Could not find event target",O)}))}},(A=(v=n.compound)==null?void 0:v.children)==null||A.forEach(((C,E)=>{const y={...a,...C.context},b=u.createCompoundItemContainer(C.layoutConfig);b.eventBus=h.eventBus,u.attachCompoundItem(h,b);const O=C.id||"gen_"+E;this.renderWebComponent(C.viewUrl,b,y,C,O,!0),xc(p,C,O)})),r.appendChild(h),xc(p,n.compound,"_root",h),c(h)})).catch((h=>{console.warn("Error: ",h),this.containerService.dispatch(D.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,h)}))}))}resolveAlert(n,r){this.alertResolvers[n]?(this.alertResolvers[n](r===void 0||r),this.alertResolvers[n]=void 0):console.log("Promise is not in the list.")}notifyConfirmationModalClosed(n){this.modalResolver?(n?this.modalResolver.resolve():this.modalResolver.reject(),this.modalResolver=void 0):console.log("Modal promise is not listed.")}}const Ai=new class{isFunction(i){return i&&{}.toString.call(i)==="[object Function]"}isObject(i){return!(!i||typeof i!="object"||Array.isArray(i))}checkWebcomponentValue(i){return typeof i=="string"?JSON.parse(i):typeof i=="boolean"||typeof i=="object"?i:void console.warn("Webcomponent value has a wrong type.")}resolveContext(i){return i?typeof i=="string"?JSON.parse(i):i:{}}};function $c(i){let n,r=(!i[4]||i[4]==="false")&&Nc(i);return{c(){r&&r.c(),n=Xc("")},m(a,u){r&&r.m(a,u),ar(a,n,u)},p(a,u){a[4]&&a[4]!=="false"?r&&(r.d(1),r=null):r?r.p(a,u):(r=Nc(a),r.c(),r.m(n.parentNode,n))},d(a){a&&On(n),r&&r.d(a)}}}function Nc(i){let n,r,a,u,l,c;return{c(){n=qr("style"),n.textContent=`main.lui-isolated,
|
|
52
|
+
`,r}createCompoundItemContainer(n){const r=n||{},a=document.createElement("div");return a.setAttribute("style",`grid-row: ${r.row||"auto"}; grid-column: ${r.column||"auto"}`),a.classList.add("lui-compoundItemCnt"),a}}const rf=i=>{const n=i.use;return n?n==="grid"?new qS(i):n.createCompoundContainer||n.createCompoundItemContainer||n.attachCompoundItem?new QS(i):new zr(i):new zr(i)},xc=(i,n,r,a)=>{n!=null&&n.eventListeners&&n.eventListeners.forEach((u=>{const l=u.source+"."+u.name,c=i[l],h={wcElementId:r,wcElement:a,action:u.action,converter:u.dataConverter};c?c.push(h):i[l]=[h]}))};function Lc(i){return String(i).replaceAll("<","<").replaceAll(">",">").replaceAll(""",'"').replaceAll("'","'").replaceAll("/","/")}class sf{constructor(){this.alertResolvers={},this.alertIndex=0,this.containerService=new Do}dynamicImport(n){return Object.freeze(import(n))}processViewUrl(n,r){return n}attachWC(n,r,a,u,l,c,h){if(a&&a.contains(r)){const p=document.createElement(n);c&&p.setAttribute("nodeId",c),p.setAttribute("lui_web_component","true"),this.initWC(p,n,a,l,u,c,h),a.replaceChild(p,r),a._luigi_node&&(a._luigi_mfe_webcomponent=p),a.dispatchEvent(new Event("wc_ready"))}}dispatchLuigiEvent(n,r,a){this.containerService.dispatch(n,this.thisComponent,r,a)}createClientAPI(n,r,a,u,l){return{linkManager:()=>{let c=null,h=!1,p=!1,v=!1,R={};const C={navigate:(E,T={})=>{const A={fromContext:c,fromClosestContext:h,fromVirtualTreeRoot:p,fromParent:v,nodeParams:R,...T};this.dispatchLuigiEvent(D.NAVIGATION_REQUEST,{link:E,...A})},navigateToIntent:(E,T={})=>{var O;let A="#?intent=";if(A+=E,T&&((O=Object.keys(T))==null?void 0:O.length)){const N=Object.entries(T);if(N.length>0){A+="?";for(const[V,ae]of N)A+=V+"="+ae+"&";A=A.slice(0,-1)}}C.navigate(A)},fromClosestContext:()=>(h=!0,C),fromContext:E=>(c=E,C),fromVirtualTreeRoot:()=>(p=!0,C),fromParent:()=>(v=!0,C),getCurrentRoute:()=>{const E={fromContext:c,fromClosestContext:h,fromVirtualTreeRoot:p,fromParent:v,nodeParams:R};return new Promise(((T,A)=>{this.containerService.dispatch(D.GET_CURRENT_ROUTE_REQUEST,this.thisComponent,{...E},(O=>{O?T(O):A("No current route received.")}))}))},withParams:E=>(R=E,C),updateModalPathInternalNavigation:(E,T={},A=!1)=>{if(!E)return void console.warn("Updating path of the modal upon internal navigation prevented. No path specified.");const O={fromClosestContext:h,fromContext:c,fromParent:v,fromVirtualTreeRoot:p,nodeParams:R};this.dispatchLuigiEvent(D.UPDATE_MODAL_PATH_DATA_REQUEST,Object.assign(O,{history:A,link:E,modal:T}))},updateTopNavigation:()=>{this.dispatchLuigiEvent(D.UPDATE_TOP_NAVIGATION_REQUEST,{})},pathExists:E=>{const T={fromContext:c,fromClosestContext:h,fromVirtualTreeRoot:p,fromParent:v,nodeParams:R};return new Promise(((A,O)=>{this.containerService.dispatch(D.CHECK_PATH_EXISTS_REQUEST,this.thisComponent,{...T,link:E},(N=>{N?A(!0):O(!1)})),this.containerService.dispatch(D.PATH_EXISTS_REQUEST,this.thisComponent,{...T,link:E},(N=>{N?A(!0):O(!1)}))}))},openAsDrawer:(E,T={})=>{C.navigate(E,{drawer:T})},openAsModal:(E,T={})=>{C.navigate(E,{modal:T})},openAsSplitView:(E,T={})=>{C.navigate(E,{splitView:T})},goBack:E=>{this.dispatchLuigiEvent(D.GO_BACK_REQUEST,E)},hasBack:()=>!1,updateModalSettings:(E={},T=!1)=>{this.dispatchLuigiEvent(D.UPDATE_MODAL_SETTINGS_REQUEST,{updatedModalSettings:E,addHistoryEntry:T})}};return C},uxManager:()=>({showAlert:c=>(c.id=this.alertIndex++,new Promise((h=>{this.alertResolvers[c.id]=h,this.dispatchLuigiEvent(D.ALERT_REQUEST,c,(p=>{this.resolveAlert(c.id,p)}))}))),showConfirmationModal:c=>new Promise(((h,p)=>{this.modalResolver={resolve:h,reject:p},this.containerService.dispatch(D.SHOW_CONFIRMATION_MODAL_REQUEST,this.thisComponent,c,(v=>{v?h():p()}))})),getCurrentTheme:()=>this.thisComponent.theme,closeUserSettings:()=>{this.dispatchLuigiEvent(D.CLOSE_USER_SETTINGS_REQUEST,this.thisComponent.userSettings)},openUserSettings:()=>{this.dispatchLuigiEvent(D.OPEN_USER_SETTINGS_REQUEST,this.thisComponent.userSettings)},collapseLeftSideNav:()=>{this.dispatchLuigiEvent(D.COLLAPSE_LEFT_NAV_REQUEST,{})},getDirtyStatus:()=>this.thisComponent.dirtyStatus||!1,getDocumentTitle:()=>this.thisComponent.documentTitle,setDocumentTitle:c=>{this.dispatchLuigiEvent(D.SET_DOCUMENT_TITLE_REQUEST,c)},setDirtyStatus:c=>{this.dispatchLuigiEvent(D.SET_DIRTY_STATUS_REQUEST,{dirty:c})},setCurrentLocale:c=>{c&&this.dispatchLuigiEvent(D.SET_CURRENT_LOCALE_REQUEST,{currentLocale:c})},removeBackdrop:()=>{this.dispatchLuigiEvent(D.REMOVE_BACKDROP_REQUEST,{})},addBackdrop:()=>{this.dispatchLuigiEvent(D.ADD_BACKDROP_REQUEST,{})},showLoadingIndicator:()=>{this.dispatchLuigiEvent(D.SHOW_LOADING_INDICATOR_REQUEST,{})},hideLoadingIndicator:()=>{this.dispatchLuigiEvent(D.HIDE_LOADING_INDICATOR_REQUEST,{})},hideAppLoadingIndicator:()=>{this.dispatchLuigiEvent(D.HIDE_LOADING_INDICATOR_REQUEST,{})},closeCurrentModal:()=>{this.dispatchLuigiEvent(D.CLOSE_CURRENT_MODAL_REQUEST,{})}}),getCurrentLocale:()=>this.thisComponent.locale,getActiveFeatureToggles:()=>this.thisComponent.activeFeatureToggleList||[],publishEvent:c=>{n&&n.eventBus&&n.eventBus.onPublishEvent(c,r,a);const h={id:c.type,_metaData:{nodeId:r,wc_id:a,src:u},data:c.detail};this.dispatchLuigiEvent(D.CUSTOM_MESSAGE,h)},luigiClientInit:()=>{this.dispatchLuigiEvent(D.INITIALIZED,{})},addNodeParams:(c,h)=>{l||this.dispatchLuigiEvent(D.ADD_NODE_PARAMS_REQUEST,{params:c,data:c,keepBrowserHistory:h})},getNodeParams:c=>{return l?{}:c?(h=this.thisComponent.nodeParams,Object.entries(h).reduce(((p,v)=>(p[Lc(v[0])]=Lc(v[1]),p)),{})):this.thisComponent.nodeParams||{};var h},setAnchor:c=>{l||this.dispatchLuigiEvent(D.SET_ANCHOR_LINK_REQUEST,c)},getAnchor:()=>this.thisComponent.anchor||"",getCoreSearchParams:()=>this.thisComponent.searchParams||{},getPathParams:()=>this.thisComponent.pathParams||{},getClientPermissions:()=>this.thisComponent.clientPermissions||{},addCoreSearchParams:(c={},h=!0)=>{this.dispatchLuigiEvent(D.ADD_SEARCH_PARAMS_REQUEST,{data:c,keepBrowserHistory:h})},getUserSettings:()=>this.thisComponent.userSettings||{},setViewGroupData:c=>{this.dispatchLuigiEvent(D.SET_VIEW_GROUP_DATA_REQUEST,c)}}}initWC(n,r,a,u,l,c,h){const p=this.createClientAPI(a,c,r,n,h);if(n.__postProcess){const v=new URL(document.baseURI).origin===new URL(u,document.baseURI).origin?new URL("./",new URL(u,document.baseURI)):new URL("./",u);n.__postProcess(l,p,v.origin+v.pathname)}else n.context=l,n.LuigiClient=p}generateWCId(n){let r="";const a=new URL(n,encodeURI(location.href)).href;for(let u=0;u<a.length;u++)r+=a.charCodeAt(u).toString(16);return"luigi-wc-"+r}registerWCFromUrl(n,r){const a=this.processViewUrl(n);return new Promise(((u,l)=>{this.checkWCUrl(a)?this.dynamicImport(a).then((c=>{try{if(!window.customElements.get(r)){let h=c.default;if(!HTMLElement.isPrototypeOf(h)){const p=Object.keys(c);for(let v=0;v<p.length&&(h=c[p[v]],!HTMLElement.isPrototypeOf(h));v++);}window.customElements.define(r,h)}u(1)}catch(h){l(h)}})).catch((c=>{l(c)})):l(`Error: View URL '${a}' not allowed to be included`)}))}includeSelfRegisteredWCFromUrl(n,r,a){if(this.checkWCUrl(r)){this.containerService.getContainerManager()._registerWebcomponent||(this.containerService.getContainerManager()._registerWebcomponent=(l,c)=>{window.customElements.define(this.generateWCId(l),c)}),window.Luigi||(window.Luigi={},window.Luigi._registerWebcomponent||(window.Luigi._registerWebcomponent=(l,c)=>{this.containerService.getContainerManager()._registerWebcomponent(l,c)}));const u=document.createElement("script");u.setAttribute("src",r),n.webcomponent.type==="module"&&u.setAttribute("type","module"),u.setAttribute("defer","true"),u.addEventListener("load",(()=>{a()})),document.body.appendChild(u)}else console.warn(`View URL '${r}' not allowed to be included`)}checkWCUrl(n){return!0}renderWebComponent(n,r,a,u,l,c){var R,C;const h=this.processViewUrl(n,{context:a}),p=((R=u==null?void 0:u.webcomponent)==null?void 0:R.tagName)||this.generateWCId(h),v=document.createElement("div");r.appendChild(v),r._luigi_node=u,window.customElements.get(p)?this.attachWC(p,v,r,a,h,l,c):window.luigiWCFn?window.luigiWCFn(h,p,v,(()=>{this.attachWC(p,v,r,a,h,l,c)})):(C=u==null?void 0:u.webcomponent)!=null&&C.selfRegistered?this.includeSelfRegisteredWCFromUrl(u,h,(()=>{this.attachWC(p,v,r,a,h,l,c)})):this.registerWCFromUrl(h,p).then((()=>{this.attachWC(p,v,r,a,h,l,c)})).catch((E=>{console.warn("ERROR =>",E),this.containerService.dispatch(D.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,E)}))}createCompoundContainerAsync(n,r,a){return new Promise(((u,l)=>{var c,h;if(n.viewUrl)try{const p=((c=a==null?void 0:a.webcomponent)==null?void 0:c.tagName)||this.generateWCId(n.viewUrl);(h=a==null?void 0:a.webcomponent)!=null&&h.selfRegistered?this.includeSelfRegisteredWCFromUrl(a,n.viewUrl,(()=>{const v=document.createElement(p);v.setAttribute("lui_web_component","true"),this.initWC(v,p,v,n.viewUrl,r,"_root"),u(v)})):this.registerWCFromUrl(n.viewUrl,p).then((()=>{const v=document.createElement(p);v.setAttribute("lui_web_component","true"),this.initWC(v,p,v,n.viewUrl,r,"_root"),u(v)})).catch((v=>{console.warn("Error: ",v),this.containerService.dispatch(D.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,v)}))}catch(p){l(p)}else u(n.createCompoundContainer())}))}renderWebComponentCompound(n,r,a){var l;let u;return n.webcomponent&&n.viewUrl?(u=new zr,u.viewUrl=this.processViewUrl(n.viewUrl,{context:a}),u.createCompoundItemContainer=c=>{const h=document.createElement("div");return c!=null&&c.slot&&h.setAttribute("slot",c.slot),h}):(l=n.compound)!=null&&l.renderer&&(u=rf(n.compound.renderer)),u=u||new zr,new Promise((c=>{this.createCompoundContainerAsync(u,a,n).then((h=>{var v,R;r._luigi_mfe_webcomponent=h,r._luigi_node=n;const p={};h.eventBus={listeners:p,onPublishEvent:(C,E,T)=>{const A=p[E+"."+C.type]||[];A.push(...p["*."+C.type]||[]),A.forEach((O=>{const N=O.wcElement||h.querySelector("[nodeId="+O.wcElementId+"]");N?N.dispatchEvent(new CustomEvent(O.action,{detail:O.converter?O.converter(C.detail):C.detail})):console.debug("Could not find event target",O)}))}},(R=(v=n.compound)==null?void 0:v.children)==null||R.forEach(((C,E)=>{const T={...a,...C.context},A=u.createCompoundItemContainer(C.layoutConfig);A.eventBus=h.eventBus,u.attachCompoundItem(h,A);const O=C.id||"gen_"+E;this.renderWebComponent(C.viewUrl,A,T,C,O,!0),xc(p,C,O)})),r.appendChild(h),xc(p,n.compound,"_root",h),c(h)})).catch((h=>{console.warn("Error: ",h),this.containerService.dispatch(D.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,h)}))}))}resolveAlert(n,r){this.alertResolvers[n]?(this.alertResolvers[n](r===void 0||r),this.alertResolvers[n]=void 0):console.log("Promise is not in the list.")}notifyConfirmationModalClosed(n){this.modalResolver?(n?this.modalResolver.resolve():this.modalResolver.reject(),this.modalResolver=void 0):console.log("Modal promise is not listed.")}}const Ai=new class{isFunction(i){return i&&{}.toString.call(i)==="[object Function]"}isObject(i){return!(!i||typeof i!="object"||Array.isArray(i))}checkWebcomponentValue(i){return typeof i=="string"?JSON.parse(i):typeof i=="boolean"||typeof i=="object"?i:void console.warn("Webcomponent value has a wrong type.")}resolveContext(i){return i?typeof i=="string"?JSON.parse(i):i:{}}};function $c(i){let n,r=(!i[4]||i[4]==="false")&&Oc(i);return{c(){r&&r.c(),n=Xc("")},m(a,u){r&&r.m(a,u),ar(a,n,u)},p(a,u){a[4]&&a[4]!=="false"?r&&(r.d(1),r=null):r?r.p(a,u):(r=Oc(a),r.c(),r.m(n.parentNode,n))},d(a){a&&Nn(n),r&&r.d(a)}}}function Oc(i){let n,r,a,u,l,c;return{c(){n=qr("style"),n.textContent=`main.lui-isolated,
|
|
53
53
|
.lui-isolated iframe {
|
|
54
54
|
width: 100%;
|
|
55
55
|
height: 100%;
|
|
@@ -58,5 +58,5 @@ Please refer to documentation`),n.children=[C]}}buildVirtualViewUrl(n,r,a){let u
|
|
|
58
58
|
|
|
59
59
|
main.lui-isolated {
|
|
60
60
|
line-height: 0;
|
|
61
|
-
}`,r=Xc(" "),a=qr("iframe"),bc(a.src,u=i[3])||$t(a,"src",u),$t(a,"title",i[1]),$t(a,"allow",l=Ic(i[0])),$t(a,"sandbox",c=i[2]?i[2].join(" "):void 0)},m(h,p){ar(h,n,p),ar(h,r,p),ar(h,a,p),i[28](a)},p(h,p){8&p[0]&&!bc(a.src,u=h[3])&&$t(a,"src",u),2&p[0]&&$t(a,"title",h[1]),1&p[0]&&l!==(l=Ic(h[0]))&&$t(a,"allow",l),4&p[0]&&c!==(c=h[2]?h[2].join(" "):void 0)&&$t(a,"sandbox",c)},d(h){h&&(On(n),On(r),On(a)),i[28](null)}}}function zS(i){let n,r,a=i[5]&&$c(i);return{c(){n=qr("main"),a&&a.c(),$t(n,"class",r=i[4]?void 0:"lui-isolated")},m(u,l){ar(u,n,l),a&&a.m(n,null),i[29](n)},p(u,l){u[5]?a?a.p(u,l):(a=$c(u),a.c(),a.m(n,null)):a&&(a.d(1),a=null),16&l[0]&&r!==(r=u[4]?void 0:"lui-isolated")&&$t(n,"class",r)},i:Nn,o:Nn,d(u){u&&On(n),a&&a.d(),i[29](null)}}}function KS(i,n,r){let{activeFeatureToggleList:a}=n,{allowRules:u}=n,{anchor:l}=n,{authData:c}=n,{clientPermissions:h}=n,{context:p}=n,{deferInit:v}=n,{dirtyStatus:A}=n,{documentTitle:C}=n,{hasBack:E}=n,{label:y}=n,{locale:b}=n,{noShadow:O}=n,{nodeParams:N}=n,{pathParams:G}=n,{sandboxRules:ae}=n,{searchParams:ce}=n,{skipCookieCheck:Ge}=n,{skipInitCheck:Ee}=n,{theme:Qe}=n,{userSettings:Pe}=n,{viewurl:Fe}=n,{webcomponent:Ie}=n;const Ce={};let Te,U,Dt=!1;const Ze=new sf,Oe=x=>{if(!Dt){x.sendCustomMessage=(ie,ye)=>{Ir.sendCustomMessage(ie,x.getNoShadow()?x:Te,!!Ie,Ce,ye)},x.updateContext=(ie,ye)=>{if(r(8,p=ie),Ie)(x.getNoShadow()?x:Te)._luigi_mfe_webcomponent.context=ie;else{const ke={...ye||{},activeFeatureToggleList:x.activeFeatureToggleList||[],currentLocale:x.locale,currentTheme:x.theme,userSettings:x.userSettings||null,cssVariables:x.cssVariables||{},anchor:x.anchor||"",drawer:x.drawer||!1,modal:x.modal||!1,viewStackSize:x.viewStackSize||0,isNavigateBack:x.isNavigateBack||!1};Ir.updateContext(ie,ke,Ce,N,G,ce)}},x.closeAlert=(ie,ye)=>{x.notifyAlertClosed(ie,ye)},x.notifyAlertClosed=(ie,ye)=>{x.isConnected&&(Ie?Ze.resolveAlert(ie,ye):Ir.notifyAlertClosed(ie,ye,Ce))},x.notifyConfirmationModalClosed=ie=>{x.isConnected&&(Ie?Ze.notifyConfirmationModalClosed(!!ie):Ir.notifyConfirmationModalClosed(!!ie,Ce))},Ln.registerContainer(x),Ze.thisComponent=x;const qe=Ai.resolveContext(p);if(x.updateViewUrl=(ie,ye)=>{ie!=null&&ie.length&&Ir.updateViewUrl(ie,Ai.resolveContext(p),ye,Ce)},Ie&&Ie!="false"){x.getNoShadow()?x.innerHTML="":(r(7,Te.innerHTML="",Te),x.attachShadow({mode:"open"}).append(Te));const ie=Ai.checkWebcomponentValue(Ie);Ze.renderWebComponent(Fe,x.getNoShadow()?x:Te,qe,typeof ie=="object"?{webcomponent:ie}:{})}else x.getNoShadow()||(x.innerHTML="",x.attachShadow({mode:"open"}).append(Te));Ee?(x.initialized=!0,setTimeout((()=>{Ze.dispatchLuigiEvent(D.INITIALIZED,{})}))):Ie&&(x.getNoShadow()?x:Te).addEventListener("wc_ready",(()=>{var ie;(ie=(x.getNoShadow()?x:Te)._luigi_mfe_webcomponent)!=null&&ie.deferLuigiClientWCInit||(x.initialized=!0,Ze.dispatchLuigiEvent(D.INITIALIZED,{}))})),r(5,Dt=!0),x.containerInitialized=!0}};var Yt;return Jc((async()=>{r(27,U=Te.parentNode),r(27,U.iframeHandle=Ce,U),r(27,U.init=()=>{Oe(U)},U),!v&&Fe&&Oe(U)})),Yt=async()=>{},Zc().$$.on_destroy.push(Yt),i.$$set=x=>{"activeFeatureToggleList"in x&&r(9,a=x.activeFeatureToggleList),"allowRules"in x&&r(0,u=x.allowRules),"anchor"in x&&r(10,l=x.anchor),"authData"in x&&r(11,c=x.authData),"clientPermissions"in x&&r(12,h=x.clientPermissions),"context"in x&&r(8,p=x.context),"deferInit"in x&&r(13,v=x.deferInit),"dirtyStatus"in x&&r(14,A=x.dirtyStatus),"documentTitle"in x&&r(15,C=x.documentTitle),"hasBack"in x&&r(16,E=x.hasBack),"label"in x&&r(1,y=x.label),"locale"in x&&r(17,b=x.locale),"noShadow"in x&&r(18,O=x.noShadow),"nodeParams"in x&&r(19,N=x.nodeParams),"pathParams"in x&&r(20,G=x.pathParams),"sandboxRules"in x&&r(2,ae=x.sandboxRules),"searchParams"in x&&r(21,ce=x.searchParams),"skipCookieCheck"in x&&r(22,Ge=x.skipCookieCheck),"skipInitCheck"in x&&r(23,Ee=x.skipInitCheck),"theme"in x&&r(24,Qe=x.theme),"userSettings"in x&&r(25,Pe=x.userSettings),"viewurl"in x&&r(3,Fe=x.viewurl),"webcomponent"in x&&r(4,Ie=x.webcomponent)},i.$$.update=()=>{134225960&i.$$.dirty[0]&&!Dt&&Fe&&!v&&U&&Oe(U)},[u,y,ae,Fe,Ie,Dt,Ce,Te,p,a,l,c,h,v,A,C,E,b,O,N,G,ce,Ge,Ee,Qe,Pe,()=>a&&u&&l&&c&&h&&A&&C&&E&&b&&O&&N&&G&&ae&&ce&&Ge&&Ee&&Qe&&Pe,U,function(x){Ii[x?"unshift":"push"]((()=>{Ce.iframe=x,r(6,Ce)}))},function(x){Ii[x?"unshift":"push"]((()=>{Te=x,r(7,Te)}))}]}class af extends nf{constructor(n){super(),jc(this,n,KS,zS,Yc,{activeFeatureToggleList:9,allowRules:0,anchor:10,authData:11,clientPermissions:12,context:8,deferInit:13,dirtyStatus:14,documentTitle:15,hasBack:16,label:1,locale:17,noShadow:18,nodeParams:19,pathParams:20,sandboxRules:2,searchParams:21,skipCookieCheck:22,skipInitCheck:23,theme:24,userSettings:25,viewurl:3,webcomponent:4,unwarn:26},null,[-1,-1])}get activeFeatureToggleList(){return this.$$.ctx[9]}set activeFeatureToggleList(n){this.$$set({activeFeatureToggleList:n}),z()}get allowRules(){return this.$$.ctx[0]}set allowRules(n){this.$$set({allowRules:n}),z()}get anchor(){return this.$$.ctx[10]}set anchor(n){this.$$set({anchor:n}),z()}get authData(){return this.$$.ctx[11]}set authData(n){this.$$set({authData:n}),z()}get clientPermissions(){return this.$$.ctx[12]}set clientPermissions(n){this.$$set({clientPermissions:n}),z()}get context(){return this.$$.ctx[8]}set context(n){this.$$set({context:n}),z()}get deferInit(){return this.$$.ctx[13]}set deferInit(n){this.$$set({deferInit:n}),z()}get dirtyStatus(){return this.$$.ctx[14]}set dirtyStatus(n){this.$$set({dirtyStatus:n}),z()}get documentTitle(){return this.$$.ctx[15]}set documentTitle(n){this.$$set({documentTitle:n}),z()}get hasBack(){return this.$$.ctx[16]}set hasBack(n){this.$$set({hasBack:n}),z()}get label(){return this.$$.ctx[1]}set label(n){this.$$set({label:n}),z()}get locale(){return this.$$.ctx[17]}set locale(n){this.$$set({locale:n}),z()}get noShadow(){return this.$$.ctx[18]}set noShadow(n){this.$$set({noShadow:n}),z()}get nodeParams(){return this.$$.ctx[19]}set nodeParams(n){this.$$set({nodeParams:n}),z()}get pathParams(){return this.$$.ctx[20]}set pathParams(n){this.$$set({pathParams:n}),z()}get sandboxRules(){return this.$$.ctx[2]}set sandboxRules(n){this.$$set({sandboxRules:n}),z()}get searchParams(){return this.$$.ctx[21]}set searchParams(n){this.$$set({searchParams:n}),z()}get skipCookieCheck(){return this.$$.ctx[22]}set skipCookieCheck(n){this.$$set({skipCookieCheck:n}),z()}get skipInitCheck(){return this.$$.ctx[23]}set skipInitCheck(n){this.$$set({skipInitCheck:n}),z()}get theme(){return this.$$.ctx[24]}set theme(n){this.$$set({theme:n}),z()}get userSettings(){return this.$$.ctx[25]}set userSettings(n){this.$$set({userSettings:n}),z()}get viewurl(){return this.$$.ctx[3]}set viewurl(n){this.$$set({viewurl:n}),z()}get webcomponent(){return this.$$.ctx[4]}set webcomponent(n){this.$$set({webcomponent:n}),z()}get unwarn(){return this.$$.ctx[26]}}function YS(i){FS(i,"svelte-1buc46y","main.svelte-1buc46y{width:100%;height:100%;border:none}")}function XS(i){let n;return{c(){n=qr("main"),$t(n,"class","svelte-1buc46y")},m(r,a){ar(r,n,a),i[21](n)},p:Nn,i:Nn,o:Nn,d(r){r&&On(n),i[21](null)}}}function ZS(i,n,r){let a,u,{activeFeatureToggleList:l}=n,{anchor:c}=n,{clientPermissions:h}=n,{compoundConfig:p}=n,{context:v}=n,{deferInit:A}=n,{dirtyStatus:C}=n,{documentTitle:E}=n,{hasBack:y}=n,{locale:b}=n,{noShadow:O}=n,{nodeParams:N}=n,{pathParams:G}=n,{searchParams:ae}=n,{skipInitCheck:ce}=n,{theme:Ge}=n,{userSettings:Ee}=n,{viewurl:Qe}=n,{webcomponent:Pe}=n,Fe=!1;const Ie=new Do,Ce=new sf,Te=U=>{if(!p||Fe)return;U.updateContext=(Oe,Yt)=>{const x=U.getNoShadow()?U:a;x._luigi_mfe_webcomponent.context=Oe,r(1,v=Oe);const qe=x._luigi_mfe_webcomponent;if(qe){const ie=qe.querySelectorAll("[lui_web_component]");ie==null||ie.forEach((ye=>{const ke=ye.context||{};ye.context=Object.assign(ke,Oe)}))}};const Dt=Ai.resolveContext(v);r(2,A=!1),U.notifyAlertClosed=(Oe,Yt)=>{U.isConnected&&Ce.resolveAlert(Oe,Yt)},U.notifyConfirmationModalClosed=Oe=>{U.isConnected&&Ce.notifyConfirmationModalClosed(!!Oe)};const Ze={compound:p,viewUrl:Qe,webcomponent:Ai.checkWebcomponentValue(Pe)||!0};U.getNoShadow()?U.innerHTML="":(r(0,a.innerHTML="",a),U.attachShadow({mode:"open"}).append(a)),Ce.renderWebComponentCompound(Ze,U.getNoShadow()?U:a,Dt).then((Oe=>{u=Oe,ce||!Ze.viewUrl?(U.initialized=!0,setTimeout((()=>{Ce.dispatchLuigiEvent(D.INITIALIZED,{})}))):u.LuigiClient&&!u.deferLuigiClientWCInit&&(U.initialized=!0,Ce.dispatchLuigiEvent(D.INITIALIZED,{}))})),Fe=!0,U.containerInitialized=!0};return Jc((async()=>{const U=a.getRootNode()===document?a.parentNode:a.getRootNode().host;U.init=()=>{Te(U)},A||Te(U),Ie.registerContainer(U),Ce.thisComponent=U})),i.$$set=U=>{"activeFeatureToggleList"in U&&r(3,l=U.activeFeatureToggleList),"anchor"in U&&r(4,c=U.anchor),"clientPermissions"in U&&r(5,h=U.clientPermissions),"compoundConfig"in U&&r(6,p=U.compoundConfig),"context"in U&&r(1,v=U.context),"deferInit"in U&&r(2,A=U.deferInit),"dirtyStatus"in U&&r(7,C=U.dirtyStatus),"documentTitle"in U&&r(8,E=U.documentTitle),"hasBack"in U&&r(9,y=U.hasBack),"locale"in U&&r(10,b=U.locale),"noShadow"in U&&r(11,O=U.noShadow),"nodeParams"in U&&r(12,N=U.nodeParams),"pathParams"in U&&r(13,G=U.pathParams),"searchParams"in U&&r(14,ae=U.searchParams),"skipInitCheck"in U&&r(15,ce=U.skipInitCheck),"theme"in U&&r(16,Ge=U.theme),"userSettings"in U&&r(17,Ee=U.userSettings),"viewurl"in U&&r(18,Qe=U.viewurl),"webcomponent"in U&&r(19,Pe=U.webcomponent)},[a,v,A,l,c,h,p,C,E,y,b,O,N,G,ae,ce,Ge,Ee,Qe,Pe,()=>l&&c&&h&&C&&E&&y&&b&&O&&N&&G&&ae&&ce&&Ge&&Ee,function(U){Ii[U?"unshift":"push"]((()=>{a=U,r(0,a)}))}]}tf(af,{activeFeatureToggleList:{type:"Array",reflect:!1,attribute:"active-feature-toggle-list"},allowRules:{type:"Array",reflect:!1,attribute:"allow-rules"},anchor:{type:"String",reflect:!1,attribute:"anchor"},authData:{type:"Object",reflect:!1,attribute:"auth-data"},clientPermissions:{type:"Object",reflect:!1,attribute:"client-permissions"},context:{type:"String",reflect:!1,attribute:"context"},deferInit:{type:"Boolean",attribute:"defer-init"},dirtyStatus:{type:"Boolean",reflect:!1,attribute:"dirty-status"},documentTitle:{type:"String",reflect:!1,attribute:"document-title"},hasBack:{type:"Boolean",reflect:!1,attribute:"has-back"},label:{type:"String",reflect:!1,attribute:"label"},locale:{type:"String",reflect:!1,attribute:"locale"},noShadow:{type:"Boolean",attribute:"no-shadow"},nodeParams:{type:"Object",reflect:!1,attribute:"node-params"},pathParams:{type:"Object",reflect:!1,attribute:"path-params"},sandboxRules:{type:"Array",reflect:!1,attribute:"sandbox-rules"},searchParams:{type:"Object",reflect:!1,attribute:"search-params"},skipCookieCheck:{type:"String",reflect:!1,attribute:"skip-cookie-check"},skipInitCheck:{type:"Boolean",reflect:!1,attribute:"skip-init-check"},theme:{type:"String",reflect:!1,attribute:"theme"},userSettings:{type:"Object",reflect:!1,attribute:"user-settings"},viewurl:{type:"String",reflect:!1,attribute:"viewurl"},webcomponent:{type:"String",reflect:!1,attribute:"webcomponent"}},[],["unwarn"],!1,(i=>{let n=r=>()=>console.warn(r+" can't be called on luigi-container before its micro frontend is attached to the DOM.");return class extends i{constructor(){super(...arguments);fe(this,"sendCustomMessage",n("sendCustomMessage"));fe(this,"updateContext",n("updateContext"));fe(this,"updateViewUrl",n("updateViewUrl"));fe(this,"closeAlert",n("closeAlert"));fe(this,"notifyAlertClosed",n("notifyAlertClosed"));fe(this,"notifyConfirmationModalClosed",n("notifyConfirmationModalClosed"))}attributeChangedCallback(a,u,l){try{super.attributeChangedCallback(a,u,l)}catch(c){console.error("Error in super.attributeChangedCallback",c)}this.containerInitialized&&(a==="context"&&this.updateContext(JSON.parse(l)),a==="auth-data"&&Ir.updateAuthData(this.iframeHandle,JSON.parse(l)))}getNoShadow(){return this.hasAttribute("no-shadow")||this.noShadow}}}));class Oc extends nf{constructor(n){super(),jc(this,n,ZS,XS,Yc,{activeFeatureToggleList:3,anchor:4,clientPermissions:5,compoundConfig:6,context:1,deferInit:2,dirtyStatus:7,documentTitle:8,hasBack:9,locale:10,noShadow:11,nodeParams:12,pathParams:13,searchParams:14,skipInitCheck:15,theme:16,userSettings:17,viewurl:18,webcomponent:19,unwarn:20},YS)}get activeFeatureToggleList(){return this.$$.ctx[3]}set activeFeatureToggleList(n){this.$$set({activeFeatureToggleList:n}),z()}get anchor(){return this.$$.ctx[4]}set anchor(n){this.$$set({anchor:n}),z()}get clientPermissions(){return this.$$.ctx[5]}set clientPermissions(n){this.$$set({clientPermissions:n}),z()}get compoundConfig(){return this.$$.ctx[6]}set compoundConfig(n){this.$$set({compoundConfig:n}),z()}get context(){return this.$$.ctx[1]}set context(n){this.$$set({context:n}),z()}get deferInit(){return this.$$.ctx[2]}set deferInit(n){this.$$set({deferInit:n}),z()}get dirtyStatus(){return this.$$.ctx[7]}set dirtyStatus(n){this.$$set({dirtyStatus:n}),z()}get documentTitle(){return this.$$.ctx[8]}set documentTitle(n){this.$$set({documentTitle:n}),z()}get hasBack(){return this.$$.ctx[9]}set hasBack(n){this.$$set({hasBack:n}),z()}get locale(){return this.$$.ctx[10]}set locale(n){this.$$set({locale:n}),z()}get noShadow(){return this.$$.ctx[11]}set noShadow(n){this.$$set({noShadow:n}),z()}get nodeParams(){return this.$$.ctx[12]}set nodeParams(n){this.$$set({nodeParams:n}),z()}get pathParams(){return this.$$.ctx[13]}set pathParams(n){this.$$set({pathParams:n}),z()}get searchParams(){return this.$$.ctx[14]}set searchParams(n){this.$$set({searchParams:n}),z()}get skipInitCheck(){return this.$$.ctx[15]}set skipInitCheck(n){this.$$set({skipInitCheck:n}),z()}get theme(){return this.$$.ctx[16]}set theme(n){this.$$set({theme:n}),z()}get userSettings(){return this.$$.ctx[17]}set userSettings(n){this.$$set({userSettings:n}),z()}get viewurl(){return this.$$.ctx[18]}set viewurl(n){this.$$set({viewurl:n}),z()}get webcomponent(){return this.$$.ctx[19]}set webcomponent(n){this.$$set({webcomponent:n}),z()}get unwarn(){return this.$$.ctx[20]}}tf(Oc,{activeFeatureToggleList:{type:"Array",reflect:!1,attribute:"active-feature-toggle-list"},anchor:{type:"String",reflect:!1,attribute:"anchor"},clientPermissions:{type:"Object",reflect:!1,attribute:"client-permissions"},compoundConfig:{type:"Object",reflect:!1,attribute:"compound-config"},context:{type:"String",reflect:!1,attribute:"context"},deferInit:{type:"Boolean",attribute:"defer-init"},dirtyStatus:{type:"Boolean",reflect:!1,attribute:"dirty-status"},documentTitle:{type:"String",reflect:!1,attribute:"document-title"},hasBack:{type:"Boolean",reflect:!1,attribute:"has-back"},locale:{type:"String",reflect:!1,attribute:"locale"},noShadow:{type:"Boolean",attribute:"no-shadow",reflect:!1},nodeParams:{type:"Object",reflect:!1,attribute:"node-params"},pathParams:{type:"Object",reflect:!1,attribute:"path-params"},searchParams:{type:"Object",reflect:!1,attribute:"search-params"},skipInitCheck:{type:"Boolean",reflect:!1,attribute:"skip-init-check"},theme:{type:"String",reflect:!1,attribute:"theme"},userSettings:{type:"Object",reflect:!1,attribute:"user-settings"},viewurl:{type:"String",reflect:!1,attribute:"viewurl"},webcomponent:{type:"String",reflect:!1,attribute:"webcomponent"}},[],["unwarn"],!1,(i=>{let n=r=>()=>console.warn(r+" can't be called on luigi-container before its micro frontend is attached to the DOM.");return class extends i{constructor(){super(...arguments);fe(this,"updateContext",n("updateContext"));fe(this,"notifyAlertClosed",n("notifyAlertClosed"));fe(this,"notifyConfirmationModalClosed",n("notifyConfirmationModalClosed"))}attributeChangedCallback(a,u,l){try{super.attributeChangedCallback(a,u,l)}catch(c){console.warn("Error in attributeChangedCallback",c)}this.containerInitialized&&a==="context"&&this.updateContext(JSON.parse(l))}getNoShadow(){return this.hasAttribute("no-shadow")||this.noShadow}}})),customElements.get("luigi-container")||customElements.define("luigi-container",af.element),customElements.get("luigi-compound-container")||customElements.define("luigi-compound-container",Oc.element);class Kr{constructor(){this.decorators=[]}hasDecorators(){return this.decorators.length>0}add(n){this.decorators=this.decorators.filter(r=>r.uid!==n.uid).concat(n)}applyDecorators(n,r){if(!n)return n;const a=new URL(H.prependOrigin(n)),u=this.decorators.filter(l=>l.type==="queryString");for(let l=0;l<u.length;l++){const c=u[l];a.searchParams.has(c.key)&&a.searchParams.delete(c.key);const h=c.valueFn();a.searchParams.append(c.key,h)}return r&&(a.search=decodeURIComponent(a.search)),a.href}}const wo=async(i,n)=>{const r=await n.readUserSettings(),u=i.userSettingsGroup&&typeof r=="object"&&r!==null?r[i.userSettingsGroup]:null;if(i.webcomponent&&!Q.checkWCUrl(i.viewUrl,n))return console.warn(`View URL '${i.viewUrl}' not allowed to be included`),document.createElement("div");if(i.compound){const l=document.createElement("luigi-compound-container");return l.setAttribute("lui_container","true"),l.viewurl=re.get(Kr).applyDecorators(i.viewUrl,i.decodeViewUrl),l.webcomponent=i.webcomponent,l.compoundConfig=i.compound,l.context=i.context,l.clientPermissions=i.clientPermissions,l.nodeParams=i.nodeParams,l.pathParams=i.pathParams,l.userSettingsGroup=i.userSettingsGroup,l.userSettings=u,l.searchParams=i.searchParams,l.activeFeatureToggleList=n.featureToggles().getActiveFeatureToggleList(),l.locale=n.i18n().getCurrentLocale(),l.theme=n.theming().getCurrentTheme(),l.viewGroup=i.viewGroup,l.virtualTree=i.virtualTree||i._virtualTree,l.virtualTreeRootNode=Ve.findVirtualTreeRootNode(i),n.getEngine()._comm.addListeners(l,n),l}else{const l=document.createElement("luigi-container");return l.setAttribute("lui_container","true"),l.viewurl=re.get(Kr).applyDecorators(i.viewUrl,i.decodeViewUrl),l.webcomponent=i.webcomponent,l.context=i.context,l.clientPermissions=i.clientPermissions,l.cssVariables=await n.theming().getCSSVariables(),l.nodeParams=i.nodeParams,l.pathParams=i.pathParams,l.userSettingsGroup=i.userSettingsGroup,l.userSettings=u,l.searchParams=i.searchParams,l.activeFeatureToggleList=n.featureToggles().getActiveFeatureToggleList(),l.locale=n.i18n().getCurrentLocale(),l.theme=n.theming().getCurrentTheme(),l.viewGroup=i.viewGroup,l.virtualTree=i.virtualTree||i._virtualTree,l.virtualTreeRootNode=Ve.findVirtualTreeRootNode(i),of(l,n),uf(l,n),n.getEngine()._comm.addListeners(l,n),l}},of=(i,n)=>{const r=n.getConfigValue("settings.customSandboxRules");if(!(r!=null&&r.length))return;const a=["allow-forms","allow-modals","allow-popups","allow-popups-to-escape-sandbox","allow-same-origin","allow-scripts"],u=r?[...new Set([...a,...r])]:a;i.sandboxRules=u},uf=(i,n)=>{const r=n.getConfigValue("settings.allowRules");r!=null&&r.length&&(r.forEach((a,u)=>{r[u]=a+(a.indexOf(";")!=-1?"":";")}),i.allowRules=r)},Ye={navService:void 0,routingService:void 0,luigi:void 0,init:i=>{var n;console.log("Init UI..."),Ye.navService=re.get(Wn),Ye.routingService=re.get(or),Ye.luigi=i,(n=i.getEngine()._connector)==null||n.renderMainLayout()},update:async i=>{var a,u,l;const n=Ye.routingService.getCurrentRoute();if(!n)return;const r=!i||i.length===0;(r||i.includes("settings.header")||i.includes("settings")||i.includes("navigation")||i.includes("navigation.profile")||i.includes("navigation.contextSwitcher")||i.includes("navigation.productSwitcher"))&&((a=Ye.luigi.getEngine()._connector)==null||a.renderTopNav(await Ye.navService.getTopNavData(n.path))),(r||i.includes("navigation")||i.includes("navigation.nodes")||i.includes("navigation.viewgroupdata")||i.includes("settings")||i.includes("settings.footer"))&&(re.get(kn).deleteCache(),(u=Ye.luigi.getEngine()._connector)==null||u.renderLeftNav(await Ye.navService.getLeftNavData(n.path)),(l=Ye.luigi.getEngine()._connector)==null||l.renderTabNav(await Ye.navService.getTabNavData(n.path))),(r||i.includes("navigation")||i.includes("navigation.nodes")||i.includes("navigation.viewgroupdata")||i.includes("settings.theming"))&&(re.get(kn).deleteCache(),Ye.updateMainContent(n.node,Ye.luigi))},updateMainContent:async(i,n,r,a)=>{var p,v,A;const u=await n.readUserSettings(),c=i.userSettingsGroup&&typeof u=="object"&&u!==null?u[i.userSettingsGroup]:null,h=(p=n.getEngine()._connector)==null?void 0:p.getContainerWrapper();if((v=n.getEngine()._connector)==null||v.hideLoadingIndicator(h),i&&h){let C,E;if((i.virtualTree||i._virtualTree)&&(E=Ve.findVirtualTreeRootNode(i)),[...h.childNodes].forEach(y=>{var b;((b=y.tagName)==null?void 0:b.indexOf("LUIGI-"))===0&&(y.viewGroup&&i.viewGroup!==y.viewGroup?y.style.display="none":y.viewGroup||y.virtualTree&&E===y.virtualTreeRootNode?C=y:y.remove())}),C)r||(C.style.display="block",C.viewurl=re.get(Kr).applyDecorators(i.viewUrl,i.decodeViewUrl),C.nodeParams=i.nodeParams,C.pathParams=i.pathParams,C.clientPermissions=i.clientPermissions,C.searchParams=Q.prepareSearchParamsForClient(i,n),C.locale=n.i18n().getCurrentLocale(),C.theme=n.theming().getCurrentTheme(),C.activeFeatureToggleList=n.featureToggles().getActiveFeatureToggleList(),C.userSettingsGroup=i.userSettingsGroup,C.userSettings=c,of(C,n),uf(C,n)),a||C.updateContext(i.context||{});else{const y=await wo(i,n);h==null||h.appendChild(y);const b=n.getEngine()._connector;((A=i.loadingIndicator)==null?void 0:A.enabled)!==!1&&(b==null||b.showLoadingIndicator(h))}}},openModal:async(i,n,r,a)=>{var b,O;const u=await wo(n,i),l=re.get(or),c=re.get(Fn);let h=!1,p,v;const C=new Promise(N=>{p=()=>{h||(h=!0,N(),c.removeLastModalFromStack())},v=()=>{p&&p(),i.getConfigValue("routing.showModalPathInUrl")&&c.getModalStackLength()===0&&l.removeModalDataFromUrl(!0)},u.addEventListener(D.CLOSE_CURRENT_MODAL_REQUEST,v)}),E={closePromise:C,resolveFn:p,onCloseRequestHandler:v,onInternalClose:()=>{try{E.resolveFn&&E.resolveFn()}catch(N){console.warn("onInternalClose failed",N)}},modalsettings:r};c.registerModal(E),(b=i.getEngine()._connector)==null||b.renderModal(u,r,()=>{a==null||a(),c.removeLastModalFromStack(),i.getConfigValue("routing.showModalPathInUrl")&&c.getModalStackLength()===0&&l.removeModalDataFromUrl(!0)},()=>C);const y=i.getEngine()._connector;((O=n.loadingIndicator)==null?void 0:O.enabled)!==!1&&(y==null||y.showLoadingIndicator(u.parentElement))},updateModalSettings:(i,n,r)=>{var c;const a=re.get(Fn);if(a.getModalStackLength()===0)return;a.updateFirstModalSettings(i);const u=re.get(or),l=Q.getModalPathFromPath(r);l&&u.updateModalDataInUrl(l,a.getModalSettings(),n),(c=r.getEngine()._connector)==null||c.updateModalSettings(a.getModalSettings())},openDrawer:async(i,n,r,a)=>{var c,h;const u=await wo(n,i);(c=i.getEngine()._connector)==null||c.renderDrawer(u,r,a);const l=i.getEngine()._connector;((h=n.loadingIndicator)==null?void 0:h.enabled)!==!1&&(l==null||l.showLoadingIndicator(u.parentElement))}};class or{constructor(n){this.luigi=n}getNavigationService(){return this.navigationService||(this.navigationService=re.get(Wn)),this.navigationService}shouldSkipRoutingForUrlPatterns(){const n=[/access_token=/,/id_token=/];return(this.luigi.getConfigValue("routing.skipRoutingForUrlPatterns")||n).filter(a=>location.href.match(a)).length!==0}enableRouting(){var r;const n=this.luigi.getConfig();console.log("Init Routing...",n.routing),(r=n.routing)!=null&&r.useHashRouting?(window.addEventListener("hashchange",a=>{var c,h;const u=!!((c=a==null?void 0:a.detail)!=null&&c.preventContextUpdate),l=!!((h=a==null?void 0:a.detail)!=null&&h.withoutSync);this.handleRouteChange(Q.getCurrentPath(!0),l,u)}),this.handleRouteChange(Q.getCurrentPath(!0))):(window.addEventListener("popstate",a=>{var c,h;const u=!!((c=a==null?void 0:a.detail)!=null&&c.preventContextUpdate),l=!!((h=a==null?void 0:a.detail)!=null&&h.withoutSync);this.handleRouteChange(Q.getCurrentPath(),l,u)}),this.handleRouteChange(Q.getCurrentPath()))}async handleRouteChange(n,r=!1,a=!1){var y,b,O;const u=n.path,l=n.query,c=u+(l?"?"+l:""),h=new URLSearchParams(l),p={};if(this.shouldSkipRoutingForUrlPatterns())return;this.setFeatureToggle(c),await this.shouldShowModalPathInUrl(n),h.forEach((N,G)=>{p[G]=N}),this.checkInvalidateCache(this.previousPathData,u);const v=await this.getNavigationService().getPathData(u);this.previousPathData=v;const A=Q.filterNodeParams(p,this.luigi),C=await this.getNavigationService().shouldRedirect(u,v);if(C){this.luigi.navigation().navigate(C);return}this.currentRoute={raw:window.location.href,path:u,nodeParams:A},(y=this.luigi.getEngine()._connector)==null||y.renderTopNav(await this.getNavigationService().getTopNavData(u,v)),(b=this.luigi.getEngine()._connector)==null||b.renderLeftNav(await this.getNavigationService().getLeftNavData(u,v)),(O=this.luigi.getEngine()._connector)==null||O.renderTabNav(await this.getNavigationService().getTabNavData(u,v));const E=(v==null?void 0:v.selectedNode)??await this.getNavigationService().getCurrentNode(u);E&&(this.currentRoute.node=E,E.nodeParams=A||{},E.pathParams=(v==null?void 0:v.pathParams)||{},E.searchParams=Q.prepareSearchParamsForClient(E,this.luigi),this.getNavigationService().onNodeChange(this.previousNode,E),this.previousNode=E,E.viewUrl=Q.substituteViewUrl(E.viewUrl,v,this.luigi),Ye.updateMainContent(E,this.luigi,r,a))}getCurrentRoute(){return this.currentRoute}async shouldShowModalPathInUrl(n){this.luigi.getConfigValue("routing.showModalPathInUrl")&&await this.handleBookmarkableModalPath(n)}async handleBookmarkableModalPath(n){var h;const r=re.get(Wn),a=re.get(Fn),u=new URLSearchParams((n==null?void 0:n.query)||""),l=Q.getModalViewParamName(this.luigi),c=u.get(l);if(c){const p=u.get(`${l}Params`);try{const v=JSON.parse(p||"{}"),{nodeObject:A}=await r.extractDataFromPath(c);document.querySelector(".lui-modal luigi-container")?(h=this.luigi.getEngine()._connector)==null||h.updateModalSettings(v):this.luigi.navigation().openAsModal(c,v||A.openNodeInModal)}catch(v){console.error("Error parsing modal settings from URL parameters",v)}}else{a.closeModals();return}}appendModalDataToUrl(n,r){const a=Q.getHashQueryParamSeparator(),u=Q.getQueryParams(this.luigi),l=Q.getModalViewParamName(this.luigi),c=u[l],h=new URL(location.href),p=this.luigi.getConfigValue("routing.useHashRouting");let v=history.state,A,C;if(p){let[E,y]=h.hash.split("?");A=E,C=Q.getURLWithoutModalData(y,l),C&&(A+="?"+C)}else A=h.pathname,C=Q.getURLWithoutModalData(h.search,l),C&&(A+="?"+Q.getURLWithoutModalData(h.search,l));if(v=Q.handleHistoryState(v,A),c!==n){if(u[l]=n,r&&Object.keys(r).length&&(u[`${l}Params`]=JSON.stringify(r)),p){const E=location.hash.indexOf(a);E!==-1&&(h.hash=h.hash.slice(0,E)),h.hash=`${h.hash}${a}${Q.encodeParams(u)}`}else h.search=`?${Q.encodeParams(u)}`;history.pushState(v,"",h.href)}else{const E=new URL(h);if(p){let y=E.hash.split("?")[0];E.hash=y,C&&(E.hash+="?"+C)}else E.search=C;history.replaceState({},"",E.href),history.pushState(v,"",h.href)}}removeModalDataFromUrl(n){const r=Q.getQueryParams(this.luigi),a=Q.getModalViewParamName(this.luigi);let u=new URL(location.href);if(this.luigi.getConfigValue("routing.useHashRouting")){let c={};r[a]&&(c[a]=r[a]),r[`${a}Params`]&&(c[`${a}Params`]=r[`${a}Params`]);let h=Q.encodeParams(c);u.hash.includes(`?${h}`)?u.hash=u.hash.replace(`?${h}`,""):u.hash.includes(`&${h}`)&&(u.hash=u.hash.replace(`&${h}`,""))}else{let c=new URLSearchParams(u.search.slice(1));c.delete(a),c.delete(`${a}Params`);let h="";Array.from(c.keys()).forEach(p=>{h+=(h===""?"?":"&")+p+"="+c.get(p)}),u.search=h}if(history.state&&history.state.modalHistoryLength>=0&&n){history.state.modalHistoryLength;const c=history.state.pathBeforeHistory;let h=!1;if(window.addEventListener("popstate",p=>{h?(history.replaceState({},"",c),history.pushState({},"",c),history.back()):(history.pushState({},"",c),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 p=history.length-1;h=!0,history.go(-p),window.Luigi.preventLoadingModalData=!0}else{const p=history.state.modalHistoryLength;history.go(-p)}}else history.pushState({},"",u.href)}setFeatureToggle(n){const r=this.luigi.getConfigValue("settings.featureToggles.queryStringParam"),a=this.luigi.featureToggles();r&&typeof n=="string"&&Q.setFeatureToggles(r,n,a)}updateModalDataInUrl(n,r,a){let u=Q.getHashQueryParamSeparator();const l=Q.getQueryParams(this.luigi),c=Q.getModalViewParamName(this.luigi);l[c]=n,r&&Object.keys(r).length&&(l[`${c}Params`]=JSON.stringify(r));const h=new URL(location.href);if(this.luigi.getConfigValue("routing.useHashRouting")){const v=location.hash.indexOf(u);v!==-1&&(h.hash=h.hash.slice(0,v)),h.hash=`${h.hash}${u}${Q.encodeParams(l)}`}else h.search=`?${Q.encodeParams(l)}`;a?history.pushState(window.state,"",h.href):history.replaceState(window.state,"",h.href)}checkInvalidateCache(n,r){if(!n)return;const a=re.get(kn);let u=r.split("/");if(n.nodesInPath&&n.nodesInPath.length>0){let l=n.nodesInPath.slice(1),c=!0;for(let h=0;h<l.length;h++){let p=u.length>h?u[h]:void 0,v=l[h];if(p!==v.pathSegment||!c)if(Q.isDynamicNode(v)){if(!c||p!==Q.getDynamicNodeValue(v,n.pathParams)){a.deleteNodesRecursively(v);break}}else c=!1}}else a.deleteCache()}}class JS{constructor(n){var r;this.hashRouting=!1,this.options={fromContext:null,fromClosestContext:!1,fromVirtualTreeRoot:!1,fromParent:!1},this.navigate=async(a,u,l,c,h)=>{const p={modalSettings:l,newTab:!1,options:this.options,path:a,preserveView:u,preventContextUpdate:!1,preventHistoryEntry:!1,withoutSync:!1};this.navService.handleNavigationRequest(p,void 0)},this.openAsModal=async(a,u,l)=>{u!=null&&u.keepPrevious||await this.modalService.closeModals();const c=a.replace(/\/\/+/g,"/"),h=await this.navService.getCurrentNode(c),p=u||{};p.title||(p.title=h.label),this.luigi.getConfigValue("routing.showModalPathInUrl")&&this.modalService.getModalStackLength()===0&&this.routingService.appendModalDataToUrl(c,p),this.luigi.getEngine()._ui.openModal(this.luigi,h,p,l)},this.openAsDrawer=async(a,u,l)=>{const c=a.replace(/\/\/+/g,"/"),h=await this.navService.getCurrentNode(c),p=u||{};p.title||(p.title=h.label),this.luigi.getEngine()._ui.openDrawer(this.luigi,h,p,l)},this.runTimeErrorHandler=async a=>{var h,p,v;const{path:u}=Q.getCurrentPath((h=this.luigi.getConfig().routing)==null?void 0:h.useHashRouting),l=await this.navService.getCurrentNode(u),c=this.luigi.getConfigValue("navigation.defaults.runTimeErrorHandler");(p=l==null?void 0:l.runTimeErrorHandler)!=null&&p.errorFn&&H.isFunction((v=l==null?void 0:l.runTimeErrorHandler)==null?void 0:v.errorFn)?l.runTimeErrorHandler.errorFn(a,l):c!=null&&c.errorFn&&H.isFunction(c.errorFn)&&c.errorFn(a,l)},this.luigi=n,this.hashRouting=(r=n.getConfig().routing)==null?void 0:r.useHashRouting,this.navService=re.get(Wn),this.routingService=re.get(or),this.modalService=re.get(Fn)}fromVirtualTreeRoot(){return this.options.fromContext=null,this.options.fromClosestContext=!1,this.options.fromVirtualTreeRoot=!0,this.options.fromParent=!1,this}}class jS{constructor(n){this.luigi=n}addSearchParams(n,r=!1){if(!H.isObject(n)){console.log("Params argument must be an object");return}const a=new URL(location.href);this.luigi.getConfigValue("routing.useHashRouting")?a.hash=Q.addParamsOnHashRouting(n,a.hash):Q.modifySearchParams(n,a.searchParams),this.handleBrowserHistory(r,a),this.luigi.configChanged()}getSearchParams(){const n={},r=["__proto__","constructor","prototype"],a=new URL(location.href);let u;if(this.luigi.getConfigValue("routing.useHashRouting")){const l=a.hash.split("?")[1];u=l?new URLSearchParams(l).entries():[]}else u=a.searchParams.entries();for(const[l,c]of u){if(r.some(h=>l===h)){console.warn(`Blocked because of potentially dangerous query param: ${l}`);continue}n[l]=c}return n}handleBrowserHistory(n,r){const a=this.sanitizeUrl(r.href);if(!a){console.warn("invalid url: "+a);return}n?window.history.pushState({},"",a):window.history.replaceState({},"",a)}sanitizeUrl(n){return new URL(location.href).origin===new URL(n).origin?n:void 0}addNodeParams(n,r){if(!H.isObject(n)){console.log("Params argument must be an object");return}const a=Q.getContentViewParamPrefix(this.luigi),u=new URL(location.href);this.luigi.getConfigValue("routing.useHashRouting")?u.hash=Q.addParamsOnHashRouting(n,u.hash,a):Q.modifySearchParams(n,u.searchParams,a),this.handleBrowserHistory(r,u),this.luigi.getConfigValue("routing.useHashRouting")?window.dispatchEvent(new HashChangeEvent("hashchange")):this.luigi.configChanged()}}var mt,Fr;class ew{constructor(n){le(this,mt);le(this,Fr,"");J(this,mt,n)}async getAvailableThemes(){return await $(this,mt).getConfigValueAsync("settings.theming.themes")}setCurrentTheme(n){J(this,Fr,n),$(this,mt).__cssVars=void 0}async getThemeObject(n){const r=await this.getAvailableThemes();return r==null?void 0:r.find(a=>a.id===n)}getCurrentTheme(){if(!this.isThemingAvailable())return!1;if($(this,Fr))return $(this,Fr);const n=$(this,mt).getConfigValue("settings.theming");return n.defaultTheme||console.error("[Theming] getCurrentTheme() error. No theme set and no defaultTheme found in configuration",n),n.defaultTheme}isThemingAvailable(){return!!$(this,mt).getConfigValue("settings.theming")}async getCSSVariables(){if(!window.Luigi.__cssVars){const n=$(this,mt).getConfigValue("settings.theming.variables.file");if(n)try{const r=await fetch(n);window.Luigi.__cssVars=(await r.json()).root,Object.keys(window.Luigi.__cssVars).forEach(a=>{const u=getComputedStyle(document.documentElement).getPropertyValue("--"+a);u&&(window.Luigi.__cssVars[a]=u)})}catch(r){H.isFunction($(this,mt).getConfigValue("settings.theming.variables.errorHandling"))?$(this,mt).getConfigValue("settings.theming.variables.errorHandling")(r):console.error("CSS variables file error: ",r)}else $(this,mt).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 n=re.get(Kr);(()=>{const a=$(this,mt).getConfigValue("settings.theming");a&&a.nodeViewURLDecorator&&a.nodeViewURLDecorator.queryStringParameter&&n.add({type:"queryString",uid:"theming",key:a.nodeViewURLDecorator.queryStringParameter.keyName,valueFn:()=>{const u=this.getCurrentTheme(),l=a.nodeViewURLDecorator.queryStringParameter.value;return l?l(u):u}}),a&&a.useFioriScrollbars===!0&&document.body.classList.add("fioriScrollbars")})()}}mt=new WeakMap,Fr=new WeakMap;class Vs{constructor(){this.unsavedChanges={isDirty:!1,persistUrl:null}}updateDirtyStatus(n,r){var a,u;if(!this.unsavedChanges.dirtySet||!(this.unsavedChanges.dirtySet instanceof Set)){const l=new Set;l.add(r),this.unsavedChanges={dirtySet:l}}this.unsavedChanges.persistUrl=window.location.href,n?(a=this.unsavedChanges.dirtySet)==null||a.add(r):(u=this.unsavedChanges.dirtySet)==null||u.delete(r)}clearDirtyState(n){this.unsavedChanges&&this.unsavedChanges.dirtySet&&(n?this.unsavedChanges.dirtySet.delete(n):this.unsavedChanges.dirtySet.clear())}readDirtyStatus(){return this.unsavedChanges.dirtySet?this.unsavedChanges.dirtySet.size>0:!!this.unsavedChanges.isDirty}}let Uc;const Me={luigi:void 0,documentTitle:void 0,init:i=>{console.log("ux init..."),Me.luigi=i,Me.documentTitle=ks(void 0),Uc=re.get(Vs)},processAlert:(i,n,r)=>{var u;if(!Me.luigi)throw new Error("Luigi is not initialized.");const a={openFromClient:n,close:()=>{i.id&&r.notifyAlertClosed(i.id)},link:l=>{var c;if(i.links){const h=i.links[l];if(h&&(h.url&&((c=Me.luigi)==null||c.navigation().navigate(h.url)),h.dismissKey&&i.id))return r.notifyAlertClosed(i.id,h.dismissKey),!0}return!1}};(u=Me.luigi.getEngine()._connector)==null||u.renderAlert(i,a)},handleConfirmationModalRequest:(i,n)=>{var r;if(!Me.luigi)throw new Error("Luigi is not initialized.");i&&(i={...i,header:Me.luigi.i18n().getTranslation(i.header||"luigi.confirmationModal.header"),body:Me.luigi.i18n().getTranslation(i.body||"luigi.confirmationModal.body"),buttonDismiss:Me.luigi.i18n().getTranslation(i.buttonDismiss||"luigi.button.dismiss"),buttonConfirm:Me.luigi.i18n().getTranslation(i.buttonConfirm||"luigi.button.confirm")}),(r=Me.luigi.getEngine()._connector)==null||r.renderConfirmationModal(i,{confirm(){n.notifyConfirmationModalClosed(!0)},dismiss(){n.notifyConfirmationModalClosed(!1)}})},handleDirtyStatusRequest:(i,n)=>{if(!Me.luigi)throw new Error("Luigi is not initialized.");Uc.updateDirtyStatus(i,n)}};class tw{processUserSettingGroups(n,r){var h;const a=[],u=n==null?void 0:n.userSettingGroups,l=(h=r==null?void 0:r.userSettings)==null?void 0:h.userSettingGroups,c=u||l;if(H.isObject(c)){for(const p in c){const v={};v[p]=c[p],a.push(v)}return a}return a}getUserSettingsIframesInDom(){const n=document.querySelector(".iframeUserSettingsCtn");return n?[...n.children]:[]}hideUserSettingsIframe(){this.getUserSettingsIframesInDom().forEach(n=>{n.style.display="none"})}findActiveCustomUserSettingsIframe(n){const r=document.querySelectorAll("[userSettingsGroup]");for(let a=0;a<r.length;a++)if(r[a].contentWindow===n)return r[a];return null}}const nw=new tw;class rw{constructor(n){this.dirtyStatusService=re.get(Vs),this.appLoadingIndicatorSelector="[luigi-app-loading-indicator]",this.showAlert=r=>new Promise(a=>{var l;r.id||(r.id=H.getRandomId().toString());const u={openFromClient:!1,close:()=>{a(!0)},link:c=>{var h;if(r.links){const p=r.links[c];if(p&&(p.url&&((h=this.luigi)==null||h.navigation().navigate(p.url)),p.dismissKey))return a(p.dismissKey),!0}return!1}};(l=this.luigi.getEngine()._connector)==null||l.renderAlert(r,u)}),this.showConfirmationModal=r=>(r&&(r={...r,header:this.luigi.i18n().getTranslation(r.header||"luigi.confirmationModal.header"),body:this.luigi.i18n().getTranslation(r.body||"luigi.confirmationModal.body"),buttonDismiss:this.luigi.i18n().getTranslation(r.buttonDismiss||"luigi.button.dismiss"),buttonConfirm:this.luigi.i18n().getTranslation(r.buttonConfirm||"luigi.button.confirm")}),new Promise((a,u)=>{var l;(l=this.luigi.getEngine()._connector)==null||l.renderConfirmationModal(r,{confirm(){a(!0)},dismiss(){u()}})})),this.processUserSettingGroups=()=>{const r=this.luigi.getConfigValue("userSettings"),a=this.luigi.getConfigValue("settings");return nw.processUserSettingGroups(r,a)},this.openUserSettings=r=>{var a;(a=this.luigi.getEngine()._connector)==null||a.openUserSettings(r)},this.closeUserSettings=()=>{var r;(r=this.luigi.getEngine()._connector)==null||r.closeUserSettings()},this.setDocumentTitle=r=>{var a,u,l;(u=(a=this.luigi.getEngine()._ux)==null?void 0:a.documentTitle)==null||u.set(r),(l=this.luigi.getEngine()._connector)==null||l.setDocumentTitle(r)},this.getDocumentTitle=()=>{var r;return qc((r=this.luigi.getEngine()._ux)==null?void 0:r.documentTitle)||window.document.title||""},this.hideAppLoadingIndicator=()=>{const r=document.querySelector(this.appLoadingIndicatorSelector);r&&(r.classList.add("hidden"),setTimeout(()=>{var a;(a=r.parentNode)==null||a.removeChild(r)},500))},this.showLoadingIndicator=r=>{var a;return(a=this.luigi.getEngine()._connector)==null?void 0:a.showLoadingIndicator(r)},this.hideLoadingIndicator=r=>{var a;return(a=this.luigi.getEngine()._connector)==null?void 0:a.hideLoadingIndicator(r)},this.addBackdrop=()=>{var r;return(r=this.luigi.getEngine()._connector)==null?void 0:r.addBackdrop()},this.removeBackdrop=()=>{var r;return(r=this.luigi.getEngine()._connector)==null?void 0:r.removeBackdrop()},this.getDirtyStatus=()=>this.dirtyStatusService.readDirtyStatus(),this.luigi=n}}class iw{constructor(n){this.engine=n,this.initialized=!1,this.configReadyCallback=function(){},this.USER_SETTINGS_KEY="luigi.preferences.userSettings",this.setConfig=r=>{this.config=r,this.setConfigCallback(this.getConfigReadyCallback()),Ur.init().then(()=>{this.engine.init(),this.initialized||(this.initialized=!0,US.luigiAfterInit(this))})},this.getConfig=()=>this.config,this.configChanged=(...r)=>{this.getEngine()._ui.update(r)},this.i18n=()=>(this._i18n||(this._i18n=new OS(this)),this._i18n),this.navigation=()=>new JS(this),this.ux=()=>new rw(this),this.featureToggles=()=>(this._featureToggles||(this._featureToggles=new DS),this._featureToggles),this.routing=()=>(this._routing||(this._routing=new jS(this)),this._routing),this.theming=()=>(this._theming||(this._theming=new ew(this)),this._theming),this.auth=()=>xr,this._store=this.createConfigStore()}getEngine(){return this.engine}getConfigValue(n){return H.getConfigValueFromObject(this.getConfig(),n)}getConfigValueAsync(n,...r){return Or.getConfigValueFromObjectAsync(this.getConfig(),n,r)}clearNavigationCache(){re.get(kn).deleteCache()}async readUserSettings(){const n=await this.getConfigValueAsync("userSettings"),r=n||await this.getConfigValueAsync("settings.userSettings");if(r&&H.isFunction(r.readUserSettings))return r.readUserSettings();const a=localStorage.getItem(this.USER_SETTINGS_KEY);return a&&JSON.parse(a)}async storeUserSettings(n,r){const a=await this.getConfigValueAsync("userSettings"),u=a||await this.getConfigValueAsync("settings.userSettings");if(u&&H.isFunction(u.storeUserSettings))return u.storeUserSettings(n,r);localStorage.setItem(this.USER_SETTINGS_KEY,JSON.stringify(n)),this.configChanged()}createConfigStore(){const n=ks({}),r={};let a=[];return{subscribe:u=>{a.push(n.subscribe(u))},reset:u=>{n.update(u)},subscribeToScope:(u,l)=>{let c=r[l];c||(c=new Set,r[l]=c),c.add(u)},fire:(u,l)=>{const c=r[u];c&&[...c].forEach(h=>{h(l)})},clear:()=>{a.forEach(u=>{u()}),a=[]}}}getConfigReadyCallback(){return new Promise(n=>{this.i18n()._init(),n()})}setConfigCallback(n){this.configReadyCallback=n}}const yo=!1;var sw=Array.isArray,aw=Array.prototype.indexOf,Yr=Array.prototype.includes,ow=Array.from,uw=Object.defineProperty,Ri=Object.getOwnPropertyDescriptor,lw=Object.prototype,cw=Array.prototype,fw=Object.getPrototypeOf,Dc=Object.isExtensible;const hw=()=>{};function gw(i){for(var n=0;n<i.length;n++)i[n]()}function dw(){var i,n,r=new Promise((a,u)=>{i=a,n=u});return{promise:r,resolve:i,reject:n}}const rt=2,qs=4,lf=8,cf=1<<24,wn=16,Vn=32,fr=64,Ao=128,Ot=512,Xe=1024,nt=2048,zt=4096,Un=8192,ur=16384,Xr=32768,Bs=65536,Mc=1<<17,ff=1<<18,zs=1<<19,pw=1<<20,cr=65536,Ro=1<<21,hf=1<<22,xi=1<<23,Eo=Symbol("$state"),Mo=new class extends Error{constructor(){super(...arguments);fe(this,"name","StaleReactionError");fe(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function _w(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function vw(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function mw(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Sw(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ww(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const tt=Symbol();function Ew(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Cw(i){return i===this.v}let Fo=!1,Tw=!1;function yw(){Fo=!0}let Kt=null;function Gs(i){Kt=i}function Aw(i,n=!1,r){Kt={p:Kt,i:!1,c:null,e:null,s:i,x:null,l:Fo&&!n?{s:null,u:null,$:[]}:null}}function Rw(i){var n=Kt,r=n.e;if(r!==null){n.e=null;for(var a of r)Gw(a)}return n.i=!0,Kt=n.p,{}}function Ks(){return!Fo||Kt!==null&&Kt.l===null}let Lr=[];function bw(){var i=Lr;Lr=[],gw(i)}function Mr(i){if(Lr.length===0){var n=Lr;queueMicrotask(()=>{n===Lr&&bw()})}Lr.push(i)}function gf(i){var n=be;if(n===null)return he.f|=xi,i;if((n.f&Xr)===0&&(n.f&qs)===0)throw i;$r(i,n)}function $r(i,n){for(;n!==null;){if((n.f&Ao)!==0){if((n.f&Xr)===0)throw i;try{n.b.error(i);return}catch(r){i=r}}n=n.parent}throw i}const Pw=-7169;function $e(i,n){i.f=i.f&Pw|n}function ko(i){(i.f&Ot)!==0||i.deps===null?$e(i,Xe):$e(i,zt)}function df(i){if(i!==null)for(const n of i)(n.f&rt)===0||(n.f&cr)===0||(n.f^=cr,df(n.deps))}function pf(i,n,r){(i.f&nt)!==0?n.add(i):(i.f&zt)!==0&&r.add(i),df(i.deps),$e(i,Xe)}const Ls=new Set;let we=null,Be=null,Nt=[],Wo=null,bo=!1;var kr,Wr,nr,Hr,$i,Ni,rr,vn,Vr,wt,Po,Io,xo,_f;const Qo=class Qo{constructor(){le(this,wt);fe(this,"current",new Map);fe(this,"previous",new Map);le(this,kr,new Set);le(this,Wr,new Set);le(this,nr,0);le(this,Hr,0);le(this,$i,null);le(this,Ni,new Set);le(this,rr,new Set);le(this,vn,new Map);fe(this,"is_fork",!1);le(this,Vr,!1)}skip_effect(n){$(this,vn).has(n)||$(this,vn).set(n,{d:[],m:[]})}unskip_effect(n){var r=$(this,vn).get(n);if(r){$(this,vn).delete(n);for(var a of r.d)$e(a,nt),nn(a);for(a of r.m)$e(a,zt),nn(a)}}process(n){var u;Nt=[],this.apply();var r=[],a=[];for(const l of n)De(this,wt,Io).call(this,l,r,a);if(De(this,wt,Po).call(this)){De(this,wt,xo).call(this,a),De(this,wt,xo).call(this,r);for(const[l,c]of $(this,vn))Sf(l,c)}else{for(const l of $(this,kr))l();$(this,kr).clear(),$(this,nr)===0&&De(this,wt,_f).call(this),we=null,Fc(a),Fc(r),(u=$(this,$i))==null||u.resolve()}Be=null}capture(n,r){r!==tt&&!this.previous.has(n)&&this.previous.set(n,r),(n.f&xi)===0&&(this.current.set(n,n.v),Be==null||Be.set(n,n.v))}activate(){we=this,this.apply()}deactivate(){we===this&&(we=null,Be=null)}flush(){if(this.activate(),Nt.length>0){if(Iw(),we!==null&&we!==this)return}else $(this,nr)===0&&this.process([]);this.deactivate()}discard(){for(const n of $(this,Wr))n(this);$(this,Wr).clear()}increment(n){J(this,nr,$(this,nr)+1),n&&J(this,Hr,$(this,Hr)+1)}decrement(n){J(this,nr,$(this,nr)-1),n&&J(this,Hr,$(this,Hr)-1),!$(this,Vr)&&(J(this,Vr,!0),Mr(()=>{J(this,Vr,!1),De(this,wt,Po).call(this)?Nt.length>0&&this.flush():this.revive()}))}revive(){for(const n of $(this,Ni))$(this,rr).delete(n),$e(n,nt),nn(n);for(const n of $(this,rr))$e(n,zt),nn(n);this.flush()}oncommit(n){$(this,kr).add(n)}ondiscard(n){$(this,Wr).add(n)}settled(){return($(this,$i)??J(this,$i,dw())).promise}static ensure(){if(we===null){const n=we=new Qo;Ls.add(we),Mr(()=>{we===n&&n.flush()})}return we}apply(){}};kr=new WeakMap,Wr=new WeakMap,nr=new WeakMap,Hr=new WeakMap,$i=new WeakMap,Ni=new WeakMap,rr=new WeakMap,vn=new WeakMap,Vr=new WeakMap,wt=new WeakSet,Po=function(){return this.is_fork||$(this,Hr)>0},Io=function(n,r,a){n.f^=Xe;for(var u=n.first;u!==null;){var l=u.f,c=(l&(Vn|fr))!==0,h=c&&(l&Xe)!==0,p=h||(l&Un)!==0||$(this,vn).has(u);if(!p&&u.fn!==null){c?u.f^=Xe:(l&qs)!==0?r.push(u):Ui(u)&&((l&wn)!==0&&$(this,rr).add(u),Jr(u));var v=u.first;if(v!==null){u=v;continue}}for(;u!==null;){var A=u.next;if(A!==null){u=A;break}u=u.parent}}},xo=function(n){for(var r=0;r<n.length;r+=1)pf(n[r],$(this,Ni),$(this,rr))},_f=function(){var u;if(Ls.size>1){this.previous.clear();var n=Be,r=!0;for(const l of Ls){if(l===this){r=!1;continue}const c=[];for(const[p,v]of this.current){if(l.current.has(p))if(r&&v!==l.current.get(p))l.current.set(p,v);else continue;c.push(p)}if(c.length===0)continue;const h=[...l.current.keys()].filter(p=>!this.current.has(p));if(h.length>0){var a=Nt;Nt=[];const p=new Set,v=new Map;for(const A of c)vf(A,h,p,v);if(Nt.length>0){we=l,l.apply();for(const A of Nt)De(u=l,wt,Io).call(u,A,[],[]);l.deactivate()}Nt=a}}we=null,Be=n}Ls.delete(this)};let Dn=Qo;function Iw(){bo=!0;var i=null;try{for(var n=0;Nt.length>0;){var r=Dn.ensure();if(n++>1e3){var a,u;xw()}r.process(Nt),Mn.clear()}}finally{Nt=[],bo=!1,Wo=null}}function xw(){try{_w()}catch(i){$r(i,Wo)}}let Bt=null;function Fc(i){var n=i.length;if(n!==0){for(var r=0;r<n;){var a=i[r++];if((a.f&(ur|Un))===0&&Ui(a)&&(Bt=new Set,Jr(a),a.deps===null&&a.first===null&&a.nodes===null&&a.teardown===null&&a.ac===null&&xf(a),(Bt==null?void 0:Bt.size)>0)){Mn.clear();for(const u of Bt){if((u.f&(ur|Un))!==0)continue;const l=[u];let c=u.parent;for(;c!==null;)Bt.has(c)&&(Bt.delete(c),l.push(c)),c=c.parent;for(let h=l.length-1;h>=0;h--){const p=l[h];(p.f&(ur|Un))===0&&Jr(p)}}Bt.clear()}}Bt=null}}function vf(i,n,r,a){if(!r.has(i)&&(r.add(i),i.reactions!==null))for(const u of i.reactions){const l=u.f;(l&rt)!==0?vf(u,n,r,a):(l&(hf|wn))!==0&&(l&nt)===0&&mf(u,n,a)&&($e(u,nt),nn(u))}}function mf(i,n,r){const a=r.get(i);if(a!==void 0)return a;if(i.deps!==null)for(const u of i.deps){if(Yr.call(n,u))return!0;if((u.f&rt)!==0&&mf(u,n,r))return r.set(u,!0),!0}return r.set(i,!1),!1}function nn(i){var n=Wo=i,r=n.b;if(r!=null&&r.is_pending&&(i.f&(qs|lf|cf))!==0&&(i.f&Xr)===0){r.defer_effect(i);return}for(;n.parent!==null;){n=n.parent;var a=n.f;if(bo&&n===be&&(a&wn)!==0&&(a&ff)===0&&(a&Xr)!==0)return;if((a&(fr|Vn))!==0){if((a&Xe)===0)return;n.f^=Xe}}Nt.push(n)}function Sf(i,n){if(!((i.f&Vn)!==0&&(i.f&Xe)!==0)){(i.f&nt)!==0?n.d.push(i):(i.f&zt)!==0&&n.m.push(i),$e(i,Xe);for(var r=i.first;r!==null;)Sf(r,n),r=r.next}}function Lw(i){let n=0,r=Vo(0),a;return()=>{Bo()&&(Nr(r),qw(()=>(n===0&&(a=eE(()=>i(()=>bi(r)))),n+=1,()=>{Mr(()=>{n-=1,n===0&&(a==null||a(),a=void 0,bi(r))})})))}}var $w=Bs|zs;function Nw(i,n,r,a){new Ow(i,n,r,a)}var Lt,Uo,en,ir,ut,tn,St,Gt,mn,sr,$n,Br,Gr,Qr,Sn,Qs,Ne,Uw,Dw,Mw,Lo,Us,Ds,$o;class Ow{constructor(n,r,a,u){le(this,Ne);fe(this,"parent");fe(this,"is_pending",!1);fe(this,"transform_error");le(this,Lt);le(this,Uo,null);le(this,en);le(this,ir);le(this,ut);le(this,tn,null);le(this,St,null);le(this,Gt,null);le(this,mn,null);le(this,sr,0);le(this,$n,0);le(this,Br,!1);le(this,Gr,new Set);le(this,Qr,new Set);le(this,Sn,null);le(this,Qs,Lw(()=>(J(this,Sn,Vo($(this,sr))),()=>{J(this,Sn,null)})));var l;J(this,Lt,n),J(this,en,r),J(this,ir,c=>{var h=be;h.b=this,h.f|=Ao,a(c)}),this.parent=be.b,this.transform_error=u??((l=this.parent)==null?void 0:l.transform_error)??(c=>c),J(this,ut,zw(()=>{De(this,Ne,Lo).call(this)},$w))}defer_effect(n){pf(n,$(this,Gr),$(this,Qr))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!$(this,en).pending}update_pending_count(n){De(this,Ne,$o).call(this,n),J(this,sr,$(this,sr)+n),!(!$(this,Sn)||$(this,Br))&&(J(this,Br,!0),Mr(()=>{J(this,Br,!1),$(this,Sn)&&Tf($(this,Sn),$(this,sr))}))}get_effect_pending(){return $(this,Qs).call(this),Nr($(this,Sn))}error(n){var r=$(this,en).onerror;let a=$(this,en).failed;if(!r&&!a)throw n;$(this,tn)&&(rn($(this,tn)),J(this,tn,null)),$(this,St)&&(rn($(this,St)),J(this,St,null)),$(this,Gt)&&(rn($(this,Gt)),J(this,Gt,null));var u=!1,l=!1;const c=()=>{if(u){Ew();return}u=!0,l&&ww(),$(this,Gt)!==null&&Ms($(this,Gt),()=>{J(this,Gt,null)}),De(this,Ne,Ds).call(this,()=>{Dn.ensure(),De(this,Ne,Lo).call(this)})},h=p=>{try{l=!0,r==null||r(p,c),l=!1}catch(v){$r(v,$(this,ut)&&$(this,ut).parent)}a&&J(this,Gt,De(this,Ne,Ds).call(this,()=>{Dn.ensure();try{return Jn(()=>{var v=be;v.b=this,v.f|=Ao,a($(this,Lt),()=>p,()=>c)})}catch(v){return $r(v,$(this,ut).parent),null}}))};Mr(()=>{var p;try{p=this.transform_error(n)}catch(v){$r(v,$(this,ut)&&$(this,ut).parent);return}p!==null&&typeof p=="object"&&typeof p.then=="function"?p.then(h,v=>$r(v,$(this,ut)&&$(this,ut).parent)):h(p)})}}Lt=new WeakMap,Uo=new WeakMap,en=new WeakMap,ir=new WeakMap,ut=new WeakMap,tn=new WeakMap,St=new WeakMap,Gt=new WeakMap,mn=new WeakMap,sr=new WeakMap,$n=new WeakMap,Br=new WeakMap,Gr=new WeakMap,Qr=new WeakMap,Sn=new WeakMap,Qs=new WeakMap,Ne=new WeakSet,Uw=function(){try{J(this,tn,Jn(()=>$(this,ir).call(this,$(this,Lt))))}catch(n){this.error(n)}},Dw=function(n){const r=$(this,en).failed;r&&J(this,Gt,Jn(()=>{r($(this,Lt),()=>n,()=>()=>{})}))},Mw=function(){const n=$(this,en).pending;n&&(this.is_pending=!0,J(this,St,Jn(()=>n($(this,Lt)))),Mr(()=>{var r=J(this,mn,document.createDocumentFragment()),a=Rf();r.append(a),J(this,tn,De(this,Ne,Ds).call(this,()=>(Dn.ensure(),Jn(()=>$(this,ir).call(this,a))))),$(this,$n)===0&&($(this,Lt).before(r),J(this,mn,null),Ms($(this,St),()=>{J(this,St,null)}),De(this,Ne,Us).call(this))}))},Lo=function(){try{if(this.is_pending=this.has_pending_snippet(),J(this,$n,0),J(this,sr,0),J(this,tn,Jn(()=>{$(this,ir).call(this,$(this,Lt))})),$(this,$n)>0){var n=J(this,mn,document.createDocumentFragment());Xw($(this,tn),n);const r=$(this,en).pending;J(this,St,Jn(()=>r($(this,Lt))))}else De(this,Ne,Us).call(this)}catch(r){this.error(r)}},Us=function(){this.is_pending=!1;for(const n of $(this,Gr))$e(n,nt),nn(n);for(const n of $(this,Qr))$e(n,zt),nn(n);$(this,Gr).clear(),$(this,Qr).clear()},Ds=function(n){var r=be,a=he,u=Kt;Hn($(this,ut)),sn($(this,ut)),Gs($(this,ut).ctx);try{return n()}catch(l){return gf(l),null}finally{Hn(r),sn(a),Gs(u)}},$o=function(n){var r;if(!this.has_pending_snippet()){this.parent&&De(r=this.parent,Ne,$o).call(r,n);return}J(this,$n,$(this,$n)+n),$(this,$n)===0&&(De(this,Ne,Us).call(this),$(this,St)&&Ms($(this,St),()=>{J(this,St,null)}),$(this,mn)&&($(this,Lt).before($(this,mn)),J(this,mn,null)))};function Fw(i){var n=i.effects;if(n!==null){i.effects=null;for(var r=0;r<n.length;r+=1)rn(n[r])}}function kw(i){for(var n=i.parent;n!==null;){if((n.f&rt)===0)return(n.f&ur)===0?n:null;n=n.parent}return null}function Ho(i){var n,r=be;Hn(kw(i));try{i.f&=~cr,Fw(i),n=Uf(i)}finally{Hn(r)}return n}function wf(i){var n=Ho(i);if(!i.equals(n)&&(i.wv=Nf(),(!(we!=null&&we.is_fork)||i.deps===null)&&(i.v=n,i.deps===null))){$e(i,Xe);return}Zr||(Be!==null?(Bo()||we!=null&&we.is_fork)&&Be.set(i,n):ko(i))}function Ww(i){var n,r;if(i.effects!==null)for(const a of i.effects)(a.teardown||a.ac)&&((n=a.teardown)==null||n.call(a),(r=a.ac)==null||r.abort(Mo),a.teardown=hw,a.ac=null,Li(a,0),Go(a))}function Ef(i){if(i.effects!==null)for(const n of i.effects)n.teardown&&Jr(n)}let No=new Set;const Mn=new Map;let Cf=!1;function Vo(i,n){var r={f:0,v:i,reactions:null,equals:Cw,rv:0,wv:0};return r}function xn(i,n){const r=Vo(i);return Zw(r),r}function jn(i,n,r=!1){he!==null&&(!qt||(he.f&Mc)!==0)&&Ks()&&(he.f&(rt|wn|hf|Mc))!==0&&(Ut===null||!Yr.call(Ut,i))&&Sw();let a=r?Ti(n):n;return Tf(i,a)}function Tf(i,n){if(!i.equals(n)){var r=i.v;Zr?Mn.set(i,n):Mn.set(i,r),i.v=n;var a=Dn.ensure();if(a.capture(i,r),(i.f&rt)!==0){const u=i;(i.f&nt)!==0&&Ho(u),ko(u)}i.wv=Nf(),yf(i,nt),Ks()&&be!==null&&(be.f&Xe)!==0&&(be.f&(Vn|fr))===0&&(xt===null?Jw([i]):xt.push(i)),!a.is_fork&&No.size>0&&!Cf&&Hw()}return n}function Hw(){Cf=!1;for(const i of No)(i.f&Xe)!==0&&$e(i,zt),Ui(i)&&Jr(i);No.clear()}function bi(i){jn(i,i.v+1)}function yf(i,n){var r=i.reactions;if(r!==null)for(var a=Ks(),u=r.length,l=0;l<u;l++){var c=r[l],h=c.f;if(!(!a&&c===be)){var p=(h&nt)===0;if(p&&$e(c,n),(h&rt)!==0){var v=c;Be==null||Be.delete(v),(h&cr)===0&&(h&Ot&&(c.f|=cr),yf(v,zt))}else p&&((h&wn)!==0&&Bt!==null&&Bt.add(c),nn(c))}}}function Ti(i){if(typeof i!="object"||i===null||Eo in i)return i;const n=fw(i);if(n!==lw&&n!==cw)return i;var r=new Map,a=sw(i),u=xn(0),l=lr,c=h=>{if(lr===l)return h();var p=he,v=lr;sn(null),Hc(l);var A=h();return sn(p),Hc(v),A};return a&&r.set("length",xn(i.length)),new Proxy(i,{defineProperty(h,p,v){(!("value"in v)||v.configurable===!1||v.enumerable===!1||v.writable===!1)&&vw();var A=r.get(p);return A===void 0?c(()=>{var C=xn(v.value);return r.set(p,C),C}):jn(A,v.value,!0),!0},deleteProperty(h,p){var v=r.get(p);if(v===void 0){if(p in h){const A=c(()=>xn(tt));r.set(p,A),bi(u)}}else jn(v,tt),bi(u);return!0},get(h,p,v){var y;if(p===Eo)return i;var A=r.get(p),C=p in h;if(A===void 0&&(!C||(y=Ri(h,p))!=null&&y.writable)&&(A=c(()=>{var b=Ti(C?h[p]:tt),O=xn(b);return O}),r.set(p,A)),A!==void 0){var E=Nr(A);return E===tt?void 0:E}return Reflect.get(h,p,v)},getOwnPropertyDescriptor(h,p){var v=Reflect.getOwnPropertyDescriptor(h,p);if(v&&"value"in v){var A=r.get(p);A&&(v.value=Nr(A))}else if(v===void 0){var C=r.get(p),E=C==null?void 0:C.v;if(C!==void 0&&E!==tt)return{enumerable:!0,configurable:!0,value:E,writable:!0}}return v},has(h,p){var E;if(p===Eo)return!0;var v=r.get(p),A=v!==void 0&&v.v!==tt||Reflect.has(h,p);if(v!==void 0||be!==null&&(!A||(E=Ri(h,p))!=null&&E.writable)){v===void 0&&(v=c(()=>{var y=A?Ti(h[p]):tt,b=xn(y);return b}),r.set(p,v));var C=Nr(v);if(C===tt)return!1}return A},set(h,p,v,A){var ce;var C=r.get(p),E=p in h;if(a&&p==="length")for(var y=v;y<C.v;y+=1){var b=r.get(y+"");b!==void 0?jn(b,tt):y in h&&(b=c(()=>xn(tt)),r.set(y+"",b))}if(C===void 0)(!E||(ce=Ri(h,p))!=null&&ce.writable)&&(C=c(()=>xn(void 0)),jn(C,Ti(v)),r.set(p,C));else{E=C.v!==tt;var O=c(()=>Ti(v));jn(C,O)}var N=Reflect.getOwnPropertyDescriptor(h,p);if(N!=null&&N.set&&N.set.call(A,v),!E){if(a&&typeof p=="string"){var G=r.get("length"),ae=Number(p);Number.isInteger(ae)&&ae>=G.v&&jn(G,ae+1)}bi(u)}return!0},ownKeys(h){Nr(u);var p=Reflect.ownKeys(h).filter(C=>{var E=r.get(C);return E===void 0||E.v!==tt});for(var[v,A]of r)A.v!==tt&&!(v in h)&&p.push(v);return p},setPrototypeOf(){mw()}})}var kc,Af;function Vw(){if(kc===void 0){kc=window;var i=Element.prototype,n=Node.prototype,r=Text.prototype;Ri(n,"firstChild").get,Af=Ri(n,"nextSibling").get,Dc(i)&&(i.__click=void 0,i.__className=void 0,i.__attributes=null,i.__style=void 0,i.__e=void 0),Dc(r)&&(r.__t=void 0)}}function Rf(i=""){return document.createTextNode(i)}function bf(i){return Af.call(i)}function Pf(i){var n=he,r=be;sn(null),Hn(null);try{return i()}finally{sn(n),Hn(r)}}function Bw(i,n){var r=n.last;r===null?n.last=n.first=i:(r.next=i,i.prev=r,n.last=i)}function Oi(i,n,r){var a=be;a!==null&&(a.f&Un)!==0&&(i|=Un);var u={ctx:Kt,deps:null,nodes:null,f:i|nt|Ot,first:null,fn:n,last:null,next:null,parent:a,b:a&&a.b,prev:null,teardown:null,wv:0,ac:null};if(r)try{Jr(u)}catch(h){throw rn(u),h}else n!==null&&nn(u);var l=u;if(r&&l.deps===null&&l.teardown===null&&l.nodes===null&&l.first===l.last&&(l.f&zs)===0&&(l=l.first,(i&wn)!==0&&(i&Bs)!==0&&l!==null&&(l.f|=Bs)),l!==null&&(l.parent=a,a!==null&&Bw(l,a),he!==null&&(he.f&rt)!==0&&(i&fr)===0)){var c=he;(c.effects??(c.effects=[])).push(l)}return u}function Bo(){return he!==null&&!qt}function Gw(i){return Oi(qs|pw,i,!1)}function Qw(i){Dn.ensure();const n=Oi(fr|zs,i,!0);return(r={})=>new Promise(a=>{r.outro?Ms(n,()=>{rn(n),a(void 0)}):(rn(n),a(void 0))})}function qw(i,n=0){return Oi(lf|n,i,!0)}function zw(i,n=0){var r=Oi(wn|n,i,!0);return r}function Jn(i){return Oi(Vn|zs,i,!0)}function If(i){var n=i.teardown;if(n!==null){const r=Zr,a=he;Wc(!0),sn(null);try{n.call(null)}finally{Wc(r),sn(a)}}}function Go(i,n=!1){var r=i.first;for(i.first=i.last=null;r!==null;){const u=r.ac;u!==null&&Pf(()=>{u.abort(Mo)});var a=r.next;(r.f&fr)!==0?r.parent=null:rn(r,n),r=a}}function Kw(i){for(var n=i.first;n!==null;){var r=n.next;(n.f&Vn)===0&&rn(n),n=r}}function rn(i,n=!0){var r=!1;(n||(i.f&ff)!==0)&&i.nodes!==null&&i.nodes.end!==null&&(Yw(i.nodes.start,i.nodes.end),r=!0),Go(i,n&&!r),Li(i,0),$e(i,ur);var a=i.nodes&&i.nodes.t;if(a!==null)for(const l of a)l.stop();If(i);var u=i.parent;u!==null&&u.first!==null&&xf(i),i.next=i.prev=i.teardown=i.ctx=i.deps=i.fn=i.nodes=i.ac=null}function Yw(i,n){for(;i!==null;){var r=i===n?null:bf(i);i.remove(),i=r}}function xf(i){var n=i.parent,r=i.prev,a=i.next;r!==null&&(r.next=a),a!==null&&(a.prev=r),n!==null&&(n.first===i&&(n.first=a),n.last===i&&(n.last=r))}function Ms(i,n,r=!0){var a=[];Lf(i,a,!0);var u=()=>{r&&rn(i),n&&n()},l=a.length;if(l>0){var c=()=>--l||u();for(var h of a)h.out(c)}else u()}function Lf(i,n,r){if((i.f&Un)===0){i.f^=Un;var a=i.nodes&&i.nodes.t;if(a!==null)for(const h of a)(h.is_global||r)&&n.push(h);for(var u=i.first;u!==null;){var l=u.next,c=(u.f&Bs)!==0||(u.f&Vn)!==0&&(i.f&wn)!==0;Lf(u,n,c?r:!1),u=l}}}function Xw(i,n){if(i.nodes)for(var r=i.nodes.start,a=i.nodes.end;r!==null;){var u=r===a?null:bf(r);n.append(r),r=u}}let Fs=!1,Zr=!1;function Wc(i){Zr=i}let he=null,qt=!1;function sn(i){he=i}let be=null;function Hn(i){be=i}let Ut=null;function Zw(i){he!==null&&(Ut===null?Ut=[i]:Ut.push(i))}let ct=null,vt=0,xt=null;function Jw(i){xt=i}let $f=1,tr=0,lr=tr;function Hc(i){lr=i}function Nf(){return++$f}function Ui(i){var n=i.f;if((n&nt)!==0)return!0;if(n&rt&&(i.f&=~cr),(n&zt)!==0){for(var r=i.deps,a=r.length,u=0;u<a;u++){var l=r[u];if(Ui(l)&&wf(l),l.wv>i.wv)return!0}(n&Ot)!==0&&Be===null&&$e(i,Xe)}return!1}function Of(i,n,r=!0){var a=i.reactions;if(a!==null&&!(Ut!==null&&Yr.call(Ut,i)))for(var u=0;u<a.length;u++){var l=a[u];(l.f&rt)!==0?Of(l,n,!1):n===l&&(r?$e(l,nt):(l.f&Xe)!==0&&$e(l,zt),nn(l))}}function Uf(i){var O;var n=ct,r=vt,a=xt,u=he,l=Ut,c=Kt,h=qt,p=lr,v=i.f;ct=null,vt=0,xt=null,he=(v&(Vn|fr))===0?i:null,Ut=null,Gs(i.ctx),qt=!1,lr=++tr,i.ac!==null&&(Pf(()=>{i.ac.abort(Mo)}),i.ac=null);try{i.f|=Ro;var A=i.fn,C=A();i.f|=Xr;var E=i.deps,y=we==null?void 0:we.is_fork;if(ct!==null){var b;if(y||Li(i,vt),E!==null&&vt>0)for(E.length=vt+ct.length,b=0;b<ct.length;b++)E[vt+b]=ct[b];else i.deps=E=ct;if(Bo()&&(i.f&Ot)!==0)for(b=vt;b<E.length;b++)((O=E[b]).reactions??(O.reactions=[])).push(i)}else!y&&E!==null&&vt<E.length&&(Li(i,vt),E.length=vt);if(Ks()&&xt!==null&&!qt&&E!==null&&(i.f&(rt|zt|nt))===0)for(b=0;b<xt.length;b++)Of(xt[b],i);if(u!==null&&u!==i){if(tr++,u.deps!==null)for(let N=0;N<r;N+=1)u.deps[N].rv=tr;if(n!==null)for(const N of n)N.rv=tr;xt!==null&&(a===null?a=xt:a.push(...xt))}return(i.f&xi)!==0&&(i.f^=xi),C}catch(N){return gf(N)}finally{i.f^=Ro,ct=n,vt=r,xt=a,he=u,Ut=l,Gs(c),qt=h,lr=p}}function jw(i,n){let r=n.reactions;if(r!==null){var a=aw.call(r,i);if(a!==-1){var u=r.length-1;u===0?r=n.reactions=null:(r[a]=r[u],r.pop())}}if(r===null&&(n.f&rt)!==0&&(ct===null||!Yr.call(ct,n))){var l=n;(l.f&Ot)!==0&&(l.f^=Ot,l.f&=~cr),ko(l),Ww(l),Li(l,0)}}function Li(i,n){var r=i.deps;if(r!==null)for(var a=n;a<r.length;a++)jw(i,r[a])}function Jr(i){var n=i.f;if((n&ur)===0){$e(i,Xe);var r=be,a=Fs;be=i,Fs=!0;try{(n&(wn|cf))!==0?Kw(i):Go(i),If(i);var u=Uf(i);i.teardown=typeof u=="function"?u:null,i.wv=$f;var l;yo&&Tw&&(i.f&nt)!==0&&i.deps}finally{Fs=a,be=r}}}function Nr(i){var n=i.f,r=(n&rt)!==0;if(he!==null&&!qt){var a=be!==null&&(be.f&ur)!==0;if(!a&&(Ut===null||!Yr.call(Ut,i))){var u=he.deps;if((he.f&Ro)!==0)i.rv<tr&&(i.rv=tr,ct===null&&u!==null&&u[vt]===i?vt++:ct===null?ct=[i]:ct.push(i));else{(he.deps??(he.deps=[])).push(i);var l=i.reactions;l===null?i.reactions=[he]:Yr.call(l,he)||l.push(he)}}}if(Zr&&Mn.has(i))return Mn.get(i);if(r){var c=i;if(Zr){var h=c.v;return((c.f&Xe)===0&&c.reactions!==null||Mf(c))&&(h=Ho(c)),Mn.set(c,h),h}var p=(c.f&Ot)===0&&!qt&&he!==null&&(Fs||(he.f&Ot)!==0),v=(c.f&Xr)===0;Ui(c)&&(p&&(c.f|=Ot),wf(c)),p&&!v&&(Ef(c),Df(c))}if(Be!=null&&Be.has(i))return Be.get(i);if((i.f&xi)!==0)throw i.v;return i.v}function Df(i){if(i.f|=Ot,i.deps!==null)for(const n of i.deps)(n.reactions??(n.reactions=[])).push(i),(n.f&rt)!==0&&(n.f&Ot)===0&&(Ef(n),Df(n))}function Mf(i){if(i.v===tt)return!0;if(i.deps===null)return!1;for(const n of i.deps)if(Mn.has(n)||(n.f&rt)!==0&&Mf(n))return!0;return!1}function eE(i){var n=qt;try{return qt=!0,i()}finally{qt=n}}const tE=["touchstart","touchmove"];function nE(i){return tE.includes(i)}const $s=Symbol("events"),rE=new Set,Vc=new Set;let Bc=null;function Gc(i){var N,G;var n=this,r=n.ownerDocument,a=i.type,u=((N=i.composedPath)==null?void 0:N.call(i))||[],l=u[0]||i.target;Bc=i;var c=0,h=Bc===i&&i[$s];if(h){var p=u.indexOf(h);if(p!==-1&&(n===document||n===window)){i[$s]=n;return}var v=u.indexOf(n);if(v===-1)return;p<=v&&(c=p)}if(l=u[c]||i.target,l!==n){uw(i,"currentTarget",{configurable:!0,get(){return l||r}});var A=he,C=be;sn(null),Hn(null);try{for(var E,y=[];l!==null;){var b=l.assignedSlot||l.parentNode||l.host||null;try{var O=(G=l[$s])==null?void 0:G[a];O!=null&&(!l.disabled||i.target===l)&&O.call(l,i)}catch(ae){E?y.push(ae):E=ae}if(i.cancelBubble||b===n||b===null)break;l=b}if(E){for(let ae of y)queueMicrotask(()=>{throw ae});throw E}}finally{i[$s]=n,delete i.currentTarget,sn(A),Hn(C)}}}function iE(i,n){return sE(i,n)}const Ns=new Map;function sE(i,{target:n,anchor:r,props:a={},events:u,context:l,intro:c=!0,transformError:h}){Vw();var p=void 0,v=Qw(()=>{var A=r??n.appendChild(Rf());Nw(A,{pending:()=>{}},y=>{Aw({});var b=Kt;l&&(b.c=l),u&&(a.$$events=u),p=i(y,a)||{},Rw()},h);var C=new Set,E=y=>{for(var b=0;b<y.length;b++){var O=y[b];if(!C.has(O)){C.add(O);var N=nE(O);for(const ce of[n,document]){var G=Ns.get(ce);G===void 0&&(G=new Map,Ns.set(ce,G));var ae=G.get(O);ae===void 0?(ce.addEventListener(O,Gc,{passive:N}),G.set(O,1)):G.set(O,ae+1)}}}};return E(ow(rE)),Vc.add(E),()=>{var N;for(var y of C)for(const G of[n,document]){var b=Ns.get(G),O=b.get(y);--O==0?(G.removeEventListener(y,Gc),b.delete(y),b.size===0&&Ns.delete(G)):b.set(y,O)}Vc.delete(E),A!==r&&((N=A.parentNode)==null||N.removeChild(A))}});return aE.set(p,v),p}let aE=new WeakMap;const oE="5";var Qc;typeof window<"u"&&((Qc=window.__svelte??(window.__svelte={})).v??(Qc.v=new Set)).add(oE);yw();function uE(i){}const Oo={init:i=>{re.get(or).enableRouting()},handlePageErrorHandler:(i,n,r)=>{i&&i.timeout&&setTimeout(()=>{if(i.viewUrl)n.viewUrl=i.viewUrl,r.getEngine()._ui.updateMainContent(n,r);else if(i.errorFn)i.errorFn(n);else{console.warn("Something went wrong with a client! You will be redirected to another page.");const a=i.redirectPath||"/";r.navigation().navigate(a)}},i.timeout)},handleExternalLinkNavigation:i=>{if(i.url)if(i.sameWindow||!1)window.location.href=i.url;else{const r=window.open(i.url,"_blank","noopener noreferrer");r&&(r.opener=null,r.focus())}},async addSearchParamsFromClient(i,n,r){var h;const a=re.get(Wn),u=Q.getCurrentPath(),l=await a.getCurrentNode(u.path),c={...i};if((h=l==null?void 0:l.clientPermissions)!=null&&h.urlParameters){const p={};Object.keys(l.clientPermissions.urlParameters).forEach(v=>{v in c&&l.clientPermissions.urlParameters[v].write===!0&&(p[v]=c[v],delete c[v])});for(const v in c)console.warn(`No permission to add the search param "${v}" to the url`);Object.keys(p).length>0&&r.routing().addSearchParams(p,n)}}},jt={luigi:{},init:i=>{console.log("Init communication..."),jt.luigi=i},addListeners:(i,n)=>{i.addEventListener(D.INITIALIZED,r=>{var a;(a=Me.luigi)==null||a.ux().hideLoadingIndicator(i.parentNode)}),i.addEventListener(D.NAVIGATION_REQUEST,r=>{const{link:a,preserveView:u,modal:l,newTab:c,withoutSync:h,preventContextUpdate:p,preventHistoryEntry:v,fromVirtualTreeRoot:A}=r.detail,C={modalSettings:l,newTab:c,path:a,preserveView:u,preventContextUpdate:p,options:{fromVirtualTreeRoot:A},preventHistoryEntry:v,withoutSync:h};re.get(Wn).handleNavigationRequest(C,r.callbackFn)}),i.addEventListener(D.RUNTIME_ERROR_HANDLING_REQUEST,r=>{var a,u;n.navigation().runTimeErrorHandler(((u=(a=r.payload)==null?void 0:a.data)==null?void 0:u.errorObj)||{})}),i.addEventListener(D.ALERT_REQUEST,r=>{Me.processAlert(r.payload,!0,i)}),i.addEventListener(D.SHOW_CONFIRMATION_MODAL_REQUEST,r=>{Me.handleConfirmationModalRequest(r.payload,i)}),i.addEventListener(D.SET_DOCUMENT_TITLE_REQUEST,r=>{var a;(a=jt.luigi.getEngine()._connector)==null||a.setDocumentTitle(r.detail.title)}),i.addEventListener(D.SHOW_LOADING_INDICATOR_REQUEST,r=>{var a;(a=jt.luigi.getEngine()._connector)==null||a.showLoadingIndicator(i.parentNode)}),i.addEventListener(D.HIDE_LOADING_INDICATOR_REQUEST,r=>{var a;(a=jt.luigi.getEngine()._connector)==null||a.hideLoadingIndicator(i.parentNode)}),i.addEventListener(D.ADD_BACKDROP_REQUEST,r=>{var a;(a=jt.luigi.getEngine()._connector)==null||a.addBackdrop()}),i.addEventListener(D.REMOVE_BACKDROP_REQUEST,r=>{var a;(a=jt.luigi.getEngine()._connector)==null||a.removeBackdrop()}),i.addEventListener(D.SET_DIRTY_STATUS_REQUEST,r=>{var a,u,l;Me.handleDirtyStatusRequest((u=(a=r.detail)==null?void 0:a.data)==null?void 0:u.dirty,(l=r.detail)==null?void 0:l.source)}),i.addEventListener(D.ADD_NODE_PARAMS_REQUEST,r=>{n.routing().addNodeParams(r.payload.data,r.payload.keepBrowserHistory)}),i.addEventListener(D.OPEN_USER_SETTINGS_REQUEST,r=>{var a;(a=jt.luigi.getEngine()._connector)==null||a.openUserSettings(r.detail)}),i.addEventListener(D.CLOSE_USER_SETTINGS_REQUEST,r=>{var a;(a=jt.luigi.getEngine()._connector)==null||a.closeUserSettings()}),i.addEventListener(D.ADD_SEARCH_PARAMS_REQUEST,r=>{Oo.addSearchParamsFromClient(r.detail.data,r.detail.keepBrowserHistory,n)}),i.addEventListener(D.UPDATE_MODAL_SETTINGS_REQUEST,r=>{Ye.updateModalSettings(r.payload.updatedModalSettings,r.payload.addHistoryEntry,n)}),i.addEventListener(D.SET_CURRENT_LOCALE_REQUEST,r=>{var a,u,l;n.i18n().setCurrentLocale((l=(u=(a=r.detail)==null?void 0:a.data)==null?void 0:u.data)==null?void 0:l.currentLocale,i)})}};class lE{constructor(){this._ui=Ye,this._comm=jt,this._ux=Me,this._routing=Oo}bootstrap(n){this._app=iE(uE,{target:document.body}),this._connector=n}init(){const n=window.Luigi;re.register(Vs,()=>new Vs),re.register(Wn,()=>new Wn(n)),re.register(kn,()=>new kn),re.register(or,()=>new or(n)),re.register(Kr,()=>new Kr),re.register(Fn,()=>new Fn(n)),n.theming()._init(),Ye.init(n),Oo.init(n),jt.init(n),Me.init(n)}}window.Luigi=new iw(new lE);
|
|
61
|
+
}`,r=Xc(" "),a=qr("iframe"),bc(a.src,u=i[3])||$t(a,"src",u),$t(a,"title",i[1]),$t(a,"allow",l=Ic(i[0])),$t(a,"sandbox",c=i[2]?i[2].join(" "):void 0)},m(h,p){ar(h,n,p),ar(h,r,p),ar(h,a,p),i[28](a)},p(h,p){8&p[0]&&!bc(a.src,u=h[3])&&$t(a,"src",u),2&p[0]&&$t(a,"title",h[1]),1&p[0]&&l!==(l=Ic(h[0]))&&$t(a,"allow",l),4&p[0]&&c!==(c=h[2]?h[2].join(" "):void 0)&&$t(a,"sandbox",c)},d(h){h&&(Nn(n),Nn(r),Nn(a)),i[28](null)}}}function zS(i){let n,r,a=i[5]&&$c(i);return{c(){n=qr("main"),a&&a.c(),$t(n,"class",r=i[4]?void 0:"lui-isolated")},m(u,l){ar(u,n,l),a&&a.m(n,null),i[29](n)},p(u,l){u[5]?a?a.p(u,l):(a=$c(u),a.c(),a.m(n,null)):a&&(a.d(1),a=null),16&l[0]&&r!==(r=u[4]?void 0:"lui-isolated")&&$t(n,"class",r)},i:On,o:On,d(u){u&&Nn(n),a&&a.d(),i[29](null)}}}function KS(i,n,r){let{activeFeatureToggleList:a}=n,{allowRules:u}=n,{anchor:l}=n,{authData:c}=n,{clientPermissions:h}=n,{context:p}=n,{deferInit:v}=n,{dirtyStatus:R}=n,{documentTitle:C}=n,{hasBack:E}=n,{label:T}=n,{locale:A}=n,{noShadow:O}=n,{nodeParams:N}=n,{pathParams:V}=n,{sandboxRules:ae}=n,{searchParams:ce}=n,{skipCookieCheck:Ge}=n,{skipInitCheck:Ee}=n,{theme:Qe}=n,{userSettings:Pe}=n,{viewurl:Fe}=n,{webcomponent:Ie}=n;const Ce={};let Te,U,Dt=!1;const Ze=new sf,Ne=x=>{if(!Dt){x.sendCustomMessage=(ie,ye)=>{Ir.sendCustomMessage(ie,x.getNoShadow()?x:Te,!!Ie,Ce,ye)},x.updateContext=(ie,ye)=>{if(r(8,p=ie),Ie)(x.getNoShadow()?x:Te)._luigi_mfe_webcomponent.context=ie;else{const ke={...ye||{},activeFeatureToggleList:x.activeFeatureToggleList||[],currentLocale:x.locale,currentTheme:x.theme,userSettings:x.userSettings||null,cssVariables:x.cssVariables||{},anchor:x.anchor||"",drawer:x.drawer||!1,modal:x.modal||!1,viewStackSize:x.viewStackSize||0,isNavigateBack:x.isNavigateBack||!1};Ir.updateContext(ie,ke,Ce,N,V,ce)}},x.closeAlert=(ie,ye)=>{x.notifyAlertClosed(ie,ye)},x.notifyAlertClosed=(ie,ye)=>{x.isConnected&&(Ie?Ze.resolveAlert(ie,ye):Ir.notifyAlertClosed(ie,ye,Ce))},x.notifyConfirmationModalClosed=ie=>{x.isConnected&&(Ie?Ze.notifyConfirmationModalClosed(!!ie):Ir.notifyConfirmationModalClosed(!!ie,Ce))},Ln.registerContainer(x),Ze.thisComponent=x;const qe=Ai.resolveContext(p);if(x.updateViewUrl=(ie,ye)=>{ie!=null&&ie.length&&Ir.updateViewUrl(ie,Ai.resolveContext(p),ye,Ce)},Ie&&Ie!="false"){x.getNoShadow()?x.innerHTML="":(r(7,Te.innerHTML="",Te),x.attachShadow({mode:"open"}).append(Te));const ie=Ai.checkWebcomponentValue(Ie);Ze.renderWebComponent(Fe,x.getNoShadow()?x:Te,qe,typeof ie=="object"?{webcomponent:ie}:{})}else x.getNoShadow()||(x.innerHTML="",x.attachShadow({mode:"open"}).append(Te));Ee?(x.initialized=!0,setTimeout((()=>{Ze.dispatchLuigiEvent(D.INITIALIZED,{})}))):Ie&&(x.getNoShadow()?x:Te).addEventListener("wc_ready",(()=>{var ie;(ie=(x.getNoShadow()?x:Te)._luigi_mfe_webcomponent)!=null&&ie.deferLuigiClientWCInit||(x.initialized=!0,Ze.dispatchLuigiEvent(D.INITIALIZED,{}))})),r(5,Dt=!0),x.containerInitialized=!0}};var Yt;return Jc((async()=>{r(27,U=Te.parentNode),r(27,U.iframeHandle=Ce,U),r(27,U.init=()=>{Ne(U)},U),!v&&Fe&&Ne(U)})),Yt=async()=>{},Zc().$$.on_destroy.push(Yt),i.$$set=x=>{"activeFeatureToggleList"in x&&r(9,a=x.activeFeatureToggleList),"allowRules"in x&&r(0,u=x.allowRules),"anchor"in x&&r(10,l=x.anchor),"authData"in x&&r(11,c=x.authData),"clientPermissions"in x&&r(12,h=x.clientPermissions),"context"in x&&r(8,p=x.context),"deferInit"in x&&r(13,v=x.deferInit),"dirtyStatus"in x&&r(14,R=x.dirtyStatus),"documentTitle"in x&&r(15,C=x.documentTitle),"hasBack"in x&&r(16,E=x.hasBack),"label"in x&&r(1,T=x.label),"locale"in x&&r(17,A=x.locale),"noShadow"in x&&r(18,O=x.noShadow),"nodeParams"in x&&r(19,N=x.nodeParams),"pathParams"in x&&r(20,V=x.pathParams),"sandboxRules"in x&&r(2,ae=x.sandboxRules),"searchParams"in x&&r(21,ce=x.searchParams),"skipCookieCheck"in x&&r(22,Ge=x.skipCookieCheck),"skipInitCheck"in x&&r(23,Ee=x.skipInitCheck),"theme"in x&&r(24,Qe=x.theme),"userSettings"in x&&r(25,Pe=x.userSettings),"viewurl"in x&&r(3,Fe=x.viewurl),"webcomponent"in x&&r(4,Ie=x.webcomponent)},i.$$.update=()=>{134225960&i.$$.dirty[0]&&!Dt&&Fe&&!v&&U&&Ne(U)},[u,T,ae,Fe,Ie,Dt,Ce,Te,p,a,l,c,h,v,R,C,E,A,O,N,V,ce,Ge,Ee,Qe,Pe,()=>a&&u&&l&&c&&h&&R&&C&&E&&A&&O&&N&&V&&ae&&ce&&Ge&&Ee&&Qe&&Pe,U,function(x){Ii[x?"unshift":"push"]((()=>{Ce.iframe=x,r(6,Ce)}))},function(x){Ii[x?"unshift":"push"]((()=>{Te=x,r(7,Te)}))}]}class af extends nf{constructor(n){super(),jc(this,n,KS,zS,Yc,{activeFeatureToggleList:9,allowRules:0,anchor:10,authData:11,clientPermissions:12,context:8,deferInit:13,dirtyStatus:14,documentTitle:15,hasBack:16,label:1,locale:17,noShadow:18,nodeParams:19,pathParams:20,sandboxRules:2,searchParams:21,skipCookieCheck:22,skipInitCheck:23,theme:24,userSettings:25,viewurl:3,webcomponent:4,unwarn:26},null,[-1,-1])}get activeFeatureToggleList(){return this.$$.ctx[9]}set activeFeatureToggleList(n){this.$$set({activeFeatureToggleList:n}),z()}get allowRules(){return this.$$.ctx[0]}set allowRules(n){this.$$set({allowRules:n}),z()}get anchor(){return this.$$.ctx[10]}set anchor(n){this.$$set({anchor:n}),z()}get authData(){return this.$$.ctx[11]}set authData(n){this.$$set({authData:n}),z()}get clientPermissions(){return this.$$.ctx[12]}set clientPermissions(n){this.$$set({clientPermissions:n}),z()}get context(){return this.$$.ctx[8]}set context(n){this.$$set({context:n}),z()}get deferInit(){return this.$$.ctx[13]}set deferInit(n){this.$$set({deferInit:n}),z()}get dirtyStatus(){return this.$$.ctx[14]}set dirtyStatus(n){this.$$set({dirtyStatus:n}),z()}get documentTitle(){return this.$$.ctx[15]}set documentTitle(n){this.$$set({documentTitle:n}),z()}get hasBack(){return this.$$.ctx[16]}set hasBack(n){this.$$set({hasBack:n}),z()}get label(){return this.$$.ctx[1]}set label(n){this.$$set({label:n}),z()}get locale(){return this.$$.ctx[17]}set locale(n){this.$$set({locale:n}),z()}get noShadow(){return this.$$.ctx[18]}set noShadow(n){this.$$set({noShadow:n}),z()}get nodeParams(){return this.$$.ctx[19]}set nodeParams(n){this.$$set({nodeParams:n}),z()}get pathParams(){return this.$$.ctx[20]}set pathParams(n){this.$$set({pathParams:n}),z()}get sandboxRules(){return this.$$.ctx[2]}set sandboxRules(n){this.$$set({sandboxRules:n}),z()}get searchParams(){return this.$$.ctx[21]}set searchParams(n){this.$$set({searchParams:n}),z()}get skipCookieCheck(){return this.$$.ctx[22]}set skipCookieCheck(n){this.$$set({skipCookieCheck:n}),z()}get skipInitCheck(){return this.$$.ctx[23]}set skipInitCheck(n){this.$$set({skipInitCheck:n}),z()}get theme(){return this.$$.ctx[24]}set theme(n){this.$$set({theme:n}),z()}get userSettings(){return this.$$.ctx[25]}set userSettings(n){this.$$set({userSettings:n}),z()}get viewurl(){return this.$$.ctx[3]}set viewurl(n){this.$$set({viewurl:n}),z()}get webcomponent(){return this.$$.ctx[4]}set webcomponent(n){this.$$set({webcomponent:n}),z()}get unwarn(){return this.$$.ctx[26]}}function YS(i){FS(i,"svelte-1buc46y","main.svelte-1buc46y{width:100%;height:100%;border:none}")}function XS(i){let n;return{c(){n=qr("main"),$t(n,"class","svelte-1buc46y")},m(r,a){ar(r,n,a),i[21](n)},p:On,i:On,o:On,d(r){r&&Nn(n),i[21](null)}}}function ZS(i,n,r){let a,u,{activeFeatureToggleList:l}=n,{anchor:c}=n,{clientPermissions:h}=n,{compoundConfig:p}=n,{context:v}=n,{deferInit:R}=n,{dirtyStatus:C}=n,{documentTitle:E}=n,{hasBack:T}=n,{locale:A}=n,{noShadow:O}=n,{nodeParams:N}=n,{pathParams:V}=n,{searchParams:ae}=n,{skipInitCheck:ce}=n,{theme:Ge}=n,{userSettings:Ee}=n,{viewurl:Qe}=n,{webcomponent:Pe}=n,Fe=!1;const Ie=new Do,Ce=new sf,Te=U=>{if(!p||Fe)return;U.updateContext=(Ne,Yt)=>{const x=U.getNoShadow()?U:a;x._luigi_mfe_webcomponent.context=Ne,r(1,v=Ne);const qe=x._luigi_mfe_webcomponent;if(qe){const ie=qe.querySelectorAll("[lui_web_component]");ie==null||ie.forEach((ye=>{const ke=ye.context||{};ye.context=Object.assign(ke,Ne)}))}};const Dt=Ai.resolveContext(v);r(2,R=!1),U.notifyAlertClosed=(Ne,Yt)=>{U.isConnected&&Ce.resolveAlert(Ne,Yt)},U.notifyConfirmationModalClosed=Ne=>{U.isConnected&&Ce.notifyConfirmationModalClosed(!!Ne)};const Ze={compound:p,viewUrl:Qe,webcomponent:Ai.checkWebcomponentValue(Pe)||!0};U.getNoShadow()?U.innerHTML="":(r(0,a.innerHTML="",a),U.attachShadow({mode:"open"}).append(a)),Ce.renderWebComponentCompound(Ze,U.getNoShadow()?U:a,Dt).then((Ne=>{u=Ne,ce||!Ze.viewUrl?(U.initialized=!0,setTimeout((()=>{Ce.dispatchLuigiEvent(D.INITIALIZED,{})}))):u.LuigiClient&&!u.deferLuigiClientWCInit&&(U.initialized=!0,Ce.dispatchLuigiEvent(D.INITIALIZED,{}))})),Fe=!0,U.containerInitialized=!0};return Jc((async()=>{const U=a.getRootNode()===document?a.parentNode:a.getRootNode().host;U.init=()=>{Te(U)},R||Te(U),Ie.registerContainer(U),Ce.thisComponent=U})),i.$$set=U=>{"activeFeatureToggleList"in U&&r(3,l=U.activeFeatureToggleList),"anchor"in U&&r(4,c=U.anchor),"clientPermissions"in U&&r(5,h=U.clientPermissions),"compoundConfig"in U&&r(6,p=U.compoundConfig),"context"in U&&r(1,v=U.context),"deferInit"in U&&r(2,R=U.deferInit),"dirtyStatus"in U&&r(7,C=U.dirtyStatus),"documentTitle"in U&&r(8,E=U.documentTitle),"hasBack"in U&&r(9,T=U.hasBack),"locale"in U&&r(10,A=U.locale),"noShadow"in U&&r(11,O=U.noShadow),"nodeParams"in U&&r(12,N=U.nodeParams),"pathParams"in U&&r(13,V=U.pathParams),"searchParams"in U&&r(14,ae=U.searchParams),"skipInitCheck"in U&&r(15,ce=U.skipInitCheck),"theme"in U&&r(16,Ge=U.theme),"userSettings"in U&&r(17,Ee=U.userSettings),"viewurl"in U&&r(18,Qe=U.viewurl),"webcomponent"in U&&r(19,Pe=U.webcomponent)},[a,v,R,l,c,h,p,C,E,T,A,O,N,V,ae,ce,Ge,Ee,Qe,Pe,()=>l&&c&&h&&C&&E&&T&&A&&O&&N&&V&&ae&&ce&&Ge&&Ee,function(U){Ii[U?"unshift":"push"]((()=>{a=U,r(0,a)}))}]}tf(af,{activeFeatureToggleList:{type:"Array",reflect:!1,attribute:"active-feature-toggle-list"},allowRules:{type:"Array",reflect:!1,attribute:"allow-rules"},anchor:{type:"String",reflect:!1,attribute:"anchor"},authData:{type:"Object",reflect:!1,attribute:"auth-data"},clientPermissions:{type:"Object",reflect:!1,attribute:"client-permissions"},context:{type:"String",reflect:!1,attribute:"context"},deferInit:{type:"Boolean",attribute:"defer-init"},dirtyStatus:{type:"Boolean",reflect:!1,attribute:"dirty-status"},documentTitle:{type:"String",reflect:!1,attribute:"document-title"},hasBack:{type:"Boolean",reflect:!1,attribute:"has-back"},label:{type:"String",reflect:!1,attribute:"label"},locale:{type:"String",reflect:!1,attribute:"locale"},noShadow:{type:"Boolean",attribute:"no-shadow"},nodeParams:{type:"Object",reflect:!1,attribute:"node-params"},pathParams:{type:"Object",reflect:!1,attribute:"path-params"},sandboxRules:{type:"Array",reflect:!1,attribute:"sandbox-rules"},searchParams:{type:"Object",reflect:!1,attribute:"search-params"},skipCookieCheck:{type:"String",reflect:!1,attribute:"skip-cookie-check"},skipInitCheck:{type:"Boolean",reflect:!1,attribute:"skip-init-check"},theme:{type:"String",reflect:!1,attribute:"theme"},userSettings:{type:"Object",reflect:!1,attribute:"user-settings"},viewurl:{type:"String",reflect:!1,attribute:"viewurl"},webcomponent:{type:"String",reflect:!1,attribute:"webcomponent"}},[],["unwarn"],!1,(i=>{let n=r=>()=>console.warn(r+" can't be called on luigi-container before its micro frontend is attached to the DOM.");return class extends i{constructor(){super(...arguments);fe(this,"sendCustomMessage",n("sendCustomMessage"));fe(this,"updateContext",n("updateContext"));fe(this,"updateViewUrl",n("updateViewUrl"));fe(this,"closeAlert",n("closeAlert"));fe(this,"notifyAlertClosed",n("notifyAlertClosed"));fe(this,"notifyConfirmationModalClosed",n("notifyConfirmationModalClosed"))}attributeChangedCallback(a,u,l){try{super.attributeChangedCallback(a,u,l)}catch(c){console.error("Error in super.attributeChangedCallback",c)}this.containerInitialized&&(a==="context"&&this.updateContext(JSON.parse(l)),a==="auth-data"&&Ir.updateAuthData(this.iframeHandle,JSON.parse(l)))}getNoShadow(){return this.hasAttribute("no-shadow")||this.noShadow}}}));class Nc extends nf{constructor(n){super(),jc(this,n,ZS,XS,Yc,{activeFeatureToggleList:3,anchor:4,clientPermissions:5,compoundConfig:6,context:1,deferInit:2,dirtyStatus:7,documentTitle:8,hasBack:9,locale:10,noShadow:11,nodeParams:12,pathParams:13,searchParams:14,skipInitCheck:15,theme:16,userSettings:17,viewurl:18,webcomponent:19,unwarn:20},YS)}get activeFeatureToggleList(){return this.$$.ctx[3]}set activeFeatureToggleList(n){this.$$set({activeFeatureToggleList:n}),z()}get anchor(){return this.$$.ctx[4]}set anchor(n){this.$$set({anchor:n}),z()}get clientPermissions(){return this.$$.ctx[5]}set clientPermissions(n){this.$$set({clientPermissions:n}),z()}get compoundConfig(){return this.$$.ctx[6]}set compoundConfig(n){this.$$set({compoundConfig:n}),z()}get context(){return this.$$.ctx[1]}set context(n){this.$$set({context:n}),z()}get deferInit(){return this.$$.ctx[2]}set deferInit(n){this.$$set({deferInit:n}),z()}get dirtyStatus(){return this.$$.ctx[7]}set dirtyStatus(n){this.$$set({dirtyStatus:n}),z()}get documentTitle(){return this.$$.ctx[8]}set documentTitle(n){this.$$set({documentTitle:n}),z()}get hasBack(){return this.$$.ctx[9]}set hasBack(n){this.$$set({hasBack:n}),z()}get locale(){return this.$$.ctx[10]}set locale(n){this.$$set({locale:n}),z()}get noShadow(){return this.$$.ctx[11]}set noShadow(n){this.$$set({noShadow:n}),z()}get nodeParams(){return this.$$.ctx[12]}set nodeParams(n){this.$$set({nodeParams:n}),z()}get pathParams(){return this.$$.ctx[13]}set pathParams(n){this.$$set({pathParams:n}),z()}get searchParams(){return this.$$.ctx[14]}set searchParams(n){this.$$set({searchParams:n}),z()}get skipInitCheck(){return this.$$.ctx[15]}set skipInitCheck(n){this.$$set({skipInitCheck:n}),z()}get theme(){return this.$$.ctx[16]}set theme(n){this.$$set({theme:n}),z()}get userSettings(){return this.$$.ctx[17]}set userSettings(n){this.$$set({userSettings:n}),z()}get viewurl(){return this.$$.ctx[18]}set viewurl(n){this.$$set({viewurl:n}),z()}get webcomponent(){return this.$$.ctx[19]}set webcomponent(n){this.$$set({webcomponent:n}),z()}get unwarn(){return this.$$.ctx[20]}}tf(Nc,{activeFeatureToggleList:{type:"Array",reflect:!1,attribute:"active-feature-toggle-list"},anchor:{type:"String",reflect:!1,attribute:"anchor"},clientPermissions:{type:"Object",reflect:!1,attribute:"client-permissions"},compoundConfig:{type:"Object",reflect:!1,attribute:"compound-config"},context:{type:"String",reflect:!1,attribute:"context"},deferInit:{type:"Boolean",attribute:"defer-init"},dirtyStatus:{type:"Boolean",reflect:!1,attribute:"dirty-status"},documentTitle:{type:"String",reflect:!1,attribute:"document-title"},hasBack:{type:"Boolean",reflect:!1,attribute:"has-back"},locale:{type:"String",reflect:!1,attribute:"locale"},noShadow:{type:"Boolean",attribute:"no-shadow",reflect:!1},nodeParams:{type:"Object",reflect:!1,attribute:"node-params"},pathParams:{type:"Object",reflect:!1,attribute:"path-params"},searchParams:{type:"Object",reflect:!1,attribute:"search-params"},skipInitCheck:{type:"Boolean",reflect:!1,attribute:"skip-init-check"},theme:{type:"String",reflect:!1,attribute:"theme"},userSettings:{type:"Object",reflect:!1,attribute:"user-settings"},viewurl:{type:"String",reflect:!1,attribute:"viewurl"},webcomponent:{type:"String",reflect:!1,attribute:"webcomponent"}},[],["unwarn"],!1,(i=>{let n=r=>()=>console.warn(r+" can't be called on luigi-container before its micro frontend is attached to the DOM.");return class extends i{constructor(){super(...arguments);fe(this,"updateContext",n("updateContext"));fe(this,"notifyAlertClosed",n("notifyAlertClosed"));fe(this,"notifyConfirmationModalClosed",n("notifyConfirmationModalClosed"))}attributeChangedCallback(a,u,l){try{super.attributeChangedCallback(a,u,l)}catch(c){console.warn("Error in attributeChangedCallback",c)}this.containerInitialized&&a==="context"&&this.updateContext(JSON.parse(l))}getNoShadow(){return this.hasAttribute("no-shadow")||this.noShadow}}})),customElements.get("luigi-container")||customElements.define("luigi-container",af.element),customElements.get("luigi-compound-container")||customElements.define("luigi-compound-container",Nc.element);class Kr{constructor(){this.decorators=[]}hasDecorators(){return this.decorators.length>0}add(n){this.decorators=this.decorators.filter(r=>r.uid!==n.uid).concat(n)}applyDecorators(n,r){if(!n)return n;const a=new URL(H.prependOrigin(n)),u=this.decorators.filter(l=>l.type==="queryString");for(let l=0;l<u.length;l++){const c=u[l];a.searchParams.has(c.key)&&a.searchParams.delete(c.key);const h=c.valueFn();a.searchParams.append(c.key,h)}return r&&(a.search=decodeURIComponent(a.search)),a.href}}const wo=async(i,n)=>{const r=await n.readUserSettings(),u=i.userSettingsGroup&&typeof r=="object"&&r!==null?r[i.userSettingsGroup]:null;if(i.webcomponent&&!W.checkWCUrl(i.viewUrl,n))return console.warn(`View URL '${i.viewUrl}' not allowed to be included`),document.createElement("div");if(i.compound){const l=document.createElement("luigi-compound-container");return l.setAttribute("lui_container","true"),l.viewurl=re.get(Kr).applyDecorators(W.substituteViewUrl(i.viewUrl,i.pathParams,n),i.decodeViewUrl),l.webcomponent=i.webcomponent,l.compoundConfig=i.compound,l.context=i.context,l.clientPermissions=i.clientPermissions,l.nodeParams=i.nodeParams,l.pathParams=i.pathParams,l.userSettingsGroup=i.userSettingsGroup,l.userSettings=u,l.searchParams=i.searchParams,l.activeFeatureToggleList=n.featureToggles().getActiveFeatureToggleList(),l.locale=n.i18n().getCurrentLocale(),l.theme=n.theming().getCurrentTheme(),l.viewGroup=i.viewGroup,l.virtualTree=i.virtualTree||i._virtualTree,l.virtualTreeRootNode=Ve.findVirtualTreeRootNode(i),n.getEngine()._comm.addListeners(l,n),l}else{const l=document.createElement("luigi-container");return l.setAttribute("lui_container","true"),l.viewurl=re.get(Kr).applyDecorators(W.substituteViewUrl(i.viewUrl,i.pathParams,n),i.decodeViewUrl),l.webcomponent=i.webcomponent,l.context=i.context,l.clientPermissions=i.clientPermissions,l.cssVariables=await n.theming().getCSSVariables(),l.nodeParams=i.nodeParams,l.pathParams=i.pathParams,l.userSettingsGroup=i.userSettingsGroup,l.userSettings=u,l.searchParams=i.searchParams,l.activeFeatureToggleList=n.featureToggles().getActiveFeatureToggleList(),l.locale=n.i18n().getCurrentLocale(),l.theme=n.theming().getCurrentTheme(),l.viewGroup=i.viewGroup,l.virtualTree=i.virtualTree||i._virtualTree,l.virtualTreeRootNode=Ve.findVirtualTreeRootNode(i),of(l,n),uf(l,n),n.getEngine()._comm.addListeners(l,n),l}},of=(i,n)=>{const r=n.getConfigValue("settings.customSandboxRules");if(!(r!=null&&r.length))return;const a=["allow-forms","allow-modals","allow-popups","allow-popups-to-escape-sandbox","allow-same-origin","allow-scripts"],u=r?[...new Set([...a,...r])]:a;i.sandboxRules=u},uf=(i,n)=>{const r=n.getConfigValue("settings.allowRules");r!=null&&r.length&&(r.forEach((a,u)=>{r[u]=a+(a.indexOf(";")!=-1?"":";")}),i.allowRules=r)},Ye={navService:void 0,routingService:void 0,luigi:void 0,init:i=>{var n;console.log("Init UI..."),Ye.navService=re.get(Wn),Ye.routingService=re.get(or),Ye.luigi=i,(n=i.getEngine()._connector)==null||n.renderMainLayout()},update:async i=>{var a,u,l;const n=Ye.routingService.getCurrentRoute();if(!n)return;const r=!i||i.length===0;(r||i.includes("settings.header")||i.includes("settings")||i.includes("navigation")||i.includes("navigation.profile")||i.includes("navigation.contextSwitcher")||i.includes("navigation.productSwitcher"))&&((a=Ye.luigi.getEngine()._connector)==null||a.renderTopNav(await Ye.navService.getTopNavData(n.path))),(r||i.includes("navigation")||i.includes("navigation.nodes")||i.includes("navigation.viewgroupdata")||i.includes("settings")||i.includes("settings.footer"))&&(re.get(kn).deleteCache(),(u=Ye.luigi.getEngine()._connector)==null||u.renderLeftNav(await Ye.navService.getLeftNavData(n.path)),(l=Ye.luigi.getEngine()._connector)==null||l.renderTabNav(await Ye.navService.getTabNavData(n.path))),(r||i.includes("navigation")||i.includes("navigation.nodes")||i.includes("navigation.viewgroupdata")||i.includes("settings.theming"))&&(re.get(kn).deleteCache(),Ye.updateMainContent(n.node,Ye.luigi))},updateMainContent:async(i,n,r,a)=>{var p,v,R;const u=await n.readUserSettings(),c=i.userSettingsGroup&&typeof u=="object"&&u!==null?u[i.userSettingsGroup]:null,h=(p=n.getEngine()._connector)==null?void 0:p.getContainerWrapper();if((v=n.getEngine()._connector)==null||v.hideLoadingIndicator(h),i&&h){let C,E;if((i.virtualTree||i._virtualTree)&&(E=Ve.findVirtualTreeRootNode(i)),[...h.childNodes].forEach(T=>{var A;((A=T.tagName)==null?void 0:A.indexOf("LUIGI-"))===0&&(T.viewGroup&&i.viewGroup!==T.viewGroup?T.style.display="none":T.viewGroup||T.virtualTree&&E===T.virtualTreeRootNode?C=T:T.remove())}),C)r||(C.style.display="block",C.viewurl=re.get(Kr).applyDecorators(W.substituteViewUrl(i.viewUrl,i.pathParams,n),i.decodeViewUrl),C.nodeParams=i.nodeParams,C.pathParams=i.pathParams,C.clientPermissions=i.clientPermissions,C.searchParams=W.prepareSearchParamsForClient(i,n),C.locale=n.i18n().getCurrentLocale(),C.theme=n.theming().getCurrentTheme(),C.activeFeatureToggleList=n.featureToggles().getActiveFeatureToggleList(),C.userSettingsGroup=i.userSettingsGroup,C.userSettings=c,of(C,n),uf(C,n)),a||C.updateContext(i.context||{});else{const T=await wo(i,n);h==null||h.appendChild(T);const A=n.getEngine()._connector;((R=i.loadingIndicator)==null?void 0:R.enabled)!==!1&&(A==null||A.showLoadingIndicator(h))}}},openModal:async(i,n,r,a)=>{var A,O;const u=await wo(n,i),l=re.get(or),c=re.get(Fn);let h=!1,p,v;const C=new Promise(N=>{p=()=>{h||(h=!0,N(),c.removeLastModalFromStack())},v=()=>{p&&p(),i.getConfigValue("routing.showModalPathInUrl")&&c.getModalStackLength()===0&&l.removeModalDataFromUrl(!0)},u.addEventListener(D.CLOSE_CURRENT_MODAL_REQUEST,v)}),E={closePromise:C,resolveFn:p,onCloseRequestHandler:v,onInternalClose:()=>{try{E.resolveFn&&E.resolveFn()}catch(N){console.warn("onInternalClose failed",N)}},modalsettings:r};c.registerModal(E),(A=i.getEngine()._connector)==null||A.renderModal(u,r,()=>{a==null||a(),c.removeLastModalFromStack(),i.getConfigValue("routing.showModalPathInUrl")&&c.getModalStackLength()===0&&l.removeModalDataFromUrl(!0)},()=>C);const T=i.getEngine()._connector;((O=n.loadingIndicator)==null?void 0:O.enabled)!==!1&&(T==null||T.showLoadingIndicator(u.parentElement))},updateModalSettings:(i,n,r)=>{var c;const a=re.get(Fn);if(a.getModalStackLength()===0)return;a.updateFirstModalSettings(i);const u=re.get(or),l=W.getModalPathFromPath(r);l&&u.updateModalDataInUrl(l,a.getModalSettings(),n),(c=r.getEngine()._connector)==null||c.updateModalSettings(a.getModalSettings())},openDrawer:async(i,n,r,a)=>{var c,h;const u=await wo(n,i);(c=i.getEngine()._connector)==null||c.renderDrawer(u,r,a);const l=i.getEngine()._connector;((h=n.loadingIndicator)==null?void 0:h.enabled)!==!1&&(l==null||l.showLoadingIndicator(u.parentElement))}};class or{constructor(n){this.luigi=n}getNavigationService(){return this.navigationService||(this.navigationService=re.get(Wn)),this.navigationService}shouldSkipRoutingForUrlPatterns(){const n=[/access_token=/,/id_token=/];return(this.luigi.getConfigValue("routing.skipRoutingForUrlPatterns")||n).filter(a=>location.href.match(a)).length!==0}enableRouting(){var r;const n=this.luigi.getConfig();console.log("Init Routing...",n.routing),(r=n.routing)!=null&&r.useHashRouting?(window.addEventListener("hashchange",a=>{var c,h;const u=!!((c=a==null?void 0:a.detail)!=null&&c.preventContextUpdate),l=!!((h=a==null?void 0:a.detail)!=null&&h.withoutSync);this.handleRouteChange(W.getCurrentPath(!0),l,u)}),this.handleRouteChange(W.getCurrentPath(!0))):(window.addEventListener("popstate",a=>{var c,h;const u=!!((c=a==null?void 0:a.detail)!=null&&c.preventContextUpdate),l=!!((h=a==null?void 0:a.detail)!=null&&h.withoutSync);this.handleRouteChange(W.getCurrentPath(),l,u)}),this.handleRouteChange(W.getCurrentPath()))}async handleRouteChange(n,r=!1,a=!1){var T,A,O;const u=n.path,l=n.query,c=u+(l?"?"+l:""),h=new URLSearchParams(l),p={};if(this.shouldSkipRoutingForUrlPatterns())return;this.setFeatureToggle(c),await this.shouldShowModalPathInUrl(n),h.forEach((N,V)=>{p[V]=N}),this.checkInvalidateCache(this.previousPathData,u);const v=await this.getNavigationService().getPathData(u);this.previousPathData=v;const R=W.filterNodeParams(p,this.luigi),C=await this.getNavigationService().shouldRedirect(u,v);if(C){this.luigi.navigation().navigate(C);return}this.currentRoute={raw:window.location.href,path:u,nodeParams:R},(T=this.luigi.getEngine()._connector)==null||T.renderTopNav(await this.getNavigationService().getTopNavData(u,v)),(A=this.luigi.getEngine()._connector)==null||A.renderLeftNav(await this.getNavigationService().getLeftNavData(u,v)),(O=this.luigi.getEngine()._connector)==null||O.renderTabNav(await this.getNavigationService().getTabNavData(u,v));const E=(v==null?void 0:v.selectedNode)??await this.getNavigationService().getCurrentNode(u);E&&(this.currentRoute.node=E,E.nodeParams=R||{},E.pathParams=(v==null?void 0:v.pathParams)||{},E.searchParams=W.prepareSearchParamsForClient(E,this.luigi),this.getNavigationService().onNodeChange(this.previousNode,E),this.previousNode=E,Ye.updateMainContent(E,this.luigi,r,a))}getCurrentRoute(){return this.currentRoute}async shouldShowModalPathInUrl(n){this.luigi.getConfigValue("routing.showModalPathInUrl")&&await this.handleBookmarkableModalPath(n)}async handleBookmarkableModalPath(n){var h;const r=re.get(Wn),a=re.get(Fn),u=new URLSearchParams((n==null?void 0:n.query)||""),l=W.getModalViewParamName(this.luigi),c=u.get(l);if(c){const p=u.get(`${l}Params`);try{const v=JSON.parse(p||"{}"),{nodeObject:R}=await r.extractDataFromPath(c);document.querySelector(".lui-modal luigi-container")?(h=this.luigi.getEngine()._connector)==null||h.updateModalSettings(v):this.luigi.navigation().openAsModal(c,v||R.openNodeInModal)}catch(v){console.error("Error parsing modal settings from URL parameters",v)}}else{a.closeModals();return}}appendModalDataToUrl(n,r){const a=W.getHashQueryParamSeparator(),u=W.getQueryParams(this.luigi),l=W.getModalViewParamName(this.luigi),c=u[l],h=new URL(location.href),p=this.luigi.getConfigValue("routing.useHashRouting");let v=history.state,R,C;if(p){let[E,T]=h.hash.split("?");R=E,C=W.getURLWithoutModalData(T,l),C&&(R+="?"+C)}else R=h.pathname,C=W.getURLWithoutModalData(h.search,l),C&&(R+="?"+W.getURLWithoutModalData(h.search,l));if(v=W.handleHistoryState(v,R),c!==n){if(u[l]=n,r&&Object.keys(r).length&&(u[`${l}Params`]=JSON.stringify(r)),p){const E=location.hash.indexOf(a);E!==-1&&(h.hash=h.hash.slice(0,E)),h.hash=`${h.hash}${a}${W.encodeParams(u)}`}else h.search=`?${W.encodeParams(u)}`;history.pushState(v,"",h.href)}else{const E=new URL(h);if(p){let T=E.hash.split("?")[0];E.hash=T,C&&(E.hash+="?"+C)}else E.search=C;history.replaceState({},"",E.href),history.pushState(v,"",h.href)}}removeModalDataFromUrl(n){const r=W.getQueryParams(this.luigi),a=W.getModalViewParamName(this.luigi);let u=new URL(location.href);if(this.luigi.getConfigValue("routing.useHashRouting")){let c={};r[a]&&(c[a]=r[a]),r[`${a}Params`]&&(c[`${a}Params`]=r[`${a}Params`]);let h=W.encodeParams(c);u.hash.includes(`?${h}`)?u.hash=u.hash.replace(`?${h}`,""):u.hash.includes(`&${h}`)&&(u.hash=u.hash.replace(`&${h}`,""))}else{let c=new URLSearchParams(u.search.slice(1));c.delete(a),c.delete(`${a}Params`);let h="";Array.from(c.keys()).forEach(p=>{h+=(h===""?"?":"&")+p+"="+c.get(p)}),u.search=h}if(history.state&&history.state.modalHistoryLength>=0&&n){history.state.modalHistoryLength;const c=history.state.pathBeforeHistory;let h=!1;if(window.addEventListener("popstate",p=>{h?(history.replaceState({},"",c),history.pushState({},"",c),history.back()):(history.pushState({},"",c),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 p=history.length-1;h=!0,history.go(-p),window.Luigi.preventLoadingModalData=!0}else{const p=history.state.modalHistoryLength;history.go(-p)}}else history.pushState({},"",u.href)}setFeatureToggle(n){const r=this.luigi.getConfigValue("settings.featureToggles.queryStringParam"),a=this.luigi.featureToggles();r&&typeof n=="string"&&W.setFeatureToggles(r,n,a)}updateModalDataInUrl(n,r,a){let u=W.getHashQueryParamSeparator();const l=W.getQueryParams(this.luigi),c=W.getModalViewParamName(this.luigi);l[c]=n,r&&Object.keys(r).length&&(l[`${c}Params`]=JSON.stringify(r));const h=new URL(location.href);if(this.luigi.getConfigValue("routing.useHashRouting")){const v=location.hash.indexOf(u);v!==-1&&(h.hash=h.hash.slice(0,v)),h.hash=`${h.hash}${u}${W.encodeParams(l)}`}else h.search=`?${W.encodeParams(l)}`;a?history.pushState(window.state,"",h.href):history.replaceState(window.state,"",h.href)}checkInvalidateCache(n,r){if(!n)return;const a=re.get(kn);let u=r.split("/");if(n.nodesInPath&&n.nodesInPath.length>0){let l=n.nodesInPath.slice(1),c=!0;for(let h=0;h<l.length;h++){let p=u.length>h?u[h]:void 0,v=l[h];if(p!==v.pathSegment||!c)if(W.isDynamicNode(v)){if(!c||p!==W.getDynamicNodeValue(v,n.pathParams)){a.deleteNodesRecursively(v);break}}else c=!1}}else a.deleteCache()}}class JS{constructor(n){var r;this.hashRouting=!1,this.options={fromContext:null,fromClosestContext:!1,fromVirtualTreeRoot:!1,fromParent:!1},this.navigate=async(a,u,l,c,h)=>{const p={modalSettings:l,newTab:!1,options:this.options,path:a,preserveView:u,preventContextUpdate:!1,preventHistoryEntry:!1,withoutSync:!1};this.navService.handleNavigationRequest(p,void 0)},this.openAsModal=async(a,u,l)=>{u!=null&&u.keepPrevious||await this.modalService.closeModals();const c=a.replace(/\/\/+/g,"/"),h=await this.navService.getCurrentNode(c),p=u||{};p.title||(p.title=h.label),this.luigi.getConfigValue("routing.showModalPathInUrl")&&this.modalService.getModalStackLength()===0&&this.routingService.appendModalDataToUrl(c,p),this.luigi.getEngine()._ui.openModal(this.luigi,h,p,l)},this.openAsDrawer=async(a,u,l)=>{const c=a.replace(/\/\/+/g,"/"),h=await this.navService.getCurrentNode(c),p=u||{};p.title||(p.title=h.label),this.luigi.getEngine()._ui.openDrawer(this.luigi,h,p,l)},this.runTimeErrorHandler=async a=>{var h,p,v;const{path:u}=W.getCurrentPath((h=this.luigi.getConfig().routing)==null?void 0:h.useHashRouting),l=await this.navService.getCurrentNode(u),c=this.luigi.getConfigValue("navigation.defaults.runTimeErrorHandler");(p=l==null?void 0:l.runTimeErrorHandler)!=null&&p.errorFn&&H.isFunction((v=l==null?void 0:l.runTimeErrorHandler)==null?void 0:v.errorFn)?l.runTimeErrorHandler.errorFn(a,l):c!=null&&c.errorFn&&H.isFunction(c.errorFn)&&c.errorFn(a,l)},this.luigi=n,this.hashRouting=(r=n.getConfig().routing)==null?void 0:r.useHashRouting,this.navService=re.get(Wn),this.routingService=re.get(or),this.modalService=re.get(Fn)}fromVirtualTreeRoot(){return this.options.fromContext=null,this.options.fromClosestContext=!1,this.options.fromVirtualTreeRoot=!0,this.options.fromParent=!1,this}fromContext(n){return this.options.fromContext=n,this}fromClosestContext(){return this.options.fromContext=null,this.options.fromClosestContext=!0,this.options.fromParent=!1,this}}class jS{constructor(n){this.luigi=n}addSearchParams(n,r=!1){if(!H.isObject(n)){console.log("Params argument must be an object");return}const a=new URL(location.href);this.luigi.getConfigValue("routing.useHashRouting")?a.hash=W.addParamsOnHashRouting(n,a.hash):W.modifySearchParams(n,a.searchParams),this.handleBrowserHistory(r,a),this.luigi.configChanged()}getSearchParams(){const n={},r=["__proto__","constructor","prototype"],a=new URL(location.href);let u;if(this.luigi.getConfigValue("routing.useHashRouting")){const l=a.hash.split("?")[1];u=l?new URLSearchParams(l).entries():[]}else u=a.searchParams.entries();for(const[l,c]of u){if(r.some(h=>l===h)){console.warn(`Blocked because of potentially dangerous query param: ${l}`);continue}n[l]=c}return n}handleBrowserHistory(n,r){const a=this.sanitizeUrl(r.href);if(!a){console.warn("invalid url: "+a);return}n?window.history.pushState({},"",a):window.history.replaceState({},"",a)}sanitizeUrl(n){return new URL(location.href).origin===new URL(n).origin?n:void 0}addNodeParams(n,r){if(!H.isObject(n)){console.log("Params argument must be an object");return}const a=W.getContentViewParamPrefix(this.luigi),u=new URL(location.href);this.luigi.getConfigValue("routing.useHashRouting")?u.hash=W.addParamsOnHashRouting(n,u.hash,a):W.modifySearchParams(n,u.searchParams,a),this.handleBrowserHistory(r,u),this.luigi.getConfigValue("routing.useHashRouting")?window.dispatchEvent(new HashChangeEvent("hashchange")):this.luigi.configChanged()}}var mt,Fr;class ew{constructor(n){le(this,mt);le(this,Fr,"");J(this,mt,n)}async getAvailableThemes(){return await $(this,mt).getConfigValueAsync("settings.theming.themes")}setCurrentTheme(n){J(this,Fr,n),$(this,mt).__cssVars=void 0}async getThemeObject(n){const r=await this.getAvailableThemes();return r==null?void 0:r.find(a=>a.id===n)}getCurrentTheme(){if(!this.isThemingAvailable())return!1;if($(this,Fr))return $(this,Fr);const n=$(this,mt).getConfigValue("settings.theming");return n.defaultTheme||console.error("[Theming] getCurrentTheme() error. No theme set and no defaultTheme found in configuration",n),n.defaultTheme}isThemingAvailable(){return!!$(this,mt).getConfigValue("settings.theming")}async getCSSVariables(){if(!window.Luigi.__cssVars){const n=$(this,mt).getConfigValue("settings.theming.variables.file");if(n)try{const r=await fetch(n);window.Luigi.__cssVars=(await r.json()).root,Object.keys(window.Luigi.__cssVars).forEach(a=>{const u=getComputedStyle(document.documentElement).getPropertyValue("--"+a);u&&(window.Luigi.__cssVars[a]=u)})}catch(r){H.isFunction($(this,mt).getConfigValue("settings.theming.variables.errorHandling"))?$(this,mt).getConfigValue("settings.theming.variables.errorHandling")(r):console.error("CSS variables file error: ",r)}else $(this,mt).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 n=re.get(Kr);(()=>{const a=$(this,mt).getConfigValue("settings.theming");a&&a.nodeViewURLDecorator&&a.nodeViewURLDecorator.queryStringParameter&&n.add({type:"queryString",uid:"theming",key:a.nodeViewURLDecorator.queryStringParameter.keyName,valueFn:()=>{const u=this.getCurrentTheme(),l=a.nodeViewURLDecorator.queryStringParameter.value;return l?l(u):u}}),a&&a.useFioriScrollbars===!0&&document.body.classList.add("fioriScrollbars")})()}}mt=new WeakMap,Fr=new WeakMap;class Vs{constructor(){this.unsavedChanges={isDirty:!1,persistUrl:null}}updateDirtyStatus(n,r){var a,u;if(!this.unsavedChanges.dirtySet||!(this.unsavedChanges.dirtySet instanceof Set)){const l=new Set;l.add(r),this.unsavedChanges={dirtySet:l}}this.unsavedChanges.persistUrl=window.location.href,n?(a=this.unsavedChanges.dirtySet)==null||a.add(r):(u=this.unsavedChanges.dirtySet)==null||u.delete(r)}clearDirtyState(n){this.unsavedChanges&&this.unsavedChanges.dirtySet&&(n?this.unsavedChanges.dirtySet.delete(n):this.unsavedChanges.dirtySet.clear())}readDirtyStatus(){return this.unsavedChanges.dirtySet?this.unsavedChanges.dirtySet.size>0:!!this.unsavedChanges.isDirty}}let Uc;const Me={luigi:void 0,documentTitle:void 0,init:i=>{console.log("ux init..."),Me.luigi=i,Me.documentTitle=ks(void 0),Uc=re.get(Vs)},processAlert:(i,n,r)=>{var u;if(!Me.luigi)throw new Error("Luigi is not initialized.");const a={openFromClient:n,close:()=>{i.id&&r.notifyAlertClosed(i.id)},link:l=>{var c;if(i.links){const h=i.links[l];if(h&&(h.url&&((c=Me.luigi)==null||c.navigation().navigate(h.url)),h.dismissKey&&i.id))return r.notifyAlertClosed(i.id,h.dismissKey),!0}return!1}};(u=Me.luigi.getEngine()._connector)==null||u.renderAlert(i,a)},handleConfirmationModalRequest:(i,n)=>{var r;if(!Me.luigi)throw new Error("Luigi is not initialized.");i&&(i={...i,header:Me.luigi.i18n().getTranslation(i.header||"luigi.confirmationModal.header"),body:Me.luigi.i18n().getTranslation(i.body||"luigi.confirmationModal.body"),buttonDismiss:Me.luigi.i18n().getTranslation(i.buttonDismiss||"luigi.button.dismiss"),buttonConfirm:Me.luigi.i18n().getTranslation(i.buttonConfirm||"luigi.button.confirm")}),(r=Me.luigi.getEngine()._connector)==null||r.renderConfirmationModal(i,{confirm(){n.notifyConfirmationModalClosed(!0)},dismiss(){n.notifyConfirmationModalClosed(!1)}})},handleDirtyStatusRequest:(i,n)=>{if(!Me.luigi)throw new Error("Luigi is not initialized.");Uc.updateDirtyStatus(i,n)}};class tw{processUserSettingGroups(n,r){var h;const a=[],u=n==null?void 0:n.userSettingGroups,l=(h=r==null?void 0:r.userSettings)==null?void 0:h.userSettingGroups,c=u||l;if(H.isObject(c)){for(const p in c){const v={};v[p]=c[p],a.push(v)}return a}return a}getUserSettingsIframesInDom(){const n=document.querySelector(".iframeUserSettingsCtn");return n?[...n.children]:[]}hideUserSettingsIframe(){this.getUserSettingsIframesInDom().forEach(n=>{n.style.display="none"})}findActiveCustomUserSettingsIframe(n){const r=document.querySelectorAll("[userSettingsGroup]");for(let a=0;a<r.length;a++)if(r[a].contentWindow===n)return r[a];return null}}const nw=new tw;class rw{constructor(n){this.dirtyStatusService=re.get(Vs),this.appLoadingIndicatorSelector="[luigi-app-loading-indicator]",this.showAlert=r=>new Promise(a=>{var l;r.id||(r.id=H.getRandomId().toString());const u={openFromClient:!1,close:()=>{a(!0)},link:c=>{var h;if(r.links){const p=r.links[c];if(p&&(p.url&&((h=this.luigi)==null||h.navigation().navigate(p.url)),p.dismissKey))return a(p.dismissKey),!0}return!1}};(l=this.luigi.getEngine()._connector)==null||l.renderAlert(r,u)}),this.showConfirmationModal=r=>(r&&(r={...r,header:this.luigi.i18n().getTranslation(r.header||"luigi.confirmationModal.header"),body:this.luigi.i18n().getTranslation(r.body||"luigi.confirmationModal.body"),buttonDismiss:this.luigi.i18n().getTranslation(r.buttonDismiss||"luigi.button.dismiss"),buttonConfirm:this.luigi.i18n().getTranslation(r.buttonConfirm||"luigi.button.confirm")}),new Promise((a,u)=>{var l;(l=this.luigi.getEngine()._connector)==null||l.renderConfirmationModal(r,{confirm(){a(!0)},dismiss(){u()}})})),this.processUserSettingGroups=()=>{const r=this.luigi.getConfigValue("userSettings"),a=this.luigi.getConfigValue("settings");return nw.processUserSettingGroups(r,a)},this.openUserSettings=r=>{var a;(a=this.luigi.getEngine()._connector)==null||a.openUserSettings(r)},this.closeUserSettings=()=>{var r;(r=this.luigi.getEngine()._connector)==null||r.closeUserSettings()},this.setDocumentTitle=r=>{var a,u,l;(u=(a=this.luigi.getEngine()._ux)==null?void 0:a.documentTitle)==null||u.set(r),(l=this.luigi.getEngine()._connector)==null||l.setDocumentTitle(r)},this.getDocumentTitle=()=>{var r;return qc((r=this.luigi.getEngine()._ux)==null?void 0:r.documentTitle)||window.document.title||""},this.hideAppLoadingIndicator=()=>{const r=document.querySelector(this.appLoadingIndicatorSelector);r&&(r.classList.add("hidden"),setTimeout(()=>{var a;(a=r.parentNode)==null||a.removeChild(r)},500))},this.showLoadingIndicator=r=>{var a;return(a=this.luigi.getEngine()._connector)==null?void 0:a.showLoadingIndicator(r)},this.hideLoadingIndicator=r=>{var a;return(a=this.luigi.getEngine()._connector)==null?void 0:a.hideLoadingIndicator(r)},this.addBackdrop=()=>{var r;return(r=this.luigi.getEngine()._connector)==null?void 0:r.addBackdrop()},this.removeBackdrop=()=>{var r;return(r=this.luigi.getEngine()._connector)==null?void 0:r.removeBackdrop()},this.getDirtyStatus=()=>this.dirtyStatusService.readDirtyStatus(),this.luigi=n}}class iw{constructor(n){this.engine=n,this.initialized=!1,this.configReadyCallback=function(){},this.USER_SETTINGS_KEY="luigi.preferences.userSettings",this.setConfig=r=>{this.config=r,this.setConfigCallback(this.getConfigReadyCallback()),Ur.init().then(()=>{this.engine.init(),this.initialized||(this.initialized=!0,US.luigiAfterInit(this))})},this.getConfig=()=>this.config,this.configChanged=(...r)=>{this.getEngine()._ui.update(r)},this.i18n=()=>(this._i18n||(this._i18n=new NS(this)),this._i18n),this.navigation=()=>new JS(this),this.ux=()=>new rw(this),this.featureToggles=()=>(this._featureToggles||(this._featureToggles=new DS),this._featureToggles),this.routing=()=>(this._routing||(this._routing=new jS(this)),this._routing),this.theming=()=>(this._theming||(this._theming=new ew(this)),this._theming),this.auth=()=>xr,this._store=this.createConfigStore()}getEngine(){return this.engine}getConfigValue(n){return H.getConfigValueFromObject(this.getConfig(),n)}getConfigValueAsync(n,...r){return Nr.getConfigValueFromObjectAsync(this.getConfig(),n,r)}clearNavigationCache(){re.get(kn).deleteCache()}async readUserSettings(){const n=await this.getConfigValueAsync("userSettings"),r=n||await this.getConfigValueAsync("settings.userSettings");if(r&&H.isFunction(r.readUserSettings))return r.readUserSettings();const a=localStorage.getItem(this.USER_SETTINGS_KEY);return a&&JSON.parse(a)}async storeUserSettings(n,r){const a=await this.getConfigValueAsync("userSettings"),u=a||await this.getConfigValueAsync("settings.userSettings");if(u&&H.isFunction(u.storeUserSettings))return u.storeUserSettings(n,r);localStorage.setItem(this.USER_SETTINGS_KEY,JSON.stringify(n)),this.configChanged()}createConfigStore(){const n=ks({}),r={};let a=[];return{subscribe:u=>{a.push(n.subscribe(u))},reset:u=>{n.update(u)},subscribeToScope:(u,l)=>{let c=r[l];c||(c=new Set,r[l]=c),c.add(u)},fire:(u,l)=>{const c=r[u];c&&[...c].forEach(h=>{h(l)})},clear:()=>{a.forEach(u=>{u()}),a=[]}}}getConfigReadyCallback(){return new Promise(n=>{this.i18n()._init(),n()})}setConfigCallback(n){this.configReadyCallback=n}}const yo=!1;var sw=Array.isArray,aw=Array.prototype.indexOf,Yr=Array.prototype.includes,ow=Array.from,uw=Object.defineProperty,Ri=Object.getOwnPropertyDescriptor,lw=Object.prototype,cw=Array.prototype,fw=Object.getPrototypeOf,Dc=Object.isExtensible;const hw=()=>{};function gw(i){for(var n=0;n<i.length;n++)i[n]()}function dw(){var i,n,r=new Promise((a,u)=>{i=a,n=u});return{promise:r,resolve:i,reject:n}}const rt=2,qs=4,lf=8,cf=1<<24,wn=16,Vn=32,fr=64,Ao=128,Nt=512,Xe=1024,nt=2048,zt=4096,Un=8192,ur=16384,Xr=32768,Bs=65536,Mc=1<<17,ff=1<<18,zs=1<<19,pw=1<<20,cr=65536,Ro=1<<21,hf=1<<22,xi=1<<23,Eo=Symbol("$state"),Mo=new class extends Error{constructor(){super(...arguments);fe(this,"name","StaleReactionError");fe(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function _w(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function vw(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function mw(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Sw(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ww(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const tt=Symbol();function Ew(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Cw(i){return i===this.v}let Fo=!1,Tw=!1;function yw(){Fo=!0}let Kt=null;function Gs(i){Kt=i}function Aw(i,n=!1,r){Kt={p:Kt,i:!1,c:null,e:null,s:i,x:null,l:Fo&&!n?{s:null,u:null,$:[]}:null}}function Rw(i){var n=Kt,r=n.e;if(r!==null){n.e=null;for(var a of r)Gw(a)}return n.i=!0,Kt=n.p,{}}function Ks(){return!Fo||Kt!==null&&Kt.l===null}let Lr=[];function bw(){var i=Lr;Lr=[],gw(i)}function Mr(i){if(Lr.length===0){var n=Lr;queueMicrotask(()=>{n===Lr&&bw()})}Lr.push(i)}function gf(i){var n=be;if(n===null)return he.f|=xi,i;if((n.f&Xr)===0&&(n.f&qs)===0)throw i;$r(i,n)}function $r(i,n){for(;n!==null;){if((n.f&Ao)!==0){if((n.f&Xr)===0)throw i;try{n.b.error(i);return}catch(r){i=r}}n=n.parent}throw i}const Pw=-7169;function $e(i,n){i.f=i.f&Pw|n}function ko(i){(i.f&Nt)!==0||i.deps===null?$e(i,Xe):$e(i,zt)}function df(i){if(i!==null)for(const n of i)(n.f&rt)===0||(n.f&cr)===0||(n.f^=cr,df(n.deps))}function pf(i,n,r){(i.f&nt)!==0?n.add(i):(i.f&zt)!==0&&r.add(i),df(i.deps),$e(i,Xe)}const Ls=new Set;let we=null,Be=null,Ot=[],Wo=null,bo=!1;var kr,Wr,nr,Hr,$i,Oi,rr,vn,Vr,wt,Po,Io,xo,_f;const Qo=class Qo{constructor(){le(this,wt);fe(this,"current",new Map);fe(this,"previous",new Map);le(this,kr,new Set);le(this,Wr,new Set);le(this,nr,0);le(this,Hr,0);le(this,$i,null);le(this,Oi,new Set);le(this,rr,new Set);le(this,vn,new Map);fe(this,"is_fork",!1);le(this,Vr,!1)}skip_effect(n){$(this,vn).has(n)||$(this,vn).set(n,{d:[],m:[]})}unskip_effect(n){var r=$(this,vn).get(n);if(r){$(this,vn).delete(n);for(var a of r.d)$e(a,nt),nn(a);for(a of r.m)$e(a,zt),nn(a)}}process(n){var u;Ot=[],this.apply();var r=[],a=[];for(const l of n)De(this,wt,Io).call(this,l,r,a);if(De(this,wt,Po).call(this)){De(this,wt,xo).call(this,a),De(this,wt,xo).call(this,r);for(const[l,c]of $(this,vn))Sf(l,c)}else{for(const l of $(this,kr))l();$(this,kr).clear(),$(this,nr)===0&&De(this,wt,_f).call(this),we=null,Fc(a),Fc(r),(u=$(this,$i))==null||u.resolve()}Be=null}capture(n,r){r!==tt&&!this.previous.has(n)&&this.previous.set(n,r),(n.f&xi)===0&&(this.current.set(n,n.v),Be==null||Be.set(n,n.v))}activate(){we=this,this.apply()}deactivate(){we===this&&(we=null,Be=null)}flush(){if(this.activate(),Ot.length>0){if(Iw(),we!==null&&we!==this)return}else $(this,nr)===0&&this.process([]);this.deactivate()}discard(){for(const n of $(this,Wr))n(this);$(this,Wr).clear()}increment(n){J(this,nr,$(this,nr)+1),n&&J(this,Hr,$(this,Hr)+1)}decrement(n){J(this,nr,$(this,nr)-1),n&&J(this,Hr,$(this,Hr)-1),!$(this,Vr)&&(J(this,Vr,!0),Mr(()=>{J(this,Vr,!1),De(this,wt,Po).call(this)?Ot.length>0&&this.flush():this.revive()}))}revive(){for(const n of $(this,Oi))$(this,rr).delete(n),$e(n,nt),nn(n);for(const n of $(this,rr))$e(n,zt),nn(n);this.flush()}oncommit(n){$(this,kr).add(n)}ondiscard(n){$(this,Wr).add(n)}settled(){return($(this,$i)??J(this,$i,dw())).promise}static ensure(){if(we===null){const n=we=new Qo;Ls.add(we),Mr(()=>{we===n&&n.flush()})}return we}apply(){}};kr=new WeakMap,Wr=new WeakMap,nr=new WeakMap,Hr=new WeakMap,$i=new WeakMap,Oi=new WeakMap,rr=new WeakMap,vn=new WeakMap,Vr=new WeakMap,wt=new WeakSet,Po=function(){return this.is_fork||$(this,Hr)>0},Io=function(n,r,a){n.f^=Xe;for(var u=n.first;u!==null;){var l=u.f,c=(l&(Vn|fr))!==0,h=c&&(l&Xe)!==0,p=h||(l&Un)!==0||$(this,vn).has(u);if(!p&&u.fn!==null){c?u.f^=Xe:(l&qs)!==0?r.push(u):Ui(u)&&((l&wn)!==0&&$(this,rr).add(u),Jr(u));var v=u.first;if(v!==null){u=v;continue}}for(;u!==null;){var R=u.next;if(R!==null){u=R;break}u=u.parent}}},xo=function(n){for(var r=0;r<n.length;r+=1)pf(n[r],$(this,Oi),$(this,rr))},_f=function(){var u;if(Ls.size>1){this.previous.clear();var n=Be,r=!0;for(const l of Ls){if(l===this){r=!1;continue}const c=[];for(const[p,v]of this.current){if(l.current.has(p))if(r&&v!==l.current.get(p))l.current.set(p,v);else continue;c.push(p)}if(c.length===0)continue;const h=[...l.current.keys()].filter(p=>!this.current.has(p));if(h.length>0){var a=Ot;Ot=[];const p=new Set,v=new Map;for(const R of c)vf(R,h,p,v);if(Ot.length>0){we=l,l.apply();for(const R of Ot)De(u=l,wt,Io).call(u,R,[],[]);l.deactivate()}Ot=a}}we=null,Be=n}Ls.delete(this)};let Dn=Qo;function Iw(){bo=!0;var i=null;try{for(var n=0;Ot.length>0;){var r=Dn.ensure();if(n++>1e3){var a,u;xw()}r.process(Ot),Mn.clear()}}finally{Ot=[],bo=!1,Wo=null}}function xw(){try{_w()}catch(i){$r(i,Wo)}}let Bt=null;function Fc(i){var n=i.length;if(n!==0){for(var r=0;r<n;){var a=i[r++];if((a.f&(ur|Un))===0&&Ui(a)&&(Bt=new Set,Jr(a),a.deps===null&&a.first===null&&a.nodes===null&&a.teardown===null&&a.ac===null&&xf(a),(Bt==null?void 0:Bt.size)>0)){Mn.clear();for(const u of Bt){if((u.f&(ur|Un))!==0)continue;const l=[u];let c=u.parent;for(;c!==null;)Bt.has(c)&&(Bt.delete(c),l.push(c)),c=c.parent;for(let h=l.length-1;h>=0;h--){const p=l[h];(p.f&(ur|Un))===0&&Jr(p)}}Bt.clear()}}Bt=null}}function vf(i,n,r,a){if(!r.has(i)&&(r.add(i),i.reactions!==null))for(const u of i.reactions){const l=u.f;(l&rt)!==0?vf(u,n,r,a):(l&(hf|wn))!==0&&(l&nt)===0&&mf(u,n,a)&&($e(u,nt),nn(u))}}function mf(i,n,r){const a=r.get(i);if(a!==void 0)return a;if(i.deps!==null)for(const u of i.deps){if(Yr.call(n,u))return!0;if((u.f&rt)!==0&&mf(u,n,r))return r.set(u,!0),!0}return r.set(i,!1),!1}function nn(i){var n=Wo=i,r=n.b;if(r!=null&&r.is_pending&&(i.f&(qs|lf|cf))!==0&&(i.f&Xr)===0){r.defer_effect(i);return}for(;n.parent!==null;){n=n.parent;var a=n.f;if(bo&&n===be&&(a&wn)!==0&&(a&ff)===0&&(a&Xr)!==0)return;if((a&(fr|Vn))!==0){if((a&Xe)===0)return;n.f^=Xe}}Ot.push(n)}function Sf(i,n){if(!((i.f&Vn)!==0&&(i.f&Xe)!==0)){(i.f&nt)!==0?n.d.push(i):(i.f&zt)!==0&&n.m.push(i),$e(i,Xe);for(var r=i.first;r!==null;)Sf(r,n),r=r.next}}function Lw(i){let n=0,r=Vo(0),a;return()=>{Bo()&&(Or(r),qw(()=>(n===0&&(a=eE(()=>i(()=>bi(r)))),n+=1,()=>{Mr(()=>{n-=1,n===0&&(a==null||a(),a=void 0,bi(r))})})))}}var $w=Bs|zs;function Ow(i,n,r,a){new Nw(i,n,r,a)}var Lt,Uo,en,ir,ut,tn,St,Gt,mn,sr,$n,Br,Gr,Qr,Sn,Qs,Oe,Uw,Dw,Mw,Lo,Us,Ds,$o;class Nw{constructor(n,r,a,u){le(this,Oe);fe(this,"parent");fe(this,"is_pending",!1);fe(this,"transform_error");le(this,Lt);le(this,Uo,null);le(this,en);le(this,ir);le(this,ut);le(this,tn,null);le(this,St,null);le(this,Gt,null);le(this,mn,null);le(this,sr,0);le(this,$n,0);le(this,Br,!1);le(this,Gr,new Set);le(this,Qr,new Set);le(this,Sn,null);le(this,Qs,Lw(()=>(J(this,Sn,Vo($(this,sr))),()=>{J(this,Sn,null)})));var l;J(this,Lt,n),J(this,en,r),J(this,ir,c=>{var h=be;h.b=this,h.f|=Ao,a(c)}),this.parent=be.b,this.transform_error=u??((l=this.parent)==null?void 0:l.transform_error)??(c=>c),J(this,ut,zw(()=>{De(this,Oe,Lo).call(this)},$w))}defer_effect(n){pf(n,$(this,Gr),$(this,Qr))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!$(this,en).pending}update_pending_count(n){De(this,Oe,$o).call(this,n),J(this,sr,$(this,sr)+n),!(!$(this,Sn)||$(this,Br))&&(J(this,Br,!0),Mr(()=>{J(this,Br,!1),$(this,Sn)&&Tf($(this,Sn),$(this,sr))}))}get_effect_pending(){return $(this,Qs).call(this),Or($(this,Sn))}error(n){var r=$(this,en).onerror;let a=$(this,en).failed;if(!r&&!a)throw n;$(this,tn)&&(rn($(this,tn)),J(this,tn,null)),$(this,St)&&(rn($(this,St)),J(this,St,null)),$(this,Gt)&&(rn($(this,Gt)),J(this,Gt,null));var u=!1,l=!1;const c=()=>{if(u){Ew();return}u=!0,l&&ww(),$(this,Gt)!==null&&Ms($(this,Gt),()=>{J(this,Gt,null)}),De(this,Oe,Ds).call(this,()=>{Dn.ensure(),De(this,Oe,Lo).call(this)})},h=p=>{try{l=!0,r==null||r(p,c),l=!1}catch(v){$r(v,$(this,ut)&&$(this,ut).parent)}a&&J(this,Gt,De(this,Oe,Ds).call(this,()=>{Dn.ensure();try{return Jn(()=>{var v=be;v.b=this,v.f|=Ao,a($(this,Lt),()=>p,()=>c)})}catch(v){return $r(v,$(this,ut).parent),null}}))};Mr(()=>{var p;try{p=this.transform_error(n)}catch(v){$r(v,$(this,ut)&&$(this,ut).parent);return}p!==null&&typeof p=="object"&&typeof p.then=="function"?p.then(h,v=>$r(v,$(this,ut)&&$(this,ut).parent)):h(p)})}}Lt=new WeakMap,Uo=new WeakMap,en=new WeakMap,ir=new WeakMap,ut=new WeakMap,tn=new WeakMap,St=new WeakMap,Gt=new WeakMap,mn=new WeakMap,sr=new WeakMap,$n=new WeakMap,Br=new WeakMap,Gr=new WeakMap,Qr=new WeakMap,Sn=new WeakMap,Qs=new WeakMap,Oe=new WeakSet,Uw=function(){try{J(this,tn,Jn(()=>$(this,ir).call(this,$(this,Lt))))}catch(n){this.error(n)}},Dw=function(n){const r=$(this,en).failed;r&&J(this,Gt,Jn(()=>{r($(this,Lt),()=>n,()=>()=>{})}))},Mw=function(){const n=$(this,en).pending;n&&(this.is_pending=!0,J(this,St,Jn(()=>n($(this,Lt)))),Mr(()=>{var r=J(this,mn,document.createDocumentFragment()),a=Rf();r.append(a),J(this,tn,De(this,Oe,Ds).call(this,()=>(Dn.ensure(),Jn(()=>$(this,ir).call(this,a))))),$(this,$n)===0&&($(this,Lt).before(r),J(this,mn,null),Ms($(this,St),()=>{J(this,St,null)}),De(this,Oe,Us).call(this))}))},Lo=function(){try{if(this.is_pending=this.has_pending_snippet(),J(this,$n,0),J(this,sr,0),J(this,tn,Jn(()=>{$(this,ir).call(this,$(this,Lt))})),$(this,$n)>0){var n=J(this,mn,document.createDocumentFragment());Xw($(this,tn),n);const r=$(this,en).pending;J(this,St,Jn(()=>r($(this,Lt))))}else De(this,Oe,Us).call(this)}catch(r){this.error(r)}},Us=function(){this.is_pending=!1;for(const n of $(this,Gr))$e(n,nt),nn(n);for(const n of $(this,Qr))$e(n,zt),nn(n);$(this,Gr).clear(),$(this,Qr).clear()},Ds=function(n){var r=be,a=he,u=Kt;Hn($(this,ut)),sn($(this,ut)),Gs($(this,ut).ctx);try{return n()}catch(l){return gf(l),null}finally{Hn(r),sn(a),Gs(u)}},$o=function(n){var r;if(!this.has_pending_snippet()){this.parent&&De(r=this.parent,Oe,$o).call(r,n);return}J(this,$n,$(this,$n)+n),$(this,$n)===0&&(De(this,Oe,Us).call(this),$(this,St)&&Ms($(this,St),()=>{J(this,St,null)}),$(this,mn)&&($(this,Lt).before($(this,mn)),J(this,mn,null)))};function Fw(i){var n=i.effects;if(n!==null){i.effects=null;for(var r=0;r<n.length;r+=1)rn(n[r])}}function kw(i){for(var n=i.parent;n!==null;){if((n.f&rt)===0)return(n.f&ur)===0?n:null;n=n.parent}return null}function Ho(i){var n,r=be;Hn(kw(i));try{i.f&=~cr,Fw(i),n=Uf(i)}finally{Hn(r)}return n}function wf(i){var n=Ho(i);if(!i.equals(n)&&(i.wv=Of(),(!(we!=null&&we.is_fork)||i.deps===null)&&(i.v=n,i.deps===null))){$e(i,Xe);return}Zr||(Be!==null?(Bo()||we!=null&&we.is_fork)&&Be.set(i,n):ko(i))}function Ww(i){var n,r;if(i.effects!==null)for(const a of i.effects)(a.teardown||a.ac)&&((n=a.teardown)==null||n.call(a),(r=a.ac)==null||r.abort(Mo),a.teardown=hw,a.ac=null,Li(a,0),Go(a))}function Ef(i){if(i.effects!==null)for(const n of i.effects)n.teardown&&Jr(n)}let Oo=new Set;const Mn=new Map;let Cf=!1;function Vo(i,n){var r={f:0,v:i,reactions:null,equals:Cw,rv:0,wv:0};return r}function xn(i,n){const r=Vo(i);return Zw(r),r}function jn(i,n,r=!1){he!==null&&(!qt||(he.f&Mc)!==0)&&Ks()&&(he.f&(rt|wn|hf|Mc))!==0&&(Ut===null||!Yr.call(Ut,i))&&Sw();let a=r?Ti(n):n;return Tf(i,a)}function Tf(i,n){if(!i.equals(n)){var r=i.v;Zr?Mn.set(i,n):Mn.set(i,r),i.v=n;var a=Dn.ensure();if(a.capture(i,r),(i.f&rt)!==0){const u=i;(i.f&nt)!==0&&Ho(u),ko(u)}i.wv=Of(),yf(i,nt),Ks()&&be!==null&&(be.f&Xe)!==0&&(be.f&(Vn|fr))===0&&(xt===null?Jw([i]):xt.push(i)),!a.is_fork&&Oo.size>0&&!Cf&&Hw()}return n}function Hw(){Cf=!1;for(const i of Oo)(i.f&Xe)!==0&&$e(i,zt),Ui(i)&&Jr(i);Oo.clear()}function bi(i){jn(i,i.v+1)}function yf(i,n){var r=i.reactions;if(r!==null)for(var a=Ks(),u=r.length,l=0;l<u;l++){var c=r[l],h=c.f;if(!(!a&&c===be)){var p=(h&nt)===0;if(p&&$e(c,n),(h&rt)!==0){var v=c;Be==null||Be.delete(v),(h&cr)===0&&(h&Nt&&(c.f|=cr),yf(v,zt))}else p&&((h&wn)!==0&&Bt!==null&&Bt.add(c),nn(c))}}}function Ti(i){if(typeof i!="object"||i===null||Eo in i)return i;const n=fw(i);if(n!==lw&&n!==cw)return i;var r=new Map,a=sw(i),u=xn(0),l=lr,c=h=>{if(lr===l)return h();var p=he,v=lr;sn(null),Hc(l);var R=h();return sn(p),Hc(v),R};return a&&r.set("length",xn(i.length)),new Proxy(i,{defineProperty(h,p,v){(!("value"in v)||v.configurable===!1||v.enumerable===!1||v.writable===!1)&&vw();var R=r.get(p);return R===void 0?c(()=>{var C=xn(v.value);return r.set(p,C),C}):jn(R,v.value,!0),!0},deleteProperty(h,p){var v=r.get(p);if(v===void 0){if(p in h){const R=c(()=>xn(tt));r.set(p,R),bi(u)}}else jn(v,tt),bi(u);return!0},get(h,p,v){var T;if(p===Eo)return i;var R=r.get(p),C=p in h;if(R===void 0&&(!C||(T=Ri(h,p))!=null&&T.writable)&&(R=c(()=>{var A=Ti(C?h[p]:tt),O=xn(A);return O}),r.set(p,R)),R!==void 0){var E=Or(R);return E===tt?void 0:E}return Reflect.get(h,p,v)},getOwnPropertyDescriptor(h,p){var v=Reflect.getOwnPropertyDescriptor(h,p);if(v&&"value"in v){var R=r.get(p);R&&(v.value=Or(R))}else if(v===void 0){var C=r.get(p),E=C==null?void 0:C.v;if(C!==void 0&&E!==tt)return{enumerable:!0,configurable:!0,value:E,writable:!0}}return v},has(h,p){var E;if(p===Eo)return!0;var v=r.get(p),R=v!==void 0&&v.v!==tt||Reflect.has(h,p);if(v!==void 0||be!==null&&(!R||(E=Ri(h,p))!=null&&E.writable)){v===void 0&&(v=c(()=>{var T=R?Ti(h[p]):tt,A=xn(T);return A}),r.set(p,v));var C=Or(v);if(C===tt)return!1}return R},set(h,p,v,R){var ce;var C=r.get(p),E=p in h;if(a&&p==="length")for(var T=v;T<C.v;T+=1){var A=r.get(T+"");A!==void 0?jn(A,tt):T in h&&(A=c(()=>xn(tt)),r.set(T+"",A))}if(C===void 0)(!E||(ce=Ri(h,p))!=null&&ce.writable)&&(C=c(()=>xn(void 0)),jn(C,Ti(v)),r.set(p,C));else{E=C.v!==tt;var O=c(()=>Ti(v));jn(C,O)}var N=Reflect.getOwnPropertyDescriptor(h,p);if(N!=null&&N.set&&N.set.call(R,v),!E){if(a&&typeof p=="string"){var V=r.get("length"),ae=Number(p);Number.isInteger(ae)&&ae>=V.v&&jn(V,ae+1)}bi(u)}return!0},ownKeys(h){Or(u);var p=Reflect.ownKeys(h).filter(C=>{var E=r.get(C);return E===void 0||E.v!==tt});for(var[v,R]of r)R.v!==tt&&!(v in h)&&p.push(v);return p},setPrototypeOf(){mw()}})}var kc,Af;function Vw(){if(kc===void 0){kc=window;var i=Element.prototype,n=Node.prototype,r=Text.prototype;Ri(n,"firstChild").get,Af=Ri(n,"nextSibling").get,Dc(i)&&(i.__click=void 0,i.__className=void 0,i.__attributes=null,i.__style=void 0,i.__e=void 0),Dc(r)&&(r.__t=void 0)}}function Rf(i=""){return document.createTextNode(i)}function bf(i){return Af.call(i)}function Pf(i){var n=he,r=be;sn(null),Hn(null);try{return i()}finally{sn(n),Hn(r)}}function Bw(i,n){var r=n.last;r===null?n.last=n.first=i:(r.next=i,i.prev=r,n.last=i)}function Ni(i,n,r){var a=be;a!==null&&(a.f&Un)!==0&&(i|=Un);var u={ctx:Kt,deps:null,nodes:null,f:i|nt|Nt,first:null,fn:n,last:null,next:null,parent:a,b:a&&a.b,prev:null,teardown:null,wv:0,ac:null};if(r)try{Jr(u)}catch(h){throw rn(u),h}else n!==null&&nn(u);var l=u;if(r&&l.deps===null&&l.teardown===null&&l.nodes===null&&l.first===l.last&&(l.f&zs)===0&&(l=l.first,(i&wn)!==0&&(i&Bs)!==0&&l!==null&&(l.f|=Bs)),l!==null&&(l.parent=a,a!==null&&Bw(l,a),he!==null&&(he.f&rt)!==0&&(i&fr)===0)){var c=he;(c.effects??(c.effects=[])).push(l)}return u}function Bo(){return he!==null&&!qt}function Gw(i){return Ni(qs|pw,i,!1)}function Qw(i){Dn.ensure();const n=Ni(fr|zs,i,!0);return(r={})=>new Promise(a=>{r.outro?Ms(n,()=>{rn(n),a(void 0)}):(rn(n),a(void 0))})}function qw(i,n=0){return Ni(lf|n,i,!0)}function zw(i,n=0){var r=Ni(wn|n,i,!0);return r}function Jn(i){return Ni(Vn|zs,i,!0)}function If(i){var n=i.teardown;if(n!==null){const r=Zr,a=he;Wc(!0),sn(null);try{n.call(null)}finally{Wc(r),sn(a)}}}function Go(i,n=!1){var r=i.first;for(i.first=i.last=null;r!==null;){const u=r.ac;u!==null&&Pf(()=>{u.abort(Mo)});var a=r.next;(r.f&fr)!==0?r.parent=null:rn(r,n),r=a}}function Kw(i){for(var n=i.first;n!==null;){var r=n.next;(n.f&Vn)===0&&rn(n),n=r}}function rn(i,n=!0){var r=!1;(n||(i.f&ff)!==0)&&i.nodes!==null&&i.nodes.end!==null&&(Yw(i.nodes.start,i.nodes.end),r=!0),Go(i,n&&!r),Li(i,0),$e(i,ur);var a=i.nodes&&i.nodes.t;if(a!==null)for(const l of a)l.stop();If(i);var u=i.parent;u!==null&&u.first!==null&&xf(i),i.next=i.prev=i.teardown=i.ctx=i.deps=i.fn=i.nodes=i.ac=null}function Yw(i,n){for(;i!==null;){var r=i===n?null:bf(i);i.remove(),i=r}}function xf(i){var n=i.parent,r=i.prev,a=i.next;r!==null&&(r.next=a),a!==null&&(a.prev=r),n!==null&&(n.first===i&&(n.first=a),n.last===i&&(n.last=r))}function Ms(i,n,r=!0){var a=[];Lf(i,a,!0);var u=()=>{r&&rn(i),n&&n()},l=a.length;if(l>0){var c=()=>--l||u();for(var h of a)h.out(c)}else u()}function Lf(i,n,r){if((i.f&Un)===0){i.f^=Un;var a=i.nodes&&i.nodes.t;if(a!==null)for(const h of a)(h.is_global||r)&&n.push(h);for(var u=i.first;u!==null;){var l=u.next,c=(u.f&Bs)!==0||(u.f&Vn)!==0&&(i.f&wn)!==0;Lf(u,n,c?r:!1),u=l}}}function Xw(i,n){if(i.nodes)for(var r=i.nodes.start,a=i.nodes.end;r!==null;){var u=r===a?null:bf(r);n.append(r),r=u}}let Fs=!1,Zr=!1;function Wc(i){Zr=i}let he=null,qt=!1;function sn(i){he=i}let be=null;function Hn(i){be=i}let Ut=null;function Zw(i){he!==null&&(Ut===null?Ut=[i]:Ut.push(i))}let ct=null,vt=0,xt=null;function Jw(i){xt=i}let $f=1,tr=0,lr=tr;function Hc(i){lr=i}function Of(){return++$f}function Ui(i){var n=i.f;if((n&nt)!==0)return!0;if(n&rt&&(i.f&=~cr),(n&zt)!==0){for(var r=i.deps,a=r.length,u=0;u<a;u++){var l=r[u];if(Ui(l)&&wf(l),l.wv>i.wv)return!0}(n&Nt)!==0&&Be===null&&$e(i,Xe)}return!1}function Nf(i,n,r=!0){var a=i.reactions;if(a!==null&&!(Ut!==null&&Yr.call(Ut,i)))for(var u=0;u<a.length;u++){var l=a[u];(l.f&rt)!==0?Nf(l,n,!1):n===l&&(r?$e(l,nt):(l.f&Xe)!==0&&$e(l,zt),nn(l))}}function Uf(i){var O;var n=ct,r=vt,a=xt,u=he,l=Ut,c=Kt,h=qt,p=lr,v=i.f;ct=null,vt=0,xt=null,he=(v&(Vn|fr))===0?i:null,Ut=null,Gs(i.ctx),qt=!1,lr=++tr,i.ac!==null&&(Pf(()=>{i.ac.abort(Mo)}),i.ac=null);try{i.f|=Ro;var R=i.fn,C=R();i.f|=Xr;var E=i.deps,T=we==null?void 0:we.is_fork;if(ct!==null){var A;if(T||Li(i,vt),E!==null&&vt>0)for(E.length=vt+ct.length,A=0;A<ct.length;A++)E[vt+A]=ct[A];else i.deps=E=ct;if(Bo()&&(i.f&Nt)!==0)for(A=vt;A<E.length;A++)((O=E[A]).reactions??(O.reactions=[])).push(i)}else!T&&E!==null&&vt<E.length&&(Li(i,vt),E.length=vt);if(Ks()&&xt!==null&&!qt&&E!==null&&(i.f&(rt|zt|nt))===0)for(A=0;A<xt.length;A++)Nf(xt[A],i);if(u!==null&&u!==i){if(tr++,u.deps!==null)for(let N=0;N<r;N+=1)u.deps[N].rv=tr;if(n!==null)for(const N of n)N.rv=tr;xt!==null&&(a===null?a=xt:a.push(...xt))}return(i.f&xi)!==0&&(i.f^=xi),C}catch(N){return gf(N)}finally{i.f^=Ro,ct=n,vt=r,xt=a,he=u,Ut=l,Gs(c),qt=h,lr=p}}function jw(i,n){let r=n.reactions;if(r!==null){var a=aw.call(r,i);if(a!==-1){var u=r.length-1;u===0?r=n.reactions=null:(r[a]=r[u],r.pop())}}if(r===null&&(n.f&rt)!==0&&(ct===null||!Yr.call(ct,n))){var l=n;(l.f&Nt)!==0&&(l.f^=Nt,l.f&=~cr),ko(l),Ww(l),Li(l,0)}}function Li(i,n){var r=i.deps;if(r!==null)for(var a=n;a<r.length;a++)jw(i,r[a])}function Jr(i){var n=i.f;if((n&ur)===0){$e(i,Xe);var r=be,a=Fs;be=i,Fs=!0;try{(n&(wn|cf))!==0?Kw(i):Go(i),If(i);var u=Uf(i);i.teardown=typeof u=="function"?u:null,i.wv=$f;var l;yo&&Tw&&(i.f&nt)!==0&&i.deps}finally{Fs=a,be=r}}}function Or(i){var n=i.f,r=(n&rt)!==0;if(he!==null&&!qt){var a=be!==null&&(be.f&ur)!==0;if(!a&&(Ut===null||!Yr.call(Ut,i))){var u=he.deps;if((he.f&Ro)!==0)i.rv<tr&&(i.rv=tr,ct===null&&u!==null&&u[vt]===i?vt++:ct===null?ct=[i]:ct.push(i));else{(he.deps??(he.deps=[])).push(i);var l=i.reactions;l===null?i.reactions=[he]:Yr.call(l,he)||l.push(he)}}}if(Zr&&Mn.has(i))return Mn.get(i);if(r){var c=i;if(Zr){var h=c.v;return((c.f&Xe)===0&&c.reactions!==null||Mf(c))&&(h=Ho(c)),Mn.set(c,h),h}var p=(c.f&Nt)===0&&!qt&&he!==null&&(Fs||(he.f&Nt)!==0),v=(c.f&Xr)===0;Ui(c)&&(p&&(c.f|=Nt),wf(c)),p&&!v&&(Ef(c),Df(c))}if(Be!=null&&Be.has(i))return Be.get(i);if((i.f&xi)!==0)throw i.v;return i.v}function Df(i){if(i.f|=Nt,i.deps!==null)for(const n of i.deps)(n.reactions??(n.reactions=[])).push(i),(n.f&rt)!==0&&(n.f&Nt)===0&&(Ef(n),Df(n))}function Mf(i){if(i.v===tt)return!0;if(i.deps===null)return!1;for(const n of i.deps)if(Mn.has(n)||(n.f&rt)!==0&&Mf(n))return!0;return!1}function eE(i){var n=qt;try{return qt=!0,i()}finally{qt=n}}const tE=["touchstart","touchmove"];function nE(i){return tE.includes(i)}const $s=Symbol("events"),rE=new Set,Vc=new Set;let Bc=null;function Gc(i){var N,V;var n=this,r=n.ownerDocument,a=i.type,u=((N=i.composedPath)==null?void 0:N.call(i))||[],l=u[0]||i.target;Bc=i;var c=0,h=Bc===i&&i[$s];if(h){var p=u.indexOf(h);if(p!==-1&&(n===document||n===window)){i[$s]=n;return}var v=u.indexOf(n);if(v===-1)return;p<=v&&(c=p)}if(l=u[c]||i.target,l!==n){uw(i,"currentTarget",{configurable:!0,get(){return l||r}});var R=he,C=be;sn(null),Hn(null);try{for(var E,T=[];l!==null;){var A=l.assignedSlot||l.parentNode||l.host||null;try{var O=(V=l[$s])==null?void 0:V[a];O!=null&&(!l.disabled||i.target===l)&&O.call(l,i)}catch(ae){E?T.push(ae):E=ae}if(i.cancelBubble||A===n||A===null)break;l=A}if(E){for(let ae of T)queueMicrotask(()=>{throw ae});throw E}}finally{i[$s]=n,delete i.currentTarget,sn(R),Hn(C)}}}function iE(i,n){return sE(i,n)}const Os=new Map;function sE(i,{target:n,anchor:r,props:a={},events:u,context:l,intro:c=!0,transformError:h}){Vw();var p=void 0,v=Qw(()=>{var R=r??n.appendChild(Rf());Ow(R,{pending:()=>{}},T=>{Aw({});var A=Kt;l&&(A.c=l),u&&(a.$$events=u),p=i(T,a)||{},Rw()},h);var C=new Set,E=T=>{for(var A=0;A<T.length;A++){var O=T[A];if(!C.has(O)){C.add(O);var N=nE(O);for(const ce of[n,document]){var V=Os.get(ce);V===void 0&&(V=new Map,Os.set(ce,V));var ae=V.get(O);ae===void 0?(ce.addEventListener(O,Gc,{passive:N}),V.set(O,1)):V.set(O,ae+1)}}}};return E(ow(rE)),Vc.add(E),()=>{var N;for(var T of C)for(const V of[n,document]){var A=Os.get(V),O=A.get(T);--O==0?(V.removeEventListener(T,Gc),A.delete(T),A.size===0&&Os.delete(V)):A.set(T,O)}Vc.delete(E),R!==r&&((N=R.parentNode)==null||N.removeChild(R))}});return aE.set(p,v),p}let aE=new WeakMap;const oE="5";var Qc;typeof window<"u"&&((Qc=window.__svelte??(window.__svelte={})).v??(Qc.v=new Set)).add(oE);yw();function uE(i){}const No={init:i=>{re.get(or).enableRouting()},handlePageErrorHandler:(i,n,r)=>{i&&i.timeout&&setTimeout(()=>{if(i.viewUrl)n.viewUrl=i.viewUrl,r.getEngine()._ui.updateMainContent(n,r);else if(i.errorFn)i.errorFn(n);else{console.warn("Something went wrong with a client! You will be redirected to another page.");const a=i.redirectPath||"/";r.navigation().navigate(a)}},i.timeout)},handleExternalLinkNavigation:i=>{if(i.url)if(i.sameWindow||!1)window.location.href=i.url;else{const r=window.open(i.url,"_blank","noopener noreferrer");r&&(r.opener=null,r.focus())}},async addSearchParamsFromClient(i,n,r){var h;const a=re.get(Wn),u=W.getCurrentPath(),l=await a.getCurrentNode(u.path),c={...i};if((h=l==null?void 0:l.clientPermissions)!=null&&h.urlParameters){const p={};Object.keys(l.clientPermissions.urlParameters).forEach(v=>{v in c&&l.clientPermissions.urlParameters[v].write===!0&&(p[v]=c[v],delete c[v])});for(const v in c)console.warn(`No permission to add the search param "${v}" to the url`);Object.keys(p).length>0&&r.routing().addSearchParams(p,n)}}},jt={luigi:{},init:i=>{console.log("Init communication..."),jt.luigi=i},addListeners:(i,n)=>{i.addEventListener(D.INITIALIZED,r=>{var a;(a=Me.luigi)==null||a.ux().hideLoadingIndicator(i.parentNode)}),i.addEventListener(D.NAVIGATION_REQUEST,r=>{const{link:a,preserveView:u,modal:l,newTab:c,withoutSync:h,preventContextUpdate:p,preventHistoryEntry:v,fromVirtualTreeRoot:R,fromContext:C,fromClosestContext:E}=r.detail,T={modalSettings:l,newTab:c,path:a,preserveView:u,preventContextUpdate:p,options:{fromVirtualTreeRoot:R,fromContext:C,fromClosestContext:E},preventHistoryEntry:v,withoutSync:h};re.get(Wn).handleNavigationRequest(T,r.callbackFn)}),i.addEventListener(D.RUNTIME_ERROR_HANDLING_REQUEST,r=>{var a,u;n.navigation().runTimeErrorHandler(((u=(a=r.payload)==null?void 0:a.data)==null?void 0:u.errorObj)||{})}),i.addEventListener(D.ALERT_REQUEST,r=>{Me.processAlert(r.payload,!0,i)}),i.addEventListener(D.SHOW_CONFIRMATION_MODAL_REQUEST,r=>{Me.handleConfirmationModalRequest(r.payload,i)}),i.addEventListener(D.SET_DOCUMENT_TITLE_REQUEST,r=>{var a;(a=jt.luigi.getEngine()._connector)==null||a.setDocumentTitle(r.detail.title)}),i.addEventListener(D.SHOW_LOADING_INDICATOR_REQUEST,r=>{var a;(a=jt.luigi.getEngine()._connector)==null||a.showLoadingIndicator(i.parentNode)}),i.addEventListener(D.HIDE_LOADING_INDICATOR_REQUEST,r=>{var a;(a=jt.luigi.getEngine()._connector)==null||a.hideLoadingIndicator(i.parentNode)}),i.addEventListener(D.ADD_BACKDROP_REQUEST,r=>{var a;(a=jt.luigi.getEngine()._connector)==null||a.addBackdrop()}),i.addEventListener(D.REMOVE_BACKDROP_REQUEST,r=>{var a;(a=jt.luigi.getEngine()._connector)==null||a.removeBackdrop()}),i.addEventListener(D.SET_DIRTY_STATUS_REQUEST,r=>{var a,u,l;Me.handleDirtyStatusRequest((u=(a=r.detail)==null?void 0:a.data)==null?void 0:u.dirty,(l=r.detail)==null?void 0:l.source)}),i.addEventListener(D.ADD_NODE_PARAMS_REQUEST,r=>{n.routing().addNodeParams(r.payload.data,r.payload.keepBrowserHistory)}),i.addEventListener(D.OPEN_USER_SETTINGS_REQUEST,r=>{var a;(a=jt.luigi.getEngine()._connector)==null||a.openUserSettings(r.detail)}),i.addEventListener(D.CLOSE_USER_SETTINGS_REQUEST,r=>{var a;(a=jt.luigi.getEngine()._connector)==null||a.closeUserSettings()}),i.addEventListener(D.ADD_SEARCH_PARAMS_REQUEST,r=>{No.addSearchParamsFromClient(r.detail.data,r.detail.keepBrowserHistory,n)}),i.addEventListener(D.UPDATE_MODAL_SETTINGS_REQUEST,r=>{Ye.updateModalSettings(r.payload.updatedModalSettings,r.payload.addHistoryEntry,n)}),i.addEventListener(D.SET_CURRENT_LOCALE_REQUEST,r=>{var a,u,l;n.i18n().setCurrentLocale((l=(u=(a=r.detail)==null?void 0:a.data)==null?void 0:u.data)==null?void 0:l.currentLocale,i)})}};class lE{constructor(){this._ui=Ye,this._comm=jt,this._ux=Me,this._routing=No}bootstrap(n){this._app=iE(uE,{target:document.body}),this._connector=n}init(){const n=window.Luigi;re.register(Vs,()=>new Vs),re.register(Wn,()=>new Wn(n)),re.register(kn,()=>new kn),re.register(or,()=>new or(n)),re.register(Kr,()=>new Kr),re.register(Fn,()=>new Fn(n)),n.theming()._init(),Ye.init(n),No.init(n),jt.init(n),Me.init(n)}}window.Luigi=new iw(new lE);
|
|
62
62
|
//# sourceMappingURL=luigi.js.map
|