UNPKG

angular-t9n

Version:

A translation tool for Angular i18n

1 lines 84.9 kB
import{B as J,Ba as Xr,Bc as Oe,C as ae,Ca as Jt,Cc as Dn,Da as Jr,Dc as On,E as Gt,Ea as Me,Ec as _n,F as ce,Fc as at,Ga as er,Ha as tr,Ia as le,Ib as yn,J as rt,Ja as de,K as Y,Ka as en,L as Wt,La as tn,M as Br,Ma as rn,Mb as Sn,Mc as Nn,Na as nn,Nc as Pn,Oa as on,Ob as Rn,P as Vr,Pa as sn,Pb as wn,Qa as an,Ra as ee,Sa as cn,T as qr,U as L,Ua as Ae,V as Zt,Wa as un,X as E,Xa as rr,Y as R,Ya as x,Za as ln,_ as m,a as jr,aa as Gr,ab as dn,ba as b,bb as nr,c as kr,ca as y,cb as hn,d as $r,da as f,e as Ft,ea as Yt,eb as De,f as Bt,fa as Wr,g as F,ga as ue,gc as Cn,ha as V,hc as En,i as U,ib as fn,jb as te,k as B,kb as he,kc as bn,l as D,lc as Tn,m as h,ma as nt,mb as ir,n as Te,na as _,nb as pn,o as zr,oa as Zr,ob as gn,oc as ot,p as Hr,pa as Qt,pb as or,q as v,qa as it,qb as vn,qc as In,r as Vt,rc as st,s as O,sa as Yr,t as qt,ta as Qr,u as Fr,v as tt,vc as Mn,wa as Ie,wc as An,xa as Kt,ya as Kr,z as Z,za as Xt,zb as mn}from"./chunk-IRWV2DJQ.js";import{a as l,b as A}from"./chunk-4CLCTAJ7.js";var dt=new b(""),ur=(()=>{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,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(dt),y(he))};static \u0275prov=m({token:t,factory:t.\u0275fac})}return t})(),_e=class{_doc;constructor(n){this._doc=n}manager},ct="ng-app-id";function Un(t){for(let n of t)n.remove()}function Ln(t,n){let e=n.createElement("style");return e.textContent=t,e}function xi(t,n,e,r){let i=t.head?.querySelectorAll(`style[${ct}="${n}"],link[${ct}="${n}"]`);if(i)for(let o of i)o.removeAttribute(ct),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 ar(t,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var lr=(()=>{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=Pn(o),xi(e,r,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,r){for(let i of e)this.addUsage(i,this.inline,Ln);r?.forEach(i=>this.addUsage(i,this.external,ar))}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&&(Un(i.elements),r.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Un(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(e,Ln(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(e,ar(r,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(ct,this.appId),e.appendChild(r)}static \u0275fac=function(r){return new(r||t)(y(_),y(Jt),y(er,8),y(Me))};static \u0275prov=m({token:t,factory:t.\u0275fac})}return t})(),sr={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},dr=/%COMP%/g;var jn="%COMP%",ji=`_nghost-${jn}`,ki=`_ngcontent-${jn}`,$i=!0,zi=new b("",{providedIn:"root",factory:()=>$i});function Hi(t){return ki.replace(dr,t)}function Fi(t){return ji.replace(dr,t)}function kn(t,n){return n.map(e=>e.replace(dr,t))}var hr=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,r,i,o,s,a,c,u=null,d=null){this.eventManager=e,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.tracingService=d,this.platformIsServer=!1,this.defaultRenderer=new Ne(e,s,c,this.platformIsServer,this.tracingService)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;let i=this.getOrCreateRenderer(e,r);return i instanceof ut?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,d=this.removeStylesOnCompDestroy,S=this.platformIsServer,w=this.tracingService;switch(r.encapsulation){case tr.Emulated:o=new ut(c,u,r,this.appId,d,s,a,S,w);break;case tr.ShadowDom:return new cr(c,u,e,r,s,a,this.nonce,S,w);default:o=new Pe(c,u,r,d,s,a,S,w);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(ur),y(lr),y(Jt),y(zi),y(_),y(Me),y(he),y(er),y(fn,8))};static \u0275prov=m({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(sr[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(xn(n)?n.content:n).appendChild(e)}insertBefore(n,e,r){n&&(xn(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=sr[i];o?n.setAttributeNS(o,e,r):n.setAttribute(e,r)}else n.setAttribute(e,r)}removeAttribute(n,e,r){if(r){let i=sr[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 xn(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var cr=class extends Ne{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,r,i,o,s,a,c,u){super(n,o,s,c,u),this.sharedStylesHost=e,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=i.styles;d=kn(i.id,d);for(let w of d){let T=document.createElement("style");a&&T.setAttribute("nonce",a),T.textContent=w,this.shadowRoot.appendChild(T)}let S=i.getExternalStyles?.();if(S)for(let w of S){let T=ar(w,o);a&&T.setAttribute("nonce",a),this.shadowRoot.appendChild(T)}}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)}},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 d=r.styles;this.styles=u?kn(u,d):d,this.styleUrls=r.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ut=class extends Pe{contentAttr;hostAttr;constructor(n,e,r,i,o,s,a,c,u){let d=i+"-"+r.id;super(n,e,r,o,s,a,c,u,d),this.contentAttr=Hi(d),this.hostAttr=Fi(d)}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 ht=class t extends On{supportsDOMEvents=!0;static makeCurrent(){Dn(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=Vi();return e==null?null:qi(e)}resetBaseElement(){Ue=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return Mn(document.cookie,n)}},Ue=null;function Vi(){return Ue=Ue||document.head.querySelector("base"),Ue?Ue.getAttribute("href"):null}function qi(t){return new URL(t,document.baseURI).pathname}var Gi=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:t.\u0275fac})}return t})(),Fn=(()=>{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(_))};static \u0275prov=m({token:t,factory:t.\u0275fac})}return t})(),$n=["alt","control","meta","shift"],Wi={"\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},Bn=(()=>{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."),$n.forEach(u=>{let d=r.indexOf(u);d>-1&&(r.splice(d,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=Wi[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"),$n.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(_))};static \u0275prov=m({token:t,factory:t.\u0275fac})}return t})();function Yi(t,n){return In(l({rootComponent:t},Qi(n)))}function Qi(t){return{appProviders:[...to,...t?.providers??[]],platformProviders:eo}}function Ki(){ht.makeCurrent()}function Xi(){return new Qt}function Ji(){return Xr(document),document}var eo=[{provide:Me,useValue:Nn},{provide:Jr,useValue:Ki,multi:!0},{provide:_,useFactory:Ji}];var to=[{provide:Wr,useValue:"root"},{provide:Qt,useFactory:Xi},{provide:dt,useClass:Fn,multi:!0,deps:[_]},{provide:dt,useClass:Bn,multi:!0,deps:[_]},hr,lr,ur,{provide:un,useExisting:hr},{provide:An,useClass:Gi},[]];var Vn=(()=>{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(_))};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var no=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:function(r){let i=null;return r?i=new(r||t):i=y(io),i},providedIn:"root"})}return t})(),io=(()=>{class t extends no{_doc;constructor(e){super(),this._doc=e}sanitize(e,r){if(r==null)return null;switch(e){case ee.NONE:return r;case ee.HTML:return de(r,"HTML")?le(r):an(this._doc,String(r)).toString();case ee.STYLE:return de(r,"Style")?le(r):r;case ee.SCRIPT:if(de(r,"Script"))return le(r);throw new R(5200,!1);case ee.URL:return de(r,"URL")?le(r):sn(String(r));case ee.RESOURCE_URL:if(de(r,"ResourceURL"))return le(r);throw new R(5201,!1);default:throw new R(5202,!1)}}bypassSecurityTrustHtml(e){return en(e)}bypassSecurityTrustStyle(e){return tn(e)}bypassSecurityTrustScript(e){return rn(e)}bypassSecurityTrustUrl(e){return nn(e)}bypassSecurityTrustResourceUrl(e){return on(e)}static \u0275fac=function(r){return new(r||t)(y(_))};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var p="primary",Ye=Symbol("RouteTitle"),mr=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 ie(t){return new mr(t)}function Xn(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 so(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?yr(t):void 0,r=n?yr(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],!Jn(t[i],n[i]))return!1;return!0}function yr(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Jn(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 ei(t){return t.length>0?t[t.length-1]:null}function W(t){return zr(t)?t:pn(t)?D(Promise.resolve(t)):h(t)}var ao={exact:ri,subset:ni},ti={exact:co,subset:uo,ignored:()=>!0};function qn(t,n,e){return ao[e.paths](t.root,n.root,e.matrixParams)&&ti[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function co(t,n){return $(t,n)}function ri(t,n,e){if(!re(t.segments,n.segments)||!gt(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!ri(t.children[r],n.children[r],e))return!1;return!0}function uo(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Jn(t[e],n[e]))}function ni(t,n,e){return ii(t,n,n.segments,e)}function ii(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!re(i,e)||n.hasChildren()||!gt(i,e,r))}else if(t.segments.length===e.length){if(!re(t.segments,e)||!gt(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!ni(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!re(t.segments,i)||!gt(t.segments,i,r)||!t.children[p]?!1:ii(t.children[p],n,o,r)}}function gt(t,n,e){return n.every((r,i)=>ti[e](t[i].parameters,r.parameters))}var H=class{root;queryParams;fragment;_queryParamMap;constructor(n=new g([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=ie(this.queryParams),this._queryParamMap}toString(){return fo.serialize(this)}},g=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 vt(this)}},Q=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=ie(this.parameters),this._parameterMap}toString(){return si(this)}};function lo(t,n){return re(t,n)&&t.every((e,r)=>$(e.parameters,n[r].parameters))}function re(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function ho(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 Qe=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=m({token:t,factory:()=>new oe,providedIn:"root"})}return t})(),oe=class{parse(n){let e=new Rr(n);return new H(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${Le(n.root,!0)}`,r=vo(n.queryParams),i=typeof n.fragment=="string"?`#${po(n.fragment)}`:"";return`${e}${r}${i}`}},fo=new oe;function vt(t){return t.segments.map(n=>si(n)).join("/")}function Le(t,n){if(!t.hasChildren())return vt(t);if(n){let e=t.children[p]?Le(t.children[p],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&r.push(`${i}:${Le(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=ho(t,(r,i)=>i===p?[Le(t.children[p],!1)]:[`${i}:${Le(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${vt(t)}/${e[0]}`:`${vt(t)}/(${e.join("//")})`}}function oi(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ft(t){return oi(t).replace(/%3B/gi,";")}function po(t){return encodeURI(t)}function Sr(t){return oi(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function mt(t){return decodeURIComponent(t)}function Gn(t){return mt(t.replace(/\+/g,"%20"))}function si(t){return`${Sr(t.path)}${go(t.parameters)}`}function go(t){return Object.entries(t).map(([n,e])=>`;${Sr(n)}=${Sr(e)}`).join("")}function vo(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${ft(e)}=${ft(i)}`).join("&"):`${ft(e)}=${ft(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var mo=/^[^\/()?;#]+/;function fr(t){let n=t.match(mo);return n?n[0]:""}var yo=/^[^\/()?;=#]+/;function So(t){let n=t.match(yo);return n?n[0]:""}var Ro=/^[^=?&#]+/;function wo(t){let n=t.match(Ro);return n?n[0]:""}var Co=/^[^&#]+/;function Eo(t){let n=t.match(Co);return n?n[0]:""}var Rr=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new g([],{}):new g([],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 g(n,e)),r}parseSegment(){let n=fr(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new R(4009,!1);return this.capture(n),new Q(mt(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=So(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=fr(this.remaining);i&&(r=i,this.capture(r))}n[mt(e)]=mt(r)}parseQueryParam(n){let e=wo(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=Eo(this.remaining);s&&(r=s,this.capture(r))}let i=Gn(e),o=Gn(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=fr(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=p);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[p]:new g([],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 ai(t){return t.segments.length>0?new g([],{[p]:t}):t}function ci(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=ci(i);if(r===p&&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 g(t.segments,n);return bo(e)}function bo(t){if(t.numberOfChildren===1&&t.children[p]){let n=t.children[p];return new g(t.segments.concat(n.segments),n.children)}return t}function K(t){return t instanceof H}function ui(t,n,e=null,r=null){let i=li(t);return di(i,n,e,r)}function li(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 g(o.url,s);return o===t&&(n=a),a}let r=e(t.root),i=ai(r);return n??i}function di(t,n,e,r){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return pr(i,i,i,e,r);let o=To(n);if(o.toRoot())return pr(i,i,new g([],{}),e,r);let s=Io(o,i,t),a=s.processChildren?je(s.segmentGroup,s.index,o.commands):fi(s.segmentGroup,s.index,o.commands);return pr(i,s.segmentGroup,a,e,r)}function yt(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function ze(t){return typeof t=="object"&&t!=null&&t.outlets}function pr(t,n,e,r,i){let o={};r&&Object.entries(r).forEach(([c,u])=>{o[c]=Array.isArray(u)?u.map(d=>`${d}`):`${u}`});let s;t===n?s=e:s=hi(t,n,e);let a=ai(ci(s));return new H(a,o,i)}function hi(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=hi(o,n,e)}),new g(t.segments,r)}var St=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&yt(r[0]))throw new R(4003,!1);let i=r.find(ze);if(i&&i!==ei(r))throw new R(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function To(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new St(!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 St(e,n,r)}var ge=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function Io(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=yt(t.commands[0])?0:1,i=e.segments.length-1+r;return Mo(e,i,t.numberOfDoubleDots)}function Mo(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 Ao(t){return ze(t[0])?t[0].outlets:{[p]:t}}function fi(t,n,e){if(t??=new g([],{}),t.segments.length===0&&t.hasChildren())return je(t,n,e);let r=Do(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new g(t.segments.slice(0,r.pathIndex),{});return o.children[p]=new g(t.segments.slice(r.pathIndex),t.children),je(o,0,i)}else return r.match&&i.length===0?new g(t.segments,{}):r.match&&!t.hasChildren()?wr(t,n,e):r.match?je(t,0,i):wr(t,n,e)}function je(t,n,e){if(e.length===0)return new g(t.segments,{});{let r=Ao(e),i={};if(Object.keys(r).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=je(t.children[p],n,e);return new g(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=fi(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new g(t.segments,i)}}function Do(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(!Zn(c,u,s))return o;r+=2}else{if(!Zn(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function wr(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=Oo(o.outlets);return new g(r,c)}if(i===0&&yt(e[0])){let c=t.segments[n];r.push(new Q(c.path,Wn(e[0]))),i++;continue}let s=ze(o)?o.outlets[p]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&yt(a)?(r.push(new Q(s,Wn(a))),i+=2):(r.push(new Q(s,{})),i++)}return new g(r,{})}function Oo(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=wr(new g([],{}),0,r))}),n}function Wn(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function Zn(t,n,e){return t==e.path&&$(n,e.parameters)}var ke="imperative",C=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}(C||{}),P=class{id;url;constructor(n,e){this.id=n,this.url=e}},se=class extends P{type=C.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}')`}},k=class extends P{urlAfterRedirects;type=C.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},I=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}(I||{}),He=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(He||{}),z=class extends P{reason;code;type=C.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 P{reason;code;type=C.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},me=class extends P{error;target;type=C.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 P{urlAfterRedirects;state;type=C.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})`}},Rt=class extends P{urlAfterRedirects;state;type=C.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})`}},wt=class extends P{urlAfterRedirects;state;shouldActivate;type=C.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})`}},Ct=class extends P{urlAfterRedirects;state;type=C.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})`}},Et=class extends P{urlAfterRedirects;state;type=C.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})`}},bt=class{route;type=C.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Tt=class{route;type=C.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},It=class{snapshot;type=C.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Mt=class{snapshot;type=C.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},At=class{snapshot;type=C.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Dt=class{snapshot;type=C.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 _o(t){return!(t instanceof Be)&&!(t instanceof ye)}function No(t,n){return t.providers&&!t._injector&&(t._injector=nr(t.providers,n,`Route: ${t.path}`)),t._injector??n}function j(t){return t.outlet||p}function Po(t,n){let e=t.filter(r=>j(r)===n);return e.push(...t.filter(r=>j(r)!==n)),e}function Ke(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 Ot=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Ke(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new we(this.rootInjector)}},we=(()=>{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 Ot(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(ue))};static \u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_t=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=Cr(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Cr(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=Er(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return Er(n,this._root).map(e=>e.value)}};function Cr(t,n){if(t===n.value)return n;for(let e of n.children){let r=Cr(t,e);if(r)return r}return null}function Er(t,n){if(t===n.value)return[n];for(let e of n.children){let r=Er(t,e);if(r.length)return r.unshift(n),r}return[]}var N=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 Ve=class extends _t{snapshot;constructor(n,e){super(n),this.snapshot=e,_r(this,n)}toString(){return this.snapshot.toString()}};function pi(t){let n=Uo(t),e=new U([new Q("",{})]),r=new U({}),i=new U({}),o=new U({}),s=new U(""),a=new G(e,r,o,s,i,p,t,n.root);return a.snapshot=n.root,new Ve(new N(a,[]),n)}function Uo(t){let n={},e={},r={},i="",o=new ne([],n,r,i,e,p,t,null,{});return new qe("",new N(o,[]))}var G=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(v(u=>u[Ye]))??h(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(v(n=>ie(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(v(n=>ie(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Nt(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:l(l({},n.params),t.params),data:l(l({},n.data),t.data),resolve:l(l(l(l({},t.data),n.data),i?.data),t._resolvedData)}:r={params:l({},t.params),data:l({},t.data),resolve:l(l({},t.data),t._resolvedData??{})},i&&vi(i)&&(r.resolve[Ye]=i.title),r}var ne=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Ye]}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??=ie(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ie(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}')`}},qe=class extends _t{url;constructor(n,e){super(e),this.url=n,_r(this,e)}toString(){return gi(this._root)}};function _r(t,n){n.value._routerState=t,n.children.forEach(e=>_r(t,e))}function gi(t){let n=t.children.length>0?` { ${t.children.map(gi).join(", ")} } `:"";return`${t.value}${n}`}function gr(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),so(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 br(t,n){let e=$(t.params,n.params)&&lo(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||br(t.parent,n.parent))}function vi(t){return typeof t.title=="string"||t.title===null}var mi=new b(""),Nr=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new te;deactivateEvents=new te;attachEvents=new te;detachEvents=new te;routerOutletData=Tn(void 0);parentContexts=f(we);location=f(ln);changeDetector=f(ot);inputBinder=f(xt,{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 Tr(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:[Ie]})}return t})(),Tr=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===G?this.route:n===we?this.childContexts:n===mi?this.outletData:this.parent.get(n,e)}},xt=new b("");var Pr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=hn({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&mn(0,"router-outlet")},dependencies:[Nr],encapsulation:2})}return t})();function Ur(t){let n=t.children&&t.children.map(Ur),e=n?A(l({},t),{children:n}):l({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=Pr),e}function Lo(t,n,e){let r=Ge(t,n._root,e?e._root:void 0);return new Ve(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=xo(t,n,e);return new N(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=jo(n.value),i=n.children.map(o=>Ge(t,o));return new N(r,i)}}function xo(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 jo(t){return new G(new U(t.url),new U(t.params),new U(t.queryParams),new U(t.fragment),new U(t.data),t.outlet,t.component,t)}var Se=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},yi="ngNavigationCancelingError";function Pt(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=K(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Si(!1,I.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Si(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[yi]=!0,e.cancellationCode=n,e}function ko(t){return Ri(t)&&K(t.url)}function Ri(t){return!!t&&t[yi]}var $o=(t,n,e,r)=>v(i=>(new Ir(n,i.targetRouterState,i.currentRouterState,e,r).activate(t),i)),Ir=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),gr(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 Dt(o.value.snapshot))}),n.children.length&&this.forwardEvent(new Mt(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(gr(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),gr(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)}},Ut=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},ve=class{component;route;constructor(n,e){this.component=n,this.route=e}};function zo(t,n,e){let r=t._root,i=n?n._root:null;return xe(r,i,e,[r.value])}function Ho(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Ce(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!Gr(t)?t:n.get(t):r}function xe(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=pe(n);return t.children.forEach(s=>{Fo(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 Fo(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=Bo(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new Ut(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 ve(a.outlet.component,s))}else s&&$e(n,a,i),i.canActivateChecks.push(new Ut(r)),o.component?xe(t,null,a?a.children:null,r,i):xe(t,null,e,r,i);return i}function Bo(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!re(t.url,n.url);case"pathParamsOrQueryParamsChange":return!re(t.url,n.url)||!$(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!br(t,n)||!$(t.queryParams,n.queryParams);case"paramsChange":default:return!br(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 ve(n.outlet.component,i)):e.canDeactivateChecks.push(new ve(null,i)):e.canDeactivateChecks.push(new ve(null,i))}function Xe(t){return typeof t=="function"}function Vo(t){return typeof t=="boolean"}function qo(t){return t&&Xe(t.canLoad)}function Go(t){return t&&Xe(t.canActivate)}function Wo(t){return t&&Xe(t.canActivateChild)}function Zo(t){return t&&Xe(t.canDeactivate)}function Yo(t){return t&&Xe(t.canMatch)}function wi(t){return t instanceof Hr||t?.name==="EmptyError"}var pt=Symbol("INITIAL_VALUE");function Re(){return L(t=>Vt(t.map(n=>n.pipe(ce(1),qr(pt)))).pipe(v(n=>{for(let e of n)if(e!==!0){if(e===pt)return pt;if(e===!1||Qo(e))return e}return!0}),Z(n=>n!==pt),ce(1)))}function Qo(t){return K(t)||t instanceof Se}function Ko(t,n){return O(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?h(A(l({},e),{guardsResult:!0})):Xo(s,r,i,t).pipe(O(a=>a&&Vo(a)?Jo(r,o,t,n):h(a)),v(a=>A(l({},e),{guardsResult:a})))})}function Xo(t,n,e,r){return D(t).pipe(O(i=>is(i.component,i.route,e,n,r)),Y(i=>i!==!0,!0))}function Jo(t,n,e,r){return D(n).pipe(ae(i=>Fr(ts(i.route.parent,r),es(i.route,r),ns(t,i.path,e),rs(t,i.route,e))),Y(i=>i!==!0,!0))}function es(t,n){return t!==null&&n&&n(new At(t)),h(!0)}function ts(t,n){return t!==null&&n&&n(new It(t)),h(!0)}function rs(t,n,e){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return h(!0);let i=r.map(o=>tt(()=>{let s=Ke(n)??e,a=Ce(o,s),c=Go(a)?a.canActivate(n,t):V(s,()=>a(n,t));return W(c).pipe(Y())}));return h(i).pipe(Re())}function ns(t,n,e){let r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>Ho(s)).filter(s=>s!==null).map(s=>tt(()=>{let a=s.guards.map(c=>{let u=Ke(s.node)??e,d=Ce(c,u),S=Wo(d)?d.canActivateChild(r,t):V(u,()=>d(r,t));return W(S).pipe(Y())});return h(a).pipe(Re())}));return h(o).pipe(Re())}function is(t,n,e,r,i){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return h(!0);let s=o.map(a=>{let c=Ke(n)??i,u=Ce(a,c),d=Zo(u)?u.canDeactivate(t,n,e,r):V(c,()=>u(t,n,e,r));return W(d).pipe(Y())});return h(s).pipe(Re())}function os(t,n,e,r){let i=n.canLoad;if(i===void 0||i.length===0)return h(!0);let o=i.map(s=>{let a=Ce(s,t),c=qo(a)?a.canLoad(n,e):V(t,()=>a(n,e));return W(c)});return h(o).pipe(Re(),Ci(r))}function Ci(t){return kr(E(n=>{if(typeof n!="boolean")throw Pt(t,n)}),v(n=>n===!0))}function ss(t,n,e,r){let i=n.canMatch;if(!i||i.length===0)return h(!0);let o=i.map(s=>{let a=Ce(s,t),c=Yo(a)?a.canMatch(n,e):V(t,()=>a(n,e));return W(c)});return h(o).pipe(Re(),Ci(r))}var We=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},Ze=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function fe(t){return Te(new We(t))}function as(t){return Te(new R(4e3,!1))}function cs(t){return Te(Si(!1,I.GuardRejected))}var Mr=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 h(r);if(i.numberOfChildren>1||!i.children[p])return as(`${n.redirectTo}`);i=i.children[p]}}applyRedirectCommands(n,e,r,i,o){return us(e,i,o).pipe(v(s=>{if(s instanceof H)throw new Ze(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),n,r);if(s[0]==="/")throw new Ze(a);return a}))}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 a=o.substring(1);r[i]=e[a]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=th