vendor: 19,720 bytes, lines 1-2
1import{a as De,b as di,c as hi,d as Lr,e as xr,f as et,n as Ut,o as Lt,q as fi,s as pi}from"./chunk-MSZMEV4Z.js";import{$ as Fn,$a as Me,A as ue,Aa as Ct,Ab as ii,B as br,Ba as Dr,Ca as zn,D as Je,Da as Hn,E as Se,Ea as Vn,Fa as Ar,Ga as qn,Ha as Mt,J as Xe,Ja as It,Jb as oi,K as le,Ka as Gn,La as Wn,M as Cr,Ma as Dt,Pa as Jn,R as jn,S as q,T as St,Ta as Ze,U as W,Ua as Xn,Va as At,W as R,Wa as _r,X as Ye,Z as v,Za as Yn,_a as Kn,a as f,aa as T,ab as Qn,b as L,ba as w,bb as Zn,c as Nn,ca as l,cb as ei,d as C,da as be,db as Nr,e as On,eb as ti,f as Pn,g as We,ga as $n,gb as _t,h as ge,ha as J,i as z,ia as x,jc as si,kb as Or,l as H,lb as ri,lc as A,mc as Ot,n as V,na as Ke,nc as Pr,o as g,oa as j,ob as Nt,oc as ai,p as Un,pa as Qe,pb as Ie,pc as ci,q as Sr,qa as Bn,qb as ni,r as Ln,ra as Ce,s as D,sa as me,t as xn,ta as Mr,tc as ui,u as ce,ua as bt,uc as Ur,v as kn,va as N,w as Tt,xa as Ir,xc as li,yc as Pt}from"./chunk-B5GVUZL6.js";var tt=class{_doc;constructor(r){this._doc=r}manager},xt=(()=>{class t extends tt{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,i,o){return e.addEventListener(n,i,o),()=>this.removeEventListener(e,n,i,o)}removeEventListener(e,n,i,o){return e.removeEventListener(n,i,o)}static \u0275fac=function(n){return new(n||t)(w(j))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),Ft=new T(""),$r=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(s=>{s.manager=this});let i=e.filter(s=>!(s instanceof xt));this._plugins=i.slice().reverse();let o=e.find(s=>s instanceof xt);o&&this._plugins.push(o)}addEventListener(e,n,i,o){return this._findPluginFor(n).addEventListener(e,n,i,o)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(o=>o.supports(e)),!n)throw new R(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(w(Ft),w(me))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),kr="ng-app-id";function gi(t){for(let r of t)r.remove()}function mi(t,r){let e=r.createElement("style");return e.textContent=t,e}function zo(t,r,e,n){let i=t.head?.querySelectorAll(`style[${kr}="${r}"],link[${kr}="${r}"]`);if(i)for(let o of i)o.removeAttribute(kr),o instanceof HTMLLinkElement?n.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function Fr(t,r){let e=r.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var Br=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,n,i,o={}){this.doc=e,this.appId=n,this.nonce=i,zo(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let i of e)this.addUsage(i,this.inline,mi);n?.forEach(i=>this.addUsage(i,this.external,Fr))}removeStyles(e,n){for(let i of e)this.removeUsage(i,this.inline);n?.forEach(i=>this.removeUsage(i,this.external))}addUsage(e,n,i){let o=n.get(e);o?o.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(e,this.doc)))})}removeUsage(e,n){let i=n.get(e);i&&(i.usage--,i.usage<=0&&(gi(i.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])gi(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:i}]of this.inline)i.push(this.addElement(e,mi(n,this.doc)));for(let[n,{elements:i}]of this.external)i.push(this.addElement(e,Fr(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(w(j),w(Ar),w(It,8),w(Mt))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),jr={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"},zr=/%COMP%/g;var yi="%COMP%",Ho=`_nghost-${yi}`,Vo=`_ngcontent-${yi}`,qo=!0,Go=new T("",{factory:()=>qo});function Wo(t){return Vo.replace(zr,t)}function Jo(t){return Ho.replace(zr,t)}function Ri(t,r){return r.map(e=>e.replace(zr,t))}var Hr=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(e,n,i,o,s,a,c=null,u=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=u,this.defaultRenderer=new rt(e,s,a,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;let i=this.getOrCreateRenderer(e,n);return i instanceof jt?i.applyToHost(e):i instanceof nt&&i.applyStyles(),i}getOrCreateRenderer(e,n){let i=this.rendererByCompId,o=i.get(n.id);if(!o){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.tracingService;switch(n.encapsulation){case Dt.Emulated:o=new jt(c,u,n,this.appId,d,s,a,h);break;case Dt.ShadowDom:return new kt(c,e,n,s,a,this.nonce,h,u);case Dt.ExperimentalIsolatedShadowDom:return new kt(c,e,n,s,a,this.nonce,h);default:o=new nt(c,u,n,d,s,a,h);break}i.set(n.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(n){return new(n||t)(w($r),w(Br),w(Ar),w(Go),w(j),w(me),w(It),w(At,8))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),rt=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(r,e,n,i){this.eventManager=r,this.doc=e,this.ngZone=n,this.tracingService=i}destroy(){}destroyNode=null;createElement(r,e){return e?this.doc.createElementNS(jr[e]||e,r):this.doc.createElement(r)}createComment(r){return this.doc.createComment(r)}createText(r){return this.doc.createTextNode(r)}appendChild(r,e){(vi(r)?r.content:r).appendChild(e)}insertBefore(r,e,n){r&&(vi(r)?r.content:r).insertBefore(e,n)}removeChild(r,e){e.remove()}selectRootElement(r,e){let n=typeof r=="string"?this.doc.querySelector(r):r;if(!n)throw new R(-5104,!1);return e||(n.textContent=""),n}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,n,i){if(i){e=i+":"+e;let o=jr[i];o?r.setAttributeNS(o,e,n):r.setAttribute(e,n)}else r.setAttribute(e,n)}removeAttribute(r,e,n){if(n){let i=jr[n];i?r.removeAttributeNS(i,e):r.removeAttribute(`${n}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,n,i){i&(Ze.DashCase|Ze.Important)?r.style.setProperty(e,n,i&Ze.Important?"important":""):r.style[e]=n}removeStyle(r,e,n){n&Ze.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,n){r!=null&&(r[e]=n)}setValue(r,e){r.nodeValue=e}listen(r,e,n,i){if(typeof r=="string"&&(r=De().getGlobalEventTarget(this.doc,r),!r))throw new R(5102,!1);let o=this.decoratePreventDefault(n);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 vi(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var kt=class extends rt{hostEl;sharedStylesHost;shadowRoot;constructor(r,e,n,i,o,s,a,c){super(r,i,o,a),this.hostEl=e,this.sharedStylesHost=c,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=n.styles;u=Ri(n.id,u);for(let h of u){let m=document.createElement("style");s&&m.setAttribute("nonce",s),m.textContent=h,this.shadowRoot.appendChild(m)}let d=n.getExternalStyles?.();if(d)for(let h of d){let m=Fr(h,i);s&&m.setAttribute("nonce",s),this.shadowRoot.appendChild(m)}}nodeOrShadowRoot(r){return r===this.hostEl?this.shadowRoot:r}appendChild(r,e){return super.appendChild(this.nodeOrShadowRoot(r),e)}insertBefore(r,e,n){return super.insertBefore(this.nodeOrShadowRoot(r),e,n)}removeChild(r,e){return super.removeChild(null,e)}parentNode(r){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(r)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},nt=class extends rt{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(r,e,n,i,o,s,a,c){super(r,o,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i;let u=n.styles;this.styles=c?Ri(c,u):u,this.styleUrls=n.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Xn.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},jt=class extends nt{contentAttr;hostAttr;constructor(r,e,n,i,o,s,a,c){let u=i+"-"+n.id;super(r,e,n,o,s,a,c,u),this.contentAttr=Wo(u),this.hostAttr=Jo(u)}applyToHost(r){this.applyStyles(),this.setAttribute(r,this.hostAttr,"")}createElement(r,e){let n=super.createElement(r,e);return super.setAttribute(n,this.contentAttr,""),n}};var $t=class t extends hi{supportsDOMEvents=!0;static makeCurrent(){di(new t)}onAndCancel(r,e,n,i){return r.addEventListener(e,n,i),()=>{r.removeEventListener(e,n,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:Ko(e)}resetBaseElement(){ot=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return Ut(document.cookie,r)}},ot=null;function Yo(){return ot=ot||document.head.querySelector("base"),ot?ot.getAttribute("href"):null}function Ko(t){return new URL(t,document.baseURI).pathname}var Qo=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),wi=["alt","control","meta","shift"],Zo={"\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"},es={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Ei=(()=>{class t extends tt{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,i,o){let s=t.parseEventName(n),a=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>De().onAndCancel(e,s.domEventName,a,o))}static parseEventName(e){let n=e.toLowerCase().split("."),i=n.shift();if(n.length===0||!(i==="keydown"||i==="keyup"))return null;let o=t._normalizeKey(n.pop()),s="",a=n.indexOf("code");if(a>-1&&(n.splice(a,1),s="code."),wi.forEach(u=>{let d=n.indexOf(u);d>-1&&(n.splice(d,1),s+=u+".")}),s+=o,n.length!=0||o.length===0)return null;let c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(e,n){let i=Zo[e.key]||e.key,o="";return n.indexOf("code.")>-1&&(i=e.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),wi.forEach(s=>{if(s!==i){let a=es[s];a(e)&&(o+=s+".")}}),o+=i,o===n)}static eventCallback(e,n,i){return o=>{t.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>n(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(n){return new(n||t)(w(j))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();function ts(t,r,e){return C(this,null,function*(){let n=f({rootComponent:t},rs(r,e));return li(n)})}function rs(t,r){return{platformRef:r?.platformRef,appProviders:[...as,...t?.providers??[]],platformProviders:ss}}function ns(){$t.makeCurrent()}function is(){return new Mr}function os(){return Vn(document),document}var ss=[{provide:Mt,useValue:fi},{provide:qn,useValue:ns,multi:!0},{provide:j,useFactory:os}];var as=[{provide:$n,useValue:"root"},{provide:Mr,useFactory:is},{provide:Ft,useClass:xt,multi:!0},{provide:Ft,useClass:Ei,multi:!0},Hr,Br,$r,{provide:Yn,useExisting:Hr},{provide:Lt,useClass:Qo},[]];var X=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(r){r?typeof r=="string"?this.lazyInit=()=>{this.headers=new Map,r.split(` 2`).forEach(e=>{let n=e.indexOf(":");if(n>0){let i=e.slice(0,n),o=e.slice(n+1).trim();this.addHeaderEntry(i,o)}})}:typeof Headers<"u"&&r instanceof Headers?(this.headers=new Map,r.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(r).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(r){return this.init(),this.headers.has(r.toLowerCase())}get(r){this.init();let e=this.headers.get(r.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(r){return this.init(),this.headers.get(r.toLowerCase())||null}append(r,e){return this.clone({name:r,value:e,op:"a"})}set(r,e){return this.clone({name:r,value:e,op:"s"})}delete(r,e){return this.clone({name:r,value:e,op:"d"})}maybeSetNormalizedName(r,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,r)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(r=>this.applyUpdate(r)),this.lazyUpdate=null))}copyFrom(r){r.init(),Array.from(r.headers.keys()).forEach(e=>{this.headers.set(e,r.headers.get(e)),this.normalizedNames.set(e,r.normalizedNames.get(e))})}clone(r){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([r]),e}applyUpdate(r){let e=r.name.toLowerCase();switch(r.op){case"a":case"s":let n=r.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(r.name,e);let i=(r.op==="a"?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":let o=r.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=this.headers.get(e);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}addHeaderEntry(r,e){let n=r.toLowerCase();this.maybeSetNormalizedName(r,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(r,e){let n=(Array.isArray(e)?e:[e]).map(o=>o.toString()),i=r.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(r,i)}forEach(r){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>r(this.normalizedNames.get(e),this.headers.get(e)))}};var Ht=class{map=new Map;set(r,e){return this.map.set(r,e),this}get(r){return this.map.has(r)||this.map.set(r,r.defaultValue()),this.map.get(r)}delete(r){return this.map.delete(r),this}has(r){return this.map.has(r)}keys(){return this.map.keys()}},Vt=class{encodeKey(r){return Ti(r)}encodeValue(r){return Ti(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}};function cs(t,r){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[r.decodeKey(i),""]:[r.decodeKey(i.slice(0,o)),r.decodeValue(i.slice(o+1))],c=e.get(s)||[];c.push(a),e.set(s,c)}),e}var us=/%(\d[a-f0-9])/gi,ls={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Ti(t){return encodeURIComponent(t).replace(us,(r,e)=>ls[e]??r)}function Bt(t){return`${t}`}var re=class t{map;encoder;updates=null;cloneFrom=null;constructor(r={}){if(this.encoder=r.encoder||new Vt,r.fromString){if(r.fromObject)throw new R(2805,!1);this.map=cs(r.fromString,this.encoder)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach(e=>{let n=r.fromObject[e],i=Array.isArray(n)?n.map(Bt):[Bt(n)];this.map.set(e,i)})):this.map=null}has(r){return this.init(),this.map.has(r)}get(r){this.init();let e=this.map.get(r);return e?e[0]:null}getAll(r){return this.init(),this.map.get(r)||null}keys(){return this.init(),Array.from(this.map.keys())}append(r,e){return this.clone({param:r,value:e,op:"a"})}appendAll(r){let e=[];return Object.keys(r).forEach(n=>{let i=r[n];Array.isArray(i)?i.forEach(o=>{e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}set(r,e){return this.clone({param:r,value:e,op:"s"})}delete(r,e){return this.clone({param:r,value:e,op:"d"})}toString(){return this.init(),this.keys().map(r=>{let e=this.encoder.encodeKey(r);return this.map.get(r).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(r=>r!=="").join("&")}clone(r){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(r),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(r=>this.map.set(r,this.cloneFrom.map.get(r))),this.updates.forEach(r=>{switch(r.op){case"a":case"s":let e=(r.op==="a"?this.map.get(r.param):void 0)||[];e.push(Bt(r.value)),this.map.set(r.param,e);break;case"d":if(r.value!==void 0){let n=this.map.get(r.param)||[],i=n.indexOf(Bt(r.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(r.param,n):this.map.delete(r.param)}else{this.map.delete(r.param);break}}}),this.cloneFrom=this.updates=null)}};function ds(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Si(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function bi(t){return typeof Blob<"u"&&t instanceof Blob}function Ci(t){return typeof FormData<"u"&&t instanceof FormData}function hs(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var st="Content-Type",qt="Accept",Ii="text/plain",Di="application/json",Ai=`${Di}, ${Ii}, */*`,Ae=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(r,e,n,i){this.url=e,this.method=r.toUpperCase();let o;if(ds(this.method)||i?(this.body=n!==void 0?n:null,o=i):o=n,o){if(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,this.keepalive=!!o.keepalive,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),o.priority&&(this.priority=o.priority),o.cache&&(this.cache=o.cache),o.credentials&&(this.credentials=o.credentials),typeof o.timeout=="number"){if(o.timeout<1||!Number.isInteger(o.timeout))throw new R(2822,"");this.timeout=o.timeout}o.mode&&(this.mode=o.mode),o.redirect&&(this.redirect=o.redirect),o.integrity&&(this.integrity=o.integrity),o.referrer&&(this.referrer=o.referrer),o.referrerPolicy&&(this.referrerPolicy=o.referrerPolicy),this.transferCache=o.transferCache}if(this.headers??=new X,this.context??=new Ht,!this.params)this.params=new re,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),c=a===-1?"?":a<e.length-1?"&":"";this.urlWithParams=e+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Si(this.body)||bi(this.body)||Ci(this.body)||hs(this.body)?this.body:this.body instanceof re?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||Ci(this.body)?null:bi(this.body)?this.body.type||null:Si(this.body)?null:typeof this.body=="str
2ing"?Ii:this.body instanceof re?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Di:null}clone(r={}){let e=r.method||this.method,n=r.url||this.url,i=r.responseType||this.responseType,o=r.keepalive??this.keepalive,s=r.priority||this.priority,a=r.cache||this.cache,c=r.mode||this.mode,u=r.redirect||this.redirect,d=r.credentials||this.credentials,h=r.referrer||this.referrer,m=r.integrity||this.integrity,P=r.referrerPolicy||this.referrerPolicy,_=r.transferCache??this.transferCache,b=r.timeout??this.timeout,y=r.body!==void 0?r.body:this.body,E=r.withCredentials??this.withCredentials,I=r.reportProgress??this.reportProgress,k=r.headers||this.headers,M=r.params||this.params,se=r.context??this.context;return r.setHeaders!==void 0&&(k=Object.keys(r.setHeaders).reduce((ae,te)=>ae.set(te,r.setHeaders[te]),k)),r.setParams&&(M=Object.keys(r.setParams).reduce((ae,te)=>ae.set(te,r.setParams[te]),M)),new t(e,n,y,{params:M,headers:k,context:se,reportProgress:I,responseType:i,withCredentials:E,transferCache:_,keepalive:o,cache:a,priority:s,timeout:b,mode:c,redirect:u,credentials:d,referrer:h,integrity:m,referrerPolicy:P})}},ne=(function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t})(ne||{}),_e=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(r,e=200,n="OK"){this.headers=r.headers||new X,this.status=r.status!==void 0?r.status:e,this.statusText=r.statusText||n,this.url=r.url||null,this.redirected=r.redirected,this.responseType=r.responseType,this.ok=this.status>=200&&this.status<300}},at=class t extends _e{constructor(r={}){super(r)}type=ne.ResponseHeader;clone(r={}){return new t({headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}},ve=class t extends _e{body;constructor(r={}){super(r),this.body=r.body!==void 0?r.body:null}type=ne.Response;clone(r={}){return new t({body:r.body!==void 0?r.body:this.body,headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0,redirected:r.redirected??this.redirected,responseType:r.responseType??this.responseType})}},Q=class extends _e{name="HttpErrorResponse";message;error;ok=!1;constructor(r){super(r,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${r.url||"(unknown url)"}`:this.message=`Http failure response for ${r.url||"(unknown url)"}: ${r.status} ${r.statusText}`,this.error=r.error||null}},_i=200,fs=204;var ps=/^\)\]\}',?\n/,Ni=new T(""),zt=(()=>{class t{fetchImpl=l(Wr,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e));ngZone=l(me);destroyRef=l(Qe);handle(e){return new We(n=>{let i=new AbortController;this.doRequest(e,i.signal,n).then(Jr,s=>n.error(new Q({error:s})));let o;return e.timeout&&(o=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{i.signal.aborted||i.abort(new DOMException("signal timed out","TimeoutError"))},e.timeout))),()=>{o!==void 0&&clearTimeout(o),i.abort()}})}
vendor: 5,680 bytes, line 2
2doRequest(e,n,i){return C(this,null,function*(){let o=this.createRequestInit(e),s;try{let b=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,f({signal:n},o)));gs(b),i.next({type:ne.Sent}),s=yield b}catch(b){i.error(new Q({error:b,status:b.status??0,statusText:b.statusText,url:e.urlWithParams,headers:b.headers}));return}let a=new X(s.headers),c=s.statusText,u=s.url||e.urlWithParams,d=s.status,h=null;if(e.reportProgress&&i.next(new at({headers:a,status:d,statusText:c,url:u})),s.body){let b=s.headers.get("content-length"),y=[],E=s.body.getReader(),I=0,k,M,se=typeof Zone<"u"&&Zone.current,ae=!1;if(yield this.ngZone.runOutsideAngular(()=>C(this,null,function*(){for(;;){if(this.destroyRef.destroyed){yield E.cancel(),ae=!0;break}let{done:Ge,value:Tr}=yield E.read();if(Ge)break;if(y.push(Tr),I+=Tr.length,e.reportProgress){M=e.responseType==="text"?(M??"")+(k??=new TextDecoder).decode(Tr,{stream:!0}):void 0;let _n=()=>i.next({type:ne.DownloadProgress,total:b?+b:void 0,loaded:I,partialText:M});se?se.run(_n):_n()}}})),ae){i.complete();return}let te=this.concatChunks(y,I);try{let Ge=s.headers.get(st)??"";h=this.parseBody(e,te,Ge,d)}catch(Ge){i.error(new Q({error:Ge,headers:new X(s.headers),status:s.status,statusText:s.statusText,url:s.url||e.urlWithParams}));return}}d===0&&(d=h?_i:0);let m=d>=200&&d<300,P=s.redirected,_=s.type;m?(i.next(new ve({body:h,headers:a,status:d,statusText:c,url:u,redirected:P,responseType:_})),i.complete()):i.error(new Q({error:h,headers:a,status:d,statusText:c,url:u,redirected:P,responseType:_}))})}parseBody(e,n,i,o){switch(e.responseType){case"json":let s=new TextDecoder().decode(n).replace(ps,"");if(s==="")return null;try{return JSON.parse(s)}catch(a){if(o<200||o>=300)return s;throw a}case"text":return new TextDecoder().decode(n);case"blob":return new Blob([n],{type:i});case"arraybuffer":return n.buffer}}createRequestInit(e){let n={},i;if(i=e.credentials,e.withCredentials&&(i="include"),e.headers.forEach((o,s)=>n[o]=s.join(",")),e.headers.has(qt)||(n[qt]=Ai),!e.headers.has(st)){let o=e.detectContentTypeHeader();o!==null&&(n[st]=o)}return{body:e.serializeBody(),method:e.method,headers:n,credentials:i,keepalive:e.keepalive,cache:e.cache,priority:e.priority,mode:e.mode,redirect:e.redirect,referrer:e.referrer,integrity:e.integrity,referrerPolicy:e.referrerPolicy}}concatChunks(e,n){let i=new Uint8Array(n),o=0;for(let s of e)i.set(s,o),o+=s.length;return i}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),Wr=class{};function Jr(){}function gs(t){t.then(Jr,Jr)}var ms=/^\)\]\}',?\n/;var Xr=(()=>{class t{xhrFactory;tracingService=l(At,{optional:!0});constructor(e){this.xhrFactory=e}maybePropagateTrace(e){return this.tracingService?.propagate?this.tracingService.propagate(e):e}handle(e){if(e.method==="JSONP")throw new R(-2800,!1);let n=this.xhrFactory;return g(null).pipe(q(()=>new We(o=>{let s=n.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((y,E)=>s.setRequestHeader(y,E.join(","))),e.headers.has(qt)||s.setRequestHeader(qt,Ai),!e.headers.has(st)){let y=e.detectContentTypeHeader();y!==null&&s.setRequestHeader(st,y)}if(e.timeout&&(s.timeout=e.timeout),e.responseType){let y=e.responseType.toLowerCase();s.responseType=y!=="json"?y:"text"}let a=e.serializeBody(),c=null,u=()=>{if(c!==null)return c;let y=s.statusText||"OK",E=new X(s.getAllResponseHeaders()),I=s.responseURL||e.url;return c=new at({headers:E,status:s.status,statusText:y,url:I}),c},d=this.maybePropagateTrace(()=>{let{headers:y,status:E,statusText:I,url:k}=u(),M=null;E!==fs&&(M=typeof s.response>"u"?s.responseText:s.response),E===0&&(E=M?_i:0);let se=E>=200&&E<300;if(e.responseType==="json"&&typeof M=="string"){let ae=M;M=M.replace(ms,"");try{M=M!==""?JSON.parse(M):null}catch(te){M=ae,se&&(se=!1,M={error:te,text:M})}}se?(o.next(new ve({body:M,headers:y,status:E,statusText:I,url:k||void 0})),o.complete()):o.error(new Q({error:M,headers:y,status:E,statusText:I,url:k||void 0}))}),h=this.maybePropagateTrace(y=>{let{url:E}=u(),I=new Q({error:y,status:s.status||0,statusText:s.statusText||"Unknown Error",url:E||void 0});o.error(I)}),m=h;e.timeout&&(m=this.maybePropagateTrace(y=>{let{url:E}=u(),I=new Q({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:E||void 0});o.error(I)}));let P=!1,_=this.maybePropagateTrace(y=>{P||(o.next(u()),P=!0);let E={type:ne.DownloadProgress,loaded:y.loaded};y.lengthComputable&&(E.total=y.total),e.responseType==="text"&&s.responseText&&(E.partialText=s.responseText),o.next(E)}),b=this.maybePropagateTrace(y=>{let E={type:ne.UploadProgress,loaded:y.loaded};y.lengthComputable&&(E.total=y.total),o.next(E)});return s.addEventListener("load",d),s.addEventListener("error",h),s.addEventListener("timeout",m),s.addEventListener("abort",h),e.reportProgress&&(s.addEventListener("progress",_),a!==null&&s.upload&&s.upload.addEventListener("progress",b)),s.send(a),o.next({type:ne.Sent}),()=>{s.removeEventListener("error",h),s.removeEventListener("abort",h),s.removeEventListener("load",d),s.removeEventListener("timeout",m),e.reportProgress&&(s.removeEventListener("progress",_),a!==null&&s.upload&&s.upload.removeEventListener("progress",b)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(n){return new(n||t)(w(Lt))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Oi(t,r){return r(t)}function vs(t,r){return(e,n)=>r.intercept(e,{handle:i=>t(i,n)})}function ys(t,r,e){return(n,i)=>x(e,()=>r(n,o=>t(o,i)))}var Pi=new T(""),Yr=new T("",{factory:()=>[]}
2),Kr=new T(""),Qr=new T("",{factory:()=>!0});function Rs(){let t=null;return(r,e)=>{t===null&&(t=(l(Pi,{optional:!0})??[]).reduceRight(vs,Oi));let n=l(Ir);if(l(Qr)){let o=n.add();return t(r,e).pipe(Xe(o))}else return t(r,e)}}var Wt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:function(n){let i=null;return n?i=new(n||t):i=w(Xr),i},providedIn:"root"})}return t})();var Gt=(()=>{class t{backend;injector;chain=null;pendingTasks=l(Ir);contributeToStability=l(Qr);constructor(e,n){this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(Yr),...this.injector.get(Kr,[])]));this.chain=n.reduceRight((i,o)=>ys(i,o,this.injector),Oi)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,i=>this.backend.handle(i)).pipe(Xe(n))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(w(Wt),w(J))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Zr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:function(n){let i=null;return n?i=new(n||t):i=w(Gt),i},providedIn:"root"})}return t})();function Gr(t,r){return{body:r,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,credentials:t.credentials,transferCache:t.transferCache,timeout:t.timeout,keepalive:t.keepalive,priority:t.priority,cache:t.cache,mode:t.mode,redirect:t.redirect,integrity:t.integrity,referrer:t.referrer,referrerPolicy:t.referrerPolicy}}var Ui=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,i={}){let o;if(e instanceof Ae)o=e;else{let c;i.headers instanceof X?c=i.headers:c=new X(i.headers);let u;i.params&&(i.params instanceof re?u=i.params:u=new re({fromObject:i.params})),o=new Ae(e,n,i.body!==void 0?i.body:null,{headers:c,context:i.context,params:u,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache,keepalive:i.keepalive,priority:i.priority,cache:i.cache,mode:i.mode,redirect:i.redirect,credentials:i.credentials,referrer:i.referrer,referrerPolicy:i.referrerPolicy,integrity:i.integrity,timeout:i.timeout})}let s=g(o).pipe(Je(c=>this.handler.handle(c)));if(e instanceof Ae||i.observe==="events")return s;let a=s.pipe(ue(c=>c instanceof ve));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(D(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new R(2806,!1);return c.body}));case"blob":return a.pipe(D(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new R(2807,!1);return c.body}));case"text":return a.pipe(D(c=>{if(c.body!==null&&typeof c.body!="string")throw new R(2808,!1);return c.body}));default:return a.pipe(D(c=>c.body))}case"response":return a;default:throw new R(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new re().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,i={}){return this.request("PATCH",e,Gr(i,n))}post(e,n,i={}){return this.request("POST",e,Gr(i,n))}put(e,n,i={}){return this.request("PUT",e,Gr(i,n))}static \u0275fac=function(n){return new(n||t)(w(Zr))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ws=new T("",{factory:()=>!0}),Es="XSRF-TOKEN",Ts=new T("",{factory:()=>Es}),Ss="X-XSRF-TOKEN",bs=new T("",{factory:()=>Ss}),Cs=(()=>{class t{cookieName=l(Ts);doc=l(j);lastCookieString="";lastToken=null;parseCount=0;getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ut(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Li=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:function(n){let i=null;return n?i=new(n||t):i=w(Cs),i},providedIn:"root"})}return t})();function Ms(t,r){if(!l(ws)||t.method==="GET"||t.method==="HEAD")return r(t);try{let i=l(Lr).href,{origin:o}=new URL(i),{origin:s}=new URL(t.url,o);if(o!==s)return r(t)}catch(i){return r(t)}let e=l(Li).getToken(),n=l(bs);return e!=null&&!t.headers.has(n)&&(t=t.clone({headers:t.headers.set(n,e)})),r(t)}var Jt=(function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t})(Jt||{});function xi(t,r){return{\u0275kind:t,\u0275providers:r}}function Is(...t){let r=[Ui,Gt,{provide:Zr,useExisting:Gt},{provide:Wt,useFactory:()=>l(Ni,{optional:!0})??l(Xr)},{provide:Yr,useValue:Ms,multi:!0}];for(let e of t)r.push(...e.\u0275providers);return be(r)}var Mi=new T("");function Ds(){return xi(Jt.LegacyInterceptors,[{provide:Mi,useFactory:Rs},{provide:Yr,useExisting:Mi,multi:!0}])}function As(){return xi(Jt.Fetch,[zt,{provide:Ni,useExisting:zt},{provide:Wt,useExisting:zt}])}var _s=new T(""),Ns="b",Os="h",Ps="s",Us="st",Ls="u",xs="rt",en=new T(""),ks=["GET","HEAD"];function Fi(t,r){let s=r,{isCacheActive:e}=s,n=Nn(s,["isCacheActive"]),{transferCache:i,method:o}=t;return!(!e||i===!1||o==="POST"&&!n.includePostRequests&&!i||o!=="POST"&&!ks.includes(o)||!n.includeRequestsWithAuthHeaders&&$s(t)||n.filter?.(t)===!1)}function $i(t,r){let{includeHeaders:e}=t,n=e;return typeof r=="object"&&r.includeHeaders&&(n=r.includeHeaders),n}function js(t,r,e,n){let{transferCache:i}=t;if(!Fi(t,r))return null;if(n)throw new R(2803,!1);
2let o=t.url,s=Bi(t,o),a=e.get(s,null),c=$i(r,i);if(a){let{[Ns]:u,[xs]:d,[Os]:h,[Ps]:m,[Us]:P,[Ls]:_}=a,b=u;switch(d){case"arraybuffer":b=ji(u);break;case"blob":b=new Blob([ji(u)]);break}let y=new X(h);return new ve({body:b,headers:y,status:m,statusText:P,url:_})}return null}function Fs(t,r){let e=l(en),n=l(Gn),i=l(_s,{optional:!0}),o=js(t,e,n,i);if(o)return g(o);let{transferCache:s}=t,a=$i(e,s),c=t.url,u=Bi(t,c);return Fi(t,e),r(t)}function $s(t){return t.headers.has("authorization")||t.headers.has("proxy-authorization")}function ki(t){return[...t.keys()].sort().map(r=>`${r}=${t.getAll(r)}`).join("&")}function Bi(t,r){let{params:e,method:n,responseType:i}=t,o=ki(e),s=t.serializeBody();s instanceof URLSearchParams?s=ki(s):typeof s!="string"&&(s="");let a=[n,i,r,s,o].join("|"),c=Bs(a);return c}function Bs(t){let r=0;for(let e of t)r=Math.imul(31,r)+e.charCodeAt(0)<<0;return r+=2147483648,r.toString()}function ji(t){let r=atob(t);return Uint8Array.from(r,n=>n.charCodeAt(0)).buffer}function zi(t){return[{provide:en,useFactory:()=>(_r("NgHttpTransferCache"),f({isCacheActive:!0},t))},{provide:Kr,useValue:Fs,multi:!0},{provide:Nt,multi:!0,useFactory:()=>{let r=l(Ie),e=l(en);return()=>{r.whenStable().then(()=>{e.isCacheActive=!1})}}}]}var dl=(()=>{class t{_doc;_dom;constructor(e){this._doc=e,this._dom=De()}addTag(e,n=!1){return e?this._getOrCreateElement(e,n):null}addTags(e,n=!1){return e?e.reduce((i,o)=>(o&&i.push(this._getOrCreateElement(o,n)),i),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];let n=this._doc.querySelectorAll(`meta[${e}]`);return n?[].slice.call(n):[]}updateTag(e,n){if(!e)return null;n=n||this._parseSelector(e);let i=this.getTag(n);return i?this._setMetaElementAttributes(e,i):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,n=!1){if(!n){let s=this._parseSelector(e),a=this.getTags(s).filter(c=>this._containsAttributes(e,c))[0];if(a!==void 0)return a}let i=this._dom.createElement("meta");return this._setMetaElementAttributes(e,i),this._doc.getElementsByTagName("head")[0].appendChild(i),i}_setMetaElementAttributes(e,n){return Object.keys(e).forEach(i=>n.setAttribute(this._getMetaKeyMap(i),e[i])),n}_parseSelector(e){let n=e.name?"name":"property";return`${n}="${e[n]}"`}_containsAttributes(e,n){return Object.keys(e).every(i=>n.getAttribute(this._getMetaKeyMap(i))===e[i])}_getMetaKeyMap(e){return Vs[e]||e}static \u0275fac=function(n){return new(n||t)(w(j))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Vs={httpEquiv:"http-equiv"},Hi=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||t)(w(j))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var tn=(function(t){return t[t.NoHttpTransferCache=0]="NoHttpTransferCache",t[t.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",t[t.I18nSupport=2]="I18nSupport",t[t.EventReplay=3]="EventReplay",t[t.IncrementalHydration=4]="IncrementalHydration",t})(tn||{});function hl(...t){let r=[],e=new Set;for(let{\u0275providers:i,\u0275kind:o}of t)e.add(o),i.length&&r.push(i);let n=e.has(tn.HttpTransferCacheOptions);return be([[],[],ui(),e.has(tn.NoHttpTransferCache)||n?[]:zi({}),r])}var p="primary",Rt=Symbol("RouteTitle"),an=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 Re(t){return new an(t)}function rn(t,r,e){for(let n=0;n<t.length;n++){let i=t[n],o=r[n];if(i[0]===":")e[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function Ki(t,r,e){let n=e.path.split("/"),i=n.indexOf("**");if(i===-1){if(n.length>t.length||e.pathMatch==="full"&&(r.hasChildren()||n.length<t.length))return null;
2let c={},u=t.slice(0,n.length);return rn(n,u,c)?{consumed:u,posParams:c}:null}if(i!==n.lastIndexOf("**"))return null;let o=n.slice(0,i),s=n.slice(i+1);if(o.length+s.length>t.length||e.pathMatch==="full"&&r.hasChildren()&&e.path!=="**")return null;let a={};return!rn(o,t.slice(0,o.length),a)||!rn(s,t.slice(t.length-s.length),a)?null:{consumed:t,posParams:a}}function er(t){return new Promise((r,e)=>{t.pipe(le()).subscribe({next:n=>r(n),error:n=>e(n)})})}function Ws(t,r){if(t.length!==r.length)return!1;for(let e=0;e<t.length;++e)if(!Z(t[e],r[e]))return!1;return!0}function Z(t,r){let e=t?cn(t):void 0,n=r?cn(r):void 0;if(!e||!n||e.length!=n.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!Qi(t[i],r[i]))return!1;return!0}function cn(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Qi(t,r){if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return!1;let e=[...t].sort(),n=[...r].sort();return e.every((i,o)=>n[o]===i)}else return t===r}function Js(t){return t.length>0?t[t.length-1]:null}function Ee(t){return Sr(t)?t:ri(t)?V(Promise.resolve(t)):g(t)}function Zi(t){return Sr(t)?er(t):Promise.resolve(t)}var Xs={exact:ro,subset:no},eo={exact:Ys,subset:Ks,ignored:()=>!0},to={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},un={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Vi(t,r,e){return Xs[e.paths](t.root,r.root,e.matrixParams)&&eo[e.queryParams](t.queryParams,r.queryParams)&&!(e.fragment==="exact"&&t.fragment!==r.fragment)}function Ys(t,r){return Z(t,r)}function ro(t,r,e){if(!ye(t.segments,r.segments)||!Kt(t.segments,r.segments,e)||t.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!t.children[n]||!ro(t.children[n],r.children[n],e))return!1;return!0}function Ks(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(e=>Qi(t[e],r[e]))}function no(t,r,e){return io(t,r,r.segments,e)}function io(t,r,e,n){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!ye(i,e)||r.hasChildren()||!Kt(i,e,n))}else if(t.segments.length===e.length){if(!ye(t.segments,e)||!Kt(t.segments,e,n))return!1;for(let i in r.children)if(!t.children[i]||!no(t.children[i],r.children[i],n))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!ye(t.segments,i)||!Kt(t.segments,i,n)||!t.children[p]?!1:io(t.children[p],r,o,n)}}function Kt(t,r,e){return r.every((n,i)=>eo[e](t[i].parameters,n.parameters))}var $=class{root;queryParams;fragment;_queryParamMap;constructor(r=new S([],{}),e={},n=null){this.root=r,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Re(this.queryParams),this._queryParamMap}toString(){return ea.serialize(this)}},S=class{segments;children;parent=null;constructor(r,e){this.segments=r,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Qt(this)}},de=class{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=Re(this.parameters),this._parameterMap}toString(){return so(this)}};function Qs(t,r){return ye(t,r)&&t.every((e,n)=>Z(e.parameters,r[n].parameters))}function ye(t,r){return t.length!==r.length?!1:t.every((e,n)=>e.path===r[n].path)}function Zs(t,r){let e=[];return Object.entries(t.children).forEach(([n,i])=>{n===p&&(e=e.concat(r(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==p&&(e=e.concat(r(i,n)))}),e}var Te=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:()=>new he,providedIn:"root"})}return t})(),he=class{parse(r){let e=new dn(r);return new $(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${ct(r.root,!0)}`,n=na(r.queryParams),i=typeof r.fragment=="string"?`#${ta(r.fragment)}`:"";return`${e}${n}${i}`}},ea=new he;function Qt(t){return t.segments.map(r=>so(r)).join("/")}function ct(t,r){if(!t.hasChildren())return Qt(t);if(r){let e=t.children[p]?ct(t.children[p],!1):"",n=[];
vendor: 9,906 bytes, line 2
2return Object.entries(t.children).forEach(([i,o])=>{i!==p&&n.push(`${i}:${ct(o,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=Zs(t,(n,i)=>i===p?[ct(t.children[p],!1)]:[`${i}:${ct(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${Qt(t)}/${e[0]}`:`${Qt(t)}/(${e.join("//")})`}}function oo(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xt(t){return oo(t).replace(/%3B/gi,";")}function ta(t){return encodeURI(t)}function ln(t){return oo(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Zt(t){return decodeURIComponent(t)}function qi(t){return Zt(t.replace(/\+/g,"%20"))}function so(t){return`${ln(t.path)}${ra(t.parameters)}`}function ra(t){return Object.entries(t).map(([r,e])=>`;${ln(r)}=${ln(e)}`).join("")}function na(t){let r=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(i=>`${Xt(e)}=${Xt(i)}`).join("&"):`${Xt(e)}=${Xt(n)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}var ia=/^[^\/()?;#]+/;function nn(t){let r=t.match(ia);return r?r[0]:""}var oa=/^[^\/()?;=#]+/;function sa(t){let r=t.match(oa);return r?r[0]:""}var aa=/^[^=?&#]+/;function ca(t){let r=t.match(aa);return r?r[0]:""}var ua=/^[^&#]+/;function la(t){let r=t.match(ua);return r?r[0]:""}var dn=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){for(;this.consumeOptional("/"););return 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(r=0){if(r>50)throw new R(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0,r));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1,r)),(e.length>0||Object.keys(n).length>0)&&(i[p]=new S(e,n)),i}parseSegment(){let r=nn(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new R(4009,!1);return this.capture(r),new de(Zt(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=sa(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let i=nn(this.remaining);i&&(n=i,this.capture(n))}r[Zt(e)]=Zt(n)}parseQueryParam(r){let e=ca(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let s=la(this.remaining);s&&(n=s,this.capture(n))}let i=qi(e),o=qi(n);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,e){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=nn(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new R(4010,!1);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):r&&(s=p);let a=this.parseChildren(e+1);n[s??p]=Object.keys(a).length===1&&a[p]?a[p]:new S([],a),this.consumeOptional("//")}return n}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 R(4011,!1)}};function ao(t){return t.segments.length>0?new S([],{[p]:t}):t}function co(t){let r={};for(let[n,i]of Object.entries(t.children)){let o=co(i);if(n===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[n]=o)}let e=new S(t.segments,r);return da(e)}function da(t){if(t.numberOfChildren===1&&t.children[p]){let r=t.children[p];return new S(t.segments.concat(r.segments),r.children)}return t}function fe(t){return t instanceof $}function uo(t,r,e=null,n=null,i=new he){let o=lo(t);return ho(o,r,e,n,i)}function lo(t){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===t&&(r=a),a}let n=e(t.root),i=ao(n);return r??i}function ho(t,r,e,n,i){let o=t;for(;o.parent;)o=o.parent;if(r.length===0)return on(o,o,o,e,n,i);let s=ha(r);if(s.toRoot())return on(o,o,new S([],{}),e,n,i);let a=fa(s,o,t),c=a.processChildren?lt(a.segmentGroup,a.index,s.commands):po(a.segmentGroup,a.index,s.commands);return on(o,a.segmentGroup,c,e,n,i)}function tr(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function ht(t){return typeof t=="object"&&t!=null&&t.outlets}function Gi(t,r,e){t||="\u0275";let n=new $;return n.queryParams={[t]:r},e.parse(e.serialize(n)).queryParams[t]}function on(t,r,e,n,i,o){let s={};for(let[u,d]of Object.entries(n??{}))s[u]=Array.isArray(d)?d.map(h=>Gi(u,h,o)):Gi(u,d,o);let a;t===r?a=e:a=fo(t,r,e);let c=ao(co(a));return new $(c,s,i)}function fo(t,r,e){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===r?n[i]=e:n[i]=fo(o,r,e)}),new S(t.segments,n)}var rr=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,n){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=n,r&&n.length>0&&tr(n[0]))throw new R(4003,!1);let i=n.find(ht);if(i&&i!==Js(n))throw new R(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function ha(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new rr(!0,0,t);let r=0,e=!1,n=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===".."?r++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new rr(e,r,n)}var Oe=class{segmentGroup;processChildren;index;constructor(r,e,n){this.segmentGroup=r,this.processChildren=e,this.index=n}};function fa(t,r,e){if(t.isAbsolute)return new Oe(r,!0,0);if(!e)return new Oe(r,!1,NaN);if(e.parent===null)return new Oe(e,!0,0);let n=tr(t.commands[0])?0:1,i=e.segments.length-1+n;return pa(e,i,t.numberOfDoubleDots)}function pa(t,r,e){let n=t,i=r,o=e;for(;o>i;){if(o-=i,n=n.parent,!n)throw new R(4005,!1);i=n.segments.length}return new Oe(n,!1,i-o)}function ga(t){return ht(t[0])?t[0].outlets:{[p]:t}}function po(t,r,e){if(t??=new S([],{}),t.segments.length===0&&t.hasChildren())return lt(t,r,e);let n=ma(t,r,e),i=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let o=new S(t.segments.slice(0,n.pathIndex),{});return o.children[p]=new S(t.segments.slice(n.pathIndex),t.children),lt(o,0,i)}else return n.match&&i.length===0?new S(t.segments,{}):n.match&&!t.hasChildren()?hn(t,r,e):n.match?lt(t,0,i):hn(t,r,e)}function lt(t,r,e){if(e.length===0)return new S(t.segments,{});{let n=ga(e),i={};if(Object.keys(n).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=lt(t.children[p],r,e);return new S(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=po(t.children[o],r,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new S(t.segments,i)}}function ma(t,r,e){let n=0,i=r,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(n>=e.length)return o;let s=t.segments[i],a=e[n];if(ht(a))break;let c=`${a}`,u=n<e.length-1?e[n+1]:null;if(i>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!Ji(c,u,s))return o;n+=2}else{if(!Ji(c,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function hn(t,r,e){let n=t.segments.slice(0,r),i=0;for(;i<e.length;){let o=e[i];if(ht(o)){let c=va(o.outlets);return new S(n,c)}if(i===0&&tr(e[0])){let c=t.segments[r];n.push(new de(c.path,Wi(e[0]))),i++;continue}let s=ht(o)?o.outlets[p]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&tr(a)?(n.push(new de(s,Wi(a))),i+=2):(n.push(new de(s,{})),i++)}return new S(n,{})}function va(t){let r={};return Object.entries(t).forEach(([e,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[e]=hn(new S([],{}),0,n))}),r}function Wi(t){let r={};return Object.entries(t).forEach(([e,n])=>r[e]=`${n}`),r}function Ji(t,r,e){return t==e.path&&Z(r,e.parameters)}var Pe="imperative",O=(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})(O||{}),B=class{id;url;constructor(r,e){this.id=r,this.url=e}},pe=class extends B{type=O.NavigationStart;navigationTrigger;restoredState;constructor(r,e,n="imperative",i=null){super(r,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},K=class extends B{urlAfterRedirects;type=O.NavigationEnd;constructor(r,e,n){super(r,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},U=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromRe
2solver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(U||{}),Le=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Le||{}),G=class extends B{reason;code;type=O.NavigationCancel;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function go(t){return t instanceof G&&(t.code===U.Redirect||t.code===U.SupersededByNewNavigation)}var ee=class extends B{reason;code;type=O.NavigationSkipped;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}},we=class extends B{error;target;type=O.NavigationError;constructor(r,e,n,i){super(r,e),this.error=n,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ft=class extends B{urlAfterRedirects;state;type=O.RoutesRecognized;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},nr=class extends B{urlAfterRedirects;state;type=O.GuardsCheckStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ir=class extends B{urlAfterRedirects;state;shouldActivate;type=O.GuardsCheckEnd;constructor(r,e,n,i,o){super(r,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},or=class extends B{urlAfterRedirects;state;type=O.ResolveStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},sr=class extends B{urlAfterRedirects;state;type=O.ResolveEnd;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ar=class{route;type=O.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},cr=class{route;type=O.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},ur=class{snapshot;type=O.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},lr=class{snapshot;type=O.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},dr=class{snapshot;type=O.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},hr=class{snapshot;type=O.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},xe=class{routerEvent;position;anchor;scrollBehavior;type=O.Scroll;constructor(r,e,n,i){this.routerEvent=r,this.position=e,this.anchor=n,this.scrollBehavior=i}toString(){let r=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${r}')`}},ke=class{},pt=class{},je=class{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function ya(t){return!(t instanceof ke)&&!(t instanceof je)&&!(t instanceof pt)}var fr=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new ze(this.rootInjector)}},ze=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let i=this.getOrCreateContext(e);i.outlet=n,this.contexts.set(e,i)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new fr(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(w(J))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pr=class{_root;constructor(r){this._root=r}get root(){return this._root.value}
vendor: 16,748 bytes, line 2
2parent(r){let e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){let e=fn(r,this._root);return e?e.children.map(n=>n.value):[]}firstChild(r){let e=fn(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=pn(r,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return pn(r,this._root).map(e=>e.value)}};function fn(t,r){if(t===r.value)return r;for(let e of r.children){let n=fn(t,e);if(n)return n}return null}function pn(t,r){if(t===r.value)return[r];for(let e of r.children){let n=pn(t,e);if(n.length)return n.unshift(r),n}return[]}var F=class{value;children;constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function Ne(t){let r={};return t&&t.children.forEach(e=>r[e.value.outlet]=e),r}var gt=class extends pr{snapshot;constructor(r,e){super(r),this.snapshot=e,Sn(this,r)}toString(){return this.snapshot.toString()}};function mo(t,r){let e=Ra(t,r),n=new z([new de("",{})]),i=new z({}),o=new z({}),s=new z({}),a=new z(""),c=new oe(n,i,s,a,o,p,t,e.root);return c.snapshot=e.root,new gt(new F(c,[]),e)}function Ra(t,r){let e={},n={},i={},s=new Fe([],e,i,"",n,p,t,null,{},r);return new mt("",new F(s,[]))}var oe=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,e,n,i,o,s,a,c){this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(D(u=>u[Rt]))??g(void 0),this.url=r,this.params=e,this.queryParams=n,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(D(r=>Re(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(D(r=>Re(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Tn(t,r,e="emptyOnly"){let n,{routeConfig:i}=t;return r!==null&&(e==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:f(f({},r.params),t.params),data:f(f({},r.data),t.data),resolve:f(f(f(f({},t.data),r.data),i?.data),t._resolvedData)}:n={params:f({},t.params),data:f({},t.data),resolve:f(f({},t.data),t._resolvedData??{})},i&&yo(i)&&(n.resolve[Rt]=i.title),n}var Fe=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Rt]}constructor(r,e,n,i,o,s,a,c,u,d){this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u,this._environmentInjector=d}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??=Re(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Re(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${e}')`}},mt=class extends pr{url;constructor(r,e){super(e),this.url=r,Sn(this,e)}toString(){return vo(this._root)}};function Sn(t,r){r.value._routerState=t,r.children.forEach(e=>Sn(t,e))}function vo(t){let r=t.children.length>0?` { ${t.children.map(vo).join(", ")} } `:"";return`${t.value}${r}`}function sn(t){if(t.snapshot){let r=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Z(r.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),Z(r.params,e.params)||t.paramsSubject.next(e.params),Ws(r.url,e.url)||t.urlSubject.next(e.url),Z(r.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function gn(t,r){let e=Z(t.params,r.params)&&Qs(t.url,r.url),n=!t.parent!=!r.parent;return e&&!n&&(!t.parent||gn(t.parent,r.parent))}function yo(t){return typeof t.title=="string"||t.title===null}var Ro=new T(""),bn=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new Ce;deactivateEvents=new Ce;attachEvents=new Ce;detachEvents=new Ce;routerOutletData=ci();parentContexts=l(ze);location=l(Zn);changeDetector=l(Ur);inputBinder=l(yr,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:i}=e.name;if(n)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,n){this.activated=e,this._activatedRoute=n,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,n){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 mn(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:c,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=_t({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ct]})}return t})(),mn=class{route;childContexts;parent;outletData;constructor(r,e,n,i){this.route=r,this.childContexts=e,this.parent=n,this.outletData=i}get(r,e){return r===oe?this.route:r===ze?this.childContexts:r===Ro?this.outletData:this.parent.get(r,e)}},yr=new T("");var Cn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=ti({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&ii(0,"router-outlet")},dependencies:[bn],encapsulation:2})}return t})();function Mn(t){let r=t.children&&t.children.map(Mn),e=r?L(f({},t),{children:r}):f({},t);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=Cn),e}function wa(t,r,e){let n=vt(t,r._root,e?e._root:void 0);return new gt(n,r)}function vt(t,r,e){if(e&&t.shouldReuseRoute(r.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=r.value;let i=Ea(t,r,e);return new F(n,i)}else{if(t.shouldAttach(r.value)){let o=t.retrieve(r.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(a=>vt(t,a)),s}}let n=Ta(r.value),i=r.children.map(o=>vt(t,o));return new F(n,i)}}function Ea(t,r,e){return r.children.map(n=>{for(let i of e.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return vt(t,n,i);return vt(t,n)})}function Ta(t){return new oe(new z(t.url),new z(t.params),new z(t.queryParams),new z(t.fragment),new z(t.data),t.outlet,t.component,t)}var $e=class{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},wo="ngNavigationCancelingError";function gr(t,r){let{redirectTo:e,navigationBehaviorOptions:n}=fe(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=Eo(!1,U.Redirect);return i.url=e,i.navigationBehaviorOptions=n,i}function Eo(t,r){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[wo]=!0,e.cancellationCode=r,e}function Sa(t){return To(t)&&fe(t.url)}function To(t){return!!t&&t[wo]}var vn=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,e,n,i,o){this.routeReuseStrategy=r,this.futureState=e,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(r){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,r),sn(this.futureState.root),this.activateChildRoutes(e,n,r)}deactivateChildRoutes(r,e,n){let i=Ne(e);r.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(r,e,s.children)}else this.deactivateChildRoutes(r,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=Ne(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:s,route:r,contexts:a})}}deactivateRouteAndOutlet(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,o=Ne(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,e,n){let i=Ne(e);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new hr(o.value.snapshot))}),r.children.length&&this.forwardEvent(new lr(r.value.snapshot))}activateRoutes(r,e,n){let i=r.value,o=e?e.value:null;if(sn(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,e,s.children)}else this.activateChildRoutes(r,e,n);else if(i.component){let s=n.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),sn(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,n)}},mr=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},Ue=class{component;route;constructor(r,e){this.component=r,this.route=e}};function ba(t,r,e){let n=t._root,i=r?r._root:null;return ut(n,i,e,[n.value])}function Ca(t){let r=t.routeConfig?t.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:t,guards:r}}function He(t,r){let e=Symbol(),n=r.get(t,e);return n===e?typeof t=="function"&&!Fn(t)?t:r.get(t):n}function ut(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Ne(r);return t.children.forEach(s=>{Ma(s,o[s.value.outlet],e,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>dt(a,e.getContext(s),i)),i}function Ma(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=r?r.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=Ia(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new mr(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?ut(t,r,a?a.children:null,n,i):ut(t,r,e,n,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Ue(a.outlet.component,s))}else s&&dt(r,a,i),i.canActivateChecks.push(new mr(n)),o.component?ut(t,null,a?a.children:null,n,i):ut(t,null,e,n,i);return i}function Ia(t,r,e){if(typeof e=="function")return x(r._environmentInjector,()=>e(t,r));switch(e){case"pathParamsChange":return!ye(t.url,r.url);case"pathParamsOrQueryParamsChange":return!ye(t.url,r.url)||!Z(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!gn(t,r)||!Z(t.queryParams,r.queryParams);default:return!gn(t,r)}}function dt(t,r,e){let n=Ne(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?r?dt(s,r.children.getContext(o),e):dt(s,null,e):dt(s,r,e)}),i.component?r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new Ue(r.outlet.component,i)):e.canDeactivateChecks.push(new Ue(null,i)):e.canDeactivateChecks.push(new Ue(null,i))}function wt(t){return typeof t=="function"}function Da(t){return typeof t=="boolean"}function Aa(t){return t&&wt(t.canLoad)}function _a(t){return t&&wt(t.canActivate)}function Na(t){return t&&wt(t.canActivateChild)}function Oa(t){return t&&wt(t.canDeactivate)}function Pa(t){return t&&wt(t.canMatch)}function So(t){return t instanceof Ln||t?.name==="EmptyError"}var Yt=Symbol("INITIAL_VALUE");function Be(){return q(t=>xn(t.map(r=>r.pipe(Se(1),jn(Yt)))).pipe(D(r=>{for(let e of r)if(e!==!0){if(e===Yt)return Yt;if(e===!1||Ua(e))return e}return!0}),ue(r=>r!==Yt),Se(1)))}function Ua(t){return fe(t)||t instanceof $e}function bo(t){return t.aborted?g(void 0).pipe(Se(1)):new We(r=>{let e=()=>{r.next(),r.complete()};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function Co(t){return St(bo(t))}function La(t){return ce(r=>{let{targetSnapshot:e,currentSnapshot:n,guards:{canActivateChecks:i,canDeactivateChecks:o}}=r;return o.length===0&&i.length===0?g(L(f({},r),{guardsResult:!0})):xa(o,e,n).pipe(ce(s=>s&&Da(s)?ka(e,i,t):g(s)),D(s=>L(f({},r),{guardsResult:s})))})}function xa(t,r,e){return V(t).pipe(ce(n=>za(n.component,n.route,e,r)),le(n=>n!==!0,!0))}function ka(t,r,e){return V(r).pipe(Je(n=>kn(Fa(n.route.parent,e),ja(n.route,e),Ba(t,n.path),$a(t,n.route))),le(n=>n!==!0,!0))}function ja(t,r){return t!==null&&r&&r(new dr(t)),g(!0)}function Fa(t,r){return t!==null&&r&&r(new ur(t)),g(!0)}function $a(t,r){let e=r.routeConfig?r.routeConfig.canActivate:null;if(!e||e.length===0)return g(!0);let n=e.map(i=>Tt(()=>{let o=r._environmentInjector,s=He(i,o),a=_a(s)?s.canActivate(r,t):x(o,()=>s(r,t));return Ee(a).pipe(le())}));return g(n).pipe(Be())}function Ba(t,r){let e=r[r.length-1],i=r.slice(0,r.length-1).reverse().map(o=>Ca(o)).filter(o=>o!==null).map(o=>Tt(()=>{let s=o.guards.map(a=>{let c=o.node._environmentInjector,u=He(a,c),d=Na(u)?u.canActivateChild(e,t):x(c,()=>u(e,t));return Ee(d).pipe(le())});return g(s).pipe(Be())}));return g(i).pipe(Be())}function za(t,r,e,n){let i=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!i||i.length===0)return g(!0);let o=i.map(s=>{let a=r._environmentInjector,c=He(s,a),u=Oa(c)?c.canDeactivate(t,r,e,n):x(a,()=>c(t,r,e,n));return Ee(u).pipe(le())});return g(o).pipe(Be())}function Ha(t,r,e,n,i){let o=r.canLoad;if(o===void 0||o.length===0)return g(!0);let s=o.map(a=>{let c=He(a,t),u=Aa(c)?c.canLoad(r,e):x(t,()=>c(r,e)),d=Ee(u);return i?d.pipe(Co(i)):d});return g(s).pipe(Be(),Mo(n))}function Mo(t){return Pn(W(r=>{if(typeof r!="boolean")throw gr(t,r)}),D(r=>r===!0))}function Va(t,r,e,n,i,o){let s=r.canMatch;if(!s||s.length===0)return g(!0);let a=s.map(c=>{let u=He(c,t),d=Pa(u)?u.canMatch(r,e,i):x(t,()=>u(r,e,i));return Ee(d).pipe(Co(o))});return g(a).pipe(Be(),Mo(n))}
2var ie=class t extends Error{segmentGroup;constructor(r){super(),this.segmentGroup=r||null,Object.setPrototypeOf(this,t.prototype)}},yt=class t extends Error{urlTree;constructor(r){super(),this.urlTree=r,Object.setPrototypeOf(this,t.prototype)}};function qa(t){throw new R(4e3,!1)}function Ga(t){throw Eo(!1,U.GuardRejected)}var yn=class{urlSerializer;urlTree;constructor(r,e){this.urlSerializer=r,this.urlTree=e}lineralizeSegments(r,e){return C(this,null,function*(){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return n;if(i.numberOfChildren>1||!i.children[p])throw qa(`${r.redirectTo}`);i=i.children[p]}})}applyRedirectCommands(r,e,n,i,o){return C(this,null,function*(){let s=yield Wa(e,i,o);if(s instanceof $)throw new yt(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),r,n);if(s[0]==="/")throw new yt(a);return a})}applyRedirectCreateUrlTree(r,e,n,i){let o=this.createSegmentGroup(r,e.root,n,i);return new $(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){let n={};return Object.entries(r).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);n[i]=e[a]}else n[i]=o}),n}createSegmentGroup(r,e,n,i){let o=this.createSegments(r,e.segments,n,i),s={};return Object.entries(e.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(r,c,n,i)}),new S(o,s)}createSegments(r,e,n,i){return e.map(o=>o.path[0]===":"?this.findPosParam(r,o,i):this.findOrReturn(o,n))}findPosParam(r,e,n){let i=n[e.path.substring(1)];if(!i)throw new R(4001,!1);return i}findOrReturn(r,e){let n=0;for(let i of e){if(i.path===r.path)return e.splice(n),i;n++}return r}};function Wa(t,r,e){if(typeof t=="string")return Promise.resolve(t);let n=t;return er(Ee(x(e,()=>n(r))))}function Ja(t,r){return t.providers&&!t._injector&&(t._injector=Nr(t.providers,r,`Route: ${t.path}`)),t._injector??r}function Y(t){return t.outlet||p}function Xa(t,r){let e=t.filter(n=>Y(n)===r);return e.push(...t.filter(n=>Y(n)!==r)),e}var Rn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Io(t){return{routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function Ya(t,r,e,n,i,o,s){let a=Do(t,r,e);if(!a.matched)return g(a);let c=Io(o(a));return n=Ja(r,n),Va(n,r,e,i,c,s).pipe(D(u=>u===!0?a:f({},Rn)))}function Do(t,r,e){if(r.path==="")return r.pathMatch==="full"&&(t.hasChildren()||e.length>0)?f({},Rn):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(r.matcher||Ki)(e,t,r);if(!i)return f({},Rn);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?f(f({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Xi(t,r,e,n,i){return e.length>0&&Za(t,e,n,i)?{segmentGroup:new S(r,Qa(n,new S(e,t.children))),slicedSegments:[]}:e.length===0&&ec(t,e,n)?{segmentGroup:new S(t.segments,Ka(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new S(t.segments,t.children),slicedSegments:e}}function Ka(t,r,e,n){let i={};for(let o of e)if(Rr(t,r,o)&&!n[Y(o)]){let s=new S([],{});i[Y(o)]=s}return f(f({},n),i)}function Qa(t,r){let e={};e[p]=r;for(let n of t)if(n.path===""&&Y(n)!==p){let i=new S([],{});e[Y(n)]=i}return e}function Za(t,r,e,n){return e.some(i=>!Rr(t,r,i)||!(Y(i)!==p)?!1:!(n!==void 0&&Y(i)===n))}function ec(t,r,e){return e.some(n=>Rr(t,r,n))}function Rr(t,r,e){return(t.hasChildren()||r.length>0)&&e.pathMatch==="full"?!1:e.path===""}function tc(t,r,e){return r.length===0&&!t.children[e]}var wn=class{};function rc(t,r,e,n,i,o,s="emptyOnly",a){return C(this,null,function*(){return new En(t,r,e,n,i,s,o,a).recognize()})}var nc=31,En=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,e,n,i,o,s,a,c){this.injector=r,this.configLoader=e,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer
2=a,this.abortSignal=c,this.applyRedirects=new yn(this.urlSerializer,this.urlTree)}noMatchError(r){return new R(4002,`'${r.segmentGroup}'`)}recognize(){return C(this,null,function*(){let r=Xi(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:n}=yield this.match(r),i=new F(n,e),o=new mt("",i),s=uo(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}})}match(r){return C(this,null,function*(){let e=new Fe([],Object.freeze({}),Object.freeze(f({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,r,p,e),rootSnapshot:e}}catch(n){if(n instanceof yt)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof ie?this.noMatchError(n):n}})}processSegmentGroup(r,e,n,i,o){return C(this,null,function*(){if(n.segments.length===0&&n.hasChildren())return this.processChildren(r,e,n,o);let s=yield this.processSegment(r,e,n,n.segments,i,!0,o);return s instanceof F?[s]:[]})}processChildren(r,e,n,i){return C(this,null,function*(){let o=[];for(let c of Object.keys(n.children))c==="primary"?o.unshift(c):o.push(c);let s=[];for(let c of o){let u=n.children[c],d=Xa(e,c),h=yield this.processSegmentGroup(r,d,u,c,i);s.push(...h)}let a=Ao(s);return ic(a),a})}processSegment(r,e,n,i,o,s,a){return C(this,null,function*(){for(let c of e)try{return yield this.processSegmentAgainstRoute(c._injector??r,e,c,n,i,o,s,a)}catch(u){if(u instanceof ie||So(u))continue;throw u}if(tc(n,i,o))return new wn;throw new ie(n)})}processSegmentAgainstRoute(r,e,n,i,o,s,a,c){return C(this,null,function*(){if(Y(n)!==s&&(s===p||!Rr(i,o,n)))throw new ie(i);if(n.redirectTo===void 0)return this.matchSegmentAgainstRoute(r,i,n,o,s,c);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(r,i,e,n,o,s,c);throw new ie(i)})}expandSegmentAgainstRouteUsingRedirect(r,e,n,i,o,s,a){return C(this,null,function*(){let{matched:c,parameters:u,consumedSegments:d,positionalParamSegments:h,remainingSegments:m}=Do(e,i,o);if(!c)throw new ie(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>nc&&(this.allowRedirects=!1));let P=this.createSnapshot(r,i,o,u,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let _=yield this.applyRedirects.applyRedirectCommands(d,i.redirectTo,h,Io(P),r),b=yield this.applyRedirects.lineralizeSegments(i,_);return this.processSegment(r,n,e,b.concat(m),s,!1,a)})}createSnapshot(r,e,n,i,o){let s=new Fe(n,i,Object.freeze(f({},this.urlTree.queryParams)),this.urlTree.fragment,sc(e),Y(e),e.component??e._loadedComponent??null,e,ac(e),r),a=Tn(s,o,this.paramsInheritanceStrategy);return s.params=Object.freeze(a.params),s.data=Object.freeze(a.data),s}matchSegmentAgainstRoute(r,e,n,i,o,s){return C(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=k=>this.createSnapshot(r,n,k.consumedSegments,k.parameters,s),c=yield er(Ya(e,n,i,r,this.urlSerializer,a,this.abortSignal));if(n.path==="**"&&(e.children={}),!c?.matched)throw new ie(e);r=n._injector??r;let{routes:u}=yield this.getChildConfig(r,n,i),d=n._loadedInjector??r,{parameters:h,consumedSegments:m,remainingSegments:P}=c,_=this.createSnapshot(r,n,m,h,s),{segmentGroup:b,slicedSegments:y}=Xi(e,m,P,u,o);if(y.length===0&&b.hasChildren()){let k=yield this.processChildren(d,u,b,_);return new F(_,k)}if(u.length===0&&y.length===0)return new F(_,[]);let E=Y(n)===o,I=yield this.processSegment(d,u,b,y,E?p:o,!0,_);return new F(_,I instanceof F?[I]:[])})}getChildConfig(r,e,n){return C(this,null,function*(){if(e.children)return{routes:e.children,injector:r};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(r).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);
2if(yield er(Ha(r,e,n,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(r,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw Ga(e)}return{routes:[],injector:r}})}};function ic(t){t.sort((r,e)=>r.value.outlet===p?-1:e.value.outlet===p?1:r.value.outlet.localeCompare(e.value.outlet))}function oc(t){let r=t.value.routeConfig;return r&&r.path===""}function Ao(t){let r=[],e=new Set;for(let n of t){if(!oc(n)){r.push(n);continue}let i=r.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),e.add(i)):r.push(n)}for(let n of e){let i=Ao(n.children);r.push(new F(n.value,i))}return r.filter(n=>!e.has(n))}function sc(t){return t.data||{}}function ac(t){return t.resolve||{}}function cc(t,r,e,n,i,o,s){return ce(a=>C(null,null,function*(){let{state:c,tree:u}=yield rc(t,r,e,n,a.extractedUrl,i,o,s);return L(f({},a),{targetSnapshot:c,urlAfterRedirects:u})}))}function uc(t){return ce(r=>{let{targetSnapshot:e,guards:{canActivateChecks:n}}=r;if(!n.length)return g(r);let i=new Set(n.map(a=>a.route)),o=new Set;for(let a of i)if(!o.has(a))for(let c of _o(a))o.add(c);let s=0;return V(o).pipe(Je(a=>i.has(a)?lc(a,e,t):(a.data=Tn(a,a.parent,t).resolve,g(void 0))),W(()=>s++),Cr(1),ce(a=>s===o.size?g(r):H))})}function _o(t){let r=t.children.map(e=>_o(e)).flat();return[t,...r]}function lc(t,r,e){let n=t.routeConfig,i=t._resolve;return n?.title!==void 0&&!yo(n)&&(i[Rt]=n.title),Tt(()=>(t.data=Tn(t,t.parent,e).resolve,dc(i,t,r).pipe(D(o=>(t._resolvedData=o,t.data=f(f({},t.data),o),null)))))}function dc(t,r,e){let n=cn(t);if(n.length===0)return g({});let i={};return V(n).pipe(ce(o=>hc(t[o],r,e).pipe(le(),W(s=>{if(s instanceof $e)throw gr(new he,s);i[o]=s}))),Cr(1),D(()=>i),br(o=>So(o)?H:Un(o)))}function hc(t,r,e){let n=r._environmentInjector,i=He(t,n),o=i.resolve?i.resolve(r,e):x(n,()=>i(r,e));return Ee(o)}function Yi(t){return q(r=>{let e=t(r);return e?V(e).pipe(D(()=>r)):g(r)})}var In=(()=>{class t{buildTitle(e){let n,i=e.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(o=>o.outlet===p);return n}getResolvedTitleForRoute(e){return e.data[Rt]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:()=>l(No),providedIn:"root"})}return t})(),No=(()=>{class t extends In{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(w(Hi))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ve=new T("",{factory:()=>({})}),Et=new T(""),Oo=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=l(si);loadComponent(e,n){return C(this,null,function*(){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return Promise.resolve(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=C(this,null,function*(){try{let o=yield Zi(x(e,()=>n.loadComponent())),s=yield Lo(Uo(o));return this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s,s}finally{this.componentLoaders.delete(n)}});return this.componentLoaders.set(n,i),i})}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return Promise.resolve({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let i=C(this,null,function*(){try{let o=yield Po(n,this.compiler,e,this.onLoadEndListener);return n._loadedRoutes=o.routes,n._loadedInjector=o.injector,n._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(n)}});return this.childrenLoaders.set(n,i),i}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Po(t,r,e,n){return C(this,null,function*(){let i=yield Zi(x(e,()=>t.loadChildren())),o=yield Lo(Uo(i)),s;o instanceof ei||Array.isArray(o)?s=o:s=yield r.compileModuleAsync(o),n&&n(t);let a,c,u=!1,d;return Array.isArray(s)?(c=s,u=!0):(a=s.create(e).injector,d=s,c=a.get(Et,[],{optional:!0,self:!0}).flat()),{routes:c.map(Mn),injector:a,factory:d}})}function fc(t){return t&&typeof t=="object"&&"default"in t}function Uo(t){return fc(t)?t.default:t}function Lo(t){return C(this,null,function*(){return t})}var wr=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:()=>l(pc),providedIn:"root"})}return t})(),pc=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),xo=new T("");var gc=()=>{},ko=new T(""),Dn=(()=>{class t{currentNavigation=N(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=N(null);events=new ge;
2transitionAbortWithErrorSubject=new ge;configLoader=l(Oo);environmentInjector=l(J);destroyRef=l(Qe);urlSerializer=l(Te);rootContexts=l(ze);location=l(et);inputBindingEnabled=l(yr,{optional:!0})!==null;titleStrategy=l(In);options=l(Ve,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=l(wr);createViewTransition=l(xo,{optional:!0});navigationErrorHandler=l(ko,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>g(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new ar(i)),n=i=>this.events.next(new cr(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;A(()=>{this.transitions?.next(L(f({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(e){return this.transitions=new z(null),this.transitions.pipe(ue(n=>n!==null),q(n=>{let i=!1,o=new AbortController,s=()=>!i&&this.currentTransition?.id===n.id;return g(n).pipe(q(a=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",U.SupersededByNewNavigation),H;this.currentTransition=n;let c=this.lastSuccessfulNavigation();this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:c?L(f({},c),{previousNavigation:null}):null,abort:()=>o.abort(),routesRecognizeHandler:a.routesRecognizeHandler,beforeActivateHandler:a.beforeActivateHandler});let u=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!u&&d!=="reload")return this.events.next(new ee(a.id,this.urlSerializer.serialize(a.rawUrl),"",Le.IgnoredSameUrlNavigation)),a.resolve(!1),H;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return g(a).pipe(q(h=>(this.events.next(new pe(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),h.id!==this.navigationId?H:Promise.resolve(h))),cc(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),W(h=>{n.targetSnapshot=h.targetSnapshot,n.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation.update(m=>(m.finalUrl=h.urlAfterRedirects,m)),this.events.next(new pt)}),q(h=>V(n.routesRecognizeHandler.deferredHandle??g(void 0)).pipe(D(()=>h))),W(()=>{let h=new ft(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(h)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:h,extractedUrl:m,source:P,restoredState:_,extras:b}=a,y=new pe(h,this.urlSerializer.serialize(m),P,_);this.events.next(y);let E=mo(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=n=L(f({},a),{targetSnapshot:E,urlAfterRedirects:m,extras:L(f({},b),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(I=>(I.finalUrl=m,I)),g(n)}else return this.events.next(new ee(a.id,this.urlSerializer.serialize(a.extractedUrl),"",Le.IgnoredByUrlHandlingStrategy)),a.resolve(!1),H}),D(a=>{let c=new nr(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(c),this.currentTransition=n=L(f({},a),{guards:ba(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),n}),La(a=>this.events.next(a)),q(a=>{if(n.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw gr(this.urlSerializer,a.guardsResult);let c=new ir(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(c),!s())return H;
2if(!a.guardsResult)return this.cancelNavigationTransition(a,"",U.GuardRejected),H;if(a.guards.canActivateChecks.length===0)return g(a);let u=new or(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(u),!s())return H;let d=!1;return g(a).pipe(uc(this.paramsInheritanceStrategy),W({next:()=>{d=!0;let h=new sr(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(h)},complete:()=>{d||this.cancelNavigationTransition(a,"",U.NoDataFromResolver)}}))}),Yi(a=>{let c=d=>{let h=[];if(d.routeConfig?._loadedComponent)d.component=d.routeConfig?._loadedComponent;else if(d.routeConfig?.loadComponent){let m=d._environmentInjector;h.push(this.configLoader.loadComponent(m,d.routeConfig).then(P=>{d.component=P}))}for(let m of d.children)h.push(...c(m));return h},u=c(a.targetSnapshot.root);return u.length===0?g(a):V(Promise.all(u).then(()=>a))}),Yi(()=>this.afterPreactivation()),q(()=>{let{currentSnapshot:a,targetSnapshot:c}=n,u=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return u?V(u).pipe(D(()=>n)):g(n)}),Se(1),q(a=>{let c=wa(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=n=a=L(f({},a),{targetRouterState:c}),this.currentNavigation.update(d=>(d.targetRouterState=c,d)),this.events.next(new ke);let u=n.beforeActivateHandler.deferredHandle;return u?V(u.then(()=>a)):g(a)}),W(a=>{new vn(e.routeReuseStrategy,n.targetRouterState,n.currentRouterState,c=>this.events.next(c),this.inputBindingEnabled).activate(this.rootContexts),s()&&(i=!0,this.currentNavigation.update(c=>(c.abort=gc,c)),this.lastSuccessfulNavigation.set(A(this.currentNavigation)),this.events.next(new K(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0))}),St(bo(o.signal).pipe(ue(()=>!i&&!n.targetRouterState),W(()=>{this.cancelNavigationTransition(n,o.signal.reason+"",U.Aborted)}))),W({complete:()=>{i=!0}}),St(this.transitionAbortWithErrorSubject.pipe(W(a=>{throw a}))),Xe(()=>{o.abort(),i||this.cancelNavigationTransition(n,"",U.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),br(a=>{if(i=!0,this.destroyed)return n.resolve(!1),H;if(To(a))this.events.next(new G(n.id,this.urlSerializer.serialize(n.extractedUrl),a.message,a.cancellationCode)),Sa(a)?this.events.next(new je(a.url,a.navigationBehaviorOptions)):n.resolve(!1);else{let c=new we(n.id,this.urlSerializer.serialize(n.extractedUrl),a,n.targetSnapshot??void 0);try{let u=x(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(u instanceof $e){let{message:d,cancellationCode:h}=gr(this.urlSerializer,u);this.events.next(new G(n.id,this.urlSerializer.serialize(n.extractedUrl),d,h)),this.events.next(new je(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(u){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(u)}}return H}))}))}cancelNavigationTransition(e,n,i){let o=new G(e.id,this.urlSerializer.serialize(e.extractedUrl),n,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=A(this.currentNavigation),i=n?.targetBrowserUrl??n?.extractedUrl;return e.toString()!==i?.toString()&&!n?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function mc(t){return t!==Pe}var jo=new T("");var Fo=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:()=>l(vc),providedIn:"root"})}return t})(),vr=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}shouldDestroyInjector(r){return!0}},vc=(()=>{class t extends vr{static \u0275fac=(()=>{let e;return function(i){return(e||(e=Dr(t)))(i||t)}})();static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Er=(()=>
2{class t{urlSerializer=l(Te);options=l(Ve,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=l(et);urlHandlingStrategy=l(wr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new $;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:n,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,n):n,s=i??o;return s instanceof $?this.urlSerializer.serialize(s):s}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:n,initialUrl:i}){n&&e?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,i),this.routerState=e):this.rawUrlTree=i}routerState=mo(null,l(J));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:()=>l(yc),providedIn:"root"})}return t})(),yc=(()=>{class t extends Er{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{e(n.url,n.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(e,n){e instanceof pe?this.updateStateMemento():e instanceof ee?this.commitTransition(n):e instanceof ft?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof ke?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof G&&!go(e)?this.restoreHistory(n):e instanceof we?this.restoreHistory(n,!0):e instanceof K&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,n){let{extras:i,id:o}=n,{replaceUrl:s,state:a}=i;if(this.location.isCurrentPathEqualTo(e)||s){let c=this.browserPageId,u=f(f({},a),this.generateNgRouterState(o,c,n));this.location.replaceState(e,"",u)}else{let c=f(f({},a),this.generateNgRouterState(o,this.browserPageId+1,n));this.location.go(e,"",c)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n,i){return this.canceledNavigationResolution==="computed"?f({navigationId:e,\u0275routerPageId:n},this.routerUrlState(i)):f({navigationId:e},this.routerUrlState(i))}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Dr(t)))(i||t)}})();static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function An(t,r){t.events.pipe(ue(e=>e instanceof K||e instanceof G||e instanceof we||e instanceof ee),D(e=>e instanceof K||e instanceof ee?0:(e instanceof G?e.code===U.Redirect||e.code===U.SupersededByNewNavigation:!1)?2:1),ue(e=>e!==2),Se(1)).subscribe(()=>{r()})}var qe=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=l(Or);stateManager=l(Er);options=l(Ve,{optional:!0})||{};pendingTasks=l(Bn);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=l(Dn);
2urlSerializer=l(Te);location=l(et);urlHandlingStrategy=l(wr);injector=l(J);_events=new ge;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=l(Fo);injectorCleanup=l(jo,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=l(Et,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!l(yr,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new On;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,o=A(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof G&&n.code!==U.Redirect&&n.code!==U.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof K)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(n instanceof je){let s=n.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),c=f({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||mc(i.source)},s);this.scheduleNavigation(a,Pe,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}ya(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Pe,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n,i,o)=>{this.navigateToSyncWithBrowser(e,i,n,o)})}navigateToSyncWithBrowser(e,n,i,o){let s=i?.navigationId?i:null,a=i?.\u0275routerUrl??e;if(i?.\u0275routerUrl&&(o=L(f({},o),{browserUrl:e})),i){let u=f({},i);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(o.state=u)}let c=this.parseUrl(a);this.scheduleNavigation(c,n,s,o).catch(u=>{this.disposed||this.injector.get(bt)(u)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return A(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Mn),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=n,u=c?this.currentUrlTree.fragment:s,d=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":d=f(f({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let h;try{let m=i?i.snapshot:this.routerState.snapshot.root;h=lo(m)}catch(m){(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),h=this.currentUrlTree.root}return ho(h,e,d,u??null,this.urlSerializer)}navigateByUrl(e,n={skipLocationChange:!1}){let i=fe(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Pe,null,n)}navigate(e,n={skipLocationChange:!1}){return Rc(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(n){return this.console.warn(Ye(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,n){let i;if(n===!0?i=f({},to):n===!1?i=f({},un):i=f(f({},un),n),fe(e))return Vi(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Vi(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((n,[i,o])=>(o!=null&&(n[i]=o),n),{})}
2scheduleNavigation(e,n,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((h,m)=>{a=h,c=m});let d=this.pendingTasks.add();return An(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Rc(t){for(let r=0;r<t.length;r++)if(t[r]==null)throw new R(4008,!1)}var Ec=(()=>{class t{router=l(qe);stateManager=l(Er);fragment=N("");queryParams=N({});path=N("");serializer=l(Te);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof K&&this.updateState()})}updateState(){let{fragment:e,root:n,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(i),this.path.set(this.serializer.serialize(new $(n)))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),$o=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=l(new ai("href"),{optional:!0});reactiveHref=Pr(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return A(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}set target(e){this._target.set(e)}get target(){return A(this._target)}_target=N(void 0);set queryParams(e){this._queryParams.set(e)}get queryParams(){return A(this._queryParams)}_queryParams=N(void 0,{equal:()=>!1});set fragment(e){this._fragment.set(e)}get fragment(){return A(this._fragment)}_fragment=N(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e)}get queryParamsHandling(){return A(this._queryParamsHandling)}_queryParamsHandling=N(void 0);set state(e){this._state.set(e)}get state(){return A(this._state)}_state=N(void 0,{equal:()=>!1});set info(e){this._info.set(e)}get info(){return A(this._info)}_info=N(void 0,{equal:()=>!1});set relativeTo(e){this._relativeTo.set(e)}get relativeTo(){return A(this._relativeTo)}_relativeTo=N(void 0);set preserveFragment(e){this._preserveFragment.set(e)}get preserveFragment(){return A(this._preserveFragment)}_preserveFragment=N(!1);set skipLocationChange(e){this._skipLocationChange.set(e)}get skipLocationChange(){return A(this._skipLocationChange)}_skipLocationChange=N(!1);set replaceUrl(e){this._replaceUrl.set(e)}get replaceUrl(){return A(this._replaceUrl)}_replaceUrl=N(!1);isAnchorElement;onChanges=new ge;applicationErrorHandler=l(bt);options=l(Ve,{optional:!0});reactiveRouterState=l(Ec);constructor(e,n,i,o,s,a){this.router=e,this.route=n,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.onChanges.next(this)}routerLinkInput=N(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(fe(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,i,o,s){let a=this._urlTree();if(a===null||this.isAnchorElement&&(e!==0||n||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c)?.catch(u=>{this.applicationErrorHandler(u)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,n){let i=this.renderer,o=this.el.nativeElement;n!==null?i.setAttribute(o,e,n):i.removeAttribute(o,e)}_urlTree=Ot(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=i=>i==="preserve"||i==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let n=this.routerLinkInput();return n===null||!this.router.createUrlTree?null:fe(n)?n:this.router.createUrlTree(n,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,n)=>this.computeHref(e)===this.computeHref(n)});get urlTree(){return A(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(n){return new(n||t)(Me(qe),Me(oe),zn("tabindex"),Me(Kn),Me(Hn),Me(xr))};static \u0275dir=_t({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(n,i){n&1&&oi("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&ni("href",i.reactiveHref(),Jn)("target",i._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Pt],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Pt],replaceUrl:[2,"replaceUrl","replaceUrl",Pt],routerLink:"routerLink"},features:[Ct]})}return t})();var Bo=new T(""),Tc=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Pe;restoredId=0;store={};isHydrating=l(Wn,{optional:!0})??!1;
2urlSerializer=l(Te);zone=l(me);viewportScroller=l(pi);transitions=l(Dn);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&l(Ie).whenStable().then(()=>{this.isHydrating=!1})}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof pe?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof K?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof ee&&e.code===Le.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof xe)||e.scrollBehavior==="manual")return;let n={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],n):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,n):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,n){if(this.isHydrating)return;let i=A(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>C(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o)}),this.zone.run(()=>{this.transitions.events.next(new xe(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){Qn()};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();function Sc(t,...r){return be([{provide:Et,multi:!0,useValue:t},[],{provide:oe,useFactory:bc},{provide:Nt,multi:!0,useFactory:Ic},r.map(e=>e.\u0275providers)])}function bc(){return l(qe).routerState.root}function Cc(t,r){return{\u0275kind:t,\u0275providers:r}}function Mc(t={}){return Cc(4,[{provide:Bo,useFactory:()=>new Tc(t)}])}function Ic(){let t=l(Ke);return r=>{let e=t.get(Ie);if(r!==e.components[0])return;let n=t.get(qe),i=t.get(Dc);t.get(Ac)===1&&n.initialNavigation(),t.get(_c,null,{optional:!0})?.setUpPreloading(),t.get(Bo,null,{optional:!0})?.init(),n.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Dc=new T("",{factory:()=>new ge}),Ac=new T("",{factory:()=>1});var _c=new T("");export{Hr as a,ts as b,Wt as c,Ui as d,Is as e,Ds as f,As as g,dl as h,Hi as i,hl as j,K as k,oe as l,bn as m,qe as n,$o as o,Sc as p,Mc as q};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.