UNPKG

angular-t9n

Version:
1 lines 86.7 kB
import{$ as h,$a as ln,A as et,Aa as Zr,Ba as at,C as le,Da as Jt,Ea as ct,Ec as Mn,Fa as he,Fc as An,G as Fr,Ga as fe,Gc as Dn,H as W,Ha as Kr,I as Qt,Ia as Xr,Ja as Jr,Jb as mn,Ka as en,La as tn,Ma as rn,Na as nn,Nb as vn,O as Br,Oa as ne,P as B,Pa as on,Pb as yn,Q as tt,Qb as Sn,Ra as Ae,S as M,Sa as sn,T as R,Ta as an,U as Yt,W as v,Wa as cn,Xa as er,Y as qr,Ya as k,Z as b,Za as un,_ as y,a as Ur,aa as rt,ab as tr,ba as Vr,bb as dn,c as xr,ca as de,d as jr,da as P,db as De,e as te,g as _,hc as Rn,i as H,ia as nt,ib as rr,j as N,ja as L,jc as wn,k as g,ka as Gr,kb as hn,kc as Cn,l as kr,la as Wr,lb as fn,m as Gt,ma as re,mb as nr,n as $r,na as it,o as I,oa as Zt,ob as pn,oc as ut,p as zr,pa as ot,q as F,qa as Te,qc as bn,r as Wt,rc as lt,s as Hr,sa as Q,t as Xe,ta as Me,ua as st,va as Qr,vc as Oe,wa as Kt,wc as En,x as G,xb as gn,xc as In,ya as Yr,yc as Tn,z as Je,za as Xt,zc as dt}from"./chunk-KWXDDR2S.js";import{a as d,b as O,d as C}from"./chunk-4CLCTAJ7.js";var _e=class{_doc;constructor(n){this._doc=n}manager},ht=(()=>{class t extends _e{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,i,o){return e.addEventListener(r,i,o),()=>this.removeEventListener(e,r,i,o)}removeEventListener(e,r,i,o){return e.removeEventListener(r,i,o)}static \u0275fac=function(r){return new(r||t)(y(L))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),mt=new b(""),ar=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,r){this._zone=r,e.forEach(s=>{s.manager=this});let i=e.filter(s=>!(s instanceof ht));this._plugins=i.slice().reverse();let o=e.find(s=>s instanceof ht);o&&this._plugins.push(o)}addEventListener(e,r,i,o){return this._findPluginFor(r).addEventListener(e,r,i,o)}getZone(){return this._zone}_findPluginFor(e){let r=this._eventNameToPlugin.get(e);if(r)return r;if(r=this._plugins.find(o=>o.supports(e)),!r)throw new R(5101,!1);return this._eventNameToPlugin.set(e,r),r}static \u0275fac=function(r){return new(r||t)(y(mt),y(it))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),ir="ng-app-id";function On(t){for(let n of t)n.remove()}function _n(t,n){let e=n.createElement("style");return e.textContent=t,e}function ki(t,n,e,r){let i=t.head?.querySelectorAll(`style[${ir}="${n}"],link[${ir}="${n}"]`);if(i)for(let o of i)o.removeAttribute(ir),o instanceof HTMLLinkElement?r.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function sr(t,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var cr=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,r,i,o={}){this.doc=e,this.appId=r,this.nonce=i,ki(e,r,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,r){for(let i of e)this.addUsage(i,this.inline,_n);r?.forEach(i=>this.addUsage(i,this.external,sr))}removeStyles(e,r){for(let i of e)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external))}addUsage(e,r,i){let o=r.get(e);o?o.usage++:r.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(e,this.doc)))})}removeUsage(e,r){let i=r.get(e);i&&(i.usage--,i.usage<=0&&(On(i.elements),r.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])On(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(e,_n(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(e,sr(r,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,r){return this.nonce&&r.setAttribute("nonce",this.nonce),e.appendChild(r)}static \u0275fac=function(r){return new(r||t)(y(L),y(Xt),y(Jt,8),y(at))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),or={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"},ur=/%COMP%/g;var Pn="%COMP%",$i=`_nghost-${Pn}`,zi=`_ngcontent-${Pn}`,Hi=!0,Fi=new b("",{factory:()=>Hi});function Bi(t){return zi.replace(ur,t)}function qi(t){return $i.replace(ur,t)}function Ln(t,n){return n.map(e=>e.replace(ur,t))}var lr=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,r,i,o,s,a,c=null,u=null){this.eventManager=e,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=u,this.platformIsServer=!1,this.defaultRenderer=new Ne(e,s,a,this.platformIsServer,this.tracingService)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;let i=this.getOrCreateRenderer(e,r);return i instanceof pt?i.applyToHost(e):i instanceof Pe&&i.applyStyles(),i}getOrCreateRenderer(e,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,p=this.platformIsServer,S=this.tracingService;switch(r.encapsulation){case ct.Emulated:o=new pt(c,u,r,this.appId,l,s,a,p,S);break;case ct.ShadowDom:return new ft(c,e,r,s,a,this.nonce,p,S,u);case ct.ExperimentalIsolatedShadowDom:return new ft(c,e,r,s,a,this.nonce,p,S);default:o=new Pe(c,u,r,l,s,a,p,S);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(r){return new(r||t)(y(ar),y(cr),y(Xt),y(Fi),y(L),y(it),y(Jt),y(an,8))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),Ne=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,r,i,o){this.eventManager=n,this.doc=e,this.ngZone=r,this.platformIsServer=i,this.tracingService=o}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(or[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(Nn(n)?n.content:n).appendChild(e)}insertBefore(n,e,r){n&&(Nn(n)?n.content:n).insertBefore(e,r)}removeChild(n,e){e.remove()}selectRootElement(n,e){let r=typeof n=="string"?this.doc.querySelector(n):n;if(!r)throw new R(-5104,!1);return e||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,r,i){if(i){e=i+":"+e;let o=or[i];o?n.setAttributeNS(o,e,r):n.setAttribute(e,r)}else n.setAttribute(e,r)}removeAttribute(n,e,r){if(r){let i=or[r];i?n.removeAttributeNS(i,e):n.removeAttribute(`${r}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,r,i){i&(Ae.DashCase|Ae.Important)?n.style.setProperty(e,r,i&Ae.Important?"important":""):n.style[e]=r}removeStyle(n,e,r){r&Ae.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,r){n!=null&&(n[e]=r)}setValue(n,e){n.nodeValue=e}listen(n,e,r,i){if(typeof n=="string"&&(n=Oe().getGlobalEventTarget(this.doc,n),!n))throw new R(5102,!1);let o=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(n,e,o)),this.eventManager.addEventListener(n,e,o,i)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;n(e)===!1&&e.preventDefault()}}};function Nn(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var ft=class extends Ne{hostEl;sharedStylesHost;shadowRoot;constructor(n,e,r,i,o,s,a,c,u){super(n,i,o,a,c),this.hostEl=e,this.sharedStylesHost=u,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let l=r.styles;l=Ln(r.id,l);for(let S of l){let w=document.createElement("style");s&&w.setAttribute("nonce",s),w.textContent=S,this.shadowRoot.appendChild(w)}let p=r.getExternalStyles?.();if(p)for(let S of p){let w=sr(S,i);s&&w.setAttribute("nonce",s),this.shadowRoot.appendChild(w)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,r){return super.insertBefore(this.nodeOrShadowRoot(n),e,r)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},Pe=class extends Ne{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,r,i,o,s,a,c,u){super(n,o,s,a,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i;let l=r.styles;this.styles=u?Ln(u,l):l,this.styleUrls=r.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&sn.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},pt=class extends Pe{contentAttr;hostAttr;constructor(n,e,r,i,o,s,a,c,u){let l=i+"-"+r.id;super(n,e,r,o,s,a,c,u,l),this.contentAttr=Bi(l),this.hostAttr=qi(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let r=super.createElement(n,e);return super.setAttribute(r,this.contentAttr,""),r}};var vt=class t extends In{supportsDOMEvents=!0;static makeCurrent(){En(new t)}onAndCancel(n,e,r,i){return n.addEventListener(e,r,i),()=>{n.removeEventListener(e,r,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=Gi();return e==null?null:Wi(e)}resetBaseElement(){Le=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return Mn(document.cookie,n)}},Le=null;function Gi(){return Le=Le||document.head.querySelector("base"),Le?Le.getAttribute("href"):null}function Wi(t){return new URL(t,document.baseURI).pathname}var Qi=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),Un=["alt","control","meta","shift"],Yi={"\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"},Zi={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},kn=(()=>{class t extends _e{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,r,i,o){let s=t.parseEventName(r),a=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Oe().onAndCancel(e,s.domEventName,a,o))}static parseEventName(e){let r=e.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=t._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Un.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=o,r.length!=0||o.length===0)return null;let c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(e,r){let i=Yi[e.key]||e.key,o="";return r.indexOf("code.")>-1&&(i=e.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Un.forEach(s=>{if(s!==i){let a=Zi[s];a(e)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(e,r,i){return o=>{t.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>r(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(r){return new(r||t)(y(L))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();function Ki(t,n,e){let r=d({rootComponent:t,platformRef:e?.platformRef},Xi(n));return bn(r)}function Xi(t){return{appProviders:[...no,...t?.providers??[]],platformProviders:ro}}function Ji(){vt.makeCurrent()}function eo(){return new Zt}function to(){return Yr(document),document}var ro=[{provide:at,useValue:Dn},{provide:Zr,useValue:Ji,multi:!0},{provide:L,useFactory:to}];var no=[{provide:Vr,useValue:"root"},{provide:Zt,useFactory:eo},{provide:mt,useClass:ht,multi:!0},{provide:mt,useClass:kn,multi:!0},lr,cr,ar,{provide:cn,useExisting:lr},{provide:An,useClass:Qi},[]];var $n=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(r){return new(r||t)(y(L))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var so=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:function(r){let i=null;return r?i=new(r||t):i=y(ao),i},providedIn:"root"})}return t})(),ao=(()=>{class t extends so{_doc;constructor(e){super(),this._doc=e}sanitize(e,r){if(r==null)return null;switch(e){case ne.NONE:return r;case ne.HTML:return fe(r,"HTML")?he(r):nn(this._doc,String(r)).toString();case ne.STYLE:return fe(r,"Style")?he(r):r;case ne.SCRIPT:if(fe(r,"Script"))return he(r);throw new R(5200,!1);case ne.URL:return fe(r,"URL")?he(r):rn(String(r));case ne.RESOURCE_URL:if(fe(r,"ResourceURL"))return he(r);throw new R(5201,!1);default:throw new R(5202,!1)}}bypassSecurityTrustHtml(e){return Kr(e)}bypassSecurityTrustStyle(e){return Xr(e)}bypassSecurityTrustScript(e){return Jr(e)}bypassSecurityTrustUrl(e){return en(e)}bypassSecurityTrustResourceUrl(e){return tn(e)}static \u0275fac=function(r){return new(r||t)(y(L))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var f="primary",We=Symbol("RouteTitle"),gr=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function ae(t){return new gr(t)}function Qn(t,n,e){let r=e.path.split("/");if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let i={};for(let o=0;o<r.length;o++){let s=r[o],a=t[o];if(s[0]===":")i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function bt(t){return new Promise((n,e)=>{t.pipe(W()).subscribe({next:r=>n(r),error:r=>e(r)})})}function uo(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!$(t[e],n[e]))return!1;return!0}function $(t,n){let e=t?mr(t):void 0,r=n?mr(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!Yn(t[i],n[i]))return!1;return!0}function mr(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Yn(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function Zn(t){return t.length>0?t[t.length-1]:null}function ue(t){return Gt(t)?t:hn(t)?N(Promise.resolve(t)):g(t)}function Kn(t){return Gt(t)?bt(t):Promise.resolve(t)}var lo={exact:Jn,subset:ei},Xn={exact:ho,subset:fo,ignored:()=>!0};function zn(t,n,e){return lo[e.paths](t.root,n.root,e.matrixParams)&&Xn[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function ho(t,n){return $(t,n)}function Jn(t,n,e){if(!oe(t.segments,n.segments)||!Rt(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!Jn(t.children[r],n.children[r],e))return!1;return!0}function fo(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Yn(t[e],n[e]))}function ei(t,n,e){return ti(t,n,n.segments,e)}function ti(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!oe(i,e)||n.hasChildren()||!Rt(i,e,r))}else if(t.segments.length===e.length){if(!oe(t.segments,e)||!Rt(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!ei(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!oe(t.segments,i)||!Rt(t.segments,i,r)||!t.children[f]?!1:ti(t.children[f],n,o,r)}}function Rt(t,n,e){return n.every((r,i)=>Xn[e](t[i].parameters,r.parameters))}var x=class{root;queryParams;fragment;_queryParamMap;constructor(n=new m([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=ae(this.queryParams),this._queryParamMap}toString(){return mo.serialize(this)}},m=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return wt(this)}},Y=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=ae(this.parameters),this._parameterMap}toString(){return ni(this)}};function po(t,n){return oe(t,n)&&t.every((e,r)=>$(e.parameters,n[r].parameters))}function oe(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function go(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===f&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==f&&(e=e.concat(n(i,r)))}),e}var Qe=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:()=>new Z,providedIn:"root"})}return t})(),Z=class{parse(n){let e=new yr(n);return new x(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${Ue(n.root,!0)}`,r=So(n.queryParams),i=typeof n.fragment=="string"?`#${vo(n.fragment)}`:"";return`${e}${r}${i}`}},mo=new Z;function wt(t){return t.segments.map(n=>ni(n)).join("/")}function Ue(t,n){if(!t.hasChildren())return wt(t);if(n){let e=t.children[f]?Ue(t.children[f],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==f&&r.push(`${i}:${Ue(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=go(t,(r,i)=>i===f?[Ue(t.children[f],!1)]:[`${i}:${Ue(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[f]!=null?`${wt(t)}/${e[0]}`:`${wt(t)}/(${e.join("//")})`}}function ri(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function yt(t){return ri(t).replace(/%3B/gi,";")}function vo(t){return encodeURI(t)}function vr(t){return ri(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ct(t){return decodeURIComponent(t)}function Hn(t){return Ct(t.replace(/\+/g,"%20"))}function ni(t){return`${vr(t.path)}${yo(t.parameters)}`}function yo(t){return Object.entries(t).map(([n,e])=>`;${vr(n)}=${vr(e)}`).join("")}function So(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${yt(e)}=${yt(i)}`).join("&"):`${yt(e)}=${yt(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var Ro=/^[^\/()?;#]+/;function dr(t){let n=t.match(Ro);return n?n[0]:""}var wo=/^[^\/()?;=#]+/;function Co(t){let n=t.match(wo);return n?n[0]:""}var bo=/^[^=?&#]+/;function Eo(t){let n=t.match(bo);return n?n[0]:""}var Io=/^[^&#]+/;function To(t){let n=t.match(Io);return n?n[0]:""}var yr=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[f]=new m(n,e)),r}parseSegment(){let n=dr(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new R(4009,!1);return this.capture(n),new Y(Ct(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=Co(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=dr(this.remaining);i&&(r=i,this.capture(r))}n[Ct(e)]=Ct(r)}parseQueryParam(n){let e=Eo(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=To(this.remaining);s&&(r=s,this.capture(r))}let i=Hn(e),o=Hn(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=dr(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new R(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=f);let s=this.parseChildren();e[o??f]=Object.keys(s).length===1&&s[f]?s[f]:new m([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new R(4011,!1)}};function ii(t){return t.segments.length>0?new m([],{[f]:t}):t}function oi(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=oi(i);if(r===f&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let e=new m(t.segments,n);return Mo(e)}function Mo(t){if(t.numberOfChildren===1&&t.children[f]){let n=t.children[f];return new m(t.segments.concat(n.segments),n.children)}return t}function K(t){return t instanceof x}function si(t,n,e=null,r=null,i=new Z){let o=ai(t);return ci(o,n,e,r,i)}function ai(t){let n;function e(o){let s={};for(let c of o.children){let u=e(c);s[c.outlet]=u}let a=new m(o.url,s);return o===t&&(n=a),a}let r=e(t.root),i=ii(r);return n??i}function ci(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return hr(o,o,o,e,r,i);let s=Ao(n);if(s.toRoot())return hr(o,o,new m([],{}),e,r,i);let a=Do(s,o,t),c=a.processChildren?je(a.segmentGroup,a.index,s.commands):li(a.segmentGroup,a.index,s.commands);return hr(o,a.segmentGroup,c,e,r,i)}function Et(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function ze(t){return typeof t=="object"&&t!=null&&t.outlets}function Fn(t,n,e){t||="\u0275";let r=new x;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function hr(t,n,e,r,i,o){let s={};for(let[u,l]of Object.entries(r??{}))s[u]=Array.isArray(l)?l.map(p=>Fn(u,p,o)):Fn(u,l,o);let a;t===n?a=e:a=ui(t,n,e);let c=ii(oi(a));return new x(c,s,i)}function ui(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=ui(o,n,e)}),new m(t.segments,r)}var It=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&Et(r[0]))throw new R(4003,!1);let i=r.find(ze);if(i&&i!==Zn(r))throw new R(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Ao(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new It(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...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===".."?n++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new It(e,n,r)}var ge=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function Do(t,n,e){if(t.isAbsolute)return new ge(n,!0,0);if(!e)return new ge(n,!1,NaN);if(e.parent===null)return new ge(e,!0,0);let r=Et(t.commands[0])?0:1,i=e.segments.length-1+r;return Oo(e,i,t.numberOfDoubleDots)}function Oo(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new R(4005,!1);i=r.segments.length}return new ge(r,!1,i-o)}function _o(t){return ze(t[0])?t[0].outlets:{[f]:t}}function li(t,n,e){if(t??=new m([],{}),t.segments.length===0&&t.hasChildren())return je(t,n,e);let r=No(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new m(t.segments.slice(0,r.pathIndex),{});return o.children[f]=new m(t.segments.slice(r.pathIndex),t.children),je(o,0,i)}else return r.match&&i.length===0?new m(t.segments,{}):r.match&&!t.hasChildren()?Sr(t,n,e):r.match?je(t,0,i):Sr(t,n,e)}function je(t,n,e){if(e.length===0)return new m(t.segments,{});{let r=_o(e),i={};if(Object.keys(r).some(o=>o!==f)&&t.children[f]&&t.numberOfChildren===1&&t.children[f].segments.length===0){let o=je(t.children[f],n,e);return new m(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=li(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new m(t.segments,i)}}function No(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let s=t.segments[i],a=e[r];if(ze(a))break;let c=`${a}`,u=r<e.length-1?e[r+1]:null;if(i>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!qn(c,u,s))return o;r+=2}else{if(!qn(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Sr(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(ze(o)){let c=Po(o.outlets);return new m(r,c)}if(i===0&&Et(e[0])){let c=t.segments[n];r.push(new Y(c.path,Bn(e[0]))),i++;continue}let s=ze(o)?o.outlets[f]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&Et(a)?(r.push(new Y(s,Bn(a))),i+=2):(r.push(new Y(s,{})),i++)}return new m(r,{})}function Po(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=Sr(new m([],{}),0,r))}),n}function Bn(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function qn(t,n,e){return t==e.path&&$(n,e.parameters)}var ke="imperative",E=(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})(E||{}),D=class{id;url;constructor(n,e){this.id=n,this.url=e}},ce=class extends D{type=E.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},j=class extends D{urlAfterRedirects;type=E.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},T=(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})(T||{}),He=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(He||{}),z=class extends D{reason;code;type=E.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},q=class extends D{reason;code;type=E.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},ve=class extends D{error;target;type=E.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Fe=class extends D{urlAfterRedirects;state;type=E.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Tt=class extends D{urlAfterRedirects;state;type=E.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Mt=class extends D{urlAfterRedirects;state;shouldActivate;type=E.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},At=class extends D{urlAfterRedirects;state;type=E.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Dt=class extends D{urlAfterRedirects;state;type=E.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ot=class{route;type=E.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},_t=class{route;type=E.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Nt=class{snapshot;type=E.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Pt=class{snapshot;type=E.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Lt=class{snapshot;type=E.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ut=class{snapshot;type=E.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Be=class{},ye=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function Lo(t){return!(t instanceof Be)&&!(t instanceof ye)}function Uo(t,n){return t.providers&&!t._injector&&(t._injector=tr(t.providers,n,`Route: ${t.path}`)),t._injector??n}function U(t){return t.outlet||f}function xo(t,n){let e=t.filter(r=>U(r)===n);return e.push(...t.filter(r=>U(r)!==n)),e}function we(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var xt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return we(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new Ce(this.rootInjector)}},Ce=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new xt(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(y(de))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),jt=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=Rr(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Rr(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=wr(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return wr(n,this._root).map(e=>e.value)}};function Rr(t,n){if(t===n.value)return n;for(let e of n.children){let r=Rr(t,e);if(r)return r}return null}function wr(t,n){if(t===n.value)return[n];for(let e of n.children){let r=wr(t,e);if(r.length)return r.unshift(n),r}return[]}var A=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function pe(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var qe=class extends jt{snapshot;constructor(n,e){super(n),this.snapshot=e,Mr(this,n)}toString(){return this.snapshot.toString()}};function di(t){let n=jo(t),e=new _([new Y("",{})]),r=new _({}),i=new _({}),o=new _({}),s=new _(""),a=new V(e,r,o,s,i,f,t,n.root);return a.snapshot=n.root,new qe(new A(a,[]),n)}function jo(t){let n={},e={},r={},o=new se([],n,r,"",e,f,t,null,{});return new Ve("",new A(o,[]))}var V=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,o,s,a,c){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(I(u=>u[We]))??g(void 0),this.url=n,this.params=e,this.queryParams=r,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(I(n=>ae(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(I(n=>ae(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function kt(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:d(d({},n.params),t.params),data:d(d({},n.data),t.data),resolve:d(d(d(d({},t.data),n.data),i?.data),t._resolvedData)}:r={params:d({},t.params),data:d({},t.data),resolve:d(d({},t.data),t._resolvedData??{})},i&&fi(i)&&(r.resolve[We]=i.title),r}var se=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[We]}constructor(n,e,r,i,o,s,a,c,u){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}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??=ae(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ae(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},Ve=class extends jt{url;constructor(n,e){super(e),this.url=n,Mr(this,e)}toString(){return hi(this._root)}};function Mr(t,n){n.value._routerState=t,n.children.forEach(e=>Mr(t,e))}function hi(t){let n=t.children.length>0?` { ${t.children.map(hi).join(", ")} } `:"";return`${t.value}${n}`}function fr(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,$(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),$(n.params,e.params)||t.paramsSubject.next(e.params),uo(n.url,e.url)||t.urlSubject.next(e.url),$(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Cr(t,n){let e=$(t.params,n.params)&&po(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||Cr(t.parent,n.parent))}function fi(t){return typeof t.title=="string"||t.title===null}var pi=new b(""),Ar=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=f;activateEvents=new re;deactivateEvents=new re;attachEvents=new re;detachEvents=new re;routerOutletData=Cn();parentContexts=h(Ce);location=h(un);changeDetector=h(ut);inputBinder=h(Ft,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)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 R(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new R(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new R(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new R(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new br(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=De({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Me]})}return t})(),br=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===V?this.route:n===Ce?this.childContexts:n===pi?this.outletData:this.parent.get(n,e)}},Ft=new b("");var Dr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=dn({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&gn(0,"router-outlet")},dependencies:[Ar],encapsulation:2})}return t})();function Or(t){let n=t.children&&t.children.map(Or),e=n?O(d({},t),{children:n}):d({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==f&&(e.component=Dr),e}function ko(t,n,e){let r=Ge(t,n._root,e?e._root:void 0);return new qe(r,n)}function Ge(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=$o(t,n,e);return new A(r,i)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Ge(t,a)),s}}let r=zo(n.value),i=n.children.map(o=>Ge(t,o));return new A(r,i)}}function $o(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return Ge(t,r,i);return Ge(t,r)})}function zo(t){return new V(new _(t.url),new _(t.params),new _(t.queryParams),new _(t.fragment),new _(t.data),t.outlet,t.component,t)}var Se=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},gi="ngNavigationCancelingError";function $t(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=K(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=mi(!1,T.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function mi(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[gi]=!0,e.cancellationCode=n,e}function Ho(t){return vi(t)&&K(t.url)}function vi(t){return!!t&&t[gi]}var Fo=(t,n,e,r)=>I(i=>(new Er(n,i.targetRouterState,i.currentRouterState,e,r).activate(t),i)),Er=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),fr(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=pe(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=pe(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=pe(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=pe(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Ut(o.value.snapshot))}),n.children.length&&this.forwardEvent(new Pt(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(fr(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let s=r.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),fr(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},zt=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},me=class{component;route;constructor(n,e){this.component=n,this.route=e}};function Bo(t,n,e){let r=t._root,i=n?n._root:null;return xe(r,i,e,[r.value])}function qo(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function be(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!qr(t)?t:n.get(t):r}function xe(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=pe(n);return t.children.forEach(s=>{Vo(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>$e(a,e.getContext(s),i)),i}function Vo(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=Go(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new zt(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?xe(t,n,a?a.children:null,r,i):xe(t,n,e,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new me(a.outlet.component,s))}else s&&$e(n,a,i),i.canActivateChecks.push(new zt(r)),o.component?xe(t,null,a?a.children:null,r,i):xe(t,null,e,r,i);return i}function Go(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!oe(t.url,n.url);case"pathParamsOrQueryParamsChange":return!oe(t.url,n.url)||!$(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Cr(t,n)||!$(t.queryParams,n.queryParams);case"paramsChange":default:return!Cr(t,n)}}function $e(t,n,e){let r=pe(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?n?$e(s,n.children.getContext(o),e):$e(s,null,e):$e(s,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new me(n.outlet.component,i)):e.canDeactivateChecks.push(new me(null,i)):e.canDeactivateChecks.push(new me(null,i))}function Ye(t){return typeof t=="function"}function Wo(t){return typeof t=="boolean"}function Qo(t){return t&&Ye(t.canLoad)}function Yo(t){return t&&Ye(t.canActivate)}function Zo(t){return t&&Ye(t.canActivateChild)}function Ko(t){return t&&Ye(t.canDeactivate)}function Xo(t){return t&&Ye(t.canMatch)}function yi(t){return t instanceof $r||t?.name==="EmptyError"}var St=Symbol("INITIAL_VALUE");function Re(){return B(t=>zr(t.map(n=>n.pipe(le(1),Br(St)))).pipe(I(n=>{for(let e of n)if(e!==!0){if(e===St)return St;if(e===!1||Jo(e))return e}return!0}),G(n=>n!==St),le(1)))}function Jo(t){return K(t)||t instanceof Se}function Si(t){return t.aborted?g(void 0).pipe(le(1)):new jr(n=>{let e=()=>{n.next(),n.complete()};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function Ri(t){return tt(Si(t))}function es(t,n){return F(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?g(O(d({},e),{guardsResult:!0})):ts(s,r,i,t).pipe(F(a=>a&&Wo(a)?rs(r,o,t,n):g(a)),I(a=>O(d({},e),{guardsResult:a})))})}function ts(t,n,e,r){return N(t).pipe(F(i=>as(i.component,i.route,e,n,r)),W(i=>i!==!0,!0))}function rs(t,n,e,r){return N(n).pipe(et(i=>Hr(is(i.route.parent,r),ns(i.route,r),ss(t,i.path,e),os(t,i.route,e))),W(i=>i!==!0,!0))}function ns(t,n){return t!==null&&n&&n(new Lt(t)),g(!0)}function is(t,n){return t!==null&&n&&n(new Nt(t)),g(!0)}function os(t,n,e){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return g(!0);let i=r.map(o=>Xe(()=>{let s=we(n)??e,a=be(o,s),c=Yo(a)?a.canActivate(n,t):P(s,()=>a(n,t));return ue(c).pipe(W())}));return g(i).pipe(Re())}function ss(t,n,e){let r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>qo(s)).filter(s=>s!==null).map(s=>Xe(()=>{let a=s.guards.map(c=>{let u=we(s.node)??e,l=be(c,u),p=Zo(l)?l.canActivateChild(r,t):P(u,()=>l(r,t));return ue(p).pipe(W())});return g(a).pipe(Re())}));return g(o).pipe(Re())}function as(t,n,e,r,i){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return g(!0);let s=o.map(a=>{let c=we(n)??i,u=be(a,c),l=Ko(u)?u.canDeactivate(t,n,e,r):P(c,()=>u(t,n,e,r));return ue(l).pipe(W())});return g(s).pipe(Re())}function cs(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return g(!0);let s=o.map(a=>{let c=be(a,t),u=Qo(c)?c.canLoad(n,e):P(t,()=>c(n,e)),l=ue(u);return i?l.pipe(Ri(i)):l});return g(s).pipe(Re(),wi(r))}function wi(t){return xr(M(n=>{if(typeof n!="boolean")throw $t(t,n)}),I(n=>n===!0))}function us(t,n,e,r,i){let o=n.canMatch;if(!o||o.length===0)return g(!0);let s=o.map(a=>{let c=be(a,t),u=Xo(c)?c.canMatch(n,e):P(t,()=>c(n,e)),l=ue(u);return i?l.pipe(Ri(i)):l});return g(s).pipe(Re(),wi(r))}var ie=class Ci extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,Ci.prototype)}},Ir=class bi extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,bi.prototype)}};function ls(t){throw new R(4e3,!1)}function ds(t){throw mi(!1,T.GuardRejected)}var hs=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){return C(this,null,function*(){let r=[],i=e.r