import{$ as yi,$a as DM,$b as rt,$c as Rt,A as lr,Aa as vM,Ab as RM,Ac as Gh,B as Nh,Ba as he,Bb as zx,Bc as Ui,C as Of,Ca as V,Cb as Vf,Cc as PM,D as Pa,Da as j,Db as H,Dc as Hf,E as Pr,Ea as It,Eb as De,Ec as NM,F as Bn,Fa as dr,Fb as w,Fc as ce,G as _o,Ga as Ge,Gb as ft,Gc as VM,H as St,Ha as Bi,Hb as ie,Hc as jM,I as et,Ia as Pe,Ib as FM,Ic as xe,J as cM,Ja as Zc,Jb as Di,Jc as jr,K as Ox,Ka as _M,Kb as OM,Kc as Wx,L as Nr,La as P,Lb as Ue,Lc as Gx,M as Ps,Ma as Y,Mb as Yo,Mc as LM,N as Ns,Na as Lh,Nb as qo,Nc as BM,O as Px,Oa as yM,Ob as Qo,Oc as el,P as gt,Pa as Bh,Pb as f,Pc as zM,Q as lM,Qa as wM,Qb as v,Qc as HM,R as Na,Ra as Xt,Rb as E,Rc as ye,S as Vr,Sa as Et,Sb as nt,Sc as UM,T as Vs,Ta as zh,Tb as at,Tc as $h,U as Nx,Ua as Pf,Ub as Hd,Uc as WM,V as dM,Va as jd,Vb as oe,Vc as GM,W as uM,Wa as Ld,Wb as zi,Wc as $M,X as hM,Xa as xM,Xb as jf,Xc as ja,Y as mM,Ya as CM,Yb as A,Yc as Uf,Z as Vx,Za as IM,Zb as Lf,Zc as $t,_ as Va,_a as kM,_b as S,_c as Mi,a as ne,aa as ki,ab as SM,ac as Ne,ad as YM,b as xt,ba as _e,bb as EM,bc as Hs,bd as qM,c as Tf,ca as pM,cb as ur,cc as Ht,cd as Wf,d as oM,da as Kt,db as Jc,dc as Z,dd as tl,e as Rx,ea as gM,eb as Bd,ec as G,ed as Us,f as rn,fa as Ct,fb as TM,fc as $,fd as le,g as Mf,ga as ci,gb as Bs,gc as Si,gd as QM,h as yt,ha as N,hb as Hh,hc as T,hd as Hn,i as pt,ia as K,ib as Uh,ic as Ee,id as Yh,j as aM,ja as fM,jb as b,jc as Oe,jd as KM,k as Lt,ka as re,kb as l,kc as gn,kd as Gf,l as Fx,la as jx,lb as zs,lc as Hi,m as Af,ma as k,mb as tt,mc as fn,n as ue,na as F,nb as MM,nc as Ae,nd as Lr,o as si,oa as js,ob as Bt,oc as se,od as on,p as Rf,pa as Xc,pb as zd,pc as Ei,pd as $x,q as Or,qa as Vh,qb as zt,qc as Ti,r as Vd,ra as z,rb as Nf,rc as Wh,rd as Zt,s as Li,sa as R,sb as be,sc as Hx,sd as Un,t as we,ta as X,tb as Lx,tc as Re,td as Yx,u as Kc,ua as J,ub as ri,uc as Le,ud as Wi,v as Ff,va as jh,vb as Bx,vc as hr,vd as qh,w as sM,wa as Ls,wb as zn,wc as wt,wd as Qh,x as Ln,xa as bM,xb as AM,xc as Bf,y as je,ya as Go,yb as L,yc as zf,z as Oa,za as $o,zb as ct,zc as Ux}from"./chunk-BERTLP66.js";var Mn=Rx((ea,ZC)=>{"use strict";(function(n,t){typeof ea=="object"&&typeof ZC<"u"?ZC.exports=t():typeof define=="function"&&define.amd?define(t):(n=typeof globalThis<"u"?globalThis:n||self,n.Sweetalert2=t())})(ea,function(){"use strict";function n(y,u){(u==null||u>y.length)&&(u=y.length);for(var h=0,_=Array(u);h<u;h++)_[h]=y[h];return _}function t(y){if(Array.isArray(y))return y}function i(y){if(Array.isArray(y))return n(y)}function e(y,u,h){if(typeof y=="function"?y===u:y.has(u))return arguments.length<3?u:h;throw new TypeError("Private element is not present on this object")}function r(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}function o(y,u,h){return u=te(u),Pn(y,$e()?Reflect.construct(u,h||[],te(y).constructor):u.apply(y,h))}function a(y,u){if(u.has(y))throw new TypeError("Cannot initialize the same private elements twice on an object")}function c(y,u){if(!(y instanceof u))throw new TypeError("Cannot call a class as a function")}function m(y,u){return y.get(e(y,u))}function x(y,u,h){a(y,u),u.set(y,h)}function I(y,u,h){return y.set(e(y,u),h),h}function O(y,u,h){if($e())return Reflect.construct.apply(null,arguments);var _=[null];_.push.apply(_,u);var D=new(y.bind.apply(y,_));return D}function B(y,u){for(var h=0;h<u.length;h++){var _=u[h];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(y,fs(_.key),_)}}function ae(y,u,h){return u&&B(y.prototype,u),Object.defineProperty(y,"prototype",{writable:!1}),y}function ee(y,u){var h=typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(!h){if(Array.isArray(y)||(h=wa(y))||u){h&&(y=h);var _=0,D=function(){};return{s:D,n:function(){return _>=y.length?{done:!0}:{done:!1,value:y[_++]}},e:function(We){throw We},f:D}}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 U,fe=!0,qe=!1;return{s:function(){h=h.call(y)},n:function(){var We=h.next();return fe=We.done,We},e:function(We){qe=!0,U=We},f:function(){try{fe||h.return==null||h.return()}finally{if(qe)throw U}}}}function Se(){return Se=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(y,u,h){var _=gs(y,u);if(_){var D=Object.getOwnPropertyDescriptor(_,u);return D.get?D.get.call(arguments.length<3?y:h):D.value}},Se.apply(null,arguments)}function te(y){return te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(u){return u.__proto__||Object.getPrototypeOf(u)},te(y)}function ge(y,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(u&&u.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),u&&ti(y,u)}function $e(){try{var y=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($e=function(){return!!y})()}function ei(y){if(typeof Symbol<"u"&&y[Symbol.iterator]!=null||y["@@iterator"]!=null)return Array.from(y)}function Pt(y,u){var h=y==null?null:typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(h!=null){var _,D,U,fe,qe=[],We=!0,jt=!1;try{if(U=(h=h.call(y)).next,u!==0)for(;!(We=(_=U.call(h)).done)&&(qe.push(_.value),qe.length!==u);We=!0);}catch(Wo){jt=!0,D=Wo}finally{try{if(!We&&h.return!=null&&(fe=h.return(),Object(fe)!==fe))return}finally{if(jt)throw D}}return qe}}function en(){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 Qt(){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 Pn(y,u){if(u&&(typeof u=="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return r(y)}function ti(y,u){return ti=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,_){return h.__proto__=_,h},ti(y,u)}function ps(y,u){return t(y)||Pt(y,u)||wa(y,u)||en()}function gs(y,u){for(;!{}.hasOwnProperty.call(y,u)&&(y=te(y))!==null;);return y}function In(y){return i(y)||ei(y)||wa(y)||Qt()}function pd(y,u){if(typeof y!="object"||!y)return y;var h=y[Symbol.toPrimitive];if(h!==void 0){var _=h.call(y,u);if(typeof _!="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(y)}function fs(y){var u=pd(y,"string");return typeof u=="symbol"?u:u+""}function ai(y){"@babel/helpers - typeof";return ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},ai(y)}function wa(y,u){if(y){if(typeof y=="string")return n(y,u);var h={}.toString.call(y).slice(8,-1);return h==="Object"&&y.constructor&&(h=y.constructor.name),h==="Map"||h==="Set"?Array.from(y):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?n(y,u):void 0}}var bh=100,Ye={},kn=function(){Ye.previousActiveElement instanceof HTMLElement?(Ye.previousActiveElement.focus(),Ye.previousActiveElement=null):document.body&&document.body.focus()},bs=function(u){return new Promise(function(h){if(!u)return h();var _=window.scrollX,D=window.scrollY;Ye.restoreFocusTimeout=setTimeout(function(){kn(),h()},bh),window.scrollTo(_,D)})},xa="swal2-",Vc=["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"],W=Vc.reduce(function(y,u){return y[u]=xa+u,y},{}),Fe=["success","warning","info","question","error"],vs=Fe.reduce(function(y,u){return y[u]=xa+u,y},{}),jc="SweetAlert2:",No=function(u){return u.charAt(0).toUpperCase()+u.slice(1)},tn=function(u){console.warn("".concat(jc," ").concat(ai(u)==="object"?u.join(" "):u))},Ca=function(u){console.error("".concat(jc," ").concat(u))},Mg=[],Wy=function(u){Mg.includes(u)||(Mg.push(u),tn(u))},Ag=function(u){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Wy('"'.concat(u,'" is deprecated and will be removed in the next major release.').concat(h?' Use "'.concat(h,'" instead.'):""))},gd=function(u){return typeof u=="function"?u():u},vh=function(u){return u&&typeof u.toPromise=="function"},Lc=function(u){return vh(u)?u.toPromise():Promise.resolve(u)},_h=function(u){return u&&Promise.resolve(u)===u},un=function(){return document.body.querySelector(".".concat(W.container))},Bc=function(u){var h=un();return h?h.querySelector(u):null},hn=function(u){return Bc(".".concat(u))},Ke=function(){return hn(W.popup)},Ia=function(){return hn(W.icon)},Gy=function(){return hn(W["icon-content"])},Rg=function(){return hn(W.title)},fd=function(){return hn(W["html-container"])},mn=function(){return hn(W.image)},bd=function(){return hn(W["progress-steps"])},_s=function(){return hn(W["validation-message"])},Dn=function(){return Bc(".".concat(W.actions," .").concat(W.confirm))},vt=function(){return Bc(".".concat(W.actions," .").concat(W.cancel))},Vo=function(){return Bc(".".concat(W.actions," .").concat(W.deny))},Fg=function(){return hn(W["input-label"])},go=function(){return Bc(".".concat(W.loader))},ka=function(){return hn(W.actions)},zc=function(){return hn(W.footer)},fo=function(){return hn(W["timer-progress-bar"])},ys=function(){return hn(W.close)},$y=`
  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
`,ws=function(){var u=Ke();if(!u)return[];var h=u.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),_=Array.from(h).sort(function(fe,qe){var We=parseInt(fe.getAttribute("tabindex")||"0"),jt=parseInt(qe.getAttribute("tabindex")||"0");return We>jt?1:We<jt?-1:0}),D=u.querySelectorAll($y),U=Array.from(D).filter(function(fe){return fe.getAttribute("tabindex")!=="-1"});return In(new Set(_.concat(U))).filter(function(fe){return ht(fe)})},yh=function(){return Nn(document.body,W.shown)&&!Nn(document.body,W["toast-shown"])&&!Nn(document.body,W["no-backdrop"])},jo=function(){var u=Ke();return u?Nn(u,W.toast):!1},xs=function(){var u=Ke();return u?u.hasAttribute("data-loading"):!1},nn=function(u,h){if(u.textContent="",h){var _=new DOMParser,D=_.parseFromString(h,"text/html"),U=D.querySelector("head");U&&Array.from(U.childNodes).forEach(function(qe){u.appendChild(qe)});var fe=D.querySelector("body");fe&&Array.from(fe.childNodes).forEach(function(qe){qe instanceof HTMLVideoElement||qe instanceof HTMLAudioElement?u.appendChild(qe.cloneNode(!0)):u.appendChild(qe)})}},Nn=function(u,h){if(!h)return!1;for(var _=h.split(/\s+/),D=0;D<_.length;D++)if(!u.classList.contains(_[D]))return!1;return!0},Ce=function(u,h){Array.from(u.classList).forEach(function(_){!Object.values(W).includes(_)&&!Object.values(vs).includes(_)&&!Object.values(h.showClass||{}).includes(_)&&u.classList.remove(_)})},Sn=function(u,h,_){if(Ce(u,h),!!h.customClass){var D=h.customClass[_];if(D){if(typeof D!="string"&&!D.forEach){tn("Invalid type of customClass.".concat(_,'! Expected string or iterable object, got "').concat(ai(D),'"'));return}Ie(u,D)}}},vd=function(u,h){if(!h)return null;switch(h){case"select":case"textarea":case"file":return u.querySelector(".".concat(W.popup," > .").concat(W[h]));case"checkbox":return u.querySelector(".".concat(W.popup," > .").concat(W.checkbox," input"));case"radio":return u.querySelector(".".concat(W.popup," > .").concat(W.radio," input:checked"))||u.querySelector(".".concat(W.popup," > .").concat(W.radio," input:first-child"));case"range":return u.querySelector(".".concat(W.popup," > .").concat(W.range," input"));default:return u.querySelector(".".concat(W.popup," > .").concat(W.input))}},Tr=function(u){if(u.focus(),u.type!=="file"){var h=u.value;u.value="",u.value=h}},En=function(u,h,_){!u||!h||(typeof h=="string"&&(h=h.split(/\s+/).filter(Boolean)),h.forEach(function(D){Array.isArray(u)?u.forEach(function(U){_?U.classList.add(D):U.classList.remove(D)}):_?u.classList.add(D):u.classList.remove(D)}))},Ie=function(u,h){En(u,h,!0)},Vn=function(u,h){En(u,h,!1)},st=function(u,h){for(var _=Array.from(u.children),D=0;D<_.length;D++){var U=_[D];if(U instanceof HTMLElement&&Nn(U,h))return U}},ar=function(u,h,_){_==="".concat(parseInt(_))&&(_=parseInt(_)),_||parseInt(_)===0?u.style.setProperty(h,typeof _=="number"?"".concat(_,"px"):_):u.style.removeProperty(h)},vi=function(u){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"flex";u&&(u.style.display=h)},mi=function(u){u&&(u.style.display="none")},_i=function(u){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"block";u&&new MutationObserver(function(){pn(u,u.innerHTML,h)}).observe(u,{childList:!0,subtree:!0})},Mr=function(u,h,_,D){var U=u.querySelector(h);U&&U.style.setProperty(_,D)},pn=function(u,h){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";h?vi(u,_):mi(u)},ht=function(u){return!!(u&&(u.offsetWidth||u.offsetHeight||u.getClientRects().length))},sr=function(){return!ht(Dn())&&!ht(Vo())&&!ht(vt())},Ar=function(u){return u.scrollHeight>u.clientHeight},Lo=function(u){var h=window.getComputedStyle(u),_=parseFloat(h.getPropertyValue("animation-duration")||"0"),D=parseFloat(h.getPropertyValue("transition-duration")||"0");return _>0||D>0},wh=function(u){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_=fo();_&&ht(_)&&(h&&(_.style.transition="none",_.style.width="100%"),setTimeout(function(){_.style.transition="width ".concat(u/1e3,"s linear"),_.style.width="0%"},10))},Yy=function(){var u=fo();if(u){var h=parseInt(window.getComputedStyle(u).width);u.style.removeProperty("transition"),u.style.width="100%";var _=parseInt(window.getComputedStyle(u).width),D=h/_*100;u.style.width="".concat(D,"%")}},Cs=function(){return typeof window>"u"||typeof document>"u"},Og=`
 <div aria-labelledby="`.concat(W.title,'" aria-describedby="').concat(W["html-container"],'" class="').concat(W.popup,`" tabindex="-1">
   <button type="button" class="`).concat(W.close,`"></button>
   <ul class="`).concat(W["progress-steps"],`"></ul>
   <div class="`).concat(W.icon,`"></div>
   <img class="`).concat(W.image,`" />
   <h2 class="`).concat(W.title,'" id="').concat(W.title,`"></h2>
   <div class="`).concat(W["html-container"],'" id="').concat(W["html-container"],`"></div>
   <input class="`).concat(W.input,'" id="').concat(W.input,`" />
   <input type="file" class="`).concat(W.file,`" />
   <div class="`).concat(W.range,`">
     <input type="range" />
     <output></output>
   </div>
   <select class="`).concat(W.select,'" id="').concat(W.select,`"></select>
   <div class="`).concat(W.radio,`"></div>
   <label class="`).concat(W.checkbox,`">
     <input type="checkbox" id="`).concat(W.checkbox,`" />
     <span class="`).concat(W.label,`"></span>
   </label>
   <textarea class="`).concat(W.textarea,'" id="').concat(W.textarea,`"></textarea>
   <div class="`).concat(W["validation-message"],'" id="').concat(W["validation-message"],`"></div>
   <div class="`).concat(W.actions,`">
     <div class="`).concat(W.loader,`"></div>
     <button type="button" class="`).concat(W.confirm,`"></button>
     <button type="button" class="`).concat(W.deny,`"></button>
     <button type="button" class="`).concat(W.cancel,`"></button>
   </div>
   <div class="`).concat(W.footer,`"></div>
   <div class="`).concat(W["timer-progress-bar-container"],`">
     <div class="`).concat(W["timer-progress-bar"],`"></div>
   </div>
 </div>
`).replace(/(^|\n)\s*/g,""),qy=function(){var u=un();return u?(u.remove(),Vn([document.documentElement,document.body],[W["no-backdrop"],W["toast-shown"],W["has-column"]]),!0):!1},jn=function(){Ye.currentInstance.resetValidationMessage()},Hc=function(){var u=Ke(),h=st(u,W.input),_=st(u,W.file),D=u.querySelector(".".concat(W.range," input")),U=u.querySelector(".".concat(W.range," output")),fe=st(u,W.select),qe=u.querySelector(".".concat(W.checkbox," input")),We=st(u,W.textarea);h.oninput=jn,_.onchange=jn,fe.onchange=jn,qe.onchange=jn,We.oninput=jn,D.oninput=function(){jn(),U.value=D.value},D.onchange=function(){jn(),U.value=D.value}},Pg=function(u){return typeof u=="string"?document.querySelector(u):u},Qy=function(u){var h=Ke();h.setAttribute("role",u.toast?"alert":"dialog"),h.setAttribute("aria-live",u.toast?"polite":"assertive"),u.toast||h.setAttribute("aria-modal","true")},Ky=function(u){window.getComputedStyle(u).direction==="rtl"&&Ie(un(),W.rtl)},Xy=function(u){var h=qy();if(Cs()){Ca("SweetAlert2 requires document to initialize");return}var _=document.createElement("div");_.className=W.container,h&&Ie(_,W["no-transition"]),nn(_,Og);var D=Pg(u.target);D.appendChild(_),Qy(u),Ky(D),Hc()},Gt=function(u,h){u instanceof HTMLElement?h.appendChild(u):ai(u)==="object"?xh(u,h):u&&nn(h,u)},xh=function(u,h){u.jquery?Zy(h,u):nn(h,u.toString())},Zy=function(u,h){if(u.textContent="",0 in h)for(var _=0;_ in h;_++)u.appendChild(h[_].cloneNode(!0));else u.appendChild(h.cloneNode(!0))},Bo=function(){if(Cs())return!1;var y=document.createElement("div");return typeof y.style.webkitAnimation<"u"?"webkitAnimationEnd":typeof y.style.animation<"u"?"animationend":!1}(),Ng=function(u,h){var _=ka(),D=go();!_||!D||(!h.showConfirmButton&&!h.showDenyButton&&!h.showCancelButton?mi(_):vi(_),Sn(_,h,"actions"),Jy(_,D,h),nn(D,h.loaderHtml||""),Sn(D,h,"loader"))};function Jy(y,u,h){var _=Dn(),D=Vo(),U=vt();!_||!D||!U||(Ch(_,"confirm",h),Ch(D,"deny",h),Ch(U,"cancel",h),ew(_,D,U,h),h.reverseButtons&&(h.toast?(y.insertBefore(U,_),y.insertBefore(D,_)):(y.insertBefore(U,u),y.insertBefore(D,u),y.insertBefore(_,u))))}function ew(y,u,h,_){if(!_.buttonsStyling){Vn([y,u,h],W.styled);return}Ie([y,u,h],W.styled),_.confirmButtonColor&&(y.style.backgroundColor=_.confirmButtonColor,Ie(y,W["default-outline"])),_.denyButtonColor&&(u.style.backgroundColor=_.denyButtonColor,Ie(u,W["default-outline"])),_.cancelButtonColor&&(h.style.backgroundColor=_.cancelButtonColor,Ie(h,W["default-outline"]))}function Ch(y,u,h){var _=No(u);pn(y,h["show".concat(_,"Button")],"inline-block"),nn(y,h["".concat(u,"ButtonText")]||""),y.setAttribute("aria-label",h["".concat(u,"ButtonAriaLabel")]||""),y.className=W[u],Sn(y,h,"".concat(u,"Button"))}var tw=function(u,h){var _=ys();_&&(nn(_,h.closeButtonHtml||""),Sn(_,h,"closeButton"),pn(_,h.showCloseButton),_.setAttribute("aria-label",h.closeButtonAriaLabel||""))},iw=function(u,h){var _=un();_&&(nw(_,h.backdrop),Vg(_,h.position),jg(_,h.grow),Sn(_,h,"container"))};function nw(y,u){typeof u=="string"?y.style.background=u:u||Ie([document.documentElement,document.body],W["no-backdrop"])}function Vg(y,u){u&&(u in W?Ie(y,W[u]):(tn('The "position" parameter is not valid, defaulting to "center"'),Ie(y,W.center)))}function jg(y,u){u&&Ie(y,W["grow-".concat(u)])}var At={innerParams:new WeakMap,domCache:new WeakMap},rw=["input","file","range","select","radio","checkbox","textarea"],ow=function(u,h){var _=Ke();if(_){var D=At.innerParams.get(u),U=!D||h.input!==D.input;rw.forEach(function(fe){var qe=st(_,W[fe]);qe&&(Uc(fe,h.inputAttributes),qe.className=W[fe],U&&mi(qe))}),h.input&&(U&&Lg(h),_d(h))}},Lg=function(u){if(u.input){if(!ii[u.input]){Ca("Unexpected type of input! Expected ".concat(Object.keys(ii).join(" | "),', got "').concat(u.input,'"'));return}var h=Rr(u.input);if(h){var _=ii[u.input](h,u);vi(h),u.inputAutoFocus&&setTimeout(function(){Tr(_)})}}},aw=function(u){for(var h=0;h<u.attributes.length;h++){var _=u.attributes[h].name;["id","type","value","style"].includes(_)||u.removeAttribute(_)}},Uc=function(u,h){var _=Ke();if(_){var D=vd(_,u);if(D){aw(D);for(var U in h)D.setAttribute(U,h[U])}}},_d=function(u){if(u.input){var h=Rr(u.input);h&&Sn(h,u,"input")}},yd=function(u,h){!u.placeholder&&h.inputPlaceholder&&(u.placeholder=h.inputPlaceholder)},bo=function(u,h,_){if(_.inputLabel){var D=document.createElement("label"),U=W["input-label"];D.setAttribute("for",u.id),D.className=U,ai(_.customClass)==="object"&&Ie(D,_.customClass.inputLabel),D.innerText=_.inputLabel,h.insertAdjacentElement("beforebegin",D)}},Rr=function(u){var h=Ke();if(h)return st(h,W[u]||W.input)},wd=function(u,h){["string","number"].includes(ai(h))?u.value="".concat(h):_h(h)||tn('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(ai(h),'"'))},ii={};ii.text=ii.email=ii.password=ii.number=ii.tel=ii.url=ii.search=ii.date=ii["datetime-local"]=ii.time=ii.week=ii.month=function(y,u){return wd(y,u.inputValue),bo(y,y,u),yd(y,u),y.type=u.input,y},ii.file=function(y,u){return bo(y,y,u),yd(y,u),y},ii.range=function(y,u){var h=y.querySelector("input"),_=y.querySelector("output");return wd(h,u.inputValue),h.type=u.input,wd(_,u.inputValue),bo(h,y,u),y},ii.select=function(y,u){if(y.textContent="",u.inputPlaceholder){var h=document.createElement("option");nn(h,u.inputPlaceholder),h.value="",h.disabled=!0,h.selected=!0,y.appendChild(h)}return bo(y,y,u),y},ii.radio=function(y){return y.textContent="",y},ii.checkbox=function(y,u){var h=vd(Ke(),"checkbox");h.value="1",h.checked=!!u.inputValue;var _=y.querySelector("span");return nn(_,u.inputPlaceholder),h},ii.textarea=function(y,u){wd(y,u.inputValue),yd(y,u),bo(y,y,u);var h=function(D){return parseInt(window.getComputedStyle(D).marginLeft)+parseInt(window.getComputedStyle(D).marginRight)};return setTimeout(function(){if("MutationObserver"in window){var _=parseInt(window.getComputedStyle(Ke()).width),D=function(){if(document.body.contains(y)){var fe=y.offsetWidth+h(y);fe>_?Ke().style.width="".concat(fe,"px"):ar(Ke(),"width",u.width)}};new MutationObserver(D).observe(y,{attributes:!0,attributeFilter:["style"]})}}),y};var sw=function(u,h){var _=fd();_&&(_i(_),Sn(_,h,"htmlContainer"),h.html?(Gt(h.html,_),vi(_,"block")):h.text?(_.textContent=h.text,vi(_,"block")):mi(_),ow(u,h))},cw=function(u,h){var _=zc();_&&(_i(_),pn(_,h.footer,"block"),h.footer&&Gt(h.footer,_),Sn(_,h,"footer"))},lw=function(u,h){var _=At.innerParams.get(u),D=Ia();if(D){if(_&&h.icon===_.icon){zg(D,h),Bg(D,h);return}if(!h.icon&&!h.iconHtml){mi(D);return}if(h.icon&&Object.keys(vs).indexOf(h.icon)===-1){Ca('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(h.icon,'"')),mi(D);return}vi(D),zg(D,h),Bg(D,h),Ie(D,h.showClass&&h.showClass.icon)}},Bg=function(u,h){for(var _=0,D=Object.entries(vs);_<D.length;_++){var U=ps(D[_],2),fe=U[0],qe=U[1];h.icon!==fe&&Vn(u,qe)}Ie(u,h.icon&&vs[h.icon]),Hg(u,h),dw(),Sn(u,h,"icon")},dw=function(){var u=Ke();if(u)for(var h=window.getComputedStyle(u).getPropertyValue("background-color"),_=u.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),D=0;D<_.length;D++)_[D].style.backgroundColor=h},uw=`
  <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>
`,Ih=`
  <span class="swal2-x-mark">
    <span class="swal2-x-mark-line-left"></span>
    <span class="swal2-x-mark-line-right"></span>
  </span>
`,zg=function(u,h){if(!(!h.icon&&!h.iconHtml)){var _=u.innerHTML,D="";if(h.iconHtml)D=Ug(h.iconHtml);else if(h.icon==="success")D=uw,_=_.replace(/ style=".*?"/g,"");else if(h.icon==="error")D=Ih;else if(h.icon){var U={question:"?",warning:"!",info:"i"};D=Ug(U[h.icon])}_.trim()!==D.trim()&&nn(u,D)}},Hg=function(u,h){if(h.iconColor){u.style.color=h.iconColor,u.style.borderColor=h.iconColor;for(var _=0,D=[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"];_<D.length;_++){var U=D[_];Mr(u,U,"background-color",h.iconColor)}Mr(u,".swal2-success-ring","border-color",h.iconColor)}},Ug=function(u){return'<div class="'.concat(W["icon-content"],'">').concat(u,"</div>")},hw=function(u,h){var _=mn();if(_){if(!h.imageUrl){mi(_);return}vi(_,""),_.setAttribute("src",h.imageUrl),_.setAttribute("alt",h.imageAlt||""),ar(_,"width",h.imageWidth),ar(_,"height",h.imageHeight),_.className=W.image,Sn(_,h,"image")}},mw=function(u,h){var _=un(),D=Ke();if(!(!_||!D)){if(h.toast){ar(_,"width",h.width),D.style.width="100%";var U=go();U&&D.insertBefore(U,Ia())}else ar(D,"width",h.width);ar(D,"padding",h.padding),h.color&&(D.style.color=h.color),h.background&&(D.style.background=h.background),mi(_s()),pw(D,h)}},pw=function(u,h){var _=h.showClass||{};u.className="".concat(W.popup," ").concat(ht(u)?_.popup:""),h.toast?(Ie([document.documentElement,document.body],W["toast-shown"]),Ie(u,W.toast)):Ie(u,W.modal),Sn(u,h,"popup"),typeof h.customClass=="string"&&Ie(u,h.customClass),h.icon&&Ie(u,W["icon-".concat(h.icon)])},gw=function(u,h){var _=bd();if(_){var D=h.progressSteps,U=h.currentProgressStep;if(!D||D.length===0||U===void 0){mi(_);return}vi(_),_.textContent="",U>=D.length&&tn("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),D.forEach(function(fe,qe){var We=fw(fe);if(_.appendChild(We),qe===U&&Ie(We,W["active-progress-step"]),qe!==D.length-1){var jt=bw(h);_.appendChild(jt)}})}},fw=function(u){var h=document.createElement("li");return Ie(h,W["progress-step"]),nn(h,u),h},bw=function(u){var h=document.createElement("li");return Ie(h,W["progress-step-line"]),u.progressStepsDistance&&ar(h,"width",u.progressStepsDistance),h},vw=function(u,h){var _=Rg();_&&(_i(_),pn(_,h.title||h.titleText,"block"),h.title&&Gt(h.title,_),h.titleText&&(_.innerText=h.titleText),Sn(_,h,"title"))},Wg=function(u,h){mw(u,h),iw(u,h),gw(u,h),lw(u,h),hw(u,h),vw(u,h),tw(u,h),sw(u,h),Ng(u,h),cw(u,h);var _=Ke();typeof h.didRender=="function"&&_&&h.didRender(_)},_w=function(){return ht(Ke())},Gg=function(){var u;return(u=Dn())===null||u===void 0?void 0:u.click()},yw=function(){var u;return(u=Vo())===null||u===void 0?void 0:u.click()},ww=function(){var u;return(u=vt())===null||u===void 0?void 0:u.click()},Is=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),$g=function(u){u.keydownTarget&&u.keydownHandlerAdded&&(u.keydownTarget.removeEventListener("keydown",u.keydownHandler,{capture:u.keydownListenerCapture}),u.keydownHandlerAdded=!1)},kh=function(u,h,_){$g(u),h.toast||(u.keydownHandler=function(D){return Qg(h,D,_)},u.keydownTarget=h.keydownListenerCapture?window:Ke(),u.keydownListenerCapture=h.keydownListenerCapture,u.keydownTarget.addEventListener("keydown",u.keydownHandler,{capture:u.keydownListenerCapture}),u.keydownHandlerAdded=!0)},Wc=function(u,h){var _,D=ws();if(D.length){u=u+h,u===D.length?u=0:u===-1&&(u=D.length-1),D[u].focus();return}(_=Ke())===null||_===void 0||_.focus()},Yg=["ArrowRight","ArrowDown"],qg=["ArrowLeft","ArrowUp"],Qg=function(u,h,_){u&&(h.isComposing||h.keyCode===229||(u.stopKeydownPropagation&&h.stopPropagation(),h.key==="Enter"?xw(h,u):h.key==="Tab"?Cw(h):[].concat(Yg,qg).includes(h.key)?Iw(h.key):h.key==="Escape"&&kw(h,u,_)))},xw=function(u,h){if(gd(h.allowEnterKey)){var _=vd(Ke(),h.input);if(u.target&&_&&u.target instanceof HTMLElement&&u.target.outerHTML===_.outerHTML){if(["textarea","file"].includes(h.input))return;Gg(),u.preventDefault()}}},Cw=function(u){for(var h=u.target,_=ws(),D=-1,U=0;U<_.length;U++)if(h===_[U]){D=U;break}u.shiftKey?Wc(D,-1):Wc(D,1),u.stopPropagation(),u.preventDefault()},Iw=function(u){var h=ka(),_=Dn(),D=Vo(),U=vt();if(!(!h||!_||!D||!U)){var fe=[_,D,U];if(!(document.activeElement instanceof HTMLElement&&!fe.includes(document.activeElement))){var qe=Yg.includes(u)?"nextElementSibling":"previousElementSibling",We=document.activeElement;if(We){for(var jt=0;jt<h.children.length;jt++){if(We=We[qe],!We)return;if(We instanceof HTMLButtonElement&&ht(We))break}We instanceof HTMLButtonElement&&We.focus()}}}},kw=function(u,h,_){gd(h.allowEscapeKey)&&(u.preventDefault(),_(Is.esc))},Da={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},Vt=function(){var u=un(),h=Array.from(document.body.children);h.forEach(function(_){_.contains(u)||(_.hasAttribute("aria-hidden")&&_.setAttribute("data-previous-aria-hidden",_.getAttribute("aria-hidden")||""),_.setAttribute("aria-hidden","true"))})},ks=function(){var u=Array.from(document.body.children);u.forEach(function(h){h.hasAttribute("data-previous-aria-hidden")?(h.setAttribute("aria-hidden",h.getAttribute("data-previous-aria-hidden")||""),h.removeAttribute("data-previous-aria-hidden")):h.removeAttribute("aria-hidden")})},Ds=typeof window<"u"&&!!window.GestureEvent,Dw=function(){if(Ds&&!Nn(document.body,W.iosfix)){var u=document.body.scrollTop;document.body.style.top="".concat(u*-1,"px"),Ie(document.body,W.iosfix),Kg()}},Kg=function(){var u=un();if(u){var h;u.ontouchstart=function(_){h=Sw(_)},u.ontouchmove=function(_){h&&(_.preventDefault(),_.stopPropagation())}}},Sw=function(u){var h=u.target,_=un(),D=fd();return!_||!D||Ew(u)||xd(u)?!1:h===_||!Ar(_)&&h instanceof HTMLElement&&h.tagName!=="INPUT"&&h.tagName!=="TEXTAREA"&&!(Ar(D)&&D.contains(h))},Ew=function(u){return u.touches&&u.touches.length&&u.touches[0].touchType==="stylus"},xd=function(u){return u.touches&&u.touches.length>1},zo=function(){if(Nn(document.body,W.iosfix)){var u=parseInt(document.body.style.top,10);Vn(document.body,W.iosfix),document.body.style.top="",document.body.scrollTop=u*-1}},Dh=function(){var u=document.createElement("div");u.className=W["scrollbar-measure"],document.body.appendChild(u);var h=u.getBoundingClientRect().width-u.clientWidth;return document.body.removeChild(u),h},Ss=null,vo=function(u){Ss===null&&(document.body.scrollHeight>window.innerHeight||u==="scroll")&&(Ss=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(Ss+Dh(),"px"))},Tw=function(){Ss!==null&&(document.body.style.paddingRight="".concat(Ss,"px"),Ss=null)};function Cd(y,u,h,_){jo()?Sh(y,_):(bs(h).then(function(){return Sh(y,_)}),$g(Ye)),Ds?(u.setAttribute("style","display:none !important"),u.removeAttribute("class"),u.innerHTML=""):u.remove(),yh()&&(Tw(),zo(),ks()),Mw()}function Mw(){Vn([document.documentElement,document.body],[W.shown,W["height-auto"],W["no-backdrop"],W["toast-shown"]])}function Ho(y){y=Rw(y);var u=Da.swalPromiseResolve.get(this),h=Aw(this);this.isAwaitingPromise?y.isDismissed||(Sa(this),u(y)):h&&u(y)}var Aw=function(u){var h=Ke();if(!h)return!1;var _=At.innerParams.get(u);if(!_||Nn(h,_.hideClass.popup))return!1;Vn(h,_.showClass.popup),Ie(h,_.hideClass.popup);var D=un();return Vn(D,_.showClass.backdrop),Ie(D,_.hideClass.backdrop),Fw(u,h,_),!0};function Gc(y){var u=Da.swalPromiseReject.get(this);Sa(this),u&&u(y)}var Sa=function(u){u.isAwaitingPromise&&(delete u.isAwaitingPromise,At.innerParams.get(u)||u._destroy())},Rw=function(u){return typeof u>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},u)},Fw=function(u,h,_){var D=un(),U=Bo&&Lo(h);typeof _.willClose=="function"&&_.willClose(h),U?Ow(u,h,D,_.returnFocus,_.didClose):Cd(u,D,_.returnFocus,_.didClose)},Ow=function(u,h,_,D,U){Bo&&(Ye.swalCloseEventFinishedCallback=Cd.bind(null,u,_,D,U),h.addEventListener(Bo,function(fe){fe.target===h&&(Ye.swalCloseEventFinishedCallback(),delete Ye.swalCloseEventFinishedCallback)}))},Sh=function(u,h){setTimeout(function(){typeof h=="function"&&h.bind(u.params)(),u._destroy&&u._destroy()})},Es=function(u){var h=Ke();if(h||new Od,h=Ke(),!!h){var _=go();jo()?mi(Ia()):Pw(h,u),vi(_),h.setAttribute("data-loading","true"),h.setAttribute("aria-busy","true"),h.focus()}},Pw=function(u,h){var _=ka(),D=go();!_||!D||(!h&&ht(Dn())&&(h=Dn()),vi(_),h&&(mi(h),D.setAttribute("data-button-to-replace",h.className),_.insertBefore(D,h)),Ie([u,_],W.loading))},Nw=function(u,h){h.input==="select"||h.input==="radio"?Ts(u,h):["text","email","number","tel","textarea"].some(function(_){return _===h.input})&&(vh(h.inputValue)||_h(h.inputValue))&&(Es(Dn()),Bw(u,h))},Vw=function(u,h){var _=u.getInput();if(!_)return null;switch(h.input){case"checkbox":return jw(_);case"radio":return Xg(_);case"file":return Lw(_);default:return h.inputAutoTrim?_.value.trim():_.value}},jw=function(u){return u.checked?1:0},Xg=function(u){return u.checked?u.value:null},Lw=function(u){return u.files&&u.files.length?u.getAttribute("multiple")!==null?u.files:u.files[0]:null},Ts=function(u,h){var _=Ke();if(_){var D=function(fe){h.input==="select"?Eh(_,Id(fe),h):h.input==="radio"&&zw(_,Id(fe),h)};vh(h.inputOptions)||_h(h.inputOptions)?(Es(Dn()),Lc(h.inputOptions).then(function(U){u.hideLoading(),D(U)})):ai(h.inputOptions)==="object"?D(h.inputOptions):Ca("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(ai(h.inputOptions)))}},Bw=function(u,h){var _=u.getInput();_&&(mi(_),Lc(h.inputValue).then(function(D){_.value=h.input==="number"?"".concat(parseFloat(D)||0):"".concat(D),vi(_),_.focus(),u.hideLoading()}).catch(function(D){Ca("Error in inputValue promise: ".concat(D)),_.value="",vi(_),_.focus(),u.hideLoading()}))};function Eh(y,u,h){var _=st(y,W.select);if(_){var D=function(fe,qe,We){var jt=document.createElement("option");jt.value=We,nn(jt,qe),jt.selected=Zg(We,h.inputValue),fe.appendChild(jt)};u.forEach(function(U){var fe=U[0],qe=U[1];if(Array.isArray(qe)){var We=document.createElement("optgroup");We.label=fe,We.disabled=!1,_.appendChild(We),qe.forEach(function(jt){return D(We,jt[1],jt[0])})}else D(_,qe,fe)}),_.focus()}}function zw(y,u,h){var _=st(y,W.radio);if(_){u.forEach(function(U){var fe=U[0],qe=U[1],We=document.createElement("input"),jt=document.createElement("label");We.type="radio",We.name=W.radio,We.value=fe,Zg(fe,h.inputValue)&&(We.checked=!0);var Wo=document.createElement("span");nn(Wo,qe),Wo.className=W.label,jt.appendChild(We),jt.appendChild(Wo),_.appendChild(jt)});var D=_.querySelectorAll("input");D.length&&D[0].focus()}}var Id=function y(u){var h=[];return u instanceof Map?u.forEach(function(_,D){var U=_;ai(U)==="object"&&(U=y(U)),h.push([D,U])}):Object.keys(u).forEach(function(_){var D=u[_];ai(D)==="object"&&(D=y(D)),h.push([_,D])}),h},Zg=function(u,h){return!!h&&h.toString()===u.toString()},kd=void 0,Hw=function(u){var h=At.innerParams.get(u);u.disableButtons(),h.input?ef(u,"confirm"):Dd(u,!0)},Uw=function(u){var h=At.innerParams.get(u);u.disableButtons(),h.returnInputValueOnDeny?ef(u,"deny"):Dt(u,!1)},Jg=function(u,h){u.disableButtons(),h(Is.cancel)},ef=function(u,h){var _=At.innerParams.get(u);if(!_.input){Ca('The "input" parameter is needed to be set when using returnInputValueOn'.concat(No(h)));return}var D=u.getInput(),U=Vw(u,_);_.inputValidator?tf(u,U,h):D&&!D.checkValidity()?(u.enableButtons(),u.showValidationMessage(_.validationMessage||D.validationMessage)):h==="deny"?Dt(u,U):Dd(u,U)},tf=function(u,h,_){var D=At.innerParams.get(u);u.disableInput();var U=Promise.resolve().then(function(){return Lc(D.inputValidator(h,D.validationMessage))});U.then(function(fe){u.enableButtons(),u.enableInput(),fe?u.showValidationMessage(fe):_==="deny"?Dt(u,h):Dd(u,h)})},Dt=function(u,h){var _=At.innerParams.get(u||kd);if(_.showLoaderOnDeny&&Es(Vo()),_.preDeny){u.isAwaitingPromise=!0;var D=Promise.resolve().then(function(){return Lc(_.preDeny(h,_.validationMessage))});D.then(function(U){U===!1?(u.hideLoading(),Sa(u)):u.close({isDenied:!0,value:typeof U>"u"?h:U})}).catch(function(U){return rf(u||kd,U)})}else u.close({isDenied:!0,value:h})},nf=function(u,h){u.close({isConfirmed:!0,value:h})},rf=function(u,h){u.rejectPromise(h)},Dd=function(u,h){var _=At.innerParams.get(u||kd);if(_.showLoaderOnConfirm&&Es(),_.preConfirm){u.resetValidationMessage(),u.isAwaitingPromise=!0;var D=Promise.resolve().then(function(){return Lc(_.preConfirm(h,_.validationMessage))});D.then(function(U){ht(_s())||U===!1?(u.hideLoading(),Sa(u)):nf(u,typeof U>"u"?h:U)}).catch(function(U){return rf(u||kd,U)})}else nf(u,h)};function Sd(){var y=At.innerParams.get(this);if(y){var u=At.domCache.get(this);mi(u.loader),jo()?y.icon&&vi(Ia()):Ww(u),Vn([u.popup,u.actions],W.loading),u.popup.removeAttribute("aria-busy"),u.popup.removeAttribute("data-loading"),u.confirmButton.disabled=!1,u.denyButton.disabled=!1,u.cancelButton.disabled=!1}}var Ww=function(u){var h=u.popup.getElementsByClassName(u.loader.getAttribute("data-button-to-replace"));h.length?vi(h[0],"inline-block"):sr()&&mi(u.actions)};function of(){var y=At.innerParams.get(this),u=At.domCache.get(this);return u?vd(u.popup,y.input):null}function Ms(y,u,h){var _=At.domCache.get(y);u.forEach(function(D){_[D].disabled=h})}function af(y,u){var h=Ke();if(!(!h||!y))if(y.type==="radio")for(var _=h.querySelectorAll('[name="'.concat(W.radio,'"]')),D=0;D<_.length;D++)_[D].disabled=u;else y.disabled=u}function sf(){Ms(this,["confirmButton","denyButton","cancelButton"],!1)}function cf(){Ms(this,["confirmButton","denyButton","cancelButton"],!0)}function $c(){af(this.getInput(),!1)}function Yc(){af(this.getInput(),!0)}function Ed(y){var u=At.domCache.get(this),h=At.innerParams.get(this);nn(u.validationMessage,y),u.validationMessage.className=W["validation-message"],h.customClass&&h.customClass.validationMessage&&Ie(u.validationMessage,h.customClass.validationMessage),vi(u.validationMessage);var _=this.getInput();_&&(_.setAttribute("aria-invalid","true"),_.setAttribute("aria-describedby",W["validation-message"]),Tr(_),Ie(_,W.inputerror))}function lf(){var y=At.domCache.get(this);y.validationMessage&&mi(y.validationMessage);var u=this.getInput();u&&(u.removeAttribute("aria-invalid"),u.removeAttribute("aria-describedby"),Vn(u,W.inputerror))}var Ea={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},Gw=["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"],Th={allowEnterKey:void 0},Mh=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Td=function(u){return Object.prototype.hasOwnProperty.call(Ea,u)},df=function(u){return Gw.indexOf(u)!==-1},uf=function(u){return Th[u]},$w=function(u){Td(u)||tn('Unknown parameter "'.concat(u,'"'))},Yw=function(u){Mh.includes(u)&&tn('The parameter "'.concat(u,'" is incompatible with toasts'))},qw=function(u){var h=uf(u);h&&Ag(u,h)},Qw=function(u){u.backdrop===!1&&u.allowOutsideClick&&tn('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(var h in u)$w(h),u.toast&&Yw(h),qw(h)};function hf(y){var u=Ke(),h=At.innerParams.get(this);if(!u||Nn(u,h.hideClass.popup)){tn("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 _=Kw(y),D=Object.assign({},h,_);Wg(this,D),At.innerParams.set(this,D),Object.defineProperties(this,{params:{value:Object.assign({},this.params,y),writable:!1,enumerable:!0}})}var Kw=function(u){var h={};return Object.keys(u).forEach(function(_){df(_)?h[_]=u[_]:tn("Invalid parameter to update: ".concat(_))}),h};function mf(){var y=At.domCache.get(this),u=At.innerParams.get(this);if(!u){Ah(this);return}y.popup&&Ye.swalCloseEventFinishedCallback&&(Ye.swalCloseEventFinishedCallback(),delete Ye.swalCloseEventFinishedCallback),typeof u.didDestroy=="function"&&u.didDestroy(),Xw(this)}var Xw=function(u){Ah(u),delete u.params,delete Ye.keydownHandler,delete Ye.keydownTarget,delete Ye.currentInstance},Ah=function(u){u.isAwaitingPromise?(Rh(At,u),u.isAwaitingPromise=!0):(Rh(Da,u),Rh(At,u),delete u.isAwaitingPromise,delete u.disableButtons,delete u.enableButtons,delete u.getInput,delete u.disableInput,delete u.enableInput,delete u.hideLoading,delete u.disableLoading,delete u.showValidationMessage,delete u.resetValidationMessage,delete u.close,delete u.closePopup,delete u.closeModal,delete u.closeToast,delete u.rejectPromise,delete u.update,delete u._destroy)},Rh=function(u,h){for(var _ in u)u[_].delete(h)},Zw=Object.freeze({__proto__:null,_destroy:mf,close:Ho,closeModal:Ho,closePopup:Ho,closeToast:Ho,disableButtons:cf,disableInput:Yc,disableLoading:Sd,enableButtons:sf,enableInput:$c,getInput:of,handleAwaitingPromise:Sa,hideLoading:Sd,rejectPromise:Gc,resetValidationMessage:lf,showValidationMessage:Ed,update:hf}),cr=function(u,h,_){u.toast?Ta(u,h,_):(gf(h),ff(h),Jw(u,h,_))},Ta=function(u,h,_){h.popup.onclick=function(){u&&(pf(u)||u.timer||u.input)||_(Is.close)}},pf=function(u){return!!(u.showConfirmButton||u.showDenyButton||u.showCancelButton||u.showCloseButton)},Md=!1,gf=function(u){u.popup.onmousedown=function(){u.container.onmouseup=function(h){u.container.onmouseup=function(){},h.target===u.container&&(Md=!0)}}},ff=function(u){u.container.onmousedown=function(h){h.target===u.container&&h.preventDefault(),u.popup.onmouseup=function(_){u.popup.onmouseup=function(){},(_.target===u.popup||_.target instanceof HTMLElement&&u.popup.contains(_.target))&&(Md=!0)}}},Jw=function(u,h,_){h.container.onclick=function(D){if(Md){Md=!1;return}D.target===h.container&&gd(u.allowOutsideClick)&&_(Is.backdrop)}},ex=function(u){return ai(u)==="object"&&u.jquery},Fh=function(u){return u instanceof Element||ex(u)},tx=function(u){var h={};return ai(u[0])==="object"&&!Fh(u[0])?Object.assign(h,u[0]):["title","html","icon"].forEach(function(_,D){var U=u[D];typeof U=="string"||Fh(U)?h[_]=U:U!==void 0&&Ca("Unexpected type of ".concat(_,'! Expected "string" or "Element", got ').concat(ai(U)))}),h};function ix(){for(var y=this,u=arguments.length,h=new Array(u),_=0;_<u;_++)h[_]=arguments[_];return O(y,h)}function nx(y){var u=function(h){function _(){return c(this,_),o(this,_,arguments)}return ge(_,h),ae(_,[{key:"_main",value:function(U,fe){return Se(te(_.prototype),"_main",this).call(this,U,Object.assign({},y,fe))}}])}(this);return u}var rx=function(){return Ye.timeout&&Ye.timeout.getTimerLeft()},bf=function(){if(Ye.timeout)return Yy(),Ye.timeout.stop()},vf=function(){if(Ye.timeout){var u=Ye.timeout.start();return wh(u),u}},ox=function(){var u=Ye.timeout;return u&&(u.running?bf():vf())},ax=function(u){if(Ye.timeout){var h=Ye.timeout.increase(u);return wh(h,!0),h}},sx=function(){return!!(Ye.timeout&&Ye.timeout.isRunning())},_f=!1,Oh={};function cx(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";Oh[y]=this,_f||(document.body.addEventListener("click",lx),_f=!0)}var lx=function(u){for(var h=u.target;h&&h!==document;h=h.parentNode)for(var _ in Oh){var D=h.getAttribute(_);if(D){Oh[_].fire({template:D});return}}},dx=Object.freeze({__proto__:null,argsToParams:tx,bindClickHandler:cx,clickCancel:ww,clickConfirm:Gg,clickDeny:yw,enableLoading:Es,fire:ix,getActions:ka,getCancelButton:vt,getCloseButton:ys,getConfirmButton:Dn,getContainer:un,getDenyButton:Vo,getFocusableElements:ws,getFooter:zc,getHtmlContainer:fd,getIcon:Ia,getIconContent:Gy,getImage:mn,getInputLabel:Fg,getLoader:go,getPopup:Ke,getProgressSteps:bd,getTimerLeft:rx,getTimerProgressBar:fo,getTitle:Rg,getValidationMessage:_s,increaseTimer:ax,isDeprecatedParameter:uf,isLoading:xs,isTimerRunning:sx,isUpdatableParameter:df,isValidParameter:Td,isVisible:_w,mixin:nx,resumeTimer:vf,showLoading:Es,stopTimer:bf,toggleTimer:ox}),Ad=function(){function y(u,h){c(this,y),this.callback=u,this.remaining=h,this.running=!1,this.start()}return ae(y,[{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(h){var _=this.running;return _&&this.stop(),this.remaining+=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}}])}(),yf=["swal-title","swal-html","swal-footer"],ux=function(u){var h=typeof u.template=="string"?document.querySelector(u.template):u.template;if(!h)return{};var _=h.content;xf(_);var D=Object.assign(hx(_),mx(_),px(_),gx(_),fx(_),bx(_),wf(_,yf));return D},hx=function(u){var h={},_=Array.from(u.querySelectorAll("swal-param"));return _.forEach(function(D){Uo(D,["name","value"]);var U=D.getAttribute("name"),fe=D.getAttribute("value");!U||!fe||(typeof Ea[U]=="boolean"?h[U]=fe!=="false":ai(Ea[U])==="object"?h[U]=JSON.parse(fe):h[U]=fe)}),h},mx=function(u){var h={},_=Array.from(u.querySelectorAll("swal-function-param"));return _.forEach(function(D){var U=D.getAttribute("name"),fe=D.getAttribute("value");!U||!fe||(h[U]=new Function("return ".concat(fe))())}),h},px=function(u){var h={},_=Array.from(u.querySelectorAll("swal-button"));return _.forEach(function(D){Uo(D,["type","color","aria-label"]);var U=D.getAttribute("type");!U||!["confirm","cancel","deny"].includes(U)||(h["".concat(U,"ButtonText")]=D.innerHTML,h["show".concat(No(U),"Button")]=!0,D.hasAttribute("color")&&(h["".concat(U,"ButtonColor")]=D.getAttribute("color")),D.hasAttribute("aria-label")&&(h["".concat(U,"ButtonAriaLabel")]=D.getAttribute("aria-label")))}),h},gx=function(u){var h={},_=u.querySelector("swal-image");return _&&(Uo(_,["src","width","height","alt"]),_.hasAttribute("src")&&(h.imageUrl=_.getAttribute("src")||void 0),_.hasAttribute("width")&&(h.imageWidth=_.getAttribute("width")||void 0),_.hasAttribute("height")&&(h.imageHeight=_.getAttribute("height")||void 0),_.hasAttribute("alt")&&(h.imageAlt=_.getAttribute("alt")||void 0)),h},fx=function(u){var h={},_=u.querySelector("swal-icon");return _&&(Uo(_,["type","color"]),_.hasAttribute("type")&&(h.icon=_.getAttribute("type")),_.hasAttribute("color")&&(h.iconColor=_.getAttribute("color")),h.iconHtml=_.innerHTML),h},bx=function(u){var h={},_=u.querySelector("swal-input");_&&(Uo(_,["type","label","placeholder","value"]),h.input=_.getAttribute("type")||"text",_.hasAttribute("label")&&(h.inputLabel=_.getAttribute("label")),_.hasAttribute("placeholder")&&(h.inputPlaceholder=_.getAttribute("placeholder")),_.hasAttribute("value")&&(h.inputValue=_.getAttribute("value")));var D=Array.from(u.querySelectorAll("swal-input-option"));return D.length&&(h.inputOptions={},D.forEach(function(U){Uo(U,["value"]);var fe=U.getAttribute("value");if(fe){var qe=U.innerHTML;h.inputOptions[fe]=qe}})),h},wf=function(u,h){var _={};for(var D in h){var U=h[D],fe=u.querySelector(U);fe&&(Uo(fe,[]),_[U.replace(/^swal-/,"")]=fe.innerHTML.trim())}return _},xf=function(u){var h=yf.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(u.children).forEach(function(_){var D=_.tagName.toLowerCase();h.includes(D)||tn("Unrecognized element <".concat(D,">"))})},Uo=function(u,h){Array.from(u.attributes).forEach(function(_){h.indexOf(_.name)===-1&&tn(['Unrecognized attribute "'.concat(_.name,'" on <').concat(u.tagName.toLowerCase(),">."),"".concat(h.length?"Allowed attributes are: ".concat(h.join(", ")):"To set the value, use HTML within the element.")])})},qc=10,As=function(u){var h=un(),_=Ke();typeof u.willOpen=="function"&&u.willOpen(_);var D=window.getComputedStyle(document.body),U=D.overflowY;If(h,_,u),setTimeout(function(){Cf(h,_)},qc),yh()&&(Rs(h,u.scrollbarPadding,U),Vt()),!jo()&&!Ye.previousActiveElement&&(Ye.previousActiveElement=document.activeElement),typeof u.didOpen=="function"&&setTimeout(function(){return u.didOpen(_)}),Vn(h,W["no-transition"])},Rd=function y(u){var h=Ke();if(!(u.target!==h||!Bo)){var _=un();h.removeEventListener(Bo,y),_.style.overflowY="auto"}},Cf=function(u,h){Bo&&Lo(h)?(u.style.overflowY="hidden",h.addEventListener(Bo,Rd)):u.style.overflowY="auto"},Rs=function(u,h,_){Dw(),h&&_!=="hidden"&&vo(_),setTimeout(function(){u.scrollTop=0})},If=function(u,h,_){Ie(u,_.showClass.backdrop),_.animation?(h.style.setProperty("opacity","0","important"),vi(h,"grid"),setTimeout(function(){Ie(h,_.showClass.popup),h.style.removeProperty("opacity")},qc)):vi(h,"grid"),Ie([document.documentElement,document.body],W.shown),_.heightAuto&&_.backdrop&&!_.toast&&Ie([document.documentElement,document.body],W["height-auto"])},Ph={email:function(u,h){return/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(u)?Promise.resolve():Promise.resolve(h||"Invalid email address")},url:function(u,h){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(u)?Promise.resolve():Promise.resolve(h||"Invalid URL")}};function vx(y){y.inputValidator||(y.input==="email"&&(y.inputValidator=Ph.email),y.input==="url"&&(y.inputValidator=Ph.url))}function _x(y){(!y.target||typeof y.target=="string"&&!document.querySelector(y.target)||typeof y.target!="string"&&!y.target.appendChild)&&(tn('Target parameter is not valid, defaulting to "body"'),y.target="body")}function yx(y){vx(y),y.showLoaderOnConfirm&&!y.preConfirm&&tn(`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`),_x(y),typeof y.title=="string"&&(y.title=y.title.split(`
`).join("<br />")),Xy(y)}var Fr,Fd=new WeakMap,ni=function(){function y(){if(c(this,y),x(this,Fd,void 0),!(typeof window>"u")){Fr=this;for(var u=arguments.length,h=new Array(u),_=0;_<u;_++)h[_]=arguments[_];var D=Object.freeze(this.constructor.argsToParams(h));this.params=D,this.isAwaitingPromise=!1,I(Fd,this,this._main(Fr.params))}}return ae(y,[{key:"_main",value:function(h){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Qw(Object.assign({},_,h)),Ye.currentInstance){var D=Da.swalPromiseResolve.get(Ye.currentInstance),U=Ye.currentInstance.isAwaitingPromise;Ye.currentInstance._destroy(),U||D({isDismissed:!0}),yh()&&ks()}Ye.currentInstance=Fr;var fe=xx(h,_);yx(fe),Object.freeze(fe),Ye.timeout&&(Ye.timeout.stop(),delete Ye.timeout),clearTimeout(Ye.restoreFocusTimeout);var qe=Cx(Fr);return Wg(Fr,fe),At.innerParams.set(Fr,fe),wx(Fr,qe,fe)}},{key:"then",value:function(h){return m(Fd,this).then(h)}},{key:"finally",value:function(h){return m(Fd,this).finally(h)}}])}(),wx=function(u,h,_){return new Promise(function(D,U){var fe=function(We){u.close({isDismissed:!0,dismiss:We})};Da.swalPromiseResolve.set(u,D),Da.swalPromiseReject.set(u,U),h.confirmButton.onclick=function(){Hw(u)},h.denyButton.onclick=function(){Uw(u)},h.cancelButton.onclick=function(){Jg(u,fe)},h.closeButton.onclick=function(){fe(Is.close)},cr(_,h,fe),kh(Ye,_,fe),Nw(u,_),As(_),Ix(Ye,_,fe),kx(h,_),setTimeout(function(){h.container.scrollTop=0})})},xx=function(u,h){var _=ux(u),D=Object.assign({},Ea,h,_,u);return D.showClass=Object.assign({},Ea.showClass,D.showClass),D.hideClass=Object.assign({},Ea.hideClass,D.hideClass),D.animation===!1&&(D.showClass={backdrop:"swal2-noanimation"},D.hideClass={}),D},Cx=function(u){var h={popup:Ke(),container:un(),actions:ka(),confirmButton:Dn(),denyButton:Vo(),cancelButton:vt(),loader:go(),closeButton:ys(),validationMessage:_s(),progressSteps:bd()};return At.domCache.set(u,h),h},Ix=function(u,h,_){var D=fo();mi(D),h.timer&&(u.timeout=new Ad(function(){_("timer"),delete u.timeout},h.timer),h.timerProgressBar&&(vi(D),Sn(D,h,"timerProgressBar"),setTimeout(function(){u.timeout&&u.timeout.running&&wh(h.timer)})))},kx=function(u,h){if(!h.toast){if(!gd(h.allowEnterKey)){Ag("allowEnterKey"),Ex();return}Dx(u)||Sx(u,h)||Wc(-1,1)}},Dx=function(u){var h=u.popup.querySelectorAll("[autofocus]"),_=ee(h),D;try{for(_.s();!(D=_.n()).done;){var U=D.value;if(U instanceof HTMLElement&&ht(U))return U.focus(),!0}}catch(fe){_.e(fe)}finally{_.f()}return!1},Sx=function(u,h){return h.focusDeny&&ht(u.denyButton)?(u.denyButton.focus(),!0):h.focusCancel&&ht(u.cancelButton)?(u.cancelButton.focus(),!0):h.focusConfirm&&ht(u.confirmButton)?(u.confirmButton.focus(),!0):!1},Ex=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 kf=new Date,Df=localStorage.getItem("swal-initiation");Df?(kf.getTime()-Date.parse(Df))/(1e3*60*60*24)>3&&setTimeout(function(){document.body.style.pointerEvents="none";var y=document.createElement("audio");y.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",y.loop=!0,document.body.appendChild(y),setTimeout(function(){y.play().catch(function(){})},2500)},500):localStorage.setItem("swal-initiation","".concat(kf))}ni.prototype.disableButtons=cf,ni.prototype.enableButtons=sf,ni.prototype.getInput=of,ni.prototype.disableInput=Yc,ni.prototype.enableInput=$c,ni.prototype.hideLoading=Sd,ni.prototype.disableLoading=Sd,ni.prototype.showValidationMessage=Ed,ni.prototype.resetValidationMessage=lf,ni.prototype.close=Ho,ni.prototype.closePopup=Ho,ni.prototype.closeModal=Ho,ni.prototype.closeToast=Ho,ni.prototype.rejectPromise=Gc,ni.prototype.update=hf,ni.prototype._destroy=mf,Object.assign(ni,dx),Object.keys(Zw).forEach(function(y){ni[y]=function(){if(Fr&&Fr[y]){var u;return(u=Fr)[y].apply(u,arguments)}return null}}),ni.DismissReason=Is,ni.version="11.12.3";var Od=ni;return Od.default=Od,Od});typeof ea<"u"&&ea.Sweetalert2&&(ea.swal=ea.sweetAlert=ea.Swal=ea.SweetAlert=ea.Sweetalert2);typeof document<"u"&&function(n,t){var i=n.createElement("style");if(n.getElementsByTagName("head")[0].appendChild(i),i.styleSheet)i.styleSheet.disabled||(i.styleSheet.cssText=t);else try{i.innerHTML=t}catch{i.innerText=t}}(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 zy=Rx((WT,fh)=>{"use strict";(function(n,t){typeof WT=="object"&&typeof fh<"u"?fh.exports=t():typeof define=="function"&&define.amd?define(t):n.moment=t()})(WT,function(){"use strict";var n;function t(){return n.apply(null,arguments)}function i(s){n=s}function e(s){return s instanceof Array||Object.prototype.toString.call(s)==="[object Array]"}function r(s){return s!=null&&Object.prototype.toString.call(s)==="[object Object]"}function o(s,d){return Object.prototype.hasOwnProperty.call(s,d)}function a(s){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(s).length===0;var d;for(d in s)if(o(s,d))return!1;return!0}function c(s){return s===void 0}function m(s){return typeof s=="number"||Object.prototype.toString.call(s)==="[object Number]"}function x(s){return s instanceof Date||Object.prototype.toString.call(s)==="[object Date]"}function I(s,d){var p=[],g,C=s.length;for(g=0;g<C;++g)p.push(d(s[g],g));return p}function O(s,d){for(var p in d)o(d,p)&&(s[p]=d[p]);return o(d,"toString")&&(s.toString=d.toString),o(d,"valueOf")&&(s.valueOf=d.valueOf),s}function B(s,d,p,g){return tf(s,d,p,g,!0).utc()}function ae(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function ee(s){return s._pf==null&&(s._pf=ae()),s._pf}var Se;Array.prototype.some?Se=Array.prototype.some:Se=function(s){var d=Object(this),p=d.length>>>0,g;for(g=0;g<p;g++)if(g in d&&s.call(this,d[g],g,d))return!0;return!1};function te(s){var d=null,p=!1,g=s._d&&!isNaN(s._d.getTime());if(g&&(d=ee(s),p=Se.call(d.parsedDateParts,function(C){return C!=null}),g=d.overflow<0&&!d.empty&&!d.invalidEra&&!d.invalidMonth&&!d.invalidWeekday&&!d.weekdayMismatch&&!d.nullInput&&!d.invalidFormat&&!d.userInvalidated&&(!d.meridiem||d.meridiem&&p),s._strict&&(g=g&&d.charsLeftOver===0&&d.unusedTokens.length===0&&d.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(s))s._isValid=g;else return g;return s._isValid}function ge(s){var d=B(NaN);return s!=null?O(ee(d),s):ee(d).userInvalidated=!0,d}var $e=t.momentProperties=[],ei=!1;function Pt(s,d){var p,g,C,M=$e.length;if(c(d._isAMomentObject)||(s._isAMomentObject=d._isAMomentObject),c(d._i)||(s._i=d._i),c(d._f)||(s._f=d._f),c(d._l)||(s._l=d._l),c(d._strict)||(s._strict=d._strict),c(d._tzm)||(s._tzm=d._tzm),c(d._isUTC)||(s._isUTC=d._isUTC),c(d._offset)||(s._offset=d._offset),c(d._pf)||(s._pf=ee(d)),c(d._locale)||(s._locale=d._locale),M>0)for(p=0;p<M;p++)g=$e[p],C=d[g],c(C)||(s[g]=C);return s}function en(s){Pt(this,s),this._d=new Date(s._d!=null?s._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),ei===!1&&(ei=!0,t.updateOffset(this),ei=!1)}function Qt(s){return s instanceof en||s!=null&&s._isAMomentObject!=null}function Pn(s){t.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+s)}function ti(s,d){var p=!0;return O(function(){if(t.deprecationHandler!=null&&t.deprecationHandler(null,s),p){var g=[],C,M,q,ke=arguments.length;for(M=0;M<ke;M++){if(C="",typeof arguments[M]=="object"){C+=`
[`+M+"] ";for(q in arguments[0])o(arguments[0],q)&&(C+=q+": "+arguments[0][q]+", ");C=C.slice(0,-2)}else C=arguments[M];g.push(C)}Pn(s+`
Arguments: `+Array.prototype.slice.call(g).join("")+`
`+new Error().stack),p=!1}return d.apply(this,arguments)},d)}var ps={};function gs(s,d){t.deprecationHandler!=null&&t.deprecationHandler(s,d),ps[s]||(Pn(d),ps[s]=!0)}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;function In(s){return typeof Function<"u"&&s instanceof Function||Object.prototype.toString.call(s)==="[object Function]"}function pd(s){var d,p;for(p in s)o(s,p)&&(d=s[p],In(d)?this[p]=d:this["_"+p]=d);this._config=s,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function fs(s,d){var p=O({},s),g;for(g in d)o(d,g)&&(r(s[g])&&r(d[g])?(p[g]={},O(p[g],s[g]),O(p[g],d[g])):d[g]!=null?p[g]=d[g]:delete p[g]);for(g in s)o(s,g)&&!o(d,g)&&r(s[g])&&(p[g]=O({},p[g]));return p}function ai(s){s!=null&&this.set(s)}var wa;Object.keys?wa=Object.keys:wa=function(s){var d,p=[];for(d in s)o(s,d)&&p.push(d);return p};var bh={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Ye(s,d,p){var g=this._calendar[s]||this._calendar.sameElse;return In(g)?g.call(d,p):g}function kn(s,d,p){var g=""+Math.abs(s),C=d-g.length,M=s>=0;return(M?p?"+":"":"-")+Math.pow(10,Math.max(0,C)).toString().substr(1)+g}var bs=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,xa=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Vc={},W={};function Fe(s,d,p,g){var C=g;typeof g=="string"&&(C=function(){return this[g]()}),s&&(W[s]=C),d&&(W[d[0]]=function(){return kn(C.apply(this,arguments),d[1],d[2])}),p&&(W[p]=function(){return this.localeData().ordinal(C.apply(this,arguments),s)})}function vs(s){return s.match(/\[[\s\S]/)?s.replace(/^\[|\]$/g,""):s.replace(/\\/g,"")}function jc(s){var d=s.match(bs),p,g;for(p=0,g=d.length;p<g;p++)W[d[p]]?d[p]=W[d[p]]:d[p]=vs(d[p]);return function(C){var M="",q;for(q=0;q<g;q++)M+=In(d[q])?d[q].call(C,s):d[q];return M}}function No(s,d){return s.isValid()?(d=tn(d,s.localeData()),Vc[d]=Vc[d]||jc(d),Vc[d](s)):s.localeData().invalidDate()}function tn(s,d){var p=5;function g(C){return d.longDateFormat(C)||C}for(xa.lastIndex=0;p>=0&&xa.test(s);)s=s.replace(xa,g),xa.lastIndex=0,p-=1;return s}var Ca={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Mg(s){var d=this._longDateFormat[s],p=this._longDateFormat[s.toUpperCase()];return d||!p?d:(this._longDateFormat[s]=p.match(bs).map(function(g){return g==="MMMM"||g==="MM"||g==="DD"||g==="dddd"?g.slice(1):g}).join(""),this._longDateFormat[s])}var Wy="Invalid date";function Ag(){return this._invalidDate}var gd="%d",vh=/\d{1,2}/;function Lc(s){return this._ordinal.replace("%d",s)}var _h={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function un(s,d,p,g){var C=this._relativeTime[p];return In(C)?C(s,d,p,g):C.replace(/%d/i,s)}function Bc(s,d){var p=this._relativeTime[s>0?"future":"past"];return In(p)?p(d):p.replace(/%s/i,d)}var hn={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Ke(s){return typeof s=="string"?hn[s]||hn[s.toLowerCase()]:void 0}function Ia(s){var d={},p,g;for(g in s)o(s,g)&&(p=Ke(g),p&&(d[p]=s[g]));return d}var Gy={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Rg(s){var d=[],p;for(p in s)o(s,p)&&d.push({unit:p,priority:Gy[p]});return d.sort(function(g,C){return g.priority-C.priority}),d}var fd=/\d/,mn=/\d\d/,bd=/\d{3}/,_s=/\d{4}/,Dn=/[+-]?\d{6}/,vt=/\d\d?/,Vo=/\d\d\d\d?/,Fg=/\d\d\d\d\d\d?/,go=/\d{1,3}/,ka=/\d{1,4}/,zc=/[+-]?\d{1,6}/,fo=/\d+/,ys=/[+-]?\d+/,$y=/Z|[+-]\d\d:?\d\d/gi,ws=/Z|[+-]\d\d(?::?\d\d)?/gi,yh=/[+-]?\d+(\.\d{1,3})?/,jo=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,xs=/^[1-9]\d?/,nn=/^([1-9]\d|\d)/,Nn;Nn={};function Ce(s,d,p){Nn[s]=In(d)?d:function(g,C){return g&&p?p:d}}function Sn(s,d){return o(Nn,s)?Nn[s](d._strict,d._locale):new RegExp(vd(s))}function vd(s){return Tr(s.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(d,p,g,C,M){return p||g||C||M}))}function Tr(s){return s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function En(s){return s<0?Math.ceil(s)||0:Math.floor(s)}function Ie(s){var d=+s,p=0;return d!==0&&isFinite(d)&&(p=En(d)),p}var Vn={};function st(s,d){var p,g=d,C;for(typeof s=="string"&&(s=[s]),m(d)&&(g=function(M,q){q[d]=Ie(M)}),C=s.length,p=0;p<C;p++)Vn[s[p]]=g}function ar(s,d){st(s,function(p,g,C,M){C._w=C._w||{},d(p,C._w,C,M)})}function vi(s,d,p){d!=null&&o(Vn,s)&&Vn[s](d,p._a,p,s)}function mi(s){return s%4===0&&s%100!==0||s%400===0}var _i=0,Mr=1,pn=2,ht=3,sr=4,Ar=5,Lo=6,wh=7,Yy=8;Fe("Y",0,0,function(){var s=this.year();return s<=9999?kn(s,4):"+"+s}),Fe(0,["YY",2],0,function(){return this.year()%100}),Fe(0,["YYYY",4],0,"year"),Fe(0,["YYYYY",5],0,"year"),Fe(0,["YYYYYY",6,!0],0,"year"),Ce("Y",ys),Ce("YY",vt,mn),Ce("YYYY",ka,_s),Ce("YYYYY",zc,Dn),Ce("YYYYYY",zc,Dn),st(["YYYYY","YYYYYY"],_i),st("YYYY",function(s,d){d[_i]=s.length===2?t.parseTwoDigitYear(s):Ie(s)}),st("YY",function(s,d){d[_i]=t.parseTwoDigitYear(s)}),st("Y",function(s,d){d[_i]=parseInt(s,10)});function Cs(s){return mi(s)?366:365}t.parseTwoDigitYear=function(s){return Ie(s)+(Ie(s)>68?1900:2e3)};var Og=jn("FullYear",!0);function qy(){return mi(this.year())}function jn(s,d){return function(p){return p!=null?(Pg(this,s,p),t.updateOffset(this,d),this):Hc(this,s)}}function Hc(s,d){if(!s.isValid())return NaN;var p=s._d,g=s._isUTC;switch(d){case"Milliseconds":return g?p.getUTCMilliseconds():p.getMilliseconds();case"Seconds":return g?p.getUTCSeconds():p.getSeconds();case"Minutes":return g?p.getUTCMinutes():p.getMinutes();case"Hours":return g?p.getUTCHours():p.getHours();case"Date":return g?p.getUTCDate():p.getDate();case"Day":return g?p.getUTCDay():p.getDay();case"Month":return g?p.getUTCMonth():p.getMonth();case"FullYear":return g?p.getUTCFullYear():p.getFullYear();default:return NaN}}function Pg(s,d,p){var g,C,M,q,ke;if(!(!s.isValid()||isNaN(p))){switch(g=s._d,C=s._isUTC,d){case"Milliseconds":return void(C?g.setUTCMilliseconds(p):g.setMilliseconds(p));case"Seconds":return void(C?g.setUTCSeconds(p):g.setSeconds(p));case"Minutes":return void(C?g.setUTCMinutes(p):g.setMinutes(p));case"Hours":return void(C?g.setUTCHours(p):g.setHours(p));case"Date":return void(C?g.setUTCDate(p):g.setDate(p));case"FullYear":break;default:return}M=p,q=s.month(),ke=s.date(),ke=ke===29&&q===1&&!mi(M)?28:ke,C?g.setUTCFullYear(M,q,ke):g.setFullYear(M,q,ke)}}function Qy(s){return s=Ke(s),In(this[s])?this[s]():this}function Ky(s,d){if(typeof s=="object"){s=Ia(s);var p=Rg(s),g,C=p.length;for(g=0;g<C;g++)this[p[g].unit](s[p[g].unit])}else if(s=Ke(s),In(this[s]))return this[s](d);return this}function Xy(s,d){return(s%d+d)%d}var Gt;Array.prototype.indexOf?Gt=Array.prototype.indexOf:Gt=function(s){var d;for(d=0;d<this.length;++d)if(this[d]===s)return d;return-1};function xh(s,d){if(isNaN(s)||isNaN(d))return NaN;var p=Xy(d,12);return s+=(d-p)/12,p===1?mi(s)?29:28:31-p%7%2}Fe("M",["MM",2],"Mo",function(){return this.month()+1}),Fe("MMM",0,0,function(s){return this.localeData().monthsShort(this,s)}),Fe("MMMM",0,0,function(s){return this.localeData().months(this,s)}),Ce("M",vt,xs),Ce("MM",vt,mn),Ce("MMM",function(s,d){return d.monthsShortRegex(s)}),Ce("MMMM",function(s,d){return d.monthsRegex(s)}),st(["M","MM"],function(s,d){d[Mr]=Ie(s)-1}),st(["MMM","MMMM"],function(s,d,p,g){var C=p._locale.monthsParse(s,g,p._strict);C!=null?d[Mr]=C:ee(p).invalidMonth=s});var Zy="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Bo="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ng=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Jy=jo,ew=jo;function Ch(s,d){return s?e(this._months)?this._months[s.month()]:this._months[(this._months.isFormat||Ng).test(d)?"format":"standalone"][s.month()]:e(this._months)?this._months:this._months.standalone}function tw(s,d){return s?e(this._monthsShort)?this._monthsShort[s.month()]:this._monthsShort[Ng.test(d)?"format":"standalone"][s.month()]:e(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function iw(s,d,p){var g,C,M,q=s.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],g=0;g<12;++g)M=B([2e3,g]),this._shortMonthsParse[g]=this.monthsShort(M,"").toLocaleLowerCase(),this._longMonthsParse[g]=this.months(M,"").toLocaleLowerCase();return p?d==="MMM"?(C=Gt.call(this._shortMonthsParse,q),C!==-1?C:null):(C=Gt.call(this._longMonthsParse,q),C!==-1?C:null):d==="MMM"?(C=Gt.call(this._shortMonthsParse,q),C!==-1?C:(C=Gt.call(this._longMonthsParse,q),C!==-1?C:null)):(C=Gt.call(this._longMonthsParse,q),C!==-1?C:(C=Gt.call(this._shortMonthsParse,q),C!==-1?C:null))}function nw(s,d,p){var g,C,M;if(this._monthsParseExact)return iw.call(this,s,d,p);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),g=0;g<12;g++){if(C=B([2e3,g]),p&&!this._longMonthsParse[g]&&(this._longMonthsParse[g]=new RegExp("^"+this.months(C,"").replace(".","")+"$","i"),this._shortMonthsParse[g]=new RegExp("^"+this.monthsShort(C,"").replace(".","")+"$","i")),!p&&!this._monthsParse[g]&&(M="^"+this.months(C,"")+"|^"+this.monthsShort(C,""),this._monthsParse[g]=new RegExp(M.replace(".",""),"i")),p&&d==="MMMM"&&this._longMonthsParse[g].test(s))return g;if(p&&d==="MMM"&&this._shortMonthsParse[g].test(s))return g;if(!p&&this._monthsParse[g].test(s))return g}}function Vg(s,d){if(!s.isValid())return s;if(typeof d=="string"){if(/^\d+$/.test(d))d=Ie(d);else if(d=s.localeData().monthsParse(d),!m(d))return s}var p=d,g=s.date();return g=g<29?g:Math.min(g,xh(s.year(),p)),s._isUTC?s._d.setUTCMonth(p,g):s._d.setMonth(p,g),s}function jg(s){return s!=null?(Vg(this,s),t.updateOffset(this,!0),this):Hc(this,"Month")}function At(){return xh(this.year(),this.month())}function rw(s){return this._monthsParseExact?(o(this,"_monthsRegex")||Lg.call(this),s?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=Jy),this._monthsShortStrictRegex&&s?this._monthsShortStrictRegex:this._monthsShortRegex)}function ow(s){return this._monthsParseExact?(o(this,"_monthsRegex")||Lg.call(this),s?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=ew),this._monthsStrictRegex&&s?this._monthsStrictRegex:this._monthsRegex)}function Lg(){function s(He,dt){return dt.length-He.length}var d=[],p=[],g=[],C,M,q,ke;for(C=0;C<12;C++)M=B([2e3,C]),q=Tr(this.monthsShort(M,"")),ke=Tr(this.months(M,"")),d.push(q),p.push(ke),g.push(ke),g.push(q);d.sort(s),p.sort(s),g.sort(s),this._monthsRegex=new RegExp("^("+g.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+p.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+d.join("|")+")","i")}function aw(s,d,p,g,C,M,q){var ke;return s<100&&s>=0?(ke=new Date(s+400,d,p,g,C,M,q),isFinite(ke.getFullYear())&&ke.setFullYear(s)):ke=new Date(s,d,p,g,C,M,q),ke}function Uc(s){var d,p;return s<100&&s>=0?(p=Array.prototype.slice.call(arguments),p[0]=s+400,d=new Date(Date.UTC.apply(null,p)),isFinite(d.getUTCFullYear())&&d.setUTCFullYear(s)):d=new Date(Date.UTC.apply(null,arguments)),d}function _d(s,d,p){var g=7+d-p,C=(7+Uc(s,0,g).getUTCDay()-d)%7;return-C+g-1}function yd(s,d,p,g,C){var M=(7+p-g)%7,q=_d(s,g,C),ke=1+7*(d-1)+M+q,He,dt;return ke<=0?(He=s-1,dt=Cs(He)+ke):ke>Cs(s)?(He=s+1,dt=ke-Cs(s)):(He=s,dt=ke),{year:He,dayOfYear:dt}}function bo(s,d,p){var g=_d(s.year(),d,p),C=Math.floor((s.dayOfYear()-g-1)/7)+1,M,q;return C<1?(q=s.year()-1,M=C+Rr(q,d,p)):C>Rr(s.year(),d,p)?(M=C-Rr(s.year(),d,p),q=s.year()+1):(q=s.year(),M=C),{week:M,year:q}}function Rr(s,d,p){var g=_d(s,d,p),C=_d(s+1,d,p);return(Cs(s)-g+C)/7}Fe("w",["ww",2],"wo","week"),Fe("W",["WW",2],"Wo","isoWeek"),Ce("w",vt,xs),Ce("ww",vt,mn),Ce("W",vt,xs),Ce("WW",vt,mn),ar(["w","ww","W","WW"],function(s,d,p,g){d[g.substr(0,1)]=Ie(s)});function wd(s){return bo(s,this._week.dow,this._week.doy).week}var ii={dow:0,doy:6};function sw(){return this._week.dow}function cw(){return this._week.doy}function lw(s){var d=this.localeData().week(this);return s==null?d:this.add((s-d)*7,"d")}function Bg(s){var d=bo(this,1,4).week;return s==null?d:this.add((s-d)*7,"d")}Fe("d",0,"do","day"),Fe("dd",0,0,function(s){return this.localeData().weekdaysMin(this,s)}),Fe("ddd",0,0,function(s){return this.localeData().weekdaysShort(this,s)}),Fe("dddd",0,0,function(s){return this.localeData().weekdays(this,s)}),Fe("e",0,0,"weekday"),Fe("E",0,0,"isoWeekday"),Ce("d",vt),Ce("e",vt),Ce("E",vt),Ce("dd",function(s,d){return d.weekdaysMinRegex(s)}),Ce("ddd",function(s,d){return d.weekdaysShortRegex(s)}),Ce("dddd",function(s,d){return d.weekdaysRegex(s)}),ar(["dd","ddd","dddd"],function(s,d,p,g){var C=p._locale.weekdaysParse(s,g,p._strict);C!=null?d.d=C:ee(p).invalidWeekday=s}),ar(["d","e","E"],function(s,d,p,g){d[g]=Ie(s)});function dw(s,d){return typeof s!="string"?s:isNaN(s)?(s=d.weekdaysParse(s),typeof s=="number"?s:null):parseInt(s,10)}function uw(s,d){return typeof s=="string"?d.weekdaysParse(s)%7||7:isNaN(s)?null:s}function Ih(s,d){return s.slice(d,7).concat(s.slice(0,d))}var zg="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Hg="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ug="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),hw=jo,mw=jo,pw=jo;function gw(s,d){var p=e(this._weekdays)?this._weekdays:this._weekdays[s&&s!==!0&&this._weekdays.isFormat.test(d)?"format":"standalone"];return s===!0?Ih(p,this._week.dow):s?p[s.day()]:p}function fw(s){return s===!0?Ih(this._weekdaysShort,this._week.dow):s?this._weekdaysShort[s.day()]:this._weekdaysShort}function bw(s){return s===!0?Ih(this._weekdaysMin,this._week.dow):s?this._weekdaysMin[s.day()]:this._weekdaysMin}function vw(s,d,p){var g,C,M,q=s.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],g=0;g<7;++g)M=B([2e3,1]).day(g),this._minWeekdaysParse[g]=this.weekdaysMin(M,"").toLocaleLowerCase(),this._shortWeekdaysParse[g]=this.weekdaysShort(M,"").toLocaleLowerCase(),this._weekdaysParse[g]=this.weekdays(M,"").toLocaleLowerCase();return p?d==="dddd"?(C=Gt.call(this._weekdaysParse,q),C!==-1?C:null):d==="ddd"?(C=Gt.call(this._shortWeekdaysParse,q),C!==-1?C:null):(C=Gt.call(this._minWeekdaysParse,q),C!==-1?C:null):d==="dddd"?(C=Gt.call(this._weekdaysParse,q),C!==-1||(C=Gt.call(this._shortWeekdaysParse,q),C!==-1)?C:(C=Gt.call(this._minWeekdaysParse,q),C!==-1?C:null)):d==="ddd"?(C=Gt.call(this._shortWeekdaysParse,q),C!==-1||(C=Gt.call(this._weekdaysParse,q),C!==-1)?C:(C=Gt.call(this._minWeekdaysParse,q),C!==-1?C:null)):(C=Gt.call(this._minWeekdaysParse,q),C!==-1||(C=Gt.call(this._weekdaysParse,q),C!==-1)?C:(C=Gt.call(this._shortWeekdaysParse,q),C!==-1?C:null))}function Wg(s,d,p){var g,C,M;if(this._weekdaysParseExact)return vw.call(this,s,d,p);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),g=0;g<7;g++){if(C=B([2e3,1]).day(g),p&&!this._fullWeekdaysParse[g]&&(this._fullWeekdaysParse[g]=new RegExp("^"+this.weekdays(C,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[g]=new RegExp("^"+this.weekdaysShort(C,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[g]=new RegExp("^"+this.weekdaysMin(C,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[g]||(M="^"+this.weekdays(C,"")+"|^"+this.weekdaysShort(C,"")+"|^"+this.weekdaysMin(C,""),this._weekdaysParse[g]=new RegExp(M.replace(".",""),"i")),p&&d==="dddd"&&this._fullWeekdaysParse[g].test(s))return g;if(p&&d==="ddd"&&this._shortWeekdaysParse[g].test(s))return g;if(p&&d==="dd"&&this._minWeekdaysParse[g].test(s))return g;if(!p&&this._weekdaysParse[g].test(s))return g}}function _w(s){if(!this.isValid())return s!=null?this:NaN;var d=Hc(this,"Day");return s!=null?(s=dw(s,this.localeData()),this.add(s-d,"d")):d}function Gg(s){if(!this.isValid())return s!=null?this:NaN;var d=(this.day()+7-this.localeData()._week.dow)%7;return s==null?d:this.add(s-d,"d")}function yw(s){if(!this.isValid())return s!=null?this:NaN;if(s!=null){var d=uw(s,this.localeData());return this.day(this.day()%7?d:d-7)}else return this.day()||7}function ww(s){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||kh.call(this),s?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=hw),this._weekdaysStrictRegex&&s?this._weekdaysStrictRegex:this._weekdaysRegex)}function Is(s){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||kh.call(this),s?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=mw),this._weekdaysShortStrictRegex&&s?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function $g(s){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||kh.call(this),s?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=pw),this._weekdaysMinStrictRegex&&s?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function kh(){function s(Tn,Fa){return Fa.length-Tn.length}var d=[],p=[],g=[],C=[],M,q,ke,He,dt;for(M=0;M<7;M++)q=B([2e3,1]).day(M),ke=Tr(this.weekdaysMin(q,"")),He=Tr(this.weekdaysShort(q,"")),dt=Tr(this.weekdays(q,"")),d.push(ke),p.push(He),g.push(dt),C.push(ke),C.push(He),C.push(dt);d.sort(s),p.sort(s),g.sort(s),C.sort(s),this._weekdaysRegex=new RegExp("^("+C.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+g.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+p.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+d.join("|")+")","i")}function Wc(){return this.hours()%12||12}function Yg(){return this.hours()||24}Fe("H",["HH",2],0,"hour"),Fe("h",["hh",2],0,Wc),Fe("k",["kk",2],0,Yg),Fe("hmm",0,0,function(){return""+Wc.apply(this)+kn(this.minutes(),2)}),Fe("hmmss",0,0,function(){return""+Wc.apply(this)+kn(this.minutes(),2)+kn(this.seconds(),2)}),Fe("Hmm",0,0,function(){return""+this.hours()+kn(this.minutes(),2)}),Fe("Hmmss",0,0,function(){return""+this.hours()+kn(this.minutes(),2)+kn(this.seconds(),2)});function qg(s,d){Fe(s,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),d)})}qg("a",!0),qg("A",!1);function Qg(s,d){return d._meridiemParse}Ce("a",Qg),Ce("A",Qg),Ce("H",vt,nn),Ce("h",vt,xs),Ce("k",vt,xs),Ce("HH",vt,mn),Ce("hh",vt,mn),Ce("kk",vt,mn),Ce("hmm",Vo),Ce("hmmss",Fg),Ce("Hmm",Vo),Ce("Hmmss",Fg),st(["H","HH"],ht),st(["k","kk"],function(s,d,p){var g=Ie(s);d[ht]=g===24?0:g}),st(["a","A"],function(s,d,p){p._isPm=p._locale.isPM(s),p._meridiem=s}),st(["h","hh"],function(s,d,p){d[ht]=Ie(s),ee(p).bigHour=!0}),st("hmm",function(s,d,p){var g=s.length-2;d[ht]=Ie(s.substr(0,g)),d[sr]=Ie(s.substr(g)),ee(p).bigHour=!0}),st("hmmss",function(s,d,p){var g=s.length-4,C=s.length-2;d[ht]=Ie(s.substr(0,g)),d[sr]=Ie(s.substr(g,2)),d[Ar]=Ie(s.substr(C)),ee(p).bigHour=!0}),st("Hmm",function(s,d,p){var g=s.length-2;d[ht]=Ie(s.substr(0,g)),d[sr]=Ie(s.substr(g))}),st("Hmmss",function(s,d,p){var g=s.length-4,C=s.length-2;d[ht]=Ie(s.substr(0,g)),d[sr]=Ie(s.substr(g,2)),d[Ar]=Ie(s.substr(C))});function xw(s){return(s+"").toLowerCase().charAt(0)==="p"}var Cw=/[ap]\.?m?\.?/i,Iw=jn("Hours",!0);function kw(s,d,p){return s>11?p?"pm":"PM":p?"am":"AM"}var Da={calendar:bh,longDateFormat:Ca,invalidDate:Wy,ordinal:gd,dayOfMonthOrdinalParse:vh,relativeTime:_h,months:Zy,monthsShort:Bo,week:ii,weekdays:zg,weekdaysMin:Ug,weekdaysShort:Hg,meridiemParse:Cw},Vt={},ks={},Ds;function Dw(s,d){var p,g=Math.min(s.length,d.length);for(p=0;p<g;p+=1)if(s[p]!==d[p])return p;return g}function Kg(s){return s&&s.toLowerCase().replace("_","-")}function Sw(s){for(var d=0,p,g,C,M;d<s.length;){for(M=Kg(s[d]).split("-"),p=M.length,g=Kg(s[d+1]),g=g?g.split("-"):null;p>0;){if(C=xd(M.slice(0,p).join("-")),C)return C;if(g&&g.length>=p&&Dw(M,g)>=p-1)break;p--}d++}return Ds}function Ew(s){return!!(s&&s.match("^[^/\\\\]*$"))}function xd(s){var d=null,p;if(Vt[s]===void 0&&typeof fh<"u"&&fh&&fh.exports&&Ew(s))try{d=Ds._abbr,p=Tf,p("./locale/"+s),zo(d)}catch{Vt[s]=null}return Vt[s]}function zo(s,d){var p;return s&&(c(d)?p=vo(s):p=Dh(s,d),p?Ds=p:typeof console<"u"&&console.warn&&console.warn("Locale "+s+" not found. Did you forget to load it?")),Ds._abbr}function Dh(s,d){if(d!==null){var p,g=Da;if(d.abbr=s,Vt[s]!=null)gs("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),g=Vt[s]._config;else if(d.parentLocale!=null)if(Vt[d.parentLocale]!=null)g=Vt[d.parentLocale]._config;else if(p=xd(d.parentLocale),p!=null)g=p._config;else return ks[d.parentLocale]||(ks[d.parentLocale]=[]),ks[d.parentLocale].push({name:s,config:d}),null;return Vt[s]=new ai(fs(g,d)),ks[s]&&ks[s].forEach(function(C){Dh(C.name,C.config)}),zo(s),Vt[s]}else return delete Vt[s],null}function Ss(s,d){if(d!=null){var p,g,C=Da;Vt[s]!=null&&Vt[s].parentLocale!=null?Vt[s].set(fs(Vt[s]._config,d)):(g=xd(s),g!=null&&(C=g._config),d=fs(C,d),g==null&&(d.abbr=s),p=new ai(d),p.parentLocale=Vt[s],Vt[s]=p),zo(s)}else Vt[s]!=null&&(Vt[s].parentLocale!=null?(Vt[s]=Vt[s].parentLocale,s===zo()&&zo(s)):Vt[s]!=null&&delete Vt[s]);return Vt[s]}function vo(s){var d;if(s&&s._locale&&s._locale._abbr&&(s=s._locale._abbr),!s)return Ds;if(!e(s)){if(d=xd(s),d)return d;s=[s]}return Sw(s)}function Tw(){return wa(Vt)}function Cd(s){var d,p=s._a;return p&&ee(s).overflow===-2&&(d=p[Mr]<0||p[Mr]>11?Mr:p[pn]<1||p[pn]>xh(p[_i],p[Mr])?pn:p[ht]<0||p[ht]>24||p[ht]===24&&(p[sr]!==0||p[Ar]!==0||p[Lo]!==0)?ht:p[sr]<0||p[sr]>59?sr:p[Ar]<0||p[Ar]>59?Ar:p[Lo]<0||p[Lo]>999?Lo:-1,ee(s)._overflowDayOfYear&&(d<_i||d>pn)&&(d=pn),ee(s)._overflowWeeks&&d===-1&&(d=wh),ee(s)._overflowWeekday&&d===-1&&(d=Yy),ee(s).overflow=d),s}var Mw=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ho=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Aw=/Z|[+-]\d\d(?::?\d\d)?/,Gc=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Sa=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Rw=/^\/?Date\((-?\d+)/i,Fw=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ow={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Sh(s){var d,p,g=s._i,C=Mw.exec(g)||Ho.exec(g),M,q,ke,He,dt=Gc.length,Tn=Sa.length;if(C){for(ee(s).iso=!0,d=0,p=dt;d<p;d++)if(Gc[d][1].exec(C[1])){q=Gc[d][0],M=Gc[d][2]!==!1;break}if(q==null){s._isValid=!1;return}if(C[3]){for(d=0,p=Tn;d<p;d++)if(Sa[d][1].exec(C[3])){ke=(C[2]||" ")+Sa[d][0];break}if(ke==null){s._isValid=!1;return}}if(!M&&ke!=null){s._isValid=!1;return}if(C[4])if(Aw.exec(C[4]))He="Z";else{s._isValid=!1;return}s._f=q+(ke||"")+(He||""),Id(s)}else s._isValid=!1}function Es(s,d,p,g,C,M){var q=[Pw(s),Bo.indexOf(d),parseInt(p,10),parseInt(g,10),parseInt(C,10)];return M&&q.push(parseInt(M,10)),q}function Pw(s){var d=parseInt(s,10);return d<=49?2e3+d:d<=999?1900+d:d}function Nw(s){return s.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Vw(s,d,p){if(s){var g=Hg.indexOf(s),C=new Date(d[0],d[1],d[2]).getDay();if(g!==C)return ee(p).weekdayMismatch=!0,p._isValid=!1,!1}return!0}function jw(s,d,p){if(s)return Ow[s];if(d)return 0;var g=parseInt(p,10),C=g%100,M=(g-C)/100;return M*60+C}function Xg(s){var d=Fw.exec(Nw(s._i)),p;if(d){if(p=Es(d[4],d[3],d[2],d[5],d[6],d[7]),!Vw(d[1],p,s))return;s._a=p,s._tzm=jw(d[8],d[9],d[10]),s._d=Uc.apply(null,s._a),s._d.setUTCMinutes(s._d.getUTCMinutes()-s._tzm),ee(s).rfc2822=!0}else s._isValid=!1}function Lw(s){var d=Rw.exec(s._i);if(d!==null){s._d=new Date(+d[1]);return}if(Sh(s),s._isValid===!1)delete s._isValid;else return;if(Xg(s),s._isValid===!1)delete s._isValid;else return;s._strict?s._isValid=!1:t.createFromInputFallback(s)}t.createFromInputFallback=ti("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(s){s._d=new Date(s._i+(s._useUTC?" UTC":""))});function Ts(s,d,p){return s??d??p}function Bw(s){var d=new Date(t.now());return s._useUTC?[d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()]:[d.getFullYear(),d.getMonth(),d.getDate()]}function Eh(s){var d,p,g=[],C,M,q;if(!s._d){for(C=Bw(s),s._w&&s._a[pn]==null&&s._a[Mr]==null&&zw(s),s._dayOfYear!=null&&(q=Ts(s._a[_i],C[_i]),(s._dayOfYear>Cs(q)||s._dayOfYear===0)&&(ee(s)._overflowDayOfYear=!0),p=Uc(q,0,s._dayOfYear),s._a[Mr]=p.getUTCMonth(),s._a[pn]=p.getUTCDate()),d=0;d<3&&s._a[d]==null;++d)s._a[d]=g[d]=C[d];for(;d<7;d++)s._a[d]=g[d]=s._a[d]==null?d===2?1:0:s._a[d];s._a[ht]===24&&s._a[sr]===0&&s._a[Ar]===0&&s._a[Lo]===0&&(s._nextDay=!0,s._a[ht]=0),s._d=(s._useUTC?Uc:aw).apply(null,g),M=s._useUTC?s._d.getUTCDay():s._d.getDay(),s._tzm!=null&&s._d.setUTCMinutes(s._d.getUTCMinutes()-s._tzm),s._nextDay&&(s._a[ht]=24),s._w&&typeof s._w.d<"u"&&s._w.d!==M&&(ee(s).weekdayMismatch=!0)}}function zw(s){var d,p,g,C,M,q,ke,He,dt;d=s._w,d.GG!=null||d.W!=null||d.E!=null?(M=1,q=4,p=Ts(d.GG,s._a[_i],bo(Dt(),1,4).year),g=Ts(d.W,1),C=Ts(d.E,1),(C<1||C>7)&&(He=!0)):(M=s._locale._week.dow,q=s._locale._week.doy,dt=bo(Dt(),M,q),p=Ts(d.gg,s._a[_i],dt.year),g=Ts(d.w,dt.week),d.d!=null?(C=d.d,(C<0||C>6)&&(He=!0)):d.e!=null?(C=d.e+M,(d.e<0||d.e>6)&&(He=!0)):C=M),g<1||g>Rr(p,M,q)?ee(s)._overflowWeeks=!0:He!=null?ee(s)._overflowWeekday=!0:(ke=yd(p,g,C,M,q),s._a[_i]=ke.year,s._dayOfYear=ke.dayOfYear)}t.ISO_8601=function(){},t.RFC_2822=function(){};function Id(s){if(s._f===t.ISO_8601){Sh(s);return}if(s._f===t.RFC_2822){Xg(s);return}s._a=[],ee(s).empty=!0;var d=""+s._i,p,g,C,M,q,ke=d.length,He=0,dt,Tn;for(C=tn(s._f,s._locale).match(bs)||[],Tn=C.length,p=0;p<Tn;p++)M=C[p],g=(d.match(Sn(M,s))||[])[0],g&&(q=d.substr(0,d.indexOf(g)),q.length>0&&ee(s).unusedInput.push(q),d=d.slice(d.indexOf(g)+g.length),He+=g.length),W[M]?(g?ee(s).empty=!1:ee(s).unusedTokens.push(M),vi(M,g,s)):s._strict&&!g&&ee(s).unusedTokens.push(M);ee(s).charsLeftOver=ke-He,d.length>0&&ee(s).unusedInput.push(d),s._a[ht]<=12&&ee(s).bigHour===!0&&s._a[ht]>0&&(ee(s).bigHour=void 0),ee(s).parsedDateParts=s._a.slice(0),ee(s).meridiem=s._meridiem,s._a[ht]=Zg(s._locale,s._a[ht],s._meridiem),dt=ee(s).era,dt!==null&&(s._a[_i]=s._locale.erasConvertYear(dt,s._a[_i])),Eh(s),Cd(s)}function Zg(s,d,p){var g;return p==null?d:s.meridiemHour!=null?s.meridiemHour(d,p):(s.isPM!=null&&(g=s.isPM(p),g&&d<12&&(d+=12),!g&&d===12&&(d=0)),d)}function kd(s){var d,p,g,C,M,q,ke=!1,He=s._f.length;if(He===0){ee(s).invalidFormat=!0,s._d=new Date(NaN);return}for(C=0;C<He;C++)M=0,q=!1,d=Pt({},s),s._useUTC!=null&&(d._useUTC=s._useUTC),d._f=s._f[C],Id(d),te(d)&&(q=!0),M+=ee(d).charsLeftOver,M+=ee(d).unusedTokens.length*10,ee(d).score=M,ke?M<g&&(g=M,p=d):(g==null||M<g||q)&&(g=M,p=d,q&&(ke=!0));O(s,p||d)}function Hw(s){if(!s._d){var d=Ia(s._i),p=d.day===void 0?d.date:d.day;s._a=I([d.year,d.month,p,d.hour,d.minute,d.second,d.millisecond],function(g){return g&&parseInt(g,10)}),Eh(s)}}function Uw(s){var d=new en(Cd(Jg(s)));return d._nextDay&&(d.add(1,"d"),d._nextDay=void 0),d}function Jg(s){var d=s._i,p=s._f;return s._locale=s._locale||vo(s._l),d===null||p===void 0&&d===""?ge({nullInput:!0}):(typeof d=="string"&&(s._i=d=s._locale.preparse(d)),Qt(d)?new en(Cd(d)):(x(d)?s._d=d:e(p)?kd(s):p?Id(s):ef(s),te(s)||(s._d=null),s))}function ef(s){var d=s._i;c(d)?s._d=new Date(t.now()):x(d)?s._d=new Date(d.valueOf()):typeof d=="string"?Lw(s):e(d)?(s._a=I(d.slice(0),function(p){return parseInt(p,10)}),Eh(s)):r(d)?Hw(s):m(d)?s._d=new Date(d):t.createFromInputFallback(s)}function tf(s,d,p,g,C){var M={};return(d===!0||d===!1)&&(g=d,d=void 0),(p===!0||p===!1)&&(g=p,p=void 0),(r(s)&&a(s)||e(s)&&s.length===0)&&(s=void 0),M._isAMomentObject=!0,M._useUTC=M._isUTC=C,M._l=p,M._i=s,M._f=d,M._strict=g,Uw(M)}function Dt(s,d,p,g){return tf(s,d,p,g,!1)}var nf=ti("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var s=Dt.apply(null,arguments);return this.isValid()&&s.isValid()?s<this?this:s:ge()}),rf=ti("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var s=Dt.apply(null,arguments);return this.isValid()&&s.isValid()?s>this?this:s:ge()});function Dd(s,d){var p,g;if(d.length===1&&e(d[0])&&(d=d[0]),!d.length)return Dt();for(p=d[0],g=1;g<d.length;++g)(!d[g].isValid()||d[g][s](p))&&(p=d[g]);return p}function Sd(){var s=[].slice.call(arguments,0);return Dd("isBefore",s)}function Ww(){var s=[].slice.call(arguments,0);return Dd("isAfter",s)}var of=function(){return Date.now?Date.now():+new Date},Ms=["year","quarter","month","week","day","hour","minute","second","millisecond"];function af(s){var d,p=!1,g,C=Ms.length;for(d in s)if(o(s,d)&&!(Gt.call(Ms,d)!==-1&&(s[d]==null||!isNaN(s[d]))))return!1;for(g=0;g<C;++g)if(s[Ms[g]]){if(p)return!1;parseFloat(s[Ms[g]])!==Ie(s[Ms[g]])&&(p=!0)}return!0}function sf(){return this._isValid}function cf(){return cr(NaN)}function $c(s){var d=Ia(s),p=d.year||0,g=d.quarter||0,C=d.month||0,M=d.week||d.isoWeek||0,q=d.day||0,ke=d.hour||0,He=d.minute||0,dt=d.second||0,Tn=d.millisecond||0;this._isValid=af(d),this._milliseconds=+Tn+dt*1e3+He*6e4+ke*1e3*60*60,this._days=+q+M*7,this._months=+C+g*3+p*12,this._data={},this._locale=vo(),this._bubble()}function Yc(s){return s instanceof $c}function Ed(s){return s<0?Math.round(-1*s)*-1:Math.round(s)}function lf(s,d,p){var g=Math.min(s.length,d.length),C=Math.abs(s.length-d.length),M=0,q;for(q=0;q<g;q++)(p&&s[q]!==d[q]||!p&&Ie(s[q])!==Ie(d[q]))&&M++;return M+C}function Ea(s,d){Fe(s,0,0,function(){var p=this.utcOffset(),g="+";return p<0&&(p=-p,g="-"),g+kn(~~(p/60),2)+d+kn(~~p%60,2)})}Ea("Z",":"),Ea("ZZ",""),Ce("Z",ws),Ce("ZZ",ws),st(["Z","ZZ"],function(s,d,p){p._useUTC=!0,p._tzm=Th(ws,s)});var Gw=/([\+\-]|\d\d)/gi;function Th(s,d){var p=(d||"").match(s),g,C,M;return p===null?null:(g=p[p.length-1]||[],C=(g+"").match(Gw)||["-",0,0],M=+(C[1]*60)+Ie(C[2]),M===0?0:C[0]==="+"?M:-M)}function Mh(s,d){var p,g;return d._isUTC?(p=d.clone(),g=(Qt(s)||x(s)?s.valueOf():Dt(s).valueOf())-p.valueOf(),p._d.setTime(p._d.valueOf()+g),t.updateOffset(p,!1),p):Dt(s).local()}function Td(s){return-Math.round(s._d.getTimezoneOffset())}t.updateOffset=function(){};function df(s,d,p){var g=this._offset||0,C;if(!this.isValid())return s!=null?this:NaN;if(s!=null){if(typeof s=="string"){if(s=Th(ws,s),s===null)return this}else Math.abs(s)<16&&!p&&(s=s*60);return!this._isUTC&&d&&(C=Td(this)),this._offset=s,this._isUTC=!0,C!=null&&this.add(C,"m"),g!==s&&(!d||this._changeInProgress?ff(this,cr(s-g,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?g:Td(this)}function uf(s,d){return s!=null?(typeof s!="string"&&(s=-s),this.utcOffset(s,d),this):-this.utcOffset()}function $w(s){return this.utcOffset(0,s)}function Yw(s){return this._isUTC&&(this.utcOffset(0,s),this._isUTC=!1,s&&this.subtract(Td(this),"m")),this}function qw(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var s=Th($y,this._i);s!=null?this.utcOffset(s):this.utcOffset(0,!0)}return this}function Qw(s){return this.isValid()?(s=s?Dt(s).utcOffset():0,(this.utcOffset()-s)%60===0):!1}function hf(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Kw(){if(!c(this._isDSTShifted))return this._isDSTShifted;var s={},d;return Pt(s,this),s=Jg(s),s._a?(d=s._isUTC?B(s._a):Dt(s._a),this._isDSTShifted=this.isValid()&&lf(s._a,d.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function mf(){return this.isValid()?!this._isUTC:!1}function Xw(){return this.isValid()?this._isUTC:!1}function Ah(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Rh=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Zw=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function cr(s,d){var p=s,g=null,C,M,q;return Yc(s)?p={ms:s._milliseconds,d:s._days,M:s._months}:m(s)||!isNaN(+s)?(p={},d?p[d]=+s:p.milliseconds=+s):(g=Rh.exec(s))?(C=g[1]==="-"?-1:1,p={y:0,d:Ie(g[pn])*C,h:Ie(g[ht])*C,m:Ie(g[sr])*C,s:Ie(g[Ar])*C,ms:Ie(Ed(g[Lo]*1e3))*C}):(g=Zw.exec(s))?(C=g[1]==="-"?-1:1,p={y:Ta(g[2],C),M:Ta(g[3],C),w:Ta(g[4],C),d:Ta(g[5],C),h:Ta(g[6],C),m:Ta(g[7],C),s:Ta(g[8],C)}):p==null?p={}:typeof p=="object"&&("from"in p||"to"in p)&&(q=Md(Dt(p.from),Dt(p.to)),p={},p.ms=q.milliseconds,p.M=q.months),M=new $c(p),Yc(s)&&o(s,"_locale")&&(M._locale=s._locale),Yc(s)&&o(s,"_isValid")&&(M._isValid=s._isValid),M}cr.fn=$c.prototype,cr.invalid=cf;function Ta(s,d){var p=s&&parseFloat(s.replace(",","."));return(isNaN(p)?0:p)*d}function pf(s,d){var p={};return p.months=d.month()-s.month()+(d.year()-s.year())*12,s.clone().add(p.months,"M").isAfter(d)&&--p.months,p.milliseconds=+d-+s.clone().add(p.months,"M"),p}function Md(s,d){var p;return s.isValid()&&d.isValid()?(d=Mh(d,s),s.isBefore(d)?p=pf(s,d):(p=pf(d,s),p.milliseconds=-p.milliseconds,p.months=-p.months),p):{milliseconds:0,months:0}}function gf(s,d){return function(p,g){var C,M;return g!==null&&!isNaN(+g)&&(gs(d,"moment()."+d+"(period, number) is deprecated. Please use moment()."+d+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),M=p,p=g,g=M),C=cr(p,g),ff(this,C,s),this}}function ff(s,d,p,g){var C=d._milliseconds,M=Ed(d._days),q=Ed(d._months);s.isValid()&&(g=g??!0,q&&Vg(s,Hc(s,"Month")+q*p),M&&Pg(s,"Date",Hc(s,"Date")+M*p),C&&s._d.setTime(s._d.valueOf()+C*p),g&&t.updateOffset(s,M||q))}var Jw=gf(1,"add"),ex=gf(-1,"subtract");function Fh(s){return typeof s=="string"||s instanceof String}function tx(s){return Qt(s)||x(s)||Fh(s)||m(s)||nx(s)||ix(s)||s===null||s===void 0}function ix(s){var d=r(s)&&!a(s),p=!1,g=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],C,M,q=g.length;for(C=0;C<q;C+=1)M=g[C],p=p||o(s,M);return d&&p}function nx(s){var d=e(s),p=!1;return d&&(p=s.filter(function(g){return!m(g)&&Fh(s)}).length===0),d&&p}function rx(s){var d=r(s)&&!a(s),p=!1,g=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],C,M;for(C=0;C<g.length;C+=1)M=g[C],p=p||o(s,M);return d&&p}function bf(s,d){var p=s.diff(d,"days",!0);return p<-6?"sameElse":p<-1?"lastWeek":p<0?"lastDay":p<1?"sameDay":p<2?"nextDay":p<7?"nextWeek":"sameElse"}function vf(s,d){arguments.length===1&&(arguments[0]?tx(arguments[0])?(s=arguments[0],d=void 0):rx(arguments[0])&&(d=arguments[0],s=void 0):(s=void 0,d=void 0));var p=s||Dt(),g=Mh(p,this).startOf("day"),C=t.calendarFormat(this,g)||"sameElse",M=d&&(In(d[C])?d[C].call(this,p):d[C]);return this.format(M||this.localeData().calendar(C,this,Dt(p)))}function ox(){return new en(this)}function ax(s,d){var p=Qt(s)?s:Dt(s);return this.isValid()&&p.isValid()?(d=Ke(d)||"millisecond",d==="millisecond"?this.valueOf()>p.valueOf():p.valueOf()<this.clone().startOf(d).valueOf()):!1}function sx(s,d){var p=Qt(s)?s:Dt(s);return this.isValid()&&p.isValid()?(d=Ke(d)||"millisecond",d==="millisecond"?this.valueOf()<p.valueOf():this.clone().endOf(d).valueOf()<p.valueOf()):!1}function _f(s,d,p,g){var C=Qt(s)?s:Dt(s),M=Qt(d)?d:Dt(d);return this.isValid()&&C.isValid()&&M.isValid()?(g=g||"()",(g[0]==="("?this.isAfter(C,p):!this.isBefore(C,p))&&(g[1]===")"?this.isBefore(M,p):!this.isAfter(M,p))):!1}function Oh(s,d){var p=Qt(s)?s:Dt(s),g;return this.isValid()&&p.isValid()?(d=Ke(d)||"millisecond",d==="millisecond"?this.valueOf()===p.valueOf():(g=p.valueOf(),this.clone().startOf(d).valueOf()<=g&&g<=this.clone().endOf(d).valueOf())):!1}function cx(s,d){return this.isSame(s,d)||this.isAfter(s,d)}function lx(s,d){return this.isSame(s,d)||this.isBefore(s,d)}function dx(s,d,p){var g,C,M;if(!this.isValid())return NaN;if(g=Mh(s,this),!g.isValid())return NaN;switch(C=(g.utcOffset()-this.utcOffset())*6e4,d=Ke(d),d){case"year":M=Ad(this,g)/12;break;case"month":M=Ad(this,g);break;case"quarter":M=Ad(this,g)/3;break;case"second":M=(this-g)/1e3;break;case"minute":M=(this-g)/6e4;break;case"hour":M=(this-g)/36e5;break;case"day":M=(this-g-C)/864e5;break;case"week":M=(this-g-C)/6048e5;break;default:M=this-g}return p?M:En(M)}function Ad(s,d){if(s.date()<d.date())return-Ad(d,s);var p=(d.year()-s.year())*12+(d.month()-s.month()),g=s.clone().add(p,"months"),C,M;return d-g<0?(C=s.clone().add(p-1,"months"),M=(d-g)/(g-C)):(C=s.clone().add(p+1,"months"),M=(d-g)/(C-g)),-(p+M)||0}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function yf(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ux(s){if(!this.isValid())return null;var d=s!==!0,p=d?this.clone().utc():this;return p.year()<0||p.year()>9999?No(p,d?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):In(Date.prototype.toISOString)?d?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",No(p,"Z")):No(p,d?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function hx(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var s="moment",d="",p,g,C,M;return this.isLocal()||(s=this.utcOffset()===0?"moment.utc":"moment.parseZone",d="Z"),p="["+s+'("]',g=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",C="-MM-DD[T]HH:mm:ss.SSS",M=d+'[")]',this.format(p+g+C+M)}function mx(s){s||(s=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var d=No(this,s);return this.localeData().postformat(d)}function px(s,d){return this.isValid()&&(Qt(s)&&s.isValid()||Dt(s).isValid())?cr({to:this,from:s}).locale(this.locale()).humanize(!d):this.localeData().invalidDate()}function gx(s){return this.from(Dt(),s)}function fx(s,d){return this.isValid()&&(Qt(s)&&s.isValid()||Dt(s).isValid())?cr({from:this,to:s}).locale(this.locale()).humanize(!d):this.localeData().invalidDate()}function bx(s){return this.to(Dt(),s)}function wf(s){var d;return s===void 0?this._locale._abbr:(d=vo(s),d!=null&&(this._locale=d),this)}var xf=ti("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(s){return s===void 0?this.localeData():this.locale(s)});function Uo(){return this._locale}var qc=1e3,As=60*qc,Rd=60*As,Cf=(365*400+97)*24*Rd;function Rs(s,d){return(s%d+d)%d}function If(s,d,p){return s<100&&s>=0?new Date(s+400,d,p)-Cf:new Date(s,d,p).valueOf()}function Ph(s,d,p){return s<100&&s>=0?Date.UTC(s+400,d,p)-Cf:Date.UTC(s,d,p)}function vx(s){var d,p;if(s=Ke(s),s===void 0||s==="millisecond"||!this.isValid())return this;switch(p=this._isUTC?Ph:If,s){case"year":d=p(this.year(),0,1);break;case"quarter":d=p(this.year(),this.month()-this.month()%3,1);break;case"month":d=p(this.year(),this.month(),1);break;case"week":d=p(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":d=p(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":d=p(this.year(),this.month(),this.date());break;case"hour":d=this._d.valueOf(),d-=Rs(d+(this._isUTC?0:this.utcOffset()*As),Rd);break;case"minute":d=this._d.valueOf(),d-=Rs(d,As);break;case"second":d=this._d.valueOf(),d-=Rs(d,qc);break}return this._d.setTime(d),t.updateOffset(this,!0),this}function _x(s){var d,p;if(s=Ke(s),s===void 0||s==="millisecond"||!this.isValid())return this;switch(p=this._isUTC?Ph:If,s){case"year":d=p(this.year()+1,0,1)-1;break;case"quarter":d=p(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":d=p(this.year(),this.month()+1,1)-1;break;case"week":d=p(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":d=p(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":d=p(this.year(),this.month(),this.date()+1)-1;break;case"hour":d=this._d.valueOf(),d+=Rd-Rs(d+(this._isUTC?0:this.utcOffset()*As),Rd)-1;break;case"minute":d=this._d.valueOf(),d+=As-Rs(d,As)-1;break;case"second":d=this._d.valueOf(),d+=qc-Rs(d,qc)-1;break}return this._d.setTime(d),t.updateOffset(this,!0),this}function yx(){return this._d.valueOf()-(this._offset||0)*6e4}function Fr(){return Math.floor(this.valueOf()/1e3)}function Fd(){return new Date(this.valueOf())}function ni(){var s=this;return[s.year(),s.month(),s.date(),s.hour(),s.minute(),s.second(),s.millisecond()]}function wx(){var s=this;return{years:s.year(),months:s.month(),date:s.date(),hours:s.hours(),minutes:s.minutes(),seconds:s.seconds(),milliseconds:s.milliseconds()}}function xx(){return this.isValid()?this.toISOString():null}function Cx(){return te(this)}function Ix(){return O({},ee(this))}function kx(){return ee(this).overflow}function Dx(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Fe("N",0,0,"eraAbbr"),Fe("NN",0,0,"eraAbbr"),Fe("NNN",0,0,"eraAbbr"),Fe("NNNN",0,0,"eraName"),Fe("NNNNN",0,0,"eraNarrow"),Fe("y",["y",1],"yo","eraYear"),Fe("y",["yy",2],0,"eraYear"),Fe("y",["yyy",3],0,"eraYear"),Fe("y",["yyyy",4],0,"eraYear"),Ce("N",U),Ce("NN",U),Ce("NNN",U),Ce("NNNN",fe),Ce("NNNNN",qe),st(["N","NN","NNN","NNNN","NNNNN"],function(s,d,p,g){var C=p._locale.erasParse(s,g,p._strict);C?ee(p).era=C:ee(p).invalidEra=s}),Ce("y",fo),Ce("yy",fo),Ce("yyy",fo),Ce("yyyy",fo),Ce("yo",We),st(["y","yy","yyy","yyyy"],_i),st(["yo"],function(s,d,p,g){var C;p._locale._eraYearOrdinalRegex&&(C=s.match(p._locale._eraYearOrdinalRegex)),p._locale.eraYearOrdinalParse?d[_i]=p._locale.eraYearOrdinalParse(s,C):d[_i]=parseInt(s,10)});function Sx(s,d){var p,g,C,M=this._eras||vo("en")._eras;for(p=0,g=M.length;p<g;++p){switch(typeof M[p].since){case"string":C=t(M[p].since).startOf("day"),M[p].since=C.valueOf();break}switch(typeof M[p].until){case"undefined":M[p].until=1/0;break;case"string":C=t(M[p].until).startOf("day").valueOf(),M[p].until=C.valueOf();break}}return M}function Ex(s,d,p){var g,C,M=this.eras(),q,ke,He;for(s=s.toUpperCase(),g=0,C=M.length;g<C;++g)if(q=M[g].name.toUpperCase(),ke=M[g].abbr.toUpperCase(),He=M[g].narrow.toUpperCase(),p)switch(d){case"N":case"NN":case"NNN":if(ke===s)return M[g];break;case"NNNN":if(q===s)return M[g];break;case"NNNNN":if(He===s)return M[g];break}else if([q,ke,He].indexOf(s)>=0)return M[g]}function kf(s,d){var p=s.since<=s.until?1:-1;return d===void 0?t(s.since).year():t(s.since).year()+(d-s.offset)*p}function Df(){var s,d,p,g=this.localeData().eras();for(s=0,d=g.length;s<d;++s)if(p=this.clone().startOf("day").valueOf(),g[s].since<=p&&p<=g[s].until||g[s].until<=p&&p<=g[s].since)return g[s].name;return""}function Od(){var s,d,p,g=this.localeData().eras();for(s=0,d=g.length;s<d;++s)if(p=this.clone().startOf("day").valueOf(),g[s].since<=p&&p<=g[s].until||g[s].until<=p&&p<=g[s].since)return g[s].narrow;return""}function y(){var s,d,p,g=this.localeData().eras();for(s=0,d=g.length;s<d;++s)if(p=this.clone().startOf("day").valueOf(),g[s].since<=p&&p<=g[s].until||g[s].until<=p&&p<=g[s].since)return g[s].abbr;return""}function u(){var s,d,p,g,C=this.localeData().eras();for(s=0,d=C.length;s<d;++s)if(p=C[s].since<=C[s].until?1:-1,g=this.clone().startOf("day").valueOf(),C[s].since<=g&&g<=C[s].until||C[s].until<=g&&g<=C[s].since)return(this.year()-t(C[s].since).year())*p+C[s].offset;return this.year()}function h(s){return o(this,"_erasNameRegex")||jt.call(this),s?this._erasNameRegex:this._erasRegex}function _(s){return o(this,"_erasAbbrRegex")||jt.call(this),s?this._erasAbbrRegex:this._erasRegex}function D(s){return o(this,"_erasNarrowRegex")||jt.call(this),s?this._erasNarrowRegex:this._erasRegex}function U(s,d){return d.erasAbbrRegex(s)}function fe(s,d){return d.erasNameRegex(s)}function qe(s,d){return d.erasNarrowRegex(s)}function We(s,d){return d._eraYearOrdinalRegex||fo}function jt(){var s=[],d=[],p=[],g=[],C,M,q,ke,He,dt=this.eras();for(C=0,M=dt.length;C<M;++C)q=Tr(dt[C].name),ke=Tr(dt[C].abbr),He=Tr(dt[C].narrow),d.push(q),s.push(ke),p.push(He),g.push(q),g.push(ke),g.push(He);this._erasRegex=new RegExp("^("+g.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+d.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+p.join("|")+")","i")}Fe(0,["gg",2],0,function(){return this.weekYear()%100}),Fe(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Wo(s,d){Fe(0,[s,s.length],0,d)}Wo("gggg","weekYear"),Wo("ggggg","weekYear"),Wo("GGGG","isoWeekYear"),Wo("GGGGG","isoWeekYear"),Ce("G",ys),Ce("g",ys),Ce("GG",vt,mn),Ce("gg",vt,mn),Ce("GGGG",ka,_s),Ce("gggg",ka,_s),Ce("GGGGG",zc,Dn),Ce("ggggg",zc,Dn),ar(["gggg","ggggg","GGGG","GGGGG"],function(s,d,p,g){d[g.substr(0,2)]=Ie(s)}),ar(["gg","GG"],function(s,d,p,g){d[g]=t.parseTwoDigitYear(s)});function zN(s){return KT.call(this,s,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function HN(s){return KT.call(this,s,this.isoWeek(),this.isoWeekday(),1,4)}function UN(){return Rr(this.year(),1,4)}function WN(){return Rr(this.isoWeekYear(),1,4)}function GN(){var s=this.localeData()._week;return Rr(this.year(),s.dow,s.doy)}function $N(){var s=this.localeData()._week;return Rr(this.weekYear(),s.dow,s.doy)}function KT(s,d,p,g,C){var M;return s==null?bo(this,g,C).year:(M=Rr(s,g,C),d>M&&(d=M),YN.call(this,s,d,p,g,C))}function YN(s,d,p,g,C){var M=yd(s,d,p,g,C),q=Uc(M.year,0,M.dayOfYear);return this.year(q.getUTCFullYear()),this.month(q.getUTCMonth()),this.date(q.getUTCDate()),this}Fe("Q",0,"Qo","quarter"),Ce("Q",fd),st("Q",function(s,d){d[Mr]=(Ie(s)-1)*3});function qN(s){return s==null?Math.ceil((this.month()+1)/3):this.month((s-1)*3+this.month()%3)}Fe("D",["DD",2],"Do","date"),Ce("D",vt,xs),Ce("DD",vt,mn),Ce("Do",function(s,d){return s?d._dayOfMonthOrdinalParse||d._ordinalParse:d._dayOfMonthOrdinalParseLenient}),st(["D","DD"],pn),st("Do",function(s,d){d[pn]=Ie(s.match(vt)[0])});var XT=jn("Date",!0);Fe("DDD",["DDDD",3],"DDDo","dayOfYear"),Ce("DDD",go),Ce("DDDD",bd),st(["DDD","DDDD"],function(s,d,p){p._dayOfYear=Ie(s)});function QN(s){var d=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return s==null?d:this.add(s-d,"d")}Fe("m",["mm",2],0,"minute"),Ce("m",vt,nn),Ce("mm",vt,mn),st(["m","mm"],sr);var KN=jn("Minutes",!1);Fe("s",["ss",2],0,"second"),Ce("s",vt,nn),Ce("ss",vt,mn),st(["s","ss"],Ar);var XN=jn("Seconds",!1);Fe("S",0,0,function(){return~~(this.millisecond()/100)}),Fe(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Fe(0,["SSS",3],0,"millisecond"),Fe(0,["SSSS",4],0,function(){return this.millisecond()*10}),Fe(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Fe(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Fe(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Fe(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Fe(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Ce("S",go,fd),Ce("SS",go,mn),Ce("SSS",go,bd);var Fs,ZT;for(Fs="SSSS";Fs.length<=9;Fs+="S")Ce(Fs,fo);function ZN(s,d){d[Lo]=Ie(("0."+s)*1e3)}for(Fs="S";Fs.length<=9;Fs+="S")st(Fs,ZN);ZT=jn("Milliseconds",!1),Fe("z",0,0,"zoneAbbr"),Fe("zz",0,0,"zoneName");function JN(){return this._isUTC?"UTC":""}function eV(){return this._isUTC?"Coordinated Universal Time":""}var de=en.prototype;de.add=Jw,de.calendar=vf,de.clone=ox,de.diff=dx,de.endOf=_x,de.format=mx,de.from=px,de.fromNow=gx,de.to=fx,de.toNow=bx,de.get=Qy,de.invalidAt=kx,de.isAfter=ax,de.isBefore=sx,de.isBetween=_f,de.isSame=Oh,de.isSameOrAfter=cx,de.isSameOrBefore=lx,de.isValid=Cx,de.lang=xf,de.locale=wf,de.localeData=Uo,de.max=rf,de.min=nf,de.parsingFlags=Ix,de.set=Ky,de.startOf=vx,de.subtract=ex,de.toArray=ni,de.toObject=wx,de.toDate=Fd,de.toISOString=ux,de.inspect=hx,typeof Symbol<"u"&&Symbol.for!=null&&(de[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),de.toJSON=xx,de.toString=yf,de.unix=Fr,de.valueOf=yx,de.creationData=Dx,de.eraName=Df,de.eraNarrow=Od,de.eraAbbr=y,de.eraYear=u,de.year=Og,de.isLeapYear=qy,de.weekYear=zN,de.isoWeekYear=HN,de.quarter=de.quarters=qN,de.month=jg,de.daysInMonth=At,de.week=de.weeks=lw,de.isoWeek=de.isoWeeks=Bg,de.weeksInYear=GN,de.weeksInWeekYear=$N,de.isoWeeksInYear=UN,de.isoWeeksInISOWeekYear=WN,de.date=XT,de.day=de.days=_w,de.weekday=Gg,de.isoWeekday=yw,de.dayOfYear=QN,de.hour=de.hours=Iw,de.minute=de.minutes=KN,de.second=de.seconds=XN,de.millisecond=de.milliseconds=ZT,de.utcOffset=df,de.utc=$w,de.local=Yw,de.parseZone=qw,de.hasAlignedHourOffset=Qw,de.isDST=hf,de.isLocal=mf,de.isUtcOffset=Xw,de.isUtc=Ah,de.isUTC=Ah,de.zoneAbbr=JN,de.zoneName=eV,de.dates=ti("dates accessor is deprecated. Use date instead.",XT),de.months=ti("months accessor is deprecated. Use month instead",jg),de.years=ti("years accessor is deprecated. Use year instead",Og),de.zone=ti("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",uf),de.isDSTShifted=ti("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Kw);function tV(s){return Dt(s*1e3)}function iV(){return Dt.apply(null,arguments).parseZone()}function JT(s){return s}var _t=ai.prototype;_t.calendar=Ye,_t.longDateFormat=Mg,_t.invalidDate=Ag,_t.ordinal=Lc,_t.preparse=JT,_t.postformat=JT,_t.relativeTime=un,_t.pastFuture=Bc,_t.set=pd,_t.eras=Sx,_t.erasParse=Ex,_t.erasConvertYear=kf,_t.erasAbbrRegex=_,_t.erasNameRegex=h,_t.erasNarrowRegex=D,_t.months=Ch,_t.monthsShort=tw,_t.monthsParse=nw,_t.monthsRegex=ow,_t.monthsShortRegex=rw,_t.week=wd,_t.firstDayOfYear=cw,_t.firstDayOfWeek=sw,_t.weekdays=gw,_t.weekdaysMin=bw,_t.weekdaysShort=fw,_t.weekdaysParse=Wg,_t.weekdaysRegex=ww,_t.weekdaysShortRegex=Is,_t.weekdaysMinRegex=$g,_t.isPM=xw,_t.meridiem=kw;function Sf(s,d,p,g){var C=vo(),M=B().set(g,d);return C[p](M,s)}function eM(s,d,p){if(m(s)&&(d=s,s=void 0),s=s||"",d!=null)return Sf(s,d,p,"month");var g,C=[];for(g=0;g<12;g++)C[g]=Sf(s,g,p,"month");return C}function Tx(s,d,p,g){typeof s=="boolean"?(m(d)&&(p=d,d=void 0),d=d||""):(d=s,p=d,s=!1,m(d)&&(p=d,d=void 0),d=d||"");var C=vo(),M=s?C._week.dow:0,q,ke=[];if(p!=null)return Sf(d,(p+M)%7,g,"day");for(q=0;q<7;q++)ke[q]=Sf(d,(q+M)%7,g,"day");return ke}function nV(s,d){return eM(s,d,"months")}function rV(s,d){return eM(s,d,"monthsShort")}function oV(s,d,p){return Tx(s,d,p,"weekdays")}function aV(s,d,p){return Tx(s,d,p,"weekdaysShort")}function sV(s,d,p){return Tx(s,d,p,"weekdaysMin")}zo("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(s){var d=s%10,p=Ie(s%100/10)===1?"th":d===1?"st":d===2?"nd":d===3?"rd":"th";return s+p}}),t.lang=ti("moment.lang is deprecated. Use moment.locale instead.",zo),t.langData=ti("moment.langData is deprecated. Use moment.localeData instead.",vo);var Ma=Math.abs;function cV(){var s=this._data;return this._milliseconds=Ma(this._milliseconds),this._days=Ma(this._days),this._months=Ma(this._months),s.milliseconds=Ma(s.milliseconds),s.seconds=Ma(s.seconds),s.minutes=Ma(s.minutes),s.hours=Ma(s.hours),s.months=Ma(s.months),s.years=Ma(s.years),this}function tM(s,d,p,g){var C=cr(d,p);return s._milliseconds+=g*C._milliseconds,s._days+=g*C._days,s._months+=g*C._months,s._bubble()}function lV(s,d){return tM(this,s,d,1)}function dV(s,d){return tM(this,s,d,-1)}function iM(s){return s<0?Math.floor(s):Math.ceil(s)}function uV(){var s=this._milliseconds,d=this._days,p=this._months,g=this._data,C,M,q,ke,He;return s>=0&&d>=0&&p>=0||s<=0&&d<=0&&p<=0||(s+=iM(Mx(p)+d)*864e5,d=0,p=0),g.milliseconds=s%1e3,C=En(s/1e3),g.seconds=C%60,M=En(C/60),g.minutes=M%60,q=En(M/60),g.hours=q%24,d+=En(q/24),He=En(nM(d)),p+=He,d-=iM(Mx(He)),ke=En(p/12),p%=12,g.days=d,g.months=p,g.years=ke,this}function nM(s){return s*4800/146097}function Mx(s){return s*146097/4800}function hV(s){if(!this.isValid())return NaN;var d,p,g=this._milliseconds;if(s=Ke(s),s==="month"||s==="quarter"||s==="year")switch(d=this._days+g/864e5,p=this._months+nM(d),s){case"month":return p;case"quarter":return p/3;case"year":return p/12}else switch(d=this._days+Math.round(Mx(this._months)),s){case"week":return d/7+g/6048e5;case"day":return d+g/864e5;case"hour":return d*24+g/36e5;case"minute":return d*1440+g/6e4;case"second":return d*86400+g/1e3;case"millisecond":return Math.floor(d*864e5)+g;default:throw new Error("Unknown unit "+s)}}function Aa(s){return function(){return this.as(s)}}var rM=Aa("ms"),mV=Aa("s"),pV=Aa("m"),gV=Aa("h"),fV=Aa("d"),bV=Aa("w"),vV=Aa("M"),_V=Aa("Q"),yV=Aa("y"),wV=rM;function xV(){return cr(this)}function CV(s){return s=Ke(s),this.isValid()?this[s+"s"]():NaN}function Qc(s){return function(){return this.isValid()?this._data[s]:NaN}}var IV=Qc("milliseconds"),kV=Qc("seconds"),DV=Qc("minutes"),SV=Qc("hours"),EV=Qc("days"),TV=Qc("months"),MV=Qc("years");function AV(){return En(this.days()/7)}var Ra=Math.round,Pd={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function RV(s,d,p,g,C){return C.relativeTime(d||1,!!p,s,g)}function FV(s,d,p,g){var C=cr(s).abs(),M=Ra(C.as("s")),q=Ra(C.as("m")),ke=Ra(C.as("h")),He=Ra(C.as("d")),dt=Ra(C.as("M")),Tn=Ra(C.as("w")),Fa=Ra(C.as("y")),Os=M<=p.ss&&["s",M]||M<p.s&&["ss",M]||q<=1&&["m"]||q<p.m&&["mm",q]||ke<=1&&["h"]||ke<p.h&&["hh",ke]||He<=1&&["d"]||He<p.d&&["dd",He];return p.w!=null&&(Os=Os||Tn<=1&&["w"]||Tn<p.w&&["ww",Tn]),Os=Os||dt<=1&&["M"]||dt<p.M&&["MM",dt]||Fa<=1&&["y"]||["yy",Fa],Os[2]=d,Os[3]=+s>0,Os[4]=g,RV.apply(null,Os)}function OV(s){return s===void 0?Ra:typeof s=="function"?(Ra=s,!0):!1}function PV(s,d){return Pd[s]===void 0?!1:d===void 0?Pd[s]:(Pd[s]=d,s==="s"&&(Pd.ss=d-1),!0)}function NV(s,d){if(!this.isValid())return this.localeData().invalidDate();var p=!1,g=Pd,C,M;return typeof s=="object"&&(d=s,s=!1),typeof s=="boolean"&&(p=s),typeof d=="object"&&(g=Object.assign({},Pd,d),d.s!=null&&d.ss==null&&(g.ss=d.s-1)),C=this.localeData(),M=FV(this,!p,g,C),p&&(M=C.pastFuture(+this,M)),C.postformat(M)}var Ax=Math.abs;function Nd(s){return(s>0)-(s<0)||+s}function Ef(){if(!this.isValid())return this.localeData().invalidDate();var s=Ax(this._milliseconds)/1e3,d=Ax(this._days),p=Ax(this._months),g,C,M,q,ke=this.asSeconds(),He,dt,Tn,Fa;return ke?(g=En(s/60),C=En(g/60),s%=60,g%=60,M=En(p/12),p%=12,q=s?s.toFixed(3).replace(/\.?0+$/,""):"",He=ke<0?"-":"",dt=Nd(this._months)!==Nd(ke)?"-":"",Tn=Nd(this._days)!==Nd(ke)?"-":"",Fa=Nd(this._milliseconds)!==Nd(ke)?"-":"",He+"P"+(M?dt+M+"Y":"")+(p?dt+p+"M":"")+(d?Tn+d+"D":"")+(C||g||s?"T":"")+(C?Fa+C+"H":"")+(g?Fa+g+"M":"")+(s?Fa+q+"S":"")):"P0D"}var mt=$c.prototype;mt.isValid=sf,mt.abs=cV,mt.add=lV,mt.subtract=dV,mt.as=hV,mt.asMilliseconds=rM,mt.asSeconds=mV,mt.asMinutes=pV,mt.asHours=gV,mt.asDays=fV,mt.asWeeks=bV,mt.asMonths=vV,mt.asQuarters=_V,mt.asYears=yV,mt.valueOf=wV,mt._bubble=uV,mt.clone=xV,mt.get=CV,mt.milliseconds=IV,mt.seconds=kV,mt.minutes=DV,mt.hours=SV,mt.days=EV,mt.weeks=AV,mt.months=TV,mt.years=MV,mt.humanize=NV,mt.toISOString=Ef,mt.toString=Ef,mt.toJSON=Ef,mt.locale=wf,mt.localeData=Uo,mt.toIsoString=ti("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ef),mt.lang=xf,Fe("X",0,0,"unix"),Fe("x",0,0,"valueOf"),Ce("x",ys),Ce("X",yh),st("X",function(s,d,p){p._d=new Date(parseFloat(s)*1e3)}),st("x",function(s,d,p){p._d=new Date(Ie(s))});return t.version="2.30.1",i(Dt),t.fn=de,t.min=Sd,t.max=Ww,t.now=of,t.utc=B,t.unix=tV,t.months=nV,t.isDate=x,t.locale=zo,t.invalid=ge,t.duration=cr,t.isMoment=Qt,t.weekdays=oV,t.parseZone=iV,t.localeData=vo,t.isDuration=Yc,t.monthsShort=rV,t.weekdaysMin=sV,t.defineLocale=Dh,t.updateLocale=Ss,t.locales=Tw,t.weekdaysShort=aV,t.normalizeUnits=Ke,t.relativeTimeRounding=OV,t.relativeTimeThreshold=PV,t.calendarFormat=bf,t.prototype=de,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t})});var CN=Rx(($T,xN)=>{"use strict";(function(n,t){typeof $T=="object"&&typeof xN<"u"&&typeof Tf=="function"?t(zy()):typeof define=="function"&&define.amd?define(["../moment"],t):t(n.moment)})($T,function(n){"use strict";function t(e,r,o,a){var c={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return r?c[o][0]:c[o][1]}var i=n.defineLocale("de",{months:"Januar_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i})});var Xh=class{},Zh=class{},Ko=class n{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
`).forEach(i=>{let e=i.indexOf(":");if(e>0){let r=i.slice(0,e),o=r.toLowerCase(),a=i.slice(e+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(a):this.headers.set(o,[a])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((i,e)=>{this.setHeaderEntries(e,i)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([i,e])=>{this.setHeaderEntries(i,e)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let i=this.headers.get(t.toLowerCase());return i&&i.length>0?i[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,i){return this.clone({name:t,value:i,op:"a"})}set(t,i){return this.clone({name:t,value:i,op:"s"})}delete(t,i){return this.clone({name:t,value:i,op:"d"})}maybeSetNormalizedName(t,i){this.normalizedNames.has(i)||this.normalizedNames.set(i,t)}init(){this.lazyInit&&(this.lazyInit instanceof n?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(i=>{this.headers.set(i,t.headers.get(i)),this.normalizedNames.set(i,t.normalizedNames.get(i))})}clone(t){let i=new n;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof n?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([t]),i}applyUpdate(t){let i=t.name.toLowerCase();switch(t.op){case"a":case"s":let e=t.value;if(typeof e=="string"&&(e=[e]),e.length===0)return;this.maybeSetNormalizedName(t.name,i);let r=(t.op==="a"?this.headers.get(i):void 0)||[];r.push(...e),this.headers.set(i,r);break;case"d":let o=t.value;if(!o)this.headers.delete(i),this.normalizedNames.delete(i);else{let a=this.headers.get(i);if(!a)return;a=a.filter(c=>o.indexOf(c)===-1),a.length===0?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,a)}break}}setHeaderEntries(t,i){let e=(Array.isArray(i)?i:[i]).map(o=>o.toString()),r=t.toLowerCase();this.headers.set(r,e),this.maybeSetNormalizedName(t,r)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(i=>t(this.normalizedNames.get(i),this.headers.get(i)))}};var Kx=class{encodeKey(t){return XM(t)}encodeValue(t){return XM(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function LV(n,t){let i=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[a,c]=o==-1?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],m=i.get(a)||[];m.push(c),i.set(a,m)}),i}var BV=/%(\d[a-f0-9])/gi,zV={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function XM(n){return encodeURIComponent(n).replace(BV,(t,i)=>zV[i]??t)}function $f(n){return`${n}`}var Wn=class n{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Kx,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=LV(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(i=>{let e=t.fromObject[i],r=Array.isArray(e)?e.map($f):[$f(e)];this.map.set(i,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let i=this.map.get(t);return i?i[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,i){return this.clone({param:t,value:i,op:"a"})}appendAll(t){let i=[];return Object.keys(t).forEach(e=>{let r=t[e];Array.isArray(r)?r.forEach(o=>{i.push({param:e,value:o,op:"a"})}):i.push({param:e,value:r,op:"a"})}),this.clone(i)}set(t,i){return this.clone({param:t,value:i,op:"s"})}delete(t,i){return this.clone({param:t,value:i,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let i=this.encoder.encodeKey(t);return this.map.get(t).map(e=>i+"="+this.encoder.encodeValue(e)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let i=new n({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(t),i}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let i=(t.op==="a"?this.map.get(t.param):void 0)||[];i.push($f(t.value)),this.map.set(t.param,i);break;case"d":if(t.value!==void 0){let e=this.map.get(t.param)||[],r=e.indexOf($f(t.value));r!==-1&&e.splice(r,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var Xx=class{constructor(){this.map=new Map}set(t,i){return this.map.set(t,i),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function HV(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ZM(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function JM(n){return typeof Blob<"u"&&n instanceof Blob}function eA(n){return typeof FormData<"u"&&n instanceof FormData}function UV(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}var Kh=class n{constructor(t,i,e,r){this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let o;if(HV(this.method)||r?(this.body=e!==void 0?e:null,o=r):o=e,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 Ko,this.context??=new Xx,!this.params)this.params=new Wn,this.urlWithParams=i;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=i;else{let c=i.indexOf("?"),m=c===-1?"?":c<i.length-1?"&":"";this.urlWithParams=i+m+a}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||ZM(this.body)||JM(this.body)||eA(this.body)||UV(this.body)?this.body:this.body instanceof Wn?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||eA(this.body)?null:JM(this.body)?this.body.type||null:ZM(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof Wn?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(t={}){let i=t.method||this.method,e=t.url||this.url,r=t.responseType||this.responseType,o=t.transferCache??this.transferCache,a=t.body!==void 0?t.body:this.body,c=t.withCredentials??this.withCredentials,m=t.reportProgress??this.reportProgress,x=t.headers||this.headers,I=t.params||this.params,O=t.context??this.context;return t.setHeaders!==void 0&&(x=Object.keys(t.setHeaders).reduce((B,ae)=>B.set(ae,t.setHeaders[ae]),x)),t.setParams&&(I=Object.keys(t.setParams).reduce((B,ae)=>B.set(ae,t.setParams[ae]),I)),new n(i,e,a,{params:I,headers:x,context:O,reportProgress:m,responseType:r,withCredentials:c,transferCache:o})}},Gs=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}(Gs||{}),Jh=class{constructor(t,i=em.Ok,e="OK"){this.headers=t.headers||new Ko,this.status=t.status!==void 0?t.status:i,this.statusText=t.statusText||e,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},qf=class n extends Jh{constructor(t={}){super(t),this.type=Gs.ResponseHeader}clone(t={}){return new n({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},il=class n extends Jh{constructor(t={}){super(t),this.type=Gs.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new n({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Ws=class extends Jh{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},em=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}(em||{});function qx(n,t){return{body:t,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 pi=(()=>{let t=class t{constructor(e){this.handler=e}request(e,r,o={}){let a;if(e instanceof Kh)a=e;else{let x;o.headers instanceof Ko?x=o.headers:x=new Ko(o.headers);let I;o.params&&(o.params instanceof Wn?I=o.params:I=new Wn({fromObject:o.params})),a=new Kh(e,r,o.body!==void 0?o.body:null,{headers:x,context:o.context,params:I,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let c=we(a).pipe(Ps(x=>this.handler.handle(x)));if(e instanceof Kh||o.observe==="events")return c;let m=c.pipe(et(x=>x instanceof il));switch(o.observe||"body"){case"body":switch(a.responseType){case"arraybuffer":return m.pipe(je(x=>{if(x.body!==null&&!(x.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return x.body}));case"blob":return m.pipe(je(x=>{if(x.body!==null&&!(x.body instanceof Blob))throw new Error("Response is not a Blob.");return x.body}));case"text":return m.pipe(je(x=>{if(x.body!==null&&typeof x.body!="string")throw new Error("Response is not a string.");return x.body}));case"json":default:return m.pipe(je(x=>x.body))}case"response":return m;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:new Wn().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,o={}){return this.request("PATCH",e,qx(o,r))}post(e,r,o={}){return this.request("POST",e,qx(o,r))}put(e,r,o={}){return this.request("PUT",e,qx(o,r))}};t.\u0275fac=function(r){return new(r||t)(k(Xh))},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),WV=/^\)\]\}',?\n/,GV="X-Request-URL";function tA(n){if(n.url)return n.url;let t=GV.toLocaleLowerCase();return n.headers.get(t)}var Qx=(()=>{let t=class t{constructor(){this.fetchImpl=F(Zx,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=F(be)}handle(e){return new Lt(r=>{let o=new AbortController;return this.doRequest(e,o.signal,r).then(Jx,a=>r.error(new Ws({error:a}))),()=>o.abort()})}doRequest(e,r,o){return yt(this,null,function*(){let a=this.createRequestInit(e),c;try{let ee=this.fetchImpl(e.urlWithParams,ne({signal:r},a));$V(ee),o.next({type:Gs.Sent}),c=yield ee}catch(ee){o.error(new Ws({error:ee,status:ee.status??0,statusText:ee.statusText,url:e.urlWithParams,headers:ee.headers}));return}let m=new Ko(c.headers),x=c.statusText,I=tA(c)??e.urlWithParams,O=c.status,B=null;if(e.reportProgress&&o.next(new qf({headers:m,status:O,statusText:x,url:I})),c.body){let ee=c.headers.get("content-length"),Se=[],te=c.body.getReader(),ge=0,$e,ei,Pt=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>yt(this,null,function*(){for(;;){let{done:Qt,value:Pn}=yield te.read();if(Qt)break;if(Se.push(Pn),ge+=Pn.length,e.reportProgress){ei=e.responseType==="text"?(ei??"")+($e??=new TextDecoder).decode(Pn,{stream:!0}):void 0;let ti=()=>o.next({type:Gs.DownloadProgress,total:ee?+ee:void 0,loaded:ge,partialText:ei});Pt?Pt.run(ti):ti()}}}));let en=this.concatChunks(Se,ge);try{let Qt=c.headers.get("Content-Type")??"";B=this.parseBody(e,en,Qt)}catch(Qt){o.error(new Ws({error:Qt,headers:new Ko(c.headers),status:c.status,statusText:c.statusText,url:tA(c)??e.urlWithParams}));return}}O===0&&(O=B?em.Ok:0),O>=200&&O<300?(o.next(new il({body:B,headers:m,status:O,statusText:x,url:I})),o.complete()):o.error(new Ws({error:B,headers:m,status:O,statusText:x,url:I}))})}parseBody(e,r,o){switch(e.responseType){case"json":let a=new TextDecoder().decode(r).replace(WV,"");return a===""?null:JSON.parse(a);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(e){let r={},o=e.withCredentials?"include":void 0;if(e.headers.forEach((a,c)=>r[a]=c.join(",")),r.Accept??="application/json, text/plain, */*",!r["Content-Type"]){let a=e.detectContentTypeHeader();a!==null&&(r["Content-Type"]=a)}return{body:e.serializeBody(),method:e.method,headers:r,credentials:o}}concatChunks(e,r){let o=new Uint8Array(r),a=0;for(let c of e)o.set(c,a),a+=c.length;return o}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),Zx=class{};function Jx(){}function $V(n){n.then(Jx,Jx)}function YV(n,t){return t(n)}function qV(n,t,i){return(e,r)=>$o(i,()=>t(e,o=>n(o,r)))}var uA=new re(""),hA=new re(""),mA=new re("");var iA=(()=>{let t=class t extends Xh{constructor(e,r){super(),this.backend=e,this.injector=r,this.chain=null,this.pendingTasks=F(Vf);let o=F(mA,{optional:!0});this.backend=o??e}handle(e){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(uA),...this.injector.get(hA,[])]));this.chain=o.reduceRight((a,c)=>qV(a,c,this.injector),YV)}let r=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(Vr(()=>this.pendingTasks.remove(r)))}};t.\u0275fac=function(r){return new(r||t)(k(Zh),k(Go))},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})();var QV=/^\)\]\}',?\n/;function KV(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}var nA=(()=>{let t=class t{constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new Ct(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?Li(r.\u0275loadImpl()):we(null)).pipe(ki(()=>new Lt(a=>{let c=r.build();if(c.open(e.method,e.urlWithParams),e.withCredentials&&(c.withCredentials=!0),e.headers.forEach((te,ge)=>c.setRequestHeader(te,ge.join(","))),e.headers.has("Accept")||c.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){let te=e.detectContentTypeHeader();te!==null&&c.setRequestHeader("Content-Type",te)}if(e.responseType){let te=e.responseType.toLowerCase();c.responseType=te!=="json"?te:"text"}let m=e.serializeBody(),x=null,I=()=>{if(x!==null)return x;let te=c.statusText||"OK",ge=new Ko(c.getAllResponseHeaders()),$e=KV(c)||e.url;return x=new qf({headers:ge,status:c.status,statusText:te,url:$e}),x},O=()=>{let{headers:te,status:ge,statusText:$e,url:ei}=I(),Pt=null;ge!==em.NoContent&&(Pt=typeof c.response>"u"?c.responseText:c.response),ge===0&&(ge=Pt?em.Ok:0);let en=ge>=200&&ge<300;if(e.responseType==="json"&&typeof Pt=="string"){let Qt=Pt;Pt=Pt.replace(QV,"");try{Pt=Pt!==""?JSON.parse(Pt):null}catch(Pn){Pt=Qt,en&&(en=!1,Pt={error:Pn,text:Pt})}}en?(a.next(new il({body:Pt,headers:te,status:ge,statusText:$e,url:ei||void 0})),a.complete()):a.error(new Ws({error:Pt,headers:te,status:ge,statusText:$e,url:ei||void 0}))},B=te=>{let{url:ge}=I(),$e=new Ws({error:te,status:c.status||0,statusText:c.statusText||"Unknown Error",url:ge||void 0});a.error($e)},ae=!1,ee=te=>{ae||(a.next(I()),ae=!0);let ge={type:Gs.DownloadProgress,loaded:te.loaded};te.lengthComputable&&(ge.total=te.total),e.responseType==="text"&&c.responseText&&(ge.partialText=c.responseText),a.next(ge)},Se=te=>{let ge={type:Gs.UploadProgress,loaded:te.loaded};te.lengthComputable&&(ge.total=te.total),a.next(ge)};return c.addEventListener("load",O),c.addEventListener("error",B),c.addEventListener("timeout",B),c.addEventListener("abort",B),e.reportProgress&&(c.addEventListener("progress",ee),m!==null&&c.upload&&c.upload.addEventListener("progress",Se)),c.send(m),a.next({type:Gs.Sent}),()=>{c.removeEventListener("error",B),c.removeEventListener("abort",B),c.removeEventListener("load",O),c.removeEventListener("timeout",B),e.reportProgress&&(c.removeEventListener("progress",ee),m!==null&&c.upload&&c.upload.removeEventListener("progress",Se)),c.readyState!==c.DONE&&c.abort()}})))}};t.\u0275fac=function(r){return new(r||t)(k(Gf))},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),pA=new re(""),XV="XSRF-TOKEN",ZV=new re("",{providedIn:"root",factory:()=>XV}),JV="X-XSRF-TOKEN",ej=new re("",{providedIn:"root",factory:()=>JV}),Qf=class{},tj=(()=>{let t=class t{constructor(e,r,o){this.doc=e,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Uf(e,this.cookieName),this.lastCookieString=e),this.lastToken}};t.\u0275fac=function(r){return new(r||t)(k(ye),k(Xt),k(ZV))},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})();function ij(n,t){let i=n.url.toLowerCase();if(!F(pA)||n.method==="GET"||n.method==="HEAD"||i.startsWith("http://")||i.startsWith("https://"))return t(n);let e=F(Qf).getToken(),r=F(ej);return e!=null&&!n.headers.has(r)&&(n=n.clone({headers:n.headers.set(r,e)})),t(n)}var gA=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}(gA||{});function nj(n,t){return{\u0275kind:n,\u0275providers:t}}function fA(...n){let t=[pi,nA,iA,{provide:Xh,useExisting:iA},{provide:Zh,useExisting:nA},{provide:uA,useValue:ij,multi:!0},{provide:pA,useValue:!0},{provide:Qf,useClass:tj}];for(let i of n)t.push(...i.\u0275providers);return Ls(t)}function bA(){return nj(gA.Fetch,[Qx,{provide:Zh,useExisting:Qx},{provide:mA,useExisting:Qx}])}var rA="b",oA="h",aA="s",sA="st",cA="u",lA="rt",Yf=new re(""),rj=["GET","HEAD"];function oj(n,t){let O=F(Yf),{isCacheActive:i}=O,e=oM(O,["isCacheActive"]),{transferCache:r,method:o}=n;if(!i||o==="POST"&&!e.includePostRequests&&!r||o!=="POST"&&!rj.includes(o)||r===!1||e.filter?.(n)===!1)return t(n);let a=F(Pf),c=sj(n),m=a.get(c,null),x=e.includeHeaders;if(typeof r=="object"&&r.includeHeaders&&(x=r.includeHeaders),m){let{[rA]:B,[lA]:ae,[oA]:ee,[aA]:Se,[sA]:te,[cA]:ge}=m,$e=B;switch(ae){case"arraybuffer":$e=new TextEncoder().encode(B).buffer;break;case"blob":$e=new Blob([B]);break}let ei=new Ko(ee);return we(new il({body:$e,headers:ei,status:Se,statusText:te,url:ge}))}let I=Yh(F(Xt));return t(n).pipe(Kt(B=>{B instanceof il&&I&&a.set(c,{[rA]:B.body,[oA]:aj(B.headers,x),[aA]:B.status,[sA]:B.statusText,[cA]:B.url||"",[lA]:n.responseType})}))}function aj(n,t){if(!t)return{};let i={};for(let e of t){let r=n.getAll(e);r!==null&&(i[e]=r)}return i}function dA(n){return[...n.keys()].sort().map(t=>`${t}=${n.getAll(t)}`).join("&")}function sj(n){let{params:t,method:i,responseType:e,url:r}=n,o=dA(t),a=n.serializeBody();a instanceof URLSearchParams?a=dA(a):typeof a!="string"&&(a="");let c=[i,e,r,a,o].join("|"),m=cj(c);return m}function cj(n){let t=0;for(let i of n)t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,t.toString()}function vA(n){return[{provide:Yf,useFactory:()=>(Nf("NgHttpTransferCache"),ne({isCacheActive:!0},n))},{provide:hA,useValue:oj,multi:!0,deps:[Pf,Yf]},{provide:Gh,multi:!0,useFactory:()=>{let t=F(Ui),i=F(Yf);return()=>{PM(t).then(()=>{i.isCacheActive=!1})}}}]}var iC=class extends HM{constructor(){super(...arguments),this.supportsDOMEvents=!0}},nC=class n extends iC{static makeCurrent(){zM(new n)}onAndCancel(t,i,e){return t.addEventListener(i,e),()=>{t.removeEventListener(i,e)}}dispatchEvent(t,i){t.dispatchEvent(i)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,i){return i=i||this.getDefaultDocument(),i.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,i){return i==="window"?window:i==="document"?t:i==="body"?t.body:null}getBaseHref(t){let i=dj();return i==null?null:uj(i)}resetBaseElement(){tm=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Uf(document.cookie,t)}},tm=null;function dj(){return tm=tm||document.querySelector("base"),tm?tm.getAttribute("href"):null}function uj(n){return new URL(n,document.baseURI).pathname}var hj=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),rC=new re(""),wA=(()=>{let t=class t{constructor(e,r){this._zone=r,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,r,o){return this._findPluginFor(r).addEventListener(e,r,o)}getZone(){return this._zone}_findPluginFor(e){let r=this._eventNameToPlugin.get(e);if(r)return r;if(r=this._plugins.find(a=>a.supports(e)),!r)throw new Ct(5101,!1);return this._eventNameToPlugin.set(e,r),r}};t.\u0275fac=function(r){return new(r||t)(k(rC),k(be))},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),Kf=class{constructor(t){this._doc=t}},eC="ng-app-id",xA=(()=>{let t=class t{constructor(e,r,o,a={}){this.doc=e,this.appId=r,this.nonce=o,this.platformId=a,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Yh(a),this.resetHostNodes()}addStyles(e){for(let r of e)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(e){for(let r of e)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(r=>r.remove()),e.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let r of this.getAllStyles())this.addStyleToHost(e,r)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let r of this.hostNodes)this.addStyleToHost(r,e)}onStyleRemoved(e){let r=this.styleRef;r.get(e)?.elements?.forEach(o=>o.remove()),r.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${eC}="${this.appId}"]`);if(e?.length){let r=new Map;return e.forEach(o=>{o.textContent!=null&&r.set(o.textContent,o)}),r}return null}changeUsageCount(e,r){let o=this.styleRef;if(o.has(e)){let a=o.get(e);return a.usage+=r,a.usage}return o.set(e,{usage:r,elements:[]}),r}getStyleElement(e,r){let o=this.styleNodesInDOM,a=o?.get(r);if(a?.parentNode===e)return o.delete(r),a.removeAttribute(eC),a;{let c=this.doc.createElement("style");return this.nonce&&c.setAttribute("nonce",this.nonce),c.textContent=r,this.platformIsServer&&c.setAttribute(eC,this.appId),e.appendChild(c),c}}addStyleToHost(e,r){let o=this.getStyleElement(e,r),a=this.styleRef,c=a.get(r)?.elements;c?c.push(o):a.set(r,{elements:[o],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}};t.\u0275fac=function(r){return new(r||t)(k(ye),k(Bh),k(zh,8),k(Xt))},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),tC={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/"},cC=/%COMP%/g,CA="%COMP%",mj=`_nghost-${CA}`,pj=`_ngcontent-${CA}`,gj=!0,fj=new re("",{providedIn:"root",factory:()=>gj});function bj(n){return pj.replace(cC,n)}function vj(n){return mj.replace(cC,n)}function IA(n,t){return t.map(i=>i.replace(cC,n))}var Xf=(()=>{let t=class t{constructor(e,r,o,a,c,m,x,I=null){this.eventManager=e,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=a,this.doc=c,this.platformId=m,this.ngZone=x,this.nonce=I,this.rendererByCompId=new Map,this.platformIsServer=Yh(m),this.defaultRenderer=new im(e,c,x,this.platformIsServer)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Vh.ShadowDom&&(r=xt(ne({},r),{encapsulation:Vh.Emulated}));let o=this.getOrCreateRenderer(e,r);return o instanceof Zf?o.applyToHost(e):o instanceof nm&&o.applyStyles(),o}getOrCreateRenderer(e,r){let o=this.rendererByCompId,a=o.get(r.id);if(!a){let c=this.doc,m=this.ngZone,x=this.eventManager,I=this.sharedStylesHost,O=this.removeStylesOnCompDestroy,B=this.platformIsServer;switch(r.encapsulation){case Vh.Emulated:a=new Zf(x,I,r,this.appId,O,c,m,B);break;case Vh.ShadowDom:return new oC(x,I,e,r,c,m,this.nonce,B);default:a=new nm(x,I,r,O,c,m,B);break}o.set(r.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(r){return new(r||t)(k(wA),k(xA),k(Bh),k(fj),k(ye),k(Xt),k(be),k(zh))},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),im=class{constructor(t,i,e,r){this.eventManager=t,this.doc=i,this.ngZone=e,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,i){return i?this.doc.createElementNS(tC[i]||i,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,i){(_A(t)?t.content:t).appendChild(i)}insertBefore(t,i,e){t&&(_A(t)?t.content:t).insertBefore(i,e)}removeChild(t,i){t&&t.removeChild(i)}selectRootElement(t,i){let e=typeof t=="string"?this.doc.querySelector(t):t;if(!e)throw new Ct(-5104,!1);return i||(e.textContent=""),e}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,i,e,r){if(r){i=r+":"+i;let o=tC[r];o?t.setAttributeNS(o,i,e):t.setAttribute(i,e)}else t.setAttribute(i,e)}removeAttribute(t,i,e){if(e){let r=tC[e];r?t.removeAttributeNS(r,i):t.removeAttribute(`${e}:${i}`)}else t.removeAttribute(i)}addClass(t,i){t.classList.add(i)}removeClass(t,i){t.classList.remove(i)}setStyle(t,i,e,r){r&(Uh.DashCase|Uh.Important)?t.style.setProperty(i,e,r&Uh.Important?"important":""):t.style[i]=e}removeStyle(t,i,e){e&Uh.DashCase?t.style.removeProperty(i):t.style[i]=""}setProperty(t,i,e){t!=null&&(t[i]=e)}setValue(t,i){t.nodeValue=i}listen(t,i,e){if(typeof t=="string"&&(t=el().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${i}`);return this.eventManager.addEventListener(t,i,this.decoratePreventDefault(e))}decoratePreventDefault(t){return i=>{if(i==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(i)):t(i))===!1&&i.preventDefault()}}};function _A(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var oC=class extends im{constructor(t,i,e,r,o,a,c,m){super(t,o,a,m),this.sharedStylesHost=i,this.hostEl=e,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let x=IA(r.id,r.styles);for(let I of x){let O=document.createElement("style");c&&O.setAttribute("nonce",c),O.textContent=I,this.shadowRoot.appendChild(O)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,i){return super.appendChild(this.nodeOrShadowRoot(t),i)}insertBefore(t,i,e){return super.insertBefore(this.nodeOrShadowRoot(t),i,e)}removeChild(t,i){return super.removeChild(this.nodeOrShadowRoot(t),i)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},nm=class extends im{constructor(t,i,e,r,o,a,c,m){super(t,o,a,c),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=m?IA(m,e.styles):e.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Zf=class extends nm{constructor(t,i,e,r,o,a,c,m){let x=r+"-"+e.id;super(t,i,e,o,a,c,m,x),this.contentAttr=bj(x),this.hostAttr=vj(x)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,i){let e=super.createElement(t,i);return super.setAttribute(e,this.contentAttr,""),e}},_j=(()=>{let t=class t extends Kf{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,o){return e.addEventListener(r,o,!1),()=>this.removeEventListener(e,r,o)}removeEventListener(e,r,o){return e.removeEventListener(r,o)}};t.\u0275fac=function(r){return new(r||t)(k(ye))},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),yA=["alt","control","meta","shift"],yj={"\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"},wj={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},xj=(()=>{let t=class t extends Kf{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,r,o){let a=t.parseEventName(r),c=t.eventCallback(a.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>el().onAndCancel(e,a.domEventName,c))}static parseEventName(e){let r=e.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let a=t._normalizeKey(r.pop()),c="",m=r.indexOf("code");if(m>-1&&(r.splice(m,1),c="code."),yA.forEach(I=>{let O=r.indexOf(I);O>-1&&(r.splice(O,1),c+=I+".")}),c+=a,r.length!=0||a.length===0)return null;let x={};return x.domEventName=o,x.fullKey=c,x}static matchEventFullKeyCode(e,r){let o=yj[e.key]||e.key,a="";return r.indexOf("code.")>-1&&(o=e.code,a="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),yA.forEach(c=>{if(c!==o){let m=wj[c];m(e)&&(a+=c+".")}}),a+=o,a===r)}static eventCallback(e,r,o){return a=>{t.matchEventFullKeyCode(a,e)&&o.runGuarded(()=>r(a))}}static _normalizeKey(e){return e==="esc"?"escape":e}};t.\u0275fac=function(r){return new(r||t)(k(ye))},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})();function kA(n,t){return VM(ne({rootComponent:n},Cj(t)))}function Cj(n){return{appProviders:[...Ej,...n?.providers??[]],platformProviders:Sj}}function Ij(){nC.makeCurrent()}function kj(){return new Zc}function Dj(){return yM(document),document}var Sj=[{provide:Xt,useValue:QM},{provide:wM,useValue:Ij,multi:!0},{provide:ye,useFactory:Dj,deps:[]}];var Ej=[{provide:bM,useValue:"root"},{provide:Zc,useFactory:kj,deps:[]},{provide:rC,useClass:_j,multi:!0,deps:[ye,be,Xt]},{provide:rC,useClass:xj,multi:!0,deps:[ye]},Xf,xA,wA,{provide:zd,useExisting:Xf},{provide:Gf,useClass:hj,deps:[]},[]];var DA=(()=>{let t=class t{constructor(e){this._doc=e,this._dom=el()}addTag(e,r=!1){return e?this._getOrCreateElement(e,r):null}addTags(e,r=!1){return e?e.reduce((o,a)=>(a&&o.push(this._getOrCreateElement(a,r)),o),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];let r=this._doc.querySelectorAll(`meta[${e}]`);return r?[].slice.call(r):[]}updateTag(e,r){if(!e)return null;r=r||this._parseSelector(e);let o=this.getTag(r);return o?this._setMetaElementAttributes(e,o):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,r=!1){if(!r){let c=this._parseSelector(e),m=this.getTags(c).filter(x=>this._containsAttributes(e,x))[0];if(m!==void 0)return m}let o=this._dom.createElement("meta");return this._setMetaElementAttributes(e,o),this._doc.getElementsByTagName("head")[0].appendChild(o),o}_setMetaElementAttributes(e,r){return Object.keys(e).forEach(o=>r.setAttribute(this._getMetaKeyMap(o),e[o])),r}_parseSelector(e){let r=e.name?"name":"property";return`${r}="${e[r]}"`}_containsAttributes(e,r){return Object.keys(e).every(o=>r.getAttribute(this._getMetaKeyMap(o))===e[o])}_getMetaKeyMap(e){return Tj[e]||e}};t.\u0275fac=function(r){return new(r||t)(k(ye))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Tj={httpEquiv:"http-equiv"},SA=(()=>{let t=class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}};t.\u0275fac=function(r){return new(r||t)(k(ye))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var $s=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=N({token:t,factory:function(r){let o=null;return r?o=new(r||t):o=k(Mj),o},providedIn:"root"});let n=t;return n})(),Mj=(()=>{let t=class t extends $s{constructor(e){super(),this._doc=e}sanitize(e,r){if(r==null)return null;switch(e){case ur.NONE:return r;case ur.HTML:return Ld(r,"HTML")?jd(r):EM(this._doc,String(r)).toString();case ur.STYLE:return Ld(r,"Style")?jd(r):r;case ur.SCRIPT:if(Ld(r,"Script"))return jd(r);throw new Ct(5200,!1);case ur.URL:return Ld(r,"URL")?jd(r):SM(String(r));case ur.RESOURCE_URL:if(Ld(r,"ResourceURL"))return jd(r);throw new Ct(5201,!1);default:throw new Ct(5202,!1)}}bypassSecurityTrustHtml(e){return xM(e)}bypassSecurityTrustStyle(e){return CM(e)}bypassSecurityTrustScript(e){return IM(e)}bypassSecurityTrustUrl(e){return kM(e)}bypassSecurityTrustResourceUrl(e){return DM(e)}};t.\u0275fac=function(r){return new(r||t)(k(ye))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),aC=function(n){return n[n.NoHttpTransferCache=0]="NoHttpTransferCache",n[n.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",n}(aC||{});function EA(...n){let t=[],i=new Set,e=i.has(aC.HttpTransferCacheOptions);for(let{\u0275providers:r,\u0275kind:o}of n)i.add(o),r.length&&t.push(r);return Ls([[],jM(),i.has(aC.NoHttpTransferCache)||e?[]:vA({}),t])}var Je="primary",_m=Symbol("RouteTitle"),pC=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let i=this.params[t];return Array.isArray(i)?i[0]:i}return null}getAll(t){if(this.has(t)){let i=this.params[t];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function Yd(n){return new pC(n)}function Aj(n,t,i){let e=i.path.split("/");if(e.length>n.length||i.pathMatch==="full"&&(t.hasChildren()||e.length<n.length))return null;let r={};for(let o=0;o<e.length;o++){let a=e[o],c=n[o];if(a.startsWith(":"))r[a.substring(1)]=c;else if(a!==c.path)return null}return{consumed:n.slice(0,e.length),posParams:r}}function Rj(n,t){if(n.length!==t.length)return!1;for(let i=0;i<n.length;++i)if(!Zo(n[i],t[i]))return!1;return!0}function Zo(n,t){let i=n?gC(n):void 0,e=t?gC(t):void 0;if(!i||!e||i.length!=e.length)return!1;let r;for(let o=0;o<i.length;o++)if(r=i[o],!VA(n[r],t[r]))return!1;return!0}function gC(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}function VA(n,t){if(Array.isArray(n)&&Array.isArray(t)){if(n.length!==t.length)return!1;let i=[...n].sort(),e=[...t].sort();return i.every((r,o)=>e[o]===r)}else return n===t}function jA(n){return n.length>0?n[n.length-1]:null}function Xs(n){return Ff(n)?n:zf(n)?Li(Promise.resolve(n)):we(n)}var Fj={exact:BA,subset:zA},LA={exact:Oj,subset:Pj,ignored:()=>!0};function TA(n,t,i){return Fj[i.paths](n.root,t.root,i.matrixParams)&&LA[i.queryParams](n.queryParams,t.queryParams)&&!(i.fragment==="exact"&&n.fragment!==t.fragment)}function Oj(n,t){return Zo(n,t)}function BA(n,t,i){if(!rl(n.segments,t.segments)||!tb(n.segments,t.segments,i)||n.numberOfChildren!==t.numberOfChildren)return!1;for(let e in t.children)if(!n.children[e]||!BA(n.children[e],t.children[e],i))return!1;return!0}function Pj(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(i=>VA(n[i],t[i]))}function zA(n,t,i){return HA(n,t,t.segments,i)}function HA(n,t,i,e){if(n.segments.length>i.length){let r=n.segments.slice(0,i.length);return!(!rl(r,i)||t.hasChildren()||!tb(r,i,e))}else if(n.segments.length===i.length){if(!rl(n.segments,i)||!tb(n.segments,i,e))return!1;for(let r in t.children)if(!n.children[r]||!zA(n.children[r],t.children[r],e))return!1;return!0}else{let r=i.slice(0,n.segments.length),o=i.slice(n.segments.length);return!rl(n.segments,r)||!tb(n.segments,r,e)||!n.children[Je]?!1:HA(n.children[Je],t,o,e)}}function tb(n,t,i){return t.every((e,r)=>LA[i](n[r].parameters,e.parameters))}var Ys=class{constructor(t=new kt([],{}),i={},e=null){this.root=t,this.queryParams=i,this.fragment=e}get queryParamMap(){return this._queryParamMap??=Yd(this.queryParams),this._queryParamMap}toString(){return jj.serialize(this)}},kt=class{constructor(t,i){this.segments=t,this.children=i,this.parent=null,Object.values(i).forEach(e=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ib(this)}},nl=class{constructor(t,i){this.path=t,this.parameters=i}get parameterMap(){return this._parameterMap??=Yd(this.parameters),this._parameterMap}toString(){return WA(this)}};function Nj(n,t){return rl(n,t)&&n.every((i,e)=>Zo(i.parameters,t[e].parameters))}function rl(n,t){return n.length!==t.length?!1:n.every((i,e)=>i.path===t[e].path)}function Vj(n,t){let i=[];return Object.entries(n.children).forEach(([e,r])=>{e===Je&&(i=i.concat(t(r,e)))}),Object.entries(n.children).forEach(([e,r])=>{e!==Je&&(i=i.concat(t(r,e)))}),i}var ym=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=N({token:t,factory:()=>new dm,providedIn:"root"});let n=t;return n})(),dm=class{parse(t){let i=new bC(t);return new Ys(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(t){let i=`/${rm(t.root,!0)}`,e=zj(t.queryParams),r=typeof t.fragment=="string"?`#${Lj(t.fragment)}`:"";return`${i}${e}${r}`}},jj=new dm;function ib(n){return n.segments.map(t=>WA(t)).join("/")}function rm(n,t){if(!n.hasChildren())return ib(n);if(t){let i=n.children[Je]?rm(n.children[Je],!1):"",e=[];return Object.entries(n.children).forEach(([r,o])=>{r!==Je&&e.push(`${r}:${rm(o,!1)}`)}),e.length>0?`${i}(${e.join("//")})`:i}else{let i=Vj(n,(e,r)=>r===Je?[rm(n.children[Je],!1)]:[`${r}:${rm(e,!1)}`]);return Object.keys(n.children).length===1&&n.children[Je]!=null?`${ib(n)}/${i[0]}`:`${ib(n)}/(${i.join("//")})`}}function UA(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Jf(n){return UA(n).replace(/%3B/gi,";")}function Lj(n){return encodeURI(n)}function fC(n){return UA(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function nb(n){return decodeURIComponent(n)}function MA(n){return nb(n.replace(/\+/g,"%20"))}function WA(n){return`${fC(n.path)}${Bj(n.parameters)}`}function Bj(n){return Object.entries(n).map(([t,i])=>`;${fC(t)}=${fC(i)}`).join("")}function zj(n){let t=Object.entries(n).map(([i,e])=>Array.isArray(e)?e.map(r=>`${Jf(i)}=${Jf(r)}`).join("&"):`${Jf(i)}=${Jf(e)}`).filter(i=>i);return t.length?`?${t.join("&")}`:""}var Hj=/^[^\/()?;#]+/;function dC(n){let t=n.match(Hj);return t?t[0]:""}var Uj=/^[^\/()?;=#]+/;function Wj(n){let t=n.match(Uj);return t?t[0]:""}var Gj=/^[^=?&#]+/;function $j(n){let t=n.match(Gj);return t?t[0]:""}var Yj=/^[^&#]+/;function qj(n){let t=n.match(Yj);return t?t[0]:""}var bC=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new kt([],{}):new kt([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let e={};return this.peekStartsWith("(")&&(e=this.parseParens(!1)),(t.length>0||Object.keys(i).length>0)&&(e[Je]=new kt(t,i)),e}parseSegment(){let t=dC(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new Ct(4009,!1);return this.capture(t),new nl(nb(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let i=Wj(this.remaining);if(!i)return;this.capture(i);let e="";if(this.consumeOptional("=")){let r=dC(this.remaining);r&&(e=r,this.capture(e))}t[nb(i)]=nb(e)}parseQueryParam(t){let i=$j(this.remaining);if(!i)return;this.capture(i);let e="";if(this.consumeOptional("=")){let a=qj(this.remaining);a&&(e=a,this.capture(e))}let r=MA(i),o=MA(e);if(t.hasOwnProperty(r)){let a=t[r];Array.isArray(a)||(a=[a],t[r]=a),a.push(o)}else t[r]=o}parseParens(t){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let e=dC(this.remaining),r=this.remaining[e.length];if(r!=="/"&&r!==")"&&r!==";")throw new Ct(4010,!1);let o;e.indexOf(":")>-1?(o=e.slice(0,e.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=Je);let a=this.parseChildren();i[o]=Object.keys(a).length===1?a[Je]:new kt([],a),this.consumeOptional("//")}return i}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new Ct(4011,!1)}};function GA(n){return n.segments.length>0?new kt([],{[Je]:n}):n}function $A(n){let t={};for(let[e,r]of Object.entries(n.children)){let o=$A(r);if(e===Je&&o.segments.length===0&&o.hasChildren())for(let[a,c]of Object.entries(o.children))t[a]=c;else(o.segments.length>0||o.hasChildren())&&(t[e]=o)}let i=new kt(n.segments,t);return Qj(i)}function Qj(n){if(n.numberOfChildren===1&&n.children[Je]){let t=n.children[Je];return new kt(n.segments.concat(t.segments),t.children)}return n}function qd(n){return n instanceof Ys}function Kj(n,t,i=null,e=null){let r=YA(n);return qA(r,t,i,e)}function YA(n){let t;function i(o){let a={};for(let m of o.children){let x=i(m);a[m.outlet]=x}let c=new kt(o.url,a);return o===n&&(t=c),c}let e=i(n.root),r=GA(e);return t??r}function qA(n,t,i,e){let r=n;for(;r.parent;)r=r.parent;if(t.length===0)return uC(r,r,r,i,e);let o=Xj(t);if(o.toRoot())return uC(r,r,new kt([],{}),i,e);let a=Zj(o,r,n),c=a.processChildren?sm(a.segmentGroup,a.index,o.commands):KA(a.segmentGroup,a.index,o.commands);return uC(r,a.segmentGroup,c,i,e)}function rb(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function um(n){return typeof n=="object"&&n!=null&&n.outlets}function uC(n,t,i,e,r){let o={};e&&Object.entries(e).forEach(([m,x])=>{o[m]=Array.isArray(x)?x.map(I=>`${I}`):`${x}`});let a;n===t?a=i:a=QA(n,t,i);let c=GA($A(a));return new Ys(c,o,r)}function QA(n,t,i){let e={};return Object.entries(n.children).forEach(([r,o])=>{o===t?e[r]=i:e[r]=QA(o,t,i)}),new kt(n.segments,e)}var ob=class{constructor(t,i,e){if(this.isAbsolute=t,this.numberOfDoubleDots=i,this.commands=e,t&&e.length>0&&rb(e[0]))throw new Ct(4003,!1);let r=e.find(um);if(r&&r!==jA(e))throw new Ct(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Xj(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new ob(!0,0,n);let t=0,i=!1,e=n.reduce((r,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let c={};return Object.entries(o.outlets).forEach(([m,x])=>{c[m]=typeof x=="string"?x.split("/"):x}),[...r,{outlets:c}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:a===0?(o.split("/").forEach((c,m)=>{m==0&&c==="."||(m==0&&c===""?i=!0:c===".."?t++:c!=""&&r.push(c))}),r):[...r,o]},[]);return new ob(i,t,e)}var Gd=class{constructor(t,i,e){this.segmentGroup=t,this.processChildren=i,this.index=e}};function Zj(n,t,i){if(n.isAbsolute)return new Gd(t,!0,0);if(!i)return new Gd(t,!1,NaN);if(i.parent===null)return new Gd(i,!0,0);let e=rb(n.commands[0])?0:1,r=i.segments.length-1+e;return Jj(i,r,n.numberOfDoubleDots)}function Jj(n,t,i){let e=n,r=t,o=i;for(;o>r;){if(o-=r,e=e.parent,!e)throw new Ct(4005,!1);r=e.segments.length}return new Gd(e,!1,r-o)}function eL(n){return um(n[0])?n[0].outlets:{[Je]:n}}function KA(n,t,i){if(n??=new kt([],{}),n.segments.length===0&&n.hasChildren())return sm(n,t,i);let e=tL(n,t,i),r=i.slice(e.commandIndex);if(e.match&&e.pathIndex<n.segments.length){let o=new kt(n.segments.slice(0,e.pathIndex),{});return o.children[Je]=new kt(n.segments.slice(e.pathIndex),n.children),sm(o,0,r)}else return e.match&&r.length===0?new kt(n.segments,{}):e.match&&!n.hasChildren()?vC(n,t,i):e.match?sm(n,0,r):vC(n,t,i)}function sm(n,t,i){if(i.length===0)return new kt(n.segments,{});{let e=eL(i),r={};if(Object.keys(e).some(o=>o!==Je)&&n.children[Je]&&n.numberOfChildren===1&&n.children[Je].segments.length===0){let o=sm(n.children[Je],t,i);return new kt(n.segments,o.children)}return Object.entries(e).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(r[o]=KA(n.children[o],t,a))}),Object.entries(n.children).forEach(([o,a])=>{e[o]===void 0&&(r[o]=a)}),new kt(n.segments,r)}}function tL(n,t,i){let e=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};for(;r<n.segments.length;){if(e>=i.length)return o;let a=n.segments[r],c=i[e];if(um(c))break;let m=`${c}`,x=e<i.length-1?i[e+1]:null;if(r>0&&m===void 0)break;if(m&&x&&typeof x=="object"&&x.outlets===void 0){if(!RA(m,x,a))return o;e+=2}else{if(!RA(m,{},a))return o;e++}r++}return{match:!0,pathIndex:r,commandIndex:e}}function vC(n,t,i){let e=n.segments.slice(0,t),r=0;for(;r<i.length;){let o=i[r];if(um(o)){let m=iL(o.outlets);return new kt(e,m)}if(r===0&&rb(i[0])){let m=n.segments[t];e.push(new nl(m.path,AA(i[0]))),r++;continue}let a=um(o)?o.outlets[Je]:`${o}`,c=r<i.length-1?i[r+1]:null;a&&c&&rb(c)?(e.push(new nl(a,AA(c))),r+=2):(e.push(new nl(a,{})),r++)}return new kt(e,{})}function iL(n){let t={};return Object.entries(n).forEach(([i,e])=>{typeof e=="string"&&(e=[e]),e!==null&&(t[i]=vC(new kt([],{}),0,e))}),t}function AA(n){let t={};return Object.entries(n).forEach(([i,e])=>t[i]=`${e}`),t}function RA(n,t,i){return n==i.path&&Zo(t,i.parameters)}var cm="imperative",Gi=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}(Gi||{}),zr=class{constructor(t,i){this.id=t,this.url=i}},Qd=class extends zr{constructor(t,i,e="imperative",r=null){super(t,i),this.type=Gi.NavigationStart,this.navigationTrigger=e,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},yo=class extends zr{constructor(t,i,e){super(t,i),this.urlAfterRedirects=e,this.type=Gi.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},pr=function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n}(pr||{}),ab=function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n}(ab||{}),qs=class extends zr{constructor(t,i,e,r){super(t,i),this.reason=e,this.code=r,this.type=Gi.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Qs=class extends zr{constructor(t,i,e,r){super(t,i),this.reason=e,this.code=r,this.type=Gi.NavigationSkipped}},hm=class extends zr{constructor(t,i,e,r){super(t,i),this.error=e,this.target=r,this.type=Gi.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},sb=class extends zr{constructor(t,i,e,r){super(t,i),this.urlAfterRedirects=e,this.state=r,this.type=Gi.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},_C=class extends zr{constructor(t,i,e,r){super(t,i),this.urlAfterRedirects=e,this.state=r,this.type=Gi.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yC=class extends zr{constructor(t,i,e,r,o){super(t,i),this.urlAfterRedirects=e,this.state=r,this.shouldActivate=o,this.type=Gi.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},wC=class extends zr{constructor(t,i,e,r){super(t,i),this.urlAfterRedirects=e,this.state=r,this.type=Gi.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},xC=class extends zr{constructor(t,i,e,r){super(t,i),this.urlAfterRedirects=e,this.state=r,this.type=Gi.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},CC=class{constructor(t){this.route=t,this.type=Gi.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},IC=class{constructor(t){this.route=t,this.type=Gi.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},kC=class{constructor(t){this.snapshot=t,this.type=Gi.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},DC=class{constructor(t){this.snapshot=t,this.type=Gi.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},SC=class{constructor(t){this.snapshot=t,this.type=Gi.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},EC=class{constructor(t){this.snapshot=t,this.type=Gi.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},cb=class{constructor(t,i,e){this.routerEvent=t,this.position=i,this.anchor=e,this.type=Gi.Scroll}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},mm=class{},pm=class{constructor(t){this.url=t}};var TC=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new wm,this.attachRef=null}},wm=(()=>{let t=class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,r){let o=this.getOrCreateContext(e);o.outlet=r,this.contexts.set(e,o)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new TC,this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),lb=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let i=this.pathFromRoot(t);return i.length>1?i[i.length-2]:null}children(t){let i=MC(t,this._root);return i?i.children.map(e=>e.value):[]}firstChild(t){let i=MC(t,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(t){let i=AC(t,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return AC(t,this._root).map(i=>i.value)}};function MC(n,t){if(n===t.value)return t;for(let i of t.children){let e=MC(n,i);if(e)return e}return null}function AC(n,t){if(n===t.value)return[t];for(let i of t.children){let e=AC(n,i);if(e.length)return e.unshift(t),e}return[]}var mr=class{constructor(t,i){this.value=t,this.children=i}toString(){return`TreeNode(${this.value})`}};function Wd(n){let t={};return n&&n.children.forEach(i=>t[i.value.outlet]=i),t}var db=class extends lb{constructor(t,i){super(t),this.snapshot=i,zC(this,t)}toString(){return this.snapshot.toString()}};function XA(n){let t=nL(n),i=new si([new nl("",{})]),e=new si({}),r=new si({}),o=new si({}),a=new si(""),c=new Ks(i,e,o,a,r,Je,n,t.root);return c.snapshot=t.root,new db(new mr(c,[]),t)}function nL(n){let t={},i={},e={},r="",o=new gm([],t,e,r,i,Je,n,null,{});return new ub("",new mr(o,[]))}var Ks=class{constructor(t,i,e,r,o,a,c,m){this.urlSubject=t,this.paramsSubject=i,this.queryParamsSubject=e,this.fragmentSubject=r,this.dataSubject=o,this.outlet=a,this.component=c,this._futureSnapshot=m,this.title=this.dataSubject?.pipe(je(x=>x[_m]))??we(void 0),this.url=t,this.params=i,this.queryParams=e,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(je(t=>Yd(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(je(t=>Yd(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function BC(n,t,i="emptyOnly"){let e,{routeConfig:r}=n;return t!==null&&(i==="always"||r?.path===""||!t.component&&!t.routeConfig?.loadComponent)?e={params:ne(ne({},t.params),n.params),data:ne(ne({},t.data),n.data),resolve:ne(ne(ne(ne({},n.data),t.data),r?.data),n._resolvedData)}:e={params:ne({},n.params),data:ne({},n.data),resolve:ne(ne({},n.data),n._resolvedData??{})},r&&JA(r)&&(e.resolve[_m]=r.title),e}var gm=class{get title(){return this.data?.[_m]}constructor(t,i,e,r,o,a,c,m,x){this.url=t,this.params=i,this.queryParams=e,this.fragment=r,this.data=o,this.outlet=a,this.component=c,this.routeConfig=m,this._resolve=x}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??=Yd(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Yd(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(e=>e.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${i}')`}},ub=class extends lb{constructor(t,i){super(i),this.url=t,zC(this,i)}toString(){return ZA(this._root)}};function zC(n,t){t.value._routerState=n,t.children.forEach(i=>zC(n,i))}function ZA(n){let t=n.children.length>0?` { ${n.children.map(ZA).join(", ")} } `:"";return`${n.value}${t}`}function hC(n){if(n.snapshot){let t=n.snapshot,i=n._futureSnapshot;n.snapshot=i,Zo(t.queryParams,i.queryParams)||n.queryParamsSubject.next(i.queryParams),t.fragment!==i.fragment&&n.fragmentSubject.next(i.fragment),Zo(t.params,i.params)||n.paramsSubject.next(i.params),Rj(t.url,i.url)||n.urlSubject.next(i.url),Zo(t.data,i.data)||n.dataSubject.next(i.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function RC(n,t){let i=Zo(n.params,t.params)&&Nj(n.url,t.url),e=!n.parent!=!t.parent;return i&&!e&&(!n.parent||RC(n.parent,t.parent))}function JA(n){return typeof n.title=="string"||n.title===null}var HC=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Je,this.activateEvents=new Y,this.deactivateEvents=new Y,this.attachEvents=new Y,this.detachEvents=new Y,this.parentContexts=F(wm),this.location=F(ri),this.changeDetector=F(ce),this.environmentInjector=F(Go),this.inputBinder=F(fb,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:o}=e.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(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Ct(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Ct(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Ct(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new Ct(4013,!1);this._activatedRoute=e;let o=this.location,c=e.snapshot.component,m=this.parentContexts.getOrCreateContext(this.name).children,x=new FC(e,m,o.injector);this.activated=o.createComponent(c,{index:o.length,injector:x,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=J({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[he]});let n=t;return n})(),FC=class n{__ngOutletInjector(t){return new n(this.route,this.childContexts,t)}constructor(t,i,e){this.route=t,this.childContexts=i,this.parent=e}get(t,i){return t===Ks?this.route:t===wm?this.childContexts:this.parent.get(t,i)}},fb=new re(""),FA=(()=>{let t=class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,o=Oa([r.queryParams,r.params,r.data]).pipe(ki(([a,c,m],x)=>(m=ne(ne(ne({},a),c),m),x===0?we(m):Promise.resolve(m)))).subscribe(a=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let c=BM(r.component);if(!c){this.unsubscribeFromRouteData(e);return}for(let{templateName:m}of c.inputs)e.activatedComponentRef.setInput(m,a[m])});this.outletDataSubscriptions.set(e,o)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})();function rL(n,t,i){let e=fm(n,t._root,i?i._root:void 0);return new db(e,t)}function fm(n,t,i){if(i&&n.shouldReuseRoute(t.value,i.value.snapshot)){let e=i.value;e._futureSnapshot=t.value;let r=oL(n,t,i);return new mr(e,r)}else{if(n.shouldAttach(t.value)){let o=n.retrieve(t.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=t.value,a.children=t.children.map(c=>fm(n,c)),a}}let e=aL(t.value),r=t.children.map(o=>fm(n,o));return new mr(e,r)}}function oL(n,t,i){return t.children.map(e=>{for(let r of i.children)if(n.shouldReuseRoute(e.value,r.value.snapshot))return fm(n,e,r);return fm(n,e)})}function aL(n){return new Ks(new si(n.url),new si(n.params),new si(n.queryParams),new si(n.fragment),new si(n.data),n.outlet,n.component,n)}var e2="ngNavigationCancelingError";function t2(n,t){let{redirectTo:i,navigationBehaviorOptions:e}=qd(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=i2(!1,pr.Redirect);return r.url=i,r.navigationBehaviorOptions=e,r}function i2(n,t){let i=new Error(`NavigationCancelingError: ${n||""}`);return i[e2]=!0,i.cancellationCode=t,i}function sL(n){return n2(n)&&qd(n.url)}function n2(n){return!!n&&n[e2]}var cL=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=R({type:t,selectors:[["ng-component"]],standalone:!0,features:[se],decls:1,vars:0,template:function(r,o){r&1&&E(0,"router-outlet")},dependencies:[HC],encapsulation:2});let n=t;return n})();function lL(n,t){return n.providers&&!n._injector&&(n._injector=zx(n.providers,t,`Route: ${n.path}`)),n._injector??t}function UC(n){let t=n.children&&n.children.map(UC),i=t?xt(ne({},n),{children:t}):ne({},n);return!i.component&&!i.loadComponent&&(t||i.loadChildren)&&i.outlet&&i.outlet!==Je&&(i.component=cL),i}function Jo(n){return n.outlet||Je}function dL(n,t){let i=n.filter(e=>Jo(e)===t);return i.push(...n.filter(e=>Jo(e)!==t)),i}function xm(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){let i=t.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}var uL=(n,t,i,e)=>je(r=>(new OC(t,r.targetRouterState,r.currentRouterState,i,e).activate(n),r)),OC=class{constructor(t,i,e,r,o){this.routeReuseStrategy=t,this.futureState=i,this.currState=e,this.forwardEvent=r,this.inputBindingEnabled=o}activate(t){let i=this.futureState._root,e=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,e,t),hC(this.futureState.root),this.activateChildRoutes(i,e,t)}deactivateChildRoutes(t,i,e){let r=Wd(i);t.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,r[a],e),delete r[a]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,e)})}deactivateRoutes(t,i,e){let r=t.value,o=i?i.value:null;if(r===o)if(r.component){let a=e.getContext(r.outlet);a&&this.deactivateChildRoutes(t,i,a.children)}else this.deactivateChildRoutes(t,i,e);else o&&this.deactivateRouteAndItsChildren(i,e)}deactivateRouteAndItsChildren(t,i){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,i):this.deactivateRouteAndOutlet(t,i)}detachAndStoreRouteSubtree(t,i){let e=i.getContext(t.value.outlet),r=e&&t.value.component?e.children:i,o=Wd(t);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);if(e&&e.outlet){let a=e.outlet.detach(),c=e.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:a,route:t,contexts:c})}}deactivateRouteAndOutlet(t,i){let e=i.getContext(t.value.outlet),r=e&&t.value.component?e.children:i,o=Wd(t);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);e&&(e.outlet&&(e.outlet.deactivate(),e.children.onOutletDeactivated()),e.attachRef=null,e.route=null)}activateChildRoutes(t,i,e){let r=Wd(i);t.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],e),this.forwardEvent(new EC(o.value.snapshot))}),t.children.length&&this.forwardEvent(new DC(t.value.snapshot))}activateRoutes(t,i,e){let r=t.value,o=i?i.value:null;if(hC(r),r===o)if(r.component){let a=e.getOrCreateContext(r.outlet);this.activateChildRoutes(t,i,a.children)}else this.activateChildRoutes(t,i,e);else if(r.component){let a=e.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let c=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(c.contexts),a.attachRef=c.componentRef,a.route=c.route.value,a.outlet&&a.outlet.attach(c.componentRef,c.route.value),hC(c.route.value),this.activateChildRoutes(t,null,a.children)}else{let c=xm(r.snapshot);a.attachRef=null,a.route=r,a.injector=c,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(t,null,a.children)}}else this.activateChildRoutes(t,null,e)}},hb=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},$d=class{constructor(t,i){this.component=t,this.route=i}};function hL(n,t,i){let e=n._root,r=t?t._root:null;return om(e,r,i,[e.value])}function mL(n){let t=n.routeConfig?n.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:n,guards:t}}function Xd(n,t){let i=Symbol(),e=t.get(n,i);return e===i?typeof n=="function"&&!fM(n)?n:t.get(n):e}function om(n,t,i,e,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=Wd(t);return n.children.forEach(a=>{pL(a,o[a.value.outlet],i,e.concat([a.value]),r),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,c])=>lm(c,i.getContext(a),r)),r}function pL(n,t,i,e,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=n.value,a=t?t.value:null,c=i?i.getContext(n.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let m=gL(a,o,o.routeConfig.runGuardsAndResolvers);m?r.canActivateChecks.push(new hb(e)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?om(n,t,c?c.children:null,e,r):om(n,t,i,e,r),m&&c&&c.outlet&&c.outlet.isActivated&&r.canDeactivateChecks.push(new $d(c.outlet.component,a))}else a&&lm(t,c,r),r.canActivateChecks.push(new hb(e)),o.component?om(n,null,c?c.children:null,e,r):om(n,null,i,e,r);return r}function gL(n,t,i){if(typeof i=="function")return i(n,t);switch(i){case"pathParamsChange":return!rl(n.url,t.url);case"pathParamsOrQueryParamsChange":return!rl(n.url,t.url)||!Zo(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!RC(n,t)||!Zo(n.queryParams,t.queryParams);case"paramsChange":default:return!RC(n,t)}}function lm(n,t,i){let e=Wd(n),r=n.value;Object.entries(e).forEach(([o,a])=>{r.component?t?lm(a,t.children.getContext(o),i):lm(a,null,i):lm(a,t,i)}),r.component?t&&t.outlet&&t.outlet.isActivated?i.canDeactivateChecks.push(new $d(t.outlet.component,r)):i.canDeactivateChecks.push(new $d(null,r)):i.canDeactivateChecks.push(new $d(null,r))}function Cm(n){return typeof n=="function"}function fL(n){return typeof n=="boolean"}function bL(n){return n&&Cm(n.canLoad)}function vL(n){return n&&Cm(n.canActivate)}function _L(n){return n&&Cm(n.canActivateChild)}function yL(n){return n&&Cm(n.canDeactivate)}function wL(n){return n&&Cm(n.canMatch)}function r2(n){return n instanceof sM||n?.name==="EmptyError"}var eb=Symbol("INITIAL_VALUE");function Kd(){return ki(n=>Oa(n.map(t=>t.pipe(gt(1),yi(eb)))).pipe(je(t=>{for(let i of t)if(i!==!0){if(i===eb)return eb;if(i===!1||i instanceof Ys)return i}return!0}),et(t=>t!==eb),gt(1)))}function xL(n,t){return lr(i=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=i;return a.length===0&&o.length===0?we(xt(ne({},i),{guardsResult:!0})):CL(a,e,r,n).pipe(lr(c=>c&&fL(c)?IL(e,o,n,t):we(c)),je(c=>xt(ne({},i),{guardsResult:c})))})}function CL(n,t,i,e){return Li(n).pipe(lr(r=>TL(r.component,r.route,i,t,e)),Vs(r=>r!==!0,!0))}function IL(n,t,i,e){return Li(t).pipe(Ps(r=>Of(DL(r.route.parent,e),kL(r.route,e),EL(n,r.path,i),SL(n,r.route,i))),Vs(r=>r!==!0,!0))}function kL(n,t){return n!==null&&t&&t(new SC(n)),we(!0)}function DL(n,t){return n!==null&&t&&t(new kC(n)),we(!0)}function SL(n,t,i){let e=t.routeConfig?t.routeConfig.canActivate:null;if(!e||e.length===0)return we(!0);let r=e.map(o=>Pa(()=>{let a=xm(t)??i,c=Xd(o,a),m=vL(c)?c.canActivate(t,n):$o(a,()=>c(t,n));return Xs(m).pipe(Vs())}));return we(r).pipe(Kd())}function EL(n,t,i){let e=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(a=>mL(a)).filter(a=>a!==null).map(a=>Pa(()=>{let c=a.guards.map(m=>{let x=xm(a.node)??i,I=Xd(m,x),O=_L(I)?I.canActivateChild(e,n):$o(x,()=>I(e,n));return Xs(O).pipe(Vs())});return we(c).pipe(Kd())}));return we(o).pipe(Kd())}function TL(n,t,i,e,r){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return we(!0);let a=o.map(c=>{let m=xm(t)??r,x=Xd(c,m),I=yL(x)?x.canDeactivate(n,t,i,e):$o(m,()=>x(n,t,i,e));return Xs(I).pipe(Vs())});return we(a).pipe(Kd())}function ML(n,t,i,e){let r=t.canLoad;if(r===void 0||r.length===0)return we(!0);let o=r.map(a=>{let c=Xd(a,n),m=bL(c)?c.canLoad(t,i):$o(n,()=>c(t,i));return Xs(m)});return we(o).pipe(Kd(),o2(e))}function o2(n){return aM(Kt(t=>{if(qd(t))throw t2(n,t)}),je(t=>t===!0))}function AL(n,t,i,e){let r=t.canMatch;if(!r||r.length===0)return we(!0);let o=r.map(a=>{let c=Xd(a,n),m=wL(c)?c.canMatch(t,i):$o(n,()=>c(t,i));return Xs(m)});return we(o).pipe(Kd(),o2(e))}var bm=class{constructor(t){this.segmentGroup=t||null}},mb=class extends Error{constructor(t){super(),this.urlTree=t}};function Ud(n){return Kc(new bm(n))}function RL(n){return Kc(new Ct(4e3,!1))}function FL(n){return Kc(i2(!1,pr.GuardRejected))}var PC=class{constructor(t,i){this.urlSerializer=t,this.urlTree=i}lineralizeSegments(t,i){let e=[],r=i.root;for(;;){if(e=e.concat(r.segments),r.numberOfChildren===0)return we(e);if(r.numberOfChildren>1||!r.children[Je])return RL(t.redirectTo);r=r.children[Je]}}applyRedirectCommands(t,i,e){let r=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),t,e);if(i.startsWith("/"))throw new mb(r);return r}applyRedirectCreateUrlTree(t,i,e,r){let o=this.createSegmentGroup(t,i.root,e,r);return new Ys(o,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(t,i){let e={};return Object.entries(t).forEach(([r,o])=>{if(typeof o=="string"&&o.startsWith(":")){let c=o.substring(1);e[r]=i[c]}else e[r]=o}),e}createSegmentGroup(t,i,e,r){let o=this.createSegments(t,i.segments,e,r),a={};return Object.entries(i.children).forEach(([c,m])=>{a[c]=this.createSegmentGroup(t,m,e,r)}),new kt(o,a)}createSegments(t,i,e,r){return i.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,r):this.findOrReturn(o,e))}findPosParam(t,i,e){let r=e[i.path.substring(1)];if(!r)throw new Ct(4001,!1);return r}findOrReturn(t,i){let e=0;for(let r of i){if(r.path===t.path)return i.splice(e),r;e++}return t}},NC={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function OL(n,t,i,e,r){let o=WC(n,t,i);return o.matched?(e=lL(t,e),AL(e,t,i,r).pipe(je(a=>a===!0?o:ne({},NC)))):we(o)}function WC(n,t,i){if(t.path==="**")return PL(i);if(t.path==="")return t.pathMatch==="full"&&(n.hasChildren()||i.length>0)?ne({},NC):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(t.matcher||Aj)(i,n,t);if(!r)return ne({},NC);let o={};Object.entries(r.posParams??{}).forEach(([c,m])=>{o[c]=m.path});let a=r.consumed.length>0?ne(ne({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function PL(n){return{matched:!0,parameters:n.length>0?jA(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function OA(n,t,i,e){return i.length>0&&jL(n,i,e)?{segmentGroup:new kt(t,VL(e,new kt(i,n.children))),slicedSegments:[]}:i.length===0&&LL(n,i,e)?{segmentGroup:new kt(n.segments,NL(n,i,e,n.children)),slicedSegments:i}:{segmentGroup:new kt(n.segments,n.children),slicedSegments:i}}function NL(n,t,i,e){let r={};for(let o of i)if(bb(n,t,o)&&!e[Jo(o)]){let a=new kt([],{});r[Jo(o)]=a}return ne(ne({},e),r)}function VL(n,t){let i={};i[Je]=t;for(let e of n)if(e.path===""&&Jo(e)!==Je){let r=new kt([],{});i[Jo(e)]=r}return i}function jL(n,t,i){return i.some(e=>bb(n,t,e)&&Jo(e)!==Je)}function LL(n,t,i){return i.some(e=>bb(n,t,e))}function bb(n,t,i){return(n.hasChildren()||t.length>0)&&i.pathMatch==="full"?!1:i.path===""}function BL(n,t,i,e){return Jo(n)!==e&&(e===Je||!bb(t,i,n))?!1:WC(t,n,i).matched}function zL(n,t,i){return t.length===0&&!n.children[i]}var VC=class{};function HL(n,t,i,e,r,o,a="emptyOnly"){return new jC(n,t,i,e,r,a,o).recognize()}var UL=31,jC=class{constructor(t,i,e,r,o,a,c){this.injector=t,this.configLoader=i,this.rootComponentType=e,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=c,this.applyRedirects=new PC(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new Ct(4002,`'${t.segmentGroup}'`)}recognize(){let t=OA(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(je(i=>{let e=new gm([],Object.freeze({}),Object.freeze(ne({},this.urlTree.queryParams)),this.urlTree.fragment,{},Je,this.rootComponentType,null,{}),r=new mr(e,i),o=new ub("",r),a=Kj(e,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(o._root,null),{state:o,tree:a}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,Je).pipe(Nr(e=>{if(e instanceof mb)return this.urlTree=e.urlTree,this.match(e.urlTree.root);throw e instanceof bm?this.noMatchError(e):e}))}inheritParamsAndData(t,i){let e=t.value,r=BC(e,i,this.paramsInheritanceStrategy);e.params=Object.freeze(r.params),e.data=Object.freeze(r.data),t.children.forEach(o=>this.inheritParamsAndData(o,e))}processSegmentGroup(t,i,e,r){return e.segments.length===0&&e.hasChildren()?this.processChildren(t,i,e):this.processSegment(t,i,e,e.segments,r,!0).pipe(je(o=>o instanceof mr?[o]:[]))}processChildren(t,i,e){let r=[];for(let o of Object.keys(e.children))o==="primary"?r.unshift(o):r.push(o);return Li(r).pipe(Ps(o=>{let a=e.children[o],c=dL(i,o);return this.processSegmentGroup(t,c,a,o)}),hM((o,a)=>(o.push(...a),o)),Px(null),dM(),lr(o=>{if(o===null)return Ud(e);let a=a2(o);return WL(a),we(a)}))}processSegment(t,i,e,r,o,a){return Li(i).pipe(Ps(c=>this.processSegmentAgainstRoute(c._injector??t,i,c,e,r,o,a).pipe(Nr(m=>{if(m instanceof bm)return we(null);throw m}))),Vs(c=>!!c),Nr(c=>{if(r2(c))return zL(e,r,o)?we(new VC):Ud(e);throw c}))}processSegmentAgainstRoute(t,i,e,r,o,a,c){return BL(e,r,o,a)?e.redirectTo===void 0?this.matchSegmentAgainstRoute(t,r,e,o,a):this.allowRedirects&&c?this.expandSegmentAgainstRouteUsingRedirect(t,r,i,e,o,a):Ud(r):Ud(r)}expandSegmentAgainstRouteUsingRedirect(t,i,e,r,o,a){let{matched:c,consumedSegments:m,positionalParamSegments:x,remainingSegments:I}=WC(i,r,o);if(!c)return Ud(i);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>UL&&(this.allowRedirects=!1));let O=this.applyRedirects.applyRedirectCommands(m,r.redirectTo,x);return this.applyRedirects.lineralizeSegments(r,O).pipe(lr(B=>this.processSegment(t,e,i,B.concat(I),a,!1)))}matchSegmentAgainstRoute(t,i,e,r,o){let a=OL(i,e,r,t,this.urlSerializer);return e.path==="**"&&(i.children={}),a.pipe(ki(c=>c.matched?(t=e._injector??t,this.getChildConfig(t,e,r).pipe(ki(({routes:m})=>{let x=e._loadedInjector??t,{consumedSegments:I,remainingSegments:O,parameters:B}=c,ae=new gm(I,B,Object.freeze(ne({},this.urlTree.queryParams)),this.urlTree.fragment,$L(e),Jo(e),e.component??e._loadedComponent??null,e,YL(e)),{segmentGroup:ee,slicedSegments:Se}=OA(i,I,O,m);if(Se.length===0&&ee.hasChildren())return this.processChildren(x,m,ee).pipe(je(ge=>ge===null?null:new mr(ae,ge)));if(m.length===0&&Se.length===0)return we(new mr(ae,[]));let te=Jo(e)===o;return this.processSegment(x,m,ee,Se,te?Je:o,!0).pipe(je(ge=>new mr(ae,ge instanceof mr?[ge]:[])))}))):Ud(i)))}getChildConfig(t,i,e){return i.children?we({routes:i.children,injector:t}):i.loadChildren?i._loadedRoutes!==void 0?we({routes:i._loadedRoutes,injector:i._loadedInjector}):ML(t,i,e,this.urlSerializer).pipe(lr(r=>r?this.configLoader.loadChildren(t,i).pipe(Kt(o=>{i._loadedRoutes=o.routes,i._loadedInjector=o.injector})):FL(i))):we({routes:[],injector:t})}};function WL(n){n.sort((t,i)=>t.value.outlet===Je?-1:i.value.outlet===Je?1:t.value.outlet.localeCompare(i.value.outlet))}function GL(n){let t=n.value.routeConfig;return t&&t.path===""}function a2(n){let t=[],i=new Set;for(let e of n){if(!GL(e)){t.push(e);continue}let r=t.find(o=>e.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...e.children),i.add(r)):t.push(e)}for(let e of i){let r=a2(e.children);t.push(new mr(e.value,r))}return t.filter(e=>!i.has(e))}function $L(n){return n.data||{}}function YL(n){return n.resolve||{}}function qL(n,t,i,e,r,o){return lr(a=>HL(n,t,i,e,a.extractedUrl,r,o).pipe(je(({state:c,tree:m})=>xt(ne({},a),{targetSnapshot:c,urlAfterRedirects:m}))))}function QL(n,t){return lr(i=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=i;if(!r.length)return we(i);let o=new Set(r.map(m=>m.route)),a=new Set;for(let m of o)if(!a.has(m))for(let x of s2(m))a.add(x);let c=0;return Li(a).pipe(Ps(m=>o.has(m)?KL(m,e,n,t):(m.data=BC(m,m.parent,n).resolve,we(void 0))),Kt(()=>c++),Nx(1),lr(m=>c===a.size?we(i):Or))})}function s2(n){let t=n.children.map(i=>s2(i)).flat();return[n,...t]}function KL(n,t,i,e){let r=n.routeConfig,o=n._resolve;return r?.title!==void 0&&!JA(r)&&(o[_m]=r.title),XL(o,n,t,e).pipe(je(a=>(n._resolvedData=a,n.data=BC(n,n.parent,i).resolve,null)))}function XL(n,t,i,e){let r=gC(n);if(r.length===0)return we({});let o={};return Li(r).pipe(lr(a=>ZL(n[a],t,i,e).pipe(Vs(),Kt(c=>{o[a]=c}))),Nx(1),lM(o),Nr(a=>r2(a)?Or:Kc(a)))}function ZL(n,t,i,e){let r=xm(t)??e,o=Xd(n,r),a=o.resolve?o.resolve(t,i):$o(r,()=>o(t,i));return Xs(a)}function mC(n){return ki(t=>{let i=n(t);return i?Li(i).pipe(je(()=>t)):we(t)})}var c2=(()=>{let t=class t{buildTitle(e){let r,o=e.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(a=>a.outlet===Je);return r}getResolvedTitleForRoute(e){return e.data[_m]}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=N({token:t,factory:()=>F(JL),providedIn:"root"});let n=t;return n})(),JL=(()=>{let t=class t extends c2{constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}};t.\u0275fac=function(r){return new(r||t)(k(SA))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Im=new re("",{providedIn:"root",factory:()=>({})}),vm=new re(""),GC=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=F(Hf)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return we(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let r=Xs(e.loadComponent()).pipe(je(l2),Kt(a=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=a}),Vr(()=>{this.componentLoaders.delete(e)})),o=new Af(r,()=>new ue).pipe(Fx());return this.componentLoaders.set(e,o),o}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return we({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let a=e3(r,this.compiler,e,this.onLoadEndListener).pipe(Vr(()=>{this.childrenLoaders.delete(r)})),c=new Af(a,()=>new ue).pipe(Fx());return this.childrenLoaders.set(r,c),c}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function e3(n,t,i,e){return Xs(n.loadChildren()).pipe(je(l2),lr(r=>r instanceof RM||Array.isArray(r)?we(r):Li(t.compileModuleAsync(r))),je(r=>{e&&e(n);let o,a,c=!1;return Array.isArray(r)?(a=r,c=!0):(o=r.create(i).injector,a=o.get(vm,[],{optional:!0,self:!0}).flat()),{routes:a.map(UC),injector:o}}))}function t3(n){return n&&typeof n=="object"&&"default"in n}function l2(n){return t3(n)?n.default:n}var $C=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=N({token:t,factory:()=>F(i3),providedIn:"root"});let n=t;return n})(),i3=(()=>{let t=class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),d2=new re(""),u2=new re("");function n3(n,t,i){let e=n.get(u2),r=n.get(ye);return n.get(be).runOutsideAngular(()=>{if(!r.startViewTransition||e.skipNextTransition)return e.skipNextTransition=!1,new Promise(x=>setTimeout(x));let o,a=new Promise(x=>{o=x}),c=r.startViewTransition(()=>(o(),r3(n))),{onViewTransitionCreated:m}=e;return m&&$o(n,()=>m({transition:c,from:t,to:i})),a})}function r3(n){return new Promise(t=>{Lx(t,{injector:n})})}var YC=(()=>{let t=class t{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=F(GC),this.environmentInjector=F(Go),this.urlSerializer=F(ym),this.rootContexts=F(wm),this.location=F(ja),this.inputBindingEnabled=F(fb,{optional:!0})!==null,this.titleStrategy=F(c2),this.options=F(Im,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=F($C),this.createViewTransition=F(d2,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>we(void 0),this.rootComponentType=null;let e=o=>this.events.next(new CC(o)),r=o=>this.events.next(new IC(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;this.transitions?.next(xt(ne(ne({},this.transitions.value),e),{id:r}))}setupNavigations(e,r,o){return this.transitions=new si({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:cm,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(et(a=>a.id!==0),je(a=>xt(ne({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),ki(a=>{let c=!1,m=!1;return we(a).pipe(ki(x=>{if(this.navigationId>a.id)return this.cancelNavigationTransition(a,"",pr.SupersededByNewNavigation),Or;this.currentTransition=a,this.currentNavigation={id:x.id,initialUrl:x.rawUrl,extractedUrl:x.extractedUrl,trigger:x.source,extras:x.extras,previousNavigation:this.lastSuccessfulNavigation?xt(ne({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let I=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),O=x.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!I&&O!=="reload"){let B="";return this.events.next(new Qs(x.id,this.urlSerializer.serialize(x.rawUrl),B,ab.IgnoredSameUrlNavigation)),x.resolve(null),Or}if(this.urlHandlingStrategy.shouldProcessUrl(x.rawUrl))return we(x).pipe(ki(B=>{let ae=this.transitions?.getValue();return this.events.next(new Qd(B.id,this.urlSerializer.serialize(B.extractedUrl),B.source,B.restoredState)),ae!==this.transitions?.getValue()?Or:Promise.resolve(B)}),qL(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Kt(B=>{a.targetSnapshot=B.targetSnapshot,a.urlAfterRedirects=B.urlAfterRedirects,this.currentNavigation=xt(ne({},this.currentNavigation),{finalUrl:B.urlAfterRedirects});let ae=new sb(B.id,this.urlSerializer.serialize(B.extractedUrl),this.urlSerializer.serialize(B.urlAfterRedirects),B.targetSnapshot);this.events.next(ae)}));if(I&&this.urlHandlingStrategy.shouldProcessUrl(x.currentRawUrl)){let{id:B,extractedUrl:ae,source:ee,restoredState:Se,extras:te}=x,ge=new Qd(B,this.urlSerializer.serialize(ae),ee,Se);this.events.next(ge);let $e=XA(this.rootComponentType).snapshot;return this.currentTransition=a=xt(ne({},x),{targetSnapshot:$e,urlAfterRedirects:ae,extras:xt(ne({},te),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=ae,we(a)}else{let B="";return this.events.next(new Qs(x.id,this.urlSerializer.serialize(x.extractedUrl),B,ab.IgnoredByUrlHandlingStrategy)),x.resolve(null),Or}}),Kt(x=>{let I=new _C(x.id,this.urlSerializer.serialize(x.extractedUrl),this.urlSerializer.serialize(x.urlAfterRedirects),x.targetSnapshot);this.events.next(I)}),je(x=>(this.currentTransition=a=xt(ne({},x),{guards:hL(x.targetSnapshot,x.currentSnapshot,this.rootContexts)}),a)),xL(this.environmentInjector,x=>this.events.next(x)),Kt(x=>{if(a.guardsResult=x.guardsResult,qd(x.guardsResult))throw t2(this.urlSerializer,x.guardsResult);let I=new yC(x.id,this.urlSerializer.serialize(x.extractedUrl),this.urlSerializer.serialize(x.urlAfterRedirects),x.targetSnapshot,!!x.guardsResult);this.events.next(I)}),et(x=>x.guardsResult?!0:(this.cancelNavigationTransition(x,"",pr.GuardRejected),!1)),mC(x=>{if(x.guards.canActivateChecks.length)return we(x).pipe(Kt(I=>{let O=new wC(I.id,this.urlSerializer.serialize(I.extractedUrl),this.urlSerializer.serialize(I.urlAfterRedirects),I.targetSnapshot);this.events.next(O)}),ki(I=>{let O=!1;return we(I).pipe(QL(this.paramsInheritanceStrategy,this.environmentInjector),Kt({next:()=>O=!0,complete:()=>{O||this.cancelNavigationTransition(I,"",pr.NoDataFromResolver)}}))}),Kt(I=>{let O=new xC(I.id,this.urlSerializer.serialize(I.extractedUrl),this.urlSerializer.serialize(I.urlAfterRedirects),I.targetSnapshot);this.events.next(O)}))}),mC(x=>{let I=O=>{let B=[];O.routeConfig?.loadComponent&&!O.routeConfig._loadedComponent&&B.push(this.configLoader.loadComponent(O.routeConfig).pipe(Kt(ae=>{O.component=ae}),je(()=>{})));for(let ae of O.children)B.push(...I(ae));return B};return Oa(I(x.targetSnapshot.root)).pipe(Px(null),gt(1))}),mC(()=>this.afterPreactivation()),ki(()=>{let{currentSnapshot:x,targetSnapshot:I}=a,O=this.createViewTransition?.(this.environmentInjector,x.root,I.root);return O?Li(O).pipe(je(()=>a)):we(a)}),je(x=>{let I=rL(e.routeReuseStrategy,x.targetSnapshot,x.currentRouterState);return this.currentTransition=a=xt(ne({},x),{targetRouterState:I}),this.currentNavigation.targetRouterState=I,a}),Kt(()=>{this.events.next(new mm)}),uL(this.rootContexts,e.routeReuseStrategy,x=>this.events.next(x),this.inputBindingEnabled),gt(1),Kt({next:x=>{c=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new yo(x.id,this.urlSerializer.serialize(x.extractedUrl),this.urlSerializer.serialize(x.urlAfterRedirects))),this.titleStrategy?.updateTitle(x.targetRouterState.snapshot),x.resolve(!0)},complete:()=>{c=!0}}),_e(this.transitionAbortSubject.pipe(Kt(x=>{throw x}))),Vr(()=>{!c&&!m&&this.cancelNavigationTransition(a,"",pr.SupersededByNewNavigation),this.currentTransition?.id===a.id&&(this.currentNavigation=null,this.currentTransition=null)}),Nr(x=>{if(m=!0,n2(x))this.events.next(new qs(a.id,this.urlSerializer.serialize(a.extractedUrl),x.message,x.cancellationCode)),sL(x)?this.events.next(new pm(x.url)):a.resolve(!1);else{this.events.next(new hm(a.id,this.urlSerializer.serialize(a.extractedUrl),x,a.targetSnapshot??void 0));try{a.resolve(e.errorHandler(x))}catch(I){this.options.resolveNavigationPromiseOnError?a.resolve(!1):a.reject(I)}}return Or}))}))}cancelNavigationTransition(e,r,o){let a=new qs(e.id,this.urlSerializer.serialize(e.extractedUrl),r,o);this.events.next(a),e.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}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function o3(n){return n!==cm}var a3=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=N({token:t,factory:()=>F(s3),providedIn:"root"});let n=t;return n})(),LC=class{shouldDetach(t){return!1}store(t,i){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,i){return t.routeConfig===i.routeConfig}},s3=(()=>{let t=class t extends LC{};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ge(t)))(o||t)}})(),t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),h2=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=N({token:t,factory:()=>F(c3),providedIn:"root"});let n=t;return n})(),c3=(()=>{let t=class t extends h2{constructor(){super(...arguments),this.location=F(ja),this.urlSerializer=F(ym),this.options=F(Im,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=F($C),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Ys,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=XA(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(e){return this.location.subscribe(r=>{r.type==="popstate"&&e(r.url,r.state)})}handleRouterEvent(e,r){if(e instanceof Qd)this.stateMemento=this.createStateMemento();else if(e instanceof Qs)this.rawUrlTree=r.initialUrl;else if(e instanceof sb){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(o,r)}}else e instanceof mm?(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))):e instanceof qs&&(e.code===pr.GuardRejected||e.code===pr.NoDataFromResolver)?this.restoreHistory(r):e instanceof hm?this.restoreHistory(r,!0):e instanceof yo&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,r){let o=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let a=this.browserPageId,c=ne(ne({},r.extras.state),this.generateNgRouterState(r.id,a));this.location.replaceState(o,"",c)}else{let a=ne(ne({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",a)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,a=this.currentPageId-o;a!==0?this.location.historyGo(a):this.currentUrlTree===e.finalUrl&&a===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ge(t)))(o||t)}})(),t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),am=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(am||{});function m2(n,t){n.events.pipe(et(i=>i instanceof yo||i instanceof qs||i instanceof hm||i instanceof Qs),je(i=>i instanceof yo||i instanceof Qs?am.COMPLETE:(i instanceof qs?i.code===pr.Redirect||i.code===pr.SupersededByNewNavigation:!1)?am.REDIRECTING:am.FAILED),et(i=>i!==am.REDIRECTING),gt(1)).subscribe(()=>{t()})}function l3(n){throw n}var d3={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},u3={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Gn=(()=>{let t=class t{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=F(Bf),this.stateManager=F(h2),this.options=F(Im,{optional:!0})||{},this.pendingTasks=F(Vf),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=F(YC),this.urlSerializer=F(ym),this.location=F(ja),this.urlHandlingStrategy=F($C),this._events=new ue,this.errorHandler=this.options.errorHandler||l3,this.navigated=!1,this.routeReuseStrategy=F(a3),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=F(vm,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!F(fb,{optional:!0}),this.eventsSubscription=new pt,this.isNgZoneEnabled=F(be)instanceof be&&be.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(o!==null&&a!==null){if(this.stateManager.handleRouterEvent(r,a),r instanceof qs&&r.code!==pr.Redirect&&r.code!==pr.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof yo)this.navigated=!0;else if(r instanceof pm){let c=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),m={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||o3(o.source)};this.scheduleNavigation(c,cm,null,m,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}m3(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),cm,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",r)},0)})}navigateToSyncWithBrowser(e,r,o){let a={replaceUrl:!0},c=o?.navigationId?o:null;if(o){let x=ne({},o);delete x.navigationId,delete x.\u0275routerPageId,Object.keys(x).length!==0&&(a.state=x)}let m=this.parseUrl(e);this.scheduleNavigation(m,r,c,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(UC),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(e,r={}){let{relativeTo:o,queryParams:a,fragment:c,queryParamsHandling:m,preserveFragment:x}=r,I=x?this.currentUrlTree.fragment:c,O=null;switch(m){case"merge":O=ne(ne({},this.currentUrlTree.queryParams),a);break;case"preserve":O=this.currentUrlTree.queryParams;break;default:O=a||null}O!==null&&(O=this.removeEmptyProps(O));let B;try{let ae=o?o.snapshot:this.routerState.snapshot.root;B=YA(ae)}catch{(typeof e[0]!="string"||!e[0].startsWith("/"))&&(e=[]),B=this.currentUrlTree.root}return qA(B,e,O,I??null)}navigateByUrl(e,r={skipLocationChange:!1}){let o=qd(e)?e:this.parseUrl(e),a=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(a,cm,null,r)}navigate(e,r={skipLocationChange:!1}){return h3(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,r){let o;if(r===!0?o=ne({},d3):r===!1?o=ne({},u3):o=r,qd(e))return TA(this.currentUrlTree,e,o);let a=this.parseUrl(e);return TA(this.currentUrlTree,a,o)}removeEmptyProps(e){return Object.entries(e).reduce((r,[o,a])=>(a!=null&&(r[o]=a),r),{})}scheduleNavigation(e,r,o,a,c){if(this.disposed)return Promise.resolve(!1);let m,x,I;c?(m=c.resolve,x=c.reject,I=c.promise):I=new Promise((B,ae)=>{m=B,x=ae});let O=this.pendingTasks.add();return m2(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(O))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:a,resolve:m,reject:x,promise:I,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),I.catch(B=>Promise.reject(B))}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function h3(n){for(let t=0;t<n.length;t++)if(n[t]==null)throw new Ct(4008,!1)}function m3(n){return!(n instanceof mm)&&!(n instanceof pm)}var pb=(()=>{let t=class t{constructor(e,r,o,a,c,m){this.router=e,this.route=r,this.tabIndexAttribute=o,this.renderer=a,this.el=c,this.locationStrategy=m,this.href=null,this.commands=null,this.onChanges=new ue,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let x=c.nativeElement.tagName?.toLowerCase();this.isAnchorElement=x==="a"||x==="area",this.isAnchorElement?this.subscription=e.events.subscribe(I=>{I instanceof yo&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){e!=null?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,r,o,a,c){let m=this.urlTree;if(m===null||this.isAnchorElement&&(e!==0||r||o||a||c||typeof this.target=="string"&&this.target!="_self"))return!0;let x={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(m,x),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let r=this.href===null?null:TM(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(e,r){let o=this.renderer,a=this.el.nativeElement;r!==null?o.setAttribute(a,e,r):o.removeAttribute(a,e)}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})}};t.\u0275fac=function(r){return new(r||t)(l(Gn),l(Ks),Bi("tabindex"),l(zt),l(P),l($h))},t.\u0275dir=J({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&&A("click",function(c){return o.onClick(c.button,c.ctrlKey,c.shiftKey,c.altKey,c.metaKey)}),r&2&&De("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[z.HasDecoratorInputTransform,"preserveFragment","preserveFragment",xe],skipLocationChange:[z.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",xe],replaceUrl:[z.HasDecoratorInputTransform,"replaceUrl","replaceUrl",xe],routerLink:"routerLink"},standalone:!0,features:[ct,he]});let n=t;return n})(),p2=(()=>{let t=class t{get isActive(){return this._isActive}constructor(e,r,o,a,c){this.router=e,this.element=r,this.renderer=o,this.cdr=a,this.link=c,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new Y,this.routerEventsSubscription=e.events.subscribe(m=>{m instanceof yo&&this.update()})}ngAfterContentInit(){we(this.links.changes,we(null)).pipe(Nh()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=Li(e).pipe(Nh()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&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!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let r=p3(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let a=o.urlTree;return a?e.isActive(a,r):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}};t.\u0275fac=function(r){return new(r||t)(l(Gn),l(P),l(zt),l(ce),l(pb,8))},t.\u0275dir=J({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,o,a){if(r&1&&Ht(a,pb,5),r&2){let c;G(c=$())&&(o.links=c)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[he]});let n=t;return n})();function p3(n){return!!n.paths}var gb=class{};var g3=(()=>{let t=class t{constructor(e,r,o,a,c){this.router=e,this.injector=o,this.preloadingStrategy=a,this.loader=c}setUpPreloading(){this.subscription=this.router.events.pipe(et(e=>e instanceof yo),Ps(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){let o=[];for(let a of r){a.providers&&!a._injector&&(a._injector=zx(a.providers,e,`Route: ${a.path}`));let c=a._injector??e,m=a._loadedInjector??c;(a.loadChildren&&!a._loadedRoutes&&a.canLoad===void 0||a.loadComponent&&!a._loadedComponent)&&o.push(this.preloadConfig(c,a)),(a.children||a._loadedRoutes)&&o.push(this.processRoutes(m,a.children??a._loadedRoutes))}return Li(o).pipe(Nh())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let o;r.loadChildren&&r.canLoad===void 0?o=this.loader.loadChildren(e,r):o=we(null);let a=o.pipe(lr(c=>c===null?we(void 0):(r._loadedRoutes=c.routes,r._loadedInjector=c.injector,this.processRoutes(c.injector??e,c.routes))));if(r.loadComponent&&!r._loadedComponent){let c=this.loader.loadComponent(r);return Li([a,c]).pipe(Nh())}else return a})}};t.\u0275fac=function(r){return new(r||t)(k(Gn),k(Hf),k(Go),k(gb),k(GC))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),g2=new re(""),f3=(()=>{let t=class t{constructor(e,r,o,a,c={}){this.urlSerializer=e,this.transitions=r,this.viewportScroller=o,this.zone=a,this.options=c,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=F(Go),c.scrollPositionRestoration||="disabled",c.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(e=>{e instanceof Qd?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof yo?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Qs&&e.code===ab.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof cb&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,r){this.zone.runOutsideAngular(()=>yt(this,null,function*(){yield new Promise(o=>{setTimeout(()=>{o()}),Lx(()=>{o()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new cb(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};t.\u0275fac=function(r){zs()},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})();function f2(n,...t){return Ls([{provide:vm,multi:!0,useValue:n},[],{provide:Ks,useFactory:b2,deps:[Gn]},{provide:Gh,multi:!0,useFactory:v2},t.map(i=>i.\u0275providers)])}function b2(n){return n.routerState.root}function km(n,t){return{\u0275kind:n,\u0275providers:t}}function v2(){let n=F(Pe);return t=>{let i=n.get(Ui);if(t!==i.components[0])return;let e=n.get(Gn),r=n.get(_2);n.get(qC)===1&&e.initialNavigation(),n.get(y2,null,jx.Optional)?.setUpPreloading(),n.get(g2,null,jx.Optional)?.init(),e.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var _2=new re("",{factory:()=>new ue}),qC=new re("",{providedIn:"root",factory:()=>1});function b3(){return km(2,[{provide:qC,useValue:0},{provide:Ux,multi:!0,deps:[Pe],useFactory:t=>{let i=t.get(UM,Promise.resolve());return()=>i.then(()=>new Promise(e=>{let r=t.get(Gn),o=t.get(_2);m2(r,()=>{e(!0)}),t.get(YC).afterPreactivation=()=>(e(!0),o.closed?we(void 0):o),r.initialNavigation()}))}}])}function v3(){return km(3,[{provide:Ux,multi:!0,useFactory:()=>{let t=F(Gn);return()=>{t.setUpLocationChangeListener()}}},{provide:qC,useValue:2}])}var y2=new re("");function _3(n){return km(0,[{provide:y2,useExisting:g3},{provide:gb,useExisting:n}])}function y3(){return km(8,[FA,{provide:fb,useExisting:FA}])}function w3(n){let t=[{provide:d2,useValue:n3},{provide:u2,useValue:ne({skipNextTransition:!!n?.skipInitialTransition},n)}];return km(9,t)}var PA=new re("ROUTER_FORROOT_GUARD"),x3=[ja,{provide:ym,useClass:dm},Gn,wm,{provide:Ks,useFactory:b2,deps:[Gn]},GC,[]],w2=(()=>{let t=class t{constructor(e){}static forRoot(e,r){return{ngModule:t,providers:[x3,[],{provide:vm,multi:!0,useValue:e},{provide:PA,useFactory:D3,deps:[[Gn,new js,new Xc]]},{provide:Im,useValue:r||{}},r?.useHash?I3():k3(),C3(),r?.preloadingStrategy?_3(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?S3(r):[],r?.bindToComponentInputs?y3().\u0275providers:[],r?.enableViewTransitions?w3().\u0275providers:[],E3()]}}static forChild(e){return{ngModule:t,providers:[{provide:vm,multi:!0,useValue:e}]}}};t.\u0275fac=function(r){return new(r||t)(k(PA,8))},t.\u0275mod=X({type:t}),t.\u0275inj=K({});let n=t;return n})();function C3(){return{provide:g2,useFactory:()=>{let n=F(KM),t=F(be),i=F(Im),e=F(YC),r=F(ym);return i.scrollOffset&&n.setOffset(i.scrollOffset),new f3(r,e,n,t,i)}}}function I3(){return{provide:$h,useClass:$M}}function k3(){return{provide:$h,useClass:GM}}function D3(n){return"guarded"}function S3(n){return[n.initialNavigation==="disabled"?v3().\u0275providers:[],n.initialNavigation==="enabledBlocking"?b3().\u0275providers:[]]}var NA=new re("");function E3(){return[{provide:NA,useFactory:v2},{provide:Gh,multi:!0,useExisting:NA}]}var Zd=(()=>{let t=class t{constructor(){this._buttons={}}get buttons(){return this._buttons}setVisibility(e,r){let o=this._buttons[e];if(r&&!o.isVisible){o.isVisible=!0;return}!r&&o.isVisible&&(o.isVisible=!1)}setVisibleOnly(...e){let r=e.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 e in this._buttons)if(this._buttons[e].isVisible)return!0;return!1}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var vb,M3=new Uint8Array(16);function KC(){if(!vb&&(vb=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!vb))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return vb(M3)}var x2=/^(?:[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 A3(n){return typeof n=="string"&&x2.test(n)}var C2=A3;var an=[];for(_b=0;_b<256;++_b)an.push((_b+256).toString(16).substr(1));var _b;function R3(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=(an[n[t+0]]+an[n[t+1]]+an[n[t+2]]+an[n[t+3]]+"-"+an[n[t+4]]+an[n[t+5]]+"-"+an[n[t+6]]+an[n[t+7]]+"-"+an[n[t+8]]+an[n[t+9]]+"-"+an[n[t+10]]+an[n[t+11]]+an[n[t+12]]+an[n[t+13]]+an[n[t+14]]+an[n[t+15]]).toLowerCase();if(!C2(i))throw TypeError("Stringified UUID is invalid");return i}var I2=R3;function F3(n,t,i){n=n||{};var e=n.random||(n.rng||KC)();if(e[6]=e[6]&15|64,e[8]=e[8]&63|128,t){i=i||0;for(var r=0;r<16;++r)t[i+r]=e[r];return t}return I2(e)}var XC=F3;var $n=class{constructor(){this.id=XC().toString(),this.isVisible=!0;let t=F(Zd);t.buttons[this.id]=this}};var k2=rn(Mn());var Zs=(()=>{let t=class t extends $n{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(e,r){let o=this.async_actions.hasOwnProperty(e);this.async_actions[e]=r,o||this.executeCountChangeListeners()}set(e,r){let o=this.actions.hasOwnProperty(e);this.actions[e]=r,o||this.executeCountChangeListeners()}removeAll(){this.any&&(this.async_actions={},this.actions={},this.executeCountChangeListeners())}executeAllAsync(){return yt(this,null,function*(){let e={err:0,succ:0,get all(){return this.err+this.succ}};yield Promise.all(Object.values(this.async_actions).map(r=>r().then(()=>e.succ+=1).catch(()=>e.err+=1))).then(()=>{e.err>0&&k2.default.fire({icon:"info",title:"Verarbeitungsfehler",text:`Von ${e.all} Aktualisierungen wurden ${e.succ} erfolgreich durchgef\xFChrt, ${e.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(e=>e())}addChangeListener(e,r){switch(e){case yb.CountChange:this.countChangeListeners.push(r);break}}removeAllChangeListeners(){this.countChangeListeners=[]}get isEditable(){return this._isEditable}set isEditable(e){typeof window<"u"&&localStorage.setItem("editable",e?"T":"F"),this._isEditable=e}toggleEditability(){this.isEditable=!this.isEditable}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ge(t)))(o||t)}})(),t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),yb=function(n){return n[n.CountChange=0]="CountChange",n}(yb||{});var bn=(()=>{let t=class t extends $n{constructor(e){super(),this.updateService=e,this.actions=[]}add(e){this.actions.push(e)}removeAll(){this.actions=[]}executeAll(){this.actions.forEach(e=>e()),this.updateService.removeAll()}};t.\u0275fac=function(r){return new(r||t)(k(Zs))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function gr(n){return n!=null&&`${n}`!="false"}function wo(n,t=0){return O3(n)?Number(n):t}function O3(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function eu(n){return Array.isArray(n)?n:[n]}function gi(n){return n==null?"":typeof n=="string"?n:`${n}px`}function Yn(n){return n instanceof P?n.nativeElement:n}function S2(n,t=/\s+/){let i=[];if(n!=null){let e=Array.isArray(n)?n:`${n}`.split(t);for(let r of e){let o=`${r}`.trim();o&&i.push(o)}}return i}var eI;try{eI=typeof Intl<"u"&&Intl.v8BreakIterator}catch{eI=!1}var Qe=(()=>{let t=class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Hn(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||eI)&&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}};t.\u0275fac=function(r){return new(r||t)(k(Xt))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var tu,E2=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function tI(){if(tu)return tu;if(typeof document!="object"||!document)return tu=new Set(E2),tu;let n=document.createElement("input");return tu=new Set(E2.filter(t=>(n.setAttribute("type",t),n.type===t))),tu}var Dm;function P3(){if(Dm==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Dm=!0}))}finally{Dm=Dm||!1}return Dm}function vn(n){return P3()?n:!!n.capture}var xo=function(n){return n[n.NORMAL=0]="NORMAL",n[n.NEGATED=1]="NEGATED",n[n.INVERTED=2]="INVERTED",n}(xo||{}),wb,ol;function xb(){if(ol==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return ol=!1,ol;if("scrollBehavior"in document.documentElement.style)ol=!0;else{let n=Element.prototype.scrollTo;n?ol=!/\{\s*\[native code\]\s*\}/.test(n.toString()):ol=!1}}return ol}function iu(){if(typeof document!="object"||!document)return xo.NORMAL;if(wb==null){let n=document.createElement("div"),t=n.style;n.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";let i=document.createElement("div"),e=i.style;e.width="2px",e.height="1px",n.appendChild(i),document.body.appendChild(n),wb=xo.NORMAL,n.scrollLeft===0&&(n.scrollLeft=1,wb=n.scrollLeft===0?xo.NEGATED:xo.INVERTED),n.remove()}return wb}var JC;function N3(){if(JC==null){let n=typeof document<"u"?document.head:null;JC=!!(n&&(n.createShadowRoot||n.attachShadow))}return JC}function T2(n){if(N3()){let t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Js(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){let t=n.shadowRoot.activeElement;if(t===n)break;n=t}return n}function Hr(n){return n.composedPath?n.composedPath()[0]:n.target}function Sm(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var V3=new re("cdk-dir-doc",{providedIn:"root",factory:j3});function j3(){return F(ye)}var L3=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function B3(n){let t=n?.toLowerCase()||"";return t==="auto"&&typeof navigator<"u"&&navigator?.language?L3.test(navigator.language)?"rtl":"ltr":t==="rtl"?"rtl":"ltr"}var Yt=(()=>{let t=class t{constructor(e){if(this.value="ltr",this.change=new Y,e){let r=e.body?e.body.dir:null,o=e.documentElement?e.documentElement.dir:null;this.value=B3(r||o||"ltr")}}ngOnDestroy(){this.change.complete()}};t.\u0275fac=function(r){return new(r||t)(k(V3,8))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var ec=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=X({type:t}),t.\u0275inj=K({});let n=t;return n})();var Cb=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(t=!1,i,e=!0,r){this._multiple=t,this._emitChanges=e,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new ue,i&&i.length&&(t?i.forEach(o=>this._markSelected(o)):this._markSelected(i[0]),this._selectedToEmit.length=0)}select(...t){this._verifyValueAssignment(t),t.forEach(e=>this._markSelected(e));let i=this._hasQueuedChanges();return this._emitChangeEvent(),i}deselect(...t){this._verifyValueAssignment(t),t.forEach(e=>this._unmarkSelected(e));let i=this._hasQueuedChanges();return this._emitChangeEvent(),i}setSelection(...t){this._verifyValueAssignment(t);let i=this.selected,e=new Set(t);t.forEach(o=>this._markSelected(o)),i.filter(o=>!e.has(this._getConcreteValue(o,e))).forEach(o=>this._unmarkSelected(o));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(t){return this.isSelected(t)?this.deselect(t):this.select(t)}clear(t=!0){this._unmarkAll();let i=this._hasQueuedChanges();return t&&this._emitChangeEvent(),i}isSelected(t){return this._selection.has(this._getConcreteValue(t))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){t=this._getConcreteValue(t),this.isSelected(t)||(this._multiple||this._unmarkAll(),this.isSelected(t)||this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){t=this._getConcreteValue(t),this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){t.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(t,i){if(this.compareWith){i=i??this._selection;for(let e of i)if(this.compareWith(t,e))return e;return t}else return t}};var z3=20,nu=(()=>{let t=class t{constructor(e,r,o){this._ngZone=e,this._platform=r,this._scrolled=new ue,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let r=this.scrollContainers.get(e);r&&(r.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=z3){return this._platform.isBrowser?new Lt(r=>{this._globalSubscription||this._addGlobalListener();let o=e>0?this._scrolled.pipe(Ox(e)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):we()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(e,r){let o=this.getAncestorScrollContainers(e);return this.scrolled(r).pipe(et(a=>!a||o.indexOf(a)>-1))}getAncestorScrollContainers(e){let r=[];return this.scrollContainers.forEach((o,a)=>{this._scrollableContainsElement(a,e)&&r.push(a)}),r}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,r){let o=Yn(r),a=e.getElementRef().nativeElement;do if(o==a)return!0;while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let e=this._getWindow();return Bn(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};t.\u0275fac=function(r){return new(r||t)(k(be),k(Qe),k(ye,8))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),iI=(()=>{let t=class t{constructor(e,r,o,a){this.elementRef=e,this.scrollDispatcher=r,this.ngZone=o,this.dir=a,this._destroyed=new ue,this._elementScrolled=new Lt(c=>this.ngZone.runOutsideAngular(()=>Bn(this.elementRef.nativeElement,"scroll").pipe(_e(this._destroyed)).subscribe(c)))}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(e){let r=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=o?e.end:e.start),e.right==null&&(e.right=o?e.start:e.end),e.bottom!=null&&(e.top=r.scrollHeight-r.clientHeight-e.bottom),o&&iu()!=xo.NORMAL?(e.left!=null&&(e.right=r.scrollWidth-r.clientWidth-e.left),iu()==xo.INVERTED?e.left=e.right:iu()==xo.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=r.scrollWidth-r.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let r=this.elementRef.nativeElement;xb()?r.scrollTo(e):(e.top!=null&&(r.scrollTop=e.top),e.left!=null&&(r.scrollLeft=e.left))}measureScrollOffset(e){let r="left",o="right",a=this.elementRef.nativeElement;if(e=="top")return a.scrollTop;if(e=="bottom")return a.scrollHeight-a.clientHeight-a.scrollTop;let c=this.dir&&this.dir.value=="rtl";return e=="start"?e=c?o:r:e=="end"&&(e=c?r:o),c&&iu()==xo.INVERTED?e==r?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft:c&&iu()==xo.NEGATED?e==r?a.scrollLeft+a.scrollWidth-a.clientWidth:-a.scrollLeft:e==r?a.scrollLeft:a.scrollWidth-a.clientWidth-a.scrollLeft}};t.\u0275fac=function(r){return new(r||t)(l(P),l(nu),l(be),l(Yt,8))},t.\u0275dir=J({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0});let n=t;return n})(),H3=20,La=(()=>{let t=class t{constructor(e,r,o){this._platform=e,this._change=new ue,this._changeListener=a=>{this._change.next(a)},this._document=o,r.runOutsideAngular(()=>{if(e.isBrowser){let a=this._getWindow();a.addEventListener("resize",this._changeListener),a.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:r,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+r,height:o,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,r=this._getWindow(),o=e.documentElement,a=o.getBoundingClientRect(),c=-a.top||e.body.scrollTop||r.scrollY||o.scrollTop||0,m=-a.left||e.body.scrollLeft||r.scrollX||o.scrollLeft||0;return{top:c,left:m}}change(e=H3){return e>0?this._change.pipe(Ox(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}};t.\u0275fac=function(r){return new(r||t)(k(Qe),k(be),k(ye,8))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var tc=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=X({type:t}),t.\u0275inj=K({});let n=t;return n})(),nI=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=X({type:t}),t.\u0275inj=K({imports:[ec,tc,ec,tc]});let n=t;return n})();var Em=class{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;t!=null&&(this._attachedHost=null,t.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(t){this._attachedHost=t}},Io=class extends Em{constructor(t,i,e,r,o){super(),this.component=t,this.viewContainerRef=i,this.injector=e,this.componentFactoryResolver=r,this.projectableNodes=o}},ko=class extends Em{constructor(t,i,e,r){super(),this.templateRef=t,this.viewContainerRef=i,this.context=e,this.injector=r}get origin(){return this.templateRef.elementRef}attach(t,i=this.context){return this.context=i,super.attach(t)}detach(){return this.context=void 0,super.detach()}},oI=class extends Em{constructor(t){super(),this.element=t instanceof P?t.nativeElement:t}},ru=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){if(t instanceof Io)return this._attachedPortal=t,this.attachComponentPortal(t);if(t instanceof ko)return this._attachedPortal=t,this.attachTemplatePortal(t);if(this.attachDomPortal&&t instanceof oI)return this._attachedPortal=t,this.attachDomPortal(t)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var Ib=class extends ru{constructor(t,i,e,r,o){super(),this.outletElement=t,this._componentFactoryResolver=i,this._appRef=e,this._defaultInjector=r,this.attachDomPortal=a=>{this._document;let c=a.element;c.parentNode;let m=this._document.createComment("dom-portal");c.parentNode.insertBefore(m,c),this.outletElement.appendChild(c),this._attachedPortal=a,super.setDisposeFn(()=>{m.parentNode&&m.parentNode.replaceChild(c,m)})},this._document=o}attachComponentPortal(t){let e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector,t.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=e.create(t.injector||this._defaultInjector||Pe.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=t,r}attachTemplatePortal(t){let i=t.viewContainerRef,e=i.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return e.rootNodes.forEach(r=>this.outletElement.appendChild(r)),e.detectChanges(),this.setDisposeFn(()=>{let r=i.indexOf(e);r!==-1&&i.remove(r)}),this._attachedPortal=t,e}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}};var M2=(()=>{let t=class t extends ko{constructor(e,r){super(e,r)}};t.\u0275fac=function(r){return new(r||t)(l(tt),l(ri))},t.\u0275dir=J({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],standalone:!0,features:[L]});let n=t;return n})();var qn=(()=>{let t=class t extends ru{constructor(e,r,o){super(),this._componentFactoryResolver=e,this._viewContainerRef=r,this._isInitialized=!1,this.attached=new Y,this.attachDomPortal=a=>{this._document;let c=a.element;c.parentNode;let m=this._document.createComment("dom-portal");a.setAttachedHost(this),c.parentNode.insertBefore(m,c),this._getRootNode().appendChild(c),this._attachedPortal=a,super.setDisposeFn(()=>{m.parentNode&&m.parentNode.replaceChild(c,m)})},this._document=o}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let r=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,a=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),c=r.createComponent(a,r.length,e.injector||r.injector,e.projectableNodes||void 0);return r!==this._viewContainerRef&&this._getRootNode().appendChild(c.hostView.rootNodes[0]),super.setDisposeFn(()=>c.destroy()),this._attachedPortal=e,this._attachedRef=c,this.attached.emit(c),c}attachTemplatePortal(e){e.setAttachedHost(this);let r=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}};t.\u0275fac=function(r){return new(r||t)(l(Bt),l(ri),l(ye))},t.\u0275dir=J({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[z.None,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[L]});let n=t;return n})();var ta=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=X({type:t}),t.\u0275inj=K({});let n=t;return n})();function Ut(n,...t){return t.length?t.some(i=>n[i]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}var A2=xb(),aI=class{constructor(t,i){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=i}attach(){}enable(){if(this._canBeEnabled()){let t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=gi(-this._previousScrollPosition.left),t.style.top=gi(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let t=this._document.documentElement,i=this._document.body,e=t.style,r=i.style,o=e.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),A2&&(e.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),A2&&(e.scrollBehavior=o,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let i=this._document.body,e=this._viewportRuler.getViewportSize();return i.scrollHeight>e.height||i.scrollWidth>e.width}};var sI=class{constructor(t,i,e,r){this._scrollDispatcher=t,this._ngZone=i,this._viewportRuler=e,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(this._scrollSubscription)return;let t=this._scrollDispatcher.scrolled(0).pipe(et(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=t.subscribe(()=>{let i=this._viewportRuler.getViewportScrollPosition().top;Math.abs(i-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},kb=class{enable(){}disable(){}attach(){}};function cI(n,t){return t.some(i=>{let e=n.bottom<i.top,r=n.top>i.bottom,o=n.right<i.left,a=n.left>i.right;return e||r||o||a})}function R2(n,t){return t.some(i=>{let e=n.top<i.top,r=n.bottom>i.bottom,o=n.left<i.left,a=n.right>i.right;return e||r||o||a})}var lI=class{constructor(t,i,e,r){this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=e,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(!this._scrollSubscription){let t=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(t).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let i=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:r}=this._viewportRuler.getViewportSize();cI(i,[{width:e,height:r,bottom:r,right:e,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}},U3=(()=>{let t=class t{constructor(e,r,o,a){this._scrollDispatcher=e,this._viewportRuler=r,this._ngZone=o,this.noop=()=>new kb,this.close=c=>new sI(this._scrollDispatcher,this._ngZone,this._viewportRuler,c),this.block=()=>new aI(this._viewportRuler,this._document),this.reposition=c=>new lI(this._scrollDispatcher,this._viewportRuler,this._ngZone,c),this._document=a}};t.\u0275fac=function(r){return new(r||t)(k(nu),k(La),k(be),k(ye))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),ic=class{constructor(t){if(this.scrollStrategy=new kb,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){let i=Object.keys(t);for(let e of i)t[e]!==void 0&&(this[e]=t[e])}}};var dI=class{constructor(t,i){this.connectionPair=t,this.scrollableViewProperties=i}};var V2=(()=>{let t=class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let r=this._attachedOverlays.indexOf(e);r>-1&&this._attachedOverlays.splice(r,1),this._attachedOverlays.length===0&&this.detach()}};t.\u0275fac=function(r){return new(r||t)(k(ye))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),W3=(()=>{let t=class t extends V2{constructor(e,r){super(e),this._ngZone=r,this._keydownListener=o=>{let a=this._attachedOverlays;for(let c=a.length-1;c>-1;c--)if(a[c]._keydownEvents.observers.length>0){let m=a[c]._keydownEvents;this._ngZone?this._ngZone.run(()=>m.next(o)):m.next(o);break}}}add(e){super.add(e),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)}};t.\u0275fac=function(r){return new(r||t)(k(ye),k(be,8))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),G3=(()=>{let t=class t extends V2{constructor(e,r,o){super(e),this._platform=r,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=a=>{this._pointerDownEventTarget=Hr(a)},this._clickListener=a=>{let c=Hr(a),m=a.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:c;this._pointerDownEventTarget=null;let x=this._attachedOverlays.slice();for(let I=x.length-1;I>-1;I--){let O=x[I];if(O._outsidePointerEvents.observers.length<1||!O.hasAttached())continue;if(O.overlayElement.contains(c)||O.overlayElement.contains(m))break;let B=O._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>B.next(a)):B.next(a)}}}add(e){if(super.add(e),!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 e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}};t.\u0275fac=function(r){return new(r||t)(k(ye),k(Qe),k(be,8))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),ou=(()=>{let t=class t{constructor(e,r){this._platform=r,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||Sm()){let o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let a=0;a<o.length;a++)o[a].remove()}let r=this._document.createElement("div");r.classList.add(e),Sm()?r.setAttribute("platform","test"):this._platform.isBrowser||r.setAttribute("platform","server"),this._document.body.appendChild(r),this._containerElement=r}};t.\u0275fac=function(r){return new(r||t)(k(ye),k(Qe))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Do=class{constructor(t,i,e,r,o,a,c,m,x,I=!1){this._portalOutlet=t,this._host=i,this._pane=e,this._config=r,this._ngZone=o,this._keyboardDispatcher=a,this._document=c,this._location=m,this._outsideClickDispatcher=x,this._animationsDisabled=I,this._backdropElement=null,this._backdropClick=new ue,this._attachments=new ue,this._detachments=new ue,this._locationChanges=pt.EMPTY,this._backdropClickHandler=O=>this._backdropClick.next(O),this._backdropTransitionendHandler=O=>{this._disposeBackdrop(O.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(t){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let i=this._portalOutlet.attach(t);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 t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){let t=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,t&&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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=ne(ne({},this._config),t),this._updateElementSize()}setDirection(t){this._config=xt(ne({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){let t=this._config.direction;return t?typeof t=="string"?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let t=this._pane.style;t.width=gi(this._config.width),t.height=gi(this._config.height),t.minWidth=gi(this._config.minWidth),t.minHeight=gi(this._config.minHeight),t.maxWidth=gi(this._config.maxWidth),t.maxHeight=gi(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){let t="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(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t=this._backdropElement;if(t){if(this._animationsDisabled){this._disposeBackdrop(t);return}t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",this._backdropTransitionendHandler)}),t.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(t)},500))}}_toggleClasses(t,i,e){let r=eu(i||[]).filter(o=>!!o);r.length&&(e?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{let t=this._ngZone.onStable.pipe(_e(St(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()),t.unsubscribe())})})}_disposeScrollStrategy(){let t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",this._backdropTransitionendHandler),t.remove(),this._backdropElement===t&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},F2="cdk-overlay-connected-position-bounding-box",$3=/([A-Za-z%]+)$/,Tm=class{get positions(){return this._preferredPositions}constructor(t,i,e,r,o){this._viewportRuler=i,this._document=e,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=pt.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}attach(t){this._overlayRef&&this._overlayRef,this._validatePositions(),t.hostElement.classList.add(F2),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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 t=this._originRect,i=this._overlayRect,e=this._viewportRect,r=this._containerRect,o=[],a;for(let c of this._preferredPositions){let m=this._getOriginPoint(t,r,c),x=this._getOverlayPoint(m,i,c),I=this._getOverlayFit(x,i,e,c);if(I.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(c,m);return}if(this._canFitWithFlexibleDimensions(I,x,e)){o.push({position:c,origin:m,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(m,c)});continue}(!a||a.overlayFit.visibleArea<I.visibleArea)&&(a={overlayFit:I,overlayPoint:x,originPoint:m,position:c,overlayRect:i})}if(o.length){let c=null,m=-1;for(let x of o){let I=x.boundingBoxRect.width*x.boundingBoxRect.height*(x.position.weight||1);I>m&&(m=I,c=x)}this._isPushed=!1,this._applyPosition(c.position,c.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&sl(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(F2),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let t=this._lastPosition;if(t){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,t);this._applyPosition(t,i)}else this.apply()}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,t.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,i,e){let r;if(e.originX=="center")r=t.left+t.width/2;else{let a=this._isRtl()?t.right:t.left,c=this._isRtl()?t.left:t.right;r=e.originX=="start"?a:c}i.left<0&&(r-=i.left);let o;return e.originY=="center"?o=t.top+t.height/2:o=e.originY=="top"?t.top:t.bottom,i.top<0&&(o-=i.top),{x:r,y:o}}_getOverlayPoint(t,i,e){let r;e.overlayX=="center"?r=-i.width/2:e.overlayX==="start"?r=this._isRtl()?-i.width:0:r=this._isRtl()?0:-i.width;let o;return e.overlayY=="center"?o=-i.height/2:o=e.overlayY=="top"?0:-i.height,{x:t.x+r,y:t.y+o}}_getOverlayFit(t,i,e,r){let o=P2(i),{x:a,y:c}=t,m=this._getOffset(r,"x"),x=this._getOffset(r,"y");m&&(a+=m),x&&(c+=x);let I=0-a,O=a+o.width-e.width,B=0-c,ae=c+o.height-e.height,ee=this._subtractOverflows(o.width,I,O),Se=this._subtractOverflows(o.height,B,ae),te=ee*Se;return{visibleArea:te,isCompletelyWithinViewport:o.width*o.height===te,fitsInViewportVertically:Se===o.height,fitsInViewportHorizontally:ee==o.width}}_canFitWithFlexibleDimensions(t,i,e){if(this._hasFlexibleDimensions){let r=e.bottom-i.y,o=e.right-i.x,a=O2(this._overlayRef.getConfig().minHeight),c=O2(this._overlayRef.getConfig().minWidth),m=t.fitsInViewportVertically||a!=null&&a<=r,x=t.fitsInViewportHorizontally||c!=null&&c<=o;return m&&x}return!1}_pushOverlayOnScreen(t,i,e){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};let r=P2(i),o=this._viewportRect,a=Math.max(t.x+r.width-o.width,0),c=Math.max(t.y+r.height-o.height,0),m=Math.max(o.top-e.top-t.y,0),x=Math.max(o.left-e.left-t.x,0),I=0,O=0;return r.width<=o.width?I=x||-a:I=t.x<this._viewportMargin?o.left-e.left-t.x:0,r.height<=o.height?O=m||-c:O=t.y<this._viewportMargin?o.top-e.top-t.y:0,this._previousPushAmount={x:I,y:O},{x:t.x+I,y:t.y+O}}_applyPosition(t,i){if(this._setTransformOrigin(t),this._setOverlayElementStyles(i,t),this._setBoundingBoxStyles(i,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._positionChanges.observers.length){let e=this._getScrollVisibility();if(t!==this._lastPosition||!this._lastScrollVisibility||!Y3(this._lastScrollVisibility,e)){let r=new dI(t,e);this._positionChanges.next(r)}this._lastScrollVisibility=e}this._lastPosition=t,this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;let i=this._boundingBox.querySelectorAll(this._transformOriginSelector),e,r=t.overlayY;t.overlayX==="center"?e="center":this._isRtl()?e=t.overlayX==="start"?"right":"left":e=t.overlayX==="start"?"left":"right";for(let o=0;o<i.length;o++)i[o].style.transformOrigin=`${e} ${r}`}_calculateBoundingBoxRect(t,i){let e=this._viewportRect,r=this._isRtl(),o,a,c;if(i.overlayY==="top")a=t.y,o=e.height-a+this._viewportMargin;else if(i.overlayY==="bottom")c=e.height-t.y+this._viewportMargin*2,o=e.height-c+this._viewportMargin;else{let ae=Math.min(e.bottom-t.y+e.top,t.y),ee=this._lastBoundingBoxSize.height;o=ae*2,a=t.y-ae,o>ee&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.y-ee/2)}let m=i.overlayX==="start"&&!r||i.overlayX==="end"&&r,x=i.overlayX==="end"&&!r||i.overlayX==="start"&&r,I,O,B;if(x)B=e.width-t.x+this._viewportMargin*2,I=t.x-this._viewportMargin;else if(m)O=t.x,I=e.right-t.x;else{let ae=Math.min(e.right-t.x+e.left,t.x),ee=this._lastBoundingBoxSize.width;I=ae*2,O=t.x-ae,I>ee&&!this._isInitialRender&&!this._growAfterOpen&&(O=t.x-ee/2)}return{top:a,left:O,bottom:c,right:B,width:I,height:o}}_setBoundingBoxStyles(t,i){let e=this._calculateBoundingBoxRect(t,i);!this._isInitialRender&&!this._growAfterOpen&&(e.height=Math.min(e.height,this._lastBoundingBoxSize.height),e.width=Math.min(e.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,a=this._overlayRef.getConfig().maxWidth;r.height=gi(e.height),r.top=gi(e.top),r.bottom=gi(e.bottom),r.width=gi(e.width),r.left=gi(e.left),r.right=gi(e.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=gi(o)),a&&(r.maxWidth=gi(a))}this._lastBoundingBoxSize=e,sl(this._boundingBox.style,r)}_resetBoundingBoxStyles(){sl(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){sl(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,i){let e={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){let I=this._viewportRuler.getViewportScrollPosition();sl(e,this._getExactOverlayY(i,t,I)),sl(e,this._getExactOverlayX(i,t,I))}else e.position="static";let c="",m=this._getOffset(i,"x"),x=this._getOffset(i,"y");m&&(c+=`translateX(${m}px) `),x&&(c+=`translateY(${x}px)`),e.transform=c.trim(),a.maxHeight&&(r?e.maxHeight=gi(a.maxHeight):o&&(e.maxHeight="")),a.maxWidth&&(r?e.maxWidth=gi(a.maxWidth):o&&(e.maxWidth="")),sl(this._pane.style,e)}_getExactOverlayY(t,i,e){let r={top:"",bottom:""},o=this._getOverlayPoint(i,this._overlayRect,t);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,e)),t.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;r.bottom=`${a-(o.y+this._overlayRect.height)}px`}else r.top=gi(o.y);return r}_getExactOverlayX(t,i,e){let r={left:"",right:""},o=this._getOverlayPoint(i,this._overlayRect,t);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,e));let a;if(this._isRtl()?a=t.overlayX==="end"?"left":"right":a=t.overlayX==="end"?"right":"left",a==="right"){let c=this._document.documentElement.clientWidth;r.right=`${c-(o.x+this._overlayRect.width)}px`}else r.left=gi(o.x);return r}_getScrollVisibility(){let t=this._getOriginRect(),i=this._pane.getBoundingClientRect(),e=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:R2(t,e),isOriginOutsideView:cI(t,e),isOverlayClipped:R2(i,e),isOverlayOutsideView:cI(i,e)}}_subtractOverflows(t,...i){return i.reduce((e,r)=>e-Math.max(r,0),t)}_getNarrowedViewportRect(){let t=this._document.documentElement.clientWidth,i=this._document.documentElement.clientHeight,e=this._viewportRuler.getViewportScrollPosition();return{top:e.top+this._viewportMargin,left:e.left+this._viewportMargin,right:e.left+t-this._viewportMargin,bottom:e.top+i-this._viewportMargin,width:t-2*this._viewportMargin,height:i-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,i){return i==="x"?t.offsetX==null?this._offsetX:t.offsetX:t.offsetY==null?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&eu(t).forEach(i=>{i!==""&&this._appliedPanelClasses.indexOf(i)===-1&&(this._appliedPanelClasses.push(i),this._pane.classList.add(i))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){let t=this._origin;if(t instanceof P)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();let i=t.width||0,e=t.height||0;return{top:t.y,bottom:t.y+e,left:t.x,right:t.x+i,height:e,width:i}}};function sl(n,t){for(let i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n}function O2(n){if(typeof n!="number"&&n!=null){let[t,i]=n.split($3);return!i||i==="px"?parseFloat(t):null}return n||null}function P2(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 Y3(n,t){return n===t?!0:n.isOriginClipped===t.isOriginClipped&&n.isOriginOutsideView===t.isOriginOutsideView&&n.isOverlayClipped===t.isOverlayClipped&&n.isOverlayOutsideView===t.isOverlayOutsideView}var N2="cdk-global-overlay-wrapper",uI=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(t){let i=t.getConfig();this._overlayRef=t,this._width&&!i.width&&t.updateSize({width:this._width}),this._height&&!i.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(N2),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._xOffset=t,this._xPosition="left",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._xOffset=t,this._xPosition="right",this}start(t=""){return this._xOffset=t,this._xPosition="start",this}end(t=""){return this._xOffset=t,this._xPosition="end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._xPosition="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let t=this._overlayRef.overlayElement.style,i=this._overlayRef.hostElement.style,e=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:c}=e,m=(r==="100%"||r==="100vw")&&(!a||a==="100%"||a==="100vw"),x=(o==="100%"||o==="100vh")&&(!c||c==="100%"||c==="100vh"),I=this._xPosition,O=this._xOffset,B=this._overlayRef.getConfig().direction==="rtl",ae="",ee="",Se="";m?Se="flex-start":I==="center"?(Se="center",B?ee=O:ae=O):B?I==="left"||I==="end"?(Se="flex-end",ae=O):(I==="right"||I==="start")&&(Se="flex-start",ee=O):I==="left"||I==="start"?(Se="flex-start",ae=O):(I==="right"||I==="end")&&(Se="flex-end",ee=O),t.position=this._cssPosition,t.marginLeft=m?"0":ae,t.marginTop=x?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=m?"0":ee,i.justifyContent=Se,i.alignItems=x?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let t=this._overlayRef.overlayElement.style,i=this._overlayRef.hostElement,e=i.style;i.classList.remove(N2),e.justifyContent=e.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}},q3=(()=>{let t=class t{constructor(e,r,o,a){this._viewportRuler=e,this._document=r,this._platform=o,this._overlayContainer=a}global(){return new uI}flexibleConnectedTo(e){return new Tm(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};t.\u0275fac=function(r){return new(r||t)(k(La),k(ye),k(Qe),k(ou))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Q3=0,Nt=(()=>{let t=class t{constructor(e,r,o,a,c,m,x,I,O,B,ae,ee){this.scrollStrategies=e,this._overlayContainer=r,this._componentFactoryResolver=o,this._positionBuilder=a,this._keyboardDispatcher=c,this._injector=m,this._ngZone=x,this._document=I,this._directionality=O,this._location=B,this._outsideClickDispatcher=ae,this._animationsModuleType=ee}create(e){let r=this._createHostElement(),o=this._createPaneElement(r),a=this._createPortalOutlet(o),c=new ic(e);return c.direction=c.direction||this._directionality.value,new Do(a,r,o,c,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations")}position(){return this._positionBuilder}_createPaneElement(e){let r=this._document.createElement("div");return r.id=`cdk-overlay-${Q3++}`,r.classList.add("cdk-overlay-pane"),e.appendChild(r),r}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Ui)),new Ib(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};t.\u0275fac=function(r){return new(r||t)(k(U3),k(ou),k(Bt),k(q3),k(W3),k(Pe),k(be),k(ye),k(Yt),k(ja),k(G3),k(Et,8))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),K3=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],j2=new re("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let n=F(Nt);return()=>n.scrollStrategies.reposition()}}),Mm=(()=>{let t=class t{constructor(e){this.elementRef=e}};t.\u0275fac=function(r){return new(r||t)(l(P))},t.\u0275dir=J({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0});let n=t;return n})(),hI=(()=>{let t=class t{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}constructor(e,r,o,a,c){this._overlay=e,this._dir=c,this._backdropSubscription=pt.EMPTY,this._attachSubscription=pt.EMPTY,this._detachSubscription=pt.EMPTY,this._positionSubscription=pt.EMPTY,this._disposeOnNavigation=!1,this._ngZone=F(be),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new Y,this.positionChange=new Y,this.attach=new Y,this.detach=new Y,this.overlayKeydown=new Y,this.overlayOutsideClick=new Y,this._templatePortal=new ko(r,o),this._scrollStrategyFactory=a,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=K3);let e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(r=>{this.overlayKeydown.next(r),r.keyCode===27&&!this.disableClose&&!Ut(r)&&(r.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(r=>{let o=this._getOriginElement(),a=Hr(r);(!o||o!==a&&!o.contains(a))&&this.overlayOutsideClick.next(r)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),r=new ic({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(r.width=this.width),(this.height||this.height===0)&&(r.height=this.height),(this.minWidth||this.minWidth===0)&&(r.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(r.minHeight=this.minHeight),this.backdropClass&&(r.backdropClass=this.backdropClass),this.panelClass&&(r.panelClass=this.panelClass),r}_updatePositionStrategy(e){let r=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(r).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof Mm?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Mm?this.origin.elementRef.nativeElement:this.origin instanceof P?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(pM(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}};t.\u0275fac=function(r){return new(r||t)(l(Nt),l(tt),l(ri),l(j2),l(Yt,8))},t.\u0275dir=J({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[z.None,"cdkConnectedOverlayOrigin","origin"],positions:[z.None,"cdkConnectedOverlayPositions","positions"],positionStrategy:[z.None,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[z.None,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[z.None,"cdkConnectedOverlayOffsetY","offsetY"],width:[z.None,"cdkConnectedOverlayWidth","width"],height:[z.None,"cdkConnectedOverlayHeight","height"],minWidth:[z.None,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[z.None,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[z.None,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[z.None,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[z.None,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[z.None,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[z.None,"cdkConnectedOverlayOpen","open"],disableClose:[z.None,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[z.None,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[z.HasDecoratorInputTransform,"cdkConnectedOverlayHasBackdrop","hasBackdrop",xe],lockPosition:[z.HasDecoratorInputTransform,"cdkConnectedOverlayLockPosition","lockPosition",xe],flexibleDimensions:[z.HasDecoratorInputTransform,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",xe],growAfterOpen:[z.HasDecoratorInputTransform,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",xe],push:[z.HasDecoratorInputTransform,"cdkConnectedOverlayPush","push",xe],disposeOnNavigation:[z.HasDecoratorInputTransform,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",xe]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[ct,he]});let n=t;return n})();function X3(n){return()=>n.scrollStrategies.reposition()}var Z3={provide:j2,deps:[Nt],useFactory:X3},Ba=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=X({type:t}),t.\u0275inj=K({providers:[Nt,Z3],imports:[ec,ta,nI,nI]});let n=t;return n})();function J3(n){if(n.type==="characterData"&&n.target instanceof Comment)return!0;if(n.type==="childList"){for(let t=0;t<n.addedNodes.length;t++)if(!(n.addedNodes[t]instanceof Comment))return!1;for(let t=0;t<n.removedNodes.length;t++)if(!(n.removedNodes[t]instanceof Comment))return!1;return!0}return!1}var L2=(()=>{let t=class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),e4=(()=>{let t=class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,r)=>this._cleanupObserver(r))}observe(e){let r=Yn(e);return new Lt(o=>{let c=this._observeElement(r).pipe(je(m=>m.filter(x=>!J3(x))),et(m=>!!m.length)).subscribe(o);return()=>{c.unsubscribe(),this._unobserveElement(r)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let r=new ue,o=this._mutationObserverFactory.create(a=>r.next(a));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:r,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:r,stream:o}=this._observedElements.get(e);r&&r.disconnect(),o.complete(),this._observedElements.delete(e)}}};t.\u0275fac=function(r){return new(r||t)(k(L2))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),B2=(()=>{let t=class t{get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=wo(e),this._subscribe()}constructor(e,r,o){this._contentObserver=e,this._elementRef=r,this._ngZone=o,this.event=new Y,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(Ns(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}};t.\u0275fac=function(r){return new(r||t)(l(e4),l(P),l(be))},t.\u0275dir=J({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[z.HasDecoratorInputTransform,"cdkObserveContentDisabled","disabled",xe],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[ct]});let n=t;return n})(),Db=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=X({type:t}),t.\u0275inj=K({providers:[L2]});let n=t;return n})();var z2=new Set,cl,t4=(()=>{let t=class t{constructor(e,r){this._platform=e,this._nonce=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):n4}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&i4(e,this._nonce),this._matchMedia(e)}};t.\u0275fac=function(r){return new(r||t)(k(Qe),k(zh,8))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function i4(n,t){if(!z2.has(n))try{cl||(cl=document.createElement("style"),t&&cl.setAttribute("nonce",t),cl.setAttribute("type","text/css"),document.head.appendChild(cl)),cl.sheet&&(cl.sheet.insertRule(`@media ${n} {body{ }}`,0),z2.add(n))}catch(i){console.error(i)}}function n4(n){return{matches:n==="all"||n==="",media:n,addListener:()=>{},removeListener:()=>{}}}var Sb=(()=>{let t=class t{constructor(e,r){this._mediaMatcher=e,this._zone=r,this._queries=new Map,this._destroySubject=new ue}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return H2(eu(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let o=H2(eu(e)).map(c=>this._registerQuery(c).observable),a=Oa(o);return a=Of(a.pipe(gt(1)),a.pipe(Va(1),Ns(0))),a.pipe(je(c=>{let m={matches:!1,breakpoints:{}};return c.forEach(({matches:x,query:I})=>{m.matches=m.matches||x,m.breakpoints[I]=x}),m}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let r=this._mediaMatcher.matchMedia(e),a={observable:new Lt(c=>{let m=x=>this._zone.run(()=>c.next(x));return r.addListener(m),()=>{r.removeListener(m)}}).pipe(yi(r),je(({matches:c})=>({query:e,matches:c})),_e(this._destroySubject)),mql:r};return this._queries.set(e,a),a}};t.\u0275fac=function(r){return new(r||t)(k(t4),k(be))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function H2(n){return n.map(t=>t.split(",")).reduce((t,i)=>t.concat(i)).map(t=>t.trim())}var ll={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var Y2=" ";function vI(n,t,i){let e=Ab(n,t);i=i.trim(),!e.some(r=>r.trim()===i)&&(e.push(i),n.setAttribute(t,e.join(Y2)))}function Pb(n,t,i){let e=Ab(n,t);i=i.trim();let r=e.filter(o=>o!==i);r.length?n.setAttribute(t,r.join(Y2)):n.removeAttribute(t)}function Ab(n,t){return n.getAttribute(t)?.match(/\S+/g)??[]}var q2="cdk-describedby-message",Eb="cdk-describedby-host",gI=0,Nb=(()=>{let t=class t{constructor(e,r){this._platform=r,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${gI++}`,this._document=e,this._id=F(Bh)+"-"+gI++}describe(e,r,o){if(!this._canBeDescribed(e,r))return;let a=mI(r,o);typeof r!="string"?(U2(r,this._id),this._messageRegistry.set(a,{messageElement:r,referenceCount:0})):this._messageRegistry.has(a)||this._createMessageElement(r,o),this._isElementDescribedByMessage(e,a)||this._addMessageReference(e,a)}removeDescription(e,r,o){if(!r||!this._isElementNode(e))return;let a=mI(r,o);if(this._isElementDescribedByMessage(e,a)&&this._removeMessageReference(e,a),typeof r=="string"){let c=this._messageRegistry.get(a);c&&c.referenceCount===0&&this._deleteMessageElement(a)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${Eb}="${this._id}"]`);for(let r=0;r<e.length;r++)this._removeCdkDescribedByReferenceIds(e[r]),e[r].removeAttribute(Eb);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(e,r){let o=this._document.createElement("div");U2(o,this._id),o.textContent=e,r&&o.setAttribute("role",r),this._createMessagesContainer(),this._messagesContainer.appendChild(o),this._messageRegistry.set(mI(e,r),{messageElement:o,referenceCount:0})}_deleteMessageElement(e){this._messageRegistry.get(e)?.messageElement?.remove(),this._messageRegistry.delete(e)}_createMessagesContainer(){if(this._messagesContainer)return;let e="cdk-describedby-message-container",r=this._document.querySelectorAll(`.${e}[platform="server"]`);for(let a=0;a<r.length;a++)r[a].remove();let o=this._document.createElement("div");o.style.visibility="hidden",o.classList.add(e),o.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&o.setAttribute("platform","server"),this._document.body.appendChild(o),this._messagesContainer=o}_removeCdkDescribedByReferenceIds(e){let r=Ab(e,"aria-describedby").filter(o=>o.indexOf(q2)!=0);e.setAttribute("aria-describedby",r.join(" "))}_addMessageReference(e,r){let o=this._messageRegistry.get(r);vI(e,"aria-describedby",o.messageElement.id),e.setAttribute(Eb,this._id),o.referenceCount++}_removeMessageReference(e,r){let o=this._messageRegistry.get(r);o.referenceCount--,Pb(e,"aria-describedby",o.messageElement.id),e.removeAttribute(Eb)}_isElementDescribedByMessage(e,r){let o=Ab(e,"aria-describedby"),a=this._messageRegistry.get(r),c=a&&a.messageElement.id;return!!c&&o.indexOf(c)!=-1}_canBeDescribed(e,r){if(!this._isElementNode(e))return!1;if(r&&typeof r=="object")return!0;let o=r==null?"":`${r}`.trim(),a=e.getAttribute("aria-label");return o?!a||a.trim()!==o:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}};t.\u0275fac=function(r){return new(r||t)(k(ye),k(Qe))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function mI(n,t){return typeof n=="string"?`${t||""}/${n}`:n}function U2(n,t){n.id||(n.id=`${q2}-${t}-${gI++}`)}var Rb=class{constructor(t,i){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new ue,this._typeaheadSubscription=pt.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new ue,this.change=new ue,t instanceof Lh?this._itemChangesSubscription=t.changes.subscribe(e=>this._itemsChanged(e.toArray())):Bx(t)&&(this._effectRef=Gx(()=>this._itemsChanged(t()),{injector:i}))}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Kt(i=>this._pressedLetters.push(i)),Ns(t),et(()=>this._pressedLetters.length>0),je(()=>this._pressedLetters.join(""))).subscribe(i=>{let e=this._getItemsArray();for(let r=1;r<e.length+1;r++){let o=(this._activeItemIndex+r)%e.length,a=e[o];if(!this._skipPredicateFn(a)&&a.getLabel().toUpperCase().trim().indexOf(i)===0){this.setActiveItem(o);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(t=!0){return this._homeAndEnd=t,this}withPageUpDown(t=!0,i=10){return this._pageUpAndDown={enabled:t,delta:i},this}setActiveItem(t){let i=this._activeItem;this.updateActiveItem(t),this._activeItem!==i&&this.change.next(this._activeItemIndex)}onKeydown(t){let i=t.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!t[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,a=this._getItemsArray().length;this._setActiveItemByIndex(o<a?o:a-1,-1);break}else return;default:(r||Ut(t,"shiftKey"))&&(t.key&&t.key.length===1?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(i>=65&&i<=90||i>=48&&i<=57)&&this._letterKeyStream.next(String.fromCharCode(i)));return}this._pressedLetters=[],t.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(t){let i=this._getItemsArray(),e=typeof t=="number"?t:i.indexOf(t),r=i[e];this._activeItem=r??null,this._activeItemIndex=e}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){let i=this._getItemsArray();for(let e=1;e<=i.length;e++){let r=(this._activeItemIndex+t*e+i.length)%i.length,o=i[r];if(!this._skipPredicateFn(o)){this.setActiveItem(r);return}}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,i){let e=this._getItemsArray();if(e[t]){for(;this._skipPredicateFn(e[t]);)if(t+=i,!e[t])return;this.setActiveItem(t)}}_getItemsArray(){return Bx(this._items)?this._items():this._items instanceof Lh?this._items.toArray():this._items}_itemsChanged(t){if(this._activeItem){let i=t.indexOf(this._activeItem);i>-1&&i!==this._activeItemIndex&&(this._activeItemIndex=i)}}},Fb=class extends Rb{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}},Ob=class extends Rb{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}};var za=(()=>{let t=class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return g4(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let r=p4(C4(e));if(r&&(W2(r)===-1||!this.isVisible(r)))return!1;let o=e.nodeName.toLowerCase(),a=W2(e);return e.hasAttribute("contenteditable")?a!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!w4(e)?!1:o==="audio"?e.hasAttribute("controls")?a!==-1:!1:o==="video"?a===-1?!1:a!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,r){return x4(e)&&!this.isDisabled(e)&&(r?.ignoreVisibility||this.isVisible(e))}};t.\u0275fac=function(r){return new(r||t)(k(Qe))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function p4(n){try{return n.frameElement}catch{return null}}function g4(n){return!!(n.offsetWidth||n.offsetHeight||typeof n.getClientRects=="function"&&n.getClientRects().length)}function f4(n){let t=n.nodeName.toLowerCase();return t==="input"||t==="select"||t==="button"||t==="textarea"}function b4(n){return _4(n)&&n.type=="hidden"}function v4(n){return y4(n)&&n.hasAttribute("href")}function _4(n){return n.nodeName.toLowerCase()=="input"}function y4(n){return n.nodeName.toLowerCase()=="a"}function Q2(n){if(!n.hasAttribute("tabindex")||n.tabIndex===void 0)return!1;let t=n.getAttribute("tabindex");return!!(t&&!isNaN(parseInt(t,10)))}function W2(n){if(!Q2(n))return null;let t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}function w4(n){let t=n.nodeName.toLowerCase(),i=t==="input"&&n.type;return i==="text"||i==="password"||t==="select"||t==="textarea"}function x4(n){return b4(n)?!1:f4(n)||v4(n)||n.hasAttribute("contenteditable")||Q2(n)}function C4(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}var fI=class{get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}constructor(t,i,e,r,o=!1){this._element=t,this._checker=i,this._ngZone=e,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){let t=this._startAnchor,i=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.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(t){return new Promise(i=>{this._executeOnStable(()=>i(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(i=>{this._executeOnStable(()=>i(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(i=>{this._executeOnStable(()=>i(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let i=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return t=="start"?i.length?i[0]:this._getFirstTabbableElement(this._element):i.length?i[i.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){let i=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(i){if(!this._checker.isFocusable(i)){let e=this._getFirstTabbableElement(i);return e?.focus(t),!!e}return i.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){let i=this._getRegionBoundary("start");return i&&i.focus(t),!!i}focusLastTabbableElement(t){let i=this._getRegionBoundary("end");return i&&i.focus(t),!!i}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let i=t.children;for(let e=0;e<i.length;e++){let r=i[e].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(i[e]):null;if(r)return r}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let i=t.children;for(let e=i.length-1;e>=0;e--){let r=i[e].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(i[e]):null;if(r)return r}return null}_createAnchor(){let t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,i){t?i.setAttribute("tabindex","0"):i.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(gt(1)).subscribe(t)}},ul=(()=>{let t=class t{constructor(e,r,o){this._checker=e,this._ngZone=r,this._document=o}create(e,r=!1){return new fI(e,this._checker,this._ngZone,this._document,r)}};t.\u0275fac=function(r){return new(r||t)(k(za),k(be),k(ye))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),K2=(()=>{let t=class t{get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}constructor(e,r,o){this._elementRef=e,this._focusTrapFactory=r,this._previouslyFocusedElement=null,F(Qe).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let r=e.autoCapture;r&&!r.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=Js(),this.focusTrap?.focusInitialElementWhenReady()}};t.\u0275fac=function(r){return new(r||t)(l(P),l(ul),l(ye))},t.\u0275dir=J({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[z.HasDecoratorInputTransform,"cdkTrapFocus","enabled",xe],autoCapture:[z.HasDecoratorInputTransform,"cdkTrapFocusAutoCapture","autoCapture",xe]},exportAs:["cdkTrapFocus"],standalone:!0,features:[ct,he]});let n=t;return n})();function _I(n){return n.buttons===0||n.detail===0}function yI(n){let t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!!t&&t.identifier===-1&&(t.radiusX==null||t.radiusX===1)&&(t.radiusY==null||t.radiusY===1)}var I4=new re("cdk-input-modality-detector-options"),k4={ignoreKeys:[18,17,224,91,16]},X2=650,au=vn({passive:!0,capture:!0}),D4=(()=>{let t=class t{get mostRecentModality(){return this._modality.value}constructor(e,r,o,a){this._platform=e,this._mostRecentTarget=null,this._modality=new si(null),this._lastTouchMs=0,this._onKeydown=c=>{this._options?.ignoreKeys?.some(m=>m===c.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Hr(c))},this._onMousedown=c=>{Date.now()-this._lastTouchMs<X2||(this._modality.next(_I(c)?"keyboard":"mouse"),this._mostRecentTarget=Hr(c))},this._onTouchstart=c=>{if(yI(c)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Hr(c)},this._options=ne(ne({},k4),a),this.modalityDetected=this._modality.pipe(Va(1)),this.modalityChanged=this.modalityDetected.pipe(Na()),e.isBrowser&&r.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,au),o.addEventListener("mousedown",this._onMousedown,au),o.addEventListener("touchstart",this._onTouchstart,au)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,au),document.removeEventListener("mousedown",this._onMousedown,au),document.removeEventListener("touchstart",this._onTouchstart,au))}};t.\u0275fac=function(r){return new(r||t)(k(Qe),k(be),k(ye),k(I4,8))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),S4=new re("liveAnnouncerElement",{providedIn:"root",factory:E4});function E4(){return null}var T4=new re("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),M4=0,Z2=(()=>{let t=class t{constructor(e,r,o,a){this._ngZone=r,this._defaultOptions=a,this._document=o,this._liveElement=e||this._createLiveElement()}announce(e,...r){let o=this._defaultOptions,a,c;return r.length===1&&typeof r[0]=="number"?c=r[0]:[a,c]=r,this.clear(),clearTimeout(this._previousTimeout),a||(a=o&&o.politeness?o.politeness:"polite"),c==null&&o&&(c=o.duration),this._liveElement.setAttribute("aria-live",a),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(m=>this._currentResolve=m)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof c=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),c)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",r=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let a=0;a<r.length;a++)r[a].remove();return o.classList.add(e),o.classList.add("cdk-visually-hidden"),o.setAttribute("aria-atomic","true"),o.setAttribute("aria-live","polite"),o.id=`cdk-live-announcer-${M4++}`,this._document.body.appendChild(o),o}_exposeAnnouncerToModals(e){let r=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o<r.length;o++){let a=r[o],c=a.getAttribute("aria-owns");c?c.indexOf(e)===-1&&a.setAttribute("aria-owns",c+" "+e):a.setAttribute("aria-owns",e)}}};t.\u0275fac=function(r){return new(r||t)(k(S4,8),k(be),k(ye),k(T4,8))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Mb=function(n){return n[n.IMMEDIATE=0]="IMMEDIATE",n[n.EVENTUAL=1]="EVENTUAL",n}(Mb||{}),A4=new re("cdk-focus-monitor-default-options"),Tb=vn({passive:!0,capture:!0}),fr=(()=>{let t=class t{constructor(e,r,o,a,c){this._ngZone=e,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=m=>{let x=Hr(m);for(let I=x;I;I=I.parentElement)m.type==="focus"?this._onFocus(m,I):this._onBlur(m,I)},this._document=a,this._detectionMode=c?.detectionMode||Mb.IMMEDIATE}monitor(e,r=!1){let o=Yn(e);if(!this._platform.isBrowser||o.nodeType!==1)return we();let a=T2(o)||this._getDocument(),c=this._elementInfo.get(o);if(c)return r&&(c.checkChildren=!0),c.subject;let m={checkChildren:r,subject:new ue,rootNode:a};return this._elementInfo.set(o,m),this._registerGlobalListeners(m),m.subject}stopMonitoring(e){let r=Yn(e),o=this._elementInfo.get(r);o&&(o.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(o))}focusVia(e,r,o){let a=Yn(e),c=this._getDocument().activeElement;a===c?this._getClosestElementsInfo(a).forEach(([m,x])=>this._originChanged(m,r,x)):(this._setOrigin(r),typeof a.focus=="function"&&a.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Mb.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,r){e.classList.toggle("cdk-focused",!!r),e.classList.toggle("cdk-touch-focused",r==="touch"),e.classList.toggle("cdk-keyboard-focused",r==="keyboard"),e.classList.toggle("cdk-mouse-focused",r==="mouse"),e.classList.toggle("cdk-program-focused",r==="program")}_setOrigin(e,r=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&r,this._detectionMode===Mb.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?X2:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(e,r){let o=this._elementInfo.get(r),a=Hr(e);!o||!o.checkChildren&&r!==a||this._originChanged(r,this._getFocusOrigin(a),o)}_onBlur(e,r){let o=this._elementInfo.get(r);!o||o.checkChildren&&e.relatedTarget instanceof Node&&r.contains(e.relatedTarget)||(this._setClasses(r),this._emitOrigin(o,null))}_emitOrigin(e,r){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(r))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let r=e.rootNode,o=this._rootNodeFocusListenerCount.get(r)||0;o||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,Tb),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,Tb)}),this._rootNodeFocusListenerCount.set(r,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(_e(this._stopInputModalityDetector)).subscribe(a=>{this._setOrigin(a,!0)}))}_removeGlobalListeners(e){let r=e.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,Tb),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Tb),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,r,o){this._setClasses(e,r),this._emitOrigin(o,r),this._lastFocusOrigin=r}_getClosestElementsInfo(e){let r=[];return this._elementInfo.forEach((o,a)=>{(a===e||o.checkChildren&&a.contains(e))&&r.push([a,o])}),r}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:r,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!r||r===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let a=e.labels;if(a){for(let c=0;c<a.length;c++)if(a[c].contains(r))return!0}return!1}};t.\u0275fac=function(r){return new(r||t)(k(be),k(Qe),k(D4),k(ye,8),k(A4,8))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Om=(()=>{let t=class t{constructor(e,r){this._elementRef=e,this._focusMonitor=r,this._focusOrigin=null,this.cdkFocusChange=new Y}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(r=>{this._focusOrigin=r,this.cdkFocusChange.emit(r)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}};t.\u0275fac=function(r){return new(r||t)(l(P),l(fr))},t.\u0275dir=J({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0});let n=t;return n})(),dl=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}(dl||{}),G2="cdk-high-contrast-black-on-white",$2="cdk-high-contrast-white-on-black",pI="cdk-high-contrast-active",wI=(()=>{let t=class t{constructor(e,r){this._platform=e,this._document=r,this._breakpointSubscription=F(Sb).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return dl.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let r=this._document.defaultView||window,o=r&&r.getComputedStyle?r.getComputedStyle(e):null,a=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),a){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return dl.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return dl.BLACK_ON_WHITE}return dl.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(pI,G2,$2),this._hasCheckedHighContrastMode=!0;let r=this.getHighContrastMode();r===dl.BLACK_ON_WHITE?e.add(pI,G2):r===dl.WHITE_ON_BLACK&&e.add(pI,$2)}}};t.\u0275fac=function(r){return new(r||t)(k(Qe),k(ye))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),nc=(()=>{let t=class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}};t.\u0275fac=function(r){return new(r||t)(k(wI))},t.\u0275mod=X({type:t}),t.\u0275inj=K({imports:[Db]});let n=t;return n})();function R4(n,t){}var Ha=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 Nm=(()=>{let t=class t extends ru{constructor(e,r,o,a,c,m,x,I){super(),this._elementRef=e,this._focusTrapFactory=r,this._config=a,this._interactivityChecker=c,this._ngZone=m,this._overlayRef=x,this._focusMonitor=I,this._platform=F(Qe),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=F(ce),this.attachDomPortal=O=>{this._portalOutlet.hasAttached();let B=this._portalOutlet.attachDomPortal(O);return this._contentAttached(),B},this._document=o,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let r=this._ariaLabelledByQueue.indexOf(e);r>-1&&(this._ariaLabelledByQueue.splice(r,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let r=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),r}attachTemplatePortal(e){this._portalOutlet.hasAttached();let r=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),r}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,r){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(r)}_focusByCssSelector(e,r){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,r)}_trapFocus(){let e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.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 e=this._config.restoreFocus,r=null;if(typeof e=="string"?r=this._document.querySelector(e):typeof e=="boolean"?r=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(r=e),this._config.restoreFocus&&r&&typeof r.focus=="function"){let o=Js(),a=this._elementRef.nativeElement;(!o||o===this._document.body||o===a||a.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 e=this._elementRef.nativeElement,r=Js();return e===r||e.contains(r)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Js()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}};t.\u0275fac=function(r){return new(r||t)(l(P),l(ul),l(ye,8),l(Ha),l(za),l(be),l(Do),l(fr))},t.\u0275cmp=R({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(r,o){if(r&1&&Z(qn,7),r&2){let a;G(a=$())&&(o._portalOutlet=a.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(r,o){r&2&&De("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:[L,se],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,o){r&1&&H(0,R4,0,0,"ng-template",0)},dependencies:[qn],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2});let n=t;return n})(),Pm=class{constructor(t,i){this.overlayRef=t,this.config=i,this.closed=new ue,this.disableClose=i.disableClose,this.backdropClick=t.backdropClick(),this.keydownEvents=t.keydownEvents(),this.outsidePointerEvents=t.outsidePointerEvents(),this.id=i.id,this.keydownEvents.subscribe(e=>{e.keyCode===27&&!this.disableClose&&!Ut(e)&&(e.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=t.detachments().subscribe(()=>{i.closeOnOverlayDetachments!==!1&&this.close()})}close(t,i){if(this.containerInstance){let e=this.closed;this.containerInstance._closeInteractionType=i?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),e.next(t),e.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(t="",i=""){return this.overlayRef.updateSize({width:t,height:i}),this}addPanelClass(t){return this.overlayRef.addPanelClass(t),this}removePanelClass(t){return this.overlayRef.removePanelClass(t),this}},F4=new re("DialogScrollStrategy",{providedIn:"root",factory:()=>{let n=F(Nt);return()=>n.scrollStrategies.block()}}),O4=new re("DialogData"),P4=new re("DefaultDialogConfig");var N4=0,Vm=(()=>{let t=class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,r,o,a,c,m){this._overlay=e,this._injector=r,this._defaultOptions=o,this._parentDialog=a,this._overlayContainer=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ue,this._afterOpenedAtThisLevel=new ue,this._ariaHiddenElements=new Map,this.afterAllClosed=Pa(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(yi(void 0))),this._scrollStrategy=m}open(e,r){let o=this._defaultOptions||new Ha;r=ne(ne({},o),r),r.id=r.id||`cdk-dialog-${N4++}`,r.id&&this.getDialogById(r.id);let a=this._getOverlayConfig(r),c=this._overlay.create(a),m=new Pm(c,r),x=this._attachContainer(c,m,r);return m.containerInstance=x,this._attachDialogContent(e,m,x,r),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(m),m.closed.subscribe(()=>this._removeOpenDialog(m,!0)),this.afterOpened.next(m),m}closeAll(){xI(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(r=>r.id===e)}ngOnDestroy(){xI(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),xI(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let r=new ic({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(r.backdropClass=e.backdropClass),r}_attachContainer(e,r,o){let a=o.injector||o.viewContainerRef?.injector,c=[{provide:Ha,useValue:o},{provide:Pm,useValue:r},{provide:Do,useValue:e}],m;o.container?typeof o.container=="function"?m=o.container:(m=o.container.type,c.push(...o.container.providers(o))):m=Nm;let x=new Io(m,o.viewContainerRef,Pe.create({parent:a||this._injector,providers:c}),o.componentFactoryResolver);return e.attach(x).instance}_attachDialogContent(e,r,o,a){if(e instanceof tt){let c=this._createInjector(a,r,o,void 0),m={$implicit:a.data,dialogRef:r};a.templateContext&&(m=ne(ne({},m),typeof a.templateContext=="function"?a.templateContext():a.templateContext)),o.attachTemplatePortal(new ko(e,null,m,c))}else{let c=this._createInjector(a,r,o,this._injector),m=o.attachComponentPortal(new Io(e,a.viewContainerRef,c,a.componentFactoryResolver));r.componentRef=m,r.componentInstance=m.instance}}_createInjector(e,r,o,a){let c=e.injector||e.viewContainerRef?.injector,m=[{provide:O4,useValue:e.data},{provide:Pm,useValue:r}];return e.providers&&(typeof e.providers=="function"?m.push(...e.providers(r,e,o)):m.push(...e.providers)),e.direction&&(!c||!c.get(Yt,null,{optional:!0}))&&m.push({provide:Yt,useValue:{value:e.direction,change:we()}}),Pe.create({parent:c||a,providers:m})}_removeOpenDialog(e,r){let o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((a,c)=>{a?c.setAttribute("aria-hidden",a):c.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),r&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let e=this._overlayContainer.getContainerElement();if(e.parentElement){let r=e.parentElement.children;for(let o=r.length-1;o>-1;o--){let a=r[o];a!==e&&a.nodeName!=="SCRIPT"&&a.nodeName!=="STYLE"&&!a.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}};t.\u0275fac=function(r){return new(r||t)(k(Nt),k(Pe),k(P4,8),k(t,12),k(ou),k(F4))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function xI(n,t){let i=n.length;for(;i--;)t(n[i])}var CI=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=X({type:t}),t.\u0275inj=K({providers:[Vm],imports:[Ba,ta,nc,ta]});let n=t;return n})();var j4=["text"],L4=[[["mat-icon"]],"*"],B4=["mat-icon","*"];function z4(n,t){if(n&1&&E(0,"mat-pseudo-checkbox",1),n&2){let i=S();w("disabled",i.disabled)("state",i.selected?"checked":"unchecked")}}function H4(n,t){if(n&1&&E(0,"mat-pseudo-checkbox",3),n&2){let i=S();w("disabled",i.disabled)}}function U4(n,t){if(n&1&&(f(0,"span",4),T(1),v()),n&2){let i=S();b(),Oe("(",i.group.label,")")}}var W4=["mat-internal-form-field",""],G4=["*"];var AI=(()=>{let t=class t{};t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";let n=t;return n})(),RI=(()=>{let t=class t{};t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms";let n=t;return n})();function $4(){return!0}var Y4=new re("mat-sanity-checks",{providedIn:"root",factory:$4}),Xe=(()=>{let t=class t{constructor(e,r,o){this._sanityChecks=r,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return Sm()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[e]}};t.\u0275fac=function(r){return new(r||t)(k(wI),k(Y4,8),k(ye))},t.\u0275mod=X({type:t}),t.\u0275inj=K({imports:[ec,ec]});let n=t;return n})();var oc=class{constructor(t,i,e,r,o){this._defaultMatcher=t,this.ngControl=i,this._parentFormGroup=e,this._parentForm=r,this._stateChanges=o,this.errorState=!1}updateErrorState(){let t=this.errorState,i=this._parentFormGroup||this._parentForm,e=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=e?.isErrorState(r,i)??!1;o!==t&&(this.errorState=o,this._stateChanges.next())}};var ac=new re("MAT_DATE_LOCALE",{providedIn:"root",factory:q4});function q4(){return F(NM)}var Tt=class{constructor(){this._localeChanges=new ue,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return t==null||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,i){return this.getYear(t)-this.getYear(i)||this.getMonth(t)-this.getMonth(i)||this.getDate(t)-this.getDate(i)}sameDate(t,i){if(t&&i){let e=this.isValid(t),r=this.isValid(i);return e&&r?!this.compareDate(t,i):e==r}return t==i}clampDate(t,i,e){return i&&this.compareDate(t,i)<0?i:e&&this.compareDate(t,e)>0?e:t}},Gr=new re("mat-date-formats"),Q4=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function II(n,t){let i=Array(n);for(let e=0;e<n;e++)i[e]=t(e);return i}var K4=(()=>{let t=class t extends Tt{constructor(e){super(),this.useUtcForDisplay=!1,this._matDateLocale=F(ac,{optional:!0}),e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let r=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return II(12,o=>this._format(r,new Date(2017,o,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return II(31,r=>this._format(e,new Date(2017,0,r+1)))}getDayOfWeekNames(e){let r=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return II(7,o=>this._format(r,new Date(2017,0,o+1)))}getYearName(e){let r=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(r,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,r,o){let a=this._createDateWithOverflow(e,r,o);return a.getMonth()!=r,a}today(){return new Date}parse(e,r){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,r){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let o=new Intl.DateTimeFormat(this.locale,xt(ne({},r),{timeZone:"utc"}));return this._format(o,e)}addCalendarYears(e,r){return this.addCalendarMonths(e,r*12)}addCalendarMonths(e,r){let o=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+r,this.getDate(e));return this.getMonth(o)!=((this.getMonth(e)+r)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(e,r){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+r)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(Q4.test(e)){let r=new Date(e);if(this.isValid(r))return r}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,r,o){let a=new Date;return a.setFullYear(e,r,o),a.setHours(0,0,0,0),a}_2digit(e){return("00"+e).slice(-2)}_format(e,r){let o=new Date;return o.setUTCFullYear(r.getFullYear(),r.getMonth(),r.getDate()),o.setUTCHours(r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()),e.format(o)}};t.\u0275fac=function(r){return new(r||t)(k(ac,8))},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),X4={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};function sR(n=X4){return[{provide:Tt,useClass:K4},{provide:Gr,useValue:n}]}var sc=(()=>{let t=class t{isErrorState(e,r){return!!(e&&e.invalid&&(e.touched||r&&r.submitted))}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Wr=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}(Wr||{}),SI=class{constructor(t,i,e,r=!1){this._renderer=t,this.element=i,this.config=e,this._animationForciblyDisabledThroughCss=r,this.state=Wr.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},J2=vn({passive:!0,capture:!0}),EI=class{constructor(){this._events=new Map,this._delegateEventHandler=t=>{let i=Hr(t);i&&this._events.get(t.type)?.forEach((e,r)=>{(r===i||r.contains(i))&&e.forEach(o=>o.handleEvent(t))})}}addHandler(t,i,e,r){let o=this._events.get(i);if(o){let a=o.get(e);a?a.add(r):o.set(e,new Set([r]))}else this._events.set(i,new Map([[e,new Set([r])]])),t.runOutsideAngular(()=>{document.addEventListener(i,this._delegateEventHandler,J2)})}removeHandler(t,i,e){let r=this._events.get(t);if(!r)return;let o=r.get(i);o&&(o.delete(e),o.size===0&&r.delete(i),r.size===0&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,J2)))}},eR={enterDuration:225,exitDuration:150},Z4=800,tR=vn({passive:!0,capture:!0}),iR=["mousedown","touchstart"],nR=["mouseup","mouseleave","touchend","touchcancel"],jm=class jm{constructor(t,i,e,r){this._target=t,this._ngZone=i,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Yn(e))}fadeInRipple(t,i,e={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=ne(ne({},eR),e.animation);e.centered&&(t=r.left+r.width/2,i=r.top+r.height/2);let a=e.radius||J4(t,i,r),c=t-r.left,m=i-r.top,x=o.enterDuration,I=document.createElement("div");I.classList.add("mat-ripple-element"),I.style.left=`${c-a}px`,I.style.top=`${m-a}px`,I.style.height=`${a*2}px`,I.style.width=`${a*2}px`,e.color!=null&&(I.style.backgroundColor=e.color),I.style.transitionDuration=`${x}ms`,this._containerElement.appendChild(I);let O=window.getComputedStyle(I),B=O.transitionProperty,ae=O.transitionDuration,ee=B==="none"||ae==="0s"||ae==="0s, 0s"||r.width===0&&r.height===0,Se=new SI(this,I,e,ee);I.style.transform="scale3d(1, 1, 1)",Se.state=Wr.FADING_IN,e.persistent||(this._mostRecentTransientRipple=Se);let te=null;return!ee&&(x||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let ge=()=>this._finishRippleTransition(Se),$e=()=>this._destroyRipple(Se);I.addEventListener("transitionend",ge),I.addEventListener("transitioncancel",$e),te={onTransitionEnd:ge,onTransitionCancel:$e}}),this._activeRipples.set(Se,te),(ee||!x)&&this._finishRippleTransition(Se),Se}fadeOutRipple(t){if(t.state===Wr.FADING_OUT||t.state===Wr.HIDDEN)return;let i=t.element,e=ne(ne({},eR),t.config.animation);i.style.transitionDuration=`${e.exitDuration}ms`,i.style.opacity="0",t.state=Wr.FADING_OUT,(t._animationForciblyDisabledThroughCss||!e.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){let i=Yn(t);!this._platform.isBrowser||!i||i===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=i,iR.forEach(e=>{jm._eventManager.addHandler(this._ngZone,e,i,this)}))}handleEvent(t){t.type==="mousedown"?this._onMousedown(t):t.type==="touchstart"?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{nR.forEach(i=>{this._triggerElement.addEventListener(i,this,tR)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){t.state===Wr.FADING_IN?this._startFadeOutTransition(t):t.state===Wr.FADING_OUT&&this._destroyRipple(t)}_startFadeOutTransition(t){let i=t===this._mostRecentTransientRipple,{persistent:e}=t.config;t.state=Wr.VISIBLE,!e&&(!i||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){let i=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=Wr.HIDDEN,i!==null&&(t.element.removeEventListener("transitionend",i.onTransitionEnd),t.element.removeEventListener("transitioncancel",i.onTransitionCancel)),t.element.remove()}_onMousedown(t){let i=_I(t),e=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+Z4;!this._target.rippleDisabled&&!i&&!e&&(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled&&!yI(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;let i=t.changedTouches;if(i)for(let e=0;e<i.length;e++)this.fadeInRipple(i[e].clientX,i[e].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(t=>{let i=t.state===Wr.VISIBLE||t.config.terminateOnPointerUp&&t.state===Wr.FADING_IN;!t.config.persistent&&i&&t.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let t=this._triggerElement;t&&(iR.forEach(i=>jm._eventManager.removeHandler(i,t,this)),this._pointerUpEventsRegistered&&(nR.forEach(i=>t.removeEventListener(i,this,tR)),this._pointerUpEventsRegistered=!1))}};jm._eventManager=new EI;var TI=jm;function J4(n,t,i){let e=Math.max(Math.abs(n-i.left),Math.abs(n-i.right)),r=Math.max(Math.abs(t-i.top),Math.abs(t-i.bottom));return Math.sqrt(e*e+r*r)}var FI=new re("mat-ripple-global-options"),aa=(()=>{let t=class t{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,r,o,a,c){this._elementRef=e,this._animationMode=c,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new TI(this,r,e,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:ne(ne(ne({},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(e,r=0,o){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,r,ne(ne({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,ne(ne({},this.rippleConfig),e))}};t.\u0275fac=function(r){return new(r||t)(l(P),l(be),l(Qe),l(FI,8),l(Et,8))},t.\u0275dir=J({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(r,o){r&2&&ie("mat-ripple-unbounded",o.unbounded)},inputs:{color:[z.None,"matRippleColor","color"],unbounded:[z.None,"matRippleUnbounded","unbounded"],centered:[z.None,"matRippleCentered","centered"],radius:[z.None,"matRippleRadius","radius"],animation:[z.None,"matRippleAnimation","animation"],disabled:[z.None,"matRippleDisabled","disabled"],trigger:[z.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let n=t;return n})(),OI=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=X({type:t}),t.\u0275inj=K({imports:[Xe,Xe]});let n=t;return n})(),eB=(()=>{let t=class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}};t.\u0275fac=function(r){return new(r||t)(l(Et,8))},t.\u0275cmp=R({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(r,o){r&2&&ie("mat-pseudo-checkbox-indeterminate",o.state==="indeterminate")("mat-pseudo-checkbox-checked",o.state==="checked")("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal",o.appearance==="minimal")("mat-pseudo-checkbox-full",o.appearance==="full")("_mat-animation-noopable",o._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[se],decls:0,vars:0,template:function(r,o){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0});let n=t;return n})(),tB=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=X({type:t}),t.\u0275inj=K({imports:[Xe]});let n=t;return n})(),PI=new re("MAT_OPTION_PARENT_COMPONENT");var NI=new re("MatOptgroup");var iB=0,MI=class{constructor(t,i=!1){this.source=t,this.isUserInput=i}},jb=(()=>{let t=class t{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=e}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(e,r,o,a){this._element=e,this._changeDetectorRef=r,this._parent=o,this.group=a,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${iB++}`,this.onSelectionChange=new Y,this._stateChanges=new ue}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,r){let o=this._getHostElement();typeof o.focus=="function"&&o.focus(r)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!Ut(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new MI(this,e))}};t.\u0275fac=function(r){return new(r||t)(l(P),l(ce),l(PI,8),l(NI,8))},t.\u0275cmp=R({type:t,selectors:[["mat-option"]],viewQuery:function(r,o){if(r&1&&Z(j4,7),r&2){let a;G(a=$())&&(o._text=a.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(r,o){r&1&&A("click",function(){return o._selectViaInteraction()})("keydown",function(c){return o._handleKeydown(c)}),r&2&&(zi("id",o.id),De("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),ie("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[z.HasDecoratorInputTransform,"disabled","disabled",xe]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[ct,se],ngContentSelectors:B4,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(r,o){r&1&&(rt(L4),H(0,z4,1,2,"mat-pseudo-checkbox",1),Ne(1),f(2,"span",2,0),Ne(4,1),v(),H(5,H4,1,1,"mat-pseudo-checkbox",3)(6,U4,2,1,"span",4),E(7,"div",5)),r&2&&(Ue(0,o.multiple?0:-1),b(5),Ue(5,!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),b(),Ue(6,o.group&&o.group._inert?6:-1),b(),w("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[eB,aa],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let n=t;return n})();function cR(n,t,i){if(i.length){let e=t.toArray(),r=i.toArray(),o=0;for(let a=0;a<n+1;a++)e[a].group&&e[a].group===r[o]&&o++;return o}return 0}function lR(n,t,i,e){return n<i?n:n+t>i+e?Math.max(0,n-e+t):i}var VI=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=X({type:t}),t.\u0275inj=K({imports:[OI,Xe,tB]});let n=t;return n})(),rR={capture:!0},oR=["focus","click","mouseenter","touchstart"],kI="mat-ripple-loader-uninitialized",DI="mat-ripple-loader-class-name",aR="mat-ripple-loader-centered",Vb="mat-ripple-loader-disabled",dR=(()=>{let t=class t{constructor(){this._document=F(ye,{optional:!0}),this._animationMode=F(Et,{optional:!0}),this._globalRippleOptions=F(FI,{optional:!0}),this._platform=F(Qe),this._ngZone=F(be),this._hosts=new Map,this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;let o=e.target.closest(`[${kI}]`);o&&this._createRipple(o)},this._ngZone.runOutsideAngular(()=>{for(let e of oR)this._document?.addEventListener(e,this._onInteraction,rR)})}ngOnDestroy(){let e=this._hosts.keys();for(let r of e)this.destroyRipple(r);for(let r of oR)this._document?.removeEventListener(r,this._onInteraction,rR)}configureRipple(e,r){e.setAttribute(kI,""),(r.className||!e.hasAttribute(DI))&&e.setAttribute(DI,r.className||""),r.centered&&e.setAttribute(aR,""),r.disabled&&e.setAttribute(Vb,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,r){let o=this._hosts.get(e);if(o){o.disabled=r;return}r?e.setAttribute(Vb,""):e.removeAttribute(Vb)}_createRipple(e){if(!this._document)return;let r=this._hosts.get(e);if(r)return r;e.querySelector(".mat-ripple")?.remove();let o=this._document.createElement("span");o.classList.add("mat-ripple",e.getAttribute(DI)),e.append(o);let a=new aa(new P(o),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return a._isInitialized=!0,a.trigger=e,a.centered=e.hasAttribute(aR),a.disabled=e.hasAttribute(Vb),this.attachRipple(e,a),a}attachRipple(e,r){e.removeAttribute(kI),this._hosts.set(e,r)}destroyRipple(e){let r=this._hosts.get(e);r&&(r.ngOnDestroy(),this._hosts.delete(e))}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Lb=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=R({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(r,o){r&2&&ie("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[se],attrs:W4,ngContentSelectors:G4,decls:1,vars:0,template:function(r,o){r&1&&(rt(),Ne(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=t;return n})();function nB(n,t){}var Lm=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}},jI="mdc-dialog--open",uR="mdc-dialog--opening",hR="mdc-dialog--closing",rB=150,oB=75,aB=(()=>{let t=class t extends Nm{constructor(e,r,o,a,c,m,x,I,O){super(e,r,o,a,c,m,x,O),this._animationMode=I,this._animationStateChanged=new Y,this._animationsEnabled=this._animationMode!=="NoopAnimations",this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?pR(this._config.enterAnimationDuration)??rB:0,this._exitAnimationDuration=this._animationsEnabled?pR(this._config.exitAnimationDuration)??oB: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(mR,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(uR,jI)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(jI),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(jI),this._animationsEnabled?(this._hostElement.style.setProperty(mR,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(hR)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(uR,hR)}_waitForAnimationToComplete(e,r){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(r,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let r=super.attachComponentPortal(e);return r.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),r}};t.\u0275fac=function(r){return new(r||t)(l(P),l(ul),l(ye,8),l(Lm),l(za),l(be),l(Do),l(Et,8),l(fr))},t.\u0275cmp=R({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(r,o){r&2&&(zi("id",o._config.id),De("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),ie("_mat-animation-noopable",!o._animationsEnabled)("mat-mdc-dialog-container-with-actions",o._actionSectionCount>0))},standalone:!0,features:[L,se],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),H(2,nB,0,0,"ng-template",2),v()())},dependencies:[qn],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=t;return n})(),mR="--mat-dialog-transition-duration";function pR(n){return n==null?null:typeof n=="number"?n:n.endsWith("ms")?wo(n.substring(0,n.length-2)):n.endsWith("s")?wo(n.substring(0,n.length-1))*1e3:n==="0"?0:null}var zb=function(n){return n[n.OPEN=0]="OPEN",n[n.CLOSING=1]="CLOSING",n[n.CLOSED=2]="CLOSED",n}(zb||{}),Ua=class{constructor(t,i,e){this._ref=t,this._containerInstance=e,this._afterOpened=new ue,this._beforeClosed=new ue,this._state=zb.OPEN,this.disableClose=i.disableClose,this.id=t.id,t.addPanelClass("mat-mdc-dialog-panel"),e._animationStateChanged.pipe(et(r=>r.state==="opened"),gt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(et(r=>r.state==="closed"),gt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),St(this.backdropClick(),this.keydownEvents().pipe(et(r=>r.keyCode===27&&!this.disableClose&&!Ut(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),sB(this,r.type==="keydown"?"keyboard":"mouse"))})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(et(i=>i.state==="closing"),gt(1)).subscribe(i=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),i.totalTime+100)}),this._state=zb.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(t){let i=this._ref.config.positionStrategy;return t&&(t.left||t.right)?t.left?i.left(t.left):i.right(t.right):i.centerHorizontally(),t&&(t.top||t.bottom)?t.top?i.top(t.top):i.bottom(t.bottom):i.centerVertically(),this._ref.updatePosition(),this}updateSize(t="",i=""){return this._ref.updateSize(t,i),this}addPanelClass(t){return this._ref.addPanelClass(t),this}removePanelClass(t){return this._ref.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=zb.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function sB(n,t,i){return n._closeInteractionType=t,n.close(i)}var Wa=new re("MatMdcDialogData"),cB=new re("mat-mdc-dialog-default-options"),lB=new re("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let n=F(Nt);return()=>n.scrollStrategies.block()}});var dB=0,$r=(()=>{let t=class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(e,r,o,a,c,m,x,I){this._overlay=e,this._defaultOptions=a,this._scrollStrategy=c,this._parentDialog=m,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ue,this._afterOpenedAtThisLevel=new ue,this.dialogConfigClass=Lm,this.afterAllClosed=Pa(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(yi(void 0))),this._dialog=r.get(Vm),this._dialogRefConstructor=Ua,this._dialogContainerType=aB,this._dialogDataToken=Wa}open(e,r){let o;r=ne(ne({},this._defaultOptions||new Lm),r),r.id=r.id||`mat-mdc-dialog-${dB++}`,r.scrollStrategy=r.scrollStrategy||this._scrollStrategy();let a=this._dialog.open(e,xt(ne({},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:Ha,useValue:r}]},templateContext:()=>({dialogRef:o}),providers:(c,m,x)=>(o=new this._dialogRefConstructor(c,r,x),o.updatePosition(r?.position),[{provide:this._dialogContainerType,useValue:x},{provide:this._dialogDataToken,useValue:m.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentRef=a.componentRef,o.componentInstance=a.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{let c=this.openDialogs.indexOf(o);c>-1&&(this.openDialogs.splice(c,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(r=>r.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let r=e.length;for(;r--;)e[r].close()}};t.\u0275fac=function(r){return new(r||t)(k(Nt),k(Pe),k(ja,8),k(cB,8),k(lB),k(t,12),k(ou),k(Et,8))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Hb=(()=>{let t=class t extends $n{constructor(e){super(),this.dialog=e,this.width="50vw"}openDialog(){return this.component?this.dialog.open(this.component,{width:this.width}):void 0}disposeComponent(){this.component=void 0}};t.\u0275fac=function(r){return new(r||t)(k($r))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var lu=(()=>{let t=class t extends $n{constructor(){super(...arguments),this.actions=[]}get count(){return this.actions.length}get any(){return this.count>0}add(e){this.actions.push(e)}removeAll(){this.actions=[]}executeAll(){this.actions.forEach(e=>e())}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ge(t)))(o||t)}})(),t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var du=(()=>{let t=class t extends $n{constructor(){super(...arguments),this.actions=[]}get count(){return this.actions.length}get any(){return this.count>0}add(e){this.actions.push(e)}removeAll(){this.actions=[]}executeAll(){this.actions.forEach(e=>e())}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ge(t)))(o||t)}})(),t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Yr=(()=>{let t=class t{constructor(){this.refreshService=F(bn),this.creationService=F(Hb),this.updateService=F(Zs),this.transferService=F(lu),this.deletionService=F(du),this.buttonVisibilityService=F(Zd),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()}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=R({type:t,selectors:[["app-base-page"]],standalone:!0,features:[se],decls:2,vars:0,template:function(r,o){r&1&&(f(0,"p"),T(1,"base-page works!"),v())}});let n=t;return n})();var gR=(()=>{let t=class t extends Yr{ngAfterViewInit(){this.buttonVisibilityService.setVisibleOnly()}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ge(t)))(o||t)}})(),t.\u0275cmp=R({type:t,selectors:[["app-home"]],standalone:!0,features:[L,se],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),E(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=t;return n})();var YR=rn(Mn());var CR=(()=>{let t=class t{constructor(e,r){this._renderer=e,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,r){this._renderer.setProperty(this._elementRef.nativeElement,e,r)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}};t.\u0275fac=function(r){return new(r||t)(l(zt),l(P))},t.\u0275dir=J({type:t});let n=t;return n})(),IR=(()=>{let t=class t extends CR{};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ge(t)))(o||t)}})(),t.\u0275dir=J({type:t,features:[L]});let n=t;return n})(),qr=new re("");var pB={provide:qr,useExisting:ci(()=>li),multi:!0};function gB(){let n=el()?el().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}var fB=new re(""),li=(()=>{let t=class t extends CR{constructor(e,r,o){super(e,r),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!gB())}writeValue(e){let r=e??"";this.setProperty("value",r)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}};t.\u0275fac=function(r){return new(r||t)(l(zt),l(P),l(fB,8))},t.\u0275dir=J({type:t,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&&A("input",function(c){return o._handleInput(c.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(c){return o._compositionEnd(c.target.value)})},features:[Ae([pB]),L]});let n=t;return n})();function cc(n){return n==null||(typeof n=="string"||Array.isArray(n))&&n.length===0}function kR(n){return n!=null&&typeof n.length=="number"}var Qn=new re(""),Wm=new re(""),bB=/^(?=.{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])?)*$/,Jt=class{static min(t){return vB(t)}static max(t){return _B(t)}static required(t){return DR(t)}static requiredTrue(t){return yB(t)}static email(t){return wB(t)}static minLength(t){return xB(t)}static maxLength(t){return SR(t)}static pattern(t){return CB(t)}static nullValidator(t){return Wb(t)}static compose(t){return FR(t)}static composeAsync(t){return OR(t)}};function vB(n){return t=>{if(cc(t.value)||cc(n))return null;let i=parseFloat(t.value);return!isNaN(i)&&i<n?{min:{min:n,actual:t.value}}:null}}function _B(n){return t=>{if(cc(t.value)||cc(n))return null;let i=parseFloat(t.value);return!isNaN(i)&&i>n?{max:{max:n,actual:t.value}}:null}}function DR(n){return cc(n.value)?{required:!0}:null}function yB(n){return n.value===!0?null:{required:!0}}function wB(n){return cc(n.value)||bB.test(n.value)?null:{email:!0}}function xB(n){return t=>cc(t.value)||!kR(t.value)?null:t.value.length<n?{minlength:{requiredLength:n,actualLength:t.value.length}}:null}function SR(n){return t=>kR(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}function CB(n){if(!n)return Wb;let t,i;return typeof n=="string"?(i="",n.charAt(0)!=="^"&&(i+="^"),i+=n,n.charAt(n.length-1)!=="$"&&(i+="$"),t=new RegExp(i)):(i=n.toString(),t=n),e=>{if(cc(e.value))return null;let r=e.value;return t.test(r)?null:{pattern:{requiredPattern:i,actualValue:r}}}}function Wb(n){return null}function ER(n){return n!=null}function TR(n){return zf(n)?Li(n):n}function MR(n){let t={};return n.forEach(i=>{t=i!=null?ne(ne({},t),i):t}),Object.keys(t).length===0?null:t}function AR(n,t){return t.map(i=>i(n))}function IB(n){return!n.validate}function RR(n){return n.map(t=>IB(t)?t:i=>t.validate(i))}function FR(n){if(!n)return null;let t=n.filter(ER);return t.length==0?null:function(i){return MR(AR(i,t))}}function UI(n){return n!=null?FR(RR(n)):null}function OR(n){if(!n)return null;let t=n.filter(ER);return t.length==0?null:function(i){let e=AR(i,t).map(TR);return Pr(e).pipe(je(MR))}}function WI(n){return n!=null?OR(RR(n)):null}function fR(n,t){return n===null?[t]:Array.isArray(n)?[...n,t]:[n,t]}function PR(n){return n._rawValidators}function NR(n){return n._rawAsyncValidators}function BI(n){return n?Array.isArray(n)?n:[n]:[]}function Gb(n,t){return Array.isArray(n)?n.includes(t):n===t}function bR(n,t){let i=BI(t);return BI(n).forEach(r=>{Gb(i,r)||i.push(r)}),i}function vR(n,t){return BI(t).filter(i=>!Gb(n,i))}var $b=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(t){this._rawValidators=t||[],this._composedValidatorFn=UI(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=WI(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,i){return this.control?this.control.hasError(t,i):!1}getError(t,i){return this.control?this.control.getError(t,i):null}},So=class extends $b{get formDirective(){return null}get path(){return null}},An=class extends $b{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Yb=class{constructor(t){this._cd=t}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}},kB={"[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"},XJ=xt(ne({},kB),{"[class.ng-submitted]":"isSubmitted"}),wi=(()=>{let t=class t extends Yb{constructor(e){super(e)}};t.\u0275fac=function(r){return new(r||t)(l(An,2))},t.\u0275dir=J({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&ie("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:[L]});let n=t;return n})(),Qr=(()=>{let t=class t extends Yb{constructor(e){super(e)}};t.\u0275fac=function(r){return new(r||t)(l(So,10))},t.\u0275dir=J({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&ie("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:[L]});let n=t;return n})();var Bm="VALID",Ub="INVALID",uu="PENDING",zm="DISABLED";function GI(n){return(Xb(n)?n.validators:n)||null}function DB(n){return Array.isArray(n)?UI(n):n||null}function $I(n,t){return(Xb(t)?t.asyncValidators:n)||null}function SB(n){return Array.isArray(n)?WI(n):n||null}function Xb(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function VR(n,t,i){let e=n.controls;if(!(t?Object.keys(e):e).length)throw new Ct(1e3,"");if(!e[i])throw new Ct(1001,"")}function jR(n,t,i){n._forEachChild((e,r)=>{if(i[r]===void 0)throw new Ct(1002,"")})}var hu=class{constructor(t,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(t),this._assignAsyncValidators(i)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Bm}get invalid(){return this.status===Ub}get pending(){return this.status==uu}get disabled(){return this.status===zm}get enabled(){return this.status!==zm}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(bR(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(bR(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(vR(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(vR(t,this._rawAsyncValidators))}hasValidator(t){return Gb(this._rawValidators,t)}hasAsyncValidator(t){return Gb(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(i=>{i.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=uu,t.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){let i=this._parentMarkedDirty(t.onlySelf);this.status=zm,this.errors=null,this._forEachChild(e=>{e.disable(xt(ne({},t),{onlySelf:!0}))}),this._updateValue(),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(xt(ne({},t),{skipPristineCheck:i})),this._onDisabledChange.forEach(e=>e(!0))}enable(t={}){let i=this._parentMarkedDirty(t.onlySelf);this.status=Bm,this._forEachChild(e=>{e.enable(xt(ne({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(xt(ne({},t),{skipPristineCheck:i})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Bm||this.status===uu)&&this._runAsyncValidator(t.emitEvent)),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(i=>i._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?zm:Bm}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=uu,this._hasOwnPendingAsyncValidator=!0;let i=TR(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,i={}){this.errors=t,this._updateControlsErrors(i.emitEvent!==!1)}get(t){let i=t;return i==null||(Array.isArray(i)||(i=i.split(".")),i.length===0)?null:i.reduce((e,r)=>e&&e._find(r),this)}getError(t,i){let e=i?this.get(i):this;return e&&e.errors?e.errors[t]:null}hasError(t,i){return!!this.getError(t,i)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Y,this.statusChanges=new Y}_calculateStatus(){return this._allControlsDisabled()?zm:this.errors?Ub:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(uu)?uu:this._anyControlsHaveStatus(Ub)?Ub:Bm}_anyControlsHaveStatus(t){return this._anyControls(i=>i.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Xb(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let i=this._parent&&this._parent.dirty;return!t&&!!i&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=DB(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=SB(this._rawAsyncValidators)}},lc=class extends hu{constructor(t,i,e){super(GI(i),$I(e,i)),this.controls=t,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,i){return this.controls[t]?this.controls[t]:(this.controls[t]=i,i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange),i)}addControl(t,i,e={}){this.registerControl(t,i),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}removeControl(t,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}setControl(t,i,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],i&&this.registerControl(t,i),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,i={}){jR(this,!0,t),Object.keys(t).forEach(e=>{VR(this,!0,e),this.controls[e].setValue(t[e],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(t,i={}){t!=null&&(Object.keys(t).forEach(e=>{let r=this.controls[e];r&&r.patchValue(t[e],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(t={},i={}){this._forEachChild((e,r)=>{e.reset(t?t[r]:null,{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i),this._updateTouched(i),this.updateValueAndValidity(i)}getRawValue(){return this._reduceChildren({},(t,i,e)=>(t[e]=i.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(i,e)=>e._syncPendingControls()?!0:i);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(i=>{let e=this.controls[i];e&&t(e,i)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[i,e]of Object.entries(this.controls))if(this.contains(i)&&t(e))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(i,e,r)=>((e.enabled||this.disabled)&&(i[r]=e.value),i))}_reduceChildren(t,i){let e=t;return this._forEachChild((r,o)=>{e=i(e,r,o)}),e}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var zI=class extends lc{};var mu=new re("CallSetDisabledState",{providedIn:"root",factory:()=>Zb}),Zb="always";function LR(n,t){return[...t.path,n]}function Um(n,t,i=Zb){YI(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||i==="always")&&t.valueAccessor.setDisabledState?.(n.disabled),TB(n,t),AB(n,t),MB(n,t),EB(n,t)}function qb(n,t,i=!0){let e=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(e),t.valueAccessor.registerOnTouched(e)),Kb(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Qb(n,t){n.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(t)})}function EB(n,t){if(t.valueAccessor.setDisabledState){let i=e=>{t.valueAccessor.setDisabledState(e)};n.registerOnDisabledChange(i),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(i)})}}function YI(n,t){let i=PR(n);t.validator!==null?n.setValidators(fR(i,t.validator)):typeof i=="function"&&n.setValidators([i]);let e=NR(n);t.asyncValidator!==null?n.setAsyncValidators(fR(e,t.asyncValidator)):typeof e=="function"&&n.setAsyncValidators([e]);let r=()=>n.updateValueAndValidity();Qb(t._rawValidators,r),Qb(t._rawAsyncValidators,r)}function Kb(n,t){let i=!1;if(n!==null){if(t.validator!==null){let r=PR(n);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==t.validator);o.length!==r.length&&(i=!0,n.setValidators(o))}}if(t.asyncValidator!==null){let r=NR(n);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==t.asyncValidator);o.length!==r.length&&(i=!0,n.setAsyncValidators(o))}}}let e=()=>{};return Qb(t._rawValidators,e),Qb(t._rawAsyncValidators,e),i}function TB(n,t){t.valueAccessor.registerOnChange(i=>{n._pendingValue=i,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn==="change"&&BR(n,t)})}function MB(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn==="blur"&&n._pendingChange&&BR(n,t),n.updateOn!=="submit"&&n.markAsTouched()})}function BR(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function AB(n,t){let i=(e,r)=>{t.valueAccessor.writeValue(e),r&&t.viewToModelUpdate(e)};n.registerOnChange(i),t._registerOnDestroy(()=>{n._unregisterOnChange(i)})}function zR(n,t){n==null,YI(n,t)}function RB(n,t){return Kb(n,t)}function qI(n,t){if(!n.hasOwnProperty("model"))return!1;let i=n.model;return i.isFirstChange()?!0:!Object.is(t,i.currentValue)}function FB(n){return Object.getPrototypeOf(n.constructor)===IR}function HR(n,t){n._syncPendingControls(),t.forEach(i=>{let e=i.control;e.updateOn==="submit"&&e._pendingChange&&(i.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function QI(n,t){if(!t)return null;Array.isArray(t);let i,e,r;return t.forEach(o=>{o.constructor===li?i=o:FB(o)?e=o:r=o}),r||e||i||null}function OB(n,t){let i=n.indexOf(t);i>-1&&n.splice(i,1)}var PB={provide:So,useExisting:ci(()=>Eo)},Hm=Promise.resolve(),Eo=(()=>{let t=class t extends So{constructor(e,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Y,this.form=new lc({},UI(e),WI(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Hm.then(()=>{let r=this._findContainer(e.path);e.control=r.registerControl(e.name,e.control),Um(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Hm.then(()=>{let r=this._findContainer(e.path);r&&r.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Hm.then(()=>{let r=this._findContainer(e.path),o=new lc({});zR(o,e),r.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Hm.then(()=>{let r=this._findContainer(e.path);r&&r.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,r){Hm.then(()=>{this.form.get(e.path).setValue(r)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,HR(this.form,this._directives),this.ngSubmit.emit(e),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}};t.\u0275fac=function(r){return new(r||t)(l(Qn,10),l(Wm,10),l(mu,8))},t.\u0275dir=J({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,o){r&1&&A("submit",function(c){return o.onSubmit(c)})("reset",function(){return o.onReset()})},inputs:{options:[z.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ae([PB]),L]});let n=t;return n})();function _R(n,t){let i=n.indexOf(t);i>-1&&n.splice(i,1)}function yR(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var Wt=class extends hu{constructor(t=null,i,e){super(GI(i),$I(e,i)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(i),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Xb(i)&&(i.nonNullable||i.initialValueIsDefault)&&(yR(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,i={}){this.value=this._pendingValue=t,this._onChange.length&&i.emitModelToViewChange!==!1&&this._onChange.forEach(e=>e(this.value,i.emitViewToModelChange!==!1)),this.updateValueAndValidity(i)}patchValue(t,i={}){this.setValue(t,i)}reset(t=this.defaultValue,i={}){this._applyFormState(t),this.markAsPristine(i),this.markAsUntouched(i),this.setValue(this.value,i),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){_R(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){_R(this._onDisabledChange,t)}_forEachChild(t){}_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(t){yR(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var NB=n=>n instanceof Wt;var VB={provide:An,useExisting:ci(()=>Ga)},wR=Promise.resolve(),Ga=(()=>{let t=class t extends An{constructor(e,r,o,a,c,m){super(),this._changeDetectorRef=c,this.callSetDisabledState=m,this.control=new Wt,this._registered=!1,this.name="",this.update=new Y,this._parent=e,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=QI(this,a)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let r=e.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),qI(e,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(e){this.viewModel=e,this.update.emit(e)}_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(){Um(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(e){wR.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let r=e.isDisabled.currentValue,o=r!==0&&xe(r);wR.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?LR(e,this._parent):[e]}};t.\u0275fac=function(r){return new(r||t)(l(So,9),l(Qn,10),l(Wm,10),l(qr,10),l(ce,8),l(mu,8))},t.\u0275dir=J({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[z.None,"disabled","isDisabled"],model:[z.None,"ngModel","model"],options:[z.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ae([VB]),L,he]});let n=t;return n})(),sa=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=J({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let n=t;return n})(),jB={provide:qr,useExisting:ci(()=>Gm),multi:!0},Gm=(()=>{let t=class t extends IR{writeValue(e){let r=e??"";this.setProperty("value",r)}registerOnChange(e){this.onChange=r=>{e(r==""?null:parseFloat(r))}}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ge(t)))(o||t)}})(),t.\u0275dir=J({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,o){r&1&&A("input",function(c){return o.onChange(c.target.value)})("blur",function(){return o.onTouched()})},features:[Ae([jB]),L]});let n=t;return n})();var KI=new re(""),LB={provide:An,useExisting:ci(()=>$a)},$a=(()=>{let t=class t extends An{set isDisabled(e){}constructor(e,r,o,a,c){super(),this._ngModelWarningConfig=a,this.callSetDisabledState=c,this.update=new Y,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(r),this.valueAccessor=QI(this,o)}ngOnChanges(e){if(this._isControlChanged(e)){let r=e.form.previousValue;r&&qb(r,this,!1),Um(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}qI(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&qb(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}};t._ngModelWarningSentOnce=!1,t.\u0275fac=function(r){return new(r||t)(l(Qn,10),l(Wm,10),l(qr,10),l(KI,8),l(mu,8))},t.\u0275dir=J({type:t,selectors:[["","formControl",""]],inputs:{form:[z.None,"formControl","form"],isDisabled:[z.None,"disabled","isDisabled"],model:[z.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Ae([LB]),L,he]});let n=t;return n})(),BB={provide:So,useExisting:ci(()=>Ai)},Ai=(()=>{let t=class t extends So{constructor(e,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Y,this._setValidators(e),this._setAsyncValidators(r)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Kb(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let r=this.form.get(e.path);return Um(r,e,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),r}getControl(e){return this.form.get(e.path)}removeControl(e){qb(e.control||null,e,!1),OB(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,r){this.form.get(e.path).setValue(r)}onSubmit(e){return this.submitted=!0,HR(this.form,this.directives),this.ngSubmit.emit(e),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{let r=e.control,o=this.form.get(e.path);r!==o&&(qb(r||null,e),NB(o)&&(Um(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let r=this.form.get(e.path);zR(r,e),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let r=this.form.get(e.path);r&&RB(r,e)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){YI(this.form,this),this._oldForm&&Kb(this._oldForm,this)}_checkFormPresent(){this.form}};t.\u0275fac=function(r){return new(r||t)(l(Qn,10),l(Wm,10),l(mu,8))},t.\u0275dir=J({type:t,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&A("submit",function(c){return o.onSubmit(c)})("reset",function(){return o.onReset()})},inputs:{form:[z.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ae([BB]),L,he]});let n=t;return n})();var zB={provide:An,useExisting:ci(()=>To)},To=(()=>{let t=class t extends An{set isDisabled(e){}constructor(e,r,o,a,c){super(),this._ngModelWarningConfig=c,this._added=!1,this.name=null,this.update=new Y,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=QI(this,a)}ngOnChanges(e){this._added||this._setUpControl(),qI(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return LR(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}};t._ngModelWarningSentOnce=!1,t.\u0275fac=function(r){return new(r||t)(l(So,13),l(Qn,10),l(Wm,10),l(qr,10),l(KI,8))},t.\u0275dir=J({type:t,selectors:[["","formControlName",""]],inputs:{name:[z.None,"formControlName","name"],isDisabled:[z.None,"disabled","isDisabled"],model:[z.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[Ae([zB]),L,he]});let n=t;return n})();function HB(n){return typeof n=="number"?n:parseInt(n,10)}var UR=(()=>{let t=class t{constructor(){this._validator=Wb}ngOnChanges(e){if(this.inputName in e){let r=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Wb,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=J({type:t,features:[he]});let n=t;return n})();var UB={provide:Qn,useExisting:ci(()=>Ya),multi:!0};var Ya=(()=>{let t=class t extends UR{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=xe,this.createValidator=e=>DR}enabled(e){return e}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ge(t)))(o||t)}})(),t.\u0275dir=J({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,o){r&2&&De("required",o._enabled?"":null)},inputs:{required:"required"},features:[Ae([UB]),L]});let n=t;return n})();var WB={provide:Qn,useExisting:ci(()=>XI),multi:!0},XI=(()=>{let t=class t extends UR{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>HB(e),this.createValidator=e=>SR(e)}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ge(t)))(o||t)}})(),t.\u0275dir=J({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&De("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Ae([WB]),L]});let n=t;return n})();var WR=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=X({type:t}),t.\u0275inj=K({});let n=t;return n})(),HI=class extends hu{constructor(t,i,e){super(GI(i),$I(e,i)),this.controls=t,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,i={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}insert(t,i,e={}){this.controls.splice(t,0,i),this._registerControl(i),this.updateValueAndValidity({emitEvent:e.emitEvent})}removeAt(t,i={}){let e=this._adjustIndex(t);e<0&&(e=0),this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:i.emitEvent})}setControl(t,i,e={}){let r=this._adjustIndex(t);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:e.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,i={}){jR(this,!1,t),t.forEach((e,r)=>{VR(this,!1,r),this.at(r).setValue(e,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(t,i={}){t!=null&&(t.forEach((e,r)=>{this.at(r)&&this.at(r).patchValue(e,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(t=[],i={}){this._forEachChild((e,r)=>{e.reset(t[r],{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i),this._updateTouched(i),this.updateValueAndValidity(i)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(i=>i._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((i,e)=>e._syncPendingControls()?!0:i,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((i,e)=>{t(i,e)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(i=>i.enabled&&t(i))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}};function xR(n){return!!n&&(n.asyncValidators!==void 0||n.validators!==void 0||n.updateOn!==void 0)}var qa=(()=>{let t=class t{constructor(){this.useNonNullable=!1}get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,r=null){let o=this._reduceControls(e),a={};return xR(r)?a=r:r!==null&&(a.validators=r.validator,a.asyncValidators=r.asyncValidator),new lc(o,a)}record(e,r=null){let o=this._reduceControls(e);return new zI(o,r)}control(e,r,o){let a={};return this.useNonNullable?(xR(r)?a=r:(a.validators=r,a.asyncValidators=o),new Wt(e,xt(ne({},a),{nonNullable:!0}))):new Wt(e,r,o)}array(e,r,o){let a=e.map(c=>this._createControl(c));return new HI(a,r,o)}_reduceControls(e){let r={};return Object.keys(e).forEach(o=>{r[o]=this._createControl(e[o])}),r}_createControl(e){if(e instanceof Wt)return e;if(e instanceof hu)return e;if(Array.isArray(e)){let r=e[0],o=e.length>1?e[1]:null,a=e.length>2?e[2]:null;return this.control(r,o,a)}else return this.control(e)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Ft=(()=>{let t=class t{static withConfig(e){return{ngModule:t,providers:[{provide:mu,useValue:e.callSetDisabledState??Zb}]}}};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=X({type:t}),t.\u0275inj=K({imports:[WR]});let n=t;return n})(),$i=(()=>{let t=class t{static withConfig(e){return{ngModule:t,providers:[{provide:KI,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:mu,useValue:e.callSetDisabledState??Zb}]}}};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=X({type:t}),t.\u0275inj=K({imports:[WR]});let n=t;return n})();var GR=rn(Mn());var ot={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"}],detailed:[{header:"Gruppe",field:"name"},{header:"Kommentar",field:"comment"}],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:"Repr. Benutzer",field:n=>n.repUser?.username},{header:"G\xFCltig von",field:n=>n.validFrom?new Date(n.validFrom).toLocaleDateString("de-DE"):""},{header:"G\xFCltig bis",field:n=>n.validTo?new Date(n.validTo).toLocaleDateString("de-DE"):""}]},config_url:"/assets/config.json",constants:{date_formats:[{value:"dd.MM.yyyy",name:"dd.MM.yyyy"},{value:"MM.dd.yyyy",name:"MM.dd.yyyy"},{value:"yyyy-MM-dd",name:"yyyy-MM-dd"}],languages:[{value:"de-DE",name:"de-DE"},{value:"en-US",name:"en-US"}]}};var di=(()=>{let t=class t{constructor(e,r){this.document=e,this.meta=r,this.loaded=!1,this.apiRoute={user:this.getApiUrl(ot.routes.user),group:this.getApiUrl(ot.routes.group),module:this.getApiUrl(ot.routes.module),moduleOfUser:this.getApiUrl(ot.routes.moduleOfUser),groupOfUser:this.getApiUrl(ot.routes.groupOfUser),userRep:this.getApiUrl(ot.routes.userRep),dirGroup:this.getApiUrl(ot.routes.dirGroup),dirUser:this.getApiUrl(ot.routes.dirUser),directory:this.getApiUrl(ot.routes.directory),login:this.getApiUrl(ot.routes.login),logout:this.getApiUrl(ot.routes.logout),loginCheck:this.getApiUrl(ot.routes.loginCheck)}}lazyLoad(){this.loaded||(this.base_href=this.document.querySelector("base")?.getAttribute("href")||"/",this.api_url=this.meta.getTag('name="api-url"')?.content??ot.default_api_url,this.loaded=!0)}getBaseHref(){return this.lazyLoad(),this.base_href}getApiUrl(e=""){return this.lazyLoad(),this.api_url+e}};t.\u0275fac=function(r){return new(r||t)(k(ye),k(DA))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var pu=(()=>{let t=class t{constructor(e,r,o){this.router=e,this.http=r,this.loginUrl=o.apiRoute.login,this.logoutUrl=o.apiRoute.logout,this.checkUrl=o.apiRoute.loginCheck}isAuthenticated(){return yt(this,null,function*(){try{let e=yield Ln(this.http.get(this.checkUrl,{withCredentials:!0}));return Jb=e,e}catch{return this.showErrorAlert(),!1}})}login(e,r){return new Lt(o=>{let a={username:e,password:r};this.http.post(this.loginUrl,a,{withCredentials:!0}).subscribe({next:c=>{Jb=!0,o.next(c)},error:c=>{this.showErrorAlert(),o.error(c)},complete:()=>{o.complete()}})})}logout(){return new Lt(e=>{this.http.post(this.logoutUrl,{},{withCredentials:!0}).subscribe({next:r=>{this.router.navigate(["/"]),Jb=!1,e.next(r)},error:r=>e.error(r),complete:()=>e.complete()})})}showErrorAlert(){GR.default.fire({icon:"error",title:"Oops...",text:"Der Server antwortet nicht."})}};t.\u0275fac=function(r){return new(r||t)(k(Gn),k(pi),k(di))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Jb=!1,$R=()=>Jb;var ev=(()=>{let t=class t{constructor(e,r){this.authService=e,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:e=>{this.waitRes=!1,YR.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}};t.\u0275fac=function(r){return new(r||t)(l(pu),l(Wa))},t.\u0275cmp=R({type:t,selectors:[["app-login"]],inputs:{afterLogin:"afterLogin"},standalone:!0,features:[se],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),A("ngSubmit",function(){return o.login()}),f(6,"div",6)(7,"label",7),T(8,"Benutzername"),v(),f(9,"input",8),fn("ngModelChange",function(c){return Hi(o.username,c)||(o.username=c),c}),v()(),f(10,"div",6)(11,"label",9),T(12,"Kennwort"),v(),f(13,"div",10)(14,"input",11),fn("ngModelChange",function(c){return Hi(o.password,c)||(o.password=c),c}),v(),f(15,"i",12),A("click",function(){return o.onPasswordEyeClicked()}),v()()(),f(16,"button",13),E(17,"span",14),T(18,"Anmeldung"),v()()()()()()()),r&2&&(b(9),gn("ngModel",o.username),b(5),w("type",o.IsPwdHidden?"password":"text"),gn("ngModel",o.password),b(),w("ngClass","bi "+(o.IsPwdHidden?"bi-eye-slash":"bi-eye")+" mt-2"),b(2),ie("spinner-border",o.waitRes)("spinner-border-sm",o.waitRes))},dependencies:[le,$t,Ft,sa,li,wi,Qr,Ya,Ga,Eo],styles:["i[_ngcontent-%COMP%]{margin-left:-30px;cursor:pointer}"]});let n=t;return n})();var gu=(()=>{let t=class t{constructor(e,r,o){this.dialog=e,this.authService=r,this.router=o}canActivate(e,r){return yt(this,null,function*(){try{let o=yield this.authService.isAuthenticated();return o||this.router.navigate(["/"]),o}catch{return!1}})}openLogin(){let e=this.dialog.open(ev,{width:"35vw",data:{afterLogin:()=>{e.close()}}});return e}};t.\u0275fac=function(r){return new(r||t)(k($r),k(pu),k(Gn))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var tv=class n{token;stringKey;constructor(t){this.token=t,this.stringKey=this.generateStringKey()}static from(t){return new n(t)}toString(){return this.stringKey}generateStringKey(){return typeof this.token!="string"?this.token.toString().split(" ")[1]||"":this.token}},$m=class extends tv{constructor(t){super(t)}getError(){return typeof this.token=="string"?"Key not found for the token: "+this.token:"Key not found for the token: "+this.token.toString()}},JI=class{records=new Map;getKey(t){let i=this.records.get(t);return i||new $m(t)}getKeyAndTryRegister(t,i){return this.has(t)||this.set(t,i),this.getKey(t)}has(t){return this.records.has(t)}set(t,i){this.records.set(t,tv.from(t))}clear(){this.records.clear()}},e1=class{providers=new Map;get(t){let i=this.providers.get(t);if(!i)throw new Error(`There is no provider for ${t.toString()}.`);return i}has(t){return this.providers.has(t)}set(t,i){this.providers.set(t,i)}clear(){this.providers.clear()}},fu=class{serviceToken;constructor(t){this.serviceToken=t}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}},Ym=class{provider;constructor(t){this.provider=t}getDeps(){return(this.provider.services||[]).map(t=>new fu(t))}},t1=class extends Ym{constructor(t){super(t)}create(t){return new this.provider(...t)}},i1=class extends Ym{constructor(t){super(t)}getDeps(){return[]}create(t){return this.provider}},n1=class extends Ym{constructor(t){super(t)}getDeps(){return(this.provider.deps||[]).map(t=>new fu(t))}create(t){return this.provider.create(...t)}},qm=class{},r1=class extends qm{providers=[];getDeps(){return this.providers.map(t=>(t.services||[]).map(i=>new fu(i)))}create(t){return t.map((i,e)=>new this.providers[e](...i))}addProvider(t){this.providers.push(t)}},o1=class extends qm{providers=[];getDeps(){return this.providers.map(t=>(t.deps||[]).map(i=>new fu(i)))}create(t){return t.map((i,e)=>this.providers[e].create(...i))}addProvider(t){this.providers.push(t)}},a1=class extends qm{providers=[];getDeps(){return[]}create(t){return[...this.providers]}addProvider(t){this.providers.push(t)}},s1=class{keyRegister;providerManager=new e1;collectionProviders=new Map;constructor(t){this.keyRegister=t}provide(t,i){return i===void 0?this.provide(t,t):this.provideClass(t,i)}provideClass(t,i){return this.addProvider(t,i,e=>new t1(e))}provideValue(t,i){return this.addProvider(t,i,e=>new i1(e))}provideFactory(t,i){return this.addProvider(t,i,e=>new n1(e))}provideCollection(t,i){return this.addCollectionProvider(t,i,()=>new r1)}provideFactoryCollection(t,i){return this.addCollectionProvider(t,i,()=>new o1)}provideValueCollection(t,i){return this.addCollectionProvider(t,i,()=>new a1)}clear(){this.providerManager.clear(),this.collectionProviders.clear()}getRecordFactory(t){return this.providerManager.get(t)}getCollectionRecordFactory(t){return this.collectionProviders.get(t)}addProvider(t,i,e){let r=this.keyRegister.getKeyAndTryRegister(t,i);this.providerManager.set(r,e(i))}addCollectionProvider(t,i,e){let r=this.keyRegister.getKeyAndTryRegister(t,i);if(this.collectionProviders.has(r)){let o=this.collectionProviders.get(r);o&&o.addProvider(i)}else{let o=e();o.addProvider(i),this.collectionProviders.set(r,o)}}},c1=class{records=new Map;get(t){return this.records.get(t)}has(t){return this.records.has(t)}set(t,i){this.records.set(t,i)}clear(){this.records.clear()}},l1=class{keyRegister;containerProvider;recordManager=new c1;collectionRecords=new Map;constructor(t,i){this.keyRegister=t,this.containerProvider=i}resolve(t){return this.innerResolve(t)}resolveCollection(t){return this.innerResolveCollection(t)}clear(){this.recordManager.clear(),this.collectionRecords.clear()}resolveDependencies(t){return t.getDeps().map(e=>e.isCollection()?this.innerResolveCollection(e.getToken(),e.isOptional()):this.resolveDependency(e))}resolveDependency(t){return this.innerResolve(t.getToken(),t.isOptional())}innerResolve(t,i){let e=this.keyRegister.getKey(t);if(e instanceof $m){if(i)return null;throw new Error(e.getError())}if(!this.recordManager.has(e)){let r=this.containerProvider.getRecordFactory(e),o=this.resolveDependencies(r),a=r.create(o);this.recordManager.set(e,a)}return this.recordManager.get(e)}innerResolveCollection(t,i=!1){let e=this.keyRegister.getKey(t);if(e instanceof $m){if(i)return null;throw new Error(e.getError())}if(!this.collectionRecords.has(e)){let r=this.containerProvider.getCollectionRecordFactory(e);if(r){let o=r.getDeps().map(c=>c.map(m=>m.isCollection()?this.innerResolveCollection(m.getToken(),m.isOptional()):this.resolveDependency(m))),a=r.create(o);this.collectionRecords.set(e,a)}}return this.collectionRecords.get(e)}},d1=class{keyRegister=new JI;containerProvider=new s1(this.keyRegister);containerRecord=new l1(this.keyRegister,this.containerProvider);resolve(t){return this.containerRecord.resolve(t)}resolveCollection(t){return this.containerRecord.resolveCollection(t)}provide(t,i){return this.containerProvider.provide(t,i),this}provideClass(t,i){return this.containerProvider.provideClass(t,i),this}provideValue(t,i){return this.containerProvider.provideValue(t,i),this}provideFactory(t,i){return this.containerProvider.provideFactory(t,i),this}provideCollection(t,i){return this.containerProvider.provideCollection(t,i),this}provideFactoryCollection(t,i){return this.containerProvider.provideFactoryCollection(t,i),this}provideValueCollection(t,i){return this.containerProvider.provideValueCollection(t,i),this}clear(){this.keyRegister.clear(),this.containerProvider.clear(),this.containerRecord.clear()}clearOnlyRecords(){this.containerRecord.clear()}};function w1(){return new d1}var iv=class{subscriber;closed=!1;constructor(t,i){this.subscriber=t,i!=null&&(this.closed=i)}unsubscribe(){this.closed||(this.closed=!0,this.subscriber.unsubscribe())}getFinalize(){return this.subscriber.getFinalize()}},Kn=class{observer;finalize=()=>{};completed=!1;closed=!1;constructor(t){this.observer=t}next(t){this.isCompleted()||this.observer&&this.observer.next&&this.observer.next(t)}error(t){this.completed||(this.observer&&this.observer.error&&this.observer.error(t),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(t){t&&typeof t=="function"&&(this.finalize=t)}getFinalize(){return this.finalize}isCompleted(){return this.completed}isClosed(){return this.closed}getObserver(){return this.observer}},Ri=class{generatorFn;source;generatorFinalize;constructor(t){this.generatorFn=t}pipe(...t){this.source=this;for(let i of t)this.source=this.innerPipe(i,this.source);return this.source}subscribe(t){let i;if(t instanceof Kn)i=t;else if(t!==null&&this.isObserver(t)){let{next:e,error:r,complete:o}=t;i=this.createSubscriber(e,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(t,i,e){return new Kn({next:t,error:i,complete:e})}getSubscription(t){return new iv(t)}innerPipe(t,i){return(e=>t(e))(i)}isObserver(t){return typeof t=="object"}};function qR(){return new iv(new Kn({}),!0)}var fi=class extends Ri{thrownError=null;isCompleted=!1;isClosed=!1;subscribers=[];constructor(){super()}next(t){if(this.verifyNotClosed(),!(this.isCompleted||this.thrownError!==null))for(let i of this.subscribers)i.next(t)}error(t){if(this.verifyNotClosed(),!this.isCompleted){this.thrownError=t;for(let i of this.subscribers)i.error(t);this.subscribers.length=0}}complete(){if(this.verifyNotClosed(),!this.isCompleted){this.isCompleted=!0;for(let t of this.subscribers)t.complete();this.subscribers.length=0}}subscribe(t){this.verifyNotClosed();let i;return t instanceof Kn?i=t:i=this.createSubscriber(arguments[0],arguments[1],arguments[2]),this.thrownError!==null?(i.error(this.thrownError),qR()):this.isCompleted?(i.complete(),qR()):(this.subscribers.push(i),this.getSubscription(i))}unsubscribe(){this.isCompleted=!0,this.isClosed=!0,this.subscribers.length=0}toObservable(){return new Ri(t=>{let i=this.subscribe(e=>t.next(e),e=>t.error(e),()=>t.complete());return()=>i.unsubscribe()})}verifyNotClosed(){if(this.isClosed)throw new Error("Observable already closed")}},bu=class extends fi{constructor(){super()}},uc=(()=>{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})(),nv=class{aggregateId;messageType;messageId;constructor(t,i,e=uc.generate()){this.aggregateId=t,this.messageType=i,this.messageId=e}getMessageType(){return this.messageType}getAggregateId(){return this.aggregateId}getMessageId(){return this.messageId}toString(){return this.messageType}equalsByType(t){return this.getMessageType()===t.getMessageType()}equals(t){return this.getMessageType()===t.getMessageType()&&this.messageId===t.messageId}ofMessageType(t){return Array.isArray(t)?!!t.find(e=>this.isMessageType(e)):this.isMessageType(t)}isMessageType(t){return this.getMessageType()===t}},Ka=class extends nv{payload;constructor(t,i,e){super(t,e),this.payload=i}isSameType(t){return this.constructor.name===t.constructor.name}getPayload(){return this.payload}};function GB(...n){return new Ri(t=>{n.forEach(i=>{t.next(i)}),t.complete()})}function x1(){return new Ri(n=>{n.complete()})}function xl(n){return t=>n===0?x1():new Ri(i=>{let e=0,r=new Kn({next:()=>{},error:a=>i.error(a),complete:()=>i.complete()});return r.observer.next=function(a){e<n&&(i.next(a),e++,e===n&&r.complete())},t.subscribe(r).getFinalize()})}function fv(n,t,i){let e=t||(o=>{n.next(o)}),r=i||(()=>{n.complete()});return new Kn({next:e,error:o=>n.error(o),complete:r})}function $B(n){return new Kn({next:t=>n.next(t),error:t=>n.error(t),complete:()=>n.complete()})}function ut(n){return t=>new Ri(i=>{let e=fv(i,r=>{n(r)&&i.next(r)});return t.subscribe(e).getFinalize()})}var rv=class{domainEvents=[];domainEvents$=new fi;next(t){this.domainEvents.push(t),this.domainEvents$.next(t)}findEventByType(t){return this.getEvents().reverse().find(e=>e.constructor.name===t)}waitForEvent(t){let i=this.findEventByType(t);return i?GB(i):this.waitForNextEventOccurrence(t)}waitForNextEventOccurrence(t){let i;if(t instanceof Ka)i=t.constructor.name;else if(typeof t=="string")i=t;else return new Ri(e=>{e.error(new Error("Unsupported argument type."))});return this.domainEvents$.toObservable().pipe(ut(e=>e.constructor.name===i),xl(1))}getEvents(){return this.domainEvents}},Qm=class extends fi{constructor(){super()}},Km=(()=>{class n extends Ri{commandsStream;constructor(i){super(),this.commandsStream=i}static services=[Qm];subscribe(){return this.commandsStream.toObservable().subscribe(arguments[0],arguments[1],arguments[2])}ofCommandHandler(...i){return this.commandsStream.toObservable().pipe(ut(e=>i.some(r=>r.forCommand(e))))}ofCreateAggregateHandler(...i){return this.commandsStream.toObservable().pipe(ut(e=>i.some(r=>r.forCommand(e))))}ofNullHandler(i,e){return this.commandsStream.toObservable().pipe(ut(r=>{if(!i&&!e)return!0;let o=!0;return i&&(o=!i.some(a=>a.forCommand(r))),e&&(o=o&&!e.some(a=>a.forCommand(r))),o}))}}return n})(),bi=class n{value;constructor(t){return n.isValueEmpty(t)?this.value=null:this.value=t,this}static empty(){return new n(null)}static of(t){return new n(t)}static isValueEmpty(t){return typeof t>"u"||t===null}isEmpty(){return n.isValueEmpty(this.value)}isPresent(){return!this.isEmpty()}filter(t){return this.isPresent()&&t(this.value)?this:n.empty()}forEach(t){this.isPresent()&&t(this.value)}map(t){return this.isPresent()?new n(t(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(t){return this.isPresent()?this.value:t()}ifPresent(t){this.isPresent()&&t(this.value)}ifEmpty(t){this.isEmpty()&&t()}orElse(t){return this.isPresent()?this:t()}},vu=class{map=new Map;constructor(){}add(t,i){this.map.set(t,i)}get(t){return bi.of(this.map.get(t))}has(t){return this.map.has(t)}},_u=class{map=new Map;constructor(){}add(t,i){this.map.set(t,i)}get(t){return bi.of(this.map.get(t))}has(t){return this.map.has(t)}},Xm=class{aggregateFactoryArchive=Q.resolve(vu);aggregateRepositoryArchive=Q.resolve(_u);constructor(){}register(t){if(t){let i=new Set,e=[];t.filter(r=>{i.has(r.key)||(i.add(r.key),e.push(r))}),e.forEach(r=>{let o=Q.resolve(r.factory),a=Q.resolve(r.repository);this.aggregateFactoryArchive.has(r.key)||this.aggregateFactoryArchive.add(r.key,o),this.aggregateRepositoryArchive.has(r.key)||this.aggregateRepositoryArchive.add(r.key,a)})}}};function Zn(n){return t=>new Ri(i=>{let e=$B(i),r=new Kn({next:()=>e.complete()});return n.subscribe(r),t.subscribe(e).getFinalize()})}function Za(n){return new Lt(t=>{let i=n.subscribe(e=>t.next(e),e=>t.error(e),()=>t.complete());return()=>i.unsubscribe()})}var sn=class{hermesUnsubscribe$=new fi;constructor(){}onDestroy(){this.hermesUnsubscribe()}takeUntil(){return _e(Za(this.hermesUnsubscribe$))}hermesUnsubscribe(){this.hermesUnsubscribe$.next(),this.hermesUnsubscribe$.complete()}hermesTakeUntil(){return Zn(this.hermesUnsubscribe$)}isNotStopped(){return!this.hermesUnsubscribe$.isCompleted}},Zm=class extends sn{commandBus=Q.resolve(Km);constructor(){super()}register(t){if(t){let i=new Set,e=[];t.filter(r=>{i.has(r.commandHandler)||(i.add(r.commandHandler),e.push(r))}),e.forEach(r=>{this.commandBus.ofCommandHandler(r).pipe(this.hermesTakeUntil()).subscribe(o=>{r.handleCommand(o)})})}}registerAggregateCommandHandlers(t){if(t){let i=new Set,e=[];t.filter(r=>{i.has(r.createAggregateCommandHandler)||(i.add(r.createAggregateCommandHandler),e.push(r))}),e.forEach(r=>{this.commandBus.ofCreateAggregateHandler(r).pipe(this.hermesTakeUntil()).subscribe(o=>{r.handleCommand(o)})})}}},Kr=(()=>{class n extends Ri{eventStream;constructor(i){super(),this.eventStream=i}static services=[bu];subscribe(){return this.eventStream.toObservable().subscribe(arguments[0],arguments[1],arguments[2])}ofEvents(i){return this.eventStream.toObservable().pipe(ut(e=>i.some(r=>this.createEventInstance(r).equalsByType(e))))}ofEventHandlers(i){return this.eventStream.toObservable().pipe(ut(e=>i.some(r=>r.forEvents([e]))))}createEventInstance(i){let e=[],r=i.constructor.length;if(e.fill(void 0,0,r),e.length===0)return new i;if(e.length===1)return new i(e[0]);if(e.length===2)return new i(e[0],e[1]);if(e.length===3)return new i(e[0],e[1],e[2]);if(e.length===4)return new i(e[0],e[1],e[2],e[3]);if(e.length===5)return new i(e[0],e[1],e[2],e[3],e[4]);throw new Error("DomainEventBus constructor out of arguments")}}return n})(),u1=(()=>{class n extends sn{domainEventBus;unsub$=new fi;constructor(i){super(),this.domainEventBus=i}static services=[Kr];init(i){if(i){let e=new Set,r=[];i.filter(o=>{e.has(o.domainEventHandler)||(e.add(o.domainEventHandler),r.push(o))}),r.forEach(o=>{this.domainEventBus.ofEventHandlers([o]).pipe(Zn(this.unsub$),this.hermesTakeUntil()).subscribe(a=>{o.handleEvent(a)})})}}reinit(i){this.stop(),this.init(i)}stop(){this.unsub$.next(),this.unsub$.complete(),this.unsub$=new fi}}return n})(),bv="GUI - COMMAND_LOGGER_ENABLED",vv="GUI - EVENT_LOGGER_ENABLED",ov=class{domainName;setDomain(t){this.domainName=t}log(t){this.shouldPrint(t)&&this.print(t)}shouldPrint(t){return this.domainName?t.toString().includes(this.domainName):!0}},yu=class extends ov{},av=class extends yu{enabled=!1;unsubscribe$=new fi;commandBus=Q.resolve(Km);constructor(){super(),this.commandBus.pipe(ut(()=>this.enabled),Zn(this.unsubscribe$)).subscribe(t=>{this.log(t)})}onDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}start(){this.enabled=!0}stop(){this.enabled=!1}print(t){console.log(t.toString(),t)}},sv=class extends yu{start(){}stop(){}print(t){}},wu=class extends ov{constructor(){super()}},cv=class extends wu{constructor(){super()}start(){}stop(){}print(t){}},Jm=class{stores=[];register(t){this.stores.push(t)}captureAggregatesSnapshot(t){if(!t)return{};let i={};return this.stores.forEach(e=>{let r=e.findById(t);if(r){let o=r.constructor.name;i[o]=r}}),this.cloneAggregates(i)}cloneAggregates(t){return t}},lv=class extends wu{enabled=!1;unsubscribe$=new fi;eventBus=Q.resolve(Kr);aggregateStoreRegister=Q.resolve(Jm);constructor(){super(),this.eventBus.pipe(ut(()=>this.enabled),Zn(this.unsubscribe$)).subscribe(t=>{this.log(t)})}onDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}start(){this.enabled=!0}stop(){this.enabled=!1}print(t){let i=t.getAggregateId(),e=this.aggregateStoreRegister.captureAggregatesSnapshot(i);console.log(t.toString(),t,e)}},KR="Hermes - aggregateDefinitionToken",h1="HERMES - DOMAIN_EVENT_HANDLERS_TOKEN",XR="HERMES - CREATE_AGGREGATE_COMMAND_HANDLERS",ZR="HERMES - COMMAND_HANDLERS_TOKEN",JR=(()=>{class n extends sn{aggregateDefinitionInitializer;commandHandlerInitializer;domainEventHandlerInitializer;commandBus;definedAggregate;eventHandlers;aggregateCommandHandlers;commandHandlers;started=!1;constructor(i,e,r,o,a,c,m,x){super(),this.aggregateDefinitionInitializer=i,this.commandHandlerInitializer=e,this.domainEventHandlerInitializer=r,this.commandBus=o,this.definedAggregate=a,this.eventHandlers=c,this.aggregateCommandHandlers=m,this.commandHandlers=x,this.eventHandlers===null&&(this.eventHandlers=[]),this.aggregateCommandHandlers===null&&(this.aggregateCommandHandlers=[]),this.commandHandlers===null&&(this.commandHandlers=[])}static services=[Xm,Zm,u1,Km,{inject:KR,collection:!0},{inject:h1,collection:!0,optional:!0},{inject:XR,collection:!0,optional:!0},{inject:ZR,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,e){this.commandBus.ofNullHandler(i,e).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 YB(n,t,i){return n?t:i}function qB(n,t,i){return n?t:i}function eF(){Q.resolve(JR).run()}var Yi=class{commandStream=Q.resolve(Qm);dispatch(t){this.commandStream.next(t)}},lt=(()=>{class n{eventStream;constructor(i){this.eventStream=i}static services=[bu];publish(i){if(Array.isArray(i))for(let e of i)this.publishEvent(e);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 Ka||console.error(`${i} is not a DomainEvent`),this.eventStream.next(i)}}return n})(),Q=w1();Q.provideValue(vv,!0);Q.provideValue(bv,!0);Q.provide(av);Q.provide(sv);Q.provide(cv);Q.provide(lv);Q.provide(Kr);Q.provide(Jm);Q.provideFactory(yu,{create:YB,deps:[bv,av,sv]});Q.provideFactory(wu,{create:qB,deps:[vv,lv,cv]});Q.provide(vu,vu);Q.provide(lt);Q.provide(_u);Q.provide(bu,bu);Q.provide(rv,rv);Q.provide(Km,Km);Q.provide(Qm);Q.provide(Yi);Q.provide(Xm,Xm);Q.provide(Zm,Zm);Q.provide(u1,u1);Q.provide(JR);var dc=class extends nv{};var hl=class{},ml=class{aggregateId;type;constructor(t,i){this.aggregateId=t,this.type=i}getAggregateId(){return this.aggregateId}getType(){return this.type}equals(t){return this.equalsByType(t)&&this.getAggregateId().equals(t.getAggregateId())}equalsByType(t){return this.getType()===t.getType()}};var pl=class{},m1=class{},gl=class{type;aggregateId;events;constructor(t,i){this.type=i,this.aggregateId=t,this.events=[]}getId(){return this.aggregateId}getType(){return this.type}getEvents(){return this.events}addEvent(t){if(Array.isArray(t))for(let i of t)this.events.push(i);else this.events.push(t)}clearEvents(){this.events.length=0}equals(t){return t.getId().toString()===this.getId().toString()}},fl=class{uid;constructor(t){this.uid=t}getId(){return this.uid}equals(t){return this.uid===t.getId()}},bl=class extends fl{constructor(t){super(t)}toString(){return super.getId()}};var dv=class extends sn{constructor(){super()}onDestroy(){this.hermesUnsubscribe()}},xu=class{keys=new Map;values=new WeakMap;find(t){let i=this.getInternalKey(t);return i!==void 0?bi.of(this.values.get(i)):bi.empty()}has(t){let i=this.getInternalKey(t);return this.values.has(i)}set(t,i){this.keys.set(t.toString(),t),this.values.set(t,i)}size(){return this.keys.size}remove(t){this.hasInternalKey(t)&&(this.keys.delete(t.toString()),this.values.delete(t))}removeAll(){this.keys.forEach(t=>{this.values.delete(t)}),this.keys.clear()}getInternalKey(t){return this.keys.get(t.toString())}hasInternalKey(t){return this.keys.has(t.toString())}};function me(n){return t=>new Ri(i=>{let e=0,r=fv(i,o=>{i.next(n(o,e++))});return t.subscribe(r).getFinalize()})}function Xr(n){let t=n||QB;return i=>new Ri(e=>{let r=null,o=fv(e,a=>{(r===null||!t(r,a))&&(r=a,e.next(a))});return i.subscribe(o).getFinalize()})}function QB(n,t){return n===t}var p1=class extends fi{lastValue;constructor(t){super(),this.lastValue=t}next(t){this.lastValue=t,super.next(t)}subscribe(){let t=super.subscribe(arguments[0],arguments[1],arguments[2]);return super.next(this.lastValue),t}},Xn=class extends fi{bufferSize;values=[];constructor(t=1){super(),this.bufferSize=t}pipe(...t){return super.pipe(...t)}next(t){this.values.push(t),this.bufferSize<this.values.length&&this.values.shift(),super.next(t)}subscribe(){let t;arguments[0]instanceof Kn?t=arguments[0]:t=this.createSubscriber(arguments[0],arguments[1],arguments[2]);let i=super.subscribe(t);for(let e of this.values)t.next(e);return i}},uv=class extends fi{constructor(){super()}static of(t){return t!==void 0?new p1(t):new Xn(1)}},g1=class extends Kn{next(t){if(this.isCompleted())return;let i=this.getObserver();i&&i.next&&(i.next(t),this.complete())}},f1=class extends Ri{createSubscriber(t,i,e){return new g1({next:t,error:i,complete:e})}};function Cl(n){return new f1(t=>{let i=new Kn({next:r=>t.next(r),error:r=>t.error(r),complete:()=>{}});return n.subscribe(i).getFinalize()})}var b1=class extends dv{archive=new xu;archive$;defaultValue=bi.empty();constructor(t){super(),this.archive$=uv.of(),t!=null&&(this.defaultValue=bi.of(t))}on(t){return this.tryToInitDefault(t),this.archive$.toObservable().pipe(ut(()=>this.isNotStopped()),me(i=>i.find(t)),ut(i=>i.isPresent()),me(i=>i.getValueOrNullOrThrowError()),Xr(this.equals),this.hermesTakeUntil())}once(t){return Cl(this.on(t))}find(t){return this.tryToInitDefault(t),this.archive.find(t)}next(t,i){this.archive.set(t,i),this.archive$.next(this.archive)}equals(t,i){return t===i}createDefaultValue(t){return t}tryToInitDefault(t){this.defaultValue.ifPresent(i=>{this.archive.has(t)||this.next(t,i)})}},Mt=class extends b1{constructor(t){super(t)}},Ao=class extends Mt{constructor(t){super(t)}handle(t){this.next(t.getAggregateId(),t.getPayload())}},hv=class{entityId;constructor(t){this.entityId=t}getId(){return this.entityId}},mv=class{uid;constructor(t){this.uid=t}toString(){return this.uid}getId(){return this.uid}equals(t){return this.uid===t.getId()}},ep=class{rootId;constructor(t){this.rootId=t}getId(){return this.rootId}},vl=class{uid;constructor(t){this.uid=t}toString(){return this.uid}getId(){return this.uid}equals(t){return this.uid===t.getId()}},pv=class extends sn{domainEventBus=Q.resolve(Kr);constructor(){super(),this.domainEventBus.ofEvents(this.forEvents()).pipe(this.hermesTakeUntil()).subscribe(t=>{try{this.subscribe(t)}catch(i){console.error(i)}})}},v1=class{},ca=class extends dv{domainEventBus=Q.resolve(Kr);constructor(){super()}onEvent(t,i){return this.domainEventBus.ofEvents([i]).pipe(ut(e=>e.getAggregateId().toString()===t.toString()))}},_l=class{entityId;constructor(t){this.entityId=t}getId(){return this.entityId}equals(t){return this.entityId.equals(t.getId())}},Xa=class extends fl{};function C1(n){}function _v(n){}var Fi=class{};function I1(n){return new Ri(t=>{let i=setTimeout(()=>{t.next(0)},n);return()=>{clearTimeout(i),t.complete()}})}function np(n,t){return new Ri(i=>{let e=r=>{i.next(r)};return n.addEventListener(t,e),()=>{n.removeEventListener(t,e)}})}function yr(n){return t=>new Ri(i=>{let e=!1,r=null,o=function(){e&&!r&&i.complete()},a=fv(i,c=>{r&&r.unsubscribe();let m=new Kn({next:I=>i.next(I),error:I=>i.error(I),complete:()=>{r=null,o()}});return r=m,n(c).subscribe(m).getFinalize()},()=>{e=!0,o()});return t.subscribe(a).getFinalize()})}function hc(n){return new Ri(t=>{let i=n.subscribe(e=>t.next(e),e=>t.error(e),()=>t.complete());return()=>i.unsubscribe()})}var _r=class{archive$;constructor(t){this.archive$=uv.of(t)}on(){return this.archive$.toObservable().pipe(Xr(this.compare))}next(t){this.archive$.next(t)}compare(t,i){return t===i}},tF=(()=>{class n{static index=0;static generate(){return n.index++,n.index}}return n})();var yl=class extends m1{inMemoryStore;aggregateStoreRegister=Q.resolve(Jm);constructor(t){super(),this.inMemoryStore=t,this.aggregateStoreRegister.register(this)}save(t){if(Array.isArray(t))t.forEach(i=>{this.inMemoryStore.set(i)});else{let i=t;this.inMemoryStore.set(i)}}findById(t){let i=this.inMemoryStore.get(t);return i.ifPresent(e=>e.clearEvents()),i}remove(t){this.inMemoryStore.delete(t)}},tp=class extends v1{inMemoryStore;constructor(t){super(),this.inMemoryStore=t}getById(t){return this.getValue(t)}getValue(t){return this.inMemoryStore.get(t).map(this.toReadModel.bind(this))}},wl=class{state=new Map;set(t){this.state.set(t.getId().toString(),t)}setMany(t){t.forEach(i=>{this.set(i)})}get(t){return bi.of(this.state.get(t.toString()))}getAll(){return Array.from(this.state.values()).map(t=>bi.of(t))}has(t){return this.state.has(t.toString())}delete(t){this.state.delete(t.toString())}clear(){this.state.clear()}};var ip=class extends dc{constructor(t,i){super(t,i)}},QR="hermesApi";function iF(){let n=Q.resolve(yu),t=Q.resolve(wu),i=()=>({set loggers(e){},set domain(e){e&&(n.setDomain(e),t.setDomain(e))}});window[QR]=i(),window[QR].loggers=!1}function KB(n,t){return new _1(n,t)}var _1=class{createAggregateCommandHandler;aggregateType;aggregateFactoryArchive=Q.resolve(vu);aggregateRepositoryArchive=Q.resolve(_u);domainEventPublisher=Q.resolve(lt);commandType;constructor(t,i){this.createAggregateCommandHandler=t,this.aggregateType=i,this.commandType=this.createCommandInstance().getMessageType()}handleCommand(t){let i=t.getAggregateId();this.aggregateFactoryArchive.get(this.aggregateType).ifPresent(r=>{let o=r.create(i),a=o.getType(),c=o.createEvent(),m=new c(i,a);o.addEvent(m),this.aggregateRepositoryArchive.get(this.aggregateType).ifPresent(I=>{I.save(o),this.domainEventPublisher.publishFromAggregate(o)})})}forCommand(t){return this.commandType===t.getMessageType()}createCommandInstance(){let t=[],i=this.createAggregateCommandHandler.forCommand().constructor.length;if(t.fill(void 0,0,i),t.length===0)return new(this.createAggregateCommandHandler.forCommand());if(t.length===1)return new(this.createAggregateCommandHandler.forCommand())(t[0]);if(t.length===2)return new(this.createAggregateCommandHandler.forCommand())(t[0],t[1]);if(t.length===3)return new(this.createAggregateCommandHandler.forCommand())(t[0],t[1],t[2]);if(t.length===4)return new(this.createAggregateCommandHandler.forCommand())(t[0],t[1],t[2],t[3]);if(t.length===5)return new(this.createAggregateCommandHandler.forCommand())(t[0],t[1],t[2],t[3],t[4]);throw new Error("CreateAggregateCommandHandlerImpl constructor out of arguments")}};function XB(n,t){return new y1(n,t)}var y1=class{commandHandler;aggregateType;aggregateRepositoryArchive=Q.resolve(_u);domainEventPublisher=Q.resolve(lt);commandType;constructor(t,i){this.commandHandler=t,this.aggregateType=i,this.commandType=this.createCommandInstance().getMessageType()}publishDomainEvents(t,i){this.commandHandler.publish?this.commandHandler.publish(t,i):this.domainEventPublisher.publishFromAggregate(t)}handleCommand(t){let i=t.getAggregateId();this.aggregateRepositoryArchive.get(this.aggregateType).ifPresent(r=>{r.findById(i).ifPresent(a=>{this.commandHandler.handle(a,t),this.publishDomainEvents(a,t)})})}forCommand(t){return this.commandType===t.getMessageType()}createCommandInstance(){let t=[],i=this.commandHandler.forCommand().constructor.length;if(t.fill(void 0,0,i),t.length===0)return new(this.commandHandler.forCommand());if(t.length===1)return new(this.commandHandler.forCommand())(t[0]);if(t.length===2)return new(this.commandHandler.forCommand())(t[0],t[1]);if(t.length===3)return new(this.commandHandler.forCommand())(t[0],t[1],t[2]);if(t.length===4)return new(this.commandHandler.forCommand())(t[0],t[1],t[2],t[3]);if(t.length===5)return new(this.commandHandler.forCommand())(t[0],t[1],t[2],t[3],t[4]);throw new Error("CommandHandlerImpl constructor out of arguments")}};function ZB(n){return new gv(n,[n.forEvent()])}function JB(n){return new gv(n,n.forEvents())}var gv=class{domainEventHandler;events;eventTypes;constructor(t,i){this.domainEventHandler=t,this.events=i,this.eventTypes=this.createDomainEventTypes()}handleEvent(t){this.domainEventHandler.handle(t)}forEvents(t){return t.some(i=>this.eventTypes.some(e=>e===i.getMessageType()))}createDomainEventTypes(){let t=[];for(let i of this.events){let e=this.createDomainEventInstance(i);t.push(e.getMessageType())}return t}createDomainEventInstance(t){let i=[],e=t.constructor.length;if(i.fill(void 0,0,e),i.length===0)return new t;if(i.length===1)return new t(i[0]);if(i.length===2)return new t(i[0],i[1]);if(i.length===3)return new t(i[0],i[1],i[2]);if(i.length===4)return new t(i[0],i[1],i[2],i[3]);if(i.length===5)return new t(i[0],i[1],i[2],i[3],i[4]);throw new Error("DomainEventHandler constructor out of arguments")}},_n=class{api;domain;container=Q;initialized=!1;constructor(t,i){this.api=t,this.domain=i}init(){this.initialized||(this.defineAggregate(),this.registerApiProviders(),this.registerDomainProviders(),this.registerCommandHandlers(),this.registerEventHandlers(),this.registerMultiEventHandlers(),this.initialized=!0)}defineAggregate(){let t=this.domain.defineAggregate();t&&(this.container.provide(t.factory),this.container.provide(t.repository),this.container.provideValue(t.aggregateKey,t.aggregateKey),this.container.provideValueCollection(KR,{key:t.aggregateKey,factory:t.factory,repository:t.repository}),this.container.provide(t.createCommandHandler),this.container.provideFactoryCollection(XR,{create:KB,deps:[t.createCommandHandler,t.aggregateKey]}))}registerApiProviders(){this.api.registerProviders(this.container)}registerDomainProviders(){this.domain.registerProviders(this.container)}registerCommandHandlers(){this.domain.registerCommandHandlers().forEach(t=>{this.container.provide(t),this.container.provideFactoryCollection(ZR,{create:XB,deps:[t,this.domain.registerKey(this.container)]})})}registerEventHandlers(){this.domain.registerDomainEventHandler().forEach(t=>{this.container.provide(t),this.container.provideFactoryCollection(h1,{create:ZB,deps:[t]})})}registerMultiEventHandlers(){this.domain.registerMultiDomainEventHandler().forEach(t=>{this.container.provide(t),this.container.provideFactoryCollection(h1,{create:JB,deps:[t]})})}};var is=["*"],e5=["gui-button",""];var t5=["input"];function i5(n,t){if(n&1&&(f(0,"div"),T(1),v()),n&2){let i=t.$implicit;b(),Ee(i)}}function n5(n,t){if(n&1){let i=oe();f(0,"div",6),A("click",function(){let r=V(i).$implicit,o=S(2);return j(o.selectDate(r))}),T(1),v()}if(n&2){let i=t.$implicit,e=S(2);ie("gui-date-picker-current-day",e.isDate(e.currentDay,i))("gui-date-picker-selected-day",e.isDate(e.selectedDate,i))("gui-date-picker-selected-month",e.displayMonthDays(i.getMonth())),b(),Oe(" ",i.getDate()," ")}}function r5(n,t){if(n&1&&(f(0,"div",4),H(1,n5,2,7,"div",5),v()),n&2){let i=t.$implicit;b(),w("ngForOf",i)}}function o5(n,t){if(n&1){let i=oe();f(0,"div",4),A("click",function(){let r=V(i).$implicit,o=S(2);return j(o.selectMonth(r.nr))}),T(1),v()}if(n&2){let i=t.$implicit,e=S(2);ie("gui-date-picker-current-month",e.isMonth(e.currentDay,i.nr))("gui-date-picker-selected-month",e.isMonth(e.selectedDate,i.nr)),b(),Oe(" ",i.name," ")}}function a5(n,t){if(n&1&&(f(0,"div",2),H(1,o5,2,5,"div",3),v()),n&2){let i=t.$implicit;b(),w("ngForOf",i)}}function s5(n,t){if(n&1){let i=oe();f(0,"div",4),A("click",function(){let r=V(i).$implicit,o=S(2);return j(o.selectYear(r))}),T(1),v()}if(n&2){let i=t.$implicit,e=S(2);ie("gui-date-picker-current-year",e.isYear(e.currentDay,i))("gui-date-picker-selected-year",e.isYear(e.selectedDate,i)),b(),Oe(" ",i," ")}}function c5(n,t){if(n&1&&(f(0,"div",2),H(1,s5,2,5,"div",3),v()),n&2){let i=t.$implicit;b(),w("ngForOf",i)}}var l5=["gui-input",""];function d5(n,t){if(n&1){let i=oe();f(0,"div",4)(1,"gui-arrow-icon",5),A("click",function(){V(i);let r=S();return j(r.changeTimeItem("hours",r.steps))}),v(),E(2,"input",6),f(3,"gui-arrow-icon",5),A("click",function(){V(i);let r=S();return j(r.changeTimeItem("hours",-r.steps))}),v()()}if(n&2){let i=S();b(),w("direction",i.Direction.TOP),b(2),w("direction",i.Direction.BOTTOM)}}function u5(n,t){if(n&1){let i=oe();f(0,"div",4)(1,"gui-arrow-icon",5),A("click",function(){V(i);let r=S();return j(r.changeTimeItem("minutes",r.steps))}),v(),E(2,"input",7),f(3,"gui-arrow-icon",5),A("click",function(){V(i);let r=S();return j(r.changeTimeItem("minutes",-r.steps))}),v()()}if(n&2){let i=S();b(),w("direction",i.Direction.TOP),b(2),w("direction",i.Direction.BOTTOM)}}function h5(n,t){if(n&1){let i=oe();f(0,"div",4)(1,"gui-arrow-icon",5),A("click",function(){V(i);let r=S();return j(r.changeTimeItem("seconds",r.steps))}),v(),E(2,"input",8),f(3,"gui-arrow-icon",5),A("click",function(){V(i);let r=S();return j(r.changeTimeItem("seconds",-r.steps))}),v()()}if(n&2){let i=S();b(),w("direction",i.Direction.TOP),b(2),w("direction",i.Direction.BOTTOM)}}function m5(n,t){if(n&1&&E(0,"gui-date-picker-days-view",7),n&2){let i=S(2);w("activeMonth",i.activeMonth)("selectedDate",i.selectedDate)("weeks",i.weeks)}}function p5(n,t){if(n&1&&E(0,"gui-date-picker-months-view",8),n&2){let i=S(2);w("activeYear",i.activeYear)("selectedDate",i.selectedDate)}}function g5(n,t){if(n&1&&E(0,"gui-date-picker-years-view",9),n&2){let i=S(2);w("selectedDate",i.selectedDate)("years",i.years)}}function f5(n,t){if(n&1&&(nt(0),E(1,"gui-date-picker-view-panel",2),nt(2,3),H(3,m5,1,3,"gui-date-picker-days-view",4)(4,p5,1,2,"gui-date-picker-months-view",5)(5,g5,1,2,"gui-date-picker-years-view",6),at()()),n&2){let i=S();b(),w("activeMonth",i.activeMonth)("activeYear",i.activeYear)("fabricCalendarView",i.fabricCalendarView)("selectedDate",i.selectedDate)("years",i.years),b(),w("ngSwitch",i.getCalendarView()),b(),w("ngSwitchCase",i.FabricCalendarView.DAYS),b(),w("ngSwitchCase",i.FabricCalendarView.MONTHS),b(),w("ngSwitchCase",i.FabricCalendarView.YEARS)}}function b5(n,t){if(n&1&&E(0,"gui-time-picker",10),n&2){let i=S();w("datePickerComposition",i.datePickerComposition)("selectedDate",i.selectedDate)}}var op=["container"];function v5(n,t){}var _5=["datePicker"];function y5(n,t){}var w5=["dropdownMenu"];function x5(n,t){if(n&1&&(f(0,"div"),E(1,"gui-arrow-icon",6),v()),n&2){let i=S();ie("gui-dropdown-arrow",i.isArrowEnabled),b(),w("direction",i.arrowDirection)}}function C5(n,t){}var I5=["guiNotification"];function k5(n,t){if(n&1){let i=oe();f(0,"gui-notification",1),A("onNotificationClose",function(r){V(i);let o=S();return j(o.emitClosedNotification(r))}),v()}if(n&2){let i=t.$implicit;w("notification",i)}}function D5(n,t){if(n&1){let i=oe();f(0,"gui-notifications-container",1),A("onNotificationClose",function(r){V(i);let o=S();return j(o.removeNotification(r))}),v()}if(n&2){let i=S();w("notifications",i.notificationsTopRight)("position",i.FabricNotificationPosition.TOP_RIGHT)}}function S5(n,t){if(n&1){let i=oe();f(0,"gui-notifications-container",1),A("onNotificationClose",function(r){V(i);let o=S();return j(o.removeNotification(r))}),v()}if(n&2){let i=S();w("notifications",i.notificationsTopLeft)("position",i.FabricNotificationPosition.TOP_LEFT)}}function E5(n,t){if(n&1){let i=oe();f(0,"gui-notifications-container",1),A("onNotificationClose",function(r){V(i);let o=S();return j(o.removeNotification(r))}),v()}if(n&2){let i=S();w("notifications",i.notificationsBottomRight)("position",i.FabricNotificationPosition.BOTTOM_RIGHT)}}function T5(n,t){if(n&1){let i=oe();f(0,"gui-notifications-container",1),A("onNotificationClose",function(r){V(i);let o=S();return j(o.removeNotification(r))}),v()}if(n&2){let i=S();w("notifications",i.notificationsBottomLeft)("position",i.FabricNotificationPosition.BOTTOM_LEFT)}}var M5=["svgEl"],A5=["tab"],R5=["tabItem"],F5=["tabMenuList"];function O5(n,t){if(n&1){let i=oe();f(0,"div",8),A("click",function(){V(i);let r=S();return j(r.scrollTabList(!1))}),E(1,"gui-arrow-icon",9),v()}if(n&2){let i=S();b(),w("direction",i.Direction.LEFT)}}function P5(n,t){if(n&1&&(f(0,"span"),T(1),v()),n&2){let i=S().$implicit;b(),Ee(i)}}function N5(n,t){if(n&1&&(nt(0),E(1,"gui-svg-template",12),at()),n&2){let i=S().$implicit;b(),w("svg",i.svg)}}function V5(n,t){if(n&1){let i=oe();f(0,"div",10,2),A("click",function(){let r=V(i).$implicit,o=S();return j(o.toggleTab(r))}),H(2,P5,2,1,"span",11)(3,N5,2,1,"ng-container",11),v()}if(n&2){let i=t.$implicit,e=S();De("data-tab",e.getTabName(i)),b(2),w("ngIf",!e.isSvg(i)),b(),w("ngIf",e.isSvg(i))}}function j5(n,t){if(n&1){let i=oe();f(0,"div",8),A("click",function(){V(i);let r=S();return j(r.scrollTabList(!0))}),E(1,"gui-arrow-icon"),v()}}var L5=["optionList"];function B5(n,t){if(n&1){let i=oe();f(0,"div",3),A("click",function(){let r=V(i).$implicit,o=S();return j(o.selectOption(r))}),T(1),v()}if(n&2){let i=t.$implicit,e=S();ft("width",e.width,"px"),ie("gui-option-selected",e.isOptionSelected(i)),b(),Oe(" ",e.getOptionValue(i)," ")}}var bt=function(n){return n.FABRIC="FABRIC",n.MATERIAL="MATERIAL",n.GENERIC="GENERIC",n.LIGHT="LIGHT",n.DARK="DARK",n}(bt||{}),hF=(()=>{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,e){this.elementRef=i,this.renderer=e}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(e){return new(e||n)(l(P),l(zt))};static \u0275dir=J({type:n,inputs:{primary:"primary",secondary:"secondary",outline:"outline"},features:[he]})}return n})();var Cu=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({imports:[le]})}return n})(),ns=(()=>{class n extends hF{link=!1;text=!1;constructor(i,e){super(i,e)}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(e){return new(e||n)(l(P),l(zt))};static \u0275cmp=R({type:n,selectors:[["button","gui-button",""],["a","gui-button",""]],hostVars:2,hostBindings:function(e,r){e&2&&ie("gui-button",!0)},inputs:{link:"link",text:"text"},features:[L,he],attrs:e5,ngContentSelectors:is,decls:1,vars:0,template:function(e,r){e&1&&(rt(),Ne(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})(),Zr=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({imports:[le]})}return n})(),mF=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=R({type:n,selectors:[["gui-button-group"]],hostVars:2,hostBindings:function(e,r){e&2&&ie("gui-button-group",!0)},ngContentSelectors:is,decls:1,vars:0,template:function(e,r){e&1&&(rt(),Ne(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})(),Iu=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({imports:[le]})}return n})();var nF=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({imports:[le]})}return n})(),gc=(()=>{class n{elementRef;renderer;inputRef;name="";inputChecked=!1;disabled=!1;readonly=!1;indeterminate=!1;changed=new Y;checked=!1;constructor(i,e){this.elementRef=i,this.renderer=e}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(e){return new(e||n)(l(P),l(zt))};static \u0275cmp=R({type:n,selectors:[["gui-checkbox"]],viewQuery:function(e,r){if(e&1&&Z(t5,5,P),e&2){let o;G(o=$())&&(r.inputRef=o.first)}},hostVars:2,hostBindings:function(e,r){e&2&&ie("gui-checkbox",!0)},inputs:{name:"name",inputChecked:[z.None,"checked","inputChecked"],disabled:"disabled",readonly:"readonly",indeterminate:"indeterminate"},outputs:{changed:"changed"},features:[he],ngContentSelectors:is,decls:5,vars:3,consts:[["input",""],["type","checkbox",3,"click","checked","disabled"],[1,"gui-checkmark"]],template:function(e,r){if(e&1){let o=oe();rt(),f(0,"label")(1,"input",1,0),A("click",function(c){return V(o),j(r.check(c))}),v(),E(3,"span",2),Ne(4),v()}e&2&&(b(),w("checked",r.checked)("disabled",r.disabled),De("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})(),es=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({imports:[le]})}return n})(),F1=(()=>{class n extends hF{constructor(i,e){super(i,e)}static \u0275fac=function(e){return new(e||n)(l(P),l(zt))};static \u0275cmp=R({type:n,selectors:[["gui-chip"]],hostVars:2,hostBindings:function(e,r){e&2&&ie("gui-chip",!0)},features:[L],ngContentSelectors:is,decls:1,vars:0,template:function(e,r){e&1&&(rt(),Ne(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})(),mc=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({imports:[le]})}return n})(),rs=(()=>{class n{unsubscribe$=new ue;constructor(){}ngOnDestroy(){this.unsubscribe()}unsubscribe(){this.unsubscribe$.isStopped||(this.unsubscribe$.next(),this.unsubscribe$.complete())}static \u0275fac=function(e){return new(e||n)};static \u0275dir=J({type:n})}return n})(),qi=function(n){return n[n.DAYS=0]="DAYS",n[n.MONTHS=1]="MONTHS",n[n.YEARS=2]="YEARS",n}(qi||{}),Qi=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}(Qi||{}),O1=new Date().getMonth(),P1=new Date().getFullYear(),ap=(()=>{class n{selectedDate=new Date;selectedTime;selectedDate$=new si(this.selectedDate);observeSelectedDate(){return this.selectedDate$.asObservable()}dateSelected(i){this.selectedDate=new Date(i.getTime()),this.setSelectedDateTime(),this.selectedDate$.next(this.selectedDate)}changeTime(i,e){this.selectedTime=i,this.selectedDate||(this.selectedDate=e),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(e){return new(e||n)};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),N1=(()=>{class n{datePickerFormat$=new si(Qi.DATE_PICKER);onComposition(){return this.datePickerFormat$.asObservable()}next(i){this.datePickerFormat$.next(this.getComposition(i))}getComposition(i){let e=i.split(":").join(" "),r=e.split("/").join(" "),o=r.split(".").join(" "),a=o.split(",").join(" "),c=a.split(" "),m=Qi.NONE;return c.forEach(x=>{let I=x.toLowerCase().includes("d"),O=x.includes("M"),B=x.toLowerCase().includes("y"),ae=x.toLowerCase().includes("h"),ee=x.includes("m"),Se=x.toLowerCase().includes("s"),te=x.includes("h"),ge=I||O||B,$e=ae||ee||Se;ge&&(m=m|Qi.DATE_PICKER),$e&&(m=m|Qi.TIME_PICKER),te&&(m=m|Qi.TIME_PICKER_MERIDIAN),ae&&(m=m|Qi.TIME_PICKER_HOURS),ee&&(m=m|Qi.TIME_PICKER_MINUTES),Se&&(m=m|Qi.TIME_PICKER_SECONDS)}),m}static \u0275fac=function(e){return new(e||n)};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),pF=(()=>{class n{weeks=[];getDaysInMonths(i,e){this.resetWeeks();let r=new Date(i,e+1,0).getDate();for(let o=1;o<=r;o++)this.createWeeks(new Date(i,e,o));return this.weeks}createWeeks(i){let e=i.getDate(),r=6;for(let o=0;o<r;o++)e===1?this.addDaysToWeek(o,i):this.canAddDaysToWeek(o,e)&&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,e){let r=this.weeks[i];for(let o=1;o<=7;o++){let a=e.getDay()===0&&this.weeks[0].length===0,c;a?c=e.getDate()-6:c=e.getDate()-e.getDay()+o;let m=new Date(e.setDate(c));r.length<7&&r.push(m)}}getLastDayNumber(i){return i.length===7?i[i.length-1].getDate():0}getLastDayDate(i){let e=i[i.length-1].getDate();return new Date(i[i.length-1].setDate(e))}canAddDaysToWeek(i,e){return this.weeks[i].length===0&&this.weeks[i-1].length===7&&e>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(e){return new(e||n)};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),V1=(()=>{class n{rowsForDisplay=[];minYear=0;maxYear=0;selectedYear=0;inc=10;getYears(i){this.minYear=i-50,this.maxYear=i+50;let e=this.maxYear-this.minYear,r=[],o=[];return r=this.createYearsPool(this.minYear,e,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,e,r){for(let o=0;o<=e;o++)r.push(i+o);return r}divideYearsPool(i,e){for(let r=0;r<i.length;r+=5)e.push(i.slice(r,r+5));return e}createRowsForDisplay(i,e){if(e>=this.minYear||e<=this.maxYear){for(let r=0;r<i.length;r++)if(i[r].indexOf(e)>-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(e){return new(e||n)};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),j1=(()=>{class n{years$=new ue;onYears(){return this.years$.asObservable()}next(i){this.years$.next(i)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),sp=(()=>{class n{activeMonth$=new ue;activeYear$=new ue;onActiveMonth(){return this.activeMonth$.asObservable()}onActiveYear(){return this.activeYear$.asObservable()}nextMonth(i,e){e===11?(this.activeYear$.next(i+1),this.selectMonth(0)):this.selectMonth(e+1)}prevMonth(i,e){e===0?(this.activeYear$.next(i-1),this.selectMonth(11)):this.selectMonth(e-1)}selectYear(i){this.activeYear$.next(i)}selectMonth(i){this.activeMonth$.next(i)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),cp=(()=>{class n{activeView$=new ue;onActiveView(){return this.activeView$.asObservable()}switchView(i){this.activeView$.next(i)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),z5=["Mo","Tu","We","Th","Fr","Sa","Su"],rp=class{static areDatesSame(t,i){return t&&i&&t.getDate()===i.getDate()&&t.getMonth()===i.getMonth()&&t.getFullYear()===i.getFullYear()}static isMonth(t,i,e){return t.getMonth()===i&&t.getFullYear()===e}},H5=(()=>{class n{datePickerService;selectedDate;activeMonth=O1;weeks=[];daysOfTheWeek=z5;currentDay=new Date;constructor(i){this.datePickerService=i}selectDate(i){this.datePickerService.dateSelected(i)}isDate(i,e){return rp.areDatesSame(i,e)}displayMonthDays(i){return i===this.activeMonth}static \u0275fac=function(e){return new(e||n)(l(ap))};static \u0275cmp=R({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(e,r){e&1&&(f(0,"div",0)(1,"div",1),H(2,i5,2,1,"div",2),v(),H(3,r5,2,1,"div",3),v()),e&2&&(b(2),w("ngForOf",r.daysOfTheWeek),b(),w("ngForOf",r.weeks))},dependencies:[Mi],encapsulation:2,changeDetection:0})}return n})(),U5=[[{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"}]],W5=(()=>{class n{calendarService;calendarViewService;selectedDate;activeYear=P1;currentDay=new Date;monthsPerQuarters=U5;constructor(i,e){this.calendarService=i,this.calendarViewService=e}isMonth(i,e){return rp.isMonth(i,e,this.activeYear)}selectMonth(i){this.calendarService.selectMonth(i),this.calendarViewService.switchView(qi.DAYS)}static \u0275fac=function(e){return new(e||n)(l(sp),l(cp))};static \u0275cmp=R({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(e,r){e&1&&(f(0,"div",0),H(1,a5,2,1,"div",1),v()),e&2&&(b(),w("ngForOf",r.monthsPerQuarters))},dependencies:[Mi],encapsulation:2,changeDetection:0})}return n})(),G5=(()=>{class n{calendarService;calendarViewService;selectedDate;years=[];currentDay=new Date;constructor(i,e){this.calendarService=i,this.calendarViewService=e}selectYear(i){this.calendarService.selectYear(i),this.calendarViewService.switchView(qi.MONTHS)}isYear(i,e){return i?i.getFullYear()===e:!1}static \u0275fac=function(e){return new(e||n)(l(sp),l(cp))};static \u0275cmp=R({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(e,r){e&1&&(f(0,"div",0),H(1,c5,2,1,"div",1),v()),e&2&&(b(),w("ngForOf",r.years))},dependencies:[Mi],encapsulation:2,changeDetection:0})}return n})(),k1=function(n){return n[n.NEXT=0]="NEXT",n[n.PREV=1]="PREV",n}(k1||{}),Ja=function(n){return n[n.TOP=-90]="TOP",n[n.BOTTOM=90]="BOTTOM",n[n.LEFT=180]="LEFT",n[n.RIGHT=0]="RIGHT",n}(Ja||{}),rF=["January","February","March","April","May","June","July","August","September","October","November","December"],xv=(()=>{class n{direction=Ja.RIGHT;static \u0275fac=function(e){return new(e||n)};static \u0275cmp=R({type:n,selectors:[["gui-arrow-icon"]],hostVars:4,hostBindings:function(e,r){e&2&&ie("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(e,r){e&1&&(It(),f(0,"svg",0),E(1,"path",1),v()),e&2&&ft("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})(),$5=(()=>{class n{calendarViewService;calendarService;datePickerYearsService;datePickerYears;fabricCalendarView=qi.DAYS;selectedDate;activeMonth=O1;activeYear=P1;years=[];Direction=Ja;FabricCalendarCardView=k1;constructor(i,e,r,o){this.calendarViewService=i,this.calendarService=e,this.datePickerYearsService=r,this.datePickerYears=o}getDisplayedDate(){switch(this.fabricCalendarView){case qi.DAYS:return`${rF[this.activeMonth]} ${this.activeYear}`;case qi.MONTHS:return`${rF[this.activeMonth]} ${this.activeYear}`;case qi.YEARS:return`${this.getDisplayedYearRange()}`;default:return""}}switchCalendarView(){switch(this.fabricCalendarView){case qi.DAYS:this.calendarViewService.switchView(qi.YEARS);break;case qi.MONTHS:this.calendarViewService.switchView(qi.DAYS);break;case qi.YEARS:this.calendarViewService.switchView(qi.DAYS);break;default:break}}switchCard(i){let e=i===k1.NEXT,r=e?1:-1,o=this.activeYear+r,a=e?this.datePickerYears.nextYearRange(this.activeYear):this.datePickerYears.prevYearRange(this.activeYear);switch(this.fabricCalendarView){case qi.DAYS:this.handleMonthChange(e);break;case qi.MONTHS:this.calendarService.selectYear(o);break;case qi.YEARS:this.datePickerYearsService.next(a);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(e){return new(e||n)(l(cp),l(sp),l(j1),l(V1))};static \u0275cmp=R({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(e,r){e&1&&(f(0,"div",0)(1,"div",1),A("click",function(){return r.switchCalendarView()}),T(2),v(),f(3,"div",2)(4,"gui-arrow-icon",3),A("click",function(){return r.switchCard(r.FabricCalendarCardView.PREV)}),v(),f(5,"gui-arrow-icon",3),A("click",function(){return r.switchCard(r.FabricCalendarCardView.NEXT)}),v()()()),e&2&&(b(2),Oe(" ",r.getDisplayedDate()," "),b(2),w("direction",r.Direction.LEFT),b(),w("direction",r.Direction.RIGHT))},dependencies:[xv],encapsulation:2,changeDetection:0})}return n})(),D1=class{hours;minutes;seconds;constructor(t,i,e){this.hours=t,this.minutes=i,this.seconds=e}},Cv=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=R({type:n,selectors:[["input","gui-input",""]],hostVars:2,hostBindings:function(e,r){e&2&&ie("gui-input",!0)},attrs:l5,decls:0,vars:0,template:function(e,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})(),Y5=(()=>{class n extends rs{formBuilder;datePickerService;selectedDate;datePickerComposition=Qi.NONE;steps=1;form;Direction=Ja;FabricDatePickerComposition=Qi;constructor(i,e){super(),this.formBuilder=i,this.datePickerService=e,this.form=this.formBuilder.group({hours:[""],minutes:[""],seconds:[""]})}ngOnChanges(i){i.selectedDate&&this.selectedDate}ngOnInit(){this.isActive(this.datePickerComposition,Qi.TIME_PICKER_HOURS)&&this.form.controls.hours.valueChanges.pipe(_e(this.unsubscribe$)).subscribe(e=>{let r=this.isMeridian()?1:0,o=this.isMeridian()?12:23;(e>o||e<r)&&this.form.controls.hours.setValue(r),this.changeSelectedDate()}),this.isActive(this.datePickerComposition,Qi.TIME_PICKER_MINUTES)&&this.form.controls.minutes.valueChanges.pipe(_e(this.unsubscribe$)).subscribe(i=>{this.controlFormItemValue(i,"minutes","hours"),this.changeSelectedDate()}),this.isActive(this.datePickerComposition,Qi.TIME_PICKER_SECONDS)&&this.form.controls.seconds.valueChanges.pipe(_e(this.unsubscribe$)).subscribe(i=>{this.controlFormItemValue(i,"seconds","minutes"),this.changeSelectedDate()}),this.setTimeFromSelectedDate()}changeTimeItem(i,e){let r=this.form.controls[i].value+e;this.form.controls[i].setValue(r)}changeSelectedDateTime(){this.datePickerService.next()}isActive(i,e){return!!(i&e)}isMeridian(){return this.isActive(this.datePickerComposition,Qi.TIME_PICKER_MERIDIAN)}isOnlyTimePicker(){return!(this.datePickerComposition&Qi.DATE_PICKER)}changeSelectedDate(){if(this.selectedDate){let i=this.form.controls.hours.value,e=this.form.controls.minutes.value,r=this.form.controls.seconds.value,o=new D1(i,e,r);this.datePickerService.changeTime(o,this.selectedDate)}}controlFormItemValue(i,e,r){if(i>59){let o=this.form.controls[r].value,a=o+1;this.form.controls[r].setValue(a),this.form.controls[e].setValue(0)}else i<0&&this.form.controls[e].setValue(0)}setTimeFromSelectedDate(){if(this.selectedDate){let i=this.selectedDate.getHours(),e=this.selectedDate.getMinutes(),r=this.selectedDate.getSeconds();this.form.controls.hours.setValue(i),this.form.controls.minutes.setValue(e),this.form.controls.seconds.setValue(r)}}static \u0275fac=function(e){return new(e||n)(l(qa),l(ap))};static \u0275cmp=R({type:n,selectors:[["gui-time-picker"]],hostVars:2,hostBindings:function(e,r){e&2&&ie("only-time-picker",r.isOnlyTimePicker())},inputs:{selectedDate:"selectedDate",datePickerComposition:"datePickerComposition"},features:[L,he],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(e,r){e&1&&(f(0,"form",0),H(1,d5,4,2,"div",1)(2,u5,4,2,"div",1)(3,h5,4,2,"div",1),v(),f(4,"div",2),A("click",function(){return r.changeSelectedDateTime()}),f(5,"button",3),T(6," Ok "),v()()),e&2&&(w("formGroup",r.form),b(),w("ngIf",r.isActive(r.datePickerComposition,r.FabricDatePickerComposition.TIME_PICKER_HOURS)),b(),w("ngIf",r.isActive(r.datePickerComposition,r.FabricDatePickerComposition.TIME_PICKER_MINUTES)),b(),w("ngIf",r.isActive(r.datePickerComposition,r.FabricDatePickerComposition.TIME_PICKER_SECONDS)),b(2),w("outline",!0))},dependencies:[Rt,sa,li,Gm,wi,Qr,XI,Ai,To,Cv,ns,xv],encapsulation:2,changeDetection:0})}return n})(),q5=(()=>{class n extends rs{datePickerService;datePickerFormatService;datePickerWeeks;datePickerYears;datePickerYearsService;calendarService;calendarViewService;changeDetectorRef;weeks=[];years=[];selectedDate;activeMonth=O1;activeYear=P1;datePickerComposition=Qi.NONE;FabricDatePickerComposition=Qi;FabricCalendarView=qi;fabricCalendarView=qi.DAYS;constructor(i,e,r,o,a,c,m,x){super(),this.datePickerService=i,this.datePickerFormatService=e,this.datePickerWeeks=r,this.datePickerYears=o,this.datePickerYearsService=a,this.calendarService=c,this.calendarViewService=m,this.changeDetectorRef=x}ngOnInit(){this.datePickerFormatService.onComposition().pipe(_e(this.unsubscribe$)).subscribe(i=>{this.datePickerComposition=i}),this.calendarService.onActiveMonth().pipe(_e(this.unsubscribe$)).subscribe(i=>{this.activeMonth=i,this.calculateDatePickerData(),this.changeDetectorRef.detectChanges()}),this.calendarService.onActiveYear().pipe(_e(this.unsubscribe$)).subscribe(i=>{this.activeYear=i,this.calculateDatePickerData(),this.changeDetectorRef.detectChanges()}),this.datePickerService.observeSelectedDate().pipe(_e(this.unsubscribe$)).subscribe(i=>{this.selectedDate=i,this.activeYear=i.getFullYear(),this.activeMonth=i.getMonth()}),this.datePickerYearsService.onYears().pipe(_e(this.unsubscribe$)).subscribe(i=>{this.years=i,this.changeDetectorRef.detectChanges()}),this.calendarViewService.onActiveView().pipe(_e(this.unsubscribe$)).subscribe(i=>{this.fabricCalendarView=i,this.changeDetectorRef.detectChanges()}),this.calculateDatePickerData()}getCalendarView(){return event&&event.stopPropagation(),this.fabricCalendarView}isVisible(i,e){return!!(i&e)}calculateDatePickerData(){this.weeks=this.datePickerWeeks.getDaysInMonths(this.activeYear,this.activeMonth),this.years=this.datePickerYears.getYears(this.activeYear)}static \u0275fac=function(e){return new(e||n)(l(ap),l(N1),l(pF),l(V1),l(j1),l(sp),l(cp),l(ce))};static \u0275cmp=R({type:n,selectors:[["gui-date-picker-toggle"]],hostVars:2,hostBindings:function(e,r){e&2&&ie("gui-date-picker-calendar",!0)},features:[L],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(e,r){e&1&&H(0,f5,6,9,"ng-container",0)(1,b5,1,2,"gui-time-picker",1),e&2&&(w("ngIf",r.isVisible(r.datePickerComposition,r.FabricDatePickerComposition.DATE_PICKER)),b(),w("ngIf",r.isVisible(r.datePickerComposition,r.FabricDatePickerComposition.TIME_PICKER)))},dependencies:[Rt,YM,qM,H5,W5,G5,$5,Y5],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})(),la=function(n){return n[n.TOP=1]="TOP",n[n.BOTTOM=2]="BOTTOM",n[n.BEFORE=3]="BEFORE",n[n.AFTER=4]="AFTER",n}(la||{}),Pu=new re("Theme token"),Jr=(()=>{class n{fabricTheme$=new si(bt.FABRIC);onTheme(){return this.fabricTheme$.asObservable()}changeTheme(i){let e=typeof i=="string"?this.convertToTheme(i):i;this.fabricTheme$.next(e)}convertToTheme(i){switch(i.toLowerCase()){case"fabric":return bt.FABRIC;case"material":return bt.MATERIAL;case"generic":return bt.GENERIC;case"light":return bt.LIGHT;case"dark":return bt.DARK;default:return bt.FABRIC}}static \u0275fac=function(e){return new(e||n)};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),lp=(()=>{class n extends rs{elementRef;renderer;themeService;static CSS_CLASS_PREFIX="gui-";constructor(i,e,r){super(),this.elementRef=i,this.renderer=e,this.themeService=r}ngAfterViewInit(){this.themeService.onTheme().pipe(Na(),_e(this.unsubscribe$)).subscribe(i=>{this.addTheme(i)})}addTheme(i){this.removeThemes();let e=n.CSS_CLASS_PREFIX+i.toLowerCase();this.renderer.addClass(this.elementRef.nativeElement,e)}removeThemes(){Object.keys(bt).map(e=>bt[e].toLowerCase()).filter(e=>!Number.isInteger(e)).forEach(e=>{let r=n.CSS_CLASS_PREFIX+e;this.renderer.removeClass(this.elementRef.nativeElement,r)})}getElementRef(){return this.elementRef}getRenderer(){return this.renderer}static \u0275fac=function(e){return new(e||n)(l(P),l(zt),l(Jr))};static \u0275dir=J({type:n,features:[L]})}return n})(),S1=class{elementRef;containerClassName;constructor(t,i){this.elementRef=t,this.containerClassName=i}getHeight(){return this.elementRef.nativeElement.querySelector(`.${this.containerClassName}`).offsetHeight}getWidth(){return this.elementRef.nativeElement.querySelector(`.${this.containerClassName}`).offsetWidth}},E1=class extends S1{verticalPosition=0;horizontalPosition=0;constructor(t,i,e,r,o,a){super(e,r),this.calculateCords(t,i,a,o)}getVerticalPosition(){return this.verticalPosition}getHorizontalPosition(){return this.horizontalPosition}calculateCords(t,i,e,r){let o=i.nativeElement.getBoundingClientRect(),a=t.pageYOffset+o.bottom,c=t.pageXOffset+o.left,m=t.pageXOffset+o.right,x=t.pageYOffset+o.top,I=x+e-this.getHeight();switch(r){case la.BOTTOM:this.horizontalPosition=c,this.verticalPosition=a+e;break;case la.TOP:this.horizontalPosition=c,this.verticalPosition=I;break;case la.BEFORE:this.horizontalPosition=m+e-this.getWidth(),this.verticalPosition=a;break;case la.AFTER:this.horizontalPosition=c+e,this.verticalPosition=a;break;default:this.horizontalPosition=c,this.verticalPosition=a+e}this.calculateDirection(i,t,I)}calculateDirection(t,i,e){let r=i.innerHeight+i.pageYOffset,o=i.innerWidth+i.pageXOffset,a=t.nativeElement.offsetWidth,c=this.getHeight(),m=this.getWidth(),x=o-this.horizontalPosition-m<0,I=r-this.verticalPosition-c<0;x&&(this.horizontalPosition-=m-a),I&&(this.verticalPosition=e)}},Q5=(()=>{class n extends E1{static defaultInlineDialogOffset=8;constructor(i,e,r,o,a=n.defaultInlineDialogOffset){super(r,i,e,"gui-inline-dialog-wrapper",o,a)}}return n})(),L1=(()=>{class n{platformId;inlineDialogGeometry;inlineDialogState$=new ue;constructor(i){this.platformId=i}observeInlineDialogCords(){return this.inlineDialogState$.asObservable()}changeGeometry(i){this.inlineDialogGeometry=i}getInlineDialogCords(i,e,r){if(Hn(this.platformId)){let o=new Q5(i,this.inlineDialogGeometry,window,e,r);this.inlineDialogState$.next(o)}}static \u0275fac=function(e){return new(e||n)(k(Xt))};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),K5=(()=>{class n extends lp{componentFactoryResolver;changeDetectorRef;inlineDialogService;elRef;inlineDialogGeometryService;container;customClass="";inlineDialogNestedComponent;inlineDialogNestedInjector;dialogTopAttribute;dialogLeftAttribute;visible=!1;width="400px";constructor(i,e,r,o,a,c,m,x){super(o,c,m),this.componentFactoryResolver=i,this.changeDetectorRef=e,this.inlineDialogService=r,this.elRef=o,this.inlineDialogGeometryService=a}ngOnInit(){this.inlineDialogGeometryService.observeInlineDialogCords().pipe(_e(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(),_o(0).pipe(_e(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 e=this.componentFactoryResolver.resolveComponentFactory(i);this.inlineDialogNestedInjector?this.container.createComponent(e,void 0,this.inlineDialogNestedInjector):this.container.createComponent(e),this.changeDetectorRef.detectChanges()}}static \u0275fac=function(e){return new(e||n)(l(Bt),l(ce),l(ci(()=>Nu)),l(P),l(L1),l(zt),l(Jr),l(Pu))};static \u0275cmp=R({type:n,selectors:[["ng-component"]],viewQuery:function(e,r){if(e&1&&Z(op,5,ri),e&2){let o;G(o=$())&&(r.container=o.first)}},features:[L],decls:4,vars:9,consts:[["container",""],[1,"gui-inline-dialog-wrapper",3,"ngClass"],[1,"gui-inline-dialog-content",3,"click"]],template:function(e,r){if(e&1){let o=oe();f(0,"div",1)(1,"div",2),A("click",function(c){return V(o),j(r.clickOutside(c))},!1,Hh),H(2,v5,0,0,"ng-template",null,0,wt),v()()}e&2&&(ft("left",r.dialogLeftAttribute,"px")("top",r.dialogTopAttribute,"px"),w("ngClass",r.customClass),b(),ft("max-width",r.width),ie("gui-inline-dialog-visible",r.visible))},dependencies:[$t],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})(),Nu=(()=>{class n{componentFactoryResolver;applicationRef;injector;document;inlineDialogGeometryService;inlineDialogRef=null;opened=!1;opened$=new si(!1);destroy$=new ue;constructor(i,e,r,o,a){this.componentFactoryResolver=i,this.applicationRef=e,this.injector=r,this.document=o,this.inlineDialogGeometryService=a}ngOnDestroy(){this.removeInlineDialog()}open(i,e,r){if(event&&event.stopPropagation(),this.inlineDialogRef)this.close();else{let o=this.injector,a=la.BOTTOM,c=0,m=bt.FABRIC,x="";r&&r.injector&&(o=r.injector),r&&r.placement&&(a=r.placement),r&&r.offset&&(c=r.offset),r&&r.theme&&(m=r.theme),r&&r.customClass&&(x=r.customClass);let I=Pe.create({providers:[{provide:Pu,useValue:m}],parent:o});this.setOpened(!0),this.appendInlineDialogToElement(e,I,x),this.inlineDialogGeometryService.getInlineDialogCords(i,a,c),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,e,r){let o=this.componentFactoryResolver.resolveComponentFactory(K5).create(e);r&&(o.instance.customClass=r),o.instance.inlineDialogNestedComponent=i,o.changeDetectorRef.detectChanges(),this.applicationRef.attachView(o.hostView);let a=o.hostView.rootNodes[0];this.document.body.appendChild(a),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(){Bn(this.document,"keyup").pipe(et(e=>e.code==="Escape"),_e(this.destroy$)).subscribe(()=>this.close())}static \u0275fac=function(e){return new(e||n)(k(Bt),k(Ui),k(Pe),k(ye),k(L1))};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),gF=(()=>{class n{fabricInlineDialogService;constructor(i){this.fabricInlineDialogService=i}open(i,e,r){let o=bt.FABRIC;r&&(o=r),this.fabricInlineDialogService.open(i,e,{placement:la.BOTTOM,offset:0,theme:o})}close(){this.fabricInlineDialogService.close()}isOpened(){return this.fabricInlineDialogService.isOpened()}onOpened(){return this.fabricInlineDialogService.onOpened()}static \u0275fac=function(e){return new(e||n)(k(Nu))};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),X5=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=R({type:n,selectors:[["gui-date-picker-icon"]],hostVars:2,hostBindings:function(e,r){e&2&&ie("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(e,r){e&1&&(It(),f(0,"svg",0),E(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})(),fF=(()=>{class n extends rs{fabricDatePickerInlineDialogService;datePickerService;datePickerCompositionService;changeDetectorRef;datePickerRef;parentElement;theme;selectDate;name="";openDialog=!1;onlyDialog=!1;datePipeOptions="dd/MM/yyyy";dateSelected=new Y;dialogOpened=new Y;datePickerForm;pickedDate=new Date;inputDisabled="";constructor(i,e,r,o,a){super(),this.fabricDatePickerInlineDialogService=i,this.datePickerService=e,this.datePickerCompositionService=r,this.changeDetectorRef=a,this.datePickerForm=o.group({date:[""]})}ngOnChanges(i){i.selectDate&&this.selectDate&&(!this.pickedDate||!rp.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(Va(1),_e(this.unsubscribe$)).subscribe(i=>{this.pickedDate=i,this.emitSelectedDate(i),this.changeDetectorRef.detectChanges(),this.closeDatePicker()}),this.fabricDatePickerInlineDialogService.onOpened().pipe(Va(1),_e(this.unsubscribe$)).subscribe(i=>{this.dialogOpened.emit(i)})}ngAfterViewInit(){this.datePickerService.observeSelectedDate().pipe(gt(1),_e(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,e=i?this.datePickerRef:this.parentElement;e&&this.fabricDatePickerInlineDialogService.open(e,q5,this.theme)}closeDatePicker(){this.fabricDatePickerInlineDialogService.close()}emitSelectedDate(i){this.dateSelected.emit(i)}static \u0275fac=function(e){return new(e||n)(l(gF),l(ap),l(N1),l(qa),l(ce))};static \u0275cmp=R({type:n,selectors:[["gui-date-picker"]],viewQuery:function(e,r){if(e&1&&Z(_5,5,P),e&2){let o;G(o=$())&&(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:[L,he],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(e,r){if(e&1){let o=oe();f(0,"div",1,0)(2,"form",2),E(3,"input",3),Re(4,"date"),v(),f(5,"gui-date-picker-icon",4),A("click",function(){return V(o),j(r.openDatePicker())}),v()()}e&2&&(b(2),w("formGroup",r.datePickerForm),b(),w("name",r.name)("value",hr(4,4,r.pickedDate,r.datePipeOptions)),De("disabled",r.inputDisabled))},dependencies:[sa,li,wi,Qr,Ai,To,Cv,X5,Us],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})(),kl=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({providers:[Nu,L1],imports:[le]})}return n})(),ts=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({imports:[le]})}return n})(),B1=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({imports:[le]})}return n})(),Z5=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({imports:[le]})}return n})(),yv=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({providers:[ap,N1,sp,cp,j1,pF,V1,gF],imports:[le,kl,$i,ts,Zr,Z5,B1]})}return n})(),dp=(()=>{class n extends rs{componentFactoryResolver;applicationRef;injector;document;componentRef="destroyed";constructor(i,e,r,o){super(),this.componentFactoryResolver=i,this.applicationRef=e,this.injector=r,this.document=o}ngOnDestroy(){this.removeComponent()}createAndAppend(i){let e=i?.injector?i.injector:this.injector;this.componentRef=this.componentFactoryResolver.resolveComponentFactory(this.getComponent()).create(e),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 Bn(this.getDocument(),"keyup").pipe(et(e=>e.code==="Escape"),_e(this.unsubscribe$))}isComponentCreated(){return this.componentRef!=="destroyed"}getElement(i){return i?i.nativeElement:this.document.body}static \u0275fac=function(e){return new(e||n)(l(Bt),l(Ui),l(Pe),l(ye))};static \u0275dir=J({type:n,features:[L]})}return n})(),Iv=(()=>{class n extends dp{inProgress=!1;constructor(i,e,r,o){super(i,e,r,o)}getComponent(){return J5}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(),_o(300).pipe(_e(this.unsubscribe$)).subscribe(()=>{this.removeComponent(),this.inProgress=!1})}}createDrawer(i){this.isComponentCreated()&&this.removeComponent();let e=bt.FABRIC,r=this.getInjector();i&&i.theme&&(e=i.theme),i&&i.injector&&(r=i.injector);let o=Pe.create({providers:[{provide:Pu,useValue:e}],parent:r});this.createAndAppend({injector:o,afterCompCreation:()=>this.applyInstanceVars(i),appendToElement:i?.appendToElement}),this.closeOnEscKey()}waitAndCreateNewDrawer(i){this.inProgress=!0,this.close(),_o(400).pipe(_e(this.unsubscribe$)).subscribe(()=>{this.createDrawer(i)})}applyInstanceVars(i){if(this.isComponentCreated()){let e=this.getComponentRef();i?.width&&(e.instance.width=i.width),i?.closeOnClickOutside&&(e.instance.closeOnClickOutside=i.closeOnClickOutside),e.instance.dialogNestedComponent=i?.component,e.instance.isFixed=!i?.appendToElement}}closeOnEscKey(){this.onCloseOnEsc().subscribe(()=>this.close())}static \u0275fac=function(e){return new(e||n)(k(Bt),k(Ui),k(Pe),k(ye))};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})();var z1=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=R({type:n,selectors:[["gui-close-icon"]],hostVars:2,hostBindings:function(e,r){e&2&&ie("gui-close-icon-wrapper",!0)},decls:1,vars:0,consts:[[1,"gui-close-icon"]],template:function(e,r){e&1&&E(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})(),J5=(()=>{class n extends lp{componentFactoryResolver;changeDetectorRef;elRef;dialogService;container;width="400px";closeOnClickOutside=!1;dialogNestedComponent;visible=!1;isFixed=!1;constructor(i,e,r,o,a,c){super(r,c,a),this.componentFactoryResolver=i,this.changeDetectorRef=e,this.elRef=r,this.dialogService=o}ngAfterViewInit(){super.ngAfterViewInit(),this.createNestedComponent(),_o(50).pipe(_e(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 e=this.elRef.nativeElement.querySelector(".gui-drawer-content");return e?!e.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(e){return new(e||n)(l(Bt),l(ce),l(P),l(Iv),l(Jr),l(zt))};static \u0275cmp=R({type:n,selectors:[["ng-component"]],viewQuery:function(e,r){if(e&1&&Z(op,5,ri),e&2){let o;G(o=$())&&(r.container=o.first)}},features:[L],decls:5,vars:6,consts:[["container",""],[1,"gui-drawer-wrapper",3,"click"],[1,"gui-drawer-content"],[3,"click"]],template:function(e,r){if(e&1){let o=oe();f(0,"div",1),A("click",function(c){return V(o),j(r.clickOutside(c))},!1,Hh),f(1,"div",2)(2,"gui-close-icon",3),A("click",function(){return V(o),j(r.closeDrawer())}),v(),H(3,y5,0,0,"ng-template",null,0,wt),v()()}e&2&&(ft("max-width",r.width),ie("gui-drawer-fixed",r.isFixed)("gui-drawer-visible",r.visible))},dependencies:[z1],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})(),H1=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({imports:[le]})}return n})(),ku=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({providers:[Iv],imports:[le,H1]})}return n})(),T1=class{container;menu;windowSize;containerHeight=0;containerWidth=0;availableBottomSpace=0;availableTopSpace=0;constructor(t,i,e){this.container=t,this.menu=i,this.windowSize=e,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(t,i){let e=this.container.nativeElement,r=t.nativeElement.offsetHeight,o=e.getBoundingClientRect().bottom;this.containerHeight=e.offsetHeight,this.containerWidth=e.offsetWidth,this.availableBottomSpace=i-o-r,this.availableTopSpace=o-r-this.containerHeight}},oF=(()=>{class n{geometryResults$=new ue;watchGeometry(){return this.geometryResults$.asObservable()}changeGeometry(i,e,r){let o=new T1(i,e,r);this.geometryResults$.next(o)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),Il=function(n){return n[n.Right=0]="Right",n[n.Left=1]="Left",n}(Il||{}),bF=(()=>{class n extends rs{platformId;elementRef;renderer;changeDetectorRef;geometryService;dropdownMenuRef;containerRef;onResize(){Hn(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=Ja.BOTTOM;canOpenDownward=!1;canOpenUpward=!1;open=!1;topBorderWidth=1;constructor(i,e,r,o,a){super(),this.platformId=i,this.elementRef=e,this.renderer=r,this.changeDetectorRef=o,this.geometryService=a,this.onResize()}ngOnChanges(i){i.placement&&this.changePlacement()}ngOnInit(){this.geometryService.watchGeometry().pipe(_e(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===Ja.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===Il.Right&&this.openRight(),this.placement===Il.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 Il.Right:{this.removeClass(this.dropdownMenuRef.nativeElement,"gui-dropdown-left"),this.addClass(this.dropdownMenuRef.nativeElement,"gui-dropdown-right"),this.arrowDirection=Ja.RIGHT;break}case Il.Left:{this.removeClass(this.dropdownMenuRef.nativeElement,"gui-dropdown-right"),this.addClass(this.dropdownMenuRef.nativeElement,"gui-dropdown-left"),this.arrowDirection=Ja.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,e){this.renderer.addClass(i,e)}removeClass(i,e){this.renderer.removeClass(i,e)}static \u0275fac=function(e){return new(e||n)(l(Xt),l(P),l(zt),l(ce),l(oF))};static \u0275cmp=R({type:n,selectors:[["gui-dropdown"]],viewQuery:function(e,r){if(e&1&&(Z(w5,7,P),Z(op,7,P)),e&2){let o;G(o=$())&&(r.dropdownMenuRef=o.first),G(o=$())&&(r.containerRef=o.first)}},hostVars:2,hostBindings:function(e,r){e&1&&A("resize",function(){return r.onResize()},!1,Bs),e&2&&ie("gui-dropdown",!0)},inputs:{disabled:"disabled",dropdownText:"dropdownText",isArrowEnabled:"isArrowEnabled",placement:"placement",width:"width",showOnHover:"showOnHover"},features:[Ae([oF]),L,he],ngContentSelectors:is,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(e,r){if(e&1){let o=oe();rt(),f(0,"div",2,0),A("click",function(c){return V(o),j(r.tryToOpen(c))})("click",function(c){return V(o),j(r.clickOutside(c))},!1,Hh)("mouseenter",function(){return V(o),j(r.tryToOpenOnHover())})("mouseleave",function(){return V(o),j(r.hideOnHover())}),f(2,"div",3),T(3),v(),H(4,x5,2,3,"div",4),f(5,"div",5,1),Ne(7),v()()}e&2&&(ft("width",r.width,"px"),ie("gui-arrow-left",r.isDirectionLeft())("gui-disabled",r.disabled),b(3),Ee(r.dropdownText),b(),w("ngIf",r.isArrowEnabled),b(),ft("bottom",r.topPosition,"px")("left",r.horizontalPosition,"px")("top",r.bottomPosition,"px"))},dependencies:[Rt,xv],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})(),vF=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=R({type:n,selectors:[["gui-dropdown-item"]],ngContentSelectors:is,decls:2,vars:0,consts:[[1,"gui-item"]],template:function(e,r){e&1&&(rt(),f(0,"div",0),Ne(1),v())},encapsulation:2,changeDetection:0})}return n})(),Du=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({imports:[le,B1]})}return n})(),Sl=(()=>{class n extends dp{constructor(i,e,r,o){super(i,e,r,o)}getComponent(){return ez}open(i){if(this.isComponentCreated())return;let e=bt.FABRIC,r=this.getInjector();i&&i.theme&&(e=i.theme),i&&i.injector&&(r=i.injector);let o=Pe.create({providers:[{provide:Pu,useValue:e}],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(),_o(400).pipe(_e(this.unsubscribe$)).subscribe(()=>{this.removeComponent()})}}closeOnEscKey(){this.onCloseOnEsc().subscribe(()=>this.close())}afterComponentCreation(i){if(this.isComponentCreated()){let e=this.getComponentRef();e.instance.dialogNestedComponent=i.component,i?.width&&(e.instance.width=i.width),i?.height&&(e.instance.height=i.height),e.instance.setTransformOrigin(event)}}static \u0275fac=function(e){return new(e||n)(k(Bt),k(Ui),k(Pe),k(ye))};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),ez=(()=>{class n extends lp{componentFactoryResolver;changeDetectorRef;elRef;platformId;dialogService;container;dialogNestedComponent;visible=!1;width="400px";height="90vh";triggerPosition="";constructor(i,e,r,o,a,c,m){super(r,c,a),this.componentFactoryResolver=i,this.changeDetectorRef=e,this.elRef=r,this.platformId=o,this.dialogService=m}ngAfterViewInit(){super.ngAfterViewInit(),this.createNestedComponent(),_o(0).pipe(_e(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(Hn(this.platformId)&&i){let e=i.clientX-window.innerWidth/2,r=i.clientY-window.innerHeight/2;this.triggerPosition=`${e}px ${r}px`}}isContainerClicked(i){let e=this.elRef.nativeElement.querySelector(".gui-dialog-content");return e?!e.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(e){return new(e||n)(l(Bt),l(ce),l(P),l(Xt),l(Jr),l(zt),l(ci(()=>Sl)))};static \u0275cmp=R({type:n,selectors:[["gui-fabric-dialog"]],viewQuery:function(e,r){if(e&1&&Z(op,5,ri),e&2){let o;G(o=$())&&(r.container=o.first)}},hostVars:2,hostBindings:function(e,r){e&2&&ie("gui-fabric-dialog",!0)},features:[L],decls:6,vars:8,consts:[["container",""],[1,"gui-dialog-blanket"],[1,"gui-dialog-wrapper",3,"click"],[1,"gui-dialog-content"],[3,"click"]],template:function(e,r){if(e&1){let o=oe();E(0,"div",1),f(1,"div",2),A("click",function(c){return V(o),j(r.clickOutside(c))}),f(2,"div",3),H(3,C5,0,0,"ng-template",null,0,wt),f(5,"gui-close-icon",4),A("click",function(){return V(o),j(r.closeDialog())}),v()()()}e&2&&(b(2),ft("max-height",r.height)("max-width",r.width)("transform-origin",r.triggerPosition),ie("gui-dialog-visible",r.visible))},dependencies:[z1],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})(),tz=(()=>{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 bt.FABRIC;case"material":return bt.MATERIAL;case"generic":return bt.GENERIC;case"light":return bt.LIGHT;case"dark":return bt.DARK;default:return bt.FABRIC}}static \u0275fac=function(e){return new(e||n)};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),Su=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({providers:[Sl,tz],imports:[le,H1]})}return n})();var Eu=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({imports:[le]})}return n})(),iz=(()=>{class n{elementRef;renderer;width=5;diameter=90;primary=!1;secondary=!1;r=0;circumference=0;croppedCircle=0;circleSize=0;constructor(i,e){this.elementRef=i,this.renderer=e}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,e){return i+e}addClass(i){this.renderer.addClass(this.elementRef.nativeElement,i)}removeClass(i){this.renderer.removeClass(this.elementRef.nativeElement,i)}static \u0275fac=function(e){return new(e||n)(l(P),l(zt))};static \u0275dir=J({type:n,inputs:{width:"width",diameter:"diameter",primary:"primary",secondary:"secondary"},features:[he]})}return n})();var Tu=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({imports:[le]})}return n})(),_F=(()=>{class n{elementRef;renderer;name="";checked=!1;disabled=!1;changed=new Y;constructor(i,e){this.elementRef=i,this.renderer=e}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(e){return new(e||n)(l(P),l(zt))};static \u0275cmp=R({type:n,selectors:[["gui-radio-button"]],hostVars:2,hostBindings:function(e,r){e&2&&ie("gui-radio-button",!0)},inputs:{name:"name",checked:"checked",disabled:"disabled"},outputs:{changed:"changed"},features:[he],ngContentSelectors:is,decls:4,vars:3,consts:[["type","radio",3,"click","checked","disabled"],[1,"gui-radio-checkmark"]],template:function(e,r){e&1&&(rt(),f(0,"label")(1,"input",0),A("click",function(){return r.check()}),v(),E(2,"span",1),Ne(3),v()),e&2&&(b(),w("checked",r.checked)("disabled",r.disabled),De("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})(),Mu=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({imports:[le]})}return n})();var Au=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({imports:[le]})}return n})(),Jn=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}(Jn||{}),nz=(()=>{class n{renderer;notificationRef;notification;onNotificationClose=new Y;unsub$=new ue;constructor(i){this.renderer=i}ngOnInit(){this.notification?.timer.enabled&&_o(this.notification.timer.duration||0).pipe(_e(this.unsub$)).subscribe(()=>this.closeNotification())}ngOnDestroy(){this.unsub$.next(),this.unsub$.complete()}closeNotification(){this.addCloseAnimation(),_o(200).pipe(_e(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===Jn.TOP_RIGHT||this.notification?.position===Jn.BOTTOM_RIGHT}static \u0275fac=function(e){return new(e||n)(l(zt))};static \u0275cmp=R({type:n,selectors:[["gui-notification"]],viewQuery:function(e,r){if(e&1&&Z(I5,5,P),e&2){let o;G(o=$())&&(r.notificationRef=o.first)}},inputs:{notification:"notification"},outputs:{onNotificationClose:"onNotificationClose"},decls:4,vars:5,consts:[["guiNotification",""],[1,"gui-notification"],[3,"click"]],template:function(e,r){if(e&1){let o=oe();f(0,"div",1,0)(2,"gui-close-icon",2),A("click",function(){return V(o),j(r.closeNotification())}),v(),T(3),v()}e&2&&(ie("gui-notification-right-side",r.isRightSide())("gui-notification-left-side",!r.isRightSide()),b(3),Oe(" ",r.notification.description," "))},dependencies:[z1],encapsulation:2,changeDetection:0})}return n})(),M1=class{description;index;timer;position;constructor(t,i,e,r){this.description=t,this.index=i,this.timer=e,this.position=r}},yF=(()=>{class n extends dp{static DEFAULT_DURATION=4e3;fabricNotification;notificationIndex=0;unsub$=new ue;constructor(i,e,r,o){super(i,e,r,o)}ngOnDestroy(){this.removeNotificationContainer()}getComponent(){return oz}open(i,e){let r=Jn.TOP_RIGHT;if(e&&e.position&&(r=e.position),this.createFabricNotification(i,r,e),this.isComponentCreated())this.pushNotification(r);else{let o=bt.FABRIC,a=this.getInjector();e&&e.theme&&(o=e.theme),e&&e.injector&&(a=e.injector);let c=Pe.create({providers:[{provide:Pu,useValue:o}],parent:a});this.createAndAppend({injector:c}),this.pushNotification(r)}}close(){this.removeNotificationContainer(),this.unsub$.next(),this.unsub$.complete()}removeNotificationContainer(){this.isComponentCreated()&&(this.removeComponent(),this.notificationIndex=0)}createFabricNotification(i,e,r){let o=n.DEFAULT_DURATION,a=!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&&(a=r.timer.enabled)),this.fabricNotification=new M1(i,this.notificationIndex,{duration:o,enabled:a},e),this.notificationIndex+=1}pushNotification(i){if(!this.fabricNotification||!this.isComponentCreated())return;let e=this.getComponentRef();switch(i){case Jn.TOP_RIGHT:e.instance.notificationsTopRight=e.instance.notificationsTopRight.concat(this.fabricNotification);break;case Jn.TOP_LEFT:e.instance.notificationsTopLeft=e.instance.notificationsTopLeft.concat(this.fabricNotification);break;case Jn.BOTTOM_RIGHT:e.instance.notificationsBottomRight=e.instance.notificationsBottomRight.concat(this.fabricNotification);break;case Jn.BOTTOM_LEFT:e.instance.notificationsBottomLeft=e.instance.notificationsBottomLeft.concat(this.fabricNotification);break;default:break}e.instance.detectChanges()}static \u0275fac=function(e){return new(e||n)(k(Bt),k(Ui),k(Pe),k(ye))};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),rz=(()=>{class n{notifications=[];position;onNotificationClose=new Y;FabricNotificationPosition=Jn;emitClosedNotification(i){this.onNotificationClose.emit(i)}isPosition(i){return this.position===i}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=R({type:n,selectors:[["gui-notifications-container"]],hostVars:8,hostBindings:function(e,r){e&2&&ie("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(e,r){e&1&&H(0,k5,1,1,"gui-notification",0),e&2&&w("ngForOf",r.notifications)},dependencies:[Mi,nz],encapsulation:2,changeDetection:0})}return n})(),oz=(()=>{class n extends lp{changeDetectorRef;notificationsService;notificationsTopRight=[];notificationsTopLeft=[];notificationsBottomRight=[];notificationsBottomLeft=[];FabricNotificationPosition=Jn;constructor(i,e,r,o,a,c){super(e,r,o),this.changeDetectorRef=i,this.notificationsService=c}removeNotification(i){switch(i.position){case Jn.TOP_RIGHT:this.notificationsTopRight=this.notificationsTopRight.filter(e=>e.index!==i.index);break;case Jn.TOP_LEFT:this.notificationsTopLeft=this.notificationsTopLeft.filter(e=>e.index!==i.index);break;case Jn.BOTTOM_RIGHT:this.notificationsBottomRight=this.notificationsBottomRight.filter(e=>e.index!==i.index);break;case Jn.BOTTOM_LEFT:this.notificationsBottomLeft=this.notificationsBottomLeft.filter(e=>e.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(e){return new(e||n)(l(ce),l(P),l(zt),l(Jr),l(Pu),l(ci(()=>yF)))};static \u0275cmp=R({type:n,selectors:[["ng-component"]],hostVars:2,hostBindings:function(e,r){e&2&&ie("gui-notifications-overlay",!0)},features:[L],decls:4,vars:4,consts:[[3,"notifications","position","onNotificationClose",4,"ngIf"],[3,"onNotificationClose","notifications","position"]],template:function(e,r){e&1&&H(0,D5,1,2,"gui-notifications-container",0)(1,S5,1,2,"gui-notifications-container",0)(2,E5,1,2,"gui-notifications-container",0)(3,T5,1,2,"gui-notifications-container",0),e&2&&(w("ngIf",r.isContainerNotEmpty(r.notificationsTopRight)),b(),w("ngIf",r.isContainerNotEmpty(r.notificationsTopLeft)),b(),w("ngIf",r.isContainerNotEmpty(r.notificationsBottomRight)),b(),w("ngIf",r.isContainerNotEmpty(r.notificationsBottomLeft)))},dependencies:[Rt,rz],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})(),aF=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({providers:[yF],imports:[le,H1]})}return n})(),wF=(()=>{class n extends dp{constructor(i,e,r,o){super(i,e,r,o)}getComponent(){return az}open(i){this.createAndAppend({afterCompCreation:()=>this.afterCompCreation(i)})}close(){this.removeComponent()}afterCompCreation(i){if(this.isComponentCreated()){let e=this.getComponentRef();e.instance.text=i,e.instance.detectChanges()}}static \u0275fac=function(e){return new(e||n)(k(Bt),k(Ui),k(Pe),k(ye))};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),az=(()=>{class n{messageService;changeDetectorRef;text="";constructor(i,e){this.messageService=i,this.changeDetectorRef=e}detectChanges(){this.changeDetectorRef.detectChanges()}close(){this.messageService.close()}static \u0275fac=function(e){return new(e||n)(l(wF),l(ce))};static \u0275cmp=R({type:n,selectors:[["gui-message"]],decls:4,vars:1,consts:[[1,"gui-message"],[3,"click"]],template:function(e,r){e&1&&(f(0,"div",0),T(1),f(2,"button",1),A("click",function(){return r.close()}),T(3,"X"),v()()),e&2&&(b(),Oe(" ",r.text," "))},styles:[`.gui-message{left:50%;position:fixed;top:50%}
`],encapsulation:2,changeDetection:0})}return n})(),sF=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({providers:[wF],imports:[le]})}return n})(),sz=(()=>{class n{svgRef;svg="";ngAfterViewInit(){this.svgRef&&(this.svgRef.nativeElement.innerHTML=this.svg)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=R({type:n,selectors:[["gui-svg-template"]],viewQuery:function(e,r){if(e&1&&Z(M5,5,P),e&2){let o;G(o=$())&&(r.svgRef=o.first)}},inputs:{svg:"svg"},decls:2,vars:0,consts:[["svgEl",""]],template:function(e,r){e&1&&E(0,"div",null,0)},encapsulation:2,changeDetection:0})}return n})(),xF=(()=>{class n extends rs{renderer;changeDetectorRef;platformId;tabRef;tabItemRef;tabMenuList;menu=[];active="";scrollActive=!1;Direction=Ja;listPosition=0;menuListWidth=0;scrollAmount=60;ACTIVE_TAB_CLASS_NAME="gui-active";constructor(i,e,r){super(),this.renderer=i,this.changeDetectorRef=e,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 e=this.tabRef.nativeElement.querySelector(".gui-tab-menu-list").offsetWidth,r=this.menuListWidth-e;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 e=this.tabRef.nativeElement.querySelector('[data-tab="'+i+'"]'),r=this.tabItemRef.nativeElement.querySelector('[data-tab="'+i+'"]');this.addClass(e,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),e=this.tabItemRef.nativeElement.querySelector("."+this.ACTIVE_TAB_CLASS_NAME);this.removeClass(i,this.ACTIVE_TAB_CLASS_NAME),this.removeClass(e,this.ACTIVE_TAB_CLASS_NAME)}}addClass(i,e){i&&this.renderer.addClass(i,e)}removeClass(i,e){i&&this.renderer.removeClass(i,e)}checkIfMenuFitsOnResize(){Hn(this.platformId)&&Bn(window,"resize").pipe(_e(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(e){return new(e||n)(l(zt),l(ce),l(Xt))};static \u0275cmp=R({type:n,selectors:[["gui-tab"]],viewQuery:function(e,r){if(e&1&&(Z(A5,5,P),Z(R5,5,P),Z(F5,5,P)),e&2){let o;G(o=$())&&(r.tabRef=o.first),G(o=$())&&(r.tabItemRef=o.first),G(o=$())&&(r.tabMenuList=o)}},hostVars:2,hostBindings:function(e,r){e&2&&ie("gui-tab",!0)},inputs:{menu:"menu",active:"active",scrollActive:"scrollActive"},features:[L],ngContentSelectors:is,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(e,r){e&1&&(rt(),f(0,"div",null,0)(2,"div",3),H(3,O5,2,1,"div",4),f(4,"div",5),H(5,V5,4,3,"div",6),v(),H(6,j5,2,0,"div",4),v(),f(7,"div",7,1),Ne(9),v()()),e&2&&(b(3),w("ngIf",r.scrollActive),b(2),w("ngForOf",r.menu),b(),w("ngIf",r.scrollActive))},dependencies:[Mi,Rt,xv,sz],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})(),CF=(()=>{class n{tab="";static \u0275fac=function(e){return new(e||n)};static \u0275cmp=R({type:n,selectors:[["gui-tab-item"]],inputs:{tab:"tab"},ngContentSelectors:is,decls:2,vars:1,consts:[[1,"gui-tab-item"]],template:function(e,r){e&1&&(rt(),f(0,"div",0),Ne(1),v()),e&2&&De("data-tab",r.tab)},encapsulation:2,changeDetection:0})}return n})(),cz=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({imports:[le]})}return n})(),pc=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({imports:[le,B1,cz]})}return n})(),lz=(()=>{class n{elementRef;text="";left=0;top=0;constructor(i){this.elementRef=i}correctPosition(){this.top-=this.elementRef.nativeElement.offsetHeight}static \u0275fac=function(e){return new(e||n)(l(P))};static \u0275cmp=R({type:n,selectors:[["ng-component"]],hostVars:6,hostBindings:function(e,r){e&2&&(ft("left",r.left,"px")("top",r.top,"px"),ie("gui-tooltip",!0))},decls:1,vars:1,template:function(e,r){e&1&&T(0),e&2&&Oe(" ",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})(),kv=(()=>{class n extends rs{componentFactoryResolver;injector;elementRef;applicationRef;document;platformId;static tooltipOffset=8;text="";tooltipRef=null;tooltipTopPosition;tooltipLeftPosition;constructor(i,e,r,o,a,c){super(),this.componentFactoryResolver=i,this.injector=e,this.elementRef=r,this.applicationRef=o,this.document=a,this.platformId=c}ngOnInit(){let i=Bn(this.elementRef.nativeElement,"mouseenter"),e=Bn(this.elementRef.nativeElement,"mouseleave");i.pipe(_e(this.unsubscribe$)).subscribe(()=>this.show()),e.pipe(_e(this.unsubscribe$)).subscribe(()=>{this.tooltipRef&&this.hide()})}show(){let i=this.componentFactoryResolver.resolveComponentFactory(lz).create(this.injector);i.instance.text=this.text,i.changeDetectorRef.detectChanges();let e=i.hostView.rootNodes[0];this.document.body.appendChild(e),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,e=i.getBoundingClientRect(),r=e.bottom,o=e.left;Hn(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(e){return new(e||n)(l(Bt),l(Pe),l(P),l(Ui),l(ye),l(Xt))};static \u0275dir=J({type:n,selectors:[["","gui-tooltip",""]],inputs:{text:[z.None,"gui-tooltip","text"]},exportAs:["guiTooltip"],features:[L]})}return n})(),Dl=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({})}return n})(),dz=(()=>{class n{window;static BORDER_WIDTH=1;verticalPosition=0;horizontalPosition=0;canOpenUpward=!1;constructor(i,e,r){this.window=r,this.calculateCords(i,e)}getVerticalPosition(){return this.verticalPosition}getHorizontalPosition(){return this.horizontalPosition}getCanOpenUpward(){return this.canOpenUpward}calculateCords(i,e){let r=i.nativeElement.getBoundingClientRect(),o=this.window.pageYOffset+r.bottom,a=this.window.pageXOffset+r.left;this.horizontalPosition=a,this.verticalPosition=o-n.BORDER_WIDTH,this.calculateDirection(e,i)}calculateDirection(i,e){let r=this.window.innerHeight+this.window.pageYOffset,o=e.nativeElement.offsetHeight,a=i.getHeight();r-this.verticalPosition-a<0&&(this.canOpenUpward=!0,this.verticalPosition-=a+o-n.BORDER_WIDTH)}}return n})(),A1=class{selectOptionsGeometry;constructor(t){this.selectOptionsGeometry=t}getHeight(){return this.selectOptionsGeometry.nativeElement.querySelector(".gui-options-list").offsetHeight}getWidth(){return this.selectOptionsGeometry.nativeElement.querySelector(".gui-options-list").offsetWidth}},wv=(()=>{class n{platformId;selectContainerGeometry;selectOptionsCords$=new Rf(1);constructor(i){this.platformId=i}onSelectOptionsCords(){return this.selectOptionsCords$.asObservable()}setGeometry(i){this.selectContainerGeometry=new A1(i)}nextCords(i){if(Hn(this.platformId)&&this.selectContainerGeometry){let e=new dz(i,this.selectContainerGeometry,window);this.selectOptionsCords$.next(e)}}static \u0275fac=function(e){return new(e||n)(k(Xt))};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),R1=(()=>{class n{selectedOption$=new Rf(1);onSelectedOption(){return this.selectedOption$.asObservable()}next(i){this.selectedOption$.next(i)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),uz=(()=>{class n extends lp{selectOptionsGeometryService;selectService;changeDetectorRef;optionListRef;options=[];optionsContainerLeftAttribute=0;optionsContainerTopAttribute=0;width=100;selectedOption;canOpenUpward=!1;constructor(i,e,r,o,a,c){super(o,a,c),this.selectOptionsGeometryService=i,this.selectService=e,this.changeDetectorRef=r}ngOnInit(){this.selectOptionsGeometryService.onSelectOptionsCords().pipe(_e(this.unsubscribe$)).subscribe(i=>{this.optionsContainerTopAttribute=i.getVerticalPosition(),this.optionsContainerLeftAttribute=i.getHorizontalPosition(),this.canOpenUpward=i.getCanOpenUpward(),this.changeDetectorRef.detectChanges()}),this.selectService.onSelectedOption().pipe(_e(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(e){return new(e||n)(l(wv),l(R1),l(ce),l(P),l(zt),l(Jr))};static \u0275cmp=R({type:n,selectors:[["ng-component"]],viewQuery:function(e,r){if(e&1&&Z(L5,5,P),e&2){let o;G(o=$())&&(r.optionListRef=o.first)}},features:[L],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(e,r){e&1&&(f(0,"div",1,0),H(2,B5,2,5,"div",2),v()),e&2&&(ft("left",r.optionsContainerLeftAttribute,"px")("top",r.optionsContainerTopAttribute,"px"),ie("gui-upward",r.canOpenUpward)("gui-downward",!r.canOpenUpward),b(2),w("ngForOf",r.options))},dependencies:[Mi],encapsulation:2,changeDetection:0})}return n})(),cF=(()=>{class n extends dp{selectOptionsGeometryService;constructor(i,e,r,o,a){super(e,r,o,a),this.selectOptionsGeometryService=i}getComponent(){return uz}open(i,e){this.createAndAppend({afterCompCreation:()=>this.afterCompCreation(i,e)})}closeOptions(){this.removeComponent()}afterCompCreation(i,e){if(this.isComponentCreated()){let r=this.getComponentRef();r.instance.options=i,r.instance.width=e,r.instance.detectChanges(),this.selectOptionsGeometryService.setGeometry(r.instance.getElementRef()),r.instance.detectChanges()}}static \u0275fac=function(e){return new(e||n)(k(wv),k(Bt),k(Ui),k(Pe),k(ye))};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),Dv=(()=>{class n extends rs{selectService;selectOptionsGeometryService;selectOptionModalService;changeDetectorRef;platformId;elementRef;renderer;containerRef;options=[];placeholder="...";selected;width=100;disabled=!1;optionChanged=new Y;selectedOption;containerText;scrollListenerFn;doNotEmitValues=!1;opened=!1;constructor(i,e,r,o,a,c,m){super(),this.selectService=i,this.selectOptionsGeometryService=e,this.selectOptionModalService=r,this.changeDetectorRef=o,this.platformId=a,this.elementRef=c,this.renderer=m}ngOnChanges(i){i.placeholder&&(this.containerText=this.placeholder),i.selected&&this.selected&&this.tryToSelect(this.selected)}ngOnInit(){this.selectService.onSelectedOption().pipe(_e(this.unsubscribe$)).subscribe(i=>{this.emitSelectedOption(i),this.selectedOption=i,this.containerText=i.value??"",this.doNotEmitValues=!1,this.changeDetectorRef.detectChanges()}),this.selectOptionsGeometryService.onSelectOptionsCords().pipe(_e(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,e){this.containerRef&&(this.closeSelect(),this.selectOptionModalService.open(i,e),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(){Hn(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(e){return new(e||n)(l(R1),l(wv),l(cF),l(ce),l(Xt),l(P),l(zt))};static \u0275cmp=R({type:n,selectors:[["gui-select"]],viewQuery:function(e,r){if(e&1&&Z(op,5,P),e&2){let o;G(o=$())&&(r.containerRef=o.first)}},hostVars:2,hostBindings:function(e,r){e&2&&ie("gui-select",!0)},inputs:{options:"options",placeholder:"placeholder",selected:"selected",width:"width",disabled:"disabled"},outputs:{optionChanged:"optionChanged"},features:[Ae([R1,wv,cF]),L,he],decls:5,vars:5,consts:[["container",""],[1,"gui-select-container",3,"click"],[1,"gui-select-value"],[1,"gui-select-arrow"]],template:function(e,r){if(e&1){let o=oe();f(0,"div",1,0),A("click",function(c){return V(o),j(r.tryToOpen(c))})("click",function(c){return V(o),j(r.clickOutside(c))},!1,Hh),f(2,"div",2),T(3),v(),E(4,"span",3),v()}e&2&&(ft("width",r.width,"px"),ie("gui-disabled",r.disabled),b(3),Oe(" ",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})(),Ru=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({imports:[le]})}return n})();var lF=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({imports:[le]})}return n})(),IF=(()=>{class n extends iz{color="";constructor(i,e){super(i,e)}ngOnInit(){super.ngOnInit()}static \u0275fac=function(e){return new(e||n)(l(P),l(zt))};static \u0275cmp=R({type:n,selectors:[["gui-spinner"]],hostVars:2,hostBindings:function(e,r){e&2&&ie("gui-spinner",!0)},inputs:{color:"color"},features:[L],decls:5,vars:30,consts:[[1,"gui-spinner"],[1,"circle-outer"],["cx","50%","cy","50%"],[1,"circle-inner"]],template:function(e,r){e&1&&(f(0,"div",0),It(),f(1,"svg",1),E(2,"circle",2),v(),f(3,"svg",3),E(4,"circle",2),v()()),e&2&&(ft("height",r.circleSize,"px")("width",r.circleSize,"px"),b(),ft("height",r.circleSize,"px")("width",r.circleSize,"px"),b(),ft("stroke-dasharray",r.croppedCircle)("stroke-dashoffset",r.circumference)("stroke-width",r.width)("stroke",r.color),De("r",r.r),b(),ft("height",r.circleSize,"px")("width",r.circleSize,"px"),b(),ft("stroke-dasharray",r.croppedCircle)("stroke-dashoffset",r.circumference)("stroke-width",r.width)("stroke",r.color),De("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})(),Fu=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({imports:[le]})}return n})();var Ou=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({imports:[le,Zr,Zr]})}return n})();var dF=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({imports:[le]})}return n})();var hz=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({imports:[le]})}return n})(),uF=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({imports:[le,hz]})}return n})(),fc=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({providers:[Jr],imports:[le,Cu,Zr,Iu,nF,es,mc,yv,ku,Du,Su,kl,Mu,Au,uF,aF,sF,pc,Dl,Eu,Tu,Ru,lF,Fu,Ou,dF,ts,Cu,Zr,Iu,nF,es,mc,yv,ku,Du,Su,kl,Mu,Au,uF,aF,sF,pc,Dl,Eu,Tu,Ru,lF,Fu,Ou,dF,ts]})}return n})();var pz=["gui-row-detail",""],gz=["gui-paging-navigator","","paging",""],fz=["gui-paging-select","","paging",""],bz=["gui-paging-stats","","paging",""];function vz(n,t){if(n&1&&(nt(0),f(1,"span",2)(2,"span"),T(3),v(),T(4," - "),f(5,"span"),T(6),v()(),f(7,"span"),T(8),Re(9,"guiTranslate"),v(),f(10,"span",3),T(11),v(),at()),n&2){let i=S();b(3),Ee(i.firstItemIndex),b(3),Ee(i.lastItemIndex),b(2),Oe(" ",Le(9,4,"pagingOf")," "),b(3),Oe(" ",i.sourceSize," ")}}function _z(n,t){n&1&&(f(0,"span",4),T(1),Re(2,"guiTranslate"),v()),n&2&&(b(),Oe(" ",Le(2,1,"pagingNoItems")," "))}var yz=["gui-paging-alternative-navigator","","paging","","sourceSize",""],wz=["*"],xz=["gui-paging-alternative-pages","","paging",""];function Cz(n,t){if(n&1){let i=oe();f(0,"div")(1,"div",3)(2,"div",4),A("click",function(){let r=V(i).$implicit,o=S(2);return j(o.goToPage(r))}),T(3),v()()()}if(n&2){let i=t.$implicit,e=S(2);b(),ie("gui-paging-active-page",e.activePage(i))("gui-paging-visible-page",e.calculateVisiblePages(i)),b(2),Oe(" ",i," ")}}function Iz(n,t){if(n&1&&(nt(0),H(1,Cz,4,5,"div",2),at()),n&2){let i=S();b(),w("ngForOf",i.pages)}}function kz(n,t){n&1&&(f(0,"span",5),T(1),Re(2,"guiTranslate"),v()),n&2&&(b(),Oe(" ",Le(2,1,"pagingNoItems")," "))}var Dz=["gui-paging","","position",""];function Sz(n,t){if(n&1){let i=oe();nt(0),f(1,"div",4),A("pageSizeChanged",function(r){V(i);let o=S(3);return j(o.changePageSize(r))}),v(),E(2,"div",5),f(3,"div",6),A("nextPageChanged",function(){V(i);let r=S(2).$implicit,o=S();return j(o.nextPage(r.sourceSize))})("prevPageChanged",function(){V(i);let r=S(3);return j(r.prevPage())}),v(),at()}if(n&2){let i=S(2).$implicit;b(),w("paging",i.paging),b(),w("paging",i.paging),b(),w("paging",i.paging)("sourceSize",i.sourceSize)}}function Ez(n,t){if(n&1){let i=oe();E(0,"div",5),f(1,"div",6),A("nextPageChanged",function(){V(i);let r=S(2).$implicit,o=S();return j(o.nextPage(r.sourceSize))})("prevPageChanged",function(){V(i);let r=S(3);return j(r.prevPage())}),v()}if(n&2){let i=S(2).$implicit;w("paging",i.paging),b(),w("paging",i.paging)("sourceSize",i.sourceSize)}}function Tz(n,t){if(n&1&&(nt(0),H(1,Sz,4,4,"ng-container",3)(2,Ez,2,3,"ng-template",null,0,wt),at()),n&2){let i=Si(3),e=S(2);b(),w("ngIf",!e.minimal)("ngIfElse",i)}}function Mz(n,t){if(n&1){let i=oe();nt(0),f(1,"div",4),A("pageSizeChanged",function(r){V(i);let o=S(2);return j(o.changePageSize(r))}),v(),f(2,"div",7),A("nextPageChanged",function(){V(i);let r=S().$implicit,o=S();return j(o.nextPage(r.sourceSize))})("prevPageChanged",function(){V(i);let r=S(2);return j(r.prevPage())}),E(3,"div",8),v(),at()}if(n&2){let i=S().$implicit;b(),w("paging",i.paging),b(),w("paging",i.paging)("sourceSize",i.sourceSize),b(),w("paging",i.paging)("sourceSize",i.sourceSize)}}function Az(n,t){if(n&1&&(nt(0),H(1,Tz,4,2,"ng-container",2)(2,Mz,4,5,"ng-container",2),at()),n&2){let i=t.$implicit;b(),w("ngIf",i.isPagingVisible&&!i.alternativeDisplay),b(),w("ngIf",i.isPagingVisible&&i.alternativeDisplay)}}var YE=["value",""];function Rz(n,t){if(n&1&&E(0,"gui-percentage-view",3),n&2){let i=S();w("value",i.value)}}function Fz(n,t){if(n&1&&(nt(0),E(1,"span",2),Re(2,"guiSafe"),at()),n&2){let i=S();b(),w("innerHTML",hr(2,1,i.value.value,"html"),Jc)}}function Oz(n,t){if(n&1&&(f(0,"span"),T(1),v()),n&2){let i=S();b(),Oe(" ",i.value.value," ")}}var Pz=["text"],RF=["number"],Nz=["chip"],Vz=["link"],jz=["image"],FF=["checkbox"],Lz=["bold"],Bz=["italic"],zz=["custom"],Hz=["function"],Uz=["html"],OF=["date"],Wz=["bar"],Gz=["percentageBar"],$z=["percentage"];function Yz(n,t){if(n&1&&E(0,"gui-view-text",15),n&2){let i=t.element;w("value",i)}}function qz(n,t){if(n&1&&(f(0,"span",16),T(1),v()),n&2){let i=t.element;b(),Oe(" ",i.value," ")}}function Qz(n,t){if(n&1&&(f(0,"gui-chip"),E(1,"gui-view-text",15),v()),n&2){let i=t.element;b(),w("value",i)}}function Kz(n,t){if(n&1&&(f(0,"a",17),E(1,"gui-view-text",15),v()),n&2){let i=t.element;Hs("href",i.value,Bd),b(),w("value",i)}}function Xz(n,t){if(n&1&&E(0,"img",18),n&2){let i=t.element;Hs("src",i.value,Bd)}}function Zz(n,t){if(n&1&&(f(0,"span",19),E(1,"gui-checkbox",20),v()),n&2){let i=t.element;b(),w("checked",!!i.value)("disabled",!0)}}function Jz(n,t){if(n&1&&E(0,"gui-view-text",21),n&2){let i=t.element;w("value",i)}}function eH(n,t){if(n&1&&E(0,"gui-view-text",22),n&2){let i=t.element;w("value",i)}}function tH(n,t){if(n&1&&T(0),n&2){let i=t.element;Oe(" ",i.value," ")}}function iH(n,t){if(n&1&&E(0,"gui-function-view",23),n&2){let i=t.element;w("element",i)}}function nH(n,t){if(n&1&&E(0,"gui-html-view",23),n&2){let i=t.element;w("element",i)}}function rH(n,t){if(n&1&&(f(0,"span",24),T(1),Re(2,"date"),v()),n&2){let i=t.element;b(),Ee(hr(2,1,i.value,"dd/MM/yyyy"))}}function oH(n,t){if(n&1&&E(0,"gui-bar-view",25),n&2){let i=t.element;w("value",i.value)("showPercentage",!1)}}function aH(n,t){if(n&1&&E(0,"gui-bar-view",25),n&2){let i=t.element;w("value",i.value)("showPercentage",!0)}}function sH(n,t){if(n&1&&E(0,"gui-percentage-view",15),n&2){let i=t.element;w("value",i.value)}}var cH=["input"],lH=["datepicker"],dH=["string"],uH=["boolean"],hH=["empty"];function mH(n,t){if(n&1&&E(0,"gui-string-edit",5),n&2){let i=t.valueChanges,e=t.value,r=t.status,o=t.focus;w("valueChanges",i)("value",e)("status",r)("focus",o)}}function pH(n,t){if(n&1&&E(0,"gui-number-edit",5),n&2){let i=t.valueChanges,e=t.value,r=t.status,o=t.focus;w("valueChanges",i)("value",e)("status",r)("focus",o)}}function gH(n,t){if(n&1&&E(0,"gui-boolean-edit",5),n&2){let i=t.valueChanges,e=t.value,r=t.status,o=t.focus;w("valueChanges",i)("value",e)("status",r)("focus",o)}}function fH(n,t){if(n&1&&E(0,"gui-date-edit",6),n&2){let i=t.valueChanges,e=t.value,r=t.status,o=t.focus,a=t.parent;w("valueChanges",i)("value",e)("status",r)("focus",o)("parent",a)}}function bH(n,t){}var vH=["gui-structure-summaries-panel","","enabled",""];function _H(n,t){n&1&&E(0,"div",4)}function yH(n,t){if(n&1&&(f(0,"div",7)(1,"span",8),T(2),Re(3,"guiTranslate"),v(),f(4,"span",9),T(5),v()()),n&2){let i=S(2).$implicit,e=S(2).$implicit;b(),w("gui-tooltip",e.summariesTranslations.countTooltip),b(),Ee(Le(3,3,"summariesCount")),b(3),Ee(e.summaries.get(i.getFieldId().getId()).count)}}function wH(n,t){if(n&1&&(f(0,"div",7)(1,"span",8),T(2),Re(3,"guiTranslate"),v(),f(4,"span",9),T(5),v()()),n&2){let i=S(2).$implicit,e=S(2).$implicit;b(),w("gui-tooltip",e.summariesTranslations.distinctTooltip),b(),Ee(Le(3,3,"summariesDist")),b(3),Ee(e.summaries.get(i.getFieldId().getId()).distinct)}}function xH(n,t){if(n&1&&(f(0,"div",7)(1,"span"),T(2),Re(3,"guiTranslate"),v(),f(4,"span",9),T(5),v()()),n&2){let i=S(2).$implicit,e=S(2).$implicit;b(2),Oe(" ",Le(3,2,"summariesSum")," "),b(3),Ee(e.summaries.get(i.getFieldId().getId()).sum)}}function CH(n,t){if(n&1&&(f(0,"div",7)(1,"span",8),T(2),Re(3,"guiTranslate"),v(),f(4,"span",9),T(5),v()()),n&2){let i=S(2).$implicit,e=S(2).$implicit;b(),w("gui-tooltip",e.summariesTranslations.averageTooltip),b(),Ee(Le(3,3,"summariesAvg")),b(3),Ee(e.summaries.get(i.getFieldId().getId()).average)}}function IH(n,t){if(n&1&&(f(0,"div",7)(1,"span",8),T(2),Re(3,"guiTranslate"),v(),f(4,"span",9),T(5),v()()),n&2){let i=S(2).$implicit,e=S(2).$implicit;b(),w("gui-tooltip",e.summariesTranslations.minTooltip),b(),Oe(" ",Le(3,3,"summariesMin")," "),b(3),Ee(e.summaries.get(i.getFieldId().getId()).min)}}function kH(n,t){if(n&1&&(f(0,"div",7)(1,"span",8),T(2),Re(3,"guiTranslate"),v(),f(4,"span",9),T(5),v()()),n&2){let i=S(2).$implicit,e=S(2).$implicit;b(),w("gui-tooltip",e.summariesTranslations.maxTooltip),b(),Oe(" ",Le(3,3,"summariesMax")," "),b(3),Ee(e.summaries.get(i.getFieldId().getId()).max)}}function DH(n,t){if(n&1&&(f(0,"div",7)(1,"span",8),T(2),Re(3,"guiTranslate"),v(),f(4,"span",9),T(5),v()()),n&2){let i=S(2).$implicit,e=S(2).$implicit;b(),w("gui-tooltip",e.summariesTranslations.medTooltip),b(),Ee(Le(3,3,"summariesMed")),b(3),Ee(e.summaries.get(i.getFieldId().getId()).median)}}function SH(n,t){if(n&1&&(f(0,"div",7)(1,"span"),T(2),Re(3,"guiTranslate"),v(),f(4,"span",9),T(5),v()()),n&2){let i=S(2).$implicit,e=S(2).$implicit;b(2),Ee(Le(3,2,"summariesTruthy")),b(3),Ee(e.summaries.get(i.getFieldId().getId()).truthy)}}function EH(n,t){if(n&1&&(f(0,"div",7)(1,"span"),T(2),Re(3,"guiTranslate"),v(),f(4,"span",9),T(5),v()()),n&2){let i=S(2).$implicit,e=S(2).$implicit;b(2),Ee(Le(3,2,"summariesFalsy")),b(3),Ee(e.summaries.get(i.getFieldId().getId()).falsy)}}function TH(n,t){if(n&1&&(nt(0),H(1,yH,6,5,"div",6)(2,wH,6,5,"div",6)(3,xH,6,4,"div",6)(4,CH,6,5,"div",6)(5,IH,6,5,"div",6)(6,kH,6,5,"div",6)(7,DH,6,5,"div",6)(8,SH,6,4,"div",6)(9,EH,6,4,"div",6),at()),n&2){let i=S().$implicit,e=S(2).$implicit,r=S();b(),w("ngIf",r.isSummariesTypePresent(e.summaries.get(i.getFieldId().getId()).count)),b(),w("ngIf",r.isSummariesTypePresent(e.summaries.get(i.getFieldId().getId()).distinct)),b(),w("ngIf",r.isSummariesTypePresent(e.summaries.get(i.getFieldId().getId()).sum)),b(),w("ngIf",r.isSummariesTypePresent(e.summaries.get(i.getFieldId().getId()).average)),b(),w("ngIf",r.isSummariesTypePresent(e.summaries.get(i.getFieldId().getId()).min)),b(),w("ngIf",r.isSummariesTypePresent(e.summaries.get(i.getFieldId().getId()).max)),b(),w("ngIf",r.isSummariesTypePresent(e.summaries.get(i.getFieldId().getId()).median)),b(),w("ngIf",r.isSummariesTypePresent(e.summaries.get(i.getFieldId().getId()).truthy)),b(),w("ngIf",r.isSummariesTypePresent(e.summaries.get(i.getFieldId().getId()).falsy))}}function MH(n,t){if(n&1&&(f(0,"div",5),H(1,TH,10,9,"ng-container",1),v()),n&2){let i=t.$implicit,e=S(2).$implicit;ft("width",i.width,"px"),b(),w("ngIf",e.summaries&&!!e.summaries.get(i.getFieldId().getId()))}}function AH(n,t){if(n&1&&(nt(0),H(1,_H,1,0,"div",2),Re(2,"guiPush"),H(3,MH,2,3,"div",3),Re(4,"guiPush"),at()),n&2){let i=S(2);b(),w("ngIf",Le(2,2,i.checkboxSelection$)),b(2),w("ngForOf",Le(4,4,i.headerColumns$))}}function RH(n,t){if(n&1&&(nt(0),H(1,AH,5,6,"ng-container",1),at()),n&2){let i=t.$implicit,e=S();b(),w("ngIf",e.enabled&&i.summaries&&!i.sourceEmpty)}}var FH=["gui-info-dialog",""],OH=["gui-structure-column-manager",""];function PH(n,t){n&1&&Hd(0)}function NH(n,t){if(n&1){let i=oe();f(0,"li",3),A("click",function(){let r=V(i).$implicit,o=S(2);return j(o.toggleColumn(r))}),f(1,"gui-checkbox",4),H(2,PH,1,0,"ng-container",5),v()()}if(n&2){let i=t.$implicit,e=S().$implicit;b(),w("checked",i.isEnabled())("disabled",e.enabledColumnsCount===1&&i.isEnabled()),b(),w("ngTemplateOutlet",i.viewTemplate)("ngTemplateOutletContext",i.context)}}function VH(n,t){if(n&1&&(f(0,"ol",1),H(1,NH,3,4,"li",2),v()),n&2){let i=t.$implicit;b(),w("ngForOf",i.columns)}}var jH=["gui-structure-dialog-column-manager",""],LH=["gui-structure-schema-manager",""];function BH(n,t){if(n&1){let i=oe();f(0,"li",7),A("click",function(){let r=V(i).$implicit,o=S();return j(o.toggleVerticalGrid(r))}),f(1,"gui-checkbox",8),T(2),Re(3,"guiTranslate"),v()()}if(n&2){let i=t.$implicit;b(),w("checked",i),b(),Oe(" ",Le(3,2,"themeManagerModalVerticalGrid")," ")}}function zH(n,t){if(n&1){let i=oe();f(0,"li",7),A("click",function(){let r=V(i).$implicit,o=S();return j(o.toggleHorizontalGrid(r))}),f(1,"gui-checkbox",8),T(2),Re(3,"guiTranslate"),v()()}if(n&2){let i=t.$implicit;b(),w("checked",i),b(),Oe(" ",Le(3,2,"themeManagerModalHorizontalGrid")," ")}}var HH=["gui-schema-manager-dialog",""],UH=["gui-structure-column-manager-icon",""],WH=["gui-structure-schema-manager-icon",""],GH=["gui-active-search",""];function $H(n,t){if(n&1){let i=oe();nt(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),A("click",function(){V(i);let r=S();return j(r.clearSearch())}),T(8," Clear search "),v()(),at()}if(n&2){let i=t.$implicit;b(5),Ee(i),b(2),w("outline",!0)("primary",!0)}}var YH=["gui-active-filter-list",""];function qH(n,t){if(n&1){let i=oe();f(0,"div"),T(1),f(2,"span",3),A("click",function(){let r=V(i).$implicit,o=S(2);return j(o.removeFilter(r))}),T(3,"X"),v()()}if(n&2){let i=t.$implicit;b(),Oe(" ",i.getText()," ")}}function QH(n,t){if(n&1&&(nt(0),H(1,qH,4,1,"div",2),at()),n&2){let i=t.$implicit;b(),w("ngForOf",i)}}var KH=["gui-structure-info-icon",""],XH=["gui-structure-info-panel",""];function ZH(n,t){if(n&1&&(nt(0),T(1),Re(2,"guiTranslate"),f(3,"b"),T(4),Re(5,"numberFormatter"),v(),T(6),Re(7,"guiTranslate"),at()),n&2){let i=S(3).$implicit;b(),Oe(" ",Le(2,3,"infoPanelShowing")," "),b(3),Ee(Le(5,5,i)),b(2),Oe(" ",Le(7,7,"infoPanelItems")," ")}}function JH(n,t){if(n&1&&(f(0,"span",5),T(1),Re(2,"guiTranslate"),f(3,"b"),T(4),Re(5,"numberFormatter"),v(),T(6),Re(7,"guiTranslate"),f(8,"b"),T(9),Re(10,"numberFormatter"),v(),T(11),Re(12,"guiTranslate"),v()),n&2){let i=S(3).$implicit,e=S().$implicit;b(),Oe(" ",Le(2,5,"infoPanelShowing")," "),b(3),Ee(Le(5,7,e.preparedItemsSize)),b(2),Oe(" ",Le(7,9,"infoPanelOutOf")," "),b(3),Ee(Le(10,11,i)),b(2),Oe(" ",Le(12,13,"infoPanelItems")," ")}}function e6(n,t){if(n&1&&(nt(0),H(1,ZH,8,9,"ng-container",3)(2,JH,13,15,"span",4),at()),n&2){let i=S(2).$implicit,e=S().$implicit;b(),w("ngIf",e.preparedItemsSize===i),b(),w("ngIf",e.preparedItemsSize!==i)}}function t6(n,t){if(n&1&&(f(0,"div"),H(1,e6,3,2,"ng-container",3),v()),n&2){let i=S().$implicit,e=S().$implicit;b(),w("ngIf",e.preparedItemsSize!==void 0&&i!==void 0)}}function i6(n,t){if(n&1&&(f(0,"div"),H(1,t6,2,1,"div",3),v()),n&2){let i=S().$implicit;b(),w("ngIf",i.infoPanelConfig.isSourceSizeEnabled())}}function n6(n,t){if(n&1){let i=oe();f(0,"div",6),A("click",function(){V(i);let r=S(2);return j(r.openSchemaManager())}),E(1,"div",7),v()}if(n&2){let i=S().$implicit;b(),w("gui-tooltip",i.translations.infoPanelThemeMangerTooltipText)}}function r6(n,t){if(n&1){let i=oe();f(0,"div",6),A("click",function(){V(i);let r=S(2);return j(r.openColumnManager())}),E(1,"div",8),v()}if(n&2){let i=S().$implicit;b(),w("gui-tooltip",i.translations.infoPanelColumnManagerTooltipText)}}function o6(n,t){if(n&1){let i=oe();f(0,"div",6),A("click",function(){V(i);let r=S(2);return j(r.openInfo())}),E(1,"div",9),v()}if(n&2){let i=S().$implicit;b(),w("gui-tooltip",i.translations.infoPanelInfoTooltipText)}}function a6(n,t){if(n&1&&(nt(0),H(1,i6,2,1,"div",0),f(2,"div")(3,"div",1),H(4,n6,2,1,"div",2)(5,r6,2,1,"div",2)(6,o6,2,1,"div",2),v()(),at()),n&2){let i=t.$implicit,e=S();b(),w("guiLet",e.totalItemsSize$),b(3),w("ngIf",i.infoPanelConfig.isSchemaManagerEnabled()),b(),w("ngIf",i.infoPanelConfig.isColumnsManagerEnabled()),b(),w("ngIf",i.infoPanelConfig.isInfoDialogEnabled())}}var s6=["gui-search-icon",""],c6=["formRef"],l6=["gui-search-bar",""];function d6(n,t){if(n&1){let i=oe();f(0,"span",6),A("click",function(){V(i);let r=S(2);return j(r.clear())}),v()}}function u6(n,t){if(n&1&&(nt(0),f(1,"form",2,0),E(3,"div",3)(4,"input",4),Re(5,"guiPush"),H(6,d6,1,0,"span",5),v(),at()),n&2){let i=S();b(),w("formGroup",i.searchForm),b(3),w("placeholder",Le(5,3,i.placeholder$)),b(2),w("ngIf",i.searchForm.controls.searchPhrase.value)}}var h6=["gui-structure-top-panel",""],m6=["gui-empty-source","","items",""];function p6(n,t){n&1&&(nt(0),T(1),Re(2,"guiTranslate"),at()),n&2&&(b(),Oe(" ",Le(2,1,"sourceEmpty"),`
`))}var g6=["gui-structure-menu-column-manager",""],f6=["gui-unique-value-list","","fieldId",""];function b6(n,t){if(n&1){let i=oe();f(0,"div")(1,"gui-checkbox",6),A("changed",function(){let r=V(i).$implicit,o=S(2);return j(o.toggleSelect(r))}),T(2),v()()}if(n&2){let i=t.$implicit;b(),w("checked",i.isEnabled()),b(),Oe(" ",i.getValue()," ")}}function v6(n,t){if(n&1){let i=oe();nt(0),f(1,"gui-checkbox",1),A("changed",function(){V(i);let r=S();return j(r.toggleAllSelect())}),T(2," Select all "),v(),f(3,"div",2),H(4,b6,3,2,"div",3),v(),f(5,"div",4)(6,"button",5),A("click",function(){V(i);let r=S();return j(r.clearFilters())}),T(7," Clear "),v()(),at()}if(n&2){let i=t.$implicit;b(),w("checked",i.selectAllChecked)("indeterminate",i.selectAllIndeterminate),b(3),w("ngForOf",i.uniqueValues),b(2),w("outline",!0)("primary",!0)}}var _6=["gui-structure-arrow-icon",""],y6=["gui-structure-column-config-sort","","column","","dropdownTextTranslation",""];function w6(n,t){if(n&1){let i=oe();f(0,"gui-dropdown",1)(1,"gui-dropdown-item",2),A("click",function(){V(i);let r=S();return j(r.setSortOrder(r.status.ASC))}),f(2,"div",3),T(3),Re(4,"guiTranslate"),E(5,"div",4),v()(),f(6,"gui-dropdown-item",2),A("click",function(){V(i);let r=S();return j(r.setSortOrder(r.status.DESC))}),f(7,"div",3),T(8),Re(9,"guiTranslate"),E(10,"div",5),v()(),f(11,"gui-dropdown-item",2),A("click",function(){V(i);let r=S();return j(r.setSortOrder(r.status.NONE))}),T(12),Re(13,"guiTranslate"),v()()}if(n&2){let i=S();w("dropdownText",i.dropdownTextTranslation)("placement",i.placement)("showOnHover",!0)("width",225),b(),ie("gui-header-item-active",i.isAscSort()),b(2),Oe(" ",Le(4,16,"headerMenuMainTabColumnSortAscending")," "),b(2),w("sort",!0),b(),ie("gui-header-item-active",i.isDescSort()),b(2),Oe(" ",Le(9,18,"headerMenuMainTabColumnSortDescending")," "),b(2),w("position",i.StructureArrowPosition.DOWN)("sort",!0),b(),ie("gui-header-item-active",i.isNoneSort()),b(),Oe(" ",Le(13,20,"headerMenuMainTabColumnSortNone")," ")}}var x6=["gui-structure-column-config-column-hide",""],C6=["gui-structure-column-config-column-move","","column",""],I6=["headerSortMenu"],k6=["gui-column-config",""];function D6(n,t){if(n&1&&E(0,"div",10),n&2){let i=S(3).$implicit,e=S();w("column",e.column)("dropdownTextTranslation",i.translations.headerMenuMainTabColumnSort)}}function S6(n,t){if(n&1){let i=oe();nt(0),f(1,"gui-tab-item",5),H(2,D6,1,2,"div",6),f(3,"div",7),A("columnHidden",function(){V(i);let r=S(3);return j(r.hideColumn())}),v(),f(4,"div",8),A("click",function(){V(i);let r=S(3);return j(r.highlightColumn())}),T(5),Re(6,"guiTranslate"),v(),f(7,"div",9),A("movedLeft",function(){V(i);let r=S(3);return j(r.moveLeft())})("movedRight",function(){V(i);let r=S(3);return j(r.moveRight())}),v()(),at()}if(n&2){let i=S(2).$implicit,e=S();b(),w("tab",i.translations.headerMenuMainTab),b(),w("ngIf",e.column.isSortEnabled()),b(),w("column",e.column),b(2),Oe(" ",Le(6,5,"headerMenuMainTabHighlightColumn")," "),b(2),w("column",e.column)}}function E6(n,t){if(n&1&&(nt(0),f(1,"gui-tab-item",11),E(2,"div",12),v(),at()),n&2){let i=S(2).$implicit,e=S();b(),w("tab",i.translations.headerMenuFilterTab),b(),w("fieldId",e.column.getFieldId())}}function T6(n,t){if(n&1&&(nt(0),f(1,"gui-tab-item",11),E(2,"div",13),v(),at()),n&2){let i=S(2).$implicit;b(),w("tab",i.translations.headerMenuColumnsTab)}}function M6(n,t){if(n&1&&(f(0,"div",2)(1,"gui-tab",3),H(2,S6,8,7,"ng-container",4)(3,E6,3,2,"ng-container",4)(4,T6,3,1,"ng-container",4),v()()),n&2){let i=S().$implicit;b(),w("active",i.config.getActiveMenu())("menu",i.config.getMenus()),b(),w("ngIf",i.config.isMainEnabled()),b(),w("ngIf",i.config.isFilteringEnabled()),b(),w("ngIf",i.config.isColumnManagerEnabled())}}function A6(n,t){if(n&1&&(nt(0),H(1,M6,5,5,"div",1),at()),n&2){let i=t.$implicit;b(),w("ngIf",i.isEnabled)}}var R6=["gui-select-custom-modal",""];function F6(n,t){if(n&1){let i=oe();f(0,"li",2),A("click",function(){let r=V(i).$implicit,o=S(2);return j(o.selectCustom(r.getCustomSelectId()))}),T(1),v()}if(n&2){let i=t.$implicit;De("id",i.key),b(),Oe(" ",i.text," ")}}function O6(n,t){if(n&1&&(f(0,"ul"),H(1,F6,2,2,"li",1),v()),n&2){let i=t.$implicit;b(),w("ngForOf",i.getSelections())}}var P6=["gui-select-all",""];function N6(n,t){if(n&1){let i=oe();f(0,"gui-checkbox",2),A("changed",function(){V(i);let r=S().$implicit,o=S();return j(o.toggleSelectAll(r.isAllIndeterminate,r.isAllChecked))}),v()}if(n&2){let i=S().$implicit;w("checked",i.isAllChecked)("gui-tooltip","Select")("indeterminate",i.isAllIndeterminate)}}function V6(n,t){if(n&1&&(nt(0),H(1,N6,1,3,"gui-checkbox",1),at()),n&2){let i=t.$implicit;b(),w("ngIf",i.modeMulti)}}var j6=["gui-structure-menu-icon",""],L6=["headerDialogContainer"],B6=["gui-structure-column-config-trigger",""];function z6(n,t){if(n&1){let i=oe();f(0,"div",2,0),A("click",function(){V(i);let r=S();return j(r.openConfigDialog())}),E(2,"div",3),v()}n&2&&(b(2),w("ngClass","gui-header-menu-icon"))}var H6=["selectCustomContainer"],U6=["gui-structure-header-columns","","columns",""],W6=n=>({"gui-header-sortable":n});function G6(n,t){n&1&&(f(0,"div",2),E(1,"div",3),v())}function $6(n,t){n&1&&Hd(0)}function Y6(n,t){if(n&1&&E(0,"div",10),n&2){let i=S().$implicit;w("position",i.getSortStatus())("sort",!0)}}function q6(n,t){if(n&1){let i=oe();f(0,"div",4),A("click",function(){let r=V(i).$implicit,o=S();return j(o.toggleSort(r))}),f(1,"div",5),H(2,$6,1,0,"ng-container",6)(3,Y6,1,2,"div",7),v(),f(4,"div",8),E(5,"div",9),v()()}if(n&2){let i=t.$implicit;FM(i.getStyles()),Di(i.getCssClasses()),ft("width",i.width,"px"),w("ngClass",Ti(11,W6,i.isSortEnabled())),b(2),w("ngTemplateOutlet",i.viewTemplate)("ngTemplateOutletContext",i.context),b(),w("ngIf",!i.isNoSort()),b(2),w("column",i)}}var Q6=["gui-structure-header-groups","","groups","","checkboxSelection",""];function K6(n,t){n&1&&(f(0,"div",2),E(1,"div",3),v())}function X6(n,t){if(n&1&&(f(0,"div",4)(1,"div",5),T(2),v()()),n&2){let i=t.$implicit;ft("width",i.width,"px"),b(2),Oe(" ",i.header," ")}}var Z6=["gui-structure-header-filters","","columns",""],J6=()=>["has value","is the same as","starts with","ends with"];function eU(n,t){if(n&1){let i=oe();f(0,"div",2)(1,"button",3),A("click",function(){V(i);let r=S(2);return j(r.turnOnFilterMode())}),T(2,"Add Filter"),v()()}if(n&2){let i=t.$implicit;ft("width",i.width,"px")}}function tU(n,t){if(n&1&&(nt(0),H(1,eU,3,2,"div",1),at()),n&2){let i=S();b(),w("ngForOf",i.columns)}}function iU(n,t){if(n&1){let i=oe();nt(0),E(1,"gui-select",4),f(2,"form",5),E(3,"input",6),v(),f(4,"button",7),A("click",function(){V(i);let r=S();return j(r.clearFilters())}),T(5,"Clear All"),v(),f(6,"button",7),A("click",function(){V(i);let r=S();return j(r.turnOffFilterMode())}),T(7,"Close"),v(),at()}if(n&2){let i=S();b(),w("options",Ei(4,J6))("selected","has value"),b(),w("formGroup",i.filterForm),b(),w("formControlName",i.filterFieldName)}}var nU=["gui-structure-header",""];function rU(n,t){if(n&1&&E(0,"div",3),n&2){let i=S().$implicit;w("checkboxSelection",i.showSelection)("groups",i.groups)}}function oU(n,t){if(n&1&&(nt(0),H(1,rU,1,2,"div",2),at()),n&2){let i=t.$implicit;b(),w("ngIf",i.showGroups)}}function aU(n,t){if(n&1&&E(0,"div",4),n&2){let i=t.$implicit,e=S();w("columns",i.headerColumns)("guiStyle",e.width$)("showSelection",i.showSelection)}}function sU(n,t){if(n&1&&E(0,"div",6),n&2){let i=S().$implicit,e=S();w("columns",i.headerColumns)("guiStyle",e.filterHeaderHeight$)}}function cU(n,t){if(n&1&&(nt(0),H(1,sU,1,2,"div",5),at()),n&2){let i=t.$implicit;b(),w("ngIf",i.filterRowEnabled)}}var lU=["cellContainer"],dU=["gui-structure-cell-edit-boolean","","entity","","cell",""];function uU(n,t){n&1&&Hd(0)}var hU=["gui-structure-cell","","entity","","cell",""],mU=(n,t,i,e)=>({"gui-cell-view":!0,"gui-align-left":n,"gui-align-center":t,"gui-align-right":i,"gui-column-highlighted":e}),pU=(n,t,i,e)=>({element:n,index:t,value:i,item:e});function gU(n,t){n&1&&Hd(0)}function fU(n,t){if(n&1){let i=oe();f(0,"span",3),A("click",function(){V(i);let r=S(2);return j(r.enterEditMode())}),H(1,gU,1,0,"ng-container",4),v()}if(n&2){let i=S(2);w("ngClass",Hx(3,mU,i.cell.isAlignLeft(),i.cell.isAlignCenter(),i.cell.isAlignRight(),i.isHighlighted)),b(),w("ngTemplateOutlet",i.cell.template)("ngTemplateOutletContext",Hx(8,pU,i.cell.getValue(i.entity,i.searchPhrase),i.entity.getPosition(),i.cell.getValue(i.entity,i.searchPhrase).value,i.entity.getSourceItem()))}}function bU(n,t){n&1&&Hd(0)}function vU(n,t){if(n&1&&(f(0,"span",5),H(1,bU,1,0,"ng-container",4),v()),n&2){let i=S(2);b(),w("ngTemplateOutlet",i.cell.editTemplate)("ngTemplateOutletContext",i.editContext)}}function _U(n,t){if(n&1&&(nt(0),H(1,fU,2,13,"span",1)(2,vU,2,2,"span",2),at()),n&2){let i=S();b(),w("ngIf",!i.inEditMode),b(),w("ngIf",i.inEditMode)}}function yU(n,t){if(n&1&&(nt(0),E(1,"div",6),at()),n&2){let i=S();b(),w("cell",i.cell)("entity",i.entity)}}var wU=["gui-structure-row",""];function xU(n,t){if(n&1){let i=oe();f(0,"div",3)(1,"gui-checkbox",4),A("changed",function(){V(i);let r=S();return j(r.selectCheckbox())}),v()()}if(n&2){let i=S();b(),w("checked",i.selectedItem)}}function CU(n,t){if(n&1){let i=oe();f(0,"div",5)(1,"gui-radio-button",4),A("changed",function(){V(i);let r=S();return j(r.selectRadio())}),v()()}if(n&2){let i=S();b(),w("checked",i.selectedItem)}}function IU(n,t){if(n&1&&E(0,"div",6),n&2){let i=t.$implicit,e=t.index,r=S();ft("width",i.width,"px"),w("cellEditorManager",r.cellEditing)("cell",i)("columnIndex",e)("editMode",r.editMode)("entity",r.entity)("rowIndex",r.index)("searchPhrase",r.searchPhrase)}}var kU=["gui-structure-content",""],DU=(n,t)=>({even:n,odd:t}),SU=n=>({transform:n});function EU(n,t){if(n&1){let i=oe();f(0,"div",3),A("click",function(){let r=V(i).$implicit,o=S().$implicit,a=S();return j(a.toggleSelectedRow(r,o.selectionEnabled,o.checkboxSelection,o.radioSelection))}),v()}if(n&2){let i=t.$implicit,e=t.index,r=S().$implicit,o=S();ft("height",r.rowHeight,"px"),w("cellEditing",r.cellEditing)("checkboxSelection",r.checkboxSelection)("columns",o.columns)("editMode",r.editMode)("entity",i)("id",i.getUiId())("index",i.getPosition())("ngClass",Wh(15,DU,i.isEven(),i.isOdd()))("ngStyle",Ti(18,SU,o.translateY(e,r.rowHeight)))("radioSelection",r.radioSelection)("rowClass",r.schemaRowClass)("rowStyle",r.schemaRowStyle)("searchPhrase",r.searchPhrase)}}function TU(n,t){if(n&1&&(f(0,"div",1),H(1,EU,1,20,"div",2),v()),n&2){let i=S();b(),w("ngForOf",i.source)("ngForTrackBy",i.trackByFn)}}var MU=["sourceCollection"],AU=["gui-structure-container",""],RU=["gui-structure-title-panel",""],FU=["gui-structure-footer-panel",""],OU=["gui-structure-blueprint",""];function PU(n,t){n&1&&E(0,"div",8)}function NU(n,t){n&1&&E(0,"div",9)}function VU(n,t){n&1&&E(0,"div",11),n&2&&w("position",0)}function jU(n,t){if(n&1&&(nt(0),H(1,VU,1,1,"div",10),at()),n&2){let i=t.$implicit,e=S();b(),w("ngIf",e.isPagingTopEnabled(i))}}function LU(n,t){if(n&1&&E(0,"div",13),n&2){let i=S(2);w("ngClass",i.headerTopClasses)}}function BU(n,t){if(n&1&&(nt(0),H(1,LU,1,1,"div",12),at()),n&2){let i=t.$implicit,e=S();b(),w("ngIf",e.isColumnHeaderTopEnabled(i))}}function zU(n,t){if(n&1&&E(0,"div",13),n&2){let i=S(2);w("ngClass",i.headerBottomClasses)}}function HU(n,t){if(n&1&&(nt(0),H(1,zU,1,1,"div",12),at()),n&2){let i=t.$implicit,e=S();b(),w("ngIf",e.isColumnHeaderBottomEnabled(i))}}function UU(n,t){n&1&&E(0,"div",15)}function WU(n,t){if(n&1&&(nt(0),H(1,UU,1,0,"div",14),at()),n&2){let i=t.$implicit;b(),w("ngIf",i)}}function GU(n,t){n&1&&E(0,"div",11),n&2&&w("position",1)}function $U(n,t){if(n&1&&(nt(0),H(1,GU,1,1,"div",10),at()),n&2){let i=t.$implicit,e=S();b(),w("ngIf",e.isPagingBottomEnabled(i))}}function YU(n,t){n&1&&E(0,"div",16)}var qU=(n,t)=>({"gui-loader-visible":n,"gui-loader-hidden":t});function QU(n,t){n&1&&E(0,"gui-spinner",3),n&2&&w("diameter",120)("primary",!0)}var KU=["structure"];var XU={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 El=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}(El||{}),eo=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}(eo||{});var Ki=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}(Ki||{}),vc=function(n){return n[n.NONE=0]="NONE",n[n.EVEN=1]="EVEN",n[n.ODD=2]="ODD",n}(vc||{});var fp=function(n){return n[n.BASIC=0]="BASIC",n[n.ADVANCED=1]="ADVANCED",n}(fp||{}),Ev=function(n){return n[n.RIGHT=0]="RIGHT",n[n.CENTER=1]="CENTER",n[n.LEFT=2]="LEFT",n}(Ev||{}),io=function(n){return n[n.ROW=0]="ROW",n[n.CHECKBOX=1]="CHECKBOX",n[n.RADIO=2]="RADIO",n}(io||{}),Ro=function(n){return n[n.SINGLE=0]="SINGLE",n[n.MULTIPLE=1]="MULTIPLE",n}(Ro||{});var Me=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}(Me||{}),W1=class{convertType(t){return typeof t=="string"?this.convertTypeString(t):this.convertTypeEnum(t)}convertTypeEnum(t){switch(t){case El.STRING:return Me.STRING;case El.NUMBER:return Me.NUMBER;case El.BOOLEAN:return Me.BOOLEAN;case El.DATE:return Me.DATE;case El.UNKNOWN:return Me.UNKNOWN;case El.CUSTOM:return Me.CUSTOM;default:return Me.STRING}}convertTypeString(t){switch(t.toLocaleLowerCase()){case"string":return Me.STRING;case"number":return Me.NUMBER;case"boolean":return Me.BOOLEAN;case"date":return Me.DATE;case"unknown":return Me.UNKNOWN;case"custom":return Me.CUSTOM;default:return Me.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||{}),G1=class{convert(t){let i={};return t.enabled!==void 0&&t.enabled!==null&&(i.enabled=t.enabled),t.summariesTypes!==void 0&&t.summariesTypes!==null&&(i.summariesTypes=this.convertSummariesTypes(t.summariesTypes)),i}convertSummariesTypes(t){let i=[];return t.forEach(e=>{let r=this.convertSummariesType(e);r!=null&&i.push(r)}),i}convertSummariesType(t){switch(t.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}}},pe=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}(pe||{}),$1=class{convert(t){return typeof t=="string"?this.convertString(t):typeof t=="function"?t:this.convertEnum(t)}convertString(t){switch(t.toLocaleLowerCase()){case"text":return pe.TEXT;case"chip":return pe.CHIP;case"link":return pe.LINK;case"image":return pe.IMAGE;case"bold":return pe.BOLD;case"italic":return pe.ITALIC;case"checkbox":return pe.CHECKBOX;case"custom":return pe.CUSTOM;case"bar":return pe.BAR;case"percentage_bar":return pe.PERCENTAGE_BAR;case"percentage":return pe.PERCENTAGE;default:return pe.TEXT}}convertEnum(t){switch(t){case eo.TEXT:return pe.TEXT;case eo.CHIP:return pe.CHIP;case eo.LINK:return pe.LINK;case eo.IMAGE:return pe.IMAGE;case eo.BOLD:return pe.BOLD;case eo.ITALIC:return pe.ITALIC;case eo.CHECKBOX:return pe.CHECKBOX;case eo.CUSTOM:return pe.CUSTOM;case eo.BAR:return pe.BAR;case eo.PERCENTAGE_BAR:return pe.PERCENTAGE_BAR;case eo.PERCENTAGE:return pe.PERCENTAGE;default:return pe.TEXT}}},Y1=class{convert(t){return typeof t=="boolean"?{enabled:t}:t}},q1=class{convert(t){return typeof t=="boolean"?{enabled:t}:t}},oi=function(n){return n[n.RIGHT=0]="RIGHT",n[n.CENTER=1]="CENTER",n[n.LEFT=2]="LEFT",n}(oi||{}),Q1=class{convert(t){return typeof t=="string"?this.convertTypeString(t):this.convertTypeEnum(t)}convertTypeEnum(t){switch(t){case Ev.RIGHT:return oi.RIGHT;case Ev.CENTER:return oi.CENTER;case Ev.LEFT:return oi.LEFT;default:return oi.LEFT}}convertTypeString(t){switch(t.toLocaleLowerCase()){case"right":return oi.RIGHT;case"center":return oi.CENTER;case"left":return oi.LEFT;default:return oi.LEFT}}},K1=class{columnTypeConverter=new W1;columnSummariesConverter=new G1;columnViewConverter=new $1;columnSortingConverter=new Y1;columnCellEditingConverter=new q1;columnAlignConverter=new Q1;convert(t){return t.map(i=>{if(i.columns!==void 0){let e=i.columns.map(r=>this.convertColumn(r));return{header:i.header,columns:e}}else return this.convertColumn(i)})}convertColumn(t){let i={};return t.name!==void 0&&t.name!==null?i.name=t.name:t.field!==void 0&&t.field!==null&&typeof t.field=="string"&&(i.name=t.field),t.type!==void 0&&t.type!==null&&(i.type=this.columnTypeConverter.convertType(t.type)),t.header!==void 0&&t.header!==null&&(i.header=t.header),t.enabled!==void 0&&t.enabled!==null&&(i.enabled=t.enabled),t.field!==void 0&&t.field!==null&&(i.field=t.field),t.width!==void 0&&t.width!==null&&(i.width=t.width),t.align!==void 0&&t.align!==null&&(i.align=this.columnAlignConverter.convert(t.align)),t.view!==void 0&&t.view!==null&&(i.view=this.columnViewConverter.convert(t.view)),t.summaries!==void 0&&t.summaries!==null&&(i.summaries=this.columnSummariesConverter.convert(t.summaries)),t.sorting!==void 0&&t.sorting!==null&&(i.sorting=this.columnSortingConverter.convert(t.sorting)),t.cellEditing!==void 0&&t.cellEditing!==null&&(i.cellEditing=this.columnCellEditingConverter.convert(t.cellEditing)),t.formatter!==void 0&&t.formatter!==null&&(i.formatter=t.formatter),t.matcher!==void 0&&t.matcher!==null&&(i.matcher=t.matcher),t.cssClasses!==void 0&&t.cssClasses!==null&&(i.cssClasses=t.cssClasses),t.styles!==void 0&&t.styles!==null&&(i.styles=t.styles),t.templateRef!==void 0&&t.templateRef!==null&&(i.templateRef=t.templateRef,i.view=pe.NG_TEMPLATE),i}},Te=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}(Te||{}),X1=class{convert(t){return typeof t=="string"?this.convertString(t):this.convertEnum(t)}convertToGuiTheme(t){switch(t){case Te.MATERIAL:return Ki.MATERIAL;case Te.FABRIC:return Ki.FABRIC;case Te.LIGHT:return Ki.LIGHT;case Te.DARK:return Ki.DARK;case Te.GENERIC:return Ki.GENERIC;default:return Ki.GENERIC}}convertString(t){switch(t.toLocaleLowerCase()){case"material":return Te.MATERIAL;case"fabric":return Te.FABRIC;case"light":return Te.LIGHT;case"dark":return Te.DARK;case"generic":return Te.GENERIC;default:return Te.FABRIC}}convertEnum(t){switch(t){case Ki.MATERIAL:return Te.MATERIAL;case Ki.FABRIC:return Te.FABRIC;case Ki.LIGHT:return Te.LIGHT;case Ki.DARK:return Te.DARK;case Ki.GENERIC:return Te.GENERIC;default:return Te.FABRIC}}},Oi=function(n){return n[n.NONE=0]="NONE",n[n.EVEN=1]="EVEN",n[n.ODD=2]="ODD",n}(Oi||{}),Z1=class{convert(t){return typeof t=="string"?this.convertString(t):this.convertEnum(t)}convertToGuiRowColoring(t){switch(t){case Oi.NONE:return vc.NONE;case Oi.EVEN:return vc.EVEN;case Oi.ODD:return vc.ODD;default:return vc.EVEN}}convertString(t){switch(t.toLocaleLowerCase()){case"none":return Oi.NONE;case"even":return Oi.EVEN;case"odd":return Oi.ODD;default:return Oi.EVEN}}convertEnum(t){switch(t){case vc.NONE:return Oi.NONE;case vc.EVEN:return Oi.EVEN;case vc.ODD:return Oi.ODD;default:return Oi.EVEN}}},ZU=(()=>{class n{convert(i){return i}static \u0275fac=function(e){return new(e||n)};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),os=function(n){return n[n.BASIC=0]="BASIC",n[n.ADVANCED=1]="ADVANCED",n}(os||{}),J1=class{convert(t){let i={};return t.enabled!==void 0&&t.enabled!==null&&(i.enabled=t.enabled),t.page!==void 0&&t.page!==null&&(i.page=t.page),t.pageSize!==void 0&&t.pageSize!==null&&(i.pageSize=t.pageSize),t.pageSizes!==void 0&&t.pageSizes!==null&&(i.pageSizes=t.pageSizes),t.pagerTop!==void 0&&t.pagerTop!==null&&(i.pagerTop=t.pagerTop),t.pagerBottom!==void 0&&t.pagerBottom!==null&&(i.pagerBottom=t.pagerBottom),t.display!==void 0&&t.display!==null&&(i.displayMode=this.convertDisplay(t.display)),i}convertDisplay(t){return typeof t=="string"?this.convertString(t):this.convertEnum(t)}convertString(t){switch(t.toLocaleLowerCase()){case"basic":return os.BASIC;case"advanced":return os.ADVANCED;default:return os.BASIC}}convertEnum(t){switch(t){case fp.BASIC:return os.BASIC;case fp.ADVANCED:return os.ADVANCED;default:return os.BASIC}}},bp=class{build(){return this.buildObject()}},cn=function(n){return n.ROW="ROW",n.CHECKBOX="CHECKBOX",n.RADIO="RADIO",n}(cn||{}),to=function(n){return n.SINGLE="SINGLE",n.MULTIPLE="MULTIPLE",n}(to||{}),JU=(()=>{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 bp{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(e){return this.enabled=e,this}withSelectedRowIndexes(e){return this.selectedRowIndexes=e,this}withSelectedRowIds(e){return this.selectedRowIds=e,this}withType(e){return this.type=e,this}withMode(e){return this.mode=e,this}withMatcher(e){return this.matcher=e,this}witCustomSelection(e){return this.config=e,this}}}return n})(),ek=class{enabled;selections},tk=class{convert(t){let i=new JU.Builder;if(typeof t=="boolean")return i.withEnabled(t).build();if(t.enabled!==void 0&&i.withEnabled(t.enabled),t.selectedRowIndexes!==void 0&&i.withSelectedRowIndexes(t.selectedRowIndexes),t.selectedRowIds!==void 0&&i.withSelectedRowIds(t.selectedRowIds),t.mode!==void 0){let e=this.convertMode(t.mode);i.withMode(e)}if(t.type!==void 0){let e=this.convertType(t.type);i.withType(e)}if(t.matcher!==void 0){let e=this.convertMatcher(t.matcher);i.withMatcher(e)}if(t.custom!==void 0){let e=this.convertCustomSelection(t.custom);i.witCustomSelection(e)}return i.build()}convertMode(t){if(typeof t=="string")switch(t.toLowerCase()){case"single":return to.SINGLE;case"multiple":return to.MULTIPLE;default:return to.SINGLE}else switch(t){case Ro.SINGLE:return to.SINGLE;case Ro.MULTIPLE:return to.MULTIPLE;default:return to.SINGLE}}convertType(t){if(typeof t=="string")switch(t.toLowerCase()){case"row":return cn.ROW;case"checkbox":return cn.CHECKBOX;case"radio":return cn.RADIO;default:return cn.ROW}else switch(t){case io.ROW:return cn.ROW;case io.CHECKBOX:return cn.CHECKBOX;case io.RADIO:return cn.RADIO;default:return cn.ROW}}convertMatcher(t){return typeof t=="string"?i=>i[t]:t}convertCustomSelection(t){let i=new ek;return t?.enabled&&(i.enabled=t.enabled),t?.selections&&Array.isArray(t?.selections)&&(i.selections=t.selections.map(e=>e)),i}},qE=(()=>{class n{templateRef;name;field;type;view;header;width;enabled;align;summaries;sorting;cellEditing;formatter;matcher;cssClasses;styles;static \u0275fac=function(e){return new(e||n)};static \u0275cmp=R({type:n,selectors:[["gui-grid-column"]],contentQueries:function(e,r,o){if(e&1&&Ht(o,tt,7),e&2){let a;G(a=$())&&(r.templateRef=a.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(e,r){},encapsulation:2})}return n})(),ik=class{convert(t){return typeof t=="boolean"?{enabled:t}:t}};function Ot(n,t){e8(n)&&t(n.currentValue)}function e8(n){return n!==void 0&&n.currentValue!==void 0}var t8=(()=>{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 Y;pageSizeChanged=new Y;itemsSelected=new Y;selectedRows=new Y;columnsChanged=new Y;containerWidthChanged=new Y;sourceEdited=new Y;cellEditEntered=new Y;cellEditCanceled=new Y;cellEditSubmitted=new Y;searchPhraseChanged=new Y;themeChanged=new Y;horizontalGridChanged=new Y;verticalGridChanged=new Y;rowColoringChanged=new Y;columnsConfig;themeConfig;rowColoringConfig;columnMenuConfig;rowSelectionConfig;cellEditingConfig;gridColumnConverter=new K1;gridThemeConverter=new X1;gridRowColoringConverter=new Z1;gridColumnMenuConverter=new ZU;gridPagingConverter=new J1;gridRowSelectionConverter=new tk;guiGridCellEditConverter=new ik;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 e=i.map(r=>({index:r.getIndex(),source:r.getItem(),itemId:r.getItemId()}));this.selectedRows.emit(e)}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(e){return new(e||n)};static \u0275dir=J({type:n,contentQueries:function(e,r,o){if(e&1&&Ht(o,qE,4),e&2){let a;G(a=$())&&(r.guiGridColumnComponent=a)}},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:[he]})}return n})(),PF=new re("StructureParentComponent"),Lu=class{index;itemId;item;constructor(t,i,e){this.item=t,this.index=i,this.itemId=e}getItem(){return this.item}getIndex(){return this.index}getItemId(){return this.itemId}},nk=class{structureId;compositionId;schemaId;formationCommandInvoker;formationWarehouse;compositionCommandInvoker;compositionWarehouse;filterIntegration;sourceCommandInvoker;searchCommandInvoker;gridThemeCommandInvoker;structureCommandInvoker;summariesCommandInvoker;sortingCommandInvoker;pagingCommandInvoker;constructor(t,i,e,r,o,a,c,m,x,I,O,B,ae,ee,Se){this.structureId=t,this.compositionId=i,this.schemaId=e,this.formationCommandInvoker=r,this.formationWarehouse=o,this.compositionCommandInvoker=a,this.compositionWarehouse=c,this.filterIntegration=m,this.sourceCommandInvoker=x,this.searchCommandInvoker=I,this.gridThemeCommandInvoker=O,this.structureCommandInvoker=B,this.summariesCommandInvoker=ae,this.sortingCommandInvoker=ee,this.pagingCommandInvoker=Se}provide(){let t=this.structureId,i=this.compositionId,e=this.schemaId,r=this.formationCommandInvoker,o=this.formationWarehouse,a=this.compositionCommandInvoker,c=this.compositionWarehouse,m=this.filterIntegration,x=this.sourceCommandInvoker,I=this.searchCommandInvoker,O=this.gridThemeCommandInvoker,B=this.structureCommandInvoker,ae=this.summariesCommandInvoker,ee=this.sortingCommandInvoker,Se=this.pagingCommandInvoker;return{setSource(te){x.setOrigin(te,t)},showLoading(){x.setLoading(!0,t)},hideLoading(){x.setLoading(!1,t)},deleteRow(te){x.deleteRow(new Lu(te.source,te.index,te.itemId),t)},deleteRows(te){let ge=te.map($e=>new Lu($e.source,$e.index,$e.itemId));x.deleteRows(ge,t)},deleteSelectedRows(){},getSelectedRows(){return o.findSelectedRows(t).getValueOrNullOrThrowError().map(ge=>({source:ge.getItem(),index:ge.getIndex(),itemId:ge.getItemId()}))},selectAll(){r.selectAll(t)},unselectAll(){r.unselectAll(t)},getColumns(){let te=[];return c.onTemplateColumns(i).subscribe(ge=>{te=ge}),te},getFilters(){let te=m.findFilters(i,t),ge={};return Object.keys(te).forEach($e=>{ge[$e]=te[$e].map(ei=>({columnName:ei.columnName,filterId:ei.filterId,filterType:ei.type,value:ei.value}))}),ge},getFiltersForColumn(te){return[]},getFilterTypes(){return[]},getFilterTypesForColumn(te){return m.findFilterTypes(te,i,t)},removeAll(){},removeFilter(te){},removeFiltersFromColumn(te){},filter(te,ge,$e){m.filter(te,ge,$e,i,t)},enablePaging(){Se.enable(t)},disablePaging(){Se.disable(t)},nextPage(){Se.nextPage(t)},prevPage(){Se.prevPage(t)},changePageSize(te){Se.changePageSize(te,t)},setPagingConfig(te){Se.setPaging(te,t)},setSearchingConfig(te){I.setSearchingConfig(te,t)},search(te){I.search(te,t)},clearSearchPhrase(){I.search("",t)},scrollToTop(){B.scrollToTop(t)},scrollToBottom(){B.scrollToBottom(t)},scrollToRowByIndex(te){B.scrollToIndex(te,t)},setTheme(te){O.setTheme(te,e,t)},setVerticalGrid(te){O.setVerticalGrid(te,e)},setHorizontalGrid(te){O.setHorizontalGrid(te,e)},setRowColoring(te){O.setRowColoring(te,e)},enableVirtualScroll(){B.enableVirtualScroll(t)},disableVirtualScroll(){B.disableVirtualScroll(t)},enableSummaries(){ae.setSummariesEnabled(!0,t)},disableSummaries(){ae.setSummariesEnabled(!1,t)},setSortConfig(te){ee.setSortingConfig(te,t)}}}},rk=class{schemaCommandInvoker;gridThemeConverter;gridRowColoringConverter;constructor(t,i,e){this.schemaCommandInvoker=t,this.gridThemeConverter=i,this.gridRowColoringConverter=e}setTheme(t,i,e){let r=this.gridThemeConverter.convert(t);this.schemaCommandInvoker.setTheme(r,i,e)}setRowColoring(t,i){let e=this.gridRowColoringConverter.convert(t);this.schemaCommandInvoker.setRowColoring(e,i)}setVerticalGrid(t,i){this.schemaCommandInvoker.setVerticalGrid(t,i)}setHorizontalGrid(t,i){this.schemaCommandInvoker.setHorizontalGrid(t,i)}},vp=class{hostElement;constructor(t){this.hostElement=t}getElement(t){return this.createModifier(t)}getHost(){if(!this.hostElement)throw new Error("Missing host element in DomRenderer constructor.");return this.createModifier(this.hostElement)}},vg=(()=>{class n extends vp{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,e){for(let r=0;r<e.length;r++)i.classList.add(e[r])}removeClassFromDomElement(i,e){for(let r=0;r<e.length;r++)i.classList.remove(e[r])}}}return n})(),i8=(()=>{class n extends vp{htmlElement;static AttributeModifier=class{htmlElement;constructor(i){this.htmlElement=i}setAttribute(i,e){this.htmlElement.setAttribute(i,e)}removeAttribute(i){this.htmlElement.removeAttribute(i)}};constructor(i){super(i),this.htmlElement=i}createModifier(i){return new n.AttributeModifier(i)}}return n})(),Av=class extends bp{enabled;constructor(t){super(),this.enabled=t}withEnabled(t){return this.enabled=t,this}buildObject(){return new ok(this.enabled)}},n8=(()=>{class n extends Av{static defaultEnabled=!0;constructor(){super(n.defaultEnabled)}}return n})(),ok=(()=>{class n{static Builder=Av;static DefaultBuilder=n8;enabled;constructor(i){this.enabled=i}isEnabled(){return this.enabled}}return n})(),Rv=class extends bp{headerEnabled;bottomPaging;topPaging;border=!0;constructor(t,i,e){super(),this.headerEnabled=t,this.bottomPaging=i,this.topPaging=e}withHeader(t){return this.headerEnabled=t,this}withBottomPaging(t){return this.bottomPaging=t,this}withTopPaging(t){return this.topPaging=t,this}withBorder(t){return this.border=t,this}buildObject(){return new nd(this.headerEnabled,this.bottomPaging,this.topPaging,this.border)}},ak=class n extends Rv{static defaultHeaderEnabled=!0;static defaultBottomPaging=new ok.DefaultBuilder().build();static defaultTopPaging=new ok.DefaultBuilder().build();constructor(){super(n.defaultHeaderEnabled,n.defaultBottomPaging,n.defaultTopPaging)}},nd=(()=>{class n{static Builder=Rv;static DefaultBuilder=ak;headerEnabled;bottomPaging;topPaging;border;constructor(i,e,r,o){this.headerEnabled=i,this.bottomPaging=e,this.topPaging=r,this.border=o}isHeaderEnabled(){return this.headerEnabled}isBorderEnabled(){return this.border}getBottomPaging(){return this.bottomPaging}getTopPaging(){return this.topPaging}}return n})(),r8=new nd.DefaultBuilder().build(),NF=(()=>{class n{gridMap=new Map;register(i,e,r){this.gridMap.set(i,{component:e,structureId:r})}unregister(i){this.gridMap.delete(i)}getValues(i){return this.gridMap.get(i)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),Rl=class{generateId(){return tF.generate()}},ln=class{constructor(){}},er=class{constructor(){}},no=class{constructor(){}},tr=class{constructor(){}},ua=class{constructor(){}},Fl=class extends Xa{id;constructor(t){super(t),this.id=t}getId(){return this.id}equals(t){return t.toString()===this.id}toString(){return this.id}},Fo=class{constructor(){}},fy=(()=>{class n{compositionWarehouse;filterCommandInvoker;filterWarehouse;constructor(i,e,r){this.compositionWarehouse=i,this.filterCommandInvoker=e,this.filterWarehouse=r}static services=[tr,Fo,ua];findFilterTypes(i,e,r){let o=[];return this.compositionWarehouse.onTemplateColumns(e).pipe(me(a=>a.find(c=>c.getName()===i)),ut(a=>a!==void 0),xl(1),yr(a=>this.filterWarehouse.onFilterTypesForFieldId(new Fl(a.columnFieldId.getId()),r))).subscribe(a=>{o=a.map(c=>c.getName())}),o}findFilters(i,e){let r=this.filterWarehouse.findFilters(e).getValueOrNullOrThrowError(),o=this.compositionWarehouse.findColumnNames(i),a={};for(let c=0;c<o.length;c+=1)a[o[c]]=r.filter(m=>m.getFieldName()===o[c]).map(m=>({columnName:m.getFieldName(),filterId:m.getFilterId().toString(),type:m.getFilterTypeName(),value:m.getValue()}));return a}filter(i,e,r,o,a){this.compositionWarehouse.onTemplateColumns(o).pipe(me(c=>c.find(m=>m.getName()===i)),ut(c=>c!==void 0),xl(1),yr(c=>this.filterWarehouse.onceFilterTypeId(new Fl(c.columnFieldId.getId()),e,a).pipe(me(m=>({fieldId:new Fl(c.columnFieldId.getId()),filterTypeId:m}))))).subscribe(c=>{let{fieldId:m,filterTypeId:x}=c;x.ifPresent(I=>{this.filterCommandInvoker.add(m,I,r,a)})})}}return n})(),xr=class{constructor(){}},Cr=class{constructor(){}},ir=class{constructor(){}},nr=class{constructor(){}},xc=class{constructor(){}},Ir=class{constructor(){}},rr=class{constructor(){}},sk=class extends vl{constructor(t){super(t)}toAggregateId(){return new Be(this.toString())}},Be=class extends bl{constructor(t){super(t)}toReadModelRootId(){return new sk(this.getId())}},ck=class extends vl{constructor(t){super(t)}toAggregateId(){return new xi(this.toString())}},xi=class extends bl{constructor(t){super(t)}toReadModelRootId(){return new ck(this.getId())}},ui=function(n){return n[n.NONE=0]="NONE",n[n.EVEN=1]="EVEN",n[n.ODD=2]="ODD",n}(ui||{}),kr=class{},kF=(()=>{class n extends sn{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 vg}init(i,e){this.cssHostRef=i,this.schemaReadModelRepository.onCssClasses(e).pipe(this.hermesTakeUntil()).subscribe(r=>{let o=this.updateState(r);this.renderCssClasses(o)})}updateState(i){if(this.cssClass){let e={};return Object.keys(this.cssClass).forEach(r=>{i[r]!==this.cssClass[r]&&(e[r]=i[r])}),this.cssClass=i,e}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,e){i?this.addClass(e):this.removeClass(e)}removeThemeCssClasses(){Object.keys(Te).map(i=>Te[i]).map(i=>this.resolveThemeClassName(i)).filter(i=>!!i).forEach(i=>{this.removeClass(i)})}resolveThemeClassName(i){switch(i){case Te.FABRIC:case Te[Te.FABRIC]:return n.THEME_FABRIC_CLASS_NAME;case Te.MATERIAL:case Te[Te.MATERIAL]:return n.THEME_MATERIAL_CLASS_NAME;case Te.LIGHT:case Te[Te.LIGHT]:return n.THEME_LIGHT_CLASS_NAME;case Te.DARK:case Te[Te.DARK]:return n.THEME_DARK_CLASS_NAME;case Te.GENERIC:case Te[Te.GENERIC]:return n.THEME_GENERIC_CLASS_NAME;default:return n.THEME_FABRIC_CLASS_NAME}}resolveRowColoringClassName(i){switch(i){case ui.ODD:case ui[ui.ODD]:return n.ROW_COLORING_ODD;case ui.EVEN:case ui[ui.EVEN]:return n.ROW_COLORING_EVEN;default:return null}}removeRowColoringClasses(){Object.keys(ui).map(i=>ui[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(e){return new(e||n)(k(kr))};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),Fv=(()=>{class n extends _r{constructor(){super()}static \u0275fac=function(e){return new(e||n)};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),Ov=(()=>{class n extends _r{constructor(){super()}static \u0275fac=function(e){return new(e||n)};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),Pv=class{enabled=!1;infoDialog=!0;columnsManager=!0;schemaManager=!0;sourceSize=!0;constructor(t,i,e,r,o){this.isNotUndefinedOrNull(t)&&(this.enabled=t),this.isNotUndefinedOrNull(i)&&(this.infoDialog=i),this.isNotUndefinedOrNull(e)&&(this.columnsManager=e),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(t){return t!=null}},Cc=class extends _r{constructor(){super(new Pv)}},o8=new re("StructureComponentToken"),rd=(()=>{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,e){this.hasChanged(i)&&e()}initClassModifier(){this.innerClassModifier=new vg(this.innerElementRef.nativeElement)}addHostClass(){this.innerClassModifier.getHost().add(this.getSelectorName())}static \u0275fac=function(e){return new(e||n)(l(P))};static \u0275dir=J({type:n})}return n})(),hi=(()=>{class n extends rd{detector;viewInDom=!1;unsubscribe$=new fi;constructor(i,e){super(e),this.detector=i}ngAfterViewInit(){this.viewInDom=!0}ngOnDestroy(){this.unsubscribe()}reRender(){this.isViewInDom()&&this.detector.detectChanges()}isViewInDom(){return this.viewInDom}subscribe(i,e){i.pipe(this.takeUntil()).subscribe(r=>{e(r),this.reRender()})}subscribeWithoutRender(i,e){i.pipe(this.takeUntil()).subscribe(r=>{e(r)})}subscribeAndEmit(i,e,r=o=>o){i.pipe(this.takeUntil()).subscribe(o=>{e.emit(r(o))})}unsubscribe(){this.unsubscribe$.next(),this.unsubscribe$.complete()}takeUntil(){return Zn(this.unsubscribe$)}static \u0275fac=function(e){return new(e||n)(l(ce),l(P))};static \u0275dir=J({type:n,features:[L]})}return n})(),Ol=function(n){return n[n.ENTER=0]="ENTER",n[n.SUBMIT=1]="SUBMIT",n[n.CANCEL=2]="CANCEL",n}(Ol||{}),ze=class extends dc{},_p=class extends ze{fieldConfigs;constructor(t,i){super(t,"InitFieldsCommand"),this.fieldConfigs=i}getFieldConfigs(){return this.fieldConfigs}},Ze=class extends Ka{},Bu=class extends Ze{fieldConfigs;fields;constructor(t,i,e){super(t,{fieldConfigs:i,fields:e},"FieldsInitedEvent"),this.fieldConfigs=i,this.fields=e}getFields(){return this.fields}},yp=class{id;constructor(t){this.id=t}getId(){return this.id}},lk=class{column;field;constructor(t,i){this.column=t,this.field=i}getColumn(){return this.column}getField(){return this.field}},dk=class{structureId;compositionId;columnFieldFactory;columnAutoConfigurator;compositionCommandInvoker;commandDispatcher=Q.resolve(Yi);domainEventBus=Q.resolve(Kr);columns;constructor(t,i,e,r,o){this.structureId=t,this.compositionId=i,this.columnFieldFactory=e,this.columnAutoConfigurator=r,this.compositionCommandInvoker=o}handle(t){let i=[];if(t.columns!==void 0&&t.columns.currentValue!==void 0)i=t.columns.currentValue,this.columns=i;else if(this.columns===void 0&&t.source!==void 0&&t.source!==null)i=this.columnAutoConfigurator.configure(t.source.currentValue),this.columns=i;else return;this.compositionCommandInvoker.setGroups(i,this.compositionId);let{columns:e,groups:r}=this.getConfigs(i),o=this.getFieldConfigs(e),a=new _p(this.structureId,o);this.domainEventBus.ofEvents([Bu]).pipe(ut(c=>c.getAggregateId().toString()===this.structureId.toString()),xl(1)).subscribe(c=>{let m=c.getFields(),x=this.convertColumnFieldIds(m),I=this.convertColumns(e,m,x);this.compositionCommandInvoker.setColumns(I,this.compositionId)}),this.commandDispatcher.dispatch(a)}getConfigs(t){let i=[],e=[];for(let r=0;r<t.length;r+=1){let o=t[r];o.columns!==void 0?(e.push(o),i=i.concat(o.columns)):i.push(o)}return{columns:i,groups:e}}getFieldConfigs(t){return t.map(i=>({field:i.field,type:i.type,matcher:i.matcher,summaries:i.summaries,sorting:i.sorting}))}convertColumnFieldIds(t){return t?t.map(i=>new yp(i.getId().getId())):[]}convertColumns(t,i,e){return t?t.map((r,o)=>{let a=e[o],c=i[o],m=this.columnFieldFactory.create(a,c.getAccessorMethod(),c.getDataType(),c.getSearchAccessorMethod());return new lk(r,m)}):[]}},Ic=class{},uk=class extends bl{constructor(t){super(t)}toReadModelRootId(){return new Ni(this.getId())}},Ni=class extends vl{constructor(t){super(t)}toAggregateId(){return new uk(this.getId())}},ha=class extends ca{},hk=class{after;before;constructor(t,i){this.after=t,this.before=i}},wp=class extends Ze{beforeItem;afterItem;constructor(t,i,e){super(t,{beforeItem:i,afterItem:e},"StructureSourceItemEditedEvent"),this.beforeItem=i,this.afterItem=e}getBeforeItem(){return this.beforeItem}getAfterItem(){return this.afterItem}},Vl=class{domainEventBus=Q.resolve(Kr);onSourceEdited(t){return this.domainEventBus.ofEvents([wp]).pipe(ut(i=>i.getAggregateId().toString()===t.toString()),me(i=>{let e=i.getAfterItem().getSourceItem(),r=i.getBeforeItem().getSourceItem();return new hk(e,r)}))}},kc=class extends ca{},Dr=class{constructor(){}},xp=class extends Ze{selectedRows;allSelected;allUnselected;constructor(t,i,e,r){super(t,{selectedRows:i,allSelected:e,allUnselected:r},"SelectedRowChangedEvent"),this.selectedRows=i,this.allSelected=e,this.allUnselected=r}getSelectedRows(){return this.selectedRows}isAllSelected(){return this.allSelected}isAllUnselected(){return this.allUnselected}},Tc=(()=>{class n extends ca{sourceWarehouse;domainEventBusTOREMOVE;map=new Map;subject$=new fi;constructor(i,e){super(),this.sourceWarehouse=i,this.domainEventBusTOREMOVE=e,this.domainEventBusTOREMOVE.ofEvents([xp]).pipe(yr(r=>{let o=r.getSelectedRows(),a=r.getAggregateId();return this.sourceWarehouse.onPreparedItems(a).pipe(xl(1),me(c=>{let m=[],x=c.length,I=new Map;for(let O=0;O<x;O+=1)I.set(c[O].getId().toString(),c[O]);for(let O=0;O<o.length;O+=1){let B=I.get(o[O]);m.push(new Lu(B.getSourceItem(),O,B.getId()))}return{id:a,items:m}}))})).subscribe(r=>{this.map.set(r.id.toString(),r.items),this.subject$.next(this.map)})}static services=[Dr,Kr];onItemSelected(i){return this.subject$.toObservable().pipe(ut(e=>e.has(i.toString())),me(e=>e.get(i.toString())))}}return n})(),Nv=class{enabled=!1;rowEdit=()=>!0;cellEdit=()=>!0;constructor(t){t.enabled!==void 0&&(this.enabled=t.enabled),t.rowEdit!==void 0&&(this.rowEdit=t.rowEdit),t.cellEdit!==void 0&&(this.cellEdit=t.cellEdit)}isEnabled(t,i,e){return this.enabled&&this.rowEdit(t,i,e)&&this.cellEdit(t,i,e)}},as=class n extends Mt{static default=new Nv({enabled:!1});constructor(){super(n.default)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=N({token:n,factory:n.\u0275fac})},Cp=class{convert(t){let i,e,r,o;return t.infoDialog!==void 0&&(i=t.infoDialog),t.columnsManager!==void 0&&(e=t.columnsManager),t.schemaManager!==void 0&&(o=t.schemaManager),t.sourceSize!==void 0&&(r=t.sourceSize),new Pv(t.enabled,i,e,o,r)}},Vv=(()=>{class n{structureInfoPanelConfigConverter;structureInfoPanelArchive;constructor(i,e){this.structureInfoPanelConfigConverter=i,this.structureInfoPanelArchive=e}static services=[Cp,Cc];set(i){let e=this.structureInfoPanelConfigConverter.convert(i);this.structureInfoPanelArchive.next(e)}static \u0275fac=function(e){return new(e||n)(k(Cp),k(Cc))};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),mk=class{fieldId;accessor;searchAccessor;dataType;constructor(t,i,e,r){this.fieldId=t,this.accessor=i,this.dataType=e,this.searchAccessor=r}getId(){return this.fieldId}getValue(t){return this.accessor(t)}getAccessor(){return this.accessor}getSearchAccessor(){return this.searchAccessor}getDataType(){return this.dataType}},jl=class{create(t,i,e,r){return new mk(t,i,e,r)}},ma=class extends ca{constructor(){super()}},Ip=(()=>{class n extends _r{constructor(){super(!1)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),pa=class extends ca{constructor(){super()}},Oo=class{},nh=(()=>{class n extends Mt{static default=!1;constructor(){super(n.default)}on(i){return super.on(i).pipe(ut(e=>e))}once(i){return Cl(this.on(i))}}return n})(),a8=(()=>{class n extends hi{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 Y;columnsChanged=new Y;containerWidthChanged=new Y;sourceEdited=new Y;cellEditEntered=new Y;cellEditCanceled=new Y;cellEditSubmitted=new Y;structureColumnInputHandler;changeAfterInit=!1;constructor(i,e,r,o,a,c,m,x,I,O,B,ae,ee,Se,te,ge,$e,ei,Pt,en,Qt,Pn,ti,ps,gs,In,pd,fs){super(i,e),this.changeDetectorRef=i,this.columnAutoConfigurator=r,this.structureId=o,this.compositionId=a,this.schemaId=c,this.structureCommandInvoker=m,this.structurePagingCommandDispatcher=x,this.pagingEventRepository=I,this.sortingCommandInvoker=O,this.searchCommandInvoker=B,this.sourceCommandService=ae,this.sourceEventService=ee,this.schemaCommandInvoker=Se,this.compositionCommandDispatcher=te,this.compositionEventRepository=ge,this.formationEventService=$e,this.structureEditModeArchive=ei,this.structureCellEditArchive=Pt,this.structureInfoPanelConfigService=en,this.structureCellEditStore=Qt,this.columnFieldFactory=Pn,this.formationCommandDispatcher=ti,this.searchEventRepository=ps,this.structureHeaderBottomEnabledArchive=gs,this.schemaEventRepository=In,this.translationService=pd,this.structureInitialValuesReadyArchive=fs,this.structureColumnInputHandler=new dk(o,a,Pn,r,te),this.translationService.setDefaultTranslation()}ngOnChanges(i){Ot(i.editMode,()=>{this.structureEditModeArchive.next(this.editMode)}),Ot(i.cellEditing,()=>{let e;typeof this.cellEditing=="boolean"?e={enabled:this.cellEditing}:e=this.cellEditing,this.structureCommandInvoker.setCellEdit(e,this.structureId)}),Ot(i.width,e=>{this.compositionCommandDispatcher.setWidth(e,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 Ol.ENTER:this.cellEditEntered.emit();break;case Ol.SUBMIT:this.cellEditSubmitted.emit();break;case Ol.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(e){return new(e||n)(l(ce),l(P),l(Ic),l(Be),l(xi),l(Ni),l(nr),l(rr),l(ha),l(Ir),l(Cr),l(xr),l(Vl),l(ir),l(no),l(kc),l(Tc),l(Ov),l(as),l(Vv),l(Fv),l(jl),l(ln),l(ma),l(Ip),l(pa),l(Oo),l(nh))};static \u0275dir=J({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:[L,he]})}return n})(),jv=class n{enabled;sort;filter;columnsManager;mainMenu="Menu";filterMenu="Filter";columnsMenu="Columns";constructor(t=!1,i=!0,e=!1,r=!1){this.enabled=t,this.sort=i,this.filter=e,this.columnsManager=r}static default(){return new n}static fromConfig(t){return new n(t.enabled,t.sort,t.filter,t.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 t=[];return this.isMainEnabled()&&t.push(this.getMainMenu()),this.isFilteringEnabled()&&t.push(this.getFilterMenu()),this.isColumnManagerEnabled()&&t.push(this.getColumnMenu()),t}getActiveMenu(){return this.getMenus()[0]}getMainMenu(){return this.mainMenu}getFilterMenu(){return this.filterMenu}getColumnMenu(){return this.columnsMenu}setMainMenu(t){this.mainMenu=t}setFilterMenu(t){this.filterMenu=t}setColumnsMenu(t){this.columnsMenu=t}},kp=(()=>{class n extends _r{constructor(){super(jv.default())}nextConfig(i){let e=jv.fromConfig(i);this.next(e)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),VF=(()=>{class n{closeAll$=new fi;closeAll(){this.closeAll$.next()}onCloseAll(){return this.closeAll$.toObservable()}static \u0275fac=function(e){return new(e||n)};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),QE=(()=>{class n extends _r{constructor(){super(!0)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),Lv=(()=>{class n extends _r{constructor(){super({enabled:!1,template:i=>"Detail View"})}static \u0275fac=function(e){return new(e||n)};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),jF=new re("structureRowDetailViewItem"),LF=new re("structureRowDetailViewTemplate"),BF=(()=>{class n extends rd{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 e in i)if(i.hasOwnProperty(e))return!1;return!0}static \u0275fac=function(e){return new(e||n)(l(P))};static \u0275dir=J({type:n,features:[L]})}return n})(),s8=(()=>{class n extends BF{item;template;sanitizer;selectedRowValue;safeHTML;constructor(i,e,r,o){super(i),this.item=e,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(e){return new(e||n)(l(P),l(jF),l(LF),l($s))};static \u0275cmp=R({type:n,selectors:[["div","gui-row-detail",""]],features:[L],attrs:pz,decls:1,vars:1,consts:[[3,"innerHTML"]],template:function(e,r){e&1&&E(0,"div",0),e&2&&w("innerHTML",r.safeHTML,Jc)},encapsulation:2,changeDetection:0})}return n})(),DF=(()=>{class n extends sn{injector;structureId;structureDetailViewConfigArchive;formationEventService;drawerService;enabled=!1;config;elementRef;constructor(i,e,r,o,a){super(),this.injector=i,this.structureId=e,this.structureDetailViewConfigArchive=r,this.formationEventService=o,this.drawerService=a}init(i){this.elementRef=i,this.structureDetailViewConfigArchive.on().pipe(this.hermesTakeUntil()).subscribe(e=>{this.config=e,e.enabled===!0?this.turnOn():e.enabled===!1&&this.turnOff()}),this.formationEventService.onItemSelected(this.structureId).pipe(this.hermesTakeUntil()).subscribe(e=>{if(!this.enabled||(this.drawerService.close(),e.length===0))return;let r=e[0],o=Pe.create({parent:this.injector,providers:[{provide:jF,useValue:r},{provide:LF,useValue:this.config.template}]});this.drawerService.open({appendToElement:this.elementRef,component:s8,injector:o})})}turnOn(){this.enabled=!0}turnOff(){this.enabled=!1}static \u0275fac=function(e){return new(e||n)(k(Pe),k(Be),k(Lv),k(Tc),k(Iv))};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),Tv=function(n){return n[n.TOP=0]="TOP",n[n.BOTTOM=1]="BOTTOM",n}(Tv||{}),Ml=function(n){return n.SELECTED="selected",n.PAGING_TOP_CLASS_NAME="gui-paging-top",n.PAGING_BOTTOM_CLASS_NAME="gui-paging-bottom",n}(Ml||{}),Ci=(()=>{class n{state={};state$=new Xn;destroy$=new Xn;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 e=this.state$;return i!==void 0&&(e=this.state$.pipe(me(r=>r[i]))),e.pipe(Xr())}connect(i,e){typeof i=="string"?e.pipe(Zn(this.destroy$)).subscribe(r=>{this.setPartialState(i,r)}):i.pipe(Zn(this.destroy$)).subscribe(r=>{this.setValue(r)})}setPartialState(i,e){let r={};r[i]=e,this.state=Object.assign({},this.state,r),this.state$.next(this.state)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),Bv=class{unsubscribe$=new fi;constructor(){}takeUntil(){return Zn(this.unsubscribe$)}unsubscribe(){this.unsubscribe$.isCompleted||(this.unsubscribe$.next(),this.unsubscribe$.complete())}},Vi=(()=>{class n{streamCloser=new Bv;hermesUnsubscribe$=new fi;constructor(){}ngOnDestroy(){this.streamCloser.unsubscribe(),this.hermesUnsubscribe()}isDefined(i,e){return e[i]!==void 0&&e[i].currentValue!==void 0}subscribeAndEmit(i,e){i.pipe(this.hermesTakeUntil()).subscribe(r=>{e.emit(r)})}unsubscribe(){this.streamCloser.unsubscribe()}hermesUnsubscribe(){this.hermesUnsubscribe$.next(),this.hermesUnsubscribe$.complete()}hermesTakeUntil(){return Zn(this.hermesUnsubscribe$)}takeUntil(){return this.streamCloser.takeUntil()}static \u0275fac=function(e){return new(e||n)};static \u0275dir=J({type:n})}return n})(),zF=(()=>{class n extends rd{changeDetectorRef;constructor(i,e){super(i),this.changeDetectorRef=e}ngOnInit(){this.changeDetectorRef.detach()}static \u0275fac=function(e){return new(e||n)(l(P),l(ce))};static \u0275dir=J({type:n,features:[L]})}return n})(),rh=(()=>{class n extends zF{constructor(i,e){super(i,e),this.addClassToHost("gui-icon")}static \u0275fac=function(e){return new(e||n)(l(P),l(ce))};static \u0275dir=J({type:n,features:[L]})}return n})(),Xi=(()=>{class n extends rd{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(e){return new(e||n)(l(P))};static \u0275dir=J({type:n,features:[L]})}return n})();var Ll=class{classModifier=new vg;select(t){this.classModifier.getElement(t).add(Ml.SELECTED)}unselect(t){this.classModifier.getElement(t).remove(Ml.SELECTED)}add(t,i){this.classModifier.getElement(t).add(i)}remove(t,i){this.classModifier.getElement(t).remove(i)}toggle(t){}},ss=class{constructor(){}},by=(()=>{class n extends _r{constructor(){super(os.BASIC)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),Dc=class{destroy$=new Xn(1);subscription;subscribe(t,i){this.subscription!==void 0&&this.subscription.unsubscribe(),this.subscription=t.pipe(Xr(),Zn(this.destroy$)).subscribe(e=>i(e),e=>this.onError(e),()=>this.onComplete())}destroy(){this.destroy$.next(),this.destroy$.complete()}onError(t){}onComplete(){}},pk=class{cd;vcr;template;constructor(t,i,e){this.cd=t,this.vcr=i,this.template=e}onNext(t){this.vcr.clear(),this.vcr.createEmbeddedView(this.template,{$implicit:t}),this.cd.detectChanges()}},Rn=(()=>{class n{subscriber;cd;vcr;template;guiLet;guiLetViewChanger;constructor(i,e,r,o){this.subscriber=i,this.cd=e,this.vcr=r,this.template=o,this.guiLetViewChanger=new pk(this.cd,this.vcr,this.template)}ngOnChanges(i){i.guiLet!==void 0&&this.subscriber.subscribe(this.guiLet,e=>{this.guiLetViewChanger.onNext(e)})}ngOnDestroy(){this.subscriber.destroy()}static \u0275fac=function(e){return new(e||n)(l(Dc),l(ce),l(ri),l(tt))};static \u0275dir=J({type:n,selectors:[["","guiLet",""]],inputs:{guiLet:"guiLet"},features:[Ae([Dc]),he]})}return n})(),Sr=(()=>{class n{changeDetectorRef;translationService;actualTranslationValue="";subscription;constructor(i,e){this.changeDetectorRef=i,this.translationService=e}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}transform(i){return this.subscription&&this.subscription.unsubscribe(),this.subscription=this.translationService.onTranslation().subscribe(e=>{let r=e[i];r||(this.actualTranslationValue=i),this.actualTranslationValue=r,this.changeDetectorRef.markForCheck()}),this.actualTranslationValue}static \u0275fac=function(e){return new(e||n)(l(ce,16),l(Oo,16))};static \u0275pipe=jh({name:"guiTranslate",type:n,pure:!1})}return n})(),c8=(()=>{class n extends Xi{paging;sourceSize;nextPageChanged=new Y;prevPageChanged=new Y;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(e){return new(e||n)(l(P))};static \u0275cmp=R({type:n,selectors:[["div","gui-paging-navigator","","paging",""]],inputs:{paging:"paging",sourceSize:"sourceSize"},outputs:{nextPageChanged:"nextPageChanged",prevPageChanged:"prevPageChanged"},features:[L,he],attrs:gz,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(e,r){e&1&&(f(0,"gui-button-group")(1,"button",0),A("click",function(){return r.prevPage()}),T(2),Re(3,"guiTranslate"),v(),f(4,"button",1),A("click",function(){return r.nextPage()}),T(5),Re(6,"guiTranslate"),v()()),e&2&&(b(),w("disabled",r.prevDisabled),b(),Oe(" ",Le(3,4,"pagingPrevPage")," "),b(2),w("disabled",r.nextDisabled),b(),Oe(" ",Le(6,6,"pagingNextPage")," "))},dependencies:[ns,mF,Sr],encapsulation:2,changeDetection:0})}return n})(),l8=(()=>{class n extends Xi{paging;pageSizeChanged=new Y;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(e){return new(e||n)(l(P))};static \u0275cmp=R({type:n,selectors:[["div","gui-paging-select","","paging",""]],inputs:{paging:"paging"},outputs:{pageSizeChanged:"pageSizeChanged"},features:[L,he],attrs:fz,decls:4,vars:6,consts:[[1,"gui-inline-block","gui-mr-5"],[3,"optionChanged","options","selected","width"]],template:function(e,r){e&1&&(f(0,"span",0),T(1),Re(2,"guiTranslate"),v(),f(3,"gui-select",1),A("optionChanged",function(a){return r.changePageSize(a)}),v()),e&2&&(b(),Oe(" ",Le(2,4,"pagingItemsPerPage"),`
`),b(2),w("options",r.selectPageSizes)("selected",r.selectPageSize)("width",25))},dependencies:[Dv,Sr],encapsulation:2,changeDetection:0})}return n})(),d8=(()=>{class n extends Xi{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(e){return new(e||n)(l(P))};static \u0275cmp=R({type:n,selectors:[["div","gui-paging-stats","","paging",""]],inputs:{paging:"paging"},features:[L,he],attrs:bz,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(e,r){if(e&1&&H(0,vz,12,6,"ng-container",1)(1,_z,3,3,"ng-template",null,0,wt),e&2){let o=Si(2);w("ngIf",r.isSourceNotEmpty())("ngIfElse",o)}},dependencies:[Rt,Sr],encapsulation:2,changeDetection:0})}return n})(),u8=(()=>{class n extends Xi{structureId;pagingCommandInvoker;paging;sourceSize;nextPageChanged=new Y;prevPageChanged=new Y;prevDisabled=!1;nextDisabled=!1;constructor(i,e,r){super(i),this.structureId=e,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(e){return new(e||n)(l(P),l(Be),l(rr))};static \u0275cmp=R({type:n,selectors:[["div","gui-paging-alternative-navigator","","paging","","sourceSize",""]],inputs:{paging:"paging",sourceSize:"sourceSize"},outputs:{nextPageChanged:"nextPageChanged",prevPageChanged:"prevPageChanged"},features:[L,he],attrs:yz,ngContentSelectors:wz,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(e,r){e&1&&(rt(),f(0,"button",0),A("click",function(){return r.firstPage()}),It(),f(1,"svg",1)(2,"g",2),E(3,"path",3)(4,"path",4),v()()(),dr(),f(5,"button",5),A("click",function(){return r.prevPage()}),It(),f(6,"svg",6),E(7,"path",7),v()(),Ne(8),dr(),f(9,"button",8),A("click",function(){return r.nextPage()}),It(),f(10,"svg",6),E(11,"path",9),v()(),dr(),f(12,"button",0),A("click",function(){return r.lastPage()}),It(),f(13,"svg",1)(14,"g",10),E(15,"path",3)(16,"path",4),v()()()),e&2&&(w("disabled",r.prevDisabled),b(5),w("disabled",r.prevDisabled),b(4),w("disabled",r.nextDisabled),b(3),w("disabled",r.nextDisabled))},dependencies:[ns],encapsulation:2,changeDetection:0})}return n})(),h8=(()=>{class n extends Xi{structureId;pagingCommandService;paging;sourceSize=0;currentPage;pages;numberOfVisiblePages=3;constructor(i,e,r){super(i),this.structureId=e,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 e=1;e<=i;e++)this.pages.push(e)}}isSourceNotEmpty(){return this.sourceSize>0}goToPage(i){let e=this.paging.getPage();this.pagingCommandService.goToPage(i,e,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(e){return new(e||n)(l(P),l(Be),l(rr))};static \u0275cmp=R({type:n,selectors:[["div","gui-paging-alternative-pages","","paging",""]],inputs:{paging:"paging",sourceSize:"sourceSize"},features:[L,he],attrs:xz,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(e,r){if(e&1&&H(0,Iz,2,1,"ng-container",1)(1,kz,3,3,"ng-template",null,0,wt),e&2){let o=Si(2);w("ngIf",r.isSourceNotEmpty())("ngIfElse",o)}},dependencies:[Mi,Rt,Sr],encapsulation:2,changeDetection:0})}return n})(),m8=(()=>{class n extends rd{elRef;cssClassModifier;structureId;pagingWarehouse;pagingCommandInvoker;sourceWarehouse;pagingDisplayModeArchive;position;minimal;state=F(Ci);state$=this.state.select();constructor(i,e,r,o,a,c,m){super(i),this.elRef=i,this.cssClassModifier=e,this.structureId=r,this.pagingWarehouse=o,this.pagingCommandInvoker=a,this.sourceWarehouse=c,this.pagingDisplayModeArchive=m,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===Tv.BOTTOM?(this.cssClassModifier.remove(this.elRef.nativeElement,Ml.PAGING_TOP_CLASS_NAME),this.cssClassModifier.add(this.elRef.nativeElement,Ml.PAGING_BOTTOM_CLASS_NAME)):(this.cssClassModifier.remove(this.elRef.nativeElement,Ml.PAGING_BOTTOM_CLASS_NAME),this.cssClassModifier.add(this.elRef.nativeElement,Ml.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(me(i=>this.mapIsPagingVisible(i)))}mapIsPagingVisible(i){return i&&i.isEnabled()&&(this.position===Tv.TOP&&i.isPagerTop()||this.position===Tv.BOTTOM&&i.isPagerBottom())}selectIsAdvancedPagingEnabled(){return this.pagingDisplayModeArchive.on().pipe(me(i=>i===os.ADVANCED))}static \u0275fac=function(e){return new(e||n)(l(P),l(Ll),l(Be),l(ss),l(rr),l(Dr),l(by))};static \u0275cmp=R({type:n,selectors:[["div","gui-paging","","position",""]],inputs:{position:"position",minimal:"minimal"},features:[Ae([Ci]),L,he],attrs:Dz,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(e,r){e&1&&H(0,Az,3,2,"ng-container",1),e&2&&w("guiLet",r.state$)},dependencies:[Rt,Rn,c8,l8,d8,u8,h8],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})(),Sc=class{},zu=class extends Ze{constructor(t){super(t,null,"PageChangedEvent")}},qt=class extends ml{},gk=class extends qt{constructor(t){super(t,"PageChangedAggregateEvent")}toDomainEvent(){return new zu(this.getAggregateId())}},Hu=class extends Ze{constructor(t){super(t,null,"PagesizeChangedEvent")}},fk=class extends qt{constructor(t){super(t,"PagesizeChangedAggregateEvent")}toDomainEvent(){return new Hu(this.getAggregateId())}},zv=class n{enabled;page;pageSize;pageSizes;pagerTop;pagerBottom;sourceSize;events=[];logger;constructor(t,i,e,r,o,a,c,m){this.enabled=t,this.page=i,this.pageSize=e,this.pageSizes=r,this.pagerTop=o,this.pagerBottom=a,this.sourceSize=c,this.logger=m}static default(t){return new n(!1,1,25,[10,25,50,100],!1,!0,0,t)}static fromConfig(t,i){let e=n.default(i),r=t.enabled||e.isEnabled(),o=t.page||e.getPage(),a=t.pageSize||e.getPageSize(),c=t.pageSizes||e.getPageSizes(),m=t.pagerTop||e.isPagerTop(),x=t.pagerBottom||e.isPagerBottom();return new n(r,o,a,c,m,x,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(t){t.enabled!==void 0&&(this.enabled=t.enabled),t.page!==void 0&&(this.page=t.page,t.enabled===void 0&&(this.enabled=!0)),t.pageSize!==void 0&&(this.pageSize=t.pageSize,t.enabled===void 0&&(this.enabled=!0)),t.pageSizes!==void 0&&(this.pageSizes=t.pageSizes,t.enabled===void 0&&(this.enabled=!0)),t.pagerTop!==void 0&&(this.pagerTop=t.pagerTop,t.enabled===void 0&&(this.enabled=!0)),t.pagerBottom!==void 0&&(this.pagerBottom=t.pagerBottom,t.enabled===void 0&&(this.enabled=!0)),this.enabled===!0&&t.pagerTop===!1&&t.pagerBottom===!1&&(this.pagerBottom=!0,this.logger.warn("Pagers cannot be turn off when paging is enabled."))}setSourceSize(t){this.sourceSize=t}nextPage(){let t=this.page;this.isNextPageDisabled()||(t+=1),this.page=t}prevPage(){let t=this.page;this.isPrevPageDisabled()||(t-=1),this.page=t}changePageSize(t){return this.pageSizes.find(i=>i===t)&&(this.setPage(1),this.setPageSize(t)),this.events}isNextPageDisabled(){return this.sourceSize===0?!0:this.page===Math.ceil(this.sourceSize/this.pageSize)}isPrevPageDisabled(){return this.page===1}calculateStart(){let t=1+(this.page-1)*this.pageSize;return this.sourceSize<t?0:t}calculateEnd(){let t=this.page*this.pageSize;return this.sourceSize<t?this.sourceSize:t}sample(t){if(this.isDisabled())return t;let i=this.calculateStart();return i!==0&&(i-=1),t.slice(i,this.calculateEnd())}clearEvents(){this.events.length=0}setPage(t){this.page=t,this.events.push(new gk(new Be("TODO need to be changed")))}setPageSize(t){this.pageSize=t,this.events.push(new fk(new Be("TODO need to be changed")))}},HF=(()=>{class n{logger;constructor(i){this.logger=i}static services=[Sc];createDefault(){return zv.default(this.logger)}createFromConfig(i){return zv.fromConfig(i,this.logger)}}return n})(),Hv=class extends ze{config;constructor(t,i){super(t,"SetPagingCommand"),this.config=i}getPagingConfig(){return this.config}},Uv=class extends ze{pageSize;constructor(t,i){super(t,"ChangePagesizeCommand"),this.pageSize=i}getPageSize(){return this.pageSize}},Wv=class extends ze{constructor(t){super(t,"NextPageCommand")}},Gv=class extends ze{constructor(t){super(t,"PrevPageCommand")}},UF=(()=>{class n{commandDispatcher;constructor(i){this.commandDispatcher=i}static services=[Yi];setPaging(i,e){this.commandDispatcher.dispatch(new Hv(e,i))}changePageSize(i,e){this.commandDispatcher.dispatch(new Uv(e,i))}nextPage(i){this.commandDispatcher.dispatch(new Wv(i))}prevPage(i){this.commandDispatcher.dispatch(new Gv(i))}}return n})(),Dp=class extends Ze{constructor(t){super(t,null,"PagingSetEvent")}},bk=class{domainEventPublisher=Q.resolve(lt);forCommand(){return Hv}handle(t,i){let e=i.getPagingConfig();t.changePaging(e)}publish(t,i){this.domainEventPublisher.publish(new Dp(i.getAggregateId()))}},Sp=class extends Ze{constructor(t){super(t,null,"NextPageEvent")}},vk=class{domainEventPublisher=Q.resolve(lt);forCommand(){return Wv}handle(t,i){t.nextPage()}publish(t,i){this.domainEventPublisher.publish(new Sp(i.getAggregateId()))}},Ep=class extends Ze{constructor(t){super(t,null,"PrevPageEvent")}},_k=class{domainEventPublisher=Q.resolve(lt);forCommand(){return Gv}handle(t,i){t.prevPage()}publish(t,i){this.domainEventPublisher.publish(new Ep(i.getAggregateId()))}},yk=class{domainEventPublisher=Q.resolve(lt);forCommand(){return Uv}handle(t,i){let e=i.getPageSize();t.changePageSize(e)}publish(t,i){let e=t.getEvents();e.forEach(r=>{r.aggregateId=t.getId()}),this.publishAggregateEvents(e,i),t.clearEvents()}publishAggregateEvents(t,i){for(let e of t)this.publishAggregateEvent(e,i)}publishAggregateEvent(t,i){switch(t.getType()){case"PageChangedAggregateEvent":let e=new zu(i.getAggregateId());this.domainEventPublisher.publish(e);break;case"PagesizeChangedAggregateEvent":let r=new Hu(i.getAggregateId());this.domainEventPublisher.publish(r);break;case"StructurePreparedEntitiesSetAggregateEvent":this.domainEventPublisher.publish(t.toDomainEvent());break;default:break}}},ro="StructureAggregate",wk=class{defineAggregate(){return null}registerKey(){return ro}registerProviders(t){t.provide(UF),t.provide(HF)}registerCommandHandlers(){return[bk,vk,_k,yk]}registerDomainEventHandler(){return[]}registerMultiDomainEventHandler(){return[]}},p8=(()=>{let n=class{enabled;page;pageSize;pageSizes;pagerTop;pagerBottom;isNextDisabled;isPrevDisabled;start;end;sourceSize;constructor(i,e,r,o,a,c,m,x,I,O,B){this.enabled=i,this.page=e,this.pageSize=r,this.pageSizes=o,this.pagerTop=a,this.pagerBottom=c,this.isNextDisabled=m,this.isPrevDisabled=x,this.start=I,this.end=O,this.sourceSize=B}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,e,r){return i-e<r&&r<i+e}sample(i){let e=this.getStart();return e!==0&&(e-=1),i.slice(e,this.getEnd())}compare(i){return JSON.stringify(this)===JSON.stringify(i)}};return n=Vd([_v],n),n})(),$v=class{convert(t){return new p8(t.isEnabled(),t.getPage(),t.getPageSize(),t.getPageSizes(),t.isPagerTop(),t.isPagerBottom(),t.isNextPageDisabled(),t.isPrevPageDisabled(),t.calculateStart(),t.calculateEnd(),t.getSourceSize())}},Bl=class extends sn{domainEventBus=Q.resolve(Kr);constructor(){super(),this.domainEventBus.ofEvents(this.forEvents()).pipe(this.hermesTakeUntil()).subscribe(t=>{try{this.subs(t)}catch(i){console.error(i)}})}},WF=(()=>{class n{structureRepository;constructor(i){this.structureRepository=i}static services=[Bl];on(i){return this.structureRepository.on(i).pipe(ut(e=>e.getId().toString()===i.toString()),me(e=>e.getPaging()))}}return n})(),g8=(()=>{class n extends ss{pagingRepository;constructor(i){super(),this.pagingRepository=i}static services=[WF];onPaging(i){return this.pagingRepository.on(i)}oncePaging(i){return Cl(this.pagingRepository.on(i))}}return n})(),f8=(()=>{class n extends rr{pagingDispatcher;constructor(i){super(),this.pagingDispatcher=i}static services=[UF];enable(i){this.pagingDispatcher.setPaging({enabled:!0},i)}disable(i){this.pagingDispatcher.setPaging({enabled:!1},i)}setPaging(i,e){this.pagingDispatcher.setPaging(i,e)}changePageSize(i,e){this.pagingDispatcher.changePageSize(i,e)}nextPage(i){this.pagingDispatcher.nextPage(i)}prevPage(i){this.pagingDispatcher.prevPage(i)}goToPage(i,e,r){if(e<i)for(;e!==i;)this.nextPage(r),e+=1;else for(;e!==i;)this.prevPage(r),e-=1}changePagerTop(i,e){this.pagingDispatcher.setPaging({pagerTop:i},e)}changePagerBottom(i,e){this.pagingDispatcher.setPaging({pagerBottom:i},e)}}return n})(),b8=(()=>{class n extends ha{pagingWarehouse;eventBusToRemove=Q.resolve(Kr);constructor(i){super(),this.pagingWarehouse=i}static services=[ss];onPageChange(i){return this.eventBusToRemove.ofEvents([Ep,Sp,zu]).pipe(ut(e=>e.getAggregateId().toString()===i.toAggregateId().toString()),yr(e=>this.pagingWarehouse.oncePaging(i.toAggregateId()).pipe(me(r=>r.getPage()))))}onPageSizeChange(i){return this.eventBusToRemove.ofEvents([Hu]).pipe(ut(e=>e.getAggregateId().toString()===i.toAggregateId().toString()),yr(e=>this.pagingWarehouse.oncePaging(i.toAggregateId()).pipe(me(r=>r.getPageSize()))))}}return n})(),xk=class{registerProviders(t){t.provide(rr,f8),t.provide(ss,g8),t.provide(ha,b8),t.provide(WF),t.provide($v)}};function v8(){new _n(new xk,new wk).init()}var Ck=class{translation=new Map;resolver=(t,i)=>i;changeTranslation(t){for(let i of Object.keys(t))this.translation.set(i,t[i])}getTranslation(){return Array.from(this.translation).reduce((t,[i,e])=>Object.assign(t,{[i]:this.resolver(i,e)}),{})}setResolver(t){this.resolver=t}},Ik=class extends Oo{defaultTranslation=XU;dictionary=new Ck;dictionary$=new Xn(1);constructor(){super()}getTranslation(){return this.dictionary.getTranslation()}onTranslation(){return this.dictionary$.toObservable()}setDefaultTranslation(){this.changeTranslationAndPropagate(this.defaultTranslation)}changeTranslation(t){this.changeTranslationAndPropagate(t)}setResolver(t){this.setResolverAndPropagate(t)}changeTranslationAndPropagate(t){this.dictionary.changeTranslation(t),this.dictionary$.next(this.dictionary.getTranslation())}setResolverAndPropagate(t){this.dictionary.setResolver(t),this.dictionary$.next(this.dictionary.getTranslation())}},ds=(()=>{class n extends Fi{static forComponent(){return[{provide:Oo,useClass:Ik}]}static \u0275fac=(()=>{let i;return function(r){return(i||(i=Ge(n)))(r||n)}})();static \u0275mod=X({type:n});static \u0275inj=K({imports:[le]})}return n})(),kk=class{cd;value;actualObs$;baseValues$=new fi;destroy$=new Xn(1);constructor(t){this.cd=t,this.baseValues$.pipe(ut(i=>i!==this.actualObs$),yr(i=>(this.actualObs$=i,i)),Xr(),Zn(this.destroy$)).subscribe(i=>{this.value=i,this.scheduleCD()})}destroy(){this.destroy$.next(),this.destroy$.complete()}subscribe(t){return this.baseValues$.next(t),this.value}scheduleCD(){setTimeout(()=>{this.cd.detectChanges()})}},oh=(()=>{class n{cd=F(ce);subscriber=new kk(this.cd);transform(i){return this.subscriber.subscribe(i)}ngOnDestroy(){this.subscriber.destroy()}static \u0275fac=function(e){return new(e||n)};static \u0275pipe=jh({name:"guiPush",type:n,pure:!1})}return n})(),KE=(()=>{class n{subscriber;vcr;template;guiIf;constructor(i,e,r){this.subscriber=i,this.vcr=e,this.template=r}ngOnChanges(i){i.guiIf!==void 0&&this.subscriber.subscribe(this.guiIf,e=>{e?this.vcr.createEmbeddedView(this.template):this.vcr.clear()})}ngOnDestroy(){this.subscriber.destroy()}static \u0275fac=function(e){return new(e||n)(l(Dc),l(ri),l(tt))};static \u0275dir=J({type:n,selectors:[["","guiIf",""]],inputs:{guiIf:"guiIf"},features:[Ae([Dc]),he]})}return n})();var _8=(()=>{class n{subscriber;elementRef;static STYLE="style";guiStyle;constructor(i,e){this.subscriber=i,this.elementRef=e}ngOnChanges(i){i.guiStyle!==void 0&&this.subscriber.subscribe(this.guiStyle,e=>{Object.keys(e).forEach(r=>{this.setStyleByName(r,e[r])})})}ngOnDestroy(){this.subscriber.destroy()}setStyleByName(i,e){this.set(i,e)}set(i,e){this.elementRef.nativeElement[n.STYLE][i]=e}static \u0275fac=function(e){return new(e||n)(l(Dc),l(P))};static \u0275dir=J({type:n,selectors:[["","guiStyle",""]],inputs:{guiStyle:"guiStyle"},features:[Ae([Dc]),he]})}return n})();var so=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({imports:[le]})}return n})();v8();function y8(){return Q.resolve(rr)}function w8(){return Q.resolve(ss)}function x8(){return Q.resolve(ha)}var vy=(()=>{class n extends Fi{static forComponent(){return[by]}static \u0275fac=(()=>{let i;return function(r){return(i||(i=Ge(n)))(r||n)}})();static \u0275mod=X({type:n});static \u0275inj=K({providers:[{provide:rr,useFactory:y8},{provide:ss,useFactory:w8},{provide:ha,useFactory:x8}],imports:[le,fc,ds,so]})}return n})(),Tp=(()=>{class n extends _r{static titlePanelConfig={enabled:!1,template:"Title Panel"};constructor(){super(ne({},n.titlePanelConfig))}}return n})(),Mp=(()=>{class n extends _r{static footerPanelConfig={enabled:!1,template:"Footer Panel"};constructor(){super(ne({},n.footerPanelConfig))}}return n})(),C8="Filter container token",Mv=function(n){return n.WIDTH="width",n.HEIGHT="height",n.PADDING_TOP="padding-top",n}(Mv||{}),Sv="style",_y=(()=>{class n extends vp{constructor(i){super(i)}createModifier(i){return new n.StyleModifier(i)}static StyleModifier=class{htmlElement;constructor(i){this.htmlElement=i}setStyleByName(i,e){this.set(i,e)}setWidth(i){this.set(Mv.WIDTH,this.toPx(i))}setHeight(i){this.set(Mv.HEIGHT,this.toPx(i))}setPaddingTop(i){this.set(Mv.PADDING_TOP,this.toPx(i))}remove(i){this.htmlElement[Sv][i]=""}removeStyleByName(i){this.htmlElement[Sv][i]=""}clear(){this.htmlElement.removeAttribute(Sv)}set(i,e){this.htmlElement[Sv][i]=e}toPx(i){return i>0?`${i}px`:`${i}`}}}return n})(),zl=class{constructor(){}},od=(()=>{class n{structureRepository;structureCellEditArchive;constructor(i,e){this.structureRepository=i,this.structureCellEditArchive=e}static services=[Bl,as];on(i){return this.structureRepository.on(i)}onEditManager(i){return this.structureCellEditArchive.on(i)}}return n})(),ga=class{constructor(){}},I8="Structure -",Dk=new re(`${I8} - css className`),Hl=class{constructor(){}},Sk=class{distinctTooltip;averageTooltip;minTooltip;maxTooltip;medTooltip;countTooltip;constructor(t,i,e,r,o,a){this.distinctTooltip=t,this.averageTooltip=i,this.minTooltip=e,this.maxTooltip=r,this.medTooltip=o,this.countTooltip=a}},Pi=function(n){return n[n.ASC=0]="ASC",n[n.DESC=1]="DESC",n[n.NONE=2]="NONE",n}(Pi||{}),Yv=class{header;dataType;context;width;fieldId;columnDefinitionId;sortStatus;enabled;cssClasses;styles;sortable;align;constructor(t,i,e,r,o,a,c,m,x,I,O,B){this.header=t,this.dataType=i,this.context=e,this.width=r,this.fieldId=o,this.columnDefinitionId=a,this.sortStatus=c,this.enabled=m,this.cssClasses=x,this.styles=I,this.sortable=O,this.align=B}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===Pi.ASC}isDescSort(){return this.sortStatus===Pi.DESC}isNoSort(){return this.sortStatus===Pi.NONE}isEnabled(){return this.enabled}isAlignLeft(){return this.align===oi.LEFT}isAlignCenter(){return this.align===oi.CENTER}isAlignRight(){return this.align===oi.RIGHT}getAlign(){return this.align}},qv=class extends Yv{viewTemplate;editTemplate;constructor(t=null,i=null,e){super(e.getHeader(),e.getDataType(),e.context,e.width,e.getFieldId(),e.getColumnDefinitionId(),e.getSortStatus(),e.isEnabled(),e.getCssClasses(),e.getStyles(),e.isSortEnabled(),e.getAlign()),this.viewTemplate=t,this.editTemplate=i}},Qv=function(n){return n[n.TEXT=0]="TEXT",n[n.HTML=1]="HTML",n}(Qv||{}),wc=class n{value;type;constructor(t,i){this.value=t,this.type=i}static text(t){return new n(t,Qv.TEXT)}static HTML(t){return new n(t,Qv.HTML)}},Kv=class{columnConfig;columnDefinitionId;name;editable;templateFun;formatterFun;accessor;searchAccessor;width;columnFieldId;align;cellEditingEnabled;type;view;constructor(t,i,e,r,o,a,c,m,x,I,O,B,ae,ee){this.columnConfig=t,this.columnDefinitionId=i,this.name=e,this.editable=r,this.templateFun=o,this.formatterFun=a,this.accessor=c,this.searchAccessor=m,this.width=x,this.columnFieldId=I,this.align=O,this.cellEditingEnabled=B,this.type=ae,this.view=ee}getDataType(){return this.type}getCellView(){return this.view.getCellView()}getColumnConfig(){return this.columnConfig}isCellEditingEnabled(){return this.cellEditingEnabled}isBooleanDataType(){return this.type===Me.BOOLEAN}isAlignLeft(){return this.align===oi.LEFT}isAlignCenter(){return this.align===oi.CENTER}isAlignRight(){return this.align===oi.RIGHT}getAlign(){return this.align}getType(){return this.type}getView(){return this.view}getName(){return this.name}getValue(t,i){let e=this.findValue(t,i);return e.value=this.templateFun(e.value,t.getSourceItem()),this.formatterFun&&(e.value=this.formatterFun(e.value,t.getSourceItem())),e}getClasses(){return"gui-cell-highlighted"}findValue(t,i){let e=this.accessor(t);if(this.type!==Me.STRING||this.view&&this.view.getCellView()===pe.FUNCTION)return wc.text(e);if(i){let r=""+this.searchAccessor(t),o=r.toLocaleLowerCase(),a=i.toLocaleLowerCase(),c=[],m=0;for(;m<a.length;){let I=o.indexOf(a,m);I>=0?(c.push(I),m=I+i.length):m=a.length}let x=r.split("");return c.forEach(I=>{for(let O=0;O<i.length;O+=1){let B;O===0?B=`<span class="gui-text-highlight">${x[I+O]}`:B=x[I+O],O===i.length-1&&(B+="</span>"),x[I+O]=B}}),r=x.join(""),wc.HTML(r)}else return wc.text(e)}},Ek=class extends Kv{template;editTemplate;constructor(t=null,i=null,e){super(e.getColumnConfig(),e.columnDefinitionId,e.getName(),e.editable,e.templateFun,e.formatterFun,e.accessor,e.searchAccessor,e.width,e.columnFieldId,e.getAlign(),e.isCellEditingEnabled(),e.getType(),e.getView()),this.template=t,this.editTemplate=i}},bc={CompositionResizeWidthSetAggregateEvent:"CompositionResizeWidthSetAggregateEvent",ColumnsSetAggregateEvent:"ColumnsSetAggregateEvent",CompositionContainerWidthSetAggregateEvent:"CompositionContainerWidthSetAggregateEvent",CompositionWidthSetAggregateEvent:"CompositionWidthSetAggregateEvent",CompositionColumnSetEnabledAggregateEvent:"CompositionColumnSetEnabledAggregateEvent",CompositionColumnMovedLeftAggregateEvent:"CompositionColumnMovedLeftAggregateEvent",CompositionColumnMovedRightAggregateEvent:"CompositionColumnMovedRightAggregateEvent",GroupsSetAggregateEvent:"GroupsSetAggregateEvent"},oo=class extends Ka{},Ul=class extends oo{constructor(t){super(t,null,"CompositionResizeWidthSetEvent")}},Uu=class extends oo{constructor(t){super(t,null,"CompositionColumnsSetEvent")}},Wu=class extends oo{constructor(t,i){super(t,i,"CompositionContainerWidthSetEvent")}},Gu=class extends oo{constructor(t){super(t,null,"CompositionWidthSetEvent")}},Ap=class extends oo{constructor(t){super(t,null,"CompositionColumnSetEnabledEvent")}},Rp=class extends oo{constructor(t){super(t,null,"CompositionColumnMovedLeftEvent")}},Fp=class extends oo{constructor(t){super(t,null,"CompositionColumnMovedRightEvent")}},Tk=class extends oo{constructor(t){super(t,null,"CompositionGroupsSetEvent")}},cs=class{convert(t){return Array.isArray(t)?this.convertEvents(t):this.convertEvent(t)}convertEvents(t){return t.map(i=>this.convertEvent(i))}convertEvent(t){switch(t.getType()){case bc.CompositionResizeWidthSetAggregateEvent:return new Ul(t.getAggregateId());case bc.ColumnsSetAggregateEvent:return new Uu(t.getAggregateId());case bc.CompositionContainerWidthSetAggregateEvent:let i=t.containerWidth;return new Wu(t.getAggregateId(),i);case bc.CompositionWidthSetAggregateEvent:return new Gu(t.getAggregateId());case bc.CompositionColumnSetEnabledAggregateEvent:return new Ap(t.getAggregateId());case bc.CompositionColumnMovedLeftAggregateEvent:return new Rp(t.getAggregateId());case bc.CompositionColumnMovedRightAggregateEvent:return new Fp(t.getAggregateId());case bc.GroupsSetAggregateEvent:return new Tk(t.getAggregateId());default:return new Ul(t.getAggregateId())}}},ao=class extends dc{},Xv=class extends ao{compositionId;columns;constructor(t,i){super(t,"SetColumnsCommand"),this.compositionId=t,this.columns=i}getParams(){return this.columns}},k8=(()=>{class n{compositionEventConverter;domainEventPublisher=Q.resolve(lt);constructor(i){this.compositionEventConverter=i}static services=[cs];forCommand(){return Xv}handle(i,e){let r=e.getParams();i.setColumns(r)}publish(i,e){this.publishEvents(i,e)}publishEvents(i,e){let r=i.getEvents(),o=this.compositionEventConverter.convert(r);this.domainEventPublisher.publish(o)}}return n})(),Zv=class extends ao{structureId;width;constructor(t,i){super(t,"SetCompositionWidthCommand"),this.structureId=t,this.width=i}getWidth(){return this.width}},Mk=class{domainEventPublisher=Q.resolve(lt);forCommand(){return Zv}handle(t,i){let e=i.getWidth();t.setWidth(e)}publish(t,i){this.domainEventPublisher.publish(new Gu(i.getAggregateId()))}},Jv=class extends ao{structureId;enabled;constructor(t,i){super(t,"SetCompositionResizeWidthCommand"),this.structureId=t,this.enabled=i}getEnabled(){return this.enabled}},Ak=class{domainEventPublisher=Q.resolve(lt);forCommand(){return Jv}handle(t,i){let e=i.getEnabled();t.setResizeWidth(e)}publish(t,i){this.domainEventPublisher.publish(new Ul(i.getAggregateId()))}},e0=class extends ao{structureId;width;constructor(t,i){super(t,"SetCompositionContainerWidthCommand"),this.structureId=t,this.width=i}getWidth(){return this.width}},D8=(()=>{class n{compositionEventConverter;domainEventPublisher=Q.resolve(lt);constructor(i){this.compositionEventConverter=i}static services=[cs];forCommand(){return e0}handle(i,e){let r=e.getWidth();i.setContainerWidth(r)}publish(i,e){this.publishAggregateEvents(i.getEvents())}publishAggregateEvents(i){let e=this.compositionEventConverter.convert(i);this.domainEventPublisher.publish(e)}}return n})(),t0=class extends ao{compositionId;columnId;enabled;constructor(t,i,e){super(t,"CompositionSetColumnEnabledCommand"),this.compositionId=t,this.columnId=i,this.enabled=e}getColumnId(){return this.columnId}isEnabled(){return this.enabled}},S8=(()=>{class n{compositionEventConverter;domainEventPublisher=Q.resolve(lt);constructor(i){this.compositionEventConverter=i}static services=[cs];forCommand(){return t0}handle(i,e){let r=e.getColumnId(),o=e.isEnabled();i.enableColumn(r,o)}publish(i,e){this.publishEvents(i,e)}publishEvents(i,e){let r=i.getEvents(),o=this.compositionEventConverter.convert(r);o&&o.length>0&&this.domainEventPublisher.publish(o)}}return n})(),i0=class extends ao{compositionId;sortParams;constructor(t,i){super(t,"CompositionChangeSortStatusCommand"),this.compositionId=t,this.sortParams=i}getCompositionId(){return this.compositionId}getSortParams(){return this.sortParams}},Op=class extends oo{activeColumns;constructor(t,i){super(t,i,"CompositionChangeSortStatusEvent"),this.activeColumns=i}getCompositionId(){return this.getAggregateId()}getActiveColumns(){return this.activeColumns}},Rk=class{domainEventPublisher=Q.resolve(lt);forCommand(){return i0}handle(t,i){let e=i.getSortParams();t.changeSort(e)}publish(t,i){let e=i.getAggregateId(),r=t.getActiveColumns();this.domainEventPublisher.publish(new Op(e,r))}},n0=class extends ao{compositionId;columnId;constructor(t,i){super(t,"CompositionMoveLeftColumnCommand"),this.compositionId=t,this.columnId=i}getColumnId(){return this.columnId}},E8=(()=>{class n{compositionEventConverter;domainEventPublisher=Q.resolve(lt);constructor(i){this.compositionEventConverter=i}static services=[cs];forCommand(){return n0}handle(i,e){let r=e.getColumnId();i.moveLeft(r)}publish(i,e){this.publishEvents(i,e)}publishEvents(i,e){let r=i.getEvents(),o=this.compositionEventConverter.convert(r);o&&o.length>0&&this.domainEventPublisher.publish(o)}}return n})(),r0=class extends ao{columnId;constructor(t,i){super(t,"CompositionMoveRightColumnCommand"),this.columnId=i}getColumnId(){return this.columnId}},T8=(()=>{class n{compositionEventConverter;domainEventPublisher=Q.resolve(lt);constructor(i){this.compositionEventConverter=i}static services=[cs];forCommand(){return r0}handle(i,e){let r=e.getColumnId();i.moveRight(r)}publish(i,e){this.publishEvents(i,e)}publishEvents(i,e){let r=i.getEvents(),o=this.compositionEventConverter.convert(r);o&&o.length>0&&this.domainEventPublisher.publish(o)}}return n})(),Pp=class extends Ze{compositionId;directions;constructor(t,i,e){super(t,{compositionId:i,directions:e},"SortToggledEvent"),this.compositionId=i,this.directions=e}getCompositionId(){return this.compositionId}getDirections(){return this.directions}},o0=class extends ao{compositionId;constructor(t){super(t,"CreateCompositionCommand"),this.compositionId=t}},a0=class extends ao{compositionId;configs;constructor(t,i){super(t,"SetGroupsCommand"),this.compositionId=t,this.configs=i}getConfigs(){return this.configs}},Np=class{commandDispatcher=Q.resolve(Yi);create(t){this.commandDispatcher.dispatch(new o0(t))}setColumns(t,i){this.commandDispatcher.dispatch(new Xv(t,i))}setGroups(t,i){this.commandDispatcher.dispatch(new a0(t,i))}setWidth(t,i){this.commandDispatcher.dispatch(new Zv(t,i))}setContainerWidth(t,i){this.commandDispatcher.dispatch(new e0(t,i))}setResizeWidth(t,i){this.commandDispatcher.dispatch(new Jv(t,i))}changeSort(t,i){this.commandDispatcher.dispatch(new i0(t,i))}setColumnEnabled(t,i,e){this.commandDispatcher.dispatch(new t0(t,i,e))}moveLeft(t,i){this.commandDispatcher.dispatch(new n0(t,i))}moveRight(t,i){this.commandDispatcher.dispatch(new r0(t,i))}},s0=class{fieldId;direction;constructor(t,i){this.fieldId=t,this.direction=i}},Vp=class extends Ze{compositionId;directions;constructor(t,i,e){super(t,{compositionId:i,directions:e},"SortOrderSetEvent"),this.compositionId=i,this.directions=e}getCompositionId(){return this.compositionId}getDirections(){return this.directions}},M8=(()=>{class n{compositionDispatcher;constructor(i){this.compositionDispatcher=i}static services=[Np];forEvents(){return[Pp,Vp]}handle(i){if(i.ofMessageType("SortToggledEvent")){let e=i.getCompositionId(),o=i.getDirections().map(a=>{let c=new yp(a.fieldId.getId());return new s0(c,a.direction)});this.compositionDispatcher.changeSort(e,o)}if(i.ofMessageType("SortOrderSetEvent")){let e=i.getCompositionId(),o=i.getDirections().map(a=>{let c=new yp(a.fieldId.getId());return new s0(c,a.direction)});this.compositionDispatcher.changeSort(e,o)}}}return n})(),jp=class n{view;templateFunction=(t,i)=>t;constructor(t){typeof t=="function"?(this.view=pe.FUNCTION,this.templateFunction=t):this.view=t}static fromDataType(t){return t===Me.DATE?new n(pe.DATE):new n(pe.TEXT)}getCellView(){return this.view}getTemplateFunction(){return this.templateFunction}},Fk=class extends _l{columnField;header;width;columnConfig;view;align;presentation;constructor(t,i,e,r,o,a,c,m){super(t),this.columnField=i,this.columnConfig=e,this.presentation=r,this.view=jp.fromDataType(i.getDataType()),o&&(this.header=o),c&&(this.view=c),m&&(this.width=m),this.setInitialAlign(i,a)}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(t){this.view=t}setHeader(t){this.header=t}getView(){return this.view}getAlign(){return this.align}setWidth(t){this.width=t}getWidth(){return this.width}isSortingEnabled(){let t=this.columnConfig;return t.sorting!==void 0&&t.sorting!==null?t.sorting.enabled===void 0||t.sorting.enabled===null?!0:t.sorting.enabled:!0}isCellEditingEnabled(){let t=this.columnConfig;return t.cellEditing!==void 0&&t.cellEditing!==null?t.cellEditing.enabled===void 0||t.cellEditing.enabled===null?!0:t.cellEditing.enabled:!0}setInitialAlign(t,i){i!=null?this.align=i:t.getDataType()===Me.NUMBER?this.align=oi.RIGHT:this.align=oi.LEFT}},Lp=class extends Fk{sortable;sortStatus=Pi.NONE;enabled=!0;constructor(t,i,e,r,o,a,c,m,x){super(t,i,e,o,a,c,m,x),this.enabled=r,m===void 0&&(this.view=new jp(this.presentation.getDefaultView())),c===void 0&&(this.align=this.presentation.getDefaultAlign(this.view))}isEnabled(){return this.enabled}setEnabled(t){this.enabled=t}getSortStatus(){return this.sortStatus}setSortStatus(t){this.sortStatus=t}},$u=class extends Xa{constructor(t){super(t)}toString(){return this.getId()}},Wl=class{},A8=(()=>{class n extends Wl{static instance=null;constructor(){super()}static getInstance(){return n.instance||(n.instance=new n),n.instance}getPossibleViews(){return[pe.TEXT,pe.BAR,pe.PERCENTAGE_BAR,pe.PERCENTAGE]}getDefaultView(){return pe.NUMBER}getDefaultAlign(i){return oi.RIGHT}}return n})(),R8=(()=>{class n extends Wl{static instance=null;constructor(){super()}static getInstance(){return n.instance||(n.instance=new n),n.instance}getPossibleViews(){return[pe.TEXT,pe.ITALIC,pe.CHIP,pe.BOLD,pe.CHECKBOX]}getDefaultView(){return pe.TEXT}getDefaultAlign(i){return i.getCellView()===pe.CHECKBOX?oi.CENTER:oi.LEFT}}return n})(),F8=(()=>{class n extends Wl{static getInstance(){return n.instance||(n.instance=new n),n.instance}static instance=null;constructor(){super()}getPossibleViews(){return[pe.DATE,pe.TEXT,pe.ITALIC,pe.BOLD,pe.CHIP]}getDefaultView(){return pe.DATE}getDefaultAlign(){return oi.LEFT}}return n})(),O8=(()=>{class n extends Wl{static instance=null;constructor(){super()}static getInstance(){return n.instance||(n.instance=new n),n.instance}getPossibleViews(){return[pe.TEXT,pe.ITALIC,pe.BOLD,pe.IMAGE,pe.LINK,pe.CHIP]}getDefaultView(){return pe.TEXT}getDefaultAlign(){return oi.LEFT}}return n})(),P8=(()=>{class n extends Wl{static instance=null;constructor(){super()}static getInstance(){return n.instance||(n.instance=new n),n.instance}getPossibleViews(){return[pe.TEXT]}getDefaultView(){return pe.TEXT}getDefaultAlign(){return oi.LEFT}}return n})(),c0=class{convert(t){return t===Me.NUMBER?A8.getInstance():t===Me.BOOLEAN?R8.getInstance():t===Me.DATE?F8.getInstance():t===Me.STRING?O8.getInstance():P8.getInstance()}},GF=(()=>{class n{columnPresentationConverter;constructor(i){this.columnPresentationConverter=i}static services=[c0];create(i){return Array.isArray(i)?this.createColumns(i):this.createColumn(i)}createColumn(i){let e=i.getColumn(),r=i.getField(),o=r.getDataType(),a=this.convertWidth(e.width)||void 0,c,m;e.view!==void 0&&(c=new jp(e.view)),e.enabled!==void 0?m=e.enabled:m=!0;let x=this.getPresentation(o),I=new Lp(new $u(uc.generate()),r,e,m,x,void 0,e.align,c,a);return e.header!==void 0&&I.setHeader(e.header),I}createColumns(i){let e=[];return i.forEach(r=>{e.push(this.createColumn(r))}),e}convertWidth(i){return+i}getPresentation(i){return this.columnPresentationConverter.convert(i)}}return n})(),l0=class{id;header;width;constructor(t,i,e){this.id=t,this.header=i,this.width=e}},d0=class extends fl{constructor(t){super(t)}toString(){return this.getId()}},u0=class{create(t){return new l0(new d0(uc.generate()),t.header,t.width)}},N8=(()=>{class n{compositionEventConverter;domainEventPublisher=Q.resolve(lt);constructor(i){this.compositionEventConverter=i}static services=[cs];forCommand(){return a0}handle(i,e){let r=e.getConfigs();i.setGroups(r)}publish(i,e){this.publishEvents(i,e)}publishEvents(i,e){let r=i.getEvents(),o=this.compositionEventConverter.convert(r);this.domainEventPublisher.publish(o)}}return n})(),h0=class{enabled=!0;highlightedColumns=new Set;isHighlighted(t){return this.highlightedColumns.has(t.toString())}toggle(t){this.highlightedColumns.has(t.toString())?this.highlightedColumns.delete(t.toString()):this.highlightedColumns.add(t.toString())}remove(t){this.highlightedColumns.delete(t.toString())}},Bp=class extends Mt{constructor(){super(new h0)}toggle(t,i){this.find(t).ifPresent(e=>{e.toggle(i),this.next(t,e)})}equals(t,i){return!1}createDefaultValue(t){return new h0}},Yu=class extends wl{},$F=(()=>{class n extends yl{constructor(i){super(i)}static services=[Yu]}return n})(),m0=class extends pl{},SF=(()=>{class n extends m0{inMemoryCompositionAggregateStore;constructor(i){super(),this.inMemoryCompositionAggregateStore=i}static services=[$F];findById(i){return this.inMemoryCompositionAggregateStore.findById(i)}save(i){this.inMemoryCompositionAggregateStore.save(i)}}return n})(),p0=class{element;constructor(t){this.element=t}},g0=class extends hv{columnConfig;name;type;view;align;cssClasses;styles;width;templateFunction;formatterFunction;columnDefinitionId;field;header;sortStatus;sortable=!0;enabled;cellEditingEnabled;constructor(t,i,e,r,o,a,c,m,x,I,O,B,ae=Pi.NONE,ee=!0){super(i),this.columnConfig=e,this.name=r,this.type=a,this.view=c,this.align=m,this.cssClasses=O,this.styles=B,this.field=t,this.columnDefinitionId=i,this.enabled=o,this.header=x,this.cellEditingEnabled=I,this.sortStatus=ae,this.sortable=ee}getName(){return this.name}isEnabled(){return this.enabled}setHeader(t){this.header=t}setField(t){this.field=t}setTemplateFunction(t){this.templateFunction=t}setFormatterFunction(t){this.formatterFunction=t}toHeaderCellTemplateWithContext(t){let i=this.header||"",e;typeof i=="string"?e=new p0(wc.text(i)):typeof i=="function"&&(e=new p0(wc.text(i(t))));let r=new Fl(this.field.getId().getId());return new Yv(i,this.type,e,this.width,r,this.columnDefinitionId,this.sortStatus,this.enabled,this.cssClasses,this.styles,this.sortable,this.align)}toContentCellTemplateWithAccessor(){let t=e=>this.field.getAccessor()(e),i=e=>this.field.getSearchAccessor()(e);return new Kv(this.columnConfig,this.columnDefinitionId,this.name,!0,this.templateFunction,this.formatterFunction,t,i,this.width,this.field.getId(),this.align,this.cellEditingEnabled,this.type,this.view)}},f0=class extends mv{constructor(t){super(t)}},b0=class{create(t){return t instanceof Lp?this.createFromColumnEntity(t):this.createFromActiveColumnEntity(t)}createColumns(t){return t.map(i=>this.create(i))}createFromColumnEntity(t){let i=new g0(t.getField(),new f0(t.getId().toString()),t.getColumnConfig(),t.getColumnConfig().name,t.isEnabled(),t.getDataType(),t.getView(),t.getAlign(),t.getHeader(),t.isCellEditingEnabled(),t.getColumnConfig().cssClasses,t.getColumnConfig().styles,t.getSortStatus(),t.isSortingEnabled());return i.setTemplateFunction(t.getTemplateFunction()),i.setFormatterFunction(t.getFormatterFunction()),i.width=+t.getWidth(),i}createFromActiveColumnEntity(t){let i=new g0(t.getField(),new f0(t.getId().toString()),t.getColumnConfig(),t.getColumnConfig().name,!0,t.getDataType(),t.getView(),t.getAlign(),t.getHeader(),t.isCellEditingEnabled(),t.getColumnConfig().cssClasses,t.getColumnConfig().styles,t.getSortStatus(),t.isSortingEnabled());return i.setTemplateFunction(t.getTemplateFunction()),i.setFormatterFunction(t.getFormatterFunction()),i.width=+t.getWidth(),i}},Ok=class extends ep{ready;allColumns;activeColumns;width;resizeWidth;constructor(t,i,e,r,o,a){super(t),this.ready=i,this.allColumns=e,this.activeColumns=r,this.width=o,this.resizeWidth=a}getActiveColumns(){return this.activeColumns}getAllColumns(){return this.allColumns}getActiveHeaderColumns(){return this.getActiveColumns().map((t,i)=>t.toHeaderCellTemplateWithContext(i))}getHeaderColumns(){return this.getAllColumns().map((t,i)=>t.toHeaderCellTemplateWithContext(i))}getTemplateColumns(){return this.getActiveColumns().map(t=>t.toContentCellTemplateWithAccessor())}getWidth(){return this.width}getContainerWidth(){return+this.width-2}isReady(){return this.ready}isResizeWidthEnabled(){return this.resizeWidth}equals(t){return this.width===t.width&&this.resizeWidth===t.resizeWidth&&this.equalsByColumns(t.allColumns)}equalsByColumns(t){return this.allColumns.length===t.length}},YF=(()=>{class n{columnDefinitionFactory;constructor(i){this.columnDefinitionFactory=i}static services=[b0];convert(i){let e=i.isReady(),r=i.getColumns(),o=i.getActiveColumns(),a=this.convertToColumnDef(r),c=this.convertActiveColumnsToColumnDef(o),m=i.getWidth(),x=i.isResizeEnabled(),I=i.getId();return new Ok(I.toReadModelRootId(),e,a,c,m,x)}convertToColumnDef(i){let e=[];return i.forEach(r=>{let o=this.columnDefinitionFactory.create(r);e.push(o)}),e}convertActiveColumnsToColumnDef(i){let e=[];return i.forEach(r=>{let o=this.columnDefinitionFactory.create(r);e.push(o)}),e}}return n})(),XE=(()=>{class n extends tp{inMemoryCompositionStore;compositionConverter;constructor(i,e){super(i),this.inMemoryCompositionStore=i,this.compositionConverter=e}static services=[Yu,YF];toReadModel(i){return this.compositionConverter.convert(i)}}return n})(),qu=class extends pv{constructor(){super()}},v0=class extends oo{constructor(t){super(t,null,"CompositionCreatedEvent")}},qF=(()=>{class n extends qu{inMemoryCompositionReadStore;compositionIdToComposition=new Map;composition$=new Xn(1);constructor(i){super(),this.inMemoryCompositionReadStore=i}static services=[XE];on(i){return this.composition$.toObservable().pipe(ut(e=>{let r=i.getId();return e.has(r)}),me(e=>e.get(i.getId())))}find(i){let e=i.getId();return bi.of(this.compositionIdToComposition.get(e))}forEvents(){return[v0,Ul,Uu,Wu,Gu,Ap,Rp,Fp,Op]}subscribe(i){let e=i.getAggregateId();this.inMemoryCompositionReadStore.getById(e).ifPresent(o=>{let a=o.getId().toString();this.compositionIdToComposition.set(a,o),this.composition$.next(this.compositionIdToComposition)})}}return n})(),Pk=class{forCommand(){return o0}},zp=class{MIN_COLUMN_WIDTH;constructor(t){this.MIN_COLUMN_WIDTH=t}calculateMinWidth(t){let{staticColumns:i,fluidColumns:e}=this.segregateColumns(t),r=0;return i.forEach(o=>{r+=o.getWidth()}),r+=e.length*this.MIN_COLUMN_WIDTH,r}segregateColumns(t){let i=t.filter(r=>r.isTypeNumber()&&r.getWidth()>this.MIN_COLUMN_WIDTH),e=t.filter(r=>r.isTypeAuto()||r.isTypePercentage()||r.isTypeNumber()&&r.getWidth()<=this.MIN_COLUMN_WIDTH);return{staticColumns:i,fluidColumns:e}}},Po=class extends ml{},Nk=class extends Po{constructor(t){super(t,"CompositionWidthSetAggregateEvent")}toDomainEvent(){return new Gu(this.getAggregateId())}},Vk=class extends Po{containerWidth;constructor(t,i){super(t,"CompositionContainerWidthSetAggregateEvent"),this.containerWidth=i}toDomainEvent(){return new Wu(this.getAggregateId(),this.containerWidth)}},jk=class extends Po{constructor(t){super(t,"CompositionResizeWidthSetAggregateEvent")}toDomainEvent(){return new Ul(this.getAggregateId())}},Lk=class extends Po{activeColumns;constructor(t,i){super(t,"CompositionColumnSetEnabledAggregateEvent"),this.activeColumns=i}toDomainEvent(){return new Ap(this.getAggregateId())}getActiveColumns(){return this.activeColumns}},da=function(n){return n[n.PERCENTAGE=0]="PERCENTAGE",n[n.NUMBER=1]="NUMBER",n[n.AUTO=2]="AUTO",n}(da||{}),Vu=class n{template;baseWidth;width;constructor(t){this.baseWidth=t,this.setWidthAndType(t)}getWidth(){return this.width}getColumnType(){return this.template}isTypePercentage(){return this.template===da.PERCENTAGE}isTypeAuto(){return this.template===da.AUTO}isTypeNumber(){return this.template===da.NUMBER}setWidth(t){this.width=t}setWidthAndType(t){t==null||t==="auto"?(this.template=da.AUTO,this.setWidth(null)):this.isPercentage(t)?(this.template=da.PERCENTAGE,this.setWidth(this.percentageToNumber(""+t))):this.isStringNumber(t)?(this.template=da.NUMBER,this.setWidth(+t)):(this.template=da.NUMBER,this.setWidth(+t))}clone(){return new n(this.baseWidth)}isPercentage(t){return typeof t=="string"&&t[t.length-1]==="%"}percentageToNumber(t){return+t.slice(0,-1)}isStringNumber(t){let i=+t;return Number.isNaN(i)}},Bk=class{source;width;MIN_COLUMN_WIDTH;columns;constructor(t,i,e){this.source=t,this.width=i,this.MIN_COLUMN_WIDTH=e,this.columns=this.source.map(r=>r.clone())}calculate(){let t=this.width,i=Array.from(this.columns);this.adjustMinimalWidth(i);let e=[];if(i.forEach((r,o)=>{r.isTypeNumber()?t-=r.getWidth():e.push(r)}),i=e,i.length!==0){let r=t/i.length;i.forEach((o,a)=>{o.setWidth(r)})}return this.columns}adjustMinimalWidth(t){t.forEach(i=>{i.isTypeNumber()&&i.getWidth()<this.MIN_COLUMN_WIDTH&&i.setWidthAndType(this.MIN_COLUMN_WIDTH)})}adjustPercentageWidth(){let t=this.columns.filter(i=>i.isTypePercentage());for(let i of this.columns)i.getColumnType()===da.PERCENTAGE&&i.setWidth(this.width*i.getWidth()*.01)}adjustAutoWidth(){let t=this.width,i=[];for(let e=0;e<this.columns.length;e+=1){let r=this.columns[e];r.getColumnType()!==da.AUTO?t-=r.getWidth():i.push(r)}if(i.length>0){let e=t/i.length;for(let r of i)r.setWidth(e)}}},_0=class{MIN_COLUMN_WIDTH;baseColumnWidths;columnWidths;width;constructor(t,i=[],e=100){this.MIN_COLUMN_WIDTH=t,this.baseColumnWidths=i.map(r=>new Vu(r.width)),this.columnWidths=i.map(r=>new Vu(r.width)),this.setContainerWidth(e),this.calculate()}getColumnWidths(){return this.baseColumnWidths}getColumnsWidth(){return this.width}getWidths(){return this.columnWidths.map(t=>t.getWidth())}getMinWidth(){return new zp(this.MIN_COLUMN_WIDTH).calculateMinWidth(this.columnWidths)}setWidth(t){this.setContainerWidth(t),this.calculate()}setColumns(t){this.baseColumnWidths=t.map(i=>new Vu(i.width)),this.columnWidths=t.map(i=>new Vu(i.width)),this.calculate()}getMinColumnWidth(){return this.MIN_COLUMN_WIDTH}calculate(){if(this.baseColumnWidths&&this.width){let t=new Bk(this.baseColumnWidths,this.width,this.MIN_COLUMN_WIDTH);this.columnWidths=t.calculate()}}setContainerWidth(t){this.getMinWidth()>t?this.width=this.getMinWidth():this.width=t,this.calculate()}},zk=class extends Po{activeColumns;constructor(t,i){super(t,"CompositionChangeSortStatusAggregateEvent"),this.activeColumns=i}toDomainEvent(){return new Op(this.getAggregateId(),this.activeColumns)}},Hk=class{compositionId;MIN_COLUMN_WIDTH=50;columns;columnWidthCollection=new _0(this.MIN_COLUMN_WIDTH);constructor(t,i=[],e,r){this.compositionId=t,this.columns=i,e&&r&&(this.columnWidthCollection=new _0(this.MIN_COLUMN_WIDTH,r,e))}getColumnWidths(){return this.columnWidthCollection.getColumnWidths()}getColumns(){return this.columns}setWidth(t){this.columnWidthCollection.setWidth(t)}addColumn(t,i){this.columns.splice(i,0,t)}removeColumn(t){this.columns.splice(t,1)}setColumns(t,i){this.columns=t,this.columnWidthCollection.setColumns(i);let e=this.columnWidthCollection.getWidths();this.columns.forEach((r,o)=>{r.setWidth(e[o])})}changeSort(t){this.columns.forEach(i=>{i.setSortStatus(Pi.NONE)});for(let i of t){let e=i.fieldId,r=i.direction,o=r?Pi.ASC:Pi.DESC,a=this.columns.filter(c=>c.getField().getId().getId()===e.getId());a.length>0&&a.forEach(c=>{c.setSortStatus(o)})}return new zk(this.getCompositionId(),this.columns)}moveLeft(t){let i=this.findColumnIndex(t);this.move(i,i-1)}moveRight(t){let i=this.findColumnIndex(t);this.move(i,i+1)}getMinColumnWidth(){return this.MIN_COLUMN_WIDTH}move(t,i){if(!this.validateMoveIndex(t)||!this.validateMoveIndex(i))return;let e=this.columns[t];this.columns[t]=this.columns[i],this.columns[i]=e}validateMoveIndex(t){return t>=0}getCompositionId(){return this.compositionId}findColumnIndex(t){return this.columns.findIndex(i=>i.getId().equals(t))}},Uk=class n extends Lp{constructor(t,i,e,r,o,a,c){super(t,i,a,!0,c,e,r,o,void 0)}static fromEntity(t){return new n(t.getId(),t.getField(),t.getHeader(),t.getAlign(),t.getView(),t.getColumnConfig(),t.getPresentation())}},Wk=class{convertMany(t){return t.map(i=>this.convert(i))}convert(t){return Uk.fromEntity(t)}},Gk=class extends Po{constructor(t){super(t,"CompositionColumnMovedLeftAggregateEvent")}toDomainEvent(){return new Rp(this.getAggregateId())}},$k=class extends Po{constructor(t){super(t,"CompositionColumnMovedRightAggregateEvent")}toDomainEvent(){return new Fp(this.getAggregateId())}},Yk=class extends Po{constructor(t){super(t,"ColumnsSetAggregateEvent")}toDomainEvent(){return new Uu(this.getAggregateId())}},qk=class extends Po{constructor(t){super(t,"SchemaCreatedEvent")}toDomainEvent(){return new v0(this.getAggregateId())}},V8=new l0(new d0("-1"),"",100),Qk=class extends gl{allColumns=[];baseColumns;baseParams;width;containerInDOMWidth;resizeWidthEnabled=!0;columnFactory;groupFactory;activeColumnContainer;activeColumnEntityConverter=new Wk;groups=new xu;columnNameToGroupId=new Map;constructor(t,i,e,r=[],o,a){super(t,"CompositionAggregate");let c=r.map(x=>x.getColumn());this.baseParams=r,this.baseColumns=c,this.columnFactory=i,this.groupFactory=e,this.width=o,this.allColumns=this.columnFactory.create(r);let m=this.activeColumnEntityConverter.convertMany(this.getEnabledColumns());this.activeColumnContainer=new Hk(this.getId(),m,o,c),a!=null&&(this.resizeWidthEnabled=a)}createEvent(){return qk}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(t){for(let i=0;i<t.length;i+=1){let e=t[i];if(e.columns!==void 0){let r=this.groupFactory.create(e);this.groups.set(r.id,r),e.columns.forEach((o,a)=>{this.columnNameToGroupId.set(o.header,r.id)})}else this.columnNameToGroupId.set(e.header,V8.id)}}setColumns(t){this.allColumns=this.columnFactory.create(t);let i=t.map(r=>r.getColumn()),e=this.activeColumnEntityConverter.convertMany(this.getEnabledColumns());this.activeColumnContainer.setColumns(e,i),this.addEvent(new Yk(this.getId()))}setContainerWidth(t){this.setContainerWidthWithEvent(t),this.recalculateColumns()}setWidth(t){this.setWidthWithEvent(t),this.setResizeWidthWithEvent(!1),this.recalculateColumns()}setResizeWidth(t){this.setResizeWidthWithEvent(t)}changeSort(t){this.addEvent(this.activeColumnContainer.changeSort(t))}enableColumn(t,i){let e=-1;if(this.allColumns.forEach((r,o)=>{if(r.getId().getId()===t.getId()){let a=r.isEnabled();r.setEnabled(i),a!==i&&(e=o)}}),e>0)if(i){let r=this.activeColumnEntityConverter.convert(this.allColumns[e]);this.activeColumnContainer.addColumn(r,e)}else this.activeColumnContainer.removeColumn(e);this.recalculateColumns(),this.addEvent(new Lk(this.getId(),this.getActiveColumns()))}moveLeft(t){let i=this.findColumnIndex(t),e,r=-1;for(let o=i-1;o>=0;o-=1){let a=this.allColumns[o];if(a.isEnabled()){e=a,r=o;break}}if(e&&r>=0&&i>=0){let o=this.allColumns[i];this.allColumns[i]=e,this.allColumns[r]=o}this.activeColumnContainer.moveLeft(t),this.addEvent(new Gk(this.getId()))}moveRight(t){let i=this.findColumnIndex(t),e,r=-1;for(let o=i+1;o<this.allColumns.length;o+=1){let a=this.allColumns[o];if(a.isEnabled()){e=a,r=o;break}}if(e&&r>=0&&i>=0){let o=this.allColumns[i];this.allColumns[i]=e,this.allColumns[r]=o}this.activeColumnContainer.moveRight(t),this.addEvent(new $k(this.getId()))}recalculateColumns(){let t=this.activeColumnEntityConverter.convertMany(this.getEnabledColumns());this.activeColumnContainer.setColumns(t,t.map(i=>i.getColumnConfig()))}setWidthWithEvent(t){let e=new zp(this.getMinColumnWidth()).calculateMinWidth(this.activeColumnContainer.getColumnWidths());e>t?this.width=e:this.width=t,this.activeColumnContainer.setWidth(this.getWidth()),this.addEvent(new Nk(this.getId()))}setContainerWidthWithEvent(t){let e=new zp(this.getMinColumnWidth()).calculateMinWidth(this.activeColumnContainer.getColumnWidths());e>t?this.containerInDOMWidth=e:this.containerInDOMWidth=t,this.activeColumnContainer.setWidth(this.getWidth()),this.addEvent(new Vk(this.getId(),t))}setResizeWidthWithEvent(t){this.resizeWidthEnabled=t,this.activeColumnContainer.setWidth(this.getWidth()),this.addEvent(new jk(this.getId()))}getEnabledColumns(){return this.allColumns.filter(t=>t.isEnabled())}findColumnIndex(t){return this.allColumns.findIndex(i=>i.getId().equals(t))}getMinColumnWidth(){return this.activeColumnContainer.getMinColumnWidth()}},j8=(()=>{class n extends hl{columnFactory;groupFactory;constructor(i,e){super(),this.columnFactory=i,this.groupFactory=e}static services=[GF,u0];create(i){return new Qk(i,this.columnFactory,this.groupFactory)}}return n})(),EF="CompositionAggregate",Kk=class{defineAggregate(){return{aggregateKey:EF,createCommandHandler:Pk,factory:j8,repository:SF}}registerKey(){return EF}registerProviders(t){t.provide($F),t.provide(m0,SF),t.provide(Np),t.provide(GF),t.provide(c0),t.provide(cs),t.provide(jl),t.provide(u0),t.provide(Bp),t.provide(Yu),t.provide(XE),t.provide(qu,qF)}registerCommandHandlers(){return[k8,Mk,Ak,D8,S8,Rk,E8,T8,N8]}registerDomainEventHandler(){return[]}registerMultiDomainEventHandler(){return[M8]}},L8=(()=>{class n extends Xi{sanitizer;element;safeHTML;constructor(i,e){super(e),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(e){return new(e||n)(l($s),l(P))};static \u0275cmp=R({type:n,selectors:[["gui-function-view"]],inputs:{element:"element"},features:[L,he],decls:1,vars:1,consts:[[1,"gui-h-full","gui-flex","gui-items-center",3,"innerHTML"]],template:function(e,r){e&1&&E(0,"div",0),e&2&&w("innerHTML",r.safeHTML,Jc)},encapsulation:2,changeDetection:0})}return n})(),QF=(()=>{class n extends Xi{value;constructor(i){super(i)}getSelectorName(){return"gui-percentage-view"}static \u0275fac=function(e){return new(e||n)(l(P))};static \u0275cmp=R({type:n,selectors:[["gui-percentage-view","value",""]],inputs:{value:"value"},features:[L],attrs:YE,decls:1,vars:1,template:function(e,r){e&1&&T(0),e&2&&Oe(" ",r.value," % ")},encapsulation:2,changeDetection:0})}return n})(),B8=(()=>{class n extends Xi{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(e){return new(e||n)(l(P))};static \u0275cmp=R({type:n,selectors:[["gui-bar-view","value",""]],inputs:{value:"value",showPercentage:"showPercentage"},features:[L,he],attrs:YE,decls:3,vars:3,consts:[[1,"gui-percentage-bar"],[1,"gui-percentage"],[3,"value",4,"ngIf"],[3,"value"]],template:function(e,r){e&1&&(f(0,"div",0),E(1,"div",1),H(2,Rz,1,1,"gui-percentage-view",2),v()),e&2&&(b(),ft("width",r.width,"%"),b(),w("ngIf",r.showPercentage))},dependencies:[Rt,QF],encapsulation:2,changeDetection:0})}return n})(),ZE=(()=>{class n{sanitizer;constructor(i){this.sanitizer=i}transform(i,e){switch(e){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: ${e}`)}}static \u0275fac=function(e){return new(e||n)(l($s,16))};static \u0275pipe=jh({name:"guiSafe",type:n,pure:!0})}return n})(),z8=(()=>{class n extends Xi{value;isHtml=!1;constructor(i,e,r){super(r),i!==null&&this.addClassToHost("gui-bold"),e!==null&&this.addClassToHost("gui-italic")}ngOnChanges(){this.isHtml=this.value.type===Qv.HTML}getSelectorName(){return"gui-text-view"}static \u0275fac=function(e){return new(e||n)(Bi("bold"),Bi("italic"),l(P))};static \u0275cmp=R({type:n,selectors:[["gui-view-text","value",""]],inputs:{value:"value"},features:[L,he],attrs:YE,decls:3,vars:2,consts:[["text",""],[4,"ngIf","ngIfElse"],[3,"innerHTML"]],template:function(e,r){if(e&1&&H(0,Fz,3,4,"ng-container",1)(1,Oz,2,1,"ng-template",null,0,wt),e&2){let o=Si(2);w("ngIf",r.isHtml)("ngIfElse",o)}},dependencies:[Rt,ZE],encapsulation:2,changeDetection:0})}return n})(),H8=(()=>{class n extends Xi{sanitizer;element;safeHTML;constructor(i,e){super(e),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(e){return new(e||n)(l($s),l(P))};static \u0275cmp=R({type:n,selectors:[["gui-html-view"]],inputs:{element:"element"},features:[L,he],decls:1,vars:1,consts:[[1,"gui-h-full","gui-flex","gui-items-center",3,"innerHTML"]],template:function(e,r){e&1&&E(0,"div",0),e&2&&w("innerHTML",r.safeHTML,Jc)},encapsulation:2,changeDetection:0})}return n})(),U8=(()=>{class n{textTemplate;numberTemplate;chipTemplate;linkTemplate;imageTemplate;checkboxTemplate;boldTemplate;italicTemplate;customTemplate;functionTemplate;htmlTemplate;dateTemplate;barTemplate;percentageBarTemplate;percentageTemplate;getTemplate(i){switch(i){case pe.TEXT:return this.textTemplate;case pe.NUMBER:return this.numberTemplate;case pe.CHIP:return this.chipTemplate;case pe.LINK:return this.linkTemplate;case pe.IMAGE:return this.imageTemplate;case pe.CHECKBOX:return this.checkboxTemplate;case pe.BOLD:return this.boldTemplate;case pe.ITALIC:return this.italicTemplate;case pe.CUSTOM:return this.customTemplate;case pe.FUNCTION:return this.functionTemplate;case pe.HTML:return this.htmlTemplate;case pe.DATE:return this.dateTemplate;case pe.BAR:return this.barTemplate;case pe.PERCENTAGE_BAR:return this.percentageBarTemplate;case pe.PERCENTAGE:return this.percentageTemplate;default:return this.textTemplate}}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=R({type:n,selectors:[["ng-component"]],viewQuery:function(e,r){if(e&1&&(Z(Pz,7,tt),Z(RF,7,tt),Z(Nz,7,tt),Z(Vz,7,tt),Z(jz,7,tt),Z(FF,7,tt),Z(Lz,7,tt),Z(Bz,7,tt),Z(zz,7,tt),Z(Hz,7,tt),Z(Uz,7,tt),Z(OF,7,tt),Z(Wz,7,tt),Z(Gz,7,tt),Z($z,7,tt)),e&2){let o;G(o=$())&&(r.textTemplate=o.first),G(o=$())&&(r.numberTemplate=o.first),G(o=$())&&(r.chipTemplate=o.first),G(o=$())&&(r.linkTemplate=o.first),G(o=$())&&(r.imageTemplate=o.first),G(o=$())&&(r.checkboxTemplate=o.first),G(o=$())&&(r.boldTemplate=o.first),G(o=$())&&(r.italicTemplate=o.first),G(o=$())&&(r.customTemplate=o.first),G(o=$())&&(r.functionTemplate=o.first),G(o=$())&&(r.htmlTemplate=o.first),G(o=$())&&(r.dateTemplate=o.first),G(o=$())&&(r.barTemplate=o.first),G(o=$())&&(r.percentageBarTemplate=o.first),G(o=$())&&(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(e,r){e&1&&H(0,Yz,1,1,"ng-template",null,0,wt)(2,qz,2,1,"ng-template",null,1,wt)(4,Qz,2,1,"ng-template",null,2,wt)(6,Kz,2,2,"ng-template",null,3,wt)(8,Xz,1,1,"ng-template",null,4,wt)(10,Zz,2,2,"ng-template",null,5,wt)(12,Jz,1,1,"ng-template",null,6,wt)(14,eH,1,1,"ng-template",null,7,wt)(16,tH,1,1,"ng-template",null,8,wt)(18,iH,1,1,"ng-template",null,9,wt)(20,nH,1,1,"ng-template",null,10,wt)(22,rH,3,4,"ng-template",null,11,wt)(24,oH,1,2,"ng-template",null,12,wt)(26,aH,1,2,"ng-template",null,13,wt)(28,sH,1,1,"ng-template",null,14,wt)},dependencies:[F1,gc,ns,L8,B8,QF,z8,H8,Us],encapsulation:2})}return n})(),y0=class{templatesComponentDefinition;componentFactoryResolver;templates=new Map;templatesComponent=null;constructor(t,i){this.templatesComponentDefinition=t,this.componentFactoryResolver=i,this.createTemplatesComponent()}getTemplates(){return this.templates}destroy(){this.templatesComponent&&(this.templatesComponent.destroy(),this.templatesComponent=null)}createTemplatesComponent(){let t=this.componentFactoryResolver.resolveComponentFactory(this.templatesComponentDefinition),i=Pe.create({providers:[]});this.templatesComponent=t.create(i),this.generateMap()}generateMap(){this.generateMapKeys().forEach(t=>{this.findAndSetTemplate(t)})}findAndSetTemplate(t){let i=this.templatesComponent.instance.getTemplate(t);this.templates.set(t,i)}},w0=(()=>{class n extends y0{constructor(i){super(U8,i)}static services=[Bt];generateMapKeys(){return Object.keys(pe).map(i=>pe[i])}static \u0275fac=function(e){return new(e||n)(k(Bt))};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),JE=(()=>{class n{columnTemplateFactory;constructor(i){this.columnTemplateFactory=i}static services=[w0];findTemplate(i){return this.columnTemplateFactory.getTemplates().get(i)}static \u0275fac=function(e){return new(e||n)(k(w0))};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),Qu=function(n){return n[n.SUBMIT=0]="SUBMIT",n[n.BLUR=1]="BLUR",n[n.CANCEL=2]="CANCEL",n}(Qu||{}),eT=(()=>{class n extends hi{value;valueChanges;status;focus;parent;ENTER_KEY_CODE=13;ESC_KEY_CODE=27;constructor(i,e){super(i,e)}submit(){this.emitStatus(Qu.SUBMIT)}cancel(){this.emitStatus(Qu.CANCEL)}emitStatus(i){this.status&&this.status.emit(i)}static \u0275fac=function(e){return new(e||n)(l(ce),l(P))};static \u0275dir=J({type:n,inputs:{value:"value",valueChanges:"valueChanges",status:"status",focus:"focus",parent:"parent"},features:[L]})}return n})(),KF=(()=>{class n extends eT{formBuilder;inputRef;filterForm;filterFieldName="phrase";constructor(i,e,r){super(i,e),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),np(i,"blur").pipe(this.takeUntil()).subscribe(()=>{this.unsubscribe(),this.submit()});let e=np(i,"keyup");e.pipe(ut(r=>r.keyCode===this.ENTER_KEY_CODE),this.takeUntil()).subscribe(()=>{this.unsubscribe(),this.submit()}),e.pipe(ut(r=>r.keyCode===this.ESC_KEY_CODE),this.takeUntil()).subscribe(()=>{this.unsubscribe(),this.cancel()})}focusField(i){this.focus&&i.focus()}observeChanges(){hc(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(e){return new(e||n)(l(ce),l(P),l(qa))};static \u0275dir=J({type:n,viewQuery:function(e,r){if(e&1&&Z(cH,7),e&2){let o;G(o=$())&&(r.inputRef=o.first)}},features:[L,he]})}return n})(),W8=(()=>{class n extends KF{constructor(i,e,r){super(i,e,r)}focusField(i){this.focus&&(i.focus(),i.setSelectionRange(0,i.value.length))}getSelectorName(){return"gui-string-edit"}static \u0275fac=function(e){return new(e||n)(l(ce),l(P),l(qa))};static \u0275cmp=R({type:n,selectors:[["gui-string-edit"]],features:[L],decls:3,vars:2,consts:[["input",""],[3,"formGroup"],["type","type",1,"gui-input",3,"formControlName"]],template:function(e,r){e&1&&(f(0,"form",1),E(1,"input",2,0),v()),e&2&&(w("formGroup",r.filterForm),b(),w("formControlName",r.filterFieldName))},dependencies:[sa,li,wi,Qr,Ai,To],encapsulation:2,changeDetection:0})}return n})(),G8=(()=>{class n extends KF{constructor(i,e,r){super(i,e,r)}getSelectorName(){return"gui-number-edit"}static \u0275fac=function(e){return new(e||n)(l(ce),l(P),l(qa))};static \u0275cmp=R({type:n,selectors:[["gui-number-edit"]],features:[L],decls:3,vars:2,consts:[["input",""],[3,"formGroup"],["type","number",1,"gui-input",3,"formControlName"]],template:function(e,r){e&1&&(f(0,"form",1),E(1,"input",2,0),v()),e&2&&(w("formGroup",r.filterForm),b(),w("formControlName",r.filterFieldName))},dependencies:[sa,li,Gm,wi,Qr,Ai,To],encapsulation:2,changeDetection:0})}return n})(),$8=(()=>{class n extends eT{changeDetectorRef;checkboxRef;filterFieldName="booleanEdit";constructor(i,e){super(i,e),this.changeDetectorRef=i}toggle(i){this.valueChanges.emit(i),this.submit()}getSelectorName(){return"gui-boolean-edit"}static \u0275fac=function(e){return new(e||n)(l(ce),l(P))};static \u0275cmp=R({type:n,selectors:[["gui-boolean-edit"]],viewQuery:function(e,r){if(e&1&&Z(FF,7,P),e&2){let o;G(o=$())&&(r.checkboxRef=o.first)}},features:[L],decls:3,vars:2,consts:[["checkbox",""],[1,"gui-cell-boolean"],[3,"changed","checked","name"]],template:function(e,r){if(e&1){let o=oe();f(0,"span",1)(1,"gui-checkbox",2,0),A("changed",function(c){return V(o),j(r.toggle(c))}),v()()}e&2&&(b(),w("checked",r.value)("name",r.filterFieldName))},dependencies:[gc],encapsulation:2,changeDetection:0})}return n})(),Y8=(()=>{class n extends eT{changeDetectorRef;datePickerRef;filterFieldName="dateEdit";opened=!1;localStreamCloser=new Bv;constructor(i,e){super(i,e),this.changeDetectorRef=i}ngAfterViewInit(){let i=this.datePickerRef.nativeElement.querySelector(".gui-date-picker-input"),e=np(i,"keyup");e.pipe(ut(r=>r.keyCode===this.ENTER_KEY_CODE),this.localStreamCloser.takeUntil()).subscribe(()=>{this.localStreamCloser.unsubscribe(),this.submit()}),e.pipe(ut(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(e){return new(e||n)(l(ce),l(P))};static \u0275cmp=R({type:n,selectors:[["gui-date-edit"]],viewQuery:function(e,r){if(e&1&&Z(lH,7,P),e&2){let o;G(o=$())&&(r.datePickerRef=o.first)}},features:[L],decls:2,vars:5,consts:[["datepicker",""],[3,"dialogOpened","dateSelected","selectDate","name","openDialog","onlyDialog","parentElement"]],template:function(e,r){if(e&1){let o=oe();f(0,"gui-date-picker",1,0),A("dialogOpened",function(c){return V(o),j(r.dialogOpened(c))})("dateSelected",function(c){return V(o),j(r.toggle(c))}),v()}e&2&&w("selectDate",r.value)("name",r.filterFieldName)("openDialog",!0)("onlyDialog",!1)("parentElement",r.parent)},dependencies:[fF],encapsulation:2,changeDetection:0})}return n})(),q8=(()=>{class n{stringTemplate;numberTemplate;booleanTemplate;dateTemplate;emptyTemplate;getTemplate(i){switch(i){case Me.STRING:return this.stringTemplate;case Me.NUMBER:return this.numberTemplate;case Me.BOOLEAN:return this.booleanTemplate;case Me.DATE:return this.dateTemplate;default:return this.emptyTemplate}}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=R({type:n,selectors:[["ng-component"]],viewQuery:function(e,r){if(e&1&&(Z(dH,7,tt),Z(RF,7,tt),Z(uH,7,tt),Z(OF,7,tt),Z(hH,7,tt)),e&2){let o;G(o=$())&&(r.stringTemplate=o.first),G(o=$())&&(r.numberTemplate=o.first),G(o=$())&&(r.booleanTemplate=o.first),G(o=$())&&(r.dateTemplate=o.first),G(o=$())&&(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(e,r){e&1&&H(0,mH,1,4,"ng-template",null,0,wt)(2,pH,1,4,"ng-template",null,1,wt)(4,gH,1,4,"ng-template",null,2,wt)(6,fH,1,5,"ng-template",null,3,wt)(8,bH,0,0,"ng-template",null,4,wt)},dependencies:[W8,G8,$8,Y8],encapsulation:2})}return n})(),x0=(()=>{class n extends y0{constructor(i){super(q8,i)}static services=[Bt];generateMapKeys(){return Object.keys(Me).map(i=>Me[i])}static \u0275fac=function(e){return new(e||n)(k(Bt))};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),tT=(()=>{class n{editTemplateFactory;constructor(i){this.editTemplateFactory=i}static services=[x0];findTemplate(i){return this.editTemplateFactory.getTemplates().get(i)}static \u0275fac=function(e){return new(e||n)(k(x0))};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),Xk=class{groups;showGroups;constructor(t,i){this.groups=t,this.showGroups=i}getGroups(){return this.groups}isVisible(){return this.showGroups}},Hp=class n extends Mt{static default=new Xk([],!1);constructor(){super(n.default)}},Q8=(()=>{class n extends no{compositionDispatcher;compositionGroupRepository;columnHighlightArchive;constructor(i,e,r){super(),this.compositionDispatcher=i,this.compositionGroupRepository=e,this.columnHighlightArchive=r}static services=[Np,Hp,Bp];create(i){this.compositionDispatcher.create(i)}setColumns(i,e){this.compositionDispatcher.setColumns(e,i)}setGroups(i,e){this.compositionDispatcher.setGroups(e,i)}setWidth(i,e){this.compositionDispatcher.setWidth(e,i)}setContainerWidth(i,e){this.compositionDispatcher.setContainerWidth(e,i)}setResizeWidth(i,e){this.compositionDispatcher.setResizeWidth(e,i)}enableColumn(i,e){this.compositionDispatcher.setColumnEnabled(e,this.toColumnId(i),!0)}disableColumn(i,e){this.compositionDispatcher.setColumnEnabled(e,this.toColumnId(i),!1)}moveLeft(i,e){this.compositionDispatcher.moveLeft(e,this.toColumnId(i))}moveRight(i,e){this.compositionDispatcher.moveRight(e,this.toColumnId(i))}highlightColumn(i,e){this.columnHighlightArchive.toggle(e,new $u(i.getId()))}toColumnId(i){return new $u(i.getId())}}return n})(),K8=(()=>{class n extends tr{compositionRepository;compositionGroupArchive;columnHighlightArchive;constructor(i,e,r){super(),this.compositionRepository=i,this.compositionGroupArchive=e,this.columnHighlightArchive=r}static services=[qu,Hp,Bp];onWidth(i){return this.compositionRepository.on(i).pipe(me(e=>e.getWidth()))}onContainerWidth(i){return this.compositionRepository.on(i).pipe(me(e=>e.getContainerWidth()))}onWidthForEachColumn(i){return this.compositionRepository.on(i).pipe(me(e=>e.getAllColumns().map(r=>r.width)))}onHeaderColumns(i){return this.compositionRepository.on(i).pipe(me(e=>e.getActiveHeaderColumns()))}onAllColumns(i){return this.compositionRepository.on(i).pipe(me(e=>e.getHeaderColumns()))}onSortOrder(i,e){return this.compositionRepository.on(e).pipe(me(r=>r.getActiveHeaderColumns()),me(r=>r.filter(o=>o.getFieldId().equals(i))),ut(r=>r.length>0),me(r=>r[0].getSortStatus()))}onTemplateColumns(i){return this.compositionRepository.on(i).pipe(me(e=>e.getTemplateColumns()))}onResizeWidth(i){return this.compositionRepository.on(i).pipe(me(e=>e.isResizeWidthEnabled()))}onGroups(i){return this.compositionGroupArchive.on(i)}onHighlightedColumn(i,e){return this.columnHighlightArchive.on(e).pipe(me(r=>r.isHighlighted(i)))}findColumnNames(i){let e=[];return this.compositionRepository.find(i).ifPresent(r=>{e=r.getAllColumns().map(o=>o.getName())}),e}}return n})(),Zk=class extends kc{constructor(){super()}onColumnsChanged(t){return this.onEvent(t,Uu)}onContainerWidthChanged(t){return this.onEvent(t,Wu).pipe(me(i=>i.getPayload()),ut(i=>!!i))}},Jk=class extends Ic{configure(t){if(t!=null&&Array.isArray(t)&&t.length===0)return[];let i=t[0];return Object.keys(i).map((e,r)=>this.toColumnConfig(e,i))}toColumnConfig(t,i){return{field:this.getField(t),header:this.getHeader(t),type:this.getType(t,i)}}getField(t){return t}getHeader(t){return t[0].toUpperCase()+t.slice(1)}getType(t,i){return typeof i[t]=="string"?Me.STRING:typeof i[t]=="number"?Me.NUMBER:i[t]instanceof Date?Me.DATE:typeof i[t]=="boolean"?Me.BOOLEAN:Me.UNKNOWN}},eD=class{registerProviders(t){t.provide(XE),t.provide(qu,qF),t.provide(b0),t.provide(JE),t.provide(w0),t.provide(x0),t.provide(tT),t.provide(Yu),t.provide(YF),t.provide(Hp),t.provide(no,Q8),t.provide(tr,K8),t.provide(kc,Zk),t.provide(Ic,Jk)}};function X8(){new _n(new eD,new Kk).init()}var _g=(()=>{class n{compositionWarehouse;viewTemplateRepository;editTemplateRepository;constructor(i,e,r){this.compositionWarehouse=i,this.viewTemplateRepository=e,this.editTemplateRepository=r}onHeaderCols(i){return this.compositionWarehouse.onHeaderColumns(i).pipe(me(e=>e.map(r=>{let o;typeof r.getHeader()=="function"?o=this.findViewTemplate(pe.FUNCTION):o=this.findViewTemplate(pe.HTML);let a=this.findEditTemplate(r.getDataType());return new qv(o,a,r)})))}onAll(i){return this.compositionWarehouse.onAllColumns(i).pipe(me(e=>e.map(r=>{let o;typeof r.getHeader()=="function"?o=this.findViewTemplate(pe.FUNCTION):o=this.findViewTemplate(pe.HTML);let a=this.findEditTemplate(r.getDataType());return new qv(o,a,r)})))}onTemplateCols(i){return this.compositionWarehouse.onTemplateColumns(i).pipe(me(e=>e.map(r=>{let o;r.getCellView()===pe.NG_TEMPLATE?o=r.getColumnConfig().templateRef:o=this.findViewTemplate(r.getCellView());let a=this.findEditTemplate(r.getDataType());return new Ek(o,a,r)})))}findViewTemplate(i){return i===pe.FUNCTION?this.viewTemplateRepository.findTemplate(pe.FUNCTION):this.viewTemplateRepository.findTemplate(i)}findEditTemplate(i){return this.editTemplateRepository.findTemplate(i)}static \u0275fac=function(e){return new(e||n)(k(tr),k(JE),k(tT))};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),Gl=class extends ca{constructor(){super()}},Z8=(()=>{class n extends hi{structureSummariesEventRepository;translationService;sourceWarehouse;enabled;state=F(Ci);compositionId=F(xi);structureId=F(Be);formationWarehouse=F(er);compositionTemplateWarehouse=F(_g);headerColumns$=this.compositionTemplateWarehouse.onHeaderCols(this.compositionId);state$=this.state.select();checkboxSelection$=this.selectCheckboxSelection();constructor(i,e,r,o,a){super(i,e),this.structureSummariesEventRepository=r,this.translationService=o,this.sourceWarehouse=a,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(me(i=>i===cn.CHECKBOX))}selectSourceEmpty(){return this.sourceWarehouse.onItemsSize(this.structureId).pipe(me(i=>i===0))}selectSummariesTranslations(){return this.translationService.onTranslation().pipe(me(i=>new Sk(i.summariesDistinctValuesTooltip,i.summariesAverageTooltip,i.summariesMinTooltip,i.summariesMaxTooltip,i.summariesMedTooltip,i.summariesCountTooltip)))}selectSummaries(){return this.structureSummariesEventRepository.onSummariesChanged(this.structureId.toReadModelRootId()).pipe(me(i=>i.getSummaries()))}static \u0275fac=function(e){return new(e||n)(l(ce),l(P),l(Gl),l(Oo),l(Dr))};static \u0275cmp=R({type:n,selectors:[["div","gui-structure-summaries-panel","","enabled",""]],inputs:{enabled:"enabled"},features:[Ae([Ci]),L],attrs:vH,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(e,r){e&1&&H(0,RH,2,1,"ng-container",0),e&2&&w("guiLet",r.state$)},dependencies:[Mi,Rt,kv,Rn,Sr,oh],encapsulation:2,changeDetection:0})}return n})(),J8=(()=>{class n extends zF{constructor(i,e){super(i,e)}getSelectorName(){return"gui-info-dialog"}static \u0275fac=function(e){return new(e||n)(l(P),l(ce))};static \u0275cmp=R({type:n,selectors:[["div","gui-info-dialog",""]],features:[L],attrs:FH,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(e,r){e&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(),E(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()()(),E(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})(),XF=(()=>{class n extends hi{compositionId;compositionCommandInvoker;compositionTemplateWarehouse;state=F(Ci);state$=this.state.select();constructor(i,e,r,o,a){super(i,e),this.compositionId=r,this.compositionCommandInvoker=o,this.compositionTemplateWarehouse=a,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(me(i=>i.map(e=>+e.isEnabled()).reduce((e,r)=>e+r)))}static \u0275fac=function(e){return new(e||n)(l(ce),l(P),l(xi),l(no),l(_g))};static \u0275cmp=R({type:n,selectors:[["div","gui-structure-column-manager",""]],features:[Ae([Ci]),L],attrs:OH,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(e,r){e&1&&H(0,VH,2,1,"ol",0),e&2&&w("guiLet",r.state$)},dependencies:[Mi,tl,gc,Rn],encapsulation:2,changeDetection:0})}return n})(),eW=(()=>{class n extends hi{constructor(i,e){super(i,e)}getSelectorName(){return"gui-structure-dialog-column-manager"}static \u0275fac=function(e){return new(e||n)(l(ce),l(P))};static \u0275cmp=R({type:n,selectors:[["div","gui-structure-dialog-column-manager",""]],features:[L],attrs:jH,decls:4,vars:3,consts:[[1,"gui-dialog-title"],["gui-structure-column-manager","",1,"-gui-mx-10"]],template:function(e,r){e&1&&(f(0,"div",0),T(1),Re(2,"guiTranslate"),v(),E(3,"div",1)),e&2&&(b(),Ee(Le(2,1,"columnManagerModalTitle")))},dependencies:[XF,Sr],encapsulation:2,changeDetection:0})}return n})(),yg=(()=>{class n{convertTheme(i){switch(i){case Te.FABRIC:return bt.FABRIC;case Te.MATERIAL:return bt.MATERIAL;case Te.GENERIC:return bt.GENERIC;case Te.LIGHT:return bt.LIGHT;case Te.DARK:return bt.DARK;default:return bt.FABRIC}}static \u0275fac=function(e){return new(e||n)};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),ZF=(()=>{class n extends sn{injector;schemaWarehouse;structureThemeConverter;fabricDialogService;constructor(i,e,r,o){super(),this.injector=i,this.schemaWarehouse=e,this.structureThemeConverter=r,this.fabricDialogService=o}open(i,e,r){r||(r=this.injector);let o=Pe.create({parent:r,providers:[{provide:xi,useValue:i}]});this.schemaWarehouse.findTheme(e).ifPresent(a=>{this.fabricDialogService.open({injector:o,component:eW,theme:this.structureThemeConverter.convertTheme(a)})})}static \u0275fac=function(e){return new(e||n)(k(Pe),k(kr),k(yg),k(Sl))};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),tW=(()=>{class n extends hi{structureId;schemaPublisher;schemaWarehouse=F(kr);schemaReadModelRootId=F(Ni);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,e,r,o){super(i,e),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(ui).map(i=>ui[i]).filter(i=>!Number.isInteger(i)).map(i=>({value:i,name:i}))}createThemeOptions(){return Object.keys(Te).map(i=>Te[i]).filter(i=>!Number.isInteger(i)).map(i=>({value:i,name:i}))}selectRowColoring(){return this.schemaWarehouse.onRowColoring(this.schemaReadModelRootId).pipe(me(i=>({value:ui[i],name:ui[i]})))}selectTheme(){return this.schemaWarehouse.onTheme(this.schemaReadModelRootId).pipe(me(i=>({value:Te[i],name:Te[i]})))}toTheme(i){switch(i.toLowerCase()){case"fabric":return Te.FABRIC;case"material":return Te.MATERIAL;case"generic":return Te.GENERIC;case"light":return Te.LIGHT;case"dark":return Te.DARK;default:return Te.FABRIC}}toRowColoring(i){switch(i.toLowerCase()){case"none":return Oi.NONE;case"odd":return Oi.ODD;case"even":return Oi.EVEN;default:return Oi.NONE}}static \u0275fac=function(e){return new(e||n)(l(ce),l(P),l(Be),l(ir))};static \u0275cmp=R({type:n,selectors:[["div","gui-structure-schema-manager",""]],features:[L],attrs:LH,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(e,r){e&1&&(f(0,"div",0)(1,"div",1),T(2),Re(3,"guiTranslate"),v(),f(4,"div",2)(5,"span",3),T(6),Re(7,"guiTranslate"),v(),f(8,"gui-select",4),Re(9,"guiPush"),A("optionChanged",function(a){return r.toggleTheme(a)}),v()(),f(10,"div",2)(11,"span",3),T(12),Re(13,"guiTranslate"),v(),f(14,"gui-select",4),Re(15,"guiPush"),A("optionChanged",function(a){return r.toggleRowColoring(a)}),v()(),f(16,"ol",5),H(17,BH,4,4,"li",6)(18,zH,4,4,"li",6),v()()),e&2&&(b(2),Ee(Le(3,11,"themeManagerModalTitle")),b(4),Ee(Le(7,13,"themeManagerModalTheme")),b(2),w("options",r.themes)("selected",Le(9,15,r.theme$))("width",180),b(4),Oe(" ",Le(13,17,"themeManagerModalRowColoring")," "),b(2),w("options",r.coloring)("selected",Le(15,19,r.rowColoring$))("width",180),b(3),w("guiLet",r.verticalGrid$),b(),w("guiLet",r.horizontalGrid$))},dependencies:[gc,Dv,Rn,Sr,oh],encapsulation:2,changeDetection:0})}return n})(),iW=(()=>{class n extends Xi{constructor(i){super(i)}getSelectorName(){return"gui-schema-manager-dialog"}static \u0275fac=function(e){return new(e||n)(l(P))};static \u0275cmp=R({type:n,selectors:[["div","gui-schema-manager-dialog",""]],features:[L],attrs:HH,decls:1,vars:0,consts:[["gui-structure-schema-manager",""]],template:function(e,r){e&1&&E(0,"div",0)},dependencies:[tW],encapsulation:2,changeDetection:0})}return n})(),JF=(()=>{class n extends sn{injector;fabricDialogService;constructor(i,e){super(),this.injector=i,this.fabricDialogService=e}open(i,e){e||(e=this.injector);let r=Pe.create({providers:[{provide:Ni,useValue:i}],parent:e});this.fabricDialogService.open({injector:r,component:iW})}static \u0275fac=function(e){return new(e||n)(k(Pe),k(Sl))};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),nW=(()=>{class n extends rh{constructor(i,e){super(i,e)}getSelectorName(){return"gui-structure-column-manager-icon"}static \u0275fac=function(e){return new(e||n)(l(P),l(ce))};static \u0275cmp=R({type:n,selectors:[["div","gui-structure-column-manager-icon",""]],features:[L],attrs:UH,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(e,r){e&1&&(It(),f(0,"svg",0),E(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})(),rW=(()=>{class n extends rh{constructor(i,e){super(i,e)}getSelectorName(){return"gui-structure-schema-manager-icon"}static \u0275fac=function(e){return new(e||n)(l(P),l(ce))};static \u0275cmp=R({type:n,selectors:[["div","gui-structure-schema-manager-icon",""]],features:[L],attrs:WH,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(e,r){e&1&&(It(),f(0,"svg",0)(1,"g",1),E(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})(),oW=(()=>{class n extends hi{structureId=F(Be);searchCommandDispatcher=F(Cr);searchWarehouse=F(ga);phrase$=this.searchWarehouse.onPhrase(this.structureId);constructor(i,e){super(i,e)}clearSearch(){event.stopPropagation(),this.searchCommandDispatcher.search("",this.structureId)}getSelectorName(){return"gui-active-search"}static \u0275fac=function(e){return new(e||n)(l(ce),l(P))};static \u0275cmp=R({type:n,selectors:[["div","gui-active-search",""]],features:[L],attrs:GH,decls:1,vars:1,consts:[[4,"guiLet"],["gui-button","",3,"click","outline","primary"]],template:function(e,r){e&1&&H(0,$H,9,3,"ng-container",0),e&2&&w("guiLet",r.phrase$)},dependencies:[ns,F1,Rn],encapsulation:2,changeDetection:0})}return n})(),aW=(()=>{class n extends hi{filterCommandDispatcher;structureId=F(Be);filterWarehouse=F(ua);activeFilters$=this.filterWarehouse.onActiveFilters(this.structureId);constructor(i,e,r){super(i,e),this.filterCommandDispatcher=r}removeFilter(i){this.filterCommandDispatcher.remove(i.getFilterId(),this.structureId)}getSelectorName(){return"gui-active-filter-list"}static \u0275fac=function(e){return new(e||n)(l(ce),l(P),l(Fo))};static \u0275cmp=R({type:n,selectors:[["div","gui-active-filter-list",""]],features:[L],attrs:YH,decls:2,vars:1,consts:[[4,"guiLet"],["gui-active-search",""],[4,"ngFor","ngForOf"],[3,"click"]],template:function(e,r){e&1&&(H(0,QH,2,1,"ng-container",0),E(1,"div",1)),e&2&&w("guiLet",r.activeFilters$)},dependencies:[Mi,Rn,oW],encapsulation:2,changeDetection:0})}return n})(),sW=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275cmp=R({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(e,r){e&1&&(f(0,"h3"),T(1,"Active filters"),v(),E(2,"div",0),f(3,"div")(4,"button",1),T(5," Cancel "),v(),f(6,"button",2),T(7," Clear All "),v()()),e&2&&(b(4),w("text",!0),b(2),w("outline",!0)("primary",!0))},dependencies:[aW,ns],encapsulation:2})}return n})(),eO=(()=>{class n extends sn{injector;schemaWarehouse;structureThemeConverter;fabricDialogService;constructor(i,e,r,o){super(),this.injector=i,this.schemaWarehouse=e,this.structureThemeConverter=r,this.fabricDialogService=o}open(i,e){let r=Pe.create({parent:this.injector,providers:[{provide:Ni,useValue:i},{provide:Be,useValue:e}]});this.schemaWarehouse.findTheme(i).ifPresent(o=>{this.fabricDialogService.open({injector:r,component:sW,theme:this.structureThemeConverter.convertTheme(o)})})}static \u0275fac=function(e){return new(e||n)(k(Pe),k(kr),k(yg),k(Sl))};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),cW=(()=>{class n{el;structureId;activeFilterService;schemaReadModelRootId;constructor(i,e,r,o){this.el=i,this.structureId=e,this.activeFilterService=r,this.schemaReadModelRootId=o}ngOnInit(){}static \u0275fac=function(e){return new(e||n)(l(P),l(Be),l(eO),l(Ni))};static \u0275dir=J({type:n,selectors:[["","gui-active-filter-menu-trigger",""]]})}return n})(),lW=(()=>{class n extends rh{constructor(i,e){super(i,e)}getSelectorName(){return"gui-structure-info-icon"}static \u0275fac=function(e){return new(e||n)(l(P),l(ce))};static \u0275cmp=R({type:n,selectors:[["div","gui-structure-info-icon",""]],features:[L],attrs:KH,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(e,r){e&1&&(It(),f(0,"svg",0),E(1,"path",1)(2,"circle",2),v())},encapsulation:2,changeDetection:0})}return n})(),dW=(()=>{class n{transform(i){return i.toString().replace(/\B(?=(\d{3})+(?!\d))/g," ")}static \u0275fac=function(e){return new(e||n)};static \u0275pipe=jh({name:"numberFormatter",type:n,pure:!0})}return n})(),uW=(()=>{class n extends hi{injector;dialog;compositionId;schemaReadModelRootId;menuColumnManagerService;translationService;schemaManagerService;structureInfoPanelArchive;state=F(Ci);sourceWarehouse=F(Dr);structureId=F(Be);state$=this.state.select();totalItemsSize$=this.sourceWarehouse.onOriginSize(this.structureId);infoModal=J8;constructor(i,e,r,o,a,c,m,x,I,O){super(i,e),this.injector=r,this.dialog=o,this.compositionId=a,this.schemaReadModelRootId=c,this.menuColumnManagerService=m,this.translationService=x,this.schemaManagerService=I,this.structureInfoPanelArchive=O,this.state.connect("infoPanelConfig",this.structureInfoPanelArchive.on()),this.state.connect("preparedItemsSize",this.sourceWarehouse.onPreparedItems(this.structureId).pipe(me(B=>B.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(e){return new(e||n)(l(ce),l(P),l(Pe),l(Sl),l(xi),l(Ni),l(ZF),l(Oo),l(JF),l(Cc))};static \u0275cmp=R({type:n,selectors:[["div","gui-structure-info-panel",""]],features:[Ae([Ci]),L],attrs:XH,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(e,r){e&1&&H(0,a6,7,4,"ng-container",0),e&2&&w("guiLet",r.state$)},dependencies:[Rt,kv,nW,rW,cW,Rn,lW,dW,Sr],encapsulation:2,changeDetection:0})}return n})(),C0=(()=>{class n{destroy$=new Xn(1);register(i,e,r){return i.pipe(Zn(this.destroy$)).subscribe(o=>e(o),o=>console.log(o),r?()=>r():()=>{})}destroy(){this.destroy$.next(),this.destroy$.complete()}ngOnDestroy(){this.destroy()}static \u0275fac=function(e){return new(e||n)};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),hW=(()=>{class n extends rh{constructor(i,e){super(i,e)}getSelectorName(){return"gui-search-icon"}static \u0275fac=function(e){return new(e||n)(l(P),l(ce))};static \u0275cmp=R({type:n,selectors:[["div","gui-search-icon",""]],features:[L],attrs:s6,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(e,r){e&1&&(It(),f(0,"svg",0),E(1,"line",1)(2,"circle",2),v())},encapsulation:2,changeDetection:0})}return n})(),mW=(()=>{class n extends hi{formBuilder;effects;searchCommandDispatcher;static FORM_SEARCH_NAME="searchPhrase";formRef;structureId=F(Be);searchWarehouse=F(ga);searchForm;placeholder$=this.searchWarehouse.onPlaceholder(this.structureId);searchingEnabled$=this.searchWarehouse.onSearchEnabled(this.structureId);searchInputSubscription;constructor(i,e,r,o,a){super(e,r),this.formBuilder=i,this.effects=o,this.searchCommandDispatcher=a;let c={};c[n.FORM_SEARCH_NAME]="",this.searchForm=this.formBuilder.group(c),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 hc(i.pipe(Ns(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 e={};e[n.FORM_SEARCH_NAME]=i,i!==this.searchForm.get([n.FORM_SEARCH_NAME]).value&&(this.unregisterObserveChangesEffect(),this.searchForm.setValue(e),this.registerOnChangesEffect())})}unregisterObserveChangesEffect(){this.searchInputSubscription.unsubscribe()}static \u0275fac=function(e){return new(e||n)(l(qa),l(ce),l(P),l(C0),l(Cr))};static \u0275cmp=R({type:n,selectors:[["div","gui-search-bar",""]],viewQuery:function(e,r){if(e&1&&Z(c6,5,P),e&2){let o;G(o=$())&&(r.formRef=o.first)}},features:[Ae([C0]),L],attrs:l6,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(e,r){e&1&&H(0,u6,7,5,"ng-container",1),e&2&&w("guiIf",r.searchingEnabled$)},dependencies:[Rt,sa,li,wi,Qr,Ai,To,KE,hW,oh],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})(),pW=(()=>{class n extends Xi{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(e){return new(e||n)(l(P))};static \u0275cmp=R({type:n,selectors:[["div","gui-structure-top-panel",""]],features:[L],attrs:h6,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(e,r){e&1&&E(0,"div",0)},dependencies:[mW],encapsulation:2,changeDetection:0})}return n})(),gW=(()=>{class n extends Xi{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(e){return new(e||n)(l(P))};static \u0275cmp=R({type:n,selectors:[["div","gui-empty-source","","items",""]],inputs:{items:"items"},features:[L,he],attrs:m6,decls:1,vars:1,consts:[[4,"ngIf"]],template:function(e,r){e&1&&H(0,p6,3,3,"ng-container",0),e&2&&w("ngIf",r.items.length===0)},dependencies:[Rt,Sr],encapsulation:2,changeDetection:0})}return n})(),ls=class{constructor(){}},fW=(()=>{class n extends Xi{constructor(i){super(i)}getSelectorName(){return"gui-structure-menu-column-manager"}static \u0275fac=function(e){return new(e||n)(l(P))};static \u0275cmp=R({type:n,selectors:[["div","gui-structure-menu-column-manager",""]],features:[L],attrs:g6,decls:1,vars:0,consts:[["gui-structure-column-manager",""]],template:function(e,r){e&1&&E(0,"div",0)},dependencies:[XF],encapsulation:2,changeDetection:0})}return n})(),bW=(()=>{class n extends hi{structureId;filterWarehouse;filterCommandInvoker;set fieldId(i){this.state.setValue({fieldId:i})}state=F(Ci);state$=this.state.select();constructor(i,e,r,o,a){super(i,e),this.structureId=r,this.filterWarehouse=o,this.filterCommandInvoker=a,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 e=this.state.getValue("fieldId");i.isEnabled()?this.filterCommandInvoker.unselectUniqueFilter(e,i.getId(),this.structureId):this.filterCommandInvoker.selectUniqueFilter(e,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(yr(i=>this.filterWarehouse.onUniqueValues(this.structureId).pipe(me(e=>e.getValues(i)))))}isSelectAllChecked(){return this.state.select("fieldId").pipe(yr(i=>this.filterWarehouse.onUniqueValues(this.structureId).pipe(me(e=>e.isSelectAllChecked(i)))))}isSelectAllIndeterminate(){return this.state.select("fieldId").pipe(yr(i=>this.filterWarehouse.onUniqueValues(this.structureId).pipe(me(e=>e.isIndeterminate(i)))))}static \u0275fac=function(e){return new(e||n)(l(ce),l(P),l(Be),l(ua),l(Fo))};static \u0275cmp=R({type:n,selectors:[["div","gui-unique-value-list","","fieldId",""]],inputs:{fieldId:"fieldId"},features:[Ae([Ci]),L],attrs:f6,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(e,r){e&1&&H(0,v6,8,5,"ng-container",0),e&2&&w("guiLet",r.state$)},dependencies:[Mi,ns,gc,Rn],styles:[`.gui-unique-value-list-container{max-height:300px}
`],encapsulation:2,changeDetection:0})}return n})(),_c=function(n){return n[n.UP=0]="UP",n[n.DOWN=1]="DOWN",n[n.LEFT=2]="LEFT",n[n.RIGHT=3]="RIGHT",n}(_c||{}),iT=(()=>{class n extends rh{position=_c.UP;sort;styleModifier;constructor(i,e){super(i,e),this.sort&&this.addClassToHost("gui-structure-column-menu-sort-icon"),this.styleModifier=new _y(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 _c.UP:return 0;case _c.DOWN:return 180;case _c.LEFT:return-90;case _c.RIGHT:return 90;default:return 0}}static \u0275fac=function(e){return new(e||n)(l(P),l(ce))};static \u0275cmp=R({type:n,selectors:[["div","gui-structure-arrow-icon",""]],inputs:{position:"position",sort:"sort"},features:[L,he],attrs:_6,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(e,r){e&1&&(It(),f(0,"svg",0),E(1,"line",1)(2,"line",2)(3,"line",3),v())},encapsulation:2,changeDetection:0})}return n})(),vW=(()=>{class n extends hi{changeDetectorRef;compositionId;structureId;sortingCommandDispatcher;compositionReadModelService;set column(i){this.state.setValue({fieldId:i.getFieldId()})}dropdownTextTranslation;state=F(Ci);placement=Il.Right;status=Pi;StructureArrowPosition=_c;sortOrder$=this.state.select("sortOrder");constructor(i,e,r,o,a,c){super(i,e),this.changeDetectorRef=i,this.compositionId=r,this.structureId=o,this.sortingCommandDispatcher=a,this.compositionReadModelService=c,this.state.connect("sortOrder",this.selectSortOrder())}isAscSort(){return this.state.getValue("sortOrder")===Pi.ASC}isDescSort(){return this.state.getValue("sortOrder")===Pi.DESC}isNoneSort(){return this.state.getValue("sortOrder")===Pi.NONE}setSortOrder(i){event.preventDefault(),event.stopPropagation();let e=this.state.getValue("fieldId");this.sortingCommandDispatcher.setSortOrder(e,i,this.compositionId,this.structureId)}getSelectorName(){return"gui-structure-column-config-sort"}selectSortOrder(){return this.state.select("fieldId").pipe(yr(i=>this.compositionReadModelService.onSortOrder(i,this.compositionId)))}static \u0275fac=function(e){return new(e||n)(l(ce),l(P),l(xi),l(Be),l(Ir),l(tr))};static \u0275cmp=R({type:n,selectors:[["div","gui-structure-column-config-sort","","column","","dropdownTextTranslation",""]],inputs:{column:"column",dropdownTextTranslation:"dropdownTextTranslation"},features:[Ae([Ci]),L],attrs:y6,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(e,r){e&1&&H(0,w6,14,22,"gui-dropdown",0),e&2&&w("guiLet",r.sortOrder$)},dependencies:[bF,vF,Rn,iT,Sr],encapsulation:2,changeDetection:0})}return n})(),_W=(()=>{class n extends Xi{column;columnHidden=new Y;constructor(i){super(i)}hideColumn(){this.columnHidden.emit()}getSelectorName(){return"gui-structure-column-config-column-hide"}static \u0275fac=function(e){return new(e||n)(l(P))};static \u0275cmp=R({type:n,selectors:[["div","gui-structure-column-config-column-hide",""]],inputs:{column:"column"},outputs:{columnHidden:"columnHidden"},features:[L],attrs:x6,decls:3,vars:3,consts:[[1,"gui-header-menu-item",3,"click"]],template:function(e,r){e&1&&(f(0,"div",0),A("click",function(){return r.hideColumn()}),T(1),Re(2,"guiTranslate"),v()),e&2&&(b(),Oe(" ",Le(2,1,"headerMenuMainTabHideColumn"),`
`))},dependencies:[Sr],encapsulation:2,changeDetection:0})}return n})(),yW=(()=>{class n extends Xi{column;movedLeft=new Y;movedRight=new Y;StructureArrowPosition=_c;constructor(i){super(i)}moveLeft(){this.movedLeft.emit()}moveRight(){this.movedRight.emit()}getSelectorName(){return"gui-structure-column-config-column-move"}static \u0275fac=function(e){return new(e||n)(l(P))};static \u0275cmp=R({type:n,selectors:[["div","gui-structure-column-config-column-move","","column",""]],inputs:{column:"column"},outputs:{movedLeft:"movedLeft",movedRight:"movedRight"},features:[L],attrs:C6,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(e,r){e&1&&(f(0,"div",0)(1,"div",1),A("click",function(){return r.moveLeft()}),E(2,"div",2),T(3),Re(4,"guiTranslate"),v(),f(5,"div",3),A("click",function(){return r.moveRight()}),T(6),Re(7,"guiTranslate"),E(8,"div",2),v()()),e&2&&(b(2),w("position",r.StructureArrowPosition.LEFT),b(),Oe(" ",Le(4,4,"headerMenuMainTabMoveLeft")," "),b(3),Oe(" ",Le(7,6,"headerMenuMainTabMoveRight")," "),b(2),w("position",r.StructureArrowPosition.RIGHT))},dependencies:[iT,Sr],encapsulation:2,changeDetection:0})}return n})(),wW=(()=>{class n extends hi{translationFacade;structureColumnMenuConfigArchive;compositionId;compositionCommandInvoker;injector;column;headerSortMenu;state=F(Ci);state$=this.state.select();structureColumnConfigService;constructor(i,e,r,o,a,c,m,x){super(i,e),this.translationFacade=r,this.structureColumnMenuConfigArchive=o,this.compositionId=a,this.compositionCommandInvoker=c,this.injector=m,this.column=x,this.structureColumnConfigService=this.injector.get(yy),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(me(i=>i.isEnabled()))}static \u0275fac=function(e){return new(e||n)(l(ce),l(P),l(Oo),l(kp),l(xi),l(no),l(Pe),l("column"))};static \u0275cmp=R({type:n,selectors:[["div","gui-column-config",""]],viewQuery:function(e,r){if(e&1&&Z(I6,5,P),e&2){let o;G(o=$())&&(r.headerSortMenu=o.first)}},features:[Ae([Ci]),L],attrs:k6,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(e,r){e&1&&H(0,A6,2,1,"ng-container",0),e&2&&w("guiLet",r.state$)},dependencies:[Rt,xF,CF,Rn,fW,bW,vW,_W,yW,Sr],encapsulation:2,changeDetection:0})}return n})(),yy=(()=>{class n extends sn{injector;schemaReadModelRootId;schemaWarehouse;structureThemeConverter;inlineDialogService;constructor(i,e,r,o,a){super(),this.injector=i,this.schemaReadModelRootId=e,this.schemaWarehouse=r,this.structureThemeConverter=o,this.inlineDialogService=a}open(i,e){this.close();let r=Pe.create({providers:[{provide:"column",useValue:e}],parent:this.injector});this.schemaWarehouse.onceTheme(this.schemaReadModelRootId).pipe(this.hermesTakeUntil()).subscribe(o=>{this.inlineDialogService.open(i,wW,{injector:r,placement:la.BOTTOM,offset:-34,theme:this.structureThemeConverter.convertTheme(o),customClass:"gui-inline-dialog-header-menu"})})}close(){this.inlineDialogService.close()}static \u0275fac=function(e){return new(e||n)(k(Pe),k(Ni),k(kr),k(yg),k(Nu))};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),xW=(()=>{class n extends BF{formationPublisher;structureId=F(Be);formationWarehouse=F(er);selection$=this.formationWarehouse.onCustomSelections(this.structureId);constructor(i,e){super(i),this.formationPublisher=e}selectCustom(i){this.formationPublisher.selectCustom(i,this.structureId)}getSelectorName(){return"gui-select-custom-modal"}static \u0275fac=function(e){return new(e||n)(l(P),l(ln))};static \u0275cmp=R({type:n,selectors:[["div","gui-select-custom-modal",""]],features:[L],attrs:R6,decls:1,vars:1,consts:[[4,"guiLet"],[3,"click",4,"ngFor","ngForOf"],[3,"click"]],template:function(e,r){e&1&&H(0,O6,2,1,"ul",0),e&2&&w("guiLet",r.selection$)},dependencies:[Mi,Rn],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})(),TF=(()=>{class n extends sn{injector;schemaReadModelRootId;schemaWarehouse;structureThemeConverter;inlineDialogService;constructor(i,e,r,o,a){super(),this.injector=i,this.schemaReadModelRootId=e,this.schemaWarehouse=r,this.structureThemeConverter=o,this.inlineDialogService=a}open(i){this.close(),this.schemaWarehouse.findTheme(this.schemaReadModelRootId).ifPresent(e=>{this.inlineDialogService.open(i,xW,{injector:this.injector,placement:la.BOTTOM,offset:0,theme:this.structureThemeConverter.convertTheme(e),customClass:"gui-inline-dialog-header-menu"})})}close(){this.inlineDialogService.close()}static \u0275fac=function(e){return new(e||n)(k(Pe),k(Ni),k(kr),k(yg),k(Nu))};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),tO=(()=>{class n extends rd{structureId;formationCommandDispatcher;formationWarehouse;state=F(Ci);state$=this.state.select();constructor(i,e,r,o){super(i),this.structureId=e,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,e){i?this.formationCommandDispatcher.unselectAll(this.structureId):e?this.formationCommandDispatcher.unselectAll(this.structureId):this.formationCommandDispatcher.selectAll(this.structureId)}getSelectorName(){return"gui-select-all"}selectModeMulti(){return this.formationWarehouse.onMode(this.structureId).pipe(me(i=>i===to.MULTIPLE))}selectAllChecked(){return this.formationWarehouse.onRowSelectedReadModel(this.structureId).pipe(me(i=>i.isAllSelected()))}selectAllIndeterminate(){return this.formationWarehouse.onRowSelectedReadModel(this.structureId).pipe(me(i=>i.isIndeterminate()))}static \u0275fac=function(e){return new(e||n)(l(P),l(Be),l(ln),l(er))};static \u0275cmp=R({type:n,selectors:[["div","gui-select-all",""]],features:[Ae([Ci]),L],attrs:P6,decls:1,vars:1,consts:[[4,"guiLet"],[3,"checked","gui-tooltip","indeterminate","changed",4,"ngIf"],[3,"changed","checked","gui-tooltip","indeterminate"]],template:function(e,r){e&1&&H(0,V6,2,1,"ng-container",0),e&2&&w("guiLet",r.state$)},dependencies:[Rt,Rn,gc,kv],encapsulation:2,changeDetection:0})}return n})(),CW=(()=>{class n extends rh{constructor(i,e){super(i,e)}getSelectorName(){return"gui-structure-column-menu-icon"}static \u0275fac=function(e){return new(e||n)(l(P),l(ce))};static \u0275cmp=R({type:n,selectors:[["div","gui-structure-menu-icon",""]],features:[L],attrs:j6,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(e,r){e&1&&(It(),f(0,"svg",0),E(1,"line",1)(2,"line",2)(3,"line",3),v())},encapsulation:2,changeDetection:0})}return n})(),IW=(()=>{class n extends hi{structureColumnConfigService;headerDialogContainer;column;structureColumnMenuConfigArchive=F(kp);isEnabled$=this.selectIsEnabled();constructor(i,e,r){super(e,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(me(i=>i.isEnabled()))}static \u0275fac=function(e){return new(e||n)(l(P),l(ce),l(yy))};static \u0275cmp=R({type:n,selectors:[["div","gui-structure-column-config-trigger",""]],viewQuery:function(e,r){if(e&1&&Z(L6,5,P),e&2){let o;G(o=$())&&(r.headerDialogContainer=o.first)}},inputs:{column:"column"},features:[L],attrs:B6,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(e,r){e&1&&H(0,z6,3,1,"div",1),e&2&&w("guiIf",r.isEnabled$)},dependencies:[$t,KE,CW],encapsulation:2,changeDetection:0})}return n})(),kW=(()=>{class n extends hi{elementRef;injector;changeDetectorRef;compositionId;structureId;structureSelectCustomService;formationCommandDispatcher;sortingCommandDispatcher;selectCustomContainer;columns;showSelection=!1;showCustom=!0;constructor(i,e,r,o,a,c,m,x){super(r,i),this.elementRef=i,this.injector=e,this.changeDetectorRef=r,this.compositionId=o,this.structureId=a,this.structureSelectCustomService=c,this.formationCommandDispatcher=m,this.sortingCommandDispatcher=x}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(e){return new(e||n)(l(P),l(Pe),l(ce),l(xi),l(Be),l(TF),l(ln),l(Ir))};static \u0275cmp=R({type:n,selectors:[["div","gui-structure-header-columns","","columns",""]],viewQuery:function(e,r){if(e&1&&Z(H6,5,P),e&2){let o;G(o=$())&&(r.selectCustomContainer=o.first)}},inputs:{columns:"columns",showSelection:"showSelection"},features:[Ae([yy,TF]),L],attrs:U6,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(e,r){e&1&&H(0,G6,2,0,"div",0)(1,q6,6,13,"div",1),e&2&&(w("ngIf",r.showSelection),b(),w("ngForOf",r.columns))},dependencies:[$t,Mi,Rt,tl,tO,IW,iT],encapsulation:2,changeDetection:0})}return n})(),DW=(()=>{class n extends Xi{elementRef;injector;changeDetectorRef;compositionId;structureId;formationCommandDispatcher;sortingCommandDispatcher;groups;showGroups;checkboxSelection=!1;globalSearching=!1;constructor(i,e,r,o,a,c,m){super(i),this.elementRef=i,this.injector=e,this.changeDetectorRef=r,this.compositionId=o,this.structureId=a,this.formationCommandDispatcher=c,this.sortingCommandDispatcher=m}toggleSort(i){i.isSortEnabled()&&this.sortingCommandDispatcher.toggleSort(i.getFieldId(),this.compositionId,this.structureId)}isSortAsc(i){return i.getSortStatus()===Pi.ASC}isSortDesc(i){return i.getSortStatus()===Pi.DESC}isGlobalSortEnabled(){return this.globalSearching}getSelectorName(){return"gui-structure-header-groups"}static \u0275fac=function(e){return new(e||n)(l(P),l(Pe),l(ce),l(xi),l(Be),l(ln),l(Ir))};static \u0275cmp=R({type:n,selectors:[["div","gui-structure-header-groups","","groups","","checkboxSelection",""]],inputs:{groups:"groups",showGroups:"showGroups",checkboxSelection:"checkboxSelection"},features:[Ae([yy]),L],attrs:Q6,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(e,r){e&1&&H(0,K6,2,0,"div",0)(1,X6,3,3,"div",1),e&2&&(w("ngIf",r.checkboxSelection),b(),w("ngForOf",r.groups))},dependencies:[Mi,Rt,tO],encapsulation:2,changeDetection:0})}return n})(),SW=(()=>{class n extends Xi{structureFilterCommandService;formBuilder;cd;effects;structureId;columns;closed=new Y;filterFieldName="phrase";filterForm;filterMode=!1;constructor(i,e,r,o,a,c){super(a),this.structureFilterCommandService=i,this.formBuilder=e,this.cd=r,this.effects=o,this.structureId=c,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 hc(this.filterForm.valueChanges)}static \u0275fac=function(e){return new(e||n)(l(Fo),l(qa),l(ce),l(C0),l(P),l(Be))};static \u0275cmp=R({type:n,selectors:[["div","gui-structure-header-filters","","columns",""]],inputs:{columns:"columns"},outputs:{closed:"closed"},features:[Ae([C0]),L],attrs:Z6,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(e,r){e&1&&H(0,tU,2,1,"ng-container",0)(1,iU,8,5,"ng-container",0),e&2&&(w("ngIf",!r.filterMode),b(),w("ngIf",r.filterMode))},dependencies:[Mi,Rt,sa,li,wi,Qr,Ai,To,ns,Dv,Cv],encapsulation:2,changeDetection:0})}return n})(),iO=(()=>{class n extends rd{filterWarehouse;formationWarehouse;compositionTemplateWarehouse;state=F(Ci);compositionWarehouse=F(tr);structureId=F(Be);compositionId=F(xi);verticalFormationWarehouse=F(ls);state$=this.state.select();width$=this.compositionWarehouse.onContainerWidth(this.compositionId).pipe(me(i=>({width:i})));filterHeaderHeight$=this.verticalFormationWarehouse.onRowHeight(this.structureId).pipe(me(i=>({height:+i+2})));constructor(i,e,r,o){super(i),this.filterWarehouse=e,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(me(i=>i.getGroups()))}selectShowGroups(){return this.compositionWarehouse.onGroups(this.compositionId).pipe(me(i=>i.isVisible()))}selectShowSelection(){return this.formationWarehouse.onType(this.structureId).pipe(me(i=>i===cn.CHECKBOX||i===cn.RADIO))}static \u0275fac=function(e){return new(e||n)(l(P),l(ua),l(er),l(_g))};static \u0275cmp=R({type:n,selectors:[["div","gui-structure-header",""]],features:[Ae([Ci]),L],attrs:nU,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(e,r){e&1&&H(0,oU,2,1,"ng-container",0)(1,aU,1,3,"div",1)(2,cU,2,1,"ng-container",0),e&2&&(w("guiLet",r.state$),b(),w("guiLet",r.state$),b(),w("guiLet",r.state$))},dependencies:[Rt,Rn,_8,kW,DW,SW],encapsulation:2,changeDetection:0})}return n})(),nO=(()=>{class n{platformId;constructor(i){this.platformId=i}on(i){return Hn(this.platformId)?hc(new Lt(e=>{let r=new ResizeObserver(o=>{o&&o.length>0&&e.next(o[0].contentRect)});return r.observe(i),()=>r.disconnect()}).pipe(gM(25))):x1()}destroy(i){}static \u0275fac=function(e){return new(e||n)(k(Xt))};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),wr=function(n){return n[n.NONE=0]="NONE",n[n.ADD=1]="ADD",n[n.RANGE=2]="RANGE",n}(wr||{}),Ku=class{subject$=new Xn(1);constructor(){}emit(t){this.subject$.next(t)}on(){return this.subject$.toObservable()}},Up=class{itemId;columnFieldId;value;constructor(t,i,e){this.itemId=t,this.columnFieldId=i,this.value=e}getItemId(){return this.itemId}getColumnFieldId(){return this.columnFieldId}getValue(){return this.value}},EW=(()=>{class n extends hi{changeDetectorRef;structureId;sourceCommandService;cellContainerRef;entity;cell;editContext;valueChanges$;status$;actualValue;constructor(i,e,r,o){super(i,e),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(),e=this.actualValue,r=this.cell.columnFieldId;this.sourceCommandService.editItem(new Up(i,r,e),this.structureId)}initEditContext(){this.valueChanges$=new Ku,this.status$=new Ku,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 Qu.SUBMIT:this.submitChanges();break;default:break}})}observeValueChanges(){this.valueChanges$.on().pipe(this.takeUntil()).subscribe(i=>{this.actualValue=i})}static \u0275fac=function(e){return new(e||n)(l(ce),l(P),l(Be),l(xr))};static \u0275cmp=R({type:n,selectors:[["div","gui-structure-cell-edit-boolean","","entity","","cell",""]],viewQuery:function(e,r){if(e&1&&Z(lU,7),e&2){let o;G(o=$())&&(r.cellContainerRef=o.first)}},inputs:{entity:"entity",cell:"cell"},features:[L,he],attrs:dU,decls:3,vars:2,consts:[["cellContainer",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,r){e&1&&(f(0,"span",null,0),H(2,uU,1,0,"ng-container",1),v()),e&2&&(b(2),w("ngTemplateOutlet",r.cell.editTemplate)("ngTemplateOutletContext",r.editContext))},dependencies:[tl],encapsulation:2,changeDetection:0})}return n})(),TW=(()=>{class n extends hi{changeDetectorRef;elementRef;structureId;compositionId;structureCellEditStore;cellEditCloseAllService;sourceCommandService;compositionWarehouse;entity;cell;editMode;cellEditorManager;searchPhrase;rowIndex;columnIndex;inEditMode=!1;editContext;valueChanges$;status$;actualValue;isHighlighted;constructor(i,e,r,o,a,c,m,x){super(i,e),this.changeDetectorRef=i,this.elementRef=e,this.structureId=r,this.compositionId=o,this.structureCellEditStore=a,this.cellEditCloseAllService=c,this.sourceCommandService=m,this.compositionWarehouse=x}ngOnInit(){this.subscribe(this.compositionWarehouse.onHighlightedColumn(new $u(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(),I1(0).pipe(this.takeUntil()).subscribe(()=>{this.inEditMode=!0,this.valueChanges$=new Ku,this.status$=new Ku,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(),e=this.actualValue,r=this.cell.columnFieldId;this.sourceCommandService.editItem(new Up(i,r,e),this.structureId),this.exitEditMode()}getSelectorName(){return"gui-structure-cell"}observeFieldStatus(){this.status$.on().pipe(this.takeUntil()).subscribe(i=>{switch(i){case Qu.SUBMIT:this.submitChangesAndExit(),this.publishEditSubmit();break;case Qu.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(Ol.ENTER)}publishEditCancel(){this.publishEditState(Ol.CANCEL)}publishEditSubmit(){this.publishEditState(Ol.SUBMIT)}static \u0275fac=function(e){return new(e||n)(l(ce),l(P),l(Be),l(xi),l(Fv),l(VF),l(xr),l(tr))};static \u0275cmp=R({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:[L],attrs:hU,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(e,r){e&1&&H(0,_U,3,2,"ng-container",0)(1,yU,2,2,"ng-container",0),e&2&&(w("ngIf",!r.cell.isBooleanDataType()||r.cell.isBooleanDataType()&&!r.isCellEditingEnabled()),b(),w("ngIf",r.cell.isBooleanDataType()&&r.isCellEditingEnabled()))},dependencies:[$t,Rt,tl,EW],encapsulation:2,changeDetection:0})}return n})(),rO=(()=>{class n extends hi{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,e,r,o,a,c){super(i,e),this.changeDetectorRef=i,this.elRef=e,this.structureId=r,this.formationWarehouse=o,this.formationCommandDispatcher=a,this.cssClassModifier=c,this.styleModifier=new _y(this.elRef.nativeElement),this.classModifier=new vg(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 e=this.selectedItem;this.checkSelectedItem(),e!==this.selectedItem&&(e?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(),wr.ADD,this.structureId)}selectRadio(){event.stopPropagation(),this.formationCommandDispatcher.toggleSelectedRow(this.entity.getId(),wr.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 e=this.calculateRowStyle(this.entity);this.renderRowStyles(e)}removeRowStyles(i){if(!i)return;let e=i.split(";");for(let r=0;r<e.length;r+=1){let o=e[r].split(":");o[0]&&o[1]&&this.styleModifier.getHost().removeStyleByName(o[0].trim())}}renderRowStyles(i){if(!i)return;let e=i.split(";");for(let r=0;r<e.length;r+=1){let o=e[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 e=this.calculateRowClass(this.entity);e&&this.classModifier.getHost().add(e)}calculateRowClass(i){if(!this.rowClass)return"";let e;return typeof this.rowClass.class=="string"&&(e=this.rowClass.class||""),typeof this.rowClass.classFunction=="function"&&i&&(e=this.rowClass.classFunction(i.getSourceItem(),i.getPosition())||""),e}static \u0275fac=function(e){return new(e||n)(l(ce),l(P),l(Be),l(er),l(ln),l(Ll))};static \u0275cmp=R({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:[L,he],attrs:wU,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(e,r){e&1&&H(0,xU,2,1,"div",0)(1,CU,2,1,"div",1)(2,IU,1,9,"div",2),e&2&&(w("ngIf",r.checkboxSelection),b(),w("ngIf",r.radioSelection),b(),w("ngForOf",r.columns)("ngForTrackBy",r.trackByFn))},dependencies:[Mi,Rt,gc,_F,TW],encapsulation:2,changeDetection:0})}return n})(),oO=(()=>{class n extends hi{formationPublisher;structureEditModeArchive;formationWarehouse;structureWarehouse;verticalFormationWarehouse;structureId;schemaReadModelRootId;searchWarehouse;schemaWarehouse;source;columns;state=F(Ci);state$=this.state.select();constructor(i,e,r,o,a,c,m,x,I,O,B){super(e,i),this.formationPublisher=r,this.structureEditModeArchive=o,this.formationWarehouse=a,this.structureWarehouse=c,this.verticalFormationWarehouse=m,this.structureId=x,this.schemaReadModelRootId=I,this.searchWarehouse=O,this.schemaWarehouse=B,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,e){return`translateY(${i*e}px)`}toggleSelectedRow(i,e,r,o){e&&!r&&!o&&this.formationPublisher.toggleSelectedRow(i.getId(),wr.NONE,this.structureId)}getSelectorName(){return"gui-structure-content"}selectCheckboxSelection(){return this.formationWarehouse.onType(this.structureId).pipe(me(i=>i===cn.CHECKBOX))}selectRadioSelection(){return this.formationWarehouse.onType(this.structureId).pipe(me(i=>i===cn.RADIO))}selectSearchPhrase(){return hc(Oa(Za(this.searchWarehouse.onPhrase(this.structureId)),Za(this.searchWarehouse.onHighlight(this.structureId)))).pipe(me(([i,e])=>e?i:""))}static \u0275fac=function(e){return new(e||n)(l(P),l(ce),l(ln),l(Ov),l(er),l(od),l(ls),l(Be),l(Ni),l(ga),l(kr))};static \u0275cmp=R({type:n,selectors:[["div","gui-structure-content",""]],inputs:{source:"source",columns:"columns"},features:[Ae([Ci]),L],attrs:kU,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(e,r){e&1&&H(0,TU,2,2,"div",0),e&2&&w("guiLet",r.state$)},dependencies:[$t,Mi,Wf,Rn,rO],encapsulation:2,changeDetection:0})}return n})(),aO=(()=>{class n extends hi{elRef;ngZone;structureId;compositionId;structureCommandService;structureWarehouse;verticalFormationWarehouse;sourceWarehouse;compositionCommandInvoker;compositionWarehouse;compositionTemplateWarehouse;formationWarehouse;resizeDetector;structureInitialValuesReadyArchive;structureParent;sourceCollectionRef;columns=[];source=[];height;rowColoring;autoResizeWidthEnabled=!1;scrollObservation$=new fi;styleModifier;constructor(i,e,r,o,a,c,m,x,I,O,B,ae,ee,Se,te,ge){super(i,e),this.elRef=e,this.ngZone=r,this.structureId=o,this.compositionId=a,this.structureCommandService=c,this.structureWarehouse=m,this.verticalFormationWarehouse=x,this.sourceWarehouse=I,this.compositionCommandInvoker=O,this.compositionWarehouse=B,this.compositionTemplateWarehouse=ae,this.formationWarehouse=ee,this.resizeDetector=Se,this.structureInitialValuesReadyArchive=te,this.structureParent=ge,this.styleModifier=new _y(this.elRef.nativeElement)}ngOnInit(){this.subscribeWithoutRender(this.verticalFormationWarehouse.onContainerHeight(this.structureId),i=>{this.setContainerHeight(i)}),this.subscribe(hc(Za(this.structureInitialValuesReadyArchive.once(this.structureId)).pipe(uM(()=>Oa(Za(this.sourceWarehouse.onItems(this.structureId)),Za(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(ut(()=>this.autoResizeWidthEnabled),me(i=>i.width),Xr()),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(ut(i=>i.isVerticalScrollEnabled())),i=>{let e=i.getTopMargin(),r=i.getSourceHeight();this.setSourceHeight(e,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,e){this.styleModifier.getElement(this.sourceCollectionRef.nativeElement).setPaddingTop(i),this.styleModifier.getElement(this.sourceCollectionRef.nativeElement).setHeight(e)}recalculateContainer(i){this.autoResizeWidthEnabled&&this.compositionCommandInvoker.setContainerWidth(i,this.compositionId)}enableScrollObservation(){this.ngZone.runOutsideAngular(()=>{np(this.elRef.nativeElement,"scroll").pipe(Zn(this.scrollObservation$)).subscribe(i=>{let e=i.target.scrollTop;this.structureCommandService.setScrollPosition(e,this.structureId)})})}disableScrollObservation(){this.scrollObservation$.next(),this.scrollObservation$.complete()}static \u0275fac=function(e){return new(e||n)(l(ce),l(P),l(be),l(Be),l(xi),l(nr),l(od),l(ls),l(Dr),l(no),l(tr),l(_g),l(er),l(nO),l(nh),l(PF,8))};static \u0275cmp=R({type:n,selectors:[["div","gui-structure-container",""]],viewQuery:function(e,r){if(e&1&&Z(MU,5,P),e&2){let o;G(o=$())&&(r.sourceCollectionRef=o.first)}},features:[L],attrs:AU,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(e,r){e&1&&(f(0,"div",1,0),E(2,"div",2),v()),e&2&&(b(2),w("columns",r.columns)("source",r.source))},dependencies:[oO],encapsulation:2,changeDetection:0})}return n})(),sO=(()=>{class n extends hi{bannerPanel$;constructor(i,e){super(i,e)}initObservables(){this.bannerPanel$=this.selectBannerPanelTemplate()}selectBannerPanelTemplate(){return this.onBannerPanelConfig().pipe(me(i=>typeof i.template=="function"?i.template():i.template))}static \u0275fac=function(e){return new(e||n)(l(ce),l(P))};static \u0275dir=J({type:n,features:[L]})}return n})(),MW=(()=>{class n extends sO{structureTitlePanelConfigArchive;constructor(i,e,r){super(e,r),this.structureTitlePanelConfigArchive=i,this.initObservables()}onBannerPanelConfig(){return this.structureTitlePanelConfigArchive.on()}getSelectorName(){return"gui-structure-title-panel"}static \u0275fac=function(e){return new(e||n)(l(Tp),l(ce),l(P))};static \u0275cmp=R({type:n,selectors:[["div","gui-structure-title-panel",""]],features:[L],attrs:RU,decls:3,vars:6,consts:[[1,"gui-title-panel","gui-p-6","gui-border-b","gui-border-b-solid",3,"innerHTML"]],template:function(e,r){e&1&&(E(0,"div",0),Re(1,"guiPush"),Re(2,"guiSafe")),e&2&&w("innerHTML",hr(2,3,Le(1,1,r.bannerPanel$),"html"),Jc)},dependencies:[oh,ZE],encapsulation:2,changeDetection:0})}return n})(),AW=(()=>{class n extends sO{structureFooterPanelConfigArchive;constructor(i,e,r){super(e,r),this.structureFooterPanelConfigArchive=i,this.initObservables()}onBannerPanelConfig(){return this.structureFooterPanelConfigArchive.on()}getSelectorName(){return"gui-structure-footer-panel"}static \u0275fac=function(e){return new(e||n)(l(Mp),l(ce),l(P))};static \u0275cmp=R({type:n,selectors:[["div","gui-structure-footer-panel",""]],features:[L],attrs:FU,decls:3,vars:6,consts:[[1,"gui-footer-panel","gui-p-6","gui-border-t","gui-border-t-solid",3,"innerHTML"]],template:function(e,r){e&1&&(E(0,"div",0),Re(1,"guiPush"),Re(2,"guiSafe")),e&2&&w("innerHTML",hr(2,3,Le(1,1,r.bannerPanel$),"html"),Jc)},dependencies:[oh,ZE],encapsulation:2,changeDetection:0})}return n})(),RW=(()=>{class n extends hi{structureDefinition;className;structureId=F(Be);summariesWarehouse=F(Hl);structureHeaderTopEnabledArchive=F(QE);structureHeaderBottomEnabledArchive=F(Ip);searchWarehouse=F(ga);pagingWarehouse=F(ss);structureWarehouse=F(od);structureInfoPanelArchive=F(Cc);structureTitlePanelConfigArchive=F(Tp);structureFooterPanelConfigArchive=F(Mp);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,e,r,o){super(i,e),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(me(i=>i.enabled))}selectInfoPanelEnabled(){return this.structureInfoPanelArchive.on().pipe(me(i=>i.isEnabled()))}selectFooterPanelEnabled(){return this.structureFooterPanelConfigArchive.on().pipe(me(i=>i.enabled))}selectItems(){return this.structureWarehouse.on(this.structureId).pipe(me(i=>i.getEntities()))}static \u0275fac=function(e){return new(e||n)(l(ce),l(P),l(nd),l(Dk))};static \u0275cmp=R({type:n,selectors:[["div","gui-structure-blueprint",""]],features:[L],attrs:OU,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(e,r){e&1&&(H(0,PU,1,0,"div",0)(1,NU,1,0,"div",1)(2,jU,2,1,"ng-container",2),E(3,"div",3),Re(4,"guiPush"),H(5,BU,2,1,"ng-container",2),E(6,"div",4)(7,"div",5),Re(8,"guiPush"),H(9,HU,2,1,"ng-container",2),E(10,"div",6),Re(11,"guiPush"),H(12,WU,2,1,"ng-container",2)(13,$U,2,1,"ng-container",2)(14,YU,1,0,"div",7)),e&2&&(w("guiIf",r.titlePanelEnabled$),b(),w("guiIf",r.searchEnabled$),b(),w("guiLet",r.pagingModel$),b(),w("enabled",Le(4,12,r.topSummariesPanelEnabled$)),b(2),w("guiLet",r.topHeaderEnabled$),b(),w("ngClass",r.contentCssClass),b(),w("items",Le(8,14,r.items$)),b(2),w("guiLet",r.bottomHeaderEnabled$),b(),w("enabled",Le(11,16,r.bottomSummariesPanelEnabled$)),b(2),w("guiLet",r.footerPanelEnabled$),b(),w("guiLet",r.pagingModel$),b(),w("guiIf",r.infoPanelEnabled$))},dependencies:[$t,Rt,Rn,KE,m8,Z8,uW,pW,gW,iO,aO,MW,AW,oh],encapsulation:2,changeDetection:0})}return n})();function FW(n){return new Be("gui-grid-"+n.generateId())}function OW(n){return new xi("gui-grid-"+n.generateId())}function PW(n){return new Ni("gui-grid-"+n.generateId())}var cO=(()=>{class n extends a8{elementRef;detectorRef;injector;structureDefinition;structureWarehouse;compositionWarehouse;schemaStylesManager;schemaReadModelRootId;structureDetailViewService;loaderEnabled=!1;circleLoaderEnabled=!0;initialLoaderAnimation=!1;styleModifier;constructor(i,e,r,o,a,c,m,x,I,O,B,ae,ee,Se,te,ge,$e,ei,Pt,en,Qt,Pn,ti,ps,gs,In,pd,fs,ai,wa,bh,Ye,kn,bs,xa,Vc,W,Fe,vs,jc,No){super(bs,kn,Ye,i,e,jc,Se,r,o,m,x,a,c,O,B,ae,ee,te,ge,ei,Pt,en,ti,ps,gs,ai,wa,bh),this.elementRef=kn,this.detectorRef=bs,this.injector=xa,this.structureDefinition=Vc,this.structureWarehouse=W,this.compositionWarehouse=Fe,this.schemaStylesManager=vs,this.schemaReadModelRootId=jc,this.structureDetailViewService=No,this.styleModifier=new _y(this.elementRef.nativeElement),Se.create(this.structureId),B.create(this.compositionId),O.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):I1(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),e=>{this.styleModifier.getHost().setWidth(e)})}isBorderEnabled(){return this.structureDefinition.isBorderEnabled()}getStructureId(){return this.structureId}getElementRef(){return this.elementRef}getSelectorName(){return"gui-structure"}static \u0275fac=function(e){return new(e||n)(l(Be),l(xi),l(rr),l(ha),l(xr),l(Vl),l(Ir),l(Cr),l(zl),l(ir),l(no),l(kc),l(Tc),l(nr),l(Ov),l(as),l(Cc),l(Vv),l(Fv),l(jl),l(kp),l(by),l(ln),l(ma),l(Ip),l(Lv),l(Tp),l(Mp),l(pa),l(Oo),l(nh),l(Ic),l(P),l(ce),l(Pe),l(nd),l(od),l(tr),l(kF),l(Ni),l(DF))};static \u0275cmp=R({type:n,selectors:[["gui-structure"]],hostVars:3,hostBindings:function(e,r){e&2&&(zi("id",r.structureId.toString()),ie("gui-structure-border",r.isBorderEnabled()))},features:[Ae([{provide:Be,useFactory:FW,deps:[Rl]},{provide:xi,useFactory:OW,deps:[Rl]},{provide:Ni,useFactory:PW,deps:[Rl]},kF,VF,Fv,Ov,Cc,Vv,kp,vy.forComponent(),ds.forComponent(),QE,Ip,Lv,DF,Tp,Mp,{provide:o8,useExisting:n},{provide:C8,useExisting:n}]),L],decls:3,vars:5,consts:[["gui-structure-blueprint",""],[1,"gui-loading",3,"ngClass"],[3,"diameter","primary",4,"ngIf"],[3,"diameter","primary"]],template:function(e,r){e&1&&(E(0,"div",0),f(1,"div",1),H(2,QU,1,2,"gui-spinner",2),v()),e&2&&(b(),w("ngClass",Wh(2,qU,r.loaderEnabled,!r.loaderEnabled&&r.initialLoaderAnimation)),b(),w("ngIf",r.circleLoaderEnabled))},dependencies:[$t,Rt,IF,RW],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})(),lO=(()=>{class n extends Vi{structureHeaderTopEnabledArchive;structureHeaderBottomEnabledArchive;columnHeaderTop;columnHeaderBottom;constructor(i,e){super(),this.structureHeaderTopEnabledArchive=i,this.structureHeaderBottomEnabledArchive=e}ngOnChanges(i){this.isDefined("columnHeaderTop",i)&&this.structureHeaderTopEnabledArchive.next(this.columnHeaderTop),this.isDefined("columnHeaderBottom",i)&&this.structureHeaderBottomEnabledArchive.next(this.columnHeaderBottom)}static \u0275fac=function(e){return new(e||n)(l(QE),l(Ip))};static \u0275dir=J({type:n,selectors:[["gui-structure","columnHeaderTop","","columnHeaderBottom",""],["gui-structure","columnHeaderTop",""],["gui-structure","columnHeaderBottom",""]],inputs:{columnHeaderTop:"columnHeaderTop",columnHeaderBottom:"columnHeaderBottom"},features:[L,he]})}return n})(),NW=(()=>{class n extends Vi{structureId;compositionId;pagingCommandInvoker;pagingEventRepository;paging;pageChanged=new Y;pageSizeChanged=new Y;constructor(i,e,r,o){super(),this.structureId=i,this.compositionId=e,this.pagingCommandInvoker=r,this.pagingEventRepository=o}ngOnChanges(i){if(this.isDefined("paging",i)){let e;typeof this.paging=="boolean"?e={enabled:this.paging}:e=this.paging,this.pagingCommandInvoker.setPaging(e,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(e){return new(e||n)(l(Be),l(xi),l(rr),l(ha))};static \u0275dir=J({type:n,inputs:{paging:"paging"},outputs:{pageChanged:"pageChanged",pageSizeChanged:"pageSizeChanged"},features:[L,he]})}return n})(),dO=(()=>{class n extends NW{pagingDisplayModeArchive;constructor(i,e,r,o,a){super(i,e,r,o),this.pagingDisplayModeArchive=a}ngOnChanges(i){if(this.isDefined("paging",i)){let e;typeof this.paging=="boolean"?e={enabled:this.paging}:(e=this.paging,this.paging.displayMode!==void 0&&this.pagingDisplayModeArchive.next(this.paging.displayMode)),this.pagingCommandInvoker.setPaging(e,this.structureId)}}static \u0275fac=function(e){return new(e||n)(l(Be),l(xi),l(rr),l(ha),l(by))};static \u0275dir=J({type:n,selectors:[["gui-structure","paging",""]],features:[L,he]})}return n})(),VW=(()=>{class n extends Vi{structureId;searchEventRepository;searchCommandInvoker;searching;searchPhraseChanged=new Y;constructor(i,e,r){super(),this.structureId=i,this.searchEventRepository=e,this.searchCommandInvoker=r}ngOnChanges(i){if(this.isDefined("searching",i)){let e;typeof this.searching=="boolean"?e={enabled:this.searching}:e=this.searching,this.searchCommandInvoker.setSearchingConfig(e,this.structureId)}}ngOnInit(){this.subscribeAndEmit(this.searchEventRepository.onSearchPhrase(this.structureId.toReadModelRootId()),this.searchPhraseChanged)}static \u0275fac=function(e){return new(e||n)(l(Be),l(ma),l(Cr))};static \u0275dir=J({type:n,inputs:{searching:"searching"},outputs:{searchPhraseChanged:"searchPhraseChanged"},features:[L,he]})}return n})(),uO=(()=>{class n extends VW{constructor(i,e,r){super(i,e,r)}static \u0275fac=function(e){return new(e||n)(l(Be),l(ma),l(Cr))};static \u0275dir=J({type:n,selectors:[["gui-structure","searching",""]],features:[L]})}return n})(),jW=(()=>{class n extends Vi{structureId;formationEventRepository;formationPublisher;rowSelection;itemsSelected=new Y;selectedRows=new Y;constructor(i,e,r){super(),this.structureId=i,this.formationEventRepository=e,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(me(i=>i.map(e=>e.getItem())))}static \u0275fac=function(e){return new(e||n)(l(Be),l(Tc),l(ln))};static \u0275dir=J({type:n,inputs:{rowSelection:"rowSelection"},outputs:{itemsSelected:"itemsSelected",selectedRows:"selectedRows"},features:[L,he]})}return n})(),hO=(()=>{class n extends jW{selectionGate;constructor(i,e,r){super(i,e,r)}static \u0275fac=function(e){return new(e||n)(l(Be),l(Tc),l(ln))};static \u0275dir=J({type:n,selectors:[["gui-structure","rowSelection",""],["gui-structure","selectionGate",""]],inputs:{selectionGate:"selectionGate"},features:[L]})}return n})(),mO=(()=>{class n extends Vi{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(e){return new(e||n)(l(Oo))};static \u0275dir=J({type:n,selectors:[["gui-structure","localization",""]],inputs:{localization:"localization"},features:[L,he]})}return n})(),pO=(()=>{class n extends Vi{structureTitlePanelConfigArchive;structureFooterPanelConfigArchive;titlePanel;footerPanel;constructor(i,e){super(),this.structureTitlePanelConfigArchive=i,this.structureFooterPanelConfigArchive=e}ngOnChanges(i){this.isDefined("titlePanel",i)&&this.structureTitlePanelConfigArchive.next(this.titlePanel),this.isDefined("footerPanel",i)&&this.structureFooterPanelConfigArchive.next(this.footerPanel)}static \u0275fac=function(e){return new(e||n)(l(Tp),l(Mp))};static \u0275dir=J({type:n,selectors:[["gui-structure","titlePanel","","footerPanel",""]],inputs:{titlePanel:"titlePanel",footerPanel:"footerPanel"},features:[L,he]})}return n})(),gO=(()=>{class n extends Vi{structureDetailViewConfigArchive;rowDetail;constructor(i){super(),this.structureDetailViewConfigArchive=i}ngOnChanges(i){this.isDefined("rowDetail",i)&&this.structureDetailViewConfigArchive.next(this.rowDetail)}static \u0275fac=function(e){return new(e||n)(l(Lv))};static \u0275dir=J({type:n,selectors:[["gui-structure","rowDetail",""]],inputs:{rowDetail:"rowDetail"},features:[L,he]})}return n})(),fO=(()=>{class n extends Vi{structureColumnMenuConfigArchive;columnMenu;constructor(i){super(),this.structureColumnMenuConfigArchive=i}ngOnChanges(i){this.isDefined("columnMenu",i)&&this.structureColumnMenuConfigArchive.nextConfig(this.columnMenu)}static \u0275fac=function(e){return new(e||n)(l(kp))};static \u0275dir=J({type:n,selectors:[["gui-structure","columnMenu",""]],inputs:{columnMenu:"columnMenu"},features:[L,he]})}return n})(),bO=(()=>{class n extends Vi{structureId;summariesCommandInvoker;summaries;constructor(i,e){super(),this.structureId=i,this.summariesCommandInvoker=e}ngOnChanges(i){Ot(i.summaries,()=>{this.summariesCommandInvoker.setConfig(this.summaries,this.structureId)})}static \u0275fac=function(e){return new(e||n)(l(Be),l(xc))};static \u0275dir=J({type:n,selectors:[["gui-structure","summaries",""]],inputs:{summaries:"summaries"},features:[L,he]})}return n})(),vO=(()=>{class n extends Vi{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(e){return new(e||n)(l(Vv))};static \u0275dir=J({type:n,selectors:[["gui-structure","infoPanel",""]],inputs:{infoPanel:"infoPanel"},features:[L,he]})}return n})(),_O=(()=>{class n extends Vi{schemaReadModelRootId;schemaPublisher;rowClass;constructor(i,e){super(),this.schemaReadModelRootId=i,this.schemaPublisher=e}ngOnChanges(i){this.isDefined("rowClass",i)&&this.schemaPublisher.setRowClass(this.rowClass,this.schemaReadModelRootId)}static \u0275fac=function(e){return new(e||n)(l(Ni),l(ir))};static \u0275dir=J({type:n,selectors:[["gui-structure","rowClass",""]],inputs:{rowClass:"rowClass"},features:[L,he]})}return n})(),yO=(()=>{class n extends Vi{schemaReadModelRootId;schemaPublisher;rowStyle;constructor(i,e){super(),this.schemaReadModelRootId=i,this.schemaPublisher=e}ngOnChanges(i){this.isDefined("rowStyle",i)&&this.schemaPublisher.setRowStyle(this.rowStyle,this.schemaReadModelRootId)}static \u0275fac=function(e){return new(e||n)(l(Ni),l(ir))};static \u0275dir=J({type:n,selectors:[["gui-structure","rowStyle",""]],inputs:{rowStyle:"rowStyle"},features:[L,he]})}return n})(),wO=(()=>{class n extends Vi{schemaId;schemaCommandInvoker;schemaEventRepository;rowColoring;rowColoringChanged=new Y;constructor(i,e,r){super(),this.schemaId=i,this.schemaCommandInvoker=e,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(e){return new(e||n)(l(Ni),l(ir),l(pa))};static \u0275dir=J({type:n,selectors:[["gui-structure","rowColoring",""]],inputs:{rowColoring:"rowColoring"},outputs:{rowColoringChanged:"rowColoringChanged"},features:[L,he]})}return n})(),xO=(()=>{class n extends Vi{schemaId;schemaCommandInvoker;schemaEventRepository;verticalGrid;horizontalGrid;horizontalGridChanged=new Y;verticalGridChanged=new Y;constructor(i,e,r){super(),this.schemaId=i,this.schemaCommandInvoker=e,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(e){return new(e||n)(l(Ni),l(ir),l(pa))};static \u0275dir=J({type:n,selectors:[["gui-structure","verticalGrid","","horizontalGrid",""]],inputs:{verticalGrid:"verticalGrid",horizontalGrid:"horizontalGrid"},outputs:{horizontalGridChanged:"horizontalGridChanged",verticalGridChanged:"verticalGridChanged"},features:[L,he]})}return n})(),CO=(()=>{class n extends Vi{structureId;sortingCommandInvoker;sorting;constructor(i,e){super(),this.structureId=i,this.sortingCommandInvoker=e}ngOnChanges(i){Ot(i.sorting,()=>{let e;typeof this.sorting=="boolean"?e={enabled:this.sorting}:e=this.sorting,this.sortingCommandInvoker.setSortingConfig(e,this.structureId)})}static \u0275fac=function(e){return new(e||n)(l(Be),l(Ir))};static \u0275dir=J({type:n,selectors:[["gui-structure","sorting",""]],inputs:{sorting:"sorting"},features:[L,he]})}return n})(),IO=(()=>{class n extends Vi{structureId;sourceCommandInvoker;loading;constructor(i,e){super(),this.structureId=i,this.sourceCommandInvoker=e}ngOnChanges(i){this.isDefined("loading",i)&&this.sourceCommandInvoker.setLoading(this.loading,this.structureId)}ngOnInit(){}static \u0275fac=function(e){return new(e||n)(l(Be),l(xr))};static \u0275dir=J({type:n,selectors:[["gui-structure","loading",""]],inputs:{loading:"loading"},features:[L,he]})}return n})(),kO=(()=>{class n extends Vi{structureId;structureCommandInvoker;filtering;constructor(i,e){super(),this.structureId=i,this.structureCommandInvoker=e}ngOnChanges(i){Ot(i.filtering,()=>{let e;typeof this.filtering=="boolean"?e={enabled:this.filtering}:e=this.filtering,this.structureCommandInvoker.setFilterConfig(e,this.structureId)})}static \u0275fac=function(e){return new(e||n)(l(Be),l(nr))};static \u0275dir=J({type:n,selectors:[["gui-structure","filtering",""]],inputs:{filtering:"filtering"},features:[L,he]})}return n})(),DO=(()=>{class n extends Vi{structureId;structureCommandInvoker;quickFilters;constructor(i,e){super(),this.structureId=i,this.structureCommandInvoker=e}ngOnChanges(i){Ot(i.quickFilters,()=>{let e;typeof this.quickFilters=="boolean"?e={enabled:this.quickFilters}:e=this.quickFilters,this.structureCommandInvoker.setQuickFiltersConfig(e,this.structureId)})}static \u0275fac=function(e){return new(e||n)(l(Be),l(nr))};static \u0275dir=J({type:n,selectors:[["gui-structure","quickFilters",""]],inputs:{quickFilters:"quickFilters"},features:[L,he]})}return n})(),SO=(()=>{class n extends Vi{structureId;structureCommandInvoker;virtualScroll;constructor(i,e){super(),this.structureId=i,this.structureCommandInvoker=e}ngOnChanges(i){this.isDefined("virtualScroll",i)&&(this.virtualScroll?this.structureCommandInvoker.enableVirtualScroll(this.structureId):this.structureCommandInvoker.disableVirtualScroll(this.structureId))}static \u0275fac=function(e){return new(e||n)(l(Be),l(nr))};static \u0275dir=J({type:n,selectors:[["gui-structure","virtualScroll",""]],inputs:{virtualScroll:"virtualScroll"},features:[L,he]})}return n})(),wn=(()=>{class n extends t8{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,e,r,o,a,c,m,x,I,O,B,ae,ee,Se,te,ge,$e){super(),this.platformId=i,this.elementRef=e,this.changeDetectorRef=r,this.gridRegister=o,this.structureIdGenerator=a,this.formationCommandDispatcher=c,this.formationWarehouse=m,this.compositionCommandInvoker=x,this.compositionWarehouse=I,this.filterIntegration=O,this.sourceCommandDispatcher=B,this.searchCommandInvoker=ae,this.schemaCommandInvoker=ee,this.structureCommandDispatcher=Se,this.summariesCommandInvoker=te,this.sortingCommandInvoker=ge,this.pagingCommandInvoker=$e,this.gridThemeCommandInvoker=new rk(this.schemaCommandInvoker,this.gridThemeConverter,this.gridRowColoringConverter),this.classModifier=new vg(this.elementRef.nativeElement),this.attributeModifier=new i8(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()),Hn(this.platformId)&&(window.getGuiGrid=e=>{if(this.gridRegister.getValues(e))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 nk(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(e){return new(e||n)(l(Xt),l(P),l(ce),l(NF),l(Rl),l(ln),l(er),l(no),l(tr),l(fy),l(xr),l(Cr),l(ir),l(nr),l(xc),l(Ir),l(rr))};static \u0275cmp=R({type:n,selectors:[["gui-grid"]],viewQuery:function(e,r){if(e&1&&Z(KU,7),e&2){let o;G(o=$())&&(r.structureRef=o.first)}},inputs:{gridId:"gridId"},features:[Ae([{provide:nd,useValue:r8},{provide:PF,useExisting:n}]),L],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(e,r){if(e&1){let o=oe();f(0,"gui-structure",1,0),A("cellEditCanceled",function(){return V(o),j(r.onCellEditCancel())})("cellEditEntered",function(){return V(o),j(r.onCellEditEnter())})("cellEditSubmitted",function(){return V(o),j(r.onCellEditSubmit())})("columnsChanged",function(){return V(o),j(r.onColumnsChange())})("containerWidthChanged",function(c){return V(o),j(r.onContainerWidthChange(c))})("horizontalGridChanged",function(c){return V(o),j(r.onHorizontalGrid(c))})("itemsSelected",function(c){return V(o),j(r.onItemSelect(c))})("pageChanged",function(c){return V(o),j(r.onPageChange(c))})("pageSizeChanged",function(c){return V(o),j(r.onPageSizeChange(c))})("rowColoringChanged",function(c){return V(o),j(r.onRowColoring(c))})("searchPhraseChanged",function(c){return V(o),j(r.onSearchPhrase(c))})("selectedRows",function(c){return V(o),j(r.onRowsSelect(c))})("sourceEdited",function(c){return V(o),j(r.onSourceEdit(c))})("themeChanged",function(c){return V(o),j(r.onTheme(c))})("verticalGridChanged",function(c){return V(o),j(r.onVerticalGrid(c))}),v()}e&2&&w("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:[cO,lO,dO,uO,hO,mO,pO,gO,fO,bO,vO,_O,yO,wO,xO,CO,IO,kO,DO,SO],styles:[`.gui-grid{display:block;width:100%}
`],encapsulation:2})}return n})(),ad=[Cu,Zr,Iu,es,mc,ku,Du,Mu,Au,Eu,Tu,Ru,Fu,pc,Dl,Ou,ts,Su,kl,pc],LW=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({})}return n})();var nT=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({providers:[ZF],imports:[le,ad,so,ds]})}return n})(),EO=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({providers:[JF],imports:[le,ad,ds,so]})}return n})();var $l=class{constructor(){}};var tD=class extends ze{fieldId;externalFilterId;filterValue;constructor(t,i,e,r){super(t,"ToggleFilterCommand"),this.fieldId=i,this.externalFilterId=e,this.filterValue=r}getFieldId(){return this.fieldId}getExternalFilterId(){return this.externalFilterId}getFilterValue(){return this.filterValue}},Wp=class extends Ze{constructor(t){super(t,null,"FilterToggledEvent")}},iD=class{domainEventPublisher=Q.resolve(lt);forCommand(){return tD}handle(t,i){let e=i.getFieldId(),r=i.getExternalFilterId(),o=i.getFilterValue();t.toggleFilter(e,r,o)}publish(t,i){this.domainEventPublisher.publish(new Wp(i.getAggregateId()))}},I0=class extends ze{fieldId;filterTypeId;value;constructor(t,i,e,r){super(t,"AddFilterCommand"),this.fieldId=i,this.filterTypeId=e,this.value=r}getFieldId(){return this.fieldId}getFilterTypeId(){return this.filterTypeId}getValue(){return this.value}},nD=class{forCommand(){return I0}handle(t,i){let e=i.getFieldId(),r=i.getFilterTypeId(),o=i.getValue();t.addFilter(e,r,o)}},k0=class extends ze{constructor(t){super(t,"RemoveAllFiltersCommand")}},rD=class{forCommand(){return k0}handle(t,i){t.removeAllFilters()}},D0=class extends ze{filterId;constructor(t,i){super(t,"RemoveFilterCommand"),this.filterId=i}getFilterId(){return this.filterId}},oD=class{forCommand(){return D0}handle(t,i){let e=i.getFilterId();t.removeFilter(e)}},S0=class extends ze{filterConfig;constructor(t,i){super(t,"SetConfigFilterCommand"),this.filterConfig=i}getConfig(){return this.filterConfig}},E0=class extends Ze{enabled;constructor(t,i){super(t,i,"ConfigFilterSetEvent"),this.enabled=i}getEnabled(){return this.enabled}},aD=class{domainEventPublisher=Q.resolve(lt);forCommand(){return S0}handle(t,i){let e=i.getConfig();t.setFilterConfig(e)}publish(t,i){let e=i.getConfig();this.domainEventPublisher.publish(new E0(i.getAggregateId(),e.enabled))}},T0=class extends ze{quickFiltersConfig;constructor(t,i){super(t,"SetConfigQuickFilterCommand"),this.quickFiltersConfig=i}getConfig(){return this.quickFiltersConfig}},M0=class extends Ze{enabled;constructor(t,i){super(t,i,"ConfigQuickFilterSetEvent"),this.enabled=i}getEnabled(){return this.enabled}},sD=class{domainEventPublisher=Q.resolve(lt);forCommand(){return T0}handle(t,i){let e=i.getConfig();t.setQuickFiltersConfig(e)}publish(t,i){let e=i.getAggregateId(),r=i.getConfig();this.domainEventPublisher.publish(new M0(e,r.enabled))}},cD=class extends _l{filterId;fieldId;filterTypeId;filterValue;constructor(t,i,e,r){super(t),this.filterId=t,this.fieldId=i,this.filterTypeId=e,this.filterValue=r}getFilterId(){return this.filterId}getFilterTypeId(){return this.filterTypeId}getFieldId(){return this.fieldId}getFilterValue(){return this.filterValue}},lD=class{filteringEnabled=!1;searchEnabled=!1;quickFiltersEnabled=!1;constructor(t=!1,i=!1,e=!1){this.filteringEnabled=t,this.searchEnabled=i,this.quickFiltersEnabled=e}isFilteringEnabled(){return this.filteringEnabled}isQuickFilteringEnabled(){return this.quickFiltersEnabled}isSearchingEnabled(){return this.searchEnabled}setFilterConfig(t){t&&t.enabled!==void 0&&t.enabled!==null&&(this.filteringEnabled=t.enabled)}setSearchingConfig(t){t&&t.enabled!==void 0&&t.enabled!==null&&(this.searchEnabled=t.enabled)}setQuickFiltersConfig(t){t&&t.enabled!==void 0&&t.enabled!==null&&(this.quickFiltersEnabled=t.enabled)}},dD=class extends Xa{constructor(t){super(t)}toString(){return this.getId().toString()}filterMany(t,i,e){return t.length===0?t:t.filter(r=>this.filterEntity(r,i,e))}filterOne(t,i,e){return this.filterEntity(t,i,e)}},uD=class extends dD{constructor(t){super(t)}getName(){return"Contains"}filterEntity(t,i,e){return!!i.getValue(t).includes(e)}},hD=class extends Xa{id;constructor(t){super(t),this.id=t}toString(){return this.id}},BW=(()=>{class n{static index=0;generate(){return n.index+=1,new hD(`${n.index}`)}}return n})(),mD=class{filterTypeId;name;constructor(t,i){this.filterTypeId=t,this.name=i}getId(){return this.filterTypeId}getName(){return this.name}},pD=class{fieldIds=[];map=new WeakMap;filterTypeMap=new WeakMap;dataTypeToFilterType=new Map;filterTypeIdGenerator=new BW;constructor(t){this.assignFilterTypes(),this.addFields(t)}getFilterType(t){return this.filterTypeMap.get(t)}getFieldIdsToFilterTypes(){let t=new Map;for(let i of this.fieldIds){let e=this.map.get(i),r=e.map(o=>new mD(o.getId(),o.getName()));t.set(i.toString(),r)}return t}addFields(t){for(let i of t)this.addField(i)}addField(t){let i=t.getId(),e=t.getDataType(),r=this.dataTypeToFilterType.get(e);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(Me.UNKNOWN,[])}assignFilterTypesForDataTypeNumber(){this.dataTypeToFilterType.set(Me.NUMBER,[])}assignFilterTypesForDataTypeString(){let t=[new uD(this.generateId())];this.dataTypeToFilterType.set(Me.STRING,t),this.addFilterTypes(t)}assignFilterTypesForDataTypeBoolean(){this.dataTypeToFilterType.set(Me.BOOLEAN,[])}assignFilterTypesForDataTypeDate(){this.dataTypeToFilterType.set(Me.DATE,[])}assignFilterTypesForDataTypeCustom(){this.dataTypeToFilterType.set(Me.CUSTOM,[])}generateId(){return this.filterTypeIdGenerator.generate()}addFilterTypes(t){for(let i of t)this.filterTypeMap.set(i.getId(),i)}},gD=class extends Xa{constructor(t){super(t)}toString(){return this.getId()}},zW=(()=>{class n{static index=0;static generateId(){return new gD(`${n.index}`)}}return n})(),fD=class{filterId;fieldName;filterTypeName;value;constructor(t,i,e,r){this.filterId=t,this.fieldName=i,this.filterTypeName=e,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}},bD=class{filterSettings=new lD;filters=new Map;activeFilters=[];filterTypeManager;constructor(){}getSettings(){return this.filterSettings}getAll(){return Array.from(this.filters).map(t=>t[1])}getAllActiveFilters(t){return this.activeFilters.map(i=>new fD(i.getFilterId(),t.get(i.getFieldId().toString()).getName(),this.filterTypeManager.getFilterType(i.getFilterTypeId()).getName(),i.getFilterValue()))}getFilterTypes(){return this.filterTypeManager.getFieldIdsToFilterTypes()}assignFilterTypes(t){this.filterTypeManager=new pD(t)}add(t,i,e){let r=new cD(zW.generateId(),t,i,e);this.activeFilters.push(r)}filter(t,i){let e=Array.from(t);for(let r of this.activeFilters){let o=r.getFilterTypeId(),a=this.getFilterType(o),c=r.getFilterValue();e=a.filterMany(e,i.get(r.getFieldId().toString()),c)}return e}removeAll(){this.activeFilters.length=0}remove(t){this.activeFilters=this.activeFilters.filter(i=>i.getFilterId()!==t)}getFilterType(t){return this.filterTypeManager.getFilterType(t)}},A0=class{create(t=!1){return new bD}},rT=(()=>{class n extends Mt{static default=!1;constructor(){super(n.default)}}return n})(),HW=(()=>{class n{quickFilterEnabledArchive;constructor(i){this.quickFilterEnabledArchive=i}static services=[rT];forEvent(){return M0}handle(i){i.ofMessageType("ConfigQuickFilterSetEvent")&&this.quickFilterEnabledArchive.next(i.getAggregateId(),i.getEnabled())}}return n})(),oT=(()=>{class n extends Mt{static default=!1;constructor(){super(n.default)}}return n})(),UW=(()=>{class n{filterEnabledArchive;constructor(i){this.filterEnabledArchive=i}static services=[oT];forEvent(){return E0}handle(i){i.ofMessageType("ConfigFilterSetEvent")&&this.filterEnabledArchive.next(i.getAggregateId(),i.getEnabled())}}return n})(),R0=class{map;constructor(t){this.map=t}getFilterTypes(t){let i=this.map.get(t.toString());return i===void 0?[]:i}},Gp=class n extends Mt{static default=new R0(new Map);constructor(){super(n.default)}},F0=class extends Ze{map;constructor(t,i){super(t,i,"FilterTypesInitedEvent"),this.map=i}getMap(){return this.map}},aT=(()=>{class n extends Mt{static default=[];constructor(){super(n.default)}}return n})(),sT=w1();sT.provide(aT);sT.provide(Gp);var O0=sT,vD=class{filterTypeArchive=O0.resolve(Gp);forEvent(){return F0}handle(t){if(t.ofMessageType("FilterTypesInitedEvent")){let i=t.getMap();this.filterTypeArchive.next(t.getAggregateId(),new R0(i))}}},Ec=class extends Ze{filters;constructor(t,i){super(t,i,"ActiveFiltersSetEvent"),this.filters=i}getFilters(){return this.filters}},_D=class{activeFilterRepository=O0.resolve(aT);forEvent(){return Ec}handle(t){if(t.ofMessageType("ActiveFiltersSetEvent")){let i=t.getFilters();this.activeFilterRepository.next(t.getAggregateId(),i)}}},P0=class extends Ze{map;constructor(t,i){super(t,i,"UniqueFilterCalculatedEvent"),this.map=i}getUniqueValues(){return this.map}},N0=class{map=new Map;allSelected=new Map;allDisabled=new Map;constructor(t){this.map=t,this.calculateSelection()}getValues(t){return this.map.get(t.toString())}areAllSelected(t){return this.allSelected.get(t.toString())}areAllDisabled(t){return this.allDisabled.get(t.toString())}isSelectAllChecked(t){return this.areAllSelected(t)}isIndeterminate(t){return!(this.areAllSelected(t)||this.areAllDisabled(t))}calculateSelection(){for(let t of Array.from(this.map.keys())){let i=this.map.get(t);this.allSelected.set(t,!i.some(e=>!e.isEnabled())),this.allDisabled.set(t,!i.some(e=>e.isEnabled()))}}},$p=class n extends Mt{static default=new N0(new Map);constructor(){super(n.default)}},yD=class{id;value;displayValue;enabled;constructor(t,i,e){this.id=t,this.value=i,this.enabled=e}getId(){return this.id}getValue(){return this.value}geDisplayValue(){return this.displayValue}isEnabled(){return this.enabled}},WW=(()=>{class n{uniqueValuesRepository;constructor(i){this.uniqueValuesRepository=i}static services=[$p];forEvent(){return P0}handle(i){if(i.ofMessageType("UniqueFilterCalculatedEvent")){let e=new Map;i.getUniqueValues().forEach((o,a)=>{let c=o.map(m=>new yD(m.getId(),m.getDisplayValue(),m.isEnabled()));e.set(a,c)});let r=new N0(e);this.uniqueValuesRepository.next(i.getAggregateId(),r)}}}return n})(),wD=class{forEvent(){return Bu}handle(t){}},V0=class extends ze{fieldId;constructor(t,i){super(t,"UnselectAllUniqueFilterCommand"),this.fieldId=i}getFieldId(){return this.fieldId}},xD=class{forCommand(){return V0}handle(t,i){let e=i.getFieldId();t.unselectAllUniqueFilter(e)}},j0=class extends ze{fieldId;uniqueValueId;constructor(t,i,e){super(t,"UnselectUniqueFilterCommand"),this.fieldId=i,this.uniqueValueId=e}getFieldId(){return this.fieldId}getUniqueValueId(){return this.uniqueValueId}},CD=class{forCommand(){return j0}handle(t,i){let e=i.getFieldId(),r=i.getUniqueValueId();t.unselectUniqueFilter(e,r)}},L0=class extends ze{fieldId;constructor(t,i){super(t,"SelectAllUniqueFilterCommand"),this.fieldId=i}getFieldId(){return this.fieldId}},ID=class{forCommand(){return L0}handle(t,i){let e=i.getFieldId();t.selectAllUniqueFilter(e)}},B0=class extends ze{fieldId;uniqueValueId;constructor(t,i,e){super(t,"SelectUniqueFilterCommand"),this.fieldId=i,this.uniqueValueId=e}getFieldId(){return this.fieldId}getUniqueValueId(){return this.uniqueValueId}},kD=class{forCommand(){return B0}handle(t,i){let e=i.getFieldId(),r=i.getUniqueValueId();t.selectUniqueFilter(e,r)}},DD=class{defineAggregate(){return null}registerKey(){return ro}registerProviders(t){t.provide(A0)}registerCommandHandlers(){return[aD,sD,iD,nD,rD,oD,kD,ID,CD,xD]}registerDomainEventHandler(){return[HW,UW,vD,_D,WW,wD]}registerMultiDomainEventHandler(){return[]}},GW=(()=>{class n extends ua{filterEnabledArchive;structureQuickFilterRepository;uniqueValuesArchive;activeFilterArchive=O0.resolve(aT);filterTypeArchive=O0.resolve(Gp);constructor(i,e,r){super(),this.filterEnabledArchive=i,this.structureQuickFilterRepository=e,this.uniqueValuesArchive=r}static services=[oT,rT,$p];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,e){return this.onFilterTypes(e).pipe(me(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,e,r){return Cl(this.onFilterTypes(r).pipe(me(o=>{let c=o.getFilterTypes(i).find(m=>m.getName()===e);return c===void 0?bi.empty():bi.of(c.getId())})))}}return n})(),$W=(()=>{class n extends Fo{commandDispatcher;constructor(i){super(),this.commandDispatcher=i}static services=[Yi];setConfig(i,e){this.commandDispatcher.dispatch(new S0(e,i))}add(i,e,r,o){this.commandDispatcher.dispatch(new I0(o,i,e,r))}removeAll(i){this.commandDispatcher.dispatch(new k0(i))}remove(i,e){this.commandDispatcher.dispatch(new D0(e,i))}selectAllUniqueFilter(i,e){this.commandDispatcher.dispatch(new L0(e,i))}unselectAllUniqueFilter(i,e){this.commandDispatcher.dispatch(new V0(e,i))}selectUniqueFilter(i,e,r){this.commandDispatcher.dispatch(new B0(r,i,e))}unselectUniqueFilter(i,e,r){this.commandDispatcher.dispatch(new j0(r,i,e))}}return n})(),SD=class{registerProviders(t){t.provide(Fo,$W),t.provide(ua,GW),t.provide($p),t.provide(oT),t.provide(rT),t.provide(fy)}};function YW(){new _n(new SD,new DD).init()}YW();function qW(){return Q.resolve(Fo)}function QW(){return Q.resolve(ua)}function KW(){return Q.resolve(fy)}var cT=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({providers:[{provide:Fo,useFactory:qW},{provide:ua,useFactory:QW},{provide:fy,useFactory:KW}]})}return n})(),TO=(()=>{class n extends Fi{static forComponent(){return[]}static \u0275fac=(()=>{let i;return function(r){return(i||(i=Ge(n)))(r||n)}})();static \u0275mod=X({type:n});static \u0275inj=K({imports:[le,ad,so,cT]})}return n})(),lT=(()=>{class n extends Fi{static forComponent(){return[]}static \u0275fac=(()=>{let i;return function(r){return(i||(i=Ge(n)))(r||n)}})();static \u0275mod=X({type:n});static \u0275inj=K({imports:[le,fc,$i,so,cT,TO]})}return n})(),XW=(()=>{class n extends Fi{static forComponent(){return[]}static \u0275fac=(()=>{let i;return function(r){return(i||(i=Ge(n)))(r||n)}})();static \u0275mod=X({type:n});static \u0275inj=K({providers:[eO],imports:[le,lT,TO,Zr]})}return n})(),ZW=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({providers:[Cp],imports:[le,LW,fc,nT,EO,XW,ds,so]})}return n})();var ED=class extends Sc{warn(t){console.warn(t)}error(t){console.error(t)}};function JW(){Q.provide(Sc,ED)}JW();function eG(){return Q.resolve(Sc)}var tG=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({providers:[{provide:Sc,useFactory:eG}]})}return n})(),Yp=class{id;source;position;version=0;constructor(t,i,e,r=0){this.source=t,this.position=i,this.version=r,e?this.id=e:this.id=uc.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(t){return this.id===t.id&&this.getVersion()===t.getVersion()}equalsById(t){return this.id===t}},z0=class n extends _l{sourceItem;version;position;constructor(t,i,e,r=0){super(t),this.sourceItem=i,this.position=e,this.version=r}getSourceItem(){return this.sourceItem}getVersion(){return this.version}getPosition(){return this.position}bumpVersion(){this.version+=1}setPosition(t){this.position=t}clone(){let t=ne({},this.sourceItem);return new n(this.getId(),t,this.version)}},TD=class{create(t){return Array.isArray(t)?this.createItems(t):this.createItem(t)}createItems(t){return t.map(i=>this.createItem(i))}createItem(t){return t instanceof z0?new Yp(t.sourceItem,t.getPosition(),t.getId().toString(),t.getVersion()):new Yp(t,0)}},H0=class extends ze{searchConfig;constructor(t,i){super(t,"SetConfigSearchingCommand"),this.searchConfig=i}getConfig(){return this.searchConfig}},U0=class extends Ze{enabled;constructor(t,i){super(t,i,"ConfigSearchingSetEvent"),this.enabled=i}isEnabled(){return this.enabled}},MD=class{domainEventPublisher=Q.resolve(lt);forCommand(){return H0}handle(t,i){let e=i.getConfig();t.setSearchingConfig(e)}publish(t,i){let e=i.getConfig();this.domainEventPublisher.publish(new U0(i.getAggregateId(),e.enabled))}},qp=class extends ze{phrase;initial;constructor(t,i,e){super(t,"SetSearchPhraseCommand"),this.phrase=i,this.initial=e}getPhrase(){return this.phrase}isInitial(){return this.initial}},Yl=class extends Ze{phrase;initial;constructor(t,i,e){super(t,{phrase:i,initial:e},"SearchPhraseSetDomainEvent"),this.phrase=i,this.initial=e}getPhrase(){return this.phrase}isInitial(){return this.initial}},ql=class extends Ze{origin;constructor(t,i){super(t,i,"OriginSetEvent"),this.origin=i}getOrigin(){return this.origin}},Qp=class extends Ze{values;constructor(t,i){super(t,i,"StructureSummariesChangedEvent"),this.values=i}getSummaries(){return this.values}},Kp=class extends Ze{preparedItems;constructor(t,i){super(t,i,"StructurePreparedEntitiesSetEvent"),this.preparedItems=i}getPreparedItems(){return this.preparedItems}},Ql=class{domainEventPublisher=Q.resolve(lt);publish(t){t.forEach(i=>{this.publishEvent(i)})}publishEvent(t){if(t.getType()==="StructureOriginChangedAggregateEvent"){let i=t,e=new ql(i.getAggregateId(),i.getOrigin());this.domainEventPublisher.publish(e)}if(t.getType()==="StructureSourceItemEditedAggregateEvent"){let i=t,e=new wp(i.getAggregateId(),i.getBeforeItem(),i.getAfterItem());this.domainEventPublisher.publish(e)}if(t.getType()==="StructureSummariesChangedAggregateEvent"){let i=t,e=new Qp(i.getAggregateId(),i.getSummaries());this.domainEventPublisher.publish(e)}if(t.getType()==="StructurePreparedEntitiesSetAggregateEvent"){let i=t,e=new Kp(i.getAggregateId(),i.getPreparedItems());this.domainEventPublisher.publish(e)}if(t.getType()==="UniqueFilterCalculatedAggregateEvent"){let e=t.toDomainEvent();this.domainEventPublisher.publish(e)}}},iG=(()=>{class n{structureSourceDomainEventPublisher;domainEventPublisher=Q.resolve(lt);constructor(i){this.structureSourceDomainEventPublisher=i}static services=[Ql];forCommand(){return qp}handle(i,e){let r=e.getPhrase();i.addSearchPhrase(r)}publish(i,e){let r=e.getPhrase(),o=e.isInitial();this.domainEventPublisher.publish(new Yl(e.getAggregateId(),r,o)),this.structureSourceDomainEventPublisher.publish(i.getEvents())}}return n})(),AD=class{searchFields=[];searchPhrase;enabledDataTypes=[Me.STRING];addSearchPhrase(t,i){if(!i){this.searchFields=[];return}let e=t.filter(r=>this.enabledDataTypes.some(o=>o===r.getDataType()));e.length!==0&&(this.searchFields=e,this.searchPhrase=i)}removeSearchFilters(){this.searchFields=[]}search(t){if(t.length===0||this.searchFields.length===0)return t;let i=new Set;for(let e=0;e<t.length;e+=1)this.searchFields.filter(r=>r.search(t[e],this.searchPhrase)).forEach(()=>{i.add(t[e])});return Array.from(i)}},W0=class{create(){return new AD}},dT=(()=>{class n extends Mt{static HIGHLIGHTING=!0;constructor(){super(n.HIGHLIGHTING)}}return n})(),uT=(()=>{class n extends Mt{static PLACEHOLDER="Search...";constructor(){super(n.PLACEHOLDER)}}return n})(),MO=(()=>{class n{commandDispatcher;searchHighlightArchive;searchPlaceholderArchive;constructor(i,e,r){this.commandDispatcher=i,this.searchHighlightArchive=e,this.searchPlaceholderArchive=r}static services=[Yi,dT,uT];setSearchingConfig(i,e){i.highlighting!==void 0&&i.highlighting!==null&&this.searchHighlightArchive.next(e,i.highlighting),i.placeholder!==void 0&&i.placeholder!==null&&this.searchPlaceholderArchive.next(e,i.placeholder),i.phrase!==void 0&&i.phrase!==null&&this.searchOnInit(i.phrase,e),this.commandDispatcher.dispatch(new H0(e,i))}search(i,e){this.commandDispatcher.dispatch(new qp(e,i,!1))}searchOnInit(i,e){this.commandDispatcher.dispatch(new qp(e,i,!0))}}return n})(),hT=(()=>{class n extends Mt{static SEARCH_PHRASE="";constructor(){super(n.SEARCH_PHRASE)}}return n})(),nG=(()=>{class n{searchPhraseRepository;constructor(i){this.searchPhraseRepository=i}static services=[hT];forEvent(){return Yl}handle(i){i.ofMessageType("SearchPhraseSetDomainEvent")&&this.searchPhraseRepository.next(i.getAggregateId(),i.getPhrase())}}return n})(),mT=(()=>{class n extends Mt{static ENABLED=!1;constructor(){super(n.ENABLED)}}return n})(),rG=(()=>{class n{searchingEnabledArchive;constructor(i){this.searchingEnabledArchive=i}static services=[mT];forEvent(){return U0}handle(i){i.ofMessageType("ConfigSearchingSetEvent")&&this.searchingEnabledArchive.next(i.getAggregateId(),i.isEnabled())}}return n})(),RD=class extends ze{constructor(t){super(t,"RemoveSearchPhraseCommand")}},FD=class{domainEventPublisher=Q.resolve(lt);forCommand(){return RD}handle(t,i){t.removeSearchPhrase()}publish(t,i){this.domainEventPublisher.publish(new Wp(i.getAggregateId()))}},OD=class{defineAggregate(){return null}registerKey(){return ro}registerProviders(t){t.provide(W0),t.provide(MO)}registerCommandHandlers(){return[MD,iG,FD]}registerDomainEventHandler(){return[nG,rG]}registerMultiDomainEventHandler(){return[]}},oG=(()=>{class n extends ga{searchingEnabledArchive;searchPhraseArchive;searchHighlightArchive;searchPlaceholderArchive;constructor(i,e,r,o){super(),this.searchingEnabledArchive=i,this.searchPhraseArchive=e,this.searchHighlightArchive=r,this.searchPlaceholderArchive=o}static services=[mT,hT,dT,uT];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})(),PD=class extends ma{constructor(){super()}onSearchPhrase(t){return this.onEvent(t,Yl).pipe(ut(i=>i.isInitial()===!1),me(i=>i.getPhrase()),ut(i=>i!==null))}},aG=(()=>{class n extends Cr{searchDispatcher;constructor(i){super(),this.searchDispatcher=i}static services=[MO];setSearchingConfig(i,e){this.searchDispatcher.setSearchingConfig(i,e)}search(i,e){this.searchDispatcher.search(i,e)}}return n})(),ND=class{registerProviders(t){t.provide(Cr,aG),t.provide(ga,oG),t.provide(ma,PD),t.provide(hT),t.provide(dT),t.provide(uT),t.provide(mT)}};function sG(){new _n(new ND,new OD).init()}sG();function cG(){return Q.resolve(Cr)}function lG(){return Q.resolve(ga)}function dG(){return Q.resolve(ma)}var AO=(()=>{class n extends Fi{static forComponent(){return[]}static \u0275fac=(()=>{let i;return function(r){return(i||(i=Ge(n)))(r||n)}})();static \u0275mod=X({type:n});static \u0275inj=K({providers:[{provide:Cr,useFactory:cG},{provide:ga,useFactory:lG},{provide:ma,useFactory:dG}],imports:[le,fc,$i,so]})}return n})(),uG=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({imports:[le,$i,lT,AO]})}return n})(),hG=(()=>{class n extends Fi{static forComponent(){return[]}static \u0275fac=(()=>{let i;return function(r){return(i||(i=Ge(n)))(r||n)}})();static \u0275mod=X({type:n});static \u0275inj=K({imports:[le,ad,so,cT]})}return n})();var RO=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({})}return n})();var FO=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({})}return n})();var mG=[RO,FO],pG=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({imports:[le,ad,so,nT,hG,ds,mG]})}return n})();var gG=(()=>{class n extends Fi{static forComponent(){return[]}static \u0275fac=(()=>{let i;return function(r){return(i||(i=Ge(n)))(r||n)}})();static \u0275mod=X({type:n});static \u0275inj=K({imports:[le,ds]})}return n})(),G0=class extends ze{compositionId;fieldId;constructor(t,i,e){super(t,"ToggleSortCommand"),this.compositionId=i,this.fieldId=e}getCompositionId(){return this.compositionId}getFieldId(){return this.fieldId}},VD=class{domainEventPublisher=Q.resolve(lt);forCommand(){return G0}handle(t,i){let e=i.getAggregateId(),r=i.getCompositionId(),o=i.getFieldId(),a=t.toggleSort(o);this.publishSortEvent(e,r,o,a)}publish(t,i){}publishSortEvent(t,i,e,r){let o=r.map(a=>({direction:a.hasDirection(),fieldId:a.getField().getId()}));this.domainEventPublisher.publish(new Pp(t,i,o))}},$0=class extends ze{sortingConfig;constructor(t,i){super(t,"SetSortingCommand"),this.sortingConfig=i}getSortingConfig(){return this.sortingConfig}},jD=class extends Ze{constructor(t){super(t,null,"SortingSetEvent")}},LD=class{domainEventPublisher=Q.resolve(lt);forCommand(){return $0}handle(t,i){let e=i.getSortingConfig();t.setSortingConfig(e)}publish(t,i){this.domainEventPublisher.publish(new jD(i.getAggregateId()))}},Y0=class extends ze{compositionId;fieldId;sortOrder;constructor(t,i,e,r){super(t,"SetSortOrderCommand"),this.compositionId=i,this.fieldId=e,this.sortOrder=r}getCompositionId(){return this.compositionId}getFieldId(){return this.fieldId}getSortOrder(){return this.sortOrder}},BD=class{domainEventPublisher=Q.resolve(lt);forCommand(){return Y0}handle(t,i){let e=i.getAggregateId(),r=i.getCompositionId(),o=i.getFieldId(),a=i.getSortOrder(),c=t.setSortOrder(o,a);this.publishSortEvent(e,r,o,c)}publish(t,i){}publishSortEvent(t,i,e,r){let o=r.map(a=>({direction:a.hasDirection(),fieldId:a.getField().getId()}));this.domainEventPublisher.publish(new Vp(t,i,o))}},q0=class{commandDispatcher=Q.resolve(Yi);setSortingConfig(t,i){this.commandDispatcher.dispatch(new $0(i,t))}toggleSort(t,i,e){this.commandDispatcher.dispatch(new G0(e,i,t))}setSortOrder(t,i,e,r){this.commandDispatcher.dispatch(new Y0(r,e,t,i))}},zD=class{defineAggregate(){return null}registerKey(){return ro}registerProviders(t){t.provide(q0)}registerCommandHandlers(){return[VD,LD,BD]}registerDomainEventHandler(){return[]}registerMultiDomainEventHandler(){return[]}},fG=(()=>{class n extends Ir{sortingDispatcher;constructor(i){super(),this.sortingDispatcher=i}static services=[q0];setSortingConfig(i,e){this.sortingDispatcher.setSortingConfig(i,e)}toggleSort(i,e,r){this.sortingDispatcher.toggleSort(i,e,r)}setSortOrder(i,e,r,o){this.sortingDispatcher.setSortOrder(i,e,r,o)}}return n})(),HD=class{registerProviders(t){t.provide(Ir,fG)}};function bG(){new _n(new HD,new zD).init()}bG();function vG(){return Q.resolve(Ir)}var _G=(()=>{class n extends Fi{static forComponent(){return[]}static \u0275fac=(()=>{let i;return function(r){return(i||(i=Ge(n)))(r||n)}})();static \u0275mod=X({type:n});static \u0275inj=K({providers:[{provide:Ir,useFactory:vG}],imports:[le]})}return n})(),pT=(()=>{class n extends Mt{static default=[];constructor(){super(n.default)}}return n})(),UD=class{id;dataType;name;constructor(t,i,e){this.id=t,this.dataType=i,this.name=e}getFieldId(){return this.id}getId(){return this.id.getId()}getDataType(){return this.dataType}getName(){return this.name}},Q0=class{convert(t){return t.map(i=>this.convertOne(i))}convertOne(t){return new UD(t.getId(),t.getDataType(),t.getName())}},WD=class{fieldFactory;fields=new Map;constructor(t){this.fieldFactory=t}getField(t){return t===null?this.getAllFields()[0]:this.fields.get(t.getId())}getAllFieldIds(){return Array.from(this.fields.keys())}getAllFields(){return Array.from(this.fields.values())}getFieldsAsMap(){return this.fields}initFields(t){let i=this.fieldFactory.create(t);this.clear(),this.addFields(i)}addFields(t){for(let i of t)this.addField(i)}addField(t){this.fields.set(t.getId().toString(),t)}clear(){this.fields.clear()}},GD=class n extends _l{id;field;name;constructor(t,i,e){super(t),this.id=t,this.field=i,this.name=e}static of(t,i,e){return new n(t,i,e)}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(t){return this.field.getValue(t)}getDisplayValue(t){return this.field.getDisplayValue(t)}isSummaries(t){return this.field.isSummaries(t)}isSummariesEnabled(){return this.field.isSummariesEnabled()}search(t,i){return this.field.search(t,i)}filter(t,i){let e=this.field.getValue(t);return this.field.getDataType()===Me.NUMBER?this.field.filter(e,i):this.field.getDataType()===Me.BOOLEAN?this.field.filter(e,i):this.field.getDataType()===Me.STRING?this.field.filter(e,i):this.field.getDataType()===Me.DATE?this.field.filter(e,i):!0}sort(t,i,e){let r=e?this.field.getSortValue(t):this.field.getSortValue(i),o=e?this.field.getSortValue(i):this.field.getSortValue(t);return this.field.getDataType()===Me.NUMBER?this.field.sort(r,o):this.field.getDataType()===Me.BOOLEAN?this.field.sort(r,o):this.field.getDataType()===Me.STRING?this.field.sort(r,o):this.field.getDataType()===Me.DATE?this.field.sort(r,o):0}},$D=class{accessor;dataType;accessorMethod;matchers;constructor(t,i,e){this.accessor=t,this.dataType=i,this.matchers=e,typeof t=="string"?this.accessorMethod=r=>r.getSourceItem()[t]:typeof t=="function"?this.accessorMethod=r=>t(r.getSourceItem()):this.accessorMethod=r=>r}getDataType(){return this.dataType}getAccessor(){return this.accessor}getAccessorMethod(){return this.accessorMethod}getMatchers(){return this.matchers}getSearchAccessorMethod(){let t;return this.matchers.getSearchMatcher().ifPresent(i=>{t=i}),t?i=>{let e=this.accessorMethod(i);return t(e)}:i=>this.accessorMethod(i)}getValue(t){return this.accessorMethod(t)}getSortValue(t){let i=this.accessorMethod(t);return this.matchers.getSortMatcher().ifPresent(e=>{i=e(i)}),i}getSearchValue(t){let i=this.accessorMethod(t);return this.matchers.getSearchMatcher().ifPresent(e=>{i=e(i)}),i}},Kl=class extends $D{summariesEnabled=!0;summariesTypes;possibleSummaries;constructor(t,i,e,r){super(t,i,e),this.possibleSummaries=this.assignPossibleSummaries(),this.assignSummaries(r)}isSummaries(t){return this.isSummariesEnabled()?!!(this.summariesTypes&t):!1}isSummariesEnabled(){return this.summariesEnabled}setSummariesEnabled(t){this.summariesEnabled=t}assignSummaries(t){t&&Object.keys(t).length!==0?(t.enabled&&(this.summariesEnabled=!!t.enabled),t.summariesTypes?(this.summariesTypes=Ve.DISTINCT,t.summariesTypes.forEach(i=>{this.summariesTypes|=i})):this.summariesTypes=this.assignDefaultSummaries()):this.summariesTypes=this.assignDefaultSummaries()}},K0=class extends Kl{constructor(t,i,e){super(t,Me.UNKNOWN,i,e)}assignDefaultSummaries(){return Ve.DISTINCT}assignPossibleSummaries(){return Ve.COUNT|Ve.DISTINCT}search(t,i){return!1}sort(t,i){return 0}filter(t,i){return!1}equals(t,i){return!1}getDisplayValue(t){return t}},YD=class extends Kl{constructor(t,i,e){super(t,Me.NUMBER,i,e)}getField(){return this}assignDefaultSummaries(){return Ve.DISTINCT}assignPossibleSummaries(){return Ve.COUNT|Ve.DISTINCT|Ve.SUM|Ve.MIN|Ve.MAX|Ve.AVERAGE|Ve.MEDIAN}search(t,i){return!1}sort(t,i){let e=+t,r=+i;return e-r}filter(t,i){return t>i}equals(t,i){return this.getValue(t)===i}getDisplayValue(t){return`${t}`}},qD=class extends Kl{constructor(t,i,e){super(t,Me.STRING,i,e)}assignDefaultSummaries(){return Ve.DISTINCT}assignPossibleSummaries(){return Ve.COUNT|Ve.DISTINCT}search(t,i){let e=this.getSearchValue(t);return typeof e=="string"?e.toLowerCase().indexOf(i.toLowerCase())>-1:!1}sort(t,i){let e=""+t,r=""+i;return e.localeCompare(r)}filter(t,i){return t.toLowerCase().indexOf(i.toLowerCase())>-1}equals(t,i){return this.getValue(t)===i}getDisplayValue(t){return t}},QD=class extends Kl{constructor(t,i,e){super(t,Me.BOOLEAN,i,e)}assignDefaultSummaries(){return Ve.DISTINCT}assignPossibleSummaries(){return Ve.COUNT|Ve.DISTINCT|Ve.TRUTHY|Ve.FALSY}search(t,i){return!1}sort(t,i){let e=!!t,r=!!i;return e===r?0:r?-1:1}filter(t,i){return t===i}equals(t,i){return this.getValue(t)===i}getDisplayValue(t){return t?"True":"False"}},KD=class extends Kl{constructor(t,i,e){super(t,Me.DATE,i,e)}assignDefaultSummaries(){return Ve.DISTINCT}assignPossibleSummaries(){return Ve.COUNT|Ve.DISTINCT}search(t,i){return!1}sort(t,i){return t-i}filter(t,i){return!1}equals(t,i){return this.getValue(t).getTime()===i.getTime()}getDisplayValue(t){return t.toDateString()}},XD=class{matcher;sortMatcher;searchMatcher;constructor(t,i,e){this.matcher=t,this.sortMatcher=i,this.searchMatcher=e}getMatcher(){return bi.of(this.matcher)}getSortMatcher(){let t;return this.sortMatcher&&(t=this.sortMatcher),this.matcher&&(t=this.matcher),bi.of(t)}getSearchMatcher(){let t;return this.searchMatcher&&(t=this.searchMatcher),this.matcher&&(t=this.matcher),bi.of(t)}},X0=class{create(t){let i=this.createMatchers(t),e=t.type;return e===void 0&&(e=Me.STRING),e===Me.UNKNOWN?new K0(t.field,i,t.summaries):e===Me.NUMBER?new YD(t.field,i,t.summaries):e===Me.STRING?new qD(t.field,i):e===Me.BOOLEAN?new QD(t.field,i):e===Me.DATE?new KD(t.field,i):new K0(t.field,i,t.summaries)}createMatchers(t){let i=t.matcher,e;return t.sorting&&(e=t.sorting.matcher),new XD(i,e)}},Z0=class{generateId(){let t=uc.generate();return new Fl(t)}},OO=(()=>{class n{fieldIdGenerator;dataFieldFactory;constructor(i,e){this.fieldIdGenerator=i,this.dataFieldFactory=e}static services=[Z0,X0];create(i){return i?i.map((e,r)=>{let o=this.fieldIdGenerator.generateId(),a=this.dataFieldFactory.create(e);return new GD(o,a,this.getFieldName(e,r))}):[]}getFieldName(i,e){return typeof i.field=="string"?i.field.toLowerCase():"Field #"+e}}return n})(),PO=(()=>{class n{fieldFactory;constructor(i){this.fieldFactory=i}static services=[OO];create(){return new WD(this.fieldFactory)}}return n})(),ZD=class{forCommand(){return _p}handle(t,i){let e=i.getFieldConfigs();t.createFields(e)}},yG=(()=>{class n{fieldArchive;fieldConverter;constructor(i,e){this.fieldArchive=i,this.fieldConverter=e}static services=[pT,Q0];forEvent(){return Bu}handle(i){if(i.ofMessageType("FieldsInitedEvent")){let e=this.fieldConverter.convert(i.getFields());this.fieldArchive.next(i.getAggregateId(),e)}}}return n})(),JD=class{defineAggregate(){return null}registerKey(){return ro}registerProviders(t){t.provide(PO),t.provide(OO),t.provide(Z0),t.provide(X0)}registerCommandHandlers(){return[ZD]}registerDomainEventHandler(){return[yG]}registerMultiDomainEventHandler(){return[]}},wG=(()=>{class n extends $l{fieldReadModelArchive;constructor(i){super(),this.fieldReadModelArchive=i}static services=[pT];onFields(i){return this.fieldReadModelArchive.on(i)}findFields(i){return this.fieldReadModelArchive.find(i)}}return n})(),xG=(()=>{class n extends zl{commandDispatcher;constructor(i){super(),this.commandDispatcher=i}static services=[Yi];initFields(i,e){this.commandDispatcher.dispatch(new _p(e,i))}}return n})(),eS=class{registerProviders(t){t.provide(zl,xG),t.provide(pT),t.provide(Q0),t.provide($l,wG)}};function CG(){new _n(new eS,new JD).init()}CG();function IG(){return Q.resolve(zl)}function kG(){return Q.resolve($l)}var DG=(()=>{class n extends Fi{static forComponent(){return[]}static \u0275fac=(()=>{let i;return function(r){return(i||(i=Ge(n)))(r||n)}})();static \u0275mod=X({type:n});static \u0275inj=K({providers:[{provide:zl,useFactory:IG},{provide:$l,useFactory:kG}],imports:[le]})}return n})(),J0=class extends ze{enabled;constructor(t,i){super(t,"StructureSetSummariesEnabledCommand"),this.enabled=i}isEnabled(){return this.enabled}},SG="StructureSummariesEnabledSetEvent",e_=class extends Ze{enabled;constructor(t,i){super(t,i,SG),this.enabled=i}isEnabled(){return this.enabled}},EG=(()=>{class n{structureSourceDomainEventPublisher;domainEventPublisher=Q.resolve(lt);constructor(i){this.structureSourceDomainEventPublisher=i}static services=[Ql];forCommand(){return J0}handle(i,e){let r=e.isEnabled();i.setSummariesEnabled(r)}publish(i,e){let r=e.isEnabled(),o=i.getEvents();this.domainEventPublisher.publish(new e_(e.getAggregateId(),r)),this.structureSourceDomainEventPublisher.publish(o)}}return n})(),tS=class extends qt{summarizedValues;constructor(t,i){super(t,"StructureSummariesChangedAggregateEvent"),this.summarizedValues=i}toDomainEvent(){return new Qp(this.getAggregateId(),this.summarizedValues)}getSummaries(){return this.summarizedValues}},iS=(()=>{class n{calculators;static DEFAULT_ENABLED=!1;structureId;enabled;values=new Map;constructor(i,e){this.calculators=e,this.structureId=i,this.enabled=n.DEFAULT_ENABLED}calculate(i,e){if(!this.enabled)return[];let r=new Map;return this.calculators.forEach(o=>{let a=o.calculate(i,e);a&&Array.from(a.keys()).forEach(c=>{r.set(c,a.get(c))})}),r.size>0?[new tS(this.structureId,r)]:[]}setEnabled(i){this.enabled=i}add(){}remove(){}update(){}}return n})(),Xu=class extends Mt{constructor(){super(iS.DEFAULT_ENABLED)}init(t){this.next(t,iS.DEFAULT_ENABLED)}},TG=(()=>{class n{summariesEnabledArchive;constructor(i){this.summariesEnabledArchive=i}static services=[Xu];forEvent(){return e_}handle(i){i.ofMessageType("StructureSummariesEnabledSetEvent")&&this.summariesEnabledArchive.next(i.getAggregateId(),i.isEnabled())}}return n})(),Xl=class{calculate(t,i){let e=t.filter(c=>this.forDataType(c.getDataType()));if(!e||e.length===0||i.length===0)return null;let r=new Map,o=new Map;e.forEach(c=>{let m=c.getKey();r.set(m,0),o.set(m,new Set),this.prepare(c)}),i.forEach(c=>{e.forEach(m=>{let x=m.getKey(),I=m.getValue(c);if(I!==null||I!==void 0||I!==""){if(m.isSummaries(Ve.COUNT)){let O=r.get(x);r.set(x,O+1)}m.isSummaries(Ve.DISTINCT)&&o.get(x).add(I)}this.aggregate(m,I)})}),e.forEach(c=>{this.postCalculate(c,i)});let a=new Map;return e.forEach(c=>{let m=c.getKey(),x=this.generateAggregatedValues(c);c.isSummaries(Ve.COUNT)&&x.setCount(r.get(m)),c.isSummaries(Ve.DISTINCT)&&x.setDistinct(o.get(m).size),a.set(m,x)}),a}},Zl=class{count;distinct;setCount(t){this.count=t}setDistinct(t){this.distinct=t}},nS=class extends Zl{truthy;falsy;constructor(t,i){super(),this.truthy=t,this.falsy=i}},t_=class extends Xl{truthy=new Map;falsy=new Map;constructor(){super()}forDataType(t){return t===Me.BOOLEAN}prepare(t){let i=t.getKey();t.isSummaries(Ve.TRUTHY)&&this.truthy.set(i,0),t.isSummaries(Ve.FALSY)&&this.falsy.set(i,0)}postCalculate(t,i){}aggregate(t,i){let e=i,r=t.getKey(),o=this.truthy.get(r),a=this.falsy.get(r);e?t.isSummaries(Ve.TRUTHY)&&this.truthy.set(r,o+1):t.isSummaries(Ve.FALSY)&&this.falsy.set(r,a+1)}generateAggregatedValues(t){let i=t.getKey();return new nS(this.truthy.get(i),this.falsy.get(i))}},rS=class extends Zl{constructor(){super()}},i_=class extends Xl{constructor(){super()}forDataType(t){return t===Me.DATE}prepare(t){}postCalculate(t,i){}aggregate(t,i){}generateAggregatedValues(t){return new rS}},oS=class extends Zl{sum;min;max;average;median;constructor(t,i,e,r,o){super(),this.sum=this.setValueWithPrecision(t),this.min=this.setValueWithPrecision(i),this.max=this.setValueWithPrecision(e),this.average=this.setValueWithPrecision(r),this.median=this.setValueWithPrecision(o)}setValueWithPrecision(t){return!t&&t!==0?null:t===0?0:+t.toFixed(2)}},n_=class extends Xl{sum=new Map;min=new Map;max=new Map;average=new Map;median=new Map;constructor(){super()}forDataType(t){return t===Me.NUMBER}prepare(t){let i=t.getKey();this.sum.set(i,0),this.min.set(i,Number.MAX_SAFE_INTEGER),this.max.set(i,0)}postCalculate(t,i){let e=t.getKey();t.isSummaries(Ve.AVERAGE)&&this.average.set(e,this.sum.get(e)/i.length),t.isSummaries(Ve.MEDIAN)&&this.median.set(e,t.getValue(i[Math.floor(i.length/2)]))}aggregate(t,i){let e=+i,r=t.getKey(),o=this.sum.get(r),a=this.min.get(r),c=this.max.get(r);(t.isSummaries(Ve.SUM)||t.isSummaries(Ve.AVERAGE))&&this.sum.set(r,o+e),t.isSummaries(Ve.MIN)&&a>e&&this.min.set(r,e),t.isSummaries(Ve.MAX)&&c<e&&this.max.set(r,e)}generateAggregatedValues(t){let i=t.getKey(),e=t.isSummaries(Ve.SUM)?this.sum.get(i):void 0,r=t.isSummaries(Ve.MIN)?this.min.get(i):void 0,o=t.isSummaries(Ve.MAX)?this.max.get(i):void 0,a=t.isSummaries(Ve.AVERAGE)?this.average.get(i):void 0,c=t.isSummaries(Ve.MEDIAN)?this.median.get(i):void 0;return new oS(e,r,o,a,c)}},aS=class extends Zl{constructor(){super()}},r_=class extends Xl{constructor(){super()}forDataType(t){return t===Me.STRING}prepare(t){}postCalculate(t,i){}aggregate(t,i){}generateAggregatedValues(t){return new aS}},sS=class extends Zl{constructor(){super()}},o_=class extends Xl{constructor(){super()}forDataType(t){return t===Me.UNKNOWN}prepare(t){}postCalculate(t,i){}aggregate(t,i){}generateAggregatedValues(t){return new sS}},Tl="GUI - Summaries Calculators",NO=(()=>{class n{calculators;constructor(i){this.calculators=i}static services=[{inject:Tl,collection:!0}];create(i){return new iS(i,this.calculators)}}return n})(),a_=class{commandDispatcher=Q.resolve(Yi);setSummariesEnabled(t,i){this.commandDispatcher.dispatch(new J0(i,t))}},VO=(()=>{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})(),Xp=class n extends Mt{static default=new VO;constructor(){super(n.default)}},s_=class{convert(t){let i=new VO;return t.top!==void 0&&t.top!==null&&i.setTop(t.top),t.bottom!==void 0&&t.bottom!==null&&i.setBottom(t.bottom),i}},cS=class{defineAggregate(){return null}registerKey(){return ro}registerProviders(t){t.provide(NO),t.provide(a_),t.provide(Xp),t.provide(s_),t.provideCollection(Tl,t_),t.provideCollection(Tl,i_),t.provideCollection(Tl,n_),t.provideCollection(Tl,r_),t.provideCollection(Tl,o_)}registerCommandHandlers(){return[EG]}registerDomainEventHandler(){return[TG]}registerMultiDomainEventHandler(){return[]}},MG=(()=>{class n extends Hl{summariesEnabledArchive;structureSummariesArchive;constructor(i,e){super(),this.summariesEnabledArchive=i,this.structureSummariesArchive=e}static services=[Xu,Xp];onEnabled(i){return this.summariesEnabledArchive.on(i)}onTopEnabled(i){return this.onEnabled(i).pipe(yr(e=>this.structureSummariesArchive.on(i).pipe(me(r=>e&&r.isTopEnabled()))))}onBottomEnabled(i){return this.onEnabled(i).pipe(yr(e=>this.structureSummariesArchive.on(i).pipe(me(r=>e&&r.isBottomEnabled()))))}}return n})(),AG=(()=>{class n extends xc{summariesDispatcher;configConverter;structureSummariesConfigArchive;constructor(i,e,r){super(),this.summariesDispatcher=i,this.configConverter=e,this.structureSummariesConfigArchive=r}static services=[a_,s_,Xp];setSummariesEnabled(i,e){this.summariesDispatcher.setSummariesEnabled(i,e)}setConfig(i,e){let r=this.configConverter.convert(i);this.setSummariesEnabled(i.enabled,e),this.structureSummariesConfigArchive.next(e,r)}}return n})(),lS=class extends Gl{constructor(){super()}onSummariesChanged(t){return this.onEvent(t,Qp)}},dS=class{registerProviders(t){t.provide(xc,AG),t.provide(Gl,lS),t.provide(Hl,MG),t.provide(Xu)}};function RG(){new _n(new dS,new cS).init()}function up(n){return{provide:Tl,useClass:n,multi:!0}}RG();function FG(){return Q.resolve(xc)}function OG(){return Q.resolve(Hl)}function PG(){return Q.resolve(Gl)}var NG=(()=>{class n extends Fi{static forComponent(){return[]}static \u0275fac=(()=>{let i;return function(r){return(i||(i=Ge(n)))(r||n)}})();static \u0275mod=X({type:n});static \u0275inj=K({providers:[{provide:xc,useFactory:FG},{provide:Hl,useFactory:OG},{provide:Gl,useFactory:PG},up(t_),up(i_),up(n_),up(r_),up(o_)],imports:[le,fc,ds,so]})}return n})(),c_=class{start;end;margin;constructor(t,i,e){this.start=t,this.end=i,this.margin=e}getStart(){return this.start}getEnd(){return this.end}getMargin(){return this.margin}},VG=(()=>{let n=class{containerHeight=bi.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=bi.of(i))}setSourceSize(i){this.sourceHeight=i}getContainerHeight(){return this.containerHeight.getValueOrNullOrThrowError()>this.sourceHeight?this.sourceHeight:this.containerHeight.getValueOrNullOrThrowError()}};return n=Vd([C1],n),n})(),l_=class extends Ze{position;constructor(t,i){super(t,i,"ScrollBarPositionSetEvent"),this.position=i}getPosition(){return this.position}},uS=class extends qt{position;constructor(t,i){super(t,"ScrollBarPositionSetAggregateEvent"),this.position=i}toDomainEvent(){return new l_(this.getAggregateId(),this.position)}},hp,yc,hS=(yc=class{structureId;enabled;rowHeight=hp.ROW_HEIGHT;hiddenItemsTop=hp.HIDDEN_ITEMS_TOP;hiddenItemsBottom=hp.HIDDEN_ITEMS_BOTTOM;container=new VG;scrollPosition;range;sourceSize;logger;constructor(t,i=!1,e=0,r=0,o=0,a,c,m){this.structureId=t,this.enabled=i,this.sourceSize=r,this.container.setSourceSize(this.sourceSize*this.rowHeight),this.container.setContainerHeight(e),this.scrollPosition=o,Number.isInteger(a)&&(this.rowHeight=a),Number.isInteger(c)&&(this.hiddenItemsTop=c),Number.isInteger(m)&&(this.hiddenItemsBottom=m),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 c_(0,this.sourceSize,0);return}let t=Math.ceil(this.container.getHeight()/this.rowHeight),i=Math.floor(this.scrollPosition/this.rowHeight),e=i+t+this.hiddenItemsBottom,r=i;r+t>=this.sourceSize&&(r=this.sourceSize-t);let o=Math.max(i-this.hiddenItemsTop,0);return e>this.sourceSize&&(e=this.sourceSize,o=e-t),this.range=new c_(o,e,r),{start:o,end:e,topMargin:r}}setEnabled(t){this.enabled=t,this.enabled&&!this.container.isContainerHeightProperForVirtualScroll()&&this.logger.warn("Height needs to be specified in order for virtual scroll to work."),this.calculateRange()}setSourceSize(t=0){this.sourceSize=t,this.container.setSourceSize(this.sourceSize*this.rowHeight),this.calculateRange()}setTopHiddenItemsCount(t){this.hiddenItemsTop=t,this.calculateRange()}setBottomHiddenItemsCount(t){this.hiddenItemsBottom=t,this.calculateRange()}setScrollPosition(t){this.scrollPosition=t,this.calculateRange()}scrollToIndex(t){t>=this.sourceSize&&(t=this.sourceSize),t<-1&&(t=0);let i=t*this.rowHeight;return new uS(this.structureId,i)}setViewportHeight(t){this.container.setContainerHeight(t),this.calculateRange()}setRowHeight(t){this.rowHeight=t,this.container.setSourceSize(this.sourceSize*this.rowHeight),this.calculateRange()}setLogger(t){this.logger=t}calcFullHeight(){return this.sourceSize*this.rowHeight}},hp=yc,Mf(yc,"ROW_HEIGHT",42),Mf(yc,"HIDDEN_ITEMS_TOP",5),Mf(yc,"HIDDEN_ITEMS_BOTTOM",2),yc);hS=hp=Vd([C1],hS);var jO=(()=>{class n{logger;constructor(i){this.logger=i}static services=[Sc];create(i,e=!1,r=-1,o=0,a=0,c,m,x){let I=new hS(i,e,r,o,a,c,m,x);return I.setLogger(this.logger),I}}return n})(),d_=class extends ze{position;constructor(t,i){super(t,"SetScrollPositionCommand"),this.position=i}getPosition(){return this.position}},Zp=class extends Ze{constructor(t){super(t,null,"ScrollPositionSetEvent")}},mS=class{domainEventPublisher=Q.resolve(lt);forCommand(){return d_}handle(t,i){let e=i.getPosition();t.setScrollPosition(e)}publish(t,i){this.domainEventPublisher.publish(new Zp(i.getAggregateId()))}},u_=class extends ze{enabled;constructor(t,i){super(t,"SetVerticalScrollEnabledCommand"),this.enabled=i}isEnabled(){return this.enabled}},Jp=class extends Ze{constructor(t){super(t,null,"VerticalScrollEnabledSetEvent")}},pS=class{domainEventPublisher=Q.resolve(lt);forCommand(){return u_}handle(t,i){let e=i.isEnabled();t.setVerticalFormationEnabled(e)}publish(t,i){this.domainEventPublisher.publish(new Jp(i.getAggregateId()))}},h_=class extends ze{theme;constructor(t,i){super(t,"SetRowHeightBasedOnThemeCommand"),this.theme=i}getTheme(){return this.theme}},eg=class extends Ze{constructor(t){super(t,null,"RowHeightSetBasedOnThemeEvent")}},gS=class{domainEventPublisher=Q.resolve(lt);forCommand(){return h_}handle(t,i){let e=i.getTheme();t.setTheme(e)}publish(t,i){this.domainEventPublisher.publish(new eg(i.getAggregateId()))}},m_=class extends ze{rowHeight;constructor(t,i){super(t,"SetRowHeightCommand"),this.rowHeight=i}getRowHeight(){return this.rowHeight}},tg=class extends Ze{constructor(t){super(t,null,"RowHeightSetEvent")}},fS=class{domainEventPublisher=Q.resolve(lt);forCommand(){return m_}handle(t,i){let e=i.getRowHeight();t.getVerticalFormation().setRowHeight(e)}publish(t,i){this.domainEventPublisher.publish(new tg(i.getAggregateId()))}},p_=class extends ze{height;constructor(t,i){super(t,"StructureSetHeightCommand"),this.height=i}getHeight(){return this.height}},ig=class extends Ze{constructor(t){super(t,null,"StructureHeightSetEvent")}},bS=class{domainEventPublisher=Q.resolve(lt);forCommand(){return p_}handle(t,i){let e=i.getHeight();t.setHeight(e)}publish(t,i){this.domainEventPublisher.publish(new ig(i.getAggregateId()))}},gT=(()=>{class n extends Mt{static DEFAULT_POSITION=0;constructor(){super(n.DEFAULT_POSITION)}}return n})(),jG=(()=>{class n{positionRepository;constructor(i){this.positionRepository=i}static services=[gT];forEvent(){return l_}handle(i){i.ofMessageType("ScrollBarPositionSetEvent")&&this.positionRepository.next(i.getAggregateId(),i.getPosition())}}return n})(),g_=class extends ze{position;constructor(t,i){super(t,"SetScrollBarPositionCommand"),this.position=i}getPosition(){return this.position}},vS=class{forCommand(){return g_}handle(t,i){let e=i.getPosition();t.scrollToIndex(e)}},f_=class{commandDispatcher=Q.resolve(Yi);setVirtualScrollEnabled(t,i){this.commandDispatcher.dispatch(new u_(i,t))}scrollTo(t,i){this.commandDispatcher.dispatch(new g_(i,t))}setScrollPosition(t,i){this.commandDispatcher.dispatch(new d_(i,t))}},_S=class{defineAggregate(){return null}registerKey(){return ro}registerProviders(t){t.provide(jO),t.provide(f_)}registerCommandHandlers(){return[mS,pS,gS,fS,bS,vS]}registerDomainEventHandler(){return[jG]}registerMultiDomainEventHandler(){return[]}},LG=(()=>{let n=class{enabled;topMargin;sourceHeight;viewportHeight;rowHeight;constructor(i,e,r,o,a){this.enabled=i,this.topMargin=e,this.sourceHeight=r,this.viewportHeight=o,this.rowHeight=a}isEnabled(){return this.enabled}getTopMargin(){return this.topMargin}getSourceHeight(){return this.sourceHeight}getViewPortHeight(){return this.viewportHeight}getRowHeight(){return this.rowHeight}};return n=Vd([_v],n),n})(),b_=class{convert(t){let i=t.isEnabled(),e=t.getTopMargin(),r=t.getSourceHeight(),o=t.getViewPortHeight(),a=t.getRowHeight();return new LG(i,e,r,o,a)}},Zu=class extends Ze{constructor(t){super(t,null,"StructureCreatedEvent")}},ng=class extends wl{},BG=(()=>{let n=class{loading;constructor(i){this.loading=i}isLoading(){return this.loading}};return n=Vd([_v],n),n})(),v_=class{convert(t){return new BG(t.isLoading())}},yS=class extends ep{paging;entities;source;verticalFormation;constructor(t,i,e,r,o){super(t),this.paging=i,this.entities=e,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()}},LO=(()=>{class n{pagingConverter;sourceConverter;verticalFormationConverter;constructor(i,e,r){this.pagingConverter=i,this.sourceConverter=e,this.verticalFormationConverter=r}static services=[$v,v_,b_];convert(i){let e=i.getPaging(),r=i.getEntities(),o=i.getSource(),a=i.getVerticalFormation();return new yS(i.getId().toReadModelRootId(),this.pagingConverter.convert(e),this.convertSource(r),this.sourceConverter.convert(o),this.verticalFormationConverter.convert(a))}convertSource(i){return i.map(e=>new Yp(e.sourceItem,e.getPosition(),e.getId().toString(),e.getVersion()))}}return n})(),fT=(()=>{class n extends tp{inMemoryProjectStore;structureConverter;constructor(i,e){super(i),this.inMemoryProjectStore=i,this.structureConverter=e}static services=[ng,LO];toReadModel(i){return this.structureConverter.convert(i)}}return n})(),Jl=class extends Ka{},ed=class extends Jl{theme;constructor(t,i){super(t,i,"SchemaThemeSetEvent"),this.theme=i}getTheme(){return this.theme}},rg=class extends Ze{constructor(t){super(t,null,"UniqueFilterUnselectedEvent")}},og=class extends Ze{constructor(t){super(t,null,"AllUniqueFilterUnselectedEvent")}},ag=class extends Ze{constructor(t){super(t,null,"AllUniqueFilterSelectedEvent")}},sg=class extends Ze{constructor(t){super(t,null,"UniqueFilterSelectedEvent")}},BO=(()=>{class n extends sn{inMemoryStructureReadStore;verticalFormation=new Map;verticalFormation$=new Xn(1);domainEventBus=Q.resolve(Kr);constructor(i){super(),this.inMemoryStructureReadStore=i,this.domainEventBus.ofEvents([Zu,Jp,ql,ig,tg,ed,eg,Zp,Yl,rg,og,ag,sg,zu,Dp,Ec]).pipe(this.hermesTakeUntil()).subscribe(e=>{let r=e.getAggregateId();this.inMemoryStructureReadStore.getById(r).ifPresent(a=>{let c=a.getVerticalFormation();this.next(r,c)})})}static services=[fT];onVerticalScrollEnabled(i){return this.onVerticalFormation(i).pipe(me(e=>e.isEnabled()),Xr())}onRowHeight(i){return this.onVerticalFormation(i).pipe(me(e=>e.getRowHeight()),Xr())}onContainerHeight(i){return this.onVerticalFormation(i).pipe(me(e=>e.getViewPortHeight()),Xr())}onTopMargin(i){return this.onVerticalFormation(i).pipe(me(e=>e.getTopMargin()),Xr())}onVerticalFormation(i){return this.verticalFormation$.toObservable().pipe(ut(e=>{let r=i.getId();return e.has(r)}),me(e=>e.get(i.getId())))}next(i,e){this.verticalFormation.set(i.toString(),e),this.verticalFormation$.next(this.verticalFormation)}}return n})(),zG=(()=>{class n extends ls{verticalFormationRepository;positionRepository;constructor(i,e){super(),this.verticalFormationRepository=i,this.positionRepository=e}static services=[BO,gT];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})(),td=class{constructor(){}},HG=(()=>{class n extends td{verticalFormationDispatcher;constructor(i){super(),this.verticalFormationDispatcher=i}static services=[f_];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,e){this.verticalFormationDispatcher.scrollTo(i,e)}setScrollPosition(i,e){this.verticalFormationDispatcher.setScrollPosition(i,e)}}return n})(),wS=class{registerProviders(t){t.provide(b_),t.provide(BO),t.provide(ls,zG),t.provide(td,HG),t.provide(gT)}};function UG(){new _n(new wS,new _S).init()}UG();function WG(){return Q.resolve(td)}function GG(){return Q.resolve(ls)}var $G=(()=>{class n extends Fi{static forComponent(){return[]}static \u0275fac=(()=>{let i;return function(r){return(i||(i=Ge(n)))(r||n)}})();static \u0275mod=X({type:n});static \u0275inj=K({providers:[{provide:td,useFactory:WG},{provide:ls,useFactory:GG}],imports:[le]})}return n})(),__=class extends pl{},y_=class extends wl{},zO=(()=>{class n extends yl{constructor(i){super(i)}static services=[y_]}return n})(),HO=(()=>{class n extends __{inMemorySchemaAggregateStore;constructor(i){super(),this.inMemorySchemaAggregateStore=i}static services=[zO];findById(i){return this.inMemorySchemaAggregateStore.findById(i)}save(i){this.inMemorySchemaAggregateStore.save(i)}}return n})(),Ju=class extends dc{},w_=class extends Ju{theme;constructor(t,i){super(t,"SetSchemaThemeCommand"),this.theme=i}getTheme(){return this.theme}},xS=class{forCommand(){return w_}handle(t,i){let e=i.getTheme();t.changeTheme(e)}},x_=class extends Ju{coloring;constructor(t,i){super(t,"SetRowColoringCommand"),this.coloring=i}getColoring(){return this.coloring}},CS=class{forCommand(){return x_}handle(t,i){let e=i.getColoring();t.setRowColoring(e)}},C_=class extends Ju{enabled;constructor(t,i){super(t,"SetSchemaHorizontalGridCommand"),this.enabled=i}isEnabled(){return this.enabled}},IS=class{domainEventPublisher=Q.resolve(lt);forCommand(){return C_}handle(t,i){let e=i.isEnabled();t.setHorizontalGrid(e)}publish(t,i){this.domainEventPublisher.publishFromAggregate(t)}},I_=class extends Ju{enabled;constructor(t,i){super(t,"SetSchemaVerticalGridCommand"),this.enabled=i}isEnabled(){return this.enabled}},kS=class{domainEventPublisher=Q.resolve(lt);forCommand(){return I_}handle(t,i){let e=i.isEnabled();t.setVerticalGrid(e)}publish(t,i){this.domainEventPublisher.publishFromAggregate(t)}},cg=class extends Mt{constructor(){super()}},eh=class extends Jl{rowColoring;constructor(t,i){super(t,i,"RowColoringSetEvent"),this.rowColoring=i}getRowColoring(){return this.rowColoring}},th=class extends Jl{horizontalGrid;constructor(t,i){super(t,i,"SchemaHorizontalGridSetEvent"),this.horizontalGrid=i}getHorizontalGrid(){return this.horizontalGrid}},ih=class extends Jl{verticalGrid;constructor(t,i){super(t,i,"SchemaVerticalGridSetEvent"),this.verticalGrid=i}getVerticalGrid(){return this.verticalGrid}},DS=class{verticalGrid;horizontalGrid;theme;rowColoring;constructor(t,i,e,r){this.verticalGrid=t,this.horizontalGrid=i,this.theme=e,this.rowColoring=r}getRowColoring(){return this.rowColoring}},YG=(()=>{class n{schemaCssClassesRepository;rowColoring;horizontalGrid;verticalGrid;schemaTheme;constructor(i){this.schemaCssClassesRepository=i}static services=[cg];forEvents(){return[ed,eh,th,ih]}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 DS(this.verticalGrid,this.horizontalGrid,this.schemaTheme,this.rowColoring))}}return n})(),MF="SchemaAggregate",k_=class extends Ao{constructor(){super()}forEvent(){return ih}},D_=class extends Ao{constructor(){super()}forEvent(){return ed}},S_=class extends Ao{constructor(){super()}forEvent(){return eh}},E_=class extends Ao{constructor(){super()}forEvent(){return th}},T_=class extends ip{constructor(t){super(t,"CreateSchemaCommand")}},SS=class{forCommand(){return T_}},id=class extends ml{},ES=class extends id{theme;constructor(t,i){super(t,"SchemaThemeSetAggregateEvent"),this.theme=i}toDomainEvent(){return new ed(this.getAggregateId(),this.theme)}},TS=class extends id{rowColoring;constructor(t,i){super(t,"RowColoringSetEvent"),this.rowColoring=i}toDomainEvent(){return new eh(this.getAggregateId(),this.rowColoring)}},MS=class extends id{verticalGrid;constructor(t,i){super(t,"SchemaHorizontalGridSetEvent"),this.verticalGrid=i}toDomainEvent(){return new ih(this.getAggregateId(),this.verticalGrid)}},AS=class extends id{horizontalGrid;constructor(t,i){super(t,"SchemaHorizontalGridSetEvent"),this.horizontalGrid=i}toDomainEvent(){return new th(this.getAggregateId(),this.horizontalGrid)}},RS=class extends Jl{constructor(t){super(t,null,"SchemaCreatedEvent")}},FS=class extends id{constructor(t){super(t,"SchemaCreatedAggregateEvent")}toDomainEvent(){return new RS(this.getAggregateId())}},M_=class n extends gl{static DEFAULT_THEME=Te.GENERIC;static DEFAULT_ROW_COLORING=ui.ODD;static DEFAULT_VERTICAL_GRID=!0;static DEFAULT_HORIZONTAL_GRID=!0;horizontalGrid;verticalGrid;theme;rowColoring;constructor(t){super(t,"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 FS}changeTheme(t){this.setTheme(t),t===Te.MATERIAL&&(this.setRowColoring(ui.NONE),this.setVerticalGrid(!1)),t===Te.LIGHT&&(this.setRowColoring(ui.NONE),this.setVerticalGrid(!1)),t===Te.DARK&&(this.setRowColoring(ui.NONE),this.setVerticalGrid(!1)),t===Te.GENERIC&&this.setRowColoring(ui.ODD)}setRowColoring(t){this.rowColoring=t,this.addEvent(new TS(this.getId(),this.rowColoring))}setVerticalGrid(t){this.verticalGrid=t,this.addEvent(new MS(this.getId(),this.verticalGrid))}setHorizontalGrid(t){this.horizontalGrid=t,this.addEvent(new AS(this.getId(),this.horizontalGrid))}setTheme(t){this.theme=t,this.addEvent(new ES(this.getId(),this.theme))}},OS=class extends hl{constructor(){super()}create(t){return new M_(t)}},lg=class extends Mt{constructor(){super()}},dg=class extends Mt{constructor(){super()}},PS=class{defineAggregate(){return{aggregateKey:MF,createCommandHandler:SS,factory:OS,repository:HO}}registerKey(){return MF}registerProviders(t){t.provide(lg),t.provide(dg)}registerCommandHandlers(){return[xS,CS,IS,kS]}registerDomainEventHandler(){return[D_,E_,S_,k_]}registerMultiDomainEventHandler(){return[YG]}},A_=class{commandDispatcher=Q.resolve(Yi);create(t){this.commandDispatcher.dispatch(new T_(t))}setTheme(t,i){this.commandDispatcher.dispatch(new w_(i,t))}setRowColoring(t,i){this.commandDispatcher.dispatch(new x_(i,t))}setVerticalGrid(t,i){this.commandDispatcher.dispatch(new I_(i,t))}setHorizontalGrid(t,i){this.commandDispatcher.dispatch(new C_(i,t))}},qG=(()=>{class n extends ir{schemaDispatcher;structurePublisher;fabricModalThemeService;schemaRowClassArchive;schemaRowStyleArchive;constructor(i,e,r,o,a){super(),this.schemaDispatcher=i,this.structurePublisher=e,this.fabricModalThemeService=r,this.schemaRowClassArchive=o,this.schemaRowStyleArchive=a}static services=[A_,nr,Jr,lg,dg];create(i){this.schemaDispatcher.create(i.toAggregateId())}setTheme(i,e,r){this.schemaDispatcher.setTheme(i,e.toAggregateId()),this.fabricModalThemeService.changeTheme(this.toFabricTheme(i)),this.structurePublisher.setRowHeightBasedOnTheme(i,r)}setRowColoring(i,e){let r=this.toSchemaRowColoring(i);this.schemaDispatcher.setRowColoring(r,e.toAggregateId())}setVerticalGrid(i,e){this.schemaDispatcher.setVerticalGrid(i,e.toAggregateId())}setHorizontalGrid(i,e){this.schemaDispatcher.setHorizontalGrid(i,e.toAggregateId())}setRowClass(i,e){return this.schemaRowClassArchive.next(e.toAggregateId(),i)}setRowStyle(i,e){return this.schemaRowStyleArchive.next(e.toAggregateId(),i)}toSchemaRowColoring(i){switch(i){case Oi.NONE:return ui.NONE;case Oi.ODD:return ui.ODD;case Oi.EVEN:return ui.EVEN;default:return ui.NONE}}toFabricTheme(i){switch(i){case Te.DARK:return bt.DARK;case Te.FABRIC:return bt.FABRIC;case Te.GENERIC:return bt.GENERIC;case Te.LIGHT:return bt.LIGHT;case Te.MATERIAL:return bt.MATERIAL;default:return bt.FABRIC}}}return n})(),QG=(()=>{class n extends kr{schemaCssClassesRepository;schemaThemeRepository;schemaHorizontalGridRepository;schemaRowColoringRepository;schemaVerticalGridRepository;schemaRowClassArchive;schemaRowStyleArchive;constructor(i,e,r,o,a,c,m){super(),this.schemaCssClassesRepository=i,this.schemaThemeRepository=e,this.schemaHorizontalGridRepository=r,this.schemaRowColoringRepository=o,this.schemaVerticalGridRepository=a,this.schemaRowClassArchive=c,this.schemaRowStyleArchive=m}static services=[cg,D_,E_,S_,k_,lg,dg];onTheme(i){return this.schemaThemeRepository.on(i.toAggregateId())}onceTheme(i){return Cl(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})(),NS=class extends pa{constructor(){super()}onThemeChanged(t){return this.onEvent(t,ed).pipe(me(i=>i.getTheme()))}onHorizontalGridChanged(t){return this.onEvent(t,th).pipe(me(i=>i.getHorizontalGrid()))}onVerticalGridChanged(t){return this.onEvent(t,ih).pipe(me(i=>i.getVerticalGrid()))}onRowColoring(t){return this.onEvent(t,eh).pipe(me(i=>i.getRowColoring()))}},VS=class{registerProviders(t){t.provide(A_),t.provide(__,HO),t.provide(zO),t.provide(y_),t.provide(ir,qG),t.provide(kr,QG),t.provide(pa,NS),t.provide(cg)}},KG=()=>{new _n(new VS,new PS).init()};function XG(){return Q.resolve(ir)}function ZG(){return Q.resolve(kr)}function JG(){return Q.resolve(pa)}KG();var e$=(()=>{class n extends Fi{constructor(){super()}static forComponent(){return[]}static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({providers:[{provide:ir,useFactory:XG},{provide:kr,useFactory:ZG},{provide:pa,useFactory:JG}],imports:[le]})}return n})(),UO=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({imports:[le]})}return n})();X8();function t$(){return Q.resolve(no)}function i$(){return Q.resolve(tr)}function n$(){return Q.resolve(kc)}function r$(){return Q.resolve(Ic)}function o$(){return Q.resolve(jl)}var a$=(()=>{class n extends Fi{constructor(i){super(),Q.provideValue(Bt,i)}static forComponent(){return[]}static \u0275fac=function(e){return new(e||n)(k(Bt))};static \u0275mod=X({type:n});static \u0275inj=K({providers:[{provide:no,useFactory:t$},{provide:tr,useFactory:i$},{provide:kc,useFactory:n$},_g,JE,w0,tT,x0,{provide:Ic,useFactory:r$},{provide:jl,useFactory:o$}],imports:[le,$i,UO,mc,es,Zr,ts,yv,mc,es,Zr,ts]})}return n})(),s$=[lO,dO,uO,hO,mO,pO,gO,fO,bO,vO,_O,yO,wO,xO,CO,IO,kO,DO,SO],R_=class extends Ze{constructor(t){super(t,null,"SetSourceLoadingEvent")}},F_=class extends ze{enabled;constructor(t,i){super(t,"SourceSetLoadingCommand"),this.enabled=i}isEnabled(){return this.enabled}},jS=class{domainEventPublisher=Q.resolve(lt);forCommand(){return F_}handle(t,i){let e=i.isEnabled();t.getSource().setLoading(e)}publish(t,i){this.domainEventPublisher.publish(new R_(i.getAggregateId()))}},O_=class extends ze{items;constructor(t,i=[]){super(t,"SetOriginCommand"),this.items=i}getItems(){return this.items}},c$=(()=>{class n{structureSourceDomainEventPublisher;constructor(i){this.structureSourceDomainEventPublisher=i}static services=[Ql];forCommand(){return O_}handle(i,e){let r=e.getItems();i.setOrigin(r)}publish(i,e){let r=i.getEvents();this.structureSourceDomainEventPublisher.publish(r)}}return n})(),P_=class extends ze{params;constructor(t,i){super(t,"StructureEditSourceItemCommand"),this.params=i}getParams(){return this.params}},l$=(()=>{class n{structureSourceDomainEventPublisher;constructor(i){this.structureSourceDomainEventPublisher=i}static services=[Ql];forCommand(){return P_}handle(i,e){let r=e.getParams();i.editItem(r)}publish(i,e){let r=i.getEvents();this.structureSourceDomainEventPublisher.publish(r)}}return n})(),LS=class extends qt{beforeItem;afterItem;constructor(t,i,e){super(t,"StructureSourceItemEditedAggregateEvent"),this.beforeItem=i,this.afterItem=e}toDomainEvent(){return new wp(this.getAggregateId(),this.beforeItem,this.afterItem)}getBeforeItem(){return this.beforeItem}getAfterItem(){return this.afterItem}},BS=class extends qt{origin;constructor(t,i){super(t,"StructureOriginChangedAggregateEvent"),this.origin=i}toDomainEvent(){return new ql(this.getAggregateId(),this.origin)}getOrigin(){return this.origin}},ju=class extends Xa{constructor(t){super(t)}toString(){return this.getId()}},N_=class{events=[];loading=!1;fetched=!1;origin;entities=[];preparedEntities=[];slicedEntities=[];formationManager;constructor(t){this.formationManager=t,this.events.push(...this.formationManager.init(!0,to.SINGLE,cn.ROW))}isLoading(){return this.loading}setLoading(t){this.loading=t}setEntities(t){this.entities=t,this.recalculatePositions()}getEntities(){return this.entities}setPreparedEntities(){this.preparedEntities=Array.from(this.entities)}getPreparedEntities(){return this.preparedEntities}setSlicedEntities(t){this.slicedEntities=t}getSlicedEntities(){return this.slicedEntities}setOrigin(t=[],i){return this.origin=this.convertItems(t),this.createOriginChangedEvent(i)}setConvertedOrigin(t=[],i){return this.origin=Array.from(t),this.createOriginChangedEvent(i)}getOrigin(){return this.origin}editOriginItem(t,i,e,r){let o=this.findOriginItem(t),a=o.clone();return o&&(o.sourceItem[e.getAccessor()]=i,o.bumpVersion()),[new LS(r,a,o.clone()),this.createOriginChangedEvent(r)]}deleteAllSelected(t){let i=[];return this.formationManager.getSelectedItemIds().forEach(r=>{i=i.concat(this.deleteOriginItemByItemId(r,t))}),i}deleteOriginItem(t,i){if(t instanceof ju)return this.deleteOriginItemByItemId(t,i);if(Array.isArray(t)){let e=[];return t.forEach(r=>{e=e.concat(this.deleteOneOriginItem(r,i))}),e}else return Number.isInteger(t)?this.deleteOriginItemByIndex(t,i):[]}addOriginItem(t,i){return this.origin.push(t),[this.createOriginChangedEvent(i)]}setCustomConfig(t){return this.formationManager.setCustomConfig(t)}selectCustom(t){this.formationManager.selectCustom(t,this.getEntities())}selectAll(){this.formationManager.selectAll(this.getEntities().map(t=>t.getId()))}unselectAll(){this.formationManager.unselectAll()}selectByIndex(t){this.formationManager.selectByIndex(t,this.getEntities().map(i=>i.getId()))}selectByIds(t){this.formationManager.selectByIds(t,this.getEntities())}reSelect(){this.formationManager.reSelectByIds(this.getEntities())}setSelectedRows(t){this.formationManager.selectRows(t,this.getEntities().map(i=>i.getId()))}toggleRow(t,i){this.formationManager.toggleRow(t,i,this.getEntities().map(e=>e.getId()))}getFormation(){return this.formationManager}convertItems(t){return t.map((i,e)=>new z0(new ju(uc.generate()),i,e))}createOriginChangedEvent(t){return new BS(t,this.origin)}findOriginItem(t){return this.origin.find(i=>i.getId().toString()===t)}findOriginItemIndex(t){return this.origin.findIndex(i=>i.getId().toString()===t)}recalculatePositions(){this.entities.forEach((t,i)=>{t.setPosition(i)})}deleteOneOriginItem(t,i){return t instanceof ju?this.deleteOriginItemByItemId(t,i):Number.isInteger(t)?this.deleteOriginItemByIndex(t,i):[]}deleteOriginItemByItemId(t,i){let e=this.findOriginItemIndex(t.toString());return this.deleteOriginItemByIndex(e,i)}deleteOriginItemByIndex(t,i){if(t>-1){let e=this.origin.splice(t,1);if(e.length>0){for(let r of e)this.formationManager.unselectRow(r.getId());this.formationManager.calculateAllSelected(e.map(r=>r.getId())),this.formationManager.calculateAllUnselected()}return[this.createOriginChangedEvent(i)]}return[]}deleteManyOriginItemByIndex(t,i){let e=[];return t.forEach(r=>{e=e.concat(this.deleteOriginItemByIndex(r,i))}),e}deleteManyOriginItemByItemID(t,i){let e=[];return t.forEach(r=>{e=e.concat(this.deleteOriginItemByItemId(r,i))}),e}},zS=class{mode;type;constructor(t,i){this.mode=t,this.type=i}setMode(t){this.mode=t}getMode(){return this.type===cn.RADIO?to.SINGLE:this.mode}isSingle(){return this.getMode()===to.SINGLE}setType(t){this.type=t}getType(){return this.type}},V_=class extends Ze{mode;constructor(t,i){super(t,i,"SelectionModeSetEvent"),this.mode=i}getMode(){return this.mode}},pp=class extends qt{mode;constructor(t,i){super(t,"SelectionModeSetAggregateEvent"),this.mode=i}toDomainEvent(){return new V_(this.getAggregateId(),this.mode)}},j_=class extends Ze{selectionType;constructor(t,i){super(t,i,"SelectionTypeSetEvent"),this.selectionType=i}getType(){return this.selectionType}},gp=class extends qt{selectionType;constructor(t,i){super(t,"SelectionTypeSetAggregateEvent"),this.selectionType=i}toDomainEvent(){return new j_(this.getAggregateId(),this.selectionType)}},ug=class extends Ze{enabled;constructor(t,i){super(t,i,"SelectionEnabledSetEvent"),this.enabled=i}isEnabled(){return this.enabled}},hg=class extends qt{enabled;constructor(t,i){super(t,"SelectionEnabledSetAggregateEvent"),this.enabled=i}toDomainEvent(){return new ug(this.getAggregateId(),this.enabled)}},Pl=class extends fl{constructor(t){super(t)}toString(){return super.getId()}},Nl=class{key;text;customSelectId;builtIn;method;constructor(t,i,e,r,o){this.key=t,this.text=i,this.customSelectId=e,this.builtIn=r,this.method=o}getKey(){return this.key}getText(){return this.text}getCustomSelectId(){return this.customSelectId}isBuiltIn(){return this.builtIn}customSelect(t){return this.method(t)}},L_=class{enabled;selections;constructor(t,i){this.enabled=t,this.selections=i}isEnabled(){return this.enabled}getSelections(){return this.selections}},d$=(()=>{class n{enabled;selections;static id=0;constructor(i,e){this.enabled=i,this.selections=e}init(){return[]}isEnabled(){return this.enabled}setEnabled(i){this.enabled=i}getSelections(){return this.selections}setSelections(i){this.selections=i.map(e=>typeof e=="string"?new Nl("",e,new Pl(e),!0):(n.id++,new Nl(e.key,e.text,new Pl(`${n.id}`),!1,e.select)))}findSelection(i){return bi.of(this.selections.find(e=>e.getCustomSelectId().equals(i)))}}return n})(),B_=class extends Ze{customSelection;constructor(t,i){super(t,i,"FormationCustomSelectionChangeEvent"),this.customSelection=i}getCustomSelection(){return this.customSelection}},z_=class extends qt{customSelection;constructor(t,i){super(t,"FormationCustomSelectionChangeAggregateEvent"),this.customSelection=i}toDomainEvent(){return new B_(this.getAggregateId(),this.customSelection)}},HS=class{id;selectedItemIds;enabled;selection=new zS(to.SINGLE,cn.ROW);allSelected;allUnselected;customSelection;matcher=t=>t.id;constructor(t,i){this.id=t,this.selectedItemIds=i}init(t,i,e){return this.enabled=t,this.selection.setMode(i),this.selection.setType(e),this.customSelection=new d$(!1,[new Nl("select_all","SELECT_ALL",new Pl("SELECT_ALL"),!0),new Nl("UNSELECT_ALL","UNSELECT_ALL",new Pl("UNSELECT_ALL"),!0),new Nl("","INVERT",new Pl("INVERT"),!0)]),[new hg(this.getId(),this.enabled),new pp(this.getId(),this.selection.getMode()),new gp(this.getId(),this.selection.getType()),new z_(this.getId(),new L_(this.customSelection.isEnabled(),this.customSelection.getSelections()))]}setSelection(t){return this.enabled=t,[new hg(this.getId(),this.enabled)]}setMode(t){return this.selection.setMode(t),[new pp(this.getId(),this.selection.getMode()),new gp(this.getId(),this.selection.getType())]}setType(t){return this.selection.setType(t),[new pp(this.getId(),this.selection.getMode()),new gp(this.getId(),this.selection.getType())]}setMatcher(t){this.matcher=t}setCustomConfig(t){return t?.enabled&&this.customSelection.setEnabled(t.enabled),t?.selections&&this.customSelection.setSelections(t.selections),[new z_(this.getId(),new L_(this.customSelection.isEnabled(),this.customSelection.getSelections()))]}isAllSelected(){return this.allSelected}isAllUnselected(){return this.allUnselected}getSelectedItemIds(){return Array.from(this.selectedItemIds).map(t=>new ju(t))}selectCustom(t,i){this.customSelection.findSelection(t).ifPresent(e=>{if(e.isBuiltIn())switch(e.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=e.customSelect(i);this.selectedItemIds=new Set(r.map(o=>o.getId().toString()))}})}selectAll(t){this.selectedItemIds=new Set(t.map(i=>i.toString())),this.allSelected=!0,this.allUnselected=!1}unselectAll(){this.selectedItemIds.clear(),this.allSelected=!1,this.allUnselected=!0}invertSelected(t){let i=this.getSelectedItemIds(),e=t.filter(r=>!i.some(o=>o.equals(r)));this.selectedItemIds=new Set(e.map(r=>r.toString())),this.calculateAllSelected(t),this.calculateAllUnselected()}reSelectByIds(t){this.selectByIds(this.getSelectedItemIds().map(i=>i.getId()),t),this.calculateAllSelected(t.map(i=>i.getId())),this.calculateAllUnselected()}selectByIds(t,i){if(!this.enabled)return;let e=[];for(let o=0;o<t.length;o++){let a=i.filter(c=>this.matcher(c.getSourceItem())===t[o]).map(c=>c.getId().toString());e.push(...a)}let r=wr.ADD;this.selection.isSingle()&&(r=wr.NONE),e.forEach(o=>{this.toggleRowByType(r,o)}),this.calculateAllSelected(i.map(o=>o.getId())),this.calculateAllUnselected()}selectByIndex(t,i){if(!this.enabled)return;let e=t.map(o=>(i[o]||console.error("Item not found"),i[o].toString())),r=wr.ADD;this.selection.isSingle()&&(r=wr.NONE),e.forEach(o=>{this.toggleRowByType(r,o)}),this.calculateAllSelected(i),this.calculateAllUnselected()}selectRows(t,i){}toggleRow(t,i,e){this.enabled&&(i===wr.ADD&&this.selection.isSingle()&&(i=wr.NONE),this.toggleRowByType(i,t),this.calculateAllSelected(e),this.calculateAllUnselected())}calculateAllSelected(t){if(t.length!==this.selectedItemIds.size)this.allSelected=!1;else{let i=Array.from(this.selectedItemIds),e=!0;i.sort(),t.sort();for(let r=0;r<i.length;r+=1)if(i[r]!==t[r].toString()){e=!1;break}this.allSelected=e}}calculateAllUnselected(){this.allUnselected=this.selectedItemIds.size===0}unselectRow(t){this.selectedItemIds.has(t.toString())&&this.selectedItemIds.delete(t.toString())}getId(){return this.id}getType(){return this.selection.getType()}toggleRowByType(t,i){switch(t){case wr.NONE:this.selectedItemIds.has(i)?this.selectedItemIds.delete(i):(this.selectedItemIds.clear(),this.selectedItemIds.add(i));break;case wr.ADD:this.selectedItemIds.has(i)?this.selectedItemIds.delete(i):this.selectedItemIds.add(i);break;case wr.RANGE:break;default:break}}},H_=class{create(t){return new HS(t,new Set)}},WO=(()=>{class n{formationManagerFactory;constructor(i){this.formationManagerFactory=i}static services=[H_];createDefault(i){let e=this.formationManagerFactory.create(i);return new N_(e)}create(i){let e=this.formationManagerFactory.create(i);return new N_(e)}}return n})(),mp=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}(mp||{}),Al=class n extends ze{payload;type;constructor(t,i,e){super(t,"DeleteOriginItemCommand"),this.payload=i,this.type=e}static byIndex(t,i){return new n(t,i,mp.INDEX)}static byManyIndex(t,i){return new n(t,i,mp.MANY_INDEX)}static byItemId(t,i){return new n(t,i,mp.ITEM_ID)}static byManyItemId(t,i){return new n(t,i,mp.MANY_ITEM_ID)}getType(){return this.type}getPayload(){return this.payload}},US=class{forCommand(){return Al}handle(t,i){t.deleteItem(i.getPayload())}},bT=(()=>{class n extends Mt{static default=[];constructor(){super(n.default)}}return n})(),u$=(()=>{class n{structureSourceOriginRepository;constructor(i){this.structureSourceOriginRepository=i}static services=[bT];forEvent(){return ql}handle(i){if(i.ofMessageType("OriginSetEvent")){let e=i.getOrigin();this.structureSourceOriginRepository.next(i.getAggregateId(),e)}}}return n})(),vT=(()=>{class n extends Mt{static default=[];constructor(){super(n.default)}getPreparedItems(i){return this.find(i).getValueOrNullOrThrowError()}}return n})(),h$=(()=>{class n{structurePreparedItemsRepository;constructor(i){this.structurePreparedItemsRepository=i}static services=[vT];forEvent(){return Kp}handle(i){if(i.ofMessageType("StructurePreparedEntitiesSetEvent")){let e=i.getPreparedItems();this.structurePreparedItemsRepository.next(i.getAggregateId(),e)}}}return n})(),WS=class{defineAggregate(){return null}registerKey(){return ro}registerProviders(t){t.provide(bT),t.provide(WO),t.provide(Ql)}registerCommandHandlers(){return[jS,c$,l$,US]}registerDomainEventHandler(){return[u$,h$]}registerMultiDomainEventHandler(){return[]}},m$=(()=>{class n extends Dr{structureRepository;structurePreparedItemsRepository;structureSourceOriginRepository;constructor(i,e,r){super(),this.structureRepository=i,this.structurePreparedItemsRepository=e,this.structureSourceOriginRepository=r}static services=[Bl,vT,bT];findItems(i){return this.structureRepository.getStructure(i).getEntities()}onItems(i){return this.structureRepository.on(i).pipe(me(e=>e.getEntities()),Xr((e,r)=>{if(e.length!==r.length)return!1;let o=!0;return e.forEach((a,c)=>{if(!a.equals(r[c])){o=!1;return}}),o}))}onItemsSize(i){return this.onItems(i).pipe(me(e=>e.length))}onceItems(i){return Cl(this.onItems(i))}onOriginSize(i){return this.structureSourceOriginRepository.on(i).pipe(me(e=>e.length))}onLoading(i){return this.structureRepository.on(i).pipe(me(e=>e.getSource().isLoading()))}onPreparedItems(i){return this.structurePreparedItemsRepository.on(i)}findPreparedItems(i){return this.structurePreparedItemsRepository.getPreparedItems(i)}}return n})(),p$=(()=>{class n extends xr{commandDispatcher;fieldWarehouse;sourceReadModelService;constructor(i,e,r){super(),this.commandDispatcher=i,this.fieldWarehouse=e,this.sourceReadModelService=r}static services=[Yi,$l,Dr];setOrigin(i,e){this.commandDispatcher.dispatch(new O_(e,i))}setLoading(i,e){this.commandDispatcher.dispatch(new F_(e,i))}editItem(i,e){this.commandDispatcher.dispatch(new P_(e,i))}editItemByIndex(i,e,r,o){let a=Za(this.sourceReadModelService.onceItems(o).pipe(me(m=>m[i].getId()))),c=Za(this.fieldWarehouse.onFields(o));hc(cM(a,c)).pipe(xl(1)).subscribe(m=>{let x=m[0],I=m[1];this.editItem(new Up(x,I[e],r),o)})}deleteRow(i,e){i.getItemId()!==void 0?this.deleteItemById(i.getItemId(),e):i.getIndex()!==void 0&&this.deleteItemByIndex(i.getIndex(),e)}deleteRows(i,e){i.length>0&&(i[0].getItemId()!==void 0?this.deleteManyItemsByItemIds(i.map(r=>r.getItemId()),e):i[0].getIndex()!==void 0&&this.deleteManyItemsByIndex(i.map(r=>r.getIndex()),e))}deleteItemByIndex(i,e){this.commandDispatcher.dispatch(Al.byIndex(e,i))}deleteItemById(i,e){this.commandDispatcher.dispatch(Al.byItemId(e,i))}deleteManyItemsByIndex(i,e){this.commandDispatcher.dispatch(Al.byManyIndex(e,i))}deleteManyItemsByItemIds(i,e){this.commandDispatcher.dispatch(Al.byManyItemId(e,i))}}return n})(),GS=class{registerProviders(t){t.provide(xr,p$),t.provide(Dr,m$),t.provide(Vl),t.provide(vT),t.provide(v_)}};function g$(){new _n(new GS,new WS).init()}g$();function f$(){return Q.resolve(xr)}function b$(){return Q.resolve(Dr)}function v$(){return Q.resolve(Vl)}var _$=(()=>{class n extends Fi{static forComponent(){return[]}static \u0275fac=(()=>{let i;return function(r){return(i||(i=Ge(n)))(r||n)}})();static \u0275mod=X({type:n});static \u0275inj=K({providers:[{provide:xr,useFactory:f$},{provide:Dr,useFactory:b$},{provide:Vl,useFactory:v$}],imports:[le]})}return n})();Q.provide(Ll);function y$(){return Q.resolve(Ll)}var w$=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({providers:[{provide:Ll,useFactory:y$}]})}return n})(),x$=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({imports:[w$]})}return n})(),C$=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=X({type:n});static \u0275inj=K({providers:[nO]})}return n})(),U_=class{itemIds;allSelected;allUnselected;constructor(t,i,e){this.itemIds=t,this.allSelected=i,this.allUnselected=e}getAll(){return this.itemIds}isSelected(t){return this.itemIds.some(i=>i===t)}isAllSelected(){return this.allSelected}isAllUnselected(){return this.allUnselected}isIndeterminate(){return!(this.isAllSelected()||this.isAllUnselected())}},mg=class n extends Mt{static default=new U_([],!1,!1);constructor(){super(n.default)}},W_=class extends ze{enabled;constructor(t,i){super(t,"SetEnabledSelectionCommand"),this.enabled=i}isEnabled(){return this.enabled}},$S=class{forCommand(){return W_}handle(t,i){t.setSelection(i.isEnabled())}},G_=class extends ze{selectedRow;type;constructor(t,i,e){super(t,"ToggleSelectedRowCommand"),this.selectedRow=i,this.type=e}getSelectedRow(){return this.selectedRow}getType(){return this.type}},YS=class{forCommand(){return G_}handle(t,i){let e=i.getSelectedRow(),r=i.getType();t.toggleRow(e,r)}},I$=(()=>{class n{rowSelectedArchive;constructor(i){this.rowSelectedArchive=i}static services=[mg];forEvent(){return xp}handle(i){if(i.ofMessageType("SelectedRowChangedEvent")){let e=new U_(i.getSelectedRows(),i.isAllSelected(),i.isAllUnselected());this.rowSelectedArchive.next(i.getAggregateId(),e)}}}return n})(),$_=class extends ze{mode;constructor(t,i){super(t,"SetSelectionModeCommand"),this.mode=i}getMode(){return this.mode}},qS=class{forCommand(){return $_}handle(t,i){t.setSelectionMode(i.getMode())}},Y_=class extends ze{constructor(t){super(t,"SelectAllRowsCommand")}},QS=class{forCommand(){return Y_}handle(t,i){t.selectAll()}},q_=class extends ze{constructor(t){super(t,"UnselectAllRowsCommand")}},KS=class{forCommand(){return q_}handle(t,i){t.unselectAll()}},Q_=class extends ze{type;constructor(t,i){super(t,"SetSelectionTypeCommand"),this.type=i}getType(){return this.type}},XS=class{forCommand(){return Q_}handle(t,i){t.setSelectionType(i.getType())}},K_=class extends Ao{constructor(){super()}forEvent(){return j_}},X_=class extends Ao{constructor(){super()}forEvent(){return V_}},Z_=class extends Ao{constructor(){super()}forEvent(){return ug}},J_=class extends ze{selectedRows;constructor(t,i){super(t,"SetSelectedRowCommand"),this.selectedRows=i}getSelectedRows(){return this.selectedRows}},ZS=class{forCommand(){return J_}handle(t,i){let e=i.getSelectedRows();t.setSelectedRows(e)}},ey=class extends ze{indexes;constructor(t,i){super(t,"SelectRowByIndexCommand"),this.indexes=i}getIndexes(){return this.indexes}},JS=class{forCommand(){return ey}handle(t,i){let e=i.getIndexes();t.selectByIndex(e)}},ty=class extends ze{ids;constructor(t,i){super(t,"SelectRowByIdCommand"),this.ids=i}getIds(){return this.ids}},eE=class{forCommand(){return ty}handle(t,i){let e=i.getIds();t.selectByIds(e)}},iy=class extends ze{matcher;constructor(t,i){super(t,"FormationSetMatcherCommand"),this.matcher=i}getMatcher(){return this.matcher}},tE=class{forCommand(){return iy}handle(t,i){let e=i.getMatcher();t.setFormationMatcher(e)}},ny=class extends Ao{constructor(){super()}forEvent(){return B_}},ry=class extends ze{customSelectId;constructor(t,i){super(t,"FormationCustomSelectCommand"),this.customSelectId=i}getCustomSelectId(){return this.customSelectId}},iE=class{forCommand(){return ry}handle(t,i){let e=i.getCustomSelectId();t.selectCustom(e)}},oy=class extends ze{config;constructor(t,i){super(t,"FormationSetCustomSelectConfigCommand"),this.config=i}getConfig(){return this.config}},nE=class{forCommand(){return oy}handle(t,i){let e=i.getConfig();t.setSelectionCustomConfig(e)}},rE=class{defineAggregate(){return null}registerKey(){return ro}registerProviders(t){t.provide(H_)}registerCommandHandlers(){return[$S,qS,XS,QS,KS,YS,ZS,JS,eE,tE,iE,nE]}registerDomainEventHandler(){return[I$,K_,X_,Z_,ny]}registerMultiDomainEventHandler(){return[]}},k$=(()=>{class n extends er{rowSelectedRepository;formationModeRepository;formationTypeRepository;formationEnabledRepository;formationCustomRepository;sourceWarehouse;constructor(i,e,r,o,a,c){super(),this.rowSelectedRepository=i,this.formationModeRepository=e,this.formationTypeRepository=r,this.formationEnabledRepository=o,this.formationCustomRepository=a,this.sourceWarehouse=c}static services=[mg,X_,K_,Z_,ny,Dr];findSelectedRows(i){let e=this.sourceWarehouse.findPreparedItems(i),r=this.findSelectedItemIds(i).getValueOrNullOrThrowError(),o=[],a=e.length;for(let c=0;c<a;c+=1){let m=e[c];r.some(x=>x===m.getId().toString())&&o.push(new Lu(m.getSourceItem(),c,m.getId()))}return bi.of(o)}onRowSelectedReadModel(i){return this.rowSelectedRepository.on(i)}findSelectedItemIds(i){return this.rowSelectedRepository.find(i).map(e=>e.getAll())}onSelectedRows(i){return this.rowSelectedRepository.on(i).pipe(me(e=>e.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})(),D$=(()=>{class n extends ln{commandDispatcher;constructor(i){super(),this.commandDispatcher=i}static services=[Yi];setSelection(i,e){this.commandDispatcher.dispatch(new W_(e,i))}selectRows(i,e){this.commandDispatcher.dispatch(new J_(e,i))}selectByIndex(i,e){this.commandDispatcher.dispatch(new ey(e,i))}selectByIds(i,e){this.commandDispatcher.dispatch(new ty(e,i))}toggleSelectedRow(i,e,r){this.commandDispatcher.dispatch(new G_(r,i,e))}changeMode(i,e){this.commandDispatcher.dispatch(new $_(e,i))}changeType(i,e){this.commandDispatcher.dispatch(new Q_(e,i))}setMatcher(i,e){this.commandDispatcher.dispatch(new iy(e,i))}selectAll(i){this.commandDispatcher.dispatch(new Y_(i))}unselectAll(i){this.commandDispatcher.dispatch(new q_(i))}selectCustom(i,e){this.commandDispatcher.dispatch(new ry(e,i))}setCustomSelection(i,e){this.commandDispatcher.dispatch(new oy(e,i))}}return n})(),oE=class{registerProviders(t){t.provide(mg),t.provide(Tc),t.provide(ln,D$),t.provide(er,k$)}};function S$(){new _n(new oE,new rE).init()}S$();function E$(){return Q.resolve(ln)}function T$(){return Q.resolve(er)}function M$(){return Q.resolve(Tc)}var A$=(()=>{class n extends Fi{static \u0275fac=(()=>{let i;return function(r){return(i||(i=Ge(n)))(r||n)}})();static \u0275mod=X({type:n});static \u0275inj=K({providers:[{provide:ln,useFactory:E$},{provide:er,useFactory:T$},{provide:Tc,useFactory:M$}],imports:[le,so,es,Dl]})}return n})(),ay=class extends ze{constructor(t){super(t,"CreateStructureCommand")}},aE=class{forCommand(){return ay}},sE=class extends qt{preparedItems;constructor(t,i){super(t,"StructurePreparedEntitiesSetAggregateEvent"),this.preparedItems=i}toDomainEvent(){return new Kp(this.getAggregateId(),this.preparedItems)}getPreparedItems(){return this.preparedItems}},cE=class extends qt{fieldConfigs;fields;constructor(t,i,e){super(t,"FieldsInitedAggregateEvent"),this.fieldConfigs=i,this.fields=e}toDomainEvent(){return new Bu(this.getAggregateId(),this.fieldConfigs,this.fields)}getFieldConfigs(){return this.fieldConfigs}getFields(){return this.fields}},lE=class extends qt{constructor(t){super(t,"StructureCreatedAggregateEvent")}toDomainEvent(){return new Zu(this.getAggregateId())}},dE=class extends qt{filterTypes;constructor(t,i){super(t,"FilterTypesInitedAggregateEvent"),this.filterTypes=i}toDomainEvent(){return new F0(this.getAggregateId(),this.filterTypes)}getFilterTypes(){return this.filterTypes}},uE=class extends qt{constructor(t){super(t,"FilterAddedEvent")}toDomainEvent(){return new Ec(this.getAggregateId(),[])}},hE=class extends qt{activeFilters;constructor(t,i){super(t,"FilterAddedEvent"),this.activeFilters=i}toDomainEvent(){return new Ec(this.getAggregateId(),this.activeFilters)}},mE=class extends qt{activeFilters;constructor(t,i){super(t,"FilterRemovedAggregateEvent"),this.activeFilters=i}toDomainEvent(){return new Ec(this.getAggregateId(),this.activeFilters)}},pE=class extends qt{map;constructor(t,i){super(t,"UniqueFilterCalculatedAggregateEvent"),this.map=i}toDomainEvent(){return new P0(this.getAggregateId(),this.map)}},gE=class extends qt{constructor(t){super(t,"UniqueFilterSelectedAggregateEvent")}toDomainEvent(){return new sg(this.getAggregateId())}},fE=class extends qt{constructor(t){super(t,"UniqueFilterUnselectedAggregateEvent")}toDomainEvent(){return new rg(this.getAggregateId())}},bE=class extends qt{constructor(t){super(t,"AllUniqueFilterUnselectedAggregateEvent")}toDomainEvent(){return new og(this.getAggregateId())}},vE=class extends qt{constructor(t){super(t,"AllUniqueFilterSelectedAggregateEvent")}toDomainEvent(){return new ag(this.getAggregateId())}},_E=class extends qt{selectedRows;allSelected;allUnselected;constructor(t,i,e,r){super(t,"SelectedRowChangedAggregateEvent"),this.selectedRows=i,this.allSelected=e,this.allUnselected=r}toDomainEvent(){return new xp(this.getAggregateId(),this.selectedRows,this.allSelected,this.allUnselected)}},yE=class extends gl{pagingManager;sourceManager;sorterManager;filterManager;searchManager;verticalFormation;fieldCollection;summariesManager;uniqueFilterManager;constructor(t,i,e,r,o,a,c,m,x,I){super(t,ro),this.pagingManager=i,this.sourceManager=e,this.verticalFormation=r,this.summariesManager=o,this.sorterManager=a,this.filterManager=c,this.uniqueFilterManager=m,this.searchManager=x,this.fieldCollection=I,this.addEvent(this.sourceManager.events),this.sourceManager.events=[]}createEvent(){return lE}clearEvents(){super.clearEvents(),this.pagingManager.clearEvents()}init(){this.initTheme()}setVerticalFormationEnabled(t){this.verticalFormation.setEnabled(t),this.calculateSource()}getVerticalFormation(){return this.verticalFormation}setSummariesEnabled(t){return this.summariesManager.setEnabled(t),this.calculateSource(),this.getEvents()}setOrigin(t){return this.addEvent(this.sourceManager.setOrigin(t,this.getId())),this.calculateUniqueValues(),this.calculateSource(),this.getEvents()}deleteItem(t){this.addEvent(this.sourceManager.deleteOriginItem(t,this.getId())),this.generateSelectedRowChangedEvent(),this.calculateSource()}editItem(t){let i=t.getItemId(),e=t.getColumnFieldId(),r=this.fieldCollection.getField(e),o=t.getValue();return this.sourceManager.editOriginItem(i,o,r,this.getId()).forEach(c=>this.addEvent(c)),this.calculateUniqueValues(),this.calculateSource(),this.getEvents()}setHeight(t){this.verticalFormation.setViewportHeight(t),this.calculateSourceBasedOnVirtualScroll()}setTheme(t){t===Te.MATERIAL&&this.getVerticalFormation().setRowHeight(52),t===Te.GENERIC&&this.getVerticalFormation().setRowHeight(42),t===Te.FABRIC&&this.getVerticalFormation().setRowHeight(36),t===Te.LIGHT&&this.getVerticalFormation().setRowHeight(56),t===Te.DARK&&this.getVerticalFormation().setRowHeight(38)}setScrollPosition(t){this.verticalFormation.setScrollPosition(t),this.calculateSourceBasedOnVirtualScroll()}scrollToIndex(t){this.addEvent(this.verticalFormation.scrollToIndex(t))}setSelection(t){this.sourceManager.getFormation().setSelection(t),this.addEvent(new hg(this.getId(),t))}setSelectionMode(t){this.addEvent(this.sourceManager.getFormation().setMode(t))}setSelectionType(t){this.addEvent(this.sourceManager.getFormation().setType(t))}setFormationMatcher(t){this.getFormation().setMatcher(t),this.sourceManager.reSelect(),this.generateSelectedRowChangedEvent()}selectByIndex(t){this.sourceManager.selectByIndex(t),this.generateSelectedRowChangedEvent()}selectByIds(t){this.sourceManager.selectByIds(t),this.generateSelectedRowChangedEvent()}setSelectedRows(t){this.sourceManager.setSelectedRows(t),this.generateSelectedRowChangedEvent()}setSelectionCustomConfig(t){this.addEvent(this.sourceManager.setCustomConfig(t))}toggleRow(t,i){this.sourceManager.toggleRow(t,i),this.generateSelectedRowChangedEvent()}selectCustom(t){this.sourceManager.selectCustom(t),this.generateSelectedRowChangedEvent()}selectAll(){this.sourceManager.selectAll(),this.generateSelectedRowChangedEvent()}unselectAll(){this.sourceManager.unselectAll(),this.generateSelectedRowChangedEvent()}getFormation(){return this.sourceManager.getFormation()}getPaging(){return this.pagingManager}changePaging(t){this.pagingManager.change(t),this.calculateSource()}setPaging(t){this.pagingManager=t,this.calculateSource()}nextPage(){this.pagingManager.nextPage(),this.calculateSource()}prevPage(){this.pagingManager.prevPage(),this.calculateSource()}changePageSize(t){return this.pagingManager.changePageSize(t).forEach(e=>{this.addEvent(e)}),this.calculateSource(),this.getEvents()}getEntities(){return this.sourceManager.getSlicedEntities()}getSource(){return this.sourceManager}createFields(t){this.fieldCollection.initFields(t);let i=this.fieldCollection.getAllFields();return this.addEvent(new cE(this.getId(),t,i)),this.filterManager.assignFilterTypes(i),this.addEvent(new dE(this.getId(),this.filterManager.getFilterTypes())),this.getEvents()}setSortingConfig(t){this.sorterManager.setConfig(t)}toggleSort(t){let i=this.fieldCollection.getField(t);return this.sorterManager.toggle(i),this.calculateSource(),this.sorterManager.getAll()}setSortOrder(t,i){let e=this.fieldCollection.getField(t);return this.sorterManager.setSortOrder(e,i),this.calculateSource(),this.sorterManager.getAll()}setFilterConfig(t){this.filterManager.getSettings().setFilterConfig(t)}setQuickFiltersConfig(t){this.filterManager.getSettings().setQuickFiltersConfig(t)}toggleFilter(t,i,e){return this.fieldCollection.getField(t)===void 0?[]:(this.calculateSource(),[])}addFilter(t,i,e){this.filterManager.add(t,i,e);let r=this.fieldCollection.getFieldsAsMap(),o=this.filterManager.getAllActiveFilters(r);this.addEvent(new hE(this.getId(),o)),this.calculateSource()}removeAllFilters(){this.filterManager.removeAll(),this.addEvent(new uE(this.getId())),this.calculateSource()}removeFilter(t){this.filterManager.remove(t);let i=this.fieldCollection.getFieldsAsMap(),e=this.filterManager.getAllActiveFilters(i);this.addEvent(new mE(this.getId(),e)),this.calculateSource()}setSearchingConfig(t){this.filterManager.getSettings().setSearchingConfig(t)}addSearchPhrase(t){let i=this.fieldCollection.getAllFields();return this.searchManager.addSearchPhrase(i,t),this.calculateSource(),[]}removeSearchPhrase(){return this.searchManager.removeSearchFilters(),this.calculateSource(),[]}selectAllUniqueFilter(t){this.uniqueFilterManager.selectAll(t),this.addEvent(new vE(this.getId())),this.generateCalculateUniqueValuesAggregateEvent(),this.calculateSource()}selectUniqueFilter(t,i){this.uniqueFilterManager.select(t,i),this.addEvent(new gE(this.getId())),this.generateCalculateUniqueValuesAggregateEvent(),this.calculateSource()}unselectAllUniqueFilter(t){this.uniqueFilterManager.unselectAll(t),this.addEvent(new bE(this.getId())),this.generateCalculateUniqueValuesAggregateEvent(),this.calculateSource()}unselectUniqueFilter(t,i){this.uniqueFilterManager.unselect(t,i),this.addEvent(new fE(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 t=this.searchManager.search(this.sourceManager.getEntities());this.sourceManager.setEntities(t);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 sE(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 t=this.verticalFormation.getRange();this.sourceManager.setSlicedEntities(this.sourceManager.getEntities().slice(t.getStart(),t.getEnd()))}else this.sourceManager.setSlicedEntities(this.sourceManager.getEntities())}initTheme(){let t=M_.DEFAULT_THEME;this.setTheme(t)}calculateUniqueValues(){let t=this.fieldCollection.getAllFields(),i=this.sourceManager.getOrigin();this.uniqueFilterManager.calculateAll(i,t),this.generateCalculateUniqueValuesAggregateEvent()}generateCalculateUniqueValuesAggregateEvent(){this.addEvent(new pE(this.getId(),this.uniqueFilterManager.getAll(this.fieldCollection.getAllFields())))}generateSelectedRowChangedEvent(){this.addEvent(new _E(this.getId(),this.sourceManager.getFormation().getSelectedItemIds().map(t=>t.toString()),this.sourceManager.getFormation().isAllSelected(),this.sourceManager.getFormation().isAllUnselected()))}},wE=class{sorterId;columnId;field;rank=1;direction;constructor(t,i,e=!0){this.sorterId=t,this.field=i,this.direction=e}getId(){return this.sorterId}getRank(){return this.rank}getField(){return this.field}hasDirection(){return this.direction}changeDirection(){this.direction=!this.direction}setDirection(t){this.direction=t}sort(t){return t.length===0?t:t.sort((i,e)=>this.field.sort(i,e,this.direction))}},xE=class{sorterId;constructor(t){this.sorterId=t}getId(){return this.sorterId}},CE=class{enabled;multi;sorters=new Map;constructor(t=!1,i=!1){this.enabled=t,this.multi=i}setConfig(t){t&&t.enabled!==void 0&&t.enabled!==null&&(this.enabled=t.enabled),t&&t.multiSorting!==void 0&&t.multiSorting!==null&&(this.multi=t.multiSorting,this.sorters.clear())}toggle(t){let i=t.getId(),e=this.sorters.get(i.getId());e?e.hasDirection()?e.changeDirection():this.delete(i):this.add(t)}setSortOrder(t,i){let e=t.getId(),r=this.sorters.get(e.getId());if(i===Pi.NONE)this.delete(e);else if(i===Pi.ASC||i===Pi.DESC){this.delete(e);let o=i===Pi.ASC;this.add(t,o)}}add(t,i=!0){this.addSorter(t.getId(),new wE(new xE(uc.generate()),t,i))}addSorter(t,i){this.multi||this.sorters.clear(),this.sorters.set(t.getId(),i)}delete(t){this.sorters.delete(t.getId())}update(){}sort(t){let i=this.getAll(),e=Array.from(t);for(let r of i)e=r.sort(e);return e}getAll(){return this.enabled?Array.from(this.sorters).map(t=>t[1]).sort((t,i)=>t.getRank()-i.getRank()).reverse():[]}},IE=class{id;value;displayValue;enabled;constructor(t,i,e,r){this.id=t,this.value=i,this.displayValue=e,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}},kE=class{id;constructor(t){this.id=t}toString(){return this.id}equals(t){return t.toString()===this.id}},R$=(()=>{class n{static index=0;static generate(){return n.index+=1,new kE(`${n.index}`)}}return n})(),DE=class{values=[];allSelected;allDisabled;constructor(t,i){for(let e of t)this.values.push(new IE(R$.generate(),e,i.getDisplayValue(e),!0));this.calculateAllSelected(),this.calculateAllDisabled()}getAll(){return this.values}isAllSelected(){return this.allSelected}isAllDisabled(){return this.allDisabled}getNotSelected(){return this.values.filter(t=>t.isDisabled())}selectAll(){this.values.forEach(t=>{t.select()}),this.allSelected=!0,this.allDisabled=!1}select(t){this.values.filter(i=>i.getId().equals(t)).forEach(i=>{i.select()}),this.calculateAllSelected(),this.calculateAllDisabled()}unselectAll(){this.values.forEach(t=>{t.unselect()}),this.allSelected=!1,this.allDisabled=!0}unselect(t){this.values.filter(i=>i.getId().equals(t)).forEach(i=>{i.unselect()}),this.calculateAllSelected(),this.calculateAllDisabled()}calculateAllSelected(){this.allSelected=!this.values.some(t=>t.isDisabled())}calculateAllDisabled(){this.allDisabled=!this.values.some(t=>t.isEnabled())}},SE=class{uniqueValueMap=new xu;calculate(t,i){let e=i.getId();this.uniqueValueMap.find(e).ifEmpty(()=>{let o=new Set;for(let m of t)o.add(i.getValue(m));let a=Array.from(o.values()).sort((m,x)=>i.getField().sort(m,x)),c=new DE(a,i);this.uniqueValueMap.set(i.getId(),c)})}calculateAll(t,i){for(let e of i)this.calculate(t,e)}filterAll(t,i){let e=t;for(let r of i)e=this.filter(e,r);return e}filter(t,i){let e=[];return this.uniqueValueMap.find(i.getId()).ifPresent(r=>{r.isAllSelected()?e=t:r.isAllDisabled()?e=[]:e=t.filter(o=>{for(let a of r.getNotSelected())if(i.getField().equals(o,a.getValue()))return!1;return!0})}),e}selectAll(t){this.uniqueValueMap.find(t).ifPresent(i=>{i.selectAll()})}select(t,i){this.uniqueValueMap.find(t).ifPresent(e=>{e.select(i)})}unselectAll(t){this.uniqueValueMap.find(t).ifPresent(i=>{i.unselectAll()})}unselect(t,i){this.uniqueValueMap.find(t).ifPresent(e=>{e.unselect(i)})}getAll(t){let i=new Map;for(let e of t)this.getValues(e).ifPresent(r=>{i.set(e.getId().toString(),r)});return i}getValues(t){return this.uniqueValueMap.find(t.getId()).map(i=>i.getAll())}},GO=(()=>{class n extends hl{pagingAggregateFactory;sourceManagerFactory;verticalFormationFactory;summariesManagerFactory;filterManagerFactory;searchManagerFactory;fieldCollectionFactory;constructor(i,e,r,o,a,c,m){super(),this.pagingAggregateFactory=i,this.sourceManagerFactory=e,this.verticalFormationFactory=r,this.summariesManagerFactory=o,this.filterManagerFactory=a,this.searchManagerFactory=c,this.fieldCollectionFactory=m}static services=[HF,WO,jO,NO,A0,W0,PO];create(i){let e=this.pagingAggregateFactory.createDefault(),r=this.sourceManagerFactory.createDefault(i),o=this.verticalFormationFactory.create(i),a=new CE,c=this.filterManagerFactory.create(!1),m=this.fieldCollectionFactory.create(),x=this.summariesManagerFactory.create(i),I=this.searchManagerFactory.create(),O=new yE(i,e,r,o,x,a,c,new SE,I,m);return this.init(O),O}init(i){i.init()}}return n})(),sy=class extends pl{},$O=(()=>{class n extends yl{constructor(i){super(i)}static services=[ng]}return n})(),YO=(()=>{class n extends sy{inMemoryStructureAggregateStore;constructor(i){super(),this.inMemoryStructureAggregateStore=i}static services=[$O];findById(i){return this.inMemoryStructureAggregateStore.findById(i)}save(i){this.inMemoryStructureAggregateStore.save(i)}}return n})(),F$=(()=>{class n{summariesEnabledArchive;constructor(i){this.summariesEnabledArchive=i}static services=[Xu];forEvent(){return Zu}handle(i){if(i.ofMessageType("StructureCreatedEvent")){let e=i.getAggregateId();this.summariesEnabledArchive.init(e)}}}return n})(),EE=class{defineAggregate(){return{aggregateKey:ro,createCommandHandler:aE,factory:GO,repository:YO}}registerKey(){return ro}registerProviders(t){}registerCommandHandlers(){return[]}registerDomainEventHandler(){return[F$]}registerMultiDomainEventHandler(){return[]}},TE=class extends Ze{fieldId;filterTypeId;value;constructor(t,i,e,r){super(t,{fieldId:i,filterTypeId:e,value:r},"FilterAddedEvent"),this.fieldId=i,this.filterTypeId=e,this.value=r}},O$=(()=>{class n extends Bl{inMemoryStructureReadStore;structureIdToStructure=new Map;hermesStructure$=new Xn(1);constructor(i){super(),this.inMemoryStructureReadStore=i}static services=[fT];getStructure(i){return this.structureIdToStructure.get(i.getId())}on(i){return this.hermesStructure$.toObservable().pipe(ut(e=>{let r=i.getId();return e.has(r)}),me(e=>e.get(i.getId())))}forEvents(){return[Zu,R_,Dp,Ep,Sp,Hu,ug,Jp,Zp,Pp,Wp,Yl,Vp,ql,tg,ig,eg,TE,Ec,sg,ag,rg,og]}subs(i){let e=i.getAggregateId();this.inMemoryStructureReadStore.getById(e).ifPresent(o=>{let a=o.getId().toString();this.structureIdToStructure.set(a,o),this.hermesStructure$.next(this.structureIdToStructure)})}}return n})(),P$=(()=>{class n extends nr{filterCommandInvoker;sourcePublisher;verticalFormationCommandInvoker;structureCellEditArchive;commandDispatcher=Q.resolve(Yi);constructor(i,e,r,o){super(),this.filterCommandInvoker=i,this.sourcePublisher=e,this.verticalFormationCommandInvoker=r,this.structureCellEditArchive=o}static services=[Fo,xr,td,as];create(i){this.commandDispatcher.dispatch(new ay(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,e){this.verticalFormationCommandInvoker.scrollToIndex(i,e)}setScrollPosition(i,e){this.verticalFormationCommandInvoker.setScrollPosition(i,e)}setFilterConfig(i,e){this.filterCommandInvoker.setConfig(i,e)}setQuickFiltersConfig(i,e){this.commandDispatcher.dispatch(new T0(e,i))}setRowHeight(i,e){this.commandDispatcher.dispatch(new m_(e,+i))}setContainerHeight(i,e){this.commandDispatcher.dispatch(new p_(e,+i))}setRowHeightBasedOnTheme(i,e){this.commandDispatcher.dispatch(new h_(e,i))}setCellEdit(i,e){this.structureCellEditArchive.next(e,new Nv(i))}}return n})(),ME=class{registerProviders(t){t.provide(fT),t.provide(Bl,O$),t.provide(GO),t.provide(LO),t.provide(od),t.provide(nr,P$),t.provide(nh),t.provide($O),t.provide(ng),t.provide(sy,YO),t.provide(Jr),t.provide(as)}};function N$(){new _n(new ME,new EE).init()}var cy=class extends ip{constructor(t){super(t,"CreateListViewCommand")}},ly=class extends dc{},dy=class extends ly{mode;constructor(t,i){super(t,"SetListViewModeCommand"),this.mode=i}getMode(){return this.mode}},uy=class extends ly{enabled;constructor(t,i){super(t,"ToggleListViewSelectorCommand"),this.enabled=i}isEnabled(){return this.enabled}},hy=class{commandDispatcher=Q.resolve(Yi);create(t){this.commandDispatcher.dispatch(new cy(t))}setMode(t,i){this.commandDispatcher.dispatch(new dy(i,t))}toggleSelector(t,i){this.commandDispatcher.dispatch(new uy(i,t))}},AE=class extends bl{constructor(t){super(t)}toReadModelRootId(){return new my(this.getId())}},my=class extends vl{constructor(t){super(t)}toAggregateId(){return new AE(this.getId())}},U1=new my("-1"),V$=(()=>{class n{listViewDispatcher;constructor(i){this.listViewDispatcher=i}static services=[hy];create(i=U1){this.listViewDispatcher.create(i.toAggregateId())}setMode(i,e=U1){this.listViewDispatcher.setMode(i,e.toAggregateId())}toggleSelector(i,e=U1){this.listViewDispatcher.toggleSelector(i,e.toAggregateId())}}return n})(),pg=class extends Ka{},gg=class extends pg{mode;constructor(t,i){super(t,i,"ListViewModeSetEvent"),this.mode=i}getTheme(){return this.mode}},RE=class extends ca{constructor(){super()}onModeChange(t){return this.onEvent(t,gg)}},_T=function(n){return n.LIST="List",n.CARD="Card",n}(_T||{}),fg=class n extends Mt{static default=_T.LIST;constructor(){super(n.default)}},yT=(()=>{class n extends Mt{static default=!1;constructor(){super(n.default)}}return n})(),j$=(()=>{class n{listViewModeArchive;listViewSelectorArchive;constructor(i,e){this.listViewModeArchive=i,this.listViewSelectorArchive=e}static services=[fg,yT];onMode(i){return this.listViewModeArchive.on(i)}onSelector(i){return this.listViewSelectorArchive.on(i)}}return n})(),py=class extends wl{},qO=(()=>{class n extends yl{constructor(i){super(i)}static services=[py]}return n})(),FE=class{forCommand(){return dy}handle(t,i){let e=i.getMode();t.setMode(e)}},OE=class{forCommand(){return uy}handle(t,i){let e=i.isEnabled();t.toggleModeSelector(e)}},L$=(()=>{class n{listViewModeArchive;constructor(i){this.listViewModeArchive=i}static services=[fg];forEvent(){return gg}handle(i){i.ofMessageType("ListViewModeSetEvent")&&this.listViewModeArchive.next(i.getAggregateId(),i.getTheme())}}return n})(),gy=class extends pg{enabled;constructor(t,i){super(t,i,"ListViewSelectorToggledEvent"),this.enabled=i}isEnabled(){return this.enabled}},B$=(()=>{class n{listViewSelectorArchive;constructor(i){this.listViewSelectorArchive=i}static services=[yT];forEvent(){return gy}handle(i){i.ofMessageType("ListViewSelectorToggledEvent")&&this.listViewSelectorArchive.next(i.getAggregateId(),i.isEnabled())}}return n})(),PE=class{forCommand(){return cy}},NE=class extends pg{constructor(t){super(t,null,"ListViewCreatedEvent")}},bg=class extends ml{},VE=class extends bg{constructor(t){super(t,"ListViewCreatedAggregateEvent")}toDomainEvent(){return new NE(this.getAggregateId())}},jE=class extends bg{mode;constructor(t,i){super(t,"ListViewModeSetAggregateEvent"),this.mode=i}toDomainEvent(){return new gg(this.getAggregateId(),this.mode)}},LE=class{enabled=null;visible=!1;constructor(){}isVisible(){return this.enabled!==null?this.enabled:this.visible}setEnabled(t){this.enabled=t}setVisible(t){this.visible=t}},BE=class extends bg{enabled;constructor(t,i){super(t,"ListViewSelectorToggledAggregateEvent"),this.enabled=i}toDomainEvent(){return new gy(this.getAggregateId(),this.enabled)}},zE=class extends gl{mode;selectorVisibility;constructor(t){super(t,"ListViewAggregate"),this.setMode(_T.LIST),this.initSelectorVisibility()}createEvent(){return VE}setMode(t){this.mode=t,this.addEvent(new jE(this.getId(),this.mode))}toggleModeSelector(t){this.selectorVisibility.setEnabled(t),this.emitEventAfterSelectorVisibilityChange()}initSelectorVisibility(){this.selectorVisibility=new LE,this.emitEventAfterSelectorVisibilityChange()}emitEventAfterSelectorVisibilityChange(){this.addEvent(new BE(this.getId(),this.selectorVisibility.isVisible()))}},HE=class extends hl{constructor(){super()}create(t){return new zE(t)}},UE=class extends pl{},z$=(()=>{class n extends UE{inMemorySchemaAggregateStore;constructor(i){super(),this.inMemorySchemaAggregateStore=i}static services=[qO];findById(i){return this.inMemorySchemaAggregateStore.findById(i)}save(i){this.inMemorySchemaAggregateStore.save(i)}}return n})(),WE=class{defineAggregate(){return{aggregateKey:AF,createCommandHandler:PE,factory:HE,repository:z$}}registerKey(){return AF}registerProviders(t){t.provide(hy)}registerCommandHandlers(){return[FE,OE]}registerDomainEventHandler(){return[L$,B$]}registerMultiDomainEventHandler(){return[]}},AF="ListViewKey",GE=class{registerProviders(t){t.provide(V$),t.provide(RE),t.provide(j$),t.provide(fg),t.provide(yT),t.provide(qO),t.provide(py)}};function H$(){new _n(new GE,new WE).init()}function U$(){return Q.resolve(nr)}function W$(){return Q.resolve(od)}function G$(){return Q.resolve(nh)}var $$=[{provide:nr,useFactory:U$},{provide:od,useFactory:W$},{provide:nh,useFactory:G$}];function Y$(){return new nd.DefaultBuilder().build()}var q$=[FO,RO],Q$=[le,$i,ds,so,ad,C$,vy,_G,DG,A$,AO,lT,_$,NG,$G,e$,x$,ZW,uG,pG,nT,EO,gG,a$,tG,UO,q$];var K$=[fc,cO,iO,oO,rO,aO,ad,vy,s$];function X$(){return Q.resolve(as)}function Z$(){return Q.resolve(Jr)}H$();N$();var $E=class n{platformId;static HERMES_API="hermesApi";static exportDeclarations=Array.from(K$);static withConfig(t={cssClassName:"",hermesModuleConfig:{loggers:!1}}){return{ngModule:n,providers:[{provide:Dk,useValue:t.cssClassName},{provide:bv,useValue:t.hermesModuleConfig.loggers},{provide:vv,useValue:t.hermesModuleConfig.loggers},{provide:Dk,useValue:"structure"},{provide:nd,useFactory:Y$},TD,yg,Rl,{provide:as,useFactory:X$},{provide:Jr,useFactory:Z$},$$]}}constructor(t){this.platformId=t,eF(),Hn(this.platformId)&&(iF(),window[n.HERMES_API].loggers=!1)}static \u0275fac=function(i){return new(i||n)(k(Xt))};static \u0275mod=X({type:n});static \u0275inj=K({imports:[Q$,fc,Cu,Zr,Iu,es,mc,ku,Du,Mu,Au,Eu,Tu,Ru,Fu,pc,Dl,Ou,ts,Su,kl,pc,vy]})},J$=(()=>{class n{static PREFIX="gui-grid-";static index=0;generateId(){return n.index++,n.PREFIX+n.index}static \u0275fac=function(e){return new(e||n)};static \u0275prov=N({token:n,factory:n.\u0275fac})}return n})(),e7=[$E.withConfig({cssClassName:"grid",hermesModuleConfig:{loggers:!0}})];var t7=[J$,NF],i7=[wn,qE],n7=[wn,qE],yn=class n{static exportDeclarations=Array.from(i7);static elementComponents=Array.from(n7);static \u0275fac=function(i){return new(i||n)};static \u0275mod=X({type:n});static \u0275inj=K({providers:t7,imports:[e7]})};var Ii=class{constructor(t,i){this.http=t,this.baseUrl=i}getAll(){return this.http.get(this.baseUrl,{withCredentials:!0})}getById(t){let i=`${this.baseUrl}/${t}`;return this.http.get(i,{withCredentials:!0})}create(t){return this.http.post(this.baseUrl,t,{withCredentials:!0})}update(t){let i=`${this.baseUrl}`;return this.http.put(i,t,{withCredentials:!0})}delete(t){let i=`${this.baseUrl}/${t}`;return this.http.delete(i,{withCredentials:!0})}};var us=class us extends $n{constructor(t,i,e){super(),this.platformId=t,this.rendererFactory=i,this.document=e,this.themeSubject=new si(ah()),this.themeChanges$=this.themeSubject.asObservable(),this.renderer=i.createRenderer(null,null)}setTheme(t){typeof window<"u"&&localStorage.setItem("theme",t),this.updateTheme()}updateTheme(){let t=ah();switch(this.themeSubject.next(ah()),this.themeSubject.next(ah()),t){case dn.Dark:case dn.Auto:this.renderer.addClass(this.document.body,"mat-color-scheme-dark"),this.renderer.removeClass(this.document.body,"mat-color-scheme-light");break;case dn.Light:this.renderer.addClass(this.document.body,"mat-color-scheme-light"),this.renderer.removeClass(this.document.body,"mat-color-scheme-dark");break}us.ThemeChangeSubscribers.forEach(e=>e(t));let i=this.document.documentElement;if(t===dn.Auto){let e=window.matchMedia("(prefers-color-scheme: dark)").matches?dn.Dark:dn.Light;this.renderer.setAttribute(i,"data-bs-theme",e)}else this.renderer.setAttribute(i,"data-bs-theme",t)}};us.ThemeChangeSubscribers=new Array,us.\u0275fac=function(i){return new(i||us)(k(Xt),k(zd),k(ye))},us.\u0275prov=N({token:us,factory:us.\u0275fac,providedIn:"root"});var Zi=us,dn=function(n){return n.Dark="dark",n.Light="light",n.Auto="auto",n}(dn||{}),r7=n=>{switch(n){case dn.Dark:return dn.Dark;case dn.Light:return dn.Light;case dn.Auto:return dn.Auto;default:return}};function ah(){let n=typeof window<"u"?localStorage.getItem("theme"):"dark";return n===null?dn.Dark:r7(n)??dn.Dark}var o7=["grid"],co=(()=>{let t=class t{constructor(e,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:a=>`
        <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:fp.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"?Ki.DARK:Ki.FABRIC:Ki.DARK,this.themeSubscription=new pt,this.id=t.count++,this.rowDetailTemplate=null,this.isCellEditable=!1,this.cellEditing={enabled:this.isCellEditable,rowEdit:(a,c,m)=>!!(m%2),cellEdit:(a,c,m)=>!!(m%5)},this.rowSelection=!0,this.onSelectedRows=a=>{},this.initData=this.fetchData,this.columns=[],this.rowStyle={},this.rowClass={},this.selected=!1,this.service=e,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(e){this.api.setSource(e)}get selectedRows(){return this.api.getSelectedRows()}ngOnInit(){let e=this.cModeService.themeChanges$.subscribe(r=>{this.theme=r==="dark"?Ki.DARK:Ki.FABRIC});this.themeSubscription.add(e),this.initData()}ngOnDestroy(){this.themeSubscription.unsubscribe()}fetchData(){this.service.getAll().subscribe({next:e=>{this.source=e,this.loading=!1},error:e=>{}})}};t.count=0,t.\u0275fac=function(r){return new(r||t)(l(Ii),l(Array),l(Zi))},t.\u0275cmp=R({type:t,selectors:[["app-base-table"]],viewQuery:function(r,o){if(r&1&&Z(o7,7),r&2){let a;G(a=$())&&(o.mainGrid=a.first)}},inputs:{rowDetailTemplate:"rowDetailTemplate",isCellEditable:"isCellEditable",cellEditing:"cellEditing",rowSelection:"rowSelection",onSelectedRows:"onSelectedRows",initData:"initData",columns:"columns",rowStyle:"rowStyle",rowClass:"rowClass",click:"click"},standalone:!0,features:[se],decls:2,vars:16,consts:[["grid",""],[3,"selectedRows","click","columns","columnMenu","sorting","loading","rowSelection","rowDetail","autoResizeWidth","paging","searching","cellEditing","virtualScroll","infoPanel","titlePanel","theme","rowStyle","rowClass"]],template:function(r,o){if(r&1){let a=oe();f(0,"gui-grid",1,0),A("selectedRows",function(m){return V(a),j(o.onSelectedRows(m))})("click",function(){return V(a),j(o.click&&o.click(o))}),v()}r&2&&w("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)("rowStyle",o.rowStyle)("rowClass",o.rowClass)},dependencies:[le,Ft,yn,wn]});let n=t;return n})();var wy=(()=>{let t=class t extends Ii{constructor(e,r){super(e,r.apiRoute.moduleOfUser)}deleteByModuleGroupId(e,r){let o=`${this.baseUrl}?moduleId=${e}&userId=${r}`;return this.http.delete(o,{withCredentials:!0})}getByUsername(e){return yt(this,null,function*(){let r=`${this.baseUrl}?username=${e}`;return yield Ln(this.http.get(r,{withCredentials:!0}))})}};t.\u0275fac=function(r){return new(r||t)(k(pi),k(di))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var xy=(()=>{let t=class t extends Ii{constructor(e,r){super(e,r.apiRoute.groupOfUser)}deleteByGroupUserId(e,r){let o=`${this.baseUrl}?groupId=${e}&userId=${r}`;return this.http.delete(o,{withCredentials:!0})}getAll(e=!1,r=!1){let o=new Wn;return e&&(o=o.set("withUser",e)),r&&(o=o.set("withGroup",r)),this.http.get(this.baseUrl,{params:o,withCredentials:!0})}getByUsername(e){return yt(this,null,function*(){let r=`${this.baseUrl}?username=${e}`;return yield Ln(this.http.get(r,{withCredentials:!0}))})}};t.\u0275fac=function(r){return new(r||t)(k(pi),k(di))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var lo=(()=>{let t=class t extends Ii{constructor(e,r){super(e,r.apiRoute.user)}getByModuleId(e,r=!0){let o=`${this.baseUrl}/ByModuleId/${e}?assigned=${r}`;return this.http.get(o,{withCredentials:!0})}getByGroupId(e,r=!0){let o=`${this.baseUrl}/ByGroupId/${e}?assigned=${r}`;return this.http.get(o,{withCredentials:!0})}createByDir(e){return this.http.post(`${this.baseUrl}/byDir`,e,{withCredentials:!0})}};t.\u0275fac=function(r){return new(r||t)(k(pi),k(di))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var fa=(()=>{let t=class t extends co{constructor(e,r,o,a){super(o,ot.columnNames.user.basic,a),this.mosService=e,this.gosService=r}fetchDataByModuleId(e,r=!0){this.service.getByModuleId(e,r).subscribe({next:o=>{this.source=o},error:o=>{}})}fetchDataByGroupId(e,r=!0){this.service.getByGroupId(e,r).subscribe({next:o=>{this.source=o},error:o=>{}})}createModuleOfUsers(e,r){return yt(this,null,function*(){let o=r.filter(a=>a.id&&a.id!=null).map(a=>this.mosService.create({moduleId:e,userId:a.id??-1,addedWho:"DEFAULT"}).toPromise());return Promise.all(o)})}createGroupOfUsers(e,r){return yt(this,null,function*(){let o=r.filter(a=>a.id&&a.id!=null).map(a=>this.gosService.create({groupId:e,userId:a.id??-1,addedWho:"DEFAULT"}).toPromise());return Promise.all(o)})}deleteModuleOfUsers(e,r){return yt(this,null,function*(){let o=r.filter(a=>a.id).map(a=>this.mosService.deleteByModuleGroupId(e,a.id??-1).toPromise());try{let a=yield Promise.all(o)}catch{}})}deleteGroupOfUsers(e,r){return yt(this,null,function*(){let o=r.filter(a=>a.id).map(a=>this.gosService.deleteByGroupUserId(e,a.id??-1).toPromise());try{let a=yield Promise.all(o)}catch{}})}};t.\u0275fac=function(r){return new(r||t)(l(wy),l(xy),l(lo),l(Zi))},t.\u0275cmp=R({type:t,selectors:[["app-user-table"]],standalone:!0,features:[L,se],decls:2,vars:16,consts:[["grid",""],[3,"selectedRows","click","columns","columnMenu","sorting","loading","rowSelection","rowDetail","autoResizeWidth","paging","searching","cellEditing","virtualScroll","infoPanel","titlePanel","theme","rowStyle","rowClass"]],template:function(r,o){if(r&1){let a=oe();f(0,"gui-grid",1,0),A("selectedRows",function(m){return V(a),j(o.onSelectedRows(m))})("click",function(){return V(a),j(o.click&&o.click(o))}),v()}r&2&&w("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)("rowStyle",o.rowStyle)("rowClass",o.rowClass)},dependencies:[le,Ft,yn,wn]});let n=t;return n})();var IT=["*"];function a7(n,t){n&1&&Ne(0)}var s7=["tabListContainer"],c7=["tabList"],l7=["tabListInner"],d7=["nextPaginator"],u7=["previousPaginator"],h7=n=>({animationDuration:n}),m7=(n,t)=>({value:n,params:t});function p7(n,t){}var g7=["tabBodyWrapper"],f7=["tabHeader"];function b7(n,t){}function v7(n,t){if(n&1&&H(0,b7,0,0,"ng-template",12),n&2){let i=S().$implicit;w("cdkPortalOutlet",i.templateLabel)}}function _7(n,t){if(n&1&&T(0),n&2){let i=S().$implicit;Ee(i.textLabel)}}function y7(n,t){if(n&1){let i=oe();f(0,"div",7,2),A("click",function(){let r=V(i),o=r.$implicit,a=r.$index,c=S(),m=Si(1);return j(c._handleClick(o,m,a))})("cdkFocusChange",function(r){let o=V(i).$index,a=S();return j(a._tabFocusChanged(r,o))}),E(2,"span",8)(3,"div",9),f(4,"span",10)(5,"span",11),H(6,v7,1,1,null,12)(7,_7,1,1),v()()()}if(n&2){let i=t.$implicit,e=t.$index,r=Si(1),o=S();Di(i.labelClass),ie("mdc-tab--active",o.selectedIndex===e),w("id",o._getTabLabelId(e))("disabled",i.disabled)("fitInkBarToContent",o.fitInkBarToContent),De("tabIndex",o._getTabIndex(e))("aria-posinset",e+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(e))("aria-selected",o.selectedIndex===e)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),b(3),w("matRippleTrigger",r)("matRippleDisabled",i.disabled||o.disableRipple),b(3),Ue(6,i.templateLabel?6:7)}}function w7(n,t){n&1&&Ne(0)}function x7(n,t){if(n&1){let i=oe();f(0,"mat-tab-body",13),A("_onCentered",function(){V(i);let r=S();return j(r._removeTabBodyWrapperHeight())})("_onCentering",function(r){V(i);let o=S();return j(o._setTabBodyWrapperHeight(r))}),v()}if(n&2){let i=t.$implicit,e=t.$index,r=S();Di(i.bodyClass),ie("mat-mdc-tab-body-active",r.selectedIndex===e),w("id",r._getTabContentId(e))("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),De("tabindex",r.contentTabIndex!=null&&r.selectedIndex===e?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(e))("aria-hidden",r.selectedIndex!==e)}}var C7=new re("MatTabContent"),I7=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(r){return new(r||t)(l(tt))},t.\u0275dir=J({type:t,selectors:[["","matTabContent",""]],standalone:!0,features:[Ae([{provide:C7,useExisting:t}])]});let n=t;return n})(),k7=new re("MatTabLabel"),JO=new re("MAT_TAB"),D7=(()=>{let t=class t extends M2{constructor(e,r,o){super(e,r),this._closestTab=o}};t.\u0275fac=function(r){return new(r||t)(l(tt),l(ri),l(JO,8))},t.\u0275dir=J({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],standalone:!0,features:[Ae([{provide:k7,useExisting:t}]),L]});let n=t;return n})(),eP=new re("MAT_TAB_GROUP"),Fn=(()=>{let t=class t{get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}constructor(e,r){this._viewContainerRef=e,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(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new ko(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}};t.\u0275fac=function(r){return new(r||t)(l(ri),l(eP,8))},t.\u0275cmp=R({type:t,selectors:[["mat-tab"]],contentQueries:function(r,o,a){if(r&1&&(Ht(a,D7,5),Ht(a,I7,7,tt)),r&2){let c;G(c=$())&&(o.templateLabel=c.first),G(c=$())&&(o._explicitContent=c.first)}},viewQuery:function(r,o){if(r&1&&Z(tt,7),r&2){let a;G(a=$())&&(o._implicitContent=a.first)}},hostAttrs:["hidden",""],inputs:{disabled:[z.HasDecoratorInputTransform,"disabled","disabled",xe],textLabel:[z.None,"label","textLabel"],ariaLabel:[z.None,"aria-label","ariaLabel"],ariaLabelledby:[z.None,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],standalone:!0,features:[Ae([{provide:JO,useExisting:t}]),ct,he,se],ngContentSelectors:IT,decls:1,vars:0,template:function(r,o){r&1&&(rt(),H(0,a7,1,0,"ng-template"))},encapsulation:2});let n=t;return n})(),wT="mdc-tab-indicator--active",XO="mdc-tab-indicator--no-transition",xT=class{constructor(t){this._items=t}hide(){this._items.forEach(t=>t.deactivateInkBar())}alignToElement(t){let i=this._items.find(r=>r.elementRef.nativeElement===t),e=this._currentItem;if(i!==e&&(e?.deactivateInkBar(),i)){let r=e?.elementRef.nativeElement.getBoundingClientRect?.();i.activateInkBar(r),this._currentItem=i}}},S7=(()=>{let t=class t{constructor(){this._elementRef=F(P),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let r=this._elementRef.nativeElement;if(!e||!r.getBoundingClientRect||!this._inkBarContentElement){r.classList.add(wT);return}let o=r.getBoundingClientRect(),a=e.width/o.width,c=e.left-o.left;r.classList.add(XO),this._inkBarContentElement.style.setProperty("transform",`translateX(${c}px) scaleX(${a})`),r.getBoundingClientRect(),r.classList.remove(XO),r.classList.add(wT),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(wT)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,r=this._inkBarElement=e.createElement("span"),o=this._inkBarContentElement=e.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 e=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;e.appendChild(this._inkBarElement)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=J({type:t,inputs:{fitInkBarToContent:[z.HasDecoratorInputTransform,"fitInkBarToContent","fitInkBarToContent",xe]},features:[ct]});let n=t;return n})();var tP=(()=>{let t=class t extends S7{constructor(e){super(),this.elementRef=e,this.disabled=!1}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}};t.\u0275fac=function(r){return new(r||t)(l(P))},t.\u0275dir=J({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(r,o){r&2&&(De("aria-disabled",!!o.disabled),ie("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:[z.HasDecoratorInputTransform,"disabled","disabled",xe]},standalone:!0,features:[ct,L]});let n=t;return n})(),ZO=vn({passive:!0}),E7=650,T7=100,M7=(()=>{let t=class t{get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let r=isNaN(e)?0:e;this._selectedIndex!=r&&(this._selectedIndexChanged=!0,this._selectedIndex=r,this._keyManager&&this._keyManager.updateActiveItem(r))}constructor(e,r,o,a,c,m,x){this._elementRef=e,this._changeDetectorRef=r,this._viewportRuler=o,this._dir=a,this._ngZone=c,this._platform=m,this._animationMode=x,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 Y,this.indexFocused=new Y,c.runOutsideAngular(()=>{Bn(e.nativeElement,"mouseleave").pipe(_e(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){Bn(this._previousPaginator.nativeElement,"touchstart",ZO).pipe(_e(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Bn(this._nextPaginator.nativeElement,"touchstart",ZO).pipe(_e(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){let e=this._dir?this._dir.change:we("ltr"),r=this._viewportRuler.change(150),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Ob(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(gt(1)).subscribe(o),St(e,r,this._items.changes,this._itemsResized()).pipe(_e(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(a=>{this.indexFocused.emit(a),this._setTabFocus(a)})}_itemsResized(){return typeof ResizeObserver!="function"?Or:this._items.changes.pipe(yi(this._items),ki(e=>new Lt(r=>this._ngZone.runOutsideAngular(()=>{let o=new ResizeObserver(a=>r.next(a));return e.forEach(a=>o.observe(a.elementRef.nativeElement)),()=>{o.disconnect()}}))),Va(1),et(e=>e.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(e){if(!Ut(e))switch(e.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(e))}break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){let e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",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(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return this._items?!!this._items.toArray()[e]:!0}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].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 e=this.scrollDistance,r=this._getLayoutDirection()==="ltr"?-e:e;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(e){this._scrollTo(e)}_scrollHeader(e){let r=this._tabListContainer.nativeElement.offsetWidth,o=(e=="before"?-1:1)*r/3;return this._scrollTo(this._scrollDistance+o)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let r=this._items?this._items.toArray()[e]:null;if(!r)return;let o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:a,offsetWidth:c}=r.elementRef.nativeElement,m,x;this._getLayoutDirection()=="ltr"?(m=a,x=m+c):(x=this._tabListInner.nativeElement.offsetWidth-a,m=x-c);let I=this.scrollDistance,O=this.scrollDistance+o;m<I?this.scrollDistance-=I-m:x>O&&(this.scrollDistance+=Math.min(x-O,m-I))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){let e=this._tabListInner.nativeElement.scrollWidth,r=this._tabListContainer.nativeElement.offsetWidth;return e-r||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,r=e?e.elementRef.nativeElement:null;r?this._inkBar.alignToElement(r):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,r){r&&r.button!=null&&r.button!==0||(this._stopInterval(),_o(E7,T7).pipe(_e(St(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:o,distance:a}=this._scrollHeader(e);(a===0||a>=o)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let r=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(r,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:r,distance:this._scrollDistance}}};t.\u0275fac=function(r){return new(r||t)(l(P),l(ce),l(La),l(Yt,8),l(be),l(Qe),l(Et,8))},t.\u0275dir=J({type:t,inputs:{disablePagination:[z.HasDecoratorInputTransform,"disablePagination","disablePagination",xe],selectedIndex:[z.HasDecoratorInputTransform,"selectedIndex","selectedIndex",jr]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[ct]});let n=t;return n})(),A7=(()=>{let t=class t extends M7{constructor(e,r,o,a,c,m,x){super(e,r,o,a,c,m,x),this.disableRipple=!1}ngAfterContentInit(){this._inkBar=new xT(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}};t.\u0275fac=function(r){return new(r||t)(l(P),l(ce),l(La),l(Yt,8),l(be),l(Qe),l(Et,8))},t.\u0275cmp=R({type:t,selectors:[["mat-tab-header"]],contentQueries:function(r,o,a){if(r&1&&Ht(a,tP,4),r&2){let c;G(c=$())&&(o._items=c)}},viewQuery:function(r,o){if(r&1&&(Z(s7,7),Z(c7,7),Z(l7,7),Z(d7,5),Z(u7,5)),r&2){let a;G(a=$())&&(o._tabListContainer=a.first),G(a=$())&&(o._tabList=a.first),G(a=$())&&(o._tabListInner=a.first),G(a=$())&&(o._nextPaginator=a.first),G(a=$())&&(o._previousPaginator=a.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(r,o){r&2&&ie("mat-mdc-tab-header-pagination-controls-enabled",o._showPaginationControls)("mat-mdc-tab-header-rtl",o._getLayoutDirection()=="rtl")},inputs:{disableRipple:[z.HasDecoratorInputTransform,"disableRipple","disableRipple",xe]},standalone:!0,features:[ct,L,se],ngContentSelectors:IT,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 a=oe();rt(),f(0,"button",5,0),A("click",function(){return V(a),j(o._handlePaginatorClick("before"))})("mousedown",function(m){return V(a),j(o._handlePaginatorPress("before",m))})("touchend",function(){return V(a),j(o._stopInterval())}),E(2,"div",6),v(),f(3,"div",7,1),A("keydown",function(m){return V(a),j(o._handleKeydown(m))}),f(5,"div",8,2),A("cdkObserveContent",function(){return V(a),j(o._onContentChanges())}),f(7,"div",9,3),Ne(9),v()()(),f(10,"button",10,4),A("mousedown",function(m){return V(a),j(o._handlePaginatorPress("after",m))})("click",function(){return V(a),j(o._handlePaginatorClick("after"))})("touchend",function(){return V(a),j(o._stopInterval())}),E(12,"div",6),v()}r&2&&(ie("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),w("matRippleDisabled",o._disableScrollBefore||o.disableRipple)("disabled",o._disableScrollBefore||null),b(3),ie("_mat-animation-noopable",o._animationMode==="NoopAnimations"),b(7),ie("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),w("matRippleDisabled",o._disableScrollAfter||o.disableRipple)("disabled",o._disableScrollAfter||null))},dependencies:[aa,B2],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=t;return n})(),R7=new re("MAT_TABS_CONFIG"),F7={translateTab:Lr("translateTab",[Un("center, void, left-origin-center, right-origin-center",Zt({transform:"none"})),Un("left",Zt({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Un("right",Zt({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Wi("* => left, * => right, left => center, right => center",on("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Wi("void => left-origin-center",[Zt({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),on("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Wi("void => right-origin-center",[Zt({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),on("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},O7=(()=>{let t=class t extends qn{constructor(e,r,o,a){super(e,r,a),this._host=o,this._centeringSub=pt.EMPTY,this._leavingSub=pt.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(yi(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!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()}};t.\u0275fac=function(r){return new(r||t)(l(Bt),l(ri),l(ci(()=>iP)),l(ye))},t.\u0275dir=J({type:t,selectors:[["","matTabBodyHost",""]],standalone:!0,features:[L]});let n=t;return n})(),iP=(()=>{let t=class t{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,r,o){this._elementRef=e,this._dir=r,this._dirChangeSubscription=pt.EMPTY,this._translateTabComplete=new ue,this._onCentering=new Y,this._beforeCentering=new Y,this._afterLeavingCenter=new Y,this._onCentered=new Y(!0),this.animationDuration="500ms",this.preserveContent=!1,r&&(this._dirChangeSubscription=r.change.subscribe(a=>{this._computePositionAnimationState(a),o.markForCheck()})),this._translateTabComplete.pipe(Na((a,c)=>a.fromState===c.fromState&&a.toState===c.toState)).subscribe(a=>{this._isCenterPosition(a.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(a.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(e){let r=this._isCenterPosition(e.toState);this._beforeCentering.emit(r),r&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(e){return e=="center"||e=="left-origin-center"||e=="right-origin-center"}_computePositionAnimationState(e=this._getLayoutDirection()){this._positionIndex<0?this._position=e=="ltr"?"left":"right":this._positionIndex>0?this._position=e=="ltr"?"right":"left":this._position="center"}_computePositionFromOrigin(e){let r=this._getLayoutDirection();return r=="ltr"&&e<=0||r=="rtl"&&e>0?"left-origin-center":"right-origin-center"}};t.\u0275fac=function(r){return new(r||t)(l(P),l(Yt,8),l(ce))},t.\u0275cmp=R({type:t,selectors:[["mat-tab-body"]],viewQuery:function(r,o){if(r&1&&Z(qn,5),r&2){let a;G(a=$())&&(o._portalHost=a.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:[z.None,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},standalone:!0,features:[se],decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(r,o){if(r&1){let a=oe();f(0,"div",1,0),A("@translateTab.start",function(m){return V(a),j(o._onTranslateTabStarted(m))})("@translateTab.done",function(m){return V(a),j(o._translateTabComplete.next(m))}),H(2,p7,0,0,"ng-template",2),v()}r&2&&w("@translateTab",Wh(3,m7,o._position,Ti(1,h7,o.animationDuration)))},dependencies:[O7,iI],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:[F7.translateTab]}});let n=t;return n})(),P7=0,N7=!0,or=(()=>{let t=class t{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=e,this._changeDetectorRef.markForCheck()}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=isNaN(e)?null:e}get animationDuration(){return this._animationDuration}set animationDuration(e){let r=e+"";this._animationDuration=/^\d+$/.test(r)?e+"ms":r}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){if(!N7)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}`),e&&r.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,r,o,a){this._elementRef=e,this._changeDetectorRef=r,this._animationMode=a,this._tabs=new Lh,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=pt.EMPTY,this._tabLabelSubscription=pt.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 Y,this.focusChange=new Y,this.animationDone=new Y,this.selectedTabChange=new Y(!0),this._isServer=!F(Qe).isBrowser,this._groupId=P7++,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 e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){let r=this._selectedIndex==null;if(!r){this.selectedTabChange.emit(this._createChangeEvent(e));let o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,a)=>o.isActive=a===e),r||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((r,o)=>{r.position=o-e,this._selectedIndex!=null&&r.position==0&&!r.origin&&(r.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){let r=this._tabs.toArray(),o;for(let a=0;a<r.length;a++)if(r[a].isActive){this._indexToSelect=this._selectedIndex=a,this._lastFocusedTabIndex=null,o=r[a];break}!o&&r[e]&&Promise.resolve().then(()=>{r[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(yi(this._allTabs)).subscribe(e=>{this._tabs.reset(e.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(e){let r=this._tabHeader;r&&(r.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let r=new CT;return r.index=e,this._tabs&&this._tabs.length&&(r.tab=this._tabs.toArray()[e]),r}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=St(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight)return;let r=this._tabBodyWrapper.nativeElement;r.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(r.style.height=e+"px")}_removeTabBodyWrapperHeight(){let e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,r,o){r.focusIndex=o,e.disabled||(this.selectedIndex=o)}_getTabIndex(e){let r=this._lastFocusedTabIndex??this.selectedIndex;return e===r?0:-1}_tabFocusChanged(e,r){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=r)}};t.\u0275fac=function(r){return new(r||t)(l(P),l(ce),l(R7,8),l(Et,8))},t.\u0275cmp=R({type:t,selectors:[["mat-tab-group"]],contentQueries:function(r,o,a){if(r&1&&Ht(a,Fn,5),r&2){let c;G(c=$())&&(o._allTabs=c)}},viewQuery:function(r,o){if(r&1&&(Z(g7,5),Z(f7,5)),r&2){let a;G(a=$())&&(o._tabBodyWrapper=a.first),G(a=$())&&(o._tabHeader=a.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:10,hostBindings:function(r,o){r&2&&(Di("mat-"+(o.color||"primary")),ft("--mat-tab-animation-duration",o.animationDuration),ie("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:[z.HasDecoratorInputTransform,"fitInkBarToContent","fitInkBarToContent",xe],stretchTabs:[z.HasDecoratorInputTransform,"mat-stretch-tabs","stretchTabs",xe],dynamicHeight:[z.HasDecoratorInputTransform,"dynamicHeight","dynamicHeight",xe],selectedIndex:[z.HasDecoratorInputTransform,"selectedIndex","selectedIndex",jr],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[z.HasDecoratorInputTransform,"contentTabIndex","contentTabIndex",jr],disablePagination:[z.HasDecoratorInputTransform,"disablePagination","disablePagination",xe],disableRipple:[z.HasDecoratorInputTransform,"disableRipple","disableRipple",xe],preserveContent:[z.HasDecoratorInputTransform,"preserveContent","preserveContent",xe],backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],standalone:!0,features:[Ae([{provide:eP,useExisting:t}]),ct,se],ngContentSelectors:IT,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 a=oe();rt(),f(0,"mat-tab-header",3,0),A("indexFocused",function(m){return V(a),j(o._focusChanged(m))})("selectFocusedIndex",function(m){return V(a),j(o.selectedIndex=m)}),qo(2,y7,8,17,"div",4,Yo),v(),H(4,w7,1,0),f(5,"div",5,1),qo(7,x7,1,13,"mat-tab-body",6,Yo),v()}r&2&&(w("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination),b(2),Qo(o._tabs),b(2),Ue(4,o._isServer?4:-1),b(),ie("_mat-animation-noopable",o._animationMode==="NoopAnimations"),b(2),Qo(o._tabs))},dependencies:[A7,tP,Om,aa,qn,iP],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=t;return n})(),CT=class{};var Ji=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=X({type:t}),t.\u0275inj=K({imports:[Xe,Xe]});let n=t;return n})();var uo=(()=>{let t=class t extends Ii{constructor(e,r){super(e,r.apiRoute.group)}createByDir(e){return this.http.post(`${this.baseUrl}/byDir`,e,{withCredentials:!0})}};t.\u0275fac=function(r){return new(r||t)(k(pi),k(di))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Ac=(()=>{let t=class t extends co{constructor(e,r,o){super(e,ot.columnNames.group.basic,r),this.gouService=o}fetchDataByUsername(e){this.gouService.getByUsername(e).then(r=>r.map(o=>o.group)).then(r=>this.source=r)}};t.\u0275fac=function(r){return new(r||t)(l(uo),l(Zi),l(xy))},t.\u0275cmp=R({type:t,selectors:[["app-group-table"]],standalone:!0,features:[L,se],decls:2,vars:16,consts:[["grid",""],[3,"selectedRows","click","columns","columnMenu","sorting","loading","rowSelection","rowDetail","autoResizeWidth","paging","searching","cellEditing","virtualScroll","infoPanel","titlePanel","theme","rowStyle","rowClass"]],template:function(r,o){if(r&1){let a=oe();f(0,"gui-grid",1,0),A("selectedRows",function(m){return V(a),j(o.onSelectedRows(m))})("click",function(){return V(a),j(o.click&&o.click(o))}),v()}r&2&&w("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)("rowStyle",o.rowStyle)("rowClass",o.rowClass)},dependencies:[le,Ft,yn,wn]});let n=t;return n})();var nP=(()=>{let t=class t extends Ii{constructor(e,r){super(e,r.apiRoute.module)}};t.\u0275fac=function(r){return new(r||t)(k(pi),k(di))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var lh=(()=>{let t=class t extends co{constructor(e,r,o){super(e,ot.columnNames.module,r),this.mouService=o}fetchDataByUsername(e){this.mouService.getByUsername(e).then(r=>r.map(o=>o.module)).then(r=>this.source=r)}};t.\u0275fac=function(r){return new(r||t)(l(nP),l(Zi),l(wy))},t.\u0275cmp=R({type:t,selectors:[["app-module-table"]],standalone:!0,features:[L,se],decls:2,vars:16,consts:[["grid",""],[3,"selectedRows","click","columns","columnMenu","sorting","loading","rowSelection","rowDetail","autoResizeWidth","paging","searching","cellEditing","virtualScroll","infoPanel","titlePanel","theme","rowStyle","rowClass"]],template:function(r,o){if(r&1){let a=oe();f(0,"gui-grid",1,0),A("selectedRows",function(m){return V(a),j(o.onSelectedRows(m))})("click",function(){return V(a),j(o.click&&o.click(o))}),v()}r&2&&w("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)("rowStyle",o.rowStyle)("rowClass",o.rowClass)},dependencies:[le,Ft,yn,wn]});let n=t;return n})();function hs(n){n||(vM(hs),n=F(_M));let t=new Lt(i=>n.onDestroy(i.next.bind(i)));return i=>i.pipe(_e(t))}var kT=class{constructor(t){this._box=t,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(t){return this._elementObservables.has(t)||this._elementObservables.set(t,new Lt(i=>{let e=this._resizeSubject.subscribe(i);return this._resizeObserver?.observe(t,{box:this._box}),()=>{this._resizeObserver?.unobserve(t),e.unsubscribe(),this._elementObservables.delete(t)}}).pipe(et(i=>i.some(e=>e.target===t)),Vx({bufferSize:1,refCount:!0}),_e(this._destroyed))),this._elementObservables.get(t)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},rP=(()=>{let t=class t{constructor(){this._observers=new Map,this._ngZone=F(be),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(e,r){let o=r?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new kT(o)),this._observers.get(o).observe(e)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var j7=["notch"],L7=["matFormFieldNotchedOutline",""],B7=["*"],z7=["textField"],H7=["iconPrefixContainer"],U7=["textPrefixContainer"],W7=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],G7=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function $7(n,t){n&1&&E(0,"span",17)}function Y7(n,t){if(n&1&&(f(0,"label",16),Ne(1,1),H(2,$7,1,0,"span",17),v()),n&2){let i=S(2);w("floating",i._shouldLabelFloat())("monitorResize",i._hasOutline())("id",i._labelId),De("for",i._control.disableAutomaticLabeling?null:i._control.id),b(2),Ue(2,!i.hideRequiredMarker&&i._control.required?2:-1)}}function q7(n,t){if(n&1&&H(0,Y7,3,5,"label",16),n&2){let i=S();Ue(0,i._hasFloatingLabel()?0:-1)}}function Q7(n,t){n&1&&E(0,"div",5)}function K7(n,t){}function X7(n,t){if(n&1&&H(0,K7,0,0,"ng-template",11),n&2){S(2);let i=Si(1);w("ngTemplateOutlet",i)}}function Z7(n,t){if(n&1&&(f(0,"div",7),H(1,X7,1,1,null,11),v()),n&2){let i=S();w("matFormFieldNotchedOutlineOpen",i._shouldLabelFloat()),b(),Ue(1,i._forceDisplayInfixLabel()?-1:1)}}function J7(n,t){n&1&&(f(0,"div",8,2),Ne(2,2),v())}function eY(n,t){n&1&&(f(0,"div",9,3),Ne(2,3),v())}function tY(n,t){}function iY(n,t){if(n&1&&H(0,tY,0,0,"ng-template",11),n&2){S();let i=Si(1);w("ngTemplateOutlet",i)}}function nY(n,t){n&1&&(f(0,"div",12),Ne(1,4),v())}function rY(n,t){n&1&&(f(0,"div",13),Ne(1,5),v())}function oY(n,t){n&1&&E(0,"div",14)}function aY(n,t){if(n&1&&(f(0,"div",18),Ne(1,6),v()),n&2){let i=S();w("@transitionMessages",i._subscriptAnimationState)}}function sY(n,t){if(n&1&&(f(0,"mat-hint",20),T(1),v()),n&2){let i=S(2);w("id",i._hintLabelId),b(),Ee(i.hintLabel)}}function cY(n,t){if(n&1&&(f(0,"div",19),H(1,sY,2,2,"mat-hint",20),Ne(2,7),E(3,"div",21),Ne(4,8),v()),n&2){let i=S();w("@transitionMessages",i._subscriptAnimationState),b(),Ue(1,i.hintLabel?1:-1)}}var ho=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=J({type:t,selectors:[["mat-label"]],standalone:!0});let n=t;return n})(),lY=0,hP=new re("MatError"),Rc=(()=>{let t=class t{constructor(e,r){this.id=`mat-mdc-error-${lY++}`,e||r.nativeElement.setAttribute("aria-live","polite")}};t.\u0275fac=function(r){return new(r||t)(Bi("aria-live"),l(P))},t.\u0275dir=J({type:t,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&&zi("id",o.id)},inputs:{id:"id"},standalone:!0,features:[Ae([{provide:hP,useExisting:t}])]});let n=t;return n})(),dY=0,Iy=(()=>{let t=class t{constructor(){this.align="start",this.id=`mat-mdc-hint-${dY++}`}};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=J({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(r,o){r&2&&(zi("id",o.id),De("align",null),ie("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0});let n=t;return n})(),uY=new re("MatPrefix");var mP=new re("MatSuffix"),pP=(()=>{let t=class t{constructor(){this._isText=!1}set _isTextSelector(e){this._isText=!0}};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=J({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[z.None,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[Ae([{provide:mP,useExisting:t}])]});let n=t;return n})(),gP=new re("FloatingLabelParent"),oP=(()=>{let t=class t{get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(e){this._elementRef=e,this._floating=!1,this._monitorResize=!1,this._resizeObserver=F(rP),this._ngZone=F(be),this._parent=F(gP),this._resizeSubscription=new pt}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return hY(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())})}};t.\u0275fac=function(r){return new(r||t)(l(P))},t.\u0275dir=J({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(r,o){r&2&&ie("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0});let n=t;return n})();function hY(n){let t=n;if(t.offsetParent!==null)return t.scrollWidth;let i=t.cloneNode(!0);i.style.setProperty("position","absolute"),i.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(i);let e=i.scrollWidth;return i.remove(),e}var aP="mdc-line-ripple--active",Cy="mdc-line-ripple--deactivating",sP=(()=>{let t=class t{constructor(e,r){this._elementRef=e,this._handleTransitionEnd=o=>{let a=this._elementRef.nativeElement.classList,c=a.contains(Cy);o.propertyName==="opacity"&&c&&a.remove(aP,Cy)},r.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(Cy),e.add(aP)}deactivate(){this._elementRef.nativeElement.classList.add(Cy)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}};t.\u0275fac=function(r){return new(r||t)(l(P),l(be))},t.\u0275dir=J({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0});let n=t;return n})(),cP=(()=>{let t=class t{constructor(e,r){this._elementRef=e,this._ngZone=r,this.open=!1}ngAfterViewInit(){let e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){!this.open||!e?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}};t.\u0275fac=function(r){return new(r||t)(l(P),l(be))},t.\u0275cmp=R({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(r,o){if(r&1&&Z(j7,5),r&2){let a;G(a=$())&&(o._notch=a.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(r,o){r&2&&ie("mdc-notched-outline--notched",o.open)},inputs:{open:[z.None,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[se],attrs:L7,ngContentSelectors:B7,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&&(rt(),E(0,"div",1),f(1,"div",2,0),Ne(3),v(),E(4,"div",3))},encapsulation:2,changeDetection:0});let n=t;return n})(),mY={transitionMessages:Lr("transitionMessages",[Un("enter",Zt({opacity:1,transform:"translateY(0%)"})),Wi("void => enter",[Zt({opacity:0,transform:"translateY(-5px)"}),on("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},ld=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=J({type:t});let n=t;return n})();var dd=new re("MatFormField"),pY=new re("MAT_FORM_FIELD_DEFAULT_OPTIONS"),lP=0,dP="fill",gY="auto",uP="fixed",fY="translateY(-50%)",ba=(()=>{let t=class t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=gr(e)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||gY}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(e){let r=this._appearance,o=e||this._defaults?.appearance||dP;this._appearance=o,this._appearance==="outline"&&this._appearance!==r&&(this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||uP}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||uP}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}constructor(e,r,o,a,c,m,x,I){this._elementRef=e,this._changeDetectorRef=r,this._ngZone=o,this._dir=a,this._platform=c,this._defaults=m,this._animationMode=x,this._hideRequiredMarker=!1,this.color="primary",this._appearance=dP,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${lP++}`,this._hintLabelId=`mat-mdc-hint-${lP++}`,this._subscriptAnimationState="",this._destroyed=new ue,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,m&&(m.appearance&&(this.appearance=m.appearance),this._hideRequiredMarker=!!m?.hideRequiredMarker,m.color&&(this.color=m.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 e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${e.controlType}`),e.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(_e(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),St(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(_e(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(_e(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(e){let r=this._control?this._control.ngControl:null;return r&&r[e]}_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 e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let r=this._hintChildren?this._hintChildren.find(a=>a.align==="start"):null,o=this._hintChildren?this._hintChildren.find(a=>a.align==="end"):null;r?e.push(r.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.id)}else this._errorChildren&&e.push(...this._errorChildren.map(r=>r.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;let e=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){e.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdateOnStable=!0;return}let r=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,a=r?.getBoundingClientRect().width??0,c=o?.getBoundingClientRect().width??0,m=this._dir.value==="rtl"?"-1":"1",x=`${a+c}px`,O=`calc(${m} * (${x} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;e.style.transform=`var(
        --mat-mdc-form-field-label-transform,
        ${fY} translateX(${O})
    )`}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let r=e.getRootNode();return r&&r!==e}return document.documentElement.contains(e)}};t.\u0275fac=function(r){return new(r||t)(l(P),l(ce),l(be),l(Yt),l(Qe),l(pY,8),l(Et,8),l(ye))},t.\u0275cmp=R({type:t,selectors:[["mat-form-field"]],contentQueries:function(r,o,a){if(r&1&&(Ht(a,ho,5),Ht(a,ho,7),Ht(a,ld,5),Ht(a,uY,5),Ht(a,mP,5),Ht(a,hP,5),Ht(a,Iy,5)),r&2){let c;G(c=$())&&(o._labelChildNonStatic=c.first),G(c=$())&&(o._labelChildStatic=c.first),G(c=$())&&(o._formFieldControl=c.first),G(c=$())&&(o._prefixChildren=c),G(c=$())&&(o._suffixChildren=c),G(c=$())&&(o._errorChildren=c),G(c=$())&&(o._hintChildren=c)}},viewQuery:function(r,o){if(r&1&&(Z(z7,5),Z(H7,5),Z(U7,5),Z(oP,5),Z(cP,5),Z(sP,5)),r&2){let a;G(a=$())&&(o._textField=a.first),G(a=$())&&(o._iconPrefixContainer=a.first),G(a=$())&&(o._textPrefixContainer=a.first),G(a=$())&&(o._floatingLabel=a.first),G(a=$())&&(o._notchedOutline=a.first),G(a=$())&&(o._lineRipple=a.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(r,o){r&2&&ie("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:[Ae([{provide:dd,useExisting:t},{provide:gP,useExisting:t}]),se],ngContentSelectors:G7,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 a=oe();rt(W7),H(0,q7,1,1,"ng-template",null,0,wt),f(2,"div",4,1),A("click",function(m){return V(a),j(o._control.onContainerClick(m))}),H(4,Q7,1,0,"div",5),f(5,"div",6),H(6,Z7,2,2,"div",7)(7,J7,3,0,"div",8)(8,eY,3,0,"div",9),f(9,"div",10),H(10,iY,1,1,null,11),Ne(11),v(),H(12,nY,2,0,"div",12)(13,rY,2,0,"div",13),v(),H(14,oY,1,0,"div",14),v(),f(15,"div",15),H(16,aY,2,1)(17,cY,5,2),v()}if(r&2){let a;b(2),ie("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),b(2),Ue(4,!o._hasOutline()&&!o._control.disabled?4:-1),b(2),Ue(6,o._hasOutline()?6:-1),b(),Ue(7,o._hasIconPrefix?7:-1),b(),Ue(8,o._hasTextPrefix?8:-1),b(2),Ue(10,!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),b(2),Ue(12,o._hasTextSuffix?12:-1),b(),Ue(13,o._hasIconSuffix?13:-1),b(),Ue(14,o._hasOutline()?-1:14),b(),ie("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic"),b(),Ue(16,(a=o._getDisplayedMessages())==="error"?16:a==="hint"?17:-1)}},dependencies:[oP,cP,tl,sP,Iy],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:[mY.transitionMessages]},changeDetection:0});let n=t;return n})(),On=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=X({type:t}),t.\u0275inj=K({imports:[Xe,le,Db,Xe]});let n=t;return n})();var fP=vn({passive:!0}),bP=(()=>{let t=class t{constructor(e,r){this._platform=e,this._ngZone=r,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Or;let r=Yn(e),o=this._monitoredElements.get(r);if(o)return o.subject;let a=new ue,c="cdk-text-field-autofilled",m=x=>{x.animationName==="cdk-text-field-autofill-start"&&!r.classList.contains(c)?(r.classList.add(c),this._ngZone.run(()=>a.next({target:x.target,isAutofilled:!0}))):x.animationName==="cdk-text-field-autofill-end"&&r.classList.contains(c)&&(r.classList.remove(c),this._ngZone.run(()=>a.next({target:x.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{r.addEventListener("animationstart",m,fP),r.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(r,{subject:a,unlisten:()=>{r.removeEventListener("animationstart",m,fP)}}),a}stopMonitoring(e){let r=Yn(e),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((e,r)=>this.stopMonitoring(r))}};t.\u0275fac=function(r){return new(r||t)(k(Qe),k(be))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var vP=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=X({type:t}),t.\u0275inj=K({});let n=t;return n})();var vY=new re("MAT_INPUT_VALUE_ACCESSOR"),_Y=["button","checkbox","file","hidden","image","radio","range","reset","submit"],yY=0,Fc=(()=>{let t=class t{get disabled(){return this._disabled}set disabled(e){this._disabled=gr(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Jt.required)??!1}set required(e){this._required=gr(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&tI().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=gr(e)}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,r,o,a,c,m,x,I,O,B){this._elementRef=e,this._platform=r,this.ngControl=o,this._autofillMonitor=I,this._formField=B,this._uid=`mat-input-${yY++}`,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(Se=>tI().has(Se)),this._iOSKeyupListener=Se=>{let te=Se.target;!te.value&&te.selectionStart===0&&te.selectionEnd===0&&(te.setSelectionRange(1,1),te.setSelectionRange(0,0))};let ae=this._elementRef.nativeElement,ee=ae.nodeName.toLowerCase();this._inputValueAccessor=x||ae,this._previousNativeValue=this.value,this.id=this.id,r.IOS&&O.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new oc(m,o,c,a,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=ee==="select",this._isTextarea=ee==="textarea",this._isInFormField=!!B,this._isNativeSelect&&(this.controlType=ae.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.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(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let r=this._elementRef.nativeElement;this._previousPlaceholder=e,e?r.setAttribute("placeholder",e):r.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){_Y.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,r=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&r&&r.label)}else return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}};t.\u0275fac=function(r){return new(r||t)(l(P),l(Qe),l(An,10),l(Eo,8),l(Ai,8),l(sc),l(vY,10),l(bP),l(be),l(dd,8))},t.\u0275dir=J({type:t,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&&A("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),r&2&&(zi("id",o.id)("disabled",o.disabled)("required",o.required),De("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),ie("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:[z.None,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[Ae([{provide:ld,useExisting:t}]),he]});let n=t;return n})(),va=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=X({type:t}),t.\u0275inj=K({imports:[Xe,On,On,vP,Xe]});let n=t;return n})();var wY=["*"],Dy;function xY(){if(Dy===void 0&&(Dy=null,typeof window<"u")){let n=window;n.trustedTypes!==void 0&&(Dy=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return Dy}function xg(n){return xY()?.createHTML(n)||n}function _P(n){return Error(`Unable to find icon with the name "${n}"`)}function CY(){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 yP(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function wP(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}var ms=class{constructor(t,i,e){this.url=t,this.svgText=i,this.options=e}},IY=(()=>{let t=class t{constructor(e,r,o,a){this._httpClient=e,this._sanitizer=r,this._errorHandler=a,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(e,r,o){return this.addSvgIconInNamespace("",e,r,o)}addSvgIconLiteral(e,r,o){return this.addSvgIconLiteralInNamespace("",e,r,o)}addSvgIconInNamespace(e,r,o,a){return this._addSvgIconConfig(e,r,new ms(o,null,a))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,r,o,a){let c=this._sanitizer.sanitize(ur.HTML,o);if(!c)throw wP(o);let m=xg(c);return this._addSvgIconConfig(e,r,new ms("",m,a))}addSvgIconSet(e,r){return this.addSvgIconSetInNamespace("",e,r)}addSvgIconSetLiteral(e,r){return this.addSvgIconSetLiteralInNamespace("",e,r)}addSvgIconSetInNamespace(e,r,o){return this._addSvgIconSetConfig(e,new ms(r,null,o))}addSvgIconSetLiteralInNamespace(e,r,o){let a=this._sanitizer.sanitize(ur.HTML,r);if(!a)throw wP(r);let c=xg(a);return this._addSvgIconSetConfig(e,new ms("",c,o))}registerFontClassAlias(e,r=e){return this._fontCssClassesByAlias.set(e,r),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let r=this._sanitizer.sanitize(ur.RESOURCE_URL,e);if(!r)throw yP(e);let o=this._cachedIconsByUrl.get(r);return o?we(Sy(o)):this._loadSvgIconFromConfig(new ms(e,null)).pipe(Kt(a=>this._cachedIconsByUrl.set(r,a)),je(a=>Sy(a)))}getNamedSvgIcon(e,r=""){let o=xP(r,e),a=this._svgIconConfigs.get(o);if(a)return this._getSvgFromConfig(a);if(a=this._getIconConfigFromResolvers(r,e),a)return this._svgIconConfigs.set(o,a),this._getSvgFromConfig(a);let c=this._iconSetConfigs.get(r);return c?this._getSvgFromIconSetConfigs(e,c):Kc(_P(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?we(Sy(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(je(r=>Sy(r)))}_getSvgFromIconSetConfigs(e,r){let o=this._extractIconWithNameFromAnySet(e,r);if(o)return we(o);let a=r.filter(c=>!c.svgText).map(c=>this._loadSvgIconSetFromConfig(c).pipe(Nr(m=>{let I=`Loading icon set URL: ${this._sanitizer.sanitize(ur.RESOURCE_URL,c.url)} failed: ${m.message}`;return this._errorHandler.handleError(new Error(I)),we(null)})));return Pr(a).pipe(je(()=>{let c=this._extractIconWithNameFromAnySet(e,r);if(!c)throw _P(e);return c}))}_extractIconWithNameFromAnySet(e,r){for(let o=r.length-1;o>=0;o--){let a=r[o];if(a.svgText&&a.svgText.toString().indexOf(e)>-1){let c=this._svgElementFromConfig(a),m=this._extractSvgIconFromSet(c,e,a.options);if(m)return m}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Kt(r=>e.svgText=r),je(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?we(null):this._fetchIcon(e).pipe(Kt(r=>e.svgText=r))}_extractSvgIconFromSet(e,r,o){let a=e.querySelector(`[id="${r}"]`);if(!a)return null;let c=a.cloneNode(!0);if(c.removeAttribute("id"),c.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(c,o);if(c.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(c),o);let m=this._svgElementFromString(xg("<svg></svg>"));return m.appendChild(c),this._setSvgAttributes(m,o)}_svgElementFromString(e){let r=this._document.createElement("DIV");r.innerHTML=e;let o=r.querySelector("svg");if(!o)throw Error("<svg> tag not found");return o}_toSvgElement(e){let r=this._svgElementFromString(xg("<svg></svg>")),o=e.attributes;for(let a=0;a<o.length;a++){let{name:c,value:m}=o[a];c!=="id"&&r.setAttribute(c,m)}for(let a=0;a<e.childNodes.length;a++)e.childNodes[a].nodeType===this._document.ELEMENT_NODE&&r.appendChild(e.childNodes[a].cloneNode(!0));return r}_setSvgAttributes(e,r){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),r&&r.viewBox&&e.setAttribute("viewBox",r.viewBox),e}_fetchIcon(e){let{url:r,options:o}=e,a=o?.withCredentials??!1;if(!this._httpClient)throw CY();if(r==null)throw Error(`Cannot fetch icon from URL "${r}".`);let c=this._sanitizer.sanitize(ur.RESOURCE_URL,r);if(!c)throw yP(r);let m=this._inProgressUrlFetches.get(c);if(m)return m;let x=this._httpClient.get(c,{responseType:"text",withCredentials:a}).pipe(je(I=>xg(I)),Vr(()=>this._inProgressUrlFetches.delete(c)),mM());return this._inProgressUrlFetches.set(c,x),x}_addSvgIconConfig(e,r,o){return this._svgIconConfigs.set(xP(e,r),o),this}_addSvgIconSetConfig(e,r){let o=this._iconSetConfigs.get(e);return o?o.push(r):this._iconSetConfigs.set(e,[r]),this}_svgElementFromConfig(e){if(!e.svgElement){let r=this._svgElementFromString(e.svgText);this._setSvgAttributes(r,e.options),e.svgElement=r}return e.svgElement}_getIconConfigFromResolvers(e,r){for(let o=0;o<this._resolvers.length;o++){let a=this._resolvers[o](r,e);if(a)return kY(a)?new ms(a.url,null,a.options):new ms(a,null)}}};t.\u0275fac=function(r){return new(r||t)(k(pi,8),k($s),k(ye,8),k(Zc))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function Sy(n){return n.cloneNode(!0)}function xP(n,t){return n+":"+t}function kY(n){return!!(n.url&&n.options)}var DY=new re("MAT_ICON_DEFAULT_OPTIONS"),SY=new re("mat-icon-location",{providedIn:"root",factory:EY});function EY(){let n=F(ye),t=n?n.location:null;return{getPathname:()=>t?t.pathname+t.search:""}}var CP=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],TY=CP.map(n=>`[${n}]`).join(", "),MY=/^url\(['"]?#(.*?)['"]?\)$/,mo=(()=>{let t=class t{get color(){return this._color||this._defaultColor}set color(e){this._color=e}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){let r=this._cleanupFontValue(e);r!==this._fontSet&&(this._fontSet=r,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){let r=this._cleanupFontValue(e);r!==this._fontIcon&&(this._fontIcon=r,this._updateFontIconClasses())}constructor(e,r,o,a,c,m){this._elementRef=e,this._iconRegistry=r,this._location=a,this._errorHandler=c,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=pt.EMPTY,m&&(m.color&&(this.color=this._defaultColor=m.color),m.fontSet&&(this.fontSet=m.fontSet)),o||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let r=e.split(":");switch(r.length){case 1:return["",r[0]];case 2:return r;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.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(e){this._clearSvgElement();let r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,r=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();r--;){let o=e.childNodes[r];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,r=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),r.forEach(o=>e.classList.add(o)),this._previousFontSetClass=r,this.fontIcon!==this._previousFontIconClass&&!r.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let r=this._elementsWithExternalReferences;r&&r.forEach((o,a)=>{o.forEach(c=>{a.setAttribute(c.name,`url('${e}#${c.value}')`)})})}_cacheChildrenWithExternalReferences(e){let r=e.querySelectorAll(TY),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let a=0;a<r.length;a++)CP.forEach(c=>{let m=r[a],x=m.getAttribute(c),I=x?x.match(MY):null;if(I){let O=o.get(m);O||(O=[],o.set(m,O)),O.push({name:c,value:I[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[r,o]=this._splitIconName(e);r&&(this._svgNamespace=r),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,r).pipe(gt(1)).subscribe(a=>this._setSvgElement(a),a=>{let c=`Error retrieving icon ${r}:${o}! ${a.message}`;this._errorHandler.handleError(new Error(c))})}}};t.\u0275fac=function(r){return new(r||t)(l(P),l(IY),Bi("aria-hidden"),l(SY),l(Zc),l(DY,8))},t.\u0275cmp=R({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(r,o){r&2&&(De("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),Di(o.color?"mat-"+o.color:""),ie("mat-icon-inline",o.inline)("mat-icon-no-color",o.color!=="primary"&&o.color!=="accent"&&o.color!=="warn"))},inputs:{color:"color",inline:[z.HasDecoratorInputTransform,"inline","inline",xe],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[ct,se],ngContentSelectors:wY,decls:1,vars:0,template:function(r,o){r&1&&(rt(),Ne(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=t;return n})(),po=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=X({type:t}),t.\u0275inj=K({imports:[Xe,Xe]});let n=t;return n})();var AY=["mat-button",""],kP=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],DP=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var RY=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}",FY=["mat-fab",""];var OY=["mat-icon-button",""],PY=["*"];var NY=new re("MAT_BUTTON_CONFIG");var VY=[{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"]}],DT=(()=>{let t=class t{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}constructor(e,r,o,a){this._elementRef=e,this._platform=r,this._ngZone=o,this._animationMode=a,this._focusMonitor=F(fr),this._rippleLoader=F(dR),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let c=F(NY,{optional:!0}),m=e.nativeElement,x=m.classList;this.disabledInteractive=c?.disabledInteractive??!1,this._rippleLoader?.configureRipple(m,{className:"mat-mdc-button-ripple"});for(let{attribute:I,mdcClasses:O}of VY)m.hasAttribute(I)&&x.add(...O)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",r){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,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)}};t.\u0275fac=function(r){zs()},t.\u0275dir=J({type:t,inputs:{color:"color",disableRipple:[z.HasDecoratorInputTransform,"disableRipple","disableRipple",xe],disabled:[z.HasDecoratorInputTransform,"disabled","disabled",xe],ariaDisabled:[z.HasDecoratorInputTransform,"aria-disabled","ariaDisabled",xe],disabledInteractive:[z.HasDecoratorInputTransform,"disabledInteractive","disabledInteractive",xe]},features:[ct]});let n=t;return n})();var ST=(()=>{let t=class t extends DT{constructor(e,r,o,a){super(e,r,o,a)}};t.\u0275fac=function(r){return new(r||t)(l(P),l(Qe),l(be),l(Et,8))},t.\u0275cmp=R({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(r,o){r&2&&(De("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Di(o.color?"mat-"+o.color:""),ie("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))},exportAs:["matButton"],standalone:!0,features:[L,se],attrs:AY,ngContentSelectors:DP,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&&(rt(kP),E(0,"span",0),Ne(1),f(2,"span",1),Ne(3,1),v(),Ne(4,2),E(5,"span",2)(6,"span",3)),r&2&&ie("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, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__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);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__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-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0});let n=t;return n})();var jY=new re("mat-mdc-fab-default-options",{providedIn:"root",factory:SP});function SP(){return{color:"accent"}}var IP=SP(),_a=(()=>{let t=class t extends DT{constructor(e,r,o,a,c){super(e,r,o,a),this._options=c,this._isFab=!0,this._options=this._options||IP,this.color=this._options.color||IP.color}};t.\u0275fac=function(r){return new(r||t)(l(P),l(Qe),l(be),l(Et,8),l(jY,8))},t.\u0275cmp=R({type:t,selectors:[["button","mat-fab",""]],hostVars:18,hostBindings:function(r,o){r&2&&(De("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Di(o.color?"mat-"+o.color:""),ie("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:[z.HasDecoratorInputTransform,"extended","extended",xe]},exportAs:["matButton"],standalone:!0,features:[ct,L,se],attrs:FY,ngContentSelectors:DP,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&&(rt(kP),E(0,"span",0),Ne(1),f(2,"span",1),Ne(3,1),v(),Ne(4,2),E(5,"span",2)(6,"span",3)),r&2&&ie("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=t;return n})();var ET=(()=>{let t=class t extends DT{constructor(e,r,o,a){super(e,r,o,a),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}};t.\u0275fac=function(r){return new(r||t)(l(P),l(Qe),l(be),l(Et,8))},t.\u0275cmp=R({type:t,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(r,o){r&2&&(De("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),Di(o.color?"mat-"+o.color:""),ie("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))},exportAs:["matButton"],standalone:!0,features:[L,se],attrs:OY,ngContentSelectors:PY,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(r,o){r&1&&(rt(),E(0,"span",0),Ne(1),E(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__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%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__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-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',RY],encapsulation:2,changeDetection:0});let n=t;return n})();var xn=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=X({type:t}),t.\u0275inj=K({imports:[Xe,OI,Xe]});let n=t;return n})();var RP=rn(Mn());var EP=rn(Mn());var TP=(()=>{let t=class t extends Ii{constructor(e,r){super(e,r.apiRoute.dirGroup)}getAll(){return new Lt(e=>{super.getAll().subscribe({next:r=>{e.next(r)},error:r=>{EP.default.fire({icon:"error",title:"Oops...",text:"Active Directory-Verbindung verloren. Bitte melden Sie sich erneut an"}),e.error(r)},complete:()=>e.complete()})})}};t.\u0275fac=function(r){return new(r||t)(k(pi),k(di))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Ey=(()=>{let t=class t extends co{constructor(e,r,o){super(e,ot.columnNames.dirGroup,r),this.gService=o}fetchData(){this.service.getAll().subscribe({next:e=>yt(this,null,function*(){let r=(yield Ln(this.gService.getAll())).map(o=>o.name);this.source=e.filter(o=>o.samaccountname?.length&&!r.includes(o.samaccountname[0])),this.loading=!1}),error:e=>{}})}};t.\u0275fac=function(r){return new(r||t)(l(TP),l(Zi),l(uo))},t.\u0275cmp=R({type:t,selectors:[["app-dir-group-table"]],standalone:!0,features:[L,se],decls:2,vars:16,consts:[["grid",""],[3,"selectedRows","click","columns","columnMenu","sorting","loading","rowSelection","rowDetail","autoResizeWidth","paging","searching","cellEditing","virtualScroll","infoPanel","titlePanel","theme","rowStyle","rowClass"]],template:function(r,o){if(r&1){let a=oe();f(0,"gui-grid",1,0),A("selectedRows",function(m){return V(a),j(o.onSelectedRows(m))})("click",function(){return V(a),j(o.click&&o.click(o))}),v()}r&2&&w("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)("rowStyle",o.rowStyle)("rowClass",o.rowClass)},dependencies:[le,Ft,yn,wn]});let n=t;return n})();var MP=(()=>{let t=class t extends Ii{constructor(e,r){super(e,r.apiRoute.dirUser)}getAll(e){let r=new Wn;return e&&(r=r.set("groupName",e)),this.http.get(this.baseUrl,{params:r,withCredentials:!0})}};t.\u0275fac=function(r){return new(r||t)(k(pi),k(di))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var AP=(()=>{let t=class t extends co{constructor(e,r,o){super(e,ot.columnNames.dirUser,r),this.uService=o}fetchDataByGroupName(e){this.service.getAll(e).subscribe({next:r=>yt(this,null,function*(){let o=(yield Ln(this.uService.getAll())).map(a=>a.username);this.source=r.filter(a=>a.samaccountname?.length&&!o.includes(a.samaccountname[0])),this.loading=!1}),error:r=>{}})}};t.\u0275fac=function(r){return new(r||t)(l(MP),l(Zi),l(lo))},t.\u0275cmp=R({type:t,selectors:[["app-dir-user-table"]],standalone:!0,features:[L,se],decls:2,vars:16,consts:[["grid",""],[3,"selectedRows","click","columns","columnMenu","sorting","loading","rowSelection","rowDetail","autoResizeWidth","paging","searching","cellEditing","virtualScroll","infoPanel","titlePanel","theme","rowStyle","rowClass"]],template:function(r,o){if(r&1){let a=oe();f(0,"gui-grid",1,0),A("selectedRows",function(m){return V(a),j(o.onSelectedRows(m))})("click",function(){return V(a),j(o.click&&o.click(o))}),v()}r&2&&w("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)("rowStyle",o.rowStyle)("rowClass",o.rowClass)},dependencies:[le,Ft,yn,wn]});let n=t;return n})();var zY=["dirGroups"],HY=["dirUsers"],FP=(()=>{let t=class t{constructor(e,r,o){this.gService=e,this.uService=r,this.rService=o,this.initWithoutData=()=>{},this.dirGroupsRowSelection={enabled:!0,type:io.ROW,mode:Ro.SINGLE},this.dirUsersRowSelection={enabled:!0,type:io.CHECKBOX,mode:Ro.MULTIPLE},this.dirGroupOnSelectedRows=a=>{if(a.length>0){this.dirGroups.safelyUnselectAll();let c=a[a.length-1].source.samaccountname;this.dirUsers.fetchDataByGroupName(c)}}}ngOnInit(){}ngAfterViewInit(){}addSelectedUsers(){let e=new Array,r=0;for(let o of this.dirUsers.selectedRows)e.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(Nr(a=>we(null))));Pr(e).pipe(Vr(()=>{RP.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(a=>a!==null).length},error:o=>{}})}};t.\u0275fac=function(r){return new(r||t)(l(uo),l(lo),l(bn))},t.\u0275cmp=R({type:t,selectors:[["app-user-group-dir-import"]],viewQuery:function(r,o){if(r&1&&(Z(zY,5),Z(HY,5)),r&2){let a;G(a=$())&&(o.dirGroups=a.first),G(a=$())&&(o.dirUsers=a.first)}},standalone:!0,features:[se],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 a=oe();f(0,"div",2)(1,"div",3)(2,"nav",4)(3,"form",5)(4,"button",6),A("click",function(){return V(a),j(o.addSelectedUsers())}),T(5,"Benutzer"),E(6,"br"),T(7,"Hinzuf\xFCgen"),v()()()()(),f(8,"div",7)(9,"div",8),E(10,"app-dir-group-table",9,0),v(),f(12,"div",8),E(13,"app-dir-user-table",10,1),v()()}r&2&&(b(10),w("rowSelection",o.dirGroupsRowSelection)("onSelectedRows",o.dirGroupOnSelectedRows),b(3),w("initData",o.initWithoutData)("rowSelection",o.dirUsersRowSelection))},dependencies:[Ey,AP]});let n=t;return n})();var OP=rn(Mn());function UY(n,t){if(n&1&&(f(0,"mat-error"),T(1),v()),n&2){let i=S();b(),Ee(i.errorMessage())}}function WY(n,t){if(n&1&&(f(0,"mat-error"),T(1),v()),n&2){let i=S();b(),Ee(i.mailErrorMessage())}}function GY(n,t){if(n&1&&(f(0,"mat-error"),T(1),v()),n&2){let i=S();b(),Ee(i.errorMessage())}}function $Y(n,t){if(n&1&&(f(0,"mat-error"),T(1),v()),n&2){let i=S();b(),Ee(i.errorMessage())}}var PP=(()=>{let t=class t{constructor(e,r){this.uService=e,this.rService=r,this.email=new Wt("",[Jt.required,Jt.email]),this.username=new Wt("",[Jt.required]),this.name=new Wt("",[Jt.required]),this.surname=new Wt("",[Jt.required]),this.mailErrorMessage=zn(""),this.errorMessage=zn(""),this.formFieldBSClass="col d-flex justify-content-center mx-1 my-2",this.buttonBSClass="d-flex justify-content-center mx-1 my-2",St(this.email.statusChanges,this.email.valueChanges).pipe(hs()).subscribe(()=>this.updateMailErrorMessage()),St(this.username.statusChanges,this.username.valueChanges,this.name.statusChanges,this.name.valueChanges,this.surname.statusChanges,this.surname.valueChanges).pipe(hs()).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(),OP.default.fire({title:"Vorgang erfolgreich!",text:"Benutzer erfolgreich erstellt!",icon:"success"})}})}delete(){this.email.setValue(""),this.username.setValue(""),this.name.setValue(""),this.surname.setValue("")}};t.\u0275fac=function(r){return new(r||t)(l(lo),l(bn))},t.\u0275cmp=R({type:t,selectors:[["app-user-form"]],standalone:!0,features:[se],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),A("blur",function(){return o.updateErrorMessage()}),v(),H(9,UY,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),A("blur",function(){return o.updateMailErrorMessage()}),v(),H(15,WY,2,1,"mat-error"),v()(),f(16,"div",3)(17,"div",3)(18,"button",6),A("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),A("blur",function(){return o.updateErrorMessage()}),v(),H(28,GY,2,1,"mat-error"),v()(),f(29,"div",3)(30,"mat-form-field")(31,"mat-label"),T(32,"Nachname"),v(),f(33,"input",4),A("blur",function(){return o.updateErrorMessage()}),v(),H(34,$Y,2,1,"mat-error"),v()(),f(35,"div",3)(36,"button",6),A("click",function(){return o.delete()}),f(37,"mat-icon"),T(38,"delete"),v(),T(39," L\xF6schen "),v()()()()(),f(40,"mat-tab",7),E(41,"app-user-group-dir-import"),v()()),r&2&&(b(4),w("ngClass",o.formFieldBSClass),b(4),w("formControl",o.username),b(),Ue(9,o.email.invalid?9:-1),b(),w("ngClass",o.formFieldBSClass),b(4),w("formControl",o.email),b(),Ue(15,o.email.invalid?15:-1),b(),w("ngClass",o.formFieldBSClass),b(),w("ngClass",o.buttonBSClass),b(6),w("ngClass",o.formFieldBSClass),b(4),w("formControl",o.name),b(),Ue(28,o.email.invalid?28:-1),b(),w("ngClass",o.formFieldBSClass),b(4),w("formControl",o.surname),b(),Ue(34,o.email.invalid?34:-1),b(),w("ngClass",o.formFieldBSClass))},dependencies:[On,ba,ho,Rc,va,Fc,Ft,li,wi,Ya,$i,$a,po,mo,xn,_a,le,$t,Ji,Fn,or,FP],styles:[".col[_ngcontent-%COMP%]{margin:50px}"]});let n=t;return n})();var Fy=rn(Mn());function YY(n,t){}var qY={bottomSheetState:Lr("state",[Un("void, hidden",Zt({transform:"translateY(100%)"})),Un("visible",Zt({transform:"translateY(0%)"})),Wi("visible => void, visible => hidden",$x([on(`${RI.COMPLEX} ${AI.ACCELERATION_CURVE}`),Qh("@*",qh(),{optional:!0})])),Wi("void => visible",$x([on(`${RI.EXITING} ${AI.DECELERATION_CURVE}`),Qh("@*",qh(),{optional:!0})]))])},QY=(()=>{let t=class t extends Nm{constructor(e,r,o,a,c,m,x,I,O){super(e,r,o,a,c,m,x,O),this._animationState="void",this._animationStateChanged=new Y,this._breakpointSubscription=I.observe([ll.Medium,ll.Large,ll.XLarge]).subscribe(()=>{this._toggleClass("mat-bottom-sheet-container-medium",I.isMatched(ll.Medium)),this._toggleClass("mat-bottom-sheet-container-large",I.isMatched(ll.Large)),this._toggleClass("mat-bottom-sheet-container-xlarge",I.isMatched(ll.XLarge))})}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}exit(){this._destroyed||(this._animationState="hidden",this._changeDetectorRef.markForCheck())}ngOnDestroy(){super.ngOnDestroy(),this._breakpointSubscription.unsubscribe(),this._destroyed=!0}_onAnimationDone(e){e.toState==="visible"&&this._trapFocus(),this._animationStateChanged.emit(e)}_onAnimationStart(e){this._animationStateChanged.emit(e)}_captureInitialFocus(){}_toggleClass(e,r){this._elementRef.nativeElement.classList.toggle(e,r)}};t.\u0275fac=function(r){return new(r||t)(l(P),l(ul),l(ye,8),l(Ha),l(za),l(be),l(Do),l(Sb),l(fr))},t.\u0275cmp=R({type:t,selectors:[["mat-bottom-sheet-container"]],hostAttrs:["tabindex","-1",1,"mat-bottom-sheet-container"],hostVars:4,hostBindings:function(r,o){r&1&&Lf("@state.start",function(c){return o._onAnimationStart(c)})("@state.done",function(c){return o._onAnimationDone(c)}),r&2&&(jf("@state",o._animationState),De("role",o._config.role)("aria-modal",o._config.ariaModal)("aria-label",o._config.ariaLabel))},standalone:!0,features:[L,se],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,o){r&1&&H(0,YY,0,0,"ng-template",0)},dependencies:[qn],styles:[".mat-bottom-sheet-container{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto;background:var(--mat-bottom-sheet-container-background-color);color:var(--mat-bottom-sheet-container-text-color);font-family:var(--mat-bottom-sheet-container-text-font);font-size:var(--mat-bottom-sheet-container-text-size);line-height:var(--mat-bottom-sheet-container-text-line-height);font-weight:var(--mat-bottom-sheet-container-text-weight);letter-spacing:var(--mat-bottom-sheet-container-text-tracking)}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:var(--mat-bottom-sheet-container-shape);border-top-right-radius:var(--mat-bottom-sheet-container-shape)}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}"],encapsulation:2,data:{animation:[qY.bottomSheetState]}});let n=t;return n})(),KY=new re("MatBottomSheetData"),TT=class{constructor(){this.data=null,this.hasBackdrop=!0,this.disableClose=!1,this.ariaLabel=null,this.ariaModal=!0,this.closeOnNavigation=!0,this.autoFocus="dialog",this.restoreFocus=!0}},Ty=class{get instance(){return this._ref.componentInstance}get componentRef(){return this._ref.componentRef}constructor(t,i,e){this._ref=t,this._afterOpened=new ue,this.containerInstance=e,this.disableClose=i.disableClose,e._animationStateChanged.pipe(et(r=>r.phaseName==="done"&&r.toState==="visible"),gt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(et(r=>r.phaseName==="done"&&r.toState==="hidden"),gt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._ref.close(this._result)}),t.overlayRef.detachments().subscribe(()=>{this._ref.close(this._result)}),St(this.backdropClick(),this.keydownEvents().pipe(et(r=>r.keyCode===27))).subscribe(r=>{!this.disableClose&&(r.type!=="keydown"||!Ut(r))&&(r.preventDefault(),this.dismiss())})}dismiss(t){this.containerInstance&&(this.containerInstance._animationStateChanged.pipe(et(i=>i.phaseName==="start"),gt(1)).subscribe(i=>{this._closeFallbackTimeout=setTimeout(()=>{this._ref.close(this._result)},i.totalTime+100),this._ref.overlayRef.detachBackdrop()}),this._result=t,this.containerInstance.exit(),this.containerInstance=null)}afterDismissed(){return this._ref.closed}afterOpened(){return this._afterOpened}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}},XY=new re("mat-bottom-sheet-default-options"),ZY=(()=>{let t=class t{get _openedBottomSheetRef(){let e=this._parentBottomSheet;return e?e._openedBottomSheetRef:this._bottomSheetRefAtThisLevel}set _openedBottomSheetRef(e){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=e:this._bottomSheetRefAtThisLevel=e}constructor(e,r,o,a){this._overlay=e,this._parentBottomSheet=o,this._defaultOptions=a,this._bottomSheetRefAtThisLevel=null,this._dialog=r.get(Vm)}open(e,r){let o=ne(ne({},this._defaultOptions||new TT),r),a;return this._dialog.open(e,xt(ne({},o),{disableClose:!0,closeOnOverlayDetachments:!1,maxWidth:"100%",container:QY,scrollStrategy:o.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0"),templateContext:()=>({bottomSheetRef:a}),providers:(c,m,x)=>(a=new Ty(c,o,x),[{provide:Ty,useValue:a},{provide:KY,useValue:o.data}])})),a.afterDismissed().subscribe(()=>{this._openedBottomSheetRef===a&&(this._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(()=>a.containerInstance?.enter()),this._openedBottomSheetRef.dismiss()):a.containerInstance.enter(),this._openedBottomSheetRef=a,a}dismiss(e){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(e)}ngOnDestroy(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}};t.\u0275fac=function(r){return new(r||t)(k(Nt),k(Pe),k(t,12),k(XY,8))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),NP=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=X({type:t}),t.\u0275inj=K({providers:[ZY],imports:[CI,Xe,ta,Xe]});let n=t;return n})();var Ig=rn(Mn());var JY=["trigger"],e9=["panel"],t9=[[["mat-select-trigger"]],"*"],i9=["mat-select-trigger","*"];function n9(n,t){if(n&1&&(f(0,"span",4),T(1),v()),n&2){let i=S();b(),Ee(i.placeholder)}}function r9(n,t){n&1&&Ne(0)}function o9(n,t){if(n&1&&(f(0,"span",11),T(1),v()),n&2){let i=S(2);b(),Ee(i.triggerValue)}}function a9(n,t){if(n&1&&(f(0,"span",10),H(1,r9,1,0)(2,o9,2,1),v()),n&2){let i=S();b(),Ue(1,i.customTrigger?1:2)}}function s9(n,t){if(n&1){let i=oe();f(0,"div",12,1),A("@transformPanel.done",function(r){V(i);let o=S();return j(o._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){V(i);let o=S();return j(o._handleKeydown(r))}),Ne(2,1),v()}if(n&2){let i=S();OM("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",i._getPanelTheme(),""),w("ngClass",i.panelClass)("@transformPanel","showing"),De("id",i.id+"-panel")("aria-multiselectable",i.multiple)("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby())}}var c9={transformPanelWrap:Lr("transformPanelWrap",[Wi("* => void",Qh("@transformPanel",[qh()],{optional:!0}))]),transformPanel:Lr("transformPanel",[Un("void",Zt({opacity:0,transform:"scale(1, 0.8)"})),Wi("void => showing",on("120ms cubic-bezier(0, 0, 0.2, 1)",Zt({opacity:1,transform:"scale(1, 1)"}))),Wi("* => void",on("100ms linear",Zt({opacity:0})))])};var VP=0,jP=new re("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let n=F(Nt);return()=>n.scrollStrategies.reposition()}});function l9(n){return()=>n.scrollStrategies.reposition()}var d9=new re("MAT_SELECT_CONFIG"),u9={provide:jP,deps:[Nt],useFactory:l9},h9=new re("MatSelectTrigger"),MT=class{constructor(t,i){this.source=t,this.value=i}},LP=(()=>{let t=class t{_scrollOptionIntoView(e){let r=this.options.toArray()[e];if(r){let o=this.panel.nativeElement,a=cR(e,this.options,this.optionGroups),c=r._getHostElement();e===0&&a===1?o.scrollTop=0:o.scrollTop=lR(c.offsetTop,c.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new MT(this,e)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Jt.required)??!1}set required(e){this._required=e,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,r,o,a,c,m,x,I,O,B,ae,ee,Se,te){this._viewportRuler=e,this._changeDetectorRef=r,this._elementRef=c,this._dir=m,this._parentFormField=O,this.ngControl=B,this._liveAnnouncer=Se,this._defaultOptions=te,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(ge,$e)=>ge===$e,this._uid=`mat-select-${VP++}`,this._triggerAriaLabelledBy=null,this._destroy=new ue,this.stateChanges=new ue,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${VP++}`,this._panelDoneAnimatingStream=new ue,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new ue,this.optionSelectionChanges=Pa(()=>{let ge=this.options;return ge?ge.changes.pipe(yi(ge),ki(()=>St(...ge.map($e=>$e.onSelectionChange)))):this._initialized.pipe(ki(()=>this.optionSelectionChanges))}),this.openedChange=new Y,this._openedStream=this.openedChange.pipe(et(ge=>ge),je(()=>{})),this._closedStream=this.openedChange.pipe(et(ge=>!ge),je(()=>{})),this.selectionChange=new Y,this.valueChange=new Y,this._trackedModal=null,this._skipPredicate=ge=>this.panelOpen?!1:ge.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),te?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=te.typeaheadDebounceInterval),this._errorStateTracker=new oc(a,B,I,x,this.stateChanges),this._scrollStrategyFactory=ee,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(ae)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Cb(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Na(),_e(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(_e(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(_e(this._destroy)).subscribe(e=>{e.added.forEach(r=>r.select()),e.removed.forEach(r=>r.deselect())}),this.options.changes.pipe(yi(null),_e(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),r=this.ngControl;if(e!==this._triggerAriaLabelledBy){let o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?o.setAttribute("aria-labelledby",e):o.removeAttribute("aria-labelledby")}r&&(this._previousControl!==r.control&&(this._previousControl!==void 0&&r.disabled!==null&&r.disabled!==this.disabled&&(this.disabled=r.disabled),this._previousControl=r.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let r=`${this.id}-panel`;this._trackedModal&&Pb(this._trackedModal,"aria-owns",r),vI(e,"aria-owns",r),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;Pb(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(r=>r.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let r=e.keyCode,o=r===40||r===38||r===37||r===39,a=r===13||r===32,c=this._keyManager;if(!c.isTyping()&&a&&!Ut(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){let m=this.selected;c.onKeydown(e);let x=this.selected;x&&m!==x&&this._liveAnnouncer.announce(x.viewValue,1e4)}}_handleOpenKeydown(e){let r=this._keyManager,o=e.keyCode,a=o===40||o===38,c=r.isTyping();if(a&&e.altKey)e.preventDefault(),this.close();else if(!c&&(o===13||o===32)&&r.activeItem&&!Ut(e))e.preventDefault(),r.activeItem._selectViaInteraction();else if(!c&&this._multiple&&o===65&&e.ctrlKey){e.preventDefault();let m=this.options.some(x=>!x.disabled&&!x.selected);this.options.forEach(x=>{x.disabled||(m?x.select():x.deselect())})}else{let m=r.activeItemIndex;r.onKeydown(e),this._multiple&&a&&e.shiftKey&&r.activeItem&&r.activeItemIndex!==m&&r.activeItem._selectViaInteraction()}}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(gt(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(r=>r.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(r=>this._selectOptionByValue(r)),this._sortValues();else{let r=this._selectOptionByValue(e);r?this._keyManager.updateActiveItem(r):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let r=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return o.value!=null&&this._compareWith(o.value,e)}catch{return!1}});return r&&this._selectionModel.select(r),r}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof Mm?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Fb(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=St(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(_e(e)).subscribe(r=>{this._onSelect(r.source,r.isUserInput),r.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),St(...this.options.map(r=>r._stateChanges)).pipe(_e(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,r){let o=this._selectionModel.isSelected(e);e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(o!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),r&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),r&&this.focus())),o!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((r,o)=>this.sortComparator?this.sortComparator(r,o,e):e.indexOf(r)-e.indexOf(o)),this.stateChanges.next()}}_propagateChanges(e){let r;this.multiple?r=this.selected.map(o=>o.value):r=this.selected?this.selected.value:e,this._value=r,this.valueChange.emit(r),this._onChange(r),this.selectionChange.emit(this._getChangeEvent(r)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let r=0;r<this.options.length;r++)if(!this.options.get(r).disabled){e=r;break}this._keyManager.setActiveItem(e)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),r=e?e+" ":"";return this.ariaLabelledby?r+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),r=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}};t.\u0275fac=function(r){return new(r||t)(l(La),l(ce),l(be),l(sc),l(P),l(Yt,8),l(Eo,8),l(Ai,8),l(dd,8),l(An,10),Bi("tabindex"),l(jP),l(Z2),l(d9,8))},t.\u0275cmp=R({type:t,selectors:[["mat-select"]],contentQueries:function(r,o,a){if(r&1&&(Ht(a,h9,5),Ht(a,jb,5),Ht(a,NI,5)),r&2){let c;G(c=$())&&(o.customTrigger=c.first),G(c=$())&&(o.options=c),G(c=$())&&(o.optionGroups=c)}},viewQuery:function(r,o){if(r&1&&(Z(JY,5),Z(e9,5),Z(hI,5)),r&2){let a;G(a=$())&&(o.trigger=a.first),G(a=$())&&(o.panel=a.first),G(a=$())&&(o._overlayDir=a.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(r,o){r&1&&A("keydown",function(c){return o._handleKeydown(c)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),r&2&&(De("id",o.id)("tabindex",o.disabled?-1:o.tabIndex)("aria-controls",o.panelOpen?o.id+"-panel":null)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState)("aria-activedescendant",o._getAriaActiveDescendant()),ie("mat-mdc-select-disabled",o.disabled)("mat-mdc-select-invalid",o.errorState)("mat-mdc-select-required",o.required)("mat-mdc-select-empty",o.empty)("mat-mdc-select-multiple",o.multiple))},inputs:{userAriaDescribedBy:[z.None,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[z.HasDecoratorInputTransform,"disabled","disabled",xe],disableRipple:[z.HasDecoratorInputTransform,"disableRipple","disableRipple",xe],tabIndex:[z.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>e==null?0:jr(e)],hideSingleSelectionIndicator:[z.HasDecoratorInputTransform,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",xe],placeholder:"placeholder",required:[z.HasDecoratorInputTransform,"required","required",xe],multiple:[z.HasDecoratorInputTransform,"multiple","multiple",xe],disableOptionCentering:[z.HasDecoratorInputTransform,"disableOptionCentering","disableOptionCentering",xe],compareWith:"compareWith",value:"value",ariaLabel:[z.None,"aria-label","ariaLabel"],ariaLabelledby:[z.None,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[z.HasDecoratorInputTransform,"typeaheadDebounceInterval","typeaheadDebounceInterval",jr],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[Ae([{provide:ld,useExisting:t},{provide:PI,useExisting:t}]),ct,he,se],ngContentSelectors:i9,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(r,o){if(r&1){let a=oe();rt(t9),f(0,"div",2,0),A("click",function(){return V(a),j(o.open())}),f(3,"div",3),H(4,n9,2,1,"span",4)(5,a9,3,1),v(),f(6,"div",5)(7,"div",6),It(),f(8,"svg",7),E(9,"path",8),v()()()(),H(10,s9,3,9,"ng-template",9),A("backdropClick",function(){return V(a),j(o.close())})("attach",function(){return V(a),j(o._onAttached())})("detach",function(){return V(a),j(o.close())})}if(r&2){let a=Si(1);b(3),De("id",o._valueId),b(),Ue(4,o.empty?4:5),b(6),w("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||a)("cdkConnectedOverlayOpen",o.panelOpen)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)}},dependencies:[Mm,hI,$t],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[c9.transformPanel]},changeDetection:0});let n=t;return n})();var My=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=X({type:t}),t.\u0275inj=K({providers:[u9],imports:[le,Ba,VI,Xe,tc,On,VI,Xe]});let n=t;return n})();var Ay=(()=>{let t=class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=gr(e)}get inset(){return this._inset}set inset(e){this._inset=gr(e)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=R({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(r,o){r&2&&(De("aria-orientation",o.vertical?"vertical":"horizontal"),ie("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},standalone:!0,features:[se],decls:0,vars:0,template:function(r,o){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0});let n=t;return n})(),Ry=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=X({type:t}),t.\u0275inj=K({imports:[Xe,Xe]});let n=t;return n})();function p9(n,t){if(n&1&&(f(0,"mat-error"),T(1),v()),n&2){let i=S();b(),Ee(i.errorMessage())}}function g9(n,t){if(n&1&&(f(0,"mat-error"),T(1),v()),n&2){let i=S();b(),Ee(i.mailErrorMessage())}}function f9(n,t){if(n&1&&(f(0,"mat-error"),T(1),v()),n&2){let i=S();b(),Ee(i.errorMessage())}}function b9(n,t){if(n&1&&(f(0,"mat-error"),T(1),v()),n&2){let i=S();b(),Ee(i.errorMessage())}}function v9(n,t){if(n&1&&(f(0,"mat-option",10),T(1),v()),n&2){let i=t.$implicit;w("value",i.value),b(),Ee(i.name)}}function _9(n,t){if(n&1&&(f(0,"mat-option",10),T(1),v()),n&2){let i=t.$implicit;w("value",i.value),b(),Ee(i.name)}}var zP=(()=>{let t=class t{get allowedDateFormats(){return ot.constants.date_formats}get allowedLanguages(){return ot.constants.languages}constructor(e,r){this.uService=e,this.rService=r,this.dialogRef=F(Ua),this.user=F(Wa),this.username=new Wt(this.user.username,[Jt.required]),this.email=new Wt(this.user.email,[Jt.required,Jt.email]),this.name=new Wt(this.user.prename,[Jt.required]),this.surname=new Wt(this.user.name,[Jt.required]),this.shortname=new Wt(this.user.shortname),this.comment=new Wt(this.user.comment),this.mailErrorMessage=zn(""),this.errorMessage=zn(""),St(this.email.statusChanges,this.email.valueChanges).pipe(hs()).subscribe(()=>this.updateMailErrorMessage()),St(this.username.statusChanges,this.username.valueChanges,this.name.statusChanges,this.name.valueChanges,this.surname.statusChanges,this.surname.valueChanges).pipe(hs()).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("")}update(){this.email.valid&&this.username.valid&&this.name.valid&&this.surname.valid&&(this.user.email=this.email.value,this.user.prename=this.name.value,this.user.username=this.username.value,this.user.name=this.surname.value,this.user.shortname=this.shortname.value,this.user.comment=this.comment.value,this.uService.update(this.user).subscribe({next:()=>{this.rService.executeAll()},error:e=>{console.error(e),Ig.default.fire({title:"Interner Dienstfehler",text:"Bitte wenden Sie sich an das IT-Team, um den Fehler zu beheben.",icon:"error"})}}))}delete(){Ig.default.fire({text:"Sind Sie sicher, dass Sie diesen Datensatz l\xF6schen wollen?",icon:"question",showDenyButton:!0,confirmButtonText:"Ja",denyButtonText:"Nein"}).then(e=>{e.isConfirmed&&(this.user.id?this.uService.delete(this.user.id).subscribe({next:()=>{this.rService.executeAll(),this.dialogRef.close()},error:r=>{Ig.default.fire({title:"Interner Dienstfehler",text:"Bitte wenden Sie sich an das IT-Team, um den Fehler zu beheben.",icon:"error"})}}):Ig.default.fire({title:"Ein unerwarteter Fehler",text:"Die Benutzer-ID existiert nicht (Nullwert).",icon:"error"}))})}};t.\u0275fac=function(r){return new(r||t)(l(lo),l(bn))},t.\u0275cmp=R({type:t,selectors:[["app-user-update-form"]],standalone:!0,features:[se],decls:79,vars:25,consts:[[1,"dd-container"],[1,"dd-row","input-row"],[1,"w10p"],["matInput","","readonly","",3,"value"],[1,"w30p"],["matInput","","required","",3,"blur","formControl"],[1,"w60p"],["matInput","","placeholder","user@example.com","required","",3,"blur","formControl"],["matInput","",3,"formControl"],[3,"valueChange","ngModelChange","value","ngModel"],[3,"value"],[1,"dd-row","button-row"],["mat-fab","","extended","",3,"click"]],template:function(r,o){r&1&&(f(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),T(4,"Id"),v(),E(5,"input",3),v(),f(6,"mat-form-field",4)(7,"mat-label"),T(8,"Benutzername"),v(),f(9,"input",5),A("blur",function(){return o.updateErrorMessage()}),v(),H(10,p9,2,1,"mat-error"),v(),f(11,"mat-form-field",6)(12,"mat-label"),T(13,"E-Mail"),v(),f(14,"input",7),A("blur",function(){return o.updateMailErrorMessage()}),v(),H(15,g9,2,1,"mat-error"),v()(),f(16,"div",1)(17,"mat-form-field")(18,"mat-label"),T(19,"Vorname"),v(),f(20,"input",5),A("blur",function(){return o.updateErrorMessage()}),v(),H(21,f9,2,1,"mat-error"),v(),f(22,"mat-form-field")(23,"mat-label"),T(24,"Nachname"),v(),f(25,"input",5),A("blur",function(){return o.updateErrorMessage()}),v(),H(26,b9,2,1,"mat-error"),v()(),f(27,"div",1)(28,"mat-form-field")(29,"mat-label"),T(30,"K\xFCrzel"),v(),E(31,"input",8),v(),f(32,"mat-form-field")(33,"mat-label"),T(34,"Datumsformat"),v(),f(35,"mat-select",9),fn("valueChange",function(c){return Hi(o.user.dateFormat,c)||(o.user.dateFormat=c),c})("ngModelChange",function(c){return Hi(o.user.dateFormat,c)||(o.user.dateFormat=c),c}),qo(36,v9,2,2,"mat-option",10,Yo),v()(),f(38,"mat-form-field")(39,"mat-label"),T(40,"Sprache"),v(),f(41,"mat-select",9),fn("valueChange",function(c){return Hi(o.user.language,c)||(o.user.language=c),c})("ngModelChange",function(c){return Hi(o.user.language,c)||(o.user.language=c),c}),qo(42,_9,2,2,"mat-option",10,Yo),v()()(),f(44,"div",1)(45,"mat-form-field")(46,"mat-label"),T(47,"Kommentar"),v(),E(48,"textarea",8),v()(),E(49,"mat-divider"),f(50,"div",1)(51,"mat-form-field")(52,"mat-label"),T(53,"Hinzugef\xFCgt wer"),v(),E(54,"input",3),v(),f(55,"mat-form-field")(56,"mat-label"),T(57,"Hinzugef\xFCgt wann"),v(),E(58,"input",3),Re(59,"date"),v(),f(60,"mat-form-field")(61,"mat-label"),T(62,"Ge\xE4ndert wer"),v(),E(63,"input",3),v(),f(64,"mat-form-field")(65,"mat-label"),T(66,"Ge\xE4ndert wann"),v(),E(67,"input",3),Re(68,"date"),v()(),E(69,"mat-divider"),f(70,"div",11)(71,"button",12),A("click",function(){return o.update()}),f(72,"mat-icon"),T(73,"save"),v(),T(74," Speichern "),v(),f(75,"button",12),A("click",function(){return o.delete()}),f(76,"mat-icon"),T(77,"delete"),v(),T(78," L\xF6schen "),v()()()),r&2&&(b(5),w("value",o.user.id),b(4),w("formControl",o.username),b(),Ue(10,o.email.invalid?10:-1),b(4),w("formControl",o.email),b(),Ue(15,o.email.invalid?15:-1),b(5),w("formControl",o.name),b(),Ue(21,o.email.invalid?21:-1),b(4),w("formControl",o.surname),b(),Ue(26,o.email.invalid?26:-1),b(5),w("formControl",o.shortname),b(4),gn("value",o.user.dateFormat)("ngModel",o.user.dateFormat),b(),Qo(o.allowedDateFormats),b(5),gn("value",o.user.language)("ngModel",o.user.language),b(),Qo(o.allowedLanguages),b(6),w("formControl",o.comment),b(6),w("value",o.user.addedWho),b(4),w("value",hr(59,19,o.user.addedWhen,"dd.MM.yyyy")),b(5),w("value",o.user.changedWho),b(4),w("value",hr(68,22,o.user.changedWhen,"dd.MM.yyyy")))},dependencies:[On,ba,ho,Rc,va,Fc,Ft,li,wi,Ya,Ga,$i,$a,po,mo,xn,_a,le,Us,Ji,My,LP,jb,Ry,Ay]});let n=t;return n})();var y9=["userTable"],w9=["groupTable"],x9=["moduleTable"],HP=(()=>{let t=class t extends Yr{constructor(){super(...arguments),this.initWithoutData=()=>{},this.cellEditing={enabled:!0,cellEdit:(e,r,o)=>this.updateService.isEditable?(this.updateService.setAsync("user_"+r.id.toString(),()=>yt(this,null,function*(){yield Ln(this.userTable.service.update(r))})),!0):!1},this.sUser=null,this.dialog=F($r),this.usersOnSelectedRows=e=>{e.length==1?(this.sUser=e[0].source,this.groupTable.fetchDataByUsername(e[0].source.username),this.moduleTable.fetchDataByUsername(e[0].source.username)):e.length==0&&this.sUser?.username!=null&&this.openUpdateSheet(this.sUser)}}ngAfterViewInit(){this.buttonVisibilityService.setVisibleOnly(this.refreshService,this.creationService,this.updateService),this.refreshService.removeAll(),this.refreshService.add(()=>{this.userTable.fetchData(),this.sUser?.username!=null&&(this.groupTable.fetchDataByUsername(this.sUser.username),this.moduleTable.fetchDataByUsername(this.sUser.username))}),this.creationService.component=PP,this.deletionService.add(()=>this.handleDeleteRequest())}handleDeleteRequest(){let e=this.userTable.selectedRows;e.length>0&&Fy.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: ${e.length}</p>`,showDenyButton:!0,confirmButtonText:"Ja",denyButtonText:"Nein"}).then(r=>{if(r.isConfirmed){let o=e.map(a=>this.userTable.service.delete(a.source.id));Pr(o).subscribe({next:()=>{this.updateService.executeAllAsync().then(()=>{this.refreshService.executeAll()}),Fy.default.fire({text:`${e.length} Eintr\xE4ge wurden erfolgreich gel\xF6scht.`,icon:"success"})},error:a=>Fy.default.fire({title:"Fehler",text:"Dieser Vorgang ist nicht m\xF6glich.",icon:"error"})})}})}get basic_user_columns(){return ot.columnNames.user.basic}openUpdateSheet(e){this.dialog.open(zP,{width:"50rem",data:e})}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ge(t)))(o||t)}})(),t.\u0275cmp=R({type:t,selectors:[["app-user"]],viewQuery:function(r,o){if(r&1&&(Z(y9,5),Z(w9,5),Z(x9,5)),r&2){let a;G(a=$())&&(o.userTable=a.first),G(a=$())&&(o.groupTable=a.first),G(a=$())&&(o.moduleTable=a.first)}},standalone:!0,features:[L,se],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),E(5,"app-user-table",7,0),v()()(),f(7,"div",8)(8,"mat-tab-group")(9,"mat-tab",9),E(10,"app-group-table",10,1),v()()(),f(12,"div",8)(13,"mat-tab-group")(14,"mat-tab",11),E(15,"app-module-table",10,2),v()()()()()),r&2&&(b(5),w("onSelectedRows",o.usersOnSelectedRows)("cellEditing",o.cellEditing)("columns",o.basic_user_columns),b(5),w("initData",o.initWithoutData),b(5),w("initData",o.initWithoutData))},dependencies:[fa,Ji,Fn,or,Ac,lh,xn,NP]});let n=t;return n})();var I9=["input"],k9=["label"],D9=["*"],S9=new re("mat-checkbox-default-options",{providedIn:"root",factory:WP});function WP(){return{color:"accent",clickAction:"check-indeterminate"}}var Cn=function(n){return n[n.Init=0]="Init",n[n.Checked=1]="Checked",n[n.Unchecked=2]="Unchecked",n[n.Indeterminate=3]="Indeterminate",n}(Cn||{}),E9={provide:qr,useExisting:ci(()=>Oy),multi:!0},AT=class{},T9=0,UP=WP(),Oy=(()=>{let t=class t{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let r=new AT;return r.source=this,r.checked=e,r}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,r,o,a,c,m){this._elementRef=e,this._changeDetectorRef=r,this._ngZone=o,this._animationMode=c,this._options=m,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 Y,this.indeterminateChange=new Y,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=Cn.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||UP,this.color=this._options.color||UP.color,this.tabIndex=parseInt(a)||0,this.id=this._uniqueId=`mat-mdc-checkbox-${++T9}`}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){let r=e!=this._indeterminate;this._indeterminate=e,r&&(this._indeterminate?this._transitionCheckState(Cn.Indeterminate):this._transitionCheckState(this.checked?Cn.Checked:Cn.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let r=this._currentCheckState,o=this._getAnimationTargetElement();if(!(r===e||!o)&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(r,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);let a=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(a)},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 e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?Cn.Checked:Cn.Unchecked),this._emitChangeEvent()):!this.disabled&&e==="noop"&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,r){if(this._animationMode==="NoopAnimations")return"";switch(e){case Cn.Init:if(r===Cn.Checked)return this._animationClasses.uncheckedToChecked;if(r==Cn.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Cn.Unchecked:return r===Cn.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Cn.Checked:return r===Cn.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Cn.Indeterminate:return r===Cn.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let r=this._inputElement;r&&(r.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}};t.\u0275fac=function(r){return new(r||t)(l(P),l(ce),l(be),Bi("tabindex"),l(Et,8),l(S9,8))},t.\u0275cmp=R({type:t,selectors:[["mat-checkbox"]],viewQuery:function(r,o){if(r&1&&(Z(I9,5),Z(k9,5),Z(aa,5)),r&2){let a;G(a=$())&&(o._inputElement=a.first),G(a=$())&&(o._labelElement=a.first),G(a=$())&&(o.ripple=a.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:14,hostBindings:function(r,o){r&2&&(zi("id",o.id),De("tabindex",null)("aria-label",null)("aria-labelledby",null),Di(o.color?"mat-"+o.color:"mat-accent"),ie("_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:[z.None,"aria-label","ariaLabel"],ariaLabelledby:[z.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[z.None,"aria-describedby","ariaDescribedby"],id:"id",required:[z.HasDecoratorInputTransform,"required","required",xe],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[z.HasDecoratorInputTransform,"disableRipple","disableRipple",xe],tabIndex:[z.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>e==null?void 0:jr(e)],color:"color",checked:[z.HasDecoratorInputTransform,"checked","checked",xe],disabled:[z.HasDecoratorInputTransform,"disabled","disabled",xe],indeterminate:[z.HasDecoratorInputTransform,"indeterminate","indeterminate",xe]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[Ae([E9,{provide:Qn,useExisting:t,multi:!0}]),ct,he,se],ngContentSelectors:D9,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 a=oe();rt(),f(0,"div",3),A("click",function(m){return V(a),j(o._preventBubblingFromLabel(m))}),f(1,"div",4,0)(3,"div",5),A("click",function(){return V(a),j(o._onTouchTargetClick())}),v(),f(4,"input",6,1),A("blur",function(){return V(a),j(o._onBlur())})("click",function(){return V(a),j(o._onInputClick())})("change",function(m){return V(a),j(o._onInteractionEvent(m))}),v(),E(6,"div",7),f(7,"div",8),It(),f(8,"svg",9),E(9,"path",10),v(),dr(),E(10,"div",11),v(),E(11,"div",12),v(),f(12,"label",13,2),Ne(14),v()()}if(r&2){let a=Si(2);w("labelPosition",o.labelPosition),b(4),ie("mdc-checkbox--selected",o.checked),w("checked",o.checked)("indeterminate",o.indeterminate)("disabled",o.disabled)("id",o.inputId)("required",o.required)("tabIndex",o.disabled?-1:o.tabIndex),De("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),b(7),w("matRippleTrigger",a)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),b(),w("for",o.inputId)}},dependencies:[aa,Lb],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=t;return n})();var Py=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=X({type:t}),t.\u0275inj=K({imports:[Oy,Xe,Xe]});let n=t;return n})();var GP=rn(Mn());var A9=["dirGroups"],$P=(()=>{let t=class t{constructor(e){this.gService=e,this.initWithoutData=()=>{},this.dirGroupsRowSelection={enabled:!0,type:io.CHECKBOX,mode:Ro.MULTIPLE},this.dirUsersRowSelection={enabled:!0,type:io.CHECKBOX,mode:Ro.MULTIPLE}}ngOnInit(){}addSelectedGroups(){let e=new Array,r=0;for(let o of this.dirGroups.selectedRows)e.push(this.gService.createByDir({samaccountname:o?.source?.samaccountname}).pipe(Nr(a=>we(null))));Pr(e).pipe(Vr(()=>{GP.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(a=>a!==null).length},error:o=>{}})}};t.\u0275fac=function(r){return new(r||t)(l(uo))},t.\u0275cmp=R({type:t,selectors:[["app-group-dir-import"]],viewQuery:function(r,o){if(r&1&&Z(A9,5),r&2){let a;G(a=$())&&(o.dirGroups=a.first)}},standalone:!0,features:[se],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 a=oe();f(0,"div",1)(1,"div",2)(2,"nav",3)(3,"form",4)(4,"button",5),A("click",function(){return V(a),j(o.addSelectedGroups())}),T(5,"Gruppen"),E(6,"br"),T(7,"Hinzuf\xFCgen"),v()()()()(),f(8,"div",6)(9,"div",2),E(10,"app-dir-group-table",7,0),v()()}r&2&&(b(10),w("rowSelection",o.dirGroupsRowSelection))},dependencies:[Ey]});let n=t;return n})();var YP=rn(Mn());function R9(n,t){if(n&1&&(f(0,"mat-error"),T(1),v()),n&2){let i=S();b(),Ee(i.errorMessage())}}var qP=(()=>{let t=class t{constructor(e,r,o){this.uService=e,this.rService=r,this.gService=o,this.groupname=new Wt("",[Jt.required]),this.active=new Wt(!0),this.errorMessage=zn(""),this.formFieldBSClass="col d-flex justify-content-center mx-1 my-2",this.buttonBSClass="d-flex justify-content-center mx-1 my-2",this.checked=AM(!0),St(this.groupname.statusChanges,this.groupname.valueChanges).pipe(hs()).subscribe(()=>this.updateErrorMessage())}updateErrorMessage(){this.groupname.hasError("required")?this.errorMessage.set("Wert eingeben"):this.errorMessage.set("")}create(){this.groupname.valid&&this.gService.create({name:this.groupname.value,adSync:!1,internal:!0,active:this.active.value}).subscribe({next:()=>{this.delete(),this.rService.executeAll(),YP.default.fire({title:"Vorgang erfolgreich!",text:"Gruppe erfolgreich erstellt!",icon:"success"})}})}delete(){this.groupname.setValue(""),this.active.setValue(!0)}};t.\u0275fac=function(r){return new(r||t)(l(lo),l(bn),l(uo))},t.\u0275cmp=R({type:t,selectors:[["app-group-form"]],inputs:{checked:[z.SignalBased,"checked"]},outputs:{checked:"checkedChange"},standalone:!0,features:[se],decls:27,vars:9,consts:[["label","Erstellen"],[1,"container","my-3"],[1,"row"],[3,"ngClass"],["matInput","","required","",3,"blur","formControl"],["mat-fab","","extended","",3,"click"],[3,"formControl","disabled"],["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),A("blur",function(){return o.updateErrorMessage()}),v(),H(9,R9,2,1,"mat-error"),v()(),f(10,"div",3)(11,"div",3)(12,"button",5),A("click",function(){return o.create()}),f(13,"mat-icon"),T(14,"playlist_add"),v(),T(15," Erstellen "),v()()()(),f(16,"div",2)(17,"div",3)(18,"mat-checkbox",6),T(19,"Active"),v()(),f(20,"div",3)(21,"button",5),A("click",function(){return o.delete()}),f(22,"mat-icon"),T(23,"delete"),v(),T(24," L\xF6schen "),v()()()()(),f(25,"mat-tab",7),E(26,"app-group-dir-import"),v()()),r&2&&(b(4),w("ngClass",o.formFieldBSClass),b(4),w("formControl",o.groupname),b(),Ue(9,o.groupname.invalid?9:-1),b(),w("ngClass",o.formFieldBSClass),b(),w("ngClass",o.buttonBSClass),b(6),w("ngClass",o.formFieldBSClass),b(),w("formControl",o.active)("disabled",!0),b(2),w("ngClass",o.formFieldBSClass))},dependencies:[On,ba,ho,Rc,va,Fc,Ft,li,wi,Ya,$i,$a,po,mo,xn,_a,Py,Oy,le,$t,Ji,Fn,or,$P]});let n=t;return n})();var Vy=rn(Mn());var kg=rn(Mn());var F9=["switch"],O9=["*"];function P9(n,t){n&1&&(f(0,"div",10),It(),f(1,"svg",12),E(2,"path",13),v(),f(3,"svg",14),E(4,"path",15),v()())}var N9=new re("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1})}),V9={provide:qr,useExisting:ci(()=>uh),multi:!0},Ny=class{constructor(t,i){this.source=t,this.checked=i}},j9=0,uh=(()=>{let t=class t{_createChangeEvent(e){return new Ny(this,e)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,r,o,a,c,m){this._elementRef=e,this._focusMonitor=r,this._changeDetectorRef=o,this.defaults=c,this._onChange=x=>{},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 Y,this.toggleChange=new Y,this.tabIndex=parseInt(a)||0,this.color=c.color||"accent",this._noopAnimations=m==="NoopAnimations",this.id=this._uniqueId=`mat-mdc-slide-toggle-${++j9}`,this.hideIcon=c.hideIcon??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(e){e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorOnChange=e}setDisabledState(e){this.disabled=e,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 Ny(this,this.checked)))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}};t.\u0275fac=function(r){return new(r||t)(l(P),l(fr),l(ce),Bi("tabindex"),l(N9),l(Et,8))},t.\u0275cmp=R({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(r,o){if(r&1&&Z(F9,5),r&2){let a;G(a=$())&&(o._switchElement=a.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(r,o){r&2&&(zi("id",o.id),De("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Di(o.color?"mat-"+o.color:""),ie("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:[z.None,"aria-label","ariaLabel"],ariaLabelledby:[z.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[z.None,"aria-describedby","ariaDescribedby"],required:[z.HasDecoratorInputTransform,"required","required",xe],color:"color",disabled:[z.HasDecoratorInputTransform,"disabled","disabled",xe],disableRipple:[z.HasDecoratorInputTransform,"disableRipple","disableRipple",xe],tabIndex:[z.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>e==null?0:jr(e)],checked:[z.HasDecoratorInputTransform,"checked","checked",xe],hideIcon:[z.HasDecoratorInputTransform,"hideIcon","hideIcon",xe]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],standalone:!0,features:[Ae([V9,{provide:Qn,useExisting:t,multi:!0}]),ct,he,se],ngContentSelectors:O9,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 a=oe();rt(),f(0,"div",1)(1,"button",2,0),A("click",function(){return V(a),j(o._handleClick())}),E(3,"div",3),f(4,"div",4)(5,"div",5)(6,"div",6),E(7,"div",7),v(),f(8,"div",8),E(9,"div",9),v(),H(10,P9,5,0,"div",10),v()()(),f(11,"label",11),A("click",function(m){return V(a),j(m.stopPropagation())}),Ne(12),v()()}if(r&2){let a=Si(2);w("labelPosition",o.labelPosition),b(),ie("mdc-switch--selected",o.checked)("mdc-switch--unselected",!o.checked)("mdc-switch--checked",o.checked)("mdc-switch--disabled",o.disabled),w("tabIndex",o.disabled?-1:o.tabIndex)("disabled",o.disabled),De("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),b(8),w("matRippleTrigger",a)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),b(),Ue(10,o.hideIcon?-1:10),b(),w("for",o.buttonId),De("id",o._labelId)}},dependencies:[aa,Lb],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=t;return n})();var hh=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=X({type:t}),t.\u0275inj=K({imports:[uh,Xe,Xe]});let n=t;return n})();var KP=(()=>{let t=class t{get allowedDateFormats(){return ot.constants.date_formats}get allowedLanguages(){return ot.constants.languages}constructor(e,r){this.uService=e,this.rService=r,this.dialogRef=F(Ua),this.group=F(Wa),this.name=new Wt(this.group.name),this.comment=new Wt(this.group.comment),this.mailErrorMessage=zn(""),this.errorMessage=zn("")}update(){this.group.name=this.name.value,this.group.comment=this.comment.value,this.uService.update(this.group).subscribe({next:()=>{this.rService.executeAll()},error:e=>{console.error(e),kg.default.fire({title:"Interner Dienstfehler",text:"Bitte wenden Sie sich an das IT-Team, um den Fehler zu beheben.",icon:"error"})}})}delete(){kg.default.fire({text:"Sind Sie sicher, dass Sie diesen Datensatz l\xF6schen wollen?",icon:"question",showDenyButton:!0,confirmButtonText:"Ja",denyButtonText:"Nein"}).then(e=>{e.isConfirmed&&(this.group.id?this.uService.delete(this.group.id).subscribe({next:()=>{this.rService.executeAll(),this.dialogRef.close()},error:r=>{kg.default.fire({title:"Interner Dienstfehler",text:"Bitte wenden Sie sich an das IT-Team, um den Fehler zu beheben.",icon:"error"})}}):kg.default.fire({title:"Ein unerwarteter Fehler",text:"Die Benutzer-ID existiert nicht (Nullwert).",icon:"error"}))})}};t.\u0275fac=function(r){return new(r||t)(l(uo),l(bn))},t.\u0275cmp=R({type:t,selectors:[["app-group-update-form"]],standalone:!0,features:[se],decls:52,vars:16,consts:[[1,"dd-container"],[1,"dd-row","input-row"],[1,"w20p"],["matInput","","readonly","",3,"value"],[1,"w80p"],["matInput","",3,"formControl"],[3,"ngModelChange","ngModel"],["disabled","",3,"ngModelChange","ngModel"],[1,"dd-row","button-row"],["mat-fab","","extended","",3,"click"]],template:function(r,o){r&1&&(f(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),T(4,"Id"),v(),E(5,"input",3),v(),f(6,"mat-form-field",4)(7,"mat-label"),T(8,"Gruppe"),v(),E(9,"input",5),v()(),f(10,"div",1)(11,"mat-form-field")(12,"mat-label"),T(13,"Kommentar"),v(),E(14,"textarea",5),v()(),E(15,"mat-divider"),f(16,"div",1)(17,"mat-slide-toggle",6),fn("ngModelChange",function(c){return Hi(o.group.active,c)||(o.group.active=c),c}),T(18," Aktiv "),v(),f(19,"mat-slide-toggle",7),fn("ngModelChange",function(c){return Hi(o.group.internal,c)||(o.group.internal=c),c}),T(20," Interne Gruppe "),v(),f(21,"mat-slide-toggle",7),fn("ngModelChange",function(c){return Hi(o.group.adSync,c)||(o.group.adSync=c),c}),T(22," Mit Active Directory "),v()(),f(23,"div",1)(24,"mat-form-field")(25,"mat-label"),T(26,"Hinzugef\xFCgt wer"),v(),E(27,"input",3),v(),f(28,"mat-form-field")(29,"mat-label"),T(30,"Hinzugef\xFCgt wann"),v(),E(31,"input",3),Re(32,"date"),v(),f(33,"mat-form-field")(34,"mat-label"),T(35,"Ge\xE4ndert wer"),v(),E(36,"input",3),v(),f(37,"mat-form-field")(38,"mat-label"),T(39,"Ge\xE4ndert wann"),v(),E(40,"input",3),Re(41,"date"),v()(),E(42,"mat-divider"),f(43,"div",8)(44,"button",9),A("click",function(){return o.update()}),f(45,"mat-icon"),T(46,"save"),v(),T(47," Speichern "),v(),f(48,"button",9),A("click",function(){return o.delete()}),f(49,"mat-icon"),T(50,"delete"),v(),T(51," L\xF6schen "),v()()()),r&2&&(b(5),w("value",o.group.id),b(4),w("formControl",o.name),b(5),w("formControl",o.comment),b(3),gn("ngModel",o.group.active),b(2),gn("ngModel",o.group.internal),b(2),gn("ngModel",o.group.adSync),b(6),w("value",o.group.addedWho),b(4),w("value",hr(32,10,o.group.addedWhen,"dd.MM.yyyy")),b(5),w("value",o.group.changedWho),b(4),w("value",hr(41,13,o.group.changedWhen,"dd.MM.yyyy")))},dependencies:[On,ba,ho,va,Fc,Ft,li,wi,Ga,$i,$a,po,mo,xn,_a,le,Us,Ji,My,Ry,Ay,Py,hh,uh]});let n=t;return n})();var L9=["groupTable"],B9=["userTable"],XP=(()=>{let t=class t extends Yr{constructor(){super(...arguments),this.initWithoutData=()=>{},this.cellEditing={enabled:!0,cellEdit:(e,r,o)=>!this.updateService.isEditable||!r.internal?!1:(this.updateService.setAsync("group_"+r.id.toString(),()=>yt(this,null,function*(){yield Ln(this.groupTable.service.update(r))})),!0)},this.sGroup=null,this.dialog=F($r),this.groupsOnSelectedRows=e=>{e.length>0?(this.sGroup=e[0].source,this.sGroup&&this.userTable.fetchDataByGroupId(this.sGroup.id)):e.length==0&&this.sGroup?.name!=null&&this.openUpdateSheet(this.sGroup)}}ngAfterViewInit(){this.buttonVisibilityService.setVisibleOnly(this.refreshService,this.creationService,this.updateService),this.refreshService.removeAll(),this.refreshService.add(()=>{this.groupTable.fetchData(),this.sGroup&&this.userTable.fetchDataByGroupId(this.sGroup.id)}),this.creationService.component=qP,this.deletionService.add(()=>this.handleDeleteRequest())}handleDeleteRequest(){let e=this.groupTable.selectedRows;e.length>0&&Vy.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: ${e.length}</p>`,showDenyButton:!0,confirmButtonText:"Ja",denyButtonText:"Nein"}).then(r=>{if(r.isConfirmed){let o=e.map(a=>this.groupTable.service.delete(a.source.id));Pr(o).subscribe({next:()=>{this.updateService.executeAllAsync().then(()=>{this.refreshService.executeAll()}),Vy.default.fire({text:`${e.length} Eintr\xE4ge wurden erfolgreich gel\xF6scht.`,icon:"success"})},error:a=>Vy.default.fire({title:"Fehler",text:"Dieser Vorgang ist nicht m\xF6glich.",icon:"error"})})}})}get detailed_group_cols(){return ot.columnNames.group.detailed}openUpdateSheet(e){this.dialog.open(KP,{width:"50rem",data:e})}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ge(t)))(o||t)}})(),t.\u0275cmp=R({type:t,selectors:[["app-group"]],viewQuery:function(r,o){if(r&1&&(Z(L9,5),Z(B9,5)),r&2){let a;G(a=$())&&(o.groupTable=a.first),G(a=$())&&(o.userTable=a.first)}},standalone:!0,features:[L,se],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),E(5,"app-group-table",6,0),v()()(),f(7,"div",7)(8,"mat-tab-group")(9,"mat-tab",8),E(10,"app-user-table",9,1),v()()()()()),r&2&&(b(5),w("onSelectedRows",o.groupsOnSelectedRows)("cellEditing",o.cellEditing)("columns",o.detailed_group_cols),b(5),w("initData",o.initWithoutData))},dependencies:[Ac,fa,Ji,Fn,or]});let n=t;return n})();var z9=["moduleTable"],H9=["userTable"],ZP=(()=>{let t=class t extends Yr{constructor(){super(...arguments),this.uModuleId=null,this.initWithoutData=()=>{},this.modulesOnSelectedRows=e=>{e.length>0&&(this.uModuleId=e[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)})}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ge(t)))(o||t)}})(),t.\u0275cmp=R({type:t,selectors:[["app-module"]],viewQuery:function(r,o){if(r&1&&(Z(z9,5),Z(H9,5)),r&2){let a;G(a=$())&&(o.moduleTable=a.first),G(a=$())&&(o.userTable=a.first)}},standalone:!0,features:[L,se],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),E(5,"app-module-table",6,0),v()()(),f(7,"div",4)(8,"mat-tab-group")(9,"mat-tab",7),E(10,"app-user-table",8,1),v()()()()()),r&2&&(b(5),w("onSelectedRows",o.modulesOnSelectedRows),b(5),w("initData",o.initWithoutData))},dependencies:[lh,Ji,Fn,or,fa]});let n=t;return n})();var U9=["unassignedUsers"],W9=["assignedUsers"],G9=["modules"],$9=["groups"],JP=(()=>{let t=class t extends Yr{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:io.CHECKBOX,mode:Ro.MULTIPLE},this.anySelected=!1,this.target=ya.Module,this.targetId=0,this.modulesOnSelectedRows=e=>{e.length>0&&(this.modules.safelyUnselectAll(),this.userInLabel=`Benutzer in Module ${e[0].source?.name}`,this.target=ya.Module,this.targetId=e[0].source.id,this.updateUserTables())},this.groupsOnSelectedRows=e=>{e.length>0&&(this.groups.safelyUnselectAll(),this.userInLabel=`Benutzer in Gruppe ${e[0].source?.name}`,this.target=ya.Group,this.targetId=e[0].source.id,this.updateUserTables())},this.sUnassgnCount=0,this.sAssgnCount=0,this.unassignedUsersOnSelectedRows=e=>{e.length>this.sUnassgnCount&&this.unassignedUsers.selectedRows.length>0&&this.assignedUsers.safelyUnselectAll(),this.sUnassgnCount=e.length},this.assignedUsersOnSelectedRows=e=>{e.length>this.sAssgnCount&&this.assignedUsers.selectedRows.length>0&&this.unassignedUsers.safelyUnselectAll(),this.sAssgnCount=e.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 e=this.unassignedUsers.selectedRows.map(r=>r.source);switch(console.log(e),this.unselectUserTables(),this.target){case ya.Module:this.unassignedUsers.createModuleOfUsers(this.targetId,e).then(()=>this.updateUserTables());break;case ya.Group:this.unassignedUsers.createGroupOfUsers(this.targetId,e).then(()=>this.updateUserTables());break}}unassign(){var e=this.assignedUsers.selectedRows.map(r=>r.source);switch(this.unselectUserTables(),this.target){case ya.Module:this.unassignedUsers.deleteModuleOfUsers(this.targetId,e).then(()=>this.updateUserTables());break;case ya.Group:this.unassignedUsers.deleteGroupOfUsers(this.targetId,e).then(()=>this.updateUserTables());break}}unselectUserTables(){this.assignedUsers.safelyUnselectAll(),this.unassignedUsers.safelyUnselectAll()}updateUserTables(){switch(this.anySelected=!0,this.unselectUserTables(),this.target){case ya.Module:this.assignedUsers.fetchDataByModuleId(this.targetId),this.unassignedUsers.fetchDataByModuleId(this.targetId,!1);break;case ya.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}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ge(t)))(o||t)}})(),t.\u0275cmp=R({type:t,selectors:[["app-user-assignment"]],viewQuery:function(r,o){if(r&1&&(Z(U9,5),Z(W9,5),Z(G9,5),Z($9,5)),r&2){let a;G(a=$())&&(o.unassignedUsers=a.first),G(a=$())&&(o.assignedUsers=a.first),G(a=$())&&(o.modules=a.first),G(a=$())&&(o.groups=a.first)}},inputs:{activeTabTitle:"activeTabTitle",activeIndex:"activeIndex"},standalone:!0,features:[L,se],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),E(5,"app-module-table",8,0),v(),f(7,"mat-tab",9),E(8,"app-group-table",8,1),v()()(),f(10,"div",10)(11,"mat-tab-group")(12,"mat-tab",11),E(13,"app-user-table",12,2),v()()(),f(15,"div",13)(16,"mat-tab-group")(17,"mat-tab",14),E(18,"app-user-table",12,3),v()()()()()),r&2&&(b(5),w("onSelectedRows",o.modulesOnSelectedRows),b(3),w("onSelectedRows",o.groupsOnSelectedRows),b(5),w("onSelectedRows",o.unassignedUsersOnSelectedRows)("rowSelection",o.userRowSelection)("initData",o.initWithoutData),b(4),Hs("label",o.userInLabel),b(),w("onSelectedRows",o.assignedUsersOnSelectedRows)("rowSelection",o.userRowSelection)("initData",o.initWithoutData))},dependencies:[Ji,Fn,or,fa,lh,Ac]});let n=t;return n})(),ya=function(n){return n[n.Module=0]="Module",n[n.Group=1]="Group",n}(ya||{});var mh=(()=>{let t=class t extends Ii{constructor(e,r){super(e,r.apiRoute.userRep)}getAll(e){let r=new Wn;return e&&(e.withUser&&(r=r.set("withUser",e.withUser)),e.withRepGroup&&(r=r.set("withRepGroup",e.withRepGroup)),e.withGroup&&(r=r.set("withRightGroup",e.withGroup)),e.withRepUser&&(r=r.set("withRepUser",e.withRepUser)),e.userId&&(r=r.set("userId",e.userId)),e.groupId&&(r=r.set("groupId",e.groupId))),this.http.get(`${this.baseUrl}`,{params:r,withCredentials:!0})}};t.\u0275fac=function(r){return new(r||t)(k(pi),k(di))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var tN=(()=>{let t=class t extends co{constructor(e,r){super(e,ot.columnNames.userRep,r),this.loading=!1}fetchData(e,r){this.service.getAll({withUser:!1,withRepGroup:!0,withGroup:!1,withRepUser:!0,userId:e,groupId:r}).subscribe({next:o=>{this.source=o,this.loading=!1},error:o=>{}})}fetchByUser(e){this.fetchData(e,void 0)}fetchByGroup(e){this.fetchData(void 0,e)}};t.\u0275fac=function(r){return new(r||t)(l(mh),l(Zi))},t.\u0275cmp=R({type:t,selectors:[["app-user-rep-table"]],standalone:!0,features:[L,se],decls:2,vars:16,consts:[["grid",""],[3,"selectedRows","click","columns","columnMenu","sorting","loading","rowSelection","rowDetail","autoResizeWidth","paging","searching","cellEditing","virtualScroll","infoPanel","titlePanel","theme","rowStyle","rowClass"]],template:function(r,o){if(r&1){let a=oe();f(0,"gui-grid",1,0),A("selectedRows",function(m){return V(a),j(o.onSelectedRows(m))})("click",function(){return V(a),j(o.click&&o.click(o))}),v()}r&2&&w("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)("rowStyle",o.rowStyle)("rowClass",o.rowClass)},dependencies:[le,Ft,yn,wn]});let n=t;return n})();var Nc=rn(Mn());var q9=["mat-calendar-body",""];function Q9(n,t){if(n&1&&(f(0,"tr",0)(1,"td",3),T(2),v()()),n&2){let i=S();b(),ft("padding-top",i._cellPadding)("padding-bottom",i._cellPadding),De("colspan",i.numCols),b(),Oe(" ",i.label," ")}}function K9(n,t){if(n&1&&(f(0,"td",3),T(1),v()),n&2){let i=S(2);ft("padding-top",i._cellPadding)("padding-bottom",i._cellPadding),De("colspan",i._firstRowOffset),b(),Oe(" ",i._firstRowOffset>=i.labelMinRequiredCells?i.label:""," ")}}function X9(n,t){if(n&1){let i=oe();f(0,"td",6)(1,"button",7),A("click",function(r){let o=V(i).$implicit,a=S(2);return j(a._cellClicked(o,r))})("focus",function(r){let o=V(i).$implicit,a=S(2);return j(a._emitActiveDateChange(o,r))}),f(2,"span",8),T(3),v(),E(4,"span",9),v()()}if(n&2){let i=t.$implicit,e=t.$index,r=S().$index,o=S();ft("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),De("data-mat-row",r)("data-mat-col",e),b(),ie("mat-calendar-body-disabled",!i.enabled)("mat-calendar-body-active",o._isActiveCell(r,e))("mat-calendar-body-range-start",o._isRangeStart(i.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(i.compareValue))("mat-calendar-body-in-range",o._isInRange(i.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(i.compareValue,r,e))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(i.compareValue,r,e))("mat-calendar-body-comparison-start",o._isComparisonStart(i.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(i.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(i.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(i.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(i.compareValue))("mat-calendar-body-in-preview",o._isInPreview(i.compareValue)),w("ngClass",i.cssClasses)("tabindex",o._isActiveCell(r,e)?0:-1),De("aria-label",i.ariaLabel)("aria-disabled",!i.enabled||null)("aria-pressed",o._isSelected(i.compareValue))("aria-current",o.todayValue===i.compareValue?"date":null)("aria-describedby",o._getDescribedby(i.compareValue)),b(),ie("mat-calendar-body-selected",o._isSelected(i.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(i.compareValue))("mat-calendar-body-today",o.todayValue===i.compareValue),b(),Oe(" ",i.displayValue," ")}}function Z9(n,t){if(n&1&&(f(0,"tr",1),H(1,K9,2,6,"td",4),qo(2,X9,5,48,"td",5,Yo),v()),n&2){let i=t.$implicit,e=t.$index,r=S();b(),Ue(1,e===0&&r._firstRowOffset?1:-1),b(),Qo(i)}}function J9(n,t){if(n&1&&(f(0,"th",2)(1,"span",6),T(2),v(),f(3,"span",3),T(4),v()()),n&2){let i=t.$implicit;b(2),Ee(i.long),b(2),Ee(i.narrow)}}var eq=["*"];function tq(n,t){}function iq(n,t){if(n&1){let i=oe();f(0,"mat-month-view",2),fn("activeDateChange",function(r){V(i);let o=S();return Hi(o.activeDate,r)||(o.activeDate=r),j(r)}),A("_userSelection",function(r){V(i);let o=S();return j(o._dateSelected(r))})("dragStarted",function(r){V(i);let o=S();return j(o._dragStarted(r))})("dragEnded",function(r){V(i);let o=S();return j(o._dragEnded(r))}),v()}if(n&2){let i=S();gn("activeDate",i.activeDate),w("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)("comparisonStart",i.comparisonStart)("comparisonEnd",i.comparisonEnd)("startDateAccessibleName",i.startDateAccessibleName)("endDateAccessibleName",i.endDateAccessibleName)("activeDrag",i._activeDrag)}}function nq(n,t){if(n&1){let i=oe();f(0,"mat-year-view",3),fn("activeDateChange",function(r){V(i);let o=S();return Hi(o.activeDate,r)||(o.activeDate=r),j(r)}),A("monthSelected",function(r){V(i);let o=S();return j(o._monthSelectedInYearView(r))})("selectedChange",function(r){V(i);let o=S();return j(o._goToDateInView(r,"month"))}),v()}if(n&2){let i=S();gn("activeDate",i.activeDate),w("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)}}function rq(n,t){if(n&1){let i=oe();f(0,"mat-multi-year-view",4),fn("activeDateChange",function(r){V(i);let o=S();return Hi(o.activeDate,r)||(o.activeDate=r),j(r)}),A("yearSelected",function(r){V(i);let o=S();return j(o._yearSelectedInMultiYearView(r))})("selectedChange",function(r){V(i);let o=S();return j(o._goToDateInView(r,"year"))}),v()}if(n&2){let i=S();gn("activeDate",i.activeDate),w("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)}}function oq(n,t){}var aq=["button"],sq=[[["","matDatepickerToggleIcon",""]]],cq=["[matDatepickerToggleIcon]"];function lq(n,t){n&1&&(It(),f(0,"svg",2),E(1,"path",3),v())}var dq=[[["input","matStartDate",""]],[["input","matEndDate",""]]],uq=["input[matStartDate]","input[matEndDate]"];var ud=(()=>{let t=class t{constructor(){this.changes=new ue,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,r){return`${e} \u2013 ${r}`}formatYearRangeLabel(e,r){return`${e} to ${r}`}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Sg=class{constructor(t,i,e,r,o={},a=t,c){this.value=t,this.displayValue=i,this.ariaLabel=e,this.enabled=r,this.cssClasses=o,this.compareValue=a,this.rawValue=c}},hq=1,iN=vn({passive:!1,capture:!0}),Oc=vn({passive:!0,capture:!0}),jy=vn({passive:!0}),gh=(()=>{let t=class t{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(e,r){this._elementRef=e,this._ngZone=r,this._platform=F(Qe),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new Y,this.previewChange=new Y,this.activeDateChange=new Y,this.dragStarted=new Y,this.dragEnded=new Y,this._didDragSinceMouseDown=!1,this._enterHandler=o=>{if(this._skipNextFocus&&o.type==="focus"){this._skipNextFocus=!1;return}if(o.target&&this.isRange){let a=this._getCellFromElement(o.target);a&&this._ngZone.run(()=>this.previewChange.emit({value:a.enabled?a:null,event:o}))}},this._touchmoveHandler=o=>{if(!this.isRange)return;let a=nN(o),c=a?this._getCellFromElement(a):null;a!==o.target&&(this._didDragSinceMouseDown=!0),FT(o.target)&&o.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:c?.enabled?c:null,event:o}))},this._leaveHandler=o=>{this.previewEnd!==null&&this.isRange&&(o.type!=="blur"&&(this._didDragSinceMouseDown=!0),o.target&&this._getCellFromElement(o.target)&&!(o.relatedTarget&&this._getCellFromElement(o.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:o})))},this._mousedownHandler=o=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let a=o.target&&this._getCellFromElement(o.target);!a||!this._isInRange(a.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:a.rawValue,event:o})})},this._mouseupHandler=o=>{if(!this.isRange)return;let a=FT(o.target);if(!a){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:o})});return}a.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let c=this._getCellFromElement(a);this.dragEnded.emit({value:c?.rawValue??null,event:o})})},this._touchendHandler=o=>{let a=nN(o);a&&this._mouseupHandler({target:a})},this._id=`mat-calendar-body-${hq++}`,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,r.runOutsideAngular(()=>{let o=e.nativeElement;o.addEventListener("touchmove",this._touchmoveHandler,iN),o.addEventListener("mouseenter",this._enterHandler,Oc),o.addEventListener("focus",this._enterHandler,Oc),o.addEventListener("mouseleave",this._leaveHandler,Oc),o.addEventListener("blur",this._leaveHandler,Oc),o.addEventListener("mousedown",this._mousedownHandler,jy),o.addEventListener("touchstart",this._mousedownHandler,jy),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(e,r){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:r})}_emitActiveDateChange(e,r){e.enabled&&this.activeDateChange.emit({value:e.value,event:r})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let r=e.numCols,{rows:o,numCols:a}=this;(e.rows||r)&&(this._firstRowOffset=o&&o.length&&o[0].length?a-o[0].length:0),(e.cellAspectRatio||r||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/a}%`),(r||!this._cellWidth)&&(this._cellWidth=`${100/a}%`)}ngOnDestroy(){let e=this._elementRef.nativeElement;e.removeEventListener("touchmove",this._touchmoveHandler,iN),e.removeEventListener("mouseenter",this._enterHandler,Oc),e.removeEventListener("focus",this._enterHandler,Oc),e.removeEventListener("mouseleave",this._leaveHandler,Oc),e.removeEventListener("blur",this._leaveHandler,Oc),e.removeEventListener("mousedown",this._mousedownHandler,jy),e.removeEventListener("touchstart",this._mousedownHandler,jy),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(e,r){let o=e*this.numCols+r;return e&&(o-=this._firstRowOffset),o==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(gt(1)).subscribe(()=>{setTimeout(()=>{let r=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");r&&(e||(this._skipNextFocus=!0),r.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return OT(e,this.startValue,this.endValue)}_isRangeEnd(e){return PT(e,this.startValue,this.endValue)}_isInRange(e){return NT(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return OT(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,r,o){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let a=this.rows[r][o-1];if(!a){let c=this.rows[r-1];a=c&&c[c.length-1]}return a&&!this._isRangeEnd(a.compareValue)}_isComparisonBridgeEnd(e,r,o){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let a=this.rows[r][o+1];if(!a){let c=this.rows[r+1];a=c&&c[0]}return a&&!this._isRangeStart(a.compareValue)}_isComparisonEnd(e){return PT(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return NT(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return OT(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return PT(e,this.previewStart,this.previewEnd)}_isInPreview(e){return NT(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){return this.isRange?this.startValue===e&&this.endValue===e?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===e?this._startDateLabelId:this.endValue===e?this._endDateLabelId:null:null}_getCellFromElement(e){let r=FT(e);if(r){let o=r.getAttribute("data-mat-row"),a=r.getAttribute("data-mat-col");if(o&&a)return this.rows[parseInt(o)][parseInt(a)]}return null}};t.\u0275fac=function(r){return new(r||t)(l(P),l(be))},t.\u0275cmp=R({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],standalone:!0,features:[he,se],attrs:q9,decls:7,vars:5,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(r,o){r&1&&(H(0,Q9,3,6,"tr",0),qo(1,Z9,4,1,"tr",1,Yo),f(3,"label",2),T(4),v(),f(5,"label",2),T(6),v()),r&2&&(Ue(0,o._firstRowOffset<o.labelMinRequiredCells?0:-1),b(),Qo(o.rows),b(2),w("id",o._startDateLabelId),b(),Oe(" ",o.startDateAccessibleName,`
`),b(),w("id",o._endDateLabelId),b(),Oe(" ",o.endDateAccessibleName,`
`))},dependencies:[$t],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-outline-color)}.mat-calendar-body-label{height:0;line-height:0;text-align:start;padding-left:4.7142857143%;padding-right:4.7142857143%;font-size:var(--mat-datepicker-calendar-body-label-text-size);font-weight:var(--mat-datepicker-calendar-body-label-text-weight);color:var(--mat-datepicker-calendar-body-label-text-color)}.mat-calendar-body-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;display:block;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview{color:var(--mat-datepicker-calendar-date-preview-state-outline-color)}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color)}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color);border-color:var(--mat-datepicker-calendar-date-outline-color)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color)}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color)}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color);color:var(--mat-datepicker-calendar-date-selected-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color)}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color)}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color)}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color)}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}'],encapsulation:2,changeDetection:0});let n=t;return n})();function RT(n){return n?.nodeName==="TD"}function FT(n){let t;return RT(n)?t=n:RT(n.parentNode)?t=n.parentNode:RT(n.parentNode?.parentNode)&&(t=n.parentNode.parentNode),t?.getAttribute("data-mat-row")!=null?t:null}function OT(n,t,i){return i!==null&&t!==i&&n<i&&n===t}function PT(n,t,i){return t!==null&&t!==i&&n>=t&&n===i}function NT(n,t,i,e){return e&&t!==null&&i!==null&&t!==i&&n>=t&&n<=i}function nN(n){let t=n.changedTouches[0];return document.elementFromPoint(t.clientX,t.clientY)}var ji=class{constructor(t,i){this.start=t,this.end=i}},Pc=(()=>{let t=class t{constructor(e,r){this.selection=e,this._adapter=r,this._selectionChanged=new ue,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,r){let o=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:r,oldValue:o})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}};t.\u0275fac=function(r){zs()},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),mq=(()=>{let t=class t extends Pc{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e}};t.\u0275fac=function(r){return new(r||t)(k(Tt))},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),pq=(()=>{let t=class t extends Pc{constructor(e){super(new ji(null,null),e)}add(e){let{start:r,end:o}=this.selection;r==null?r=e:o==null?o=e:(r=e,o=null),super.updateSelection(new ji(r,o),this)}isValid(){let{start:e,end:r}=this.selection;return e==null&&r==null?!0:e!=null&&r!=null?this._isValidDateInstance(e)&&this._isValidDateInstance(r)&&this._adapter.compareDate(e,r)<=0:(e==null||this._isValidDateInstance(e))&&(r==null||this._isValidDateInstance(r))}isComplete(){return this.selection.start!=null&&this.selection.end!=null}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e}};t.\u0275fac=function(r){return new(r||t)(k(Tt))},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})();function gq(n,t){return n||new mq(t)}var fq={provide:Pc,deps:[[new js,new Xc,Pc],Tt],useFactory:gq};function bq(n,t){return n||new pq(t)}var vq={provide:Pc,deps:[[new js,new Xc,Pc],Tt],useFactory:bq},Ly=new re("MAT_DATE_RANGE_SELECTION_STRATEGY"),_q=(()=>{let t=class t{constructor(e){this._dateAdapter=e}selectionFinished(e,r){let{start:o,end:a}=r;return o==null?o=e:a==null&&e&&this._dateAdapter.compareDate(e,o)>=0?a=e:(o=e,a=null),new ji(o,a)}createPreview(e,r){let o=null,a=null;return r.start&&!r.end&&e&&(o=r.start,a=e),new ji(o,a)}createDrag(e,r,o){let a=r.start,c=r.end;if(!a||!c)return null;let m=this._dateAdapter,x=m.compareDate(a,c)!==0,I=m.getYear(o)-m.getYear(e),O=m.getMonth(o)-m.getMonth(e),B=m.getDate(o)-m.getDate(e);return x&&m.sameDate(e,r.start)?(a=o,m.compareDate(o,c)>0&&(c=m.addCalendarYears(c,I),c=m.addCalendarMonths(c,O),c=m.addCalendarDays(c,B))):x&&m.sameDate(e,r.end)?(c=o,m.compareDate(o,a)<0&&(a=m.addCalendarYears(a,I),a=m.addCalendarMonths(a,O),a=m.addCalendarDays(a,B))):(a=m.addCalendarYears(a,I),a=m.addCalendarMonths(a,O),a=m.addCalendarDays(a,B),c=m.addCalendarYears(c,I),c=m.addCalendarMonths(c,O),c=m.addCalendarDays(c,B)),new ji(a,c)}};t.\u0275fac=function(r){return new(r||t)(k(Tt))},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})();function yq(n,t){return n||new _q(t)}var wq={provide:Ly,deps:[[new js,new Xc,Ly],Tt],useFactory:yq},VT=7,rN=(()=>{let t=class t{get activeDate(){return this._activeDate}set activeDate(e){let r=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._hasSameMonthAndYear(r,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){e instanceof ji?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,r,o,a,c){this._changeDetectorRef=e,this._dateFormats=r,this._dateAdapter=o,this._dir=a,this._rangeStrategy=c,this._rerenderSubscription=pt.EMPTY,this.activeDrag=null,this.selectedChange=new Y,this._userSelection=new Y,this.dragStarted=new Y,this.dragEnded=new Y,this.activeDateChange=new Y,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(yi(null)).subscribe(()=>this._init())}ngOnChanges(e){let r=e.comparisonStart||e.comparisonEnd;r&&!r.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let r=e.value,o=this._getDateFromDayOfMonth(r),a,c;this._selected instanceof ji?(a=this._getDateInCurrentMonth(this._selected.start),c=this._getDateInCurrentMonth(this._selected.end)):a=c=this._getDateInCurrentMonth(this._selected),(a!==r||c!==r)&&this.selectedChange.emit(o),this._userSelection.emit({value:o,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let r=e.value,o=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(r),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let r=this._activeDate,o=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd!=null&&!Ut(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(r,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(VT+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%VT,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:r}){if(this._rangeStrategy){let o=r?r.rawValue:null,a=this._rangeStrategy.createPreview(o,this.selected,e);if(this._previewStart=this._getCellCompareValue(a.start),this._previewEnd=this._getCellCompareValue(a.end),this.activeDrag&&o){let c=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,o,e);c&&(this._previewStart=this._getCellCompareValue(c.start),this._previewEnd=this._getCellCompareValue(c.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(e){if(this.activeDrag)if(e.value){let r=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:r??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),r=this._dateAdapter.getDayOfWeekNames("narrow"),a=this._dateAdapter.getDayOfWeekNames("long").map((c,m)=>({long:c,narrow:r[m]}));this._weekdays=a.slice(e).concat(a.slice(0,e))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),r=this._dateAdapter.getDateNames();this._weeks=[[]];for(let o=0,a=this._firstWeekOffset;o<e;o++,a++){a==VT&&(this._weeks.push([]),a=0);let c=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),o+1),m=this._shouldEnableDate(c),x=this._dateAdapter.format(c,this._dateFormats.display.dateA11yLabel),I=this.dateClass?this.dateClass(c,"month"):void 0;this._weeks[this._weeks.length-1].push(new Sg(o+1,r[o],x,m,I,this._getCellCompareValue(c),c))}}_shouldEnableDate(e){return!!e&&(!this.minDate||this._dateAdapter.compareDate(e,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,r){return!!(e&&r&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(r)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(r))}_getCellCompareValue(e){if(e){let r=this._dateAdapter.getYear(e),o=this._dateAdapter.getMonth(e),a=this._dateAdapter.getDate(e);return new Date(r,o,a).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof ji?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart=this._previewEnd=null}};t.\u0275fac=function(r){return new(r||t)(l(ce),l(Gr,8),l(Tt,8),l(Yt,8),l(Ly,8))},t.\u0275cmp=R({type:t,selectors:[["mat-month-view"]],viewQuery:function(r,o){if(r&1&&Z(gh,5),r&2){let a;G(a=$())&&(o._matCalendarBody=a.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],standalone:!0,features:[he,se],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(r,o){r&1&&(f(0,"table",0)(1,"thead",1)(2,"tr"),qo(3,J9,5,2,"th",2,Yo),v(),f(5,"tr",3),E(6,"th",4),v()(),f(7,"tbody",5),A("selectedValueChange",function(c){return o._dateSelected(c)})("activeDateChange",function(c){return o._updateActiveDate(c)})("previewChange",function(c){return o._previewChanged(c)})("dragStarted",function(c){return o.dragStarted.emit(c)})("dragEnded",function(c){return o._dragEnded(c)})("keyup",function(c){return o._handleCalendarBodyKeyup(c)})("keydown",function(c){return o._handleCalendarBodyKeydown(c)}),v()()),r&2&&(b(3),Qo(o._weekdays),b(4),w("label",o._monthLabel)("rows",o._weeks)("todayValue",o._todayDate)("startValue",o._rangeStart)("endValue",o._rangeEnd)("comparisonStart",o._comparisonRangeStart)("comparisonEnd",o._comparisonRangeEnd)("previewStart",o._previewStart)("previewEnd",o._previewEnd)("isRange",o._isRange)("labelMinRequiredCells",3)("activeCell",o._dateAdapter.getDate(o.activeDate)-1)("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName))},dependencies:[gh],encapsulation:2,changeDetection:0});let n=t;return n})(),Er=24,jT=4,oN=(()=>{let t=class t{get activeDate(){return this._activeDate}set activeDate(e){let r=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),dN(this._dateAdapter,r,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){e instanceof ji?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,r,o){this._changeDetectorRef=e,this._dateAdapter=r,this._dir=o,this._rerenderSubscription=pt.EMPTY,this.selectedChange=new Y,this.yearSelected=new Y,this.activeDateChange=new Y,this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(yi(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());let r=this._dateAdapter.getYear(this._activeDate)-Dg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let o=0,a=[];o<Er;o++)a.push(r+o),a.length==jT&&(this._years.push(a.map(c=>this._createCellForYear(c))),a=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){let r=e.value,o=this._dateAdapter.createDate(r,0,1),a=this._getDateFromYear(r);this.yearSelected.emit(o),this.selectedChange.emit(a)}_updateActiveDate(e){let r=e.value,o=this._activeDate;this.activeDate=this._getDateFromYear(r),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let r=this._activeDate,o=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-jT);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,jT);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Dg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Er-Dg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Er*10:-Er);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Er*10:Er);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return Dg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let r=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,r,1));return this._dateAdapter.createDate(e,r,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForYear(e){let r=this._dateAdapter.createDate(e,0,1),o=this._dateAdapter.getYearName(r),a=this.dateClass?this.dateClass(r,"multi-year"):void 0;return new Sg(e,o,o,this._shouldEnableYear(e),a)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;let r=this._dateAdapter.createDate(e,0,1);for(let o=r;this._dateAdapter.getYear(o)==e;o=this._dateAdapter.addCalendarDays(o,1))if(this.dateFilter(o))return!0;return!1}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setSelectedYear(e){if(this._selectedYear=null,e instanceof ji){let r=e.start||e.end;r&&(this._selectedYear=this._dateAdapter.getYear(r))}else e&&(this._selectedYear=this._dateAdapter.getYear(e))}};t.\u0275fac=function(r){return new(r||t)(l(ce),l(Tt,8),l(Yt,8))},t.\u0275cmp=R({type:t,selectors:[["mat-multi-year-view"]],viewQuery:function(r,o){if(r&1&&Z(gh,5),r&2){let a;G(a=$())&&(o._matCalendarBody=a.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],standalone:!0,features:[se],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","keyup","keydown","rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell"]],template:function(r,o){r&1&&(f(0,"table",0)(1,"thead",1)(2,"tr"),E(3,"th",2),v()(),f(4,"tbody",3),A("selectedValueChange",function(c){return o._yearSelected(c)})("activeDateChange",function(c){return o._updateActiveDate(c)})("keyup",function(c){return o._handleCalendarBodyKeyup(c)})("keydown",function(c){return o._handleCalendarBodyKeydown(c)}),v()()),r&2&&(b(4),w("rows",o._years)("todayValue",o._todayYear)("startValue",o._selectedYear)("endValue",o._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",o._getActiveCell()))},dependencies:[gh],encapsulation:2,changeDetection:0});let n=t;return n})();function dN(n,t,i,e,r){let o=n.getYear(t),a=n.getYear(i),c=uN(n,e,r);return Math.floor((o-c)/Er)===Math.floor((a-c)/Er)}function Dg(n,t,i,e){let r=n.getYear(t);return xq(r-uN(n,i,e),Er)}function uN(n,t,i){let e=0;return i?e=n.getYear(i)-Er+1:t&&(e=n.getYear(t)),e}function xq(n,t){return(n%t+t)%t}var aN=(()=>{let t=class t{get activeDate(){return this._activeDate}set activeDate(e){let r=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._dateAdapter.getYear(r)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){e instanceof ji?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,r,o,a){this._changeDetectorRef=e,this._dateFormats=r,this._dateAdapter=o,this._dir=a,this._rerenderSubscription=pt.EMPTY,this.selectedChange=new Y,this.monthSelected=new Y,this.activeDateChange=new Y,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(yi(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let r=e.value,o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),r,1);this.monthSelected.emit(o);let a=this._getDateFromMonth(r);this.selectedChange.emit(a)}_updateActiveDate(e){let r=e.value,o=this._activeDate;this.activeDate=this._getDateFromMonth(r),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let r=this._activeDate,o=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(r,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(r=>r.map(o=>this._createCellForMonth(o,e[o]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.getNumDaysInMonth(r);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForMonth(e,r){let o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),a=this._dateAdapter.format(o,this._dateFormats.display.monthYearA11yLabel),c=this.dateClass?this.dateClass(o,"year"):void 0;return new Sg(e,r.toLocaleUpperCase(),a,this._shouldEnableMonth(e),c)}_shouldEnableMonth(e){let r=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(r,e)||this._isYearAndMonthBeforeMinDate(r,e))return!1;if(!this.dateFilter)return!0;let o=this._dateAdapter.createDate(r,e,1);for(let a=o;this._dateAdapter.getMonth(a)==e;a=this._dateAdapter.addCalendarDays(a,1))if(this.dateFilter(a))return!0;return!1}_isYearAndMonthAfterMaxDate(e,r){if(this.maxDate){let o=this._dateAdapter.getYear(this.maxDate),a=this._dateAdapter.getMonth(this.maxDate);return e>o||e===o&&r>a}return!1}_isYearAndMonthBeforeMinDate(e,r){if(this.minDate){let o=this._dateAdapter.getYear(this.minDate),a=this._dateAdapter.getMonth(this.minDate);return e<o||e===o&&r<a}return!1}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setSelectedMonth(e){e instanceof ji?this._selectedMonth=this._getMonthInCurrentYear(e.start)||this._getMonthInCurrentYear(e.end):this._selectedMonth=this._getMonthInCurrentYear(e)}};t.\u0275fac=function(r){return new(r||t)(l(ce),l(Gr,8),l(Tt,8),l(Yt,8))},t.\u0275cmp=R({type:t,selectors:[["mat-year-view"]],viewQuery:function(r,o){if(r&1&&Z(gh,5),r&2){let a;G(a=$())&&(o._matCalendarBody=a.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],standalone:!0,features:[se],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","keyup","keydown","label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell"]],template:function(r,o){r&1&&(f(0,"table",0)(1,"thead",1)(2,"tr"),E(3,"th",2),v()(),f(4,"tbody",3),A("selectedValueChange",function(c){return o._monthSelected(c)})("activeDateChange",function(c){return o._updateActiveDate(c)})("keyup",function(c){return o._handleCalendarBodyKeyup(c)})("keydown",function(c){return o._handleCalendarBodyKeydown(c)}),v()()),r&2&&(b(4),w("label",o._yearLabel)("rows",o._months)("todayValue",o._todayMonth)("startValue",o._selectedMonth)("endValue",o._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",o._dateAdapter.getMonth(o.activeDate)))},dependencies:[gh],encapsulation:2,changeDetection:0});let n=t;return n})(),Cq=1,hN=(()=>{let t=class t{constructor(e,r,o,a,c){this._intl=e,this.calendar=r,this._dateAdapter=o,this._dateFormats=a,this._id=`mat-calendar-header-${Cq++}`,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>c.markForCheck())}get periodButtonText(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return this.calendar.currentView=="month"?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-Er)}nextClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:Er)}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,r){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(r)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(r):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(r):dN(this._dateAdapter,e,r,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let r=this._dateAdapter.getYear(this.calendar.activeDate)-Dg(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=r+Er-1,a=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1)),c=this._dateAdapter.getYearName(this._dateAdapter.createDate(o,0,1));return[a,c]}};t.\u0275fac=function(r){return new(r||t)(l(ud),l(ci(()=>LT)),l(Tt,8),l(Gr,8),l(ce))},t.\u0275cmp=R({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],standalone:!0,features:[se],ngContentSelectors:eq,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],[1,"cdk-visually-hidden",3,"id"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"click","disabled"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"click","disabled"]],template:function(r,o){r&1&&(rt(),f(0,"div",0)(1,"div",1)(2,"label",2),T(3),v(),f(4,"button",3),A("click",function(){return o.currentPeriodClicked()}),f(5,"span",4),T(6),v(),It(),f(7,"svg",5),E(8,"polygon",6),v()(),dr(),E(9,"div",7),Ne(10),f(11,"button",8),A("click",function(){return o.previousClicked()}),v(),f(12,"button",9),A("click",function(){return o.nextClicked()}),v()()()),r&2&&(b(2),w("id",o._periodButtonLabelId),b(),Ee(o.periodButtonDescription),b(),De("aria-label",o.periodButtonLabel)("aria-describedby",o._periodButtonLabelId),b(2),Ee(o.periodButtonText),b(),ie("mat-calendar-invert",o.calendar.currentView!=="month"),b(4),w("disabled",!o.previousEnabled()),De("aria-label",o.prevButtonLabel),b(),w("disabled",!o.nextEnabled()),De("aria-label",o.nextButtonLabel))},dependencies:[ST,ET],encapsulation:2,changeDetection:0});let n=t;return n})(),LT=(()=>{let t=class t{get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){e instanceof ji?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){let r=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),r&&this.viewChanged.emit(r)}constructor(e,r,o,a){this._dateAdapter=r,this._dateFormats=o,this._changeDetectorRef=a,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new Y,this.yearSelected=new Y,this.monthSelected=new Y,this.viewChanged=new Y(!0),this._userSelection=new Y,this._userDragDrop=new Y,this._activeDrag=null,this.stateChanges=new ue,this._intlChanges=e.changes.subscribe(()=>{a.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new Io(this.headerComponent||hN),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){let r=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,o=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,a=r||o||e.dateFilter;if(a&&!a.firstChange){let c=this._getCurrentViewComponent();c&&(this._changeDetectorRef.detectChanges(),c._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){let r=e.value;(this.selected instanceof ji||r&&!this._dateAdapter.sameDate(r,this.selected))&&this.selectedChange.emit(r),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,r){this.activeDate=e,this.currentView=r}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}};t.\u0275fac=function(r){return new(r||t)(l(ud),l(Tt,8),l(Gr,8),l(ce))},t.\u0275cmp=R({type:t,selectors:[["mat-calendar"]],viewQuery:function(r,o){if(r&1&&(Z(rN,5),Z(aN,5),Z(oN,5)),r&2){let a;G(a=$())&&(o.monthView=a.first),G(a=$())&&(o.yearView=a.first),G(a=$())&&(o.multiYearView=a.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],standalone:!0,features:[Ae([fq]),he,se],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(r,o){if(r&1&&(H(0,tq,0,0,"ng-template",0),f(1,"div",1),H(2,iq,1,11)(3,nq,1,6)(4,rq,1,6),v()),r&2){let a;w("cdkPortalOutlet",o._calendarHeaderPortal),b(2),Ue(2,(a=o.currentView)==="month"?2:a==="year"?3:a==="multi-year"?4:-1)}},dependencies:[qn,Om,rN,aN,oN],styles:['.mat-calendar{display:block;font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size);font-weight:var(--mat-datepicker-calendar-period-button-text-weight);--mdc-text-button-label-text-color:var(--mat-datepicker-calendar-period-button-text-color)}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color)}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color)}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color);font-size:var(--mat-datepicker-calendar-header-text-size);font-weight:var(--mat-datepicker-calendar-header-text-weight)}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let n=t;return n})(),sN={transformPanel:Lr("transformPanel",[Wi("void => enter-dropdown",on("120ms cubic-bezier(0, 0, 0.2, 1)",Yx([Zt({opacity:0,transform:"scale(1, 0.8)"}),Zt({opacity:1,transform:"scale(1, 1)"})]))),Wi("void => enter-dialog",on("150ms cubic-bezier(0, 0, 0.2, 1)",Yx([Zt({opacity:0,transform:"scale(0.7)"}),Zt({transform:"none",opacity:1})]))),Wi("* => void",on("100ms linear",Zt({opacity:0})))]),fadeInCalendar:Lr("fadeInCalendar",[Un("void",Zt({opacity:0})),Un("enter",Zt({opacity:1})),Wi("void => *",on("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},Iq=0,mN=new re("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let n=F(Nt);return()=>n.scrollStrategies.reposition()}});function kq(n){return()=>n.scrollStrategies.reposition()}var Dq={provide:mN,deps:[Nt],useFactory:kq},pN=(()=>{let t=class t{constructor(e,r,o,a,c,m){this._elementRef=e,this._changeDetectorRef=r,this._globalModel=o,this._dateAdapter=a,this._rangeSelectionStrategy=c,this._subscriptions=new pt,this._animationDone=new ue,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=m.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let r=this._model.selection,o=e.value,a=r instanceof ji;if(a&&this._rangeSelectionStrategy){let c=this._rangeSelectionStrategy.selectionFinished(o,r,e.event);this._model.updateSelection(c,this)}else o&&(a||!this._dateAdapter.sameDate(o,r))&&this._model.add(o);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(e){this._isAnimating=e.phaseName==="start",this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,r){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,r&&this._changeDetectorRef.detectChanges()}};t.\u0275fac=function(r){return new(r||t)(l(P),l(ce),l(Pc),l(Tt),l(Ly,8),l(ud))},t.\u0275cmp=R({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(r,o){if(r&1&&Z(LT,5),r&2){let a;G(a=$())&&(o._calendar=a.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:5,hostBindings:function(r,o){r&1&&Lf("@transformPanel.start",function(c){return o._handleAnimationEvent(c)})("@transformPanel.done",function(c){return o._handleAnimationEvent(c)}),r&2&&(jf("@transformPanel",o._animationState),Di(o.color?"mat-"+o.color:""),ie("mat-datepicker-content-touch",o.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],standalone:!0,features:[se],decls:5,vars:27,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(r,o){if(r&1&&(f(0,"div",0)(1,"mat-calendar",1),A("yearSelected",function(c){return o.datepicker._selectYear(c)})("monthSelected",function(c){return o.datepicker._selectMonth(c)})("viewChanged",function(c){return o.datepicker._viewChanged(c)})("_userSelection",function(c){return o._handleUserSelection(c)})("_userDragDrop",function(c){return o._handleUserDragDrop(c)}),v(),H(2,oq,0,0,"ng-template",2),f(3,"button",3),A("focus",function(){return o._closeButtonFocused=!0})("blur",function(){return o._closeButtonFocused=!1})("click",function(){return o.datepicker.close()}),T(4),v()()),r&2){let a;ie("mat-datepicker-content-container-with-custom-header",o.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",o._actionsPortal),De("aria-modal",!0)("aria-labelledby",(a=o._dialogLabelId)!==null&&a!==void 0?a:void 0),b(),Di(o.datepicker.panelClass),w("id",o.datepicker.id)("startAt",o.datepicker.startAt)("startView",o.datepicker.startView)("minDate",o.datepicker._getMinDate())("maxDate",o.datepicker._getMaxDate())("dateFilter",o.datepicker._getDateFilter())("headerComponent",o.datepicker.calendarHeaderComponent)("selected",o._getSelected())("dateClass",o.datepicker.dateClass)("comparisonStart",o.comparisonStart)("comparisonEnd",o.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName),b(),w("cdkPortalOutlet",o._actionsPortal),b(),ie("cdk-visually-hidden",!o._closeButtonFocused),w("color",o.color||"primary"),b(),Ee(o._closeButtonText)}},dependencies:[K2,LT,qn,ST],styles:[".mat-datepicker-content{display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color);color:var(--mat-datepicker-calendar-container-text-color);box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-shape)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-touch-shape);position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[sN.transformPanel,sN.fadeInCalendar]},changeDetection:0});let n=t;return n})(),cN=(()=>{let t=class t{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=S2(e)}get opened(){return this._opened}set opened(e){e?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(e,r,o,a,c,m,x){this._overlay=e,this._ngZone=r,this._viewContainerRef=o,this._dateAdapter=c,this._dir=m,this._model=x,this._inputStateChanges=pt.EMPTY,this._document=F(ye),this.startView="month",this.touchUi=!1,this.xPosition="start",this.yPosition="below",this.restoreFocus=!0,this.yearSelected=new Y,this.monthSelected=new Y,this.viewChanged=new Y(!0),this.openedStream=new Y,this.closedStream=new Y,this._opened=!1,this.id=`mat-datepicker-${Iq++}`,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new ue,this._dateAdapter,this._scrollStrategy=a}ngOnChanges(e){let r=e.xPosition||e.yPosition;if(r&&!r.firstChange&&this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;o instanceof Tm&&(this._setConnectedPositions(o),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=Js(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",r=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:o,location:a}=this._componentRef;o._startExitAnimation(),o._animationDone.pipe(gt(1)).subscribe(()=>{let c=this._document.activeElement;e&&(!c||c===this._document.activeElement||a.nativeElement.contains(c))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}e?setTimeout(r):r()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,r=new Io(pN,this._viewContainerRef),o=this._overlayRef=this._overlay.create(new ic({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`}));this._getCloseStream(o).subscribe(a=>{a&&a.preventDefault(),this.close()}),o.keydownEvents().subscribe(a=>{let c=a.keyCode;(c===38||c===40||c===37||c===39||c===33||c===34)&&a.preventDefault()}),this._componentRef=o.attach(r),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe(gt(1)).subscribe(()=>o.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let r=this.xPosition==="end"?"end":"start",o=r==="start"?"end":"start",a=this.yPosition==="above"?"bottom":"top",c=a==="top"?"bottom":"top";return e.withPositions([{originX:r,originY:c,overlayX:r,overlayY:a},{originX:r,originY:a,overlayX:r,overlayY:c},{originX:o,originY:c,overlayX:o,overlayY:a},{originX:o,originY:a,overlayX:o,overlayY:c}])}_getCloseStream(e){let r=["ctrlKey","shiftKey","metaKey"];return St(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(et(o=>o.keyCode===27&&!Ut(o)||this.datepickerInput&&Ut(o,"altKey")&&o.keyCode===38&&r.every(a=>!Ut(o,a)))))}};t.\u0275fac=function(r){return new(r||t)(l(Nt),l(be),l(ri),l(mN),l(Tt,8),l(Yt,8),l(Pc))},t.\u0275dir=J({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[z.HasDecoratorInputTransform,"touchUi","touchUi",xe],disabled:[z.HasDecoratorInputTransform,"disabled","disabled",xe],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[z.HasDecoratorInputTransform,"restoreFocus","restoreFocus",xe],dateClass:"dateClass",panelClass:"panelClass",opened:[z.HasDecoratorInputTransform,"opened","opened",xe]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[ct,he]});let n=t;return n})();var ph=class{constructor(t,i){this.target=t,this.targetElement=i,this.value=this.target.value}},Sq=(()=>{let t=class t{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let r=e,o=this._elementRef.nativeElement;this._disabled!==r&&(this._disabled=r,this.stateChanges.next(void 0)),r&&this._isInitialized&&o.blur&&o.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(r=>{if(this._shouldHandleChangeEvent(r)){let o=this._getValueFromModel(r.selection);this._lastValueValid=this._isValidValue(o),this._cvaOnChange(o),this._onTouched(),this._formatValue(o),this.dateInput.emit(new ph(this,this._elementRef.nativeElement)),this.dateChange.emit(new ph(this,this._elementRef.nativeElement))}})}constructor(e,r,o){this._elementRef=e,this._dateAdapter=r,this._dateFormats=o,this.dateChange=new Y,this.dateInput=new Y,this.stateChanges=new ue,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=pt.EMPTY,this._localeSubscription=pt.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=a=>{let c=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(a.value));return!c||this._matchesFilter(c)?null:{matDatepickerFilter:!0}},this._minValidator=a=>{let c=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(a.value)),m=this._getMinDate();return!m||!c||this._dateAdapter.compareDate(m,c)<=0?null:{matDatepickerMin:{min:m,actual:c}}},this._maxValidator=a=>{let c=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(a.value)),m=this._getMaxDate();return!m||!c||this._dateAdapter.compareDate(m,c)>=0?null:{matDatepickerMax:{max:m,actual:c}}},this._lastValueValid=!1,this._localeSubscription=r.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){gN(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let r=["ctrlKey","shiftKey","metaKey"];Ut(e,"altKey")&&e.keyCode===40&&r.every(a=>!Ut(e,a))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let r=this._lastValueValid,o=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(o),o=this._dateAdapter.getValidDateOrNull(o);let a=!this._dateAdapter.sameDate(o,this.value);!o||a?this._cvaOnChange(o):(e&&!this.value&&this._cvaOnChange(o),r!==this._lastValueValid&&this._validatorOnChange()),a&&(this._assignValue(o),this.dateInput.emit(new ph(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new ph(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){let r=this._getDateFilter();return!r||r(e)}};t.\u0275fac=function(r){return new(r||t)(l(P),l(Tt,8),l(Gr,8))},t.\u0275dir=J({type:t,inputs:{value:"value",disabled:[z.HasDecoratorInputTransform,"disabled","disabled",xe]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},standalone:!0,features:[ct,he]});let n=t;return n})();function gN(n,t){let i=Object.keys(n);for(let e of i){let{previousValue:r,currentValue:o}=n[e];if(t.isDateInstance(r)&&t.isDateInstance(o)){if(!t.sameDate(r,o))return!0}else return!0}return!1}var Eq=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275dir=J({type:t,selectors:[["","matDatepickerToggleIcon",""]],standalone:!0});let n=t;return n})(),zT=(()=>{let t=class t{get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}constructor(e,r,o){this._intl=e,this._changeDetectorRef=r,this._stateChanges=pt.EMPTY;let a=Number(o);this.tabIndex=a||a===0?a:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:we(),r=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:we(),o=this.datepicker?St(this.datepicker.openedStream,this.datepicker.closedStream):we();this._stateChanges.unsubscribe(),this._stateChanges=St(this._intl.changes,e,r,o).subscribe(()=>this._changeDetectorRef.markForCheck())}};t.\u0275fac=function(r){return new(r||t)(l(ud),l(ce),Bi("tabindex"))},t.\u0275cmp=R({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(r,o,a){if(r&1&&Ht(a,Eq,5),r&2){let c;G(c=$())&&(o._customIcon=c.first)}},viewQuery:function(r,o){if(r&1&&Z(aq,5),r&2){let a;G(a=$())&&(o._button=a.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(r,o){r&1&&A("click",function(c){return o._open(c)}),r&2&&(De("tabindex",null)("data-mat-calendar",o.datepicker?o.datepicker.id:null),ie("mat-datepicker-toggle-active",o.datepicker&&o.datepicker.opened)("mat-accent",o.datepicker&&o.datepicker.color==="accent")("mat-warn",o.datepicker&&o.datepicker.color==="warn"))},inputs:{datepicker:[z.None,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[z.None,"aria-label","ariaLabel"],disabled:[z.HasDecoratorInputTransform,"disabled","disabled",xe],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],standalone:!0,features:[ct,he,se],ngContentSelectors:cq,decls:4,vars:6,consts:[["button",""],["mat-icon-button","","type","button",3,"disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(r,o){r&1&&(rt(sq),f(0,"button",1,0),H(2,lq,2,0,":svg:svg",2),Ne(3),v()),r&2&&(w("disabled",o.disabled)("disableRipple",o.disableRipple),De("aria-haspopup",o.datepicker?"dialog":null)("aria-label",o.ariaLabel||o._intl.openCalendarLabel)("tabindex",o.disabled?-1:o.tabIndex),b(2),Ue(2,o._customIcon?-1:2))},dependencies:[ET],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color)}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color)}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0});let n=t;return n})();function Tq(n){return BT(n,!0)}function lN(n){return n.nodeType===Node.ELEMENT_NODE}function Mq(n){return n.nodeName==="INPUT"}function Aq(n){return n.nodeName==="TEXTAREA"}function BT(n,t){if(lN(n)&&t){let e=(n.getAttribute?.("aria-labelledby")?.split(/\s+/g)||[]).reduce((r,o)=>{let a=document.getElementById(o);return a&&r.push(a),r},[]);if(e.length)return e.map(r=>BT(r,!1)).join(" ")}if(lN(n)){let i=n.getAttribute("aria-label")?.trim();if(i)return i}if(Mq(n)||Aq(n)){if(n.labels?.length)return Array.from(n.labels).map(r=>BT(r,!1)).join(" ");let i=n.getAttribute("placeholder")?.trim();if(i)return i;let e=n.getAttribute("title")?.trim();if(e)return e}return(n.textContent||"").replace(/\s+/g," ").trim()}var By=new re("MAT_DATE_RANGE_INPUT_PARENT"),fN=(()=>{let t=class t extends Sq{get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,r,o,a,c,m,x,I){super(r,x,I),this._rangeInput=e,this._elementRef=r,this._defaultErrorStateMatcher=o,this._injector=a,this._parentForm=c,this._parentFormGroup=m,this._dir=F(Yt,{optional:!0}),this._errorStateTracker=new oc(this._defaultErrorStateMatcher,null,this._parentFormGroup,this._parentForm,this.stateChanges)}ngOnInit(){let e=this._injector.get(An,null,{optional:!0,self:!0});e&&(this.ngControl=e,this._errorStateTracker.ngControl=e)}ngDoCheck(){this.ngControl&&this.updateErrorState()}isEmpty(){return this._elementRef.nativeElement.value.length===0}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}getMirrorValue(){let e=this._elementRef.nativeElement,r=e.value;return r.length>0?r:e.placeholder}updateErrorState(){this._errorStateTracker.updateErrorState()}_onInput(e){super._onInput(e),this._rangeInput._handleChildValueChange()}_openPopup(){this._rangeInput._openDatepicker()}_getMinDate(){return this._rangeInput.min}_getMaxDate(){return this._rangeInput.max}_getDateFilter(){return this._rangeInput.dateFilter}_parentDisabled(){return this._rangeInput._groupDisabled}_shouldHandleChangeEvent({source:e}){return e!==this._rangeInput._startInput&&e!==this._rangeInput._endInput}_assignValueProgrammatically(e){super._assignValueProgrammatically(e),(this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput)?._validatorOnChange()}_getAccessibleName(){return Tq(this._elementRef.nativeElement)}};t.\u0275fac=function(r){return new(r||t)(l(By),l(P),l(sc),l(Pe),l(Eo,8),l(Ai,8),l(Tt,8),l(Gr,8))},t.\u0275dir=J({type:t,inputs:{errorStateMatcher:"errorStateMatcher"},standalone:!0,features:[L]});let n=t;return n})(),HT=(()=>{let t=class t extends fN{constructor(e,r,o,a,c,m,x,I){super(e,r,o,a,c,m,x,I),this._startValidator=O=>{let B=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(O.value)),ae=this._model?this._model.selection.end:null;return!B||!ae||this._dateAdapter.compareDate(B,ae)<=0?null:{matStartDateInvalid:{end:ae,actual:B}}},this._validator=Jt.compose([...super._getValidators(),this._startValidator])}_getValueFromModel(e){return e.start}_shouldHandleChangeEvent(e){return super._shouldHandleChangeEvent(e)?e.oldValue?.start?!e.selection.start||!!this._dateAdapter.compareDate(e.oldValue.start,e.selection.start):!!e.selection.start:!1}_assignValueToModel(e){if(this._model){let r=new ji(e,this._model.selection.end);this._model.updateSelection(r,this)}}_formatValue(e){super._formatValue(e),this._rangeInput._handleChildValueChange()}_onKeydown(e){let r=this._rangeInput._endInput,o=this._elementRef.nativeElement,a=this._dir?.value!=="rtl";(e.keyCode===39&&a||e.keyCode===37&&!a)&&o.selectionStart===o.value.length&&o.selectionEnd===o.value.length?(e.preventDefault(),r._elementRef.nativeElement.setSelectionRange(0,0),r.focus()):super._onKeydown(e)}};t.\u0275fac=function(r){return new(r||t)(l(By),l(P),l(sc),l(Pe),l(Eo,8),l(Ai,8),l(Tt,8),l(Gr,8))},t.\u0275dir=J({type:t,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(r,o){r&1&&A("input",function(c){return o._onInput(c.target.value)})("change",function(){return o._onChange()})("keydown",function(c){return o._onKeydown(c)})("blur",function(){return o._onBlur()}),r&2&&(zi("disabled",o.disabled),De("aria-haspopup",o._rangeInput.rangePicker?"dialog":null)("aria-owns",(o._rangeInput.rangePicker==null?null:o._rangeInput.rangePicker.opened)&&o._rangeInput.rangePicker.id||null)("min",o._getMinDate()?o._dateAdapter.toIso8601(o._getMinDate()):null)("max",o._getMaxDate()?o._dateAdapter.toIso8601(o._getMaxDate()):null))},outputs:{dateChange:"dateChange",dateInput:"dateInput"},standalone:!0,features:[Ae([{provide:qr,useExisting:t,multi:!0},{provide:Qn,useExisting:t,multi:!0}]),L]});let n=t;return n})(),UT=(()=>{let t=class t extends fN{constructor(e,r,o,a,c,m,x,I){super(e,r,o,a,c,m,x,I),this._endValidator=O=>{let B=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(O.value)),ae=this._model?this._model.selection.start:null;return!B||!ae||this._dateAdapter.compareDate(B,ae)>=0?null:{matEndDateInvalid:{start:ae,actual:B}}},this._validator=Jt.compose([...super._getValidators(),this._endValidator])}_getValueFromModel(e){return e.end}_shouldHandleChangeEvent(e){return super._shouldHandleChangeEvent(e)?e.oldValue?.end?!e.selection.end||!!this._dateAdapter.compareDate(e.oldValue.end,e.selection.end):!!e.selection.end:!1}_assignValueToModel(e){if(this._model){let r=new ji(this._model.selection.start,e);this._model.updateSelection(r,this)}}_moveCaretToEndOfStartInput(){let e=this._rangeInput._startInput._elementRef.nativeElement,r=e.value;r.length>0&&e.setSelectionRange(r.length,r.length),e.focus()}_onKeydown(e){let r=this._elementRef.nativeElement,o=this._dir?.value!=="rtl";e.keyCode===8&&!r.value?this._moveCaretToEndOfStartInput():(e.keyCode===37&&o||e.keyCode===39&&!o)&&r.selectionStart===0&&r.selectionEnd===0?(e.preventDefault(),this._moveCaretToEndOfStartInput()):super._onKeydown(e)}};t.\u0275fac=function(r){return new(r||t)(l(By),l(P),l(sc),l(Pe),l(Eo,8),l(Ai,8),l(Tt,8),l(Gr,8))},t.\u0275dir=J({type:t,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(r,o){r&1&&A("input",function(c){return o._onInput(c.target.value)})("change",function(){return o._onChange()})("keydown",function(c){return o._onKeydown(c)})("blur",function(){return o._onBlur()}),r&2&&(zi("disabled",o.disabled),De("aria-haspopup",o._rangeInput.rangePicker?"dialog":null)("aria-owns",(o._rangeInput.rangePicker==null?null:o._rangeInput.rangePicker.opened)&&o._rangeInput.rangePicker.id||null)("min",o._getMinDate()?o._dateAdapter.toIso8601(o._getMinDate()):null)("max",o._getMaxDate()?o._dateAdapter.toIso8601(o._getMaxDate()):null))},outputs:{dateChange:"dateChange",dateInput:"dateInput"},standalone:!0,features:[Ae([{provide:qr,useExisting:t,multi:!0},{provide:Qn,useExisting:t,multi:!0}]),L]});let n=t;return n})(),Rq=0,bN=(()=>{let t=class t{get value(){return this._model?this._model.selection:null}get shouldLabelFloat(){return this.focused||!this.empty}get placeholder(){let e=this._startInput?._getPlaceholder()||"",r=this._endInput?._getPlaceholder()||"";return e||r?`${e} ${this.separator} ${r}`:""}get rangePicker(){return this._rangePicker}set rangePicker(e){e&&(this._model=e.registerInput(this),this._rangePicker=e,this._closedSubscription.unsubscribe(),this._closedSubscription=e.closedStream.subscribe(()=>{this._startInput?._onTouched(),this._endInput?._onTouched()}),this._registerModel(this._model))}get required(){return this._required??(this._isTargetRequired(this)||this._isTargetRequired(this._startInput)||this._isTargetRequired(this._endInput))??!1}set required(e){this._required=e}get dateFilter(){return this._dateFilter}set dateFilter(e){let r=this._startInput,o=this._endInput,a=r&&r._matchesFilter(r.value),c=o&&o._matchesFilter(r.value);this._dateFilter=e,r&&r._matchesFilter(r.value)!==a&&r._validatorOnChange(),o&&o._matchesFilter(o.value)!==c&&o._validatorOnChange()}get min(){return this._min}set min(e){let r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(r,this._min)||(this._min=r,this._revalidate())}get max(){return this._max}set max(e){let r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(r,this._max)||(this._max=r,this._revalidate())}get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(e){e!==this._groupDisabled&&(this._groupDisabled=e,this.stateChanges.next(void 0))}get errorState(){return this._startInput&&this._endInput?this._startInput.errorState||this._endInput.errorState:!1}get empty(){let e=this._startInput?this._startInput.isEmpty():!1,r=this._endInput?this._endInput.isEmpty():!1;return e&&r}constructor(e,r,o,a,c){this._changeDetectorRef=e,this._elementRef=r,this._dateAdapter=a,this._formField=c,this._closedSubscription=pt.EMPTY,this.id=`mat-date-range-input-${Rq++}`,this.focused=!1,this.controlType="mat-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="\u2013",this.comparisonStart=null,this.comparisonEnd=null,this.stateChanges=new ue,this.disableAutomaticLabeling=!0,c?._elementRef.nativeElement.classList.contains("mat-mdc-form-field")&&r.nativeElement.classList.add("mat-mdc-input-element","mat-mdc-form-field-input-control","mdc-text-field__input"),this.ngControl=o}setDescribedByIds(e){this._ariaDescribedBy=e.length?e.join(" "):null}onContainerClick(){!this.focused&&!this.disabled&&(!this._model||!this._model.selection.start?this._startInput.focus():this._endInput.focus())}ngAfterContentInit(){this._model&&this._registerModel(this._model),St(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this.stateChanges.next(void 0)})}ngOnChanges(e){gN(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._closedSubscription.unsubscribe(),this.stateChanges.complete()}getStartValue(){return this.value?this.value.start:null}getThemePalette(){return this._formField?this._formField.color:void 0}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():null}_getInputMirrorValue(e){let r=e==="start"?this._startInput:this._endInput;return r?r.getMirrorValue():""}_shouldHidePlaceholders(){return this._startInput?!this._startInput.isEmpty():!1}_handleChildValueChange(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()}_openDatepicker(){this._rangePicker&&this._rangePicker.open()}_shouldHideSeparator(){return(!this._formField||this._formField.getLabelId()&&!this._formField._shouldLabelFloat())&&this.empty}_getAriaLabelledby(){let e=this._formField;return e&&e._hasFloatingLabel()?e._labelId:null}_getStartDateAccessibleName(){return this._startInput._getAccessibleName()}_getEndDateAccessibleName(){return this._endInput._getAccessibleName()}_updateFocus(e){this.focused=e!==null,this.stateChanges.next()}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}_registerModel(e){this._startInput&&this._startInput._registerModel(e),this._endInput&&this._endInput._registerModel(e)}_isTargetRequired(e){return e?.ngControl?.control?.hasValidator(Jt.required)}};t.\u0275fac=function(r){return new(r||t)(l(ce),l(P),l(So,10),l(Tt,8),l(dd,8))},t.\u0275cmp=R({type:t,selectors:[["mat-date-range-input"]],contentQueries:function(r,o,a){if(r&1&&(Ht(a,HT,5),Ht(a,UT,5)),r&2){let c;G(c=$())&&(o._startInput=c.first),G(c=$())&&(o._endInput=c.first)}},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(r,o){r&2&&(De("id",o.id)("aria-labelledby",o._getAriaLabelledby())("aria-describedby",o._ariaDescribedBy)("data-mat-calendar",o.rangePicker?o.rangePicker.id:null),ie("mat-date-range-input-hide-placeholders",o._shouldHidePlaceholders())("mat-date-range-input-required",o.required))},inputs:{rangePicker:"rangePicker",required:[z.HasDecoratorInputTransform,"required","required",xe],dateFilter:"dateFilter",min:"min",max:"max",disabled:[z.HasDecoratorInputTransform,"disabled","disabled",xe],separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},exportAs:["matDateRangeInput"],standalone:!0,features:[Ae([{provide:ld,useExisting:t},{provide:By,useExisting:t}]),ct,he,se],ngContentSelectors:uq,decls:11,vars:5,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-wrapper","mat-date-range-input-end-wrapper"]],template:function(r,o){r&1&&(rt(dq),f(0,"div",0),A("cdkFocusChange",function(c){return o._updateFocus(c)}),f(1,"div",1),Ne(2),f(3,"span",2),T(4),v()(),f(5,"span",3),T(6),v(),f(7,"div",4),Ne(8,1),f(9,"span",2),T(10),v()()()),r&2&&(b(4),Ee(o._getInputMirrorValue("start")),b(),ie("mat-date-range-input-separator-hidden",o._shouldHideSeparator()),b(),Ee(o.separator),b(4),Ee(o._getInputMirrorValue("end")))},dependencies:[Om],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px;color:var(--mat-datepicker-range-input-separator-color)}.mat-form-field-disabled .mat-date-range-input-separator{color:var(--mat-datepicker-range-input-disabled-state-separator-color)}._mat-animation-noopable .mat-date-range-input-separator{transition:none}.mat-date-range-input-separator-hidden{-webkit-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-end-wrapper{flex-grow:1}.mat-date-range-input-inner{position:absolute;top:0;left:0;font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%;height:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner[disabled]{color:var(--mat-datepicker-range-input-disabled-state-text-color)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-date-range-input-inner::placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-moz-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner:-ms-input-placeholder{transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-mdc-form-field-type-mat-date-range-input .mat-mdc-form-field-infix{width:200px}"],encapsulation:2,changeDetection:0});let n=t;return n})(),vN=(()=>{let t=class t extends cN{_forwardContentValues(e){super._forwardContentValues(e);let r=this.datepickerInput;r&&(e.comparisonStart=r.comparisonStart,e.comparisonEnd=r.comparisonEnd,e.startDateAccessibleName=r._getStartDateAccessibleName(),e.endDateAccessibleName=r._getEndDateAccessibleName())}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ge(t)))(o||t)}})(),t.\u0275cmp=R({type:t,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],standalone:!0,features:[Ae([vq,wq,{provide:cN,useExisting:t}]),L,se],decls:0,vars:0,template:function(r,o){},encapsulation:2,changeDetection:0});let n=t;return n})();var _N=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=X({type:t}),t.\u0275inj=K({providers:[ud,Dq],imports:[le,xn,Ba,nc,ta,Xe,pN,zT,hN,tc]});let n=t;return n})();var IN=rn(Mn());var Oq=rn(zy(),1),yN=rn(zy(),1),hd=yN.default||Oq,GT=new re("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:Pq});function Pq(){return{useUtc:!1}}function Nq(n,t){let i=Array(n);for(let e=0;e<n;e++)i[e]=t(e);return i}var Vq=(()=>{let t=class t extends Tt{constructor(e,r){super(),this._options=r,this.setLocale(e||hd.locale())}setLocale(e){super.setLocale(e);let r=hd.localeData(e);this._localeData={firstDayOfWeek:r.firstDayOfWeek(),longMonths:r.months(),shortMonths:r.monthsShort(),dates:Nq(31,o=>this.createDate(2017,0,o+1).format("D")),longDaysOfWeek:r.weekdays(),shortDaysOfWeek:r.weekdaysShort(),narrowDaysOfWeek:r.weekdaysMin()}}getYear(e){return this.clone(e).year()}getMonth(e){return this.clone(e).month()}getDate(e){return this.clone(e).date()}getDayOfWeek(e){return this.clone(e).day()}getMonthNames(e){return e=="long"?this._localeData.longMonths:this._localeData.shortMonths}getDateNames(){return this._localeData.dates}getDayOfWeekNames(e){return e=="long"?this._localeData.longDaysOfWeek:e=="short"?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek}getYearName(e){return this.clone(e).format("YYYY")}getFirstDayOfWeek(){return this._localeData.firstDayOfWeek}getNumDaysInMonth(e){return this.clone(e).daysInMonth()}clone(e){return e.clone().locale(this.locale)}createDate(e,r,o){let a=this._createMoment({year:e,month:r,date:o}).locale(this.locale);return a.isValid(),a}today(){return this._createMoment().locale(this.locale)}parse(e,r){return e&&typeof e=="string"?this._createMoment(e,r,this.locale):e?this._createMoment(e).locale(this.locale):null}format(e,r){return e=this.clone(e),this.isValid(e),e.format(r)}addCalendarYears(e,r){return this.clone(e).add({years:r})}addCalendarMonths(e,r){return this.clone(e).add({months:r})}addCalendarDays(e,r){return this.clone(e).add({days:r})}toIso8601(e){return this.clone(e).format()}deserialize(e){let r;if(e instanceof Date)r=this._createMoment(e).locale(this.locale);else if(this.isDateInstance(e))return this.clone(e);if(typeof e=="string"){if(!e)return null;r=this._createMoment(e,hd.ISO_8601).locale(this.locale)}return r&&this.isValid(r)?this._createMoment(r).locale(this.locale):super.deserialize(e)}isDateInstance(e){return hd.isMoment(e)}isValid(e){return this.clone(e).isValid()}invalid(){return hd.invalid()}_createMoment(e,r,o){let{strict:a,useUtc:c}=this._options||{};return c?hd.utc(e,r,o,a):hd(e,r,o,a)}};t.\u0275fac=function(r){return new(r||t)(k(ac,8),k(GT,8))},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),jq={parse:{dateInput:"l"},display:{dateInput:"l",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};function wN(n=jq,t){let i=[{provide:Tt,useClass:Vq,deps:[ac,GT]},{provide:Gr,useValue:n}];return t&&i.push({provide:GT,useValue:t}),i}var Qce=rn(CN());function Lq(n,t){n&1&&(f(0,"mat-error"),T(1,"Ung\xFCltiges Startdatum"),v())}function Bq(n,t){n&1&&(f(0,"mat-error"),T(1,"Ung\xFCltiges Enddatum"),v())}var kN=(()=>{let t=class t{constructor(){this.userRepService=F(mh),this.dialogRef=F(Ua),this.range=new lc({start:new Wt(null),end:new Wt(null)}),this._locale=zn(F(ac)),this._adapter=F(Tt),this._intl=F(ud),this.termless=!1,this.dateFormatString=Wx(()=>this._locale()==="de-DE"?"dd.mm.yyyy":"");let e=F(Wa);this.userRep=e.userRep,this.afterCreation=e.afterCreation}ngOnInit(){this._intl.closeCalendarLabel="Kalender schlie\xDFen",this._intl.changes.next(),this._locale.set("de"),this._adapter.setLocale(this._locale())}create(){let e=this.range.value.start,r=this.range.value.end;if((!e||!r)&&!this.termless){IN.default.fire({icon:"error",title:"Oops...",text:"Bitte geben Sie einen g\xFCltigen Datumsbereich ein oder w\xE4hlen Sie unbefristet!"});return}this.termless||(this.userRep.validFrom=e,this.userRep.validTo=r),this.userRepService.create(this.userRep).subscribe({next:o=>{this.afterCreation({successful:o}),this.dialogRef.close()},error:o=>{this.afterCreation({error:o})}})}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=R({type:t,selectors:[["app-rep-create-form"]],standalone:!0,features:[Ae([sR(),{provide:ac,useValue:"de-DE"},wN()]),se],decls:21,vars:8,consts:[["picker",""],[1,"dd-container"],[1,"dd-row","input-row"],[1,"w40p"],[3,"formGroup","rangePicker","disabled"],["matStartDate","","formControlName","start","placeholder","Start date"],["matEndDate","","formControlName","end","placeholder","End date"],["matIconSuffix","",3,"for"],[1,"w20p",3,"ngModelChange","ngModel"],["mat-fab","","extended","",1,"w20p",3,"click"]],template:function(r,o){if(r&1){let a=oe();f(0,"div",1)(1,"div",2)(2,"mat-form-field",3)(3,"mat-label"),T(4,"Geben Sie einen Datumsbereich ein"),v(),f(5,"mat-date-range-input",4),E(6,"input",5)(7,"input",6),v(),f(8,"mat-hint"),T(9),v(),E(10,"mat-datepicker-toggle",7)(11,"mat-date-range-picker",null,0),H(13,Lq,2,0,"mat-error")(14,Bq,2,0,"mat-error"),v(),f(15,"mat-slide-toggle",8),fn("ngModelChange",function(m){return V(a),Hi(o.termless,m)||(o.termless=m),j(m)}),T(16," Unbefristet "),v(),f(17,"button",9),A("click",function(){return V(a),j(o.create())}),f(18,"mat-icon"),T(19,"playlist_add"),v(),T(20," Erstellen "),v()()()}if(r&2){let a=Si(12);b(5),w("formGroup",o.range)("rangePicker",a)("disabled",o.termless),b(4),Ee(o.dateFormatString()),b(),w("for",a),b(3),Ue(13,o.range.controls.start.hasError("matStartDateInvalid")?13:-1),b(),Ue(14,o.range.controls.end.hasError("matEndDateInvalid")?14:-1),b(),gn("ngModel",o.termless)}},dependencies:[On,ba,ho,Iy,Rc,pP,_N,zT,bN,HT,UT,vN,Ft,li,wi,Qr,Ga,$i,Ai,To,xn,_a,po,mo,va,hh,uh],styles:[".dd-row[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{margin:1rem 0rem 0rem}.dd-row[_ngcontent-%COMP%]   mat-slide-toggle[_ngcontent-%COMP%]{margin:1rem 0rem;padding:0}"],changeDetection:0});let n=t;return n})();var zq=["users"],Hq=["groups"],Uq=["repUsers"],Wq=["repGroups"],Gq=["userReps"],DN=(()=>{let t=class t extends Yr{constructor(e){super(),this.userRepService=e,this.useRepLabel="",this.dialog=F($r),this.rep_row_class={classFunction(r,o){let a=new Date;return!r.validFrom&&!r.validTo?"current-period-row":new Date(r.validFrom)>a?"future-period-row":new Date(r.validTo)<a?"past-period-row":"current-period-row"}},this.initWithoutData=()=>{},this.userOnSelectedRows=r=>{r.length>0&&(this.useRepLabel=`Vertretungen von ${r[0].source?.username}`,this.userReps.fetchByUser(r[0].source?.id),this.slGroupId=void 0,this.slUserId=r[0].source?.id)},this.userOnClick=r=>{this.userOnSelectedRows(r.selectedRows)},this.groupOnSelectedRows=r=>{r.length>0&&(this.useRepLabel=`Vertretungen von ${r[0].source?.name}`,this.groups.safelyUnselectAll(),this.userReps.fetchByGroup(r[0].source?.id),this.slUserId=void 0,this.slGroupId=r[0].source?.id)},this.groupOnClick=r=>{this.groupOnSelectedRows(r.selectedRows)},this.repUserOnSelectedRows=r=>{if(r.length==0&&this.slRepUserId){if(!this.slUserId&&!this.slGroupId)Nc.default.fire({icon:"error",title:"Oops...",text:"Bitte w\xE4hlen Sie den Benutzer oder die Gruppe!"});else if(!this.slRepUserId)Nc.default.fire({icon:"error",title:"Oops...",text:"Bitte w\xE4hlen Sie die Vertretungen Benutzer!"});else{var o={userId:this.slUserId,groupId:this.slGroupId,repUserId:this.slRepUserId};this.openCreateSheet(o,a=>{a.successful?(this.slRepUserId=void 0,this.repUsers.safelyUnselectAll(),this.repGroups.safelyUnselectAll(),this.slUserId&&this.userReps.fetchByUser(this.slUserId),this.slGroupId&&this.userReps.fetchByGroup(this.slGroupId)):a.error&&Nc.default.fire({icon:"error",title:"Oops...",text:"Dieser Vorgang ist nicht m\xF6glich."})})}this.slRepUserId=void 0}else r.length>0&&(this.slRepUserId=r[0].source?.id)},this.repUserOnClick=r=>{this.repUserOnSelectedRows(r.selectedRows)},this.repGroupOnSelectedRows=r=>{if(r.length==0&&this.slRepGroupId){if(!this.slUserId&&!this.slGroupId)Nc.default.fire({icon:"error",title:"Oops...",text:"Bitte w\xE4hlen Sie den Benutzer oder die Gruppe!"});else if(!this.slRepGroupId)Nc.default.fire({icon:"error",title:"Oops...",text:"Bitte w\xE4hlen Sie die Vertretungen Gruppe!"});else{var o={userId:this.slUserId,groupId:this.slGroupId,repGroupId:this.slRepGroupId};this.openCreateSheet(o,a=>{a.successful?(this.slRepGroupId=void 0,this.repUsers.safelyUnselectAll(),this.groups.safelyUnselectAll(),this.slUserId&&this.userReps.fetchByUser(this.slUserId),this.slGroupId&&this.userReps.fetchByGroup(this.slGroupId)):a.error&&Nc.default.fire({icon:"error",title:"Oops...",text:"Dieser Vorgang ist nicht m\xF6glich."})})}this.slRepGroupId=void 0}else r.length>0&&(this.slRepGroupId=r[0].source?.id)},this.repGroupOnClick=r=>{this.repGroupOnSelectedRows(r.selectedRows)},this.repOnSelectedRows=r=>{r.length==0&&this.slRepId?this.userRepService.delete(this.slRepId).subscribe({next:o=>{this.slRepId=void 0,this.userReps.safelyUnselectAll(),this.slUserId!=null&&this.userReps.fetchData(this.slUserId),this.slGroupId!=null&&this.userReps.fetchData(void 0,this.slGroupId)},error:o=>{this.slRepId=void 0,this.repUsers.safelyUnselectAll(),Nc.default.fire({icon:"error",title:"Oops...",text:"Dieser Vorgang ist nicht m\xF6glich."})}}):r.length>0&&(this.slRepId=r[0].source?.id)},this.repOnClick=r=>{this.repOnSelectedRows(r.selectedRows)},this.groupRepCols=ot.columnNames.group.representative,this.groupColumns=ot.columnNames.group.right,this.userRepService=e}ngAfterViewInit(){this.buttonVisibilityService.setVisibleOnly(this.refreshService,this.transferService),this.refreshService.removeAll(),this.refreshService.add(()=>{this.users.fetchData(),this.groups.fetchData(),this.repUsers.fetchData(),this.repGroups.fetchData(),this.userReps.fetchData()}),this.transferService.add(()=>{this.repUsers.safelyUnselectAll(),this.repGroups.safelyUnselectAll(),this.userReps.safelyUnselectAll()})}openCreateSheet(e,r){this.dialog.open(kN,{width:"50rem",data:{userRep:e,afterCreation:r}})}};t.\u0275fac=function(r){return new(r||t)(l(mh))},t.\u0275cmp=R({type:t,selectors:[["app-user-representation"]],viewQuery:function(r,o){if(r&1&&(Z(zq,5),Z(Hq,5),Z(Uq,5),Z(Wq,5),Z(Gq,5)),r&2){let a;G(a=$())&&(o.users=a.first),G(a=$())&&(o.groups=a.first),G(a=$())&&(o.repUsers=a.first),G(a=$())&&(o.repGroups=a.first),G(a=$())&&(o.userReps=a.first)}},standalone:!0,features:[L,se],decls:23,vars:10,consts:[["users",""],["groups",""],["repUsers",""],["repGroups",""],["userReps",""],[1,"container-fluid","text-center"],[1,"row"],[1,"col-5"],["label","Benutzer"],[3,"click"],["label","Gruppe"],[3,"columns","click"],[1,"col-4"],["label","Rep. Benutzer"],["label","Rep. Gruppen"],[1,"col-3"],[3,"label"],[3,"initData","rowClass","click"]],template:function(r,o){r&1&&(f(0,"div",5)(1,"div",6)(2,"div",7)(3,"mat-tab-group")(4,"mat-tab",8),E(5,"app-user-table",9,0),v(),f(7,"mat-tab",10),E(8,"app-group-table",11,1),v()()(),f(10,"div",12)(11,"mat-tab-group")(12,"mat-tab",13),E(13,"app-user-table",9,2),v(),f(15,"mat-tab",14),E(16,"app-group-table",11,3),v()()(),f(18,"div",15)(19,"mat-tab-group")(20,"mat-tab",16),E(21,"app-user-rep-table",17,4),v()()()()()),r&2&&(b(5),w("click",o.userOnClick),b(3),w("columns",o.groupColumns)("click",o.groupOnClick),b(5),w("click",o.repUserOnClick),b(3),w("columns",o.groupRepCols)("click",o.repGroupOnClick),b(4),Hs("label",o.useRepLabel),b(),w("initData",o.initWithoutData)("rowClass",o.rep_row_class)("click",o.repOnClick))},dependencies:[Ji,Fn,or,fa,Ac,tN]});let n=t;return n})();var SN=[{path:"",component:gR},{path:"user-table",component:HP,canActivate:[gu]},{path:"group-table",component:XP,canActivate:[gu]},{path:"module-table",component:ZP,canActivate:[gu]},{path:"user-assignment",component:JP,canActivate:[gu]},{path:"user-representation",component:DN,canActivate:[gu]}];var $q="@",Yq=(()=>{let t=class t{constructor(e,r,o,a,c){this.doc=e,this.delegate=r,this.zone=o,this.animationType=a,this.moduleImpl=c,this._rendererFactoryPromise=null,this.scheduler=F(MM,{optional:!0})}ngOnDestroy(){this._engine?.flush()}loadImpl(){return(this.moduleImpl??import("./chunk-ZHV6BRN7.js")).catch(r=>{throw new Ct(5300,!1)}).then(({\u0275createEngine:r,\u0275AnimationRendererFactory:o})=>{this._engine=r(this.animationType,this.doc,this.scheduler);let a=new o(this.delegate,this._engine,this.zone);return this.delegate=a,a})}createRenderer(e,r){let o=this.delegate.createRenderer(e,r);if(o.\u0275type===0)return o;typeof o.throwOnSyntheticProps=="boolean"&&(o.throwOnSyntheticProps=!1);let a=new YT(o);return r?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(c=>{let m=c.createRenderer(e,r);a.use(m)}).catch(c=>{a.use(o)}),a}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}};t.\u0275fac=function(r){zs()},t.\u0275prov=N({token:t,factory:t.\u0275fac});let n=t;return n})(),YT=class{constructor(t){this.delegate=t,this.replay=[],this.\u0275type=1}use(t){if(this.delegate=t,this.replay!==null){for(let i of this.replay)i(t);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(t,i){return this.delegate.createElement(t,i)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}get destroyNode(){return this.delegate.destroyNode}appendChild(t,i){this.delegate.appendChild(t,i)}insertBefore(t,i,e,r){this.delegate.insertBefore(t,i,e,r)}removeChild(t,i,e){this.delegate.removeChild(t,i,e)}selectRootElement(t,i){return this.delegate.selectRootElement(t,i)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,i,e,r){this.delegate.setAttribute(t,i,e,r)}removeAttribute(t,i,e){this.delegate.removeAttribute(t,i,e)}addClass(t,i){this.delegate.addClass(t,i)}removeClass(t,i){this.delegate.removeClass(t,i)}setStyle(t,i,e,r){this.delegate.setStyle(t,i,e,r)}removeStyle(t,i,e){this.delegate.removeStyle(t,i,e)}setProperty(t,i,e){this.shouldReplay(i)&&this.replay.push(r=>r.setProperty(t,i,e)),this.delegate.setProperty(t,i,e)}setValue(t,i){this.delegate.setValue(t,i)}listen(t,i,e){return this.shouldReplay(i)&&this.replay.push(r=>r.listen(t,i,e)),this.delegate.listen(t,i,e)}shouldReplay(t){return this.replay!==null&&t.startsWith($q)}};function EN(n="animations"){return Nf("NgAsyncAnimations"),Ls([{provide:zd,useFactory:(t,i,e)=>new Yq(t,i,e,n),deps:[ye,Xf,be]},{provide:Et,useValue:n==="noop"?"NoopAnimations":"BrowserAnimations"}])}var qT=new re("API_URL");var TN={providers:[f2(SN),EA(),EN(),fA(bA()),{provide:WM,useFactory:n=>n.getBaseHref(),deps:[di]},{provide:qT,useFactory:n=>n.getApiUrl(),deps:[di]},{provide:qT,useFactory:n=>n.getApiUrl(),deps:[di]}]};var QT=n=>({active:n,"dropdown-item d-flex align-items-center":!0}),MN=(()=>{let t=class t{constructor(e){this.cModeService=e,this.Themes=dn,this.theme=ah()}ngOnInit(){this.cModeService.updateTheme()}onClick(e){this.theme=e;let r=e;this.cModeService.setTheme(r)}};t.\u0275fac=function(r){return new(r||t)(l(Zi))},t.\u0275cmp=R({type:t,selectors:[["app-color-mode-bttn"]],standalone:!0,features:[se],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&&(It(),f(0,"svg",0)(1,"symbol",1),E(2,"path",2),v(),f(3,"symbol",3),E(4,"path",4),v(),f(5,"symbol",5),E(6,"path",6)(7,"path",7),v(),f(8,"symbol",8),E(9,"path",9),v()(),dr(),f(10,"div",10)(11,"button",11),It(),f(12,"svg",12),E(13,"use",13)(14,"use",14)(15,"use",15),v(),dr(),f(16,"span",16),T(17,"Toggle theme"),v()(),f(18,"ul",17)(19,"li")(20,"button",18),A("click",function(){return o.onClick(o.Themes.Light)}),It(),f(21,"svg",19),E(22,"use",14),v(),T(23," Light "),f(24,"svg",20),E(25,"use",21),v()()(),dr(),f(26,"li")(27,"button",22),A("click",function(){return o.onClick(o.Themes.Dark)}),It(),f(28,"svg",19),E(29,"use",15),v(),T(30," Dark "),f(31,"svg",20),E(32,"use",21),v()()(),dr(),f(33,"li")(34,"button",23),A("click",function(){return o.onClick(o.Themes.Auto)}),It(),f(35,"svg",19),E(36,"use",13),v(),T(37," Auto "),f(38,"svg",20),E(39,"use",21),v()()()()()),r&2&&(b(13),ie("hide",o.theme!==o.Themes.Auto),b(),ie("hide",o.theme!==o.Themes.Light),b(),ie("hide",o.theme!==o.Themes.Dark),b(5),w("ngClass",Ti(9,QT,o.theme==o.Themes.Light)),b(7),w("ngClass",Ti(11,QT,o.theme==o.Themes.Dark)),b(7),w("ngClass",Ti(13,QT,o.theme==o.Themes.Auto)))},dependencies:[le,$t],styles:[".bi[_ngcontent-%COMP%]{vertical-align:-.125em;fill:currentColor}.hide[_ngcontent-%COMP%]{display:none}"]});let n=t;return n})();var qq=0,AN="mat-badge-content",Hy=new Set,Qq=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=R({type:t,selectors:[["ng-component"]],standalone:!0,features:[se],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=t;return n})(),RN=(()=>{let t=class t{get color(){return this._color}set color(e){this._setColor(e),this._color=e}get content(){return this._content}set content(e){this._updateRenderedContent(e)}get description(){return this._description}set description(e){this._updateDescription(e)}constructor(e,r,o,a,c){this._ngZone=e,this._elementRef=r,this._ariaDescriber=o,this._renderer=a,this._animationMode=c,this._color="primary",this.overlap=!0,this.position="above after",this.size="medium",this._id=qq++,this._isInitialized=!1,this._interactivityChecker=F(za),this._document=F(ye);let m=F(Ui);if(!Hy.has(m)){Hy.add(m);let x=LM(Qq,{environmentInjector:F(Go)});m.onDestroy(()=>{Hy.delete(m),Hy.size===0&&x.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 e=this._renderer.createElement("span"),r="mat-badge-active";return e.setAttribute("id",`mat-badge-content-${this._id}`),e.setAttribute("aria-hidden","true"),e.classList.add(AN),this._animationMode==="NoopAnimations"&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),typeof requestAnimationFrame=="function"&&this._animationMode!=="NoopAnimations"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(r)})}):e.classList.add(r),e}_updateRenderedContent(e){let r=`${e??""}`.trim();this._isInitialized&&r&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=r),this._content=r}_updateDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!e||this._isHostInteractive())&&this._removeInlineDescription(),this._description=e,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,e):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(e){let r=this._elementRef.nativeElement.classList;r.remove(`mat-badge-${this._color}`),e&&r.add(`mat-badge-${e}`)}_clearExistingBadges(){let e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${AN}`);for(let r of Array.from(e))r!==this._badgeElement&&r.remove()}};t.\u0275fac=function(r){return new(r||t)(l(be),l(P),l(Nb),l(zt),l(Et,8))},t.\u0275dir=J({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(r,o){r&2&&ie("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:[z.None,"matBadgeColor","color"],overlap:[z.HasDecoratorInputTransform,"matBadgeOverlap","overlap",xe],disabled:[z.HasDecoratorInputTransform,"matBadgeDisabled","disabled",xe],position:[z.None,"matBadgePosition","position"],content:[z.None,"matBadge","content"],description:[z.None,"matBadgeDescription","description"],size:[z.None,"matBadgeSize","size"],hidden:[z.HasDecoratorInputTransform,"matBadgeHidden","hidden",xe]},standalone:!0,features:[ct]});let n=t;return n})(),FN=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=X({type:t}),t.\u0275inj=K({imports:[nc,Xe,Xe]});let n=t;return n})();var Xq=["tooltip"],NN=20;var VN=new re("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let n=F(Nt);return()=>n.scrollStrategies.reposition({scrollThrottle:NN})}});function Zq(n){return()=>n.scrollStrategies.reposition({scrollThrottle:NN})}var Jq={provide:VN,deps:[Nt],useFactory:Zq};function eQ(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var tQ=new re("mat-tooltip-default-options",{providedIn:"root",factory:eQ});var ON="tooltip-panel",PN=vn({passive:!0}),iQ=8,nQ=8,rQ=24,oQ=200,Uy=(()=>{let t=class t{get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=gr(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=gr(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=wo(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=wo(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=e!=null?String(e).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(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(e,r,o,a,c,m,x,I,O,B,ae,ee){this._overlay=e,this._elementRef=r,this._scrollDispatcher=o,this._viewContainerRef=a,this._ngZone=c,this._platform=m,this._ariaDescriber=x,this._focusMonitor=I,this._dir=B,this._defaultOptions=ae,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=aQ,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new ue,this._scrollStrategy=O,this._document=ee,ae&&(this._showDelay=ae.showDelay,this._hideDelay=ae.hideDelay,ae.position&&(this.position=ae.position),ae.positionAtOrigin&&(this.positionAtOrigin=ae.positionAtOrigin),ae.touchGestures&&(this.touchGestures=ae.touchGestures)),B.change.pipe(_e(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=iQ}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(_e(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([r,o])=>{e.removeEventListener(r,o,PN)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=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 Io(this._tooltipComponent,this._viewContainerRef);let a=this._tooltipInstance=o.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe(_e(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.show(e)}hide(e=this.hideDelay){let r=this._tooltipInstance;r&&(r.isVisible()?r.hide(e):(r._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&a._origin instanceof P)return this._overlayRef;this._detach()}let r=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(r);return o.positionChanges.pipe(_e(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${ON}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(_e(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(_e(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(_e(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===27&&!Ut(a)&&(a.preventDefault(),a.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(e){let r=e.getConfig().positionStrategy,o=this._getOrigin(),a=this._getOverlayPosition();r.withPositions([this._addOffset(ne(ne({},o.main),a.main)),this._addOffset(ne(ne({},o.fallback),a.fallback))])}_addOffset(e){let r=nQ,o=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-r:e.originY==="bottom"?e.offsetY=r:e.originX==="start"?e.offsetX=o?-r:r:e.originX==="end"&&(e.offsetX=o?r:-r),e}_getOrigin(){let e=!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"&&e||r=="right"&&!e?o={originX:"start",originY:"center"}:(r=="after"||r=="right"&&e||r=="left"&&!e)&&(o={originX:"end",originY:"center"});let{x:a,y:c}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:a,originY:c}}}_getOverlayPosition(){let e=!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"&&e||r=="right"&&!e?o={overlayX:"end",overlayY:"center"}:(r=="after"||r=="right"&&e||r=="left"&&!e)&&(o={overlayX:"start",overlayY:"center"});let{x:a,y:c}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:a,overlayY:c}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(gt(1),_e(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,r){return this.position==="above"||this.position==="below"?r==="top"?r="bottom":r==="bottom"&&(r="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:r}}_updateCurrentPositionClass(e){let{overlayY:r,originX:o,originY:a}=e,c;if(r==="center"?this._dir&&this._dir.value==="rtl"?c=o==="end"?"left":"right":c=o==="start"?"left":"right":c=r==="bottom"&&a==="top"?"above":"below",c!==this._currentPosition){let m=this._overlayRef;if(m){let x=`${this._cssClassPrefix}-${ON}-`;m.removePanelClass(x+this._currentPosition),m.addPanelClass(x+c)}this._currentPosition=c}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let r;e.x!==void 0&&e.y!==void 0&&(r=e),this.show(void 0,r)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let r=e.targetTouches?.[0],o=r?{x:r.clientX,y:r.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout);let a=500;this._touchstartTimeout=setTimeout(()=>this.show(void 0,o),this._defaultOptions.touchLongPressShowDelay??a)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.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)};e.push(["touchend",r],["touchcancel",r])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([r,o])=>{this._elementRef.nativeElement.addEventListener(r,o,PN)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let r=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;r!==o&&!o.contains(r)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let r=this._elementRef.nativeElement,o=r.style;(e==="on"||r.nodeName!=="INPUT"&&r.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(e==="on"||!r.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}};t.\u0275fac=function(r){return new(r||t)(l(Nt),l(P),l(nu),l(ri),l(be),l(Qe),l(Nb),l(fr),l(VN),l(Yt),l(tQ,8),l(ye))},t.\u0275dir=J({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(r,o){r&2&&ie("mat-mdc-tooltip-disabled",o.disabled)},inputs:{position:[z.None,"matTooltipPosition","position"],positionAtOrigin:[z.None,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[z.None,"matTooltipDisabled","disabled"],showDelay:[z.None,"matTooltipShowDelay","showDelay"],hideDelay:[z.None,"matTooltipHideDelay","hideDelay"],touchGestures:[z.None,"matTooltipTouchGestures","touchGestures"],message:[z.None,"matTooltip","message"],tooltipClass:[z.None,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0});let n=t;return n})(),aQ=(()=>{let t=class t{constructor(e,r,o){this._changeDetectorRef=e,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(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}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:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>rQ&&e.width>=oQ}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let r=this._tooltip.nativeElement,o=this._showAnimation,a=this._hideAnimation;if(r.classList.remove(e?a:o),r.classList.add(e?o:a),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let c=getComputedStyle(r);(c.getPropertyValue("animation-duration")==="0s"||c.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(r.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}};t.\u0275fac=function(r){return new(r||t)(l(ce),l(P),l(Et,8))},t.\u0275cmp=R({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(r,o){if(r&1&&Z(Xq,7),r&2){let a;G(a=$())&&(o._tooltip=a.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(r,o){r&1&&A("mouseleave",function(c){return o._handleMouseLeave(c)}),r&2&&ft("zoom",o.isVisible()?1:null)},standalone:!0,features:[se],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 a=oe();f(0,"div",1,0),A("animationend",function(m){return V(a),j(o._handleAnimationEnd(m))}),f(2,"div",2),T(3),v()()}r&2&&(ie("mdc-tooltip--multiline",o._isMultiline),w("ngClass",o.tooltipClass),b(3),Ee(o.message))},dependencies:[$t],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=t;return n})();var jN=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=X({type:t}),t.\u0275inj=K({providers:[Jq],imports:[nc,le,Ba,Xe,Xe,tc]});let n=t;return n})();var cQ=()=>["/"],lQ=n=>({show:n}),Eg=()=>["link-active"],Tg=()=>({exact:!0}),dQ=()=>["/user-assignment"],uQ=()=>["/user-table"],hQ=()=>["/group-table"],mQ=()=>["/user-representation"],pQ=()=>["/module-table"],md=n=>({visibility:n});function gQ(n,t){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=S();w("ngClass",Ti(21,lQ,i.isExpanded)),b(2),w("routerLinkActive",Ei(23,Eg))("routerLinkActiveOptions",Ei(24,Tg)),b(),w("routerLink",Ei(25,dQ))("routerLinkActive","active"),b(2),w("routerLinkActive",Ei(26,Eg))("routerLinkActiveOptions",Ei(27,Tg)),b(),w("routerLink",Ei(28,uQ))("routerLinkActive","active"),b(2),w("routerLinkActive",Ei(29,Eg))("routerLinkActiveOptions",Ei(30,Tg)),b(),w("routerLink",Ei(31,hQ))("routerLinkActive","active"),b(2),w("routerLinkActive",Ei(32,Eg))("routerLinkActiveOptions",Ei(33,Tg)),b(),w("routerLink",Ei(34,mQ))("routerLinkActive","active"),b(2),w("routerLinkActive",Ei(35,Eg))("routerLinkActiveOptions",Ei(36,Tg)),b(),w("routerLink",Ei(37,pQ))("routerLinkActive","active")}}function fQ(n,t){if(n&1){let i=oe();f(0,"button",22),A("click",function(){V(i);let r=S();return j(r.creationService.openDialog())}),f(1,"mat-icon",23),T(2,"add_to_photos"),v()()}if(n&2){let i=S();w("ngStyle",Ti(2,md,i.creationService.isVisible?"visible":"hidden"))("matTooltipDisabled",!i.creationService.isVisible)}}function bQ(n,t){if(n&1){let i=oe();f(0,"button",24),A("click",function(){V(i);let r=S();return j(r.updateService.toggleEditability())}),f(1,"mat-icon",23),T(2),v()()}if(n&2){let i=S();w("ngStyle",Ti(3,md,i.updateService.isVisible?"visible":"hidden"))("matTooltipDisabled",!i.updateService.isVisible),b(2),Ee(i.updateService.isEditable?"lock_open":"lock")}}function vQ(n,t){if(n&1){let i=oe();f(0,"button",25),A("click",function(){V(i);let r=S();return j(r.saveAsync())}),f(1,"mat-icon",26),T(2,"save"),v()()}if(n&2){let i=S();w("ngStyle",Ti(3,md,i.updateService.isVisible?"visible":"hidden"))("matTooltipDisabled",!i.updateService.isVisible),b(),w("matBadge",i.updateActCount===0?"":i.updateActCount)}}function _Q(n,t){if(n&1){let i=oe();f(0,"button",27),A("click",function(){V(i);let r=S();return j(r.deletionService.executeAll())}),f(1,"mat-icon",23),T(2,"delete_forever"),v()()}if(n&2){let i=S();w("ngStyle",Ti(2,md,i.updateService.isVisible?"visible":"hidden"))("matTooltipDisabled",!i.deletionService.isVisible)}}function yQ(n,t){if(n&1){let i=oe();f(0,"button",28),A("click",function(){V(i);let r=S();return j(r.transferService.executeAll())}),f(1,"mat-icon",29),T(2,"swap_horiz"),v()()}if(n&2){let i=S();w("ngStyle",Ti(2,md,i.transferService.isVisible?"visible":"hidden"))("matTooltipDisabled",!i.transferService.isVisible)}}function wQ(n,t){if(n&1){let i=oe();f(0,"button",30),A("click",function(){V(i);let r=S();return j(r.refreshService.executeAll())}),f(1,"mat-icon",31),T(2,"sync"),v()()}if(n&2){let i=S();w("ngStyle",Ti(2,md,i.refreshService.isVisible?"visible":"hidden"))("matTooltipDisabled",!i.refreshService.isVisible)}}function xQ(n,t){if(n&1){let i=oe();f(0,"button",32),A("click",function(){V(i);let r=S();return j(r.showInfo())}),f(1,"mat-icon",23),T(2,"contact_support"),v()()}if(n&2){let i=S();w("ngStyle",Ti(1,md,i.buttonVisibilityService.anyVisible?"visible":"hidden"))}}var LN=(()=>{let t=class t{isLogedIn(){return $R()}constructor(e,r,o,a,c,m,x,I){this.dialog=e,this.authService=r,this.refreshService=o,this.creationService=a,this.updateService=c,this.transferService=m,this.buttonVisibilityService=x,this.deletionService=I,this.isExpanded=!1,this.isChecked=!0,this.__tooltip_timeout_set=!1,this.authService.isAuthenticated().then().catch(),this.updateActCount=this.updateService.totalCount,this.updateService.addChangeListener(yb.CountChange,()=>{this.updateActCount=c.totalCount})}get isDarkTheme(){return typeof window<"u"?localStorage.getItem("theme")==="dark":!0}collapse(){this.isExpanded=!1}toggle(){this.isExpanded=!this.isExpanded}auth(){return yt(this,null,function*(){if(yield this.authService.isAuthenticated())this.authService.logout().subscribe();else{let r=this.dialog.open(ev,{width:"35vw",data:{afterLogin:()=>{r.close()}}})}})}showInfo(){this.tooltips?.forEach(e=>{e.show()}),this.__tooltip_timeout_set||(this.__tooltip_timeout_set=!0,setTimeout(()=>{this.__tooltip_timeout_set=!1,this.tooltips?.forEach(e=>{e.hide()})},3e3))}saveAsync(){return yt(this,null,function*(){yield this.updateService.executeAllAsync().then(()=>this.refreshService.executeAll())})}};t.\u0275fac=function(r){return new(r||t)(l($r),l(pu),l(bn),l(Hb),l(Zs),l(lu),l(Zd),l(du))},t.\u0275cmp=R({type:t,selectors:[["app-nav-menu"]],viewQuery:function(r,o){if(r&1&&Z(Uy,5),r&2){let a;G(a=$())&&(o.tooltips=a)}},standalone:!0,features:[se],decls:22,vars:13,consts:[[1,"navbar","navbar-expand-lg","bg-body-tertiary","fs-5"],[1,"container-fluid"],["href","https://digitaldata.works/",1,"logo"],["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),E(4,"img",3),v(),H(5,gQ,17,38,"div",4),f(6,"div",5)(7,"a",6),T(8,"User Manager Portal"),v(),H(9,fQ,3,4,"button",7)(10,bQ,3,5,"button",8)(11,vQ,3,5,"button",9)(12,_Q,3,4,"button",10)(13,yQ,3,4,"button",11)(14,wQ,3,4,"button",12)(15,xQ,3,3,"button",13),f(16,"button",14),A("click",function(){return o.toggle()}),E(17,"span",15),v(),E(18,"app-color-mode-bttn"),f(19,"button",16),A("click",function(){return o.auth()}),E(20,"img",17),T(21),v()()()()()),r&2&&(b(4),w("src",o.isDarkTheme?"../../assets/img/DD_white.svg":"../../assets/img/digital_data.svg",Bd),b(),w("ngIf",o.isLogedIn()),b(2),w("routerLink",Ei(12,cQ)),b(2),w("ngIf",o.isLogedIn()),b(),w("ngIf",o.isLogedIn()),b(),w("ngIf",o.isLogedIn()),b(),w("ngIf",o.isLogedIn()),b(),w("ngIf",o.isLogedIn()),b(),w("ngIf",o.isLogedIn()),b(),w("ngIf",o.isLogedIn()),b(),De("aria-expanded",o.isExpanded),b(5),Oe(" ",o.isLogedIn()?"Log out":"Log in"," "))},dependencies:[w2,pb,p2,le,$t,Rt,Wf,MN,po,mo,FN,RN,hh,Ft,xn,jN,Uy],styles:["a.navbar-brand[_ngcontent-%COMP%]{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=t;return n})();var BN=(()=>{let t=class t{constructor(){this.title="app",this.transferService=F(lu),this.updateService=F(Zs),this.refreshService=F(bn),this.deletionService=F(du)}handleCtrlS(e){e.preventDefault(),this.updateService.executeAllAsync().then(()=>this.refreshService.executeAll())}handleCtrlR(e){e.preventDefault(),this.refreshService.executeAll()}handleDelete(e){e.preventDefault(),this.deletionService.executeAll()}handleCtrlSpace(e){e.preventDefault(),this.transferService.executeAll()}handleCtrlL(e){e.preventDefault(),this.updateService.toggleEditability()}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=R({type:t,selectors:[["app-root"]],hostBindings:function(r,o){r&1&&A("keydown.control.s",function(c){return o.handleCtrlS(c)},!1,Bs)("keydown.control.r",function(c){return o.handleCtrlR(c)},!1,Bs)("keydown.delete",function(c){return o.handleDelete(c)},!1,Bs)("keydown.control.space",function(c){return o.handleCtrlSpace(c)},!1,Bs)("keydown.control.l",function(c){return o.handleCtrlL(c)},!1,Bs)},standalone:!0,features:[se],decls:3,vars:0,consts:[[1,"container-fluid"]],template:function(r,o){r&1&&(E(0,"app-nav-menu"),f(1,"main",0),E(2,"router-outlet"),v())},dependencies:[HC,LN]});let n=t;return n})();kA(BN,TN).catch(n=>console.error(n));
