@mxtommy/kip
Version:
An advanced and versatile marine instrumentation package to display Signal K data.
1 lines • 105 kB
JavaScript
import{$a as Lr,$b as Jr,A as v,B as vt,C as A,D as fn,Da as pe,Dd as gi,E as Cr,Ea as E,Eb as Zr,Ed as mi,F as St,Fa as Ar,Fb as be,Fd as vi,G as wr,Ga as re,Gb as K,Gd as Si,Ha as yt,Hb as Qr,Ib as In,Id as yi,Ja as Dr,Jb as Kr,Jd as Ri,Ka as Or,Kb as _t,L as Y,La as Sn,Lb as bt,M as Z,Mb as En,N as he,Na as Rt,Nb as Xr,Oa as yn,Ob as _n,Pa as Nr,Pb as bn,Q as pn,Qa as Ct,Qb as Tn,R as ee,Rb as Tt,Sa as Pr,Ta as Rn,Ua as Ur,Va as Ge,Vc as oi,W as we,Wc as si,X as te,Xa as Cn,Y as gn,Ya as wn,Z as Ir,Za as Ie,_a as Ee,_c as Mt,a as d,ab as xr,ad as ai,b as O,ba as Er,bb as jr,ca as _r,cb as kr,db as $r,eb as Fr,ed as Mn,f as mr,fa as br,fb as zr,g as mt,ga as x,gb as N,gd as ci,ha as mn,hd as ui,i as vr,ia as w,ic as ei,id as Te,j as Sr,jb as Hr,k as dn,l as hn,la as y,lc as ti,ld as li,m as W,ma as Q,mb as Ye,mc as ni,md as Me,nd as di,o as L,oa as m,ob as Br,od as hi,pa as ne,pb as Vr,pd as fi,qa as Tr,qb as _e,qd as Ae,r as G,ra as C,rb as qr,rd as pi,re as Dn,s as M,sa as g,sb as Wr,sd as De,t as h,ta as l,tb as Gr,td as An,u as de,ua as vn,ub as Yr,v as yr,vb as wt,w as Rr,wa as Mr,wb as It,wc as ri,xa as fe,xb as ie,ya as j,yb as Et,yc as ii}from"./chunk-W2S6R4AZ.js";var Ne=new C(""),Ln=(()=>{class n{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(i=>{i.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,i,o){return this._findPluginFor(t).addEventListener(e,t,i,o)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(o=>o.supports(e)),!t)throw new y(5101,!1);return this._eventNameToPlugin.set(e,t),t}static \u0275fac=function(t){return new(t||n)(g(Ne),g(K))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),ge=class{_doc;constructor(r){this._doc=r}manager},On="ng-app-id";function Ci(n){for(let r of n)r.remove()}function wi(n,r){let e=r.createElement("style");return e.textContent=n,e}function zo(n,r,e,t){let i=n.head?.querySelectorAll(`style[${On}="${r}"],link[${On}="${r}"]`);if(i)for(let o of i)o.removeAttribute(On),o instanceof HTMLLinkElement?t.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function Pn(n,r){let e=r.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",n),e}var xn=(()=>{class n{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,t,i,o={}){this.doc=e,this.appId=t,this.nonce=i,zo(e,t,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,t){for(let i of e)this.addUsage(i,this.inline,wi);t?.forEach(i=>this.addUsage(i,this.external,Pn))}removeStyles(e,t){for(let i of e)this.removeUsage(i,this.inline);t?.forEach(i=>this.removeUsage(i,this.external))}addUsage(e,t,i){let o=t.get(e);o?o.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(e,this.doc)))})}removeUsage(e,t){let i=t.get(e);i&&(i.usage--,i.usage<=0&&(Ci(i.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Ci(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[t,{elements:i}]of this.inline)i.push(this.addElement(e,wi(t,this.doc)));for(let[t,{elements:i}]of this.external)i.push(this.addElement(e,Pn(t,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,t){return this.nonce&&t.setAttribute("nonce",this.nonce),e.appendChild(t)}static \u0275fac=function(t){return new(t||n)(g(E),g(Rn),g(Cn,8),g(Ge))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),Nn={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"},jn=/%COMP%/g;var Ei="%COMP%",Ho=`_nghost-${Ei}`,Bo=`_ngcontent-${Ei}`,Vo=!0,qo=new C("",{providedIn:"root",factory:()=>Vo});function Wo(n){return Bo.replace(jn,n)}function Go(n){return Ho.replace(jn,n)}function _i(n,r){return r.map(e=>e.replace(jn,n))}var kn=(()=>{class n{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,t,i,o,s,a,c,u=null,f=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.tracingService=f,this.platformIsServer=!1,this.defaultRenderer=new Ze(e,s,c,this.platformIsServer,this.tracingService)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;let i=this.getOrCreateRenderer(e,t);return i instanceof At?i.applyToHost(e):i instanceof Qe&&i.applyStyles(),i}getOrCreateRenderer(e,t){let i=this.rendererByCompId,o=i.get(t.id);if(!o){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,R=this.platformIsServer,I=this.tracingService;switch(t.encapsulation){case wn.Emulated:o=new At(c,u,t,this.appId,f,s,a,R,I);break;case wn.ShadowDom:return new Un(c,u,e,t,s,a,this.nonce,R,I);default:o=new Qe(c,u,t,f,s,a,R,I);break}i.set(t.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(t){return new(t||n)(g(Ln),g(xn),g(Rn),g(qo),g(E),g(Ge),g(K),g(Cn),g(Zr,8))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),Ze=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(r,e,t,i,o){this.eventManager=r,this.doc=e,this.ngZone=t,this.platformIsServer=i,this.tracingService=o}destroy(){}destroyNode=null;createElement(r,e){return e?this.doc.createElementNS(Nn[e]||e,r):this.doc.createElement(r)}createComment(r){return this.doc.createComment(r)}createText(r){return this.doc.createTextNode(r)}appendChild(r,e){(Ii(r)?r.content:r).appendChild(e)}insertBefore(r,e,t){r&&(Ii(r)?r.content:r).insertBefore(e,t)}removeChild(r,e){e.remove()}selectRootElement(r,e){let t=typeof r=="string"?this.doc.querySelector(r):r;if(!t)throw new y(-5104,!1);return e||(t.textContent=""),t}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,t,i){if(i){e=i+":"+e;let o=Nn[i];o?r.setAttributeNS(o,e,t):r.setAttribute(e,t)}else r.setAttribute(e,t)}removeAttribute(r,e,t){if(t){let i=Nn[t];i?r.removeAttributeNS(i,e):r.removeAttribute(`${t}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,t,i){i&(Ye.DashCase|Ye.Important)?r.style.setProperty(e,t,i&Ye.Important?"important":""):r.style[e]=t}removeStyle(r,e,t){t&Ye.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,t){r!=null&&(r[e]=t)}setValue(r,e){r.nodeValue=e}listen(r,e,t,i){if(typeof r=="string"&&(r=Me().getGlobalEventTarget(this.doc,r),!r))throw new y(5102,!1);let o=this.decoratePreventDefault(t);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(r,e,o)),this.eventManager.addEventListener(r,e,o,i)}decoratePreventDefault(r){return e=>{if(e==="__ngUnwrap__")return r;r(e)===!1&&e.preventDefault()}}};function Ii(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var Un=class extends Ze{sharedStylesHost;hostEl;shadowRoot;constructor(r,e,t,i,o,s,a,c,u){super(r,o,s,c,u),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let f=i.styles;f=_i(i.id,f);for(let I of f){let b=document.createElement("style");a&&b.setAttribute("nonce",a),b.textContent=I,this.shadowRoot.appendChild(b)}let R=i.getExternalStyles?.();if(R)for(let I of R){let b=Pn(I,o);a&&b.setAttribute("nonce",a),this.shadowRoot.appendChild(b)}}nodeOrShadowRoot(r){return r===this.hostEl?this.shadowRoot:r}appendChild(r,e){return super.appendChild(this.nodeOrShadowRoot(r),e)}insertBefore(r,e,t){return super.insertBefore(this.nodeOrShadowRoot(r),e,t)}removeChild(r,e){return super.removeChild(null,e)}parentNode(r){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(r)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Qe=class extends Ze{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(r,e,t,i,o,s,a,c,u){super(r,o,s,a,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i;let f=t.styles;this.styles=u?_i(u,f):f,this.styleUrls=t.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},At=class extends Qe{contentAttr;hostAttr;constructor(r,e,t,i,o,s,a,c,u){let f=i+"-"+t.id;super(r,e,t,o,s,a,c,u,f),this.contentAttr=Wo(f),this.hostAttr=Go(f)}applyToHost(r){this.applyStyles(),this.setAttribute(r,this.hostAttr,"")}createElement(r,e){let t=super.createElement(r,e);return super.setAttribute(t,this.contentAttr,""),t}};var Dt=class n extends hi{supportsDOMEvents=!0;static makeCurrent(){di(new n)}onAndCancel(r,e,t,i){return r.addEventListener(e,t,i),()=>{r.removeEventListener(e,t,i)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.remove()}createElement(r,e){return e=e||this.getDefaultDocument(),e.createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return e==="window"?window:e==="document"?r:e==="body"?r.body:null}getBaseHref(r){let e=Yo();return e==null?null:Zo(e)}resetBaseElement(){Ke=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return mi(document.cookie,r)}},Ke=null;function Yo(){return Ke=Ke||document.head.querySelector("base"),Ke?Ke.getAttribute("href"):null}function Zo(n){return new URL(n,document.baseURI).pathname}var Ot=class{addToWindow(r){Q.getAngularTestability=(t,i=!0)=>{let o=r.findTestabilityInTree(t,i);if(o==null)throw new y(5103,!1);return o},Q.getAllAngularTestabilities=()=>r.getAllTestabilities(),Q.getAllAngularRootElements=()=>r.getAllRootElements();let e=t=>{let i=Q.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&t()};i.forEach(a=>{a.whenStable(s)})};Q.frameworkStabilizers||(Q.frameworkStabilizers=[]),Q.frameworkStabilizers.push(e)}findTestabilityInTree(r,e,t){if(e==null)return null;let i=r.getTestability(e);return i??(t?Me().isShadowRoot(e)?this.findTestabilityInTree(r,e.host,!0):this.findTestabilityInTree(r,e.parentElement,!0):null)}},Qo=(()=>{class n{build(){return new XMLHttpRequest}static \u0275fac=function(t){return new(t||n)};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),Ti=(()=>{class n extends ge{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,i,o){return e.addEventListener(t,i,o),()=>this.removeEventListener(e,t,i,o)}removeEventListener(e,t,i,o){return e.removeEventListener(t,i,o)}static \u0275fac=function(t){return new(t||n)(g(E))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),bi=["alt","control","meta","shift"],Ko={"\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"},Xo={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},Mi=(()=>{class n extends ge{constructor(e){super(e)}supports(e){return n.parseEventName(e)!=null}addEventListener(e,t,i,o){let s=n.parseEventName(t),a=n.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Me().onAndCancel(e,s.domEventName,a,o))}static parseEventName(e){let t=e.toLowerCase().split("."),i=t.shift();if(t.length===0||!(i==="keydown"||i==="keyup"))return null;let o=n._normalizeKey(t.pop()),s="",a=t.indexOf("code");if(a>-1&&(t.splice(a,1),s="code."),bi.forEach(u=>{let f=t.indexOf(u);f>-1&&(t.splice(f,1),s+=u+".")}),s+=o,t.length!=0||o.length===0)return null;let c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(e,t){let i=Ko[e.key]||e.key,o="";return t.indexOf("code.")>-1&&(i=e.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),bi.forEach(s=>{if(s!==i){let a=Xo[s];a(e)&&(o+=s+".")}}),o+=i,o===t)}static eventCallback(e,t,i){return o=>{n.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>t(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(t){return new(t||n)(g(E))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})();function Jo(n,r){let e=d({rootComponent:n},es(r));return ui(e)}function es(n){return{appProviders:[...Ai,...n?.providers??[]],platformProviders:is}}function ts(){Dt.makeCurrent()}function ns(){return new re}function rs(){return Pr(document),document}var is=[{provide:Ge,useValue:Si},{provide:Ur,useValue:ts,multi:!0},{provide:E,useFactory:rs}];var os=[{provide:_t,useClass:Ot},{provide:Kr,useClass:bt,deps:[K,En,_t]},{provide:bt,useClass:bt,deps:[K,En,_t]}],Ai=[{provide:Mr,useValue:"root"},{provide:re,useFactory:ns},{provide:Ne,useClass:Ti,multi:!0,deps:[E]},{provide:Ne,useClass:Mi,multi:!0,deps:[E]},kn,xn,Ln,{provide:Br,useExisting:kn},{provide:vi,useClass:Qo},[]],ss=(()=>{class n{constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275mod=ie({type:n});static \u0275inj=ne({providers:[...Ai,...os],imports:[gi,ci]})}return n})();var Di=(()=>{class n{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(t){return new(t||n)(g(E))};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var cs={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},$n=new C(""),Oi=new C(""),us=(()=>{class n{events=[];overrides={};options;buildHammer(e){let t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(let i in this.overrides)t.get(i).set(this.overrides[i]);return t}static \u0275fac=function(t){return new(t||n)};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),ls=(()=>{class n extends ge{_config;_injector;loader;_loaderPromise=null;constructor(e,t,i,o){super(e),this._config=t,this._injector=i,this.loader=o}supports(e){return!(!cs.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader)}addEventListener(e,t,i){let o=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||o.runOutsideAngular(()=>this.loader());let s=!1,a=()=>{s=!0};return o.runOutsideAngular(()=>this._loaderPromise.then(()=>{if(!window.Hammer){a=()=>{};return}s||(a=this.addEventListener(e,t,i))}).catch(()=>{a=()=>{}})),()=>{a()}}return o.runOutsideAngular(()=>{let s=this._config.buildHammer(e),a=function(c){o.runGuarded(function(){i(c)})};return s.on(t,a),()=>{s.off(t,a),typeof s.destroy=="function"&&s.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}static \u0275fac=function(t){return new(t||n)(g(E),g($n),g(pe),g(Oi,8))};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),zc=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=ie({type:n});static \u0275inj=ne({providers:[{provide:Ne,useClass:ls,multi:!0,deps:[E,$n,pe,[new Sn,Oi]]},{provide:$n,useClass:us}]})}return n})(),Fn=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275prov=m({token:n,factory:function(t){let i=null;return t?i=new(t||n):i=g(ds),i},providedIn:"root"})}return n})(),ds=(()=>{class n extends Fn{_doc;constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case N.NONE:return t;case N.HTML:return Ee(t,"HTML")?Ie(t):zr(this._doc,String(t)).toString();case N.STYLE:return Ee(t,"Style")?Ie(t):t;case N.SCRIPT:if(Ee(t,"Script"))return Ie(t);throw new y(5200,!1);case N.URL:return Ee(t,"URL")?Ie(t):Fr(String(t));case N.RESOURCE_URL:if(Ee(t,"ResourceURL"))return Ie(t);throw new y(5201,!1);default:throw new y(5202,!1)}}bypassSecurityTrustHtml(e){return Lr(e)}bypassSecurityTrustStyle(e){return xr(e)}bypassSecurityTrustScript(e){return jr(e)}bypassSecurityTrustUrl(e){return kr(e)}bypassSecurityTrustResourceUrl(e){return $r(e)}static \u0275fac=function(t){return new(t||n)(g(E))};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var p="primary",lt=Symbol("RouteTitle"),qn=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Se(n){return new qn(n)}function Fi(n,r,e){let t=e.path.split("/");if(t.length>n.length||e.pathMatch==="full"&&(r.hasChildren()||t.length<n.length))return null;let i={};for(let o=0;o<t.length;o++){let s=t[o],a=n[o];if(s[0]===":")i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:n.slice(0,t.length),posParams:i}}function hs(n,r){if(n.length!==r.length)return!1;for(let e=0;e<n.length;++e)if(!F(n[e],r[e]))return!1;return!0}function F(n,r){let e=n?Wn(n):void 0,t=r?Wn(r):void 0;if(!e||!t||e.length!=t.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!zi(n[i],r[i]))return!1;return!0}function Wn(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}function zi(n,r){if(Array.isArray(n)&&Array.isArray(r)){if(n.length!==r.length)return!1;let e=[...n].sort(),t=[...r].sort();return e.every((i,o)=>t[o]===i)}else return n===r}function Hi(n){return n.length>0?n[n.length-1]:null}function X(n){return yr(n)?n:Xr(n)?M(Promise.resolve(n)):h(n)}var fs={exact:Vi,subset:qi},Bi={exact:ps,subset:gs,ignored:()=>!0};function Pi(n,r,e){return fs[e.paths](n.root,r.root,e.matrixParams)&&Bi[e.queryParams](n.queryParams,r.queryParams)&&!(e.fragment==="exact"&&n.fragment!==r.fragment)}function ps(n,r){return F(n,r)}function Vi(n,r,e){if(!me(n.segments,r.segments)||!Ut(n.segments,r.segments,e)||n.numberOfChildren!==r.numberOfChildren)return!1;for(let t in r.children)if(!n.children[t]||!Vi(n.children[t],r.children[t],e))return!1;return!0}function gs(n,r){return Object.keys(r).length<=Object.keys(n).length&&Object.keys(r).every(e=>zi(n[e],r[e]))}function qi(n,r,e){return Wi(n,r,r.segments,e)}function Wi(n,r,e,t){if(n.segments.length>e.length){let i=n.segments.slice(0,e.length);return!(!me(i,e)||r.hasChildren()||!Ut(i,e,t))}else if(n.segments.length===e.length){if(!me(n.segments,e)||!Ut(n.segments,e,t))return!1;for(let i in r.children)if(!n.children[i]||!qi(n.children[i],r.children[i],t))return!1;return!0}else{let i=e.slice(0,n.segments.length),o=e.slice(n.segments.length);return!me(n.segments,i)||!Ut(n.segments,i,t)||!n.children[p]?!1:Wi(n.children[p],r,o,t)}}function Ut(n,r,e){return r.every((t,i)=>Bi[e](n[i].parameters,t.parameters))}var H=class{root;queryParams;fragment;_queryParamMap;constructor(r=new S([],{}),e={},t=null){this.root=r,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap??=Se(this.queryParams),this._queryParamMap}toString(){return Ss.serialize(this)}},S=class{segments;children;parent=null;constructor(r,e){this.segments=r,this.children=e,Object.values(e).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Lt(this)}},oe=class{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=Se(this.parameters),this._parameterMap}toString(){return Yi(this)}};function ms(n,r){return me(n,r)&&n.every((e,t)=>F(e.parameters,r[t].parameters))}function me(n,r){return n.length!==r.length?!1:n.every((e,t)=>e.path===r[t].path)}function vs(n,r){let e=[];return Object.entries(n.children).forEach(([t,i])=>{t===p&&(e=e.concat(r(i,t)))}),Object.entries(n.children).forEach(([t,i])=>{t!==p&&(e=e.concat(r(i,t)))}),e}var ye=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275prov=m({token:n,factory:()=>new se,providedIn:"root"})}return n})(),se=class{parse(r){let e=new Yn(r);return new H(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${Xe(r.root,!0)}`,t=Cs(r.queryParams),i=typeof r.fragment=="string"?`#${ys(r.fragment)}`:"";return`${e}${t}${i}`}},Ss=new se;function Lt(n){return n.segments.map(r=>Yi(r)).join("/")}function Xe(n,r){if(!n.hasChildren())return Lt(n);if(r){let e=n.children[p]?Xe(n.children[p],!1):"",t=[];return Object.entries(n.children).forEach(([i,o])=>{i!==p&&t.push(`${i}:${Xe(o,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}else{let e=vs(n,(t,i)=>i===p?[Xe(n.children[p],!1)]:[`${i}:${Xe(t,!1)}`]);return Object.keys(n.children).length===1&&n.children[p]!=null?`${Lt(n)}/${e[0]}`:`${Lt(n)}/(${e.join("//")})`}}function Gi(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Nt(n){return Gi(n).replace(/%3B/gi,";")}function ys(n){return encodeURI(n)}function Gn(n){return Gi(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function xt(n){return decodeURIComponent(n)}function Ui(n){return xt(n.replace(/\+/g,"%20"))}function Yi(n){return`${Gn(n.path)}${Rs(n.parameters)}`}function Rs(n){return Object.entries(n).map(([r,e])=>`;${Gn(r)}=${Gn(e)}`).join("")}function Cs(n){let r=Object.entries(n).map(([e,t])=>Array.isArray(t)?t.map(i=>`${Nt(e)}=${Nt(i)}`).join("&"):`${Nt(e)}=${Nt(t)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}var ws=/^[^\/()?;#]+/;function zn(n){let r=n.match(ws);return r?r[0]:""}var Is=/^[^\/()?;=#]+/;function Es(n){let r=n.match(Is);return r?r[0]:""}var _s=/^[^=?&#]+/;function bs(n){let r=n.match(_s);return r?r[0]:""}var Ts=/^[^&#]+/;function Ms(n){let r=n.match(Ts);return r?r[0]:""}var Yn=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new S([],{}):new S([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(t[p]=new S(r,e)),t}parseSegment(){let r=zn(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new y(4009,!1);return this.capture(r),new oe(xt(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=Es(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let i=zn(this.remaining);i&&(t=i,this.capture(t))}r[xt(e)]=xt(t)}parseQueryParam(r){let e=bs(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let s=Ms(this.remaining);s&&(t=s,this.capture(t))}let i=Ui(e),o=Ui(t);if(r.hasOwnProperty(i)){let s=r[i];Array.isArray(s)||(s=[s],r[i]=s),s.push(o)}else r[i]=o}parseParens(r){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=zn(this.remaining),i=this.remaining[t.length];if(i!=="/"&&i!==")"&&i!==";")throw new y(4010,!1);let o;t.indexOf(":")>-1?(o=t.slice(0,t.indexOf(":")),this.capture(o),this.capture(":")):r&&(o=p);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[p]:new S([],s),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new y(4011,!1)}};function Zi(n){return n.segments.length>0?new S([],{[p]:n}):n}function Qi(n){let r={};for(let[t,i]of Object.entries(n.children)){let o=Qi(i);if(t===p&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))r[s]=a;else(o.segments.length>0||o.hasChildren())&&(r[t]=o)}let e=new S(n.segments,r);return As(e)}function As(n){if(n.numberOfChildren===1&&n.children[p]){let r=n.children[p];return new S(n.segments.concat(r.segments),r.children)}return n}function ae(n){return n instanceof H}function Ki(n,r,e=null,t=null){let i=Xi(n);return Ji(i,r,e,t)}function Xi(n){let r;function e(o){let s={};for(let c of o.children){let u=e(c);s[c.outlet]=u}let a=new S(o.url,s);return o===n&&(r=a),a}let t=e(n.root),i=Zi(t);return r??i}function Ji(n,r,e,t){let i=n;for(;i.parent;)i=i.parent;if(r.length===0)return Hn(i,i,i,e,t);let o=Ds(r);if(o.toRoot())return Hn(i,i,new S([],{}),e,t);let s=Os(o,i,n),a=s.processChildren?et(s.segmentGroup,s.index,o.commands):to(s.segmentGroup,s.index,o.commands);return Hn(i,s.segmentGroup,a,e,t)}function jt(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function nt(n){return typeof n=="object"&&n!=null&&n.outlets}function Hn(n,r,e,t,i){let o={};t&&Object.entries(t).forEach(([c,u])=>{o[c]=Array.isArray(u)?u.map(f=>`${f}`):`${u}`});let s;n===r?s=e:s=eo(n,r,e);let a=Zi(Qi(s));return new H(a,o,i)}function eo(n,r,e){let t={};return Object.entries(n.children).forEach(([i,o])=>{o===r?t[i]=e:t[i]=eo(o,r,e)}),new S(n.segments,t)}var kt=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,t){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=t,r&&t.length>0&&jt(t[0]))throw new y(4003,!1);let i=t.find(nt);if(i&&i!==Hi(t))throw new y(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Ds(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new kt(!0,0,n);let r=0,e=!1,t=n.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===".."?r++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new kt(e,r,t)}var Le=class{segmentGroup;processChildren;index;constructor(r,e,t){this.segmentGroup=r,this.processChildren=e,this.index=t}};function Os(n,r,e){if(n.isAbsolute)return new Le(r,!0,0);if(!e)return new Le(r,!1,NaN);if(e.parent===null)return new Le(e,!0,0);let t=jt(n.commands[0])?0:1,i=e.segments.length-1+t;return Ns(e,i,n.numberOfDoubleDots)}function Ns(n,r,e){let t=n,i=r,o=e;for(;o>i;){if(o-=i,t=t.parent,!t)throw new y(4005,!1);i=t.segments.length}return new Le(t,!1,i-o)}function Ps(n){return nt(n[0])?n[0].outlets:{[p]:n}}function to(n,r,e){if(n??=new S([],{}),n.segments.length===0&&n.hasChildren())return et(n,r,e);let t=Us(n,r,e),i=e.slice(t.commandIndex);if(t.match&&t.pathIndex<n.segments.length){let o=new S(n.segments.slice(0,t.pathIndex),{});return o.children[p]=new S(n.segments.slice(t.pathIndex),n.children),et(o,0,i)}else return t.match&&i.length===0?new S(n.segments,{}):t.match&&!n.hasChildren()?Zn(n,r,e):t.match?et(n,0,i):Zn(n,r,e)}function et(n,r,e){if(e.length===0)return new S(n.segments,{});{let t=Ps(e),i={};if(Object.keys(t).some(o=>o!==p)&&n.children[p]&&n.numberOfChildren===1&&n.children[p].segments.length===0){let o=et(n.children[p],r,e);return new S(n.segments,o.children)}return Object.entries(t).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=to(n.children[o],r,s))}),Object.entries(n.children).forEach(([o,s])=>{t[o]===void 0&&(i[o]=s)}),new S(n.segments,i)}}function Us(n,r,e){let t=0,i=r,o={match:!1,pathIndex:0,commandIndex:0};for(;i<n.segments.length;){if(t>=e.length)return o;let s=n.segments[i],a=e[t];if(nt(a))break;let c=`${a}`,u=t<e.length-1?e[t+1]:null;if(i>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!xi(c,u,s))return o;t+=2}else{if(!xi(c,{},s))return o;t++}i++}return{match:!0,pathIndex:i,commandIndex:t}}function Zn(n,r,e){let t=n.segments.slice(0,r),i=0;for(;i<e.length;){let o=e[i];if(nt(o)){let c=Ls(o.outlets);return new S(t,c)}if(i===0&&jt(e[0])){let c=n.segments[r];t.push(new oe(c.path,Li(e[0]))),i++;continue}let s=nt(o)?o.outlets[p]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&jt(a)?(t.push(new oe(s,Li(a))),i+=2):(t.push(new oe(s,{})),i++)}return new S(t,{})}function Ls(n){let r={};return Object.entries(n).forEach(([e,t])=>{typeof t=="string"&&(t=[t]),t!==null&&(r[e]=Zn(new S([],{}),0,t))}),r}function Li(n){let r={};return Object.entries(n).forEach(([e,t])=>r[e]=`${t}`),r}function xi(n,r,e){return n==e.path&&F(r,e.parameters)}var xe="imperative",_=function(n){return n[n.NavigationStart=0]="NavigationStart",n[n.NavigationEnd=1]="NavigationEnd",n[n.NavigationCancel=2]="NavigationCancel",n[n.NavigationError=3]="NavigationError",n[n.RoutesRecognized=4]="RoutesRecognized",n[n.ResolveStart=5]="ResolveStart",n[n.ResolveEnd=6]="ResolveEnd",n[n.GuardsCheckStart=7]="GuardsCheckStart",n[n.GuardsCheckEnd=8]="GuardsCheckEnd",n[n.RouteConfigLoadStart=9]="RouteConfigLoadStart",n[n.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",n[n.ChildActivationStart=11]="ChildActivationStart",n[n.ChildActivationEnd=12]="ChildActivationEnd",n[n.ActivationStart=13]="ActivationStart",n[n.ActivationEnd=14]="ActivationEnd",n[n.Scroll=15]="Scroll",n[n.NavigationSkipped=16]="NavigationSkipped",n}(_||{}),U=class{id;url;constructor(r,e){this.id=r,this.url=e}},ce=class extends U{type=_.NavigationStart;navigationTrigger;restoredState;constructor(r,e,t="imperative",i=null){super(r,e),this.navigationTrigger=t,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},k=class extends U{urlAfterRedirects;type=_.NavigationEnd;constructor(r,e,t){super(r,e),this.urlAfterRedirects=t}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},T=function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n[n.Aborted=4]="Aborted",n}(T||{}),ke=function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n}(ke||{}),z=class extends U{reason;code;type=_.NavigationCancel;constructor(r,e,t,i){super(r,e),this.reason=t,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},B=class extends U{reason;code;type=_.NavigationSkipped;constructor(r,e,t,i){super(r,e),this.reason=t,this.code=i}},$e=class extends U{error;target;type=_.NavigationError;constructor(r,e,t,i){super(r,e),this.error=t,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},rt=class extends U{urlAfterRedirects;state;type=_.RoutesRecognized;constructor(r,e,t,i){super(r,e),this.urlAfterRedirects=t,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},$t=class extends U{urlAfterRedirects;state;type=_.GuardsCheckStart;constructor(r,e,t,i){super(r,e),this.urlAfterRedirects=t,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ft=class extends U{urlAfterRedirects;state;shouldActivate;type=_.GuardsCheckEnd;constructor(r,e,t,i,o){super(r,e),this.urlAfterRedirects=t,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},zt=class extends U{urlAfterRedirects;state;type=_.ResolveStart;constructor(r,e,t,i){super(r,e),this.urlAfterRedirects=t,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ht=class extends U{urlAfterRedirects;state;type=_.ResolveEnd;constructor(r,e,t,i){super(r,e),this.urlAfterRedirects=t,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Bt=class{route;type=_.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Vt=class{route;type=_.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},qt=class{snapshot;type=_.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Wt=class{snapshot;type=_.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Gt=class{snapshot;type=_.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Yt=class{snapshot;type=_.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Fe=class{routerEvent;position;anchor;type=_.Scroll;constructor(r,e,t){this.routerEvent=r,this.position=e,this.anchor=t}toString(){let r=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${r}')`}},it=class{},ze=class{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function xs(n){return!(n instanceof it)&&!(n instanceof ze)}function js(n,r){return n.providers&&!n._injector&&(n._injector=wt(n.providers,r,`Route: ${n.path}`)),n._injector??r}function $(n){return n.outlet||p}function ks(n,r){let e=n.filter(t=>$(t)===r);return e.push(...n.filter(t=>$(t)!==r)),e}function Ve(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let r=n.parent;r;r=r.parent){let e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Zt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Ve(this.route?.snapshot)??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new Re(this.rootInjector)}},Re=(()=>{class n{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,t){let i=this.getOrCreateContext(e);i.outlet=t,this.contexts.set(e,i)}onChildOutletDestroyed(e){let t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Zt(this.rootInjector),this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(t){return new(t||n)(g(fe))};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Qt=class{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){let e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){let e=Qn(r,this._root);return e?e.children.map(t=>t.value):[]}firstChild(r){let e=Qn(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=Kn(r,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return Kn(r,this._root).map(e=>e.value)}};function Qn(n,r){if(n===r.value)return r;for(let e of r.children){let t=Qn(n,e);if(t)return t}return null}function Kn(n,r){if(n===r.value)return[r];for(let e of r.children){let t=Kn(n,e);if(t.length)return t.unshift(r),t}return[]}var P=class{value;children;constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function Ue(n){let r={};return n&&n.children.forEach(e=>r[e.value.outlet]=e),r}var ot=class extends Qt{snapshot;constructor(r,e){super(r),this.snapshot=e,or(this,r)}toString(){return this.snapshot.toString()}};function no(n){let r=$s(n),e=new L([new oe("",{})]),t=new L({}),i=new L({}),o=new L({}),s=new L(""),a=new V(e,t,o,s,i,p,n,r.root);return a.snapshot=r.root,new ot(new P(a,[]),r)}function $s(n){let r={},e={},t={},i="",o=new ve([],r,t,i,e,p,n,null,{});return new st("",new P(o,[]))}var V=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,e,t,i,o,s,a,c){this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=t,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(v(u=>u[lt]))??h(void 0),this.url=r,this.params=e,this.queryParams=t,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(r=>Se(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(v(r=>Se(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Kt(n,r,e="emptyOnly"){let t,{routeConfig:i}=n;return r!==null&&(e==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?t={params:d(d({},r.params),n.params),data:d(d({},r.data),n.data),resolve:d(d(d(d({},n.data),r.data),i?.data),n._resolvedData)}:t={params:d({},n.params),data:d({},n.data),resolve:d(d({},n.data),n._resolvedData??{})},i&&io(i)&&(t.resolve[lt]=i.title),t}var ve=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[lt]}constructor(r,e,t,i,o,s,a,c,u){this.url=r,this.params=e,this.queryParams=t,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??=Se(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Se(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(t=>t.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${e}')`}},st=class extends Qt{url;constructor(r,e){super(e),this.url=r,or(this,e)}toString(){return ro(this._root)}};function or(n,r){r.value._routerState=n,r.children.forEach(e=>or(n,e))}function ro(n){let r=n.children.length>0?` { ${n.children.map(ro).join(", ")} } `:"";return`${n.value}${r}`}function Bn(n){if(n.snapshot){let r=n.snapshot,e=n._futureSnapshot;n.snapshot=e,F(r.queryParams,e.queryParams)||n.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&n.fragmentSubject.next(e.fragment),F(r.params,e.params)||n.paramsSubject.next(e.params),hs(r.url,e.url)||n.urlSubject.next(e.url),F(r.data,e.data)||n.dataSubject.next(e.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function Xn(n,r){let e=F(n.params,r.params)&&ms(n.url,r.url),t=!n.parent!=!r.parent;return e&&!t&&(!n.parent||Xn(n.parent,r.parent))}function io(n){return typeof n.title=="string"||n.title===null}var oo=new C(""),sr=(()=>{class n{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new be;deactivateEvents=new be;attachEvents=new be;detachEvents=new be;routerOutletData=ai(void 0);parentContexts=l(Re);location=l(Wr);changeDetector=l(Mn);inputBinder=l(dt,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:t,previousValue:i}=e.name;if(t)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 y(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new y(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new y(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,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,t){if(this.isActivated)throw new y(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Jn(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:c,environmentInjector:t}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(t){return new(t||n)};static \u0275dir=Et({type:n,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Rt]})}return n})(),Jn=class{route;childContexts;parent;outletData;constructor(r,e,t,i){this.route=r,this.childContexts=e,this.parent=t,this.outletData=i}get(r,e){return r===V?this.route:r===Re?this.childContexts:r===oo?this.outletData:this.parent.get(r,e)}},dt=new C(""),ar=(()=>{class n{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:t}=e,i=vt([t.queryParams,t.params,t.data]).pipe(x(([o,s,a],c)=>(a=d(d(d({},o),s),a),c===0?h(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==t||t.component===null){this.unsubscribeFromRouteData(e);return}let s=li(t.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=m({token:n,factory:n.\u0275fac})}return n})(),cr=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=It({type:n,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(t,i){t&1&&Jr(0,"router-outlet")},dependencies:[sr],encapsulation:2})}return n})();function ur(n){let r=n.children&&n.children.map(ur),e=r?O(d({},n),{children:r}):d({},n);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=cr),e}function Fs(n,r,e){let t=at(n,r._root,e?e._root:void 0);return new ot(t,r)}function at(n,r,e){if(e&&n.shouldReuseRoute(r.value,e.value.snapshot)){let t=e.value;t._futureSnapshot=r.value;let i=zs(n,r,e);return new P(t,i)}else{if(n.shouldAttach(r.value)){let o=n.retrieve(r.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(a=>at(n,a)),s}}let t=Hs(r.value),i=r.children.map(o=>at(n,o));return new P(t,i)}}function zs(n,r,e){return r.children.map(t=>{for(let i of e.children)if(n.shouldReuseRoute(t.value,i.value.snapshot))return at(n,t,i);return at(n,t)})}function Hs(n){return new V(new L(n.url),new L(n.params),new L(n.queryParams),new L(n.fragment),new L(n.data),n.outlet,n.component,n)}var He=class{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},so="ngNavigationCancelingError";function Xt(n,r){let{redirectTo:e,navigationBehaviorOptions:t}=ae(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=ao(!1,T.Redirect);return i.url=e,i.navigationBehaviorOptions=t,i}function ao(n,r){let e=new Error(`NavigationCancelingError: ${n||""}`);return e[so]=!0,e.cancellationCode=r,e}function Bs(n){return co(n)&&ae(n.url)}function co(n){return!!n&&n[so]}var Vs=(n,r,e,t)=>v(i=>(new er(r,i.targetRouterState,i.currentRouterState,e,t).activate(n),i)),er=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,e,t,i,o){this.routeReuseStrategy=r,this.futureState=e,this.currState=t,this.forwardEvent=i,this.inputBindingEnabled=o}activate(r){let e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,r),Bn(this.futureState.root),this.activateChildRoutes(e,t,r)}deactivateChildRoutes(r,e,t){let i=Ue(e);r.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],t),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,t)})}deactivateRoutes(r,e,t){let i=r.value,o=e?e.value:null;if(i===o)if(i.component){let s=t.getContext(i.outlet);s&&this.deactivateChildRoutes(r,e,s.children)}else this.deactivateChildRoutes(r,e,t);else o&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){let t=e.getContext(r.value.outlet),i=t&&r.value.component?t.children:e,o=Ue(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(t&&t.outlet){let s=t.outlet.detach(),a=t.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:s,route:r,contexts:a})}}deactivateRouteAndOutlet(r,e){let t=e.getContext(r.value.outlet),i=t&&r.value.component?t.children:e,o=Ue(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(r,e,t){let i=Ue(e);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],t),this.forwardEvent(new Yt(o.value.snapshot))}),r.children.length&&this.forwardEvent(new Wt(r.value.snapshot))}activateRoutes(r,e,t){let i=r.value,o=e?e.value:null;if(Bn(i),i===o)if(i.component){let s=t.getOrCreateContext(i.outlet);this.activateChildRoutes(r,e,s.children)}else this.activateChildRoutes(r,e,t);else if(i.component){let s=t.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),Bn(a.route.value),this.activateChildRoutes(r,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(r,null,s.children)}else this.activateChildRoutes(r,null,t)}},Jt=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},je=class{component;route;constructor(r,e){this.component=r,this.route=e}};function qs(n,r,e){let t=n._root,i=r?r._root:null;return Je(t,i,e,[t.value])}function Ws(n){let r=n.routeConfig?n.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:n,guards:r}}function qe(n,r){let e=Symbol(),t=r.get(n,e);return t===e?typeof n=="function"&&!Tr(n)?n:r.get(n):t}function Je(n,r,e,t,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Ue(r);return n.children.forEach(s=>{Gs(s,o[s.value.outlet],e,t.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>tt(a,e.getContext(s),i)),i}function Gs(n,r,e,t,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=n.value,s=r?r.value:null,a=e?e.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=Ys(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new Jt(t)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Je(n,r,a?a.children:null,t,i):Je(n,r,e,t,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new je(a.outlet.component,s))}else s&&tt(r,a,i),i.canActivateChecks.push(new Jt(t)),o.component?Je(n,null,a?a.children:null,t,i):Je(n,null,e,t,i);return i}function Ys(n,r,e){if(typeof e=="function")return e(n,r);switch(e){case"pathParamsChange":return!me(n.url,r.url);case"pathPa