UNPKG

angular-t9n

Version:

A translation tool for Angular i18n

1 lines 83.8 kB
import{Ac as wn,B as re,Ba as Gr,C as Se,Ca as Ot,Da as Wr,E as bt,Ea as we,F as ne,Fb as hn,G as _r,Ga as Ut,Hc as Cn,Ic as jt,J as Ve,Jc as Rn,K as W,L as Et,La as Ce,M as Lr,Ma as se,Na as ae,Oa as Zr,P as jr,Pa as Qr,Pb as fn,Qa as Yr,Ra as Kr,Sa as Xr,T as kr,Ta as Jr,U as k,Ua as en,V as $r,Va as Q,Vb as pn,Wa as tn,X as b,Xa as Re,Xb as gn,Y as C,Yb as vn,Za as N,_ as S,a as Or,aa as zr,ab as rn,ba as M,bb as nn,c as Ur,ca as It,cb as Pt,da as w,db as on,e as yt,ea as g,eb as sn,f as St,g as V,gb as Ze,ha as Mt,hb as Qe,i as D,ia as Fr,ja as Ge,jb as an,k as G,ka as z,kb as un,kc as Nt,l as O,la as We,lb as xt,lc as Ye,m as f,mb as cn,n as ye,nc as mn,o as Pr,oc as Ke,p as xr,q as y,qa as At,r as wt,ra as Hr,rb as ln,s as U,sa as Br,t as Ct,tb as dn,u as Nr,ua as qr,uc as _t,v as Rt,va as ie,vc as yn,wa as oe,wc as Sn,xa as Tt,xc as _,ya as Vr,yc as Lt,z as te,za as Dt,zc as Xe}from"./chunk-XN5ZPBP6.js";import{a as h,b as I}from"./chunk-4CLCTAJ7.js";var $t=class extends Sn{supportsDOMEvents=!0},zt=class t extends $t{static makeCurrent(){yn(new t)}onAndCancel(n,e,r){return n.addEventListener(e,r),()=>{n.removeEventListener(e,r)}}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=Ri();return e==null?null:bi(e)}resetBaseElement(){be=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return wn(document.cookie,n)}},be=null;function Ri(){return be=be||document.querySelector("base"),be?be.getAttribute("href"):null}function bi(t){return new URL(t,document.baseURI).pathname}var Ei=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})(),Ft=new M(""),Tn=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,r){this._zone=r,e.forEach(i=>{i.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,r,i){return this._findPluginFor(r).addEventListener(e,r,i)}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 C(5101,!1);return this._eventNameToPlugin.set(e,r),r}static \u0275fac=function(r){return new(r||t)(w(Ft),w(oe))};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})(),Je=class{_doc;constructor(n){this._doc=n}manager},Ht="ng-app-id";function bn(t){for(let n of t)n.remove()}function En(t,n){let e=n.createElement("style");return e.textContent=t,e}function Ii(t,n,e){let r=t.head?.querySelectorAll(`style[${Ht}="${n}"]`);if(r)for(let i of r)i.textContent&&(i.removeAttribute(Ht),e.set(i.textContent,{usage:0,elements:[i]}))}function Bt(t,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var Dn=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,r,i,o={}){this.doc=e,this.appId=r,this.nonce=i,this.isServer=jt(o),Ii(e,r,this.inline),this.hosts.add(e.head)}addStyles(e,r){for(let i of e)this.addUsage(i,this.inline,En);r?.forEach(i=>this.addUsage(i,this.external,Bt))}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&&(bn(i.elements),r.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])bn(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(e,En(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(e,Bt(r,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(Ht,this.appId),e.appendChild(r)}static \u0275fac=function(r){return new(r||t)(w(_),w(Ot),w(Ut,8),w(we))};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})(),kt={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"},Vt=/%COMP%/g,On="%COMP%",Mi=`_nghost-${On}`,Ai=`_ngcontent-${On}`,Ti=!0,Di=new M("",{providedIn:"root",factory:()=>Ti});function Oi(t){return Ai.replace(Vt,t)}function Ui(t){return Mi.replace(Vt,t)}function Un(t,n){return n.map(e=>e.replace(Vt,t))}var In=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,r,i,o,s,u,a,c=null){this.eventManager=e,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=u,this.ngZone=a,this.nonce=c,this.platformIsServer=jt(u),this.defaultRenderer=new Ee(e,s,a,this.platformIsServer)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ce.ShadowDom&&(r=I(h({},r),{encapsulation:Ce.Emulated}));let i=this.getOrCreateRenderer(e,r);return i instanceof et?i.applyToHost(e):i instanceof Ie&&i.applyStyles(),i}getOrCreateRenderer(e,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,u=this.ngZone,a=this.eventManager,c=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Ce.Emulated:o=new et(a,c,r,this.appId,l,s,u,d);break;case Ce.ShadowDom:return new qt(a,c,e,r,s,u,this.nonce,d);default:o=new Ie(a,c,r,l,s,u,d);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(r){return new(r||t)(w(Tn),w(Dn),w(Ot),w(Di),w(_),w(we),w(oe),w(Ut))};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})(),Ee=class{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,r,i){this.eventManager=n,this.doc=e,this.ngZone=r,this.platformIsServer=i}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(kt[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(Mn(n)?n.content:n).appendChild(e)}insertBefore(n,e,r){n&&(Mn(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 C(-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=kt[i];o?n.setAttributeNS(o,e,r):n.setAttribute(e,r)}else n.setAttribute(e,r)}removeAttribute(n,e,r){if(r){let i=kt[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&(Re.DashCase|Re.Important)?n.style.setProperty(e,r,i&Re.Important?"important":""):n.style[e]=r}removeStyle(n,e,r){r&Re.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){if(typeof n=="string"&&(n=_t().getGlobalEventTarget(this.doc,n),!n))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(r))}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault()}}};function Mn(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var qt=class extends Ee{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,r,i,o,s,u,a){super(n,o,s,a),this.sharedStylesHost=e,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Un(i.id,i.styles);for(let d of c){let v=document.createElement("style");u&&v.setAttribute("nonce",u),v.textContent=d,this.shadowRoot.appendChild(v)}let l=i.getExternalStyles?.();if(l)for(let d of l){let v=Bt(d,o);u&&v.setAttribute("nonce",u),this.shadowRoot.appendChild(v)}}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.removeHost(this.shadowRoot)}},Ie=class extends Ee{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,r,i,o,s,u,a){super(n,o,s,u),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i,this.styles=a?Un(a,r.styles):r.styles,this.styleUrls=r.getExternalStyles?.(a)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},et=class extends Ie{contentAttr;hostAttr;constructor(n,e,r,i,o,s,u,a){let c=i+"-"+r.id;super(n,e,r,o,s,u,a,c),this.contentAttr=Oi(c),this.hostAttr=Ui(c)}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}},Pi=(()=>{class t extends Je{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,i){return e.addEventListener(r,i,!1),()=>this.removeEventListener(e,r,i)}removeEventListener(e,r,i){return e.removeEventListener(r,i)}static \u0275fac=function(r){return new(r||t)(w(_))};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})(),An=["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"},Ni={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},_i=(()=>{class t extends Je{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,r,i){let o=t.parseEventName(r),s=t.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>_t().onAndCancel(e,o.domEventName,s))}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="",u=r.indexOf("code");if(u>-1&&(r.splice(u,1),s="code."),An.forEach(c=>{let l=r.indexOf(c);l>-1&&(r.splice(l,1),s+=c+".")}),s+=o,r.length!=0||o.length===0)return null;let a={};return a.domEventName=i,a.fullKey=s,a}static matchEventFullKeyCode(e,r){let i=xi[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"),An.forEach(s=>{if(s!==i){let u=Ni[s];u(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)(w(_))};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})();function aa(t,n){return mn(h({rootComponent:t},Li(n)))}function Li(t){return{appProviders:[...Fi,...t?.providers??[]],platformProviders:zi}}function ji(){zt.makeCurrent()}function ki(){return new Tt}function $i(){return Gr(document),document}var zi=[{provide:we,useValue:Cn},{provide:Wr,useValue:ji,multi:!0},{provide:_,useFactory:$i,deps:[]}];var Fi=[{provide:Fr,useValue:"root"},{provide:Tt,useFactory:ki,deps:[]},{provide:Ft,useClass:Pi,multi:!0,deps:[_,oe,we]},{provide:Ft,useClass:_i,multi:!0,deps:[_]},In,Dn,Tn,{provide:nn,useExisting:In},{provide:Rn,useClass:Ei,deps:[]},[]];var Pn=(()=>{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)(w(_))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Hi=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:function(r){let i=null;return r?i=new(r||t):i=w(Bi),i},providedIn:"root"})}return t})(),Bi=(()=>{class t extends Hi{_doc;constructor(e){super(),this._doc=e}sanitize(e,r){if(r==null)return null;switch(e){case Q.NONE:return r;case Q.HTML:return ae(r,"HTML")?se(r):en(this._doc,String(r)).toString();case Q.STYLE:return ae(r,"Style")?se(r):r;case Q.SCRIPT:if(ae(r,"Script"))return se(r);throw new C(5200,!1);case Q.URL:return ae(r,"URL")?se(r):Jr(String(r));case Q.RESOURCE_URL:if(ae(r,"ResourceURL"))return se(r);throw new C(5201,!1);default:throw new C(5202,!1)}}bypassSecurityTrustHtml(e){return Zr(e)}bypassSecurityTrustStyle(e){return Qr(e)}bypassSecurityTrustScript(e){return Yr(e)}bypassSecurityTrustUrl(e){return Kr(e)}bypassSecurityTrustResourceUrl(e){return Xr(e)}static \u0275fac=function(r){return new(r||t)(w(_))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var p="primary",Fe=Symbol("RouteTitle"),Yt=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 fe(t){return new Yt(t)}function Vi(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],u=t[o];if(s[0]===":")i[s.substring(1)]=u;else if(s!==u.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function Gi(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?Kt(t):void 0,r=n?Kt(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],!Fn(t[i],n[i]))return!1;return!0}function Kt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Fn(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 Hn(t){return t.length>0?t[t.length-1]:null}function Z(t){return Pr(t)?t:an(t)?O(Promise.resolve(t)):f(t)}var Wi={exact:qn,subset:Vn},Bn={exact:Zi,subset:Qi,ignored:()=>!0};function xn(t,n,e){return Wi[e.paths](t.root,n.root,e.matrixParams)&&Bn[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Zi(t,n){return $(t,n)}function qn(t,n,e){if(!K(t.segments,n.segments)||!nt(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!qn(t.children[r],n.children[r],e))return!1;return!0}function Qi(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Fn(t[e],n[e]))}function Vn(t,n,e){return Gn(t,n,n.segments,e)}function Gn(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!K(i,e)||n.hasChildren()||!nt(i,e,r))}else if(t.segments.length===e.length){if(!K(t.segments,e)||!nt(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!Vn(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!K(t.segments,i)||!nt(t.segments,i,r)||!t.children[p]?!1:Gn(t.children[p],n,o,r)}}function nt(t,n,e){return n.every((r,i)=>Bn[e](t[i].parameters,r.parameters))}var H=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??=fe(this.queryParams),this._queryParamMap}toString(){return Xi.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 it(this)}},Y=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=fe(this.parameters),this._parameterMap}toString(){return Zn(this)}};function Yi(t,n){return K(t,n)&&t.every((e,r)=>$(e.parameters,n[r].parameters))}function K(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function Ki(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===p&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==p&&(e=e.concat(n(i,r)))}),e}var br=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>new Pe,providedIn:"root"})}return t})(),Pe=class{parse(n){let e=new Jt(n);return new H(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${Me(n.root,!0)}`,r=to(n.queryParams),i=typeof n.fragment=="string"?`#${Ji(n.fragment)}`:"";return`${e}${r}${i}`}},Xi=new Pe;function it(t){return t.segments.map(n=>Zn(n)).join("/")}function Me(t,n){if(!t.hasChildren())return it(t);if(n){let e=t.children[p]?Me(t.children[p],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&r.push(`${i}:${Me(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=Ki(t,(r,i)=>i===p?[Me(t.children[p],!1)]:[`${i}:${Me(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${it(t)}/${e[0]}`:`${it(t)}/(${e.join("//")})`}}function Wn(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function tt(t){return Wn(t).replace(/%3B/gi,";")}function Ji(t){return encodeURI(t)}function Xt(t){return Wn(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ot(t){return decodeURIComponent(t)}function Nn(t){return ot(t.replace(/\+/g,"%20"))}function Zn(t){return`${Xt(t.path)}${eo(t.parameters)}`}function eo(t){return Object.entries(t).map(([n,e])=>`;${Xt(n)}=${Xt(e)}`).join("")}function to(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${tt(e)}=${tt(i)}`).join("&"):`${tt(e)}=${tt(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var ro=/^[^\/()?;#]+/;function Gt(t){let n=t.match(ro);return n?n[0]:""}var no=/^[^\/()?;=#]+/;function io(t){let n=t.match(no);return n?n[0]:""}var oo=/^[^=?&#]+/;function so(t){let n=t.match(oo);return n?n[0]:""}var ao=/^[^&#]+/;function uo(t){let n=t.match(ao);return n?n[0]:""}var Jt=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[p]=new m(n,e)),r}parseSegment(){let n=Gt(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(n),new Y(ot(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=io(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Gt(this.remaining);i&&(r=i,this.capture(r))}n[ot(e)]=ot(r)}parseQueryParam(n){let e=so(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=uo(this.remaining);s&&(r=s,this.capture(r))}let i=Nn(e),o=Nn(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=Gt(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new C(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=p);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[p]: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 C(4011,!1)}};function Qn(t){return t.segments.length>0?new m([],{[p]:t}):t}function Yn(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=Yn(i);if(r===p&&o.segments.length===0&&o.hasChildren())for(let[s,u]of Object.entries(o.children))n[s]=u;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let e=new m(t.segments,n);return co(e)}function co(t){if(t.numberOfChildren===1&&t.children[p]){let n=t.children[p];return new m(t.segments.concat(n.segments),n.children)}return t}function X(t){return t instanceof H}function lo(t,n,e=null,r=null){let i=Kn(t);return Xn(i,n,e,r)}function Kn(t){let n;function e(o){let s={};for(let a of o.children){let c=e(a);s[a.outlet]=c}let u=new m(o.url,s);return o===t&&(n=u),u}let r=e(t.root),i=Qn(r);return n??i}function Xn(t,n,e,r){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return Wt(i,i,i,e,r);let o=ho(n);if(o.toRoot())return Wt(i,i,new m([],{}),e,r);let s=fo(o,i,t),u=s.processChildren?De(s.segmentGroup,s.index,o.commands):ei(s.segmentGroup,s.index,o.commands);return Wt(i,s.segmentGroup,u,e,r)}function st(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function xe(t){return typeof t=="object"&&t!=null&&t.outlets}function Wt(t,n,e,r,i){let o={};r&&Object.entries(r).forEach(([a,c])=>{o[a]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let s;t===n?s=e:s=Jn(t,n,e);let u=Qn(Yn(s));return new H(u,o,i)}function Jn(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=Jn(o,n,e)}),new m(t.segments,r)}var at=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&st(r[0]))throw new C(4003,!1);let i=r.find(xe);if(i&&i!==Hn(r))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function ho(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new at(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let u={};return Object.entries(o.outlets).forEach(([a,c])=>{u[a]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:u}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((u,a)=>{a==0&&u==="."||(a==0&&u===""?e=!0:u===".."?n++:u!=""&&i.push(u))}),i):[...i,o]},[]);return new at(e,n,r)}var le=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function fo(t,n,e){if(t.isAbsolute)return new le(n,!0,0);if(!e)return new le(n,!1,NaN);if(e.parent===null)return new le(e,!0,0);let r=st(t.commands[0])?0:1,i=e.segments.length-1+r;return po(e,i,t.numberOfDoubleDots)}function po(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new C(4005,!1);i=r.segments.length}return new le(r,!1,i-o)}function go(t){return xe(t[0])?t[0].outlets:{[p]:t}}function ei(t,n,e){if(t??=new m([],{}),t.segments.length===0&&t.hasChildren())return De(t,n,e);let r=vo(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[p]=new m(t.segments.slice(r.pathIndex),t.children),De(o,0,i)}else return r.match&&i.length===0?new m(t.segments,{}):r.match&&!t.hasChildren()?er(t,n,e):r.match?De(t,0,i):er(t,n,e)}function De(t,n,e){if(e.length===0)return new m(t.segments,{});{let r=go(e),i={};if(Object.keys(r).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=De(t.children[p],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]=ei(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 vo(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],u=e[r];if(xe(u))break;let a=`${u}`,c=r<e.length-1?e[r+1]:null;if(i>0&&a===void 0)break;if(a&&c&&typeof c=="object"&&c.outlets===void 0){if(!Ln(a,c,s))return o;r+=2}else{if(!Ln(a,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function er(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(xe(o)){let a=mo(o.outlets);return new m(r,a)}if(i===0&&st(e[0])){let a=t.segments[n];r.push(new Y(a.path,_n(e[0]))),i++;continue}let s=xe(o)?o.outlets[p]:`${o}`,u=i<e.length-1?e[i+1]:null;s&&u&&st(u)?(r.push(new Y(s,_n(u))),i+=2):(r.push(new Y(s,{})),i++)}return new m(r,{})}function mo(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=er(new m([],{}),0,r))}),n}function _n(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function Ln(t,n,e){return t==e.path&&$(n,e.parameters)}var Oe="imperative",R=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}(R||{}),P=class{id;url;constructor(n,e){this.id=n,this.url=e}},Ne=class extends P{type=R.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}')`}},B=class extends P{urlAfterRedirects;type=R.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||{}),tr=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(tr||{}),F=class extends P{reason;code;type=R.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},J=class extends P{reason;code;type=R.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},_e=class extends P{error;target;type=R.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})`}},ut=class extends P{urlAfterRedirects;state;type=R.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})`}},rr=class extends P{urlAfterRedirects;state;type=R.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})`}},nr=class extends P{urlAfterRedirects;state;shouldActivate;type=R.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})`}},ir=class extends P{urlAfterRedirects;state;type=R.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})`}},or=class extends P{urlAfterRedirects;state;type=R.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})`}},sr=class{route;type=R.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},ar=class{route;type=R.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},ur=class{snapshot;type=R.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},cr=class{snapshot;type=R.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},lr=class{snapshot;type=R.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},dr=class{snapshot;type=R.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Le=class{},pe=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function yo(t,n){return t.providers&&!t._injector&&(t._injector=on(t.providers,n,`Route: ${t.path}`)),t._injector??n}function L(t){return t.outlet||p}function So(t,n){let e=t.filter(r=>L(r)===n);return e.push(...t.filter(r=>L(r)!==n)),e}function He(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 hr=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return He(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new gt(this.rootInjector)}},gt=(()=>{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 hr(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(w(Ge))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ct=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=fr(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=fr(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=pr(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return pr(n,this._root).map(e=>e.value)}};function fr(t,n){if(t===n.value)return n;for(let e of n.children){let r=fr(t,e);if(r)return r}return null}function pr(t,n){if(t===n.value)return[n];for(let e of n.children){let r=pr(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 ce(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var lt=class extends ct{snapshot;constructor(n,e){super(n),this.snapshot=e,Er(this,n)}toString(){return this.snapshot.toString()}};function ti(t){let n=wo(t),e=new D([new Y("",{})]),r=new D({}),i=new D({}),o=new D({}),s=new D(""),u=new ee(e,r,o,s,i,p,t,n.root);return u.snapshot=n.root,new lt(new A(u,[]),n)}function wo(t){let n={},e={},r={},i="",o=new de([],n,r,i,e,p,t,null,{});return new ht("",new A(o,[]))}var ee=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,u,a){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=u,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(y(c=>c[Fe]))??f(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(y(n=>fe(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(y(n=>fe(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function dt(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:h(h({},n.params),t.params),data:h(h({},n.data),t.data),resolve:h(h(h(h({},t.data),n.data),i?.data),t._resolvedData)}:r={params:h({},t.params),data:h({},t.data),resolve:h(h({},t.data),t._resolvedData??{})},i&&ni(i)&&(r.resolve[Fe]=i.title),r}var de=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Fe]}constructor(n,e,r,i,o,s,u,a,c){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=u,this.routeConfig=a,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??=fe(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=fe(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}')`}},ht=class extends ct{url;constructor(n,e){super(e),this.url=n,Er(this,e)}toString(){return ri(this._root)}};function Er(t,n){n.value._routerState=t,n.children.forEach(e=>Er(t,e))}function ri(t){let n=t.children.length>0?` { ${t.children.map(ri).join(", ")} } `:"";return`${t.value}${n}`}function Zt(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),Gi(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 gr(t,n){let e=$(t.params,n.params)&&Yi(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||gr(t.parent,n.parent))}function ni(t){return typeof t.title=="string"||t.title===null}var Co=new M(""),Ro=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new ie;deactivateEvents=new ie;attachEvents=new ie;detachEvents=new ie;routerOutletData=Vr(void 0);parentContexts=g(gt);location=g(cn);changeDetector=g(Ye);inputBinder=g(Ir,{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 C(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(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 C(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,a=new vr(e,u,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:a,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=Ze({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[We]})}return t})(),vr=class t{route;childContexts;parent;outletData;__ngOutletInjector(n){return new t(this.route,this.childContexts,n,this.outletData)}constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===ee?this.route:n===gt?this.childContexts:n===Co?this.outletData:this.parent.get(n,e)}},Ir=new M("");function bo(t,n,e){let r=je(t,n._root,e?e._root:void 0);return new lt(r,n)}function je(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=Eo(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(u=>je(t,u)),s}}let r=Io(n.value),i=n.children.map(o=>je(t,o));return new A(r,i)}}function Eo(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return je(t,r,i);return je(t,r)})}function Io(t){return new ee(new D(t.url),new D(t.params),new D(t.queryParams),new D(t.fragment),new D(t.data),t.outlet,t.component,t)}var ke=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},ii="ngNavigationCancelingError";function ft(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=X(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=oi(!1,T.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function oi(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[ii]=!0,e.cancellationCode=n,e}function Mo(t){return si(t)&&X(t.url)}function si(t){return!!t&&t[ii]}var Ao=(t,n,e,r)=>y(i=>(new mr(n,i.targetRouterState,i.currentRouterState,e,r).activate(t),i)),mr=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),Zt(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=ce(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=ce(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),u=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:u})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ce(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=ce(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new dr(o.value.snapshot))}),n.children.length&&this.forwardEvent(new cr(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(Zt(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 u=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(u.contexts),s.attachRef=u.componentRef,s.route=u.route.value,s.outlet&&s.outlet.attach(u.componentRef,u.route.value),Zt(u.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)}},pt=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},he=class{component;route;constructor(n,e){this.component=n,this.route=e}};function To(t,n,e){let r=t._root,i=n?n._root:null;return Ae(r,i,e,[r.value])}function Do(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function ve(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!zr(t)?t:n.get(t):r}function Ae(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ce(n);return t.children.forEach(s=>{Oo(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,u])=>Ue(u,e.getContext(s),i)),i}function Oo(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,u=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let a=Uo(s,o,o.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new pt(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Ae(t,n,u?u.children:null,r,i):Ae(t,n,e,r,i),a&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new he(u.outlet.component,s))}else s&&Ue(n,u,i),i.canActivateChecks.push(new pt(r)),o.component?Ae(t,null,u?u.children:null,r,i):Ae(t,null,e,r,i);return i}function Uo(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!K(t.url,n.url);case"pathParamsOrQueryParamsChange":return!K(t.url,n.url)||!$(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!gr(t,n)||!$(t.queryParams,n.queryParams);case"paramsChange":default:return!gr(t,n)}}function Ue(t,n,e){let r=ce(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?n?Ue(s,n.children.getContext(o),e):Ue(s,null,e):Ue(s,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new he(n.outlet.component,i)):e.canDeactivateChecks.push(new he(null,i)):e.canDeactivateChecks.push(new he(null,i))}function Be(t){return typeof t=="function"}function Po(t){return typeof t=="boolean"}function xo(t){return t&&Be(t.canLoad)}function No(t){return t&&Be(t.canActivate)}function _o(t){return t&&Be(t.canActivateChild)}function Lo(t){return t&&Be(t.canDeactivate)}function jo(t){return t&&Be(t.canMatch)}function ai(t){return t instanceof xr||t?.name==="EmptyError"}var rt=Symbol("INITIAL_VALUE");function ge(){return k(t=>wt(t.map(n=>n.pipe(ne(1),kr(rt)))).pipe(y(n=>{for(let e of n)if(e!==!0){if(e===rt)return rt;if(e===!1||ko(e))return e}return!0}),te(n=>n!==rt),ne(1)))}function ko(t){return X(t)||t instanceof ke}function $o(t,n){return U(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?f(I(h({},e),{guardsResult:!0})):zo(s,r,i,t).pipe(U(u=>u&&Po(u)?Fo(r,o,t,n):f(u)),y(u=>I(h({},e),{guardsResult:u})))})}function zo(t,n,e,r){return O(t).pipe(U(i=>Go(i.component,i.route,e,n,r)),W(i=>i!==!0,!0))}function Fo(t,n,e,r){return O(n).pipe(Se(i=>Nr(Bo(i.route.parent,r),Ho(i.route,r),Vo(t,i.path,e),qo(t,i.route,e))),W(i=>i!==!0,!0))}function Ho(t,n){return t!==null&&n&&n(new lr(t)),f(!0)}function Bo(t,n){return t!==null&&n&&n(new ur(t)),f(!0)}function qo(t,n,e){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return f(!0);let i=r.map(o=>Rt(()=>{let s=He(n)??e,u=ve(o,s),a=No(u)?u.canActivate(n,t):z(s,()=>u(n,t));return Z(a).pipe(W())}));return f(i).pipe(ge())}function Vo(t,n,e){let r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>Do(s)).filter(s=>s!==null).map(s=>Rt(()=>{let u=s.guards.map(a=>{let c=He(s.node)??e,l=ve(a,c),d=_o(l)?l.canActivateChild(r,t):z(c,()=>l(r,t));return Z(d).pipe(W())});return f(u).pipe(ge())}));return f(o).pipe(ge())}function Go(t,n,e,r,i){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return f(!0);let s=o.map(u=>{let a=He(n)??i,c=ve(u,a),l=Lo(c)?c.canDeactivate(t,n,e,r):z(a,()=>c(t,n,e,r));return Z(l).pipe(W())});return f(s).pipe(ge())}function Wo(t,n,e,r){let i=n.canLoad;if(i===void 0||i.length===0)return f(!0);let o=i.map(s=>{let u=ve(s,t),a=xo(u)?u.canLoad(n,e):z(t,()=>u(n,e));return Z(a)});return f(o).pipe(ge(),ui(r))}function ui(t){return Ur(b(n=>{if(typeof n!="boolean")throw ft(t,n)}),y(n=>n===!0))}function Zo(t,n,e,r){let i=n.canMatch;if(!i||i.length===0)return f(!0);let o=i.map(s=>{let u=ve(s,t),a=jo(u)?u.canMatch(n,e):z(t,()=>u(n,e));return Z(a)});return f(o).pipe(ge(),ui(r))}var $e=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},ze=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function ue(t){return ye(new $e(t))}function Qo(t){return ye(new C(4e3,!1))}function Yo(t){return ye(oi(!1,T.GuardRejected))}var yr=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return f(r);if(i.numberOfChildren>1||!i.children[p])return Qo(`${n.redirectTo}`);i=i.children[p]}}applyRedirectCommands(n,e,r,i,o){if(typeof e!="string"){let u=e,{queryParams:a,fragment:c,routeConfig:l,url:d,outlet:v,params:j,data:E,title:q}=i,x=z(o,()=>u({params:j,data:E,queryParams:a,fragment:c,routeConfig:l,url:d,outlet:v,title:q}));if(x instanceof H)throw new ze(x);e=x}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,r);if(e[0]==="/")throw new ze(s);return s}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new H(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let u=o.substring(1);r[i]=e[u]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),s={};return Object.entries(e.children).forEach(([u,a])=>{s[u]=this.createSegmentGroup(n,a,r,i)}),new m(o,s)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new C(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}},Sr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ko(t,n,e,r