1import{A as Kt,Aa as Mr,B as he,Ba as Ar,Bb as ct,C as fr,Ca as Dr,Cb as Fr,D as re,Da as Or,Db as an,E as X,Ea as Pr,Eb as ut,F as Zt,Fa as Nr,Fb as lt,G as pr,Ga as se,Gb as ht,H as gr,Hb as cn,Ib as $r,Kb as zr,L as mr,La as Oe,Lb as dt,M as U,Mb as Br,N as vr,Nb as Vr,O as I,Oa as xr,Ob as D,P as T,Pb as qr,Qb as un,R as v,Ra as Ur,Rb as Wr,S as Ee,Sb as Gr,T as yr,Ta as _,Tb as Ne,U as C,Ua as sn,Ub as ft,V as Jt,Va as kr,W as m,X as d,Y as Yt,Ya as Lr,Z as wr,Za as on,_ as Ie,_a as Pe,a as ar,aa as Rr,ac as Hr,b as cr,ba as Me,c as ur,ca as Sr,cc as pt,d as Wt,da as Ae,dc as Xr,e as Gt,ec as gt,f as ne,fa as br,g as j,ga as K,ha as $,hb as jr,i as G,ia as Cr,j as A,k as p,l as Te,la as Qt,m as lr,n as hr,na as en,o as y,oa as tn,p as at,q as x,qa as De,r as Ht,ra as Tr,s as dr,sa as nn,t as Xt,ta as Er,ua as ie,w as V,wa as rn,x as le,xa as de,xb as _r,y as H,ya as fe,za as Ir}from"./chunk-6O6WDLEP.js";import{a as f,b as M,f as qt}from"./chunk-FO65GQC2.js";var Ue=class{},vt=class{},oe=class t{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map,n.split(` 2`).forEach(e=>{let r=e.indexOf(":");if(r>0){let i=e.slice(0,r),s=i.toLowerCase(),o=e.slice(r+1).trim();this.maybeSetNormalizedName(i,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEac
vendor: 4,674 bytes, line 2
2h((e,r)=>{this.setHeaderEntries(r,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,r])=>{this.setHeaderEntries(e,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();let e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){let e=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(n.name,e);let i=(n.op==="a"?this.headers.get(e):void 0)||[];i.push(...r),this.headers.set(e,i);break;case"d":let s=n.value;if(!s)this.headers.delete(e),this.normalizedNames.delete(e);else{let o=this.headers.get(e);if(!o)return;o=o.filter(c=>s.indexOf(c)===-1),o.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}break}}setHeaderEntries(n,e){let r=(Array.isArray(e)?e:[e]).map(s=>s.toString()),i=n.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(n,i)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}};var hn=class{encodeKey(n){return Kr(n)}encodeValue(n){return Kr(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function us(t,n){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let s=i.indexOf("="),[o,c]=s==-1?[n.decodeKey(i),""]:[n.decodeKey(i.slice(0,s)),n.decodeValue(i.slice(s+1))],a=e.get(o)||[];a.push(c),e.set(o,a)}),e}var ls=/%(\d[a-f0-9])/gi,hs={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Kr(t){return encodeURIComponent(t).replace(ls,(n,e)=>hs[e]??n)}function mt(t){return`${t}`}var Z=class t{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new hn,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=us(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let r=n.fromObject[e],i=Array.isArray(r)?r.map(mt):[mt(r)];this.map.set(e,i)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();let e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){let e=[];return Object.keys(n).forEach(r=>{let i=n[r];Array.isArray(i)?i.forEach(s=>{e.push({param:r,value:s,op:"a"})}):e.push({param:r,value:i,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{let e=this.encoder.encodeKey(n);return this.map.get(n).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>n!=="").join("&")}clone(n){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=(n.op==="a"?this.map.get(n.param):void 0)||[];e.push(mt(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let r=this.map.get(n.param)||[],i=r.indexOf(mt(n.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};var dn=class{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}
2keys(){return this.map.keys()}};function ds(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Zr(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Jr(t){return typeof Blob<"u"&&t instanceof Blob}function Yr(t){return typeof FormData<"u"&&t instanceof FormData}function fs(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var xe=class t{constructor(n,e,r,i){this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase();let s;if(ds(this.method)||i?(this.body=r!==void 0?r:null,s=i):s=r,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),this.transferCache=s.transferCache),this.headers??=new oe,this.context??=new dn,!this.params)this.params=new Z,this.urlWithParams=e;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=e;else{let c=e.indexOf("?"),a=c===-1?"?":c<e.length-1?"&":"";this.urlWithParams=e+a+o}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Zr(this.body)||Jr(this.body)||Yr(this.body)||fs(this.body)?this.body:this.body instanceof Z?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||Yr(this.body)?null:Jr(this.body)?this.body.type||null:Zr(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof Z?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(n={}){let e=n.method||this.method,r=n.url||this.url,i=n.responseType||this.responseType,s=n.transferCache??this.transferCache,o=n.body!==void 0?n.body:this.body,c=n.withCredentials??this.withCredentials,a=n.reportProgress??this.reportProgress,u=n.headers||this.headers,l=n.params||this.params,h=n.context??this.context;return n.setHeaders!==void 0&&(u=Object.keys(n.setHeaders).reduce((S,O)=>S.set(O,n.setHeaders[O]),u)),n.setParams&&(l=Object.keys(n.setParams).reduce((S,O)=>S.set(O,n.setParams[O]),l)),new t(e,r,o,{params:l,headers:u,context:h,reportProgress:a,responseType:i,withCredentials:c,transferCache:s})}},pe=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}(pe||{}),ke=class{constructor(n,e=Rt.Ok,r="OK"){this.headers=n.headers||new oe,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}},fn=class t extends ke{constructor(n={}){super(n),this.type=pe.ResponseHeader}clone(n={}){return new t({headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},yt=class t extends ke{constructor(n={}){super(n),this.type=pe.Response,this.body=n.body!==void 0?n.body:null}clone(n={}){return new t({body:n.body!==void 0?n.body:this.body,headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},wt=class extends ke{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${n.url||"(unknown url)"}`:this.message=`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}},Rt=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(Rt||{});function ln(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var ps=(()=>{class t{constructor(e){this.handler=e}request(e,r,i={}){let s;if(e instanceof xe)s=e;else{let a;i.headers instanceof oe?a=i.headers:a=new oe(i.headers);let u;i.params&&(i.params instanceof Z?u=i.params:u=new Z({fromObject:i.params})),s=new xe(e,r,i.body!==void 0?i.body:null,{headers:a,context:i.context,params:u,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let o=p(s).pipe(H(a=>this.handler.handle(a)));if(e instanceof xe||i.observe==="events")return o;let c=o.pipe(V(a=>a instanceof yt));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(y(a=>
2{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return a.body}));case"blob":return c.pipe(y(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new Error("Response is not a Blob.");return a.body}));case"text":return c.pipe(y(a=>{if(a.body!==null&&typeof a.body!="string")throw new Error("Response is not a string.");return a.body}));case"json":default:return c.pipe(y(a=>a.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:new Z().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,i={}){return this.request("PATCH",e,ln(i,r))}post(e,r,i={}){return this.request("POST",e,ln(i,r))}put(e,r,i={}){return this.request("PUT",e,ln(i,r))}static{this.\u0275fac=function(r){return new(r||t)(m(Ue))}}static{this.\u0275prov=v({token:t,factory:t.\u0275fac})}}return t})();function ri(t,n){return n(t)}function gs(t,n){return(e,r)=>n.intercept(e,{handle:i=>t(i,r)})}function ms(t,n,e){return(r,i)=>$(e,()=>n(r,s=>t(s,i)))}var vs=new C(""),bt=new C(""),ys=new C(""),ws=new C("");function Rs(){let t=null;return(n,e)=>{t===null&&(t=(d(vs,{optional:!0})??[]).reduceRight(gs,ri));let r=d(Pe),i=r.add();return t(n,e).pipe(re(()=>r.remove(i)))}}var Qr=(()=>{class t extends Ue{constructor(e,r){super(),this.backend=e,this.injector=r,this.chain=null,this.pendingTasks=d(Pe);let i=d(ws,{optional:!0});this.backend=i??e}handle(e){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(bt),...this.injector.get(ys,[])]));this.chain=i.reduceRight((s,o)=>ms(s,o,this.injector),ri)}let r=this.pendingTasks.add();return this.chain(e,i=>this.backend.handle(i)).pipe(re(()=>this.pendingTasks.remove(r)))}static{this.\u0275fac=function(r){return new(r||t)(m(vt),m(K))}}static{this.\u0275prov=v({token:t,factory:t.\u0275fac})}}return t})();var Ss=/^\)\]\}',?\n/;function bs(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var ei=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new T(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?A(r.\u0275loadImpl()):p(null)).pipe(U(()=>new ur(s=>{let o=r.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach((R,b)=>o.setRequestHeader(R,b.join(","))),e.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){let R=e.detectContentTypeHeader();R!==null&&o.setRequestHeader("Content-Type",R)}if(e.responseType){let R=e.responseType.toLowerCase();o.responseType=R!=="json"?R:"text"}let c=e.serializeBody(),a=null,u=()=>{if(a!==null)return a;let R=o.statusText||"OK",b=new oe(o.getAllResponseHeaders()),P=bs(o)||e.url;return a=new fn({headers:b,status:o.status,statusText:R,url:P}),a},l=()=>{let{headers:R,status:b,statusText:P,url:or}=u(),N=null;b!==Rt.NoContent&&(N=typeof o.response>"u"?o.responseText:o.response),b===0&&(b=N?Rt.Ok:0);let Vt=b>=200&&b<300;if(e.responseType==="json"&&typeof N=="string"){let is=N;N=N.replace(Ss,"");try{N=N!==""?JSON.parse(N):null}catch(ss){N=is,Vt&&(Vt=!1,N={error:ss,text:N})}}Vt?(s.next(new yt({body:N,headers:R,status:b,statusText:P,url:or||void 0})),s.complete()):s.error(new wt({error:N,headers:R,status:b,statusText:P,url:or||void 0}))},h=R=>{let{url:b}=u(),P=new wt({error:R,status:o.status||0,statusText:o.statusText||"Unknown Error",url:b||void 0});s.error(P)},S=!1,O=R=>{S||(s.next(u()),S=!0);let b={type:pe.DownloadProgress,loaded:R.loaded};R.lengthComputable&&(b.total=R.total),e.responseType==="text"&&o.responseText&&(b.partialText=o.responseText),s.next(b)},W=R=>{let b={type:pe.UploadProgress,loaded:R.loaded};R.lengthComputable&&(b.total=R.total),s.next(b)};return o.addEventListener("load",l),o.addEventListener("error",h),o.addEventListener("timeout",h),o.addEventListener("abort",h),e.reportProgress&&(o.addEventListener("progress",O),c!==null&&o.upload&&o.upload.addEventListener("progress",W)),o.send(c),s.next({type:pe.Sent}),()=>{o.removeEventListener("error",h),o.removeEventListener("abort",h),o.removeEventListener("load",l),o.removeEventListener("timeout",h),e.reportProgress&&(o.removeEventListener("progress",O),c!==null&&o.upload&&o.upload.removeEventListener("progress",W)),o.readyState!==o.DONE&&o.abort()}})))}static{this.\u0275fac=function(r){return new(r||t)(m(gt))}}static{this.\u0275prov=v({token:t,factory:t.\u0275fac})}}return t})(),ii=new C(""),Cs="XSRF-TOKEN",Ts=new C("",{providedIn:"root",factory:()=>Cs}),Es="X-XSRF-TOKEN",Is=new C("",{providedIn:"root",factory:()=>Es}),St=class{},Ms=(()=>{class t{constructor(e,r,i){this.doc=e,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=ft(e,this.cookieName),this.lastCookieString=e),this.lastToken}static{this.\u0275fac=function(r){return new(r||t)(m(D),m(ie),m(Ts))}}static{this.\u0275prov=v({token:t,factory:t.\u0275fac})}}return t})();function As(t,n){let e=t.url.toLowerCase();if(!d(ii)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return n(t);let r=d(St).getToken(),i=d(Is);return r!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,r)})),n(t)}var pn=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}(pn||{});function si(t,n){return{\u0275kind:t,\u0275providers:n}}function Ds(...t){let n=[ps,ei,Qr,{provide:Ue,useExisting:Qr},{provide:vt,useExisting:ei},{provide:bt,useValue:As,multi:!0},{provide:ii,useValue:!0},{provide:St,useClass:Ms}];for(let e of t)n.push(...e.\u0275providers);return Ae(n)}function pc(t){return si(pn.Interceptors,t.map(n=>({provide:bt,useValue:n,multi:!0})))}var ti=new C("");function Os(){return si(pn.LegacyInterceptors,[{provide:ti,useFactory:Rs},{provide:bt,useExisting:ti,multi:!0}])}var gc=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=Me({type:t})}static{this.\u0275inj=Ee({providers:[Ds(Os())]})}}return t})();var vn=class extends Vr{constructor(){super(...arguments),this.supportsDOMEvents=!0}},yn=class t extends vn{static makeCurrent(){Br(new t)}onAndCancel(n,e,r){return n.addEventListener(e,r),()=>{n.removeEventListener(e,r)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=xs();return e==null?null:Us(e)}resetBaseElement(){Le=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return ft(document.cookie,n)}},Le=null;function xs(){return Le=Le||document.querySelector("base"),Le?Le.getAttribute("href"):null}function Us(t){return new URL(t,document.baseURI).pathname}var ks=(()=>{class t{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=v({token:t,factory:t.\u0275fac})}}return t})(),wn=new C(""),ui=(()=>{class t{constructor(e,r){this._zone=r,this._eventNameToPlugin=new Map,e.forEach(i=>
2{i.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,r,i){return this._findPluginFor(r).addEventListener(e,r,i)}getZone(){return this._zone}_findPluginFor(e){let r=this._eventNameToPlugin.get(e);if(r)return r;if(r=this._plugins.find(s=>s.supports(e)),!r)throw new T(5101,!1);return this._eventNameToPlugin.set(e,r),r}static{this.\u0275fac=function(r){return new(r||t)(m(wn),m(_))}}static{this.\u0275prov=v({token:t,factory:t.\u0275fac})}}return t})(),Ct=class{constructor(n){this._doc=n}},gn="ng-app-id",li=(()=>{class t{constructor(e,r,i,s={}){this.doc=e,this.appId=r,this.nonce=i,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=pt(s),this.resetHostNodes()}addStyles(e){for(let r of e)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(e){for(let r of e)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(r=>r.remove()),e.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let r of this.getAllStyles())this.addStyleToHost(e,r)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let r of this.hostNodes)this.addStyleToHost(r,e)}onStyleRemoved(e){let r=this.styleRef;r.get(e)?.elements?.forEach(i=>i.remove()),r.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${gn}="${this.appId}"]`);if(e?.length){let r=new Map;return e.forEach(i=>{i.textContent!=null&&r.set(i.textContent,i)}),r}return null}changeUsageCount(e,r){let i=this.styleRef;if(i.has(e)){let s=i.get(e);return s.usage+=r,s.usage}return i.set(e,{usage:r,elements:[]}),r}getStyleElement(e,r){let i=this.styleNodesInDOM,s=i?.get(r);if(s?.parentNode===e)return i.delete(r),s.removeAttribute(gn),s;{let o=this.doc.createElement("style");return this.nonce&&o.setAttribute("nonce",this.nonce),o.textContent=r,this.platformIsServer&&o.setAttribute(gn,this.appId),e.appendChild(o),o}}addStyleToHost(e,r){let i=this.getStyleElement(e,r),s=this.styleRef,o=s.get(r)?.elements;o?o.push(i):s.set(r,{elements:[i],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||t)(m(D),m(nn),m(rn,8),m(ie))}}static{this.\u0275prov=v({token:t,factory:t.\u0275fac})}}return t})(),mn={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/MathML/"},Sn=/%COMP%/g,hi="%COMP%",Ls=`_nghost-${hi}`,js=`_ngcontent-${hi}`,_s=!0,Fs=new C("",{providedIn:"root",factory:()=>_s});function $s(t){return js.replace(Sn,t)}function zs(t){return Ls.replace(Sn,t)}function di(t,n){return n.map(e=>e.replace(Sn,t))}var oi=(()=>{class t{constructor(e,r,i,s,o,c,a,u=null){this.eventManager=e,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=o,this.platformId=c,this.ngZone=a,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=pt(c),this.defaultRenderer=new je(e,o,a,this.platformIsServer)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ie.ShadowDom&&(r=M(f({},r),{encapsulation:Ie.Emulated}));let i=this.getOrCreateRenderer(e,r);return i instanceof Tt?i.applyToHost(e):i instanceof _e&&i.applyStyles(),i}getOrCreateRenderer(e,r){let i=this.rendererByCompId,s=i.get(r.id);if(!s){let o=this.doc,c=this.ngZone,a=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(r.encapsulation){case Ie.Emulated:s=new Tt(a,u,r,this.appId,l,o,c,h);break;case Ie.ShadowDom:return new Rn(a,u,e,r,o,c,this.nonce,h);default:s=new _e(a,u,r,l,o,c,h);break}i.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||t)(m(ui),m(li),m(nn),m(Fs),m(D),m(ie),m(_),m(rn))}}static{this.\u0275prov=v({token:t,factory:t.\u0275fac})}}return t})(),je=class{constructor(n,e,r,i){this.eventManager=n,this.doc=e,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}
2createElement(n,e){return e?this.doc.createElementNS(mn[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(ai(n)?n.content:n).appendChild(e)}insertBefore(n,e,r){n&&(ai(n)?n.content:n).insertBefore(e,r)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let r=typeof n=="string"?this.doc.querySelector(n):n;if(!r)throw new T(-5104,!1);return e||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,r,i){if(i){e=i+":"+e;let s=mn[i];s?n.setAttributeNS(s,e,r):n.setAttribute(e,r)}else n.setAttribute(e,r)}removeAttribute(n,e,r){if(r){let i=mn[r];i?n.removeAttributeNS(i,e):n.removeAttribute(`${r}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,r,i){i&(Oe.DashCase|Oe.Important)?n.style.setProperty(e,r,i&Oe.Important?"important":""):n.style[e]=r}removeStyle(n,e,r){r&Oe.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,r){n!=null&&(n[e]=r)}setValue(n,e){n.nodeValue=e}listen(n,e,r){if(typeof n=="string"&&(n=dt().getGlobalEventTarget(this.doc,n),!n))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(r))}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault()}}};function ai(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Rn=class extends je{constructor(n,e,r,i,s,o,c,a){super(n,s,o,a),this.sharedStylesHost=e,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=di(i.id,i.styles);for(let l of u){let h=document.createElement("style");c&&h.setAttribute("nonce",c),h.textContent=l,this.shadowRoot.appendChild(h)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,r){return super.insertBefore(this.nodeOrShadowRoot(n),e,r)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},_e=class extends je{constructor(n,e,r,i,s,o,c,a){super(n,s,o,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i,this.styles=a?di(a,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Tt=class extends _e{constructor(n,e,r,i,s,o,c,a){let u=i+"-"+r.id;super(n,e,r,s,o,c,a,u),this.contentAttr=$s(u),this.hostAttr=zs(u)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let r=super.createElement(n,e);return super.setAttribute(r,this.contentAttr,""),r}},Bs=(()=>{class t extends Ct{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,i){return e.addEventListener(r,i,!1),()=>this.removeEventListener(e,r,i)}removeEventListener(e,r,i){return e.removeEventListener(r,i)}static{this.\u0275fac=function(r){return new(r||t)(m(D))}}static{this.\u0275prov=v({token:t,factory:t.\u0275fac})}}return t})(),ci=["alt","control","meta","shift"],Vs={"\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"},qs={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Ws=(()=>{class t extends Ct{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,r,i){let s=t.parseEventName(r),o=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>dt().onAndCancel(e,s.domEventName,o))}static parseEventName(e){let r=e.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let s=t._normalizeKey(r.pop()),o="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),o="code."),ci.forEach(u=>
2{let l=r.indexOf(u);l>-1&&(r.splice(l,1),o+=u+".")}),o+=s,r.length!=0||s.length===0)return null;let a={};return a.domEventName=i,a.fullKey=o,a}static matchEventFullKeyCode(e,r){let i=Vs[e.key]||e.key,s="";return r.indexOf("code.")>-1&&(i=e.code,s="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),ci.forEach(o=>{if(o!==i){let c=qs[o];c(e)&&(s+=o+".")}}),s+=i,s===r)}static eventCallback(e,r,i){return s=>{t.matchEventFullKeyCode(s,e)&&i.runGuarded(()=>r(s))}}static _normalizeKey(e){return e==="esc"?"escape":e}static{this.\u0275fac=function(r){return new(r||t)(m(D))}}static{this.\u0275prov=v({token:t,factory:t.\u0275fac})}}return t})();function Lc(t,n){return $r(f({rootComponent:t},Gs(n)))}function Gs(t){return{appProviders:[...Js,...t?.providers??[]],platformProviders:Zs}}function Hs(){yn.makeCurrent()}function Xs(){return new tn}function Ks(){return Tr(document),document}var Zs=[{provide:ie,useValue:Hr},{provide:Er,useValue:Hs,multi:!0},{provide:D,useFactory:Ks,deps:[]}];var Js=[{provide:br,useValue:"root"},{provide:tn,useFactory:Xs,deps:[]},{provide:wn,useClass:Bs,multi:!0,deps:[D,_,ie]},{provide:wn,useClass:Ws,multi:!0,deps:[D]},oi,li,ui,{provide:Ur,useExisting:oi},{provide:gt,useClass:ks,deps:[]},[]];var jc=(()=>{class t{constructor(e){this._doc=e,this._dom=dt()}addTag(e,r=!1){return e?this._getOrCreateElement(e,r):null}addTags(e,r=!1){return e?e.reduce((i,s)=>(s&&i.push(this._getOrCreateElement(s,r)),i),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];let r=this._doc.querySelectorAll(`meta[${e}]`);return r?[].slice.call(r):[]}updateTag(e,r){if(!e)return null;r=r||this._parseSelector(e);let i=this.getTag(r);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,r=!1){if(!r){let o=this._parseSelector(e),c=this.getTags(o).filter(a=>this._containsAttributes(e,a))[0];if(c!==void 0)return c}let i=this._dom.createElement("meta");return this._setMetaElementAttributes(e,i),this._doc.getElementsByTagName("head")[0].appendChild(i),i}_setMetaElementAttributes(e,r){return Object.keys(e).forEach(i=>r.setAttribute(this._getMetaKeyMap(i),e[i])),r}_parseSelector(e){let r=e.name?"name":"property";return`${r}="${e[r]}"`}_containsAttributes(e,r){return Object.keys(e).every(i=>r.getAttribute(this._getMetaKeyMap(i))===e[i])}_getMetaKeyMap(e){return Ys[e]||e}static{this.\u0275fac=function(r){return new(r||t)(m(D))}}static{this.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Ys={httpEquiv:"http-equiv"},fi=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(r){return new(r||t)(m(D))}}static{this.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Qs=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=v({token:t,factory:function(r){let i=null;return r?i=new(r||t):i=m(eo),i},providedIn:"root"})}}return t})(),eo=(()=>{class t extends Qs{constructor(e){super(),this._doc=e}sanitize(e,r){if(r==null)return null;switch(e){case se.NONE:return r;case se.HTML:return fe(r,"HTML")?de(r):Nr(this._doc,String(r)).toString();case se.STYLE:return fe(r,"Style")?de(r):r;case se.SCRIPT:if(fe(r,"Script"))return de(r);throw new T(5200,!1);case se.URL:return fe(r,"URL")?de(r):Pr(String(r));case se.RESOURCE_URL:if(fe(r,"ResourceURL"))return de(r);throw new T(5201,!1);default:throw new T(5202,!1)}}bypassSecurityTrustHtml(e){return Ir(e)}bypassSecurityTrustStyle(e){return Mr(e)}bypassSecurityTrustScript(e){return Ar(e)}bypassSecurityTrustUrl(e){return Dr(e)}bypassSecurityTrustResourceUrl(e){return Or(e)}static{this.\u0275fac=function(r){return new(r||t)(m(D))}}static{this.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var g="primary",et=Symbol("RouteTitle"),In=class{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function we(t){return new In(t)}function no(t,n,e){let r=e.path.split("/");if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let i={};for(let s=0;s<r.length;s++){let o=r[s],c=t[s];if(o.startsWith(":"))i[o.substring(1)]=c;else if(o!==c.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function ro(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!z(t[e],n[e]))return!1;return!0}function z(t,n){let e=t?Mn(t):void 0,r=n?Mn(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let s=0;s<e.length;s++)if(i=e[s],!bi(t[i],n[i]))return!1;return!0}function Mn(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function bi(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,s)=>r[s]===i)}else return t===n}function Ci(t){return t.length>0?t[t.length-1]:null}function te(t){return lr(t)?t:Fr(t)?A(Promise.resolve(t)):p(t)}var io={exact:Ei,subset:Ii},Ti={exact:so,subset:oo,ignored:()=>!0};function pi(t,n,e){return io[e.paths](t.root,n.root,e.matrixParams)&&Ti[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function so(t,n){return z(t,n)}function Ei(t,n,e){if(!ce(t.segments,n.segments)||!Mt(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!Ei(t.children[r],n.children[r],e))return!1;return!0}function oo(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>bi(t[e],n[e]))}function Ii(t,n,e){return Mi(t,n,n.segments,e)}function Mi(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);
vendor: 11,622 bytes, line 2
2return!(!ce(i,e)||n.hasChildren()||!Mt(i,e,r))}else if(t.segments.length===e.length){if(!ce(t.segments,e)||!Mt(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!Ii(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),s=e.slice(t.segments.length);return!ce(t.segments,i)||!Mt(t.segments,i,r)||!t.children[g]?!1:Mi(t.children[g],n,s,r)}}function Mt(t,n,e){return n.every((r,i)=>Ti[e](t[i].parameters,r.parameters))}var J=class{constructor(n=new w([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=we(this.queryParams),this._queryParamMap}toString(){return uo.serialize(this)}},w=class{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return At(this)}},ae=class{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=we(this.parameters),this._parameterMap}toString(){return Di(this)}};function ao(t,n){return ce(t,n)&&t.every((e,r)=>z(e.parameters,n[r].parameters))}function ce(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function co(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===g&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==g&&(e=e.concat(n(i,r)))}),e}var tt=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=v({token:t,factory:()=>new We,providedIn:"root"})}}return t})(),We=class{parse(n){let e=new Dn(n);return new J(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${Fe(n.root,!0)}`,r=fo(n.queryParams),i=typeof n.fragment=="string"?`#${lo(n.fragment)}`:"";return`${e}${r}${i}`}},uo=new We;function At(t){return t.segments.map(n=>Di(n)).join("/")}function Fe(t,n){if(!t.hasChildren())return At(t);if(n){let e=t.children[g]?Fe(t.children[g],!1):"",r=[];return Object.entries(t.children).forEach(([i,s])=>{i!==g&&r.push(`${i}:${Fe(s,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=co(t,(r,i)=>i===g?[Fe(t.children[g],!1)]:[`${i}:${Fe(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[g]!=null?`${At(t)}/${e[0]}`:`${At(t)}/(${e.join("//")})`}}function Ai(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Et(t){return Ai(t).replace(/%3B/gi,";")}function lo(t){return encodeURI(t)}function An(t){return Ai(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Dt(t){return decodeURIComponent(t)}function gi(t){return Dt(t.replace(/\+/g,"%20"))}function Di(t){return`${An(t.path)}${ho(t.parameters)}`}function ho(t){return Object.entries(t).map(([n,e])=>`;${An(n)}=${An(e)}`).join("")}function fo(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${Et(e)}=${Et(i)}`).join("&"):`${Et(e)}=${Et(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var po=/^[^\/()?;#]+/;function bn(t){let n=t.match(po);return n?n[0]:""}var go=/^[^\/()?;=#]+/;function mo(t){let n=t.match(go);return n?n[0]:""}var vo=/^[^=?&#]+/;function yo(t){let n=t.match(vo);return n?n[0]:""}var wo=/^[^&#]+/;function Ro(t){let n=t.match(wo);return n?n[0]:""}var Dn=class{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new w([],{}):new w([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[g]=new w(n,e)),r}parseSegment(){let n=bn(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new T(4009,!1);return this.capture(n),new ae(Dt(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=mo(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=bn(this.remaining);i&&(r=i,this.capture(r))}n[Dt(e)]=Dt(r)}parseQueryParam(n){let e=yo(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let o=Ro(this.remaining);o&&(r=o,this.capture(r))}let i=gi(e),s=gi(r);if(n.hasOwnProperty(i)){let o=n[i];Array.isArray(o)||(o=[o],n[i]=o),o.push(s)}else n[i]=s}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=bn(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new T(4010,!1);let s;r.indexOf(":")>-1?(s=r.slice(0,r.indexOf(":")),this.capture(s),this.capture(":")):n&&(s=g);let o=this.parseChildren();e[s]=Object.keys(o).length===1?o[g]:new w([],o),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new T(4011,!1)}};function Oi(t){return t.segments.length>0?new w([],{[g]:t}):t}function Pi(t){let n={};for(let[r,i]of Object.entries(t.children)){let s=Pi(i);if(r===g&&s.segments.length===0&&s.hasChildren())for(let[o,c]of Object.entries(s.children))n[o]=c;else(s.segments.length>0||s.hasChildren())&&(n[r]=s)}let e=new w(t.segments,n);return So(e)}function So(t){if(t.numberOfChildren===1&&t.children[g]){let n=t.children[g];return new w(t.segments.concat(n.segments),n.children)}return t}function Re(t){return t instanceof J}function bo(t,n,e=null,r=null){let i=Ni(t);return xi(i,n,e,r)}function Ni(t){let n;function e(s){let o={};for(let a of s.children){let u=e(a);o[a.outlet]=u}let c=new w(s.url,o);return s===t&&(n=c),c}let r=e(t.root),i=Oi(r);return n??i}function xi(t,n,e,r){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return Cn(i,i,i,e,r);let s=Co(n);if(s.toRoot())return Cn(i,i,new w([],{}),e,r);let o=To(s,i,t),c=o.processChildren?Be(o.segmentGroup,o.index,s.commands):ki(o.segmentGroup,o.index,s.commands);return Cn(i,o.segmentGroup,c,e,r)}function Ot(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Ge(t){return typeof t=="object"&&t!=null&&t.outlets}function Cn(t,n,e,r,i){let s={};r&&Object.entries(r).forEach(([a,u])=>{s[a]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let o;t===n?o=e:o=Ui(t,n,e);let c=Oi(Pi(o));return new J(c,s,i)}function Ui(t,n,e){let r={};return Object.entries(t.children).forEach(([i,s])=>{s===n?r[i]=e:r[i]=Ui(s,n,e)}),new w(t.segments,r)}var Pt=class{constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&Ot(r[0]))throw new T(4003,!1);let i=r.find(Ge);if(i&&i!==Ci(r))throw new T(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Co(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Pt(!0,0,t);let n=0,e=!1,r=t.reduce((i,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let c={};return Object.entries(s.outlets).forEach(([a,u])=>{c[a]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:c}]}if(s.segmentPath)return[...i,s.segmentPath]}return typeof s!="string"?[...i,s]:o===0?(s.split("/").forEach((c,a)=>{a==0&&c==="."||(a==0&&c===""?e=!0:c===".."?n++:c!=""&&i.push(c))}),i):[...i,s]},[]);return new Pt(e,n,r)}var ve=class{constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function To(t,n,e){if(t.isAbsolute)return new ve(n,!0,0);if(!e)return new ve(n,!1,NaN);if(e.parent===null)return new ve(e,!0,0);let r=Ot(t.commands[0])?0:1,i=e.segments.length-1+r;return Eo(e,i,t.numberOfDoubleDots)}function Eo(t,n,e){let r=t,i=n,s=e;for(;s>i;){if(s-=i,r=r.parent,!r)throw new T(4005,!1);i=r.segments.length}return new ve(r,!1,i-s)}function Io(t){return Ge(t[0])?t[0].outlets:{[g]:t}}function ki(t,n,e){if(t??=new w([],{}),t.segments.length===0&&t.hasChildren())return Be(t,n,e);let r=Mo(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let s=new w(t.segments.slice(0,r.pathIndex),{});return s.children[g]=new w(t.segments.slice(r.pathIndex),t.children),Be(s,0,i)}else return r.match&&i.length===0?new w(t.segments,{}):r.match&&!t.hasChildren()?On(t,n,e):r.match?Be(t,0,i):On(t,n,e)}function Be(t,n,e){if(e.length===0)return new w(t.segments,{});{let r=Io(e),i={};if(Object.keys(r).some(s=>s!==g)&&t.children[g]&&t.numberOfChildren===1&&t.children[g].segments.length===0){let s=Be(t.children[g],n,e);return new w(t.segments,s.children)}return Object.entries(r).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(i[s]=ki(t.children[s],n,o))}),Object.entries(t.children).forEach(([s,o])=>{r[s]===void 0&&(i[s]=o)}),new w(t.segments,i)}}function Mo(t,n,e){let r=0,i=n,s={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return s;let o=t.segments[i],c=e[r];if(Ge(c))break;let a=`${c}`,u=r<e.length-1?e[r+1]:null;if(i>0&&a===void 0)break;if(a&&u&&typeof u=="object"&&u.outlets===void 0){if(!vi(a,u,o))return s;r+=2}else{if(!vi(a,{},o))return s;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function On(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let s=e[i];if(Ge(s)){let a=Ao(s.outlets);return new w(r,a)}if(i===0&&Ot(e[0])){let a=t.segments[n];r.push(new ae(a.path,mi(e[0]))),i++;continue}let o=Ge(s)?s.outlets[g]:`${s}`,c=i<e.length-1?e[i+1]:null;o&&c&&Ot(c)?(r.push(new ae(o,mi(c))),i+=2):(r.push(new ae(o,{})),i++)}return new w(r,{})}function Ao(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=On(new w([],{}),0,r))}),n}function mi(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function vi(t,n,e){return t==e.path&&z(n,e.parameters)}var Ve="imperative",E=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(E||{}),F=class{constructor(n,e){this.id=n,this.url=e}},Se=class extends F{constructor(n,e,r="imperative",i=null){super(n,e),this.type=E.NavigationStart,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},q=class extends F{constructor(n,e,r){super(n,e),this.urlAfterRedirects=r,this.type=E.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},L=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}(L||{}),Nt=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Nt||{}),Y=class extends F{constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i,this.type=E.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Q=class extends F{constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i,this.type=E.NavigationSkipped}},He=class extends F{constructor(n,e,r,i){super(n,e),this.error=r,this.target=i,this.type=E.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},xt=class extends F{constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i,this.type=E.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Pn=class extends F{constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i,this.type=E.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Nn=class extends F{constructor(n,e,r,i,s){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=s,this.type=E.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},xn=class extends F{constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i,this.type=E.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Un=class extends F{constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i,this.type=E.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},kn=class{constructor(n){this.route=n,this.type=E.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ln=class{constructor(n){this.route=n,this.type=E.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},jn=class{constructor(n){this.snapshot=n,this.type=E.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},_n=class{constructor(n){this.snapshot=n,this.type=E.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Fn=class{constructor(n){this.snapshot=n,this.type=E.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},$n=class{constructor(n){this.snapshot=n,this.type=E.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ut=class{constructor(n,e,r){this.routerEvent=n,this.position=e,this.anchor=r,this.type=E.Scroll}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Xe=class{},Ke=class{constructor(n){this.url=n}};var zn=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new nt,this.attachRef=null}},nt=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new zn,this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),kt=class{constructor(n){this._root=n}get root(){return this._root.value}
2parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=Bn(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Bn(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=Vn(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return Vn(n,this._root).map(e=>e.value)}};function Bn(t,n){if(t===n.value)return n;for(let e of n.children){let r=Bn(t,e);if(r)return r}return null}function Vn(t,n){if(t===n.value)return[n];for(let e of n.children){let r=Vn(t,e);if(r.length)return r.unshift(n),r}return[]}var k=class{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function me(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var Lt=class extends kt{constructor(n,e){super(n),this.snapshot=e,Qn(this,n)}toString(){return this.snapshot.toString()}};function Li(t){let n=Do(t),e=new j([new ae("",{})]),r=new j({}),i=new j({}),s=new j({}),o=new j(""),c=new ue(e,r,s,o,i,g,t,n.root);return c.snapshot=n.root,new Lt(new k(c,[]),n)}function Do(t){let n={},e={},r={},i="",s=new Ze([],n,r,i,e,g,t,null,{});return new jt("",new k(s,[]))}var ue=class{constructor(n,e,r,i,s,o,c,a){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=s,this.outlet=o,this.component=c,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(y(u=>u[et]))??p(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(y(n=>we(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(y(n=>we(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Yn(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:f(f({},n.params),t.params),data:f(f({},n.data),t.data),resolve:f(f(f(f({},t.data),n.data),i?.data),t._resolvedData)}:r={params:f({},t.params),data:f({},t.data),resolve:f(f({},t.data),t._resolvedData??{})},i&&_i(i)&&(r.resolve[et]=i.title),r}var Ze=class{get title(){return this.data?.[et]}constructor(n,e,r,i,s,o,c,a,u){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=s,this.outlet=o,this.component=c,this.routeConfig=a,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=we(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=we(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},jt=class extends kt{constructor(n,e){super(e),this.url=n,Qn(this,e)}toString(){return ji(this._root)}};function Qn(t,n){n.value._routerState=t,n.children.forEach(e=>Qn(t,e))}function ji(t){let n=t.children.length>0?` { ${t.children.map(ji).join(", ")} } `:"";return`${t.value}${n}`}function Tn(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,z(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),z(n.params,e.params)||t.paramsSubject.next(e.params),ro(n.url,e.url)||t.urlSubject.next(e.url),z(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function qn(t,n){let e=z(t.params,n.params)&&ao(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||qn(t.parent,n.parent))}function _i(t){return typeof t.title=="string"||t.title===null}var Oo=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=g,this.activateEvents=new De,this.deactivateEvents=new De,this.attachEvents=new De,this.detachEvents=new De,this.parentContexts=d(nt),this.location=d(kr),this.changeDetector=d(cn),this.environmentInjector=d(K),this.inputBinder=d(zt,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new T(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new T(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new T(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new T(4013,!1);this._activatedRoute=e;let i=this.location,o=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,a=new Wn(e,c,i.injector);this.activated=i.createComponent(o,{index:i.length,injector:a,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275dir=Sr({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Cr]})}}return t})(),Wn=class t{__ngOutletInjector(n){return new t(this.route,this.childContexts,n)}constructor(n,e,r){this.route=n,this.childContexts=e,this.parent=r}get(n,e){return n===ue?this.route:n===nt?this.childContexts:this.parent.get(n,e)}},zt=new C(""),yi=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,i=at([r.queryParams,r.params,r.data]).pipe(U(([s,o,c],a)=>(c=f(f(f({},s),o),c),a===0?p(c):Promise.resolve(c)))).subscribe(s=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let o=zr(r.component);if(!o){this.unsubscribeFromRouteData(e);return}for(let{templateName:c}of o.inputs)e.activatedComponentRef.setInput(c,s[c])});this.outletDataSubscriptions.set(e,i)}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=v({token:t,factory:t.\u0275fac})}}return t})();function Po(t,n,e){let r=Je(t,n._root,e?e._root:void 0);return new Lt(r,n)}function Je(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;
2let i=No(t,n,e);return new k(r,i)}else{if(t.shouldAttach(n.value)){let s=t.retrieve(n.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=n.value,o.children=n.children.map(c=>Je(t,c)),o}}let r=xo(n.value),i=n.children.map(s=>Je(t,s));return new k(r,i)}}function No(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return Je(t,r,i);return Je(t,r)})}function xo(t){return new ue(new j(t.url),new j(t.params),new j(t.queryParams),new j(t.fragment),new j(t.data),t.outlet,t.component,t)}var Fi="ngNavigationCancelingError";function $i(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=Re(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=zi(!1,L.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function zi(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[Fi]=!0,e.cancellationCode=n,e}function Uo(t){return Bi(t)&&Re(t.url)}function Bi(t){return!!t&&t[Fi]}var ko=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=Rr({type:t,selectors:[["ng-component"]],standalone:!0,features:[_r],decls:1,vars:0,template:function(r,i){r&1&&jr(0,"router-outlet")},dependencies:[Oo],encapsulation:2})}}return t})();function Lo(t,n){return t.providers&&!t._injector&&(t._injector=on(t.providers,n,`Route: ${t.path}`)),t._injector??n}function er(t){let n=t.children&&t.children.map(er),e=n?M(f({},t),{children:n}):f({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==g&&(e.component=ko),e}function B(t){return t.outlet||g}function jo(t,n){let e=t.filter(r=>B(r)===n);return e.push(...t.filter(r=>B(r)!==n)),e}function rt(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var _o=(t,n,e,r)=>y(i=>(new Gn(n,i.targetRouterState,i.currentRouterState,e,r).activate(t),i)),Gn=class{constructor(n,e,r,i,s){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=s}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Tn(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=me(e);n.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,i[o],r),delete i[o]}),Object.values(i).forEach(s=>{this.deactivateRouteAndItsChildren(s,r)})}deactivateRoutes(n,e,r){let i=n.value,s=e?e.value:null;if(i===s)if(i.component){let o=r.getContext(i.outlet);o&&this.deactivateChildRoutes(n,e,o.children)}else this.deactivateChildRoutes(n,e,r);else s&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,s=me(n);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);if(r&&r.outlet){let o=r.outlet.detach(),c=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:o,route:n,contexts:c})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,s=me(n);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=me(e);n.children.forEach(s=>{this.activateRoutes(s,i[s.value.outlet],r),this.forwardEvent(new $n(s.value.snapshot))}),n.children.length&&this.forwardEvent(new _n(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,s=e?e.value:null;if(Tn(i),i===s)if(i.component){let o=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,o.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let o=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let c=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),o.children.onOutletReAttached(c.contexts),o.attachRef=c.componentRef,o.route=c.route.value,o.outlet&&o.outlet.attach(c.componentRef,c.route.value),Tn(c.route.value),this.activateChildRoutes(n,null,o.children)}else{let c=rt(i.snapshot);o.attachRef=null,o.route=i,o.injector=c,o.outlet&&o.outlet.activateWith(i,o.injector),this.activateChildRoutes(n,null,o.children)}}else this.activateChildRoutes(n,null,r)}},_t=class{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},ye=class{constructor(n,e){this.component=n,this.route=e}};
vendor: 4,299 bytes, line 2
2function Fo(t,n,e){let r=t._root,i=n?n._root:null;return $e(r,i,e,[r.value])}function $o(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Ce(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!yr(t)?t:n.get(t):r}function $e(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=me(n);return t.children.forEach(o=>{zo(o,s[o.value.outlet],e,r.concat([o.value]),i),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,c])=>qe(c,e.getContext(o),i)),i}function zo(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=t.value,o=n?n.value:null,c=e?e.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let a=Bo(o,s,s.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new _t(r)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?$e(t,n,c?c.children:null,r,i):$e(t,n,e,r,i),a&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new ye(c.outlet.component,o))}else o&&qe(n,c,i),i.canActivateChecks.push(new _t(r)),s.component?$e(t,null,c?c.children:null,r,i):$e(t,null,e,r,i);return i}function Bo(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!ce(t.url,n.url);case"pathParamsOrQueryParamsChange":return!ce(t.url,n.url)||!z(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!qn(t,n)||!z(t.queryParams,n.queryParams);case"paramsChange":default:return!qn(t,n)}}function qe(t,n,e){let r=me(t),i=t.value;Object.entries(r).forEach(([s,o])=>{i.component?n?qe(o,n.children.getContext(s),e):qe(o,null,e):qe(o,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new ye(n.outlet.component,i)):e.canDeactivateChecks.push(new ye(null,i)):e.canDeactivateChecks.push(new ye(null,i))}function it(t){return typeof t=="function"}function Vo(t){return typeof t=="boolean"}function qo(t){return t&&it(t.canLoad)}function Wo(t){return t&&it(t.canActivate)}function Go(t){return t&&it(t.canActivateChild)}function Ho(t){return t&&it(t.canDeactivate)}function Xo(t){return t&&it(t.canMatch)}function Vi(t){return t instanceof hr||t?.name==="EmptyError"}var It=Symbol("INITIAL_VALUE");function be(){return U(t=>at(t.map(n=>n.pipe(he(1),mr(It)))).pipe(y(n=>{for(let e of n)if(e!==!0){if(e===It)return It;if(e===!1||e instanceof J)return e}return!0}),V(n=>n!==It),he(1)))}function Ko(t,n){return x(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=e;return o.length===0&&s.length===0?p(M(f({},e),{guardsResult:!0})):Zo(o,r,i,t).pipe(x(c=>c&&Vo(c)?Jo(r,s,t,n):p(c)),y(c=>M(f({},e),{guardsResult:c})))})}function Zo(t,n,e,r){return A(t).pipe(x(i=>na(i.component,i.route,e,n,r)),X(i=>i!==!0,!0))}function Jo(t,n,e,r){return A(n).pipe(H(i=>dr(Qo(i.route.parent,r),Yo(i.route,r),ta(t,i.path,e),ea(t,i.route,e))),X(i=>i!==!0,!0))}function Yo(t,n){return t!==null&&n&&n(new Fn(t)),p(!0)}function Qo(t,n){return t!==null&&n&&n(new jn(t)),p(!0)}function ea(t,n,e){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return p(!0);let i=r.map(s=>Xt(()=>{let o=rt(n)??e,c=Ce(s,o),a=Wo(c)?c.canActivate(n,t):$(o,()=>c(n,t));return te(a).pipe(X())}));return p(i).pipe(be())}function ta(t,n,e){let r=n[n.length-1],s=n.slice(0,n.length-1).reverse().map(o=>$o(o)).filter(o=>o!==null).map(o=>Xt(()=>{let c=o.guards.map(a=>{let u=rt(o.node)??e,l=Ce(a,u),h=Go(l)?l.canActivateChild(r,t):$(u,()=>l(r,t));return te(h).pipe(X())});return p(c).pipe(be())}));return p(s).pipe(be())}function na(t,n,e,r,i){let s=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!s||s.length===0)return p(!0);let o=s.map(c=>{let a=rt(n)??i,u=Ce(c,a),l=Ho(u)?u.canDeactivate(t,n,e,r):$(a,()=>u(t,n,e,r));return te(l).pipe(X())});return p(o).pipe(be())}function ra(t,n,e,r){let i=n.canLoad;if(i===void 0||i.length===0)return p(!0);let s=i.map(o=>{let c=Ce(o,t),a=qo(c)?c.canLoad(n,e):$(t,()=>c(n,e));return te(a)});return p(s).pipe(be(),qi(r))}function qi(t){return cr(I(n=>{if(Re(n))throw $i(t,n)}),y(n=>n===!0))}function ia(t,n,e,r){let i=n.canMatch;if(!i||i.length===0)return p(!0);let s=i.map(o=>{let c=Ce(o,t),a=Xo(c)?c.canMatch(n,e):$(t,()=>c(n,e));return te(a)});return p(s).pipe(be(),qi(r))}var Ye=class{constructor(n){this.segmentGroup=n||null}}
2,Ft=class extends Error{constructor(n){super(),this.urlTree=n}};function ge(t){return Te(new Ye(t))}function sa(t){return Te(new T(4e3,!1))}function oa(t){return Te(zi(!1,L.GuardRejected))}var Hn=class{constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return p(r);if(i.numberOfChildren>1||!i.children[g])return sa(n.redirectTo);i=i.children[g]}}applyRedirectCommands(n,e,r){let i=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,r);if(e.startsWith("/"))throw new Ft(i);return i}applyRedirectCreateUrlTree(n,e,r,i){let s=this.createSegmentGroup(n,e.root,r,i);return new J(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,s])=>{if(typeof s=="string"&&s.startsWith(":")){let c=s.substring(1);r[i]=e[c]}else r[i]=s}),r}createSegmentGroup(n,e,r,i){let s=this.createSegments(n,e.segments,r,i),o={};return Object.entries(e.children).forEach(([c,a])=>{o[c]=this.createSegmentGroup(n,a,r,i)}),new w(s,o)}createSegments(n,e,r,i){return e.map(s=>s.path.startsWith(":")?this.findPosParam(n,s,i):this.findOrReturn(s,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new T(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}},Xn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function aa(t,n,e,r,i){let s=tr(t,n,e);return s.matched?(r=Lo(n,r),ia(r,n,e,i).pipe(y(o=>o===!0?s:f({},Xn)))):p(s)}function tr(t,n,e){if(n.path==="**")return ca(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?f({},Xn):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||no)(e,t,n);if(!i)return f({},Xn);let s={};Object.entries(i.posParams??{}).forEach(([c,a])=>{s[c]=a.path});let o=i.consumed.length>0?f(f({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:o,positionalParamSegments:i.posParams??{}}}function ca(t){return{matched:!0,parameters:t.length>0?Ci(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function wi(t,n,e,r){return e.length>0&&ha(t,e,r)?{segmentGroup:new w(n,la(r,new w(e,t.children))),slicedSegments:[]}:e.length===0&&da(t,e,r)?{segmentGroup:new w(t.segments,ua(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new w(t.segments,t.children),slicedSegments:e}}function ua(t,n,e,r){let i={};for(let s of e)if(Bt(t,n,s)&&!r[B(s)]){let o=new w([],{});i[B(s)]=o}return f(f({},r),i)}function la(t,n){let e={};e[g]=n;for(let r of t)if(r.path===""&&B(r)!==g){let i=new w([],{});e[B(r)]=i}return e}function ha(t,n,e){return e.some(r=>Bt(t,n,r)&&B(r)!==g)}function da(t,n,e){return e.some(r=>Bt(t,n,r))}function Bt(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function fa(t,n,e,r){return B(t)!==r&&(r===g||!Bt(n,e,t))?!1:tr(n,t,e).matched}function pa(t,n,e){return n.length===0&&!t.children[e]}var Kn=class{};function ga(t,n,e,r,i,s,o="emptyOnly"){return new Zn(t,n,e,r,i,o,s).recognize()}var ma=31,Zn=class{constructor(n,e,r,i,s,o,c){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=c,this.applyRedirects=new Hn(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new T(4002,`'${n.segmentGroup}'`)}recognize(){let n=wi(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(y(e=>{let r=new Ze([],Object.freeze({}),Object.freeze(f({},this.urlTree.queryParams)),this.urlTree.fragment,{},g,this.rootComponentType,null,{}),i=new k(r,e),s=new jt("",i),o=bo(r,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),this.inheritParamsAndData(s._root,null),{state:s,tree:o}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n,g).pipe(le(r=>{if(r instanceof Ft)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Ye?this.noMatchError(r):r}))}inheritParamsAndData(n,e){let r=n.value,i=Yn(r,e,this.paramsInheritanceStrategy);r.params=Object.freeze(i.params),r.data=Object.freeze(i.data),n.children.forEac
2h(s=>this.inheritParamsAndData(s,r))}processSegmentGroup(n,e,r,i){return r.segments.length===0&&r.hasChildren()?this.processChildren(n,e,r):this.processSegment(n,e,r,r.segments,i,!0).pipe(y(s=>s instanceof k?[s]:[]))}processChildren(n,e,r){let i=[];for(let s of Object.keys(r.children))s==="primary"?i.unshift(s):i.push(s);return A(i).pipe(H(s=>{let o=r.children[s],c=jo(e,s);return this.processSegmentGroup(n,c,o,s)}),gr((s,o)=>(s.push(...o),s)),Kt(null),pr(),x(s=>{if(s===null)return ge(r);let o=Wi(s);return va(o),p(o)}))}processSegment(n,e,r,i,s,o){return A(e).pipe(H(c=>this.processSegmentAgainstRoute(c._injector??n,e,c,r,i,s,o).pipe(le(a=>{if(a instanceof Ye)return p(null);throw a}))),X(c=>!!c),le(c=>{if(Vi(c))return pa(r,i,s)?p(new Kn):ge(r);throw c}))}processSegmentAgainstRoute(n,e,r,i,s,o,c){return fa(r,i,s,o)?r.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,r,s,o):this.allowRedirects&&c?this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,s,o):ge(i):ge(i)}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,s,o){let{matched:c,consumedSegments:a,positionalParamSegments:u,remainingSegments:l}=tr(e,i,s);if(!c)return ge(e);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>ma&&(this.allowRedirects=!1));let h=this.applyRedirects.applyRedirectCommands(a,i.redirectTo,u);return this.applyRedirects.lineralizeSegments(i,h).pipe(x(S=>this.processSegment(n,r,e,S.concat(l),o,!1)))}matchSegmentAgainstRoute(n,e,r,i,s){let o=aa(e,r,i,n,this.urlSerializer);return r.path==="**"&&(e.children={}),o.pipe(U(c=>c.matched?(n=r._injector??n,this.getChildConfig(n,r,i).pipe(U(({routes:a})=>{let u=r._loadedInjector??n,{consumedSegments:l,remainingSegments:h,parameters:S}=c,O=new Ze(l,S,Object.freeze(f({},this.urlTree.queryParams)),this.urlTree.fragment,wa(r),B(r),r.component??r._loadedComponent??null,r,Ra(r)),{segmentGroup:W,slicedSegments:R}=wi(e,l,h,a);if(R.length===0&&W.hasChildren())return this.processChildren(u,a,W).pipe(y(P=>P===null?null:new k(O,P)));if(a.length===0&&R.length===0)return p(new k(O,[]));let b=B(r)===s;return this.processSegment(u,a,W,R,b?g:s,!0).pipe(y(P=>new k(O,P instanceof k?[P]:[])))}))):ge(e)))}getChildConfig(n,e,r){return e.children?p({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?p({routes:e._loadedRoutes,injector:e._loadedInjector}):ra(n,e,r,this.urlSerializer).pipe(x(i=>i?this.configLoader.loadChildren(n,e).pipe(I(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):oa(e))):p({routes:[],injector:n})}};function va(t){t.sort((n,e)=>n.value.outlet===g?-1:e.value.outlet===g?1:n.value.outlet.localeCompare(e.value.outlet))}function ya(t){let n=t.value.routeConfig;return n&&n.path===""}function Wi(t){let n=[],e=new Set;for(let r of t){if(!ya(r)){n.push(r);continue}let i=n.find(s=>r.value.routeConfig===s.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=Wi(r.children);n.push(new k(r.value,i))}return n.filter(r=>!e.has(r))}function wa(t){return t.data||{}}function Ra(t){return t.resolve||{}}function Sa(t,n,e,r,i,s){return x(o=>ga(t,n,e,r,o.extractedUrl,i,s).pipe(y(({state:c,tree:a})=>M(f({},o),{targetSnapshot:c,urlAfterRedirects:a}))))}function ba(t,n){return x(e=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return p(e);let s=new Set(i.map(a=>a.route)),o=new Set;for(let a of s)if(!o.has(a))for(let u of Gi(a))o.add(u);let c=0;return A(o).pipe(H(a=>s.has(a)?Ca(a,r,t,n):(a.data=Yn(a,a.parent,t).resolve,p(void 0))),I(()=>c++),Zt(1),x(a=>c===o.size?p(e):G))})}function Gi(t){let n=t.children.map(e=>Gi(e)).flat();return[t,...n]}function Ca(t,n,e,r){let i=t.routeConfig,s=t._resolve;return i?.title!==void 0&&!_i(i)&&(s[et]=i.title),Ta(s,t,n,r).pipe(y(o=>(t._resolvedData=o,t.data=Yn(t,t.parent,e).resolve,null)))}function Ta(t,n,e,r){let i=Mn(t);if(i.length===0)return p({});let s={};return A(i).pipe(x(o=>Ea(t[o],n,e,r).pipe(X(),I(c=>{s[o]=c}))),Zt(1),fr(s),le(o=>Vi(o)?G:Te(o)))}function Ea(t,n,e,r){let i=rt(n)??r,s=Ce(t,i),o=s.resolve?s.resolve(n,e):$(i,()=>s(n,e));return te(o)}function En(t){return U(n=>{let e=t(n);
2return e?A(e).pipe(y(()=>n)):p(n)})}var Hi=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(s=>s.outlet===g);return r}getResolvedTitleForRoute(e){return e.data[et]}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=v({token:t,factory:()=>d(Ia),providedIn:"root"})}}return t})(),Ia=(()=>{class t extends Hi{constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static{this.\u0275fac=function(r){return new(r||t)(m(fi))}}static{this.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),st=new C("",{providedIn:"root",factory:()=>({})}),Qe=new C(""),nr=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=d(ht)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return p(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let r=te(e.loadComponent()).pipe(y(Xi),I(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),re(()=>{this.componentLoaders.delete(e)})),i=new Gt(r,()=>new ne).pipe(Wt());return this.componentLoaders.set(e,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return p({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let s=Ma(r,this.compiler,e,this.onLoadEndListener).pipe(re(()=>{this.childrenLoaders.delete(r)})),o=new Gt(s,()=>new ne).pipe(Wt());return this.childrenLoaders.set(r,o),o}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Ma(t,n,e,r){return te(t.loadChildren()).pipe(y(Xi),x(i=>i instanceof Lr||Array.isArray(i)?p(i):A(n.compileModuleAsync(i))),y(i=>{r&&r(t);let s,o,c=!1;return Array.isArray(i)?(o=i,c=!0):(s=i.create(e).injector,o=s.get(Qe,[],{optional:!0,self:!0}).flat()),{routes:o.map(er),injector:s}}))}function Aa(t){return t&&typeof t=="object"&&"default"in t}function Xi(t){return Aa(t)?t.default:t}var rr=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=v({token:t,factory:()=>d(Da),providedIn:"root"})}}return t})(),Da=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Ki=new C(""),Zi=new C("");function Oa(t,n,e){let r=t.get(Zi),i=t.get(D);return t.get(_).runOutsideAngular(()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(u=>setTimeout(u));let s,o=new Promise(u=>{s=u}),c=i.startViewTransition(()=>(s(),Pa(t))),{onViewTransitionCreated:a}=r;return a&&$(t,()=>a({transition:c,from:n,to:e})),o})}function Pa(t){return new Promise(n=>{sn(n,{injector:t})})}var ir=(()=>{class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ne,this.transitionAbortSubject=new ne,this.configLoader=d(nr),this.environmentInjector=d(K),this.urlSerializer=d(tt),this.rootContexts=d(nt),this.location=d(Ne),this.inputBindingEnabled=d(zt,{optional:!0})!==null,this.titleStrategy=d(Hi),this.options=d(st,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=d(rr),this.createViewTransition=d(Ki,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>p(void 0),this.rootComponentType=null;let e=i=>this.events.next(new kn(i)),r=i=>this.events.next(new Ln(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;this.transitions?.next(M(f(f({},this.transitions.value),e),{id:r}))}setupNavigations(e,r,i){return this.transitions=new j({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ve,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(V(s=>s.id!==0),y(s=>M(f({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),U(s=>
2{let o=!1,c=!1;return p(s).pipe(U(a=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",L.SupersededByNewNavigation),G;this.currentTransition=s,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?M(f({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!u&&l!=="reload"){let h="";return this.events.next(new Q(a.id,this.urlSerializer.serialize(a.rawUrl),h,Nt.IgnoredSameUrlNavigation)),a.resolve(null),G}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return p(a).pipe(U(h=>{let S=this.transitions?.getValue();return this.events.next(new Se(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),S!==this.transitions?.getValue()?G:Promise.resolve(h)}),Sa(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),I(h=>{s.targetSnapshot=h.targetSnapshot,s.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=M(f({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let S=new xt(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(S)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:h,extractedUrl:S,source:O,restoredState:W,extras:R}=a,b=new Se(h,this.urlSerializer.serialize(S),O,W);this.events.next(b);let P=Li(this.rootComponentType).snapshot;return this.currentTransition=s=M(f({},a),{targetSnapshot:P,urlAfterRedirects:S,extras:M(f({},R),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=S,p(s)}else{let h="";return this.events.next(new Q(a.id,this.urlSerializer.serialize(a.extractedUrl),h,Nt.IgnoredByUrlHandlingStrategy)),a.resolve(null),G}}),I(a=>{let u=new Pn(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}),y(a=>(this.currentTransition=s=M(f({},a),{guards:Fo(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),s)),Ko(this.environmentInjector,a=>this.events.next(a)),I(a=>{if(s.guardsResult=a.guardsResult,Re(a.guardsResult))throw $i(this.urlSerializer,a.guardsResult);let u=new Nn(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(u)}),V(a=>a.guardsResult?!0:(this.cancelNavigationTransition(a,"",L.GuardRejected),!1)),En(a=>{if(a.guards.canActivateChecks.length)return p(a).pipe(I(u=>{let l=new xn(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),U(u=>{let l=!1;return p(u).pipe(ba(this.paramsInheritanceStrategy,this.environmentInjector),I({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(u,"",L.NoDataFromResolver)}}))}),I(u=>{let l=new Un(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}))}),En(a=>{let u=l=>{let h=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(l.routeConfig).pipe(I(S=>{l.component=S}),y(()=>{})));for(let S of l.children)h.push(...u(S));return h};return at(u(a.targetSnapshot.root)).pipe(Kt(null),he(1))}),En(()=>this.afterPreactivation()),U(()=>{let{currentSnapshot:a,targetSnapshot:u}=s,l=this.createViewTransition?.(this.environmentInjector,a.root,u.root);return l?A(l).pipe(y(()=>s)):p(s)}),y(a=>{let u=Po(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=s=M(f({},a),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,s}),I(()=>{this.events.next(new Xe)}),_o(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),he(1),I({next:a=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new q(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{o=!0}}),vr(this.transitionAbortSubject.pipe(I(a=>{throw a}))),re(()=>{!o&&!c&&this.cancelNavigationTransition(s,"",L.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),le(a=>{if(c=!0,Bi(a))this.events.next(new Y(s.id,this.urlSerializer.serialize(s.extractedUrl),a.message,a.cancellationCode)),Uo(a)?this.events.next(new Ke(a.url)):s.resolve(!1);else{this.events.next(new He(s.id,this.urlSerializer.serialize(s.extractedUrl),a,s.targetSnapshot??void 0));try{s.resolve(e.errorHandler(a))}catch(u){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(u)}}return G}))}))}cancelNavigationTransition(e,r,i){let s=new Y(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(s),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Na(t){return t!==Ve}var xa=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=v({token:t,factory:()=>d(Ua),providedIn:"root"})}}return t})(),Jn=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}
2shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},Ua=(()=>{class t extends Jn{static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=Qt(t)))(i||t)}})()}static{this.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Ji=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=v({token:t,factory:()=>d(ka),providedIn:"root"})}}return t})(),ka=(()=>{class t extends Ji{constructor(){super(...arguments),this.location=d(Ne),this.urlSerializer=d(tt),this.options=d(st,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=d(rr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new J,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Li(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&e(r.url,r.state)})}handleRouterEvent(e,r){if(e instanceof Se)this.stateMemento=this.createStateMemento();else if(e instanceof Q)this.rawUrlTree=r.initialUrl;else if(e instanceof xt){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(i,r)}}else e instanceof Xe?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):e instanceof Y&&(e.code===L.GuardRejected||e.code===L.NoDataFromResolver)?this.restoreHistory(r):e instanceof He?this.restoreHistory(r,!0):e instanceof q&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,r){let i=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){let s=this.browserPageId,o=f(f({},r.extras.state),this.generateNgRouterState(r.id,s));this.location.replaceState(i,"",o)}else{let s=f(f({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(i,"",s)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,s=this.currentPageId-i;s!==0?this.location.historyGo(s):this.currentUrlTree===e.finalUrl&&s===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=Qt(t)))(i||t)}})()}static{this.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ze=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(ze||{});function Yi(t,n){t.events.pipe(V(e=>e instanceof q||e instanceof Y||e instanceof He||e instanceof Q),y(e=>e instanceof q||e instanceof Q?ze.COMPLETE:(e instanceof Y?e.code===L.Redirect||e.code===L.SupersededByNewNavigation:!1)?ze.REDIRECTING:ze.FAILED),V(e=>e!==ze.REDIRECTING),he(1)).subscribe(()=>{n()})}function La(t){throw t}var ja={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},_a={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ee=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=d(ct),this.stateManager=d(Ji),this.options=d(st,{optional:!0})||{},this.pendingTasks=d(Pe),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=d(ir),this.urlSerializer
2=d(tt),this.location=d(Ne),this.urlHandlingStrategy=d(rr),this._events=new ne,this.errorHandler=this.options.errorHandler||La,this.navigated=!1,this.routeReuseStrategy=d(xa),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=d(Qe,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!d(zt,{optional:!0}),this.eventsSubscription=new ar,this.isNgZoneEnabled=d(_)instanceof _&&_.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(i!==null&&s!==null){if(this.stateManager.handleRouterEvent(r,s),r instanceof Y&&r.code!==L.Redirect&&r.code!==L.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof q)this.navigated=!0;else if(r instanceof Ke){let o=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),c={info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||Na(i.source)};this.scheduleNavigation(o,Ve,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}$a(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.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),Ve,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",r)},0)})}navigateToSyncWithBrowser(e,r,i){let s={replaceUrl:!0},o=i?.navigationId?i:null;if(i){let a=f({},i);delete a.navigationId,delete a.\u0275routerPageId,Object.keys(a).length!==0&&(s.state=a)}let c=this.parseUrl(e);this.scheduleNavigation(c,r,o,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(er),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r={}){let{relativeTo:i,queryParams:s,fragment:o,queryParamsHandling:c,preserveFragment:a}=r,u=a?this.currentUrlTree.fragment:o,l=null;switch(c){case"merge":l=f(f({},this.currentUrlTree.queryParams),s);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=s||null}l!==null&&(l=this.removeEmptyProps(l));let h;try{let S=i?i.snapshot:this.routerState.snapshot.root;h=Ni(S)}catch{(typeof e[0]!="string"||!e[0].startsWith("/"))&&(e=[]),h=this.currentUrlTree.root}return xi(h,e,l,u??null)}navigateByUrl(e,r={skipLocationChange:!1}){let i=Re(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,Ve,null,r)}navigate(e,r={skipLocationChange:!1}){return Fa(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===!0?i=f({},ja):r===!1?i=f({},_a):i=r,Re(e))return pi(this.currentUrlTree,e,i);let s=this.parseUrl(e);return pi(this.currentUrlTree,s,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,s])=>(s!=null&&(r[i]=s),r),{})}scheduleNavigation(e,r,i,s,o){if(this.disposed)return Promise.resolve(!1);let c,a,u;o?(c=o.resolve,a=o.reject,u=o.promise):u=new Promise((h,S)=>{c=h,a=S});let l=this.pendingTasks.add();return Yi(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:s,resolve:c,reject:a,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(h=>Promise.reject(h))}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Fa(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new T(4008,!1)}function $a(t){return!(t instanceof Xe)&&!(t instanceof Ke)}var $t=class{};var za=(()=>{class t{constructor(e,r,i,s,o){this.router=e,this.injector=i,this.preloadingStrategy=s,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(V(e=>e instanceof q),H(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){let i=[];for(let s of r){s.providers&&!s._injector&&(s._injector=on(s.providers,e,`Route: ${s.path}`));let o=s._injector??e,c=s._loadedInjector??o;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&i.push(this.preloadConfig(o,s)),(s.children||s._loadedRoutes)&&i.push(this.processRoutes(c,s.children??s._loadedRoutes))}return A(i).pipe(Ht())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let i;r.loadChildren&&r.canLoad===void 0?i=this.loader.loadChildren(e,r):i=p(null);let s=i.pipe(x(o=>o===null?p(void 0):(r._loadedRoutes=o.routes,r._loadedInjector=o.injector,this.processRoutes(o.injector??e,o.routes))));if(r.loadComponent&&!r._loadedComponent){let o=this.loader.loadComponent(r);return A([s,o]).pipe(Ht())}else return s})}static{this.\u0275fac=function(r){return new(r||t)(m(ee),m(ht),m(K),m($t),m(nr))}}static{this.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Qi=new C(""),Ba=(()=>{class t{constructor(e,r,i,s,o={}
2){this.urlSerializer=e,this.transitions=r,this.viewportScroller=i,this.zone=s,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=d(K),o.scrollPositionRestoration||="disabled",o.anchorScrolling||="disabled"}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 Se?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof q?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Q&&e.code===Nt.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Ut&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,r){this.zone.runOutsideAngular(()=>qt(this,null,function*(){yield new Promise(i=>{setTimeout(()=>{i()}),sn(()=>{i()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new Ut(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(r){xr()}}static{this.\u0275prov=v({token:t,factory:t.\u0275fac})}}return t})();function gu(t,...n){return Ae([{provide:Qe,multi:!0,useValue:t},[],{provide:ue,useFactory:es,deps:[ee]},{provide:ut,multi:!0,useFactory:ts},n.map(e=>e.\u0275providers)])}function es(t){return t.routerState.root}function ot(t,n){return{\u0275kind:t,\u0275providers:n}}function ts(){let t=d(en);return n=>{let e=t.get(lt);if(n!==e.components[0])return;let r=t.get(ee),i=t.get(ns);t.get(sr)===1&&r.initialNavigation(),t.get(rs,null,Jt.Optional)?.setUpPreloading(),t.get(Qi,null,Jt.Optional)?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var ns=new C("",{factory:()=>new ne}),sr=new C("",{providedIn:"root",factory:()=>1});function Va(){return ot(2,[{provide:sr,useValue:0},{provide:an,multi:!0,deps:[en],useFactory:n=>{let e=n.get(qr,Promise.resolve());return()=>e.then(()=>new Promise(r=>{let i=n.get(ee),s=n.get(ns);Yi(i,()=>{r(!0)}),n.get(ir).afterPreactivation=()=>(r(!0),s.closed?p(void 0):s),i.initialNavigation()}))}}])}function qa(){return ot(3,[{provide:an,multi:!0,useFactory:()=>{let n=d(ee);return()=>{n.setUpLocationChangeListener()}}},{provide:sr,useValue:2}])}var rs=new C("");function Wa(t){return ot(0,[{provide:rs,useExisting:za},{provide:$t,useExisting:t}])}function Ga(){return ot(8,[yi,{provide:zt,useExisting:yi}])}function Ha(t){let n=[{provide:Ki,useValue:Oa},{provide:Zi,useValue:f({skipNextTransition:!!t?.skipInitialTransition},t)}];return ot(9,n)}var Ri=new C("ROUTER_FORROOT_GUARD"),Xa=[Ne,{provide:tt,useClass:We},ee,nt,{provide:ue,useFactory:es,deps:[ee]},nr,[]],mu=(()=>{class t{constructor(e){}static forRoot(e,r){return{ngModule:t,providers:[Xa,[],{provide:Qe,multi:!0,useValue:e},{provide:Ri,useFactory:Ya,deps:[[ee,new Yt,new wr]]},{provide:st,useValue:r||{}},r?.useHash?Za():Ja(),Ka(),r?.preloadingStrategy?Wa(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?Qa(r):[],r?.bindToComponentInputs?Ga().\u0275providers:[],r?.enableViewTransitions?Ha().\u0275providers:[],ec()]}}static forChild(e){return{ngModule:t,providers:[{provide:Qe,multi:!0,useValue:e}]}}static{this.\u0275fac=function(r){return new(r||t)(m(Ri,8))}}static{this.\u0275mod=Me({type:t})}static{this.\u0275inj=Ee({})}}return t})();function Ka(){return{provide:Qi,useFactory:()=>{let t=d(Xr),n=d(_),e=d(st),r=d(ir),i=d(tt);return e.scrollOffset&&t.setOffset(e.scrollOffset),new Ba(i,r,t,n,e)}}}function Za(){return{provide:un,useClass:Gr}}function Ja(){return{provide:un,useClass:Wr}}function Ya(t){return"guarded"}function Qa(t){return[t.initialNavigation==="disabled"?qa().\u0275providers:[],t.initialNavigation==="enabledBlocking"?Va().\u0275providers:[]]}var Si=new C("");function ec(){return[{provide:Si,useFactory:ts},{provide:ut,multi:!0,useExisting:Si}]}export{oe as a,ps as b,vs as c,Ds as d,pc as e,Os as f,gc as g,oi as h,Lc as i,jc as
2j,fi as k,Qs as l,Se as m,ue as n,Oo as o,ee as p,gu as q,mu as r};
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.