import{$ as Le,A as ue,Aa as gt,B as ht,Ba as hr,C as K,Ca as In,D as rr,E as sn,Ea as mt,F as an,Fa as ke,G as cn,Ga as Cn,H as D,I as nr,J as C,Ja as Mn,K as S,L as Oe,M as g,N as ln,Na as An,O as R,P as m,Pa as _n,Q as u,R as Pe,Ra as Y,S as un,Sa as Dn,T as de,Ta as On,U,V as Ne,Va as fr,W as M,Wa as Pn,X as ir,Xa as Nn,Y as or,Ya as Ln,Z as ft,Za as vt,a as d,aa as dn,b as _,ba as pt,c as Jr,ca as sr,d as Qr,da as hn,e as en,ea as fn,f as tn,fa as pn,g as Jt,ga as ar,h as Qt,ha as gn,i as k,ia as xe,j as N,ja as cr,k as V,ka as mn,l as L,la as lr,m as f,ma as vn,n as _e,na as Ue,o as rn,oa as yn,p as nn,pa as wn,q as w,qa as ur,r as er,ra as he,s as x,sa as re,t as on,ta as Sn,u as dt,ua as Rn,va as fe,w as te,wa as bn,x as le,xa as En,y as De,ya as dr,z as tr,za as Tn}from"./chunk-2MHQVPJW.js";var kn=null;function G(){return kn}function pr(t){kn??=t}var je=class{},gr=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:()=>u(jn),providedIn:"platform"})}return t})();var jn=(()=>{class t extends gr{_location;_history;_doc=u(M);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return G().getBaseHref(this._doc)}onPopState(e){let n=G().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=G().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,n,i){this._history.pushState(e,n,i)}replaceState(e,n,i){this._history.replaceState(e,n,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function $n(t,r){return t?r?t.endsWith("/")?r.startsWith("/")?t+r.slice(1):t+r:r.startsWith("/")?t+r:`${t}/${r}`:t:r}function xn(t){let r=t.search(/#|\?|$/);return t[r-1]==="/"?t.slice(0,r-1)+t.slice(r):t}function J(t){return t&&t[0]!=="?"?`?${t}`:t}var pe=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:()=>u(zn),providedIn:"root"})}return t})(),Fn=new R(""),zn=(()=>{class t extends pe{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??u(M).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return $n(this._baseHref,e)}path(e=!1){let n=this._platformLocation.pathname+J(this._platformLocation.search),i=this._platformLocation.hash;return i&&e?`${n}${i}`:n}pushState(e,n,i,o){let s=this.prepareExternalUrl(i+J(o));this._platformLocation.pushState(e,n,s)}replaceState(e,n,i,o){let s=this.prepareExternalUrl(i+J(o));this._platformLocation.replaceState(e,n,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(m(gr),m(Fn,8))};static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ge=(()=>{class t{_subject=new k;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=Ji(xn(Un(n))),this._locationStrategy.onPopState(i=>{this._subject.next({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+J(n))}normalize(e){return t.stripTrailingSlash(Yi(this._basePath,Un(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",i=null){this._locationStrategy.pushState(i,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+J(n)),i)}replaceState(e,n="",i=null){this._locationStrategy.replaceState(i,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+J(n)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(i=>i(e,n))}subscribe(e,n,i){return this._subject.subscribe({next:e,error:n??void 0,complete:i??void 0})}static normalizeQueryParams=J;static joinWithSlash=$n;static stripTrailingSlash=xn;static \u0275fac=function(n){return new(n||t)(m(pe))};static \u0275prov=g({token:t,factory:()=>Ki(),providedIn:"root"})}return t})();function Ki(){return new ge(m(pe))}function Yi(t,r){if(!t||!r.startsWith(t))return r;let e=r.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:r}function Un(t){return t.replace(/\/index.html$/,"")}function Ji(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}function mr(t,r){r=encodeURIComponent(r);for(let e of t.split(";")){let n=e.indexOf("="),[i,o]=n==-1?[e,""]:[e.slice(0,n),e.slice(n+1)];if(i.trim()===r)return decodeURIComponent(o)}return null}var Fe=class{};var Hn="browser";var ze=class{_doc;constructor(r){this._doc=r}manager},yt=(()=>{class t extends ze{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,i,o){return e.addEventListener(n,i,o),()=>this.removeEventListener(e,n,i,o)}removeEventListener(e,n,i,o){return e.removeEventListener(n,i,o)}static \u0275fac=function(n){return new(n||t)(m(M))};static \u0275prov=g({token:t,factory:t.\u0275fac})}return t})(),St=new R(""),Rr=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(s=>{s.manager=this});let i=e.filter(s=>!(s instanceof yt));this._plugins=i.slice().reverse();let o=e.find(s=>s instanceof yt);o&&this._plugins.push(o)}addEventListener(e,n,i,o){return this._findPluginFor(n).addEventListener(e,n,i,o)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(o=>o.supports(e)),!n)throw new S(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(m(St),m(re))};static \u0275prov=g({token:t,factory:t.\u0275fac})}return t})(),vr="ng-app-id";function Vn(t){for(let r of t)r.remove()}function Gn(t,r){let e=r.createElement("style");return e.textContent=t,e}function eo(t,r,e,n){let i=t.head?.querySelectorAll(`style[${vr}="${r}"],link[${vr}="${r}"]`);if(i)for(let o of i)o.removeAttribute(vr),o instanceof HTMLLinkElement?n.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function wr(t,r){let e=r.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var br=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,n,i,o={}){this.doc=e,this.appId=n,this.nonce=i,eo(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let i of e)this.addUsage(i,this.inline,Gn);n?.forEach(i=>this.addUsage(i,this.external,wr))}removeStyles(e,n){for(let i of e)this.removeUsage(i,this.inline);n?.forEach(i=>this.removeUsage(i,this.external))}addUsage(e,n,i){let o=n.get(e);o?o.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(e,this.doc)))})}removeUsage(e,n){let i=n.get(e);i&&(i.usage--,i.usage<=0&&(Vn(i.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Vn(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:i}]of this.inline)i.push(this.addElement(e,Gn(n,this.doc)));for(let[n,{elements:i}]of this.external)i.push(this.addElement(e,wr(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(m(M),m(ar),m(cr,8),m(xe))};static \u0275prov=g({token:t,factory:t.\u0275fac})}return t})(),yr={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"},Er=/%COMP%/g;var Wn="%COMP%",to=`_nghost-${Wn}`,ro=`_ngcontent-${Wn}`,no=!0,io=new R("",{providedIn:"root",factory:()=>no});function oo(t){return ro.replace(Er,t)}function so(t){return to.replace(Er,t)}function Xn(t,r){return r.map(e=>e.replace(Er,t))}var Tr=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,n,i,o,s,a,c,l=null,h=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.tracingService=h,this.platformIsServer=!1,this.defaultRenderer=new Be(e,s,c,this.platformIsServer,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;let i=this.getOrCreateRenderer(e,n);return i instanceof wt?i.applyToHost(e):i instanceof He&&i.applyStyles(),i}getOrCreateRenderer(e,n){let i=this.rendererByCompId,o=i.get(n.id);if(!o){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,y=this.platformIsServer,b=this.tracingService;switch(n.encapsulation){case lr.Emulated:o=new wt(c,l,n,this.appId,h,s,a,y,b);break;case lr.ShadowDom:return new Sr(c,l,e,n,s,a,this.nonce,y,b);default:o=new He(c,l,n,h,s,a,y,b);break}i.set(n.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(n){return new(n||t)(m(Rr),m(br),m(ar),m(io),m(M),m(xe),m(re),m(cr),m(wn,8))};static \u0275prov=g({token:t,factory:t.\u0275fac})}return t})(),Be=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(r,e,n,i,o){this.eventManager=r,this.doc=e,this.ngZone=n,this.platformIsServer=i,this.tracingService=o}destroy(){}destroyNode=null;createElement(r,e){return e?this.doc.createElementNS(yr[e]||e,r):this.doc.createElement(r)}createComment(r){return this.doc.createComment(r)}createText(r){return this.doc.createTextNode(r)}appendChild(r,e){(qn(r)?r.content:r).appendChild(e)}insertBefore(r,e,n){r&&(qn(r)?r.content:r).insertBefore(e,n)}removeChild(r,e){e.remove()}selectRootElement(r,e){let n=typeof r=="string"?this.doc.querySelector(r):r;if(!n)throw new S(-5104,!1);return e||(n.textContent=""),n}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,n,i){if(i){e=i+":"+e;let o=yr[i];o?r.setAttributeNS(o,e,n):r.setAttribute(e,n)}else r.setAttribute(e,n)}removeAttribute(r,e,n){if(n){let i=yr[n];i?r.removeAttributeNS(i,e):r.removeAttribute(`${n}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,n,i){i&(Ue.DashCase|Ue.Important)?r.style.setProperty(e,n,i&Ue.Important?"important":""):r.style[e]=n}removeStyle(r,e,n){n&Ue.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,n){r!=null&&(r[e]=n)}setValue(r,e){r.nodeValue=e}listen(r,e,n,i){if(typeof r=="string"&&(r=G().getGlobalEventTarget(this.doc,r),!r))throw new S(5102,!1);let o=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(r,e,o)),this.eventManager.addEventListener(r,e,o,i)}decoratePreventDefault(r){return e=>{if(e==="__ngUnwrap__")return r;r(e)===!1&&e.preventDefault()}}};function qn(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Sr=class extends Be{sharedStylesHost;hostEl;shadowRoot;constructor(r,e,n,i,o,s,a,c,l){super(r,o,s,c,l),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let h=i.styles;h=Xn(i.id,h);for(let b of h){let E=document.createElement("style");a&&E.setAttribute("nonce",a),E.textContent=b,this.shadowRoot.appendChild(E)}let y=i.getExternalStyles?.();if(y)for(let b of y){let E=wr(b,o);a&&E.setAttribute("nonce",a),this.shadowRoot.appendChild(E)}}nodeOrShadowRoot(r){return r===this.hostEl?this.shadowRoot:r}appendChild(r,e){return super.appendChild(this.nodeOrShadowRoot(r),e)}insertBefore(r,e,n){return super.insertBefore(this.nodeOrShadowRoot(r),e,n)}removeChild(r,e){return super.removeChild(null,e)}parentNode(r){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(r)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},He=class extends Be{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(r,e,n,i,o,s,a,c,l){super(r,o,s,a,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i;let h=n.styles;this.styles=l?Xn(l,h):h,this.styleUrls=n.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&yn.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},wt=class extends He{contentAttr;hostAttr;constructor(r,e,n,i,o,s,a,c,l){let h=i+"-"+n.id;super(r,e,n,o,s,a,c,l,h),this.contentAttr=oo(h),this.hostAttr=so(h)}applyToHost(r){this.applyStyles(),this.setAttribute(r,this.hostAttr,"")}createElement(r,e){let n=super.createElement(r,e);return super.setAttribute(n,this.contentAttr,""),n}};var Rt=class t extends je{supportsDOMEvents=!0;static makeCurrent(){pr(new t)}onAndCancel(r,e,n,i){return r.addEventListener(e,n,i),()=>{r.removeEventListener(e,n,i)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.remove()}createElement(r,e){return e=e||this.getDefaultDocument(),e.createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return e==="window"?window:e==="document"?r:e==="body"?r.body:null}getBaseHref(r){let e=co();return e==null?null:lo(e)}resetBaseElement(){Ve=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return mr(document.cookie,r)}},Ve=null;function co(){return Ve=Ve||document.head.querySelector("base"),Ve?Ve.getAttribute("href"):null}function lo(t){return new URL(t,document.baseURI).pathname}var uo=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:t.\u0275fac})}return t})(),Zn=["alt","control","meta","shift"],ho={"\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"},fo={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Jn=(()=>{class t extends ze{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,i,o){let s=t.parseEventName(n),a=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>G().onAndCancel(e,s.domEventName,a,o))}static parseEventName(e){let n=e.toLowerCase().split("."),i=n.shift();if(n.length===0||!(i==="keydown"||i==="keyup"))return null;let o=t._normalizeKey(n.pop()),s="",a=n.indexOf("code");if(a>-1&&(n.splice(a,1),s="code."),Zn.forEach(l=>{let h=n.indexOf(l);h>-1&&(n.splice(h,1),s+=l+".")}),s+=o,n.length!=0||o.length===0)return null;let c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(e,n){let i=ho[e.key]||e.key,o="";return n.indexOf("code.")>-1&&(i=e.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Zn.forEach(s=>{if(s!==i){let a=fo[s];a(e)&&(o+=s+".")}}),o+=i,o===n)}static eventCallback(e,n,i){return o=>{t.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>n(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(n){return new(n||t)(m(M))};static \u0275prov=g({token:t,factory:t.\u0275fac})}return t})();function po(t,r,e){let n=d({rootComponent:t,platformRef:e?.platformRef},go(r));return Pn(n)}function go(t){return{appProviders:[...So,...t?.providers??[]],platformProviders:wo}}function mo(){Rt.makeCurrent()}function vo(){return new or}function yo(){return pn(document),document}var wo=[{provide:xe,useValue:Hn},{provide:gn,useValue:mo,multi:!0},{provide:M,useFactory:yo}];var So=[{provide:un,useValue:"root"},{provide:or,useFactory:vo},{provide:St,useClass:yt,multi:!0,deps:[M]},{provide:St,useClass:Jn,multi:!0,deps:[M]},Tr,br,Rr,{provide:Sn,useExisting:Tr},{provide:Fe,useClass:uo},[]];var Ge=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(r){r?typeof r=="string"?this.lazyInit=()=>{this.headers=new Map,r.split(` `).forEach(e=>{let n=e.indexOf(":");if(n>0){let i=e.slice(0,n),o=e.slice(n+1).trim();this.addHeaderEntry(i,o)}})}:typeof Headers<"u"&&r instanceof Headers?(this.headers=new Map,r.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(r).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(r){return this.init(),this.headers.has(r.toLowerCase())}get(r){this.init();let e=this.headers.get(r.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(r){return this.init(),this.headers.get(r.toLowerCase())||null}append(r,e){return this.clone({name:r,value:e,op:"a"})}set(r,e){return this.clone({name:r,value:e,op:"s"})}delete(r,e){return this.clone({name:r,value:e,op:"d"})}maybeSetNormalizedName(r,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,r)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(r=>this.applyUpdate(r)),this.lazyUpdate=null))}copyFrom(r){r.init(),Array.from(r.headers.keys()).forEach(e=>{this.headers.set(e,r.headers.get(e)),this.normalizedNames.set(e,r.normalizedNames.get(e))})}clone(r){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([r]),e}applyUpdate(r){let e=r.name.toLowerCase();switch(r.op){case"a":case"s":let n=r.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(r.name,e);let i=(r.op==="a"?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":let o=r.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=this.headers.get(e);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}addHeaderEntry(r,e){let n=r.toLowerCase();this.maybeSetNormalizedName(r,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(r,e){let n=(Array.isArray(e)?e:[e]).map(o=>o.toString()),i=r.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(r,i)}forEach(r){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>r(this.normalizedNames.get(e),this.headers.get(e)))}};var Ro="X-Request-URL",bo="text/plain",Eo="application/json",dc=`${Eo}, ${bo}, */*`;var Cr=(function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t})(Cr||{}),Ir=class{headers;status;statusText;url;ok;type;redirected;constructor(r,e=200,n="OK"){this.headers=r.headers||new Ge,this.status=r.status!==void 0?r.status:e,this.statusText=r.statusText||n,this.url=r.url||null,this.redirected=r.redirected,this.ok=this.status>=200&&this.status<300}};var bt=class t extends Ir{body;constructor(r={}){super(r),this.body=r.body!==void 0?r.body:null}type=Cr.Response;clone(r={}){return new t({body:r.body!==void 0?r.body:this.body,headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0,redirected:r.redirected??this.redirected})}};var Qn=new R("");var hc=RegExp(`^${Ro}:`,"m");var To=new R(""),Io="b",Co="h",Mo="s",Ao="st",_o="u",Do="rt",Mr=new R(""),Oo=["GET","HEAD"];function Po(t,r){let E=u(Mr),{isCacheActive:e}=E,n=Jr(E,["isCacheActive"]),{transferCache:i,method:o}=t;if(!e||i===!1||o==="POST"&&!n.includePostRequests&&!i||o!=="POST"&&!Oo.includes(o)||!n.includeRequestsWithAuthHeaders&&No(t)||n.filter?.(t)===!1)return r(t);let s=u(mn);if(u(To,{optional:!0}))throw new S(2803,!1);let c=t.url,l=Lo(t,c),h=s.get(l,null),y=n.includeHeaders;if(typeof i=="object"&&i.includeHeaders&&(y=i.includeHeaders),h){let{[Io]:T,[Do]:Z,[Co]:H,[Mo]:Ae,[Ao]:Kt,[_o]:ce}=h,Yt=T;switch(Z){case"arraybuffer":Yt=new TextEncoder().encode(T).buffer;break;case"blob":Yt=new Blob([T]);break}let Zi=new Ge(H);return f(new bt({body:Yt,headers:Zi,status:Ae,statusText:Kt,url:ce}))}return r(t)}function No(t){return t.headers.has("authorization")||t.headers.has("proxy-authorization")}function ei(t){return[...t.keys()].sort().map(r=>`${r}=${t.getAll(r)}`).join("&")}function Lo(t,r){let{params:e,method:n,responseType:i}=t,o=ei(e),s=t.serializeBody();s instanceof URLSearchParams?s=ei(s):typeof s!="string"&&(s="");let a=[n,i,r,s,o].join("|"),c=xo(a);return c}function xo(t){let r=0;for(let e of t)r=Math.imul(31,r)+e.charCodeAt(0)<<0;return r+=2147483648,r.toString()}function ti(t){return[{provide:Mr,useFactory:()=>(ur("NgHttpTransferCache"),d({isCacheActive:!0},t))},{provide:Qn,useValue:Po,multi:!0},{provide:mt,multi:!0,useFactory:()=>{let r=u(ke),e=u(Mr);return()=>{r.whenStable().then(()=>{e.isCacheActive=!1})}}}]}var ri=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||t)(m(M))};static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Et=(function(t){return t[t.NoHttpTransferCache=0]="NoHttpTransferCache",t[t.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",t[t.I18nSupport=2]="I18nSupport",t[t.EventReplay=3]="EventReplay",t[t.IncrementalHydration=4]="IncrementalHydration",t})(Et||{});function jo(t,r=[],e={}){return{\u0275kind:t,\u0275providers:r}}function ol(){return jo(Et.EventReplay,Nn())}function sl(...t){let r=[],e=new Set;for(let{\u0275providers:i,\u0275kind:o}of t)e.add(o),i.length&&r.push(i);let n=e.has(Et.HttpTransferCacheOptions);return Pe([[],[],Ln(),e.has(Et.NoHttpTransferCache)||n?[]:ti({}),r])}var p="primary",st=Symbol("RouteTitle"),Pr=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function oe(t){return new Pr(t)}function ui(t,r,e){let n=e.path.split("/");if(n.length>t.length||e.pathMatch==="full"&&(r.hasChildren()||n.lengthn[o]===i)}else return t===r}function hi(t){return t.length>0?t[t.length-1]:null}function X(t){return rn(t)?t:In(t)?L(Promise.resolve(t)):f(t)}var zo={exact:pi,subset:gi},fi={exact:Bo,subset:Ho,ignored:()=>!0};function ni(t,r,e){return zo[e.paths](t.root,r.root,e.matrixParams)&&fi[e.queryParams](t.queryParams,r.queryParams)&&!(e.fragment==="exact"&&t.fragment!==r.fragment)}function Bo(t,r){return $(t,r)}function pi(t,r,e){if(!ne(t.segments,r.segments)||!Ct(t.segments,r.segments,e)||t.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!t.children[n]||!pi(t.children[n],r.children[n],e))return!1;return!0}function Ho(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(e=>di(t[e],r[e]))}function gi(t,r,e){return mi(t,r,r.segments,e)}function mi(t,r,e,n){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!ne(i,e)||r.hasChildren()||!Ct(i,e,n))}else if(t.segments.length===e.length){if(!ne(t.segments,e)||!Ct(t.segments,e,n))return!1;for(let i in r.children)if(!t.children[i]||!gi(t.children[i],r.children[i],n))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!ne(t.segments,i)||!Ct(t.segments,i,n)||!t.children[p]?!1:mi(t.children[p],r,o,n)}}function Ct(t,r,e){return r.every((n,i)=>fi[e](t[i].parameters,n.parameters))}var z=class{root;queryParams;fragment;_queryParamMap;constructor(r=new v([],{}),e={},n=null){this.root=r,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=oe(this.queryParams),this._queryParamMap}toString(){return qo.serialize(this)}},v=class{segments;children;parent=null;constructor(r,e){this.segments=r,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Mt(this)}},Q=class{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=oe(this.parameters),this._parameterMap}toString(){return yi(this)}};function Vo(t,r){return ne(t,r)&&t.every((e,n)=>$(e.parameters,r[n].parameters))}function ne(t,r){return t.length!==r.length?!1:t.every((e,n)=>e.path===r[n].path)}function Go(t,r){let e=[];return Object.entries(t.children).forEach(([n,i])=>{n===p&&(e=e.concat(r(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==p&&(e=e.concat(r(i,n)))}),e}var at=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:()=>new se,providedIn:"root"})}return t})(),se=class{parse(r){let e=new xr(r);return new z(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${qe(r.root,!0)}`,n=Zo(r.queryParams),i=typeof r.fragment=="string"?`#${Wo(r.fragment)}`:"";return`${e}${n}${i}`}},qo=new se;function Mt(t){return t.segments.map(r=>yi(r)).join("/")}function qe(t,r){if(!t.hasChildren())return Mt(t);if(r){let e=t.children[p]?qe(t.children[p],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&n.push(`${i}:${qe(o,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=Go(t,(n,i)=>i===p?[qe(t.children[p],!1)]:[`${i}:${qe(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${Mt(t)}/${e[0]}`:`${Mt(t)}/(${e.join("//")})`}}function vi(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Tt(t){return vi(t).replace(/%3B/gi,";")}function Wo(t){return encodeURI(t)}function Lr(t){return vi(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function At(t){return decodeURIComponent(t)}function ii(t){return At(t.replace(/\+/g,"%20"))}function yi(t){return`${Lr(t.path)}${Xo(t.parameters)}`}function Xo(t){return Object.entries(t).map(([r,e])=>`;${Lr(r)}=${Lr(e)}`).join("")}function Zo(t){let r=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(i=>`${Tt(e)}=${Tt(i)}`).join("&"):`${Tt(e)}=${Tt(n)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}var Ko=/^[^\/()?;#]+/;function Ar(t){let r=t.match(Ko);return r?r[0]:""}var Yo=/^[^\/()?;=#]+/;function Jo(t){let r=t.match(Yo);return r?r[0]:""}var Qo=/^[^=?&#]+/;function es(t){let r=t.match(Qo);return r?r[0]:""}var ts=/^[^&#]+/;function rs(t){let r=t.match(ts);return r?r[0]:""}var xr=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(n[p]=new v(r,e)),n}parseSegment(){let r=Ar(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(r),new Q(At(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=Jo(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let i=Ar(this.remaining);i&&(n=i,this.capture(n))}r[At(e)]=At(n)}parseQueryParam(r){let e=es(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let s=rs(this.remaining);s&&(n=s,this.capture(n))}let i=ii(e),o=ii(n);if(r.hasOwnProperty(i)){let s=r[i];Array.isArray(s)||(s=[s],r[i]=s),s.push(o)}else r[i]=o}parseParens(r){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Ar(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new S(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):r&&(o=p);let s=this.parseChildren();e[o]=Object.keys(s).length===1&&s[p]?s[p]:new v([],s),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new S(4011,!1)}};function wi(t){return t.segments.length>0?new v([],{[p]:t}):t}function Si(t){let r={};for(let[n,i]of Object.entries(t.children)){let o=Si(i);if(n===p&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))r[s]=a;else(o.segments.length>0||o.hasChildren())&&(r[n]=o)}let e=new v(t.segments,r);return ns(e)}function ns(t){if(t.numberOfChildren===1&&t.children[p]){let r=t.children[p];return new v(t.segments.concat(r.segments),r.children)}return t}function ee(t){return t instanceof z}function Ri(t,r,e=null,n=null){let i=bi(t);return Ei(i,r,e,n)}function bi(t){let r;function e(o){let s={};for(let c of o.children){let l=e(c);s[c.outlet]=l}let a=new v(o.url,s);return o===t&&(r=a),a}let n=e(t.root),i=wi(n);return r??i}function Ei(t,r,e,n){let i=t;for(;i.parent;)i=i.parent;if(r.length===0)return _r(i,i,i,e,n);let o=is(r);if(o.toRoot())return _r(i,i,new v([],{}),e,n);let s=os(o,i,t),a=s.processChildren?Xe(s.segmentGroup,s.index,o.commands):Ii(s.segmentGroup,s.index,o.commands);return _r(i,s.segmentGroup,a,e,n)}function _t(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Ye(t){return typeof t=="object"&&t!=null&&t.outlets}function _r(t,r,e,n,i){let o={};n&&Object.entries(n).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(h=>`${h}`):`${l}`});let s;t===r?s=e:s=Ti(t,r,e);let a=wi(Si(s));return new z(a,o,i)}function Ti(t,r,e){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===r?n[i]=e:n[i]=Ti(o,r,e)}),new v(t.segments,n)}var Dt=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,n){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=n,r&&n.length>0&&_t(n[0]))throw new S(4003,!1);let i=n.find(Ye);if(i&&i!==hi(n))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function is(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Dt(!0,0,t);let r=0,e=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?e=!0:a===".."?r++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Dt(e,r,n)}var ye=class{segmentGroup;processChildren;index;constructor(r,e,n){this.segmentGroup=r,this.processChildren=e,this.index=n}};function os(t,r,e){if(t.isAbsolute)return new ye(r,!0,0);if(!e)return new ye(r,!1,NaN);if(e.parent===null)return new ye(e,!0,0);let n=_t(t.commands[0])?0:1,i=e.segments.length-1+n;return ss(e,i,t.numberOfDoubleDots)}function ss(t,r,e){let n=t,i=r,o=e;for(;o>i;){if(o-=i,n=n.parent,!n)throw new S(4005,!1);i=n.segments.length}return new ye(n,!1,i-o)}function as(t){return Ye(t[0])?t[0].outlets:{[p]:t}}function Ii(t,r,e){if(t??=new v([],{}),t.segments.length===0&&t.hasChildren())return Xe(t,r,e);let n=cs(t,r,e),i=e.slice(n.commandIndex);if(n.match&&n.pathIndexo!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=Xe(t.children[p],r,e);return new v(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Ii(t.children[o],r,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new v(t.segments,i)}}function cs(t,r,e){let n=0,i=r,o={match:!1,pathIndex:0,commandIndex:0};for(;i=e.length)return o;let s=t.segments[i],a=e[n];if(Ye(a))break;let c=`${a}`,l=n0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!si(c,l,s))return o;n+=2}else{if(!si(c,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function Ur(t,r,e){let n=t.segments.slice(0,r),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(r[e]=Ur(new v([],{}),0,n))}),r}function oi(t){let r={};return Object.entries(t).forEach(([e,n])=>r[e]=`${n}`),r}function si(t,r,e){return t==e.path&&$(r,e.parameters)}var Ze="imperative",I=(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})(I||{}),P=class{id;url;constructor(r,e){this.id=r,this.url=e}},ae=class extends P{type=I.NavigationStart;navigationTrigger;restoredState;constructor(r,e,n="imperative",i=null){super(r,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},B=class extends P{urlAfterRedirects;type=I.NavigationEnd;constructor(r,e,n){super(r,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},A=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(A||{}),Je=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Je||{}),F=class extends P{reason;code;type=I.NavigationCancel;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},q=class extends P{reason;code;type=I.NavigationSkipped;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}},Se=class extends P{error;target;type=I.NavigationError;constructor(r,e,n,i){super(r,e),this.error=n,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Qe=class extends P{urlAfterRedirects;state;type=I.RoutesRecognized;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ot=class extends P{urlAfterRedirects;state;type=I.GuardsCheckStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Pt=class extends P{urlAfterRedirects;state;shouldActivate;type=I.GuardsCheckEnd;constructor(r,e,n,i,o){super(r,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Nt=class extends P{urlAfterRedirects;state;type=I.ResolveStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Lt=class extends P{urlAfterRedirects;state;type=I.ResolveEnd;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},xt=class{route;type=I.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ut=class{route;type=I.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},kt=class{snapshot;type=I.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},jt=class{snapshot;type=I.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},$t=class{snapshot;type=I.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ft=class{snapshot;type=I.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var et=class{},Re=class{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function us(t){return!(t instanceof et)&&!(t instanceof Re)}function ds(t,r){return t.providers&&!t._injector&&(t._injector=dr(t.providers,r,`Route: ${t.path}`)),t._injector??r}function j(t){return t.outlet||p}function hs(t,r){let e=t.filter(n=>j(n)===r);return e.push(...t.filter(n=>j(n)!==r)),e}function Te(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let r=t.parent;r;r=r.parent){let e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var zt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Te(this.route?.snapshot)??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new Ie(this.rootInjector)}},Ie=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let i=this.getOrCreateContext(e);i.outlet=n,this.contexts.set(e,i)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new zt(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(m(de))};static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Bt=class{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){let e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){let e=kr(r,this._root);return e?e.children.map(n=>n.value):[]}firstChild(r){let e=kr(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=jr(r,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return jr(r,this._root).map(e=>e.value)}};function kr(t,r){if(t===r.value)return r;for(let e of r.children){let n=kr(t,e);if(n)return n}return null}function jr(t,r){if(t===r.value)return[r];for(let e of r.children){let n=jr(t,e);if(n.length)return n.unshift(r),n}return[]}var O=class{value;children;constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function ve(t){let r={};return t&&t.children.forEach(e=>r[e.value.outlet]=e),r}var tt=class extends Bt{snapshot;constructor(r,e){super(r),this.snapshot=e,qr(this,r)}toString(){return this.snapshot.toString()}};function Ci(t){let r=fs(t),e=new N([new Q("",{})]),n=new N({}),i=new N({}),o=new N({}),s=new N(""),a=new W(e,n,o,s,i,p,t,r.root);return a.snapshot=r.root,new tt(new O(a,[]),r)}function fs(t){let r={},e={},n={},o=new ie([],r,n,"",e,p,t,null,{});return new rt("",new O(o,[]))}var W=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,e,n,i,o,s,a,c){this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(w(l=>l[st]))??f(void 0),this.url=r,this.params=e,this.queryParams=n,this.fragment=i,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(w(r=>oe(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(w(r=>oe(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Ht(t,r,e="emptyOnly"){let n,{routeConfig:i}=t;return r!==null&&(e==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:d(d({},r.params),t.params),data:d(d({},r.data),t.data),resolve:d(d(d(d({},t.data),r.data),i?.data),t._resolvedData)}:n={params:d({},t.params),data:d({},t.data),resolve:d(d({},t.data),t._resolvedData??{})},i&&Ai(i)&&(n.resolve[st]=i.title),n}var ie=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[st]}constructor(r,e,n,i,o,s,a,c,l){this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}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??=oe(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=oe(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${e}')`}},rt=class extends Bt{url;constructor(r,e){super(e),this.url=r,qr(this,e)}toString(){return Mi(this._root)}};function qr(t,r){r.value._routerState=t,r.children.forEach(e=>qr(t,e))}function Mi(t){let r=t.children.length>0?` { ${t.children.map(Mi).join(", ")} } `:"";return`${t.value}${r}`}function Dr(t){if(t.snapshot){let r=t.snapshot,e=t._futureSnapshot;t.snapshot=e,$(r.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),$(r.params,e.params)||t.paramsSubject.next(e.params),Fo(r.url,e.url)||t.urlSubject.next(e.url),$(r.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function $r(t,r){let e=$(t.params,r.params)&&Vo(t.url,r.url),n=!t.parent!=!r.parent;return e&&!n&&(!t.parent||$r(t.parent,r.parent))}function Ai(t){return typeof t.title=="string"||t.title===null}var _i=new R(""),Wr=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new he;deactivateEvents=new he;attachEvents=new he;detachEvents=new he;routerOutletData=On(void 0);parentContexts=u(Ie);location=u(bn);changeDetector=u(fr);inputBinder=u(Wt,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:i}=e.name;if(n)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),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 S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,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,n){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Fr(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:c,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=gt({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[pt]})}return t})(),Fr=class{route;childContexts;parent;outletData;constructor(r,e,n,i){this.route=r,this.childContexts=e,this.parent=n,this.outletData=i}get(r,e){return r===W?this.route:r===Ie?this.childContexts:r===_i?this.outletData:this.parent.get(r,e)}},Wt=new R("");var Xr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Tn({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&Mn(0,"router-outlet")},dependencies:[Wr],encapsulation:2})}return t})();function Zr(t){let r=t.children&&t.children.map(Zr),e=r?_(d({},t),{children:r}):d({},t);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=Xr),e}function ps(t,r,e){let n=nt(t,r._root,e?e._root:void 0);return new tt(n,r)}function nt(t,r,e){if(e&&t.shouldReuseRoute(r.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=r.value;let i=gs(t,r,e);return new O(n,i)}else{if(t.shouldAttach(r.value)){let o=t.retrieve(r.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(a=>nt(t,a)),s}}let n=ms(r.value),i=r.children.map(o=>nt(t,o));return new O(n,i)}}function gs(t,r,e){return r.children.map(n=>{for(let i of e.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return nt(t,n,i);return nt(t,n)})}function ms(t){return new W(new N(t.url),new N(t.params),new N(t.queryParams),new N(t.fragment),new N(t.data),t.outlet,t.component,t)}var be=class{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},Di="ngNavigationCancelingError";function Vt(t,r){let{redirectTo:e,navigationBehaviorOptions:n}=ee(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=Oi(!1,A.Redirect);return i.url=e,i.navigationBehaviorOptions=n,i}function Oi(t,r){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[Di]=!0,e.cancellationCode=r,e}function vs(t){return Pi(t)&&ee(t.url)}function Pi(t){return!!t&&t[Di]}var ys=(t,r,e,n)=>w(i=>(new zr(r,i.targetRouterState,i.currentRouterState,e,n).activate(t),i)),zr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,e,n,i,o){this.routeReuseStrategy=r,this.futureState=e,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(r){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,r),Dr(this.futureState.root),this.activateChildRoutes(e,n,r)}deactivateChildRoutes(r,e,n){let i=ve(e);r.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(r,e,s.children)}else this.deactivateChildRoutes(r,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=ve(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:s,route:r,contexts:a})}}deactivateRouteAndOutlet(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=ve(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,e,n){let i=ve(e);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new Ft(o.value.snapshot))}),r.children.length&&this.forwardEvent(new jt(r.value.snapshot))}activateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(Dr(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,e,s.children)}else this.activateChildRoutes(r,e,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),Dr(a.route.value),this.activateChildRoutes(r,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(r,null,s.children)}else this.activateChildRoutes(r,null,n)}},Gt=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},we=class{component;route;constructor(r,e){this.component=r,this.route=e}};function ws(t,r,e){let n=t._root,i=r?r._root:null;return We(n,i,e,[n.value])}function Ss(t){let r=t.routeConfig?t.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:t,guards:r}}function Ce(t,r){let e=Symbol(),n=r.get(t,e);return n===e?typeof t=="function"&&!ln(t)?t:r.get(t):n}function We(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ve(r);return t.children.forEach(s=>{Rs(s,o[s.value.outlet],e,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Ke(a,e.getContext(s),i)),i}function Rs(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=r?r.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=bs(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new Gt(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?We(t,r,a?a.children:null,n,i):We(t,r,e,n,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new we(a.outlet.component,s))}else s&&Ke(r,a,i),i.canActivateChecks.push(new Gt(n)),o.component?We(t,null,a?a.children:null,n,i):We(t,null,e,n,i);return i}function bs(t,r,e){if(typeof e=="function")return e(t,r);switch(e){case"pathParamsChange":return!ne(t.url,r.url);case"pathParamsOrQueryParamsChange":return!ne(t.url,r.url)||!$(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!$r(t,r)||!$(t.queryParams,r.queryParams);case"paramsChange":default:return!$r(t,r)}}function Ke(t,r,e){let n=ve(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?r?Ke(s,r.children.getContext(o),e):Ke(s,null,e):Ke(s,r,e)}),i.component?r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new we(r.outlet.component,i)):e.canDeactivateChecks.push(new we(null,i)):e.canDeactivateChecks.push(new we(null,i))}function ct(t){return typeof t=="function"}function Es(t){return typeof t=="boolean"}function Ts(t){return t&&ct(t.canLoad)}function Is(t){return t&&ct(t.canActivate)}function Cs(t){return t&&ct(t.canActivateChild)}function Ms(t){return t&&ct(t.canDeactivate)}function As(t){return t&&ct(t.canMatch)}function Ni(t){return t instanceof nn||t?.name==="EmptyError"}var It=Symbol("INITIAL_VALUE");function Ee(){return D(t=>er(t.map(r=>r.pipe(ue(1),cn(It)))).pipe(w(r=>{for(let e of r)if(e!==!0){if(e===It)return It;if(e===!1||_s(e))return e}return!0}),te(r=>r!==It),ue(1)))}function _s(t){return ee(t)||t instanceof be}function Ds(t,r){return x(e=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?f(_(d({},e),{guardsResult:!0})):Os(s,n,i,t).pipe(x(a=>a&&Es(a)?Ps(n,o,t,r):f(a)),w(a=>_(d({},e),{guardsResult:a})))})}function Os(t,r,e,n){return L(t).pipe(x(i=>ks(i.component,i.route,e,r,n)),K(i=>i!==!0,!0))}function Ps(t,r,e,n){return L(r).pipe(De(i=>on(Ls(i.route.parent,n),Ns(i.route,n),Us(t,i.path,e),xs(t,i.route,e))),K(i=>i!==!0,!0))}function Ns(t,r){return t!==null&&r&&r(new $t(t)),f(!0)}function Ls(t,r){return t!==null&&r&&r(new kt(t)),f(!0)}function xs(t,r,e){let n=r.routeConfig?r.routeConfig.canActivate:null;if(!n||n.length===0)return f(!0);let i=n.map(o=>dt(()=>{let s=Te(r)??e,a=Ce(o,s),c=Is(a)?a.canActivate(r,t):U(s,()=>a(r,t));return X(c).pipe(K())}));return f(i).pipe(Ee())}function Us(t,r,e){let n=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(s=>Ss(s)).filter(s=>s!==null).map(s=>dt(()=>{let a=s.guards.map(c=>{let l=Te(s.node)??e,h=Ce(c,l),y=Cs(h)?h.canActivateChild(n,t):U(l,()=>h(n,t));return X(y).pipe(K())});return f(a).pipe(Ee())}));return f(o).pipe(Ee())}function ks(t,r,e,n,i){let o=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!o||o.length===0)return f(!0);let s=o.map(a=>{let c=Te(r)??i,l=Ce(a,c),h=Ms(l)?l.canDeactivate(t,r,e,n):U(c,()=>l(t,r,e,n));return X(h).pipe(K())});return f(s).pipe(Ee())}function js(t,r,e,n){let i=r.canLoad;if(i===void 0||i.length===0)return f(!0);let o=i.map(s=>{let a=Ce(s,t),c=Ts(a)?a.canLoad(r,e):U(t,()=>a(r,e));return X(c)});return f(o).pipe(Ee(),Li(n))}function Li(t){return en(C(r=>{if(typeof r!="boolean")throw Vt(t,r)}),w(r=>r===!0))}function $s(t,r,e,n){let i=r.canMatch;if(!i||i.length===0)return f(!0);let o=i.map(s=>{let a=Ce(s,t),c=As(a)?a.canMatch(r,e):U(t,()=>a(r,e));return X(c)});return f(o).pipe(Ee(),Li(n))}var it=class{segmentGroup;constructor(r){this.segmentGroup=r||null}},ot=class extends Error{urlTree;constructor(r){super(),this.urlTree=r}};function me(t){return _e(new it(t))}function Fs(t){return _e(new S(4e3,!1))}function zs(t){return _e(Oi(!1,A.GuardRejected))}var Br=class{urlSerializer;urlTree;constructor(r,e){this.urlSerializer=r,this.urlTree=e}lineralizeSegments(r,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return f(n);if(i.numberOfChildren>1||!i.children[p])return Fs(`${r.redirectTo}`);i=i.children[p]}}applyRedirectCommands(r,e,n,i,o){return Bs(e,i,o).pipe(w(s=>{if(s instanceof z)throw new ot(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),r,n);if(s[0]==="/")throw new ot(a);return a}))}applyRedirectCreateUrlTree(r,e,n,i){let o=this.createSegmentGroup(r,e.root,n,i);return new z(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){let n={};return Object.entries(r).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);n[i]=e[a]}else n[i]=o}),n}createSegmentGroup(r,e,n,i){let o=this.createSegments(r,e.segments,n,i),s={};return Object.entries(e.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(r,c,n,i)}),new v(o,s)}createSegments(r,e,n,i){return e.map(o=>o.path[0]===":"?this.findPosParam(r,o,i):this.findOrReturn(o,n))}findPosParam(r,e,n){let i=n[e.path.substring(1)];if(!i)throw new S(4001,!1);return i}findOrReturn(r,e){let n=0;for(let i of e){if(i.path===r.path)return e.splice(n),i;n++}return r}};function Bs(t,r,e){if(typeof t=="string")return f(t);let n=t,{queryParams:i,fragment:o,routeConfig:s,url:a,outlet:c,params:l,data:h,title:y}=r;return X(U(e,()=>n({params:l,data:h,queryParams:i,fragment:o,routeConfig:s,url:a,outlet:c,title:y})))}var Hr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Hs(t,r,e,n,i){let o=xi(t,r,e);return o.matched?(n=ds(r,n),$s(n,r,e,i).pipe(w(s=>s===!0?o:d({},Hr)))):f(o)}function xi(t,r,e){if(r.path==="**")return Vs(e);if(r.path==="")return r.pathMatch==="full"&&(t.hasChildren()||e.length>0)?d({},Hr):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(r.matcher||ui)(e,t,r);if(!i)return d({},Hr);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?d(d({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Vs(t){return{matched:!0,parameters:t.length>0?hi(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function ai(t,r,e,n){return e.length>0&&Ws(t,e,n)?{segmentGroup:new v(r,qs(n,new v(e,t.children))),slicedSegments:[]}:e.length===0&&Xs(t,e,n)?{segmentGroup:new v(t.segments,Gs(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new v(t.segments,t.children),slicedSegments:e}}function Gs(t,r,e,n){let i={};for(let o of e)if(Xt(t,r,o)&&!n[j(o)]){let s=new v([],{});i[j(o)]=s}return d(d({},n),i)}function qs(t,r){let e={};e[p]=r;for(let n of t)if(n.path===""&&j(n)!==p){let i=new v([],{});e[j(n)]=i}return e}function Ws(t,r,e){return e.some(n=>Xt(t,r,n)&&j(n)!==p)}function Xs(t,r,e){return e.some(n=>Xt(t,r,n))}function Xt(t,r,e){return(t.hasChildren()||r.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Zs(t,r,e){return r.length===0&&!t.children[e]}var Vr=class{};function Ks(t,r,e,n,i,o,s="emptyOnly"){return new Gr(t,r,e,n,i,s,o).recognize()}var Ys=31,Gr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,e,n,i,o,s,a){this.injector=r,this.configLoader=e,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Br(this.urlSerializer,this.urlTree)}noMatchError(r){return new S(4002,`'${r.segmentGroup}'`)}recognize(){let r=ai(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(w(({children:e,rootSnapshot:n})=>{let i=new O(n,e),o=new rt("",i),s=Ri(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(r){let e=new ie([],Object.freeze({}),Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,r,p,e).pipe(w(n=>({children:n,rootSnapshot:e})),le(n=>{if(n instanceof ot)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof it?this.noMatchError(n):n}))}processSegmentGroup(r,e,n,i,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(r,e,n,o):this.processSegment(r,e,n,n.segments,i,!0,o).pipe(w(s=>s instanceof O?[s]:[]))}processChildren(r,e,n,i){let o=[];for(let s of Object.keys(n.children))s==="primary"?o.unshift(s):o.push(s);return L(o).pipe(De(s=>{let a=n.children[s],c=hs(e,s);return this.processSegmentGroup(r,c,a,s,i)}),an((s,a)=>(s.push(...a),s)),tr(null),sn(),x(s=>{if(s===null)return me(n);let a=Ui(s);return Js(a),f(a)}))}processSegment(r,e,n,i,o,s,a){return L(e).pipe(De(c=>this.processSegmentAgainstRoute(c._injector??r,e,c,n,i,o,s,a).pipe(le(l=>{if(l instanceof it)return f(null);throw l}))),K(c=>!!c),le(c=>{if(Ni(c))return Zs(n,i,o)?f(new Vr):me(n);throw c}))}processSegmentAgainstRoute(r,e,n,i,o,s,a,c){return j(n)!==s&&(s===p||!Xt(i,o,n))?me(i):n.redirectTo===void 0?this.matchSegmentAgainstRoute(r,i,n,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(r,i,e,n,o,s,c):me(i)}expandSegmentAgainstRouteUsingRedirect(r,e,n,i,o,s,a){let{matched:c,parameters:l,consumedSegments:h,positionalParamSegments:y,remainingSegments:b}=xi(e,i,o);if(!c)return me(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Ys&&(this.allowRedirects=!1));let E=new ie(o,l,Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,ci(i),j(i),i.component??i._loadedComponent??null,i,li(i)),T=Ht(E,a,this.paramsInheritanceStrategy);return E.params=Object.freeze(T.params),E.data=Object.freeze(T.data),this.applyRedirects.applyRedirectCommands(h,i.redirectTo,y,E,r).pipe(D(H=>this.applyRedirects.lineralizeSegments(i,H)),x(H=>this.processSegment(r,n,e,H.concat(b),s,!1,a)))}matchSegmentAgainstRoute(r,e,n,i,o,s){let a=Hs(e,n,i,r,this.urlSerializer);return n.path==="**"&&(e.children={}),a.pipe(D(c=>c.matched?(r=n._injector??r,this.getChildConfig(r,n,i).pipe(D(({routes:l})=>{let h=n._loadedInjector??r,{parameters:y,consumedSegments:b,remainingSegments:E}=c,T=new ie(b,y,Object.freeze(d({},this.urlTree.queryParams)),this.urlTree.fragment,ci(n),j(n),n.component??n._loadedComponent??null,n,li(n)),Z=Ht(T,s,this.paramsInheritanceStrategy);T.params=Object.freeze(Z.params),T.data=Object.freeze(Z.data);let{segmentGroup:H,slicedSegments:Ae}=ai(e,b,E,l);if(Ae.length===0&&H.hasChildren())return this.processChildren(h,l,H,T).pipe(w(ce=>new O(T,ce)));if(l.length===0&&Ae.length===0)return f(new O(T,[]));let Kt=j(n)===o;return this.processSegment(h,l,H,Ae,Kt?p:o,!0,T).pipe(w(ce=>new O(T,ce instanceof O?[ce]:[])))}))):me(e)))}getChildConfig(r,e,n){return e.children?f({routes:e.children,injector:r}):e.loadChildren?e._loadedRoutes!==void 0?f({routes:e._loadedRoutes,injector:e._loadedInjector}):js(r,e,n,this.urlSerializer).pipe(x(i=>i?this.configLoader.loadChildren(r,e).pipe(C(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):zs(e))):f({routes:[],injector:r})}};function Js(t){t.sort((r,e)=>r.value.outlet===p?-1:e.value.outlet===p?1:r.value.outlet.localeCompare(e.value.outlet))}function Qs(t){let r=t.value.routeConfig;return r&&r.path===""}function Ui(t){let r=[],e=new Set;for(let n of t){if(!Qs(n)){r.push(n);continue}let i=r.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),e.add(i)):r.push(n)}for(let n of e){let i=Ui(n.children);r.push(new O(n.value,i))}return r.filter(n=>!e.has(n))}function ci(t){return t.data||{}}function li(t){return t.resolve||{}}function ea(t,r,e,n,i,o){return x(s=>Ks(t,r,e,n,s.extractedUrl,i,o).pipe(w(({state:a,tree:c})=>_(d({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function ta(t,r){return x(e=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=e;if(!i.length)return f(e);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let l of ki(c))s.add(l);let a=0;return L(s).pipe(De(c=>o.has(c)?ra(c,n,t,r):(c.data=Ht(c,c.parent,t).resolve,f(void 0))),C(()=>a++),rr(1),x(c=>a===s.size?f(e):V))})}function ki(t){let r=t.children.map(e=>ki(e)).flat();return[t,...r]}function ra(t,r,e,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!Ai(i)&&(o[st]=i.title),dt(()=>(t.data=Ht(t,t.parent,e).resolve,na(o,t,r,n).pipe(w(s=>(t._resolvedData=s,t.data=d(d({},t.data),s),null)))))}function na(t,r,e,n){let i=Nr(t);if(i.length===0)return f({});let o={};return L(i).pipe(x(s=>ia(t[s],r,e,n).pipe(K(),C(a=>{if(a instanceof be)throw Vt(new se,a);o[s]=a}))),rr(1),w(()=>o),le(s=>Ni(s)?V:_e(s)))}function ia(t,r,e,n){let i=Te(r)??n,o=Ce(t,i),s=o.resolve?o.resolve(r,e):U(i,()=>o(r,e));return X(s)}function Or(t){return D(r=>{let e=t(r);return e?L(e).pipe(w(()=>r)):f(r)})}var Kr=(()=>{class t{buildTitle(e){let n,i=e.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(o=>o.outlet===p);return n}getResolvedTitleForRoute(e){return e.data[st]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:()=>u(ji),providedIn:"root"})}return t})(),ji=(()=>{class t extends Kr{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(m(ri))};static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Me=new R("",{providedIn:"root",factory:()=>({})}),lt=new R(""),$i=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=u(_n);loadComponent(e,n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return f(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=X(U(e,()=>n.loadComponent())).pipe(w(zi),D(Bi),C(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),ht(()=>{this.componentLoaders.delete(n)})),o=new Qt(i,()=>new k).pipe(Jt());return this.componentLoaders.set(n,o),o}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return f({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=Fi(n,this.compiler,e,this.onLoadEndListener).pipe(ht(()=>{this.childrenLoaders.delete(n)})),s=new Qt(o,()=>new k).pipe(Jt());return this.childrenLoaders.set(n,s),s}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Fi(t,r,e,n){return X(U(e,()=>t.loadChildren())).pipe(w(zi),D(Bi),x(i=>i instanceof En||Array.isArray(i)?f(i):L(r.compileModuleAsync(i))),w(i=>{n&&n(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(e).injector,s=o.get(lt,[],{optional:!0,self:!0}).flat()),{routes:s.map(Zr),injector:o}}))}function oa(t){return t&&typeof t=="object"&&"default"in t}function zi(t){return oa(t)?t.default:t}function Bi(t){return f(t)}var Zt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:()=>u(sa),providedIn:"root"})}return t})(),sa=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Hi=new R("");var Vi=new R(""),Gi=(()=>{class t{currentNavigation=Le(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new k;transitionAbortWithErrorSubject=new k;configLoader=u($i);environmentInjector=u(de);destroyRef=u(ir);urlSerializer=u(at);rootContexts=u(Ie);location=u(ge);inputBindingEnabled=u(Wt,{optional:!0})!==null;titleStrategy=u(Kr);options=u(Me,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=u(Zt);createViewTransition=u(Hi,{optional:!0});navigationErrorHandler=u(Vi,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>f(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new xt(i)),n=i=>this.events.next(new Ut(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;Y(()=>{this.transitions?.next(_(d({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:n}))})}setupNavigations(e){return this.transitions=new N(null),this.transitions.pipe(te(n=>n!==null),D(n=>{let i=!1;return f(n).pipe(D(o=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",A.SupersededByNewNavigation),V;this.currentTransition=n,this.currentNavigation.set({id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?_(d({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>o.abortController.abort()});let s=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),a=o.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!s&&a!=="reload")return this.events.next(new q(o.id,this.urlSerializer.serialize(o.rawUrl),"",Je.IgnoredSameUrlNavigation)),o.resolve(!1),V;if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return f(o).pipe(D(c=>(this.events.next(new ae(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),c.id!==this.navigationId?V:Promise.resolve(c))),ea(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),C(c=>{n.targetSnapshot=c.targetSnapshot,n.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation.update(h=>(h.finalUrl=c.urlAfterRedirects,h));let l=new Qe(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:c,extractedUrl:l,source:h,restoredState:y,extras:b}=o,E=new ae(c,this.urlSerializer.serialize(l),h,y);this.events.next(E);let T=Ci(this.rootComponentType).snapshot;return this.currentTransition=n=_(d({},o),{targetSnapshot:T,urlAfterRedirects:l,extras:_(d({},b),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(Z=>(Z.finalUrl=l,Z)),f(n)}else return this.events.next(new q(o.id,this.urlSerializer.serialize(o.extractedUrl),"",Je.IgnoredByUrlHandlingStrategy)),o.resolve(!1),V}),C(o=>{let s=new Ot(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(s)}),w(o=>(this.currentTransition=n=_(d({},o),{guards:ws(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),n)),Ds(this.environmentInjector,o=>this.events.next(o)),C(o=>{if(n.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw Vt(this.urlSerializer,o.guardsResult);let s=new Pt(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(s)}),te(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",A.GuardRejected),!1)),Or(o=>{if(o.guards.canActivateChecks.length!==0)return f(o).pipe(C(s=>{let a=new Nt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),D(s=>{let a=!1;return f(s).pipe(ta(this.paramsInheritanceStrategy,this.environmentInjector),C({next:()=>a=!0,complete:()=>{a||this.cancelNavigationTransition(s,"",A.NoDataFromResolver)}}))}),C(s=>{let a=new Lt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}))}),Or(o=>{let s=a=>{let c=[];if(a.routeConfig?.loadComponent){let l=Te(a)??this.environmentInjector;c.push(this.configLoader.loadComponent(l,a.routeConfig).pipe(C(h=>{a.component=h}),w(()=>{})))}for(let l of a.children)c.push(...s(l));return c};return er(s(o.targetSnapshot.root)).pipe(tr(null),ue(1))}),Or(()=>this.afterPreactivation()),D(()=>{let{currentSnapshot:o,targetSnapshot:s}=n,a=this.createViewTransition?.(this.environmentInjector,o.root,s.root);return a?L(a).pipe(w(()=>n)):f(n)}),w(o=>{let s=ps(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=n=_(d({},o),{targetRouterState:s}),this.currentNavigation.update(a=>(a.targetRouterState=s,a)),n}),C(()=>{this.events.next(new et)}),ys(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),ue(1),nr(new tn(o=>{let s=n.abortController.signal,a=()=>o.next();return s.addEventListener("abort",a),()=>s.removeEventListener("abort",a)}).pipe(te(()=>!i&&!n.targetRouterState),C(()=>{this.cancelNavigationTransition(n,n.abortController.signal.reason+"",A.Aborted)}))),C({next:o=>{i=!0,this.lastSuccessfulNavigation=Y(this.currentNavigation),this.events.next(new B(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{i=!0}}),nr(this.transitionAbortWithErrorSubject.pipe(C(o=>{throw o}))),ht(()=>{i||this.cancelNavigationTransition(n,"",A.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),le(o=>{if(this.destroyed)return n.resolve(!1),V;if(i=!0,Pi(o))this.events.next(new F(n.id,this.urlSerializer.serialize(n.extractedUrl),o.message,o.cancellationCode)),vs(o)?this.events.next(new Re(o.url,o.navigationBehaviorOptions)):n.resolve(!1);else{let s=new Se(n.id,this.urlSerializer.serialize(n.extractedUrl),o,n.targetSnapshot??void 0);try{let a=U(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(a instanceof be){let{message:c,cancellationCode:l}=Vt(this.urlSerializer,a);this.events.next(new F(n.id,this.urlSerializer.serialize(n.extractedUrl),c,l)),this.events.next(new Re(a.redirectTo,a.navigationBehaviorOptions))}else throw this.events.next(s),o}catch(a){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(a)}}return V}))}))}cancelNavigationTransition(e,n,i){let o=new F(e.id,this.urlSerializer.serialize(e.extractedUrl),n,i);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))),n=Y(this.currentNavigation),i=n?.targetBrowserUrl??n?.extractedUrl;return e.toString()!==i?.toString()&&!n?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function aa(t){return t!==Ze}var qi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:()=>u(ca),providedIn:"root"})}return t})(),qt=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}},ca=(()=>{class t extends qt{static \u0275fac=(()=>{let e;return function(i){return(e||(e=sr(t)))(i||t)}})();static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Wi=(()=>{class t{urlSerializer=u(at);options=u(Me,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=u(ge);urlHandlingStrategy=u(Zt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new z;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:n,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,n):n,s=i??o;return s instanceof z?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:e,finalUrl:n,initialUrl:i}){n&&e?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,i),this.routerState=e):this.rawUrlTree=i}routerState=Ci(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:()=>u(la),providedIn:"root"})}return t})(),la=(()=>{class t extends Wi{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{e(n.url,n.state,"popstate")})})}handleRouterEvent(e,n){e instanceof ae?this.updateStateMemento():e instanceof q?this.commitTransition(n):e instanceof Qe?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof et?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof F&&e.code!==A.SupersededByNewNavigation&&e.code!==A.Redirect?this.restoreHistory(n):e instanceof Se?this.restoreHistory(n,!0):e instanceof B&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:n,id:i}){let{replaceUrl:o,state:s}=n;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,c=d(d({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",c)}else{let a=d(d({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=sr(t)))(i||t)}})();static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Yr(t,r){t.events.pipe(te(e=>e instanceof B||e instanceof F||e instanceof Se||e instanceof q),w(e=>e instanceof B||e instanceof q?0:(e instanceof F?e.code===A.Redirect||e.code===A.SupersededByNewNavigation:!1)?2:1),te(e=>e!==2),ue(1)).subscribe(()=>{r()})}var ua={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},da={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ut=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=u(hr);stateManager=u(Wi);options=u(Me,{optional:!0})||{};pendingTasks=u(dn);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=u(Gi);urlSerializer=u(at);location=u(ge);urlHandlingStrategy=u(Zt);injector=u(de);_events=new k;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=u(qi);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=u(lt,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!u(Wt,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new Qr;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,o=Y(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof F&&n.code!==A.Redirect&&n.code!==A.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof B)this.navigated=!0;else if(n instanceof Re){let s=n.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),c=d({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||aa(i.source)},s);this.scheduleNavigation(a,Ze,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}us(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});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),Ze,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n,i)=>{this.navigateToSyncWithBrowser(e,i,n)})}navigateToSyncWithBrowser(e,n,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let c=d({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let a=this.parseUrl(e);this.scheduleNavigation(a,n,s,o).catch(c=>{this.disposed||this.injector.get(ft)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Y(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Zr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=n,l=c?this.currentUrlTree.fragment:s,h=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":h=d(d({},this.currentUrlTree.queryParams),o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}h!==null&&(h=this.removeEmptyProps(h));let y;try{let b=i?i.snapshot:this.routerState.snapshot.root;y=bi(b)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),y=this.currentUrlTree.root}return Ei(y,e,h,l??null)}navigateByUrl(e,n={skipLocationChange:!1}){let i=ee(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Ze,null,n)}navigate(e,n={skipLocationChange:!1}){return ha(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(Oe(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,n){let i;if(n===!0?i=d({},ua):n===!1?i=d({},da):i=n,ee(e))return ni(this.currentUrlTree,e,i);let o=this.parseUrl(e);return ni(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((n,[i,o])=>(o!=null&&(n[i]=o),n),{})}scheduleNavigation(e,n,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((y,b)=>{a=y,c=b});let h=this.pendingTasks.add();return Yr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(y=>Promise.reject(y))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=g({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ha(t){for(let r=0;r{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=Le(null);get href(){return Y(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new k;applicationErrorHandler=u(ft);options=u(Me,{optional:!0});constructor(e,n,i,o,s,a){this.router=e,this.route=n,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this.reactiveHref.set(u(new Dn("href"),{optional:!0}));let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(this.subscription!==void 0||!this.isAnchorElement)return;let e=this.preserveFragment,n=i=>i==="merge"||i==="preserve";e||=n(this.queryParamsHandling),e||=!this.queryParamsHandling&&!n(this.options?.defaultQueryParamsHandling),e&&(this.subscription=this.router.events.subscribe(i=>{i instanceof B&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(ee(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,i,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||n||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c)?.catch(l=>{this.applicationErrorHandler(l)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,n){let i=this.renderer,o=this.el.nativeElement;n!==null?i.setAttribute(o,e,n):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:ee(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(n){return new(n||t)(fe(ut),fe(W),hn("tabindex"),fe(Rn),fe(fn),fe(pe))};static \u0275dir=gt({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(n,i){n&1&&An("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&Cn("href",i.reactiveHref(),vn)("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",vt],skipLocationChange:[2,"skipLocationChange","skipLocationChange",vt],replaceUrl:[2,"replaceUrl","replaceUrl",vt],routerLink:"routerLink"},features:[pt]})}return t})();var pa=new R("");function ga(t,...r){return Pe([{provide:lt,multi:!0,useValue:t},[],{provide:W,useFactory:ma,deps:[ut]},{provide:mt,multi:!0,useFactory:va},r.map(e=>e.\u0275providers)])}function ma(t){return t.routerState.root}function va(){let t=u(Ne);return r=>{let e=t.get(ke);if(r!==e.components[0])return;let n=t.get(ut),i=t.get(ya);t.get(wa)===1&&n.initialNavigation(),t.get(Sa,null,{optional:!0})?.setUpPreloading(),t.get(pa,null,{optional:!0})?.init(),n.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var ya=new R("",{factory:()=>new k}),wa=new R("",{providedIn:"root",factory:()=>1});var Sa=new R("");export{po as a,ol as b,sl as c,Wr as d,Xi as e,ga as f};