From f7c8ad387afd138dda4180a9db1ce8fa0ab76a9d Mon Sep 17 00:00:00 2001 From: RonanCodes Date: Mon, 29 Apr 2024 23:29:36 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20RonanCod?= =?UTF-8?q?es/chuck-norris-joke-generator@b50026aa805b67f1557a4c1a5efdda19?= =?UTF-8?q?08f19680=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 2 +- main-BHMWTPSM.js => main-NOMSE37R.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename main-BHMWTPSM.js => main-NOMSE37R.js (93%) diff --git a/index.html b/index.html index cbcb66d..3486985 100644 --- a/index.html +++ b/index.html @@ -12,5 +12,5 @@ - + diff --git a/main-BHMWTPSM.js b/main-NOMSE37R.js similarity index 93% rename from main-BHMWTPSM.js rename to main-NOMSE37R.js index 54e218a..3b9ca4d 100644 --- a/main-BHMWTPSM.js +++ b/main-NOMSE37R.js @@ -1,2 +1,2 @@ import{$ as D,$a as ee,A as gi,Aa as dr,Ab as Z,B as vi,Ba as lr,Bb as Er,C as it,Ca as ur,Cb as Di,D as Yo,Da as mr,Db as Cr,E as Jo,Ea as hr,Eb as Tr,F as mt,Fa as K,Fb as T,G as wt,Ga as pr,Gb as Rr,H as yi,Ha as xe,Hb as Ce,I as Xo,Ia as Ut,Ib as Sr,J as Qo,Ja as _,Jb as Ar,K as tr,Ka as te,Kb as Te,L as dn,La as fr,Lb as Cn,M as ln,Ma as fn,Mb as Dr,N as G,Na as br,Nb as oe,O as Jt,Oa as Ei,Ob as ft,P as A,Pa as S,Pb as Mr,Q as R,Qa as gr,Qb as kr,R as b,Ra as vr,Rb as Tn,S as O,Sa as yr,Sb as Or,T as er,Ta as xt,Tb as Rn,U as w,Ua as _r,V as _i,Va as Ci,W as u,Wa as Ie,X as m,Xa as Ti,Y as un,Ya as It,Z as wi,Za as zt,_ as _e,_a as Et,a as h,aa as N,ab as Q,b as U,ba as F,bb as rt,ca as ot,cb as B,d as ye,da as Nt,db as wr,e as qo,ea as nr,eb as $t,f as cn,fa as Ft,fb as Ri,g as hi,ga as ct,gb as Bt,h as pi,ha as mn,hb as Ct,i as H,ia as ir,ib as Si,j as k,ja as or,jb as bn,k as vt,ka as xi,kb as gn,l as z,la as hn,lb as pt,m as f,ma as Ii,mb as vn,n as Ot,na as Pt,nb as Ai,o as Go,oa as $,ob as P,p as Ko,pa as jt,pb as yn,q as v,qa as rr,qb as ne,r as Zt,ra as pn,rb as ie,s as q,sa as ar,sb as _n,t as fi,ta as ht,tb as xr,u as Yt,ua as Lt,ub as Ee,v as bi,va as we,vb as wn,w as Zo,wa as Xt,wb as xn,x as st,xa as Qt,xb as In,y as yt,ya as sr,yb as En,z as _t,za as cr,zb as Ir}from"./chunk-MIDQCCEY.js";var Se=class{},An=class{},Vt=class n{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` -`).forEach(o=>{let e=o.indexOf(":");if(e>0){let i=o.slice(0,e),r=i.toLowerCase(),a=o.slice(e+1).trim();this.maybeSetNormalizedName(i,r),this.headers.has(r)?this.headers.get(r).push(a):this.headers.set(r,[a])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((o,e)=>{this.setHeaderEntries(e,o)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([o,e])=>{this.setHeaderEntries(o,e)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let o=this.headers.get(t.toLowerCase());return o&&o.length>0?o[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,o){return this.clone({name:t,value:o,op:"a"})}set(t,o){return this.clone({name:t,value:o,op:"s"})}delete(t,o){return this.clone({name:t,value:o,op:"d"})}maybeSetNormalizedName(t,o){this.normalizedNames.has(o)||this.normalizedNames.set(o,t)}init(){this.lazyInit&&(this.lazyInit instanceof n?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(o=>{this.headers.set(o,t.headers.get(o)),this.normalizedNames.set(o,t.normalizedNames.get(o))})}clone(t){let o=new n;return o.lazyInit=this.lazyInit&&this.lazyInit instanceof n?this.lazyInit:this,o.lazyUpdate=(this.lazyUpdate||[]).concat([t]),o}applyUpdate(t){let o=t.name.toLowerCase();switch(t.op){case"a":case"s":let e=t.value;if(typeof e=="string"&&(e=[e]),e.length===0)return;this.maybeSetNormalizedName(t.name,o);let i=(t.op==="a"?this.headers.get(o):void 0)||[];i.push(...e),this.headers.set(o,i);break;case"d":let r=t.value;if(!r)this.headers.delete(o),this.normalizedNames.delete(o);else{let a=this.headers.get(o);if(!a)return;a=a.filter(s=>r.indexOf(s)===-1),a.length===0?(this.headers.delete(o),this.normalizedNames.delete(o)):this.headers.set(o,a)}break}}setHeaderEntries(t,o){let e=(Array.isArray(o)?o:[o]).map(r=>r.toString()),i=t.toLowerCase();this.headers.set(i,e),this.maybeSetNormalizedName(t,i)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(o=>t(this.normalizedNames.get(o),this.headers.get(o)))}};var ki=class{encodeKey(t){return Nr(t)}encodeValue(t){return Nr(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function Bs(n,t){let o=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(i=>{let r=i.indexOf("="),[a,s]=r==-1?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,r)),t.decodeValue(i.slice(r+1))],d=o.get(a)||[];d.push(s),o.set(a,d)}),o}var Vs=/%(\d[a-f0-9])/gi,Ws={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Nr(n){return encodeURIComponent(n).replace(Vs,(t,o)=>Ws[o]??t)}function Sn(n){return`${n}`}var Tt=class n{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new ki,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Bs(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(o=>{let e=t.fromObject[o],i=Array.isArray(e)?e.map(Sn):[Sn(e)];this.map.set(o,i)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let o=this.map.get(t);return o?o[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,o){return this.clone({param:t,value:o,op:"a"})}appendAll(t){let o=[];return Object.keys(t).forEach(e=>{let i=t[e];Array.isArray(i)?i.forEach(r=>{o.push({param:e,value:r,op:"a"})}):o.push({param:e,value:i,op:"a"})}),this.clone(o)}set(t,o){return this.clone({param:t,value:o,op:"s"})}delete(t,o){return this.clone({param:t,value:o,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let o=this.encoder.encodeKey(t);return this.map.get(t).map(e=>o+"="+this.encoder.encodeValue(e)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let o=new n({encoder:this.encoder});return o.cloneFrom=this.cloneFrom||this,o.updates=(this.updates||[]).concat(t),o}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let o=(t.op==="a"?this.map.get(t.param):void 0)||[];o.push(Sn(t.value)),this.map.set(t.param,o);break;case"d":if(t.value!==void 0){let e=this.map.get(t.param)||[],i=e.indexOf(Sn(t.value));i!==-1&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var Oi=class{constructor(){this.map=new Map}set(t,o){return this.map.set(t,o),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function Hs(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Fr(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function Pr(n){return typeof Blob<"u"&&n instanceof Blob}function jr(n){return typeof FormData<"u"&&n instanceof FormData}function qs(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}var Re=class n{constructor(t,o,e,i){this.url=o,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let r;if(Hs(this.method)||i?(this.body=e!==void 0?e:null,r=i):r=e,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),this.transferCache=r.transferCache),this.headers??=new Vt,this.context??=new Oi,!this.params)this.params=new Tt,this.urlWithParams=o;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=o;else{let s=o.indexOf("?"),d=s===-1?"?":sg.set(x,t.setHeaders[x]),c)),t.setParams&&(l=Object.keys(t.setParams).reduce((g,x)=>g.set(x,t.setParams[x]),l)),new n(o,e,a,{params:l,headers:c,context:p,reportProgress:d,responseType:i,withCredentials:s,transferCache:r})}},re=function(n){return n[n.Sent=0]="Sent",n[n.UploadProgress=1]="UploadProgress",n[n.ResponseHeader=2]="ResponseHeader",n[n.DownloadProgress=3]="DownloadProgress",n[n.Response=4]="Response",n[n.User=5]="User",n}(re||{}),Ae=class{constructor(t,o=kn.Ok,e="OK"){this.headers=t.headers||new Vt,this.status=t.status!==void 0?t.status:o,this.statusText=t.statusText||e,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},Ni=class n extends Ae{constructor(t={}){super(t),this.type=re.ResponseHeader}clone(t={}){return new n({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Dn=class n extends Ae{constructor(t={}){super(t),this.type=re.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new n({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Mn=class extends Ae{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},kn=function(n){return n[n.Continue=100]="Continue",n[n.SwitchingProtocols=101]="SwitchingProtocols",n[n.Processing=102]="Processing",n[n.EarlyHints=103]="EarlyHints",n[n.Ok=200]="Ok",n[n.Created=201]="Created",n[n.Accepted=202]="Accepted",n[n.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",n[n.NoContent=204]="NoContent",n[n.ResetContent=205]="ResetContent",n[n.PartialContent=206]="PartialContent",n[n.MultiStatus=207]="MultiStatus",n[n.AlreadyReported=208]="AlreadyReported",n[n.ImUsed=226]="ImUsed",n[n.MultipleChoices=300]="MultipleChoices",n[n.MovedPermanently=301]="MovedPermanently",n[n.Found=302]="Found",n[n.SeeOther=303]="SeeOther",n[n.NotModified=304]="NotModified",n[n.UseProxy=305]="UseProxy",n[n.Unused=306]="Unused",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",n[n.BadRequest=400]="BadRequest",n[n.Unauthorized=401]="Unauthorized",n[n.PaymentRequired=402]="PaymentRequired",n[n.Forbidden=403]="Forbidden",n[n.NotFound=404]="NotFound",n[n.MethodNotAllowed=405]="MethodNotAllowed",n[n.NotAcceptable=406]="NotAcceptable",n[n.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",n[n.RequestTimeout=408]="RequestTimeout",n[n.Conflict=409]="Conflict",n[n.Gone=410]="Gone",n[n.LengthRequired=411]="LengthRequired",n[n.PreconditionFailed=412]="PreconditionFailed",n[n.PayloadTooLarge=413]="PayloadTooLarge",n[n.UriTooLong=414]="UriTooLong",n[n.UnsupportedMediaType=415]="UnsupportedMediaType",n[n.RangeNotSatisfiable=416]="RangeNotSatisfiable",n[n.ExpectationFailed=417]="ExpectationFailed",n[n.ImATeapot=418]="ImATeapot",n[n.MisdirectedRequest=421]="MisdirectedRequest",n[n.UnprocessableEntity=422]="UnprocessableEntity",n[n.Locked=423]="Locked",n[n.FailedDependency=424]="FailedDependency",n[n.TooEarly=425]="TooEarly",n[n.UpgradeRequired=426]="UpgradeRequired",n[n.PreconditionRequired=428]="PreconditionRequired",n[n.TooManyRequests=429]="TooManyRequests",n[n.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",n[n.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",n[n.InternalServerError=500]="InternalServerError",n[n.NotImplemented=501]="NotImplemented",n[n.BadGateway=502]="BadGateway",n[n.ServiceUnavailable=503]="ServiceUnavailable",n[n.GatewayTimeout=504]="GatewayTimeout",n[n.HttpVersionNotSupported=505]="HttpVersionNotSupported",n[n.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",n[n.InsufficientStorage=507]="InsufficientStorage",n[n.LoopDetected=508]="LoopDetected",n[n.NotExtended=510]="NotExtended",n[n.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",n}(kn||{});function Mi(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials,transferCache:n.transferCache}}var Me=(()=>{let t=class t{constructor(e){this.handler=e}request(e,i,r={}){let a;if(e instanceof Re)a=e;else{let c;r.headers instanceof Vt?c=r.headers:c=new Vt(r.headers);let l;r.params&&(r.params instanceof Tt?l=r.params:l=new Tt({fromObject:r.params})),a=new Re(e,i,r.body!==void 0?r.body:null,{headers:c,context:r.context,params:l,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let s=f(a).pipe(_t(c=>this.handler.handle(c)));if(e instanceof Re||r.observe==="events")return s;let d=s.pipe(st(c=>c instanceof Dn));switch(r.observe||"body"){case"body":switch(a.responseType){case"arraybuffer":return d.pipe(v(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return d.pipe(v(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return d.pipe(v(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return d.pipe(v(c=>c.body))}case"response":return d;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:new Tt().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,Mi(r,i))}post(e,i,r={}){return this.request("POST",e,Mi(r,i))}put(e,i,r={}){return this.request("PUT",e,Mi(r,i))}};t.\u0275fac=function(i){return new(i||t)(u(Se))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();function $r(n,t){return t(n)}function Gs(n,t){return(o,e)=>t.intercept(o,{handle:i=>n(i,e)})}function Ks(n,t,o){return(e,i)=>ct(o,()=>t(e,r=>n(r,i)))}var Zs=new w(""),Fi=new w(""),Ys=new w(""),Js=new w("");function Xs(){let n=null;return(t,o)=>{n===null&&(n=(m(Zs,{optional:!0})??[]).reduceRight(Gs,$r));let e=m(Ie),i=e.add();return n(t,o).pipe(mt(()=>e.remove(i)))}}var Lr=(()=>{let t=class t extends Se{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=m(Ie);let r=m(Js,{optional:!0});this.backend=r??e}handle(e){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Fi),...this.injector.get(Ys,[])]));this.chain=r.reduceRight((a,s)=>Ks(a,s,this.injector),$r)}let i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(mt(()=>this.pendingTasks.remove(i)))}};t.\u0275fac=function(i){return new(i||t)(u(An),u(Ft))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();var Qs=/^\)\]\}',?\n/;function tc(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}var Ur=(()=>{let t=class t{constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new R(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?z(i.\u0275loadImpl()):f(null)).pipe(G(()=>new cn(a=>{let s=i.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((C,I)=>s.setRequestHeader(C,I.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){let C=e.detectContentTypeHeader();C!==null&&s.setRequestHeader("Content-Type",C)}if(e.responseType){let C=e.responseType.toLowerCase();s.responseType=C!=="json"?C:"text"}let d=e.serializeBody(),c=null,l=()=>{if(c!==null)return c;let C=s.statusText||"OK",I=new Vt(s.getAllResponseHeaders()),nt=tc(s)||e.url;return c=new Ni({headers:I,status:s.status,statusText:C,url:nt}),c},p=()=>{let{headers:C,status:I,statusText:nt,url:Ho}=l(),W=null;I!==kn.NoContent&&(W=typeof s.response>"u"?s.responseText:s.response),I===0&&(I=W?kn.Ok:0);let mi=I>=200&&I<300;if(e.responseType==="json"&&typeof W=="string"){let js=W;W=W.replace(Qs,"");try{W=W!==""?JSON.parse(W):null}catch(Ls){W=js,mi&&(mi=!1,W={error:Ls,text:W})}}mi?(a.next(new Dn({body:W,headers:C,status:I,statusText:nt,url:Ho||void 0})),a.complete()):a.error(new Mn({error:W,headers:C,status:I,statusText:nt,url:Ho||void 0}))},g=C=>{let{url:I}=l(),nt=new Mn({error:C,status:s.status||0,statusText:s.statusText||"Unknown Error",url:I||void 0});a.error(nt)},x=!1,X=C=>{x||(a.next(l()),x=!0);let I={type:re.DownloadProgress,loaded:C.loaded};C.lengthComputable&&(I.total=C.total),e.responseType==="text"&&s.responseText&&(I.partialText=s.responseText),a.next(I)},L=C=>{let I={type:re.UploadProgress,loaded:C.loaded};C.lengthComputable&&(I.total=C.total),a.next(I)};return s.addEventListener("load",p),s.addEventListener("error",g),s.addEventListener("timeout",g),s.addEventListener("abort",g),e.reportProgress&&(s.addEventListener("progress",X),d!==null&&s.upload&&s.upload.addEventListener("progress",L)),s.send(d),a.next({type:re.Sent}),()=>{s.removeEventListener("error",g),s.removeEventListener("abort",g),s.removeEventListener("load",p),s.removeEventListener("timeout",g),e.reportProgress&&(s.removeEventListener("progress",X),d!==null&&s.upload&&s.upload.removeEventListener("progress",L)),s.readyState!==s.DONE&&s.abort()}})))}};t.\u0275fac=function(i){return new(i||t)(u(Rn))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Br=new w(""),ec="XSRF-TOKEN",nc=new w("",{providedIn:"root",factory:()=>ec}),ic="X-XSRF-TOKEN",oc=new w("",{providedIn:"root",factory:()=>ic}),On=class{},rc=(()=>{let t=class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,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=Cn(e,this.cookieName),this.lastCookieString=e),this.lastToken}};t.\u0275fac=function(i){return new(i||t)(u(T),u(ht),u(nc))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();function ac(n,t){let o=n.url.toLowerCase();if(!m(Br)||n.method==="GET"||n.method==="HEAD"||o.startsWith("http://")||o.startsWith("https://"))return t(n);let e=m(On).getToken(),i=m(oc);return e!=null&&!n.headers.has(i)&&(n=n.clone({headers:n.headers.set(i,e)})),t(n)}var Vr=function(n){return n[n.Interceptors=0]="Interceptors",n[n.LegacyInterceptors=1]="LegacyInterceptors",n[n.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",n[n.NoXsrfProtection=3]="NoXsrfProtection",n[n.JsonpSupport=4]="JsonpSupport",n[n.RequestsMadeViaParent=5]="RequestsMadeViaParent",n[n.Fetch=6]="Fetch",n}(Vr||{});function sc(n,t){return{\u0275kind:n,\u0275providers:t}}function Pi(...n){let t=[Me,Ur,Lr,{provide:Se,useExisting:Lr},{provide:An,useExisting:Ur},{provide:Fi,useValue:ac,multi:!0},{provide:Br,useValue:!0},{provide:On,useClass:rc}];for(let o of n)t.push(...o.\u0275providers);return Nt(t)}var zr=new w("");function cc(){return sc(Vr.LegacyInterceptors,[{provide:zr,useFactory:Xs},{provide:Fi,useExisting:zr,multi:!0}])}var Wr=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({providers:[Pi(cc())]});let n=t;return n})();var Ui=class extends Tr{constructor(){super(...arguments),this.supportsDOMEvents=!0}},zi=class n extends Ui{static makeCurrent(){Cr(new n)}onAndCancel(t,o,e){return t.addEventListener(o,e),()=>{t.removeEventListener(o,e)}}dispatchEvent(t,o){t.dispatchEvent(o)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,o){return o=o||this.getDefaultDocument(),o.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,o){return o==="window"?window:o==="document"?t:o==="body"?t.body:null}getBaseHref(t){let o=lc();return o==null?null:uc(o)}resetBaseElement(){ke=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Cn(document.cookie,t)}},ke=null;function lc(){return ke=ke||document.querySelector("base"),ke?ke.getAttribute("href"):null}function uc(n){return new URL(n,document.baseURI).pathname}var mc=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),$i=new w(""),Zr=(()=>{let t=class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(a=>a.supports(e)),!i)throw new R(5101,!1);return this._eventNameToPlugin.set(e,i),i}};t.\u0275fac=function(i){return new(i||t)(u($i),u(S))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Nn=class{constructor(t){this._doc=t}},ji="ng-app-id",Yr=(()=>{let t=class t{constructor(e,i,r,a={}){this.doc=e,this.appId=i,this.nonce=r,this.platformId=a,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Tn(a),this.resetHostNodes()}addStyles(e){for(let i of e)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(e){for(let i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){let i=this.styleRef;i.get(e)?.elements?.forEach(r=>r.remove()),i.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${ji}="${this.appId}"]`);if(e?.length){let i=new Map;return e.forEach(r=>{r.textContent!=null&&i.set(r.textContent,r)}),i}return null}changeUsageCount(e,i){let r=this.styleRef;if(r.has(e)){let a=r.get(e);return a.usage+=i,a.usage}return r.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){let r=this.styleNodesInDOM,a=r?.get(i);if(a?.parentNode===e)return r.delete(i),a.removeAttribute(ji),a;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=i,this.platformIsServer&&s.setAttribute(ji,this.appId),e.appendChild(s),s}}addStyleToHost(e,i){let r=this.getStyleElement(e,i),a=this.styleRef,s=a.get(i)?.elements;s?s.push(r):a.set(i,{elements:[r],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}};t.\u0275fac=function(i){return new(i||t)(u(T),u(pn),u(we,8),u(ht))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Li={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/"},Vi=/%COMP%/g,Jr="%COMP%",hc=`_nghost-${Jr}`,pc=`_ngcontent-${Jr}`,fc=!0,bc=new w("",{providedIn:"root",factory:()=>fc});function gc(n){return pc.replace(Vi,n)}function vc(n){return hc.replace(Vi,n)}function Xr(n,t){return t.map(o=>o.replace(Vi,n))}var Fn=(()=>{let t=class t{constructor(e,i,r,a,s,d,c,l=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=a,this.doc=s,this.platformId=d,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Tn(d),this.defaultRenderer=new Oe(e,s,c,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===_e.ShadowDom&&(i=U(h({},i),{encapsulation:_e.Emulated}));let r=this.getOrCreateRenderer(e,i);return r instanceof Pn?r.applyToHost(e):r instanceof Ne&&r.applyStyles(),r}getOrCreateRenderer(e,i){let r=this.rendererByCompId,a=r.get(i.id);if(!a){let s=this.doc,d=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,g=this.platformIsServer;switch(i.encapsulation){case _e.Emulated:a=new Pn(c,l,i,this.appId,p,s,d,g);break;case _e.ShadowDom:return new Bi(c,l,e,i,s,d,this.nonce,g);default:a=new Ne(c,l,i,p,s,d,g);break}r.set(i.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(i){return new(i||t)(u(Zr),u(Yr),u(pn),u(bc),u(T),u(ht),u(S),u(we))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Oe=class{constructor(t,o,e,i){this.eventManager=t,this.doc=o,this.ngZone=e,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,o){return o?this.doc.createElementNS(Li[o]||o,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,o){(qr(t)?t.content:t).appendChild(o)}insertBefore(t,o,e){t&&(qr(t)?t.content:t).insertBefore(o,e)}removeChild(t,o){t&&t.removeChild(o)}selectRootElement(t,o){let e=typeof t=="string"?this.doc.querySelector(t):t;if(!e)throw new R(-5104,!1);return o||(e.textContent=""),e}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,o,e,i){if(i){o=i+":"+o;let r=Li[i];r?t.setAttributeNS(r,o,e):t.setAttribute(o,e)}else t.setAttribute(o,e)}removeAttribute(t,o,e){if(e){let i=Li[e];i?t.removeAttributeNS(i,o):t.removeAttribute(`${e}:${o}`)}else t.removeAttribute(o)}addClass(t,o){t.classList.add(o)}removeClass(t,o){t.classList.remove(o)}setStyle(t,o,e,i){i&(xe.DashCase|xe.Important)?t.style.setProperty(o,e,i&xe.Important?"important":""):t.style[o]=e}removeStyle(t,o,e){e&xe.DashCase?t.style.removeProperty(o):t.style[o]=""}setProperty(t,o,e){t!=null&&(t[o]=e)}setValue(t,o){t.nodeValue=o}listen(t,o,e){if(typeof t=="string"&&(t=Di().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${o}`);return this.eventManager.addEventListener(t,o,this.decoratePreventDefault(e))}decoratePreventDefault(t){return o=>{if(o==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(o)):t(o))===!1&&o.preventDefault()}}};function qr(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var Bi=class extends Oe{constructor(t,o,e,i,r,a,s,d){super(t,r,a,d),this.sharedStylesHost=o,this.hostEl=e,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Xr(i.id,i.styles);for(let l of c){let p=document.createElement("style");s&&p.setAttribute("nonce",s),p.textContent=l,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,o){return super.appendChild(this.nodeOrShadowRoot(t),o)}insertBefore(t,o,e){return super.insertBefore(this.nodeOrShadowRoot(t),o,e)}removeChild(t,o){return super.removeChild(this.nodeOrShadowRoot(t),o)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Ne=class extends Oe{constructor(t,o,e,i,r,a,s,d){super(t,r,a,s),this.sharedStylesHost=o,this.removeStylesOnCompDestroy=i,this.styles=d?Xr(d,e.styles):e.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Pn=class extends Ne{constructor(t,o,e,i,r,a,s,d){let c=i+"-"+e.id;super(t,o,e,r,a,s,d,c),this.contentAttr=gc(c),this.hostAttr=vc(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,o){let e=super.createElement(t,o);return super.setAttribute(e,this.contentAttr,""),e}},yc=(()=>{let t=class t extends Nn{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}};t.\u0275fac=function(i){return new(i||t)(u(T))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Gr=["alt","control","meta","shift"],_c={"\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"},wc={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},xc=(()=>{let t=class t extends Nn{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,i,r){let a=t.parseEventName(i),s=t.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Di().onAndCancel(e,a.domEventName,s))}static parseEventName(e){let i=e.toLowerCase().split("."),r=i.shift();if(i.length===0||!(r==="keydown"||r==="keyup"))return null;let a=t._normalizeKey(i.pop()),s="",d=i.indexOf("code");if(d>-1&&(i.splice(d,1),s="code."),Gr.forEach(l=>{let p=i.indexOf(l);p>-1&&(i.splice(p,1),s+=l+".")}),s+=a,i.length!=0||a.length===0)return null;let c={};return c.domEventName=r,c.fullKey=s,c}static matchEventFullKeyCode(e,i){let r=_c[e.key]||e.key,a="";return i.indexOf("code.")>-1&&(r=e.code,a="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),Gr.forEach(s=>{if(s!==r){let d=wc[s];d(e)&&(a+=s+".")}}),a+=r,a===i)}static eventCallback(e,i,r){return a=>{t.matchEventFullKeyCode(a,e)&&r.runGuarded(()=>i(a))}}static _normalizeKey(e){return e==="esc"?"escape":e}};t.\u0275fac=function(i){return new(i||t)(u(T))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();function Qr(n,t){return Ir(h({rootComponent:n},Ic(t)))}function Ic(n){return{appProviders:[...Sc,...n?.providers??[]],platformProviders:Rc}}function Ec(){zi.makeCurrent()}function Cc(){return new Pt}function Tc(){return rr(document),document}var Rc=[{provide:ht,useValue:Mr},{provide:ar,useValue:Ec,multi:!0},{provide:T,useFactory:Tc,deps:[]}];var Sc=[{provide:nr,useValue:"root"},{provide:Pt,useFactory:Cc,deps:[]},{provide:$i,useClass:yc,multi:!0,deps:[T,S,ht]},{provide:$i,useClass:xc,multi:!0,deps:[T]},Fn,Yr,Zr,{provide:fn,useExisting:Fn},{provide:Rn,useClass:mc,deps:[]},[]];var ta=(()=>{let t=class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}};t.\u0275fac=function(i){return new(i||t)(u(T))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Wi=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:function(i){let r=null;return i?r=new(i||t):r=u(Ac),r},providedIn:"root"});let n=t;return n})(),Ac=(()=>{let t=class t extends Wi{constructor(e){super(),this._doc=e}sanitize(e,i){if(i==null)return null;switch(e){case K.NONE:return i;case K.HTML:return Qt(i,"HTML")?Xt(i):hr(this._doc,String(i)).toString();case K.STYLE:return Qt(i,"Style")?Xt(i):i;case K.SCRIPT:if(Qt(i,"Script"))return Xt(i);throw new R(5200,!1);case K.URL:return Qt(i,"URL")?Xt(i):mr(String(i));case K.RESOURCE_URL:if(Qt(i,"ResourceURL"))return Xt(i);throw new R(5201,!1);default:throw new R(5202,!1)}}bypassSecurityTrustHtml(e){return sr(e)}bypassSecurityTrustStyle(e){return cr(e)}bypassSecurityTrustScript(e){return dr(e)}bypassSecurityTrustUrl(e){return lr(e)}bypassSecurityTrustResourceUrl(e){return ur(e)}};t.\u0275fac=function(i){return new(i||t)(u(T))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var y="primary",Ye=Symbol("RouteTitle"),Zi=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let o=this.params[t];return Array.isArray(o)?o[0]:o}return null}getAll(t){if(this.has(t)){let o=this.params[t];return Array.isArray(o)?o:[o]}return[]}get keys(){return Object.keys(this.params)}};function le(n){return new Zi(n)}function Dc(n,t,o){let e=o.path.split("/");if(e.length>n.length||o.pathMatch==="full"&&(t.hasChildren()||e.lengthe[r]===i)}else return n===t}function ua(n){return n.length>0?n[n.length-1]:null}function Mt(n){return Go(n)?n:xr(n)?z(Promise.resolve(n)):f(n)}var kc={exact:ha,subset:pa},ma={exact:Oc,subset:Nc,ignored:()=>!0};function na(n,t,o){return kc[o.paths](n.root,t.root,o.matrixParams)&&ma[o.queryParams](n.queryParams,t.queryParams)&&!(o.fragment==="exact"&&n.fragment!==t.fragment)}function Oc(n,t){return dt(n,t)}function ha(n,t,o){if(!Ht(n.segments,t.segments)||!Un(n.segments,t.segments,o)||n.numberOfChildren!==t.numberOfChildren)return!1;for(let e in t.children)if(!n.children[e]||!ha(n.children[e],t.children[e],o))return!1;return!0}function Nc(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(o=>la(n[o],t[o]))}function pa(n,t,o){return fa(n,t,t.segments,o)}function fa(n,t,o,e){if(n.segments.length>o.length){let i=n.segments.slice(0,o.length);return!(!Ht(i,o)||t.hasChildren()||!Un(i,o,e))}else if(n.segments.length===o.length){if(!Ht(n.segments,o)||!Un(n.segments,o,e))return!1;for(let i in t.children)if(!n.children[i]||!pa(n.children[i],t.children[i],e))return!1;return!0}else{let i=o.slice(0,n.segments.length),r=o.slice(n.segments.length);return!Ht(n.segments,i)||!Un(n.segments,i,e)||!n.children[y]?!1:fa(n.children[y],t,r,e)}}function Un(n,t,o){return t.every((e,i)=>ma[o](n[i].parameters,e.parameters))}var Rt=class{constructor(t=new E([],{}),o={},e=null){this.root=t,this.queryParams=o,this.fragment=e}get queryParamMap(){return this._queryParamMap??=le(this.queryParams),this._queryParamMap}toString(){return jc.serialize(this)}},E=class{constructor(t,o){this.segments=t,this.children=o,this.parent=null,Object.values(o).forEach(e=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return zn(this)}},Wt=class{constructor(t,o){this.path=t,this.parameters=o}get parameterMap(){return this._parameterMap??=le(this.parameters),this._parameterMap}toString(){return ga(this)}};function Fc(n,t){return Ht(n,t)&&n.every((o,e)=>dt(o.parameters,t[e].parameters))}function Ht(n,t){return n.length!==t.length?!1:n.every((o,e)=>o.path===t[e].path)}function Pc(n,t){let o=[];return Object.entries(n.children).forEach(([e,i])=>{e===y&&(o=o.concat(t(i,e)))}),Object.entries(n.children).forEach(([e,i])=>{e!==y&&(o=o.concat(t(i,e)))}),o}var Je=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>new $e,providedIn:"root"});let n=t;return n})(),$e=class{parse(t){let o=new Xi(t);return new Rt(o.parseRootSegment(),o.parseQueryParams(),o.parseFragment())}serialize(t){let o=`/${Fe(t.root,!0)}`,e=zc(t.queryParams),i=typeof t.fragment=="string"?`#${Lc(t.fragment)}`:"";return`${o}${e}${i}`}},jc=new $e;function zn(n){return n.segments.map(t=>ga(t)).join("/")}function Fe(n,t){if(!n.hasChildren())return zn(n);if(t){let o=n.children[y]?Fe(n.children[y],!1):"",e=[];return Object.entries(n.children).forEach(([i,r])=>{i!==y&&e.push(`${i}:${Fe(r,!1)}`)}),e.length>0?`${o}(${e.join("//")})`:o}else{let o=Pc(n,(e,i)=>i===y?[Fe(n.children[y],!1)]:[`${i}:${Fe(e,!1)}`]);return Object.keys(n.children).length===1&&n.children[y]!=null?`${zn(n)}/${o[0]}`:`${zn(n)}/(${o.join("//")})`}}function ba(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function jn(n){return ba(n).replace(/%3B/gi,";")}function Lc(n){return encodeURI(n)}function Ji(n){return ba(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function $n(n){return decodeURIComponent(n)}function ia(n){return $n(n.replace(/\+/g,"%20"))}function ga(n){return`${Ji(n.path)}${Uc(n.parameters)}`}function Uc(n){return Object.entries(n).map(([t,o])=>`;${Ji(t)}=${Ji(o)}`).join("")}function zc(n){let t=Object.entries(n).map(([o,e])=>Array.isArray(e)?e.map(i=>`${jn(o)}=${jn(i)}`).join("&"):`${jn(o)}=${jn(e)}`).filter(o=>o);return t.length?`?${t.join("&")}`:""}var $c=/^[^\/()?;#]+/;function Hi(n){let t=n.match($c);return t?t[0]:""}var Bc=/^[^\/()?;=#]+/;function Vc(n){let t=n.match(Bc);return t?t[0]:""}var Wc=/^[^=?&#]+/;function Hc(n){let t=n.match(Wc);return t?t[0]:""}var qc=/^[^&#]+/;function Gc(n){let t=n.match(qc);return t?t[0]:""}var Xi=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new E([],{}):new E([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let o={};this.peekStartsWith("/(")&&(this.capture("/"),o=this.parseParens(!0));let e={};return this.peekStartsWith("(")&&(e=this.parseParens(!1)),(t.length>0||Object.keys(o).length>0)&&(e[y]=new E(t,o)),e}parseSegment(){let t=Hi(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new R(4009,!1);return this.capture(t),new Wt($n(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let o=Vc(this.remaining);if(!o)return;this.capture(o);let e="";if(this.consumeOptional("=")){let i=Hi(this.remaining);i&&(e=i,this.capture(e))}t[$n(o)]=$n(e)}parseQueryParam(t){let o=Hc(this.remaining);if(!o)return;this.capture(o);let e="";if(this.consumeOptional("=")){let a=Gc(this.remaining);a&&(e=a,this.capture(e))}let i=ia(o),r=ia(e);if(t.hasOwnProperty(i)){let a=t[i];Array.isArray(a)||(a=[a],t[i]=a),a.push(r)}else t[i]=r}parseParens(t){let o={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let e=Hi(this.remaining),i=this.remaining[e.length];if(i!=="/"&&i!==")"&&i!==";")throw new R(4010,!1);let r;e.indexOf(":")>-1?(r=e.slice(0,e.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=y);let a=this.parseChildren();o[r]=Object.keys(a).length===1?a[y]:new E([],a),this.consumeOptional("//")}return o}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new R(4011,!1)}};function va(n){return n.segments.length>0?new E([],{[y]:n}):n}function ya(n){let t={};for(let[e,i]of Object.entries(n.children)){let r=ya(i);if(e===y&&r.segments.length===0&&r.hasChildren())for(let[a,s]of Object.entries(r.children))t[a]=s;else(r.segments.length>0||r.hasChildren())&&(t[e]=r)}let o=new E(n.segments,t);return Kc(o)}function Kc(n){if(n.numberOfChildren===1&&n.children[y]){let t=n.children[y];return new E(n.segments.concat(t.segments),t.children)}return n}function ue(n){return n instanceof Rt}function Zc(n,t,o=null,e=null){let i=_a(n);return wa(i,t,o,e)}function _a(n){let t;function o(r){let a={};for(let d of r.children){let c=o(d);a[d.outlet]=c}let s=new E(r.url,a);return r===n&&(t=s),s}let e=o(n.root),i=va(e);return t??i}function wa(n,t,o,e){let i=n;for(;i.parent;)i=i.parent;if(t.length===0)return qi(i,i,i,o,e);let r=Yc(t);if(r.toRoot())return qi(i,i,new E([],{}),o,e);let a=Jc(r,i,n),s=a.processChildren?Le(a.segmentGroup,a.index,r.commands):Ia(a.segmentGroup,a.index,r.commands);return qi(i,a.segmentGroup,s,o,e)}function Bn(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function Be(n){return typeof n=="object"&&n!=null&&n.outlets}function qi(n,t,o,e,i){let r={};e&&Object.entries(e).forEach(([d,c])=>{r[d]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let a;n===t?a=o:a=xa(n,t,o);let s=va(ya(a));return new Rt(s,r,i)}function xa(n,t,o){let e={};return Object.entries(n.children).forEach(([i,r])=>{r===t?e[i]=o:e[i]=xa(r,t,o)}),new E(n.segments,e)}var Vn=class{constructor(t,o,e){if(this.isAbsolute=t,this.numberOfDoubleDots=o,this.commands=e,t&&e.length>0&&Bn(e[0]))throw new R(4003,!1);let i=e.find(Be);if(i&&i!==ua(e))throw new R(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Yc(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new Vn(!0,0,n);let t=0,o=!1,e=n.reduce((i,r,a)=>{if(typeof r=="object"&&r!=null){if(r.outlets){let s={};return Object.entries(r.outlets).forEach(([d,c])=>{s[d]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:s}]}if(r.segmentPath)return[...i,r.segmentPath]}return typeof r!="string"?[...i,r]:a===0?(r.split("/").forEach((s,d)=>{d==0&&s==="."||(d==0&&s===""?o=!0:s===".."?t++:s!=""&&i.push(s))}),i):[...i,r]},[]);return new Vn(o,t,e)}var ce=class{constructor(t,o,e){this.segmentGroup=t,this.processChildren=o,this.index=e}};function Jc(n,t,o){if(n.isAbsolute)return new ce(t,!0,0);if(!o)return new ce(t,!1,NaN);if(o.parent===null)return new ce(o,!0,0);let e=Bn(n.commands[0])?0:1,i=o.segments.length-1+e;return Xc(o,i,n.numberOfDoubleDots)}function Xc(n,t,o){let e=n,i=t,r=o;for(;r>i;){if(r-=i,e=e.parent,!e)throw new R(4005,!1);i=e.segments.length}return new ce(e,!1,i-r)}function Qc(n){return Be(n[0])?n[0].outlets:{[y]:n}}function Ia(n,t,o){if(n??=new E([],{}),n.segments.length===0&&n.hasChildren())return Le(n,t,o);let e=td(n,t,o),i=o.slice(e.commandIndex);if(e.match&&e.pathIndexr!==y)&&n.children[y]&&n.numberOfChildren===1&&n.children[y].segments.length===0){let r=Le(n.children[y],t,o);return new E(n.segments,r.children)}return Object.entries(e).forEach(([r,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[r]=Ia(n.children[r],t,a))}),Object.entries(n.children).forEach(([r,a])=>{e[r]===void 0&&(i[r]=a)}),new E(n.segments,i)}}function td(n,t,o){let e=0,i=t,r={match:!1,pathIndex:0,commandIndex:0};for(;i=o.length)return r;let a=n.segments[i],s=o[e];if(Be(s))break;let d=`${s}`,c=e0&&d===void 0)break;if(d&&c&&typeof c=="object"&&c.outlets===void 0){if(!ra(d,c,a))return r;e+=2}else{if(!ra(d,{},a))return r;e++}i++}return{match:!0,pathIndex:i,commandIndex:e}}function Qi(n,t,o){let e=n.segments.slice(0,t),i=0;for(;i{typeof e=="string"&&(e=[e]),e!==null&&(t[o]=Qi(new E([],{}),0,e))}),t}function oa(n){let t={};return Object.entries(n).forEach(([o,e])=>t[o]=`${e}`),t}function ra(n,t,o){return n==o.path&&dt(t,o.parameters)}var Ue="imperative",j=function(n){return n[n.NavigationStart=0]="NavigationStart",n[n.NavigationEnd=1]="NavigationEnd",n[n.NavigationCancel=2]="NavigationCancel",n[n.NavigationError=3]="NavigationError",n[n.RoutesRecognized=4]="RoutesRecognized",n[n.ResolveStart=5]="ResolveStart",n[n.ResolveEnd=6]="ResolveEnd",n[n.GuardsCheckStart=7]="GuardsCheckStart",n[n.GuardsCheckEnd=8]="GuardsCheckEnd",n[n.RouteConfigLoadStart=9]="RouteConfigLoadStart",n[n.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",n[n.ChildActivationStart=11]="ChildActivationStart",n[n.ChildActivationEnd=12]="ChildActivationEnd",n[n.ActivationStart=13]="ActivationStart",n[n.ActivationEnd=14]="ActivationEnd",n[n.Scroll=15]="Scroll",n[n.NavigationSkipped=16]="NavigationSkipped",n}(j||{}),tt=class{constructor(t,o){this.id=t,this.url=o}},me=class extends tt{constructor(t,o,e="imperative",i=null){super(t,o),this.type=j.NavigationStart,this.navigationTrigger=e,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},lt=class extends tt{constructor(t,o,e){super(t,o),this.urlAfterRedirects=e,this.type=j.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},J=function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n}(J||{}),Wn=function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n}(Wn||{}),St=class extends tt{constructor(t,o,e,i){super(t,o),this.reason=e,this.code=i,this.type=j.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},At=class extends tt{constructor(t,o,e,i){super(t,o),this.reason=e,this.code=i,this.type=j.NavigationSkipped}},Ve=class extends tt{constructor(t,o,e,i){super(t,o),this.error=e,this.target=i,this.type=j.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Hn=class extends tt{constructor(t,o,e,i){super(t,o),this.urlAfterRedirects=e,this.state=i,this.type=j.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},to=class extends tt{constructor(t,o,e,i){super(t,o),this.urlAfterRedirects=e,this.state=i,this.type=j.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},eo=class extends tt{constructor(t,o,e,i,r){super(t,o),this.urlAfterRedirects=e,this.state=i,this.shouldActivate=r,this.type=j.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},no=class extends tt{constructor(t,o,e,i){super(t,o),this.urlAfterRedirects=e,this.state=i,this.type=j.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},io=class extends tt{constructor(t,o,e,i){super(t,o),this.urlAfterRedirects=e,this.state=i,this.type=j.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},oo=class{constructor(t){this.route=t,this.type=j.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},ro=class{constructor(t){this.route=t,this.type=j.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},ao=class{constructor(t){this.snapshot=t,this.type=j.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},so=class{constructor(t){this.snapshot=t,this.type=j.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},co=class{constructor(t){this.snapshot=t,this.type=j.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},lo=class{constructor(t){this.snapshot=t,this.type=j.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},qn=class{constructor(t,o,e){this.routerEvent=t,this.position=o,this.anchor=e,this.type=j.Scroll}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},We=class{},He=class{constructor(t){this.url=t}};var uo=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Xe,this.attachRef=null}},Xe=(()=>{let t=class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new uo,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Gn=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let o=this.pathFromRoot(t);return o.length>1?o[o.length-2]:null}children(t){let o=mo(t,this._root);return o?o.children.map(e=>e.value):[]}firstChild(t){let o=mo(t,this._root);return o&&o.children.length>0?o.children[0].value:null}siblings(t){let o=ho(t,this._root);return o.length<2?[]:o[o.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return ho(t,this._root).map(o=>o.value)}};function mo(n,t){if(n===t.value)return t;for(let o of t.children){let e=mo(n,o);if(e)return e}return null}function ho(n,t){if(n===t.value)return[t];for(let o of t.children){let e=ho(n,o);if(e.length)return e.unshift(t),e}return[]}var Y=class{constructor(t,o){this.value=t,this.children=o}toString(){return`TreeNode(${this.value})`}};function se(n){let t={};return n&&n.children.forEach(o=>t[o.value.outlet]=o),t}var Kn=class extends Gn{constructor(t,o){super(t),this.snapshot=o,Io(this,t)}toString(){return this.snapshot.toString()}};function Ea(n){let t=nd(n),o=new k([new Wt("",{})]),e=new k({}),i=new k({}),r=new k({}),a=new k(""),s=new Dt(o,e,r,a,i,y,n,t.root);return s.snapshot=t.root,new Kn(new Y(s,[]),t)}function nd(n){let t={},o={},e={},i="",r=new qe([],t,e,i,o,y,n,null,{});return new Zn("",new Y(r,[]))}var Dt=class{constructor(t,o,e,i,r,a,s,d){this.urlSubject=t,this.paramsSubject=o,this.queryParamsSubject=e,this.fragmentSubject=i,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=d,this.title=this.dataSubject?.pipe(v(c=>c[Ye]))??f(void 0),this.url=t,this.params=o,this.queryParams=e,this.fragment=i,this.data=r}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(v(t=>le(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(v(t=>le(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function xo(n,t,o="emptyOnly"){let e,{routeConfig:i}=n;return t!==null&&(o==="always"||i?.path===""||!t.component&&!t.routeConfig?.loadComponent)?e={params:h(h({},t.params),n.params),data:h(h({},t.data),n.data),resolve:h(h(h(h({},n.data),t.data),i?.data),n._resolvedData)}:e={params:h({},n.params),data:h({},n.data),resolve:h(h({},n.data),n._resolvedData??{})},i&&Ta(i)&&(e.resolve[Ye]=i.title),e}var qe=class{get title(){return this.data?.[Ye]}constructor(t,o,e,i,r,a,s,d,c){this.url=t,this.params=o,this.queryParams=e,this.fragment=i,this.data=r,this.outlet=a,this.component=s,this.routeConfig=d,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=le(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=le(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(e=>e.toString()).join("/"),o=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${o}')`}},Zn=class extends Gn{constructor(t,o){super(o),this.url=t,Io(this,o)}toString(){return Ca(this._root)}};function Io(n,t){t.value._routerState=n,t.children.forEach(o=>Io(n,o))}function Ca(n){let t=n.children.length>0?` { ${n.children.map(Ca).join(", ")} } `:"";return`${n.value}${t}`}function Gi(n){if(n.snapshot){let t=n.snapshot,o=n._futureSnapshot;n.snapshot=o,dt(t.queryParams,o.queryParams)||n.queryParamsSubject.next(o.queryParams),t.fragment!==o.fragment&&n.fragmentSubject.next(o.fragment),dt(t.params,o.params)||n.paramsSubject.next(o.params),Mc(t.url,o.url)||n.urlSubject.next(o.url),dt(t.data,o.data)||n.dataSubject.next(o.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function po(n,t){let o=dt(n.params,t.params)&&Fc(n.url,t.url),e=!n.parent!=!t.parent;return o&&!e&&(!n.parent||po(n.parent,t.parent))}function Ta(n){return typeof n.title=="string"||n.title===null}var Eo=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=y,this.activateEvents=new jt,this.deactivateEvents=new jt,this.attachEvents=new jt,this.detachEvents=new jt,this.parentContexts=m(Xe),this.location=m(vr),this.changeDetector=m(En),this.environmentInjector=m(Ft),this.inputBinder=m(Qn,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new R(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new R(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new R(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,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,i){if(this.isActivated)throw new R(4013,!1);this._activatedRoute=e;let r=this.location,s=e.snapshot.component,d=this.parentContexts.getOrCreateContext(this.name).children,c=new fo(e,d,r.injector);this.activated=r.createComponent(s,{index:r.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=ot({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[mn]});let n=t;return n})(),fo=class n{__ngOutletInjector(t){return new n(this.route,this.childContexts,t)}constructor(t,o,e){this.route=t,this.childContexts=o,this.parent=e}get(t,o){return t===Dt?this.route:t===Xe?this.childContexts:this.parent.get(t,o)}},Qn=new w(""),aa=(()=>{let t=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:i}=e,r=Zt([i.queryParams,i.params,i.data]).pipe(G(([a,s,d],c)=>(d=h(h(h({},a),s),d),c===0?f(d):Promise.resolve(d)))).subscribe(a=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let s=Er(i.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:d}of s.inputs)e.activatedComponentRef.setInput(d,a[d])});this.outletDataSubscriptions.set(e,r)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();function id(n,t,o){let e=Ge(n,t._root,o?o._root:void 0);return new Kn(e,t)}function Ge(n,t,o){if(o&&n.shouldReuseRoute(t.value,o.value.snapshot)){let e=o.value;e._futureSnapshot=t.value;let i=od(n,t,o);return new Y(e,i)}else{if(n.shouldAttach(t.value)){let r=n.retrieve(t.value);if(r!==null){let a=r.route;return a.value._futureSnapshot=t.value,a.children=t.children.map(s=>Ge(n,s)),a}}let e=rd(t.value),i=t.children.map(r=>Ge(n,r));return new Y(e,i)}}function od(n,t,o){return t.children.map(e=>{for(let i of o.children)if(n.shouldReuseRoute(e.value,i.value.snapshot))return Ge(n,e,i);return Ge(n,e)})}function rd(n){return new Dt(new k(n.url),new k(n.params),new k(n.queryParams),new k(n.fragment),new k(n.data),n.outlet,n.component,n)}var Ra="ngNavigationCancelingError";function Sa(n,t){let{redirectTo:o,navigationBehaviorOptions:e}=ue(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=Aa(!1,J.Redirect);return i.url=o,i.navigationBehaviorOptions=e,i}function Aa(n,t){let o=new Error(`NavigationCancelingError: ${n||""}`);return o[Ra]=!0,o.cancellationCode=t,o}function ad(n){return Da(n)&&ue(n.url)}function Da(n){return!!n&&n[Ra]}var sd=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=N({type:t,selectors:[["ng-component"]],standalone:!0,features:[P],decls:1,vars:0,template:function(i,r){i&1&&B(0,"router-outlet")},dependencies:[Eo],encapsulation:2});let n=t;return n})();function cd(n,t){return n.providers&&!n._injector&&(n._injector=Ci(n.providers,t,`Route: ${n.path}`)),n._injector??t}function Co(n){let t=n.children&&n.children.map(Co),o=t?U(h({},n),{children:t}):h({},n);return!o.component&&!o.loadComponent&&(t||o.loadChildren)&&o.outlet&&o.outlet!==y&&(o.component=sd),o}function ut(n){return n.outlet||y}function dd(n,t){let o=n.filter(e=>ut(e)===t);return o.push(...n.filter(e=>ut(e)!==t)),o}function Qe(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){let o=t.routeConfig;if(o?._loadedInjector)return o._loadedInjector;if(o?._injector)return o._injector}return null}var ld=(n,t,o,e)=>v(i=>(new bo(t,i.targetRouterState,i.currentRouterState,o,e).activate(n),i)),bo=class{constructor(t,o,e,i,r){this.routeReuseStrategy=t,this.futureState=o,this.currState=e,this.forwardEvent=i,this.inputBindingEnabled=r}activate(t){let o=this.futureState._root,e=this.currState?this.currState._root:null;this.deactivateChildRoutes(o,e,t),Gi(this.futureState.root),this.activateChildRoutes(o,e,t)}deactivateChildRoutes(t,o,e){let i=se(o);t.children.forEach(r=>{let a=r.value.outlet;this.deactivateRoutes(r,i[a],e),delete i[a]}),Object.values(i).forEach(r=>{this.deactivateRouteAndItsChildren(r,e)})}deactivateRoutes(t,o,e){let i=t.value,r=o?o.value:null;if(i===r)if(i.component){let a=e.getContext(i.outlet);a&&this.deactivateChildRoutes(t,o,a.children)}else this.deactivateChildRoutes(t,o,e);else r&&this.deactivateRouteAndItsChildren(o,e)}deactivateRouteAndItsChildren(t,o){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,o):this.deactivateRouteAndOutlet(t,o)}detachAndStoreRouteSubtree(t,o){let e=o.getContext(t.value.outlet),i=e&&t.value.component?e.children:o,r=se(t);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,i);if(e&&e.outlet){let a=e.outlet.detach(),s=e.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:a,route:t,contexts:s})}}deactivateRouteAndOutlet(t,o){let e=o.getContext(t.value.outlet),i=e&&t.value.component?e.children:o,r=se(t);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,i);e&&(e.outlet&&(e.outlet.deactivate(),e.children.onOutletDeactivated()),e.attachRef=null,e.route=null)}activateChildRoutes(t,o,e){let i=se(o);t.children.forEach(r=>{this.activateRoutes(r,i[r.value.outlet],e),this.forwardEvent(new lo(r.value.snapshot))}),t.children.length&&this.forwardEvent(new so(t.value.snapshot))}activateRoutes(t,o,e){let i=t.value,r=o?o.value:null;if(Gi(i),i===r)if(i.component){let a=e.getOrCreateContext(i.outlet);this.activateChildRoutes(t,o,a.children)}else this.activateChildRoutes(t,o,e);else if(i.component){let a=e.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let s=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),Gi(s.route.value),this.activateChildRoutes(t,null,a.children)}else{let s=Qe(i.snapshot);a.attachRef=null,a.route=i,a.injector=s,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(t,null,a.children)}}else this.activateChildRoutes(t,null,e)}},Yn=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},de=class{constructor(t,o){this.component=t,this.route=o}};function ud(n,t,o){let e=n._root,i=t?t._root:null;return Pe(e,i,o,[e.value])}function md(n){let t=n.routeConfig?n.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:n,guards:t}}function pe(n,t){let o=Symbol(),e=t.get(n,o);return e===o?typeof n=="function"&&!er(n)?n:t.get(n):e}function Pe(n,t,o,e,i={canDeactivateChecks:[],canActivateChecks:[]}){let r=se(t);return n.children.forEach(a=>{hd(a,r[a.value.outlet],o,e.concat([a.value]),i),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>ze(s,o.getContext(a),i)),i}function hd(n,t,o,e,i={canDeactivateChecks:[],canActivateChecks:[]}){let r=n.value,a=t?t.value:null,s=o?o.getContext(n.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){let d=pd(a,r,r.routeConfig.runGuardsAndResolvers);d?i.canActivateChecks.push(new Yn(e)):(r.data=a.data,r._resolvedData=a._resolvedData),r.component?Pe(n,t,s?s.children:null,e,i):Pe(n,t,o,e,i),d&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new de(s.outlet.component,a))}else a&&ze(t,s,i),i.canActivateChecks.push(new Yn(e)),r.component?Pe(n,null,s?s.children:null,e,i):Pe(n,null,o,e,i);return i}function pd(n,t,o){if(typeof o=="function")return o(n,t);switch(o){case"pathParamsChange":return!Ht(n.url,t.url);case"pathParamsOrQueryParamsChange":return!Ht(n.url,t.url)||!dt(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!po(n,t)||!dt(n.queryParams,t.queryParams);case"paramsChange":default:return!po(n,t)}}function ze(n,t,o){let e=se(n),i=n.value;Object.entries(e).forEach(([r,a])=>{i.component?t?ze(a,t.children.getContext(r),o):ze(a,null,o):ze(a,t,o)}),i.component?t&&t.outlet&&t.outlet.isActivated?o.canDeactivateChecks.push(new de(t.outlet.component,i)):o.canDeactivateChecks.push(new de(null,i)):o.canDeactivateChecks.push(new de(null,i))}function tn(n){return typeof n=="function"}function fd(n){return typeof n=="boolean"}function bd(n){return n&&tn(n.canLoad)}function gd(n){return n&&tn(n.canActivate)}function vd(n){return n&&tn(n.canActivateChild)}function yd(n){return n&&tn(n.canDeactivate)}function _d(n){return n&&tn(n.canMatch)}function Ma(n){return n instanceof Ko||n?.name==="EmptyError"}var Ln=Symbol("INITIAL_VALUE");function he(){return G(n=>Zt(n.map(t=>t.pipe(it(1),ln(Ln)))).pipe(v(t=>{for(let o of t)if(o!==!0){if(o===Ln)return Ln;if(o===!1||o instanceof Rt)return o}return!0}),st(t=>t!==Ln),it(1)))}function wd(n,t){return q(o=>{let{targetSnapshot:e,currentSnapshot:i,guards:{canActivateChecks:r,canDeactivateChecks:a}}=o;return a.length===0&&r.length===0?f(U(h({},o),{guardsResult:!0})):xd(a,e,i,n).pipe(q(s=>s&&fd(s)?Id(e,r,n,t):f(s)),v(s=>U(h({},o),{guardsResult:s})))})}function xd(n,t,o,e){return z(n).pipe(q(i=>Sd(i.component,i.route,o,t,e)),wt(i=>i!==!0,!0))}function Id(n,t,o,e){return z(t).pipe(_t(i=>Yt(Cd(i.route.parent,e),Ed(i.route,e),Rd(n,i.path,o),Td(n,i.route,o))),wt(i=>i!==!0,!0))}function Ed(n,t){return n!==null&&t&&t(new co(n)),f(!0)}function Cd(n,t){return n!==null&&t&&t(new ao(n)),f(!0)}function Td(n,t,o){let e=t.routeConfig?t.routeConfig.canActivate:null;if(!e||e.length===0)return f(!0);let i=e.map(r=>bi(()=>{let a=Qe(t)??o,s=pe(r,a),d=gd(s)?s.canActivate(t,n):ct(a,()=>s(t,n));return Mt(d).pipe(wt())}));return f(i).pipe(he())}function Rd(n,t,o){let e=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(a=>md(a)).filter(a=>a!==null).map(a=>bi(()=>{let s=a.guards.map(d=>{let c=Qe(a.node)??o,l=pe(d,c),p=vd(l)?l.canActivateChild(e,n):ct(c,()=>l(e,n));return Mt(p).pipe(wt())});return f(s).pipe(he())}));return f(r).pipe(he())}function Sd(n,t,o,e,i){let r=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!r||r.length===0)return f(!0);let a=r.map(s=>{let d=Qe(t)??i,c=pe(s,d),l=yd(c)?c.canDeactivate(n,t,o,e):ct(d,()=>c(n,t,o,e));return Mt(l).pipe(wt())});return f(a).pipe(he())}function Ad(n,t,o,e){let i=t.canLoad;if(i===void 0||i.length===0)return f(!0);let r=i.map(a=>{let s=pe(a,n),d=bd(s)?s.canLoad(t,o):ct(n,()=>s(t,o));return Mt(d)});return f(r).pipe(he(),ka(e))}function ka(n){return qo(A(t=>{if(ue(t))throw Sa(n,t)}),v(t=>t===!0))}function Dd(n,t,o,e){let i=t.canMatch;if(!i||i.length===0)return f(!0);let r=i.map(a=>{let s=pe(a,n),d=_d(s)?s.canMatch(t,o):ct(n,()=>s(t,o));return Mt(d)});return f(r).pipe(he(),ka(e))}var Ke=class{constructor(t){this.segmentGroup=t||null}},Jn=class extends Error{constructor(t){super(),this.urlTree=t}};function ae(n){return Ot(new Ke(n))}function Md(n){return Ot(new R(4e3,!1))}function kd(n){return Ot(Aa(!1,J.GuardRejected))}var go=class{constructor(t,o){this.urlSerializer=t,this.urlTree=o}lineralizeSegments(t,o){let e=[],i=o.root;for(;;){if(e=e.concat(i.segments),i.numberOfChildren===0)return f(e);if(i.numberOfChildren>1||!i.children[y])return Md(t.redirectTo);i=i.children[y]}}applyRedirectCommands(t,o,e){let i=this.applyRedirectCreateUrlTree(o,this.urlSerializer.parse(o),t,e);if(o.startsWith("/"))throw new Jn(i);return i}applyRedirectCreateUrlTree(t,o,e,i){let r=this.createSegmentGroup(t,o.root,e,i);return new Rt(r,this.createQueryParams(o.queryParams,this.urlTree.queryParams),o.fragment)}createQueryParams(t,o){let e={};return Object.entries(t).forEach(([i,r])=>{if(typeof r=="string"&&r.startsWith(":")){let s=r.substring(1);e[i]=o[s]}else e[i]=r}),e}createSegmentGroup(t,o,e,i){let r=this.createSegments(t,o.segments,e,i),a={};return Object.entries(o.children).forEach(([s,d])=>{a[s]=this.createSegmentGroup(t,d,e,i)}),new E(r,a)}createSegments(t,o,e,i){return o.map(r=>r.path.startsWith(":")?this.findPosParam(t,r,i):this.findOrReturn(r,e))}findPosParam(t,o,e){let i=e[o.path.substring(1)];if(!i)throw new R(4001,!1);return i}findOrReturn(t,o){let e=0;for(let i of o){if(i.path===t.path)return o.splice(e),i;e++}return t}},vo={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Od(n,t,o,e,i){let r=To(n,t,o);return r.matched?(e=cd(t,e),Dd(e,t,o,i).pipe(v(a=>a===!0?r:h({},vo)))):f(r)}function To(n,t,o){if(t.path==="**")return Nd(o);if(t.path==="")return t.pathMatch==="full"&&(n.hasChildren()||o.length>0)?h({},vo):{matched:!0,consumedSegments:[],remainingSegments:o,parameters:{},positionalParamSegments:{}};let i=(t.matcher||Dc)(o,n,t);if(!i)return h({},vo);let r={};Object.entries(i.posParams??{}).forEach(([s,d])=>{r[s]=d.path});let a=i.consumed.length>0?h(h({},r),i.consumed[i.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:i.consumed,remainingSegments:o.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function Nd(n){return{matched:!0,parameters:n.length>0?ua(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function sa(n,t,o,e){return o.length>0&&jd(n,o,e)?{segmentGroup:new E(t,Pd(e,new E(o,n.children))),slicedSegments:[]}:o.length===0&&Ld(n,o,e)?{segmentGroup:new E(n.segments,Fd(n,o,e,n.children)),slicedSegments:o}:{segmentGroup:new E(n.segments,n.children),slicedSegments:o}}function Fd(n,t,o,e){let i={};for(let r of o)if(ti(n,t,r)&&!e[ut(r)]){let a=new E([],{});i[ut(r)]=a}return h(h({},e),i)}function Pd(n,t){let o={};o[y]=t;for(let e of n)if(e.path===""&&ut(e)!==y){let i=new E([],{});o[ut(e)]=i}return o}function jd(n,t,o){return o.some(e=>ti(n,t,e)&&ut(e)!==y)}function Ld(n,t,o){return o.some(e=>ti(n,t,e))}function ti(n,t,o){return(n.hasChildren()||t.length>0)&&o.pathMatch==="full"?!1:o.path===""}function Ud(n,t,o,e){return ut(n)!==e&&(e===y||!ti(t,o,n))?!1:To(t,n,o).matched}function zd(n,t,o){return t.length===0&&!n.children[o]}var yo=class{};function $d(n,t,o,e,i,r,a="emptyOnly"){return new _o(n,t,o,e,i,a,r).recognize()}var Bd=31,_o=class{constructor(t,o,e,i,r,a,s){this.injector=t,this.configLoader=o,this.rootComponentType=e,this.config=i,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new go(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new R(4002,`'${t.segmentGroup}'`)}recognize(){let t=sa(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(v(o=>{let e=new qe([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,{},y,this.rootComponentType,null,{}),i=new Y(e,o),r=new Zn("",i),a=Zc(e,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(r._root,null),{state:r,tree:a}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,y).pipe(yt(e=>{if(e instanceof Jn)return this.urlTree=e.urlTree,this.match(e.urlTree.root);throw e instanceof Ke?this.noMatchError(e):e}))}inheritParamsAndData(t,o){let e=t.value,i=xo(e,o,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(r=>this.inheritParamsAndData(r,e))}processSegmentGroup(t,o,e,i){return e.segments.length===0&&e.hasChildren()?this.processChildren(t,o,e):this.processSegment(t,o,e,e.segments,i,!0).pipe(v(r=>r instanceof Y?[r]:[]))}processChildren(t,o,e){let i=[];for(let r of Object.keys(e.children))r==="primary"?i.unshift(r):i.push(r);return z(i).pipe(_t(r=>{let a=e.children[r],s=dd(o,r);return this.processSegmentGroup(t,s,a,r)}),Qo((r,a)=>(r.push(...a),r)),vi(null),Xo(),q(r=>{if(r===null)return ae(e);let a=Oa(r);return Vd(a),f(a)}))}processSegment(t,o,e,i,r,a){return z(o).pipe(_t(s=>this.processSegmentAgainstRoute(s._injector??t,o,s,e,i,r,a).pipe(yt(d=>{if(d instanceof Ke)return f(null);throw d}))),wt(s=>!!s),yt(s=>{if(Ma(s))return zd(e,i,r)?f(new yo):ae(e);throw s}))}processSegmentAgainstRoute(t,o,e,i,r,a,s){return Ud(e,i,r,a)?e.redirectTo===void 0?this.matchSegmentAgainstRoute(t,i,e,r,a):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(t,i,o,e,r,a):ae(i):ae(i)}expandSegmentAgainstRouteUsingRedirect(t,o,e,i,r,a){let{matched:s,consumedSegments:d,positionalParamSegments:c,remainingSegments:l}=To(o,i,r);if(!s)return ae(o);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Bd&&(this.allowRedirects=!1));let p=this.applyRedirects.applyRedirectCommands(d,i.redirectTo,c);return this.applyRedirects.lineralizeSegments(i,p).pipe(q(g=>this.processSegment(t,e,o,g.concat(l),a,!1)))}matchSegmentAgainstRoute(t,o,e,i,r){let a=Od(o,e,i,t,this.urlSerializer);return e.path==="**"&&(o.children={}),a.pipe(G(s=>s.matched?(t=e._injector??t,this.getChildConfig(t,e,i).pipe(G(({routes:d})=>{let c=e._loadedInjector??t,{consumedSegments:l,remainingSegments:p,parameters:g}=s,x=new qe(l,g,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Hd(e),ut(e),e.component??e._loadedComponent??null,e,qd(e)),{segmentGroup:X,slicedSegments:L}=sa(o,l,p,d);if(L.length===0&&X.hasChildren())return this.processChildren(c,d,X).pipe(v(I=>I===null?null:new Y(x,I)));if(d.length===0&&L.length===0)return f(new Y(x,[]));let C=ut(e)===r;return this.processSegment(c,d,X,L,C?y:r,!0).pipe(v(I=>new Y(x,I instanceof Y?[I]:[])))}))):ae(o)))}getChildConfig(t,o,e){return o.children?f({routes:o.children,injector:t}):o.loadChildren?o._loadedRoutes!==void 0?f({routes:o._loadedRoutes,injector:o._loadedInjector}):Ad(t,o,e,this.urlSerializer).pipe(q(i=>i?this.configLoader.loadChildren(t,o).pipe(A(r=>{o._loadedRoutes=r.routes,o._loadedInjector=r.injector})):kd(o))):f({routes:[],injector:t})}};function Vd(n){n.sort((t,o)=>t.value.outlet===y?-1:o.value.outlet===y?1:t.value.outlet.localeCompare(o.value.outlet))}function Wd(n){let t=n.value.routeConfig;return t&&t.path===""}function Oa(n){let t=[],o=new Set;for(let e of n){if(!Wd(e)){t.push(e);continue}let i=t.find(r=>e.value.routeConfig===r.value.routeConfig);i!==void 0?(i.children.push(...e.children),o.add(i)):t.push(e)}for(let e of o){let i=Oa(e.children);t.push(new Y(e.value,i))}return t.filter(e=>!o.has(e))}function Hd(n){return n.data||{}}function qd(n){return n.resolve||{}}function Gd(n,t,o,e,i,r){return q(a=>$d(n,t,o,e,a.extractedUrl,i,r).pipe(v(({state:s,tree:d})=>U(h({},a),{targetSnapshot:s,urlAfterRedirects:d}))))}function Kd(n,t){return q(o=>{let{targetSnapshot:e,guards:{canActivateChecks:i}}=o;if(!i.length)return f(o);let r=new Set(i.map(d=>d.route)),a=new Set;for(let d of r)if(!a.has(d))for(let c of Na(d))a.add(c);let s=0;return z(a).pipe(_t(d=>r.has(d)?Zd(d,e,n,t):(d.data=xo(d,d.parent,n).resolve,f(void 0))),A(()=>s++),yi(1),q(d=>s===a.size?f(o):vt))})}function Na(n){let t=n.children.map(o=>Na(o)).flat();return[n,...t]}function Zd(n,t,o,e){let i=n.routeConfig,r=n._resolve;return i?.title!==void 0&&!Ta(i)&&(r[Ye]=i.title),Yd(r,n,t,e).pipe(v(a=>(n._resolvedData=a,n.data=xo(n,n.parent,o).resolve,null)))}function Yd(n,t,o,e){let i=Yi(n);if(i.length===0)return f({});let r={};return z(i).pipe(q(a=>Jd(n[a],t,o,e).pipe(wt(),A(s=>{r[a]=s}))),yi(1),Yo(r),yt(a=>Ma(a)?vt:Ot(a)))}function Jd(n,t,o,e){let i=Qe(t)??e,r=pe(n,i),a=r.resolve?r.resolve(t,o):ct(i,()=>r(t,o));return Mt(a)}function Ki(n){return G(t=>{let o=n(t);return o?z(o).pipe(v(()=>t)):f(t)})}var Fa=(()=>{let t=class t{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(a=>a.outlet===y);return i}getResolvedTitleForRoute(e){return e.data[Ye]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>m(Xd),providedIn:"root"});let n=t;return n})(),Xd=(()=>{let t=class t extends Fa{constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}};t.\u0275fac=function(i){return new(i||t)(u(ta))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),en=new w("",{providedIn:"root",factory:()=>({})}),Ze=new w(""),Ro=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=m(In)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return f(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let i=Mt(e.loadComponent()).pipe(v(Pa),A(a=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=a}),mt(()=>{this.componentLoaders.delete(e)})),r=new pi(i,()=>new H).pipe(hi());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return f({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let a=Qd(i,this.compiler,e,this.onLoadEndListener).pipe(mt(()=>{this.childrenLoaders.delete(i)})),s=new pi(a,()=>new H).pipe(hi());return this.childrenLoaders.set(i,s),s}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function Qd(n,t,o,e){return Mt(n.loadChildren()).pipe(v(Pa),q(i=>i instanceof _r||Array.isArray(i)?f(i):z(t.compileModuleAsync(i))),v(i=>{e&&e(n);let r,a,s=!1;return Array.isArray(i)?(a=i,s=!0):(r=i.create(o).injector,a=r.get(Ze,[],{optional:!0,self:!0}).flat()),{routes:a.map(Co),injector:r}}))}function tl(n){return n&&typeof n=="object"&&"default"in n}function Pa(n){return tl(n)?n.default:n}var So=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>m(el),providedIn:"root"});let n=t;return n})(),el=(()=>{let t=class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),ja=new w(""),La=new w("");function nl(n,t,o){let e=n.get(La),i=n.get(T);return n.get(S).runOutsideAngular(()=>{if(!i.startViewTransition||e.skipNextTransition)return e.skipNextTransition=!1,Promise.resolve();let r,a=new Promise(c=>{r=c}),s=i.startViewTransition(()=>(r(),il(n))),{onViewTransitionCreated:d}=e;return d&&ct(n,()=>d({transition:s,from:t,to:o})),a})}function il(n){return new Promise(t=>{gr(t,{injector:n})})}var Ao=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new H,this.transitionAbortSubject=new H,this.configLoader=m(Ro),this.environmentInjector=m(Ft),this.urlSerializer=m(Je),this.rootContexts=m(Xe),this.location=m(Te),this.inputBindingEnabled=m(Qn,{optional:!0})!==null,this.titleStrategy=m(Fa),this.options=m(en,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=m(So),this.createViewTransition=m(ja,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>f(void 0),this.rootComponentType=null;let e=r=>this.events.next(new oo(r)),i=r=>this.events.next(new ro(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;this.transitions?.next(U(h(h({},this.transitions.value),e),{id:i}))}setupNavigations(e,i,r){return this.transitions=new k({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ue,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(st(a=>a.id!==0),v(a=>U(h({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),G(a=>{let s=!1,d=!1;return f(a).pipe(G(c=>{if(this.navigationId>a.id)return this.cancelNavigationTransition(a,"",J.SupersededByNewNavigation),vt;this.currentTransition=a,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?U(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),p=c.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!l&&p!=="reload"){let g="";return this.events.next(new At(c.id,this.urlSerializer.serialize(c.rawUrl),g,Wn.IgnoredSameUrlNavigation)),c.resolve(null),vt}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return f(c).pipe(G(g=>{let x=this.transitions?.getValue();return this.events.next(new me(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),x!==this.transitions?.getValue()?vt:Promise.resolve(g)}),Gd(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),A(g=>{a.targetSnapshot=g.targetSnapshot,a.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation=U(h({},this.currentNavigation),{finalUrl:g.urlAfterRedirects});let x=new Hn(g.id,this.urlSerializer.serialize(g.extractedUrl),this.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);this.events.next(x)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:g,extractedUrl:x,source:X,restoredState:L,extras:C}=c,I=new me(g,this.urlSerializer.serialize(x),X,L);this.events.next(I);let nt=Ea(this.rootComponentType).snapshot;return this.currentTransition=a=U(h({},c),{targetSnapshot:nt,urlAfterRedirects:x,extras:U(h({},C),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=x,f(a)}else{let g="";return this.events.next(new At(c.id,this.urlSerializer.serialize(c.extractedUrl),g,Wn.IgnoredByUrlHandlingStrategy)),c.resolve(null),vt}}),A(c=>{let l=new to(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),v(c=>(this.currentTransition=a=U(h({},c),{guards:ud(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),a)),wd(this.environmentInjector,c=>this.events.next(c)),A(c=>{if(a.guardsResult=c.guardsResult,ue(c.guardsResult))throw Sa(this.urlSerializer,c.guardsResult);let l=new eo(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),st(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",J.GuardRejected),!1)),Ki(c=>{if(c.guards.canActivateChecks.length)return f(c).pipe(A(l=>{let p=new no(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(p)}),G(l=>{let p=!1;return f(l).pipe(Kd(this.paramsInheritanceStrategy,this.environmentInjector),A({next:()=>p=!0,complete:()=>{p||this.cancelNavigationTransition(l,"",J.NoDataFromResolver)}}))}),A(l=>{let p=new io(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(p)}))}),Ki(c=>{let l=p=>{let g=[];p.routeConfig?.loadComponent&&!p.routeConfig._loadedComponent&&g.push(this.configLoader.loadComponent(p.routeConfig).pipe(A(x=>{p.component=x}),v(()=>{})));for(let x of p.children)g.push(...l(x));return g};return Zt(l(c.targetSnapshot.root)).pipe(vi(null),it(1))}),Ki(()=>this.afterPreactivation()),G(()=>{let{currentSnapshot:c,targetSnapshot:l}=a,p=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return p?z(p).pipe(v(()=>a)):f(a)}),v(c=>{let l=id(e.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=a=U(h({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,a}),A(()=>{this.events.next(new We)}),ld(this.rootContexts,e.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),it(1),A({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new lt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),Jt(this.transitionAbortSubject.pipe(A(c=>{throw c}))),mt(()=>{!s&&!d&&this.cancelNavigationTransition(a,"",J.SupersededByNewNavigation),this.currentTransition?.id===a.id&&(this.currentNavigation=null,this.currentTransition=null)}),yt(c=>{if(d=!0,Da(c))this.events.next(new St(a.id,this.urlSerializer.serialize(a.extractedUrl),c.message,c.cancellationCode)),ad(c)?this.events.next(new He(c.url)):a.resolve(!1);else{this.events.next(new Ve(a.id,this.urlSerializer.serialize(a.extractedUrl),c,a.targetSnapshot??void 0));try{a.resolve(e.errorHandler(c))}catch(l){this.options.resolveNavigationPromiseOnError?a.resolve(!1):a.reject(l)}}return vt}))}))}cancelNavigationTransition(e,i,r){let a=new St(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(a),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}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function ol(n){return n!==Ue}var rl=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>m(al),providedIn:"root"});let n=t;return n})(),wo=class{shouldDetach(t){return!1}store(t,o){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,o){return t.routeConfig===o.routeConfig}},al=(()=>{let t=class t extends wo{};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=xi(t)))(r||t)}})(),t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Ua=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>m(sl),providedIn:"root"});let n=t;return n})(),sl=(()=>{let t=class t extends Ua{constructor(){super(...arguments),this.location=m(Te),this.urlSerializer=m(Je),this.options=m(en,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=m(So),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Rt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Ea(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(i=>{i.type==="popstate"&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof me)this.stateMemento=this.createStateMemento();else if(e instanceof At)this.rawUrlTree=i.initialUrl;else if(e instanceof Hn){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(r,i)}}else e instanceof We?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):e instanceof St&&(e.code===J.GuardRejected||e.code===J.NoDataFromResolver)?this.restoreHistory(i):e instanceof Ve?this.restoreHistory(i,!0):e instanceof lt&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){let r=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){let a=this.browserPageId,s=h(h({},i.extras.state),this.generateNgRouterState(i.id,a));this.location.replaceState(r,"",s)}else{let a=h(h({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(r,"",a)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,a=this.currentPageId-r;a!==0?this.location.historyGo(a):this.currentUrlTree===e.finalUrl&&a===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&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,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=xi(t)))(r||t)}})(),t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),je=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(je||{});function za(n,t){n.events.pipe(st(o=>o instanceof lt||o instanceof St||o instanceof Ve||o instanceof At),v(o=>o instanceof lt||o instanceof At?je.COMPLETE:(o instanceof St?o.code===J.Redirect||o.code===J.SupersededByNewNavigation:!1)?je.REDIRECTING:je.FAILED),st(o=>o!==je.REDIRECTING),it(1)).subscribe(()=>{t()})}function cl(n){throw n}var dl={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ll={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},bt=(()=>{let t=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=m(_n),this.stateManager=m(Ua),this.options=m(en,{optional:!0})||{},this.pendingTasks=m(Ie),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=m(Ao),this.urlSerializer=m(Je),this.location=m(Te),this.urlHandlingStrategy=m(So),this._events=new H,this.errorHandler=this.options.errorHandler||cl,this.navigated=!1,this.routeReuseStrategy=m(rl),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=m(Ze,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!m(Qn,{optional:!0}),this.eventsSubscription=new ye,this.isNgZoneEnabled=m(S)instanceof S&&S.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(i=>{try{let r=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(r!==null&&a!==null){if(this.stateManager.handleRouterEvent(i,a),i instanceof St&&i.code!==J.Redirect&&i.code!==J.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof lt)this.navigated=!0;else if(i instanceof He){let s=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),d={info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||ol(r.source)};this.scheduleNavigation(s,Ue,null,d,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}ml(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});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),Ue,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,r){let a={replaceUrl:!0},s=r?.navigationId?r:null;if(r){let c=h({},r);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(a.state=c)}let d=this.parseUrl(e);this.scheduleNavigation(d,i,s,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Co),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,i={}){let{relativeTo:r,queryParams:a,fragment:s,queryParamsHandling:d,preserveFragment:c}=i,l=c?this.currentUrlTree.fragment:s,p=null;switch(d){case"merge":p=h(h({},this.currentUrlTree.queryParams),a);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=a||null}p!==null&&(p=this.removeEmptyProps(p));let g;try{let x=r?r.snapshot:this.routerState.snapshot.root;g=_a(x)}catch{(typeof e[0]!="string"||!e[0].startsWith("/"))&&(e=[]),g=this.currentUrlTree.root}return wa(g,e,p,l??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=ue(e)?e:this.parseUrl(e),a=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(a,Ue,null,i)}navigate(e,i={skipLocationChange:!1}){return ul(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=h({},dl):i===!1?r=h({},ll):r=i,ue(e))return na(this.currentUrlTree,e,r);let a=this.parseUrl(e);return na(this.currentUrlTree,a,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,a])=>(a!=null&&(i[r]=a),i),{})}scheduleNavigation(e,i,r,a,s){if(this.disposed)return Promise.resolve(!1);let d,c,l;s?(d=s.resolve,c=s.reject,l=s.promise):l=new Promise((g,x)=>{d=g,c=x});let p=this.pendingTasks.add();return za(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:a,resolve:d,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(g=>Promise.reject(g))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function ul(n){for(let t=0;t{let t=class t{constructor(e,i,r,a,s,d){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=a,this.el=s,this.locationStrategy=d,this.href=null,this.commands=null,this.onChanges=new H,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=e.events.subscribe(l=>{l instanceof lt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){e!=null?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,i,r,a,s){let d=this.urlTree;if(d===null||this.isAnchorElement&&(e!==0||i||r||a||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(d,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let i=this.href===null?null:pr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){let r=this.renderer,a=this.el.nativeElement;i!==null?r.setAttribute(a,e,i):r.removeAttribute(a,e)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};t.\u0275fac=function(i){return new(i||t)(_(bt),_(Dt),hn("tabindex"),_(br),_($),_(Ce))},t.\u0275dir=ot({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,r){i&1&&$t("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),i&2&&It("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[D.HasDecoratorInputTransform,"preserveFragment","preserveFragment",Z],skipLocationChange:[D.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",Z],replaceUrl:[D.HasDecoratorInputTransform,"replaceUrl","replaceUrl",Z],routerLink:"routerLink"},standalone:!0,features:[xt,mn]});let n=t;return n})();var Xn=class{};var hl=(()=>{let t=class t{constructor(e,i,r,a,s){this.router=e,this.injector=r,this.preloadingStrategy=a,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(st(e=>e instanceof lt),_t(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){let r=[];for(let a of i){a.providers&&!a._injector&&(a._injector=Ci(a.providers,e,`Route: ${a.path}`));let s=a._injector??e,d=a._loadedInjector??s;(a.loadChildren&&!a._loadedRoutes&&a.canLoad===void 0||a.loadComponent&&!a._loadedComponent)&&r.push(this.preloadConfig(s,a)),(a.children||a._loadedRoutes)&&r.push(this.processRoutes(d,a.children??a._loadedRoutes))}return z(r).pipe(fi())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;i.loadChildren&&i.canLoad===void 0?r=this.loader.loadChildren(e,i):r=f(null);let a=r.pipe(q(s=>s===null?f(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(i.loadComponent&&!i._loadedComponent){let s=this.loader.loadComponent(i);return z([a,s]).pipe(fi())}else return a})}};t.\u0275fac=function(i){return new(i||t)(u(bt),u(In),u(Ft),u(Xn),u(Ro))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Ba=new w(""),pl=(()=>{let t=class t{constructor(e,i,r,a,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=a,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.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 me?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof lt?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof At&&e.code===Wn.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 qn&&(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,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new qn(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};t.\u0275fac=function(i){te()},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();function Va(n,...t){return Nt([{provide:Ze,multi:!0,useValue:n},[],{provide:Dt,useFactory:Wa,deps:[bt]},{provide:wn,multi:!0,useFactory:Ha},t.map(o=>o.\u0275providers)])}function Wa(n){return n.routerState.root}function nn(n,t){return{\u0275kind:n,\u0275providers:t}}function Ha(){let n=m(Ii);return t=>{let o=n.get(xn);if(t!==o.components[0])return;let e=n.get(bt),i=n.get(qa);n.get(Do)===1&&e.initialNavigation(),n.get(Ga,null,_i.Optional)?.setUpPreloading(),n.get(Ba,null,_i.Optional)?.init(),e.resetRootComponentType(o.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var qa=new w("",{factory:()=>new H}),Do=new w("",{providedIn:"root",factory:()=>1});function fl(){return nn(2,[{provide:Do,useValue:0},{provide:Ee,multi:!0,deps:[Ii],useFactory:t=>{let o=t.get(Rr,Promise.resolve());return()=>o.then(()=>new Promise(e=>{let i=t.get(bt),r=t.get(qa);za(i,()=>{e(!0)}),t.get(Ao).afterPreactivation=()=>(e(!0),r.closed?f(void 0):r),i.initialNavigation()}))}}])}function bl(){return nn(3,[{provide:Ee,multi:!0,useFactory:()=>{let t=m(bt);return()=>{t.setUpLocationChangeListener()}}},{provide:Do,useValue:2}])}var Ga=new w("");function gl(n){return nn(0,[{provide:Ga,useExisting:hl},{provide:Xn,useExisting:n}])}function vl(){return nn(8,[aa,{provide:Qn,useExisting:aa}])}function yl(n){let t=[{provide:ja,useValue:nl},{provide:La,useValue:h({skipNextTransition:!!n?.skipInitialTransition},n)}];return nn(9,t)}var ca=new w("ROUTER_FORROOT_GUARD"),_l=[Te,{provide:Je,useClass:$e},bt,Xe,{provide:Dt,useFactory:Wa,deps:[bt]},Ro,[]],Ka=(()=>{let t=class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[_l,[],{provide:Ze,multi:!0,useValue:e},{provide:ca,useFactory:El,deps:[[bt,new un,new wi]]},{provide:en,useValue:i||{}},i?.useHash?xl():Il(),wl(),i?.preloadingStrategy?gl(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?Cl(i):[],i?.bindToComponentInputs?vl().\u0275providers:[],i?.enableViewTransitions?yl().\u0275providers:[],Tl()]}}static forChild(e){return{ngModule:t,providers:[{provide:Ze,multi:!0,useValue:e}]}}};t.\u0275fac=function(i){return new(i||t)(u(ca,8))},t.\u0275mod=F({type:t}),t.\u0275inj=O({});let n=t;return n})();function wl(){return{provide:Ba,useFactory:()=>{let n=m(Or),t=m(S),o=m(en),e=m(Ao),i=m(Je);return o.scrollOffset&&n.setOffset(o.scrollOffset),new pl(i,e,n,t,o)}}}function xl(){return{provide:Ce,useClass:Ar}}function Il(){return{provide:Ce,useClass:Sr}}function El(n){return"guarded"}function Cl(n){return[n.initialNavigation==="disabled"?bl().\u0275providers:[],n.initialNavigation==="enabledBlocking"?fl().\u0275providers:[]]}var da=new w("");function Tl(){return[{provide:da,useFactory:Ha},{provide:wn,multi:!0,useExisting:da}]}var ko;try{ko=typeof Intl<"u"&&Intl.v8BreakIterator}catch{ko=!1}var V=(()=>{let t=class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?kr(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||ko)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};t.\u0275fac=function(i){return new(i||t)(u(ht))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var on;function Sl(){if(on==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>on=!0}))}finally{on=on||!1}return on}function fe(n){return Sl()?n:!!n.capture}var Mo;function Al(){if(Mo==null){let n=typeof document<"u"?document.head:null;Mo=!!(n&&(n.createShadowRoot||n.attachShadow))}return Mo}function Za(n){if(Al()){let t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function kt(n){return n.composedPath?n.composedPath()[0]:n.target}function Ya(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Oo(n){return Array.isArray(n)?n:[n]}function qt(n){return n instanceof $?n.nativeElement:n}var Ja=new Set,Gt,Dl=(()=>{let t=class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):kl}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&Ml(e,this._nonce),this._matchMedia(e)}};t.\u0275fac=function(i){return new(i||t)(u(V),u(we,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function Ml(n,t){if(!Ja.has(n))try{Gt||(Gt=document.createElement("style"),t&&Gt.setAttribute("nonce",t),Gt.setAttribute("type","text/css"),document.head.appendChild(Gt)),Gt.sheet&&(Gt.sheet.insertRule(`@media ${n} {body{ }}`,0),Ja.add(n))}catch(o){console.error(o)}}function kl(n){return{matches:n==="all"||n==="",media:n,addListener:()=>{},removeListener:()=>{}}}var Qa=(()=>{let t=class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new H}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Xa(Oo(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=Xa(Oo(e)).map(s=>this._registerQuery(s).observable),a=Zt(r);return a=Yt(a.pipe(it(1)),a.pipe(dn(1),gi(0))),a.pipe(v(s=>{let d={matches:!1,breakpoints:{}};return s.forEach(({matches:c,query:l})=>{d.matches=d.matches||c,d.breakpoints[l]=c}),d}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),a={observable:new cn(s=>{let d=c=>this._zone.run(()=>s.next(c));return i.addListener(d),()=>{i.removeListener(d)}}).pipe(ln(i),v(({matches:s})=>({query:e,matches:s})),Jt(this._destroySubject)),mql:i};return this._queries.set(e,a),a}};t.\u0275fac=function(i){return new(i||t)(u(Dl),u(S))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function Xa(n){return n.map(t=>t.split(",")).reduce((t,o)=>t.concat(o)).map(t=>t.trim())}function Fo(n){return n.buttons===0||n.detail===0}function Po(n){let t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!!t&&t.identifier===-1&&(t.radiusX==null||t.radiusX===1)&&(t.radiusY==null||t.radiusY===1)}var Ol=new w("cdk-input-modality-detector-options"),Nl={ignoreKeys:[18,17,224,91,16]},ns=650,be=fe({passive:!0,capture:!0}),Fl=(()=>{let t=class t{get mostRecentModality(){return this._modality.value}constructor(e,i,r,a){this._platform=e,this._mostRecentTarget=null,this._modality=new k(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(d=>d===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=kt(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs{if(Po(s)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=kt(s)},this._options=h(h({},Nl),a),this.modalityDetected=this._modality.pipe(dn(1)),this.modalityChanged=this.modalityDetected.pipe(Jo()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,be),r.addEventListener("mousedown",this._onMousedown,be),r.addEventListener("touchstart",this._onTouchstart,be)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,be),document.removeEventListener("mousedown",this._onMousedown,be),document.removeEventListener("touchstart",this._onTouchstart,be))}};t.\u0275fac=function(i){return new(i||t)(u(V),u(S),u(T),u(Ol,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var ni=function(n){return n[n.IMMEDIATE=0]="IMMEDIATE",n[n.EVENTUAL=1]="EVENTUAL",n}(ni||{}),Pl=new w("cdk-focus-monitor-default-options"),ei=fe({passive:!0,capture:!0}),is=(()=>{let t=class t{constructor(e,i,r,a,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new H,this._rootNodeFocusAndBlurListener=d=>{let c=kt(d);for(let l=c;l;l=l.parentElement)d.type==="focus"?this._onFocus(d,l):this._onBlur(d,l)},this._document=a,this._detectionMode=s?.detectionMode||ni.IMMEDIATE}monitor(e,i=!1){let r=qt(e);if(!this._platform.isBrowser||r.nodeType!==1)return f();let a=Za(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;let d={checkChildren:i,subject:new H,rootNode:a};return this._elementInfo.set(r,d),this._registerGlobalListeners(d),d.subject}stopMonitoring(e){let i=qt(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){let a=qt(e),s=this._getDocument().activeElement;a===s?this._getClosestElementsInfo(a).forEach(([d,c])=>this._originChanged(d,i,c)):(this._setOrigin(i),typeof a.focus=="function"&&a.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===ni.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===ni.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?ns:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,i){let r=this._elementInfo.get(i),a=kt(e);!r||!r.checkChildren&&i!==a||this._originChanged(i,this._getFocusOrigin(a),r)}_onBlur(e,i){let r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,ei),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,ei)}),this._rootNodeFocusListenerCount.set(i,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Jt(this._stopInputModalityDetector)).subscribe(a=>{this._setOrigin(a,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ei),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ei),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((r,a)=>{(a===e||r.checkChildren&&a.contains(e))&&i.push([a,r])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let a=e.labels;if(a){for(let s=0;s{let t=class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=m(Qa).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Kt.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,a=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),a){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Kt.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Kt.BLACK_ON_WHITE}return Kt.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(No,ts,es),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===Kt.BLACK_ON_WHITE?e.add(No,ts):i===Kt.WHITE_ON_BLACK&&e.add(No,es)}}};t.\u0275fac=function(i){return new(i||t)(u(V),u(T))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var jo=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({});let n=t;return n})();function Ul(){return!0}var zl=new w("mat-sanity-checks",{providedIn:"root",factory:Ul}),at=(()=>{let t=class t{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return Ya()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[e]}};t.\u0275fac=function(i){return new(i||t)(u(os),u(zl,8),u(T))},t.\u0275mod=F({type:t}),t.\u0275inj=O({imports:[jo,jo]});let n=t;return n})();var et=function(n){return n[n.FADING_IN=0]="FADING_IN",n[n.VISIBLE=1]="VISIBLE",n[n.FADING_OUT=2]="FADING_OUT",n[n.HIDDEN=3]="HIDDEN",n}(et||{}),zo=class{constructor(t,o,e,i=!1){this._renderer=t,this.element=o,this.config=e,this._animationForciblyDisabledThroughCss=i,this.state=et.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},rs=fe({passive:!0,capture:!0}),$o=class{constructor(){this._events=new Map,this._delegateEventHandler=t=>{let o=kt(t);o&&this._events.get(t.type)?.forEach((e,i)=>{(i===o||i.contains(o))&&e.forEach(r=>r.handleEvent(t))})}}addHandler(t,o,e,i){let r=this._events.get(o);if(r){let a=r.get(e);a?a.add(i):r.set(e,new Set([i]))}else this._events.set(o,new Map([[e,new Set([i])]])),t.runOutsideAngular(()=>{document.addEventListener(o,this._delegateEventHandler,rs)})}removeHandler(t,o,e){let i=this._events.get(t);if(!i)return;let r=i.get(o);r&&(r.delete(e),r.size===0&&i.delete(o),i.size===0&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,rs)))}},as={enterDuration:225,exitDuration:150},$l=800,ss=fe({passive:!0,capture:!0}),cs=["mousedown","touchstart"],ds=["mouseup","mouseleave","touchend","touchcancel"],an=class an{constructor(t,o,e,i){this._target=t,this._ngZone=o,this._platform=i,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=qt(e))}fadeInRipple(t,o,e={}){let i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=h(h({},as),e.animation);e.centered&&(t=i.left+i.width/2,o=i.top+i.height/2);let a=e.radius||Bl(t,o,i),s=t-i.left,d=o-i.top,c=r.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=`${s-a}px`,l.style.top=`${d-a}px`,l.style.height=`${a*2}px`,l.style.width=`${a*2}px`,e.color!=null&&(l.style.backgroundColor=e.color),l.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(l);let p=window.getComputedStyle(l),g=p.transitionProperty,x=p.transitionDuration,X=g==="none"||x==="0s"||x==="0s, 0s"||i.width===0&&i.height===0,L=new zo(this,l,e,X);l.style.transform="scale3d(1, 1, 1)",L.state=et.FADING_IN,e.persistent||(this._mostRecentTransientRipple=L);let C=null;return!X&&(c||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let I=()=>this._finishRippleTransition(L),nt=()=>this._destroyRipple(L);l.addEventListener("transitionend",I),l.addEventListener("transitioncancel",nt),C={onTransitionEnd:I,onTransitionCancel:nt}}),this._activeRipples.set(L,C),(X||!c)&&this._finishRippleTransition(L),L}fadeOutRipple(t){if(t.state===et.FADING_OUT||t.state===et.HIDDEN)return;let o=t.element,e=h(h({},as),t.config.animation);o.style.transitionDuration=`${e.exitDuration}ms`,o.style.opacity="0",t.state=et.FADING_OUT,(t._animationForciblyDisabledThroughCss||!e.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){let o=qt(t);!this._platform.isBrowser||!o||o===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=o,cs.forEach(e=>{an._eventManager.addHandler(this._ngZone,e,o,this)}))}handleEvent(t){t.type==="mousedown"?this._onMousedown(t):t.type==="touchstart"?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{ds.forEach(o=>{this._triggerElement.addEventListener(o,this,ss)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){t.state===et.FADING_IN?this._startFadeOutTransition(t):t.state===et.FADING_OUT&&this._destroyRipple(t)}_startFadeOutTransition(t){let o=t===this._mostRecentTransientRipple,{persistent:e}=t.config;t.state=et.VISIBLE,!e&&(!o||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){let o=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=et.HIDDEN,o!==null&&(t.element.removeEventListener("transitionend",o.onTransitionEnd),t.element.removeEventListener("transitioncancel",o.onTransitionCancel)),t.element.remove()}_onMousedown(t){let o=Fo(t),e=this._lastTouchStartEvent&&Date.now(){let o=t.state===et.VISIBLE||t.config.terminateOnPointerUp&&t.state===et.FADING_IN;!t.config.persistent&&o&&t.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let t=this._triggerElement;t&&(cs.forEach(o=>an._eventManager.removeHandler(o,t,this)),this._pointerUpEventsRegistered&&ds.forEach(o=>t.removeEventListener(o,this,ss)))}};an._eventManager=new $o;var Bo=an;function Bl(n,t,o){let e=Math.max(Math.abs(n-o.left),Math.abs(n-o.right)),i=Math.max(Math.abs(t-o.top),Math.abs(t-o.bottom));return Math.sqrt(e*e+i*i)}var hs=new w("mat-ripple-global-options"),Vl=(()=>{let t=class t{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,r,a,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new Bo(this,i,e,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:h(h(h({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,h(h({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,h(h({},this.rippleConfig),e))}};t.\u0275fac=function(i){return new(i||t)(_($),_(S),_(V),_(hs,8),_(Lt,8))},t.\u0275dir=ot({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){i&2&&Et("mat-ripple-unbounded",r.unbounded)},inputs:{color:[D.None,"matRippleColor","color"],unbounded:[D.None,"matRippleUnbounded","unbounded"],centered:[D.None,"matRippleCentered","centered"],radius:[D.None,"matRippleRadius","radius"],animation:[D.None,"matRippleAnimation","animation"],disabled:[D.None,"matRippleDisabled","disabled"],trigger:[D.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let n=t;return n})(),ps=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({imports:[at,at]});let n=t;return n})();var ls={capture:!0},us=["focus","click","mouseenter","touchstart"],Lo="mat-ripple-loader-uninitialized",Uo="mat-ripple-loader-class-name",ms="mat-ripple-loader-centered",ii="mat-ripple-loader-disabled",fs=(()=>{let t=class t{constructor(){this._document=m(T,{optional:!0}),this._animationMode=m(Lt,{optional:!0}),this._globalRippleOptions=m(hs,{optional:!0}),this._platform=m(V),this._ngZone=m(S),this._hosts=new Map,this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;let r=e.target.closest(`[${Lo}]`);r&&this._createRipple(r)},this._ngZone.runOutsideAngular(()=>{for(let e of us)this._document?.addEventListener(e,this._onInteraction,ls)})}ngOnDestroy(){let e=this._hosts.keys();for(let i of e)this.destroyRipple(i);for(let i of us)this._document?.removeEventListener(i,this._onInteraction,ls)}configureRipple(e,i){e.setAttribute(Lo,""),(i.className||!e.hasAttribute(Uo))&&e.setAttribute(Uo,i.className||""),i.centered&&e.setAttribute(ms,""),i.disabled&&e.setAttribute(ii,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,i){let r=this._hosts.get(e);if(r){r.disabled=i;return}i?e.setAttribute(ii,""):e.removeAttribute(ii)}_createRipple(e){if(!this._document)return;let i=this._hosts.get(e);if(i)return i;e.querySelector(".mat-ripple")?.remove();let r=this._document.createElement("span");r.classList.add("mat-ripple",e.getAttribute(Uo)),e.append(r);let a=new Vl(new $(r),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return a._isInitialized=!0,a.trigger=e,a.centered=e.hasAttribute(ms),a.disabled=e.hasAttribute(ii),this.attachRipple(e,a),a}attachRipple(e,i){e.removeAttribute(Lo),this._hosts.set(e,i)}destroyRipple(e){let i=this._hosts.get(e);i&&(i.ngOnDestroy(),this._hosts.delete(e))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Wl=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}";var Hl=["mat-icon-button",""],ql=["*"];var Gl=new w("MAT_BUTTON_CONFIG");var Kl=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],Zl=(()=>{let t=class t{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}constructor(e,i,r,a){this._elementRef=e,this._platform=i,this._ngZone=r,this._animationMode=a,this._focusMonitor=m(is),this._rippleLoader=m(fs),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let s=m(Gl,{optional:!0}),d=e.nativeElement,c=d.classList;this.disabledInteractive=s?.disabledInteractive??!1,this._rippleLoader?.configureRipple(d,{className:"mat-mdc-button-ripple"});for(let{attribute:l,mdcClasses:p}of Kl)d.hasAttribute(l)&&c.add(...p)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}};t.\u0275fac=function(i){te()},t.\u0275dir=ot({type:t,inputs:{color:"color",disableRipple:[D.HasDecoratorInputTransform,"disableRipple","disableRipple",Z],disabled:[D.HasDecoratorInputTransform,"disabled","disabled",Z],ariaDisabled:[D.HasDecoratorInputTransform,"aria-disabled","ariaDisabled",Z],disabledInteractive:[D.HasDecoratorInputTransform,"disabledInteractive","disabledInteractive",Z]},features:[xt]});let n=t;return n})();var oi=(()=>{let t=class t extends Zl{constructor(e,i,r,a){super(e,i,r,a),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}};t.\u0275fac=function(i){return new(i||t)(_($),_(V),_(S),_(Lt,8))},t.\u0275cmp=N({type:t,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(i,r){i&2&&(It("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),ee(r.color?"mat-"+r.color:""),Et("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[yr,P],attrs:Hl,ngContentSelectors:ql,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){i&1&&(Bt(),B(0,"span",0),Ct(1),B(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',Wl],encapsulation:2,changeDetection:0});let n=t;return n})();var ri=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({imports:[at,ps,at]});let n=t;return n})();var Yl=["*"],ai;function Jl(){if(ai===void 0&&(ai=null,typeof window<"u")){let n=window;n.trustedTypes!==void 0&&(ai=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return ai}function sn(n){return Jl()?.createHTML(n)||n}function gs(n){return Error(`Unable to find icon with the name "${n}"`)}function Xl(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function vs(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function ys(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}var gt=class{constructor(t,o,e){this.url=t,this.svgText=o,this.options=e}},Ql=(()=>{let t=class t{constructor(e,i,r,a){this._httpClient=e,this._sanitizer=i,this._errorHandler=a,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,a){return this._addSvgIconConfig(e,i,new gt(r,null,a))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,a){let s=this._sanitizer.sanitize(K.HTML,r);if(!s)throw ys(r);let d=sn(s);return this._addSvgIconConfig(e,i,new gt("",d,a))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new gt(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){let a=this._sanitizer.sanitize(K.HTML,i);if(!a)throw ys(i);let s=sn(a);return this._addSvgIconSetConfig(e,new gt("",s,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let i=this._sanitizer.sanitize(K.RESOURCE_URL,e);if(!i)throw vs(e);let r=this._cachedIconsByUrl.get(i);return r?f(si(r)):this._loadSvgIconFromConfig(new gt(e,null)).pipe(A(a=>this._cachedIconsByUrl.set(i,a)),v(a=>si(a)))}getNamedSvgIcon(e,i=""){let r=_s(i,e),a=this._svgIconConfigs.get(r);if(a)return this._getSvgFromConfig(a);if(a=this._getIconConfigFromResolvers(i,e),a)return this._svgIconConfigs.set(r,a),this._getSvgFromConfig(a);let s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):Ot(gs(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?f(si(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(v(i=>si(i)))}_getSvgFromIconSetConfigs(e,i){let r=this._extractIconWithNameFromAnySet(e,i);if(r)return f(r);let a=i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(yt(d=>{let l=`Loading icon set URL: ${this._sanitizer.sanitize(K.RESOURCE_URL,s.url)} failed: ${d.message}`;return this._errorHandler.handleError(new Error(l)),f(null)})));return Zo(a).pipe(v(()=>{let s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw gs(e);return s}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){let a=i[r];if(a.svgText&&a.svgText.toString().indexOf(e)>-1){let s=this._svgElementFromConfig(a),d=this._extractSvgIconFromSet(s,e,a.options);if(d)return d}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(A(i=>e.svgText=i),v(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?f(null):this._fetchIcon(e).pipe(A(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){let a=e.querySelector(`[id="${i}"]`);if(!a)return null;let s=a.cloneNode(!0);if(s.removeAttribute("id"),s.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(s,r);if(s.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(s),r);let d=this._svgElementFromString(sn(""));return d.appendChild(s),this._setSvgAttributes(d,r)}_svgElementFromString(e){let i=this._document.createElement("DIV");i.innerHTML=e;let r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){let i=this._svgElementFromString(sn("")),r=e.attributes;for(let a=0;asn(l)),mt(()=>this._inProgressUrlFetches.delete(s)),tr());return this._inProgressUrlFetches.set(s,c),c}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(_s(e,i),r),this}_addSvgIconSetConfig(e,i){let r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){let i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rt?t.pathname+t.search:""}}var ws=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],ou=ws.map(n=>`[${n}]`).join(", "),ru=/^url\(['"]?#(.*?)['"]?\)$/,ci=(()=>{let t=class t{get color(){return this._color||this._defaultColor}set color(e){this._color=e}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){let i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){let i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(e,i,r,a,s,d){this._elementRef=e,this._iconRegistry=i,this._location=a,this._errorHandler=s,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=ye.EMPTY,d&&(d.color&&(this.color=this._defaultColor=d.color),d.fontSet&&(this.fontSet=d.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let r=e.childNodes[i];(r.nodeType!==1||r.nodeName.toLowerCase()==="svg")&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let i=this._elementsWithExternalReferences;i&&i.forEach((r,a)=>{r.forEach(s=>{a.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){let i=e.querySelectorAll(ou),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let a=0;a{let d=i[a],c=d.getAttribute(s),l=c?c.match(ru):null;if(l){let p=r.get(d);p||(p=[],r.set(d,p)),p.push({name:s,value:l[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(it(1)).subscribe(a=>this._setSvgElement(a),a=>{let s=`Error retrieving icon ${i}:${r}! ${a.message}`;this._errorHandler.handleError(new Error(s))})}}};t.\u0275fac=function(i){return new(i||t)(_($),_(Ql),hn("aria-hidden"),_(nu),_(Pt),_(eu,8))},t.\u0275cmp=N({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){i&2&&(It("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),ee(r.color?"mat-"+r.color:""),Et("mat-icon-inline",r.inline)("mat-icon-no-color",r.color!=="primary"&&r.color!=="accent"&&r.color!=="warn"))},inputs:{color:"color",inline:[D.HasDecoratorInputTransform,"inline","inline",Z],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[xt,P],ngContentSelectors:Yl,decls:1,vars:0,template:function(i,r){i&1&&(Bt(),Ct(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0});let n=t;return n})(),di=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({imports:[at,at]});let n=t;return n})();var li=(()=>{let t=class t{saveToLocalStorage(e,i){localStorage.setItem(e,i)}getFromLocalStorage(e){return localStorage.getItem(e)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var ge=(()=>{let t=class t{constructor(e){this.localStorageService=e,this._favourites$=new k([]),this.favourites$=this._favourites$.asObservable()}addFavourite(e){e.isFavourite=!0,this._favourites$.next([...this._favourites$.value,e]),this.persistToLocalStorage()}removeFavourite(e){e.isFavourite=!1,this._favourites$.next(this._favourites$.value.filter(i=>i.value!==e.value)),this.persistToLocalStorage()}initStore(){let e=this.localStorageService.getFromLocalStorage("favourites");e&&this._favourites$.next(JSON.parse(e))}persistToLocalStorage(){this.localStorageService.saveToLocalStorage("favourites",JSON.stringify(this._favourites$.value))}toggleFavourite(e){this.isFavourite(e)?this.removeFavourite(e):this.addFavourite(e)}isFavourite(e){return this._favourites$.value.includes(e)}};t.\u0275fac=function(i){return new(i||t)(u(li))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function au(n,t){if(n&1){let o=wr();Q(0,"li")(1,"button",1),$t("click",function(){let i=ir(o).$implicit,r=Ri();return or(r.favouritesStoreService.toggleFavourite(i))}),Q(2,"mat-icon"),pt(3),rt()(),pt(4),rt()}if(n&2){let o=t.$implicit;Ut(3),vn(o.isFavourite?"favorite":"favorite_border"),Ut(),Ai(" ",o.value," ")}}var ui=(()=>{let t=class t{constructor(e){this.favouritesStoreService=e,this.jokes=[]}};t.\u0275fac=function(i){return new(i||t)(_(ge))},t.\u0275cmp=N({type:t,selectors:[["cnjg-joke-list"]],inputs:{jokes:"jokes"},standalone:!0,features:[P],decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],["mat-icon-button","","title","Favourites",3,"click"]],template:function(i,r){i&1&&(Q(0,"ul"),Ti(1,au,5,2,"li",0),rt()),i&2&&(Ut(),zt("ngForOf",r.jokes))},dependencies:[ft,Dr,di,ci,ri,oi],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;height:100%}[_nghost-%COMP%] ul[_ngcontent-%COMP%]{width:90%;height:100%;justify-content:space-evenly;display:flex;flex-direction:column;align-items:center;padding-inline-start:0px}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;margin-bottom:20px}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(2n){color:orange}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(odd){color:#add8e6}li[_ngcontent-%COMP%]{font-size:large;vertical-align:text-top}"],changeDetection:0});let n=t;return n})();var su=()=>[],Cs=(()=>{let t=class t{constructor(e){this.favouritesStoreService=e}};t.\u0275fac=function(i){return new(i||t)(_(ge))},t.\u0275cmp=N({type:t,selectors:[["cnjg-favourites"]],standalone:!0,features:[P],decls:2,vars:4,consts:[[3,"jokes"]],template:function(i,r){i&1&&(B(0,"cnjg-joke-list",0),ne(1,"async")),i&2&&zt("jokes",ie(1,1,r.favouritesStoreService.favourites$)||yn(3,su))},dependencies:[ft,oe,ui],changeDetection:0});let n=t;return n})();var Ts="https://api.chucknorris.io/jokes/random";var Rs=(()=>{let t=class t{constructor(e){this.httpClient=e}getJoke(){return this.httpClient.get(Ts).pipe(v(e=>({value:e.value,isFavourite:!1})))}};t.\u0275fac=function(i){return new(i||t)(u(Me))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var ve=(()=>{let t=class t{constructor(e,i){this.chuckNorrisJokeGeneratorService=e,this.localStorageService=i,this._jokes$=new k([]),this.jokes$=this._jokes$.asObservable(),this._isNewJokeIntervalRunning$=new k(!1),this.isNewJokeIntervalRunning$=this._isNewJokeIntervalRunning$.asObservable()}toggleInterval(){this._isNewJokeIntervalRunning$.value?(this.cancelNewJokeTimer(),this._isNewJokeIntervalRunning$.next(!1)):(this.newJokeIntervalId=this.startNewJokeTimer(),this._isNewJokeIntervalRunning$.next(!0)),this.persistIntervalStateToLocalStorage()}initStore(){let e=Array(10).fill(this.chuckNorrisJokeGeneratorService.getJoke());Yt(...e).subscribe(i=>this._jokes$.next([...this._jokes$.value,i])),this.loadIntervalStateFromLocalStorage()}cancelNewJokeTimer(){window.clearInterval(this.newJokeIntervalId),this.newJokeIntervalId=void 0,this._isNewJokeIntervalRunning$.next(!1)}startNewJokeTimer(){return this._isNewJokeIntervalRunning$.next(!0),window.setInterval(()=>{this.chuckNorrisJokeGeneratorService.getJoke().subscribe(e=>this._jokes$.next([e,...this._jokes$.value.splice(0,9)]))},5e3)}persistIntervalStateToLocalStorage(){this.localStorageService.saveToLocalStorage("intervalState",JSON.stringify(this._isNewJokeIntervalRunning$.value))}loadIntervalStateFromLocalStorage(){let e=this.localStorageService.getFromLocalStorage("intervalState");e&&this._isNewJokeIntervalRunning$.next(JSON.parse(e)),this._isNewJokeIntervalRunning$.value&&(this.newJokeIntervalId=this.startNewJokeTimer())}};t.\u0275fac=function(i){return new(i||t)(u(Rs),u(li))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var du=()=>[],As=(()=>{let t=class t{constructor(e){this.jokeStoreService=e}};t.\u0275fac=function(i){return new(i||t)(_(ve))},t.\u0275cmp=N({type:t,selectors:[["cnjg-jokes"]],standalone:!0,features:[P],decls:2,vars:4,consts:[[3,"jokes"]],template:function(i,r){i&1&&(B(0,"cnjg-joke-list",0),ne(1,"async")),i&2&&zt("jokes",ie(1,1,r.jokeStoreService.jokes$)||yn(3,du))},dependencies:[ft,oe,ui],styles:["[_nghost-%COMP%]{height:100%}"],changeDetection:0});let n=t;return n})();var Ds=[{path:"",redirectTo:"jokes",pathMatch:"full"},{path:"jokes",component:As},{path:"favourites",component:Cs}];var lu="@",uu=(()=>{let t=class t{constructor(e,i,r,a,s){this.doc=e,this.delegate=i,this.zone=r,this.animationType=a,this.moduleImpl=s,this._rendererFactoryPromise=null,this.scheduler=m(fr,{optional:!0})}ngOnDestroy(){this._engine?.flush()}loadImpl(){return(this.moduleImpl??import("./chunk-TSZR3UJX.js")).catch(i=>{throw new R(5300,!1)}).then(({\u0275createEngine:i,\u0275AnimationRendererFactory:r})=>{this._engine=i(this.animationType,this.doc,this.scheduler);let a=new r(this.delegate,this._engine,this.zone);return this.delegate=a,a})}createRenderer(e,i){let r=this.delegate.createRenderer(e,i);if(r.\u0275type===0)return r;typeof r.throwOnSyntheticProps=="boolean"&&(r.throwOnSyntheticProps=!1);let a=new Vo(r);return i?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(s=>{let d=s.createRenderer(e,i);a.use(d)}).catch(s=>{a.use(r)}),a}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}};t.\u0275fac=function(i){te()},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Vo=class{constructor(t){this.delegate=t,this.replay=[],this.\u0275type=1}use(t){if(this.delegate=t,this.replay!==null){for(let o of this.replay)o(t);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(t,o){return this.delegate.createElement(t,o)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}get destroyNode(){return this.delegate.destroyNode}appendChild(t,o){this.delegate.appendChild(t,o)}insertBefore(t,o,e,i){this.delegate.insertBefore(t,o,e,i)}removeChild(t,o,e){this.delegate.removeChild(t,o,e)}selectRootElement(t,o){return this.delegate.selectRootElement(t,o)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,o,e,i){this.delegate.setAttribute(t,o,e,i)}removeAttribute(t,o,e){this.delegate.removeAttribute(t,o,e)}addClass(t,o){this.delegate.addClass(t,o)}removeClass(t,o){this.delegate.removeClass(t,o)}setStyle(t,o,e,i){this.delegate.setStyle(t,o,e,i)}removeStyle(t,o,e){this.delegate.removeStyle(t,o,e)}setProperty(t,o,e){this.shouldReplay(o)&&this.replay.push(i=>i.setProperty(t,o,e)),this.delegate.setProperty(t,o,e)}setValue(t,o){this.delegate.setValue(t,o)}listen(t,o,e){return this.shouldReplay(o)&&this.replay.push(i=>i.listen(t,o,e)),this.delegate.listen(t,o,e)}shouldReplay(t){return this.replay!==null&&t.startsWith(lu)}};function Ms(n="animations"){return Ei("NgAsyncAnimations"),Nt([{provide:fn,useFactory:(t,o,e)=>new uu(t,o,e,n),deps:[T,Fn,S]},{provide:Lt,useValue:n==="noop"?"NoopAnimations":"BrowserAnimations"}])}var ks={providers:[Va(Ds),Ms(),Pi(),{provide:Ee,useFactory:(n,t)=>{n.initStore(),t.initStore()},deps:[ve,ge]}]};var mu=["*",[["mat-toolbar-row"]]],hu=["*","mat-toolbar-row"],pu=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=ot({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0});let n=t;return n})(),Os=(()=>{let t=class t{constructor(e,i,r){this._elementRef=e,this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}};t.\u0275fac=function(i){return new(i||t)(_($),_(V),_(T))},t.\u0275cmp=N({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,r,a){if(i&1&&Si(a,pu,5),i&2){let s;bn(s=gn())&&(r._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,r){i&2&&(ee(r.color?"mat-"+r.color:""),Et("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",r._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[P],ngContentSelectors:hu,decls:2,vars:0,template:function(i,r){i&1&&(Bt(mu),Ct(0),Ct(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0});let n=t;return n})();var Ns=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({imports:[at,at]});let n=t;return n})();var Wo=function(n){return n.Empty="hourglass_empty",n.Full="hourglass_full",n}(Wo||{});var Fs=(()=>{let t=class t{constructor(e){this.jokeStoreService=e,this.hourGlass=Wo}};t.\u0275fac=function(i){return new(i||t)(_(ve))},t.\u0275cmp=N({type:t,selectors:[["cnjg-home"]],standalone:!0,features:[P],decls:15,vars:3,consts:[[1,"header"],[1,"spacer"],["mat-icon-button","","title","Jokes","routerLink","/jokes"],["mat-icon-button","","title","Favourites","routerLink","/favourites"],["mat-icon-button","","title","Toggle Interval",3,"click"]],template:function(i,r){i&1&&(Q(0,"mat-toolbar")(1,"span",0),pt(2,"Chuck Norris Jokes"),rt(),B(3,"span",1),Q(4,"button",2)(5,"mat-icon"),pt(6,"home"),rt()(),Q(7,"button",3)(8,"mat-icon"),pt(9,"favorite"),rt()(),Q(10,"button",4),$t("click",function(){return r.jokeStoreService.toggleInterval()}),Q(11,"mat-icon"),pt(12),ne(13,"async"),rt()()(),B(14,"router-outlet")),i&2&&(Ut(12),vn(ie(13,1,r.jokeStoreService.isNewJokeIntervalRunning$)?r.hourGlass.Full:r.hourGlass.Empty))},dependencies:[di,ci,ri,oi,Ns,Os,ft,oe,Ka,Eo,$a],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;height:100%}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}.header[_ngcontent-%COMP%]{padding-left:5px}mat-toolbar[_ngcontent-%COMP%]{margin-bottom:15px;padding:0 0 0 5px}"],changeDetection:0});let n=t;return n})();var Ps=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=N({type:t,selectors:[["cnjg-root"]],standalone:!0,features:[P],decls:1,vars:0,template:function(i,r){i&1&&B(0,"cnjg-home")},dependencies:[Wr,Fs],encapsulation:2});let n=t;return n})();Qr(Ps,ks).catch(n=>console.error(n)); +`).forEach(o=>{let e=o.indexOf(":");if(e>0){let i=o.slice(0,e),r=i.toLowerCase(),a=o.slice(e+1).trim();this.maybeSetNormalizedName(i,r),this.headers.has(r)?this.headers.get(r).push(a):this.headers.set(r,[a])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((o,e)=>{this.setHeaderEntries(e,o)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([o,e])=>{this.setHeaderEntries(o,e)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let o=this.headers.get(t.toLowerCase());return o&&o.length>0?o[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,o){return this.clone({name:t,value:o,op:"a"})}set(t,o){return this.clone({name:t,value:o,op:"s"})}delete(t,o){return this.clone({name:t,value:o,op:"d"})}maybeSetNormalizedName(t,o){this.normalizedNames.has(o)||this.normalizedNames.set(o,t)}init(){this.lazyInit&&(this.lazyInit instanceof n?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(o=>{this.headers.set(o,t.headers.get(o)),this.normalizedNames.set(o,t.normalizedNames.get(o))})}clone(t){let o=new n;return o.lazyInit=this.lazyInit&&this.lazyInit instanceof n?this.lazyInit:this,o.lazyUpdate=(this.lazyUpdate||[]).concat([t]),o}applyUpdate(t){let o=t.name.toLowerCase();switch(t.op){case"a":case"s":let e=t.value;if(typeof e=="string"&&(e=[e]),e.length===0)return;this.maybeSetNormalizedName(t.name,o);let i=(t.op==="a"?this.headers.get(o):void 0)||[];i.push(...e),this.headers.set(o,i);break;case"d":let r=t.value;if(!r)this.headers.delete(o),this.normalizedNames.delete(o);else{let a=this.headers.get(o);if(!a)return;a=a.filter(s=>r.indexOf(s)===-1),a.length===0?(this.headers.delete(o),this.normalizedNames.delete(o)):this.headers.set(o,a)}break}}setHeaderEntries(t,o){let e=(Array.isArray(o)?o:[o]).map(r=>r.toString()),i=t.toLowerCase();this.headers.set(i,e),this.maybeSetNormalizedName(t,i)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(o=>t(this.normalizedNames.get(o),this.headers.get(o)))}};var ki=class{encodeKey(t){return Nr(t)}encodeValue(t){return Nr(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function Bs(n,t){let o=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(i=>{let r=i.indexOf("="),[a,s]=r==-1?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,r)),t.decodeValue(i.slice(r+1))],d=o.get(a)||[];d.push(s),o.set(a,d)}),o}var Vs=/%(\d[a-f0-9])/gi,Ws={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Nr(n){return encodeURIComponent(n).replace(Vs,(t,o)=>Ws[o]??t)}function Sn(n){return`${n}`}var Tt=class n{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new ki,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Bs(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(o=>{let e=t.fromObject[o],i=Array.isArray(e)?e.map(Sn):[Sn(e)];this.map.set(o,i)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let o=this.map.get(t);return o?o[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,o){return this.clone({param:t,value:o,op:"a"})}appendAll(t){let o=[];return Object.keys(t).forEach(e=>{let i=t[e];Array.isArray(i)?i.forEach(r=>{o.push({param:e,value:r,op:"a"})}):o.push({param:e,value:i,op:"a"})}),this.clone(o)}set(t,o){return this.clone({param:t,value:o,op:"s"})}delete(t,o){return this.clone({param:t,value:o,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let o=this.encoder.encodeKey(t);return this.map.get(t).map(e=>o+"="+this.encoder.encodeValue(e)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let o=new n({encoder:this.encoder});return o.cloneFrom=this.cloneFrom||this,o.updates=(this.updates||[]).concat(t),o}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let o=(t.op==="a"?this.map.get(t.param):void 0)||[];o.push(Sn(t.value)),this.map.set(t.param,o);break;case"d":if(t.value!==void 0){let e=this.map.get(t.param)||[],i=e.indexOf(Sn(t.value));i!==-1&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var Oi=class{constructor(){this.map=new Map}set(t,o){return this.map.set(t,o),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function Hs(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Fr(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function Pr(n){return typeof Blob<"u"&&n instanceof Blob}function jr(n){return typeof FormData<"u"&&n instanceof FormData}function qs(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}var Re=class n{constructor(t,o,e,i){this.url=o,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let r;if(Hs(this.method)||i?(this.body=e!==void 0?e:null,r=i):r=e,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),this.transferCache=r.transferCache),this.headers??=new Vt,this.context??=new Oi,!this.params)this.params=new Tt,this.urlWithParams=o;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=o;else{let s=o.indexOf("?"),d=s===-1?"?":sg.set(x,t.setHeaders[x]),c)),t.setParams&&(l=Object.keys(t.setParams).reduce((g,x)=>g.set(x,t.setParams[x]),l)),new n(o,e,a,{params:l,headers:c,context:p,reportProgress:d,responseType:i,withCredentials:s,transferCache:r})}},re=function(n){return n[n.Sent=0]="Sent",n[n.UploadProgress=1]="UploadProgress",n[n.ResponseHeader=2]="ResponseHeader",n[n.DownloadProgress=3]="DownloadProgress",n[n.Response=4]="Response",n[n.User=5]="User",n}(re||{}),Ae=class{constructor(t,o=kn.Ok,e="OK"){this.headers=t.headers||new Vt,this.status=t.status!==void 0?t.status:o,this.statusText=t.statusText||e,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},Ni=class n extends Ae{constructor(t={}){super(t),this.type=re.ResponseHeader}clone(t={}){return new n({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Dn=class n extends Ae{constructor(t={}){super(t),this.type=re.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new n({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Mn=class extends Ae{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},kn=function(n){return n[n.Continue=100]="Continue",n[n.SwitchingProtocols=101]="SwitchingProtocols",n[n.Processing=102]="Processing",n[n.EarlyHints=103]="EarlyHints",n[n.Ok=200]="Ok",n[n.Created=201]="Created",n[n.Accepted=202]="Accepted",n[n.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",n[n.NoContent=204]="NoContent",n[n.ResetContent=205]="ResetContent",n[n.PartialContent=206]="PartialContent",n[n.MultiStatus=207]="MultiStatus",n[n.AlreadyReported=208]="AlreadyReported",n[n.ImUsed=226]="ImUsed",n[n.MultipleChoices=300]="MultipleChoices",n[n.MovedPermanently=301]="MovedPermanently",n[n.Found=302]="Found",n[n.SeeOther=303]="SeeOther",n[n.NotModified=304]="NotModified",n[n.UseProxy=305]="UseProxy",n[n.Unused=306]="Unused",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",n[n.BadRequest=400]="BadRequest",n[n.Unauthorized=401]="Unauthorized",n[n.PaymentRequired=402]="PaymentRequired",n[n.Forbidden=403]="Forbidden",n[n.NotFound=404]="NotFound",n[n.MethodNotAllowed=405]="MethodNotAllowed",n[n.NotAcceptable=406]="NotAcceptable",n[n.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",n[n.RequestTimeout=408]="RequestTimeout",n[n.Conflict=409]="Conflict",n[n.Gone=410]="Gone",n[n.LengthRequired=411]="LengthRequired",n[n.PreconditionFailed=412]="PreconditionFailed",n[n.PayloadTooLarge=413]="PayloadTooLarge",n[n.UriTooLong=414]="UriTooLong",n[n.UnsupportedMediaType=415]="UnsupportedMediaType",n[n.RangeNotSatisfiable=416]="RangeNotSatisfiable",n[n.ExpectationFailed=417]="ExpectationFailed",n[n.ImATeapot=418]="ImATeapot",n[n.MisdirectedRequest=421]="MisdirectedRequest",n[n.UnprocessableEntity=422]="UnprocessableEntity",n[n.Locked=423]="Locked",n[n.FailedDependency=424]="FailedDependency",n[n.TooEarly=425]="TooEarly",n[n.UpgradeRequired=426]="UpgradeRequired",n[n.PreconditionRequired=428]="PreconditionRequired",n[n.TooManyRequests=429]="TooManyRequests",n[n.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",n[n.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",n[n.InternalServerError=500]="InternalServerError",n[n.NotImplemented=501]="NotImplemented",n[n.BadGateway=502]="BadGateway",n[n.ServiceUnavailable=503]="ServiceUnavailable",n[n.GatewayTimeout=504]="GatewayTimeout",n[n.HttpVersionNotSupported=505]="HttpVersionNotSupported",n[n.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",n[n.InsufficientStorage=507]="InsufficientStorage",n[n.LoopDetected=508]="LoopDetected",n[n.NotExtended=510]="NotExtended",n[n.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",n}(kn||{});function Mi(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials,transferCache:n.transferCache}}var Me=(()=>{let t=class t{constructor(e){this.handler=e}request(e,i,r={}){let a;if(e instanceof Re)a=e;else{let c;r.headers instanceof Vt?c=r.headers:c=new Vt(r.headers);let l;r.params&&(r.params instanceof Tt?l=r.params:l=new Tt({fromObject:r.params})),a=new Re(e,i,r.body!==void 0?r.body:null,{headers:c,context:r.context,params:l,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let s=f(a).pipe(_t(c=>this.handler.handle(c)));if(e instanceof Re||r.observe==="events")return s;let d=s.pipe(st(c=>c instanceof Dn));switch(r.observe||"body"){case"body":switch(a.responseType){case"arraybuffer":return d.pipe(v(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return d.pipe(v(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return d.pipe(v(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return d.pipe(v(c=>c.body))}case"response":return d;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:new Tt().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,Mi(r,i))}post(e,i,r={}){return this.request("POST",e,Mi(r,i))}put(e,i,r={}){return this.request("PUT",e,Mi(r,i))}};t.\u0275fac=function(i){return new(i||t)(u(Se))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();function $r(n,t){return t(n)}function Gs(n,t){return(o,e)=>t.intercept(o,{handle:i=>n(i,e)})}function Ks(n,t,o){return(e,i)=>ct(o,()=>t(e,r=>n(r,i)))}var Zs=new w(""),Fi=new w(""),Ys=new w(""),Js=new w("");function Xs(){let n=null;return(t,o)=>{n===null&&(n=(m(Zs,{optional:!0})??[]).reduceRight(Gs,$r));let e=m(Ie),i=e.add();return n(t,o).pipe(mt(()=>e.remove(i)))}}var Lr=(()=>{let t=class t extends Se{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=m(Ie);let r=m(Js,{optional:!0});this.backend=r??e}handle(e){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Fi),...this.injector.get(Ys,[])]));this.chain=r.reduceRight((a,s)=>Ks(a,s,this.injector),$r)}let i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(mt(()=>this.pendingTasks.remove(i)))}};t.\u0275fac=function(i){return new(i||t)(u(An),u(Ft))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();var Qs=/^\)\]\}',?\n/;function tc(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}var Ur=(()=>{let t=class t{constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new R(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?z(i.\u0275loadImpl()):f(null)).pipe(G(()=>new cn(a=>{let s=i.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((C,I)=>s.setRequestHeader(C,I.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){let C=e.detectContentTypeHeader();C!==null&&s.setRequestHeader("Content-Type",C)}if(e.responseType){let C=e.responseType.toLowerCase();s.responseType=C!=="json"?C:"text"}let d=e.serializeBody(),c=null,l=()=>{if(c!==null)return c;let C=s.statusText||"OK",I=new Vt(s.getAllResponseHeaders()),nt=tc(s)||e.url;return c=new Ni({headers:I,status:s.status,statusText:C,url:nt}),c},p=()=>{let{headers:C,status:I,statusText:nt,url:Ho}=l(),W=null;I!==kn.NoContent&&(W=typeof s.response>"u"?s.responseText:s.response),I===0&&(I=W?kn.Ok:0);let mi=I>=200&&I<300;if(e.responseType==="json"&&typeof W=="string"){let js=W;W=W.replace(Qs,"");try{W=W!==""?JSON.parse(W):null}catch(Ls){W=js,mi&&(mi=!1,W={error:Ls,text:W})}}mi?(a.next(new Dn({body:W,headers:C,status:I,statusText:nt,url:Ho||void 0})),a.complete()):a.error(new Mn({error:W,headers:C,status:I,statusText:nt,url:Ho||void 0}))},g=C=>{let{url:I}=l(),nt=new Mn({error:C,status:s.status||0,statusText:s.statusText||"Unknown Error",url:I||void 0});a.error(nt)},x=!1,X=C=>{x||(a.next(l()),x=!0);let I={type:re.DownloadProgress,loaded:C.loaded};C.lengthComputable&&(I.total=C.total),e.responseType==="text"&&s.responseText&&(I.partialText=s.responseText),a.next(I)},L=C=>{let I={type:re.UploadProgress,loaded:C.loaded};C.lengthComputable&&(I.total=C.total),a.next(I)};return s.addEventListener("load",p),s.addEventListener("error",g),s.addEventListener("timeout",g),s.addEventListener("abort",g),e.reportProgress&&(s.addEventListener("progress",X),d!==null&&s.upload&&s.upload.addEventListener("progress",L)),s.send(d),a.next({type:re.Sent}),()=>{s.removeEventListener("error",g),s.removeEventListener("abort",g),s.removeEventListener("load",p),s.removeEventListener("timeout",g),e.reportProgress&&(s.removeEventListener("progress",X),d!==null&&s.upload&&s.upload.removeEventListener("progress",L)),s.readyState!==s.DONE&&s.abort()}})))}};t.\u0275fac=function(i){return new(i||t)(u(Rn))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Br=new w(""),ec="XSRF-TOKEN",nc=new w("",{providedIn:"root",factory:()=>ec}),ic="X-XSRF-TOKEN",oc=new w("",{providedIn:"root",factory:()=>ic}),On=class{},rc=(()=>{let t=class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,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=Cn(e,this.cookieName),this.lastCookieString=e),this.lastToken}};t.\u0275fac=function(i){return new(i||t)(u(T),u(ht),u(nc))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();function ac(n,t){let o=n.url.toLowerCase();if(!m(Br)||n.method==="GET"||n.method==="HEAD"||o.startsWith("http://")||o.startsWith("https://"))return t(n);let e=m(On).getToken(),i=m(oc);return e!=null&&!n.headers.has(i)&&(n=n.clone({headers:n.headers.set(i,e)})),t(n)}var Vr=function(n){return n[n.Interceptors=0]="Interceptors",n[n.LegacyInterceptors=1]="LegacyInterceptors",n[n.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",n[n.NoXsrfProtection=3]="NoXsrfProtection",n[n.JsonpSupport=4]="JsonpSupport",n[n.RequestsMadeViaParent=5]="RequestsMadeViaParent",n[n.Fetch=6]="Fetch",n}(Vr||{});function sc(n,t){return{\u0275kind:n,\u0275providers:t}}function Pi(...n){let t=[Me,Ur,Lr,{provide:Se,useExisting:Lr},{provide:An,useExisting:Ur},{provide:Fi,useValue:ac,multi:!0},{provide:Br,useValue:!0},{provide:On,useClass:rc}];for(let o of n)t.push(...o.\u0275providers);return Nt(t)}var zr=new w("");function cc(){return sc(Vr.LegacyInterceptors,[{provide:zr,useFactory:Xs},{provide:Fi,useExisting:zr,multi:!0}])}var Wr=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({providers:[Pi(cc())]});let n=t;return n})();var Ui=class extends Tr{constructor(){super(...arguments),this.supportsDOMEvents=!0}},zi=class n extends Ui{static makeCurrent(){Cr(new n)}onAndCancel(t,o,e){return t.addEventListener(o,e),()=>{t.removeEventListener(o,e)}}dispatchEvent(t,o){t.dispatchEvent(o)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,o){return o=o||this.getDefaultDocument(),o.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,o){return o==="window"?window:o==="document"?t:o==="body"?t.body:null}getBaseHref(t){let o=lc();return o==null?null:uc(o)}resetBaseElement(){ke=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Cn(document.cookie,t)}},ke=null;function lc(){return ke=ke||document.querySelector("base"),ke?ke.getAttribute("href"):null}function uc(n){return new URL(n,document.baseURI).pathname}var mc=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),$i=new w(""),Zr=(()=>{let t=class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(a=>a.supports(e)),!i)throw new R(5101,!1);return this._eventNameToPlugin.set(e,i),i}};t.\u0275fac=function(i){return new(i||t)(u($i),u(S))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Nn=class{constructor(t){this._doc=t}},ji="ng-app-id",Yr=(()=>{let t=class t{constructor(e,i,r,a={}){this.doc=e,this.appId=i,this.nonce=r,this.platformId=a,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Tn(a),this.resetHostNodes()}addStyles(e){for(let i of e)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(e){for(let i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){let i=this.styleRef;i.get(e)?.elements?.forEach(r=>r.remove()),i.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${ji}="${this.appId}"]`);if(e?.length){let i=new Map;return e.forEach(r=>{r.textContent!=null&&i.set(r.textContent,r)}),i}return null}changeUsageCount(e,i){let r=this.styleRef;if(r.has(e)){let a=r.get(e);return a.usage+=i,a.usage}return r.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){let r=this.styleNodesInDOM,a=r?.get(i);if(a?.parentNode===e)return r.delete(i),a.removeAttribute(ji),a;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=i,this.platformIsServer&&s.setAttribute(ji,this.appId),e.appendChild(s),s}}addStyleToHost(e,i){let r=this.getStyleElement(e,i),a=this.styleRef,s=a.get(i)?.elements;s?s.push(r):a.set(i,{elements:[r],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}};t.\u0275fac=function(i){return new(i||t)(u(T),u(pn),u(we,8),u(ht))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Li={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/"},Vi=/%COMP%/g,Jr="%COMP%",hc=`_nghost-${Jr}`,pc=`_ngcontent-${Jr}`,fc=!0,bc=new w("",{providedIn:"root",factory:()=>fc});function gc(n){return pc.replace(Vi,n)}function vc(n){return hc.replace(Vi,n)}function Xr(n,t){return t.map(o=>o.replace(Vi,n))}var Fn=(()=>{let t=class t{constructor(e,i,r,a,s,d,c,l=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=a,this.doc=s,this.platformId=d,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Tn(d),this.defaultRenderer=new Oe(e,s,c,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===_e.ShadowDom&&(i=U(h({},i),{encapsulation:_e.Emulated}));let r=this.getOrCreateRenderer(e,i);return r instanceof Pn?r.applyToHost(e):r instanceof Ne&&r.applyStyles(),r}getOrCreateRenderer(e,i){let r=this.rendererByCompId,a=r.get(i.id);if(!a){let s=this.doc,d=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,g=this.platformIsServer;switch(i.encapsulation){case _e.Emulated:a=new Pn(c,l,i,this.appId,p,s,d,g);break;case _e.ShadowDom:return new Bi(c,l,e,i,s,d,this.nonce,g);default:a=new Ne(c,l,i,p,s,d,g);break}r.set(i.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(i){return new(i||t)(u(Zr),u(Yr),u(pn),u(bc),u(T),u(ht),u(S),u(we))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Oe=class{constructor(t,o,e,i){this.eventManager=t,this.doc=o,this.ngZone=e,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,o){return o?this.doc.createElementNS(Li[o]||o,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,o){(qr(t)?t.content:t).appendChild(o)}insertBefore(t,o,e){t&&(qr(t)?t.content:t).insertBefore(o,e)}removeChild(t,o){t&&t.removeChild(o)}selectRootElement(t,o){let e=typeof t=="string"?this.doc.querySelector(t):t;if(!e)throw new R(-5104,!1);return o||(e.textContent=""),e}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,o,e,i){if(i){o=i+":"+o;let r=Li[i];r?t.setAttributeNS(r,o,e):t.setAttribute(o,e)}else t.setAttribute(o,e)}removeAttribute(t,o,e){if(e){let i=Li[e];i?t.removeAttributeNS(i,o):t.removeAttribute(`${e}:${o}`)}else t.removeAttribute(o)}addClass(t,o){t.classList.add(o)}removeClass(t,o){t.classList.remove(o)}setStyle(t,o,e,i){i&(xe.DashCase|xe.Important)?t.style.setProperty(o,e,i&xe.Important?"important":""):t.style[o]=e}removeStyle(t,o,e){e&xe.DashCase?t.style.removeProperty(o):t.style[o]=""}setProperty(t,o,e){t!=null&&(t[o]=e)}setValue(t,o){t.nodeValue=o}listen(t,o,e){if(typeof t=="string"&&(t=Di().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${o}`);return this.eventManager.addEventListener(t,o,this.decoratePreventDefault(e))}decoratePreventDefault(t){return o=>{if(o==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(o)):t(o))===!1&&o.preventDefault()}}};function qr(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var Bi=class extends Oe{constructor(t,o,e,i,r,a,s,d){super(t,r,a,d),this.sharedStylesHost=o,this.hostEl=e,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Xr(i.id,i.styles);for(let l of c){let p=document.createElement("style");s&&p.setAttribute("nonce",s),p.textContent=l,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,o){return super.appendChild(this.nodeOrShadowRoot(t),o)}insertBefore(t,o,e){return super.insertBefore(this.nodeOrShadowRoot(t),o,e)}removeChild(t,o){return super.removeChild(this.nodeOrShadowRoot(t),o)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Ne=class extends Oe{constructor(t,o,e,i,r,a,s,d){super(t,r,a,s),this.sharedStylesHost=o,this.removeStylesOnCompDestroy=i,this.styles=d?Xr(d,e.styles):e.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Pn=class extends Ne{constructor(t,o,e,i,r,a,s,d){let c=i+"-"+e.id;super(t,o,e,r,a,s,d,c),this.contentAttr=gc(c),this.hostAttr=vc(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,o){let e=super.createElement(t,o);return super.setAttribute(e,this.contentAttr,""),e}},yc=(()=>{let t=class t extends Nn{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}};t.\u0275fac=function(i){return new(i||t)(u(T))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Gr=["alt","control","meta","shift"],_c={"\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"},wc={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},xc=(()=>{let t=class t extends Nn{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,i,r){let a=t.parseEventName(i),s=t.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Di().onAndCancel(e,a.domEventName,s))}static parseEventName(e){let i=e.toLowerCase().split("."),r=i.shift();if(i.length===0||!(r==="keydown"||r==="keyup"))return null;let a=t._normalizeKey(i.pop()),s="",d=i.indexOf("code");if(d>-1&&(i.splice(d,1),s="code."),Gr.forEach(l=>{let p=i.indexOf(l);p>-1&&(i.splice(p,1),s+=l+".")}),s+=a,i.length!=0||a.length===0)return null;let c={};return c.domEventName=r,c.fullKey=s,c}static matchEventFullKeyCode(e,i){let r=_c[e.key]||e.key,a="";return i.indexOf("code.")>-1&&(r=e.code,a="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),Gr.forEach(s=>{if(s!==r){let d=wc[s];d(e)&&(a+=s+".")}}),a+=r,a===i)}static eventCallback(e,i,r){return a=>{t.matchEventFullKeyCode(a,e)&&r.runGuarded(()=>i(a))}}static _normalizeKey(e){return e==="esc"?"escape":e}};t.\u0275fac=function(i){return new(i||t)(u(T))},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();function Qr(n,t){return Ir(h({rootComponent:n},Ic(t)))}function Ic(n){return{appProviders:[...Sc,...n?.providers??[]],platformProviders:Rc}}function Ec(){zi.makeCurrent()}function Cc(){return new Pt}function Tc(){return rr(document),document}var Rc=[{provide:ht,useValue:Mr},{provide:ar,useValue:Ec,multi:!0},{provide:T,useFactory:Tc,deps:[]}];var Sc=[{provide:nr,useValue:"root"},{provide:Pt,useFactory:Cc,deps:[]},{provide:$i,useClass:yc,multi:!0,deps:[T,S,ht]},{provide:$i,useClass:xc,multi:!0,deps:[T]},Fn,Yr,Zr,{provide:fn,useExisting:Fn},{provide:Rn,useClass:mc,deps:[]},[]];var ta=(()=>{let t=class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}};t.\u0275fac=function(i){return new(i||t)(u(T))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Wi=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:function(i){let r=null;return i?r=new(i||t):r=u(Ac),r},providedIn:"root"});let n=t;return n})(),Ac=(()=>{let t=class t extends Wi{constructor(e){super(),this._doc=e}sanitize(e,i){if(i==null)return null;switch(e){case K.NONE:return i;case K.HTML:return Qt(i,"HTML")?Xt(i):hr(this._doc,String(i)).toString();case K.STYLE:return Qt(i,"Style")?Xt(i):i;case K.SCRIPT:if(Qt(i,"Script"))return Xt(i);throw new R(5200,!1);case K.URL:return Qt(i,"URL")?Xt(i):mr(String(i));case K.RESOURCE_URL:if(Qt(i,"ResourceURL"))return Xt(i);throw new R(5201,!1);default:throw new R(5202,!1)}}bypassSecurityTrustHtml(e){return sr(e)}bypassSecurityTrustStyle(e){return cr(e)}bypassSecurityTrustScript(e){return dr(e)}bypassSecurityTrustUrl(e){return lr(e)}bypassSecurityTrustResourceUrl(e){return ur(e)}};t.\u0275fac=function(i){return new(i||t)(u(T))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var y="primary",Ye=Symbol("RouteTitle"),Zi=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let o=this.params[t];return Array.isArray(o)?o[0]:o}return null}getAll(t){if(this.has(t)){let o=this.params[t];return Array.isArray(o)?o:[o]}return[]}get keys(){return Object.keys(this.params)}};function le(n){return new Zi(n)}function Dc(n,t,o){let e=o.path.split("/");if(e.length>n.length||o.pathMatch==="full"&&(t.hasChildren()||e.lengthe[r]===i)}else return n===t}function ua(n){return n.length>0?n[n.length-1]:null}function Mt(n){return Go(n)?n:xr(n)?z(Promise.resolve(n)):f(n)}var kc={exact:ha,subset:pa},ma={exact:Oc,subset:Nc,ignored:()=>!0};function na(n,t,o){return kc[o.paths](n.root,t.root,o.matrixParams)&&ma[o.queryParams](n.queryParams,t.queryParams)&&!(o.fragment==="exact"&&n.fragment!==t.fragment)}function Oc(n,t){return dt(n,t)}function ha(n,t,o){if(!Ht(n.segments,t.segments)||!Un(n.segments,t.segments,o)||n.numberOfChildren!==t.numberOfChildren)return!1;for(let e in t.children)if(!n.children[e]||!ha(n.children[e],t.children[e],o))return!1;return!0}function Nc(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(o=>la(n[o],t[o]))}function pa(n,t,o){return fa(n,t,t.segments,o)}function fa(n,t,o,e){if(n.segments.length>o.length){let i=n.segments.slice(0,o.length);return!(!Ht(i,o)||t.hasChildren()||!Un(i,o,e))}else if(n.segments.length===o.length){if(!Ht(n.segments,o)||!Un(n.segments,o,e))return!1;for(let i in t.children)if(!n.children[i]||!pa(n.children[i],t.children[i],e))return!1;return!0}else{let i=o.slice(0,n.segments.length),r=o.slice(n.segments.length);return!Ht(n.segments,i)||!Un(n.segments,i,e)||!n.children[y]?!1:fa(n.children[y],t,r,e)}}function Un(n,t,o){return t.every((e,i)=>ma[o](n[i].parameters,e.parameters))}var Rt=class{constructor(t=new E([],{}),o={},e=null){this.root=t,this.queryParams=o,this.fragment=e}get queryParamMap(){return this._queryParamMap??=le(this.queryParams),this._queryParamMap}toString(){return jc.serialize(this)}},E=class{constructor(t,o){this.segments=t,this.children=o,this.parent=null,Object.values(o).forEach(e=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return zn(this)}},Wt=class{constructor(t,o){this.path=t,this.parameters=o}get parameterMap(){return this._parameterMap??=le(this.parameters),this._parameterMap}toString(){return ga(this)}};function Fc(n,t){return Ht(n,t)&&n.every((o,e)=>dt(o.parameters,t[e].parameters))}function Ht(n,t){return n.length!==t.length?!1:n.every((o,e)=>o.path===t[e].path)}function Pc(n,t){let o=[];return Object.entries(n.children).forEach(([e,i])=>{e===y&&(o=o.concat(t(i,e)))}),Object.entries(n.children).forEach(([e,i])=>{e!==y&&(o=o.concat(t(i,e)))}),o}var Je=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>new $e,providedIn:"root"});let n=t;return n})(),$e=class{parse(t){let o=new Xi(t);return new Rt(o.parseRootSegment(),o.parseQueryParams(),o.parseFragment())}serialize(t){let o=`/${Fe(t.root,!0)}`,e=zc(t.queryParams),i=typeof t.fragment=="string"?`#${Lc(t.fragment)}`:"";return`${o}${e}${i}`}},jc=new $e;function zn(n){return n.segments.map(t=>ga(t)).join("/")}function Fe(n,t){if(!n.hasChildren())return zn(n);if(t){let o=n.children[y]?Fe(n.children[y],!1):"",e=[];return Object.entries(n.children).forEach(([i,r])=>{i!==y&&e.push(`${i}:${Fe(r,!1)}`)}),e.length>0?`${o}(${e.join("//")})`:o}else{let o=Pc(n,(e,i)=>i===y?[Fe(n.children[y],!1)]:[`${i}:${Fe(e,!1)}`]);return Object.keys(n.children).length===1&&n.children[y]!=null?`${zn(n)}/${o[0]}`:`${zn(n)}/(${o.join("//")})`}}function ba(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function jn(n){return ba(n).replace(/%3B/gi,";")}function Lc(n){return encodeURI(n)}function Ji(n){return ba(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function $n(n){return decodeURIComponent(n)}function ia(n){return $n(n.replace(/\+/g,"%20"))}function ga(n){return`${Ji(n.path)}${Uc(n.parameters)}`}function Uc(n){return Object.entries(n).map(([t,o])=>`;${Ji(t)}=${Ji(o)}`).join("")}function zc(n){let t=Object.entries(n).map(([o,e])=>Array.isArray(e)?e.map(i=>`${jn(o)}=${jn(i)}`).join("&"):`${jn(o)}=${jn(e)}`).filter(o=>o);return t.length?`?${t.join("&")}`:""}var $c=/^[^\/()?;#]+/;function Hi(n){let t=n.match($c);return t?t[0]:""}var Bc=/^[^\/()?;=#]+/;function Vc(n){let t=n.match(Bc);return t?t[0]:""}var Wc=/^[^=?&#]+/;function Hc(n){let t=n.match(Wc);return t?t[0]:""}var qc=/^[^&#]+/;function Gc(n){let t=n.match(qc);return t?t[0]:""}var Xi=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new E([],{}):new E([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let o={};this.peekStartsWith("/(")&&(this.capture("/"),o=this.parseParens(!0));let e={};return this.peekStartsWith("(")&&(e=this.parseParens(!1)),(t.length>0||Object.keys(o).length>0)&&(e[y]=new E(t,o)),e}parseSegment(){let t=Hi(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new R(4009,!1);return this.capture(t),new Wt($n(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let o=Vc(this.remaining);if(!o)return;this.capture(o);let e="";if(this.consumeOptional("=")){let i=Hi(this.remaining);i&&(e=i,this.capture(e))}t[$n(o)]=$n(e)}parseQueryParam(t){let o=Hc(this.remaining);if(!o)return;this.capture(o);let e="";if(this.consumeOptional("=")){let a=Gc(this.remaining);a&&(e=a,this.capture(e))}let i=ia(o),r=ia(e);if(t.hasOwnProperty(i)){let a=t[i];Array.isArray(a)||(a=[a],t[i]=a),a.push(r)}else t[i]=r}parseParens(t){let o={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let e=Hi(this.remaining),i=this.remaining[e.length];if(i!=="/"&&i!==")"&&i!==";")throw new R(4010,!1);let r;e.indexOf(":")>-1?(r=e.slice(0,e.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=y);let a=this.parseChildren();o[r]=Object.keys(a).length===1?a[y]:new E([],a),this.consumeOptional("//")}return o}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new R(4011,!1)}};function va(n){return n.segments.length>0?new E([],{[y]:n}):n}function ya(n){let t={};for(let[e,i]of Object.entries(n.children)){let r=ya(i);if(e===y&&r.segments.length===0&&r.hasChildren())for(let[a,s]of Object.entries(r.children))t[a]=s;else(r.segments.length>0||r.hasChildren())&&(t[e]=r)}let o=new E(n.segments,t);return Kc(o)}function Kc(n){if(n.numberOfChildren===1&&n.children[y]){let t=n.children[y];return new E(n.segments.concat(t.segments),t.children)}return n}function ue(n){return n instanceof Rt}function Zc(n,t,o=null,e=null){let i=_a(n);return wa(i,t,o,e)}function _a(n){let t;function o(r){let a={};for(let d of r.children){let c=o(d);a[d.outlet]=c}let s=new E(r.url,a);return r===n&&(t=s),s}let e=o(n.root),i=va(e);return t??i}function wa(n,t,o,e){let i=n;for(;i.parent;)i=i.parent;if(t.length===0)return qi(i,i,i,o,e);let r=Yc(t);if(r.toRoot())return qi(i,i,new E([],{}),o,e);let a=Jc(r,i,n),s=a.processChildren?Le(a.segmentGroup,a.index,r.commands):Ia(a.segmentGroup,a.index,r.commands);return qi(i,a.segmentGroup,s,o,e)}function Bn(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function Be(n){return typeof n=="object"&&n!=null&&n.outlets}function qi(n,t,o,e,i){let r={};e&&Object.entries(e).forEach(([d,c])=>{r[d]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let a;n===t?a=o:a=xa(n,t,o);let s=va(ya(a));return new Rt(s,r,i)}function xa(n,t,o){let e={};return Object.entries(n.children).forEach(([i,r])=>{r===t?e[i]=o:e[i]=xa(r,t,o)}),new E(n.segments,e)}var Vn=class{constructor(t,o,e){if(this.isAbsolute=t,this.numberOfDoubleDots=o,this.commands=e,t&&e.length>0&&Bn(e[0]))throw new R(4003,!1);let i=e.find(Be);if(i&&i!==ua(e))throw new R(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Yc(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new Vn(!0,0,n);let t=0,o=!1,e=n.reduce((i,r,a)=>{if(typeof r=="object"&&r!=null){if(r.outlets){let s={};return Object.entries(r.outlets).forEach(([d,c])=>{s[d]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:s}]}if(r.segmentPath)return[...i,r.segmentPath]}return typeof r!="string"?[...i,r]:a===0?(r.split("/").forEach((s,d)=>{d==0&&s==="."||(d==0&&s===""?o=!0:s===".."?t++:s!=""&&i.push(s))}),i):[...i,r]},[]);return new Vn(o,t,e)}var ce=class{constructor(t,o,e){this.segmentGroup=t,this.processChildren=o,this.index=e}};function Jc(n,t,o){if(n.isAbsolute)return new ce(t,!0,0);if(!o)return new ce(t,!1,NaN);if(o.parent===null)return new ce(o,!0,0);let e=Bn(n.commands[0])?0:1,i=o.segments.length-1+e;return Xc(o,i,n.numberOfDoubleDots)}function Xc(n,t,o){let e=n,i=t,r=o;for(;r>i;){if(r-=i,e=e.parent,!e)throw new R(4005,!1);i=e.segments.length}return new ce(e,!1,i-r)}function Qc(n){return Be(n[0])?n[0].outlets:{[y]:n}}function Ia(n,t,o){if(n??=new E([],{}),n.segments.length===0&&n.hasChildren())return Le(n,t,o);let e=td(n,t,o),i=o.slice(e.commandIndex);if(e.match&&e.pathIndexr!==y)&&n.children[y]&&n.numberOfChildren===1&&n.children[y].segments.length===0){let r=Le(n.children[y],t,o);return new E(n.segments,r.children)}return Object.entries(e).forEach(([r,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[r]=Ia(n.children[r],t,a))}),Object.entries(n.children).forEach(([r,a])=>{e[r]===void 0&&(i[r]=a)}),new E(n.segments,i)}}function td(n,t,o){let e=0,i=t,r={match:!1,pathIndex:0,commandIndex:0};for(;i=o.length)return r;let a=n.segments[i],s=o[e];if(Be(s))break;let d=`${s}`,c=e0&&d===void 0)break;if(d&&c&&typeof c=="object"&&c.outlets===void 0){if(!ra(d,c,a))return r;e+=2}else{if(!ra(d,{},a))return r;e++}i++}return{match:!0,pathIndex:i,commandIndex:e}}function Qi(n,t,o){let e=n.segments.slice(0,t),i=0;for(;i{typeof e=="string"&&(e=[e]),e!==null&&(t[o]=Qi(new E([],{}),0,e))}),t}function oa(n){let t={};return Object.entries(n).forEach(([o,e])=>t[o]=`${e}`),t}function ra(n,t,o){return n==o.path&&dt(t,o.parameters)}var Ue="imperative",j=function(n){return n[n.NavigationStart=0]="NavigationStart",n[n.NavigationEnd=1]="NavigationEnd",n[n.NavigationCancel=2]="NavigationCancel",n[n.NavigationError=3]="NavigationError",n[n.RoutesRecognized=4]="RoutesRecognized",n[n.ResolveStart=5]="ResolveStart",n[n.ResolveEnd=6]="ResolveEnd",n[n.GuardsCheckStart=7]="GuardsCheckStart",n[n.GuardsCheckEnd=8]="GuardsCheckEnd",n[n.RouteConfigLoadStart=9]="RouteConfigLoadStart",n[n.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",n[n.ChildActivationStart=11]="ChildActivationStart",n[n.ChildActivationEnd=12]="ChildActivationEnd",n[n.ActivationStart=13]="ActivationStart",n[n.ActivationEnd=14]="ActivationEnd",n[n.Scroll=15]="Scroll",n[n.NavigationSkipped=16]="NavigationSkipped",n}(j||{}),tt=class{constructor(t,o){this.id=t,this.url=o}},me=class extends tt{constructor(t,o,e="imperative",i=null){super(t,o),this.type=j.NavigationStart,this.navigationTrigger=e,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},lt=class extends tt{constructor(t,o,e){super(t,o),this.urlAfterRedirects=e,this.type=j.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},J=function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n}(J||{}),Wn=function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n}(Wn||{}),St=class extends tt{constructor(t,o,e,i){super(t,o),this.reason=e,this.code=i,this.type=j.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},At=class extends tt{constructor(t,o,e,i){super(t,o),this.reason=e,this.code=i,this.type=j.NavigationSkipped}},Ve=class extends tt{constructor(t,o,e,i){super(t,o),this.error=e,this.target=i,this.type=j.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Hn=class extends tt{constructor(t,o,e,i){super(t,o),this.urlAfterRedirects=e,this.state=i,this.type=j.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},to=class extends tt{constructor(t,o,e,i){super(t,o),this.urlAfterRedirects=e,this.state=i,this.type=j.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},eo=class extends tt{constructor(t,o,e,i,r){super(t,o),this.urlAfterRedirects=e,this.state=i,this.shouldActivate=r,this.type=j.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},no=class extends tt{constructor(t,o,e,i){super(t,o),this.urlAfterRedirects=e,this.state=i,this.type=j.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},io=class extends tt{constructor(t,o,e,i){super(t,o),this.urlAfterRedirects=e,this.state=i,this.type=j.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},oo=class{constructor(t){this.route=t,this.type=j.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},ro=class{constructor(t){this.route=t,this.type=j.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},ao=class{constructor(t){this.snapshot=t,this.type=j.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},so=class{constructor(t){this.snapshot=t,this.type=j.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},co=class{constructor(t){this.snapshot=t,this.type=j.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},lo=class{constructor(t){this.snapshot=t,this.type=j.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},qn=class{constructor(t,o,e){this.routerEvent=t,this.position=o,this.anchor=e,this.type=j.Scroll}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},We=class{},He=class{constructor(t){this.url=t}};var uo=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Xe,this.attachRef=null}},Xe=(()=>{let t=class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new uo,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Gn=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let o=this.pathFromRoot(t);return o.length>1?o[o.length-2]:null}children(t){let o=mo(t,this._root);return o?o.children.map(e=>e.value):[]}firstChild(t){let o=mo(t,this._root);return o&&o.children.length>0?o.children[0].value:null}siblings(t){let o=ho(t,this._root);return o.length<2?[]:o[o.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return ho(t,this._root).map(o=>o.value)}};function mo(n,t){if(n===t.value)return t;for(let o of t.children){let e=mo(n,o);if(e)return e}return null}function ho(n,t){if(n===t.value)return[t];for(let o of t.children){let e=ho(n,o);if(e.length)return e.unshift(t),e}return[]}var Y=class{constructor(t,o){this.value=t,this.children=o}toString(){return`TreeNode(${this.value})`}};function se(n){let t={};return n&&n.children.forEach(o=>t[o.value.outlet]=o),t}var Kn=class extends Gn{constructor(t,o){super(t),this.snapshot=o,Io(this,t)}toString(){return this.snapshot.toString()}};function Ea(n){let t=nd(n),o=new k([new Wt("",{})]),e=new k({}),i=new k({}),r=new k({}),a=new k(""),s=new Dt(o,e,r,a,i,y,n,t.root);return s.snapshot=t.root,new Kn(new Y(s,[]),t)}function nd(n){let t={},o={},e={},i="",r=new qe([],t,e,i,o,y,n,null,{});return new Zn("",new Y(r,[]))}var Dt=class{constructor(t,o,e,i,r,a,s,d){this.urlSubject=t,this.paramsSubject=o,this.queryParamsSubject=e,this.fragmentSubject=i,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=d,this.title=this.dataSubject?.pipe(v(c=>c[Ye]))??f(void 0),this.url=t,this.params=o,this.queryParams=e,this.fragment=i,this.data=r}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(v(t=>le(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(v(t=>le(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function xo(n,t,o="emptyOnly"){let e,{routeConfig:i}=n;return t!==null&&(o==="always"||i?.path===""||!t.component&&!t.routeConfig?.loadComponent)?e={params:h(h({},t.params),n.params),data:h(h({},t.data),n.data),resolve:h(h(h(h({},n.data),t.data),i?.data),n._resolvedData)}:e={params:h({},n.params),data:h({},n.data),resolve:h(h({},n.data),n._resolvedData??{})},i&&Ta(i)&&(e.resolve[Ye]=i.title),e}var qe=class{get title(){return this.data?.[Ye]}constructor(t,o,e,i,r,a,s,d,c){this.url=t,this.params=o,this.queryParams=e,this.fragment=i,this.data=r,this.outlet=a,this.component=s,this.routeConfig=d,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=le(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=le(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(e=>e.toString()).join("/"),o=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${o}')`}},Zn=class extends Gn{constructor(t,o){super(o),this.url=t,Io(this,o)}toString(){return Ca(this._root)}};function Io(n,t){t.value._routerState=n,t.children.forEach(o=>Io(n,o))}function Ca(n){let t=n.children.length>0?` { ${n.children.map(Ca).join(", ")} } `:"";return`${n.value}${t}`}function Gi(n){if(n.snapshot){let t=n.snapshot,o=n._futureSnapshot;n.snapshot=o,dt(t.queryParams,o.queryParams)||n.queryParamsSubject.next(o.queryParams),t.fragment!==o.fragment&&n.fragmentSubject.next(o.fragment),dt(t.params,o.params)||n.paramsSubject.next(o.params),Mc(t.url,o.url)||n.urlSubject.next(o.url),dt(t.data,o.data)||n.dataSubject.next(o.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function po(n,t){let o=dt(n.params,t.params)&&Fc(n.url,t.url),e=!n.parent!=!t.parent;return o&&!e&&(!n.parent||po(n.parent,t.parent))}function Ta(n){return typeof n.title=="string"||n.title===null}var Eo=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=y,this.activateEvents=new jt,this.deactivateEvents=new jt,this.attachEvents=new jt,this.detachEvents=new jt,this.parentContexts=m(Xe),this.location=m(vr),this.changeDetector=m(En),this.environmentInjector=m(Ft),this.inputBinder=m(Qn,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new R(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new R(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new R(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,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,i){if(this.isActivated)throw new R(4013,!1);this._activatedRoute=e;let r=this.location,s=e.snapshot.component,d=this.parentContexts.getOrCreateContext(this.name).children,c=new fo(e,d,r.injector);this.activated=r.createComponent(s,{index:r.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=ot({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[mn]});let n=t;return n})(),fo=class n{__ngOutletInjector(t){return new n(this.route,this.childContexts,t)}constructor(t,o,e){this.route=t,this.childContexts=o,this.parent=e}get(t,o){return t===Dt?this.route:t===Xe?this.childContexts:this.parent.get(t,o)}},Qn=new w(""),aa=(()=>{let t=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:i}=e,r=Zt([i.queryParams,i.params,i.data]).pipe(G(([a,s,d],c)=>(d=h(h(h({},a),s),d),c===0?f(d):Promise.resolve(d)))).subscribe(a=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let s=Er(i.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:d}of s.inputs)e.activatedComponentRef.setInput(d,a[d])});this.outletDataSubscriptions.set(e,r)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();function id(n,t,o){let e=Ge(n,t._root,o?o._root:void 0);return new Kn(e,t)}function Ge(n,t,o){if(o&&n.shouldReuseRoute(t.value,o.value.snapshot)){let e=o.value;e._futureSnapshot=t.value;let i=od(n,t,o);return new Y(e,i)}else{if(n.shouldAttach(t.value)){let r=n.retrieve(t.value);if(r!==null){let a=r.route;return a.value._futureSnapshot=t.value,a.children=t.children.map(s=>Ge(n,s)),a}}let e=rd(t.value),i=t.children.map(r=>Ge(n,r));return new Y(e,i)}}function od(n,t,o){return t.children.map(e=>{for(let i of o.children)if(n.shouldReuseRoute(e.value,i.value.snapshot))return Ge(n,e,i);return Ge(n,e)})}function rd(n){return new Dt(new k(n.url),new k(n.params),new k(n.queryParams),new k(n.fragment),new k(n.data),n.outlet,n.component,n)}var Ra="ngNavigationCancelingError";function Sa(n,t){let{redirectTo:o,navigationBehaviorOptions:e}=ue(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=Aa(!1,J.Redirect);return i.url=o,i.navigationBehaviorOptions=e,i}function Aa(n,t){let o=new Error(`NavigationCancelingError: ${n||""}`);return o[Ra]=!0,o.cancellationCode=t,o}function ad(n){return Da(n)&&ue(n.url)}function Da(n){return!!n&&n[Ra]}var sd=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=N({type:t,selectors:[["ng-component"]],standalone:!0,features:[P],decls:1,vars:0,template:function(i,r){i&1&&B(0,"router-outlet")},dependencies:[Eo],encapsulation:2});let n=t;return n})();function cd(n,t){return n.providers&&!n._injector&&(n._injector=Ci(n.providers,t,`Route: ${n.path}`)),n._injector??t}function Co(n){let t=n.children&&n.children.map(Co),o=t?U(h({},n),{children:t}):h({},n);return!o.component&&!o.loadComponent&&(t||o.loadChildren)&&o.outlet&&o.outlet!==y&&(o.component=sd),o}function ut(n){return n.outlet||y}function dd(n,t){let o=n.filter(e=>ut(e)===t);return o.push(...n.filter(e=>ut(e)!==t)),o}function Qe(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){let o=t.routeConfig;if(o?._loadedInjector)return o._loadedInjector;if(o?._injector)return o._injector}return null}var ld=(n,t,o,e)=>v(i=>(new bo(t,i.targetRouterState,i.currentRouterState,o,e).activate(n),i)),bo=class{constructor(t,o,e,i,r){this.routeReuseStrategy=t,this.futureState=o,this.currState=e,this.forwardEvent=i,this.inputBindingEnabled=r}activate(t){let o=this.futureState._root,e=this.currState?this.currState._root:null;this.deactivateChildRoutes(o,e,t),Gi(this.futureState.root),this.activateChildRoutes(o,e,t)}deactivateChildRoutes(t,o,e){let i=se(o);t.children.forEach(r=>{let a=r.value.outlet;this.deactivateRoutes(r,i[a],e),delete i[a]}),Object.values(i).forEach(r=>{this.deactivateRouteAndItsChildren(r,e)})}deactivateRoutes(t,o,e){let i=t.value,r=o?o.value:null;if(i===r)if(i.component){let a=e.getContext(i.outlet);a&&this.deactivateChildRoutes(t,o,a.children)}else this.deactivateChildRoutes(t,o,e);else r&&this.deactivateRouteAndItsChildren(o,e)}deactivateRouteAndItsChildren(t,o){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,o):this.deactivateRouteAndOutlet(t,o)}detachAndStoreRouteSubtree(t,o){let e=o.getContext(t.value.outlet),i=e&&t.value.component?e.children:o,r=se(t);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,i);if(e&&e.outlet){let a=e.outlet.detach(),s=e.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:a,route:t,contexts:s})}}deactivateRouteAndOutlet(t,o){let e=o.getContext(t.value.outlet),i=e&&t.value.component?e.children:o,r=se(t);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,i);e&&(e.outlet&&(e.outlet.deactivate(),e.children.onOutletDeactivated()),e.attachRef=null,e.route=null)}activateChildRoutes(t,o,e){let i=se(o);t.children.forEach(r=>{this.activateRoutes(r,i[r.value.outlet],e),this.forwardEvent(new lo(r.value.snapshot))}),t.children.length&&this.forwardEvent(new so(t.value.snapshot))}activateRoutes(t,o,e){let i=t.value,r=o?o.value:null;if(Gi(i),i===r)if(i.component){let a=e.getOrCreateContext(i.outlet);this.activateChildRoutes(t,o,a.children)}else this.activateChildRoutes(t,o,e);else if(i.component){let a=e.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let s=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),Gi(s.route.value),this.activateChildRoutes(t,null,a.children)}else{let s=Qe(i.snapshot);a.attachRef=null,a.route=i,a.injector=s,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(t,null,a.children)}}else this.activateChildRoutes(t,null,e)}},Yn=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},de=class{constructor(t,o){this.component=t,this.route=o}};function ud(n,t,o){let e=n._root,i=t?t._root:null;return Pe(e,i,o,[e.value])}function md(n){let t=n.routeConfig?n.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:n,guards:t}}function pe(n,t){let o=Symbol(),e=t.get(n,o);return e===o?typeof n=="function"&&!er(n)?n:t.get(n):e}function Pe(n,t,o,e,i={canDeactivateChecks:[],canActivateChecks:[]}){let r=se(t);return n.children.forEach(a=>{hd(a,r[a.value.outlet],o,e.concat([a.value]),i),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>ze(s,o.getContext(a),i)),i}function hd(n,t,o,e,i={canDeactivateChecks:[],canActivateChecks:[]}){let r=n.value,a=t?t.value:null,s=o?o.getContext(n.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){let d=pd(a,r,r.routeConfig.runGuardsAndResolvers);d?i.canActivateChecks.push(new Yn(e)):(r.data=a.data,r._resolvedData=a._resolvedData),r.component?Pe(n,t,s?s.children:null,e,i):Pe(n,t,o,e,i),d&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new de(s.outlet.component,a))}else a&&ze(t,s,i),i.canActivateChecks.push(new Yn(e)),r.component?Pe(n,null,s?s.children:null,e,i):Pe(n,null,o,e,i);return i}function pd(n,t,o){if(typeof o=="function")return o(n,t);switch(o){case"pathParamsChange":return!Ht(n.url,t.url);case"pathParamsOrQueryParamsChange":return!Ht(n.url,t.url)||!dt(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!po(n,t)||!dt(n.queryParams,t.queryParams);case"paramsChange":default:return!po(n,t)}}function ze(n,t,o){let e=se(n),i=n.value;Object.entries(e).forEach(([r,a])=>{i.component?t?ze(a,t.children.getContext(r),o):ze(a,null,o):ze(a,t,o)}),i.component?t&&t.outlet&&t.outlet.isActivated?o.canDeactivateChecks.push(new de(t.outlet.component,i)):o.canDeactivateChecks.push(new de(null,i)):o.canDeactivateChecks.push(new de(null,i))}function tn(n){return typeof n=="function"}function fd(n){return typeof n=="boolean"}function bd(n){return n&&tn(n.canLoad)}function gd(n){return n&&tn(n.canActivate)}function vd(n){return n&&tn(n.canActivateChild)}function yd(n){return n&&tn(n.canDeactivate)}function _d(n){return n&&tn(n.canMatch)}function Ma(n){return n instanceof Ko||n?.name==="EmptyError"}var Ln=Symbol("INITIAL_VALUE");function he(){return G(n=>Zt(n.map(t=>t.pipe(it(1),ln(Ln)))).pipe(v(t=>{for(let o of t)if(o!==!0){if(o===Ln)return Ln;if(o===!1||o instanceof Rt)return o}return!0}),st(t=>t!==Ln),it(1)))}function wd(n,t){return q(o=>{let{targetSnapshot:e,currentSnapshot:i,guards:{canActivateChecks:r,canDeactivateChecks:a}}=o;return a.length===0&&r.length===0?f(U(h({},o),{guardsResult:!0})):xd(a,e,i,n).pipe(q(s=>s&&fd(s)?Id(e,r,n,t):f(s)),v(s=>U(h({},o),{guardsResult:s})))})}function xd(n,t,o,e){return z(n).pipe(q(i=>Sd(i.component,i.route,o,t,e)),wt(i=>i!==!0,!0))}function Id(n,t,o,e){return z(t).pipe(_t(i=>Yt(Cd(i.route.parent,e),Ed(i.route,e),Rd(n,i.path,o),Td(n,i.route,o))),wt(i=>i!==!0,!0))}function Ed(n,t){return n!==null&&t&&t(new co(n)),f(!0)}function Cd(n,t){return n!==null&&t&&t(new ao(n)),f(!0)}function Td(n,t,o){let e=t.routeConfig?t.routeConfig.canActivate:null;if(!e||e.length===0)return f(!0);let i=e.map(r=>bi(()=>{let a=Qe(t)??o,s=pe(r,a),d=gd(s)?s.canActivate(t,n):ct(a,()=>s(t,n));return Mt(d).pipe(wt())}));return f(i).pipe(he())}function Rd(n,t,o){let e=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(a=>md(a)).filter(a=>a!==null).map(a=>bi(()=>{let s=a.guards.map(d=>{let c=Qe(a.node)??o,l=pe(d,c),p=vd(l)?l.canActivateChild(e,n):ct(c,()=>l(e,n));return Mt(p).pipe(wt())});return f(s).pipe(he())}));return f(r).pipe(he())}function Sd(n,t,o,e,i){let r=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!r||r.length===0)return f(!0);let a=r.map(s=>{let d=Qe(t)??i,c=pe(s,d),l=yd(c)?c.canDeactivate(n,t,o,e):ct(d,()=>c(n,t,o,e));return Mt(l).pipe(wt())});return f(a).pipe(he())}function Ad(n,t,o,e){let i=t.canLoad;if(i===void 0||i.length===0)return f(!0);let r=i.map(a=>{let s=pe(a,n),d=bd(s)?s.canLoad(t,o):ct(n,()=>s(t,o));return Mt(d)});return f(r).pipe(he(),ka(e))}function ka(n){return qo(A(t=>{if(ue(t))throw Sa(n,t)}),v(t=>t===!0))}function Dd(n,t,o,e){let i=t.canMatch;if(!i||i.length===0)return f(!0);let r=i.map(a=>{let s=pe(a,n),d=_d(s)?s.canMatch(t,o):ct(n,()=>s(t,o));return Mt(d)});return f(r).pipe(he(),ka(e))}var Ke=class{constructor(t){this.segmentGroup=t||null}},Jn=class extends Error{constructor(t){super(),this.urlTree=t}};function ae(n){return Ot(new Ke(n))}function Md(n){return Ot(new R(4e3,!1))}function kd(n){return Ot(Aa(!1,J.GuardRejected))}var go=class{constructor(t,o){this.urlSerializer=t,this.urlTree=o}lineralizeSegments(t,o){let e=[],i=o.root;for(;;){if(e=e.concat(i.segments),i.numberOfChildren===0)return f(e);if(i.numberOfChildren>1||!i.children[y])return Md(t.redirectTo);i=i.children[y]}}applyRedirectCommands(t,o,e){let i=this.applyRedirectCreateUrlTree(o,this.urlSerializer.parse(o),t,e);if(o.startsWith("/"))throw new Jn(i);return i}applyRedirectCreateUrlTree(t,o,e,i){let r=this.createSegmentGroup(t,o.root,e,i);return new Rt(r,this.createQueryParams(o.queryParams,this.urlTree.queryParams),o.fragment)}createQueryParams(t,o){let e={};return Object.entries(t).forEach(([i,r])=>{if(typeof r=="string"&&r.startsWith(":")){let s=r.substring(1);e[i]=o[s]}else e[i]=r}),e}createSegmentGroup(t,o,e,i){let r=this.createSegments(t,o.segments,e,i),a={};return Object.entries(o.children).forEach(([s,d])=>{a[s]=this.createSegmentGroup(t,d,e,i)}),new E(r,a)}createSegments(t,o,e,i){return o.map(r=>r.path.startsWith(":")?this.findPosParam(t,r,i):this.findOrReturn(r,e))}findPosParam(t,o,e){let i=e[o.path.substring(1)];if(!i)throw new R(4001,!1);return i}findOrReturn(t,o){let e=0;for(let i of o){if(i.path===t.path)return o.splice(e),i;e++}return t}},vo={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Od(n,t,o,e,i){let r=To(n,t,o);return r.matched?(e=cd(t,e),Dd(e,t,o,i).pipe(v(a=>a===!0?r:h({},vo)))):f(r)}function To(n,t,o){if(t.path==="**")return Nd(o);if(t.path==="")return t.pathMatch==="full"&&(n.hasChildren()||o.length>0)?h({},vo):{matched:!0,consumedSegments:[],remainingSegments:o,parameters:{},positionalParamSegments:{}};let i=(t.matcher||Dc)(o,n,t);if(!i)return h({},vo);let r={};Object.entries(i.posParams??{}).forEach(([s,d])=>{r[s]=d.path});let a=i.consumed.length>0?h(h({},r),i.consumed[i.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:i.consumed,remainingSegments:o.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function Nd(n){return{matched:!0,parameters:n.length>0?ua(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function sa(n,t,o,e){return o.length>0&&jd(n,o,e)?{segmentGroup:new E(t,Pd(e,new E(o,n.children))),slicedSegments:[]}:o.length===0&&Ld(n,o,e)?{segmentGroup:new E(n.segments,Fd(n,o,e,n.children)),slicedSegments:o}:{segmentGroup:new E(n.segments,n.children),slicedSegments:o}}function Fd(n,t,o,e){let i={};for(let r of o)if(ti(n,t,r)&&!e[ut(r)]){let a=new E([],{});i[ut(r)]=a}return h(h({},e),i)}function Pd(n,t){let o={};o[y]=t;for(let e of n)if(e.path===""&&ut(e)!==y){let i=new E([],{});o[ut(e)]=i}return o}function jd(n,t,o){return o.some(e=>ti(n,t,e)&&ut(e)!==y)}function Ld(n,t,o){return o.some(e=>ti(n,t,e))}function ti(n,t,o){return(n.hasChildren()||t.length>0)&&o.pathMatch==="full"?!1:o.path===""}function Ud(n,t,o,e){return ut(n)!==e&&(e===y||!ti(t,o,n))?!1:To(t,n,o).matched}function zd(n,t,o){return t.length===0&&!n.children[o]}var yo=class{};function $d(n,t,o,e,i,r,a="emptyOnly"){return new _o(n,t,o,e,i,a,r).recognize()}var Bd=31,_o=class{constructor(t,o,e,i,r,a,s){this.injector=t,this.configLoader=o,this.rootComponentType=e,this.config=i,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new go(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new R(4002,`'${t.segmentGroup}'`)}recognize(){let t=sa(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(v(o=>{let e=new qe([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,{},y,this.rootComponentType,null,{}),i=new Y(e,o),r=new Zn("",i),a=Zc(e,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(r._root,null),{state:r,tree:a}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,y).pipe(yt(e=>{if(e instanceof Jn)return this.urlTree=e.urlTree,this.match(e.urlTree.root);throw e instanceof Ke?this.noMatchError(e):e}))}inheritParamsAndData(t,o){let e=t.value,i=xo(e,o,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(r=>this.inheritParamsAndData(r,e))}processSegmentGroup(t,o,e,i){return e.segments.length===0&&e.hasChildren()?this.processChildren(t,o,e):this.processSegment(t,o,e,e.segments,i,!0).pipe(v(r=>r instanceof Y?[r]:[]))}processChildren(t,o,e){let i=[];for(let r of Object.keys(e.children))r==="primary"?i.unshift(r):i.push(r);return z(i).pipe(_t(r=>{let a=e.children[r],s=dd(o,r);return this.processSegmentGroup(t,s,a,r)}),Qo((r,a)=>(r.push(...a),r)),vi(null),Xo(),q(r=>{if(r===null)return ae(e);let a=Oa(r);return Vd(a),f(a)}))}processSegment(t,o,e,i,r,a){return z(o).pipe(_t(s=>this.processSegmentAgainstRoute(s._injector??t,o,s,e,i,r,a).pipe(yt(d=>{if(d instanceof Ke)return f(null);throw d}))),wt(s=>!!s),yt(s=>{if(Ma(s))return zd(e,i,r)?f(new yo):ae(e);throw s}))}processSegmentAgainstRoute(t,o,e,i,r,a,s){return Ud(e,i,r,a)?e.redirectTo===void 0?this.matchSegmentAgainstRoute(t,i,e,r,a):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(t,i,o,e,r,a):ae(i):ae(i)}expandSegmentAgainstRouteUsingRedirect(t,o,e,i,r,a){let{matched:s,consumedSegments:d,positionalParamSegments:c,remainingSegments:l}=To(o,i,r);if(!s)return ae(o);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Bd&&(this.allowRedirects=!1));let p=this.applyRedirects.applyRedirectCommands(d,i.redirectTo,c);return this.applyRedirects.lineralizeSegments(i,p).pipe(q(g=>this.processSegment(t,e,o,g.concat(l),a,!1)))}matchSegmentAgainstRoute(t,o,e,i,r){let a=Od(o,e,i,t,this.urlSerializer);return e.path==="**"&&(o.children={}),a.pipe(G(s=>s.matched?(t=e._injector??t,this.getChildConfig(t,e,i).pipe(G(({routes:d})=>{let c=e._loadedInjector??t,{consumedSegments:l,remainingSegments:p,parameters:g}=s,x=new qe(l,g,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Hd(e),ut(e),e.component??e._loadedComponent??null,e,qd(e)),{segmentGroup:X,slicedSegments:L}=sa(o,l,p,d);if(L.length===0&&X.hasChildren())return this.processChildren(c,d,X).pipe(v(I=>I===null?null:new Y(x,I)));if(d.length===0&&L.length===0)return f(new Y(x,[]));let C=ut(e)===r;return this.processSegment(c,d,X,L,C?y:r,!0).pipe(v(I=>new Y(x,I instanceof Y?[I]:[])))}))):ae(o)))}getChildConfig(t,o,e){return o.children?f({routes:o.children,injector:t}):o.loadChildren?o._loadedRoutes!==void 0?f({routes:o._loadedRoutes,injector:o._loadedInjector}):Ad(t,o,e,this.urlSerializer).pipe(q(i=>i?this.configLoader.loadChildren(t,o).pipe(A(r=>{o._loadedRoutes=r.routes,o._loadedInjector=r.injector})):kd(o))):f({routes:[],injector:t})}};function Vd(n){n.sort((t,o)=>t.value.outlet===y?-1:o.value.outlet===y?1:t.value.outlet.localeCompare(o.value.outlet))}function Wd(n){let t=n.value.routeConfig;return t&&t.path===""}function Oa(n){let t=[],o=new Set;for(let e of n){if(!Wd(e)){t.push(e);continue}let i=t.find(r=>e.value.routeConfig===r.value.routeConfig);i!==void 0?(i.children.push(...e.children),o.add(i)):t.push(e)}for(let e of o){let i=Oa(e.children);t.push(new Y(e.value,i))}return t.filter(e=>!o.has(e))}function Hd(n){return n.data||{}}function qd(n){return n.resolve||{}}function Gd(n,t,o,e,i,r){return q(a=>$d(n,t,o,e,a.extractedUrl,i,r).pipe(v(({state:s,tree:d})=>U(h({},a),{targetSnapshot:s,urlAfterRedirects:d}))))}function Kd(n,t){return q(o=>{let{targetSnapshot:e,guards:{canActivateChecks:i}}=o;if(!i.length)return f(o);let r=new Set(i.map(d=>d.route)),a=new Set;for(let d of r)if(!a.has(d))for(let c of Na(d))a.add(c);let s=0;return z(a).pipe(_t(d=>r.has(d)?Zd(d,e,n,t):(d.data=xo(d,d.parent,n).resolve,f(void 0))),A(()=>s++),yi(1),q(d=>s===a.size?f(o):vt))})}function Na(n){let t=n.children.map(o=>Na(o)).flat();return[n,...t]}function Zd(n,t,o,e){let i=n.routeConfig,r=n._resolve;return i?.title!==void 0&&!Ta(i)&&(r[Ye]=i.title),Yd(r,n,t,e).pipe(v(a=>(n._resolvedData=a,n.data=xo(n,n.parent,o).resolve,null)))}function Yd(n,t,o,e){let i=Yi(n);if(i.length===0)return f({});let r={};return z(i).pipe(q(a=>Jd(n[a],t,o,e).pipe(wt(),A(s=>{r[a]=s}))),yi(1),Yo(r),yt(a=>Ma(a)?vt:Ot(a)))}function Jd(n,t,o,e){let i=Qe(t)??e,r=pe(n,i),a=r.resolve?r.resolve(t,o):ct(i,()=>r(t,o));return Mt(a)}function Ki(n){return G(t=>{let o=n(t);return o?z(o).pipe(v(()=>t)):f(t)})}var Fa=(()=>{let t=class t{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(a=>a.outlet===y);return i}getResolvedTitleForRoute(e){return e.data[Ye]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>m(Xd),providedIn:"root"});let n=t;return n})(),Xd=(()=>{let t=class t extends Fa{constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}};t.\u0275fac=function(i){return new(i||t)(u(ta))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),en=new w("",{providedIn:"root",factory:()=>({})}),Ze=new w(""),Ro=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=m(In)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return f(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let i=Mt(e.loadComponent()).pipe(v(Pa),A(a=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=a}),mt(()=>{this.componentLoaders.delete(e)})),r=new pi(i,()=>new H).pipe(hi());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return f({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let a=Qd(i,this.compiler,e,this.onLoadEndListener).pipe(mt(()=>{this.childrenLoaders.delete(i)})),s=new pi(a,()=>new H).pipe(hi());return this.childrenLoaders.set(i,s),s}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function Qd(n,t,o,e){return Mt(n.loadChildren()).pipe(v(Pa),q(i=>i instanceof _r||Array.isArray(i)?f(i):z(t.compileModuleAsync(i))),v(i=>{e&&e(n);let r,a,s=!1;return Array.isArray(i)?(a=i,s=!0):(r=i.create(o).injector,a=r.get(Ze,[],{optional:!0,self:!0}).flat()),{routes:a.map(Co),injector:r}}))}function tl(n){return n&&typeof n=="object"&&"default"in n}function Pa(n){return tl(n)?n.default:n}var So=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>m(el),providedIn:"root"});let n=t;return n})(),el=(()=>{let t=class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),ja=new w(""),La=new w("");function nl(n,t,o){let e=n.get(La),i=n.get(T);return n.get(S).runOutsideAngular(()=>{if(!i.startViewTransition||e.skipNextTransition)return e.skipNextTransition=!1,Promise.resolve();let r,a=new Promise(c=>{r=c}),s=i.startViewTransition(()=>(r(),il(n))),{onViewTransitionCreated:d}=e;return d&&ct(n,()=>d({transition:s,from:t,to:o})),a})}function il(n){return new Promise(t=>{gr(t,{injector:n})})}var Ao=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new H,this.transitionAbortSubject=new H,this.configLoader=m(Ro),this.environmentInjector=m(Ft),this.urlSerializer=m(Je),this.rootContexts=m(Xe),this.location=m(Te),this.inputBindingEnabled=m(Qn,{optional:!0})!==null,this.titleStrategy=m(Fa),this.options=m(en,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=m(So),this.createViewTransition=m(ja,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>f(void 0),this.rootComponentType=null;let e=r=>this.events.next(new oo(r)),i=r=>this.events.next(new ro(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;this.transitions?.next(U(h(h({},this.transitions.value),e),{id:i}))}setupNavigations(e,i,r){return this.transitions=new k({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ue,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(st(a=>a.id!==0),v(a=>U(h({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),G(a=>{let s=!1,d=!1;return f(a).pipe(G(c=>{if(this.navigationId>a.id)return this.cancelNavigationTransition(a,"",J.SupersededByNewNavigation),vt;this.currentTransition=a,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?U(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),p=c.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!l&&p!=="reload"){let g="";return this.events.next(new At(c.id,this.urlSerializer.serialize(c.rawUrl),g,Wn.IgnoredSameUrlNavigation)),c.resolve(null),vt}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return f(c).pipe(G(g=>{let x=this.transitions?.getValue();return this.events.next(new me(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),x!==this.transitions?.getValue()?vt:Promise.resolve(g)}),Gd(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),A(g=>{a.targetSnapshot=g.targetSnapshot,a.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation=U(h({},this.currentNavigation),{finalUrl:g.urlAfterRedirects});let x=new Hn(g.id,this.urlSerializer.serialize(g.extractedUrl),this.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);this.events.next(x)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:g,extractedUrl:x,source:X,restoredState:L,extras:C}=c,I=new me(g,this.urlSerializer.serialize(x),X,L);this.events.next(I);let nt=Ea(this.rootComponentType).snapshot;return this.currentTransition=a=U(h({},c),{targetSnapshot:nt,urlAfterRedirects:x,extras:U(h({},C),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=x,f(a)}else{let g="";return this.events.next(new At(c.id,this.urlSerializer.serialize(c.extractedUrl),g,Wn.IgnoredByUrlHandlingStrategy)),c.resolve(null),vt}}),A(c=>{let l=new to(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),v(c=>(this.currentTransition=a=U(h({},c),{guards:ud(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),a)),wd(this.environmentInjector,c=>this.events.next(c)),A(c=>{if(a.guardsResult=c.guardsResult,ue(c.guardsResult))throw Sa(this.urlSerializer,c.guardsResult);let l=new eo(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),st(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",J.GuardRejected),!1)),Ki(c=>{if(c.guards.canActivateChecks.length)return f(c).pipe(A(l=>{let p=new no(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(p)}),G(l=>{let p=!1;return f(l).pipe(Kd(this.paramsInheritanceStrategy,this.environmentInjector),A({next:()=>p=!0,complete:()=>{p||this.cancelNavigationTransition(l,"",J.NoDataFromResolver)}}))}),A(l=>{let p=new io(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(p)}))}),Ki(c=>{let l=p=>{let g=[];p.routeConfig?.loadComponent&&!p.routeConfig._loadedComponent&&g.push(this.configLoader.loadComponent(p.routeConfig).pipe(A(x=>{p.component=x}),v(()=>{})));for(let x of p.children)g.push(...l(x));return g};return Zt(l(c.targetSnapshot.root)).pipe(vi(null),it(1))}),Ki(()=>this.afterPreactivation()),G(()=>{let{currentSnapshot:c,targetSnapshot:l}=a,p=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return p?z(p).pipe(v(()=>a)):f(a)}),v(c=>{let l=id(e.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=a=U(h({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,a}),A(()=>{this.events.next(new We)}),ld(this.rootContexts,e.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),it(1),A({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new lt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),Jt(this.transitionAbortSubject.pipe(A(c=>{throw c}))),mt(()=>{!s&&!d&&this.cancelNavigationTransition(a,"",J.SupersededByNewNavigation),this.currentTransition?.id===a.id&&(this.currentNavigation=null,this.currentTransition=null)}),yt(c=>{if(d=!0,Da(c))this.events.next(new St(a.id,this.urlSerializer.serialize(a.extractedUrl),c.message,c.cancellationCode)),ad(c)?this.events.next(new He(c.url)):a.resolve(!1);else{this.events.next(new Ve(a.id,this.urlSerializer.serialize(a.extractedUrl),c,a.targetSnapshot??void 0));try{a.resolve(e.errorHandler(c))}catch(l){this.options.resolveNavigationPromiseOnError?a.resolve(!1):a.reject(l)}}return vt}))}))}cancelNavigationTransition(e,i,r){let a=new St(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(a),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}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function ol(n){return n!==Ue}var rl=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>m(al),providedIn:"root"});let n=t;return n})(),wo=class{shouldDetach(t){return!1}store(t,o){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,o){return t.routeConfig===o.routeConfig}},al=(()=>{let t=class t extends wo{};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=xi(t)))(r||t)}})(),t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Ua=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:()=>m(sl),providedIn:"root"});let n=t;return n})(),sl=(()=>{let t=class t extends Ua{constructor(){super(...arguments),this.location=m(Te),this.urlSerializer=m(Je),this.options=m(en,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=m(So),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Rt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Ea(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(i=>{i.type==="popstate"&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof me)this.stateMemento=this.createStateMemento();else if(e instanceof At)this.rawUrlTree=i.initialUrl;else if(e instanceof Hn){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(r,i)}}else e instanceof We?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):e instanceof St&&(e.code===J.GuardRejected||e.code===J.NoDataFromResolver)?this.restoreHistory(i):e instanceof Ve?this.restoreHistory(i,!0):e instanceof lt&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){let r=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){let a=this.browserPageId,s=h(h({},i.extras.state),this.generateNgRouterState(i.id,a));this.location.replaceState(r,"",s)}else{let a=h(h({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(r,"",a)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,a=this.currentPageId-r;a!==0?this.location.historyGo(a):this.currentUrlTree===e.finalUrl&&a===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&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,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=xi(t)))(r||t)}})(),t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),je=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(je||{});function za(n,t){n.events.pipe(st(o=>o instanceof lt||o instanceof St||o instanceof Ve||o instanceof At),v(o=>o instanceof lt||o instanceof At?je.COMPLETE:(o instanceof St?o.code===J.Redirect||o.code===J.SupersededByNewNavigation:!1)?je.REDIRECTING:je.FAILED),st(o=>o!==je.REDIRECTING),it(1)).subscribe(()=>{t()})}function cl(n){throw n}var dl={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ll={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},bt=(()=>{let t=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=m(_n),this.stateManager=m(Ua),this.options=m(en,{optional:!0})||{},this.pendingTasks=m(Ie),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=m(Ao),this.urlSerializer=m(Je),this.location=m(Te),this.urlHandlingStrategy=m(So),this._events=new H,this.errorHandler=this.options.errorHandler||cl,this.navigated=!1,this.routeReuseStrategy=m(rl),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=m(Ze,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!m(Qn,{optional:!0}),this.eventsSubscription=new ye,this.isNgZoneEnabled=m(S)instanceof S&&S.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(i=>{try{let r=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(r!==null&&a!==null){if(this.stateManager.handleRouterEvent(i,a),i instanceof St&&i.code!==J.Redirect&&i.code!==J.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof lt)this.navigated=!0;else if(i instanceof He){let s=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),d={info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||ol(r.source)};this.scheduleNavigation(s,Ue,null,d,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}ml(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});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),Ue,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,r){let a={replaceUrl:!0},s=r?.navigationId?r:null;if(r){let c=h({},r);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(a.state=c)}let d=this.parseUrl(e);this.scheduleNavigation(d,i,s,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Co),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,i={}){let{relativeTo:r,queryParams:a,fragment:s,queryParamsHandling:d,preserveFragment:c}=i,l=c?this.currentUrlTree.fragment:s,p=null;switch(d){case"merge":p=h(h({},this.currentUrlTree.queryParams),a);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=a||null}p!==null&&(p=this.removeEmptyProps(p));let g;try{let x=r?r.snapshot:this.routerState.snapshot.root;g=_a(x)}catch{(typeof e[0]!="string"||!e[0].startsWith("/"))&&(e=[]),g=this.currentUrlTree.root}return wa(g,e,p,l??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=ue(e)?e:this.parseUrl(e),a=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(a,Ue,null,i)}navigate(e,i={skipLocationChange:!1}){return ul(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=h({},dl):i===!1?r=h({},ll):r=i,ue(e))return na(this.currentUrlTree,e,r);let a=this.parseUrl(e);return na(this.currentUrlTree,a,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,a])=>(a!=null&&(i[r]=a),i),{})}scheduleNavigation(e,i,r,a,s){if(this.disposed)return Promise.resolve(!1);let d,c,l;s?(d=s.resolve,c=s.reject,l=s.promise):l=new Promise((g,x)=>{d=g,c=x});let p=this.pendingTasks.add();return za(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:a,resolve:d,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(g=>Promise.reject(g))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function ul(n){for(let t=0;t{let t=class t{constructor(e,i,r,a,s,d){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=a,this.el=s,this.locationStrategy=d,this.href=null,this.commands=null,this.onChanges=new H,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=e.events.subscribe(l=>{l instanceof lt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){e!=null?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,i,r,a,s){let d=this.urlTree;if(d===null||this.isAnchorElement&&(e!==0||i||r||a||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(d,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let i=this.href===null?null:pr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){let r=this.renderer,a=this.el.nativeElement;i!==null?r.setAttribute(a,e,i):r.removeAttribute(a,e)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};t.\u0275fac=function(i){return new(i||t)(_(bt),_(Dt),hn("tabindex"),_(br),_($),_(Ce))},t.\u0275dir=ot({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,r){i&1&&$t("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),i&2&&It("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[D.HasDecoratorInputTransform,"preserveFragment","preserveFragment",Z],skipLocationChange:[D.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",Z],replaceUrl:[D.HasDecoratorInputTransform,"replaceUrl","replaceUrl",Z],routerLink:"routerLink"},standalone:!0,features:[xt,mn]});let n=t;return n})();var Xn=class{};var hl=(()=>{let t=class t{constructor(e,i,r,a,s){this.router=e,this.injector=r,this.preloadingStrategy=a,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(st(e=>e instanceof lt),_t(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){let r=[];for(let a of i){a.providers&&!a._injector&&(a._injector=Ci(a.providers,e,`Route: ${a.path}`));let s=a._injector??e,d=a._loadedInjector??s;(a.loadChildren&&!a._loadedRoutes&&a.canLoad===void 0||a.loadComponent&&!a._loadedComponent)&&r.push(this.preloadConfig(s,a)),(a.children||a._loadedRoutes)&&r.push(this.processRoutes(d,a.children??a._loadedRoutes))}return z(r).pipe(fi())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;i.loadChildren&&i.canLoad===void 0?r=this.loader.loadChildren(e,i):r=f(null);let a=r.pipe(q(s=>s===null?f(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(i.loadComponent&&!i._loadedComponent){let s=this.loader.loadComponent(i);return z([a,s]).pipe(fi())}else return a})}};t.\u0275fac=function(i){return new(i||t)(u(bt),u(In),u(Ft),u(Xn),u(Ro))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Ba=new w(""),pl=(()=>{let t=class t{constructor(e,i,r,a,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=a,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.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 me?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof lt?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof At&&e.code===Wn.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 qn&&(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,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new qn(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};t.\u0275fac=function(i){te()},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})();function Va(n,...t){return Nt([{provide:Ze,multi:!0,useValue:n},[],{provide:Dt,useFactory:Wa,deps:[bt]},{provide:wn,multi:!0,useFactory:Ha},t.map(o=>o.\u0275providers)])}function Wa(n){return n.routerState.root}function nn(n,t){return{\u0275kind:n,\u0275providers:t}}function Ha(){let n=m(Ii);return t=>{let o=n.get(xn);if(t!==o.components[0])return;let e=n.get(bt),i=n.get(qa);n.get(Do)===1&&e.initialNavigation(),n.get(Ga,null,_i.Optional)?.setUpPreloading(),n.get(Ba,null,_i.Optional)?.init(),e.resetRootComponentType(o.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var qa=new w("",{factory:()=>new H}),Do=new w("",{providedIn:"root",factory:()=>1});function fl(){return nn(2,[{provide:Do,useValue:0},{provide:Ee,multi:!0,deps:[Ii],useFactory:t=>{let o=t.get(Rr,Promise.resolve());return()=>o.then(()=>new Promise(e=>{let i=t.get(bt),r=t.get(qa);za(i,()=>{e(!0)}),t.get(Ao).afterPreactivation=()=>(e(!0),r.closed?f(void 0):r),i.initialNavigation()}))}}])}function bl(){return nn(3,[{provide:Ee,multi:!0,useFactory:()=>{let t=m(bt);return()=>{t.setUpLocationChangeListener()}}},{provide:Do,useValue:2}])}var Ga=new w("");function gl(n){return nn(0,[{provide:Ga,useExisting:hl},{provide:Xn,useExisting:n}])}function vl(){return nn(8,[aa,{provide:Qn,useExisting:aa}])}function yl(n){let t=[{provide:ja,useValue:nl},{provide:La,useValue:h({skipNextTransition:!!n?.skipInitialTransition},n)}];return nn(9,t)}var ca=new w("ROUTER_FORROOT_GUARD"),_l=[Te,{provide:Je,useClass:$e},bt,Xe,{provide:Dt,useFactory:Wa,deps:[bt]},Ro,[]],Ka=(()=>{let t=class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[_l,[],{provide:Ze,multi:!0,useValue:e},{provide:ca,useFactory:El,deps:[[bt,new un,new wi]]},{provide:en,useValue:i||{}},i?.useHash?xl():Il(),wl(),i?.preloadingStrategy?gl(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?Cl(i):[],i?.bindToComponentInputs?vl().\u0275providers:[],i?.enableViewTransitions?yl().\u0275providers:[],Tl()]}}static forChild(e){return{ngModule:t,providers:[{provide:Ze,multi:!0,useValue:e}]}}};t.\u0275fac=function(i){return new(i||t)(u(ca,8))},t.\u0275mod=F({type:t}),t.\u0275inj=O({});let n=t;return n})();function wl(){return{provide:Ba,useFactory:()=>{let n=m(Or),t=m(S),o=m(en),e=m(Ao),i=m(Je);return o.scrollOffset&&n.setOffset(o.scrollOffset),new pl(i,e,n,t,o)}}}function xl(){return{provide:Ce,useClass:Ar}}function Il(){return{provide:Ce,useClass:Sr}}function El(n){return"guarded"}function Cl(n){return[n.initialNavigation==="disabled"?bl().\u0275providers:[],n.initialNavigation==="enabledBlocking"?fl().\u0275providers:[]]}var da=new w("");function Tl(){return[{provide:da,useFactory:Ha},{provide:wn,multi:!0,useExisting:da}]}var ko;try{ko=typeof Intl<"u"&&Intl.v8BreakIterator}catch{ko=!1}var V=(()=>{let t=class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?kr(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||ko)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};t.\u0275fac=function(i){return new(i||t)(u(ht))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var on;function Sl(){if(on==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>on=!0}))}finally{on=on||!1}return on}function fe(n){return Sl()?n:!!n.capture}var Mo;function Al(){if(Mo==null){let n=typeof document<"u"?document.head:null;Mo=!!(n&&(n.createShadowRoot||n.attachShadow))}return Mo}function Za(n){if(Al()){let t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function kt(n){return n.composedPath?n.composedPath()[0]:n.target}function Ya(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Oo(n){return Array.isArray(n)?n:[n]}function qt(n){return n instanceof $?n.nativeElement:n}var Ja=new Set,Gt,Dl=(()=>{let t=class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):kl}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&Ml(e,this._nonce),this._matchMedia(e)}};t.\u0275fac=function(i){return new(i||t)(u(V),u(we,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function Ml(n,t){if(!Ja.has(n))try{Gt||(Gt=document.createElement("style"),t&&Gt.setAttribute("nonce",t),Gt.setAttribute("type","text/css"),document.head.appendChild(Gt)),Gt.sheet&&(Gt.sheet.insertRule(`@media ${n} {body{ }}`,0),Ja.add(n))}catch(o){console.error(o)}}function kl(n){return{matches:n==="all"||n==="",media:n,addListener:()=>{},removeListener:()=>{}}}var Qa=(()=>{let t=class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new H}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Xa(Oo(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=Xa(Oo(e)).map(s=>this._registerQuery(s).observable),a=Zt(r);return a=Yt(a.pipe(it(1)),a.pipe(dn(1),gi(0))),a.pipe(v(s=>{let d={matches:!1,breakpoints:{}};return s.forEach(({matches:c,query:l})=>{d.matches=d.matches||c,d.breakpoints[l]=c}),d}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),a={observable:new cn(s=>{let d=c=>this._zone.run(()=>s.next(c));return i.addListener(d),()=>{i.removeListener(d)}}).pipe(ln(i),v(({matches:s})=>({query:e,matches:s})),Jt(this._destroySubject)),mql:i};return this._queries.set(e,a),a}};t.\u0275fac=function(i){return new(i||t)(u(Dl),u(S))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function Xa(n){return n.map(t=>t.split(",")).reduce((t,o)=>t.concat(o)).map(t=>t.trim())}function Fo(n){return n.buttons===0||n.detail===0}function Po(n){let t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!!t&&t.identifier===-1&&(t.radiusX==null||t.radiusX===1)&&(t.radiusY==null||t.radiusY===1)}var Ol=new w("cdk-input-modality-detector-options"),Nl={ignoreKeys:[18,17,224,91,16]},ns=650,be=fe({passive:!0,capture:!0}),Fl=(()=>{let t=class t{get mostRecentModality(){return this._modality.value}constructor(e,i,r,a){this._platform=e,this._mostRecentTarget=null,this._modality=new k(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(d=>d===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=kt(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs{if(Po(s)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=kt(s)},this._options=h(h({},Nl),a),this.modalityDetected=this._modality.pipe(dn(1)),this.modalityChanged=this.modalityDetected.pipe(Jo()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,be),r.addEventListener("mousedown",this._onMousedown,be),r.addEventListener("touchstart",this._onTouchstart,be)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,be),document.removeEventListener("mousedown",this._onMousedown,be),document.removeEventListener("touchstart",this._onTouchstart,be))}};t.\u0275fac=function(i){return new(i||t)(u(V),u(S),u(T),u(Ol,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var ni=function(n){return n[n.IMMEDIATE=0]="IMMEDIATE",n[n.EVENTUAL=1]="EVENTUAL",n}(ni||{}),Pl=new w("cdk-focus-monitor-default-options"),ei=fe({passive:!0,capture:!0}),is=(()=>{let t=class t{constructor(e,i,r,a,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new H,this._rootNodeFocusAndBlurListener=d=>{let c=kt(d);for(let l=c;l;l=l.parentElement)d.type==="focus"?this._onFocus(d,l):this._onBlur(d,l)},this._document=a,this._detectionMode=s?.detectionMode||ni.IMMEDIATE}monitor(e,i=!1){let r=qt(e);if(!this._platform.isBrowser||r.nodeType!==1)return f();let a=Za(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;let d={checkChildren:i,subject:new H,rootNode:a};return this._elementInfo.set(r,d),this._registerGlobalListeners(d),d.subject}stopMonitoring(e){let i=qt(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){let a=qt(e),s=this._getDocument().activeElement;a===s?this._getClosestElementsInfo(a).forEach(([d,c])=>this._originChanged(d,i,c)):(this._setOrigin(i),typeof a.focus=="function"&&a.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===ni.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===ni.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?ns:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,i){let r=this._elementInfo.get(i),a=kt(e);!r||!r.checkChildren&&i!==a||this._originChanged(i,this._getFocusOrigin(a),r)}_onBlur(e,i){let r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,ei),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,ei)}),this._rootNodeFocusListenerCount.set(i,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Jt(this._stopInputModalityDetector)).subscribe(a=>{this._setOrigin(a,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ei),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ei),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((r,a)=>{(a===e||r.checkChildren&&a.contains(e))&&i.push([a,r])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let a=e.labels;if(a){for(let s=0;s{let t=class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=m(Qa).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Kt.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,a=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),a){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Kt.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Kt.BLACK_ON_WHITE}return Kt.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(No,ts,es),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===Kt.BLACK_ON_WHITE?e.add(No,ts):i===Kt.WHITE_ON_BLACK&&e.add(No,es)}}};t.\u0275fac=function(i){return new(i||t)(u(V),u(T))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var jo=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({});let n=t;return n})();function Ul(){return!0}var zl=new w("mat-sanity-checks",{providedIn:"root",factory:Ul}),at=(()=>{let t=class t{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return Ya()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[e]}};t.\u0275fac=function(i){return new(i||t)(u(os),u(zl,8),u(T))},t.\u0275mod=F({type:t}),t.\u0275inj=O({imports:[jo,jo]});let n=t;return n})();var et=function(n){return n[n.FADING_IN=0]="FADING_IN",n[n.VISIBLE=1]="VISIBLE",n[n.FADING_OUT=2]="FADING_OUT",n[n.HIDDEN=3]="HIDDEN",n}(et||{}),zo=class{constructor(t,o,e,i=!1){this._renderer=t,this.element=o,this.config=e,this._animationForciblyDisabledThroughCss=i,this.state=et.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},rs=fe({passive:!0,capture:!0}),$o=class{constructor(){this._events=new Map,this._delegateEventHandler=t=>{let o=kt(t);o&&this._events.get(t.type)?.forEach((e,i)=>{(i===o||i.contains(o))&&e.forEach(r=>r.handleEvent(t))})}}addHandler(t,o,e,i){let r=this._events.get(o);if(r){let a=r.get(e);a?a.add(i):r.set(e,new Set([i]))}else this._events.set(o,new Map([[e,new Set([i])]])),t.runOutsideAngular(()=>{document.addEventListener(o,this._delegateEventHandler,rs)})}removeHandler(t,o,e){let i=this._events.get(t);if(!i)return;let r=i.get(o);r&&(r.delete(e),r.size===0&&i.delete(o),i.size===0&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,rs)))}},as={enterDuration:225,exitDuration:150},$l=800,ss=fe({passive:!0,capture:!0}),cs=["mousedown","touchstart"],ds=["mouseup","mouseleave","touchend","touchcancel"],an=class an{constructor(t,o,e,i){this._target=t,this._ngZone=o,this._platform=i,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=qt(e))}fadeInRipple(t,o,e={}){let i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=h(h({},as),e.animation);e.centered&&(t=i.left+i.width/2,o=i.top+i.height/2);let a=e.radius||Bl(t,o,i),s=t-i.left,d=o-i.top,c=r.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=`${s-a}px`,l.style.top=`${d-a}px`,l.style.height=`${a*2}px`,l.style.width=`${a*2}px`,e.color!=null&&(l.style.backgroundColor=e.color),l.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(l);let p=window.getComputedStyle(l),g=p.transitionProperty,x=p.transitionDuration,X=g==="none"||x==="0s"||x==="0s, 0s"||i.width===0&&i.height===0,L=new zo(this,l,e,X);l.style.transform="scale3d(1, 1, 1)",L.state=et.FADING_IN,e.persistent||(this._mostRecentTransientRipple=L);let C=null;return!X&&(c||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let I=()=>this._finishRippleTransition(L),nt=()=>this._destroyRipple(L);l.addEventListener("transitionend",I),l.addEventListener("transitioncancel",nt),C={onTransitionEnd:I,onTransitionCancel:nt}}),this._activeRipples.set(L,C),(X||!c)&&this._finishRippleTransition(L),L}fadeOutRipple(t){if(t.state===et.FADING_OUT||t.state===et.HIDDEN)return;let o=t.element,e=h(h({},as),t.config.animation);o.style.transitionDuration=`${e.exitDuration}ms`,o.style.opacity="0",t.state=et.FADING_OUT,(t._animationForciblyDisabledThroughCss||!e.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){let o=qt(t);!this._platform.isBrowser||!o||o===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=o,cs.forEach(e=>{an._eventManager.addHandler(this._ngZone,e,o,this)}))}handleEvent(t){t.type==="mousedown"?this._onMousedown(t):t.type==="touchstart"?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{ds.forEach(o=>{this._triggerElement.addEventListener(o,this,ss)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){t.state===et.FADING_IN?this._startFadeOutTransition(t):t.state===et.FADING_OUT&&this._destroyRipple(t)}_startFadeOutTransition(t){let o=t===this._mostRecentTransientRipple,{persistent:e}=t.config;t.state=et.VISIBLE,!e&&(!o||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){let o=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=et.HIDDEN,o!==null&&(t.element.removeEventListener("transitionend",o.onTransitionEnd),t.element.removeEventListener("transitioncancel",o.onTransitionCancel)),t.element.remove()}_onMousedown(t){let o=Fo(t),e=this._lastTouchStartEvent&&Date.now(){let o=t.state===et.VISIBLE||t.config.terminateOnPointerUp&&t.state===et.FADING_IN;!t.config.persistent&&o&&t.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let t=this._triggerElement;t&&(cs.forEach(o=>an._eventManager.removeHandler(o,t,this)),this._pointerUpEventsRegistered&&ds.forEach(o=>t.removeEventListener(o,this,ss)))}};an._eventManager=new $o;var Bo=an;function Bl(n,t,o){let e=Math.max(Math.abs(n-o.left),Math.abs(n-o.right)),i=Math.max(Math.abs(t-o.top),Math.abs(t-o.bottom));return Math.sqrt(e*e+i*i)}var hs=new w("mat-ripple-global-options"),Vl=(()=>{let t=class t{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,r,a,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=a||{},this._rippleRenderer=new Bo(this,i,e,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:h(h(h({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,h(h({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,h(h({},this.rippleConfig),e))}};t.\u0275fac=function(i){return new(i||t)(_($),_(S),_(V),_(hs,8),_(Lt,8))},t.\u0275dir=ot({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){i&2&&Et("mat-ripple-unbounded",r.unbounded)},inputs:{color:[D.None,"matRippleColor","color"],unbounded:[D.None,"matRippleUnbounded","unbounded"],centered:[D.None,"matRippleCentered","centered"],radius:[D.None,"matRippleRadius","radius"],animation:[D.None,"matRippleAnimation","animation"],disabled:[D.None,"matRippleDisabled","disabled"],trigger:[D.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let n=t;return n})(),ps=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({imports:[at,at]});let n=t;return n})();var ls={capture:!0},us=["focus","click","mouseenter","touchstart"],Lo="mat-ripple-loader-uninitialized",Uo="mat-ripple-loader-class-name",ms="mat-ripple-loader-centered",ii="mat-ripple-loader-disabled",fs=(()=>{let t=class t{constructor(){this._document=m(T,{optional:!0}),this._animationMode=m(Lt,{optional:!0}),this._globalRippleOptions=m(hs,{optional:!0}),this._platform=m(V),this._ngZone=m(S),this._hosts=new Map,this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;let r=e.target.closest(`[${Lo}]`);r&&this._createRipple(r)},this._ngZone.runOutsideAngular(()=>{for(let e of us)this._document?.addEventListener(e,this._onInteraction,ls)})}ngOnDestroy(){let e=this._hosts.keys();for(let i of e)this.destroyRipple(i);for(let i of us)this._document?.removeEventListener(i,this._onInteraction,ls)}configureRipple(e,i){e.setAttribute(Lo,""),(i.className||!e.hasAttribute(Uo))&&e.setAttribute(Uo,i.className||""),i.centered&&e.setAttribute(ms,""),i.disabled&&e.setAttribute(ii,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,i){let r=this._hosts.get(e);if(r){r.disabled=i;return}i?e.setAttribute(ii,""):e.removeAttribute(ii)}_createRipple(e){if(!this._document)return;let i=this._hosts.get(e);if(i)return i;e.querySelector(".mat-ripple")?.remove();let r=this._document.createElement("span");r.classList.add("mat-ripple",e.getAttribute(Uo)),e.append(r);let a=new Vl(new $(r),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return a._isInitialized=!0,a.trigger=e,a.centered=e.hasAttribute(ms),a.disabled=e.hasAttribute(ii),this.attachRipple(e,a),a}attachRipple(e,i){e.removeAttribute(Lo),this._hosts.set(e,i)}destroyRipple(e){let i=this._hosts.get(e);i&&(i.ngOnDestroy(),this._hosts.delete(e))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Wl=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}";var Hl=["mat-icon-button",""],ql=["*"];var Gl=new w("MAT_BUTTON_CONFIG");var Kl=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],Zl=(()=>{let t=class t{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}constructor(e,i,r,a){this._elementRef=e,this._platform=i,this._ngZone=r,this._animationMode=a,this._focusMonitor=m(is),this._rippleLoader=m(fs),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let s=m(Gl,{optional:!0}),d=e.nativeElement,c=d.classList;this.disabledInteractive=s?.disabledInteractive??!1,this._rippleLoader?.configureRipple(d,{className:"mat-mdc-button-ripple"});for(let{attribute:l,mdcClasses:p}of Kl)d.hasAttribute(l)&&c.add(...p)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}};t.\u0275fac=function(i){te()},t.\u0275dir=ot({type:t,inputs:{color:"color",disableRipple:[D.HasDecoratorInputTransform,"disableRipple","disableRipple",Z],disabled:[D.HasDecoratorInputTransform,"disabled","disabled",Z],ariaDisabled:[D.HasDecoratorInputTransform,"aria-disabled","ariaDisabled",Z],disabledInteractive:[D.HasDecoratorInputTransform,"disabledInteractive","disabledInteractive",Z]},features:[xt]});let n=t;return n})();var oi=(()=>{let t=class t extends Zl{constructor(e,i,r,a){super(e,i,r,a),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}};t.\u0275fac=function(i){return new(i||t)(_($),_(V),_(S),_(Lt,8))},t.\u0275cmp=N({type:t,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(i,r){i&2&&(It("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),ee(r.color?"mat-"+r.color:""),Et("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[yr,P],attrs:Hl,ngContentSelectors:ql,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){i&1&&(Bt(),B(0,"span",0),Ct(1),B(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',Wl],encapsulation:2,changeDetection:0});let n=t;return n})();var ri=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({imports:[at,ps,at]});let n=t;return n})();var Yl=["*"],ai;function Jl(){if(ai===void 0&&(ai=null,typeof window<"u")){let n=window;n.trustedTypes!==void 0&&(ai=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return ai}function sn(n){return Jl()?.createHTML(n)||n}function gs(n){return Error(`Unable to find icon with the name "${n}"`)}function Xl(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function vs(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function ys(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}var gt=class{constructor(t,o,e){this.url=t,this.svgText=o,this.options=e}},Ql=(()=>{let t=class t{constructor(e,i,r,a){this._httpClient=e,this._sanitizer=i,this._errorHandler=a,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,a){return this._addSvgIconConfig(e,i,new gt(r,null,a))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,a){let s=this._sanitizer.sanitize(K.HTML,r);if(!s)throw ys(r);let d=sn(s);return this._addSvgIconConfig(e,i,new gt("",d,a))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new gt(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){let a=this._sanitizer.sanitize(K.HTML,i);if(!a)throw ys(i);let s=sn(a);return this._addSvgIconSetConfig(e,new gt("",s,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let i=this._sanitizer.sanitize(K.RESOURCE_URL,e);if(!i)throw vs(e);let r=this._cachedIconsByUrl.get(i);return r?f(si(r)):this._loadSvgIconFromConfig(new gt(e,null)).pipe(A(a=>this._cachedIconsByUrl.set(i,a)),v(a=>si(a)))}getNamedSvgIcon(e,i=""){let r=_s(i,e),a=this._svgIconConfigs.get(r);if(a)return this._getSvgFromConfig(a);if(a=this._getIconConfigFromResolvers(i,e),a)return this._svgIconConfigs.set(r,a),this._getSvgFromConfig(a);let s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):Ot(gs(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?f(si(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(v(i=>si(i)))}_getSvgFromIconSetConfigs(e,i){let r=this._extractIconWithNameFromAnySet(e,i);if(r)return f(r);let a=i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(yt(d=>{let l=`Loading icon set URL: ${this._sanitizer.sanitize(K.RESOURCE_URL,s.url)} failed: ${d.message}`;return this._errorHandler.handleError(new Error(l)),f(null)})));return Zo(a).pipe(v(()=>{let s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw gs(e);return s}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){let a=i[r];if(a.svgText&&a.svgText.toString().indexOf(e)>-1){let s=this._svgElementFromConfig(a),d=this._extractSvgIconFromSet(s,e,a.options);if(d)return d}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(A(i=>e.svgText=i),v(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?f(null):this._fetchIcon(e).pipe(A(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){let a=e.querySelector(`[id="${i}"]`);if(!a)return null;let s=a.cloneNode(!0);if(s.removeAttribute("id"),s.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(s,r);if(s.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(s),r);let d=this._svgElementFromString(sn(""));return d.appendChild(s),this._setSvgAttributes(d,r)}_svgElementFromString(e){let i=this._document.createElement("DIV");i.innerHTML=e;let r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){let i=this._svgElementFromString(sn("")),r=e.attributes;for(let a=0;asn(l)),mt(()=>this._inProgressUrlFetches.delete(s)),tr());return this._inProgressUrlFetches.set(s,c),c}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(_s(e,i),r),this}_addSvgIconSetConfig(e,i){let r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){let i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rt?t.pathname+t.search:""}}var ws=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],ou=ws.map(n=>`[${n}]`).join(", "),ru=/^url\(['"]?#(.*?)['"]?\)$/,ci=(()=>{let t=class t{get color(){return this._color||this._defaultColor}set color(e){this._color=e}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){let i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){let i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(e,i,r,a,s,d){this._elementRef=e,this._iconRegistry=i,this._location=a,this._errorHandler=s,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=ye.EMPTY,d&&(d.color&&(this.color=this._defaultColor=d.color),d.fontSet&&(this.fontSet=d.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let r=e.childNodes[i];(r.nodeType!==1||r.nodeName.toLowerCase()==="svg")&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let i=this._elementsWithExternalReferences;i&&i.forEach((r,a)=>{r.forEach(s=>{a.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){let i=e.querySelectorAll(ou),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let a=0;a{let d=i[a],c=d.getAttribute(s),l=c?c.match(ru):null;if(l){let p=r.get(d);p||(p=[],r.set(d,p)),p.push({name:s,value:l[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(it(1)).subscribe(a=>this._setSvgElement(a),a=>{let s=`Error retrieving icon ${i}:${r}! ${a.message}`;this._errorHandler.handleError(new Error(s))})}}};t.\u0275fac=function(i){return new(i||t)(_($),_(Ql),hn("aria-hidden"),_(nu),_(Pt),_(eu,8))},t.\u0275cmp=N({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){i&2&&(It("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),ee(r.color?"mat-"+r.color:""),Et("mat-icon-inline",r.inline)("mat-icon-no-color",r.color!=="primary"&&r.color!=="accent"&&r.color!=="warn"))},inputs:{color:"color",inline:[D.HasDecoratorInputTransform,"inline","inline",Z],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[xt,P],ngContentSelectors:Yl,decls:1,vars:0,template:function(i,r){i&1&&(Bt(),Ct(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0});let n=t;return n})(),di=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({imports:[at,at]});let n=t;return n})();var li=(()=>{let t=class t{saveToLocalStorage(e,i){localStorage.setItem(e,i)}getFromLocalStorage(e){return localStorage.getItem(e)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var ge=(()=>{let t=class t{constructor(e){this.localStorageService=e,this._favourites$=new k([]),this.favourites$=this._favourites$.asObservable()}addFavourite(e){e.isFavourite=!0,this._favourites$.next([...this._favourites$.value,e]),this.persistToLocalStorage()}removeFavourite(e){e.isFavourite=!1,this._favourites$.next(this._favourites$.value.filter(i=>i.value!==e.value)),this.persistToLocalStorage()}initStore(){let e=this.localStorageService.getFromLocalStorage("favourites");e&&this._favourites$.next(JSON.parse(e))}persistToLocalStorage(){this.localStorageService.saveToLocalStorage("favourites",JSON.stringify(this._favourites$.value))}toggleFavourite(e){this.isFavourite(e)?this.removeFavourite(e):this.addFavourite(e)}isFavourite(e){return this._favourites$.value.includes(e)}};t.\u0275fac=function(i){return new(i||t)(u(li))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function au(n,t){if(n&1){let o=wr();Q(0,"li")(1,"button",1),$t("click",function(){let i=ir(o).$implicit,r=Ri();return or(r.favouritesStoreService.toggleFavourite(i))}),Q(2,"mat-icon"),pt(3),rt()(),pt(4),rt()}if(n&2){let o=t.$implicit;Ut(3),vn(o.isFavourite?"favorite":"favorite_border"),Ut(),Ai(" ",o.value," ")}}var ui=(()=>{let t=class t{constructor(e){this.favouritesStoreService=e,this.jokes=[]}};t.\u0275fac=function(i){return new(i||t)(_(ge))},t.\u0275cmp=N({type:t,selectors:[["cnjg-joke-list"]],inputs:{jokes:"jokes"},standalone:!0,features:[P],decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],["mat-icon-button","","title","Favourites",3,"click"]],template:function(i,r){i&1&&(Q(0,"ul"),Ti(1,au,5,2,"li",0),rt()),i&2&&(Ut(),zt("ngForOf",r.jokes))},dependencies:[ft,Dr,di,ci,ri,oi],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;height:100%}[_nghost-%COMP%] ul[_ngcontent-%COMP%]{width:90%;height:100%;justify-content:space-evenly;display:flex;flex-direction:column;align-items:center;padding-inline-start:0px}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;margin-bottom:20px}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(2n){color:orange}[_nghost-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(odd){color:#add8e6}li[_ngcontent-%COMP%]{font-size:large;vertical-align:text-top}"],changeDetection:0});let n=t;return n})();var su=()=>[],Cs=(()=>{let t=class t{constructor(e){this.favouritesStoreService=e}};t.\u0275fac=function(i){return new(i||t)(_(ge))},t.\u0275cmp=N({type:t,selectors:[["cnjg-favourites"]],standalone:!0,features:[P],decls:2,vars:4,consts:[[3,"jokes"]],template:function(i,r){i&1&&(B(0,"cnjg-joke-list",0),ne(1,"async")),i&2&&zt("jokes",ie(1,1,r.favouritesStoreService.favourites$)||yn(3,su))},dependencies:[ft,oe,ui],styles:["[_nghost-%COMP%]{height:100%}"],changeDetection:0});let n=t;return n})();var Ts="https://api.chucknorris.io/jokes/random";var Rs=(()=>{let t=class t{constructor(e){this.httpClient=e}getJoke(){return this.httpClient.get(Ts).pipe(v(e=>({value:e.value,isFavourite:!1})))}};t.\u0275fac=function(i){return new(i||t)(u(Me))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var ve=(()=>{let t=class t{constructor(e,i){this.chuckNorrisJokeGeneratorService=e,this.localStorageService=i,this._jokes$=new k([]),this.jokes$=this._jokes$.asObservable(),this._isNewJokeIntervalRunning$=new k(!1),this.isNewJokeIntervalRunning$=this._isNewJokeIntervalRunning$.asObservable()}toggleInterval(){this._isNewJokeIntervalRunning$.value?(this.cancelNewJokeTimer(),this._isNewJokeIntervalRunning$.next(!1)):(this.newJokeIntervalId=this.startNewJokeTimer(),this._isNewJokeIntervalRunning$.next(!0)),this.persistIntervalStateToLocalStorage()}initStore(){let e=Array(10).fill(this.chuckNorrisJokeGeneratorService.getJoke());Yt(...e).subscribe(i=>this._jokes$.next([...this._jokes$.value,i])),this.loadIntervalStateFromLocalStorage()}cancelNewJokeTimer(){window.clearInterval(this.newJokeIntervalId),this.newJokeIntervalId=void 0,this._isNewJokeIntervalRunning$.next(!1)}startNewJokeTimer(){return this._isNewJokeIntervalRunning$.next(!0),window.setInterval(()=>{this.chuckNorrisJokeGeneratorService.getJoke().subscribe(e=>this._jokes$.next([e,...this._jokes$.value.splice(0,9)]))},5e3)}persistIntervalStateToLocalStorage(){this.localStorageService.saveToLocalStorage("intervalState",JSON.stringify(this._isNewJokeIntervalRunning$.value))}loadIntervalStateFromLocalStorage(){let e=this.localStorageService.getFromLocalStorage("intervalState");e&&this._isNewJokeIntervalRunning$.next(JSON.parse(e)),this._isNewJokeIntervalRunning$.value&&(this.newJokeIntervalId=this.startNewJokeTimer())}};t.\u0275fac=function(i){return new(i||t)(u(Rs),u(li))},t.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var du=()=>[],As=(()=>{let t=class t{constructor(e){this.jokeStoreService=e}};t.\u0275fac=function(i){return new(i||t)(_(ve))},t.\u0275cmp=N({type:t,selectors:[["cnjg-jokes"]],standalone:!0,features:[P],decls:2,vars:4,consts:[[3,"jokes"]],template:function(i,r){i&1&&(B(0,"cnjg-joke-list",0),ne(1,"async")),i&2&&zt("jokes",ie(1,1,r.jokeStoreService.jokes$)||yn(3,du))},dependencies:[ft,oe,ui],styles:["[_nghost-%COMP%]{height:100%}"],changeDetection:0});let n=t;return n})();var Ds=[{path:"",redirectTo:"jokes",pathMatch:"full"},{path:"jokes",component:As},{path:"favourites",component:Cs}];var lu="@",uu=(()=>{let t=class t{constructor(e,i,r,a,s){this.doc=e,this.delegate=i,this.zone=r,this.animationType=a,this.moduleImpl=s,this._rendererFactoryPromise=null,this.scheduler=m(fr,{optional:!0})}ngOnDestroy(){this._engine?.flush()}loadImpl(){return(this.moduleImpl??import("./chunk-TSZR3UJX.js")).catch(i=>{throw new R(5300,!1)}).then(({\u0275createEngine:i,\u0275AnimationRendererFactory:r})=>{this._engine=i(this.animationType,this.doc,this.scheduler);let a=new r(this.delegate,this._engine,this.zone);return this.delegate=a,a})}createRenderer(e,i){let r=this.delegate.createRenderer(e,i);if(r.\u0275type===0)return r;typeof r.throwOnSyntheticProps=="boolean"&&(r.throwOnSyntheticProps=!1);let a=new Vo(r);return i?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(s=>{let d=s.createRenderer(e,i);a.use(d)}).catch(s=>{a.use(r)}),a}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}};t.\u0275fac=function(i){te()},t.\u0275prov=b({token:t,factory:t.\u0275fac});let n=t;return n})(),Vo=class{constructor(t){this.delegate=t,this.replay=[],this.\u0275type=1}use(t){if(this.delegate=t,this.replay!==null){for(let o of this.replay)o(t);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(t,o){return this.delegate.createElement(t,o)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}get destroyNode(){return this.delegate.destroyNode}appendChild(t,o){this.delegate.appendChild(t,o)}insertBefore(t,o,e,i){this.delegate.insertBefore(t,o,e,i)}removeChild(t,o,e){this.delegate.removeChild(t,o,e)}selectRootElement(t,o){return this.delegate.selectRootElement(t,o)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,o,e,i){this.delegate.setAttribute(t,o,e,i)}removeAttribute(t,o,e){this.delegate.removeAttribute(t,o,e)}addClass(t,o){this.delegate.addClass(t,o)}removeClass(t,o){this.delegate.removeClass(t,o)}setStyle(t,o,e,i){this.delegate.setStyle(t,o,e,i)}removeStyle(t,o,e){this.delegate.removeStyle(t,o,e)}setProperty(t,o,e){this.shouldReplay(o)&&this.replay.push(i=>i.setProperty(t,o,e)),this.delegate.setProperty(t,o,e)}setValue(t,o){this.delegate.setValue(t,o)}listen(t,o,e){return this.shouldReplay(o)&&this.replay.push(i=>i.listen(t,o,e)),this.delegate.listen(t,o,e)}shouldReplay(t){return this.replay!==null&&t.startsWith(lu)}};function Ms(n="animations"){return Ei("NgAsyncAnimations"),Nt([{provide:fn,useFactory:(t,o,e)=>new uu(t,o,e,n),deps:[T,Fn,S]},{provide:Lt,useValue:n==="noop"?"NoopAnimations":"BrowserAnimations"}])}var ks={providers:[Va(Ds),Ms(),Pi(),{provide:Ee,useFactory:(n,t)=>{n.initStore(),t.initStore()},deps:[ve,ge]}]};var mu=["*",[["mat-toolbar-row"]]],hu=["*","mat-toolbar-row"],pu=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=ot({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0});let n=t;return n})(),Os=(()=>{let t=class t{constructor(e,i,r){this._elementRef=e,this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}};t.\u0275fac=function(i){return new(i||t)(_($),_(V),_(T))},t.\u0275cmp=N({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,r,a){if(i&1&&Si(a,pu,5),i&2){let s;bn(s=gn())&&(r._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,r){i&2&&(ee(r.color?"mat-"+r.color:""),Et("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",r._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[P],ngContentSelectors:hu,decls:2,vars:0,template:function(i,r){i&1&&(Bt(mu),Ct(0),Ct(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0});let n=t;return n})();var Ns=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=F({type:t}),t.\u0275inj=O({imports:[at,at]});let n=t;return n})();var Wo=function(n){return n.Empty="hourglass_empty",n.Full="hourglass_full",n}(Wo||{});var Fs=(()=>{let t=class t{constructor(e){this.jokeStoreService=e,this.hourGlass=Wo}};t.\u0275fac=function(i){return new(i||t)(_(ve))},t.\u0275cmp=N({type:t,selectors:[["cnjg-home"]],standalone:!0,features:[P],decls:15,vars:3,consts:[[1,"sticky-toolbar"],[1,"header"],[1,"spacer"],["mat-icon-button","","title","Jokes","routerLink","/jokes"],["mat-icon-button","","title","Favourites","routerLink","/favourites"],["mat-icon-button","","title","Toggle Interval",3,"click"]],template:function(i,r){i&1&&(Q(0,"mat-toolbar",0)(1,"span",1),pt(2,"Chuck Norris Jokes"),rt(),B(3,"span",2),Q(4,"button",3)(5,"mat-icon"),pt(6,"home"),rt()(),Q(7,"button",4)(8,"mat-icon"),pt(9,"favorite"),rt()(),Q(10,"button",5),$t("click",function(){return r.jokeStoreService.toggleInterval()}),Q(11,"mat-icon"),pt(12),ne(13,"async"),rt()()(),B(14,"router-outlet")),i&2&&(Ut(12),vn(ie(13,1,r.jokeStoreService.isNewJokeIntervalRunning$)?r.hourGlass.Full:r.hourGlass.Empty))},dependencies:[di,ci,ri,oi,Ns,Os,ft,oe,Ka,Eo,$a],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;height:100%}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}.header[_ngcontent-%COMP%]{padding-left:5px}mat-toolbar[_ngcontent-%COMP%]{margin-bottom:15px;padding:0 0 0 5px}.sticky-toolbar[_ngcontent-%COMP%]{position:sticky;top:0;z-index:1000;height:50px}"],changeDetection:0});let n=t;return n})();var Ps=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=N({type:t,selectors:[["cnjg-root"]],standalone:!0,features:[P],decls:1,vars:0,template:function(i,r){i&1&&B(0,"cnjg-home")},dependencies:[Wr,Fs],encapsulation:2});let n=t;return n})();Qr(Ps,ks).catch(n=>console.error(n));