generated from fastai/fast_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchunk-ULCO6RSH.js
1 lines (1 loc) · 86.4 KB
/
chunk-ULCO6RSH.js
1
import{$ as y,$a as Cr,$b as $r,A as ne,Aa as cr,Ab as rt,B as Ot,Ba as ur,Bb as Tr,C as re,Ca as lr,Cb as qt,D as Gn,Da as hr,Db as Wt,Ea as J,Eb as Gt,F as Xe,Fb as it,G as H,Ga as dr,Gb as Ar,H as Nt,Ha as be,Hb as st,I as Zn,Ib as Dr,J as Kn,Ja as L,Jb as Zt,Ka as fr,Kb as Or,L as Qn,La as pr,Lb as Nr,M as x,Ma as Vt,Mb as N,N as Yn,Na as nt,Nb as Pr,O as E,Oa as j,Ob as Ee,P as w,Pa as gr,Pb as Ur,Q as ie,Qa as vr,Qb as xr,R as Pt,Rb as Ie,S as Ce,Sa as mr,Sb as Lr,T as Je,Ta as yr,U as Xn,Ua as Bt,V as Ut,Va as Sr,W as et,Xb as jr,Z as xt,Zb as Kt,_ as Jn,_b as kr,a as h,aa as Lt,b as I,ba as er,ca as M,d as Hn,da as jt,e as Vn,ea as tr,f as Tt,fa as we,g as At,ga as kt,h as z,i as O,ia as S,j as Q,ja as f,jb as wr,k as T,ka as $t,l as d,la as nr,lb as Rr,m as ye,ma as _t,n as Bn,na as rr,nb as br,o as qn,oa as Re,ob as Er,p as C,pa as V,pb as Ir,q as Ye,qa as tt,r as A,ra as Ft,s as Se,sa as ir,t as Wn,ta as zt,u as Dt,ua as Ht,va as se,wa as oe,xa as sr,xb as Mr,y as Y,ya as or,z as X,za as ar}from"./chunk-YMYA36DF.js";var Xt=class extends Nr{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Jt=class n extends Xt{static makeCurrent(){Or(new n)}onAndCancel(e,i,t){return e.addEventListener(i,t),()=>{e.removeEventListener(i,t)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=Hi();return i==null?null:Vi(i)}resetBaseElement(){Me=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Lr(document.cookie,e)}},Me=null;function Hi(){return Me=Me||document.querySelector("base"),Me?Me.getAttribute("href"):null}function Vi(n){return new URL(n,document.baseURI).pathname}var Bi=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac});let n=e;return n})(),en=new M(""),Hr=(()=>{let e=class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(s=>{s.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,s){return this._findPluginFor(r).addEventListener(t,r,s)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(o=>o.supports(t)),!r)throw new w(5101,!1);return this._eventNameToPlugin.set(t,r),r}};e.\u0275fac=function(r){return new(r||e)(S(en),S(j))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let n=e;return n})(),ot=class{constructor(e){this._doc=e}},Qt="ng-app-id",Vr=(()=>{let e=class e{constructor(t,r,s,o={}){this.doc=t,this.appId=r,this.nonce=s,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Kt(o),this.resetHostNodes()}addStyles(t){for(let r of t)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(t){for(let r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(let r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(let r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){let r=this.styleRef;r.get(t)?.elements?.forEach(s=>s.remove()),r.delete(t)}collectServerRenderedStyles(){let t=this.doc.head?.querySelectorAll(`style[${Qt}="${this.appId}"]`);if(t?.length){let r=new Map;return t.forEach(s=>{s.textContent!=null&&r.set(s.textContent,s)}),r}return null}changeUsageCount(t,r){let s=this.styleRef;if(s.has(t)){let o=s.get(t);return o.usage+=r,o.usage}return s.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){let s=this.styleNodesInDOM,o=s?.get(r);if(o?.parentNode===t)return s.delete(r),o.removeAttribute(Qt),o;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(Qt,this.appId),t.appendChild(a),a}}addStyleToHost(t,r){let s=this.getStyleElement(t,r),o=this.styleRef,a=o.get(r)?.elements;a?a.push(s):o.set(r,{elements:[s],usage:1})}resetHostNodes(){let t=this.hostNodes;t.clear(),t.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(S(N),S(jt),S(kt,8),S(we))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let n=e;return n})(),Yt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},nn=/%COMP%/g,Br="%COMP%",qi=`_nghost-${Br}`,Wi=`_ngcontent-${Br}`,Gi=!0,Zi=new M("",{providedIn:"root",factory:()=>Gi});function Ki(n){return Wi.replace(nn,n)}function Qi(n){return qi.replace(nn,n)}function qr(n,e){return e.map(i=>i.replace(nn,n))}var _r=(()=>{let e=class e{constructor(t,r,s,o,a,u,c,l=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=s,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=u,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Kt(u),this.defaultRenderer=new Te(t,a,c,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ce.ShadowDom&&(r=I(h({},r),{encapsulation:Ce.Emulated}));let s=this.getOrCreateRenderer(t,r);return s instanceof at?s.applyToHost(t):s instanceof Ae&&s.applyStyles(),s}getOrCreateRenderer(t,r){let s=this.rendererByCompId,o=s.get(r.id);if(!o){let a=this.doc,u=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,v=this.platformIsServer;switch(r.encapsulation){case Ce.Emulated:o=new at(c,l,r,this.appId,p,a,u,v);break;case Ce.ShadowDom:return new tn(c,l,t,r,a,u,this.nonce,v);default:o=new Ae(c,l,r,p,a,u,v);break}s.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(S(Hr),S(Vr),S(jt),S(Zi),S(N),S(we),S(j),S(kt))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let n=e;return n})(),Te=class{constructor(e,i,t,r){this.eventManager=e,this.doc=i,this.ngZone=t,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS(Yt[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(Fr(e)?e.content:e).appendChild(i)}insertBefore(e,i,t){e&&(Fr(e)?e.content:e).insertBefore(i,t)}removeChild(e,i){e&&e.removeChild(i)}selectRootElement(e,i){let t=typeof e=="string"?this.doc.querySelector(e):e;if(!t)throw new w(-5104,!1);return i||(t.textContent=""),t}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,t,r){if(r){i=r+":"+i;let s=Yt[r];s?e.setAttributeNS(s,i,t):e.setAttribute(i,t)}else e.setAttribute(i,t)}removeAttribute(e,i,t){if(t){let r=Yt[t];r?e.removeAttributeNS(r,i):e.removeAttribute(`${t}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,t,r){r&(be.DashCase|be.Important)?e.style.setProperty(i,t,r&be.Important?"important":""):e.style[i]=t}removeStyle(e,i,t){t&be.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,t){e!=null&&(e[i]=t)}setValue(e,i){e.nodeValue=i}listen(e,i,t){if(typeof e=="string"&&(e=Zt().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(t))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};function Fr(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var tn=class extends Te{constructor(e,i,t,r,s,o,a,u){super(e,s,o,u),this.sharedStylesHost=i,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=qr(r.id,r.styles);for(let l of c){let p=document.createElement("style");a&&p.setAttribute("nonce",a),p.textContent=l,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,t){return super.insertBefore(this.nodeOrShadowRoot(e),i,t)}removeChild(e,i){return super.removeChild(this.nodeOrShadowRoot(e),i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Ae=class extends Te{constructor(e,i,t,r,s,o,a,u){super(e,s,o,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=u?qr(u,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},at=class extends Ae{constructor(e,i,t,r,s,o,a,u){let c=r+"-"+t.id;super(e,i,t,s,o,a,u,c),this.contentAttr=Ki(c),this.hostAttr=Qi(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let t=super.createElement(e,i);return super.setAttribute(t,this.contentAttr,""),t}},Yi=(()=>{let e=class e extends ot{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,s){return t.addEventListener(r,s,!1),()=>this.removeEventListener(t,r,s)}removeEventListener(t,r,s){return t.removeEventListener(r,s)}};e.\u0275fac=function(r){return new(r||e)(S(N))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let n=e;return n})(),zr=["alt","control","meta","shift"],Xi={"\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"},Ji={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},es=(()=>{let e=class e extends ot{constructor(t){super(t)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,r,s){let o=e.parseEventName(r),a=e.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Zt().onAndCancel(t,o.domEventName,a))}static parseEventName(t){let r=t.toLowerCase().split("."),s=r.shift();if(r.length===0||!(s==="keydown"||s==="keyup"))return null;let o=e._normalizeKey(r.pop()),a="",u=r.indexOf("code");if(u>-1&&(r.splice(u,1),a="code."),zr.forEach(l=>{let p=r.indexOf(l);p>-1&&(r.splice(p,1),a+=l+".")}),a+=o,r.length!=0||o.length===0)return null;let c={};return c.domEventName=s,c.fullKey=a,c}static matchEventFullKeyCode(t,r){let s=Xi[t.key]||t.key,o="";return r.indexOf("code.")>-1&&(s=t.code,o="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),zr.forEach(a=>{if(a!==s){let u=Ji[a];u(t)&&(o+=a+".")}}),o+=s,o===r)}static eventCallback(t,r,s){return o=>{e.matchEventFullKeyCode(o,t)&&s.runGuarded(()=>r(o))}}static _normalizeKey(t){return t==="esc"?"escape":t}};e.\u0275fac=function(r){return new(r||e)(S(N))},e.\u0275prov=y({token:e,factory:e.\u0275fac});let n=e;return n})();function Na(n,e){return Ar(h({rootComponent:n},ts(e)))}function ts(n){return{appProviders:[...os,...n?.providers??[]],platformProviders:ss}}function ns(){Jt.makeCurrent()}function rs(){return new Ht}function is(){return Jn(document),document}var ss=[{provide:we,useValue:jr},{provide:tr,useValue:ns,multi:!0},{provide:N,useFactory:is,deps:[]}];var os=[{provide:rr,useValue:"root"},{provide:Ht,useFactory:rs,deps:[]},{provide:en,useClass:Yi,multi:!0,deps:[N,j,we]},{provide:en,useClass:es,multi:!0,deps:[N]},_r,Vr,Hr,{provide:pr,useExisting:_r},{provide:$r,useClass:Bi,deps:[]},[]];var Wr=(()=>{let e=class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}};e.\u0275fac=function(r){return new(r||e)(S(N))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var as=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:function(r){let s=null;return r?s=new(r||e):s=S(cs),s},providedIn:"root"});let n=e;return n})(),cs=(()=>{let e=class e extends as{constructor(t){super(),this._doc=t}sanitize(t,r){if(r==null)return null;switch(t){case J.NONE:return r;case J.HTML:return oe(r,"HTML")?se(r):hr(this._doc,String(r)).toString();case J.STYLE:return oe(r,"Style")?se(r):r;case J.SCRIPT:if(oe(r,"Script"))return se(r);throw new w(5200,!1);case J.URL:return oe(r,"URL")?se(r):lr(String(r));case J.RESOURCE_URL:if(oe(r,"ResourceURL"))return se(r);throw new w(5201,!1);default:throw new w(5202,!1)}}bypassSecurityTrustHtml(t){return sr(t)}bypassSecurityTrustStyle(t){return or(t)}bypassSecurityTrustScript(t){return ar(t)}bypassSecurityTrustUrl(t){return cr(t)}bypassSecurityTrustResourceUrl(t){return ur(t)}};e.\u0275fac=function(r){return new(r||e)(S(N))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var g="primary",Be=Symbol("RouteTitle"),cn=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i[0]:i}return null}getAll(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function he(n){return new cn(n)}function ls(n,e,i){let t=i.path.split("/");if(t.length>n.length||i.pathMatch==="full"&&(e.hasChildren()||t.length<n.length))return null;let r={};for(let s=0;s<t.length;s++){let o=t[s],a=n[s];if(o.startsWith(":"))r[o.substring(1)]=a;else if(o!==a.path)return null}return{consumed:n.slice(0,t.length),posParams:r}}function hs(n,e){if(n.length!==e.length)return!1;for(let i=0;i<n.length;++i)if(!$(n[i],e[i]))return!1;return!0}function $(n,e){let i=n?un(n):void 0,t=e?un(e):void 0;if(!i||!t||i.length!=t.length)return!1;let r;for(let s=0;s<i.length;s++)if(r=i[s],!ni(n[r],e[r]))return!1;return!0}function un(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}function ni(n,e){if(Array.isArray(n)&&Array.isArray(e)){if(n.length!==e.length)return!1;let i=[...n].sort(),t=[...e].sort();return i.every((r,s)=>t[s]===r)}else return n===e}function ri(n){return n.length>0?n[n.length-1]:null}function Z(n){return Bn(n)?n:Tr(n)?T(Promise.resolve(n)):d(n)}var ds={exact:si,subset:oi},ii={exact:fs,subset:ps,ignored:()=>!0};function Gr(n,e,i){return ds[i.paths](n.root,e.root,i.matrixParams)&&ii[i.queryParams](n.queryParams,e.queryParams)&&!(i.fragment==="exact"&&n.fragment!==e.fragment)}function fs(n,e){return $(n,e)}function si(n,e,i){if(!te(n.segments,e.segments)||!lt(n.segments,e.segments,i)||n.numberOfChildren!==e.numberOfChildren)return!1;for(let t in e.children)if(!n.children[t]||!si(n.children[t],e.children[t],i))return!1;return!0}function ps(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(i=>ni(n[i],e[i]))}function oi(n,e,i){return ai(n,e,e.segments,i)}function ai(n,e,i,t){if(n.segments.length>i.length){let r=n.segments.slice(0,i.length);return!(!te(r,i)||e.hasChildren()||!lt(r,i,t))}else if(n.segments.length===i.length){if(!te(n.segments,i)||!lt(n.segments,i,t))return!1;for(let r in e.children)if(!n.children[r]||!oi(n.children[r],e.children[r],t))return!1;return!0}else{let r=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!te(n.segments,r)||!lt(n.segments,r,t)||!n.children[g]?!1:ai(n.children[g],e,s,t)}}function lt(n,e,i){return e.every((t,r)=>ii[i](n[r].parameters,t.parameters))}var B=class{constructor(e=new m([],{}),i={},t=null){this.root=e,this.queryParams=i,this.fragment=t}get queryParamMap(){return this._queryParamMap??=he(this.queryParams),this._queryParamMap}toString(){return ms.serialize(this)}},m=class{constructor(e,i){this.segments=e,this.children=i,this.parent=null,Object.values(i).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ht(this)}},ee=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap??=he(this.parameters),this._parameterMap}toString(){return ui(this)}};function gs(n,e){return te(n,e)&&n.every((i,t)=>$(i.parameters,e[t].parameters))}function te(n,e){return n.length!==e.length?!1:n.every((i,t)=>i.path===e[t].path)}function vs(n,e){let i=[];return Object.entries(n.children).forEach(([t,r])=>{t===g&&(i=i.concat(e(r,t)))}),Object.entries(n.children).forEach(([t,r])=>{t!==g&&(i=i.concat(e(r,t)))}),i}var qe=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:()=>new Le,providedIn:"root"});let n=e;return n})(),Le=class{parse(e){let i=new hn(e);return new B(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${De(e.root,!0)}`,t=Cs(e.queryParams),r=typeof e.fragment=="string"?`#${ys(e.fragment)}`:"";return`${i}${t}${r}`}},ms=new Le;function ht(n){return n.segments.map(e=>ui(e)).join("/")}function De(n,e){if(!n.hasChildren())return ht(n);if(e){let i=n.children[g]?De(n.children[g],!1):"",t=[];return Object.entries(n.children).forEach(([r,s])=>{r!==g&&t.push(`${r}:${De(s,!1)}`)}),t.length>0?`${i}(${t.join("//")})`:i}else{let i=vs(n,(t,r)=>r===g?[De(n.children[g],!1)]:[`${r}:${De(t,!1)}`]);return Object.keys(n.children).length===1&&n.children[g]!=null?`${ht(n)}/${i[0]}`:`${ht(n)}/(${i.join("//")})`}}function ci(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ct(n){return ci(n).replace(/%3B/gi,";")}function ys(n){return encodeURI(n)}function ln(n){return ci(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function dt(n){return decodeURIComponent(n)}function Zr(n){return dt(n.replace(/\+/g,"%20"))}function ui(n){return`${ln(n.path)}${Ss(n.parameters)}`}function Ss(n){return Object.entries(n).map(([e,i])=>`;${ln(e)}=${ln(i)}`).join("")}function Cs(n){let e=Object.entries(n).map(([i,t])=>Array.isArray(t)?t.map(r=>`${ct(i)}=${ct(r)}`).join("&"):`${ct(i)}=${ct(t)}`).filter(i=>i);return e.length?`?${e.join("&")}`:""}var ws=/^[^\/()?;#]+/;function rn(n){let e=n.match(ws);return e?e[0]:""}var Rs=/^[^\/()?;=#]+/;function bs(n){let e=n.match(Rs);return e?e[0]:""}var Es=/^[^=?&#]+/;function Is(n){let e=n.match(Es);return e?e[0]:""}var Ms=/^[^&#]+/;function Ts(n){let e=n.match(Ms);return e?e[0]:""}var hn=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(t[g]=new m(e,i)),t}parseSegment(){let e=rn(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(e),new ee(dt(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=bs(this.remaining);if(!i)return;this.capture(i);let t="";if(this.consumeOptional("=")){let r=rn(this.remaining);r&&(t=r,this.capture(t))}e[dt(i)]=dt(t)}parseQueryParam(e){let i=Is(this.remaining);if(!i)return;this.capture(i);let t="";if(this.consumeOptional("=")){let o=Ts(this.remaining);o&&(t=o,this.capture(t))}let r=Zr(i),s=Zr(t);if(e.hasOwnProperty(r)){let o=e[r];Array.isArray(o)||(o=[o],e[r]=o),o.push(s)}else e[r]=s}parseParens(e){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=rn(this.remaining),r=this.remaining[t.length];if(r!=="/"&&r!==")"&&r!==";")throw new w(4010,!1);let s;t.indexOf(":")>-1?(s=t.slice(0,t.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=g);let o=this.parseChildren();i[s]=Object.keys(o).length===1?o[g]:new m([],o),this.consumeOptional("//")}return i}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new w(4011,!1)}};function li(n){return n.segments.length>0?new m([],{[g]:n}):n}function hi(n){let e={};for(let[t,r]of Object.entries(n.children)){let s=hi(r);if(t===g&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))e[o]=a;else(s.segments.length>0||s.hasChildren())&&(e[t]=s)}let i=new m(n.segments,e);return As(i)}function As(n){if(n.numberOfChildren===1&&n.children[g]){let e=n.children[g];return new m(n.segments.concat(e.segments),e.children)}return n}function de(n){return n instanceof B}function Ds(n,e,i=null,t=null){let r=di(n);return fi(r,e,i,t)}function di(n){let e;function i(s){let o={};for(let u of s.children){let c=i(u);o[u.outlet]=c}let a=new m(s.url,o);return s===n&&(e=a),a}let t=i(n.root),r=li(t);return e??r}function fi(n,e,i,t){let r=n;for(;r.parent;)r=r.parent;if(e.length===0)return sn(r,r,r,i,t);let s=Os(e);if(s.toRoot())return sn(r,r,new m([],{}),i,t);let o=Ns(s,r,n),a=o.processChildren?Pe(o.segmentGroup,o.index,s.commands):gi(o.segmentGroup,o.index,s.commands);return sn(r,o.segmentGroup,a,i,t)}function ft(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function je(n){return typeof n=="object"&&n!=null&&n.outlets}function sn(n,e,i,t,r){let s={};t&&Object.entries(t).forEach(([u,c])=>{s[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let o;n===e?o=i:o=pi(n,e,i);let a=li(hi(o));return new B(a,s,r)}function pi(n,e,i){let t={};return Object.entries(n.children).forEach(([r,s])=>{s===e?t[r]=i:t[r]=pi(s,e,i)}),new m(n.segments,t)}var pt=class{constructor(e,i,t){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=t,e&&t.length>0&&ft(t[0]))throw new w(4003,!1);let r=t.find(je);if(r&&r!==ri(t))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Os(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new pt(!0,0,n);let e=0,i=!1,t=n.reduce((r,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return typeof s!="string"?[...r,s]:o===0?(s.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?i=!0:a===".."?e++:a!=""&&r.push(a))}),r):[...r,s]},[]);return new pt(i,e,t)}var ue=class{constructor(e,i,t){this.segmentGroup=e,this.processChildren=i,this.index=t}};function Ns(n,e,i){if(n.isAbsolute)return new ue(e,!0,0);if(!i)return new ue(e,!1,NaN);if(i.parent===null)return new ue(i,!0,0);let t=ft(n.commands[0])?0:1,r=i.segments.length-1+t;return Ps(i,r,n.numberOfDoubleDots)}function Ps(n,e,i){let t=n,r=e,s=i;for(;s>r;){if(s-=r,t=t.parent,!t)throw new w(4005,!1);r=t.segments.length}return new ue(t,!1,r-s)}function Us(n){return je(n[0])?n[0].outlets:{[g]:n}}function gi(n,e,i){if(n??=new m([],{}),n.segments.length===0&&n.hasChildren())return Pe(n,e,i);let t=xs(n,e,i),r=i.slice(t.commandIndex);if(t.match&&t.pathIndex<n.segments.length){let s=new m(n.segments.slice(0,t.pathIndex),{});return s.children[g]=new m(n.segments.slice(t.pathIndex),n.children),Pe(s,0,r)}else return t.match&&r.length===0?new m(n.segments,{}):t.match&&!n.hasChildren()?dn(n,e,i):t.match?Pe(n,0,r):dn(n,e,i)}function Pe(n,e,i){if(i.length===0)return new m(n.segments,{});{let t=Us(i),r={};if(Object.keys(t).some(s=>s!==g)&&n.children[g]&&n.numberOfChildren===1&&n.children[g].segments.length===0){let s=Pe(n.children[g],e,i);return new m(n.segments,s.children)}return Object.entries(t).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(r[s]=gi(n.children[s],e,o))}),Object.entries(n.children).forEach(([s,o])=>{t[s]===void 0&&(r[s]=o)}),new m(n.segments,r)}}function xs(n,e,i){let t=0,r=e,s={match:!1,pathIndex:0,commandIndex:0};for(;r<n.segments.length;){if(t>=i.length)return s;let o=n.segments[r],a=i[t];if(je(a))break;let u=`${a}`,c=t<i.length-1?i[t+1]:null;if(r>0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!Qr(u,c,o))return s;t+=2}else{if(!Qr(u,{},o))return s;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}function dn(n,e,i){let t=n.segments.slice(0,e),r=0;for(;r<i.length;){let s=i[r];if(je(s)){let u=Ls(s.outlets);return new m(t,u)}if(r===0&&ft(i[0])){let u=n.segments[e];t.push(new ee(u.path,Kr(i[0]))),r++;continue}let o=je(s)?s.outlets[g]:`${s}`,a=r<i.length-1?i[r+1]:null;o&&a&&ft(a)?(t.push(new ee(o,Kr(a))),r+=2):(t.push(new ee(o,{})),r++)}return new m(t,{})}function Ls(n){let e={};return Object.entries(n).forEach(([i,t])=>{typeof t=="string"&&(t=[t]),t!==null&&(e[i]=dn(new m([],{}),0,t))}),e}function Kr(n){let e={};return Object.entries(n).forEach(([i,t])=>e[i]=`${t}`),e}function Qr(n,e,i){return n==i.path&&$(e,i.parameters)}var Ue="imperative",b=function(n){return n[n.NavigationStart=0]="NavigationStart",n[n.NavigationEnd=1]="NavigationEnd",n[n.NavigationCancel=2]="NavigationCancel",n[n.NavigationError=3]="NavigationError",n[n.RoutesRecognized=4]="RoutesRecognized",n[n.ResolveStart=5]="ResolveStart",n[n.ResolveEnd=6]="ResolveEnd",n[n.GuardsCheckStart=7]="GuardsCheckStart",n[n.GuardsCheckEnd=8]="GuardsCheckEnd",n[n.RouteConfigLoadStart=9]="RouteConfigLoadStart",n[n.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",n[n.ChildActivationStart=11]="ChildActivationStart",n[n.ChildActivationEnd=12]="ChildActivationEnd",n[n.ActivationStart=13]="ActivationStart",n[n.ActivationEnd=14]="ActivationEnd",n[n.Scroll=15]="Scroll",n[n.NavigationSkipped=16]="NavigationSkipped",n}(b||{}),U=class{constructor(e,i){this.id=e,this.url=i}},fe=class extends U{constructor(e,i,t="imperative",r=null){super(e,i),this.type=b.NavigationStart,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},k=class extends U{constructor(e,i,t){super(e,i),this.urlAfterRedirects=t,this.type=b.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},P=function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n}(P||{}),gt=function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n}(gt||{}),q=class extends U{constructor(e,i,t,r){super(e,i),this.reason=t,this.code=r,this.type=b.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},W=class extends U{constructor(e,i,t,r){super(e,i),this.reason=t,this.code=r,this.type=b.NavigationSkipped}},ke=class extends U{constructor(e,i,t,r){super(e,i),this.error=t,this.target=r,this.type=b.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},vt=class extends U{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=b.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},fn=class extends U{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=b.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pn=class extends U{constructor(e,i,t,r,s){super(e,i),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=s,this.type=b.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},gn=class extends U{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=b.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},vn=class extends U{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=b.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},mn=class{constructor(e){this.route=e,this.type=b.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},yn=class{constructor(e){this.route=e,this.type=b.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Sn=class{constructor(e){this.snapshot=e,this.type=b.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Cn=class{constructor(e){this.snapshot=e,this.type=b.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},wn=class{constructor(e){this.snapshot=e,this.type=b.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Rn=class{constructor(e){this.snapshot=e,this.type=b.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},mt=class{constructor(e,i,t){this.routerEvent=e,this.position=i,this.anchor=t,this.type=b.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},$e=class{},_e=class{constructor(e){this.url=e}};var bn=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new We,this.attachRef=null}},We=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(t,r){let s=this.getOrCreateContext(t);s.outlet=r,this.contexts.set(t,s)}onChildOutletDestroyed(t){let r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new bn,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),yt=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let i=this.pathFromRoot(e);return i.length>1?i[i.length-2]:null}children(e){let i=En(e,this._root);return i?i.children.map(t=>t.value):[]}firstChild(e){let i=En(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=In(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return In(e,this._root).map(i=>i.value)}};function En(n,e){if(n===e.value)return e;for(let i of e.children){let t=En(n,i);if(t)return t}return null}function In(n,e){if(n===e.value)return[e];for(let i of e.children){let t=In(n,i);if(t.length)return t.unshift(e),t}return[]}var D=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};function ce(n){let e={};return n&&n.children.forEach(i=>e[i.value.outlet]=i),e}var St=class extends yt{constructor(e,i){super(e),this.snapshot=i,Ln(this,e)}toString(){return this.snapshot.toString()}};function vi(n){let e=js(n),i=new O([new ee("",{})]),t=new O({}),r=new O({}),s=new O({}),o=new O(""),a=new G(i,t,s,o,r,g,n,e.root);return a.snapshot=e.root,new St(new D(a,[]),e)}function js(n){let e={},i={},t={},r="",s=new Fe([],e,t,r,i,g,n,null,{});return new Ct("",new D(s,[]))}var G=class{constructor(e,i,t,r,s,o,a,u){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=t,this.fragmentSubject=r,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(C(c=>c[Be]))??d(void 0),this.url=e,this.params=i,this.queryParams=t,this.fragment=r,this.data=s}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(C(e=>he(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(C(e=>he(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function xn(n,e,i="emptyOnly"){let t,{routeConfig:r}=n;return e!==null&&(i==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?t={params:h(h({},e.params),n.params),data:h(h({},e.data),n.data),resolve:h(h(h(h({},n.data),e.data),r?.data),n._resolvedData)}:t={params:h({},n.params),data:h({},n.data),resolve:h(h({},n.data),n._resolvedData??{})},r&&yi(r)&&(t.resolve[Be]=r.title),t}var Fe=class{get title(){return this.data?.[Be]}constructor(e,i,t,r,s,o,a,u,c){this.url=e,this.params=i,this.queryParams=t,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this.routeConfig=u,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??=he(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=he(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(t=>t.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${i}')`}},Ct=class extends yt{constructor(e,i){super(i),this.url=e,Ln(this,i)}toString(){return mi(this._root)}};function Ln(n,e){e.value._routerState=n,e.children.forEach(i=>Ln(n,i))}function mi(n){let e=n.children.length>0?` { ${n.children.map(mi).join(", ")} } `:"";return`${n.value}${e}`}function on(n){if(n.snapshot){let e=n.snapshot,i=n._futureSnapshot;n.snapshot=i,$(e.queryParams,i.queryParams)||n.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&n.fragmentSubject.next(i.fragment),$(e.params,i.params)||n.paramsSubject.next(i.params),hs(e.url,i.url)||n.urlSubject.next(i.url),$(e.data,i.data)||n.dataSubject.next(i.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function Mn(n,e){let i=$(n.params,e.params)&&gs(n.url,e.url),t=!n.parent!=!e.parent;return i&&!t&&(!n.parent||Mn(n.parent,e.parent))}function yi(n){return typeof n.title=="string"||n.title===null}var ks=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=g,this.activateEvents=new ie,this.deactivateEvents=new ie,this.attachEvents=new ie,this.detachEvents=new ie,this.parentContexts=f(We),this.location=f(vr),this.changeDetector=f(nt),this.environmentInjector=f(Re),this.inputBinder=f(Et,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){let{firstChange:r,previousValue:s}=t.name;if(r)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=t;let s=this.location,a=t.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,c=new Tn(t,u,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:c,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=et({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[tt]});let n=e;return n})(),Tn=class{constructor(e,i,t){this.route=e,this.childContexts=i,this.parent=t}get(e,i){return e===G?this.route:e===We?this.childContexts:this.parent.get(e,i)}},Et=new M(""),Yr=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:r}=t,s=Ye([r.queryParams,r.params,r.data]).pipe(x(([o,a,u],c)=>(u=h(h(h({},o),a),u),c===0?d(u):Promise.resolve(u)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(t);return}let a=Dr(r.component);if(!a){this.unsubscribeFromRouteData(t);return}for(let{templateName:u}of a.inputs)t.activatedComponentRef.setInput(u,o[u])});this.outletDataSubscriptions.set(t,s)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac});let n=e;return n})();function $s(n,e,i){let t=ze(n,e._root,i?i._root:void 0);return new St(t,e)}function ze(n,e,i){if(i&&n.shouldReuseRoute(e.value,i.value.snapshot)){let t=i.value;t._futureSnapshot=e.value;let r=_s(n,e,i);return new D(t,r)}else{if(n.shouldAttach(e.value)){let s=n.retrieve(e.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=e.value,o.children=e.children.map(a=>ze(n,a)),o}}let t=Fs(e.value),r=e.children.map(s=>ze(n,s));return new D(t,r)}}function _s(n,e,i){return e.children.map(t=>{for(let r of i.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return ze(n,t,r);return ze(n,t)})}function Fs(n){return new G(new O(n.url),new O(n.params),new O(n.queryParams),new O(n.fragment),new O(n.data),n.outlet,n.component,n)}var Si="ngNavigationCancelingError";function Ci(n,e){let{redirectTo:i,navigationBehaviorOptions:t}=de(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=wi(!1,P.Redirect);return r.url=i,r.navigationBehaviorOptions=t,r}function wi(n,e){let i=new Error(`NavigationCancelingError: ${n||""}`);return i[Si]=!0,i.cancellationCode=e,i}function zs(n){return Ri(n)&&de(n.url)}function Ri(n){return!!n&&n[Si]}var Hs=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Xn({type:e,selectors:[["ng-component"]],standalone:!0,features:[Mr],decls:1,vars:0,template:function(r,s){r&1&&wr(0,"router-outlet")},dependencies:[ks],encapsulation:2});let n=e;return n})();function Vs(n,e){return n.providers&&!n._injector&&(n._injector=Bt(n.providers,e,`Route: ${n.path}`)),n._injector??e}function jn(n){let e=n.children&&n.children.map(jn),i=e?I(h({},n),{children:e}):h({},n);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==g&&(i.component=Hs),i}function _(n){return n.outlet||g}function Bs(n,e){let i=n.filter(t=>_(t)===e);return i.push(...n.filter(t=>_(t)!==e)),i}function Ge(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let e=n.parent;e;e=e.parent){let i=e.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}var qs=(n,e,i,t)=>C(r=>(new An(e,r.targetRouterState,r.currentRouterState,i,t).activate(n),r)),An=class{constructor(e,i,t,r,s){this.routeReuseStrategy=e,this.futureState=i,this.currState=t,this.forwardEvent=r,this.inputBindingEnabled=s}activate(e){let i=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,t,e),on(this.futureState.root),this.activateChildRoutes(i,t,e)}deactivateChildRoutes(e,i,t){let r=ce(i);e.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,r[o],t),delete r[o]}),Object.values(r).forEach(s=>{this.deactivateRouteAndItsChildren(s,t)})}deactivateRoutes(e,i,t){let r=e.value,s=i?i.value:null;if(r===s)if(r.component){let o=t.getContext(r.outlet);o&&this.deactivateChildRoutes(e,i,o.children)}else this.deactivateChildRoutes(e,i,t);else s&&this.deactivateRouteAndItsChildren(i,t)}deactivateRouteAndItsChildren(e,i){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,i):this.deactivateRouteAndOutlet(e,i)}detachAndStoreRouteSubtree(e,i){let t=i.getContext(e.value.outlet),r=t&&e.value.component?t.children:i,s=ce(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,r);if(t&&t.outlet){let o=t.outlet.detach(),a=t.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:o,route:e,contexts:a})}}deactivateRouteAndOutlet(e,i){let t=i.getContext(e.value.outlet),r=t&&e.value.component?t.children:i,s=ce(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,r);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(e,i,t){let r=ce(i);e.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],t),this.forwardEvent(new Rn(s.value.snapshot))}),e.children.length&&this.forwardEvent(new Cn(e.value.snapshot))}activateRoutes(e,i,t){let r=e.value,s=i?i.value:null;if(on(r),r===s)if(r.component){let o=t.getOrCreateContext(r.outlet);this.activateChildRoutes(e,i,o.children)}else this.activateChildRoutes(e,i,t);else if(r.component){let o=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),on(a.route.value),this.activateChildRoutes(e,null,o.children)}else{let a=Ge(r.snapshot);o.attachRef=null,o.route=r,o.injector=a,o.outlet&&o.outlet.activateWith(r,o.injector),this.activateChildRoutes(e,null,o.children)}}else this.activateChildRoutes(e,null,t)}},wt=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},le=class{constructor(e,i){this.component=e,this.route=i}};function Ws(n,e,i){let t=n._root,r=e?e._root:null;return Oe(t,r,i,[t.value])}function Gs(n){let e=n.routeConfig?n.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:n,guards:e}}function ge(n,e){let i=Symbol(),t=e.get(n,i);return t===i?typeof n=="function"&&!er(n)?n:e.get(n):t}function Oe(n,e,i,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=ce(e);return n.children.forEach(o=>{Zs(o,s[o.value.outlet],i,t.concat([o.value]),r),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>xe(a,i.getContext(o),r)),r}function Zs(n,e,i,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=n.value,o=e?e.value:null,a=i?i.getContext(n.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let u=Ks(o,s,s.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new wt(t)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?Oe(n,e,a?a.children:null,t,r):Oe(n,e,i,t,r),u&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new le(a.outlet.component,o))}else o&&xe(e,a,r),r.canActivateChecks.push(new wt(t)),s.component?Oe(n,null,a?a.children:null,t,r):Oe(n,null,i,t,r);return r}function Ks(n,e,i){if(typeof i=="function")return i(n,e);switch(i){case"pathParamsChange":return!te(n.url,e.url);case"pathParamsOrQueryParamsChange":return!te(n.url,e.url)||!$(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Mn(n,e)||!$(n.queryParams,e.queryParams);case"paramsChange":default:return!Mn(n,e)}}function xe(n,e,i){let t=ce(n),r=n.value;Object.entries(t).forEach(([s,o])=>{r.component?e?xe(o,e.children.getContext(s),i):xe(o,null,i):xe(o,e,i)}),r.component?e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new le(e.outlet.component,r)):i.canDeactivateChecks.push(new le(null,r)):i.canDeactivateChecks.push(new le(null,r))}function Ze(n){return typeof n=="function"}function Qs(n){return typeof n=="boolean"}function Ys(n){return n&&Ze(n.canLoad)}function Xs(n){return n&&Ze(n.canActivate)}function Js(n){return n&&Ze(n.canActivateChild)}function eo(n){return n&&Ze(n.canDeactivate)}function to(n){return n&&Ze(n.canMatch)}function bi(n){return n instanceof qn||n?.name==="EmptyError"}var ut=Symbol("INITIAL_VALUE");function pe(){return x(n=>Ye(n.map(e=>e.pipe(re(1),Qn(ut)))).pipe(C(e=>{for(let i of e)if(i!==!0){if(i===ut)return ut;if(i===!1||i instanceof B)return i}return!0}),Y(e=>e!==ut),re(1)))}function no(n,e){return A(i=>{let{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=i;return o.length===0&&s.length===0?d(I(h({},i),{guardsResult:!0})):ro(o,t,r,n).pipe(A(a=>a&&Qs(a)?io(t,s,n,e):d(a)),C(a=>I(h({},i),{guardsResult:a})))})}function ro(n,e,i,t){return T(n).pipe(A(r=>uo(r.component,r.route,i,e,t)),H(r=>r!==!0,!0))}function io(n,e,i,t){return T(e).pipe(ne(r=>Wn(oo(r.route.parent,t),so(r.route,t),co(n,r.path,i),ao(n,r.route,i))),H(r=>r!==!0,!0))}function so(n,e){return n!==null&&e&&e(new wn(n)),d(!0)}function oo(n,e){return n!==null&&e&&e(new Sn(n)),d(!0)}function ao(n,e,i){let t=e.routeConfig?e.routeConfig.canActivate:null;if(!t||t.length===0)return d(!0);let r=t.map(s=>Dt(()=>{let o=Ge(e)??i,a=ge(s,o),u=Xs(a)?a.canActivate(e,n):V(o,()=>a(e,n));return Z(u).pipe(H())}));return d(r).pipe(pe())}function co(n,e,i){let t=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(o=>Gs(o)).filter(o=>o!==null).map(o=>Dt(()=>{let a=o.guards.map(u=>{let c=Ge(o.node)??i,l=ge(u,c),p=Js(l)?l.canActivateChild(t,n):V(c,()=>l(t,n));return Z(p).pipe(H())});return d(a).pipe(pe())}));return d(s).pipe(pe())}function uo(n,e,i,t,r){let s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||s.length===0)return d(!0);let o=s.map(a=>{let u=Ge(e)??r,c=ge(a,u),l=eo(c)?c.canDeactivate(n,e,i,t):V(u,()=>c(n,e,i,t));return Z(l).pipe(H())});return d(o).pipe(pe())}function lo(n,e,i,t){let r=e.canLoad;if(r===void 0||r.length===0)return d(!0);let s=r.map(o=>{let a=ge(o,n),u=Ys(a)?a.canLoad(e,i):V(n,()=>a(e,i));return Z(u)});return d(s).pipe(pe(),Ei(t))}function Ei(n){return Vn(E(e=>{if(de(e))throw Ci(n,e)}),C(e=>e===!0))}function ho(n,e,i,t){let r=e.canMatch;if(!r||r.length===0)return d(!0);let s=r.map(o=>{let a=ge(o,n),u=to(a)?a.canMatch(e,i):V(n,()=>a(e,i));return Z(u)});return d(s).pipe(pe(),Ei(t))}var He=class{constructor(e){this.segmentGroup=e||null}},Rt=class extends Error{constructor(e){super(),this.urlTree=e}};function ae(n){return ye(new He(n))}function fo(n){return ye(new w(4e3,!1))}function po(n){return ye(wi(!1,P.GuardRejected))}var Dn=class{constructor(e,i){this.urlSerializer=e,this.urlTree=i}lineralizeSegments(e,i){let t=[],r=i.root;for(;;){if(t=t.concat(r.segments),r.numberOfChildren===0)return d(t);if(r.numberOfChildren>1||!r.children[g])return fo(e.redirectTo);r=r.children[g]}}applyRedirectCommands(e,i,t){let r=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,t);if(i.startsWith("/"))throw new Rt(r);return r}applyRedirectCreateUrlTree(e,i,t,r){let s=this.createSegmentGroup(e,i.root,t,r);return new B(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(e,i){let t={};return Object.entries(e).forEach(([r,s])=>{if(typeof s=="string"&&s.startsWith(":")){let a=s.substring(1);t[r]=i[a]}else t[r]=s}),t}createSegmentGroup(e,i,t,r){let s=this.createSegments(e,i.segments,t,r),o={};return Object.entries(i.children).forEach(([a,u])=>{o[a]=this.createSegmentGroup(e,u,t,r)}),new m(s,o)}createSegments(e,i,t,r){return i.map(s=>s.path.startsWith(":")?this.findPosParam(e,s,r):this.findOrReturn(s,t))}findPosParam(e,i,t){let r=t[i.path.substring(1)];if(!r)throw new w(4001,!1);return r}findOrReturn(e,i){let t=0;for(let r of i){if(r.path===e.path)return i.splice(t),r;t++}return e}},On={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function go(n,e,i,t,r){let s=kn(n,e,i);return s.matched?(t=Vs(e,t),ho(t,e,i,r).pipe(C(o=>o===!0?s:h({},On)))):d(s)}function kn(n,e,i){if(e.path==="**")return vo(i);if(e.path==="")return e.pathMatch==="full"&&(n.hasChildren()||i.length>0)?h({},On):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||ls)(i,n,e);if(!r)return h({},On);let s={};Object.entries(r.posParams??{}).forEach(([a,u])=>{s[a]=u.path});let o=r.consumed.length>0?h(h({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:o,positionalParamSegments:r.posParams??{}}}function vo(n){return{matched:!0,parameters:n.length>0?ri(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function Xr(n,e,i,t){return i.length>0&&So(n,i,t)?{segmentGroup:new m(e,yo(t,new m(i,n.children))),slicedSegments:[]}:i.length===0&&Co(n,i,t)?{segmentGroup:new m(n.segments,mo(n,i,t,n.children)),slicedSegments:i}:{segmentGroup:new m(n.segments,n.children),slicedSegments:i}}function mo(n,e,i,t){let r={};for(let s of i)if(It(n,e,s)&&!t[_(s)]){let o=new m([],{});r[_(s)]=o}return h(h({},t),r)}function yo(n,e){let i={};i[g]=e;for(let t of n)if(t.path===""&&_(t)!==g){let r=new m([],{});i[_(t)]=r}return i}function So(n,e,i){return i.some(t=>It(n,e,t)&&_(t)!==g)}function Co(n,e,i){return i.some(t=>It(n,e,t))}function It(n,e,i){return(n.hasChildren()||e.length>0)&&i.pathMatch==="full"?!1:i.path===""}function wo(n,e,i,t){return _(n)!==t&&(t===g||!It(e,i,n))?!1:kn(e,n,i).matched}function Ro(n,e,i){return e.length===0&&!n.children[i]}var Nn=class{};function bo(n,e,i,t,r,s,o="emptyOnly"){return new Pn(n,e,i,t,r,o,s).recognize()}var Eo=31,Pn=class{constructor(e,i,t,r,s,o,a){this.injector=e,this.configLoader=i,this.rootComponentType=t,this.config=r,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new Dn(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new w(4002,`'${e.segmentGroup}'`)}recognize(){let e=Xr(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(C(i=>{let t=new Fe([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,{},g,this.rootComponentType,null,{}),r=new D(t,i),s=new Ct("",r),o=Ds(t,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),this.inheritParamsAndData(s._root,null),{state:s,tree:o}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,g).pipe(X(t=>{if(t instanceof Rt)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof He?this.noMatchError(t):t}))}inheritParamsAndData(e,i){let t=e.value,r=xn(t,i,this.paramsInheritanceStrategy);t.params=Object.freeze(r.params),t.data=Object.freeze(r.data),e.children.forEach(s=>this.inheritParamsAndData(s,t))}processSegmentGroup(e,i,t,r){return t.segments.length===0&&t.hasChildren()?this.processChildren(e,i,t):this.processSegment(e,i,t,t.segments,r,!0).pipe(C(s=>s instanceof D?[s]:[]))}processChildren(e,i,t){let r=[];for(let s of Object.keys(t.children))s==="primary"?r.unshift(s):r.push(s);return T(r).pipe(ne(s=>{let o=t.children[s],a=Bs(i,s);return this.processSegmentGroup(e,a,o,s)}),Kn((s,o)=>(s.push(...o),s)),Ot(null),Zn(),A(s=>{if(s===null)return ae(t);let o=Ii(s);return Io(o),d(o)}))}processSegment(e,i,t,r,s,o){return T(i).pipe(ne(a=>this.processSegmentAgainstRoute(a._injector??e,i,a,t,r,s,o).pipe(X(u=>{if(u instanceof He)return d(null);throw u}))),H(a=>!!a),X(a=>{if(bi(a))return Ro(t,r,s)?d(new Nn):ae(t);throw a}))}processSegmentAgainstRoute(e,i,t,r,s,o,a){return wo(t,r,s,o)?t.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,t,s,o):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,t,s,o):ae(r):ae(r)}expandSegmentAgainstRouteUsingRedirect(e,i,t,r,s,o){let{matched:a,consumedSegments:u,positionalParamSegments:c,remainingSegments:l}=kn(i,r,s);if(!a)return ae(i);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Eo&&(this.allowRedirects=!1));let p=this.applyRedirects.applyRedirectCommands(u,r.redirectTo,c);return this.applyRedirects.lineralizeSegments(r,p).pipe(A(v=>this.processSegment(e,t,i,v.concat(l),o,!1)))}matchSegmentAgainstRoute(e,i,t,r,s){let o=go(i,t,r,e,this.urlSerializer);return t.path==="**"&&(i.children={}),o.pipe(x(a=>a.matched?(e=t._injector??e,this.getChildConfig(e,t,r).pipe(x(({routes:u})=>{let c=t._loadedInjector??e,{consumedSegments:l,remainingSegments:p,parameters:v}=a,R=new Fe(l,v,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,To(t),_(t),t.component??t._loadedComponent??null,t,Ao(t)),{segmentGroup:ve,slicedSegments:me}=Xr(i,l,p,u);if(me.length===0&&ve.hasChildren())return this.processChildren(c,u,ve).pipe(C(K=>K===null?null:new D(R,K)));if(u.length===0&&me.length===0)return d(new D(R,[]));let Mt=_(t)===s;return this.processSegment(c,u,ve,me,Mt?g:s,!0).pipe(C(K=>new D(R,K instanceof D?[K]:[])))}))):ae(i)))}getChildConfig(e,i,t){return i.children?d({routes:i.children,injector:e}):i.loadChildren?i._loadedRoutes!==void 0?d({routes:i._loadedRoutes,injector:i._loadedInjector}):lo(e,i,t,this.urlSerializer).pipe(A(r=>r?this.configLoader.loadChildren(e,i).pipe(E(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):po(i))):d({routes:[],injector:e})}};function Io(n){n.sort((e,i)=>e.value.outlet===g?-1:i.value.outlet===g?1:e.value.outlet.localeCompare(i.value.outlet))}function Mo(n){let e=n.value.routeConfig;return e&&e.path===""}function Ii(n){let e=[],i=new Set;for(let t of n){if(!Mo(t)){e.push(t);continue}let r=e.find(s=>t.value.routeConfig===s.value.routeConfig);r!==void 0?(r.children.push(...t.children),i.add(r)):e.push(t)}for(let t of i){let r=Ii(t.children);e.push(new D(t.value,r))}return e.filter(t=>!i.has(t))}function To(n){return n.data||{}}function Ao(n){return n.resolve||{}}function Do(n,e,i,t,r,s){return A(o=>bo(n,e,i,t,o.extractedUrl,r,s).pipe(C(({state:a,tree:u})=>I(h({},o),{targetSnapshot:a,urlAfterRedirects:u}))))}function Oo(n,e){return A(i=>{let{targetSnapshot:t,guards:{canActivateChecks:r}}=i;if(!r.length)return d(i);let s=new Set(r.map(u=>u.route)),o=new Set;for(let u of s)if(!o.has(u))for(let c of Mi(u))o.add(c);let a=0;return T(o).pipe(ne(u=>s.has(u)?No(u,t,n,e):(u.data=xn(u,u.parent,n).resolve,d(void 0))),E(()=>a++),Nt(1),A(u=>a===o.size?d(i):Q))})}function Mi(n){let e=n.children.map(i=>Mi(i)).flat();return[n,...e]}function No(n,e,i,t){let r=n.routeConfig,s=n._resolve;return r?.title!==void 0&&!yi(r)&&(s[Be]=r.title),Po(s,n,e,t).pipe(C(o=>(n._resolvedData=o,n.data=xn(n,n.parent,i).resolve,null)))}function Po(n,e,i,t){let r=un(n);if(r.length===0)return d({});let s={};return T(r).pipe(A(o=>Uo(n[o],e,i,t).pipe(H(),E(a=>{s[o]=a}))),Nt(1),Gn(s),X(o=>bi(o)?Q:ye(o)))}function Uo(n,e,i,t){let r=Ge(e)??t,s=ge(n,r),o=s.resolve?s.resolve(e,i):V(r,()=>s(e,i));return Z(o)}function an(n){return x(e=>{let i=n(e);return i?T(i).pipe(C(()=>e)):d(e)})}var Ti=(()=>{let e=class e{buildTitle(t){let r,s=t.root;for(;s!==void 0;)r=this.getResolvedTitleForRoute(s)??r,s=s.children.find(o=>o.outlet===g);return r}getResolvedTitleForRoute(t){return t.data[Be]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:()=>f(xo),providedIn:"root"});let n=e;return n})(),xo=(()=>{let e=class e extends Ti{constructor(t){super(),this.title=t}updateTitle(t){let r=this.buildTitle(t);r!==void 0&&this.title.setTitle(r)}};e.\u0275fac=function(r){return new(r||e)(S(Wr))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Ke=new M("",{providedIn:"root",factory:()=>({})}),Ve=new M(""),$n=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=f(it)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return d(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let r=Z(t.loadComponent()).pipe(C(Ai),E(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),Xe(()=>{this.componentLoaders.delete(t)})),s=new At(r,()=>new z).pipe(Tt());return this.componentLoaders.set(t,s),s}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return d({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=Lo(r,this.compiler,t,this.onLoadEndListener).pipe(Xe(()=>{this.childrenLoaders.delete(r)})),a=new At(o,()=>new z).pipe(Tt());return this.childrenLoaders.set(r,a),a}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Lo(n,e,i,t){return Z(n.loadChildren()).pipe(C(Ai),A(r=>r instanceof yr||Array.isArray(r)?d(r):T(e.compileModuleAsync(r))),C(r=>{t&&t(n);let s,o,a=!1;return Array.isArray(r)?(o=r,a=!0):(s=r.create(i).injector,o=s.get(Ve,[],{optional:!0,self:!0}).flat()),{routes:o.map(jn),injector:s}}))}function jo(n){return n&&typeof n=="object"&&"default"in n}function Ai(n){return jo(n)?n.default:n}var _n=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:()=>f(ko),providedIn:"root"});let n=e;return n})(),ko=(()=>{let e=class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Di=new M(""),Oi=new M("");function $o(n,e,i){let t=n.get(Oi),r=n.get(N);return n.get(j).runOutsideAngular(()=>{if(!r.startViewTransition||t.skipNextTransition)return t.skipNextTransition=!1,Promise.resolve();let s,o=new Promise(c=>{s=c}),a=r.startViewTransition(()=>(s(),_o(n))),{onViewTransitionCreated:u}=t;return u&&V(n,()=>u({transition:a,from:e,to:i})),o})}function _o(n){return new Promise(e=>{gr(e,{injector:n})})}var Fn=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new z,this.transitionAbortSubject=new z,this.configLoader=f($n),this.environmentInjector=f(Re),this.urlSerializer=f(qe),this.rootContexts=f(We),this.location=f(Ie),this.inputBindingEnabled=f(Et,{optional:!0})!==null,this.titleStrategy=f(Ti),this.options=f(Ke,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=f(_n),this.createViewTransition=f(Di,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>d(void 0),this.rootComponentType=null;let t=s=>this.events.next(new mn(s)),r=s=>this.events.next(new yn(s));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=t}complete(){this.transitions?.complete()}handleNavigationRequest(t){let r=++this.navigationId;this.transitions?.next(I(h(h({},this.transitions.value),t),{id:r}))}setupNavigations(t,r,s){return this.transitions=new O({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ue,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Y(o=>o.id!==0),C(o=>I(h({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),x(o=>{this.currentTransition=o;let a=!1,u=!1;return d(o).pipe(E(c=>{this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?I(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),x(c=>{let l=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),p=c.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!l&&p!=="reload"){let v="";return this.events.next(new W(c.id,this.urlSerializer.serialize(c.rawUrl),v,gt.IgnoredSameUrlNavigation)),c.resolve(null),Q}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return d(c).pipe(x(v=>{let R=this.transitions?.getValue();return this.events.next(new fe(v.id,this.urlSerializer.serialize(v.extractedUrl),v.source,v.restoredState)),R!==this.transitions?.getValue()?Q:Promise.resolve(v)}),Do(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),E(v=>{o.targetSnapshot=v.targetSnapshot,o.urlAfterRedirects=v.urlAfterRedirects,this.currentNavigation=I(h({},this.currentNavigation),{finalUrl:v.urlAfterRedirects});let R=new vt(v.id,this.urlSerializer.serialize(v.extractedUrl),this.urlSerializer.serialize(v.urlAfterRedirects),v.targetSnapshot);this.events.next(R)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:v,extractedUrl:R,source:ve,restoredState:me,extras:Mt}=c,K=new fe(v,this.urlSerializer.serialize(R),ve,me);this.events.next(K);let $i=vi(this.rootComponentType).snapshot;return this.currentTransition=o=I(h({},c),{targetSnapshot:$i,urlAfterRedirects:R,extras:I(h({},Mt),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=R,d(o)}else{let v="";return this.events.next(new W(c.id,this.urlSerializer.serialize(c.extractedUrl),v,gt.IgnoredByUrlHandlingStrategy)),c.resolve(null),Q}}),E(c=>{let l=new fn(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),C(c=>(this.currentTransition=o=I(h({},c),{guards:Ws(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),o)),no(this.environmentInjector,c=>this.events.next(c)),E(c=>{if(o.guardsResult=c.guardsResult,de(c.guardsResult))throw Ci(this.urlSerializer,c.guardsResult);let l=new pn(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),Y(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",P.GuardRejected),!1)),an(c=>{if(c.guards.canActivateChecks.length)return d(c).pipe(E(l=>{let p=new gn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(p)}),x(l=>{let p=!1;return d(l).pipe(Oo(this.paramsInheritanceStrategy,this.environmentInjector),E({next:()=>p=!0,complete:()=>{p||this.cancelNavigationTransition(l,"",P.NoDataFromResolver)}}))}),E(l=>{let p=new vn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(p)}))}),an(c=>{let l=p=>{let v=[];p.routeConfig?.loadComponent&&!p.routeConfig._loadedComponent&&v.push(this.configLoader.loadComponent(p.routeConfig).pipe(E(R=>{p.component=R}),C(()=>{})));for(let R of p.children)v.push(...l(R));return v};return Ye(l(c.targetSnapshot.root)).pipe(Ot(null),re(1))}),an(()=>this.afterPreactivation()),x(()=>{let{currentSnapshot:c,targetSnapshot:l}=o,p=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return p?T(p).pipe(C(()=>o)):d(o)}),C(c=>{let l=$s(t.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=o=I(h({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,o}),E(()=>{this.events.next(new $e)}),qs(this.rootContexts,t.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),re(1),E({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new k(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),Yn(this.transitionAbortSubject.pipe(E(c=>{throw c}))),Xe(()=>{!a&&!u&&this.cancelNavigationTransition(o,"",P.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),X(c=>{if(u=!0,Ri(c))this.events.next(new q(o.id,this.urlSerializer.serialize(o.extractedUrl),c.message,c.cancellationCode)),zs(c)?this.events.next(new _e(c.url)):o.resolve(!1);else{this.events.next(new ke(o.id,this.urlSerializer.serialize(o.extractedUrl),c,o.targetSnapshot??void 0));try{o.resolve(t.errorHandler(c))}catch(l){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(l)}}return Q}))}))}cancelNavigationTransition(t,r,s){let o=new q(t.id,this.urlSerializer.serialize(t.extractedUrl),r,s);this.events.next(o),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Fo(n){return n!==Ue}var zo=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:()=>f(Ho),providedIn:"root"});let n=e;return n})(),Un=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},Ho=(()=>{let e=class e extends Un{};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=Ft(e)))(s||e)}})(),e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Ni=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:()=>f(Vo),providedIn:"root"});let n=e;return n})(),Vo=(()=>{let e=class e extends Ni{constructor(){super(...arguments),this.location=f(Ie),this.urlSerializer=f(qe),this.options=f(Ke,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=f(_n),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new B,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=vi(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(r=>{r.type==="popstate"&&t(r.url,r.state)})}handleRouterEvent(t,r){if(t instanceof fe)this.stateMemento=this.createStateMemento();else if(t instanceof W)this.rawUrlTree=r.initialUrl;else if(t instanceof vt){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(s,r)}}else t instanceof $e?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):t instanceof q&&(t.code===P.GuardRejected||t.code===P.NoDataFromResolver)?this.restoreHistory(r):t instanceof ke?this.restoreHistory(r,!0):t instanceof k&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,r){let s=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(s)||r.extras.replaceUrl){let o=this.browserPageId,a=h(h({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(s,"",a)}else{let o=h(h({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(s,"",o)}}restoreHistory(t,r=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,o=this.currentPageId-s;o!==0?this.location.historyGo(o):this.currentUrlTree===t.finalUrl&&o===0&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=Ft(e)))(s||e)}})(),e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Ne=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(Ne||{});function Pi(n,e){n.events.pipe(Y(i=>i instanceof k||i instanceof q||i instanceof ke||i instanceof W),C(i=>i instanceof k||i instanceof W?Ne.COMPLETE:(i instanceof q?i.code===P.Redirect||i.code===P.SupersededByNewNavigation:!1)?Ne.REDIRECTING:Ne.FAILED),Y(i=>i!==Ne.REDIRECTING),re(1)).subscribe(()=>{e()})}function Bo(n){throw n}var qo={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Wo={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},F=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=f(rt),this.stateManager=f(Ni),this.options=f(Ke,{optional:!0})||{},this.pendingTasks=f(Sr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=f(Fn),this.urlSerializer=f(qe),this.location=f(Ie),this.urlHandlingStrategy=f(_n),this._events=new z,this.errorHandler=this.options.errorHandler||Bo,this.navigated=!1,this.routeReuseStrategy=f(zo),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=f(Ve,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!f(Et,{optional:!0}),this.eventsSubscription=new Hn,this.isNgZoneEnabled=f(j)instanceof j&&j.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(r=>{try{let s=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(s!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof q&&r.code!==P.Redirect&&r.code!==P.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof k)this.navigated=!0;else if(r instanceof _e){let a=this.urlHandlingStrategy.merge(r.url,s.currentRawUrl),u={info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||Fo(s.source)};this.scheduleNavigation(a,Ue,null,u,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}Zo(r)&&this._events.next(r)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ue,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",r)},0)})}navigateToSyncWithBrowser(t,r,s){let o={replaceUrl:!0},a=s?.navigationId?s:null;if(s){let c=h({},s);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let u=this.parseUrl(t);this.scheduleNavigation(u,r,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(jn),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,r={}){let{relativeTo:s,queryParams:o,fragment:a,queryParamsHandling:u,preserveFragment:c}=r,l=c?this.currentUrlTree.fragment:a,p=null;switch(u){case"merge":p=h(h({},this.currentUrlTree.queryParams),o);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=o||null}p!==null&&(p=this.removeEmptyProps(p));let v;try{let R=s?s.snapshot:this.routerState.snapshot.root;v=di(R)}catch{(typeof t[0]!="string"||!t[0].startsWith("/"))&&(t=[]),v=this.currentUrlTree.root}return fi(v,t,p,l??null)}navigateByUrl(t,r={skipLocationChange:!1}){let s=de(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,Ue,null,r)}navigate(t,r={skipLocationChange:!1}){return Go(t),this.navigateByUrl(this.createUrlTree(t,r),r)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,r){let s;if(r===!0?s=h({},qo):r===!1?s=h({},Wo):s=r,de(t))return Gr(this.currentUrlTree,t,s);let o=this.parseUrl(t);return Gr(this.currentUrlTree,o,s)}removeEmptyProps(t){return Object.entries(t).reduce((r,[s,o])=>(o!=null&&(r[s]=o),r),{})}scheduleNavigation(t,r,s,o,a){if(this.disposed)return Promise.resolve(!1);let u,c,l;a?(u=a.resolve,c=a.reject,l=a.promise):l=new Promise((v,R)=>{u=v,c=R});let p=this.pendingTasks.add();return Pi(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:o,resolve:u,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(v=>Promise.reject(v))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Go(n){for(let e=0;e<n.length;e++)if(n[e]==null)throw new w(4008,!1)}function Zo(n){return!(n instanceof $e)&&!(n instanceof _e)}var Jr=(()=>{let e=class e{constructor(t,r,s,o,a,u){this.router=t,this.route=r,this.tabIndexAttribute=s,this.renderer=o,this.el=a,this.locationStrategy=u,this.href=null,this.commands=null,this.onChanges=new z,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=t.events.subscribe(l=>{l instanceof k&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){t!=null?(this.commands=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(t,r,s,o,a){let u=this.urlTree;if(u===null||this.isAnchorElement&&(t!==0||r||s||o||a||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(u,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let t=this.urlTree;this.href=t!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t)):null;let r=this.href===null?null:dr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(t,r){let s=this.renderer,o=this.el.nativeElement;r!==null?s.setAttribute(o,t,r):s.removeAttribute(o,t)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(r){return new(r||e)(L(F),L(G),ir("tabindex"),L(Vt),L(xt),L(Ee))},e.\u0275dir=et({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,s){r&1&&Rr("click",function(a){return s.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&Cr("target",s.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[Je.HasDecoratorInputTransform,"preserveFragment","preserveFragment",st],skipLocationChange:[Je.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",st],replaceUrl:[Je.HasDecoratorInputTransform,"replaceUrl","replaceUrl",st],routerLink:"routerLink"},standalone:!0,features:[mr,tt]});let n=e;return n})(),Ya=(()=>{let e=class e{get isActive(){return this._isActive}constructor(t,r,s,o,a){this.router=t,this.element=r,this.renderer=s,this.cdr=o,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new ie,this.routerEventsSubscription=t.events.subscribe(u=>{u instanceof k&&this.update()})}ngAfterContentInit(){d(this.links.changes,d(null)).pipe(Se()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let t=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=T(t).pipe(Se()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(t){let r=Array.isArray(t)?t:t.split(" ");this.classes=r.filter(s=>!!s)}ngOnChanges(t){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let t=this.hasActiveLinks();this._isActive!==t&&(this._isActive=t,this.cdr.markForCheck(),this.classes.forEach(r=>{t?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),t&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(t))})}isLinkActive(t){let r=Ko(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return s=>{let o=s.urlTree;return o?t.isActive(o,r):!1}}hasActiveLinks(){let t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}};e.\u0275fac=function(r){return new(r||e)(L(F),L(xt),L(Vt),L(nt),L(Jr,8))},e.\u0275dir=et({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,s,o){if(r&1&&br(o,Jr,5),r&2){let a;Er(a=Ir())&&(s.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[tt]});let n=e;return n})();function Ko(n){return!!n.paths}var bt=class{},Xa=(()=>{let e=class e{preload(t,r){return r().pipe(X(()=>d(null)))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Qo=(()=>{let e=class e{constructor(t,r,s,o,a){this.router=t,this.injector=s,this.preloadingStrategy=o,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(Y(t=>t instanceof k),ne(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){let s=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Bt(o.providers,t,`Route: ${o.path}`));let a=o._injector??t,u=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&s.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&s.push(this.processRoutes(u,o.children??o._loadedRoutes))}return T(s).pipe(Se())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{let s;r.loadChildren&&r.canLoad===void 0?s=this.loader.loadChildren(t,r):s=d(null);let o=s.pipe(A(a=>a===null?d(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,this.processRoutes(a.injector??t,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(r);return T([o,a]).pipe(Se())}else return o})}};e.\u0275fac=function(r){return new(r||e)(S(F),S(it),S(Re),S(bt),S($n))},e.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Ui=new M(""),Yo=(()=>{let e=class e{constructor(t,r,s,o,a={}){this.urlSerializer=t,this.transitions=r,this.viewportScroller=s,this.zone=o,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof fe?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof k?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof W&&t.code===gt.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof mt&&(t.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(t.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new mt(t,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(r){fr()},e.\u0275prov=y({token:e,factory:e.\u0275fac});let n=e;return n})();function Ja(n,...e){return _t([{provide:Ve,multi:!0,useValue:n},[],{provide:G,useFactory:xi,deps:[F]},{provide:Wt,multi:!0,useFactory:Li},e.map(i=>i.\u0275providers)])}function xi(n){return n.routerState.root}function Qe(n,e){return{\u0275kind:n,\u0275providers:e}}function Li(){let n=f(zt);return e=>{let i=n.get(Gt);if(e!==i.components[0])return;let t=n.get(F),r=n.get(ji);n.get(zn)===1&&t.initialNavigation(),n.get(ki,null,Pt.Optional)?.setUpPreloading(),n.get(Ui,null,Pt.Optional)?.init(),t.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var ji=new M("",{factory:()=>new z}),zn=new M("",{providedIn:"root",factory:()=>1});function Xo(){return Qe(2,[{provide:zn,useValue:0},{provide:qt,multi:!0,deps:[zt],useFactory:e=>{let i=e.get(Pr,Promise.resolve());return()=>i.then(()=>new Promise(t=>{let r=e.get(F),s=e.get(ji);Pi(r,()=>{t(!0)}),e.get(Fn).afterPreactivation=()=>(t(!0),s.closed?d(void 0):s),r.initialNavigation()}))}}])}function Jo(){return Qe(3,[{provide:qt,multi:!0,useFactory:()=>{let e=f(F);return()=>{e.setUpLocationChangeListener()}}},{provide:zn,useValue:2}])}var ki=new M("");function ea(n){return Qe(0,[{provide:ki,useExisting:Qo},{provide:bt,useExisting:n}])}function ta(){return Qe(8,[Yr,{provide:Et,useExisting:Yr}])}function na(n){let e=[{provide:Di,useValue:$o},{provide:Oi,useValue:h({skipNextTransition:!!n?.skipInitialTransition},n)}];return Qe(9,e)}var ei=new M("ROUTER_FORROOT_GUARD"),ra=[Ie,{provide:qe,useClass:Le},F,We,{provide:G,useFactory:xi,deps:[F]},$n,[]],ec=(()=>{let e=class e{constructor(t){}static forRoot(t,r){return{ngModule:e,providers:[ra,[],{provide:Ve,multi:!0,useValue:t},{provide:ei,useFactory:aa,deps:[[F,new $t,new nr]]},{provide:Ke,useValue:r||{}},r?.useHash?sa():oa(),ia(),r?.preloadingStrategy?ea(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?ca(r):[],r?.bindToComponentInputs?ta().\u0275providers:[],r?.enableViewTransitions?na().\u0275providers:[],ua()]}}static forChild(t){return{ngModule:e,providers:[{provide:Ve,multi:!0,useValue:t}]}}};e.\u0275fac=function(r){return new(r||e)(S(ei,8))},e.\u0275mod=Ut({type:e}),e.\u0275inj=Lt({});let n=e;return n})();function ia(){return{provide:Ui,useFactory:()=>{let n=f(kr),e=f(j),i=f(Ke),t=f(Fn),r=f(qe);return i.scrollOffset&&n.setOffset(i.scrollOffset),new Yo(r,t,n,e,i)}}}function sa(){return{provide:Ee,useClass:xr}}function oa(){return{provide:Ee,useClass:Ur}}function aa(n){return"guarded"}function ca(n){return[n.initialNavigation==="disabled"?Jo().\u0275providers:[],n.initialNavigation==="enabledBlocking"?Xo().\u0275providers:[]]}var ti=new M("");function ua(){return[{provide:ti,useFactory:Li},{provide:Wt,multi:!0,useExisting:ti}]}export{Na as a,Wr as b,as as c,G as d,ks as e,F as f,Jr as g,Ya as h,Xa as i,Ja as j,ea as k,ec as l};