import{d as rn}from"./chunk-PERCUZXE.js";import{$b as Vr,$c as tn,Aa as Ae,Ba as Pr,Bc as Qr,C as Y,Ca as Me,Cc as Kr,Dc as Ee,Ea as Nr,Ec as Ue,Fa as it,Fc as Zr,G as et,Ga as Qt,Gc as Kt,H as rt,Hc as Zt,Ia as De,J as Se,K as nt,Kc as Yt,L as wr,Nb as qr,P as Ht,Pc as Yr,Q as G,R as be,S as Sr,T as br,Ub as Br,Uc as Xr,W as Ir,Wc as Jr,X as N,Y as Ar,Zc as St,_ as S,a as vr,aa as I,ab as jr,ad as en,b as mr,bc as Hr,bd as bt,ca as w,cc as Wr,d as ye,da as Mr,e as Re,ea as Dr,eb as j,f as H,fa as T,fb as $r,g as U,ga as Ie,ha as _,ia as f,ja as Tr,k as W,ka as Or,kb as Te,l as A,m as d,ma as Er,n as yt,na as Ur,o as Cr,oa as Wt,ob as Lr,p as yr,pb as kr,q as y,qa as xr,qc as Gr,r as Vt,s as D,sa as wt,se as xe,t as Rt,ta as k,tb as zr,u as Rr,ub as Fr,v as we,va as Gt,vb as Oe,zb as _r}from"./chunk-6V7GSX3W.js";import{a as h,b as M}from"./chunk-EQDQRRRY.js";var v="primary",kt=Symbol("RouteTitle"),Le=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let i=this.params[t];return Array.isArray(i)?i[0]:i}return null}getAll(t){if(this.has(t)){let i=this.params[t];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function lt(e){return new Le(e)}function Zn(e,t,i){let r=i.path.split("/");if(r.length>e.length||i.pathMatch==="full"&&(t.hasChildren()||r.length<e.length))return null;let n={};for(let s=0;s<r.length;s++){let o=r[s],a=e[s];if(o[0]===":")n[o.substring(1)]=a;else if(o!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:n}}function Yn(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;++i)if(!z(e[i],t[i]))return!1;return!0}function z(e,t){let i=e?ke(e):void 0,r=t?ke(t):void 0;if(!i||!r||i.length!=r.length)return!1;let n;for(let s=0;s<i.length;s++)if(n=i[s],!gn(e[n],t[n]))return!1;return!0}function ke(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function gn(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;let i=[...e].sort(),r=[...t].sort();return i.every((n,s)=>r[s]===n)}else return e===t}function vn(e){return e.length>0?e[e.length-1]:null}function Z(e){return Cr(e)?e:Kr(e)?A(Promise.resolve(e)):d(e)}var Xn={exact:Cn,subset:yn},mn={exact:Jn,subset:ti,ignored:()=>!0};function nn(e,t,i){return Xn[i.paths](e.root,t.root,i.matrixParams)&&mn[i.queryParams](e.queryParams,t.queryParams)&&!(i.fragment==="exact"&&e.fragment!==t.fragment)}function Jn(e,t){return z(e,t)}function Cn(e,t,i){if(!J(e.segments,t.segments)||!te(e.segments,t.segments,i)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!Cn(e.children[r],t.children[r],i))return!1;return!0}function ti(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(i=>gn(e[i],t[i]))}function yn(e,t,i){return Rn(e,t,t.segments,i)}function Rn(e,t,i,r){if(e.segments.length>i.length){let n=e.segments.slice(0,i.length);return!(!J(n,i)||t.hasChildren()||!te(n,i,r))}else if(e.segments.length===i.length){if(!J(e.segments,i)||!te(e.segments,i,r))return!1;for(let n in t.children)if(!e.children[n]||!yn(e.children[n],t.children[n],r))return!1;return!0}else{let n=i.slice(0,e.segments.length),s=i.slice(e.segments.length);return!J(e.segments,n)||!te(e.segments,n,r)||!e.children[v]?!1:Rn(e.children[v],t,s,r)}}function te(e,t,i){return t.every((r,n)=>mn[i](e[n].parameters,r.parameters))}var B=class{constructor(t=new m([],{}),i={},r=null){this.root=t,this.queryParams=i,this.fragment=r}get queryParamMap(){return this._queryParamMap??=lt(this.queryParams),this._queryParamMap}toString(){return ni.serialize(this)}},m=class{constructor(t,i){this.segments=t,this.children=i,this.parent=null,Object.values(i).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ee(this)}},X=class{constructor(t,i){this.path=t,this.parameters=i}get parameterMap(){return this._parameterMap??=lt(this.parameters),this._parameterMap}toString(){return Sn(this)}};function ei(e,t){return J(e,t)&&e.every((i,r)=>z(i.parameters,t[r].parameters))}function J(e,t){return e.length!==t.length?!1:e.every((i,r)=>i.path===t[r].path)}function ri(e,t){let i=[];return Object.entries(e.children).forEach(([r,n])=>{r===v&&(i=i.concat(t(n,r)))}),Object.entries(e.children).forEach(([r,n])=>{r!==v&&(i=i.concat(t(n,r)))}),i}var gt=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=w({token:t,factory:()=>new ht,providedIn:"root"});let e=t;return e})(),ht=class{parse(t){let i=new Fe(t);return new B(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(t){let i=`/${It(t.root,!0)}`,r=oi(t.queryParams),n=typeof t.fragment=="string"?`#${ii(t.fragment)}`:"";return`${i}${r}${n}`}},ni=new ht;function ee(e){return e.segments.map(t=>Sn(t)).join("/")}function It(e,t){if(!e.hasChildren())return ee(e);if(t){let i=e.children[v]?It(e.children[v],!1):"",r=[];return Object.entries(e.children).forEach(([n,s])=>{n!==v&&r.push(`${n}:${It(s,!1)}`)}),r.length>0?`${i}(${r.join("//")})`:i}else{let i=ri(e,(r,n)=>n===v?[It(e.children[v],!1)]:[`${n}:${It(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[v]!=null?`${ee(e)}/${i[0]}`:`${ee(e)}/(${i.join("//")})`}}function wn(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xt(e){return wn(e).replace(/%3B/gi,";")}function ii(e){return encodeURI(e)}function ze(e){return wn(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function re(e){return decodeURIComponent(e)}function sn(e){return re(e.replace(/\+/g,"%20"))}function Sn(e){return`${ze(e.path)}${si(e.parameters)}`}function si(e){return Object.entries(e).map(([t,i])=>`;${ze(t)}=${ze(i)}`).join("")}function oi(e){let t=Object.entries(e).map(([i,r])=>Array.isArray(r)?r.map(n=>`${Xt(i)}=${Xt(n)}`).join("&"):`${Xt(i)}=${Xt(r)}`).filter(i=>i);return t.length?`?${t.join("&")}`:""}var ai=/^[^\/()?;#]+/;function Pe(e){let t=e.match(ai);return t?t[0]:""}var ui=/^[^\/()?;=#]+/;function ci(e){let t=e.match(ui);return t?t[0]:""}var li=/^[^=?&#]+/;function hi(e){let t=e.match(li);return t?t[0]:""}var di=/^[^&#]+/;function fi(e){let t=e.match(di);return t?t[0]:""}var Fe=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m([],{}):new m([],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 i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(i).length>0)&&(r[v]=new m(t,i)),r}parseSegment(){let t=Pe(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new I(4009,!1);return this.capture(t),new X(re(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let i=ci(this.remaining);if(!i)return;this.capture(i);let r="";if(this.consumeOptional("=")){let n=Pe(this.remaining);n&&(r=n,this.capture(r))}t[re(i)]=re(r)}parseQueryParam(t){let i=hi(this.remaining);if(!i)return;this.capture(i);let r="";if(this.consumeOptional("=")){let o=fi(this.remaining);o&&(r=o,this.capture(r))}let n=sn(i),s=sn(r);if(t.hasOwnProperty(n)){let o=t[n];Array.isArray(o)||(o=[o],t[n]=o),o.push(s)}else t[n]=s}parseParens(t){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Pe(this.remaining),n=this.remaining[r.length];if(n!=="/"&&n!==")"&&n!==";")throw new I(4010,!1);let s;r.indexOf(":")>-1?(s=r.slice(0,r.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=v);let o=this.parseChildren();i[s]=Object.keys(o).length===1?o[v]:new m([],o),this.consumeOptional("//")}return i}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 I(4011,!1)}};function bn(e){return e.segments.length>0?new m([],{[v]:e}):e}function In(e){let t={};for(let[r,n]of Object.entries(e.children)){let s=In(n);if(r===v&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))t[o]=a;else(s.segments.length>0||s.hasChildren())&&(t[r]=s)}let i=new m(e.segments,t);return pi(i)}function pi(e){if(e.numberOfChildren===1&&e.children[v]){let t=e.children[v];return new m(e.segments.concat(t.segments),t.children)}return e}function tt(e){return e instanceof B}function gi(e,t,i=null,r=null){let n=An(e);return Mn(n,t,i,r)}function An(e){let t;function i(s){let o={};for(let c of s.children){let u=i(c);o[c.outlet]=u}let a=new m(s.url,o);return s===e&&(t=a),a}let r=i(e.root),n=bn(r);return t??n}function Mn(e,t,i,r){let n=e;for(;n.parent;)n=n.parent;if(t.length===0)return Ne(n,n,n,i,r);let s=vi(t);if(s.toRoot())return Ne(n,n,new m([],{}),i,r);let o=mi(s,n,e),a=o.processChildren?Dt(o.segmentGroup,o.index,s.commands):Tn(o.segmentGroup,o.index,s.commands);return Ne(n,o.segmentGroup,a,i,r)}function ne(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Et(e){return typeof e=="object"&&e!=null&&e.outlets}function Ne(e,t,i,r,n){let s={};r&&Object.entries(r).forEach(([c,u])=>{s[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let o;e===t?o=i:o=Dn(e,t,i);let a=bn(In(o));return new B(a,s,n)}function Dn(e,t,i){let r={};return Object.entries(e.children).forEach(([n,s])=>{s===t?r[n]=i:r[n]=Dn(s,t,i)}),new m(e.segments,r)}var ie=class{constructor(t,i,r){if(this.isAbsolute=t,this.numberOfDoubleDots=i,this.commands=r,t&&r.length>0&&ne(r[0]))throw new I(4003,!1);let n=r.find(Et);if(n&&n!==vn(r))throw new I(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function vi(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new ie(!0,0,e);let t=0,i=!1,r=e.reduce((n,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...n,{outlets:a}]}if(s.segmentPath)return[...n,s.segmentPath]}return typeof s!="string"?[...n,s]:o===0?(s.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?i=!0:a===".."?t++:a!=""&&n.push(a))}),n):[...n,s]},[]);return new ie(i,t,r)}var at=class{constructor(t,i,r){this.segmentGroup=t,this.processChildren=i,this.index=r}};function mi(e,t,i){if(e.isAbsolute)return new at(t,!0,0);if(!i)return new at(t,!1,NaN);if(i.parent===null)return new at(i,!0,0);let r=ne(e.commands[0])?0:1,n=i.segments.length-1+r;return Ci(i,n,e.numberOfDoubleDots)}function Ci(e,t,i){let r=e,n=t,s=i;for(;s>n;){if(s-=n,r=r.parent,!r)throw new I(4005,!1);n=r.segments.length}return new at(r,!1,n-s)}function yi(e){return Et(e[0])?e[0].outlets:{[v]:e}}function Tn(e,t,i){if(e??=new m([],{}),e.segments.length===0&&e.hasChildren())return Dt(e,t,i);let r=Ri(e,t,i),n=i.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let s=new m(e.segments.slice(0,r.pathIndex),{});return s.children[v]=new m(e.segments.slice(r.pathIndex),e.children),Dt(s,0,n)}else return r.match&&n.length===0?new m(e.segments,{}):r.match&&!e.hasChildren()?_e(e,t,i):r.match?Dt(e,0,n):_e(e,t,i)}function Dt(e,t,i){if(i.length===0)return new m(e.segments,{});{let r=yi(i),n={};if(Object.keys(r).some(s=>s!==v)&&e.children[v]&&e.numberOfChildren===1&&e.children[v].segments.length===0){let s=Dt(e.children[v],t,i);return new m(e.segments,s.children)}return Object.entries(r).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(n[s]=Tn(e.children[s],t,o))}),Object.entries(e.children).forEach(([s,o])=>{r[s]===void 0&&(n[s]=o)}),new m(e.segments,n)}}function Ri(e,t,i){let r=0,n=t,s={match:!1,pathIndex:0,commandIndex:0};for(;n<e.segments.length;){if(r>=i.length)return s;let o=e.segments[n],a=i[r];if(Et(a))break;let c=`${a}`,u=r<i.length-1?i[r+1]:null;if(n>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!an(c,u,o))return s;r+=2}else{if(!an(c,{},o))return s;r++}n++}return{match:!0,pathIndex:n,commandIndex:r}}function _e(e,t,i){let r=e.segments.slice(0,t),n=0;for(;n<i.length;){let s=i[n];if(Et(s)){let c=wi(s.outlets);return new m(r,c)}if(n===0&&ne(i[0])){let c=e.segments[t];r.push(new X(c.path,on(i[0]))),n++;continue}let o=Et(s)?s.outlets[v]:`${s}`,a=n<i.length-1?i[n+1]:null;o&&a&&ne(a)?(r.push(new X(o,on(a))),n+=2):(r.push(new X(o,{})),n++)}return new m(r,{})}function wi(e){let t={};return Object.entries(e).forEach(([i,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(t[i]=_e(new m([],{}),0,r))}),t}function on(e){let t={};return Object.entries(e).forEach(([i,r])=>t[i]=`${r}`),t}function an(e,t,i){return e==i.path&&z(t,i.parameters)}var Tt="imperative",R=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(R||{}),x=class{constructor(t,i){this.id=t,this.url=i}},dt=class extends x{constructor(t,i,r="imperative",n=null){super(t,i),this.type=R.NavigationStart,this.navigationTrigger=r,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},L=class extends x{constructor(t,i,r){super(t,i),this.urlAfterRedirects=r,this.type=R.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},E=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(E||{}),se=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(se||{}),q=class extends x{constructor(t,i,r,n){super(t,i),this.reason=r,this.code=n,this.type=R.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Q=class extends x{constructor(t,i,r,n){super(t,i),this.reason=r,this.code=n,this.type=R.NavigationSkipped}},Ut=class extends x{constructor(t,i,r,n){super(t,i),this.error=r,this.target=n,this.type=R.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},oe=class extends x{constructor(t,i,r,n){super(t,i),this.urlAfterRedirects=r,this.state=n,this.type=R.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},qe=class extends x{constructor(t,i,r,n){super(t,i),this.urlAfterRedirects=r,this.state=n,this.type=R.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Be=class extends x{constructor(t,i,r,n,s){super(t,i),this.urlAfterRedirects=r,this.state=n,this.shouldActivate=s,this.type=R.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Ve=class extends x{constructor(t,i,r,n){super(t,i),this.urlAfterRedirects=r,this.state=n,this.type=R.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},He=class extends x{constructor(t,i,r,n){super(t,i),this.urlAfterRedirects=r,this.state=n,this.type=R.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},We=class{constructor(t){this.route=t,this.type=R.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ge=class{constructor(t){this.route=t,this.type=R.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Qe=class{constructor(t){this.snapshot=t,this.type=R.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ke=class{constructor(t){this.snapshot=t,this.type=R.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ze=class{constructor(t){this.snapshot=t,this.type=R.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ye=class{constructor(t){this.snapshot=t,this.type=R.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ae=class{constructor(t,i,r){this.routerEvent=t,this.position=i,this.anchor=r,this.type=R.Scroll}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},xt=class{},ft=class{constructor(t,i){this.url=t,this.navigationBehaviorOptions=i}};function Si(e,t){return e.providers&&!e._injector&&(e._injector=Oe(e.providers,t,`Route: ${e.path}`)),e._injector??t}function $(e){return e.outlet||v}function bi(e,t){let i=e.filter(r=>$(r)===t);return i.push(...e.filter(r=>$(r)!==t)),i}function zt(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let i=t.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}var Xe=class{get injector(){return zt(this.route?.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new Ft(this.rootInjector),this.attachRef=null}},Ft=(()=>{let t=class t{constructor(r){this.rootInjector=r,this.contexts=new Map}onChildOutletCreated(r,n){let s=this.getOrCreateContext(r);s.outlet=n,this.contexts.set(r,s)}onChildOutletDestroyed(r){let n=this.getContext(r);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let r=this.contexts;return this.contexts=new Map,r}onOutletReAttached(r){this.contexts=r}getOrCreateContext(r){let n=this.getContext(r);return n||(n=new Xe(this.rootInjector),this.contexts.set(r,n)),n}getContext(r){return this.contexts.get(r)||null}};t.\u0275fac=function(n){return new(n||t)(_(wt))},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),ue=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let i=this.pathFromRoot(t);return i.length>1?i[i.length-2]:null}children(t){let i=Je(t,this._root);return i?i.children.map(r=>r.value):[]}firstChild(t){let i=Je(t,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(t){let i=tr(t,this._root);return i.length<2?[]:i[i.length-2].children.map(n=>n.value).filter(n=>n!==t)}pathFromRoot(t){return tr(t,this._root).map(i=>i.value)}};function Je(e,t){if(e===t.value)return t;for(let i of t.children){let r=Je(e,i);if(r)return r}return null}function tr(e,t){if(e===t.value)return[t];for(let i of t.children){let r=tr(e,i);if(r.length)return r.unshift(t),r}return[]}var O=class{constructor(t,i){this.value=t,this.children=i}toString(){return`TreeNode(${this.value})`}};function ot(e){let t={};return e&&e.children.forEach(i=>t[i.value.outlet]=i),t}var ce=class extends ue{constructor(t,i){super(t),this.snapshot=i,cr(this,t)}toString(){return this.snapshot.toString()}};function On(e){let t=Ii(e),i=new U([new X("",{})]),r=new U({}),n=new U({}),s=new U({}),o=new U(""),a=new K(i,r,s,o,n,v,e,t.root);return a.snapshot=t.root,new ce(new O(a,[]),t)}function Ii(e){let t={},i={},r={},n="",s=new ut([],t,r,n,i,v,e,null,{});return new he("",new O(s,[]))}var K=class{constructor(t,i,r,n,s,o,a,c){this.urlSubject=t,this.paramsSubject=i,this.queryParamsSubject=r,this.fragmentSubject=n,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(y(u=>u[kt]))??d(void 0),this.url=t,this.params=i,this.queryParams=r,this.fragment=n,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(y(t=>lt(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(y(t=>lt(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function le(e,t,i="emptyOnly"){let r,{routeConfig:n}=e;return t!==null&&(i==="always"||n?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:h(h({},t.params),e.params),data:h(h({},t.data),e.data),resolve:h(h(h(h({},e.data),t.data),n?.data),e._resolvedData)}:r={params:h({},e.params),data:h({},e.data),resolve:h(h({},e.data),e._resolvedData??{})},n&&Un(n)&&(r.resolve[kt]=n.title),r}var ut=class{get title(){return this.data?.[kt]}constructor(t,i,r,n,s,o,a,c,u){this.url=t,this.params=i,this.queryParams=r,this.fragment=n,this.data=s,this.outlet=o,this.component=a,this.routeConfig=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=lt(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=lt(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${i}')`}},he=class extends ue{constructor(t,i){super(i),this.url=t,cr(this,i)}toString(){return En(this._root)}};function cr(e,t){t.value._routerState=e,t.children.forEach(i=>cr(e,i))}function En(e){let t=e.children.length>0?` { ${e.children.map(En).join(", ")} } `:"";return`${e.value}${t}`}function je(e){if(e.snapshot){let t=e.snapshot,i=e._futureSnapshot;e.snapshot=i,z(t.queryParams,i.queryParams)||e.queryParamsSubject.next(i.queryParams),t.fragment!==i.fragment&&e.fragmentSubject.next(i.fragment),z(t.params,i.params)||e.paramsSubject.next(i.params),Yn(t.url,i.url)||e.urlSubject.next(i.url),z(t.data,i.data)||e.dataSubject.next(i.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function er(e,t){let i=z(e.params,t.params)&&ei(e.url,t.url),r=!e.parent!=!t.parent;return i&&!r&&(!e.parent||er(e.parent,t.parent))}function Un(e){return typeof e.title=="string"||e.title===null}var Ai=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=v,this.activateEvents=new it,this.deactivateEvents=new it,this.attachEvents=new it,this.detachEvents=new it,this.parentContexts=f(Ft),this.location=f(kr),this.changeDetector=f(Zt),this.inputBinder=f(ge,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(r){if(r.name){let{firstChange:n,previousValue:s}=r.name;if(n)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(r){return this.parentContexts.getContext(r)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let r=this.parentContexts.getContext(this.name);r?.route&&(r.attachRef?this.attach(r.attachRef,r.route):this.activateWith(r.route,r.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new I(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new I(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new I(4012,!1);this.location.detach();let r=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(r.instance),r}attach(r,n){this.activated=r,this._activatedRoute=n,this.location.insert(r.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(r.instance)}deactivate(){if(this.activated){let r=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(r)}}activateWith(r,n){if(this.isActivated)throw new I(4013,!1);this._activatedRoute=r;let s=this.location,a=r.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new rr(r,c,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:u,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=Wt({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Gt]});let e=t;return e})(),rr=class e{__ngOutletInjector(t){return new e(this.route,this.childContexts,t)}constructor(t,i,r){this.route=t,this.childContexts=i,this.parent=r}get(t,i){return t===K?this.route:t===Ft?this.childContexts:this.parent.get(t,i)}},ge=new T(""),un=(()=>{let t=class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(r){this.unsubscribeFromRouteData(r),this.subscribeToRouteData(r)}unsubscribeFromRouteData(r){this.outletDataSubscriptions.get(r)?.unsubscribe(),this.outletDataSubscriptions.delete(r)}subscribeToRouteData(r){let{activatedRoute:n}=r,s=Vt([n.queryParams,n.params,n.data]).pipe(N(([o,a,c],u)=>(c=h(h(h({},o),a),c),u===0?d(c):Promise.resolve(c)))).subscribe(o=>{if(!r.isActivated||!r.activatedComponentRef||r.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(r);return}let a=Yr(n.component);if(!a){this.unsubscribeFromRouteData(r);return}for(let{templateName:c}of a.inputs)r.activatedComponentRef.setInput(c,o[c])});this.outletDataSubscriptions.set(r,s)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac});let e=t;return e})();function Mi(e,t,i){let r=Pt(e,t._root,i?i._root:void 0);return new ce(r,t)}function Pt(e,t,i){if(i&&e.shouldReuseRoute(t.value,i.value.snapshot)){let r=i.value;r._futureSnapshot=t.value;let n=Di(e,t,i);return new O(r,n)}else{if(e.shouldAttach(t.value)){let s=e.retrieve(t.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=t.value,o.children=t.children.map(a=>Pt(e,a)),o}}let r=Ti(t.value),n=t.children.map(s=>Pt(e,s));return new O(r,n)}}function Di(e,t,i){return t.children.map(r=>{for(let n of i.children)if(e.shouldReuseRoute(r.value,n.value.snapshot))return Pt(e,r,n);return Pt(e,r)})}function Ti(e){return new K(new U(e.url),new U(e.params),new U(e.queryParams),new U(e.fragment),new U(e.data),e.outlet,e.component,e)}var Nt=class{constructor(t,i){this.redirectTo=t,this.navigationBehaviorOptions=i}},xn="ngNavigationCancelingError";function de(e,t){let{redirectTo:i,navigationBehaviorOptions:r}=tt(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,n=Pn(!1,E.Redirect);return n.url=i,n.navigationBehaviorOptions=r,n}function Pn(e,t){let i=new Error(`NavigationCancelingError: ${e||""}`);return i[xn]=!0,i.cancellationCode=t,i}function Oi(e){return Nn(e)&&tt(e.url)}function Nn(e){return!!e&&e[xn]}var Ei=(e,t,i,r)=>y(n=>(new nr(t,n.targetRouterState,n.currentRouterState,i,r).activate(e),n)),nr=class{constructor(t,i,r,n,s){this.routeReuseStrategy=t,this.futureState=i,this.currState=r,this.forwardEvent=n,this.inputBindingEnabled=s}activate(t){let i=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,r,t),je(this.futureState.root),this.activateChildRoutes(i,r,t)}deactivateChildRoutes(t,i,r){let n=ot(i);t.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,n[o],r),delete n[o]}),Object.values(n).forEach(s=>{this.deactivateRouteAndItsChildren(s,r)})}deactivateRoutes(t,i,r){let n=t.value,s=i?i.value:null;if(n===s)if(n.component){let o=r.getContext(n.outlet);o&&this.deactivateChildRoutes(t,i,o.children)}else this.deactivateChildRoutes(t,i,r);else s&&this.deactivateRouteAndItsChildren(i,r)}deactivateRouteAndItsChildren(t,i){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,i):this.deactivateRouteAndOutlet(t,i)}detachAndStoreRouteSubtree(t,i){let r=i.getContext(t.value.outlet),n=r&&t.value.component?r.children:i,s=ot(t);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,n);if(r&&r.outlet){let o=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:o,route:t,contexts:a})}}deactivateRouteAndOutlet(t,i){let r=i.getContext(t.value.outlet),n=r&&t.value.component?r.children:i,s=ot(t);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,n);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,i,r){let n=ot(i);t.children.forEach(s=>{this.activateRoutes(s,n[s.value.outlet],r),this.forwardEvent(new Ye(s.value.snapshot))}),t.children.length&&this.forwardEvent(new Ke(t.value.snapshot))}activateRoutes(t,i,r){let n=t.value,s=i?i.value:null;if(je(n),n===s)if(n.component){let o=r.getOrCreateContext(n.outlet);this.activateChildRoutes(t,i,o.children)}else this.activateChildRoutes(t,i,r);else if(n.component){let o=r.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){let a=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),je(a.route.value),this.activateChildRoutes(t,null,o.children)}else o.attachRef=null,o.route=n,o.outlet&&o.outlet.activateWith(n,o.injector),this.activateChildRoutes(t,null,o.children)}else this.activateChildRoutes(t,null,r)}},fe=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},ct=class{constructor(t,i){this.component=t,this.route=i}};function Ui(e,t,i){let r=e._root,n=t?t._root:null;return At(r,n,i,[r.value])}function xi(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function vt(e,t){let i=Symbol(),r=t.get(e,i);return r===i?typeof e=="function"&&!Dr(e)?e:t.get(e):r}function At(e,t,i,r,n={canDeactivateChecks:[],canActivateChecks:[]}){let s=ot(t);return e.children.forEach(o=>{Pi(o,s[o.value.outlet],i,r.concat([o.value]),n),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>Ot(a,i.getContext(o),n)),n}function Pi(e,t,i,r,n={canDeactivateChecks:[],canActivateChecks:[]}){let s=e.value,o=t?t.value:null,a=i?i.getContext(e.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let c=Ni(o,s,s.routeConfig.runGuardsAndResolvers);c?n.canActivateChecks.push(new fe(r)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?At(e,t,a?a.children:null,r,n):At(e,t,i,r,n),c&&a&&a.outlet&&a.outlet.isActivated&&n.canDeactivateChecks.push(new ct(a.outlet.component,o))}else o&&Ot(t,a,n),n.canActivateChecks.push(new fe(r)),s.component?At(e,null,a?a.children:null,r,n):At(e,null,i,r,n);return n}function Ni(e,t,i){if(typeof i=="function")return i(e,t);switch(i){case"pathParamsChange":return!J(e.url,t.url);case"pathParamsOrQueryParamsChange":return!J(e.url,t.url)||!z(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!er(e,t)||!z(e.queryParams,t.queryParams);case"paramsChange":default:return!er(e,t)}}function Ot(e,t,i){let r=ot(e),n=e.value;Object.entries(r).forEach(([s,o])=>{n.component?t?Ot(o,t.children.getContext(s),i):Ot(o,null,i):Ot(o,t,i)}),n.component?t&&t.outlet&&t.outlet.isActivated?i.canDeactivateChecks.push(new ct(t.outlet.component,n)):i.canDeactivateChecks.push(new ct(null,n)):i.canDeactivateChecks.push(new ct(null,n))}function _t(e){return typeof e=="function"}function ji(e){return typeof e=="boolean"}function $i(e){return e&&_t(e.canLoad)}function Li(e){return e&&_t(e.canActivate)}function ki(e){return e&&_t(e.canActivateChild)}function zi(e){return e&&_t(e.canDeactivate)}function Fi(e){return e&&_t(e.canMatch)}function jn(e){return e instanceof yr||e?.name==="EmptyError"}var Jt=Symbol("INITIAL_VALUE");function pt(){return N(e=>Vt(e.map(t=>t.pipe(nt(1),Ir(Jt)))).pipe(y(t=>{for(let i of t)if(i!==!0){if(i===Jt)return Jt;if(i===!1||_i(i))return i}return!0}),Y(t=>t!==Jt),nt(1)))}function _i(e){return tt(e)||e instanceof Nt}function qi(e,t){return D(i=>{let{targetSnapshot:r,currentSnapshot:n,guards:{canActivateChecks:s,canDeactivateChecks:o}}=i;return o.length===0&&s.length===0?d(M(h({},i),{guardsResult:!0})):Bi(o,r,n,e).pipe(D(a=>a&&ji(a)?Vi(r,s,e,t):d(a)),y(a=>M(h({},i),{guardsResult:a})))})}function Bi(e,t,i,r){return A(e).pipe(D(n=>Ki(n.component,n.route,i,t,r)),G(n=>n!==!0,!0))}function Vi(e,t,i,r){return A(t).pipe(rt(n=>Rr(Wi(n.route.parent,r),Hi(n.route,r),Qi(e,n.path,i),Gi(e,n.route,i))),G(n=>n!==!0,!0))}function Hi(e,t){return e!==null&&t&&t(new Ze(e)),d(!0)}function Wi(e,t){return e!==null&&t&&t(new Qe(e)),d(!0)}function Gi(e,t,i){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return d(!0);let n=r.map(s=>we(()=>{let o=zt(t)??i,a=vt(s,o),c=Li(a)?a.canActivate(t,e):k(o,()=>a(t,e));return Z(c).pipe(G())}));return d(n).pipe(pt())}function Qi(e,t,i){let r=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(o=>xi(o)).filter(o=>o!==null).map(o=>we(()=>{let a=o.guards.map(c=>{let u=zt(o.node)??i,l=vt(c,u),g=ki(l)?l.canActivateChild(r,e):k(u,()=>l(r,e));return Z(g).pipe(G())});return d(a).pipe(pt())}));return d(s).pipe(pt())}function Ki(e,t,i,r,n){let s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!s||s.length===0)return d(!0);let o=s.map(a=>{let c=zt(t)??n,u=vt(a,c),l=zi(u)?u.canDeactivate(e,t,i,r):k(c,()=>u(e,t,i,r));return Z(l).pipe(G())});return d(o).pipe(pt())}function Zi(e,t,i,r){let n=t.canLoad;if(n===void 0||n.length===0)return d(!0);let s=n.map(o=>{let a=vt(o,e),c=$i(a)?a.canLoad(t,i):k(e,()=>a(t,i));return Z(c)});return d(s).pipe(pt(),$n(r))}function $n(e){return mr(S(t=>{if(typeof t!="boolean")throw de(e,t)}),y(t=>t===!0))}function Yi(e,t,i,r){let n=t.canMatch;if(!n||n.length===0)return d(!0);let s=n.map(o=>{let a=vt(o,e),c=Fi(a)?a.canMatch(t,i):k(e,()=>a(t,i));return Z(c)});return d(s).pipe(pt(),$n(r))}var jt=class{constructor(t){this.segmentGroup=t||null}},$t=class extends Error{constructor(t){super(),this.urlTree=t}};function st(e){return yt(new jt(e))}function Xi(e){return yt(new I(4e3,!1))}function Ji(e){return yt(Pn(!1,E.GuardRejected))}var ir=class{constructor(t,i){this.urlSerializer=t,this.urlTree=i}lineralizeSegments(t,i){let r=[],n=i.root;for(;;){if(r=r.concat(n.segments),n.numberOfChildren===0)return d(r);if(n.numberOfChildren>1||!n.children[v])return Xi(`${t.redirectTo}`);n=n.children[v]}}applyRedirectCommands(t,i,r,n,s){if(typeof i!="string"){let a=i,{queryParams:c,fragment:u,routeConfig:l,url:g,outlet:p,params:C,data:b,title:V}=n,P=k(s,()=>a({params:C,data:b,queryParams:c,fragment:u,routeConfig:l,url:g,outlet:p,title:V}));if(P instanceof B)throw new $t(P);i=P}let o=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),t,r);if(i[0]==="/")throw new $t(o);return o}applyRedirectCreateUrlTree(t,i,r,n){let s=this.createSegmentGroup(t,i.root,r,n);return new B(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(t,i){let r={};return Object.entries(t).forEach(([n,s])=>{if(typeof s=="string"&&s[0]===":"){let a=s.substring(1);r[n]=i[a]}else r[n]=s}),r}createSegmentGroup(t,i,r,n){let s=this.createSegments(t,i.segments,r,n),o={};return Object.entries(i.children).forEach(([a,c])=>{o[a]=this.createSegmentGroup(t,c,r,n)}),new m(s,o)}createSegments(t,i,r,n){return i.map(s=>s.path[0]===":"?this.findPosParam(t,s,n):this.findOrReturn(s,r))}findPosParam(t,i,r){let n=r[i.path.substring(1)];if(!n)throw new I(4001,!1);return n}findOrReturn(t,i){let r=0;for(let n of i){if(n.path===t.path)return i.splice(r),n;r++}return t}},sr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ts(e,t,i,r,n){let s=lr(e,t,i);return s.matched?(r=Si(t,r),Yi(r,t,i,n).pipe(y(o=>o===!0?s:h({},sr)))):d(s)}function lr(e,t,i){if(t.path==="**")return es(i);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||i.length>0)?h({},sr):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let n=(t.matcher||Zn)(i,e,t);if(!n)return h({},sr);let s={};Object.entries(n.posParams??{}).forEach(([a,c])=>{s[a]=c.path});let o=n.consumed.length>0?h(h({},s),n.consumed[n.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:n.consumed,remainingSegments:i.slice(n.consumed.length),parameters:o,positionalParamSegments:n.posParams??{}}}function es(e){return{matched:!0,parameters:e.length>0?vn(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function cn(e,t,i,r){return i.length>0&&is(e,i,r)?{segmentGroup:new m(t,ns(r,new m(i,e.children))),slicedSegments:[]}:i.length===0&&ss(e,i,r)?{segmentGroup:new m(e.segments,rs(e,i,r,e.children)),slicedSegments:i}:{segmentGroup:new m(e.segments,e.children),slicedSegments:i}}function rs(e,t,i,r){let n={};for(let s of i)if(ve(e,t,s)&&!r[$(s)]){let o=new m([],{});n[$(s)]=o}return h(h({},r),n)}function ns(e,t){let i={};i[v]=t;for(let r of e)if(r.path===""&&$(r)!==v){let n=new m([],{});i[$(r)]=n}return i}function is(e,t,i){return i.some(r=>ve(e,t,r)&&$(r)!==v)}function ss(e,t,i){return i.some(r=>ve(e,t,r))}function ve(e,t,i){return(e.hasChildren()||t.length>0)&&i.pathMatch==="full"?!1:i.path===""}function os(e,t,i,r){return $(e)!==r&&(r===v||!ve(t,i,e))?!1:lr(t,e,i).matched}function as(e,t,i){return t.length===0&&!e.children[i]}var or=class{};function us(e,t,i,r,n,s,o="emptyOnly"){return new ar(e,t,i,r,n,o,s).recognize()}var cs=31,ar=class{constructor(t,i,r,n,s,o,a){this.injector=t,this.configLoader=i,this.rootComponentType=r,this.config=n,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new ir(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new I(4002,`'${t.segmentGroup}'`)}recognize(){let t=cn(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(y(({children:i,rootSnapshot:r})=>{let n=new O(r,i),s=new he("",n),o=gi(r,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(t){let i=new ut([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),v,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,v,i).pipe(y(r=>({children:r,rootSnapshot:i})),et(r=>{if(r instanceof $t)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof jt?this.noMatchError(r):r}))}processSegmentGroup(t,i,r,n,s){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,i,r,s):this.processSegment(t,i,r,r.segments,n,!0,s).pipe(y(o=>o instanceof O?[o]:[]))}processChildren(t,i,r,n){let s=[];for(let o of Object.keys(r.children))o==="primary"?s.unshift(o):s.push(o);return A(s).pipe(rt(o=>{let a=r.children[o],c=bi(i,o);return this.processSegmentGroup(t,c,a,o,n)}),br((o,a)=>(o.push(...a),o)),Se(null),Sr(),D(o=>{if(o===null)return st(r);let a=Ln(o);return ls(a),d(a)}))}processSegment(t,i,r,n,s,o,a){return A(i).pipe(rt(c=>this.processSegmentAgainstRoute(c._injector??t,i,c,r,n,s,o,a).pipe(et(u=>{if(u instanceof jt)return d(null);throw u}))),G(c=>!!c),et(c=>{if(jn(c))return as(r,n,s)?d(new or):st(r);throw c}))}processSegmentAgainstRoute(t,i,r,n,s,o,a,c){return os(r,n,s,o)?r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,n,r,s,o,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,n,i,r,s,o,c):st(n):st(n)}expandSegmentAgainstRouteUsingRedirect(t,i,r,n,s,o,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:g,remainingSegments:p}=lr(i,n,s);if(!c)return st(i);typeof n.redirectTo=="string"&&n.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>cs&&(this.allowRedirects=!1));let C=new ut(s,u,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,ln(n),$(n),n.component??n._loadedComponent??null,n,hn(n)),b=le(C,a,this.paramsInheritanceStrategy);C.params=Object.freeze(b.params),C.data=Object.freeze(b.data);let V=this.applyRedirects.applyRedirectCommands(l,n.redirectTo,g,C,t);return this.applyRedirects.lineralizeSegments(n,V).pipe(D(P=>this.processSegment(t,r,i,P.concat(p),o,!1,a)))}matchSegmentAgainstRoute(t,i,r,n,s,o){let a=ts(i,r,n,t,this.urlSerializer);return r.path==="**"&&(i.children={}),a.pipe(N(c=>c.matched?(t=r._injector??t,this.getChildConfig(t,r,n).pipe(N(({routes:u})=>{let l=r._loadedInjector??t,{parameters:g,consumedSegments:p,remainingSegments:C}=c,b=new ut(p,g,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,ln(r),$(r),r.component??r._loadedComponent??null,r,hn(r)),V=le(b,o,this.paramsInheritanceStrategy);b.params=Object.freeze(V.params),b.data=Object.freeze(V.data);let{segmentGroup:P,slicedSegments:Ct}=cn(i,p,C,u);if(Ct.length===0&&P.hasChildren())return this.processChildren(l,u,P,b).pipe(y(Bt=>new O(b,Bt)));if(u.length===0&&Ct.length===0)return d(new O(b,[]));let Ce=$(r)===s;return this.processSegment(l,u,P,Ct,Ce?v:s,!0,b).pipe(y(Bt=>new O(b,Bt instanceof O?[Bt]:[])))}))):st(i)))}getChildConfig(t,i,r){return i.children?d({routes:i.children,injector:t}):i.loadChildren?i._loadedRoutes!==void 0?d({routes:i._loadedRoutes,injector:i._loadedInjector}):Zi(t,i,r,this.urlSerializer).pipe(D(n=>n?this.configLoader.loadChildren(t,i).pipe(S(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):Ji(i))):d({routes:[],injector:t})}};function ls(e){e.sort((t,i)=>t.value.outlet===v?-1:i.value.outlet===v?1:t.value.outlet.localeCompare(i.value.outlet))}function hs(e){let t=e.value.routeConfig;return t&&t.path===""}function Ln(e){let t=[],i=new Set;for(let r of e){if(!hs(r)){t.push(r);continue}let n=t.find(s=>r.value.routeConfig===s.value.routeConfig);n!==void 0?(n.children.push(...r.children),i.add(n)):t.push(r)}for(let r of i){let n=Ln(r.children);t.push(new O(r.value,n))}return t.filter(r=>!i.has(r))}function ln(e){return e.data||{}}function hn(e){return e.resolve||{}}function ds(e,t,i,r,n,s){return D(o=>us(e,t,i,r,o.extractedUrl,n,s).pipe(y(({state:a,tree:c})=>M(h({},o),{targetSnapshot:a,urlAfterRedirects:c}))))}function fs(e,t){return D(i=>{let{targetSnapshot:r,guards:{canActivateChecks:n}}=i;if(!n.length)return d(i);let s=new Set(n.map(c=>c.route)),o=new Set;for(let c of s)if(!o.has(c))for(let u of kn(c))o.add(u);let a=0;return A(o).pipe(rt(c=>s.has(c)?ps(c,r,e,t):(c.data=le(c,c.parent,e).resolve,d(void 0))),S(()=>a++),be(1),D(c=>a===o.size?d(i):W))})}function kn(e){let t=e.children.map(i=>kn(i)).flat();return[e,...t]}function ps(e,t,i,r){let n=e.routeConfig,s=e._resolve;return n?.title!==void 0&&!Un(n)&&(s[kt]=n.title),gs(s,e,t,r).pipe(y(o=>(e._resolvedData=o,e.data=le(e,e.parent,i).resolve,null)))}function gs(e,t,i,r){let n=ke(e);if(n.length===0)return d({});let s={};return A(n).pipe(D(o=>vs(e[o],t,i,r).pipe(G(),S(a=>{if(a instanceof Nt)throw de(new ht,a);s[o]=a}))),be(1),wr(s),et(o=>jn(o)?W:yt(o)))}function vs(e,t,i,r){let n=zt(t)??r,s=vt(e,n),o=s.resolve?s.resolve(t,i):k(n,()=>s(t,i));return Z(o)}function $e(e){return N(t=>{let i=e(t);return i?A(i).pipe(y(()=>t)):d(t)})}var zn=(()=>{let t=class t{buildTitle(r){let n,s=r.root;for(;s!==void 0;)n=this.getResolvedTitleForRoute(s)??n,s=s.children.find(o=>o.outlet===v);return n}getResolvedTitleForRoute(r){return r.data[kt]}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=w({token:t,factory:()=>f(ms),providedIn:"root"});let e=t;return e})(),ms=(()=>{let t=class t extends zn{constructor(r){super(),this.title=r}updateTitle(r){let n=this.buildTitle(r);n!==void 0&&this.title.setTitle(n)}};t.\u0275fac=function(n){return new(n||t)(_(rn))},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),qt=new T("",{providedIn:"root",factory:()=>({})}),Cs=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Er({type:t,selectors:[["ng-component"]],standalone:!0,features:[Gr],decls:1,vars:0,template:function(n,s){n&1&&qr(0,"router-outlet")},dependencies:[Ai],encapsulation:2});let e=t;return e})();function hr(e){let t=e.children&&e.children.map(hr),i=t?M(h({},e),{children:t}):h({},e);return!i.component&&!i.loadComponent&&(t||i.loadChildren)&&i.outlet&&i.outlet!==v&&(i.component=Cs),i}var Lt=new T(""),dr=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=f(Kt)}loadComponent(r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return d(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let n=Z(r.loadComponent()).pipe(y(Fn),S(o=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=o}),Ht(()=>{this.componentLoaders.delete(r)})),s=new Re(n,()=>new H).pipe(ye());return this.componentLoaders.set(r,s),s}loadChildren(r,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return d({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let o=ys(n,this.compiler,r,this.onLoadEndListener).pipe(Ht(()=>{this.childrenLoaders.delete(n)})),a=new Re(o,()=>new H).pipe(ye());return this.childrenLoaders.set(n,a),a}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function ys(e,t,i,r){return Z(e.loadChildren()).pipe(y(Fn),D(n=>n instanceof Fr||Array.isArray(n)?d(n):A(t.compileModuleAsync(n))),y(n=>{r&&r(e);let s,o,a=!1;return Array.isArray(n)?(o=n,a=!0):(s=n.create(i).injector,o=s.get(Lt,[],{optional:!0,self:!0}).flat()),{routes:o.map(hr),injector:s}}))}function Rs(e){return e&&typeof e=="object"&&"default"in e}function Fn(e){return Rs(e)?e.default:e}var fr=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=w({token:t,factory:()=>f(ws),providedIn:"root"});let e=t;return e})(),ws=(()=>{let t=class t{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,n){return r}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),_n=new T(""),qn=new T("");function Ss(e,t,i){let r=e.get(qn),n=e.get(Xr);return e.get(Qt).runOutsideAngular(()=>{if(!n.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(u=>setTimeout(u));let s,o=new Promise(u=>{s=u}),a=n.startViewTransition(()=>(s(),bs(e))),{onViewTransitionCreated:c}=r;return c&&k(e,()=>c({transition:a,from:t,to:i})),o})}function bs(e){return new Promise(t=>{Lr({read:()=>setTimeout(t)},{injector:e})})}var Is=new T(""),me=(()=>{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=f(dr),this.environmentInjector=f(wt),this.urlSerializer=f(gt),this.rootContexts=f(Ft),this.location=f(bt),this.inputBindingEnabled=f(ge,{optional:!0})!==null,this.titleStrategy=f(zn),this.options=f(qt,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=f(fr),this.createViewTransition=f(_n,{optional:!0}),this.navigationErrorHandler=f(Is,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>d(void 0),this.rootComponentType=null;let r=s=>this.events.next(new We(s)),n=s=>this.events.next(new Ge(s));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=r}complete(){this.transitions?.complete()}handleNavigationRequest(r){let n=++this.navigationId;this.transitions?.next(M(h(h({},this.transitions.value),r),{id:n}))}setupNavigations(r,n,s){return this.transitions=new U({id:0,currentUrlTree:n,currentRawUrl:n,extractedUrl:this.urlHandlingStrategy.extract(n),urlAfterRedirects:this.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Tt,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Y(o=>o.id!==0),y(o=>M(h({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),N(o=>{let a=!1,c=!1;return d(o).pipe(N(u=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",E.SupersededByNewNavigation),W;this.currentTransition=o,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,targetBrowserUrl:typeof u.extras.browserUrl=="string"?this.urlSerializer.parse(u.extras.browserUrl):u.extras.browserUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?M(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!r.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),g=u.extras.onSameUrlNavigation??r.onSameUrlNavigation;if(!l&&g!=="reload"){let p="";return this.events.next(new Q(u.id,this.urlSerializer.serialize(u.rawUrl),p,se.IgnoredSameUrlNavigation)),u.resolve(!1),W}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return d(u).pipe(N(p=>{let C=this.transitions?.getValue();return this.events.next(new dt(p.id,this.urlSerializer.serialize(p.extractedUrl),p.source,p.restoredState)),C!==this.transitions?.getValue()?W:Promise.resolve(p)}),ds(this.environmentInjector,this.configLoader,this.rootComponentType,r.config,this.urlSerializer,this.paramsInheritanceStrategy),S(p=>{o.targetSnapshot=p.targetSnapshot,o.urlAfterRedirects=p.urlAfterRedirects,this.currentNavigation=M(h({},this.currentNavigation),{finalUrl:p.urlAfterRedirects});let C=new oe(p.id,this.urlSerializer.serialize(p.extractedUrl),this.urlSerializer.serialize(p.urlAfterRedirects),p.targetSnapshot);this.events.next(C)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:p,extractedUrl:C,source:b,restoredState:V,extras:P}=u,Ct=new dt(p,this.urlSerializer.serialize(C),b,V);this.events.next(Ct);let Ce=On(this.rootComponentType).snapshot;return this.currentTransition=o=M(h({},u),{targetSnapshot:Ce,urlAfterRedirects:C,extras:M(h({},P),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=C,d(o)}else{let p="";return this.events.next(new Q(u.id,this.urlSerializer.serialize(u.extractedUrl),p,se.IgnoredByUrlHandlingStrategy)),u.resolve(!1),W}}),S(u=>{let l=new qe(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),y(u=>(this.currentTransition=o=M(h({},u),{guards:Ui(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),o)),qi(this.environmentInjector,u=>this.events.next(u)),S(u=>{if(o.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw de(this.urlSerializer,u.guardsResult);let l=new Be(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),Y(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",E.GuardRejected),!1)),$e(u=>{if(u.guards.canActivateChecks.length)return d(u).pipe(S(l=>{let g=new Ve(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(g)}),N(l=>{let g=!1;return d(l).pipe(fs(this.paramsInheritanceStrategy,this.environmentInjector),S({next:()=>g=!0,complete:()=>{g||this.cancelNavigationTransition(l,"",E.NoDataFromResolver)}}))}),S(l=>{let g=new He(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(g)}))}),$e(u=>{let l=g=>{let p=[];g.routeConfig?.loadComponent&&!g.routeConfig._loadedComponent&&p.push(this.configLoader.loadComponent(g.routeConfig).pipe(S(C=>{g.component=C}),y(()=>{})));for(let C of g.children)p.push(...l(C));return p};return Vt(l(u.targetSnapshot.root)).pipe(Se(null),nt(1))}),$e(()=>this.afterPreactivation()),N(()=>{let{currentSnapshot:u,targetSnapshot:l}=o,g=this.createViewTransition?.(this.environmentInjector,u.root,l.root);return g?A(g).pipe(y(()=>o)):d(o)}),y(u=>{let l=Mi(r.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=o=M(h({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,o}),S(()=>{this.events.next(new xt)}),Ei(this.rootContexts,r.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),nt(1),S({next:u=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new L(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),Ar(this.transitionAbortSubject.pipe(S(u=>{throw u}))),Ht(()=>{!a&&!c&&this.cancelNavigationTransition(o,"",E.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),et(u=>{if(c=!0,Nn(u))this.events.next(new q(o.id,this.urlSerializer.serialize(o.extractedUrl),u.message,u.cancellationCode)),Oi(u)?this.events.next(new ft(u.url,u.navigationBehaviorOptions)):o.resolve(!1);else{let l=new Ut(o.id,this.urlSerializer.serialize(o.extractedUrl),u,o.targetSnapshot??void 0);try{let g=k(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(g instanceof Nt){let{message:p,cancellationCode:C}=de(this.urlSerializer,g);this.events.next(new q(o.id,this.urlSerializer.serialize(o.extractedUrl),p,C)),this.events.next(new ft(g.redirectTo,g.navigationBehaviorOptions))}else{this.events.next(l);let p=r.errorHandler(u);o.resolve(!!p)}}catch(g){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(g)}}return W}))}))}cancelNavigationTransition(r,n,s){let o=new q(r.id,this.urlSerializer.serialize(r.extractedUrl),n,s);this.events.next(o),r.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let r=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return r.toString()!==n?.toString()&&!this.currentNavigation?.extras.skipLocationChange}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function As(e){return e!==Tt}var Ms=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=w({token:t,factory:()=>f(Ds),providedIn:"root"});let e=t;return e})(),ur=class{shouldDetach(t){return!1}store(t,i){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,i){return t.routeConfig===i.routeConfig}},Ds=(()=>{let t=class t extends ur{};t.\u0275fac=(()=>{let r;return function(s){return(r||(r=Ae(t)))(s||t)}})(),t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Bn=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=w({token:t,factory:()=>f(Ts),providedIn:"root"});let e=t;return e})(),Ts=(()=>{let t=class t extends Bn{constructor(){super(...arguments),this.location=f(bt),this.urlSerializer=f(gt),this.options=f(qt,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=f(fr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new B,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=On(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(r){return this.location.subscribe(n=>{n.type==="popstate"&&r(n.url,n.state)})}handleRouterEvent(r,n){if(r instanceof dt)this.stateMemento=this.createStateMemento();else if(r instanceof Q)this.rawUrlTree=n.initialUrl;else if(r instanceof oe){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(n.targetBrowserUrl??s,n)}}else r instanceof xt?(this.currentUrlTree=n.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl),this.routerState=n.targetRouterState,this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(n.targetBrowserUrl??this.rawUrlTree,n)):r instanceof q&&(r.code===E.GuardRejected||r.code===E.NoDataFromResolver)?this.restoreHistory(n):r instanceof Ut?this.restoreHistory(n,!0):r instanceof L&&(this.lastSuccessfulId=r.id,this.currentPageId=this.browserPageId)}setBrowserUrl(r,n){let s=r instanceof B?this.urlSerializer.serialize(r):r;if(this.location.isCurrentPathEqualTo(s)||n.extras.replaceUrl){let o=this.browserPageId,a=h(h({},n.extras.state),this.generateNgRouterState(n.id,o));this.location.replaceState(s,"",a)}else{let o=h(h({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(s,"",o)}}restoreHistory(r,n=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,o=this.currentPageId-s;o!==0?this.location.historyGo(o):this.currentUrlTree===r.finalUrl&&o===0&&(this.resetState(r),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(r),this.resetUrlToCurrentUrlTree())}resetState(r){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,r.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(r,n){return this.canceledNavigationResolution==="computed"?{navigationId:r,\u0275routerPageId:n}:{navigationId:r}}};t.\u0275fac=(()=>{let r;return function(s){return(r||(r=Ae(t)))(s||t)}})(),t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Mt=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Mt||{});function Vn(e,t){e.events.pipe(Y(i=>i instanceof L||i instanceof q||i instanceof Ut||i instanceof Q),y(i=>i instanceof L||i instanceof Q?Mt.COMPLETE:(i instanceof q?i.code===E.Redirect||i.code===E.SupersededByNewNavigation:!1)?Mt.REDIRECTING:Mt.FAILED),Y(i=>i!==Mt.REDIRECTING),nt(1)).subscribe(()=>{t()})}function Os(e){throw e}var Es={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Us={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},F=(()=>{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.console=f(Qr),this.stateManager=f(Bn),this.options=f(qt,{optional:!0})||{},this.pendingTasks=f(Nr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=f(me),this.urlSerializer=f(gt),this.location=f(bt),this.urlHandlingStrategy=f(fr),this._events=new H,this.errorHandler=this.options.errorHandler||Os,this.navigated=!1,this.routeReuseStrategy=f(Ms),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=f(Lt,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!f(ge,{optional:!0}),this.eventsSubscription=new vr,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:r=>{this.console.warn(r)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let r=this.navigationTransitions.events.subscribe(n=>{try{let s=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(s!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof q&&n.code!==E.Redirect&&n.code!==E.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof L)this.navigated=!0;else if(n instanceof ft){let a=n.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(n.url,s.currentRawUrl),u=h({browserUrl:s.extras.browserUrl,info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:s.extras.replaceUrl||this.urlUpdateStrategy==="eager"||As(s.source)},a);this.scheduleNavigation(c,Tt,null,u,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}Ps(n)&&this._events.next(n)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(r)}resetRootComponentType(r){this.routerState.root.component=r,this.navigationTransitions.rootComponentType=r}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Tt,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((r,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(r,"popstate",n)},0)})}navigateToSyncWithBrowser(r,n,s){let o={replaceUrl:!0},a=s?.navigationId?s:null;if(s){let u=h({},s);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(o.state=u)}let c=this.parseUrl(r);this.scheduleNavigation(c,n,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(r){this.config=r.map(hr),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(r,n={}){let{relativeTo:s,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:u}=n,l=u?this.currentUrlTree.fragment:a,g=null;switch(c){case"merge":g=h(h({},this.currentUrlTree.queryParams),o);break;case"preserve":g=this.currentUrlTree.queryParams;break;default:g=o||null}g!==null&&(g=this.removeEmptyProps(g));let p;try{let C=s?s.snapshot:this.routerState.snapshot.root;p=An(C)}catch{(typeof r[0]!="string"||r[0][0]!=="/")&&(r=[]),p=this.currentUrlTree.root}return Mn(p,r,g,l??null)}navigateByUrl(r,n={skipLocationChange:!1}){let s=tt(r)?r:this.parseUrl(r),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,Tt,null,n)}navigate(r,n={skipLocationChange:!1}){return xs(r),this.navigateByUrl(this.createUrlTree(r,n),n)}serializeUrl(r){return this.urlSerializer.serialize(r)}parseUrl(r){try{return this.urlSerializer.parse(r)}catch{return this.urlSerializer.parse("/")}}isActive(r,n){let s;if(n===!0?s=h({},Es):n===!1?s=h({},Us):s=n,tt(r))return nn(this.currentUrlTree,r,s);let o=this.parseUrl(r);return nn(this.currentUrlTree,o,s)}removeEmptyProps(r){return Object.entries(r).reduce((n,[s,o])=>(o!=null&&(n[s]=o),n),{})}scheduleNavigation(r,n,s,o,a){if(this.disposed)return Promise.resolve(!1);let c,u,l;a?(c=a.resolve,u=a.reject,l=a.promise):l=new Promise((p,C)=>{c=p,u=C});let g=this.pendingTasks.add();return Vn(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(g))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:r,extras:o,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(p=>Promise.reject(p))}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function xs(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new I(4008,!1)}function Ps(e){return!(e instanceof xt)&&!(e instanceof ft)}var dn=(()=>{let t=class t{constructor(r,n,s,o,a,c){this.router=r,this.route=n,this.tabIndexAttribute=s,this.renderer=o,this.el=a,this.locationStrategy=c,this.href=null,this.onChanges=new H,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let u=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=r.events.subscribe(l=>{l instanceof L&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(r){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",r)}ngOnChanges(r){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(r){r==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(tt(r)?this.routerLinkInput=r:this.routerLinkInput=Array.isArray(r)?r:[r],this.setTabIndexIfNotOnNativeEl("0"))}onClick(r,n,s,o,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(r!==0||n||s||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let r=this.urlTree;this.href=r!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(r)):null;let n=this.href===null?null:jr(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(r,n){let s=this.renderer,o=this.el.nativeElement;n!==null?s.setAttribute(o,r,n):s.removeAttribute(o,r)}get urlTree(){return this.routerLinkInput===null?null:tt(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};t.\u0275fac=function(n){return new(n||t)(j(F),j(K),Pr("tabindex"),j(Te),j(De),j(St))},t.\u0275dir=Wt({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,s){n&1&&Br("click",function(a){return s.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&_r("target",s.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Yt],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Yt],replaceUrl:[2,"replaceUrl","replaceUrl",Yt],routerLink:"routerLink"},standalone:!0,features:[zr,Gt]});let e=t;return e})(),mo=(()=>{let t=class t{get isActive(){return this._isActive}constructor(r,n,s,o,a){this.router=r,this.element=n,this.renderer=s,this.cdr=o,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new it,this.routerEventsSubscription=r.events.subscribe(c=>{c instanceof L&&this.update()})}ngAfterContentInit(){d(this.links.changes,d(null)).pipe(Rt()).subscribe(r=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let r=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=A(r).pipe(Rt()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(r){let n=Array.isArray(r)?r:r.split(" ");this.classes=n.filter(s=>!!s)}ngOnChanges(r){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let r=this.hasActiveLinks();this.classes.forEach(n=>{r?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),r&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==r&&(this._isActive=r,this.cdr.markForCheck(),this.isActiveChange.emit(r))})}isLinkActive(r){let n=Ns(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return s=>{let o=s.urlTree;return o?r.isActive(o,n):!1}}hasActiveLinks(){let r=this.isLinkActive(this.router);return this.link&&r(this.link)||this.links.some(r)}};t.\u0275fac=function(n){return new(n||t)(j(F),j(De),j(Te),j(Zt),j(dn,8))},t.\u0275dir=Wt({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,s,o){if(n&1&&Vr(o,dn,5),n&2){let a;Hr(a=Wr())&&(s.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Gt]});let e=t;return e})();function Ns(e){return!!e.paths}var pe=class{};var js=(()=>{let t=class t{constructor(r,n,s,o,a){this.router=r,this.injector=s,this.preloadingStrategy=o,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(Y(r=>r instanceof L),rt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(r,n){let s=[];for(let o of n){o.providers&&!o._injector&&(o._injector=Oe(o.providers,r,`Route: ${o.path}`));let a=o._injector??r,c=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&s.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&s.push(this.processRoutes(c,o.children??o._loadedRoutes))}return A(s).pipe(Rt())}preloadConfig(r,n){return this.preloadingStrategy.preload(n,()=>{let s;n.loadChildren&&n.canLoad===void 0?s=this.loader.loadChildren(r,n):s=d(null);let o=s.pipe(D(a=>a===null?d(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,this.processRoutes(a.injector??r,a.routes))));if(n.loadComponent&&!n._loadedComponent){let a=this.loader.loadComponent(n);return A([o,a]).pipe(Rt())}else return o})}};t.\u0275fac=function(n){return new(n||t)(_(F),_(Kt),_(wt),_(pe),_(dr))},t.\u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),pr=new T(""),Hn=(()=>{let t=class t{constructor(r,n,s,o,a={}){this.urlSerializer=r,this.transitions=n,this.viewportScroller=s,this.zone=o,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.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(r=>{r instanceof dt?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=r.navigationTrigger,this.restoredId=r.restoredState?r.restoredState.navigationId:0):r instanceof L?(this.lastId=r.id,this.scheduleScrollEvent(r,this.urlSerializer.parse(r.urlAfterRedirects).fragment)):r instanceof Q&&r.code===se.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(r,this.urlSerializer.parse(r.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(r=>{r instanceof ae&&(r.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(r.position):r.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(r.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(r,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new ae(r,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};t.\u0275fac=function(n){$r()},t.\u0275prov=w({token:t,factory:t.\u0275fac});let e=t;return e})();function Co(e,...t){return xr([{provide:Lt,multi:!0,useValue:e},[],{provide:K,useFactory:Wn,deps:[F]},{provide:Ue,multi:!0,useFactory:Gn},t.map(i=>i.\u0275providers)])}function Wn(e){return e.routerState.root}function mt(e,t){return{\u0275kind:e,\u0275providers:t}}function yo(e={}){return mt(4,[{provide:pr,useFactory:()=>{let i=f(xe),r=f(Qt),n=f(me),s=f(gt);return new Hn(s,n,i,r,e)}}])}function Gn(){let e=f(Me);return t=>{let i=e.get(Zr);if(t!==i.components[0])return;let r=e.get(F),n=e.get(Qn);e.get(gr)===1&&r.initialNavigation(),e.get(Kn,null,Ie.Optional)?.setUpPreloading(),e.get(pr,null,Ie.Optional)?.init(),r.resetRootComponentType(i.componentTypes[0]),n.closed||(n.next(),n.complete(),n.unsubscribe())}}var Qn=new T("",{factory:()=>new H}),gr=new T("",{providedIn:"root",factory:()=>1});function $s(){return mt(2,[{provide:gr,useValue:0},{provide:Ee,multi:!0,deps:[Me],useFactory:t=>{let i=t.get(Jr,Promise.resolve());return()=>i.then(()=>new Promise(r=>{let n=t.get(F),s=t.get(Qn);Vn(n,()=>{r(!0)}),t.get(me).afterPreactivation=()=>(r(!0),s.closed?d(void 0):s),n.initialNavigation()}))}}])}function Ls(){return mt(3,[{provide:Ee,multi:!0,useFactory:()=>{let t=f(F);return()=>{t.setUpLocationChangeListener()}}},{provide:gr,useValue:2}])}var Kn=new T("");function ks(e){return mt(0,[{provide:Kn,useExisting:js},{provide:pe,useExisting:e}])}function zs(){return mt(8,[un,{provide:ge,useExisting:un}])}function Fs(e){let t=[{provide:_n,useValue:Ss},{provide:qn,useValue:h({skipNextTransition:!!e?.skipInitialTransition},e)}];return mt(9,t)}var fn=new T("ROUTER_FORROOT_GUARD"),_s=[bt,{provide:gt,useClass:ht},F,Ft,{provide:K,useFactory:Wn,deps:[F]},dr,[]],Ro=(()=>{let t=class t{constructor(r){}static forRoot(r,n){return{ngModule:t,providers:[_s,[],{provide:Lt,multi:!0,useValue:r},{provide:fn,useFactory:Hs,deps:[[F,new Tr,new Or]]},{provide:qt,useValue:n||{}},n?.useHash?Bs():Vs(),qs(),n?.preloadingStrategy?ks(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?Ws(n):[],n?.bindToComponentInputs?zs().\u0275providers:[],n?.enableViewTransitions?Fs().\u0275providers:[],Gs()]}}static forChild(r){return{ngModule:t,providers:[{provide:Lt,multi:!0,useValue:r}]}}};t.\u0275fac=function(n){return new(n||t)(_(fn,8))},t.\u0275mod=Ur({type:t}),t.\u0275inj=Mr({});let e=t;return e})();function qs(){return{provide:pr,useFactory:()=>{let e=f(xe),t=f(Qt),i=f(qt),r=f(me),n=f(gt);return i.scrollOffset&&e.setOffset(i.scrollOffset),new Hn(n,r,e,t,i)}}}function Bs(){return{provide:St,useClass:en}}function Vs(){return{provide:St,useClass:tn}}function Hs(e){return"guarded"}function Ws(e){return[e.initialNavigation==="disabled"?Ls().\u0275providers:[],e.initialNavigation==="enabledBlocking"?$s().\u0275providers:[]]}var pn=new T("");function Gs(){return[{provide:pn,useFactory:Gn},{provide:Ue,multi:!0,useExisting:pn}]}export{dt as a,L as b,K as c,Ai as d,F as e,dn as f,mo as g,Co as h,yo as i,zs as j,Fs as k,Ro as l};