diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e45e1c3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +dist + +node_modules + +.angular \ No newline at end of file diff --git a/index.html b/index.html index 895b5b3..266498d 100644 --- a/index.html +++ b/index.html @@ -15,5 +15,5 @@ - + diff --git a/main-DXFRKKWS.js b/main-DXFRKKWS.js new file mode 100644 index 0000000..f4da4d3 --- /dev/null +++ b/main-DXFRKKWS.js @@ -0,0 +1,208 @@ +import{$ as qt,$a as ns,$b as fs,A as $e,Aa as Yt,Ab as ei,B as Gt,Ba as mt,Bb as fe,C as Ge,Ca as ft,Cb as S,D as Gn,Da as qo,Db as rs,E as xe,Ea as Zo,Eb as os,F as jo,Fa as Ko,Fb as ss,G as Wn,Ga as Qo,Gb as as,H as ht,Ha as Yo,Hb as ls,I as We,Ia as Xo,Ib as Qi,J as qn,Ja as Jo,Jb as Yi,K as Bo,Ka as Be,Kb as cs,L as Uo,La as Xt,Lb as ti,M as Zn,Ma as w,Mb as nr,N as pt,Na as f,Nb as ds,O as Ve,Oa as Yn,Ob as ke,P as ce,Pa as Ae,Pb as us,Q as ee,Qa as es,Qb as q,R as z,Ra as Gi,Rb as Xi,S as H,Sa as Wi,Sb as bt,T as Wt,Ta as qi,Tb as rt,U as b,Ua as Ce,Ub as ii,V as te,Va as ts,Vb as hs,W as Ho,Wa as Xn,Wb as yt,X as D,Xa as he,Xb as ps,Y as Kn,Ya as $,Yb as ms,Z as v,Za as ue,Zb as R,_ as h,_a as is,_b as Ji,a as Ie,aa as M,ab as G,ac as gs,b as Fo,ba as ie,bb as Zi,bc as vs,c as Ee,ca as T,cb as Te,cc as re,d as Hn,da as Zt,db as x,dc as _s,e as zn,ea as zo,eb as Jn,ec as ni,f as A,fa as Hi,fb as ne,fc as rr,g as K,ga as je,gb as Ki,gc as bs,h as ve,ha as qe,hb as Re,i as le,ia as B,ib as er,j as C,ja as U,jb as tr,jc as ys,k as Me,ka as Ze,kb as ir,kc as en,l as Vi,la as zi,lb as d,m as No,ma as Ke,mb as u,mc as Ct,n as Po,na as Se,nb as y,nc as tn,o as E,oa as $o,ob as pe,oc as nn,p as zt,pa as k,pb as F,q as ye,qa as L,qb as W,r as ji,ra as Qn,rb as gt,s as $t,sa as Kt,sb as vt,t as Bi,ta as V,tb as _t,u as nt,ua as Qt,ub as me,v as Lo,va as Go,vb as Y,w as Vo,wa as $i,wb as X,x as Ui,xa as Wo,xb as Jt,y as Q,ya as Pe,yb as g,z as $n,za as Qe,zb as Ye}from"./chunk-VEJS3QKI.js";import{a as p,b as j,f as de}from"./chunk-EQDQRRRY.js";var ar=class extends ms{constructor(){super(...arguments),this.supportsDOMEvents=!0}},lr=class t extends ar{static makeCurrent(){ps(new t)}onAndCancel(n,e,i){return n.addEventListener(e,i),()=>{n.removeEventListener(e,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=Rl();return e==null?null:kl(e)}resetBaseElement(){ri=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return fs(document.cookie,n)}},ri=null;function Rl(){return ri=ri||document.querySelector("base"),ri?ri.getAttribute("href"):null}function kl(t){return new URL(t,document.baseURI).pathname}var Ol=(()=>{class t{build(){return new XMLHttpRequest}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})(),cr=new D(""),Ds=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(o=>o.supports(e)),!i)throw new H(5101,!1);return this._eventNameToPlugin.set(e,i),i}static{this.\u0275fac=function(i){return new(i||t)(v(cr),v(L))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})(),rn=class{constructor(n){this._doc=n}},or="ng-app-id",Is=(()=>{class t{constructor(e,i,r,o={}){this.doc=e,this.appId=i,this.nonce=r,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=rr(o),this.resetHostNodes()}addStyles(e){for(let i of e)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(e){for(let i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){let i=this.styleRef;i.get(e)?.elements?.forEach(r=>r.remove()),i.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${or}="${this.appId}"]`);if(e?.length){let i=new Map;return e.forEach(r=>{r.textContent!=null&&i.set(r.textContent,r)}),i}return null}changeUsageCount(e,i){let r=this.styleRef;if(r.has(e)){let o=r.get(e);return o.usage+=i,o.usage}return r.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){let r=this.styleNodesInDOM,o=r?.get(i);if(o?.parentNode===e)return r.delete(i),o.removeAttribute(or),o;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=i,this.platformIsServer&&s.setAttribute(or,this.appId),e.appendChild(s),s}}addStyleToHost(e,i){let r=this.getStyleElement(e,i),o=this.styleRef,s=o.get(i)?.elements;s?s.push(r):o.set(i,{elements:[r],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(i){return new(i||t)(v(R),v($i),v(Yt,8),v(Pe))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})(),sr={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/Math/MathML"},hr=/%COMP%/g,Es="%COMP%",Fl=`_nghost-${Es}`,Nl=`_ngcontent-${Es}`,Pl=!0,Ll=new D("",{providedIn:"root",factory:()=>Pl});function Vl(t){return Nl.replace(hr,t)}function jl(t){return Fl.replace(hr,t)}function Ms(t,n){return n.map(e=>e.replace(hr,t))}var on=(()=>{class t{constructor(e,i,r,o,s,a,l,c=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=rr(a),this.defaultRenderer=new oi(e,s,l,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===qt.ShadowDom&&(i=j(p({},i),{encapsulation:qt.Emulated}));let r=this.getOrCreateRenderer(e,i);return r instanceof sn?r.applyToHost(e):r instanceof si&&r.applyStyles(),r}getOrCreateRenderer(e,i){let r=this.rendererByCompId,o=r.get(i.id);if(!o){let s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,m=this.removeStylesOnCompDestroy,_=this.platformIsServer;switch(i.encapsulation){case qt.Emulated:o=new sn(l,c,i,this.appId,m,s,a,_);break;case qt.ShadowDom:return new dr(l,c,e,i,s,a,this.nonce,_);default:o=new si(l,c,i,m,s,a,_);break}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(i){return new(i||t)(v(Ds),v(Is),v($i),v(Ll),v(R),v(Pe),v(L),v(Yt))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})(),oi=class{constructor(n,e,i,r){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(sr[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(Cs(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(Cs(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){e.remove()}selectRootElement(n,e){let i=typeof n=="string"?this.doc.querySelector(n):n;if(!i)throw new H(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;let o=sr[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){let r=sr[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(Xt.DashCase|Xt.Important)?n.style.setProperty(e,i,r&Xt.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Xt.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n!=null&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i){if(typeof n=="string"&&(n=yt().getGlobalEventTarget(this.doc,n),!n))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(i))}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault()}}};function Cs(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var dr=class extends oi{constructor(n,e,i,r,o,s,a,l){super(n,o,s,l),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Ms(r.id,r.styles);for(let m of c){let _=document.createElement("style");a&&_.setAttribute("nonce",a),_.textContent=m,this.shadowRoot.appendChild(_)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},si=class extends oi{constructor(n,e,i,r,o,s,a,l){super(n,o,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r,this.styles=l?Ms(l,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},sn=class extends si{constructor(n,e,i,r,o,s,a,l){let c=r+"-"+i.id;super(n,e,i,o,s,a,l,c),this.contentAttr=Vl(c),this.hostAttr=jl(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}},Bl=(()=>{class t extends rn{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}static{this.\u0275fac=function(i){return new(i||t)(v(R))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})(),ws=["alt","control","meta","shift"],Ul={"\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"},Hl={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},zl=(()=>{class t extends rn{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,i,r){let o=t.parseEventName(i),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>yt().onAndCancel(e,o.domEventName,s))}static parseEventName(e){let i=e.toLowerCase().split("."),r=i.shift();if(i.length===0||!(r==="keydown"||r==="keyup"))return null;let o=t._normalizeKey(i.pop()),s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),ws.forEach(c=>{let m=i.indexOf(c);m>-1&&(i.splice(m,1),s+=c+".")}),s+=o,i.length!=0||o.length===0)return null;let l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=Ul[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),ws.forEach(s=>{if(s!==r){let a=Hl[s];a(e)&&(o+=s+".")}}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static{this.\u0275fac=function(i){return new(i||t)(v(R))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})();function xs(t,n){return us(p({rootComponent:t},$l(n)))}function $l(t){return{appProviders:[...Kl,...t?.providers??[]],platformProviders:Zl}}function Gl(){lr.makeCurrent()}function Wl(){return new Qn}function ql(){return Go(document),document}var Zl=[{provide:Pe,useValue:_s},{provide:Wo,useValue:Gl,multi:!0},{provide:R,useFactory:ql,deps:[]}];var Kl=[{provide:zo,useValue:"root"},{provide:Qn,useFactory:Wl,deps:[]},{provide:cr,useClass:Bl,multi:!0,deps:[R,L,Pe]},{provide:cr,useClass:zl,multi:!0,deps:[R]},on,Is,Ds,{provide:Wi,useExisting:on},{provide:bs,useClass:Ol,deps:[]},[]];var Ss=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(i){return new(i||t)(v(R))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var pr=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:function(i){let r=null;return i?r=new(i||t):r=v(Ql),r},providedIn:"root"})}}return t})(),Ql=(()=>{class t extends pr{constructor(e){super(),this._doc=e}sanitize(e,i){if(i==null)return null;switch(e){case Be.NONE:return i;case Be.HTML:return ft(i,"HTML")?mt(i):Jo(this._doc,String(i)).toString();case Be.STYLE:return ft(i,"Style")?mt(i):i;case Be.SCRIPT:if(ft(i,"Script"))return mt(i);throw new H(5200,!1);case Be.URL:return ft(i,"URL")?mt(i):Xo(String(i));case Be.RESOURCE_URL:if(ft(i,"ResourceURL"))return mt(i);throw new H(5201,!1);default:throw new H(5202,!1)}}bypassSecurityTrustHtml(e){return qo(e)}bypassSecurityTrustStyle(e){return Zo(e)}bypassSecurityTrustScript(e){return Ko(e)}bypassSecurityTrustUrl(e){return Qo(e)}bypassSecurityTrustResourceUrl(e){return Yo(e)}static{this.\u0275fac=function(i){return new(i||t)(v(R))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var fr;try{fr=typeof Intl<"u"&&Intl.v8BreakIterator}catch{fr=!1}var J=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?ni(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||fr)&&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}static{this.\u0275fac=function(i){return new(i||t)(v(Pe))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ai;function Xl(){if(ai==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ai=!0}))}finally{ai=ai||!1}return ai}function Xe(t){return Xl()?t:!!t.capture}var Oe=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t}(Oe||{}),an,ot;function As(){if(ot==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return ot=!1,ot;if("scrollBehavior"in document.documentElement.style)ot=!0;else{let t=Element.prototype.scrollTo;t?ot=!/\{\s*\[native code\]\s*\}/.test(t.toString()):ot=!1}}return ot}function wt(){if(typeof document!="object"||!document)return Oe.NORMAL;if(an==null){let t=document.createElement("div"),n=t.style;t.dir="rtl",n.width="1px",n.overflow="auto",n.visibility="hidden",n.pointerEvents="none",n.position="absolute";let e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),an=Oe.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,an=t.scrollLeft===0?Oe.NEGATED:Oe.INVERTED),t.remove()}return an}var mr;function Jl(){if(mr==null){let t=typeof document<"u"?document.head:null;mr=!!(t&&(t.createShadowRoot||t.attachShadow))}return mr}function Ts(t){if(Jl()){let n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function Je(t){return t.composedPath?t.composedPath()[0]:t.target}function Rs(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function ln(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function cn(t,n=0){return ec(t)?Number(t):arguments.length===2?n:0}function ec(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function gr(t){return Array.isArray(t)?t:[t]}function Fe(t){return t instanceof V?t.nativeElement:t}function tc(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let n=0;n{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),nc=(()=>{class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map,this._ngZone=h(L)}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){let i=Fe(e);return new Ee(r=>{let s=this._observeElement(i).pipe(E(a=>a.filter(l=>!tc(l))),Q(a=>!!a.length)).subscribe(a=>{this._ngZone.run(()=>{r.next(a)})});return()=>{s.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let i=new A,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,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:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}static{this.\u0275fac=function(i){return new(i||t)(v(ic))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ks=(()=>{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=cn(e),this._subscribe()}constructor(e,i){this._contentObserver=e,this._elementRef=i,this.event=new k,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._currentSubscription=(this.debounce?e.pipe(Ge(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(f(nc),f(V))}}static{this.\u0275dir=T({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",q],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[ue]})}}return t})();var Os=new Set,st,rc=(()=>{class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):sc}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&oc(e,this._nonce),this._matchMedia(e)}static{this.\u0275fac=function(i){return new(i||t)(v(J),v(Yt,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function oc(t,n){if(!Os.has(t))try{st||(st=document.createElement("style"),n&&st.setAttribute("nonce",n),st.setAttribute("type","text/css"),document.head.appendChild(st)),st.sheet&&(st.sheet.insertRule(`@media ${t} {body{ }}`,0),Os.add(t))}catch(e){console.error(e)}}function sc(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var Ns=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new A}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Fs(gr(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=Fs(gr(e)).map(s=>this._registerQuery(s).observable),o=zt(r);return o=ji(o.pipe(xe(1)),o.pipe(pt(1),Ge(0))),o.pipe(E(s=>{let a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),o={observable:new Ee(s=>{let a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(Ve(i),E(({matches:s})=>({query:e,matches:s})),ee(this._destroySubject)),mql:i};return this._queries.set(e,o),o}static{this.\u0275fac=function(i){return new(i||t)(v(rc),v(L))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Fs(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}var Ec=200,_r=class{constructor(n,e){this._letterKeyStream=new A,this._items=[],this._selectedItemIndex=-1,this._pressedLetters=[],this._selectedItem=new A,this.selectedItem=this._selectedItem;let i=typeof e?.debounceInterval=="number"?e.debounceInterval:Ec;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(n),this._setupKeyHandler(i)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(n){this._selectedItemIndex=n}setItems(n){this._items=n}handleKey(n){let e=n.keyCode;n.key&&n.key.length===1?this._letterKeyStream.next(n.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(n){this._letterKeyStream.pipe(z(e=>this._pressedLetters.push(e)),Ge(n),Q(()=>this._pressedLetters.length>0),E(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let i=1;ii.disabled,this.tabOut=new A,this.change=new A,n instanceof Qt?this._itemChangesSubscription=n.changes.subscribe(i=>this._itemsChanged(i.toArray())):Xn(n)&&(this._effectRef=ii(()=>this._itemsChanged(n()),{injector:e}))}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new _r(e,{debounceInterval:typeof n=="number"?n:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(n=!0){return this._homeAndEnd=n,this}withPageUpDown(n=!0,e=10){return this._pageUpAndDown={enabled:n,delta:e},this}setActiveItem(n){let e=this._activeItem;this.updateActiveItem(n),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(n){let e=n.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!n[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e,this._typeahead?.setCurrentSelectedItemIndex(e))}}};var hn=class extends br{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}};function yr(t){return t.buttons===0||t.detail===0}function Cr(t){let n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!n&&n.identifier===-1&&(n.radiusX==null||n.radiusX===1)&&(n.radiusY==null||n.radiusY===1)}var Mc=new D("cdk-input-modality-detector-options"),xc={ignoreKeys:[18,17,224,91,16]},Vs=650,Dt=Xe({passive:!0,capture:!0}),Sc=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new K(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Je(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs{if(Cr(s)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Je(s)},this._options=p(p({},xc),o),this.modalityDetected=this._modality.pipe(pt(1)),this.modalityChanged=this.modalityDetected.pipe(Wn()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Dt),r.addEventListener("mousedown",this._onMousedown,Dt),r.addEventListener("touchstart",this._onTouchstart,Dt)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Dt),document.removeEventListener("mousedown",this._onMousedown,Dt),document.removeEventListener("touchstart",this._onTouchstart,Dt))}static{this.\u0275fac=function(i){return new(i||t)(v(J),v(L),v(R),v(Mc,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var un=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t}(un||{}),Ac=new D("cdk-focus-monitor-default-options"),dn=Xe({passive:!0,capture:!0}),Tc=(()=>{class t{constructor(e,i,r,o,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,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 A,this._rootNodeFocusAndBlurListener=a=>{let l=Je(a);for(let c=l;c;c=c.parentElement)a.type==="focus"?this._onFocus(a,c):this._onBlur(a,c)},this._document=o,this._detectionMode=s?.detectionMode||un.IMMEDIATE}monitor(e,i=!1){let r=Fe(e);if(!this._platform.isBrowser||r.nodeType!==1)return C();let o=Ts(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;let a={checkChildren:i,subject:new A,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){let i=Fe(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){let o=Fe(e),s=this._getDocument().activeElement;o===s?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),typeof o.focus=="function"&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_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===un.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===un.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?Vs:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,i){let r=this._elementInfo.get(i),o=Je(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){let r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,dn),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,dn)}),this._rootNodeFocusListenerCount.set(i,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ee(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,dn),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,dn),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let o=e.labels;if(o){for(let s=0;s{class t{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this._focusOrigin=null,this.cdkFocusChange=new k}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(f(V),f(Tc))}}static{this.\u0275dir=T({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0})}}return t})(),at=function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t}(at||{}),Ps="cdk-high-contrast-black-on-white",Ls="cdk-high-contrast-white-on-black",vr="cdk-high-contrast-active",Bs=(()=>{class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=h(Ns).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return at.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return at.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return at.BLACK_ON_WHITE}return at.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(vr,Ps,Ls),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===at.BLACK_ON_WHITE?e.add(vr,Ps):i===at.WHITE_ON_BLACK&&e.add(vr,Ls)}}static{this.\u0275fac=function(i){return new(i||t)(v(J),v(R))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var kc=new D("cdk-dir-doc",{providedIn:"root",factory:Oc});function Oc(){return h(R)}var Fc=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Nc(t){let n=t?.toLowerCase()||"";return n==="auto"&&typeof navigator<"u"&&navigator?.language?Fc.test(navigator.language)?"rtl":"ltr":n==="rtl"?"rtl":"ltr"}var It=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new k,e){let i=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.value=Nc(i||r||"ltr")}}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(i){return new(i||t)(v(kc,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var wr=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ie({type:t})}static{this.\u0275inj=te({})}}return t})();function Pc(){return!0}var Lc=new D("mat-sanity-checks",{providedIn:"root",factory:Pc}),Mr=(()=>{class t{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return Rs()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[e]}static{this.\u0275fac=function(i){return new(i||t)(v(Bs),v(Lc,8),v(R))}}static{this.\u0275mod=ie({type:t})}static{this.\u0275inj=te({imports:[wr,wr]})}}return t})();var we=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(we||{}),Dr=class{constructor(n,e,i,r=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=we.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},Hs=Xe({passive:!0,capture:!0}),Ir=class{constructor(){this._events=new Map,this._delegateEventHandler=n=>{let e=Je(n);e&&this._events.get(n.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(o=>o.handleEvent(n))})}}addHandler(n,e,i,r){let o=this._events.get(e);if(o){let s=o.get(i);s?s.add(r):o.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,Hs)})}removeHandler(n,e,i){let r=this._events.get(n);if(!r)return;let o=r.get(e);o&&(o.delete(i),o.size===0&&r.delete(e),r.size===0&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,Hs)))}},zs={enterDuration:225,exitDuration:150},Vc=800,$s=Xe({passive:!0,capture:!0}),Gs=["mousedown","touchstart"],Ws=["mouseup","mouseleave","touchend","touchcancel"],Er=class t{static{this._eventManager=new Ir}constructor(n,e,i,r){this._target=n,this._ngZone=e,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Fe(i))}fadeInRipple(n,e,i={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=p(p({},zs),i.animation);i.centered&&(n=r.left+r.width/2,e=r.top+r.height/2);let s=i.radius||jc(n,e,r),a=n-r.left,l=e-r.top,c=o.enterDuration,m=document.createElement("div");m.classList.add("mat-ripple-element"),m.style.left=`${a-s}px`,m.style.top=`${l-s}px`,m.style.height=`${s*2}px`,m.style.width=`${s*2}px`,i.color!=null&&(m.style.backgroundColor=i.color),m.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(m);let _=window.getComputedStyle(m),P=_.transitionProperty,ge=_.transitionDuration,Z=P==="none"||ge==="0s"||ge==="0s, 0s"||r.width===0&&r.height===0,se=new Dr(this,m,i,Z);m.style.transform="scale3d(1, 1, 1)",se.state=we.FADING_IN,i.persistent||(this._mostRecentTransientRipple=se);let ae=null;return!Z&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let ze=()=>{ae&&(ae.fallbackTimer=null),clearTimeout(it),this._finishRippleTransition(se)},Ht=()=>this._destroyRipple(se),it=setTimeout(Ht,c+100);m.addEventListener("transitionend",ze),m.addEventListener("transitioncancel",Ht),ae={onTransitionEnd:ze,onTransitionCancel:Ht,fallbackTimer:it}}),this._activeRipples.set(se,ae),(Z||!c)&&this._finishRippleTransition(se),se}fadeOutRipple(n){if(n.state===we.FADING_OUT||n.state===we.HIDDEN)return;let e=n.element,i=p(p({},zs),n.config.animation);e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=we.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){let e=Fe(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,Gs.forEach(i=>{t._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){n.type==="mousedown"?this._onMousedown(n):n.type==="touchstart"?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Ws.forEach(e=>{this._triggerElement.addEventListener(e,this,$s)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===we.FADING_IN?this._startFadeOutTransition(n):n.state===we.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){let e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=we.VISIBLE,!i&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){let e=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=we.HIDDEN,e!==null&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),n.element.remove()}_onMousedown(n){let e=yr(n),i=this._lastTouchStartEvent&&Date.now(){let e=n.state===we.VISIBLE||n.config.terminateOnPointerUp&&n.state===we.FADING_IN;!n.config.persistent&&e&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let n=this._triggerElement;n&&(Gs.forEach(e=>t._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&(Ws.forEach(e=>n.removeEventListener(e,this,$s)),this._pointerUpEventsRegistered=!1))}};function jc(t,n,e){let i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+r*r)}var qs=new D("mat-ripple-global-options"),xr=(()=>{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,i,r,o,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new Er(this,i,e,r)}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:p(p(p({},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,i=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,p(p({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,p(p({},this.rippleConfig),e))}static{this.\u0275fac=function(i){return new(i||t)(f(V),f(L),f(J),f(qs,8),f(Qe,8))}}static{this.\u0275dir=T({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){i&2&&ne("mat-ripple-unbounded",r.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}}return t})();var ci=class{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;n!=null&&(this._attachedHost=null,n.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(n){this._attachedHost=n}},Sr=class extends ci{constructor(n,e,i,r,o){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r,this.projectableNodes=o}},Et=class extends ci{constructor(n,e,i,r){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}},Ar=class extends ci{constructor(n){super(),this.element=n instanceof V?n.nativeElement:n}},Tr=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){if(n instanceof Sr)return this._attachedPortal=n,this.attachComponentPortal(n);if(n instanceof Et)return this._attachedPortal=n,this.attachTemplatePortal(n);if(this.attachDomPortal&&n instanceof Ar)return this._attachedPortal=n,this.attachDomPortal(n)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var Zs=(()=>{class t extends Et{constructor(e,i){super(e,i)}static{this.\u0275fac=function(i){return new(i||t)(f(Ae),f(Ce))}}static{this.\u0275dir=T({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],standalone:!0,features:[$]})}}return t})();var pn=(()=>{class t extends Tr{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new k,this.attachDomPortal=o=>{this._document;let s=o.element;s.parentNode;let a=this._document.createComment("dom-portal");o.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=r}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 i=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=i.createComponent(o,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(e){e.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static{this.\u0275fac=function(i){return new(i||t)(f(Gi),f(Ce),f(R))}}static{this.\u0275dir=T({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[$]})}}return t})();var Bc=20,Uc=(()=>{class t{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new A,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=Bc){return this._platform.isBrowser?new Ee(i=>{this._globalSubscription||this._addGlobalListener();let r=e>0?this._scrolled.pipe($n(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):C()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){let r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(Q(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Fe(i),o=e.getElementRef().nativeElement;do if(r==o)return!0;while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let e=this._getWindow();return nt(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static{this.\u0275fac=function(i){return new(i||t)(v(L),v(J),v(R,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Ks=(()=>{class t{constructor(e,i,r,o){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=r,this.dir=o,this._destroyed=new A,this._elementScrolled=new Ee(s=>this.ngZone.runOutsideAngular(()=>nt(this.elementRef.nativeElement,"scroll").pipe(ee(this._destroyed)).subscribe(s)))}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 i=this.elementRef.nativeElement,r=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=r?e.end:e.start),e.right==null&&(e.right=r?e.start:e.end),e.bottom!=null&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&wt()!=Oe.NORMAL?(e.left!=null&&(e.right=i.scrollWidth-i.clientWidth-e.left),wt()==Oe.INVERTED?e.left=e.right:wt()==Oe.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let i=this.elementRef.nativeElement;As()?i.scrollTo(e):(e.top!=null&&(i.scrollTop=e.top),e.left!=null&&(i.scrollLeft=e.left))}measureScrollOffset(e){let i="left",r="right",o=this.elementRef.nativeElement;if(e=="top")return o.scrollTop;if(e=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let s=this.dir&&this.dir.value=="rtl";return e=="start"?e=s?r:i:e=="end"&&(e=s?i:r),s&&wt()==Oe.INVERTED?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:s&&wt()==Oe.NEGATED?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static{this.\u0275fac=function(i){return new(i||t)(f(V),f(Uc),f(L),f(It,8))}}static{this.\u0275dir=T({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}}return t})(),Hc=20,Rr=(()=>{class t{constructor(e,i,r){this._platform=e,this._change=new A,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){let o=this._getWindow();o.addEventListener("resize",this._changeListener),o.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:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect(),s=-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,a=-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0;return{top:s,left:a}}change(e=Hc){return e>0?this._change.pipe($n(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}}static{this.\u0275fac=function(i){return new(i||t)(v(J),v(L),v(R,8))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var kr=class{constructor(n){this._box=n,this._destroyed=new A,this._resizeSubject=new A,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(n){return this._elementObservables.has(n)||this._elementObservables.set(n,new Ee(e=>{let i=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(n,{box:this._box}),()=>{this._resizeObserver?.unobserve(n),i.unsubscribe(),this._elementObservables.delete(n)}}).pipe(Q(e=>e.some(i=>i.target===n)),Zn({bufferSize:1,refCount:!0}),ee(this._destroyed))),this._elementObservables.get(n)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},Qs=(()=>{class t{constructor(){this._observers=new Map,this._ngZone=h(L),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(e,i){let r=i?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new kr(r)),this._observers.get(r).observe(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Pr=["*"];function qc(t,n){t&1&&vt(0)}var Zc=["tabListContainer"],Kc=["tabList"],Qc=["tabListInner"],Yc=["nextPaginator"],Xc=["previousPaginator"],Jc=t=>({animationDuration:t}),ed=(t,n)=>({value:t,params:n});function td(t,n){}var id=["tabBodyWrapper"],nd=["tabHeader"];function rd(t,n){}function od(t,n){if(t&1&&G(0,rd,0,0,"ng-template",12),t&2){let e=W().$implicit;x("cdkPortalOutlet",e.templateLabel)}}function sd(t,n){if(t&1&&g(0),t&2){let e=W().$implicit;Ye(e.textLabel)}}function ad(t,n){if(t&1){let e=pe();d(0,"div",7,2),F("click",function(){let r=B(e),o=r.$implicit,s=r.$index,a=W(),l=Jt(1);return U(a._handleClick(o,l,s))})("cdkFocusChange",function(r){let o=B(e).$index,s=W();return U(s._tabFocusChanged(r,o))}),y(2,"span",8)(3,"div",9),d(4,"span",10)(5,"span",11),G(6,od,1,1,null,12)(7,sd,1,1),u()()()}if(t&2){let e=n.$implicit,i=n.$index,r=Jt(1),o=W();Ki(e.labelClass),ne("mdc-tab--active",o.selectedIndex===i),x("id",o._getTabLabelId(i))("disabled",e.disabled)("fitInkBarToContent",o.fitInkBarToContent),Te("tabIndex",o._getTabIndex(i))("aria-posinset",i+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(i))("aria-selected",o.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),w(3),x("matRippleTrigger",r)("matRippleDisabled",e.disabled||o.disableRipple),w(3),Re(e.templateLabel?6:7)}}function ld(t,n){t&1&&vt(0)}function cd(t,n){if(t&1){let e=pe();d(0,"mat-tab-body",13),F("_onCentered",function(){B(e);let r=W();return U(r._removeTabBodyWrapperHeight())})("_onCentering",function(r){B(e);let o=W();return U(o._setTabBodyWrapperHeight(r))}),u()}if(t&2){let e=n.$implicit,i=n.$index,r=W();Ki(e.bodyClass),ne("mat-mdc-tab-body-active",r.selectedIndex===i),x("id",r._getTabContentId(i))("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),Te("tabindex",r.contentTabIndex!=null&&r.selectedIndex===i?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(i))("aria-hidden",r.selectedIndex!==i)}}var dd=new D("MatTabContent"),ud=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||t)(f(Ae))}}static{this.\u0275dir=T({type:t,selectors:[["","matTabContent",""]],standalone:!0,features:[fe([{provide:dd,useExisting:t}])]})}}return t})(),hd=new D("MatTabLabel"),Js=new D("MAT_TAB"),pd=(()=>{class t extends Zs{constructor(e,i,r){super(e,i),this._closestTab=r}static{this.\u0275fac=function(i){return new(i||t)(f(Ae),f(Ce),f(Js,8))}}static{this.\u0275dir=T({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],standalone:!0,features:[fe([{provide:hd,useExisting:t}]),$]})}}return t})(),ea=new D("MAT_TAB_GROUP"),di=(()=>{class t{get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}constructor(e,i){this._viewContainerRef=e,this._closestTabGroup=i,this.disabled=!1,this._explicitContent=void 0,this.textLabel="",this._contentPortal=null,this._stateChanges=new A,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 Et(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static{this.\u0275fac=function(i){return new(i||t)(f(Ce),f(ea,8))}}static{this.\u0275cmp=M({type:t,selectors:[["mat-tab"]],contentQueries:function(i,r,o){if(i&1&&(_t(o,pd,5),_t(o,ud,7,Ae)),i&2){let s;Y(s=X())&&(r.templateLabel=s.first),Y(s=X())&&(r._explicitContent=s.first)}},viewQuery:function(i,r){if(i&1&&me(Ae,7),i&2){let o;Y(o=X())&&(r._implicitContent=o.first)}},hostAttrs:["hidden",""],inputs:{disabled:[2,"disabled","disabled",q],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],standalone:!0,features:[fe([{provide:Js,useExisting:t}]),ue,qe,S],ngContentSelectors:Pr,decls:1,vars:0,template:function(i,r){i&1&&(gt(),G(0,qc,1,0,"ng-template"))},encapsulation:2})}}return t})(),Or="mdc-tab-indicator--active",Ys="mdc-tab-indicator--no-transition",Fr=class{constructor(n){this._items=n}hide(){this._items.forEach(n=>n.deactivateInkBar())}alignToElement(n){let e=this._items.find(r=>r.elementRef.nativeElement===n),i=this._currentItem;if(e!==i&&(i?.deactivateInkBar(),e)){let r=i?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(r),this._currentItem=e}}},md=(()=>{class t{constructor(){this._elementRef=h(V),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let i=this._elementRef.nativeElement;if(!e||!i.getBoundingClientRect||!this._inkBarContentElement){i.classList.add(Or);return}let r=i.getBoundingClientRect(),o=e.width/r.width,s=e.left-r.left;i.classList.add(Ys),this._inkBarContentElement.style.setProperty("transform",`translateX(${s}px) scaleX(${o})`),i.getBoundingClientRect(),i.classList.remove(Ys),i.classList.add(Or),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(Or)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,i=this._inkBarElement=e.createElement("span"),r=this._inkBarContentElement=e.createElement("span");i.className="mdc-tab-indicator",r.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",i.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)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=T({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",q]},features:[ue]})}}return t})();var ta=(()=>{class t extends md{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}static{this.\u0275fac=function(i){return new(i||t)(f(V))}}static{this.\u0275dir=T({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(i,r){i&2&&(Te("aria-disabled",!!r.disabled),ne("mat-mdc-tab-disabled",r.disabled))},inputs:{disabled:[2,"disabled","disabled",q]},standalone:!0,features:[ue,$]})}}return t})(),Xs=Xe({passive:!0}),fd=650,gd=100,vd=(()=>{class t{get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let i=isNaN(e)?0:e;this._selectedIndex!=i&&(this._selectedIndexChanged=!0,this._selectedIndex=i,this._keyManager&&this._keyManager.updateActiveItem(i))}constructor(e,i,r,o,s,a,l){this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=r,this._dir=o,this._ngZone=s,this._platform=a,this._animationMode=l,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new A,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new A,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new k,this.indexFocused=new k,this._sharedResizeObserver=h(Qs),this._injector=h(Se),s.runOutsideAngular(()=>{nt(e.nativeElement,"mouseleave").pipe(ee(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){nt(this._previousPaginator.nativeElement,"touchstart",Xs).pipe(ee(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),nt(this._nextPaginator.nativeElement,"touchstart",Xs).pipe(ee(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){let e=this._dir?this._dir.change:C("ltr"),i=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(Ge(32),ee(this._destroyed)),r=this._viewportRuler.change(150).pipe(ee(this._destroyed)),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new hn(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),Zi(o,{injector:this._injector}),Ui(e,r,i,this._items.changes,this._itemsResized()).pipe(ee(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),o()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(s=>{this.indexFocused.emit(s),this._setTabFocus(s)})}_itemsResized(){return typeof ResizeObserver!="function"?ve:this._items.changes.pipe(Ve(this._items),ce(e=>new Ee(i=>this._ngZone.runOutsideAngular(()=>{let r=new ResizeObserver(o=>i.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),pt(1),Q(e=>e.some(i=>i.contentRect.width>0&&i.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(!ln(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let i=this._items.get(this.focusIndex);i&&!i.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 i=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?i.scrollLeft=0:i.scrollLeft=i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let e=this.scrollDistance,i=this._getLayoutDirection()==="ltr"?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}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 i=this._tabListContainer.nativeElement.offsetWidth,r=(e=="before"?-1:1)*i/3;return this._scrollTo(this._scrollDistance+r)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let i=this._items?this._items.toArray()[e]:null;if(!i)return;let r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:s}=i.elementRef.nativeElement,a,l;this._getLayoutDirection()=="ltr"?(a=o,l=a+s):(l=this._tabListInner.nativeElement.offsetWidth-o,a=l-s);let c=this.scrollDistance,m=this.scrollDistance+r;am&&(this.scrollDistance+=Math.min(l-m,a-c))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,i=this._elementRef.nativeElement.offsetWidth,r=e-i>=5;r||(this.scrollDistance=0),r!==this._showPaginationControls&&(this._showPaginationControls=r,this._changeDetectorRef.markForCheck())}}_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,i=this._tabListContainer.nativeElement.offsetWidth;return e-i||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&i.button!=null&&i.button!==0||(this._stopInterval(),Lo(fd,gd).pipe(ee(Ui(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(o===0||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}static{this.\u0275fac=function(i){return new(i||t)(f(V),f(ke),f(Rr),f(It,8),f(L),f(J),f(Qe,8))}}static{this.\u0275dir=T({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",q],selectedIndex:[2,"selectedIndex","selectedIndex",Xi]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[ue]})}}return t})(),_d=(()=>{class t extends vd{constructor(e,i,r,o,s,a,l){super(e,i,r,o,s,a,l),this.disableRipple=!1}ngAfterContentInit(){this._inkBar=new Fr(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static{this.\u0275fac=function(i){return new(i||t)(f(V),f(ke),f(Rr),f(It,8),f(L),f(J),f(Qe,8))}}static{this.\u0275cmp=M({type:t,selectors:[["mat-tab-header"]],contentQueries:function(i,r,o){if(i&1&&_t(o,ta,4),i&2){let s;Y(s=X())&&(r._items=s)}},viewQuery:function(i,r){if(i&1&&(me(Zc,7),me(Kc,7),me(Qc,7),me(Yc,5),me(Xc,5)),i&2){let o;Y(o=X())&&(r._tabListContainer=o.first),Y(o=X())&&(r._tabList=o.first),Y(o=X())&&(r._tabListInner=o.first),Y(o=X())&&(r._nextPaginator=o.first),Y(o=X())&&(r._previousPaginator=o.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(i,r){i&2&&ne("mat-mdc-tab-header-pagination-controls-enabled",r._showPaginationControls)("mat-mdc-tab-header-rtl",r._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",q]},standalone:!0,features:[ue,$,S],ngContentSelectors:Pr,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[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"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(i,r){if(i&1){let o=pe();gt(),d(0,"div",5,0),F("click",function(){return B(o),U(r._handlePaginatorClick("before"))})("mousedown",function(a){return B(o),U(r._handlePaginatorPress("before",a))})("touchend",function(){return B(o),U(r._stopInterval())}),y(2,"div",6),u(),d(3,"div",7,1),F("keydown",function(a){return B(o),U(r._handleKeydown(a))}),d(5,"div",8,2),F("cdkObserveContent",function(){return B(o),U(r._onContentChanges())}),d(7,"div",9,3),vt(9),u()()(),d(10,"div",10,4),F("mousedown",function(a){return B(o),U(r._handlePaginatorPress("after",a))})("click",function(){return B(o),U(r._handlePaginatorClick("after"))})("touchend",function(){return B(o),U(r._stopInterval())}),y(12,"div",6),u()}i&2&&(ne("mat-mdc-tab-header-pagination-disabled",r._disableScrollBefore),x("matRippleDisabled",r._disableScrollBefore||r.disableRipple),w(3),ne("_mat-animation-noopable",r._animationMode==="NoopAnimations"),w(2),Te("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby||null),w(5),ne("mat-mdc-tab-header-pagination-disabled",r._disableScrollAfter),x("matRippleDisabled",r._disableScrollAfter||r.disableRipple))},dependencies:[xr,ks],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;outline: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, var(--mat-app-on-surface))}.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, var(--mat-app-on-surface))}.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-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, var(--mat-app-surface-variant))}.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, var(--mat-app-surface-variant))}.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}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2})}}return t})(),Lr=new D("MAT_TABS_CONFIG"),bd={translateTab:ys("translateTab",[tn("center, void, left-origin-center, right-origin-center",Ct({transform:"none",visibility:"visible"})),tn("left",Ct({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),tn("right",Ct({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),nn("* => left, * => right, left => center, right => center",en("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),nn("void => left-origin-center",[Ct({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),en("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),nn("void => right-origin-center",[Ct({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),en("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},yd=(()=>{class t extends pn{constructor(e,i,r,o){super(e,i,o),this._host=r,this._centeringSub=Ie.EMPTY,this._leavingSub=Ie.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Ve(this._host._isCenterPosition(this._host._position))).subscribe(e=>{this._host._content&&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()}static{this.\u0275fac=function(i){return new(i||t)(f(Gi),f(Ce),f(Wt(()=>ia)),f(R))}}static{this.\u0275dir=T({type:t,selectors:[["","matTabBodyHost",""]],standalone:!0,features:[$]})}}return t})(),ia=(()=>{class t{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,i,r){this._elementRef=e,this._dir=i,this._dirChangeSubscription=Ie.EMPTY,this._translateTabComplete=new A,this._onCentering=new k,this._beforeCentering=new k,this._afterLeavingCenter=new k,this._onCentered=new k(!0),this.animationDuration="500ms",this.preserveContent=!1,i&&(this._dirChangeSubscription=i.change.subscribe(o=>{this._computePositionAnimationState(o),r.markForCheck()})),this._translateTabComplete.subscribe(o=>{this._isCenterPosition(o.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(o.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 i=this._isCenterPosition(e.toState);this._beforeCentering.emit(i),i&&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 i=this._getLayoutDirection();return i=="ltr"&&e<=0||i=="rtl"&&e>0?"left-origin-center":"right-origin-center"}static{this.\u0275fac=function(i){return new(i||t)(f(V),f(It,8),f(ke))}}static{this.\u0275cmp=M({type:t,selectors:[["mat-tab-body"]],viewQuery:function(i,r){if(i&1&&me(pn,5),i&2){let o;Y(o=X())&&(r._portalHost=o.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:[0,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},standalone:!0,features:[S],decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(i,r){if(i&1){let o=pe();d(0,"div",1,0),F("@translateTab.start",function(a){return B(o),U(r._onTranslateTabStarted(a))})("@translateTab.done",function(a){return B(o),U(r._translateTabComplete.next(a))}),G(2,td,0,0,"ng-template",2),u()}i&2&&x("@translateTab",os(3,ed,r._position,rs(1,Jc,r.animationDuration)))},dependencies:[yd,Ks],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:[bd.translateTab]}})}}return t})(),Cd=0,wd=!0,mn=(()=>{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 i=e+"";this._animationDuration=/^\d+$/.test(i)?e+"ms":i}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){if(!wd)throw new Error("mat-tab-group background color must be set through the Sass theming API");let i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,i,r,o){this._elementRef=e,this._changeDetectorRef=i,this._animationMode=o,this._tabs=new Qt,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=Ie.EMPTY,this._tabLabelSubscription=Ie.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 k,this.focusChange=new k,this.animationDone=new k,this.selectedTabChange=new k(!0),this._isServer=!h(J).isBrowser,this._groupId=Cd++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=r&&r.disablePagination!=null?r.disablePagination:!1,this.dynamicHeight=r&&r.dynamicHeight!=null?r.dynamicHeight:!1,r?.contentTabIndex!=null&&(this.contentTabIndex=r.contentTabIndex),this.preserveContent=!!r?.preserveContent,this.fitInkBarToContent=r&&r.fitInkBarToContent!=null?r.fitInkBarToContent:!1,this.stretchTabs=r&&r.stretchTabs!=null?r.stretchTabs:!0}ngAfterContentChecked(){let e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){let i=this._selectedIndex==null;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));let r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,r)=>{i.position=r-e,this._selectedIndex!=null&&i.position==0&&!i.origin&&(i.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 i=this._tabs.toArray(),r;for(let o=0;o{i[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Ve(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._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 i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let i=new Nr;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Ui(...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 i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.style.height=e+"px")}_removeTabBodyWrapperHeight(){let e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,i,r){i.focusIndex=r,e.disabled||(this.selectedIndex=r)}_getTabIndex(e){let i=this._lastFocusedTabIndex??this.selectedIndex;return e===i?0:-1}_tabFocusChanged(e,i){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=i)}static{this.\u0275fac=function(i){return new(i||t)(f(V),f(ke),f(Lr,8),f(Qe,8))}}static{this.\u0275cmp=M({type:t,selectors:[["mat-tab-group"]],contentQueries:function(i,r,o){if(i&1&&_t(o,di,5),i&2){let s;Y(s=X())&&(r._allTabs=s)}},viewQuery:function(i,r){if(i&1&&(me(id,5),me(nd,5)),i&2){let o;Y(o=X())&&(r._tabBodyWrapper=o.first),Y(o=X())&&(r._tabHeader=o.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:10,hostBindings:function(i,r){i&2&&(Ki("mat-"+(r.color||"primary")),Jn("--mat-tab-animation-duration",r.animationDuration),ne("mat-mdc-tab-group-dynamic-height",r.dynamicHeight)("mat-mdc-tab-group-inverted-header",r.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",r.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",q],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",q],dynamicHeight:[2,"dynamicHeight","dynamicHeight",q],selectedIndex:[2,"selectedIndex","selectedIndex",Xi],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",Xi],disablePagination:[2,"disablePagination","disablePagination",q],disableRipple:[2,"disableRipple","disableRipple",q],preserveContent:[2,"preserveContent","preserveContent",q],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],standalone:!0,features:[fe([{provide:ea,useExisting:t}]),ue,S],ngContentSelectors:Pr,decls:9,vars:8,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination","aria-label","aria-labelledby"],["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(i,r){if(i&1){let o=pe();gt(),d(0,"mat-tab-header",3,0),F("indexFocused",function(a){return B(o),U(r._focusChanged(a))})("selectFocusedIndex",function(a){return B(o),U(r.selectedIndex=a)}),tr(2,ad,8,17,"div",4,er),u(),G(4,ld,1,0),d(5,"div",5,1),tr(7,cd,1,13,"mat-tab-body",6,er),u()}i&2&&(x("selectedIndex",r.selectedIndex||0)("disableRipple",r.disableRipple)("disablePagination",r.disablePagination)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby),w(2),ir(r._tabs),w(2),Re(r._isServer?4:-1),w(),ne("_mat-animation-noopable",r._animationMode==="NoopAnimations"),w(2),ir(r._tabs))},dependencies:[_d,ta,js,xr,pn,ia],styles:['.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1}.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--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.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{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);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--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.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;height:var(--mdc-secondary-navigation-tab-container-height);font-family:var(--mat-tab-header-label-text-font, var(--mat-app-title-small-font));font-size:var(--mat-tab-header-label-text-size, var(--mat-app-title-small-size));letter-spacing:var(--mat-tab-header-label-text-tracking, var(--mat-app-title-small-tracking));line-height:var(--mat-tab-header-label-text-line-height, var(--mat-app-title-small-line-height));font-weight:var(--mat-tab-header-label-text-weight, var(--mat-app-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color, var(--mat-app-primary));border-top-width:var(--mdc-tab-indicator-active-indicator-height);border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color, var(--mat-app-on-surface))}.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, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color, var(--mat-app-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color, var(--mat-app-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color, var(--mat-app-primary))}.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, var(--mat-app-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color, var(--mat-app-on-surface));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, var(--mat-app-on-surface))}.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})}}return t})(),Nr=class{};var Mt=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ie({type:t})}static{this.\u0275inj=te({imports:[Mr,Mr]})}}return t})();var Dd="@",Id=(()=>{class t{constructor(e,i,r,o,s){this.doc=e,this.delegate=i,this.zone=r,this.animationType=o,this.moduleImpl=s,this._rendererFactoryPromise=null,this.scheduler=h(es,{optional:!0}),this.loadingSchedulerFn=h(Ed,{optional:!0})}ngOnDestroy(){this._engine?.flush()}loadImpl(){let e=()=>this.moduleImpl??import("./chunk-6XMBXF7Q.js").then(r=>r),i;return this.loadingSchedulerFn?i=this.loadingSchedulerFn(e):i=e(),i.catch(r=>{throw new H(5300,!1)}).then(({\u0275createEngine:r,\u0275AnimationRendererFactory:o})=>{this._engine=r(this.animationType,this.doc);let s=new o(this.delegate,this._engine,this.zone);return this.delegate=s,s})}createRenderer(e,i){let r=this.delegate.createRenderer(e,i);if(r.\u0275type===0)return r;typeof r.throwOnSyntheticProps=="boolean"&&(r.throwOnSyntheticProps=!1);let o=new Vr(r);return i?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(s=>{let a=s.createRenderer(e,i);o.use(a),this.scheduler?.notify(10)}).catch(s=>{o.use(r)}),o}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}static{this.\u0275fac=function(i){Yn()}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac})}}return t})(),Vr=class{constructor(n){this.delegate=n,this.replay=[],this.\u0275type=1}use(n){if(this.delegate=n,this.replay!==null){for(let e of this.replay)e(n);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}get destroyNode(){return this.delegate.destroyNode}appendChild(n,e){this.delegate.appendChild(n,e)}insertBefore(n,e,i,r){this.delegate.insertBefore(n,e,i,r)}removeChild(n,e,i){this.delegate.removeChild(n,e,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){this.shouldReplay(e)&&this.replay.push(r=>r.setProperty(n,e,i)),this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.shouldReplay(e)&&this.replay.push(r=>r.listen(n,e,i)),this.delegate.listen(n,e,i)}shouldReplay(n){return this.replay!==null&&n.startsWith(Dd)}},Ed=new D("");function ra(t="animations"){return ts("NgAsyncAnimations"),Zt([{provide:Wi,useFactory:(n,e,i)=>new Id(n,e,i,t),deps:[R,on,L]},{provide:Qe,useValue:t==="noop"?"NoopAnimations":"BrowserAnimations"}])}var I="primary",xi=Symbol("RouteTitle"),zr=class{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function kt(t){return new zr(t)}function Md(t,n,e){let i=e.path.split("/");if(i.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||i.lengthi[o]===r)}else return t===n}function pa(t){return t.length>0?t[t.length-1]:null}function et(t){return Vi(t)?t:Yi(t)?le(Promise.resolve(t)):C(t)}var Sd={exact:fa,subset:ga},ma={exact:Ad,subset:Td,ignored:()=>!0};function oa(t,n,e){return Sd[e.paths](t.root,n.root,e.matrixParams)&&ma[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Ad(t,n){return Le(t,n)}function fa(t,n,e){if(!ct(t.segments,n.segments)||!vn(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let i in n.children)if(!t.children[i]||!fa(t.children[i],n.children[i],e))return!1;return!0}function Td(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>ha(t[e],n[e]))}function ga(t,n,e){return va(t,n,n.segments,e)}function va(t,n,e,i){if(t.segments.length>e.length){let r=t.segments.slice(0,e.length);return!(!ct(r,e)||n.hasChildren()||!vn(r,e,i))}else if(t.segments.length===e.length){if(!ct(t.segments,e)||!vn(t.segments,e,i))return!1;for(let r in n.children)if(!t.children[r]||!ga(t.children[r],n.children[r],i))return!1;return!0}else{let r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!ct(t.segments,r)||!vn(t.segments,r,i)||!t.children[I]?!1:va(t.children[I],n,o,i)}}function vn(t,n,e){return n.every((i,r)=>ma[e](t[r].parameters,i.parameters))}var He=class{constructor(n=new O([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=kt(this.queryParams),this._queryParamMap}toString(){return Od.serialize(this)}},O=class{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return _n(this)}},lt=class{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=kt(this.parameters),this._parameterMap}toString(){return ba(this)}};function Rd(t,n){return ct(t,n)&&t.every((e,i)=>Le(e.parameters,n[i].parameters))}function ct(t,n){return t.length!==n.length?!1:t.every((e,i)=>e.path===n[i].path)}function kd(t,n){let e=[];return Object.entries(t.children).forEach(([i,r])=>{i===I&&(e=e.concat(n(r,i)))}),Object.entries(t.children).forEach(([i,r])=>{i!==I&&(e=e.concat(n(r,i)))}),e}var vo=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>new vi,providedIn:"root"})}}return t})(),vi=class{parse(n){let e=new Wr(n);return new He(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${ui(n.root,!0)}`,i=Pd(n.queryParams),r=typeof n.fragment=="string"?`#${Fd(n.fragment)}`:"";return`${e}${i}${r}`}},Od=new vi;function _n(t){return t.segments.map(n=>ba(n)).join("/")}function ui(t,n){if(!t.hasChildren())return _n(t);if(n){let e=t.children[I]?ui(t.children[I],!1):"",i=[];return Object.entries(t.children).forEach(([r,o])=>{r!==I&&i.push(`${r}:${ui(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}else{let e=kd(t,(i,r)=>r===I?[ui(t.children[I],!1)]:[`${r}:${ui(i,!1)}`]);return Object.keys(t.children).length===1&&t.children[I]!=null?`${_n(t)}/${e[0]}`:`${_n(t)}/(${e.join("//")})`}}function _a(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function fn(t){return _a(t).replace(/%3B/gi,";")}function Fd(t){return encodeURI(t)}function Gr(t){return _a(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function bn(t){return decodeURIComponent(t)}function sa(t){return bn(t.replace(/\+/g,"%20"))}function ba(t){return`${Gr(t.path)}${Nd(t.parameters)}`}function Nd(t){return Object.entries(t).map(([n,e])=>`;${Gr(n)}=${Gr(e)}`).join("")}function Pd(t){let n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(r=>`${fn(e)}=${fn(r)}`).join("&"):`${fn(e)}=${fn(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var Ld=/^[^\/()?;#]+/;function jr(t){let n=t.match(Ld);return n?n[0]:""}var Vd=/^[^\/()?;=#]+/;function jd(t){let n=t.match(Vd);return n?n[0]:""}var Bd=/^[^=?&#]+/;function Ud(t){let n=t.match(Bd);return n?n[0]:""}var Hd=/^[^&#]+/;function zd(t){let n=t.match(Hd);return n?n[0]:""}var Wr=class{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new O([],{}):new O([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[I]=new O(n,e)),i}parseSegment(){let n=jr(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new H(4009,!1);return this.capture(n),new lt(bn(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=jd(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let r=jr(this.remaining);r&&(i=r,this.capture(i))}n[bn(e)]=bn(i)}parseQueryParam(n){let e=Ud(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let s=zd(this.remaining);s&&(i=s,this.capture(i))}let r=sa(e),o=sa(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=jr(this.remaining),r=this.remaining[i.length];if(r!=="/"&&r!==")"&&r!==";")throw new H(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=I);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[I]:new O([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new H(4011,!1)}};function ya(t){return t.segments.length>0?new O([],{[I]:t}):t}function Ca(t){let n={};for(let[i,r]of Object.entries(t.children)){let o=Ca(r);if(i===I&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[i]=o)}let e=new O(t.segments,n);return $d(e)}function $d(t){if(t.numberOfChildren===1&&t.children[I]){let n=t.children[I];return new O(t.segments.concat(n.segments),n.children)}return t}function _i(t){return t instanceof He}function Gd(t,n,e=null,i=null){let r=wa(t);return Da(r,n,e,i)}function wa(t){let n;function e(o){let s={};for(let l of o.children){let c=e(l);s[l.outlet]=c}let a=new O(o.url,s);return o===t&&(n=a),a}let i=e(t.root),r=ya(i);return n??r}function Da(t,n,e,i){let r=t;for(;r.parent;)r=r.parent;if(n.length===0)return Br(r,r,r,e,i);let o=Wd(n);if(o.toRoot())return Br(r,r,new O([],{}),e,i);let s=qd(o,r,t),a=s.processChildren?mi(s.segmentGroup,s.index,o.commands):Ea(s.segmentGroup,s.index,o.commands);return Br(r,s.segmentGroup,a,e,i)}function yn(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function bi(t){return typeof t=="object"&&t!=null&&t.outlets}function Br(t,n,e,i,r){let o={};i&&Object.entries(i).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(m=>`${m}`):`${c}`});let s;t===n?s=e:s=Ia(t,n,e);let a=ya(Ca(s));return new He(a,o,r)}function Ia(t,n,e){let i={};return Object.entries(t.children).forEach(([r,o])=>{o===n?i[r]=e:i[r]=Ia(o,n,e)}),new O(t.segments,i)}var Cn=class{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&yn(i[0]))throw new H(4003,!1);let r=i.find(bi);if(r&&r!==pa(i))throw new H(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Wd(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Cn(!0,0,t);let n=0,e=!1,i=t.reduce((r,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?e=!0:a===".."?n++:a!=""&&r.push(a))}),r):[...r,o]},[]);return new Cn(e,n,i)}var At=class{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}};function qd(t,n,e){if(t.isAbsolute)return new At(n,!0,0);if(!e)return new At(n,!1,NaN);if(e.parent===null)return new At(e,!0,0);let i=yn(t.commands[0])?0:1,r=e.segments.length-1+i;return Zd(e,r,t.numberOfDoubleDots)}function Zd(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new H(4005,!1);r=i.segments.length}return new At(i,!1,r-o)}function Kd(t){return bi(t[0])?t[0].outlets:{[I]:t}}function Ea(t,n,e){if(t??=new O([],{}),t.segments.length===0&&t.hasChildren())return mi(t,n,e);let i=Qd(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndexo!==I)&&t.children[I]&&t.numberOfChildren===1&&t.children[I].segments.length===0){let o=mi(t.children[I],n,e);return new O(t.segments,o.children)}return Object.entries(i).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(r[o]=Ea(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{i[o]===void 0&&(r[o]=s)}),new O(t.segments,r)}}function Qd(t,n,e){let i=0,r=n,o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;let s=t.segments[r],a=e[i];if(bi(a))break;let l=`${a}`,c=i0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!la(l,c,s))return o;i+=2}else{if(!la(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}function qr(t,n,e){let i=t.segments.slice(0,n),r=0;for(;r{typeof i=="string"&&(i=[i]),i!==null&&(n[e]=qr(new O([],{}),0,i))}),n}function aa(t){let n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function la(t,n,e){return t==e.path&&Le(n,e.parameters)}var fi="imperative",oe=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(oe||{}),De=class{constructor(n,e){this.id=n,this.url=e}},yi=class extends De{constructor(n,e,i="imperative",r=null){super(n,e),this.type=oe.NavigationStart,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},dt=class extends De{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=oe.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},be=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(be||{}),Zr=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Zr||{}),Ue=class extends De{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=oe.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},ut=class extends De{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=oe.NavigationSkipped}},Ci=class extends De{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=oe.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},wn=class extends De{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=oe.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Kr=class extends De{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=oe.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Qr=class extends De{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=oe.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Yr=class extends De{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=oe.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Xr=class extends De{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=oe.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Jr=class{constructor(n){this.route=n,this.type=oe.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},eo=class{constructor(n){this.route=n,this.type=oe.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},to=class{constructor(n){this.snapshot=n,this.type=oe.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},io=class{constructor(n){this.snapshot=n,this.type=oe.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},no=class{constructor(n){this.snapshot=n,this.type=oe.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ro=class{constructor(n){this.snapshot=n,this.type=oe.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var wi=class{},Ot=class{constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function Xd(t,n){return t.providers&&!t._injector&&(t._injector=ns(t.providers,n,`Route: ${t.path}`)),t._injector??n}function Ne(t){return t.outlet||I}function Jd(t,n){let e=t.filter(i=>Ne(i)===n);return e.push(...t.filter(i=>Ne(i)!==n)),e}function Si(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var oo=class{get injector(){return Si(this.route?.snapshot)??this.rootInjector}set injector(n){}constructor(n){this.rootInjector=n,this.outlet=null,this.route=null,this.children=new An(this.rootInjector),this.attachRef=null}},An=(()=>{class t{constructor(e){this.rootInjector=e,this.contexts=new Map}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new oo(this.rootInjector),this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static{this.\u0275fac=function(i){return new(i||t)(v(Hi))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Dn=class{constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=so(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){let e=so(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=ao(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return ao(n,this._root).map(e=>e.value)}};function so(t,n){if(t===n.value)return n;for(let e of n.children){let i=so(t,e);if(i)return i}return null}function ao(t,n){if(t===n.value)return[n];for(let e of n.children){let i=ao(t,e);if(i.length)return i.unshift(n),i}return[]}var _e=class{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function St(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var In=class extends Dn{constructor(n,e){super(n),this.snapshot=e,_o(this,n)}toString(){return this.snapshot.toString()}};function Ma(t){let n=eu(t),e=new K([new lt("",{})]),i=new K({}),r=new K({}),o=new K({}),s=new K(""),a=new Ft(e,i,o,s,r,I,t,n.root);return a.snapshot=n.root,new In(new _e(a,[]),n)}function eu(t){let n={},e={},i={},r="",o=new Tt([],n,i,r,e,I,t,null,{});return new Mn("",new _e(o,[]))}var Ft=class{constructor(n,e,i,r,o,s,a,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(E(c=>c[xi]))??C(void 0),this.url=n,this.params=e,this.queryParams=i,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(E(n=>kt(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(E(n=>kt(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function En(t,n,e="emptyOnly"){let i,{routeConfig:r}=t;return n!==null&&(e==="always"||r?.path===""||!n.component&&!n.routeConfig?.loadComponent)?i={params:p(p({},n.params),t.params),data:p(p({},n.data),t.data),resolve:p(p(p(p({},t.data),n.data),r?.data),t._resolvedData)}:i={params:p({},t.params),data:p({},t.data),resolve:p(p({},t.data),t._resolvedData??{})},r&&Sa(r)&&(i.resolve[xi]=r.title),i}var Tt=class{get title(){return this.data?.[xi]}constructor(n,e,i,r,o,s,a,l,c){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}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??=kt(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=kt(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(i=>i.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},Mn=class extends Dn{constructor(n,e){super(e),this.url=n,_o(this,e)}toString(){return xa(this._root)}};function _o(t,n){n.value._routerState=t,n.children.forEach(e=>_o(t,e))}function xa(t){let n=t.children.length>0?` { ${t.children.map(xa).join(", ")} } `:"";return`${t.value}${n}`}function Ur(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Le(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),Le(n.params,e.params)||t.paramsSubject.next(e.params),xd(n.url,e.url)||t.urlSubject.next(e.url),Le(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function lo(t,n){let e=Le(t.params,n.params)&&Rd(t.url,n.url),i=!t.parent!=!n.parent;return e&&!i&&(!t.parent||lo(t.parent,n.parent))}function Sa(t){return typeof t.title=="string"||t.title===null}var tu=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=I,this.activateEvents=new k,this.deactivateEvents=new k,this.attachEvents=new k,this.detachEvents=new k,this.parentContexts=h(An),this.location=h(Ce),this.changeDetector=h(ke),this.inputBinder=h(bo,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),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 H(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new H(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new H(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,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,i){if(this.isActivated)throw new H(4013,!1);this._activatedRoute=e;let r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new co(e,a,r.injector);this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=T({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[qe]})}}return t})(),co=class t{__ngOutletInjector(n){return new t(this.route,this.childContexts,n)}constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Ft?this.route:n===An?this.childContexts:this.parent.get(n,e)}},bo=new D("");function iu(t,n,e){let i=Di(t,n._root,e?e._root:void 0);return new In(i,n)}function Di(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let r=nu(t,n,e);return new _e(i,r)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Di(t,a)),s}}let i=ru(n.value),r=n.children.map(o=>Di(t,o));return new _e(i,r)}}function nu(t,n,e){return n.children.map(i=>{for(let r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return Di(t,i,r);return Di(t,i)})}function ru(t){return new Ft(new K(t.url),new K(t.params),new K(t.queryParams),new K(t.fragment),new K(t.data),t.outlet,t.component,t)}var Ii=class{constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},Aa="ngNavigationCancelingError";function xn(t,n){let{redirectTo:e,navigationBehaviorOptions:i}=_i(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=Ta(!1,be.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function Ta(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[Aa]=!0,e.cancellationCode=n,e}function ou(t){return Ra(t)&&_i(t.url)}function Ra(t){return!!t&&t[Aa]}var su=(t,n,e,i)=>E(r=>(new uo(n,r.targetRouterState,r.currentRouterState,e,i).activate(t),r)),uo=class{constructor(n,e,i,r,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),Ur(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){let r=St(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(r===o)if(r.component){let s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=St(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(i&&i.outlet){let s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=St(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){let r=St(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new ro(o.value.snapshot))}),n.children.length&&this.forwardEvent(new io(n.value.snapshot))}activateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(Ur(r),r===o)if(r.component){let s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,i);else if(r.component){let s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Ur(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=r,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,i)}},Sn=class{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Rt=class{constructor(n,e){this.component=n,this.route=e}};function au(t,n,e){let i=t._root,r=n?n._root:null;return hi(i,r,e,[i.value])}function lu(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Pt(t,n){let e=Symbol(),i=n.get(t,e);return i===e?typeof t=="function"&&!Ho(t)?t:n.get(t):i}function hi(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=St(n);return t.children.forEach(s=>{cu(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>gi(a,e.getContext(s),r)),r}function cu(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=du(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Sn(i)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?hi(t,n,a?a.children:null,i,r):hi(t,n,e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Rt(a.outlet.component,s))}else s&&gi(n,a,r),r.canActivateChecks.push(new Sn(i)),o.component?hi(t,null,a?a.children:null,i,r):hi(t,null,e,i,r);return r}function du(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!ct(t.url,n.url);case"pathParamsOrQueryParamsChange":return!ct(t.url,n.url)||!Le(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!lo(t,n)||!Le(t.queryParams,n.queryParams);case"paramsChange":default:return!lo(t,n)}}function gi(t,n,e){let i=St(t),r=t.value;Object.entries(i).forEach(([o,s])=>{r.component?n?gi(s,n.children.getContext(o),e):gi(s,null,e):gi(s,n,e)}),r.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Rt(n.outlet.component,r)):e.canDeactivateChecks.push(new Rt(null,r)):e.canDeactivateChecks.push(new Rt(null,r))}function Ai(t){return typeof t=="function"}function uu(t){return typeof t=="boolean"}function hu(t){return t&&Ai(t.canLoad)}function pu(t){return t&&Ai(t.canActivate)}function mu(t){return t&&Ai(t.canActivateChild)}function fu(t){return t&&Ai(t.canDeactivate)}function gu(t){return t&&Ai(t.canMatch)}function ka(t){return t instanceof No||t?.name==="EmptyError"}var gn=Symbol("INITIAL_VALUE");function Nt(){return ce(t=>zt(t.map(n=>n.pipe(xe(1),Ve(gn)))).pipe(E(n=>{for(let e of n)if(e!==!0){if(e===gn)return gn;if(e===!1||vu(e))return e}return!0}),Q(n=>n!==gn),xe(1)))}function vu(t){return _i(t)||t instanceof Ii}function _u(t,n){return ye(e=>{let{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?C(j(p({},e),{guardsResult:!0})):bu(s,i,r,t).pipe(ye(a=>a&&uu(a)?yu(i,o,t,n):C(a)),E(a=>j(p({},e),{guardsResult:a})))})}function bu(t,n,e,i){return le(t).pipe(ye(r=>Eu(r.component,r.route,e,n,i)),We(r=>r!==!0,!0))}function yu(t,n,e,i){return le(n).pipe(Gt(r=>ji(wu(r.route.parent,i),Cu(r.route,i),Iu(t,r.path,e),Du(t,r.route,e))),We(r=>r!==!0,!0))}function Cu(t,n){return t!==null&&n&&n(new no(t)),C(!0)}function wu(t,n){return t!==null&&n&&n(new to(t)),C(!0)}function Du(t,n,e){let i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||i.length===0)return C(!0);let r=i.map(o=>$t(()=>{let s=Si(n)??e,a=Pt(o,s),l=pu(a)?a.canActivate(n,t):je(s,()=>a(n,t));return et(l).pipe(We())}));return C(r).pipe(Nt())}function Iu(t,n,e){let i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>lu(s)).filter(s=>s!==null).map(s=>$t(()=>{let a=s.guards.map(l=>{let c=Si(s.node)??e,m=Pt(l,c),_=mu(m)?m.canActivateChild(i,t):je(c,()=>m(i,t));return et(_).pipe(We())});return C(a).pipe(Nt())}));return C(o).pipe(Nt())}function Eu(t,n,e,i,r){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return C(!0);let s=o.map(a=>{let l=Si(n)??r,c=Pt(a,l),m=fu(c)?c.canDeactivate(t,n,e,i):je(l,()=>c(t,n,e,i));return et(m).pipe(We())});return C(s).pipe(Nt())}function Mu(t,n,e,i){let r=n.canLoad;if(r===void 0||r.length===0)return C(!0);let o=r.map(s=>{let a=Pt(s,t),l=hu(a)?a.canLoad(n,e):je(t,()=>a(n,e));return et(l)});return C(o).pipe(Nt(),Oa(i))}function Oa(t){return Fo(z(n=>{if(typeof n!="boolean")throw xn(t,n)}),E(n=>n===!0))}function xu(t,n,e,i){let r=n.canMatch;if(!r||r.length===0)return C(!0);let o=r.map(s=>{let a=Pt(s,t),l=gu(a)?a.canMatch(n,e):je(t,()=>a(n,e));return et(l)});return C(o).pipe(Nt(),Oa(i))}var Ei=class{constructor(n){this.segmentGroup=n||null}},Mi=class extends Error{constructor(n){super(),this.urlTree=n}};function xt(t){return Me(new Ei(t))}function Su(t){return Me(new H(4e3,!1))}function Au(t){return Me(Ta(!1,be.GuardRejected))}var ho=class{constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),r.numberOfChildren===0)return C(i);if(r.numberOfChildren>1||!r.children[I])return Su(`${n.redirectTo}`);r=r.children[I]}}applyRedirectCommands(n,e,i,r,o){if(typeof e!="string"){let a=e,{queryParams:l,fragment:c,routeConfig:m,url:_,outlet:P,params:ge,data:Z,title:se}=r,ae=je(o,()=>a({params:ge,data:Z,queryParams:l,fragment:c,routeConfig:m,url:_,outlet:P,title:se}));if(ae instanceof He)throw new Mi(ae);e=ae}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i);if(e[0]==="/")throw new Mi(s);return s}applyRedirectCreateUrlTree(n,e,i,r){let o=this.createSegmentGroup(n,e.root,i,r);return new He(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let i={};return Object.entries(n).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);i[r]=e[a]}else i[r]=o}),i}createSegmentGroup(n,e,i,r){let o=this.createSegments(n,e.segments,i,r),s={};return Object.entries(e.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(n,l,i,r)}),new O(o,s)}createSegments(n,e,i,r){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){let r=i[e.path.substring(1)];if(!r)throw new H(4001,!1);return r}findOrReturn(n,e){let i=0;for(let r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}},po={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Tu(t,n,e,i,r){let o=Fa(t,n,e);return o.matched?(i=Xd(n,i),xu(i,n,e,r).pipe(E(s=>s===!0?o:p({},po)))):C(o)}function Fa(t,n,e){if(n.path==="**")return Ru(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?p({},po):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(n.matcher||Md)(e,t,n);if(!r)return p({},po);let o={};Object.entries(r.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=r.consumed.length>0?p(p({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function Ru(t){return{matched:!0,parameters:t.length>0?pa(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function ca(t,n,e,i){return e.length>0&&Fu(t,e,i)?{segmentGroup:new O(n,Ou(i,new O(e,t.children))),slicedSegments:[]}:e.length===0&&Nu(t,e,i)?{segmentGroup:new O(t.segments,ku(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new O(t.segments,t.children),slicedSegments:e}}function ku(t,n,e,i){let r={};for(let o of e)if(Tn(t,n,o)&&!i[Ne(o)]){let s=new O([],{});r[Ne(o)]=s}return p(p({},i),r)}function Ou(t,n){let e={};e[I]=n;for(let i of t)if(i.path===""&&Ne(i)!==I){let r=new O([],{});e[Ne(i)]=r}return e}function Fu(t,n,e){return e.some(i=>Tn(t,n,i)&&Ne(i)!==I)}function Nu(t,n,e){return e.some(i=>Tn(t,n,i))}function Tn(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Pu(t,n,e){return n.length===0&&!t.children[e]}var mo=class{};function Lu(t,n,e,i,r,o,s="emptyOnly"){return new fo(t,n,e,i,r,s,o).recognize()}var Vu=31,fo=class{constructor(n,e,i,r,o,s,a){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new ho(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new H(4002,`'${n.segmentGroup}'`)}recognize(){let n=ca(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(E(({children:e,rootSnapshot:i})=>{let r=new _e(i,e),o=new Mn("",r),s=Gd(i,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(n){let e=new Tt([],Object.freeze({}),Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),I,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,I,e).pipe(E(i=>({children:i,rootSnapshot:e})),$e(i=>{if(i instanceof Mi)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof Ei?this.noMatchError(i):i}))}processSegmentGroup(n,e,i,r,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(n,e,i,o):this.processSegment(n,e,i,i.segments,r,!0,o).pipe(E(s=>s instanceof _e?[s]:[]))}processChildren(n,e,i,r){let o=[];for(let s of Object.keys(i.children))s==="primary"?o.unshift(s):o.push(s);return le(o).pipe(Gt(s=>{let a=i.children[s],l=Jd(e,s);return this.processSegmentGroup(n,l,a,s,r)}),Uo((s,a)=>(s.push(...a),s)),Gn(null),Bo(),ye(s=>{if(s===null)return xt(i);let a=Na(s);return ju(a),C(a)}))}processSegment(n,e,i,r,o,s,a){return le(e).pipe(Gt(l=>this.processSegmentAgainstRoute(l._injector??n,e,l,i,r,o,s,a).pipe($e(c=>{if(c instanceof Ei)return C(null);throw c}))),We(l=>!!l),$e(l=>{if(ka(l))return Pu(i,r,o)?C(new mo):xt(i);throw l}))}processSegmentAgainstRoute(n,e,i,r,o,s,a,l){return Ne(i)!==s&&(s===I||!Tn(r,o,i))?xt(r):i.redirectTo===void 0?this.matchSegmentAgainstRoute(n,r,i,o,s,l):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,r,e,i,o,s,l):xt(r)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s,a){let{matched:l,parameters:c,consumedSegments:m,positionalParamSegments:_,remainingSegments:P}=Fa(e,r,o);if(!l)return xt(e);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Vu&&(this.allowRedirects=!1));let ge=new Tt(o,c,Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,da(r),Ne(r),r.component??r._loadedComponent??null,r,ua(r)),Z=En(ge,a,this.paramsInheritanceStrategy);ge.params=Object.freeze(Z.params),ge.data=Object.freeze(Z.data);let se=this.applyRedirects.applyRedirectCommands(m,r.redirectTo,_,ge,n);return this.applyRedirects.lineralizeSegments(r,se).pipe(ye(ae=>this.processSegment(n,i,e,ae.concat(P),s,!1,a)))}matchSegmentAgainstRoute(n,e,i,r,o,s){let a=Tu(e,i,r,n,this.urlSerializer);return i.path==="**"&&(e.children={}),a.pipe(ce(l=>l.matched?(n=i._injector??n,this.getChildConfig(n,i,r).pipe(ce(({routes:c})=>{let m=i._loadedInjector??n,{parameters:_,consumedSegments:P,remainingSegments:ge}=l,Z=new Tt(P,_,Object.freeze(p({},this.urlTree.queryParams)),this.urlTree.fragment,da(i),Ne(i),i.component??i._loadedComponent??null,i,ua(i)),se=En(Z,s,this.paramsInheritanceStrategy);Z.params=Object.freeze(se.params),Z.data=Object.freeze(se.data);let{segmentGroup:ae,slicedSegments:ze}=ca(e,P,ge,c);if(ze.length===0&&ae.hasChildren())return this.processChildren(m,c,ae,Z).pipe(E(it=>new _e(Z,it)));if(c.length===0&&ze.length===0)return C(new _e(Z,[]));let Ht=Ne(i)===o;return this.processSegment(m,c,ae,ze,Ht?I:o,!0,Z).pipe(E(it=>new _e(Z,it instanceof _e?[it]:[])))}))):xt(e)))}getChildConfig(n,e,i){return e.children?C({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?C({routes:e._loadedRoutes,injector:e._loadedInjector}):Mu(n,e,i,this.urlSerializer).pipe(ye(r=>r?this.configLoader.loadChildren(n,e).pipe(z(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):Au(e))):C({routes:[],injector:n})}};function ju(t){t.sort((n,e)=>n.value.outlet===I?-1:e.value.outlet===I?1:n.value.outlet.localeCompare(e.value.outlet))}function Bu(t){let n=t.value.routeConfig;return n&&n.path===""}function Na(t){let n=[],e=new Set;for(let i of t){if(!Bu(i)){n.push(i);continue}let r=n.find(o=>i.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...i.children),e.add(r)):n.push(i)}for(let i of e){let r=Na(i.children);n.push(new _e(i.value,r))}return n.filter(i=>!e.has(i))}function da(t){return t.data||{}}function ua(t){return t.resolve||{}}function Uu(t,n,e,i,r,o){return ye(s=>Lu(t,n,e,i,s.extractedUrl,r,o).pipe(E(({state:a,tree:l})=>j(p({},s),{targetSnapshot:a,urlAfterRedirects:l}))))}function Hu(t,n){return ye(e=>{let{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return C(e);let o=new Set(r.map(l=>l.route)),s=new Set;for(let l of o)if(!s.has(l))for(let c of Pa(l))s.add(c);let a=0;return le(s).pipe(Gt(l=>o.has(l)?zu(l,i,t,n):(l.data=En(l,l.parent,t).resolve,C(void 0))),z(()=>a++),qn(1),ye(l=>a===s.size?C(e):ve))})}function Pa(t){let n=t.children.map(e=>Pa(e)).flat();return[t,...n]}function zu(t,n,e,i){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!Sa(r)&&(o[xi]=r.title),$u(o,t,n,i).pipe(E(s=>(t._resolvedData=s,t.data=En(t,t.parent,e).resolve,null)))}function $u(t,n,e,i){let r=$r(t);if(r.length===0)return C({});let o={};return le(r).pipe(ye(s=>Gu(t[s],n,e,i).pipe(We(),z(a=>{if(a instanceof Ii)throw xn(new vi,a);o[s]=a}))),qn(1),jo(o),$e(s=>ka(s)?ve:Me(s)))}function Gu(t,n,e,i){let r=Si(n)??i,o=Pt(t,r),s=o.resolve?o.resolve(n,e):je(r,()=>o(n,e));return et(s)}function Hr(t){return ce(n=>{let e=t(n);return e?le(e).pipe(E(()=>n)):C(n)})}var La=(()=>{class t{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===I);return i}getResolvedTitleForRoute(e){return e.data[xi]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>h(Wu),providedIn:"root"})}}return t})(),Wu=(()=>{class t extends La{constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}static{this.\u0275fac=function(i){return new(i||t)(v(Ss))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),yo=new D("",{providedIn:"root",factory:()=>({})}),qu=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=M({type:t,selectors:[["ng-component"]],standalone:!0,features:[S],decls:1,vars:0,template:function(i,r){i&1&&y(0,"router-outlet")},dependencies:[tu],encapsulation:2})}}return t})();function Co(t){let n=t.children&&t.children.map(Co),e=n?j(p({},t),{children:n}):p({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==I&&(e.component=qu),e}var wo=new D(""),Zu=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=h(nr)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return C(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let i=et(e.loadComponent()).pipe(E(Va),z(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),ht(()=>{this.componentLoaders.delete(e)})),r=new zn(i,()=>new A).pipe(Hn());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return C({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let o=Ku(i,this.compiler,e,this.onLoadEndListener).pipe(ht(()=>{this.childrenLoaders.delete(i)})),s=new zn(o,()=>new A).pipe(Hn());return this.childrenLoaders.set(i,s),s}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Ku(t,n,e,i){return et(t.loadChildren()).pipe(E(Va),ye(r=>r instanceof is||Array.isArray(r)?C(r):le(n.compileModuleAsync(r))),E(r=>{i&&i(t);let o,s,a=!1;return Array.isArray(r)?(s=r,a=!0):(o=r.create(e).injector,s=o.get(wo,[],{optional:!0,self:!0}).flat()),{routes:s.map(Co),injector:o}}))}function Qu(t){return t&&typeof t=="object"&&"default"in t}function Va(t){return Qu(t)?t.default:t}var Do=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>h(Yu),providedIn:"root"})}}return t})(),Yu=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Xu=new D("");var Ju=new D(""),eh=(()=>{class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new A,this.transitionAbortSubject=new A,this.configLoader=h(Zu),this.environmentInjector=h(Hi),this.urlSerializer=h(vo),this.rootContexts=h(An),this.location=h(Ji),this.inputBindingEnabled=h(bo,{optional:!0})!==null,this.titleStrategy=h(La),this.options=h(yo,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=h(Do),this.createViewTransition=h(Xu,{optional:!0}),this.navigationErrorHandler=h(Ju,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>C(void 0),this.rootComponentType=null;let e=r=>this.events.next(new Jr(r)),i=r=>this.events.next(new eo(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;this.transitions?.next(j(p(p({},this.transitions.value),e),{id:i}))}setupNavigations(e,i,r){return this.transitions=new K({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:fi,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Q(o=>o.id!==0),E(o=>j(p({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),ce(o=>{let s=!1,a=!1;return C(o).pipe(ce(l=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",be.SupersededByNewNavigation),ve;this.currentTransition=o,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:typeof l.extras.browserUrl=="string"?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?j(p({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),m=l.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!c&&m!=="reload"){let _="";return this.events.next(new ut(l.id,this.urlSerializer.serialize(l.rawUrl),_,Zr.IgnoredSameUrlNavigation)),l.resolve(!1),ve}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return C(l).pipe(ce(_=>{let P=this.transitions?.getValue();return this.events.next(new yi(_.id,this.urlSerializer.serialize(_.extractedUrl),_.source,_.restoredState)),P!==this.transitions?.getValue()?ve:Promise.resolve(_)}),Uu(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),z(_=>{o.targetSnapshot=_.targetSnapshot,o.urlAfterRedirects=_.urlAfterRedirects,this.currentNavigation=j(p({},this.currentNavigation),{finalUrl:_.urlAfterRedirects});let P=new wn(_.id,this.urlSerializer.serialize(_.extractedUrl),this.urlSerializer.serialize(_.urlAfterRedirects),_.targetSnapshot);this.events.next(P)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:_,extractedUrl:P,source:ge,restoredState:Z,extras:se}=l,ae=new yi(_,this.urlSerializer.serialize(P),ge,Z);this.events.next(ae);let ze=Ma(this.rootComponentType).snapshot;return this.currentTransition=o=j(p({},l),{targetSnapshot:ze,urlAfterRedirects:P,extras:j(p({},se),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=P,C(o)}else{let _="";return this.events.next(new ut(l.id,this.urlSerializer.serialize(l.extractedUrl),_,Zr.IgnoredByUrlHandlingStrategy)),l.resolve(!1),ve}}),z(l=>{let c=new Kr(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),E(l=>(this.currentTransition=o=j(p({},l),{guards:au(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),o)),_u(this.environmentInjector,l=>this.events.next(l)),z(l=>{if(o.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw xn(this.urlSerializer,l.guardsResult);let c=new Qr(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),Q(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",be.GuardRejected),!1)),Hr(l=>{if(l.guards.canActivateChecks.length)return C(l).pipe(z(c=>{let m=new Yr(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(m)}),ce(c=>{let m=!1;return C(c).pipe(Hu(this.paramsInheritanceStrategy,this.environmentInjector),z({next:()=>m=!0,complete:()=>{m||this.cancelNavigationTransition(c,"",be.NoDataFromResolver)}}))}),z(c=>{let m=new Xr(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(m)}))}),Hr(l=>{let c=m=>{let _=[];m.routeConfig?.loadComponent&&!m.routeConfig._loadedComponent&&_.push(this.configLoader.loadComponent(m.routeConfig).pipe(z(P=>{m.component=P}),E(()=>{})));for(let P of m.children)_.push(...c(P));return _};return zt(c(l.targetSnapshot.root)).pipe(Gn(null),xe(1))}),Hr(()=>this.afterPreactivation()),ce(()=>{let{currentSnapshot:l,targetSnapshot:c}=o,m=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return m?le(m).pipe(E(()=>o)):C(o)}),E(l=>{let c=iu(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=o=j(p({},l),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,o}),z(()=>{this.events.next(new wi)}),su(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),xe(1),z({next:l=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new dt(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{s=!0}}),ee(this.transitionAbortSubject.pipe(z(l=>{throw l}))),ht(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",be.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),$e(l=>{if(a=!0,Ra(l))this.events.next(new Ue(o.id,this.urlSerializer.serialize(o.extractedUrl),l.message,l.cancellationCode)),ou(l)?this.events.next(new Ot(l.url,l.navigationBehaviorOptions)):o.resolve(!1);else{let c=new Ci(o.id,this.urlSerializer.serialize(o.extractedUrl),l,o.targetSnapshot??void 0);try{let m=je(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(m instanceof Ii){let{message:_,cancellationCode:P}=xn(this.urlSerializer,m);this.events.next(new Ue(o.id,this.urlSerializer.serialize(o.extractedUrl),_,P)),this.events.next(new Ot(m.redirectTo,m.navigationBehaviorOptions))}else{this.events.next(c);let _=e.errorHandler(l);o.resolve(!!_)}}catch(m){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(m)}}return ve}))}))}cancelNavigationTransition(e,i,r){let o=new Ue(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function th(t){return t!==fi}var ih=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>h(nh),providedIn:"root"})}}return t})(),go=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},nh=(()=>{class t extends go{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ke(t)))(r||t)}})()}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ja=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:()=>h(rh),providedIn:"root"})}}return t})(),rh=(()=>{class t extends ja{constructor(){super(...arguments),this.location=h(Ji),this.urlSerializer=h(vo),this.options=h(yo,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=h(Do),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new He,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Ma(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(i=>{i.type==="popstate"&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof yi)this.stateMemento=this.createStateMemento();else if(e instanceof ut)this.rawUrlTree=i.initialUrl;else if(e instanceof wn){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(i.targetBrowserUrl??r,i)}}else e instanceof wi?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&!i.extras.skipLocationChange&&this.setBrowserUrl(i.targetBrowserUrl??this.rawUrlTree,i)):e instanceof Ue&&(e.code===be.GuardRejected||e.code===be.NoDataFromResolver)?this.restoreHistory(i):e instanceof Ci?this.restoreHistory(i,!0):e instanceof dt&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){let r=e instanceof He?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){let o=this.browserPageId,s=p(p({},i.extras.state),this.generateNgRouterState(i.id,o));this.location.replaceState(r,"",s)}else{let o=p(p({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(r,"",o)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,o=this.currentPageId-r;o!==0?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&o===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&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,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ke(t)))(r||t)}})()}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),pi=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(pi||{});function oh(t,n){t.events.pipe(Q(e=>e instanceof dt||e instanceof Ue||e instanceof Ci||e instanceof ut),E(e=>e instanceof dt||e instanceof ut?pi.COMPLETE:(e instanceof Ue?e.code===be.Redirect||e.code===be.SupersededByNewNavigation:!1)?pi.REDIRECTING:pi.FAILED),Q(e=>e!==pi.REDIRECTING),xe(1)).subscribe(()=>{n()})}function sh(t){throw t}var ah={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},lh={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ba=(()=>{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.console=h(Qi),this.stateManager=h(ja),this.options=h(yo,{optional:!0})||{},this.pendingTasks=h($o),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=h(eh),this.urlSerializer=h(vo),this.location=h(Ji),this.urlHandlingStrategy=h(Do),this._events=new A,this.errorHandler=this.options.errorHandler||sh,this.navigated=!1,this.routeReuseStrategy=h(ih),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=h(wo,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!h(bo,{optional:!0}),this.eventsSubscription=new Ie,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(i=>{try{let r=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(r!==null&&o!==null){if(this.stateManager.handleRouterEvent(i,o),i instanceof Ue&&i.code!==be.Redirect&&i.code!==be.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof dt)this.navigated=!0;else if(i instanceof Ot){let s=i.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),l=p({browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||th(r.source)},s);this.scheduleNavigation(a,fi,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}dh(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});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),fi,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,r){let o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){let l=p({},r);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let a=this.parseUrl(e);this.scheduleNavigation(a,i,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Co),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,i={}){let{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s,m=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":m=p(p({},this.currentUrlTree.queryParams),o);break;case"preserve":m=this.currentUrlTree.queryParams;break;default:m=o||null}m!==null&&(m=this.removeEmptyProps(m));let _;try{let P=r?r.snapshot:this.routerState.snapshot.root;_=wa(P)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),_=this.currentUrlTree.root}return Da(_,e,m,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=_i(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,fi,null,i)}navigate(e,i={skipLocationChange:!1}){return ch(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=p({},ah):i===!1?r=p({},lh):r=i,_i(e))return oa(this.currentUrlTree,e,r);let o=this.parseUrl(e);return oa(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,o])=>(o!=null&&(i[r]=o),i),{})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((_,P)=>{a=_,l=P});let m=this.pendingTasks.add();return oh(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(m))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(_=>Promise.reject(_))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function ch(t){for(let n=0;ne.\u0275providers)])}function hh(t){return t.routerState.root}function ph(){let t=h(Se);return n=>{let e=t.get(ti);if(n!==e.components[0])return;let i=t.get(Ba),r=t.get(mh);t.get(fh)===1&&i.initialNavigation(),t.get(gh,null,Kn.Optional)?.setUpPreloading(),t.get(uh,null,Kn.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var mh=new D("",{factory:()=>new A}),fh=new D("",{providedIn:"root",factory:()=>1});var gh=new D("");var Mo=new D("HIGHLIGHT_OPTIONS");function za(t){return[{provide:Mo,useValue:t}]}var Lt=function(t){return t.FULL_WITH_CORE_LIBRARY_IMPORTS="The full library and the core library were imported, only one of them should be imported!",t.FULL_WITH_LANGUAGE_IMPORTS="The highlighting languages were imported they are not needed!",t.CORE_WITHOUT_LANGUAGE_IMPORTS="The highlighting languages were not imported!",t.LANGUAGE_WITHOUT_CORE_IMPORTS="The core library was not imported!",t.NO_FULL_AND_NO_CORE_IMPORTS="Highlight.js library was not imported!",t}(Lt||{}),vh=(()=>{class t{constructor(){this.document=h(R),this.isPlatformBrowser=ni(h(Pe)),this.options=h(Mo,{optional:!0}),this._ready=new K(null),this.ready=Po(this._ready.asObservable().pipe(Q(e=>!!e))),this.isPlatformBrowser&&(this.document.defaultView.hljs?this._ready.next(this.document.defaultView.hljs):this._loadLibrary().pipe(ce(e=>this.options?.lineNumbersLoader?(this.document.defaultView.hljs=e,this.loadLineNumbers().pipe(z(i=>{i.activateLineNumbers(),this._ready.next(e)}))):(this._ready.next(e),ve)),$e(e=>(console.error("[HLJS] ",e),this._ready.error(e),ve))).subscribe(),this.options?.themePath&&this.loadTheme(this.options.themePath))}_loadLibrary(){if(this.options){if(this.options.fullLibraryLoader&&this.options.coreLibraryLoader)return Me(()=>Lt.FULL_WITH_CORE_LIBRARY_IMPORTS);if(this.options.fullLibraryLoader&&this.options.languages)return Me(()=>Lt.FULL_WITH_LANGUAGE_IMPORTS);if(this.options.coreLibraryLoader&&!this.options.languages)return Me(()=>Lt.CORE_WITHOUT_LANGUAGE_IMPORTS);if(!this.options.coreLibraryLoader&&this.options.languages)return Me(()=>Lt.LANGUAGE_WITHOUT_CORE_IMPORTS);if(this.options.fullLibraryLoader)return this.loadFullLibrary();if(this.options.coreLibraryLoader&&this.options.languages&&Object.keys(this.options.languages).length)return this.loadCoreLibrary().pipe(ce(e=>this._loadLanguages(e)))}return Me(()=>Lt.NO_FULL_AND_NO_CORE_IMPORTS)}_loadLanguages(e){let i=Object.entries(this.options.languages).map(([r,o])=>Io(o()).pipe(z(s=>e.registerLanguage(r,s))));return Bi(i).pipe(E(()=>e))}loadCoreLibrary(){return Io(this.options.coreLibraryLoader())}loadFullLibrary(){return Io(this.options.fullLibraryLoader())}loadLineNumbers(){return le(this.options.lineNumbersLoader())}setTheme(e){this.isPlatformBrowser&&(this._themeLinkElement?this._themeLinkElement.href=e:this.loadTheme(e))}loadTheme(e){this._themeLinkElement=this.document.createElement("link"),this._themeLinkElement.href=e,this._themeLinkElement.type="text/css",this._themeLinkElement.rel="stylesheet",this._themeLinkElement.media="screen,print",this.document.head.appendChild(this._themeLinkElement)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Io=t=>le(t).pipe(Q(n=>!!n?.default),E(n=>n.default)),_h=(()=>{class t{constructor(){this.loader=h(vh),this.options=h(Mo,{optional:!0}),this.hljsSignal=he(null),this.hljs=bt(()=>this.hljsSignal()),this.loader.ready.then(e=>{this.hljsSignal.set(e),this.options?.highlightOptions&&e.configure(this.options.highlightOptions)})}highlight(e,i){return de(this,null,function*(){return(yield this.loader.ready).highlight(e,i)})}highlightAuto(e,i){return de(this,null,function*(){return(yield this.loader.ready).highlightAuto(e,i)})}highlightElement(e){return de(this,null,function*(){(yield this.loader.ready).highlightElement(e)})}highlightAll(){return de(this,null,function*(){(yield this.loader.ready).highlightAll()})}configure(e){return de(this,null,function*(){(yield this.loader.ready).configure(e)})}registerLanguage(e,i){return de(this,null,function*(){(yield this.loader.ready).registerLanguage(e,i)})}unregisterLanguage(e){return de(this,null,function*(){(yield this.loader.ready).unregisterLanguage(e)})}registerAliases(r,o){return de(this,arguments,function*(e,{languageName:i}){(yield this.loader.ready).registerAliases(e,{languageName:i})})}listLanguages(){return de(this,null,function*(){return(yield this.loader.ready).listLanguages()})}getLanguage(e){return de(this,null,function*(){return(yield this.loader.ready).getLanguage(e)})}safeMode(){return de(this,null,function*(){(yield this.loader.ready).safeMode()})}debugMode(){return de(this,null,function*(){(yield this.loader.ready).debugMode()})}lineNumbersBlock(e,i){return de(this,null,function*(){let r=yield this.loader.ready;r.lineNumbersBlock&&r.lineNumbersBlock(e,i)})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Eo;function bh(){if(!Eo)try{Eo=window?.trustedTypes?.createPolicy("ngx-highlightjs",{createHTML:t=>t})}catch{}return Eo}function yh(t){return bh()?.createHTML(t)||t}var Ha=(()=>{class t{constructor(){this._hljs=h(_h),this._nativeElement=h(V).nativeElement,this._sanitizer=h(pr),this._platform=h(Pe),ni(this._platform)&&(ii(()=>{let e=this.code();this.setTextContent(e||""),e&&this.highlightElement(e)}),ii(()=>{let e=this.highlightResult();this.setInnerHTML(e?.value),this.highlighted.emit(e)}))}setTextContent(e){requestAnimationFrame(()=>this._nativeElement.textContent=e)}setInnerHTML(e){requestAnimationFrame(()=>this._nativeElement.innerHTML=yh(this._sanitizer.sanitize(Be.HTML,e)||""))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=T({type:t})}}return t})(),$a=(()=>{class t extends Ha{constructor(){super(...arguments),this.code=Kt(null,{alias:"highlight"}),this.highlightResult=he(null),this.highlighted=new k}highlightElement(e){return de(this,null,function*(){let i=yield this._hljs.highlight(e,{language:this.language,ignoreIllegals:this.ignoreIllegals});this.highlightResult.set(i)})}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ke(t)))(r||t)}})()}static{this.\u0275dir=T({type:t,selectors:[["","highlight",""]],hostVars:2,hostBindings:function(i,r){i&2&&ne("hljs",!0)},inputs:{code:[1,"highlight","code"],language:"language",ignoreIllegals:[2,"ignoreIllegals","ignoreIllegals",q]},outputs:{highlighted:"highlighted"},standalone:!0,features:[fe([{provide:Ha,useExisting:t}]),ue,$]})}}return t})();var Ri=(()=>{class t{viewContainerRef;constructor(e){this.viewContainerRef=e}static \u0275fac=function(i){return new(i||t)(f(Ce))};static \u0275dir=T({type:t,selectors:[["","dialogContent",""]],standalone:!0})}return t})(),Ga=new D("DIALOG_CONFIG"),Ti=new D("DIALOG_REF"),Wa=new D("HOST_DATA"),Rn=(()=>{class t{contentInsertionPoint;dialogRef=h(Ti);dialogConfig=h(Ga);hostData=h(Wa);constructor(){this.#t(),this.dialogConfig.closeOnBackdropClick&&this.#e()}#e(){this.dialogRef.nativeDialog.addEventListener("click",e=>{let i=this.dialogRef.nativeDialog.getBoundingClientRect();i.top<=e.clientY&&e.clientY<=i.top+i.height&&i.left<=e.clientX&&e.clientX<=i.left+i.width||this.dialogRef.close()},{once:!0})}#t(){this.dialogRef.nativeDialog.addEventListener("cancel",e=>{e.preventDefault(),this.dialogRef.close()})}static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,viewQuery:function(i,r){if(i&1&&me(Ri,7),i&2){let o;Y(o=X())&&(r.contentInsertionPoint=o.first)}}})}return t})(),xo=class{nativeDialog;animated;#e=new A;closed$=this.#e.asObservable();constructor(n,e){this.nativeDialog=n,this.animated=e}close(n){this.animated?this.#t(n):this.#i(n)}#t(n){this.animated?(this.nativeDialog.classList.remove("ngx-zero-dialog-visible"),this.nativeDialog.addEventListener("transitionend",()=>{this.#i(n)},{once:!0})):this.#i(n)}#i(n){this.nativeDialog.close(),this.#e.next(n)}},So=new D("DIALOG_DATA"),qa=new D("NGX_ZERO_DIALOG_CONFIG"),Za=t=>({provide:qa,useValue:t}),kn=(()=>{class t{ngxZeroDialogConfig=h(qa);parentInjector=h(Se);appRef=h(ti);document=h(R);openDialog(e,i){return $t(()=>{let r=this.normalizeConfig(i),o=this.createDialogRef(r),s=this.createDialogInjector(this.parentInjector,o,r.dialogData),a=this.createHostInjector(this.parentInjector,r.hostData,r,o),l=hs(r.hostComponent,{environmentInjector:this.appRef.injector,elementInjector:a});this.appRef.attachView(l.hostView),this.document.getElementById(this.ngxZeroDialogConfig.containerNodeID).appendChild(o.nativeDialog),o.nativeDialog.appendChild(this.getComponentRootNode(l));let c;return e instanceof Ae?c=l.instance.contentInsertionPoint.viewContainerRef.createEmbeddedView(e,{$implicit:o,data:r.dialogData,injector:s}):c=l.instance.contentInsertionPoint.viewContainerRef.createComponent(e,{injector:s}),o.nativeDialog.showModal(),r.animated&&o.nativeDialog.classList.add("ngx-zero-dialog-visible"),o.closed$.pipe(xe(1),ht(()=>{this.cleanupDialog(o.nativeDialog.id,l,c)}))})}createDialogRef(e){let i=document.createElement("dialog"),r=`dialog-${Date.now()}`;return i.setAttribute("aria-modal","true"),i.setAttribute("role","dialog"),i.setAttribute("id",r),i.classList.add("ngx-zero-dialog"),e.dialogNodeClass&&i.classList.add(e.dialogNodeClass),e.animated?i.classList.add("ngx-zero-dialog-hidden"):i.classList.add("ngx-zero-dialog-visible"),new xo(i,e.animated)}cleanupDialog(e,i,r){r.destroy(),i.hostView.destroy(),i.destroy(),this.document.getElementById(this.ngxZeroDialogConfig.containerNodeID).removeChild(this.document.getElementById(e))}getComponentRootNode(e){return e.hostView.rootNodes[0]}normalizeConfig(e){return{closeOnBackdropClick:e?.closeOnBackdropClick??!0,dialogData:e?.dialogData??{},hostComponent:e?.hostComponent,animated:this.ngxZeroDialogConfig.enableAnimations??e?.animated??!0,hostData:e?.hostData??{}}}createDialogInjector(e,i,r){return Se.create({parent:e,providers:[{provide:Ti,useValue:i},{provide:So,useValue:r}]})}createHostInjector(e,i,r,o){return Se.create({parent:e,providers:[{provide:Wa,useValue:i},{provide:Ga,useValue:r},{provide:Ti,useValue:o}]})}static \u0275fac=function(i){return new(i||t)};static \u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ka=[];var Qa={providers:[ds({eventCoalescing:!0}),Ua(Ka),za({fullLibraryLoader:()=>import("./chunk-3BT227LN.js")}),ra(),{provide:Lr,useValue:{animationDuration:100}},Za({containerNodeID:"ngx-zero-dialog-container",enableAnimations:!0})]};var nl=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static{this.\u0275fac=function(i){return new(i||t)(f(qi),f(V))}}static{this.\u0275dir=T({type:t})}}return t})(),Ch=(()=>{class t extends nl{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ke(t)))(r||t)}})()}static{this.\u0275dir=T({type:t,features:[$]})}}return t})(),rl=new D("");var wh={provide:rl,useExisting:Wt(()=>Ut),multi:!0};function Dh(){let t=yt()?yt().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var Ih=new D(""),Ut=(()=>{class t extends nl{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!Dh())}writeValue(e){let i=e??"";this.setProperty("value",i)}_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)}static{this.\u0275fac=function(i){return new(i||t)(f(qi),f(V),f(Ih,8))}}static{this.\u0275dir=T({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(i,r){i&1&&F("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},features:[fe([wh]),$]})}}return t})();var Eh=new D(""),Mh=new D("");function ol(t){return t!=null}function sl(t){return Yi(t)?le(t):t}function al(t){let n={};return t.forEach(e=>{n=e!=null?p(p({},n),e):n}),Object.keys(n).length===0?null:n}function ll(t,n){return n.map(e=>e(t))}function xh(t){return!t.validate}function cl(t){return t.map(n=>xh(n)?n:e=>n.validate(e))}function Sh(t){if(!t)return null;let n=t.filter(ol);return n.length==0?null:function(e){return al(ll(e,n))}}function dl(t){return t!=null?Sh(cl(t)):null}function Ah(t){if(!t)return null;let n=t.filter(ol);return n.length==0?null:function(e){let i=ll(e,n).map(sl);return Bi(i).pipe(E(al))}}function ul(t){return t!=null?Ah(cl(t)):null}function Ya(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function hl(t){return t._rawValidators}function pl(t){return t._rawAsyncValidators}function Ao(t){return t?Array.isArray(t)?t:[t]:[]}function Fn(t,n){return Array.isArray(t)?t.includes(n):t===n}function Xa(t,n){let e=Ao(n);return Ao(t).forEach(r=>{Fn(e,r)||e.push(r)}),e}function Ja(t,n){return Ao(n).filter(e=>!Fn(t,e))}var To=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(n){this._rawValidators=n||[],this._composedValidatorFn=dl(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=ul(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return this.control?this.control.hasError(n,e):!1}getError(n,e){return this.control?this.control.getError(n,e):null}};var Pi=class extends To{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Ro=class{constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},Th={"[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"},uv=j(p({},Th),{"[class.ng-submitted]":"isSubmitted"}),Ln=(()=>{class t extends Ro{constructor(e){super(e)}static{this.\u0275fac=function(i){return new(i||t)(f(Pi,2))}}static{this.\u0275dir=T({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&ne("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[$]})}}return t})();var ki="VALID",On="INVALID",Vt="PENDING",Oi="DISABLED",Bt=class{},Nn=class extends Bt{constructor(n,e){super(),this.value=n,this.source=e}},Fi=class extends Bt{constructor(n,e){super(),this.pristine=n,this.source=e}},Ni=class extends Bt{constructor(n,e){super(),this.touched=n,this.source=e}},jt=class extends Bt{constructor(n,e){super(),this.status=n,this.source=e}};function Rh(t){return(Vn(t)?t.validators:t)||null}function kh(t){return Array.isArray(t)?dl(t):t||null}function Oh(t,n){return(Vn(n)?n.asyncValidators:t)||null}function Fh(t){return Array.isArray(t)?ul(t):t||null}function Vn(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}var ko=class{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=bt(()=>this.statusReactive()),this.statusReactive=he(void 0),this._pristine=bt(()=>this.pristineReactive()),this.pristineReactive=he(!0),this._touched=bt(()=>this.touchedReactive()),this.touchedReactive=he(!1),this._events=new A,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return rt(this.statusReactive)}set status(n){rt(()=>this.statusReactive.set(n))}get valid(){return this.status===ki}get invalid(){return this.status===On}get pending(){return this.status==Vt}get disabled(){return this.status===Oi}get enabled(){return this.status!==Oi}get pristine(){return rt(this.pristineReactive)}set pristine(n){rt(()=>this.pristineReactive.set(n))}get dirty(){return!this.pristine}get touched(){return rt(this.touchedReactive)}set touched(n){rt(()=>this.touchedReactive.set(n))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(Xa(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Xa(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(Ja(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(Ja(n,this._rawAsyncValidators))}hasValidator(n){return Fn(this._rawValidators,n)}hasAsyncValidator(n){return Fn(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched(j(p({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new Ni(!0,i))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(n))}markAsUntouched(n={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:i})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,i),e&&n.emitEvent!==!1&&this._events.next(new Ni(!1,i))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty(j(p({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new Fi(!1,i))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,i),e&&n.emitEvent!==!1&&this._events.next(new Fi(!0,i))}markAsPending(n={}){this.status=Vt;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new jt(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending(j(p({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=Oi,this.errors=null,this._forEachChild(r=>{r.disable(j(p({},n),{onlySelf:!0}))}),this._updateValue();let i=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Nn(this.value,i)),this._events.next(new jt(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(j(p({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=ki,this._forEachChild(i=>{i.enable(j(p({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(j(p({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n,e){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ki||this.status===Vt)&&this._runAsyncValidator(i,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Nn(this.value,e)),this._events.next(new jt(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(j(p({},n),{sourceControl:e}))}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Oi:ki}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=Vt,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let i=sl(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(n){let e=n;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){let i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,e,i){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||i)&&this._events.next(new jt(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,i)}_initObservables(){this.valueChanges=new k,this.statusChanges=new k}_calculateStatus(){return this._allControlsDisabled()?Oi:this.errors?On:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Vt)?Vt:this._anyControlsHaveStatus(On)?On:ki}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,e){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,e),r&&this._events.next(new Fi(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new Ni(this.touched,e)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,e)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Vn(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=kh(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=Fh(this._rawAsyncValidators)}};var ml=new D("CallSetDisabledState",{providedIn:"root",factory:()=>Oo}),Oo="always";function Nh(t,n,e=Oo){Lh(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),jh(t,n),Uh(t,n),Bh(t,n),Ph(t,n)}function el(t,n,e=!0){let i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),Vh(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Pn(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function Ph(t,n){if(n.valueAccessor.setDisabledState){let e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function Lh(t,n){let e=hl(t);n.validator!==null?t.setValidators(Ya(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let i=pl(t);n.asyncValidator!==null?t.setAsyncValidators(Ya(i,n.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();Pn(n._rawValidators,r),Pn(n._rawAsyncValidators,r)}function Vh(t,n){let e=!1;if(t!==null){if(n.validator!==null){let r=hl(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(n.asyncValidator!==null){let r=pl(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}let i=()=>{};return Pn(n._rawValidators,i),Pn(n._rawAsyncValidators,i),e}function jh(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&fl(t,n)})}function Bh(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&fl(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function fl(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Uh(t,n){let e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function Hh(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function zh(t){return Object.getPrototypeOf(t.constructor)===Ch}function $h(t,n){if(!n)return null;Array.isArray(n);let e,i,r;return n.forEach(o=>{o.constructor===Ut?e=o:zh(o)?i=o:r=o}),r||i||e||null}function tl(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function il(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var jn=class extends ko{constructor(n=null,e,i){super(Rh(e),Oh(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Vn(e)&&(e.nonNullable||e.initialValueIsDefault)&&(il(n)?this.defaultValue=n.value:this.defaultValue=n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){tl(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){tl(this._onDisabledChange,n)}_forEachChild(n){}_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(n){il(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};var gl=new D(""),Gh={provide:Pi,useExisting:Wt(()=>Li)},Li=(()=>{class t extends Pi{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=s,this.update=new k,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=$h(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let i=e.form.previousValue;i&&el(i,this,!1),Nh(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Hh(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&el(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")}static{this.\u0275fac=function(i){return new(i||t)(f(Eh,10),f(Mh,10),f(rl,10),f(gl,8),f(ml,8))}}static{this.\u0275dir=T({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[fe([Gh]),$,qe]})}}return t})();var Wh=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ie({type:t})}static{this.\u0275inj=te({})}}return t})();var Bn=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:gl,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:ml,useValue:e.callSetDisabledState??Oo}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=ie({type:t})}static{this.\u0275inj=te({imports:[Wh]})}}return t})();function Zh(t,n){t&1&&(d(0,"span",2),g(1,"Copied!"),u())}function Kh(t,n){t&1&&(Ze(),d(0,"svg",3),y(1,"path",4)(2,"path",5)(3,"path",6)(4,"path",7),u())}var tt=(()=>{class t{code=Kt.required();language=Kt.required();showCopied=new K(!1);constructor(){}ngOnInit(){}copy(){navigator.clipboard.writeText(this.code()),this.showCopied.next(!0),Vo(1300).subscribe(()=>{this.showCopied.next(!1)})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=M({type:t,selectors:[["app-code-snippet"]],inputs:{code:[1,"code"],language:[1,"language"]},standalone:!0,features:[S],decls:8,vars:5,consts:[[1,"code-snippet",3,"highlight","language"],[1,"copy",3,"click"],[1,"copied-msg"],["xmlns","http://www.w3.org/2000/svg","width","16","height","17","viewBox","0 0 16 17","fill","currentColor"],["d","M6 11L10 11","stroke","currentColor","stroke-width","1.5","stroke-linecap","round"],["d","M6 7.5L10 7.5","stroke","currentColor","stroke-width","1.5","stroke-linecap","round"],["d","M10.4276 1.89483L10.0587 2.54782L10.4276 1.89483ZM10.0587 2.54782C10.1745 2.61328 10.25 2.73581 10.25 2.875H11.75C11.75 2.17321 11.3641 1.56252 10.7965 1.24184L10.0587 2.54782ZM10.25 2.875C10.25 3.08211 10.0821 3.25 9.875 3.25V4.75C10.9105 4.75 11.75 3.91053 11.75 2.875H10.25ZM9.875 3.25H6.125V4.75H9.875V3.25ZM6.125 3.25C5.91789 3.25 5.75 3.08211 5.75 2.875H4.25C4.25 3.91053 5.08947 4.75 6.125 4.75V3.25ZM5.75 2.875C5.75 2.73581 5.82549 2.61328 5.94134 2.54782L5.2035 1.24184C4.63591 1.56252 4.25 2.17321 4.25 2.875H5.75ZM6.83547 1.96879C6.99867 1.83183 7.20755 1.75 7.4375 1.75V0.25C6.8419 0.25 6.29446 0.464579 5.87119 0.819809L6.83547 1.96879ZM7.4375 1.75H8.5625V0.25H7.4375V1.75ZM8.5625 1.75C8.79245 1.75 9.00133 1.83183 9.16453 1.96879L10.1288 0.819809C9.70554 0.464579 9.1581 0.25 8.5625 0.25V1.75ZM5.94134 2.54782C6.18668 2.40922 6.53668 2.21955 6.83547 1.96879L5.87119 0.819809C5.70159 0.962146 5.49057 1.07966 5.2035 1.24184L5.94134 2.54782ZM10.7965 1.24184C10.5094 1.07966 10.2984 0.962146 10.1288 0.819809L9.16453 1.96879C9.46332 2.21955 9.81332 2.40922 10.0587 2.54782L10.7965 1.24184Z","fill","currentColor"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.55556 5.88889C2.55556 4.60022 3.60022 3.55556 4.88889 3.55556H5.22222L6 2H4.88889C2.74111 2 1 3.74111 1 5.88889V12.1111C1 14.2589 2.74111 16 4.88889 16H11.1111C13.2589 16 15 14.2589 15 12.1111V5.88889C15 3.74111 13.2589 2 11.1111 2H10L10.7778 3.55556H11.1111C12.3998 3.55556 13.4444 4.60022 13.4444 5.88889V12.1111C13.4444 13.3998 12.3998 14.4444 11.1111 14.4444H4.88889C3.60022 14.4444 2.55556 13.3998 2.55556 12.1111V5.88889Z","fill","currentColor"]],template:function(i,r){i&1&&(d(0,"pre"),g(1," "),y(2,"div",0),g(3,` +`),u(),d(4,"div",1),F("click",function(){return r.copy()}),G(5,Zh,2,0,"span",2),ss(6,"async"),G(7,Kh,5,0,":svg:svg",3),u()),i&2&&(w(2),x("highlight",r.code())("language",r.language()),w(3),Re(as(6,3,r.showCopied)?5:7))},dependencies:[re,vs,$a],styles:["[_nghost-%COMP%]{position:relative;display:block;overflow:hidden}pre[_ngcontent-%COMP%]{display:flex}.code-snippet[_ngcontent-%COMP%]{line-height:24px;width:100%;font-family:monospace;background:#f6f8fa}.copy[_ngcontent-%COMP%]{position:absolute;cursor:pointer;top:16px;right:16px}.copied-msg[_ngcontent-%COMP%]{color:#2d2}"],changeDetection:0})}return t})();var Un=(()=>{class t{active=!1;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=M({type:t,selectors:[["app-show-code-btn"]],hostVars:1,hostBindings:function(i,r){i&2&&Te("data-active",r.active)},inputs:{active:"active"},standalone:!0,features:[S],decls:3,vars:0,consts:[[1,"devicon-html5-plain-wordmark"],[1,"devicon-typescript-plain"]],template:function(i,r){i&1&&(g(0,"code "),y(1,"i",0)(2,"i",1))},dependencies:[re],styles:["[_nghost-%COMP%]{display:flex;width:fit-content;gap:8px;align-items:center;font-size:16px;border:1px solid transparent;transition:all .2s ease-in-out;padding:12px;border-radius:12px;cursor:pointer}[_nghost-%COMP%]:hover{border:1px solid rgba(0,0,0,.3)}[data-active=true][_nghost-%COMP%]{background:#f6f8fa}[data-active=true][_nghost-%COMP%]:hover{border:1px solid transparent}[_nghost-%COMP%]::selection{background:unset}"],changeDetection:0})}return t})();function Qh(t,n){}var _l=(()=>{class t extends Rn{constructor(){super()}close(){this.dialogRef.close()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=M({type:t,selectors:[["dialog-host"]],standalone:!0,features:[$,S],decls:6,vars:1,consts:[[1,"title"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg",1,"close",3,"click"],["fill-rule","evenodd","clip-rule","evenodd","d","M5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929Z","fill","currentColor"],[1,"content"],["dialogContent",""]],template:function(i,r){i&1&&(d(0,"div",0),g(1),u(),Ze(),d(2,"svg",1),F("click",function(){return r.close()}),y(3,"path",2),u(),zi(),d(4,"div",3),G(5,Qh,0,0,"ng-template",4),u()),i&2&&(w(),Ye(r.hostData.title))},dependencies:[Ri],styles:["[_nghost-%COMP%]{display:block;background:#fff;padding:12px;border-radius:12px;position:relative;width:500px;height:auto;max-height:500px}.title[_ngcontent-%COMP%]{text-align:center;padding:0 64px;font-size:24px;font-weight:700}.close[_ngcontent-%COMP%]{position:absolute;top:12px;right:12px;cursor:pointer}"]})}return t})();var bl=(()=>{class t{data=h(So);dialogRef=h(Ti);result=he("");setResult(e){let i=e.target.value;this.result.set(i)}close(){this.dialogRef.close(this.result())}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=M({type:t,selectors:[["app-dialog"]],standalone:!0,features:[S],decls:6,vars:1,consts:[[1,"greetings"],[1,"form"],["type","text","placeholder","How old are you?",3,"input"],[3,"click"]],template:function(i,r){i&1&&(d(0,"div",0),g(1),u(),d(2,"div",1)(3,"input",2),F("input",function(s){return r.setResult(s)}),u(),d(4,"button",3),F("click",function(){return r.close()}),g(5,"Submit"),u()()),i&2&&(w(),ei("Hello, ",r.data.name,""))},dependencies:[re],styles:["[_nghost-%COMP%]{display:block;padding:32px}.form[_ngcontent-%COMP%]{padding:24px 0;display:flex;gap:12px;align-items:center}"],changeDetection:0})}return t})();function Yh(t,n){if(t&1&&(d(0,"blockquote"),g(1," To make dialog dimensions works normal in Safari, you should "),y(2,"br"),g(3," explicitly set "),d(4,"code"),g(5,"height: auto"),u(),g(6," for your dialog host element "),u(),d(7,"mat-tab-group",2)(8,"mat-tab",3),y(9,"app-code-snippet",4),u(),d(10,"mat-tab",5),y(11,"app-code-snippet",6),u(),d(12,"mat-tab",7),y(13,"app-code-snippet",4),u(),d(14,"mat-tab",8),y(15,"app-code-snippet",6),u()()),t&2){let e=W();w(9),x("code",e.htmlCode),w(2),x("code",e.tsCode),w(2),x("code",e.dialogTemplateCode),w(2),x("code",e.dialogHostCode)}}function Xh(t,n){t&1&&g(0),t&2&&ei(" Dialog result: ",n," ")}function Jh(t,n){if(t&1){let e=pe();d(0,"div",1),y(1,"input",9),d(2,"button",10),F("click",function(){B(e);let r=W();return U(r.openComponentBasedDialog())}),g(3,"Open dialog"),u(),G(4,Xh,1,1),u()}if(t&2){let e,i=W();w(),x("formControl",i.nameCtrl),w(3),Re((e=i.result())?4:-1,e)}}var yl=(()=>{class t{ngxZeroDialogService=h(kn);nameCtrl=new jn("");mode=he("demo");result=he("");htmlCode=` + + + `;tsCode=` + @Component({ + ... + }) + export class ComponentDialogExample { + private readonly ngxZeroDialogService = inject(NgxZeroDialogService); + + readonly nameCtrl = new FormControl(''); + + openComponentBasedDialog() { + this.ngxZeroDialogService + .openDialog(DialogComponent, { + hostComponent: AppDialogHostComponent, + hostData: { + title: 'Component-based dialog', + }, + dialogData: { + name: this.nameCtrl.value, + }, + }) + .subscribe((result) => alert(\`You answered: {result}\`)); + } + } + + + export interface ComponentDialogData { name: string; } + export type ComponentDialogResult = string; + + @Component({ + standalone: true, + selector: 'app-dialog', + templateUrl: 'dialog.component.html', + }) + export class DialogComponent { + readonly data = inject(DIALOG_DATA); + + private readonly dialogRef = inject(DIALOG_REF); + + private readonly result = signal(''); + + setResult(event: Event) { + const value = (event.target as HTMLInputElement).value; + this.result.set(value); + } + + close() { + this.dialogRef.close(this.result()); + } + } + `;dialogTemplateCode=` +
Hello, {{ data.name }}
+ + + `;dialogHostCode=` + interface AppDialogHostData { title: string; } + + @Component({ + standalone: true, + selector: 'app-dialog-host', + template: \` +
+ {{ hostData.title }} + +
+ +
+ +
+ \`, + imports: [DialogContentDirective], + }) + export class DialogHostComponent extends NgxZeroDialogHost { + constructor() { + super(); + } + + close() { + this.dialogRef.close(); + } + } + `;openComponentBasedDialog(){this.ngxZeroDialogService.openDialog(bl,{hostComponent:_l,hostData:{title:"Component-based dialog"},dialogData:{name:this.nameCtrl.value}}).subscribe(e=>this.result.set(e))}toggleCode(){this.mode.set(this.mode()==="code"?"demo":"code")}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=M({type:t,selectors:[["app-component-example"]],standalone:!0,features:[S],decls:5,vars:2,consts:[[3,"click","active"],[1,"form"],["disableRipple",""],["label","HTML"],["language","html",3,"code"],["label","TS"],["language","typescript",3,"code"],["label","dialog.component.html"],["label","dialog-host.component.ts"],["type","text","placeholder","What's your name?",3,"formControl"],[3,"click"]],template:function(i,r){i&1&&(d(0,"h2"),g(1," Component-based dialog "),d(2,"app-show-code-btn",0),F("click",function(){return r.toggleCode()}),u()(),G(3,Yh,16,4)(4,Jh,5,2,"div",1)),i&2&&(w(2),x("active",r.mode()==="code"),w(),Re(r.mode()==="code"?3:4))},dependencies:[Bn,Ut,Ln,Li,Mt,di,mn,Un,tt],styles:["[_nghost-%COMP%]{display:block;padding:24px 0}.form[_ngcontent-%COMP%]{padding:24px 0;display:flex;gap:12px;align-items:center}mat-tab-group[_ngcontent-%COMP%]{padding:12px 0 24px}h2[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}app-code-snippet[_ngcontent-%COMP%]{border-radius:0 0 12px 12px}"],changeDetection:0})}return t})();var Cl=(()=>{class t{defaultAnimationCode=` + dialog.ngx-zero-dialog-hidden { + opacity: 0; + transition: all 0.2s ease-in-out; + + &::backdrop { + opacity: 0; + transition: all 0.2s ease-in-out; + } + } + + dialog.ngx-zero-dialog-visible { + opacity: 1; + + &::backdrop { + opacity: 1; + background: rgba(0, 0, 0, 0.6); + backdrop-filter: blur(5px); + } + } + `;customAnimation=` + dialog.ngx-zero-dialog-hidden { + transform: translateY(1000px); + } + + dialog.ngx-zero-dialog-visible { + transform: unset; + + // &::backdrop { + // backdrop style is customizable too + // } + } + `;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=M({type:t,selectors:[["app-custom-animation"]],standalone:!0,features:[S],decls:22,vars:2,consts:[[1,"text"],["language","css",3,"code"],[1,"text","mt-24"]],template:function(i,r){i&1&&(d(0,"h2"),g(1,"Custom animations"),u(),d(2,"p",0),g(3,` Ngx-zero-dialog comes with simple pre-built animation, take a look: +`),u(),y(4,"app-code-snippet",1),d(5,"p",2),g(6," This demo page uses customized animation which plays with transform property. "),d(7,"code"),g(8,".ngx-zero-dialog-hidden"),u(),g(9," is a starting hidden state of dialog, and "),d(10,"code"),g(11,".ngx-zero-dialog-visible"),u(),g(12," is a final state of dialog. When "),d(13,"code"),g(14,"enableAnimations: false"),u(),g(15," is provided in config - only "),d(16,"code"),g(17,".ngx-zero-dialog-visible"),u(),g(18," will be applied to dialog element and dialog won't play animation. "),y(19,"br"),g(20,` To adjust animation, add this scss in your global styles.scss file: +`),u(),y(21,"app-code-snippet",1)),i&2&&(w(4),x("code",r.defaultAnimationCode),w(17),x("code",r.customAnimation))},dependencies:[tt],styles:["app-code-snippet[_ngcontent-%COMP%]{border-radius:12px}.mt-24[_ngcontent-%COMP%]{margin-top:16px}"],changeDetection:0})}return t})();var wl=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=M({type:t,selectors:[["app-footer"]],standalone:!0,features:[S],decls:4,vars:0,consts:[["href","https://github.com/ko1ebayev/ngx-dialog/blob/master/LICENSE","target","_blank"]],template:function(i,r){i&1&&(g(0,`Code licensed under an +`),d(1,"a",0),g(2,"MIT-style"),u(),g(3,` +License +`))},styles:["[_nghost-%COMP%]{display:block;padding:64px 0 12px;text-align:center}a[_ngcontent-%COMP%]{color:#000;text-decoration:underline}"],changeDetection:0})}return t})();var Dl=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=M({type:t,selectors:[["app-header"]],standalone:!0,features:[S],decls:33,vars:0,consts:[[1,"logo"],["width","289","height","343","viewBox","0 0 289 343","fill","none","xmlns","http://www.w3.org/2000/svg",1,"logo-svg"],["filter","url(#filter0_b_3_3)"],["width","152","height","206","rx","20","fill","white","fill-opacity","0.6"],["x","2.5","y","2.5","width","147","height","201","rx","17.5","stroke","black","stroke-width","5"],["filter","url(#filter1_b_3_3)"],["x","68","y","68","width","153","height","207","rx","20","fill","white","fill-opacity","0.6"],["x","70.5","y","70.5","width","148","height","202","rx","17.5","stroke","black","stroke-width","5"],["filter","url(#filter2_b_3_3)"],["x","137","y","137","width","152","height","206","rx","20","fill","white","fill-opacity","0.6"],["x","139.5","y","139.5","width","147","height","201","rx","17.5","stroke","black","stroke-width","5"],["id","filter0_b_3_3","x","-64","y","-64","width","280","height","334","filterUnits","userSpaceOnUse","color-interpolation-filters","sRGB"],["flood-opacity","0","result","BackgroundImageFix"],["in","BackgroundImageFix","stdDeviation","32"],["in2","SourceAlpha","operator","in","result","effect1_backgroundBlur_3_3"],["mode","normal","in","SourceGraphic","in2","effect1_backgroundBlur_3_3","result","shape"],["id","filter1_b_3_3","x","4","y","4","width","281","height","335","filterUnits","userSpaceOnUse","color-interpolation-filters","sRGB"],["id","filter2_b_3_3","x","73","y","73","width","280","height","334","filterUnits","userSpaceOnUse","color-interpolation-filters","sRGB"],[1,"links"],["href","https://github.com/ko1ebayev/ngx-zero-dialog"],[1,"devicon-github-original-wordmark"],["href","https://www.npmjs.com/package/ngx-zero-dialog"],[1,"devicon-npm-original-wordmark"]],template:function(i,r){i&1&&(d(0,"div",0),Ze(),d(1,"svg",1)(2,"g",2),y(3,"rect",3)(4,"rect",4),u(),d(5,"g",5),y(6,"rect",6)(7,"rect",7),u(),d(8,"g",8),y(9,"rect",9)(10,"rect",10),u(),d(11,"defs")(12,"filter",11),y(13,"feFlood",12)(14,"feGaussianBlur",13)(15,"feComposite",14)(16,"feBlend",15),u(),d(17,"filter",16),y(18,"feFlood",12)(19,"feGaussianBlur",13)(20,"feComposite",14)(21,"feBlend",15),u(),d(22,"filter",17),y(23,"feFlood",12)(24,"feGaussianBlur",13)(25,"feComposite",14)(26,"feBlend",15),u()()(),g(27,` ngx-zero-dialog +`),u(),zi(),d(28,"div",18)(29,"a",19),y(30,"i",20),u(),d(31,"a",21),y(32,"i",22),u()())},styles:["[_nghost-%COMP%]{display:flex;gap:16px;padding:24px 32px;justify-content:space-between;align-items:center;background:#f6f8fa80;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);position:sticky;top:0;z-index:1000;border-bottom:1px solid rgba(0,0,0,.2)}.logo[_ngcontent-%COMP%]{font-size:24px;display:flex;align-items:center;gap:12px;font-family:Space Grotesk,sans-serif}.logo[_ngcontent-%COMP%] .logo-svg[_ngcontent-%COMP%]{width:32px;height:auto}.links[_ngcontent-%COMP%]{display:flex;gap:24px;align-items:center}.devicon-github-original-wordmark[_ngcontent-%COMP%], .devicon-npm-original-wordmark[_ngcontent-%COMP%]{font-size:inherit;color:#000;font-size:32px}a[_ngcontent-%COMP%]{text-decoration:none;outline:none}"],changeDetection:0})}return t})();var Il=(()=>{class t{installCode=` + yarn add ngx-zero-dialog + `;providerCode=` + import { provideNgxDialog } from 'ngx-zero-dialog'; + + providers: [ provideNgxDialog({ hostID: 'ngx-dialog-container' }) ] + `;containerCode=` +
+ `;importStylesCode=` + @import 'node_modules/ngx-zero-dialog/styles/ngx-zero-dialog.scss'; + `;constructor(){}ngOnInit(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=M({type:t,selectors:[["app-installation"]],standalone:!0,features:[S],decls:24,vars:4,consts:[[1,"text"],["language","javascript",3,"code"],["href","#customAnimation"]],template:function(i,r){i&1&&(d(0,"h2"),g(1,"Installation and set-up"),u(),d(2,"p",0),g(3,"Install ngx-zero-dialog"),u(),y(4,"app-code-snippet",1),d(5,"p",0),g(6," Provide configuration in "),d(7,"code"),g(8,"app.config.ts"),u(),g(9," or "),d(10,"code"),g(11,"app.module.ts"),u()(),y(12,"app-code-snippet",1),d(13,"p",0),g(14,` Setup dialog container in your root component with specific id +`),u(),y(15,"app-code-snippet",1),d(16,"p",0),g(17," Import styles in your global "),d(18,"code"),g(19,"styles.scss"),u(),g(20," file. It comes with pre-built dialog enter/leave animation and some utility styles. See how to "),d(21,"a",2),g(22,"customize animation"),u()(),y(23,"app-code-snippet",1)),i&2&&(w(4),x("code",r.installCode),w(8),x("code",r.providerCode),w(3),x("code",r.containerCode),w(8),x("code",r.importStylesCode))},dependencies:[re,Mt,tt],styles:["[_nghost-%COMP%]{display:block;padding:24px 0}app-code-snippet[_ngcontent-%COMP%]{border-radius:12px}"],changeDetection:0})}return t})();var El=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=M({type:t,selectors:[["app-overview"]],standalone:!0,features:[S],decls:14,vars:0,consts:[[1,"text"],["href","https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog"]],template:function(i,r){i&1&&(d(0,"h2"),g(1,"Overview"),u(),d(2,"p",0)(3,"code"),g(4,"ngx-zero-dialog"),u(),g(5,` is a lightweight, performance-focused Angular library designed to make creation of modal dialogs more flexible and maintainable. Built on the native HTML Dialog API, it leverages browser capabilities to enhance performance, ensure accessibility, and minimize code complexity. +`),u(),d(6,"p",0),g(7,` When exploring the demo examples, open DevTools to observe how the DOM changes throughout the process. +`),u(),d(8,"p",0),g(9," For more information about Dialog API, refer to the "),d(10,"a",1),g(11,"MDN documentation"),u()(),d(12,"blockquote"),g(13,` Requires Angular 16+ +`),u())},dependencies:[re],styles:["[_nghost-%COMP%]{display:block;padding:32px 0 16px}.overview[_ngcontent-%COMP%]{line-height:28px}"],changeDetection:0})}return t})();function ep(t,n){if(t&1){let e=pe();Ze(),d(0,"svg",4),F("click",function(){B(e);let r=W();return U(r.close())}),y(1,"path",5),u()}}function tp(t,n){}var Ml=(()=>{class t extends Rn{constructor(){super()}close(){this.dialogRef.close()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=M({type:t,selectors:[["app-dialog-host"]],standalone:!0,features:[$,S],decls:5,vars:2,consts:[[1,"title"],["class","close","width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg",3,"click",4,"ngIf"],[1,"content"],["dialogContent",""],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg",1,"close",3,"click"],["fill-rule","evenodd","clip-rule","evenodd","d","M5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929Z","fill","currentColor"]],template:function(i,r){i&1&&(d(0,"div",0),g(1),u(),G(2,ep,2,0,"svg",1),d(3,"div",2),G(4,tp,0,0,"ng-template",3),u()),i&2&&(w(),Ye(r.hostData.title),w(),x("ngIf",r.hostData.closable))},dependencies:[Ri,re,gs],styles:["[_nghost-%COMP%]{position:relative;display:block;padding:12px;width:500px;height:auto;max-height:500px;background:#fff;border-radius:12px}.title[_ngcontent-%COMP%]{text-align:center;padding:0 64px;font-size:24px;font-weight:700}.content[_ngcontent-%COMP%]{padding:32px 0}.close[_ngcontent-%COMP%]{position:absolute;top:12px;right:12px;cursor:pointer}"]})}return t})();function ip(t,n){if(t&1){let e=pe();d(0,"div",2),y(1,"input",4),d(2,"button",5),F("click",function(){B(e);let r=W(),o=Jt(6);return U(r.openTemplateBasedDialog(o))}),g(3,"Open dialog"),u()()}if(t&2){let e=W();w(),x("formControl",e.countryCtrl)}}function np(t,n){if(t&1&&(d(0,"mat-tab-group",3)(1,"mat-tab",6),y(2,"app-code-snippet",7),u(),d(3,"mat-tab",8),y(4,"app-code-snippet",9),u(),d(5,"mat-tab",10),y(6,"app-code-snippet",9),u()()),t&2){let e=W();w(2),x("code",e.htmlCode),w(2),x("code",e.tsCode),w(2),x("code",e.dialogHostCode)}}function rp(t,n){if(t&1){let e=pe();d(0,"div",11),g(1," Your country is "),d(2,"span",12),g(3),u(),d(4,"button",5),F("click",function(){let r=B(e).$implicit;return U(r.close())}),g(5,"Got it"),u()()}if(t&2){let e=n.data;w(3),Ye(e.country||"Unknown")}}var xl=(()=>{class t{ngxZeroDialogService=h(kn);countryCtrl=new jn("");mode=he("demo");htmlCode=` + + + + + Your country is {{ data.country }} + + + `;tsCode=` + @Component({ + ... + }) + export class TemplateExampleComponent { + private readonly ngxZeroDialogService = inject(NgxZeroDialogService); + + readonly countryCtrl = new FormControl(''); + + openTemplateBasedDialog(templateRef: TemplateRef) { + this.ngxZeroDialogService + .openDialog(templateRef, { + hostComponent: DialogHostComponent, + hostData: { + title: 'Template-based dialog', + closable: false, + }, + dialogData: { + country: this.countryCtrl.value, + }, + }) + .subscribe(); + } + } + `;dialogHostCode=` + interface DialogHostData { + title: string; + closable?: boolean; + } + + @Component({ + standalone: true, + selector: 'app-dialog-host', + template: \` +
+ {{ hostData.title }} + +
+
+ +
+ + \`, + styleUrl: 'dialog-host.component.scss', + imports: [DialogContentDirective, CommonModule], + }) + export class DialogHostComponent extends NgxZeroDialogHost { + constructor() { + super(); + } + + close() { + this.dialogRef.close(); + } + } + `;openTemplateBasedDialog(e){this.ngxZeroDialogService.openDialog(e,{hostComponent:Ml,hostData:{title:"Template-based dialog",closable:!1},dialogData:{country:this.countryCtrl.value}}).subscribe()}toggleCode(){this.mode.set(this.mode()==="code"?"demo":"code")}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=M({type:t,selectors:[["app-template-example"]],standalone:!0,features:[S],decls:7,vars:2,consts:[["dialogTpl",""],[3,"click","active"],[1,"form"],["disableRipple",""],["type","text","placeholder","Where are you from?",3,"formControl"],[3,"click"],["label","HTML"],["language","html",3,"code"],["label","TS"],["language","typescript",3,"code"],["label","dialog-host.component.ts"],[1,"template-dialog"],[1,"country"]],template:function(i,r){if(i&1){let o=pe();d(0,"h2"),g(1," Template-based dialog "),d(2,"app-show-code-btn",1),F("click",function(){return B(o),U(r.toggleCode())}),u()(),G(3,ip,4,1,"div",2)(4,np,7,3,"mat-tab-group",3)(5,rp,6,1,"ng-template",null,0,ls)}i&2&&(w(2),x("active",r.mode()==="code"),w(),Re(r.mode()==="demo"?3:4))},dependencies:[re,Bn,Ut,Ln,Li,Un,Mt,di,mn,tt],styles:["[_nghost-%COMP%]{display:block;padding:24px 0}h2[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.form[_ngcontent-%COMP%]{padding:24px 0;display:flex;gap:12px}mat-tab-group[_ngcontent-%COMP%]{padding:24px 0}.template-dialog[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:32px}.template-dialog[_ngcontent-%COMP%] .country[_ngcontent-%COMP%]{font-family:Space Grotesk;font-weight:700}.template-dialog[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:300px}app-code-snippet[_ngcontent-%COMP%]{border-radius:0 0 12px 12px}"],changeDetection:0})}return t})();var Sl=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=M({type:t,selectors:[["app-root"]],standalone:!0,features:[S],decls:9,vars:0,consts:[[1,"main"],["id","overview"],["id","installation"],["id","customAnimation"],["id","ngx-zero-dialog-container"]],template:function(i,r){i&1&&(y(0,"app-header"),d(1,"main",0),y(2,"app-overview",1)(3,"app-installation",2)(4,"app-component-example")(5,"app-template-example")(6,"app-custom-animation",3),u(),y(7,"app-footer")(8,"div",4))},dependencies:[re,Dl,Il,wl,El,yl,xl,Cl],styles:[".main[_ngcontent-%COMP%]{margin:0 auto;width:100%;display:flex;flex-direction:column;position:relative;max-width:700px}"]})}return t})();xs(Sl,Qa).catch(t=>console.error(t));