import{$ as mi,$a as DE,$b as V,$c as qE,A as Ml,Aa as A,Ab as Hh,Ac as OE,B as Lh,Ba as F,Bb as j,Bc as NE,C as ls,Ca as mt,Cb as Me,Cc as Ce,D as vn,Da as Gn,Db as g,Dc as Lr,E as Ti,Ea as Te,Eb as Qe,Ec as Dv,F as $n,Fa as Mi,Fb as X,Fc as jE,G as yi,Ga as ye,Gb as FE,Gc as LE,H as Je,Ha as us,Hb as Ri,Hc as ps,I as lE,Ia as _E,Ib as nt,Ic as VE,J as pv,Ja as S,Jb as Cv,Jc as BE,K as _n,Ka as Q,Kb as Iv,Kc as ae,L as fo,La as Fl,Lb as Ev,Lc as zE,M as bo,Ma as yE,Mb as f,Mc as Ul,N as gv,Na as Pl,Nb as v,Nc as HE,O as gt,Oa as wE,Ob as C,Oc as UE,P as dE,Pa as bt,Pb as Ne,Pc as $E,Q as ds,Qa as lt,Qb as je,Qc as Vr,R as yn,Ra as Ol,Rb as Ha,Rc as Wh,S as vo,Sa as Bh,Sb as Y,Sc as Dt,T as fv,Ta as Na,Tb as Ai,Tc as Ht,U as uE,Ua as ja,Ub as E,Uc as rt,V as hE,Va as xE,Vb as x,Vc as GE,W as mE,Wa as CE,Wb as Ke,Wc as WE,X as pE,Xa as IE,Xb as Oe,Xc as qh,Y as bv,Ya as EE,Yb as wo,Yc as gs,Z as jr,Za as kE,Zb as Zt,Zc as Yh,_ as tn,_a as SE,_b as $,_c as J,a as q,aa as ce,ab as nn,ac as B,ad as Fi,b as st,ba as ft,bb as hs,bc as wi,bd as $l,c as sE,ca as gE,cb as La,cc as T,cd as YE,d as VF,da as Ye,db as TE,dc as ke,dd as Qh,e as Un,ea as Pt,eb as yo,ec as we,f as Nh,fa as D,fb as Nl,fc as Ll,g as We,ga as z,gb as jl,gc as Vl,gd as Kh,h as Ft,ha as fE,hb as p,hc as Bl,hd as Ua,i as aE,ia as Z,ib as l,ic as _e,j as ht,ja as vv,jb as Va,jc as oe,jd as Br,k as uv,ka as w,kb as Be,kc as Bt,kd as $a,l as hv,la as M,lb as ME,lc as zt,ld as Ga,m as ue,ma as Vh,mb as dt,mc as zl,n as wt,na as _v,nb as Ba,nc as kv,o as jh,oa as Rl,ob as ut,oc as be,p as bn,pa as U,pb as zh,pc as xe,q as Oa,qa as k,qb as he,qc as ms,r as Xt,ra as H,rb as yv,rc as qe,s as se,sa as G,sb as Ot,sc as Uh,t as cs,ta as Al,tb as wv,tc as $h,u as mv,ua as _o,ub as za,uc as Sv,v as cE,va as bE,vb as RE,vc as Hl,w as Di,wa as dr,wb as R,wc as Jt,x as Se,xa as ur,xb as at,xc as PE,y as Nr,ya as vE,yb as AE,yc as Gh,z as en,za as re,zb as xv,zc as ee}from"./chunk-C2X3ULK4.js";var xn=VF((br,F0)=>{"use strict";(function(n,e){typeof br=="object"&&typeof F0<"u"?F0.exports=e():typeof define=="function"&&define.amd?define(e):(n=typeof globalThis<"u"?globalThis:n||self,n.Sweetalert2=e())})(br,function(){"use strict";function n(m,c){(c==null||c>m.length)&&(c=m.length);for(var d=0,h=Array(c);d<c;d++)h[d]=m[d];return h}function e(m){if(Array.isArray(m))return m}function i(m){if(Array.isArray(m))return n(m)}function t(m,c,d){if(typeof m=="function"?m===c:m.has(c))return arguments.length<3?c:d;throw new TypeError("Private element is not present on this object")}function r(m){if(m===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m}function o(m,c,d){return c=W(c),Hn(m,Ve()?Reflect.construct(c,d||[],W(m).constructor):c.apply(m,d))}function s(m,c){if(c.has(m))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(m,c){if(!(m instanceof c))throw new TypeError("Cannot call a class as a function")}function u(m,c){return m.get(t(m,c))}function b(m,c,d){s(m,c),c.set(m,d)}function y(m,c,d){return m.set(t(m,c),d),d}function I(m,c,d){if(Ve())return Reflect.construct.apply(null,arguments);var h=[null];h.push.apply(h,c);var _=new(m.bind.apply(m,h));return _}function N(m,c){for(var d=0;d<c.length;d++){var h=c[d];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(m,wh(h.key),h)}}function K(m,c,d){return c&&N(m.prototype,c),Object.defineProperty(m,"prototype",{writable:!1}),m}function de(m,c){var d=typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(!d){if(Array.isArray(m)||(d=_l(m))||c){d&&(m=d);var h=0,_=function(){};return{s:_,n:function(){return h>=m.length?{done:!0}:{done:!1,value:m[h++]}},e:function(De){throw De},f:_}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var P,ne=!0,Fe=!1;return{s:function(){d=d.call(m)},n:function(){var De=d.next();return ne=De.done,De},e:function(De){Fe=!0,P=De},f:function(){try{ne||d.return==null||d.return()}finally{if(Fe)throw P}}}}function fe(){return fe=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(m,c,d){var h=vl(m,c);if(h){var _=Object.getOwnPropertyDescriptor(h,c);return _.get?_.get.call(arguments.length<3?m:d):_.value}},fe.apply(null,arguments)}function W(m){return W=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(c){return c.__proto__||Object.getPrototypeOf(c)},W(m)}function ge(m,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(c&&c.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),c&&sr(m,c)}function Ve(){try{var m=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ve=function(){return!!m})()}function Vt(m){if(typeof Symbol<"u"&&m[Symbol.iterator]!=null||m["@@iterator"]!=null)return Array.from(m)}function vt(m,c){var d=m==null?null:typeof Symbol<"u"&&m[Symbol.iterator]||m["@@iterator"];if(d!=null){var h,_,P,ne,Fe=[],De=!0,yt=!1;try{if(P=(d=d.call(m)).next,c!==0)for(;!(De=(h=P.call(d)).done)&&(Fe.push(h.value),Fe.length!==c);De=!0);}catch(Tl){yt=!0,_=Tl}finally{try{if(!De&&d.return!=null&&(ne=d.return(),Object(ne)!==ne))return}finally{if(yt)throw _}}return Fe}}function zn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fn(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hn(m,c){if(c&&(typeof c=="object"||typeof c=="function"))return c;if(c!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return r(m)}function sr(m,c){return sr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,h){return d.__proto__=h,d},sr(m,c)}function bl(m,c){return e(m)||vt(m,c)||_l(m,c)||zn()}function vl(m,c){for(;!{}.hasOwnProperty.call(m,c)&&(m=W(m))!==null;);return m}function _h(m){return i(m)||Vt(m)||_l(m)||fn()}function yh(m,c){if(typeof m!="object"||!m)return m;var d=m[Symbol.toPrimitive];if(d!==void 0){var h=d.call(m,c);if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(m)}function wh(m){var c=yh(m,"string");return typeof c=="symbol"?c:c+""}function Qt(m){"@babel/helpers - typeof";return Qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},Qt(m)}function _l(m,c){if(m){if(typeof m=="string")return n(m,c);var d={}.toString.call(m).slice(8,-1);return d==="Object"&&m.constructor&&(d=m.constructor.name),d==="Map"||d==="Set"?Array.from(m):d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?n(m,c):void 0}}var Gb=100,Ae={},xh=function(){Ae.previousActiveElement instanceof HTMLElement?(Ae.previousActiveElement.focus(),Ae.previousActiveElement=null):document.body&&document.body.focus()},Ch=function(c){return new Promise(function(d){if(!c)return d();var h=window.scrollX,_=window.scrollY;Ae.restoreFocusTimeout=setTimeout(function(){xh(),d()},Gb),window.scrollTo(h,_)})},Ih="swal2-",Wb=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"],O=Wb.reduce(function(m,c){return m[c]=Ih+c,m},{}),qb=["success","warning","info","question","error"],Sa=qb.reduce(function(m,c){return m[c]=Ih+c,m},{}),yl="SweetAlert2:",wl=function(c){return c.charAt(0).toUpperCase()+c.slice(1)},Ei=function(c){console.warn("".concat(yl," ").concat(Qt(c)==="object"?c.join(" "):c))},is=function(c){console.error("".concat(yl," ").concat(c))},a1=[],lR=function(c){a1.includes(c)||(a1.push(c),Ei(c))},c1=function(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;lR('"'.concat(c,'" is deprecated and will be removed in the next major release.').concat(d?' Use "'.concat(d,'" instead.'):""))},Eh=function(c){return typeof c=="function"?c():c},Yb=function(c){return c&&typeof c.toPromise=="function"},xl=function(c){return Yb(c)?c.toPromise():Promise.resolve(c)},Qb=function(c){return c&&Promise.resolve(c)===c},ki=function(){return document.body.querySelector(".".concat(O.container))},Cl=function(c){var d=ki();return d?d.querySelector(c):null},Xi=function(c){return Cl(".".concat(c))},Ze=function(){return Xi(O.popup)},Il=function(){return Xi(O.icon)},dR=function(){return Xi(O["icon-content"])},l1=function(){return Xi(O.title)},Kb=function(){return Xi(O["html-container"])},d1=function(){return Xi(O.image)},Xb=function(){return Xi(O["progress-steps"])},kh=function(){return Xi(O["validation-message"])},ar=function(){return Cl(".".concat(O.actions," .").concat(O.confirm))},Da=function(){return Cl(".".concat(O.actions," .").concat(O.cancel))},ns=function(){return Cl(".".concat(O.actions," .").concat(O.deny))},uR=function(){return Xi(O["input-label"])},Ta=function(){return Cl(".".concat(O.loader))},El=function(){return Xi(O.actions)},u1=function(){return Xi(O.footer)},Sh=function(){return Xi(O["timer-progress-bar"])},Zb=function(){return Xi(O.close)},hR=`
  a[href],
  area[href],
  input:not([disabled]),
  select:not([disabled]),
  textarea:not([disabled]),
  button:not([disabled]),
  iframe,
  object,
  embed,
  [tabindex="0"],
  [contenteditable],
  audio[controls],
  video[controls],
  summary
`,Jb=function(){var c=Ze();if(!c)return[];var d=c.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),h=Array.from(d).sort(function(ne,Fe){var De=parseInt(ne.getAttribute("tabindex")||"0"),yt=parseInt(Fe.getAttribute("tabindex")||"0");return De>yt?1:De<yt?-1:0}),_=c.querySelectorAll(hR),P=Array.from(_).filter(function(ne){return ne.getAttribute("tabindex")!=="-1"});return _h(new Set(h.concat(P))).filter(function(ne){return Si(ne)})},ev=function(){return Or(document.body,O.shown)&&!Or(document.body,O["toast-shown"])&&!Or(document.body,O["no-backdrop"])},Dh=function(){var c=Ze();return c?Or(c,O.toast):!1},mR=function(){var c=Ze();return c?c.hasAttribute("data-loading"):!1},Zi=function(c,d){if(c.textContent="",d){var h=new DOMParser,_=h.parseFromString(d,"text/html"),P=_.querySelector("head");P&&Array.from(P.childNodes).forEach(function(Fe){c.appendChild(Fe)});var ne=_.querySelector("body");ne&&Array.from(ne.childNodes).forEach(function(Fe){Fe instanceof HTMLVideoElement||Fe instanceof HTMLAudioElement?c.appendChild(Fe.cloneNode(!0)):c.appendChild(Fe)})}},Or=function(c,d){if(!d)return!1;for(var h=d.split(/\s+/),_=0;_<h.length;_++)if(!c.classList.contains(h[_]))return!1;return!0},pR=function(c,d){Array.from(c.classList).forEach(function(h){!Object.values(O).includes(h)&&!Object.values(Sa).includes(h)&&!Object.values(d.showClass||{}).includes(h)&&c.classList.remove(h)})},Ji=function(c,d,h){if(pR(c,d),!!d.customClass){var _=d.customClass[h];if(_){if(typeof _!="string"&&!_.forEach){Ei("Invalid type of customClass.".concat(h,'! Expected string or iterable object, got "').concat(Qt(_),'"'));return}Ge(c,_)}}},Th=function(c,d){if(!d)return null;switch(d){case"select":case"textarea":case"file":return c.querySelector(".".concat(O.popup," > .").concat(O[d]));case"checkbox":return c.querySelector(".".concat(O.popup," > .").concat(O.checkbox," input"));case"radio":return c.querySelector(".".concat(O.popup," > .").concat(O.radio," input:checked"))||c.querySelector(".".concat(O.popup," > .").concat(O.radio," input:first-child"));case"range":return c.querySelector(".".concat(O.popup," > .").concat(O.range," input"));default:return c.querySelector(".".concat(O.popup," > .").concat(O.input))}},h1=function(c){if(c.focus(),c.type!=="file"){var d=c.value;c.value="",c.value=d}},m1=function(c,d,h){!c||!d||(typeof d=="string"&&(d=d.split(/\s+/).filter(Boolean)),d.forEach(function(_){Array.isArray(c)?c.forEach(function(P){h?P.classList.add(_):P.classList.remove(_)}):h?c.classList.add(_):c.classList.remove(_)}))},Ge=function(c,d){m1(c,d,!0)},cr=function(c,d){m1(c,d,!1)},po=function(c,d){for(var h=Array.from(c.children),_=0;_<h.length;_++){var P=h[_];if(P instanceof HTMLElement&&Or(P,d))return P}},rs=function(c,d,h){h==="".concat(parseInt(h))&&(h=parseInt(h)),h||parseInt(h)===0?c.style.setProperty(d,typeof h=="number"?"".concat(h,"px"):h):c.style.removeProperty(d)},Kt=function(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"flex";c&&(c.style.display=d)},hi=function(c){c&&(c.style.display="none")},tv=function(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"block";c&&new MutationObserver(function(){kl(c,c.innerHTML,d)}).observe(c,{childList:!0,subtree:!0})},p1=function(c,d,h,_){var P=c.querySelector(d);P&&P.style.setProperty(h,_)},kl=function(c,d){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";d?Kt(c,h):hi(c)},Si=function(c){return!!(c&&(c.offsetWidth||c.offsetHeight||c.getClientRects().length))},gR=function(){return!Si(ar())&&!Si(ns())&&!Si(Da())},g1=function(c){return c.scrollHeight>c.clientHeight},f1=function(c){var d=window.getComputedStyle(c),h=parseFloat(d.getPropertyValue("animation-duration")||"0"),_=parseFloat(d.getPropertyValue("transition-duration")||"0");return h>0||_>0},iv=function(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=Sh();h&&Si(h)&&(d&&(h.style.transition="none",h.style.width="100%"),setTimeout(function(){h.style.transition="width ".concat(c/1e3,"s linear"),h.style.width="0%"},10))},fR=function(){var c=Sh();if(c){var d=parseInt(window.getComputedStyle(c).width);c.style.removeProperty("transition"),c.style.width="100%";var h=parseInt(window.getComputedStyle(c).width),_=d/h*100;c.style.width="".concat(_,"%")}},b1=function(){return typeof window>"u"||typeof document>"u"},bR=`
 <div aria-labelledby="`.concat(O.title,'" aria-describedby="').concat(O["html-container"],'" class="').concat(O.popup,`" tabindex="-1">
   <button type="button" class="`).concat(O.close,`"></button>
   <ul class="`).concat(O["progress-steps"],`"></ul>
   <div class="`).concat(O.icon,`"></div>
   <img class="`).concat(O.image,`" />
   <h2 class="`).concat(O.title,'" id="').concat(O.title,`"></h2>
   <div class="`).concat(O["html-container"],'" id="').concat(O["html-container"],`"></div>
   <input class="`).concat(O.input,'" id="').concat(O.input,`" />
   <input type="file" class="`).concat(O.file,`" />
   <div class="`).concat(O.range,`">
     <input type="range" />
     <output></output>
   </div>
   <select class="`).concat(O.select,'" id="').concat(O.select,`"></select>
   <div class="`).concat(O.radio,`"></div>
   <label class="`).concat(O.checkbox,`">
     <input type="checkbox" id="`).concat(O.checkbox,`" />
     <span class="`).concat(O.label,`"></span>
   </label>
   <textarea class="`).concat(O.textarea,'" id="').concat(O.textarea,`"></textarea>
   <div class="`).concat(O["validation-message"],'" id="').concat(O["validation-message"],`"></div>
   <div class="`).concat(O.actions,`">
     <div class="`).concat(O.loader,`"></div>
     <button type="button" class="`).concat(O.confirm,`"></button>
     <button type="button" class="`).concat(O.deny,`"></button>
     <button type="button" class="`).concat(O.cancel,`"></button>
   </div>
   <div class="`).concat(O.footer,`"></div>
   <div class="`).concat(O["timer-progress-bar-container"],`">
     <div class="`).concat(O["timer-progress-bar"],`"></div>
   </div>
 </div>
`).replace(/(^|\n)\s*/g,""),vR=function(){var c=ki();return c?(c.remove(),cr([document.documentElement,document.body],[O["no-backdrop"],O["toast-shown"],O["has-column"]]),!0):!1},os=function(){Ae.currentInstance.resetValidationMessage()},_R=function(){var c=Ze(),d=po(c,O.input),h=po(c,O.file),_=c.querySelector(".".concat(O.range," input")),P=c.querySelector(".".concat(O.range," output")),ne=po(c,O.select),Fe=c.querySelector(".".concat(O.checkbox," input")),De=po(c,O.textarea);d.oninput=os,h.onchange=os,ne.onchange=os,Fe.onchange=os,De.oninput=os,_.oninput=function(){os(),P.value=_.value},_.onchange=function(){os(),P.value=_.value}},yR=function(c){return typeof c=="string"?document.querySelector(c):c},wR=function(c){var d=Ze();d.setAttribute("role",c.toast?"alert":"dialog"),d.setAttribute("aria-live",c.toast?"polite":"assertive"),c.toast||d.setAttribute("aria-modal","true")},xR=function(c){window.getComputedStyle(c).direction==="rtl"&&Ge(ki(),O.rtl)},CR=function(c){var d=vR();if(b1()){is("SweetAlert2 requires document to initialize");return}var h=document.createElement("div");h.className=O.container,d&&Ge(h,O["no-transition"]),Zi(h,bR);var _=yR(c.target);_.appendChild(h),wR(c),xR(_),_R()},nv=function(c,d){c instanceof HTMLElement?d.appendChild(c):Qt(c)==="object"?IR(c,d):c&&Zi(d,c)},IR=function(c,d){c.jquery?ER(d,c):Zi(d,c.toString())},ER=function(c,d){if(c.textContent="",0 in d)for(var h=0;h in d;h++)c.appendChild(d[h].cloneNode(!0));else c.appendChild(d.cloneNode(!0))},ss=function(){if(b1())return!1;var m=document.createElement("div");return typeof m.style.webkitAnimation<"u"?"webkitAnimationEnd":typeof m.style.animation<"u"?"animationend":!1}(),kR=function(c,d){var h=El(),_=Ta();!h||!_||(!d.showConfirmButton&&!d.showDenyButton&&!d.showCancelButton?hi(h):Kt(h),Ji(h,d,"actions"),SR(h,_,d),Zi(_,d.loaderHtml||""),Ji(_,d,"loader"))};function SR(m,c,d){var h=ar(),_=ns(),P=Da();!h||!_||!P||(rv(h,"confirm",d),rv(_,"deny",d),rv(P,"cancel",d),DR(h,_,P,d),d.reverseButtons&&(d.toast?(m.insertBefore(P,h),m.insertBefore(_,h)):(m.insertBefore(P,c),m.insertBefore(_,c),m.insertBefore(h,c))))}function DR(m,c,d,h){if(!h.buttonsStyling){cr([m,c,d],O.styled);return}Ge([m,c,d],O.styled),h.confirmButtonColor&&(m.style.backgroundColor=h.confirmButtonColor,Ge(m,O["default-outline"])),h.denyButtonColor&&(c.style.backgroundColor=h.denyButtonColor,Ge(c,O["default-outline"])),h.cancelButtonColor&&(d.style.backgroundColor=h.cancelButtonColor,Ge(d,O["default-outline"]))}function rv(m,c,d){var h=wl(c);kl(m,d["show".concat(h,"Button")],"inline-block"),Zi(m,d["".concat(c,"ButtonText")]||""),m.setAttribute("aria-label",d["".concat(c,"ButtonAriaLabel")]||""),m.className=O[c],Ji(m,d,"".concat(c,"Button"))}var TR=function(c,d){var h=Zb();h&&(Zi(h,d.closeButtonHtml||""),Ji(h,d,"closeButton"),kl(h,d.showCloseButton),h.setAttribute("aria-label",d.closeButtonAriaLabel||""))},MR=function(c,d){var h=ki();h&&(RR(h,d.backdrop),AR(h,d.position),FR(h,d.grow),Ji(h,d,"container"))};function RR(m,c){typeof c=="string"?m.style.background=c:c||Ge([document.documentElement,document.body],O["no-backdrop"])}function AR(m,c){c&&(c in O?Ge(m,O[c]):(Ei('The "position" parameter is not valid, defaulting to "center"'),Ge(m,O.center)))}function FR(m,c){c&&Ge(m,O["grow-".concat(c)])}var ct={innerParams:new WeakMap,domCache:new WeakMap},PR=["input","file","range","select","radio","checkbox","textarea"],OR=function(c,d){var h=Ze();if(h){var _=ct.innerParams.get(c),P=!_||d.input!==_.input;PR.forEach(function(ne){var Fe=po(h,O[ne]);Fe&&(LR(ne,d.inputAttributes),Fe.className=O[ne],P&&hi(Fe))}),d.input&&(P&&NR(d),VR(d))}},NR=function(c){if(c.input){if(!kt[c.input]){is("Unexpected type of input! Expected ".concat(Object.keys(kt).join(" | "),', got "').concat(c.input,'"'));return}var d=v1(c.input);if(d){var h=kt[c.input](d,c);Kt(d),c.inputAutoFocus&&setTimeout(function(){h1(h)})}}},jR=function(c){for(var d=0;d<c.attributes.length;d++){var h=c.attributes[d].name;["id","type","value","style"].includes(h)||c.removeAttribute(h)}},LR=function(c,d){var h=Ze();if(h){var _=Th(h,c);if(_){jR(_);for(var P in d)_.setAttribute(P,d[P])}}},VR=function(c){if(c.input){var d=v1(c.input);d&&Ji(d,c,"input")}},ov=function(c,d){!c.placeholder&&d.inputPlaceholder&&(c.placeholder=d.inputPlaceholder)},Sl=function(c,d,h){if(h.inputLabel){var _=document.createElement("label"),P=O["input-label"];_.setAttribute("for",c.id),_.className=P,Qt(h.customClass)==="object"&&Ge(_,h.customClass.inputLabel),_.innerText=h.inputLabel,d.insertAdjacentElement("beforebegin",_)}},v1=function(c){var d=Ze();if(d)return po(d,O[c]||O.input)},Mh=function(c,d){["string","number"].includes(Qt(d))?c.value="".concat(d):Qb(d)||Ei('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(Qt(d),'"'))},kt={};kt.text=kt.email=kt.password=kt.number=kt.tel=kt.url=kt.search=kt.date=kt["datetime-local"]=kt.time=kt.week=kt.month=function(m,c){return Mh(m,c.inputValue),Sl(m,m,c),ov(m,c),m.type=c.input,m},kt.file=function(m,c){return Sl(m,m,c),ov(m,c),m},kt.range=function(m,c){var d=m.querySelector("input"),h=m.querySelector("output");return Mh(d,c.inputValue),d.type=c.input,Mh(h,c.inputValue),Sl(d,m,c),m},kt.select=function(m,c){if(m.textContent="",c.inputPlaceholder){var d=document.createElement("option");Zi(d,c.inputPlaceholder),d.value="",d.disabled=!0,d.selected=!0,m.appendChild(d)}return Sl(m,m,c),m},kt.radio=function(m){return m.textContent="",m},kt.checkbox=function(m,c){var d=Th(Ze(),"checkbox");d.value="1",d.checked=!!c.inputValue;var h=m.querySelector("span");return Zi(h,c.inputPlaceholder),d},kt.textarea=function(m,c){Mh(m,c.inputValue),ov(m,c),Sl(m,m,c);var d=function(_){return parseInt(window.getComputedStyle(_).marginLeft)+parseInt(window.getComputedStyle(_).marginRight)};return setTimeout(function(){if("MutationObserver"in window){var h=parseInt(window.getComputedStyle(Ze()).width),_=function(){if(document.body.contains(m)){var ne=m.offsetWidth+d(m);ne>h?Ze().style.width="".concat(ne,"px"):rs(Ze(),"width",c.width)}};new MutationObserver(_).observe(m,{attributes:!0,attributeFilter:["style"]})}}),m};var BR=function(c,d){var h=Kb();h&&(tv(h),Ji(h,d,"htmlContainer"),d.html?(nv(d.html,h),Kt(h,"block")):d.text?(h.textContent=d.text,Kt(h,"block")):hi(h),OR(c,d))},zR=function(c,d){var h=u1();h&&(tv(h),kl(h,d.footer,"block"),d.footer&&nv(d.footer,h),Ji(h,d,"footer"))},HR=function(c,d){var h=ct.innerParams.get(c),_=Il();if(_){if(h&&d.icon===h.icon){y1(_,d),_1(_,d);return}if(!d.icon&&!d.iconHtml){hi(_);return}if(d.icon&&Object.keys(Sa).indexOf(d.icon)===-1){is('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(d.icon,'"')),hi(_);return}Kt(_),y1(_,d),_1(_,d),Ge(_,d.showClass&&d.showClass.icon)}},_1=function(c,d){for(var h=0,_=Object.entries(Sa);h<_.length;h++){var P=bl(_[h],2),ne=P[0],Fe=P[1];d.icon!==ne&&cr(c,Fe)}Ge(c,d.icon&&Sa[d.icon]),WR(c,d),UR(),Ji(c,d,"icon")},UR=function(){var c=Ze();if(c)for(var d=window.getComputedStyle(c).getPropertyValue("background-color"),h=c.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),_=0;_<h.length;_++)h[_].style.backgroundColor=d},$R=`
  <div class="swal2-success-circular-line-left"></div>
  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
  <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
  <div class="swal2-success-circular-line-right"></div>
`,GR=`
  <span class="swal2-x-mark">
    <span class="swal2-x-mark-line-left"></span>
    <span class="swal2-x-mark-line-right"></span>
  </span>
`,y1=function(c,d){if(!(!d.icon&&!d.iconHtml)){var h=c.innerHTML,_="";if(d.iconHtml)_=w1(d.iconHtml);else if(d.icon==="success")_=$R,h=h.replace(/ style=".*?"/g,"");else if(d.icon==="error")_=GR;else if(d.icon){var P={question:"?",warning:"!",info:"i"};_=w1(P[d.icon])}h.trim()!==_.trim()&&Zi(c,_)}},WR=function(c,d){if(d.iconColor){c.style.color=d.iconColor,c.style.borderColor=d.iconColor;for(var h=0,_=[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"];h<_.length;h++){var P=_[h];p1(c,P,"background-color",d.iconColor)}p1(c,".swal2-success-ring","border-color",d.iconColor)}},w1=function(c){return'<div class="'.concat(O["icon-content"],'">').concat(c,"</div>")},qR=function(c,d){var h=d1();if(h){if(!d.imageUrl){hi(h);return}Kt(h,""),h.setAttribute("src",d.imageUrl),h.setAttribute("alt",d.imageAlt||""),rs(h,"width",d.imageWidth),rs(h,"height",d.imageHeight),h.className=O.image,Ji(h,d,"image")}},YR=function(c,d){var h=ki(),_=Ze();if(!(!h||!_)){if(d.toast){rs(h,"width",d.width),_.style.width="100%";var P=Ta();P&&_.insertBefore(P,Il())}else rs(_,"width",d.width);rs(_,"padding",d.padding),d.color&&(_.style.color=d.color),d.background&&(_.style.background=d.background),hi(kh()),QR(_,d)}},QR=function(c,d){var h=d.showClass||{};c.className="".concat(O.popup," ").concat(Si(c)?h.popup:""),d.toast?(Ge([document.documentElement,document.body],O["toast-shown"]),Ge(c,O.toast)):Ge(c,O.modal),Ji(c,d,"popup"),typeof d.customClass=="string"&&Ge(c,d.customClass),d.icon&&Ge(c,O["icon-".concat(d.icon)])},KR=function(c,d){var h=Xb();if(h){var _=d.progressSteps,P=d.currentProgressStep;if(!_||_.length===0||P===void 0){hi(h);return}Kt(h),h.textContent="",P>=_.length&&Ei("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),_.forEach(function(ne,Fe){var De=XR(ne);if(h.appendChild(De),Fe===P&&Ge(De,O["active-progress-step"]),Fe!==_.length-1){var yt=ZR(d);h.appendChild(yt)}})}},XR=function(c){var d=document.createElement("li");return Ge(d,O["progress-step"]),Zi(d,c),d},ZR=function(c){var d=document.createElement("li");return Ge(d,O["progress-step-line"]),c.progressStepsDistance&&rs(d,"width",c.progressStepsDistance),d},JR=function(c,d){var h=l1();h&&(tv(h),kl(h,d.title||d.titleText,"block"),d.title&&nv(d.title,h),d.titleText&&(h.innerText=d.titleText),Ji(h,d,"title"))},x1=function(c,d){YR(c,d),MR(c,d),KR(c,d),HR(c,d),qR(c,d),JR(c,d),TR(c,d),BR(c,d),kR(c,d),zR(c,d);var h=Ze();typeof d.didRender=="function"&&h&&d.didRender(h)},eA=function(){return Si(Ze())},C1=function(){var c;return(c=ar())===null||c===void 0?void 0:c.click()},tA=function(){var c;return(c=ns())===null||c===void 0?void 0:c.click()},iA=function(){var c;return(c=Da())===null||c===void 0?void 0:c.click()},Ma=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),I1=function(c){c.keydownTarget&&c.keydownHandlerAdded&&(c.keydownTarget.removeEventListener("keydown",c.keydownHandler,{capture:c.keydownListenerCapture}),c.keydownHandlerAdded=!1)},nA=function(c,d,h){I1(c),d.toast||(c.keydownHandler=function(_){return oA(d,_,h)},c.keydownTarget=d.keydownListenerCapture?window:Ze(),c.keydownListenerCapture=d.keydownListenerCapture,c.keydownTarget.addEventListener("keydown",c.keydownHandler,{capture:c.keydownListenerCapture}),c.keydownHandlerAdded=!0)},sv=function(c,d){var h,_=Jb();if(_.length){c=c+d,c===_.length?c=0:c===-1&&(c=_.length-1),_[c].focus();return}(h=Ze())===null||h===void 0||h.focus()},E1=["ArrowRight","ArrowDown"],rA=["ArrowLeft","ArrowUp"],oA=function(c,d,h){c&&(d.isComposing||d.keyCode===229||(c.stopKeydownPropagation&&d.stopPropagation(),d.key==="Enter"?sA(d,c):d.key==="Tab"?aA(d):[].concat(E1,rA).includes(d.key)?cA(d.key):d.key==="Escape"&&lA(d,c,h)))},sA=function(c,d){if(Eh(d.allowEnterKey)){var h=Th(Ze(),d.input);if(c.target&&h&&c.target instanceof HTMLElement&&c.target.outerHTML===h.outerHTML){if(["textarea","file"].includes(d.input))return;C1(),c.preventDefault()}}},aA=function(c){for(var d=c.target,h=Jb(),_=-1,P=0;P<h.length;P++)if(d===h[P]){_=P;break}c.shiftKey?sv(_,-1):sv(_,1),c.stopPropagation(),c.preventDefault()},cA=function(c){var d=El(),h=ar(),_=ns(),P=Da();if(!(!d||!h||!_||!P)){var ne=[h,_,P];if(!(document.activeElement instanceof HTMLElement&&!ne.includes(document.activeElement))){var Fe=E1.includes(c)?"nextElementSibling":"previousElementSibling",De=document.activeElement;if(De){for(var yt=0;yt<d.children.length;yt++){if(De=De[Fe],!De)return;if(De instanceof HTMLButtonElement&&Si(De))break}De instanceof HTMLButtonElement&&De.focus()}}}},lA=function(c,d,h){Eh(d.allowEscapeKey)&&(c.preventDefault(),h(Ma.esc))},Ra={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},dA=function(){var c=ki(),d=Array.from(document.body.children);d.forEach(function(h){h.contains(c)||(h.hasAttribute("aria-hidden")&&h.setAttribute("data-previous-aria-hidden",h.getAttribute("aria-hidden")||""),h.setAttribute("aria-hidden","true"))})},k1=function(){var c=Array.from(document.body.children);c.forEach(function(d){d.hasAttribute("data-previous-aria-hidden")?(d.setAttribute("aria-hidden",d.getAttribute("data-previous-aria-hidden")||""),d.removeAttribute("data-previous-aria-hidden")):d.removeAttribute("aria-hidden")})},S1=typeof window<"u"&&!!window.GestureEvent,uA=function(){if(S1&&!Or(document.body,O.iosfix)){var c=document.body.scrollTop;document.body.style.top="".concat(c*-1,"px"),Ge(document.body,O.iosfix),hA()}},hA=function(){var c=ki();if(c){var d;c.ontouchstart=function(h){d=mA(h)},c.ontouchmove=function(h){d&&(h.preventDefault(),h.stopPropagation())}}},mA=function(c){var d=c.target,h=ki(),_=Kb();return!h||!_||pA(c)||gA(c)?!1:d===h||!g1(h)&&d instanceof HTMLElement&&d.tagName!=="INPUT"&&d.tagName!=="TEXTAREA"&&!(g1(_)&&_.contains(d))},pA=function(c){return c.touches&&c.touches.length&&c.touches[0].touchType==="stylus"},gA=function(c){return c.touches&&c.touches.length>1},fA=function(){if(Or(document.body,O.iosfix)){var c=parseInt(document.body.style.top,10);cr(document.body,O.iosfix),document.body.style.top="",document.body.scrollTop=c*-1}},bA=function(){var c=document.createElement("div");c.className=O["scrollbar-measure"],document.body.appendChild(c);var d=c.getBoundingClientRect().width-c.clientWidth;return document.body.removeChild(c),d},Aa=null,vA=function(c){Aa===null&&(document.body.scrollHeight>window.innerHeight||c==="scroll")&&(Aa=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(Aa+bA(),"px"))},_A=function(){Aa!==null&&(document.body.style.paddingRight="".concat(Aa,"px"),Aa=null)};function D1(m,c,d,h){Dh()?M1(m,h):(Ch(d).then(function(){return M1(m,h)}),I1(Ae)),S1?(c.setAttribute("style","display:none !important"),c.removeAttribute("class"),c.innerHTML=""):c.remove(),ev()&&(_A(),fA(),k1()),yA()}function yA(){cr([document.documentElement,document.body],[O.shown,O["height-auto"],O["no-backdrop"],O["toast-shown"]])}function go(m){m=xA(m);var c=Ra.swalPromiseResolve.get(this),d=wA(this);this.isAwaitingPromise?m.isDismissed||(Dl(this),c(m)):d&&c(m)}var wA=function(c){var d=Ze();if(!d)return!1;var h=ct.innerParams.get(c);if(!h||Or(d,h.hideClass.popup))return!1;cr(d,h.showClass.popup),Ge(d,h.hideClass.popup);var _=ki();return cr(_,h.showClass.backdrop),Ge(_,h.hideClass.backdrop),CA(c,d,h),!0};function T1(m){var c=Ra.swalPromiseReject.get(this);Dl(this),c&&c(m)}var Dl=function(c){c.isAwaitingPromise&&(delete c.isAwaitingPromise,ct.innerParams.get(c)||c._destroy())},xA=function(c){return typeof c>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},c)},CA=function(c,d,h){var _=ki(),P=ss&&f1(d);typeof h.willClose=="function"&&h.willClose(d),P?IA(c,d,_,h.returnFocus,h.didClose):D1(c,_,h.returnFocus,h.didClose)},IA=function(c,d,h,_,P){ss&&(Ae.swalCloseEventFinishedCallback=D1.bind(null,c,h,_,P),d.addEventListener(ss,function(ne){ne.target===d&&(Ae.swalCloseEventFinishedCallback(),delete Ae.swalCloseEventFinishedCallback)}))},M1=function(c,d){setTimeout(function(){typeof d=="function"&&d.bind(c.params)(),c._destroy&&c._destroy()})},Fa=function(c){var d=Ze();if(d||new Oh,d=Ze(),!!d){var h=Ta();Dh()?hi(Il()):EA(d,c),Kt(h),d.setAttribute("data-loading","true"),d.setAttribute("aria-busy","true"),d.focus()}},EA=function(c,d){var h=El(),_=Ta();!h||!_||(!d&&Si(ar())&&(d=ar()),Kt(h),d&&(hi(d),_.setAttribute("data-button-to-replace",d.className),h.insertBefore(_,d)),Ge([c,h],O.loading))},kA=function(c,d){d.input==="select"||d.input==="radio"?RA(c,d):["text","email","number","tel","textarea"].some(function(h){return h===d.input})&&(Yb(d.inputValue)||Qb(d.inputValue))&&(Fa(ar()),AA(c,d))},SA=function(c,d){var h=c.getInput();if(!h)return null;switch(d.input){case"checkbox":return DA(h);case"radio":return TA(h);case"file":return MA(h);default:return d.inputAutoTrim?h.value.trim():h.value}},DA=function(c){return c.checked?1:0},TA=function(c){return c.checked?c.value:null},MA=function(c){return c.files&&c.files.length?c.getAttribute("multiple")!==null?c.files:c.files[0]:null},RA=function(c,d){var h=Ze();if(h){var _=function(ne){d.input==="select"?FA(h,R1(ne),d):d.input==="radio"&&PA(h,R1(ne),d)};Yb(d.inputOptions)||Qb(d.inputOptions)?(Fa(ar()),xl(d.inputOptions).then(function(P){c.hideLoading(),_(P)})):Qt(d.inputOptions)==="object"?_(d.inputOptions):is("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(Qt(d.inputOptions)))}},AA=function(c,d){var h=c.getInput();h&&(hi(h),xl(d.inputValue).then(function(_){h.value=d.input==="number"?"".concat(parseFloat(_)||0):"".concat(_),Kt(h),h.focus(),c.hideLoading()}).catch(function(_){is("Error in inputValue promise: ".concat(_)),h.value="",Kt(h),h.focus(),c.hideLoading()}))};function FA(m,c,d){var h=po(m,O.select);if(h){var _=function(ne,Fe,De){var yt=document.createElement("option");yt.value=De,Zi(yt,Fe),yt.selected=A1(De,d.inputValue),ne.appendChild(yt)};c.forEach(function(P){var ne=P[0],Fe=P[1];if(Array.isArray(Fe)){var De=document.createElement("optgroup");De.label=ne,De.disabled=!1,h.appendChild(De),Fe.forEach(function(yt){return _(De,yt[1],yt[0])})}else _(h,Fe,ne)}),h.focus()}}function PA(m,c,d){var h=po(m,O.radio);if(h){c.forEach(function(P){var ne=P[0],Fe=P[1],De=document.createElement("input"),yt=document.createElement("label");De.type="radio",De.name=O.radio,De.value=ne,A1(ne,d.inputValue)&&(De.checked=!0);var Tl=document.createElement("span");Zi(Tl,Fe),Tl.className=O.label,yt.appendChild(De),yt.appendChild(Tl),h.appendChild(yt)});var _=h.querySelectorAll("input");_.length&&_[0].focus()}}var R1=function m(c){var d=[];return c instanceof Map?c.forEach(function(h,_){var P=h;Qt(P)==="object"&&(P=m(P)),d.push([_,P])}):Object.keys(c).forEach(function(h){var _=c[h];Qt(_)==="object"&&(_=m(_)),d.push([h,_])}),d},A1=function(c,d){return!!d&&d.toString()===c.toString()},Rh=void 0,OA=function(c){var d=ct.innerParams.get(c);c.disableButtons(),d.input?F1(c,"confirm"):cv(c,!0)},NA=function(c){var d=ct.innerParams.get(c);c.disableButtons(),d.returnInputValueOnDeny?F1(c,"deny"):av(c,!1)},jA=function(c,d){c.disableButtons(),d(Ma.cancel)},F1=function(c,d){var h=ct.innerParams.get(c);if(!h.input){is('The "input" parameter is needed to be set when using returnInputValueOn'.concat(wl(d)));return}var _=c.getInput(),P=SA(c,h);h.inputValidator?LA(c,P,d):_&&!_.checkValidity()?(c.enableButtons(),c.showValidationMessage(h.validationMessage||_.validationMessage)):d==="deny"?av(c,P):cv(c,P)},LA=function(c,d,h){var _=ct.innerParams.get(c);c.disableInput();var P=Promise.resolve().then(function(){return xl(_.inputValidator(d,_.validationMessage))});P.then(function(ne){c.enableButtons(),c.enableInput(),ne?c.showValidationMessage(ne):h==="deny"?av(c,d):cv(c,d)})},av=function(c,d){var h=ct.innerParams.get(c||Rh);if(h.showLoaderOnDeny&&Fa(ns()),h.preDeny){c.isAwaitingPromise=!0;var _=Promise.resolve().then(function(){return xl(h.preDeny(d,h.validationMessage))});_.then(function(P){P===!1?(c.hideLoading(),Dl(c)):c.close({isDenied:!0,value:typeof P>"u"?d:P})}).catch(function(P){return O1(c||Rh,P)})}else c.close({isDenied:!0,value:d})},P1=function(c,d){c.close({isConfirmed:!0,value:d})},O1=function(c,d){c.rejectPromise(d)},cv=function(c,d){var h=ct.innerParams.get(c||Rh);if(h.showLoaderOnConfirm&&Fa(),h.preConfirm){c.resetValidationMessage(),c.isAwaitingPromise=!0;var _=Promise.resolve().then(function(){return xl(h.preConfirm(d,h.validationMessage))});_.then(function(P){Si(kh())||P===!1?(c.hideLoading(),Dl(c)):P1(c,typeof P>"u"?d:P)}).catch(function(P){return O1(c||Rh,P)})}else P1(c,d)};function Ah(){var m=ct.innerParams.get(this);if(m){var c=ct.domCache.get(this);hi(c.loader),Dh()?m.icon&&Kt(Il()):VA(c),cr([c.popup,c.actions],O.loading),c.popup.removeAttribute("aria-busy"),c.popup.removeAttribute("data-loading"),c.confirmButton.disabled=!1,c.denyButton.disabled=!1,c.cancelButton.disabled=!1}}var VA=function(c){var d=c.popup.getElementsByClassName(c.loader.getAttribute("data-button-to-replace"));d.length?Kt(d[0],"inline-block"):gR()&&hi(c.actions)};function N1(){var m=ct.innerParams.get(this),c=ct.domCache.get(this);return c?Th(c.popup,m.input):null}function j1(m,c,d){var h=ct.domCache.get(m);c.forEach(function(_){h[_].disabled=d})}function L1(m,c){var d=Ze();if(!(!d||!m))if(m.type==="radio")for(var h=d.querySelectorAll('[name="'.concat(O.radio,'"]')),_=0;_<h.length;_++)h[_].disabled=c;else m.disabled=c}function V1(){j1(this,["confirmButton","denyButton","cancelButton"],!1)}function B1(){j1(this,["confirmButton","denyButton","cancelButton"],!0)}function z1(){L1(this.getInput(),!1)}function H1(){L1(this.getInput(),!0)}function U1(m){var c=ct.domCache.get(this),d=ct.innerParams.get(this);Zi(c.validationMessage,m),c.validationMessage.className=O["validation-message"],d.customClass&&d.customClass.validationMessage&&Ge(c.validationMessage,d.customClass.validationMessage),Kt(c.validationMessage);var h=this.getInput();h&&(h.setAttribute("aria-invalid","true"),h.setAttribute("aria-describedby",O["validation-message"]),h1(h),Ge(h,O.inputerror))}function $1(){var m=ct.domCache.get(this);m.validationMessage&&hi(m.validationMessage);var c=this.getInput();c&&(c.removeAttribute("aria-invalid"),c.removeAttribute("aria-describedby"),cr(c,O.inputerror))}var Pa={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},BA=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],zA={allowEnterKey:void 0},HA=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],G1=function(c){return Object.prototype.hasOwnProperty.call(Pa,c)},W1=function(c){return BA.indexOf(c)!==-1},q1=function(c){return zA[c]},UA=function(c){G1(c)||Ei('Unknown parameter "'.concat(c,'"'))},$A=function(c){HA.includes(c)&&Ei('The parameter "'.concat(c,'" is incompatible with toasts'))},GA=function(c){var d=q1(c);d&&c1(c,d)},WA=function(c){c.backdrop===!1&&c.allowOutsideClick&&Ei('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(var d in c)UA(d),c.toast&&$A(d),GA(d)};function Y1(m){var c=Ze(),d=ct.innerParams.get(this);if(!c||Or(c,d.hideClass.popup)){Ei("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}var h=qA(m),_=Object.assign({},d,h);x1(this,_),ct.innerParams.set(this,_),Object.defineProperties(this,{params:{value:Object.assign({},this.params,m),writable:!1,enumerable:!0}})}var qA=function(c){var d={};return Object.keys(c).forEach(function(h){W1(h)?d[h]=c[h]:Ei("Invalid parameter to update: ".concat(h))}),d};function Q1(){var m=ct.domCache.get(this),c=ct.innerParams.get(this);if(!c){K1(this);return}m.popup&&Ae.swalCloseEventFinishedCallback&&(Ae.swalCloseEventFinishedCallback(),delete Ae.swalCloseEventFinishedCallback),typeof c.didDestroy=="function"&&c.didDestroy(),YA(this)}var YA=function(c){K1(c),delete c.params,delete Ae.keydownHandler,delete Ae.keydownTarget,delete Ae.currentInstance},K1=function(c){c.isAwaitingPromise?(lv(ct,c),c.isAwaitingPromise=!0):(lv(Ra,c),lv(ct,c),delete c.isAwaitingPromise,delete c.disableButtons,delete c.enableButtons,delete c.getInput,delete c.disableInput,delete c.enableInput,delete c.hideLoading,delete c.disableLoading,delete c.showValidationMessage,delete c.resetValidationMessage,delete c.close,delete c.closePopup,delete c.closeModal,delete c.closeToast,delete c.rejectPromise,delete c.update,delete c._destroy)},lv=function(c,d){for(var h in c)c[h].delete(d)},QA=Object.freeze({__proto__:null,_destroy:Q1,close:go,closeModal:go,closePopup:go,closeToast:go,disableButtons:B1,disableInput:H1,disableLoading:Ah,enableButtons:V1,enableInput:z1,getInput:N1,handleAwaitingPromise:Dl,hideLoading:Ah,rejectPromise:T1,resetValidationMessage:$1,showValidationMessage:U1,update:Y1}),KA=function(c,d,h){c.toast?XA(c,d,h):(JA(d),eF(d),tF(c,d,h))},XA=function(c,d,h){d.popup.onclick=function(){c&&(ZA(c)||c.timer||c.input)||h(Ma.close)}},ZA=function(c){return!!(c.showConfirmButton||c.showDenyButton||c.showCancelButton||c.showCloseButton)},Fh=!1,JA=function(c){c.popup.onmousedown=function(){c.container.onmouseup=function(d){c.container.onmouseup=function(){},d.target===c.container&&(Fh=!0)}}},eF=function(c){c.container.onmousedown=function(d){d.target===c.container&&d.preventDefault(),c.popup.onmouseup=function(h){c.popup.onmouseup=function(){},(h.target===c.popup||h.target instanceof HTMLElement&&c.popup.contains(h.target))&&(Fh=!0)}}},tF=function(c,d,h){d.container.onclick=function(_){if(Fh){Fh=!1;return}_.target===d.container&&Eh(c.allowOutsideClick)&&h(Ma.backdrop)}},iF=function(c){return Qt(c)==="object"&&c.jquery},X1=function(c){return c instanceof Element||iF(c)},nF=function(c){var d={};return Qt(c[0])==="object"&&!X1(c[0])?Object.assign(d,c[0]):["title","html","icon"].forEach(function(h,_){var P=c[_];typeof P=="string"||X1(P)?d[h]=P:P!==void 0&&is("Unexpected type of ".concat(h,'! Expected "string" or "Element", got ').concat(Qt(P)))}),d};function rF(){for(var m=this,c=arguments.length,d=new Array(c),h=0;h<c;h++)d[h]=arguments[h];return I(m,d)}function oF(m){var c=function(d){function h(){return a(this,h),o(this,h,arguments)}return ge(h,d),K(h,[{key:"_main",value:function(P,ne){return fe(W(h.prototype),"_main",this).call(this,P,Object.assign({},m,ne))}}])}(this);return c}var sF=function(){return Ae.timeout&&Ae.timeout.getTimerLeft()},Z1=function(){if(Ae.timeout)return fR(),Ae.timeout.stop()},J1=function(){if(Ae.timeout){var c=Ae.timeout.start();return iv(c),c}},aF=function(){var c=Ae.timeout;return c&&(c.running?Z1():J1())},cF=function(c){if(Ae.timeout){var d=Ae.timeout.increase(c);return iv(d,!0),d}},lF=function(){return!!(Ae.timeout&&Ae.timeout.isRunning())},eE=!1,dv={};function dF(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";dv[m]=this,eE||(document.body.addEventListener("click",uF),eE=!0)}var uF=function(c){for(var d=c.target;d&&d!==document;d=d.parentNode)for(var h in dv){var _=d.getAttribute(h);if(_){dv[h].fire({template:_});return}}},hF=Object.freeze({__proto__:null,argsToParams:nF,bindClickHandler:dF,clickCancel:iA,clickConfirm:C1,clickDeny:tA,enableLoading:Fa,fire:rF,getActions:El,getCancelButton:Da,getCloseButton:Zb,getConfirmButton:ar,getContainer:ki,getDenyButton:ns,getFocusableElements:Jb,getFooter:u1,getHtmlContainer:Kb,getIcon:Il,getIconContent:dR,getImage:d1,getInputLabel:uR,getLoader:Ta,getPopup:Ze,getProgressSteps:Xb,getTimerLeft:sF,getTimerProgressBar:Sh,getTitle:l1,getValidationMessage:kh,increaseTimer:cF,isDeprecatedParameter:q1,isLoading:mR,isTimerRunning:lF,isUpdatableParameter:W1,isValidParameter:G1,isVisible:eA,mixin:oF,resumeTimer:J1,showLoading:Fa,stopTimer:Z1,toggleTimer:aF}),mF=function(){function m(c,d){a(this,m),this.callback=c,this.remaining=d,this.running=!1,this.start()}return K(m,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}},{key:"increase",value:function(d){var h=this.running;return h&&this.stop(),this.remaining+=d,h&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}])}(),tE=["swal-title","swal-html","swal-footer"],pF=function(c){var d=typeof c.template=="string"?document.querySelector(c.template):c.template;if(!d)return{};var h=d.content;xF(h);var _=Object.assign(gF(h),fF(h),bF(h),vF(h),_F(h),yF(h),wF(h,tE));return _},gF=function(c){var d={},h=Array.from(c.querySelectorAll("swal-param"));return h.forEach(function(_){as(_,["name","value"]);var P=_.getAttribute("name"),ne=_.getAttribute("value");!P||!ne||(typeof Pa[P]=="boolean"?d[P]=ne!=="false":Qt(Pa[P])==="object"?d[P]=JSON.parse(ne):d[P]=ne)}),d},fF=function(c){var d={},h=Array.from(c.querySelectorAll("swal-function-param"));return h.forEach(function(_){var P=_.getAttribute("name"),ne=_.getAttribute("value");!P||!ne||(d[P]=new Function("return ".concat(ne))())}),d},bF=function(c){var d={},h=Array.from(c.querySelectorAll("swal-button"));return h.forEach(function(_){as(_,["type","color","aria-label"]);var P=_.getAttribute("type");!P||!["confirm","cancel","deny"].includes(P)||(d["".concat(P,"ButtonText")]=_.innerHTML,d["show".concat(wl(P),"Button")]=!0,_.hasAttribute("color")&&(d["".concat(P,"ButtonColor")]=_.getAttribute("color")),_.hasAttribute("aria-label")&&(d["".concat(P,"ButtonAriaLabel")]=_.getAttribute("aria-label")))}),d},vF=function(c){var d={},h=c.querySelector("swal-image");return h&&(as(h,["src","width","height","alt"]),h.hasAttribute("src")&&(d.imageUrl=h.getAttribute("src")||void 0),h.hasAttribute("width")&&(d.imageWidth=h.getAttribute("width")||void 0),h.hasAttribute("height")&&(d.imageHeight=h.getAttribute("height")||void 0),h.hasAttribute("alt")&&(d.imageAlt=h.getAttribute("alt")||void 0)),d},_F=function(c){var d={},h=c.querySelector("swal-icon");return h&&(as(h,["type","color"]),h.hasAttribute("type")&&(d.icon=h.getAttribute("type")),h.hasAttribute("color")&&(d.iconColor=h.getAttribute("color")),d.iconHtml=h.innerHTML),d},yF=function(c){var d={},h=c.querySelector("swal-input");h&&(as(h,["type","label","placeholder","value"]),d.input=h.getAttribute("type")||"text",h.hasAttribute("label")&&(d.inputLabel=h.getAttribute("label")),h.hasAttribute("placeholder")&&(d.inputPlaceholder=h.getAttribute("placeholder")),h.hasAttribute("value")&&(d.inputValue=h.getAttribute("value")));var _=Array.from(c.querySelectorAll("swal-input-option"));return _.length&&(d.inputOptions={},_.forEach(function(P){as(P,["value"]);var ne=P.getAttribute("value");if(ne){var Fe=P.innerHTML;d.inputOptions[ne]=Fe}})),d},wF=function(c,d){var h={};for(var _ in d){var P=d[_],ne=c.querySelector(P);ne&&(as(ne,[]),h[P.replace(/^swal-/,"")]=ne.innerHTML.trim())}return h},xF=function(c){var d=tE.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(c.children).forEach(function(h){var _=h.tagName.toLowerCase();d.includes(_)||Ei("Unrecognized element <".concat(_,">"))})},as=function(c,d){Array.from(c.attributes).forEach(function(h){d.indexOf(h.name)===-1&&Ei(['Unrecognized attribute "'.concat(h.name,'" on <').concat(c.tagName.toLowerCase(),">."),"".concat(d.length?"Allowed attributes are: ".concat(d.join(", ")):"To set the value, use HTML within the element.")])})},iE=10,CF=function(c){var d=ki(),h=Ze();typeof c.willOpen=="function"&&c.willOpen(h);var _=window.getComputedStyle(document.body),P=_.overflowY;SF(d,h,c),setTimeout(function(){EF(d,h)},iE),ev()&&(kF(d,c.scrollbarPadding,P),dA()),!Dh()&&!Ae.previousActiveElement&&(Ae.previousActiveElement=document.activeElement),typeof c.didOpen=="function"&&setTimeout(function(){return c.didOpen(h)}),cr(d,O["no-transition"])},IF=function m(c){var d=Ze();if(!(c.target!==d||!ss)){var h=ki();d.removeEventListener(ss,m),h.style.overflowY="auto"}},EF=function(c,d){ss&&f1(d)?(c.style.overflowY="hidden",d.addEventListener(ss,IF)):c.style.overflowY="auto"},kF=function(c,d,h){uA(),d&&h!=="hidden"&&vA(h),setTimeout(function(){c.scrollTop=0})},SF=function(c,d,h){Ge(c,h.showClass.backdrop),h.animation?(d.style.setProperty("opacity","0","important"),Kt(d,"grid"),setTimeout(function(){Ge(d,h.showClass.popup),d.style.removeProperty("opacity")},iE)):Kt(d,"grid"),Ge([document.documentElement,document.body],O.shown),h.heightAuto&&h.backdrop&&!h.toast&&Ge([document.documentElement,document.body],O["height-auto"])},nE={email:function(c,d){return/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(c)?Promise.resolve():Promise.resolve(d||"Invalid email address")},url:function(c,d){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(c)?Promise.resolve():Promise.resolve(d||"Invalid URL")}};function DF(m){m.inputValidator||(m.input==="email"&&(m.inputValidator=nE.email),m.input==="url"&&(m.inputValidator=nE.url))}function TF(m){(!m.target||typeof m.target=="string"&&!document.querySelector(m.target)||typeof m.target!="string"&&!m.target.appendChild)&&(Ei('Target parameter is not valid, defaulting to "body"'),m.target="body")}function MF(m){DF(m),m.showLoaderOnConfirm&&!m.preConfirm&&Ei(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
showLoaderOnConfirm should be used together with preConfirm, see usage example:
https://sweetalert2.github.io/#ajax-request`),TF(m),typeof m.title=="string"&&(m.title=m.title.split(`
`).join("<br />")),CR(m)}var lr,Ph=new WeakMap,St=function(){function m(){if(a(this,m),b(this,Ph,void 0),!(typeof window>"u")){lr=this;for(var c=arguments.length,d=new Array(c),h=0;h<c;h++)d[h]=arguments[h];var _=Object.freeze(this.constructor.argsToParams(d));this.params=_,this.isAwaitingPromise=!1,y(Ph,this,this._main(lr.params))}}return K(m,[{key:"_main",value:function(d){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(WA(Object.assign({},h,d)),Ae.currentInstance){var _=Ra.swalPromiseResolve.get(Ae.currentInstance),P=Ae.currentInstance.isAwaitingPromise;Ae.currentInstance._destroy(),P||_({isDismissed:!0}),ev()&&k1()}Ae.currentInstance=lr;var ne=AF(d,h);MF(ne),Object.freeze(ne),Ae.timeout&&(Ae.timeout.stop(),delete Ae.timeout),clearTimeout(Ae.restoreFocusTimeout);var Fe=FF(lr);return x1(lr,ne),ct.innerParams.set(lr,ne),RF(lr,Fe,ne)}},{key:"then",value:function(d){return u(Ph,this).then(d)}},{key:"finally",value:function(d){return u(Ph,this).finally(d)}}])}(),RF=function(c,d,h){return new Promise(function(_,P){var ne=function(De){c.close({isDismissed:!0,dismiss:De})};Ra.swalPromiseResolve.set(c,_),Ra.swalPromiseReject.set(c,P),d.confirmButton.onclick=function(){OA(c)},d.denyButton.onclick=function(){NA(c)},d.cancelButton.onclick=function(){jA(c,ne)},d.closeButton.onclick=function(){ne(Ma.close)},KA(h,d,ne),nA(Ae,h,ne),kA(c,h),CF(h),PF(Ae,h,ne),OF(d,h),setTimeout(function(){d.container.scrollTop=0})})},AF=function(c,d){var h=pF(c),_=Object.assign({},Pa,d,h,c);return _.showClass=Object.assign({},Pa.showClass,_.showClass),_.hideClass=Object.assign({},Pa.hideClass,_.hideClass),_.animation===!1&&(_.showClass={backdrop:"swal2-noanimation"},_.hideClass={}),_},FF=function(c){var d={popup:Ze(),container:ki(),actions:El(),confirmButton:ar(),denyButton:ns(),cancelButton:Da(),loader:Ta(),closeButton:Zb(),validationMessage:kh(),progressSteps:Xb()};return ct.domCache.set(c,d),d},PF=function(c,d,h){var _=Sh();hi(_),d.timer&&(c.timeout=new mF(function(){h("timer"),delete c.timeout},d.timer),d.timerProgressBar&&(Kt(_),Ji(_,d,"timerProgressBar"),setTimeout(function(){c.timeout&&c.timeout.running&&iv(d.timer)})))},OF=function(c,d){if(!d.toast){if(!Eh(d.allowEnterKey)){c1("allowEnterKey"),LF();return}NF(c)||jF(c,d)||sv(-1,1)}},NF=function(c){var d=c.popup.querySelectorAll("[autofocus]"),h=de(d),_;try{for(h.s();!(_=h.n()).done;){var P=_.value;if(P instanceof HTMLElement&&Si(P))return P.focus(),!0}}catch(ne){h.e(ne)}finally{h.f()}return!1},jF=function(c,d){return d.focusDeny&&Si(c.denyButton)?(c.denyButton.focus(),!0):d.focusCancel&&Si(c.cancelButton)?(c.cancelButton.focus(),!0):d.focusConfirm&&Si(c.confirmButton)?(c.confirmButton.focus(),!0):!1},LF=function(){document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){var rE=new Date,oE=localStorage.getItem("swal-initiation");oE?(rE.getTime()-Date.parse(oE))/(1e3*60*60*24)>3&&setTimeout(function(){document.body.style.pointerEvents="none";var m=document.createElement("audio");m.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",m.loop=!0,document.body.appendChild(m),setTimeout(function(){m.play().catch(function(){})},2500)},500):localStorage.setItem("swal-initiation","".concat(rE))}St.prototype.disableButtons=B1,St.prototype.enableButtons=V1,St.prototype.getInput=N1,St.prototype.disableInput=H1,St.prototype.enableInput=z1,St.prototype.hideLoading=Ah,St.prototype.disableLoading=Ah,St.prototype.showValidationMessage=U1,St.prototype.resetValidationMessage=$1,St.prototype.close=go,St.prototype.closePopup=go,St.prototype.closeModal=go,St.prototype.closeToast=go,St.prototype.rejectPromise=T1,St.prototype.update=Y1,St.prototype._destroy=Q1,Object.assign(St,hF),Object.keys(QA).forEach(function(m){St[m]=function(){if(lr&&lr[m]){var c;return(c=lr)[m].apply(c,arguments)}return null}}),St.DismissReason=Ma,St.version="11.12.3";var Oh=St;return Oh.default=Oh,Oh});typeof br<"u"&&br.Sweetalert2&&(br.swal=br.sweetAlert=br.Swal=br.SweetAlert=br.Sweetalert2);typeof document<"u"&&function(n,e){var i=n.createElement("style");if(n.getElementsByTagName("head")[0].appendChild(i),i.styleSheet)i.styleSheet.disabled||(i.styleSheet.cssText=e);else try{i.innerHTML=e}catch{i.innerText=e}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start     top            top-end" "center-start  center         center-end" "bottom-start  bottom-center  bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):focus-visible{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):focus-visible{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):focus-visible{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus-visible{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:0;padding:1em 1.6em .3em;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#facea8;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#9de0f6;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#c9dae1;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}')});var Wl=class{},ql=class{},hr=class n{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
`).forEach(i=>{let t=i.indexOf(":");if(t>0){let r=i.slice(0,t),o=r.toLowerCase(),s=i.slice(t+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((i,t)=>{this.setHeaderEntries(t,i)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([i,t])=>{this.setHeaderEntries(i,t)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let i=this.headers.get(e.toLowerCase());return i&&i.length>0?i[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,i){return this.clone({name:e,value:i,op:"a"})}set(e,i){return this.clone({name:e,value:i,op:"s"})}delete(e,i){return this.clone({name:e,value:i,op:"d"})}maybeSetNormalizedName(e,i){this.normalizedNames.has(i)||this.normalizedNames.set(i,e)}init(){this.lazyInit&&(this.lazyInit instanceof n?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(i=>{this.headers.set(i,e.headers.get(i)),this.normalizedNames.set(i,e.normalizedNames.get(i))})}clone(e){let i=new n;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof n?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}applyUpdate(e){let i=e.name.toLowerCase();switch(e.op){case"a":case"s":let t=e.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(e.name,i);let r=(e.op==="a"?this.headers.get(i):void 0)||[];r.push(...t),this.headers.set(i,r);break;case"d":let o=e.value;if(!o)this.headers.delete(i),this.normalizedNames.delete(i);else{let s=this.headers.get(i);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,s)}break}}setHeaderEntries(e,i){let t=(Array.isArray(i)?i:[i]).map(o=>o.toString()),r=e.toLowerCase();this.headers.set(r,t),this.maybeSetNormalizedName(e,r)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(i=>e(this.normalizedNames.get(i),this.headers.get(i)))}};var Rv=class{encodeKey(e){return QE(e)}encodeValue(e){return QE(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function HF(n,e){let i=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[s,a]=o==-1?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,o)),e.decodeValue(r.slice(o+1))],u=i.get(s)||[];u.push(a),i.set(s,u)}),i}var UF=/%(\d[a-f0-9])/gi,$F={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function QE(n){return encodeURIComponent(n).replace(UF,(e,i)=>$F[i]??e)}function Xh(n){return`${n}`}var Pi=class n{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Rv,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=HF(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(i=>{let t=e.fromObject[i],r=Array.isArray(t)?t.map(Xh):[Xh(t)];this.map.set(i,r)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let i=this.map.get(e);return i?i[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,i){return this.clone({param:e,value:i,op:"a"})}appendAll(e){let i=[];return Object.keys(e).forEach(t=>{let r=e[t];Array.isArray(r)?r.forEach(o=>{i.push({param:t,value:o,op:"a"})}):i.push({param:t,value:r,op:"a"})}),this.clone(i)}set(e,i){return this.clone({param:e,value:i,op:"s"})}delete(e,i){return this.clone({param:e,value:i,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let i=this.encoder.encodeKey(e);return this.map.get(e).map(t=>i+"="+this.encoder.encodeValue(t)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let i=new n({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(e),i}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let i=(e.op==="a"?this.map.get(e.param):void 0)||[];i.push(Xh(e.value)),this.map.set(e.param,i);break;case"d":if(e.value!==void 0){let t=this.map.get(e.param)||[],r=t.indexOf(Xh(e.value));r!==-1&&t.splice(r,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var Av=class{constructor(){this.map=new Map}set(e,i){return this.map.set(e,i),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function GF(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function KE(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function XE(n){return typeof Blob<"u"&&n instanceof Blob}function ZE(n){return typeof FormData<"u"&&n instanceof FormData}function WF(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}var Gl=class n{constructor(e,i,t,r){this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(GF(this.method)||r?(this.body=t!==void 0?t:null,o=r):o=t,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new hr,this.context??=new Av,!this.params)this.params=new Pi,this.urlWithParams=i;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=i;else{let a=i.indexOf("?"),u=a===-1?"?":a<i.length-1?"&":"";this.urlWithParams=i+u+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||KE(this.body)||XE(this.body)||ZE(this.body)||WF(this.body)?this.body:this.body instanceof Pi?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||ZE(this.body)?null:XE(this.body)?this.body.type||null:KE(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof Pi?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(e={}){let i=e.method||this.method,t=e.url||this.url,r=e.responseType||this.responseType,o=e.transferCache??this.transferCache,s=e.body!==void 0?e.body:this.body,a=e.withCredentials??this.withCredentials,u=e.reportProgress??this.reportProgress,b=e.headers||this.headers,y=e.params||this.params,I=e.context??this.context;return e.setHeaders!==void 0&&(b=Object.keys(e.setHeaders).reduce((N,K)=>N.set(K,e.setHeaders[K]),b)),e.setParams&&(y=Object.keys(e.setParams).reduce((N,K)=>N.set(K,e.setParams[K]),y)),new n(i,t,s,{params:y,headers:b,context:I,reportProgress:u,responseType:r,withCredentials:a,transferCache:o})}},Co=function(n){return n[n.Sent=0]="Sent",n[n.UploadProgress=1]="UploadProgress",n[n.ResponseHeader=2]="ResponseHeader",n[n.DownloadProgress=3]="DownloadProgress",n[n.Response=4]="Response",n[n.User=5]="User",n}(Co||{}),Yl=class{constructor(e,i=Ql.Ok,t="OK"){this.headers=e.headers||new hr,this.status=e.status!==void 0?e.status:i,this.statusText=e.statusText||t,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Jh=class n extends Yl{constructor(e={}){super(e),this.type=Co.ResponseHeader}clone(e={}){return new n({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},fs=class n extends Yl{constructor(e={}){super(e),this.type=Co.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new n({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},xo=class extends Yl{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},Ql=function(n){return n[n.Continue=100]="Continue",n[n.SwitchingProtocols=101]="SwitchingProtocols",n[n.Processing=102]="Processing",n[n.EarlyHints=103]="EarlyHints",n[n.Ok=200]="Ok",n[n.Created=201]="Created",n[n.Accepted=202]="Accepted",n[n.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",n[n.NoContent=204]="NoContent",n[n.ResetContent=205]="ResetContent",n[n.PartialContent=206]="PartialContent",n[n.MultiStatus=207]="MultiStatus",n[n.AlreadyReported=208]="AlreadyReported",n[n.ImUsed=226]="ImUsed",n[n.MultipleChoices=300]="MultipleChoices",n[n.MovedPermanently=301]="MovedPermanently",n[n.Found=302]="Found",n[n.SeeOther=303]="SeeOther",n[n.NotModified=304]="NotModified",n[n.UseProxy=305]="UseProxy",n[n.Unused=306]="Unused",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",n[n.BadRequest=400]="BadRequest",n[n.Unauthorized=401]="Unauthorized",n[n.PaymentRequired=402]="PaymentRequired",n[n.Forbidden=403]="Forbidden",n[n.NotFound=404]="NotFound",n[n.MethodNotAllowed=405]="MethodNotAllowed",n[n.NotAcceptable=406]="NotAcceptable",n[n.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",n[n.RequestTimeout=408]="RequestTimeout",n[n.Conflict=409]="Conflict",n[n.Gone=410]="Gone",n[n.LengthRequired=411]="LengthRequired",n[n.PreconditionFailed=412]="PreconditionFailed",n[n.PayloadTooLarge=413]="PayloadTooLarge",n[n.UriTooLong=414]="UriTooLong",n[n.UnsupportedMediaType=415]="UnsupportedMediaType",n[n.RangeNotSatisfiable=416]="RangeNotSatisfiable",n[n.ExpectationFailed=417]="ExpectationFailed",n[n.ImATeapot=418]="ImATeapot",n[n.MisdirectedRequest=421]="MisdirectedRequest",n[n.UnprocessableEntity=422]="UnprocessableEntity",n[n.Locked=423]="Locked",n[n.FailedDependency=424]="FailedDependency",n[n.TooEarly=425]="TooEarly",n[n.UpgradeRequired=426]="UpgradeRequired",n[n.PreconditionRequired=428]="PreconditionRequired",n[n.TooManyRequests=429]="TooManyRequests",n[n.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",n[n.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",n[n.InternalServerError=500]="InternalServerError",n[n.NotImplemented=501]="NotImplemented",n[n.BadGateway=502]="BadGateway",n[n.ServiceUnavailable=503]="ServiceUnavailable",n[n.GatewayTimeout=504]="GatewayTimeout",n[n.HttpVersionNotSupported=505]="HttpVersionNotSupported",n[n.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",n[n.InsufficientStorage=507]="InsufficientStorage",n[n.LoopDetected=508]="LoopDetected",n[n.NotExtended=510]="NotExtended",n[n.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",n}(Ql||{});function Tv(n,e){return{body:e,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials,transferCache:n.transferCache}}var Tt=(()=>{let e=class e{constructor(t){this.handler=t}request(t,r,o={}){let s;if(t instanceof Gl)s=t;else{let b;o.headers instanceof hr?b=o.headers:b=new hr(o.headers);let y;o.params&&(o.params instanceof Pi?y=o.params:y=new Pi({fromObject:o.params})),s=new Gl(t,r,o.body!==void 0?o.body:null,{headers:b,context:o.context,params:y,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=se(s).pipe(fo(b=>this.handler.handle(b)));if(t instanceof Gl||o.observe==="events")return a;let u=a.pipe(Je(b=>b instanceof fs));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return u.pipe(Se(b=>{if(b.body!==null&&!(b.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return b.body}));case"blob":return u.pipe(Se(b=>{if(b.body!==null&&!(b.body instanceof Blob))throw new Error("Response is not a Blob.");return b.body}));case"text":return u.pipe(Se(b=>{if(b.body!==null&&typeof b.body!="string")throw new Error("Response is not a string.");return b.body}));case"json":default:return u.pipe(Se(b=>b.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:new Pi().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,o={}){return this.request("PATCH",t,Tv(o,r))}post(t,r,o={}){return this.request("POST",t,Tv(o,r))}put(t,r,o={}){return this.request("PUT",t,Tv(o,r))}};e.\u0275fac=function(r){return new(r||e)(w(Wl))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let n=e;return n})(),qF=/^\)\]\}',?\n/,YF="X-Request-URL";function JE(n){if(n.url)return n.url;let e=YF.toLocaleLowerCase();return n.headers.get(e)}var Mv=(()=>{let e=class e{constructor(){this.fetchImpl=M(Fv,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=M(he)}handle(t){return new ht(r=>{let o=new AbortController;return this.doRequest(t,o.signal,r).then(Pv,s=>r.error(new xo({error:s}))),()=>o.abort()})}doRequest(t,r,o){return We(this,null,function*(){let s=this.createRequestInit(t),a;try{let de=this.fetchImpl(t.urlWithParams,q({signal:r},s));QF(de),o.next({type:Co.Sent}),a=yield de}catch(de){o.error(new xo({error:de,status:de.status??0,statusText:de.statusText,url:t.urlWithParams,headers:de.headers}));return}let u=new hr(a.headers),b=a.statusText,y=JE(a)??t.urlWithParams,I=a.status,N=null;if(t.reportProgress&&o.next(new Jh({headers:u,status:I,statusText:b,url:y})),a.body){let de=a.headers.get("content-length"),fe=[],W=a.body.getReader(),ge=0,Ve,Vt,vt=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>We(this,null,function*(){for(;;){let{done:fn,value:Hn}=yield W.read();if(fn)break;if(fe.push(Hn),ge+=Hn.length,t.reportProgress){Vt=t.responseType==="text"?(Vt??"")+(Ve??=new TextDecoder).decode(Hn,{stream:!0}):void 0;let sr=()=>o.next({type:Co.DownloadProgress,total:de?+de:void 0,loaded:ge,partialText:Vt});vt?vt.run(sr):sr()}}}));let zn=this.concatChunks(fe,ge);try{let fn=a.headers.get("Content-Type")??"";N=this.parseBody(t,zn,fn)}catch(fn){o.error(new xo({error:fn,headers:new hr(a.headers),status:a.status,statusText:a.statusText,url:JE(a)??t.urlWithParams}));return}}I===0&&(I=N?Ql.Ok:0),I>=200&&I<300?(o.next(new fs({body:N,headers:u,status:I,statusText:b,url:y})),o.complete()):o.error(new xo({error:N,headers:u,status:I,statusText:b,url:y}))})}parseBody(t,r,o){switch(t.responseType){case"json":let s=new TextDecoder().decode(r).replace(qF,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(t){let r={},o=t.withCredentials?"include":void 0;if(t.headers.forEach((s,a)=>r[s]=a.join(",")),r.Accept??="application/json, text/plain, */*",!r["Content-Type"]){let s=t.detectContentTypeHeader();s!==null&&(r["Content-Type"]=s)}return{body:t.serializeBody(),method:t.method,headers:r,credentials:o}}concatChunks(t,r){let o=new Uint8Array(r),s=0;for(let a of t)o.set(a,s),s+=a.length;return o}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let n=e;return n})(),Fv=class{};function Pv(){}function QF(n){n.then(Pv,Pv)}function KF(n,e){return e(n)}function XF(n,e,i){return(t,r)=>ur(i,()=>e(t,o=>n(o,r)))}var lk=new Z(""),dk=new Z(""),uk=new Z("");var ek=(()=>{let e=class e extends Wl{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=M(Hh);let o=M(uk,{optional:!0});this.backend=o??t}handle(t){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(lk),...this.injector.get(dk,[])]));this.chain=o.reduceRight((s,a)=>XF(s,a,this.injector),KF)}let r=this.pendingTasks.add();return this.chain(t,o=>this.backend.handle(o)).pipe(yn(()=>this.pendingTasks.remove(r)))}};e.\u0275fac=function(r){return new(r||e)(w(ql),w(dr))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let n=e;return n})();var ZF=/^\)\]\}',?\n/;function JF(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}var tk=(()=>{let e=class e{constructor(t){this.xhrFactory=t}handle(t){if(t.method==="JSONP")throw new Ye(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?Xt(r.\u0275loadImpl()):se(null)).pipe(mi(()=>new ht(s=>{let a=r.build();if(a.open(t.method,t.urlWithParams),t.withCredentials&&(a.withCredentials=!0),t.headers.forEach((W,ge)=>a.setRequestHeader(W,ge.join(","))),t.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){let W=t.detectContentTypeHeader();W!==null&&a.setRequestHeader("Content-Type",W)}if(t.responseType){let W=t.responseType.toLowerCase();a.responseType=W!=="json"?W:"text"}let u=t.serializeBody(),b=null,y=()=>{if(b!==null)return b;let W=a.statusText||"OK",ge=new hr(a.getAllResponseHeaders()),Ve=JF(a)||t.url;return b=new Jh({headers:ge,status:a.status,statusText:W,url:Ve}),b},I=()=>{let{headers:W,status:ge,statusText:Ve,url:Vt}=y(),vt=null;ge!==Ql.NoContent&&(vt=typeof a.response>"u"?a.responseText:a.response),ge===0&&(ge=vt?Ql.Ok:0);let zn=ge>=200&&ge<300;if(t.responseType==="json"&&typeof vt=="string"){let fn=vt;vt=vt.replace(ZF,"");try{vt=vt!==""?JSON.parse(vt):null}catch(Hn){vt=fn,zn&&(zn=!1,vt={error:Hn,text:vt})}}zn?(s.next(new fs({body:vt,headers:W,status:ge,statusText:Ve,url:Vt||void 0})),s.complete()):s.error(new xo({error:vt,headers:W,status:ge,statusText:Ve,url:Vt||void 0}))},N=W=>{let{url:ge}=y(),Ve=new xo({error:W,status:a.status||0,statusText:a.statusText||"Unknown Error",url:ge||void 0});s.error(Ve)},K=!1,de=W=>{K||(s.next(y()),K=!0);let ge={type:Co.DownloadProgress,loaded:W.loaded};W.lengthComputable&&(ge.total=W.total),t.responseType==="text"&&a.responseText&&(ge.partialText=a.responseText),s.next(ge)},fe=W=>{let ge={type:Co.UploadProgress,loaded:W.loaded};W.lengthComputable&&(ge.total=W.total),s.next(ge)};return a.addEventListener("load",I),a.addEventListener("error",N),a.addEventListener("timeout",N),a.addEventListener("abort",N),t.reportProgress&&(a.addEventListener("progress",de),u!==null&&a.upload&&a.upload.addEventListener("progress",fe)),a.send(u),s.next({type:Co.Sent}),()=>{a.removeEventListener("error",N),a.removeEventListener("abort",N),a.removeEventListener("load",I),a.removeEventListener("timeout",N),t.reportProgress&&(a.removeEventListener("progress",de),u!==null&&a.upload&&a.upload.removeEventListener("progress",fe)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(r){return new(r||e)(w(Qh))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let n=e;return n})(),hk=new Z(""),eP="XSRF-TOKEN",tP=new Z("",{providedIn:"root",factory:()=>eP}),iP="X-XSRF-TOKEN",nP=new Z("",{providedIn:"root",factory:()=>iP}),em=class{},rP=(()=>{let e=class e{constructor(t,r,o){this.doc=t,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Wh(t,this.cookieName),this.lastCookieString=t),this.lastToken}};e.\u0275fac=function(r){return new(r||e)(w(ae),w(bt),w(tP))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let n=e;return n})();function oP(n,e){let i=n.url.toLowerCase();if(!M(hk)||n.method==="GET"||n.method==="HEAD"||i.startsWith("http://")||i.startsWith("https://"))return e(n);let t=M(em).getToken(),r=M(nP);return t!=null&&!n.headers.has(r)&&(n=n.clone({headers:n.headers.set(r,t)})),e(n)}var mk=function(n){return n[n.Interceptors=0]="Interceptors",n[n.LegacyInterceptors=1]="LegacyInterceptors",n[n.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",n[n.NoXsrfProtection=3]="NoXsrfProtection",n[n.JsonpSupport=4]="JsonpSupport",n[n.RequestsMadeViaParent=5]="RequestsMadeViaParent",n[n.Fetch=6]="Fetch",n}(mk||{});function sP(n,e){return{\u0275kind:n,\u0275providers:e}}function pk(...n){let e=[Tt,tk,ek,{provide:Wl,useExisting:ek},{provide:ql,useExisting:tk},{provide:lk,useValue:oP,multi:!0},{provide:hk,useValue:!0},{provide:em,useClass:rP}];for(let i of n)e.push(...i.\u0275providers);return _o(e)}function gk(){return sP(mk.Fetch,[Mv,{provide:ql,useExisting:Mv},{provide:uk,useExisting:Mv}])}var ik="b",nk="h",rk="s",ok="st",sk="u",ak="rt",Zh=new Z(""),aP=["GET","HEAD"];function cP(n,e){let I=M(Zh),{isCacheActive:i}=I,t=sE(I,["isCacheActive"]),{transferCache:r,method:o}=n;if(!i||o==="POST"&&!t.includePostRequests&&!r||o!=="POST"&&!aP.includes(o)||r===!1||t.filter?.(n)===!1)return e(n);let s=M(Bh),a=dP(n),u=s.get(a,null),b=t.includeHeaders;if(typeof r=="object"&&r.includeHeaders&&(b=r.includeHeaders),u){let{[ik]:N,[ak]:K,[nk]:de,[rk]:fe,[ok]:W,[sk]:ge}=u,Ve=N;switch(K){case"arraybuffer":Ve=new TextEncoder().encode(N).buffer;break;case"blob":Ve=new Blob([N]);break}let Vt=new hr(de);return se(new fs({body:Ve,headers:Vt,status:fe,statusText:W,url:ge}))}let y=$l(M(bt));return e(n).pipe(ft(N=>{N instanceof fs&&y&&s.set(a,{[ik]:N.body,[nk]:lP(N.headers,b),[rk]:N.status,[ok]:N.statusText,[sk]:N.url||"",[ak]:n.responseType})}))}function lP(n,e){if(!e)return{};let i={};for(let t of e){let r=n.getAll(t);r!==null&&(i[t]=r)}return i}function ck(n){return[...n.keys()].sort().map(e=>`${e}=${n.getAll(e)}`).join("&")}function dP(n){let{params:e,method:i,responseType:t,url:r}=n,o=ck(e),s=n.serializeBody();s instanceof URLSearchParams?s=ck(s):typeof s!="string"&&(s="");let a=[i,t,r,s,o].join("|"),u=uP(a);return u}function uP(n){let e=0;for(let i of n)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483648,e.toString()}function fk(n){return[{provide:Zh,useFactory:()=>(zh("NgHttpTransferCache"),q({isCacheActive:!0},n))},{provide:dk,useValue:cP,multi:!0,deps:[Bh,Zh]},{provide:Hl,multi:!0,useFactory:()=>{let e=M(Jt),i=M(Zh);return()=>{PE(e).then(()=>{i.isCacheActive=!1})}}}]}var jv=class extends BE{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Lv=class n extends jv{static makeCurrent(){VE(new n)}onAndCancel(e,i,t){return e.addEventListener(i,t),()=>{e.removeEventListener(i,t)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=mP();return i==null?null:pP(i)}resetBaseElement(){Kl=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Wh(document.cookie,e)}},Kl=null;function mP(){return Kl=Kl||document.querySelector("base"),Kl?Kl.getAttribute("href"):null}function pP(n){return new URL(n,document.baseURI).pathname}var gP=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let n=e;return n})(),Vv=new Z(""),_k=(()=>{let e=class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(o=>{o.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,o){return this._findPluginFor(r).addEventListener(t,r,o)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(s=>s.supports(t)),!r)throw new Ye(5101,!1);return this._eventNameToPlugin.set(t,r),r}};e.\u0275fac=function(r){return new(r||e)(w(Vv),w(he))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let n=e;return n})(),tm=class{constructor(e){this._doc=e}},Ov="ng-app-id",yk=(()=>{let e=class e{constructor(t,r,o,s={}){this.doc=t,this.appId=r,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=$l(s),this.resetHostNodes()}addStyles(t){for(let r of t)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(t){for(let r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(let r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(let r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){let r=this.styleRef;r.get(t)?.elements?.forEach(o=>o.remove()),r.delete(t)}collectServerRenderedStyles(){let t=this.doc.head?.querySelectorAll(`style[${Ov}="${this.appId}"]`);if(t?.length){let r=new Map;return t.forEach(o=>{o.textContent!=null&&r.set(o.textContent,o)}),r}return null}changeUsageCount(t,r){let o=this.styleRef;if(o.has(t)){let s=o.get(t);return s.usage+=r,s.usage}return o.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){let o=this.styleNodesInDOM,s=o?.get(r);if(s?.parentNode===t)return o.delete(r),s.removeAttribute(Ov),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(Ov,this.appId),t.appendChild(a),a}}addStyleToHost(t,r){let o=this.getStyleElement(t,r),s=this.styleRef,a=s.get(r)?.elements;a?a.push(o):s.set(r,{elements:[o],usage:1})}resetHostNodes(){let t=this.hostNodes;t.clear(),t.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(w(ae),w(Pl),w(Ol,8),w(bt))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let n=e;return n})(),Nv={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Uv=/%COMP%/g,wk="%COMP%",fP=`_nghost-${wk}`,bP=`_ngcontent-${wk}`,vP=!0,_P=new Z("",{providedIn:"root",factory:()=>vP});function yP(n){return bP.replace(Uv,n)}function wP(n){return fP.replace(Uv,n)}function xk(n,e){return e.map(i=>i.replace(Uv,n))}var im=(()=>{let e=class e{constructor(t,r,o,s,a,u,b,y=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=u,this.ngZone=b,this.nonce=y,this.rendererByCompId=new Map,this.platformIsServer=$l(u),this.defaultRenderer=new Xl(t,a,b,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Rl.ShadowDom&&(r=st(q({},r),{encapsulation:Rl.Emulated}));let o=this.getOrCreateRenderer(t,r);return o instanceof nm?o.applyToHost(t):o instanceof Zl&&o.applyStyles(),o}getOrCreateRenderer(t,r){let o=this.rendererByCompId,s=o.get(r.id);if(!s){let a=this.doc,u=this.ngZone,b=this.eventManager,y=this.sharedStylesHost,I=this.removeStylesOnCompDestroy,N=this.platformIsServer;switch(r.encapsulation){case Rl.Emulated:s=new nm(b,y,r,this.appId,I,a,u,N);break;case Rl.ShadowDom:return new Bv(b,y,t,r,a,u,this.nonce,N);default:s=new Zl(b,y,r,I,a,u,N);break}o.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(w(_k),w(yk),w(Pl),w(_P),w(ae),w(bt),w(he),w(Ol))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let n=e;return n})(),Xl=class{constructor(e,i,t,r){this.eventManager=e,this.doc=i,this.ngZone=t,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS(Nv[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(bk(e)?e.content:e).appendChild(i)}insertBefore(e,i,t){e&&(bk(e)?e.content:e).insertBefore(i,t)}removeChild(e,i){e&&e.removeChild(i)}selectRootElement(e,i){let t=typeof e=="string"?this.doc.querySelector(e):e;if(!t)throw new Ye(-5104,!1);return i||(t.textContent=""),t}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,t,r){if(r){i=r+":"+i;let o=Nv[r];o?e.setAttributeNS(o,i,t):e.setAttribute(i,t)}else e.setAttribute(i,t)}removeAttribute(e,i,t){if(t){let r=Nv[t];r?e.removeAttributeNS(r,i):e.removeAttribute(`${t}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,t,r){r&(jl.DashCase|jl.Important)?e.style.setProperty(i,t,r&jl.Important?"important":""):e.style[i]=t}removeStyle(e,i,t){t&jl.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,t){e!=null&&(e[i]=t)}setValue(e,i){e.nodeValue=i}listen(e,i,t){if(typeof e=="string"&&(e=ps().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(t))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};function bk(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var Bv=class extends Xl{constructor(e,i,t,r,o,s,a,u){super(e,o,s,u),this.sharedStylesHost=i,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let b=xk(r.id,r.styles);for(let y of b){let I=document.createElement("style");a&&I.setAttribute("nonce",a),I.textContent=y,this.shadowRoot.appendChild(I)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,t){return super.insertBefore(this.nodeOrShadowRoot(e),i,t)}removeChild(e,i){return super.removeChild(this.nodeOrShadowRoot(e),i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Zl=class extends Xl{constructor(e,i,t,r,o,s,a,u){super(e,o,s,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=u?xk(u,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},nm=class extends Zl{constructor(e,i,t,r,o,s,a,u){let b=r+"-"+t.id;super(e,i,t,o,s,a,u,b),this.contentAttr=yP(b),this.hostAttr=wP(b)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let t=super.createElement(e,i);return super.setAttribute(t,this.contentAttr,""),t}},xP=(()=>{let e=class e extends tm{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,o){return t.addEventListener(r,o,!1),()=>this.removeEventListener(t,r,o)}removeEventListener(t,r,o){return t.removeEventListener(r,o)}};e.\u0275fac=function(r){return new(r||e)(w(ae))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let n=e;return n})(),vk=["alt","control","meta","shift"],CP={"\b":"Backspace","	":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},IP={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},EP=(()=>{let e=class e extends tm{constructor(t){super(t)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,r,o){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ps().onAndCancel(t,s.domEventName,a))}static parseEventName(t){let r=t.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(r.pop()),a="",u=r.indexOf("code");if(u>-1&&(r.splice(u,1),a="code."),vk.forEach(y=>{let I=r.indexOf(y);I>-1&&(r.splice(I,1),a+=y+".")}),a+=s,r.length!=0||s.length===0)return null;let b={};return b.domEventName=o,b.fullKey=a,b}static matchEventFullKeyCode(t,r){let o=CP[t.key]||t.key,s="";return r.indexOf("code.")>-1&&(o=t.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),vk.forEach(a=>{if(a!==o){let u=IP[a];u(t)&&(s+=a+".")}}),s+=o,s===r)}static eventCallback(t,r,o){return s=>{e.matchEventFullKeyCode(s,t)&&o.runGuarded(()=>r(s))}}static _normalizeKey(t){return t==="esc"?"escape":t}};e.\u0275fac=function(r){return new(r||e)(w(ae))},e.\u0275prov=D({token:e,factory:e.\u0275fac});let n=e;return n})();function Ck(n,e){return OE(q({rootComponent:n},kP(e)))}function kP(n){return{appProviders:[...RP,...n?.providers??[]],platformProviders:MP}}function SP(){Lv.makeCurrent()}function DP(){return new us}function TP(){return yE(document),document}var MP=[{provide:bt,useValue:qE},{provide:wE,useValue:SP,multi:!0},{provide:ae,useFactory:TP,deps:[]}];var RP=[{provide:bE,useValue:"root"},{provide:us,useFactory:DP,deps:[]},{provide:Vv,useClass:xP,multi:!0,deps:[ae,he,bt]},{provide:Vv,useClass:EP,multi:!0,deps:[ae]},im,yk,_k,{provide:Ba,useExisting:im},{provide:Qh,useClass:gP,deps:[]},[]];var Ik=(()=>{let e=class e{constructor(t){this._doc=t,this._dom=ps()}addTag(t,r=!1){return t?this._getOrCreateElement(t,r):null}addTags(t,r=!1){return t?t.reduce((o,s)=>(s&&o.push(this._getOrCreateElement(s,r)),o),[]):[]}getTag(t){return t&&this._doc.querySelector(`meta[${t}]`)||null}getTags(t){if(!t)return[];let r=this._doc.querySelectorAll(`meta[${t}]`);return r?[].slice.call(r):[]}updateTag(t,r){if(!t)return null;r=r||this._parseSelector(t);let o=this.getTag(r);return o?this._setMetaElementAttributes(t,o):this._getOrCreateElement(t,!0)}removeTag(t){this.removeTagElement(this.getTag(t))}removeTagElement(t){t&&this._dom.remove(t)}_getOrCreateElement(t,r=!1){if(!r){let a=this._parseSelector(t),u=this.getTags(a).filter(b=>this._containsAttributes(t,b))[0];if(u!==void 0)return u}let o=this._dom.createElement("meta");return this._setMetaElementAttributes(t,o),this._doc.getElementsByTagName("head")[0].appendChild(o),o}_setMetaElementAttributes(t,r){return Object.keys(t).forEach(o=>r.setAttribute(this._getMetaKeyMap(o),t[o])),r}_parseSelector(t){let r=t.name?"name":"property";return`${r}="${t[r]}"`}_containsAttributes(t,r){return Object.keys(t).every(o=>r.getAttribute(this._getMetaKeyMap(o))===t[o])}_getMetaKeyMap(t){return AP[t]||t}};e.\u0275fac=function(r){return new(r||e)(w(ae))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),AP={httpEquiv:"http-equiv"},Ek=(()=>{let e=class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}};e.\u0275fac=function(r){return new(r||e)(w(ae))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Io=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=D({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=w(FP),o},providedIn:"root"});let n=e;return n})(),FP=(()=>{let e=class e extends Io{constructor(t){super(),this._doc=t}sanitize(t,r){if(r==null)return null;switch(t){case nn.NONE:return r;case nn.HTML:return ja(r,"HTML")?Na(r):DE(this._doc,String(r)).toString();case nn.STYLE:return ja(r,"Style")?Na(r):r;case nn.SCRIPT:if(ja(r,"Script"))return Na(r);throw new Ye(5200,!1);case nn.URL:return ja(r,"URL")?Na(r):SE(String(r));case nn.RESOURCE_URL:if(ja(r,"ResourceURL"))return Na(r);throw new Ye(5201,!1);default:throw new Ye(5202,!1)}}bypassSecurityTrustHtml(t){return xE(t)}bypassSecurityTrustStyle(t){return CE(t)}bypassSecurityTrustScript(t){return IE(t)}bypassSecurityTrustUrl(t){return EE(t)}bypassSecurityTrustResourceUrl(t){return kE(t)}};e.\u0275fac=function(r){return new(r||e)(w(ae))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),zv=function(n){return n[n.NoHttpTransferCache=0]="NoHttpTransferCache",n[n.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",n}(zv||{});function kk(...n){let e=[],i=new Set,t=i.has(zv.HttpTransferCacheOptions);for(let{\u0275providers:r,\u0275kind:o}of n)i.add(o),r.length&&e.push(r);return _o([[],NE(),i.has(zv.NoHttpTransferCache)||t?[]:fk({}),e])}var Pe="primary",pd=Symbol("RouteTitle"),Qv=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i[0]:i}return null}getAll(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function Ka(n){return new Qv(n)}function PP(n,e,i){let t=i.path.split("/");if(t.length>n.length||i.pathMatch==="full"&&(e.hasChildren()||t.length<n.length))return null;let r={};for(let o=0;o<t.length;o++){let s=t[o],a=n[o];if(s.startsWith(":"))r[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:n.slice(0,t.length),posParams:r}}function OP(n,e){if(n.length!==e.length)return!1;for(let i=0;i<n.length;++i)if(!gr(n[i],e[i]))return!1;return!0}function gr(n,e){let i=n?Kv(n):void 0,t=e?Kv(e):void 0;if(!i||!t||i.length!=t.length)return!1;let r;for(let o=0;o<i.length;o++)if(r=i[o],!Ok(n[r],e[r]))return!1;return!0}function Kv(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}function Ok(n,e){if(Array.isArray(n)&&Array.isArray(e)){if(n.length!==e.length)return!1;let i=[...n].sort(),t=[...e].sort();return i.every((r,o)=>t[o]===r)}else return n===e}function Nk(n){return n.length>0?n[n.length-1]:null}function To(n){return mv(n)?n:$h(n)?Xt(Promise.resolve(n)):se(n)}var NP={exact:Lk,subset:Vk},jk={exact:jP,subset:LP,ignored:()=>!0};function Sk(n,e,i){return NP[i.paths](n.root,e.root,i.matrixParams)&&jk[i.queryParams](n.queryParams,e.queryParams)&&!(i.fragment==="exact"&&n.fragment!==e.fragment)}function jP(n,e){return gr(n,e)}function Lk(n,e,i){if(!vs(n.segments,e.segments)||!sm(n.segments,e.segments,i)||n.numberOfChildren!==e.numberOfChildren)return!1;for(let t in e.children)if(!n.children[t]||!Lk(n.children[t],e.children[t],i))return!1;return!0}function LP(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(i=>Ok(n[i],e[i]))}function Vk(n,e,i){return Bk(n,e,e.segments,i)}function Bk(n,e,i,t){if(n.segments.length>i.length){let r=n.segments.slice(0,i.length);return!(!vs(r,i)||e.hasChildren()||!sm(r,i,t))}else if(n.segments.length===i.length){if(!vs(n.segments,i)||!sm(n.segments,i,t))return!1;for(let r in e.children)if(!n.children[r]||!Vk(n.children[r],e.children[r],t))return!1;return!0}else{let r=i.slice(0,n.segments.length),o=i.slice(n.segments.length);return!vs(n.segments,r)||!sm(n.segments,r,t)||!n.children[Pe]?!1:Bk(n.children[Pe],e,o,t)}}function sm(n,e,i){return e.every((t,r)=>jk[i](n[r].parameters,t.parameters))}var Eo=class{constructor(e=new Xe([],{}),i={},t=null){this.root=e,this.queryParams=i,this.fragment=t}get queryParamMap(){return this._queryParamMap??=Ka(this.queryParams),this._queryParamMap}toString(){return zP.serialize(this)}},Xe=class{constructor(e,i){this.segments=e,this.children=i,this.parent=null,Object.values(i).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return am(this)}},bs=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap??=Ka(this.parameters),this._parameterMap}toString(){return Hk(this)}};function VP(n,e){return vs(n,e)&&n.every((i,t)=>gr(i.parameters,e[t].parameters))}function vs(n,e){return n.length!==e.length?!1:n.every((i,t)=>i.path===e[t].path)}function BP(n,e){let i=[];return Object.entries(n.children).forEach(([t,r])=>{t===Pe&&(i=i.concat(e(r,t)))}),Object.entries(n.children).forEach(([t,r])=>{t!==Pe&&(i=i.concat(e(r,t)))}),i}var gd=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=D({token:e,factory:()=>new od,providedIn:"root"});let n=e;return n})(),od=class{parse(e){let i=new Zv(e);return new Eo(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${Jl(e.root,!0)}`,t=$P(e.queryParams),r=typeof e.fragment=="string"?`#${HP(e.fragment)}`:"";return`${i}${t}${r}`}},zP=new od;function am(n){return n.segments.map(e=>Hk(e)).join("/")}function Jl(n,e){if(!n.hasChildren())return am(n);if(e){let i=n.children[Pe]?Jl(n.children[Pe],!1):"",t=[];return Object.entries(n.children).forEach(([r,o])=>{r!==Pe&&t.push(`${r}:${Jl(o,!1)}`)}),t.length>0?`${i}(${t.join("//")})`:i}else{let i=BP(n,(t,r)=>r===Pe?[Jl(n.children[Pe],!1)]:[`${r}:${Jl(t,!1)}`]);return Object.keys(n.children).length===1&&n.children[Pe]!=null?`${am(n)}/${i[0]}`:`${am(n)}/(${i.join("//")})`}}function zk(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function rm(n){return zk(n).replace(/%3B/gi,";")}function HP(n){return encodeURI(n)}function Xv(n){return zk(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function cm(n){return decodeURIComponent(n)}function Dk(n){return cm(n.replace(/\+/g,"%20"))}function Hk(n){return`${Xv(n.path)}${UP(n.parameters)}`}function UP(n){return Object.entries(n).map(([e,i])=>`;${Xv(e)}=${Xv(i)}`).join("")}function $P(n){let e=Object.entries(n).map(([i,t])=>Array.isArray(t)?t.map(r=>`${rm(i)}=${rm(r)}`).join("&"):`${rm(i)}=${rm(t)}`).filter(i=>i);return e.length?`?${e.join("&")}`:""}var GP=/^[^\/()?;#]+/;function Gv(n){let e=n.match(GP);return e?e[0]:""}var WP=/^[^\/()?;=#]+/;function qP(n){let e=n.match(WP);return e?e[0]:""}var YP=/^[^=?&#]+/;function QP(n){let e=n.match(YP);return e?e[0]:""}var KP=/^[^&#]+/;function XP(n){let e=n.match(KP);return e?e[0]:""}var Zv=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Xe([],{}):new Xe([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(t[Pe]=new Xe(e,i)),t}parseSegment(){let e=Gv(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new Ye(4009,!1);return this.capture(e),new bs(cm(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=qP(this.remaining);if(!i)return;this.capture(i);let t="";if(this.consumeOptional("=")){let r=Gv(this.remaining);r&&(t=r,this.capture(t))}e[cm(i)]=cm(t)}parseQueryParam(e){let i=QP(this.remaining);if(!i)return;this.capture(i);let t="";if(this.consumeOptional("=")){let s=XP(this.remaining);s&&(t=s,this.capture(t))}let r=Dk(i),o=Dk(t);if(e.hasOwnProperty(r)){let s=e[r];Array.isArray(s)||(s=[s],e[r]=s),s.push(o)}else e[r]=o}parseParens(e){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=Gv(this.remaining),r=this.remaining[t.length];if(r!=="/"&&r!==")"&&r!==";")throw new Ye(4010,!1);let o;t.indexOf(":")>-1?(o=t.slice(0,t.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=Pe);let s=this.parseChildren();i[o]=Object.keys(s).length===1?s[Pe]:new Xe([],s),this.consumeOptional("//")}return i}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new Ye(4011,!1)}};function Uk(n){return n.segments.length>0?new Xe([],{[Pe]:n}):n}function $k(n){let e={};for(let[t,r]of Object.entries(n.children)){let o=$k(r);if(t===Pe&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[t]=o)}let i=new Xe(n.segments,e);return ZP(i)}function ZP(n){if(n.numberOfChildren===1&&n.children[Pe]){let e=n.children[Pe];return new Xe(n.segments.concat(e.segments),e.children)}return n}function Xa(n){return n instanceof Eo}function JP(n,e,i=null,t=null){let r=Gk(n);return Wk(r,e,i,t)}function Gk(n){let e;function i(o){let s={};for(let u of o.children){let b=i(u);s[u.outlet]=b}let a=new Xe(o.url,s);return o===n&&(e=a),a}let t=i(n.root),r=Uk(t);return e??r}function Wk(n,e,i,t){let r=n;for(;r.parent;)r=r.parent;if(e.length===0)return Wv(r,r,r,i,t);let o=eO(e);if(o.toRoot())return Wv(r,r,new Xe([],{}),i,t);let s=tO(o,r,n),a=s.processChildren?id(s.segmentGroup,s.index,o.commands):Yk(s.segmentGroup,s.index,o.commands);return Wv(r,s.segmentGroup,a,i,t)}function lm(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function sd(n){return typeof n=="object"&&n!=null&&n.outlets}function Wv(n,e,i,t,r){let o={};t&&Object.entries(t).forEach(([u,b])=>{o[u]=Array.isArray(b)?b.map(y=>`${y}`):`${b}`});let s;n===e?s=i:s=qk(n,e,i);let a=Uk($k(s));return new Eo(a,o,r)}function qk(n,e,i){let t={};return Object.entries(n.children).forEach(([r,o])=>{o===e?t[r]=i:t[r]=qk(o,e,i)}),new Xe(n.segments,t)}var dm=class{constructor(e,i,t){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=t,e&&t.length>0&&lm(t[0]))throw new Ye(4003,!1);let r=t.find(sd);if(r&&r!==Nk(t))throw new Ye(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function eO(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new dm(!0,0,n);let e=0,i=!1,t=n.reduce((r,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([u,b])=>{a[u]=typeof b=="string"?b.split("/"):b}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?i=!0:a===".."?e++:a!=""&&r.push(a))}),r):[...r,o]},[]);return new dm(i,e,t)}var Ya=class{constructor(e,i,t){this.segmentGroup=e,this.processChildren=i,this.index=t}};function tO(n,e,i){if(n.isAbsolute)return new Ya(e,!0,0);if(!i)return new Ya(e,!1,NaN);if(i.parent===null)return new Ya(i,!0,0);let t=lm(n.commands[0])?0:1,r=i.segments.length-1+t;return iO(i,r,n.numberOfDoubleDots)}function iO(n,e,i){let t=n,r=e,o=i;for(;o>r;){if(o-=r,t=t.parent,!t)throw new Ye(4005,!1);r=t.segments.length}return new Ya(t,!1,r-o)}function nO(n){return sd(n[0])?n[0].outlets:{[Pe]:n}}function Yk(n,e,i){if(n??=new Xe([],{}),n.segments.length===0&&n.hasChildren())return id(n,e,i);let t=rO(n,e,i),r=i.slice(t.commandIndex);if(t.match&&t.pathIndex<n.segments.length){let o=new Xe(n.segments.slice(0,t.pathIndex),{});return o.children[Pe]=new Xe(n.segments.slice(t.pathIndex),n.children),id(o,0,r)}else return t.match&&r.length===0?new Xe(n.segments,{}):t.match&&!n.hasChildren()?Jv(n,e,i):t.match?id(n,0,r):Jv(n,e,i)}function id(n,e,i){if(i.length===0)return new Xe(n.segments,{});{let t=nO(i),r={};if(Object.keys(t).some(o=>o!==Pe)&&n.children[Pe]&&n.numberOfChildren===1&&n.children[Pe].segments.length===0){let o=id(n.children[Pe],e,i);return new Xe(n.segments,o.children)}return Object.entries(t).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(r[o]=Yk(n.children[o],e,s))}),Object.entries(n.children).forEach(([o,s])=>{t[o]===void 0&&(r[o]=s)}),new Xe(n.segments,r)}}function rO(n,e,i){let t=0,r=e,o={match:!1,pathIndex:0,commandIndex:0};for(;r<n.segments.length;){if(t>=i.length)return o;let s=n.segments[r],a=i[t];if(sd(a))break;let u=`${a}`,b=t<i.length-1?i[t+1]:null;if(r>0&&u===void 0)break;if(u&&b&&typeof b=="object"&&b.outlets===void 0){if(!Mk(u,b,s))return o;t+=2}else{if(!Mk(u,{},s))return o;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}function Jv(n,e,i){let t=n.segments.slice(0,e),r=0;for(;r<i.length;){let o=i[r];if(sd(o)){let u=oO(o.outlets);return new Xe(t,u)}if(r===0&&lm(i[0])){let u=n.segments[e];t.push(new bs(u.path,Tk(i[0]))),r++;continue}let s=sd(o)?o.outlets[Pe]:`${o}`,a=r<i.length-1?i[r+1]:null;s&&a&&lm(a)?(t.push(new bs(s,Tk(a))),r+=2):(t.push(new bs(s,{})),r++)}return new Xe(t,{})}function oO(n){let e={};return Object.entries(n).forEach(([i,t])=>{typeof t=="string"&&(t=[t]),t!==null&&(e[i]=Jv(new Xe([],{}),0,t))}),e}function Tk(n){let e={};return Object.entries(n).forEach(([i,t])=>e[i]=`${t}`),e}function Mk(n,e,i){return n==i.path&&gr(e,i.parameters)}var nd="imperative",ei=function(n){return n[n.NavigationStart=0]="NavigationStart",n[n.NavigationEnd=1]="NavigationEnd",n[n.NavigationCancel=2]="NavigationCancel",n[n.NavigationError=3]="NavigationError",n[n.RoutesRecognized=4]="RoutesRecognized",n[n.ResolveStart=5]="ResolveStart",n[n.ResolveEnd=6]="ResolveEnd",n[n.GuardsCheckStart=7]="GuardsCheckStart",n[n.GuardsCheckEnd=8]="GuardsCheckEnd",n[n.RouteConfigLoadStart=9]="RouteConfigLoadStart",n[n.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",n[n.ChildActivationStart=11]="ChildActivationStart",n[n.ChildActivationEnd=12]="ChildActivationEnd",n[n.ActivationStart=13]="ActivationStart",n[n.ActivationEnd=14]="ActivationEnd",n[n.Scroll=15]="Scroll",n[n.NavigationSkipped=16]="NavigationSkipped",n}(ei||{}),wn=class{constructor(e,i){this.id=e,this.url=i}},Za=class extends wn{constructor(e,i,t="imperative",r=null){super(e,i),this.type=ei.NavigationStart,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Wn=class extends wn{constructor(e,i,t){super(e,i),this.urlAfterRedirects=t,this.type=ei.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},on=function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n}(on||{}),um=function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n}(um||{}),ko=class extends wn{constructor(e,i,t,r){super(e,i),this.reason=t,this.code=r,this.type=ei.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},So=class extends wn{constructor(e,i,t,r){super(e,i),this.reason=t,this.code=r,this.type=ei.NavigationSkipped}},ad=class extends wn{constructor(e,i,t,r){super(e,i),this.error=t,this.target=r,this.type=ei.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},hm=class extends wn{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=ei.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},e0=class extends wn{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=ei.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},t0=class extends wn{constructor(e,i,t,r,o){super(e,i),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=o,this.type=ei.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},i0=class extends wn{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=ei.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},n0=class extends wn{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=ei.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},r0=class{constructor(e){this.route=e,this.type=ei.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},o0=class{constructor(e){this.route=e,this.type=ei.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},s0=class{constructor(e){this.snapshot=e,this.type=ei.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},a0=class{constructor(e){this.snapshot=e,this.type=ei.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},c0=class{constructor(e){this.snapshot=e,this.type=ei.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},l0=class{constructor(e){this.snapshot=e,this.type=ei.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},mm=class{constructor(e,i,t){this.routerEvent=e,this.position=i,this.anchor=t,this.type=ei.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},cd=class{},ld=class{constructor(e){this.url=e}};var d0=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new fd,this.attachRef=null}},fd=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(t,r){let o=this.getOrCreateContext(t);o.outlet=r,this.contexts.set(t,o)}onChildOutletDestroyed(t){let r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new d0,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),pm=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let i=this.pathFromRoot(e);return i.length>1?i[i.length-2]:null}children(e){let i=u0(e,this._root);return i?i.children.map(t=>t.value):[]}firstChild(e){let i=u0(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=h0(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return h0(e,this._root).map(i=>i.value)}};function u0(n,e){if(n===e.value)return e;for(let i of e.children){let t=u0(n,i);if(t)return t}return null}function h0(n,e){if(n===e.value)return[e];for(let i of e.children){let t=h0(n,i);if(t.length)return t.unshift(e),t}return[]}var rn=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};function qa(n){let e={};return n&&n.children.forEach(i=>e[i.value.outlet]=i),e}var gm=class extends pm{constructor(e,i){super(e),this.snapshot=i,x0(this,e)}toString(){return this.snapshot.toString()}};function Qk(n){let e=sO(n),i=new wt([new bs("",{})]),t=new wt({}),r=new wt({}),o=new wt({}),s=new wt(""),a=new Do(i,t,o,s,r,Pe,n,e.root);return a.snapshot=e.root,new gm(new rn(a,[]),e)}function sO(n){let e={},i={},t={},r="",o=new dd([],e,t,r,i,Pe,n,null,{});return new fm("",new rn(o,[]))}var Do=class{constructor(e,i,t,r,o,s,a,u){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=t,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(Se(b=>b[pd]))??se(void 0),this.url=e,this.params=i,this.queryParams=t,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(Se(e=>Ka(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Se(e=>Ka(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function w0(n,e,i="emptyOnly"){let t,{routeConfig:r}=n;return e!==null&&(i==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?t={params:q(q({},e.params),n.params),data:q(q({},e.data),n.data),resolve:q(q(q(q({},n.data),e.data),r?.data),n._resolvedData)}:t={params:q({},n.params),data:q({},n.data),resolve:q(q({},n.data),n._resolvedData??{})},r&&Xk(r)&&(t.resolve[pd]=r.title),t}var dd=class{get title(){return this.data?.[pd]}constructor(e,i,t,r,o,s,a,u,b){this.url=e,this.params=i,this.queryParams=t,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=b}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Ka(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Ka(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(t=>t.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${i}')`}},fm=class extends pm{constructor(e,i){super(i),this.url=e,x0(this,i)}toString(){return Kk(this._root)}};function x0(n,e){e.value._routerState=n,e.children.forEach(i=>x0(n,i))}function Kk(n){let e=n.children.length>0?` { ${n.children.map(Kk).join(", ")} } `:"";return`${n.value}${e}`}function qv(n){if(n.snapshot){let e=n.snapshot,i=n._futureSnapshot;n.snapshot=i,gr(e.queryParams,i.queryParams)||n.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&n.fragmentSubject.next(i.fragment),gr(e.params,i.params)||n.paramsSubject.next(i.params),OP(e.url,i.url)||n.urlSubject.next(i.url),gr(e.data,i.data)||n.dataSubject.next(i.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function m0(n,e){let i=gr(n.params,e.params)&&VP(n.url,e.url),t=!n.parent!=!e.parent;return i&&!t&&(!n.parent||m0(n.parent,e.parent))}function Xk(n){return typeof n.title=="string"||n.title===null}var C0=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=Pe,this.activateEvents=new Q,this.deactivateEvents=new Q,this.attachEvents=new Q,this.detachEvents=new Q,this.parentContexts=M(fd),this.location=M(Ot),this.changeDetector=M(ee),this.environmentInjector=M(dr),this.inputBinder=M(wm,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){let{firstChange:r,previousValue:o}=t.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Ye(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Ye(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Ye(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new Ye(4013,!1);this._activatedRoute=t;let o=this.location,a=t.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,b=new p0(t,u,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:b,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=G({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[re]});let n=e;return n})(),p0=class n{__ngOutletInjector(e){return new n(this.route,this.childContexts,e)}constructor(e,i,t){this.route=e,this.childContexts=i,this.parent=t}get(e,i){return e===Do?this.route:e===fd?this.childContexts:this.parent.get(e,i)}},wm=new Z(""),Rk=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:r}=t,o=Nr([r.queryParams,r.params,r.data]).pipe(mi(([s,a,u],b)=>(u=q(q(q({},s),a),u),b===0?se(u):Promise.resolve(u)))).subscribe(s=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(t);return}let a=LE(r.component);if(!a){this.unsubscribeFromRouteData(t);return}for(let{templateName:u}of a.inputs)t.activatedComponentRef.setInput(u,s[u])});this.outletDataSubscriptions.set(t,o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac});let n=e;return n})();function aO(n,e,i){let t=ud(n,e._root,i?i._root:void 0);return new gm(t,e)}function ud(n,e,i){if(i&&n.shouldReuseRoute(e.value,i.value.snapshot)){let t=i.value;t._futureSnapshot=e.value;let r=cO(n,e,i);return new rn(t,r)}else{if(n.shouldAttach(e.value)){let o=n.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>ud(n,a)),s}}let t=lO(e.value),r=e.children.map(o=>ud(n,o));return new rn(t,r)}}function cO(n,e,i){return e.children.map(t=>{for(let r of i.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return ud(n,t,r);return ud(n,t)})}function lO(n){return new Do(new wt(n.url),new wt(n.params),new wt(n.queryParams),new wt(n.fragment),new wt(n.data),n.outlet,n.component,n)}var Zk="ngNavigationCancelingError";function Jk(n,e){let{redirectTo:i,navigationBehaviorOptions:t}=Xa(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=eS(!1,on.Redirect);return r.url=i,r.navigationBehaviorOptions=t,r}function eS(n,e){let i=new Error(`NavigationCancelingError: ${n||""}`);return i[Zk]=!0,i.cancellationCode=e,i}function dO(n){return tS(n)&&Xa(n.url)}function tS(n){return!!n&&n[Zk]}var uO=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=k({type:e,selectors:[["ng-component"]],standalone:!0,features:[oe],decls:1,vars:0,template:function(r,o){r&1&&C(0,"router-outlet")},dependencies:[C0],encapsulation:2});let n=e;return n})();function hO(n,e){return n.providers&&!n._injector&&(n._injector=xv(n.providers,e,`Route: ${n.path}`)),n._injector??e}function I0(n){let e=n.children&&n.children.map(I0),i=e?st(q({},n),{children:e}):q({},n);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==Pe&&(i.component=uO),i}function fr(n){return n.outlet||Pe}function mO(n,e){let i=n.filter(t=>fr(t)===e);return i.push(...n.filter(t=>fr(t)!==e)),i}function bd(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let e=n.parent;e;e=e.parent){let i=e.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}var pO=(n,e,i,t)=>Se(r=>(new g0(e,r.targetRouterState,r.currentRouterState,i,t).activate(n),r)),g0=class{constructor(e,i,t,r,o){this.routeReuseStrategy=e,this.futureState=i,this.currState=t,this.forwardEvent=r,this.inputBindingEnabled=o}activate(e){let i=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,t,e),qv(this.futureState.root),this.activateChildRoutes(i,t,e)}deactivateChildRoutes(e,i,t){let r=qa(i);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,r[s],t),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,t)})}deactivateRoutes(e,i,t){let r=e.value,o=i?i.value:null;if(r===o)if(r.component){let s=t.getContext(r.outlet);s&&this.deactivateChildRoutes(e,i,s.children)}else this.deactivateChildRoutes(e,i,t);else o&&this.deactivateRouteAndItsChildren(i,t)}deactivateRouteAndItsChildren(e,i){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,i):this.deactivateRouteAndOutlet(e,i)}detachAndStoreRouteSubtree(e,i){let t=i.getContext(e.value.outlet),r=t&&e.value.component?t.children:i,o=qa(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(t&&t.outlet){let s=t.outlet.detach(),a=t.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,i){let t=i.getContext(e.value.outlet),r=t&&e.value.component?t.children:i,o=qa(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(e,i,t){let r=qa(i);e.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],t),this.forwardEvent(new l0(o.value.snapshot))}),e.children.length&&this.forwardEvent(new a0(e.value.snapshot))}activateRoutes(e,i,t){let r=e.value,o=i?i.value:null;if(qv(r),r===o)if(r.component){let s=t.getOrCreateContext(r.outlet);this.activateChildRoutes(e,i,s.children)}else this.activateChildRoutes(e,i,t);else if(r.component){let s=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),qv(a.route.value),this.activateChildRoutes(e,null,s.children)}else{let a=bd(r.snapshot);s.attachRef=null,s.route=r,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,t)}},bm=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Qa=class{constructor(e,i){this.component=e,this.route=i}};function gO(n,e,i){let t=n._root,r=e?e._root:null;return ed(t,r,i,[t.value])}function fO(n){let e=n.routeConfig?n.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:n,guards:e}}function ec(n,e){let i=Symbol(),t=e.get(n,i);return t===i?typeof n=="function"&&!fE(n)?n:e.get(n):t}function ed(n,e,i,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=qa(e);return n.children.forEach(s=>{bO(s,o[s.value.outlet],i,t.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>rd(a,i.getContext(s),r)),r}function bO(n,e,i,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=n.value,s=e?e.value:null,a=i?i.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=vO(s,o,o.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new bm(t)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?ed(n,e,a?a.children:null,t,r):ed(n,e,i,t,r),u&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Qa(a.outlet.component,s))}else s&&rd(e,a,r),r.canActivateChecks.push(new bm(t)),o.component?ed(n,null,a?a.children:null,t,r):ed(n,null,i,t,r);return r}function vO(n,e,i){if(typeof i=="function")return i(n,e);switch(i){case"pathParamsChange":return!vs(n.url,e.url);case"pathParamsOrQueryParamsChange":return!vs(n.url,e.url)||!gr(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!m0(n,e)||!gr(n.queryParams,e.queryParams);case"paramsChange":default:return!m0(n,e)}}function rd(n,e,i){let t=qa(n),r=n.value;Object.entries(t).forEach(([o,s])=>{r.component?e?rd(s,e.children.getContext(o),i):rd(s,null,i):rd(s,e,i)}),r.component?e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new Qa(e.outlet.component,r)):i.canDeactivateChecks.push(new Qa(null,r)):i.canDeactivateChecks.push(new Qa(null,r))}function vd(n){return typeof n=="function"}function _O(n){return typeof n=="boolean"}function yO(n){return n&&vd(n.canLoad)}function wO(n){return n&&vd(n.canActivate)}function xO(n){return n&&vd(n.canActivateChild)}function CO(n){return n&&vd(n.canDeactivate)}function IO(n){return n&&vd(n.canMatch)}function iS(n){return n instanceof cE||n?.name==="EmptyError"}var om=Symbol("INITIAL_VALUE");function Ja(){return mi(n=>Nr(n.map(e=>e.pipe(gt(1),tn(om)))).pipe(Se(e=>{for(let i of e)if(i!==!0){if(i===om)return om;if(i===!1||i instanceof Eo)return i}return!0}),Je(e=>e!==om),gt(1)))}function EO(n,e){return en(i=>{let{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=i;return s.length===0&&o.length===0?se(st(q({},i),{guardsResult:!0})):kO(s,t,r,n).pipe(en(a=>a&&_O(a)?SO(t,o,n,e):se(a)),Se(a=>st(q({},i),{guardsResult:a})))})}function kO(n,e,i,t){return Xt(n).pipe(en(r=>AO(r.component,r.route,i,e,t)),vo(r=>r!==!0,!0))}function SO(n,e,i,t){return Xt(e).pipe(fo(r=>Lh(TO(r.route.parent,t),DO(r.route,t),RO(n,r.path,i),MO(n,r.route,i))),vo(r=>r!==!0,!0))}function DO(n,e){return n!==null&&e&&e(new c0(n)),se(!0)}function TO(n,e){return n!==null&&e&&e(new s0(n)),se(!0)}function MO(n,e,i){let t=e.routeConfig?e.routeConfig.canActivate:null;if(!t||t.length===0)return se(!0);let r=t.map(o=>ls(()=>{let s=bd(e)??i,a=ec(o,s),u=wO(a)?a.canActivate(e,n):ur(s,()=>a(e,n));return To(u).pipe(vo())}));return se(r).pipe(Ja())}function RO(n,e,i){let t=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>fO(s)).filter(s=>s!==null).map(s=>ls(()=>{let a=s.guards.map(u=>{let b=bd(s.node)??i,y=ec(u,b),I=xO(y)?y.canActivateChild(t,n):ur(b,()=>y(t,n));return To(I).pipe(vo())});return se(a).pipe(Ja())}));return se(o).pipe(Ja())}function AO(n,e,i,t,r){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return se(!0);let s=o.map(a=>{let u=bd(e)??r,b=ec(a,u),y=CO(b)?b.canDeactivate(n,e,i,t):ur(u,()=>b(n,e,i,t));return To(y).pipe(vo())});return se(s).pipe(Ja())}function FO(n,e,i,t){let r=e.canLoad;if(r===void 0||r.length===0)return se(!0);let o=r.map(s=>{let a=ec(s,n),u=yO(a)?a.canLoad(e,i):ur(n,()=>a(e,i));return To(u)});return se(o).pipe(Ja(),nS(t))}function nS(n){return aE(ft(e=>{if(Xa(e))throw Jk(n,e)}),Se(e=>e===!0))}function PO(n,e,i,t){let r=e.canMatch;if(!r||r.length===0)return se(!0);let o=r.map(s=>{let a=ec(s,n),u=IO(a)?a.canMatch(e,i):ur(n,()=>a(e,i));return To(u)});return se(o).pipe(Ja(),nS(t))}var hd=class{constructor(e){this.segmentGroup=e||null}},vm=class extends Error{constructor(e){super(),this.urlTree=e}};function Wa(n){return cs(new hd(n))}function OO(n){return cs(new Ye(4e3,!1))}function NO(n){return cs(eS(!1,on.GuardRejected))}var f0=class{constructor(e,i){this.urlSerializer=e,this.urlTree=i}lineralizeSegments(e,i){let t=[],r=i.root;for(;;){if(t=t.concat(r.segments),r.numberOfChildren===0)return se(t);if(r.numberOfChildren>1||!r.children[Pe])return OO(e.redirectTo);r=r.children[Pe]}}applyRedirectCommands(e,i,t){let r=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,t);if(i.startsWith("/"))throw new vm(r);return r}applyRedirectCreateUrlTree(e,i,t,r){let o=this.createSegmentGroup(e,i.root,t,r);return new Eo(o,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(e,i){let t={};return Object.entries(e).forEach(([r,o])=>{if(typeof o=="string"&&o.startsWith(":")){let a=o.substring(1);t[r]=i[a]}else t[r]=o}),t}createSegmentGroup(e,i,t,r){let o=this.createSegments(e,i.segments,t,r),s={};return Object.entries(i.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(e,u,t,r)}),new Xe(o,s)}createSegments(e,i,t,r){return i.map(o=>o.path.startsWith(":")?this.findPosParam(e,o,r):this.findOrReturn(o,t))}findPosParam(e,i,t){let r=t[i.path.substring(1)];if(!r)throw new Ye(4001,!1);return r}findOrReturn(e,i){let t=0;for(let r of i){if(r.path===e.path)return i.splice(t),r;t++}return e}},b0={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function jO(n,e,i,t,r){let o=E0(n,e,i);return o.matched?(t=hO(e,t),PO(t,e,i,r).pipe(Se(s=>s===!0?o:q({},b0)))):se(o)}function E0(n,e,i){if(e.path==="**")return LO(i);if(e.path==="")return e.pathMatch==="full"&&(n.hasChildren()||i.length>0)?q({},b0):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||PP)(i,n,e);if(!r)return q({},b0);let o={};Object.entries(r.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=r.consumed.length>0?q(q({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function LO(n){return{matched:!0,parameters:n.length>0?Nk(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function Ak(n,e,i,t){return i.length>0&&zO(n,i,t)?{segmentGroup:new Xe(e,BO(t,new Xe(i,n.children))),slicedSegments:[]}:i.length===0&&HO(n,i,t)?{segmentGroup:new Xe(n.segments,VO(n,i,t,n.children)),slicedSegments:i}:{segmentGroup:new Xe(n.segments,n.children),slicedSegments:i}}function VO(n,e,i,t){let r={};for(let o of i)if(xm(n,e,o)&&!t[fr(o)]){let s=new Xe([],{});r[fr(o)]=s}return q(q({},t),r)}function BO(n,e){let i={};i[Pe]=e;for(let t of n)if(t.path===""&&fr(t)!==Pe){let r=new Xe([],{});i[fr(t)]=r}return i}function zO(n,e,i){return i.some(t=>xm(n,e,t)&&fr(t)!==Pe)}function HO(n,e,i){return i.some(t=>xm(n,e,t))}function xm(n,e,i){return(n.hasChildren()||e.length>0)&&i.pathMatch==="full"?!1:i.path===""}function UO(n,e,i,t){return fr(n)!==t&&(t===Pe||!xm(e,i,n))?!1:E0(e,n,i).matched}function $O(n,e,i){return e.length===0&&!n.children[i]}var v0=class{};function GO(n,e,i,t,r,o,s="emptyOnly"){return new _0(n,e,i,t,r,s,o).recognize()}var WO=31,_0=class{constructor(e,i,t,r,o,s,a){this.injector=e,this.configLoader=i,this.rootComponentType=t,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new f0(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new Ye(4002,`'${e.segmentGroup}'`)}recognize(){let e=Ak(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(Se(i=>{let t=new dd([],Object.freeze({}),Object.freeze(q({},this.urlTree.queryParams)),this.urlTree.fragment,{},Pe,this.rootComponentType,null,{}),r=new rn(t,i),o=new fm("",r),s=JP(t,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,Pe).pipe(_n(t=>{if(t instanceof vm)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof hd?this.noMatchError(t):t}))}inheritParamsAndData(e,i){let t=e.value,r=w0(t,i,this.paramsInheritanceStrategy);t.params=Object.freeze(r.params),t.data=Object.freeze(r.data),e.children.forEach(o=>this.inheritParamsAndData(o,t))}processSegmentGroup(e,i,t,r){return t.segments.length===0&&t.hasChildren()?this.processChildren(e,i,t):this.processSegment(e,i,t,t.segments,r,!0).pipe(Se(o=>o instanceof rn?[o]:[]))}processChildren(e,i,t){let r=[];for(let o of Object.keys(t.children))o==="primary"?r.unshift(o):r.push(o);return Xt(r).pipe(fo(o=>{let s=t.children[o],a=mO(i,o);return this.processSegmentGroup(e,a,s,o)}),mE((o,s)=>(o.push(...s),o)),gv(null),uE(),en(o=>{if(o===null)return Wa(t);let s=rS(o);return qO(s),se(s)}))}processSegment(e,i,t,r,o,s){return Xt(i).pipe(fo(a=>this.processSegmentAgainstRoute(a._injector??e,i,a,t,r,o,s).pipe(_n(u=>{if(u instanceof hd)return se(null);throw u}))),vo(a=>!!a),_n(a=>{if(iS(a))return $O(t,r,o)?se(new v0):Wa(t);throw a}))}processSegmentAgainstRoute(e,i,t,r,o,s,a){return UO(t,r,o,s)?t.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,t,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,t,o,s):Wa(r):Wa(r)}expandSegmentAgainstRouteUsingRedirect(e,i,t,r,o,s){let{matched:a,consumedSegments:u,positionalParamSegments:b,remainingSegments:y}=E0(i,r,o);if(!a)return Wa(i);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>WO&&(this.allowRedirects=!1));let I=this.applyRedirects.applyRedirectCommands(u,r.redirectTo,b);return this.applyRedirects.lineralizeSegments(r,I).pipe(en(N=>this.processSegment(e,t,i,N.concat(y),s,!1)))}matchSegmentAgainstRoute(e,i,t,r,o){let s=jO(i,t,r,e,this.urlSerializer);return t.path==="**"&&(i.children={}),s.pipe(mi(a=>a.matched?(e=t._injector??e,this.getChildConfig(e,t,r).pipe(mi(({routes:u})=>{let b=t._loadedInjector??e,{consumedSegments:y,remainingSegments:I,parameters:N}=a,K=new dd(y,N,Object.freeze(q({},this.urlTree.queryParams)),this.urlTree.fragment,QO(t),fr(t),t.component??t._loadedComponent??null,t,KO(t)),{segmentGroup:de,slicedSegments:fe}=Ak(i,y,I,u);if(fe.length===0&&de.hasChildren())return this.processChildren(b,u,de).pipe(Se(ge=>ge===null?null:new rn(K,ge)));if(u.length===0&&fe.length===0)return se(new rn(K,[]));let W=fr(t)===o;return this.processSegment(b,u,de,fe,W?Pe:o,!0).pipe(Se(ge=>new rn(K,ge instanceof rn?[ge]:[])))}))):Wa(i)))}getChildConfig(e,i,t){return i.children?se({routes:i.children,injector:e}):i.loadChildren?i._loadedRoutes!==void 0?se({routes:i._loadedRoutes,injector:i._loadedInjector}):FO(e,i,t,this.urlSerializer).pipe(en(r=>r?this.configLoader.loadChildren(e,i).pipe(ft(o=>{i._loadedRoutes=o.routes,i._loadedInjector=o.injector})):NO(i))):se({routes:[],injector:e})}};function qO(n){n.sort((e,i)=>e.value.outlet===Pe?-1:i.value.outlet===Pe?1:e.value.outlet.localeCompare(i.value.outlet))}function YO(n){let e=n.value.routeConfig;return e&&e.path===""}function rS(n){let e=[],i=new Set;for(let t of n){if(!YO(t)){e.push(t);continue}let r=e.find(o=>t.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...t.children),i.add(r)):e.push(t)}for(let t of i){let r=rS(t.children);e.push(new rn(t.value,r))}return e.filter(t=>!i.has(t))}function QO(n){return n.data||{}}function KO(n){return n.resolve||{}}function XO(n,e,i,t,r,o){return en(s=>GO(n,e,i,t,s.extractedUrl,r,o).pipe(Se(({state:a,tree:u})=>st(q({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function ZO(n,e){return en(i=>{let{targetSnapshot:t,guards:{canActivateChecks:r}}=i;if(!r.length)return se(i);let o=new Set(r.map(u=>u.route)),s=new Set;for(let u of o)if(!s.has(u))for(let b of oS(u))s.add(b);let a=0;return Xt(s).pipe(fo(u=>o.has(u)?JO(u,t,n,e):(u.data=w0(u,u.parent,n).resolve,se(void 0))),ft(()=>a++),fv(1),en(u=>a===s.size?se(i):bn))})}function oS(n){let e=n.children.map(i=>oS(i)).flat();return[n,...e]}function JO(n,e,i,t){let r=n.routeConfig,o=n._resolve;return r?.title!==void 0&&!Xk(r)&&(o[pd]=r.title),eN(o,n,e,t).pipe(Se(s=>(n._resolvedData=s,n.data=w0(n,n.parent,i).resolve,null)))}function eN(n,e,i,t){let r=Kv(n);if(r.length===0)return se({});let o={};return Xt(r).pipe(en(s=>tN(n[s],e,i,t).pipe(vo(),ft(a=>{o[s]=a}))),fv(1),dE(o),_n(s=>iS(s)?bn:cs(s)))}function tN(n,e,i,t){let r=bd(e)??t,o=ec(n,r),s=o.resolve?o.resolve(e,i):ur(r,()=>o(e,i));return To(s)}function Yv(n){return mi(e=>{let i=n(e);return i?Xt(i).pipe(Se(()=>e)):se(e)})}var sS=(()=>{let e=class e{buildTitle(t){let r,o=t.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(s=>s.outlet===Pe);return r}getResolvedTitleForRoute(t){return t.data[pd]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=D({token:e,factory:()=>M(iN),providedIn:"root"});let n=e;return n})(),iN=(()=>{let e=class e extends sS{constructor(t){super(),this.title=t}updateTitle(t){let r=this.buildTitle(t);r!==void 0&&this.title.setTitle(r)}};e.\u0275fac=function(r){return new(r||e)(w(Ek))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),_d=new Z("",{providedIn:"root",factory:()=>({})}),md=new Z(""),k0=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=M(Gh)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return se(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let r=To(t.loadComponent()).pipe(Se(aS),ft(s=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=s}),yn(()=>{this.componentLoaders.delete(t)})),o=new hv(r,()=>new ue).pipe(uv());return this.componentLoaders.set(t,o),o}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return se({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let s=nN(r,this.compiler,t,this.onLoadEndListener).pipe(yn(()=>{this.childrenLoaders.delete(r)})),a=new hv(s,()=>new ue).pipe(uv());return this.childrenLoaders.set(r,a),a}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function nN(n,e,i,t){return To(n.loadChildren()).pipe(Se(aS),en(r=>r instanceof AE||Array.isArray(r)?se(r):Xt(e.compileModuleAsync(r))),Se(r=>{t&&t(n);let o,s,a=!1;return Array.isArray(r)?(s=r,a=!0):(o=r.create(i).injector,s=o.get(md,[],{optional:!0,self:!0}).flat()),{routes:s.map(I0),injector:o}}))}function rN(n){return n&&typeof n=="object"&&"default"in n}function aS(n){return rN(n)?n.default:n}var S0=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=D({token:e,factory:()=>M(oN),providedIn:"root"});let n=e;return n})(),oN=(()=>{let e=class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),cS=new Z(""),lS=new Z("");function sN(n,e,i){let t=n.get(lS),r=n.get(ae);return n.get(he).runOutsideAngular(()=>{if(!r.startViewTransition||t.skipNextTransition)return t.skipNextTransition=!1,new Promise(b=>setTimeout(b));let o,s=new Promise(b=>{o=b}),a=r.startViewTransition(()=>(o(),aN(n))),{onViewTransitionCreated:u}=t;return u&&ur(n,()=>u({transition:a,from:e,to:i})),s})}function aN(n){return new Promise(e=>{yv(e,{injector:n})})}var D0=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ue,this.transitionAbortSubject=new ue,this.configLoader=M(k0),this.environmentInjector=M(dr),this.urlSerializer=M(gd),this.rootContexts=M(fd),this.location=M(Vr),this.inputBindingEnabled=M(wm,{optional:!0})!==null,this.titleStrategy=M(sS),this.options=M(_d,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=M(S0),this.createViewTransition=M(cS,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>se(void 0),this.rootComponentType=null;let t=o=>this.events.next(new r0(o)),r=o=>this.events.next(new o0(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=t}complete(){this.transitions?.complete()}handleNavigationRequest(t){let r=++this.navigationId;this.transitions?.next(st(q(q({},this.transitions.value),t),{id:r}))}setupNavigations(t,r,o){return this.transitions=new wt({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:nd,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Je(s=>s.id!==0),Se(s=>st(q({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),mi(s=>{let a=!1,u=!1;return se(s).pipe(mi(b=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",on.SupersededByNewNavigation),bn;this.currentTransition=s,this.currentNavigation={id:b.id,initialUrl:b.rawUrl,extractedUrl:b.extractedUrl,trigger:b.source,extras:b.extras,previousNavigation:this.lastSuccessfulNavigation?st(q({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let y=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),I=b.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!y&&I!=="reload"){let N="";return this.events.next(new So(b.id,this.urlSerializer.serialize(b.rawUrl),N,um.IgnoredSameUrlNavigation)),b.resolve(null),bn}if(this.urlHandlingStrategy.shouldProcessUrl(b.rawUrl))return se(b).pipe(mi(N=>{let K=this.transitions?.getValue();return this.events.next(new Za(N.id,this.urlSerializer.serialize(N.extractedUrl),N.source,N.restoredState)),K!==this.transitions?.getValue()?bn:Promise.resolve(N)}),XO(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),ft(N=>{s.targetSnapshot=N.targetSnapshot,s.urlAfterRedirects=N.urlAfterRedirects,this.currentNavigation=st(q({},this.currentNavigation),{finalUrl:N.urlAfterRedirects});let K=new hm(N.id,this.urlSerializer.serialize(N.extractedUrl),this.urlSerializer.serialize(N.urlAfterRedirects),N.targetSnapshot);this.events.next(K)}));if(y&&this.urlHandlingStrategy.shouldProcessUrl(b.currentRawUrl)){let{id:N,extractedUrl:K,source:de,restoredState:fe,extras:W}=b,ge=new Za(N,this.urlSerializer.serialize(K),de,fe);this.events.next(ge);let Ve=Qk(this.rootComponentType).snapshot;return this.currentTransition=s=st(q({},b),{targetSnapshot:Ve,urlAfterRedirects:K,extras:st(q({},W),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=K,se(s)}else{let N="";return this.events.next(new So(b.id,this.urlSerializer.serialize(b.extractedUrl),N,um.IgnoredByUrlHandlingStrategy)),b.resolve(null),bn}}),ft(b=>{let y=new e0(b.id,this.urlSerializer.serialize(b.extractedUrl),this.urlSerializer.serialize(b.urlAfterRedirects),b.targetSnapshot);this.events.next(y)}),Se(b=>(this.currentTransition=s=st(q({},b),{guards:gO(b.targetSnapshot,b.currentSnapshot,this.rootContexts)}),s)),EO(this.environmentInjector,b=>this.events.next(b)),ft(b=>{if(s.guardsResult=b.guardsResult,Xa(b.guardsResult))throw Jk(this.urlSerializer,b.guardsResult);let y=new t0(b.id,this.urlSerializer.serialize(b.extractedUrl),this.urlSerializer.serialize(b.urlAfterRedirects),b.targetSnapshot,!!b.guardsResult);this.events.next(y)}),Je(b=>b.guardsResult?!0:(this.cancelNavigationTransition(b,"",on.GuardRejected),!1)),Yv(b=>{if(b.guards.canActivateChecks.length)return se(b).pipe(ft(y=>{let I=new i0(y.id,this.urlSerializer.serialize(y.extractedUrl),this.urlSerializer.serialize(y.urlAfterRedirects),y.targetSnapshot);this.events.next(I)}),mi(y=>{let I=!1;return se(y).pipe(ZO(this.paramsInheritanceStrategy,this.environmentInjector),ft({next:()=>I=!0,complete:()=>{I||this.cancelNavigationTransition(y,"",on.NoDataFromResolver)}}))}),ft(y=>{let I=new n0(y.id,this.urlSerializer.serialize(y.extractedUrl),this.urlSerializer.serialize(y.urlAfterRedirects),y.targetSnapshot);this.events.next(I)}))}),Yv(b=>{let y=I=>{let N=[];I.routeConfig?.loadComponent&&!I.routeConfig._loadedComponent&&N.push(this.configLoader.loadComponent(I.routeConfig).pipe(ft(K=>{I.component=K}),Se(()=>{})));for(let K of I.children)N.push(...y(K));return N};return Nr(y(b.targetSnapshot.root)).pipe(gv(null),gt(1))}),Yv(()=>this.afterPreactivation()),mi(()=>{let{currentSnapshot:b,targetSnapshot:y}=s,I=this.createViewTransition?.(this.environmentInjector,b.root,y.root);return I?Xt(I).pipe(Se(()=>s)):se(s)}),Se(b=>{let y=aO(t.routeReuseStrategy,b.targetSnapshot,b.currentRouterState);return this.currentTransition=s=st(q({},b),{targetRouterState:y}),this.currentNavigation.targetRouterState=y,s}),ft(()=>{this.events.next(new cd)}),pO(this.rootContexts,t.routeReuseStrategy,b=>this.events.next(b),this.inputBindingEnabled),gt(1),ft({next:b=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Wn(b.id,this.urlSerializer.serialize(b.extractedUrl),this.urlSerializer.serialize(b.urlAfterRedirects))),this.titleStrategy?.updateTitle(b.targetRouterState.snapshot),b.resolve(!0)},complete:()=>{a=!0}}),ce(this.transitionAbortSubject.pipe(ft(b=>{throw b}))),yn(()=>{!a&&!u&&this.cancelNavigationTransition(s,"",on.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),_n(b=>{if(u=!0,tS(b))this.events.next(new ko(s.id,this.urlSerializer.serialize(s.extractedUrl),b.message,b.cancellationCode)),dO(b)?this.events.next(new ld(b.url)):s.resolve(!1);else{this.events.next(new ad(s.id,this.urlSerializer.serialize(s.extractedUrl),b,s.targetSnapshot??void 0));try{s.resolve(t.errorHandler(b))}catch(y){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(y)}}return bn}))}))}cancelNavigationTransition(t,r,o){let s=new ko(t.id,this.urlSerializer.serialize(t.extractedUrl),r,o);this.events.next(s),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function cN(n){return n!==nd}var lN=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=D({token:e,factory:()=>M(dN),providedIn:"root"});let n=e;return n})(),y0=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},dN=(()=>{let e=class e extends y0{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),dS=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=D({token:e,factory:()=>M(uN),providedIn:"root"});let n=e;return n})(),uN=(()=>{let e=class e extends dS{constructor(){super(...arguments),this.location=M(Vr),this.urlSerializer=M(gd),this.options=M(_d,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=M(S0),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Eo,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Qk(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(r=>{r.type==="popstate"&&t(r.url,r.state)})}handleRouterEvent(t,r){if(t instanceof Za)this.stateMemento=this.createStateMemento();else if(t instanceof So)this.rawUrlTree=r.initialUrl;else if(t instanceof hm){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(o,r)}}else t instanceof cd?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):t instanceof ko&&(t.code===on.GuardRejected||t.code===on.NoDataFromResolver)?this.restoreHistory(r):t instanceof ad?this.restoreHistory(r,!0):t instanceof Wn&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,r){let o=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let s=this.browserPageId,a=q(q({},r.extras.state),this.generateNgRouterState(r.id,s));this.location.replaceState(o,"",a)}else{let s=q(q({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(t,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===t.finalUrl&&s===0&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),td=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(td||{});function uS(n,e){n.events.pipe(Je(i=>i instanceof Wn||i instanceof ko||i instanceof ad||i instanceof So),Se(i=>i instanceof Wn||i instanceof So?td.COMPLETE:(i instanceof ko?i.code===on.Redirect||i.code===on.SupersededByNewNavigation:!1)?td.REDIRECTING:td.FAILED),Je(i=>i!==td.REDIRECTING),gt(1)).subscribe(()=>{e()})}function hN(n){throw n}var mN={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},pN={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Oi=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=M(Uh),this.stateManager=M(dS),this.options=M(_d,{optional:!0})||{},this.pendingTasks=M(Hh),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=M(D0),this.urlSerializer=M(gd),this.location=M(Vr),this.urlHandlingStrategy=M(S0),this._events=new ue,this.errorHandler=this.options.errorHandler||hN,this.navigated=!1,this.routeReuseStrategy=M(lN),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=M(md,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!M(wm,{optional:!0}),this.eventsSubscription=new Ft,this.isNgZoneEnabled=M(he)instanceof he&&he.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(r,s),r instanceof ko&&r.code!==on.Redirect&&r.code!==on.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Wn)this.navigated=!0;else if(r instanceof ld){let a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),u={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||cN(o.source)};this.scheduleNavigation(a,nd,null,u,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}fN(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),nd,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",r)},0)})}navigateToSyncWithBrowser(t,r,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let b=q({},o);delete b.navigationId,delete b.\u0275routerPageId,Object.keys(b).length!==0&&(s.state=b)}let u=this.parseUrl(t);this.scheduleNavigation(u,r,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(I0),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,r={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:u,preserveFragment:b}=r,y=b?this.currentUrlTree.fragment:a,I=null;switch(u){case"merge":I=q(q({},this.currentUrlTree.queryParams),s);break;case"preserve":I=this.currentUrlTree.queryParams;break;default:I=s||null}I!==null&&(I=this.removeEmptyProps(I));let N;try{let K=o?o.snapshot:this.routerState.snapshot.root;N=Gk(K)}catch{(typeof t[0]!="string"||!t[0].startsWith("/"))&&(t=[]),N=this.currentUrlTree.root}return Wk(N,t,I,y??null)}navigateByUrl(t,r={skipLocationChange:!1}){let o=Xa(t)?t:this.parseUrl(t),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,nd,null,r)}navigate(t,r={skipLocationChange:!1}){return gN(t),this.navigateByUrl(this.createUrlTree(t,r),r)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,r){let o;if(r===!0?o=q({},mN):r===!1?o=q({},pN):o=r,Xa(t))return Sk(this.currentUrlTree,t,o);let s=this.parseUrl(t);return Sk(this.currentUrlTree,s,o)}removeEmptyProps(t){return Object.entries(t).reduce((r,[o,s])=>(s!=null&&(r[o]=s),r),{})}scheduleNavigation(t,r,o,s,a){if(this.disposed)return Promise.resolve(!1);let u,b,y;a?(u=a.resolve,b=a.reject,y=a.promise):y=new Promise((N,K)=>{u=N,b=K});let I=this.pendingTasks.add();return uS(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(I))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:s,resolve:u,reject:b,promise:y,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),y.catch(N=>Promise.reject(N))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function gN(n){for(let e=0;e<n.length;e++)if(n[e]==null)throw new Ye(4008,!1)}function fN(n){return!(n instanceof cd)&&!(n instanceof ld)}var _m=(()=>{let e=class e{constructor(t,r,o,s,a,u){this.router=t,this.route=r,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=u,this.href=null,this.commands=null,this.onChanges=new ue,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let b=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=b==="a"||b==="area",this.isAnchorElement?this.subscription=t.events.subscribe(y=>{y instanceof Wn&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){t!=null?(this.commands=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(t,r,o,s,a){let u=this.urlTree;if(u===null||this.isAnchorElement&&(t!==0||r||o||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let b={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(u,b),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let t=this.urlTree;this.href=t!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t)):null;let r=this.href===null?null:TE(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(t,r){let o=this.renderer,s=this.el.nativeElement;r!==null?o.setAttribute(s,t,r):o.removeAttribute(s,t)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(r){return new(r||e)(l(Oi),l(Do),Mi("tabindex"),l(ut),l(S),l(Ul))},e.\u0275dir=G({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&&E("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&Me("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[U.HasDecoratorInputTransform,"preserveFragment","preserveFragment",Ce],skipLocationChange:[U.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",Ce],replaceUrl:[U.HasDecoratorInputTransform,"replaceUrl","replaceUrl",Ce],routerLink:"routerLink"},standalone:!0,features:[at,re]});let n=e;return n})(),hS=(()=>{let e=class e{get isActive(){return this._isActive}constructor(t,r,o,s,a){this.router=t,this.element=r,this.renderer=o,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new Q,this.routerEventsSubscription=t.events.subscribe(u=>{u instanceof Wn&&this.update()})}ngAfterContentInit(){se(this.links.changes,se(null)).pipe(Ml()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let t=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=Xt(t).pipe(Ml()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(t){let r=Array.isArray(t)?t:t.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(t){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let t=this.hasActiveLinks();this.classes.forEach(r=>{t?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),t&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==t&&(this._isActive=t,this.cdr.markForCheck(),this.isActiveChange.emit(t))})}isLinkActive(t){let r=bN(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let s=o.urlTree;return s?t.isActive(s,r):!1}}hasActiveLinks(){let t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}};e.\u0275fac=function(r){return new(r||e)(l(Oi),l(S),l(ut),l(ee),l(_m,8))},e.\u0275dir=G({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,o,s){if(r&1&&Zt(s,_m,5),r&2){let a;V(a=B())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[re]});let n=e;return n})();function bN(n){return!!n.paths}var ym=class{};var vN=(()=>{let e=class e{constructor(t,r,o,s,a){this.router=t,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(Je(t=>t instanceof Wn),fo(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){let o=[];for(let s of r){s.providers&&!s._injector&&(s._injector=xv(s.providers,t,`Route: ${s.path}`));let a=s._injector??t,u=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(u,s.children??s._loadedRoutes))}return Xt(o).pipe(Ml())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{let o;r.loadChildren&&r.canLoad===void 0?o=this.loader.loadChildren(t,r):o=se(null);let s=o.pipe(en(a=>a===null?se(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,this.processRoutes(a.injector??t,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(r);return Xt([s,a]).pipe(Ml())}else return s})}};e.\u0275fac=function(r){return new(r||e)(w(Oi),w(Gh),w(dr),w(ym),w(k0))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),mS=new Z(""),_N=(()=>{let e=class e{constructor(t,r,o,s,a={}){this.urlSerializer=t,this.transitions=r,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=M(dr),a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof Za?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Wn?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof So&&t.code===um.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof mm&&(t.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(t.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,r){this.zone.runOutsideAngular(()=>We(this,null,function*(){yield new Promise(o=>{setTimeout(()=>{o()}),yv(()=>{o()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new mm(t,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(r){Va()},e.\u0275prov=D({token:e,factory:e.\u0275fac});let n=e;return n})();function pS(n,...e){return _o([{provide:md,multi:!0,useValue:n},[],{provide:Do,useFactory:gS,deps:[Oi]},{provide:Hl,multi:!0,useFactory:fS},e.map(i=>i.\u0275providers)])}function gS(n){return n.routerState.root}function yd(n,e){return{\u0275kind:n,\u0275providers:e}}function fS(){let n=M(ye);return e=>{let i=n.get(Jt);if(e!==i.components[0])return;let t=n.get(Oi),r=n.get(bS);n.get(T0)===1&&t.initialNavigation(),n.get(vS,null,vv.Optional)?.setUpPreloading(),n.get(mS,null,vv.Optional)?.init(),t.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var bS=new Z("",{factory:()=>new ue}),T0=new Z("",{providedIn:"root",factory:()=>1});function yN(){return yd(2,[{provide:T0,useValue:0},{provide:Sv,multi:!0,deps:[ye],useFactory:e=>{let i=e.get(zE,Promise.resolve());return()=>i.then(()=>new Promise(t=>{let r=e.get(Oi),o=e.get(bS);uS(r,()=>{t(!0)}),e.get(D0).afterPreactivation=()=>(t(!0),o.closed?se(void 0):o),r.initialNavigation()}))}}])}function wN(){return yd(3,[{provide:Sv,multi:!0,useFactory:()=>{let e=M(Oi);return()=>{e.setUpLocationChangeListener()}}},{provide:T0,useValue:2}])}var vS=new Z("");function xN(n){return yd(0,[{provide:vS,useExisting:vN},{provide:ym,useExisting:n}])}function CN(){return yd(8,[Rk,{provide:wm,useExisting:Rk}])}function IN(n){let e=[{provide:cS,useValue:sN},{provide:lS,useValue:q({skipNextTransition:!!n?.skipInitialTransition},n)}];return yd(9,e)}var Fk=new Z("ROUTER_FORROOT_GUARD"),EN=[Vr,{provide:gd,useClass:od},Oi,fd,{provide:Do,useFactory:gS,deps:[Oi]},k0,[]],_S=(()=>{let e=class e{constructor(t){}static forRoot(t,r){return{ngModule:e,providers:[EN,[],{provide:md,multi:!0,useValue:t},{provide:Fk,useFactory:TN,deps:[[Oi,new Vh,new _v]]},{provide:_d,useValue:r||{}},r?.useHash?SN():DN(),kN(),r?.preloadingStrategy?xN(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?MN(r):[],r?.bindToComponentInputs?CN().\u0275providers:[],r?.enableViewTransitions?IN().\u0275providers:[],RN()]}}static forChild(t){return{ngModule:e,providers:[{provide:md,multi:!0,useValue:t}]}}};e.\u0275fac=function(r){return new(r||e)(w(Fk,8))},e.\u0275mod=H({type:e}),e.\u0275inj=z({});let n=e;return n})();function kN(){return{provide:mS,useFactory:()=>{let n=M(YE),e=M(he),i=M(_d),t=M(D0),r=M(gd);return i.scrollOffset&&n.setOffset(i.scrollOffset),new _N(r,t,n,e,i)}}}function SN(){return{provide:Ul,useClass:$E}}function DN(){return{provide:Ul,useClass:UE}}function TN(n){return"guarded"}function MN(n){return[n.initialNavigation==="disabled"?wN().\u0275providers:[],n.initialNavigation==="enabledBlocking"?yN().\u0275providers:[]]}var Pk=new Z("");function RN(){return[{provide:Pk,useFactory:fS},{provide:Hl,multi:!0,useExisting:Pk}]}var tc=(()=>{let e=class e{constructor(){this._buttons={}}get buttons(){return this._buttons}setVisibility(t,r){let o=this._buttons[t];if(r&&!o.isVisible){o.isVisible=!0;return}!r&&o.isVisible&&(o.isVisible=!1)}setVisibleOnly(...t){let r=t.map(o=>o.id);for(let o in this._buttons)r.includes(o)?this.setVisibility(o,!0):this.setVisibility(o,!1)}get anyVisible(){for(let t in this._buttons)if(this._buttons[t].isVisible)return!0;return!1}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Cm,FN=new Uint8Array(16);function R0(){if(!Cm&&(Cm=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Cm))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Cm(FN)}var yS=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function PN(n){return typeof n=="string"&&yS.test(n)}var wS=PN;var ai=[];for(Im=0;Im<256;++Im)ai.push((Im+256).toString(16).substr(1));var Im;function ON(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=(ai[n[e+0]]+ai[n[e+1]]+ai[n[e+2]]+ai[n[e+3]]+"-"+ai[n[e+4]]+ai[n[e+5]]+"-"+ai[n[e+6]]+ai[n[e+7]]+"-"+ai[n[e+8]]+ai[n[e+9]]+"-"+ai[n[e+10]]+ai[n[e+11]]+ai[n[e+12]]+ai[n[e+13]]+ai[n[e+14]]+ai[n[e+15]]).toLowerCase();if(!wS(i))throw TypeError("Stringified UUID is invalid");return i}var xS=ON;function NN(n,e,i){n=n||{};var t=n.random||(n.rng||R0)();if(t[6]=t[6]&15|64,t[8]=t[8]&63|128,e){i=i||0;for(var r=0;r<16;++r)e[i+r]=t[r];return e}return xS(t)}var A0=NN;var Ni=class{constructor(){this.id=A0().toString(),this.isVisible=!0;let e=M(tc);e.buttons[this.id]=this}};var CS=Un(xn());var Mo=(()=>{let e=class e extends Ni{constructor(){super(...arguments),this.async_actions={},this.actions={},this.countChangeListeners=new Array,this._isEditable=typeof window<"u"?localStorage.getItem("editable")==="T":!0}get asyncCount(){return Object.keys(this.async_actions).length}get syncCount(){return Object.keys(this.actions).length}get totalCount(){return this.asyncCount+this.syncCount}get any(){return this.totalCount>0}setAsync(t,r){let o=this.async_actions.hasOwnProperty(t);this.async_actions[t]=r,o||this.executeCountChangeListeners()}set(t,r){let o=this.actions.hasOwnProperty(t);this.actions[t]=r,o||this.executeCountChangeListeners()}removeAll(){this.any&&(this.async_actions={},this.actions={},this.executeCountChangeListeners())}executeAllAsync(){return We(this,null,function*(){let t={err:0,succ:0,get all(){return this.err+this.succ}};yield Promise.all(Object.values(this.async_actions).map(r=>r().then(()=>t.succ+=1).catch(()=>t.err+=1))).then(()=>{t.err>0&&CS.default.fire({icon:"info",title:"Verarbeitungsfehler",text:`Von ${t.all} Aktualisierungen wurden ${t.succ} erfolgreich durchgef\xFChrt, ${t.err} jedoch nicht. Der Fehler k\xF6nnte durch den Versuch entstanden sein, pers\xF6nliche Daten zu aktualisieren. Bitte \xFCberpr\xFCfen Sie dies.`})}),Object.values(this.actions).forEach(r=>r()),this.removeAll()})}executeCountChangeListeners(){this.countChangeListeners.forEach(t=>t())}addChangeListener(t,r){switch(t){case Em.CountChange:this.countChangeListeners.push(r);break}}removeAllChangeListeners(){this.countChangeListeners=[]}get isEditable(){return this._isEditable}set isEditable(t){typeof window<"u"&&localStorage.setItem("editable",t?"T":"F"),this._isEditable=t}toggleEditability(){this.isEditable=!this.isEditable}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Em=function(n){return n[n.CountChange=0]="CountChange",n}(Em||{});var Cn=(()=>{let e=class e extends Ni{constructor(t){super(),this.updateService=t,this.actions=[]}add(t){this.actions.push(t)}removeAll(){this.actions=[]}executeAll(){this.actions.forEach(t=>t()),this.updateService.removeAll()}};e.\u0275fac=function(r){return new(r||e)(w(Mo))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function vr(n){return n!=null&&`${n}`!="false"}function qn(n,e=0){return jN(n)?Number(n):e}function jN(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function ic(n){return Array.isArray(n)?n:[n]}function Mt(n){return n==null?"":typeof n=="string"?n:`${n}px`}function ji(n){return n instanceof S?n.nativeElement:n}var O0;try{O0=typeof Intl<"u"&&Intl.v8BreakIterator}catch{O0=!1}var Le=(()=>{let e=class e{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Fi(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||O0)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(r){return new(r||e)(w(bt))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var nc,ES=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function N0(){if(nc)return nc;if(typeof document!="object"||!document)return nc=new Set(ES),nc;let n=document.createElement("input");return nc=new Set(ES.filter(e=>(n.setAttribute("type",e),n.type===e))),nc}var wd;function LN(){if(wd==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>wd=!0}))}finally{wd=wd||!1}return wd}function In(n){return LN()?n:!!n.capture}var Yn=function(n){return n[n.NORMAL=0]="NORMAL",n[n.NEGATED=1]="NEGATED",n[n.INVERTED=2]="INVERTED",n}(Yn||{}),Sm,_s;function Dm(){if(_s==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return _s=!1,_s;if("scrollBehavior"in document.documentElement.style)_s=!0;else{let n=Element.prototype.scrollTo;n?_s=!/\{\s*\[native code\]\s*\}/.test(n.toString()):_s=!1}}return _s}function rc(){if(typeof document!="object"||!document)return Yn.NORMAL;if(Sm==null){let n=document.createElement("div"),e=n.style;n.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";let i=document.createElement("div"),t=i.style;t.width="2px",t.height="1px",n.appendChild(i),document.body.appendChild(n),Sm=Yn.NORMAL,n.scrollLeft===0&&(n.scrollLeft=1,Sm=n.scrollLeft===0?Yn.NEGATED:Yn.INVERTED),n.remove()}return Sm}var P0;function VN(){if(P0==null){let n=typeof document<"u"?document.head:null;P0=!!(n&&(n.createShadowRoot||n.attachShadow))}return P0}function kS(n){if(VN()){let e=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function xd(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){let e=n.shadowRoot.activeElement;if(e===n)break;n=e}return n}function Qn(n){return n.composedPath?n.composedPath()[0]:n.target}function Cd(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var BN=new Z("cdk-dir-doc",{providedIn:"root",factory:zN});function zN(){return M(ae)}var HN=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function UN(n){let e=n?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?HN.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var xi=(()=>{let e=class e{constructor(t){if(this.value="ltr",this.change=new Q,t){let r=t.body?t.body.dir:null,o=t.documentElement?t.documentElement.dir:null;this.value=UN(r||o||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(r){return new(r||e)(w(BN,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Ro=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=H({type:e}),e.\u0275inj=z({});let n=e;return n})();var $N=20,oc=(()=>{let e=class e{constructor(t,r,o){this._ngZone=t,this._platform=r,this._scrolled=new ue,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){let r=this.scrollContainers.get(t);r&&(r.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=$N){return this._platform.isBrowser?new ht(r=>{this._globalSubscription||this._addGlobalListener();let o=t>0?this._scrolled.pipe(pv(t)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):se()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(t,r){let o=this.getAncestorScrollContainers(t);return this.scrolled(r).pipe(Je(s=>!s||o.indexOf(s)>-1))}getAncestorScrollContainers(t){let r=[];return this.scrollContainers.forEach((o,s)=>{this._scrollableContainsElement(s,t)&&r.push(s)}),r}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,r){let o=ji(r),s=t.getElementRef().nativeElement;do if(o==s)return!0;while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let t=this._getWindow();return Ti(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};e.\u0275fac=function(r){return new(r||e)(w(he),w(Le),w(ae,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),j0=(()=>{let e=class e{constructor(t,r,o,s){this.elementRef=t,this.scrollDispatcher=r,this.ngZone=o,this.dir=s,this._destroyed=new ue,this._elementScrolled=new ht(a=>this.ngZone.runOutsideAngular(()=>Ti(this.elementRef.nativeElement,"scroll").pipe(ce(this._destroyed)).subscribe(a)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let r=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=o?t.end:t.start),t.right==null&&(t.right=o?t.start:t.end),t.bottom!=null&&(t.top=r.scrollHeight-r.clientHeight-t.bottom),o&&rc()!=Yn.NORMAL?(t.left!=null&&(t.right=r.scrollWidth-r.clientWidth-t.left),rc()==Yn.INVERTED?t.left=t.right:rc()==Yn.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=r.scrollWidth-r.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){let r=this.elementRef.nativeElement;Dm()?r.scrollTo(t):(t.top!=null&&(r.scrollTop=t.top),t.left!=null&&(r.scrollLeft=t.left))}measureScrollOffset(t){let r="left",o="right",s=this.elementRef.nativeElement;if(t=="top")return s.scrollTop;if(t=="bottom")return s.scrollHeight-s.clientHeight-s.scrollTop;let a=this.dir&&this.dir.value=="rtl";return t=="start"?t=a?o:r:t=="end"&&(t=a?r:o),a&&rc()==Yn.INVERTED?t==r?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:a&&rc()==Yn.NEGATED?t==r?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:t==r?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}};e.\u0275fac=function(r){return new(r||e)(l(S),l(oc),l(he),l(xi,8))},e.\u0275dir=G({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0});let n=e;return n})(),GN=20,ys=(()=>{let e=class e{constructor(t,r,o){this._platform=t,this._change=new ue,this._changeListener=s=>{this._change.next(s)},this._document=o,r.runOutsideAngular(()=>{if(t.isBrowser){let s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:r,height:o}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+o,right:t.left+r,height:o,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let t=this._document,r=this._getWindow(),o=t.documentElement,s=o.getBoundingClientRect(),a=-s.top||t.body.scrollTop||r.scrollY||o.scrollTop||0,u=-s.left||t.body.scrollLeft||r.scrollX||o.scrollLeft||0;return{top:a,left:u}}change(t=GN){return t>0?this._change.pipe(pv(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}};e.\u0275fac=function(r){return new(r||e)(w(Le),w(he),w(ae,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Tm=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=H({type:e}),e.\u0275inj=z({});let n=e;return n})(),L0=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=H({type:e}),e.\u0275inj=z({imports:[Ro,Tm,Ro,Tm]});let n=e;return n})();var Ed=class{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},Ao=class extends Ed{constructor(e,i,t,r,o){super(),this.component=e,this.viewContainerRef=i,this.injector=t,this.componentFactoryResolver=r,this.projectableNodes=o}},zr=class extends Ed{constructor(e,i,t,r){super(),this.templateRef=e,this.viewContainerRef=i,this.context=t,this.injector=r}get origin(){return this.templateRef.elementRef}attach(e,i=this.context){return this.context=i,super.attach(e)}detach(){return this.context=void 0,super.detach()}},V0=class extends Ed{constructor(e){super(),this.element=e instanceof S?e.nativeElement:e}},sc=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof Ao)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof zr)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof V0)return this._attachedPortal=e,this.attachDomPortal(e)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var Mm=class extends sc{constructor(e,i,t,r,o){super(),this.outletElement=e,this._componentFactoryResolver=i,this._appRef=t,this._defaultInjector=r,this.attachDomPortal=s=>{this._document;let a=s.element;a.parentNode;let u=this._document.createComment("dom-portal");a.parentNode.insertBefore(u,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{u.parentNode&&u.parentNode.replaceChild(a,u)})},this._document=o}attachComponentPortal(e){let t=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(t,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector,e.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=t.create(e.injector||this._defaultInjector||ye.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=e,r}attachTemplatePortal(e){let i=e.viewContainerRef,t=i.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return t.rootNodes.forEach(r=>this.outletElement.appendChild(r)),t.detectChanges(),this.setDisposeFn(()=>{let r=i.indexOf(t);r!==-1&&i.remove(r)}),this._attachedPortal=e,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var DS=(()=>{let e=class e extends zr{constructor(t,r){super(t,r)}};e.\u0275fac=function(r){return new(r||e)(l(Be),l(Ot))},e.\u0275dir=G({type:e,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],standalone:!0,features:[R]});let n=e;return n})();var Hr=(()=>{let e=class e extends sc{constructor(t,r,o){super(),this._componentFactoryResolver=t,this._viewContainerRef=r,this._isInitialized=!1,this.attached=new Q,this.attachDomPortal=s=>{this._document;let a=s.element;a.parentNode;let u=this._document.createComment("dom-portal");s.setAttachedHost(this),a.parentNode.insertBefore(u,a),this._getRootNode().appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{u.parentNode&&u.parentNode.replaceChild(a,u)})},this._document=o}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(t){t.setAttachedHost(this);let r=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,s=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),a=r.createComponent(s,r.length,t.injector||r.injector,t.projectableNodes||void 0);return r!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=t,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(t){t.setAttachedHost(this);let r=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=r,this.attached.emit(r),r}_getRootNode(){let t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}};e.\u0275fac=function(r){return new(r||e)(l(dt),l(Ot),l(ae))},e.\u0275dir=G({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[U.None,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[R]});let n=e;return n})();var Rm=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=H({type:e}),e.\u0275inj=z({});let n=e;return n})();function _r(n,...e){return e.length?e.some(i=>n[i]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}var TS=Dm(),B0=class{constructor(e,i){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=i}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Mt(-this._previousScrollPosition.left),e.style.top=Mt(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,i=this._document.body,t=e.style,r=i.style,o=t.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),TS&&(t.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),TS&&(t.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let i=this._document.body,t=this._viewportRuler.getViewportSize();return i.scrollHeight>t.height||i.scrollWidth>t.width}};var z0=class{constructor(e,i,t,r){this._scrollDispatcher=e,this._ngZone=i,this._viewportRuler=t,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(Je(i=>!i||!this._overlayRef.overlayElement.contains(i.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let i=this._viewportRuler.getViewportScrollPosition().top;Math.abs(i-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Am=class{enable(){}disable(){}attach(){}};function H0(n,e){return e.some(i=>{let t=n.bottom<i.top,r=n.top>i.bottom,o=n.right<i.left,s=n.left>i.right;return t||r||o||s})}function MS(n,e){return e.some(i=>{let t=n.top<i.top,r=n.bottom>i.bottom,o=n.left<i.left,s=n.right>i.right;return t||r||o||s})}var U0=class{constructor(e,i,t,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=t,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let i=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:r}=this._viewportRuler.getViewportSize();H0(i,[{width:t,height:r,bottom:r,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},WN=(()=>{let e=class e{constructor(t,r,o,s){this._scrollDispatcher=t,this._viewportRuler=r,this._ngZone=o,this.noop=()=>new Am,this.close=a=>new z0(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new B0(this._viewportRuler,this._document),this.reposition=a=>new U0(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=s}};e.\u0275fac=function(r){return new(r||e)(w(oc),w(ys),w(he),w(ae))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),kd=class{constructor(e){if(this.scrollStrategy=new Am,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){let i=Object.keys(e);for(let t of i)e[t]!==void 0&&(this[t]=e[t])}}};var $0=class{constructor(e,i){this.connectionPair=e,this.scrollableViewProperties=i}};var OS=(()=>{let e=class e{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){let r=this._attachedOverlays.indexOf(t);r>-1&&this._attachedOverlays.splice(r,1),this._attachedOverlays.length===0&&this.detach()}};e.\u0275fac=function(r){return new(r||e)(w(ae))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),qN=(()=>{let e=class e extends OS{constructor(t,r){super(t),this._ngZone=r,this._keydownListener=o=>{let s=this._attachedOverlays;for(let a=s.length-1;a>-1;a--)if(s[a]._keydownEvents.observers.length>0){let u=s[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>u.next(o)):u.next(o);break}}}add(t){super.add(t),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}};e.\u0275fac=function(r){return new(r||e)(w(ae),w(he,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),YN=(()=>{let e=class e extends OS{constructor(t,r,o){super(t),this._platform=r,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=Qn(s)},this._clickListener=s=>{let a=Qn(s),u=s.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;let b=this._attachedOverlays.slice();for(let y=b.length-1;y>-1;y--){let I=b[y];if(I._outsidePointerEvents.observers.length<1||!I.hasAttached())continue;if(I.overlayElement.contains(a)||I.overlayElement.contains(u))break;let N=I._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>N.next(s)):N.next(s)}}}add(t){if(super.add(t),!this._isAttached){let r=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(r)):this._addEventListeners(r),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=r.style.cursor,r.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}};e.\u0275fac=function(r){return new(r||e)(w(ae),w(Le),w(he,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),ac=(()=>{let e=class e{constructor(t,r){this._platform=r,this._document=t}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||Cd()){let o=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let s=0;s<o.length;s++)o[s].remove()}let r=this._document.createElement("div");r.classList.add(t),Cd()?r.setAttribute("platform","test"):this._platform.isBrowser||r.setAttribute("platform","server"),this._document.body.appendChild(r),this._containerElement=r}};e.\u0275fac=function(r){return new(r||e)(w(ae),w(Le))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Ur=class{constructor(e,i,t,r,o,s,a,u,b,y=!1){this._portalOutlet=e,this._host=i,this._pane=t,this._config=r,this._ngZone=o,this._keyboardDispatcher=s,this._document=a,this._location=u,this._outsideClickDispatcher=b,this._animationsDisabled=y,this._backdropElement=null,this._backdropClick=new ue,this._attachments=new ue,this._detachments=new ue,this._locationChanges=Ft.EMPTY,this._backdropClickHandler=I=>this._backdropClick.next(I),this._backdropTransitionendHandler=I=>{this._disposeBackdrop(I.target)},this._keydownEvents=new ue,this._outsidePointerEvents=new ue,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let i=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(gt(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof i?.onDestroy=="function"&&i.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),i}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=q(q({},this._config),e),this._updateElementSize()}setDirection(e){this._config=st(q({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=Mt(this._config.width),e.height=Mt(this._config.height),e.minWidth=Mt(this._config.minWidth),e.minHeight=Mt(this._config.minHeight),e.maxWidth=Mt(this._config.maxWidth),e.maxHeight=Mt(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e=this._backdropElement;if(e){if(this._animationsDisabled){this._disposeBackdrop(e);return}e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,i,t){let r=ic(i||[]).filter(o=>!!o);r.length&&(t?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{let e=this._ngZone.onStable.pipe(ce(yi(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){let e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},RS="cdk-overlay-connected-position-bounding-box",QN=/([A-Za-z%]+)$/,G0=class{get positions(){return this._preferredPositions}constructor(e,i,t,r,o){this._viewportRuler=i,this._document=t,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new ue,this._resizeSubscription=Ft.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(RS),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._originRect,i=this._overlayRect,t=this._viewportRect,r=this._containerRect,o=[],s;for(let a of this._preferredPositions){let u=this._getOriginPoint(e,r,a),b=this._getOverlayPoint(u,i,a),y=this._getOverlayFit(b,i,t,a);if(y.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,u);return}if(this._canFitWithFlexibleDimensions(y,b,t)){o.push({position:a,origin:u,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(u,a)});continue}(!s||s.overlayFit.visibleArea<y.visibleArea)&&(s={overlayFit:y,overlayPoint:b,originPoint:u,position:a,overlayRect:i})}if(o.length){let a=null,u=-1;for(let b of o){let y=b.boundingBoxRect.width*b.boundingBoxRect.height*(b.position.weight||1);y>u&&(u=y,a=b)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(s.position,s.originPoint);return}this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ws(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(RS),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let i=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,i)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,i,t){let r;if(t.originX=="center")r=e.left+e.width/2;else{let s=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;r=t.originX=="start"?s:a}i.left<0&&(r-=i.left);let o;return t.originY=="center"?o=e.top+e.height/2:o=t.originY=="top"?e.top:e.bottom,i.top<0&&(o-=i.top),{x:r,y:o}}_getOverlayPoint(e,i,t){let r;t.overlayX=="center"?r=-i.width/2:t.overlayX==="start"?r=this._isRtl()?-i.width:0:r=this._isRtl()?0:-i.width;let o;return t.overlayY=="center"?o=-i.height/2:o=t.overlayY=="top"?0:-i.height,{x:e.x+r,y:e.y+o}}_getOverlayFit(e,i,t,r){let o=FS(i),{x:s,y:a}=e,u=this._getOffset(r,"x"),b=this._getOffset(r,"y");u&&(s+=u),b&&(a+=b);let y=0-s,I=s+o.width-t.width,N=0-a,K=a+o.height-t.height,de=this._subtractOverflows(o.width,y,I),fe=this._subtractOverflows(o.height,N,K),W=de*fe;return{visibleArea:W,isCompletelyWithinViewport:o.width*o.height===W,fitsInViewportVertically:fe===o.height,fitsInViewportHorizontally:de==o.width}}_canFitWithFlexibleDimensions(e,i,t){if(this._hasFlexibleDimensions){let r=t.bottom-i.y,o=t.right-i.x,s=AS(this._overlayRef.getConfig().minHeight),a=AS(this._overlayRef.getConfig().minWidth),u=e.fitsInViewportVertically||s!=null&&s<=r,b=e.fitsInViewportHorizontally||a!=null&&a<=o;return u&&b}return!1}_pushOverlayOnScreen(e,i,t){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let r=FS(i),o=this._viewportRect,s=Math.max(e.x+r.width-o.width,0),a=Math.max(e.y+r.height-o.height,0),u=Math.max(o.top-t.top-e.y,0),b=Math.max(o.left-t.left-e.x,0),y=0,I=0;return r.width<=o.width?y=b||-s:y=e.x<this._viewportMargin?o.left-t.left-e.x:0,r.height<=o.height?I=u||-a:I=e.y<this._viewportMargin?o.top-t.top-e.y:0,this._previousPushAmount={x:y,y:I},{x:e.x+y,y:e.y+I}}_applyPosition(e,i){if(this._setTransformOrigin(e),this._setOverlayElementStyles(i,e),this._setBoundingBoxStyles(i,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._positionChanges.observers.length){let t=this._getScrollVisibility();if(e!==this._lastPosition||!this._lastScrollVisibility||!KN(this._lastScrollVisibility,t)){let r=new $0(e,t);this._positionChanges.next(r)}this._lastScrollVisibility=t}this._lastPosition=e,this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;let i=this._boundingBox.querySelectorAll(this._transformOriginSelector),t,r=e.overlayY;e.overlayX==="center"?t="center":this._isRtl()?t=e.overlayX==="start"?"right":"left":t=e.overlayX==="start"?"left":"right";for(let o=0;o<i.length;o++)i[o].style.transformOrigin=`${t} ${r}`}_calculateBoundingBoxRect(e,i){let t=this._viewportRect,r=this._isRtl(),o,s,a;if(i.overlayY==="top")s=e.y,o=t.height-s+this._viewportMargin;else if(i.overlayY==="bottom")a=t.height-e.y+this._viewportMargin*2,o=t.height-a+this._viewportMargin;else{let K=Math.min(t.bottom-e.y+t.top,e.y),de=this._lastBoundingBoxSize.height;o=K*2,s=e.y-K,o>de&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-de/2)}let u=i.overlayX==="start"&&!r||i.overlayX==="end"&&r,b=i.overlayX==="end"&&!r||i.overlayX==="start"&&r,y,I,N;if(b)N=t.width-e.x+this._viewportMargin*2,y=e.x-this._viewportMargin;else if(u)I=e.x,y=t.right-e.x;else{let K=Math.min(t.right-e.x+t.left,e.x),de=this._lastBoundingBoxSize.width;y=K*2,I=e.x-K,y>de&&!this._isInitialRender&&!this._growAfterOpen&&(I=e.x-de/2)}return{top:s,left:I,bottom:a,right:N,width:y,height:o}}_setBoundingBoxStyles(e,i){let t=this._calculateBoundingBoxRect(e,i);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=Mt(t.height),r.top=Mt(t.top),r.bottom=Mt(t.bottom),r.width=Mt(t.width),r.left=Mt(t.left),r.right=Mt(t.right),i.overlayX==="center"?r.alignItems="center":r.alignItems=i.overlayX==="end"?"flex-end":"flex-start",i.overlayY==="center"?r.justifyContent="center":r.justifyContent=i.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=Mt(o)),s&&(r.maxWidth=Mt(s))}this._lastBoundingBoxSize=t,ws(this._boundingBox.style,r)}_resetBoundingBoxStyles(){ws(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ws(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,i){let t={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){let y=this._viewportRuler.getViewportScrollPosition();ws(t,this._getExactOverlayY(i,e,y)),ws(t,this._getExactOverlayX(i,e,y))}else t.position="static";let a="",u=this._getOffset(i,"x"),b=this._getOffset(i,"y");u&&(a+=`translateX(${u}px) `),b&&(a+=`translateY(${b}px)`),t.transform=a.trim(),s.maxHeight&&(r?t.maxHeight=Mt(s.maxHeight):o&&(t.maxHeight="")),s.maxWidth&&(r?t.maxWidth=Mt(s.maxWidth):o&&(t.maxWidth="")),ws(this._pane.style,t)}_getExactOverlayY(e,i,t){let r={top:"",bottom:""},o=this._getOverlayPoint(i,this._overlayRect,e);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,t)),e.overlayY==="bottom"){let s=this._document.documentElement.clientHeight;r.bottom=`${s-(o.y+this._overlayRect.height)}px`}else r.top=Mt(o.y);return r}_getExactOverlayX(e,i,t){let r={left:"",right:""},o=this._getOverlayPoint(i,this._overlayRect,e);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,t));let s;if(this._isRtl()?s=e.overlayX==="end"?"left":"right":s=e.overlayX==="end"?"right":"left",s==="right"){let a=this._document.documentElement.clientWidth;r.right=`${a-(o.x+this._overlayRect.width)}px`}else r.left=Mt(o.x);return r}_getScrollVisibility(){let e=this._getOriginRect(),i=this._pane.getBoundingClientRect(),t=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:MS(e,t),isOriginOutsideView:H0(e,t),isOverlayClipped:MS(i,t),isOverlayOutsideView:H0(i,t)}}_subtractOverflows(e,...i){return i.reduce((t,r)=>t-Math.max(r,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,i=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+e-this._viewportMargin,bottom:t.top+i-this._viewportMargin,width:e-2*this._viewportMargin,height:i-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,i){return i==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&ic(e).forEach(i=>{i!==""&&this._appliedPanelClasses.indexOf(i)===-1&&(this._appliedPanelClasses.push(i),this._pane.classList.add(i))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof S)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let i=e.width||0,t=e.height||0;return{top:e.y,bottom:e.y+t,left:e.x,right:e.x+i,height:t,width:i}}};function ws(n,e){for(let i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);return n}function AS(n){if(typeof n!="number"&&n!=null){let[e,i]=n.split(QN);return!i||i==="px"?parseFloat(e):null}return n||null}function FS(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}function KN(n,e){return n===e?!0:n.isOriginClipped===e.isOriginClipped&&n.isOriginOutsideView===e.isOriginOutsideView&&n.isOverlayClipped===e.isOverlayClipped&&n.isOverlayOutsideView===e.isOverlayOutsideView}var PS="cdk-global-overlay-wrapper",W0=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){let i=e.getConfig();this._overlayRef=e,this._width&&!i.width&&e.updateSize({width:this._width}),this._height&&!i.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(PS),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,i=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=t,u=(r==="100%"||r==="100vw")&&(!s||s==="100%"||s==="100vw"),b=(o==="100%"||o==="100vh")&&(!a||a==="100%"||a==="100vh"),y=this._xPosition,I=this._xOffset,N=this._overlayRef.getConfig().direction==="rtl",K="",de="",fe="";u?fe="flex-start":y==="center"?(fe="center",N?de=I:K=I):N?y==="left"||y==="end"?(fe="flex-end",K=I):(y==="right"||y==="start")&&(fe="flex-start",de=I):y==="left"||y==="start"?(fe="flex-start",K=I):(y==="right"||y==="end")&&(fe="flex-end",de=I),e.position=this._cssPosition,e.marginLeft=u?"0":K,e.marginTop=b?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=u?"0":de,i.justifyContent=fe,i.alignItems=b?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,i=this._overlayRef.hostElement,t=i.style;i.classList.remove(PS),t.justifyContent=t.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},XN=(()=>{let e=class e{constructor(t,r,o,s){this._viewportRuler=t,this._document=r,this._platform=o,this._overlayContainer=s}global(){return new W0}flexibleConnectedTo(t){return new G0(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};e.\u0275fac=function(r){return new(r||e)(w(ys),w(ae),w(Le),w(ac))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),ZN=0,pi=(()=>{let e=class e{constructor(t,r,o,s,a,u,b,y,I,N,K,de){this.scrollStrategies=t,this._overlayContainer=r,this._componentFactoryResolver=o,this._positionBuilder=s,this._keyboardDispatcher=a,this._injector=u,this._ngZone=b,this._document=y,this._directionality=I,this._location=N,this._outsideClickDispatcher=K,this._animationsModuleType=de}create(t){let r=this._createHostElement(),o=this._createPaneElement(r),s=this._createPortalOutlet(o),a=new kd(t);return a.direction=a.direction||this._directionality.value,new Ur(s,r,o,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations")}position(){return this._positionBuilder}_createPaneElement(t){let r=this._document.createElement("div");return r.id=`cdk-overlay-${ZN++}`,r.classList.add("cdk-overlay-pane"),t.appendChild(r),r}_createHostElement(){let t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(Jt)),new Mm(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};e.\u0275fac=function(r){return new(r||e)(w(WN),w(ac),w(dt),w(XN),w(qN),w(ye),w(he),w(ae),w(xi),w(Vr),w(YN),w(lt,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var JN=new Z("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let n=M(pi);return()=>n.scrollStrategies.reposition()}});function ej(n){return()=>n.scrollStrategies.reposition()}var tj={provide:JN,deps:[pi],useFactory:ej},Fm=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=H({type:e}),e.\u0275inj=z({providers:[pi,tj],imports:[Ro,Rm,L0,L0]});let n=e;return n})();function ij(n){if(n.type==="characterData"&&n.target instanceof Comment)return!0;if(n.type==="childList"){for(let e=0;e<n.addedNodes.length;e++)if(!(n.addedNodes[e]instanceof Comment))return!1;for(let e=0;e<n.removedNodes.length;e++)if(!(n.removedNodes[e]instanceof Comment))return!1;return!0}return!1}var NS=(()=>{let e=class e{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),nj=(()=>{let e=class e{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,r)=>this._cleanupObserver(r))}observe(t){let r=ji(t);return new ht(o=>{let a=this._observeElement(r).pipe(Se(u=>u.filter(b=>!ij(b))),Je(u=>!!u.length)).subscribe(o);return()=>{a.unsubscribe(),this._unobserveElement(r)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{let r=new ue,o=this._mutationObserverFactory.create(s=>r.next(s));o&&o.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:o,stream:r,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){let{observer:r,stream:o}=this._observedElements.get(t);r&&r.disconnect(),o.complete(),this._observedElements.delete(t)}}};e.\u0275fac=function(r){return new(r||e)(w(NS))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),jS=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=qn(t),this._subscribe()}constructor(t,r,o){this._contentObserver=t,this._elementRef=r,this._ngZone=o,this.event=new Q,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(bo(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(l(nj),l(S),l(he))},e.\u0275dir=G({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[U.HasDecoratorInputTransform,"cdkObserveContentDisabled","disabled",Ce],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[at]});let n=e;return n})(),Pm=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=H({type:e}),e.\u0275inj=z({providers:[NS]});let n=e;return n})();var LS=new Set,xs,rj=(()=>{let e=class e{constructor(t,r){this._platform=t,this._nonce=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):sj}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&oj(t,this._nonce),this._matchMedia(t)}};e.\u0275fac=function(r){return new(r||e)(w(Le),w(Ol,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function oj(n,e){if(!LS.has(n))try{xs||(xs=document.createElement("style"),e&&xs.setAttribute("nonce",e),xs.setAttribute("type","text/css"),document.head.appendChild(xs)),xs.sheet&&(xs.sheet.insertRule(`@media ${n} {body{ }}`,0),LS.add(n))}catch(i){console.error(i)}}function sj(n){return{matches:n==="all"||n==="",media:n,addListener:()=>{},removeListener:()=>{}}}var BS=(()=>{let e=class e{constructor(t,r){this._mediaMatcher=t,this._zone=r,this._queries=new Map,this._destroySubject=new ue}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return VS(ic(t)).some(o=>this._registerQuery(o).mql.matches)}observe(t){let o=VS(ic(t)).map(a=>this._registerQuery(a).observable),s=Nr(o);return s=Lh(s.pipe(gt(1)),s.pipe(jr(1),bo(0))),s.pipe(Se(a=>{let u={matches:!1,breakpoints:{}};return a.forEach(({matches:b,query:y})=>{u.matches=u.matches||b,u.breakpoints[y]=b}),u}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);let r=this._mediaMatcher.matchMedia(t),s={observable:new ht(a=>{let u=b=>this._zone.run(()=>a.next(b));return r.addListener(u),()=>{r.removeListener(u)}}).pipe(tn(r),Se(({matches:a})=>({query:t,matches:a})),ce(this._destroySubject)),mql:r};return this._queries.set(t,s),s}};e.\u0275fac=function(r){return new(r||e)(w(rj),w(he))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function VS(n){return n.map(e=>e.split(",")).reduce((e,i)=>e.concat(i)).map(e=>e.trim())}var GS=" ";function Ej(n,e,i){let t=Lm(n,e);i=i.trim(),!t.some(r=>r.trim()===i)&&(t.push(i),n.setAttribute(e,t.join(GS)))}function kj(n,e,i){let t=Lm(n,e);i=i.trim();let r=t.filter(o=>o!==i);r.length?n.setAttribute(e,r.join(GS)):n.removeAttribute(e)}function Lm(n,e){return n.getAttribute(e)?.match(/\S+/g)??[]}var WS="cdk-describedby-message",Om="cdk-describedby-host",K0=0,Bm=(()=>{let e=class e{constructor(t,r){this._platform=r,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${K0++}`,this._document=t,this._id=M(Pl)+"-"+K0++}describe(t,r,o){if(!this._canBeDescribed(t,r))return;let s=Y0(r,o);typeof r!="string"?(zS(r,this._id),this._messageRegistry.set(s,{messageElement:r,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(r,o),this._isElementDescribedByMessage(t,s)||this._addMessageReference(t,s)}removeDescription(t,r,o){if(!r||!this._isElementNode(t))return;let s=Y0(r,o);if(this._isElementDescribedByMessage(t,s)&&this._removeMessageReference(t,s),typeof r=="string"){let a=this._messageRegistry.get(s);a&&a.referenceCount===0&&this._deleteMessageElement(s)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let t=this._document.querySelectorAll(`[${Om}="${this._id}"]`);for(let r=0;r<t.length;r++)this._removeCdkDescribedByReferenceIds(t[r]),t[r].removeAttribute(Om);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(t,r){let o=this._document.createElement("div");zS(o,this._id),o.textContent=t,r&&o.setAttribute("role",r),this._createMessagesContainer(),this._messagesContainer.appendChild(o),this._messageRegistry.set(Y0(t,r),{messageElement:o,referenceCount:0})}_deleteMessageElement(t){this._messageRegistry.get(t)?.messageElement?.remove(),this._messageRegistry.delete(t)}_createMessagesContainer(){if(this._messagesContainer)return;let t="cdk-describedby-message-container",r=this._document.querySelectorAll(`.${t}[platform="server"]`);for(let s=0;s<r.length;s++)r[s].remove();let o=this._document.createElement("div");o.style.visibility="hidden",o.classList.add(t),o.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&o.setAttribute("platform","server"),this._document.body.appendChild(o),this._messagesContainer=o}_removeCdkDescribedByReferenceIds(t){let r=Lm(t,"aria-describedby").filter(o=>o.indexOf(WS)!=0);t.setAttribute("aria-describedby",r.join(" "))}_addMessageReference(t,r){let o=this._messageRegistry.get(r);Ej(t,"aria-describedby",o.messageElement.id),t.setAttribute(Om,this._id),o.referenceCount++}_removeMessageReference(t,r){let o=this._messageRegistry.get(r);o.referenceCount--,kj(t,"aria-describedby",o.messageElement.id),t.removeAttribute(Om)}_isElementDescribedByMessage(t,r){let o=Lm(t,"aria-describedby"),s=this._messageRegistry.get(r),a=s&&s.messageElement.id;return!!a&&o.indexOf(a)!=-1}_canBeDescribed(t,r){if(!this._isElementNode(t))return!1;if(r&&typeof r=="object")return!0;let o=r==null?"":`${r}`.trim(),s=t.getAttribute("aria-label");return o?!s||s.trim()!==o:!1}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}};e.\u0275fac=function(r){return new(r||e)(w(ae),w(Le))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Y0(n,e){return typeof n=="string"?`${e||""}/${n}`:n}function zS(n,e){n.id||(n.id=`${WS}-${e}-${K0++}`)}var X0=class{constructor(e,i){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new ue,this._typeaheadSubscription=Ft.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new ue,this.change=new ue,e instanceof Fl?this._itemChangesSubscription=e.changes.subscribe(t=>this._itemsChanged(t.toArray())):wv(e)&&(this._effectRef=Dv(()=>this._itemsChanged(e()),{injector:i}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(ft(i=>this._pressedLetters.push(i)),bo(e),Je(()=>this._pressedLetters.length>0),Se(()=>this._pressedLetters.join(""))).subscribe(i=>{let t=this._getItemsArray();for(let r=1;r<t.length+1;r++){let o=(this._activeItemIndex+r)%t.length,s=t[o];if(!this._skipPredicateFn(s)&&s.getLabel().toUpperCase().trim().indexOf(i)===0){this.setActiveItem(o);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}withPageUpDown(e=!0,i=10){return this._pageUpAndDown={enabled:e,delta:i},this}setActiveItem(e){let i=this._activeItem;this.updateActiveItem(e),this._activeItem!==i&&this.change.next(this._activeItemIndex)}onKeydown(e){let i=e.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!e[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(i){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o<s?o:s-1,-1);break}else return;default:(r||_r(e,"shiftKey"))&&(e.key&&e.key.length===1?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(i>=65&&i<=90||i>=48&&i<=57)&&this._letterKeyStream.next(String.fromCharCode(i)));return}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){let i=this._getItemsArray(),t=typeof e=="number"?e:i.indexOf(e),r=i[t];this._activeItem=r??null,this._activeItemIndex=t}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){let i=this._getItemsArray();for(let t=1;t<=i.length;t++){let r=(this._activeItemIndex+e*t+i.length)%i.length,o=i[r];if(!this._skipPredicateFn(o)){this.setActiveItem(r);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,i){let t=this._getItemsArray();if(t[e]){for(;this._skipPredicateFn(t[e]);)if(e+=i,!t[e])return;this.setActiveItem(e)}}_getItemsArray(){return wv(this._items)?this._items():this._items instanceof Fl?this._items.toArray():this._items}_itemsChanged(e){if(this._activeItem){let i=e.indexOf(this._activeItem);i>-1&&i!==this._activeItemIndex&&(this._activeItemIndex=i)}}};var Vm=class extends X0{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}};var Is=(()=>{let e=class e{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return Dj(t)&&getComputedStyle(t).visibility==="visible"}isTabbable(t){if(!this._platform.isBrowser)return!1;let r=Sj(Nj(t));if(r&&(HS(r)===-1||!this.isVisible(r)))return!1;let o=t.nodeName.toLowerCase(),s=HS(t);return t.hasAttribute("contenteditable")?s!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!Pj(t)?!1:o==="audio"?t.hasAttribute("controls")?s!==-1:!1:o==="video"?s===-1?!1:s!==null?!0:this._platform.FIREFOX||t.hasAttribute("controls"):t.tabIndex>=0}isFocusable(t,r){return Oj(t)&&!this.isDisabled(t)&&(r?.ignoreVisibility||this.isVisible(t))}};e.\u0275fac=function(r){return new(r||e)(w(Le))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Sj(n){try{return n.frameElement}catch{return null}}function Dj(n){return!!(n.offsetWidth||n.offsetHeight||typeof n.getClientRects=="function"&&n.getClientRects().length)}function Tj(n){let e=n.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function Mj(n){return Aj(n)&&n.type=="hidden"}function Rj(n){return Fj(n)&&n.hasAttribute("href")}function Aj(n){return n.nodeName.toLowerCase()=="input"}function Fj(n){return n.nodeName.toLowerCase()=="a"}function qS(n){if(!n.hasAttribute("tabindex")||n.tabIndex===void 0)return!1;let e=n.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function HS(n){if(!qS(n))return null;let e=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function Pj(n){let e=n.nodeName.toLowerCase(),i=e==="input"&&n.type;return i==="text"||i==="password"||e==="select"||e==="textarea"}function Oj(n){return Mj(n)?!1:Tj(n)||Rj(n)||n.hasAttribute("contenteditable")||qS(n)}function Nj(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}var Z0=class{get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}constructor(e,i,t,r,o=!1){this._element=e,this._checker=i,this._ngZone=t,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){let e=this._startAnchor,i=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),i&&(i.removeEventListener("focus",this.endAnchorListener),i.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let i=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?i.length?i[0]:this._getFirstTabbableElement(this._element):i.length?i[i.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let i=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(i){if(!this._checker.isFocusable(i)){let t=this._getFirstTabbableElement(i);return t?.focus(e),!!t}return i.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let i=this._getRegionBoundary("start");return i&&i.focus(e),!!i}focusLastTabbableElement(e){let i=this._getRegionBoundary("end");return i&&i.focus(e),!!i}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let i=e.children;for(let t=0;t<i.length;t++){let r=i[t].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(i[t]):null;if(r)return r}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let i=e.children;for(let t=i.length-1;t>=0;t--){let r=i[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(i[t]):null;if(r)return r}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,i){e?i.setAttribute("tabindex","0"):i.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(gt(1)).subscribe(e)}},zm=(()=>{let e=class e{constructor(t,r,o){this._checker=t,this._ngZone=r,this._document=o}create(t,r=!1){return new Z0(t,this._checker,this._ngZone,this._document,r)}};e.\u0275fac=function(r){return new(r||e)(w(Is),w(he),w(ae))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function J0(n){return n.buttons===0||n.detail===0}function e_(n){let e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var jj=new Z("cdk-input-modality-detector-options"),Lj={ignoreKeys:[18,17,224,91,16]},YS=650,cc=In({passive:!0,capture:!0}),Vj=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(t,r,o,s){this._platform=t,this._mostRecentTarget=null,this._modality=new wt(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(u=>u===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Qn(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<YS||(this._modality.next(J0(a)?"keyboard":"mouse"),this._mostRecentTarget=Qn(a))},this._onTouchstart=a=>{if(e_(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Qn(a)},this._options=q(q({},Lj),s),this.modalityDetected=this._modality.pipe(jr(1)),this.modalityChanged=this.modalityDetected.pipe(ds()),t.isBrowser&&r.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,cc),o.addEventListener("mousedown",this._onMousedown,cc),o.addEventListener("touchstart",this._onTouchstart,cc)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,cc),document.removeEventListener("mousedown",this._onMousedown,cc),document.removeEventListener("touchstart",this._onTouchstart,cc))}};e.\u0275fac=function(r){return new(r||e)(w(Le),w(he),w(ae),w(jj,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var jm=function(n){return n[n.IMMEDIATE=0]="IMMEDIATE",n[n.EVENTUAL=1]="EVENTUAL",n}(jm||{}),Bj=new Z("cdk-focus-monitor-default-options"),Nm=In({passive:!0,capture:!0}),Xn=(()=>{let e=class e{constructor(t,r,o,s,a){this._ngZone=t,this._platform=r,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new ue,this._rootNodeFocusAndBlurListener=u=>{let b=Qn(u);for(let y=b;y;y=y.parentElement)u.type==="focus"?this._onFocus(u,y):this._onBlur(u,y)},this._document=s,this._detectionMode=a?.detectionMode||jm.IMMEDIATE}monitor(t,r=!1){let o=ji(t);if(!this._platform.isBrowser||o.nodeType!==1)return se();let s=kS(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return r&&(a.checkChildren=!0),a.subject;let u={checkChildren:r,subject:new ue,rootNode:s};return this._elementInfo.set(o,u),this._registerGlobalListeners(u),u.subject}stopMonitoring(t){let r=ji(t),o=this._elementInfo.get(r);o&&(o.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(o))}focusVia(t,r,o){let s=ji(t),a=this._getDocument().activeElement;s===a?this._getClosestElementsInfo(s).forEach(([u,b])=>this._originChanged(u,r,b)):(this._setOrigin(r),typeof s.focus=="function"&&s.focus(o))}ngOnDestroy(){this._elementInfo.forEach((t,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return this._detectionMode===jm.EVENTUAL||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,r){t.classList.toggle("cdk-focused",!!r),t.classList.toggle("cdk-touch-focused",r==="touch"),t.classList.toggle("cdk-keyboard-focused",r==="keyboard"),t.classList.toggle("cdk-mouse-focused",r==="mouse"),t.classList.toggle("cdk-program-focused",r==="program")}_setOrigin(t,r=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=t,this._originFromTouchInteraction=t==="touch"&&r,this._detectionMode===jm.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?YS:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(t,r){let o=this._elementInfo.get(r),s=Qn(t);!o||!o.checkChildren&&r!==s||this._originChanged(r,this._getFocusOrigin(s),o)}_onBlur(t,r){let o=this._elementInfo.get(r);!o||o.checkChildren&&t.relatedTarget instanceof Node&&r.contains(t.relatedTarget)||(this._setClasses(r),this._emitOrigin(o,null))}_emitOrigin(t,r){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(r))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;let r=t.rootNode,o=this._rootNodeFocusListenerCount.get(r)||0;o||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,Nm),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,Nm)}),this._rootNodeFocusListenerCount.set(r,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ce(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(t){let r=t.rootNode;if(this._rootNodeFocusListenerCount.has(r)){let o=this._rootNodeFocusListenerCount.get(r);o>1?this._rootNodeFocusListenerCount.set(r,o-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Nm),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Nm),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,r,o){this._setClasses(t,r),this._emitOrigin(o,r),this._lastFocusOrigin=r}_getClosestElementsInfo(t){let r=[];return this._elementInfo.forEach((o,s)=>{(s===t||o.checkChildren&&s.contains(t))&&r.push([s,o])}),r}_isLastInteractionFromInputLabel(t){let{_mostRecentTarget:r,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!r||r===t||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA"||t.disabled)return!1;let s=t.labels;if(s){for(let a=0;a<s.length;a++)if(s[a].contains(r))return!0}return!1}};e.\u0275fac=function(r){return new(r||e)(w(he),w(Le),w(Vj),w(ae,8),w(Bj,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),QS=(()=>{let e=class e{constructor(t,r){this._elementRef=t,this._focusMonitor=r,this._focusOrigin=null,this.cdkFocusChange=new Q}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,t.nodeType===1&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(r=>{this._focusOrigin=r,this.cdkFocusChange.emit(r)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(l(S),l(Xn))},e.\u0275dir=G({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0});let n=e;return n})(),Cs=function(n){return n[n.NONE=0]="NONE",n[n.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",n[n.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",n}(Cs||{}),US="cdk-high-contrast-black-on-white",$S="cdk-high-contrast-white-on-black",Q0="cdk-high-contrast-active",t_=(()=>{let e=class e{constructor(t,r){this._platform=t,this._document=r,this._breakpointSubscription=M(BS).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Cs.NONE;let t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);let r=this._document.defaultView||window,o=r&&r.getComputedStyle?r.getComputedStyle(t):null,s=(o&&o.backgroundColor||"").replace(/ /g,"");switch(t.remove(),s){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Cs.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Cs.BLACK_ON_WHITE}return Cs.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let t=this._document.body.classList;t.remove(Q0,US,$S),this._hasCheckedHighContrastMode=!0;let r=this.getHighContrastMode();r===Cs.BLACK_ON_WHITE?t.add(Q0,US):r===Cs.WHITE_ON_BLACK&&t.add(Q0,$S)}}};e.\u0275fac=function(r){return new(r||e)(w(Le),w(ae))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Hm=(()=>{let e=class e{constructor(t){t._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(r){return new(r||e)(w(t_))},e.\u0275mod=H({type:e}),e.\u0275inj=z({imports:[Pm]});let n=e;return n})();function zj(n,e){}var Es=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}};var n_=(()=>{let e=class e extends sc{constructor(t,r,o,s,a,u,b,y){super(),this._elementRef=t,this._focusTrapFactory=r,this._config=s,this._interactivityChecker=a,this._ngZone=u,this._overlayRef=b,this._focusMonitor=y,this._platform=M(Le),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=M(ee),this.attachDomPortal=I=>{this._portalOutlet.hasAttached();let N=this._portalOutlet.attachDomPortal(I);return this._contentAttached(),N},this._document=o,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(t){this._ariaLabelledByQueue.push(t),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(t){let r=this._ariaLabelledByQueue.indexOf(t);r>-1&&(this._ariaLabelledByQueue.splice(r,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(t){this._portalOutlet.hasAttached();let r=this._portalOutlet.attachComponentPortal(t);return this._contentAttached(),r}attachTemplatePortal(t){this._portalOutlet.hasAttached();let r=this._portalOutlet.attachTemplatePortal(t);return this._contentAttached(),r}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(t,r){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{t.removeEventListener("blur",o),t.removeEventListener("mousedown",o),t.removeAttribute("tabindex")};t.addEventListener("blur",o),t.addEventListener("mousedown",o)})),t.focus(r)}_focusByCssSelector(t,r){let o=this._elementRef.nativeElement.querySelector(t);o&&this._forceFocus(o,r)}_trapFocus(){let t=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||t.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElementWhenReady().then(r=>{r||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}}_restoreFocus(){let t=this._config.restoreFocus,r=null;if(typeof t=="string"?r=this._document.querySelector(t):typeof t=="boolean"?r=t?this._elementFocusedBeforeDialogWasOpened:null:t&&(r=t),this._config.restoreFocus&&r&&typeof r.focus=="function"){let o=xd(),s=this._elementRef.nativeElement;(!o||o===this._document.body||o===s||s.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(r,this._closeInteractionType),this._closeInteractionType=null):r.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let t=this._elementRef.nativeElement,r=xd();return t===r||t.contains(r)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=xd()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}};e.\u0275fac=function(r){return new(r||e)(l(S),l(zm),l(ae,8),l(Es),l(Is),l(he),l(Ur),l(Xn))},e.\u0275cmp=k({type:e,selectors:[["cdk-dialog-container"]],viewQuery:function(r,o){if(r&1&&$(Hr,7),r&2){let s;V(s=B())&&(o._portalOutlet=s.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(r,o){r&2&&Me("id",o._config.id||null)("role",o._config.role)("aria-modal",o._config.ariaModal)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null)},standalone:!0,features:[R,oe],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,o){r&1&&j(0,zj,0,0,"ng-template",0)},dependencies:[Hr],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2});let n=e;return n})(),Sd=class{constructor(e,i){this.overlayRef=e,this.config=i,this.closed=new ue,this.disableClose=i.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=i.id,this.keydownEvents.subscribe(t=>{t.keyCode===27&&!this.disableClose&&!_r(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=e.detachments().subscribe(()=>{i.closeOnOverlayDetachments!==!1&&this.close()})}close(e,i){if(this.containerInstance){let t=this.closed;this.containerInstance._closeInteractionType=i?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),t.next(e),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e="",i=""){return this.overlayRef.updateSize({width:e,height:i}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}},Hj=new Z("DialogScrollStrategy",{providedIn:"root",factory:()=>{let n=M(pi);return()=>n.scrollStrategies.block()}}),Uj=new Z("DialogData"),$j=new Z("DefaultDialogConfig");var Gj=0,KS=(()=>{let e=class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(t,r,o,s,a,u){this._overlay=t,this._injector=r,this._defaultOptions=o,this._parentDialog=s,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ue,this._afterOpenedAtThisLevel=new ue,this._ariaHiddenElements=new Map,this.afterAllClosed=ls(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(tn(void 0))),this._scrollStrategy=u}open(t,r){let o=this._defaultOptions||new Es;r=q(q({},o),r),r.id=r.id||`cdk-dialog-${Gj++}`,r.id&&this.getDialogById(r.id);let s=this._getOverlayConfig(r),a=this._overlay.create(s),u=new Sd(a,r),b=this._attachContainer(a,u,r);return u.containerInstance=b,this._attachDialogContent(t,u,b,r),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(u),u.closed.subscribe(()=>this._removeOpenDialog(u,!0)),this.afterOpened.next(u),u}closeAll(){i_(this.openDialogs,t=>t.close())}getDialogById(t){return this.openDialogs.find(r=>r.id===t)}ngOnDestroy(){i_(this._openDialogsAtThisLevel,t=>{t.config.closeOnDestroy===!1&&this._removeOpenDialog(t,!1)}),i_(this._openDialogsAtThisLevel,t=>t.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(t){let r=new kd({positionStrategy:t.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,width:t.width,height:t.height,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(r.backdropClass=t.backdropClass),r}_attachContainer(t,r,o){let s=o.injector||o.viewContainerRef?.injector,a=[{provide:Es,useValue:o},{provide:Sd,useValue:r},{provide:Ur,useValue:t}],u;o.container?typeof o.container=="function"?u=o.container:(u=o.container.type,a.push(...o.container.providers(o))):u=n_;let b=new Ao(u,o.viewContainerRef,ye.create({parent:s||this._injector,providers:a}),o.componentFactoryResolver);return t.attach(b).instance}_attachDialogContent(t,r,o,s){if(t instanceof Be){let a=this._createInjector(s,r,o,void 0),u={$implicit:s.data,dialogRef:r};s.templateContext&&(u=q(q({},u),typeof s.templateContext=="function"?s.templateContext():s.templateContext)),o.attachTemplatePortal(new zr(t,null,u,a))}else{let a=this._createInjector(s,r,o,this._injector),u=o.attachComponentPortal(new Ao(t,s.viewContainerRef,a,s.componentFactoryResolver));r.componentRef=u,r.componentInstance=u.instance}}_createInjector(t,r,o,s){let a=t.injector||t.viewContainerRef?.injector,u=[{provide:Uj,useValue:t.data},{provide:Sd,useValue:r}];return t.providers&&(typeof t.providers=="function"?u.push(...t.providers(r,t,o)):u.push(...t.providers)),t.direction&&(!a||!a.get(xi,null,{optional:!0}))&&u.push({provide:xi,useValue:{value:t.direction,change:se()}}),ye.create({parent:a||s,providers:u})}_removeOpenDialog(t,r){let o=this.openDialogs.indexOf(t);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((s,a)=>{s?a.setAttribute("aria-hidden",s):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),r&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let t=this._overlayContainer.getContainerElement();if(t.parentElement){let r=t.parentElement.children;for(let o=r.length-1;o>-1;o--){let s=r[o];s!==t&&s.nodeName!=="SCRIPT"&&s.nodeName!=="STYLE"&&!s.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(s,s.getAttribute("aria-hidden")),s.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}};e.\u0275fac=function(r){return new(r||e)(w(pi),w(ye),w($j,8),w(e,12),w(ac),w(Hj))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function i_(n,e){let i=n.length;for(;i--;)e(n[i])}var Wj=["mat-internal-form-field",""],qj=["*"];function Yj(){return!0}var Qj=new Z("mat-sanity-checks",{providedIn:"root",factory:Yj}),et=(()=>{let e=class e{constructor(t,r,o){this._sanityChecks=r,this._document=o,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return Cd()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[t]}};e.\u0275fac=function(r){return new(r||e)(w(t_),w(Qj,8),w(ae))},e.\u0275mod=H({type:e}),e.\u0275inj=z({imports:[Ro,Ro]});let n=e;return n})();var $m=class{constructor(e,i,t,r,o){this._defaultMatcher=e,this.ngControl=i,this._parentFormGroup=t,this._parentForm=r,this._stateChanges=o,this.errorState=!1}updateErrorState(){let e=this.errorState,i=this._parentFormGroup||this._parentForm,t=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=t?.isErrorState(r,i)??!1;o!==e&&(this.errorState=o,this._stateChanges.next())}};var oD=(()=>{let e=class e{isErrorState(t,r){return!!(t&&t.invalid&&(t.touched||r&&r.submitted))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var En=function(n){return n[n.FADING_IN=0]="FADING_IN",n[n.VISIBLE=1]="VISIBLE",n[n.FADING_OUT=2]="FADING_OUT",n[n.HIDDEN=3]="HIDDEN",n}(En||{}),s_=class{constructor(e,i,t,r=!1){this._renderer=e,this.element=i,this.config=t,this._animationForciblyDisabledThroughCss=r,this.state=En.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},XS=In({passive:!0,capture:!0}),a_=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let i=Qn(e);i&&this._events.get(e.type)?.forEach((t,r)=>{(r===i||r.contains(i))&&t.forEach(o=>o.handleEvent(e))})}}addHandler(e,i,t,r){let o=this._events.get(i);if(o){let s=o.get(t);s?s.add(r):o.set(t,new Set([r]))}else this._events.set(i,new Map([[t,new Set([r])]])),e.runOutsideAngular(()=>{document.addEventListener(i,this._delegateEventHandler,XS)})}removeHandler(e,i,t){let r=this._events.get(e);if(!r)return;let o=r.get(i);o&&(o.delete(t),o.size===0&&r.delete(i),r.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,XS)))}},ZS={enterDuration:225,exitDuration:150},Kj=800,JS=In({passive:!0,capture:!0}),eD=["mousedown","touchstart"],tD=["mouseup","mouseleave","touchend","touchcancel"],Td=class Td{constructor(e,i,t,r){this._target=e,this._ngZone=i,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=ji(t))}fadeInRipple(e,i,t={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=q(q({},ZS),t.animation);t.centered&&(e=r.left+r.width/2,i=r.top+r.height/2);let s=t.radius||Xj(e,i,r),a=e-r.left,u=i-r.top,b=o.enterDuration,y=document.createElement("div");y.classList.add("mat-ripple-element"),y.style.left=`${a-s}px`,y.style.top=`${u-s}px`,y.style.height=`${s*2}px`,y.style.width=`${s*2}px`,t.color!=null&&(y.style.backgroundColor=t.color),y.style.transitionDuration=`${b}ms`,this._containerElement.appendChild(y);let I=window.getComputedStyle(y),N=I.transitionProperty,K=I.transitionDuration,de=N==="none"||K==="0s"||K==="0s, 0s"||r.width===0&&r.height===0,fe=new s_(this,y,t,de);y.style.transform="scale3d(1, 1, 1)",fe.state=En.FADING_IN,t.persistent||(this._mostRecentTransientRipple=fe);let W=null;return!de&&(b||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let ge=()=>this._finishRippleTransition(fe),Ve=()=>this._destroyRipple(fe);y.addEventListener("transitionend",ge),y.addEventListener("transitioncancel",Ve),W={onTransitionEnd:ge,onTransitionCancel:Ve}}),this._activeRipples.set(fe,W),(de||!b)&&this._finishRippleTransition(fe),fe}fadeOutRipple(e){if(e.state===En.FADING_OUT||e.state===En.HIDDEN)return;let i=e.element,t=q(q({},ZS),e.config.animation);i.style.transitionDuration=`${t.exitDuration}ms`,i.style.opacity="0",e.state=En.FADING_OUT,(e._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let i=ji(e);!this._platform.isBrowser||!i||i===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=i,eD.forEach(t=>{Td._eventManager.addHandler(this._ngZone,t,i,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{tD.forEach(i=>{this._triggerElement.addEventListener(i,this,JS)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===En.FADING_IN?this._startFadeOutTransition(e):e.state===En.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let i=e===this._mostRecentTransientRipple,{persistent:t}=e.config;e.state=En.VISIBLE,!t&&(!i||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let i=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=En.HIDDEN,i!==null&&(e.element.removeEventListener("transitionend",i.onTransitionEnd),e.element.removeEventListener("transitioncancel",i.onTransitionCancel)),e.element.remove()}_onMousedown(e){let i=J0(e),t=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+Kj;!this._target.rippleDisabled&&!i&&!t&&(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!e_(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;let i=e.changedTouches;if(i)for(let t=0;t<i.length;t++)this.fadeInRipple(i[t].clientX,i[t].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(e=>{let i=e.state===En.VISIBLE||e.config.terminateOnPointerUp&&e.state===En.FADING_IN;!e.config.persistent&&i&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(eD.forEach(i=>Td._eventManager.removeHandler(i,e,this)),this._pointerUpEventsRegistered&&(tD.forEach(i=>e.removeEventListener(i,this,JS)),this._pointerUpEventsRegistered=!1))}};Td._eventManager=new a_;var c_=Td;function Xj(n,e,i){let t=Math.max(Math.abs(n-i.left),Math.abs(n-i.right)),r=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(t*t+r*r)}var l_=new Z("mat-ripple-global-options"),$r=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}constructor(t,r,o,s,a){this._elementRef=t,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new c_(this,r,t,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:q(q(q({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,r=0,o){return typeof t=="number"?this._rippleRenderer.fadeInRipple(t,r,q(q({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,q(q({},this.rippleConfig),t))}};e.\u0275fac=function(r){return new(r||e)(l(S),l(he),l(Le),l(l_,8),l(lt,8))},e.\u0275dir=G({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(r,o){r&2&&X("mat-ripple-unbounded",o.unbounded)},inputs:{color:[U.None,"matRippleColor","color"],unbounded:[U.None,"matRippleUnbounded","unbounded"],centered:[U.None,"matRippleCentered","centered"],radius:[U.None,"matRippleRadius","radius"],animation:[U.None,"matRippleAnimation","animation"],disabled:[U.None,"matRippleDisabled","disabled"],trigger:[U.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let n=e;return n})(),sD=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=H({type:e}),e.\u0275inj=z({imports:[et,et]});let n=e;return n})();var iD={capture:!0},nD=["focus","click","mouseenter","touchstart"],r_="mat-ripple-loader-uninitialized",o_="mat-ripple-loader-class-name",rD="mat-ripple-loader-centered",Um="mat-ripple-loader-disabled",aD=(()=>{let e=class e{constructor(){this._document=M(ae,{optional:!0}),this._animationMode=M(lt,{optional:!0}),this._globalRippleOptions=M(l_,{optional:!0}),this._platform=M(Le),this._ngZone=M(he),this._hosts=new Map,this._onInteraction=t=>{if(!(t.target instanceof HTMLElement))return;let o=t.target.closest(`[${r_}]`);o&&this._createRipple(o)},this._ngZone.runOutsideAngular(()=>{for(let t of nD)this._document?.addEventListener(t,this._onInteraction,iD)})}ngOnDestroy(){let t=this._hosts.keys();for(let r of t)this.destroyRipple(r);for(let r of nD)this._document?.removeEventListener(r,this._onInteraction,iD)}configureRipple(t,r){t.setAttribute(r_,""),(r.className||!t.hasAttribute(o_))&&t.setAttribute(o_,r.className||""),r.centered&&t.setAttribute(rD,""),r.disabled&&t.setAttribute(Um,"")}getRipple(t){return this._hosts.get(t)||this._createRipple(t)}setDisabled(t,r){let o=this._hosts.get(t);if(o){o.disabled=r;return}r?t.setAttribute(Um,""):t.removeAttribute(Um)}_createRipple(t){if(!this._document)return;let r=this._hosts.get(t);if(r)return r;t.querySelector(".mat-ripple")?.remove();let o=this._document.createElement("span");o.classList.add("mat-ripple",t.getAttribute(o_)),t.append(o);let s=new $r(new S(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return s._isInitialized=!0,s.trigger=t,s.centered=t.hasAttribute(rD),s.disabled=t.hasAttribute(Um),this.attachRipple(t,s),s}attachRipple(t,r){t.removeAttribute(r_),this._hosts.set(t,r)}destroyRipple(t){let r=this._hosts.get(t);r&&(r.ngOnDestroy(),this._hosts.delete(t))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Gm=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=k({type:e,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(r,o){r&2&&X("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[oe],attrs:Wj,ngContentSelectors:qj,decls:1,vars:0,template:function(r,o){r&1&&(Ke(),Oe(0))},styles:[".mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-form-field{font-family:var(--mdc-form-field-label-text-font);line-height:var(--mdc-form-field-label-text-line-height);font-size:var(--mdc-form-field-label-text-size);font-weight:var(--mdc-form-field-label-text-weight);letter-spacing:var(--mdc-form-field-label-text-tracking);color:var(--mdc-form-field-label-text-color)}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0});let n=e;return n})();function Jj(n,e){}var Md=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}},d_="mdc-dialog--open",cD="mdc-dialog--opening",lD="mdc-dialog--closing",eL=150,tL=75,iL=(()=>{let e=class e extends n_{constructor(t,r,o,s,a,u,b,y,I){super(t,r,o,s,a,u,b,I),this._animationMode=y,this._animationStateChanged=new Q,this._animationsEnabled=this._animationMode!=="NoopAnimations",this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?uD(this._config.enterAnimationDuration)??eL:0,this._exitAnimationDuration=this._animationsEnabled?uD(this._config.exitAnimationDuration)??tL:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(dD,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(cD,d_)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(d_),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(d_),this._animationsEnabled?(this._hostElement.style.setProperty(dD,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(lD)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(t){this._actionSectionCount+=t,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(cD,lD)}_waitForAnimationToComplete(t,r){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(r,t)}_requestAnimationFrame(t){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(t):t()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(t){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(t){let r=super.attachComponentPortal(t);return r.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),r}};e.\u0275fac=function(r){return new(r||e)(l(S),l(zm),l(ae,8),l(Md),l(Is),l(he),l(Ur),l(lt,8),l(Xn))},e.\u0275cmp=k({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(r,o){r&2&&(Ai("id",o._config.id),Me("aria-modal",o._config.ariaModal)("role",o._config.role)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null),X("_mat-animation-noopable",!o._animationsEnabled)("mat-mdc-dialog-container-with-actions",o._actionSectionCount>0))},standalone:!0,features:[R,oe],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(r,o){r&1&&(f(0,"div",0)(1,"div",1),j(2,Jj,0,0,"ng-template",2),v()())},dependencies:[Hr],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0;transform:scale(0.8)}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--closing .mdc-dialog__surface{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{opacity:1}.mdc-dialog--open .mdc-dialog__surface{transform:none}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{width:100%;height:100%}.mat-mdc-dialog-component-host{display:contents}.mat-mdc-dialog-container{--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition:opacity linear var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container .mdc-dialog__surface{transition:transform var(--mat-dialog-transition-duration, 0ms) 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container,.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__surface{transition:none}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-title{padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2});let n=e;return n})(),dD="--mat-dialog-transition-duration";function uD(n){return n==null?null:typeof n=="number"?n:n.endsWith("ms")?qn(n.substring(0,n.length-2)):n.endsWith("s")?qn(n.substring(0,n.length-1))*1e3:n==="0"?0:null}var Wm=function(n){return n[n.OPEN=0]="OPEN",n[n.CLOSING=1]="CLOSING",n[n.CLOSED=2]="CLOSED",n}(Wm||{}),u_=class{constructor(e,i,t){this._ref=e,this._containerInstance=t,this._afterOpened=new ue,this._beforeClosed=new ue,this._state=Wm.OPEN,this.disableClose=i.disableClose,this.id=e.id,e.addPanelClass("mat-mdc-dialog-panel"),t._animationStateChanged.pipe(Je(r=>r.state==="opened"),gt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe(Je(r=>r.state==="closed"),gt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),yi(this.backdropClick(),this.keydownEvents().pipe(Je(r=>r.keyCode===27&&!this.disableClose&&!_r(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),nL(this,r.type==="keydown"?"keyboard":"mouse"))})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(Je(i=>i.state==="closing"),gt(1)).subscribe(i=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),i.totalTime+100)}),this._state=Wm.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(e){let i=this._ref.config.positionStrategy;return e&&(e.left||e.right)?e.left?i.left(e.left):i.right(e.right):i.centerHorizontally(),e&&(e.top||e.bottom)?e.top?i.top(e.top):i.bottom(e.bottom):i.centerVertically(),this._ref.updatePosition(),this}updateSize(e="",i=""){return this._ref.updateSize(e,i),this}addPanelClass(e){return this._ref.addPanelClass(e),this}removePanelClass(e){return this._ref.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=Wm.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function nL(n,e,i){return n._closeInteractionType=e,n.close(i)}var h_=new Z("MatMdcDialogData"),rL=new Z("mat-mdc-dialog-default-options"),oL=new Z("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let n=M(pi);return()=>n.scrollStrategies.block()}});var sL=0,dc=(()=>{let e=class e{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(t,r,o,s,a,u,b,y){this._overlay=t,this._defaultOptions=s,this._scrollStrategy=a,this._parentDialog=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ue,this._afterOpenedAtThisLevel=new ue,this.dialogConfigClass=Md,this.afterAllClosed=ls(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(tn(void 0))),this._dialog=r.get(KS),this._dialogRefConstructor=u_,this._dialogContainerType=iL,this._dialogDataToken=h_}open(t,r){let o;r=q(q({},this._defaultOptions||new Md),r),r.id=r.id||`mat-mdc-dialog-${sL++}`,r.scrollStrategy=r.scrollStrategy||this._scrollStrategy();let s=this._dialog.open(t,st(q({},r),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:r},{provide:Es,useValue:r}]},templateContext:()=>({dialogRef:o}),providers:(a,u,b)=>(o=new this._dialogRefConstructor(a,r,b),o.updatePosition(r?.position),[{provide:this._dialogContainerType,useValue:b},{provide:this._dialogDataToken,useValue:u.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentRef=s.componentRef,o.componentInstance=s.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(o);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(r=>r.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(t){let r=t.length;for(;r--;)t[r].close()}};e.\u0275fac=function(r){return new(r||e)(w(pi),w(ye),w(Vr,8),w(rL,8),w(oL),w(e,12),w(ac),w(lt,8))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var qm=(()=>{let e=class e extends Ni{constructor(t){super(),this.dialog=t,this.width="50vw"}openDialog(){return this.component?this.dialog.open(this.component,{width:this.width}):void 0}disposeComponent(){this.component=void 0}};e.\u0275fac=function(r){return new(r||e)(w(dc))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var uc=(()=>{let e=class e extends Ni{constructor(){super(...arguments),this.actions=[]}get count(){return this.actions.length}get any(){return this.count>0}add(t){this.actions.push(t)}removeAll(){this.actions=[]}executeAll(){this.actions.forEach(t=>t())}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var hc=(()=>{let e=class e extends Ni{constructor(){super(...arguments),this.actions=[]}get count(){return this.actions.length}get any(){return this.count>0}add(t){this.actions.push(t)}removeAll(){this.actions=[]}executeAll(){this.actions.forEach(t=>t())}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var kn=(()=>{let e=class e{constructor(){this.refreshService=M(Cn),this.creationService=M(qm),this.updateService=M(Mo),this.transferService=M(uc),this.deletionService=M(hc),this.buttonVisibilityService=M(tc),this.refreshService.removeAll(),this.creationService.disposeComponent(),this.updateService.any&&this.updateService.executeAllAsync().then(),this.transferService.any&&this.transferService.removeAll(),this.deletionService.any&&this.deletionService.removeAll()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=k({type:e,selectors:[["app-base-page"]],standalone:!0,features:[oe],decls:2,vars:0,template:function(r,o){r&1&&(f(0,"p"),T(1,"base-page works!"),v())}});let n=e;return n})();var hD=(()=>{let e=class e extends kn{ngAfterViewInit(){this.buttonVisibilityService.setVisibleOnly()}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275cmp=k({type:e,selectors:[["app-home"]],standalone:!0,features:[R,oe],decls:10,vars:0,consts:[[1,"container","pt-5"],[1,"row","justify-content-center","mt-5"],[1,"text-center"],["src","../../assets/img/Huhn_andersrum.webp","height","300vh"],[2,"font-size","500%"],[2,"font-weight","normal"]],template:function(r,o){r&1&&(f(0,"div",0)(1,"div",1)(2,"div",2),C(3,"img",3),v()(),f(4,"div",1)(5,"div",2)(6,"h1",4),T(7,"Digital Data - User Manager"),v(),f(8,"h5",5),T(9,"Ein zentrales Portal zur effizienten Verwaltung von Benutzerberechtigungen, Gruppen und Modulen"),v()()()())},encapsulation:2});let n=e;return n})();var $D=Un(xn());var yD=(()=>{let e=class e{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}};e.\u0275fac=function(r){return new(r||e)(l(ut),l(S))},e.\u0275dir=G({type:e});let n=e;return n})(),wD=(()=>{let e=class e extends yD{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275dir=G({type:e,features:[R]});let n=e;return n})(),Wr=new Z("");var dL={provide:Wr,useExisting:Pt(()=>gi),multi:!0};function uL(){let n=ps()?ps().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}var hL=new Z(""),gi=(()=>{let e=class e extends yD{constructor(t,r,o){super(t,r),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!uL())}writeValue(t){let r=t??"";this.setProperty("value",r)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}};e.\u0275fac=function(r){return new(r||e)(l(ut),l(S),l(hL,8))},e.\u0275dir=G({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&E("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[_e([dL]),R]});let n=e;return n})();function Fo(n){return n==null||(typeof n=="string"||Array.isArray(n))&&n.length===0}function xD(n){return n!=null&&typeof n.length=="number"}var Jn=new Z(""),Od=new Z(""),mL=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,sn=class{static min(e){return pL(e)}static max(e){return gL(e)}static required(e){return CD(e)}static requiredTrue(e){return fL(e)}static email(e){return bL(e)}static minLength(e){return vL(e)}static maxLength(e){return ID(e)}static pattern(e){return _L(e)}static nullValidator(e){return Qm(e)}static compose(e){return MD(e)}static composeAsync(e){return RD(e)}};function pL(n){return e=>{if(Fo(e.value)||Fo(n))return null;let i=parseFloat(e.value);return!isNaN(i)&&i<n?{min:{min:n,actual:e.value}}:null}}function gL(n){return e=>{if(Fo(e.value)||Fo(n))return null;let i=parseFloat(e.value);return!isNaN(i)&&i>n?{max:{max:n,actual:e.value}}:null}}function CD(n){return Fo(n.value)?{required:!0}:null}function fL(n){return n.value===!0?null:{required:!0}}function bL(n){return Fo(n.value)||mL.test(n.value)?null:{email:!0}}function vL(n){return e=>Fo(e.value)||!xD(e.value)?null:e.value.length<n?{minlength:{requiredLength:n,actualLength:e.value.length}}:null}function ID(n){return e=>xD(e.value)&&e.value.length>n?{maxlength:{requiredLength:n,actualLength:e.value.length}}:null}function _L(n){if(!n)return Qm;let e,i;return typeof n=="string"?(i="",n.charAt(0)!=="^"&&(i+="^"),i+=n,n.charAt(n.length-1)!=="$"&&(i+="$"),e=new RegExp(i)):(i=n.toString(),e=n),t=>{if(Fo(t.value))return null;let r=t.value;return e.test(r)?null:{pattern:{requiredPattern:i,actualValue:r}}}}function Qm(n){return null}function ED(n){return n!=null}function kD(n){return $h(n)?Xt(n):n}function SD(n){let e={};return n.forEach(i=>{e=i!=null?q(q({},e),i):e}),Object.keys(e).length===0?null:e}function DD(n,e){return e.map(i=>i(n))}function yL(n){return!n.validate}function TD(n){return n.map(e=>yL(e)?e:i=>e.validate(i))}function MD(n){if(!n)return null;let e=n.filter(ED);return e.length==0?null:function(i){return SD(DD(i,e))}}function b_(n){return n!=null?MD(TD(n)):null}function RD(n){if(!n)return null;let e=n.filter(ED);return e.length==0?null:function(i){let t=DD(i,e).map(kD);return vn(t).pipe(Se(SD))}}function v_(n){return n!=null?RD(TD(n)):null}function mD(n,e){return n===null?[e]:Array.isArray(n)?[...n,e]:[n,e]}function AD(n){return n._rawValidators}function FD(n){return n._rawAsyncValidators}function p_(n){return n?Array.isArray(n)?n:[n]:[]}function Km(n,e){return Array.isArray(n)?n.includes(e):n===e}function pD(n,e){let i=p_(e);return p_(n).forEach(r=>{Km(i,r)||i.push(r)}),i}function gD(n,e){return p_(e).filter(i=>!Km(n,i))}var Xm=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=b_(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=v_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,i){return this.control?this.control.hasError(e,i):!1}getError(e,i){return this.control?this.control.getError(e,i):null}},Gr=class extends Xm{get formDirective(){return null}get path(){return null}},Zn=class extends Xm{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Zm=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},wL={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},DY=st(q({},wL),{"[class.ng-submitted]":"isSubmitted"}),Vi=(()=>{let e=class e extends Zm{constructor(t){super(t)}};e.\u0275fac=function(r){return new(r||e)(l(Zn,2))},e.\u0275dir=G({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&X("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[R]});let n=e;return n})(),yr=(()=>{let e=class e extends Zm{constructor(t){super(t)}};e.\u0275fac=function(r){return new(r||e)(l(Gr,10))},e.\u0275dir=G({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&X("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[R]});let n=e;return n})();var Rd="VALID",Ym="INVALID",mc="PENDING",Ad="DISABLED";function __(n){return(ip(n)?n.validators:n)||null}function xL(n){return Array.isArray(n)?b_(n):n||null}function y_(n,e){return(ip(e)?e.asyncValidators:n)||null}function CL(n){return Array.isArray(n)?v_(n):n||null}function ip(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function PD(n,e,i){let t=n.controls;if(!(e?Object.keys(t):t).length)throw new Ye(1e3,"");if(!t[i])throw new Ye(1001,"")}function OD(n,e,i){n._forEachChild((t,r)=>{if(i[r]===void 0)throw new Ye(1002,"")})}var pc=class{constructor(e,i){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(i)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===Rd}get invalid(){return this.status===Ym}get pending(){return this.status==mc}get disabled(){return this.status===Ad}get enabled(){return this.status!==Ad}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(pD(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(pD(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(gD(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(gD(e,this._rawAsyncValidators))}hasValidator(e){return Km(this._rawValidators,e)}hasAsyncValidator(e){return Km(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(i=>{i.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=mc,e.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=Ad,this.errors=null,this._forEachChild(t=>{t.disable(st(q({},e),{onlySelf:!0}))}),this._updateValue(),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(st(q({},e),{skipPristineCheck:i})),this._onDisabledChange.forEach(t=>t(!0))}enable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=Rd,this._forEachChild(t=>{t.enable(st(q({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(st(q({},e),{skipPristineCheck:i})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Rd||this.status===mc)&&this._runAsyncValidator(e.emitEvent)),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(i=>i._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ad:Rd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=mc,this._hasOwnPendingAsyncValidator=!0;let i=kD(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,i={}){this.errors=e,this._updateControlsErrors(i.emitEvent!==!1)}get(e){let i=e;return i==null||(Array.isArray(i)||(i=i.split(".")),i.length===0)?null:i.reduce((t,r)=>t&&t._find(r),this)}getError(e,i){let t=i?this.get(i):this;return t&&t.errors?t.errors[e]:null}hasError(e,i){return!!this.getError(e,i)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new Q,this.statusChanges=new Q}_calculateStatus(){return this._allControlsDisabled()?Ad:this.errors?Ym:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(mc)?mc:this._anyControlsHaveStatus(Ym)?Ym:Rd}_anyControlsHaveStatus(e){return this._anyControls(i=>i.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){ip(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let i=this._parent&&this._parent.dirty;return!e&&!!i&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=xL(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=CL(this._rawAsyncValidators)}},gc=class extends pc{constructor(e,i,t){super(__(i),y_(t,i)),this.controls=e,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,i){return this.controls[e]?this.controls[e]:(this.controls[e]=i,i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange),i)}addControl(e,i,t={}){this.registerControl(e,i),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(e,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}setControl(e,i,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],i&&this.registerControl(e,i),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,i={}){OD(this,!0,e),Object.keys(e).forEach(t=>{PD(this,!0,t),this.controls[t].setValue(e[t],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(e,i={}){e!=null&&(Object.keys(e).forEach(t=>{let r=this.controls[t];r&&r.patchValue(e[t],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(e={},i={}){this._forEachChild((t,r)=>{t.reset(e?e[r]:null,{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i),this._updateTouched(i),this.updateValueAndValidity(i)}getRawValue(){return this._reduceChildren({},(e,i,t)=>(e[t]=i.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(i,t)=>t._syncPendingControls()?!0:i);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(i=>{let t=this.controls[i];t&&e(t,i)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[i,t]of Object.entries(this.controls))if(this.contains(i)&&e(t))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(i,t,r)=>((t.enabled||this.disabled)&&(i[r]=t.value),i))}_reduceChildren(e,i){let t=e;return this._forEachChild((r,o)=>{t=i(t,r,o)}),t}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var g_=class extends gc{};var fc=new Z("CallSetDisabledState",{providedIn:"root",factory:()=>np}),np="always";function ND(n,e){return[...e.path,n]}function Pd(n,e,i=np){w_(n,e),e.valueAccessor.writeValue(n.value),(n.disabled||i==="always")&&e.valueAccessor.setDisabledState?.(n.disabled),EL(n,e),SL(n,e),kL(n,e),IL(n,e)}function Jm(n,e,i=!0){let t=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(t),e.valueAccessor.registerOnTouched(t)),tp(n,e),n&&(e._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function ep(n,e){n.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(e)})}function IL(n,e){if(e.valueAccessor.setDisabledState){let i=t=>{e.valueAccessor.setDisabledState(t)};n.registerOnDisabledChange(i),e._registerOnDestroy(()=>{n._unregisterOnDisabledChange(i)})}}function w_(n,e){let i=AD(n);e.validator!==null?n.setValidators(mD(i,e.validator)):typeof i=="function"&&n.setValidators([i]);let t=FD(n);e.asyncValidator!==null?n.setAsyncValidators(mD(t,e.asyncValidator)):typeof t=="function"&&n.setAsyncValidators([t]);let r=()=>n.updateValueAndValidity();ep(e._rawValidators,r),ep(e._rawAsyncValidators,r)}function tp(n,e){let i=!1;if(n!==null){if(e.validator!==null){let r=AD(n);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==e.validator);o.length!==r.length&&(i=!0,n.setValidators(o))}}if(e.asyncValidator!==null){let r=FD(n);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==e.asyncValidator);o.length!==r.length&&(i=!0,n.setAsyncValidators(o))}}}let t=()=>{};return ep(e._rawValidators,t),ep(e._rawAsyncValidators,t),i}function EL(n,e){e.valueAccessor.registerOnChange(i=>{n._pendingValue=i,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn==="change"&&jD(n,e)})}function kL(n,e){e.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn==="blur"&&n._pendingChange&&jD(n,e),n.updateOn!=="submit"&&n.markAsTouched()})}function jD(n,e){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function SL(n,e){let i=(t,r)=>{e.valueAccessor.writeValue(t),r&&e.viewToModelUpdate(t)};n.registerOnChange(i),e._registerOnDestroy(()=>{n._unregisterOnChange(i)})}function LD(n,e){n==null,w_(n,e)}function DL(n,e){return tp(n,e)}function x_(n,e){if(!n.hasOwnProperty("model"))return!1;let i=n.model;return i.isFirstChange()?!0:!Object.is(e,i.currentValue)}function TL(n){return Object.getPrototypeOf(n.constructor)===wD}function VD(n,e){n._syncPendingControls(),e.forEach(i=>{let t=i.control;t.updateOn==="submit"&&t._pendingChange&&(i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function C_(n,e){if(!e)return null;Array.isArray(e);let i,t,r;return e.forEach(o=>{o.constructor===gi?i=o:TL(o)?t=o:r=o}),r||t||i||null}function ML(n,e){let i=n.indexOf(e);i>-1&&n.splice(i,1)}var RL={provide:Gr,useExisting:Pt(()=>Nd)},Fd=Promise.resolve(),Nd=(()=>{let e=class e extends Gr{constructor(t,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Q,this.form=new gc({},b_(t),v_(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Fd.then(()=>{let r=this._findContainer(t.path);t.control=r.registerControl(t.name,t.control),Pd(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Fd.then(()=>{let r=this._findContainer(t.path);r&&r.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){Fd.then(()=>{let r=this._findContainer(t.path),o=new gc({});LD(o,t),r.registerControl(t.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Fd.then(()=>{let r=this._findContainer(t.path);r&&r.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,r){Fd.then(()=>{this.form.get(t.path).setValue(r)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,VD(this.form,this._directives),this.ngSubmit.emit(t),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}};e.\u0275fac=function(r){return new(r||e)(l(Jn,10),l(Od,10),l(fc,8))},e.\u0275dir=G({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,o){r&1&&E("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[U.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_e([RL]),R]});let n=e;return n})();function fD(n,e){let i=n.indexOf(e);i>-1&&n.splice(i,1)}function bD(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var Li=class extends pc{constructor(e=null,i,t){super(__(i),y_(t,i)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(i),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ip(i)&&(i.nonNullable||i.initialValueIsDefault)&&(bD(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,i={}){this.value=this._pendingValue=e,this._onChange.length&&i.emitModelToViewChange!==!1&&this._onChange.forEach(t=>t(this.value,i.emitViewToModelChange!==!1)),this.updateValueAndValidity(i)}patchValue(e,i={}){this.setValue(e,i)}reset(e=this.defaultValue,i={}){this._applyFormState(e),this.markAsPristine(i),this.markAsUntouched(i),this.setValue(this.value,i),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){fD(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){fD(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){bD(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var AL=n=>n instanceof Li;var FL={provide:Zn,useExisting:Pt(()=>jd)},vD=Promise.resolve(),jd=(()=>{let e=class e extends Zn{constructor(t,r,o,s,a,u){super(),this._changeDetectorRef=a,this.callSetDisabledState=u,this.control=new Li,this._registered=!1,this.name="",this.update=new Q,this._parent=t,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=C_(this,s)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let r=t.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),x_(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Pd(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){vD.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let r=t.isDisabled.currentValue,o=r!==0&&Ce(r);vD.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?ND(t,this._parent):[t]}};e.\u0275fac=function(r){return new(r||e)(l(Gr,9),l(Jn,10),l(Od,10),l(Wr,10),l(ee,8),l(fc,8))},e.\u0275dir=G({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[U.None,"disabled","isDisabled"],model:[U.None,"ngModel","model"],options:[U.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[_e([FL]),R,re]});let n=e;return n})(),wr=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=G({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let n=e;return n})(),PL={provide:Wr,useExisting:Pt(()=>ks),multi:!0},ks=(()=>{let e=class e extends wD{writeValue(t){let r=t??"";this.setProperty("value",r)}registerOnChange(t){this.onChange=r=>{t(r==""?null:parseFloat(r))}}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275dir=G({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,o){r&1&&E("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[_e([PL]),R]});let n=e;return n})();var I_=new Z(""),OL={provide:Zn,useExisting:Pt(()=>Ld)},Ld=(()=>{let e=class e extends Zn{set isDisabled(t){}constructor(t,r,o,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new Q,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=C_(this,o)}ngOnChanges(t){if(this._isControlChanged(t)){let r=t.form.previousValue;r&&Jm(r,this,!1),Pd(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}x_(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Jm(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(r){return new(r||e)(l(Jn,10),l(Od,10),l(Wr,10),l(I_,8),l(fc,8))},e.\u0275dir=G({type:e,selectors:[["","formControl",""]],inputs:{form:[U.None,"formControl","form"],isDisabled:[U.None,"disabled","isDisabled"],model:[U.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[_e([OL]),R,re]});let n=e;return n})(),NL={provide:Gr,useExisting:Pt(()=>er)},er=(()=>{let e=class e extends Gr{constructor(t,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Q,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(tp(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){let r=this.form.get(t.path);return Pd(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){Jm(t.control||null,t,!1),ML(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,r){this.form.get(t.path).setValue(r)}onSubmit(t){return this.submitted=!0,VD(this.form,this.directives),this.ngSubmit.emit(t),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{let r=t.control,o=this.form.get(t.path);r!==o&&(Jm(r||null,t),AL(o)&&(Pd(o,t,this.callSetDisabledState),t.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let r=this.form.get(t.path);LD(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){let r=this.form.get(t.path);r&&DL(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){w_(this.form,this),this._oldForm&&tp(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(r){return new(r||e)(l(Jn,10),l(Od,10),l(fc,8))},e.\u0275dir=G({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&E("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[U.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_e([NL]),R,re]});let n=e;return n})();var jL={provide:Zn,useExisting:Pt(()=>qr)},qr=(()=>{let e=class e extends Zn{set isDisabled(t){}constructor(t,r,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new Q,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=C_(this,s)}ngOnChanges(t){this._added||this._setUpControl(),x_(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return ND(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(r){return new(r||e)(l(Gr,13),l(Jn,10),l(Od,10),l(Wr,10),l(I_,8))},e.\u0275dir=G({type:e,selectors:[["","formControlName",""]],inputs:{name:[U.None,"formControlName","name"],isDisabled:[U.None,"disabled","isDisabled"],model:[U.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[_e([jL]),R,re]});let n=e;return n})();function LL(n){return typeof n=="number"?n:parseInt(n,10)}var BD=(()=>{let e=class e{constructor(){this._validator=Qm}ngOnChanges(t){if(this.inputName in t){let r=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Qm,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return t!=null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=G({type:e,features:[re]});let n=e;return n})();var VL={provide:Jn,useExisting:Pt(()=>Ss),multi:!0};var Ss=(()=>{let e=class e extends BD{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Ce,this.createValidator=t=>CD}enabled(t){return t}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275dir=G({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,o){r&2&&Me("required",o._enabled?"":null)},inputs:{required:"required"},features:[_e([VL]),R]});let n=e;return n})();var BL={provide:Jn,useExisting:Pt(()=>E_),multi:!0},E_=(()=>{let e=class e extends BD{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=t=>LL(t),this.createValidator=t=>ID(t)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275dir=G({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&Me("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},features:[_e([BL]),R]});let n=e;return n})();var zD=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=H({type:e}),e.\u0275inj=z({});let n=e;return n})(),f_=class extends pc{constructor(e,i,t){super(__(i),y_(t,i)),this.controls=e,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,i={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}insert(e,i,t={}){this.controls.splice(e,0,i),this._registerControl(i),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(e,i={}){let t=this._adjustIndex(e);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:i.emitEvent})}setControl(e,i,t={}){let r=this._adjustIndex(e);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),i&&(this.controls.splice(r,0,i),this._registerControl(i)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,i={}){OD(this,!1,e),e.forEach((t,r)=>{PD(this,!1,r),this.at(r).setValue(t,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(e,i={}){e!=null&&(e.forEach((t,r)=>{this.at(r)&&this.at(r).patchValue(t,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(e=[],i={}){this._forEachChild((t,r)=>{t.reset(e[r],{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i),this._updateTouched(i),this.updateValueAndValidity(i)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(i=>i._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((i,t)=>t._syncPendingControls()?!0:i,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((i,t)=>{e(i,t)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(i=>i.enabled&&e(i))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};function _D(n){return!!n&&(n.asyncValidators!==void 0||n.validators!==void 0||n.updateOn!==void 0)}var Yr=(()=>{let e=class e{constructor(){this.useNonNullable=!1}get nonNullable(){let t=new e;return t.useNonNullable=!0,t}group(t,r=null){let o=this._reduceControls(t),s={};return _D(r)?s=r:r!==null&&(s.validators=r.validator,s.asyncValidators=r.asyncValidator),new gc(o,s)}record(t,r=null){let o=this._reduceControls(t);return new g_(o,r)}control(t,r,o){let s={};return this.useNonNullable?(_D(r)?s=r:(s.validators=r,s.asyncValidators=o),new Li(t,st(q({},s),{nonNullable:!0}))):new Li(t,r,o)}array(t,r,o){let s=t.map(a=>this._createControl(a));return new f_(s,r,o)}_reduceControls(t){let r={};return Object.keys(t).forEach(o=>{r[o]=this._createControl(t[o])}),r}_createControl(t){if(t instanceof Li)return t;if(t instanceof pc)return t;if(Array.isArray(t)){let r=t[0],o=t.length>1?t[1]:null,s=t.length>2?t[2]:null;return this.control(r,o,s)}else return this.control(t)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var xt=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:[{provide:fc,useValue:t.callSetDisabledState??np}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=H({type:e}),e.\u0275inj=z({imports:[zD]});let n=e;return n})(),Sn=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:[{provide:I_,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:fc,useValue:t.callSetDisabledState??np}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=H({type:e}),e.\u0275inj=z({imports:[zD]});let n=e;return n})();var HD=Un(xn());var $e={production:!1,default_api_url:"/api",routes:{user:"/user",group:"/group",module:"/module",moduleOfUser:"/moduleOfUser",groupOfUser:"/groupOfUser",userRep:"/userRep",dirGroup:"/directory/Group?propName=samaccountname",dirUser:"/directory/user",directory:"/directory",login:"/auth/login",logout:"/auth/logout",loginCheck:"/auth/check"},columnNames:{user:{basic:[{header:"Benutzername",field:"username"},{header:"Vorname",field:"prename"},{header:"Name",field:"name"},{header:"E-email",field:"email"}],detailed:[{header:"Benutzername",field:"username"},{header:"Vorname",field:"prename"},{header:"Name",field:"name"},{header:"E-email",field:"email"},{header:"Kommentar",field:"comment"},{header:"DatumsFormat",field:"dateFormat"},{header:"K\xFCrzel",field:"shortname"},{header:"Hinzugef\xFCgt<br>wer",field:"addedWho"},{header:"Hinzugef\xFCgt<br>wann",field:"addedWhen"},{header:"Ge\xE4ndert<br>wer",field:"changedWho"},{header:"Ge\xE4ndert<br>wann",field:"changedWhen"}]},group:{basic:[{header:"Gruppe",field:"name"}],complete:[{header:"Gruppe",field:"name"},{header:"Kommentar",field:"comment"},{header:"Active",field:n=>n.active?"\u2713":""},{header:"AD Sync",field:n=>n.adSync?"\u2713":""},{header:"Internal",field:n=>n.internal?"\u2713":""},{header:"Hinzugef\xFCgt<br>wer",field:n=>n.addedWho},{header:"Hinzugef\xFCgt<br>wann",field:n=>new Date(n.addedWhen).toLocaleString("de-DE",{day:"2-digit",month:"2-digit",year:"2-digit",hour:"2-digit",minute:"2-digit"}).replace(",","")},{header:"Ge\xE4ndert<br>wer",field:"changedWho"},{header:"Ge\xE4ndert<br>wann",field:n=>new Date(n.changedWhen).toLocaleString("de-DE",{day:"2-digit",month:"2-digit",year:"2-digit",hour:"2-digit",minute:"2-digit"}).replace(",","")}],representative:[{header:"Repr\xE4sentation",field:"name"}],right:[{header:"Richtiger",field:"name"}]},dirGroup:[{header:"SAM-Account-Name",field:n=>n?.samaccountname[0]}],dirUser:[{header:"Benutzername",field:n=>n?.samaccountname?.[0]??""},{header:"Vorname",field:n=>n?.givenname?.[0]??""},{header:"Name",field:n=>n?.sn?.[0]??""},{header:"E-email",field:n=>n?.mail?.[0]??""}],module:[{header:"Produkt",field:"name"},{header:"Kurzname",field:"shortName"}],groupOfUser:[{header:"Benutzername",field:n=>n.user.username},{header:"Gruppen",field:n=>n.group.name}],userRep:[{header:"Repr. Gruppen",field:n=>n.repGroup?.name},{header:"Rechte Gruppen",field:n=>n.rightGroup?.name},{header:"Repr. Benutzer",field:n=>n.repUser?.username}]},config_url:"/assets/config.json"};var Ct=(()=>{let e=class e{constructor(t,r){this.document=t,this.meta=r,this.loaded=!1,this.apiRoute={user:this.getApiUrl($e.routes.user),group:this.getApiUrl($e.routes.group),module:this.getApiUrl($e.routes.module),moduleOfUser:this.getApiUrl($e.routes.moduleOfUser),groupOfUser:this.getApiUrl($e.routes.groupOfUser),userRep:this.getApiUrl($e.routes.userRep),dirGroup:this.getApiUrl($e.routes.dirGroup),dirUser:this.getApiUrl($e.routes.dirUser),directory:this.getApiUrl($e.routes.directory),login:this.getApiUrl($e.routes.login),logout:this.getApiUrl($e.routes.logout),loginCheck:this.getApiUrl($e.routes.loginCheck)}}lazyLoad(){this.loaded||(this.base_href=this.document.querySelector("base")?.getAttribute("href")||"/",this.api_url=this.meta.getTag('name="api-url"')?.content??$e.default_api_url,this.loaded=!0)}getBaseHref(){return this.lazyLoad(),this.base_href}getApiUrl(t=""){return this.lazyLoad(),this.api_url+t}};e.\u0275fac=function(r){return new(r||e)(w(ae),w(Ik))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var vc=(()=>{let e=class e{constructor(t,r,o){this.router=t,this.http=r,this.loginUrl=o.apiRoute.login,this.logoutUrl=o.apiRoute.logout,this.checkUrl=o.apiRoute.loginCheck}isAuthenticated(){return We(this,null,function*(){try{let t=yield Di(this.http.get(this.checkUrl,{withCredentials:!0}));return rp=t,t}catch{return this.showErrorAlert(),!1}})}login(t,r){return new ht(o=>{let s={username:t,password:r};this.http.post(this.loginUrl,s,{withCredentials:!0}).subscribe({next:a=>{rp=!0,o.next(a)},error:a=>{this.showErrorAlert(),o.error(a)},complete:()=>{o.complete()}})})}logout(){return new ht(t=>{this.http.post(this.logoutUrl,{},{withCredentials:!0}).subscribe({next:r=>{this.router.navigate(["/"]),rp=!1,t.next(r)},error:r=>t.error(r),complete:()=>t.complete()})})}showErrorAlert(){HD.default.fire({icon:"error",title:"Oops...",text:"Der Server antwortet nicht."})}};e.\u0275fac=function(r){return new(r||e)(w(Oi),w(Tt),w(Ct))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),rp=!1,UD=()=>rp;var op=(()=>{let e=class e{constructor(t,r){this.authService=t,this.data=r,this.username="",this.password="",this.waitRes=!1,this.IsPwdHidden=!0,this.afterLogin=()=>{},typeof this.afterLogin==typeof r.afterLogin&&(this.afterLogin=r.afterLogin)}login(){this.waitRes=!0,this.authService.login(this.username,this.password).subscribe({next:()=>this.afterLogin(),error:t=>{this.waitRes=!1,$D.default.fire({icon:"error",title:"Ung\xFCltiger Benutzername oder Passwort",text:"Bitte \xFCberpr\xFCfen Sie Ihre Anmeldedaten und versuchen Sie es erneut."})},complete:()=>this.waitRes=!1})}onPasswordEyeClicked(){this.IsPwdHidden=!this.IsPwdHidden}};e.\u0275fac=function(r){return new(r||e)(l(vc),l(h_))},e.\u0275cmp=k({type:e,selectors:[["app-login"]],inputs:{afterLogin:"afterLogin"},standalone:!0,features:[oe],decls:19,vars:8,consts:[[1,"container","p-0","m-0"],[1,"row","justify-content-center","p-0","m-0"],[1,"col","p-0","m-0"],[1,"card","px-5"],[1,"card-body","mx-5","px-5"],[3,"ngSubmit"],[1,"mb-3"],["for","username",1,"form-label"],["type","text","name","Username","required","",1,"form-control",3,"ngModelChange","ngModel"],["for","password",1,"form-label"],[1,"d-flex"],["type","password","name","Password","required","",1,"form-control",3,"ngModelChange","type","ngModel"],[3,"click","ngClass"],["type","submit",1,"btn","btn-primary"],["aria-hidden","true"]],template:function(r,o){r&1&&(f(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"form",5),E("ngSubmit",function(){return o.login()}),f(6,"div",6)(7,"label",7),T(8,"Benutzername"),v(),f(9,"input",8),Bl("ngModelChange",function(a){return Vl(o.username,a)||(o.username=a),a}),v()(),f(10,"div",6)(11,"label",9),T(12,"Kennwort"),v(),f(13,"div",10)(14,"input",11),Bl("ngModelChange",function(a){return Vl(o.password,a)||(o.password=a),a}),v(),f(15,"i",12),E("click",function(){return o.onPasswordEyeClicked()}),v()()(),f(16,"button",13),C(17,"span",14),T(18,"Anmeldung"),v()()()()()()()),r&2&&(p(9),Ll("ngModel",o.username),p(5),g("type",o.IsPwdHidden?"password":"text"),Ll("ngModel",o.password),p(),g("ngClass","bi "+(o.IsPwdHidden?"bi-eye-slash":"bi-eye")+" mt-2"),p(2),X("spinner-border",o.waitRes)("spinner-border-sm",o.waitRes))},dependencies:[J,Dt,xt,wr,gi,Vi,yr,Ss,jd,Nd],styles:["i[_ngcontent-%COMP%]{margin-left:-30px;cursor:pointer}"]});let n=e;return n})();var _c=(()=>{let e=class e{constructor(t,r,o){this.dialog=t,this.authService=r,this.router=o}canActivate(t,r){return We(this,null,function*(){try{let o=yield this.authService.isAuthenticated();return o||this.router.navigate(["/"]),o}catch{return!1}})}openLogin(){let t=this.dialog.open(op,{width:"35vw",data:{afterLogin:()=>{t.close()}}});return t}};e.\u0275fac=function(r){return new(r||e)(w(dc),w(vc),w(Oi))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var sp=class n{token;stringKey;constructor(e){this.token=e,this.stringKey=this.generateStringKey()}static from(e){return new n(e)}toString(){return this.stringKey}generateStringKey(){return typeof this.token!="string"?this.token.toString().split(" ")[1]||"":this.token}},Vd=class extends sp{constructor(e){super(e)}getError(){return typeof this.token=="string"?"Key not found for the token: "+this.token:"Key not found for the token: "+this.token.toString()}},S_=class{records=new Map;getKey(e){let i=this.records.get(e);return i||new Vd(e)}getKeyAndTryRegister(e,i){return this.has(e)||this.set(e,i),this.getKey(e)}has(e){return this.records.has(e)}set(e,i){this.records.set(e,sp.from(e))}clear(){this.records.clear()}},D_=class{providers=new Map;get(e){let i=this.providers.get(e);if(!i)throw new Error(`There is no provider for ${e.toString()}.`);return i}has(e){return this.providers.has(e)}set(e,i){this.providers.set(e,i)}clear(){this.providers.clear()}},yc=class{serviceToken;constructor(e){this.serviceToken=e}getToken(){return typeof this.serviceToken=="object"?this.serviceToken.inject:this.serviceToken}isOptional(){return typeof this.serviceToken!="string"&&typeof this.serviceToken=="object"&&this.serviceToken.optional!==void 0?this.serviceToken.optional:!1}isCollection(){return typeof this.serviceToken!="string"&&typeof this.serviceToken=="object"&&this.serviceToken.collection?this.serviceToken.collection:!1}},Bd=class{provider;constructor(e){this.provider=e}getDeps(){return(this.provider.services||[]).map(e=>new yc(e))}},T_=class extends Bd{constructor(e){super(e)}create(e){return new this.provider(...e)}},M_=class extends Bd{constructor(e){super(e)}getDeps(){return[]}create(e){return this.provider}},R_=class extends Bd{constructor(e){super(e)}getDeps(){return(this.provider.deps||[]).map(e=>new yc(e))}create(e){return this.provider.create(...e)}},zd=class{},A_=class extends zd{providers=[];getDeps(){return this.providers.map(e=>(e.services||[]).map(i=>new yc(i)))}create(e){return e.map((i,t)=>new this.providers[t](...i))}addProvider(e){this.providers.push(e)}},F_=class extends zd{providers=[];getDeps(){return this.providers.map(e=>(e.deps||[]).map(i=>new yc(i)))}create(e){return e.map((i,t)=>this.providers[t].create(...i))}addProvider(e){this.providers.push(e)}},P_=class extends zd{providers=[];getDeps(){return[]}create(e){return[...this.providers]}addProvider(e){this.providers.push(e)}},O_=class{keyRegister;providerManager=new D_;collectionProviders=new Map;constructor(e){this.keyRegister=e}provide(e,i){return i===void 0?this.provide(e,e):this.provideClass(e,i)}provideClass(e,i){return this.addProvider(e,i,t=>new T_(t))}provideValue(e,i){return this.addProvider(e,i,t=>new M_(t))}provideFactory(e,i){return this.addProvider(e,i,t=>new R_(t))}provideCollection(e,i){return this.addCollectionProvider(e,i,()=>new A_)}provideFactoryCollection(e,i){return this.addCollectionProvider(e,i,()=>new F_)}provideValueCollection(e,i){return this.addCollectionProvider(e,i,()=>new P_)}clear(){this.providerManager.clear(),this.collectionProviders.clear()}getRecordFactory(e){return this.providerManager.get(e)}getCollectionRecordFactory(e){return this.collectionProviders.get(e)}addProvider(e,i,t){let r=this.keyRegister.getKeyAndTryRegister(e,i);this.providerManager.set(r,t(i))}addCollectionProvider(e,i,t){let r=this.keyRegister.getKeyAndTryRegister(e,i);if(this.collectionProviders.has(r)){let o=this.collectionProviders.get(r);o&&o.addProvider(i)}else{let o=t();o.addProvider(i),this.collectionProviders.set(r,o)}}},N_=class{records=new Map;get(e){return this.records.get(e)}has(e){return this.records.has(e)}set(e,i){this.records.set(e,i)}clear(){this.records.clear()}},j_=class{keyRegister;containerProvider;recordManager=new N_;collectionRecords=new Map;constructor(e,i){this.keyRegister=e,this.containerProvider=i}resolve(e){return this.innerResolve(e)}resolveCollection(e){return this.innerResolveCollection(e)}clear(){this.recordManager.clear(),this.collectionRecords.clear()}resolveDependencies(e){return e.getDeps().map(t=>t.isCollection()?this.innerResolveCollection(t.getToken(),t.isOptional()):this.resolveDependency(t))}resolveDependency(e){return this.innerResolve(e.getToken(),e.isOptional())}innerResolve(e,i){let t=this.keyRegister.getKey(e);if(t instanceof Vd){if(i)return null;throw new Error(t.getError())}if(!this.recordManager.has(t)){let r=this.containerProvider.getRecordFactory(t),o=this.resolveDependencies(r),s=r.create(o);this.recordManager.set(t,s)}return this.recordManager.get(t)}innerResolveCollection(e,i=!1){let t=this.keyRegister.getKey(e);if(t instanceof Vd){if(i)return null;throw new Error(t.getError())}if(!this.collectionRecords.has(t)){let r=this.containerProvider.getCollectionRecordFactory(t);if(r){let o=r.getDeps().map(a=>a.map(u=>u.isCollection()?this.innerResolveCollection(u.getToken(),u.isOptional()):this.resolveDependency(u))),s=r.create(o);this.collectionRecords.set(t,s)}}return this.collectionRecords.get(t)}},L_=class{keyRegister=new S_;containerProvider=new O_(this.keyRegister);containerRecord=new j_(this.keyRegister,this.containerProvider);resolve(e){return this.containerRecord.resolve(e)}resolveCollection(e){return this.containerRecord.resolveCollection(e)}provide(e,i){return this.containerProvider.provide(e,i),this}provideClass(e,i){return this.containerProvider.provideClass(e,i),this}provideValue(e,i){return this.containerProvider.provideValue(e,i),this}provideFactory(e,i){return this.containerProvider.provideFactory(e,i),this}provideCollection(e,i){return this.containerProvider.provideCollection(e,i),this}provideFactoryCollection(e,i){return this.containerProvider.provideFactoryCollection(e,i),this}provideValueCollection(e,i){return this.containerProvider.provideValueCollection(e,i),this}clear(){this.keyRegister.clear(),this.containerProvider.clear(),this.containerRecord.clear()}clearOnlyRecords(){this.containerRecord.clear()}};function Q_(){return new L_}var ap=class{subscriber;closed=!1;constructor(e,i){this.subscriber=e,i!=null&&(this.closed=i)}unsubscribe(){this.closed||(this.closed=!0,this.subscriber.unsubscribe())}getFinalize(){return this.subscriber.getFinalize()}},Bi=class{observer;finalize=()=>{};completed=!1;closed=!1;constructor(e){this.observer=e}next(e){this.isCompleted()||this.observer&&this.observer.next&&this.observer.next(e)}error(e){this.completed||(this.observer&&this.observer.error&&this.observer.error(e),this.unsubscribe())}complete(){this.completed||(this.completed=!0,this.observer&&this.observer.complete&&this.observer.complete(),this.unsubscribe())}unsubscribe(){this.closed||(this.closed=!0,this.completed=!0,this.finalize())}setFinalize(e){e&&typeof e=="function"&&(this.finalize=e)}getFinalize(){return this.finalize}isCompleted(){return this.completed}isClosed(){return this.closed}getObserver(){return this.observer}},Ut=class{generatorFn;source;generatorFinalize;constructor(e){this.generatorFn=e}pipe(...e){this.source=this;for(let i of e)this.source=this.innerPipe(i,this.source);return this.source}subscribe(e){let i;if(e instanceof Bi)i=e;else if(e!==null&&this.isObserver(e)){let{next:t,error:r,complete:o}=e;i=this.createSubscriber(t,r,o)}else i=this.createSubscriber(arguments[0],arguments[1],arguments[2]);return this.generatorFn&&(this.generatorFinalize=this.generatorFn(i),i.setFinalize(this.generatorFinalize)),this.getSubscription(i)}createSubscriber(e,i,t){return new Bi({next:e,error:i,complete:t})}getSubscription(e){return new ap(e)}innerPipe(e,i){return(t=>e(t))(i)}isObserver(e){return typeof e=="object"}};function GD(){return new ap(new Bi({}),!0)}var Rt=class extends Ut{thrownError=null;isCompleted=!1;isClosed=!1;subscribers=[];constructor(){super()}next(e){if(this.verifyNotClosed(),!(this.isCompleted||this.thrownError!==null))for(let i of this.subscribers)i.next(e)}error(e){if(this.verifyNotClosed(),!this.isCompleted){this.thrownError=e;for(let i of this.subscribers)i.error(e);this.subscribers.length=0}}complete(){if(this.verifyNotClosed(),!this.isCompleted){this.isCompleted=!0;for(let e of this.subscribers)e.complete();this.subscribers.length=0}}subscribe(e){this.verifyNotClosed();let i;return e instanceof Bi?i=e:i=this.createSubscriber(arguments[0],arguments[1],arguments[2]),this.thrownError!==null?(i.error(this.thrownError),GD()):this.isCompleted?(i.complete(),GD()):(this.subscribers.push(i),this.getSubscription(i))}unsubscribe(){this.isCompleted=!0,this.isClosed=!0,this.subscribers.length=0}toObservable(){return new Ut(e=>{let i=this.subscribe(t=>e.next(t),t=>e.error(t),()=>e.complete());return()=>i.unsubscribe()})}verifyNotClosed(){if(this.isClosed)throw new Error("Observable already closed")}},wc=class extends Rt{constructor(){super()}},Oo=(()=>{class n{static index=0;static generate(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)+`${n.index++}`}}return n})(),cp=class{aggregateId;messageType;messageId;constructor(e,i,t=Oo.generate()){this.aggregateId=e,this.messageType=i,this.messageId=t}getMessageType(){return this.messageType}getAggregateId(){return this.aggregateId}getMessageId(){return this.messageId}toString(){return this.messageType}equalsByType(e){return this.getMessageType()===e.getMessageType()}equals(e){return this.getMessageType()===e.getMessageType()&&this.messageId===e.messageId}ofMessageType(e){return Array.isArray(e)?!!e.find(t=>this.isMessageType(t)):this.isMessageType(e)}isMessageType(e){return this.getMessageType()===e}},Kr=class extends cp{payload;constructor(e,i,t){super(e,t),this.payload=i}isSameType(e){return this.constructor.name===e.constructor.name}getPayload(){return this.payload}};function zL(...n){return new Ut(e=>{n.forEach(i=>{e.next(i)}),e.complete()})}function K_(){return new Ut(n=>{n.complete()})}function Ls(n){return e=>n===0?K_():new Ut(i=>{let t=0,r=new Bi({next:()=>{},error:s=>i.error(s),complete:()=>i.complete()});return r.observer.next=function(s){t<n&&(i.next(s),t++,t===n&&r.complete())},e.subscribe(r).getFinalize()})}function wp(n,e,i){let t=e||(o=>{n.next(o)}),r=i||(()=>{n.complete()});return new Bi({next:t,error:o=>n.error(o),complete:r})}function HL(n){return new Bi({next:e=>n.next(e),error:e=>n.error(e),complete:()=>n.complete()})}function He(n){return e=>new Ut(i=>{let t=wp(i,r=>{n(r)&&i.next(r)});return e.subscribe(t).getFinalize()})}var lp=class{domainEvents=[];domainEvents$=new Rt;next(e){this.domainEvents.push(e),this.domainEvents$.next(e)}findEventByType(e){return this.getEvents().reverse().find(t=>t.constructor.name===e)}waitForEvent(e){let i=this.findEventByType(e);return i?zL(i):this.waitForNextEventOccurrence(e)}waitForNextEventOccurrence(e){let i;if(e instanceof Kr)i=e.constructor.name;else if(typeof e=="string")i=e;else return new Ut(t=>{t.error(new Error("Unsupported argument type."))});return this.domainEvents$.toObservable().pipe(He(t=>t.constructor.name===i),Ls(1))}getEvents(){return this.domainEvents}},Hd=class extends Rt{constructor(){super()}},Ud=(()=>{class n extends Ut{commandsStream;constructor(i){super(),this.commandsStream=i}static services=[Hd];subscribe(){return this.commandsStream.toObservable().subscribe(arguments[0],arguments[1],arguments[2])}ofCommandHandler(...i){return this.commandsStream.toObservable().pipe(He(t=>i.some(r=>r.forCommand(t))))}ofCreateAggregateHandler(...i){return this.commandsStream.toObservable().pipe(He(t=>i.some(r=>r.forCommand(t))))}ofNullHandler(i,t){return this.commandsStream.toObservable().pipe(He(r=>{if(!i&&!t)return!0;let o=!0;return i&&(o=!i.some(s=>s.forCommand(r))),t&&(o=o&&!t.some(s=>s.forCommand(r))),o}))}}return n})(),At=class n{value;constructor(e){return n.isValueEmpty(e)?this.value=null:this.value=e,this}static empty(){return new n(null)}static of(e){return new n(e)}static isValueEmpty(e){return typeof e>"u"||e===null}isEmpty(){return n.isValueEmpty(this.value)}isPresent(){return!this.isEmpty()}filter(e){return this.isPresent()&&e(this.value)?this:n.empty()}forEach(e){this.isPresent()&&e(this.value)}map(e){return this.isPresent()?new n(e(this.value)):n.empty()}getValueOrNullOrThrowError(){return this.value}getOrThrow(){if(this.isEmpty())throw new Error("Called getOrThrow on an empty Optional");return this.value}getOrElse(e){return this.isPresent()?this.value:e()}ifPresent(e){this.isPresent()&&e(this.value)}ifEmpty(e){this.isEmpty()&&e()}orElse(e){return this.isPresent()?this:e()}},xc=class{map=new Map;constructor(){}add(e,i){this.map.set(e,i)}get(e){return At.of(this.map.get(e))}has(e){return this.map.has(e)}},Cc=class{map=new Map;constructor(){}add(e,i){this.map.set(e,i)}get(e){return At.of(this.map.get(e))}has(e){return this.map.has(e)}},$d=class{aggregateFactoryArchive=L.resolve(xc);aggregateRepositoryArchive=L.resolve(Cc);constructor(){}register(e){if(e){let i=new Set,t=[];e.filter(r=>{i.has(r.key)||(i.add(r.key),t.push(r))}),t.forEach(r=>{let o=L.resolve(r.factory),s=L.resolve(r.repository);this.aggregateFactoryArchive.has(r.key)||this.aggregateFactoryArchive.add(r.key,o),this.aggregateRepositoryArchive.has(r.key)||this.aggregateRepositoryArchive.add(r.key,s)})}}};function Hi(n){return e=>new Ut(i=>{let t=HL(i),r=new Bi({next:()=>t.complete()});return n.subscribe(r),e.subscribe(t).getFinalize()})}function Zr(n){return new ht(e=>{let i=n.subscribe(t=>e.next(t),t=>e.error(t),()=>e.complete());return()=>i.unsubscribe()})}var ci=class{hermesUnsubscribe$=new Rt;constructor(){}onDestroy(){this.hermesUnsubscribe()}takeUntil(){return ce(Zr(this.hermesUnsubscribe$))}hermesUnsubscribe(){this.hermesUnsubscribe$.next(),this.hermesUnsubscribe$.complete()}hermesTakeUntil(){return Hi(this.hermesUnsubscribe$)}isNotStopped(){return!this.hermesUnsubscribe$.isCompleted}},Gd=class extends ci{commandBus=L.resolve(Ud);constructor(){super()}register(e){if(e){let i=new Set,t=[];e.filter(r=>{i.has(r.commandHandler)||(i.add(r.commandHandler),t.push(r))}),t.forEach(r=>{this.commandBus.ofCommandHandler(r).pipe(this.hermesTakeUntil()).subscribe(o=>{r.handleCommand(o)})})}}registerAggregateCommandHandlers(e){if(e){let i=new Set,t=[];e.filter(r=>{i.has(r.createAggregateCommandHandler)||(i.add(r.createAggregateCommandHandler),t.push(r))}),t.forEach(r=>{this.commandBus.ofCreateAggregateHandler(r).pipe(this.hermesTakeUntil()).subscribe(o=>{r.handleCommand(o)})})}}},Dn=(()=>{class n extends Ut{eventStream;constructor(i){super(),this.eventStream=i}static services=[wc];subscribe(){return this.eventStream.toObservable().subscribe(arguments[0],arguments[1],arguments[2])}ofEvents(i){return this.eventStream.toObservable().pipe(He(t=>i.some(r=>this.createEventInstance(r).equalsByType(t))))}ofEventHandlers(i){return this.eventStream.toObservable().pipe(He(t=>i.some(r=>r.forEvents([t]))))}createEventInstance(i){let t=[],r=i.constructor.length;if(t.fill(void 0,0,r),t.length===0)return new i;if(t.length===1)return new i(t[0]);if(t.length===2)return new i(t[0],t[1]);if(t.length===3)return new i(t[0],t[1],t[2]);if(t.length===4)return new i(t[0],t[1],t[2],t[3]);if(t.length===5)return new i(t[0],t[1],t[2],t[3],t[4]);throw new Error("DomainEventBus constructor out of arguments")}}return n})(),V_=(()=>{class n extends ci{domainEventBus;unsub$=new Rt;constructor(i){super(),this.domainEventBus=i}static services=[Dn];init(i){if(i){let t=new Set,r=[];i.filter(o=>{t.has(o.domainEventHandler)||(t.add(o.domainEventHandler),r.push(o))}),r.forEach(o=>{this.domainEventBus.ofEventHandlers([o]).pipe(Hi(this.unsub$),this.hermesTakeUntil()).subscribe(s=>{o.handleEvent(s)})})}}reinit(i){this.stop(),this.init(i)}stop(){this.unsub$.next(),this.unsub$.complete(),this.unsub$=new Rt}}return n})(),xp="GUI - COMMAND_LOGGER_ENABLED",Cp="GUI - EVENT_LOGGER_ENABLED",dp=class{domainName;setDomain(e){this.domainName=e}log(e){this.shouldPrint(e)&&this.print(e)}shouldPrint(e){return this.domainName?e.toString().includes(this.domainName):!0}},Ic=class extends dp{},up=class extends Ic{enabled=!1;unsubscribe$=new Rt;commandBus=L.resolve(Ud);constructor(){super(),this.commandBus.pipe(He(()=>this.enabled),Hi(this.unsubscribe$)).subscribe(e=>{this.log(e)})}onDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}start(){this.enabled=!0}stop(){this.enabled=!1}print(e){console.log(e.toString(),e)}},hp=class extends Ic{start(){}stop(){}print(e){}},Ec=class extends dp{constructor(){super()}},mp=class extends Ec{constructor(){super()}start(){}stop(){}print(e){}},Wd=class{stores=[];register(e){this.stores.push(e)}captureAggregatesSnapshot(e){if(!e)return{};let i={};return this.stores.forEach(t=>{let r=t.findById(e);if(r){let o=r.constructor.name;i[o]=r}}),this.cloneAggregates(i)}cloneAggregates(e){return e}},pp=class extends Ec{enabled=!1;unsubscribe$=new Rt;eventBus=L.resolve(Dn);aggregateStoreRegister=L.resolve(Wd);constructor(){super(),this.eventBus.pipe(He(()=>this.enabled),Hi(this.unsubscribe$)).subscribe(e=>{this.log(e)})}onDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}start(){this.enabled=!0}stop(){this.enabled=!1}print(e){let i=e.getAggregateId(),t=this.aggregateStoreRegister.captureAggregatesSnapshot(i);console.log(e.toString(),e,t)}},qD="Hermes - aggregateDefinitionToken",B_="HERMES - DOMAIN_EVENT_HANDLERS_TOKEN",YD="HERMES - CREATE_AGGREGATE_COMMAND_HANDLERS",QD="HERMES - COMMAND_HANDLERS_TOKEN",KD=(()=>{class n extends ci{aggregateDefinitionInitializer;commandHandlerInitializer;domainEventHandlerInitializer;commandBus;definedAggregate;eventHandlers;aggregateCommandHandlers;commandHandlers;started=!1;constructor(i,t,r,o,s,a,u,b){super(),this.aggregateDefinitionInitializer=i,this.commandHandlerInitializer=t,this.domainEventHandlerInitializer=r,this.commandBus=o,this.definedAggregate=s,this.eventHandlers=a,this.aggregateCommandHandlers=u,this.commandHandlers=b,this.eventHandlers===null&&(this.eventHandlers=[]),this.aggregateCommandHandlers===null&&(this.aggregateCommandHandlers=[]),this.commandHandlers===null&&(this.commandHandlers=[])}static services=[$d,Gd,V_,Ud,{inject:qD,collection:!0},{inject:B_,collection:!0,optional:!0},{inject:YD,collection:!0,optional:!0},{inject:QD,collection:!0,optional:!0}];run(){this.started||(this.checkNullCommand(this.commandHandlers,this.aggregateCommandHandlers),this.checkCommandHandlerIsCollection(this.commandHandlers),this.checkDomainEventHandlerIsCollection(this.eventHandlers),this.aggregateDefinitionInitializer.register(this.definedAggregate),this.commandHandlerInitializer.register(this.commandHandlers),this.commandHandlerInitializer.registerAggregateCommandHandlers(this.aggregateCommandHandlers),this.domainEventHandlerInitializer.init(this.eventHandlers),this.started=!0)}destroy(){this.commandHandlerInitializer.onDestroy(),this.domainEventHandlerInitializer.onDestroy()}checkNullCommand(i,t){this.commandBus.ofNullHandler(i,t).pipe(this.hermesTakeUntil()).subscribe(r=>{console.error(`Command ${r.toString()} was not intercepted by any CommandHandler.`)})}checkCommandHandlerIsCollection(i){i&&!Array.isArray(i)&&console.warn('You might provided commandHandler without specifying "multi: true".')}checkDomainEventHandlerIsCollection(i){i&&!Array.isArray(i)&&console.warn('You might provided eventHandler without specifying "multi: true".')}}return n})();function UL(n,e,i){return n?e:i}function $L(n,e,i){return n?e:i}function XD(){L.resolve(KD).run()}var ti=class{commandStream=L.resolve(Hd);dispatch(e){this.commandStream.next(e)}},ze=(()=>{class n{eventStream;constructor(i){this.eventStream=i}static services=[wc];publish(i){if(Array.isArray(i))for(let t of i)this.publishEvent(t);else this.publishEvent(i)}publishFromAggregate(i){[...i.getEvents()].forEach(r=>{this.publish(r.toDomainEvent())})}publishEvent(i){i||console.error(`${i} is not defined`),i instanceof Kr||console.error(`${i} is not a DomainEvent`),this.eventStream.next(i)}}return n})(),L=Q_();L.provideValue(Cp,!0);L.provideValue(xp,!0);L.provide(up);L.provide(hp);L.provide(mp);L.provide(pp);L.provide(Dn);L.provide(Wd);L.provideFactory(Ic,{create:UL,deps:[xp,up,hp]});L.provideFactory(Ec,{create:$L,deps:[Cp,pp,mp]});L.provide(xc,xc);L.provide(ze);L.provide(Cc);L.provide(wc,wc);L.provide(lp,lp);L.provide(Ud,Ud);L.provide(Hd);L.provide(ti);L.provide($d,$d);L.provide(Gd,Gd);L.provide(V_,V_);L.provide(KD);var Po=class extends cp{};var Ds=class{},Ts=class{aggregateId;type;constructor(e,i){this.aggregateId=e,this.type=i}getAggregateId(){return this.aggregateId}getType(){return this.type}equals(e){return this.equalsByType(e)&&this.getAggregateId().equals(e.getAggregateId())}equalsByType(e){return this.getType()===e.getType()}};var Ms=class{},z_=class{},Rs=class{type;aggregateId;events;constructor(e,i){this.type=i,this.aggregateId=e,this.events=[]}getId(){return this.aggregateId}getType(){return this.type}getEvents(){return this.events}addEvent(e){if(Array.isArray(e))for(let i of e)this.events.push(i);else this.events.push(e)}clearEvents(){this.events.length=0}equals(e){return e.getId().toString()===this.getId().toString()}},As=class{uid;constructor(e){this.uid=e}getId(){return this.uid}equals(e){return this.uid===e.getId()}},Fs=class extends As{constructor(e){super(e)}toString(){return super.getId()}};var gp=class extends ci{constructor(){super()}onDestroy(){this.hermesUnsubscribe()}},kc=class{keys=new Map;values=new WeakMap;find(e){let i=this.getInternalKey(e);return i!==void 0?At.of(this.values.get(i)):At.empty()}has(e){let i=this.getInternalKey(e);return this.values.has(i)}set(e,i){this.keys.set(e.toString(),e),this.values.set(e,i)}size(){return this.keys.size}remove(e){this.hasInternalKey(e)&&(this.keys.delete(e.toString()),this.values.delete(e))}removeAll(){this.keys.forEach(e=>{this.values.delete(e)}),this.keys.clear()}getInternalKey(e){return this.keys.get(e.toString())}hasInternalKey(e){return this.keys.has(e.toString())}};function te(n){return e=>new Ut(i=>{let t=0,r=wp(i,o=>{i.next(n(o,t++))});return e.subscribe(r).getFinalize()})}function Tn(n){let e=n||GL;return i=>new Ut(t=>{let r=null,o=wp(t,s=>{(r===null||!e(r,s))&&(r=s,t.next(s))});return i.subscribe(o).getFinalize()})}function GL(n,e){return n===e}var H_=class extends Rt{lastValue;constructor(e){super(),this.lastValue=e}next(e){this.lastValue=e,super.next(e)}subscribe(){let e=super.subscribe(arguments[0],arguments[1],arguments[2]);return super.next(this.lastValue),e}},zi=class extends Rt{bufferSize;values=[];constructor(e=1){super(),this.bufferSize=e}pipe(...e){return super.pipe(...e)}next(e){this.values.push(e),this.bufferSize<this.values.length&&this.values.shift(),super.next(e)}subscribe(){let e;arguments[0]instanceof Bi?e=arguments[0]:e=this.createSubscriber(arguments[0],arguments[1],arguments[2]);let i=super.subscribe(e);for(let t of this.values)e.next(t);return i}},fp=class extends Rt{constructor(){super()}static of(e){return e!==void 0?new H_(e):new zi(1)}},U_=class extends Bi{next(e){if(this.isCompleted())return;let i=this.getObserver();i&&i.next&&(i.next(e),this.complete())}},$_=class extends Ut{createSubscriber(e,i,t){return new U_({next:e,error:i,complete:t})}};function Vs(n){return new $_(e=>{let i=new Bi({next:r=>e.next(r),error:r=>e.error(r),complete:()=>{}});return n.subscribe(i).getFinalize()})}var G_=class extends gp{archive=new kc;archive$;defaultValue=At.empty();constructor(e){super(),this.archive$=fp.of(),e!=null&&(this.defaultValue=At.of(e))}on(e){return this.tryToInitDefault(e),this.archive$.toObservable().pipe(He(()=>this.isNotStopped()),te(i=>i.find(e)),He(i=>i.isPresent()),te(i=>i.getValueOrNullOrThrowError()),Tn(this.equals),this.hermesTakeUntil())}once(e){return Vs(this.on(e))}find(e){return this.tryToInitDefault(e),this.archive.find(e)}next(e,i){this.archive.set(e,i),this.archive$.next(this.archive)}equals(e,i){return e===i}createDefaultValue(e){return e}tryToInitDefault(e){this.defaultValue.ifPresent(i=>{this.archive.has(e)||this.next(e,i)})}},tt=class extends G_{constructor(e){super(e)}},tr=class extends tt{constructor(e){super(e)}handle(e){this.next(e.getAggregateId(),e.getPayload())}},bp=class{entityId;constructor(e){this.entityId=e}getId(){return this.entityId}},vp=class{uid;constructor(e){this.uid=e}toString(){return this.uid}getId(){return this.uid}equals(e){return this.uid===e.getId()}},qd=class{rootId;constructor(e){this.rootId=e}getId(){return this.rootId}},Ps=class{uid;constructor(e){this.uid=e}toString(){return this.uid}getId(){return this.uid}equals(e){return this.uid===e.getId()}},_p=class extends ci{domainEventBus=L.resolve(Dn);constructor(){super(),this.domainEventBus.ofEvents(this.forEvents()).pipe(this.hermesTakeUntil()).subscribe(e=>{try{this.subscribe(e)}catch(i){console.error(i)}})}},W_=class{},xr=class extends gp{domainEventBus=L.resolve(Dn);constructor(){super()}onEvent(e,i){return this.domainEventBus.ofEvents([i]).pipe(He(t=>t.getAggregateId().toString()===e.toString()))}},Os=class{entityId;constructor(e){this.entityId=e}getId(){return this.entityId}equals(e){return this.entityId.equals(e.getId())}},Xr=class extends As{};function X_(n){}function Ip(n){}var $t=class{};function Z_(n){return new Ut(e=>{let i=setTimeout(()=>{e.next(0)},n);return()=>{clearTimeout(i),e.complete()}})}function Kd(n,e){return new Ut(i=>{let t=r=>{i.next(r)};return n.addEventListener(e,t),()=>{n.removeEventListener(e,t)}})}function cn(n){return e=>new Ut(i=>{let t=!1,r=null,o=function(){t&&!r&&i.complete()},s=wp(i,a=>{r&&r.unsubscribe();let u=new Bi({next:y=>i.next(y),error:y=>i.error(y),complete:()=>{r=null,o()}});return r=u,n(a).subscribe(u).getFinalize()},()=>{t=!0,o()});return e.subscribe(s).getFinalize()})}function No(n){return new Ut(e=>{let i=n.subscribe(t=>e.next(t),t=>e.error(t),()=>e.complete());return()=>i.unsubscribe()})}var an=class{archive$;constructor(e){this.archive$=fp.of(e)}on(){return this.archive$.toObservable().pipe(Tn(this.compare))}next(e){this.archive$.next(e)}compare(e,i){return e===i}},ZD=(()=>{class n{static index=0;static generate(){return n.index++,n.index}}return n})();var Ns=class extends z_{inMemoryStore;aggregateStoreRegister=L.resolve(Wd);constructor(e){super(),this.inMemoryStore=e,this.aggregateStoreRegister.register(this)}save(e){if(Array.isArray(e))e.forEach(i=>{this.inMemoryStore.set(i)});else{let i=e;this.inMemoryStore.set(i)}}findById(e){let i=this.inMemoryStore.get(e);return i.ifPresent(t=>t.clearEvents()),i}remove(e){this.inMemoryStore.delete(e)}},Yd=class extends W_{inMemoryStore;constructor(e){super(),this.inMemoryStore=e}getById(e){return this.getValue(e)}getValue(e){return this.inMemoryStore.get(e).map(this.toReadModel.bind(this))}},js=class{state=new Map;set(e){this.state.set(e.getId().toString(),e)}setMany(e){e.forEach(i=>{this.set(i)})}get(e){return At.of(this.state.get(e.toString()))}getAll(){return Array.from(this.state.values()).map(e=>At.of(e))}has(e){return this.state.has(e.toString())}delete(e){this.state.delete(e.toString())}clear(){this.state.clear()}};var Qd=class extends Po{constructor(e,i){super(e,i)}},WD="hermesApi";function JD(){let n=L.resolve(Ic),e=L.resolve(Ec),i=()=>({set loggers(t){},set domain(t){t&&(n.setDomain(t),e.setDomain(t))}});window[WD]=i(),window[WD].loggers=!1}function WL(n,e){return new q_(n,e)}var q_=class{createAggregateCommandHandler;aggregateType;aggregateFactoryArchive=L.resolve(xc);aggregateRepositoryArchive=L.resolve(Cc);domainEventPublisher=L.resolve(ze);commandType;constructor(e,i){this.createAggregateCommandHandler=e,this.aggregateType=i,this.commandType=this.createCommandInstance().getMessageType()}handleCommand(e){let i=e.getAggregateId();this.aggregateFactoryArchive.get(this.aggregateType).ifPresent(r=>{let o=r.create(i),s=o.getType(),a=o.createEvent(),u=new a(i,s);o.addEvent(u),this.aggregateRepositoryArchive.get(this.aggregateType).ifPresent(y=>{y.save(o),this.domainEventPublisher.publishFromAggregate(o)})})}forCommand(e){return this.commandType===e.getMessageType()}createCommandInstance(){let e=[],i=this.createAggregateCommandHandler.forCommand().constructor.length;if(e.fill(void 0,0,i),e.length===0)return new(this.createAggregateCommandHandler.forCommand());if(e.length===1)return new(this.createAggregateCommandHandler.forCommand())(e[0]);if(e.length===2)return new(this.createAggregateCommandHandler.forCommand())(e[0],e[1]);if(e.length===3)return new(this.createAggregateCommandHandler.forCommand())(e[0],e[1],e[2]);if(e.length===4)return new(this.createAggregateCommandHandler.forCommand())(e[0],e[1],e[2],e[3]);if(e.length===5)return new(this.createAggregateCommandHandler.forCommand())(e[0],e[1],e[2],e[3],e[4]);throw new Error("CreateAggregateCommandHandlerImpl constructor out of arguments")}};function qL(n,e){return new Y_(n,e)}var Y_=class{commandHandler;aggregateType;aggregateRepositoryArchive=L.resolve(Cc);domainEventPublisher=L.resolve(ze);commandType;constructor(e,i){this.commandHandler=e,this.aggregateType=i,this.commandType=this.createCommandInstance().getMessageType()}publishDomainEvents(e,i){this.commandHandler.publish?this.commandHandler.publish(e,i):this.domainEventPublisher.publishFromAggregate(e)}handleCommand(e){let i=e.getAggregateId();this.aggregateRepositoryArchive.get(this.aggregateType).ifPresent(r=>{r.findById(i).ifPresent(s=>{this.commandHandler.handle(s,e),this.publishDomainEvents(s,e)})})}forCommand(e){return this.commandType===e.getMessageType()}createCommandInstance(){let e=[],i=this.commandHandler.forCommand().constructor.length;if(e.fill(void 0,0,i),e.length===0)return new(this.commandHandler.forCommand());if(e.length===1)return new(this.commandHandler.forCommand())(e[0]);if(e.length===2)return new(this.commandHandler.forCommand())(e[0],e[1]);if(e.length===3)return new(this.commandHandler.forCommand())(e[0],e[1],e[2]);if(e.length===4)return new(this.commandHandler.forCommand())(e[0],e[1],e[2],e[3]);if(e.length===5)return new(this.commandHandler.forCommand())(e[0],e[1],e[2],e[3],e[4]);throw new Error("CommandHandlerImpl constructor out of arguments")}};function YL(n){return new yp(n,[n.forEvent()])}function QL(n){return new yp(n,n.forEvents())}var yp=class{domainEventHandler;events;eventTypes;constructor(e,i){this.domainEventHandler=e,this.events=i,this.eventTypes=this.createDomainEventTypes()}handleEvent(e){this.domainEventHandler.handle(e)}forEvents(e){return e.some(i=>this.eventTypes.some(t=>t===i.getMessageType()))}createDomainEventTypes(){let e=[];for(let i of this.events){let t=this.createDomainEventInstance(i);e.push(t.getMessageType())}return e}createDomainEventInstance(e){let i=[],t=e.constructor.length;if(i.fill(void 0,0,t),i.length===0)return new e;if(i.length===1)return new e(i[0]);if(i.length===2)return new e(i[0],i[1]);if(i.length===3)return new e(i[0],i[1],i[2]);if(i.length===4)return new e(i[0],i[1],i[2],i[3]);if(i.length===5)return new e(i[0],i[1],i[2],i[3],i[4]);throw new Error("DomainEventHandler constructor out of arguments")}},fi=class{api;domain;container=L;initialized=!1;constructor(e,i){this.api=e,this.domain=i}init(){this.initialized||(this.defineAggregate(),this.registerApiProviders(),this.registerDomainProviders(),this.registerCommandHandlers(),this.registerEventHandlers(),this.registerMultiEventHandlers(),this.initialized=!0)}defineAggregate(){let e=this.domain.defineAggregate();e&&(this.container.provide(e.factory),this.container.provide(e.repository),this.container.provideValue(e.aggregateKey,e.aggregateKey),this.container.provideValueCollection(qD,{key:e.aggregateKey,factory:e.factory,repository:e.repository}),this.container.provide(e.createCommandHandler),this.container.provideFactoryCollection(YD,{create:WL,deps:[e.createCommandHandler,e.aggregateKey]}))}registerApiProviders(){this.api.registerProviders(this.container)}registerDomainProviders(){this.domain.registerProviders(this.container)}registerCommandHandlers(){this.domain.registerCommandHandlers().forEach(e=>{this.container.provide(e),this.container.provideFactoryCollection(QD,{create:qL,deps:[e,this.domain.registerKey(this.container)]})})}registerEventHandlers(){this.domain.registerDomainEventHandler().forEach(e=>{this.container.provide(e),this.container.provideFactoryCollection(B_,{create:YL,deps:[e]})})}registerMultiEventHandlers(){this.domain.registerMultiDomainEventHandler().forEach(e=>{this.container.provide(e),this.container.provideFactoryCollection(B_,{create:QL,deps:[e]})})}};var io=["*"],KL=["gui-button",""];var XL=["input"];function ZL(n,e){if(n&1&&(f(0,"div"),T(1),v()),n&2){let i=e.$implicit;p(),ke(i)}}function JL(n,e){if(n&1){let i=Y();f(0,"div",6),E("click",function(){let r=A(i).$implicit,o=x(2);return F(o.selectDate(r))}),T(1),v()}if(n&2){let i=e.$implicit,t=x(2);X("gui-date-picker-current-day",t.isDate(t.currentDay,i))("gui-date-picker-selected-day",t.isDate(t.selectedDate,i))("gui-date-picker-selected-month",t.displayMonthDays(i.getMonth())),p(),we(" ",i.getDate()," ")}}function e3(n,e){if(n&1&&(f(0,"div",4),j(1,JL,2,7,"div",5),v()),n&2){let i=e.$implicit;p(),g("ngForOf",i)}}function t3(n,e){if(n&1){let i=Y();f(0,"div",4),E("click",function(){let r=A(i).$implicit,o=x(2);return F(o.selectMonth(r.nr))}),T(1),v()}if(n&2){let i=e.$implicit,t=x(2);X("gui-date-picker-current-month",t.isMonth(t.currentDay,i.nr))("gui-date-picker-selected-month",t.isMonth(t.selectedDate,i.nr)),p(),we(" ",i.name," ")}}function i3(n,e){if(n&1&&(f(0,"div",2),j(1,t3,2,5,"div",3),v()),n&2){let i=e.$implicit;p(),g("ngForOf",i)}}function n3(n,e){if(n&1){let i=Y();f(0,"div",4),E("click",function(){let r=A(i).$implicit,o=x(2);return F(o.selectYear(r))}),T(1),v()}if(n&2){let i=e.$implicit,t=x(2);X("gui-date-picker-current-year",t.isYear(t.currentDay,i))("gui-date-picker-selected-year",t.isYear(t.selectedDate,i)),p(),we(" ",i," ")}}function r3(n,e){if(n&1&&(f(0,"div",2),j(1,n3,2,5,"div",3),v()),n&2){let i=e.$implicit;p(),g("ngForOf",i)}}var o3=["gui-input",""];function s3(n,e){if(n&1){let i=Y();f(0,"div",4)(1,"gui-arrow-icon",5),E("click",function(){A(i);let r=x();return F(r.changeTimeItem("hours",r.steps))}),v(),C(2,"input",6),f(3,"gui-arrow-icon",5),E("click",function(){A(i);let r=x();return F(r.changeTimeItem("hours",-r.steps))}),v()()}if(n&2){let i=x();p(),g("direction",i.Direction.TOP),p(2),g("direction",i.Direction.BOTTOM)}}function a3(n,e){if(n&1){let i=Y();f(0,"div",4)(1,"gui-arrow-icon",5),E("click",function(){A(i);let r=x();return F(r.changeTimeItem("minutes",r.steps))}),v(),C(2,"input",7),f(3,"gui-arrow-icon",5),E("click",function(){A(i);let r=x();return F(r.changeTimeItem("minutes",-r.steps))}),v()()}if(n&2){let i=x();p(),g("direction",i.Direction.TOP),p(2),g("direction",i.Direction.BOTTOM)}}function c3(n,e){if(n&1){let i=Y();f(0,"div",4)(1,"gui-arrow-icon",5),E("click",function(){A(i);let r=x();return F(r.changeTimeItem("seconds",r.steps))}),v(),C(2,"input",8),f(3,"gui-arrow-icon",5),E("click",function(){A(i);let r=x();return F(r.changeTimeItem("seconds",-r.steps))}),v()()}if(n&2){let i=x();p(),g("direction",i.Direction.TOP),p(2),g("direction",i.Direction.BOTTOM)}}function l3(n,e){if(n&1&&C(0,"gui-date-picker-days-view",7),n&2){let i=x(2);g("activeMonth",i.activeMonth)("selectedDate",i.selectedDate)("weeks",i.weeks)}}function d3(n,e){if(n&1&&C(0,"gui-date-picker-months-view",8),n&2){let i=x(2);g("activeYear",i.activeYear)("selectedDate",i.selectedDate)}}function u3(n,e){if(n&1&&C(0,"gui-date-picker-years-view",9),n&2){let i=x(2);g("selectedDate",i.selectedDate)("years",i.years)}}function h3(n,e){if(n&1&&(Ne(0),C(1,"gui-date-picker-view-panel",2),Ne(2,3),j(3,l3,1,3,"gui-date-picker-days-view",4)(4,d3,1,2,"gui-date-picker-months-view",5)(5,u3,1,2,"gui-date-picker-years-view",6),je()()),n&2){let i=x();p(),g("activeMonth",i.activeMonth)("activeYear",i.activeYear)("fabricCalendarView",i.fabricCalendarView)("selectedDate",i.selectedDate)("years",i.years),p(),g("ngSwitch",i.getCalendarView()),p(),g("ngSwitchCase",i.FabricCalendarView.DAYS),p(),g("ngSwitchCase",i.FabricCalendarView.MONTHS),p(),g("ngSwitchCase",i.FabricCalendarView.YEARS)}}function m3(n,e){if(n&1&&C(0,"gui-time-picker",10),n&2){let i=x();g("datePickerComposition",i.datePickerComposition)("selectedDate",i.selectedDate)}}var Zd=["container"];function p3(n,e){}var g3=["datePicker"];function f3(n,e){}var b3=["dropdownMenu"];function v3(n,e){if(n&1&&(f(0,"div"),C(1,"gui-arrow-icon",6),v()),n&2){let i=x();X("gui-dropdown-arrow",i.isArrowEnabled),p(),g("direction",i.arrowDirection)}}function _3(n,e){}var y3=["guiNotification"];function w3(n,e){if(n&1){let i=Y();f(0,"gui-notification",1),E("onNotificationClose",function(r){A(i);let o=x();return F(o.emitClosedNotification(r))}),v()}if(n&2){let i=e.$implicit;g("notification",i)}}function x3(n,e){if(n&1){let i=Y();f(0,"gui-notifications-container",1),E("onNotificationClose",function(r){A(i);let o=x();return F(o.removeNotification(r))}),v()}if(n&2){let i=x();g("notifications",i.notificationsTopRight)("position",i.FabricNotificationPosition.TOP_RIGHT)}}function C3(n,e){if(n&1){let i=Y();f(0,"gui-notifications-container",1),E("onNotificationClose",function(r){A(i);let o=x();return F(o.removeNotification(r))}),v()}if(n&2){let i=x();g("notifications",i.notificationsTopLeft)("position",i.FabricNotificationPosition.TOP_LEFT)}}function I3(n,e){if(n&1){let i=Y();f(0,"gui-notifications-container",1),E("onNotificationClose",function(r){A(i);let o=x();return F(o.removeNotification(r))}),v()}if(n&2){let i=x();g("notifications",i.notificationsBottomRight)("position",i.FabricNotificationPosition.BOTTOM_RIGHT)}}function E3(n,e){if(n&1){let i=Y();f(0,"gui-notifications-container",1),E("onNotificationClose",function(r){A(i);let o=x();return F(o.removeNotification(r))}),v()}if(n&2){let i=x();g("notifications",i.notificationsBottomLeft)("position",i.FabricNotificationPosition.BOTTOM_LEFT)}}var k3=["svgEl"],S3=["tab"],D3=["tabItem"],T3=["tabMenuList"];function M3(n,e){if(n&1){let i=Y();f(0,"div",8),E("click",function(){A(i);let r=x();return F(r.scrollTabList(!1))}),C(1,"gui-arrow-icon",9),v()}if(n&2){let i=x();p(),g("direction",i.Direction.LEFT)}}function R3(n,e){if(n&1&&(f(0,"span"),T(1),v()),n&2){let i=x().$implicit;p(),ke(i)}}function A3(n,e){if(n&1&&(Ne(0),C(1,"gui-svg-template",12),je()),n&2){let i=x().$implicit;p(),g("svg",i.svg)}}function F3(n,e){if(n&1){let i=Y();f(0,"div",10,2),E("click",function(){let r=A(i).$implicit,o=x();return F(o.toggleTab(r))}),j(2,R3,2,1,"span",11)(3,A3,2,1,"ng-container",11),v()}if(n&2){let i=e.$implicit,t=x();Me("data-tab",t.getTabName(i)),p(2),g("ngIf",!t.isSvg(i)),p(),g("ngIf",t.isSvg(i))}}function P3(n,e){if(n&1){let i=Y();f(0,"div",8),E("click",function(){A(i);let r=x();return F(r.scrollTabList(!0))}),C(1,"gui-arrow-icon"),v()}}var O3=["optionList"];function N3(n,e){if(n&1){let i=Y();f(0,"div",3),E("click",function(){let r=A(i).$implicit,o=x();return F(o.selectOption(r))}),T(1),v()}if(n&2){let i=e.$implicit,t=x();Qe("width",t.width,"px"),X("gui-option-selected",t.isOptionSelected(i)),p(),we(" ",t.getOptionValue(i)," ")}}var Ue=function(n){return n.FABRIC="FABRIC",n.MATERIAL="MATERIAL",n.GENERIC="GENERIC",n.LIGHT="LIGHT",n.DARK="DARK",n}(Ue||{}),lT=(()=>{class n{elementRef;renderer;static PRIMARY_CLASS_NAME="gui-primary";static SECONDARY_CLASS_NAME="gui-secondary";static OUTLINE_CLASS_NAME="gui-outline";primary=!1;secondary=!1;outline=!1;constructor(i,t){this.elementRef=i,this.renderer=t}ngOnChanges(i){i.primary&&(this.primary?this.addClass(n.PRIMARY_CLASS_NAME):this.removeClass(n.PRIMARY_CLASS_NAME)),i.secondary&&(this.secondary?this.addClass(n.SECONDARY_CLASS_NAME):this.removeClass(n.SECONDARY_CLASS_NAME)),i.outline&&(this.outline?this.addClass(n.OUTLINE_CLASS_NAME):this.removeClass(n.OUTLINE_CLASS_NAME))}addClass(i){this.renderer.addClass(this.elementRef.nativeElement,i)}removeClass(i){this.renderer.removeClass(this.elementRef.nativeElement,i)}static \u0275fac=function(t){return new(t||n)(l(S),l(ut))};static \u0275dir=G({type:n,inputs:{primary:"primary",secondary:"secondary",outline:"outline"},features:[re]})}return n})();var Sc=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[J]})}return n})(),no=(()=>{class n extends lT{link=!1;text=!1;constructor(i,t){super(i,t)}ngOnChanges(i){super.ngOnChanges(i),i.link&&(this.link?this.addClass("gui-link"):this.removeClass("gui-link")),i.text&&(this.text?this.addClass("gui-text"):this.removeClass("gui-text"))}static \u0275fac=function(t){return new(t||n)(l(S),l(ut))};static \u0275cmp=k({type:n,selectors:[["button","gui-button",""],["a","gui-button",""]],hostVars:2,hostBindings:function(t,r){t&2&&X("gui-button",!0)},inputs:{link:"link",text:"text"},features:[R,re],attrs:KL,ngContentSelectors:io,decls:1,vars:0,template:function(t,r){t&1&&(Ke(),Oe(0))},styles:[`.gui-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-align:start;align-items:flex-start;background:#e6e6e6;border-radius:4px;border-style:none;box-sizing:border-box;color:#595959;cursor:pointer;display:inline-block;font-family:Arial;font-size:13.3333px;letter-spacing:normal;outline:none;padding:10px 20px;text-align:center;text-indent:0;text-rendering:auto;text-shadow:none;text-transform:none;transition:background .2s;word-spacing:normal;-ms-writing-mode:lr-tb!important;writing-mode:horizontal-tb!important}.gui-button.gui-outline:focus{box-shadow:0 0 0 2px #d6d6d6}.gui-button.gui-outline.gui-primary:focus{box-shadow:0 0 0 2px #439de1}.gui-button.gui-outline.gui-secondary:focus{box-shadow:0 0 0 2px #5ac88b}.gui-button.gui-primary{background:#2185d0;color:#fff}.gui-button.gui-primary.gui-outline{color:#2185d0}.gui-button.gui-primary:hover:not(.gui-chip,.gui-badge){background:#1e77ba}.gui-button.gui-primary:active{background:#1a69a4;color:#fff}.gui-button.gui-primary:disabled{background:#6fb4e8;color:#439de1}.gui-button.gui-primary.gui-badge{background:#439de1}.gui-button.gui-secondary{background:#3cb371;color:#fff}.gui-button.gui-secondary.gui-outline{color:#3cb371}.gui-button.gui-secondary.gui-button:hover{background:#36a065}.gui-button.gui-secondary.gui-button:active{background:#32945e;color:#fff}.gui-button.gui-secondary.gui-button:disabled{background:#80d5a6;color:#5ac88b}.gui-button.gui-secondary.gui-badge{background:#5ac88b}.gui-button.gui-link{background:transparent;border:0;color:#2185d0}.gui-button.gui-link:hover{background:none;color:#1e77ba;text-decoration:underline}.gui-button.gui-link:focus{text-decoration:underline}.gui-button.gui-outline{background:transparent;color:#999;border-color:#d6d6d6;border-style:solid;border-width:1px}.gui-button.gui-outline.gui-button:hover{background:#cccccc;color:#fff}.gui-button.gui-outline.gui-button:disabled{border-color:#ccc;color:#ccc}.gui-button.gui-outline.gui-badge{background:#fff}.gui-button.gui-outline.gui-primary{border-color:#439de1}.gui-button.gui-outline.gui-primary.gui-button:hover{background:#2185d0;border-color:#2185d0}.gui-button.gui-outline.gui-primary.gui-button:disabled{background:transparent;border-color:#6fb4e8;color:#6fb4e8}.gui-button.gui-outline.gui-primary.gui-badge{background:#fff;border-color:#439de1;color:#439de1}.gui-button.gui-outline.gui-secondary{border-color:#5ac88b}.gui-button.gui-outline.gui-secondary.gui-button:hover{background:#3cb371;border-color:#3cb371}.gui-button.gui-outline.gui-secondary.gui-button:disabled{background:transparent;border-color:#80d5a6;color:#80d5a6}.gui-button.gui-outline.gui-secondary.gui-badge{background:#fff;border-color:#5ac88b;color:#5ac88b}.gui-button.gui-text{background:transparent;border:0}.gui-button.gui-text:hover{background:#e6e6e6}.gui-button.gui-text:focus{background:#e6e6e6}.gui-button.gui-text.gui-primary{color:#2185d0}.gui-button.gui-text.gui-primary:hover{background:#2185d0;color:#fff}.gui-button.gui-text.gui-primary:focus{background:#2185d0;color:#fff}.gui-button.gui-text.gui-secondary{color:#3cb371}.gui-button.gui-text.gui-secondary:hover{background:#3cb371;color:#fff}.gui-button.gui-text.gui-secondary:focus{background:#3cb371;color:#fff}.gui-button.gui-text.gui-button:disabled{background:transparent}.gui-button.gui-text.gui-button:disabled .gui-text-disabled{display:inline-block}.gui-button:hover{background:#cccccc;color:#333}.gui-button:active{background:#999;color:#333}.gui-button:disabled{color:#ccc;cursor:default;pointer-events:none}
`,`.gui-dark .gui-button{background:#424242;color:#bdbdbd}.gui-dark .gui-button.gui-outline:focus{box-shadow:0 0 0 2px #616161}.gui-dark .gui-button.gui-outline.gui-primary:focus{box-shadow:0 0 0 2px #ce93d8}.gui-dark .gui-button.gui-outline.gui-secondary:focus{box-shadow:0 0 0 2px #80cbc4}.gui-dark .gui-button.gui-primary{background:#ce93d8;color:#212121}.gui-dark .gui-button.gui-primary.gui-outline{color:#ce93d8}.gui-dark .gui-button.gui-primary.gui-button:hover{background:#c680d1}.gui-dark .gui-button.gui-primary.gui-button:active{background:#b55bc4;color:#212121}.gui-dark .gui-button.gui-primary.gui-button:disabled{background:#ce93d8;color:#212121;opacity:.5}.gui-dark .gui-button.gui-primary.gui-badge{background:#dfb8e6}.gui-dark .gui-button.gui-secondary{background:#80cbc4;color:#212121}.gui-dark .gui-button.gui-secondary.gui-outline{color:#80cbc4}.gui-dark .gui-button.gui-secondary.gui-button:hover{background:#6ec4bc}.gui-dark .gui-button.gui-secondary.gui-button:active{background:#26a69a;color:#212121}.gui-dark .gui-button.gui-secondary.gui-button:disabled{background:#80cbc4;color:#212121;opacity:.5}.gui-dark .gui-button.gui-secondary.gui-badge{background:#a4dad5}.gui-dark .gui-button.gui-link{background:transparent;border:0;color:#2185d0}.gui-dark .gui-button.gui-link:hover{background:none;color:#1e77ba;text-decoration:underline}.gui-dark .gui-button.gui-link:focus{text-decoration:underline}.gui-dark .gui-button.gui-outline{background:transparent;color:#bdbdbd;border-color:#616161;border-style:solid;border-width:1px}.gui-dark .gui-button.gui-outline.gui-button:hover{background:#616161;color:#bdbdbd}.gui-dark .gui-button.gui-outline.gui-badge{background:#121212}.gui-dark .gui-button.gui-outline.gui-primary{border-color:#ce93d8}.gui-dark .gui-button.gui-outline.gui-primary.gui-button:hover{background:#ce93d8;border-color:#ce93d8;color:#212121}.gui-dark .gui-button.gui-outline.gui-primary.gui-button:disabled{background:transparent;border-color:#f0def3;color:#f0def3}.gui-dark .gui-button.gui-outline.gui-primary.gui-badge{background:#121212;border-color:#ce93d8;color:#dfb8e6}.gui-dark .gui-button.gui-outline.gui-secondary{border-color:#80cbc4}.gui-dark .gui-button.gui-outline.gui-secondary.gui-button:hover{background:#80cbc4;border-color:#80cbc4;color:#212121}.gui-dark .gui-button.gui-outline.gui-secondary.gui-button:disabled{background:transparent;border-color:#b2ebf2;color:#b2ebf2}.gui-dark .gui-button.gui-outline.gui-secondary.gui-badge{background:#121212;border-color:#80cbc4;color:#80cbc4}.gui-dark .gui-button:hover{background:#616161}.gui-dark .gui-button:active{background:#212121}.gui-dark .gui-button:disabled{opacity:.36}
`,`.gui-light .gui-button{background:#f6f5f4;border-color:#d8d7d6;color:#333;font-family:Roboto,Helvetica Neue,sans-serif}.gui-light .gui-button.gui-link{background:transparent;border:0;color:#2185d0}.gui-light .gui-button.gui-link:hover{background:none;color:#1e77ba;text-decoration:underline}.gui-light .gui-button.gui-link:focus{text-decoration:underline}.gui-light .gui-button:hover{background:#ecebeb}.gui-light .gui-button:active{background:#f6f5f4}.gui-light .gui-button:disabled{opacity:.5}
`,`.gui-material .gui-button{background:#3949ab;color:#fff;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:500;padding:10px 16px}.gui-material .gui-button.gui-outline:focus{box-shadow:0 0 0 1px #5262c5}.gui-material .gui-button.gui-outline.gui-primary:focus{box-shadow:0 0 0 1px #6200ee}.gui-material .gui-button.gui-outline.gui-secondary:focus{box-shadow:0 0 0 1px #0097a7}.gui-material .gui-button.gui-primary{background:#6200ee;color:#fff}.gui-material .gui-button.gui-primary.gui-outline{color:#6200ee}.gui-material .gui-button.gui-primary.gui-button:hover{background:#974dff}.gui-material .gui-button.gui-primary.gui-button:active{background:#791aff;color:#fff}.gui-material .gui-button.gui-primary.gui-button:disabled{background:#d1c4e9;color:#7d22ff}.gui-material .gui-button.gui-primary.gui-badge{background:#6200ee}.gui-material .gui-button.gui-secondary{background:#0097a7;color:#fff}.gui-material .gui-button.gui-secondary.gui-outline{color:#0097a7}.gui-material .gui-button.gui-secondary.gui-button:hover{background:#00a1b3}.gui-material .gui-button.gui-secondary.gui-button:active{background:#00808e;color:#fff}.gui-material .gui-button.gui-secondary.gui-button:disabled{background:#b2ebf2;color:#00c5da}.gui-material .gui-button.gui-secondary.gui-badge{background:#0097a7}.gui-material .gui-button.gui-link{background:transparent;border:0;color:#3949ab}.gui-material .gui-button.gui-link:hover{color:#4051bf}.gui-material .gui-button.gui-outline{background:transparent;color:#3949ab;border-color:#5262c5}.gui-material .gui-button.gui-outline.gui-button:hover{background:#e8eaf6;color:#3949ab}.gui-material .gui-button.gui-outline.gui-button:active{background:#c5cae9}.gui-material .gui-button.gui-outline.gui-button:disabled{border-color:#c5cae9;color:#c5cae9}.gui-material .gui-button.gui-outline.gui-badge{background:#fff}.gui-material .gui-button.gui-outline.gui-primary{border-color:#6200ee}.gui-material .gui-button.gui-outline.gui-primary.gui-button:hover{background:#ede7f6;border-color:#6200ee;color:#6200ee}.gui-material .gui-button.gui-outline.gui-primary.gui-button:active{background:#d1c4e9}.gui-material .gui-button.gui-outline.gui-primary.gui-button:disabled{background:transparent;border-color:#d1c4e9;color:#d1c4e9}.gui-material .gui-button.gui-outline.gui-primary.gui-badge{background:#fff;border-color:#6200ee;color:#7d22ff}.gui-material .gui-button.gui-outline.gui-secondary{border-color:#0097a7}.gui-material .gui-button.gui-outline.gui-secondary.gui-button:hover{background:#e0f7fa;border-color:#0097a7;color:#0097a7}.gui-material .gui-button.gui-outline.gui-secondary.gui-button:active{background:#b2ebf2}.gui-material .gui-button.gui-outline.gui-secondary.gui-button:disabled{background:transparent;border-color:#b2ebf2;color:#b2ebf2}.gui-material .gui-button.gui-outline.gui-secondary.gui-badge{background:#fff;border-color:#0097a7;color:#0097a7}.gui-material .gui-button:hover{background:#5262c5}.gui-material .gui-button:active{background:#4051bf}.gui-material .gui-button:disabled{background:#c5cae9;color:#7885d2}
`],encapsulation:2,changeDetection:0})}return n})(),Mn=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[J]})}return n})(),dT=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=k({type:n,selectors:[["gui-button-group"]],hostVars:2,hostBindings:function(t,r){t&2&&X("gui-button-group",!0)},ngContentSelectors:io,decls:1,vars:0,template:function(t,r){t&1&&(Ke(),Oe(0))},styles:[`.gui-button-group{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.gui-button-group .gui-button{border-radius:0}.gui-button-group .gui-button:not(:last-child){border-right:none;margin:0}.gui-button-group .gui-button:last-child{border-radius:0 4px 4px 0}.gui-button-group .gui-button:first-child{border-radius:4px 0 0 4px}.gui-button-group .gui-button-toggle .gui-button{border-radius:0}.gui-button-group .gui-button-toggle:not(:last-child) .gui-button{border-right:none;margin:0}.gui-button-group .gui-button-toggle:last-child .gui-button{border-radius:0 4px 4px 0}.gui-button-group .gui-button-toggle:first-child .gui-button{border-radius:4px 0 0 4px}
`],encapsulation:2,changeDetection:0})}return n})(),Dc=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[J]})}return n})();var eT=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[J]})}return n})(),Vo=(()=>{class n{elementRef;renderer;inputRef;name="";inputChecked=!1;disabled=!1;readonly=!1;indeterminate=!1;changed=new Q;checked=!1;constructor(i,t){this.elementRef=i,this.renderer=t}ngOnChanges(i){this.checked=this.inputChecked,i.disabled&&(this.disabled?this.renderer.addClass(this.elementRef.nativeElement,"gui-disabled"):this.renderer.removeClass(this.elementRef.nativeElement,"gui-disabled")),i.readonly&&(this.readonly?this.renderer.addClass(this.elementRef.nativeElement,"gui-readonly"):this.renderer.removeClass(this.elementRef.nativeElement,"gui-readonly")),i.indeterminate&&this.inputRef&&(this.indeterminate?this.inputRef.nativeElement.indeterminate=!0:(this.inputRef.nativeElement.indeterminate=!1,this.inputRef.nativeElement.checked=this.checked))}ngAfterViewInit(){this.inputRef&&(this.inputRef.nativeElement.indeterminate=this.indeterminate)}check(i){i.stopPropagation(),this.checked=!this.checked,this.changed.emit(this.checked)}static \u0275fac=function(t){return new(t||n)(l(S),l(ut))};static \u0275cmp=k({type:n,selectors:[["gui-checkbox"]],viewQuery:function(t,r){if(t&1&&$(XL,5,S),t&2){let o;V(o=B())&&(r.inputRef=o.first)}},hostVars:2,hostBindings:function(t,r){t&2&&X("gui-checkbox",!0)},inputs:{name:"name",inputChecked:[U.None,"checked","inputChecked"],disabled:"disabled",readonly:"readonly",indeterminate:"indeterminate"},outputs:{changed:"changed"},features:[re],ngContentSelectors:io,decls:5,vars:3,consts:[["input",""],["type","checkbox",3,"click","checked","disabled"],[1,"gui-checkmark"]],template:function(t,r){if(t&1){let o=Y();Ke(),f(0,"label")(1,"input",1,0),E("click",function(a){return A(o),F(r.check(a))}),v(),C(3,"span",2),Oe(4),v()}t&2&&(p(),g("checked",r.checked)("disabled",r.disabled),Me("name",r.name))},styles:[`.gui-checkbox{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:24px;padding-left:32px;position:relative}.gui-checkbox label{cursor:pointer}.gui-checkbox label:hover .gui-checkmark{border-color:#999}.gui-checkbox input{height:0;opacity:0;position:absolute;width:0}.gui-checkbox .gui-checkmark{border-color:#575757;border-radius:4px;border-style:solid;border-width:2px;box-sizing:content-box;height:20px;left:0;position:absolute;width:20px}.gui-checkbox input:checked+.gui-checkmark{border-color:#575757}.gui-checkbox.gui-disabled.gui-checkbox{color:#ccc;pointer-events:none}.gui-checkbox.gui-readonly.gui-checkbox{pointer-events:none}.gui-checkbox .gui-checkmark:after{content:" ";display:none;left:6px;position:absolute;-ms-transform:rotate(45deg);transform:rotate(45deg)}.gui-checkbox input:checked+.gui-checkmark:after{box-sizing:content-box;display:block}.gui-checkbox .gui-checkmark:after{border-color:#575757;border-style:solid;border-width:0 3.2px 3.2px 0;height:12px;width:5.2px}.gui-checkbox input:indeterminate+.gui-checkmark:after{display:block;height:10px;left:9px;top:4px;-ms-transform:rotate(90deg);transform:rotate(90deg);width:0}
`,`.gui-material .gui-checkbox{font-family:Roboto,Helvetica Neue,sans-serif}.gui-material .gui-checkbox input:focus+.gui-checkmark{border-color:#3949ab}.gui-material .gui-checkbox label:hover .gui-checkmark{border-color:#575757}.gui-material .gui-checkbox .gui-checkmark{border-color:#999}.gui-material .gui-checkbox input:checked+.gui-checkmark{background:#3949ab;border-color:#3949ab}.gui-material .gui-checkbox .gui-checkmark:after{border-color:#fff}.gui-material .gui-checkbox.gui-indeterminate .gui-checkmark{background:#3949ab;border-color:#3949ab}
`,`.gui-dark .gui-checkbox{color:#bdbdbd}.gui-dark .gui-checkbox .gui-checkmark{border-color:#878787}.gui-dark .gui-checkbox input:checked+.gui-checkmark{border-color:#878787}.gui-dark .gui-checkbox .gui-checkmark:after{border-color:#878787}.gui-dark .gui-checkbox.gui-disabled.gui-checkbox{opacity:.36}
`],encapsulation:2,changeDetection:0})}return n})(),eo=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[J]})}return n})(),ay=(()=>{class n extends lT{constructor(i,t){super(i,t)}static \u0275fac=function(t){return new(t||n)(l(S),l(ut))};static \u0275cmp=k({type:n,selectors:[["gui-chip"]],hostVars:2,hostBindings:function(t,r){t&2&&X("gui-chip",!0)},features:[R],ngContentSelectors:io,decls:1,vars:0,template:function(t,r){t&1&&(Ke(),Oe(0))},styles:[`.gui-chip{background:#e6e6e6;border-radius:4px;box-sizing:border-box;color:#595959;display:inline-block;font-family:Arial;font-size:14px;font-weight:700;margin:0 2px;padding:9.6px 12px}.gui-chip.gui-primary{background:#2185d0;color:#fff}.gui-chip.gui-primary.gui-outline{color:#2185d0}.gui-chip.gui-primary:hover:not(.gui-chip,.gui-badge){background:#1e77ba}.gui-chip.gui-primary:active{background:#1a69a4;color:#fff}.gui-chip.gui-primary:disabled{background:#6fb4e8;color:#439de1}.gui-chip.gui-primary.gui-badge{background:#439de1}.gui-chip.gui-secondary{background:#3cb371;color:#fff}.gui-chip.gui-secondary.gui-outline{color:#3cb371}.gui-chip.gui-secondary.gui-button:hover{background:#36a065}.gui-chip.gui-secondary.gui-button:active{background:#32945e;color:#fff}.gui-chip.gui-secondary.gui-button:disabled{background:#80d5a6;color:#5ac88b}.gui-chip.gui-secondary.gui-badge{background:#5ac88b}.gui-chip.gui-outline{background:transparent;color:#999;border-color:#d6d6d6;border-style:solid;border-width:1px}.gui-chip.gui-outline.gui-button:hover{background:#cccccc;color:#fff}.gui-chip.gui-outline.gui-button:disabled{border-color:#ccc;color:#ccc}.gui-chip.gui-outline.gui-badge{background:#fff}.gui-chip.gui-outline.gui-primary{border-color:#439de1}.gui-chip.gui-outline.gui-primary.gui-button:hover{background:#2185d0;border-color:#2185d0}.gui-chip.gui-outline.gui-primary.gui-button:disabled{background:transparent;border-color:#6fb4e8;color:#6fb4e8}.gui-chip.gui-outline.gui-primary.gui-badge{background:#fff;border-color:#439de1;color:#439de1}.gui-chip.gui-outline.gui-secondary{border-color:#5ac88b}.gui-chip.gui-outline.gui-secondary.gui-button:hover{background:#3cb371;border-color:#3cb371}.gui-chip.gui-outline.gui-secondary.gui-button:disabled{background:transparent;border-color:#80d5a6;color:#80d5a6}.gui-chip.gui-outline.gui-secondary.gui-badge{background:#fff;border-color:#5ac88b;color:#5ac88b}
`,`.gui-material .gui-chip{background:#3949ab;color:#fff;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:500;padding:10px 16px}.gui-material .gui-chip.gui-primary{background:#6200ee;color:#fff}.gui-material .gui-chip.gui-primary.gui-outline{color:#6200ee}.gui-material .gui-chip.gui-primary.gui-button:hover{background:#974dff}.gui-material .gui-chip.gui-primary.gui-button:active{background:#791aff;color:#fff}.gui-material .gui-chip.gui-primary.gui-button:disabled{background:#d1c4e9;color:#7d22ff}.gui-material .gui-chip.gui-primary.gui-badge{background:#6200ee}.gui-material .gui-chip.gui-secondary{background:#0097a7;color:#fff}.gui-material .gui-chip.gui-secondary.gui-outline{color:#0097a7}.gui-material .gui-chip.gui-secondary.gui-button:hover{background:#00a1b3}.gui-material .gui-chip.gui-secondary.gui-button:active{background:#00808e;color:#fff}.gui-material .gui-chip.gui-secondary.gui-button:disabled{background:#b2ebf2;color:#00c5da}.gui-material .gui-chip.gui-secondary.gui-badge{background:#0097a7}.gui-material .gui-chip.gui-outline{background:transparent;color:#3949ab;border-color:#5262c5}.gui-material .gui-chip.gui-outline.gui-button:hover{background:#e8eaf6;color:#3949ab}.gui-material .gui-chip.gui-outline.gui-button:active{background:#c5cae9}.gui-material .gui-chip.gui-outline.gui-button:disabled{border-color:#c5cae9;color:#c5cae9}.gui-material .gui-chip.gui-outline.gui-badge{background:#fff}.gui-material .gui-chip.gui-outline.gui-primary{border-color:#6200ee}.gui-material .gui-chip.gui-outline.gui-primary.gui-button:hover{background:#ede7f6;border-color:#6200ee;color:#6200ee}.gui-material .gui-chip.gui-outline.gui-primary.gui-button:active{background:#d1c4e9}.gui-material .gui-chip.gui-outline.gui-primary.gui-button:disabled{background:transparent;border-color:#d1c4e9;color:#d1c4e9}.gui-material .gui-chip.gui-outline.gui-primary.gui-badge{background:#fff;border-color:#6200ee;color:#7d22ff}.gui-material .gui-chip.gui-outline.gui-secondary{border-color:#0097a7}.gui-material .gui-chip.gui-outline.gui-secondary.gui-button:hover{background:#e0f7fa;border-color:#0097a7;color:#0097a7}.gui-material .gui-chip.gui-outline.gui-secondary.gui-button:active{background:#b2ebf2}.gui-material .gui-chip.gui-outline.gui-secondary.gui-button:disabled{background:transparent;border-color:#b2ebf2;color:#b2ebf2}.gui-material .gui-chip.gui-outline.gui-secondary.gui-badge{background:#fff;border-color:#0097a7;color:#0097a7}
`,`.gui-dark .gui-chip{background:#333;color:#bdbdbd}.gui-dark .gui-chip.gui-primary{background:#ce93d8;color:#212121}.gui-dark .gui-chip.gui-primary.gui-outline{color:#ce93d8}.gui-dark .gui-chip.gui-primary.gui-button:hover{background:#c680d1}.gui-dark .gui-chip.gui-primary.gui-button:active{background:#b55bc4;color:#212121}.gui-dark .gui-chip.gui-primary.gui-button:disabled{background:#ce93d8;color:#212121;opacity:.5}.gui-dark .gui-chip.gui-primary.gui-badge{background:#dfb8e6}.gui-dark .gui-chip.gui-secondary{background:#80cbc4;color:#212121}.gui-dark .gui-chip.gui-secondary.gui-outline{color:#80cbc4}.gui-dark .gui-chip.gui-secondary.gui-button:hover{background:#6ec4bc}.gui-dark .gui-chip.gui-secondary.gui-button:active{background:#26a69a;color:#212121}.gui-dark .gui-chip.gui-secondary.gui-button:disabled{background:#80cbc4;color:#212121;opacity:.5}.gui-dark .gui-chip.gui-secondary.gui-badge{background:#a4dad5}.gui-dark .gui-chip.gui-outline{background:transparent;color:#bdbdbd;border-color:#616161;border-style:solid;border-width:1px}.gui-dark .gui-chip.gui-outline.gui-button:hover{background:#616161;color:#bdbdbd}.gui-dark .gui-chip.gui-outline.gui-badge{background:#121212}.gui-dark .gui-chip.gui-outline.gui-primary{border-color:#ce93d8}.gui-dark .gui-chip.gui-outline.gui-primary.gui-button:hover{background:#ce93d8;border-color:#ce93d8;color:#212121}.gui-dark .gui-chip.gui-outline.gui-primary.gui-button:disabled{background:transparent;border-color:#f0def3;color:#f0def3}.gui-dark .gui-chip.gui-outline.gui-primary.gui-badge{background:#121212;border-color:#ce93d8;color:#dfb8e6}.gui-dark .gui-chip.gui-outline.gui-secondary{border-color:#80cbc4}.gui-dark .gui-chip.gui-outline.gui-secondary.gui-button:hover{background:#80cbc4;border-color:#80cbc4;color:#212121}.gui-dark .gui-chip.gui-outline.gui-secondary.gui-button:disabled{background:transparent;border-color:#b2ebf2;color:#b2ebf2}.gui-dark .gui-chip.gui-outline.gui-secondary.gui-badge{background:#121212;border-color:#80cbc4;color:#80cbc4}
`,`.gui-light .gui-chip{background:#f6f5f4;border-color:#333;border-style:solid;border-width:1px;color:#333}
`],encapsulation:2,changeDetection:0})}return n})(),jo=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[J]})}return n})(),ro=(()=>{class n{unsubscribe$=new ue;constructor(){}ngOnDestroy(){this.unsubscribe()}unsubscribe(){this.unsubscribe$.isStopped||(this.unsubscribe$.next(),this.unsubscribe$.complete())}static \u0275fac=function(t){return new(t||n)};static \u0275dir=G({type:n})}return n})(),ii=function(n){return n[n.DAYS=0]="DAYS",n[n.MONTHS=1]="MONTHS",n[n.YEARS=2]="YEARS",n}(ii||{}),ni=function(n){return n[n.NONE=0]="NONE",n[n.DATE_PICKER=1]="DATE_PICKER",n[n.TIME_PICKER=2]="TIME_PICKER",n[n.TIME_PICKER_HOURS=4]="TIME_PICKER_HOURS",n[n.TIME_PICKER_MINUTES=8]="TIME_PICKER_MINUTES",n[n.TIME_PICKER_SECONDS=16]="TIME_PICKER_SECONDS",n[n.TIME_PICKER_MERIDIAN=32]="TIME_PICKER_MERIDIAN",n[n.ALL=63]="ALL",n}(ni||{}),cy=new Date().getMonth(),ly=new Date().getFullYear(),Jd=(()=>{class n{selectedDate=new Date;selectedTime;selectedDate$=new wt(this.selectedDate);observeSelectedDate(){return this.selectedDate$.asObservable()}dateSelected(i){this.selectedDate=new Date(i.getTime()),this.setSelectedDateTime(),this.selectedDate$.next(this.selectedDate)}changeTime(i,t){this.selectedTime=i,this.selectedDate||(this.selectedDate=t),this.setSelectedDateTime()}next(){this.dateSelected(this.selectedDate)}setSelectedDateTime(){this.selectedTime&&(this.selectedDate.setHours(this.selectedTime.hours),this.selectedDate.setMinutes(this.selectedTime.minutes),this.selectedDate.setSeconds(this.selectedTime.seconds))}static \u0275fac=function(t){return new(t||n)};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),dy=(()=>{class n{datePickerFormat$=new wt(ni.DATE_PICKER);onComposition(){return this.datePickerFormat$.asObservable()}next(i){this.datePickerFormat$.next(this.getComposition(i))}getComposition(i){let t=i.split(":").join(" "),r=t.split("/").join(" "),o=r.split(".").join(" "),s=o.split(",").join(" "),a=s.split(" "),u=ni.NONE;return a.forEach(b=>{let y=b.toLowerCase().includes("d"),I=b.includes("M"),N=b.toLowerCase().includes("y"),K=b.toLowerCase().includes("h"),de=b.includes("m"),fe=b.toLowerCase().includes("s"),W=b.includes("h"),ge=y||I||N,Ve=K||de||fe;ge&&(u=u|ni.DATE_PICKER),Ve&&(u=u|ni.TIME_PICKER),W&&(u=u|ni.TIME_PICKER_MERIDIAN),K&&(u=u|ni.TIME_PICKER_HOURS),de&&(u=u|ni.TIME_PICKER_MINUTES),fe&&(u=u|ni.TIME_PICKER_SECONDS)}),u}static \u0275fac=function(t){return new(t||n)};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),uT=(()=>{class n{weeks=[];getDaysInMonths(i,t){this.resetWeeks();let r=new Date(i,t+1,0).getDate();for(let o=1;o<=r;o++)this.createWeeks(new Date(i,t,o));return this.weeks}createWeeks(i){let t=i.getDate(),r=6;for(let o=0;o<r;o++)t===1?this.addDaysToWeek(o,i):this.canAddDaysToWeek(o,t)&&this.addDaysToWeek(o,this.getLastDayDate(this.weeks[o-1]));this.weeks=[this.weeks[0],this.weeks[1],this.weeks[2],this.weeks[3],this.weeks[4],this.weeks[5]]}addDaysToWeek(i,t){let r=this.weeks[i];for(let o=1;o<=7;o++){let s=t.getDay()===0&&this.weeks[0].length===0,a;s?a=t.getDate()-6:a=t.getDate()-t.getDay()+o;let u=new Date(t.setDate(a));r.length<7&&r.push(u)}}getLastDayNumber(i){return i.length===7?i[i.length-1].getDate():0}getLastDayDate(i){let t=i[i.length-1].getDate();return new Date(i[i.length-1].setDate(t))}canAddDaysToWeek(i,t){return this.weeks[i].length===0&&this.weeks[i-1].length===7&&t>this.getLastDayNumber(this.weeks[i-1])}resetWeeks(){this.weeks=[],this.weeks[0]=[],this.weeks[1]=[],this.weeks[2]=[],this.weeks[3]=[],this.weeks[4]=[],this.weeks[5]=[]}static \u0275fac=function(t){return new(t||n)};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),uy=(()=>{class n{rowsForDisplay=[];minYear=0;maxYear=0;selectedYear=0;inc=10;getYears(i){this.minYear=i-50,this.maxYear=i+50;let t=this.maxYear-this.minYear,r=[],o=[];return r=this.createYearsPool(this.minYear,t,r),o=this.divideYearsPool(r,o),this.rowsForDisplay=this.createRowsForDisplay(o,i)}prevYearRange(i){return this.selectedYear||(this.selectedYear=i),this.selectedYear>this.minYear&&(this.selectedYear-=this.inc),this.selectedYear>this.minYear?this.getYears(this.selectedYear):this.rowsForDisplay}nextYearRange(i){return this.selectedYear||(this.selectedYear=i),this.selectedYear<this.maxYear&&(this.selectedYear+=this.inc),this.selectedYear<this.maxYear?this.getYears(this.selectedYear):this.rowsForDisplay}createYearsPool(i,t,r){for(let o=0;o<=t;o++)r.push(i+o);return r}divideYearsPool(i,t){for(let r=0;r<i.length;r+=5)t.push(i.slice(r,r+5));return t}createRowsForDisplay(i,t){if(t>=this.minYear||t<=this.maxYear){for(let r=0;r<i.length;r++)if(i[r].indexOf(t)>-1)return i[r-1]?i[r-2]?i[r+1]?i[r+2]?this.rowsForDisplay=[i[r-2],i[r-1],i[r],i[r+1],i[r+2]]:[i[r-3],i[r-2],i[r-1],i[r],i[r+1]]:[i[r-4],i[r-3],i[r-2],i[r-1],i[r]]:[i[r-1],i[r],i[r+1],i[r+2],i[r+3]]:[i[r],i[r+1],i[r+2],i[r+3],i[r+4]]}return[[]]}static \u0275fac=function(t){return new(t||n)};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),hy=(()=>{class n{years$=new ue;onYears(){return this.years$.asObservable()}next(i){this.years$.next(i)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),eu=(()=>{class n{activeMonth$=new ue;activeYear$=new ue;onActiveMonth(){return this.activeMonth$.asObservable()}onActiveYear(){return this.activeYear$.asObservable()}nextMonth(i,t){t===11?(this.activeYear$.next(i+1),this.selectMonth(0)):this.selectMonth(t+1)}prevMonth(i,t){t===0?(this.activeYear$.next(i-1),this.selectMonth(11)):this.selectMonth(t-1)}selectYear(i){this.activeYear$.next(i)}selectMonth(i){this.activeMonth$.next(i)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),tu=(()=>{class n{activeView$=new ue;onActiveView(){return this.activeView$.asObservable()}switchView(i){this.activeView$.next(i)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),j3=["Mo","Tu","We","Th","Fr","Sa","Su"],Xd=class{static areDatesSame(e,i){return e&&i&&e.getDate()===i.getDate()&&e.getMonth()===i.getMonth()&&e.getFullYear()===i.getFullYear()}static isMonth(e,i,t){return e.getMonth()===i&&e.getFullYear()===t}},L3=(()=>{class n{datePickerService;selectedDate;activeMonth=cy;weeks=[];daysOfTheWeek=j3;currentDay=new Date;constructor(i){this.datePickerService=i}selectDate(i){this.datePickerService.dateSelected(i)}isDate(i,t){return Xd.areDatesSame(i,t)}displayMonthDays(i){return i===this.activeMonth}static \u0275fac=function(t){return new(t||n)(l(Jd))};static \u0275cmp=k({type:n,selectors:[["gui-date-picker-days-view"]],inputs:{selectedDate:"selectedDate",activeMonth:"activeMonth",weeks:"weeks"},decls:4,vars:2,consts:[[1,"gui-display-grid","gui-grid-rows-gap-8","gui-py-6"],[1,"gui-display-grid","gui-grid-cols-7","gui-py-4","gui-date-picker-header"],[4,"ngFor","ngForOf"],["class","gui-display-grid gui-grid-cols-7",4,"ngFor","ngForOf"],[1,"gui-display-grid","gui-grid-cols-7"],["class","gui-date-picker-cell gui-date-picker-day",3,"gui-date-picker-current-day","gui-date-picker-selected-day","gui-date-picker-selected-month","click",4,"ngFor","ngForOf"],[1,"gui-date-picker-cell","gui-date-picker-day",3,"click"]],template:function(t,r){t&1&&(f(0,"div",0)(1,"div",1),j(2,ZL,2,1,"div",2),v(),j(3,e3,2,1,"div",3),v()),t&2&&(p(2),g("ngForOf",r.daysOfTheWeek),p(),g("ngForOf",r.weeks))},dependencies:[Ht],encapsulation:2,changeDetection:0})}return n})(),V3=[[{nr:0,name:"Jan"},{nr:1,name:"Feb"},{nr:2,name:"Mar"}],[{nr:3,name:"Apr"},{nr:4,name:"May"},{nr:5,name:"Jun"}],[{nr:6,name:"Jul"},{nr:7,name:"Aug"},{nr:8,name:"Sep"}],[{nr:9,name:"Oct"},{nr:10,name:"Nov"},{nr:11,name:"Dec"}]],B3=(()=>{class n{calendarService;calendarViewService;selectedDate;activeYear=ly;currentDay=new Date;monthsPerQuarters=V3;constructor(i,t){this.calendarService=i,this.calendarViewService=t}isMonth(i,t){return Xd.isMonth(i,t,this.activeYear)}selectMonth(i){this.calendarService.selectMonth(i),this.calendarViewService.switchView(ii.DAYS)}static \u0275fac=function(t){return new(t||n)(l(eu),l(tu))};static \u0275cmp=k({type:n,selectors:[["gui-date-picker-months-view"]],inputs:{selectedDate:"selectedDate",activeYear:"activeYear"},decls:2,vars:1,consts:[[1,"gui-display-grid","gui-grid-rows-gap-8","gui-py-6","gui-date-picker-view-border-top"],["class","gui-display-grid gui-grid-cols-3",4,"ngFor","ngForOf"],[1,"gui-display-grid","gui-grid-cols-3"],["class","gui-date-picker-cell gui-date-picker-month",3,"gui-date-picker-current-month","gui-date-picker-selected-month","click",4,"ngFor","ngForOf"],[1,"gui-date-picker-cell","gui-date-picker-month",3,"click"]],template:function(t,r){t&1&&(f(0,"div",0),j(1,i3,2,1,"div",1),v()),t&2&&(p(),g("ngForOf",r.monthsPerQuarters))},dependencies:[Ht],encapsulation:2,changeDetection:0})}return n})(),z3=(()=>{class n{calendarService;calendarViewService;selectedDate;years=[];currentDay=new Date;constructor(i,t){this.calendarService=i,this.calendarViewService=t}selectYear(i){this.calendarService.selectYear(i),this.calendarViewService.switchView(ii.MONTHS)}isYear(i,t){return i?i.getFullYear()===t:!1}static \u0275fac=function(t){return new(t||n)(l(eu),l(tu))};static \u0275cmp=k({type:n,selectors:[["gui-date-picker-years-view"]],inputs:{selectedDate:"selectedDate",years:"years"},decls:2,vars:1,consts:[[1,"gui-display-grid","gui-grid-rows-gap-8","gui-py-6","gui-date-picker-view-border-top"],["class","gui-display-grid gui-grid-cols-5",4,"ngFor","ngForOf"],[1,"gui-display-grid","gui-grid-cols-5"],["class","gui-date-picker-cell gui-date-picker-year",3,"gui-date-picker-current-year","gui-date-picker-selected-year","click",4,"ngFor","ngForOf"],[1,"gui-date-picker-cell","gui-date-picker-year",3,"click"]],template:function(t,r){t&1&&(f(0,"div",0),j(1,r3,2,1,"div",1),v()),t&2&&(p(),g("ngForOf",r.years))},dependencies:[Ht],encapsulation:2,changeDetection:0})}return n})(),J_=function(n){return n[n.NEXT=0]="NEXT",n[n.PREV=1]="PREV",n}(J_||{}),Jr=function(n){return n[n.TOP=-90]="TOP",n[n.BOTTOM=90]="BOTTOM",n[n.LEFT=180]="LEFT",n[n.RIGHT=0]="RIGHT",n}(Jr||{}),tT=["January","February","March","April","May","June","July","August","September","October","November","December"],Sp=(()=>{class n{direction=Jr.RIGHT;static \u0275fac=function(t){return new(t||n)};static \u0275cmp=k({type:n,selectors:[["gui-arrow-icon"]],hostVars:4,hostBindings:function(t,r){t&2&&X("gui-arrow-icon",!0)("gui-icon",!0)},inputs:{direction:"direction"},decls:2,vars:2,consts:[["height","10.661","viewBox","0 0 6.081 10.661","width","6.081","xmlns","http://www.w3.org/2000/svg"],["d","M.75.75,5.02,5.02.75,9.29","fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5","transform","translate(0.311 0.311)"]],template:function(t,r){t&1&&(mt(),f(0,"svg",0),C(1,"path",1),v()),t&2&&Qe("transform","rotate("+r.direction+"deg)")},styles:[`.gui-arrow-icon{cursor:pointer}.gui-arrow-icon svg path{stroke:#aaa;transition:stroke .2s ease-in-out}.gui-arrow-icon:hover svg path{stroke:#464646}
`],encapsulation:2,changeDetection:0})}return n})(),H3=(()=>{class n{calendarViewService;calendarService;datePickerYearsService;datePickerYears;fabricCalendarView=ii.DAYS;selectedDate;activeMonth=cy;activeYear=ly;years=[];Direction=Jr;FabricCalendarCardView=J_;constructor(i,t,r,o){this.calendarViewService=i,this.calendarService=t,this.datePickerYearsService=r,this.datePickerYears=o}getDisplayedDate(){switch(this.fabricCalendarView){case ii.DAYS:return`${tT[this.activeMonth]} ${this.activeYear}`;case ii.MONTHS:return`${tT[this.activeMonth]} ${this.activeYear}`;case ii.YEARS:return`${this.getDisplayedYearRange()}`;default:return""}}switchCalendarView(){switch(this.fabricCalendarView){case ii.DAYS:this.calendarViewService.switchView(ii.YEARS);break;case ii.MONTHS:this.calendarViewService.switchView(ii.DAYS);break;case ii.YEARS:this.calendarViewService.switchView(ii.DAYS);break;default:break}}switchCard(i){let t=i===J_.NEXT,r=t?1:-1,o=this.activeYear+r,s=t?this.datePickerYears.nextYearRange(this.activeYear):this.datePickerYears.prevYearRange(this.activeYear);switch(this.fabricCalendarView){case ii.DAYS:this.handleMonthChange(t);break;case ii.MONTHS:this.calendarService.selectYear(o);break;case ii.YEARS:this.datePickerYearsService.next(s);break;default:break}}getDisplayedYearRange(){return this.years[0][0].toString()+"-"+this.years[4][this.years[4].length-1].toString()}handleMonthChange(i){i?this.calendarService.nextMonth(this.activeYear,this.activeMonth):this.calendarService.prevMonth(this.activeYear,this.activeMonth)}static \u0275fac=function(t){return new(t||n)(l(tu),l(eu),l(hy),l(uy))};static \u0275cmp=k({type:n,selectors:[["gui-date-picker-view-panel"]],inputs:{fabricCalendarView:"fabricCalendarView",selectedDate:"selectedDate",activeMonth:"activeMonth",activeYear:"activeYear",years:"years"},decls:6,vars:3,consts:[[1,"gui-date-picker-view-panel"],[1,"gui-date-picker-view-panel-date",3,"click"],[1,"gui-date-picker-arrows"],[1,"gui-date-picker-arrow",3,"click","direction"]],template:function(t,r){t&1&&(f(0,"div",0)(1,"div",1),E("click",function(){return r.switchCalendarView()}),T(2),v(),f(3,"div",2)(4,"gui-arrow-icon",3),E("click",function(){return r.switchCard(r.FabricCalendarCardView.PREV)}),v(),f(5,"gui-arrow-icon",3),E("click",function(){return r.switchCard(r.FabricCalendarCardView.NEXT)}),v()()()),t&2&&(p(2),we(" ",r.getDisplayedDate()," "),p(2),g("direction",r.Direction.LEFT),p(),g("direction",r.Direction.RIGHT))},dependencies:[Sp],encapsulation:2,changeDetection:0})}return n})(),ey=class{hours;minutes;seconds;constructor(e,i,t){this.hours=e,this.minutes=i,this.seconds=t}},Dp=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=k({type:n,selectors:[["input","gui-input",""]],hostVars:2,hostBindings:function(t,r){t&2&&X("gui-input",!0)},attrs:o3,decls:0,vars:0,template:function(t,r){},styles:[`.gui-input{background:#fff;border-color:#d6d6d6;border-radius:4px;border-style:solid;border-width:1px;color:#333;font:14px Arial;margin:0;max-width:100%;outline:0;padding:8px 12px;text-align:left;transition:border-color .3s ease-in-out}.gui-input:hover{border-color:#999}.gui-input:focus{border-color:#6fb4e8}.gui-input:disabled{color:#ccc;cursor:default;pointer-events:none}.gui-input:disabled::-moz-placeholder{color:#ccc}.gui-input:disabled:-ms-input-placeholder{color:#ccc}.gui-input:disabled::placeholder{color:#ccc}
`,`.gui-material .gui-input{border-color:#ccc;border-radius:0;border-style:solid;border-width:0 0 1px 0;font-family:Roboto,Helvetica Neue,sans-serif;padding-left:0;transition:border-color .3s ease-in-out}.gui-material .gui-input:not(:-moz-placeholder-shown){border-color:#6200ee}.gui-material .gui-input:not(:-ms-input-placeholder){border-color:#6200ee}.gui-material .gui-input:not(:placeholder-shown){border-color:#6200ee}.gui-material .gui-input:focus{border-color:#6200ee}
`,`.gui-dark .gui-input{background:#424242;border-color:#616161;color:#bdbdbd}.gui-dark .gui-input:hover{border-color:#757575}.gui-dark .gui-input:focus{border-color:#ce93d8}.gui-dark .gui-input:disabled{opacity:.36}
`],encapsulation:2,changeDetection:0})}return n})(),U3=(()=>{class n extends ro{formBuilder;datePickerService;selectedDate;datePickerComposition=ni.NONE;steps=1;form;Direction=Jr;FabricDatePickerComposition=ni;constructor(i,t){super(),this.formBuilder=i,this.datePickerService=t,this.form=this.formBuilder.group({hours:[""],minutes:[""],seconds:[""]})}ngOnChanges(i){i.selectedDate&&this.selectedDate}ngOnInit(){this.isActive(this.datePickerComposition,ni.TIME_PICKER_HOURS)&&this.form.controls.hours.valueChanges.pipe(ce(this.unsubscribe$)).subscribe(t=>{let r=this.isMeridian()?1:0,o=this.isMeridian()?12:23;(t>o||t<r)&&this.form.controls.hours.setValue(r),this.changeSelectedDate()}),this.isActive(this.datePickerComposition,ni.TIME_PICKER_MINUTES)&&this.form.controls.minutes.valueChanges.pipe(ce(this.unsubscribe$)).subscribe(i=>{this.controlFormItemValue(i,"minutes","hours"),this.changeSelectedDate()}),this.isActive(this.datePickerComposition,ni.TIME_PICKER_SECONDS)&&this.form.controls.seconds.valueChanges.pipe(ce(this.unsubscribe$)).subscribe(i=>{this.controlFormItemValue(i,"seconds","minutes"),this.changeSelectedDate()}),this.setTimeFromSelectedDate()}changeTimeItem(i,t){let r=this.form.controls[i].value+t;this.form.controls[i].setValue(r)}changeSelectedDateTime(){this.datePickerService.next()}isActive(i,t){return!!(i&t)}isMeridian(){return this.isActive(this.datePickerComposition,ni.TIME_PICKER_MERIDIAN)}isOnlyTimePicker(){return!(this.datePickerComposition&ni.DATE_PICKER)}changeSelectedDate(){if(this.selectedDate){let i=this.form.controls.hours.value,t=this.form.controls.minutes.value,r=this.form.controls.seconds.value,o=new ey(i,t,r);this.datePickerService.changeTime(o,this.selectedDate)}}controlFormItemValue(i,t,r){if(i>59){let o=this.form.controls[r].value,s=o+1;this.form.controls[r].setValue(s),this.form.controls[t].setValue(0)}else i<0&&this.form.controls[t].setValue(0)}setTimeFromSelectedDate(){if(this.selectedDate){let i=this.selectedDate.getHours(),t=this.selectedDate.getMinutes(),r=this.selectedDate.getSeconds();this.form.controls.hours.setValue(i),this.form.controls.minutes.setValue(t),this.form.controls.seconds.setValue(r)}}static \u0275fac=function(t){return new(t||n)(l(Yr),l(Jd))};static \u0275cmp=k({type:n,selectors:[["gui-time-picker"]],hostVars:2,hostBindings:function(t,r){t&2&&X("only-time-picker",r.isOnlyTimePicker())},inputs:{selectedDate:"selectedDate",datePickerComposition:"datePickerComposition"},features:[R,re],decls:7,vars:5,consts:[[3,"formGroup"],["class","gui-time-picker-item",4,"ngIf"],[1,"gui-time-picker-button-wrapper",3,"click"],["gui-button","",3,"outline"],[1,"gui-time-picker-item"],[1,"gui-date-picker-arrow",3,"click","direction"],["formControlName","hours","gui-input","","maxlength","2"],["formControlName","minutes","gui-input","","maxlength","2","type","number"],["formControlName","seconds","gui-input","","maxlength","2","type","number"]],template:function(t,r){t&1&&(f(0,"form",0),j(1,s3,4,2,"div",1)(2,a3,4,2,"div",1)(3,c3,4,2,"div",1),v(),f(4,"div",2),E("click",function(){return r.changeSelectedDateTime()}),f(5,"button",3),T(6," Ok "),v()()),t&2&&(g("formGroup",r.form),p(),g("ngIf",r.isActive(r.datePickerComposition,r.FabricDatePickerComposition.TIME_PICKER_HOURS)),p(),g("ngIf",r.isActive(r.datePickerComposition,r.FabricDatePickerComposition.TIME_PICKER_MINUTES)),p(),g("ngIf",r.isActive(r.datePickerComposition,r.FabricDatePickerComposition.TIME_PICKER_SECONDS)),p(2),g("outline",!0))},dependencies:[rt,wr,gi,ks,Vi,yr,E_,er,qr,Dp,no,Sp],encapsulation:2,changeDetection:0})}return n})(),$3=(()=>{class n extends ro{datePickerService;datePickerFormatService;datePickerWeeks;datePickerYears;datePickerYearsService;calendarService;calendarViewService;changeDetectorRef;weeks=[];years=[];selectedDate;activeMonth=cy;activeYear=ly;datePickerComposition=ni.NONE;FabricDatePickerComposition=ni;FabricCalendarView=ii;fabricCalendarView=ii.DAYS;constructor(i,t,r,o,s,a,u,b){super(),this.datePickerService=i,this.datePickerFormatService=t,this.datePickerWeeks=r,this.datePickerYears=o,this.datePickerYearsService=s,this.calendarService=a,this.calendarViewService=u,this.changeDetectorRef=b}ngOnInit(){this.datePickerFormatService.onComposition().pipe(ce(this.unsubscribe$)).subscribe(i=>{this.datePickerComposition=i}),this.calendarService.onActiveMonth().pipe(ce(this.unsubscribe$)).subscribe(i=>{this.activeMonth=i,this.calculateDatePickerData(),this.changeDetectorRef.detectChanges()}),this.calendarService.onActiveYear().pipe(ce(this.unsubscribe$)).subscribe(i=>{this.activeYear=i,this.calculateDatePickerData(),this.changeDetectorRef.detectChanges()}),this.datePickerService.observeSelectedDate().pipe(ce(this.unsubscribe$)).subscribe(i=>{this.selectedDate=i,this.activeYear=i.getFullYear(),this.activeMonth=i.getMonth()}),this.datePickerYearsService.onYears().pipe(ce(this.unsubscribe$)).subscribe(i=>{this.years=i,this.changeDetectorRef.detectChanges()}),this.calendarViewService.onActiveView().pipe(ce(this.unsubscribe$)).subscribe(i=>{this.fabricCalendarView=i,this.changeDetectorRef.detectChanges()}),this.calculateDatePickerData()}getCalendarView(){return event&&event.stopPropagation(),this.fabricCalendarView}isVisible(i,t){return!!(i&t)}calculateDatePickerData(){this.weeks=this.datePickerWeeks.getDaysInMonths(this.activeYear,this.activeMonth),this.years=this.datePickerYears.getYears(this.activeYear)}static \u0275fac=function(t){return new(t||n)(l(Jd),l(dy),l(uT),l(uy),l(hy),l(eu),l(tu),l(ee))};static \u0275cmp=k({type:n,selectors:[["gui-date-picker-toggle"]],hostVars:2,hostBindings:function(t,r){t&2&&X("gui-date-picker-calendar",!0)},features:[R],decls:2,vars:2,consts:[[4,"ngIf"],[3,"datePickerComposition","selectedDate",4,"ngIf"],[3,"activeMonth","activeYear","fabricCalendarView","selectedDate","years"],[3,"ngSwitch"],[3,"activeMonth","selectedDate","weeks",4,"ngSwitchCase"],[3,"activeYear","selectedDate",4,"ngSwitchCase"],[3,"selectedDate","years",4,"ngSwitchCase"],[3,"activeMonth","selectedDate","weeks"],[3,"activeYear","selectedDate"],[3,"selectedDate","years"],[3,"datePickerComposition","selectedDate"]],template:function(t,r){t&1&&j(0,h3,6,9,"ng-container",0)(1,m3,1,2,"gui-time-picker",1),t&2&&(g("ngIf",r.isVisible(r.datePickerComposition,r.FabricDatePickerComposition.DATE_PICKER)),p(),g("ngIf",r.isVisible(r.datePickerComposition,r.FabricDatePickerComposition.TIME_PICKER)))},dependencies:[rt,GE,WE,L3,B3,z3,H3,U3],styles:[`.gui-box-border{box-sizing:border-box}.gui-bg-transparent{background-color:transparent}.gui-border{border-width:1px}.gui-border-0{border-width:0}.gui-border-b{border-bottom-width:1px}.gui-border-t{border-top-width:1px}.gui-border-solid{border-style:solid}.gui-border-b-solid{border-bottom-style:solid}.gui-border-t-solid{border-top-style:solid}.gui-border-none{border-style:none}.gui-rounded{border-radius:4px}.gui-cursor-pointer{cursor:pointer}.gui-block{display:block}.gui-inline-block{display:inline-block}.gui-inline{display:inline}.gui-flex{display:-ms-flexbox;display:flex}.gui-hidden{display:none}.gui-display-grid{display:grid}.gui-flex-row{-ms-flex-direction:row;flex-direction:row}.gui-flex-row-reverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.gui-flex-col{-ms-flex-direction:column;flex-direction:column}.gui-flex-col-reverse{-ms-flex-direction:column-reverse;flex-direction:column-reverse}.gui-justify-start{-ms-flex-pack:start;justify-content:flex-start}.gui-justify-end{-ms-flex-pack:end;justify-content:flex-end}.gui-justify-center{-ms-flex-pack:center;justify-content:center}.gui-justify-between{-ms-flex-pack:justify;justify-content:space-between}.gui-justify-around{-ms-flex-pack:distribute;justify-content:space-around}.gui-justify-evenly{-ms-flex-pack:space-evenly;justify-content:space-evenly}.gui-items-start{-ms-flex-align:start;align-items:flex-start}.gui-items-end{-ms-flex-align:end;align-items:flex-end}.gui-items-center{-ms-flex-align:center;align-items:center}.gui-items-between{-ms-flex-align:space-between;align-items:space-between}.gui-items-around{-ms-flex-align:space-around;align-items:space-around}.gui-items-evenly{-ms-flex-align:space-evenly;align-items:space-evenly}.gui-flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.gui-flex-wrap-reverse{-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse}.gui-flex-nowrap{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.gui-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.gui-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gui-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.gui-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.gui-grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.gui-grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.gui-grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.gui-grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.gui-grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.gui-grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.gui-grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.gui-grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.gui-grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.gui-grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.gui-grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.gui-grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.gui-grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.gui-grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.gui-grid-rows-gap-0{grid-row-gap:0}.gui-grid-rows-gap-1{grid-row-gap:1px}.gui-grid-rows-gap-2{grid-row-gap:2px}.gui-grid-rows-gap-3{grid-row-gap:3px}.gui-grid-rows-gap-4{grid-row-gap:4px}.gui-grid-rows-gap-5{grid-row-gap:6px}.gui-grid-rows-gap-6{grid-row-gap:8px}.gui-grid-rows-gap-7{grid-row-gap:10px}.gui-grid-rows-gap-8{grid-row-gap:12px}.gui-grid-rows-gap-10{grid-row-gap:16px}.gui-grid-rows-gap-13{grid-row-gap:22px}.gui-grid-rows-gap-23{grid-row-gap:42px}.gui-grid-cols-gap-0{grid-column-gap:0}.gui-grid-cols-gap-1{grid-column-gap:1px}.gui-grid-cols-gap-2{grid-column-gap:2px}.gui-grid-cols-gap-3{grid-column-gap:3px}.gui-grid-cols-gap-4{grid-column-gap:4px}.gui-grid-cols-gap-5{grid-column-gap:6px}.gui-grid-cols-gap-6{grid-column-gap:8px}.gui-grid-cols-gap-7{grid-column-gap:10px}.gui-grid-cols-gap-8{grid-column-gap:12px}.gui-grid-cols-gap-10{grid-column-gap:16px}.gui-grid-cols-gap-13{grid-column-gap:22px}.gui-grid-cols-gap-23{grid-column-gap:42px}.gui-h-full{height:100%}.gui-list-none{list-style-type:none}.gui-m-0{margin:0}.gui-mx-0{margin-left:0;margin-right:0}.gui-my-0{margin-bottom:0;margin-top:0}.-gui-m-0{margin:0}.-gui-mx-0{margin-left:0;margin-right:0}.-gui-my-0{margin-bottom:0;margin-top:0}.gui-m-1{margin:1px}.gui-mx-1{margin-left:1px;margin-right:1px}.gui-my-1{margin-bottom:1px;margin-top:1px}.-gui-m-1{margin:-1px}.-gui-mx-1{margin-left:-1px;margin-right:-1px}.-gui-my-1{margin-bottom:-1px;margin-top:-1px}.gui-m-2{margin:2px}.gui-mx-2{margin-left:2px;margin-right:2px}.gui-my-2{margin-bottom:2px;margin-top:2px}.-gui-m-2{margin:-2px}.-gui-mx-2{margin-left:-2px;margin-right:-2px}.-gui-my-2{margin-bottom:-2px;margin-top:-2px}.gui-m-3{margin:3px}.gui-mx-3{margin-left:3px;margin-right:3px}.gui-my-3{margin-bottom:3px;margin-top:3px}.-gui-m-3{margin:-3px}.-gui-mx-3{margin-left:-3px;margin-right:-3px}.-gui-my-3{margin-bottom:-3px;margin-top:-3px}.gui-m-4{margin:4px}.gui-mx-4{margin-left:4px;margin-right:4px}.gui-my-4{margin-bottom:4px;margin-top:4px}.-gui-m-4{margin:-4px}.-gui-mx-4{margin-left:-4px;margin-right:-4px}.-gui-my-4{margin-bottom:-4px;margin-top:-4px}.gui-m-5{margin:6px}.gui-mx-5{margin-left:6px;margin-right:6px}.gui-my-5{margin-bottom:6px;margin-top:6px}.-gui-m-5{margin:-6px}.-gui-mx-5{margin-left:-6px;margin-right:-6px}.-gui-my-5{margin-bottom:-6px;margin-top:-6px}.gui-m-6{margin:8px}.gui-mx-6{margin-left:8px;margin-right:8px}.gui-my-6{margin-bottom:8px;margin-top:8px}.-gui-m-6{margin:-8px}.-gui-mx-6{margin-left:-8px;margin-right:-8px}.-gui-my-6{margin-bottom:-8px;margin-top:-8px}.gui-m-7{margin:10px}.gui-mx-7{margin-left:10px;margin-right:10px}.gui-my-7{margin-bottom:10px;margin-top:10px}.-gui-m-7{margin:-10px}.-gui-mx-7{margin-left:-10px;margin-right:-10px}.-gui-my-7{margin-bottom:-10px;margin-top:-10px}.gui-m-8{margin:12px}.gui-mx-8{margin-left:12px;margin-right:12px}.gui-my-8{margin-bottom:12px;margin-top:12px}.-gui-m-8{margin:-12px}.-gui-mx-8{margin-left:-12px;margin-right:-12px}.-gui-my-8{margin-bottom:-12px;margin-top:-12px}.gui-m-10{margin:16px}.gui-mx-10{margin-left:16px;margin-right:16px}.gui-my-10{margin-bottom:16px;margin-top:16px}.-gui-m-10{margin:-16px}.-gui-mx-10{margin-left:-16px;margin-right:-16px}.-gui-my-10{margin-bottom:-16px;margin-top:-16px}.gui-m-13{margin:22px}.gui-mx-13{margin-left:22px;margin-right:22px}.gui-my-13{margin-bottom:22px;margin-top:22px}.-gui-m-13{margin:-22px}.-gui-mx-13{margin-left:-22px;margin-right:-22px}.-gui-my-13{margin-bottom:-22px;margin-top:-22px}.gui-m-23{margin:42px}.gui-mx-23{margin-left:42px;margin-right:42px}.gui-my-23{margin-bottom:42px;margin-top:42px}.-gui-m-23{margin:-42px}.-gui-mx-23{margin-left:-42px;margin-right:-42px}.-gui-my-23{margin-bottom:-42px;margin-top:-42px}.gui-mb-4{margin-bottom:4px}.gui-mb-6{margin-bottom:8px}.gui-mb-8{margin-bottom:12px}.gui-mb-10{margin-bottom:16px}.gui-mb-18{margin-bottom:32px}.gui-mr-0{margin-right:0}.gui-mr-5{margin-right:6px}.gui-mr-auto{margin-right:auto}.gui-ml-auto{margin-left:auto}.gui-ml-6{margin-left:8px}.gui-mt-0{margin-top:0}.gui-mt-4{margin-top:4px}.gui-mt-6{margin-top:8px}.gui-mt-10{margin-top:16px}.gui-mt-14{margin-top:24px}.gui-overflow-hidden{overflow:hidden}.gui-overflow-y-scroll{overflow-y:scroll}.gui-overflow-x-hidden{overflow-x:hidden}.gui-overflow-auto{overflow:auto}.gui-p-0{padding:0}.gui-px-0{padding-left:0;padding-right:0}.gui-py-0{padding-bottom:0;padding-top:0}.gui-p-1{padding:1px}.gui-px-1{padding-left:1px;padding-right:1px}.gui-py-1{padding-bottom:1px;padding-top:1px}.gui-p-2{padding:2px}.gui-px-2{padding-left:2px;padding-right:2px}.gui-py-2{padding-bottom:2px;padding-top:2px}.gui-p-3{padding:3px}.gui-px-3{padding-left:3px;padding-right:3px}.gui-py-3{padding-bottom:3px;padding-top:3px}.gui-p-4{padding:4px}.gui-px-4{padding-left:4px;padding-right:4px}.gui-py-4{padding-bottom:4px;padding-top:4px}.gui-p-5{padding:6px}.gui-px-5{padding-left:6px;padding-right:6px}.gui-py-5{padding-bottom:6px;padding-top:6px}.gui-p-6{padding:8px}.gui-px-6{padding-left:8px;padding-right:8px}.gui-py-6{padding-bottom:8px;padding-top:8px}.gui-p-7{padding:10px}.gui-px-7{padding-left:10px;padding-right:10px}.gui-py-7{padding-bottom:10px;padding-top:10px}.gui-p-8{padding:12px}.gui-px-8{padding-left:12px;padding-right:12px}.gui-py-8{padding-bottom:12px;padding-top:12px}.gui-p-10{padding:16px}.gui-px-10{padding-left:16px;padding-right:16px}.gui-py-10{padding-bottom:16px;padding-top:16px}.gui-p-13{padding:22px}.gui-px-13{padding-left:22px;padding-right:22px}.gui-py-13{padding-bottom:22px;padding-top:22px}.gui-p-23{padding:42px}.gui-px-23{padding-left:42px;padding-right:42px}.gui-py-23{padding-bottom:42px;padding-top:42px}.gui-pr-10{padding-right:16px}.gui-pl-9{padding-right:10px}.gui-pb-6{padding-bottom:8px}.gui-pb-12{padding-bottom:20px}.gui-pl-21{padding-left:38px}.gui-pt-4{padding-top:4px}.gui-pt-6{padding-top:8px}.gui-pt-10{padding-top:16px}.gui-pt-12{padding-top:20px}.gui-pt-14{padding-top:24px}.gui-static{position:static}.gui-fixed{position:fixed}.gui-relative{position:relative}.gui-absolute{position:absolute}.gui-text-xxs{font-size:11px}.gui-text-xs{font-size:12px}.gui-text-sm{font-size:13px}.gui-text-base{font-size:14px}.gui-text-lg{font-size:16px}.gui-text-xl{font-size:18px}.gui-text-2xl{font-size:20px}.gui-text-3xl{font-size:22px}.gui-leading-4{line-height:16px}.gui-leading-6{line-height:24px}.gui-font-thin{font-weight:100}.gui-font-extralight{font-weight:200}.gui-font-light{font-weight:300}.gui-font-normal{font-weight:400}.gui-font-medium{font-weight:500}.gui-font-semibold{font-weight:600}.gui-font-bold{font-weight:700}.gui-font-extrabold{font-weight:800}.gui-font-black{font-weight:900}.gui-italic{font-style:italic}.gui-not-italic{font-style:normal}.gui-whitespace-nowrap{white-space:nowrap}.gui-overflow-ellipsis{text-overflow:ellipsis}.gui-no-underline{text-decoration:none}.gui-text-center{text-align:center}.gui-w-full{width:100%}.gui-w-96{width:384px}.gui-w-3\\/5{width:60%}.gui-date-picker-calendar{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;font-family:Roboto,Helvetica Neue,sans-serif;border-radius:4px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:0 0 12px;width:268px}.gui-date-picker-header{font-size:13px;font-weight:400;text-align:center;border-top:1px solid #999}.gui-date-picker-cell{border-radius:4px;border-color:transparent;border-style:solid;border-width:1px;padding:2px 4px;position:relative;text-align:center;font-size:13px;z-index:0}.gui-date-picker-cell:before{border:1px solid #999;border-radius:50%;box-sizing:border-box;content:"";display:none;height:36px;left:50%;position:absolute;top:50%;-ms-transform:translateX(-50%) translateY(-50%);transform:translate(-50%) translateY(-50%);width:36px;z-index:-1}.gui-date-picker-cell:after{background:transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:32px;left:50%;position:absolute;top:50%;-ms-transform:translateX(-50%) translateY(-50%);transform:translate(-50%) translateY(-50%);width:32px;z-index:-1}.gui-date-picker-cell:hover:after{background:#e6e6e6}.gui-date-picker-day{color:#333;cursor:pointer;opacity:.2}.gui-date-picker-day.gui-date-picker-selected-month{opacity:1}.gui-date-picker-month,.gui-date-picker-year{cursor:pointer}.gui-date-picker-year{font-size:13px}.gui-date-picker-day.gui-date-picker-current-day:before,.gui-date-picker-month.gui-date-picker-current-month:before,.gui-date-picker-year.gui-date-picker-current-year:before{display:block}.gui-date-picker-day.gui-date-picker-selected-day{pointer-events:none}.gui-date-picker-day.gui-date-picker-selected-day,.gui-date-picker-month.gui-date-picker-selected-month,.gui-date-picker-year.gui-date-picker-selected-year{color:#fff}.gui-date-picker-day.gui-date-picker-selected-day:after,.gui-date-picker-month.gui-date-picker-selected-month:after,.gui-date-picker-year.gui-date-picker-selected-year:after{background:#2185d0}.gui-date-picker-arrows{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;width:32px}.gui-date-picker-view-padding{padding:0 8px}.gui-date-picker-view-border-top{border-top:1px solid #999}gui-time-picker{border-top:1px solid #999;margin:6px 0 0;padding:12px 0 2.6666666667px}gui-time-picker form{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}gui-time-picker.only-time-picker{border-top:none}.gui-time-picker-button-wrapper{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;padding-right:8px}.gui-time-picker-button-wrapper .gui-button{font-size:12px}.gui-time-picker-item{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:0 8px;position:relative}.gui-time-picker-item input{box-sizing:border-box;max-width:24px;text-align:center}.gui-time-picker-item input::-webkit-outer-spin-button,.gui-time-picker-item input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.gui-time-picker-item input[type=number]{-moz-appearance:textfield}.gui-time-picker-item .gui-date-picker-arrow:nth-of-type(1){margin-bottom:2px}.gui-time-picker-item .gui-date-picker-arrow:nth-of-type(2){margin-top:6px}.gui-date-picker-view-panel{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:16px 18px}.gui-date-picker-view-panel .gui-date-picker-view-panel-date{cursor:pointer;font-size:14px;font-weight:700;margin:0;pointer-events:auto}.gui-date-picker-arrow{position:relative;z-index:0}.gui-date-picker-arrow:hover:after{background:#e6e6e6;border-radius:50%;box-sizing:border-box;content:"";display:block;height:24px;left:50%;position:absolute;top:50%;-ms-transform:translateX(-50%) translateY(-50%);transform:translate(-50%) translateY(-50%);width:24px;z-index:-1}
`],encapsulation:2,changeDetection:0})}return n})(),Cr=function(n){return n[n.TOP=1]="TOP",n[n.BOTTOM=2]="BOTTOM",n[n.BEFORE=3]="BEFORE",n[n.AFTER=4]="AFTER",n}(Cr||{}),Vc=new Z("Theme token"),Rn=(()=>{class n{fabricTheme$=new wt(Ue.FABRIC);onTheme(){return this.fabricTheme$.asObservable()}changeTheme(i){let t=typeof i=="string"?this.convertToTheme(i):i;this.fabricTheme$.next(t)}convertToTheme(i){switch(i.toLowerCase()){case"fabric":return Ue.FABRIC;case"material":return Ue.MATERIAL;case"generic":return Ue.GENERIC;case"light":return Ue.LIGHT;case"dark":return Ue.DARK;default:return Ue.FABRIC}}static \u0275fac=function(t){return new(t||n)};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),iu=(()=>{class n extends ro{elementRef;renderer;themeService;static CSS_CLASS_PREFIX="gui-";constructor(i,t,r){super(),this.elementRef=i,this.renderer=t,this.themeService=r}ngAfterViewInit(){this.themeService.onTheme().pipe(ds(),ce(this.unsubscribe$)).subscribe(i=>{this.addTheme(i)})}addTheme(i){this.removeThemes();let t=n.CSS_CLASS_PREFIX+i.toLowerCase();this.renderer.addClass(this.elementRef.nativeElement,t)}removeThemes(){Object.keys(Ue).map(t=>Ue[t].toLowerCase()).filter(t=>!Number.isInteger(t)).forEach(t=>{let r=n.CSS_CLASS_PREFIX+t;this.renderer.removeClass(this.elementRef.nativeElement,r)})}getElementRef(){return this.elementRef}getRenderer(){return this.renderer}static \u0275fac=function(t){return new(t||n)(l(S),l(ut),l(Rn))};static \u0275dir=G({type:n,features:[R]})}return n})(),ty=class{elementRef;containerClassName;constructor(e,i){this.elementRef=e,this.containerClassName=i}getHeight(){return this.elementRef.nativeElement.querySelector(`.${this.containerClassName}`).offsetHeight}getWidth(){return this.elementRef.nativeElement.querySelector(`.${this.containerClassName}`).offsetWidth}},iy=class extends ty{verticalPosition=0;horizontalPosition=0;constructor(e,i,t,r,o,s){super(t,r),this.calculateCords(e,i,s,o)}getVerticalPosition(){return this.verticalPosition}getHorizontalPosition(){return this.horizontalPosition}calculateCords(e,i,t,r){let o=i.nativeElement.getBoundingClientRect(),s=e.pageYOffset+o.bottom,a=e.pageXOffset+o.left,u=e.pageXOffset+o.right,b=e.pageYOffset+o.top,y=b+t-this.getHeight();switch(r){case Cr.BOTTOM:this.horizontalPosition=a,this.verticalPosition=s+t;break;case Cr.TOP:this.horizontalPosition=a,this.verticalPosition=y;break;case Cr.BEFORE:this.horizontalPosition=u+t-this.getWidth(),this.verticalPosition=s;break;case Cr.AFTER:this.horizontalPosition=a+t,this.verticalPosition=s;break;default:this.horizontalPosition=a,this.verticalPosition=s+t}this.calculateDirection(i,e,y)}calculateDirection(e,i,t){let r=i.innerHeight+i.pageYOffset,o=i.innerWidth+i.pageXOffset,s=e.nativeElement.offsetWidth,a=this.getHeight(),u=this.getWidth(),b=o-this.horizontalPosition-u<0,y=r-this.verticalPosition-a<0;b&&(this.horizontalPosition-=u-s),y&&(this.verticalPosition=t)}},G3=(()=>{class n extends iy{static defaultInlineDialogOffset=8;constructor(i,t,r,o,s=n.defaultInlineDialogOffset){super(r,i,t,"gui-inline-dialog-wrapper",o,s)}}return n})(),my=(()=>{class n{platformId;inlineDialogGeometry;inlineDialogState$=new ue;constructor(i){this.platformId=i}observeInlineDialogCords(){return this.inlineDialogState$.asObservable()}changeGeometry(i){this.inlineDialogGeometry=i}getInlineDialogCords(i,t,r){if(Fi(this.platformId)){let o=new G3(i,this.inlineDialogGeometry,window,t,r);this.inlineDialogState$.next(o)}}static \u0275fac=function(t){return new(t||n)(w(bt))};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),W3=(()=>{class n extends iu{componentFactoryResolver;changeDetectorRef;inlineDialogService;elRef;inlineDialogGeometryService;container;customClass="";inlineDialogNestedComponent;inlineDialogNestedInjector;dialogTopAttribute;dialogLeftAttribute;visible=!1;width="400px";constructor(i,t,r,o,s,a,u,b){super(o,a,u),this.componentFactoryResolver=i,this.changeDetectorRef=t,this.inlineDialogService=r,this.elRef=o,this.inlineDialogGeometryService=s}ngOnInit(){this.inlineDialogGeometryService.observeInlineDialogCords().pipe(ce(this.unsubscribe$)).subscribe(i=>{this.dialogTopAttribute=i.getVerticalPosition(),this.dialogLeftAttribute=i.getHorizontalPosition(),this.changeDetectorRef.detectChanges()})}ngAfterViewInit(){super.ngAfterViewInit(),this.createNestedComponent(this.inlineDialogNestedComponent),this.inlineDialogGeometryService.changeGeometry(this.elRef),this.changeDetectorRef.detectChanges(),$n(0).pipe(ce(this.unsubscribe$)).subscribe(()=>{this.visible=!0,this.changeDetectorRef.detectChanges()})}ngOnDestroy(){this.unsubscribe()}clickOutside(i){this.isContainerClicked(i)&&this.inlineDialogService.close()}isContainerClicked(i){return!this.elRef.nativeElement.contains(i.target)}createNestedComponent(i){if(this.container&&i){let t=this.componentFactoryResolver.resolveComponentFactory(i);this.inlineDialogNestedInjector?this.container.createComponent(t,void 0,this.inlineDialogNestedInjector):this.container.createComponent(t),this.changeDetectorRef.detectChanges()}}static \u0275fac=function(t){return new(t||n)(l(dt),l(ee),l(Pt(()=>Bc)),l(S),l(my),l(ut),l(Rn),l(Vc))};static \u0275cmp=k({type:n,selectors:[["ng-component"]],viewQuery:function(t,r){if(t&1&&$(Zd,5,Ot),t&2){let o;V(o=B())&&(r.container=o.first)}},features:[R],decls:4,vars:9,consts:[["container",""],[1,"gui-inline-dialog-wrapper",3,"ngClass"],[1,"gui-inline-dialog-content",3,"click"]],template:function(t,r){if(t&1){let o=Y();f(0,"div",1)(1,"div",2),E("click",function(a){return A(o),F(r.clickOutside(a))},!1,Nl),j(2,p3,0,0,"ng-template",null,0,qe),v()()}t&2&&(Qe("left",r.dialogLeftAttribute,"px")("top",r.dialogTopAttribute,"px"),g("ngClass",r.customClass),p(),Qe("max-width",r.width),X("gui-inline-dialog-visible",r.visible))},dependencies:[Dt],styles:[`.gui-inline-dialog-wrapper{box-sizing:border-box;position:absolute;z-index:1}.gui-inline-dialog-wrapper .gui-inline-dialog-content{background-color:#fff;border-radius:4px;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d;box-sizing:border-box;display:block;z-index:1000;opacity:0;transition:opacity .2s ease-in-out}.gui-inline-dialog-wrapper .gui-inline-dialog-content.gui-inline-dialog-visible{opacity:1}
`,`.gui-dark .gui-inline-dialog-content{background:#424242;box-shadow:0 1px 2px #424242;color:#bdbdbd}
`],encapsulation:2,changeDetection:0})}return n})(),Bc=(()=>{class n{componentFactoryResolver;applicationRef;injector;document;inlineDialogGeometryService;inlineDialogRef=null;opened=!1;opened$=new wt(!1);destroy$=new ue;constructor(i,t,r,o,s){this.componentFactoryResolver=i,this.applicationRef=t,this.injector=r,this.document=o,this.inlineDialogGeometryService=s}ngOnDestroy(){this.removeInlineDialog()}open(i,t,r){if(event&&event.stopPropagation(),this.inlineDialogRef)this.close();else{let o=this.injector,s=Cr.BOTTOM,a=0,u=Ue.FABRIC,b="";r&&r.injector&&(o=r.injector),r&&r.placement&&(s=r.placement),r&&r.offset&&(a=r.offset),r&&r.theme&&(u=r.theme),r&&r.customClass&&(b=r.customClass);let y=ye.create({providers:[{provide:Vc,useValue:u}],parent:o});this.setOpened(!0),this.appendInlineDialogToElement(t,y,b),this.inlineDialogGeometryService.getInlineDialogCords(i,s,a),this.closeOnEscKey()}}close(){this.removeInlineDialog(),this.destroy$.next(void 0),this.destroy$.complete(),this.setOpened(!1)}isOpened(){return this.opened}onOpened(){return this.opened$.asObservable()}appendInlineDialogToElement(i,t,r){let o=this.componentFactoryResolver.resolveComponentFactory(W3).create(t);r&&(o.instance.customClass=r),o.instance.inlineDialogNestedComponent=i,o.changeDetectorRef.detectChanges(),this.applicationRef.attachView(o.hostView);let s=o.hostView.rootNodes[0];this.document.body.appendChild(s),this.inlineDialogRef=o}removeInlineDialog(){this.inlineDialogRef&&(this.applicationRef.detachView(this.inlineDialogRef.hostView),this.inlineDialogRef.destroy(),this.inlineDialogRef=null)}setOpened(i){this.opened=i,this.opened$.next(this.opened)}closeOnEscKey(){Ti(this.document,"keyup").pipe(Je(t=>t.code==="Escape"),ce(this.destroy$)).subscribe(()=>this.close())}static \u0275fac=function(t){return new(t||n)(w(dt),w(Jt),w(ye),w(ae),w(my))};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),hT=(()=>{class n{fabricInlineDialogService;constructor(i){this.fabricInlineDialogService=i}open(i,t,r){let o=Ue.FABRIC;r&&(o=r),this.fabricInlineDialogService.open(i,t,{placement:Cr.BOTTOM,offset:0,theme:o})}close(){this.fabricInlineDialogService.close()}isOpened(){return this.fabricInlineDialogService.isOpened()}onOpened(){return this.fabricInlineDialogService.onOpened()}static \u0275fac=function(t){return new(t||n)(w(Bc))};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),q3=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=k({type:n,selectors:[["gui-date-picker-icon"]],hostVars:2,hostBindings:function(t,r){t&2&&X("gui-date-picker-icon",!0)},decls:8,vars:0,consts:[["height","9.82","viewBox","0 0 8.76 9.82","width","8.76","xmlns","http://www.w3.org/2000/svg"],["d","M401.41,308.63l-.46.15h-.15a.34.34,0,0,1-.08-.67l.68-.22a1.539,1.539,0,0,1,.38-.07h0a.39.39,0,0,1,.39.39V312a.38.38,0,0,1-.39.39.39.39,0,0,1-.39-.39Z","fill","#8c8b8b","transform","translate(-397.19 -304.36)"],["fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1","transform","translate(0.64 9.32)","x1","7.39"],["fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1","transform","translate(0.64 2.16)","x1","7.39"],["fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1","transform","translate(0.5 0.5)","y2","8.82"],["fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1","transform","translate(3.09 0.5)","y2","1.66"],["fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1","transform","translate(5.68 0.5)","y2","1.66"],["fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1","transform","translate(8.26 0.5)","y2","8.82"]],template:function(t,r){t&1&&(mt(),f(0,"svg",0),C(1,"path",1)(2,"line",2)(3,"line",3)(4,"line",4)(5,"line",5)(6,"line",6)(7,"line",7),v())},styles:[`.gui-date-picker-icon svg{height:16px;width:16px}.gui-date-picker-icon svg line,.gui-date-picker-icon svg path{transition:all .3s ease-in-out}.gui-date-picker-icon svg line{stroke:#aaa}.gui-date-picker-icon svg path{fill:#aaa}.gui-date-picker-icon svg:hover line{stroke:#464646}.gui-date-picker-icon svg:hover path{fill:#464646}
`,`.gui-dark .gui-date-picker-icon svg line{stroke:#bdbdbd}.gui-dark .gui-date-picker-icon svg path{fill:#bdbdbd}.gui-dark .gui-date-picker-icon svg:hover line{stroke:#616161}.gui-dark .gui-date-picker-icon svg:hover path{fill:#616161}
`],encapsulation:2})}return n})(),mT=(()=>{class n extends ro{fabricDatePickerInlineDialogService;datePickerService;datePickerCompositionService;changeDetectorRef;datePickerRef;parentElement;theme;selectDate;name="";openDialog=!1;onlyDialog=!1;datePipeOptions="dd/MM/yyyy";dateSelected=new Q;dialogOpened=new Q;datePickerForm;pickedDate=new Date;inputDisabled="";constructor(i,t,r,o,s){super(),this.fabricDatePickerInlineDialogService=i,this.datePickerService=t,this.datePickerCompositionService=r,this.changeDetectorRef=s,this.datePickerForm=o.group({date:[""]})}ngOnChanges(i){i.selectDate&&this.selectDate&&(!this.pickedDate||!Xd.areDatesSame(this.selectDate,this.pickedDate))&&this.datePickerService.dateSelected(this.selectDate),i.onlyDialog&&(this.inputDisabled=this.onlyDialog?"disabled":""),i.datePipeOptions&&this.datePickerCompositionService.next(this.datePipeOptions)}ngOnInit(){this.datePickerService.observeSelectedDate().pipe(jr(1),ce(this.unsubscribe$)).subscribe(i=>{this.pickedDate=i,this.emitSelectedDate(i),this.changeDetectorRef.detectChanges(),this.closeDatePicker()}),this.fabricDatePickerInlineDialogService.onOpened().pipe(jr(1),ce(this.unsubscribe$)).subscribe(i=>{this.dialogOpened.emit(i)})}ngAfterViewInit(){this.datePickerService.observeSelectedDate().pipe(gt(1),ce(this.unsubscribe$)).subscribe(i=>{this.pickedDate=i,this.emitSelectedDate(i),this.changeDetectorRef.detectChanges()}),this.openDialog&&this.openDatePicker()}ngOnDestroy(){super.ngOnDestroy(),this.fabricDatePickerInlineDialogService.close()}openDatePicker(){let i=!this.parentElement&&this.datePickerRef,t=i?this.datePickerRef:this.parentElement;t&&this.fabricDatePickerInlineDialogService.open(t,$3,this.theme)}closeDatePicker(){this.fabricDatePickerInlineDialogService.close()}emitSelectedDate(i){this.dateSelected.emit(i)}static \u0275fac=function(t){return new(t||n)(l(hT),l(Jd),l(dy),l(Yr),l(ee))};static \u0275cmp=k({type:n,selectors:[["gui-date-picker"]],viewQuery:function(t,r){if(t&1&&$(g3,5,S),t&2){let o;V(o=B())&&(r.datePickerRef=o.first)}},inputs:{parentElement:"parentElement",theme:"theme",selectDate:"selectDate",name:"name",openDialog:"openDialog",onlyDialog:"onlyDialog",datePipeOptions:"datePipeOptions"},outputs:{dateSelected:"dateSelected",dialogOpened:"dialogOpened"},features:[R,re],decls:6,vars:7,consts:[["datePicker",""],[1,"gui-date-picker"],[3,"formGroup"],["formControlName","date","gui-input","","readonly","",1,"gui-date-picker-input",3,"name","value"],[1,"gui-date-picker-icon",3,"click"]],template:function(t,r){if(t&1){let o=Y();f(0,"div",1,0)(2,"form",2),C(3,"input",3),be(4,"date"),v(),f(5,"gui-date-picker-icon",4),E("click",function(){return A(o),F(r.openDatePicker())}),v()()}t&2&&(p(2),g("formGroup",r.datePickerForm),p(),g("name",r.name)("value",ms(4,4,r.pickedDate,r.datePipeOptions)),Me("disabled",r.inputDisabled))},dependencies:[wr,gi,Vi,yr,er,qr,Dp,q3,Yh],styles:[`.gui-date-picker{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;position:relative}.gui-date-picker .gui-date-picker-icon{cursor:pointer;position:absolute;right:0}.gui-date-picker input,.gui-date-picker-calendar input{background:transparent;border-radius:0;border-width:0 0 1px 0;font-family:Arial;font-size:14px;padding:4px}.gui-date-picker input:disabled,.gui-date-picker-calendar input:disabled{color:#333}.gui-date-picker .gui-date-picker-icon,.gui-date-picker-calendar .gui-date-picker-icon{cursor:pointer;position:absolute;right:0}
`,`.gui-dark .gui-input{background:transparent;color:#bdbdbd}.gui-dark .gui-date-picker-calendar .gui-arrow-icon:hover:after{background:#757575}.gui-dark .gui-date-picker-calendar .gui-date-picker-cell{color:#bdbdbd}.gui-dark .gui-date-picker-calendar .gui-date-picker-cell:hover:after{background:#757575}.gui-dark .gui-date-picker-calendar .gui-date-picker-day.gui-date-picker-selected-day,.gui-dark .gui-date-picker-calendar .gui-date-picker-month.gui-date-picker-selected-month,.gui-dark .gui-date-picker-calendar .gui-date-picker-year.gui-date-picker-selected-year{color:#333}.gui-dark .gui-date-picker-calendar .gui-date-picker-day.gui-date-picker-selected-day:after,.gui-dark .gui-date-picker-calendar .gui-date-picker-month.gui-date-picker-selected-month:after,.gui-dark .gui-date-picker-calendar .gui-date-picker-year.gui-date-picker-selected-year:after{background:#dfb8e6}
`,`.gui-material .gui-date-picker-calendar .gui-date-picker-day.gui-date-picker-selected-day:after,.gui-material .gui-date-picker-calendar .gui-date-picker-month.gui-date-picker-selected-month:after,.gui-material .gui-date-picker-calendar .gui-date-picker-year.gui-date-picker-selected-year:after{background:#6200ee}
`],encapsulation:2,changeDetection:0})}return n})(),zs=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({providers:[Bc,my],imports:[J]})}return n})(),to=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[J]})}return n})(),py=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[J]})}return n})(),Y3=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[J]})}return n})(),Ep=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({providers:[Jd,dy,eu,tu,hy,uT,uy,hT],imports:[J,zs,Sn,to,Mn,Y3,py]})}return n})(),nu=(()=>{class n extends ro{componentFactoryResolver;applicationRef;injector;document;componentRef="destroyed";constructor(i,t,r,o){super(),this.componentFactoryResolver=i,this.applicationRef=t,this.injector=r,this.document=o}ngOnDestroy(){this.removeComponent()}createAndAppend(i){let t=i?.injector?i.injector:this.injector;this.componentRef=this.componentFactoryResolver.resolveComponentFactory(this.getComponent()).create(t),this.applicationRef.attachView(this.componentRef.hostView);let r=this.componentRef.hostView.rootNodes[0];this.getElement(i?.appendToElement).appendChild(r),i?.afterCompCreation&&i?.afterCompCreation(),this.componentRef.changeDetectorRef.detectChanges()}removeComponent(){this.componentRef!=="destroyed"&&(this.applicationRef.detachView(this.componentRef.hostView),this.componentRef.destroy(),this.componentRef="destroyed",this.unsubscribe())}getComponentRef(){return this.componentRef}getInjector(){return this.injector}getDocument(){return this.document}onCloseOnEsc(){return Ti(this.getDocument(),"keyup").pipe(Je(t=>t.code==="Escape"),ce(this.unsubscribe$))}isComponentCreated(){return this.componentRef!=="destroyed"}getElement(i){return i?i.nativeElement:this.document.body}static \u0275fac=function(t){return new(t||n)(l(dt),l(Jt),l(ye),l(ae))};static \u0275dir=G({type:n,features:[R]})}return n})(),Tp=(()=>{class n extends nu{inProgress=!1;constructor(i,t,r,o){super(i,t,r,o)}getComponent(){return Q3}open(i){event&&event.stopPropagation(),!(this.isComponentCreated()&&i?.preventReopeningDrawer)&&(this.isComponentCreated()&&!this.inProgress&&!i?.preventReopeningDrawer?this.waitAndCreateNewDrawer(i):this.createDrawer(i))}close(){if(this.isComponentCreated()){let i=this.getComponentRef();i.instance.visible=!1,i.instance.detectChanges(),$n(300).pipe(ce(this.unsubscribe$)).subscribe(()=>{this.removeComponent(),this.inProgress=!1})}}createDrawer(i){this.isComponentCreated()&&this.removeComponent();let t=Ue.FABRIC,r=this.getInjector();i&&i.theme&&(t=i.theme),i&&i.injector&&(r=i.injector);let o=ye.create({providers:[{provide:Vc,useValue:t}],parent:r});this.createAndAppend({injector:o,afterCompCreation:()=>this.applyInstanceVars(i),appendToElement:i?.appendToElement}),this.closeOnEscKey()}waitAndCreateNewDrawer(i){this.inProgress=!0,this.close(),$n(400).pipe(ce(this.unsubscribe$)).subscribe(()=>{this.createDrawer(i)})}applyInstanceVars(i){if(this.isComponentCreated()){let t=this.getComponentRef();i?.width&&(t.instance.width=i.width),i?.closeOnClickOutside&&(t.instance.closeOnClickOutside=i.closeOnClickOutside),t.instance.dialogNestedComponent=i?.component,t.instance.isFixed=!i?.appendToElement}}closeOnEscKey(){this.onCloseOnEsc().subscribe(()=>this.close())}static \u0275fac=function(t){return new(t||n)(w(dt),w(Jt),w(ye),w(ae))};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})();var gy=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=k({type:n,selectors:[["gui-close-icon"]],hostVars:2,hostBindings:function(t,r){t&2&&X("gui-close-icon-wrapper",!0)},decls:1,vars:0,consts:[[1,"gui-close-icon"]],template:function(t,r){t&1&&C(0,"span",0)},styles:[`.gui-close-icon-wrapper .gui-close-icon{cursor:pointer;height:16px;position:absolute;right:8px;top:8px;width:16px}.gui-close-icon-wrapper .gui-close-icon:before,.gui-close-icon-wrapper .gui-close-icon:after{background-color:#aaa;content:" ";height:16px;left:7px;position:absolute;width:2px}.gui-close-icon-wrapper .gui-close-icon:before{-ms-transform:rotate(45deg);transform:rotate(45deg)}.gui-close-icon-wrapper .gui-close-icon:after{-ms-transform:rotate(-45deg);transform:rotate(-45deg)}.gui-close-icon-wrapper .gui-close-icon:hover:before,.gui-close-icon-wrapper .gui-close-icon:hover:after{background-color:#464646}
`],encapsulation:2,changeDetection:0})}return n})(),Q3=(()=>{class n extends iu{componentFactoryResolver;changeDetectorRef;elRef;dialogService;container;width="400px";closeOnClickOutside=!1;dialogNestedComponent;visible=!1;isFixed=!1;constructor(i,t,r,o,s,a){super(r,a,s),this.componentFactoryResolver=i,this.changeDetectorRef=t,this.elRef=r,this.dialogService=o}ngAfterViewInit(){super.ngAfterViewInit(),this.createNestedComponent(),$n(50).pipe(ce(this.unsubscribe$)).subscribe(()=>{this.visible=!0,this.changeDetectorRef.detectChanges()})}closeDrawer(){this.dialogService.close()}clickOutside(i){this.closeOnClickOutside&&this.isContainerClicked(i)&&this.closeDrawer()}detectChanges(){this.changeDetectorRef.detectChanges()}isContainerClicked(i){let t=this.elRef.nativeElement.querySelector(".gui-drawer-content");return t?!t.contains(i.target):!1}createNestedComponent(){if(this.container){let i=this.componentFactoryResolver.resolveComponentFactory(this.dialogNestedComponent);this.container.createComponent(i),this.changeDetectorRef.detectChanges()}}static \u0275fac=function(t){return new(t||n)(l(dt),l(ee),l(S),l(Tp),l(Rn),l(ut))};static \u0275cmp=k({type:n,selectors:[["ng-component"]],viewQuery:function(t,r){if(t&1&&$(Zd,5,Ot),t&2){let o;V(o=B())&&(r.container=o.first)}},features:[R],decls:5,vars:6,consts:[["container",""],[1,"gui-drawer-wrapper",3,"click"],[1,"gui-drawer-content"],[3,"click"]],template:function(t,r){if(t&1){let o=Y();f(0,"div",1),E("click",function(a){return A(o),F(r.clickOutside(a))},!1,Nl),f(1,"div",2)(2,"gui-close-icon",3),E("click",function(){return A(o),F(r.closeDrawer())}),v(),j(3,f3,0,0,"ng-template",null,0,qe),v()()}t&2&&(Qe("max-width",r.width),X("gui-drawer-fixed",r.isFixed)("gui-drawer-visible",r.visible))},dependencies:[gy],styles:[`.gui-drawer-wrapper{display:-ms-flexbox;display:flex;font-family:Arial;height:100%;width:auto;position:absolute;padding-left:50px;right:0;top:0;overflow:hidden;z-index:1000}.gui-drawer-wrapper .gui-drawer-content{background-color:#fff;height:100%;position:relative;margin-left:auto;-ms-transform:translateX(100%);transform:translate(100%);transition:all .3s ease-in-out}.gui-drawer-wrapper.gui-drawer-visible .gui-drawer-content{-ms-transform:translateX(0);transform:translate(0);box-shadow:-6px 0 16px -8px #00000014,-9px 0 28px #0000000d,-12px 0 48px 16px #00000008}.gui-drawer-wrapper.gui-drawer-fixed{position:fixed;height:100vh}
`,`.gui-dark .gui-drawer-wrapper .gui-drawer-content{background:#424242;box-shadow:0 1px 2px #424242;color:#bdbdbd}
`],encapsulation:2,changeDetection:0})}return n})(),fy=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[J]})}return n})(),Tc=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({providers:[Tp],imports:[J,fy]})}return n})(),ny=class{container;menu;windowSize;containerHeight=0;containerWidth=0;availableBottomSpace=0;availableTopSpace=0;constructor(e,i,t){this.container=e,this.menu=i,this.windowSize=t,this.calculate(this.menu,this.windowSize)}getContainerHeight(){return this.containerHeight}getContainerWidth(){return this.containerWidth}canOpenDownward(){return this.availableBottomSpace>0}canOpenUpward(){return this.availableTopSpace>0}calculate(e,i){let t=this.container.nativeElement,r=e.nativeElement.offsetHeight,o=t.getBoundingClientRect().bottom;this.containerHeight=t.offsetHeight,this.containerWidth=t.offsetWidth,this.availableBottomSpace=i-o-r,this.availableTopSpace=o-r-this.containerHeight}},iT=(()=>{class n{geometryResults$=new ue;watchGeometry(){return this.geometryResults$.asObservable()}changeGeometry(i,t,r){let o=new ny(i,t,r);this.geometryResults$.next(o)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),Bs=function(n){return n[n.Right=0]="Right",n[n.Left=1]="Left",n}(Bs||{}),pT=(()=>{class n extends ro{platformId;elementRef;renderer;changeDetectorRef;geometryService;dropdownMenuRef;containerRef;onResize(){Fi(this.platformId)&&(this.windowSize=window.innerHeight)}disabled=!1;dropdownText="Dropdown";isArrowEnabled=!0;placement;width=120;showOnHover=!1;containerWidth=0;containerHeight=0;windowSize=0;horizontalPosition=0;bottomPosition=0;topPosition=0;arrowDirection=Jr.BOTTOM;canOpenDownward=!1;canOpenUpward=!1;open=!1;topBorderWidth=1;constructor(i,t,r,o,s){super(),this.platformId=i,this.elementRef=t,this.renderer=r,this.changeDetectorRef=o,this.geometryService=s,this.onResize()}ngOnChanges(i){i.placement&&this.changePlacement()}ngOnInit(){this.geometryService.watchGeometry().pipe(ce(this.unsubscribe$)).subscribe(i=>{this.containerHeight=i.getContainerHeight(),this.containerWidth=i.getContainerWidth(),this.canOpenUpward=i.canOpenUpward(),this.canOpenDownward=i.canOpenDownward()})}tryToOpen(i){this.isContainerDisabled(i)?i.stopPropagation():(this.openMenu(!this.open),this.changeDetectorRef.detectChanges())}tryToOpenOnHover(){this.showOnHover&&(this.openMenu(!this.open),this.changeDetectorRef.detectChanges())}hideOnHover(){this.showOnHover&&(this.hideItems(),this.open=!1)}clickOutside(i){this.isContainerClicked(i)&&this.openMenu(!1)}isDirectionLeft(){return this.isArrowEnabled&&this.arrowDirection===Jr.LEFT}openMenu(i){this.open=i,this.open?this.showItems():this.hideItems()}showItems(){this.containerRef&&this.dropdownMenuRef&&(this.addClass(this.elementRef.nativeElement,"gui-menu-opened"),this.geometryService.changeGeometry(this.containerRef,this.dropdownMenuRef,this.windowSize),this.canOpenDownward||!this.canOpenUpward?this.openDownward():this.openUpward(),this.placement===Bs.Right&&this.openRight(),this.placement===Bs.Left&&this.openLeft())}openDownward(){this.topPosition=null,this.bottomPosition=this.containerHeight}openUpward(){this.bottomPosition=null,this.topPosition=this.containerHeight}openRight(){this.bottomPosition=-this.topBorderWidth,this.topPosition=null,this.horizontalPosition=this.containerWidth}openLeft(){this.bottomPosition=-this.topBorderWidth,this.topPosition=null,this.horizontalPosition=-(this.containerWidth+1)}changePlacement(){if(this.dropdownMenuRef)switch(this.placement){case Bs.Right:{this.removeClass(this.dropdownMenuRef.nativeElement,"gui-dropdown-left"),this.addClass(this.dropdownMenuRef.nativeElement,"gui-dropdown-right"),this.arrowDirection=Jr.RIGHT;break}case Bs.Left:{this.removeClass(this.dropdownMenuRef.nativeElement,"gui-dropdown-right"),this.addClass(this.dropdownMenuRef.nativeElement,"gui-dropdown-left"),this.arrowDirection=Jr.LEFT;break}default:break}}hideItems(){this.elementRef.nativeElement.classList.contains("gui-menu-opened")&&this.removeClass(this.elementRef.nativeElement,"gui-menu-opened")}isContainerClicked(i){return!this.elementRef.nativeElement.contains(i.target)}isContainerDisabled(i){return i.target.classList.contains("gui-disabled")}addClass(i,t){this.renderer.addClass(i,t)}removeClass(i,t){this.renderer.removeClass(i,t)}static \u0275fac=function(t){return new(t||n)(l(bt),l(S),l(ut),l(ee),l(iT))};static \u0275cmp=k({type:n,selectors:[["gui-dropdown"]],viewQuery:function(t,r){if(t&1&&($(b3,7,S),$(Zd,7,S)),t&2){let o;V(o=B())&&(r.dropdownMenuRef=o.first),V(o=B())&&(r.containerRef=o.first)}},hostVars:2,hostBindings:function(t,r){t&1&&E("resize",function(){return r.onResize()},!1,yo),t&2&&X("gui-dropdown",!0)},inputs:{disabled:"disabled",dropdownText:"dropdownText",isArrowEnabled:"isArrowEnabled",placement:"placement",width:"width",showOnHover:"showOnHover"},features:[_e([iT]),R,re],ngContentSelectors:io,decls:8,vars:14,consts:[["container",""],["dropdownMenu",""],[1,"gui-dropdown-container",3,"click","mouseenter","mouseleave"],[1,"gui-dropdown-text"],[3,"gui-dropdown-arrow",4,"ngIf"],[1,"gui-dropdown-menu"],[3,"direction"]],template:function(t,r){if(t&1){let o=Y();Ke(),f(0,"div",2,0),E("click",function(a){return A(o),F(r.tryToOpen(a))})("click",function(a){return A(o),F(r.clickOutside(a))},!1,Nl)("mouseenter",function(){return A(o),F(r.tryToOpenOnHover())})("mouseleave",function(){return A(o),F(r.hideOnHover())}),f(2,"div",3),T(3),v(),j(4,v3,2,3,"div",4),f(5,"div",5,1),Oe(7),v()()}t&2&&(Qe("width",r.width,"px"),X("gui-arrow-left",r.isDirectionLeft())("gui-disabled",r.disabled),p(3),ke(r.dropdownText),p(),g("ngIf",r.isArrowEnabled),p(),Qe("bottom",r.topPosition,"px")("left",r.horizontalPosition,"px")("top",r.bottomPosition,"px"))},dependencies:[rt,Sp],styles:[`.gui-dropdown .gui-dropdown-container{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:#fff;border-color:#d6d6d6;border-radius:4px;border-style:solid;border-width:1px;box-sizing:border-box;color:#333;cursor:pointer;display:inline-block;font:14px Arial;padding:8px 12px;position:relative;width:auto}.gui-dropdown .gui-dropdown-container:hover{border-color:#999}.gui-dropdown .gui-dropdown-container:hover .gui-arrow-icon svg path{stroke:#464646}.gui-dropdown .gui-dropdown-container .gui-dropdown-arrow{cursor:pointer;position:absolute;right:12px;top:8px}.gui-dropdown .gui-dropdown-container .gui-dropdown-right.gui-dropdown-menu,.gui-dropdown .gui-dropdown-container .gui-dropdown-left.gui-dropdown-menu{margin:0}.gui-dropdown .gui-dropdown-container .gui-dropdown-menu{background:inherit;border-color:#d6d6d6;border-radius:4px;border-style:solid;border-width:1px;box-sizing:border-box;display:none;left:-1px;overflow:hidden;position:absolute;width:inherit;z-index:2}.gui-dropdown .gui-dropdown-container .gui-dropdown-menu .gui-item{list-style-type:none;padding:8px 12px;width:inherit}.gui-dropdown .gui-dropdown-container .gui-dropdown-menu .gui-item:hover{background:#cccccc}.gui-dropdown .gui-dropdown-container.gui-arrow-left{padding:8px 12px 8px 32px}.gui-dropdown .gui-dropdown-container.gui-arrow-left .gui-dropdown-arrow{left:12px;right:initial}.gui-dropdown.gui-menu-opened .gui-dropdown-container{border-color:#999}.gui-dropdown.gui-menu-opened .gui-dropdown-menu{display:block}.gui-dropdown .gui-disabled{color:#ccc;pointer-events:none}
`,`.gui-material .gui-dropdown .gui-dropdown-container{font-family:Roboto,Helvetica Neue,sans-serif}
`,`.gui-dark .gui-dropdown .gui-dropdown-container{background:#424242;border-color:#616161;color:#bdbdbd}.gui-dark .gui-dropdown .gui-dropdown-container:hover{border-color:#ce93d8}.gui-dark .gui-dropdown .gui-dropdown-container:hover .gui-dropdown-arrow svg path{stroke:#ce93d8}.gui-dark .gui-dropdown .gui-dropdown-container .gui-dropdown-menu{border-color:#616161}.gui-dark .gui-dropdown .gui-dropdown-container .gui-dropdown-menu .gui-item{border-top-color:#757575}.gui-dark .gui-dropdown .gui-dropdown-container .gui-dropdown-menu .gui-item:hover{background:#616161}.gui-dark .gui-dropdown.gui-options-opened .gui-dropdown-container{border-color:#ce93d8}.gui-dark .gui-dropdown .gui-disabled{opacity:.36}
`],encapsulation:2,changeDetection:0})}return n})(),gT=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=k({type:n,selectors:[["gui-dropdown-item"]],ngContentSelectors:io,decls:2,vars:0,consts:[[1,"gui-item"]],template:function(t,r){t&1&&(Ke(),f(0,"div",0),Oe(1),v())},encapsulation:2,changeDetection:0})}return n})(),Mc=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[J,py]})}return n})(),Us=(()=>{class n extends nu{constructor(i,t,r,o){super(i,t,r,o)}getComponent(){return K3}open(i){if(this.isComponentCreated())return;let t=Ue.FABRIC,r=this.getInjector();i&&i.theme&&(t=i.theme),i&&i.injector&&(r=i.injector);let o=ye.create({providers:[{provide:Vc,useValue:t}],parent:r});this.createAndAppend({afterCompCreation:()=>this.afterComponentCreation(i),injector:o}),this.closeOnEscKey()}close(){if(this.isComponentCreated()){let i=this.getComponentRef();i.instance.visible=!1,i.instance.detectChanges(),$n(400).pipe(ce(this.unsubscribe$)).subscribe(()=>{this.removeComponent()})}}closeOnEscKey(){this.onCloseOnEsc().subscribe(()=>this.close())}afterComponentCreation(i){if(this.isComponentCreated()){let t=this.getComponentRef();t.instance.dialogNestedComponent=i.component,i?.width&&(t.instance.width=i.width),i?.height&&(t.instance.height=i.height),t.instance.setTransformOrigin(event)}}static \u0275fac=function(t){return new(t||n)(w(dt),w(Jt),w(ye),w(ae))};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),K3=(()=>{class n extends iu{componentFactoryResolver;changeDetectorRef;elRef;platformId;dialogService;container;dialogNestedComponent;visible=!1;width="400px";height="90vh";triggerPosition="";constructor(i,t,r,o,s,a,u){super(r,a,s),this.componentFactoryResolver=i,this.changeDetectorRef=t,this.elRef=r,this.platformId=o,this.dialogService=u}ngAfterViewInit(){super.ngAfterViewInit(),this.createNestedComponent(),$n(0).pipe(ce(this.unsubscribe$)).subscribe(()=>{this.visible=!0,this.detectChanges()})}detectChanges(){this.changeDetectorRef.detectChanges()}closeDialog(){this.dialogService.close()}clickOutside(i){this.isContainerClicked(i)&&this.dialogService.close()}setTransformOrigin(i){if(Fi(this.platformId)&&i){let t=i.clientX-window.innerWidth/2,r=i.clientY-window.innerHeight/2;this.triggerPosition=`${t}px ${r}px`}}isContainerClicked(i){let t=this.elRef.nativeElement.querySelector(".gui-dialog-content");return t?!t.contains(i.target):!1}createNestedComponent(){if(this.dialogNestedComponent&&this.container){let i=this.componentFactoryResolver.resolveComponentFactory(this.dialogNestedComponent);this.container.createComponent(i),this.detectChanges()}}static \u0275fac=function(t){return new(t||n)(l(dt),l(ee),l(S),l(bt),l(Rn),l(ut),l(Pt(()=>Us)))};static \u0275cmp=k({type:n,selectors:[["gui-fabric-dialog"]],viewQuery:function(t,r){if(t&1&&$(Zd,5,Ot),t&2){let o;V(o=B())&&(r.container=o.first)}},hostVars:2,hostBindings:function(t,r){t&2&&X("gui-fabric-dialog",!0)},features:[R],decls:6,vars:8,consts:[["container",""],[1,"gui-dialog-blanket"],[1,"gui-dialog-wrapper",3,"click"],[1,"gui-dialog-content"],[3,"click"]],template:function(t,r){if(t&1){let o=Y();C(0,"div",1),f(1,"div",2),E("click",function(a){return A(o),F(r.clickOutside(a))}),f(2,"div",3),j(3,_3,0,0,"ng-template",null,0,qe),f(5,"gui-close-icon",4),E("click",function(){return A(o),F(r.closeDialog())}),v()()()}t&2&&(p(2),Qe("max-height",r.height)("max-width",r.width)("transform-origin",r.triggerPosition),X("gui-dialog-visible",r.visible))},dependencies:[gy],styles:[`.gui-box-border{box-sizing:border-box}.gui-bg-transparent{background-color:transparent}.gui-border{border-width:1px}.gui-border-0{border-width:0}.gui-border-b{border-bottom-width:1px}.gui-border-t{border-top-width:1px}.gui-border-solid{border-style:solid}.gui-border-b-solid{border-bottom-style:solid}.gui-border-t-solid{border-top-style:solid}.gui-border-none{border-style:none}.gui-rounded{border-radius:4px}.gui-cursor-pointer{cursor:pointer}.gui-block{display:block}.gui-inline-block{display:inline-block}.gui-inline{display:inline}.gui-flex{display:-ms-flexbox;display:flex}.gui-hidden{display:none}.gui-display-grid{display:grid}.gui-flex-row{-ms-flex-direction:row;flex-direction:row}.gui-flex-row-reverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.gui-flex-col{-ms-flex-direction:column;flex-direction:column}.gui-flex-col-reverse{-ms-flex-direction:column-reverse;flex-direction:column-reverse}.gui-justify-start{-ms-flex-pack:start;justify-content:flex-start}.gui-justify-end{-ms-flex-pack:end;justify-content:flex-end}.gui-justify-center{-ms-flex-pack:center;justify-content:center}.gui-justify-between{-ms-flex-pack:justify;justify-content:space-between}.gui-justify-around{-ms-flex-pack:distribute;justify-content:space-around}.gui-justify-evenly{-ms-flex-pack:space-evenly;justify-content:space-evenly}.gui-items-start{-ms-flex-align:start;align-items:flex-start}.gui-items-end{-ms-flex-align:end;align-items:flex-end}.gui-items-center{-ms-flex-align:center;align-items:center}.gui-items-between{-ms-flex-align:space-between;align-items:space-between}.gui-items-around{-ms-flex-align:space-around;align-items:space-around}.gui-items-evenly{-ms-flex-align:space-evenly;align-items:space-evenly}.gui-flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.gui-flex-wrap-reverse{-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse}.gui-flex-nowrap{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.gui-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.gui-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gui-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.gui-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.gui-grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.gui-grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.gui-grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.gui-grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.gui-grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.gui-grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.gui-grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.gui-grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.gui-grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.gui-grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.gui-grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.gui-grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.gui-grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.gui-grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.gui-grid-rows-gap-0{grid-row-gap:0}.gui-grid-rows-gap-1{grid-row-gap:1px}.gui-grid-rows-gap-2{grid-row-gap:2px}.gui-grid-rows-gap-3{grid-row-gap:3px}.gui-grid-rows-gap-4{grid-row-gap:4px}.gui-grid-rows-gap-5{grid-row-gap:6px}.gui-grid-rows-gap-6{grid-row-gap:8px}.gui-grid-rows-gap-7{grid-row-gap:10px}.gui-grid-rows-gap-8{grid-row-gap:12px}.gui-grid-rows-gap-10{grid-row-gap:16px}.gui-grid-rows-gap-13{grid-row-gap:22px}.gui-grid-rows-gap-23{grid-row-gap:42px}.gui-grid-cols-gap-0{grid-column-gap:0}.gui-grid-cols-gap-1{grid-column-gap:1px}.gui-grid-cols-gap-2{grid-column-gap:2px}.gui-grid-cols-gap-3{grid-column-gap:3px}.gui-grid-cols-gap-4{grid-column-gap:4px}.gui-grid-cols-gap-5{grid-column-gap:6px}.gui-grid-cols-gap-6{grid-column-gap:8px}.gui-grid-cols-gap-7{grid-column-gap:10px}.gui-grid-cols-gap-8{grid-column-gap:12px}.gui-grid-cols-gap-10{grid-column-gap:16px}.gui-grid-cols-gap-13{grid-column-gap:22px}.gui-grid-cols-gap-23{grid-column-gap:42px}.gui-h-full{height:100%}.gui-list-none{list-style-type:none}.gui-m-0{margin:0}.gui-mx-0{margin-left:0;margin-right:0}.gui-my-0{margin-bottom:0;margin-top:0}.-gui-m-0{margin:0}.-gui-mx-0{margin-left:0;margin-right:0}.-gui-my-0{margin-bottom:0;margin-top:0}.gui-m-1{margin:1px}.gui-mx-1{margin-left:1px;margin-right:1px}.gui-my-1{margin-bottom:1px;margin-top:1px}.-gui-m-1{margin:-1px}.-gui-mx-1{margin-left:-1px;margin-right:-1px}.-gui-my-1{margin-bottom:-1px;margin-top:-1px}.gui-m-2{margin:2px}.gui-mx-2{margin-left:2px;margin-right:2px}.gui-my-2{margin-bottom:2px;margin-top:2px}.-gui-m-2{margin:-2px}.-gui-mx-2{margin-left:-2px;margin-right:-2px}.-gui-my-2{margin-bottom:-2px;margin-top:-2px}.gui-m-3{margin:3px}.gui-mx-3{margin-left:3px;margin-right:3px}.gui-my-3{margin-bottom:3px;margin-top:3px}.-gui-m-3{margin:-3px}.-gui-mx-3{margin-left:-3px;margin-right:-3px}.-gui-my-3{margin-bottom:-3px;margin-top:-3px}.gui-m-4{margin:4px}.gui-mx-4{margin-left:4px;margin-right:4px}.gui-my-4{margin-bottom:4px;margin-top:4px}.-gui-m-4{margin:-4px}.-gui-mx-4{margin-left:-4px;margin-right:-4px}.-gui-my-4{margin-bottom:-4px;margin-top:-4px}.gui-m-5{margin:6px}.gui-mx-5{margin-left:6px;margin-right:6px}.gui-my-5{margin-bottom:6px;margin-top:6px}.-gui-m-5{margin:-6px}.-gui-mx-5{margin-left:-6px;margin-right:-6px}.-gui-my-5{margin-bottom:-6px;margin-top:-6px}.gui-m-6{margin:8px}.gui-mx-6{margin-left:8px;margin-right:8px}.gui-my-6{margin-bottom:8px;margin-top:8px}.-gui-m-6{margin:-8px}.-gui-mx-6{margin-left:-8px;margin-right:-8px}.-gui-my-6{margin-bottom:-8px;margin-top:-8px}.gui-m-7{margin:10px}.gui-mx-7{margin-left:10px;margin-right:10px}.gui-my-7{margin-bottom:10px;margin-top:10px}.-gui-m-7{margin:-10px}.-gui-mx-7{margin-left:-10px;margin-right:-10px}.-gui-my-7{margin-bottom:-10px;margin-top:-10px}.gui-m-8{margin:12px}.gui-mx-8{margin-left:12px;margin-right:12px}.gui-my-8{margin-bottom:12px;margin-top:12px}.-gui-m-8{margin:-12px}.-gui-mx-8{margin-left:-12px;margin-right:-12px}.-gui-my-8{margin-bottom:-12px;margin-top:-12px}.gui-m-10{margin:16px}.gui-mx-10{margin-left:16px;margin-right:16px}.gui-my-10{margin-bottom:16px;margin-top:16px}.-gui-m-10{margin:-16px}.-gui-mx-10{margin-left:-16px;margin-right:-16px}.-gui-my-10{margin-bottom:-16px;margin-top:-16px}.gui-m-13{margin:22px}.gui-mx-13{margin-left:22px;margin-right:22px}.gui-my-13{margin-bottom:22px;margin-top:22px}.-gui-m-13{margin:-22px}.-gui-mx-13{margin-left:-22px;margin-right:-22px}.-gui-my-13{margin-bottom:-22px;margin-top:-22px}.gui-m-23{margin:42px}.gui-mx-23{margin-left:42px;margin-right:42px}.gui-my-23{margin-bottom:42px;margin-top:42px}.-gui-m-23{margin:-42px}.-gui-mx-23{margin-left:-42px;margin-right:-42px}.-gui-my-23{margin-bottom:-42px;margin-top:-42px}.gui-mb-4{margin-bottom:4px}.gui-mb-6{margin-bottom:8px}.gui-mb-8{margin-bottom:12px}.gui-mb-10{margin-bottom:16px}.gui-mb-18{margin-bottom:32px}.gui-mr-0{margin-right:0}.gui-mr-5{margin-right:6px}.gui-mr-auto{margin-right:auto}.gui-ml-auto{margin-left:auto}.gui-ml-6{margin-left:8px}.gui-mt-0{margin-top:0}.gui-mt-4{margin-top:4px}.gui-mt-6{margin-top:8px}.gui-mt-10{margin-top:16px}.gui-mt-14{margin-top:24px}.gui-overflow-hidden{overflow:hidden}.gui-overflow-y-scroll{overflow-y:scroll}.gui-overflow-x-hidden{overflow-x:hidden}.gui-overflow-auto{overflow:auto}.gui-p-0{padding:0}.gui-px-0{padding-left:0;padding-right:0}.gui-py-0{padding-bottom:0;padding-top:0}.gui-p-1{padding:1px}.gui-px-1{padding-left:1px;padding-right:1px}.gui-py-1{padding-bottom:1px;padding-top:1px}.gui-p-2{padding:2px}.gui-px-2{padding-left:2px;padding-right:2px}.gui-py-2{padding-bottom:2px;padding-top:2px}.gui-p-3{padding:3px}.gui-px-3{padding-left:3px;padding-right:3px}.gui-py-3{padding-bottom:3px;padding-top:3px}.gui-p-4{padding:4px}.gui-px-4{padding-left:4px;padding-right:4px}.gui-py-4{padding-bottom:4px;padding-top:4px}.gui-p-5{padding:6px}.gui-px-5{padding-left:6px;padding-right:6px}.gui-py-5{padding-bottom:6px;padding-top:6px}.gui-p-6{padding:8px}.gui-px-6{padding-left:8px;padding-right:8px}.gui-py-6{padding-bottom:8px;padding-top:8px}.gui-p-7{padding:10px}.gui-px-7{padding-left:10px;padding-right:10px}.gui-py-7{padding-bottom:10px;padding-top:10px}.gui-p-8{padding:12px}.gui-px-8{padding-left:12px;padding-right:12px}.gui-py-8{padding-bottom:12px;padding-top:12px}.gui-p-10{padding:16px}.gui-px-10{padding-left:16px;padding-right:16px}.gui-py-10{padding-bottom:16px;padding-top:16px}.gui-p-13{padding:22px}.gui-px-13{padding-left:22px;padding-right:22px}.gui-py-13{padding-bottom:22px;padding-top:22px}.gui-p-23{padding:42px}.gui-px-23{padding-left:42px;padding-right:42px}.gui-py-23{padding-bottom:42px;padding-top:42px}.gui-pr-10{padding-right:16px}.gui-pl-9{padding-right:10px}.gui-pb-6{padding-bottom:8px}.gui-pb-12{padding-bottom:20px}.gui-pl-21{padding-left:38px}.gui-pt-4{padding-top:4px}.gui-pt-6{padding-top:8px}.gui-pt-10{padding-top:16px}.gui-pt-12{padding-top:20px}.gui-pt-14{padding-top:24px}.gui-static{position:static}.gui-fixed{position:fixed}.gui-relative{position:relative}.gui-absolute{position:absolute}.gui-text-xxs{font-size:11px}.gui-text-xs{font-size:12px}.gui-text-sm{font-size:13px}.gui-text-base{font-size:14px}.gui-text-lg{font-size:16px}.gui-text-xl{font-size:18px}.gui-text-2xl{font-size:20px}.gui-text-3xl{font-size:22px}.gui-leading-4{line-height:16px}.gui-leading-6{line-height:24px}.gui-font-thin{font-weight:100}.gui-font-extralight{font-weight:200}.gui-font-light{font-weight:300}.gui-font-normal{font-weight:400}.gui-font-medium{font-weight:500}.gui-font-semibold{font-weight:600}.gui-font-bold{font-weight:700}.gui-font-extrabold{font-weight:800}.gui-font-black{font-weight:900}.gui-italic{font-style:italic}.gui-not-italic{font-style:normal}.gui-whitespace-nowrap{white-space:nowrap}.gui-overflow-ellipsis{text-overflow:ellipsis}.gui-no-underline{text-decoration:none}.gui-text-center{text-align:center}.gui-w-full{width:100%}.gui-w-96{width:384px}.gui-w-3\\/5{width:60%}.gui-fabric-dialog *,.gui-fabric-dialog *:after,.gui-fabric-dialog *:before{box-sizing:border-box}.gui-fabric-dialog input{font-size:13px;outline:0}.gui-dialog-blanket{background:rgba(0,0,0,.32);height:100%;left:0;pointer-events:none;position:fixed;top:0;width:100%;z-index:1000}.gui-dialog-wrapper{font-family:Arial;height:100%;width:100%;position:fixed;pointer-events:auto;left:0;top:0;z-index:1000}.gui-dialog-content{background-color:#fff;border-radius:4px;box-shadow:0 3px 7px #999;padding:24px 16px;position:fixed;left:50%;top:50%;transform:scale3d(0,0,0) translate(-50%) translateY(-50%);opacity:0;transition:all .4s;overflow:auto;z-index:1000}.gui-dialog-content.gui-dialog-visible{transform:scaleZ(1) translate(-50%) translateY(-50%);opacity:1}
`,`.gui-dark .gui-dialog-wrapper .gui-dialog-content{background:#424242;box-shadow:0 1px 2px #424242;color:#bdbdbd}.gui-dark .gui-dialog-wrapper .gui-dialog-content .gui-dialog-close:before,.gui-dark .gui-dialog-wrapper .gui-dialog-content .gui-dialog-close:after{background:#bdbdbd}
`],encapsulation:2,changeDetection:0})}return n})(),X3=(()=>{class n{theme$=new ue;onTheme(){return this.theme$.asObservable()}nextTheme(i){this.theme$.next(this.toTheme(i))}toTheme(i){switch(i.toLowerCase()){case"fabric":return Ue.FABRIC;case"material":return Ue.MATERIAL;case"generic":return Ue.GENERIC;case"light":return Ue.LIGHT;case"dark":return Ue.DARK;default:return Ue.FABRIC}}static \u0275fac=function(t){return new(t||n)};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),Rc=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({providers:[Us,X3],imports:[J,fy]})}return n})();var Ac=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[J]})}return n})(),Z3=(()=>{class n{elementRef;renderer;width=5;diameter=90;primary=!1;secondary=!1;r=0;circumference=0;croppedCircle=0;circleSize=0;constructor(i,t){this.elementRef=i,this.renderer=t}ngOnChanges(i){this.calculateCircle(),i.primary&&(this.primary?this.addClass("gui-primary"):this.removeClass("gui-primary")),i.secondary&&(this.secondary?this.addClass("gui-secondary"):this.removeClass("gui-secondary"))}ngOnInit(){this.calculateCircle()}calculateCircle(){this.circumference=this.calculateCircumference(this.diameter),this.r=this.calculateR(this.diameter),this.croppedCircle=this.calculateDashes(this.circumference),this.circleSize=this.calculateSize(this.diameter,this.width)}calculateCircumference(i){return i*Math.PI}calculateR(i){return i/2}calculateDashes(i){return i*.25}calculateSize(i,t){return i+t}addClass(i){this.renderer.addClass(this.elementRef.nativeElement,i)}removeClass(i){this.renderer.removeClass(this.elementRef.nativeElement,i)}static \u0275fac=function(t){return new(t||n)(l(S),l(ut))};static \u0275dir=G({type:n,inputs:{width:"width",diameter:"diameter",primary:"primary",secondary:"secondary"},features:[re]})}return n})();var Fc=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[J]})}return n})(),fT=(()=>{class n{elementRef;renderer;name="";checked=!1;disabled=!1;changed=new Q;constructor(i,t){this.elementRef=i,this.renderer=t}ngOnChanges(){this.disabled?this.renderer.addClass(this.elementRef.nativeElement,"gui-disabled"):this.renderer.removeClass(this.elementRef.nativeElement,"gui-disabled")}check(){this.checked=!0,this.changed.emit(this.checked)}static \u0275fac=function(t){return new(t||n)(l(S),l(ut))};static \u0275cmp=k({type:n,selectors:[["gui-radio-button"]],hostVars:2,hostBindings:function(t,r){t&2&&X("gui-radio-button",!0)},inputs:{name:"name",checked:"checked",disabled:"disabled"},outputs:{changed:"changed"},features:[re],ngContentSelectors:io,decls:4,vars:3,consts:[["type","radio",3,"click","checked","disabled"],[1,"gui-radio-checkmark"]],template:function(t,r){t&1&&(Ke(),f(0,"label")(1,"input",0),E("click",function(){return r.check()}),v(),C(2,"span",1),Oe(3),v()),t&2&&(p(),g("checked",r.checked)("disabled",r.disabled),Me("name",r.name))},styles:[`.gui-radio-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;font:14px Arial;line-height:18px;padding-left:32px;position:relative}.gui-radio-button label{cursor:pointer}.gui-radio-button label:hover .gui-radio-checkmark{border-color:#999}.gui-radio-button input{height:0;opacity:0;position:absolute;width:0}.gui-radio-button .gui-radio-checkmark{border-color:#d6d6d6;border-radius:50%;border-style:solid;border-width:1px;box-sizing:content-box;height:16px;left:0;position:absolute;width:16px}.gui-radio-button input:checked+.gui-radio-checkmark{border-color:#999}.gui-radio-button input:focus+.gui-radio-checkmark{border-color:#6fb4e8}.gui-radio-button.gui-disabled.gui-radio-button{color:#ccc;pointer-events:none}.gui-radio-button .gui-radio-checkmark:after{content:"";display:none;position:absolute}.gui-radio-button input:checked+.gui-radio-checkmark:after{box-sizing:content-box;display:block}.gui-radio-button .gui-radio-checkmark:after{background:#333;border-radius:50%;height:16px;-ms-transform:scale(.5);transform:scale(.5);width:16px}
`,`.gui-material .gui-radio-button{font-family:Roboto,Helvetica Neue,sans-serif}
`,`.gui-dark .gui-radio-button{color:#bdbdbd}.gui-dark .gui-radio-button .gui-radio-checkmark{border-color:#878787}.gui-dark .gui-radio-button input:checked+.gui-radio-checkmark{border-color:#878787}.gui-dark .gui-radio-button input:focus+.gui-radio-checkmark{border-color:#ce93d8}.gui-dark .gui-radio-button .gui-radio-checkmark:after{background:#878787}.gui-dark .gui-radio-button.gui-disabled.gui-radio-button{opacity:.36}
`],encapsulation:2,changeDetection:0})}return n})(),Pc=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[J]})}return n})();var Oc=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[J]})}return n})(),Ui=function(n){return n[n.TOP_RIGHT=0]="TOP_RIGHT",n[n.TOP_LEFT=1]="TOP_LEFT",n[n.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",n[n.BOTTOM_LEFT=3]="BOTTOM_LEFT",n}(Ui||{}),J3=(()=>{class n{renderer;notificationRef;notification;onNotificationClose=new Q;unsub$=new ue;constructor(i){this.renderer=i}ngOnInit(){this.notification?.timer.enabled&&$n(this.notification.timer.duration||0).pipe(ce(this.unsub$)).subscribe(()=>this.closeNotification())}ngOnDestroy(){this.unsub$.next(),this.unsub$.complete()}closeNotification(){this.addCloseAnimation(),$n(200).pipe(ce(this.unsub$)).subscribe(()=>this.onNotificationClose.emit(this.notification))}addCloseAnimation(){if(this.notificationRef){let i=this.notificationRef.nativeElement;this.renderer.addClass(i,"gui-notification-active")}}isRightSide(){return this.notification?.position===Ui.TOP_RIGHT||this.notification?.position===Ui.BOTTOM_RIGHT}static \u0275fac=function(t){return new(t||n)(l(ut))};static \u0275cmp=k({type:n,selectors:[["gui-notification"]],viewQuery:function(t,r){if(t&1&&$(y3,5,S),t&2){let o;V(o=B())&&(r.notificationRef=o.first)}},inputs:{notification:"notification"},outputs:{onNotificationClose:"onNotificationClose"},decls:4,vars:5,consts:[["guiNotification",""],[1,"gui-notification"],[3,"click"]],template:function(t,r){if(t&1){let o=Y();f(0,"div",1,0)(2,"gui-close-icon",2),E("click",function(){return A(o),F(r.closeNotification())}),v(),T(3),v()}t&2&&(X("gui-notification-right-side",r.isRightSide())("gui-notification-left-side",!r.isRightSide()),p(3),we(" ",r.notification.description," "))},dependencies:[gy],encapsulation:2,changeDetection:0})}return n})(),ry=class{description;index;timer;position;constructor(e,i,t,r){this.description=e,this.index=i,this.timer=t,this.position=r}},bT=(()=>{class n extends nu{static DEFAULT_DURATION=4e3;fabricNotification;notificationIndex=0;unsub$=new ue;constructor(i,t,r,o){super(i,t,r,o)}ngOnDestroy(){this.removeNotificationContainer()}getComponent(){return tV}open(i,t){let r=Ui.TOP_RIGHT;if(t&&t.position&&(r=t.position),this.createFabricNotification(i,r,t),this.isComponentCreated())this.pushNotification(r);else{let o=Ue.FABRIC,s=this.getInjector();t&&t.theme&&(o=t.theme),t&&t.injector&&(s=t.injector);let a=ye.create({providers:[{provide:Vc,useValue:o}],parent:s});this.createAndAppend({injector:a}),this.pushNotification(r)}}close(){this.removeNotificationContainer(),this.unsub$.next(),this.unsub$.complete()}removeNotificationContainer(){this.isComponentCreated()&&(this.removeComponent(),this.notificationIndex=0)}createFabricNotification(i,t,r){let o=n.DEFAULT_DURATION,s=!0;r&&r.timer&&(r.timer.duration&&(o=r.timer.duration,r.timer.extendTimer&&(o=r.timer.duration*(this.notificationIndex+1))),r.timer.enabled!==void 0&&(s=r.timer.enabled)),this.fabricNotification=new ry(i,this.notificationIndex,{duration:o,enabled:s},t),this.notificationIndex+=1}pushNotification(i){if(!this.fabricNotification||!this.isComponentCreated())return;let t=this.getComponentRef();switch(i){case Ui.TOP_RIGHT:t.instance.notificationsTopRight=t.instance.notificationsTopRight.concat(this.fabricNotification);break;case Ui.TOP_LEFT:t.instance.notificationsTopLeft=t.instance.notificationsTopLeft.concat(this.fabricNotification);break;case Ui.BOTTOM_RIGHT:t.instance.notificationsBottomRight=t.instance.notificationsBottomRight.concat(this.fabricNotification);break;case Ui.BOTTOM_LEFT:t.instance.notificationsBottomLeft=t.instance.notificationsBottomLeft.concat(this.fabricNotification);break;default:break}t.instance.detectChanges()}static \u0275fac=function(t){return new(t||n)(w(dt),w(Jt),w(ye),w(ae))};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),eV=(()=>{class n{notifications=[];position;onNotificationClose=new Q;FabricNotificationPosition=Ui;emitClosedNotification(i){this.onNotificationClose.emit(i)}isPosition(i){return this.position===i}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=k({type:n,selectors:[["gui-notifications-container"]],hostVars:8,hostBindings:function(t,r){t&2&&X("gui-notifications-top-right",r.isPosition(r.FabricNotificationPosition.TOP_RIGHT))("gui-notifications-top-left",r.isPosition(r.FabricNotificationPosition.TOP_LEFT))("gui-notifications-bottom-right",r.isPosition(r.FabricNotificationPosition.BOTTOM_RIGHT))("gui-notifications-bottom-left",r.isPosition(r.FabricNotificationPosition.BOTTOM_LEFT))},inputs:{notifications:"notifications",position:"position"},outputs:{onNotificationClose:"onNotificationClose"},decls:1,vars:1,consts:[[3,"notification","onNotificationClose",4,"ngFor","ngForOf"],[3,"onNotificationClose","notification"]],template:function(t,r){t&1&&j(0,w3,1,1,"gui-notification",0),t&2&&g("ngForOf",r.notifications)},dependencies:[Ht,J3],encapsulation:2,changeDetection:0})}return n})(),tV=(()=>{class n extends iu{changeDetectorRef;notificationsService;notificationsTopRight=[];notificationsTopLeft=[];notificationsBottomRight=[];notificationsBottomLeft=[];FabricNotificationPosition=Ui;constructor(i,t,r,o,s,a){super(t,r,o),this.changeDetectorRef=i,this.notificationsService=a}removeNotification(i){switch(i.position){case Ui.TOP_RIGHT:this.notificationsTopRight=this.notificationsTopRight.filter(t=>t.index!==i.index);break;case Ui.TOP_LEFT:this.notificationsTopLeft=this.notificationsTopLeft.filter(t=>t.index!==i.index);break;case Ui.BOTTOM_RIGHT:this.notificationsBottomRight=this.notificationsBottomRight.filter(t=>t.index!==i.index);break;case Ui.BOTTOM_LEFT:this.notificationsBottomLeft=this.notificationsBottomLeft.filter(t=>t.index!==i.index);break;default:break}this.detectChanges(),this.checkNotificationsLength()}detectChanges(){this.changeDetectorRef.detectChanges()}checkNotificationsLength(){this.notificationsTopRight.length===0&&this.notificationsTopLeft.length===0&&this.notificationsBottomRight.length===0&&this.notificationsBottomLeft.length===0&&this.notificationsService.close()}isContainerNotEmpty(i){return i&&i.length>0}static \u0275fac=function(t){return new(t||n)(l(ee),l(S),l(ut),l(Rn),l(Vc),l(Pt(()=>bT)))};static \u0275cmp=k({type:n,selectors:[["ng-component"]],hostVars:2,hostBindings:function(t,r){t&2&&X("gui-notifications-overlay",!0)},features:[R],decls:4,vars:4,consts:[[3,"notifications","position","onNotificationClose",4,"ngIf"],[3,"onNotificationClose","notifications","position"]],template:function(t,r){t&1&&j(0,x3,1,2,"gui-notifications-container",0)(1,C3,1,2,"gui-notifications-container",0)(2,I3,1,2,"gui-notifications-container",0)(3,E3,1,2,"gui-notifications-container",0),t&2&&(g("ngIf",r.isContainerNotEmpty(r.notificationsTopRight)),p(),g("ngIf",r.isContainerNotEmpty(r.notificationsTopLeft)),p(),g("ngIf",r.isContainerNotEmpty(r.notificationsBottomRight)),p(),g("ngIf",r.isContainerNotEmpty(r.notificationsBottomLeft)))},dependencies:[rt,eV],styles:[`.gui-notifications-overlay{-ms-flex-align:center;align-items:center;font-family:Arial;-ms-flex-pack:center;justify-content:center;max-width:400px;position:fixed;z-index:1000}.gui-notifications-overlay gui-notifications-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:fixed}.gui-notifications-overlay gui-notifications-container.gui-notifications-top-left{left:0;top:0}.gui-notifications-overlay gui-notifications-container.gui-notifications-top-right{right:0;top:0}.gui-notifications-overlay gui-notifications-container.gui-notifications-bottom-left{bottom:0;left:0}.gui-notifications-overlay gui-notifications-container.gui-notifications-bottom-right{bottom:0;right:0}.gui-notifications-overlay .gui-notification{background:#fff;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d;display:block;margin:16px;padding:32px;position:relative}.gui-notifications-overlay .gui-notification.gui-notification-right-side{animation:loadNotificationRightSide .1s forwards}.gui-notifications-overlay .gui-notification.gui-notification-left-side{animation:loadNotificationLeftSide .1s forwards}@keyframes loadNotificationRightSide{0%{transform:translate(50%)}to{transform:translate(0)}}@keyframes loadNotificationLeftSide{0%{transform:translate(-50%)}to{transform:translate(0)}}.gui-notifications-overlay .gui-notification.gui-notification-active.gui-notification-right-side{animation:closeNotificationRightSide .2s forwards}@keyframes closeNotificationRightSide{0%{transform:translate(0)}to{transform:translate(100%)}}.gui-notifications-overlay .gui-notification.gui-notification-active.gui-notification-left-side{animation:closeNotificationLeftSide .2s forwards}@keyframes closeNotificationLeftSide{0%{transform:translate(0)}to{transform:translate(-100%)}}
`,`.gui-dark .gui-notification{background:#424242}
`,`.gui-material .gui-notification{background:#3949ab;color:#fff;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:500}
`],encapsulation:2,changeDetection:0})}return n})(),nT=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({providers:[bT],imports:[J,fy]})}return n})(),vT=(()=>{class n extends nu{constructor(i,t,r,o){super(i,t,r,o)}getComponent(){return iV}open(i){this.createAndAppend({afterCompCreation:()=>this.afterCompCreation(i)})}close(){this.removeComponent()}afterCompCreation(i){if(this.isComponentCreated()){let t=this.getComponentRef();t.instance.text=i,t.instance.detectChanges()}}static \u0275fac=function(t){return new(t||n)(w(dt),w(Jt),w(ye),w(ae))};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),iV=(()=>{class n{messageService;changeDetectorRef;text="";constructor(i,t){this.messageService=i,this.changeDetectorRef=t}detectChanges(){this.changeDetectorRef.detectChanges()}close(){this.messageService.close()}static \u0275fac=function(t){return new(t||n)(l(vT),l(ee))};static \u0275cmp=k({type:n,selectors:[["gui-message"]],decls:4,vars:1,consts:[[1,"gui-message"],[3,"click"]],template:function(t,r){t&1&&(f(0,"div",0),T(1),f(2,"button",1),E("click",function(){return r.close()}),T(3,"X"),v()()),t&2&&(p(),we(" ",r.text," "))},styles:[`.gui-message{left:50%;position:fixed;top:50%}
`],encapsulation:2,changeDetection:0})}return n})(),rT=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({providers:[vT],imports:[J]})}return n})(),nV=(()=>{class n{svgRef;svg="";ngAfterViewInit(){this.svgRef&&(this.svgRef.nativeElement.innerHTML=this.svg)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=k({type:n,selectors:[["gui-svg-template"]],viewQuery:function(t,r){if(t&1&&$(k3,5,S),t&2){let o;V(o=B())&&(r.svgRef=o.first)}},inputs:{svg:"svg"},decls:2,vars:0,consts:[["svgEl",""]],template:function(t,r){t&1&&C(0,"div",null,0)},encapsulation:2,changeDetection:0})}return n})(),_T=(()=>{class n extends ro{renderer;changeDetectorRef;platformId;tabRef;tabItemRef;tabMenuList;menu=[];active="";scrollActive=!1;Direction=Jr;listPosition=0;menuListWidth=0;scrollAmount=60;ACTIVE_TAB_CLASS_NAME="gui-active";constructor(i,t,r){super(),this.renderer=i,this.changeDetectorRef=t,this.platformId=r}ngAfterViewInit(){this.toggleTab(this.active),this.calculateMenuWidth(),this.showMenuArrows(),this.checkIfMenuFitsOnResize()}toggleTab(i){this.removeActive(),this.setActive(i)}isSvg(i){return typeof i=="object"}getTabName(i){return typeof i=="object"?i.name:i}scrollTabList(i){if(this.tabRef){let t=this.tabRef.nativeElement.querySelector(".gui-tab-menu-list").offsetWidth,r=this.menuListWidth-t;i&&r>this.listPosition?this.listPosition+=this.scrollAmount:!i&&this.listPosition>0&&(this.listPosition-=this.scrollAmount),this.tabRef.nativeElement.querySelector(".gui-tab-menu-list").scrollLeft=this.listPosition}}setActive(i){if(this.tabRef&&this.tabItemRef){typeof i=="object"&&(i=i.name);let t=this.tabRef.nativeElement.querySelector('[data-tab="'+i+'"]'),r=this.tabItemRef.nativeElement.querySelector('[data-tab="'+i+'"]');this.addClass(t,this.ACTIVE_TAB_CLASS_NAME),this.addClass(r,this.ACTIVE_TAB_CLASS_NAME)}}removeActive(){if(this.tabRef&&this.tabItemRef){let i=this.tabRef.nativeElement.querySelector("."+this.ACTIVE_TAB_CLASS_NAME),t=this.tabItemRef.nativeElement.querySelector("."+this.ACTIVE_TAB_CLASS_NAME);this.removeClass(i,this.ACTIVE_TAB_CLASS_NAME),this.removeClass(t,this.ACTIVE_TAB_CLASS_NAME)}}addClass(i,t){i&&this.renderer.addClass(i,t)}removeClass(i,t){i&&this.renderer.removeClass(i,t)}checkIfMenuFitsOnResize(){Fi(this.platformId)&&Ti(window,"resize").pipe(ce(this.unsubscribe$)).subscribe(()=>this.showMenuArrows())}calculateMenuWidth(){this.tabMenuList&&(this.menuListWidth=0,this.tabMenuList.forEach(i=>{this.menuListWidth+=i.nativeElement.offsetWidth}))}showMenuArrows(){if(this.tabRef){let i=this.tabRef.nativeElement.querySelector(".gui-tab-menu").offsetWidth;this.scrollActive=i<this.menuListWidth,this.changeDetectorRef.detectChanges()}}static \u0275fac=function(t){return new(t||n)(l(ut),l(ee),l(bt))};static \u0275cmp=k({type:n,selectors:[["gui-tab"]],viewQuery:function(t,r){if(t&1&&($(S3,5,S),$(D3,5,S),$(T3,5,S)),t&2){let o;V(o=B())&&(r.tabRef=o.first),V(o=B())&&(r.tabItemRef=o.first),V(o=B())&&(r.tabMenuList=o)}},hostVars:2,hostBindings:function(t,r){t&2&&X("gui-tab",!0)},inputs:{menu:"menu",active:"active",scrollActive:"scrollActive"},features:[R],ngContentSelectors:io,decls:10,vars:3,consts:[["tab",""],["tabItem",""],["tabMenuList",""],[1,"gui-tab-menu"],["class","scroll-button",3,"click",4,"ngIf"],[1,"gui-tab-menu-list"],["class","gui-tab-menu-item",3,"click",4,"ngFor","ngForOf"],[1,"gui-tab-content"],[1,"scroll-button",3,"click"],[3,"direction"],[1,"gui-tab-menu-item",3,"click"],[4,"ngIf"],[3,"svg"]],template:function(t,r){t&1&&(Ke(),f(0,"div",null,0)(2,"div",3),j(3,M3,2,1,"div",4),f(4,"div",5),j(5,F3,4,3,"div",6),v(),j(6,P3,2,0,"div",4),v(),f(7,"div",7,1),Oe(9),v()()),t&2&&(p(3),g("ngIf",r.scrollActive),p(2),g("ngForOf",r.menu),p(),g("ngIf",r.scrollActive))},dependencies:[Ht,rt,Sp,nV],styles:[`.gui-tab{font:14px Arial}.gui-tab .gui-tab-content{background:#fff;border-color:#d6d6d6;border-radius:0 0 4px 4px;border-style:solid;border-width:1px;padding:12px}.gui-tab .gui-tab-menu{display:-ms-flexbox;display:flex;margin-bottom:-1px}.gui-tab .gui-tab-menu .gui-tab-menu-list{border-radius:4px 4px 0 0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;overflow:hidden}.gui-tab .gui-tab-menu .gui-tab-menu-item{background:#fafafa;border-color:#d6d6d6;border-radius:4px 4px 0 0;border-style:solid;border-width:1px;box-sizing:border-box;cursor:pointer;display:inline-block;height:34px;margin-right:2px;padding:8px 16px;position:relative;text-align:center;white-space:nowrap}.gui-tab .gui-tab-menu .gui-tab-menu-item:nth-last-child(1){margin-right:0}.gui-tab .gui-tab-menu .gui-tab-menu-item svg{height:16px;width:16px}.gui-tab .gui-tab-menu .gui-tab-menu-item svg path{fill:#aaa}.gui-tab .gui-tab-menu .scroll-button{background:transparent;box-sizing:border-box;color:#ccc;cursor:pointer;font-weight:700;height:34px;padding:8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.gui-tab .gui-tab-menu .scroll-button:hover svg path{stroke:#464646}.gui-tab .gui-tab-item{display:none}.gui-tab .gui-active.gui-tab-menu-item{background:#fff;border-color:#d6d6d6 #d6d6d6 #fff #d6d6d6;border-radius:4px 4px 0 0;border-style:solid;border-width:1px;color:#2185d0}.gui-tab .gui-active.gui-tab-menu-item svg path{fill:#2185d0}.gui-tab .gui-active.gui-tab-item{display:block}
`,`.gui-material .gui-tab{font:14px Roboto,Helvetica Neue,sans-serif}
`,`.gui-dark .gui-tab{color:#bdbdbd}.gui-dark .gui-tab .gui-tab-content{background:#424242;border-color:#616161}.gui-dark .gui-tab .gui-tab-menu-item{background:#616161;border-color:transparent}.gui-dark .gui-tab .gui-active.gui-tab-menu-item{background:#424242;border-color:#616161 #616161 transparent #616161;color:#ce93d8}
`],encapsulation:2,changeDetection:0})}return n})(),yT=(()=>{class n{tab="";static \u0275fac=function(t){return new(t||n)};static \u0275cmp=k({type:n,selectors:[["gui-tab-item"]],inputs:{tab:"tab"},ngContentSelectors:io,decls:2,vars:1,consts:[[1,"gui-tab-item"]],template:function(t,r){t&1&&(Ke(),f(0,"div",0),Oe(1),v()),t&2&&Me("data-tab",r.tab)},encapsulation:2,changeDetection:0})}return n})(),rV=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[J]})}return n})(),Lo=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[J,py,rV]})}return n})(),oV=(()=>{class n{elementRef;text="";left=0;top=0;constructor(i){this.elementRef=i}correctPosition(){this.top-=this.elementRef.nativeElement.offsetHeight}static \u0275fac=function(t){return new(t||n)(l(S))};static \u0275cmp=k({type:n,selectors:[["ng-component"]],hostVars:6,hostBindings:function(t,r){t&2&&(Qe("left",r.left,"px")("top",r.top,"px"),X("gui-tooltip",!0))},decls:1,vars:1,template:function(t,r){t&1&&T(0),t&2&&we(" ",r.text," ")},styles:[`.gui-tooltip{background:rgba(0,0,0,.8);border-radius:4px;border-style:solid;border-width:0;box-sizing:border-box;color:#fff;display:block;font:14px Arial;font-weight:400;padding:8px 12px;position:absolute;-ms-transform:translateX(-50%);transform:translate(-50%);vertical-align:middle;z-index:10}.gui-tooltip:after{border-color:#333 transparent transparent transparent;border-style:solid;border-width:5px;content:"";left:50%;margin-left:-5px;position:absolute;top:100%}
`],encapsulation:2,changeDetection:0})}return n})(),Mp=(()=>{class n extends ro{componentFactoryResolver;injector;elementRef;applicationRef;document;platformId;static tooltipOffset=8;text="";tooltipRef=null;tooltipTopPosition;tooltipLeftPosition;constructor(i,t,r,o,s,a){super(),this.componentFactoryResolver=i,this.injector=t,this.elementRef=r,this.applicationRef=o,this.document=s,this.platformId=a}ngOnInit(){let i=Ti(this.elementRef.nativeElement,"mouseenter"),t=Ti(this.elementRef.nativeElement,"mouseleave");i.pipe(ce(this.unsubscribe$)).subscribe(()=>this.show()),t.pipe(ce(this.unsubscribe$)).subscribe(()=>{this.tooltipRef&&this.hide()})}show(){let i=this.componentFactoryResolver.resolveComponentFactory(oV).create(this.injector);i.instance.text=this.text,i.changeDetectorRef.detectChanges();let t=i.hostView.rootNodes[0];this.document.body.appendChild(t),this.tooltipRef=i,this.calculateCords(),this.tooltipRef.instance.correctPosition(),this.tooltipRef.changeDetectorRef.detectChanges()}hide(){this.tooltipRef&&(this.applicationRef.detachView(this.tooltipRef.hostView),this.tooltipRef.destroy(),this.tooltipRef=null)}calculateCords(){if(this.tooltipRef){let i=this.elementRef.nativeElement,t=i.getBoundingClientRect(),r=t.bottom,o=t.left;Fi(this.platformId)&&(this.tooltipTopPosition=r+window.scrollY-i.offsetHeight-n.tooltipOffset,this.tooltipLeftPosition=window.scrollX+o+i.offsetWidth/2,this.tooltipTopPosition&&(this.tooltipRef.instance.top=this.tooltipTopPosition),this.tooltipLeftPosition&&(this.tooltipRef.instance.left=this.tooltipLeftPosition),this.tooltipRef.changeDetectorRef.detectChanges())}}static \u0275fac=function(t){return new(t||n)(l(dt),l(ye),l(S),l(Jt),l(ae),l(bt))};static \u0275dir=G({type:n,selectors:[["","gui-tooltip",""]],inputs:{text:[U.None,"gui-tooltip","text"]},exportAs:["guiTooltip"],features:[R]})}return n})(),Hs=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({})}return n})(),sV=(()=>{class n{window;static BORDER_WIDTH=1;verticalPosition=0;horizontalPosition=0;canOpenUpward=!1;constructor(i,t,r){this.window=r,this.calculateCords(i,t)}getVerticalPosition(){return this.verticalPosition}getHorizontalPosition(){return this.horizontalPosition}getCanOpenUpward(){return this.canOpenUpward}calculateCords(i,t){let r=i.nativeElement.getBoundingClientRect(),o=this.window.pageYOffset+r.bottom,s=this.window.pageXOffset+r.left;this.horizontalPosition=s,this.verticalPosition=o-n.BORDER_WIDTH,this.calculateDirection(t,i)}calculateDirection(i,t){let r=this.window.innerHeight+this.window.pageYOffset,o=t.nativeElement.offsetHeight,s=i.getHeight();r-this.verticalPosition-s<0&&(this.canOpenUpward=!0,this.verticalPosition-=s+o-n.BORDER_WIDTH)}}return n})(),oy=class{selectOptionsGeometry;constructor(e){this.selectOptionsGeometry=e}getHeight(){return this.selectOptionsGeometry.nativeElement.querySelector(".gui-options-list").offsetHeight}getWidth(){return this.selectOptionsGeometry.nativeElement.querySelector(".gui-options-list").offsetWidth}},kp=(()=>{class n{platformId;selectContainerGeometry;selectOptionsCords$=new jh(1);constructor(i){this.platformId=i}onSelectOptionsCords(){return this.selectOptionsCords$.asObservable()}setGeometry(i){this.selectContainerGeometry=new oy(i)}nextCords(i){if(Fi(this.platformId)&&this.selectContainerGeometry){let t=new sV(i,this.selectContainerGeometry,window);this.selectOptionsCords$.next(t)}}static \u0275fac=function(t){return new(t||n)(w(bt))};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),sy=(()=>{class n{selectedOption$=new jh(1);onSelectedOption(){return this.selectedOption$.asObservable()}next(i){this.selectedOption$.next(i)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),aV=(()=>{class n extends iu{selectOptionsGeometryService;selectService;changeDetectorRef;optionListRef;options=[];optionsContainerLeftAttribute=0;optionsContainerTopAttribute=0;width=100;selectedOption;canOpenUpward=!1;constructor(i,t,r,o,s,a){super(o,s,a),this.selectOptionsGeometryService=i,this.selectService=t,this.changeDetectorRef=r}ngOnInit(){this.selectOptionsGeometryService.onSelectOptionsCords().pipe(ce(this.unsubscribe$)).subscribe(i=>{this.optionsContainerTopAttribute=i.getVerticalPosition(),this.optionsContainerLeftAttribute=i.getHorizontalPosition(),this.canOpenUpward=i.getCanOpenUpward(),this.changeDetectorRef.detectChanges()}),this.selectService.onSelectedOption().pipe(ce(this.unsubscribe$)).subscribe(i=>{this.selectedOption=i,this.changeDetectorRef.detectChanges()})}ngAfterViewInit(){super.ngAfterViewInit(),this.initOpenAnimation()}getElementRef(){return super.getElementRef()}detectChanges(){this.changeDetectorRef.detectChanges()}selectOption(i){this.selectService.next(i)}isOptionSelected(i){return this.selectedOption?.name===i.name}getOptionValue(i){return i.value?i.value:i.name}initOpenAnimation(){if(this.optionListRef){let i=this.optionListRef.nativeElement;this.getRenderer().addClass(i,"gui-options-opened")}}static \u0275fac=function(t){return new(t||n)(l(kp),l(sy),l(ee),l(S),l(ut),l(Rn))};static \u0275cmp=k({type:n,selectors:[["ng-component"]],viewQuery:function(t,r){if(t&1&&$(O3,5,S),t&2){let o;V(o=B())&&(r.optionListRef=o.first)}},features:[R],decls:3,vars:9,consts:[["optionList",""],[1,"gui-options-list"],["class","gui-option",3,"gui-option-selected","width","click",4,"ngFor","ngForOf"],[1,"gui-option",3,"click"]],template:function(t,r){t&1&&(f(0,"div",1,0),j(2,N3,2,5,"div",2),v()),t&2&&(Qe("left",r.optionsContainerLeftAttribute,"px")("top",r.optionsContainerTopAttribute,"px"),X("gui-upward",r.canOpenUpward)("gui-downward",!r.canOpenUpward),p(2),g("ngForOf",r.options))},dependencies:[Ht],encapsulation:2,changeDetection:0})}return n})(),oT=(()=>{class n extends nu{selectOptionsGeometryService;constructor(i,t,r,o,s){super(t,r,o,s),this.selectOptionsGeometryService=i}getComponent(){return aV}open(i,t){this.createAndAppend({afterCompCreation:()=>this.afterCompCreation(i,t)})}closeOptions(){this.removeComponent()}afterCompCreation(i,t){if(this.isComponentCreated()){let r=this.getComponentRef();r.instance.options=i,r.instance.width=t,r.instance.detectChanges(),this.selectOptionsGeometryService.setGeometry(r.instance.getElementRef()),r.instance.detectChanges()}}static \u0275fac=function(t){return new(t||n)(w(kp),w(dt),w(Jt),w(ye),w(ae))};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),Rp=(()=>{class n extends ro{selectService;selectOptionsGeometryService;selectOptionModalService;changeDetectorRef;platformId;elementRef;renderer;containerRef;options=[];placeholder="...";selected;width=100;disabled=!1;optionChanged=new Q;selectedOption;containerText;scrollListenerFn;doNotEmitValues=!1;opened=!1;constructor(i,t,r,o,s,a,u){super(),this.selectService=i,this.selectOptionsGeometryService=t,this.selectOptionModalService=r,this.changeDetectorRef=o,this.platformId=s,this.elementRef=a,this.renderer=u}ngOnChanges(i){i.placeholder&&(this.containerText=this.placeholder),i.selected&&this.selected&&this.tryToSelect(this.selected)}ngOnInit(){this.selectService.onSelectedOption().pipe(ce(this.unsubscribe$)).subscribe(i=>{this.emitSelectedOption(i),this.selectedOption=i,this.containerText=i.value??"",this.doNotEmitValues=!1,this.changeDetectorRef.detectChanges()}),this.selectOptionsGeometryService.onSelectOptionsCords().pipe(ce(this.unsubscribe$)).subscribe(i=>{i.getCanOpenUpward()?this.openUpward():this.openDownward()})}tryToOpen(i){this.isContainerDisabled(i)?i.stopPropagation():(this.open(this.options,this.width),this.toggleOptions(!this.opened),this.changeDetectorRef.detectChanges())}clickOutside(i){this.isContainerClicked(i)&&this.toggleOptions(!1)}toggleOptions(i){this.opened=i,this.maintainOptionsListPosition(),this.opened||this.closeOptions()}isOptionSelected(i){return this.selectedOption?.name===i.name}getOptionValue(i){return i?i.value?i.value:i.name:""}open(i,t){this.containerRef&&(this.closeSelect(),this.selectOptionModalService.open(i,t),this.selectOptionsGeometryService.nextCords(this.containerRef))}tryToSelect(i){(this.selectedOption?i.name!==this.selectedOption.name:!0)&&(this.doNotEmitValues=!0,this.selectService.next(i),this.selectedOption=i,this.containerText=this.getOptionValue(i))}maintainOptionsListPosition(){Fi(this.platformId)&&(this.opened?this.scrollListenerFn=this.renderer.listen("window","scroll",()=>{this.containerRef&&this.selectOptionsGeometryService.nextCords(this.containerRef)}):this.scrollListenerFn&&this.scrollListenerFn())}closeSelect(){this.selectOptionModalService.closeOptions()}emitSelectedOption(i){this.doNotEmitValues||this.isOptionSelected(i)||this.optionChanged.emit(i)}openDownward(){this.addClass("gui-options-opened"),this.addClass("gui-downward"),this.removeClass("gui-upward")}openUpward(){this.addClass("gui-options-opened"),this.addClass("gui-upward"),this.removeClass("gui-downward")}closeOptions(){this.elementRef.nativeElement.classList.contains("gui-options-opened")&&(this.removeClass("gui-options-opened"),this.closeSelect())}isContainerClicked(i){return!this.elementRef.nativeElement.contains(i.target)}isContainerDisabled(i){return i.target.classList.contains("gui-disabled")}addClass(i){this.renderer.addClass(this.elementRef.nativeElement,i)}removeClass(i){this.renderer.removeClass(this.elementRef.nativeElement,i)}static \u0275fac=function(t){return new(t||n)(l(sy),l(kp),l(oT),l(ee),l(bt),l(S),l(ut))};static \u0275cmp=k({type:n,selectors:[["gui-select"]],viewQuery:function(t,r){if(t&1&&$(Zd,5,S),t&2){let o;V(o=B())&&(r.containerRef=o.first)}},hostVars:2,hostBindings:function(t,r){t&2&&X("gui-select",!0)},inputs:{options:"options",placeholder:"placeholder",selected:"selected",width:"width",disabled:"disabled"},outputs:{optionChanged:"optionChanged"},features:[_e([sy,kp,oT]),R,re],decls:5,vars:5,consts:[["container",""],[1,"gui-select-container",3,"click"],[1,"gui-select-value"],[1,"gui-select-arrow"]],template:function(t,r){if(t&1){let o=Y();f(0,"div",1,0),E("click",function(a){return A(o),F(r.tryToOpen(a))})("click",function(a){return A(o),F(r.clickOutside(a))},!1,Nl),f(2,"div",2),T(3),v(),C(4,"span",3),v()}t&2&&(Qe("width",r.width,"px"),X("gui-disabled",r.disabled),p(3),we(" ",r.containerText," "))},styles:[`.gui-select .gui-select-container{min-height:16px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:#fff;border-color:#d6d6d6;border-radius:4px;border-style:solid;border-width:1px;box-sizing:content-box;color:#333;cursor:pointer;display:inline-block;font:14px Arial;padding:8px 24px 8px 12px;position:relative}.gui-select .gui-select-container:hover{border-color:#999}.gui-select .gui-select-container .gui-select-arrow{border:4px solid transparent;border-color:#595959 transparent transparent transparent;height:0;margin:8px;position:absolute;right:5px;top:5px;width:0}.gui-select.gui-options-opened .gui-select-container{border-color:#6fb4e8 #6fb4e8 transparent #6fb4e8;border-radius:4px 4px 0 0;border-width:1px}.gui-select.gui-downward .gui-options-list{border-color:#6fb4e8;border-radius:0 0 4px 4px;border-style:solid;border-top:none;border-width:1px}.gui-select.gui-downward .gui-option{border-color:#e6e6e6;border-style:solid;border-width:1px 0 0 0}.gui-select.gui-upward .gui-select-container{padding:8px 12px 8px 24px;-ms-transform:rotate(180deg);transform:rotate(180deg)}.gui-select.gui-upward .gui-select-container .gui-select-value{-ms-transform:rotate(180deg);transform:rotate(180deg)}.gui-select.gui-upward .gui-select-container .gui-select-arrow{border:4px solid transparent;border-color:transparent transparent #595959 transparent;bottom:5px;left:5px;top:auto}.gui-select.gui-upward .gui-options-list{border-color:#6fb4e8;border-radius:0 0 4px 4px;border-style:solid;border-top:none;border-width:1px}.gui-select.gui-upward .gui-option{border-color:#e6e6e6;border-style:solid;border-width:0 0 1px 0;-ms-transform:rotate(180deg);transform:rotate(180deg)}.gui-select .gui-disabled{color:#ccc;pointer-events:none}.gui-select .gui-disabled .gui-select-arrow{border-color:#cccccc transparent transparent transparent}.gui-select .initAnimationDisabled.gui-options-list{display:none}.gui-options-list{background:#fff;border-color:#6fb4e8;border-radius:0 0 4px 4px;border-style:solid;border-width:0 1px 1px 1px;overflow:hidden;padding:0;position:absolute;z-index:1000}.gui-options-list .gui-option{box-sizing:content-box;cursor:pointer;font-size:14px;list-style-type:none;padding:8px 24px 8px 12px}.gui-options-list .gui-option:hover{background:#dcdcdc}.gui-options-list .gui-option-selected{background:#e6e6e6;font-weight:700}.gui-options-list.gui-upward{animation:loadUpward .2s forwards;border-bottom:none;border-color:#6fb4e8;border-radius:4px 4px 0 0;border-style:solid;border-width:1px}@keyframes loadUpward{0%{transform:translateY(50%) scaleY(0)}to{transform:translateY(0) scaleY(1)}}.gui-options-list.gui-downward{animation:loadDownward .2s forwards;border-color:#6fb4e8;border-radius:0 0 4px 4px;border-style:solid;border-width:0 1px 1px 1px}@keyframes loadDownward{0%{transform:translateY(-50%) scaleY(0)}to{transform:translateY(0) scaleY(1)}}
`,`.gui-material .gui-select .gui-select-container,.gui-material .gui-options-list .gui-option{font-family:Roboto,Helvetica Neue,sans-serif}
`,`.gui-dark .gui-select .gui-select-container{background:#424242;border-color:#616161;color:#bdbdbd}.gui-dark .gui-select .gui-select-container:hover{border-color:#ce93d8}.gui-dark .gui-select .gui-select-container .gui-select-arrow{border-color:#ce93d8 transparent transparent transparent}.gui-dark .gui-select.gui-options-opened .gui-select-container{border-color:#ce93d8}.gui-dark .gui-select.gui-upward .gui-select-container .gui-select-arrow{border-color:transparent transparent #ce93d8 transparent}.gui-dark .gui-select .gui-disabled{opacity:.36}.gui-dark .gui-options-list{border-color:#ce93d8}.gui-dark .gui-options-list .gui-option{background:#424242;border-color:#757575;color:#bdbdbd}.gui-dark .gui-options-list .gui-option:hover{background:#616161}.gui-dark .gui-options-list .gui-option-selected{background:#757575}
`,`.gui-light .gui-select .gui-select-container{background:#fff;color:#333;font-family:Roboto,Helvetica Neue,sans-serif}.gui-light .gui-options-list .gui-option:hover{background:#f6f6f5}
`],encapsulation:2,changeDetection:0})}return n})(),Nc=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[J]})}return n})();var sT=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[J]})}return n})(),wT=(()=>{class n extends Z3{color="";constructor(i,t){super(i,t)}ngOnInit(){super.ngOnInit()}static \u0275fac=function(t){return new(t||n)(l(S),l(ut))};static \u0275cmp=k({type:n,selectors:[["gui-spinner"]],hostVars:2,hostBindings:function(t,r){t&2&&X("gui-spinner",!0)},inputs:{color:"color"},features:[R],decls:5,vars:30,consts:[[1,"gui-spinner"],[1,"circle-outer"],["cx","50%","cy","50%"],[1,"circle-inner"]],template:function(t,r){t&1&&(f(0,"div",0),mt(),f(1,"svg",1),C(2,"circle",2),v(),f(3,"svg",3),C(4,"circle",2),v()()),t&2&&(Qe("height",r.circleSize,"px")("width",r.circleSize,"px"),p(),Qe("height",r.circleSize,"px")("width",r.circleSize,"px"),p(),Qe("stroke-dasharray",r.croppedCircle)("stroke-dashoffset",r.circumference)("stroke-width",r.width)("stroke",r.color),Me("r",r.r),p(),Qe("height",r.circleSize,"px")("width",r.circleSize,"px"),p(),Qe("stroke-dasharray",r.croppedCircle)("stroke-dashoffset",r.circumference)("stroke-width",r.width)("stroke",r.color),Me("r",r.r))},styles:[`@keyframes gui-spin{0%{transform:rotate(-90deg)}to{transform:rotate(270deg)}}@keyframes gui-spin-reverse{0%{transform:rotate(-90deg) scale(.8)}to{transform:rotate(270deg) scale(.8)}}.gui-spinner{display:inline-block;margin:4px;position:relative;-ms-transform:rotate(-90deg);transform:rotate(-90deg)}.gui-spinner circle{fill:transparent;stroke:#999}.gui-spinner svg{position:absolute}.gui-spinner .circle-inner{animation:gui-spin-reverse 2s infinite linear forwards reverse}.gui-spinner .circle-outer{animation:gui-spin 2s infinite linear forwards}.gui-primary .gui-spinner.gui-spinner circle{stroke:#2185d0}.gui-secondary .gui-spinner.gui-spinner circle{stroke:#3cb371}
`,`.gui-material .gui-spinner circle{stroke:#3949ab}.gui-material .gui-primary .gui-spinner circle{stroke:#6200ee}.gui-material .gui-secondary .gui-spinner circle{stroke:#0097a7}
`,`.gui-dark .gui-spinner circle{stroke:#424242}.gui-dark .gui-primary .gui-spinner circle{stroke:#ce93d8}.gui-dark .gui-secondary .gui-spinner circle{stroke:#80cbc4}
`],encapsulation:2,changeDetection:0})}return n})(),jc=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[J]})}return n})();var Lc=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[J,Mn,Mn]})}return n})();var aT=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[J]})}return n})();var cV=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[J]})}return n})(),cT=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[J,cV]})}return n})(),Bo=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({providers:[Rn],imports:[J,Sc,Mn,Dc,eT,eo,jo,Ep,Tc,Mc,Rc,zs,Pc,Oc,cT,nT,rT,Lo,Hs,Ac,Fc,Nc,sT,jc,Lc,aT,to,Sc,Mn,Dc,eT,eo,jo,Ep,Tc,Mc,Rc,zs,Pc,Oc,cT,nT,rT,Lo,Hs,Ac,Fc,Nc,sT,jc,Lc,aT,to]})}return n})();var dV=["gui-row-detail",""],uV=["gui-paging-navigator","","paging",""],hV=["gui-paging-select","","paging",""],mV=["gui-paging-stats","","paging",""];function pV(n,e){if(n&1&&(Ne(0),f(1,"span",2)(2,"span"),T(3),v(),T(4," - "),f(5,"span"),T(6),v()(),f(7,"span"),T(8),be(9,"guiTranslate"),v(),f(10,"span",3),T(11),v(),je()),n&2){let i=x();p(3),ke(i.firstItemIndex),p(3),ke(i.lastItemIndex),p(2),we(" ",xe(9,4,"pagingOf")," "),p(3),we(" ",i.sourceSize," ")}}function gV(n,e){n&1&&(f(0,"span",4),T(1),be(2,"guiTranslate"),v()),n&2&&(p(),we(" ",xe(2,1,"pagingNoItems")," "))}var fV=["gui-paging-alternative-navigator","","paging","","sourceSize",""],bV=["*"],vV=["gui-paging-alternative-pages","","paging",""];function _V(n,e){if(n&1){let i=Y();f(0,"div")(1,"div",3)(2,"div",4),E("click",function(){let r=A(i).$implicit,o=x(2);return F(o.goToPage(r))}),T(3),v()()()}if(n&2){let i=e.$implicit,t=x(2);p(),X("gui-paging-active-page",t.activePage(i))("gui-paging-visible-page",t.calculateVisiblePages(i)),p(2),we(" ",i," ")}}function yV(n,e){if(n&1&&(Ne(0),j(1,_V,4,5,"div",2),je()),n&2){let i=x();p(),g("ngForOf",i.pages)}}function wV(n,e){n&1&&(f(0,"span",5),T(1),be(2,"guiTranslate"),v()),n&2&&(p(),we(" ",xe(2,1,"pagingNoItems")," "))}var xV=["gui-paging","","position",""];function CV(n,e){if(n&1){let i=Y();Ne(0),f(1,"div",4),E("pageSizeChanged",function(r){A(i);let o=x(3);return F(o.changePageSize(r))}),v(),C(2,"div",5),f(3,"div",6),E("nextPageChanged",function(){A(i);let r=x(2).$implicit,o=x();return F(o.nextPage(r.sourceSize))})("prevPageChanged",function(){A(i);let r=x(3);return F(r.prevPage())}),v(),je()}if(n&2){let i=x(2).$implicit;p(),g("paging",i.paging),p(),g("paging",i.paging),p(),g("paging",i.paging)("sourceSize",i.sourceSize)}}function IV(n,e){if(n&1){let i=Y();C(0,"div",5),f(1,"div",6),E("nextPageChanged",function(){A(i);let r=x(2).$implicit,o=x();return F(o.nextPage(r.sourceSize))})("prevPageChanged",function(){A(i);let r=x(3);return F(r.prevPage())}),v()}if(n&2){let i=x(2).$implicit;g("paging",i.paging),p(),g("paging",i.paging)("sourceSize",i.sourceSize)}}function EV(n,e){if(n&1&&(Ne(0),j(1,CV,4,4,"ng-container",3)(2,IV,2,3,"ng-template",null,0,qe),je()),n&2){let i=wi(3),t=x(2);p(),g("ngIf",!t.minimal)("ngIfElse",i)}}function kV(n,e){if(n&1){let i=Y();Ne(0),f(1,"div",4),E("pageSizeChanged",function(r){A(i);let o=x(2);return F(o.changePageSize(r))}),v(),f(2,"div",7),E("nextPageChanged",function(){A(i);let r=x().$implicit,o=x();return F(o.nextPage(r.sourceSize))})("prevPageChanged",function(){A(i);let r=x(2);return F(r.prevPage())}),C(3,"div",8),v(),je()}if(n&2){let i=x().$implicit;p(),g("paging",i.paging),p(),g("paging",i.paging)("sourceSize",i.sourceSize),p(),g("paging",i.paging)("sourceSize",i.sourceSize)}}function SV(n,e){if(n&1&&(Ne(0),j(1,EV,4,2,"ng-container",2)(2,kV,4,5,"ng-container",2),je()),n&2){let i=e.$implicit;p(),g("ngIf",i.isPagingVisible&&!i.alternativeDisplay),p(),g("ngIf",i.isPagingVisible&&i.alternativeDisplay)}}var wI=["value",""];function DV(n,e){if(n&1&&C(0,"gui-percentage-view",3),n&2){let i=x();g("value",i.value)}}function TV(n,e){if(n&1&&(Ne(0),C(1,"span",2),be(2,"guiSafe"),je()),n&2){let i=x();p(),g("innerHTML",ms(2,1,i.value.value,"html"),hs)}}function MV(n,e){if(n&1&&(f(0,"span"),T(1),v()),n&2){let i=x();p(),we(" ",i.value.value," ")}}var RV=["text"],TT=["number"],AV=["chip"],FV=["link"],PV=["image"],MT=["checkbox"],OV=["bold"],NV=["italic"],jV=["custom"],LV=["function"],VV=["html"],RT=["date"],BV=["bar"],zV=["percentageBar"],HV=["percentage"];function UV(n,e){if(n&1&&C(0,"gui-view-text",15),n&2){let i=e.element;g("value",i)}}function $V(n,e){if(n&1&&(f(0,"span",16),T(1),v()),n&2){let i=e.element;p(),we(" ",i.value," ")}}function GV(n,e){if(n&1&&(f(0,"gui-chip"),C(1,"gui-view-text",15),v()),n&2){let i=e.element;p(),g("value",i)}}function WV(n,e){if(n&1&&(f(0,"a",17),C(1,"gui-view-text",15),v()),n&2){let i=e.element;wo("href",i.value,La),p(),g("value",i)}}function qV(n,e){if(n&1&&C(0,"img",18),n&2){let i=e.element;wo("src",i.value,La)}}function YV(n,e){if(n&1&&(f(0,"span",19),C(1,"gui-checkbox",20),v()),n&2){let i=e.element;p(),g("checked",!!i.value)("disabled",!0)}}function QV(n,e){if(n&1&&C(0,"gui-view-text",21),n&2){let i=e.element;g("value",i)}}function KV(n,e){if(n&1&&C(0,"gui-view-text",22),n&2){let i=e.element;g("value",i)}}function XV(n,e){if(n&1&&T(0),n&2){let i=e.element;we(" ",i.value," ")}}function ZV(n,e){if(n&1&&C(0,"gui-function-view",23),n&2){let i=e.element;g("element",i)}}function JV(n,e){if(n&1&&C(0,"gui-html-view",23),n&2){let i=e.element;g("element",i)}}function e4(n,e){if(n&1&&(f(0,"span",24),T(1),be(2,"date"),v()),n&2){let i=e.element;p(),ke(ms(2,1,i.value,"dd/MM/yyyy"))}}function t4(n,e){if(n&1&&C(0,"gui-bar-view",25),n&2){let i=e.element;g("value",i.value)("showPercentage",!1)}}function i4(n,e){if(n&1&&C(0,"gui-bar-view",25),n&2){let i=e.element;g("value",i.value)("showPercentage",!0)}}function n4(n,e){if(n&1&&C(0,"gui-percentage-view",15),n&2){let i=e.element;g("value",i.value)}}var r4=["input"],o4=["datepicker"],s4=["string"],a4=["boolean"],c4=["empty"];function l4(n,e){if(n&1&&C(0,"gui-string-edit",5),n&2){let i=e.valueChanges,t=e.value,r=e.status,o=e.focus;g("valueChanges",i)("value",t)("status",r)("focus",o)}}function d4(n,e){if(n&1&&C(0,"gui-number-edit",5),n&2){let i=e.valueChanges,t=e.value,r=e.status,o=e.focus;g("valueChanges",i)("value",t)("status",r)("focus",o)}}function u4(n,e){if(n&1&&C(0,"gui-boolean-edit",5),n&2){let i=e.valueChanges,t=e.value,r=e.status,o=e.focus;g("valueChanges",i)("value",t)("status",r)("focus",o)}}function h4(n,e){if(n&1&&C(0,"gui-date-edit",6),n&2){let i=e.valueChanges,t=e.value,r=e.status,o=e.focus,s=e.parent;g("valueChanges",i)("value",t)("status",r)("focus",o)("parent",s)}}function m4(n,e){}var p4=["gui-structure-summaries-panel","","enabled",""];function g4(n,e){n&1&&C(0,"div",4)}function f4(n,e){if(n&1&&(f(0,"div",7)(1,"span",8),T(2),be(3,"guiTranslate"),v(),f(4,"span",9),T(5),v()()),n&2){let i=x(2).$implicit,t=x(2).$implicit;p(),g("gui-tooltip",t.summariesTranslations.countTooltip),p(),ke(xe(3,3,"summariesCount")),p(3),ke(t.summaries.get(i.getFieldId().getId()).count)}}function b4(n,e){if(n&1&&(f(0,"div",7)(1,"span",8),T(2),be(3,"guiTranslate"),v(),f(4,"span",9),T(5),v()()),n&2){let i=x(2).$implicit,t=x(2).$implicit;p(),g("gui-tooltip",t.summariesTranslations.distinctTooltip),p(),ke(xe(3,3,"summariesDist")),p(3),ke(t.summaries.get(i.getFieldId().getId()).distinct)}}function v4(n,e){if(n&1&&(f(0,"div",7)(1,"span"),T(2),be(3,"guiTranslate"),v(),f(4,"span",9),T(5),v()()),n&2){let i=x(2).$implicit,t=x(2).$implicit;p(2),we(" ",xe(3,2,"summariesSum")," "),p(3),ke(t.summaries.get(i.getFieldId().getId()).sum)}}function _4(n,e){if(n&1&&(f(0,"div",7)(1,"span",8),T(2),be(3,"guiTranslate"),v(),f(4,"span",9),T(5),v()()),n&2){let i=x(2).$implicit,t=x(2).$implicit;p(),g("gui-tooltip",t.summariesTranslations.averageTooltip),p(),ke(xe(3,3,"summariesAvg")),p(3),ke(t.summaries.get(i.getFieldId().getId()).average)}}function y4(n,e){if(n&1&&(f(0,"div",7)(1,"span",8),T(2),be(3,"guiTranslate"),v(),f(4,"span",9),T(5),v()()),n&2){let i=x(2).$implicit,t=x(2).$implicit;p(),g("gui-tooltip",t.summariesTranslations.minTooltip),p(),we(" ",xe(3,3,"summariesMin")," "),p(3),ke(t.summaries.get(i.getFieldId().getId()).min)}}function w4(n,e){if(n&1&&(f(0,"div",7)(1,"span",8),T(2),be(3,"guiTranslate"),v(),f(4,"span",9),T(5),v()()),n&2){let i=x(2).$implicit,t=x(2).$implicit;p(),g("gui-tooltip",t.summariesTranslations.maxTooltip),p(),we(" ",xe(3,3,"summariesMax")," "),p(3),ke(t.summaries.get(i.getFieldId().getId()).max)}}function x4(n,e){if(n&1&&(f(0,"div",7)(1,"span",8),T(2),be(3,"guiTranslate"),v(),f(4,"span",9),T(5),v()()),n&2){let i=x(2).$implicit,t=x(2).$implicit;p(),g("gui-tooltip",t.summariesTranslations.medTooltip),p(),ke(xe(3,3,"summariesMed")),p(3),ke(t.summaries.get(i.getFieldId().getId()).median)}}function C4(n,e){if(n&1&&(f(0,"div",7)(1,"span"),T(2),be(3,"guiTranslate"),v(),f(4,"span",9),T(5),v()()),n&2){let i=x(2).$implicit,t=x(2).$implicit;p(2),ke(xe(3,2,"summariesTruthy")),p(3),ke(t.summaries.get(i.getFieldId().getId()).truthy)}}function I4(n,e){if(n&1&&(f(0,"div",7)(1,"span"),T(2),be(3,"guiTranslate"),v(),f(4,"span",9),T(5),v()()),n&2){let i=x(2).$implicit,t=x(2).$implicit;p(2),ke(xe(3,2,"summariesFalsy")),p(3),ke(t.summaries.get(i.getFieldId().getId()).falsy)}}function E4(n,e){if(n&1&&(Ne(0),j(1,f4,6,5,"div",6)(2,b4,6,5,"div",6)(3,v4,6,4,"div",6)(4,_4,6,5,"div",6)(5,y4,6,5,"div",6)(6,w4,6,5,"div",6)(7,x4,6,5,"div",6)(8,C4,6,4,"div",6)(9,I4,6,4,"div",6),je()),n&2){let i=x().$implicit,t=x(2).$implicit,r=x();p(),g("ngIf",r.isSummariesTypePresent(t.summaries.get(i.getFieldId().getId()).count)),p(),g("ngIf",r.isSummariesTypePresent(t.summaries.get(i.getFieldId().getId()).distinct)),p(),g("ngIf",r.isSummariesTypePresent(t.summaries.get(i.getFieldId().getId()).sum)),p(),g("ngIf",r.isSummariesTypePresent(t.summaries.get(i.getFieldId().getId()).average)),p(),g("ngIf",r.isSummariesTypePresent(t.summaries.get(i.getFieldId().getId()).min)),p(),g("ngIf",r.isSummariesTypePresent(t.summaries.get(i.getFieldId().getId()).max)),p(),g("ngIf",r.isSummariesTypePresent(t.summaries.get(i.getFieldId().getId()).median)),p(),g("ngIf",r.isSummariesTypePresent(t.summaries.get(i.getFieldId().getId()).truthy)),p(),g("ngIf",r.isSummariesTypePresent(t.summaries.get(i.getFieldId().getId()).falsy))}}function k4(n,e){if(n&1&&(f(0,"div",5),j(1,E4,10,9,"ng-container",1),v()),n&2){let i=e.$implicit,t=x(2).$implicit;Qe("width",i.width,"px"),p(),g("ngIf",t.summaries&&!!t.summaries.get(i.getFieldId().getId()))}}function S4(n,e){if(n&1&&(Ne(0),j(1,g4,1,0,"div",2),be(2,"guiPush"),j(3,k4,2,3,"div",3),be(4,"guiPush"),je()),n&2){let i=x(2);p(),g("ngIf",xe(2,2,i.checkboxSelection$)),p(2),g("ngForOf",xe(4,4,i.headerColumns$))}}function D4(n,e){if(n&1&&(Ne(0),j(1,S4,5,6,"ng-container",1),je()),n&2){let i=e.$implicit,t=x();p(),g("ngIf",t.enabled&&i.summaries&&!i.sourceEmpty)}}var T4=["gui-info-dialog",""],M4=["gui-structure-column-manager",""];function R4(n,e){n&1&&Ha(0)}function A4(n,e){if(n&1){let i=Y();f(0,"li",3),E("click",function(){let r=A(i).$implicit,o=x(2);return F(o.toggleColumn(r))}),f(1,"gui-checkbox",4),j(2,R4,1,0,"ng-container",5),v()()}if(n&2){let i=e.$implicit,t=x().$implicit;p(),g("checked",i.isEnabled())("disabled",t.enabledColumnsCount===1&&i.isEnabled()),p(),g("ngTemplateOutlet",i.viewTemplate)("ngTemplateOutletContext",i.context)}}function F4(n,e){if(n&1&&(f(0,"ol",1),j(1,A4,3,4,"li",2),v()),n&2){let i=e.$implicit;p(),g("ngForOf",i.columns)}}var P4=["gui-structure-dialog-column-manager",""],O4=["gui-structure-schema-manager",""];function N4(n,e){if(n&1){let i=Y();f(0,"li",7),E("click",function(){let r=A(i).$implicit,o=x();return F(o.toggleVerticalGrid(r))}),f(1,"gui-checkbox",8),T(2),be(3,"guiTranslate"),v()()}if(n&2){let i=e.$implicit;p(),g("checked",i),p(),we(" ",xe(3,2,"themeManagerModalVerticalGrid")," ")}}function j4(n,e){if(n&1){let i=Y();f(0,"li",7),E("click",function(){let r=A(i).$implicit,o=x();return F(o.toggleHorizontalGrid(r))}),f(1,"gui-checkbox",8),T(2),be(3,"guiTranslate"),v()()}if(n&2){let i=e.$implicit;p(),g("checked",i),p(),we(" ",xe(3,2,"themeManagerModalHorizontalGrid")," ")}}var L4=["gui-schema-manager-dialog",""],V4=["gui-structure-column-manager-icon",""],B4=["gui-structure-schema-manager-icon",""],z4=["gui-active-search",""];function H4(n,e){if(n&1){let i=Y();Ne(0),f(1,"div"),T(2," Active search by: "),v(),f(3,"div")(4,"gui-chip"),T(5),v()(),f(6,"div")(7,"button",1),E("click",function(){A(i);let r=x();return F(r.clearSearch())}),T(8," Clear search "),v()(),je()}if(n&2){let i=e.$implicit;p(5),ke(i),p(2),g("outline",!0)("primary",!0)}}var U4=["gui-active-filter-list",""];function $4(n,e){if(n&1){let i=Y();f(0,"div"),T(1),f(2,"span",3),E("click",function(){let r=A(i).$implicit,o=x(2);return F(o.removeFilter(r))}),T(3,"X"),v()()}if(n&2){let i=e.$implicit;p(),we(" ",i.getText()," ")}}function G4(n,e){if(n&1&&(Ne(0),j(1,$4,4,1,"div",2),je()),n&2){let i=e.$implicit;p(),g("ngForOf",i)}}var W4=["gui-structure-info-icon",""],q4=["gui-structure-info-panel",""];function Y4(n,e){if(n&1&&(Ne(0),T(1),be(2,"guiTranslate"),f(3,"b"),T(4),be(5,"numberFormatter"),v(),T(6),be(7,"guiTranslate"),je()),n&2){let i=x(3).$implicit;p(),we(" ",xe(2,3,"infoPanelShowing")," "),p(3),ke(xe(5,5,i)),p(2),we(" ",xe(7,7,"infoPanelItems")," ")}}function Q4(n,e){if(n&1&&(f(0,"span",5),T(1),be(2,"guiTranslate"),f(3,"b"),T(4),be(5,"numberFormatter"),v(),T(6),be(7,"guiTranslate"),f(8,"b"),T(9),be(10,"numberFormatter"),v(),T(11),be(12,"guiTranslate"),v()),n&2){let i=x(3).$implicit,t=x().$implicit;p(),we(" ",xe(2,5,"infoPanelShowing")," "),p(3),ke(xe(5,7,t.preparedItemsSize)),p(2),we(" ",xe(7,9,"infoPanelOutOf")," "),p(3),ke(xe(10,11,i)),p(2),we(" ",xe(12,13,"infoPanelItems")," ")}}function K4(n,e){if(n&1&&(Ne(0),j(1,Y4,8,9,"ng-container",3)(2,Q4,13,15,"span",4),je()),n&2){let i=x(2).$implicit,t=x().$implicit;p(),g("ngIf",t.preparedItemsSize===i),p(),g("ngIf",t.preparedItemsSize!==i)}}function X4(n,e){if(n&1&&(f(0,"div"),j(1,K4,3,2,"ng-container",3),v()),n&2){let i=x().$implicit,t=x().$implicit;p(),g("ngIf",t.preparedItemsSize!==void 0&&i!==void 0)}}function Z4(n,e){if(n&1&&(f(0,"div"),j(1,X4,2,1,"div",3),v()),n&2){let i=x().$implicit;p(),g("ngIf",i.infoPanelConfig.isSourceSizeEnabled())}}function J4(n,e){if(n&1){let i=Y();f(0,"div",6),E("click",function(){A(i);let r=x(2);return F(r.openSchemaManager())}),C(1,"div",7),v()}if(n&2){let i=x().$implicit;p(),g("gui-tooltip",i.translations.infoPanelThemeMangerTooltipText)}}function eB(n,e){if(n&1){let i=Y();f(0,"div",6),E("click",function(){A(i);let r=x(2);return F(r.openColumnManager())}),C(1,"div",8),v()}if(n&2){let i=x().$implicit;p(),g("gui-tooltip",i.translations.infoPanelColumnManagerTooltipText)}}function tB(n,e){if(n&1){let i=Y();f(0,"div",6),E("click",function(){A(i);let r=x(2);return F(r.openInfo())}),C(1,"div",9),v()}if(n&2){let i=x().$implicit;p(),g("gui-tooltip",i.translations.infoPanelInfoTooltipText)}}function iB(n,e){if(n&1&&(Ne(0),j(1,Z4,2,1,"div",0),f(2,"div")(3,"div",1),j(4,J4,2,1,"div",2)(5,eB,2,1,"div",2)(6,tB,2,1,"div",2),v()(),je()),n&2){let i=e.$implicit,t=x();p(),g("guiLet",t.totalItemsSize$),p(3),g("ngIf",i.infoPanelConfig.isSchemaManagerEnabled()),p(),g("ngIf",i.infoPanelConfig.isColumnsManagerEnabled()),p(),g("ngIf",i.infoPanelConfig.isInfoDialogEnabled())}}var nB=["gui-search-icon",""],rB=["formRef"],oB=["gui-search-bar",""];function sB(n,e){if(n&1){let i=Y();f(0,"span",6),E("click",function(){A(i);let r=x(2);return F(r.clear())}),v()}}function aB(n,e){if(n&1&&(Ne(0),f(1,"form",2,0),C(3,"div",3)(4,"input",4),be(5,"guiPush"),j(6,sB,1,0,"span",5),v(),je()),n&2){let i=x();p(),g("formGroup",i.searchForm),p(3),g("placeholder",xe(5,3,i.placeholder$)),p(2),g("ngIf",i.searchForm.controls.searchPhrase.value)}}var cB=["gui-structure-top-panel",""],lB=["gui-empty-source","","items",""];function dB(n,e){n&1&&(Ne(0),T(1),be(2,"guiTranslate"),je()),n&2&&(p(),we(" ",xe(2,1,"sourceEmpty"),`
`))}var uB=["gui-structure-menu-column-manager",""],hB=["gui-unique-value-list","","fieldId",""];function mB(n,e){if(n&1){let i=Y();f(0,"div")(1,"gui-checkbox",6),E("changed",function(){let r=A(i).$implicit,o=x(2);return F(o.toggleSelect(r))}),T(2),v()()}if(n&2){let i=e.$implicit;p(),g("checked",i.isEnabled()),p(),we(" ",i.getValue()," ")}}function pB(n,e){if(n&1){let i=Y();Ne(0),f(1,"gui-checkbox",1),E("changed",function(){A(i);let r=x();return F(r.toggleAllSelect())}),T(2," Select all "),v(),f(3,"div",2),j(4,mB,3,2,"div",3),v(),f(5,"div",4)(6,"button",5),E("click",function(){A(i);let r=x();return F(r.clearFilters())}),T(7," Clear "),v()(),je()}if(n&2){let i=e.$implicit;p(),g("checked",i.selectAllChecked)("indeterminate",i.selectAllIndeterminate),p(3),g("ngForOf",i.uniqueValues),p(2),g("outline",!0)("primary",!0)}}var gB=["gui-structure-arrow-icon",""],fB=["gui-structure-column-config-sort","","column","","dropdownTextTranslation",""];function bB(n,e){if(n&1){let i=Y();f(0,"gui-dropdown",1)(1,"gui-dropdown-item",2),E("click",function(){A(i);let r=x();return F(r.setSortOrder(r.status.ASC))}),f(2,"div",3),T(3),be(4,"guiTranslate"),C(5,"div",4),v()(),f(6,"gui-dropdown-item",2),E("click",function(){A(i);let r=x();return F(r.setSortOrder(r.status.DESC))}),f(7,"div",3),T(8),be(9,"guiTranslate"),C(10,"div",5),v()(),f(11,"gui-dropdown-item",2),E("click",function(){A(i);let r=x();return F(r.setSortOrder(r.status.NONE))}),T(12),be(13,"guiTranslate"),v()()}if(n&2){let i=x();g("dropdownText",i.dropdownTextTranslation)("placement",i.placement)("showOnHover",!0)("width",225),p(),X("gui-header-item-active",i.isAscSort()),p(2),we(" ",xe(4,16,"headerMenuMainTabColumnSortAscending")," "),p(2),g("sort",!0),p(),X("gui-header-item-active",i.isDescSort()),p(2),we(" ",xe(9,18,"headerMenuMainTabColumnSortDescending")," "),p(2),g("position",i.StructureArrowPosition.DOWN)("sort",!0),p(),X("gui-header-item-active",i.isNoneSort()),p(),we(" ",xe(13,20,"headerMenuMainTabColumnSortNone")," ")}}var vB=["gui-structure-column-config-column-hide",""],_B=["gui-structure-column-config-column-move","","column",""],yB=["headerSortMenu"],wB=["gui-column-config",""];function xB(n,e){if(n&1&&C(0,"div",10),n&2){let i=x(3).$implicit,t=x();g("column",t.column)("dropdownTextTranslation",i.translations.headerMenuMainTabColumnSort)}}function CB(n,e){if(n&1){let i=Y();Ne(0),f(1,"gui-tab-item",5),j(2,xB,1,2,"div",6),f(3,"div",7),E("columnHidden",function(){A(i);let r=x(3);return F(r.hideColumn())}),v(),f(4,"div",8),E("click",function(){A(i);let r=x(3);return F(r.highlightColumn())}),T(5),be(6,"guiTranslate"),v(),f(7,"div",9),E("movedLeft",function(){A(i);let r=x(3);return F(r.moveLeft())})("movedRight",function(){A(i);let r=x(3);return F(r.moveRight())}),v()(),je()}if(n&2){let i=x(2).$implicit,t=x();p(),g("tab",i.translations.headerMenuMainTab),p(),g("ngIf",t.column.isSortEnabled()),p(),g("column",t.column),p(2),we(" ",xe(6,5,"headerMenuMainTabHighlightColumn")," "),p(2),g("column",t.column)}}function IB(n,e){if(n&1&&(Ne(0),f(1,"gui-tab-item",11),C(2,"div",12),v(),je()),n&2){let i=x(2).$implicit,t=x();p(),g("tab",i.translations.headerMenuFilterTab),p(),g("fieldId",t.column.getFieldId())}}function EB(n,e){if(n&1&&(Ne(0),f(1,"gui-tab-item",11),C(2,"div",13),v(),je()),n&2){let i=x(2).$implicit;p(),g("tab",i.translations.headerMenuColumnsTab)}}function kB(n,e){if(n&1&&(f(0,"div",2)(1,"gui-tab",3),j(2,CB,8,7,"ng-container",4)(3,IB,3,2,"ng-container",4)(4,EB,3,1,"ng-container",4),v()()),n&2){let i=x().$implicit;p(),g("active",i.config.getActiveMenu())("menu",i.config.getMenus()),p(),g("ngIf",i.config.isMainEnabled()),p(),g("ngIf",i.config.isFilteringEnabled()),p(),g("ngIf",i.config.isColumnManagerEnabled())}}function SB(n,e){if(n&1&&(Ne(0),j(1,kB,5,5,"div",1),je()),n&2){let i=e.$implicit;p(),g("ngIf",i.isEnabled)}}var DB=["gui-select-custom-modal",""];function TB(n,e){if(n&1){let i=Y();f(0,"li",2),E("click",function(){let r=A(i).$implicit,o=x(2);return F(o.selectCustom(r.getCustomSelectId()))}),T(1),v()}if(n&2){let i=e.$implicit;Me("id",i.key),p(),we(" ",i.text," ")}}function MB(n,e){if(n&1&&(f(0,"ul"),j(1,TB,2,2,"li",1),v()),n&2){let i=e.$implicit;p(),g("ngForOf",i.getSelections())}}var RB=["gui-select-all",""];function AB(n,e){if(n&1){let i=Y();f(0,"gui-checkbox",2),E("changed",function(){A(i);let r=x().$implicit,o=x();return F(o.toggleSelectAll(r.isAllIndeterminate,r.isAllChecked))}),v()}if(n&2){let i=x().$implicit;g("checked",i.isAllChecked)("gui-tooltip","Select")("indeterminate",i.isAllIndeterminate)}}function FB(n,e){if(n&1&&(Ne(0),j(1,AB,1,3,"gui-checkbox",1),je()),n&2){let i=e.$implicit;p(),g("ngIf",i.modeMulti)}}var PB=["gui-structure-menu-icon",""],OB=["headerDialogContainer"],NB=["gui-structure-column-config-trigger",""];function jB(n,e){if(n&1){let i=Y();f(0,"div",2,0),E("click",function(){A(i);let r=x();return F(r.openConfigDialog())}),C(2,"div",3),v()}n&2&&(p(2),g("ngClass","gui-header-menu-icon"))}var LB=["selectCustomContainer"],VB=["gui-structure-header-columns","","columns",""],BB=n=>({"gui-header-sortable":n});function zB(n,e){n&1&&(f(0,"div",2),C(1,"div",3),v())}function HB(n,e){n&1&&Ha(0)}function UB(n,e){if(n&1&&C(0,"div",10),n&2){let i=x().$implicit;g("position",i.getSortStatus())("sort",!0)}}function $B(n,e){if(n&1){let i=Y();f(0,"div",4),E("click",function(){let r=A(i).$implicit,o=x();return F(o.toggleSort(r))}),f(1,"div",5),j(2,HB,1,0,"ng-container",6)(3,UB,1,2,"div",7),v(),f(4,"div",8),C(5,"div",9),v()()}if(n&2){let i=e.$implicit;FE(i.getStyles()),Ri(i.getCssClasses()),Qe("width",i.width,"px"),g("ngClass",zt(11,BB,i.isSortEnabled())),p(2),g("ngTemplateOutlet",i.viewTemplate)("ngTemplateOutletContext",i.context),p(),g("ngIf",!i.isNoSort()),p(2),g("column",i)}}var GB=["gui-structure-header-groups","","groups","","checkboxSelection",""];function WB(n,e){n&1&&(f(0,"div",2),C(1,"div",3),v())}function qB(n,e){if(n&1&&(f(0,"div",4)(1,"div",5),T(2),v()()),n&2){let i=e.$implicit;Qe("width",i.width,"px"),p(2),we(" ",i.header," ")}}var YB=["gui-structure-header-filters","","columns",""],QB=()=>["has value","is the same as","starts with","ends with"];function KB(n,e){if(n&1){let i=Y();f(0,"div",2)(1,"button",3),E("click",function(){A(i);let r=x(2);return F(r.turnOnFilterMode())}),T(2,"Add Filter"),v()()}if(n&2){let i=e.$implicit;Qe("width",i.width,"px")}}function XB(n,e){if(n&1&&(Ne(0),j(1,KB,3,2,"div",1),je()),n&2){let i=x();p(),g("ngForOf",i.columns)}}function ZB(n,e){if(n&1){let i=Y();Ne(0),C(1,"gui-select",4),f(2,"form",5),C(3,"input",6),v(),f(4,"button",7),E("click",function(){A(i);let r=x();return F(r.clearFilters())}),T(5,"Clear All"),v(),f(6,"button",7),E("click",function(){A(i);let r=x();return F(r.turnOffFilterMode())}),T(7,"Close"),v(),je()}if(n&2){let i=x();p(),g("options",Bt(4,QB))("selected","has value"),p(),g("formGroup",i.filterForm),p(),g("formControlName",i.filterFieldName)}}var JB=["gui-structure-header",""];function e5(n,e){if(n&1&&C(0,"div",3),n&2){let i=x().$implicit;g("checkboxSelection",i.showSelection)("groups",i.groups)}}function t5(n,e){if(n&1&&(Ne(0),j(1,e5,1,2,"div",2),je()),n&2){let i=e.$implicit;p(),g("ngIf",i.showGroups)}}function i5(n,e){if(n&1&&C(0,"div",4),n&2){let i=e.$implicit,t=x();g("columns",i.headerColumns)("guiStyle",t.width$)("showSelection",i.showSelection)}}function n5(n,e){if(n&1&&C(0,"div",6),n&2){let i=x().$implicit,t=x();g("columns",i.headerColumns)("guiStyle",t.filterHeaderHeight$)}}function r5(n,e){if(n&1&&(Ne(0),j(1,n5,1,2,"div",5),je()),n&2){let i=e.$implicit;p(),g("ngIf",i.filterRowEnabled)}}var o5=["cellContainer"],s5=["gui-structure-cell-edit-boolean","","entity","","cell",""];function a5(n,e){n&1&&Ha(0)}var c5=["gui-structure-cell","","entity","","cell",""],l5=(n,e,i,t)=>({"gui-cell-view":!0,"gui-align-left":n,"gui-align-center":e,"gui-align-right":i,"gui-column-highlighted":t}),d5=(n,e,i,t)=>({element:n,index:e,value:i,item:t});function u5(n,e){n&1&&Ha(0)}function h5(n,e){if(n&1){let i=Y();f(0,"span",3),E("click",function(){A(i);let r=x(2);return F(r.enterEditMode())}),j(1,u5,1,0,"ng-container",4),v()}if(n&2){let i=x(2);g("ngClass",kv(3,l5,i.cell.isAlignLeft(),i.cell.isAlignCenter(),i.cell.isAlignRight(),i.isHighlighted)),p(),g("ngTemplateOutlet",i.cell.template)("ngTemplateOutletContext",kv(8,d5,i.cell.getValue(i.entity,i.searchPhrase),i.entity.getPosition(),i.cell.getValue(i.entity,i.searchPhrase).value,i.entity.getSourceItem()))}}function m5(n,e){n&1&&Ha(0)}function p5(n,e){if(n&1&&(f(0,"span",5),j(1,m5,1,0,"ng-container",4),v()),n&2){let i=x(2);p(),g("ngTemplateOutlet",i.cell.editTemplate)("ngTemplateOutletContext",i.editContext)}}function g5(n,e){if(n&1&&(Ne(0),j(1,h5,2,13,"span",1)(2,p5,2,2,"span",2),je()),n&2){let i=x();p(),g("ngIf",!i.inEditMode),p(),g("ngIf",i.inEditMode)}}function f5(n,e){if(n&1&&(Ne(0),C(1,"div",6),je()),n&2){let i=x();p(),g("cell",i.cell)("entity",i.entity)}}var b5=["gui-structure-row",""];function v5(n,e){if(n&1){let i=Y();f(0,"div",3)(1,"gui-checkbox",4),E("changed",function(){A(i);let r=x();return F(r.selectCheckbox())}),v()()}if(n&2){let i=x();p(),g("checked",i.selectedItem)}}function _5(n,e){if(n&1){let i=Y();f(0,"div",5)(1,"gui-radio-button",4),E("changed",function(){A(i);let r=x();return F(r.selectRadio())}),v()()}if(n&2){let i=x();p(),g("checked",i.selectedItem)}}function y5(n,e){if(n&1&&C(0,"div",6),n&2){let i=e.$implicit,t=e.index,r=x();Qe("width",i.width,"px"),g("cellEditorManager",r.cellEditing)("cell",i)("columnIndex",t)("editMode",r.editMode)("entity",r.entity)("rowIndex",r.index)("searchPhrase",r.searchPhrase)}}var w5=["gui-structure-content",""],x5=(n,e)=>({even:n,odd:e}),C5=n=>({transform:n});function I5(n,e){if(n&1){let i=Y();f(0,"div",3),E("click",function(){let r=A(i).$implicit,o=x().$implicit,s=x();return F(s.toggleSelectedRow(r,o.selectionEnabled,o.checkboxSelection,o.radioSelection))}),v()}if(n&2){let i=e.$implicit,t=e.index,r=x().$implicit,o=x();Qe("height",r.rowHeight,"px"),g("cellEditing",r.cellEditing)("checkboxSelection",r.checkboxSelection)("columns",o.columns)("editMode",r.editMode)("entity",i)("id",i.getUiId())("index",i.getPosition())("ngClass",zl(15,x5,i.isEven(),i.isOdd()))("ngStyle",zt(18,C5,o.translateY(t,r.rowHeight)))("radioSelection",r.radioSelection)("rowClass",r.schemaRowClass)("rowStyle",r.schemaRowStyle)("searchPhrase",r.searchPhrase)}}function E5(n,e){if(n&1&&(f(0,"div",1),j(1,I5,1,20,"div",2),v()),n&2){let i=x();p(),g("ngForOf",i.source)("ngForTrackBy",i.trackByFn)}}var k5=["sourceCollection"],S5=["gui-structure-container",""],D5=["gui-structure-title-panel",""],T5=["gui-structure-footer-panel",""],M5=["gui-structure-blueprint",""];function R5(n,e){n&1&&C(0,"div",8)}function A5(n,e){n&1&&C(0,"div",9)}function F5(n,e){n&1&&C(0,"div",11),n&2&&g("position",0)}function P5(n,e){if(n&1&&(Ne(0),j(1,F5,1,1,"div",10),je()),n&2){let i=e.$implicit,t=x();p(),g("ngIf",t.isPagingTopEnabled(i))}}function O5(n,e){if(n&1&&C(0,"div",13),n&2){let i=x(2);g("ngClass",i.headerTopClasses)}}function N5(n,e){if(n&1&&(Ne(0),j(1,O5,1,1,"div",12),je()),n&2){let i=e.$implicit,t=x();p(),g("ngIf",t.isColumnHeaderTopEnabled(i))}}function j5(n,e){if(n&1&&C(0,"div",13),n&2){let i=x(2);g("ngClass",i.headerBottomClasses)}}function L5(n,e){if(n&1&&(Ne(0),j(1,j5,1,1,"div",12),je()),n&2){let i=e.$implicit,t=x();p(),g("ngIf",t.isColumnHeaderBottomEnabled(i))}}function V5(n,e){n&1&&C(0,"div",15)}function B5(n,e){if(n&1&&(Ne(0),j(1,V5,1,0,"div",14),je()),n&2){let i=e.$implicit;p(),g("ngIf",i)}}function z5(n,e){n&1&&C(0,"div",11),n&2&&g("position",1)}function H5(n,e){if(n&1&&(Ne(0),j(1,z5,1,1,"div",10),je()),n&2){let i=e.$implicit,t=x();p(),g("ngIf",t.isPagingBottomEnabled(i))}}function U5(n,e){n&1&&C(0,"div",16)}var $5=(n,e)=>({"gui-loader-visible":n,"gui-loader-hidden":e});function G5(n,e){n&1&&C(0,"gui-spinner",3),n&2&&g("diameter",120)("primary",!0)}var W5=["structure"];var q5={sourceEmpty:"There are no items to show.",pagingItemsPerPage:"Items per page:",pagingOf:"of",pagingNextPage:"Next",pagingPrevPage:"Prev",pagingNoItems:"There is no items.",infoPanelShowing:"Showing",infoPanelItems:"items",infoPanelOutOf:"out of",infoPanelThemeMangerTooltipText:"Theme manager",infoPanelColumnManagerTooltipText:"Column manager",infoPanelInfoTooltipText:"info",themeManagerModalTitle:"Theme manager",themeManagerModalTheme:"Theme:",themeManagerModalRowColoring:"Row coloring:",themeManagerModalVerticalGrid:"Vertical grid",themeManagerModalHorizontalGrid:"HorizontalGrid",columnManagerModalTitle:"Manage columns",headerMenuMainTab:"Menu",headerMenuMainTabColumnSort:"Column sort",headerMenuMainTabHideColumn:"Hide column",headerMenuMainTabHighlightColumn:"Highlight",headerMenuMainTabMoveLeft:"Move left",headerMenuMainTabMoveRight:"Move right",headerMenuMainTabColumnSortAscending:"Ascending",headerMenuMainTabColumnSortDescending:"Descending",headerMenuMainTabColumnSortNone:"None",headerMenuFilterTab:"Filter",headerMenuColumnsTab:"Columns",summariesCount:"Count",summariesDist:"Dist",summariesSum:"Sum",summariesAvg:"Avg",summariesMin:"Min",summariesMax:"Max",summariesMed:"Med",summariesTruthy:"Truthy",summariesFalsy:"Falsy",summariesDistinctValuesTooltip:"Distinct values",summariesAverageTooltip:"Average",summariesMinTooltip:"Min",summariesMaxTooltip:"Max",summariesMedTooltip:"Median",summariesCountTooltip:"Number of items in the grid"};var $s=function(n){return n[n.UNKNOWN=0]="UNKNOWN",n[n.NUMBER=1]="NUMBER",n[n.STRING=2]="STRING",n[n.BOOLEAN=3]="BOOLEAN",n[n.DATE=4]="DATE",n[n.CUSTOM=5]="CUSTOM",n}($s||{}),An=function(n){return n[n.TEXT=0]="TEXT",n[n.CHIP=1]="CHIP",n[n.LINK=2]="LINK",n[n.IMAGE=3]="IMAGE",n[n.BOLD=4]="BOLD",n[n.ITALIC=5]="ITALIC",n[n.CHECKBOX=6]="CHECKBOX",n[n.CUSTOM=7]="CUSTOM",n[n.BAR=8]="BAR",n[n.PERCENTAGE_BAR=9]="PERCENTAGE_BAR",n[n.PERCENTAGE=10]="PERCENTAGE",n}(An||{});var ri=function(n){return n[n.FABRIC=0]="FABRIC",n[n.MATERIAL=1]="MATERIAL",n[n.LIGHT=2]="LIGHT",n[n.DARK=3]="DARK",n[n.GENERIC=4]="GENERIC",n}(ri||{}),Ho=function(n){return n[n.NONE=0]="NONE",n[n.EVEN=1]="EVEN",n[n.ODD=2]="ODD",n}(Ho||{});var lu=function(n){return n[n.BASIC=0]="BASIC",n[n.ADVANCED=1]="ADVANCED",n}(lu||{}),Fp=function(n){return n[n.RIGHT=0]="RIGHT",n[n.CENTER=1]="CENTER",n[n.LEFT=2]="LEFT",n}(Fp||{}),Pn=function(n){return n[n.ROW=0]="ROW",n[n.CHECKBOX=1]="CHECKBOX",n[n.RADIO=2]="RADIO",n}(Pn||{}),ir=function(n){return n[n.SINGLE=0]="SINGLE",n[n.MULTIPLE=1]="MULTIPLE",n}(ir||{});var pe=function(n){return n[n.UNKNOWN=0]="UNKNOWN",n[n.NUMBER=1]="NUMBER",n[n.STRING=2]="STRING",n[n.BOOLEAN=3]="BOOLEAN",n[n.DATE=4]="DATE",n[n.CUSTOM=5]="CUSTOM",n}(pe||{}),vy=class{convertType(e){return typeof e=="string"?this.convertTypeString(e):this.convertTypeEnum(e)}convertTypeEnum(e){switch(e){case $s.STRING:return pe.STRING;case $s.NUMBER:return pe.NUMBER;case $s.BOOLEAN:return pe.BOOLEAN;case $s.DATE:return pe.DATE;case $s.UNKNOWN:return pe.UNKNOWN;case $s.CUSTOM:return pe.CUSTOM;default:return pe.STRING}}convertTypeString(e){switch(e.toLocaleLowerCase()){case"string":return pe.STRING;case"number":return pe.NUMBER;case"boolean":return pe.BOOLEAN;case"date":return pe.DATE;case"unknown":return pe.UNKNOWN;case"custom":return pe.CUSTOM;default:return pe.STRING}}},ve=function(n){return n[n.COUNT=1024]="COUNT",n[n.DISTINCT=1]="DISTINCT",n[n.SUM=2]="SUM",n[n.AVERAGE=4]="AVERAGE",n[n.MIN=8]="MIN",n[n.MAX=16]="MAX",n[n.MEDIAN=32]="MEDIAN",n[n.TRUTHY=64]="TRUTHY",n[n.FALSY=128]="FALSY",n[n.EARLIEST=256]="EARLIEST",n[n.LATEST=512]="LATEST",n}(ve||{}),_y=class{convert(e){let i={};return e.enabled!==void 0&&e.enabled!==null&&(i.enabled=e.enabled),e.summariesTypes!==void 0&&e.summariesTypes!==null&&(i.summariesTypes=this.convertSummariesTypes(e.summariesTypes)),i}convertSummariesTypes(e){let i=[];return e.forEach(t=>{let r=this.convertSummariesType(t);r!=null&&i.push(r)}),i}convertSummariesType(e){switch(e.toLocaleLowerCase()){case"count":return ve.COUNT;case"distinct":return ve.DISTINCT;case"sum":return ve.SUM;case"average":return ve.AVERAGE;case"min":return ve.MIN;case"max":return ve.MAX;case"median":return ve.MEDIAN;case"truthy":return ve.TRUTHY;case"falsy":return ve.FALSY;case"earliest":return ve.EARLIEST;case"latest":return ve.LATEST;default:return null}}},ie=function(n){return n[n.TEXT=0]="TEXT",n[n.NUMBER=1]="NUMBER",n[n.CHIP=2]="CHIP",n[n.LINK=3]="LINK",n[n.IMAGE=4]="IMAGE",n[n.BOLD=5]="BOLD",n[n.ITALIC=6]="ITALIC",n[n.CHECKBOX=7]="CHECKBOX",n[n.CUSTOM=8]="CUSTOM",n[n.FUNCTION=9]="FUNCTION",n[n.DATE=10]="DATE",n[n.BAR=11]="BAR",n[n.PERCENTAGE_BAR=12]="PERCENTAGE_BAR",n[n.PERCENTAGE=13]="PERCENTAGE",n[n.NG_TEMPLATE=14]="NG_TEMPLATE",n[n.HTML=15]="HTML",n}(ie||{}),yy=class{convert(e){return typeof e=="string"?this.convertString(e):typeof e=="function"?e:this.convertEnum(e)}convertString(e){switch(e.toLocaleLowerCase()){case"text":return ie.TEXT;case"chip":return ie.CHIP;case"link":return ie.LINK;case"image":return ie.IMAGE;case"bold":return ie.BOLD;case"italic":return ie.ITALIC;case"checkbox":return ie.CHECKBOX;case"custom":return ie.CUSTOM;case"bar":return ie.BAR;case"percentage_bar":return ie.PERCENTAGE_BAR;case"percentage":return ie.PERCENTAGE;default:return ie.TEXT}}convertEnum(e){switch(e){case An.TEXT:return ie.TEXT;case An.CHIP:return ie.CHIP;case An.LINK:return ie.LINK;case An.IMAGE:return ie.IMAGE;case An.BOLD:return ie.BOLD;case An.ITALIC:return ie.ITALIC;case An.CHECKBOX:return ie.CHECKBOX;case An.CUSTOM:return ie.CUSTOM;case An.BAR:return ie.BAR;case An.PERCENTAGE_BAR:return ie.PERCENTAGE_BAR;case An.PERCENTAGE:return ie.PERCENTAGE;default:return ie.TEXT}}},wy=class{convert(e){return typeof e=="boolean"?{enabled:e}:e}},xy=class{convert(e){return typeof e=="boolean"?{enabled:e}:e}},_t=function(n){return n[n.RIGHT=0]="RIGHT",n[n.CENTER=1]="CENTER",n[n.LEFT=2]="LEFT",n}(_t||{}),Cy=class{convert(e){return typeof e=="string"?this.convertTypeString(e):this.convertTypeEnum(e)}convertTypeEnum(e){switch(e){case Fp.RIGHT:return _t.RIGHT;case Fp.CENTER:return _t.CENTER;case Fp.LEFT:return _t.LEFT;default:return _t.LEFT}}convertTypeString(e){switch(e.toLocaleLowerCase()){case"right":return _t.RIGHT;case"center":return _t.CENTER;case"left":return _t.LEFT;default:return _t.LEFT}}},Iy=class{columnTypeConverter=new vy;columnSummariesConverter=new _y;columnViewConverter=new yy;columnSortingConverter=new wy;columnCellEditingConverter=new xy;columnAlignConverter=new Cy;convert(e){return e.map(i=>{if(i.columns!==void 0){let t=i.columns.map(r=>this.convertColumn(r));return{header:i.header,columns:t}}else return this.convertColumn(i)})}convertColumn(e){let i={};return e.name!==void 0&&e.name!==null?i.name=e.name:e.field!==void 0&&e.field!==null&&typeof e.field=="string"&&(i.name=e.field),e.type!==void 0&&e.type!==null&&(i.type=this.columnTypeConverter.convertType(e.type)),e.header!==void 0&&e.header!==null&&(i.header=e.header),e.enabled!==void 0&&e.enabled!==null&&(i.enabled=e.enabled),e.field!==void 0&&e.field!==null&&(i.field=e.field),e.width!==void 0&&e.width!==null&&(i.width=e.width),e.align!==void 0&&e.align!==null&&(i.align=this.columnAlignConverter.convert(e.align)),e.view!==void 0&&e.view!==null&&(i.view=this.columnViewConverter.convert(e.view)),e.summaries!==void 0&&e.summaries!==null&&(i.summaries=this.columnSummariesConverter.convert(e.summaries)),e.sorting!==void 0&&e.sorting!==null&&(i.sorting=this.columnSortingConverter.convert(e.sorting)),e.cellEditing!==void 0&&e.cellEditing!==null&&(i.cellEditing=this.columnCellEditingConverter.convert(e.cellEditing)),e.formatter!==void 0&&e.formatter!==null&&(i.formatter=e.formatter),e.matcher!==void 0&&e.matcher!==null&&(i.matcher=e.matcher),e.cssClasses!==void 0&&e.cssClasses!==null&&(i.cssClasses=e.cssClasses),e.styles!==void 0&&e.styles!==null&&(i.styles=e.styles),e.templateRef!==void 0&&e.templateRef!==null&&(i.templateRef=e.templateRef,i.view=ie.NG_TEMPLATE),i}},me=function(n){return n[n.FABRIC=0]="FABRIC",n[n.MATERIAL=1]="MATERIAL",n[n.LIGHT=2]="LIGHT",n[n.DARK=3]="DARK",n[n.GENERIC=4]="GENERIC",n}(me||{}),Ey=class{convert(e){return typeof e=="string"?this.convertString(e):this.convertEnum(e)}convertToGuiTheme(e){switch(e){case me.MATERIAL:return ri.MATERIAL;case me.FABRIC:return ri.FABRIC;case me.LIGHT:return ri.LIGHT;case me.DARK:return ri.DARK;case me.GENERIC:return ri.GENERIC;default:return ri.GENERIC}}convertString(e){switch(e.toLocaleLowerCase()){case"material":return me.MATERIAL;case"fabric":return me.FABRIC;case"light":return me.LIGHT;case"dark":return me.DARK;case"generic":return me.GENERIC;default:return me.FABRIC}}convertEnum(e){switch(e){case ri.MATERIAL:return me.MATERIAL;case ri.FABRIC:return me.FABRIC;case ri.LIGHT:return me.LIGHT;case ri.DARK:return me.DARK;case ri.GENERIC:return me.GENERIC;default:return me.FABRIC}}},Gt=function(n){return n[n.NONE=0]="NONE",n[n.EVEN=1]="EVEN",n[n.ODD=2]="ODD",n}(Gt||{}),ky=class{convert(e){return typeof e=="string"?this.convertString(e):this.convertEnum(e)}convertToGuiRowColoring(e){switch(e){case Gt.NONE:return Ho.NONE;case Gt.EVEN:return Ho.EVEN;case Gt.ODD:return Ho.ODD;default:return Ho.EVEN}}convertString(e){switch(e.toLocaleLowerCase()){case"none":return Gt.NONE;case"even":return Gt.EVEN;case"odd":return Gt.ODD;default:return Gt.EVEN}}convertEnum(e){switch(e){case Ho.NONE:return Gt.NONE;case Ho.EVEN:return Gt.EVEN;case Ho.ODD:return Gt.ODD;default:return Gt.EVEN}}},Y5=(()=>{class n{convert(i){return i}static \u0275fac=function(t){return new(t||n)};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),oo=function(n){return n[n.BASIC=0]="BASIC",n[n.ADVANCED=1]="ADVANCED",n}(oo||{}),Sy=class{convert(e){let i={};return e.enabled!==void 0&&e.enabled!==null&&(i.enabled=e.enabled),e.page!==void 0&&e.page!==null&&(i.page=e.page),e.pageSize!==void 0&&e.pageSize!==null&&(i.pageSize=e.pageSize),e.pageSizes!==void 0&&e.pageSizes!==null&&(i.pageSizes=e.pageSizes),e.pagerTop!==void 0&&e.pagerTop!==null&&(i.pagerTop=e.pagerTop),e.pagerBottom!==void 0&&e.pagerBottom!==null&&(i.pagerBottom=e.pagerBottom),e.display!==void 0&&e.display!==null&&(i.displayMode=this.convertDisplay(e.display)),i}convertDisplay(e){return typeof e=="string"?this.convertString(e):this.convertEnum(e)}convertString(e){switch(e.toLocaleLowerCase()){case"basic":return oo.BASIC;case"advanced":return oo.ADVANCED;default:return oo.BASIC}}convertEnum(e){switch(e){case lu.BASIC:return oo.BASIC;case lu.ADVANCED:return oo.ADVANCED;default:return oo.BASIC}}},du=class{build(){return this.buildObject()}},li=function(n){return n.ROW="ROW",n.CHECKBOX="CHECKBOX",n.RADIO="RADIO",n}(li||{}),Fn=function(n){return n.SINGLE="SINGLE",n.MULTIPLE="MULTIPLE",n}(Fn||{}),Q5=(()=>{class n{enabled;selectedRowIndexes;selectedRowIds;type;mode;matcher;customConfig;constructor(i){i.enabled!==void 0&&(this.enabled=i.enabled),i?.selectedRowIndexes&&(this.selectedRowIndexes=i.selectedRowIndexes),i?.selectedRowIds&&(this.selectedRowIds=i.selectedRowIds),i?.mode&&(this.mode=i.mode),i?.type&&(this.type=i.type),i?.matcher&&(this.matcher=i.matcher),i?.config&&(this.customConfig=i.config)}isModeDefined(){return this.mode!==void 0}isTypeDefined(){return this.type!==void 0}isSelectedRowIndexesDefined(){return this.selectedRowIndexes!==void 0}isSelectedRowIdsDefined(){return this.selectedRowIds!==void 0}isEnabledDefined(){return this.enabled!==void 0}isMatcherDefined(){return this.matcher!==void 0}isEnabled(){return this.enabled}isCustomSelectConfig(){return this.customConfig!==void 0}getSelectedRowIndexes(){return this.selectedRowIndexes}getSelectedRowIds(){return this.selectedRowIds}getMode(){return this.mode}getType(){return this.type}getMatcher(){return this.matcher}getCustomSelectConfig(){return this.customConfig}static Builder=class extends du{enabled;selectedRowIndexes;selectedRowIds;type;mode;config;matcher;constructor(){super()}buildObject(){return new n({enabled:this.enabled,selectedRowIndexes:this.selectedRowIndexes,selectedRowIds:this.selectedRowIds,type:this.type,mode:this.mode,matcher:this.matcher,config:this.config})}withEnabled(t){return this.enabled=t,this}withSelectedRowIndexes(t){return this.selectedRowIndexes=t,this}withSelectedRowIds(t){return this.selectedRowIds=t,this}withType(t){return this.type=t,this}withMode(t){return this.mode=t,this}withMatcher(t){return this.matcher=t,this}witCustomSelection(t){return this.config=t,this}}}return n})(),Dy=class{enabled;selections},Ty=class{convert(e){let i=new Q5.Builder;if(typeof e=="boolean")return i.withEnabled(e).build();if(e.enabled!==void 0&&i.withEnabled(e.enabled),e.selectedRowIndexes!==void 0&&i.withSelectedRowIndexes(e.selectedRowIndexes),e.selectedRowIds!==void 0&&i.withSelectedRowIds(e.selectedRowIds),e.mode!==void 0){let t=this.convertMode(e.mode);i.withMode(t)}if(e.type!==void 0){let t=this.convertType(e.type);i.withType(t)}if(e.matcher!==void 0){let t=this.convertMatcher(e.matcher);i.withMatcher(t)}if(e.custom!==void 0){let t=this.convertCustomSelection(e.custom);i.witCustomSelection(t)}return i.build()}convertMode(e){if(typeof e=="string")switch(e.toLowerCase()){case"single":return Fn.SINGLE;case"multiple":return Fn.MULTIPLE;default:return Fn.SINGLE}else switch(e){case ir.SINGLE:return Fn.SINGLE;case ir.MULTIPLE:return Fn.MULTIPLE;default:return Fn.SINGLE}}convertType(e){if(typeof e=="string")switch(e.toLowerCase()){case"row":return li.ROW;case"checkbox":return li.CHECKBOX;case"radio":return li.RADIO;default:return li.ROW}else switch(e){case Pn.ROW:return li.ROW;case Pn.CHECKBOX:return li.CHECKBOX;case Pn.RADIO:return li.RADIO;default:return li.ROW}}convertMatcher(e){return typeof e=="string"?i=>i[e]:e}convertCustomSelection(e){let i=new Dy;return e?.enabled&&(i.enabled=e.enabled),e?.selections&&Array.isArray(e?.selections)&&(i.selections=e.selections.map(t=>t)),i}},xI=(()=>{class n{templateRef;name;field;type;view;header;width;enabled;align;summaries;sorting;cellEditing;formatter;matcher;cssClasses;styles;static \u0275fac=function(t){return new(t||n)};static \u0275cmp=k({type:n,selectors:[["gui-grid-column"]],contentQueries:function(t,r,o){if(t&1&&Zt(o,Be,7),t&2){let s;V(s=B())&&(r.templateRef=s.first)}},inputs:{name:"name",field:"field",type:"type",view:"view",header:"header",width:"width",enabled:"enabled",align:"align",summaries:"summaries",sorting:"sorting",cellEditing:"cellEditing",formatter:"formatter",matcher:"matcher",cssClasses:"cssClasses",styles:"styles"},decls:0,vars:0,template:function(t,r){},encapsulation:2})}return n})(),My=class{convert(e){return typeof e=="boolean"?{enabled:e}:e}};function ot(n,e){K5(n)&&e(n.currentValue)}function K5(n){return n!==void 0&&n.currentValue!==void 0}var X5=(()=>{class n{guiGridColumnComponent;columnHeaderTop;columnHeaderBottom;maxHeight;width;rowHeight;autoResizeWidth;source=[];columns=[];paging;verticalGrid;horizontalGrid;theme;rowColoring;rowSelection;rowStyle;rowClass;loading;virtualScroll;sorting;searching;titlePanel;footerPanel;filtering;quickFilters;editMode;cellEditing;infoPanel;summaries;columnMenu;rowDetail;localization;pageChanged=new Q;pageSizeChanged=new Q;itemsSelected=new Q;selectedRows=new Q;columnsChanged=new Q;containerWidthChanged=new Q;sourceEdited=new Q;cellEditEntered=new Q;cellEditCanceled=new Q;cellEditSubmitted=new Q;searchPhraseChanged=new Q;themeChanged=new Q;horizontalGridChanged=new Q;verticalGridChanged=new Q;rowColoringChanged=new Q;columnsConfig;themeConfig;rowColoringConfig;columnMenuConfig;rowSelectionConfig;cellEditingConfig;gridColumnConverter=new Iy;gridThemeConverter=new Ey;gridRowColoringConverter=new ky;gridColumnMenuConverter=new Y5;gridPagingConverter=new Sy;gridRowSelectionConverter=new Ty;guiGridCellEditConverter=new My;constructor(){}ngOnChanges(i){ot(i.columns,()=>{this.columnsConfig=this.gridColumnConverter.convert(this.columns)}),ot(i.theme,()=>{this.themeConfig=this.gridThemeConverter.convert(this.theme)}),ot(i.rowColoring,()=>{this.rowColoringConfig=this.gridRowColoringConverter.convert(this.rowColoring)}),ot(i.columnMenu,()=>{this.columnMenuConfig=this.gridColumnMenuConverter.convert(this.columnMenu)}),ot(i.rowSelection,()=>{this.rowSelectionConfig=this.gridRowSelectionConverter.convert(this.rowSelection)}),ot(i.cellEditing,()=>{this.cellEditingConfig=this.guiGridCellEditConverter.convert(this.cellEditing)}),ot(i.paging,()=>{typeof this.paging!="boolean"&&(this.paging=this.gridPagingConverter.convert(this.paging))})}ngAfterContentInit(){this.guiGridColumnComponent&&this.guiGridColumnComponent.toArray().length>0&&(this.columnsConfig=this.gridColumnConverter.convert(this.guiGridColumnComponent.toArray()))}onPageChange(i){this.pageChanged.emit(i)}onPageSizeChange(i){this.pageSizeChanged.emit(i)}onItemSelect(i){this.itemsSelected.emit(i)}onRowsSelect(i){let t=i.map(r=>({index:r.getIndex(),source:r.getItem(),itemId:r.getItemId()}));this.selectedRows.emit(t)}onColumnsChange(){this.columnsChanged.emit()}onContainerWidthChange(i){this.containerWidthChanged.emit(i)}onSourceEdit(i){this.sourceEdited.emit(i)}onCellEditEnter(){this.cellEditEntered.emit()}onCellEditSubmit(){this.cellEditSubmitted.emit()}onCellEditCancel(){this.cellEditCanceled.emit()}onSearchPhrase(i){this.searchPhraseChanged.emit(i)}onTheme(i){this.themeChanged.emit(this.gridThemeConverter.convertToGuiTheme(i))}onHorizontalGrid(i){this.horizontalGridChanged.emit(i)}onVerticalGrid(i){this.verticalGridChanged.emit(i)}onRowColoring(i){this.rowColoringChanged.emit(this.gridRowColoringConverter.convertToGuiRowColoring(i))}static \u0275fac=function(t){return new(t||n)};static \u0275dir=G({type:n,contentQueries:function(t,r,o){if(t&1&&Zt(o,xI,4),t&2){let s;V(s=B())&&(r.guiGridColumnComponent=s)}},inputs:{columnHeaderTop:"columnHeaderTop",columnHeaderBottom:"columnHeaderBottom",maxHeight:"maxHeight",width:"width",rowHeight:"rowHeight",autoResizeWidth:"autoResizeWidth",source:"source",columns:"columns",paging:"paging",verticalGrid:"verticalGrid",horizontalGrid:"horizontalGrid",theme:"theme",rowColoring:"rowColoring",rowSelection:"rowSelection",rowStyle:"rowStyle",rowClass:"rowClass",loading:"loading",virtualScroll:"virtualScroll",sorting:"sorting",searching:"searching",titlePanel:"titlePanel",footerPanel:"footerPanel",filtering:"filtering",quickFilters:"quickFilters",editMode:"editMode",cellEditing:"cellEditing",infoPanel:"infoPanel",summaries:"summaries",columnMenu:"columnMenu",rowDetail:"rowDetail",localization:"localization"},outputs:{pageChanged:"pageChanged",pageSizeChanged:"pageSizeChanged",itemsSelected:"itemsSelected",selectedRows:"selectedRows",columnsChanged:"columnsChanged",containerWidthChanged:"containerWidthChanged",sourceEdited:"sourceEdited",cellEditEntered:"cellEditEntered",cellEditCanceled:"cellEditCanceled",cellEditSubmitted:"cellEditSubmitted",searchPhraseChanged:"searchPhraseChanged",themeChanged:"themeChanged",horizontalGridChanged:"horizontalGridChanged",verticalGridChanged:"verticalGridChanged",rowColoringChanged:"rowColoringChanged"},features:[re]})}return n})(),AT=new Z("StructureParentComponent"),Uc=class{index;itemId;item;constructor(e,i,t){this.item=e,this.index=i,this.itemId=t}getItem(){return this.item}getIndex(){return this.index}getItemId(){return this.itemId}},Ry=class{structureId;compositionId;schemaId;formationCommandInvoker;formationWarehouse;compositionCommandInvoker;compositionWarehouse;filterIntegration;sourceCommandInvoker;searchCommandInvoker;gridThemeCommandInvoker;structureCommandInvoker;summariesCommandInvoker;sortingCommandInvoker;pagingCommandInvoker;constructor(e,i,t,r,o,s,a,u,b,y,I,N,K,de,fe){this.structureId=e,this.compositionId=i,this.schemaId=t,this.formationCommandInvoker=r,this.formationWarehouse=o,this.compositionCommandInvoker=s,this.compositionWarehouse=a,this.filterIntegration=u,this.sourceCommandInvoker=b,this.searchCommandInvoker=y,this.gridThemeCommandInvoker=I,this.structureCommandInvoker=N,this.summariesCommandInvoker=K,this.sortingCommandInvoker=de,this.pagingCommandInvoker=fe}provide(){let e=this.structureId,i=this.compositionId,t=this.schemaId,r=this.formationCommandInvoker,o=this.formationWarehouse,s=this.compositionCommandInvoker,a=this.compositionWarehouse,u=this.filterIntegration,b=this.sourceCommandInvoker,y=this.searchCommandInvoker,I=this.gridThemeCommandInvoker,N=this.structureCommandInvoker,K=this.summariesCommandInvoker,de=this.sortingCommandInvoker,fe=this.pagingCommandInvoker;return{setSource(W){b.setOrigin(W,e)},showLoading(){b.setLoading(!0,e)},hideLoading(){b.setLoading(!1,e)},deleteRow(W){b.deleteRow(new Uc(W.source,W.index,W.itemId),e)},deleteRows(W){let ge=W.map(Ve=>new Uc(Ve.source,Ve.index,Ve.itemId));b.deleteRows(ge,e)},deleteSelectedRows(){},getSelectedRows(){return o.findSelectedRows(e).getValueOrNullOrThrowError().map(ge=>({source:ge.getItem(),index:ge.getIndex(),itemId:ge.getItemId()}))},selectAll(){r.selectAll(e)},unselectAll(){r.unselectAll(e)},getColumns(){let W=[];return a.onTemplateColumns(i).subscribe(ge=>{W=ge}),W},getFilters(){let W=u.findFilters(i,e),ge={};return Object.keys(W).forEach(Ve=>{ge[Ve]=W[Ve].map(Vt=>({columnName:Vt.columnName,filterId:Vt.filterId,filterType:Vt.type,value:Vt.value}))}),ge},getFiltersForColumn(W){return[]},getFilterTypes(){return[]},getFilterTypesForColumn(W){return u.findFilterTypes(W,i,e)},removeAll(){},removeFilter(W){},removeFiltersFromColumn(W){},filter(W,ge,Ve){u.filter(W,ge,Ve,i,e)},enablePaging(){fe.enable(e)},disablePaging(){fe.disable(e)},nextPage(){fe.nextPage(e)},prevPage(){fe.prevPage(e)},changePageSize(W){fe.changePageSize(W,e)},setPagingConfig(W){fe.setPaging(W,e)},setSearchingConfig(W){y.setSearchingConfig(W,e)},search(W){y.search(W,e)},clearSearchPhrase(){y.search("",e)},scrollToTop(){N.scrollToTop(e)},scrollToBottom(){N.scrollToBottom(e)},scrollToRowByIndex(W){N.scrollToIndex(W,e)},setTheme(W){I.setTheme(W,t,e)},setVerticalGrid(W){I.setVerticalGrid(W,t)},setHorizontalGrid(W){I.setHorizontalGrid(W,t)},setRowColoring(W){I.setRowColoring(W,t)},enableVirtualScroll(){N.enableVirtualScroll(e)},disableVirtualScroll(){N.disableVirtualScroll(e)},enableSummaries(){K.setSummariesEnabled(!0,e)},disableSummaries(){K.setSummariesEnabled(!1,e)},setSortConfig(W){de.setSortingConfig(W,e)}}}},Ay=class{schemaCommandInvoker;gridThemeConverter;gridRowColoringConverter;constructor(e,i,t){this.schemaCommandInvoker=e,this.gridThemeConverter=i,this.gridRowColoringConverter=t}setTheme(e,i,t){let r=this.gridThemeConverter.convert(e);this.schemaCommandInvoker.setTheme(r,i,t)}setRowColoring(e,i){let t=this.gridRowColoringConverter.convert(e);this.schemaCommandInvoker.setRowColoring(t,i)}setVerticalGrid(e,i){this.schemaCommandInvoker.setVerticalGrid(e,i)}setHorizontalGrid(e,i){this.schemaCommandInvoker.setHorizontalGrid(e,i)}},uu=class{hostElement;constructor(e){this.hostElement=e}getElement(e){return this.createModifier(e)}getHost(){if(!this.hostElement)throw new Error("Missing host element in DomRenderer constructor.");return this.createModifier(this.hostElement)}},uh=(()=>{class n extends uu{htmlElement;constructor(i){super(i),this.htmlElement=i}createModifier(i){return new n.ClassModifier(i)}static ClassModifier=class{htmlElement;constructor(i){this.htmlElement=i}add(...i){this.addClassToDomElement(this.htmlElement,i)}remove(...i){this.removeClassFromDomElement(this.htmlElement,i)}clear(){this.htmlElement.removeAttribute("class")}addClassToDomElement(i,t){for(let r=0;r<t.length;r++)i.classList.add(t[r])}removeClassFromDomElement(i,t){for(let r=0;r<t.length;r++)i.classList.remove(t[r])}}}return n})(),Z5=(()=>{class n extends uu{htmlElement;static AttributeModifier=class{htmlElement;constructor(i){this.htmlElement=i}setAttribute(i,t){this.htmlElement.setAttribute(i,t)}removeAttribute(i){this.htmlElement.removeAttribute(i)}};constructor(i){super(i),this.htmlElement=i}createModifier(i){return new n.AttributeModifier(i)}}return n})(),Np=class extends du{enabled;constructor(e){super(),this.enabled=e}withEnabled(e){return this.enabled=e,this}buildObject(){return new Fy(this.enabled)}},J5=(()=>{class n extends Np{static defaultEnabled=!0;constructor(){super(n.defaultEnabled)}}return n})(),Fy=(()=>{class n{static Builder=Np;static DefaultBuilder=J5;enabled;constructor(i){this.enabled=i}isEnabled(){return this.enabled}}return n})(),jp=class extends du{headerEnabled;bottomPaging;topPaging;border=!0;constructor(e,i,t){super(),this.headerEnabled=e,this.bottomPaging=i,this.topPaging=t}withHeader(e){return this.headerEnabled=e,this}withBottomPaging(e){return this.bottomPaging=e,this}withTopPaging(e){return this.topPaging=e,this}withBorder(e){return this.border=e,this}buildObject(){return new _a(this.headerEnabled,this.bottomPaging,this.topPaging,this.border)}},Py=class n extends jp{static defaultHeaderEnabled=!0;static defaultBottomPaging=new Fy.DefaultBuilder().build();static defaultTopPaging=new Fy.DefaultBuilder().build();constructor(){super(n.defaultHeaderEnabled,n.defaultBottomPaging,n.defaultTopPaging)}},_a=(()=>{class n{static Builder=jp;static DefaultBuilder=Py;headerEnabled;bottomPaging;topPaging;border;constructor(i,t,r,o){this.headerEnabled=i,this.bottomPaging=t,this.topPaging=r,this.border=o}isHeaderEnabled(){return this.headerEnabled}isBorderEnabled(){return this.border}getBottomPaging(){return this.bottomPaging}getTopPaging(){return this.topPaging}}return n})(),ez=new _a.DefaultBuilder().build(),FT=(()=>{class n{gridMap=new Map;register(i,t,r){this.gridMap.set(i,{component:t,structureId:r})}unregister(i){this.gridMap.delete(i)}getValues(i){return this.gridMap.get(i)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),Ys=class{generateId(){return ZD.generate()}},di=class{constructor(){}},$i=class{constructor(){}},On=class{constructor(){}},Gi=class{constructor(){}},Er=class{constructor(){}},Qs=class extends Xr{id;constructor(e){super(e),this.id=e}getId(){return this.id}equals(e){return e.toString()===this.id}toString(){return this.id}},nr=class{constructor(){}},xb=(()=>{class n{compositionWarehouse;filterCommandInvoker;filterWarehouse;constructor(i,t,r){this.compositionWarehouse=i,this.filterCommandInvoker=t,this.filterWarehouse=r}static services=[Gi,nr,Er];findFilterTypes(i,t,r){let o=[];return this.compositionWarehouse.onTemplateColumns(t).pipe(te(s=>s.find(a=>a.getName()===i)),He(s=>s!==void 0),Ls(1),cn(s=>this.filterWarehouse.onFilterTypesForFieldId(new Qs(s.columnFieldId.getId()),r))).subscribe(s=>{o=s.map(a=>a.getName())}),o}findFilters(i,t){let r=this.filterWarehouse.findFilters(t).getValueOrNullOrThrowError(),o=this.compositionWarehouse.findColumnNames(i),s={};for(let a=0;a<o.length;a+=1)s[o[a]]=r.filter(u=>u.getFieldName()===o[a]).map(u=>({columnName:u.getFieldName(),filterId:u.getFilterId().toString(),type:u.getFilterTypeName(),value:u.getValue()}));return s}filter(i,t,r,o,s){this.compositionWarehouse.onTemplateColumns(o).pipe(te(a=>a.find(u=>u.getName()===i)),He(a=>a!==void 0),Ls(1),cn(a=>this.filterWarehouse.onceFilterTypeId(new Qs(a.columnFieldId.getId()),t,s).pipe(te(u=>({fieldId:new Qs(a.columnFieldId.getId()),filterTypeId:u}))))).subscribe(a=>{let{fieldId:u,filterTypeId:b}=a;b.ifPresent(y=>{this.filterCommandInvoker.add(u,y,r,s)})})}}return n})(),dn=class{constructor(){}},un=class{constructor(){}},Wi=class{constructor(){}},qi=class{constructor(){}},Wo=class{constructor(){}},hn=class{constructor(){}},Yi=class{constructor(){}},Oy=class extends Ps{constructor(e){super(e)}toAggregateId(){return new Ie(this.toString())}},Ie=class extends Fs{constructor(e){super(e)}toReadModelRootId(){return new Oy(this.getId())}},Ny=class extends Ps{constructor(e){super(e)}toAggregateId(){return new Nt(this.toString())}},Nt=class extends Fs{constructor(e){super(e)}toReadModelRootId(){return new Ny(this.getId())}},It=function(n){return n[n.NONE=0]="NONE",n[n.EVEN=1]="EVEN",n[n.ODD=2]="ODD",n}(It||{}),mn=class{},xT=(()=>{class n extends ci{schemaReadModelRepository;static VERTICAL_GRID_CLASS_NAME="gui-vertical-grid";static HORIZONTAL_GRID_CLASS_NAME="gui-horizontal-grid";static THEME_FABRIC_CLASS_NAME="gui-fabric";static THEME_MATERIAL_CLASS_NAME="gui-material";static THEME_LIGHT_CLASS_NAME="gui-light";static THEME_DARK_CLASS_NAME="gui-dark";static THEME_GENERIC_CLASS_NAME="gui-generic";static ROW_COLORING_ODD="gui-rows-odd";static ROW_COLORING_EVEN="gui-rows-even";classModifier;cssClass=null;cssHostRef;constructor(i){super(),this.schemaReadModelRepository=i,this.classModifier=new uh}init(i,t){this.cssHostRef=i,this.schemaReadModelRepository.onCssClasses(t).pipe(this.hermesTakeUntil()).subscribe(r=>{let o=this.updateState(r);this.renderCssClasses(o)})}updateState(i){if(this.cssClass){let t={};return Object.keys(this.cssClass).forEach(r=>{i[r]!==this.cssClass[r]&&(t[r]=i[r])}),this.cssClass=i,t}else return this.cssClass=i,this.cssClass}renderCssClasses(i){i.hasOwnProperty("verticalGrid")&&this.toggleCssClass(i.verticalGrid,n.VERTICAL_GRID_CLASS_NAME),i.hasOwnProperty("horizontalGrid")&&this.toggleCssClass(i.horizontalGrid,n.HORIZONTAL_GRID_CLASS_NAME),i.hasOwnProperty("theme")&&(this.removeThemeCssClasses(),this.addClass(this.resolveThemeClassName(i.theme))),i.hasOwnProperty("rowColoring")&&(this.removeRowColoringClasses(),this.addClass(this.resolveRowColoringClassName(i.rowColoring)))}toggleCssClass(i,t){i?this.addClass(t):this.removeClass(t)}removeThemeCssClasses(){Object.keys(me).map(i=>me[i]).map(i=>this.resolveThemeClassName(i)).filter(i=>!!i).forEach(i=>{this.removeClass(i)})}resolveThemeClassName(i){switch(i){case me.FABRIC:case me[me.FABRIC]:return n.THEME_FABRIC_CLASS_NAME;case me.MATERIAL:case me[me.MATERIAL]:return n.THEME_MATERIAL_CLASS_NAME;case me.LIGHT:case me[me.LIGHT]:return n.THEME_LIGHT_CLASS_NAME;case me.DARK:case me[me.DARK]:return n.THEME_DARK_CLASS_NAME;case me.GENERIC:case me[me.GENERIC]:return n.THEME_GENERIC_CLASS_NAME;default:return n.THEME_FABRIC_CLASS_NAME}}resolveRowColoringClassName(i){switch(i){case It.ODD:case It[It.ODD]:return n.ROW_COLORING_ODD;case It.EVEN:case It[It.EVEN]:return n.ROW_COLORING_EVEN;default:return null}}removeRowColoringClasses(){Object.keys(It).map(i=>It[i]).map(i=>this.resolveRowColoringClassName(i)).filter(i=>!!i).forEach(i=>{this.removeClass(i)})}addClass(i){i&&this.classModifier.getElement(this.cssHostRef.nativeElement).add(i)}removeClass(i){i&&this.classModifier.getElement(this.cssHostRef.nativeElement).remove(i)}static \u0275fac=function(t){return new(t||n)(w(mn))};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),Lp=(()=>{class n extends an{constructor(){super()}static \u0275fac=function(t){return new(t||n)};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),Vp=(()=>{class n extends an{constructor(){super()}static \u0275fac=function(t){return new(t||n)};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),Bp=class{enabled=!1;infoDialog=!0;columnsManager=!0;schemaManager=!0;sourceSize=!0;constructor(e,i,t,r,o){this.isNotUndefinedOrNull(e)&&(this.enabled=e),this.isNotUndefinedOrNull(i)&&(this.infoDialog=i),this.isNotUndefinedOrNull(t)&&(this.columnsManager=t),this.isNotUndefinedOrNull(o)&&(this.sourceSize=o),this.isNotUndefinedOrNull(r)&&(this.schemaManager=r)}isEnabled(){return this.enabled}isInfoDialogEnabled(){return this.infoDialog}isColumnsManagerEnabled(){return this.columnsManager}isSourceSizeEnabled(){return this.sourceSize}isSchemaManagerEnabled(){return this.schemaManager}isNotUndefinedOrNull(e){return e!=null}},qo=class extends an{constructor(){super(new Bp)}},tz=new Z("StructureComponentToken"),ya=(()=>{class n{innerElementRef;innerClassModifier;constructor(i){this.innerElementRef=i,this.initClassModifier(),this.addHostClass()}addClassToHost(i){this.innerClassModifier.getHost().add(i)}removeClassFromHost(i){this.innerClassModifier.getHost().remove(i)}hasChanged(i){return i!==void 0&&i.currentValue!==void 0}ifChanged(i,t){this.hasChanged(i)&&t()}initClassModifier(){this.innerClassModifier=new uh(this.innerElementRef.nativeElement)}addHostClass(){this.innerClassModifier.getHost().add(this.getSelectorName())}static \u0275fac=function(t){return new(t||n)(l(S))};static \u0275dir=G({type:n})}return n})(),Et=(()=>{class n extends ya{detector;viewInDom=!1;unsubscribe$=new Rt;constructor(i,t){super(t),this.detector=i}ngAfterViewInit(){this.viewInDom=!0}ngOnDestroy(){this.unsubscribe()}reRender(){this.isViewInDom()&&this.detector.detectChanges()}isViewInDom(){return this.viewInDom}subscribe(i,t){i.pipe(this.takeUntil()).subscribe(r=>{t(r),this.reRender()})}subscribeWithoutRender(i,t){i.pipe(this.takeUntil()).subscribe(r=>{t(r)})}subscribeAndEmit(i,t,r=o=>o){i.pipe(this.takeUntil()).subscribe(o=>{t.emit(r(o))})}unsubscribe(){this.unsubscribe$.next(),this.unsubscribe$.complete()}takeUntil(){return Hi(this.unsubscribe$)}static \u0275fac=function(t){return new(t||n)(l(ee),l(S))};static \u0275dir=G({type:n,features:[R]})}return n})(),Ks=function(n){return n[n.ENTER=0]="ENTER",n[n.SUBMIT=1]="SUBMIT",n[n.CANCEL=2]="CANCEL",n}(Ks||{}),Ee=class extends Po{},hu=class extends Ee{fieldConfigs;constructor(e,i){super(e,"InitFieldsCommand"),this.fieldConfigs=i}getFieldConfigs(){return this.fieldConfigs}},Re=class extends Kr{},$c=class extends Re{fieldConfigs;fields;constructor(e,i,t){super(e,{fieldConfigs:i,fields:t},"FieldsInitedEvent"),this.fieldConfigs=i,this.fields=t}getFields(){return this.fields}},mu=class{id;constructor(e){this.id=e}getId(){return this.id}},jy=class{column;field;constructor(e,i){this.column=e,this.field=i}getColumn(){return this.column}getField(){return this.field}},Ly=class{structureId;compositionId;columnFieldFactory;columnAutoConfigurator;compositionCommandInvoker;commandDispatcher=L.resolve(ti);domainEventBus=L.resolve(Dn);columns;constructor(e,i,t,r,o){this.structureId=e,this.compositionId=i,this.columnFieldFactory=t,this.columnAutoConfigurator=r,this.compositionCommandInvoker=o}handle(e){let i=[];if(e.columns!==void 0&&e.columns.currentValue!==void 0)i=e.columns.currentValue,this.columns=i;else if(this.columns===void 0&&e.source!==void 0&&e.source!==null)i=this.columnAutoConfigurator.configure(e.source.currentValue),this.columns=i;else return;this.compositionCommandInvoker.setGroups(i,this.compositionId);let{columns:t,groups:r}=this.getConfigs(i),o=this.getFieldConfigs(t),s=new hu(this.structureId,o);this.domainEventBus.ofEvents([$c]).pipe(He(a=>a.getAggregateId().toString()===this.structureId.toString()),Ls(1)).subscribe(a=>{let u=a.getFields(),b=this.convertColumnFieldIds(u),y=this.convertColumns(t,u,b);this.compositionCommandInvoker.setColumns(y,this.compositionId)}),this.commandDispatcher.dispatch(s)}getConfigs(e){let i=[],t=[];for(let r=0;r<e.length;r+=1){let o=e[r];o.columns!==void 0?(t.push(o),i=i.concat(o.columns)):i.push(o)}return{columns:i,groups:t}}getFieldConfigs(e){return e.map(i=>({field:i.field,type:i.type,matcher:i.matcher,summaries:i.summaries,sorting:i.sorting}))}convertColumnFieldIds(e){return e?e.map(i=>new mu(i.getId().getId())):[]}convertColumns(e,i,t){return e?e.map((r,o)=>{let s=t[o],a=i[o],u=this.columnFieldFactory.create(s,a.getAccessorMethod(),a.getDataType(),a.getSearchAccessorMethod());return new jy(r,u)}):[]}},Yo=class{},Vy=class extends Fs{constructor(e){super(e)}toReadModelRootId(){return new qt(this.getId())}},qt=class extends Ps{constructor(e){super(e)}toAggregateId(){return new Vy(this.getId())}},kr=class extends xr{},By=class{after;before;constructor(e,i){this.after=e,this.before=i}},pu=class extends Re{beforeItem;afterItem;constructor(e,i,t){super(e,{beforeItem:i,afterItem:t},"StructureSourceItemEditedEvent"),this.beforeItem=i,this.afterItem=t}getBeforeItem(){return this.beforeItem}getAfterItem(){return this.afterItem}},Js=class{domainEventBus=L.resolve(Dn);onSourceEdited(e){return this.domainEventBus.ofEvents([pu]).pipe(He(i=>i.getAggregateId().toString()===e.toString()),te(i=>{let t=i.getAfterItem().getSourceItem(),r=i.getBeforeItem().getSourceItem();return new By(t,r)}))}},Qo=class extends xr{},pn=class{constructor(){}},gu=class extends Re{selectedRows;allSelected;allUnselected;constructor(e,i,t,r){super(e,{selectedRows:i,allSelected:t,allUnselected:r},"SelectedRowChangedEvent"),this.selectedRows=i,this.allSelected=t,this.allUnselected=r}getSelectedRows(){return this.selectedRows}isAllSelected(){return this.allSelected}isAllUnselected(){return this.allUnselected}},Jo=(()=>{class n extends xr{sourceWarehouse;domainEventBusTOREMOVE;map=new Map;subject$=new Rt;constructor(i,t){super(),this.sourceWarehouse=i,this.domainEventBusTOREMOVE=t,this.domainEventBusTOREMOVE.ofEvents([gu]).pipe(cn(r=>{let o=r.getSelectedRows(),s=r.getAggregateId();return this.sourceWarehouse.onPreparedItems(s).pipe(Ls(1),te(a=>{let u=[],b=a.length,y=new Map;for(let I=0;I<b;I+=1)y.set(a[I].getId().toString(),a[I]);for(let I=0;I<o.length;I+=1){let N=y.get(o[I]);u.push(new Uc(N.getSourceItem(),I,N.getId()))}return{id:s,items:u}}))})).subscribe(r=>{this.map.set(r.id.toString(),r.items),this.subject$.next(this.map)})}static services=[pn,Dn];onItemSelected(i){return this.subject$.toObservable().pipe(He(t=>t.has(i.toString())),te(t=>t.get(i.toString())))}}return n})(),zp=class{enabled=!1;rowEdit=()=>!0;cellEdit=()=>!0;constructor(e){e.enabled!==void 0&&(this.enabled=e.enabled),e.rowEdit!==void 0&&(this.rowEdit=e.rowEdit),e.cellEdit!==void 0&&(this.cellEdit=e.cellEdit)}isEnabled(e,i,t){return this.enabled&&this.rowEdit(e,i,t)&&this.cellEdit(e,i,t)}},so=class n extends tt{static default=new zp({enabled:!1});constructor(){super(n.default)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=D({token:n,factory:n.\u0275fac})},fu=class{convert(e){let i,t,r,o;return e.infoDialog!==void 0&&(i=e.infoDialog),e.columnsManager!==void 0&&(t=e.columnsManager),e.schemaManager!==void 0&&(o=e.schemaManager),e.sourceSize!==void 0&&(r=e.sourceSize),new Bp(e.enabled,i,t,o,r)}},Hp=(()=>{class n{structureInfoPanelConfigConverter;structureInfoPanelArchive;constructor(i,t){this.structureInfoPanelConfigConverter=i,this.structureInfoPanelArchive=t}static services=[fu,qo];set(i){let t=this.structureInfoPanelConfigConverter.convert(i);this.structureInfoPanelArchive.next(t)}static \u0275fac=function(t){return new(t||n)(w(fu),w(qo))};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),zy=class{fieldId;accessor;searchAccessor;dataType;constructor(e,i,t,r){this.fieldId=e,this.accessor=i,this.dataType=t,this.searchAccessor=r}getId(){return this.fieldId}getValue(e){return this.accessor(e)}getAccessor(){return this.accessor}getSearchAccessor(){return this.searchAccessor}getDataType(){return this.dataType}},ea=class{create(e,i,t,r){return new zy(e,i,t,r)}},Sr=class extends xr{constructor(){super()}},bu=(()=>{class n extends an{constructor(){super(!1)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),Dr=class extends xr{constructor(){super()}},rr=class{},al=(()=>{class n extends tt{static default=!1;constructor(){super(n.default)}on(i){return super.on(i).pipe(He(t=>t))}once(i){return Vs(this.on(i))}}return n})(),iz=(()=>{class n extends Et{changeDetectorRef;columnAutoConfigurator;structureId;compositionId;schemaId;structureCommandInvoker;structurePagingCommandDispatcher;pagingEventRepository;sortingCommandInvoker;searchCommandInvoker;sourceCommandService;sourceEventService;schemaCommandInvoker;compositionCommandDispatcher;compositionEventRepository;formationEventService;structureEditModeArchive;structureCellEditArchive;structureInfoPanelConfigService;structureCellEditStore;columnFieldFactory;formationCommandDispatcher;searchEventRepository;structureHeaderBottomEnabledArchive;schemaEventRepository;translationService;structureInitialValuesReadyArchive;maxHeight;width;rowHeight;autoResizeWidth;source=[];columns;editMode;cellEditing;theme;themeChanged=new Q;columnsChanged=new Q;containerWidthChanged=new Q;sourceEdited=new Q;cellEditEntered=new Q;cellEditCanceled=new Q;cellEditSubmitted=new Q;structureColumnInputHandler;changeAfterInit=!1;constructor(i,t,r,o,s,a,u,b,y,I,N,K,de,fe,W,ge,Ve,Vt,vt,zn,fn,Hn,sr,bl,vl,_h,yh,wh){super(i,t),this.changeDetectorRef=i,this.columnAutoConfigurator=r,this.structureId=o,this.compositionId=s,this.schemaId=a,this.structureCommandInvoker=u,this.structurePagingCommandDispatcher=b,this.pagingEventRepository=y,this.sortingCommandInvoker=I,this.searchCommandInvoker=N,this.sourceCommandService=K,this.sourceEventService=de,this.schemaCommandInvoker=fe,this.compositionCommandDispatcher=W,this.compositionEventRepository=ge,this.formationEventService=Ve,this.structureEditModeArchive=Vt,this.structureCellEditArchive=vt,this.structureInfoPanelConfigService=zn,this.structureCellEditStore=fn,this.columnFieldFactory=Hn,this.formationCommandDispatcher=sr,this.searchEventRepository=bl,this.structureHeaderBottomEnabledArchive=vl,this.schemaEventRepository=_h,this.translationService=yh,this.structureInitialValuesReadyArchive=wh,this.structureColumnInputHandler=new Ly(o,s,Hn,r,W),this.translationService.setDefaultTranslation()}ngOnChanges(i){ot(i.editMode,()=>{this.structureEditModeArchive.next(this.editMode)}),ot(i.cellEditing,()=>{let t;typeof this.cellEditing=="boolean"?t={enabled:this.cellEditing}:t=this.cellEditing,this.structureCommandInvoker.setCellEdit(t,this.structureId)}),ot(i.width,t=>{this.compositionCommandDispatcher.setWidth(t,this.compositionId)}),ot(i.theme,()=>{this.schemaCommandInvoker.setTheme(this.theme,this.schemaId,this.structureId)}),ot(i.rowHeight,()=>{this.structureCommandInvoker.setRowHeight(this.rowHeight,this.structureId)}),ot(i.autoResizeWidth,()=>{this.compositionCommandDispatcher.setResizeWidth(this.autoResizeWidth,this.compositionId)}),this.structureColumnInputHandler.handle(i),ot(i.maxHeight,()=>{this.structureCommandInvoker.setContainerHeight(this.maxHeight,this.structureId)}),ot(i.source,()=>{this.sourceCommandService.setOrigin(this.source,this.structureId)})}ngOnInit(){this.compositionEventRepository.onColumnsChanged(this.compositionId.toReadModelRootId()).pipe(this.takeUntil()).subscribe(()=>{this.columnsChanged.emit()}),this.compositionEventRepository.onContainerWidthChanged(this.compositionId.toReadModelRootId()).pipe(this.takeUntil()).subscribe(i=>{this.containerWidthChanged.emit(i)}),this.sourceEventService.onSourceEdited(this.structureId).subscribe(i=>{this.sourceEdited.emit(i)}),this.structureCellEditStore.on().pipe(this.takeUntil()).subscribe(i=>{switch(i){case Ks.ENTER:this.cellEditEntered.emit();break;case Ks.SUBMIT:this.cellEditSubmitted.emit();break;case Ks.CANCEL:this.cellEditCanceled.emit();break;default:break}}),this.subscribeAndEmit(this.schemaEventRepository.onThemeChanged(this.schemaId),this.themeChanged),this.componentInitialized()}componentInitialized(){this.changeAfterInit=!0}static \u0275fac=function(t){return new(t||n)(l(ee),l(S),l(Yo),l(Ie),l(Nt),l(qt),l(qi),l(Yi),l(kr),l(hn),l(un),l(dn),l(Js),l(Wi),l(On),l(Qo),l(Jo),l(Vp),l(so),l(Hp),l(Lp),l(ea),l(di),l(Sr),l(bu),l(Dr),l(rr),l(al))};static \u0275dir=G({type:n,inputs:{maxHeight:"maxHeight",width:"width",rowHeight:"rowHeight",autoResizeWidth:"autoResizeWidth",source:"source",columns:"columns",editMode:"editMode",cellEditing:"cellEditing",theme:"theme"},outputs:{themeChanged:"themeChanged",columnsChanged:"columnsChanged",containerWidthChanged:"containerWidthChanged",sourceEdited:"sourceEdited",cellEditEntered:"cellEditEntered",cellEditCanceled:"cellEditCanceled",cellEditSubmitted:"cellEditSubmitted"},features:[R,re]})}return n})(),Up=class n{enabled;sort;filter;columnsManager;mainMenu="Menu";filterMenu="Filter";columnsMenu="Columns";constructor(e=!1,i=!0,t=!1,r=!1){this.enabled=e,this.sort=i,this.filter=t,this.columnsManager=r}static default(){return new n}static fromConfig(e){return new n(e.enabled,e.sort,e.filter,e.columnsManager)}isEnabled(){return this.enabled&&(this.sort||this.filter||this.columnsManager)}isMainEnabled(){return this.sort}isSortingEnabled(){return this.sort}isFilteringEnabled(){return this.filter}isColumnManagerEnabled(){return this.columnsManager}getMenus(){let e=[];return this.isMainEnabled()&&e.push(this.getMainMenu()),this.isFilteringEnabled()&&e.push(this.getFilterMenu()),this.isColumnManagerEnabled()&&e.push(this.getColumnMenu()),e}getActiveMenu(){return this.getMenus()[0]}getMainMenu(){return this.mainMenu}getFilterMenu(){return this.filterMenu}getColumnMenu(){return this.columnsMenu}setMainMenu(e){this.mainMenu=e}setFilterMenu(e){this.filterMenu=e}setColumnsMenu(e){this.columnsMenu=e}},vu=(()=>{class n extends an{constructor(){super(Up.default())}nextConfig(i){let t=Up.fromConfig(i);this.next(t)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),PT=(()=>{class n{closeAll$=new Rt;closeAll(){this.closeAll$.next()}onCloseAll(){return this.closeAll$.toObservable()}static \u0275fac=function(t){return new(t||n)};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),CI=(()=>{class n extends an{constructor(){super(!0)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),$p=(()=>{class n extends an{constructor(){super({enabled:!1,template:i=>"Detail View"})}static \u0275fac=function(t){return new(t||n)};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),OT=new Z("structureRowDetailViewItem"),NT=new Z("structureRowDetailViewTemplate"),jT=(()=>{class n extends ya{subClassConstructor;constructor(i){super(i),this.subClassConstructor=this.constructor,this.hasInputs()&&this.throwError("it cannot have properties annotated with @Inputs().")}hasInputs(){return!this.isEmpty(this.constructor.\u0275cmp.inputs)}throwError(i){throw new Error(`Component "${this.subClassConstructor.name}" is a DynamicallyCreatedComponent, ${i}.`)}isEmpty(i){for(let t in i)if(i.hasOwnProperty(t))return!1;return!0}static \u0275fac=function(t){return new(t||n)(l(S))};static \u0275dir=G({type:n,features:[R]})}return n})(),nz=(()=>{class n extends jT{item;template;sanitizer;selectedRowValue;safeHTML;constructor(i,t,r,o){super(i),this.item=t,this.template=r,this.sanitizer=o,this.safeHTML=this.sanitizer.bypassSecurityTrustHtml(this.template(this.item.getItem(),this.item.getIndex())),this.selectedRowValue=this.item.getItem()}getSelectorName(){return"gui-row-detail"}static \u0275fac=function(t){return new(t||n)(l(S),l(OT),l(NT),l(Io))};static \u0275cmp=k({type:n,selectors:[["div","gui-row-detail",""]],features:[R],attrs:dV,decls:1,vars:1,consts:[[3,"innerHTML"]],template:function(t,r){t&1&&C(0,"div",0),t&2&&g("innerHTML",r.safeHTML,hs)},encapsulation:2,changeDetection:0})}return n})(),CT=(()=>{class n extends ci{injector;structureId;structureDetailViewConfigArchive;formationEventService;drawerService;enabled=!1;config;elementRef;constructor(i,t,r,o,s){super(),this.injector=i,this.structureId=t,this.structureDetailViewConfigArchive=r,this.formationEventService=o,this.drawerService=s}init(i){this.elementRef=i,this.structureDetailViewConfigArchive.on().pipe(this.hermesTakeUntil()).subscribe(t=>{this.config=t,t.enabled===!0?this.turnOn():t.enabled===!1&&this.turnOff()}),this.formationEventService.onItemSelected(this.structureId).pipe(this.hermesTakeUntil()).subscribe(t=>{if(!this.enabled||(this.drawerService.close(),t.length===0))return;let r=t[0],o=ye.create({parent:this.injector,providers:[{provide:OT,useValue:r},{provide:NT,useValue:this.config.template}]});this.drawerService.open({appendToElement:this.elementRef,component:nz,injector:o})})}turnOn(){this.enabled=!0}turnOff(){this.enabled=!1}static \u0275fac=function(t){return new(t||n)(w(ye),w(Ie),w($p),w(Jo),w(Tp))};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),Pp=function(n){return n[n.TOP=0]="TOP",n[n.BOTTOM=1]="BOTTOM",n}(Pp||{}),Ws=function(n){return n.SELECTED="selected",n.PAGING_TOP_CLASS_NAME="gui-paging-top",n.PAGING_BOTTOM_CLASS_NAME="gui-paging-bottom",n}(Ws||{}),jt=(()=>{class n{state={};state$=new zi;destroy$=new zi;ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setValue(i){this.state=Object.assign({},this.state,i),this.state$.next(this.state)}getValue(i){return i!==void 0?this.state[i]:this.state}select(i){let t=this.state$;return i!==void 0&&(t=this.state$.pipe(te(r=>r[i]))),t.pipe(Tn())}connect(i,t){typeof i=="string"?t.pipe(Hi(this.destroy$)).subscribe(r=>{this.setPartialState(i,r)}):i.pipe(Hi(this.destroy$)).subscribe(r=>{this.setValue(r)})}setPartialState(i,t){let r={};r[i]=t,this.state=Object.assign({},this.state,r),this.state$.next(this.state)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),Gp=class{unsubscribe$=new Rt;constructor(){}takeUntil(){return Hi(this.unsubscribe$)}unsubscribe(){this.unsubscribe$.isCompleted||(this.unsubscribe$.next(),this.unsubscribe$.complete())}},Yt=(()=>{class n{streamCloser=new Gp;hermesUnsubscribe$=new Rt;constructor(){}ngOnDestroy(){this.streamCloser.unsubscribe(),this.hermesUnsubscribe()}isDefined(i,t){return t[i]!==void 0&&t[i].currentValue!==void 0}subscribeAndEmit(i,t){i.pipe(this.hermesTakeUntil()).subscribe(r=>{t.emit(r)})}unsubscribe(){this.streamCloser.unsubscribe()}hermesUnsubscribe(){this.hermesUnsubscribe$.next(),this.hermesUnsubscribe$.complete()}hermesTakeUntil(){return Hi(this.hermesUnsubscribe$)}takeUntil(){return this.streamCloser.takeUntil()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=G({type:n})}return n})(),LT=(()=>{class n extends ya{changeDetectorRef;constructor(i,t){super(i),this.changeDetectorRef=t}ngOnInit(){this.changeDetectorRef.detach()}static \u0275fac=function(t){return new(t||n)(l(S),l(ee))};static \u0275dir=G({type:n,features:[R]})}return n})(),cl=(()=>{class n extends LT{constructor(i,t){super(i,t),this.addClassToHost("gui-icon")}static \u0275fac=function(t){return new(t||n)(l(S),l(ee))};static \u0275dir=G({type:n,features:[R]})}return n})(),oi=(()=>{class n extends ya{subClassConstructor;subClassNgOnInit;constructor(i){super(i),this.subClassConstructor=this.constructor,this.subClassNgOnInit=this.ngOnInit,this.hasConstructorOnlyElementRefInjected(arguments)||this.throwError("it should not inject services"),this.subClassNgOnInit&&this.throwError("it should not use ngOnInit")}hasConstructorOnlyElementRefInjected(i){return arguments.length>1?!1:arguments.length===1?this.isElementRef(arguments[0]):!1}isElementRef(i){return i.nativeElement!==null}throwError(i){throw new Error(`Component "${this.subClassConstructor.name}" is a PureComponent, ${i}.`)}static \u0275fac=function(t){return new(t||n)(l(S))};static \u0275dir=G({type:n,features:[R]})}return n})();var ta=class{classModifier=new uh;select(e){this.classModifier.getElement(e).add(Ws.SELECTED)}unselect(e){this.classModifier.getElement(e).remove(Ws.SELECTED)}add(e,i){this.classModifier.getElement(e).add(i)}remove(e,i){this.classModifier.getElement(e).remove(i)}toggle(e){}},ao=class{constructor(){}},Cb=(()=>{class n extends an{constructor(){super(oo.BASIC)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),Ko=class{destroy$=new zi(1);subscription;subscribe(e,i){this.subscription!==void 0&&this.subscription.unsubscribe(),this.subscription=e.pipe(Tn(),Hi(this.destroy$)).subscribe(t=>i(t),t=>this.onError(t),()=>this.onComplete())}destroy(){this.destroy$.next(),this.destroy$.complete()}onError(e){}onComplete(){}},Hy=class{cd;vcr;template;constructor(e,i,t){this.cd=e,this.vcr=i,this.template=t}onNext(e){this.vcr.clear(),this.vcr.createEmbeddedView(this.template,{$implicit:e}),this.cd.detectChanges()}},Ci=(()=>{class n{subscriber;cd;vcr;template;guiLet;guiLetViewChanger;constructor(i,t,r,o){this.subscriber=i,this.cd=t,this.vcr=r,this.template=o,this.guiLetViewChanger=new Hy(this.cd,this.vcr,this.template)}ngOnChanges(i){i.guiLet!==void 0&&this.subscriber.subscribe(this.guiLet,t=>{this.guiLetViewChanger.onNext(t)})}ngOnDestroy(){this.subscriber.destroy()}static \u0275fac=function(t){return new(t||n)(l(Ko),l(ee),l(Ot),l(Be))};static \u0275dir=G({type:n,selectors:[["","guiLet",""]],inputs:{guiLet:"guiLet"},features:[_e([Ko]),re]})}return n})(),gn=(()=>{class n{changeDetectorRef;translationService;actualTranslationValue="";subscription;constructor(i,t){this.changeDetectorRef=i,this.translationService=t}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}transform(i){return this.subscription&&this.subscription.unsubscribe(),this.subscription=this.translationService.onTranslation().subscribe(t=>{let r=t[i];r||(this.actualTranslationValue=i),this.actualTranslationValue=r,this.changeDetectorRef.markForCheck()}),this.actualTranslationValue}static \u0275fac=function(t){return new(t||n)(l(ee,16),l(rr,16))};static \u0275pipe=Al({name:"guiTranslate",type:n,pure:!1})}return n})(),rz=(()=>{class n extends oi{paging;sourceSize;nextPageChanged=new Q;prevPageChanged=new Q;prevDisabled=!1;nextDisabled=!1;constructor(i){super(i)}ngOnChanges(){this.calculatePrev(),this.calculateNext()}prevPage(){this.prevPageChanged.emit()}nextPage(){this.nextPageChanged.emit()}getSelectorName(){return"gui-paging-navigator"}calculatePrev(){this.paging&&(this.prevDisabled=this.paging.isPrevPageDisabled())}calculateNext(){!this.paging&&!this.sourceSize||(this.nextDisabled=this.paging.isNextPageDisabled())}static \u0275fac=function(t){return new(t||n)(l(S))};static \u0275cmp=k({type:n,selectors:[["div","gui-paging-navigator","","paging",""]],inputs:{paging:"paging",sourceSize:"sourceSize"},outputs:{nextPageChanged:"nextPageChanged",prevPageChanged:"prevPageChanged"},features:[R,re],attrs:uV,decls:7,vars:8,consts:[["gui-button","",1,"gui-paging-navigator-prev","gui-mr-5",3,"click","disabled"],["gui-button","",1,"gui-paging-navigator-next","gui-mr-0",3,"click","disabled"]],template:function(t,r){t&1&&(f(0,"gui-button-group")(1,"button",0),E("click",function(){return r.prevPage()}),T(2),be(3,"guiTranslate"),v(),f(4,"button",1),E("click",function(){return r.nextPage()}),T(5),be(6,"guiTranslate"),v()()),t&2&&(p(),g("disabled",r.prevDisabled),p(),we(" ",xe(3,4,"pagingPrevPage")," "),p(2),g("disabled",r.nextDisabled),p(),we(" ",xe(6,6,"pagingNextPage")," "))},dependencies:[no,dT,gn],encapsulation:2,changeDetection:0})}return n})(),oz=(()=>{class n extends oi{paging;pageSizeChanged=new Q;selectPageSizes;selectPageSize;constructor(i){super(i)}ngOnChanges(i){ot(i.paging,()=>{this.paging&&(this.selectPageSizes=this.getSelectPageSizes(),this.selectPageSize=this.getSelectPageSize(this.paging.getPageSize()))})}changePageSize(i){this.pageSizeChanged.emit(+i.value)}getSelectorName(){return"gui-paging-select"}getSelectPageSizes(){let i=[];return this.paging.getPageSizes().forEach(r=>{let o=this.getSelectPageSize(r);i.push(o)}),i}getSelectPageSize(i){return{name:i.toString(),value:i.toString()}}static \u0275fac=function(t){return new(t||n)(l(S))};static \u0275cmp=k({type:n,selectors:[["div","gui-paging-select","","paging",""]],inputs:{paging:"paging"},outputs:{pageSizeChanged:"pageSizeChanged"},features:[R,re],attrs:hV,decls:4,vars:6,consts:[[1,"gui-inline-block","gui-mr-5"],[3,"optionChanged","options","selected","width"]],template:function(t,r){t&1&&(f(0,"span",0),T(1),be(2,"guiTranslate"),v(),f(3,"gui-select",1),E("optionChanged",function(s){return r.changePageSize(s)}),v()),t&2&&(p(),we(" ",xe(2,4,"pagingItemsPerPage"),`
`),p(2),g("options",r.selectPageSizes)("selected",r.selectPageSize)("width",25))},dependencies:[Rp,gn],encapsulation:2,changeDetection:0})}return n})(),sz=(()=>{class n extends oi{paging;sourceSize;firstItemIndex;lastItemIndex;constructor(i){super(i),this.addClassToHost("gui-mx-6")}ngOnChanges(){this.calculate()}calculate(){this.paging&&(this.firstItemIndex=this.paging.getStart(),this.lastItemIndex=this.paging.getEnd(),this.sourceSize=this.paging.getSourceSize())}isSourceNotEmpty(){return this.sourceSize>0}getSelectorName(){return"gui-paging-stats"}static \u0275fac=function(t){return new(t||n)(l(S))};static \u0275cmp=k({type:n,selectors:[["div","gui-paging-stats","","paging",""]],inputs:{paging:"paging"},features:[R,re],attrs:mV,decls:3,vars:2,consts:[["noSource",""],[4,"ngIf","ngIfElse"],[1,"gui-paging-source-stats"],[1,"gui-paging-source-size"],[1,"gui-paging-source-stats","gui-paging-no-items"]],template:function(t,r){if(t&1&&j(0,pV,12,6,"ng-container",1)(1,gV,3,3,"ng-template",null,0,qe),t&2){let o=wi(2);g("ngIf",r.isSourceNotEmpty())("ngIfElse",o)}},dependencies:[rt,gn],encapsulation:2,changeDetection:0})}return n})(),az=(()=>{class n extends oi{structureId;pagingCommandInvoker;paging;sourceSize;nextPageChanged=new Q;prevPageChanged=new Q;prevDisabled=!1;nextDisabled=!1;constructor(i,t,r){super(i),this.structureId=t,this.pagingCommandInvoker=r}ngOnChanges(){this.calculatePrev(),this.calculateNext()}prevPage(){this.prevPageChanged.emit()}nextPage(){this.nextPageChanged.emit()}firstPage(){this.pagingCommandInvoker.goToPage(1,this.paging.getPage(),this.structureId)}lastPage(){let i=Math.ceil(this.sourceSize/this.paging.getPageSize());this.pagingCommandInvoker.goToPage(i,this.paging.getPage(),this.structureId)}getSelectorName(){return"gui-paging-alternative-navigator"}calculatePrev(){this.paging&&(this.prevDisabled=this.paging.isPrevPageDisabled())}calculateNext(){!this.paging&&!this.sourceSize||(this.nextDisabled=this.paging.isNextPageDisabled())}static \u0275fac=function(t){return new(t||n)(l(S),l(Ie),l(Yi))};static \u0275cmp=k({type:n,selectors:[["div","gui-paging-alternative-navigator","","paging","","sourceSize",""]],inputs:{paging:"paging",sourceSize:"sourceSize"},outputs:{nextPageChanged:"nextPageChanged",prevPageChanged:"prevPageChanged"},features:[R,re],attrs:fV,ngContentSelectors:bV,decls:17,vars:4,consts:[["gui-button","",3,"click","disabled"],["height","10.661","viewBox","0 0 11.081 10.661","width","11.081","xmlns","http://www.w3.org/2000/svg"],["transform","translate(-522.98 669.601) rotate(180)"],["d","M.75.75,5.02,5.02.75,9.29","fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5","transform","translate(-533.75 659.25)"],["d","M.75.75,5.02,5.02.75,9.29","fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5","transform","translate(-528.75 659.25)"],["gui-button","",1,"gui-paging-navigator-prev",3,"click","disabled"],["height","10.661","viewBox","0 0 6.081 10.661","width","6.081","xmlns","http://www.w3.org/2000/svg"],["d","M.75.75,5.02,5.02.75,9.29","fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5","transform","translate(5.77 10.351) rotate(180)"],["gui-button","",1,"gui-paging-navigator-next",3,"click","disabled"],["d","M.75.75,5.02,5.02.75,9.29","fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5","transform","translate(0.311 0.311)"],["transform","translate(534.061 -658.939)"]],template:function(t,r){t&1&&(Ke(),f(0,"button",0),E("click",function(){return r.firstPage()}),mt(),f(1,"svg",1)(2,"g",2),C(3,"path",3)(4,"path",4),v()()(),Gn(),f(5,"button",5),E("click",function(){return r.prevPage()}),mt(),f(6,"svg",6),C(7,"path",7),v()(),Oe(8),Gn(),f(9,"button",8),E("click",function(){return r.nextPage()}),mt(),f(10,"svg",6),C(11,"path",9),v()(),Gn(),f(12,"button",0),E("click",function(){return r.lastPage()}),mt(),f(13,"svg",1)(14,"g",10),C(15,"path",3)(16,"path",4),v()()()),t&2&&(g("disabled",r.prevDisabled),p(5),g("disabled",r.prevDisabled),p(4),g("disabled",r.nextDisabled),p(3),g("disabled",r.nextDisabled))},dependencies:[no],encapsulation:2,changeDetection:0})}return n})(),cz=(()=>{class n extends oi{structureId;pagingCommandService;paging;sourceSize=0;currentPage;pages;numberOfVisiblePages=3;constructor(i,t,r){super(i),this.structureId=t,this.pagingCommandService=r}ngOnChanges(i){this.calculate()}calculate(){if(this.paging&&this.sourceSize){let i=Math.ceil(this.sourceSize/this.paging.getPageSize());if(this.currentPage=this.paging.getPage(),this.pages=[],this.pages.length<=i)for(let t=1;t<=i;t++)this.pages.push(t)}}isSourceNotEmpty(){return this.sourceSize>0}goToPage(i){let t=this.paging.getPage();this.pagingCommandService.goToPage(i,t,this.structureId)}calculateVisiblePages(i){return this.paging.calculateVisiblePages(this.currentPage,this.numberOfVisiblePages,i)}activePage(i){return this.currentPage===i}getSelectorName(){return"gui-paging-alternative-pages"}static \u0275fac=function(t){return new(t||n)(l(S),l(Ie),l(Yi))};static \u0275cmp=k({type:n,selectors:[["div","gui-paging-alternative-pages","","paging",""]],inputs:{paging:"paging",sourceSize:"sourceSize"},features:[R,re],attrs:vV,decls:3,vars:2,consts:[["noSource",""],[4,"ngIf","ngIfElse"],[4,"ngFor","ngForOf"],[1,"relative"],[1,"gui-paging-page","gui-select-none","gui-cursor-pointer","gui-py-0","gui-px-6","gui-font-base",3,"click"],[1,"gui-paging-source-stats","gui-paging-no-items"]],template:function(t,r){if(t&1&&j(0,yV,2,1,"ng-container",1)(1,wV,3,3,"ng-template",null,0,qe),t&2){let o=wi(2);g("ngIf",r.isSourceNotEmpty())("ngIfElse",o)}},dependencies:[Ht,rt,gn],encapsulation:2,changeDetection:0})}return n})(),lz=(()=>{class n extends ya{elRef;cssClassModifier;structureId;pagingWarehouse;pagingCommandInvoker;sourceWarehouse;pagingDisplayModeArchive;position;minimal;state=M(jt);state$=this.state.select();constructor(i,t,r,o,s,a,u){super(i),this.elRef=i,this.cssClassModifier=t,this.structureId=r,this.pagingWarehouse=o,this.pagingCommandInvoker=s,this.sourceWarehouse=a,this.pagingDisplayModeArchive=u,this.addClassToHost("gui-flex"),this.addClassToHost("gui-justify-end"),this.addClassToHost("gui-items-center"),this.addClassToHost("gui-p-4"),this.state.setValue({alternativeDisplay:!1,isPagingVisible:!1}),this.state.connect("sourceSize",this.sourceWarehouse.onOriginSize(this.structureId)),this.state.connect("alternativeDisplay",this.selectIsAdvancedPagingEnabled()),this.state.connect("paging",this.pagingWarehouse.onPaging(this.structureId)),this.state.connect("isPagingVisible",this.selectIsPagingVisible())}ngOnChanges(i){i.position&&(this.position===Pp.BOTTOM?(this.cssClassModifier.remove(this.elRef.nativeElement,Ws.PAGING_TOP_CLASS_NAME),this.cssClassModifier.add(this.elRef.nativeElement,Ws.PAGING_BOTTOM_CLASS_NAME)):(this.cssClassModifier.remove(this.elRef.nativeElement,Ws.PAGING_BOTTOM_CLASS_NAME),this.cssClassModifier.add(this.elRef.nativeElement,Ws.PAGING_TOP_CLASS_NAME)))}changePageSize(i){this.pagingCommandInvoker.changePageSize(i,this.structureId)}nextPage(i){i&&this.pagingCommandInvoker.nextPage(this.structureId)}prevPage(){this.pagingCommandInvoker.prevPage(this.structureId)}getSelectorName(){return"gui-paging"}selectIsPagingVisible(){return this.pagingWarehouse.onPaging(this.structureId).pipe(te(i=>this.mapIsPagingVisible(i)))}mapIsPagingVisible(i){return i&&i.isEnabled()&&(this.position===Pp.TOP&&i.isPagerTop()||this.position===Pp.BOTTOM&&i.isPagerBottom())}selectIsAdvancedPagingEnabled(){return this.pagingDisplayModeArchive.on().pipe(te(i=>i===oo.ADVANCED))}static \u0275fac=function(t){return new(t||n)(l(S),l(ta),l(Ie),l(ao),l(Yi),l(pn),l(Cb))};static \u0275cmp=k({type:n,selectors:[["div","gui-paging","","position",""]],inputs:{position:"position",minimal:"minimal"},features:[_e([jt]),R,re],attrs:xV,decls:1,vars:1,consts:[["minimalTemplate",""],[4,"guiLet"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["gui-paging-select","",3,"pageSizeChanged","paging"],["gui-paging-stats","",3,"paging"],["gui-paging-navigator","",3,"nextPageChanged","prevPageChanged","paging","sourceSize"],["gui-paging-alternative-navigator","",1,"gui-flex","gui-p-0",3,"nextPageChanged","prevPageChanged","paging","sourceSize"],["gui-paging-alternative-pages","",1,"gui-flex","gui-justify-center",3,"paging","sourceSize"]],template:function(t,r){t&1&&j(0,SV,3,2,"ng-container",1),t&2&&g("guiLet",r.state$)},dependencies:[rt,Ci,rz,oz,sz,az,cz],styles:[`.gui-paging-alternative-navigator .gui-button{-ms-flex-line-pack:center;align-content:center;background:transparent;display:-ms-flexbox;display:flex;font-size:14px;line-height:21px;margin:0 2px;padding:0}.gui-paging-alternative-navigator .gui-button svg{-ms-flex-item-align:center;align-self:center;height:12px;margin:-1px 2px 0;width:auto}.gui-paging-alternative-navigator .gui-button svg path{stroke:#ccc;transition:stroke .3s ease-in-out}.gui-paging-alternative-navigator .gui-button:hover{background:transparent}.gui-paging-alternative-navigator .gui-button:hover svg path{stroke:#333}.gui-paging-alternative-navigator .gui-button:disabled svg{opacity:.4}.gui-paging-alternative-navigator .gui-material .gui-button{padding:2px 16px}.gui-paging-alternative-pages{line-height:21px}.gui-paging-alternative-pages .gui-paging-page{display:none}.gui-paging-alternative-pages .gui-paging-visible-page .gui-paging-page{display:block;font-family:Arial,serif}.gui-paging-alternative-pages .gui-paging-visible-page.gui-paging-active-page{color:#333}.gui-paging-alternative-pages .gui-paging-visible-page.gui-paging-active-page .gui-paging-page{font-weight:700}.gui-paging-bottom{border-top:1px solid;border-top-color:inherit}.gui-paging-top{border-bottom:1px solid;border-bottom-color:inherit}
`,`.gui-generic .gui-paging,.gui-generic .gui-paging *{border-color:#2224261a;font-size:14px}
`],encapsulation:2,changeDetection:0})}return n})(),Xo=class{},Gc=class extends Re{constructor(e){super(e,null,"PageChangedEvent")}},pt=class extends Ts{},Uy=class extends pt{constructor(e){super(e,"PageChangedAggregateEvent")}toDomainEvent(){return new Gc(this.getAggregateId())}},Wc=class extends Re{constructor(e){super(e,null,"PagesizeChangedEvent")}},$y=class extends pt{constructor(e){super(e,"PagesizeChangedAggregateEvent")}toDomainEvent(){return new Wc(this.getAggregateId())}},Wp=class n{enabled;page;pageSize;pageSizes;pagerTop;pagerBottom;sourceSize;events=[];logger;constructor(e,i,t,r,o,s,a,u){this.enabled=e,this.page=i,this.pageSize=t,this.pageSizes=r,this.pagerTop=o,this.pagerBottom=s,this.sourceSize=a,this.logger=u}static default(e){return new n(!1,1,25,[10,25,50,100],!1,!0,0,e)}static fromConfig(e,i){let t=n.default(i),r=e.enabled||t.isEnabled(),o=e.page||t.getPage(),s=e.pageSize||t.getPageSize(),a=e.pageSizes||t.getPageSizes(),u=e.pagerTop||t.isPagerTop(),b=e.pagerBottom||t.isPagerBottom();return new n(r,o,s,a,u,b,0,i)}isEnabled(){return this.enabled}isDisabled(){return!this.enabled}getPage(){return this.page}getPageSize(){return this.pageSize}getPageSizes(){return this.pageSizes}isPagerTop(){return this.isDisabled()?!1:this.pagerTop}isPagerBottom(){return this.isDisabled()?!1:this.pagerBottom}getSourceSize(){return this.sourceSize}change(e){e.enabled!==void 0&&(this.enabled=e.enabled),e.page!==void 0&&(this.page=e.page,e.enabled===void 0&&(this.enabled=!0)),e.pageSize!==void 0&&(this.pageSize=e.pageSize,e.enabled===void 0&&(this.enabled=!0)),e.pageSizes!==void 0&&(this.pageSizes=e.pageSizes,e.enabled===void 0&&(this.enabled=!0)),e.pagerTop!==void 0&&(this.pagerTop=e.pagerTop,e.enabled===void 0&&(this.enabled=!0)),e.pagerBottom!==void 0&&(this.pagerBottom=e.pagerBottom,e.enabled===void 0&&(this.enabled=!0)),this.enabled===!0&&e.pagerTop===!1&&e.pagerBottom===!1&&(this.pagerBottom=!0,this.logger.warn("Pagers cannot be turn off when paging is enabled."))}setSourceSize(e){this.sourceSize=e}nextPage(){let e=this.page;this.isNextPageDisabled()||(e+=1),this.page=e}prevPage(){let e=this.page;this.isPrevPageDisabled()||(e-=1),this.page=e}changePageSize(e){return this.pageSizes.find(i=>i===e)&&(this.setPage(1),this.setPageSize(e)),this.events}isNextPageDisabled(){return this.sourceSize===0?!0:this.page===Math.ceil(this.sourceSize/this.pageSize)}isPrevPageDisabled(){return this.page===1}calculateStart(){let e=1+(this.page-1)*this.pageSize;return this.sourceSize<e?0:e}calculateEnd(){let e=this.page*this.pageSize;return this.sourceSize<e?this.sourceSize:e}sample(e){if(this.isDisabled())return e;let i=this.calculateStart();return i!==0&&(i-=1),e.slice(i,this.calculateEnd())}clearEvents(){this.events.length=0}setPage(e){this.page=e,this.events.push(new Uy(new Ie("TODO need to be changed")))}setPageSize(e){this.pageSize=e,this.events.push(new $y(new Ie("TODO need to be changed")))}},VT=(()=>{class n{logger;constructor(i){this.logger=i}static services=[Xo];createDefault(){return Wp.default(this.logger)}createFromConfig(i){return Wp.fromConfig(i,this.logger)}}return n})(),qp=class extends Ee{config;constructor(e,i){super(e,"SetPagingCommand"),this.config=i}getPagingConfig(){return this.config}},Yp=class extends Ee{pageSize;constructor(e,i){super(e,"ChangePagesizeCommand"),this.pageSize=i}getPageSize(){return this.pageSize}},Qp=class extends Ee{constructor(e){super(e,"NextPageCommand")}},Kp=class extends Ee{constructor(e){super(e,"PrevPageCommand")}},BT=(()=>{class n{commandDispatcher;constructor(i){this.commandDispatcher=i}static services=[ti];setPaging(i,t){this.commandDispatcher.dispatch(new qp(t,i))}changePageSize(i,t){this.commandDispatcher.dispatch(new Yp(t,i))}nextPage(i){this.commandDispatcher.dispatch(new Qp(i))}prevPage(i){this.commandDispatcher.dispatch(new Kp(i))}}return n})(),_u=class extends Re{constructor(e){super(e,null,"PagingSetEvent")}},Gy=class{domainEventPublisher=L.resolve(ze);forCommand(){return qp}handle(e,i){let t=i.getPagingConfig();e.changePaging(t)}publish(e,i){this.domainEventPublisher.publish(new _u(i.getAggregateId()))}},yu=class extends Re{constructor(e){super(e,null,"NextPageEvent")}},Wy=class{domainEventPublisher=L.resolve(ze);forCommand(){return Qp}handle(e,i){e.nextPage()}publish(e,i){this.domainEventPublisher.publish(new yu(i.getAggregateId()))}},wu=class extends Re{constructor(e){super(e,null,"PrevPageEvent")}},qy=class{domainEventPublisher=L.resolve(ze);forCommand(){return Kp}handle(e,i){e.prevPage()}publish(e,i){this.domainEventPublisher.publish(new wu(i.getAggregateId()))}},Yy=class{domainEventPublisher=L.resolve(ze);forCommand(){return Yp}handle(e,i){let t=i.getPageSize();e.changePageSize(t)}publish(e,i){let t=e.getEvents();t.forEach(r=>{r.aggregateId=e.getId()}),this.publishAggregateEvents(t,i),e.clearEvents()}publishAggregateEvents(e,i){for(let t of e)this.publishAggregateEvent(t,i)}publishAggregateEvent(e,i){switch(e.getType()){case"PageChangedAggregateEvent":let t=new Gc(i.getAggregateId());this.domainEventPublisher.publish(t);break;case"PagesizeChangedAggregateEvent":let r=new Wc(i.getAggregateId());this.domainEventPublisher.publish(r);break;case"StructurePreparedEntitiesSetAggregateEvent":this.domainEventPublisher.publish(e.toDomainEvent());break;default:break}}},Nn="StructureAggregate",Qy=class{defineAggregate(){return null}registerKey(){return Nn}registerProviders(e){e.provide(BT),e.provide(VT)}registerCommandHandlers(){return[Gy,Wy,qy,Yy]}registerDomainEventHandler(){return[]}registerMultiDomainEventHandler(){return[]}},dz=(()=>{let n=class{enabled;page;pageSize;pageSizes;pagerTop;pagerBottom;isNextDisabled;isPrevDisabled;start;end;sourceSize;constructor(i,t,r,o,s,a,u,b,y,I,N){this.enabled=i,this.page=t,this.pageSize=r,this.pageSizes=o,this.pagerTop=s,this.pagerBottom=a,this.isNextDisabled=u,this.isPrevDisabled=b,this.start=y,this.end=I,this.sourceSize=N}isEnabled(){return this.enabled}getPage(){return this.page}getPageSize(){return this.pageSize}getPageSizes(){return this.pageSizes}isPagerTop(){return this.pagerTop}isPagerBottom(){return this.pagerBottom}isNextPageDisabled(){return this.isNextDisabled}isPrevPageDisabled(){return this.isPrevDisabled}getStart(){return this.start}getEnd(){return this.end}getSourceSize(){return this.sourceSize}calculateVisiblePages(i,t,r){return i-t<r&&r<i+t}sample(i){let t=this.getStart();return t!==0&&(t-=1),i.slice(t,this.getEnd())}compare(i){return JSON.stringify(this)===JSON.stringify(i)}};return n=Oa([Ip],n),n})(),Xp=class{convert(e){return new dz(e.isEnabled(),e.getPage(),e.getPageSize(),e.getPageSizes(),e.isPagerTop(),e.isPagerBottom(),e.isNextPageDisabled(),e.isPrevPageDisabled(),e.calculateStart(),e.calculateEnd(),e.getSourceSize())}},ia=class extends ci{domainEventBus=L.resolve(Dn);constructor(){super(),this.domainEventBus.ofEvents(this.forEvents()).pipe(this.hermesTakeUntil()).subscribe(e=>{try{this.subs(e)}catch(i){console.error(i)}})}},zT=(()=>{class n{structureRepository;constructor(i){this.structureRepository=i}static services=[ia];on(i){return this.structureRepository.on(i).pipe(He(t=>t.getId().toString()===i.toString()),te(t=>t.getPaging()))}}return n})(),uz=(()=>{class n extends ao{pagingRepository;constructor(i){super(),this.pagingRepository=i}static services=[zT];onPaging(i){return this.pagingRepository.on(i)}oncePaging(i){return Vs(this.pagingRepository.on(i))}}return n})(),hz=(()=>{class n extends Yi{pagingDispatcher;constructor(i){super(),this.pagingDispatcher=i}static services=[BT];enable(i){this.pagingDispatcher.setPaging({enabled:!0},i)}disable(i){this.pagingDispatcher.setPaging({enabled:!1},i)}setPaging(i,t){this.pagingDispatcher.setPaging(i,t)}changePageSize(i,t){this.pagingDispatcher.changePageSize(i,t)}nextPage(i){this.pagingDispatcher.nextPage(i)}prevPage(i){this.pagingDispatcher.prevPage(i)}goToPage(i,t,r){if(t<i)for(;t!==i;)this.nextPage(r),t+=1;else for(;t!==i;)this.prevPage(r),t-=1}changePagerTop(i,t){this.pagingDispatcher.setPaging({pagerTop:i},t)}changePagerBottom(i,t){this.pagingDispatcher.setPaging({pagerBottom:i},t)}}return n})(),mz=(()=>{class n extends kr{pagingWarehouse;eventBusToRemove=L.resolve(Dn);constructor(i){super(),this.pagingWarehouse=i}static services=[ao];onPageChange(i){return this.eventBusToRemove.ofEvents([wu,yu,Gc]).pipe(He(t=>t.getAggregateId().toString()===i.toAggregateId().toString()),cn(t=>this.pagingWarehouse.oncePaging(i.toAggregateId()).pipe(te(r=>r.getPage()))))}onPageSizeChange(i){return this.eventBusToRemove.ofEvents([Wc]).pipe(He(t=>t.getAggregateId().toString()===i.toAggregateId().toString()),cn(t=>this.pagingWarehouse.oncePaging(i.toAggregateId()).pipe(te(r=>r.getPageSize()))))}}return n})(),Ky=class{registerProviders(e){e.provide(Yi,hz),e.provide(ao,uz),e.provide(kr,mz),e.provide(zT),e.provide(Xp)}};function pz(){new fi(new Ky,new Qy).init()}var Xy=class{translation=new Map;resolver=(e,i)=>i;changeTranslation(e){for(let i of Object.keys(e))this.translation.set(i,e[i])}getTranslation(){return Array.from(this.translation).reduce((e,[i,t])=>Object.assign(e,{[i]:this.resolver(i,t)}),{})}setResolver(e){this.resolver=e}},Zy=class extends rr{defaultTranslation=q5;dictionary=new Xy;dictionary$=new zi(1);constructor(){super()}getTranslation(){return this.dictionary.getTranslation()}onTranslation(){return this.dictionary$.toObservable()}setDefaultTranslation(){this.changeTranslationAndPropagate(this.defaultTranslation)}changeTranslation(e){this.changeTranslationAndPropagate(e)}setResolver(e){this.setResolverAndPropagate(e)}changeTranslationAndPropagate(e){this.dictionary.changeTranslation(e),this.dictionary$.next(this.dictionary.getTranslation())}setResolverAndPropagate(e){this.dictionary.setResolver(e),this.dictionary$.next(this.dictionary.getTranslation())}},uo=(()=>{class n extends $t{static forComponent(){return[{provide:rr,useClass:Zy}]}static \u0275fac=(()=>{let i;return function(r){return(i||(i=Te(n)))(r||n)}})();static \u0275mod=H({type:n});static \u0275inj=z({imports:[J]})}return n})(),Jy=class{cd;value;actualObs$;baseValues$=new Rt;destroy$=new zi(1);constructor(e){this.cd=e,this.baseValues$.pipe(He(i=>i!==this.actualObs$),cn(i=>(this.actualObs$=i,i)),Tn(),Hi(this.destroy$)).subscribe(i=>{this.value=i,this.scheduleCD()})}destroy(){this.destroy$.next(),this.destroy$.complete()}subscribe(e){return this.baseValues$.next(e),this.value}scheduleCD(){setTimeout(()=>{this.cd.detectChanges()})}},ll=(()=>{class n{cd=M(ee);subscriber=new Jy(this.cd);transform(i){return this.subscriber.subscribe(i)}ngOnDestroy(){this.subscriber.destroy()}static \u0275fac=function(t){return new(t||n)};static \u0275pipe=Al({name:"guiPush",type:n,pure:!1})}return n})(),II=(()=>{class n{subscriber;vcr;template;guiIf;constructor(i,t,r){this.subscriber=i,this.vcr=t,this.template=r}ngOnChanges(i){i.guiIf!==void 0&&this.subscriber.subscribe(this.guiIf,t=>{t?this.vcr.createEmbeddedView(this.template):this.vcr.clear()})}ngOnDestroy(){this.subscriber.destroy()}static \u0275fac=function(t){return new(t||n)(l(Ko),l(Ot),l(Be))};static \u0275dir=G({type:n,selectors:[["","guiIf",""]],inputs:{guiIf:"guiIf"},features:[_e([Ko]),re]})}return n})();var gz=(()=>{class n{subscriber;elementRef;static STYLE="style";guiStyle;constructor(i,t){this.subscriber=i,this.elementRef=t}ngOnChanges(i){i.guiStyle!==void 0&&this.subscriber.subscribe(this.guiStyle,t=>{Object.keys(t).forEach(r=>{this.setStyleByName(r,t[r])})})}ngOnDestroy(){this.subscriber.destroy()}setStyleByName(i,t){this.set(i,t)}set(i,t){this.elementRef.nativeElement[n.STYLE][i]=t}static \u0275fac=function(t){return new(t||n)(l(Ko),l(S))};static \u0275dir=G({type:n,selectors:[["","guiStyle",""]],inputs:{guiStyle:"guiStyle"},features:[_e([Ko]),re]})}return n})();var Vn=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[J]})}return n})();pz();function fz(){return L.resolve(Yi)}function bz(){return L.resolve(ao)}function vz(){return L.resolve(kr)}var Ib=(()=>{class n extends $t{static forComponent(){return[Cb]}static \u0275fac=(()=>{let i;return function(r){return(i||(i=Te(n)))(r||n)}})();static \u0275mod=H({type:n});static \u0275inj=z({providers:[{provide:Yi,useFactory:fz},{provide:ao,useFactory:bz},{provide:kr,useFactory:vz}],imports:[J,Bo,uo,Vn]})}return n})(),xu=(()=>{class n extends an{static titlePanelConfig={enabled:!1,template:"Title Panel"};constructor(){super(q({},n.titlePanelConfig))}}return n})(),Cu=(()=>{class n extends an{static footerPanelConfig={enabled:!1,template:"Footer Panel"};constructor(){super(q({},n.footerPanelConfig))}}return n})(),_z="Filter container token",Op=function(n){return n.WIDTH="width",n.HEIGHT="height",n.PADDING_TOP="padding-top",n}(Op||{}),Ap="style",Eb=(()=>{class n extends uu{constructor(i){super(i)}createModifier(i){return new n.StyleModifier(i)}static StyleModifier=class{htmlElement;constructor(i){this.htmlElement=i}setStyleByName(i,t){this.set(i,t)}setWidth(i){this.set(Op.WIDTH,this.toPx(i))}setHeight(i){this.set(Op.HEIGHT,this.toPx(i))}setPaddingTop(i){this.set(Op.PADDING_TOP,this.toPx(i))}remove(i){this.htmlElement[Ap][i]=""}removeStyleByName(i){this.htmlElement[Ap][i]=""}clear(){this.htmlElement.removeAttribute(Ap)}set(i,t){this.htmlElement[Ap][i]=t}toPx(i){return i>0?`${i}px`:`${i}`}}}return n})(),na=class{constructor(){}},wa=(()=>{class n{structureRepository;structureCellEditArchive;constructor(i,t){this.structureRepository=i,this.structureCellEditArchive=t}static services=[ia,so];on(i){return this.structureRepository.on(i)}onEditManager(i){return this.structureCellEditArchive.on(i)}}return n})(),Tr=class{constructor(){}},yz="Structure -",ew=new Z(`${yz} - css className`),ra=class{constructor(){}},tw=class{distinctTooltip;averageTooltip;minTooltip;maxTooltip;medTooltip;countTooltip;constructor(e,i,t,r,o,s){this.distinctTooltip=e,this.averageTooltip=i,this.minTooltip=t,this.maxTooltip=r,this.medTooltip=o,this.countTooltip=s}},Wt=function(n){return n[n.ASC=0]="ASC",n[n.DESC=1]="DESC",n[n.NONE=2]="NONE",n}(Wt||{}),Zp=class{header;dataType;context;width;fieldId;columnDefinitionId;sortStatus;enabled;cssClasses;styles;sortable;align;constructor(e,i,t,r,o,s,a,u,b,y,I,N){this.header=e,this.dataType=i,this.context=t,this.width=r,this.fieldId=o,this.columnDefinitionId=s,this.sortStatus=a,this.enabled=u,this.cssClasses=b,this.styles=y,this.sortable=I,this.align=N}getHeader(){return this.header}getDataType(){return this.dataType}getColumnDefinitionId(){return this.columnDefinitionId}getFieldId(){return this.fieldId}getSortStatus(){return this.sortStatus}getCssClasses(){return this.cssClasses}getStyles(){return this.styles}isSortEnabled(){return this.sortable}isAscSort(){return this.sortStatus===Wt.ASC}isDescSort(){return this.sortStatus===Wt.DESC}isNoSort(){return this.sortStatus===Wt.NONE}isEnabled(){return this.enabled}isAlignLeft(){return this.align===_t.LEFT}isAlignCenter(){return this.align===_t.CENTER}isAlignRight(){return this.align===_t.RIGHT}getAlign(){return this.align}},Jp=class extends Zp{viewTemplate;editTemplate;constructor(e=null,i=null,t){super(t.getHeader(),t.getDataType(),t.context,t.width,t.getFieldId(),t.getColumnDefinitionId(),t.getSortStatus(),t.isEnabled(),t.getCssClasses(),t.getStyles(),t.isSortEnabled(),t.getAlign()),this.viewTemplate=e,this.editTemplate=i}},eg=function(n){return n[n.TEXT=0]="TEXT",n[n.HTML=1]="HTML",n}(eg||{}),Go=class n{value;type;constructor(e,i){this.value=e,this.type=i}static text(e){return new n(e,eg.TEXT)}static HTML(e){return new n(e,eg.HTML)}},tg=class{columnConfig;columnDefinitionId;name;editable;templateFun;formatterFun;accessor;searchAccessor;width;columnFieldId;align;cellEditingEnabled;type;view;constructor(e,i,t,r,o,s,a,u,b,y,I,N,K,de){this.columnConfig=e,this.columnDefinitionId=i,this.name=t,this.editable=r,this.templateFun=o,this.formatterFun=s,this.accessor=a,this.searchAccessor=u,this.width=b,this.columnFieldId=y,this.align=I,this.cellEditingEnabled=N,this.type=K,this.view=de}getDataType(){return this.type}getCellView(){return this.view.getCellView()}getColumnConfig(){return this.columnConfig}isCellEditingEnabled(){return this.cellEditingEnabled}isBooleanDataType(){return this.type===pe.BOOLEAN}isAlignLeft(){return this.align===_t.LEFT}isAlignCenter(){return this.align===_t.CENTER}isAlignRight(){return this.align===_t.RIGHT}getAlign(){return this.align}getType(){return this.type}getView(){return this.view}getName(){return this.name}getValue(e,i){let t=this.findValue(e,i);return t.value=this.templateFun(t.value,e.getSourceItem()),this.formatterFun&&(t.value=this.formatterFun(t.value,e.getSourceItem())),t}getClasses(){return"gui-cell-highlighted"}findValue(e,i){let t=this.accessor(e);if(this.type!==pe.STRING||this.view&&this.view.getCellView()===ie.FUNCTION)return Go.text(t);if(i){let r=""+this.searchAccessor(e),o=r.toLocaleLowerCase(),s=i.toLocaleLowerCase(),a=[],u=0;for(;u<s.length;){let y=o.indexOf(s,u);y>=0?(a.push(y),u=y+i.length):u=s.length}let b=r.split("");return a.forEach(y=>{for(let I=0;I<i.length;I+=1){let N;I===0?N=`<span class="gui-text-highlight">${b[y+I]}`:N=b[y+I],I===i.length-1&&(N+="</span>"),b[y+I]=N}}),r=b.join(""),Go.HTML(r)}else return Go.text(t)}},iw=class extends tg{template;editTemplate;constructor(e=null,i=null,t){super(t.getColumnConfig(),t.columnDefinitionId,t.getName(),t.editable,t.templateFun,t.formatterFun,t.accessor,t.searchAccessor,t.width,t.columnFieldId,t.getAlign(),t.isCellEditingEnabled(),t.getType(),t.getView()),this.template=e,this.editTemplate=i}},zo={CompositionResizeWidthSetAggregateEvent:"CompositionResizeWidthSetAggregateEvent",ColumnsSetAggregateEvent:"ColumnsSetAggregateEvent",CompositionContainerWidthSetAggregateEvent:"CompositionContainerWidthSetAggregateEvent",CompositionWidthSetAggregateEvent:"CompositionWidthSetAggregateEvent",CompositionColumnSetEnabledAggregateEvent:"CompositionColumnSetEnabledAggregateEvent",CompositionColumnMovedLeftAggregateEvent:"CompositionColumnMovedLeftAggregateEvent",CompositionColumnMovedRightAggregateEvent:"CompositionColumnMovedRightAggregateEvent",GroupsSetAggregateEvent:"GroupsSetAggregateEvent"},jn=class extends Kr{},oa=class extends jn{constructor(e){super(e,null,"CompositionResizeWidthSetEvent")}},qc=class extends jn{constructor(e){super(e,null,"CompositionColumnsSetEvent")}},Yc=class extends jn{constructor(e,i){super(e,i,"CompositionContainerWidthSetEvent")}},Qc=class extends jn{constructor(e){super(e,null,"CompositionWidthSetEvent")}},Iu=class extends jn{constructor(e){super(e,null,"CompositionColumnSetEnabledEvent")}},Eu=class extends jn{constructor(e){super(e,null,"CompositionColumnMovedLeftEvent")}},ku=class extends jn{constructor(e){super(e,null,"CompositionColumnMovedRightEvent")}},nw=class extends jn{constructor(e){super(e,null,"CompositionGroupsSetEvent")}},co=class{convert(e){return Array.isArray(e)?this.convertEvents(e):this.convertEvent(e)}convertEvents(e){return e.map(i=>this.convertEvent(i))}convertEvent(e){switch(e.getType()){case zo.CompositionResizeWidthSetAggregateEvent:return new oa(e.getAggregateId());case zo.ColumnsSetAggregateEvent:return new qc(e.getAggregateId());case zo.CompositionContainerWidthSetAggregateEvent:let i=e.containerWidth;return new Yc(e.getAggregateId(),i);case zo.CompositionWidthSetAggregateEvent:return new Qc(e.getAggregateId());case zo.CompositionColumnSetEnabledAggregateEvent:return new Iu(e.getAggregateId());case zo.CompositionColumnMovedLeftAggregateEvent:return new Eu(e.getAggregateId());case zo.CompositionColumnMovedRightAggregateEvent:return new ku(e.getAggregateId());case zo.GroupsSetAggregateEvent:return new nw(e.getAggregateId());default:return new oa(e.getAggregateId())}}},Ln=class extends Po{},ig=class extends Ln{compositionId;columns;constructor(e,i){super(e,"SetColumnsCommand"),this.compositionId=e,this.columns=i}getParams(){return this.columns}},wz=(()=>{class n{compositionEventConverter;domainEventPublisher=L.resolve(ze);constructor(i){this.compositionEventConverter=i}static services=[co];forCommand(){return ig}handle(i,t){let r=t.getParams();i.setColumns(r)}publish(i,t){this.publishEvents(i,t)}publishEvents(i,t){let r=i.getEvents(),o=this.compositionEventConverter.convert(r);this.domainEventPublisher.publish(o)}}return n})(),ng=class extends Ln{structureId;width;constructor(e,i){super(e,"SetCompositionWidthCommand"),this.structureId=e,this.width=i}getWidth(){return this.width}},rw=class{domainEventPublisher=L.resolve(ze);forCommand(){return ng}handle(e,i){let t=i.getWidth();e.setWidth(t)}publish(e,i){this.domainEventPublisher.publish(new Qc(i.getAggregateId()))}},rg=class extends Ln{structureId;enabled;constructor(e,i){super(e,"SetCompositionResizeWidthCommand"),this.structureId=e,this.enabled=i}getEnabled(){return this.enabled}},ow=class{domainEventPublisher=L.resolve(ze);forCommand(){return rg}handle(e,i){let t=i.getEnabled();e.setResizeWidth(t)}publish(e,i){this.domainEventPublisher.publish(new oa(i.getAggregateId()))}},og=class extends Ln{structureId;width;constructor(e,i){super(e,"SetCompositionContainerWidthCommand"),this.structureId=e,this.width=i}getWidth(){return this.width}},xz=(()=>{class n{compositionEventConverter;domainEventPublisher=L.resolve(ze);constructor(i){this.compositionEventConverter=i}static services=[co];forCommand(){return og}handle(i,t){let r=t.getWidth();i.setContainerWidth(r)}publish(i,t){this.publishAggregateEvents(i.getEvents())}publishAggregateEvents(i){let t=this.compositionEventConverter.convert(i);this.domainEventPublisher.publish(t)}}return n})(),sg=class extends Ln{compositionId;columnId;enabled;constructor(e,i,t){super(e,"CompositionSetColumnEnabledCommand"),this.compositionId=e,this.columnId=i,this.enabled=t}getColumnId(){return this.columnId}isEnabled(){return this.enabled}},Cz=(()=>{class n{compositionEventConverter;domainEventPublisher=L.resolve(ze);constructor(i){this.compositionEventConverter=i}static services=[co];forCommand(){return sg}handle(i,t){let r=t.getColumnId(),o=t.isEnabled();i.enableColumn(r,o)}publish(i,t){this.publishEvents(i,t)}publishEvents(i,t){let r=i.getEvents(),o=this.compositionEventConverter.convert(r);o&&o.length>0&&this.domainEventPublisher.publish(o)}}return n})(),ag=class extends Ln{compositionId;sortParams;constructor(e,i){super(e,"CompositionChangeSortStatusCommand"),this.compositionId=e,this.sortParams=i}getCompositionId(){return this.compositionId}getSortParams(){return this.sortParams}},Su=class extends jn{activeColumns;constructor(e,i){super(e,i,"CompositionChangeSortStatusEvent"),this.activeColumns=i}getCompositionId(){return this.getAggregateId()}getActiveColumns(){return this.activeColumns}},sw=class{domainEventPublisher=L.resolve(ze);forCommand(){return ag}handle(e,i){let t=i.getSortParams();e.changeSort(t)}publish(e,i){let t=i.getAggregateId(),r=e.getActiveColumns();this.domainEventPublisher.publish(new Su(t,r))}},cg=class extends Ln{compositionId;columnId;constructor(e,i){super(e,"CompositionMoveLeftColumnCommand"),this.compositionId=e,this.columnId=i}getColumnId(){return this.columnId}},Iz=(()=>{class n{compositionEventConverter;domainEventPublisher=L.resolve(ze);constructor(i){this.compositionEventConverter=i}static services=[co];forCommand(){return cg}handle(i,t){let r=t.getColumnId();i.moveLeft(r)}publish(i,t){this.publishEvents(i,t)}publishEvents(i,t){let r=i.getEvents(),o=this.compositionEventConverter.convert(r);o&&o.length>0&&this.domainEventPublisher.publish(o)}}return n})(),lg=class extends Ln{columnId;constructor(e,i){super(e,"CompositionMoveRightColumnCommand"),this.columnId=i}getColumnId(){return this.columnId}},Ez=(()=>{class n{compositionEventConverter;domainEventPublisher=L.resolve(ze);constructor(i){this.compositionEventConverter=i}static services=[co];forCommand(){return lg}handle(i,t){let r=t.getColumnId();i.moveRight(r)}publish(i,t){this.publishEvents(i,t)}publishEvents(i,t){let r=i.getEvents(),o=this.compositionEventConverter.convert(r);o&&o.length>0&&this.domainEventPublisher.publish(o)}}return n})(),Du=class extends Re{compositionId;directions;constructor(e,i,t){super(e,{compositionId:i,directions:t},"SortToggledEvent"),this.compositionId=i,this.directions=t}getCompositionId(){return this.compositionId}getDirections(){return this.directions}},dg=class extends Ln{compositionId;constructor(e){super(e,"CreateCompositionCommand"),this.compositionId=e}},ug=class extends Ln{compositionId;configs;constructor(e,i){super(e,"SetGroupsCommand"),this.compositionId=e,this.configs=i}getConfigs(){return this.configs}},Tu=class{commandDispatcher=L.resolve(ti);create(e){this.commandDispatcher.dispatch(new dg(e))}setColumns(e,i){this.commandDispatcher.dispatch(new ig(e,i))}setGroups(e,i){this.commandDispatcher.dispatch(new ug(e,i))}setWidth(e,i){this.commandDispatcher.dispatch(new ng(e,i))}setContainerWidth(e,i){this.commandDispatcher.dispatch(new og(e,i))}setResizeWidth(e,i){this.commandDispatcher.dispatch(new rg(e,i))}changeSort(e,i){this.commandDispatcher.dispatch(new ag(e,i))}setColumnEnabled(e,i,t){this.commandDispatcher.dispatch(new sg(e,i,t))}moveLeft(e,i){this.commandDispatcher.dispatch(new cg(e,i))}moveRight(e,i){this.commandDispatcher.dispatch(new lg(e,i))}},hg=class{fieldId;direction;constructor(e,i){this.fieldId=e,this.direction=i}},Mu=class extends Re{compositionId;directions;constructor(e,i,t){super(e,{compositionId:i,directions:t},"SortOrderSetEvent"),this.compositionId=i,this.directions=t}getCompositionId(){return this.compositionId}getDirections(){return this.directions}},kz=(()=>{class n{compositionDispatcher;constructor(i){this.compositionDispatcher=i}static services=[Tu];forEvents(){return[Du,Mu]}handle(i){if(i.ofMessageType("SortToggledEvent")){let t=i.getCompositionId(),o=i.getDirections().map(s=>{let a=new mu(s.fieldId.getId());return new hg(a,s.direction)});this.compositionDispatcher.changeSort(t,o)}if(i.ofMessageType("SortOrderSetEvent")){let t=i.getCompositionId(),o=i.getDirections().map(s=>{let a=new mu(s.fieldId.getId());return new hg(a,s.direction)});this.compositionDispatcher.changeSort(t,o)}}}return n})(),Ru=class n{view;templateFunction=(e,i)=>e;constructor(e){typeof e=="function"?(this.view=ie.FUNCTION,this.templateFunction=e):this.view=e}static fromDataType(e){return e===pe.DATE?new n(ie.DATE):new n(ie.TEXT)}getCellView(){return this.view}getTemplateFunction(){return this.templateFunction}},aw=class extends Os{columnField;header;width;columnConfig;view;align;presentation;constructor(e,i,t,r,o,s,a,u){super(e),this.columnField=i,this.columnConfig=t,this.presentation=r,this.view=Ru.fromDataType(i.getDataType()),o&&(this.header=o),a&&(this.view=a),u&&(this.width=u),this.setInitialAlign(i,s)}getPresentation(){return this.presentation}getColumnConfig(){return this.columnConfig}getField(){return this.columnField}getHeader(){return this.header}getDataType(){return this.columnField.getDataType()}getCellView(){return this.view.getCellView()}getTemplateFunction(){return this.view.getTemplateFunction()}getFormatterFunction(){return this.columnConfig.formatter}setView(e){this.view=e}setHeader(e){this.header=e}getView(){return this.view}getAlign(){return this.align}setWidth(e){this.width=e}getWidth(){return this.width}isSortingEnabled(){let e=this.columnConfig;return e.sorting!==void 0&&e.sorting!==null?e.sorting.enabled===void 0||e.sorting.enabled===null?!0:e.sorting.enabled:!0}isCellEditingEnabled(){let e=this.columnConfig;return e.cellEditing!==void 0&&e.cellEditing!==null?e.cellEditing.enabled===void 0||e.cellEditing.enabled===null?!0:e.cellEditing.enabled:!0}setInitialAlign(e,i){i!=null?this.align=i:e.getDataType()===pe.NUMBER?this.align=_t.RIGHT:this.align=_t.LEFT}},Au=class extends aw{sortable;sortStatus=Wt.NONE;enabled=!0;constructor(e,i,t,r,o,s,a,u,b){super(e,i,t,o,s,a,u,b),this.enabled=r,u===void 0&&(this.view=new Ru(this.presentation.getDefaultView())),a===void 0&&(this.align=this.presentation.getDefaultAlign(this.view))}isEnabled(){return this.enabled}setEnabled(e){this.enabled=e}getSortStatus(){return this.sortStatus}setSortStatus(e){this.sortStatus=e}},Kc=class extends Xr{constructor(e){super(e)}toString(){return this.getId()}},sa=class{},Sz=(()=>{class n extends sa{static instance=null;constructor(){super()}static getInstance(){return n.instance||(n.instance=new n),n.instance}getPossibleViews(){return[ie.TEXT,ie.BAR,ie.PERCENTAGE_BAR,ie.PERCENTAGE]}getDefaultView(){return ie.NUMBER}getDefaultAlign(i){return _t.RIGHT}}return n})(),Dz=(()=>{class n extends sa{static instance=null;constructor(){super()}static getInstance(){return n.instance||(n.instance=new n),n.instance}getPossibleViews(){return[ie.TEXT,ie.ITALIC,ie.CHIP,ie.BOLD,ie.CHECKBOX]}getDefaultView(){return ie.TEXT}getDefaultAlign(i){return i.getCellView()===ie.CHECKBOX?_t.CENTER:_t.LEFT}}return n})(),Tz=(()=>{class n extends sa{static getInstance(){return n.instance||(n.instance=new n),n.instance}static instance=null;constructor(){super()}getPossibleViews(){return[ie.DATE,ie.TEXT,ie.ITALIC,ie.BOLD,ie.CHIP]}getDefaultView(){return ie.DATE}getDefaultAlign(){return _t.LEFT}}return n})(),Mz=(()=>{class n extends sa{static instance=null;constructor(){super()}static getInstance(){return n.instance||(n.instance=new n),n.instance}getPossibleViews(){return[ie.TEXT,ie.ITALIC,ie.BOLD,ie.IMAGE,ie.LINK,ie.CHIP]}getDefaultView(){return ie.TEXT}getDefaultAlign(){return _t.LEFT}}return n})(),Rz=(()=>{class n extends sa{static instance=null;constructor(){super()}static getInstance(){return n.instance||(n.instance=new n),n.instance}getPossibleViews(){return[ie.TEXT]}getDefaultView(){return ie.TEXT}getDefaultAlign(){return _t.LEFT}}return n})(),mg=class{convert(e){return e===pe.NUMBER?Sz.getInstance():e===pe.BOOLEAN?Dz.getInstance():e===pe.DATE?Tz.getInstance():e===pe.STRING?Mz.getInstance():Rz.getInstance()}},HT=(()=>{class n{columnPresentationConverter;constructor(i){this.columnPresentationConverter=i}static services=[mg];create(i){return Array.isArray(i)?this.createColumns(i):this.createColumn(i)}createColumn(i){let t=i.getColumn(),r=i.getField(),o=r.getDataType(),s=this.convertWidth(t.width)||void 0,a,u;t.view!==void 0&&(a=new Ru(t.view)),t.enabled!==void 0?u=t.enabled:u=!0;let b=this.getPresentation(o),y=new Au(new Kc(Oo.generate()),r,t,u,b,void 0,t.align,a,s);return t.header!==void 0&&y.setHeader(t.header),y}createColumns(i){let t=[];return i.forEach(r=>{t.push(this.createColumn(r))}),t}convertWidth(i){return+i}getPresentation(i){return this.columnPresentationConverter.convert(i)}}return n})(),pg=class{id;header;width;constructor(e,i,t){this.id=e,this.header=i,this.width=t}},gg=class extends As{constructor(e){super(e)}toString(){return this.getId()}},fg=class{create(e){return new pg(new gg(Oo.generate()),e.header,e.width)}},Az=(()=>{class n{compositionEventConverter;domainEventPublisher=L.resolve(ze);constructor(i){this.compositionEventConverter=i}static services=[co];forCommand(){return ug}handle(i,t){let r=t.getConfigs();i.setGroups(r)}publish(i,t){this.publishEvents(i,t)}publishEvents(i,t){let r=i.getEvents(),o=this.compositionEventConverter.convert(r);this.domainEventPublisher.publish(o)}}return n})(),bg=class{enabled=!0;highlightedColumns=new Set;isHighlighted(e){return this.highlightedColumns.has(e.toString())}toggle(e){this.highlightedColumns.has(e.toString())?this.highlightedColumns.delete(e.toString()):this.highlightedColumns.add(e.toString())}remove(e){this.highlightedColumns.delete(e.toString())}},Fu=class extends tt{constructor(){super(new bg)}toggle(e,i){this.find(e).ifPresent(t=>{t.toggle(i),this.next(e,t)})}equals(e,i){return!1}createDefaultValue(e){return new bg}},Xc=class extends js{},UT=(()=>{class n extends Ns{constructor(i){super(i)}static services=[Xc]}return n})(),vg=class extends Ms{},IT=(()=>{class n extends vg{inMemoryCompositionAggregateStore;constructor(i){super(),this.inMemoryCompositionAggregateStore=i}static services=[UT];findById(i){return this.inMemoryCompositionAggregateStore.findById(i)}save(i){this.inMemoryCompositionAggregateStore.save(i)}}return n})(),_g=class{element;constructor(e){this.element=e}},yg=class extends bp{columnConfig;name;type;view;align;cssClasses;styles;width;templateFunction;formatterFunction;columnDefinitionId;field;header;sortStatus;sortable=!0;enabled;cellEditingEnabled;constructor(e,i,t,r,o,s,a,u,b,y,I,N,K=Wt.NONE,de=!0){super(i),this.columnConfig=t,this.name=r,this.type=s,this.view=a,this.align=u,this.cssClasses=I,this.styles=N,this.field=e,this.columnDefinitionId=i,this.enabled=o,this.header=b,this.cellEditingEnabled=y,this.sortStatus=K,this.sortable=de}getName(){return this.name}isEnabled(){return this.enabled}setHeader(e){this.header=e}setField(e){this.field=e}setTemplateFunction(e){this.templateFunction=e}setFormatterFunction(e){this.formatterFunction=e}toHeaderCellTemplateWithContext(e){let i=this.header||"",t;typeof i=="string"?t=new _g(Go.text(i)):typeof i=="function"&&(t=new _g(Go.text(i(e))));let r=new Qs(this.field.getId().getId());return new Zp(i,this.type,t,this.width,r,this.columnDefinitionId,this.sortStatus,this.enabled,this.cssClasses,this.styles,this.sortable,this.align)}toContentCellTemplateWithAccessor(){let e=t=>this.field.getAccessor()(t),i=t=>this.field.getSearchAccessor()(t);return new tg(this.columnConfig,this.columnDefinitionId,this.name,!0,this.templateFunction,this.formatterFunction,e,i,this.width,this.field.getId(),this.align,this.cellEditingEnabled,this.type,this.view)}},wg=class extends vp{constructor(e){super(e)}},xg=class{create(e){return e instanceof Au?this.createFromColumnEntity(e):this.createFromActiveColumnEntity(e)}createColumns(e){return e.map(i=>this.create(i))}createFromColumnEntity(e){let i=new yg(e.getField(),new wg(e.getId().toString()),e.getColumnConfig(),e.getColumnConfig().name,e.isEnabled(),e.getDataType(),e.getView(),e.getAlign(),e.getHeader(),e.isCellEditingEnabled(),e.getColumnConfig().cssClasses,e.getColumnConfig().styles,e.getSortStatus(),e.isSortingEnabled());return i.setTemplateFunction(e.getTemplateFunction()),i.setFormatterFunction(e.getFormatterFunction()),i.width=+e.getWidth(),i}createFromActiveColumnEntity(e){let i=new yg(e.getField(),new wg(e.getId().toString()),e.getColumnConfig(),e.getColumnConfig().name,!0,e.getDataType(),e.getView(),e.getAlign(),e.getHeader(),e.isCellEditingEnabled(),e.getColumnConfig().cssClasses,e.getColumnConfig().styles,e.getSortStatus(),e.isSortingEnabled());return i.setTemplateFunction(e.getTemplateFunction()),i.setFormatterFunction(e.getFormatterFunction()),i.width=+e.getWidth(),i}},cw=class extends qd{ready;allColumns;activeColumns;width;resizeWidth;constructor(e,i,t,r,o,s){super(e),this.ready=i,this.allColumns=t,this.activeColumns=r,this.width=o,this.resizeWidth=s}getActiveColumns(){return this.activeColumns}getAllColumns(){return this.allColumns}getActiveHeaderColumns(){return this.getActiveColumns().map((e,i)=>e.toHeaderCellTemplateWithContext(i))}getHeaderColumns(){return this.getAllColumns().map((e,i)=>e.toHeaderCellTemplateWithContext(i))}getTemplateColumns(){return this.getActiveColumns().map(e=>e.toContentCellTemplateWithAccessor())}getWidth(){return this.width}getContainerWidth(){return+this.width-2}isReady(){return this.ready}isResizeWidthEnabled(){return this.resizeWidth}equals(e){return this.width===e.width&&this.resizeWidth===e.resizeWidth&&this.equalsByColumns(e.allColumns)}equalsByColumns(e){return this.allColumns.length===e.length}},$T=(()=>{class n{columnDefinitionFactory;constructor(i){this.columnDefinitionFactory=i}static services=[xg];convert(i){let t=i.isReady(),r=i.getColumns(),o=i.getActiveColumns(),s=this.convertToColumnDef(r),a=this.convertActiveColumnsToColumnDef(o),u=i.getWidth(),b=i.isResizeEnabled(),y=i.getId();return new cw(y.toReadModelRootId(),t,s,a,u,b)}convertToColumnDef(i){let t=[];return i.forEach(r=>{let o=this.columnDefinitionFactory.create(r);t.push(o)}),t}convertActiveColumnsToColumnDef(i){let t=[];return i.forEach(r=>{let o=this.columnDefinitionFactory.create(r);t.push(o)}),t}}return n})(),EI=(()=>{class n extends Yd{inMemoryCompositionStore;compositionConverter;constructor(i,t){super(i),this.inMemoryCompositionStore=i,this.compositionConverter=t}static services=[Xc,$T];toReadModel(i){return this.compositionConverter.convert(i)}}return n})(),Zc=class extends _p{constructor(){super()}},Cg=class extends jn{constructor(e){super(e,null,"CompositionCreatedEvent")}},GT=(()=>{class n extends Zc{inMemoryCompositionReadStore;compositionIdToComposition=new Map;composition$=new zi(1);constructor(i){super(),this.inMemoryCompositionReadStore=i}static services=[EI];on(i){return this.composition$.toObservable().pipe(He(t=>{let r=i.getId();return t.has(r)}),te(t=>t.get(i.getId())))}find(i){let t=i.getId();return At.of(this.compositionIdToComposition.get(t))}forEvents(){return[Cg,oa,qc,Yc,Qc,Iu,Eu,ku,Su]}subscribe(i){let t=i.getAggregateId();this.inMemoryCompositionReadStore.getById(t).ifPresent(o=>{let s=o.getId().toString();this.compositionIdToComposition.set(s,o),this.composition$.next(this.compositionIdToComposition)})}}return n})(),lw=class{forCommand(){return dg}},Pu=class{MIN_COLUMN_WIDTH;constructor(e){this.MIN_COLUMN_WIDTH=e}calculateMinWidth(e){let{staticColumns:i,fluidColumns:t}=this.segregateColumns(e),r=0;return i.forEach(o=>{r+=o.getWidth()}),r+=t.length*this.MIN_COLUMN_WIDTH,r}segregateColumns(e){let i=e.filter(r=>r.isTypeNumber()&&r.getWidth()>this.MIN_COLUMN_WIDTH),t=e.filter(r=>r.isTypeAuto()||r.isTypePercentage()||r.isTypeNumber()&&r.getWidth()<=this.MIN_COLUMN_WIDTH);return{staticColumns:i,fluidColumns:t}}},or=class extends Ts{},dw=class extends or{constructor(e){super(e,"CompositionWidthSetAggregateEvent")}toDomainEvent(){return new Qc(this.getAggregateId())}},uw=class extends or{containerWidth;constructor(e,i){super(e,"CompositionContainerWidthSetAggregateEvent"),this.containerWidth=i}toDomainEvent(){return new Yc(this.getAggregateId(),this.containerWidth)}},hw=class extends or{constructor(e){super(e,"CompositionResizeWidthSetAggregateEvent")}toDomainEvent(){return new oa(this.getAggregateId())}},mw=class extends or{activeColumns;constructor(e,i){super(e,"CompositionColumnSetEnabledAggregateEvent"),this.activeColumns=i}toDomainEvent(){return new Iu(this.getAggregateId())}getActiveColumns(){return this.activeColumns}},Ir=function(n){return n[n.PERCENTAGE=0]="PERCENTAGE",n[n.NUMBER=1]="NUMBER",n[n.AUTO=2]="AUTO",n}(Ir||{}),zc=class n{template;baseWidth;width;constructor(e){this.baseWidth=e,this.setWidthAndType(e)}getWidth(){return this.width}getColumnType(){return this.template}isTypePercentage(){return this.template===Ir.PERCENTAGE}isTypeAuto(){return this.template===Ir.AUTO}isTypeNumber(){return this.template===Ir.NUMBER}setWidth(e){this.width=e}setWidthAndType(e){e==null||e==="auto"?(this.template=Ir.AUTO,this.setWidth(null)):this.isPercentage(e)?(this.template=Ir.PERCENTAGE,this.setWidth(this.percentageToNumber(""+e))):this.isStringNumber(e)?(this.template=Ir.NUMBER,this.setWidth(+e)):(this.template=Ir.NUMBER,this.setWidth(+e))}clone(){return new n(this.baseWidth)}isPercentage(e){return typeof e=="string"&&e[e.length-1]==="%"}percentageToNumber(e){return+e.slice(0,-1)}isStringNumber(e){let i=+e;return Number.isNaN(i)}},pw=class{source;width;MIN_COLUMN_WIDTH;columns;constructor(e,i,t){this.source=e,this.width=i,this.MIN_COLUMN_WIDTH=t,this.columns=this.source.map(r=>r.clone())}calculate(){let e=this.width,i=Array.from(this.columns);this.adjustMinimalWidth(i);let t=[];if(i.forEach((r,o)=>{r.isTypeNumber()?e-=r.getWidth():t.push(r)}),i=t,i.length!==0){let r=e/i.length;i.forEach((o,s)=>{o.setWidth(r)})}return this.columns}adjustMinimalWidth(e){e.forEach(i=>{i.isTypeNumber()&&i.getWidth()<this.MIN_COLUMN_WIDTH&&i.setWidthAndType(this.MIN_COLUMN_WIDTH)})}adjustPercentageWidth(){let e=this.columns.filter(i=>i.isTypePercentage());for(let i of this.columns)i.getColumnType()===Ir.PERCENTAGE&&i.setWidth(this.width*i.getWidth()*.01)}adjustAutoWidth(){let e=this.width,i=[];for(let t=0;t<this.columns.length;t+=1){let r=this.columns[t];r.getColumnType()!==Ir.AUTO?e-=r.getWidth():i.push(r)}if(i.length>0){let t=e/i.length;for(let r of i)r.setWidth(t)}}},Ig=class{MIN_COLUMN_WIDTH;baseColumnWidths;columnWidths;width;constructor(e,i=[],t=100){this.MIN_COLUMN_WIDTH=e,this.baseColumnWidths=i.map(r=>new zc(r.width)),this.columnWidths=i.map(r=>new zc(r.width)),this.setContainerWidth(t),this.calculate()}getColumnWidths(){return this.baseColumnWidths}getColumnsWidth(){return this.width}getWidths(){return this.columnWidths.map(e=>e.getWidth())}getMinWidth(){return new Pu(this.MIN_COLUMN_WIDTH).calculateMinWidth(this.columnWidths)}setWidth(e){this.setContainerWidth(e),this.calculate()}setColumns(e){this.baseColumnWidths=e.map(i=>new zc(i.width)),this.columnWidths=e.map(i=>new zc(i.width)),this.calculate()}getMinColumnWidth(){return this.MIN_COLUMN_WIDTH}calculate(){if(this.baseColumnWidths&&this.width){let e=new pw(this.baseColumnWidths,this.width,this.MIN_COLUMN_WIDTH);this.columnWidths=e.calculate()}}setContainerWidth(e){this.getMinWidth()>e?this.width=this.getMinWidth():this.width=e,this.calculate()}},gw=class extends or{activeColumns;constructor(e,i){super(e,"CompositionChangeSortStatusAggregateEvent"),this.activeColumns=i}toDomainEvent(){return new Su(this.getAggregateId(),this.activeColumns)}},fw=class{compositionId;MIN_COLUMN_WIDTH=50;columns;columnWidthCollection=new Ig(this.MIN_COLUMN_WIDTH);constructor(e,i=[],t,r){this.compositionId=e,this.columns=i,t&&r&&(this.columnWidthCollection=new Ig(this.MIN_COLUMN_WIDTH,r,t))}getColumnWidths(){return this.columnWidthCollection.getColumnWidths()}getColumns(){return this.columns}setWidth(e){this.columnWidthCollection.setWidth(e)}addColumn(e,i){this.columns.splice(i,0,e)}removeColumn(e){this.columns.splice(e,1)}setColumns(e,i){this.columns=e,this.columnWidthCollection.setColumns(i);let t=this.columnWidthCollection.getWidths();this.columns.forEach((r,o)=>{r.setWidth(t[o])})}changeSort(e){this.columns.forEach(i=>{i.setSortStatus(Wt.NONE)});for(let i of e){let t=i.fieldId,r=i.direction,o=r?Wt.ASC:Wt.DESC,s=this.columns.filter(a=>a.getField().getId().getId()===t.getId());s.length>0&&s.forEach(a=>{a.setSortStatus(o)})}return new gw(this.getCompositionId(),this.columns)}moveLeft(e){let i=this.findColumnIndex(e);this.move(i,i-1)}moveRight(e){let i=this.findColumnIndex(e);this.move(i,i+1)}getMinColumnWidth(){return this.MIN_COLUMN_WIDTH}move(e,i){if(!this.validateMoveIndex(e)||!this.validateMoveIndex(i))return;let t=this.columns[e];this.columns[e]=this.columns[i],this.columns[i]=t}validateMoveIndex(e){return e>=0}getCompositionId(){return this.compositionId}findColumnIndex(e){return this.columns.findIndex(i=>i.getId().equals(e))}},bw=class n extends Au{constructor(e,i,t,r,o,s,a){super(e,i,s,!0,a,t,r,o,void 0)}static fromEntity(e){return new n(e.getId(),e.getField(),e.getHeader(),e.getAlign(),e.getView(),e.getColumnConfig(),e.getPresentation())}},vw=class{convertMany(e){return e.map(i=>this.convert(i))}convert(e){return bw.fromEntity(e)}},_w=class extends or{constructor(e){super(e,"CompositionColumnMovedLeftAggregateEvent")}toDomainEvent(){return new Eu(this.getAggregateId())}},yw=class extends or{constructor(e){super(e,"CompositionColumnMovedRightAggregateEvent")}toDomainEvent(){return new ku(this.getAggregateId())}},ww=class extends or{constructor(e){super(e,"ColumnsSetAggregateEvent")}toDomainEvent(){return new qc(this.getAggregateId())}},xw=class extends or{constructor(e){super(e,"SchemaCreatedEvent")}toDomainEvent(){return new Cg(this.getAggregateId())}},Fz=new pg(new gg("-1"),"",100),Cw=class extends Rs{allColumns=[];baseColumns;baseParams;width;containerInDOMWidth;resizeWidthEnabled=!0;columnFactory;groupFactory;activeColumnContainer;activeColumnEntityConverter=new vw;groups=new kc;columnNameToGroupId=new Map;constructor(e,i,t,r=[],o,s){super(e,"CompositionAggregate");let a=r.map(b=>b.getColumn());this.baseParams=r,this.baseColumns=a,this.columnFactory=i,this.groupFactory=t,this.width=o,this.allColumns=this.columnFactory.create(r);let u=this.activeColumnEntityConverter.convertMany(this.getEnabledColumns());this.activeColumnContainer=new fw(this.getId(),u,o,a),s!=null&&(this.resizeWidthEnabled=s)}createEvent(){return xw}getColumns(){return this.allColumns}getActiveColumns(){return this.activeColumnContainer.getColumns()}getWidth(){return this.resizeWidthEnabled?this.containerInDOMWidth:this.width}isResizeEnabled(){return this.resizeWidthEnabled}isReady(){return!!this.getWidth()&&this.getActiveColumns().length>0}setGroups(e){for(let i=0;i<e.length;i+=1){let t=e[i];if(t.columns!==void 0){let r=this.groupFactory.create(t);this.groups.set(r.id,r),t.columns.forEach((o,s)=>{this.columnNameToGroupId.set(o.header,r.id)})}else this.columnNameToGroupId.set(t.header,Fz.id)}}setColumns(e){this.allColumns=this.columnFactory.create(e);let i=e.map(r=>r.getColumn()),t=this.activeColumnEntityConverter.convertMany(this.getEnabledColumns());this.activeColumnContainer.setColumns(t,i),this.addEvent(new ww(this.getId()))}setContainerWidth(e){this.setContainerWidthWithEvent(e),this.recalculateColumns()}setWidth(e){this.setWidthWithEvent(e),this.setResizeWidthWithEvent(!1),this.recalculateColumns()}setResizeWidth(e){this.setResizeWidthWithEvent(e)}changeSort(e){this.addEvent(this.activeColumnContainer.changeSort(e))}enableColumn(e,i){let t=-1;if(this.allColumns.forEach((r,o)=>{if(r.getId().getId()===e.getId()){let s=r.isEnabled();r.setEnabled(i),s!==i&&(t=o)}}),t>0)if(i){let r=this.activeColumnEntityConverter.convert(this.allColumns[t]);this.activeColumnContainer.addColumn(r,t)}else this.activeColumnContainer.removeColumn(t);this.recalculateColumns(),this.addEvent(new mw(this.getId(),this.getActiveColumns()))}moveLeft(e){let i=this.findColumnIndex(e),t,r=-1;for(let o=i-1;o>=0;o-=1){let s=this.allColumns[o];if(s.isEnabled()){t=s,r=o;break}}if(t&&r>=0&&i>=0){let o=this.allColumns[i];this.allColumns[i]=t,this.allColumns[r]=o}this.activeColumnContainer.moveLeft(e),this.addEvent(new _w(this.getId()))}moveRight(e){let i=this.findColumnIndex(e),t,r=-1;for(let o=i+1;o<this.allColumns.length;o+=1){let s=this.allColumns[o];if(s.isEnabled()){t=s,r=o;break}}if(t&&r>=0&&i>=0){let o=this.allColumns[i];this.allColumns[i]=t,this.allColumns[r]=o}this.activeColumnContainer.moveRight(e),this.addEvent(new yw(this.getId()))}recalculateColumns(){let e=this.activeColumnEntityConverter.convertMany(this.getEnabledColumns());this.activeColumnContainer.setColumns(e,e.map(i=>i.getColumnConfig()))}setWidthWithEvent(e){let t=new Pu(this.getMinColumnWidth()).calculateMinWidth(this.activeColumnContainer.getColumnWidths());t>e?this.width=t:this.width=e,this.activeColumnContainer.setWidth(this.getWidth()),this.addEvent(new dw(this.getId()))}setContainerWidthWithEvent(e){let t=new Pu(this.getMinColumnWidth()).calculateMinWidth(this.activeColumnContainer.getColumnWidths());t>e?this.containerInDOMWidth=t:this.containerInDOMWidth=e,this.activeColumnContainer.setWidth(this.getWidth()),this.addEvent(new uw(this.getId(),e))}setResizeWidthWithEvent(e){this.resizeWidthEnabled=e,this.activeColumnContainer.setWidth(this.getWidth()),this.addEvent(new hw(this.getId()))}getEnabledColumns(){return this.allColumns.filter(e=>e.isEnabled())}findColumnIndex(e){return this.allColumns.findIndex(i=>i.getId().equals(e))}getMinColumnWidth(){return this.activeColumnContainer.getMinColumnWidth()}},Pz=(()=>{class n extends Ds{columnFactory;groupFactory;constructor(i,t){super(),this.columnFactory=i,this.groupFactory=t}static services=[HT,fg];create(i){return new Cw(i,this.columnFactory,this.groupFactory)}}return n})(),ET="CompositionAggregate",Iw=class{defineAggregate(){return{aggregateKey:ET,createCommandHandler:lw,factory:Pz,repository:IT}}registerKey(){return ET}registerProviders(e){e.provide(UT),e.provide(vg,IT),e.provide(Tu),e.provide(HT),e.provide(mg),e.provide(co),e.provide(ea),e.provide(fg),e.provide(Fu),e.provide(Xc),e.provide(EI),e.provide(Zc,GT)}registerCommandHandlers(){return[wz,rw,ow,xz,Cz,sw,Iz,Ez,Az]}registerDomainEventHandler(){return[]}registerMultiDomainEventHandler(){return[kz]}},Oz=(()=>{class n extends oi{sanitizer;element;safeHTML;constructor(i,t){super(t),this.sanitizer=i,this.addClassToHost("gui-h-full"),this.addClassToHost("gui-w-full")}ngOnChanges(){this.safeHTML=this.sanitizer.bypassSecurityTrustHtml(this.element.value)}getSelectorName(){return"gui-function-view"}static \u0275fac=function(t){return new(t||n)(l(Io),l(S))};static \u0275cmp=k({type:n,selectors:[["gui-function-view"]],inputs:{element:"element"},features:[R,re],decls:1,vars:1,consts:[[1,"gui-h-full","gui-flex","gui-items-center",3,"innerHTML"]],template:function(t,r){t&1&&C(0,"div",0),t&2&&g("innerHTML",r.safeHTML,hs)},encapsulation:2,changeDetection:0})}return n})(),WT=(()=>{class n extends oi{value;constructor(i){super(i)}getSelectorName(){return"gui-percentage-view"}static \u0275fac=function(t){return new(t||n)(l(S))};static \u0275cmp=k({type:n,selectors:[["gui-percentage-view","value",""]],inputs:{value:"value"},features:[R],attrs:wI,decls:1,vars:1,template:function(t,r){t&1&&T(0),t&2&&we(" ",r.value," % ")},encapsulation:2,changeDetection:0})}return n})(),Nz=(()=>{class n extends oi{value;showPercentage=!1;width;constructor(i){super(i)}ngOnChanges(i){ot(i.value,()=>{this.width=this.value>100?100:this.value})}getSelectorName(){return"gui-bar-view"}static \u0275fac=function(t){return new(t||n)(l(S))};static \u0275cmp=k({type:n,selectors:[["gui-bar-view","value",""]],inputs:{value:"value",showPercentage:"showPercentage"},features:[R,re],attrs:wI,decls:3,vars:3,consts:[[1,"gui-percentage-bar"],[1,"gui-percentage"],[3,"value",4,"ngIf"],[3,"value"]],template:function(t,r){t&1&&(f(0,"div",0),C(1,"div",1),j(2,DV,1,1,"gui-percentage-view",2),v()),t&2&&(p(),Qe("width",r.width,"%"),p(),g("ngIf",r.showPercentage))},dependencies:[rt,WT],encapsulation:2,changeDetection:0})}return n})(),kI=(()=>{class n{sanitizer;constructor(i){this.sanitizer=i}transform(i,t){switch(t){case"html":return this.sanitizer.bypassSecurityTrustHtml(i);case"style":return this.sanitizer.bypassSecurityTrustStyle(i);case"script":return this.sanitizer.bypassSecurityTrustScript(i);case"url":return this.sanitizer.bypassSecurityTrustUrl(i);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(i);default:throw new Error(`Invalid safe type specified: ${t}`)}}static \u0275fac=function(t){return new(t||n)(l(Io,16))};static \u0275pipe=Al({name:"guiSafe",type:n,pure:!0})}return n})(),jz=(()=>{class n extends oi{value;isHtml=!1;constructor(i,t,r){super(r),i!==null&&this.addClassToHost("gui-bold"),t!==null&&this.addClassToHost("gui-italic")}ngOnChanges(){this.isHtml=this.value.type===eg.HTML}getSelectorName(){return"gui-text-view"}static \u0275fac=function(t){return new(t||n)(Mi("bold"),Mi("italic"),l(S))};static \u0275cmp=k({type:n,selectors:[["gui-view-text","value",""]],inputs:{value:"value"},features:[R,re],attrs:wI,decls:3,vars:2,consts:[["text",""],[4,"ngIf","ngIfElse"],[3,"innerHTML"]],template:function(t,r){if(t&1&&j(0,TV,3,4,"ng-container",1)(1,MV,2,1,"ng-template",null,0,qe),t&2){let o=wi(2);g("ngIf",r.isHtml)("ngIfElse",o)}},dependencies:[rt,kI],encapsulation:2,changeDetection:0})}return n})(),Lz=(()=>{class n extends oi{sanitizer;element;safeHTML;constructor(i,t){super(t),this.sanitizer=i,this.addClassToHost("gui-h-full"),this.addClassToHost("gui-w-full")}ngOnChanges(){this.safeHTML=this.sanitizer.bypassSecurityTrustHtml(this.element.value)}getSelectorName(){return"gui-html-view"}static \u0275fac=function(t){return new(t||n)(l(Io),l(S))};static \u0275cmp=k({type:n,selectors:[["gui-html-view"]],inputs:{element:"element"},features:[R,re],decls:1,vars:1,consts:[[1,"gui-h-full","gui-flex","gui-items-center",3,"innerHTML"]],template:function(t,r){t&1&&C(0,"div",0),t&2&&g("innerHTML",r.safeHTML,hs)},encapsulation:2,changeDetection:0})}return n})(),Vz=(()=>{class n{textTemplate;numberTemplate;chipTemplate;linkTemplate;imageTemplate;checkboxTemplate;boldTemplate;italicTemplate;customTemplate;functionTemplate;htmlTemplate;dateTemplate;barTemplate;percentageBarTemplate;percentageTemplate;getTemplate(i){switch(i){case ie.TEXT:return this.textTemplate;case ie.NUMBER:return this.numberTemplate;case ie.CHIP:return this.chipTemplate;case ie.LINK:return this.linkTemplate;case ie.IMAGE:return this.imageTemplate;case ie.CHECKBOX:return this.checkboxTemplate;case ie.BOLD:return this.boldTemplate;case ie.ITALIC:return this.italicTemplate;case ie.CUSTOM:return this.customTemplate;case ie.FUNCTION:return this.functionTemplate;case ie.HTML:return this.htmlTemplate;case ie.DATE:return this.dateTemplate;case ie.BAR:return this.barTemplate;case ie.PERCENTAGE_BAR:return this.percentageBarTemplate;case ie.PERCENTAGE:return this.percentageTemplate;default:return this.textTemplate}}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=k({type:n,selectors:[["ng-component"]],viewQuery:function(t,r){if(t&1&&($(RV,7,Be),$(TT,7,Be),$(AV,7,Be),$(FV,7,Be),$(PV,7,Be),$(MT,7,Be),$(OV,7,Be),$(NV,7,Be),$(jV,7,Be),$(LV,7,Be),$(VV,7,Be),$(RT,7,Be),$(BV,7,Be),$(zV,7,Be),$(HV,7,Be)),t&2){let o;V(o=B())&&(r.textTemplate=o.first),V(o=B())&&(r.numberTemplate=o.first),V(o=B())&&(r.chipTemplate=o.first),V(o=B())&&(r.linkTemplate=o.first),V(o=B())&&(r.imageTemplate=o.first),V(o=B())&&(r.checkboxTemplate=o.first),V(o=B())&&(r.boldTemplate=o.first),V(o=B())&&(r.italicTemplate=o.first),V(o=B())&&(r.customTemplate=o.first),V(o=B())&&(r.functionTemplate=o.first),V(o=B())&&(r.htmlTemplate=o.first),V(o=B())&&(r.dateTemplate=o.first),V(o=B())&&(r.barTemplate=o.first),V(o=B())&&(r.percentageBarTemplate=o.first),V(o=B())&&(r.percentageTemplate=o.first)}},decls:30,vars:0,consts:[["text",""],["number",""],["chip",""],["link",""],["image",""],["checkbox",""],["bold",""],["italic",""],["custom",""],["function",""],["html",""],["date",""],["bar",""],["percentageBar",""],["percentage",""],[3,"value"],[1,"gui-cell-number"],["gui-button","","link","true",3,"href"],[3,"src"],[1,"gui-cell-boolean"],[3,"checked","disabled"],["bold","",3,"value"],["italic","",3,"value"],[3,"element"],[1,"gui-view-text"],[3,"value","showPercentage"]],template:function(t,r){t&1&&j(0,UV,1,1,"ng-template",null,0,qe)(2,$V,2,1,"ng-template",null,1,qe)(4,GV,2,1,"ng-template",null,2,qe)(6,WV,2,2,"ng-template",null,3,qe)(8,qV,1,1,"ng-template",null,4,qe)(10,YV,2,2,"ng-template",null,5,qe)(12,QV,1,1,"ng-template",null,6,qe)(14,KV,1,1,"ng-template",null,7,qe)(16,XV,1,1,"ng-template",null,8,qe)(18,ZV,1,1,"ng-template",null,9,qe)(20,JV,1,1,"ng-template",null,10,qe)(22,e4,3,4,"ng-template",null,11,qe)(24,t4,1,2,"ng-template",null,12,qe)(26,i4,1,2,"ng-template",null,13,qe)(28,n4,1,1,"ng-template",null,14,qe)},dependencies:[ay,Vo,no,Oz,Nz,WT,jz,Lz,Yh],encapsulation:2})}return n})(),Eg=class{templatesComponentDefinition;componentFactoryResolver;templates=new Map;templatesComponent=null;constructor(e,i){this.templatesComponentDefinition=e,this.componentFactoryResolver=i,this.createTemplatesComponent()}getTemplates(){return this.templates}destroy(){this.templatesComponent&&(this.templatesComponent.destroy(),this.templatesComponent=null)}createTemplatesComponent(){let e=this.componentFactoryResolver.resolveComponentFactory(this.templatesComponentDefinition),i=ye.create({providers:[]});this.templatesComponent=e.create(i),this.generateMap()}generateMap(){this.generateMapKeys().forEach(e=>{this.findAndSetTemplate(e)})}findAndSetTemplate(e){let i=this.templatesComponent.instance.getTemplate(e);this.templates.set(e,i)}},kg=(()=>{class n extends Eg{constructor(i){super(Vz,i)}static services=[dt];generateMapKeys(){return Object.keys(ie).map(i=>ie[i])}static \u0275fac=function(t){return new(t||n)(w(dt))};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),SI=(()=>{class n{columnTemplateFactory;constructor(i){this.columnTemplateFactory=i}static services=[kg];findTemplate(i){return this.columnTemplateFactory.getTemplates().get(i)}static \u0275fac=function(t){return new(t||n)(w(kg))};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),Jc=function(n){return n[n.SUBMIT=0]="SUBMIT",n[n.BLUR=1]="BLUR",n[n.CANCEL=2]="CANCEL",n}(Jc||{}),DI=(()=>{class n extends Et{value;valueChanges;status;focus;parent;ENTER_KEY_CODE=13;ESC_KEY_CODE=27;constructor(i,t){super(i,t)}submit(){this.emitStatus(Jc.SUBMIT)}cancel(){this.emitStatus(Jc.CANCEL)}emitStatus(i){this.status&&this.status.emit(i)}static \u0275fac=function(t){return new(t||n)(l(ee),l(S))};static \u0275dir=G({type:n,inputs:{value:"value",valueChanges:"valueChanges",status:"status",focus:"focus",parent:"parent"},features:[R]})}return n})(),qT=(()=>{class n extends DI{formBuilder;inputRef;filterForm;filterFieldName="phrase";constructor(i,t,r){super(i,t),this.formBuilder=r,this.filterForm=this.formBuilder.group({[this.filterFieldName]:[""]})}ngOnChanges(i){i.value!==void 0&&this.filterForm.get(this.filterFieldName).setValue(this.value)}ngOnInit(){this.observeChanges()}ngAfterViewInit(){let i=this.inputRef.nativeElement;this.focusField(i),this.emitValueChange(i.value),Kd(i,"blur").pipe(this.takeUntil()).subscribe(()=>{this.unsubscribe(),this.submit()});let t=Kd(i,"keyup");t.pipe(He(r=>r.keyCode===this.ENTER_KEY_CODE),this.takeUntil()).subscribe(()=>{this.unsubscribe(),this.submit()}),t.pipe(He(r=>r.keyCode===this.ESC_KEY_CODE),this.takeUntil()).subscribe(()=>{this.unsubscribe(),this.cancel()})}focusField(i){this.focus&&i.focus()}observeChanges(){No(this.filterForm.controls[this.filterFieldName].valueChanges).pipe(this.takeUntil()).subscribe(i=>{this.emitValueChange(i)})}emitValueChange(i){this.valueChanges&&this.valueChanges.emit(i)}static \u0275fac=function(t){return new(t||n)(l(ee),l(S),l(Yr))};static \u0275dir=G({type:n,viewQuery:function(t,r){if(t&1&&$(r4,7),t&2){let o;V(o=B())&&(r.inputRef=o.first)}},features:[R,re]})}return n})(),Bz=(()=>{class n extends qT{constructor(i,t,r){super(i,t,r)}focusField(i){this.focus&&(i.focus(),i.setSelectionRange(0,i.value.length))}getSelectorName(){return"gui-string-edit"}static \u0275fac=function(t){return new(t||n)(l(ee),l(S),l(Yr))};static \u0275cmp=k({type:n,selectors:[["gui-string-edit"]],features:[R],decls:3,vars:2,consts:[["input",""],[3,"formGroup"],["type","type",1,"gui-input",3,"formControlName"]],template:function(t,r){t&1&&(f(0,"form",1),C(1,"input",2,0),v()),t&2&&(g("formGroup",r.filterForm),p(),g("formControlName",r.filterFieldName))},dependencies:[wr,gi,Vi,yr,er,qr],encapsulation:2,changeDetection:0})}return n})(),zz=(()=>{class n extends qT{constructor(i,t,r){super(i,t,r)}getSelectorName(){return"gui-number-edit"}static \u0275fac=function(t){return new(t||n)(l(ee),l(S),l(Yr))};static \u0275cmp=k({type:n,selectors:[["gui-number-edit"]],features:[R],decls:3,vars:2,consts:[["input",""],[3,"formGroup"],["type","number",1,"gui-input",3,"formControlName"]],template:function(t,r){t&1&&(f(0,"form",1),C(1,"input",2,0),v()),t&2&&(g("formGroup",r.filterForm),p(),g("formControlName",r.filterFieldName))},dependencies:[wr,gi,ks,Vi,yr,er,qr],encapsulation:2,changeDetection:0})}return n})(),Hz=(()=>{class n extends DI{changeDetectorRef;checkboxRef;filterFieldName="booleanEdit";constructor(i,t){super(i,t),this.changeDetectorRef=i}toggle(i){this.valueChanges.emit(i),this.submit()}getSelectorName(){return"gui-boolean-edit"}static \u0275fac=function(t){return new(t||n)(l(ee),l(S))};static \u0275cmp=k({type:n,selectors:[["gui-boolean-edit"]],viewQuery:function(t,r){if(t&1&&$(MT,7,S),t&2){let o;V(o=B())&&(r.checkboxRef=o.first)}},features:[R],decls:3,vars:2,consts:[["checkbox",""],[1,"gui-cell-boolean"],[3,"changed","checked","name"]],template:function(t,r){if(t&1){let o=Y();f(0,"span",1)(1,"gui-checkbox",2,0),E("changed",function(a){return A(o),F(r.toggle(a))}),v()()}t&2&&(p(),g("checked",r.value)("name",r.filterFieldName))},dependencies:[Vo],encapsulation:2,changeDetection:0})}return n})(),Uz=(()=>{class n extends DI{changeDetectorRef;datePickerRef;filterFieldName="dateEdit";opened=!1;localStreamCloser=new Gp;constructor(i,t){super(i,t),this.changeDetectorRef=i}ngAfterViewInit(){let i=this.datePickerRef.nativeElement.querySelector(".gui-date-picker-input"),t=Kd(i,"keyup");t.pipe(He(r=>r.keyCode===this.ENTER_KEY_CODE),this.localStreamCloser.takeUntil()).subscribe(()=>{this.localStreamCloser.unsubscribe(),this.submit()}),t.pipe(He(r=>r.keyCode===this.ESC_KEY_CODE),this.localStreamCloser.takeUntil()).subscribe(()=>{this.localStreamCloser.unsubscribe(),this.cancel()})}ngOnDestroy(){this.localStreamCloser.unsubscribe(),super.ngOnDestroy()}toggle(i){this.valueChanges.emit(i)}dialogOpened(i){this.opened=i,i||(this.localStreamCloser.unsubscribe(),this.submit())}getSelectorName(){return"gui-date-edit"}static \u0275fac=function(t){return new(t||n)(l(ee),l(S))};static \u0275cmp=k({type:n,selectors:[["gui-date-edit"]],viewQuery:function(t,r){if(t&1&&$(o4,7,S),t&2){let o;V(o=B())&&(r.datePickerRef=o.first)}},features:[R],decls:2,vars:5,consts:[["datepicker",""],[3,"dialogOpened","dateSelected","selectDate","name","openDialog","onlyDialog","parentElement"]],template:function(t,r){if(t&1){let o=Y();f(0,"gui-date-picker",1,0),E("dialogOpened",function(a){return A(o),F(r.dialogOpened(a))})("dateSelected",function(a){return A(o),F(r.toggle(a))}),v()}t&2&&g("selectDate",r.value)("name",r.filterFieldName)("openDialog",!0)("onlyDialog",!1)("parentElement",r.parent)},dependencies:[mT],encapsulation:2,changeDetection:0})}return n})(),$z=(()=>{class n{stringTemplate;numberTemplate;booleanTemplate;dateTemplate;emptyTemplate;getTemplate(i){switch(i){case pe.STRING:return this.stringTemplate;case pe.NUMBER:return this.numberTemplate;case pe.BOOLEAN:return this.booleanTemplate;case pe.DATE:return this.dateTemplate;default:return this.emptyTemplate}}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=k({type:n,selectors:[["ng-component"]],viewQuery:function(t,r){if(t&1&&($(s4,7,Be),$(TT,7,Be),$(a4,7,Be),$(RT,7,Be),$(c4,7,Be)),t&2){let o;V(o=B())&&(r.stringTemplate=o.first),V(o=B())&&(r.numberTemplate=o.first),V(o=B())&&(r.booleanTemplate=o.first),V(o=B())&&(r.dateTemplate=o.first),V(o=B())&&(r.emptyTemplate=o.first)}},decls:10,vars:0,consts:[["string",""],["number",""],["boolean",""],["date",""],["empty",""],[3,"valueChanges","value","status","focus"],[3,"valueChanges","value","status","focus","parent"]],template:function(t,r){t&1&&j(0,l4,1,4,"ng-template",null,0,qe)(2,d4,1,4,"ng-template",null,1,qe)(4,u4,1,4,"ng-template",null,2,qe)(6,h4,1,5,"ng-template",null,3,qe)(8,m4,0,0,"ng-template",null,4,qe)},dependencies:[Bz,zz,Hz,Uz],encapsulation:2})}return n})(),Sg=(()=>{class n extends Eg{constructor(i){super($z,i)}static services=[dt];generateMapKeys(){return Object.keys(pe).map(i=>pe[i])}static \u0275fac=function(t){return new(t||n)(w(dt))};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),TI=(()=>{class n{editTemplateFactory;constructor(i){this.editTemplateFactory=i}static services=[Sg];findTemplate(i){return this.editTemplateFactory.getTemplates().get(i)}static \u0275fac=function(t){return new(t||n)(w(Sg))};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),Ew=class{groups;showGroups;constructor(e,i){this.groups=e,this.showGroups=i}getGroups(){return this.groups}isVisible(){return this.showGroups}},Ou=class n extends tt{static default=new Ew([],!1);constructor(){super(n.default)}},Gz=(()=>{class n extends On{compositionDispatcher;compositionGroupRepository;columnHighlightArchive;constructor(i,t,r){super(),this.compositionDispatcher=i,this.compositionGroupRepository=t,this.columnHighlightArchive=r}static services=[Tu,Ou,Fu];create(i){this.compositionDispatcher.create(i)}setColumns(i,t){this.compositionDispatcher.setColumns(t,i)}setGroups(i,t){this.compositionDispatcher.setGroups(t,i)}setWidth(i,t){this.compositionDispatcher.setWidth(t,i)}setContainerWidth(i,t){this.compositionDispatcher.setContainerWidth(t,i)}setResizeWidth(i,t){this.compositionDispatcher.setResizeWidth(t,i)}enableColumn(i,t){this.compositionDispatcher.setColumnEnabled(t,this.toColumnId(i),!0)}disableColumn(i,t){this.compositionDispatcher.setColumnEnabled(t,this.toColumnId(i),!1)}moveLeft(i,t){this.compositionDispatcher.moveLeft(t,this.toColumnId(i))}moveRight(i,t){this.compositionDispatcher.moveRight(t,this.toColumnId(i))}highlightColumn(i,t){this.columnHighlightArchive.toggle(t,new Kc(i.getId()))}toColumnId(i){return new Kc(i.getId())}}return n})(),Wz=(()=>{class n extends Gi{compositionRepository;compositionGroupArchive;columnHighlightArchive;constructor(i,t,r){super(),this.compositionRepository=i,this.compositionGroupArchive=t,this.columnHighlightArchive=r}static services=[Zc,Ou,Fu];onWidth(i){return this.compositionRepository.on(i).pipe(te(t=>t.getWidth()))}onContainerWidth(i){return this.compositionRepository.on(i).pipe(te(t=>t.getContainerWidth()))}onWidthForEachColumn(i){return this.compositionRepository.on(i).pipe(te(t=>t.getAllColumns().map(r=>r.width)))}onHeaderColumns(i){return this.compositionRepository.on(i).pipe(te(t=>t.getActiveHeaderColumns()))}onAllColumns(i){return this.compositionRepository.on(i).pipe(te(t=>t.getHeaderColumns()))}onSortOrder(i,t){return this.compositionRepository.on(t).pipe(te(r=>r.getActiveHeaderColumns()),te(r=>r.filter(o=>o.getFieldId().equals(i))),He(r=>r.length>0),te(r=>r[0].getSortStatus()))}onTemplateColumns(i){return this.compositionRepository.on(i).pipe(te(t=>t.getTemplateColumns()))}onResizeWidth(i){return this.compositionRepository.on(i).pipe(te(t=>t.isResizeWidthEnabled()))}onGroups(i){return this.compositionGroupArchive.on(i)}onHighlightedColumn(i,t){return this.columnHighlightArchive.on(t).pipe(te(r=>r.isHighlighted(i)))}findColumnNames(i){let t=[];return this.compositionRepository.find(i).ifPresent(r=>{t=r.getAllColumns().map(o=>o.getName())}),t}}return n})(),kw=class extends Qo{constructor(){super()}onColumnsChanged(e){return this.onEvent(e,qc)}onContainerWidthChanged(e){return this.onEvent(e,Yc).pipe(te(i=>i.getPayload()),He(i=>!!i))}},Sw=class extends Yo{configure(e){if(e!=null&&Array.isArray(e)&&e.length===0)return[];let i=e[0];return Object.keys(i).map((t,r)=>this.toColumnConfig(t,i))}toColumnConfig(e,i){return{field:this.getField(e),header:this.getHeader(e),type:this.getType(e,i)}}getField(e){return e}getHeader(e){return e[0].toUpperCase()+e.slice(1)}getType(e,i){return typeof i[e]=="string"?pe.STRING:typeof i[e]=="number"?pe.NUMBER:i[e]instanceof Date?pe.DATE:typeof i[e]=="boolean"?pe.BOOLEAN:pe.UNKNOWN}},Dw=class{registerProviders(e){e.provide(EI),e.provide(Zc,GT),e.provide(xg),e.provide(SI),e.provide(kg),e.provide(Sg),e.provide(TI),e.provide(Xc),e.provide($T),e.provide(Ou),e.provide(On,Gz),e.provide(Gi,Wz),e.provide(Qo,kw),e.provide(Yo,Sw)}};function qz(){new fi(new Dw,new Iw).init()}var hh=(()=>{class n{compositionWarehouse;viewTemplateRepository;editTemplateRepository;constructor(i,t,r){this.compositionWarehouse=i,this.viewTemplateRepository=t,this.editTemplateRepository=r}onHeaderCols(i){return this.compositionWarehouse.onHeaderColumns(i).pipe(te(t=>t.map(r=>{let o;typeof r.getHeader()=="function"?o=this.findViewTemplate(ie.FUNCTION):o=this.findViewTemplate(ie.HTML);let s=this.findEditTemplate(r.getDataType());return new Jp(o,s,r)})))}onAll(i){return this.compositionWarehouse.onAllColumns(i).pipe(te(t=>t.map(r=>{let o;typeof r.getHeader()=="function"?o=this.findViewTemplate(ie.FUNCTION):o=this.findViewTemplate(ie.HTML);let s=this.findEditTemplate(r.getDataType());return new Jp(o,s,r)})))}onTemplateCols(i){return this.compositionWarehouse.onTemplateColumns(i).pipe(te(t=>t.map(r=>{let o;r.getCellView()===ie.NG_TEMPLATE?o=r.getColumnConfig().templateRef:o=this.findViewTemplate(r.getCellView());let s=this.findEditTemplate(r.getDataType());return new iw(o,s,r)})))}findViewTemplate(i){return i===ie.FUNCTION?this.viewTemplateRepository.findTemplate(ie.FUNCTION):this.viewTemplateRepository.findTemplate(i)}findEditTemplate(i){return this.editTemplateRepository.findTemplate(i)}static \u0275fac=function(t){return new(t||n)(w(Gi),w(SI),w(TI))};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),aa=class extends xr{constructor(){super()}},Yz=(()=>{class n extends Et{structureSummariesEventRepository;translationService;sourceWarehouse;enabled;state=M(jt);compositionId=M(Nt);structureId=M(Ie);formationWarehouse=M($i);compositionTemplateWarehouse=M(hh);headerColumns$=this.compositionTemplateWarehouse.onHeaderCols(this.compositionId);state$=this.state.select();checkboxSelection$=this.selectCheckboxSelection();constructor(i,t,r,o,s){super(i,t),this.structureSummariesEventRepository=r,this.translationService=o,this.sourceWarehouse=s,this.addClassToHost("gui-flex"),this.state.connect("summariesTranslations",this.selectSummariesTranslations()),this.state.connect("sourceEmpty",this.selectSourceEmpty()),this.state.connect("summaries",this.selectSummaries())}isSummariesTypePresent(i){return i!=null}getSelectorName(){return"gui-structure-summaries-panel"}selectCheckboxSelection(){return this.formationWarehouse.onType(this.structureId).pipe(te(i=>i===li.CHECKBOX))}selectSourceEmpty(){return this.sourceWarehouse.onItemsSize(this.structureId).pipe(te(i=>i===0))}selectSummariesTranslations(){return this.translationService.onTranslation().pipe(te(i=>new tw(i.summariesDistinctValuesTooltip,i.summariesAverageTooltip,i.summariesMinTooltip,i.summariesMaxTooltip,i.summariesMedTooltip,i.summariesCountTooltip)))}selectSummaries(){return this.structureSummariesEventRepository.onSummariesChanged(this.structureId.toReadModelRootId()).pipe(te(i=>i.getSummaries()))}static \u0275fac=function(t){return new(t||n)(l(ee),l(S),l(aa),l(rr),l(pn))};static \u0275cmp=k({type:n,selectors:[["div","gui-structure-summaries-panel","","enabled",""]],inputs:{enabled:"enabled"},features:[_e([jt]),R],attrs:p4,decls:1,vars:1,consts:[[4,"guiLet"],[4,"ngIf"],["class",`gui-structure-summaries-cell gui-row-checkbox gui-flex gui-justify-between
	 gui-overflow-hidden gui-relative gui-py-0 gui-px-6 gui-box-border
	 gui-leading-4 gui-whitespace-nowrap gui-overflow-ellipsis`,4,"ngIf"],["class","gui-structure-summaries-cell",3,"width",4,"ngFor","ngForOf"],[1,"gui-structure-summaries-cell","gui-row-checkbox","gui-flex","gui-justify-between","gui-overflow-hidden","gui-relative","gui-py-0","gui-px-6","gui-box-border","gui-leading-4","gui-whitespace-nowrap","gui-overflow-ellipsis"],[1,"gui-structure-summaries-cell"],["class","gui-structure-summaries-value",4,"ngIf"],[1,"gui-structure-summaries-value"],[3,"gui-tooltip"],[1,"gui-summaries-value"]],template:function(t,r){t&1&&j(0,D4,2,1,"ng-container",0),t&2&&g("guiLet",r.state$)},dependencies:[Ht,rt,Mp,Ci,gn,ll],encapsulation:2,changeDetection:0})}return n})(),Qz=(()=>{class n extends LT{constructor(i,t){super(i,t)}getSelectorName(){return"gui-info-dialog"}static \u0275fac=function(t){return new(t||n)(l(S),l(ee))};static \u0275cmp=k({type:n,selectors:[["div","gui-info-dialog",""]],features:[R],attrs:T4,decls:31,vars:0,consts:[[1,"gui-structure-info-modal","gui-flex","gui-flex-col","gui-p-0","gui-text-lg","gui-w-full"],[1,"gui-text-3xl","gui-mb-8","gui-font-bold"],[1,"gui-text-xl","gui-mb-18","gui-font-bold"],[1,"gui-quote","gui-text-2xl","gui-italic","gui-font-light"],[1,"gui-m-0","gui-px-0","gui-pt-10","gui-pb-6"],[1,"gui-font-bold"],[1,"gui-m-0","gui-pl-9","gui-list-none"],["href","https://generic-ui.com/",1,"gui-mb-6","gui-no-underline","gui-leading-6"],["href","https://generic-ui.com/guide/",1,"gui-mb-6","gui-no-underline","gui-leading-6"],["href","https://github.com/generic-ui/generic-ui/tree/master/ngx-grid",1,"gui-mb-6","gui-no-underline","gui-leading-6"],["href","https://github.com/generic-ui/generic-ui/issues",1,"gui-mb-6","gui-no-underline","gui-leading-6"]],template:function(t,r){t&1&&(f(0,"div",0)(1,"p",1),T(2," Generic UI Grid "),v(),f(3,"p",2),T(4," ver. 0.21.0 "),v(),f(5,"p",3),T(6,' "The best way to success is to help others succeed." '),v(),C(7,"br"),f(8,"section",4)(9,"p",5),T(10,"Links:"),v(),f(11,"ul",6)(12,"li")(13,"a",7),T(14,"Website"),v()(),f(15,"li")(16,"a",8),T(17,"Documentation"),v()(),f(18,"li")(19,"a",9),T(20,"Github"),v()()(),C(21,"br"),f(22,"p",5),T(23,"Feedback:"),v(),f(24,"ul",6)(25,"li")(26,"a",10),T(27,"Report a bug"),v()(),f(28,"li")(29,"a",10),T(30,"Suggest an idea"),v()()()()())},encapsulation:2,changeDetection:0})}return n})(),YT=(()=>{class n extends Et{compositionId;compositionCommandInvoker;compositionTemplateWarehouse;state=M(jt);state$=this.state.select();constructor(i,t,r,o,s){super(i,t),this.compositionId=r,this.compositionCommandInvoker=o,this.compositionTemplateWarehouse=s,this.addClassToHost("gui-block"),this.state.connect("columns",this.selectColumns()),this.state.connect("enabledColumnsCount",this.selectEnabledColumnsCount())}toggleColumn(i){event.stopPropagation(),i.isEnabled()?this.compositionCommandInvoker.disableColumn(i.getColumnDefinitionId(),this.compositionId):this.compositionCommandInvoker.enableColumn(i.getColumnDefinitionId(),this.compositionId)}getSelectorName(){return"gui-structure-column-manager"}selectColumns(){return this.compositionTemplateWarehouse.onAll(this.compositionId)}selectEnabledColumnsCount(){return this.compositionTemplateWarehouse.onAll(this.compositionId).pipe(te(i=>i.map(t=>+t.isEnabled()).reduce((t,r)=>t+r)))}static \u0275fac=function(t){return new(t||n)(l(ee),l(S),l(Nt),l(On),l(hh))};static \u0275cmp=k({type:n,selectors:[["div","gui-structure-column-manager",""]],features:[_e([jt]),R],attrs:M4,decls:1,vars:1,consts:[["class","gui-structure-ordered-list gui-p-0 gui-my-4 gui-list-none gui-overflow-auto",4,"guiLet"],[1,"gui-structure-ordered-list","gui-p-0","gui-my-4","gui-list-none","gui-overflow-auto"],["class","gui-px-13 gui-py-6 gui-cursor-pointer",3,"click",4,"ngFor","ngForOf"],[1,"gui-px-13","gui-py-6","gui-cursor-pointer",3,"click"],[3,"checked","disabled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,r){t&1&&j(0,F4,2,1,"ol",0),t&2&&g("guiLet",r.state$)},dependencies:[Ht,gs,Vo,Ci],encapsulation:2,changeDetection:0})}return n})(),Kz=(()=>{class n extends Et{constructor(i,t){super(i,t)}getSelectorName(){return"gui-structure-dialog-column-manager"}static \u0275fac=function(t){return new(t||n)(l(ee),l(S))};static \u0275cmp=k({type:n,selectors:[["div","gui-structure-dialog-column-manager",""]],features:[R],attrs:P4,decls:4,vars:3,consts:[[1,"gui-dialog-title"],["gui-structure-column-manager","",1,"-gui-mx-10"]],template:function(t,r){t&1&&(f(0,"div",0),T(1),be(2,"guiTranslate"),v(),C(3,"div",1)),t&2&&(p(),ke(xe(2,1,"columnManagerModalTitle")))},dependencies:[YT,gn],encapsulation:2,changeDetection:0})}return n})(),mh=(()=>{class n{convertTheme(i){switch(i){case me.FABRIC:return Ue.FABRIC;case me.MATERIAL:return Ue.MATERIAL;case me.GENERIC:return Ue.GENERIC;case me.LIGHT:return Ue.LIGHT;case me.DARK:return Ue.DARK;default:return Ue.FABRIC}}static \u0275fac=function(t){return new(t||n)};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),QT=(()=>{class n extends ci{injector;schemaWarehouse;structureThemeConverter;fabricDialogService;constructor(i,t,r,o){super(),this.injector=i,this.schemaWarehouse=t,this.structureThemeConverter=r,this.fabricDialogService=o}open(i,t,r){r||(r=this.injector);let o=ye.create({parent:r,providers:[{provide:Nt,useValue:i}]});this.schemaWarehouse.findTheme(t).ifPresent(s=>{this.fabricDialogService.open({injector:o,component:Kz,theme:this.structureThemeConverter.convertTheme(s)})})}static \u0275fac=function(t){return new(t||n)(w(ye),w(mn),w(mh),w(Us))};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),Xz=(()=>{class n extends Et{structureId;schemaPublisher;schemaWarehouse=M(mn);schemaReadModelRootId=M(qt);coloring=this.createColoringOptions();themes=this.createThemeOptions();rowColoring$=this.selectRowColoring();theme$=this.selectTheme();verticalGrid$=this.schemaWarehouse.onVerticalGrid(this.schemaReadModelRootId);horizontalGrid$=this.schemaWarehouse.onHorizontalGrid(this.schemaReadModelRootId);constructor(i,t,r,o){super(i,t),this.structureId=r,this.schemaPublisher=o}toggleTheme(i){this.schemaPublisher.setTheme(this.toTheme(i.value),this.schemaReadModelRootId,this.structureId)}toggleRowColoring(i){this.schemaPublisher.setRowColoring(this.toRowColoring(i.value),this.schemaReadModelRootId)}toggleVerticalGrid(i){event.stopPropagation(),this.schemaPublisher.setVerticalGrid(!i,this.schemaReadModelRootId)}toggleHorizontalGrid(i){event.stopPropagation(),this.schemaPublisher.setHorizontalGrid(!i,this.schemaReadModelRootId)}getSelectorName(){return"gui-structure-schema-manager"}createColoringOptions(){return Object.keys(It).map(i=>It[i]).filter(i=>!Number.isInteger(i)).map(i=>({value:i,name:i}))}createThemeOptions(){return Object.keys(me).map(i=>me[i]).filter(i=>!Number.isInteger(i)).map(i=>({value:i,name:i}))}selectRowColoring(){return this.schemaWarehouse.onRowColoring(this.schemaReadModelRootId).pipe(te(i=>({value:It[i],name:It[i]})))}selectTheme(){return this.schemaWarehouse.onTheme(this.schemaReadModelRootId).pipe(te(i=>({value:me[i],name:me[i]})))}toTheme(i){switch(i.toLowerCase()){case"fabric":return me.FABRIC;case"material":return me.MATERIAL;case"generic":return me.GENERIC;case"light":return me.LIGHT;case"dark":return me.DARK;default:return me.FABRIC}}toRowColoring(i){switch(i.toLowerCase()){case"none":return Gt.NONE;case"odd":return Gt.ODD;case"even":return Gt.EVEN;default:return Gt.NONE}}static \u0275fac=function(t){return new(t||n)(l(ee),l(S),l(Ie),l(Wi))};static \u0275cmp=k({type:n,selectors:[["div","gui-structure-schema-manager",""]],features:[R],attrs:O4,decls:19,vars:21,consts:[[1,"gui-schema-manager","gui-flex","gui-flex-col"],[1,"gui-dialog-title","gui-mb-8"],[1,"gui-structure-schema-manager-select","gui-flex","gui-flex-col"],[1,"gui-mb-4","gui-text-xs"],[3,"optionChanged","options","selected","width"],[1,"gui-structure-ordered-list","gui-mx-10","gui-p-0","gui-my-4","gui-list-none","gui-overflow-auto"],["class","gui-px-13 gui-py-6 gui-cursor-pointer",3,"click",4,"guiLet"],[1,"gui-px-13","gui-py-6","gui-cursor-pointer",3,"click"],[3,"checked"]],template:function(t,r){t&1&&(f(0,"div",0)(1,"div",1),T(2),be(3,"guiTranslate"),v(),f(4,"div",2)(5,"span",3),T(6),be(7,"guiTranslate"),v(),f(8,"gui-select",4),be(9,"guiPush"),E("optionChanged",function(s){return r.toggleTheme(s)}),v()(),f(10,"div",2)(11,"span",3),T(12),be(13,"guiTranslate"),v(),f(14,"gui-select",4),be(15,"guiPush"),E("optionChanged",function(s){return r.toggleRowColoring(s)}),v()(),f(16,"ol",5),j(17,N4,4,4,"li",6)(18,j4,4,4,"li",6),v()()),t&2&&(p(2),ke(xe(3,11,"themeManagerModalTitle")),p(4),ke(xe(7,13,"themeManagerModalTheme")),p(2),g("options",r.themes)("selected",xe(9,15,r.theme$))("width",180),p(4),we(" ",xe(13,17,"themeManagerModalRowColoring")," "),p(2),g("options",r.coloring)("selected",xe(15,19,r.rowColoring$))("width",180),p(3),g("guiLet",r.verticalGrid$),p(),g("guiLet",r.horizontalGrid$))},dependencies:[Vo,Rp,Ci,gn,ll],encapsulation:2,changeDetection:0})}return n})(),Zz=(()=>{class n extends oi{constructor(i){super(i)}getSelectorName(){return"gui-schema-manager-dialog"}static \u0275fac=function(t){return new(t||n)(l(S))};static \u0275cmp=k({type:n,selectors:[["div","gui-schema-manager-dialog",""]],features:[R],attrs:L4,decls:1,vars:0,consts:[["gui-structure-schema-manager",""]],template:function(t,r){t&1&&C(0,"div",0)},dependencies:[Xz],encapsulation:2,changeDetection:0})}return n})(),KT=(()=>{class n extends ci{injector;fabricDialogService;constructor(i,t){super(),this.injector=i,this.fabricDialogService=t}open(i,t){t||(t=this.injector);let r=ye.create({providers:[{provide:qt,useValue:i}],parent:t});this.fabricDialogService.open({injector:r,component:Zz})}static \u0275fac=function(t){return new(t||n)(w(ye),w(Us))};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),Jz=(()=>{class n extends cl{constructor(i,t){super(i,t)}getSelectorName(){return"gui-structure-column-manager-icon"}static \u0275fac=function(t){return new(t||n)(l(S),l(ee))};static \u0275cmp=k({type:n,selectors:[["div","gui-structure-column-manager-icon",""]],features:[R],attrs:V4,decls:7,vars:0,consts:[["data-name","Layer 1","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 10.32 10.31"],["x1","9.57","y1","3.65","x2","0.75","y2","3.65",1,"cls-1"],["x1","9.57","y1","0.75","x2","0.75","y2","0.75",1,"cls-2"],["x1","0.75","y1","9.56","x2","0.75","y2","0.88",1,"cls-2"],["x1","3.69","y1","9.65","x2","3.69","y2","3.89",1,"cls-1"],["x1","6.63","y1","9.56","x2","6.63","y2","3.89",1,"cls-1"],["x1","9.57","y1","9.56","x2","9.57","y2","0.88",1,"cls-2"]],template:function(t,r){t&1&&(mt(),f(0,"svg",0),C(1,"line",1)(2,"line",2)(3,"line",3)(4,"line",4)(5,"line",5)(6,"line",6),v())},encapsulation:2,changeDetection:0})}return n})(),eH=(()=>{class n extends cl{constructor(i,t){super(i,t)}getSelectorName(){return"gui-structure-schema-manager-icon"}static \u0275fac=function(t){return new(t||n)(l(S),l(ee))};static \u0275cmp=k({type:n,selectors:[["div","gui-structure-schema-manager-icon",""]],features:[R],attrs:B4,decls:11,vars:0,consts:[["height","24","viewBox","0 0 32 24","width","32","xmlns","http://www.w3.org/2000/svg"],["transform","translate(0 -4)"],["d","M23.337,4H32v6H23.337Z","data-name","Path 303","id","Path_303"],["d","M11.662,4h8.662v6H11.662Z","data-name","Path 304","id","Path_304"],["d","M0,4H8.662v6H0Z","data-name","Path 305","id","Path_305"],["d","M23.337,22H32v6H23.337Z","data-name","Path 306","id","Path_306"],["d","M0,22H8.662v6H0Z","data-name","Path 307","id","Path_307"],["d","M11.662,22h8.662v6H11.662Z","data-name","Path 308","id","Path_308"],["d","M23.337,13H32v6H23.337Z","data-name","Path 309","id","Path_309"],["d","M11.662,13h8.662v6H11.662Z","data-name","Path 310","id","Path_310"],["d","M0,13H8.662v6H0Z","data-name","Path 311","id","Path_311"]],template:function(t,r){t&1&&(mt(),f(0,"svg",0)(1,"g",1),C(2,"path",2)(3,"path",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7)(8,"path",8)(9,"path",9)(10,"path",10),v()())},encapsulation:2,changeDetection:0})}return n})(),tH=(()=>{class n extends Et{structureId=M(Ie);searchCommandDispatcher=M(un);searchWarehouse=M(Tr);phrase$=this.searchWarehouse.onPhrase(this.structureId);constructor(i,t){super(i,t)}clearSearch(){event.stopPropagation(),this.searchCommandDispatcher.search("",this.structureId)}getSelectorName(){return"gui-active-search"}static \u0275fac=function(t){return new(t||n)(l(ee),l(S))};static \u0275cmp=k({type:n,selectors:[["div","gui-active-search",""]],features:[R],attrs:z4,decls:1,vars:1,consts:[[4,"guiLet"],["gui-button","",3,"click","outline","primary"]],template:function(t,r){t&1&&j(0,H4,9,3,"ng-container",0),t&2&&g("guiLet",r.phrase$)},dependencies:[no,ay,Ci],encapsulation:2,changeDetection:0})}return n})(),iH=(()=>{class n extends Et{filterCommandDispatcher;structureId=M(Ie);filterWarehouse=M(Er);activeFilters$=this.filterWarehouse.onActiveFilters(this.structureId);constructor(i,t,r){super(i,t),this.filterCommandDispatcher=r}removeFilter(i){this.filterCommandDispatcher.remove(i.getFilterId(),this.structureId)}getSelectorName(){return"gui-active-filter-list"}static \u0275fac=function(t){return new(t||n)(l(ee),l(S),l(nr))};static \u0275cmp=k({type:n,selectors:[["div","gui-active-filter-list",""]],features:[R],attrs:U4,decls:2,vars:1,consts:[[4,"guiLet"],["gui-active-search",""],[4,"ngFor","ngForOf"],[3,"click"]],template:function(t,r){t&1&&(j(0,G4,2,1,"ng-container",0),C(1,"div",1)),t&2&&g("guiLet",r.activeFilters$)},dependencies:[Ht,Ci,tH],encapsulation:2,changeDetection:0})}return n})(),nH=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=k({type:n,selectors:[["ng-component"]],decls:8,vars:3,consts:[["gui-active-filter-list",""],["gui-button","",3,"text"],["gui-button","",3,"outline","primary"]],template:function(t,r){t&1&&(f(0,"h3"),T(1,"Active filters"),v(),C(2,"div",0),f(3,"div")(4,"button",1),T(5," Cancel "),v(),f(6,"button",2),T(7," Clear All "),v()()),t&2&&(p(4),g("text",!0),p(2),g("outline",!0)("primary",!0))},dependencies:[iH,no],encapsulation:2})}return n})(),XT=(()=>{class n extends ci{injector;schemaWarehouse;structureThemeConverter;fabricDialogService;constructor(i,t,r,o){super(),this.injector=i,this.schemaWarehouse=t,this.structureThemeConverter=r,this.fabricDialogService=o}open(i,t){let r=ye.create({parent:this.injector,providers:[{provide:qt,useValue:i},{provide:Ie,useValue:t}]});this.schemaWarehouse.findTheme(i).ifPresent(o=>{this.fabricDialogService.open({injector:r,component:nH,theme:this.structureThemeConverter.convertTheme(o)})})}static \u0275fac=function(t){return new(t||n)(w(ye),w(mn),w(mh),w(Us))};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),rH=(()=>{class n{el;structureId;activeFilterService;schemaReadModelRootId;constructor(i,t,r,o){this.el=i,this.structureId=t,this.activeFilterService=r,this.schemaReadModelRootId=o}ngOnInit(){}static \u0275fac=function(t){return new(t||n)(l(S),l(Ie),l(XT),l(qt))};static \u0275dir=G({type:n,selectors:[["","gui-active-filter-menu-trigger",""]]})}return n})(),oH=(()=>{class n extends cl{constructor(i,t){super(i,t)}getSelectorName(){return"gui-structure-info-icon"}static \u0275fac=function(t){return new(t||n)(l(S),l(ee))};static \u0275cmp=k({type:n,selectors:[["div","gui-structure-info-icon",""]],features:[R],attrs:W4,decls:3,vars:0,consts:[["data-name","Layer 1","viewBox","0 0 10.08 10.08","xmlns","http://www.w3.org/2000/svg"],["d","M401.64,307.76c0-.28.23-.45.54-.45s.55.17.55.45v0a.49.49,0,0,1-.55.46.48.48,0,0,1-.54-.46Zm.05,1.27a.49.49,0,0,1,1,0v2.54a.49.49,0,0,1-1,0Z","transform","translate(-397.14 -304.64)",1,"cls-1"],["cx","5.04","cy","5.04","r","4.54",1,"cls-2"]],template:function(t,r){t&1&&(mt(),f(0,"svg",0),C(1,"path",1)(2,"circle",2),v())},encapsulation:2,changeDetection:0})}return n})(),sH=(()=>{class n{transform(i){return i.toString().replace(/\B(?=(\d{3})+(?!\d))/g," ")}static \u0275fac=function(t){return new(t||n)};static \u0275pipe=Al({name:"numberFormatter",type:n,pure:!0})}return n})(),aH=(()=>{class n extends Et{injector;dialog;compositionId;schemaReadModelRootId;menuColumnManagerService;translationService;schemaManagerService;structureInfoPanelArchive;state=M(jt);sourceWarehouse=M(pn);structureId=M(Ie);state$=this.state.select();totalItemsSize$=this.sourceWarehouse.onOriginSize(this.structureId);infoModal=Qz;constructor(i,t,r,o,s,a,u,b,y,I){super(i,t),this.injector=r,this.dialog=o,this.compositionId=s,this.schemaReadModelRootId=a,this.menuColumnManagerService=u,this.translationService=b,this.schemaManagerService=y,this.structureInfoPanelArchive=I,this.state.connect("infoPanelConfig",this.structureInfoPanelArchive.on()),this.state.connect("preparedItemsSize",this.sourceWarehouse.onPreparedItems(this.structureId).pipe(te(N=>N.length))),this.state.connect("translations",this.translationService.onTranslation())}openInfo(){this.dialog.open({component:this.infoModal})}openColumnManager(){this.menuColumnManagerService.open(this.compositionId,this.schemaReadModelRootId,this.injector)}openSchemaManager(){this.schemaManagerService.open(this.schemaReadModelRootId,this.injector)}getSelectorName(){return"gui-structure-info-panel"}static \u0275fac=function(t){return new(t||n)(l(ee),l(S),l(ye),l(Us),l(Nt),l(qt),l(QT),l(rr),l(KT),l(qo))};static \u0275cmp=k({type:n,selectors:[["div","gui-structure-info-panel",""]],features:[_e([jt]),R],attrs:q4,decls:1,vars:1,consts:[[4,"guiLet"],[1,"gui-right-section"],[3,"click",4,"ngIf"],[4,"ngIf"],["gui-active-filter-menu-trigger","",4,"ngIf"],["gui-active-filter-menu-trigger",""],[3,"click"],["gui-structure-schema-manager-icon","",3,"gui-tooltip"],["gui-structure-column-manager-icon","",3,"gui-tooltip"],["gui-structure-info-icon","",3,"gui-tooltip"]],template:function(t,r){t&1&&j(0,iB,7,4,"ng-container",0),t&2&&g("guiLet",r.state$)},dependencies:[rt,Mp,Jz,eH,rH,Ci,oH,sH,gn],encapsulation:2,changeDetection:0})}return n})(),Dg=(()=>{class n{destroy$=new zi(1);register(i,t,r){return i.pipe(Hi(this.destroy$)).subscribe(o=>t(o),o=>console.log(o),r?()=>r():()=>{})}destroy(){this.destroy$.next(),this.destroy$.complete()}ngOnDestroy(){this.destroy()}static \u0275fac=function(t){return new(t||n)};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),cH=(()=>{class n extends cl{constructor(i,t){super(i,t)}getSelectorName(){return"gui-search-icon"}static \u0275fac=function(t){return new(t||n)(l(S),l(ee))};static \u0275cmp=k({type:n,selectors:[["div","gui-search-icon",""]],features:[R],attrs:nB,decls:3,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","width","10.231","height","10.601","viewBox","0 0 10.231 10.601",1,"gui-search-icon-svg"],["x2","1.77","y2","1.77","transform","translate(7.4 7.77)","fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5"],["cx","4.02","cy","4.02","r","4.02","transform","translate(0.5 0.5)","stroke-width","1","stroke-linecap","round","stroke-linejoin","round","fill","none"]],template:function(t,r){t&1&&(mt(),f(0,"svg",0),C(1,"line",1)(2,"circle",2),v())},encapsulation:2,changeDetection:0})}return n})(),lH=(()=>{class n extends Et{formBuilder;effects;searchCommandDispatcher;static FORM_SEARCH_NAME="searchPhrase";formRef;structureId=M(Ie);searchWarehouse=M(Tr);searchForm;placeholder$=this.searchWarehouse.onPlaceholder(this.structureId);searchingEnabled$=this.searchWarehouse.onSearchEnabled(this.structureId);searchInputSubscription;constructor(i,t,r,o,s){super(t,r),this.formBuilder=i,this.effects=o,this.searchCommandDispatcher=s;let a={};a[n.FORM_SEARCH_NAME]="",this.searchForm=this.formBuilder.group(a),this.registerOnPhraseEffect()}ngOnInit(){this.registerOnChangesEffect()}clear(){this.searchForm.reset()}getSelectorName(){return"gui-search-bar"}selectPhrase(){let i=this.searchForm.controls[n.FORM_SEARCH_NAME].valueChanges;return No(i.pipe(bo(200)))}registerOnChangesEffect(){this.searchInputSubscription=this.effects.register(this.selectPhrase(),i=>{this.searchCommandDispatcher.search(i,this.structureId)})}registerOnPhraseEffect(){this.effects.register(this.searchWarehouse.onPhrase(this.structureId),i=>{i===void 0&&(i=null);let t={};t[n.FORM_SEARCH_NAME]=i,i!==this.searchForm.get([n.FORM_SEARCH_NAME]).value&&(this.unregisterObserveChangesEffect(),this.searchForm.setValue(t),this.registerOnChangesEffect())})}unregisterObserveChangesEffect(){this.searchInputSubscription.unsubscribe()}static \u0275fac=function(t){return new(t||n)(l(Yr),l(ee),l(S),l(Dg),l(un))};static \u0275cmp=k({type:n,selectors:[["div","gui-search-bar",""]],viewQuery:function(t,r){if(t&1&&$(rB,5,S),t&2){let o;V(o=B())&&(r.formRef=o.first)}},features:[_e([Dg]),R],attrs:oB,decls:1,vars:1,consts:[["formRef",""],[4,"guiIf"],[1,"gui-flex","gui-relative","gui-w-full",3,"formGroup"],["gui-search-icon",""],["formControlName","searchPhrase",1,"gui-border-0","gui-w-full","gui-h-full","gui-py-5","gui-pr-5","gui-pl-21",3,"placeholder"],["class","gui-clear-search-icon",3,"click",4,"ngIf"],[1,"gui-clear-search-icon",3,"click"]],template:function(t,r){t&1&&j(0,aB,7,5,"ng-container",1),t&2&&g("guiIf",r.searchingEnabled$)},dependencies:[rt,wr,gi,Vi,yr,er,qr,II,cH,ll],styles:[`.gui-search-bar form{background:#fff}.gui-search-bar form:hover .gui-search-icon-svg line,.gui-search-bar form:hover .gui-search-icon-svg circle{stroke:#333}.gui-search-bar .gui-search-icon-svg{height:17px;left:10px;position:absolute;top:6px;width:17px}.gui-search-bar .gui-search-icon-svg line,.gui-search-bar .gui-search-icon-svg circle{stroke:#ccc;transition:stroke .3s ease-in-out}
`],encapsulation:2,changeDetection:0})}return n})(),dH=(()=>{class n extends oi{constructor(i){super(i),this.addClassToHost("gui-p-6"),this.addClassToHost("gui-border-b"),this.addClassToHost("gui-border-b-solid")}getSelectorName(){return"gui-structure-top-panel"}static \u0275fac=function(t){return new(t||n)(l(S))};static \u0275cmp=k({type:n,selectors:[["div","gui-structure-top-panel",""]],features:[R],attrs:cB,decls:1,vars:0,consts:[["gui-search-bar","",1,"gui-flex","gui-items-center","gui-h-full","gui-w-3/5","gui-mr-auto"]],template:function(t,r){t&1&&C(0,"div",0)},dependencies:[lH],encapsulation:2,changeDetection:0})}return n})(),uH=(()=>{class n extends oi{items;constructor(i){super(i),this.addClassToHost("gui-py-23"),this.addClassToHost("gui-px-6")}ngOnChanges(i){ot(i.items,()=>{this.items.length===0?(this.removeClassFromHost("gui-hidden"),this.addClassToHost("gui-block")):(this.removeClassFromHost("gui-block"),this.addClassToHost("gui-hidden"))})}getSelectorName(){return"gui-empty-source"}static \u0275fac=function(t){return new(t||n)(l(S))};static \u0275cmp=k({type:n,selectors:[["div","gui-empty-source","","items",""]],inputs:{items:"items"},features:[R,re],attrs:lB,decls:1,vars:1,consts:[[4,"ngIf"]],template:function(t,r){t&1&&j(0,dB,3,3,"ng-container",0),t&2&&g("ngIf",r.items.length===0)},dependencies:[rt,gn],encapsulation:2,changeDetection:0})}return n})(),lo=class{constructor(){}},hH=(()=>{class n extends oi{constructor(i){super(i)}getSelectorName(){return"gui-structure-menu-column-manager"}static \u0275fac=function(t){return new(t||n)(l(S))};static \u0275cmp=k({type:n,selectors:[["div","gui-structure-menu-column-manager",""]],features:[R],attrs:uB,decls:1,vars:0,consts:[["gui-structure-column-manager",""]],template:function(t,r){t&1&&C(0,"div",0)},dependencies:[YT],encapsulation:2,changeDetection:0})}return n})(),mH=(()=>{class n extends Et{structureId;filterWarehouse;filterCommandInvoker;set fieldId(i){this.state.setValue({fieldId:i})}state=M(jt);state$=this.state.select();constructor(i,t,r,o,s){super(i,t),this.structureId=r,this.filterWarehouse=o,this.filterCommandInvoker=s,this.state.connect("uniqueValues",this.selectUniqueValues()),this.state.connect("selectAllChecked",this.isSelectAllChecked()),this.state.connect("selectAllIndeterminate",this.isSelectAllIndeterminate())}toggleAllSelect(){event.stopPropagation();let i=this.state.getValue("fieldId");this.state.getValue("selectAllChecked")?this.filterCommandInvoker.unselectAllUniqueFilter(i,this.structureId):this.filterCommandInvoker.selectAllUniqueFilter(i,this.structureId)}toggleSelect(i){event.stopPropagation();let t=this.state.getValue("fieldId");i.isEnabled()?this.filterCommandInvoker.unselectUniqueFilter(t,i.getId(),this.structureId):this.filterCommandInvoker.selectUniqueFilter(t,i.getId(),this.structureId)}clearFilters(){let i=this.state.getValue("fieldId");this.filterCommandInvoker.selectAllUniqueFilter(i,this.structureId)}getSelectorName(){return"gui-unique-value-list"}selectUniqueValues(){return this.state.select("fieldId").pipe(cn(i=>this.filterWarehouse.onUniqueValues(this.structureId).pipe(te(t=>t.getValues(i)))))}isSelectAllChecked(){return this.state.select("fieldId").pipe(cn(i=>this.filterWarehouse.onUniqueValues(this.structureId).pipe(te(t=>t.isSelectAllChecked(i)))))}isSelectAllIndeterminate(){return this.state.select("fieldId").pipe(cn(i=>this.filterWarehouse.onUniqueValues(this.structureId).pipe(te(t=>t.isIndeterminate(i)))))}static \u0275fac=function(t){return new(t||n)(l(ee),l(S),l(Ie),l(Er),l(nr))};static \u0275cmp=k({type:n,selectors:[["div","gui-unique-value-list","","fieldId",""]],inputs:{fieldId:"fieldId"},features:[_e([jt]),R],attrs:hB,decls:1,vars:1,consts:[[4,"guiLet"],[3,"changed","checked","indeterminate"],[1,"gui-unique-value-list-container","gui-overflow-y-auto","gui-overflow-x-hidden"],[4,"ngFor","ngForOf"],[1,"gui-unique-value-list-actions","gui-px-4","gui-pb-4","gui-pt-2","gui-flex","gui-justify-end"],["gui-button","",1,"gui-clear-unique-filters","gui-px-4","gui-py-2",3,"click","outline","primary"],[3,"changed","checked"]],template:function(t,r){t&1&&j(0,pB,8,5,"ng-container",0),t&2&&g("guiLet",r.state$)},dependencies:[Ht,no,Vo,Ci],styles:[`.gui-unique-value-list-container{max-height:300px}
`],encapsulation:2,changeDetection:0})}return n})(),Uo=function(n){return n[n.UP=0]="UP",n[n.DOWN=1]="DOWN",n[n.LEFT=2]="LEFT",n[n.RIGHT=3]="RIGHT",n}(Uo||{}),MI=(()=>{class n extends cl{position=Uo.UP;sort;styleModifier;constructor(i,t){super(i,t),this.sort&&this.addClassToHost("gui-structure-column-menu-sort-icon"),this.styleModifier=new Eb(i.nativeElement)}ngOnChanges(i){ot(i.position,()=>{this.position&&this.styleModifier.getHost().setStyleByName("transform",this.getTransformValue())})}getSelectorName(){return"gui-structure-column-menu-arrow-icon"}getTransformValue(){return"rotate("+this.getRotationDeg()+"deg)"}getRotationDeg(){switch(this.position){case Uo.UP:return 0;case Uo.DOWN:return 180;case Uo.LEFT:return-90;case Uo.RIGHT:return 90;default:return 0}}static \u0275fac=function(t){return new(t||n)(l(S),l(ee))};static \u0275cmp=k({type:n,selectors:[["div","gui-structure-arrow-icon",""]],inputs:{position:"position",sort:"sort"},features:[R,re],attrs:gB,decls:4,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 10.04 11.72"],["x1","5.02","y1","2.15","x2","5.02","y2","10.97",1,"cls-1"],["x1","5.02","y1","0.75","x2","9.29","y2","5.02",1,"cls-1"],["x1","5.02","y1","0.75","x2","0.75","y2","5.02",1,"cls-1"]],template:function(t,r){t&1&&(mt(),f(0,"svg",0),C(1,"line",1)(2,"line",2)(3,"line",3),v())},encapsulation:2,changeDetection:0})}return n})(),pH=(()=>{class n extends Et{changeDetectorRef;compositionId;structureId;sortingCommandDispatcher;compositionReadModelService;set column(i){this.state.setValue({fieldId:i.getFieldId()})}dropdownTextTranslation;state=M(jt);placement=Bs.Right;status=Wt;StructureArrowPosition=Uo;sortOrder$=this.state.select("sortOrder");constructor(i,t,r,o,s,a){super(i,t),this.changeDetectorRef=i,this.compositionId=r,this.structureId=o,this.sortingCommandDispatcher=s,this.compositionReadModelService=a,this.state.connect("sortOrder",this.selectSortOrder())}isAscSort(){return this.state.getValue("sortOrder")===Wt.ASC}isDescSort(){return this.state.getValue("sortOrder")===Wt.DESC}isNoneSort(){return this.state.getValue("sortOrder")===Wt.NONE}setSortOrder(i){event.preventDefault(),event.stopPropagation();let t=this.state.getValue("fieldId");this.sortingCommandDispatcher.setSortOrder(t,i,this.compositionId,this.structureId)}getSelectorName(){return"gui-structure-column-config-sort"}selectSortOrder(){return this.state.select("fieldId").pipe(cn(i=>this.compositionReadModelService.onSortOrder(i,this.compositionId)))}static \u0275fac=function(t){return new(t||n)(l(ee),l(S),l(Nt),l(Ie),l(hn),l(Gi))};static \u0275cmp=k({type:n,selectors:[["div","gui-structure-column-config-sort","","column","","dropdownTextTranslation",""]],inputs:{column:"column",dropdownTextTranslation:"dropdownTextTranslation"},features:[_e([jt]),R],attrs:fB,decls:1,vars:1,consts:[["class","gui-header-menu-dropdown",3,"dropdownText","placement","showOnHover","width",4,"guiLet"],[1,"gui-header-menu-dropdown",3,"dropdownText","placement","showOnHover","width"],[3,"click"],[1,"gui-sort-title"],["gui-structure-arrow-icon","",3,"sort"],["gui-structure-arrow-icon","",3,"position","sort"]],template:function(t,r){t&1&&j(0,bB,14,22,"gui-dropdown",0),t&2&&g("guiLet",r.sortOrder$)},dependencies:[pT,gT,Ci,MI,gn],encapsulation:2,changeDetection:0})}return n})(),gH=(()=>{class n extends oi{column;columnHidden=new Q;constructor(i){super(i)}hideColumn(){this.columnHidden.emit()}getSelectorName(){return"gui-structure-column-config-column-hide"}static \u0275fac=function(t){return new(t||n)(l(S))};static \u0275cmp=k({type:n,selectors:[["div","gui-structure-column-config-column-hide",""]],inputs:{column:"column"},outputs:{columnHidden:"columnHidden"},features:[R],attrs:vB,decls:3,vars:3,consts:[[1,"gui-header-menu-item",3,"click"]],template:function(t,r){t&1&&(f(0,"div",0),E("click",function(){return r.hideColumn()}),T(1),be(2,"guiTranslate"),v()),t&2&&(p(),we(" ",xe(2,1,"headerMenuMainTabHideColumn"),`
`))},dependencies:[gn],encapsulation:2,changeDetection:0})}return n})(),fH=(()=>{class n extends oi{column;movedLeft=new Q;movedRight=new Q;StructureArrowPosition=Uo;constructor(i){super(i)}moveLeft(){this.movedLeft.emit()}moveRight(){this.movedRight.emit()}getSelectorName(){return"gui-structure-column-config-column-move"}static \u0275fac=function(t){return new(t||n)(l(S))};static \u0275cmp=k({type:n,selectors:[["div","gui-structure-column-config-column-move","","column",""]],inputs:{column:"column"},outputs:{movedLeft:"movedLeft",movedRight:"movedRight"},features:[R],attrs:_B,decls:9,vars:8,consts:[[1,"gui-header-menu-column-move"],[1,"gui-header-menu-column-move-item","left",3,"click"],["gui-structure-arrow-icon","",3,"position"],[1,"gui-header-menu-column-move-item","right",3,"click"]],template:function(t,r){t&1&&(f(0,"div",0)(1,"div",1),E("click",function(){return r.moveLeft()}),C(2,"div",2),T(3),be(4,"guiTranslate"),v(),f(5,"div",3),E("click",function(){return r.moveRight()}),T(6),be(7,"guiTranslate"),C(8,"div",2),v()()),t&2&&(p(2),g("position",r.StructureArrowPosition.LEFT),p(),we(" ",xe(4,4,"headerMenuMainTabMoveLeft")," "),p(3),we(" ",xe(7,6,"headerMenuMainTabMoveRight")," "),p(2),g("position",r.StructureArrowPosition.RIGHT))},dependencies:[MI,gn],encapsulation:2,changeDetection:0})}return n})(),bH=(()=>{class n extends Et{translationFacade;structureColumnMenuConfigArchive;compositionId;compositionCommandInvoker;injector;column;headerSortMenu;state=M(jt);state$=this.state.select();structureColumnConfigService;constructor(i,t,r,o,s,a,u,b){super(i,t),this.translationFacade=r,this.structureColumnMenuConfigArchive=o,this.compositionId=s,this.compositionCommandInvoker=a,this.injector=u,this.column=b,this.structureColumnConfigService=this.injector.get(kb),this.state.connect("isEnabled",this.selectIsEnabled()),this.state.connect("config",this.structureColumnMenuConfigArchive.on()),this.state.connect("translations",this.translationFacade.onTranslation())}isEnabled(i){return i.isEnabled()}hideColumn(){this.compositionCommandInvoker.disableColumn(this.column.getColumnDefinitionId(),this.compositionId),this.structureColumnConfigService.close()}moveLeft(){this.compositionCommandInvoker.moveLeft(this.column.getColumnDefinitionId(),this.compositionId),this.structureColumnConfigService.close()}moveRight(){this.compositionCommandInvoker.moveRight(this.column.getColumnDefinitionId(),this.compositionId),this.structureColumnConfigService.close()}highlightColumn(){this.compositionCommandInvoker.highlightColumn(this.column.getColumnDefinitionId(),this.compositionId),this.structureColumnConfigService.close()}getSelectorName(){return"gui-column-config"}selectIsEnabled(){return this.structureColumnMenuConfigArchive.on().pipe(te(i=>i.isEnabled()))}static \u0275fac=function(t){return new(t||n)(l(ee),l(S),l(rr),l(vu),l(Nt),l(On),l(ye),l("column"))};static \u0275cmp=k({type:n,selectors:[["div","gui-column-config",""]],viewQuery:function(t,r){if(t&1&&$(yB,5,S),t&2){let o;V(o=B())&&(r.headerSortMenu=o.first)}},features:[_e([jt]),R],attrs:wB,decls:1,vars:1,consts:[[4,"guiLet"],["class","gui-header-menu-tab",4,"ngIf"],[1,"gui-header-menu-tab"],[3,"active","menu"],[4,"ngIf"],[1,"gui-tab-item-dropdown",3,"tab"],["gui-structure-column-config-sort","",3,"column","dropdownTextTranslation",4,"ngIf"],["gui-structure-column-config-column-hide","",3,"columnHidden","column"],[1,"gui-header-menu-item",3,"click"],["gui-structure-column-config-column-move","",3,"movedLeft","movedRight","column"],["gui-structure-column-config-sort","",3,"column","dropdownTextTranslation"],[3,"tab"],["gui-unique-value-list","",3,"fieldId"],["gui-structure-menu-column-manager",""]],template:function(t,r){t&1&&j(0,SB,2,1,"ng-container",0),t&2&&g("guiLet",r.state$)},dependencies:[rt,_T,yT,Ci,hH,mH,pH,gH,fH,gn],encapsulation:2,changeDetection:0})}return n})(),kb=(()=>{class n extends ci{injector;schemaReadModelRootId;schemaWarehouse;structureThemeConverter;inlineDialogService;constructor(i,t,r,o,s){super(),this.injector=i,this.schemaReadModelRootId=t,this.schemaWarehouse=r,this.structureThemeConverter=o,this.inlineDialogService=s}open(i,t){this.close();let r=ye.create({providers:[{provide:"column",useValue:t}],parent:this.injector});this.schemaWarehouse.onceTheme(this.schemaReadModelRootId).pipe(this.hermesTakeUntil()).subscribe(o=>{this.inlineDialogService.open(i,bH,{injector:r,placement:Cr.BOTTOM,offset:-34,theme:this.structureThemeConverter.convertTheme(o),customClass:"gui-inline-dialog-header-menu"})})}close(){this.inlineDialogService.close()}static \u0275fac=function(t){return new(t||n)(w(ye),w(qt),w(mn),w(mh),w(Bc))};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),vH=(()=>{class n extends jT{formationPublisher;structureId=M(Ie);formationWarehouse=M($i);selection$=this.formationWarehouse.onCustomSelections(this.structureId);constructor(i,t){super(i),this.formationPublisher=t}selectCustom(i){this.formationPublisher.selectCustom(i,this.structureId)}getSelectorName(){return"gui-select-custom-modal"}static \u0275fac=function(t){return new(t||n)(l(S),l(di))};static \u0275cmp=k({type:n,selectors:[["div","gui-select-custom-modal",""]],features:[R],attrs:DB,decls:1,vars:1,consts:[[4,"guiLet"],[3,"click",4,"ngFor","ngForOf"],[3,"click"]],template:function(t,r){t&1&&j(0,MB,2,1,"ul",0),t&2&&g("guiLet",r.selection$)},dependencies:[Ht,Ci],styles:[`.gui-select-custom-modal{background:#fff;border:1px solid #d6d6d6;border-radius:0 0 4px 4px}.gui-select-custom-modal ul{list-style:none;margin:0;padding:0}.gui-select-custom-modal ul li{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:#fff;border-color:#d6d6d6;box-sizing:border-box;color:#333;cursor:pointer;display:block;font:14px Arial;padding:8px 12px}
`],encapsulation:2,changeDetection:0})}return n})(),kT=(()=>{class n extends ci{injector;schemaReadModelRootId;schemaWarehouse;structureThemeConverter;inlineDialogService;constructor(i,t,r,o,s){super(),this.injector=i,this.schemaReadModelRootId=t,this.schemaWarehouse=r,this.structureThemeConverter=o,this.inlineDialogService=s}open(i){this.close(),this.schemaWarehouse.findTheme(this.schemaReadModelRootId).ifPresent(t=>{this.inlineDialogService.open(i,vH,{injector:this.injector,placement:Cr.BOTTOM,offset:0,theme:this.structureThemeConverter.convertTheme(t),customClass:"gui-inline-dialog-header-menu"})})}close(){this.inlineDialogService.close()}static \u0275fac=function(t){return new(t||n)(w(ye),w(qt),w(mn),w(mh),w(Bc))};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),ZT=(()=>{class n extends ya{structureId;formationCommandDispatcher;formationWarehouse;state=M(jt);state$=this.state.select();constructor(i,t,r,o){super(i),this.structureId=t,this.formationCommandDispatcher=r,this.formationWarehouse=o,this.state.setValue({modeMulti:!1}),this.state.connect("modeMulti",this.selectModeMulti()),this.state.connect("isAllChecked",this.selectAllChecked()),this.state.connect("isAllIndeterminate",this.selectAllIndeterminate())}toggleSelectAll(i,t){i?this.formationCommandDispatcher.unselectAll(this.structureId):t?this.formationCommandDispatcher.unselectAll(this.structureId):this.formationCommandDispatcher.selectAll(this.structureId)}getSelectorName(){return"gui-select-all"}selectModeMulti(){return this.formationWarehouse.onMode(this.structureId).pipe(te(i=>i===Fn.MULTIPLE))}selectAllChecked(){return this.formationWarehouse.onRowSelectedReadModel(this.structureId).pipe(te(i=>i.isAllSelected()))}selectAllIndeterminate(){return this.formationWarehouse.onRowSelectedReadModel(this.structureId).pipe(te(i=>i.isIndeterminate()))}static \u0275fac=function(t){return new(t||n)(l(S),l(Ie),l(di),l($i))};static \u0275cmp=k({type:n,selectors:[["div","gui-select-all",""]],features:[_e([jt]),R],attrs:RB,decls:1,vars:1,consts:[[4,"guiLet"],[3,"checked","gui-tooltip","indeterminate","changed",4,"ngIf"],[3,"changed","checked","gui-tooltip","indeterminate"]],template:function(t,r){t&1&&j(0,FB,2,1,"ng-container",0),t&2&&g("guiLet",r.state$)},dependencies:[rt,Ci,Vo,Mp],encapsulation:2,changeDetection:0})}return n})(),_H=(()=>{class n extends cl{constructor(i,t){super(i,t)}getSelectorName(){return"gui-structure-column-menu-icon"}static \u0275fac=function(t){return new(t||n)(l(S),l(ee))};static \u0275cmp=k({type:n,selectors:[["div","gui-structure-menu-icon",""]],features:[R],attrs:PB,decls:4,vars:0,consts:[["data-name","Layer 1","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 10.32 7.46"],["x1","9.57","y1","3.73","x2","0.75","y2","3.73",1,"cls-1"],["x1","9.57","y1","0.75","x2","0.75","y2","0.75",1,"cls-1"],["x1","9.57","y1","6.71","x2","0.75","y2","6.71",1,"cls-1"]],template:function(t,r){t&1&&(mt(),f(0,"svg",0),C(1,"line",1)(2,"line",2)(3,"line",3),v())},encapsulation:2,changeDetection:0})}return n})(),yH=(()=>{class n extends Et{structureColumnConfigService;headerDialogContainer;column;structureColumnMenuConfigArchive=M(vu);isEnabled$=this.selectIsEnabled();constructor(i,t,r){super(t,i),this.structureColumnConfigService=r}openConfigDialog(){this.structureColumnConfigService.open(this.headerDialogContainer,this.column)}getSelectorName(){return"gui-structure-column-config-trigger"}selectIsEnabled(){return this.structureColumnMenuConfigArchive.on().pipe(te(i=>i.isEnabled()))}static \u0275fac=function(t){return new(t||n)(l(S),l(ee),l(kb))};static \u0275cmp=k({type:n,selectors:[["div","gui-structure-column-config-trigger",""]],viewQuery:function(t,r){if(t&1&&$(OB,5,S),t&2){let o;V(o=B())&&(r.headerDialogContainer=o.first)}},inputs:{column:"column"},features:[R],attrs:NB,decls:1,vars:1,consts:[["headerDialogContainer",""],["class","gui-header-menu-icon-wrapper",3,"click",4,"guiIf"],[1,"gui-header-menu-icon-wrapper",3,"click"],["gui-structure-menu-icon","",3,"ngClass"]],template:function(t,r){t&1&&j(0,jB,3,1,"div",1),t&2&&g("guiIf",r.isEnabled$)},dependencies:[Dt,II,_H],encapsulation:2,changeDetection:0})}return n})(),wH=(()=>{class n extends Et{elementRef;injector;changeDetectorRef;compositionId;structureId;structureSelectCustomService;formationCommandDispatcher;sortingCommandDispatcher;selectCustomContainer;columns;showSelection=!1;showCustom=!0;constructor(i,t,r,o,s,a,u,b){super(r,i),this.elementRef=i,this.injector=t,this.changeDetectorRef=r,this.compositionId=o,this.structureId=s,this.structureSelectCustomService=a,this.formationCommandDispatcher=u,this.sortingCommandDispatcher=b}toggleSort(i){i.isSortEnabled()&&this.sortingCommandDispatcher.toggleSort(i.getFieldId(),this.compositionId,this.structureId)}openConfigDialog(){this.structureSelectCustomService.open(this.selectCustomContainer)}getSelectorName(){return"gui-structure-header-columns"}static \u0275fac=function(t){return new(t||n)(l(S),l(ye),l(ee),l(Nt),l(Ie),l(kT),l(di),l(hn))};static \u0275cmp=k({type:n,selectors:[["div","gui-structure-header-columns","","columns",""]],viewQuery:function(t,r){if(t&1&&$(LB,5,S),t&2){let o;V(o=B())&&(r.selectCustomContainer=o.first)}},inputs:{columns:"columns",showSelection:"showSelection"},features:[_e([kb,kT]),R],attrs:VB,decls:2,vars:2,consts:[["class",`gui-header-cell gui-row-checkbox
	 gui-flex gui-justify-between
	 gui-overflow-hidden gui-relative gui-py-0 gui-px-6 gui-box-border
	 gui-leading-4 gui-whitespace-nowrap gui-overflow-ellipsis`,4,"ngIf"],["class",`gui-header-cell gui-flex gui-justify-between
	 gui-overflow-hidden gui-relative gui-py-0 gui-px-6 gui-box-border
	 gui-leading-4 gui-whitespace-nowrap gui-overflow-ellipsis`,3,"class","ngClass","width","style","click",4,"ngFor","ngForOf"],[1,"gui-header-cell","gui-row-checkbox","gui-flex","gui-justify-between","gui-overflow-hidden","gui-relative","gui-py-0","gui-px-6","gui-box-border","gui-leading-4","gui-whitespace-nowrap","gui-overflow-ellipsis"],["gui-select-all",""],[1,"gui-header-cell","gui-flex","gui-justify-between","gui-overflow-hidden","gui-relative","gui-py-0","gui-px-6","gui-box-border","gui-leading-4","gui-whitespace-nowrap","gui-overflow-ellipsis",3,"click","ngClass"],[1,"gui-header-title"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","gui-ml-6","gui-structure-arrow-icon","",3,"position","sort",4,"ngIf"],[1,"gui-header-menu"],["gui-structure-column-config-trigger","",3,"column"],["gui-structure-arrow-icon","",1,"gui-ml-6",3,"position","sort"]],template:function(t,r){t&1&&j(0,zB,2,0,"div",0)(1,$B,6,13,"div",1),t&2&&(g("ngIf",r.showSelection),p(),g("ngForOf",r.columns))},dependencies:[Dt,Ht,rt,gs,ZT,yH,MI],encapsulation:2,changeDetection:0})}return n})(),xH=(()=>{class n extends oi{elementRef;injector;changeDetectorRef;compositionId;structureId;formationCommandDispatcher;sortingCommandDispatcher;groups;showGroups;checkboxSelection=!1;globalSearching=!1;constructor(i,t,r,o,s,a,u){super(i),this.elementRef=i,this.injector=t,this.changeDetectorRef=r,this.compositionId=o,this.structureId=s,this.formationCommandDispatcher=a,this.sortingCommandDispatcher=u}toggleSort(i){i.isSortEnabled()&&this.sortingCommandDispatcher.toggleSort(i.getFieldId(),this.compositionId,this.structureId)}isSortAsc(i){return i.getSortStatus()===Wt.ASC}isSortDesc(i){return i.getSortStatus()===Wt.DESC}isGlobalSortEnabled(){return this.globalSearching}getSelectorName(){return"gui-structure-header-groups"}static \u0275fac=function(t){return new(t||n)(l(S),l(ye),l(ee),l(Nt),l(Ie),l(di),l(hn))};static \u0275cmp=k({type:n,selectors:[["div","gui-structure-header-groups","","groups","","checkboxSelection",""]],inputs:{groups:"groups",showGroups:"showGroups",checkboxSelection:"checkboxSelection"},features:[_e([kb]),R],attrs:GB,decls:2,vars:2,consts:[["class",`gui-header-cell gui-row-checkbox gui-flex gui-justify-between
	 gui-overflow-hidden gui-relative gui-py-0 gui-px-6 gui-box-border
	 gui-leading-4 gui-whitespace-nowrap gui-overflow-ellipsis`,4,"ngIf"],["class",`gui-header-cell gui-flex gui-justify-between
	 gui-overflow-hidden gui-relative gui-py-0 gui-px-6 gui-box-border
	 gui-leading-4 gui-whitespace-nowrap gui-overflow-ellipsis`,3,"width",4,"ngFor","ngForOf"],[1,"gui-header-cell","gui-row-checkbox","gui-flex","gui-justify-between","gui-overflow-hidden","gui-relative","gui-py-0","gui-px-6","gui-box-border","gui-leading-4","gui-whitespace-nowrap","gui-overflow-ellipsis"],["gui-select-all",""],[1,"gui-header-cell","gui-flex","gui-justify-between","gui-overflow-hidden","gui-relative","gui-py-0","gui-px-6","gui-box-border","gui-leading-4","gui-whitespace-nowrap","gui-overflow-ellipsis"],[1,"gui-header-title"]],template:function(t,r){t&1&&j(0,WB,2,0,"div",0)(1,qB,3,3,"div",1),t&2&&(g("ngIf",r.checkboxSelection),p(),g("ngForOf",r.groups))},dependencies:[Ht,rt,ZT],encapsulation:2,changeDetection:0})}return n})(),CH=(()=>{class n extends oi{structureFilterCommandService;formBuilder;cd;effects;structureId;columns;closed=new Q;filterFieldName="phrase";filterForm;filterMode=!1;constructor(i,t,r,o,s,a){super(s),this.structureFilterCommandService=i,this.formBuilder=t,this.cd=r,this.effects=o,this.structureId=a,this.filterForm=this.formBuilder.group({[this.filterFieldName]:[""]})}ngOnInit(){this.effects.register(this.selectFilterFormChanges(),i=>{this.filter(i[this.filterFieldName])})}filter(i){i==null&&(i="")}clearFilters(){this.filterForm.reset()}turnOnFilterMode(){this.filterMode=!0,this.cd.detectChanges()}turnOffFilterMode(){this.filterMode=!1,this.cd.detectChanges()}getSelectorName(){return""}selectFilterFormChanges(){return No(this.filterForm.valueChanges)}static \u0275fac=function(t){return new(t||n)(l(nr),l(Yr),l(ee),l(Dg),l(S),l(Ie))};static \u0275cmp=k({type:n,selectors:[["div","gui-structure-header-filters","","columns",""]],inputs:{columns:"columns"},outputs:{closed:"closed"},features:[_e([Dg]),R],attrs:YB,decls:2,vars:2,consts:[[4,"ngIf"],["class",`gui-header-cell gui-flex gui-justify-between
	 gui-overflow-hidden gui-relative gui-py-0 gui-px-6 gui-box-border
	 gui-leading-4 gui-whitespace-nowrap gui-overflow-ellipsis`,3,"width",4,"ngFor","ngForOf"],[1,"gui-header-cell","gui-flex","gui-justify-between","gui-overflow-hidden","gui-relative","gui-py-0","gui-px-6","gui-box-border","gui-leading-4","gui-whitespace-nowrap","gui-overflow-ellipsis"],[3,"click"],[3,"options","selected"],[3,"formGroup"],["type","text","gui-input","",3,"formControlName"],["gui-button","",3,"click"]],template:function(t,r){t&1&&j(0,XB,2,1,"ng-container",0)(1,ZB,8,5,"ng-container",0),t&2&&(g("ngIf",!r.filterMode),p(),g("ngIf",r.filterMode))},dependencies:[Ht,rt,wr,gi,Vi,yr,er,qr,no,Rp,Dp],encapsulation:2,changeDetection:0})}return n})(),JT=(()=>{class n extends ya{filterWarehouse;formationWarehouse;compositionTemplateWarehouse;state=M(jt);compositionWarehouse=M(Gi);structureId=M(Ie);compositionId=M(Nt);verticalFormationWarehouse=M(lo);state$=this.state.select();width$=this.compositionWarehouse.onContainerWidth(this.compositionId).pipe(te(i=>({width:i})));filterHeaderHeight$=this.verticalFormationWarehouse.onRowHeight(this.structureId).pipe(te(i=>({height:+i+2})));constructor(i,t,r,o){super(i),this.filterWarehouse=t,this.formationWarehouse=r,this.compositionTemplateWarehouse=o,this.state.setValue({headerColumns:[],filterRowEnabled:!1,showGroups:!1}),this.state.connect("showSelection",this.selectShowSelection()),this.state.connect("headerColumns",this.compositionTemplateWarehouse.onHeaderCols(this.compositionId)),this.state.connect("filterRowEnabled",this.filterWarehouse.onFilteringEnabled(this.structureId)),this.state.connect("showGroups",this.selectShowGroups()),this.state.connect("groups",this.selectGroups())}getSelectorName(){return"gui-structure-header"}selectGroups(){return this.compositionWarehouse.onGroups(this.compositionId).pipe(te(i=>i.getGroups()))}selectShowGroups(){return this.compositionWarehouse.onGroups(this.compositionId).pipe(te(i=>i.isVisible()))}selectShowSelection(){return this.formationWarehouse.onType(this.structureId).pipe(te(i=>i===li.CHECKBOX||i===li.RADIO))}static \u0275fac=function(t){return new(t||n)(l(S),l(Er),l($i),l(hh))};static \u0275cmp=k({type:n,selectors:[["div","gui-structure-header",""]],features:[_e([jt]),R],attrs:JB,decls:3,vars:3,consts:[[4,"guiLet"],["class","gui-header","gui-structure-header-columns","",3,"columns","guiStyle","showSelection",4,"guiLet"],["class","gui-header","gui-structure-header-groups","",3,"checkboxSelection","groups",4,"ngIf"],["gui-structure-header-groups","",1,"gui-header",3,"checkboxSelection","groups"],["gui-structure-header-columns","",1,"gui-header",3,"columns","guiStyle","showSelection"],["class","gui-header","gui-structure-header-filters","",3,"columns","guiStyle",4,"ngIf"],["gui-structure-header-filters","",1,"gui-header",3,"columns","guiStyle"]],template:function(t,r){t&1&&j(0,t5,2,1,"ng-container",0)(1,i5,1,3,"div",1)(2,r5,2,1,"ng-container",0),t&2&&(g("guiLet",r.state$),p(),g("guiLet",r.state$),p(),g("guiLet",r.state$))},dependencies:[rt,Ci,gz,wH,xH,CH],encapsulation:2,changeDetection:0})}return n})(),eM=(()=>{class n{platformId;constructor(i){this.platformId=i}on(i){return Fi(this.platformId)?No(new ht(t=>{let r=new ResizeObserver(o=>{o&&o.length>0&&t.next(o[0].contentRect)});return r.observe(i),()=>r.disconnect()}).pipe(gE(25))):K_()}destroy(i){}static \u0275fac=function(t){return new(t||n)(w(bt))};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),ln=function(n){return n[n.NONE=0]="NONE",n[n.ADD=1]="ADD",n[n.RANGE=2]="RANGE",n}(ln||{}),el=class{subject$=new zi(1);constructor(){}emit(e){this.subject$.next(e)}on(){return this.subject$.toObservable()}},Nu=class{itemId;columnFieldId;value;constructor(e,i,t){this.itemId=e,this.columnFieldId=i,this.value=t}getItemId(){return this.itemId}getColumnFieldId(){return this.columnFieldId}getValue(){return this.value}},IH=(()=>{class n extends Et{changeDetectorRef;structureId;sourceCommandService;cellContainerRef;entity;cell;editContext;valueChanges$;status$;actualValue;constructor(i,t,r,o){super(i,t),this.changeDetectorRef=i,this.structureId=r,this.sourceCommandService=o}ngOnChanges(i){ot(i.entity,()=>{this.initEditContext()}),ot(i.cell,()=>{this.initEditContext()})}ngOnInit(){this.initEditContext()}getSelectorName(){return"gui-structure-cell-edit-boolean"}submitChanges(){let i=this.entity.getId(),t=this.actualValue,r=this.cell.columnFieldId;this.sourceCommandService.editItem(new Nu(i,r,t),this.structureId)}initEditContext(){this.valueChanges$=new el,this.status$=new el,this.editContext={status:this.status$,valueChanges:this.valueChanges$,value:this.cell.getValue(this.entity).value,focus:!1,parent:this.cellContainerRef},this.observeValueChanges(),this.status$.on().pipe(this.takeUntil()).subscribe(i=>{switch(i){case Jc.SUBMIT:this.submitChanges();break;default:break}})}observeValueChanges(){this.valueChanges$.on().pipe(this.takeUntil()).subscribe(i=>{this.actualValue=i})}static \u0275fac=function(t){return new(t||n)(l(ee),l(S),l(Ie),l(dn))};static \u0275cmp=k({type:n,selectors:[["div","gui-structure-cell-edit-boolean","","entity","","cell",""]],viewQuery:function(t,r){if(t&1&&$(o5,7),t&2){let o;V(o=B())&&(r.cellContainerRef=o.first)}},inputs:{entity:"entity",cell:"cell"},features:[R,re],attrs:s5,decls:3,vars:2,consts:[["cellContainer",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,r){t&1&&(f(0,"span",null,0),j(2,a5,1,0,"ng-container",1),v()),t&2&&(p(2),g("ngTemplateOutlet",r.cell.editTemplate)("ngTemplateOutletContext",r.editContext))},dependencies:[gs],encapsulation:2,changeDetection:0})}return n})(),EH=(()=>{class n extends Et{changeDetectorRef;elementRef;structureId;compositionId;structureCellEditStore;cellEditCloseAllService;sourceCommandService;compositionWarehouse;entity;cell;editMode;cellEditorManager;searchPhrase;rowIndex;columnIndex;inEditMode=!1;editContext;valueChanges$;status$;actualValue;isHighlighted;constructor(i,t,r,o,s,a,u,b){super(i,t),this.changeDetectorRef=i,this.elementRef=t,this.structureId=r,this.compositionId=o,this.structureCellEditStore=s,this.cellEditCloseAllService=a,this.sourceCommandService=u,this.compositionWarehouse=b}ngOnInit(){this.subscribe(this.compositionWarehouse.onHighlightedColumn(new Kc(this.cell.columnDefinitionId.toString()),this.compositionId),i=>{this.isHighlighted=i})}ngAfterViewInit(){super.ngAfterViewInit(),this.subscribeWithoutRender(this.cellEditCloseAllService.onCloseAll(),()=>{this.exitEditMode()})}isCellEditingEnabled(){return this.cellEditorManager.isEnabled(this.cell.getValue(this.entity),this.entity.getSourceItem(),this.rowIndex)&&this.cell.isCellEditingEnabled()}enterEditMode(i=!0){this.isCellEditingEnabled()&&(this.cellEditCloseAllService.closeAll(),Z_(0).pipe(this.takeUntil()).subscribe(()=>{this.inEditMode=!0,this.valueChanges$=new el,this.status$=new el,this.editContext={status:this.status$,valueChanges:this.valueChanges$,value:this.cell.getValue(this.entity).value,focus:i,parent:this.elementRef},this.observeFieldStatus(),this.observeValueChanges(),this.publishEditEnter(),i?this.changeDetectorRef.detectChanges():this.changeDetectorRef.markForCheck()}))}exitEditMode(){this.inEditMode=!1,this.changeDetectorRef.detectChanges()}submitChangesAndExit(){let i=this.entity.getId(),t=this.actualValue,r=this.cell.columnFieldId;this.sourceCommandService.editItem(new Nu(i,r,t),this.structureId),this.exitEditMode()}getSelectorName(){return"gui-structure-cell"}observeFieldStatus(){this.status$.on().pipe(this.takeUntil()).subscribe(i=>{switch(i){case Jc.SUBMIT:this.submitChangesAndExit(),this.publishEditSubmit();break;case Jc.CANCEL:this.exitEditMode(),this.publishEditCancel();break;default:break}})}observeValueChanges(){this.valueChanges$.on().pipe(this.takeUntil()).subscribe(i=>{this.actualValue=i})}publishEditState(i){this.structureCellEditStore.next(i)}publishEditEnter(){this.publishEditState(Ks.ENTER)}publishEditCancel(){this.publishEditState(Ks.CANCEL)}publishEditSubmit(){this.publishEditState(Ks.SUBMIT)}static \u0275fac=function(t){return new(t||n)(l(ee),l(S),l(Ie),l(Nt),l(Lp),l(PT),l(dn),l(Gi))};static \u0275cmp=k({type:n,selectors:[["div","gui-structure-cell","","entity","","cell",""]],inputs:{entity:"entity",cell:"cell",editMode:"editMode",cellEditorManager:"cellEditorManager",searchPhrase:"searchPhrase",rowIndex:"rowIndex",columnIndex:"columnIndex"},features:[R],attrs:c5,decls:2,vars:2,consts:[[4,"ngIf"],[3,"ngClass","click",4,"ngIf"],["class","gui-cell-edit-mode",4,"ngIf"],[3,"click","ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"gui-cell-edit-mode"],["gui-structure-cell-edit-boolean","",3,"cell","entity"]],template:function(t,r){t&1&&j(0,g5,3,2,"ng-container",0)(1,f5,2,2,"ng-container",0),t&2&&(g("ngIf",!r.cell.isBooleanDataType()||r.cell.isBooleanDataType()&&!r.isCellEditingEnabled()),p(),g("ngIf",r.cell.isBooleanDataType()&&r.isCellEditingEnabled()))},dependencies:[Dt,rt,gs,IH],encapsulation:2,changeDetection:0})}return n})(),tM=(()=>{class n extends Et{changeDetectorRef;elRef;structureId;formationWarehouse;formationCommandDispatcher;cssClassModifier;entity;columns;editMode;cellEditing;searchPhrase;index;rowStyle;rowClass;checkboxSelection=!1;radioSelection=!1;selectedItem=!1;row;styleModifier;classModifier;constructor(i,t,r,o,s,a){super(i,t),this.changeDetectorRef=i,this.elRef=t,this.structureId=r,this.formationWarehouse=o,this.formationCommandDispatcher=s,this.cssClassModifier=a,this.styleModifier=new Eb(this.elRef.nativeElement),this.classModifier=new uh(this.elRef.nativeElement)}ngOnChanges(i){ot(i.entity,()=>{this.checkSelectedItem(),this.updateRowClass(i.entity.previousValue),this.updateRowStyle(i.entity.previousValue)}),ot(i.rowClass,()=>{this.updateRowClass()}),ot(i.rowStyle,()=>{this.updateRowStyle()})}ngOnInit(){this.subscribeWithoutRender(this.formationWarehouse.onRowSelectedReadModel(this.structureId),i=>{this.row=i;let t=this.selectedItem;this.checkSelectedItem(),t!==this.selectedItem&&(t?this.cssClassModifier.unselect(this.elRef.nativeElement):this.cssClassModifier.select(this.elRef.nativeElement),this.changeDetectorRef.detectChanges())})}ngAfterViewInit(){super.ngAfterViewInit(),this.updateRowClass(),this.updateRowStyle()}trackByFn(){return 0}selectCheckbox(){event.stopPropagation(),this.formationCommandDispatcher.toggleSelectedRow(this.entity.getId(),ln.ADD,this.structureId)}selectRadio(){event.stopPropagation(),this.formationCommandDispatcher.toggleSelectedRow(this.entity.getId(),ln.NONE,this.structureId)}checkSelectedItem(){if(this.row){let i=this.selectedItem;this.selectedItem=this.row.isSelected(this.entity.getId()),i!==this.selectedItem&&(i?this.cssClassModifier.unselect(this.elRef.nativeElement):this.cssClassModifier.select(this.elRef.nativeElement))}}getSelectorName(){return"gui-structure-row"}calculateRowStyle(i){return this.rowStyle?typeof this.rowStyle.style=="string"?this.rowStyle.style||"":typeof this.rowStyle.styleFunction=="function"?this.rowStyle.styleFunction(i.getSourceItem(),i.getPosition()):"":""}updateRowStyle(i){if(i){let r=this.calculateRowStyle(i);this.removeRowStyles(r)}let t=this.calculateRowStyle(this.entity);this.renderRowStyles(t)}removeRowStyles(i){if(!i)return;let t=i.split(";");for(let r=0;r<t.length;r+=1){let o=t[r].split(":");o[0]&&o[1]&&this.styleModifier.getHost().removeStyleByName(o[0].trim())}}renderRowStyles(i){if(!i)return;let t=i.split(";");for(let r=0;r<t.length;r+=1){let o=t[r].split(":");o[0]&&o[1]&&this.styleModifier.getHost().setStyleByName(o[0].trim(),o[1].trim())}}updateRowClass(i){if(i){let r=this.calculateRowClass(i);r&&this.classModifier.getHost().remove(r)}let t=this.calculateRowClass(this.entity);t&&this.classModifier.getHost().add(t)}calculateRowClass(i){if(!this.rowClass)return"";let t;return typeof this.rowClass.class=="string"&&(t=this.rowClass.class||""),typeof this.rowClass.classFunction=="function"&&i&&(t=this.rowClass.classFunction(i.getSourceItem(),i.getPosition())||""),t}static \u0275fac=function(t){return new(t||n)(l(ee),l(S),l(Ie),l($i),l(di),l(ta))};static \u0275cmp=k({type:n,selectors:[["div","gui-structure-row",""]],inputs:{entity:"entity",columns:"columns",editMode:"editMode",cellEditing:"cellEditing",searchPhrase:"searchPhrase",index:"index",rowStyle:"rowStyle",rowClass:"rowClass",checkboxSelection:"checkboxSelection",radioSelection:"radioSelection"},features:[R,re],attrs:b5,decls:3,vars:4,consts:[["class","gui-cell gui-row-checkbox",4,"ngIf"],["class","gui-cell gui-row-radio",4,"ngIf"],["class","gui-cell","gui-structure-cell","",3,"cellEditorManager","cell","columnIndex","editMode","entity","rowIndex","searchPhrase","width",4,"ngFor","ngForOf","ngForTrackBy"],[1,"gui-cell","gui-row-checkbox"],[3,"changed","checked"],[1,"gui-cell","gui-row-radio"],["gui-structure-cell","",1,"gui-cell",3,"cellEditorManager","cell","columnIndex","editMode","entity","rowIndex","searchPhrase"]],template:function(t,r){t&1&&j(0,v5,2,1,"div",0)(1,_5,2,1,"div",1)(2,y5,1,9,"div",2),t&2&&(g("ngIf",r.checkboxSelection),p(),g("ngIf",r.radioSelection),p(),g("ngForOf",r.columns)("ngForTrackBy",r.trackByFn))},dependencies:[Ht,rt,Vo,fT,EH],encapsulation:2,changeDetection:0})}return n})(),iM=(()=>{class n extends Et{formationPublisher;structureEditModeArchive;formationWarehouse;structureWarehouse;verticalFormationWarehouse;structureId;schemaReadModelRootId;searchWarehouse;schemaWarehouse;source;columns;state=M(jt);state$=this.state.select();constructor(i,t,r,o,s,a,u,b,y,I,N){super(t,i),this.formationPublisher=r,this.structureEditModeArchive=o,this.formationWarehouse=s,this.structureWarehouse=a,this.verticalFormationWarehouse=u,this.structureId=b,this.schemaReadModelRootId=y,this.searchWarehouse=I,this.schemaWarehouse=N,this.state.setValue({checkboxSelection:!1,radioSelection:!1,searchPhrase:""}),this.state.connect("editMode",this.structureEditModeArchive.on()),this.state.connect("selectionEnabled",this.formationWarehouse.onSelectionEnabled(this.structureId)),this.state.connect("rowHeight",this.verticalFormationWarehouse.onRowHeight(this.structureId)),this.state.connect("cellEditing",this.structureWarehouse.onEditManager(this.structureId)),this.state.connect("schemaRowClass",this.schemaWarehouse.onRowClass(this.schemaReadModelRootId)),this.state.connect("schemaRowStyle",this.schemaWarehouse.onRowStyle(this.schemaReadModelRootId)),this.state.connect("checkboxSelection",this.selectCheckboxSelection()),this.state.connect("radioSelection",this.selectRadioSelection()),this.state.connect("searchPhrase",this.selectSearchPhrase())}trackByFn(){return 0}translateY(i,t){return`translateY(${i*t}px)`}toggleSelectedRow(i,t,r,o){t&&!r&&!o&&this.formationPublisher.toggleSelectedRow(i.getId(),ln.NONE,this.structureId)}getSelectorName(){return"gui-structure-content"}selectCheckboxSelection(){return this.formationWarehouse.onType(this.structureId).pipe(te(i=>i===li.CHECKBOX))}selectRadioSelection(){return this.formationWarehouse.onType(this.structureId).pipe(te(i=>i===li.RADIO))}selectSearchPhrase(){return No(Nr(Zr(this.searchWarehouse.onPhrase(this.structureId)),Zr(this.searchWarehouse.onHighlight(this.structureId)))).pipe(te(([i,t])=>t?i:""))}static \u0275fac=function(t){return new(t||n)(l(S),l(ee),l(di),l(Vp),l($i),l(wa),l(lo),l(Ie),l(qt),l(Tr),l(mn))};static \u0275cmp=k({type:n,selectors:[["div","gui-structure-content",""]],inputs:{source:"source",columns:"columns"},features:[_e([jt]),R],attrs:w5,decls:1,vars:1,consts:[["class","gui-content",4,"guiLet"],[1,"gui-content"],["class","gui-row","gui-structure-row","",3,"cellEditing","checkboxSelection","columns","editMode","entity","id","index","ngClass","ngStyle","radioSelection","rowClass","rowStyle","searchPhrase","height","click",4,"ngFor","ngForOf","ngForTrackBy"],["gui-structure-row","",1,"gui-row",3,"click","cellEditing","checkboxSelection","columns","editMode","entity","id","index","ngClass","ngStyle","radioSelection","rowClass","rowStyle","searchPhrase"]],template:function(t,r){t&1&&j(0,E5,2,2,"div",0),t&2&&g("guiLet",r.state$)},dependencies:[Dt,Ht,qh,Ci,tM],encapsulation:2,changeDetection:0})}return n})(),nM=(()=>{class n extends Et{elRef;ngZone;structureId;compositionId;structureCommandService;structureWarehouse;verticalFormationWarehouse;sourceWarehouse;compositionCommandInvoker;compositionWarehouse;compositionTemplateWarehouse;formationWarehouse;resizeDetector;structureInitialValuesReadyArchive;structureParent;sourceCollectionRef;columns=[];source=[];height;rowColoring;autoResizeWidthEnabled=!1;scrollObservation$=new Rt;styleModifier;constructor(i,t,r,o,s,a,u,b,y,I,N,K,de,fe,W,ge){super(i,t),this.elRef=t,this.ngZone=r,this.structureId=o,this.compositionId=s,this.structureCommandService=a,this.structureWarehouse=u,this.verticalFormationWarehouse=b,this.sourceWarehouse=y,this.compositionCommandInvoker=I,this.compositionWarehouse=N,this.compositionTemplateWarehouse=K,this.formationWarehouse=de,this.resizeDetector=fe,this.structureInitialValuesReadyArchive=W,this.structureParent=ge,this.styleModifier=new Eb(this.elRef.nativeElement)}ngOnInit(){this.subscribeWithoutRender(this.verticalFormationWarehouse.onContainerHeight(this.structureId),i=>{this.setContainerHeight(i)}),this.subscribe(No(Zr(this.structureInitialValuesReadyArchive.once(this.structureId)).pipe(hE(()=>Nr(Zr(this.sourceWarehouse.onItems(this.structureId)),Zr(this.compositionTemplateWarehouse.onTemplateCols(this.compositionId)))))),i=>{this.source=i[0],this.columns=i[1]}),this.subscribeWithoutRender(this.compositionWarehouse.onResizeWidth(this.compositionId),i=>{this.autoResizeWidthEnabled=i})}ngAfterViewInit(){super.ngAfterViewInit(),this.structureParent&&this.subscribeWithoutRender(this.resizeDetector.on(this.structureParent.getElementRef().nativeElement).pipe(He(()=>this.autoResizeWidthEnabled),te(i=>i.width),Tn()),i=>{this.recalculateContainer(i)}),this.subscribeWithoutRender(this.compositionWarehouse.onContainerWidth(this.compositionId),i=>{this.styleModifier.getElement(this.sourceCollectionRef.nativeElement).setWidth(i)}),this.subscribeWithoutRender(this.verticalFormationWarehouse.onEnabled(this.structureId),i=>{i?this.enableScrollObservation():this.disableScrollObservation()}),this.subscribeWithoutRender(this.structureWarehouse.on(this.structureId).pipe(He(i=>i.isVerticalScrollEnabled())),i=>{let t=i.getTopMargin(),r=i.getSourceHeight();this.setSourceHeight(t,r)}),this.subscribeWithoutRender(this.verticalFormationWarehouse.onScrollBarPosition(this.structureId),i=>{this.elRef.nativeElement.scrollTop=i})}ngOnDestroy(){super.ngOnDestroy(),this.resizeDetector.destroy(this.elRef.nativeElement)}getSelectorName(){return"gui-structure-container"}setContainerHeight(i){this.height=i,this.styleModifier.getHost().setHeight(i)}setSourceHeight(i,t){this.styleModifier.getElement(this.sourceCollectionRef.nativeElement).setPaddingTop(i),this.styleModifier.getElement(this.sourceCollectionRef.nativeElement).setHeight(t)}recalculateContainer(i){this.autoResizeWidthEnabled&&this.compositionCommandInvoker.setContainerWidth(i,this.compositionId)}enableScrollObservation(){this.ngZone.runOutsideAngular(()=>{Kd(this.elRef.nativeElement,"scroll").pipe(Hi(this.scrollObservation$)).subscribe(i=>{let t=i.target.scrollTop;this.structureCommandService.setScrollPosition(t,this.structureId)})})}disableScrollObservation(){this.scrollObservation$.next(),this.scrollObservation$.complete()}static \u0275fac=function(t){return new(t||n)(l(ee),l(S),l(he),l(Ie),l(Nt),l(qi),l(wa),l(lo),l(pn),l(On),l(Gi),l(hh),l($i),l(eM),l(al),l(AT,8))};static \u0275cmp=k({type:n,selectors:[["div","gui-structure-container",""]],viewQuery:function(t,r){if(t&1&&$(k5,5,S),t&2){let o;V(o=B())&&(r.sourceCollectionRef=o.first)}},features:[R],attrs:S5,decls:3,vars:2,consts:[["sourceCollection",""],[1,"gui-h-full","gui-w-full","gui-absolute","gui-structure-container-element"],["gui-structure-content","",3,"columns","source"]],template:function(t,r){t&1&&(f(0,"div",1,0),C(2,"div",2),v()),t&2&&(p(2),g("columns",r.columns)("source",r.source))},dependencies:[iM],encapsulation:2,changeDetection:0})}return n})(),rM=(()=>{class n extends Et{bannerPanel$;constructor(i,t){super(i,t)}initObservables(){this.bannerPanel$=this.selectBannerPanelTemplate()}selectBannerPanelTemplate(){return this.onBannerPanelConfig().pipe(te(i=>typeof i.template=="function"?i.template():i.template))}static \u0275fac=function(t){return new(t||n)(l(ee),l(S))};static \u0275dir=G({type:n,features:[R]})}return n})(),kH=(()=>{class n extends rM{structureTitlePanelConfigArchive;constructor(i,t,r){super(t,r),this.structureTitlePanelConfigArchive=i,this.initObservables()}onBannerPanelConfig(){return this.structureTitlePanelConfigArchive.on()}getSelectorName(){return"gui-structure-title-panel"}static \u0275fac=function(t){return new(t||n)(l(xu),l(ee),l(S))};static \u0275cmp=k({type:n,selectors:[["div","gui-structure-title-panel",""]],features:[R],attrs:D5,decls:3,vars:6,consts:[[1,"gui-title-panel","gui-p-6","gui-border-b","gui-border-b-solid",3,"innerHTML"]],template:function(t,r){t&1&&(C(0,"div",0),be(1,"guiPush"),be(2,"guiSafe")),t&2&&g("innerHTML",ms(2,3,xe(1,1,r.bannerPanel$),"html"),hs)},dependencies:[ll,kI],encapsulation:2,changeDetection:0})}return n})(),SH=(()=>{class n extends rM{structureFooterPanelConfigArchive;constructor(i,t,r){super(t,r),this.structureFooterPanelConfigArchive=i,this.initObservables()}onBannerPanelConfig(){return this.structureFooterPanelConfigArchive.on()}getSelectorName(){return"gui-structure-footer-panel"}static \u0275fac=function(t){return new(t||n)(l(Cu),l(ee),l(S))};static \u0275cmp=k({type:n,selectors:[["div","gui-structure-footer-panel",""]],features:[R],attrs:T5,decls:3,vars:6,consts:[[1,"gui-footer-panel","gui-p-6","gui-border-t","gui-border-t-solid",3,"innerHTML"]],template:function(t,r){t&1&&(C(0,"div",0),be(1,"guiPush"),be(2,"guiSafe")),t&2&&g("innerHTML",ms(2,3,xe(1,1,r.bannerPanel$),"html"),hs)},dependencies:[ll,kI],encapsulation:2,changeDetection:0})}return n})(),DH=(()=>{class n extends Et{structureDefinition;className;structureId=M(Ie);summariesWarehouse=M(ra);structureHeaderTopEnabledArchive=M(CI);structureHeaderBottomEnabledArchive=M(bu);searchWarehouse=M(Tr);pagingWarehouse=M(ao);structureWarehouse=M(wa);structureInfoPanelArchive=M(qo);structureTitlePanelConfigArchive=M(xu);structureFooterPanelConfigArchive=M(Cu);bottomSummariesPanelEnabled$=this.summariesWarehouse.onBottomEnabled(this.structureId);contentCssClass;headerCssClass;headerTopClasses;headerBottomClasses;topHeaderEnabled$=this.structureHeaderTopEnabledArchive.on();bottomHeaderEnabled$=this.structureHeaderBottomEnabledArchive.on();footerPanelEnabled$=this.selectFooterPanelEnabled();items$=this.selectItems();topSummariesPanelEnabled$=this.summariesWarehouse.onTopEnabled(this.structureId);searchEnabled$=this.searchWarehouse.onSearchEnabled(this.structureId);titlePanelEnabled$=this.selectTitlePanelEnabled();infoPanelEnabled$=this.selectInfoPanelEnabled();pagingModel$=this.pagingWarehouse.onPaging(this.structureId);constructor(i,t,r,o){super(i,t),this.structureDefinition=r,this.className=o,this.headerCssClass=`gui-${this.className}-header`,this.contentCssClass=`gui-${this.className}-content`,this.headerTopClasses=this.headerCssClass+" gui-header-top",this.headerBottomClasses=this.headerCssClass+" gui-header-bottom"}isColumnHeaderTopEnabled(i){return this.structureDefinition.isHeaderEnabled()&&i}isColumnHeaderBottomEnabled(i){return this.structureDefinition.isHeaderEnabled()&&i}isPagingTopEnabled(i){return this.structureDefinition.getTopPaging().isEnabled()&&i.isPagerTop()}isPagingBottomEnabled(i){return this.structureDefinition.getBottomPaging().isEnabled()&&i.isPagerBottom()}getSelectorName(){return"gui-structure-blueprint"}selectTitlePanelEnabled(){return this.structureTitlePanelConfigArchive.on().pipe(te(i=>i.enabled))}selectInfoPanelEnabled(){return this.structureInfoPanelArchive.on().pipe(te(i=>i.isEnabled()))}selectFooterPanelEnabled(){return this.structureFooterPanelConfigArchive.on().pipe(te(i=>i.enabled))}selectItems(){return this.structureWarehouse.on(this.structureId).pipe(te(i=>i.getEntities()))}static \u0275fac=function(t){return new(t||n)(l(ee),l(S),l(_a),l(ew))};static \u0275cmp=k({type:n,selectors:[["div","gui-structure-blueprint",""]],features:[R],attrs:M5,decls:15,vars:18,consts:[["gui-structure-title-panel","",4,"guiIf"],["gui-structure-top-panel","",4,"guiIf"],[4,"guiLet"],["gui-structure-summaries-panel","",1,"gui-structure-summaries-panel-top",3,"enabled"],["gui-structure-container","",3,"ngClass"],["gui-empty-source","",3,"items"],["gui-structure-summaries-panel","",1,"gui-structure-summaries-panel-bottom",3,"enabled"],["gui-structure-info-panel","",4,"guiIf"],["gui-structure-title-panel",""],["gui-structure-top-panel",""],["gui-paging","",3,"position",4,"ngIf"],["gui-paging","",3,"position"],["gui-structure-header","",3,"ngClass",4,"ngIf"],["gui-structure-header","",3,"ngClass"],["gui-structure-footer-panel","",4,"ngIf"],["gui-structure-footer-panel",""],["gui-structure-info-panel",""]],template:function(t,r){t&1&&(j(0,R5,1,0,"div",0)(1,A5,1,0,"div",1)(2,P5,2,1,"ng-container",2),C(3,"div",3),be(4,"guiPush"),j(5,N5,2,1,"ng-container",2),C(6,"div",4)(7,"div",5),be(8,"guiPush"),j(9,L5,2,1,"ng-container",2),C(10,"div",6),be(11,"guiPush"),j(12,B5,2,1,"ng-container",2)(13,H5,2,1,"ng-container",2)(14,U5,1,0,"div",7)),t&2&&(g("guiIf",r.titlePanelEnabled$),p(),g("guiIf",r.searchEnabled$),p(),g("guiLet",r.pagingModel$),p(),g("enabled",xe(4,12,r.topSummariesPanelEnabled$)),p(2),g("guiLet",r.topHeaderEnabled$),p(),g("ngClass",r.contentCssClass),p(),g("items",xe(8,14,r.items$)),p(2),g("guiLet",r.bottomHeaderEnabled$),p(),g("enabled",xe(11,16,r.bottomSummariesPanelEnabled$)),p(2),g("guiLet",r.footerPanelEnabled$),p(),g("guiLet",r.pagingModel$),p(),g("guiIf",r.infoPanelEnabled$))},dependencies:[Dt,rt,Ci,II,lz,Yz,aH,dH,uH,JT,nM,kH,SH,ll],encapsulation:2,changeDetection:0})}return n})();function TH(n){return new Ie("gui-grid-"+n.generateId())}function MH(n){return new Nt("gui-grid-"+n.generateId())}function RH(n){return new qt("gui-grid-"+n.generateId())}var oM=(()=>{class n extends iz{elementRef;detectorRef;injector;structureDefinition;structureWarehouse;compositionWarehouse;schemaStylesManager;schemaReadModelRootId;structureDetailViewService;loaderEnabled=!1;circleLoaderEnabled=!0;initialLoaderAnimation=!1;styleModifier;constructor(i,t,r,o,s,a,u,b,y,I,N,K,de,fe,W,ge,Ve,Vt,vt,zn,fn,Hn,sr,bl,vl,_h,yh,wh,Qt,_l,Gb,Ae,xh,Ch,Ih,Wb,O,qb,Sa,yl,wl){super(Ch,xh,Ae,i,t,yl,fe,r,o,u,b,s,a,I,N,K,de,W,ge,Vt,vt,zn,sr,bl,vl,Qt,_l,Gb),this.elementRef=xh,this.detectorRef=Ch,this.injector=Ih,this.structureDefinition=Wb,this.structureWarehouse=O,this.compositionWarehouse=qb,this.schemaStylesManager=Sa,this.schemaReadModelRootId=yl,this.structureDetailViewService=wl,this.styleModifier=new Eb(this.elementRef.nativeElement),fe.create(this.structureId),N.create(this.compositionId),I.create(this.schemaId)}ngOnInit(){super.ngOnInit(),this.subscribe(this.structureWarehouse.on(this.structureId),i=>{this.loaderEnabled=i.getSource().isLoading(),this.circleLoaderEnabled=i.isLoaderVisible(),this.loaderEnabled&&!this.initialLoaderAnimation&&(this.initialLoaderAnimation=!0),this.detectorRef.detectChanges()}),this.structureDetailViewService.init(this.elementRef)}ngAfterViewInit(){this.structureInitialValuesReadyArchive.next(this.structureId,!0);let i=this.elementRef.nativeElement.offsetWidth;i>0?this.compositionCommandDispatcher.setContainerWidth(i,this.compositionId):Z_(0).pipe(this.takeUntil()).subscribe(()=>{i=this.elementRef.nativeElement.offsetWidth,i>0&&this.compositionCommandDispatcher.setContainerWidth(i,this.compositionId)}),this.schemaStylesManager.init(this.elementRef,this.schemaReadModelRootId),this.subscribeWithoutRender(this.compositionWarehouse.onWidth(this.compositionId),t=>{this.styleModifier.getHost().setWidth(t)})}isBorderEnabled(){return this.structureDefinition.isBorderEnabled()}getStructureId(){return this.structureId}getElementRef(){return this.elementRef}getSelectorName(){return"gui-structure"}static \u0275fac=function(t){return new(t||n)(l(Ie),l(Nt),l(Yi),l(kr),l(dn),l(Js),l(hn),l(un),l(na),l(Wi),l(On),l(Qo),l(Jo),l(qi),l(Vp),l(so),l(qo),l(Hp),l(Lp),l(ea),l(vu),l(Cb),l(di),l(Sr),l(bu),l($p),l(xu),l(Cu),l(Dr),l(rr),l(al),l(Yo),l(S),l(ee),l(ye),l(_a),l(wa),l(Gi),l(xT),l(qt),l(CT))};static \u0275cmp=k({type:n,selectors:[["gui-structure"]],hostVars:3,hostBindings:function(t,r){t&2&&(Ai("id",r.structureId.toString()),X("gui-structure-border",r.isBorderEnabled()))},features:[_e([{provide:Ie,useFactory:TH,deps:[Ys]},{provide:Nt,useFactory:MH,deps:[Ys]},{provide:qt,useFactory:RH,deps:[Ys]},xT,PT,Lp,Vp,qo,Hp,vu,Ib.forComponent(),uo.forComponent(),CI,bu,$p,CT,xu,Cu,{provide:tz,useExisting:n},{provide:_z,useExisting:n}]),R],decls:3,vars:5,consts:[["gui-structure-blueprint",""],[1,"gui-loading",3,"ngClass"],[3,"diameter","primary",4,"ngIf"],[3,"diameter","primary"]],template:function(t,r){t&1&&(C(0,"div",0),f(1,"div",1),j(2,G5,1,2,"gui-spinner",2),v()),t&2&&(p(),g("ngClass",zl(2,$5,r.loaderEnabled,!r.loaderEnabled&&r.initialLoaderAnimation)),p(),g("ngIf",r.circleLoaderEnabled))},dependencies:[Dt,rt,wT,DH],styles:[`.gui-box-border{box-sizing:border-box}.gui-bg-transparent{background-color:transparent}.gui-border{border-width:1px}.gui-border-0{border-width:0}.gui-border-b{border-bottom-width:1px}.gui-border-t{border-top-width:1px}.gui-border-solid{border-style:solid}.gui-border-b-solid{border-bottom-style:solid}.gui-border-t-solid{border-top-style:solid}.gui-border-none{border-style:none}.gui-rounded{border-radius:4px}.gui-cursor-pointer{cursor:pointer}.gui-block{display:block}.gui-inline-block{display:inline-block}.gui-inline{display:inline}.gui-flex{display:-ms-flexbox;display:flex}.gui-hidden{display:none}.gui-display-grid{display:grid}.gui-flex-row{-ms-flex-direction:row;flex-direction:row}.gui-flex-row-reverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.gui-flex-col{-ms-flex-direction:column;flex-direction:column}.gui-flex-col-reverse{-ms-flex-direction:column-reverse;flex-direction:column-reverse}.gui-justify-start{-ms-flex-pack:start;justify-content:flex-start}.gui-justify-end{-ms-flex-pack:end;justify-content:flex-end}.gui-justify-center{-ms-flex-pack:center;justify-content:center}.gui-justify-between{-ms-flex-pack:justify;justify-content:space-between}.gui-justify-around{-ms-flex-pack:distribute;justify-content:space-around}.gui-justify-evenly{-ms-flex-pack:space-evenly;justify-content:space-evenly}.gui-items-start{-ms-flex-align:start;align-items:flex-start}.gui-items-end{-ms-flex-align:end;align-items:flex-end}.gui-items-center{-ms-flex-align:center;align-items:center}.gui-items-between{-ms-flex-align:space-between;align-items:space-between}.gui-items-around{-ms-flex-align:space-around;align-items:space-around}.gui-items-evenly{-ms-flex-align:space-evenly;align-items:space-evenly}.gui-flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.gui-flex-wrap-reverse{-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse}.gui-flex-nowrap{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.gui-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.gui-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gui-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.gui-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.gui-grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.gui-grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.gui-grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.gui-grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.gui-grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.gui-grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.gui-grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.gui-grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.gui-grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.gui-grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.gui-grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.gui-grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.gui-grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.gui-grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.gui-grid-rows-gap-0{grid-row-gap:0}.gui-grid-rows-gap-1{grid-row-gap:1px}.gui-grid-rows-gap-2{grid-row-gap:2px}.gui-grid-rows-gap-3{grid-row-gap:3px}.gui-grid-rows-gap-4{grid-row-gap:4px}.gui-grid-rows-gap-5{grid-row-gap:6px}.gui-grid-rows-gap-6{grid-row-gap:8px}.gui-grid-rows-gap-7{grid-row-gap:10px}.gui-grid-rows-gap-8{grid-row-gap:12px}.gui-grid-rows-gap-10{grid-row-gap:16px}.gui-grid-rows-gap-13{grid-row-gap:22px}.gui-grid-rows-gap-23{grid-row-gap:42px}.gui-grid-cols-gap-0{grid-column-gap:0}.gui-grid-cols-gap-1{grid-column-gap:1px}.gui-grid-cols-gap-2{grid-column-gap:2px}.gui-grid-cols-gap-3{grid-column-gap:3px}.gui-grid-cols-gap-4{grid-column-gap:4px}.gui-grid-cols-gap-5{grid-column-gap:6px}.gui-grid-cols-gap-6{grid-column-gap:8px}.gui-grid-cols-gap-7{grid-column-gap:10px}.gui-grid-cols-gap-8{grid-column-gap:12px}.gui-grid-cols-gap-10{grid-column-gap:16px}.gui-grid-cols-gap-13{grid-column-gap:22px}.gui-grid-cols-gap-23{grid-column-gap:42px}.gui-h-full{height:100%}.gui-list-none{list-style-type:none}.gui-m-0{margin:0}.gui-mx-0{margin-left:0;margin-right:0}.gui-my-0{margin-bottom:0;margin-top:0}.-gui-m-0{margin:0}.-gui-mx-0{margin-left:0;margin-right:0}.-gui-my-0{margin-bottom:0;margin-top:0}.gui-m-1{margin:1px}.gui-mx-1{margin-left:1px;margin-right:1px}.gui-my-1{margin-bottom:1px;margin-top:1px}.-gui-m-1{margin:-1px}.-gui-mx-1{margin-left:-1px;margin-right:-1px}.-gui-my-1{margin-bottom:-1px;margin-top:-1px}.gui-m-2{margin:2px}.gui-mx-2{margin-left:2px;margin-right:2px}.gui-my-2{margin-bottom:2px;margin-top:2px}.-gui-m-2{margin:-2px}.-gui-mx-2{margin-left:-2px;margin-right:-2px}.-gui-my-2{margin-bottom:-2px;margin-top:-2px}.gui-m-3{margin:3px}.gui-mx-3{margin-left:3px;margin-right:3px}.gui-my-3{margin-bottom:3px;margin-top:3px}.-gui-m-3{margin:-3px}.-gui-mx-3{margin-left:-3px;margin-right:-3px}.-gui-my-3{margin-bottom:-3px;margin-top:-3px}.gui-m-4{margin:4px}.gui-mx-4{margin-left:4px;margin-right:4px}.gui-my-4{margin-bottom:4px;margin-top:4px}.-gui-m-4{margin:-4px}.-gui-mx-4{margin-left:-4px;margin-right:-4px}.-gui-my-4{margin-bottom:-4px;margin-top:-4px}.gui-m-5{margin:6px}.gui-mx-5{margin-left:6px;margin-right:6px}.gui-my-5{margin-bottom:6px;margin-top:6px}.-gui-m-5{margin:-6px}.-gui-mx-5{margin-left:-6px;margin-right:-6px}.-gui-my-5{margin-bottom:-6px;margin-top:-6px}.gui-m-6{margin:8px}.gui-mx-6{margin-left:8px;margin-right:8px}.gui-my-6{margin-bottom:8px;margin-top:8px}.-gui-m-6{margin:-8px}.-gui-mx-6{margin-left:-8px;margin-right:-8px}.-gui-my-6{margin-bottom:-8px;margin-top:-8px}.gui-m-7{margin:10px}.gui-mx-7{margin-left:10px;margin-right:10px}.gui-my-7{margin-bottom:10px;margin-top:10px}.-gui-m-7{margin:-10px}.-gui-mx-7{margin-left:-10px;margin-right:-10px}.-gui-my-7{margin-bottom:-10px;margin-top:-10px}.gui-m-8{margin:12px}.gui-mx-8{margin-left:12px;margin-right:12px}.gui-my-8{margin-bottom:12px;margin-top:12px}.-gui-m-8{margin:-12px}.-gui-mx-8{margin-left:-12px;margin-right:-12px}.-gui-my-8{margin-bottom:-12px;margin-top:-12px}.gui-m-10{margin:16px}.gui-mx-10{margin-left:16px;margin-right:16px}.gui-my-10{margin-bottom:16px;margin-top:16px}.-gui-m-10{margin:-16px}.-gui-mx-10{margin-left:-16px;margin-right:-16px}.-gui-my-10{margin-bottom:-16px;margin-top:-16px}.gui-m-13{margin:22px}.gui-mx-13{margin-left:22px;margin-right:22px}.gui-my-13{margin-bottom:22px;margin-top:22px}.-gui-m-13{margin:-22px}.-gui-mx-13{margin-left:-22px;margin-right:-22px}.-gui-my-13{margin-bottom:-22px;margin-top:-22px}.gui-m-23{margin:42px}.gui-mx-23{margin-left:42px;margin-right:42px}.gui-my-23{margin-bottom:42px;margin-top:42px}.-gui-m-23{margin:-42px}.-gui-mx-23{margin-left:-42px;margin-right:-42px}.-gui-my-23{margin-bottom:-42px;margin-top:-42px}.gui-mb-4{margin-bottom:4px}.gui-mb-6{margin-bottom:8px}.gui-mb-8{margin-bottom:12px}.gui-mb-10{margin-bottom:16px}.gui-mb-18{margin-bottom:32px}.gui-mr-0{margin-right:0}.gui-mr-5{margin-right:6px}.gui-mr-auto{margin-right:auto}.gui-ml-auto{margin-left:auto}.gui-ml-6{margin-left:8px}.gui-mt-0{margin-top:0}.gui-mt-4{margin-top:4px}.gui-mt-6{margin-top:8px}.gui-mt-10{margin-top:16px}.gui-mt-14{margin-top:24px}.gui-overflow-hidden{overflow:hidden}.gui-overflow-y-scroll{overflow-y:scroll}.gui-overflow-x-hidden{overflow-x:hidden}.gui-overflow-auto{overflow:auto}.gui-p-0{padding:0}.gui-px-0{padding-left:0;padding-right:0}.gui-py-0{padding-bottom:0;padding-top:0}.gui-p-1{padding:1px}.gui-px-1{padding-left:1px;padding-right:1px}.gui-py-1{padding-bottom:1px;padding-top:1px}.gui-p-2{padding:2px}.gui-px-2{padding-left:2px;padding-right:2px}.gui-py-2{padding-bottom:2px;padding-top:2px}.gui-p-3{padding:3px}.gui-px-3{padding-left:3px;padding-right:3px}.gui-py-3{padding-bottom:3px;padding-top:3px}.gui-p-4{padding:4px}.gui-px-4{padding-left:4px;padding-right:4px}.gui-py-4{padding-bottom:4px;padding-top:4px}.gui-p-5{padding:6px}.gui-px-5{padding-left:6px;padding-right:6px}.gui-py-5{padding-bottom:6px;padding-top:6px}.gui-p-6{padding:8px}.gui-px-6{padding-left:8px;padding-right:8px}.gui-py-6{padding-bottom:8px;padding-top:8px}.gui-p-7{padding:10px}.gui-px-7{padding-left:10px;padding-right:10px}.gui-py-7{padding-bottom:10px;padding-top:10px}.gui-p-8{padding:12px}.gui-px-8{padding-left:12px;padding-right:12px}.gui-py-8{padding-bottom:12px;padding-top:12px}.gui-p-10{padding:16px}.gui-px-10{padding-left:16px;padding-right:16px}.gui-py-10{padding-bottom:16px;padding-top:16px}.gui-p-13{padding:22px}.gui-px-13{padding-left:22px;padding-right:22px}.gui-py-13{padding-bottom:22px;padding-top:22px}.gui-p-23{padding:42px}.gui-px-23{padding-left:42px;padding-right:42px}.gui-py-23{padding-bottom:42px;padding-top:42px}.gui-pr-10{padding-right:16px}.gui-pl-9{padding-right:10px}.gui-pb-6{padding-bottom:8px}.gui-pb-12{padding-bottom:20px}.gui-pl-21{padding-left:38px}.gui-pt-4{padding-top:4px}.gui-pt-6{padding-top:8px}.gui-pt-10{padding-top:16px}.gui-pt-12{padding-top:20px}.gui-pt-14{padding-top:24px}.gui-static{position:static}.gui-fixed{position:fixed}.gui-relative{position:relative}.gui-absolute{position:absolute}.gui-text-xxs{font-size:11px}.gui-text-xs{font-size:12px}.gui-text-sm{font-size:13px}.gui-text-base{font-size:14px}.gui-text-lg{font-size:16px}.gui-text-xl{font-size:18px}.gui-text-2xl{font-size:20px}.gui-text-3xl{font-size:22px}.gui-leading-4{line-height:16px}.gui-leading-6{line-height:24px}.gui-font-thin{font-weight:100}.gui-font-extralight{font-weight:200}.gui-font-light{font-weight:300}.gui-font-normal{font-weight:400}.gui-font-medium{font-weight:500}.gui-font-semibold{font-weight:600}.gui-font-bold{font-weight:700}.gui-font-extrabold{font-weight:800}.gui-font-black{font-weight:900}.gui-not-italic{font-style:normal}.gui-whitespace-nowrap{white-space:nowrap}.gui-overflow-ellipsis{text-overflow:ellipsis}.gui-no-underline{text-decoration:none}.gui-text-center{text-align:center}.gui-w-full{width:100%}.gui-w-96{width:384px}.gui-w-3\\/5{width:60%}.gui-structure *,.gui-structure *:after,.gui-structure *:before{box-sizing:border-box}.gui-structure input{font-size:13px;outline:0}.gui-bold{font-weight:700}.gui-italic{font-style:italic}.gui-bar-view{width:100%}.gui-align-right{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;text-align:right;width:100%}.gui-align-left{text-align:left;width:100%}.gui-align-center{-ms-flex-pack:center;justify-content:center;text-align:center;width:100%}.gui-icon{cursor:pointer}.gui-icon svg{fill:#aaa;stroke:#aaa;transition:stroke .3s ease-in-out}.gui-icon svg:hover{fill:#464646!important;stroke:#464646!important}.gui-view-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gui-percentage-bar{background:#deebff;border-radius:4px;box-shadow:inset 1px 1px 2px #ccc;color:#0747a6;height:22px;padding:4px;position:relative;text-align:center;width:100%}.gui-percentage-bar .gui-percentage{background:#8abcfc;border-radius:4px;height:22px;left:0;position:absolute;top:0}.gui-percentage-bar .gui-percentage-view{color:#031d44;position:relative;width:100%}.gui-clear-search-icon{cursor:pointer;height:16px;position:absolute;right:8px;top:50%;-ms-transform:translateY(-50%);transform:translateY(-50%);width:16px}.gui-clear-search-icon:before,.gui-clear-search-icon:after{background-color:#aaa;border-radius:8px;content:" ";height:16px;left:7px;position:absolute;width:2px}.gui-clear-search-icon:before{-ms-transform:rotate(45deg);transform:rotate(45deg)}.gui-clear-search-icon:after{-ms-transform:rotate(-45deg);transform:rotate(-45deg)}.gui-clear-search-icon:hover:before,.gui-clear-search-icon:hover:after{background-color:#464646}
`,`.gui-structure,.gui-structure *{border-color:#d6d6d6;font-size:14px}.gui-structure input{color:#333;font-family:Arial}.gui-header{background:#f2f3f4;border-bottom:1px solid;border-color:inherit;height:36px}.gui-header .gui-header-cell.gui-header-sortable{cursor:pointer}.gui-header .gui-header-cell.gui-header-sortable:hover{background:#e6e7e8}.gui-header .gui-header-cell .gui-header-menu-icon{display:none}.gui-header .gui-header-cell:hover .gui-header-menu{cursor:pointer}.gui-header .gui-header-cell:hover .gui-header-menu .gui-header-menu-icon-wrapper .gui-header-menu-icon{display:block}.gui-header .gui-header-cell:last-of-type{border-right:0}.gui-header .gui-header-cell .gui-header-title{display:-ms-flexbox;display:flex;line-height:1.4em}.gui-header .gui-header-cell .gui-header-menu{display:-ms-flexbox;display:flex}.gui-header .gui-header-cell .gui-header-menu .gui-header-menu-icon-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:16px;padding:16px;position:relative;right:0;width:16px}.gui-header .gui-header-cell .gui-header-menu .gui-header-menu-icon-wrapper .gui-header-menu-icon{display:none;height:16px;width:16px}.gui-header-bottom .gui-header{border-bottom:0;border-color:inherit;border-top:1px solid}.gui-structure{background:#fff;border-color:#d6d6d6;box-sizing:border-box;color:#333;display:block;font-family:Arial;font-size:14px;position:relative}.gui-structure *{box-sizing:border-box}.gui-structure .gui-structure-header{display:block;height:100%;width:100%}.gui-structure .gui-structure-header .gui-structure-header-filters.gui-header{height:32px}.gui-structure .gui-structure-header .gui-structure-header-filters.gui-header .gui-header-cell{padding:4px}.gui-structure .gui-structure-header .gui-structure-header-filters.gui-header .gui-header-cell input{box-sizing:border-box;height:100%;padding:2px;position:relative;width:100%;border-color:#d6d6d6;border-style:solid;border-width:1px;font-size:13px}.gui-structure-container{display:block;height:100%;overflow:auto;overflow-x:hidden;position:relative;width:100%}.gui-structure-container .gui-structure-container-element{height:100%;position:absolute;width:100%}.gui-structure-container .gui-structure-container-element .gui-content{height:100%;position:relative}.gui-structure-container .gui-structure-container-element .gui-content .gui-row{border-bottom:1px solid transparent;position:absolute;width:100%}.gui-structure-container .gui-structure-container-element .gui-content .gui-row:last-child{border-bottom:0}.gui-structure-container .gui-structure-container-element .gui-content .gui-row:hover{background:#ecedee}.gui-structure-container .gui-structure-container-element .gui-content .gui-row.selected{background:#d0e8fb}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell{border-right:1px solid transparent;box-sizing:border-box;line-height:1em;overflow:hidden;padding:0;white-space:nowrap}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-cell-view span{line-height:1.4em}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-button{padding:0}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-cell-boolean{-ms-flex-pack:center;justify-content:center}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-checkbox{line-height:24px;position:relative}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-checkbox input{position:relative}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-chip{line-height:1em;margin:0;padding:4px 8px}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-badge{padding:0}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-input{background:transparent;font-size:14px;padding:0;border-radius:0;border-style:none}.gui-structure-container .gui-cell{display:inline-block}.gui-structure-container .gui-cell:last-child .gui-cell-view{padding-right:20px}.gui-structure-container .gui-cell>span{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:100%;padding:0 8px;width:100%}.gui-structure-container .gui-cell .gui-cell-edit-mode{border:2px solid #2185d0;height:100%;padding:6px}.gui-structure-container .gui-cell .gui-cell-edit-mode .gui-boolean-edit{margin-left:calc(50% - 11px)}.gui-structure-container .gui-cell .gui-cell-edit-mode input:focus{box-shadow:none;outline:none}.gui-vertical-grid .gui-structure-summaries-cell,.gui-vertical-grid .gui-structure-container-element .gui-content .gui-row .gui-cell,.gui-vertical-grid .gui-structure-header .gui-header .gui-header-cell{border-right:1px solid;border-right-color:inherit}.gui-vertical-grid .gui-structure-container-element .gui-content .gui-row .gui-cell:last-of-type,.gui-vertical-grid .gui-structure-header .gui-header .gui-header-cell:last-of-type{border-right:0}.gui-vertical-grid .gui-row-checkbox{border-right:1px solid!important;border-right-color:inherit!important}.gui-horizontal-grid .gui-structure-container-element .gui-content .gui-row{border-bottom:1px solid;border-bottom-color:inherit}.gui-horizontal-grid .gui-structure-container-element .gui-content .gui-row:last-of-type{border-bottom:0}.gui-rows-even .gui-row.even,.gui-rows-odd .gui-row.odd{background:#f7f8f9}.gui-structure-info-panel{-ms-flex-align:center;align-items:center;background:#f2f3f4;box-sizing:border-box;display:-ms-flexbox;display:flex;height:36px;-ms-flex-pack:justify;justify-content:space-between;padding:0 6px;width:100%;border-top-color:inherit;border-top-style:solid;border-top-width:1px}.gui-structure-info-panel p{margin:0}.gui-structure-info-panel p b{font-weight:700}.gui-structure-info-panel div button{background:#ccc;color:#fff;cursor:pointer;font-family:Arial;font-weight:700;height:16px;line-height:14px;padding:0;width:16px;border-color:transparent;border-radius:50%;border-style:solid;border-width:1px}.gui-structure-info-panel div button:focus{box-shadow:0 0 4px #ccc;outline:none}.gui-structure-border{border:1px solid;border-color:#d6d6d6}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.gui-loading{-ms-flex-line-pack:center;align-content:center;animation-duration:.2s;background:rgba(255,255,255,.8);border:1px solid;border-color:inherit;display:-ms-flexbox;display:flex;height:100%;-ms-flex-pack:center;justify-content:center;left:0;opacity:0;position:absolute;top:0;visibility:hidden;width:100%}.gui-loading .gui-spinner{-ms-flex-item-align:center;align-self:center}.gui-loading.gui-loader-hidden{animation-name:fadeOut;opacity:0;visibility:visible;z-index:-1}.gui-loading.gui-loader-visible{animation-name:fadeIn;opacity:1;visibility:visible;z-index:1}.gui-text-highlight{background:#fff799;padding:0!important}.gui-title-panel{border-bottom-color:#d6d6d6}.gui-footer-panel{border-top-color:#d6d6d6}.gui-structure-schema-manager-icon{margin-right:16px}.gui-structure-schema-manager-icon svg{height:18px;margin-bottom:-1px;width:18px}.gui-row-radio{-ms-flex-align:center;align-items:center;cursor:pointer;display:-ms-flexbox!important;display:flex!important;-ms-flex-pack:center;justify-content:center;padding:0 12px!important;width:48px!important}.gui-row-radio .gui-radio-button{height:24px;margin:0;padding:0;width:24px}.gui-row-checkbox{-ms-flex-align:center;align-items:center;cursor:pointer;display:-ms-flexbox!important;display:flex!important;-ms-flex-pack:center;justify-content:center;padding:0 12px!important;width:48px!important}.gui-row-checkbox .gui-checkbox{height:24px;margin:0;padding:0;width:24px}.gui-select-all .gui-checkbox .gui-checkmark{top:0}.gui-structure-cell-edit-boolean{height:100%}.gui-column-highlighted{background:#fffddd}.gui-structure-column-manager>div:hover{background:#ecedee}.gui-structure-column-manager label{margin-bottom:0}.gui-structure-ordered-list li:hover{background:#ecedee}
`,`.gui-structure-column-menu-icon svg{height:16px;width:16px}.gui-structure-column-menu-icon .cls-1{fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}.gui-structure-column-menu-arrow-icon{display:inline-block}.gui-structure-column-menu-arrow-icon svg{height:10px;width:12px}.gui-structure-column-menu-arrow-icon .gui-structure-column-menu-sort-icon svg{height:16px}.gui-structure-column-menu-arrow-icon .cls-1{fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}
`,`.gui-summaries-value{font-weight:700}.gui-structure-summaries-panel{background:#f2f3f4}.gui-structure-summaries-panel.gui-structure-summaries-panel-bottom .gui-structure-summaries-cell{border-top:1px solid #d6d6d6}.gui-structure-summaries-panel.gui-structure-summaries-panel-top .gui-structure-summaries-cell{border-bottom:1px solid #d6d6d6}.gui-structure-summaries-panel .gui-structure-summaries-cell{font-size:14px;padding-left:16px;padding-right:16px}.gui-structure-summaries-panel .gui-structure-summaries-cell:last-child{padding-right:20px}.gui-structure-summaries-panel .gui-structure-summaries-value{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;line-height:1em;overflow:hidden;padding:8px 0}.gui-structure-summaries-panel .gui-structure-summaries-value div .gui-math-symbol{position:relative;top:-1px}.gui-structure-summaries-panel .gui-structure-summaries-value .gui-mean,.gui-structure-summaries-panel .gui-structure-summaries-value .gui-median{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative}.gui-structure-summaries-panel .gui-structure-summaries-value .gui-mean span:nth-child(1){left:1px;position:absolute;top:-15px}.gui-structure-summaries-panel .gui-structure-summaries-value .gui-median span:nth-child(1){left:1px;position:absolute;top:-8px}
`,`.gui-structure-column-manager-icon svg{height:16px;width:16px}.gui-structure-column-manager-icon .cls-1,.gui-structure-column-manager-icon .cls-2{fill:none;stroke-linecap:round;stroke-linejoin:round}.gui-structure-column-manager-icon .cls-2{stroke-width:1.5px}.gui-structure-info-icon svg{height:16px;width:16px}.gui-structure-info-icon .cls-1{stroke-width:0}.gui-structure-info-icon .cls-2{fill:none;stroke-linecap:round;stroke-linejoin:round}.gui-structure-info-panel div,.gui-structure-info-panel div button{display:inline-block}.gui-structure-info-panel .gui-right-section .gui-structure-column-manager-icon{margin-right:16px;position:relative}.gui-structure-info-panel .gui-right-section .gui-structure-info-icon{margin-right:4px;position:relative}.gui-structure-info-modal .gui-quote{color:#575757}.gui-structure-info-modal p{color:#333}.gui-structure-info-modal a{color:#2185d0}.gui-structure-info-modal a:hover{color:#59a9e5;text-decoration:underline}
`,`@media (max-width: 500px){.gui-paging>*{padding-left:4px}.gui-paging .gui-paging-stats{padding-left:4px}}
`,`.gui-header{display:-ms-flexbox;display:flex}.gui-header .gui-header-cell{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}.gui-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.gui-content .gui-structure-cell-container,.gui-content .gui-row{display:-ms-flexbox;display:flex}.gui-content .gui-structure-cell-container .gui-cell,.gui-content .gui-row .gui-cell{display:inline-block}.gui-content .gui-structure-row-details{background:#80cbc4;display:block;height:200px;position:absolute;-ms-transform:translateY(0);transform:translateY(0);width:100%}
`,`.gui-inline-dialog-header-menu.gui-inline-dialog-wrapper .gui-inline-dialog-content{background:transparent;box-shadow:none}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-item-active{font-weight:700}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-list{background:#fff}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-item{color:#333}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-item:hover{background:#ecedee}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-item.gui-active{color:#2185d0}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-content{box-shadow:0 3px 7px #ccc;box-sizing:content-box;padding:0;width:225px}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move{color:#333;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:0}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item{-ms-flex-align:center;align-items:center;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item svg line{stroke:#aaa}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item.left{padding:12px 16px 12px 12px;width:48%}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item.right{padding:12px 10px;width:52%}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item:hover{background:#ecedee}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item:hover svg line{stroke:#464646}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-container{border:none;border-radius:0}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-container:hover{background:#ecedee}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-container:hover .gui-dropdown-arrow{opacity:1}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-menu{width:125px}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-menu .gui-item{background:#fff;color:#333;display:-ms-flexbox;display:flex;padding:8px 8px 8px 12px}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-menu .gui-item:hover{background:#ecedee}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-menu .gui-item:hover .gui-sort-title svg line{stroke:#464646}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-menu .gui-item .gui-sort-title{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;width:100%}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-menu .gui-item .gui-sort-title svg{margin-top:3px}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-menu .gui-item .gui-sort-title svg line{stroke:#aaa}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-item{color:#333;cursor:pointer;display:block;padding:8px 12px}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-item:hover{background:#ecedee}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-checkbox{color:#333;margin-left:12px;padding:8px 12px 8px 32px;width:169px}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-checkbox label{display:inline-block;width:inherit}
`,`.gui-schema-manager-dialog .gui-schema-manager{min-width:180px}.gui-schema-manager-dialog .gui-schema-manager .gui-structure-schema-manager-select,.gui-schema-manager-dialog .gui-schema-manager .gui-checkbox{color:#333}.gui-schema-manager-dialog .gui-schema-manager .gui-structure-schema-manager-select:nth-last-child(1),.gui-schema-manager-dialog .gui-schema-manager .gui-checkbox:nth-last-child(1){margin-bottom:0}.gui-dialog-title{border-bottom:solid 1px #d6d6d6;font-size:18px;font-weight:700;margin-left:-16px;margin-right:-16px;padding-bottom:16px;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.gui-structure-schema-manager-select{padding:8px 0 24px}.gui-structure-dialog-column-manager ol{max-height:400px;min-width:250px}
`,`.gui-cell .gui-checkbox{display:block}.gui-cell .gui-chip{margin:0;padding:2px 8px}.gui-cell .gui-input{display:block;font-size:11px;padding:2px 4px;width:100%}.gui-cell .gui-button{padding:2px 8px}.gui-cell .gui-cell-number{display:block;width:100%}.gui-cell .gui-cell-boolean{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:100%;text-align:center;width:100%}.gui-cell .gui-string-edit{width:100%}
`,`.gui-fabric{border-color:#d6d6d6;font-family:Arial;font-size:14px}.gui-fabric .gui-header-cell,.gui-fabric .gui-structure-header-columns,.gui-fabric .gui-structure-top-panel,.gui-fabric .gui-structure-info-panel,.gui-fabric .gui-paging{height:42px}
`,`.gui-material{border-color:#0000001f;font-family:Arial;font-size:14px}.gui-material *{border-color:#0000001f}.gui-material.gui-structure{border:0;border-radius:0;box-shadow:0 2px 2px #00000024,0 3px 1px -2px #0000001f,0 1px 5px #0003}.gui-material.gui-structure,.gui-material .gui-header{font-family:Arial}.gui-material .gui-header-cell,.gui-material .gui-structure-header-columns{height:56px}.gui-material .gui-header .gui-header-cell.gui-header-sortable:hover{background:transparent}.gui-material .gui-header-cell{padding-left:16px;padding-right:16px}.gui-material .gui-structure-container-element .gui-structure-cell>span{padding-left:16px;padding-right:16px}.gui-material .gui-structure-container .gui-structure-container-element .gui-content .gui-row:hover{background:rgba(0,0,0,.04)}.gui-material .gui-structure-container .gui-structure-container-element .gui-content .gui-row.selected{background:#e6f7ff}.gui-material .gui-structure-header .gui-header{background:transparent;color:#464646;font-weight:700}.gui-material .gui-structure-header .gui-header .gui-header-cell{border-color:inherit}.gui-material .gui-cell .gui-button,.gui-material .gui-cell .gui-badge{padding:0}.gui-material .gui-paging-alternative-navigator .gui-button{background:transparent;color:#333;margin:0 4px;padding:0}.gui-material .gui-paging-alternative-navigator .gui-button:hover{background:transparent}.gui-material .gui-paging-alternative-navigator .gui-button:disabled{background:transparent;color:#ccc;opacity:.4}.gui-material .gui-structure-summaries-panel{background:#fff}.gui-material gui-structure-top-panel,.gui-material .gui-structure-info-panel,.gui-material .gui-paging{height:52px;padding-left:16px;padding-right:16px}.gui-material .gui-structure-info-panel{background:#fff;border-radius:0}.gui-material gui-structure-top-panel{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;padding-right:0}.gui-material gui-structure-top-panel .gui-search-bar form input{border:0;outline:0}.gui-material .gui-search-bar form input{border:0;outline:none}
`,`.gui-dark{border-color:#575757;border-radius:2px;color:#f0f0f0;font-family:Arial;font-size:14px}.gui-dark *{border-color:#575757;color:#f0f0f0}.gui-dark.gui-structure{border-radius:2px}.gui-dark .gui-header-cell,.gui-dark .gui-structure-header-columns{background:#333;height:46px}.gui-dark .gui-structure-border{border:none;box-shadow:5px 5px 10px 2px #1f1f1f}.gui-dark .gui-header-cell{border-bottom:1px solid;border-color:inherit;padding-left:16px;padding-right:16px}.gui-dark .gui-structure-container-element .gui-structure-cell>span{padding-left:16px;padding-right:16px}.gui-dark .gui-structure-header .gui-header{border-bottom-color:#666;color:#bdbdbd}.gui-dark .gui-structure-header .gui-header .gui-header-cell:hover{background:#525252}.gui-dark .gui-structure-header .gui-header .gui-header-cell:hover .gui-header-menu .gui-header-menu-icon-wrapper{background-color:#525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-list{background:#383838}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-item{color:#f0f0f0}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-item:hover{background:#525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-item.gui-active{color:#ce93d8}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-content{box-shadow:0 1px 2px #525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-structure-column-manager ol li:hover{background:#525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move{color:#f0f0f0}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item:hover{background:#525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item:hover svg line{stroke:#ce93d8}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-container .gui-dropdown-menu{border-color:#666}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-container .gui-dropdown-menu .gui-item:hover svg line{stroke:#ce93d8}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-container:hover{background:#525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-item{background:#383838;color:#f0f0f0;display:-ms-flexbox;display:flex}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-item:hover{background:#525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-item{color:#f0f0f0}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-item:hover{background:#525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-checkbox{color:#f0f0f0}.gui-dark .gui-structure-column-manager>div:hover{background:#525252}.gui-dark .gui-structure-container .gui-structure-container-element .gui-content .gui-row:hover{background:#525252}.gui-dark .gui-structure-container .gui-structure-container-element .gui-content .gui-row.selected{background:rgba(124,185,246,.3215686275)}.gui-dark.gui-rows-odd .gui-row.odd,.gui-dark.gui-rows-even .gui-row.even{background:#4f4f4f}.gui-dark .gui-horizontal-grid .gui-structure-container-element .gui-row .gui-cell{border-bottom-color:#666}.gui-dark .gui-paging.gui-paging-bottom{border-top-color:#666}.gui-dark .gui-paging.gui-paging-top{border-bottom-color:#666}.gui-dark ::-webkit-scrollbar{width:15px}.gui-dark ::-webkit-scrollbar-track{background:#616161}.gui-dark ::-webkit-scrollbar-thumb{background:#424242}.gui-dark ::-webkit-scrollbar-thumb:hover{background:#212121}.gui-dark .gui-structure-top-panel,.gui-dark .gui-structure-info-panel,.gui-dark .gui-paging,.gui-dark .gui-structure-container-element,.gui-dark .gui-row{background:#444}.gui-dark .gui-structure-top-panel,.gui-dark .gui-structure-info-panel,.gui-dark .gui-paging{height:42px;padding-left:16px;padding-right:16px}.gui-dark .gui-structure-summaries-cell{background:#383838;color:#f0f0f0}.gui-dark .gui-structure-summaries-panel-bottom .gui-structure-summaries-cell{border-top-color:#666}.gui-dark .gui-structure-summaries-panel-top .gui-structure-summaries-cell{border-bottom-color:#666}.gui-dark .gui-structure-info-panel{background:#383838;border-top-color:#666}.gui-dark .gui-structure-info-panel div{color:#f0f0f0}.gui-dark .gui-structure-info-panel div button{background:#616161}.gui-dark .gui-structure-info-panel p,.gui-dark .gui-structure-info-modal p{color:#f0f0f0}.gui-dark gui-paging-alternative-navigator .gui-button{background:transparent;color:#f0f0f0;margin:0 4px;padding:0}.gui-dark gui-paging-alternative-navigator .gui-button:hover{background:transparent}.gui-dark gui-paging-alternative-navigator .gui-button:disabled{background:transparent;color:#f0f0f0;opacity:.4}.gui-dark gui-paging-alternative-navigator gui-paging-alternative-pages .gui-paging-active-page{box-shadow:0 1px #f0f0f0;color:#f0f0f0}.gui-dark .gui-search-bar form{background:#444}.gui-dark .gui-search-bar input{background:#444;border:0;color:#f0f0f0;cursor:pointer}.gui-dark .gui-search-bar:hover .gui-search-icon-svg line,.gui-dark .gui-search-bar:hover .gui-search-icon-svg circle{stroke:#878787}.gui-dark .gui-icon{cursor:pointer}.gui-dark .gui-icon svg{stroke:#aaa;transition:stroke .3s ease-in-out}.gui-dark .gui-icon svg:hover{stroke:#e6e6e6!important}.gui-dark .gui-empty-source div{background:#383838}.gui-dark .gui-dialog-wrapper .gui-dialog-content .gui-schema-manager-dialog .gui-dialog-title{color:#f0f0f0}.gui-dark .gui-title-panel,.gui-dark .gui-footer-panel{background:#383838}.gui-dark .gui-structure-ordered-list li:hover{background:#525252}
`,`.gui-light{border-color:#f0f0f0;font-family:Arial;font-size:14px}.gui-light *{border-color:#f0f0f0}.gui-light.gui-structure-border{border:0}.gui-light.gui-structure,.gui-light .gui-header{background:#fff;color:#333;font-family:Arial}.gui-light .gui-header-cell,.gui-light .gui-structure-header-columns{height:56px}.gui-light.gui-structure-border{border-color:#f0f0f0 transparent}.gui-light .gui-header-cell,.gui-light .gui-structure-container-element .gui-structure-cell>span{padding-left:16px;padding-right:16px}.gui-light .gui-structure-header .gui-header{color:#333;font-weight:700}.gui-light .gui-structure-header .gui-header .gui-header-cell:hover{background:#f3f9ff}.gui-light .gui-structure-header .gui-header .gui-header-cell:hover .gui-header-menu .gui-header-menu-icon-wrapper{background-color:#f3f9ff}.gui-light .gui-structure-container .gui-structure-container-element .gui-content .gui-row:hover{background:#f3f9ff}.gui-light .gui-structure-container .gui-structure-container-element .gui-content .gui-row.selected{background:rgba(124,185,246,.3215686275)}.gui-light.gui-rows-odd .gui-row.odd,.gui-light.gui-rows-even .gui-row.even{background:#f7f7f7}.gui-light gui-paging-alternative-navigator .gui-button{background:transparent;color:#333;margin:0 4px;padding:0}.gui-light gui-paging-alternative-navigator .gui-button:hover{background:transparent}.gui-light gui-paging-alternative-navigator .gui-button:disabled{background:transparent;color:#333;opacity:.4}.gui-light .gui-structure-top-panel,.gui-light .gui-structure-info-panel,.gui-light .gui-paging{height:56px;padding-left:16px;padding-right:16px}.gui-light .gui-structure-top-panel,.gui-light .gui-structure-info-panel,.gui-light .gui-paging,.gui-light .gui-structure-summaries-panel{background:#fff}.gui-light .gui-search-bar form input{border:0;outline:none}
`,`.gui-structure.gui-generic{border-color:#2224261a;font-family:Arial;font-size:14px}.gui-structure.gui-generic *{border-color:#2224261a}.gui-structure.gui-generic .gui-header-cell,.gui-structure.gui-generic .gui-structure-header-columns{height:46px}.gui-structure.gui-generic .gui-header .gui-header-cell.gui-header-sortable:hover{background:rgba(0,0,0,.04);transition:.15s all}.gui-structure.gui-generic .gui-header-cell,.gui-structure.gui-generic .gui-structure-container-element .gui-structure-cell>span{padding-left:12px;padding-right:12px}.gui-structure.gui-generic .gui-structure-container-element .gui-structure-cell:last-child>span{padding-right:20px}.gui-structure.gui-generic .gui-structure-header.gui-header-bottom .gui-header{border-color:inherit;border-style:solid;border-width:2px 0 0}.gui-structure.gui-generic .gui-structure-container .gui-structure-container-element .gui-content .gui-row:hover{background:rgba(0,0,0,.04)}.gui-structure.gui-generic .gui-structure-container .gui-structure-container-element .gui-content .gui-row.selected{background:#e6f7ff}.gui-structure.gui-generic .gui-structure-header .gui-header{background:#f9fafb;border-width:0 0 2px;color:#464646;font-weight:700}.gui-structure.gui-generic .gui-rows-odd .gui-row.odd,.gui-structure.gui-generic .gui-rows-even .gui-row.even{background:#f9fafb}.gui-structure.gui-generic .gui-cell .gui-button,.gui-structure.gui-generic .gui-cell .gui-badge{padding:0}.gui-structure.gui-generic .gui-paging-alternative-navigator .gui-button{background:transparent;color:#333;margin:0 4px;padding:0}.gui-structure.gui-generic .gui-paging-alternative-navigator .gui-button:hover{background:transparent}.gui-structure.gui-generic .gui-paging-alternative-navigator .gui-button:disabled{background:transparent;color:#ccc;opacity:.4}.gui-structure.gui-generic .gui-structure-summaries-panel{background:#f9fafb}.gui-structure.gui-generic .gui-structure-top-panel,.gui-structure.gui-generic .gui-structure-info-panel,.gui-structure.gui-generic .gui-paging{height:46px;padding-left:12px;padding-right:12px}.gui-structure.gui-generic .gui-structure-info-panel{background:#f9fafb;border-radius:0}.gui-structure.gui-generic .gui-structure-top-panel{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;padding-right:0}.gui-structure.gui-generic .gui-structure-top-panel .gui-search-bar form input{border:0;outline:0}.gui-structure.gui-generic .gui-rows-odd gui-row.odd,.gui-structure.gui-generic .gui-rows-even .gui-row.even{background:#f9fafb}.gui-structure.gui-generic .gui-row:hover{background:#f9fafb;transition:.15s all}
`],encapsulation:2,changeDetection:0})}return n})(),sM=(()=>{class n extends Yt{structureHeaderTopEnabledArchive;structureHeaderBottomEnabledArchive;columnHeaderTop;columnHeaderBottom;constructor(i,t){super(),this.structureHeaderTopEnabledArchive=i,this.structureHeaderBottomEnabledArchive=t}ngOnChanges(i){this.isDefined("columnHeaderTop",i)&&this.structureHeaderTopEnabledArchive.next(this.columnHeaderTop),this.isDefined("columnHeaderBottom",i)&&this.structureHeaderBottomEnabledArchive.next(this.columnHeaderBottom)}static \u0275fac=function(t){return new(t||n)(l(CI),l(bu))};static \u0275dir=G({type:n,selectors:[["gui-structure","columnHeaderTop","","columnHeaderBottom",""],["gui-structure","columnHeaderTop",""],["gui-structure","columnHeaderBottom",""]],inputs:{columnHeaderTop:"columnHeaderTop",columnHeaderBottom:"columnHeaderBottom"},features:[R,re]})}return n})(),AH=(()=>{class n extends Yt{structureId;compositionId;pagingCommandInvoker;pagingEventRepository;paging;pageChanged=new Q;pageSizeChanged=new Q;constructor(i,t,r,o){super(),this.structureId=i,this.compositionId=t,this.pagingCommandInvoker=r,this.pagingEventRepository=o}ngOnChanges(i){if(this.isDefined("paging",i)){let t;typeof this.paging=="boolean"?t={enabled:this.paging}:t=this.paging,this.pagingCommandInvoker.setPaging(t,this.compositionId)}}ngOnInit(){this.subscribeAndEmit(this.pagingEventRepository.onPageChange(this.structureId.toReadModelRootId()),this.pageChanged),this.subscribeAndEmit(this.pagingEventRepository.onPageSizeChange(this.structureId.toReadModelRootId()),this.pageSizeChanged)}onPageChange(i){this.pageChanged.emit(i)}static \u0275fac=function(t){return new(t||n)(l(Ie),l(Nt),l(Yi),l(kr))};static \u0275dir=G({type:n,inputs:{paging:"paging"},outputs:{pageChanged:"pageChanged",pageSizeChanged:"pageSizeChanged"},features:[R,re]})}return n})(),aM=(()=>{class n extends AH{pagingDisplayModeArchive;constructor(i,t,r,o,s){super(i,t,r,o),this.pagingDisplayModeArchive=s}ngOnChanges(i){if(this.isDefined("paging",i)){let t;typeof this.paging=="boolean"?t={enabled:this.paging}:(t=this.paging,this.paging.displayMode!==void 0&&this.pagingDisplayModeArchive.next(this.paging.displayMode)),this.pagingCommandInvoker.setPaging(t,this.structureId)}}static \u0275fac=function(t){return new(t||n)(l(Ie),l(Nt),l(Yi),l(kr),l(Cb))};static \u0275dir=G({type:n,selectors:[["gui-structure","paging",""]],features:[R,re]})}return n})(),FH=(()=>{class n extends Yt{structureId;searchEventRepository;searchCommandInvoker;searching;searchPhraseChanged=new Q;constructor(i,t,r){super(),this.structureId=i,this.searchEventRepository=t,this.searchCommandInvoker=r}ngOnChanges(i){if(this.isDefined("searching",i)){let t;typeof this.searching=="boolean"?t={enabled:this.searching}:t=this.searching,this.searchCommandInvoker.setSearchingConfig(t,this.structureId)}}ngOnInit(){this.subscribeAndEmit(this.searchEventRepository.onSearchPhrase(this.structureId.toReadModelRootId()),this.searchPhraseChanged)}static \u0275fac=function(t){return new(t||n)(l(Ie),l(Sr),l(un))};static \u0275dir=G({type:n,inputs:{searching:"searching"},outputs:{searchPhraseChanged:"searchPhraseChanged"},features:[R,re]})}return n})(),cM=(()=>{class n extends FH{constructor(i,t,r){super(i,t,r)}static \u0275fac=function(t){return new(t||n)(l(Ie),l(Sr),l(un))};static \u0275dir=G({type:n,selectors:[["gui-structure","searching",""]],features:[R]})}return n})(),PH=(()=>{class n extends Yt{structureId;formationEventRepository;formationPublisher;rowSelection;itemsSelected=new Q;selectedRows=new Q;constructor(i,t,r){super(),this.structureId=i,this.formationEventRepository=t,this.formationPublisher=r}ngOnChanges(i){this.isDefined("rowSelection",i)&&(this.rowSelection.isEnabledDefined()&&this.formationPublisher.setSelection(this.rowSelection.isEnabled(),this.structureId),this.rowSelection.isTypeDefined()&&this.formationPublisher.changeType(this.rowSelection.getType(),this.structureId),this.rowSelection.isModeDefined()&&this.formationPublisher.changeMode(this.rowSelection.getMode(),this.structureId),this.rowSelection.isMatcherDefined()&&this.formationPublisher.setMatcher(this.rowSelection.getMatcher(),this.structureId),this.rowSelection.isSelectedRowIndexesDefined()&&this.formationPublisher.selectByIndex(this.rowSelection.getSelectedRowIndexes(),this.structureId),this.rowSelection.isSelectedRowIdsDefined()&&this.formationPublisher.selectByIds(this.rowSelection.getSelectedRowIds(),this.structureId),this.rowSelection.isCustomSelectConfig()&&this.formationPublisher.setCustomSelection(this.rowSelection.getCustomSelectConfig(),this.structureId))}ngOnInit(){this.subscribeAndEmit(this.formationEventRepository.onItemSelected(this.structureId),this.selectedRows),this.subscribeAndEmit(this.selectItemsSelected(),this.itemsSelected)}selectItemsSelected(){return this.formationEventRepository.onItemSelected(this.structureId).pipe(te(i=>i.map(t=>t.getItem())))}static \u0275fac=function(t){return new(t||n)(l(Ie),l(Jo),l(di))};static \u0275dir=G({type:n,inputs:{rowSelection:"rowSelection"},outputs:{itemsSelected:"itemsSelected",selectedRows:"selectedRows"},features:[R,re]})}return n})(),lM=(()=>{class n extends PH{selectionGate;constructor(i,t,r){super(i,t,r)}static \u0275fac=function(t){return new(t||n)(l(Ie),l(Jo),l(di))};static \u0275dir=G({type:n,selectors:[["gui-structure","rowSelection",""],["gui-structure","selectionGate",""]],inputs:{selectionGate:"selectionGate"},features:[R]})}return n})(),dM=(()=>{class n extends Yt{translationService;localization;constructor(i){super(),this.translationService=i}ngOnChanges(i){this.isDefined("localization",i)&&(this.localization.translationResolver&&this.translationService.setResolver(this.localization.translationResolver),this.localization.translation&&this.translationService.changeTranslation(this.localization.translation))}static \u0275fac=function(t){return new(t||n)(l(rr))};static \u0275dir=G({type:n,selectors:[["gui-structure","localization",""]],inputs:{localization:"localization"},features:[R,re]})}return n})(),uM=(()=>{class n extends Yt{structureTitlePanelConfigArchive;structureFooterPanelConfigArchive;titlePanel;footerPanel;constructor(i,t){super(),this.structureTitlePanelConfigArchive=i,this.structureFooterPanelConfigArchive=t}ngOnChanges(i){this.isDefined("titlePanel",i)&&this.structureTitlePanelConfigArchive.next(this.titlePanel),this.isDefined("footerPanel",i)&&this.structureFooterPanelConfigArchive.next(this.footerPanel)}static \u0275fac=function(t){return new(t||n)(l(xu),l(Cu))};static \u0275dir=G({type:n,selectors:[["gui-structure","titlePanel","","footerPanel",""]],inputs:{titlePanel:"titlePanel",footerPanel:"footerPanel"},features:[R,re]})}return n})(),hM=(()=>{class n extends Yt{structureDetailViewConfigArchive;rowDetail;constructor(i){super(),this.structureDetailViewConfigArchive=i}ngOnChanges(i){this.isDefined("rowDetail",i)&&this.structureDetailViewConfigArchive.next(this.rowDetail)}static \u0275fac=function(t){return new(t||n)(l($p))};static \u0275dir=G({type:n,selectors:[["gui-structure","rowDetail",""]],inputs:{rowDetail:"rowDetail"},features:[R,re]})}return n})(),mM=(()=>{class n extends Yt{structureColumnMenuConfigArchive;columnMenu;constructor(i){super(),this.structureColumnMenuConfigArchive=i}ngOnChanges(i){this.isDefined("columnMenu",i)&&this.structureColumnMenuConfigArchive.nextConfig(this.columnMenu)}static \u0275fac=function(t){return new(t||n)(l(vu))};static \u0275dir=G({type:n,selectors:[["gui-structure","columnMenu",""]],inputs:{columnMenu:"columnMenu"},features:[R,re]})}return n})(),pM=(()=>{class n extends Yt{structureId;summariesCommandInvoker;summaries;constructor(i,t){super(),this.structureId=i,this.summariesCommandInvoker=t}ngOnChanges(i){ot(i.summaries,()=>{this.summariesCommandInvoker.setConfig(this.summaries,this.structureId)})}static \u0275fac=function(t){return new(t||n)(l(Ie),l(Wo))};static \u0275dir=G({type:n,selectors:[["gui-structure","summaries",""]],inputs:{summaries:"summaries"},features:[R,re]})}return n})(),gM=(()=>{class n extends Yt{structureInfoPanelConfigService;infoPanel;constructor(i){super(),this.structureInfoPanelConfigService=i}ngOnChanges(i){this.isDefined("infoPanel",i)&&(typeof this.infoPanel=="boolean"&&(this.infoPanel={enabled:this.infoPanel}),this.structureInfoPanelConfigService.set(this.infoPanel))}static \u0275fac=function(t){return new(t||n)(l(Hp))};static \u0275dir=G({type:n,selectors:[["gui-structure","infoPanel",""]],inputs:{infoPanel:"infoPanel"},features:[R,re]})}return n})(),fM=(()=>{class n extends Yt{schemaReadModelRootId;schemaPublisher;rowClass;constructor(i,t){super(),this.schemaReadModelRootId=i,this.schemaPublisher=t}ngOnChanges(i){this.isDefined("rowClass",i)&&this.schemaPublisher.setRowClass(this.rowClass,this.schemaReadModelRootId)}static \u0275fac=function(t){return new(t||n)(l(qt),l(Wi))};static \u0275dir=G({type:n,selectors:[["gui-structure","rowClass",""]],inputs:{rowClass:"rowClass"},features:[R,re]})}return n})(),bM=(()=>{class n extends Yt{schemaReadModelRootId;schemaPublisher;rowStyle;constructor(i,t){super(),this.schemaReadModelRootId=i,this.schemaPublisher=t}ngOnChanges(i){this.isDefined("rowStyle",i)&&this.schemaPublisher.setRowStyle(this.rowStyle,this.schemaReadModelRootId)}static \u0275fac=function(t){return new(t||n)(l(qt),l(Wi))};static \u0275dir=G({type:n,selectors:[["gui-structure","rowStyle",""]],inputs:{rowStyle:"rowStyle"},features:[R,re]})}return n})(),vM=(()=>{class n extends Yt{schemaId;schemaCommandInvoker;schemaEventRepository;rowColoring;rowColoringChanged=new Q;constructor(i,t,r){super(),this.schemaId=i,this.schemaCommandInvoker=t,this.schemaEventRepository=r}ngOnChanges(i){this.isDefined("rowColoring",i)&&this.schemaCommandInvoker.setRowColoring(this.rowColoring,this.schemaId)}ngOnInit(){this.subscribeAndEmit(this.schemaEventRepository.onRowColoring(this.schemaId),this.rowColoringChanged)}ngOnDestroy(){super.ngOnDestroy()}static \u0275fac=function(t){return new(t||n)(l(qt),l(Wi),l(Dr))};static \u0275dir=G({type:n,selectors:[["gui-structure","rowColoring",""]],inputs:{rowColoring:"rowColoring"},outputs:{rowColoringChanged:"rowColoringChanged"},features:[R,re]})}return n})(),_M=(()=>{class n extends Yt{schemaId;schemaCommandInvoker;schemaEventRepository;verticalGrid;horizontalGrid;horizontalGridChanged=new Q;verticalGridChanged=new Q;constructor(i,t,r){super(),this.schemaId=i,this.schemaCommandInvoker=t,this.schemaEventRepository=r,this.subscribeAndEmit(this.schemaEventRepository.onHorizontalGridChanged(this.schemaId),this.horizontalGridChanged),this.subscribeAndEmit(this.schemaEventRepository.onVerticalGridChanged(this.schemaId),this.verticalGridChanged)}ngOnChanges(i){this.isDefined("verticalGrid",i)&&this.schemaCommandInvoker.setVerticalGrid(this.verticalGrid,this.schemaId),this.isDefined("horizontalGrid",i)&&this.schemaCommandInvoker.setHorizontalGrid(this.horizontalGrid,this.schemaId)}static \u0275fac=function(t){return new(t||n)(l(qt),l(Wi),l(Dr))};static \u0275dir=G({type:n,selectors:[["gui-structure","verticalGrid","","horizontalGrid",""]],inputs:{verticalGrid:"verticalGrid",horizontalGrid:"horizontalGrid"},outputs:{horizontalGridChanged:"horizontalGridChanged",verticalGridChanged:"verticalGridChanged"},features:[R,re]})}return n})(),yM=(()=>{class n extends Yt{structureId;sortingCommandInvoker;sorting;constructor(i,t){super(),this.structureId=i,this.sortingCommandInvoker=t}ngOnChanges(i){ot(i.sorting,()=>{let t;typeof this.sorting=="boolean"?t={enabled:this.sorting}:t=this.sorting,this.sortingCommandInvoker.setSortingConfig(t,this.structureId)})}static \u0275fac=function(t){return new(t||n)(l(Ie),l(hn))};static \u0275dir=G({type:n,selectors:[["gui-structure","sorting",""]],inputs:{sorting:"sorting"},features:[R,re]})}return n})(),wM=(()=>{class n extends Yt{structureId;sourceCommandInvoker;loading;constructor(i,t){super(),this.structureId=i,this.sourceCommandInvoker=t}ngOnChanges(i){this.isDefined("loading",i)&&this.sourceCommandInvoker.setLoading(this.loading,this.structureId)}ngOnInit(){}static \u0275fac=function(t){return new(t||n)(l(Ie),l(dn))};static \u0275dir=G({type:n,selectors:[["gui-structure","loading",""]],inputs:{loading:"loading"},features:[R,re]})}return n})(),xM=(()=>{class n extends Yt{structureId;structureCommandInvoker;filtering;constructor(i,t){super(),this.structureId=i,this.structureCommandInvoker=t}ngOnChanges(i){ot(i.filtering,()=>{let t;typeof this.filtering=="boolean"?t={enabled:this.filtering}:t=this.filtering,this.structureCommandInvoker.setFilterConfig(t,this.structureId)})}static \u0275fac=function(t){return new(t||n)(l(Ie),l(qi))};static \u0275dir=G({type:n,selectors:[["gui-structure","filtering",""]],inputs:{filtering:"filtering"},features:[R,re]})}return n})(),CM=(()=>{class n extends Yt{structureId;structureCommandInvoker;quickFilters;constructor(i,t){super(),this.structureId=i,this.structureCommandInvoker=t}ngOnChanges(i){ot(i.quickFilters,()=>{let t;typeof this.quickFilters=="boolean"?t={enabled:this.quickFilters}:t=this.quickFilters,this.structureCommandInvoker.setQuickFiltersConfig(t,this.structureId)})}static \u0275fac=function(t){return new(t||n)(l(Ie),l(qi))};static \u0275dir=G({type:n,selectors:[["gui-structure","quickFilters",""]],inputs:{quickFilters:"quickFilters"},features:[R,re]})}return n})(),IM=(()=>{class n extends Yt{structureId;structureCommandInvoker;virtualScroll;constructor(i,t){super(),this.structureId=i,this.structureCommandInvoker=t}ngOnChanges(i){this.isDefined("virtualScroll",i)&&(this.virtualScroll?this.structureCommandInvoker.enableVirtualScroll(this.structureId):this.structureCommandInvoker.disableVirtualScroll(this.structureId))}static \u0275fac=function(t){return new(t||n)(l(Ie),l(qi))};static \u0275dir=G({type:n,selectors:[["gui-structure","virtualScroll",""]],inputs:{virtualScroll:"virtualScroll"},features:[R,re]})}return n})(),vi=(()=>{class n extends X5{platformId;elementRef;changeDetectorRef;gridRegister;structureIdGenerator;formationCommandDispatcher;formationWarehouse;compositionCommandInvoker;compositionWarehouse;filterIntegration;sourceCommandDispatcher;searchCommandInvoker;schemaCommandInvoker;structureCommandDispatcher;summariesCommandInvoker;sortingCommandInvoker;pagingCommandInvoker;static GUI_GRID_ID="gui-grid-id";structureRef;gridId;api;localGridId;gridThemeCommandInvoker;classModifier;attributeModifier;constructor(i,t,r,o,s,a,u,b,y,I,N,K,de,fe,W,ge,Ve){super(),this.platformId=i,this.elementRef=t,this.changeDetectorRef=r,this.gridRegister=o,this.structureIdGenerator=s,this.formationCommandDispatcher=a,this.formationWarehouse=u,this.compositionCommandInvoker=b,this.compositionWarehouse=y,this.filterIntegration=I,this.sourceCommandDispatcher=N,this.searchCommandInvoker=K,this.schemaCommandInvoker=de,this.structureCommandDispatcher=fe,this.summariesCommandInvoker=W,this.sortingCommandInvoker=ge,this.pagingCommandInvoker=Ve,this.gridThemeCommandInvoker=new Ay(this.schemaCommandInvoker,this.gridThemeConverter,this.gridRowColoringConverter),this.classModifier=new uh(this.elementRef.nativeElement),this.attributeModifier=new Z5(this.elementRef.nativeElement)}ngOnInit(){this.classModifier.getHost().add("gui-grid"),this.initApi();let i=this.gridId;i===void 0&&(i="gui-grid-"+this.structureIdGenerator.generateId()),this.localGridId=i,this.exposeGridId(),this.gridRegister.register(i,this,this.structureRef.getStructureId()),Fi(this.platformId)&&(window.getGuiGrid=t=>{if(this.gridRegister.getValues(t))return this.api})}ngOnDestroy(){this.gridRegister.unregister(this.localGridId)}getElementRef(){return this.elementRef}detectChanges(){this.changeDetectorRef.detectChanges()}exposeGridId(){this.attributeModifier.getHost().setAttribute(n.GUI_GRID_ID,this.localGridId)}initApi(){this.api=new Ry(this.structureRef.structureId,this.structureRef.compositionId,this.structureRef.schemaReadModelRootId,this.formationCommandDispatcher,this.formationWarehouse,this.compositionCommandInvoker,this.compositionWarehouse,this.filterIntegration,this.sourceCommandDispatcher,this.searchCommandInvoker,this.gridThemeCommandInvoker,this.structureCommandDispatcher,this.summariesCommandInvoker,this.sortingCommandInvoker,this.pagingCommandInvoker).provide()}static \u0275fac=function(t){return new(t||n)(l(bt),l(S),l(ee),l(FT),l(Ys),l(di),l($i),l(On),l(Gi),l(xb),l(dn),l(un),l(Wi),l(qi),l(Wo),l(hn),l(Yi))};static \u0275cmp=k({type:n,selectors:[["gui-grid"]],viewQuery:function(t,r){if(t&1&&$(W5,7),t&2){let o;V(o=B())&&(r.structureRef=o.first)}},inputs:{gridId:"gridId"},features:[_e([{provide:_a,useValue:ez},{provide:AT,useExisting:n}]),R],decls:2,vars:31,consts:[["structure",""],[3,"cellEditCanceled","cellEditEntered","cellEditSubmitted","columnsChanged","containerWidthChanged","horizontalGridChanged","itemsSelected","pageChanged","pageSizeChanged","rowColoringChanged","searchPhraseChanged","selectedRows","sourceEdited","themeChanged","verticalGridChanged","autoResizeWidth","cellEditing","columnHeaderBottom","columnHeaderTop","columnMenu","columns","editMode","filtering","footerPanel","horizontalGrid","infoPanel","loading","localization","maxHeight","paging","quickFilters","rowClass","rowColoring","rowDetail","rowHeight","rowSelection","rowStyle","searching","sorting","source","summaries","theme","titlePanel","verticalGrid","virtualScroll","width"]],template:function(t,r){if(t&1){let o=Y();f(0,"gui-structure",1,0),E("cellEditCanceled",function(){return A(o),F(r.onCellEditCancel())})("cellEditEntered",function(){return A(o),F(r.onCellEditEnter())})("cellEditSubmitted",function(){return A(o),F(r.onCellEditSubmit())})("columnsChanged",function(){return A(o),F(r.onColumnsChange())})("containerWidthChanged",function(a){return A(o),F(r.onContainerWidthChange(a))})("horizontalGridChanged",function(a){return A(o),F(r.onHorizontalGrid(a))})("itemsSelected",function(a){return A(o),F(r.onItemSelect(a))})("pageChanged",function(a){return A(o),F(r.onPageChange(a))})("pageSizeChanged",function(a){return A(o),F(r.onPageSizeChange(a))})("rowColoringChanged",function(a){return A(o),F(r.onRowColoring(a))})("searchPhraseChanged",function(a){return A(o),F(r.onSearchPhrase(a))})("selectedRows",function(a){return A(o),F(r.onRowsSelect(a))})("sourceEdited",function(a){return A(o),F(r.onSourceEdit(a))})("themeChanged",function(a){return A(o),F(r.onTheme(a))})("verticalGridChanged",function(a){return A(o),F(r.onVerticalGrid(a))}),v()}t&2&&g("autoResizeWidth",r.autoResizeWidth)("cellEditing",r.cellEditingConfig)("columnHeaderBottom",r.columnHeaderBottom)("columnHeaderTop",r.columnHeaderTop)("columnMenu",r.columnMenuConfig)("columns",r.columnsConfig)("editMode",r.editMode)("filtering",r.filtering)("footerPanel",r.footerPanel)("horizontalGrid",r.horizontalGrid)("infoPanel",r.infoPanel)("loading",r.loading)("localization",r.localization)("maxHeight",r.maxHeight)("paging",r.paging)("quickFilters",r.quickFilters)("rowClass",r.rowClass)("rowColoring",r.rowColoringConfig)("rowDetail",r.rowDetail)("rowHeight",r.rowHeight)("rowSelection",r.rowSelectionConfig)("rowStyle",r.rowStyle)("searching",r.searching)("sorting",r.sorting)("source",r.source)("summaries",r.summaries)("theme",r.themeConfig)("titlePanel",r.titlePanel)("verticalGrid",r.verticalGrid)("virtualScroll",r.virtualScroll)("width",r.width)},dependencies:[oM,sM,aM,cM,lM,dM,uM,hM,mM,pM,gM,fM,bM,vM,_M,yM,wM,xM,CM,IM],styles:[`.gui-grid{display:block;width:100%}
`],encapsulation:2})}return n})(),xa=[Sc,Mn,Dc,eo,jo,Tc,Mc,Pc,Oc,Ac,Fc,Nc,jc,Lo,Hs,Lc,to,Rc,zs,Lo],OH=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({})}return n})();var RI=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({providers:[QT],imports:[J,xa,Vn,uo]})}return n})(),EM=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({providers:[KT],imports:[J,xa,uo,Vn]})}return n})();var ca=class{constructor(){}};var Tw=class extends Ee{fieldId;externalFilterId;filterValue;constructor(e,i,t,r){super(e,"ToggleFilterCommand"),this.fieldId=i,this.externalFilterId=t,this.filterValue=r}getFieldId(){return this.fieldId}getExternalFilterId(){return this.externalFilterId}getFilterValue(){return this.filterValue}},ju=class extends Re{constructor(e){super(e,null,"FilterToggledEvent")}},Mw=class{domainEventPublisher=L.resolve(ze);forCommand(){return Tw}handle(e,i){let t=i.getFieldId(),r=i.getExternalFilterId(),o=i.getFilterValue();e.toggleFilter(t,r,o)}publish(e,i){this.domainEventPublisher.publish(new ju(i.getAggregateId()))}},Tg=class extends Ee{fieldId;filterTypeId;value;constructor(e,i,t,r){super(e,"AddFilterCommand"),this.fieldId=i,this.filterTypeId=t,this.value=r}getFieldId(){return this.fieldId}getFilterTypeId(){return this.filterTypeId}getValue(){return this.value}},Rw=class{forCommand(){return Tg}handle(e,i){let t=i.getFieldId(),r=i.getFilterTypeId(),o=i.getValue();e.addFilter(t,r,o)}},Mg=class extends Ee{constructor(e){super(e,"RemoveAllFiltersCommand")}},Aw=class{forCommand(){return Mg}handle(e,i){e.removeAllFilters()}},Rg=class extends Ee{filterId;constructor(e,i){super(e,"RemoveFilterCommand"),this.filterId=i}getFilterId(){return this.filterId}},Fw=class{forCommand(){return Rg}handle(e,i){let t=i.getFilterId();e.removeFilter(t)}},Ag=class extends Ee{filterConfig;constructor(e,i){super(e,"SetConfigFilterCommand"),this.filterConfig=i}getConfig(){return this.filterConfig}},Fg=class extends Re{enabled;constructor(e,i){super(e,i,"ConfigFilterSetEvent"),this.enabled=i}getEnabled(){return this.enabled}},Pw=class{domainEventPublisher=L.resolve(ze);forCommand(){return Ag}handle(e,i){let t=i.getConfig();e.setFilterConfig(t)}publish(e,i){let t=i.getConfig();this.domainEventPublisher.publish(new Fg(i.getAggregateId(),t.enabled))}},Pg=class extends Ee{quickFiltersConfig;constructor(e,i){super(e,"SetConfigQuickFilterCommand"),this.quickFiltersConfig=i}getConfig(){return this.quickFiltersConfig}},Og=class extends Re{enabled;constructor(e,i){super(e,i,"ConfigQuickFilterSetEvent"),this.enabled=i}getEnabled(){return this.enabled}},Ow=class{domainEventPublisher=L.resolve(ze);forCommand(){return Pg}handle(e,i){let t=i.getConfig();e.setQuickFiltersConfig(t)}publish(e,i){let t=i.getAggregateId(),r=i.getConfig();this.domainEventPublisher.publish(new Og(t,r.enabled))}},Nw=class extends Os{filterId;fieldId;filterTypeId;filterValue;constructor(e,i,t,r){super(e),this.filterId=e,this.fieldId=i,this.filterTypeId=t,this.filterValue=r}getFilterId(){return this.filterId}getFilterTypeId(){return this.filterTypeId}getFieldId(){return this.fieldId}getFilterValue(){return this.filterValue}},jw=class{filteringEnabled=!1;searchEnabled=!1;quickFiltersEnabled=!1;constructor(e=!1,i=!1,t=!1){this.filteringEnabled=e,this.searchEnabled=i,this.quickFiltersEnabled=t}isFilteringEnabled(){return this.filteringEnabled}isQuickFilteringEnabled(){return this.quickFiltersEnabled}isSearchingEnabled(){return this.searchEnabled}setFilterConfig(e){e&&e.enabled!==void 0&&e.enabled!==null&&(this.filteringEnabled=e.enabled)}setSearchingConfig(e){e&&e.enabled!==void 0&&e.enabled!==null&&(this.searchEnabled=e.enabled)}setQuickFiltersConfig(e){e&&e.enabled!==void 0&&e.enabled!==null&&(this.quickFiltersEnabled=e.enabled)}},Lw=class extends Xr{constructor(e){super(e)}toString(){return this.getId().toString()}filterMany(e,i,t){return e.length===0?e:e.filter(r=>this.filterEntity(r,i,t))}filterOne(e,i,t){return this.filterEntity(e,i,t)}},Vw=class extends Lw{constructor(e){super(e)}getName(){return"Contains"}filterEntity(e,i,t){return!!i.getValue(e).includes(t)}},Bw=class extends Xr{id;constructor(e){super(e),this.id=e}toString(){return this.id}},NH=(()=>{class n{static index=0;generate(){return n.index+=1,new Bw(`${n.index}`)}}return n})(),zw=class{filterTypeId;name;constructor(e,i){this.filterTypeId=e,this.name=i}getId(){return this.filterTypeId}getName(){return this.name}},Hw=class{fieldIds=[];map=new WeakMap;filterTypeMap=new WeakMap;dataTypeToFilterType=new Map;filterTypeIdGenerator=new NH;constructor(e){this.assignFilterTypes(),this.addFields(e)}getFilterType(e){return this.filterTypeMap.get(e)}getFieldIdsToFilterTypes(){let e=new Map;for(let i of this.fieldIds){let t=this.map.get(i),r=t.map(o=>new zw(o.getId(),o.getName()));e.set(i.toString(),r)}return e}addFields(e){for(let i of e)this.addField(i)}addField(e){let i=e.getId(),t=e.getDataType(),r=this.dataTypeToFilterType.get(t);this.fieldIds.push(i),this.map.set(i,Array.from(r))}assignFilterTypes(){this.assignFilterTypesForDataTypeUnknown(),this.assignFilterTypesForDataTypeNumber(),this.assignFilterTypesForDataTypeString(),this.assignFilterTypesForDataTypeBoolean(),this.assignFilterTypesForDataTypeDate(),this.assignFilterTypesForDataTypeCustom()}assignFilterTypesForDataTypeUnknown(){this.dataTypeToFilterType.set(pe.UNKNOWN,[])}assignFilterTypesForDataTypeNumber(){this.dataTypeToFilterType.set(pe.NUMBER,[])}assignFilterTypesForDataTypeString(){let e=[new Vw(this.generateId())];this.dataTypeToFilterType.set(pe.STRING,e),this.addFilterTypes(e)}assignFilterTypesForDataTypeBoolean(){this.dataTypeToFilterType.set(pe.BOOLEAN,[])}assignFilterTypesForDataTypeDate(){this.dataTypeToFilterType.set(pe.DATE,[])}assignFilterTypesForDataTypeCustom(){this.dataTypeToFilterType.set(pe.CUSTOM,[])}generateId(){return this.filterTypeIdGenerator.generate()}addFilterTypes(e){for(let i of e)this.filterTypeMap.set(i.getId(),i)}},Uw=class extends Xr{constructor(e){super(e)}toString(){return this.getId()}},jH=(()=>{class n{static index=0;static generateId(){return new Uw(`${n.index}`)}}return n})(),$w=class{filterId;fieldName;filterTypeName;value;constructor(e,i,t,r){this.filterId=e,this.fieldName=i,this.filterTypeName=t,this.value=r}getText(){return`${this.fieldName}: ${this.filterTypeName}: ${this.value}`}getFilterId(){return this.filterId}getFieldName(){return this.fieldName}getFilterTypeName(){return this.filterTypeName}getValue(){return this.value}},Gw=class{filterSettings=new jw;filters=new Map;activeFilters=[];filterTypeManager;constructor(){}getSettings(){return this.filterSettings}getAll(){return Array.from(this.filters).map(e=>e[1])}getAllActiveFilters(e){return this.activeFilters.map(i=>new $w(i.getFilterId(),e.get(i.getFieldId().toString()).getName(),this.filterTypeManager.getFilterType(i.getFilterTypeId()).getName(),i.getFilterValue()))}getFilterTypes(){return this.filterTypeManager.getFieldIdsToFilterTypes()}assignFilterTypes(e){this.filterTypeManager=new Hw(e)}add(e,i,t){let r=new Nw(jH.generateId(),e,i,t);this.activeFilters.push(r)}filter(e,i){let t=Array.from(e);for(let r of this.activeFilters){let o=r.getFilterTypeId(),s=this.getFilterType(o),a=r.getFilterValue();t=s.filterMany(t,i.get(r.getFieldId().toString()),a)}return t}removeAll(){this.activeFilters.length=0}remove(e){this.activeFilters=this.activeFilters.filter(i=>i.getFilterId()!==e)}getFilterType(e){return this.filterTypeManager.getFilterType(e)}},Ng=class{create(e=!1){return new Gw}},AI=(()=>{class n extends tt{static default=!1;constructor(){super(n.default)}}return n})(),LH=(()=>{class n{quickFilterEnabledArchive;constructor(i){this.quickFilterEnabledArchive=i}static services=[AI];forEvent(){return Og}handle(i){i.ofMessageType("ConfigQuickFilterSetEvent")&&this.quickFilterEnabledArchive.next(i.getAggregateId(),i.getEnabled())}}return n})(),FI=(()=>{class n extends tt{static default=!1;constructor(){super(n.default)}}return n})(),VH=(()=>{class n{filterEnabledArchive;constructor(i){this.filterEnabledArchive=i}static services=[FI];forEvent(){return Fg}handle(i){i.ofMessageType("ConfigFilterSetEvent")&&this.filterEnabledArchive.next(i.getAggregateId(),i.getEnabled())}}return n})(),jg=class{map;constructor(e){this.map=e}getFilterTypes(e){let i=this.map.get(e.toString());return i===void 0?[]:i}},Lu=class n extends tt{static default=new jg(new Map);constructor(){super(n.default)}},Lg=class extends Re{map;constructor(e,i){super(e,i,"FilterTypesInitedEvent"),this.map=i}getMap(){return this.map}},PI=(()=>{class n extends tt{static default=[];constructor(){super(n.default)}}return n})(),OI=Q_();OI.provide(PI);OI.provide(Lu);var Vg=OI,Ww=class{filterTypeArchive=Vg.resolve(Lu);forEvent(){return Lg}handle(e){if(e.ofMessageType("FilterTypesInitedEvent")){let i=e.getMap();this.filterTypeArchive.next(e.getAggregateId(),new jg(i))}}},Zo=class extends Re{filters;constructor(e,i){super(e,i,"ActiveFiltersSetEvent"),this.filters=i}getFilters(){return this.filters}},qw=class{activeFilterRepository=Vg.resolve(PI);forEvent(){return Zo}handle(e){if(e.ofMessageType("ActiveFiltersSetEvent")){let i=e.getFilters();this.activeFilterRepository.next(e.getAggregateId(),i)}}},Bg=class extends Re{map;constructor(e,i){super(e,i,"UniqueFilterCalculatedEvent"),this.map=i}getUniqueValues(){return this.map}},zg=class{map=new Map;allSelected=new Map;allDisabled=new Map;constructor(e){this.map=e,this.calculateSelection()}getValues(e){return this.map.get(e.toString())}areAllSelected(e){return this.allSelected.get(e.toString())}areAllDisabled(e){return this.allDisabled.get(e.toString())}isSelectAllChecked(e){return this.areAllSelected(e)}isIndeterminate(e){return!(this.areAllSelected(e)||this.areAllDisabled(e))}calculateSelection(){for(let e of Array.from(this.map.keys())){let i=this.map.get(e);this.allSelected.set(e,!i.some(t=>!t.isEnabled())),this.allDisabled.set(e,!i.some(t=>t.isEnabled()))}}},Vu=class n extends tt{static default=new zg(new Map);constructor(){super(n.default)}},Yw=class{id;value;displayValue;enabled;constructor(e,i,t){this.id=e,this.value=i,this.enabled=t}getId(){return this.id}getValue(){return this.value}geDisplayValue(){return this.displayValue}isEnabled(){return this.enabled}},BH=(()=>{class n{uniqueValuesRepository;constructor(i){this.uniqueValuesRepository=i}static services=[Vu];forEvent(){return Bg}handle(i){if(i.ofMessageType("UniqueFilterCalculatedEvent")){let t=new Map;i.getUniqueValues().forEach((o,s)=>{let a=o.map(u=>new Yw(u.getId(),u.getDisplayValue(),u.isEnabled()));t.set(s,a)});let r=new zg(t);this.uniqueValuesRepository.next(i.getAggregateId(),r)}}}return n})(),Qw=class{forEvent(){return $c}handle(e){}},Hg=class extends Ee{fieldId;constructor(e,i){super(e,"UnselectAllUniqueFilterCommand"),this.fieldId=i}getFieldId(){return this.fieldId}},Kw=class{forCommand(){return Hg}handle(e,i){let t=i.getFieldId();e.unselectAllUniqueFilter(t)}},Ug=class extends Ee{fieldId;uniqueValueId;constructor(e,i,t){super(e,"UnselectUniqueFilterCommand"),this.fieldId=i,this.uniqueValueId=t}getFieldId(){return this.fieldId}getUniqueValueId(){return this.uniqueValueId}},Xw=class{forCommand(){return Ug}handle(e,i){let t=i.getFieldId(),r=i.getUniqueValueId();e.unselectUniqueFilter(t,r)}},$g=class extends Ee{fieldId;constructor(e,i){super(e,"SelectAllUniqueFilterCommand"),this.fieldId=i}getFieldId(){return this.fieldId}},Zw=class{forCommand(){return $g}handle(e,i){let t=i.getFieldId();e.selectAllUniqueFilter(t)}},Gg=class extends Ee{fieldId;uniqueValueId;constructor(e,i,t){super(e,"SelectUniqueFilterCommand"),this.fieldId=i,this.uniqueValueId=t}getFieldId(){return this.fieldId}getUniqueValueId(){return this.uniqueValueId}},Jw=class{forCommand(){return Gg}handle(e,i){let t=i.getFieldId(),r=i.getUniqueValueId();e.selectUniqueFilter(t,r)}},ex=class{defineAggregate(){return null}registerKey(){return Nn}registerProviders(e){e.provide(Ng)}registerCommandHandlers(){return[Pw,Ow,Mw,Rw,Aw,Fw,Jw,Zw,Xw,Kw]}registerDomainEventHandler(){return[LH,VH,Ww,qw,BH,Qw]}registerMultiDomainEventHandler(){return[]}},zH=(()=>{class n extends Er{filterEnabledArchive;structureQuickFilterRepository;uniqueValuesArchive;activeFilterArchive=Vg.resolve(PI);filterTypeArchive=Vg.resolve(Lu);constructor(i,t,r){super(),this.filterEnabledArchive=i,this.structureQuickFilterRepository=t,this.uniqueValuesArchive=r}static services=[FI,AI,Vu];onFilteringEnabled(i){return this.filterEnabledArchive.on(i)}onQuickFiltersEnabled(i){return this.structureQuickFilterRepository.on(i)}onFilterTypes(i){return this.filterTypeArchive.on(i)}findFilterTypes(i){return this.filterTypeArchive.find(i)}onFilterTypesForFieldId(i,t){return this.onFilterTypes(t).pipe(te(r=>r.getFilterTypes(i)))}onActiveFilters(i){return this.activeFilterArchive.on(i)}findFilters(i){return this.activeFilterArchive.find(i)}onUniqueValues(i){return this.uniqueValuesArchive.on(i)}onceFilterTypeId(i,t,r){return Vs(this.onFilterTypes(r).pipe(te(o=>{let a=o.getFilterTypes(i).find(u=>u.getName()===t);return a===void 0?At.empty():At.of(a.getId())})))}}return n})(),HH=(()=>{class n extends nr{commandDispatcher;constructor(i){super(),this.commandDispatcher=i}static services=[ti];setConfig(i,t){this.commandDispatcher.dispatch(new Ag(t,i))}add(i,t,r,o){this.commandDispatcher.dispatch(new Tg(o,i,t,r))}removeAll(i){this.commandDispatcher.dispatch(new Mg(i))}remove(i,t){this.commandDispatcher.dispatch(new Rg(t,i))}selectAllUniqueFilter(i,t){this.commandDispatcher.dispatch(new $g(t,i))}unselectAllUniqueFilter(i,t){this.commandDispatcher.dispatch(new Hg(t,i))}selectUniqueFilter(i,t,r){this.commandDispatcher.dispatch(new Gg(r,i,t))}unselectUniqueFilter(i,t,r){this.commandDispatcher.dispatch(new Ug(r,i,t))}}return n})(),tx=class{registerProviders(e){e.provide(nr,HH),e.provide(Er,zH),e.provide(Vu),e.provide(FI),e.provide(AI),e.provide(xb)}};function UH(){new fi(new tx,new ex).init()}UH();function $H(){return L.resolve(nr)}function GH(){return L.resolve(Er)}function WH(){return L.resolve(xb)}var NI=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({providers:[{provide:nr,useFactory:$H},{provide:Er,useFactory:GH},{provide:xb,useFactory:WH}]})}return n})(),kM=(()=>{class n extends $t{static forComponent(){return[]}static \u0275fac=(()=>{let i;return function(r){return(i||(i=Te(n)))(r||n)}})();static \u0275mod=H({type:n});static \u0275inj=z({imports:[J,xa,Vn,NI]})}return n})(),jI=(()=>{class n extends $t{static forComponent(){return[]}static \u0275fac=(()=>{let i;return function(r){return(i||(i=Te(n)))(r||n)}})();static \u0275mod=H({type:n});static \u0275inj=z({imports:[J,Bo,Sn,Vn,NI,kM]})}return n})(),qH=(()=>{class n extends $t{static forComponent(){return[]}static \u0275fac=(()=>{let i;return function(r){return(i||(i=Te(n)))(r||n)}})();static \u0275mod=H({type:n});static \u0275inj=z({providers:[XT],imports:[J,jI,kM,Mn]})}return n})(),YH=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({providers:[fu],imports:[J,OH,Bo,RI,EM,qH,uo,Vn]})}return n})();var ix=class extends Xo{warn(e){console.warn(e)}error(e){console.error(e)}};function QH(){L.provide(Xo,ix)}QH();function KH(){return L.resolve(Xo)}var XH=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({providers:[{provide:Xo,useFactory:KH}]})}return n})(),Bu=class{id;source;position;version=0;constructor(e,i,t,r=0){this.source=e,this.position=i,this.version=r,t?this.id=t:this.id=Oo.generate()}getSourceItem(){return this.source}getUiId(){return"gui"+this.id.replace(/-/g,"")}getId(){return this.id}getVersion(){return this.version}getPosition(){return this.position}isSelected(){return!1}isEven(){return this.position%2===0}isOdd(){return this.position%2===1}equals(e){return this.id===e.id&&this.getVersion()===e.getVersion()}equalsById(e){return this.id===e}},Wg=class n extends Os{sourceItem;version;position;constructor(e,i,t,r=0){super(e),this.sourceItem=i,this.position=t,this.version=r}getSourceItem(){return this.sourceItem}getVersion(){return this.version}getPosition(){return this.position}bumpVersion(){this.version+=1}setPosition(e){this.position=e}clone(){let e=q({},this.sourceItem);return new n(this.getId(),e,this.version)}},nx=class{create(e){return Array.isArray(e)?this.createItems(e):this.createItem(e)}createItems(e){return e.map(i=>this.createItem(i))}createItem(e){return e instanceof Wg?new Bu(e.sourceItem,e.getPosition(),e.getId().toString(),e.getVersion()):new Bu(e,0)}},qg=class extends Ee{searchConfig;constructor(e,i){super(e,"SetConfigSearchingCommand"),this.searchConfig=i}getConfig(){return this.searchConfig}},Yg=class extends Re{enabled;constructor(e,i){super(e,i,"ConfigSearchingSetEvent"),this.enabled=i}isEnabled(){return this.enabled}},rx=class{domainEventPublisher=L.resolve(ze);forCommand(){return qg}handle(e,i){let t=i.getConfig();e.setSearchingConfig(t)}publish(e,i){let t=i.getConfig();this.domainEventPublisher.publish(new Yg(i.getAggregateId(),t.enabled))}},zu=class extends Ee{phrase;initial;constructor(e,i,t){super(e,"SetSearchPhraseCommand"),this.phrase=i,this.initial=t}getPhrase(){return this.phrase}isInitial(){return this.initial}},la=class extends Re{phrase;initial;constructor(e,i,t){super(e,{phrase:i,initial:t},"SearchPhraseSetDomainEvent"),this.phrase=i,this.initial=t}getPhrase(){return this.phrase}isInitial(){return this.initial}},da=class extends Re{origin;constructor(e,i){super(e,i,"OriginSetEvent"),this.origin=i}getOrigin(){return this.origin}},Hu=class extends Re{values;constructor(e,i){super(e,i,"StructureSummariesChangedEvent"),this.values=i}getSummaries(){return this.values}},Uu=class extends Re{preparedItems;constructor(e,i){super(e,i,"StructurePreparedEntitiesSetEvent"),this.preparedItems=i}getPreparedItems(){return this.preparedItems}},ua=class{domainEventPublisher=L.resolve(ze);publish(e){e.forEach(i=>{this.publishEvent(i)})}publishEvent(e){if(e.getType()==="StructureOriginChangedAggregateEvent"){let i=e,t=new da(i.getAggregateId(),i.getOrigin());this.domainEventPublisher.publish(t)}if(e.getType()==="StructureSourceItemEditedAggregateEvent"){let i=e,t=new pu(i.getAggregateId(),i.getBeforeItem(),i.getAfterItem());this.domainEventPublisher.publish(t)}if(e.getType()==="StructureSummariesChangedAggregateEvent"){let i=e,t=new Hu(i.getAggregateId(),i.getSummaries());this.domainEventPublisher.publish(t)}if(e.getType()==="StructurePreparedEntitiesSetAggregateEvent"){let i=e,t=new Uu(i.getAggregateId(),i.getPreparedItems());this.domainEventPublisher.publish(t)}if(e.getType()==="UniqueFilterCalculatedAggregateEvent"){let t=e.toDomainEvent();this.domainEventPublisher.publish(t)}}},ZH=(()=>{class n{structureSourceDomainEventPublisher;domainEventPublisher=L.resolve(ze);constructor(i){this.structureSourceDomainEventPublisher=i}static services=[ua];forCommand(){return zu}handle(i,t){let r=t.getPhrase();i.addSearchPhrase(r)}publish(i,t){let r=t.getPhrase(),o=t.isInitial();this.domainEventPublisher.publish(new la(t.getAggregateId(),r,o)),this.structureSourceDomainEventPublisher.publish(i.getEvents())}}return n})(),ox=class{searchFields=[];searchPhrase;enabledDataTypes=[pe.STRING];addSearchPhrase(e,i){if(!i){this.searchFields=[];return}let t=e.filter(r=>this.enabledDataTypes.some(o=>o===r.getDataType()));t.length!==0&&(this.searchFields=t,this.searchPhrase=i)}removeSearchFilters(){this.searchFields=[]}search(e){if(e.length===0||this.searchFields.length===0)return e;let i=new Set;for(let t=0;t<e.length;t+=1)this.searchFields.filter(r=>r.search(e[t],this.searchPhrase)).forEach(()=>{i.add(e[t])});return Array.from(i)}},Qg=class{create(){return new ox}},LI=(()=>{class n extends tt{static HIGHLIGHTING=!0;constructor(){super(n.HIGHLIGHTING)}}return n})(),VI=(()=>{class n extends tt{static PLACEHOLDER="Search...";constructor(){super(n.PLACEHOLDER)}}return n})(),SM=(()=>{class n{commandDispatcher;searchHighlightArchive;searchPlaceholderArchive;constructor(i,t,r){this.commandDispatcher=i,this.searchHighlightArchive=t,this.searchPlaceholderArchive=r}static services=[ti,LI,VI];setSearchingConfig(i,t){i.highlighting!==void 0&&i.highlighting!==null&&this.searchHighlightArchive.next(t,i.highlighting),i.placeholder!==void 0&&i.placeholder!==null&&this.searchPlaceholderArchive.next(t,i.placeholder),i.phrase!==void 0&&i.phrase!==null&&this.searchOnInit(i.phrase,t),this.commandDispatcher.dispatch(new qg(t,i))}search(i,t){this.commandDispatcher.dispatch(new zu(t,i,!1))}searchOnInit(i,t){this.commandDispatcher.dispatch(new zu(t,i,!0))}}return n})(),BI=(()=>{class n extends tt{static SEARCH_PHRASE="";constructor(){super(n.SEARCH_PHRASE)}}return n})(),JH=(()=>{class n{searchPhraseRepository;constructor(i){this.searchPhraseRepository=i}static services=[BI];forEvent(){return la}handle(i){i.ofMessageType("SearchPhraseSetDomainEvent")&&this.searchPhraseRepository.next(i.getAggregateId(),i.getPhrase())}}return n})(),zI=(()=>{class n extends tt{static ENABLED=!1;constructor(){super(n.ENABLED)}}return n})(),e6=(()=>{class n{searchingEnabledArchive;constructor(i){this.searchingEnabledArchive=i}static services=[zI];forEvent(){return Yg}handle(i){i.ofMessageType("ConfigSearchingSetEvent")&&this.searchingEnabledArchive.next(i.getAggregateId(),i.isEnabled())}}return n})(),sx=class extends Ee{constructor(e){super(e,"RemoveSearchPhraseCommand")}},ax=class{domainEventPublisher=L.resolve(ze);forCommand(){return sx}handle(e,i){e.removeSearchPhrase()}publish(e,i){this.domainEventPublisher.publish(new ju(i.getAggregateId()))}},cx=class{defineAggregate(){return null}registerKey(){return Nn}registerProviders(e){e.provide(Qg),e.provide(SM)}registerCommandHandlers(){return[rx,ZH,ax]}registerDomainEventHandler(){return[JH,e6]}registerMultiDomainEventHandler(){return[]}},t6=(()=>{class n extends Tr{searchingEnabledArchive;searchPhraseArchive;searchHighlightArchive;searchPlaceholderArchive;constructor(i,t,r,o){super(),this.searchingEnabledArchive=i,this.searchPhraseArchive=t,this.searchHighlightArchive=r,this.searchPlaceholderArchive=o}static services=[zI,BI,LI,VI];onSearchEnabled(i){return this.searchingEnabledArchive.on(i)}onPhrase(i){return this.searchPhraseArchive.on(i)}onHighlight(i){return this.searchHighlightArchive.on(i)}onPlaceholder(i){return this.searchPlaceholderArchive.on(i)}}return n})(),lx=class extends Sr{constructor(){super()}onSearchPhrase(e){return this.onEvent(e,la).pipe(He(i=>i.isInitial()===!1),te(i=>i.getPhrase()),He(i=>i!==null))}},i6=(()=>{class n extends un{searchDispatcher;constructor(i){super(),this.searchDispatcher=i}static services=[SM];setSearchingConfig(i,t){this.searchDispatcher.setSearchingConfig(i,t)}search(i,t){this.searchDispatcher.search(i,t)}}return n})(),dx=class{registerProviders(e){e.provide(un,i6),e.provide(Tr,t6),e.provide(Sr,lx),e.provide(BI),e.provide(LI),e.provide(VI),e.provide(zI)}};function n6(){new fi(new dx,new cx).init()}n6();function r6(){return L.resolve(un)}function o6(){return L.resolve(Tr)}function s6(){return L.resolve(Sr)}var DM=(()=>{class n extends $t{static forComponent(){return[]}static \u0275fac=(()=>{let i;return function(r){return(i||(i=Te(n)))(r||n)}})();static \u0275mod=H({type:n});static \u0275inj=z({providers:[{provide:un,useFactory:r6},{provide:Tr,useFactory:o6},{provide:Sr,useFactory:s6}],imports:[J,Bo,Sn,Vn]})}return n})(),a6=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[J,Sn,jI,DM]})}return n})(),c6=(()=>{class n extends $t{static forComponent(){return[]}static \u0275fac=(()=>{let i;return function(r){return(i||(i=Te(n)))(r||n)}})();static \u0275mod=H({type:n});static \u0275inj=z({imports:[J,xa,Vn,NI]})}return n})();var TM=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({})}return n})();var MM=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({})}return n})();var l6=[TM,MM],d6=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[J,xa,Vn,RI,c6,uo,l6]})}return n})();var u6=(()=>{class n extends $t{static forComponent(){return[]}static \u0275fac=(()=>{let i;return function(r){return(i||(i=Te(n)))(r||n)}})();static \u0275mod=H({type:n});static \u0275inj=z({imports:[J,uo]})}return n})(),Kg=class extends Ee{compositionId;fieldId;constructor(e,i,t){super(e,"ToggleSortCommand"),this.compositionId=i,this.fieldId=t}getCompositionId(){return this.compositionId}getFieldId(){return this.fieldId}},ux=class{domainEventPublisher=L.resolve(ze);forCommand(){return Kg}handle(e,i){let t=i.getAggregateId(),r=i.getCompositionId(),o=i.getFieldId(),s=e.toggleSort(o);this.publishSortEvent(t,r,o,s)}publish(e,i){}publishSortEvent(e,i,t,r){let o=r.map(s=>({direction:s.hasDirection(),fieldId:s.getField().getId()}));this.domainEventPublisher.publish(new Du(e,i,o))}},Xg=class extends Ee{sortingConfig;constructor(e,i){super(e,"SetSortingCommand"),this.sortingConfig=i}getSortingConfig(){return this.sortingConfig}},hx=class extends Re{constructor(e){super(e,null,"SortingSetEvent")}},mx=class{domainEventPublisher=L.resolve(ze);forCommand(){return Xg}handle(e,i){let t=i.getSortingConfig();e.setSortingConfig(t)}publish(e,i){this.domainEventPublisher.publish(new hx(i.getAggregateId()))}},Zg=class extends Ee{compositionId;fieldId;sortOrder;constructor(e,i,t,r){super(e,"SetSortOrderCommand"),this.compositionId=i,this.fieldId=t,this.sortOrder=r}getCompositionId(){return this.compositionId}getFieldId(){return this.fieldId}getSortOrder(){return this.sortOrder}},px=class{domainEventPublisher=L.resolve(ze);forCommand(){return Zg}handle(e,i){let t=i.getAggregateId(),r=i.getCompositionId(),o=i.getFieldId(),s=i.getSortOrder(),a=e.setSortOrder(o,s);this.publishSortEvent(t,r,o,a)}publish(e,i){}publishSortEvent(e,i,t,r){let o=r.map(s=>({direction:s.hasDirection(),fieldId:s.getField().getId()}));this.domainEventPublisher.publish(new Mu(e,i,o))}},Jg=class{commandDispatcher=L.resolve(ti);setSortingConfig(e,i){this.commandDispatcher.dispatch(new Xg(i,e))}toggleSort(e,i,t){this.commandDispatcher.dispatch(new Kg(t,i,e))}setSortOrder(e,i,t,r){this.commandDispatcher.dispatch(new Zg(r,t,e,i))}},gx=class{defineAggregate(){return null}registerKey(){return Nn}registerProviders(e){e.provide(Jg)}registerCommandHandlers(){return[ux,mx,px]}registerDomainEventHandler(){return[]}registerMultiDomainEventHandler(){return[]}},h6=(()=>{class n extends hn{sortingDispatcher;constructor(i){super(),this.sortingDispatcher=i}static services=[Jg];setSortingConfig(i,t){this.sortingDispatcher.setSortingConfig(i,t)}toggleSort(i,t,r){this.sortingDispatcher.toggleSort(i,t,r)}setSortOrder(i,t,r,o){this.sortingDispatcher.setSortOrder(i,t,r,o)}}return n})(),fx=class{registerProviders(e){e.provide(hn,h6)}};function m6(){new fi(new fx,new gx).init()}m6();function p6(){return L.resolve(hn)}var g6=(()=>{class n extends $t{static forComponent(){return[]}static \u0275fac=(()=>{let i;return function(r){return(i||(i=Te(n)))(r||n)}})();static \u0275mod=H({type:n});static \u0275inj=z({providers:[{provide:hn,useFactory:p6}],imports:[J]})}return n})(),HI=(()=>{class n extends tt{static default=[];constructor(){super(n.default)}}return n})(),bx=class{id;dataType;name;constructor(e,i,t){this.id=e,this.dataType=i,this.name=t}getFieldId(){return this.id}getId(){return this.id.getId()}getDataType(){return this.dataType}getName(){return this.name}},ef=class{convert(e){return e.map(i=>this.convertOne(i))}convertOne(e){return new bx(e.getId(),e.getDataType(),e.getName())}},vx=class{fieldFactory;fields=new Map;constructor(e){this.fieldFactory=e}getField(e){return e===null?this.getAllFields()[0]:this.fields.get(e.getId())}getAllFieldIds(){return Array.from(this.fields.keys())}getAllFields(){return Array.from(this.fields.values())}getFieldsAsMap(){return this.fields}initFields(e){let i=this.fieldFactory.create(e);this.clear(),this.addFields(i)}addFields(e){for(let i of e)this.addField(i)}addField(e){this.fields.set(e.getId().toString(),e)}clear(){this.fields.clear()}},_x=class n extends Os{id;field;name;constructor(e,i,t){super(e),this.id=e,this.field=i,this.name=t}static of(e,i,t){return new n(e,i,t)}getId(){return this.id}getKey(){return this.getId().toString()}getDataType(){return this.field.getDataType()}getName(){return this.name}getField(){return this.field}getAccessor(){return this.field.getAccessor()}getAccessorMethod(){return this.field.getAccessorMethod()}getSearchAccessorMethod(){return this.field.getSearchAccessorMethod()}getValue(e){return this.field.getValue(e)}getDisplayValue(e){return this.field.getDisplayValue(e)}isSummaries(e){return this.field.isSummaries(e)}isSummariesEnabled(){return this.field.isSummariesEnabled()}search(e,i){return this.field.search(e,i)}filter(e,i){let t=this.field.getValue(e);return this.field.getDataType()===pe.NUMBER?this.field.filter(t,i):this.field.getDataType()===pe.BOOLEAN?this.field.filter(t,i):this.field.getDataType()===pe.STRING?this.field.filter(t,i):this.field.getDataType()===pe.DATE?this.field.filter(t,i):!0}sort(e,i,t){let r=t?this.field.getSortValue(e):this.field.getSortValue(i),o=t?this.field.getSortValue(i):this.field.getSortValue(e);return this.field.getDataType()===pe.NUMBER?this.field.sort(r,o):this.field.getDataType()===pe.BOOLEAN?this.field.sort(r,o):this.field.getDataType()===pe.STRING?this.field.sort(r,o):this.field.getDataType()===pe.DATE?this.field.sort(r,o):0}},yx=class{accessor;dataType;accessorMethod;matchers;constructor(e,i,t){this.accessor=e,this.dataType=i,this.matchers=t,typeof e=="string"?this.accessorMethod=r=>r.getSourceItem()[e]:typeof e=="function"?this.accessorMethod=r=>e(r.getSourceItem()):this.accessorMethod=r=>r}getDataType(){return this.dataType}getAccessor(){return this.accessor}getAccessorMethod(){return this.accessorMethod}getMatchers(){return this.matchers}getSearchAccessorMethod(){let e;return this.matchers.getSearchMatcher().ifPresent(i=>{e=i}),e?i=>{let t=this.accessorMethod(i);return e(t)}:i=>this.accessorMethod(i)}getValue(e){return this.accessorMethod(e)}getSortValue(e){let i=this.accessorMethod(e);return this.matchers.getSortMatcher().ifPresent(t=>{i=t(i)}),i}getSearchValue(e){let i=this.accessorMethod(e);return this.matchers.getSearchMatcher().ifPresent(t=>{i=t(i)}),i}},ha=class extends yx{summariesEnabled=!0;summariesTypes;possibleSummaries;constructor(e,i,t,r){super(e,i,t),this.possibleSummaries=this.assignPossibleSummaries(),this.assignSummaries(r)}isSummaries(e){return this.isSummariesEnabled()?!!(this.summariesTypes&e):!1}isSummariesEnabled(){return this.summariesEnabled}setSummariesEnabled(e){this.summariesEnabled=e}assignSummaries(e){e&&Object.keys(e).length!==0?(e.enabled&&(this.summariesEnabled=!!e.enabled),e.summariesTypes?(this.summariesTypes=ve.DISTINCT,e.summariesTypes.forEach(i=>{this.summariesTypes|=i})):this.summariesTypes=this.assignDefaultSummaries()):this.summariesTypes=this.assignDefaultSummaries()}},tf=class extends ha{constructor(e,i,t){super(e,pe.UNKNOWN,i,t)}assignDefaultSummaries(){return ve.DISTINCT}assignPossibleSummaries(){return ve.COUNT|ve.DISTINCT}search(e,i){return!1}sort(e,i){return 0}filter(e,i){return!1}equals(e,i){return!1}getDisplayValue(e){return e}},wx=class extends ha{constructor(e,i,t){super(e,pe.NUMBER,i,t)}getField(){return this}assignDefaultSummaries(){return ve.DISTINCT}assignPossibleSummaries(){return ve.COUNT|ve.DISTINCT|ve.SUM|ve.MIN|ve.MAX|ve.AVERAGE|ve.MEDIAN}search(e,i){return!1}sort(e,i){let t=+e,r=+i;return t-r}filter(e,i){return e>i}equals(e,i){return this.getValue(e)===i}getDisplayValue(e){return`${e}`}},xx=class extends ha{constructor(e,i,t){super(e,pe.STRING,i,t)}assignDefaultSummaries(){return ve.DISTINCT}assignPossibleSummaries(){return ve.COUNT|ve.DISTINCT}search(e,i){let t=this.getSearchValue(e);return typeof t=="string"?t.toLowerCase().indexOf(i.toLowerCase())>-1:!1}sort(e,i){let t=""+e,r=""+i;return t.localeCompare(r)}filter(e,i){return e.toLowerCase().indexOf(i.toLowerCase())>-1}equals(e,i){return this.getValue(e)===i}getDisplayValue(e){return e}},Cx=class extends ha{constructor(e,i,t){super(e,pe.BOOLEAN,i,t)}assignDefaultSummaries(){return ve.DISTINCT}assignPossibleSummaries(){return ve.COUNT|ve.DISTINCT|ve.TRUTHY|ve.FALSY}search(e,i){return!1}sort(e,i){let t=!!e,r=!!i;return t===r?0:r?-1:1}filter(e,i){return e===i}equals(e,i){return this.getValue(e)===i}getDisplayValue(e){return e?"True":"False"}},Ix=class extends ha{constructor(e,i,t){super(e,pe.DATE,i,t)}assignDefaultSummaries(){return ve.DISTINCT}assignPossibleSummaries(){return ve.COUNT|ve.DISTINCT}search(e,i){return!1}sort(e,i){return e-i}filter(e,i){return!1}equals(e,i){return this.getValue(e).getTime()===i.getTime()}getDisplayValue(e){return e.toDateString()}},Ex=class{matcher;sortMatcher;searchMatcher;constructor(e,i,t){this.matcher=e,this.sortMatcher=i,this.searchMatcher=t}getMatcher(){return At.of(this.matcher)}getSortMatcher(){let e;return this.sortMatcher&&(e=this.sortMatcher),this.matcher&&(e=this.matcher),At.of(e)}getSearchMatcher(){let e;return this.searchMatcher&&(e=this.searchMatcher),this.matcher&&(e=this.matcher),At.of(e)}},nf=class{create(e){let i=this.createMatchers(e),t=e.type;return t===void 0&&(t=pe.STRING),t===pe.UNKNOWN?new tf(e.field,i,e.summaries):t===pe.NUMBER?new wx(e.field,i,e.summaries):t===pe.STRING?new xx(e.field,i):t===pe.BOOLEAN?new Cx(e.field,i):t===pe.DATE?new Ix(e.field,i):new tf(e.field,i,e.summaries)}createMatchers(e){let i=e.matcher,t;return e.sorting&&(t=e.sorting.matcher),new Ex(i,t)}},rf=class{generateId(){let e=Oo.generate();return new Qs(e)}},RM=(()=>{class n{fieldIdGenerator;dataFieldFactory;constructor(i,t){this.fieldIdGenerator=i,this.dataFieldFactory=t}static services=[rf,nf];create(i){return i?i.map((t,r)=>{let o=this.fieldIdGenerator.generateId(),s=this.dataFieldFactory.create(t);return new _x(o,s,this.getFieldName(t,r))}):[]}getFieldName(i,t){return typeof i.field=="string"?i.field.toLowerCase():"Field #"+t}}return n})(),AM=(()=>{class n{fieldFactory;constructor(i){this.fieldFactory=i}static services=[RM];create(){return new vx(this.fieldFactory)}}return n})(),kx=class{forCommand(){return hu}handle(e,i){let t=i.getFieldConfigs();e.createFields(t)}},f6=(()=>{class n{fieldArchive;fieldConverter;constructor(i,t){this.fieldArchive=i,this.fieldConverter=t}static services=[HI,ef];forEvent(){return $c}handle(i){if(i.ofMessageType("FieldsInitedEvent")){let t=this.fieldConverter.convert(i.getFields());this.fieldArchive.next(i.getAggregateId(),t)}}}return n})(),Sx=class{defineAggregate(){return null}registerKey(){return Nn}registerProviders(e){e.provide(AM),e.provide(RM),e.provide(rf),e.provide(nf)}registerCommandHandlers(){return[kx]}registerDomainEventHandler(){return[f6]}registerMultiDomainEventHandler(){return[]}},b6=(()=>{class n extends ca{fieldReadModelArchive;constructor(i){super(),this.fieldReadModelArchive=i}static services=[HI];onFields(i){return this.fieldReadModelArchive.on(i)}findFields(i){return this.fieldReadModelArchive.find(i)}}return n})(),v6=(()=>{class n extends na{commandDispatcher;constructor(i){super(),this.commandDispatcher=i}static services=[ti];initFields(i,t){this.commandDispatcher.dispatch(new hu(t,i))}}return n})(),Dx=class{registerProviders(e){e.provide(na,v6),e.provide(HI),e.provide(ef),e.provide(ca,b6)}};function _6(){new fi(new Dx,new Sx).init()}_6();function y6(){return L.resolve(na)}function w6(){return L.resolve(ca)}var x6=(()=>{class n extends $t{static forComponent(){return[]}static \u0275fac=(()=>{let i;return function(r){return(i||(i=Te(n)))(r||n)}})();static \u0275mod=H({type:n});static \u0275inj=z({providers:[{provide:na,useFactory:y6},{provide:ca,useFactory:w6}],imports:[J]})}return n})(),of=class extends Ee{enabled;constructor(e,i){super(e,"StructureSetSummariesEnabledCommand"),this.enabled=i}isEnabled(){return this.enabled}},C6="StructureSummariesEnabledSetEvent",sf=class extends Re{enabled;constructor(e,i){super(e,i,C6),this.enabled=i}isEnabled(){return this.enabled}},I6=(()=>{class n{structureSourceDomainEventPublisher;domainEventPublisher=L.resolve(ze);constructor(i){this.structureSourceDomainEventPublisher=i}static services=[ua];forCommand(){return of}handle(i,t){let r=t.isEnabled();i.setSummariesEnabled(r)}publish(i,t){let r=t.isEnabled(),o=i.getEvents();this.domainEventPublisher.publish(new sf(t.getAggregateId(),r)),this.structureSourceDomainEventPublisher.publish(o)}}return n})(),Tx=class extends pt{summarizedValues;constructor(e,i){super(e,"StructureSummariesChangedAggregateEvent"),this.summarizedValues=i}toDomainEvent(){return new Hu(this.getAggregateId(),this.summarizedValues)}getSummaries(){return this.summarizedValues}},Mx=(()=>{class n{calculators;static DEFAULT_ENABLED=!1;structureId;enabled;values=new Map;constructor(i,t){this.calculators=t,this.structureId=i,this.enabled=n.DEFAULT_ENABLED}calculate(i,t){if(!this.enabled)return[];let r=new Map;return this.calculators.forEach(o=>{let s=o.calculate(i,t);s&&Array.from(s.keys()).forEach(a=>{r.set(a,s.get(a))})}),r.size>0?[new Tx(this.structureId,r)]:[]}setEnabled(i){this.enabled=i}add(){}remove(){}update(){}}return n})(),tl=class extends tt{constructor(){super(Mx.DEFAULT_ENABLED)}init(e){this.next(e,Mx.DEFAULT_ENABLED)}},E6=(()=>{class n{summariesEnabledArchive;constructor(i){this.summariesEnabledArchive=i}static services=[tl];forEvent(){return sf}handle(i){i.ofMessageType("StructureSummariesEnabledSetEvent")&&this.summariesEnabledArchive.next(i.getAggregateId(),i.isEnabled())}}return n})(),ma=class{calculate(e,i){let t=e.filter(a=>this.forDataType(a.getDataType()));if(!t||t.length===0||i.length===0)return null;let r=new Map,o=new Map;t.forEach(a=>{let u=a.getKey();r.set(u,0),o.set(u,new Set),this.prepare(a)}),i.forEach(a=>{t.forEach(u=>{let b=u.getKey(),y=u.getValue(a);if(y!==null||y!==void 0||y!==""){if(u.isSummaries(ve.COUNT)){let I=r.get(b);r.set(b,I+1)}u.isSummaries(ve.DISTINCT)&&o.get(b).add(y)}this.aggregate(u,y)})}),t.forEach(a=>{this.postCalculate(a,i)});let s=new Map;return t.forEach(a=>{let u=a.getKey(),b=this.generateAggregatedValues(a);a.isSummaries(ve.COUNT)&&b.setCount(r.get(u)),a.isSummaries(ve.DISTINCT)&&b.setDistinct(o.get(u).size),s.set(u,b)}),s}},pa=class{count;distinct;setCount(e){this.count=e}setDistinct(e){this.distinct=e}},Rx=class extends pa{truthy;falsy;constructor(e,i){super(),this.truthy=e,this.falsy=i}},af=class extends ma{truthy=new Map;falsy=new Map;constructor(){super()}forDataType(e){return e===pe.BOOLEAN}prepare(e){let i=e.getKey();e.isSummaries(ve.TRUTHY)&&this.truthy.set(i,0),e.isSummaries(ve.FALSY)&&this.falsy.set(i,0)}postCalculate(e,i){}aggregate(e,i){let t=i,r=e.getKey(),o=this.truthy.get(r),s=this.falsy.get(r);t?e.isSummaries(ve.TRUTHY)&&this.truthy.set(r,o+1):e.isSummaries(ve.FALSY)&&this.falsy.set(r,s+1)}generateAggregatedValues(e){let i=e.getKey();return new Rx(this.truthy.get(i),this.falsy.get(i))}},Ax=class extends pa{constructor(){super()}},cf=class extends ma{constructor(){super()}forDataType(e){return e===pe.DATE}prepare(e){}postCalculate(e,i){}aggregate(e,i){}generateAggregatedValues(e){return new Ax}},Fx=class extends pa{sum;min;max;average;median;constructor(e,i,t,r,o){super(),this.sum=this.setValueWithPrecision(e),this.min=this.setValueWithPrecision(i),this.max=this.setValueWithPrecision(t),this.average=this.setValueWithPrecision(r),this.median=this.setValueWithPrecision(o)}setValueWithPrecision(e){return!e&&e!==0?null:e===0?0:+e.toFixed(2)}},lf=class extends ma{sum=new Map;min=new Map;max=new Map;average=new Map;median=new Map;constructor(){super()}forDataType(e){return e===pe.NUMBER}prepare(e){let i=e.getKey();this.sum.set(i,0),this.min.set(i,Number.MAX_SAFE_INTEGER),this.max.set(i,0)}postCalculate(e,i){let t=e.getKey();e.isSummaries(ve.AVERAGE)&&this.average.set(t,this.sum.get(t)/i.length),e.isSummaries(ve.MEDIAN)&&this.median.set(t,e.getValue(i[Math.floor(i.length/2)]))}aggregate(e,i){let t=+i,r=e.getKey(),o=this.sum.get(r),s=this.min.get(r),a=this.max.get(r);(e.isSummaries(ve.SUM)||e.isSummaries(ve.AVERAGE))&&this.sum.set(r,o+t),e.isSummaries(ve.MIN)&&s>t&&this.min.set(r,t),e.isSummaries(ve.MAX)&&a<t&&this.max.set(r,t)}generateAggregatedValues(e){let i=e.getKey(),t=e.isSummaries(ve.SUM)?this.sum.get(i):void 0,r=e.isSummaries(ve.MIN)?this.min.get(i):void 0,o=e.isSummaries(ve.MAX)?this.max.get(i):void 0,s=e.isSummaries(ve.AVERAGE)?this.average.get(i):void 0,a=e.isSummaries(ve.MEDIAN)?this.median.get(i):void 0;return new Fx(t,r,o,s,a)}},Px=class extends pa{constructor(){super()}},df=class extends ma{constructor(){super()}forDataType(e){return e===pe.STRING}prepare(e){}postCalculate(e,i){}aggregate(e,i){}generateAggregatedValues(e){return new Px}},Ox=class extends pa{constructor(){super()}},uf=class extends ma{constructor(){super()}forDataType(e){return e===pe.UNKNOWN}prepare(e){}postCalculate(e,i){}aggregate(e,i){}generateAggregatedValues(e){return new Ox}},Gs="GUI - Summaries Calculators",FM=(()=>{class n{calculators;constructor(i){this.calculators=i}static services=[{inject:Gs,collection:!0}];create(i){return new Mx(i,this.calculators)}}return n})(),hf=class{commandDispatcher=L.resolve(ti);setSummariesEnabled(e,i){this.commandDispatcher.dispatch(new of(i,e))}},PM=(()=>{class n{static defaultTop=!1;static defaultBottom=!0;top=n.defaultTop;bottom=n.defaultBottom;setTop(i){this.top=i}setBottom(i){this.bottom=i}isTopEnabled(){return this.top}isBottomEnabled(){return this.bottom}}return n})(),$u=class n extends tt{static default=new PM;constructor(){super(n.default)}},mf=class{convert(e){let i=new PM;return e.top!==void 0&&e.top!==null&&i.setTop(e.top),e.bottom!==void 0&&e.bottom!==null&&i.setBottom(e.bottom),i}},Nx=class{defineAggregate(){return null}registerKey(){return Nn}registerProviders(e){e.provide(FM),e.provide(hf),e.provide($u),e.provide(mf),e.provideCollection(Gs,af),e.provideCollection(Gs,cf),e.provideCollection(Gs,lf),e.provideCollection(Gs,df),e.provideCollection(Gs,uf)}registerCommandHandlers(){return[I6]}registerDomainEventHandler(){return[E6]}registerMultiDomainEventHandler(){return[]}},k6=(()=>{class n extends ra{summariesEnabledArchive;structureSummariesArchive;constructor(i,t){super(),this.summariesEnabledArchive=i,this.structureSummariesArchive=t}static services=[tl,$u];onEnabled(i){return this.summariesEnabledArchive.on(i)}onTopEnabled(i){return this.onEnabled(i).pipe(cn(t=>this.structureSummariesArchive.on(i).pipe(te(r=>t&&r.isTopEnabled()))))}onBottomEnabled(i){return this.onEnabled(i).pipe(cn(t=>this.structureSummariesArchive.on(i).pipe(te(r=>t&&r.isBottomEnabled()))))}}return n})(),S6=(()=>{class n extends Wo{summariesDispatcher;configConverter;structureSummariesConfigArchive;constructor(i,t,r){super(),this.summariesDispatcher=i,this.configConverter=t,this.structureSummariesConfigArchive=r}static services=[hf,mf,$u];setSummariesEnabled(i,t){this.summariesDispatcher.setSummariesEnabled(i,t)}setConfig(i,t){let r=this.configConverter.convert(i);this.setSummariesEnabled(i.enabled,t),this.structureSummariesConfigArchive.next(t,r)}}return n})(),jx=class extends aa{constructor(){super()}onSummariesChanged(e){return this.onEvent(e,Hu)}},Lx=class{registerProviders(e){e.provide(Wo,S6),e.provide(aa,jx),e.provide(ra,k6),e.provide(tl)}};function D6(){new fi(new Lx,new Nx).init()}function ru(n){return{provide:Gs,useClass:n,multi:!0}}D6();function T6(){return L.resolve(Wo)}function M6(){return L.resolve(ra)}function R6(){return L.resolve(aa)}var A6=(()=>{class n extends $t{static forComponent(){return[]}static \u0275fac=(()=>{let i;return function(r){return(i||(i=Te(n)))(r||n)}})();static \u0275mod=H({type:n});static \u0275inj=z({providers:[{provide:Wo,useFactory:T6},{provide:ra,useFactory:M6},{provide:aa,useFactory:R6},ru(af),ru(cf),ru(lf),ru(df),ru(uf)],imports:[J,Bo,uo,Vn]})}return n})(),pf=class{start;end;margin;constructor(e,i,t){this.start=e,this.end=i,this.margin=t}getStart(){return this.start}getEnd(){return this.end}getMargin(){return this.margin}},F6=(()=>{let n=class{containerHeight=At.empty();sourceHeight;isContainerHeightProperForVirtualScroll(){return this.containerHeight.isPresent()?this.containerHeight.getValueOrNullOrThrowError()>0:!1}getVisibleContainerHeight(){return this.getHeight()}getHeight(){return this.containerHeight.isPresent()?this.getContainerHeight():this.sourceHeight}getSourceHeight(){return this.sourceHeight}setContainerHeight(i){i>=0&&(this.containerHeight=At.of(i))}setSourceSize(i){this.sourceHeight=i}getContainerHeight(){return this.containerHeight.getValueOrNullOrThrowError()>this.sourceHeight?this.sourceHeight:this.containerHeight.getValueOrNullOrThrowError()}};return n=Oa([X_],n),n})(),gf=class extends Re{position;constructor(e,i){super(e,i,"ScrollBarPositionSetEvent"),this.position=i}getPosition(){return this.position}},Vx=class extends pt{position;constructor(e,i){super(e,"ScrollBarPositionSetAggregateEvent"),this.position=i}toDomainEvent(){return new gf(this.getAggregateId(),this.position)}},ou,$o,Bx=($o=class{structureId;enabled;rowHeight=ou.ROW_HEIGHT;hiddenItemsTop=ou.HIDDEN_ITEMS_TOP;hiddenItemsBottom=ou.HIDDEN_ITEMS_BOTTOM;container=new F6;scrollPosition;range;sourceSize;logger;constructor(e,i=!1,t=0,r=0,o=0,s,a,u){this.structureId=e,this.enabled=i,this.sourceSize=r,this.container.setSourceSize(this.sourceSize*this.rowHeight),this.container.setContainerHeight(t),this.scrollPosition=o,Number.isInteger(s)&&(this.rowHeight=s),Number.isInteger(a)&&(this.hiddenItemsTop=a),Number.isInteger(u)&&(this.hiddenItemsBottom=u),this.calculateRange()}isEnabled(){return this.enabled&&this.container.getHeight()>0&&this.sourceSize>0}getViewPortHeight(){return this.container.getVisibleContainerHeight()}getSourceHeight(){return this.container.getSourceHeight()}getRowHeight(){return this.rowHeight}getRange(){return this.range}getTopMargin(){return this.range.getStart()*this.rowHeight}calculateRange(){if(this.calcFullHeight()<=this.container.getHeight()){this.range=new pf(0,this.sourceSize,0);return}let e=Math.ceil(this.container.getHeight()/this.rowHeight),i=Math.floor(this.scrollPosition/this.rowHeight),t=i+e+this.hiddenItemsBottom,r=i;r+e>=this.sourceSize&&(r=this.sourceSize-e);let o=Math.max(i-this.hiddenItemsTop,0);return t>this.sourceSize&&(t=this.sourceSize,o=t-e),this.range=new pf(o,t,r),{start:o,end:t,topMargin:r}}setEnabled(e){this.enabled=e,this.enabled&&!this.container.isContainerHeightProperForVirtualScroll()&&this.logger.warn("Height needs to be specified in order for virtual scroll to work."),this.calculateRange()}setSourceSize(e=0){this.sourceSize=e,this.container.setSourceSize(this.sourceSize*this.rowHeight),this.calculateRange()}setTopHiddenItemsCount(e){this.hiddenItemsTop=e,this.calculateRange()}setBottomHiddenItemsCount(e){this.hiddenItemsBottom=e,this.calculateRange()}setScrollPosition(e){this.scrollPosition=e,this.calculateRange()}scrollToIndex(e){e>=this.sourceSize&&(e=this.sourceSize),e<-1&&(e=0);let i=e*this.rowHeight;return new Vx(this.structureId,i)}setViewportHeight(e){this.container.setContainerHeight(e),this.calculateRange()}setRowHeight(e){this.rowHeight=e,this.container.setSourceSize(this.sourceSize*this.rowHeight),this.calculateRange()}setLogger(e){this.logger=e}calcFullHeight(){return this.sourceSize*this.rowHeight}},ou=$o,Nh($o,"ROW_HEIGHT",42),Nh($o,"HIDDEN_ITEMS_TOP",5),Nh($o,"HIDDEN_ITEMS_BOTTOM",2),$o);Bx=ou=Oa([X_],Bx);var OM=(()=>{class n{logger;constructor(i){this.logger=i}static services=[Xo];create(i,t=!1,r=-1,o=0,s=0,a,u,b){let y=new Bx(i,t,r,o,s,a,u,b);return y.setLogger(this.logger),y}}return n})(),ff=class extends Ee{position;constructor(e,i){super(e,"SetScrollPositionCommand"),this.position=i}getPosition(){return this.position}},Gu=class extends Re{constructor(e){super(e,null,"ScrollPositionSetEvent")}},zx=class{domainEventPublisher=L.resolve(ze);forCommand(){return ff}handle(e,i){let t=i.getPosition();e.setScrollPosition(t)}publish(e,i){this.domainEventPublisher.publish(new Gu(i.getAggregateId()))}},bf=class extends Ee{enabled;constructor(e,i){super(e,"SetVerticalScrollEnabledCommand"),this.enabled=i}isEnabled(){return this.enabled}},Wu=class extends Re{constructor(e){super(e,null,"VerticalScrollEnabledSetEvent")}},Hx=class{domainEventPublisher=L.resolve(ze);forCommand(){return bf}handle(e,i){let t=i.isEnabled();e.setVerticalFormationEnabled(t)}publish(e,i){this.domainEventPublisher.publish(new Wu(i.getAggregateId()))}},vf=class extends Ee{theme;constructor(e,i){super(e,"SetRowHeightBasedOnThemeCommand"),this.theme=i}getTheme(){return this.theme}},qu=class extends Re{constructor(e){super(e,null,"RowHeightSetBasedOnThemeEvent")}},Ux=class{domainEventPublisher=L.resolve(ze);forCommand(){return vf}handle(e,i){let t=i.getTheme();e.setTheme(t)}publish(e,i){this.domainEventPublisher.publish(new qu(i.getAggregateId()))}},_f=class extends Ee{rowHeight;constructor(e,i){super(e,"SetRowHeightCommand"),this.rowHeight=i}getRowHeight(){return this.rowHeight}},Yu=class extends Re{constructor(e){super(e,null,"RowHeightSetEvent")}},$x=class{domainEventPublisher=L.resolve(ze);forCommand(){return _f}handle(e,i){let t=i.getRowHeight();e.getVerticalFormation().setRowHeight(t)}publish(e,i){this.domainEventPublisher.publish(new Yu(i.getAggregateId()))}},yf=class extends Ee{height;constructor(e,i){super(e,"StructureSetHeightCommand"),this.height=i}getHeight(){return this.height}},Qu=class extends Re{constructor(e){super(e,null,"StructureHeightSetEvent")}},Gx=class{domainEventPublisher=L.resolve(ze);forCommand(){return yf}handle(e,i){let t=i.getHeight();e.setHeight(t)}publish(e,i){this.domainEventPublisher.publish(new Qu(i.getAggregateId()))}},UI=(()=>{class n extends tt{static DEFAULT_POSITION=0;constructor(){super(n.DEFAULT_POSITION)}}return n})(),P6=(()=>{class n{positionRepository;constructor(i){this.positionRepository=i}static services=[UI];forEvent(){return gf}handle(i){i.ofMessageType("ScrollBarPositionSetEvent")&&this.positionRepository.next(i.getAggregateId(),i.getPosition())}}return n})(),wf=class extends Ee{position;constructor(e,i){super(e,"SetScrollBarPositionCommand"),this.position=i}getPosition(){return this.position}},Wx=class{forCommand(){return wf}handle(e,i){let t=i.getPosition();e.scrollToIndex(t)}},xf=class{commandDispatcher=L.resolve(ti);setVirtualScrollEnabled(e,i){this.commandDispatcher.dispatch(new bf(i,e))}scrollTo(e,i){this.commandDispatcher.dispatch(new wf(i,e))}setScrollPosition(e,i){this.commandDispatcher.dispatch(new ff(i,e))}},qx=class{defineAggregate(){return null}registerKey(){return Nn}registerProviders(e){e.provide(OM),e.provide(xf)}registerCommandHandlers(){return[zx,Hx,Ux,$x,Gx,Wx]}registerDomainEventHandler(){return[P6]}registerMultiDomainEventHandler(){return[]}},O6=(()=>{let n=class{enabled;topMargin;sourceHeight;viewportHeight;rowHeight;constructor(i,t,r,o,s){this.enabled=i,this.topMargin=t,this.sourceHeight=r,this.viewportHeight=o,this.rowHeight=s}isEnabled(){return this.enabled}getTopMargin(){return this.topMargin}getSourceHeight(){return this.sourceHeight}getViewPortHeight(){return this.viewportHeight}getRowHeight(){return this.rowHeight}};return n=Oa([Ip],n),n})(),Cf=class{convert(e){let i=e.isEnabled(),t=e.getTopMargin(),r=e.getSourceHeight(),o=e.getViewPortHeight(),s=e.getRowHeight();return new O6(i,t,r,o,s)}},il=class extends Re{constructor(e){super(e,null,"StructureCreatedEvent")}},Ku=class extends js{},N6=(()=>{let n=class{loading;constructor(i){this.loading=i}isLoading(){return this.loading}};return n=Oa([Ip],n),n})(),If=class{convert(e){return new N6(e.isLoading())}},Yx=class extends qd{paging;entities;source;verticalFormation;constructor(e,i,t,r,o){super(e),this.paging=i,this.entities=t,this.source=r,this.verticalFormation=o}getPaging(){return this.paging}getEntities(){return this.entities}getSource(){return this.source}getVerticalFormation(){return this.verticalFormation}getTopMargin(){return this.verticalFormation.getTopMargin()}isLoaderVisible(){return this.getSource().isLoading()}getSourceHeight(){return this.verticalFormation.getSourceHeight()}isReadyToDisplay(){return this.entities.length>0}isVerticalScrollEnabled(){return this.verticalFormation.isEnabled()}},NM=(()=>{class n{pagingConverter;sourceConverter;verticalFormationConverter;constructor(i,t,r){this.pagingConverter=i,this.sourceConverter=t,this.verticalFormationConverter=r}static services=[Xp,If,Cf];convert(i){let t=i.getPaging(),r=i.getEntities(),o=i.getSource(),s=i.getVerticalFormation();return new Yx(i.getId().toReadModelRootId(),this.pagingConverter.convert(t),this.convertSource(r),this.sourceConverter.convert(o),this.verticalFormationConverter.convert(s))}convertSource(i){return i.map(t=>new Bu(t.sourceItem,t.getPosition(),t.getId().toString(),t.getVersion()))}}return n})(),$I=(()=>{class n extends Yd{inMemoryProjectStore;structureConverter;constructor(i,t){super(i),this.inMemoryProjectStore=i,this.structureConverter=t}static services=[Ku,NM];toReadModel(i){return this.structureConverter.convert(i)}}return n})(),ga=class extends Kr{},fa=class extends ga{theme;constructor(e,i){super(e,i,"SchemaThemeSetEvent"),this.theme=i}getTheme(){return this.theme}},Xu=class extends Re{constructor(e){super(e,null,"UniqueFilterUnselectedEvent")}},Zu=class extends Re{constructor(e){super(e,null,"AllUniqueFilterUnselectedEvent")}},Ju=class extends Re{constructor(e){super(e,null,"AllUniqueFilterSelectedEvent")}},eh=class extends Re{constructor(e){super(e,null,"UniqueFilterSelectedEvent")}},jM=(()=>{class n extends ci{inMemoryStructureReadStore;verticalFormation=new Map;verticalFormation$=new zi(1);domainEventBus=L.resolve(Dn);constructor(i){super(),this.inMemoryStructureReadStore=i,this.domainEventBus.ofEvents([il,Wu,da,Qu,Yu,fa,qu,Gu,la,Xu,Zu,Ju,eh,Gc,_u,Zo]).pipe(this.hermesTakeUntil()).subscribe(t=>{let r=t.getAggregateId();this.inMemoryStructureReadStore.getById(r).ifPresent(s=>{let a=s.getVerticalFormation();this.next(r,a)})})}static services=[$I];onVerticalScrollEnabled(i){return this.onVerticalFormation(i).pipe(te(t=>t.isEnabled()),Tn())}onRowHeight(i){return this.onVerticalFormation(i).pipe(te(t=>t.getRowHeight()),Tn())}onContainerHeight(i){return this.onVerticalFormation(i).pipe(te(t=>t.getViewPortHeight()),Tn())}onTopMargin(i){return this.onVerticalFormation(i).pipe(te(t=>t.getTopMargin()),Tn())}onVerticalFormation(i){return this.verticalFormation$.toObservable().pipe(He(t=>{let r=i.getId();return t.has(r)}),te(t=>t.get(i.getId())))}next(i,t){this.verticalFormation.set(i.toString(),t),this.verticalFormation$.next(this.verticalFormation)}}return n})(),j6=(()=>{class n extends lo{verticalFormationRepository;positionRepository;constructor(i,t){super(),this.verticalFormationRepository=i,this.positionRepository=t}static services=[jM,UI];onEnabled(i){return this.verticalFormationRepository.onVerticalScrollEnabled(i)}onRowHeight(i){return this.verticalFormationRepository.onRowHeight(i)}onContainerHeight(i){return this.verticalFormationRepository.onContainerHeight(i)}onTopMargin(i){return this.verticalFormationRepository.onTopMargin(i)}onScrollBarPosition(i){return this.positionRepository.on(i)}}return n})(),ba=class{constructor(){}},L6=(()=>{class n extends ba{verticalFormationDispatcher;constructor(i){super(),this.verticalFormationDispatcher=i}static services=[xf];enableVirtualScroll(i){this.verticalFormationDispatcher.setVirtualScrollEnabled(!0,i)}disableVirtualScroll(i){this.verticalFormationDispatcher.setVirtualScrollEnabled(!1,i)}scrollToTop(i){this.verticalFormationDispatcher.scrollTo(0,i)}scrollToBottom(i){this.verticalFormationDispatcher.scrollTo(Number.MAX_SAFE_INTEGER,i)}scrollToIndex(i,t){this.verticalFormationDispatcher.scrollTo(i,t)}setScrollPosition(i,t){this.verticalFormationDispatcher.setScrollPosition(i,t)}}return n})(),Qx=class{registerProviders(e){e.provide(Cf),e.provide(jM),e.provide(lo,j6),e.provide(ba,L6),e.provide(UI)}};function V6(){new fi(new Qx,new qx).init()}V6();function B6(){return L.resolve(ba)}function z6(){return L.resolve(lo)}var H6=(()=>{class n extends $t{static forComponent(){return[]}static \u0275fac=(()=>{let i;return function(r){return(i||(i=Te(n)))(r||n)}})();static \u0275mod=H({type:n});static \u0275inj=z({providers:[{provide:ba,useFactory:B6},{provide:lo,useFactory:z6}],imports:[J]})}return n})(),Ef=class extends Ms{},kf=class extends js{},LM=(()=>{class n extends Ns{constructor(i){super(i)}static services=[kf]}return n})(),VM=(()=>{class n extends Ef{inMemorySchemaAggregateStore;constructor(i){super(),this.inMemorySchemaAggregateStore=i}static services=[LM];findById(i){return this.inMemorySchemaAggregateStore.findById(i)}save(i){this.inMemorySchemaAggregateStore.save(i)}}return n})(),nl=class extends Po{},Sf=class extends nl{theme;constructor(e,i){super(e,"SetSchemaThemeCommand"),this.theme=i}getTheme(){return this.theme}},Kx=class{forCommand(){return Sf}handle(e,i){let t=i.getTheme();e.changeTheme(t)}},Df=class extends nl{coloring;constructor(e,i){super(e,"SetRowColoringCommand"),this.coloring=i}getColoring(){return this.coloring}},Xx=class{forCommand(){return Df}handle(e,i){let t=i.getColoring();e.setRowColoring(t)}},Tf=class extends nl{enabled;constructor(e,i){super(e,"SetSchemaHorizontalGridCommand"),this.enabled=i}isEnabled(){return this.enabled}},Zx=class{domainEventPublisher=L.resolve(ze);forCommand(){return Tf}handle(e,i){let t=i.isEnabled();e.setHorizontalGrid(t)}publish(e,i){this.domainEventPublisher.publishFromAggregate(e)}},Mf=class extends nl{enabled;constructor(e,i){super(e,"SetSchemaVerticalGridCommand"),this.enabled=i}isEnabled(){return this.enabled}},Jx=class{domainEventPublisher=L.resolve(ze);forCommand(){return Mf}handle(e,i){let t=i.isEnabled();e.setVerticalGrid(t)}publish(e,i){this.domainEventPublisher.publishFromAggregate(e)}},th=class extends tt{constructor(){super()}},rl=class extends ga{rowColoring;constructor(e,i){super(e,i,"RowColoringSetEvent"),this.rowColoring=i}getRowColoring(){return this.rowColoring}},ol=class extends ga{horizontalGrid;constructor(e,i){super(e,i,"SchemaHorizontalGridSetEvent"),this.horizontalGrid=i}getHorizontalGrid(){return this.horizontalGrid}},sl=class extends ga{verticalGrid;constructor(e,i){super(e,i,"SchemaVerticalGridSetEvent"),this.verticalGrid=i}getVerticalGrid(){return this.verticalGrid}},eC=class{verticalGrid;horizontalGrid;theme;rowColoring;constructor(e,i,t,r){this.verticalGrid=e,this.horizontalGrid=i,this.theme=t,this.rowColoring=r}getRowColoring(){return this.rowColoring}},U6=(()=>{class n{schemaCssClassesRepository;rowColoring;horizontalGrid;verticalGrid;schemaTheme;constructor(i){this.schemaCssClassesRepository=i}static services=[th];forEvents(){return[fa,rl,ol,sl]}handle(i){i.ofMessageType("RowColoringSetEvent")&&(this.rowColoring=i.getRowColoring()),i.ofMessageType("SchemaHorizontalGridSetEvent")&&(this.horizontalGrid=i.getHorizontalGrid()),i.ofMessageType("SchemaVerticalGridSetEvent")&&(this.verticalGrid=i.getVerticalGrid()),i.ofMessageType("SchemaThemeSetEvent")&&(this.schemaTheme=i.getTheme()),this.publish(i.getAggregateId())}publish(i){this.rowColoring!==void 0&&this.horizontalGrid!==void 0&&this.verticalGrid!==void 0&&this.schemaTheme!==void 0&&this.schemaCssClassesRepository.next(i,new eC(this.verticalGrid,this.horizontalGrid,this.schemaTheme,this.rowColoring))}}return n})(),ST="SchemaAggregate",Rf=class extends tr{constructor(){super()}forEvent(){return sl}},Af=class extends tr{constructor(){super()}forEvent(){return fa}},Ff=class extends tr{constructor(){super()}forEvent(){return rl}},Pf=class extends tr{constructor(){super()}forEvent(){return ol}},Of=class extends Qd{constructor(e){super(e,"CreateSchemaCommand")}},tC=class{forCommand(){return Of}},va=class extends Ts{},iC=class extends va{theme;constructor(e,i){super(e,"SchemaThemeSetAggregateEvent"),this.theme=i}toDomainEvent(){return new fa(this.getAggregateId(),this.theme)}},nC=class extends va{rowColoring;constructor(e,i){super(e,"RowColoringSetEvent"),this.rowColoring=i}toDomainEvent(){return new rl(this.getAggregateId(),this.rowColoring)}},rC=class extends va{verticalGrid;constructor(e,i){super(e,"SchemaHorizontalGridSetEvent"),this.verticalGrid=i}toDomainEvent(){return new sl(this.getAggregateId(),this.verticalGrid)}},oC=class extends va{horizontalGrid;constructor(e,i){super(e,"SchemaHorizontalGridSetEvent"),this.horizontalGrid=i}toDomainEvent(){return new ol(this.getAggregateId(),this.horizontalGrid)}},sC=class extends ga{constructor(e){super(e,null,"SchemaCreatedEvent")}},aC=class extends va{constructor(e){super(e,"SchemaCreatedAggregateEvent")}toDomainEvent(){return new sC(this.getAggregateId())}},Nf=class n extends Rs{static DEFAULT_THEME=me.GENERIC;static DEFAULT_ROW_COLORING=It.ODD;static DEFAULT_VERTICAL_GRID=!0;static DEFAULT_HORIZONTAL_GRID=!0;horizontalGrid;verticalGrid;theme;rowColoring;constructor(e){super(e,"SchemaAggregate"),this.setTheme(n.DEFAULT_THEME),this.setHorizontalGrid(n.DEFAULT_HORIZONTAL_GRID),this.setVerticalGrid(n.DEFAULT_VERTICAL_GRID),this.setRowColoring(n.DEFAULT_ROW_COLORING)}createEvent(){return aC}changeTheme(e){this.setTheme(e),e===me.MATERIAL&&(this.setRowColoring(It.NONE),this.setVerticalGrid(!1)),e===me.LIGHT&&(this.setRowColoring(It.NONE),this.setVerticalGrid(!1)),e===me.DARK&&(this.setRowColoring(It.NONE),this.setVerticalGrid(!1)),e===me.GENERIC&&this.setRowColoring(It.ODD)}setRowColoring(e){this.rowColoring=e,this.addEvent(new nC(this.getId(),this.rowColoring))}setVerticalGrid(e){this.verticalGrid=e,this.addEvent(new rC(this.getId(),this.verticalGrid))}setHorizontalGrid(e){this.horizontalGrid=e,this.addEvent(new oC(this.getId(),this.horizontalGrid))}setTheme(e){this.theme=e,this.addEvent(new iC(this.getId(),this.theme))}},cC=class extends Ds{constructor(){super()}create(e){return new Nf(e)}},ih=class extends tt{constructor(){super()}},nh=class extends tt{constructor(){super()}},lC=class{defineAggregate(){return{aggregateKey:ST,createCommandHandler:tC,factory:cC,repository:VM}}registerKey(){return ST}registerProviders(e){e.provide(ih),e.provide(nh)}registerCommandHandlers(){return[Kx,Xx,Zx,Jx]}registerDomainEventHandler(){return[Af,Pf,Ff,Rf]}registerMultiDomainEventHandler(){return[U6]}},jf=class{commandDispatcher=L.resolve(ti);create(e){this.commandDispatcher.dispatch(new Of(e))}setTheme(e,i){this.commandDispatcher.dispatch(new Sf(i,e))}setRowColoring(e,i){this.commandDispatcher.dispatch(new Df(i,e))}setVerticalGrid(e,i){this.commandDispatcher.dispatch(new Mf(i,e))}setHorizontalGrid(e,i){this.commandDispatcher.dispatch(new Tf(i,e))}},$6=(()=>{class n extends Wi{schemaDispatcher;structurePublisher;fabricModalThemeService;schemaRowClassArchive;schemaRowStyleArchive;constructor(i,t,r,o,s){super(),this.schemaDispatcher=i,this.structurePublisher=t,this.fabricModalThemeService=r,this.schemaRowClassArchive=o,this.schemaRowStyleArchive=s}static services=[jf,qi,Rn,ih,nh];create(i){this.schemaDispatcher.create(i.toAggregateId())}setTheme(i,t,r){this.schemaDispatcher.setTheme(i,t.toAggregateId()),this.fabricModalThemeService.changeTheme(this.toFabricTheme(i)),this.structurePublisher.setRowHeightBasedOnTheme(i,r)}setRowColoring(i,t){let r=this.toSchemaRowColoring(i);this.schemaDispatcher.setRowColoring(r,t.toAggregateId())}setVerticalGrid(i,t){this.schemaDispatcher.setVerticalGrid(i,t.toAggregateId())}setHorizontalGrid(i,t){this.schemaDispatcher.setHorizontalGrid(i,t.toAggregateId())}setRowClass(i,t){return this.schemaRowClassArchive.next(t.toAggregateId(),i)}setRowStyle(i,t){return this.schemaRowStyleArchive.next(t.toAggregateId(),i)}toSchemaRowColoring(i){switch(i){case Gt.NONE:return It.NONE;case Gt.ODD:return It.ODD;case Gt.EVEN:return It.EVEN;default:return It.NONE}}toFabricTheme(i){switch(i){case me.DARK:return Ue.DARK;case me.FABRIC:return Ue.FABRIC;case me.GENERIC:return Ue.GENERIC;case me.LIGHT:return Ue.LIGHT;case me.MATERIAL:return Ue.MATERIAL;default:return Ue.FABRIC}}}return n})(),G6=(()=>{class n extends mn{schemaCssClassesRepository;schemaThemeRepository;schemaHorizontalGridRepository;schemaRowColoringRepository;schemaVerticalGridRepository;schemaRowClassArchive;schemaRowStyleArchive;constructor(i,t,r,o,s,a,u){super(),this.schemaCssClassesRepository=i,this.schemaThemeRepository=t,this.schemaHorizontalGridRepository=r,this.schemaRowColoringRepository=o,this.schemaVerticalGridRepository=s,this.schemaRowClassArchive=a,this.schemaRowStyleArchive=u}static services=[th,Af,Pf,Ff,Rf,ih,nh];onTheme(i){return this.schemaThemeRepository.on(i.toAggregateId())}onceTheme(i){return Vs(this.onTheme(i))}findTheme(i){return this.schemaThemeRepository.find(i.toAggregateId())}onHorizontalGrid(i){return this.schemaHorizontalGridRepository.on(i.toAggregateId())}onVerticalGrid(i){return this.schemaVerticalGridRepository.on(i.toAggregateId())}onRowColoring(i){return this.schemaRowColoringRepository.on(i.toAggregateId())}onCssClasses(i){return this.schemaCssClassesRepository.on(i.toAggregateId())}onRowClass(i){return this.schemaRowClassArchive.on(i.toAggregateId())}onRowStyle(i){return this.schemaRowStyleArchive.on(i.toAggregateId())}}return n})(),dC=class extends Dr{constructor(){super()}onThemeChanged(e){return this.onEvent(e,fa).pipe(te(i=>i.getTheme()))}onHorizontalGridChanged(e){return this.onEvent(e,ol).pipe(te(i=>i.getHorizontalGrid()))}onVerticalGridChanged(e){return this.onEvent(e,sl).pipe(te(i=>i.getVerticalGrid()))}onRowColoring(e){return this.onEvent(e,rl).pipe(te(i=>i.getRowColoring()))}},uC=class{registerProviders(e){e.provide(jf),e.provide(Ef,VM),e.provide(LM),e.provide(kf),e.provide(Wi,$6),e.provide(mn,G6),e.provide(Dr,dC),e.provide(th)}},W6=()=>{new fi(new uC,new lC).init()};function q6(){return L.resolve(Wi)}function Y6(){return L.resolve(mn)}function Q6(){return L.resolve(Dr)}W6();var K6=(()=>{class n extends $t{constructor(){super()}static forComponent(){return[]}static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({providers:[{provide:Wi,useFactory:q6},{provide:mn,useFactory:Y6},{provide:Dr,useFactory:Q6}],imports:[J]})}return n})(),BM=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[J]})}return n})();qz();function X6(){return L.resolve(On)}function Z6(){return L.resolve(Gi)}function J6(){return L.resolve(Qo)}function eU(){return L.resolve(Yo)}function tU(){return L.resolve(ea)}var iU=(()=>{class n extends $t{constructor(i){super(),L.provideValue(dt,i)}static forComponent(){return[]}static \u0275fac=function(t){return new(t||n)(w(dt))};static \u0275mod=H({type:n});static \u0275inj=z({providers:[{provide:On,useFactory:X6},{provide:Gi,useFactory:Z6},{provide:Qo,useFactory:J6},hh,SI,kg,TI,Sg,{provide:Yo,useFactory:eU},{provide:ea,useFactory:tU}],imports:[J,Sn,BM,jo,eo,Mn,to,Ep,jo,eo,Mn,to]})}return n})(),nU=[sM,aM,cM,lM,dM,uM,hM,mM,pM,gM,fM,bM,vM,_M,yM,wM,xM,CM,IM],Lf=class extends Re{constructor(e){super(e,null,"SetSourceLoadingEvent")}},Vf=class extends Ee{enabled;constructor(e,i){super(e,"SourceSetLoadingCommand"),this.enabled=i}isEnabled(){return this.enabled}},hC=class{domainEventPublisher=L.resolve(ze);forCommand(){return Vf}handle(e,i){let t=i.isEnabled();e.getSource().setLoading(t)}publish(e,i){this.domainEventPublisher.publish(new Lf(i.getAggregateId()))}},Bf=class extends Ee{items;constructor(e,i=[]){super(e,"SetOriginCommand"),this.items=i}getItems(){return this.items}},rU=(()=>{class n{structureSourceDomainEventPublisher;constructor(i){this.structureSourceDomainEventPublisher=i}static services=[ua];forCommand(){return Bf}handle(i,t){let r=t.getItems();i.setOrigin(r)}publish(i,t){let r=i.getEvents();this.structureSourceDomainEventPublisher.publish(r)}}return n})(),zf=class extends Ee{params;constructor(e,i){super(e,"StructureEditSourceItemCommand"),this.params=i}getParams(){return this.params}},oU=(()=>{class n{structureSourceDomainEventPublisher;constructor(i){this.structureSourceDomainEventPublisher=i}static services=[ua];forCommand(){return zf}handle(i,t){let r=t.getParams();i.editItem(r)}publish(i,t){let r=i.getEvents();this.structureSourceDomainEventPublisher.publish(r)}}return n})(),mC=class extends pt{beforeItem;afterItem;constructor(e,i,t){super(e,"StructureSourceItemEditedAggregateEvent"),this.beforeItem=i,this.afterItem=t}toDomainEvent(){return new pu(this.getAggregateId(),this.beforeItem,this.afterItem)}getBeforeItem(){return this.beforeItem}getAfterItem(){return this.afterItem}},pC=class extends pt{origin;constructor(e,i){super(e,"StructureOriginChangedAggregateEvent"),this.origin=i}toDomainEvent(){return new da(this.getAggregateId(),this.origin)}getOrigin(){return this.origin}},Hc=class extends Xr{constructor(e){super(e)}toString(){return this.getId()}},Hf=class{events=[];loading=!1;fetched=!1;origin;entities=[];preparedEntities=[];slicedEntities=[];formationManager;constructor(e){this.formationManager=e,this.events.push(...this.formationManager.init(!0,Fn.SINGLE,li.ROW))}isLoading(){return this.loading}setLoading(e){this.loading=e}setEntities(e){this.entities=e,this.recalculatePositions()}getEntities(){return this.entities}setPreparedEntities(){this.preparedEntities=Array.from(this.entities)}getPreparedEntities(){return this.preparedEntities}setSlicedEntities(e){this.slicedEntities=e}getSlicedEntities(){return this.slicedEntities}setOrigin(e=[],i){return this.origin=this.convertItems(e),this.createOriginChangedEvent(i)}setConvertedOrigin(e=[],i){return this.origin=Array.from(e),this.createOriginChangedEvent(i)}getOrigin(){return this.origin}editOriginItem(e,i,t,r){let o=this.findOriginItem(e),s=o.clone();return o&&(o.sourceItem[t.getAccessor()]=i,o.bumpVersion()),[new mC(r,s,o.clone()),this.createOriginChangedEvent(r)]}deleteAllSelected(e){let i=[];return this.formationManager.getSelectedItemIds().forEach(r=>{i=i.concat(this.deleteOriginItemByItemId(r,e))}),i}deleteOriginItem(e,i){if(e instanceof Hc)return this.deleteOriginItemByItemId(e,i);if(Array.isArray(e)){let t=[];return e.forEach(r=>{t=t.concat(this.deleteOneOriginItem(r,i))}),t}else return Number.isInteger(e)?this.deleteOriginItemByIndex(e,i):[]}addOriginItem(e,i){return this.origin.push(e),[this.createOriginChangedEvent(i)]}setCustomConfig(e){return this.formationManager.setCustomConfig(e)}selectCustom(e){this.formationManager.selectCustom(e,this.getEntities())}selectAll(){this.formationManager.selectAll(this.getEntities().map(e=>e.getId()))}unselectAll(){this.formationManager.unselectAll()}selectByIndex(e){this.formationManager.selectByIndex(e,this.getEntities().map(i=>i.getId()))}selectByIds(e){this.formationManager.selectByIds(e,this.getEntities())}reSelect(){this.formationManager.reSelectByIds(this.getEntities())}setSelectedRows(e){this.formationManager.selectRows(e,this.getEntities().map(i=>i.getId()))}toggleRow(e,i){this.formationManager.toggleRow(e,i,this.getEntities().map(t=>t.getId()))}getFormation(){return this.formationManager}convertItems(e){return e.map((i,t)=>new Wg(new Hc(Oo.generate()),i,t))}createOriginChangedEvent(e){return new pC(e,this.origin)}findOriginItem(e){return this.origin.find(i=>i.getId().toString()===e)}findOriginItemIndex(e){return this.origin.findIndex(i=>i.getId().toString()===e)}recalculatePositions(){this.entities.forEach((e,i)=>{e.setPosition(i)})}deleteOneOriginItem(e,i){return e instanceof Hc?this.deleteOriginItemByItemId(e,i):Number.isInteger(e)?this.deleteOriginItemByIndex(e,i):[]}deleteOriginItemByItemId(e,i){let t=this.findOriginItemIndex(e.toString());return this.deleteOriginItemByIndex(t,i)}deleteOriginItemByIndex(e,i){if(e>-1){let t=this.origin.splice(e,1);if(t.length>0){for(let r of t)this.formationManager.unselectRow(r.getId());this.formationManager.calculateAllSelected(t.map(r=>r.getId())),this.formationManager.calculateAllUnselected()}return[this.createOriginChangedEvent(i)]}return[]}deleteManyOriginItemByIndex(e,i){let t=[];return e.forEach(r=>{t=t.concat(this.deleteOriginItemByIndex(r,i))}),t}deleteManyOriginItemByItemID(e,i){let t=[];return e.forEach(r=>{t=t.concat(this.deleteOriginItemByItemId(r,i))}),t}},gC=class{mode;type;constructor(e,i){this.mode=e,this.type=i}setMode(e){this.mode=e}getMode(){return this.type===li.RADIO?Fn.SINGLE:this.mode}isSingle(){return this.getMode()===Fn.SINGLE}setType(e){this.type=e}getType(){return this.type}},Uf=class extends Re{mode;constructor(e,i){super(e,i,"SelectionModeSetEvent"),this.mode=i}getMode(){return this.mode}},au=class extends pt{mode;constructor(e,i){super(e,"SelectionModeSetAggregateEvent"),this.mode=i}toDomainEvent(){return new Uf(this.getAggregateId(),this.mode)}},$f=class extends Re{selectionType;constructor(e,i){super(e,i,"SelectionTypeSetEvent"),this.selectionType=i}getType(){return this.selectionType}},cu=class extends pt{selectionType;constructor(e,i){super(e,"SelectionTypeSetAggregateEvent"),this.selectionType=i}toDomainEvent(){return new $f(this.getAggregateId(),this.selectionType)}},rh=class extends Re{enabled;constructor(e,i){super(e,i,"SelectionEnabledSetEvent"),this.enabled=i}isEnabled(){return this.enabled}},oh=class extends pt{enabled;constructor(e,i){super(e,"SelectionEnabledSetAggregateEvent"),this.enabled=i}toDomainEvent(){return new rh(this.getAggregateId(),this.enabled)}},Xs=class extends As{constructor(e){super(e)}toString(){return super.getId()}},Zs=class{key;text;customSelectId;builtIn;method;constructor(e,i,t,r,o){this.key=e,this.text=i,this.customSelectId=t,this.builtIn=r,this.method=o}getKey(){return this.key}getText(){return this.text}getCustomSelectId(){return this.customSelectId}isBuiltIn(){return this.builtIn}customSelect(e){return this.method(e)}},Gf=class{enabled;selections;constructor(e,i){this.enabled=e,this.selections=i}isEnabled(){return this.enabled}getSelections(){return this.selections}},sU=(()=>{class n{enabled;selections;static id=0;constructor(i,t){this.enabled=i,this.selections=t}init(){return[]}isEnabled(){return this.enabled}setEnabled(i){this.enabled=i}getSelections(){return this.selections}setSelections(i){this.selections=i.map(t=>typeof t=="string"?new Zs("",t,new Xs(t),!0):(n.id++,new Zs(t.key,t.text,new Xs(`${n.id}`),!1,t.select)))}findSelection(i){return At.of(this.selections.find(t=>t.getCustomSelectId().equals(i)))}}return n})(),Wf=class extends Re{customSelection;constructor(e,i){super(e,i,"FormationCustomSelectionChangeEvent"),this.customSelection=i}getCustomSelection(){return this.customSelection}},qf=class extends pt{customSelection;constructor(e,i){super(e,"FormationCustomSelectionChangeAggregateEvent"),this.customSelection=i}toDomainEvent(){return new Wf(this.getAggregateId(),this.customSelection)}},fC=class{id;selectedItemIds;enabled;selection=new gC(Fn.SINGLE,li.ROW);allSelected;allUnselected;customSelection;matcher=e=>e.id;constructor(e,i){this.id=e,this.selectedItemIds=i}init(e,i,t){return this.enabled=e,this.selection.setMode(i),this.selection.setType(t),this.customSelection=new sU(!1,[new Zs("select_all","SELECT_ALL",new Xs("SELECT_ALL"),!0),new Zs("UNSELECT_ALL","UNSELECT_ALL",new Xs("UNSELECT_ALL"),!0),new Zs("","INVERT",new Xs("INVERT"),!0)]),[new oh(this.getId(),this.enabled),new au(this.getId(),this.selection.getMode()),new cu(this.getId(),this.selection.getType()),new qf(this.getId(),new Gf(this.customSelection.isEnabled(),this.customSelection.getSelections()))]}setSelection(e){return this.enabled=e,[new oh(this.getId(),this.enabled)]}setMode(e){return this.selection.setMode(e),[new au(this.getId(),this.selection.getMode()),new cu(this.getId(),this.selection.getType())]}setType(e){return this.selection.setType(e),[new au(this.getId(),this.selection.getMode()),new cu(this.getId(),this.selection.getType())]}setMatcher(e){this.matcher=e}setCustomConfig(e){return e?.enabled&&this.customSelection.setEnabled(e.enabled),e?.selections&&this.customSelection.setSelections(e.selections),[new qf(this.getId(),new Gf(this.customSelection.isEnabled(),this.customSelection.getSelections()))]}isAllSelected(){return this.allSelected}isAllUnselected(){return this.allUnselected}getSelectedItemIds(){return Array.from(this.selectedItemIds).map(e=>new Hc(e))}selectCustom(e,i){this.customSelection.findSelection(e).ifPresent(t=>{if(t.isBuiltIn())switch(t.getCustomSelectId().toString()){case"SELECT_ALL":this.selectAll(i.map(r=>r.getId()));break;case"UNSELECT_ALL":this.unselectAll();break;case"INVERT":this.invertSelected(i.map(r=>r.getId()));break;default:break}else{let r=t.customSelect(i);this.selectedItemIds=new Set(r.map(o=>o.getId().toString()))}})}selectAll(e){this.selectedItemIds=new Set(e.map(i=>i.toString())),this.allSelected=!0,this.allUnselected=!1}unselectAll(){this.selectedItemIds.clear(),this.allSelected=!1,this.allUnselected=!0}invertSelected(e){let i=this.getSelectedItemIds(),t=e.filter(r=>!i.some(o=>o.equals(r)));this.selectedItemIds=new Set(t.map(r=>r.toString())),this.calculateAllSelected(e),this.calculateAllUnselected()}reSelectByIds(e){this.selectByIds(this.getSelectedItemIds().map(i=>i.getId()),e),this.calculateAllSelected(e.map(i=>i.getId())),this.calculateAllUnselected()}selectByIds(e,i){if(!this.enabled)return;let t=[];for(let o=0;o<e.length;o++){let s=i.filter(a=>this.matcher(a.getSourceItem())===e[o]).map(a=>a.getId().toString());t.push(...s)}let r=ln.ADD;this.selection.isSingle()&&(r=ln.NONE),t.forEach(o=>{this.toggleRowByType(r,o)}),this.calculateAllSelected(i.map(o=>o.getId())),this.calculateAllUnselected()}selectByIndex(e,i){if(!this.enabled)return;let t=e.map(o=>(i[o]||console.error("Item not found"),i[o].toString())),r=ln.ADD;this.selection.isSingle()&&(r=ln.NONE),t.forEach(o=>{this.toggleRowByType(r,o)}),this.calculateAllSelected(i),this.calculateAllUnselected()}selectRows(e,i){}toggleRow(e,i,t){this.enabled&&(i===ln.ADD&&this.selection.isSingle()&&(i=ln.NONE),this.toggleRowByType(i,e),this.calculateAllSelected(t),this.calculateAllUnselected())}calculateAllSelected(e){if(e.length!==this.selectedItemIds.size)this.allSelected=!1;else{let i=Array.from(this.selectedItemIds),t=!0;i.sort(),e.sort();for(let r=0;r<i.length;r+=1)if(i[r]!==e[r].toString()){t=!1;break}this.allSelected=t}}calculateAllUnselected(){this.allUnselected=this.selectedItemIds.size===0}unselectRow(e){this.selectedItemIds.has(e.toString())&&this.selectedItemIds.delete(e.toString())}getId(){return this.id}getType(){return this.selection.getType()}toggleRowByType(e,i){switch(e){case ln.NONE:this.selectedItemIds.has(i)?this.selectedItemIds.delete(i):(this.selectedItemIds.clear(),this.selectedItemIds.add(i));break;case ln.ADD:this.selectedItemIds.has(i)?this.selectedItemIds.delete(i):this.selectedItemIds.add(i);break;case ln.RANGE:break;default:break}}},Yf=class{create(e){return new fC(e,new Set)}},zM=(()=>{class n{formationManagerFactory;constructor(i){this.formationManagerFactory=i}static services=[Yf];createDefault(i){let t=this.formationManagerFactory.create(i);return new Hf(t)}create(i){let t=this.formationManagerFactory.create(i);return new Hf(t)}}return n})(),su=function(n){return n[n.INDEX=0]="INDEX",n[n.ITEM_ID=1]="ITEM_ID",n[n.MANY_INDEX=2]="MANY_INDEX",n[n.MANY_ITEM_ID=3]="MANY_ITEM_ID",n}(su||{}),qs=class n extends Ee{payload;type;constructor(e,i,t){super(e,"DeleteOriginItemCommand"),this.payload=i,this.type=t}static byIndex(e,i){return new n(e,i,su.INDEX)}static byManyIndex(e,i){return new n(e,i,su.MANY_INDEX)}static byItemId(e,i){return new n(e,i,su.ITEM_ID)}static byManyItemId(e,i){return new n(e,i,su.MANY_ITEM_ID)}getType(){return this.type}getPayload(){return this.payload}},bC=class{forCommand(){return qs}handle(e,i){e.deleteItem(i.getPayload())}},GI=(()=>{class n extends tt{static default=[];constructor(){super(n.default)}}return n})(),aU=(()=>{class n{structureSourceOriginRepository;constructor(i){this.structureSourceOriginRepository=i}static services=[GI];forEvent(){return da}handle(i){if(i.ofMessageType("OriginSetEvent")){let t=i.getOrigin();this.structureSourceOriginRepository.next(i.getAggregateId(),t)}}}return n})(),WI=(()=>{class n extends tt{static default=[];constructor(){super(n.default)}getPreparedItems(i){return this.find(i).getValueOrNullOrThrowError()}}return n})(),cU=(()=>{class n{structurePreparedItemsRepository;constructor(i){this.structurePreparedItemsRepository=i}static services=[WI];forEvent(){return Uu}handle(i){if(i.ofMessageType("StructurePreparedEntitiesSetEvent")){let t=i.getPreparedItems();this.structurePreparedItemsRepository.next(i.getAggregateId(),t)}}}return n})(),vC=class{defineAggregate(){return null}registerKey(){return Nn}registerProviders(e){e.provide(GI),e.provide(zM),e.provide(ua)}registerCommandHandlers(){return[hC,rU,oU,bC]}registerDomainEventHandler(){return[aU,cU]}registerMultiDomainEventHandler(){return[]}},lU=(()=>{class n extends pn{structureRepository;structurePreparedItemsRepository;structureSourceOriginRepository;constructor(i,t,r){super(),this.structureRepository=i,this.structurePreparedItemsRepository=t,this.structureSourceOriginRepository=r}static services=[ia,WI,GI];findItems(i){return this.structureRepository.getStructure(i).getEntities()}onItems(i){return this.structureRepository.on(i).pipe(te(t=>t.getEntities()),Tn((t,r)=>{if(t.length!==r.length)return!1;let o=!0;return t.forEach((s,a)=>{if(!s.equals(r[a])){o=!1;return}}),o}))}onItemsSize(i){return this.onItems(i).pipe(te(t=>t.length))}onceItems(i){return Vs(this.onItems(i))}onOriginSize(i){return this.structureSourceOriginRepository.on(i).pipe(te(t=>t.length))}onLoading(i){return this.structureRepository.on(i).pipe(te(t=>t.getSource().isLoading()))}onPreparedItems(i){return this.structurePreparedItemsRepository.on(i)}findPreparedItems(i){return this.structurePreparedItemsRepository.getPreparedItems(i)}}return n})(),dU=(()=>{class n extends dn{commandDispatcher;fieldWarehouse;sourceReadModelService;constructor(i,t,r){super(),this.commandDispatcher=i,this.fieldWarehouse=t,this.sourceReadModelService=r}static services=[ti,ca,pn];setOrigin(i,t){this.commandDispatcher.dispatch(new Bf(t,i))}setLoading(i,t){this.commandDispatcher.dispatch(new Vf(t,i))}editItem(i,t){this.commandDispatcher.dispatch(new zf(t,i))}editItemByIndex(i,t,r,o){let s=Zr(this.sourceReadModelService.onceItems(o).pipe(te(u=>u[i].getId()))),a=Zr(this.fieldWarehouse.onFields(o));No(lE(s,a)).pipe(Ls(1)).subscribe(u=>{let b=u[0],y=u[1];this.editItem(new Nu(b,y[t],r),o)})}deleteRow(i,t){i.getItemId()!==void 0?this.deleteItemById(i.getItemId(),t):i.getIndex()!==void 0&&this.deleteItemByIndex(i.getIndex(),t)}deleteRows(i,t){i.length>0&&(i[0].getItemId()!==void 0?this.deleteManyItemsByItemIds(i.map(r=>r.getItemId()),t):i[0].getIndex()!==void 0&&this.deleteManyItemsByIndex(i.map(r=>r.getIndex()),t))}deleteItemByIndex(i,t){this.commandDispatcher.dispatch(qs.byIndex(t,i))}deleteItemById(i,t){this.commandDispatcher.dispatch(qs.byItemId(t,i))}deleteManyItemsByIndex(i,t){this.commandDispatcher.dispatch(qs.byManyIndex(t,i))}deleteManyItemsByItemIds(i,t){this.commandDispatcher.dispatch(qs.byManyItemId(t,i))}}return n})(),_C=class{registerProviders(e){e.provide(dn,dU),e.provide(pn,lU),e.provide(Js),e.provide(WI),e.provide(If)}};function uU(){new fi(new _C,new vC).init()}uU();function hU(){return L.resolve(dn)}function mU(){return L.resolve(pn)}function pU(){return L.resolve(Js)}var gU=(()=>{class n extends $t{static forComponent(){return[]}static \u0275fac=(()=>{let i;return function(r){return(i||(i=Te(n)))(r||n)}})();static \u0275mod=H({type:n});static \u0275inj=z({providers:[{provide:dn,useFactory:hU},{provide:pn,useFactory:mU},{provide:Js,useFactory:pU}],imports:[J]})}return n})();L.provide(ta);function fU(){return L.resolve(ta)}var bU=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({providers:[{provide:ta,useFactory:fU}]})}return n})(),vU=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({imports:[bU]})}return n})(),_U=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=H({type:n});static \u0275inj=z({providers:[eM]})}return n})(),Qf=class{itemIds;allSelected;allUnselected;constructor(e,i,t){this.itemIds=e,this.allSelected=i,this.allUnselected=t}getAll(){return this.itemIds}isSelected(e){return this.itemIds.some(i=>i===e)}isAllSelected(){return this.allSelected}isAllUnselected(){return this.allUnselected}isIndeterminate(){return!(this.isAllSelected()||this.isAllUnselected())}},sh=class n extends tt{static default=new Qf([],!1,!1);constructor(){super(n.default)}},Kf=class extends Ee{enabled;constructor(e,i){super(e,"SetEnabledSelectionCommand"),this.enabled=i}isEnabled(){return this.enabled}},yC=class{forCommand(){return Kf}handle(e,i){e.setSelection(i.isEnabled())}},Xf=class extends Ee{selectedRow;type;constructor(e,i,t){super(e,"ToggleSelectedRowCommand"),this.selectedRow=i,this.type=t}getSelectedRow(){return this.selectedRow}getType(){return this.type}},wC=class{forCommand(){return Xf}handle(e,i){let t=i.getSelectedRow(),r=i.getType();e.toggleRow(t,r)}},yU=(()=>{class n{rowSelectedArchive;constructor(i){this.rowSelectedArchive=i}static services=[sh];forEvent(){return gu}handle(i){if(i.ofMessageType("SelectedRowChangedEvent")){let t=new Qf(i.getSelectedRows(),i.isAllSelected(),i.isAllUnselected());this.rowSelectedArchive.next(i.getAggregateId(),t)}}}return n})(),Zf=class extends Ee{mode;constructor(e,i){super(e,"SetSelectionModeCommand"),this.mode=i}getMode(){return this.mode}},xC=class{forCommand(){return Zf}handle(e,i){e.setSelectionMode(i.getMode())}},Jf=class extends Ee{constructor(e){super(e,"SelectAllRowsCommand")}},CC=class{forCommand(){return Jf}handle(e,i){e.selectAll()}},eb=class extends Ee{constructor(e){super(e,"UnselectAllRowsCommand")}},IC=class{forCommand(){return eb}handle(e,i){e.unselectAll()}},tb=class extends Ee{type;constructor(e,i){super(e,"SetSelectionTypeCommand"),this.type=i}getType(){return this.type}},EC=class{forCommand(){return tb}handle(e,i){e.setSelectionType(i.getType())}},ib=class extends tr{constructor(){super()}forEvent(){return $f}},nb=class extends tr{constructor(){super()}forEvent(){return Uf}},rb=class extends tr{constructor(){super()}forEvent(){return rh}},ob=class extends Ee{selectedRows;constructor(e,i){super(e,"SetSelectedRowCommand"),this.selectedRows=i}getSelectedRows(){return this.selectedRows}},kC=class{forCommand(){return ob}handle(e,i){let t=i.getSelectedRows();e.setSelectedRows(t)}},sb=class extends Ee{indexes;constructor(e,i){super(e,"SelectRowByIndexCommand"),this.indexes=i}getIndexes(){return this.indexes}},SC=class{forCommand(){return sb}handle(e,i){let t=i.getIndexes();e.selectByIndex(t)}},ab=class extends Ee{ids;constructor(e,i){super(e,"SelectRowByIdCommand"),this.ids=i}getIds(){return this.ids}},DC=class{forCommand(){return ab}handle(e,i){let t=i.getIds();e.selectByIds(t)}},cb=class extends Ee{matcher;constructor(e,i){super(e,"FormationSetMatcherCommand"),this.matcher=i}getMatcher(){return this.matcher}},TC=class{forCommand(){return cb}handle(e,i){let t=i.getMatcher();e.setFormationMatcher(t)}},lb=class extends tr{constructor(){super()}forEvent(){return Wf}},db=class extends Ee{customSelectId;constructor(e,i){super(e,"FormationCustomSelectCommand"),this.customSelectId=i}getCustomSelectId(){return this.customSelectId}},MC=class{forCommand(){return db}handle(e,i){let t=i.getCustomSelectId();e.selectCustom(t)}},ub=class extends Ee{config;constructor(e,i){super(e,"FormationSetCustomSelectConfigCommand"),this.config=i}getConfig(){return this.config}},RC=class{forCommand(){return ub}handle(e,i){let t=i.getConfig();e.setSelectionCustomConfig(t)}},AC=class{defineAggregate(){return null}registerKey(){return Nn}registerProviders(e){e.provide(Yf)}registerCommandHandlers(){return[yC,xC,EC,CC,IC,wC,kC,SC,DC,TC,MC,RC]}registerDomainEventHandler(){return[yU,ib,nb,rb,lb]}registerMultiDomainEventHandler(){return[]}},wU=(()=>{class n extends $i{rowSelectedRepository;formationModeRepository;formationTypeRepository;formationEnabledRepository;formationCustomRepository;sourceWarehouse;constructor(i,t,r,o,s,a){super(),this.rowSelectedRepository=i,this.formationModeRepository=t,this.formationTypeRepository=r,this.formationEnabledRepository=o,this.formationCustomRepository=s,this.sourceWarehouse=a}static services=[sh,nb,ib,rb,lb,pn];findSelectedRows(i){let t=this.sourceWarehouse.findPreparedItems(i),r=this.findSelectedItemIds(i).getValueOrNullOrThrowError(),o=[],s=t.length;for(let a=0;a<s;a+=1){let u=t[a];r.some(b=>b===u.getId().toString())&&o.push(new Uc(u.getSourceItem(),a,u.getId()))}return At.of(o)}onRowSelectedReadModel(i){return this.rowSelectedRepository.on(i)}findSelectedItemIds(i){return this.rowSelectedRepository.find(i).map(t=>t.getAll())}onSelectedRows(i){return this.rowSelectedRepository.on(i).pipe(te(t=>t.getAll()))}onMode(i){return this.formationModeRepository.on(i)}onType(i){return this.formationTypeRepository.on(i)}onSelectionEnabled(i){return this.formationEnabledRepository.on(i)}onCustomSelections(i){return this.formationCustomRepository.on(i)}}return n})(),xU=(()=>{class n extends di{commandDispatcher;constructor(i){super(),this.commandDispatcher=i}static services=[ti];setSelection(i,t){this.commandDispatcher.dispatch(new Kf(t,i))}selectRows(i,t){this.commandDispatcher.dispatch(new ob(t,i))}selectByIndex(i,t){this.commandDispatcher.dispatch(new sb(t,i))}selectByIds(i,t){this.commandDispatcher.dispatch(new ab(t,i))}toggleSelectedRow(i,t,r){this.commandDispatcher.dispatch(new Xf(r,i,t))}changeMode(i,t){this.commandDispatcher.dispatch(new Zf(t,i))}changeType(i,t){this.commandDispatcher.dispatch(new tb(t,i))}setMatcher(i,t){this.commandDispatcher.dispatch(new cb(t,i))}selectAll(i){this.commandDispatcher.dispatch(new Jf(i))}unselectAll(i){this.commandDispatcher.dispatch(new eb(i))}selectCustom(i,t){this.commandDispatcher.dispatch(new db(t,i))}setCustomSelection(i,t){this.commandDispatcher.dispatch(new ub(t,i))}}return n})(),FC=class{registerProviders(e){e.provide(sh),e.provide(Jo),e.provide(di,xU),e.provide($i,wU)}};function CU(){new fi(new FC,new AC).init()}CU();function IU(){return L.resolve(di)}function EU(){return L.resolve($i)}function kU(){return L.resolve(Jo)}var SU=(()=>{class n extends $t{static \u0275fac=(()=>{let i;return function(r){return(i||(i=Te(n)))(r||n)}})();static \u0275mod=H({type:n});static \u0275inj=z({providers:[{provide:di,useFactory:IU},{provide:$i,useFactory:EU},{provide:Jo,useFactory:kU}],imports:[J,Vn,eo,Hs]})}return n})(),hb=class extends Ee{constructor(e){super(e,"CreateStructureCommand")}},PC=class{forCommand(){return hb}},OC=class extends pt{preparedItems;constructor(e,i){super(e,"StructurePreparedEntitiesSetAggregateEvent"),this.preparedItems=i}toDomainEvent(){return new Uu(this.getAggregateId(),this.preparedItems)}getPreparedItems(){return this.preparedItems}},NC=class extends pt{fieldConfigs;fields;constructor(e,i,t){super(e,"FieldsInitedAggregateEvent"),this.fieldConfigs=i,this.fields=t}toDomainEvent(){return new $c(this.getAggregateId(),this.fieldConfigs,this.fields)}getFieldConfigs(){return this.fieldConfigs}getFields(){return this.fields}},jC=class extends pt{constructor(e){super(e,"StructureCreatedAggregateEvent")}toDomainEvent(){return new il(this.getAggregateId())}},LC=class extends pt{filterTypes;constructor(e,i){super(e,"FilterTypesInitedAggregateEvent"),this.filterTypes=i}toDomainEvent(){return new Lg(this.getAggregateId(),this.filterTypes)}getFilterTypes(){return this.filterTypes}},VC=class extends pt{constructor(e){super(e,"FilterAddedEvent")}toDomainEvent(){return new Zo(this.getAggregateId(),[])}},BC=class extends pt{activeFilters;constructor(e,i){super(e,"FilterAddedEvent"),this.activeFilters=i}toDomainEvent(){return new Zo(this.getAggregateId(),this.activeFilters)}},zC=class extends pt{activeFilters;constructor(e,i){super(e,"FilterRemovedAggregateEvent"),this.activeFilters=i}toDomainEvent(){return new Zo(this.getAggregateId(),this.activeFilters)}},HC=class extends pt{map;constructor(e,i){super(e,"UniqueFilterCalculatedAggregateEvent"),this.map=i}toDomainEvent(){return new Bg(this.getAggregateId(),this.map)}},UC=class extends pt{constructor(e){super(e,"UniqueFilterSelectedAggregateEvent")}toDomainEvent(){return new eh(this.getAggregateId())}},$C=class extends pt{constructor(e){super(e,"UniqueFilterUnselectedAggregateEvent")}toDomainEvent(){return new Xu(this.getAggregateId())}},GC=class extends pt{constructor(e){super(e,"AllUniqueFilterUnselectedAggregateEvent")}toDomainEvent(){return new Zu(this.getAggregateId())}},WC=class extends pt{constructor(e){super(e,"AllUniqueFilterSelectedAggregateEvent")}toDomainEvent(){return new Ju(this.getAggregateId())}},qC=class extends pt{selectedRows;allSelected;allUnselected;constructor(e,i,t,r){super(e,"SelectedRowChangedAggregateEvent"),this.selectedRows=i,this.allSelected=t,this.allUnselected=r}toDomainEvent(){return new gu(this.getAggregateId(),this.selectedRows,this.allSelected,this.allUnselected)}},YC=class extends Rs{pagingManager;sourceManager;sorterManager;filterManager;searchManager;verticalFormation;fieldCollection;summariesManager;uniqueFilterManager;constructor(e,i,t,r,o,s,a,u,b,y){super(e,Nn),this.pagingManager=i,this.sourceManager=t,this.verticalFormation=r,this.summariesManager=o,this.sorterManager=s,this.filterManager=a,this.uniqueFilterManager=u,this.searchManager=b,this.fieldCollection=y,this.addEvent(this.sourceManager.events),this.sourceManager.events=[]}createEvent(){return jC}clearEvents(){super.clearEvents(),this.pagingManager.clearEvents()}init(){this.initTheme()}setVerticalFormationEnabled(e){this.verticalFormation.setEnabled(e),this.calculateSource()}getVerticalFormation(){return this.verticalFormation}setSummariesEnabled(e){return this.summariesManager.setEnabled(e),this.calculateSource(),this.getEvents()}setOrigin(e){return this.addEvent(this.sourceManager.setOrigin(e,this.getId())),this.calculateUniqueValues(),this.calculateSource(),this.getEvents()}deleteItem(e){this.addEvent(this.sourceManager.deleteOriginItem(e,this.getId())),this.generateSelectedRowChangedEvent(),this.calculateSource()}editItem(e){let i=e.getItemId(),t=e.getColumnFieldId(),r=this.fieldCollection.getField(t),o=e.getValue();return this.sourceManager.editOriginItem(i,o,r,this.getId()).forEach(a=>this.addEvent(a)),this.calculateUniqueValues(),this.calculateSource(),this.getEvents()}setHeight(e){this.verticalFormation.setViewportHeight(e),this.calculateSourceBasedOnVirtualScroll()}setTheme(e){e===me.MATERIAL&&this.getVerticalFormation().setRowHeight(52),e===me.GENERIC&&this.getVerticalFormation().setRowHeight(42),e===me.FABRIC&&this.getVerticalFormation().setRowHeight(36),e===me.LIGHT&&this.getVerticalFormation().setRowHeight(56),e===me.DARK&&this.getVerticalFormation().setRowHeight(38)}setScrollPosition(e){this.verticalFormation.setScrollPosition(e),this.calculateSourceBasedOnVirtualScroll()}scrollToIndex(e){this.addEvent(this.verticalFormation.scrollToIndex(e))}setSelection(e){this.sourceManager.getFormation().setSelection(e),this.addEvent(new oh(this.getId(),e))}setSelectionMode(e){this.addEvent(this.sourceManager.getFormation().setMode(e))}setSelectionType(e){this.addEvent(this.sourceManager.getFormation().setType(e))}setFormationMatcher(e){this.getFormation().setMatcher(e),this.sourceManager.reSelect(),this.generateSelectedRowChangedEvent()}selectByIndex(e){this.sourceManager.selectByIndex(e),this.generateSelectedRowChangedEvent()}selectByIds(e){this.sourceManager.selectByIds(e),this.generateSelectedRowChangedEvent()}setSelectedRows(e){this.sourceManager.setSelectedRows(e),this.generateSelectedRowChangedEvent()}setSelectionCustomConfig(e){this.addEvent(this.sourceManager.setCustomConfig(e))}toggleRow(e,i){this.sourceManager.toggleRow(e,i),this.generateSelectedRowChangedEvent()}selectCustom(e){this.sourceManager.selectCustom(e),this.generateSelectedRowChangedEvent()}selectAll(){this.sourceManager.selectAll(),this.generateSelectedRowChangedEvent()}unselectAll(){this.sourceManager.unselectAll(),this.generateSelectedRowChangedEvent()}getFormation(){return this.sourceManager.getFormation()}getPaging(){return this.pagingManager}changePaging(e){this.pagingManager.change(e),this.calculateSource()}setPaging(e){this.pagingManager=e,this.calculateSource()}nextPage(){this.pagingManager.nextPage(),this.calculateSource()}prevPage(){this.pagingManager.prevPage(),this.calculateSource()}changePageSize(e){return this.pagingManager.changePageSize(e).forEach(t=>{this.addEvent(t)}),this.calculateSource(),this.getEvents()}getEntities(){return this.sourceManager.getSlicedEntities()}getSource(){return this.sourceManager}createFields(e){this.fieldCollection.initFields(e);let i=this.fieldCollection.getAllFields();return this.addEvent(new NC(this.getId(),e,i)),this.filterManager.assignFilterTypes(i),this.addEvent(new LC(this.getId(),this.filterManager.getFilterTypes())),this.getEvents()}setSortingConfig(e){this.sorterManager.setConfig(e)}toggleSort(e){let i=this.fieldCollection.getField(e);return this.sorterManager.toggle(i),this.calculateSource(),this.sorterManager.getAll()}setSortOrder(e,i){let t=this.fieldCollection.getField(e);return this.sorterManager.setSortOrder(t,i),this.calculateSource(),this.sorterManager.getAll()}setFilterConfig(e){this.filterManager.getSettings().setFilterConfig(e)}setQuickFiltersConfig(e){this.filterManager.getSettings().setQuickFiltersConfig(e)}toggleFilter(e,i,t){return this.fieldCollection.getField(e)===void 0?[]:(this.calculateSource(),[])}addFilter(e,i,t){this.filterManager.add(e,i,t);let r=this.fieldCollection.getFieldsAsMap(),o=this.filterManager.getAllActiveFilters(r);this.addEvent(new BC(this.getId(),o)),this.calculateSource()}removeAllFilters(){this.filterManager.removeAll(),this.addEvent(new VC(this.getId())),this.calculateSource()}removeFilter(e){this.filterManager.remove(e);let i=this.fieldCollection.getFieldsAsMap(),t=this.filterManager.getAllActiveFilters(i);this.addEvent(new zC(this.getId(),t)),this.calculateSource()}setSearchingConfig(e){this.filterManager.getSettings().setSearchingConfig(e)}addSearchPhrase(e){let i=this.fieldCollection.getAllFields();return this.searchManager.addSearchPhrase(i,e),this.calculateSource(),[]}removeSearchPhrase(){return this.searchManager.removeSearchFilters(),this.calculateSource(),[]}selectAllUniqueFilter(e){this.uniqueFilterManager.selectAll(e),this.addEvent(new WC(this.getId())),this.generateCalculateUniqueValuesAggregateEvent(),this.calculateSource()}selectUniqueFilter(e,i){this.uniqueFilterManager.select(e,i),this.addEvent(new UC(this.getId())),this.generateCalculateUniqueValuesAggregateEvent(),this.calculateSource()}unselectAllUniqueFilter(e){this.uniqueFilterManager.unselectAll(e),this.addEvent(new GC(this.getId())),this.generateCalculateUniqueValuesAggregateEvent(),this.calculateSource()}unselectUniqueFilter(e,i){this.uniqueFilterManager.unselect(e,i),this.addEvent(new $C(this.getId())),this.generateCalculateUniqueValuesAggregateEvent(),this.calculateSource()}calculateSource(){if(!this.sourceManager.getOrigin()||!this.pagingManager)return;this.sourceManager.setEntities(this.sourceManager.getOrigin()),this.sourceManager.setEntities(this.filterManager.filter(this.sourceManager.getEntities(),this.fieldCollection.getFieldsAsMap()));let e=this.searchManager.search(this.sourceManager.getEntities());this.sourceManager.setEntities(e);let i=this.sorterManager.sort(this.sourceManager.getEntities());this.sourceManager.setEntities(i),this.sourceManager.setPreparedEntities(),this.pagingManager.setSourceSize(this.sourceManager.getPreparedEntities().length),this.addEvent(new OC(this.getId(),i)),this.summariesManager.calculate(this.fieldCollection.getAllFields(),this.sourceManager.getEntities()).forEach(r=>{this.addEvent(r)}),this.sourceManager.setEntities(this.pagingManager.sample(this.sourceManager.getEntities())),this.verticalFormation.setSourceSize(this.sourceManager.getEntities().length),this.calculateSourceBasedOnVirtualScroll()}calculateSourceBasedOnVirtualScroll(){if(this.verticalFormation.isEnabled()){let e=this.verticalFormation.getRange();this.sourceManager.setSlicedEntities(this.sourceManager.getEntities().slice(e.getStart(),e.getEnd()))}else this.sourceManager.setSlicedEntities(this.sourceManager.getEntities())}initTheme(){let e=Nf.DEFAULT_THEME;this.setTheme(e)}calculateUniqueValues(){let e=this.fieldCollection.getAllFields(),i=this.sourceManager.getOrigin();this.uniqueFilterManager.calculateAll(i,e),this.generateCalculateUniqueValuesAggregateEvent()}generateCalculateUniqueValuesAggregateEvent(){this.addEvent(new HC(this.getId(),this.uniqueFilterManager.getAll(this.fieldCollection.getAllFields())))}generateSelectedRowChangedEvent(){this.addEvent(new qC(this.getId(),this.sourceManager.getFormation().getSelectedItemIds().map(e=>e.toString()),this.sourceManager.getFormation().isAllSelected(),this.sourceManager.getFormation().isAllUnselected()))}},QC=class{sorterId;columnId;field;rank=1;direction;constructor(e,i,t=!0){this.sorterId=e,this.field=i,this.direction=t}getId(){return this.sorterId}getRank(){return this.rank}getField(){return this.field}hasDirection(){return this.direction}changeDirection(){this.direction=!this.direction}setDirection(e){this.direction=e}sort(e){return e.length===0?e:e.sort((i,t)=>this.field.sort(i,t,this.direction))}},KC=class{sorterId;constructor(e){this.sorterId=e}getId(){return this.sorterId}},XC=class{enabled;multi;sorters=new Map;constructor(e=!1,i=!1){this.enabled=e,this.multi=i}setConfig(e){e&&e.enabled!==void 0&&e.enabled!==null&&(this.enabled=e.enabled),e&&e.multiSorting!==void 0&&e.multiSorting!==null&&(this.multi=e.multiSorting,this.sorters.clear())}toggle(e){let i=e.getId(),t=this.sorters.get(i.getId());t?t.hasDirection()?t.changeDirection():this.delete(i):this.add(e)}setSortOrder(e,i){let t=e.getId(),r=this.sorters.get(t.getId());if(i===Wt.NONE)this.delete(t);else if(i===Wt.ASC||i===Wt.DESC){this.delete(t);let o=i===Wt.ASC;this.add(e,o)}}add(e,i=!0){this.addSorter(e.getId(),new QC(new KC(Oo.generate()),e,i))}addSorter(e,i){this.multi||this.sorters.clear(),this.sorters.set(e.getId(),i)}delete(e){this.sorters.delete(e.getId())}update(){}sort(e){let i=this.getAll(),t=Array.from(e);for(let r of i)t=r.sort(t);return t}getAll(){return this.enabled?Array.from(this.sorters).map(e=>e[1]).sort((e,i)=>e.getRank()-i.getRank()).reverse():[]}},ZC=class{id;value;displayValue;enabled;constructor(e,i,t,r){this.id=e,this.value=i,this.displayValue=t,this.enabled=r}getId(){return this.id}getValue(){return this.value}getDisplayValue(){return this.displayValue}isEnabled(){return this.enabled}isDisabled(){return!this.enabled}select(){this.enabled=!0}unselect(){this.enabled=!1}},JC=class{id;constructor(e){this.id=e}toString(){return this.id}equals(e){return e.toString()===this.id}},DU=(()=>{class n{static index=0;static generate(){return n.index+=1,new JC(`${n.index}`)}}return n})(),eI=class{values=[];allSelected;allDisabled;constructor(e,i){for(let t of e)this.values.push(new ZC(DU.generate(),t,i.getDisplayValue(t),!0));this.calculateAllSelected(),this.calculateAllDisabled()}getAll(){return this.values}isAllSelected(){return this.allSelected}isAllDisabled(){return this.allDisabled}getNotSelected(){return this.values.filter(e=>e.isDisabled())}selectAll(){this.values.forEach(e=>{e.select()}),this.allSelected=!0,this.allDisabled=!1}select(e){this.values.filter(i=>i.getId().equals(e)).forEach(i=>{i.select()}),this.calculateAllSelected(),this.calculateAllDisabled()}unselectAll(){this.values.forEach(e=>{e.unselect()}),this.allSelected=!1,this.allDisabled=!0}unselect(e){this.values.filter(i=>i.getId().equals(e)).forEach(i=>{i.unselect()}),this.calculateAllSelected(),this.calculateAllDisabled()}calculateAllSelected(){this.allSelected=!this.values.some(e=>e.isDisabled())}calculateAllDisabled(){this.allDisabled=!this.values.some(e=>e.isEnabled())}},tI=class{uniqueValueMap=new kc;calculate(e,i){let t=i.getId();this.uniqueValueMap.find(t).ifEmpty(()=>{let o=new Set;for(let u of e)o.add(i.getValue(u));let s=Array.from(o.values()).sort((u,b)=>i.getField().sort(u,b)),a=new eI(s,i);this.uniqueValueMap.set(i.getId(),a)})}calculateAll(e,i){for(let t of i)this.calculate(e,t)}filterAll(e,i){let t=e;for(let r of i)t=this.filter(t,r);return t}filter(e,i){let t=[];return this.uniqueValueMap.find(i.getId()).ifPresent(r=>{r.isAllSelected()?t=e:r.isAllDisabled()?t=[]:t=e.filter(o=>{for(let s of r.getNotSelected())if(i.getField().equals(o,s.getValue()))return!1;return!0})}),t}selectAll(e){this.uniqueValueMap.find(e).ifPresent(i=>{i.selectAll()})}select(e,i){this.uniqueValueMap.find(e).ifPresent(t=>{t.select(i)})}unselectAll(e){this.uniqueValueMap.find(e).ifPresent(i=>{i.unselectAll()})}unselect(e,i){this.uniqueValueMap.find(e).ifPresent(t=>{t.unselect(i)})}getAll(e){let i=new Map;for(let t of e)this.getValues(t).ifPresent(r=>{i.set(t.getId().toString(),r)});return i}getValues(e){return this.uniqueValueMap.find(e.getId()).map(i=>i.getAll())}},HM=(()=>{class n extends Ds{pagingAggregateFactory;sourceManagerFactory;verticalFormationFactory;summariesManagerFactory;filterManagerFactory;searchManagerFactory;fieldCollectionFactory;constructor(i,t,r,o,s,a,u){super(),this.pagingAggregateFactory=i,this.sourceManagerFactory=t,this.verticalFormationFactory=r,this.summariesManagerFactory=o,this.filterManagerFactory=s,this.searchManagerFactory=a,this.fieldCollectionFactory=u}static services=[VT,zM,OM,FM,Ng,Qg,AM];create(i){let t=this.pagingAggregateFactory.createDefault(),r=this.sourceManagerFactory.createDefault(i),o=this.verticalFormationFactory.create(i),s=new XC,a=this.filterManagerFactory.create(!1),u=this.fieldCollectionFactory.create(),b=this.summariesManagerFactory.create(i),y=this.searchManagerFactory.create(),I=new YC(i,t,r,o,b,s,a,new tI,y,u);return this.init(I),I}init(i){i.init()}}return n})(),mb=class extends Ms{},UM=(()=>{class n extends Ns{constructor(i){super(i)}static services=[Ku]}return n})(),$M=(()=>{class n extends mb{inMemoryStructureAggregateStore;constructor(i){super(),this.inMemoryStructureAggregateStore=i}static services=[UM];findById(i){return this.inMemoryStructureAggregateStore.findById(i)}save(i){this.inMemoryStructureAggregateStore.save(i)}}return n})(),TU=(()=>{class n{summariesEnabledArchive;constructor(i){this.summariesEnabledArchive=i}static services=[tl];forEvent(){return il}handle(i){if(i.ofMessageType("StructureCreatedEvent")){let t=i.getAggregateId();this.summariesEnabledArchive.init(t)}}}return n})(),iI=class{defineAggregate(){return{aggregateKey:Nn,createCommandHandler:PC,factory:HM,repository:$M}}registerKey(){return Nn}registerProviders(e){}registerCommandHandlers(){return[]}registerDomainEventHandler(){return[TU]}registerMultiDomainEventHandler(){return[]}},nI=class extends Re{fieldId;filterTypeId;value;constructor(e,i,t,r){super(e,{fieldId:i,filterTypeId:t,value:r},"FilterAddedEvent"),this.fieldId=i,this.filterTypeId=t,this.value=r}},MU=(()=>{class n extends ia{inMemoryStructureReadStore;structureIdToStructure=new Map;hermesStructure$=new zi(1);constructor(i){super(),this.inMemoryStructureReadStore=i}static services=[$I];getStructure(i){return this.structureIdToStructure.get(i.getId())}on(i){return this.hermesStructure$.toObservable().pipe(He(t=>{let r=i.getId();return t.has(r)}),te(t=>t.get(i.getId())))}forEvents(){return[il,Lf,_u,wu,yu,Wc,rh,Wu,Gu,Du,ju,la,Mu,da,Yu,Qu,qu,nI,Zo,eh,Ju,Xu,Zu]}subs(i){let t=i.getAggregateId();this.inMemoryStructureReadStore.getById(t).ifPresent(o=>{let s=o.getId().toString();this.structureIdToStructure.set(s,o),this.hermesStructure$.next(this.structureIdToStructure)})}}return n})(),RU=(()=>{class n extends qi{filterCommandInvoker;sourcePublisher;verticalFormationCommandInvoker;structureCellEditArchive;commandDispatcher=L.resolve(ti);constructor(i,t,r,o){super(),this.filterCommandInvoker=i,this.sourcePublisher=t,this.verticalFormationCommandInvoker=r,this.structureCellEditArchive=o}static services=[nr,dn,ba,so];create(i){this.commandDispatcher.dispatch(new hb(i))}enableVirtualScroll(i){this.verticalFormationCommandInvoker.enableVirtualScroll(i)}disableVirtualScroll(i){this.verticalFormationCommandInvoker.disableVirtualScroll(i)}scrollToTop(i){this.verticalFormationCommandInvoker.scrollToTop(i)}scrollToBottom(i){this.verticalFormationCommandInvoker.scrollToBottom(i)}scrollToIndex(i,t){this.verticalFormationCommandInvoker.scrollToIndex(i,t)}setScrollPosition(i,t){this.verticalFormationCommandInvoker.setScrollPosition(i,t)}setFilterConfig(i,t){this.filterCommandInvoker.setConfig(i,t)}setQuickFiltersConfig(i,t){this.commandDispatcher.dispatch(new Pg(t,i))}setRowHeight(i,t){this.commandDispatcher.dispatch(new _f(t,+i))}setContainerHeight(i,t){this.commandDispatcher.dispatch(new yf(t,+i))}setRowHeightBasedOnTheme(i,t){this.commandDispatcher.dispatch(new vf(t,i))}setCellEdit(i,t){this.structureCellEditArchive.next(t,new zp(i))}}return n})(),rI=class{registerProviders(e){e.provide($I),e.provide(ia,MU),e.provide(HM),e.provide(NM),e.provide(wa),e.provide(qi,RU),e.provide(al),e.provide(UM),e.provide(Ku),e.provide(mb,$M),e.provide(Rn),e.provide(so)}};function AU(){new fi(new rI,new iI).init()}var pb=class extends Qd{constructor(e){super(e,"CreateListViewCommand")}},gb=class extends Po{},fb=class extends gb{mode;constructor(e,i){super(e,"SetListViewModeCommand"),this.mode=i}getMode(){return this.mode}},bb=class extends gb{enabled;constructor(e,i){super(e,"ToggleListViewSelectorCommand"),this.enabled=i}isEnabled(){return this.enabled}},vb=class{commandDispatcher=L.resolve(ti);create(e){this.commandDispatcher.dispatch(new pb(e))}setMode(e,i){this.commandDispatcher.dispatch(new fb(i,e))}toggleSelector(e,i){this.commandDispatcher.dispatch(new bb(i,e))}},oI=class extends Fs{constructor(e){super(e)}toReadModelRootId(){return new _b(this.getId())}},_b=class extends Ps{constructor(e){super(e)}toAggregateId(){return new oI(this.getId())}},by=new _b("-1"),FU=(()=>{class n{listViewDispatcher;constructor(i){this.listViewDispatcher=i}static services=[vb];create(i=by){this.listViewDispatcher.create(i.toAggregateId())}setMode(i,t=by){this.listViewDispatcher.setMode(i,t.toAggregateId())}toggleSelector(i,t=by){this.listViewDispatcher.toggleSelector(i,t.toAggregateId())}}return n})(),ah=class extends Kr{},ch=class extends ah{mode;constructor(e,i){super(e,i,"ListViewModeSetEvent"),this.mode=i}getTheme(){return this.mode}},sI=class extends xr{constructor(){super()}onModeChange(e){return this.onEvent(e,ch)}},qI=function(n){return n.LIST="List",n.CARD="Card",n}(qI||{}),lh=class n extends tt{static default=qI.LIST;constructor(){super(n.default)}},YI=(()=>{class n extends tt{static default=!1;constructor(){super(n.default)}}return n})(),PU=(()=>{class n{listViewModeArchive;listViewSelectorArchive;constructor(i,t){this.listViewModeArchive=i,this.listViewSelectorArchive=t}static services=[lh,YI];onMode(i){return this.listViewModeArchive.on(i)}onSelector(i){return this.listViewSelectorArchive.on(i)}}return n})(),yb=class extends js{},GM=(()=>{class n extends Ns{constructor(i){super(i)}static services=[yb]}return n})(),aI=class{forCommand(){return fb}handle(e,i){let t=i.getMode();e.setMode(t)}},cI=class{forCommand(){return bb}handle(e,i){let t=i.isEnabled();e.toggleModeSelector(t)}},OU=(()=>{class n{listViewModeArchive;constructor(i){this.listViewModeArchive=i}static services=[lh];forEvent(){return ch}handle(i){i.ofMessageType("ListViewModeSetEvent")&&this.listViewModeArchive.next(i.getAggregateId(),i.getTheme())}}return n})(),wb=class extends ah{enabled;constructor(e,i){super(e,i,"ListViewSelectorToggledEvent"),this.enabled=i}isEnabled(){return this.enabled}},NU=(()=>{class n{listViewSelectorArchive;constructor(i){this.listViewSelectorArchive=i}static services=[YI];forEvent(){return wb}handle(i){i.ofMessageType("ListViewSelectorToggledEvent")&&this.listViewSelectorArchive.next(i.getAggregateId(),i.isEnabled())}}return n})(),lI=class{forCommand(){return pb}},dI=class extends ah{constructor(e){super(e,null,"ListViewCreatedEvent")}},dh=class extends Ts{},uI=class extends dh{constructor(e){super(e,"ListViewCreatedAggregateEvent")}toDomainEvent(){return new dI(this.getAggregateId())}},hI=class extends dh{mode;constructor(e,i){super(e,"ListViewModeSetAggregateEvent"),this.mode=i}toDomainEvent(){return new ch(this.getAggregateId(),this.mode)}},mI=class{enabled=null;visible=!1;constructor(){}isVisible(){return this.enabled!==null?this.enabled:this.visible}setEnabled(e){this.enabled=e}setVisible(e){this.visible=e}},pI=class extends dh{enabled;constructor(e,i){super(e,"ListViewSelectorToggledAggregateEvent"),this.enabled=i}toDomainEvent(){return new wb(this.getAggregateId(),this.enabled)}},gI=class extends Rs{mode;selectorVisibility;constructor(e){super(e,"ListViewAggregate"),this.setMode(qI.LIST),this.initSelectorVisibility()}createEvent(){return uI}setMode(e){this.mode=e,this.addEvent(new hI(this.getId(),this.mode))}toggleModeSelector(e){this.selectorVisibility.setEnabled(e),this.emitEventAfterSelectorVisibilityChange()}initSelectorVisibility(){this.selectorVisibility=new mI,this.emitEventAfterSelectorVisibilityChange()}emitEventAfterSelectorVisibilityChange(){this.addEvent(new pI(this.getId(),this.selectorVisibility.isVisible()))}},fI=class extends Ds{constructor(){super()}create(e){return new gI(e)}},bI=class extends Ms{},jU=(()=>{class n extends bI{inMemorySchemaAggregateStore;constructor(i){super(),this.inMemorySchemaAggregateStore=i}static services=[GM];findById(i){return this.inMemorySchemaAggregateStore.findById(i)}save(i){this.inMemorySchemaAggregateStore.save(i)}}return n})(),vI=class{defineAggregate(){return{aggregateKey:DT,createCommandHandler:lI,factory:fI,repository:jU}}registerKey(){return DT}registerProviders(e){e.provide(vb)}registerCommandHandlers(){return[aI,cI]}registerDomainEventHandler(){return[OU,NU]}registerMultiDomainEventHandler(){return[]}},DT="ListViewKey",_I=class{registerProviders(e){e.provide(FU),e.provide(sI),e.provide(PU),e.provide(lh),e.provide(YI),e.provide(GM),e.provide(yb)}};function LU(){new fi(new _I,new vI).init()}function VU(){return L.resolve(qi)}function BU(){return L.resolve(wa)}function zU(){return L.resolve(al)}var HU=[{provide:qi,useFactory:VU},{provide:wa,useFactory:BU},{provide:al,useFactory:zU}];function UU(){return new _a.DefaultBuilder().build()}var $U=[MM,TM],GU=[J,Sn,uo,Vn,xa,_U,Ib,g6,x6,SU,DM,jI,gU,A6,H6,K6,vU,YH,a6,d6,RI,EM,u6,iU,XH,BM,$U];var WU=[Bo,oM,JT,iM,tM,nM,xa,Ib,nU];function qU(){return L.resolve(so)}function YU(){return L.resolve(Rn)}LU();AU();var yI=class n{platformId;static HERMES_API="hermesApi";static exportDeclarations=Array.from(WU);static withConfig(e={cssClassName:"",hermesModuleConfig:{loggers:!1}}){return{ngModule:n,providers:[{provide:ew,useValue:e.cssClassName},{provide:xp,useValue:e.hermesModuleConfig.loggers},{provide:Cp,useValue:e.hermesModuleConfig.loggers},{provide:ew,useValue:"structure"},{provide:_a,useFactory:UU},nx,mh,Ys,{provide:so,useFactory:qU},{provide:Rn,useFactory:YU},HU]}}constructor(e){this.platformId=e,XD(),Fi(this.platformId)&&(JD(),window[n.HERMES_API].loggers=!1)}static \u0275fac=function(i){return new(i||n)(w(bt))};static \u0275mod=H({type:n});static \u0275inj=z({imports:[GU,Bo,Sc,Mn,Dc,eo,jo,Tc,Mc,Pc,Oc,Ac,Fc,Nc,jc,Lo,Hs,Lc,to,Rc,zs,Lo,Ib]})},QU=(()=>{class n{static PREFIX="gui-grid-";static index=0;generateId(){return n.index++,n.PREFIX+n.index}static \u0275fac=function(t){return new(t||n)};static \u0275prov=D({token:n,factory:n.\u0275fac})}return n})(),KU=[yI.withConfig({cssClassName:"grid",hermesModuleConfig:{loggers:!0}})];var XU=[QU,FT],ZU=[vi,xI],JU=[vi,xI],bi=class n{static exportDeclarations=Array.from(ZU);static elementComponents=Array.from(JU);static \u0275fac=function(i){return new(i||n)};static \u0275mod=H({type:n});static \u0275inj=z({providers:XU,imports:[KU]})};var Lt=class{constructor(e,i){this.http=e,this.baseUrl=i}getAll(){return this.http.get(this.baseUrl,{withCredentials:!0})}getById(e){let i=`${this.baseUrl}/${e}`;return this.http.get(i,{withCredentials:!0})}create(e){return this.http.post(this.baseUrl,e,{withCredentials:!0})}update(e){let i=`${this.baseUrl}`;return this.http.put(i,e,{withCredentials:!0})}delete(e){let i=`${this.baseUrl}/${e}`;return this.http.delete(i,{withCredentials:!0})}};var ho=class ho extends Ni{constructor(e,i,t){super(),this.platformId=e,this.rendererFactory=i,this.document=t,this.themeSubject=new wt(dl()),this.themeChanges$=this.themeSubject.asObservable(),this.renderer=i.createRenderer(null,null)}setTheme(e){typeof window<"u"&&localStorage.setItem("theme",e),this.updateTheme()}updateTheme(){let e=dl();switch(this.themeSubject.next(dl()),this.themeSubject.next(dl()),e){case ui.Dark:case ui.Auto:this.renderer.addClass(this.document.body,"mat-color-scheme-dark"),this.renderer.removeClass(this.document.body,"mat-color-scheme-light");break;case ui.Light:this.renderer.addClass(this.document.body,"mat-color-scheme-light"),this.renderer.removeClass(this.document.body,"mat-color-scheme-dark");break}ho.ThemeChangeSubscribers.forEach(t=>t(e));let i=this.document.documentElement;if(e===ui.Auto){let t=window.matchMedia("(prefers-color-scheme: dark)").matches?ui.Dark:ui.Light;this.renderer.setAttribute(i,"data-bs-theme",t)}else this.renderer.setAttribute(i,"data-bs-theme",e)}};ho.ThemeChangeSubscribers=new Array,ho.\u0275fac=function(i){return new(i||ho)(w(bt),w(Ba),w(ae))},ho.\u0275prov=D({token:ho,factory:ho.\u0275fac,providedIn:"root"});var si=ho,ui=function(n){return n.Dark="dark",n.Light="light",n.Auto="auto",n}(ui||{}),e8=n=>{switch(n){case ui.Dark:return ui.Dark;case ui.Light:return ui.Light;case ui.Auto:return ui.Auto;default:return}};function dl(){let n=typeof window<"u"?localStorage.getItem("theme"):"dark";return n===null?ui.Dark:e8(n)??ui.Dark}var t8=["grid"],Bn=(()=>{let e=class e{constructor(t,r,o){this.cModeService=o,this.columnMenu={enabled:!0,sort:!0,columnsManager:!1,filter:!1},this.sorting={enabled:!0,multiSorting:!0},this.loading=!1,this.autoResizeWidth=!0,this.rowDetail={enabled:!0,template:s=>`
        <div></div>`},this.paging={enabled:!0,page:1,pageSize:15,pageSizes:[5,10,15,20,25,30,35,40,45,50],pagerTop:!0,pagerBottom:!1,display:lu.ADVANCED},this.searching={enabled:!0,placeholder:"Suche"},this.maxHeight=400,this.infoPanel={enabled:!0,infoDialog:!1,columnsManager:!0,schemaManager:!0},this.titlePanel={enabled:!1,template:()=>`
        <div class='title-panel-example' >List of contract workers</div>
        `},this.theme=typeof window<"u"?localStorage.getItem("theme")==="dark"?ri.DARK:ri.FABRIC:ri.DARK,this.themeSubscription=new Ft,this.rowDetailTemplate=null,this.isCellEditable=!1,this.cellEditing={enabled:this.isCellEditable,rowEdit:(s,a,u)=>!!(u%2),cellEdit:(s,a,u)=>!!(u%5)},this.rowSelection=!0,this.onSelectedRows=s=>{},this.initData=this.fetchData,this.columns=[],this.selected=!1,this.service=t,this.columns.length==0&&(this.columns=r),this.rowDetailTemplate===null||this.rowDetailTemplate===void 0?this.rowDetail={enabled:!1}:this.rowDetail={enabled:!0,template:this.rowDetailTemplate}}safelyUnselectAll(){this.selected=!0,this.api?.getSelectedRows()!=null&&(this.api?.getSelectedRows().length??!1)&&this.selected&&(this.api?.unselectAll(),this.selected=!1)}get api(){return this.mainGrid.api}set source(t){this.api.setSource(t)}get selectedRows(){return this.api.getSelectedRows()}ngOnInit(){let t=this.cModeService.themeChanges$.subscribe(r=>{this.theme=r==="dark"?ri.DARK:ri.FABRIC});this.themeSubscription.add(t),this.initData()}ngOnDestroy(){this.themeSubscription.unsubscribe()}fetchData(){this.service.getAll().subscribe({next:t=>{this.source=t,this.loading=!1},error:t=>{}})}};e.\u0275fac=function(r){return new(r||e)(l(Lt),l(Array),l(si))},e.\u0275cmp=k({type:e,selectors:[["app-base-table"]],viewQuery:function(r,o){if(r&1&&$(t8,7),r&2){let s;V(s=B())&&(o.mainGrid=s.first)}},inputs:{rowDetailTemplate:"rowDetailTemplate",isCellEditable:"isCellEditable",cellEditing:"cellEditing",rowSelection:"rowSelection",onSelectedRows:"onSelectedRows",initData:"initData",columns:"columns"},standalone:!0,features:[oe],decls:2,vars:14,consts:[["grid",""],[3,"selectedRows","columns","columnMenu","sorting","loading","rowSelection","rowDetail","autoResizeWidth","paging","searching","cellEditing","virtualScroll","infoPanel","titlePanel","theme"]],template:function(r,o){if(r&1){let s=Y();f(0,"gui-grid",1,0),E("selectedRows",function(u){return A(s),F(o.onSelectedRows(u))}),v()}r&2&&g("columns",o.columns)("columnMenu",o.columnMenu)("sorting",o.sorting)("loading",o.loading)("rowSelection",o.rowSelection)("rowDetail",o.rowDetail)("autoResizeWidth",o.autoResizeWidth)("paging",o.paging)("searching",o.searching)("cellEditing",o.cellEditing)("virtualScroll",!0)("infoPanel",o.infoPanel)("titlePanel",o.titlePanel)("theme",o.theme)},dependencies:[J,xt,bi,vi]});let n=e;return n})();var Sb=(()=>{let e=class e extends Lt{constructor(t,r){super(t,r.apiRoute.moduleOfUser)}deleteByModuleGroupId(t,r){let o=`${this.baseUrl}?moduleId=${t}&userId=${r}`;return this.http.delete(o,{withCredentials:!0})}getByUsername(t){return We(this,null,function*(){let r=`${this.baseUrl}?username=${t}`;return yield Di(this.http.get(r,{withCredentials:!0}))})}};e.\u0275fac=function(r){return new(r||e)(w(Tt),w(Ct))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Db=(()=>{let e=class e extends Lt{constructor(t,r){super(t,r.apiRoute.groupOfUser)}deleteByGroupUserId(t,r){let o=`${this.baseUrl}?groupId=${t}&userId=${r}`;return this.http.delete(o,{withCredentials:!0})}getAll(t=!1,r=!1){let o=new Pi;return t&&(o=o.set("withUser",t)),r&&(o=o.set("withGroup",r)),this.http.get(this.baseUrl,{params:o,withCredentials:!0})}getByUsername(t){return We(this,null,function*(){let r=`${this.baseUrl}?username=${t}`;return yield Di(this.http.get(r,{withCredentials:!0}))})}};e.\u0275fac=function(r){return new(r||e)(w(Tt),w(Ct))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Mr=(()=>{let e=class e extends Lt{constructor(t,r){super(t,r.apiRoute.user)}getByModuleId(t,r=!0){let o=`${this.baseUrl}/ByModuleId/${t}?assigned=${r}`;return this.http.get(o,{withCredentials:!0})}getByGroupId(t,r=!0){let o=`${this.baseUrl}/ByGroupId/${t}?assigned=${r}`;return this.http.get(o,{withCredentials:!0})}createByDir(t){return this.http.post(`${this.baseUrl}/byDir`,t,{withCredentials:!0})}};e.\u0275fac=function(r){return new(r||e)(w(Tt),w(Ct))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Rr=(()=>{let e=class e extends Bn{constructor(t,r,o,s){super(o,$e.columnNames.user.basic,s),this.mosService=t,this.gosService=r}fetchDataByModuleId(t,r=!0){this.service.getByModuleId(t,r).subscribe({next:o=>{this.source=o},error:o=>{}})}fetchDataByGroupId(t,r=!0){this.service.getByGroupId(t,r).subscribe({next:o=>{this.source=o},error:o=>{}})}createModuleOfUsers(t,r){return We(this,null,function*(){let o=r.filter(s=>s.id&&s.id!=null).map(s=>this.mosService.create({moduleId:t,userId:s.id??-1,addedWho:"DEFAULT"}).toPromise());return Promise.all(o)})}createGroupOfUsers(t,r){return We(this,null,function*(){let o=r.filter(s=>s.id&&s.id!=null).map(s=>this.gosService.create({groupId:t,userId:s.id??-1,addedWho:"DEFAULT"}).toPromise());return Promise.all(o)})}deleteModuleOfUsers(t,r){return We(this,null,function*(){let o=r.filter(s=>s.id).map(s=>this.mosService.deleteByModuleGroupId(t,s.id??-1).toPromise());try{let s=yield Promise.all(o)}catch{}})}deleteGroupOfUsers(t,r){return We(this,null,function*(){let o=r.filter(s=>s.id).map(s=>this.gosService.deleteByGroupUserId(t,s.id??-1).toPromise());try{let s=yield Promise.all(o)}catch{}})}};e.\u0275fac=function(r){return new(r||e)(l(Sb),l(Db),l(Mr),l(si))},e.\u0275cmp=k({type:e,selectors:[["app-user-table"]],standalone:!0,features:[R,oe],decls:2,vars:14,consts:[["grid",""],[3,"selectedRows","columns","columnMenu","sorting","loading","rowSelection","rowDetail","autoResizeWidth","paging","searching","cellEditing","virtualScroll","infoPanel","titlePanel","theme"]],template:function(r,o){if(r&1){let s=Y();f(0,"gui-grid",1,0),E("selectedRows",function(u){return A(s),F(o.onSelectedRows(u))}),v()}r&2&&g("columns",o.columns)("columnMenu",o.columnMenu)("sorting",o.sorting)("loading",o.loading)("rowSelection",o.rowSelection)("rowDetail",o.rowDetail)("autoResizeWidth",o.autoResizeWidth)("paging",o.paging)("searching",o.searching)("cellEditing",o.cellEditing)("virtualScroll",!0)("infoPanel",o.infoPanel)("titlePanel",o.titlePanel)("theme",o.theme)},dependencies:[J,xt,bi,vi]});let n=e;return n})();var ZI=["*"];function r8(n,e){n&1&&Oe(0)}var o8=["tabListContainer"],s8=["tabList"],a8=["tabListInner"],c8=["nextPaginator"],l8=["previousPaginator"],d8=n=>({animationDuration:n}),u8=(n,e)=>({value:n,params:e});function h8(n,e){}var m8=["tabBodyWrapper"],p8=["tabHeader"];function g8(n,e){}function f8(n,e){if(n&1&&j(0,g8,0,0,"ng-template",12),n&2){let i=x().$implicit;g("cdkPortalOutlet",i.templateLabel)}}function b8(n,e){if(n&1&&T(0),n&2){let i=x().$implicit;ke(i.textLabel)}}function v8(n,e){if(n&1){let i=Y();f(0,"div",7,2),E("click",function(){let r=A(i),o=r.$implicit,s=r.$index,a=x(),u=wi(1);return F(a._handleClick(o,u,s))})("cdkFocusChange",function(r){let o=A(i).$index,s=x();return F(s._tabFocusChanged(r,o))}),C(2,"span",8)(3,"div",9),f(4,"span",10)(5,"span",11),j(6,f8,1,1,null,12)(7,b8,1,1),v()()()}if(n&2){let i=e.$implicit,t=e.$index,r=wi(1),o=x();Ri(i.labelClass),X("mdc-tab--active",o.selectedIndex===t),g("id",o._getTabLabelId(t))("disabled",i.disabled)("fitInkBarToContent",o.fitInkBarToContent),Me("tabIndex",o._getTabIndex(t))("aria-posinset",t+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(t))("aria-selected",o.selectedIndex===t)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),p(3),g("matRippleTrigger",r)("matRippleDisabled",i.disabled||o.disableRipple),p(3),nt(6,i.templateLabel?6:7)}}function _8(n,e){n&1&&Oe(0)}function y8(n,e){if(n&1){let i=Y();f(0,"mat-tab-body",13),E("_onCentered",function(){A(i);let r=x();return F(r._removeTabBodyWrapperHeight())})("_onCentering",function(r){A(i);let o=x();return F(o._setTabBodyWrapperHeight(r))}),v()}if(n&2){let i=e.$implicit,t=e.$index,r=x();Ri(i.bodyClass),X("mat-mdc-tab-body-active",r.selectedIndex===t),g("id",r._getTabContentId(t))("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),Me("tabindex",r.contentTabIndex!=null&&r.selectedIndex===t?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(t))("aria-hidden",r.selectedIndex!==t)}}var w8=new Z("MatTabContent"),x8=(()=>{let e=class e{constructor(t){this.template=t}};e.\u0275fac=function(r){return new(r||e)(l(Be))},e.\u0275dir=G({type:e,selectors:[["","matTabContent",""]],standalone:!0,features:[_e([{provide:w8,useExisting:e}])]});let n=e;return n})(),C8=new Z("MatTabLabel"),KM=new Z("MAT_TAB"),I8=(()=>{let e=class e extends DS{constructor(t,r,o){super(t,r),this._closestTab=o}};e.\u0275fac=function(r){return new(r||e)(l(Be),l(Ot),l(KM,8))},e.\u0275dir=G({type:e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],standalone:!0,features:[_e([{provide:C8,useExisting:e}]),R]});let n=e;return n})(),XM=new Z("MAT_TAB_GROUP"),Ii=(()=>{let e=class e{get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}constructor(t,r){this._viewContainerRef=t,this._closestTabGroup=r,this.disabled=!1,this._explicitContent=void 0,this.textLabel="",this._contentPortal=null,this._stateChanges=new ue,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new zr(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&t._closestTab===this&&(this._templateLabel=t)}};e.\u0275fac=function(r){return new(r||e)(l(Ot),l(XM,8))},e.\u0275cmp=k({type:e,selectors:[["mat-tab"]],contentQueries:function(r,o,s){if(r&1&&(Zt(s,I8,5),Zt(s,x8,7,Be)),r&2){let a;V(a=B())&&(o.templateLabel=a.first),V(a=B())&&(o._explicitContent=a.first)}},viewQuery:function(r,o){if(r&1&&$(Be,7),r&2){let s;V(s=B())&&(o._implicitContent=s.first)}},hostAttrs:["hidden",""],inputs:{disabled:[U.HasDecoratorInputTransform,"disabled","disabled",Ce],textLabel:[U.None,"label","textLabel"],ariaLabel:[U.None,"aria-label","ariaLabel"],ariaLabelledby:[U.None,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],standalone:!0,features:[_e([{provide:KM,useExisting:e}]),at,re,oe],ngContentSelectors:ZI,decls:1,vars:0,template:function(r,o){r&1&&(Ke(),j(0,r8,1,0,"ng-template"))},encapsulation:2});let n=e;return n})(),QI="mdc-tab-indicator--active",YM="mdc-tab-indicator--no-transition",KI=class{constructor(e){this._items=e}hide(){this._items.forEach(e=>e.deactivateInkBar())}alignToElement(e){let i=this._items.find(r=>r.elementRef.nativeElement===e),t=this._currentItem;if(i!==t&&(t?.deactivateInkBar(),i)){let r=t?.elementRef.nativeElement.getBoundingClientRect?.();i.activateInkBar(r),this._currentItem=i}}},E8=(()=>{let e=class e{constructor(){this._elementRef=M(S),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(t){this._fitToContent!==t&&(this._fitToContent=t,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(t){let r=this._elementRef.nativeElement;if(!t||!r.getBoundingClientRect||!this._inkBarContentElement){r.classList.add(QI);return}let o=r.getBoundingClientRect(),s=t.width/o.width,a=t.left-o.left;r.classList.add(YM),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${s})`),r.getBoundingClientRect(),r.classList.remove(YM),r.classList.add(QI),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(QI)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let t=this._elementRef.nativeElement.ownerDocument||document,r=this._inkBarElement=t.createElement("span"),o=this._inkBarContentElement=t.createElement("span");r.className="mdc-tab-indicator",o.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",r.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let t=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;t.appendChild(this._inkBarElement)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=G({type:e,inputs:{fitInkBarToContent:[U.HasDecoratorInputTransform,"fitInkBarToContent","fitInkBarToContent",Ce]},features:[at]});let n=e;return n})();var ZM=(()=>{let e=class e extends E8{constructor(t){super(),this.elementRef=t,this.disabled=!1}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}};e.\u0275fac=function(r){return new(r||e)(l(S))},e.\u0275dir=G({type:e,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(r,o){r&2&&(Me("aria-disabled",!!o.disabled),X("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:[U.HasDecoratorInputTransform,"disabled","disabled",Ce]},standalone:!0,features:[at,R]});let n=e;return n})(),QM=In({passive:!0}),k8=650,S8=100,D8=(()=>{let e=class e{get selectedIndex(){return this._selectedIndex}set selectedIndex(t){let r=isNaN(t)?0:t;this._selectedIndex!=r&&(this._selectedIndexChanged=!0,this._selectedIndex=r,this._keyManager&&this._keyManager.updateActiveItem(r))}constructor(t,r,o,s,a,u,b){this._elementRef=t,this._changeDetectorRef=r,this._viewportRuler=o,this._dir=s,this._ngZone=a,this._platform=u,this._animationMode=b,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new ue,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new ue,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Q,this.indexFocused=new Q,a.runOutsideAngular(()=>{Ti(t.nativeElement,"mouseleave").pipe(ce(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){Ti(this._previousPaginator.nativeElement,"touchstart",QM).pipe(ce(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Ti(this._nextPaginator.nativeElement,"touchstart",QM).pipe(ce(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){let t=this._dir?this._dir.change:se("ltr"),r=this._viewportRuler.change(150),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Vm(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(gt(1)).subscribe(o),yi(t,r,this._items.changes,this._itemsResized()).pipe(ce(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),o()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(s=>{this.indexFocused.emit(s),this._setTabFocus(s)})}_itemsResized(){return typeof ResizeObserver!="function"?bn:this._items.changes.pipe(tn(this._items),mi(t=>new ht(r=>this._ngZone.runOutsideAngular(()=>{let o=new ResizeObserver(s=>r.next(s));return t.forEach(s=>o.observe(s.elementRef.nativeElement)),()=>{o.disconnect()}}))),jr(1),Je(t=>t.some(r=>r.contentRect.width>0&&r.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!_r(t))switch(t.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let r=this._items.get(this.focusIndex);r&&!r.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t))}break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){let t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){!this._isValidIndex(t)||this.focusIndex===t||!this._keyManager||this._keyManager.setActiveItem(t)}_isValidIndex(t){return this._items?!!this._items.toArray()[t]:!0}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();let r=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?r.scrollLeft=0:r.scrollLeft=r.scrollWidth-r.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let t=this.scrollDistance,r=this._getLayoutDirection()==="ltr"?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(r)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){let r=this._tabListContainer.nativeElement.offsetWidth,o=(t=="before"?-1:1)*r/3;return this._scrollTo(this._scrollDistance+o)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;let r=this._items?this._items.toArray()[t]:null;if(!r)return;let o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:s,offsetWidth:a}=r.elementRef.nativeElement,u,b;this._getLayoutDirection()=="ltr"?(u=s,b=u+a):(b=this._tabListInner.nativeElement.offsetWidth-s,u=b-a);let y=this.scrollDistance,I=this.scrollDistance+o;u<y?this.scrollDistance-=y-u:b>I&&(this.scrollDistance+=Math.min(b-I,u-y))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let t=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){let t=this._tabListInner.nativeElement.scrollWidth,r=this._tabListContainer.nativeElement.offsetWidth;return t-r||0}_alignInkBarToSelectedTab(){let t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,r=t?t.elementRef.nativeElement:null;r?this._inkBar.alignToElement(r):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,r){r&&r.button!=null&&r.button!==0||(this._stopInterval(),$n(k8,S8).pipe(ce(yi(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:o,distance:s}=this._scrollHeader(t);(s===0||s>=o)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let r=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(r,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:r,distance:this._scrollDistance}}};e.\u0275fac=function(r){return new(r||e)(l(S),l(ee),l(ys),l(xi,8),l(he),l(Le),l(lt,8))},e.\u0275dir=G({type:e,inputs:{disablePagination:[U.HasDecoratorInputTransform,"disablePagination","disablePagination",Ce],selectedIndex:[U.HasDecoratorInputTransform,"selectedIndex","selectedIndex",Lr]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[at]});let n=e;return n})(),T8=(()=>{let e=class e extends D8{constructor(t,r,o,s,a,u,b){super(t,r,o,s,a,u,b),this.disableRipple=!1}ngAfterContentInit(){this._inkBar=new KI(this._items),super.ngAfterContentInit()}_itemSelected(t){t.preventDefault()}};e.\u0275fac=function(r){return new(r||e)(l(S),l(ee),l(ys),l(xi,8),l(he),l(Le),l(lt,8))},e.\u0275cmp=k({type:e,selectors:[["mat-tab-header"]],contentQueries:function(r,o,s){if(r&1&&Zt(s,ZM,4),r&2){let a;V(a=B())&&(o._items=a)}},viewQuery:function(r,o){if(r&1&&($(o8,7),$(s8,7),$(a8,7),$(c8,5),$(l8,5)),r&2){let s;V(s=B())&&(o._tabListContainer=s.first),V(s=B())&&(o._tabList=s.first),V(s=B())&&(o._tabListInner=s.first),V(s=B())&&(o._nextPaginator=s.first),V(s=B())&&(o._previousPaginator=s.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(r,o){r&2&&X("mat-mdc-tab-header-pagination-controls-enabled",o._showPaginationControls)("mat-mdc-tab-header-rtl",o._getLayoutDirection()=="rtl")},inputs:{disableRipple:[U.HasDecoratorInputTransform,"disableRipple","disableRipple",Ce]},standalone:!0,features:[at,R,oe],ngContentSelectors:ZI,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled","disabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled","disabled"]],template:function(r,o){if(r&1){let s=Y();Ke(),f(0,"button",5,0),E("click",function(){return A(s),F(o._handlePaginatorClick("before"))})("mousedown",function(u){return A(s),F(o._handlePaginatorPress("before",u))})("touchend",function(){return A(s),F(o._stopInterval())}),C(2,"div",6),v(),f(3,"div",7,1),E("keydown",function(u){return A(s),F(o._handleKeydown(u))}),f(5,"div",8,2),E("cdkObserveContent",function(){return A(s),F(o._onContentChanges())}),f(7,"div",9,3),Oe(9),v()()(),f(10,"button",10,4),E("mousedown",function(u){return A(s),F(o._handlePaginatorPress("after",u))})("click",function(){return A(s),F(o._handlePaginatorClick("after"))})("touchend",function(){return A(s),F(o._stopInterval())}),C(12,"div",6),v()}r&2&&(X("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),g("matRippleDisabled",o._disableScrollBefore||o.disableRipple)("disabled",o._disableScrollBefore||null),p(3),X("_mat-animation-noopable",o._animationMode==="NoopAnimations"),p(7),X("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),g("matRippleDisabled",o._disableScrollAfter||o.disableRipple)("disabled",o._disableScrollAfter||null))},dependencies:[$r,jS],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height);border-top-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2});let n=e;return n})(),M8=new Z("MAT_TABS_CONFIG"),R8={translateTab:Kh("translateTab",[$a("center, void, left-origin-center, right-origin-center",Br({transform:"none"})),$a("left",Br({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),$a("right",Br({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Ga("* => left, * => right, left => center, right => center",Ua("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Ga("void => left-origin-center",[Br({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),Ua("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Ga("void => right-origin-center",[Br({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),Ua("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},A8=(()=>{let e=class e extends Hr{constructor(t,r,o,s){super(t,r,s),this._host=o,this._centeringSub=Ft.EMPTY,this._leavingSub=Ft.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(tn(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(l(dt),l(Ot),l(Pt(()=>JM)),l(ae))},e.\u0275dir=G({type:e,selectors:[["","matTabBodyHost",""]],standalone:!0,features:[R]});let n=e;return n})(),JM=(()=>{let e=class e{set position(t){this._positionIndex=t,this._computePositionAnimationState()}constructor(t,r,o){this._elementRef=t,this._dir=r,this._dirChangeSubscription=Ft.EMPTY,this._translateTabComplete=new ue,this._onCentering=new Q,this._beforeCentering=new Q,this._afterLeavingCenter=new Q,this._onCentered=new Q(!0),this.animationDuration="500ms",this.preserveContent=!1,r&&(this._dirChangeSubscription=r.change.subscribe(s=>{this._computePositionAnimationState(s),o.markForCheck()})),this._translateTabComplete.pipe(ds((s,a)=>s.fromState===a.fromState&&s.toState===a.toState)).subscribe(s=>{this._isCenterPosition(s.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(s.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){this._position=="center"&&this.origin!=null&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){let r=this._isCenterPosition(t.toState);this._beforeCentering.emit(r),r&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(t){return t=="center"||t=="left-origin-center"||t=="right-origin-center"}_computePositionAnimationState(t=this._getLayoutDirection()){this._positionIndex<0?this._position=t=="ltr"?"left":"right":this._positionIndex>0?this._position=t=="ltr"?"right":"left":this._position="center"}_computePositionFromOrigin(t){let r=this._getLayoutDirection();return r=="ltr"&&t<=0||r=="rtl"&&t>0?"left-origin-center":"right-origin-center"}};e.\u0275fac=function(r){return new(r||e)(l(S),l(xi,8),l(ee))},e.\u0275cmp=k({type:e,selectors:[["mat-tab-body"]],viewQuery:function(r,o){if(r&1&&$(Hr,5),r&2){let s;V(s=B())&&(o._portalHost=s.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:[U.None,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},standalone:!0,features:[oe],decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(r,o){if(r&1){let s=Y();f(0,"div",1,0),E("@translateTab.start",function(u){return A(s),F(o._onTranslateTabStarted(u))})("@translateTab.done",function(u){return A(s),F(o._translateTabComplete.next(u))}),j(2,h8,0,0,"ng-template",2),v()}r&2&&g("@translateTab",zl(3,u8,o._position,zt(1,d8,o.animationDuration)))},dependencies:[A8,j0],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[R8.translateTab]}});let n=e;return n})(),F8=0,P8=!0,Qi=(()=>{let e=class e{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(t){this._fitInkBarToContent=t,this._changeDetectorRef.markForCheck()}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=isNaN(t)?null:t}get animationDuration(){return this._animationDuration}set animationDuration(t){let r=t+"";this._animationDuration=/^\d+$/.test(r)?t+"ms":r}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(t){this._contentTabIndex=isNaN(t)?null:t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){if(!P8)throw new Error("mat-tab-group background color must be set through the Sass theming API");let r=this._elementRef.nativeElement.classList;r.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),t&&r.add("mat-tabs-with-background",`mat-background-${t}`),this._backgroundColor=t}constructor(t,r,o,s){this._elementRef=t,this._changeDetectorRef=r,this._animationMode=s,this._tabs=new Fl,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=Ft.EMPTY,this._tabLabelSubscription=Ft.EMPTY,this._fitInkBarToContent=!1,this.stretchTabs=!0,this.dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.disablePagination=!1,this.disableRipple=!1,this.preserveContent=!1,this.selectedIndexChange=new Q,this.focusChange=new Q,this.animationDone=new Q,this.selectedTabChange=new Q(!0),this._isServer=!M(Le).isBrowser,this._groupId=F8++,this.animationDuration=o&&o.animationDuration?o.animationDuration:"500ms",this.disablePagination=o&&o.disablePagination!=null?o.disablePagination:!1,this.dynamicHeight=o&&o.dynamicHeight!=null?o.dynamicHeight:!1,o?.contentTabIndex!=null&&(this.contentTabIndex=o.contentTabIndex),this.preserveContent=!!o?.preserveContent,this.fitInkBarToContent=o&&o.fitInkBarToContent!=null?o.fitInkBarToContent:!1,this.stretchTabs=o&&o.stretchTabs!=null?o.stretchTabs:!0}ngAfterContentChecked(){let t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){let r=this._selectedIndex==null;if(!r){this.selectedTabChange.emit(this._createChangeEvent(t));let o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,s)=>o.isActive=s===t),r||(this.selectedIndexChange.emit(t),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((r,o)=>{r.position=o-t,this._selectedIndex!=null&&r.position==0&&!r.origin&&(r.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let t=this._clampTabIndex(this._indexToSelect);if(t===this._selectedIndex){let r=this._tabs.toArray(),o;for(let s=0;s<r.length;s++)if(r[s].isActive){this._indexToSelect=this._selectedIndex=s,this._lastFocusedTabIndex=null,o=r[s];break}!o&&r[t]&&Promise.resolve().then(()=>{r[t].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(t))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(tn(this._allTabs)).subscribe(t=>{this._tabs.reset(t.filter(r=>r._closestTabGroup===this||!r._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(t){let r=this._tabHeader;r&&(r.focusIndex=t)}_focusChanged(t){this._lastFocusedTabIndex=t,this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){let r=new XI;return r.index=t,this._tabs&&this._tabs.length&&(r.tab=this._tabs.toArray()[t]),r}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=yi(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this.dynamicHeight||!this._tabBodyWrapperHeight)return;let r=this._tabBodyWrapper.nativeElement;r.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(r.style.height=t+"px")}_removeTabBodyWrapperHeight(){let t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,r,o){r.focusIndex=o,t.disabled||(this.selectedIndex=o)}_getTabIndex(t){let r=this._lastFocusedTabIndex??this.selectedIndex;return t===r?0:-1}_tabFocusChanged(t,r){t&&t!=="mouse"&&t!=="touch"&&(this._tabHeader.focusIndex=r)}};e.\u0275fac=function(r){return new(r||e)(l(S),l(ee),l(M8,8),l(lt,8))},e.\u0275cmp=k({type:e,selectors:[["mat-tab-group"]],contentQueries:function(r,o,s){if(r&1&&Zt(s,Ii,5),r&2){let a;V(a=B())&&(o._allTabs=a)}},viewQuery:function(r,o){if(r&1&&($(m8,5),$(p8,5)),r&2){let s;V(s=B())&&(o._tabBodyWrapper=s.first),V(s=B())&&(o._tabHeader=s.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:10,hostBindings:function(r,o){r&2&&(Ri("mat-"+(o.color||"primary")),Qe("--mat-tab-animation-duration",o.animationDuration),X("mat-mdc-tab-group-dynamic-height",o.dynamicHeight)("mat-mdc-tab-group-inverted-header",o.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",o.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[U.HasDecoratorInputTransform,"fitInkBarToContent","fitInkBarToContent",Ce],stretchTabs:[U.HasDecoratorInputTransform,"mat-stretch-tabs","stretchTabs",Ce],dynamicHeight:[U.HasDecoratorInputTransform,"dynamicHeight","dynamicHeight",Ce],selectedIndex:[U.HasDecoratorInputTransform,"selectedIndex","selectedIndex",Lr],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[U.HasDecoratorInputTransform,"contentTabIndex","contentTabIndex",Lr],disablePagination:[U.HasDecoratorInputTransform,"disablePagination","disablePagination",Ce],disableRipple:[U.HasDecoratorInputTransform,"disableRipple","disableRipple",Ce],preserveContent:[U.HasDecoratorInputTransform,"preserveContent","preserveContent",Ce],backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],standalone:!0,features:[_e([{provide:XM,useExisting:e}]),at,oe],ngContentSelectors:ZI,decls:9,vars:6,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","class","content","position","origin","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","id","content","position","origin","animationDuration","preserveContent"]],template:function(r,o){if(r&1){let s=Y();Ke(),f(0,"mat-tab-header",3,0),E("indexFocused",function(u){return A(s),F(o._focusChanged(u))})("selectFocusedIndex",function(u){return A(s),F(o.selectedIndex=u)}),Iv(2,v8,8,17,"div",4,Cv),v(),j(4,_8,1,0),f(5,"div",5,1),Iv(7,y8,1,13,"mat-tab-body",6,Cv),v()}r&2&&(g("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination),p(2),Ev(o._tabs),p(2),nt(4,o._isServer?4:-1),p(),X("_mat-animation-noopable",o._animationMode==="NoopAnimations"),p(2),Ev(o._tabs))},dependencies:[T8,ZM,QS,$r,Hr,JM],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-top-width:var(--mdc-tab-indicator-active-indicator-height)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:not(.mdc-tab--stacked){height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab:not(:disabled).mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2});let n=e;return n})(),XI=class{};var Ki=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=H({type:e}),e.\u0275inj=z({imports:[et,et]});let n=e;return n})();var Ar=(()=>{let e=class e extends Lt{constructor(t,r){super(t,r.apiRoute.group)}createByDir(t){return this.http.post(`${this.baseUrl}/byDir`,t,{withCredentials:!0})}};e.\u0275fac=function(r){return new(r||e)(w(Tt),w(Ct))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var ts=(()=>{let e=class e extends Bn{constructor(t,r,o){super(t,$e.columnNames.group.basic,r),this.gouService=o}fetchDataByUsername(t){this.gouService.getByUsername(t).then(r=>r.map(o=>o.group)).then(r=>this.source=r)}};e.\u0275fac=function(r){return new(r||e)(l(Ar),l(si),l(Db))},e.\u0275cmp=k({type:e,selectors:[["app-group-table"]],standalone:!0,features:[R,oe],decls:2,vars:14,consts:[["grid",""],[3,"selectedRows","columns","columnMenu","sorting","loading","rowSelection","rowDetail","autoResizeWidth","paging","searching","cellEditing","virtualScroll","infoPanel","titlePanel","theme"]],template:function(r,o){if(r&1){let s=Y();f(0,"gui-grid",1,0),E("selectedRows",function(u){return A(s),F(o.onSelectedRows(u))}),v()}r&2&&g("columns",o.columns)("columnMenu",o.columnMenu)("sorting",o.sorting)("loading",o.loading)("rowSelection",o.rowSelection)("rowDetail",o.rowDetail)("autoResizeWidth",o.autoResizeWidth)("paging",o.paging)("searching",o.searching)("cellEditing",o.cellEditing)("virtualScroll",!0)("infoPanel",o.infoPanel)("titlePanel",o.titlePanel)("theme",o.theme)},dependencies:[J,xt,bi,vi]});let n=e;return n})();var e2=(()=>{let e=class e extends Lt{constructor(t,r){super(t,r.apiRoute.module)}};e.\u0275fac=function(r){return new(r||e)(w(Tt),w(Ct))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var ul=(()=>{let e=class e extends Bn{constructor(t,r,o){super(t,$e.columnNames.module,r),this.mouService=o}fetchDataByUsername(t){this.mouService.getByUsername(t).then(r=>r.map(o=>o.module)).then(r=>this.source=r)}};e.\u0275fac=function(r){return new(r||e)(l(e2),l(si),l(Sb))},e.\u0275cmp=k({type:e,selectors:[["app-module-table"]],standalone:!0,features:[R,oe],decls:2,vars:14,consts:[["grid",""],[3,"selectedRows","columns","columnMenu","sorting","loading","rowSelection","rowDetail","autoResizeWidth","paging","searching","cellEditing","virtualScroll","infoPanel","titlePanel","theme"]],template:function(r,o){if(r&1){let s=Y();f(0,"gui-grid",1,0),E("selectedRows",function(u){return A(s),F(o.onSelectedRows(u))}),v()}r&2&&g("columns",o.columns)("columnMenu",o.columnMenu)("sorting",o.sorting)("loading",o.loading)("rowSelection",o.rowSelection)("rowDetail",o.rowDetail)("autoResizeWidth",o.autoResizeWidth)("paging",o.paging)("searching",o.searching)("cellEditing",o.cellEditing)("virtualScroll",!0)("infoPanel",o.infoPanel)("titlePanel",o.titlePanel)("theme",o.theme)},dependencies:[J,xt,bi,vi]});let n=e;return n})();function hl(n){n||(vE(hl),n=M(_E));let e=new ht(i=>n.onDestroy(i.next.bind(i)));return i=>i.pipe(ce(e))}var JI=class{constructor(e){this._box=e,this._destroyed=new ue,this._resizeSubject=new ue,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(i=>this._resizeSubject.next(i)))}observe(e){return this._elementObservables.has(e)||this._elementObservables.set(e,new ht(i=>{let t=this._resizeSubject.subscribe(i);return this._resizeObserver?.observe(e,{box:this._box}),()=>{this._resizeObserver?.unobserve(e),t.unsubscribe(),this._elementObservables.delete(e)}}).pipe(Je(i=>i.some(t=>t.target===e)),bv({bufferSize:1,refCount:!0}),ce(this._destroyed))),this._elementObservables.get(e)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},t2=(()=>{let e=class e{constructor(){this._observers=new Map,this._ngZone=M(he),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,t]of this._observers)t.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(t,r){let o=r?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new JI(o)),this._observers.get(o).observe(t)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var N8=["notch"],j8=["matFormFieldNotchedOutline",""],L8=["*"],V8=["textField"],B8=["iconPrefixContainer"],z8=["textPrefixContainer"],H8=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],U8=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function $8(n,e){n&1&&C(0,"span",17)}function G8(n,e){if(n&1&&(f(0,"label",16),Oe(1,1),j(2,$8,1,0,"span",17),v()),n&2){let i=x(2);g("floating",i._shouldLabelFloat())("monitorResize",i._hasOutline())("id",i._labelId),Me("for",i._control.disableAutomaticLabeling?null:i._control.id),p(2),nt(2,!i.hideRequiredMarker&&i._control.required?2:-1)}}function W8(n,e){if(n&1&&j(0,G8,3,5,"label",16),n&2){let i=x();nt(0,i._hasFloatingLabel()?0:-1)}}function q8(n,e){n&1&&C(0,"div",5)}function Y8(n,e){}function Q8(n,e){if(n&1&&j(0,Y8,0,0,"ng-template",11),n&2){x(2);let i=wi(1);g("ngTemplateOutlet",i)}}function K8(n,e){if(n&1&&(f(0,"div",7),j(1,Q8,1,1,null,11),v()),n&2){let i=x();g("matFormFieldNotchedOutlineOpen",i._shouldLabelFloat()),p(),nt(1,i._forceDisplayInfixLabel()?-1:1)}}function X8(n,e){n&1&&(f(0,"div",8,2),Oe(2,2),v())}function Z8(n,e){n&1&&(f(0,"div",9,3),Oe(2,3),v())}function J8(n,e){}function e$(n,e){if(n&1&&j(0,J8,0,0,"ng-template",11),n&2){x();let i=wi(1);g("ngTemplateOutlet",i)}}function t$(n,e){n&1&&(f(0,"div",12),Oe(1,4),v())}function i$(n,e){n&1&&(f(0,"div",13),Oe(1,5),v())}function n$(n,e){n&1&&C(0,"div",14)}function r$(n,e){if(n&1&&(f(0,"div",18),Oe(1,6),v()),n&2){let i=x();g("@transitionMessages",i._subscriptAnimationState)}}function o$(n,e){if(n&1&&(f(0,"mat-hint",20),T(1),v()),n&2){let i=x(2);g("id",i._hintLabelId),p(),ke(i.hintLabel)}}function s$(n,e){if(n&1&&(f(0,"div",19),j(1,o$,2,2,"mat-hint",20),Oe(2,7),C(3,"div",21),Oe(4,8),v()),n&2){let i=x();g("@transitionMessages",i._subscriptAnimationState),p(),nt(1,i.hintLabel?1:-1)}}var ml=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=G({type:e,selectors:[["mat-label"]],standalone:!0});let n=e;return n})(),a$=0,d2=new Z("MatError"),Mb=(()=>{let e=class e{constructor(t,r){this.id=`mat-mdc-error-${a$++}`,t||r.nativeElement.setAttribute("aria-live","polite")}};e.\u0275fac=function(r){return new(r||e)(Mi("aria-live"),l(S))},e.\u0275dir=G({type:e,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(r,o){r&2&&Ai("id",o.id)},inputs:{id:"id"},standalone:!0,features:[_e([{provide:d2,useExisting:e}])]});let n=e;return n})(),c$=0,i2=(()=>{let e=class e{constructor(){this.align="start",this.id=`mat-mdc-hint-${c$++}`}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=G({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(r,o){r&2&&(Ai("id",o.id),Me("align",null),X("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0});let n=e;return n})(),l$=new Z("MatPrefix");var d$=new Z("MatSuffix");var u2=new Z("FloatingLabelParent"),n2=(()=>{let e=class e{get floating(){return this._floating}set floating(t){this._floating=t,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(t){this._monitorResize=t,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(t){this._elementRef=t,this._floating=!1,this._monitorResize=!1,this._resizeObserver=M(t2),this._ngZone=M(he),this._parent=M(u2),this._resizeSubscription=new Ft}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return u$(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}};e.\u0275fac=function(r){return new(r||e)(l(S))},e.\u0275dir=G({type:e,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(r,o){r&2&&X("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0});let n=e;return n})();function u$(n){let e=n;if(e.offsetParent!==null)return e.scrollWidth;let i=e.cloneNode(!0);i.style.setProperty("position","absolute"),i.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(i);let t=i.scrollWidth;return i.remove(),t}var r2="mdc-line-ripple--active",Tb="mdc-line-ripple--deactivating",o2=(()=>{let e=class e{constructor(t,r){this._elementRef=t,this._handleTransitionEnd=o=>{let s=this._elementRef.nativeElement.classList,a=s.contains(Tb);o.propertyName==="opacity"&&a&&s.remove(r2,Tb)},r.runOutsideAngular(()=>{t.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let t=this._elementRef.nativeElement.classList;t.remove(Tb),t.add(r2)}deactivate(){this._elementRef.nativeElement.classList.add(Tb)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}};e.\u0275fac=function(r){return new(r||e)(l(S),l(he))},e.\u0275dir=G({type:e,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0});let n=e;return n})(),s2=(()=>{let e=class e{constructor(t,r){this._elementRef=t,this._ngZone=r,this.open=!1}ngAfterViewInit(){let t=this._elementRef.nativeElement.querySelector(".mdc-floating-label");t?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(t.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>t.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(t){!this.open||!t?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${t}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}};e.\u0275fac=function(r){return new(r||e)(l(S),l(he))},e.\u0275cmp=k({type:e,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(r,o){if(r&1&&$(N8,5),r&2){let s;V(s=B())&&(o._notch=s.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(r,o){r&2&&X("mdc-notched-outline--notched",o.open)},inputs:{open:[U.None,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[oe],attrs:j8,ngContentSelectors:L8,decls:5,vars:0,consts:[["notch",""],[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(r,o){r&1&&(Ke(),C(0,"div",1),f(1,"div",2,0),Oe(3),v(),C(4,"div",3))},encapsulation:2,changeDetection:0});let n=e;return n})(),h$={transitionMessages:Kh("transitionMessages",[$a("enter",Br({opacity:1,transform:"translateY(0%)"})),Ga("void => enter",[Br({opacity:0,transform:"translateY(-5px)"}),Ua("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},e1=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=G({type:e});let n=e;return n})();var t1=new Z("MatFormField"),m$=new Z("MAT_FORM_FIELD_DEFAULT_OPTIONS"),a2=0,c2="fill",p$="auto",l2="fixed",g$="translateY(-50%)",Rb=(()=>{let e=class e{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=vr(t)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||p$}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(t){let r=this._appearance,o=t||this._defaults?.appearance||c2;this._appearance=o,this._appearance==="outline"&&this._appearance!==r&&(this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||l2}set subscriptSizing(t){this._subscriptSizing=t||this._defaults?.subscriptSizing||l2}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(t){this._explicitFormFieldControl=t}constructor(t,r,o,s,a,u,b,y){this._elementRef=t,this._changeDetectorRef=r,this._ngZone=o,this._dir=s,this._platform=a,this._defaults=u,this._animationMode=b,this._hideRequiredMarker=!1,this.color="primary",this._appearance=c2,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${a2++}`,this._hintLabelId=`mat-mdc-hint-${a2++}`,this._subscriptAnimationState="",this._destroyed=new ue,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,u&&(u.appearance&&(this.appearance=u.appearance),this._hideRequiredMarker=!!u?.hideRequiredMarker,u.color&&(this.color=u.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){let t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${t.controlType}`),t.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(ce(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(t=>!t._isText),this._hasTextPrefix=!!this._prefixChildren.find(t=>t._isText),this._hasIconSuffix=!!this._suffixChildren.find(t=>!t._isText),this._hasTextSuffix=!!this._suffixChildren.find(t=>t._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),yi(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(ce(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(ce(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(t){let r=this._control?this._control.ngControl:null;return r&&r[t]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&t.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let r=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,o=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;r?t.push(r.id):this._hintLabel&&t.push(this._hintLabelId),o&&t.push(o.id)}else this._errorChildren&&t.push(...this._errorChildren.map(r=>r.id));this._control.setDescribedByIds(t)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;let t=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){t.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdateOnStable=!0;return}let r=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,s=r?.getBoundingClientRect().width??0,a=o?.getBoundingClientRect().width??0,u=this._dir.value==="rtl"?"-1":"1",b=`${s+a}px`,I=`calc(${u} * (${b} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;t.style.transform=`var(
        --mat-mdc-form-field-label-transform,
        ${g$} translateX(${I})
    )`}_isAttachedToDom(){let t=this._elementRef.nativeElement;if(t.getRootNode){let r=t.getRootNode();return r&&r!==t}return document.documentElement.contains(t)}};e.\u0275fac=function(r){return new(r||e)(l(S),l(ee),l(he),l(xi),l(Le),l(m$,8),l(lt,8),l(ae))},e.\u0275cmp=k({type:e,selectors:[["mat-form-field"]],contentQueries:function(r,o,s){if(r&1&&(Zt(s,ml,5),Zt(s,ml,7),Zt(s,e1,5),Zt(s,l$,5),Zt(s,d$,5),Zt(s,d2,5),Zt(s,i2,5)),r&2){let a;V(a=B())&&(o._labelChildNonStatic=a.first),V(a=B())&&(o._labelChildStatic=a.first),V(a=B())&&(o._formFieldControl=a.first),V(a=B())&&(o._prefixChildren=a),V(a=B())&&(o._suffixChildren=a),V(a=B())&&(o._errorChildren=a),V(a=B())&&(o._hintChildren=a)}},viewQuery:function(r,o){if(r&1&&($(V8,5),$(B8,5),$(z8,5),$(n2,5),$(s2,5),$(o2,5)),r&2){let s;V(s=B())&&(o._textField=s.first),V(s=B())&&(o._iconPrefixContainer=s.first),V(s=B())&&(o._textPrefixContainer=s.first),V(s=B())&&(o._floatingLabel=s.first),V(s=B())&&(o._notchedOutline=s.first),V(s=B())&&(o._lineRipple=s.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(r,o){r&2&&X("mat-mdc-form-field-label-always-float",o._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",o._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",o._hasIconSuffix)("mat-form-field-invalid",o._control.errorState)("mat-form-field-disabled",o._control.disabled)("mat-form-field-autofilled",o._control.autofilled)("mat-form-field-no-animations",o._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("mat-focused",o._control.focused)("mat-primary",o.color!=="accent"&&o.color!=="warn")("mat-accent",o.color==="accent")("mat-warn",o.color==="warn")("ng-untouched",o._shouldForward("untouched"))("ng-touched",o._shouldForward("touched"))("ng-pristine",o._shouldForward("pristine"))("ng-dirty",o._shouldForward("dirty"))("ng-valid",o._shouldForward("valid"))("ng-invalid",o._shouldForward("invalid"))("ng-pending",o._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[_e([{provide:t1,useExisting:e},{provide:u2,useExisting:e}]),oe],ngContentSelectors:U8,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(r,o){if(r&1){let s=Y();Ke(H8),j(0,W8,1,1,"ng-template",null,0,qe),f(2,"div",4,1),E("click",function(u){return A(s),F(o._control.onContainerClick(u))}),j(4,q8,1,0,"div",5),f(5,"div",6),j(6,K8,2,2,"div",7)(7,X8,3,0,"div",8)(8,Z8,3,0,"div",9),f(9,"div",10),j(10,e$,1,1,null,11),Oe(11),v(),j(12,t$,2,0,"div",12)(13,i$,2,0,"div",13),v(),j(14,n$,1,0,"div",14),v(),f(15,"div",15),j(16,r$,2,1)(17,s$,5,2),v()}if(r&2){let s;p(2),X("mdc-text-field--filled",!o._hasOutline())("mdc-text-field--outlined",o._hasOutline())("mdc-text-field--no-label",!o._hasFloatingLabel())("mdc-text-field--disabled",o._control.disabled)("mdc-text-field--invalid",o._control.errorState),p(2),nt(4,!o._hasOutline()&&!o._control.disabled?4:-1),p(2),nt(6,o._hasOutline()?6:-1),p(),nt(7,o._hasIconPrefix?7:-1),p(),nt(8,o._hasTextPrefix?8:-1),p(2),nt(10,!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),p(2),nt(12,o._hasTextSuffix?12:-1),p(),nt(13,o._hasIconSuffix?13:-1),p(),nt(14,o._hasOutline()?-1:14),p(),X("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic"),p(),nt(16,(s=o._getDisplayedMessages())==="error"?16:s==="hint"?17:-1)}},dependencies:[n2,s2,gs,o2,i2],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 96px/0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px*2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-hover-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-hover-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-hover-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-hover-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(.75*var(--mdc-outlined-text-field-label-text-size))}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mdc-outlined-text-field-label-text-size)}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color)}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font);line-height:var(--mat-form-field-subscript-text-line-height);font-size:var(--mat-form-field-subscript-text-size);letter-spacing:var(--mat-form-field-subscript-text-tracking);font-weight:var(--mat-form-field-subscript-text-weight)}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color)}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity)}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color)}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color)}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color)}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color)}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[h$.transitionMessages]},changeDetection:0});let n=e;return n})(),Ea=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=H({type:e}),e.\u0275inj=z({imports:[et,J,Pm,et]});let n=e;return n})();var m2=In({passive:!0}),p2=(()=>{let e=class e{constructor(t,r){this._platform=t,this._ngZone=r,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return bn;let r=ji(t),o=this._monitoredElements.get(r);if(o)return o.subject;let s=new ue,a="cdk-text-field-autofilled",u=b=>{b.animationName==="cdk-text-field-autofill-start"&&!r.classList.contains(a)?(r.classList.add(a),this._ngZone.run(()=>s.next({target:b.target,isAutofilled:!0}))):b.animationName==="cdk-text-field-autofill-end"&&r.classList.contains(a)&&(r.classList.remove(a),this._ngZone.run(()=>s.next({target:b.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{r.addEventListener("animationstart",u,m2),r.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(r,{subject:s,unlisten:()=>{r.removeEventListener("animationstart",u,m2)}}),s}stopMonitoring(t){let r=ji(t),o=this._monitoredElements.get(r);o&&(o.unlisten(),o.subject.complete(),r.classList.remove("cdk-text-field-autofill-monitored"),r.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(r))}ngOnDestroy(){this._monitoredElements.forEach((t,r)=>this.stopMonitoring(r))}};e.\u0275fac=function(r){return new(r||e)(w(Le),w(he))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var g2=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=H({type:e}),e.\u0275inj=z({});let n=e;return n})();var b$=new Z("MAT_INPUT_VALUE_ACCESSOR"),v$=["button","checkbox","file","hidden","image","radio","range","reset","submit"],_$=0,Ab=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(t){this._disabled=vr(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(sn.required)??!1}set required(t){this._required=vr(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&N0().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(t){this._errorStateTracker.matcher=t}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=vr(t)}get errorState(){return this._errorStateTracker.errorState}set errorState(t){this._errorStateTracker.errorState=t}constructor(t,r,o,s,a,u,b,y,I,N){this._elementRef=t,this._platform=r,this.ngControl=o,this._autofillMonitor=y,this._formField=N,this._uid=`mat-input-${_$++}`,this.focused=!1,this.stateChanges=new ue,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(fe=>N0().has(fe)),this._iOSKeyupListener=fe=>{let W=fe.target;!W.value&&W.selectionStart===0&&W.selectionEnd===0&&(W.setSelectionRange(1,1),W.setSelectionRange(0,0))};let K=this._elementRef.nativeElement,de=K.nodeName.toLowerCase();this._inputValueAccessor=b||K,this._previousNativeValue=this.value,this.id=this.id,r.IOS&&I.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new $m(u,o,a,s,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=de==="select",this._isTextarea=de==="textarea",this._isInFormField=!!N,this._isNativeSelect&&(this.controlType=K.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(t){t!==this.focused&&(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_dirtyCheckPlaceholder(){let t=this._getPlaceholder();if(t!==this._previousPlaceholder){let r=this._elementRef.nativeElement;this._previousPlaceholder=t,t?r.setAttribute("placeholder",t):r.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){v$.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let t=this._elementRef.nativeElement,r=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&r&&r.label)}else return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let t=this._elementRef.nativeElement;return this._isNativeSelect&&(t.multiple||t.size>1)}};e.\u0275fac=function(r){return new(r||e)(l(S),l(Le),l(Zn,10),l(Nd,8),l(er,8),l(oD),l(b$,10),l(p2),l(he),l(t1,8))},e.\u0275dir=G({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(r,o){r&1&&E("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),r&2&&(Ai("id",o.id)("disabled",o.disabled)("required",o.required),Me("name",o.name||null)("readonly",o.readonly&&!o._isNativeSelect||null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),X("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mdc-text-field__input",o._isInFormField)("mat-mdc-native-select-inline",o._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[U.None,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[_e([{provide:e1,useExisting:e}]),re]});let n=e;return n})(),Fb=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=H({type:e}),e.\u0275inj=z({imports:[et,Ea,Ea,g2,et]});let n=e;return n})();var y$=["*"],Pb;function w$(){if(Pb===void 0&&(Pb=null,typeof window<"u")){let n=window;n.trustedTypes!==void 0&&(Pb=n.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return Pb}function fh(n){return w$()?.createHTML(n)||n}function b2(n){return Error(`Unable to find icon with the name "${n}"`)}function x$(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function v2(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function _2(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}var mo=class{constructor(e,i,t){this.url=e,this.svgText=i,this.options=t}},C$=(()=>{let e=class e{constructor(t,r,o,s){this._httpClient=t,this._sanitizer=r,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=o}addSvgIcon(t,r,o){return this.addSvgIconInNamespace("",t,r,o)}addSvgIconLiteral(t,r,o){return this.addSvgIconLiteralInNamespace("",t,r,o)}addSvgIconInNamespace(t,r,o,s){return this._addSvgIconConfig(t,r,new mo(o,null,s))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,r,o,s){let a=this._sanitizer.sanitize(nn.HTML,o);if(!a)throw _2(o);let u=fh(a);return this._addSvgIconConfig(t,r,new mo("",u,s))}addSvgIconSet(t,r){return this.addSvgIconSetInNamespace("",t,r)}addSvgIconSetLiteral(t,r){return this.addSvgIconSetLiteralInNamespace("",t,r)}addSvgIconSetInNamespace(t,r,o){return this._addSvgIconSetConfig(t,new mo(r,null,o))}addSvgIconSetLiteralInNamespace(t,r,o){let s=this._sanitizer.sanitize(nn.HTML,r);if(!s)throw _2(r);let a=fh(s);return this._addSvgIconSetConfig(t,new mo("",a,o))}registerFontClassAlias(t,r=t){return this._fontCssClassesByAlias.set(t,r),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(...t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){let r=this._sanitizer.sanitize(nn.RESOURCE_URL,t);if(!r)throw v2(t);let o=this._cachedIconsByUrl.get(r);return o?se(Ob(o)):this._loadSvgIconFromConfig(new mo(t,null)).pipe(ft(s=>this._cachedIconsByUrl.set(r,s)),Se(s=>Ob(s)))}getNamedSvgIcon(t,r=""){let o=y2(r,t),s=this._svgIconConfigs.get(o);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(r,t),s)return this._svgIconConfigs.set(o,s),this._getSvgFromConfig(s);let a=this._iconSetConfigs.get(r);return a?this._getSvgFromIconSetConfigs(t,a):cs(b2(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?se(Ob(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(Se(r=>Ob(r)))}_getSvgFromIconSetConfigs(t,r){let o=this._extractIconWithNameFromAnySet(t,r);if(o)return se(o);let s=r.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(_n(u=>{let y=`Loading icon set URL: ${this._sanitizer.sanitize(nn.RESOURCE_URL,a.url)} failed: ${u.message}`;return this._errorHandler.handleError(new Error(y)),se(null)})));return vn(s).pipe(Se(()=>{let a=this._extractIconWithNameFromAnySet(t,r);if(!a)throw b2(t);return a}))}_extractIconWithNameFromAnySet(t,r){for(let o=r.length-1;o>=0;o--){let s=r[o];if(s.svgText&&s.svgText.toString().indexOf(t)>-1){let a=this._svgElementFromConfig(s),u=this._extractSvgIconFromSet(a,t,s.options);if(u)return u}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(ft(r=>t.svgText=r),Se(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?se(null):this._fetchIcon(t).pipe(ft(r=>t.svgText=r))}_extractSvgIconFromSet(t,r,o){let s=t.querySelector(`[id="${r}"]`);if(!s)return null;let a=s.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,o);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),o);let u=this._svgElementFromString(fh("<svg></svg>"));return u.appendChild(a),this._setSvgAttributes(u,o)}_svgElementFromString(t){let r=this._document.createElement("DIV");r.innerHTML=t;let o=r.querySelector("svg");if(!o)throw Error("<svg> tag not found");return o}_toSvgElement(t){let r=this._svgElementFromString(fh("<svg></svg>")),o=t.attributes;for(let s=0;s<o.length;s++){let{name:a,value:u}=o[s];a!=="id"&&r.setAttribute(a,u)}for(let s=0;s<t.childNodes.length;s++)t.childNodes[s].nodeType===this._document.ELEMENT_NODE&&r.appendChild(t.childNodes[s].cloneNode(!0));return r}_setSvgAttributes(t,r){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),r&&r.viewBox&&t.setAttribute("viewBox",r.viewBox),t}_fetchIcon(t){let{url:r,options:o}=t,s=o?.withCredentials??!1;if(!this._httpClient)throw x$();if(r==null)throw Error(`Cannot fetch icon from URL "${r}".`);let a=this._sanitizer.sanitize(nn.RESOURCE_URL,r);if(!a)throw v2(r);let u=this._inProgressUrlFetches.get(a);if(u)return u;let b=this._httpClient.get(a,{responseType:"text",withCredentials:s}).pipe(Se(y=>fh(y)),yn(()=>this._inProgressUrlFetches.delete(a)),pE());return this._inProgressUrlFetches.set(a,b),b}_addSvgIconConfig(t,r,o){return this._svgIconConfigs.set(y2(t,r),o),this}_addSvgIconSetConfig(t,r){let o=this._iconSetConfigs.get(t);return o?o.push(r):this._iconSetConfigs.set(t,[r]),this}_svgElementFromConfig(t){if(!t.svgElement){let r=this._svgElementFromString(t.svgText);this._setSvgAttributes(r,t.options),t.svgElement=r}return t.svgElement}_getIconConfigFromResolvers(t,r){for(let o=0;o<this._resolvers.length;o++){let s=this._resolvers[o](r,t);if(s)return I$(s)?new mo(s.url,null,s.options):new mo(s,null)}}};e.\u0275fac=function(r){return new(r||e)(w(Tt,8),w(Io),w(ae,8),w(us))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Ob(n){return n.cloneNode(!0)}function y2(n,e){return n+":"+e}function I$(n){return!!(n.url&&n.options)}var E$=new Z("MAT_ICON_DEFAULT_OPTIONS"),k$=new Z("mat-icon-location",{providedIn:"root",factory:S$});function S$(){let n=M(ae),e=n?n.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}var w2=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],D$=w2.map(n=>`[${n}]`).join(", "),T$=/^url\(['"]?#(.*?)['"]?\)$/,pl=(()=>{let e=class e{get color(){return this._color||this._defaultColor}set color(t){this._color=t}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){let r=this._cleanupFontValue(t);r!==this._fontSet&&(this._fontSet=r,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){let r=this._cleanupFontValue(t);r!==this._fontIcon&&(this._fontIcon=r,this._updateFontIconClasses())}constructor(t,r,o,s,a,u){this._elementRef=t,this._iconRegistry=r,this._location=s,this._errorHandler=a,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Ft.EMPTY,u&&(u.color&&(this.color=this._defaultColor=u.color),u.fontSet&&(this.fontSet=u.fontSet)),o||t.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(t){if(!t)return["",""];let r=t.split(":");switch(r.length){case 1:return["",r[0]];case 2:return r;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let t=this._elementsWithExternalReferences;if(t&&t.size){let r=this._location.getPathname();r!==this._previousPath&&(this._previousPath=r,this._prependPathToReferences(r))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();let r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){let t=this._elementRef.nativeElement,r=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();r--;){let o=t.childNodes[r];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let t=this._elementRef.nativeElement,r=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>t.classList.remove(o)),r.forEach(o=>t.classList.add(o)),this._previousFontSetClass=r,this.fontIcon!==this._previousFontIconClass&&!r.includes("mat-ligature-font")&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return typeof t=="string"?t.trim().split(" ")[0]:t}_prependPathToReferences(t){let r=this._elementsWithExternalReferences;r&&r.forEach((o,s)=>{o.forEach(a=>{s.setAttribute(a.name,`url('${t}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(t){let r=t.querySelectorAll(D$),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s<r.length;s++)w2.forEach(a=>{let u=r[s],b=u.getAttribute(a),y=b?b.match(T$):null;if(y){let I=o.get(u);I||(I=[],o.set(u,I)),I.push({name:a,value:y[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){let[r,o]=this._splitIconName(t);r&&(this._svgNamespace=r),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,r).pipe(gt(1)).subscribe(s=>this._setSvgElement(s),s=>{let a=`Error retrieving icon ${r}:${o}! ${s.message}`;this._errorHandler.handleError(new Error(a))})}}};e.\u0275fac=function(r){return new(r||e)(l(S),l(C$),Mi("aria-hidden"),l(k$),l(us),l(E$,8))},e.\u0275cmp=k({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(r,o){r&2&&(Me("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),Ri(o.color?"mat-"+o.color:""),X("mat-icon-inline",o.inline)("mat-icon-no-color",o.color!=="primary"&&o.color!=="accent"&&o.color!=="warn"))},inputs:{color:"color",inline:[U.HasDecoratorInputTransform,"inline","inline",Ce],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[at,oe],ngContentSelectors:y$,decls:1,vars:0,template:function(r,o){r&1&&(Ke(),Oe(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0});let n=e;return n})(),gl=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=H({type:e}),e.\u0275inj=z({imports:[et,et]});let n=e;return n})();var M$=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],R$=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var A$=["mat-fab",""];var F$=new Z("MAT_BUTTON_CONFIG");var P$=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],O$=(()=>{let e=class e{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(t){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,t)}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=t,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._updateRippleDisabled()}constructor(t,r,o,s){this._elementRef=t,this._platform=r,this._ngZone=o,this._animationMode=s,this._focusMonitor=M(Xn),this._rippleLoader=M(aD),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let a=M(F$,{optional:!0}),u=t.nativeElement,b=u.classList;this.disabledInteractive=a?.disabledInteractive??!1,this._rippleLoader?.configureRipple(u,{className:"mat-mdc-button-ripple"});for(let{attribute:y,mdcClasses:I}of P$)u.hasAttribute(y)&&b.add(...I)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(t="program",r){t?this._focusMonitor.focusVia(this._elementRef.nativeElement,t,r):this._elementRef.nativeElement.focus(r)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}};e.\u0275fac=function(r){Va()},e.\u0275dir=G({type:e,inputs:{color:"color",disableRipple:[U.HasDecoratorInputTransform,"disableRipple","disableRipple",Ce],disabled:[U.HasDecoratorInputTransform,"disabled","disabled",Ce],ariaDisabled:[U.HasDecoratorInputTransform,"aria-disabled","ariaDisabled",Ce],disabledInteractive:[U.HasDecoratorInputTransform,"disabledInteractive","disabledInteractive",Ce]},features:[at]});let n=e;return n})();var N$=new Z("mat-mdc-fab-default-options",{providedIn:"root",factory:C2});function C2(){return{color:"accent"}}var x2=C2(),Nb=(()=>{let e=class e extends O${constructor(t,r,o,s,a){super(t,r,o,s),this._options=a,this._isFab=!0,this._options=this._options||x2,this.color=this._options.color||x2.color}};e.\u0275fac=function(r){return new(r||e)(l(S),l(Le),l(he),l(lt,8),l(N$,8))},e.\u0275cmp=k({type:e,selectors:[["button","mat-fab",""]],hostVars:18,hostBindings:function(r,o){r&2&&(Me("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Ri(o.color?"mat-"+o.color:""),X("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0)("mdc-fab--extended",o.extended)("mat-mdc-extended-fab",o.extended))},inputs:{extended:[U.HasDecoratorInputTransform,"extended","extended",Ce]},exportAs:["matButton"],standalone:!0,features:[at,R,oe],attrs:A$,ngContentSelectors:R$,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(r,o){r&1&&(Ke(M$),C(0,"span",0),Oe(1),f(2,"span",1),Oe(3,1),v(),Oe(4,2),C(5,"span",2)(6,"span",3)),r&2&&X("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-fab{background-color:var(--mdc-fab-container-color)}.mat-mdc-fab .mdc-fab__icon{width:var(--mdc-fab-icon-size);height:var(--mdc-fab-icon-size);font-size:var(--mdc-fab-icon-size)}.mat-mdc-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape)}.mat-mdc-mini-fab{background-color:var(--mdc-fab-small-container-color)}.mat-mdc-mini-fab .mdc-fab__icon{width:var(--mdc-fab-small-icon-size);height:var(--mdc-fab-small-icon-size);font-size:var(--mdc-fab-small-icon-size)}.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-small-container-shape)}.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-small-container-shape)}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mdc-extended-fab-container-height);border-radius:var(--mdc-extended-fab-container-shape);font-family:var(--mdc-extended-fab-label-text-font);font-size:var(--mdc-extended-fab-label-text-size);font-weight:var(--mdc-extended-fab-label-text-weight);letter-spacing:var(--mdc-extended-fab-label-text-tracking)}.mat-mdc-extended-fab .mdc-fab__ripple{border-radius:var(--mdc-extended-fab-container-shape)}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);flex-shrink:0}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled,.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab[disabled],.mat-mdc-fab[disabled]:focus,.mat-mdc-fab.mat-mdc-button-disabled,.mat-mdc-fab.mat-mdc-button-disabled:focus,.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab[disabled]:focus,.mat-mdc-mini-fab.mat-mdc-button-disabled,.mat-mdc-mini-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab.mat-mdc-button-disabled-interactive,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{color:var(--mat-fab-foreground-color, inherit);box-shadow:var(--mdc-fab-container-elevation-shadow)}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color)}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color)}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity)}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity)}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity)}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow)}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow)}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color);background-color:var(--mat-fab-disabled-state-container-color)}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab{color:var(--mat-fab-small-foreground-color, inherit);box-shadow:var(--mdc-fab-small-container-elevation-shadow)}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color)}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity)}.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity)}.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity)}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow)}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow)}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow)}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color);background-color:var(--mat-fab-small-disabled-state-container-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab{box-shadow:var(--mdc-extended-fab-container-elevation-shadow)}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow)}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow)}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow)}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}'],encapsulation:2,changeDetection:0});let n=e;return n})();var fl=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=H({type:e}),e.\u0275inj=z({imports:[et,sD,et]});let n=e;return n})();var T2=Un(xn());var E2=Un(xn());var k2=(()=>{let e=class e extends Lt{constructor(t,r){super(t,r.apiRoute.dirGroup)}getAll(){return new ht(t=>{super.getAll().subscribe({next:r=>{t.next(r)},error:r=>{E2.default.fire({icon:"error",title:"Oops...",text:"Active Directory-Verbindung verloren. Bitte melden Sie sich erneut an"}),t.error(r)},complete:()=>t.complete()})})}};e.\u0275fac=function(r){return new(r||e)(w(Tt),w(Ct))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var jb=(()=>{let e=class e extends Bn{constructor(t,r,o){super(t,$e.columnNames.dirGroup,r),this.gService=o}fetchData(){this.service.getAll().subscribe({next:t=>We(this,null,function*(){let r=(yield Di(this.gService.getAll())).map(o=>o.name);this.source=t.filter(o=>o.samaccountname?.length&&!r.includes(o.samaccountname[0])),this.loading=!1}),error:t=>{}})}};e.\u0275fac=function(r){return new(r||e)(l(k2),l(si),l(Ar))},e.\u0275cmp=k({type:e,selectors:[["app-dir-group-table"]],standalone:!0,features:[R,oe],decls:2,vars:14,consts:[["grid",""],[3,"selectedRows","columns","columnMenu","sorting","loading","rowSelection","rowDetail","autoResizeWidth","paging","searching","cellEditing","virtualScroll","infoPanel","titlePanel","theme"]],template:function(r,o){if(r&1){let s=Y();f(0,"gui-grid",1,0),E("selectedRows",function(u){return A(s),F(o.onSelectedRows(u))}),v()}r&2&&g("columns",o.columns)("columnMenu",o.columnMenu)("sorting",o.sorting)("loading",o.loading)("rowSelection",o.rowSelection)("rowDetail",o.rowDetail)("autoResizeWidth",o.autoResizeWidth)("paging",o.paging)("searching",o.searching)("cellEditing",o.cellEditing)("virtualScroll",!0)("infoPanel",o.infoPanel)("titlePanel",o.titlePanel)("theme",o.theme)},dependencies:[J,xt,bi,vi]});let n=e;return n})();var S2=(()=>{let e=class e extends Lt{constructor(t,r){super(t,r.apiRoute.dirUser)}getAll(t){let r=new Pi;return t&&(r=r.set("groupName",t)),this.http.get(this.baseUrl,{params:r,withCredentials:!0})}};e.\u0275fac=function(r){return new(r||e)(w(Tt),w(Ct))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var D2=(()=>{let e=class e extends Bn{constructor(t,r,o){super(t,$e.columnNames.dirUser,r),this.uService=o}fetchDataByGroupName(t){this.service.getAll(t).subscribe({next:r=>We(this,null,function*(){let o=(yield Di(this.uService.getAll())).map(s=>s.username);this.source=r.filter(s=>s.samaccountname?.length&&!o.includes(s.samaccountname[0])),this.loading=!1}),error:r=>{}})}};e.\u0275fac=function(r){return new(r||e)(l(S2),l(si),l(Mr))},e.\u0275cmp=k({type:e,selectors:[["app-dir-user-table"]],standalone:!0,features:[R,oe],decls:2,vars:14,consts:[["grid",""],[3,"selectedRows","columns","columnMenu","sorting","loading","rowSelection","rowDetail","autoResizeWidth","paging","searching","cellEditing","virtualScroll","infoPanel","titlePanel","theme"]],template:function(r,o){if(r&1){let s=Y();f(0,"gui-grid",1,0),E("selectedRows",function(u){return A(s),F(o.onSelectedRows(u))}),v()}r&2&&g("columns",o.columns)("columnMenu",o.columnMenu)("sorting",o.sorting)("loading",o.loading)("rowSelection",o.rowSelection)("rowDetail",o.rowDetail)("autoResizeWidth",o.autoResizeWidth)("paging",o.paging)("searching",o.searching)("cellEditing",o.cellEditing)("virtualScroll",!0)("infoPanel",o.infoPanel)("titlePanel",o.titlePanel)("theme",o.theme)},dependencies:[J,xt,bi,vi]});let n=e;return n})();var V$=["dirGroups"],B$=["dirUsers"],M2=(()=>{let e=class e{constructor(t,r,o){this.gService=t,this.uService=r,this.rService=o,this.initWithoutData=()=>{},this.dirGroupsRowSelection={enabled:!0,type:Pn.ROW,mode:ir.SINGLE},this.dirUsersRowSelection={enabled:!0,type:Pn.CHECKBOX,mode:ir.MULTIPLE},this.dirGroupOnSelectedRows=s=>{if(s.length>0){this.dirGroups.safelyUnselectAll();let a=s[s.length-1].source.samaccountname;this.dirUsers.fetchDataByGroupName(a)}}}ngOnInit(){}ngAfterViewInit(){}addSelectedUsers(){let t=new Array,r=0;for(let o of this.dirUsers.selectedRows)t.push(this.uService.create({email:o?.source?.mail?.[0],prename:o.source?.givenname?.[0],username:o.source?.samaccountname?.[0],name:o.source?.sn?.[0]}).pipe(_n(s=>se(null))));vn(t).pipe(yn(()=>{T2.default.fire({icon:"success",title:"Abgeschlossen",text:`${r} neue Benutzer hinzugef\xFCgt`,position:"center",showConfirmButton:!1,timer:3e3}),this.dirUsers.safelyUnselectAll()})).subscribe({next:o=>{this.rService.executeAll(),r+=o.filter(s=>s!==null).length},error:o=>{}})}};e.\u0275fac=function(r){return new(r||e)(l(Ar),l(Mr),l(Cn))},e.\u0275cmp=k({type:e,selectors:[["app-user-group-dir-import"]],viewQuery:function(r,o){if(r&1&&($(V$,5),$(B$,5)),r&2){let s;V(s=B())&&(o.dirGroups=s.first),V(s=B())&&(o.dirUsers=s.first)}},standalone:!0,features:[oe],decls:15,vars:4,consts:[["dirGroups",""],["dirUsers",""],[1,"row","p-0","m-0"],[1,"col","p-0","m-0"],[1,"navbar","bg-body-tertiary"],[1,"container-fluid","justify-content-start"],["type","button",1,"btn","btn-outline-success","me-2",3,"click"],[1,"row","align-items-start","p-0","m-0"],[1,"col-6","p-0","m-0"],[3,"rowSelection","onSelectedRows"],[3,"initData","rowSelection"]],template:function(r,o){if(r&1){let s=Y();f(0,"div",2)(1,"div",3)(2,"nav",4)(3,"form",5)(4,"button",6),E("click",function(){return A(s),F(o.addSelectedUsers())}),T(5,"Benutzer"),C(6,"br"),T(7,"Hinzuf\xFCgen"),v()()()()(),f(8,"div",7)(9,"div",8),C(10,"app-dir-group-table",9,0),v(),f(12,"div",8),C(13,"app-dir-user-table",10,1),v()()}r&2&&(p(10),g("rowSelection",o.dirGroupsRowSelection)("onSelectedRows",o.dirGroupOnSelectedRows),p(3),g("initData",o.initWithoutData)("rowSelection",o.dirUsersRowSelection))},dependencies:[jb,D2]});let n=e;return n})();var R2=Un(xn());function z$(n,e){if(n&1&&(f(0,"mat-error"),T(1),v()),n&2){let i=x();p(),ke(i.errorMessage())}}function H$(n,e){if(n&1&&(f(0,"mat-error"),T(1),v()),n&2){let i=x();p(),ke(i.mailErrorMessage())}}function U$(n,e){if(n&1&&(f(0,"mat-error"),T(1),v()),n&2){let i=x();p(),ke(i.errorMessage())}}function $$(n,e){if(n&1&&(f(0,"mat-error"),T(1),v()),n&2){let i=x();p(),ke(i.errorMessage())}}var A2=(()=>{let e=class e{constructor(t,r){this.uService=t,this.rService=r,this.email=new Li("",[sn.required,sn.email]),this.username=new Li("",[sn.required]),this.name=new Li("",[sn.required]),this.surname=new Li("",[sn.required]),this.mailErrorMessage=za(""),this.errorMessage=za(""),this.formFieldBSClass="col d-flex justify-content-center mx-1 my-2",this.buttonBSClass="d-flex justify-content-center mx-1 my-2",yi(this.email.statusChanges,this.email.valueChanges).pipe(hl()).subscribe(()=>this.updateMailErrorMessage()),yi(this.username.statusChanges,this.username.valueChanges,this.name.statusChanges,this.name.valueChanges,this.surname.statusChanges,this.surname.valueChanges).pipe(hl()).subscribe(()=>this.updateErrorMessage())}updateMailErrorMessage(){this.email.hasError("required")?this.mailErrorMessage.set("Wert eingeben"):this.email.hasError("email")?this.mailErrorMessage.set("Ung\xFCltige E-Mail"):this.mailErrorMessage.set("")}updateErrorMessage(){this.email.hasError("required")?this.errorMessage.set("Wert eingeben"):this.errorMessage.set("")}create(){this.email.valid&&this.username.valid&&this.name.valid&&this.surname.valid&&this.uService.create({email:this.email.value,prename:this.name.value,username:this.username.value,name:this.surname.value}).subscribe({next:()=>{this.delete(),this.rService.executeAll(),R2.default.fire({title:"Vorgang erfolgreich!",text:"Benutzer erfolgreich erstellt!",icon:"success"})}})}delete(){this.email.setValue(""),this.username.setValue(""),this.name.setValue(""),this.surname.setValue("")}};e.\u0275fac=function(r){return new(r||e)(l(Mr),l(Cn))},e.\u0275cmp=k({type:e,selectors:[["app-user-form"]],standalone:!0,features:[oe],decls:42,vars:15,consts:[["label","Erstellen"],[1,"container","my-3"],[1,"row"],[3,"ngClass"],["matInput","","required","",3,"blur","formControl"],["matInput","","placeholder","user@example.com","required","",3,"blur","formControl"],["mat-fab","","extended","",3,"click"],["label","Import \xFCber AD"]],template:function(r,o){r&1&&(f(0,"mat-tab-group")(1,"mat-tab",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-form-field")(6,"mat-label"),T(7,"Benutzername"),v(),f(8,"input",4),E("blur",function(){return o.updateErrorMessage()}),v(),j(9,z$,2,1,"mat-error"),v()(),f(10,"div",3)(11,"mat-form-field")(12,"mat-label"),T(13,"E-Mail"),v(),f(14,"input",5),E("blur",function(){return o.updateMailErrorMessage()}),v(),j(15,H$,2,1,"mat-error"),v()(),f(16,"div",3)(17,"div",3)(18,"button",6),E("click",function(){return o.create()}),f(19,"mat-icon"),T(20,"playlist_add"),v(),T(21," Erstellen "),v()()()(),f(22,"div",2)(23,"div",3)(24,"mat-form-field")(25,"mat-label"),T(26,"Vorname"),v(),f(27,"input",4),E("blur",function(){return o.updateErrorMessage()}),v(),j(28,U$,2,1,"mat-error"),v()(),f(29,"div",3)(30,"mat-form-field")(31,"mat-label"),T(32,"Nachname"),v(),f(33,"input",4),E("blur",function(){return o.updateErrorMessage()}),v(),j(34,$$,2,1,"mat-error"),v()(),f(35,"div",3)(36,"button",6),E("click",function(){return o.delete()}),f(37,"mat-icon"),T(38,"delete"),v(),T(39," L\xF6schen "),v()()()()(),f(40,"mat-tab",7),C(41,"app-user-group-dir-import"),v()()),r&2&&(p(4),g("ngClass",o.formFieldBSClass),p(4),g("formControl",o.username),p(),nt(9,o.email.invalid?9:-1),p(),g("ngClass",o.formFieldBSClass),p(4),g("formControl",o.email),p(),nt(15,o.email.invalid?15:-1),p(),g("ngClass",o.formFieldBSClass),p(),g("ngClass",o.buttonBSClass),p(6),g("ngClass",o.formFieldBSClass),p(4),g("formControl",o.name),p(),nt(28,o.email.invalid?28:-1),p(),g("ngClass",o.formFieldBSClass),p(4),g("formControl",o.surname),p(),nt(34,o.email.invalid?34:-1),p(),g("ngClass",o.formFieldBSClass))},dependencies:[Ea,Rb,ml,Mb,Fb,Ab,xt,gi,Vi,Ss,Sn,Ld,gl,pl,fl,Nb,J,Dt,Ki,Ii,Qi,M2],styles:[".col[_ngcontent-%COMP%]{margin:50px}"]});let n=e;return n})();var Lb=Un(xn());var G$=["userTable"],W$=["groupTable"],q$=["moduleTable"],F2=(()=>{let e=class e extends kn{constructor(){super(...arguments),this.initWithoutData=()=>{},this.cellEditing={enabled:!0,cellEdit:(t,r,o)=>this.updateService.isEditable?(this.updateService.setAsync("user_"+r.id.toString(),()=>We(this,null,function*(){yield Di(this.userTable.service.update(r))})),!0):!1},this.sUsername=null,this.usersOnSelectedRows=t=>{t.length>0&&(this.sUsername=t[0].source.username,this.sUsername!=null&&(this.groupTable.fetchDataByUsername(this.sUsername),this.moduleTable.fetchDataByUsername(this.sUsername)))}}ngAfterViewInit(){this.buttonVisibilityService.setVisibleOnly(this.refreshService,this.creationService,this.updateService),this.refreshService.removeAll(),this.refreshService.add(()=>{this.userTable.fetchData(),this.sUsername!=null&&(this.groupTable.fetchDataByUsername(this.sUsername),this.moduleTable.fetchDataByUsername(this.sUsername))}),this.creationService.component=A2,this.deletionService.add(()=>this.handleDeleteRequest())}handleDeleteRequest(){let t=this.userTable.selectedRows;t.length>0&&Lb.default.fire({title:"L\xF6schen best\xE4tigen",html:`<p class="text-start">Dieser Vorgang ist unwiderruflich. M\xF6chten Sie fortfahren?<br><br>Anzahl der zu l\xF6schenden Eintr\xE4ge: ${t.length}</p>`,showDenyButton:!0,confirmButtonText:"Ja",denyButtonText:"Nein"}).then(r=>{if(r.isConfirmed){let o=t.map(s=>this.userTable.service.delete(s.source.id));vn(o).subscribe({next:()=>{this.updateService.executeAllAsync().then(()=>{this.refreshService.executeAll()}),Lb.default.fire({text:`${t.length} Eintr\xE4ge wurden erfolgreich gel\xF6scht.`,icon:"success"})},error:s=>Lb.default.fire({title:"Fehler",text:"Dieser Vorgang ist nicht m\xF6glich.",icon:"error"})})}})}get detailed_user_columns(){return $e.columnNames.user.detailed}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275cmp=k({type:e,selectors:[["app-user"]],viewQuery:function(r,o){if(r&1&&($(G$,5),$(W$,5),$(q$,5)),r&2){let s;V(s=B())&&(o.userTable=s.first),V(s=B())&&(o.groupTable=s.first),V(s=B())&&(o.moduleTable=s.first)}},standalone:!0,features:[R,oe],decls:17,vars:5,consts:[["userTable",""],["groupTable",""],["moduleTable",""],[1,"container-fluid","text-center"],[1,"row","m-0","p-0"],[1,"col-8"],["label","Benutzer"],[3,"onSelectedRows","cellEditing","columns"],[1,"col-2"],["label","Gruppen"],[3,"initData"],["label","Module"]],template:function(r,o){r&1&&(f(0,"div",3)(1,"div",4)(2,"div",5)(3,"mat-tab-group")(4,"mat-tab",6),C(5,"app-user-table",7,0),v()()(),f(7,"div",8)(8,"mat-tab-group")(9,"mat-tab",9),C(10,"app-group-table",10,1),v()()(),f(12,"div",8)(13,"mat-tab-group")(14,"mat-tab",11),C(15,"app-module-table",10,2),v()()()()()),r&2&&(p(5),g("onSelectedRows",o.usersOnSelectedRows)("cellEditing",o.cellEditing)("columns",o.detailed_user_columns),p(5),g("initData",o.initWithoutData),p(5),g("initData",o.initWithoutData))},dependencies:[Rr,Ki,Ii,Qi,ts,ul]});let n=e;return n})();var Q$=["input"],K$=["label"],X$=["*"],Z$=new Z("mat-checkbox-default-options",{providedIn:"root",factory:O2});function O2(){return{color:"accent",clickAction:"check-indeterminate"}}var _i=function(n){return n[n.Init=0]="Init",n[n.Checked=1]="Checked",n[n.Unchecked=2]="Unchecked",n[n.Indeterminate=3]="Indeterminate",n}(_i||{}),J$={provide:Wr,useExisting:Pt(()=>Vb),multi:!0},n1=class{},e7=0,P2=O2(),Vb=(()=>{let e=class e{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(t){let r=new n1;return r.source=this,r.checked=t,r}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(t,r,o,s,a,u){this._elementRef=t,this._changeDetectorRef=r,this._ngZone=o,this._animationMode=a,this._options=u,this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"},this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new Q,this.indeterminateChange=new Q,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=_i.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||P2,this.color=this._options.color||P2.color,this.tabIndex=parseInt(s)||0,this.id=this._uniqueId=`mat-mdc-checkbox-${++e7}`}ngOnChanges(t){t.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){let r=t!=this._indeterminate;this._indeterminate=t,r&&(this._indeterminate?this._transitionCheckState(_i.Indeterminate):this._transitionCheckState(this.checked?_i.Checked:_i.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}validate(t){return this.required&&t.value!==!0?{required:!0}:null}registerOnValidatorChange(t){this._validatorChangeFn=t}_transitionCheckState(t){let r=this._currentCheckState,o=this._getAnimationTargetElement();if(!(r===t||!o)&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(r,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);let s=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(s)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){let t=this._options?.clickAction;!this.disabled&&t!=="noop"?(this.indeterminate&&t!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?_i.Checked:_i.Unchecked),this._emitChangeEvent()):!this.disabled&&t==="noop"&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(t){t.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(t,r){if(this._animationMode==="NoopAnimations")return"";switch(t){case _i.Init:if(r===_i.Checked)return this._animationClasses.uncheckedToChecked;if(r==_i.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case _i.Unchecked:return r===_i.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case _i.Checked:return r===_i.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case _i.Indeterminate:return r===_i.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(t){let r=this._inputElement;r&&(r.nativeElement.indeterminate=t)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(t){t.target&&this._labelElement.nativeElement.contains(t.target)&&t.stopPropagation()}};e.\u0275fac=function(r){return new(r||e)(l(S),l(ee),l(he),Mi("tabindex"),l(lt,8),l(Z$,8))},e.\u0275cmp=k({type:e,selectors:[["mat-checkbox"]],viewQuery:function(r,o){if(r&1&&($(Q$,5),$(K$,5),$($r,5)),r&2){let s;V(s=B())&&(o._inputElement=s.first),V(s=B())&&(o._labelElement=s.first),V(s=B())&&(o.ripple=s.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:14,hostBindings:function(r,o){r&2&&(Ai("id",o.id),Me("tabindex",null)("aria-label",null)("aria-labelledby",null),Ri(o.color?"mat-"+o.color:"mat-accent"),X("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mdc-checkbox--disabled",o.disabled)("mat-mdc-checkbox-disabled",o.disabled)("mat-mdc-checkbox-checked",o.checked))},inputs:{ariaLabel:[U.None,"aria-label","ariaLabel"],ariaLabelledby:[U.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[U.None,"aria-describedby","ariaDescribedby"],id:"id",required:[U.HasDecoratorInputTransform,"required","required",Ce],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[U.HasDecoratorInputTransform,"disableRipple","disableRipple",Ce],tabIndex:[U.HasDecoratorInputTransform,"tabIndex","tabIndex",t=>t==null?void 0:Lr(t)],color:"color",checked:[U.HasDecoratorInputTransform,"checked","checked",Ce],disabled:[U.HasDecoratorInputTransform,"disabled","disabled",Ce],indeterminate:[U.HasDecoratorInputTransform,"indeterminate","indeterminate",Ce]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[_e([J$,{provide:Jn,useExisting:e,multi:!0}]),at,re,oe],ngContentSelectors:X$,decls:15,vars:19,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(r,o){if(r&1){let s=Y();Ke(),f(0,"div",3),E("click",function(u){return A(s),F(o._preventBubblingFromLabel(u))}),f(1,"div",4,0)(3,"div",5),E("click",function(){return A(s),F(o._onTouchTargetClick())}),v(),f(4,"input",6,1),E("blur",function(){return A(s),F(o._onBlur())})("click",function(){return A(s),F(o._onInputClick())})("change",function(u){return A(s),F(o._onInteractionEvent(u))}),v(),C(6,"div",7),f(7,"div",8),mt(),f(8,"svg",9),C(9,"path",10),v(),Gn(),C(10,"div",11),v(),C(11,"div",12),v(),f(12,"label",13,2),Oe(14),v()()}if(r&2){let s=wi(2);g("labelPosition",o.labelPosition),p(4),X("mdc-checkbox--selected",o.checked),g("checked",o.checked)("indeterminate",o.indeterminate)("disabled",o.disabled)("id",o.inputId)("required",o.required)("tabIndex",o.disabled?-1:o.tabIndex),Me("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("name",o.name)("value",o.value),p(7),g("matRippleTrigger",s)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),p(),g("for",o.inputId)}},dependencies:[$r,Gm],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}@keyframes mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}}@keyframes mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}}.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:focus:not(:checked):not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color)}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let n=e;return n})();var N2=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=H({type:e}),e.\u0275inj=z({imports:[Vb,et,et]});let n=e;return n})();var j2=Un(xn());var i7=["dirGroups"],L2=(()=>{let e=class e{constructor(t){this.gService=t,this.initWithoutData=()=>{},this.dirGroupsRowSelection={enabled:!0,type:Pn.CHECKBOX,mode:ir.MULTIPLE},this.dirUsersRowSelection={enabled:!0,type:Pn.CHECKBOX,mode:ir.MULTIPLE}}ngOnInit(){}addSelectedGroups(){let t=new Array,r=0;for(let o of this.dirGroups.selectedRows)t.push(this.gService.createByDir({samaccountname:o?.source?.samaccountname}).pipe(_n(s=>se(null))));vn(t).pipe(yn(()=>{j2.default.fire({icon:"success",title:"Abgeschlossen",text:`${r} neue Gruppen hinzugef\xFCgt`,position:"center",showConfirmButton:!1,timer:3e3}),this.dirGroups.safelyUnselectAll()})).subscribe({next:o=>{r+=o.filter(s=>s!==null).length},error:o=>{}})}};e.\u0275fac=function(r){return new(r||e)(l(Ar))},e.\u0275cmp=k({type:e,selectors:[["app-group-dir-import"]],viewQuery:function(r,o){if(r&1&&$(i7,5),r&2){let s;V(s=B())&&(o.dirGroups=s.first)}},standalone:!0,features:[oe],decls:12,vars:1,consts:[["dirGroups",""],[1,"row","p-0","m-0"],[1,"col","p-0","m-0"],[1,"navbar","bg-body-tertiary"],[1,"container-fluid","justify-content-start"],["type","button",1,"btn","btn-outline-success","me-2",3,"click"],[1,"row","align-items-start","p-0","m-0"],[3,"rowSelection"]],template:function(r,o){if(r&1){let s=Y();f(0,"div",1)(1,"div",2)(2,"nav",3)(3,"form",4)(4,"button",5),E("click",function(){return A(s),F(o.addSelectedGroups())}),T(5,"Gruppen"),C(6,"br"),T(7,"Hinzuf\xFCgen"),v()()()()(),f(8,"div",6)(9,"div",2),C(10,"app-dir-group-table",7,0),v()()}r&2&&(p(10),g("rowSelection",o.dirGroupsRowSelection))},dependencies:[jb]});let n=e;return n})();var V2=Un(xn());function n7(n,e){if(n&1&&(f(0,"mat-error"),T(1),v()),n&2){let i=x();p(),ke(i.errorMessage())}}function r7(n,e){if(n&1&&(f(0,"mat-error"),T(1),v()),n&2){let i=x();p(),ke(i.errorMessage())}}var B2=(()=>{let e=class e{constructor(t,r,o){this.uService=t,this.rService=r,this.gService=o,this.groupname=new Li("",[sn.required]),this.ecmFkId=new Li(1,[sn.required]),this.active=new Li(!0),this.errorMessage=za(""),this.formFieldBSClass="col d-flex justify-content-center mx-1 my-2",this.buttonBSClass="d-flex justify-content-center mx-1 my-2",this.checkBoxBSClass=(s=2)=>`col-${s} d-flex justify-content-left mx-1 my-2`,this.checked=RE(!0),yi(this.groupname.statusChanges,this.groupname.valueChanges,this.ecmFkId.statusChanges,this.ecmFkId.valueChanges).pipe(hl()).subscribe(()=>this.updateErrorMessage())}updateErrorMessage(){this.groupname.hasError("required")?this.errorMessage.set("Wert eingeben"):this.errorMessage.set("")}create(){this.groupname.valid&&this.ecmFkId.valid&&this.gService.create({name:this.groupname.value,ecmFkId:this.ecmFkId.value,adSync:!1,internal:!0,active:this.active.value}).subscribe({next:()=>{this.delete(),this.rService.executeAll(),V2.default.fire({title:"Vorgang erfolgreich!",text:"Gruppe erfolgreich erstellt!",icon:"success"})}})}delete(){this.groupname.setValue(""),this.ecmFkId.setValue(1),this.active.setValue(!0)}};e.\u0275fac=function(r){return new(r||e)(l(Mr),l(Cn),l(Ar))},e.\u0275cmp=k({type:e,selectors:[["app-group-form"]],inputs:{checked:[U.SignalBased,"checked"]},outputs:{checked:"checkedChange"},standalone:!0,features:[oe],decls:39,vars:16,consts:[["label","Erstellen"],[1,"container","my-3"],[1,"row"],[3,"ngClass"],["matInput","","required","",3,"blur","formControl"],["matInput","","type","number","required","",3,"blur","formControl"],["mat-fab","","extended","",3,"click"],[3,"disabled"],[3,"ngModelChange","ngModel","disabled"],[3,"formControl","disabled"],[1,"col","d-flex","justify-content-center","me-4","my-2"],["label","Import \xFCber AD"]],template:function(r,o){r&1&&(f(0,"mat-tab-group")(1,"mat-tab",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"mat-form-field")(6,"mat-label"),T(7,"Gruppenname"),v(),f(8,"input",4),E("blur",function(){return o.updateErrorMessage()}),v(),j(9,n7,2,1,"mat-error"),v()(),f(10,"div",3)(11,"mat-form-field")(12,"mat-label"),T(13,"ECM FK ID"),v(),f(14,"input",5),E("blur",function(){return o.updateErrorMessage()}),v(),j(15,r7,2,1,"mat-error"),v()(),f(16,"div",3)(17,"div",3)(18,"button",6),E("click",function(){return o.create()}),f(19,"mat-icon"),T(20,"playlist_add"),v(),T(21," Erstellen "),v()()()(),f(22,"div",2)(23,"div",3)(24,"mat-checkbox",7),T(25,"AD Sync"),v()(),f(26,"div",3)(27,"mat-checkbox",8),Bl("ngModelChange",function(a){return Vl(o.checked,a)||(o.checked=a),a}),T(28,"Internal"),v()(),f(29,"div",3)(30,"mat-checkbox",9),T(31,"Active"),v()(),f(32,"div",10)(33,"button",6),E("click",function(){return o.delete()}),f(34,"mat-icon"),T(35,"delete"),v(),T(36," L\xF6schen "),v()()()()(),f(37,"mat-tab",11),C(38,"app-group-dir-import"),v()()),r&2&&(p(4),g("ngClass",o.formFieldBSClass),p(4),g("formControl",o.groupname),p(),nt(9,o.groupname.invalid?9:-1),p(),g("ngClass",o.formFieldBSClass),p(4),g("formControl",o.ecmFkId),p(),nt(15,o.groupname.invalid?15:-1),p(),g("ngClass",o.formFieldBSClass),p(),g("ngClass",o.buttonBSClass),p(6),g("ngClass",o.checkBoxBSClass(3)),p(),g("disabled",!0),p(2),g("ngClass",o.checkBoxBSClass(3)),p(),Ll("ngModel",o.checked),g("disabled",!0),p(2),g("ngClass",o.checkBoxBSClass(2)),p(),g("formControl",o.active)("disabled",!0))},dependencies:[Ea,Rb,ml,Mb,Fb,Ab,xt,gi,ks,Vi,Ss,jd,Sn,Ld,gl,pl,fl,Nb,N2,Vb,J,Dt,Ki,Ii,Qi,L2]});let n=e;return n})();var Bb=Un(xn());var o7=["groupTable"],s7=["userTable"],z2=(()=>{let e=class e extends kn{constructor(){super(...arguments),this.initWithoutData=()=>{},this.cellEditing={enabled:!0,cellEdit:(t,r,o)=>!this.updateService.isEditable||!r.internal?!1:(this.updateService.setAsync("group_"+r.id.toString(),()=>We(this,null,function*(){yield Di(this.groupTable.service.update(r))})),!0)},this.sGroupId=null,this.groupsOnSelectedRows=t=>{t.length>0&&(this.sGroupId=t[0].source.id,this.sGroupId&&this.userTable.fetchDataByGroupId(this.sGroupId))}}ngAfterViewInit(){this.buttonVisibilityService.setVisibleOnly(this.refreshService,this.creationService,this.updateService),this.refreshService.removeAll(),this.refreshService.add(()=>{this.groupTable.fetchData(),this.sGroupId&&this.userTable.fetchDataByGroupId(this.sGroupId)}),this.creationService.component=B2,this.deletionService.add(()=>this.handleDeleteRequest())}handleDeleteRequest(){let t=this.groupTable.selectedRows;t.length>0&&Bb.default.fire({title:"L\xF6schen besttigen",html:`<p class="text-start">Dieser Vorgang ist unwiderruflich. M\xF6chten Sie fortfahren?<br><br>Anzahl der zu l\xF6schenden Eintr\xE4ge: ${t.length}</p>`,showDenyButton:!0,confirmButtonText:"Ja",denyButtonText:"Nein"}).then(r=>{if(r.isConfirmed){let o=t.map(s=>this.groupTable.service.delete(s.source.id));vn(o).subscribe({next:()=>{this.updateService.executeAllAsync().then(()=>{this.refreshService.executeAll()}),Bb.default.fire({text:`${t.length} Eintr\xE4ge wurden erfolgreich gel\xF6scht.`,icon:"success"})},error:s=>Bb.default.fire({title:"Fehler",text:"Dieser Vorgang ist nicht m\xF6glich.",icon:"error"})})}})}get complete_group_cols(){return $e.columnNames.group.complete}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275cmp=k({type:e,selectors:[["app-group"]],viewQuery:function(r,o){if(r&1&&($(o7,5),$(s7,5)),r&2){let s;V(s=B())&&(o.groupTable=s.first),V(s=B())&&(o.userTable=s.first)}},standalone:!0,features:[R,oe],decls:12,vars:4,consts:[["groupTable",""],["userTable",""],[1,"container-fluid","text-center"],[1,"row","m-0","p-0"],[1,"col-7"],["label","Gruppen"],[3,"onSelectedRows","cellEditing","columns"],[1,"col-5"],["label","Benutzer"],[3,"initData"]],template:function(r,o){r&1&&(f(0,"div",2)(1,"div",3)(2,"div",4)(3,"mat-tab-group")(4,"mat-tab",5),C(5,"app-group-table",6,0),v()()(),f(7,"div",7)(8,"mat-tab-group")(9,"mat-tab",8),C(10,"app-user-table",9,1),v()()()()()),r&2&&(p(5),g("onSelectedRows",o.groupsOnSelectedRows)("cellEditing",o.cellEditing)("columns",o.complete_group_cols),p(5),g("initData",o.initWithoutData))},dependencies:[ts,Rr,Ki,Ii,Qi]});let n=e;return n})();var a7=["moduleTable"],c7=["userTable"],H2=(()=>{let e=class e extends kn{constructor(){super(...arguments),this.uModuleId=null,this.initWithoutData=()=>{},this.modulesOnSelectedRows=t=>{t.length>0&&(this.uModuleId=t[0].source.id,this.uModuleId&&this.userTable.fetchDataByGroupId(this.uModuleId))}}ngAfterViewInit(){this.buttonVisibilityService.setVisibleOnly(),this.refreshService.removeAll(),this.refreshService.add(()=>{this.moduleTable.fetchData(),this.uModuleId&&this.userTable.fetchDataByModuleId(this.uModuleId)})}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275cmp=k({type:e,selectors:[["app-module"]],viewQuery:function(r,o){if(r&1&&($(a7,5),$(c7,5)),r&2){let s;V(s=B())&&(o.moduleTable=s.first),V(s=B())&&(o.userTable=s.first)}},standalone:!0,features:[R,oe],decls:12,vars:2,consts:[["moduleTable",""],["userTable",""],[1,"container-fluid","text-center"],[1,"row","m-0","p-0"],[1,"col-6"],["label","Module"],[3,"onSelectedRows"],["label","Benutzer"],[3,"initData"]],template:function(r,o){r&1&&(f(0,"div",2)(1,"div",3)(2,"div",4)(3,"mat-tab-group")(4,"mat-tab",5),C(5,"app-module-table",6,0),v()()(),f(7,"div",4)(8,"mat-tab-group")(9,"mat-tab",7),C(10,"app-user-table",8,1),v()()()()()),r&2&&(p(5),g("onSelectedRows",o.modulesOnSelectedRows),p(5),g("initData",o.initWithoutData))},dependencies:[ul,Ki,Ii,Qi,Rr]});let n=e;return n})();var l7=["unassignedUsers"],d7=["assignedUsers"],u7=["modules"],h7=["groups"],U2=(()=>{let e=class e extends kn{constructor(){super(...arguments),this.initWithoutData=()=>{},this.userInLabel="Benutzer in",this.tabItems=[{routerLink:"/module-user",title:"Modules"},{routerLink:"/group-user",title:"Groups"}],this.activeTabTitle=null,this.activeIndex=0,this.userRowSelection={enabled:!0,type:Pn.CHECKBOX,mode:ir.MULTIPLE},this.anySelected=!1,this.target=Fr.Module,this.targetId=0,this.modulesOnSelectedRows=t=>{t.length>0&&(this.modules.safelyUnselectAll(),this.userInLabel=`Benutzer in Module ${t[0].source?.name}`,this.target=Fr.Module,this.targetId=t[0].source.id,this.updateUserTables())},this.groupsOnSelectedRows=t=>{t.length>0&&(this.groups.safelyUnselectAll(),this.userInLabel=`Benutzer in Gruppe ${t[0].source?.name}`,this.target=Fr.Group,this.targetId=t[0].source.id,this.updateUserTables())},this.sUnassgnCount=0,this.sAssgnCount=0,this.unassignedUsersOnSelectedRows=t=>{t.length>this.sUnassgnCount&&this.unassignedUsers.selectedRows.length>0&&this.assignedUsers.safelyUnselectAll(),this.sUnassgnCount=t.length},this.assignedUsersOnSelectedRows=t=>{t.length>this.sAssgnCount&&this.assignedUsers.selectedRows.length>0&&this.unassignedUsers.safelyUnselectAll(),this.sAssgnCount=t.length}}ngOnInit(){}ngAfterViewInit(){this.buttonVisibilityService.setVisibleOnly(this.refreshService,this.transferService),this.refreshService.removeAll(),this.refreshService.add(()=>{this.modules.fetchData(),this.groups.fetchData(),this.anySelected&&this.updateUserTables()}),this.transferService.add(()=>{this.isAssignment?(this.assign(),this.refreshService.executeAll()):this.isUnassignment&&(this.unassign(),this.refreshService.executeAll())})}assign(){var t=this.unassignedUsers.selectedRows.map(r=>r.source);switch(console.log(t),this.unselectUserTables(),this.target){case Fr.Module:this.unassignedUsers.createModuleOfUsers(this.targetId,t).then(()=>this.updateUserTables());break;case Fr.Group:this.unassignedUsers.createGroupOfUsers(this.targetId,t).then(()=>this.updateUserTables());break}}unassign(){var t=this.assignedUsers.selectedRows.map(r=>r.source);switch(this.unselectUserTables(),this.target){case Fr.Module:this.unassignedUsers.deleteModuleOfUsers(this.targetId,t).then(()=>this.updateUserTables());break;case Fr.Group:this.unassignedUsers.deleteGroupOfUsers(this.targetId,t).then(()=>this.updateUserTables());break}}unselectUserTables(){this.assignedUsers.safelyUnselectAll(),this.unassignedUsers.safelyUnselectAll()}updateUserTables(){switch(this.anySelected=!0,this.unselectUserTables(),this.target){case Fr.Module:this.assignedUsers.fetchDataByModuleId(this.targetId),this.unassignedUsers.fetchDataByModuleId(this.targetId,!1);break;case Fr.Group:this.assignedUsers.fetchDataByGroupId(this.targetId),this.unassignedUsers.fetchDataByGroupId(this.targetId,!1);break}}get isAssignment(){return this.sUnassgnCount>0}get isUnassignment(){return this.sAssgnCount>0}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=Te(e)))(o||e)}})(),e.\u0275cmp=k({type:e,selectors:[["app-user-assignment"]],viewQuery:function(r,o){if(r&1&&($(l7,5),$(d7,5),$(u7,5),$(h7,5)),r&2){let s;V(s=B())&&(o.unassignedUsers=s.first),V(s=B())&&(o.assignedUsers=s.first),V(s=B())&&(o.modules=s.first),V(s=B())&&(o.groups=s.first)}},inputs:{activeTabTitle:"activeTabTitle",activeIndex:"activeIndex"},standalone:!0,features:[R,oe],decls:20,vars:9,consts:[["modules",""],["groups",""],["unassignedUsers",""],["assignedUsers",""],[1,"container-fluid","text-center"],[1,"row","m-0","p-0"],[1,"col-2"],["label","Modul"],[1,"table-content",3,"onSelectedRows"],["label","Gruppen"],[1,"col-5","mt-0","pt-0"],["label","Nicht zugeordnete Benutzer"],[1,"body-content",3,"onSelectedRows","rowSelection","initData"],[1,"col-5"],[3,"label"]],template:function(r,o){r&1&&(f(0,"div",4)(1,"div",5)(2,"div",6)(3,"mat-tab-group")(4,"mat-tab",7),C(5,"app-module-table",8,0),v(),f(7,"mat-tab",9),C(8,"app-group-table",8,1),v()()(),f(10,"div",10)(11,"mat-tab-group")(12,"mat-tab",11),C(13,"app-user-table",12,2),v()()(),f(15,"div",13)(16,"mat-tab-group")(17,"mat-tab",14),C(18,"app-user-table",12,3),v()()()()()),r&2&&(p(5),g("onSelectedRows",o.modulesOnSelectedRows),p(3),g("onSelectedRows",o.groupsOnSelectedRows),p(5),g("onSelectedRows",o.unassignedUsersOnSelectedRows)("rowSelection",o.userRowSelection)("initData",o.initWithoutData),p(4),wo("label",o.userInLabel),p(),g("onSelectedRows",o.assignedUsersOnSelectedRows)("rowSelection",o.userRowSelection)("initData",o.initWithoutData))},dependencies:[Ki,Ii,Qi,Rr,ul,ts]});let n=e;return n})(),Fr=function(n){return n[n.Module=0]="Module",n[n.Group=1]="Group",n}(Fr||{});var zb=(()=>{let e=class e extends Lt{constructor(t,r){super(t,r.apiRoute.userRep)}getAll(t=!1,r=!1,o=!1,s=!1,a){let u=new Pi;return t&&(u=u.set("withUser",t)),r&&(u=u.set("withRepGroup",r)),o&&(u=u.set("withRightGroup",o)),s&&(u=u.set("withRepUser",s)),a&&(u=u.set("userId",a)),this.http.get(`${this.baseUrl}`,{params:u,withCredentials:!0})}};e.\u0275fac=function(r){return new(r||e)(w(Tt),w(Ct))},e.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var G2=(()=>{let e=class e extends Bn{constructor(t,r){super(t,$e.columnNames.userRep,r),this.loading=!1}fetchData(t){this.service.getAll(!1,!0,!0,!0,t).subscribe({next:r=>{this.source=r,this.loading=!1},error:r=>{}})}};e.\u0275fac=function(r){return new(r||e)(l(zb),l(si))},e.\u0275cmp=k({type:e,selectors:[["app-user-rep-table"]],standalone:!0,features:[R,oe],decls:2,vars:14,consts:[["grid",""],[3,"selectedRows","columns","columnMenu","sorting","loading","rowSelection","rowDetail","autoResizeWidth","paging","searching","cellEditing","virtualScroll","infoPanel","titlePanel","theme"]],template:function(r,o){if(r&1){let s=Y();f(0,"gui-grid",1,0),E("selectedRows",function(u){return A(s),F(o.onSelectedRows(u))}),v()}r&2&&g("columns",o.columns)("columnMenu",o.columnMenu)("sorting",o.sorting)("loading",o.loading)("rowSelection",o.rowSelection)("rowDetail",o.rowDetail)("autoResizeWidth",o.autoResizeWidth)("paging",o.paging)("searching",o.searching)("cellEditing",o.cellEditing)("virtualScroll",!0)("infoPanel",o.infoPanel)("titlePanel",o.titlePanel)("theme",o.theme)},dependencies:[J,xt,bi,vi]});let n=e;return n})();var Pr=Un(xn());var m7=["users"],p7=["repUsers"],g7=["repGroups"],f7=["rightGroups"],b7=["userReps"],W2=(()=>{let e=class e extends kn{constructor(t){super(),this.userRepService=t,this.useRepLabel="",this.slUserId=null,this.slRepUserId=null,this.slRepGroupId=null,this.slRightGroupId=null,this.slUserRepId=null,this.initWithoutData=()=>{},this.userOnSelectedRows=r=>{r.length>0&&(this.users.safelyUnselectAll(),this.useRepLabel=`Vertretungen von ${r[0].source?.username}`,this.userReps.fetchData(r[0].source?.id),this.slUserId=r[0].source?.id)},this.rightGroupOnSelectedRows=r=>{r.length>0?this.slRightGroupId=r[0].source?.id:this.slRightGroupId=null},this.repUserOnSelectedRows=r=>{if(r.length==0&&this.slRepUserId){if(!this.slUserId)Pr.default.fire({icon:"error",title:"Oops...",text:"Bitte w\xE4hlen Sie den Benutzer!"});else if(!this.slRepUserId)Pr.default.fire({icon:"error",title:"Oops...",text:"Bitte w\xE4hlen Sie die Vertretungen Benutzer!"});else if(!this.slRightGroupId)Pr.default.fire({icon:"error",title:"Oops...",text:"Bitte w\xE4hlen Sie die Rechte Gruppe!"});else{var o={userId:this.slUserId,rightGroupId:this.slRightGroupId,repUserId:this.slRepUserId,addedWho:"DEFAULT"};this.userRepService.create(o).subscribe({next:s=>{this.slRepUserId=null,this.repUsers.safelyUnselectAll(),this.slUserId!=null&&this.userReps.fetchData(this.slUserId)},error:s=>{Pr.default.fire({icon:"error",title:"Oops...",text:"Dieser Vorgang ist nicht m\xF6glich."})}})}this.slRepUserId=null}else r.length>0&&(this.slRepUserId=r[0].source?.id)},this.repGroupOnSelectedRows=r=>{if(r.length==0&&this.slRepGroupId){if(!this.slUserId)Pr.default.fire({icon:"error",title:"Oops...",text:"Bitte w\xE4hlen Sie den Benutzer!"});else if(!this.slRepGroupId)Pr.default.fire({icon:"error",title:"Oops...",text:"Bitte w\xE4hlen Sie die Vertretungen Gruppe!"});else if(!this.slRightGroupId)Pr.default.fire({icon:"error",title:"Oops...",text:"Bitte w\xE4hlen Sie die rechte Gruppe!"});else{var o={userId:this.slUserId,rightGroupId:this.slRightGroupId,repGroupId:this.slRepGroupId,addedWho:"DEFAULT"};this.userRepService.create(o).subscribe({next:s=>{this.slRepGroupId=null,this.repUsers.safelyUnselectAll(),this.slUserId!=null&&this.userReps.fetchData(this.slUserId)},error:s=>{Pr.default.fire({icon:"error",title:"Oops...",text:"Dieser Vorgang ist nicht m\xF6glich."})}})}this.slRepGroupId=null}else r.length>0&&(this.slRepGroupId=r[0].source?.id)},this.userRepOnSelectedRows=r=>{r.length==0&&this.slUserRepId?this.userRepService.delete(this.slUserRepId).subscribe({next:o=>{this.slUserRepId=null,this.userReps.safelyUnselectAll(),this.slUserId!=null&&this.userReps.fetchData(this.slUserId)},error:o=>{this.slUserRepId=null,this.repUsers.safelyUnselectAll(),Pr.default.fire({icon:"error",title:"Oops...",text:"Dieser Vorgang ist nicht m\xF6glich."})}}):r.length>0&&(this.slUserRepId=r[0].source?.id)},this.groupRepCols=$e.columnNames.group.representative,this.groupRightColumns=$e.columnNames.group.right,this.userRepService=t}ngAfterViewInit(){this.buttonVisibilityService.setVisibleOnly(this.refreshService,this.transferService),this.refreshService.removeAll(),this.refreshService.add(()=>{this.users.fetchData(),this.repUsers.fetchData(),this.repGroups.fetchData(),this.rightGroups.fetchData()}),this.transferService.add(()=>{this.repUsers.safelyUnselectAll(),this.repGroups.safelyUnselectAll(),this.userReps.safelyUnselectAll()})}};e.\u0275fac=function(r){return new(r||e)(l(zb))},e.\u0275cmp=k({type:e,selectors:[["app-user-representation"]],viewQuery:function(r,o){if(r&1&&($(m7,5),$(p7,5),$(g7,5),$(f7,5),$(b7,5)),r&2){let s;V(s=B())&&(o.users=s.first),V(s=B())&&(o.repUsers=s.first),V(s=B())&&(o.repGroups=s.first),V(s=B())&&(o.rightGroups=s.first),V(s=B())&&(o.userReps=s.first)}},standalone:!0,features:[R,oe],decls:25,vars:9,consts:[["users",""],["repUsers",""],["repGroups",""],["rightGroups]",""],["userReps",""],[1,"container-fluid","text-center"],[1,"row"],[1,"col-5"],["label","Benutzer"],[3,"onSelectedRows"],[1,"col-2"],["label","Rep. Benutzer"],["label","Rep. Gruppen"],[3,"columns","onSelectedRows"],["label","Rechte Gruppe"],[1,"col-3"],[3,"label"],[3,"initData","onSelectedRows"]],template:function(r,o){r&1&&(f(0,"div",5)(1,"div",6)(2,"div",7)(3,"mat-tab-group")(4,"mat-tab",8),C(5,"app-user-table",9,0),v()()(),f(7,"div",10)(8,"mat-tab-group")(9,"mat-tab",11),C(10,"app-user-table",9,1),v(),f(12,"mat-tab",12),C(13,"app-group-table",13,2),v()()(),f(15,"div",10)(16,"mat-tab-group")(17,"mat-tab",14),C(18,"app-group-table",13,3),v()()(),f(20,"div",15)(21,"mat-tab-group")(22,"mat-tab",16),C(23,"app-user-rep-table",17,4),v()()()()()),r&2&&(p(5),g("onSelectedRows",o.userOnSelectedRows),p(5),g("onSelectedRows",o.repUserOnSelectedRows),p(3),g("columns",o.groupRepCols)("onSelectedRows",o.repGroupOnSelectedRows),p(5),g("columns",o.groupRightColumns)("onSelectedRows",o.rightGroupOnSelectedRows),p(4),wo("label",o.useRepLabel),p(),g("initData",o.initWithoutData)("onSelectedRows",o.userRepOnSelectedRows))},dependencies:[Ki,Ii,Qi,Rr,ts,G2]});let n=e;return n})();var q2=[{path:"",component:hD},{path:"user-table",component:F2,canActivate:[_c]},{path:"group-table",component:z2,canActivate:[_c]},{path:"module-table",component:H2,canActivate:[_c]},{path:"user-assignment",component:U2,canActivate:[_c]},{path:"user-representation",component:W2,canActivate:[_c]}];var v7="@",_7=(()=>{let e=class e{constructor(t,r,o,s,a){this.doc=t,this.delegate=r,this.zone=o,this.animationType=s,this.moduleImpl=a,this._rendererFactoryPromise=null,this.scheduler=M(ME,{optional:!0})}ngOnDestroy(){this._engine?.flush()}loadImpl(){return(this.moduleImpl??import("./chunk-DQQFCPJ2.js")).catch(r=>{throw new Ye(5300,!1)}).then(({\u0275createEngine:r,\u0275AnimationRendererFactory:o})=>{this._engine=r(this.animationType,this.doc,this.scheduler);let s=new o(this.delegate,this._engine,this.zone);return this.delegate=s,s})}createRenderer(t,r){let o=this.delegate.createRenderer(t,r);if(o.\u0275type===0)return o;typeof o.throwOnSyntheticProps=="boolean"&&(o.throwOnSyntheticProps=!1);let s=new r1(o);return r?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(a=>{let u=a.createRenderer(t,r);s.use(u)}).catch(a=>{s.use(o)}),s}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}};e.\u0275fac=function(r){Va()},e.\u0275prov=D({token:e,factory:e.\u0275fac});let n=e;return n})(),r1=class{constructor(e){this.delegate=e,this.replay=[],this.\u0275type=1}use(e){if(this.delegate=e,this.replay!==null){for(let i of this.replay)i(e);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(e,i){return this.delegate.createElement(e,i)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}get destroyNode(){return this.delegate.destroyNode}appendChild(e,i){this.delegate.appendChild(e,i)}insertBefore(e,i,t,r){this.delegate.insertBefore(e,i,t,r)}removeChild(e,i,t){this.delegate.removeChild(e,i,t)}selectRootElement(e,i){return this.delegate.selectRootElement(e,i)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,i,t,r){this.delegate.setAttribute(e,i,t,r)}removeAttribute(e,i,t){this.delegate.removeAttribute(e,i,t)}addClass(e,i){this.delegate.addClass(e,i)}removeClass(e,i){this.delegate.removeClass(e,i)}setStyle(e,i,t,r){this.delegate.setStyle(e,i,t,r)}removeStyle(e,i,t){this.delegate.removeStyle(e,i,t)}setProperty(e,i,t){this.shouldReplay(i)&&this.replay.push(r=>r.setProperty(e,i,t)),this.delegate.setProperty(e,i,t)}setValue(e,i){this.delegate.setValue(e,i)}listen(e,i,t){return this.shouldReplay(i)&&this.replay.push(r=>r.listen(e,i,t)),this.delegate.listen(e,i,t)}shouldReplay(e){return this.replay!==null&&e.startsWith(v7)}};function Y2(n="animations"){return zh("NgAsyncAnimations"),_o([{provide:Ba,useFactory:(e,i,t)=>new _7(e,i,t,n),deps:[ae,im,he]},{provide:lt,useValue:n==="noop"?"NoopAnimations":"BrowserAnimations"}])}var o1=new Z("API_URL");var Q2={providers:[pS(q2),kk(),Y2(),pk(gk()),{provide:HE,useFactory:n=>n.getBaseHref(),deps:[Ct]},{provide:o1,useFactory:n=>n.getApiUrl(),deps:[Ct]},{provide:o1,useFactory:n=>n.getApiUrl(),deps:[Ct]}]};var s1=n=>({active:n,"dropdown-item d-flex align-items-center":!0}),K2=(()=>{let e=class e{constructor(t){this.cModeService=t,this.Themes=ui,this.theme=dl()}ngOnInit(){this.cModeService.updateTheme()}onClick(t){this.theme=t;let r=t;this.cModeService.setTheme(r)}};e.\u0275fac=function(r){return new(r||e)(l(si))},e.\u0275cmp=k({type:e,selectors:[["app-color-mode-bttn"]],standalone:!0,features:[oe],decls:40,vars:15,consts:[["xmlns","http://www.w3.org/2000/svg",1,"d-none"],["id","check2","viewBox","0 0 16 16"],["d","M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z"],["id","circle-half","viewBox","0 0 16 16"],["d","M8 15A7 7 0 1 0 8 1v14zm0 1A8 8 0 1 1 8 0a8 8 0 0 1 0 16z"],["id","moon-stars-fill","viewBox","0 0 16 16"],["d","M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278z"],["d","M10.794 3.148a.217.217 0 0 1 .412 0l.387 1.162c.173.518.579.924 1.097 1.097l1.162.387a.217.217 0 0 1 0 .412l-1.162.387a1.734 1.734 0 0 0-1.097 1.097l-.387 1.162a.217.217 0 0 1-.412 0l-.387-1.162A1.734 1.734 0 0 0 9.31 6.593l-1.162-.387a.217.217 0 0 1 0-.412l1.162-.387a1.734 1.734 0 0 0 1.097-1.097l.387-1.162zM13.863.099a.145.145 0 0 1 .274 0l.258.774c.115.346.386.617.732.732l.774.258a.145.145 0 0 1 0 .274l-.774.258a1.156 1.156 0 0 0-.732.732l-.258.774a.145.145 0 0 1-.274 0l-.258-.774a1.156 1.156 0 0 0-.732-.732l-.774-.258a.145.145 0 0 1 0-.274l.774-.258c.346-.115.617-.386.732-.732L13.863.1z"],["id","sun-fill","viewBox","0 0 16 16"],["d","M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z"],[1,"dropdown","bd-mode-toggle"],["id","bd-theme","type","button","aria-expanded","false","data-bs-toggle","dropdown","aria-label","Toggle theme (auto)",1,"btn","py-2","dropdown-toggle","d-flex","align-items-center"],["width","1em","height","1em","viewBox","0 0 16 16",1,"bi","my-1","theme-icon-active"],["href","#circle-half"],["href","#sun-fill"],["href","#moon-stars-fill"],["id","bd-theme-text",1,"visually-hidden"],["aria-labelledby","bd-theme-text",1,"dropdown-menu","dropdown-menu-end","shadow"],["type","button","data-bs-theme-value","light","aria-pressed","false",3,"click","ngClass"],["width","1em","height","1em",1,"bi","me-2","opacity-50"],["width","1em","height","1em",1,"bi","ms-auto","d-none"],["href","#check2"],["type","button","data-bs-theme-value","dark","aria-pressed","false",3,"click","ngClass"],["type","button","data-bs-theme-value","auto","aria-pressed","true",3,"click","ngClass"]],template:function(r,o){r&1&&(mt(),f(0,"svg",0)(1,"symbol",1),C(2,"path",2),v(),f(3,"symbol",3),C(4,"path",4),v(),f(5,"symbol",5),C(6,"path",6)(7,"path",7),v(),f(8,"symbol",8),C(9,"path",9),v()(),Gn(),f(10,"div",10)(11,"button",11),mt(),f(12,"svg",12),C(13,"use",13)(14,"use",14)(15,"use",15),v(),Gn(),f(16,"span",16),T(17,"Toggle theme"),v()(),f(18,"ul",17)(19,"li")(20,"button",18),E("click",function(){return o.onClick(o.Themes.Light)}),mt(),f(21,"svg",19),C(22,"use",14),v(),T(23," Light "),f(24,"svg",20),C(25,"use",21),v()()(),Gn(),f(26,"li")(27,"button",22),E("click",function(){return o.onClick(o.Themes.Dark)}),mt(),f(28,"svg",19),C(29,"use",15),v(),T(30," Dark "),f(31,"svg",20),C(32,"use",21),v()()(),Gn(),f(33,"li")(34,"button",23),E("click",function(){return o.onClick(o.Themes.Auto)}),mt(),f(35,"svg",19),C(36,"use",13),v(),T(37," Auto "),f(38,"svg",20),C(39,"use",21),v()()()()()),r&2&&(p(13),X("hide",o.theme!==o.Themes.Auto),p(),X("hide",o.theme!==o.Themes.Light),p(),X("hide",o.theme!==o.Themes.Dark),p(5),g("ngClass",zt(9,s1,o.theme==o.Themes.Light)),p(7),g("ngClass",zt(11,s1,o.theme==o.Themes.Dark)),p(7),g("ngClass",zt(13,s1,o.theme==o.Themes.Auto)))},dependencies:[J,Dt],styles:[".bi[_ngcontent-%COMP%]{vertical-align:-.125em;fill:currentColor}.hide[_ngcontent-%COMP%]{display:none}"]});let n=e;return n})();var y7=0,X2="mat-badge-content",Hb=new Set,w7=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=k({type:e,selectors:[["ng-component"]],standalone:!0,features:[oe],decls:0,vars:0,template:function(r,o){},styles:[".mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color);color:var(--mat-badge-text-color);font-family:var(--mat-badge-text-font);font-weight:var(--mat-badge-text-weight);border-radius:var(--mat-badge-container-shape)}.cdk-high-contrast-active .mat-badge-content{outline:solid 1px;border-radius:0}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color);color:var(--mat-badge-disabled-state-text-color)}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, unset);height:var(--mat-badge-legacy-small-size-container-size, unset);min-width:var(--mat-badge-small-size-container-size, unset);min-height:var(--mat-badge-small-size-container-size, unset);line-height:var(--mat-badge-legacy-small-size-container-size, var(--mat-badge-small-size-container-size));padding:var(--mat-badge-small-size-container-padding);font-size:var(--mat-badge-small-size-text-size);margin:var(--mat-badge-small-size-container-offset)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, unset);height:var(--mat-badge-legacy-container-size, unset);min-width:var(--mat-badge-container-size, unset);min-height:var(--mat-badge-container-size, unset);line-height:var(--mat-badge-legacy-container-size, var(--mat-badge-container-size));padding:var(--mat-badge-container-padding);font-size:var(--mat-badge-text-size);margin:var(--mat-badge-container-offset)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, unset);height:var(--mat-badge-legacy-large-size-container-size, unset);min-width:var(--mat-badge-large-size-container-size, unset);min-height:var(--mat-badge-large-size-container-size, unset);line-height:var(--mat-badge-legacy-large-size-container-size, var(--mat-badge-large-size-container-size));padding:var(--mat-badge-large-size-container-padding);font-size:var(--mat-badge-large-size-text-size);margin:var(--mat-badge-large-size-container-offset)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset)}"],encapsulation:2,changeDetection:0});let n=e;return n})(),Z2=(()=>{let e=class e{get color(){return this._color}set color(t){this._setColor(t),this._color=t}get content(){return this._content}set content(t){this._updateRenderedContent(t)}get description(){return this._description}set description(t){this._updateDescription(t)}constructor(t,r,o,s,a){this._ngZone=t,this._elementRef=r,this._ariaDescriber=o,this._renderer=s,this._animationMode=a,this._color="primary",this.overlap=!0,this.position="above after",this.size="medium",this._id=y7++,this._isInitialized=!1,this._interactivityChecker=M(Is),this._document=M(ae);let u=M(Jt);if(!Hb.has(u)){Hb.add(u);let b=jE(w7,{environmentInjector:M(dr)});u.onDestroy(()=>{Hb.delete(u),Hb.size===0&&b.destroy()})}}isAbove(){return this.position.indexOf("below")===-1}isAfter(){return this.position.indexOf("before")===-1}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){let t=this._renderer.createElement("span"),r="mat-badge-active";return t.setAttribute("id",`mat-badge-content-${this._id}`),t.setAttribute("aria-hidden","true"),t.classList.add(X2),this._animationMode==="NoopAnimations"&&t.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(t),typeof requestAnimationFrame=="function"&&this._animationMode!=="NoopAnimations"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{t.classList.add(r)})}):t.classList.add(r),t}_updateRenderedContent(t){let r=`${t??""}`.trim();this._isInitialized&&r&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=r),this._content=r}_updateDescription(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!t||this._isHostInteractive())&&this._removeInlineDescription(),this._description=t,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,t):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(t){let r=this._elementRef.nativeElement.classList;r.remove(`mat-badge-${this._color}`),t&&r.add(`mat-badge-${t}`)}_clearExistingBadges(){let t=this._elementRef.nativeElement.querySelectorAll(`:scope > .${X2}`);for(let r of Array.from(t))r!==this._badgeElement&&r.remove()}};e.\u0275fac=function(r){return new(r||e)(l(he),l(S),l(Bm),l(ut),l(lt,8))},e.\u0275dir=G({type:e,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(r,o){r&2&&X("mat-badge-overlap",o.overlap)("mat-badge-above",o.isAbove())("mat-badge-below",!o.isAbove())("mat-badge-before",!o.isAfter())("mat-badge-after",o.isAfter())("mat-badge-small",o.size==="small")("mat-badge-medium",o.size==="medium")("mat-badge-large",o.size==="large")("mat-badge-hidden",o.hidden||!o.content)("mat-badge-disabled",o.disabled)},inputs:{color:[U.None,"matBadgeColor","color"],overlap:[U.HasDecoratorInputTransform,"matBadgeOverlap","overlap",Ce],disabled:[U.HasDecoratorInputTransform,"matBadgeDisabled","disabled",Ce],position:[U.None,"matBadgePosition","position"],content:[U.None,"matBadge","content"],description:[U.None,"matBadgeDescription","description"],size:[U.None,"matBadgeSize","size"],hidden:[U.HasDecoratorInputTransform,"matBadgeHidden","hidden",Ce]},standalone:!0,features:[at]});let n=e;return n})(),J2=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=H({type:e}),e.\u0275inj=z({imports:[Hm,et,et]});let n=e;return n})();var C7=["switch"],I7=["*"];function E7(n,e){n&1&&(f(0,"div",10),mt(),f(1,"svg",12),C(2,"path",13),v(),f(3,"svg",14),C(4,"path",15),v()())}var k7=new Z("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1})}),S7={provide:Wr,useExisting:Pt(()=>eR),multi:!0},Ub=class{constructor(e,i){this.source=e,this.checked=i}},D7=0,eR=(()=>{let e=class e{_createChangeEvent(t){return new Ub(this,t)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(t){this._checked=t,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(t,r,o,s,a,u){this._elementRef=t,this._focusMonitor=r,this._changeDetectorRef=o,this.defaults=a,this._onChange=b=>{},this._onTouched=()=>{},this._validatorOnChange=()=>{},this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.change=new Q,this.toggleChange=new Q,this.tabIndex=parseInt(s)||0,this.color=a.color||"accent",this._noopAnimations=u==="NoopAnimations",this.id=this._uniqueId=`mat-mdc-slide-toggle-${++D7}`,this.hideIcon=a.hideIcon??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t==="keyboard"||t==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):t||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(t){t.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}validate(t){return this.required&&t.value!==!0?{required:!0}:null}registerOnValidatorChange(t){this._validatorOnChange=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new Ub(this,this.checked)))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}};e.\u0275fac=function(r){return new(r||e)(l(S),l(Xn),l(ee),Mi("tabindex"),l(k7),l(lt,8))},e.\u0275cmp=k({type:e,selectors:[["mat-slide-toggle"]],viewQuery:function(r,o){if(r&1&&$(C7,5),r&2){let s;V(s=B())&&(o._switchElement=s.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(r,o){r&2&&(Ai("id",o.id),Me("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Ri(o.color?"mat-"+o.color:""),X("mat-mdc-slide-toggle-focused",o._focused)("mat-mdc-slide-toggle-checked",o.checked)("_mat-animation-noopable",o._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[U.None,"aria-label","ariaLabel"],ariaLabelledby:[U.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[U.None,"aria-describedby","ariaDescribedby"],required:[U.HasDecoratorInputTransform,"required","required",Ce],color:"color",disabled:[U.HasDecoratorInputTransform,"disabled","disabled",Ce],disableRipple:[U.HasDecoratorInputTransform,"disableRipple","disableRipple",Ce],tabIndex:[U.HasDecoratorInputTransform,"tabIndex","tabIndex",t=>t==null?0:Lr(t)],checked:[U.HasDecoratorInputTransform,"checked","checked",Ce],hideIcon:[U.HasDecoratorInputTransform,"hideIcon","hideIcon",Ce]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],standalone:!0,features:[_e([S7,{provide:Jn,useExisting:e,multi:!0}]),at,re,oe],ngContentSelectors:I7,decls:13,vars:24,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(r,o){if(r&1){let s=Y();Ke(),f(0,"div",1)(1,"button",2,0),E("click",function(){return A(s),F(o._handleClick())}),C(3,"div",3),f(4,"div",4)(5,"div",5)(6,"div",6),C(7,"div",7),v(),f(8,"div",8),C(9,"div",9),v(),j(10,E7,5,0,"div",10),v()()(),f(11,"label",11),E("click",function(u){return A(s),F(u.stopPropagation())}),Oe(12),v()()}if(r&2){let s=wi(2);g("labelPosition",o.labelPosition),p(),X("mdc-switch--selected",o.checked)("mdc-switch--unselected",!o.checked)("mdc-switch--checked",o.checked)("mdc-switch--disabled",o.disabled),g("tabIndex",o.disabled?-1:o.tabIndex)("disabled",o.disabled),Me("id",o.buttonId)("name",o.name)("aria-label",o.ariaLabel)("aria-labelledby",o._getAriaLabelledBy())("aria-describedby",o.ariaDescribedby)("aria-required",o.required||null)("aria-checked",o.checked),p(8),g("matRippleTrigger",s)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),p(),nt(10,o.hideIcon?-1:10),p(),g("for",o.buttonId),Me("id",o._labelId)}},dependencies:[$r,Gm],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)}.mdc-switch{width:var(--mdc-switch-track-width)}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color)}.mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color)}.mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation)}.mdc-switch .mdc-switch__focus-ring-wrapper,.mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height)}.mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape)}.mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width)}.mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width))}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size)}.mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size);width:var(--mdc-switch-state-layer-size)}.mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height)}.mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color)}.mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color)}.mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:opacity 75ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mdc-switch__handle{transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size);height:var(--mat-switch-unselected-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size);height:var(--mat-switch-selected-handle-size)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size);height:var(--mat-switch-with-icon-handle-size)}.mat-mdc-slide-toggle:active .mdc-switch:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size);height:var(--mat-switch-pressed-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{margin:var(--mat-switch-selected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{margin:var(--mat-switch-unselected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--selected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--unselected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin)}.mdc-switch__track::after,.mdc-switch__track::before{border-width:var(--mat-switch-track-outline-width);border-color:var(--mat-switch-track-outline-color)}.mdc-switch--selected .mdc-switch__track::after,.mdc-switch--selected .mdc-switch__track::before{border-width:var(--mat-switch-selected-track-outline-width)}.mdc-switch--disabled .mdc-switch__track::after,.mdc-switch--disabled .mdc-switch__track::before{border-width:var(--mat-switch-disabled-unselected-track-outline-width);border-color:var(--mat-switch-disabled-unselected-track-outline-color)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity)}'],encapsulation:2,changeDetection:0});let n=e;return n})();var tR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=H({type:e}),e.\u0275inj=z({imports:[eR,et,et]});let n=e;return n})();var T7=["tooltip"],rR=20;var oR=new Z("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let n=M(pi);return()=>n.scrollStrategies.reposition({scrollThrottle:rR})}});function M7(n){return()=>n.scrollStrategies.reposition({scrollThrottle:rR})}var R7={provide:oR,deps:[pi],useFactory:M7};function A7(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var F7=new Z("mat-tooltip-default-options",{providedIn:"root",factory:A7});var iR="tooltip-panel",nR=In({passive:!0}),P7=8,O7=8,N7=24,j7=200,$b=(()=>{let e=class e{get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=vr(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){this._disabled=vr(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=qn(t)}get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=qn(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=t!=null?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(t,r,o,s,a,u,b,y,I,N,K,de){this._overlay=t,this._elementRef=r,this._scrollDispatcher=o,this._viewContainerRef=s,this._ngZone=a,this._platform=u,this._ariaDescriber=b,this._focusMonitor=y,this._dir=N,this._defaultOptions=K,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=L7,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new ue,this._scrollStrategy=I,this._document=de,K&&(this._showDelay=K.showDelay,this._hideDelay=K.hideDelay,K.position&&(this.position=K.position),K.positionAtOrigin&&(this.positionAtOrigin=K.positionAtOrigin),K.touchGestures&&(this.touchGestures=K.touchGestures)),N.change.pipe(ce(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=P7}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ce(this._destroyed)).subscribe(t=>{t?t==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([r,o])=>{t.removeEventListener(r,o,nR)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,r){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let o=this._createOverlay(r);this._detach(),this._portal=this._portal||new Ao(this._tooltipComponent,this._viewContainerRef);let s=this._tooltipInstance=o.attach(this._portal).instance;s._triggerElement=this._elementRef.nativeElement,s._mouseLeaveHideDelay=this._hideDelay,s.afterHidden().pipe(ce(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),s.show(t)}hide(t=this.hideDelay){let r=this._tooltipInstance;r&&(r.isVisible()?r.hide(t):(r._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){let s=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&s._origin instanceof S)return this._overlayRef;this._detach()}let r=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?t||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(r);return o.positionChanges.pipe(ce(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${iR}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(ce(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(ce(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(ce(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&s.keyCode===27&&!_r(s)&&(s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){let r=t.getConfig().positionStrategy,o=this._getOrigin(),s=this._getOverlayPosition();r.withPositions([this._addOffset(q(q({},o.main),s.main)),this._addOffset(q(q({},o.fallback),s.fallback))])}_addOffset(t){let r=O7,o=!this._dir||this._dir.value=="ltr";return t.originY==="top"?t.offsetY=-r:t.originY==="bottom"?t.offsetY=r:t.originX==="start"?t.offsetX=o?-r:r:t.originX==="end"&&(t.offsetX=o?r:-r),t}_getOrigin(){let t=!this._dir||this._dir.value=="ltr",r=this.position,o;r=="above"||r=="below"?o={originX:"center",originY:r=="above"?"top":"bottom"}:r=="before"||r=="left"&&t||r=="right"&&!t?o={originX:"start",originY:"center"}:(r=="after"||r=="right"&&t||r=="left"&&!t)&&(o={originX:"end",originY:"center"});let{x:s,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:s,originY:a}}}_getOverlayPosition(){let t=!this._dir||this._dir.value=="ltr",r=this.position,o;r=="above"?o={overlayX:"center",overlayY:"bottom"}:r=="below"?o={overlayX:"center",overlayY:"top"}:r=="before"||r=="left"&&t||r=="right"&&!t?o={overlayX:"end",overlayY:"center"}:(r=="after"||r=="right"&&t||r=="left"&&!t)&&(o={overlayX:"start",overlayY:"center"});let{x:s,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:s,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(gt(1),ce(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,r){return this.position==="above"||this.position==="below"?r==="top"?r="bottom":r==="bottom"&&(r="top"):t==="end"?t="start":t==="start"&&(t="end"),{x:t,y:r}}_updateCurrentPositionClass(t){let{overlayY:r,originX:o,originY:s}=t,a;if(r==="center"?this._dir&&this._dir.value==="rtl"?a=o==="end"?"left":"right":a=o==="start"?"left":"right":a=r==="bottom"&&s==="top"?"above":"below",a!==this._currentPosition){let u=this._overlayRef;if(u){let b=`${this._cssClassPrefix}-${iR}-`;u.removePanelClass(b+this._currentPosition),u.addPanelClass(b+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",t=>{this._setupPointerExitEventsIfNeeded();let r;t.x!==void 0&&t.y!==void 0&&(r=t),this.show(void 0,r)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",t=>{let r=t.targetTouches?.[0],o=r?{x:r.clientX,y:r.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout);let s=500;this._touchstartTimeout=setTimeout(()=>this.show(void 0,o),this._defaultOptions.touchLongPressShowDelay??s)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",r=>{let o=r.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",r=>this._wheelListener(r)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let r=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",r],["touchcancel",r])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([r,o])=>{this._elementRef.nativeElement.addEventListener(r,o,nR)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){let r=this._document.elementFromPoint(t.clientX,t.clientY),o=this._elementRef.nativeElement;r!==o&&!o.contains(r)&&this.hide()}}_disableNativeGesturesIfNecessary(){let t=this.touchGestures;if(t!=="off"){let r=this._elementRef.nativeElement,o=r.style;(t==="on"||r.nodeName!=="INPUT"&&r.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(t==="on"||!r.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}};e.\u0275fac=function(r){return new(r||e)(l(pi),l(S),l(oc),l(Ot),l(he),l(Le),l(Bm),l(Xn),l(oR),l(xi),l(F7,8),l(ae))},e.\u0275dir=G({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(r,o){r&2&&X("mat-mdc-tooltip-disabled",o.disabled)},inputs:{position:[U.None,"matTooltipPosition","position"],positionAtOrigin:[U.None,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[U.None,"matTooltipDisabled","disabled"],showDelay:[U.None,"matTooltipShowDelay","showDelay"],hideDelay:[U.None,"matTooltipHideDelay","hideDelay"],touchGestures:[U.None,"matTooltipTouchGestures","touchGestures"],message:[U.None,"matTooltip","message"],tooltipClass:[U.None,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0});let n=e;return n})(),L7=(()=>{let e=class e{constructor(t,r,o){this._changeDetectorRef=t,this._elementRef=r,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new ue,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=o==="NoopAnimations"}show(t){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>N7&&t.width>=j7}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){let r=this._tooltip.nativeElement,o=this._showAnimation,s=this._hideAnimation;if(r.classList.remove(t?s:o),r.classList.add(t?o:s),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(r);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(r.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}};e.\u0275fac=function(r){return new(r||e)(l(ee),l(S),l(lt,8))},e.\u0275cmp=k({type:e,selectors:[["mat-tooltip-component"]],viewQuery:function(r,o){if(r&1&&$(T7,7),r&2){let s;V(s=B())&&(o._tooltip=s.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(r,o){r&1&&E("mouseleave",function(a){return o._handleMouseLeave(a)}),r&2&&Qe("zoom",o.isVisible()?1:null)},standalone:!0,features:[oe],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(r,o){if(r&1){let s=Y();f(0,"div",1,0),E("animationend",function(u){return A(s),F(o._handleAnimationEnd(u))}),f(2,"div",2),T(3),v()()}r&2&&(X("mdc-tooltip--multiline",o._isMultiline),g("ngClass",o.tooltipClass),p(3),ke(o.message))},dependencies:[Dt],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - 2*8px);margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - 2*8px);align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0});let n=e;return n})();var sR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=H({type:e}),e.\u0275inj=z({providers:[R7],imports:[Hm,J,Fm,et,et,Tm]});let n=e;return n})();var B7=()=>["/"],z7=n=>({show:n}),bh=()=>["link-active"],vh=()=>({exact:!0}),H7=()=>["/user-assignment"],U7=()=>["/user-table"],$7=()=>["/group-table"],G7=()=>["/user-representation"],W7=()=>["/module-table"],ka=n=>({visibility:n});function q7(n,e){if(n&1&&(f(0,"div",18)(1,"ul",19)(2,"li",20)(3,"a",21),T(4,"Autorisierung"),v()(),f(5,"li",20)(6,"a",21),T(7,"Benutzer"),v()(),f(8,"li",20)(9,"a",21),T(10,"Gruppen"),v()(),f(11,"li",20)(12,"a",21),T(13,"Vertretung"),v()(),f(14,"li",20)(15,"a",21),T(16,"Module"),v()()()()),n&2){let i=x();g("ngClass",zt(21,z7,i.isExpanded)),p(2),g("routerLinkActive",Bt(23,bh))("routerLinkActiveOptions",Bt(24,vh)),p(),g("routerLink",Bt(25,H7))("routerLinkActive","active"),p(2),g("routerLinkActive",Bt(26,bh))("routerLinkActiveOptions",Bt(27,vh)),p(),g("routerLink",Bt(28,U7))("routerLinkActive","active"),p(2),g("routerLinkActive",Bt(29,bh))("routerLinkActiveOptions",Bt(30,vh)),p(),g("routerLink",Bt(31,$7))("routerLinkActive","active"),p(2),g("routerLinkActive",Bt(32,bh))("routerLinkActiveOptions",Bt(33,vh)),p(),g("routerLink",Bt(34,G7))("routerLinkActive","active"),p(2),g("routerLinkActive",Bt(35,bh))("routerLinkActiveOptions",Bt(36,vh)),p(),g("routerLink",Bt(37,W7))("routerLinkActive","active")}}function Y7(n,e){if(n&1){let i=Y();f(0,"button",22),E("click",function(){A(i);let r=x();return F(r.creationService.openDialog())}),f(1,"mat-icon",23),T(2,"add_to_photos"),v()()}if(n&2){let i=x();g("ngStyle",zt(2,ka,i.creationService.isVisible?"visible":"hidden"))("matTooltipDisabled",!i.creationService.isVisible)}}function Q7(n,e){if(n&1){let i=Y();f(0,"button",24),E("click",function(){A(i);let r=x();return F(r.updateService.toggleEditability())}),f(1,"mat-icon",23),T(2),v()()}if(n&2){let i=x();g("ngStyle",zt(3,ka,i.updateService.isVisible?"visible":"hidden"))("matTooltipDisabled",!i.updateService.isVisible),p(2),ke(i.updateService.isEditable?"lock_open":"lock")}}function K7(n,e){if(n&1){let i=Y();f(0,"button",25),E("click",function(){A(i);let r=x();return F(r.saveAsync())}),f(1,"mat-icon",26),T(2,"save"),v()()}if(n&2){let i=x();g("ngStyle",zt(3,ka,i.updateService.isVisible?"visible":"hidden"))("matTooltipDisabled",!i.updateService.isVisible),p(),g("matBadge",i.updateActCount===0?"":i.updateActCount)}}function X7(n,e){if(n&1){let i=Y();f(0,"button",27),E("click",function(){A(i);let r=x();return F(r.deletionService.executeAll())}),f(1,"mat-icon",23),T(2,"delete_forever"),v()()}if(n&2){let i=x();g("ngStyle",zt(2,ka,i.updateService.isVisible?"visible":"hidden"))("matTooltipDisabled",!i.deletionService.isVisible)}}function Z7(n,e){if(n&1){let i=Y();f(0,"button",28),E("click",function(){A(i);let r=x();return F(r.transferService.executeAll())}),f(1,"mat-icon",29),T(2,"swap_horiz"),v()()}if(n&2){let i=x();g("ngStyle",zt(2,ka,i.transferService.isVisible?"visible":"hidden"))("matTooltipDisabled",!i.transferService.isVisible)}}function J7(n,e){if(n&1){let i=Y();f(0,"button",30),E("click",function(){A(i);let r=x();return F(r.refreshService.executeAll())}),f(1,"mat-icon",31),T(2,"sync"),v()()}if(n&2){let i=x();g("ngStyle",zt(2,ka,i.refreshService.isVisible?"visible":"hidden"))("matTooltipDisabled",!i.refreshService.isVisible)}}function eG(n,e){if(n&1){let i=Y();f(0,"button",32),E("click",function(){A(i);let r=x();return F(r.showInfo())}),f(1,"mat-icon",23),T(2,"contact_support"),v()()}if(n&2){let i=x();g("ngStyle",zt(1,ka,i.buttonVisibilityService.anyVisible?"visible":"hidden"))}}var aR=(()=>{let e=class e{isLogedIn(){return UD()}constructor(t,r,o,s,a,u,b,y){this.dialog=t,this.authService=r,this.refreshService=o,this.creationService=s,this.updateService=a,this.transferService=u,this.buttonVisibilityService=b,this.deletionService=y,this.isExpanded=!1,this.isChecked=!0,this.__tooltip_timeout_set=!1,this.authService.isAuthenticated().then().catch(),this.updateActCount=this.updateService.totalCount,this.updateService.addChangeListener(Em.CountChange,()=>{this.updateActCount=a.totalCount})}get isDarkTheme(){return typeof window<"u"?localStorage.getItem("theme")==="dark":!0}collapse(){this.isExpanded=!1}toggle(){this.isExpanded=!this.isExpanded}auth(){return We(this,null,function*(){if(yield this.authService.isAuthenticated())this.authService.logout().subscribe();else{let r=this.dialog.open(op,{width:"35vw",data:{afterLogin:()=>{r.close()}}})}})}showInfo(){this.tooltips?.forEach(t=>{t.show()}),this.__tooltip_timeout_set||(this.__tooltip_timeout_set=!0,setTimeout(()=>{this.__tooltip_timeout_set=!1,this.tooltips?.forEach(t=>{t.hide()})},3e3))}saveAsync(){return We(this,null,function*(){yield this.updateService.executeAllAsync().then(()=>this.refreshService.executeAll())})}};e.\u0275fac=function(r){return new(r||e)(l(dc),l(vc),l(Cn),l(qm),l(Mo),l(uc),l(tc),l(hc))},e.\u0275cmp=k({type:e,selectors:[["app-nav-menu"]],viewQuery:function(r,o){if(r&1&&$($b,5),r&2){let s;V(s=B())&&(o.tooltips=s)}},standalone:!0,features:[oe],decls:22,vars:13,consts:[[1,"navbar","navbar-expand-lg","bg-body-tertiary","fs-5"],[1,"container-fluid"],["href","https://digitaldata.works/",1,"light-stroke","ms-5"],["fetchpriority","high","width","200vw",3,"src"],["class","navbar-collapse collapse d-sm-inline-flex justify-content-center",3,"ngClass",4,"ngIf"],[1,"navbar-collapse","justify-content-end","me-5"],[1,"navbar-brand",3,"routerLink"],["class","btn","matTooltip","strg + C","matTooltipPosition","below","matTooltipClass","pt-3",3,"ngStyle","matTooltipDisabled","click",4,"ngIf"],["class","btn","matTooltip","strg + L","matTooltipPosition","below",3,"ngStyle","matTooltipDisabled","click",4,"ngIf"],["class","btn","matTooltip","strg + S","matTooltipPosition","below","matTooltipClass","pt-3",3,"ngStyle","matTooltipDisabled","click",4,"ngIf"],["class","btn","matTooltip","entf","matTooltipPosition","below","matTooltipClass","pt-3",3,"ngStyle","matTooltipDisabled","click",4,"ngIf"],["class","btn","matTooltip","strg + \u2423","matTooltipPosition","below",3,"ngStyle","matTooltipDisabled","click",4,"ngIf"],["class","btn","matTooltip","strg + R","matTooltipPosition","below","matTooltipClass","pt-3",3,"ngStyle","matTooltipDisabled","click",4,"ngIf"],["class","btn",3,"ngStyle","click",4,"ngIf"],["type","button","data-toggle","collapse","data-target",".navbar-collapse","aria-label","Toggle navigation",1,"navbar-toggler",3,"click"],[1,"navbar-toggler-icon"],["type","button",1,"fs-5","btn","d-flex","align-items-center","ms-2","me-0","pe-0",3,"click"],["fetchpriority","high","src","../../assets/img/login_logo.svg","alt","",2,"stroke","#a9a8ad"],[1,"navbar-collapse","collapse","d-sm-inline-flex","justify-content-center",3,"ngClass"],[1,"navbar-nav","flex-grow"],[1,"nav-item",3,"routerLinkActive","routerLinkActiveOptions"],[1,"nav-link",3,"routerLink","routerLinkActive"],["matTooltip","strg + C","matTooltipPosition","below","matTooltipClass","pt-3",1,"btn",3,"click","ngStyle","matTooltipDisabled"],[1,"scale-pulse"],["matTooltip","strg + L","matTooltipPosition","below",1,"btn",3,"click","ngStyle","matTooltipDisabled"],["matTooltip","strg + S","matTooltipPosition","below","matTooltipClass","pt-3",1,"btn",3,"click","ngStyle","matTooltipDisabled"],[1,"scale-pulse",3,"matBadge"],["matTooltip","entf","matTooltipPosition","below","matTooltipClass","pt-3",1,"btn",3,"click","ngStyle","matTooltipDisabled"],["matTooltip","strg + \u2423","matTooltipPosition","below",1,"btn",3,"click","ngStyle","matTooltipDisabled"],[1,"move-left-right"],["matTooltip","strg + R","matTooltipPosition","below","matTooltipClass","pt-3",1,"btn",3,"click","ngStyle","matTooltipDisabled"],[1,"turn-360"],[1,"btn",3,"click","ngStyle"]],template:function(r,o){r&1&&(f(0,"header")(1,"nav",0)(2,"div",1)(3,"a",2),C(4,"img",3),v(),j(5,q7,17,38,"div",4),f(6,"div",5)(7,"a",6),T(8,"User Manager Portal"),v(),j(9,Y7,3,4,"button",7)(10,Q7,3,5,"button",8)(11,K7,3,5,"button",9)(12,X7,3,4,"button",10)(13,Z7,3,4,"button",11)(14,J7,3,4,"button",12)(15,eG,3,3,"button",13),f(16,"button",14),E("click",function(){return o.toggle()}),C(17,"span",15),v(),C(18,"app-color-mode-bttn"),f(19,"button",16),E("click",function(){return o.auth()}),C(20,"img",17),T(21),v()()()()()),r&2&&(p(4),g("src",o.isDarkTheme?"../../assets/img/DD_white.svg":"../../assets/img/digital_data.svg",La),p(),g("ngIf",o.isLogedIn()),p(2),g("routerLink",Bt(12,B7)),p(2),g("ngIf",o.isLogedIn()),p(),g("ngIf",o.isLogedIn()),p(),g("ngIf",o.isLogedIn()),p(),g("ngIf",o.isLogedIn()),p(),g("ngIf",o.isLogedIn()),p(),g("ngIf",o.isLogedIn()),p(),g("ngIf",o.isLogedIn()),p(),Me("aria-expanded",o.isExpanded),p(5),we(" ",o.isLogedIn()?"Log out":"Log in"," "))},dependencies:[_S,_m,hS,J,Dt,rt,qh,K2,gl,pl,J2,Z2,tR,xt,fl,sR,$b],styles:["a.navbar-brand[_ngcontent-%COMP%]{white-space:normal;text-align:center;word-break:break-all}html[_ngcontent-%COMP%]{font-size:14px}@media (min-width: 768px){html[_ngcontent-%COMP%]{font-size:16px}}.box-shadow[_ngcontent-%COMP%]{box-shadow:0 .25rem .75rem #0000000d}.bd-placeholder-img[_ngcontent-%COMP%]{font-size:1.125rem;text-anchor:middle;-webkit-user-select:none;-moz-user-select:none;user-select:none}@media (min-width: 768px){.bd-placeholder-img-lg[_ngcontent-%COMP%]{font-size:3.5rem}}.b-example-divider[_ngcontent-%COMP%]{width:100%;height:3rem;background-color:#0000001a;border:solid rgba(0,0,0,.15);border-width:1px 0;box-shadow:inset 0 .5em 1.5em #0000001a,inset 0 .125em .5em #00000026}.b-example-vr[_ngcontent-%COMP%]{flex-shrink:0;width:1.5rem;height:100vh}.bi[_ngcontent-%COMP%]{vertical-align:-.125em;fill:currentColor}.nav-scroller[_ngcontent-%COMP%]{position:relative;z-index:2;height:2.75rem;overflow-y:hidden}.nav-scroller[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;padding-bottom:1rem;margin-top:-1px;overflow-x:auto;text-align:center;white-space:nowrap;-webkit-overflow-scrolling:touch}.btn-bd-primary[_ngcontent-%COMP%]{--bd-violet-bg: #712cf9;--bd-violet-rgb: 112.520718, 44.062154, 249.437846;--bs-btn-font-weight: 600;--bs-btn-color: var(--bs-white);--bs-btn-bg: var(--bd-violet-bg);--bs-btn-border-color: var(--bd-violet-bg);--bs-btn-hover-color: var(--bs-white);--bs-btn-hover-bg: #6528e0;--bs-btn-hover-border-color: #6528e0;--bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);--bs-btn-active-color: var(--bs-btn-hover-color);--bs-btn-active-bg: #5a23c8;--bs-btn-active-border-color: #5a23c8}.bd-mode-toggle[_ngcontent-%COMP%]{z-index:1500}.bd-mode-toggle[_ngcontent-%COMP%]   .dropdown-menu[_ngcontent-%COMP%]   .active[_ngcontent-%COMP%]   .bi[_ngcontent-%COMP%]{display:block!important}.turn-360[_ngcontent-%COMP%]:hover{animation:_ngcontent-%COMP%_rotate 1s ease forwards}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.scale-pulse[_ngcontent-%COMP%]:hover{animation:_ngcontent-%COMP%_pulse 1s ease forwards}@keyframes _ngcontent-%COMP%_pulse{0%{transform:scale(1)}50%{transform:scale(1.2)}to{transform:scale(1)}}.move-left-right[_ngcontent-%COMP%]:hover{animation:_ngcontent-%COMP%_move .8s ease forwards}@keyframes _ngcontent-%COMP%_move{0%{transform:translate(0)}25%{transform:translate(-10px)}75%{transform:translate(10px)}to{transform:translate(0)}}"]});let n=e;return n})();var cR=(()=>{let e=class e{constructor(){this.title="app",this.transferService=M(uc),this.updateService=M(Mo),this.refreshService=M(Cn),this.deletionService=M(hc)}handleCtrlS(t){t.preventDefault(),this.updateService.executeAllAsync().then(()=>this.refreshService.executeAll())}handleCtrlR(t){t.preventDefault(),this.refreshService.executeAll()}handleDelete(t){t.preventDefault(),this.deletionService.executeAll()}handleCtrlSpace(t){t.preventDefault(),this.transferService.executeAll()}handleCtrlL(t){t.preventDefault(),this.updateService.toggleEditability()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=k({type:e,selectors:[["app-root"]],hostBindings:function(r,o){r&1&&E("keydown.control.s",function(a){return o.handleCtrlS(a)},!1,yo)("keydown.control.r",function(a){return o.handleCtrlR(a)},!1,yo)("keydown.delete",function(a){return o.handleDelete(a)},!1,yo)("keydown.control.space",function(a){return o.handleCtrlSpace(a)},!1,yo)("keydown.control.l",function(a){return o.handleCtrlL(a)},!1,yo)},standalone:!0,features:[oe],decls:3,vars:0,consts:[[1,"container-fluid"]],template:function(r,o){r&1&&(C(0,"app-nav-menu"),f(1,"main",0),C(2,"router-outlet"),v())},dependencies:[C0,aR]});let n=e;return n})();Ck(cR,Q2).catch(n=>console.error(n));
